storybook-addon-sdc 0.0.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +21 -0
- package/README.md +233 -0
- package/dist/preset.cjs +691 -0
- package/dist/preset.cjs.map +1 -0
- package/package.json +84 -0
package/dist/preset.cjs
ADDED
|
@@ -0,0 +1,691 @@
|
|
|
1
|
+
'use strict';
|
|
2
|
+
|
|
3
|
+
var Oe = require('path');
|
|
4
|
+
var Jr = require('url');
|
|
5
|
+
var Je = require('fs');
|
|
6
|
+
var AF = require('module');
|
|
7
|
+
var hu = require('crypto');
|
|
8
|
+
var Mn = require('util');
|
|
9
|
+
var promises = require('fs/promises');
|
|
10
|
+
require('perf_hooks');
|
|
11
|
+
var Og = require('tty');
|
|
12
|
+
var ea = require('events');
|
|
13
|
+
var Xr = require('stream');
|
|
14
|
+
var string_decoder = require('string_decoder');
|
|
15
|
+
var yx = require('child_process');
|
|
16
|
+
var Yr = require('http');
|
|
17
|
+
var ta = require('https');
|
|
18
|
+
var gx = require('net');
|
|
19
|
+
var Zr = require('os');
|
|
20
|
+
require('dns');
|
|
21
|
+
var Qr = require('assert');
|
|
22
|
+
var SF = require('v8');
|
|
23
|
+
require('worker_threads');
|
|
24
|
+
var xF = require('buffer');
|
|
25
|
+
require('readline');
|
|
26
|
+
var bF = require('zlib');
|
|
27
|
+
var CF = require('tls');
|
|
28
|
+
var jsonSchemaFaker = require('json-schema-faker');
|
|
29
|
+
var f6 = require('vite-plugin-twig-drupal');
|
|
30
|
+
|
|
31
|
+
var _documentCurrentScript = typeof document !== 'undefined' ? document.currentScript : null;
|
|
32
|
+
function _interopDefault (e) { return e && e.__esModule ? e : { default: e }; }
|
|
33
|
+
|
|
34
|
+
function _interopNamespace(e) {
|
|
35
|
+
if (e && e.__esModule) return e;
|
|
36
|
+
var n = Object.create(null);
|
|
37
|
+
if (e) {
|
|
38
|
+
Object.keys(e).forEach(function (k) {
|
|
39
|
+
if (k !== 'default') {
|
|
40
|
+
var d = Object.getOwnPropertyDescriptor(e, k);
|
|
41
|
+
Object.defineProperty(n, k, d.get ? d : {
|
|
42
|
+
enumerable: true,
|
|
43
|
+
get: function () { return e[k]; }
|
|
44
|
+
});
|
|
45
|
+
}
|
|
46
|
+
});
|
|
47
|
+
}
|
|
48
|
+
n.default = e;
|
|
49
|
+
return Object.freeze(n);
|
|
50
|
+
}
|
|
51
|
+
|
|
52
|
+
var Oe__default = /*#__PURE__*/_interopDefault(Oe);
|
|
53
|
+
var Jr__default = /*#__PURE__*/_interopDefault(Jr);
|
|
54
|
+
var Je__namespace = /*#__PURE__*/_interopNamespace(Je);
|
|
55
|
+
var AF__default = /*#__PURE__*/_interopDefault(AF);
|
|
56
|
+
var hu__default = /*#__PURE__*/_interopDefault(hu);
|
|
57
|
+
var Mn__default = /*#__PURE__*/_interopDefault(Mn);
|
|
58
|
+
var Og__default = /*#__PURE__*/_interopDefault(Og);
|
|
59
|
+
var ea__default = /*#__PURE__*/_interopDefault(ea);
|
|
60
|
+
var Xr__default = /*#__PURE__*/_interopDefault(Xr);
|
|
61
|
+
var yx__default = /*#__PURE__*/_interopDefault(yx);
|
|
62
|
+
var Yr__default = /*#__PURE__*/_interopDefault(Yr);
|
|
63
|
+
var ta__default = /*#__PURE__*/_interopDefault(ta);
|
|
64
|
+
var gx__default = /*#__PURE__*/_interopDefault(gx);
|
|
65
|
+
var Zr__default = /*#__PURE__*/_interopDefault(Zr);
|
|
66
|
+
var Qr__default = /*#__PURE__*/_interopDefault(Qr);
|
|
67
|
+
var SF__default = /*#__PURE__*/_interopDefault(SF);
|
|
68
|
+
var xF__default = /*#__PURE__*/_interopDefault(xF);
|
|
69
|
+
var bF__default = /*#__PURE__*/_interopDefault(bF);
|
|
70
|
+
var CF__default = /*#__PURE__*/_interopDefault(CF);
|
|
71
|
+
var f6__default = /*#__PURE__*/_interopDefault(f6);
|
|
72
|
+
|
|
73
|
+
var C1=Object.create;var Vu=Object.defineProperty;var I1=Object.getOwnPropertyDescriptor;var O1=Object.getOwnPropertyNames;var R1=Object.getPrototypeOf,k1=Object.prototype.hasOwnProperty;var he=(n=>typeof require<"u"?require:typeof Proxy<"u"?new Proxy(n,{get:(e,t)=>(typeof require<"u"?require:e)[t]}):n)(function(n){if(typeof require<"u")return require.apply(this,arguments);throw Error('Dynamic require of "'+n+'" is not supported')});var Fn=(n,e)=>()=>(n&&(e=n(n=0)),e);var ne=(n,e)=>()=>(e||n((e={exports:{}}).exports,e),e.exports),Ju=(n,e)=>{for(var t in e)Vu(n,t,{get:e[t],enumerable:!0});},$1=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of O1(e))!k1.call(n,s)&&s!==t&&Vu(n,s,{get:()=>e[s],enumerable:!(r=I1(e,s))||r.enumerable});return n};var ss=(n,e,t)=>(t=n!=null?C1(R1(n)):{},$1(Vu(t,"default",{value:n,enumerable:!0}),n));var fr=ne(dt=>{var En={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},vi={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},T1="tag:yaml.org,2002:",P1={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function ew(n){let e=[0],t=n.indexOf(`
|
|
74
|
+
`);for(;t!==-1;)t+=1,e.push(t),t=n.indexOf(`
|
|
75
|
+
`,t);return e}function tw(n){let e,t;return typeof n=="string"?(e=ew(n),t=n):(Array.isArray(n)&&(n=n[0]),n&&n.context&&(n.lineStarts||(n.lineStarts=ew(n.context.src)),e=n.lineStarts,t=n.context.src)),{lineStarts:e,src:t}}function Yu(n,e){if(typeof n!="number"||n<0)return null;let{lineStarts:t,src:r}=tw(e);if(!t||!r||n>r.length)return null;for(let i=0;i<t.length;++i){let o=t[i];if(n<o)return {line:i,col:n-t[i-1]+1};if(n===o)return {line:i+1,col:1}}let s=t.length;return {line:s,col:n-t[s-1]+1}}function N1(n,e){let{lineStarts:t,src:r}=tw(e);if(!t||!(n>=1)||n>t.length)return null;let s=t[n-1],i=t[n];for(;i&&i>s&&r[i-1]===`
|
|
76
|
+
`;)--i;return r.slice(s,i)}function L1({start:n,end:e},t,r=80){let s=N1(n.line,t);if(!s)return null;let{col:i}=n;if(s.length>r)if(i<=r-10)s=s.substr(0,r-1)+"\u2026";else {let u=Math.round(r/2);s.length>i+u&&(s=s.substr(0,i+u-1)+"\u2026"),i-=s.length-r,s="\u2026"+s.substr(1-r);}let o=1,a="";e&&(e.line===n.line&&i+(e.col-n.col)<=r+1?o=e.col-n.col:(o=Math.min(s.length+1,r)-i,a="\u2026"));let l=i>1?" ".repeat(i-1):"",c="^".repeat(o);return `${s}
|
|
77
|
+
${l}${c}${a}`}var is=class n{static copy(e){return new n(e.start,e.end)}constructor(e,t){this.start=e,this.end=t||e;}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(e,t){let{start:r,end:s}=this;if(e.length===0||s<=e[0])return this.origStart=r,this.origEnd=s,t;let i=t;for(;i<e.length&&!(e[i]>r);)++i;this.origStart=r+i;let o=i;for(;i<e.length&&!(e[i]>=s);)++i;return this.origEnd=s+i,o}},An=class n{static addStringTerminator(e,t,r){if(r[r.length-1]===`
|
|
78
|
+
`)return r;let s=n.endOfWhiteSpace(e,t);return s>=e.length||e[s]===`
|
|
79
|
+
`?r+`
|
|
80
|
+
`:r}static atDocumentBoundary(e,t,r){let s=e[t];if(!s)return !0;let i=e[t-1];if(i&&i!==`
|
|
81
|
+
`)return !1;if(r){if(s!==r)return !1}else if(s!==En.DIRECTIVES_END&&s!==En.DOCUMENT_END)return !1;let o=e[t+1],a=e[t+2];if(o!==s||a!==s)return !1;let l=e[t+3];return !l||l===`
|
|
82
|
+
`||l===" "||l===" "}static endOfIdentifier(e,t){let r=e[t],s=r==="<",i=s?[`
|
|
83
|
+
`," "," ",">"]:[`
|
|
84
|
+
`," "," ","[","]","{","}",","];for(;r&&i.indexOf(r)===-1;)r=e[t+=1];return s&&r===">"&&(t+=1),t}static endOfIndent(e,t){let r=e[t];for(;r===" ";)r=e[t+=1];return t}static endOfLine(e,t){let r=e[t];for(;r&&r!==`
|
|
85
|
+
`;)r=e[t+=1];return t}static endOfWhiteSpace(e,t){let r=e[t];for(;r===" "||r===" ";)r=e[t+=1];return t}static startOfLine(e,t){let r=e[t-1];if(r===`
|
|
86
|
+
`)return t;for(;r&&r!==`
|
|
87
|
+
`;)r=e[t-=1];return t+1}static endOfBlockIndent(e,t,r){let s=n.endOfIndent(e,r);if(s>r+t)return s;{let i=n.endOfWhiteSpace(e,s),o=e[i];if(!o||o===`
|
|
88
|
+
`)return i}return null}static atBlank(e,t,r){let s=e[t];return s===`
|
|
89
|
+
`||s===" "||s===" "||r&&!s}static nextNodeIsIndented(e,t,r){return !e||t<0?!1:t>0?!0:r&&e==="-"}static normalizeOffset(e,t){let r=e[t];return r?r!==`
|
|
90
|
+
`&&e[t-1]===`
|
|
91
|
+
`?t-1:n.endOfWhiteSpace(e,t):t}static foldNewline(e,t,r){let s=0,i=!1,o="",a=e[t+1];for(;a===" "||a===" "||a===`
|
|
92
|
+
`;){switch(a){case`
|
|
93
|
+
`:s=0,t+=1,o+=`
|
|
94
|
+
`;break;case" ":s<=r&&(i=!0),t=n.endOfWhiteSpace(e,t+2)-1;break;case" ":s+=1,t+=1;break}a=e[t+1];}return o||(o=" "),a&&s<=r&&(i=!0),{fold:o,offset:t,error:i}}constructor(e,t,r){Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=t||[],this.type=e,this.value=null;}getPropValue(e,t,r){if(!this.context)return null;let{src:s}=this.context,i=this.props[e];return i&&s[i.start]===t?s.slice(i.start+(r?1:0),i.end):null}get anchor(){for(let e=0;e<this.props.length;++e){let t=this.getPropValue(e,En.ANCHOR,!0);if(t!=null)return t}return null}get comment(){let e=[];for(let t=0;t<this.props.length;++t){let r=this.getPropValue(t,En.COMMENT,!0);r!=null&&e.push(r);}return e.length>0?e.join(`
|
|
95
|
+
`):null}commentHasRequiredWhitespace(e){let{src:t}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return !1;let{end:r}=this.valueRange;return e!==r||n.atBlank(t,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]===En.COMMENT)return !0}return !1}get hasProps(){if(this.context){let{src:e}=this.context;for(let t=0;t<this.props.length;++t)if(e[this.props[t].start]!==En.COMMENT)return !0}return !1}get includesTrailingLines(){return !1}get jsonLike(){return [vi.FLOW_MAP,vi.FLOW_SEQ,vi.QUOTE_DOUBLE,vi.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let e=Yu(this.range.start,this.context.root);if(!e)return;let t=Yu(this.range.end,this.context.root);return {start:e,end:t}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange;return this.context.src.slice(e,t)}get tag(){for(let e=0;e<this.props.length;++e){let t=this.getPropValue(e,En.TAG,!1);if(t!=null){if(t[1]==="<")return {verbatim:t.slice(2,-1)};{let[r,s,i]=t.match(/^(.*!)([^!]*)$/);return {handle:s,suffix:i}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return !1;let{start:e,end:t}=this.valueRange,{src:r}=this.context;for(let s=e;s<t;++s)if(r[s]===`
|
|
96
|
+
`)return !0;return !1}parseComment(e){let{src:t}=this.context;if(t[e]===En.COMMENT){let r=n.endOfLine(t,e+1),s=new is(e,r);return this.props.push(s),r}return e}setOrigRanges(e,t){return this.range&&(t=this.range.setOrigRange(e,t)),this.valueRange&&this.valueRange.setOrigRange(e,t),this.props.forEach(r=>r.setOrigRange(e,t)),t}toString(){let{context:{src:e},range:t,value:r}=this;if(r!=null)return r;let s=e.slice(t.start,t.end);return n.addStringTerminator(e,t.end,s)}},ur=class extends Error{constructor(e,t,r){if(!r||!(t instanceof An))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=r,this.source=t;}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new is(this.offset,this.offset+1);let t=e&&Yu(this.offset,e);if(t){let r={line:t.line,col:t.col+1};this.linePos={start:t,end:r};}delete this.offset;}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:t,col:r}=this.linePos.start;this.message+=` at line ${t}, column ${r}`;let s=e&&L1(this.linePos,e);s&&(this.message+=`:
|
|
97
|
+
|
|
98
|
+
${s}
|
|
99
|
+
`);}delete this.source;}},Xu=class extends ur{constructor(e,t){super("YAMLReferenceError",e,t);}},Ei=class extends ur{constructor(e,t){super("YAMLSemanticError",e,t);}},Zu=class extends ur{constructor(e,t){super("YAMLSyntaxError",e,t);}},ef=class extends ur{constructor(e,t){super("YAMLWarning",e,t);}};function M1(n,e,t){return e in n?Object.defineProperty(n,e,{value:t,enumerable:!0,configurable:!0,writable:!0}):n[e]=t,n}var tf=class n extends An{static endOfLine(e,t,r){let s=e[t],i=t;for(;s&&s!==`
|
|
100
|
+
`&&!(r&&(s==="["||s==="]"||s==="{"||s==="}"||s===","));){let o=e[i+1];if(s===":"&&(!o||o===`
|
|
101
|
+
`||o===" "||o===" "||r&&o===",")||(s===" "||s===" ")&&o==="#")break;i+=1,s=o;}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange,{src:r}=this.context,s=r[t-1];for(;e<t&&(s===`
|
|
102
|
+
`||s===" "||s===" ");)s=r[--t-1];let i="";for(let a=e;a<t;++a){let l=r[a];if(l===`
|
|
103
|
+
`){let{fold:c,offset:u}=An.foldNewline(r,a,-1);i+=c,a=u;}else if(l===" "||l===" "){let c=a,u=r[a+1];for(;a<t&&(u===" "||u===" ");)a+=1,u=r[a+1];u!==`
|
|
104
|
+
`&&(i+=a>c?r.slice(c,a+1):l);}else i+=l;}let o=r[e];switch(o){case" ":{let a="Plain value cannot start with a tab character";return {errors:[new Ei(this,a)],str:i}}case"@":case"`":{let a=`Plain value cannot start with reserved character ${o}`;return {errors:[new Ei(this,a)],str:i}}default:return i}}parseBlockValue(e){let{indent:t,inFlow:r,src:s}=this.context,i=e,o=e;for(let a=s[i];a===`
|
|
105
|
+
`&&!An.atDocumentBoundary(s,i+1);a=s[i]){let l=An.endOfBlockIndent(s,t,i+1);if(l===null||s[l]==="#")break;s[l]===`
|
|
106
|
+
`?i=l:(o=n.endOfLine(s,l,r),i=o);}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,t){this.context=e;let{inFlow:r,src:s}=e,i=t,o=s[i];return o&&o!=="#"&&o!==`
|
|
107
|
+
`&&(i=n.endOfLine(s,t,r)),this.valueRange=new is(t,i),i=An.endOfWhiteSpace(s,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};dt.Char=En;dt.Node=An;dt.PlainValue=tf;dt.Range=is;dt.Type=vi;dt.YAMLError=ur;dt.YAMLReferenceError=Xu;dt.YAMLSemanticError=Ei;dt.YAMLSyntaxError=Zu;dt.YAMLWarning=ef;dt._defineProperty=M1;dt.defaultTagPrefix=T1;dt.defaultTags=P1;});var rw=ne(nw=>{var k=fr(),dr=class extends k.Node{constructor(){super(k.Type.BLANK_LINE);}get includesTrailingLines(){return !0}parse(e,t){return this.context=e,this.range=new k.Range(t,t+1),t+1}},Ai=class extends k.Node{constructor(e,t){super(e,t),this.node=null;}get includesTrailingLines(){return !!this.node&&this.node.includesTrailingLines}parse(e,t){this.context=e;let{parseNode:r,src:s}=e,{atLineStart:i,lineStart:o}=e;!i&&this.type===k.Type.SEQ_ITEM&&(this.error=new k.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=i?t-o:e.indent,l=k.Node.endOfWhiteSpace(s,t+1),c=s[l],u=c==="#",f=[],h=null;for(;c===`
|
|
108
|
+
`||c==="#";){if(c==="#"){let p=k.Node.endOfLine(s,l+1);f.push(new k.Range(l,p)),l=p;}else {i=!0,o=l+1;let p=k.Node.endOfWhiteSpace(s,o);s[p]===`
|
|
109
|
+
`&&f.length===0&&(h=new dr,o=h.parse({src:s},o)),l=k.Node.endOfIndent(s,o);}c=s[l];}if(k.Node.nextNodeIsIndented(c,l-(o+a),this.type!==k.Type.SEQ_ITEM)?this.node=r({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},l):c&&o>t+1&&(l=o-1),this.node){if(h){let p=e.parent.items||e.parent.contents;p&&p.push(h);}f.length&&Array.prototype.push.apply(this.props,f),l=this.node.range.end;}else if(u){let p=f[0];this.props.push(p),l=p.end;}else l=k.Node.endOfLine(s,t+1);let m=this.node?this.node.valueRange.end:l;return this.valueRange=new k.Range(t,m),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.node?this.node.setOrigRanges(e,t):t}toString(){let{context:{src:e},node:t,range:r,value:s}=this;if(s!=null)return s;let i=t?e.slice(r.start,t.range.start)+String(t):e.slice(r.start,r.end);return k.Node.addStringTerminator(e,r.end,i)}},hr=class extends k.Node{constructor(){super(k.Type.COMMENT);}parse(e,t){this.context=e;let r=this.parseComment(t);return this.range=new k.Range(t,r),r}};function nf(n){let e=n;for(;e instanceof Ai;)e=e.node;if(!(e instanceof Ea))return null;let t=e.items.length,r=-1;for(let o=t-1;o>=0;--o){let a=e.items[o];if(a.type===k.Type.COMMENT){let{indent:l,lineStart:c}=a.context;if(l>0&&a.range.start>=c+l)break;r=o;}else if(a.type===k.Type.BLANK_LINE)r=o;else break}if(r===-1)return null;let s=e.items.splice(r,t-r),i=s[0].range.start;for(;e.range.end=i,e.valueRange&&e.valueRange.end>i&&(e.valueRange.end=i),e!==n;)e=e.context.parent;return s}var Ea=class n extends k.Node{static nextContentHasIndent(e,t,r){let s=k.Node.endOfLine(e,t)+1;t=k.Node.endOfWhiteSpace(e,s);let i=e[t];return i?t>=s+r?!0:i!=="#"&&i!==`
|
|
110
|
+
`?!1:n.nextContentHasIndent(e,t,r):!1}constructor(e){super(e.type===k.Type.SEQ_ITEM?k.Type.SEQ:k.Type.MAP);for(let r=e.props.length-1;r>=0;--r)if(e.props[r].start<e.context.lineStart){this.props=e.props.slice(0,r+1),e.props=e.props.slice(r+1);let s=e.props[0]||e.valueRange;e.range.start=s.start;break}this.items=[e];let t=nf(e);t&&Array.prototype.push.apply(this.items,t);}get includesTrailingLines(){return this.items.length>0}parse(e,t){this.context=e;let{parseNode:r,src:s}=e,i=k.Node.startOfLine(s,t),o=this.items[0];o.context.parent=this,this.valueRange=k.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,l=t;l=k.Node.normalizeOffset(s,l);let c=s[l],u=k.Node.endOfWhiteSpace(s,i)===l,f=!1;for(;c;){for(;c===`
|
|
111
|
+
`||c==="#";){if(u&&c===`
|
|
112
|
+
`&&!f){let p=new dr;if(l=p.parse({src:s},l),this.valueRange.end=l,l>=s.length){c=null;break}this.items.push(p),l-=1;}else if(c==="#"){if(l<i+a&&!n.nextContentHasIndent(s,l,a))return l;let p=new hr;if(l=p.parse({indent:a,lineStart:i,src:s},l),this.items.push(p),this.valueRange.end=l,l>=s.length){c=null;break}}if(i=l+1,l=k.Node.endOfIndent(s,i),k.Node.atBlank(s,l)){let p=k.Node.endOfWhiteSpace(s,l),d=s[p];(!d||d===`
|
|
113
|
+
`||d==="#")&&(l=p);}c=s[l],u=!0;}if(!c)break;if(l!==i+a&&(u||c!==":")){if(l<i+a){i>t&&(l=i);break}else if(!this.error){let p="All collection items must start at the same column";this.error=new k.YAMLSyntaxError(this,p);}}if(o.type===k.Type.SEQ_ITEM){if(c!=="-"){i>t&&(l=i);break}}else if(c==="-"&&!this.error){let p=s[l+1];if(!p||p===`
|
|
114
|
+
`||p===" "||p===" "){let d="A collection cannot be both a mapping and a sequence";this.error=new k.YAMLSyntaxError(this,d);}}let h=r({atLineStart:u,inCollection:!0,indent:a,lineStart:i,parent:this},l);if(!h)return l;if(this.items.push(h),this.valueRange.end=h.valueRange.end,l=k.Node.normalizeOffset(s,h.range.end),c=s[l],u=!1,f=h.includesTrailingLines,c){let p=l-1,d=s[p];for(;d===" "||d===" ";)d=s[--p];d===`
|
|
115
|
+
`&&(i=p+1,u=!0);}let m=nf(h);m&&Array.prototype.push.apply(this.items,m);}return l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach(r=>{t=r.setOrigRanges(e,t);}),t}toString(){let{context:{src:e},items:t,range:r,value:s}=this;if(s!=null)return s;let i=e.slice(r.start,t[0].range.start)+String(t[0]);for(let o=1;o<t.length;++o){let a=t[o],{atLineStart:l,indent:c}=a.context;if(l)for(let u=0;u<c;++u)i+=" ";i+=String(a);}return k.Node.addStringTerminator(e,r.end,i)}},rf=class extends k.Node{constructor(){super(k.Type.DIRECTIVE),this.name=null;}get parameters(){let e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){let{src:t}=this.context,r=e,s=t[r];for(;s&&s!==`
|
|
116
|
+
`&&s!==" "&&s!==" ";)s=t[r+=1];return this.name=t.slice(e,r),r}parseParameters(e){let{src:t}=this.context,r=e,s=t[r];for(;s&&s!==`
|
|
117
|
+
`&&s!=="#";)s=t[r+=1];return this.valueRange=new k.Range(e,r),r}parse(e,t){this.context=e;let r=this.parseName(t+1);return r=this.parseParameters(r),r=this.parseComment(r),this.range=new k.Range(t,r),r}},sf=class n extends k.Node{static startCommentOrEndBlankLine(e,t){let r=k.Node.endOfWhiteSpace(e,t),s=e[r];return s==="#"||s===`
|
|
118
|
+
`?r:t}constructor(){super(k.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null;}parseDirectives(e){let{src:t}=this.context;this.directives=[];let r=!0,s=!1,i=e;for(;!k.Node.atDocumentBoundary(t,i,k.Char.DIRECTIVES_END);)switch(i=n.startCommentOrEndBlankLine(t,i),t[i]){case`
|
|
119
|
+
`:if(r){let o=new dr;i=o.parse({src:t},i),i<t.length&&this.directives.push(o);}else i+=1,r=!0;break;case"#":{let o=new hr;i=o.parse({src:t},i),this.directives.push(o),r=!1;}break;case"%":{let o=new rf;i=o.parse({parent:this,src:t},i),this.directives.push(o),s=!0,r=!1;}break;default:return s?this.error=new k.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i}return t[i]?(this.directivesEndMarker=new k.Range(i,i+3),i+3):(s?this.error=new k.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){let{parseNode:t,src:r}=this.context;this.contents||(this.contents=[]);let s=e;for(;r[s-1]==="-";)s-=1;let i=k.Node.endOfWhiteSpace(r,e),o=s===e;for(this.valueRange=new k.Range(i);!k.Node.atDocumentBoundary(r,i,k.Char.DOCUMENT_END);){switch(r[i]){case`
|
|
120
|
+
`:if(o){let a=new dr;i=a.parse({src:r},i),i<r.length&&this.contents.push(a);}else i+=1,o=!0;s=i;break;case"#":{let a=new hr;i=a.parse({src:r},i),this.contents.push(a),o=!1;}break;default:{let a=k.Node.endOfIndent(r,i),c=t({atLineStart:o,indent:-1,inFlow:!1,inCollection:!1,lineStart:s,parent:this},a);if(!c)return this.valueRange.end=a;this.contents.push(c),i=c.range.end,o=!1;let u=nf(c);u&&Array.prototype.push.apply(this.contents,u);}}i=n.startCommentOrEndBlankLine(r,i);}if(this.valueRange.end=i,r[i]&&(this.documentEndMarker=new k.Range(i,i+3),i+=3,r[i])){if(i=k.Node.endOfWhiteSpace(r,i),r[i]==="#"){let a=new hr;i=a.parse({src:r},i),this.contents.push(a);}switch(r[i]){case`
|
|
121
|
+
`:i+=1;break;case void 0:break;default:this.error=new k.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix");}}return i}parse(e,t){e.root=this,this.context=e;let{src:r}=e,s=r.charCodeAt(t)===65279?t+1:t;return s=this.parseDirectives(s),s=this.parseContents(s),s}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.directives.forEach(r=>{t=r.setOrigRanges(e,t);}),this.directivesEndMarker&&(t=this.directivesEndMarker.setOrigRange(e,t)),this.contents.forEach(r=>{t=r.setOrigRanges(e,t);}),this.documentEndMarker&&(t=this.documentEndMarker.setOrigRange(e,t)),t}toString(){let{contents:e,directives:t,value:r}=this;if(r!=null)return r;let s=t.join("");return e.length>0&&((t.length>0||e[0].type===k.Type.COMMENT)&&(s+=`---
|
|
122
|
+
`),s+=e.join("")),s[s.length-1]!==`
|
|
123
|
+
`&&(s+=`
|
|
124
|
+
`),s}},of=class extends k.Node{parse(e,t){this.context=e;let{src:r}=e,s=k.Node.endOfIdentifier(r,t+1);return this.valueRange=new k.Range(t+1,s),s=k.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},jn={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},af=class extends k.Node{constructor(e,t){super(e,t),this.blockIndent=null,this.chomping=jn.CLIP,this.header=null;}get includesTrailingLines(){return this.chomping===jn.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:t}=this.valueRange,{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return "";let i=null,o=s[t-1];for(;o===`
|
|
125
|
+
`||o===" "||o===" ";){if(t-=1,t<=e){if(this.chomping===jn.KEEP)break;return ""}o===`
|
|
126
|
+
`&&(i=t),o=s[t-1];}let a=t+1;i&&(this.chomping===jn.KEEP?(a=i,t=this.valueRange.end):t=i);let l=r+this.blockIndent,c=this.type===k.Type.BLOCK_FOLDED,u=!0,f="",h="",m=!1;for(let p=e;p<t;++p){for(let g=0;g<l&&s[p]===" ";++g)p+=1;let d=s[p];if(d===`
|
|
127
|
+
`)h===`
|
|
128
|
+
`?f+=`
|
|
129
|
+
`:h=`
|
|
130
|
+
`;else {let g=k.Node.endOfLine(s,p),y=s.slice(p,g);p=g,c&&(d===" "||d===" ")&&p<a?(h===" "?h=`
|
|
131
|
+
`:!m&&!u&&h===`
|
|
132
|
+
`&&(h=`
|
|
133
|
+
|
|
134
|
+
`),f+=h+y,h=g<t&&s[g]||"",m=!0):(f+=h+y,h=c&&p<a?" ":`
|
|
135
|
+
`,m=!1),u&&y!==""&&(u=!1);}}return this.chomping===jn.STRIP?f:f+`
|
|
136
|
+
`}parseBlockHeader(e){let{src:t}=this.context,r=e+1,s="";for(;;){let i=t[r];switch(i){case"-":this.chomping=jn.STRIP;break;case"+":this.chomping=jn.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":s+=i;break;default:return this.blockIndent=Number(s)||null,this.header=new k.Range(e,r),r}r+=1;}}parseBlockValue(e){let{indent:t,src:r}=this.context,s=!!this.blockIndent,i=e,o=e,a=1;for(let l=r[i];l===`
|
|
137
|
+
`&&(i+=1,!k.Node.atDocumentBoundary(r,i));l=r[i]){let c=k.Node.endOfBlockIndent(r,t,i);if(c===null)break;let u=r[c],f=c-(i+t);if(this.blockIndent){if(u&&u!==`
|
|
138
|
+
`&&f<this.blockIndent){if(r[c]==="#")break;if(!this.error){let m=`Block scalars must not be less indented than their ${s?"explicit indentation indicator":"first line"}`;this.error=new k.YAMLSemanticError(this,m);}}}else if(r[c]!==`
|
|
139
|
+
`){if(f<a){let h="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new k.YAMLSemanticError(this,h);}this.blockIndent=f;}else f>a&&(a=f);r[c]===`
|
|
140
|
+
`?i=c:i=o=k.Node.endOfLine(r,c);}return this.chomping!==jn.KEEP&&(i=r[o]?o+1:o),this.valueRange=new k.Range(e+1,i),i}parse(e,t){this.context=e;let{src:r}=e,s=this.parseBlockHeader(t);return s=k.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.header?this.header.setOrigRange(e,t):t}},lf=class extends k.Node{constructor(e,t){super(e,t),this.items=null;}prevNodeIsJsonLike(e=this.items.length){let t=this.items[e-1];return !!t&&(t.jsonLike||t.type===k.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,t){this.context=e;let{parseNode:r,src:s}=e,{indent:i,lineStart:o}=e,a=s[t];this.items=[{char:a,offset:t}];let l=k.Node.endOfWhiteSpace(s,t+1);for(a=s[l];a&&a!=="]"&&a!=="}";){switch(a){case`
|
|
141
|
+
`:{o=l+1;let c=k.Node.endOfWhiteSpace(s,o);if(s[c]===`
|
|
142
|
+
`){let u=new dr;o=u.parse({src:s},o),this.items.push(u);}if(l=k.Node.endOfIndent(s,o),l<=o+i&&(a=s[l],l<o+i||a!=="]"&&a!=="}")){let u="Insufficient indentation in flow collection";this.error=new k.YAMLSemanticError(this,u);}}break;case",":this.items.push({char:a,offset:l}),l+=1;break;case"#":{let c=new hr;l=c.parse({src:s},l),this.items.push(c);}break;case"?":case":":{let c=s[l+1];if(c===`
|
|
143
|
+
`||c===" "||c===" "||c===","||a===":"&&this.prevNodeIsJsonLike()){this.items.push({char:a,offset:l}),l+=1;break}}default:{let c=r({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:o,parent:this},l);if(!c)return this.valueRange=new k.Range(t,l),l;this.items.push(c),l=k.Node.normalizeOffset(s,c.range.end);}}l=k.Node.endOfWhiteSpace(s,l),a=s[l];}return this.valueRange=new k.Range(t,l+1),a&&(this.items.push({char:a,offset:l}),l=k.Node.endOfWhiteSpace(s,l+1),l=this.parseComment(l)),l}setOrigRanges(e,t){return t=super.setOrigRanges(e,t),this.items.forEach(r=>{if(r instanceof k.Node)t=r.setOrigRanges(e,t);else if(e.length===0)r.origOffset=r.offset;else {let s=t;for(;s<e.length&&!(e[s]>r.offset);)++s;r.origOffset=r.offset+s,t=s;}}),t}toString(){let{context:{src:e},items:t,range:r,value:s}=this;if(s!=null)return s;let i=t.filter(l=>l instanceof k.Node),o="",a=r.start;return i.forEach(l=>{let c=e.slice(a,l.range.start);a=l.range.end,o+=c+String(l),o[o.length-1]===`
|
|
144
|
+
`&&e[a-1]!==`
|
|
145
|
+
`&&e[a]===`
|
|
146
|
+
`&&(a+=1);}),o+=e.slice(a,r.end),k.Node.addStringTerminator(e,r.end,o)}},cf=class n extends k.Node{static endOfQuote(e,t){let r=e[t];for(;r&&r!=='"';)t+=r==="\\"?2:1,r=e[t];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:t,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=='"'&&e.push(new k.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=t+1;a<r-1;++a){let l=i[a];if(l===`
|
|
147
|
+
`){k.Node.atDocumentBoundary(i,a+1)&&e.push(new k.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:c,offset:u,error:f}=k.Node.foldNewline(i,a,s);o+=c,a=u,f&&e.push(new k.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"));}else if(l==="\\")switch(a+=1,i[a]){case"0":o+="\0";break;case"a":o+="\x07";break;case"b":o+="\b";break;case"e":o+="\x1B";break;case"f":o+="\f";break;case"n":o+=`
|
|
148
|
+
`;break;case"r":o+="\r";break;case"t":o+=" ";break;case"v":o+="\v";break;case"N":o+="\x85";break;case"_":o+="\xA0";break;case"L":o+="\u2028";break;case"P":o+="\u2029";break;case" ":o+=" ";break;case'"':o+='"';break;case"/":o+="/";break;case"\\":o+="\\";break;case" ":o+=" ";break;case"x":o+=this.parseCharCode(a+1,2,e),a+=2;break;case"u":o+=this.parseCharCode(a+1,4,e),a+=4;break;case"U":o+=this.parseCharCode(a+1,8,e),a+=8;break;case`
|
|
149
|
+
`:for(;i[a+1]===" "||i[a+1]===" ";)a+=1;break;default:e.push(new k.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(a-1,2)}`)),o+="\\"+i[a];}else if(l===" "||l===" "){let c=a,u=i[a+1];for(;u===" "||u===" ";)a+=1,u=i[a+1];u!==`
|
|
150
|
+
`&&(o+=a>c?i.slice(c,a+1):l);}else o+=l;}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,t,r){let{src:s}=this.context,i=s.substr(e,t),a=i.length===t&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(a)?(r.push(new k.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,t+2)}`)),s.substr(e-2,t+2)):String.fromCodePoint(a)}parse(e,t){this.context=e;let{src:r}=e,s=n.endOfQuote(r,t+1);return this.valueRange=new k.Range(t,s),s=k.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},uf=class n extends k.Node{static endOfQuote(e,t){let r=e[t];for(;r;)if(r==="'"){if(e[t+1]!=="'")break;r=e[t+=2];}else r=e[t+=1];return t+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:t,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=="'"&&e.push(new k.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=t+1;a<r-1;++a){let l=i[a];if(l===`
|
|
151
|
+
`){k.Node.atDocumentBoundary(i,a+1)&&e.push(new k.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:c,offset:u,error:f}=k.Node.foldNewline(i,a,s);o+=c,a=u,f&&e.push(new k.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"));}else if(l==="'")o+=l,a+=1,i[a]!=="'"&&e.push(new k.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(l===" "||l===" "){let c=a,u=i[a+1];for(;u===" "||u===" ";)a+=1,u=i[a+1];u!==`
|
|
152
|
+
`&&(o+=a>c?i.slice(c,a+1):l);}else o+=l;}return e.length>0?{errors:e,str:o}:o}parse(e,t){this.context=e;let{src:r}=e,s=n.endOfQuote(r,t+1);return this.valueRange=new k.Range(t,s),s=k.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function D1(n,e){switch(n){case k.Type.ALIAS:return new of(n,e);case k.Type.BLOCK_FOLDED:case k.Type.BLOCK_LITERAL:return new af(n,e);case k.Type.FLOW_MAP:case k.Type.FLOW_SEQ:return new lf(n,e);case k.Type.MAP_KEY:case k.Type.MAP_VALUE:case k.Type.SEQ_ITEM:return new Ai(n,e);case k.Type.COMMENT:case k.Type.PLAIN:return new k.PlainValue(n,e);case k.Type.QUOTE_DOUBLE:return new cf(n,e);case k.Type.QUOTE_SINGLE:return new uf(n,e);default:return null}}var ff=class n{static parseType(e,t,r){switch(e[t]){case"*":return k.Type.ALIAS;case">":return k.Type.BLOCK_FOLDED;case"|":return k.Type.BLOCK_LITERAL;case"{":return k.Type.FLOW_MAP;case"[":return k.Type.FLOW_SEQ;case"?":return !r&&k.Node.atBlank(e,t+1,!0)?k.Type.MAP_KEY:k.Type.PLAIN;case":":return !r&&k.Node.atBlank(e,t+1,!0)?k.Type.MAP_VALUE:k.Type.PLAIN;case"-":return !r&&k.Node.atBlank(e,t+1,!0)?k.Type.SEQ_ITEM:k.Type.PLAIN;case'"':return k.Type.QUOTE_DOUBLE;case"'":return k.Type.QUOTE_SINGLE;default:return k.Type.PLAIN}}constructor(e={},{atLineStart:t,inCollection:r,inFlow:s,indent:i,lineStart:o,parent:a}={}){k._defineProperty(this,"parseNode",(l,c)=>{if(k.Node.atDocumentBoundary(this.src,c))return null;let u=new n(this,l),{props:f,type:h,valueStart:m}=u.parseProps(c),p=D1(h,f),d=p.parse(u,m);if(p.range=new k.Range(c,d),d<=c&&(p.error=new Error("Node#parse consumed no characters"),p.error.parseEnd=d,p.error.source=p,p.range.end=c+1),u.nodeStartsCollection(p)){!p.error&&!u.atLineStart&&u.parent.type===k.Type.DOCUMENT&&(p.error=new k.YAMLSyntaxError(p,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let g=new Ea(p);return d=g.parse(new n(u),d),g.range=new k.Range(c,d),g}return p}),this.atLineStart=t??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=i??e.indent,this.lineStart=o??e.lineStart,this.parent=a??(e.parent||{}),this.root=e.root,this.src=e.src;}nodeStartsCollection(e){let{inCollection:t,inFlow:r,src:s}=this;if(t||r)return !1;if(e instanceof Ai)return !0;let i=e.range.end;return s[i]===`
|
|
153
|
+
`||s[i-1]===`
|
|
154
|
+
`?!1:(i=k.Node.endOfWhiteSpace(s,i),s[i]===":")}parseProps(e){let{inFlow:t,parent:r,src:s}=this,i=[],o=!1;e=this.atLineStart?k.Node.endOfIndent(s,e):k.Node.endOfWhiteSpace(s,e);let a=s[e];for(;a===k.Char.ANCHOR||a===k.Char.COMMENT||a===k.Char.TAG||a===`
|
|
155
|
+
`;){if(a===`
|
|
156
|
+
`){let c=e,u;do u=c+1,c=k.Node.endOfIndent(s,u);while(s[c]===`
|
|
157
|
+
`);let f=c-(u+this.indent),h=r.type===k.Type.SEQ_ITEM&&r.context.atLineStart;if(s[c]!=="#"&&!k.Node.nextNodeIsIndented(s[c],f,!h))break;this.atLineStart=!0,this.lineStart=u,o=!1,e=c;}else if(a===k.Char.COMMENT){let c=k.Node.endOfLine(s,e+1);i.push(new k.Range(e,c)),e=c;}else {let c=k.Node.endOfIdentifier(s,e+1);a===k.Char.TAG&&s[c]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,c+13))&&(c=k.Node.endOfIdentifier(s,c+5)),i.push(new k.Range(e,c)),o=!0,e=k.Node.endOfWhiteSpace(s,c);}a=s[e];}o&&a===":"&&k.Node.atBlank(s,e+1,!0)&&(e-=1);let l=n.parseType(s,e,t);return {props:i,type:l,valueStart:e}}};function B1(n){let e=[];n.indexOf("\r")!==-1&&(n=n.replace(/\r\n?/g,(s,i)=>(s.length>1&&e.push(i),`
|
|
158
|
+
`)));let t=[],r=0;do{let s=new sf,i=new ff({src:n});r=s.parse(i,r),t.push(s);}while(r<n.length);return t.setOrigRanges=()=>{if(e.length===0)return !1;for(let i=1;i<e.length;++i)e[i]-=i;let s=0;for(let i=0;i<t.length;++i)s=t[i].setOrigRanges(e,s);return e.splice(0,e.length),!0},t.toString=()=>t.join(`...
|
|
159
|
+
`),t}nw.parse=B1;});var bi=ne(Se=>{var M=fr();function F1(n,e,t){return t?`#${t.replace(/[\s\S]^/gm,`$&${e}#`)}
|
|
160
|
+
${e}${n}`:n}function os(n,e,t){return t?t.indexOf(`
|
|
161
|
+
`)===-1?`${n} #${t}`:`${n}
|
|
162
|
+
`+t.replace(/^/gm,`${e||""}#`):n}var vt=class{};function Un(n,e,t){if(Array.isArray(n))return n.map((r,s)=>Un(r,String(s),t));if(n&&typeof n.toJSON=="function"){let r=t&&t.anchors&&t.anchors.get(n);r&&(t.onCreate=i=>{r.res=i,delete t.onCreate;});let s=n.toJSON(e,t);return r&&t.onCreate&&t.onCreate(s),s}return (!t||!t.keep)&&typeof n=="bigint"?Number(n):n}var Xe=class extends vt{constructor(e){super(),this.value=e;}toJSON(e,t){return t&&t.keep?this.value:Un(this.value,e,t)}toString(){return String(this.value)}};function sw(n,e,t){let r=t;for(let s=e.length-1;s>=0;--s){let i=e[s];if(Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o;}else {let o={};Object.defineProperty(o,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=o;}}return n.createNode(r,!1)}var aw=n=>n==null||typeof n=="object"&&n[Symbol.iterator]().next().done,Et=class n extends vt{constructor(e){super(),M._defineProperty(this,"items",[]),this.schema=e;}addIn(e,t){if(aw(e))this.add(t);else {let[r,...s]=e,i=this.get(r,!0);if(i instanceof n)i.addIn(s,t);else if(i===void 0&&this.schema)this.set(r,sw(this.schema,s,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn([e,...t]){if(t.length===0)return this.delete(e);let r=this.get(e,!0);if(r instanceof n)return r.deleteIn(t);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}getIn([e,...t],r){let s=this.get(e,!0);return t.length===0?!r&&s instanceof Xe?s.value:s:s instanceof n?s.getIn(t,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return !1;let t=e.value;return t==null||t instanceof Xe&&t.value==null&&!t.commentBefore&&!t.comment&&!t.tag})}hasIn([e,...t]){if(t.length===0)return this.has(e);let r=this.get(e,!0);return r instanceof n?r.hasIn(t):!1}setIn([e,...t],r){if(t.length===0)this.set(e,r);else {let s=this.get(e,!0);if(s instanceof n)s.setIn(t,r);else if(s===void 0&&this.schema)this.set(e,sw(this.schema,t,r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${t}`)}}toJSON(){return null}toString(e,{blockItem:t,flowChars:r,isMap:s,itemIndent:i},o,a){let{indent:l,indentStep:c,stringify:u}=e,f=this.type===M.Type.FLOW_MAP||this.type===M.Type.FLOW_SEQ||e.inFlow;f&&(i+=c);let h=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:h,indent:i,inFlow:f,type:null});let m=!1,p=!1,d=this.items.reduce((y,w,v)=>{let A;w&&(!m&&w.spaceBefore&&y.push({type:"comment",str:""}),w.commentBefore&&w.commentBefore.match(/^.*$/gm).forEach(S=>{y.push({type:"comment",str:`#${S}`});}),w.comment&&(A=w.comment),f&&(!m&&w.spaceBefore||w.commentBefore||w.comment||w.key&&(w.key.commentBefore||w.key.comment)||w.value&&(w.value.commentBefore||w.value.comment))&&(p=!0)),m=!1;let E=u(w,e,()=>A=null,()=>m=!0);return f&&!p&&E.includes(`
|
|
163
|
+
`)&&(p=!0),f&&v<this.items.length-1&&(E+=","),E=os(E,i,A),m&&(A||f)&&(m=!1),y.push({type:"item",str:E}),y},[]),g;if(d.length===0)g=r.start+r.end;else if(f){let{start:y,end:w}=r,v=d.map(A=>A.str);if(p||v.reduce((A,E)=>A+E.length+2,2)>n.maxFlowStringSingleLineLength){g=y;for(let A of v)g+=A?`
|
|
164
|
+
${c}${l}${A}`:`
|
|
165
|
+
`;g+=`
|
|
166
|
+
${l}${w}`;}else g=`${y} ${v.join(" ")} ${w}`;}else {let y=d.map(t);g=y.shift();for(let w of y)g+=w?`
|
|
167
|
+
${l}${w}`:`
|
|
168
|
+
`;}return this.comment?(g+=`
|
|
169
|
+
`+this.comment.replace(/^/gm,`${l}#`),o&&o()):m&&a&&a(),g}};M._defineProperty(Et,"maxFlowStringSingleLineLength",60);function Aa(n){let e=n instanceof Xe?n.value:n;return e&&typeof e=="string"&&(e=Number(e)),Number.isInteger(e)&&e>=0?e:null}var Qn=class extends Et{add(e){this.items.push(e);}delete(e){let t=Aa(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let r=Aa(e);if(typeof r!="number")return;let s=this.items[r];return !t&&s instanceof Xe?s.value:s}has(e){let t=Aa(e);return typeof t=="number"&&t<this.items.length}set(e,t){let r=Aa(e);if(typeof r!="number")throw new Error(`Expected a valid index, not ${e}.`);this.items[r]=t;}toJSON(e,t){let r=[];t&&t.onCreate&&t.onCreate(r);let s=0;for(let i of this.items)r.push(Un(i,String(s++),t));return r}toString(e,t,r){return e?super.toString(e,{blockItem:s=>s.type==="comment"?s.str:`- ${s.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},t,r):JSON.stringify(this)}},j1=(n,e,t)=>e===null?"":typeof e!="object"?String(e):n instanceof vt&&t&&t.doc?n.toString({anchors:Object.create(null),doc:t.doc,indent:"",indentStep:t.indentStep,inFlow:!0,inStringifyKey:!0,stringify:t.stringify}):JSON.stringify(e),ge=class n extends vt{constructor(e,t=null){super(),this.key=e,this.value=t,this.type=n.Type.PAIR;}get commentBefore(){return this.key instanceof vt?this.key.commentBefore:void 0}set commentBefore(e){if(this.key==null&&(this.key=new Xe(null)),this.key instanceof vt)this.key.commentBefore=e;else {let t="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(t)}}addToJSMap(e,t){let r=Un(this.key,"",e);if(t instanceof Map){let s=Un(this.value,r,e);t.set(r,s);}else if(t instanceof Set)t.add(r);else {let s=j1(this.key,r,e),i=Un(this.value,s,e);s in t?Object.defineProperty(t,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):t[s]=i;}return t}toJSON(e,t){let r=t&&t.mapAsMap?new Map:{};return this.addToJSMap(t,r)}toString(e,t,r){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:i,simpleKeys:o}=e.doc.options,{key:a,value:l}=this,c=a instanceof vt&&a.comment;if(o){if(c)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof Et){let E="With simple keys, collection cannot be used as a key value";throw new Error(E)}}let u=!o&&(!a||c||(a instanceof vt?a instanceof Et||a.type===M.Type.BLOCK_FOLDED||a.type===M.Type.BLOCK_LITERAL:typeof a=="object")),{doc:f,indent:h,indentStep:m,stringify:p}=e;e=Object.assign({},e,{implicitKey:!u,indent:h+m});let d=!1,g=p(a,e,()=>c=null,()=>d=!0);if(g=os(g,e.indent,c),!u&&g.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");u=!0;}if(e.allNullValues&&!o)return this.comment?(g=os(g,e.indent,this.comment),t&&t()):d&&!c&&r&&r(),e.inFlow&&!u?g:`? ${g}`;g=u?`? ${g}
|
|
170
|
+
${h}:`:`${g}:`,this.comment&&(g=os(g,e.indent,this.comment),t&&t());let y="",w=null;if(l instanceof vt){if(l.spaceBefore&&(y=`
|
|
171
|
+
`),l.commentBefore){let E=l.commentBefore.replace(/^/gm,`${e.indent}#`);y+=`
|
|
172
|
+
${E}`;}w=l.comment;}else l&&typeof l=="object"&&(l=f.schema.createNode(l,!0));e.implicitKey=!1,!u&&!this.comment&&l instanceof Xe&&(e.indentAtStart=g.length+1),d=!1,!i&&s>=2&&!e.inFlow&&!u&&l instanceof Qn&&l.type!==M.Type.FLOW_SEQ&&!l.tag&&!f.anchors.getName(l)&&(e.indent=e.indent.substr(2));let v=p(l,e,()=>w=null,()=>d=!0),A=" ";return y||this.comment?A=`${y}
|
|
173
|
+
${e.indent}`:!u&&l instanceof Et?(!(v[0]==="["||v[0]==="{")||v.includes(`
|
|
174
|
+
`))&&(A=`
|
|
175
|
+
${e.indent}`):v[0]===`
|
|
176
|
+
`&&(A=""),d&&!w&&r&&r(),os(g+A+v,e.indent,w)}};M._defineProperty(ge,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Sa=(n,e)=>{if(n instanceof mr){let t=e.get(n.source);return t.count*t.aliasCount}else if(n instanceof Et){let t=0;for(let r of n.items){let s=Sa(r,e);s>t&&(t=s);}return t}else if(n instanceof ge){let t=Sa(n.key,e),r=Sa(n.value,e);return Math.max(t,r)}return 1},mr=class n extends vt{static stringify({range:e,source:t},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(c=>r[c]===t);if(!a&&o&&(a=s.anchors.getName(t)||s.anchors.newName()),a)return `*${a}${i?" ":""}`;let l=s.anchors.getName(t)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${l} [${e}]`)}constructor(e){super(),this.source=e,this.type=M.Type.ALIAS;}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,t){if(!t)return Un(this.source,e,t);let{anchors:r,maxAliasCount:s}=t,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new M.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=Sa(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new M.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return n.stringify(this,e)}};M._defineProperty(mr,"default",!0);function Si(n,e){let t=e instanceof Xe?e.value:e;for(let r of n)if(r instanceof ge&&(r.key===e||r.key===t||r.key&&r.key.value===t))return r}var _i=class extends Et{add(e,t){e?e instanceof ge||(e=new ge(e.key||e,e.value)):e=new ge(e);let r=Si(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(t)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e);}else this.items.push(e);}delete(e){let t=Si(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let r=Si(this.items,e),s=r&&r.value;return !t&&s instanceof Xe?s.value:s}has(e){return !!Si(this.items,e)}set(e,t){this.add(new ge(e,t),!0);}toJSON(e,t,r){let s=r?new r:t&&t.mapAsMap?new Map:{};t&&t.onCreate&&t.onCreate(s);for(let i of this.items)i.addToJSMap(t,s);return s}toString(e,t,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof ge))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},t,r)}},lw="<<",xa=class extends ge{constructor(e){if(e instanceof ge){let t=e.value;t instanceof Qn||(t=new Qn,t.items.push(e.value),t.range=e.value.range),super(e.key,t),this.range=e.range;}else super(new Xe(lw),new Qn);this.type=ge.Type.MERGE_PAIR;}addToJSMap(e,t){for(let{source:r}of this.value.items){if(!(r instanceof _i))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)t instanceof Map?t.has(i)||t.set(i,o):t instanceof Set?t.add(i):Object.prototype.hasOwnProperty.call(t,i)||Object.defineProperty(t,i,{value:o,writable:!0,enumerable:!0,configurable:!0});}return t}toString(e,t){let r=this.value;if(r.items.length>1)return super.toString(e,t);this.value=r.items[0];let s=super.toString(e,t);return this.value=r,s}},U1={defaultType:M.Type.BLOCK_LITERAL,lineWidth:76},Q1={trueStr:"true",falseStr:"false"},W1={asBigInt:!1},q1={nullStr:"null"},gr={defaultType:M.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function df(n,e,t){for(let{format:r,test:s,resolve:i}of e)if(s){let o=n.match(s);if(o){let a=i.apply(null,o);return a instanceof Xe||(a=new Xe(a)),r&&(a.format=r),a}}return t&&(n=t(n)),new Xe(n)}var cw="flow",hf="block",_a="quoted",iw=(n,e)=>{let t=n[e+1];for(;t===" "||t===" ";){do t=n[e+=1];while(t&&t!==`
|
|
177
|
+
`);t=n[e+1];}return e};function Ca(n,e,t,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return n;let l=Math.max(1+i,1+s-e.length);if(n.length<=l)return n;let c=[],u={},f=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?c.push(0):f=s-r);let h,m,p=!1,d=-1,g=-1,y=-1;t===hf&&(d=iw(n,d),d!==-1&&(f=d+l));for(let v;v=n[d+=1];){if(t===_a&&v==="\\"){switch(g=d,n[d+1]){case"x":d+=3;break;case"u":d+=5;break;case"U":d+=9;break;default:d+=1;}y=d;}if(v===`
|
|
178
|
+
`)t===hf&&(d=iw(n,d)),f=d+l,h=void 0;else {if(v===" "&&m&&m!==" "&&m!==`
|
|
179
|
+
`&&m!==" "){let A=n[d+1];A&&A!==" "&&A!==`
|
|
180
|
+
`&&A!==" "&&(h=d);}if(d>=f)if(h)c.push(h),f=h+l,h=void 0;else if(t===_a){for(;m===" "||m===" ";)m=v,v=n[d+=1],p=!0;let A=d>y+1?d-2:g-1;if(u[A])return n;c.push(A),u[A]=!0,f=A+l,h=void 0;}else p=!0;}m=v;}if(p&&a&&a(),c.length===0)return n;o&&o();let w=n.slice(0,c[0]);for(let v=0;v<c.length;++v){let A=c[v],E=c[v+1]||n.length;A===0?w=`
|
|
181
|
+
${e}${n.slice(0,E)}`:(t===_a&&u[A]&&(w+=`${n[A]}\\`),w+=`
|
|
182
|
+
${e}${n.slice(A+1,E)}`);}return w}var pf=({indentAtStart:n})=>n?Object.assign({indentAtStart:n},gr.fold):gr.fold,Ia=n=>/^(%|---|\.\.\.)/m.test(n);function H1(n,e,t){if(!e||e<0)return !1;let r=e-t,s=n.length;if(s<=r)return !1;for(let i=0,o=0;i<s;++i)if(n[i]===`
|
|
183
|
+
`){if(i-o>r)return !0;if(o=i+1,s-o<=r)return !1}return !0}function pr(n,e){let{implicitKey:t}=e,{jsonEncoding:r,minMultiLineLength:s}=gr.doubleQuoted,i=JSON.stringify(n);if(r)return i;let o=e.indent||(Ia(n)?" ":""),a="",l=0;for(let c=0,u=i[c];u;u=i[++c])if(u===" "&&i[c+1]==="\\"&&i[c+2]==="n"&&(a+=i.slice(l,c)+"\\ ",c+=1,l=c,u="\\"),u==="\\")switch(i[c+1]){case"u":{a+=i.slice(l,c);let f=i.substr(c+2,4);switch(f){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:f.substr(0,2)==="00"?a+="\\x"+f.substr(2):a+=i.substr(c,6);}c+=5,l=c+1;}break;case"n":if(t||i[c+2]==='"'||i.length<s)c+=1;else {for(a+=i.slice(l,c)+`
|
|
184
|
+
|
|
185
|
+
`;i[c+2]==="\\"&&i[c+3]==="n"&&i[c+4]!=='"';)a+=`
|
|
186
|
+
`,c+=2;a+=o,i[c+2]===" "&&(a+="\\"),c+=1,l=c+1;}break;default:c+=1;}return a=l?a+i.slice(l):i,t?a:Ca(a,o,_a,pf(e))}function uw(n,e){if(e.implicitKey){if(/\n/.test(n))return pr(n,e)}else if(/[ \t]\n|\n[ \t]/.test(n))return pr(n,e);let t=e.indent||(Ia(n)?" ":""),r="'"+n.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
187
|
+
${t}`)+"'";return e.implicitKey?r:Ca(r,t,cw,pf(e))}function ba({comment:n,type:e,value:t},r,s,i){if(/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return pr(t,r);let o=r.indent||(r.forceBlockIndent||Ia(t)?" ":""),a=o?"2":"1",l=e===M.Type.BLOCK_FOLDED?!1:e===M.Type.BLOCK_LITERAL?!0:!H1(t,gr.fold.lineWidth,o.length),c=l?"|":">";if(!t)return c+`
|
|
188
|
+
`;let u="",f="";if(t=t.replace(/[\n\t ]*$/,m=>{let p=m.indexOf(`
|
|
189
|
+
`);return p===-1?c+="-":(t===m||p!==m.length-1)&&(c+="+",i&&i()),f=m.replace(/\n$/,""),""}).replace(/^[\n ]*/,m=>{m.indexOf(" ")!==-1&&(c+=a);let p=m.match(/ +$/);return p?(u=m.slice(0,-p[0].length),p[0]):(u=m,"")}),f&&(f=f.replace(/\n+(?!\n|$)/g,`$&${o}`)),u&&(u=u.replace(/\n+/g,`$&${o}`)),n&&(c+=" #"+n.replace(/ ?[\r\n]+/g," "),s&&s()),!t)return `${c}${a}
|
|
190
|
+
${o}${f}`;if(l)return t=t.replace(/\n+/g,`$&${o}`),`${c}
|
|
191
|
+
${o}${u}${t}${f}`;t=t.replace(/\n+/g,`
|
|
192
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);let h=Ca(`${u}${t}${f}`,o,hf,gr.fold);return `${c}
|
|
193
|
+
${o}${h}`}function z1(n,e,t,r){let{comment:s,type:i,value:o}=n,{actualString:a,implicitKey:l,indent:c,inFlow:u}=e;if(l&&/[\n[\]{},]/.test(o)||u&&/[[\]{},]/.test(o))return pr(o,e);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return l||u||o.indexOf(`
|
|
194
|
+
`)===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?uw(o,e):pr(o,e):ba(n,e,t,r);if(!l&&!u&&i!==M.Type.PLAIN&&o.indexOf(`
|
|
195
|
+
`)!==-1)return ba(n,e,t,r);if(c===""&&Ia(o))return e.forceBlockIndent=!0,ba(n,e,t,r);let f=o.replace(/\n+/g,`$&
|
|
196
|
+
${c}`);if(a){let{tags:m}=e.doc.schema;if(typeof df(f,m,m.scalarFallback).value!="string")return pr(o,e)}let h=l?f:Ca(f,c,cw,pf(e));return s&&!u&&(h.indexOf(`
|
|
197
|
+
`)!==-1||s.indexOf(`
|
|
198
|
+
`)!==-1)?(t&&t(),F1(h,c,s)):h}function G1(n,e,t,r){let{defaultType:s}=gr,{implicitKey:i,inFlow:o}=e,{type:a,value:l}=n;typeof l!="string"&&(l=String(l),n=Object.assign({},n,{value:l}));let c=f=>{switch(f){case M.Type.BLOCK_FOLDED:case M.Type.BLOCK_LITERAL:return ba(n,e,t,r);case M.Type.QUOTE_DOUBLE:return pr(l,e);case M.Type.QUOTE_SINGLE:return uw(l,e);case M.Type.PLAIN:return z1(n,e,t,r);default:return null}};(a!==M.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(l)||(i||o)&&(a===M.Type.BLOCK_FOLDED||a===M.Type.BLOCK_LITERAL))&&(a=M.Type.QUOTE_DOUBLE);let u=c(a);if(u===null&&(u=c(s),u===null))throw new Error(`Unsupported default string type ${s}`);return u}function K1({format:n,minFractionDigits:e,tag:t,value:r}){if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(r);if(!n&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let o=e-(s.length-i-1);for(;o-- >0;)s+="0";}return s}function fw(n,e){let t,r;switch(e.type){case M.Type.FLOW_MAP:t="}",r="flow map";break;case M.Type.FLOW_SEQ:t="]",r="flow sequence";break;default:n.push(new M.YAMLSemanticError(e,"Not a flow collection!?"));return}let s;for(let i=e.items.length-1;i>=0;--i){let o=e.items[i];if(!o||o.type!==M.Type.COMMENT){s=o;break}}if(s&&s.char!==t){let i=`Expected ${r} to end with ${t}`,o;typeof s.offset=="number"?(o=new M.YAMLSemanticError(e,i),o.offset=s.offset+1):(o=new M.YAMLSemanticError(s,i),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),n.push(o);}}function hw(n,e){let t=e.context.src[e.range.start-1];if(t!==`
|
|
199
|
+
`&&t!==" "&&t!==" "){let r="Comments must be separated from other tokens by white space characters";n.push(new M.YAMLSemanticError(e,r));}}function dw(n,e){let t=String(e),r=t.substr(0,8)+"..."+t.substr(-8);return new M.YAMLSemanticError(n,`The "${r}" key is too long`)}function pw(n,e){for(let{afterKey:t,before:r,comment:s}of e){let i=n.items[r];i?(t&&i.value&&(i=i.value),s===void 0?(t||!i.commentBefore)&&(i.spaceBefore=!0):i.commentBefore?i.commentBefore+=`
|
|
200
|
+
`+s:i.commentBefore=s):s!==void 0&&(n.comment?n.comment+=`
|
|
201
|
+
`+s:n.comment=s);}}function mf(n,e){let t=e.strValue;return t?typeof t=="string"?t:(t.errors.forEach(r=>{r.source||(r.source=e),n.errors.push(r);}),t.str):""}function V1(n,e){let{handle:t,suffix:r}=e.tag,s=n.tagPrefixes.find(i=>i.handle===t);if(!s){let i=n.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===t)),!s)throw new M.YAMLSemanticError(e,`The ${t} tag handle is non-default and was not declared.`)}if(!r)throw new M.YAMLSemanticError(e,`The ${t} tag has no suffix.`);if(t==="!"&&(n.version||n.options.version)==="1.0"){if(r[0]==="^")return n.warnings.push(new M.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function J1(n,e){let{tag:t,type:r}=e,s=!1;if(t){let{handle:i,suffix:o,verbatim:a}=t;if(a){if(a!=="!"&&a!=="!!")return a;let l=`Verbatim tags aren't resolved, so ${a} is invalid.`;n.errors.push(new M.YAMLSemanticError(e,l));}else if(i==="!"&&!o)s=!0;else try{return V1(n,e)}catch(l){n.errors.push(l);}}switch(r){case M.Type.BLOCK_FOLDED:case M.Type.BLOCK_LITERAL:case M.Type.QUOTE_DOUBLE:case M.Type.QUOTE_SINGLE:return M.defaultTags.STR;case M.Type.FLOW_MAP:case M.Type.MAP:return M.defaultTags.MAP;case M.Type.FLOW_SEQ:case M.Type.SEQ:return M.defaultTags.SEQ;case M.Type.PLAIN:return s?M.defaultTags.STR:null;default:return null}}function ow(n,e,t){let{tags:r}=n.schema,s=[];for(let o of r)if(o.tag===t)if(o.test)s.push(o);else {let a=o.resolve(n,e);return a instanceof Et?a:new Xe(a)}let i=mf(n,e);return typeof i=="string"&&s.length>0?df(i,s,r.scalarFallback):null}function Y1({type:n}){switch(n){case M.Type.FLOW_MAP:case M.Type.MAP:return M.defaultTags.MAP;case M.Type.FLOW_SEQ:case M.Type.SEQ:return M.defaultTags.SEQ;default:return M.defaultTags.STR}}function X1(n,e,t){try{let r=ow(n,e,t);if(r)return t&&e.tag&&(r.tag=t),r}catch(r){return r.source||(r.source=e),n.errors.push(r),null}try{let r=Y1(e);if(!r)throw new Error(`The tag ${t} is unavailable`);let s=`The tag ${t} is unavailable, falling back to ${r}`;n.warnings.push(new M.YAMLWarning(e,s));let i=ow(n,e,r);return i.tag=t,i}catch(r){let s=new M.YAMLReferenceError(e,r.message);return s.stack=r.stack,n.errors.push(s),null}}var Z1=n=>{if(!n)return !1;let{type:e}=n;return e===M.Type.MAP_KEY||e===M.Type.MAP_VALUE||e===M.Type.SEQ_ITEM};function eR(n,e){let t={before:[],after:[]},r=!1,s=!1,i=Z1(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case M.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let f="Comments must be separated from other tokens by white space characters";n.push(new M.YAMLSemanticError(e,f));}let{header:l,valueRange:c}=e;(c&&(o>c.start||l&&o>l.start)?t.after:t.before).push(e.context.src.slice(o+1,a));break}case M.Char.ANCHOR:if(r){let l="A node can have at most one anchor";n.push(new M.YAMLSemanticError(e,l));}r=!0;break;case M.Char.TAG:if(s){let l="A node can have at most one tag";n.push(new M.YAMLSemanticError(e,l));}s=!0;break}return {comments:t,hasAnchor:r,hasTag:s}}function tR(n,e){let{anchors:t,errors:r,schema:s}=n;if(e.type===M.Type.ALIAS){let o=e.rawValue,a=t.getNode(o);if(!a){let c=`Aliased anchor not found: ${o}`;return r.push(new M.YAMLReferenceError(e,c)),null}let l=new mr(a);return t._cstAliases.push(l),l}let i=J1(n,e);if(i)return X1(n,e,i);if(e.type!==M.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new M.YAMLSyntaxError(e,o)),null}try{let o=mf(n,e);return df(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function Wn(n,e){if(!e)return null;e.error&&n.errors.push(e.error);let{comments:t,hasAnchor:r,hasTag:s}=eR(n.errors,e);if(r){let{anchors:o}=n,a=e.anchor,l=o.getNode(a);l&&(o.map[o.newName(a)]=l),o.map[a]=e;}if(e.type===M.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";n.errors.push(new M.YAMLSemanticError(e,o));}let i=tR(n,e);if(i){i.range=[e.range.start,e.range.end],n.options.keepCstNodes&&(i.cstNode=e),n.options.keepNodeTypes&&(i.type=e.type);let o=t.before.join(`
|
|
202
|
+
`);o&&(i.commentBefore=i.commentBefore?`${i.commentBefore}
|
|
203
|
+
${o}`:o);let a=t.after.join(`
|
|
204
|
+
`);a&&(i.comment=i.comment?`${i.comment}
|
|
205
|
+
${a}`:a);}return e.resolved=i}function nR(n,e){if(e.type!==M.Type.MAP&&e.type!==M.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return n.errors.push(new M.YAMLSyntaxError(e,o)),null}let{comments:t,items:r}=e.type===M.Type.FLOW_MAP?oR(n,e):iR(n,e),s=new _i;s.items=r,pw(s,t);let i=!1;for(let o=0;o<r.length;++o){let{key:a}=r[o];if(a instanceof Et&&(i=!0),n.schema.merge&&a&&a.value===lw){r[o]=new xa(r[o]);let l=r[o].value.items,c=null;l.some(u=>{if(u instanceof mr){let{type:f}=u.source;return f===M.Type.MAP||f===M.Type.FLOW_MAP?!1:c="Merge nodes aliases can only point to maps"}return c="Merge nodes can only have Alias nodes as values"}),c&&n.errors.push(new M.YAMLSemanticError(e,c));}else for(let l=o+1;l<r.length;++l){let{key:c}=r[l];if(a===c||a&&c&&Object.prototype.hasOwnProperty.call(a,"value")&&a.value===c.value){let u=`Map keys must be unique; "${a}" is repeated`;n.errors.push(new M.YAMLSemanticError(e,u));break}}}if(i&&!n.options.mapAsMap){let o="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";n.warnings.push(new M.YAMLWarning(e,o));}return e.resolved=s,s}var rR=({context:{lineStart:n,node:e,src:t},props:r})=>{if(r.length===0)return !1;let{start:s}=r[0];if(e&&s>e.valueRange.start||t[s]!==M.Char.COMMENT)return !1;for(let i=n;i<s;++i)if(t[i]===`
|
|
206
|
+
`)return !1;return !0};function sR(n,e){if(!rR(n))return;let t=n.getPropValue(0,M.Char.COMMENT,!0),r=!1,s=e.value.commentBefore;if(s&&s.startsWith(t))e.value.commentBefore=s.substr(t.length+1),r=!0;else {let i=e.value.comment;!n.node&&i&&i.startsWith(t)&&(e.value.comment=i.substr(t.length+1),r=!0);}r&&(e.comment=t);}function iR(n,e){let t=[],r=[],s,i=null;for(let o=0;o<e.items.length;++o){let a=e.items[o];switch(a.type){case M.Type.BLANK_LINE:t.push({afterKey:!!s,before:r.length});break;case M.Type.COMMENT:t.push({afterKey:!!s,before:r.length,comment:a.comment});break;case M.Type.MAP_KEY:s!==void 0&&r.push(new ge(s)),a.error&&n.errors.push(a.error),s=Wn(n,a.node),i=null;break;case M.Type.MAP_VALUE:{if(s===void 0&&(s=null),a.error&&n.errors.push(a.error),!a.context.atLineStart&&a.node&&a.node.type===M.Type.MAP&&!a.node.context.atLineStart){let u="Nested mappings are not allowed in compact mappings";n.errors.push(new M.YAMLSemanticError(a.node,u));}let l=a.node;if(!l&&a.props.length>0){l=new M.PlainValue(M.Type.PLAIN,[]),l.context={parent:a,src:a.context.src};let u=a.range.start+1;if(l.range={start:u,end:u},l.valueRange={start:u,end:u},typeof a.range.origStart=="number"){let f=a.range.origStart+1;l.range.origStart=l.range.origEnd=f,l.valueRange.origStart=l.valueRange.origEnd=f;}}let c=new ge(s,Wn(n,l));sR(a,c),r.push(c),s&&typeof i=="number"&&a.range.start>i+1024&&n.errors.push(dw(e,s)),s=void 0,i=null;}break;default:s!==void 0&&r.push(new ge(s)),s=Wn(n,a),i=a.range.start,a.error&&n.errors.push(a.error);e:for(let l=o+1;;++l){let c=e.items[l];switch(c&&c.type){case M.Type.BLANK_LINE:case M.Type.COMMENT:continue e;case M.Type.MAP_VALUE:break e;default:{let u="Implicit map keys need to be followed by map values";n.errors.push(new M.YAMLSemanticError(a,u));break e}}}if(a.valueRangeContainsNewline){let l="Implicit map keys need to be on a single line";n.errors.push(new M.YAMLSemanticError(a,l));}}}return s!==void 0&&r.push(new ge(s)),{comments:t,items:r}}function oR(n,e){let t=[],r=[],s,i=!1,o="{";for(let a=0;a<e.items.length;++a){let l=e.items[a];if(typeof l.char=="string"){let{char:c,offset:u}=l;if(c==="?"&&s===void 0&&!i){i=!0,o=":";continue}if(c===":"){if(s===void 0&&(s=null),o===":"){o=",";continue}}else if(i&&(s===void 0&&c!==","&&(s=null),i=!1),s!==void 0&&(r.push(new ge(s)),s=void 0,c===",")){o=":";continue}if(c==="}"){if(a===e.items.length-1)continue}else if(c===o){o=":";continue}let f=`Flow map contains an unexpected ${c}`,h=new M.YAMLSyntaxError(e,f);h.offset=u,n.errors.push(h);}else l.type===M.Type.BLANK_LINE?t.push({afterKey:!!s,before:r.length}):l.type===M.Type.COMMENT?(hw(n.errors,l),t.push({afterKey:!!s,before:r.length,comment:l.comment})):s===void 0?(o===","&&n.errors.push(new M.YAMLSemanticError(l,"Separator , missing in flow map")),s=Wn(n,l)):(o!==","&&n.errors.push(new M.YAMLSemanticError(l,"Indicator : missing in flow map entry")),r.push(new ge(s,Wn(n,l))),s=void 0,i=!1);}return fw(n.errors,e),s!==void 0&&r.push(new ge(s)),{comments:t,items:r}}function aR(n,e){if(e.type!==M.Type.SEQ&&e.type!==M.Type.FLOW_SEQ){let i=`A ${e.type} node cannot be resolved as a sequence`;return n.errors.push(new M.YAMLSyntaxError(e,i)),null}let{comments:t,items:r}=e.type===M.Type.FLOW_SEQ?cR(n,e):lR(n,e),s=new Qn;if(s.items=r,pw(s,t),!n.options.mapAsMap&&r.some(i=>i instanceof ge&&i.key instanceof Et)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";n.warnings.push(new M.YAMLWarning(e,i));}return e.resolved=s,s}function lR(n,e){let t=[],r=[];for(let s=0;s<e.items.length;++s){let i=e.items[s];switch(i.type){case M.Type.BLANK_LINE:t.push({before:r.length});break;case M.Type.COMMENT:t.push({comment:i.comment,before:r.length});break;case M.Type.SEQ_ITEM:if(i.error&&n.errors.push(i.error),r.push(Wn(n,i.node)),i.hasProps){let o="Sequence items cannot have tags or anchors before the - indicator";n.errors.push(new M.YAMLSemanticError(i,o));}break;default:i.error&&n.errors.push(i.error),n.errors.push(new M.YAMLSyntaxError(i,`Unexpected ${i.type} node in sequence`));}}return {comments:t,items:r}}function cR(n,e){let t=[],r=[],s=!1,i,o=null,a="[",l=null;for(let c=0;c<e.items.length;++c){let u=e.items[c];if(typeof u.char=="string"){let{char:f,offset:h}=u;if(f!==":"&&(s||i!==void 0)&&(s&&i===void 0&&(i=a?r.pop():null),r.push(new ge(i)),s=!1,i=void 0,o=null),f===a)a=null;else if(!a&&f==="?")s=!0;else if(a!=="["&&f===":"&&i===void 0){if(a===","){if(i=r.pop(),i instanceof ge){let m="Chaining flow sequence pairs is invalid",p=new M.YAMLSemanticError(e,m);p.offset=h,n.errors.push(p);}if(!s&&typeof o=="number"){let m=u.range?u.range.start:u.offset;m>o+1024&&n.errors.push(dw(e,i));let{src:p}=l.context;for(let d=o;d<m;++d)if(p[d]===`
|
|
207
|
+
`){let g="Implicit keys of flow sequence pairs need to be on a single line";n.errors.push(new M.YAMLSemanticError(l,g));break}}}else i=null;o=null,s=!1,a=null;}else if(a==="["||f!=="]"||c<e.items.length-1){let m=`Flow sequence contains an unexpected ${f}`,p=new M.YAMLSyntaxError(e,m);p.offset=h,n.errors.push(p);}}else if(u.type===M.Type.BLANK_LINE)t.push({before:r.length});else if(u.type===M.Type.COMMENT)hw(n.errors,u),t.push({comment:u.comment,before:r.length});else {if(a){let h=`Expected a ${a} in flow sequence`;n.errors.push(new M.YAMLSemanticError(u,h));}let f=Wn(n,u);i===void 0?(r.push(f),l=u):(r.push(new ge(i,f)),i=void 0),o=u.range.start,a=",";}}return fw(n.errors,e),i!==void 0&&r.push(new ge(i)),{comments:t,items:r}}Se.Alias=mr;Se.Collection=Et;Se.Merge=xa;Se.Node=vt;Se.Pair=ge;Se.Scalar=Xe;Se.YAMLMap=_i;Se.YAMLSeq=Qn;Se.addComment=os;Se.binaryOptions=U1;Se.boolOptions=Q1;Se.findPair=Si;Se.intOptions=W1;Se.isEmptyPath=aw;Se.nullOptions=q1;Se.resolveMap=nR;Se.resolveNode=Wn;Se.resolveSeq=aR;Se.resolveString=mf;Se.strOptions=gr;Se.stringifyNumber=K1;Se.stringifyString=G1;Se.toJSON=Un;});var vf=ne(Kt=>{var At=fr(),ue=bi(),uR={identify:n=>n instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(n,e)=>{let t=ue.resolveString(n,e);if(typeof Buffer=="function")return Buffer.from(t,"base64");if(typeof atob=="function"){let r=atob(t.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i<r.length;++i)s[i]=r.charCodeAt(i);return s}else {let r="This environment does not support reading binary tags; either Buffer or atob is required";return n.errors.push(new At.YAMLReferenceError(e,r)),null}},options:ue.binaryOptions,stringify:({comment:n,type:e,value:t},r,s,i)=>{let o;if(typeof Buffer=="function")o=t instanceof Buffer?t.toString("base64"):Buffer.from(t.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let l=0;l<t.length;++l)a+=String.fromCharCode(t[l]);o=btoa(a);}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=ue.binaryOptions.defaultType),e===At.Type.QUOTE_DOUBLE)t=o;else {let{lineWidth:a}=ue.binaryOptions,l=Math.ceil(o.length/a),c=new Array(l);for(let u=0,f=0;u<l;++u,f+=a)c[u]=o.substr(f,a);t=c.join(e===At.Type.BLOCK_LITERAL?`
|
|
208
|
+
`:" ");}return ue.stringifyString({comment:n,type:e,value:t},r,s,i)}};function gw(n,e){let t=ue.resolveSeq(n,e);for(let r=0;r<t.items.length;++r){let s=t.items[r];if(!(s instanceof ue.Pair)){if(s instanceof ue.YAMLMap){if(s.items.length>1){let o="Each pair must have its own sequence indicator";throw new At.YAMLSemanticError(e,o)}let i=s.items[0]||new ue.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore}
|
|
209
|
+
${i.commentBefore}`:s.commentBefore),s.comment&&(i.comment=i.comment?`${s.comment}
|
|
210
|
+
${i.comment}`:s.comment),s=i;}t.items[r]=s instanceof ue.Pair?s:new ue.Pair(s);}}return t}function yw(n,e,t){let r=new ue.YAMLSeq(n);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let l=Object.keys(s);if(l.length===1)i=l[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=n.createPair(i,o,t);r.items.push(a);}return r}var fR={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:gw,createNode:yw},as=class n extends ue.YAMLSeq{constructor(){super(),At._defineProperty(this,"add",ue.YAMLMap.prototype.add.bind(this)),At._defineProperty(this,"delete",ue.YAMLMap.prototype.delete.bind(this)),At._defineProperty(this,"get",ue.YAMLMap.prototype.get.bind(this)),At._defineProperty(this,"has",ue.YAMLMap.prototype.has.bind(this)),At._defineProperty(this,"set",ue.YAMLMap.prototype.set.bind(this)),this.tag=n.tag;}toJSON(e,t){let r=new Map;t&&t.onCreate&&t.onCreate(r);for(let s of this.items){let i,o;if(s instanceof ue.Pair?(i=ue.toJSON(s.key,"",t),o=ue.toJSON(s.value,i,t)):i=ue.toJSON(s,"",t),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o);}return r}};At._defineProperty(as,"tag","tag:yaml.org,2002:omap");function hR(n,e){let t=gw(n,e),r=[];for(let{key:s}of t.items)if(s instanceof ue.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new At.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new as,t)}function dR(n,e,t){let r=yw(n,e,t),s=new as;return s.items=r.items,s}var pR={identify:n=>n instanceof Map,nodeClass:as,default:!1,tag:"tag:yaml.org,2002:omap",resolve:hR,createNode:dR},ls=class n extends ue.YAMLMap{constructor(){super(),this.tag=n.tag;}add(e){let t=e instanceof ue.Pair?e:new ue.Pair(e);ue.findPair(this.items,t.key)||this.items.push(t);}get(e,t){let r=ue.findPair(this.items,e);return !t&&r instanceof ue.Pair?r.key instanceof ue.Scalar?r.key.value:r.key:r}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let r=ue.findPair(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new ue.Pair(e));}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,t,r);throw new Error("Set items must all have null values")}};At._defineProperty(ls,"tag","tag:yaml.org,2002:set");function mR(n,e){let t=ue.resolveMap(n,e);if(!t.hasAllNullValues())throw new At.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new ls,t)}function gR(n,e,t){let r=new ls;for(let s of e)r.items.push(n.createPair(s,null,t));return r}var yR={identify:n=>n instanceof Set,nodeClass:ls,default:!1,tag:"tag:yaml.org,2002:set",resolve:mR,createNode:gR},gf=(n,e)=>{let t=e.split(":").reduce((r,s)=>r*60+Number(s),0);return n==="-"?-t:t},ww=({value:n})=>{if(isNaN(n)||!isFinite(n))return ue.stringifyNumber(n);let e="";n<0&&(e="-",n=Math.abs(n));let t=[n%60];return n<60?t.unshift(0):(n=Math.round((n-t[0])/60),t.unshift(n%60),n>=60&&(n=Math.round((n-t[0])/60),t.unshift(n))),e+t.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},wR={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(n,e,t)=>gf(e,t.replace(/_/g,"")),stringify:ww},vR={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(n,e,t)=>gf(e,t.replace(/_/g,"")),stringify:ww},ER={identify:n=>n instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(n,e,t,r,s,i,o,a,l)=>{a&&(a=(a+"00").substr(1,3));let c=Date.UTC(e,t-1,r,s||0,i||0,o||0,a||0);if(l&&l!=="Z"){let u=gf(l[0],l.slice(1));Math.abs(u)<30&&(u*=60),c-=6e4*u;}return new Date(c)},stringify:({value:n})=>n.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function yf(n){let e=typeof process<"u"&&process.env||{};return n?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function wf(n,e){if(yf(!1)){let t=typeof process<"u"&&process.emitWarning;t?t(n,e):console.warn(e?`${e}: ${n}`:n);}}function AR(n){if(yf(!0)){let e=n.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");wf(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning");}}var mw={};function SR(n,e){if(!mw[n]&&yf(!0)){mw[n]=!0;let t=`The option '${n}' will be removed in a future release`;t+=e?`, use '${e}' instead.`:".",wf(t,"DeprecationWarning");}}Kt.binary=uR;Kt.floatTime=vR;Kt.intTime=wR;Kt.omap=pR;Kt.pairs=fR;Kt.set=yR;Kt.timestamp=ER;Kt.warn=wf;Kt.warnFileDeprecation=AR;Kt.warnOptionDeprecation=SR;});var _f=ne($w=>{var ka=fr(),re=bi(),it=vf();function _R(n,e,t){let r=new re.YAMLMap(n);if(e instanceof Map)for(let[s,i]of e)r.items.push(n.createPair(s,i,t));else if(e&&typeof e=="object")for(let s of Object.keys(e))r.items.push(n.createPair(s,e[s],t));return typeof n.sortMapEntries=="function"&&r.items.sort(n.sortMapEntries),r}var Ci={createNode:_R,default:!0,nodeClass:re.YAMLMap,tag:"tag:yaml.org,2002:map",resolve:re.resolveMap};function bR(n,e,t){let r=new re.YAMLSeq(n);if(e&&e[Symbol.iterator])for(let s of e){let i=n.createNode(s,t.wrapScalars,null,t);r.items.push(i);}return r}var $a={createNode:bR,default:!0,nodeClass:re.YAMLSeq,tag:"tag:yaml.org,2002:seq",resolve:re.resolveSeq},xR={identify:n=>typeof n=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:re.resolveString,stringify(n,e,t,r){return e=Object.assign({actualString:!0},e),re.stringifyString(n,e,t,r)},options:re.strOptions},Af=[Ci,$a,xR],Ta=n=>typeof n=="bigint"||Number.isInteger(n),Sf=(n,e,t)=>re.intOptions.asBigInt?BigInt(n):parseInt(e,t);function Aw(n,e,t){let{value:r}=n;return Ta(r)&&r>=0?t+r.toString(e):re.stringifyNumber(n)}var Sw={identify:n=>n==null,createNode:(n,e,t)=>t.wrapScalars?new re.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:re.nullOptions,stringify:()=>re.nullOptions.nullStr},_w={identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:n=>n[0]==="t"||n[0]==="T",options:re.boolOptions,stringify:({value:n})=>n?re.boolOptions.trueStr:re.boolOptions.falseStr},bw={identify:n=>Ta(n)&&n>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o([0-7]+)$/,resolve:(n,e)=>Sf(n,e,8),options:re.intOptions,stringify:n=>Aw(n,8,"0o")},xw={identify:Ta,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:n=>Sf(n,n,10),options:re.intOptions,stringify:re.stringifyNumber},Cw={identify:n=>Ta(n)&&n>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x([0-9a-fA-F]+)$/,resolve:(n,e)=>Sf(n,e,16),options:re.intOptions,stringify:n=>Aw(n,16,"0x")},Iw={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(n,e)=>e?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:re.stringifyNumber},Ow={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:n=>parseFloat(n),stringify:({value:n})=>Number(n).toExponential()},Rw={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.([0-9]+)|[0-9]+\.([0-9]*))$/,resolve(n,e,t){let r=e||t,s=new re.Scalar(parseFloat(n));return r&&r[r.length-1]==="0"&&(s.minFractionDigits=r.length),s},stringify:re.stringifyNumber},CR=Af.concat([Sw,_w,bw,xw,Cw,Iw,Ow,Rw]),vw=n=>typeof n=="bigint"||Number.isInteger(n),Oa=({value:n})=>JSON.stringify(n),kw=[Ci,$a,{identify:n=>typeof n=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:re.resolveString,stringify:Oa},{identify:n=>n==null,createNode:(n,e,t)=>t.wrapScalars?new re.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:Oa},{identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:n=>n==="true",stringify:Oa},{identify:vw,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:n=>re.intOptions.asBigInt?BigInt(n):parseInt(n,10),stringify:({value:n})=>vw(n)?n.toString():JSON.stringify(n)},{identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:n=>parseFloat(n),stringify:Oa}];kw.scalarFallback=n=>{throw new SyntaxError(`Unresolved plain scalar ${JSON.stringify(n)}`)};var Ew=({value:n})=>n?re.boolOptions.trueStr:re.boolOptions.falseStr,xi=n=>typeof n=="bigint"||Number.isInteger(n);function Ra(n,e,t){let r=e.replace(/_/g,"");if(re.intOptions.asBigInt){switch(t){case 2:r=`0b${r}`;break;case 8:r=`0o${r}`;break;case 16:r=`0x${r}`;break}let i=BigInt(r);return n==="-"?BigInt(-1)*i:i}let s=parseInt(r,t);return n==="-"?-1*s:s}function Ef(n,e,t){let{value:r}=n;if(xi(r)){let s=r.toString(e);return r<0?"-"+t+s.substr(1):t+s}return re.stringifyNumber(n)}var IR=Af.concat([{identify:n=>n==null,createNode:(n,e,t)=>t.wrapScalars?new re.Scalar(null):null,default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>null,options:re.nullOptions,stringify:()=>re.nullOptions.nullStr},{identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>!0,options:re.boolOptions,stringify:Ew},{identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/i,resolve:()=>!1,options:re.boolOptions,stringify:Ew},{identify:xi,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^([-+]?)0b([0-1_]+)$/,resolve:(n,e,t)=>Ra(e,t,2),stringify:n=>Ef(n,2,"0b")},{identify:xi,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^([-+]?)0([0-7_]+)$/,resolve:(n,e,t)=>Ra(e,t,8),stringify:n=>Ef(n,8,"0")},{identify:xi,default:!0,tag:"tag:yaml.org,2002:int",test:/^([-+]?)([0-9][0-9_]*)$/,resolve:(n,e,t)=>Ra(e,t,10),stringify:re.stringifyNumber},{identify:xi,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^([-+]?)0x([0-9a-fA-F_]+)$/,resolve:(n,e,t)=>Ra(e,t,16),stringify:n=>Ef(n,16,"0x")},{identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.inf|(\.nan))$/i,resolve:(n,e)=>e?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:re.stringifyNumber},{identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?([0-9][0-9_]*)?(\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:n=>parseFloat(n.replace(/_/g,"")),stringify:({value:n})=>Number(n).toExponential()},{identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.([0-9_]*)$/,resolve(n,e){let t=new re.Scalar(parseFloat(n.replace(/_/g,"")));if(e){let r=e.replace(/_/g,"");r[r.length-1]==="0"&&(t.minFractionDigits=r.length);}return t},stringify:re.stringifyNumber}],it.binary,it.omap,it.pairs,it.set,it.intTime,it.floatTime,it.timestamp),OR={core:CR,failsafe:Af,json:kw,yaml11:IR},RR={binary:it.binary,bool:_w,float:Rw,floatExp:Ow,floatNaN:Iw,floatTime:it.floatTime,int:xw,intHex:Cw,intOct:bw,intTime:it.intTime,map:Ci,null:Sw,omap:it.omap,pairs:it.pairs,seq:$a,set:it.set,timestamp:it.timestamp};function kR(n,e,t){if(e){let r=t.filter(i=>i.tag===e),s=r.find(i=>!i.format)||r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return t.find(r=>(r.identify&&r.identify(n)||r.class&&n instanceof r.class)&&!r.format)}function $R(n,e,t){if(n instanceof re.Node)return n;let{defaultPrefix:r,onTagObj:s,prevObjects:i,schema:o,wrapScalars:a}=t;e&&e.startsWith("!!")&&(e=r+e.slice(2));let l=kR(n,e,o.tags);if(!l){if(typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object")return a?new re.Scalar(n):n;l=n instanceof Map?Ci:n[Symbol.iterator]?$a:Ci;}s&&(s(l),delete t.onTagObj);let c={value:void 0,node:void 0};if(n&&typeof n=="object"&&i){let u=i.get(n);if(u){let f=new re.Alias(u);return t.aliasNodes.push(f),f}c.value=n,i.set(n,c);}return c.node=l.createNode?l.createNode(t.schema,n,t):a?new re.Scalar(n):n,e&&c.node instanceof re.Node&&(c.node.tag=e),c.node}function TR(n,e,t,r){let s=n[r.replace(/\W/g,"")];if(!s){let i=Object.keys(n).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown schema "${r}"; use one of ${i}`)}if(Array.isArray(t))for(let i of t)s=s.concat(i);else typeof t=="function"&&(s=t(s.slice()));for(let i=0;i<s.length;++i){let o=s[i];if(typeof o=="string"){let a=e[o];if(!a){let l=Object.keys(e).map(c=>JSON.stringify(c)).join(", ");throw new Error(`Unknown custom tag "${o}"; use one of ${l}`)}s[i]=a;}}return s}var PR=(n,e)=>n.key<e.key?-1:n.key>e.key?1:0,Ii=class n{constructor({customTags:e,merge:t,schema:r,sortMapEntries:s,tags:i}){this.merge=!!t,this.name=r,this.sortMapEntries=s===!0?PR:s||null,!e&&i&&it.warnOptionDeprecation("tags","customTags"),this.tags=TR(OR,RR,e||i,r);}createNode(e,t,r,s){let i={defaultPrefix:n.defaultPrefix,schema:this,wrapScalars:t},o=s?Object.assign(s,i):i;return $R(e,r,o)}createPair(e,t,r){r||(r={wrapScalars:!0});let s=this.createNode(e,r.wrapScalars,null,r),i=this.createNode(t,r.wrapScalars,null,r);return new re.Pair(s,i)}};ka._defineProperty(Ii,"defaultPrefix",ka.defaultTagPrefix);ka._defineProperty(Ii,"defaultTags",ka.defaultTags);$w.Schema=Ii;});var Lw=ne(Ma=>{var ot=fr(),ie=bi(),Tw=_f(),NR={anchorPrefix:"a",customTags:null,indent:2,indentSeq:!0,keepCstNodes:!1,keepNodeTypes:!0,keepBlobsInJSON:!0,mapAsMap:!1,maxAliasCount:100,prettyErrors:!1,simpleKeys:!1,version:"1.2"},LR={get binary(){return ie.binaryOptions},set binary(n){Object.assign(ie.binaryOptions,n);},get bool(){return ie.boolOptions},set bool(n){Object.assign(ie.boolOptions,n);},get int(){return ie.intOptions},set int(n){Object.assign(ie.intOptions,n);},get null(){return ie.nullOptions},set null(n){Object.assign(ie.nullOptions,n);},get str(){return ie.strOptions},set str(n){Object.assign(ie.strOptions,n);}},Nw={"1.0":{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:ot.defaultTagPrefix},{handle:"!!",prefix:"tag:private.yaml.org,2002:"}]},1.1:{schema:"yaml-1.1",merge:!0,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:ot.defaultTagPrefix}]},1.2:{schema:"core",merge:!1,tagPrefixes:[{handle:"!",prefix:"!"},{handle:"!!",prefix:ot.defaultTagPrefix}]}};function Pw(n,e){if((n.version||n.options.version)==="1.0"){let s=e.match(/^tag:private\.yaml\.org,2002:([^:/]+)$/);if(s)return "!"+s[1];let i=e.match(/^tag:([a-zA-Z0-9-]+)\.yaml\.org,2002:(.*)/);return i?`!${i[1]}/${i[2]}`:`!${e.replace(/^tag:/,"")}`}let t=n.tagPrefixes.find(s=>e.indexOf(s.prefix)===0);if(!t){let s=n.getDefaults().tagPrefixes;t=s&&s.find(i=>e.indexOf(i.prefix)===0);}if(!t)return e[0]==="!"?e:`!<${e}>`;let r=e.substr(t.prefix.length).replace(/[!,[\]{}]/g,s=>({"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"})[s]);return t.handle+r}function MR(n,e){if(e instanceof ie.Alias)return ie.Alias;if(e.tag){let s=n.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)||s[0]}let t,r;if(e instanceof ie.Scalar){r=e.value;let s=n.filter(i=>i.identify&&i.identify(r)||i.class&&r instanceof i.class);t=s.find(i=>i.format===e.format)||s.find(i=>!i.format);}else r=e,t=n.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!t){let s=r&&r.constructor?r.constructor.name:typeof r;throw new Error(`Tag not resolved for ${s} value`)}return t}function DR(n,e,{anchors:t,doc:r}){let s=[],i=r.anchors.getName(n);return i&&(t[i]=n,s.push(`&${i}`)),n.tag?s.push(Pw(r,n.tag)):e.default||s.push(Pw(r,e.tag)),s.join(" ")}function Pa(n,e,t,r){let{anchors:s,schema:i}=e.doc,o;if(!(n instanceof ie.Node)){let c={aliasNodes:[],onTagObj:u=>o=u,prevObjects:new Map};n=i.createNode(n,!0,null,c);for(let u of c.aliasNodes){u.source=u.source.node;let f=s.getName(u.source);f||(f=s.newName(),s.map[f]=u.source);}}if(n instanceof ie.Pair)return n.toString(e,t,r);o||(o=MR(i.tags,n));let a=DR(n,o,e);a.length>0&&(e.indentAtStart=(e.indentAtStart||0)+a.length+1);let l=typeof o.stringify=="function"?o.stringify(n,e,t,r):n instanceof ie.Scalar?ie.stringifyString(n,e,t,r):n.toString(e,t,r);return a?n instanceof ie.Scalar||l[0]==="{"||l[0]==="["?`${a} ${l}`:`${a}
|
|
211
|
+
${e.indent}${l}`:l}var bf=class n{static validAnchorNode(e){return e instanceof ie.Scalar||e instanceof ie.YAMLSeq||e instanceof ie.YAMLMap}constructor(e){ot._defineProperty(this,"map",Object.create(null)),this.prefix=e;}createAlias(e,t){return this.setAnchor(e,t),new ie.Alias(e)}createMergePair(...e){let t=new ie.Merge;return t.value.items=e.map(r=>{if(r instanceof ie.Alias){if(r.source instanceof ie.YAMLMap)return r}else if(r instanceof ie.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),t}getName(e){let{map:t}=this;return Object.keys(t).find(r=>t[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let t=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!t.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:t}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved;}),t.forEach(r=>{r.source=r.source.resolved;}),delete this._cstAliases;}setAnchor(e,t){if(e!=null&&!n.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(t&&/[\x00-\x19\s,[\]{}]/.test(t))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(t)s!==t&&(delete r[s],r[t]=e);else return s;else {if(!t){if(!e)return null;t=this.newName();}r[t]=e;}return t}},Na=(n,e)=>{if(n&&typeof n=="object"){let{tag:t}=n;n instanceof ie.Collection?(t&&(e[t]=!0),n.items.forEach(r=>Na(r,e))):n instanceof ie.Pair?(Na(n.key,e),Na(n.value,e)):n instanceof ie.Scalar&&t&&(e[t]=!0);}return e},BR=n=>Object.keys(Na(n,{}));function FR(n,e){let t={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";n.errors.push(new ot.YAMLSyntaxError(i,a));break}let o=ie.resolveNode(n,i);s&&(o.spaceBefore=!0,s=!1),r=o;}else i.comment!==null?(r===void 0?t.before:t.after).push(i.comment):i.type===ot.Type.BLANK_LINE&&(s=!0,r===void 0&&t.before.length>0&&!n.commentBefore&&(n.commentBefore=t.before.join(`
|
|
212
|
+
`),t.before=[]));if(n.contents=r||null,!r)n.comment=t.before.concat(t.after).join(`
|
|
213
|
+
`)||null;else {let i=t.before.join(`
|
|
214
|
+
`);if(i){let o=r instanceof ie.Collection&&r.items[0]?r.items[0]:r;o.commentBefore=o.commentBefore?`${i}
|
|
215
|
+
${o.commentBefore}`:i;}n.comment=t.after.join(`
|
|
216
|
+
`)||null;}}function jR({tagPrefixes:n},e){let[t,r]=e.parameters;if(!t||!r){let s="Insufficient parameters given for %TAG directive";throw new ot.YAMLSemanticError(e,s)}if(n.some(s=>s.handle===t)){let s="The %TAG directive must only be given at most once per handle in the same document.";throw new ot.YAMLSemanticError(e,s)}return {handle:t,prefix:r}}function UR(n,e){let[t]=e.parameters;if(e.name==="YAML:1.0"&&(t="1.0"),!t){let r="Insufficient parameters given for %YAML directive";throw new ot.YAMLSemanticError(e,r)}if(!Nw[t]){let s=`Document will be parsed as YAML ${n.version||n.options.version} rather than YAML ${t}`;n.warnings.push(new ot.YAMLWarning(e,s));}return t}function QR(n,e,t){let r=[],s=!1;for(let i of e){let{comment:o,name:a}=i;switch(a){case"TAG":try{n.tagPrefixes.push(jR(n,i));}catch(l){n.errors.push(l);}s=!0;break;case"YAML":case"YAML:1.0":if(n.version){let l="The %YAML directive must only be given at most once per document.";n.errors.push(new ot.YAMLSemanticError(i,l));}try{n.version=UR(n,i);}catch(l){n.errors.push(l);}s=!0;break;default:if(a){let l=`YAML only supports %TAG and %YAML directives, and not %${a}`;n.warnings.push(new ot.YAMLWarning(i,l));}}o&&r.push(o);}if(t&&!s&&(n.version||t.version||n.options.version)==="1.1"){let i=({handle:o,prefix:a})=>({handle:o,prefix:a});n.tagPrefixes=t.tagPrefixes.map(i),n.version=t.version;}n.commentBefore=r.join(`
|
|
217
|
+
`)||null;}function cs(n){if(n instanceof ie.Collection)return !0;throw new Error("Expected a YAML collection as document contents")}var La=class n{constructor(e){this.anchors=new bf(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[];}add(e){return cs(this.contents),this.contents.add(e)}addIn(e,t){cs(this.contents),this.contents.addIn(e,t);}delete(e){return cs(this.contents),this.contents.delete(e)}deleteIn(e){return ie.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(cs(this.contents),this.contents.deleteIn(e))}getDefaults(){return n.defaults[this.version]||n.defaults[this.options.version]||{}}get(e,t){return this.contents instanceof ie.Collection?this.contents.get(e,t):void 0}getIn(e,t){return ie.isEmptyPath(e)?!t&&this.contents instanceof ie.Scalar?this.contents.value:this.contents:this.contents instanceof ie.Collection?this.contents.getIn(e,t):void 0}has(e){return this.contents instanceof ie.Collection?this.contents.has(e):!1}hasIn(e){return ie.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof ie.Collection?this.contents.hasIn(e):!1}set(e,t){cs(this.contents),this.contents.set(e,t);}setIn(e,t){ie.isEmptyPath(e)?this.contents=t:(cs(this.contents),this.contents.setIn(e,t));}setSchema(e,t){if(!e&&!t&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(t)&&(this.options.customTags=t);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new Tw.Schema(r);}parse(e,t){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),QR(this,r,t),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],FR(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let l of this.errors)l instanceof ot.YAMLError&&l.makePretty();for(let l of this.warnings)l instanceof ot.YAMLError&&l.makePretty();}return this}listNonDefaultTags(){return BR(this.contents).filter(e=>e.indexOf(Tw.Schema.defaultPrefix)!==0)}setTagPrefix(e,t){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(t){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=t:this.tagPrefixes.push({handle:e,prefix:t});}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e);}toJSON(e,t){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof ie.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:Pa},l=Object.keys(this.anchors.map);l.length>0&&(a.anchors=new Map(l.map(u=>[this.anchors.map[u],{alias:[],aliasCount:0,count:1}])));let c=ie.toJSON(this.contents,e,a);if(typeof t=="function"&&a.anchors)for(let{count:u,res:f}of a.anchors.values())t(f,u);return c}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let l=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${l}`)}this.setSchema();let t=[],r=!1;if(this.version){let l="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?l="%YAML:1.0":this.version==="1.1"&&(l="%YAML 1.1")),t.push(l),r=!0;}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:l,prefix:c})=>{s.some(u=>u.indexOf(c)===0)&&(t.push(`%TAG ${l} ${c}`),r=!0);}),(r||this.directivesEndMarker)&&t.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&t.unshift(""),t.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:Pa},o=!1,a=null;if(this.contents){this.contents instanceof ie.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&t.push(""),this.contents.commentBefore&&t.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let l=a?null:()=>o=!0,c=Pa(this.contents,i,()=>a=null,l);t.push(ie.addComment(c,"",a));}else this.contents!==void 0&&t.push(Pa(this.contents,i));return this.comment&&((!o||a)&&t[t.length-1]!==""&&t.push(""),t.push(this.comment.replace(/^/gm,"#"))),t.join(`
|
|
218
|
+
`)+`
|
|
219
|
+
`}};ot._defineProperty(La,"defaults",Nw);Ma.Document=La;Ma.defaultOptions=NR;Ma.scalarOptions=LR;});var Bw=ne(Dw=>{var xf=rw(),yr=Lw(),WR=_f(),qR=fr(),HR=vf();bi();function zR(n,e=!0,t){t===void 0&&typeof e=="string"&&(t=e,e=!0);let r=Object.assign({},yr.Document.defaults[yr.defaultOptions.version],yr.defaultOptions);return new WR.Schema(r).createNode(n,e,t)}var us=class extends yr.Document{constructor(e){super(Object.assign({},yr.defaultOptions,e));}};function GR(n,e){let t=[],r;for(let s of xf.parse(n)){let i=new us(e);i.parse(s,r),t.push(i),r=i;}return t}function Mw(n,e){let t=xf.parse(n),r=new us(e).parse(t[0]);if(t.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new qR.YAMLSemanticError(t[1],s));}return r}function KR(n,e){let t=Mw(n,e);if(t.warnings.forEach(r=>HR.warn(r)),t.errors.length>0)throw t.errors[0];return t.toJSON()}function VR(n,e){let t=new us(e);return t.contents=n,String(t)}var JR={createNode:zR,defaultOptions:yr.defaultOptions,Document:us,parse:KR,parseAllDocuments:GR,parseCST:xf.parse,parseDocument:Mw,scalarOptions:yr.scalarOptions,stringify:VR};Dw.YAML=JR;});var jw=ne((b6,Fw)=>{Fw.exports=Bw().YAML;});var Rf=ne((L6,fs)=>{var{existsSync:ik}=he("fs"),ok=he("path"),{platform:If,arch:Of,report:ak}=he("process"),lk=()=>!ak.getReport().header.glibcVersionRuntime,nv={android:{arm:{base:"android-arm-eabi"},arm64:{base:"android-arm64"}},darwin:{arm64:{base:"darwin-arm64"},x64:{base:"darwin-x64"}},linux:{arm:{base:"linux-arm-gnueabihf",musl:"linux-arm-musleabihf"},arm64:{base:"linux-arm64-gnu",musl:"linux-arm64-musl"},ppc64:{base:"linux-powerpc64le-gnu",musl:null},riscv64:{base:"linux-riscv64-gnu",musl:null},s390x:{base:"linux-s390x-gnu",musl:null},x64:{base:"linux-x64-gnu",musl:"linux-x64-musl"}},win32:{arm64:{base:"win32-arm64-msvc"},ia32:{base:"win32-ia32-msvc"},x64:{base:"win32-x64-msvc"}}},ck={arm64:"vc_redist.arm64.exe",ia32:"vc_redist.x86.exe",x64:"vc_redist.x64.exe"},rv=gk(),ev=`./rollup.${rv}.node`,uk=n=>{try{return he(n)}catch(e){if(If==="win32"&&e instanceof Error&&e.code==="ERR_DLOPEN_FAILED"&&e.message.includes("The specified module could not be found")){let t=`https://aka.ms/vs/17/release/${ck[Of]}`;throw new Error(`Failed to load module ${n}. Required DLL was not found. This error usually happens when Microsoft Visual C++ Redistributable is not installed. You can download it from ${t}`,{cause:e})}throw new Error(`Cannot find module ${n}. npm has a bug related to optional dependencies (https://github.com/npm/cli/issues/4828). Please try \`npm i\` again after removing both package-lock.json and node_modules directory.`,{cause:e})}},{parse:fk,parseAsync:hk,xxhashBase64Url:dk,xxhashBase36:pk,xxhashBase16:mk}=uk(ik(ok.join(__dirname,ev))?ev:`@rollup/rollup-${rv}`);function gk(){let n=nv[If]?.[Of];return n||tv(!1),"musl"in n&&lk()?n.musl||tv(!0):n.base}function tv(n){throw new Error(`Your current platform "${If}${n?" (musl)":""}" and architecture "${Of}" combination is not yet supported by the native Rollup build. Please use the WASM build "@rollup/wasm-node" instead.
|
|
220
|
+
|
|
221
|
+
The following platform-architecture combinations are supported:
|
|
222
|
+
${Object.entries(nv).flatMap(([e,t])=>Object.entries(t).flatMap(([r,{musl:s}])=>{let i=`${e}-${r}`;return s?[i,`${i} (musl)`]:[i]})).join(`
|
|
223
|
+
`)}
|
|
224
|
+
|
|
225
|
+
If this is important to you, please consider supporting Rollup to make a native build for your platform and architecture available.`)}fs.exports.parse=fk;fs.exports.parseAsync=hk;fs.exports.xxhashBase64Url=dk;fs.exports.xxhashBase36=pk;fs.exports.xxhashBase16=mk;});var iv=Fn(()=>{ss(Rf());Object.freeze(Object.create(null)),Object.freeze(new class extends Set{add(){throw new Error("Cannot add to empty set")}});});var kf=Fn(()=>{ss(Rf());iv();});var Mf=ne((e8,Tv)=>{var Lf=Object.defineProperty,Ak=Object.getOwnPropertyDescriptor,Sk=Object.getOwnPropertyNames,_k=Object.prototype.hasOwnProperty,bk=(n,e)=>{for(var t in e)Lf(n,t,{get:e[t],enumerable:!0});},xk=(n,e,t,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Sk(e))!_k.call(n,s)&&s!==t&&Lf(n,s,{get:()=>e[s],enumerable:!(r=Ak(e,s))||r.enumerable});return n},Ck=n=>xk(Lf({},"__esModule",{value:!0}),n),$i={};bk($i,{analyzeMetafile:()=>t$,analyzeMetafileSync:()=>i$,build:()=>Yk,buildSync:()=>n$,context:()=>Xk,default:()=>c$,formatMessages:()=>e$,formatMessagesSync:()=>s$,initialize:()=>a$,stop:()=>o$,transform:()=>Zk,transformSync:()=>r$,version:()=>Jk});Tv.exports=Ck($i);function lv(n){let e=r=>{if(r===null)t.write8(0);else if(typeof r=="boolean")t.write8(1),t.write8(+r);else if(typeof r=="number")t.write8(2),t.write32(r|0);else if(typeof r=="string")t.write8(3),t.write(Vt(r));else if(r instanceof Uint8Array)t.write8(4),t.write(r);else if(r instanceof Array){t.write8(5),t.write32(r.length);for(let s of r)e(s);}else {let s=Object.keys(r);t.write8(6),t.write32(s.length);for(let i of s)t.write(Vt(i)),e(r[i]);}},t=new vv;return t.write32(0),t.write32(n.id<<1|+!n.isRequest),e(n.value),Tf(t.buf,t.len-4,0),t.buf.subarray(0,t.len)}function Ik(n){let e=()=>{switch(t.read8()){case 0:return null;case 1:return !!t.read8();case 2:return t.read32();case 3:return ds(t.read());case 4:return t.read();case 5:{let o=t.read32(),a=[];for(let l=0;l<o;l++)a.push(e());return a}case 6:{let o=t.read32(),a={};for(let l=0;l<o;l++)a[ds(t.read())]=e();return a}default:throw new Error("Invalid packet")}},t=new vv(n),r=t.read32(),s=(r&1)===0;r>>>=1;let i=e();if(t.ptr!==n.length)throw new Error("Invalid packet");return {id:r,isRequest:s,value:i}}var vv=class{constructor(n=new Uint8Array(1024)){this.buf=n,this.len=0,this.ptr=0;}_write(n){if(this.len+n>this.buf.length){let e=new Uint8Array((this.len+n)*2);e.set(this.buf),this.buf=e;}return this.len+=n,this.len-n}write8(n){let e=this._write(1);this.buf[e]=n;}write32(n){let e=this._write(4);Tf(this.buf,n,e);}write(n){let e=this._write(4+n.length);Tf(this.buf,n.length,e),this.buf.set(n,e+4);}_read(n){if(this.ptr+n>this.buf.length)throw new Error("Invalid packet");return this.ptr+=n,this.ptr-n}read8(){return this.buf[this._read(1)]}read32(){return Ev(this.buf,this._read(4))}read(){let n=this.read32(),e=new Uint8Array(n),t=this._read(e.length);return e.set(this.buf.subarray(t,t+n)),e}},Vt,ds,$f;if(typeof TextEncoder<"u"&&typeof TextDecoder<"u"){let n=new TextEncoder,e=new TextDecoder;Vt=t=>n.encode(t),ds=t=>e.decode(t),$f='new TextEncoder().encode("")';}else if(typeof Buffer<"u")Vt=n=>Buffer.from(n),ds=n=>{let{buffer:e,byteOffset:t,byteLength:r}=n;return Buffer.from(e,t,r).toString()},$f='Buffer.from("")';else throw new Error("No UTF-8 codec found");if(!(Vt("")instanceof Uint8Array))throw new Error(`Invariant violation: "${$f} instanceof Uint8Array" is incorrectly false
|
|
226
|
+
|
|
227
|
+
This indicates that your JavaScript environment is broken. You cannot use
|
|
228
|
+
esbuild in this environment because esbuild relies on this invariant. This
|
|
229
|
+
is not a problem with esbuild. You need to fix your environment instead.
|
|
230
|
+
`);function Ev(n,e){return n[e++]|n[e++]<<8|n[e++]<<16|n[e++]<<24}function Tf(n,e,t){n[t++]=e,n[t++]=e>>8,n[t++]=e>>16,n[t++]=e>>24;}var Me=JSON.stringify,cv="warning",uv="silent";function fv(n){if(je(n,"target"),n.indexOf(",")>=0)throw new Error(`Invalid target: ${n}`);return n}var Fa=()=>null,_e=n=>typeof n=="boolean"?null:"a boolean",te=n=>typeof n=="string"?null:"a string",ja=n=>n instanceof RegExp?null:"a RegExp object",vr=n=>typeof n=="number"&&n===(n|0)?null:"an integer",Av=n=>typeof n=="function"?null:"a function",ke=n=>Array.isArray(n)?null:"an array",Ot=n=>typeof n=="object"&&n!==null&&!Array.isArray(n)?null:"an object",Ok=n=>typeof n=="object"&&n!==null?null:"an array or an object",Rk=n=>n instanceof WebAssembly.Module?null:"a WebAssembly.Module",hv=n=>typeof n=="object"&&!Array.isArray(n)?null:"an object or null",Sv=n=>typeof n=="string"||typeof n=="boolean"?null:"a string or a boolean",kk=n=>typeof n=="string"||typeof n=="object"&&n!==null&&!Array.isArray(n)?null:"a string or an object",$k=n=>typeof n=="string"||Array.isArray(n)?null:"a string or an array",_v=n=>typeof n=="string"||n instanceof Uint8Array?null:"a string or a Uint8Array",Tk=n=>typeof n=="string"||n instanceof URL?null:"a string or a URL";function N(n,e,t,r){let s=n[t];if(e[t+""]=!0,s===void 0)return;let i=r(s);if(i!==null)throw new Error(`${Me(t)} must be ${i}`);return s}function De(n,e,t){for(let r in n)if(!(r in e))throw new Error(`Invalid option ${t}: ${Me(r)}`)}function Pk(n){let e=Object.create(null),t=N(n,e,"wasmURL",Tk),r=N(n,e,"wasmModule",Rk),s=N(n,e,"worker",_e);return De(n,e,"in initialize() call"),{wasmURL:t,wasmModule:r,worker:s}}function bv(n){let e;if(n!==void 0){e=Object.create(null);for(let t in n){let r=n[t];if(typeof r=="string"||r===!1)e[t]=r;else throw new Error(`Expected ${Me(t)} in mangle cache to map to either a string or false`)}}return e}function qa(n,e,t,r,s){let i=N(e,t,"color",_e),o=N(e,t,"logLevel",te),a=N(e,t,"logLimit",vr);i!==void 0?n.push(`--color=${i}`):r&&n.push("--color=true"),n.push(`--log-level=${o||s}`),n.push(`--log-limit=${a||0}`);}function je(n,e,t){if(typeof n!="string")throw new Error(`Expected value for ${e}${t!==void 0?" "+Me(t):""} to be a string, got ${typeof n} instead`);return n}function xv(n,e,t){let r=N(e,t,"legalComments",te),s=N(e,t,"sourceRoot",te),i=N(e,t,"sourcesContent",_e),o=N(e,t,"target",$k),a=N(e,t,"format",te),l=N(e,t,"globalName",te),c=N(e,t,"mangleProps",ja),u=N(e,t,"reserveProps",ja),f=N(e,t,"mangleQuoted",_e),h=N(e,t,"minify",_e),m=N(e,t,"minifySyntax",_e),p=N(e,t,"minifyWhitespace",_e),d=N(e,t,"minifyIdentifiers",_e),g=N(e,t,"lineLimit",vr),y=N(e,t,"drop",ke),w=N(e,t,"dropLabels",ke),v=N(e,t,"charset",te),A=N(e,t,"treeShaking",_e),E=N(e,t,"ignoreAnnotations",_e),S=N(e,t,"jsx",te),C=N(e,t,"jsxFactory",te),_=N(e,t,"jsxFragment",te),x=N(e,t,"jsxImportSource",te),$=N(e,t,"jsxDev",_e),b=N(e,t,"jsxSideEffects",_e),T=N(e,t,"define",Ot),Q=N(e,t,"logOverride",Ot),V=N(e,t,"supported",Ot),R=N(e,t,"pure",ke),I=N(e,t,"keepNames",_e),H=N(e,t,"platform",te),q=N(e,t,"tsconfigRaw",kk);if(r&&n.push(`--legal-comments=${r}`),s!==void 0&&n.push(`--source-root=${s}`),i!==void 0&&n.push(`--sources-content=${i}`),o&&(Array.isArray(o)?n.push(`--target=${Array.from(o).map(fv).join(",")}`):n.push(`--target=${fv(o)}`)),a&&n.push(`--format=${a}`),l&&n.push(`--global-name=${l}`),H&&n.push(`--platform=${H}`),q&&n.push(`--tsconfig-raw=${typeof q=="string"?q:JSON.stringify(q)}`),h&&n.push("--minify"),m&&n.push("--minify-syntax"),p&&n.push("--minify-whitespace"),d&&n.push("--minify-identifiers"),g&&n.push(`--line-limit=${g}`),v&&n.push(`--charset=${v}`),A!==void 0&&n.push(`--tree-shaking=${A}`),E&&n.push("--ignore-annotations"),y)for(let X of y)n.push(`--drop:${je(X,"drop")}`);if(w&&n.push(`--drop-labels=${Array.from(w).map(X=>je(X,"dropLabels")).join(",")}`),c&&n.push(`--mangle-props=${c.source}`),u&&n.push(`--reserve-props=${u.source}`),f!==void 0&&n.push(`--mangle-quoted=${f}`),S&&n.push(`--jsx=${S}`),C&&n.push(`--jsx-factory=${C}`),_&&n.push(`--jsx-fragment=${_}`),x&&n.push(`--jsx-import-source=${x}`),$&&n.push("--jsx-dev"),b&&n.push("--jsx-side-effects"),T)for(let X in T){if(X.indexOf("=")>=0)throw new Error(`Invalid define: ${X}`);n.push(`--define:${X}=${je(T[X],"define",X)}`);}if(Q)for(let X in Q){if(X.indexOf("=")>=0)throw new Error(`Invalid log override: ${X}`);n.push(`--log-override:${X}=${je(Q[X],"log override",X)}`);}if(V)for(let X in V){if(X.indexOf("=")>=0)throw new Error(`Invalid supported: ${X}`);let G=V[X];if(typeof G!="boolean")throw new Error(`Expected value for supported ${Me(X)} to be a boolean, got ${typeof G} instead`);n.push(`--supported:${X}=${G}`);}if(R)for(let X of R)n.push(`--pure:${je(X,"pure")}`);I&&n.push("--keep-names");}function Nk(n,e,t,r,s){var i;let o=[],a=[],l=Object.create(null),c=null,u=null;qa(o,e,l,t,r),xv(o,e,l);let f=N(e,l,"sourcemap",Sv),h=N(e,l,"bundle",_e),m=N(e,l,"splitting",_e),p=N(e,l,"preserveSymlinks",_e),d=N(e,l,"metafile",_e),g=N(e,l,"outfile",te),y=N(e,l,"outdir",te),w=N(e,l,"outbase",te),v=N(e,l,"tsconfig",te),A=N(e,l,"resolveExtensions",ke),E=N(e,l,"nodePaths",ke),S=N(e,l,"mainFields",ke),C=N(e,l,"conditions",ke),_=N(e,l,"external",ke),x=N(e,l,"packages",te),$=N(e,l,"alias",Ot),b=N(e,l,"loader",Ot),T=N(e,l,"outExtension",Ot),Q=N(e,l,"publicPath",te),V=N(e,l,"entryNames",te),R=N(e,l,"chunkNames",te),I=N(e,l,"assetNames",te),H=N(e,l,"inject",ke),q=N(e,l,"banner",Ot),X=N(e,l,"footer",Ot),G=N(e,l,"entryPoints",Ok),D=N(e,l,"absWorkingDir",te),U=N(e,l,"stdin",Ot),j=(i=N(e,l,"write",_e))!=null?i:s,P=N(e,l,"allowOverwrite",_e),F=N(e,l,"mangleCache",Ot);if(l.plugins=!0,De(e,l,`in ${n}() call`),f&&o.push(`--sourcemap${f===!0?"":`=${f}`}`),h&&o.push("--bundle"),P&&o.push("--allow-overwrite"),m&&o.push("--splitting"),p&&o.push("--preserve-symlinks"),d&&o.push("--metafile"),g&&o.push(`--outfile=${g}`),y&&o.push(`--outdir=${y}`),w&&o.push(`--outbase=${w}`),v&&o.push(`--tsconfig=${v}`),x&&o.push(`--packages=${x}`),A){let O=[];for(let J of A){if(je(J,"resolve extension"),J.indexOf(",")>=0)throw new Error(`Invalid resolve extension: ${J}`);O.push(J);}o.push(`--resolve-extensions=${O.join(",")}`);}if(Q&&o.push(`--public-path=${Q}`),V&&o.push(`--entry-names=${V}`),R&&o.push(`--chunk-names=${R}`),I&&o.push(`--asset-names=${I}`),S){let O=[];for(let J of S){if(je(J,"main field"),J.indexOf(",")>=0)throw new Error(`Invalid main field: ${J}`);O.push(J);}o.push(`--main-fields=${O.join(",")}`);}if(C){let O=[];for(let J of C){if(je(J,"condition"),J.indexOf(",")>=0)throw new Error(`Invalid condition: ${J}`);O.push(J);}o.push(`--conditions=${O.join(",")}`);}if(_)for(let O of _)o.push(`--external:${je(O,"external")}`);if($)for(let O in $){if(O.indexOf("=")>=0)throw new Error(`Invalid package name in alias: ${O}`);o.push(`--alias:${O}=${je($[O],"alias",O)}`);}if(q)for(let O in q){if(O.indexOf("=")>=0)throw new Error(`Invalid banner file type: ${O}`);o.push(`--banner:${O}=${je(q[O],"banner",O)}`);}if(X)for(let O in X){if(O.indexOf("=")>=0)throw new Error(`Invalid footer file type: ${O}`);o.push(`--footer:${O}=${je(X[O],"footer",O)}`);}if(H)for(let O of H)o.push(`--inject:${je(O,"inject")}`);if(b)for(let O in b){if(O.indexOf("=")>=0)throw new Error(`Invalid loader extension: ${O}`);o.push(`--loader:${O}=${je(b[O],"loader",O)}`);}if(T)for(let O in T){if(O.indexOf("=")>=0)throw new Error(`Invalid out extension: ${O}`);o.push(`--out-extension:${O}=${je(T[O],"out extension",O)}`);}if(G)if(Array.isArray(G))for(let O=0,J=G.length;O<J;O++){let B=G[O];if(typeof B=="object"&&B!==null){let K=Object.create(null),L=N(B,K,"in",te),z=N(B,K,"out",te);if(De(B,K,"in entry point at index "+O),L===void 0)throw new Error('Missing property "in" for entry point at index '+O);if(z===void 0)throw new Error('Missing property "out" for entry point at index '+O);a.push([z,L]);}else a.push(["",je(B,"entry point at index "+O)]);}else for(let O in G)a.push([O,je(G[O],"entry point",O)]);if(U){let O=Object.create(null),J=N(U,O,"contents",_v),B=N(U,O,"resolveDir",te),K=N(U,O,"sourcefile",te),L=N(U,O,"loader",te);De(U,O,'in "stdin" object'),K&&o.push(`--sourcefile=${K}`),L&&o.push(`--loader=${L}`),B&&(u=B),typeof J=="string"?c=Vt(J):J instanceof Uint8Array&&(c=J);}let W=[];if(E)for(let O of E)O+="",W.push(O);return {entries:a,flags:o,write:j,stdinContents:c,stdinResolveDir:u,absWorkingDir:D,nodePaths:W,mangleCache:bv(F)}}function Lk(n,e,t,r){let s=[],i=Object.create(null);qa(s,e,i,t,r),xv(s,e,i);let o=N(e,i,"sourcemap",Sv),a=N(e,i,"sourcefile",te),l=N(e,i,"loader",te),c=N(e,i,"banner",te),u=N(e,i,"footer",te),f=N(e,i,"mangleCache",Ot);return De(e,i,`in ${n}() call`),o&&s.push(`--sourcemap=${o===!0?"external":o}`),a&&s.push(`--sourcefile=${a}`),l&&s.push(`--loader=${l}`),c&&s.push(`--banner=${c}`),u&&s.push(`--footer=${u}`),{flags:s,mangleCache:bv(f)}}function Cv(n){let e={},t={didClose:!1,reason:""},r={},s=0,i=0,o=new Uint8Array(16*1024),a=0,l=v=>{let A=a+v.length;if(A>o.length){let S=new Uint8Array(A*2);S.set(o),o=S;}o.set(v,a),a+=v.length;let E=0;for(;E+4<=a;){let S=Ev(o,E);if(E+4+S>a)break;E+=4,p(o.subarray(E,E+S)),E+=S;}E>0&&(o.copyWithin(0,E,a),a-=E);},c=v=>{t.didClose=!0,v&&(t.reason=": "+(v.message||v));let A="The service was stopped"+t.reason;for(let E in r)r[E](A,null);r={};},u=(v,A,E)=>{if(t.didClose)return E("The service is no longer running"+t.reason,null);let S=s++;r[S]=(C,_)=>{try{E(C,_);}finally{v&&v.unref();}},v&&v.ref(),n.writeToStdin(lv({id:S,isRequest:!0,value:A}));},f=(v,A)=>{if(t.didClose)throw new Error("The service is no longer running"+t.reason);n.writeToStdin(lv({id:v,isRequest:!1,value:A}));},h=async(v,A)=>{try{if(A.command==="ping"){f(v,{});return}if(typeof A.key=="number"){let E=e[A.key];if(!E)return;let S=E[A.command];if(S){await S(v,A);return}}throw new Error("Invalid command: "+A.command)}catch(E){let S=[wr(E,n,null,void 0,"")];try{f(v,{errors:S});}catch{}}},m=!0,p=v=>{if(m){m=!1;let E=String.fromCharCode(...v);if(E!=="0.21.5")throw new Error(`Cannot start service: Host version "0.21.5" does not match binary version ${Me(E)}`);return}let A=Ik(v);if(A.isRequest)h(A.id,A.value);else {let E=r[A.id];delete r[A.id],A.value.error?E(A.value.error,{}):E(null,A.value);}};return {readFromStdout:l,afterClose:c,service:{buildOrContext:({callName:v,refs:A,options:E,isTTY:S,defaultWD:C,callback:_})=>{let x=0,$=i++,b={},T={ref(){++x===1&&A&&A.ref();},unref(){--x===0&&(delete e[$],A&&A.unref());}};e[$]=b,T.ref(),Mk(v,$,u,f,T,n,b,E,S,C,(Q,V)=>{try{_(Q,V);}finally{T.unref();}});},transform:({callName:v,refs:A,input:E,options:S,isTTY:C,fs:_,callback:x})=>{let $=Iv(),b=T=>{try{if(typeof E!="string"&&!(E instanceof Uint8Array))throw new Error('The input to "transform" must be a string or a Uint8Array');let{flags:Q,mangleCache:V}=Lk(v,S,C,uv),R={command:"transform",flags:Q,inputFS:T!==null,input:T!==null?Vt(T):typeof E=="string"?Vt(E):E};V&&(R.mangleCache=V),u(A,R,(I,H)=>{if(I)return x(new Error(I),null);let q=ps(H.errors,$),X=ps(H.warnings,$),G=1,D=()=>{if(--G===0){let U={warnings:X,code:H.code,map:H.map,mangleCache:void 0,legalComments:void 0};"legalComments"in H&&(U.legalComments=H?.legalComments),H.mangleCache&&(U.mangleCache=H?.mangleCache),x(null,U);}};if(q.length>0)return x(Ri("Transform failed",q,X),null);H.codeFS&&(G++,_.readFile(H.code,(U,j)=>{U!==null?x(U,null):(H.code=j,D());})),H.mapFS&&(G++,_.readFile(H.map,(U,j)=>{U!==null?x(U,null):(H.map=j,D());})),D();});}catch(Q){let V=[];try{qa(V,S,{},C,uv);}catch{}let R=wr(Q,n,$,void 0,"");u(A,{command:"error",flags:V,error:R},()=>{R.detail=$.load(R.detail),x(Ri("Transform failed",[R],[]),null);});}};if((typeof E=="string"||E instanceof Uint8Array)&&E.length>1024*1024){let T=b;b=()=>_.writeFile(E,T);}b(null);},formatMessages:({callName:v,refs:A,messages:E,options:S,callback:C})=>{if(!S)throw new Error(`Missing second argument in ${v}() call`);let _={},x=N(S,_,"kind",te),$=N(S,_,"color",_e),b=N(S,_,"terminalWidth",vr);if(De(S,_,`in ${v}() call`),x===void 0)throw new Error(`Missing "kind" in ${v}() call`);if(x!=="error"&&x!=="warning")throw new Error(`Expected "kind" to be "error" or "warning" in ${v}() call`);let T={command:"format-msgs",messages:Sn(E,"messages",null,"",b),isWarning:x==="warning"};$!==void 0&&(T.color=$),b!==void 0&&(T.terminalWidth=b),u(A,T,(Q,V)=>{if(Q)return C(new Error(Q),null);C(null,V.messages);});},analyzeMetafile:({callName:v,refs:A,metafile:E,options:S,callback:C})=>{S===void 0&&(S={});let _={},x=N(S,_,"color",_e),$=N(S,_,"verbose",_e);De(S,_,`in ${v}() call`);let b={command:"analyze-metafile",metafile:E};x!==void 0&&(b.color=x),$!==void 0&&(b.verbose=$),u(A,b,(T,Q)=>{if(T)return C(new Error(T),null);C(null,Q.result);});}}}}function Mk(n,e,t,r,s,i,o,a,l,c,u){let f=Iv(),h=n==="context",m=(g,y)=>{let w=[];try{qa(w,a,{},l,cv);}catch{}let v=wr(g,i,f,void 0,y);t(s,{command:"error",flags:w,error:v},()=>{v.detail=f.load(v.detail),u(Ri(h?"Context failed":"Build failed",[v],[]),null);});},p;if(typeof a=="object"){let g=a.plugins;if(g!==void 0){if(!Array.isArray(g))return m(new Error('"plugins" must be an array'),"");p=g;}}if(p&&p.length>0){if(i.isSync)return m(new Error("Cannot use plugins in synchronous API calls"),"");Dk(e,t,r,s,i,o,a,p,f).then(g=>{if(!g.ok)return m(g.error,g.pluginName);try{d(g.requestPlugins,g.runOnEndCallbacks,g.scheduleOnDisposeCallbacks);}catch(y){m(y,"");}},g=>m(g,""));return}try{d(null,(g,y)=>y([],[]),()=>{});}catch(g){m(g,"");}function d(g,y,w){let v=i.hasFS,{entries:A,flags:E,write:S,stdinContents:C,stdinResolveDir:_,absWorkingDir:x,nodePaths:$,mangleCache:b}=Nk(n,a,l,cv,v);if(S&&!i.hasFS)throw new Error('The "write" option is unavailable in this environment');let T={command:"build",key:e,entries:A,flags:E,write:S,stdinContents:C,stdinResolveDir:_,absWorkingDir:x||c,nodePaths:$,context:h};g&&(T.plugins=g),b&&(T.mangleCache=b);let Q=(I,H)=>{let q={errors:ps(I.errors,f),warnings:ps(I.warnings,f),outputFiles:void 0,metafile:void 0,mangleCache:void 0},X=q.errors.slice(),G=q.warnings.slice();I.outputFiles&&(q.outputFiles=I.outputFiles.map(Fk)),I.metafile&&(q.metafile=JSON.parse(I.metafile)),I.mangleCache&&(q.mangleCache=I.mangleCache),I.writeToStdout!==void 0&&console.log(ds(I.writeToStdout).replace(/\n$/,"")),y(q,(D,U)=>{if(X.length>0||D.length>0){let j=Ri("Build failed",X.concat(D),G.concat(U));return H(j,null,D,U)}H(null,q,D,U);});},V,R;h&&(o["on-end"]=(I,H)=>new Promise(q=>{Q(H,(X,G,D,U)=>{let j={errors:D,warnings:U};R&&R(X,G),V=void 0,R=void 0,r(I,j),q();});})),t(s,T,(I,H)=>{if(I)return u(new Error(I),null);if(!h)return Q(H,(G,D)=>(w(),u(G,D)));if(H.errors.length>0)return u(Ri("Context failed",H.errors,H.warnings),null);let q=!1,X={rebuild:()=>(V||(V=new Promise((G,D)=>{let U;R=(P,F)=>{U||(U=()=>P?D(P):G(F));};let j=()=>{t(s,{command:"rebuild",key:e},(F,W)=>{F?D(new Error(F)):U?U():j();});};j();})),V),watch:(G={})=>new Promise((D,U)=>{if(!i.hasFS)throw new Error('Cannot use the "watch" API in this environment');De(G,{},"in watch() call"),t(s,{command:"watch",key:e},F=>{F?U(new Error(F)):D(void 0);});}),serve:(G={})=>new Promise((D,U)=>{if(!i.hasFS)throw new Error('Cannot use the "serve" API in this environment');let j={},P=N(G,j,"port",vr),F=N(G,j,"host",te),W=N(G,j,"servedir",te),O=N(G,j,"keyfile",te),J=N(G,j,"certfile",te),B=N(G,j,"fallback",te),K=N(G,j,"onRequest",Av);De(G,j,"in serve() call");let L={command:"serve",key:e,onRequest:!!K};P!==void 0&&(L.port=P),F!==void 0&&(L.host=F),W!==void 0&&(L.servedir=W),O!==void 0&&(L.keyfile=O),J!==void 0&&(L.certfile=J),B!==void 0&&(L.fallback=B),t(s,L,(z,ae)=>{if(z)return U(new Error(z));K&&(o["serve-request"]=(ee,le)=>{K(le.args),r(ee,{});}),D(ae);});}),cancel:()=>new Promise(G=>{if(q)return G();t(s,{command:"cancel",key:e},()=>{G();});}),dispose:()=>new Promise(G=>{if(q)return G();q=!0,t(s,{command:"dispose",key:e},()=>{G(),w(),s.unref();});})};s.ref(),u(null,X);});}}var Dk=async(n,e,t,r,s,i,o,a,l)=>{let c=[],u=[],f={},h={},m=[],p=0,d=0,g=[],y=!1;a=[...a];for(let A of a){let E={};if(typeof A!="object")throw new Error(`Plugin at index ${d} must be an object`);let S=N(A,E,"name",te);if(typeof S!="string"||S==="")throw new Error(`Plugin at index ${d} is missing a name`);try{let C=N(A,E,"setup",Av);if(typeof C!="function")throw new Error("Plugin is missing a setup function");De(A,E,`on plugin ${Me(S)}`);let _={name:S,onStart:!1,onEnd:!1,onResolve:[],onLoad:[]};d++;let $=C({initialOptions:o,resolve:(b,T={})=>{if(!y)throw new Error('Cannot call "resolve" before plugin setup has completed');if(typeof b!="string")throw new Error("The path to resolve must be a string");let Q=Object.create(null),V=N(T,Q,"pluginName",te),R=N(T,Q,"importer",te),I=N(T,Q,"namespace",te),H=N(T,Q,"resolveDir",te),q=N(T,Q,"kind",te),X=N(T,Q,"pluginData",Fa),G=N(T,Q,"with",Ot);return De(T,Q,"in resolve() call"),new Promise((D,U)=>{let j={command:"resolve",path:b,key:n,pluginName:S};if(V!=null&&(j.pluginName=V),R!=null&&(j.importer=R),I!=null&&(j.namespace=I),H!=null&&(j.resolveDir=H),q!=null)j.kind=q;else throw new Error('Must specify "kind" when calling "resolve"');X!=null&&(j.pluginData=l.store(X)),G!=null&&(j.with=Bk(G,"with")),e(r,j,(P,F)=>{P!==null?U(new Error(P)):D({errors:ps(F.errors,l),warnings:ps(F.warnings,l),path:F.path,external:F.external,sideEffects:F.sideEffects,namespace:F.namespace,suffix:F.suffix,pluginData:l.load(F.pluginData)});});})},onStart(b){let T='This error came from the "onStart" callback registered here:',Q=Da(new Error(T),s,"onStart");c.push({name:S,callback:b,note:Q}),_.onStart=!0;},onEnd(b){let T='This error came from the "onEnd" callback registered here:',Q=Da(new Error(T),s,"onEnd");u.push({name:S,callback:b,note:Q}),_.onEnd=!0;},onResolve(b,T){let Q='This error came from the "onResolve" callback registered here:',V=Da(new Error(Q),s,"onResolve"),R={},I=N(b,R,"filter",ja),H=N(b,R,"namespace",te);if(De(b,R,`in onResolve() call for plugin ${Me(S)}`),I==null)throw new Error("onResolve() call is missing a filter");let q=p++;f[q]={name:S,callback:T,note:V},_.onResolve.push({id:q,filter:I.source,namespace:H||""});},onLoad(b,T){let Q='This error came from the "onLoad" callback registered here:',V=Da(new Error(Q),s,"onLoad"),R={},I=N(b,R,"filter",ja),H=N(b,R,"namespace",te);if(De(b,R,`in onLoad() call for plugin ${Me(S)}`),I==null)throw new Error("onLoad() call is missing a filter");let q=p++;h[q]={name:S,callback:T,note:V},_.onLoad.push({id:q,filter:I.source,namespace:H||""});},onDispose(b){m.push(b);},esbuild:s.esbuild});$&&await $,g.push(_);}catch(C){return {ok:!1,error:C,pluginName:S}}}i["on-start"]=async(A,E)=>{let S={errors:[],warnings:[]};await Promise.all(c.map(async({name:C,callback:_,note:x})=>{try{let $=await _();if($!=null){if(typeof $!="object")throw new Error(`Expected onStart() callback in plugin ${Me(C)} to return an object`);let b={},T=N($,b,"errors",ke),Q=N($,b,"warnings",ke);De($,b,`from onStart() callback in plugin ${Me(C)}`),T!=null&&S.errors.push(...Sn(T,"errors",l,C,void 0)),Q!=null&&S.warnings.push(...Sn(Q,"warnings",l,C,void 0));}}catch($){S.errors.push(wr($,s,l,x&&x(),C));}})),t(A,S);},i["on-resolve"]=async(A,E)=>{let S={},C="",_,x;for(let $ of E.ids)try{({name:C,callback:_,note:x}=f[$]);let b=await _({path:E.path,importer:E.importer,namespace:E.namespace,resolveDir:E.resolveDir,kind:E.kind,pluginData:l.load(E.pluginData),with:E.with});if(b!=null){if(typeof b!="object")throw new Error(`Expected onResolve() callback in plugin ${Me(C)} to return an object`);let T={},Q=N(b,T,"pluginName",te),V=N(b,T,"path",te),R=N(b,T,"namespace",te),I=N(b,T,"suffix",te),H=N(b,T,"external",_e),q=N(b,T,"sideEffects",_e),X=N(b,T,"pluginData",Fa),G=N(b,T,"errors",ke),D=N(b,T,"warnings",ke),U=N(b,T,"watchFiles",ke),j=N(b,T,"watchDirs",ke);De(b,T,`from onResolve() callback in plugin ${Me(C)}`),S.id=$,Q!=null&&(S.pluginName=Q),V!=null&&(S.path=V),R!=null&&(S.namespace=R),I!=null&&(S.suffix=I),H!=null&&(S.external=H),q!=null&&(S.sideEffects=q),X!=null&&(S.pluginData=l.store(X)),G!=null&&(S.errors=Sn(G,"errors",l,C,void 0)),D!=null&&(S.warnings=Sn(D,"warnings",l,C,void 0)),U!=null&&(S.watchFiles=Ba(U,"watchFiles")),j!=null&&(S.watchDirs=Ba(j,"watchDirs"));break}}catch(b){S={id:$,errors:[wr(b,s,l,x&&x(),C)]};break}t(A,S);},i["on-load"]=async(A,E)=>{let S={},C="",_,x;for(let $ of E.ids)try{({name:C,callback:_,note:x}=h[$]);let b=await _({path:E.path,namespace:E.namespace,suffix:E.suffix,pluginData:l.load(E.pluginData),with:E.with});if(b!=null){if(typeof b!="object")throw new Error(`Expected onLoad() callback in plugin ${Me(C)} to return an object`);let T={},Q=N(b,T,"pluginName",te),V=N(b,T,"contents",_v),R=N(b,T,"resolveDir",te),I=N(b,T,"pluginData",Fa),H=N(b,T,"loader",te),q=N(b,T,"errors",ke),X=N(b,T,"warnings",ke),G=N(b,T,"watchFiles",ke),D=N(b,T,"watchDirs",ke);De(b,T,`from onLoad() callback in plugin ${Me(C)}`),S.id=$,Q!=null&&(S.pluginName=Q),V instanceof Uint8Array?S.contents=V:V!=null&&(S.contents=Vt(V)),R!=null&&(S.resolveDir=R),I!=null&&(S.pluginData=l.store(I)),H!=null&&(S.loader=H),q!=null&&(S.errors=Sn(q,"errors",l,C,void 0)),X!=null&&(S.warnings=Sn(X,"warnings",l,C,void 0)),G!=null&&(S.watchFiles=Ba(G,"watchFiles")),D!=null&&(S.watchDirs=Ba(D,"watchDirs"));break}}catch(b){S={id:$,errors:[wr(b,s,l,x&&x(),C)]};break}t(A,S);};let w=(A,E)=>E([],[]);u.length>0&&(w=(A,E)=>{(async()=>{let S=[],C=[];for(let{name:_,callback:x,note:$}of u){let b,T;try{let Q=await x(A);if(Q!=null){if(typeof Q!="object")throw new Error(`Expected onEnd() callback in plugin ${Me(_)} to return an object`);let V={},R=N(Q,V,"errors",ke),I=N(Q,V,"warnings",ke);De(Q,V,`from onEnd() callback in plugin ${Me(_)}`),R!=null&&(b=Sn(R,"errors",l,_,void 0)),I!=null&&(T=Sn(I,"warnings",l,_,void 0));}}catch(Q){b=[wr(Q,s,l,$&&$(),_)];}if(b){S.push(...b);try{A.errors.push(...b);}catch{}}if(T){C.push(...T);try{A.warnings.push(...T);}catch{}}}E(S,C);})();});let v=()=>{for(let A of m)setTimeout(()=>A(),0);};return y=!0,{ok:!0,requestPlugins:g,runOnEndCallbacks:w,scheduleOnDisposeCallbacks:v}};function Iv(){let n=new Map,e=0;return {load(t){return n.get(t)},store(t){if(t===void 0)return -1;let r=e++;return n.set(r,t),r}}}function Da(n,e,t){let r,s=!1;return ()=>{if(s)return r;s=!0;try{let i=(n.stack+"").split(`
|
|
231
|
+
`);i.splice(1,1);let o=Ov(e,i,t);if(o)return r={text:n.message,location:o},r}catch{}}}function wr(n,e,t,r,s){let i="Internal error",o=null;try{i=(n&&n.message||n)+"";}catch{}try{o=Ov(e,(n.stack+"").split(`
|
|
232
|
+
`),"");}catch{}return {id:"",pluginName:s,text:i,location:o,notes:r?[r]:[],detail:t?t.store(n):-1}}function Ov(n,e,t){let r=" at ";if(n.readFileSync&&!e[0].startsWith(r)&&e[1].startsWith(r))for(let s=1;s<e.length;s++){let i=e[s];if(i.startsWith(r))for(i=i.slice(r.length);;){let o=/^(?:new |async )?\S+ \((.*)\)$/.exec(i);if(o){i=o[1];continue}if(o=/^eval at \S+ \((.*)\)(?:, \S+:\d+:\d+)?$/.exec(i),o){i=o[1];continue}if(o=/^(\S+):(\d+):(\d+)$/.exec(i),o){let a;try{a=n.readFileSync(o[1],"utf8");}catch{break}let l=a.split(/\r\n|\r|\n|\u2028|\u2029/)[+o[2]-1]||"",c=+o[3]-1,u=l.slice(c,c+t.length)===t?t.length:0;return {file:o[1],namespace:"file",line:+o[2],column:Vt(l.slice(0,c)).length,length:Vt(l.slice(c,c+u)).length,lineText:l+`
|
|
233
|
+
`+e.slice(1).join(`
|
|
234
|
+
`),suggestion:""}}break}}return null}function Ri(n,e,t){let r=5;n+=e.length<1?"":` with ${e.length} error${e.length<2?"":"s"}:`+e.slice(0,r+1).map((i,o)=>{if(o===r)return `
|
|
235
|
+
...`;if(!i.location)return `
|
|
236
|
+
error: ${i.text}`;let{file:a,line:l,column:c}=i.location,u=i.pluginName?`[plugin: ${i.pluginName}] `:"";return `
|
|
237
|
+
${a}:${l}:${c}: ERROR: ${u}${i.text}`}).join("");let s=new Error(n);for(let[i,o]of [["errors",e],["warnings",t]])Object.defineProperty(s,i,{configurable:!0,enumerable:!0,get:()=>o,set:a=>Object.defineProperty(s,i,{configurable:!0,enumerable:!0,value:a})});return s}function ps(n,e){for(let t of n)t.detail=e.load(t.detail);return n}function dv(n,e,t){if(n==null)return null;let r={},s=N(n,r,"file",te),i=N(n,r,"namespace",te),o=N(n,r,"line",vr),a=N(n,r,"column",vr),l=N(n,r,"length",vr),c=N(n,r,"lineText",te),u=N(n,r,"suggestion",te);if(De(n,r,e),c){let f=c.slice(0,(a&&a>0?a:0)+(l&&l>0?l:0)+(t&&t>0?t:80));!/[\x7F-\uFFFF]/.test(f)&&!/\n/.test(c)&&(c=f);}return {file:s||"",namespace:i||"",line:o||0,column:a||0,length:l||0,lineText:c||"",suggestion:u||""}}function Sn(n,e,t,r,s){let i=[],o=0;for(let a of n){let l={},c=N(a,l,"id",te),u=N(a,l,"pluginName",te),f=N(a,l,"text",te),h=N(a,l,"location",hv),m=N(a,l,"notes",ke),p=N(a,l,"detail",Fa),d=`in element ${o} of "${e}"`;De(a,l,d);let g=[];if(m)for(let y of m){let w={},v=N(y,w,"text",te),A=N(y,w,"location",hv);De(y,w,d),g.push({text:v||"",location:dv(A,d,s)});}i.push({id:c||"",pluginName:u||r,text:f||"",location:dv(h,d,s),notes:g,detail:t?t.store(p):-1}),o++;}return i}function Ba(n,e){let t=[];for(let r of n){if(typeof r!="string")throw new Error(`${Me(e)} must be an array of strings`);t.push(r);}return t}function Bk(n,e){let t=Object.create(null);for(let r in n){let s=n[r];if(typeof s!="string")throw new Error(`key ${Me(r)} in object ${Me(e)} must be a string`);t[r]=s;}return t}function Fk({path:n,contents:e,hash:t}){let r=null;return {path:n,contents:e,hash:t,get text(){let s=this.contents;return (r===null||s!==e)&&(e=s,r=ds(s)),r}}}var qn=he("fs"),pv=he("os"),Rt=he("path"),hs=process.env.ESBUILD_BINARY_PATH||hs,jk=n=>!!n&&n!=="/usr/bin/esbuild",mv="@esbuild/darwin-arm64",gv="@esbuild/darwin-x64",Ua={"win32 arm64 LE":"@esbuild/win32-arm64","win32 ia32 LE":"@esbuild/win32-ia32","win32 x64 LE":"@esbuild/win32-x64"},Qa={"aix ppc64 BE":"@esbuild/aix-ppc64","android arm64 LE":"@esbuild/android-arm64","darwin arm64 LE":"@esbuild/darwin-arm64","darwin x64 LE":"@esbuild/darwin-x64","freebsd arm64 LE":"@esbuild/freebsd-arm64","freebsd x64 LE":"@esbuild/freebsd-x64","linux arm LE":"@esbuild/linux-arm","linux arm64 LE":"@esbuild/linux-arm64","linux ia32 LE":"@esbuild/linux-ia32","linux mips64el LE":"@esbuild/linux-mips64el","linux ppc64 LE":"@esbuild/linux-ppc64","linux riscv64 LE":"@esbuild/linux-riscv64","linux s390x BE":"@esbuild/linux-s390x","linux x64 LE":"@esbuild/linux-x64","linux loong64 LE":"@esbuild/linux-loong64","netbsd x64 LE":"@esbuild/netbsd-x64","openbsd x64 LE":"@esbuild/openbsd-x64","sunos x64 LE":"@esbuild/sunos-x64"},yv={"android arm LE":"@esbuild/android-arm","android x64 LE":"@esbuild/android-x64"};function Uk(){let n,e,t=!1,r=`${process.platform} ${pv.arch()} ${pv.endianness()}`;if(r in Ua)n=Ua[r],e="esbuild.exe";else if(r in Qa)n=Qa[r],e="bin/esbuild";else if(r in yv)n=yv[r],e="bin/esbuild",t=!0;else throw new Error(`Unsupported platform: ${r}`);return {pkg:n,subpath:e,isWASM:t}}function Qk(){let n=he.resolve("esbuild"),e=Rt.dirname(Rt.dirname(Rt.dirname(n)));if(Rt.basename(e)==="node_modules"){for(let t in Qa)try{let r=Qa[t];if(qn.existsSync(Rt.join(e,r)))return r}catch{}for(let t in Ua)try{let r=Ua[t];if(qn.existsSync(Rt.join(e,r)))return r}catch{}}return null}function Wk(n,e){let t=Rt.dirname(he.resolve("esbuild"));return Rt.join(t,`downloaded-${n.replace("/","-")}-${Rt.basename(e)}`)}function qk(){if(jk(hs))if(!qn.existsSync(hs))console.warn(`[esbuild] Ignoring bad configuration: ESBUILD_BINARY_PATH=${hs}`);else return {binPath:hs,isWASM:!1};let{pkg:n,subpath:e,isWASM:t}=Uk(),r;try{r=he.resolve(`${n}/${e}`);}catch(s){if(r=Wk(n,e),!qn.existsSync(r)){try{he.resolve(n);}catch{let i=Qk();if(i){let o=`
|
|
238
|
+
Specifically the "${i}" package is present but this platform
|
|
239
|
+
needs the "${n}" package instead. People often get into this
|
|
240
|
+
situation by installing esbuild on Windows or macOS and copying "node_modules"
|
|
241
|
+
into a Docker image that runs Linux, or by copying "node_modules" between
|
|
242
|
+
Windows and WSL environments.
|
|
243
|
+
|
|
244
|
+
If you are installing with npm, you can try not copying the "node_modules"
|
|
245
|
+
directory when you copy the files over, and running "npm ci" or "npm install"
|
|
246
|
+
on the destination platform after the copy. Or you could consider using yarn
|
|
247
|
+
instead of npm which has built-in support for installing a package on multiple
|
|
248
|
+
platforms simultaneously.
|
|
249
|
+
|
|
250
|
+
If you are installing with yarn, you can try listing both this platform and the
|
|
251
|
+
other platform in your ".yarnrc.yml" file using the "supportedArchitectures"
|
|
252
|
+
feature: https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
|
|
253
|
+
Keep in mind that this means multiple copies of esbuild will be present.
|
|
254
|
+
`;throw (n===gv&&i===mv||n===mv&&i===gv)&&(o=`
|
|
255
|
+
Specifically the "${i}" package is present but this platform
|
|
256
|
+
needs the "${n}" package instead. People often get into this
|
|
257
|
+
situation by installing esbuild with npm running inside of Rosetta 2 and then
|
|
258
|
+
trying to use it with node running outside of Rosetta 2, or vice versa (Rosetta
|
|
259
|
+
2 is Apple's on-the-fly x86_64-to-arm64 translation service).
|
|
260
|
+
|
|
261
|
+
If you are installing with npm, you can try ensuring that both npm and node are
|
|
262
|
+
not running under Rosetta 2 and then reinstalling esbuild. This likely involves
|
|
263
|
+
changing how you installed npm and/or node. For example, installing node with
|
|
264
|
+
the universal installer here should work: https://nodejs.org/en/download/. Or
|
|
265
|
+
you could consider using yarn instead of npm which has built-in support for
|
|
266
|
+
installing a package on multiple platforms simultaneously.
|
|
267
|
+
|
|
268
|
+
If you are installing with yarn, you can try listing both "arm64" and "x64"
|
|
269
|
+
in your ".yarnrc.yml" file using the "supportedArchitectures" feature:
|
|
270
|
+
https://yarnpkg.com/configuration/yarnrc/#supportedArchitectures
|
|
271
|
+
Keep in mind that this means multiple copies of esbuild will be present.
|
|
272
|
+
`),new Error(`
|
|
273
|
+
You installed esbuild for another platform than the one you're currently using.
|
|
274
|
+
This won't work because esbuild is written with native code and needs to
|
|
275
|
+
install a platform-specific binary executable.
|
|
276
|
+
${o}
|
|
277
|
+
Another alternative is to use the "esbuild-wasm" package instead, which works
|
|
278
|
+
the same way on all platforms. But it comes with a heavy performance cost and
|
|
279
|
+
can sometimes be 10x slower than the "esbuild" package, so you may also not
|
|
280
|
+
want to do that.
|
|
281
|
+
`)}throw new Error(`The package "${n}" could not be found, and is needed by esbuild.
|
|
282
|
+
|
|
283
|
+
If you are installing esbuild with npm, make sure that you don't specify the
|
|
284
|
+
"--no-optional" or "--omit=optional" flags. The "optionalDependencies" feature
|
|
285
|
+
of "package.json" is used by esbuild to install the correct binary executable
|
|
286
|
+
for your current platform.`)}throw s}}if(/\.zip\//.test(r)){let s;try{s=he("pnpapi");}catch{}if(s){let i=s.getPackageInformation(s.topLevel).packageLocation,o=Rt.join(i,"node_modules",".cache","esbuild",`pnpapi-${n.replace("/","-")}-0.21.5-${Rt.basename(e)}`);return qn.existsSync(o)||(qn.mkdirSync(Rt.dirname(o),{recursive:!0}),qn.copyFileSync(r,o),qn.chmodSync(o,493)),{binPath:o,isWASM:t}}}return {binPath:r,isWASM:t}}var Rv=he("child_process"),Hk=he("crypto"),Pf=he("path"),Er=he("fs"),zk=he("os"),Gk=he("tty"),at;if(process.env.ESBUILD_WORKER_THREADS!=="0"){try{at=he("worker_threads");}catch{}let[n,e]=process.versions.node.split(".");(+n<12||+n==12&&+e<17||+n==13&&+e<13)&&(at=void 0);}var wv,Ti=((wv=at?.workerData)==null?void 0:wv.esbuildVersion)==="0.21.5",kv=()=>{if(!hs&&(Pf.basename(__filename)!=="main.js"||Pf.basename(__dirname)!=="lib"))throw new Error(`The esbuild JavaScript API cannot be bundled. Please mark the "esbuild" package as external so it's not included in the bundle.
|
|
287
|
+
|
|
288
|
+
More information: The file containing the code for esbuild's JavaScript API (${__filename}) does not appear to be inside the esbuild package on the file system, which usually means that the esbuild package was bundled into another file. This is problematic because the API needs to run a binary executable inside the esbuild package which is located using a relative path from the API code to the executable. If the esbuild package is bundled, the relative path will be incorrect and the executable won't be found.`);{let{binPath:n,isWASM:e}=qk();return e?["node",[n]]:[n,[]]}},ki=()=>Gk.isatty(2),Kk={readFile(n,e){try{let t=Er.readFileSync(n,"utf8");try{Er.unlinkSync(n);}catch{}e(null,t);}catch(t){e(t,null);}},writeFile(n,e){try{let t=$v();Er.writeFileSync(t,n),e(t);}catch{e(null);}}},Vk={readFile(n,e){try{Er.readFile(n,"utf8",(t,r)=>{try{Er.unlink(n,()=>e(t,r));}catch{e(t,r);}});}catch(t){e(t,null);}},writeFile(n,e){try{let t=$v();Er.writeFile(t,n,r=>e(r!==null?null:t));}catch{e(null);}}},Jk="0.21.5",Yk=n=>Sr().build(n),Xk=n=>Sr().context(n),Zk=(n,e)=>Sr().transform(n,e),e$=(n,e)=>Sr().formatMessages(n,e),t$=(n,e)=>Sr().analyzeMetafile(n,e),n$=n=>{if(at&&!Ti)return lt||(lt=za(at)),lt.buildSync(n);let e;return Ha(t=>t.buildOrContext({callName:"buildSync",refs:null,options:n,isTTY:ki(),defaultWD:Ar,callback:(r,s)=>{if(r)throw r;e=s;}})),e},r$=(n,e)=>{if(at&&!Ti)return lt||(lt=za(at)),lt.transformSync(n,e);let t;return Ha(r=>r.transform({callName:"transformSync",refs:null,input:n,options:e||{},isTTY:ki(),fs:Kk,callback:(s,i)=>{if(s)throw s;t=i;}})),t},s$=(n,e)=>{if(at&&!Ti)return lt||(lt=za(at)),lt.formatMessagesSync(n,e);let t;return Ha(r=>r.formatMessages({callName:"formatMessagesSync",refs:null,messages:n,options:e,callback:(s,i)=>{if(s)throw s;t=i;}})),t},i$=(n,e)=>{if(at&&!Ti)return lt||(lt=za(at)),lt.analyzeMetafileSync(n,e);let t;return Ha(r=>r.analyzeMetafile({callName:"analyzeMetafileSync",refs:null,metafile:typeof n=="string"?n:JSON.stringify(n),options:e,callback:(s,i)=>{if(s)throw s;t=i;}})),t},o$=()=>(Wa&&Wa(),lt&<.stop(),Promise.resolve()),Nf=!1,a$=n=>{if(n=Pk(n||{}),n.wasmURL)throw new Error('The "wasmURL" option only works in the browser');if(n.wasmModule)throw new Error('The "wasmModule" option only works in the browser');if(n.worker)throw new Error('The "worker" option only works in the browser');if(Nf)throw new Error('Cannot call "initialize" more than once');return Sr(),Nf=!0,Promise.resolve()},Ar=process.cwd(),Oi,Wa,Sr=()=>{if(Oi)return Oi;let[n,e]=kv(),t=Rv.spawn(n,e.concat("--service=0.21.5","--ping"),{windowsHide:!0,stdio:["pipe","pipe","inherit"],cwd:Ar}),{readFromStdout:r,afterClose:s,service:i}=Cv({writeToStdin(u){t.stdin.write(u,f=>{f&&s(f);});},readFileSync:Er.readFileSync,isSync:!1,hasFS:!0,esbuild:$i});t.stdin.on("error",s),t.on("error",s);let o=t.stdin,a=t.stdout;a.on("data",r),a.on("end",s),Wa=()=>{o.destroy(),a.destroy(),t.kill(),Nf=!1,Oi=void 0,Wa=void 0;};let l=0;t.unref(),o.unref&&o.unref(),a.unref&&a.unref();let c={ref(){++l===1&&t.ref();},unref(){--l===0&&t.unref();}};return Oi={build:u=>new Promise((f,h)=>{i.buildOrContext({callName:"build",refs:c,options:u,isTTY:ki(),defaultWD:Ar,callback:(m,p)=>m?h(m):f(p)});}),context:u=>new Promise((f,h)=>i.buildOrContext({callName:"context",refs:c,options:u,isTTY:ki(),defaultWD:Ar,callback:(m,p)=>m?h(m):f(p)})),transform:(u,f)=>new Promise((h,m)=>i.transform({callName:"transform",refs:c,input:u,options:f||{},isTTY:ki(),fs:Vk,callback:(p,d)=>p?m(p):h(d)})),formatMessages:(u,f)=>new Promise((h,m)=>i.formatMessages({callName:"formatMessages",refs:c,messages:u,options:f,callback:(p,d)=>p?m(p):h(d)})),analyzeMetafile:(u,f)=>new Promise((h,m)=>i.analyzeMetafile({callName:"analyzeMetafile",refs:c,metafile:typeof u=="string"?u:JSON.stringify(u),options:f,callback:(p,d)=>p?m(p):h(d)}))},Oi},Ha=n=>{let[e,t]=kv(),r=new Uint8Array,{readFromStdout:s,afterClose:i,service:o}=Cv({writeToStdin(l){if(r.length!==0)throw new Error("Must run at most one command");r=l;},isSync:!0,hasFS:!0,esbuild:$i});n(o);let a=Rv.execFileSync(e,t.concat("--service=0.21.5"),{cwd:Ar,windowsHide:!0,input:r,maxBuffer:+process.env.ESBUILD_MAX_BUFFER||16*1024*1024});s(a),i(null);},$v=()=>Pf.join(zk.tmpdir(),`esbuild-${Hk.randomBytes(32).toString("hex")}`),lt=null,za=n=>{let{port1:e,port2:t}=new n.MessageChannel,r=new n.Worker(__filename,{workerData:{workerPort:t,defaultWD:Ar,esbuildVersion:"0.21.5"},transferList:[t],execArgv:[]}),s=0,i=c=>{let u=new Error(`Build failed with 1 error:
|
|
289
|
+
error: ${c}`),f=[{id:"",pluginName:"",text:c,location:null,notes:[],detail:void 0}];return u.errors=f,u.warnings=[],u},o=c=>{if(!c)return;let u=c.plugins;if(u&&u.length>0)throw i("Cannot use plugins in synchronous API calls")},a=(c,u)=>{for(let f in u)c[f]=u[f];},l=(c,u)=>{let f=s++,h=new SharedArrayBuffer(8),m=new Int32Array(h),p={sharedBuffer:h,id:f,command:c,args:u};r.postMessage(p);let d=Atomics.wait(m,0,0);if(d!=="ok"&&d!=="not-equal")throw new Error("Internal error: Atomics.wait() failed: "+d);let{message:{id:g,resolve:y,reject:w,properties:v}}=n.receiveMessageOnPort(e);if(f!==g)throw new Error(`Internal error: Expected id ${f} but got id ${g}`);if(w)throw a(w,v),w;return y};return r.unref(),{buildSync(c){return o(c),l("build",[c])},transformSync(c,u){return l("transform",[c,u])},formatMessagesSync(c,u){return l("formatMessages",[c,u])},analyzeMetafileSync(c,u){return l("analyzeMetafile",[c,u])},stop(){r.terminate(),lt=null;}}},l$=()=>{let n=at.workerData.workerPort,e=at.parentPort,t=r=>{let s={};if(r&&typeof r=="object")for(let i in r)s[i]=r[i];return s};try{let r=Sr();Ar=at.workerData.defaultWD,e.on("message",s=>{(async()=>{let{sharedBuffer:i,id:o,command:a,args:l}=s,c=new Int32Array(i);try{switch(a){case"build":n.postMessage({id:o,resolve:await r.build(l[0])});break;case"transform":n.postMessage({id:o,resolve:await r.transform(l[0],l[1])});break;case"formatMessages":n.postMessage({id:o,resolve:await r.formatMessages(l[0],l[1])});break;case"analyzeMetafile":n.postMessage({id:o,resolve:await r.analyzeMetafile(l[0],l[1])});break;default:throw new Error(`Invalid command: ${a}`)}}catch(u){n.postMessage({id:o,reject:u,properties:t(u)});}Atomics.add(c,0,1),Atomics.notify(c,0,1/0);})();});}catch(r){e.on("message",s=>{let{sharedBuffer:i,id:o}=s,a=new Int32Array(i);n.postMessage({id:o,reject:r,properties:t(r)}),Atomics.add(a,0,1),Atomics.notify(a,0,1/0);});}};Ti&&l$();var c$=$i;});var Pv,Nv,Lv,Mv,Bf,Hn,Ff,jf,Uf,Qf=Fn(()=>{(JSON.parse(Je.readFileSync(new URL("../../package.json",(typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('preset.cjs', document.baseURI).href)))).toString())),Pv=/\.(css|less|sass|scss|styl|stylus|pcss|postcss|sss)(?:$|\?)/,Nv="/@fs/",Lv="/@vite/client",Mv="/@vite/env",Bf=Oe.resolve(Jr.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('preset.cjs', document.baseURI).href))),"../../.."),Hn=Oe.resolve(Bf,"dist/client/client.mjs"),Ff=Oe.resolve(Bf,"dist/client/env.mjs"),jf=Oe__default.default.dirname(Hn),Uf=["apng","bmp","png","jpe?g","jfif","pjpeg","pjp","gif","svg","ico","webp","avif","mp4","webm","ogg","mp3","wav","flac","aac","opus","mov","m4a","vtt","woff2?","eot","ttf","otf","webmanifest","pdf","txt"],new RegExp("\\.("+Uf.join("|")+")(\\?.*)?$");});var sE={};Ju(sE,{i:()=>yT});var yT;var nS={};Ju(nS,{AtRule:()=>NN,Comment:()=>TN,Container:()=>RN,CssSyntaxError:()=>IN,Declaration:()=>ON,Document:()=>$N,Input:()=>MN,Node:()=>FN,Processor:()=>kN,Result:()=>LN,Root:()=>BN,Rule:()=>DN,Warning:()=>PN,atRule:()=>_N,comment:()=>SN,decl:()=>xN,default:()=>vl,document:()=>AN,fromJSON:()=>yN,list:()=>EN,parse:()=>vN,plugin:()=>wN,root:()=>CN,rule:()=>bN,stringify:()=>gN});var vl,gN,yN,wN,vN,EN,AN,SN,_N,bN,xN,CN,IN,ON,RN,kN,$N,TN,PN,NN,LN,MN,DN,BN,FN;var __={};Ju(__,{i:()=>oF});var oF;function bn(n){return n&&n.__esModule&&Object.prototype.hasOwnProperty.call(n,"default")?n.default:n}function TF(n){if(n.__esModule)return n;var e=n.default;if(typeof e=="function"){var t=function r(){return this instanceof r?Reflect.construct(e,arguments,this.constructor):e.apply(this,arguments)};t.prototype=e.prototype;}else t={};return Object.defineProperty(t,"__esModule",{value:!0}),Object.keys(n).forEach(function(r){var s=Object.getOwnPropertyDescriptor(n,r);Object.defineProperty(t,r,s.get?s:{enumerable:!0,get:function(){return n[r]}});}),t}function PF(n){throw new Error('Could not dynamically require "'+n+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}function jF(n){return n.replace(FF,"/")}function QF(n){return n.replace(UF,"")}function Cx(n,e,t){n instanceof RegExp&&(n=P_(n,t)),e instanceof RegExp&&(e=P_(e,t));var r=Ix(n,e,t);return r&&{start:r[0],end:r[1],pre:t.slice(0,r[0]),body:t.slice(r[0]+n.length,r[1]),post:t.slice(r[1]+e.length)}}function P_(n,e){var t=e.match(n);return t?t[0]:null}function Ix(n,e,t){var r,s,i,o,a,l=t.indexOf(n),c=t.indexOf(e,l+1),u=l;if(l>=0&&c>0){if(n===e)return [l,c];for(r=[],i=t.length;u>=0&&!a;)u==l?(r.push(u),l=t.indexOf(n,u+1)):r.length==1?a=[r.pop(),c]:(s=r.pop(),s<i&&(i=s,o=c),c=t.indexOf(e,u+1)),u=l<c&&l>=0?l:c;r.length&&(a=[i,o]);}return a}function Jd(n){return parseInt(n,10)==n?parseInt(n,10):n.charCodeAt(0)}function bj(n){return n.split("\\\\").join(Rx).split("\\{").join(kx).split("\\}").join(Mg).split("\\,").join($x).split("\\.").join(Tx)}function xj(n){return n.split(Rx).join("\\").split(kx).join("{").split(Mg).join("}").split($x).join(",").split(Tx).join(".")}function Px(n){if(!n)return [""];var e=[],t=Ox("{","}",n);if(!t)return n.split(",");var r=t.pre,s=t.body,i=t.post,o=r.split(",");o[o.length-1]+="{"+s+"}";var a=Px(i);return i.length&&(o[o.length-1]+=a.shift(),o.push.apply(o,a)),e.push.apply(e,o),e}function Cj(n){return n?(n.substr(0,2)==="{}"&&(n="\\{\\}"+n.substr(2)),bo(bj(n),!0).map(xj)):[]}function Ij(n){return "{"+n+"}"}function Oj(n){return /^-?0\d/.test(n)}function Rj(n,e){return n<=e}function kj(n,e){return n>=e}function bo(n,e){var t=[],r=Ox("{","}",n);if(!r)return [n];var s=r.pre,i=r.post.length?bo(r.post,!1):[""];if(/\$$/.test(r.pre))for(var o=0;o<i.length;o++){var a=s+"{"+r.body+"}"+i[o];t.push(a);}else {var l=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(r.body),c=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(r.body),u=l||c,f=r.body.indexOf(",")>=0;if(!u&&!f)return r.post.match(/,.*\}/)?(n=r.pre+"{"+r.body+Mg+r.post,bo(n)):[n];var h;if(u)h=r.body.split(/\.\./);else if(h=Px(r.body),h.length===1&&(h=bo(h[0],!1).map(Ij),h.length===1))return i.map(function($){return r.pre+h[0]+$});var m;if(u){var p=Jd(h[0]),d=Jd(h[1]),g=Math.max(h[0].length,h[1].length),y=h.length==3?Math.abs(Jd(h[2])):1,w=Rj,v=d<p;v&&(y*=-1,w=kj);var A=h.some(Oj);m=[];for(var E=p;w(E,d);E+=y){var S;if(c)S=String.fromCharCode(E),S==="\\"&&(S="");else if(S=String(E),A){var C=g-S.length;if(C>0){var _=new Array(C+1).join("0");E<0?S="-"+_+S.slice(1):S=_+S;}}m.push(S);}}else {m=[];for(var x=0;x<h.length;x++)m.push.apply(m,bo(h[x],!1));}for(var x=0;x<m.length;x++)for(var o=0;o<i.length;o++){var a=s+m[x]+i[o];(!e||u||a)&&t.push(a);}}return t}function gu(n,e={}){return new Pn(n,e).streamSync()}function Jx(n,e={}){return new Pn(n,e).stream()}function Yx(n,e={}){return new Pn(n,e).walkSync()}async function V_(n,e={}){return new Pn(n,e).walk()}function yu(n,e={}){return new Pn(n,e).iterateSync()}function Xx(n,e={}){return new Pn(n,e).iterate()}function qU(){if(X_)return sp;X_=1;var n=1e3,e=n*60,t=e*60,r=t*24,s=r*7,i=r*365.25;sp=function(u,f){f=f||{};var h=typeof u;if(h==="string"&&u.length>0)return o(u);if(h==="number"&&isFinite(u))return f.long?l(u):a(u);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(u))};function o(u){if(u=String(u),!(u.length>100)){var f=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(u);if(f){var h=parseFloat(f[1]),m=(f[2]||"ms").toLowerCase();switch(m){case"years":case"year":case"yrs":case"yr":case"y":return h*i;case"weeks":case"week":case"w":return h*s;case"days":case"day":case"d":return h*r;case"hours":case"hour":case"hrs":case"hr":case"h":return h*t;case"minutes":case"minute":case"mins":case"min":case"m":return h*e;case"seconds":case"second":case"secs":case"sec":case"s":return h*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return h;default:return}}}}function a(u){var f=Math.abs(u);return f>=r?Math.round(u/r)+"d":f>=t?Math.round(u/t)+"h":f>=e?Math.round(u/e)+"m":f>=n?Math.round(u/n)+"s":u+"ms"}function l(u){var f=Math.abs(u);return f>=r?c(u,f,r,"day"):f>=t?c(u,f,t,"hour"):f>=e?c(u,f,e,"minute"):f>=n?c(u,f,n,"second"):u+" ms"}function c(u,f,h,m){var p=f>=h*1.5;return Math.round(u/h)+" "+m+(p?"s":"")}return sp}function Zx(){if(Z_)return ip;Z_=1;function n(e){r.debug=r,r.default=r,r.coerce=c,r.disable=o,r.enable=i,r.enabled=a,r.humanize=qU(),r.destroy=u,Object.keys(e).forEach(f=>{r[f]=e[f];}),r.names=[],r.skips=[],r.formatters={};function t(f){let h=0;for(let m=0;m<f.length;m++)h=(h<<5)-h+f.charCodeAt(m),h|=0;return r.colors[Math.abs(h)%r.colors.length]}r.selectColor=t;function r(f){let h,m=null,p,d;function g(...y){if(!g.enabled)return;let w=g,v=Number(new Date),A=v-(h||v);w.diff=A,w.prev=h,w.curr=v,h=v,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let E=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(C,_)=>{if(C==="%%")return "%";E++;let x=r.formatters[_];if(typeof x=="function"){let $=y[E];C=x.call(w,$),y.splice(E,1),E--;}return C}),r.formatArgs.call(w,y),(w.log||r.log).apply(w,y);}return g.namespace=f,g.useColors=r.useColors(),g.color=r.selectColor(f),g.extend=s,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>m!==null?m:(p!==r.namespaces&&(p=r.namespaces,d=r.enabled(f)),d),set:y=>{m=y;}}),typeof r.init=="function"&&r.init(g),g}function s(f,h){let m=r(this.namespace+(typeof h>"u"?":":h)+f);return m.log=this.log,m}function i(f){r.save(f),r.namespaces=f,r.names=[],r.skips=[];let h,m=(typeof f=="string"?f:"").split(/[\s,]+/),p=m.length;for(h=0;h<p;h++)m[h]&&(f=m[h].replace(/\*/g,".*?"),f[0]==="-"?r.skips.push(new RegExp("^"+f.slice(1)+"$")):r.names.push(new RegExp("^"+f+"$")));}function o(){let f=[...r.names.map(l),...r.skips.map(l).map(h=>"-"+h)].join(",");return r.enable(""),f}function a(f){if(f[f.length-1]==="*")return !0;let h,m;for(h=0,m=r.skips.length;h<m;h++)if(r.skips[h].test(f))return !1;for(h=0,m=r.names.length;h<m;h++)if(r.names[h].test(f))return !0;return !1}function l(f){return f.toString().substring(2,f.toString().length-2).replace(/\.\*\?$/,"*")}function c(f){return f instanceof Error?f.stack||f.message:f}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");}return r.enable(r.load()),r}return ip=n,ip}function HU(){return eb||(eb=1,function(n,e){e.formatArgs=r,e.save=s,e.load=i,e.useColors=t,e.storage=o(),e.destroy=(()=>{let l=!1;return ()=>{l||(l=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."));}})(),e.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function t(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return !0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return !1;let l;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(l=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(l[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function r(l){if(l[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+l[0]+(this.useColors?"%c ":" ")+"+"+n.exports.humanize(this.diff),!this.useColors)return;let c="color: "+this.color;l.splice(1,0,c,"color: inherit");let u=0,f=0;l[0].replace(/%[a-zA-Z%]/g,h=>{h!=="%%"&&(u++,h==="%c"&&(f=u));}),l.splice(f,0,c);}e.log=console.debug||console.log||(()=>{});function s(l){try{l?e.storage.setItem("debug",l):e.storage.removeItem("debug");}catch{}}function i(){let l;try{l=e.storage.getItem("debug");}catch{}return !l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}function o(){try{return localStorage}catch{}}n.exports=Zx()(e);let{formatters:a}=n.exports;a.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};}(Bl,Bl.exports)),Bl.exports}function zU(){return tb||(tb=1,function(n,e){let t=Og__default.default,r=Mn__default.default;e.init=u,e.log=a,e.formatArgs=i,e.save=l,e.load=c,e.useColors=s,e.destroy=r.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."),e.colors=[6,2,3,4,5,1];try{let h=du("supports-color");h&&(h.stderr||h).level>=2&&(e.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221]);}catch{}e.inspectOpts=Object.keys(process.env).filter(h=>/^debug_/i.test(h)).reduce((h,m)=>{let p=m.substring(6).toLowerCase().replace(/_([a-z])/g,(g,y)=>y.toUpperCase()),d=process.env[m];return /^(yes|on|true|enabled)$/i.test(d)?d=!0:/^(no|off|false|disabled)$/i.test(d)?d=!1:d==="null"?d=null:d=Number(d),h[p]=d,h},{});function s(){return "colors"in e.inspectOpts?!!e.inspectOpts.colors:t.isatty(process.stderr.fd)}function i(h){let{namespace:m,useColors:p}=this;if(p){let d=this.color,g="\x1B[3"+(d<8?d:"8;5;"+d),y=` ${g};1m${m} \x1B[0m`;h[0]=y+h[0].split(`
|
|
290
|
+
`).join(`
|
|
291
|
+
`+y),h.push(g+"m+"+n.exports.humanize(this.diff)+"\x1B[0m");}else h[0]=o()+m+" "+h[0];}function o(){return e.inspectOpts.hideDate?"":new Date().toISOString()+" "}function a(...h){return process.stderr.write(r.formatWithOptions(e.inspectOpts,...h)+`
|
|
292
|
+
`)}function l(h){h?process.env.DEBUG=h:delete process.env.DEBUG;}function c(){return process.env.DEBUG}function u(h){h.inspectOpts={};let m=Object.keys(e.inspectOpts);for(let p=0;p<m.length;p++)h.inspectOpts[m[p]]=e.inspectOpts[m[p]];}n.exports=Zx()(e);let{formatters:f}=n.exports;f.o=function(h){return this.inspectOpts.colors=this.useColors,r.inspect(h,this.inspectOpts).split(`
|
|
293
|
+
`).map(m=>m.trim()).join(" ")},f.O=function(h){return this.inspectOpts.colors=this.useColors,r.inspect(h,this.inspectOpts)};}(Fl,Fl.exports)),Fl.exports}function JU(n,e="../../package.json"){let t=Oe__default.default.resolve(VU.resolve(n),e);return JSON.parse(Je__namespace.default.readFileSync(t,"utf-8")).version}function Re(n,e={}){let t=GU(n),{onlyWhenFocused:r}=e,s=t.enabled;if(s&&r){let i=typeof r=="string"?r:n;s=!!XU?.includes(i);}if(s)return (...i)=>{(!nb||i.some(o=>o?.includes?.(nb)))&&t(...i);}}function ZU(){if(!Hn.endsWith("client.mjs"))throw new Error("cannot test case insensitive FS, CLIENT_ENTRY const doesn't contain client.mjs");if(!Je__namespace.default.existsSync(Hn))throw new Error("cannot test case insensitive FS, CLIENT_ENTRY does not point to an existing file: "+Hn);return Je__namespace.default.existsSync(Hn.replace("client.mjs","cLiEnT.mjs"))}function or(n){return Oe__default.default.posix.normalize(Ex?jF(n):n)}async function tC(n,e,t){let r,s=n,i="";for(;r=e.exec(s);)i+=s.slice(0,r.index),i+=await t(r),s=s.slice(r.index+r[0].length);return i+=s,i}function Fc(n){return Object.prototype.toString.call(n)==="[object Object]"}function Bg(n){try{return Je__namespace.default.statSync(n,{throwIfNoEntry:!1})}catch{}}function i2(n){let e=Je__namespace.default.realpathSync.native(n);if(e.startsWith("\\\\")){for(let[t,r]of pm)if(e.startsWith(t))return e.replace(t,r)}return e}function a2(n){return rb||(l2(),rb=!0),Je__namespace.default.realpathSync(n)}function l2(){let n=process.versions.node.split(".").map(Number);if(n[0]<18||n[0]===18&&n[1]<10){Oo=Je__namespace.default.realpathSync;return}try{Je__namespace.default.realpathSync.native(Oe__default.default.resolve("./"));}catch(e){if(e.message.includes("EISDIR: illegal operation on a directory")){Oo=Je__namespace.default.realpathSync;return}}yx.exec("net use",(e,t)=>{if(e)return;let r=t.split(`
|
|
294
|
+
`);for(let s of r){let i=o2.exec(s);i&&pm.set(i[2],i[1]);}pm.size===0?Oo=Je__namespace.default.realpathSync.native:Oo=i2;});}function f2(n){return n.map(({url:e,descriptor:t})=>e+(t?` ${t}`:"")).join(", ")}function h2(n){return m2(n).map(e=>{let t=e.replace(c2," ").trim(),r=u2.exec(t)?.[0]??"";return {url:r,descriptor:t.slice(r.length).trim()}}).filter(({url:e})=>!!e)}function d2(n,e){return Promise.all(h2(n).map(async({url:t,descriptor:r})=>({url:await e({url:t,descriptor:r}),descriptor:r}))).then(f2)}function m2(n){let e=[],t=n.replace(p2,g2),r=0,s;do s=t.indexOf(",",r),e.push(n.slice(r,s!==-1?s:void 0)),r=s+1;while(s!==-1);return e}function mm(n){return Array.isArray(n)?n:[n]}function sb(n){return Array.isArray(n)?n:typeof n=="function"?n():[]}function nC(n,e,t){let r={...n};for(let s in e){let i=e[s];if(i==null)continue;let o=r[s];if(o==null){r[s]=i;continue}if(s==="alias"&&(t==="resolve"||t==="")){r[s]=rC(o,i);continue}else if(s==="assetsInclude"&&t===""){r[s]=[].concat(o,i);continue}else if(s==="noExternal"&&t==="ssr"&&(o===!0||i===!0)){r[s]=!0;continue}else if(s==="plugins"&&t==="worker"){r[s]=()=>[...sb(o),...sb(i)];continue}else if(s==="server"&&t==="server.hmr"){r[s]=i;continue}if(Array.isArray(o)||Array.isArray(i)){r[s]=[...mm(o),...mm(i)];continue}if(Fc(o)&&Fc(i)){r[s]=nC(o,i,t?`${t}.${s}`:s);continue}r[s]=i;}return r}function Fg(n,e,t=!0){if(typeof n=="function"||typeof e=="function")throw new Error("Cannot merge config in form of callback");return nC(n,e,t?"":".")}function rC(n,e){return n?e?Fc(n)&&Fc(e)?{...n,...e}:[...ib(e),...ib(n)]:n:e}function ib(n=[]){return Array.isArray(n)?n.map(ob):Object.keys(n).map(e=>ob({find:e,replacement:n[e]}))}function ob({find:n,replacement:e,customResolver:t}){typeof n=="string"&&n[n.length-1]==="/"&&e[e.length-1]==="/"&&(n=n.slice(0,n.length-1),e=e.slice(0,e.length-1));let r={find:n,replacement:e};return t&&(r.customResolver=t),r}function jc(n){if(n.startsWith("data:"))return n;let e=QF(n),t=e!==n?n.slice(e.length):"";return e.replaceAll("%","%25")+t}function A2(n){return n.reduce((e,t)=>[].concat(e,t),[])}function S2(n,e){let t=[[]],r=0;for(let s of n)e(s)?(r++,t[r]=[]):t[r].push(s);return t}function _2(n){return n.code==="ENOENT"}function x2(n,e){return new b2(n,e)}function P2(n){return n.replace(/\\/g,"/")}function N2(n,e){return I2.resolve(n,e)}function L2(n){if(n.charAt(0)==="."){let e=n.charAt(1);if(e==="/"||e==="\\")return n.slice(O2)}return n}function jg(n){return n.replace(k2,"\\$2")}function Ug(n){return n.replace(R2,"\\$2")}function oC(n){return jg(n).replace($2,"//$1").replace(T2,"/")}function aC(n){return Ug(n)}function K2(n,e,t){let r=lp(n,e,"-",!1)||[],s=lp(e,n,"",!1)||[],i=lp(n,e,"-?",!0)||[];return r.concat(i).concat(s).join("|")}function V2(n,e){let t=1,r=1,s=hb(n,t),i=new Set([e]);for(;n<=s&&s<=e;)i.add(s),t+=1,s=hb(n,t);for(s=db(e+1,r)-1;n<s&&s<=e;)i.add(s),r+=1,s=db(e+1,r)-1;return i=[...i],i.sort(X2),i}function J2(n,e,t){if(n===e)return {pattern:n,count:[],digits:0};let r=Y2(n,e),s=r.length,i="",o=0;for(let a=0;a<s;a++){let[l,c]=r[a];l===c?i+=l:l!=="0"||c!=="9"?i+=Z2(l,c):o++;}return o&&(i+=t.shorthand===!0?"\\d":"[0-9]"),{pattern:i,count:[o],digits:s}}function ub(n,e,t,r){let s=V2(n,e),i=[],o=n,a;for(let l=0;l<s.length;l++){let c=s[l],u=J2(String(o),String(c),r),f="";if(!t.isPadded&&a&&a.pattern===u.pattern){a.count.length>1&&a.count.pop(),a.count.push(u.count[0]),a.string=a.pattern+pb(a.count),o=c+1;continue}t.isPadded&&(f=eQ(c,t,r)),u.string=f+u.pattern+pb(u.count),i.push(u),o=c+1,a=u;}return i}function lp(n,e,t,r,s){let i=[];for(let o of n){let{string:a}=o;!r&&!fb(e,"string",a)&&i.push(t+a),r&&fb(e,"string",a)&&i.push(t+a);}return i}function Y2(n,e){let t=[];for(let r=0;r<n.length;r++)t.push([n[r],e[r]]);return t}function X2(n,e){return n>e?1:e>n?-1:0}function fb(n,e,t){return n.some(r=>r[e]===t)}function hb(n,e){return Number(String(n).slice(0,-e)+"9".repeat(e))}function db(n,e){return n-n%Math.pow(10,e)}function pb(n){let[e=0,t=""]=n;return t||e>1?`{${e+(t?","+t:"")}}`:""}function Z2(n,e,t){return `[${n}${e-n===1?"":"-"}${e}]`}function mb(n){return /^-?(0+)\d/.test(n)}function eQ(n,e,t){if(!e.isPadded)return n;let r=Math.abs(e.maxLen-String(n).length),s=t.relaxZeros!==!1;switch(r){case 0:return "";case 1:return s?"0?":"0";case 2:return s?"0{0,2}":"00";default:return s?`0{0,${r}}`:`0{${r}}`}}function _C(n,e={}){return !bC(n,e)}function bC(n,e={}){return n===""?!1:!!(e.caseSensitiveMatch===!1||n.includes(DQ)||BQ.test(n)||FQ.test(n)||jQ.test(n)||e.extglob!==!1&&UQ.test(n)||e.braceExpansion!==!1&&qQ(n))}function qQ(n){let e=n.indexOf("{");if(e===-1)return !1;let t=n.indexOf("}",e+1);if(t===-1)return !1;let r=n.slice(e,t);return QQ.test(r)}function HQ(n){return Au(n)?n.slice(1):n}function zQ(n){return "!"+n}function Au(n){return n.startsWith("!")&&n[1]!=="("}function xC(n){return !Au(n)}function GQ(n){return n.filter(Au)}function KQ(n){return n.filter(xC)}function VQ(n){return n.filter(e=>!qg(e))}function JQ(n){return n.filter(qg)}function qg(n){return n.startsWith("..")||n.startsWith("./..")}function YQ(n){return MQ(n,{flipBackslashes:!1})}function XQ(n){return n.includes(SC)}function CC(n){return n.endsWith("/"+SC)}function ZQ(n){let e=LQ.basename(n);return CC(n)||_C(e)}function eW(n){return n.reduce((e,t)=>e.concat(IC(t)),[])}function IC(n){let e=Wg.braces(n,{expand:!0,nodupes:!0,keepEscaping:!0});return e.sort((t,r)=>t.length-r.length),e.filter(t=>t!=="")}function tW(n,e){let{parts:t}=Wg.scan(n,Object.assign(Object.assign({},e),{parts:!0}));return t.length===0&&(t=[n]),t[0].startsWith("/")&&(t[0]=t[0].slice(1),t.unshift("")),t}function OC(n,e){return Wg.makeRe(n,e)}function nW(n,e){return n.map(t=>OC(t,e))}function rW(n,e){return e.some(t=>t.test(n))}function sW(n){return n.replace(WQ,"/")}function lW(){let n=[],e=oW.call(arguments),t=!1,r=e[e.length-1];r&&!Array.isArray(r)&&r.pipe==null?e.pop():r={};let s=r.end!==!1,i=r.pipeError===!0;r.objectMode==null&&(r.objectMode=!0),r.highWaterMark==null&&(r.highWaterMark=64*1024);let o=RC(r);function a(){for(let u=0,f=arguments.length;u<f;u++)n.push(kC(arguments[u],r));return l(),this}function l(){if(t)return;t=!0;let u=n.shift();if(!u){process.nextTick(c);return}Array.isArray(u)||(u=[u]);let f=u.length+1;function h(){--f>0||(t=!1,l());}function m(p){function d(){p.removeListener("merge2UnpipeEnd",d),p.removeListener("end",d),i&&p.removeListener("error",g),h();}function g(y){o.emit("error",y);}if(p._readableState.endEmitted)return h();p.on("merge2UnpipeEnd",d),p.on("end",d),i&&p.on("error",g),p.pipe(o,{end:!1}),p.resume();}for(let p=0;p<u.length;p++)m(u[p]);h();}function c(){t=!1,o.emit("queueDrain"),s&&o.end();}return o.setMaxListeners(0),o.add=a,o.on("unpipe",function(u){u.emit("merge2UnpipeEnd");}),e.length&&a.apply(null,e),o}function kC(n,e){if(Array.isArray(n))for(let t=0,r=n.length;t<r;t++)n[t]=kC(n[t],e);else {if(!n._readableState&&n.pipe&&(n=n.pipe(RC(e))),!n._readableState||!n.pause||!n.pipe)throw new Error("Only readable stream can be merged.");n.pause();}return n}function uW(n){let e=cW(n);return n.forEach(t=>{t.once("error",r=>e.emit("error",r));}),e.once("close",()=>bb(n)),e.once("end",()=>bb(n)),e}function bb(n){n.forEach(e=>e.emit("close"));}function fW(n){return typeof n=="string"}function hW(n){return n===""}function EW(n,e){let t=xb(n,e),r=xb(e.ignore,e),s=$C(t),i=TC(t,r),o=s.filter(u=>on.pattern.isStaticPattern(u,e)),a=s.filter(u=>on.pattern.isDynamicPattern(u,e)),l=ym(o,i,!1),c=ym(a,i,!0);return l.concat(c)}function xb(n,e){let t=n;return e.braceExpansion&&(t=on.pattern.expandPatternsWithBraceExpansion(t)),e.baseNameMatch&&(t=t.map(r=>r.includes("/")?r:`**/${r}`)),t.map(r=>on.pattern.removeDuplicateSlashes(r))}function ym(n,e,t){let r=[],s=on.pattern.getPatternsOutsideCurrentDirectory(n),i=on.pattern.getPatternsInsideCurrentDirectory(n),o=wm(s),a=wm(i);return r.push(...vm(o,e,t)),"."in a?r.push(Hg(".",i,e,t)):r.push(...vm(a,e,t)),r}function $C(n){return on.pattern.getPositivePatterns(n)}function TC(n,e){return on.pattern.getNegativePatterns(n).concat(e).map(on.pattern.convertToPositivePattern)}function wm(n){let e={};return n.reduce((t,r)=>{let s=on.pattern.getBaseDirectory(r);return s in t?t[s].push(r):t[s]=[r],t},e)}function vm(n,e,t){return Object.keys(n).map(r=>Hg(r,n[r],e,t))}function Hg(n,e,t,r){return {dynamic:r,positive:e,negative:t,base:n,patterns:[].concat(e,t.map(on.pattern.convertToNegativePattern))}}function AW(n,e,t){e.fs.lstat(n,(r,s)=>{if(r!==null){Cb(t,r);return}if(!s.isSymbolicLink()||!e.followSymbolicLink){hp(t,s);return}e.fs.stat(n,(i,o)=>{if(i!==null){if(e.throwErrorOnBrokenSymbolicLink){Cb(t,i);return}hp(t,s);return}e.markSymbolicLink&&(o.isSymbolicLink=()=>!0),hp(t,o);});});}function Cb(n,e){n(e);}function hp(n,e){n(null,e);}function SW(n,e){let t=e.fs.lstatSync(n);if(!t.isSymbolicLink()||!e.followSymbolicLink)return t;try{let r=e.fs.statSync(n);return e.markSymbolicLink&&(r.isSymbolicLink=()=>!0),r}catch(r){if(!e.throwErrorOnBrokenSymbolicLink)return t;throw r}}function CW(n,e,t){if(typeof e=="function"){Ib.read(n,Am(),e);return}Ib.read(n,Am(e),t);}function IW(n,e){let t=Am(e);return xW.read(n,t)}function Am(n={}){return n instanceof Em.default?n:new Em.default(n)}function $W(n,e){let t,r,s,i=!0;Array.isArray(n)?(t=[],r=n.length):(s=Object.keys(n),t={},r=s.length);function o(l){function c(){e&&e(l,t),e=null;}i?kW(c):c();}function a(l,c,u){t[l]=u,(--r===0||c)&&o(c);}r?s?s.forEach(function(l){n[l](function(c,u){a(l,c,u);});}):n.forEach(function(l,c){l(function(u,f){a(c,u,f);});}):o(null),i=!1;}function MW(n,e){return new Sm(n,e)}function BW(n,e,t){return n.endsWith(t)?n+e:n+t+e}function UW(n,e,t){if(!e.stats&&jW.IS_SUPPORT_READDIR_WITH_FILE_TYPES){FC(n,e,t);return}jC(n,e,t);}function FC(n,e,t){e.fs.readdir(n,{withFileTypes:!0},(r,s)=>{if(r!==null){Wc(t,r);return}let i=s.map(a=>({dirent:a,name:a.name,path:BC.joinPathSegments(n,a.name,e.pathSegmentSeparator)}));if(!e.followSymbolicLinks){_m(t,i);return}let o=i.map(a=>QW(a,e));MC(o,(a,l)=>{if(a!==null){Wc(t,a);return}_m(t,l);});});}function QW(n,e){return t=>{if(!n.dirent.isSymbolicLink()){t(null,n);return}e.fs.stat(n.path,(r,s)=>{if(r!==null){if(e.throwErrorOnBrokenSymbolicLink){t(r);return}t(null,n);return}n.dirent=DC.fs.createDirentFromStats(n.name,s),t(null,n);});}}function jC(n,e,t){e.fs.readdir(n,(r,s)=>{if(r!==null){Wc(t,r);return}let i=s.map(o=>{let a=BC.joinPathSegments(n,o,e.pathSegmentSeparator);return l=>{FW.stat(a,e.fsStatSettings,(c,u)=>{if(c!==null){l(c);return}let f={name:o,path:a,dirent:DC.fs.createDirentFromStats(o,u)};e.stats&&(f.stats=u),l(null,f);});}});MC(i,(o,a)=>{if(o!==null){Wc(t,o);return}_m(t,a);});});}function Wc(n,e){n(e);}function _m(n,e){n(null,e);}function HW(n,e){return !e.stats&&qW.IS_SUPPORT_READDIR_WITH_FILE_TYPES?WC(n,e):qC(n,e)}function WC(n,e){return e.fs.readdirSync(n,{withFileTypes:!0}).map(r=>{let s={dirent:r,name:r.name,path:QC.joinPathSegments(n,r.name,e.pathSegmentSeparator)};if(s.dirent.isSymbolicLink()&&e.followSymbolicLinks)try{let i=e.fs.statSync(s.path);s.dirent=UC.fs.createDirentFromStats(s.name,i);}catch(i){if(e.throwErrorOnBrokenSymbolicLink)throw i}return s})}function qC(n,e){return e.fs.readdirSync(n).map(r=>{let s=QC.joinPathSegments(n,r,e.pathSegmentSeparator),i=WW.statSync(s,e.fsStatSettings),o={name:r,path:s,dirent:UC.fs.createDirentFromStats(r,i)};return e.stats&&(o.stats=i),o})}function YW(n,e,t){if(typeof e=="function"){Rb.read(n,xm(),e);return}Rb.read(n,xm(e),t);}function XW(n,e){let t=xm(e);return JW.read(n,t)}function xm(n={}){return n instanceof bm.default?n:new bm.default(n)}function ZW(n){var e=new n,t=e;function r(){var i=e;return i.next?e=i.next:(e=new n,t=e),i.next=null,i}function s(i){t.next=i,t=i;}return {get:r,release:s}}function zC(n,e,t){if(typeof n=="function"&&(t=e,e=n,n=null),!(t>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");var r=tq(nq),s=null,i=null,o=0,a=null,l={push:d,drain:jt,saturated:jt,pause:u,paused:!1,get concurrency(){return t},set concurrency(E){if(!(E>=1))throw new Error("fastqueue concurrency must be equal to or greater than 1");if(t=E,!l.paused)for(;s&&o<t;)o++,y();},running:c,resume:m,idle:p,length:f,getQueue:h,unshift:g,empty:jt,kill:w,killAndDrain:v,error:A};return l;function c(){return o}function u(){l.paused=!0;}function f(){for(var E=s,S=0;E;)E=E.next,S++;return S}function h(){for(var E=s,S=[];E;)S.push(E.value),E=E.next;return S}function m(){if(l.paused){if(l.paused=!1,s===null){o++,y();return}for(;s&&o<t;)o++,y();}}function p(){return o===0&&l.length()===0}function d(E,S){var C=r.get();C.context=n,C.release=y,C.value=E,C.callback=S||jt,C.errorHandler=a,o>=t||l.paused?i?(i.next=C,i=C):(s=C,i=C,l.saturated()):(o++,e.call(n,C.value,C.worked));}function g(E,S){var C=r.get();C.context=n,C.release=y,C.value=E,C.callback=S||jt,C.errorHandler=a,o>=t||l.paused?s?(C.next=s,s=C):(s=C,i=C,l.saturated()):(o++,e.call(n,C.value,C.worked));}function y(E){E&&r.release(E);var S=s;S&&o<=t?l.paused?o--:(i===s&&(i=null),s=S.next,S.next=null,e.call(n,S.value,S.worked),i===null&&l.empty()):--o===0&&l.drain();}function w(){s=null,i=null,l.drain=jt;}function v(){s=null,i=null,l.drain(),l.drain=jt;}function A(E){a=E;}}function jt(){}function nq(){this.value=null,this.callback=jt,this.next=null,this.release=jt,this.context=null,this.errorHandler=null;var n=this;this.worked=function(t,r){var s=n.callback,i=n.errorHandler,o=n.value;n.value=null,n.callback=jt,n.errorHandler&&i(t,o),s.call(n.context,t,r),n.release(n);};}function rq(n,e,t){typeof n=="function"&&(t=e,e=n,n=null);function r(u,f){e.call(this,u).then(function(h){f(null,h);},f);}var s=zC(n,r,t),i=s.push,o=s.unshift;return s.push=a,s.unshift=l,s.drained=c,s;function a(u){var f=new Promise(function(h,m){i(u,function(p,d){if(p){m(p);return}h(d);});});return f.catch(jt),f}function l(u){var f=new Promise(function(h,m){o(u,function(p,d){if(p){m(p);return}h(d);});});return f.catch(jt),f}function c(){if(s.idle())return new Promise(function(h){h();});var u=s.drain,f=new Promise(function(h){s.drain=function(){u(),h();};});return f}}function iq(n,e){return n.errorFilter===null?!0:!n.errorFilter(e)}function oq(n,e){return n===null||n(e)}function aq(n,e){return n.split(/[/\\]/).join(e)}function lq(n,e,t){return n===""?e:n.endsWith(t)?n+e:n+t+e}function gq(n,e){n(e);}function yq(n,e){n(null,e);}function Iq(n,e,t){if(typeof e=="function"){new kb.default(n,qc()).read(e);return}new kb.default(n,qc(e)).read(t);}function Oq(n,e){let t=qc(e);return new Cq.default(n,t).read()}function Rq(n,e){let t=qc(e);return new xq.default(n,t).read()}function qc(n={}){return n instanceof Tm.default?n:new Tm.default(n)}async function Pb(n,e){rn(n);let t=Km(n,rH.default,e),r=await Promise.all(t);return Bt.array.flatten(r)}function Km(n,e,t){let r=[].concat(n),s=new Gm.default(t),i=KC.generate(r,s),o=new e(s);return i.map(o.read,o)}function rn(n){if(![].concat(n).every(r=>Bt.string.isString(r)&&!Bt.string.isEmpty(r)))throw new TypeError("Patterns must be a string (non empty) or an array of strings")}function aH(n,e){return ["package.json",`.${n}rc.json`,`.${n}rc.js`,`.${n}rc.cjs`,...e?[]:[`.${n}rc.mjs`],`.config/${n}rc`,`.config/${n}rc.json`,`.config/${n}rc.js`,`.config/${n}rc.cjs`,...e?[]:[`.config/${n}rc.mjs`],`${n}.config.js`,`${n}.config.cjs`,...e?[]:[`${n}.config.mjs`]]}function Hc(n){return sn.dirname(n)||sn.sep}function YC(n,e,t){let r={stopDir:oH.homedir(),searchPlaces:aH(n,t),ignoreEmptySearchPlaces:!0,cache:!0,transform:s=>s,packageProp:[n],...e,loaders:{...t?VC:JC,...e.loaders}};return r.searchPlaces.forEach(s=>{let i=sn.extname(s)||"noExt",o=r.loaders[i];if(!o)throw new Error(`Missing loader for extension "${s}"`);if(typeof o!="function")throw new Error(`Loader for extension "${s}" is not a function: Received ${typeof o}.`)}),r}function zc(n,e){return typeof n=="string"&&n in e?e[n]:(Array.isArray(n)?n:n.split(".")).reduce((t,r)=>t===void 0?t:t[r],e)||null}function XC(n){if(!n)throw new Error("load must pass a non-empty string")}function Gc(n,e){if(!n)throw new Error(`No loader specified for extension "${e}"`);if(typeof n!="function")throw new Error("loader is not a function")}function xe(n){if(n&&typeof n=="object")switch(n[qt]){case rr:case pi:return !0}return !1}function Ie(n){if(n&&typeof n=="object")switch(n[qt]){case fy:case rr:case Nn:case pi:return !0}return !1}function Ln(n,e){let t=nI(e);es(n)?zs(null,n.contents,t,Object.freeze([n]))===gn&&(n.contents=null):zs(null,n,t,Object.freeze([]));}function zs(n,e,t,r){let s=rI(n,e,t,r);if(Ie(s)||Ae(s))return sI(n,r,s),zs(n,s,t,r);if(typeof s!="symbol"){if(xe(e)){r=Object.freeze(r.concat(e));for(let i=0;i<e.items.length;++i){let o=zs(i,e.items[i],t,r);if(typeof o=="number")i=o-1;else {if(o===mt)return mt;o===gn&&(e.items.splice(i,1),i-=1);}}}else if(Ae(e)){r=Object.freeze(r.concat(e));let i=zs("key",e.key,t,r);if(i===mt)return mt;i===gn&&(e.key=null);let o=zs("value",e.value,t,r);if(o===mt)return mt;o===gn&&(e.value=null);}}return s}async function ca(n,e){let t=nI(e);es(n)?await Gs(null,n.contents,t,Object.freeze([n]))===gn&&(n.contents=null):await Gs(null,n,t,Object.freeze([]));}async function Gs(n,e,t,r){let s=await rI(n,e,t,r);if(Ie(s)||Ae(s))return sI(n,r,s),Gs(n,s,t,r);if(typeof s!="symbol"){if(xe(e)){r=Object.freeze(r.concat(e));for(let i=0;i<e.items.length;++i){let o=await Gs(i,e.items[i],t,r);if(typeof o=="number")i=o-1;else {if(o===mt)return mt;o===gn&&(e.items.splice(i,1),i-=1);}}}else if(Ae(e)){r=Object.freeze(r.concat(e));let i=await Gs("key",e.key,t,r);if(i===mt)return mt;i===gn&&(e.key=null);let o=await Gs("value",e.value,t,r);if(o===mt)return mt;o===gn&&(e.value=null);}}return s}function nI(n){return typeof n=="object"&&(n.Collection||n.Node||n.Value)?Object.assign({Alias:n.Node,Map:n.Node,Scalar:n.Node,Seq:n.Node},n.Value&&{Map:n.Value,Scalar:n.Value,Seq:n.Value},n.Collection&&{Map:n.Collection,Seq:n.Collection},n):n}function rI(n,e,t,r){if(typeof t=="function")return t(n,e,r);if(ts(e))return t.Map?.(n,e,r);if(ns(e))return t.Seq?.(n,e,r);if(Ae(e))return t.Pair?.(n,e,r);if(me(e))return t.Scalar?.(n,e,r);if(ar(e))return t.Alias?.(n,e,r)}function sI(n,e,t){let r=e[e.length-1];if(xe(r))r.items[n]=t;else if(Ae(r))n==="key"?r.key=t:r.value=t;else if(es(r))r.contents=t;else {let s=ar(r)?"alias":"scalar";throw new Error(`Cannot replace node with ${s} parent`)}}function iI(n){if(/[\x00-\x19\s,[\]{}]/.test(n)){let t=`Anchor must not contain whitespace or control characters: ${JSON.stringify(n)}`;throw new Error(t)}return !0}function oI(n){let e=new Set;return Ln(n,{Value(t,r){r.anchor&&e.add(r.anchor);}}),e}function aI(n,e){for(let t=1;;++t){let r=`${n}${t}`;if(!e.has(r))return r}}function fH(n,e){let t=[],r=new Map,s=null;return {onAnchor:i=>{t.push(i),s||(s=oI(n));let o=aI(e,s);return s.add(o),o},setAnchors:()=>{for(let i of t){let o=r.get(i);if(typeof o=="object"&&o.anchor&&(me(o.node)||xe(o.node)))o.node.anchor=o.anchor;else {let a=new Error("Failed to resolve repeated object (this should not happen)");throw a.source=i,a}}},sourceObjects:r}}function Ks(n,e,t,r){if(r&&typeof r=="object")if(Array.isArray(r))for(let s=0,i=r.length;s<i;++s){let o=r[s],a=Ks(n,r,String(s),o);a===void 0?delete r[s]:a!==o&&(r[s]=a);}else if(r instanceof Map)for(let s of Array.from(r.keys())){let i=r.get(s),o=Ks(n,r,s,i);o===void 0?r.delete(s):o!==i&&r.set(s,o);}else if(r instanceof Set)for(let s of Array.from(r)){let i=Ks(n,r,s,s);i===void 0?r.delete(s):i!==s&&(r.delete(s),r.add(i));}else for(let[s,i]of Object.entries(r)){let o=Ks(n,r,s,i);o===void 0?delete r[s]:o!==i&&(r[s]=o);}return n.call(e,t,r)}function Wt(n,e,t){if(Array.isArray(n))return n.map((r,s)=>Wt(r,String(s),t));if(n&&typeof n.toJSON=="function"){if(!t||!lH(n))return n.toJSON(e,t);let r={aliasCount:0,count:1,res:void 0};t.anchors.set(n,r),t.onCreate=i=>{r.res=i,delete t.onCreate;};let s=n.toJSON(e,t);return t.onCreate&&t.onCreate(s),s}return typeof n=="bigint"&&!t?.keep?Number(n):n}function lc(n,e,t){if(ar(e)){let r=e.resolve(n),s=t&&r&&t.get(r);return s?s.count*s.aliasCount:0}else if(xe(e)){let r=0;for(let s of e.items){let i=lc(n,s,t);i>r&&(r=i);}return r}else if(Ae(e)){let r=lc(n,e.key,t),s=lc(n,e.value,t);return Math.max(r,s)}return 1}function dH(n,e,t){if(e){let r=t.filter(i=>i.tag===e),s=r.find(i=>!i.format)??r[0];if(!s)throw new Error(`Tag ${e} not found`);return s}return t.find(r=>r.identify?.(n)&&!r.format)}function qo(n,e,t){if(es(n)&&(n=n.contents),Ie(n))return n;if(Ae(n)){let f=t.schema[rr].createNode?.(t.schema,null,t);return f.items.push(n),f}(n instanceof String||n instanceof Number||n instanceof Boolean||typeof BigInt<"u"&&n instanceof BigInt)&&(n=n.valueOf());let{aliasDuplicateObjects:r,onAnchor:s,onTagObj:i,schema:o,sourceObjects:a}=t,l;if(r&&n&&typeof n=="object"){if(l=a.get(n),l)return l.anchor||(l.anchor=s(n)),new zr(l.anchor);l={anchor:null,node:null},a.set(n,l);}e?.startsWith("!!")&&(e=hH+e.slice(2));let c=dH(n,e,o.tags);if(!c){if(n&&typeof n.toJSON=="function"&&(n=n.toJSON()),!n||typeof n!="object"){let f=new oe(n);return l&&(l.node=f),f}c=n instanceof Map?o[rr]:Symbol.iterator in Object(n)?o[pi]:o[rr];}i&&(i(c),delete t.onTagObj);let u=c?.createNode?c.createNode(t.schema,n,t):typeof c?.nodeClass?.from=="function"?c.nodeClass.from(t.schema,n,t):new oe(n);return e?u.tag=e:c.default||(u.tag=c.tag),l&&(l.node=u),u}function Kc(n,e,t){let r=t;for(let s=e.length-1;s>=0;--s){let i=e[s];if(typeof i=="number"&&Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o;}else r=new Map([[i,r]]);}return qo(r,void 0,{aliasDuplicateObjects:!1,keepUndefined:!1,onAnchor:()=>{throw new Error("This should not happen, please report a bug.")},schema:n,sourceObjects:new Map})}function $n(n,e){return /^\n+$/.test(n)?n.substring(1):e?n.replace(/^(?! *$)/gm,e):n}function Ru(n,e,t="flow",{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}={}){if(!s||s<0)return n;s<i&&(i=0);let l=Math.max(1+i,1+s-e.length);if(n.length<=l)return n;let c=[],u={},f=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?c.push(0):f=s-r);let h,m,p=!1,d=-1,g=-1,y=-1;t===Ym&&(d=Lb(n,d,e.length),d!==-1&&(f=d+l));for(let v;v=n[d+=1];){if(t===cc&&v==="\\"){switch(g=d,n[d+1]){case"x":d+=3;break;case"u":d+=5;break;case"U":d+=9;break;default:d+=1;}y=d;}if(v===`
|
|
295
|
+
`)t===Ym&&(d=Lb(n,d,e.length)),f=d+e.length+l,h=void 0;else {if(v===" "&&m&&m!==" "&&m!==`
|
|
296
|
+
`&&m!==" "){let A=n[d+1];A&&A!==" "&&A!==`
|
|
297
|
+
`&&A!==" "&&(h=d);}if(d>=f)if(h)c.push(h),f=h+l,h=void 0;else if(t===cc){for(;m===" "||m===" ";)m=v,v=n[d+=1],p=!0;let A=d>y+1?d-2:g-1;if(u[A])return n;c.push(A),u[A]=!0,f=A+l,h=void 0;}else p=!0;}m=v;}if(p&&a&&a(),c.length===0)return n;o&&o();let w=n.slice(0,c[0]);for(let v=0;v<c.length;++v){let A=c[v],E=c[v+1]||n.length;A===0?w=`
|
|
298
|
+
${e}${n.slice(0,E)}`:(t===cc&&u[A]&&(w+=`${n[A]}\\`),w+=`
|
|
299
|
+
${e}${n.slice(A+1,E)}`);}return w}function Lb(n,e,t){let r=e,s=e+1,i=n[s];for(;i===" "||i===" ";)if(e<s+t)i=n[++e];else {do i=n[++e];while(i&&i!==`
|
|
300
|
+
`);r=e,s=e+1,i=n[s];}return r}function mH(n,e,t){if(!e||e<0)return !1;let r=e-t,s=n.length;if(s<=r)return !1;for(let i=0,o=0;i<s;++i)if(n[i]===`
|
|
301
|
+
`){if(i-o>r)return !0;if(o=i+1,s-o<=r)return !1}return !0}function Lo(n,e){let t=JSON.stringify(n);if(e.options.doubleQuotedAsJSON)return t;let{implicitKey:r}=e,s=e.options.doubleQuotedMinMultiLineLength,i=e.indent||($u(n)?" ":""),o="",a=0;for(let l=0,c=t[l];c;c=t[++l])if(c===" "&&t[l+1]==="\\"&&t[l+2]==="n"&&(o+=t.slice(a,l)+"\\ ",l+=1,a=l,c="\\"),c==="\\")switch(t[l+1]){case"u":{o+=t.slice(a,l);let u=t.substr(l+2,4);switch(u){case"0000":o+="\\0";break;case"0007":o+="\\a";break;case"000b":o+="\\v";break;case"001b":o+="\\e";break;case"0085":o+="\\N";break;case"00a0":o+="\\_";break;case"2028":o+="\\L";break;case"2029":o+="\\P";break;default:u.substr(0,2)==="00"?o+="\\x"+u.substr(2):o+=t.substr(l,6);}l+=5,a=l+1;}break;case"n":if(r||t[l+2]==='"'||t.length<s)l+=1;else {for(o+=t.slice(a,l)+`
|
|
302
|
+
|
|
303
|
+
`;t[l+2]==="\\"&&t[l+3]==="n"&&t[l+4]!=='"';)o+=`
|
|
304
|
+
`,l+=2;o+=i,t[l+2]===" "&&(o+="\\"),l+=1,a=l+1;}break;default:l+=1;}return o=a?o+t.slice(a):t,r?o:Ru(o,i,cc,ku(e,!1))}function Xm(n,e){if(e.options.singleQuote===!1||e.implicitKey&&n.includes(`
|
|
305
|
+
`)||/[ \t]\n|\n[ \t]/.test(n))return Lo(n,e);let t=e.indent||($u(n)?" ":""),r="'"+n.replace(/'/g,"''").replace(/\n+/g,`$&
|
|
306
|
+
${t}`)+"'";return e.implicitKey?r:Ru(r,t,cI,ku(e,!1))}function Vs(n,e){let{singleQuote:t}=e.options,r;if(t===!1)r=Lo;else {let s=n.includes('"'),i=n.includes("'");s&&!i?r=Xm:i&&!s?r=Lo:r=t?Xm:Lo;}return r(n,e)}function uc({comment:n,type:e,value:t},r,s,i){let{blockQuote:o,commentString:a,lineWidth:l}=r.options;if(!o||/\n[\t ]+$/.test(t)||/^\s*$/.test(t))return Vs(t,r);let c=r.indent||(r.forceBlockIndent||$u(t)?" ":""),u=o==="literal"?!0:o==="folded"||e===oe.BLOCK_FOLDED?!1:e===oe.BLOCK_LITERAL?!0:!mH(t,l,c.length);if(!t)return u?`|
|
|
307
|
+
`:`>
|
|
308
|
+
`;let f,h;for(h=t.length;h>0;--h){let S=t[h-1];if(S!==`
|
|
309
|
+
`&&S!==" "&&S!==" ")break}let m=t.substring(h),p=m.indexOf(`
|
|
310
|
+
`);p===-1?f="-":t===m||p!==m.length-1?(f="+",i&&i()):f="",m&&(t=t.slice(0,-m.length),m[m.length-1]===`
|
|
311
|
+
`&&(m=m.slice(0,-1)),m=m.replace(Zm,`$&${c}`));let d=!1,g,y=-1;for(g=0;g<t.length;++g){let S=t[g];if(S===" ")d=!0;else if(S===`
|
|
312
|
+
`)y=g;else break}let w=t.substring(0,y<g?y+1:g);w&&(t=t.substring(w.length),w=w.replace(/\n+/g,`$&${c}`));let A=(u?"|":">")+(d?c?"2":"1":"")+f;if(n&&(A+=" "+a(n.replace(/ ?[\r\n]+/g," ")),s&&s()),u)return t=t.replace(/\n+/g,`$&${c}`),`${A}
|
|
313
|
+
${c}${w}${t}${m}`;t=t.replace(/\n+/g,`
|
|
314
|
+
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${c}`);let E=Ru(`${w}${t}${m}`,c,Ym,ku(r,!0));return `${A}
|
|
315
|
+
${c}${E}`}function gH(n,e,t,r){let{type:s,value:i}=n,{actualString:o,implicitKey:a,indent:l,indentStep:c,inFlow:u}=e;if(a&&i.includes(`
|
|
316
|
+
`)||u&&/[[\]{},]/.test(i))return Vs(i,e);if(!i||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(i))return a||u||!i.includes(`
|
|
317
|
+
`)?Vs(i,e):uc(n,e,t,r);if(!a&&!u&&s!==oe.PLAIN&&i.includes(`
|
|
318
|
+
`))return uc(n,e,t,r);if($u(i)){if(l==="")return e.forceBlockIndent=!0,uc(n,e,t,r);if(a&&l===c)return Vs(i,e)}let f=i.replace(/\n+/g,`$&
|
|
319
|
+
${l}`);if(o){let h=d=>d.default&&d.tag!=="tag:yaml.org,2002:str"&&d.test?.test(f),{compat:m,tags:p}=e.doc.schema;if(p.some(h)||m?.some(h))return Vs(i,e)}return a?f:Ru(f,l,cI,ku(e,!1))}function ua(n,e,t,r){let{implicitKey:s,inFlow:i}=e,o=typeof n.value=="string"?n:Object.assign({},n,{value:String(n.value)}),{type:a}=n;a!==oe.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f\u{D800}-\u{DFFF}]/u.test(o.value)&&(a=oe.QUOTE_DOUBLE);let l=u=>{switch(u){case oe.BLOCK_FOLDED:case oe.BLOCK_LITERAL:return s||i?Vs(o.value,e):uc(o,e,t,r);case oe.QUOTE_DOUBLE:return Lo(o.value,e);case oe.QUOTE_SINGLE:return Xm(o.value,e);case oe.PLAIN:return gH(o,e,t,r);default:return null}},c=l(a);if(c===null){let{defaultKeyType:u,defaultStringType:f}=e.options,h=s&&u||f;if(c=l(h),c===null)throw new Error(`Unsupported default string type ${h}`)}return c}function uI(n,e){let t=Object.assign({blockQuote:!0,commentString:pH,defaultKeyType:null,defaultStringType:"PLAIN",directives:null,doubleQuotedAsJSON:!1,doubleQuotedMinMultiLineLength:40,falseStr:"false",flowCollectionPadding:!0,indentSeq:!0,lineWidth:80,minContentWidth:20,nullStr:"null",simpleKeys:!1,singleQuote:null,trueStr:"true",verifyAliasOrder:!0},n.schema.toStringOptions,e),r;switch(t.collectionStyle){case"block":r=!1;break;case"flow":r=!0;break;default:r=null;}return {anchors:new Set,doc:n,flowCollectionPadding:t.flowCollectionPadding?" ":"",indent:"",indentStep:typeof t.indent=="number"?" ".repeat(t.indent):" ",inFlow:r,options:t}}function yH(n,e){if(e.tag){let s=n.filter(i=>i.tag===e.tag);if(s.length>0)return s.find(i=>i.format===e.format)??s[0]}let t,r;if(me(e)){r=e.value;let s=n.filter(i=>i.identify?.(r));t=s.find(i=>i.format===e.format)??s.find(i=>!i.format);}else r=e,t=n.find(s=>s.nodeClass&&r instanceof s.nodeClass);if(!t){let s=r?.constructor?.name??typeof r;throw new Error(`Tag not resolved for ${s} value`)}return t}function wH(n,e,{anchors:t,doc:r}){if(!r.directives)return "";let s=[],i=(me(n)||xe(n))&&n.anchor;i&&iI(i)&&(t.add(i),s.push(`&${i}`));let o=n.tag?n.tag:e.default?null:e.tag;return o&&s.push(r.directives.tagString(o)),s.join(" ")}function oi(n,e,t,r){if(Ae(n))return n.toString(e,t,r);if(ar(n)){if(e.doc.directives)return n.toString(e);if(e.resolvedAliases?.has(n))throw new TypeError("Cannot stringify circular structure without alias nodes");e.resolvedAliases?e.resolvedAliases.add(n):e.resolvedAliases=new Set([n]),n=n.resolve(e.doc);}let s,i=Ie(n)?n:e.doc.createNode(n,{onTagObj:l=>s=l});s||(s=yH(e.doc.schema.tags,i));let o=wH(i,s,e);o.length>0&&(e.indentAtStart=(e.indentAtStart??0)+o.length+1);let a=typeof s.stringify=="function"?s.stringify(i,e,t,r):me(i)?ua(i,e,t,r):i.toString(e,t,r);return o?me(i)||a[0]==="{"||a[0]==="["?`${o} ${a}`:`${o}
|
|
320
|
+
${e.indent}${a}`:a}function vH({key:n,value:e},t,r,s){let{allNullValues:i,doc:o,indent:a,indentStep:l,options:{commentString:c,indentSeq:u,simpleKeys:f}}=t,h=Ie(n)&&n.comment||null;if(f){if(h)throw new Error("With simple keys, key nodes cannot have comments");if(xe(n)||!Ie(n)&&typeof n=="object"){let C="With simple keys, collection cannot be used as a key value";throw new Error(C)}}let m=!f&&(!n||h&&e==null&&!t.inFlow||xe(n)||(me(n)?n.type===oe.BLOCK_FOLDED||n.type===oe.BLOCK_LITERAL:typeof n=="object"));t=Object.assign({},t,{allNullValues:!1,implicitKey:!m&&(f||!i),indent:a+l});let p=!1,d=!1,g=oi(n,t,()=>p=!0,()=>d=!0);if(!m&&!t.inFlow&&g.length>1024){if(f)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");m=!0;}if(t.inFlow){if(i||e==null)return p&&r&&r(),g===""?"?":m?`? ${g}`:g}else if(i&&!f||e==null&&m)return g=`? ${g}`,h&&!p?g+=jr(g,t.indent,c(h)):d&&s&&s(),g;p&&(h=null),m?(h&&(g+=jr(g,t.indent,c(h))),g=`? ${g}
|
|
321
|
+
${a}:`):(g=`${g}:`,h&&(g+=jr(g,t.indent,c(h))));let y,w,v;Ie(e)?(y=!!e.spaceBefore,w=e.commentBefore,v=e.comment):(y=!1,w=null,v=null,e&&typeof e=="object"&&(e=o.createNode(e))),t.implicitKey=!1,!m&&!h&&me(e)&&(t.indentAtStart=g.length+1),d=!1,!u&&l.length>=2&&!t.inFlow&&!m&&ns(e)&&!e.flow&&!e.tag&&!e.anchor&&(t.indent=t.indent.substring(2));let A=!1,E=oi(e,t,()=>A=!0,()=>d=!0),S=" ";if(h||y||w){if(S=y?`
|
|
322
|
+
`:"",w){let C=c(w);S+=`
|
|
323
|
+
${$n(C,t.indent)}`;}E===""&&!t.inFlow?S===`
|
|
324
|
+
`&&(S=`
|
|
325
|
+
|
|
326
|
+
`):S+=`
|
|
327
|
+
${t.indent}`;}else if(!m&&xe(e)){let C=E[0],_=E.indexOf(`
|
|
328
|
+
`),x=_!==-1,$=t.inFlow??e.flow??e.items.length===0;if(x||!$){let b=!1;if(x&&(C==="&"||C==="!")){let T=E.indexOf(" ");C==="&"&&T!==-1&&T<_&&E[T+1]==="!"&&(T=E.indexOf(" ",T+1)),(T===-1||_<T)&&(b=!0);}b||(S=`
|
|
329
|
+
${t.indent}`);}}else (E===""||E[0]===`
|
|
330
|
+
`)&&(S="");return g+=S+E,t.inFlow?A&&r&&r():v&&!A?g+=jr(g,t.indent,c(v)):d&&s&&s(),g}function fI(n,e){(n==="debug"||n==="warn")&&(typeof process<"u"&&process.emitWarning?process.emitWarning(e):console.warn(e));}function hI(n,e,{key:t,value:r}){if(n?.doc.schema.merge&&EH(t))if(r=ar(r)?r.resolve(n.doc):r,ns(r))for(let s of r.items)pp(n,e,s);else if(Array.isArray(r))for(let s of r)pp(n,e,s);else pp(n,e,r);else {let s=Wt(t,"",n);if(e instanceof Map)e.set(s,Wt(r,s,n));else if(e instanceof Set)e.add(s);else {let i=AH(t,s,n),o=Wt(r,i,n);i in e?Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0}):e[i]=o;}}return e}function pp(n,e,t){let r=n&&ar(t)?t.resolve(n.doc):t;if(!ts(r))throw new Error("Merge sources must be maps or map aliases");let s=r.toJSON(null,n,Map);for(let[i,o]of s)e instanceof Map?e.has(i)||e.set(i,o):e instanceof Set?e.add(i):Object.prototype.hasOwnProperty.call(e,i)||Object.defineProperty(e,i,{value:o,writable:!0,enumerable:!0,configurable:!0});return e}function AH(n,e,t){if(e===null)return "";if(typeof e!="object")return String(e);if(Ie(n)&&t?.doc){let r=uI(t.doc,{});r.anchors=new Set;for(let i of t.anchors.keys())r.anchors.add(i.anchor);r.inFlow=!0,r.inStringifyKey=!0;let s=n.toString(r);if(!t.mapKeyWarned){let i=JSON.stringify(s);i.length>40&&(i=i.substring(0,36)+'..."'),fI(t.doc.options.logLevel,`Keys with collection values will be stringified due to JS Object restrictions: ${i}. Set mapAsMap: true to use object keys.`),t.mapKeyWarned=!0;}return s}return JSON.stringify(e)}function hy(n,e,t){let r=qo(n,void 0,t),s=qo(e,void 0,t);return new Ve(r,s)}function dI(n,e,t){return (e.inFlow??n.flow?_H:SH)(n,e,t)}function SH({comment:n,items:e},t,{blockItemPrefix:r,flowChars:s,itemIndent:i,onChompKeep:o,onComment:a}){let{indent:l,options:{commentString:c}}=t,u=Object.assign({},t,{indent:i,type:null}),f=!1,h=[];for(let p=0;p<e.length;++p){let d=e[p],g=null;if(Ie(d))!f&&d.spaceBefore&&h.push(""),Jc(t,h,d.commentBefore,f),d.comment&&(g=d.comment);else if(Ae(d)){let w=Ie(d.key)?d.key:null;w&&(!f&&w.spaceBefore&&h.push(""),Jc(t,h,w.commentBefore,f));}f=!1;let y=oi(d,u,()=>g=null,()=>f=!0);g&&(y+=jr(y,i,c(g))),f&&g&&(f=!1),h.push(r+y);}let m;if(h.length===0)m=s.start+s.end;else {m=h[0];for(let p=1;p<h.length;++p){let d=h[p];m+=d?`
|
|
331
|
+
${l}${d}`:`
|
|
332
|
+
`;}}return n?(m+=`
|
|
333
|
+
`+$n(c(n),l),a&&a()):f&&o&&o(),m}function _H({items:n},e,{flowChars:t,itemIndent:r}){let{indent:s,indentStep:i,flowCollectionPadding:o,options:{commentString:a}}=e;r+=i;let l=Object.assign({},e,{indent:r,inFlow:!0,type:null}),c=!1,u=0,f=[];for(let p=0;p<n.length;++p){let d=n[p],g=null;if(Ie(d))d.spaceBefore&&f.push(""),Jc(e,f,d.commentBefore,!1),d.comment&&(g=d.comment);else if(Ae(d)){let w=Ie(d.key)?d.key:null;w&&(w.spaceBefore&&f.push(""),Jc(e,f,w.commentBefore,!1),w.comment&&(c=!0));let v=Ie(d.value)?d.value:null;v?(v.comment&&(g=v.comment),v.commentBefore&&(c=!0)):d.value==null&&w?.comment&&(g=w.comment);}g&&(c=!0);let y=oi(d,l,()=>g=null);p<n.length-1&&(y+=","),g&&(y+=jr(y,r,a(g))),!c&&(f.length>u||y.includes(`
|
|
334
|
+
`))&&(c=!0),f.push(y),u=f.length;}let{start:h,end:m}=t;if(f.length===0)return h+m;if(!c){let p=f.reduce((d,g)=>d+g.length+2,2);c=e.options.lineWidth>0&&p>e.options.lineWidth;}if(c){let p=h;for(let d of f)p+=d?`
|
|
335
|
+
${i}${s}${d}`:`
|
|
336
|
+
`;return `${p}
|
|
337
|
+
${s}${m}`}else return `${h}${o}${f.join(" ")}${o}${m}`}function Jc({indent:n,options:{commentString:e}},t,r,s){if(r&&s&&(r=r.replace(/^\n+/,"")),r){let i=$n(e(r),n);t.push(i.trimStart());}}function Ur(n,e){let t=me(e)?e.value:e;for(let r of n)if(Ae(r)&&(r.key===e||r.key===t||me(r.key)&&r.key.value===t))return r}function Wl(n){let e=me(n)?n.value:n;return e&&typeof e=="string"&&(e=Number(e)),typeof e=="number"&&Number.isInteger(e)&&e>=0?e:null}function ln({format:n,minFractionDigits:e,tag:t,value:r}){if(typeof r=="bigint")return String(r);let s=typeof r=="number"?r:Number(r);if(!isFinite(s))return isNaN(s)?".nan":s<0?"-.inf":".inf";let i=JSON.stringify(r);if(!n&&e&&(!t||t==="tag:yaml.org,2002:float")&&/^\d/.test(i)){let o=i.indexOf(".");o<0&&(o=i.length,i+=".");let a=e-(i.length-o-1);for(;a-- >0;)i+="0";}return i}function yI(n,e,t){let{value:r}=n;return Nu(r)&&r>=0?t+r.toString(e):ln(n)}function Db(n){return typeof n=="bigint"||Number.isInteger(n)}function AI(n,e){if(ns(n))for(let t=0;t<n.items.length;++t){let r=n.items[t];if(!Ae(r)){if(ts(r)){r.items.length>1&&e("Each pair must have its own sequence indicator");let s=r.items[0]||new Ve(new oe(null));if(r.commentBefore&&(s.key.commentBefore=s.key.commentBefore?`${r.commentBefore}
|
|
338
|
+
${s.key.commentBefore}`:r.commentBefore),r.comment){let i=s.value??s.key;i.comment=i.comment?`${r.comment}
|
|
339
|
+
${i.comment}`:r.comment;}r=s;}n.items[t]=Ae(r)?r:new Ve(r);}}else e("Expected a sequence for this tag");return n}function SI(n,e,t){let{replacer:r}=t,s=new an(n);s.tag="tag:yaml.org,2002:pairs";let i=0;if(e&&Symbol.iterator in Object(e))for(let o of e){typeof r=="function"&&(o=r.call(e,String(i++),o));let a,l;if(Array.isArray(o))if(o.length===2)a=o[0],l=o[1];else throw new TypeError(`Expected [key, value] tuple: ${o}`);else if(o&&o instanceof Object){let c=Object.keys(o);if(c.length===1)a=c[0],l=o[a];else throw new TypeError(`Expected tuple with one key, not ${c.length} keys`)}else a=o;s.items.push(hy(a,l,t));}return s}function _I({value:n,source:e},t){return e&&(n?bI:xI).test.test(e)?e:n?t.options.trueStr:t.options.falseStr}function Lu(n,e,t,{intAsBigInt:r}){let s=n[0];if((s==="-"||s==="+")&&(e+=1),n=n.substring(e).replace(/_/g,""),r){switch(t){case 2:n=`0b${n}`;break;case 8:n=`0o${n}`;break;case 16:n=`0x${n}`;break}let o=BigInt(n);return s==="-"?BigInt(-1)*o:o}let i=parseInt(n,t);return s==="-"?-1*i:i}function wy(n,e,t){let{value:r}=n;if(fa(r)){let s=r.toString(e);return r<0?"-"+t+s.substr(1):t+s}return ln(n)}function Ey(n,e){let t=n[0],r=t==="-"||t==="+"?n.substring(1):n,s=o=>e?BigInt(o):Number(o),i=r.replace(/_/g,"").split(":").reduce((o,a)=>o*s(60)+s(a),s(0));return t==="-"?s(-1)*i:i}function CI(n){let{value:e}=n,t=o=>o;if(typeof e=="bigint")t=o=>BigInt(o);else if(isNaN(e)||!isFinite(e))return ln(n);let r="";e<0&&(r="-",e*=t(-1));let s=t(60),i=[e%s];return e<60?i.unshift(0):(e=(e-i[0])/s,i.unshift(e%s),e>=60&&(e=(e-i[0])/s,i.unshift(e))),r+i.map(o=>String(o).padStart(2,"0")).join(":").replace(/000000\d*$/,"")}function mp(n,e){let t=Fb.get(e);if(!t)if(Array.isArray(n))t=[];else {let r=Array.from(Fb.keys()).filter(s=>s!=="yaml11").map(s=>JSON.stringify(s)).join(", ");throw new Error(`Unknown schema "${e}"; use one of ${r} or define customTags array`)}if(Array.isArray(n))for(let r of n)t=t.concat(r);else typeof n=="function"&&(t=n(t.slice()));return t.map(r=>{if(typeof r!="string")return r;let s=jb[r];if(s)return s;let i=Object.keys(jb).map(o=>JSON.stringify(o)).join(", ");throw new Error(`Unknown custom tag "${r}"; use one of ${i}`)})}function DH(n,e){let t=[],r=e.directives===!0;if(e.directives!==!1&&n.directives){let l=n.directives.toString(n);l?(t.push(l),r=!0):n.directives.docStart&&(r=!0);}r&&t.push("---");let s=uI(n,e),{commentString:i}=s.options;if(n.commentBefore){t.length!==1&&t.unshift("");let l=i(n.commentBefore);t.unshift($n(l,""));}let o=!1,a=null;if(n.contents){if(Ie(n.contents)){if(n.contents.spaceBefore&&r&&t.push(""),n.contents.commentBefore){let u=i(n.contents.commentBefore);t.push($n(u,""));}s.forceBlockIndent=!!n.comment,a=n.contents.comment;}let l=a?void 0:()=>o=!0,c=oi(n.contents,s,()=>a=null,l);a&&(c+=jr(c,"",i(a))),(c[0]==="|"||c[0]===">")&&t[t.length-1]==="---"?t[t.length-1]=`--- ${c}`:t.push(c);}else t.push(oi(n.contents,s));if(n.directives?.docEnd)if(n.comment){let l=i(n.comment);l.includes(`
|
|
340
|
+
`)?(t.push("..."),t.push($n(l,""))):t.push(`... ${l}`);}else t.push("...");else {let l=n.comment;l&&o&&(l=l.replace(/^\n+/,"")),l&&((!o||a)&&t[t.length-1]!==""&&t.push(""),t.push($n(i(l),"")));}return t.join(`
|
|
341
|
+
`)+`
|
|
342
|
+
`}function Ds(n){if(xe(n))return !0;throw new Error("Expected a YAML collection as document contents")}function li(n,{flow:e,indicator:t,next:r,offset:s,onError:i,parentIndent:o,startOnNewline:a}){let l=!1,c=a,u=a,f="",h="",m=!1,p=!1,d=null,g=null,y=null,w=null,v=null,A=null,E=null;for(let _ of n)switch(p&&(_.type!=="space"&&_.type!=="newline"&&_.type!=="comma"&&i(_.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),p=!1),d&&(c&&_.type!=="comment"&&_.type!=="newline"&&i(d,"TAB_AS_INDENT","Tabs are not allowed as indentation"),d=null),_.type){case"space":!e&&(t!=="doc-start"||r?.type!=="flow-collection")&&_.source.includes(" ")&&(d=_),u=!0;break;case"comment":{u||i(_,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let x=_.source.substring(1)||" ";f?f+=h+x:f=x,h="",c=!1;break}case"newline":c?f?f+=_.source:l=!0:h+=_.source,c=!0,m=!0,(g||y)&&(w=_),u=!0;break;case"anchor":g&&i(_,"MULTIPLE_ANCHORS","A node can have at most one anchor"),_.source.endsWith(":")&&i(_.offset+_.source.length-1,"BAD_ALIAS","Anchor ending in : is ambiguous",!0),g=_,E===null&&(E=_.offset),c=!1,u=!1,p=!0;break;case"tag":{y&&i(_,"MULTIPLE_TAGS","A node can have at most one tag"),y=_,E===null&&(E=_.offset),c=!1,u=!1,p=!0;break}case t:(g||y)&&i(_,"BAD_PROP_ORDER",`Anchors and tags must be after the ${_.source} indicator`),A&&i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.source} in ${e??"collection"}`),A=_,c=t==="seq-item-ind"||t==="explicit-key-ind",u=!1;break;case"comma":if(e){v&&i(_,"UNEXPECTED_TOKEN",`Unexpected , in ${e}`),v=_,c=!1,u=!1;break}default:i(_,"UNEXPECTED_TOKEN",`Unexpected ${_.type} token`),c=!1,u=!1;}let S=n[n.length-1],C=S?S.offset+S.source.length:s;return p&&r&&r.type!=="space"&&r.type!=="newline"&&r.type!=="comma"&&(r.type!=="scalar"||r.source!=="")&&i(r.offset,"MISSING_CHAR","Tags and anchors must be separated from the next token by white space"),d&&(c&&d.indent<=o||r?.type==="block-map"||r?.type==="block-seq")&&i(d,"TAB_AS_INDENT","Tabs are not allowed as indentation"),{comma:v,found:A,spaceBefore:l,comment:f,hasNewline:m,anchor:g,tag:y,newlineAfterProp:w,end:C,start:E??C}}function Go(n){if(!n)return null;switch(n.type){case"alias":case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":if(n.source.includes(`
|
|
343
|
+
`))return !0;if(n.end){for(let e of n.end)if(e.type==="newline")return !0}return !1;case"flow-collection":for(let e of n.items){for(let t of e.start)if(t.type==="newline")return !0;if(e.sep){for(let t of e.sep)if(t.type==="newline")return !0}if(Go(e.key)||Go(e.value))return !0}return !1;default:return !0}}function eg(n,e,t){if(e?.type==="flow-collection"){let r=e.end[0];r.indent===n&&(r.source==="]"||r.source==="}")&&Go(e)&&t(r,"BAD_INDENT","Flow end indicator should be more indented than parent",!0);}}function RI(n,e,t){let{uniqueKeys:r}=n.options;if(r===!1)return !1;let s=typeof r=="function"?r:(i,o)=>i===o||me(i)&&me(o)&&i.value===o.value&&!(i.value==="<<"&&n.schema.merge);return e.some(i=>s(i.key,t))}function BH({composeNode:n,composeEmptyNode:e},t,r,s,i){let o=i?.nodeClass??nt,a=new o(t.schema);t.atRoot&&(t.atRoot=!1);let l=r.offset,c=null;for(let u of r.items){let{start:f,key:h,sep:m,value:p}=u,d=li(f,{indicator:"explicit-key-ind",next:h??m?.[0],offset:l,onError:s,parentIndent:r.indent,startOnNewline:!0}),g=!d.found;if(g){if(h&&(h.type==="block-seq"?s(l,"BLOCK_AS_IMPLICIT_KEY","A block sequence may not be used as an implicit map key"):"indent"in h&&h.indent!==r.indent&&s(l,"BAD_INDENT",Ub)),!d.anchor&&!d.tag&&!m){c=d.end,d.comment&&(a.comment?a.comment+=`
|
|
344
|
+
`+d.comment:a.comment=d.comment);continue}(d.newlineAfterProp||Go(h))&&s(h??f[f.length-1],"MULTILINE_IMPLICIT_KEY","Implicit keys need to be on a single line");}else d.found?.indent!==r.indent&&s(l,"BAD_INDENT",Ub);let y=d.end,w=h?n(t,h,d,s):e(t,y,f,null,d,s);t.schema.compat&&eg(r.indent,h,s),RI(t,a.items,w)&&s(y,"DUPLICATE_KEY","Map keys must be unique");let v=li(m??[],{indicator:"map-value-ind",next:p,offset:w.range[2],onError:s,parentIndent:r.indent,startOnNewline:!h||h.type==="block-scalar"});if(l=v.end,v.found){g&&(p?.type==="block-map"&&!v.hasNewline&&s(l,"BLOCK_AS_IMPLICIT_KEY","Nested mappings are not allowed in compact mappings"),t.options.strict&&d.start<v.found.offset-1024&&s(w.range,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit block mapping key"));let A=p?n(t,p,v,s):e(t,l,m,null,v,s);t.schema.compat&&eg(r.indent,p,s),l=A.range[2];let E=new Ve(w,A);t.options.keepSourceTokens&&(E.srcToken=u),a.items.push(E);}else {g&&s(w.range,"MISSING_CHAR","Implicit map keys need to be followed by map values"),v.comment&&(w.comment?w.comment+=`
|
|
345
|
+
`+v.comment:w.comment=v.comment);let A=new Ve(w);t.options.keepSourceTokens&&(A.srcToken=u),a.items.push(A);}}return c&&c<l&&s(c,"IMPOSSIBLE","Map comment with trailing content"),a.range=[r.offset,l,c??l],a}function FH({composeNode:n,composeEmptyNode:e},t,r,s,i){let o=i?.nodeClass??an,a=new o(t.schema);t.atRoot&&(t.atRoot=!1);let l=r.offset,c=null;for(let{start:u,value:f}of r.items){let h=li(u,{indicator:"seq-item-ind",next:f,offset:l,onError:s,parentIndent:r.indent,startOnNewline:!0});if(!h.found)if(h.anchor||h.tag||f)f&&f.type==="block-seq"?s(h.end,"BAD_INDENT","All sequence items must start at the same column"):s(l,"MISSING_CHAR","Sequence item without - indicator");else {c=h.end,h.comment&&(a.comment=h.comment);continue}let m=f?n(t,f,h,s):e(t,h.end,u,null,h,s);t.schema.compat&&eg(r.indent,f,s),l=m.range[2],a.items.push(m);}return a.range=[r.offset,l,c??l],a}function ha(n,e,t,r){let s="";if(n){let i=!1,o="";for(let a of n){let{source:l,type:c}=a;switch(c){case"space":i=!0;break;case"comment":{t&&!i&&r(a,"MISSING_CHAR","Comments must be separated from other tokens by white space characters");let u=l.substring(1)||" ";s?s+=o+u:s=u,o="";break}case"newline":s&&(o+=l),i=!0;break;default:r(a,"UNEXPECTED_TOKEN",`Unexpected ${c} at node end`);}e+=l.length;}}return {comment:s,offset:e}}function jH({composeNode:n,composeEmptyNode:e},t,r,s,i){let o=r.start.source==="{",a=o?"flow map":"flow sequence",l=i?.nodeClass??(o?nt:an),c=new l(t.schema);c.flow=!0;let u=t.atRoot;u&&(t.atRoot=!1);let f=r.offset+r.start.source.length;for(let g=0;g<r.items.length;++g){let y=r.items[g],{start:w,key:v,sep:A,value:E}=y,S=li(w,{flow:a,indicator:"explicit-key-ind",next:v??A?.[0],offset:f,onError:s,parentIndent:r.indent,startOnNewline:!1});if(!S.found){if(!S.anchor&&!S.tag&&!A&&!E){g===0&&S.comma?s(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`):g<r.items.length-1&&s(S.start,"UNEXPECTED_TOKEN",`Unexpected empty item in ${a}`),S.comment&&(c.comment?c.comment+=`
|
|
346
|
+
`+S.comment:c.comment=S.comment),f=S.end;continue}!o&&t.options.strict&&Go(v)&&s(v,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");}if(g===0)S.comma&&s(S.comma,"UNEXPECTED_TOKEN",`Unexpected , in ${a}`);else if(S.comma||s(S.start,"MISSING_CHAR",`Missing , between ${a} items`),S.comment){let C="";e:for(let _ of w)switch(_.type){case"comma":case"space":break;case"comment":C=_.source.substring(1);break e;default:break e}if(C){let _=c.items[c.items.length-1];Ae(_)&&(_=_.value??_.key),_.comment?_.comment+=`
|
|
347
|
+
`+C:_.comment=C,S.comment=S.comment.substring(C.length+1);}}if(!o&&!A&&!S.found){let C=E?n(t,E,S,s):e(t,S.end,A,null,S,s);c.items.push(C),f=C.range[2],yp(E)&&s(C.range,"BLOCK_IN_FLOW",gp);}else {let C=S.end,_=v?n(t,v,S,s):e(t,C,w,null,S,s);yp(v)&&s(_.range,"BLOCK_IN_FLOW",gp);let x=li(A??[],{flow:a,indicator:"map-value-ind",next:E,offset:_.range[2],onError:s,parentIndent:r.indent,startOnNewline:!1});if(x.found){if(!o&&!S.found&&t.options.strict){if(A)for(let T of A){if(T===x.found)break;if(T.type==="newline"){s(T,"MULTILINE_IMPLICIT_KEY","Implicit keys of flow sequence pairs need to be on a single line");break}}S.start<x.found.offset-1024&&s(x.found,"KEY_OVER_1024_CHARS","The : indicator must be at most 1024 chars after the start of an implicit flow sequence key");}}else E&&("source"in E&&E.source&&E.source[0]===":"?s(E,"MISSING_CHAR",`Missing space after : in ${a}`):s(x.start,"MISSING_CHAR",`Missing , or : between ${a} items`));let $=E?n(t,E,x,s):x.found?e(t,x.end,A,null,x,s):null;$?yp(E)&&s($.range,"BLOCK_IN_FLOW",gp):x.comment&&(_.comment?_.comment+=`
|
|
348
|
+
`+x.comment:_.comment=x.comment);let b=new Ve(_,$);if(t.options.keepSourceTokens&&(b.srcToken=y),o){let T=c;RI(t,T.items,_)&&s(C,"DUPLICATE_KEY","Map keys must be unique"),T.items.push(b);}else {let T=new nt(t.schema);T.flow=!0,T.items.push(b),c.items.push(T);}f=$?$.range[2]:x.end;}}let h=o?"}":"]",[m,...p]=r.end,d=f;if(m&&m.source===h)d=m.offset+m.source.length;else {let g=a[0].toUpperCase()+a.substring(1),y=u?`${g} must end with a ${h}`:`${g} in block collection must be sufficiently indented and end with a ${h}`;s(f,u?"MISSING_CHAR":"BAD_INDENT",y),m&&m.source.length!==1&&p.unshift(m);}if(p.length>0){let g=ha(p,d,t.options.strict,s);g.comment&&(c.comment?c.comment+=`
|
|
349
|
+
`+g.comment:c.comment=g.comment),c.range=[r.offset,d,g.offset];}else c.range=[r.offset,d,d];return c}function wp(n,e,t,r,s,i){let o=t.type==="block-map"?BH(n,e,t,r,i):t.type==="block-seq"?FH(n,e,t,r,i):jH(n,e,t,r,i),a=o.constructor;return s==="!"||s===a.tagName?(o.tag=a.tagName,o):(s&&(o.tag=s),o)}function UH(n,e,t,r,s){let i=r.tag,o=i?e.directives.tagName(i.source,h=>s(i,"TAG_RESOLVE_FAILED",h)):null;if(t.type==="block-seq"){let{anchor:h,newlineAfterProp:m}=r,p=h&&i?h.offset>i.offset?h:i:h??i;p&&(!m||m.offset<p.offset)&&s(p,"MISSING_CHAR","Missing newline after block sequence props");}let a=t.type==="block-map"?"map":t.type==="block-seq"?"seq":t.start.source==="{"?"map":"seq";if(!i||!o||o==="!"||o===nt.tagName&&a==="map"||o===an.tagName&&a==="seq")return wp(n,e,t,s,o);let l=e.schema.tags.find(h=>h.tag===o&&h.collection===a);if(!l){let h=e.schema.knownTags[o];if(h&&h.collection===a)e.schema.tags.push(Object.assign({},h,{default:!1})),l=h;else return h?.collection?s(i,"BAD_COLLECTION_TYPE",`${h.tag} used for ${a} collection, but expects ${h.collection}`,!0):s(i,"TAG_RESOLVE_FAILED",`Unresolved tag: ${o}`,!0),wp(n,e,t,s,o)}let c=wp(n,e,t,s,o,l),u=l.resolve?.(c,h=>s(i,"TAG_RESOLVE_FAILED",h),e.options)??c,f=Ie(u)?u:new oe(u);return f.range=c.range,f.tag=o,l?.format&&(f.format=l.format),f}function kI(n,e,t){let r=e.offset,s=QH(e,n.options.strict,t);if(!s)return {value:"",type:null,comment:"",range:[r,r,r]};let i=s.mode===">"?oe.BLOCK_FOLDED:oe.BLOCK_LITERAL,o=e.source?WH(e.source):[],a=o.length;for(let d=o.length-1;d>=0;--d){let g=o[d][1];if(g===""||g==="\r")a=d;else break}if(a===0){let d=s.chomp==="+"&&o.length>0?`
|
|
350
|
+
`.repeat(Math.max(1,o.length-1)):"",g=r+s.length;return e.source&&(g+=e.source.length),{value:d,type:i,comment:s.comment,range:[r,g,g]}}let l=e.indent+s.indent,c=e.offset+s.length,u=0;for(let d=0;d<a;++d){let[g,y]=o[d];if(y===""||y==="\r")s.indent===0&&g.length>l&&(l=g.length);else {g.length<l&&t(c+g.length,"MISSING_CHAR","Block scalars with more-indented leading empty lines must use an explicit indentation indicator"),s.indent===0&&(l=g.length),u=d,l===0&&!n.atRoot&&t(c,"BAD_INDENT","Block scalar values in collections must be indented");break}c+=g.length+y.length+1;}for(let d=o.length-1;d>=a;--d)o[d][0].length>l&&(a=d+1);let f="",h="",m=!1;for(let d=0;d<u;++d)f+=o[d][0].slice(l)+`
|
|
351
|
+
`;for(let d=u;d<a;++d){let[g,y]=o[d];c+=g.length+y.length+1;let w=y[y.length-1]==="\r";if(w&&(y=y.slice(0,-1)),y&&g.length<l){let A=`Block scalar lines must not be less indented than their ${s.indent?"explicit indentation indicator":"first line"}`;t(c-y.length-(w?2:1),"BAD_INDENT",A),g="";}i===oe.BLOCK_LITERAL?(f+=h+g.slice(l)+y,h=`
|
|
352
|
+
`):g.length>l||y[0]===" "?(h===" "?h=`
|
|
353
|
+
`:!m&&h===`
|
|
354
|
+
`&&(h=`
|
|
355
|
+
|
|
356
|
+
`),f+=h+g.slice(l)+y,h=`
|
|
357
|
+
`,m=!0):y===""?h===`
|
|
358
|
+
`?f+=`
|
|
359
|
+
`:h=`
|
|
360
|
+
`:(f+=h+y,h=" ",m=!1);}switch(s.chomp){case"-":break;case"+":for(let d=a;d<o.length;++d)f+=`
|
|
361
|
+
`+o[d][0].slice(l);f[f.length-1]!==`
|
|
362
|
+
`&&(f+=`
|
|
363
|
+
`);break;default:f+=`
|
|
364
|
+
`;}let p=r+s.length+e.source.length;return {value:f,type:i,comment:s.comment,range:[r,p,p]}}function QH({offset:n,props:e},t,r){if(e[0].type!=="block-scalar-header")return r(e[0],"IMPOSSIBLE","Block scalar header not found"),null;let{source:s}=e[0],i=s[0],o=0,a="",l=-1;for(let h=1;h<s.length;++h){let m=s[h];if(!a&&(m==="-"||m==="+"))a=m;else {let p=Number(m);!o&&p?o=p:l===-1&&(l=n+h);}}l!==-1&&r(l,"UNEXPECTED_TOKEN",`Block scalar header includes extra characters: ${s}`);let c=!1,u="",f=s.length;for(let h=1;h<e.length;++h){let m=e[h];switch(m.type){case"space":c=!0;case"newline":f+=m.source.length;break;case"comment":t&&!c&&r(m,"MISSING_CHAR","Comments must be separated from other tokens by white space characters"),f+=m.source.length,u=m.source.substring(1);break;case"error":r(m,"UNEXPECTED_TOKEN",m.message),f+=m.source.length;break;default:{let p=`Unexpected token in block scalar header: ${m.type}`;r(m,"UNEXPECTED_TOKEN",p);let d=m.source;d&&typeof d=="string"&&(f+=d.length);}}}return {mode:i,indent:o,chomp:a,comment:u,length:f}}function WH(n){let e=n.split(/\n( *)/),t=e[0],r=t.match(/^( *)/),i=[r?.[1]?[r[1],t.slice(r[1].length)]:["",t]];for(let o=1;o<e.length;o+=2)i.push([e[o],e[o+1]]);return i}function $I(n,e,t){let{offset:r,type:s,source:i,end:o}=n,a,l,c=(h,m,p)=>t(r+h,m,p);switch(s){case"scalar":a=oe.PLAIN,l=qH(i,c);break;case"single-quoted-scalar":a=oe.QUOTE_SINGLE,l=HH(i,c);break;case"double-quoted-scalar":a=oe.QUOTE_DOUBLE,l=zH(i,c);break;default:return t(n,"UNEXPECTED_TOKEN",`Expected a flow scalar value, but found: ${s}`),{value:"",type:null,comment:"",range:[r,r+i.length,r+i.length]}}let u=r+i.length,f=ha(o,u,e,t);return {value:l,type:a,comment:f.comment,range:[r,u,f.offset]}}function qH(n,e){let t="";switch(n[0]){case" ":t="a tab character";break;case",":t="flow indicator character ,";break;case"%":t="directive indicator character %";break;case"|":case">":{t=`block scalar indicator ${n[0]}`;break}case"@":case"`":{t=`reserved character ${n[0]}`;break}}return t&&e(0,"BAD_SCALAR_START",`Plain value cannot start with ${t}`),TI(n)}function HH(n,e){return (n[n.length-1]!=="'"||n.length===1)&&e(n.length,"MISSING_CHAR","Missing closing 'quote"),TI(n.slice(1,-1)).replace(/''/g,"'")}function TI(n){let e,t;try{e=new RegExp(`(.*?)(?<![ ])[ ]*\r?
|
|
365
|
+
`,"sy"),t=new RegExp(`[ ]*(.*?)(?:(?<![ ])[ ]*)?\r?
|
|
366
|
+
`,"sy");}catch{e=/(.*?)[ \t]*\r?\n/sy,t=/[ \t]*(.*?)[ \t]*\r?\n/sy;}let r=e.exec(n);if(!r)return n;let s=r[1],i=" ",o=e.lastIndex;for(t.lastIndex=o;r=t.exec(n);)r[1]===""?i===`
|
|
367
|
+
`?s+=i:i=`
|
|
368
|
+
`:(s+=i+r[1],i=" "),o=t.lastIndex;let a=/[ \t]*(.*)/sy;return a.lastIndex=o,r=a.exec(n),s+i+(r?.[1]??"")}function zH(n,e){let t="";for(let r=1;r<n.length-1;++r){let s=n[r];if(!(s==="\r"&&n[r+1]===`
|
|
369
|
+
`))if(s===`
|
|
370
|
+
`){let{fold:i,offset:o}=GH(n,r);t+=i,r=o;}else if(s==="\\"){let i=n[++r],o=KH[i];if(o)t+=o;else if(i===`
|
|
371
|
+
`)for(i=n[r+1];i===" "||i===" ";)i=n[++r+1];else if(i==="\r"&&n[r+1]===`
|
|
372
|
+
`)for(i=n[++r+1];i===" "||i===" ";)i=n[++r+1];else if(i==="x"||i==="u"||i==="U"){let a={x:2,u:4,U:8}[i];t+=VH(n,r+1,a,e),r+=a;}else {let a=n.substr(r-1,2);e(r-1,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),t+=a;}}else if(s===" "||s===" "){let i=r,o=n[r+1];for(;o===" "||o===" ";)o=n[++r+1];o!==`
|
|
373
|
+
`&&!(o==="\r"&&n[r+2]===`
|
|
374
|
+
`)&&(t+=r>i?n.slice(i,r+1):s);}else t+=s;}return (n[n.length-1]!=='"'||n.length===1)&&e(n.length,"MISSING_CHAR",'Missing closing "quote'),t}function GH(n,e){let t="",r=n[e+1];for(;(r===" "||r===" "||r===`
|
|
375
|
+
`||r==="\r")&&!(r==="\r"&&n[e+2]!==`
|
|
376
|
+
`);)r===`
|
|
377
|
+
`&&(t+=`
|
|
378
|
+
`),e+=1,r=n[e+1];return t||(t=" "),{fold:t,offset:e}}function VH(n,e,t,r){let s=n.substr(e,t),o=s.length===t&&/^[0-9a-fA-F]+$/.test(s)?parseInt(s,16):NaN;if(isNaN(o)){let a=n.substr(e-2,t+2);return r(e-2,"BAD_DQ_ESCAPE",`Invalid escape sequence ${a}`),a}return String.fromCodePoint(o)}function PI(n,e,t,r){let{value:s,type:i,comment:o,range:a}=e.type==="block-scalar"?kI(n,e,r):$I(e,n.options.strict,r),l=t?n.directives.tagName(t.source,f=>r(t,"TAG_RESOLVE_FAILED",f)):null,c=t&&l?JH(n.schema,s,l,t,r):e.type==="scalar"?YH(n,s,e,r):n.schema[Nn],u;try{let f=c.resolve(s,h=>r(t??e,"TAG_RESOLVE_FAILED",h),n.options);u=me(f)?f:new oe(f);}catch(f){let h=f instanceof Error?f.message:String(f);r(t??e,"TAG_RESOLVE_FAILED",h),u=new oe(s);}return u.range=a,u.source=s,i&&(u.type=i),l&&(u.tag=l),c.format&&(u.format=c.format),o&&(u.comment=o),u}function JH(n,e,t,r,s){if(t==="!")return n[Nn];let i=[];for(let a of n.tags)if(!a.collection&&a.tag===t)if(a.default&&a.test)i.push(a);else return a;for(let a of i)if(a.test?.test(e))return a;let o=n.knownTags[t];return o&&!o.collection?(n.tags.push(Object.assign({},o,{default:!1,test:void 0})),o):(s(r,"TAG_RESOLVE_FAILED",`Unresolved tag: ${t}`,t!=="tag:yaml.org,2002:str"),n[Nn])}function YH({directives:n,schema:e},t,r,s){let i=e.tags.find(o=>o.default&&o.test?.test(t))||e[Nn];if(e.compat){let o=e.compat.find(a=>a.default&&a.test?.test(t))??e[Nn];if(i.tag!==o.tag){let a=n.tagString(i.tag),l=n.tagString(o.tag),c=`Value may be parsed as either ${a} or ${l}`;s(r,"TAG_RESOLVE_FAILED",c,!0);}}return i}function XH(n,e,t){if(e){t===null&&(t=e.length);for(let r=t-1;r>=0;--r){let s=e[r];switch(s.type){case"space":case"comment":case"newline":n-=s.source.length;continue}for(s=e[++r];s?.type==="space";)n+=s.source.length,s=e[++r];break}}return n}function NI(n,e,t,r){let{spaceBefore:s,comment:i,anchor:o,tag:a}=t,l,c=!0;switch(e.type){case"alias":l=e3(n,e,r),(o||a)&&r(e,"ALIAS_PROPS","An alias node must not specify any properties");break;case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"block-scalar":l=PI(n,e,a,r),o&&(l.anchor=o.source.substring(1));break;case"block-map":case"block-seq":case"flow-collection":l=UH(ZH,n,e,t,r),o&&(l.anchor=o.source.substring(1));break;default:{let u=e.type==="error"?e.message:`Unsupported token (type: ${e.type})`;r(e,"UNEXPECTED_TOKEN",u),l=Ay(n,e.offset,void 0,null,t,r),c=!1;}}return o&&l.anchor===""&&r(o,"BAD_ALIAS","Anchor cannot be an empty string"),s&&(l.spaceBefore=!0),i&&(e.type==="scalar"&&e.source===""?l.comment=i:l.commentBefore=i),n.options.keepSourceTokens&&c&&(l.srcToken=e),l}function Ay(n,e,t,r,{spaceBefore:s,comment:i,anchor:o,tag:a,end:l},c){let u={type:"scalar",offset:XH(e,t,r),indent:-1,source:""},f=PI(n,u,a,c);return o&&(f.anchor=o.source.substring(1),f.anchor===""&&c(o,"BAD_ALIAS","Anchor cannot be an empty string")),s&&(f.spaceBefore=!0),i&&(f.comment=i,f.range[2]=l),f}function e3({options:n},{offset:e,source:t,end:r},s){let i=new zr(t.substring(1));i.source===""&&s(e,"BAD_ALIAS","Alias cannot be an empty string"),i.source.endsWith(":")&&s(e+t.length-1,"BAD_ALIAS","Alias ending in : is ambiguous",!0);let o=e+t.length,a=ha(r,o,n.strict,s);return i.range=[e,o,a.offset],a.comment&&(i.comment=a.comment),i}function t3(n,e,{offset:t,start:r,value:s,end:i},o){let a=Object.assign({_directives:e},n),l=new Gr(void 0,a),c={atRoot:!0,directives:l.directives,options:l.options,schema:l.schema},u=li(r,{indicator:"doc-start",next:s??i?.[0],offset:t,onError:o,parentIndent:0,startOnNewline:!0});u.found&&(l.directives.docStart=!0,s&&(s.type==="block-map"||s.type==="block-seq")&&!u.hasNewline&&o(u.end,"MISSING_CHAR","Block collection cannot start on same line with directives-end marker")),l.contents=s?NI(c,s,u,o):Ay(c,u.end,r,null,u,o);let f=l.contents.range[2],h=ha(i,f,!1,o);return h.comment&&(l.comment=h.comment),l.range=[t,f,h.offset],l}function mo(n){if(typeof n=="number")return [n,n+1];if(Array.isArray(n))return n.length===2?n:[n[0],n[1]];let{offset:e,source:t}=n;return [e,e+(typeof t=="string"?t.length:1)]}function Qb(n){let e="",t=!1,r=!1;for(let s=0;s<n.length;++s){let i=n[s];switch(i[0]){case"#":e+=(e===""?"":r?`
|
|
379
|
+
|
|
380
|
+
`:`
|
|
381
|
+
`)+(i.substring(1)||" "),t=!0,r=!1;break;case"%":n[s+1]?.[0]!=="#"&&(s+=1),t=!1;break;default:t||(r=!0),t=!1;}}return {comment:e,afterEmptyLine:r}}function n3(n,e=!0,t){if(n){let r=(s,i,o)=>{let a=typeof s=="number"?s:Array.isArray(s)?s[0]:s.offset;if(t)t(a,i,o);else throw new pn([a,a+1],i,o)};switch(n.type){case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return $I(n,e,r);case"block-scalar":return kI({options:{strict:e}},n,r)}}return null}function r3(n,e){let{implicitKey:t=!1,indent:r,inFlow:s=!1,offset:i=-1,type:o="PLAIN"}=e,a=ua({type:o,value:n},{implicitKey:t,indent:r>0?" ".repeat(r):"",inFlow:s,options:{blockQuote:!0,lineWidth:-1}}),l=e.end??[{type:"newline",offset:-1,indent:r,source:`
|
|
382
|
+
`}];switch(a[0]){case"|":case">":{let c=a.indexOf(`
|
|
383
|
+
`),u=a.substring(0,c),f=a.substring(c+1)+`
|
|
384
|
+
`,h=[{type:"block-scalar-header",offset:i,indent:r,source:u}];return LI(h,l)||h.push({type:"newline",offset:-1,indent:r,source:`
|
|
385
|
+
`}),{type:"block-scalar",offset:i,indent:r,props:h,source:f}}case'"':return {type:"double-quoted-scalar",offset:i,indent:r,source:a,end:l};case"'":return {type:"single-quoted-scalar",offset:i,indent:r,source:a,end:l};default:return {type:"scalar",offset:i,indent:r,source:a,end:l}}}function s3(n,e,t={}){let{afterKey:r=!1,implicitKey:s=!1,inFlow:i=!1,type:o}=t,a="indent"in n?n.indent:null;if(r&&typeof a=="number"&&(a+=2),!o)switch(n.type){case"single-quoted-scalar":o="QUOTE_SINGLE";break;case"double-quoted-scalar":o="QUOTE_DOUBLE";break;case"block-scalar":{let c=n.props[0];if(c.type!=="block-scalar-header")throw new Error("Invalid block scalar header");o=c.source[0]===">"?"BLOCK_FOLDED":"BLOCK_LITERAL";break}default:o="PLAIN";}let l=ua({type:o,value:e},{implicitKey:s||a===null,indent:a!==null&&a>0?" ".repeat(a):"",inFlow:i,options:{blockQuote:!0,lineWidth:-1}});switch(l[0]){case"|":case">":i3(n,l);break;case'"':vp(n,l,"double-quoted-scalar");break;case"'":vp(n,l,"single-quoted-scalar");break;default:vp(n,l,"scalar");}}function i3(n,e){let t=e.indexOf(`
|
|
386
|
+
`),r=e.substring(0,t),s=e.substring(t+1)+`
|
|
387
|
+
`;if(n.type==="block-scalar"){let i=n.props[0];if(i.type!=="block-scalar-header")throw new Error("Invalid block scalar header");i.source=r,n.source=s;}else {let{offset:i}=n,o="indent"in n?n.indent:-1,a=[{type:"block-scalar-header",offset:i,indent:o,source:r}];LI(a,"end"in n?n.end:void 0)||a.push({type:"newline",offset:-1,indent:o,source:`
|
|
388
|
+
`});for(let l of Object.keys(n))l!=="type"&&l!=="offset"&&delete n[l];Object.assign(n,{type:"block-scalar",indent:o,props:a,source:s});}}function LI(n,e){if(e)for(let t of e)switch(t.type){case"space":case"comment":n.push(t);break;case"newline":return n.push(t),!0}return !1}function vp(n,e,t){switch(n.type){case"scalar":case"double-quoted-scalar":case"single-quoted-scalar":n.type=t,n.source=e;break;case"block-scalar":{let r=n.props.slice(1),s=e.length;n.props[0].type==="block-scalar-header"&&(s-=n.props[0].source.length);for(let i of r)i.offset+=s;delete n.props,Object.assign(n,{type:t,source:e,end:r});break}case"block-map":case"block-seq":{let s={type:"newline",offset:n.offset+e.length,indent:n.indent,source:`
|
|
389
|
+
`};delete n.items,Object.assign(n,{type:t,source:e,end:[s]});break}default:{let r="indent"in n?n.indent:-1,s="end"in n&&Array.isArray(n.end)?n.end.filter(i=>i.type==="space"||i.type==="comment"||i.type==="newline"):[];for(let i of Object.keys(n))i!=="type"&&i!=="offset"&&delete n[i];Object.assign(n,{type:t,indent:r,source:e,end:s});}}}function Xc(n){switch(n.type){case"block-scalar":{let e="";for(let t of n.props)e+=Xc(t);return e+n.source}case"block-map":case"block-seq":{let e="";for(let t of n.items)e+=fc(t);return e}case"flow-collection":{let e=n.start.source;for(let t of n.items)e+=fc(t);for(let t of n.end)e+=t.source;return e}case"document":{let e=fc(n);if(n.end)for(let t of n.end)e+=t.source;return e}default:{let e=n.source;if("end"in n&&n.end)for(let t of n.end)e+=t.source;return e}}}function fc({start:n,key:e,sep:t,value:r}){let s="";for(let i of n)s+=i.source;if(e&&(s+=Xc(e)),t)for(let i of t)s+=i.source;return r&&(s+=Xc(r)),s}function Kr(n,e){"type"in n&&n.type==="document"&&(n={start:n.start,value:n.value}),DI(Object.freeze([]),n,e);}function DI(n,e,t){let r=t(e,n);if(typeof r=="symbol")return r;for(let s of ["key","value"]){let i=e[s];if(i&&"items"in i){for(let o=0;o<i.items.length;++o){let a=DI(Object.freeze(n.concat([[s,o]])),i.items[o],t);if(typeof a=="number")o=a-1;else {if(a===tg)return tg;a===MI&&(i.items.splice(o,1),o-=1);}}typeof r=="function"&&s==="key"&&(r=r(e,n));}}return typeof r=="function"?r(e,n):r}function u3(n){switch(n){case Du:return "<BOM>";case Bu:return "<DOC>";case Fu:return "<FLOW_END>";case Ko:return "<SCALAR>";default:return JSON.stringify(n)}}function BI(n){switch(n){case Du:return "byte-order-mark";case Bu:return "doc-mode";case Fu:return "flow-error-end";case Ko:return "scalar";case"---":return "doc-start";case"...":return "doc-end";case"":case`
|
|
390
|
+
`:case`\r
|
|
391
|
+
`:return "newline";case"-":return "seq-item-ind";case"?":return "explicit-key-ind";case":":return "map-value-ind";case"{":return "flow-map-start";case"}":return "flow-map-end";case"[":return "flow-seq-start";case"]":return "flow-seq-end";case",":return "comma"}switch(n[0]){case" ":case" ":return "space";case"#":return "comment";case"%":return "directive-line";case"*":return "alias";case"&":return "anchor";case"!":return "tag";case"'":return "single-quoted-scalar";case'"':return "double-quoted-scalar";case"|":case">":return "block-scalar-header"}return null}function Zt(n){switch(n){case void 0:case" ":case`
|
|
392
|
+
`:case"\r":case" ":return !0;default:return !1}}function Br(n,e){for(let t=0;t<n.length;++t)if(n[t].type===e)return !0;return !1}function qb(n){for(let e=0;e<n.length;++e)switch(n[e].type){case"space":case"comment":case"newline":break;default:return e}return -1}function jI(n){switch(n?.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":case"flow-collection":return !0;default:return !1}}function zl(n){switch(n.type){case"document":return n.start;case"block-map":{let e=n.items[n.items.length-1];return e.sep??e.start}case"block-seq":return n.items[n.items.length-1].start;default:return []}}function Bs(n){if(n.length===0)return [];let e=n.length;e:for(;--e>=0;)switch(n[e].type){case"doc-start":case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":case"newline":break e}return n.splice(e,n.length)}function Hb(n){if(n.start.type==="flow-seq-start")for(let e of n.items)e.sep&&!e.value&&!Br(e.start,"explicit-key-ind")&&!Br(e.sep,"map-value-ind")&&(e.key&&(e.value=e.key),delete e.key,jI(e.value)?e.value.end?Array.prototype.push.apply(e.value.end,e.sep):e.value.end=e.sep:Array.prototype.push.apply(e.start,e.sep),delete e.sep);}function UI(n){let e=n.prettyErrors!==!1;return {lineCounter:n.lineCounter||e&&new Jo||null,prettyErrors:e}}function QI(n,e={}){let{lineCounter:t,prettyErrors:r}=UI(e),s=new ui(t?.addNewLine),i=new ci(e),o=Array.from(i.compose(s.parse(n)));if(r&&t)for(let a of o)a.errors.forEach(Yc(n,t)),a.warnings.forEach(Yc(n,t));return o.length>0?o:Object.assign([],{empty:!0},i.streamInfo())}function Sy(n,e={}){let{lineCounter:t,prettyErrors:r}=UI(e),s=new ui(t?.addNewLine),i=new ci(e),o=null;for(let a of i.compose(s.parse(n),!0,n.length))if(!o)o=a;else if(o.options.logLevel!=="silent"){o.errors.push(new pn(a.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return r&&t&&(o.errors.forEach(Yc(n,t)),o.warnings.forEach(Yc(n,t))),o}function WI(n,e,t){let r;typeof e=="function"?r=e:t===void 0&&e&&typeof e=="object"&&(t=e);let s=Sy(n,t);if(!s)return null;if(s.warnings.forEach(i=>fI(s.options.logLevel,i)),s.errors.length>0){if(s.options.logLevel!=="silent")throw s.errors[0];s.errors=[];}return s.toJS(Object.assign({reviver:r},t))}function qI(n,e,t){let r=null;if(typeof e=="function"||Array.isArray(e)?r=e:t===void 0&&e&&(t=e),typeof t=="string"&&(t=t.length),typeof t=="number"){let s=Math.round(t);t=s<1?void 0:s>8?{indent:8}:{indent:s};}if(n===void 0){let{keepUndefined:s}=t??e??{};if(!s)return}return new Gr(n,r,t).toString(t)}function w3(n,e){return (g3||y3)(e)(n)}function vz(n){let e={},t=n.toString();t=t.replace(/\r\n?/mg,`
|
|
393
|
+
`);let r;for(;(r=wz.exec(t))!=null;){let s=r[1],i=r[2]||"";i=i.trim();let o=i[0];i=i.replace(/^(['"`])([\s\S]*)\1$/mg,"$2"),o==='"'&&(i=i.replace(/\\n/g,`
|
|
394
|
+
`),i=i.replace(/\\r/g,"\r")),e[s]=i;}return e}function Ez(n){let e=KI(n),t=Fe.configDotenv({path:e});if(!t.parsed){let o=new Error(`MISSING_DATA: Cannot parse ${e} for an unknown reason`);throw o.code="MISSING_DATA",o}let r=GI(n).split(","),s=r.length,i;for(let o=0;o<s;o++)try{let a=r[o].trim(),l=_z(t,a);i=Fe.decrypt(l.ciphertext,l.key);break}catch(a){if(o+1>=s)throw a}return Fe.parse(i)}function Az(n){console.log(`[dotenv@${by}][INFO] ${n}`);}function Sz(n){console.log(`[dotenv@${by}][WARN] ${n}`);}function Zc(n){console.log(`[dotenv@${by}][DEBUG] ${n}`);}function GI(n){return n&&n.DOTENV_KEY&&n.DOTENV_KEY.length>0?n.DOTENV_KEY:process.env.DOTENV_KEY&&process.env.DOTENV_KEY.length>0?process.env.DOTENV_KEY:""}function _z(n,e){let t;try{t=new URL(e);}catch(a){if(a.code==="ERR_INVALID_URL"){let l=new Error("INVALID_DOTENV_KEY: Wrong format. Must be in valid uri format like dotenv://:key_1234@dotenvx.com/vault/.env.vault?environment=development");throw l.code="INVALID_DOTENV_KEY",l}throw a}let r=t.password;if(!r){let a=new Error("INVALID_DOTENV_KEY: Missing key part");throw a.code="INVALID_DOTENV_KEY",a}let s=t.searchParams.get("environment");if(!s){let a=new Error("INVALID_DOTENV_KEY: Missing environment part");throw a.code="INVALID_DOTENV_KEY",a}let i=`DOTENV_VAULT_${s.toUpperCase()}`,o=n.parsed[i];if(!o){let a=new Error(`NOT_FOUND_DOTENV_ENVIRONMENT: Cannot locate environment ${i} in your .env.vault file.`);throw a.code="NOT_FOUND_DOTENV_ENVIRONMENT",a}return {ciphertext:o,key:r}}function KI(n){let e=null;if(n&&n.path&&n.path.length>0)if(Array.isArray(n.path))for(let t of n.path)ng.existsSync(t)&&(e=t.endsWith(".vault")?t:`${t}.vault`);else e=n.path.endsWith(".vault")?n.path:`${n.path}.vault`;else e=_y.resolve(process.cwd(),".env.vault");return ng.existsSync(e)?e:null}function Kb(n){return n[0]==="~"?_y.join(mz.homedir(),n.slice(1)):n}function bz(n){Az("Loading env from encrypted .env.vault");let e=Fe._parseVault(n),t=process.env;return n&&n.processEnv!=null&&(t=n.processEnv),Fe.populate(t,e,n),{parsed:e}}function xz(n){let e=_y.resolve(process.cwd(),".env"),t="utf8",r=!!(n&&n.debug);n&&n.encoding?t=n.encoding:r&&Zc("No encoding is specified. UTF-8 is used by default");let s=[e];if(n&&n.path)if(!Array.isArray(n.path))s=[Kb(n.path)];else {s=[];for(let l of n.path)s.push(Kb(l));}let i,o={};for(let l of s)try{let c=Fe.parse(ng.readFileSync(l,{encoding:t}));Fe.populate(o,c,n);}catch(c){r&&Zc(`Failed to load ${l} ${c.message}`),i=c;}let a=process.env;return n&&n.processEnv!=null&&(a=n.processEnv),Fe.populate(a,o,n),i?{parsed:o,error:i}:{parsed:o}}function Cz(n){if(GI(n).length===0)return Fe.configDotenv(n);let e=KI(n);return e?Fe._configVault(n):(Sz(`You set DOTENV_KEY but you are missing a .env.vault file at ${e}. Did you forget to build it?`),Fe.configDotenv(n))}function Iz(n,e){let t=Buffer.from(e.slice(-64),"hex"),r=Buffer.from(n,"base64"),s=r.subarray(0,12),i=r.subarray(-16);r=r.subarray(12,-16);try{let o=gz.createDecipheriv("aes-256-gcm",t,s);return o.setAuthTag(i),`${o.update(r)}${o.final()}`}catch(o){let a=o instanceof RangeError,l=o.message==="Invalid key length",c=o.message==="Unsupported state or unable to authenticate data";if(a||l){let u=new Error("INVALID_DOTENV_KEY: It must be 64 characters long (or more)");throw u.code="INVALID_DOTENV_KEY",u}else if(c){let u=new Error("DECRYPTION_FAILED: Please check your DOTENV_KEY");throw u.code="DECRYPTION_FAILED",u}else throw o}}function Oz(n,e,t={}){let r=!!(t&&t.debug),s=!!(t&&t.override);if(typeof e!="object"){let i=new Error("OBJECT_REQUIRED: Please check the processEnv argument being passed to populate");throw i.code="OBJECT_REQUIRED",i}for(let i of Object.keys(e))Object.prototype.hasOwnProperty.call(n,i)?(s===!0&&(n[i]=e[i]),r&&Zc(s===!0?`"${i}" is already defined and WAS overwritten`:`"${i}" is already defined and was NOT overwritten`)):n[i]=e[i];}function JI(n,e){return tC(n,xy,async t=>{let[r,s]=t;return await YI(s.trim(),r,e)})}async function Mz(n,e){return await tC(n,VI,async t=>{let[,r]=t;return await d2(r,async({url:i})=>xy.test(i)?await JI(i,e):Lz.test(i)?i:await YI(i,i,e))})}function Dz(n){return t2(n)||r2(n)||n[0]==="#"||Tz.test(n)}async function YI(n,e,t,r="url"){let s="",i=n[0];if((i==='"'||i==="'")&&(s=i,n=n.slice(1,-1)),Dz(n))return e;let o=await t(n);return s===""&&o!==encodeURI(o)&&(s='"'),s==="'"&&o.includes("'")&&(s='"'),s==='"'&&o.includes('"')&&(o=o.replace(Pz,'\\"')),`${r}(${s}${o}${s})`}function _p(n,e="and"){return n.length<3?n.join(` ${e} `):`${n.slice(0,-1).join(", ")}, ${e} ${n[n.length-1]}`}function Ht(n,e,t){return XI.set(n,e),Qz(t,n)}function Qz(n,e){return t;function t(...r){let s=Error.stackTraceLimit;rg()&&(Error.stackTraceLimit=0);let i=new n;rg()&&(Error.stackTraceLimit=s);let o=Hz(e,r,i);return Object.defineProperties(i,{message:{value:o,enumerable:!1,writable:!0,configurable:!0},toString:{value(){return `${this.name} [${e}]: ${this.message}`},enumerable:!1,writable:!0,configurable:!0}}),qz(i),i.code=e,i}}function rg(){try{if(SF__default.default.startupSnapshot.isBuildingSnapshot())return !1}catch{}let n=Object.getOwnPropertyDescriptor(Error,"stackTraceLimit");return n===void 0?Object.isExtensible(Error):Bz.call(n,"writable")&&n.writable!==void 0?n.writable:n.set!==void 0}function Wz(n){let e=Uz+n.name;return Object.defineProperty(n,"name",{value:e}),n}function Hz(n,e,t){let r=XI.get(n);if(Qr__default.default(r!==void 0,"expected `message` to be found"),typeof r=="function")return Qr__default.default(r.length<=e.length,`Code: ${n}; The provided arguments length (${e.length}) does not match the required ones (${r.length}).`),Reflect.apply(r,t,e);let s=/%[dfijoOs]/g,i=0;for(;s.exec(r)!==null;)i++;return Qr__default.default(i===e.length,`Code: ${n}; The provided arguments length (${e.length}) does not match the required ones (${i}).`),e.length===0?r:(e.unshift(r),Reflect.apply(Mn.format,null,e))}function zz(n){if(n==null)return String(n);if(typeof n=="function"&&n.name)return `function ${n.name}`;if(typeof n=="object")return n.constructor&&n.constructor.name?`an instance of ${n.constructor.name}`:`${Mn.inspect(n,{depth:-1})}`;let e=Mn.inspect(n,{colors:!1});return e.length>28&&(e=`${e.slice(0,25)}...`),`type ${typeof n} (${e})`}function Gz(){if(Jb)return bp;Jb=1;var n=1e3,e=n*60,t=e*60,r=t*24,s=r*365.25;bp=function(c,u){u=u||{};var f=typeof c;if(f==="string"&&c.length>0)return i(c);if(f==="number"&&isNaN(c)===!1)return u.long?a(c):o(c);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(c))};function i(c){if(c=String(c),!(c.length>100)){var u=/^((?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|years?|yrs?|y)?$/i.exec(c);if(u){var f=parseFloat(u[1]),h=(u[2]||"ms").toLowerCase();switch(h){case"years":case"year":case"yrs":case"yr":case"y":return f*s;case"days":case"day":case"d":return f*r;case"hours":case"hour":case"hrs":case"hr":case"h":return f*t;case"minutes":case"minute":case"mins":case"min":case"m":return f*e;case"seconds":case"second":case"secs":case"sec":case"s":return f*n;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return f;default:return}}}}function o(c){return c>=r?Math.round(c/r)+"d":c>=t?Math.round(c/t)+"h":c>=e?Math.round(c/e)+"m":c>=n?Math.round(c/n)+"s":c+"ms"}function a(c){return l(c,r,"day")||l(c,t,"hour")||l(c,e,"minute")||l(c,n,"second")||c+" ms"}function l(c,u,f){if(!(c<u))return c<u*1.5?Math.floor(c/u)+" "+f:Math.ceil(c/u)+" "+f+"s"}return bp}function ZI(){return Yb||(Yb=1,function(n,e){e=n.exports=s.debug=s.default=s,e.coerce=l,e.disable=o,e.enable=i,e.enabled=a,e.humanize=Gz(),e.names=[],e.skips=[],e.formatters={};var t;function r(c){var u=0,f;for(f in c)u=(u<<5)-u+c.charCodeAt(f),u|=0;return e.colors[Math.abs(u)%e.colors.length]}function s(c){function u(){if(u.enabled){var f=u,h=+new Date,m=h-(t||h);f.diff=m,f.prev=t,f.curr=h,t=h;for(var p=new Array(arguments.length),d=0;d<p.length;d++)p[d]=arguments[d];p[0]=e.coerce(p[0]),typeof p[0]!="string"&&p.unshift("%O");var g=0;p[0]=p[0].replace(/%([a-zA-Z%])/g,function(w,v){if(w==="%%")return w;g++;var A=e.formatters[v];if(typeof A=="function"){var E=p[g];w=A.call(f,E),p.splice(g,1),g--;}return w}),e.formatArgs.call(f,p);var y=u.log||e.log||console.log.bind(console);y.apply(f,p);}}return u.namespace=c,u.enabled=e.enabled(c),u.useColors=e.useColors(),u.color=r(c),typeof e.init=="function"&&e.init(u),u}function i(c){e.save(c),e.names=[],e.skips=[];for(var u=(typeof c=="string"?c:"").split(/[\s,]+/),f=u.length,h=0;h<f;h++)u[h]&&(c=u[h].replace(/\*/g,".*?"),c[0]==="-"?e.skips.push(new RegExp("^"+c.substr(1)+"$")):e.names.push(new RegExp("^"+c+"$")));}function o(){e.enable("");}function a(c){var u,f;for(u=0,f=e.skips.length;u<f;u++)if(e.skips[u].test(c))return !1;for(u=0,f=e.names.length;u<f;u++)if(e.names[u].test(c))return !0;return !1}function l(c){return c instanceof Error?c.stack||c.message:c}}(Kl,Kl.exports)),Kl.exports}function Kz(){return Xb||(Xb=1,function(n,e){e=n.exports=ZI(),e.log=s,e.formatArgs=r,e.save=i,e.load=o,e.useColors=t,e.storage=typeof chrome<"u"&&typeof chrome.storage<"u"?chrome.storage.local:a(),e.colors=["lightseagreen","forestgreen","goldenrod","dodgerblue","darkorchid","crimson"];function t(){return typeof window<"u"&&window.process&&window.process.type==="renderer"?!0:typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/)&&parseInt(RegExp.$1,10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}e.formatters.j=function(l){try{return JSON.stringify(l)}catch(c){return "[UnexpectedJSONParseError]: "+c.message}};function r(l){var c=this.useColors;if(l[0]=(c?"%c":"")+this.namespace+(c?" %c":" ")+l[0]+(c?"%c ":" ")+"+"+e.humanize(this.diff),!!c){var u="color: "+this.color;l.splice(1,0,u,"color: inherit");var f=0,h=0;l[0].replace(/%[a-zA-Z%]/g,function(m){m!=="%%"&&(f++,m==="%c"&&(h=f));}),l.splice(h,0,u);}}function s(){return typeof console=="object"&&console.log&&Function.prototype.apply.call(console.log,console,arguments)}function i(l){try{l==null?e.storage.removeItem("debug"):e.storage.debug=l;}catch{}}function o(){var l;try{l=e.storage.debug;}catch{}return !l&&typeof process<"u"&&"env"in process&&(l=process.env.DEBUG),l}e.enable(o());function a(){try{return window.localStorage}catch{}}}(Gl,Gl.exports)),Gl.exports}function Vz(){return Zb||(Zb=1,function(n,e){var t=Og__default.default,r=Mn__default.default;e=n.exports=ZI(),e.init=h,e.log=l,e.formatArgs=a,e.save=c,e.load=u,e.useColors=o,e.colors=[6,2,3,4,5,1],e.inspectOpts=Object.keys(process.env).filter(function(m){return /^debug_/i.test(m)}).reduce(function(m,p){var d=p.substring(6).toLowerCase().replace(/_([a-z])/g,function(y,w){return w.toUpperCase()}),g=process.env[p];return /^(yes|on|true|enabled)$/i.test(g)?g=!0:/^(no|off|false|disabled)$/i.test(g)?g=!1:g==="null"?g=null:g=Number(g),m[d]=g,m},{});var s=parseInt(process.env.DEBUG_FD,10)||2;s!==1&&s!==2&&r.deprecate(function(){},"except for stderr(2) and stdout(1), any other usage of DEBUG_FD is deprecated. Override debug.log if you want to use a different log function (https://git.io/debug_fd)")();var i=s===1?process.stdout:s===2?process.stderr:f(s);function o(){return "colors"in e.inspectOpts?!!e.inspectOpts.colors:t.isatty(s)}e.formatters.o=function(m){return this.inspectOpts.colors=this.useColors,r.inspect(m,this.inspectOpts).split(`
|
|
395
|
+
`).map(function(p){return p.trim()}).join(" ")},e.formatters.O=function(m){return this.inspectOpts.colors=this.useColors,r.inspect(m,this.inspectOpts)};function a(m){var p=this.namespace,d=this.useColors;if(d){var g=this.color,y=" \x1B[3"+g+";1m"+p+" \x1B[0m";m[0]=y+m[0].split(`
|
|
396
|
+
`).join(`
|
|
397
|
+
`+y),m.push("\x1B[3"+g+"m+"+e.humanize(this.diff)+"\x1B[0m");}else m[0]=new Date().toUTCString()+" "+p+" "+m[0];}function l(){return i.write(r.format.apply(r,arguments)+`
|
|
398
|
+
`)}function c(m){m==null?delete process.env.DEBUG:process.env.DEBUG=m;}function u(){return process.env.DEBUG}function f(m){var p,d=process.binding("tty_wrap");switch(d.guessHandleType(m)){case"TTY":p=new t.WriteStream(m),p._type="tty",p._handle&&p._handle.unref&&p._handle.unref();break;case"FILE":var g=Je__namespace.default;p=new g.SyncWriteStream(m,{autoClose:!1}),p._type="fs";break;case"PIPE":case"TCP":var y=gx__default.default;p=new y.Socket({fd:m,readable:!1,writable:!0}),p.readable=!1,p.read=null,p._type="pipe",p._handle&&p._handle.unref&&p._handle.unref();break;default:throw new Error("Implement me. Unknown stream file type!")}return p.fd=m,p._isStdio=!0,p}function h(m){m.inspectOpts={};for(var p=Object.keys(e.inspectOpts),d=0;d<p.length;d++)m.inspectOpts[p[d]]=e.inspectOpts[p[d]];}e.enable(u());}(Vl,Vl.exports)),Vl.exports}function eG(n){return String(n).replace(Xz,Zz).replace(Yz,encodeURI)}function rG(n){var e=""+n,t=tG.exec(e);if(!t)return e;var r,s="",i=0,o=0;for(i=t.index;i<e.length;i++){switch(e.charCodeAt(i)){case 34:r=""";break;case 38:r="&";break;case 39:r="'";break;case 60:r="<";break;case 62:r=">";break;default:continue}o!==i&&(s+=e.substring(o,i)),o=i+1,s+=r;}return o!==i?s+e.substring(o,i):s}function iG(n,e){if(!Array.isArray(n))throw new TypeError("arg must be an array of [ee, events...] arrays");for(var t=[],r=0;r<n.length;r++){var s=n[r];if(!Array.isArray(s)||s.length<2)throw new TypeError("each array member must be [ee, events...]");for(var i=s[0],o=1;o<s.length;o++){var a=s[o],l=oG(a,c);i.on(a,l),t.push({ee:i,event:a,fn:l});}}function c(){u(),e.apply(null,arguments);}function u(){for(var h,m=0;m<t.length;m++)h=t[m],h.ee.removeListener(h.event,h.fn);}function f(h){e=h;}return f.cancel=u,f}function oG(n,e){return function(r){for(var s=new Array(arguments.length),i=this,o=n==="error"?r:null,a=0;a<s.length;a++)s[a]=arguments[a];e(o,i,n,s);}}function lG(n,e){return tO(n)!==!1?(aG(e,null,n),n):(uG(n,e),n)}function tO(n){var e=n.socket;if(typeof n.finished=="boolean")return !!(n.finished||e&&!e.writable);if(typeof n.complete=="boolean")return !!(n.upgrade||!e||!e.readable||n.complete&&!n.readable)}function cG(n,e){var t,r,s=!1;function i(a){t.cancel(),r.cancel(),s=!0,e(a);}t=r=e0([[n,"end","finish"]],i);function o(a){n.removeListener("socket",o),!s&&t===r&&(r=e0([[a,"error","close"]],i));}if(n.socket){o(n.socket);return}n.on("socket",o),n.socket===void 0&&hG(n,o);}function uG(n,e){var t=n.__onFinished;(!t||!t.queue)&&(t=n.__onFinished=fG(n),cG(n,t)),t.queue.push(e);}function fG(n){function e(t){if(n.__onFinished===e&&(n.__onFinished=null),!!e.queue){var r=e.queue;e.queue=null;for(var s=0;s<r.length;s++)r[s](t,n);}}return e.queue=[],e}function hG(n,e){var t=n.assignSocket;typeof t=="function"&&(n.assignSocket=function(s){t.call(this,s),e(s);});}function rO(n){var e=n.url;if(e!==void 0){var t=n._parsedUrl;return iO(e,t)?t:(t=sO(e),t._raw=e,n._parsedUrl=t)}}function pG(n){var e=n.originalUrl;if(typeof e!="string")return rO(n);var t=n._parsedOriginalUrl;return iO(e,t)?t:(t=sO(e),t._raw=e,n._parsedOriginalUrl=t)}function sO(n){if(typeof n!="string"||n.charCodeAt(0)!==47)return t0(n);for(var e=n,t=null,r=null,s=1;s<n.length;s++)switch(n.charCodeAt(s)){case 63:r===null&&(e=n.substring(0,s),t=n.substring(s+1),r=n.substring(s));break;case 9:case 10:case 12:case 13:case 32:case 35:case 160:case 65279:return t0(n)}var i=eu!==void 0?new eu:{};return i.path=n,i.href=n,i.pathname=e,r!==null&&(i.query=t,i.search=r),i}function iO(n,e){return typeof e=="object"&&e!==null&&(eu===void 0||e instanceof eu)&&e._raw===n}function yG(n,e){var t=[];return Object.keys(e).forEach(function(s){var i=e[s],o=Number(s);n[o]=i,n[i]=o,n[i.toLowerCase()]=o,t.push(o);}),t}function yn(n){if(typeof n=="number"){if(!yn[n])throw new Error("invalid status code: "+n);return n}if(typeof n!="string")throw new TypeError("code must be a number or string");var e=parseInt(n,10);if(!isNaN(e)){if(!yn[e])throw new Error("invalid status code: "+e);return e}if(e=yn[n.toLowerCase()],!e)throw new Error('invalid status message: "'+n+'"');return e}function vG(n){for(var e=n.listeners("data"),t=0;t<e.length;t++)if(e[t].name==="ondata")return !0;return !1}function EG(n){if(!n)throw new TypeError("argument stream is required");if(typeof n.unpipe=="function"){n.unpipe();return}if(vG(n))for(var e,t=n.listeners("close"),r=0;r<t.length;r++)e=t[r],!(e.name!=="cleanup"&&e.name!=="onclose")&&e.call(n);}function RG(n){var e=SG(n).replace(CG,"<br>").replace(xG," ");return `<!DOCTYPE html>
|
|
399
|
+
<html lang="en">
|
|
400
|
+
<head>
|
|
401
|
+
<meta charset="utf-8">
|
|
402
|
+
<title>Error</title>
|
|
403
|
+
</head>
|
|
404
|
+
<body>
|
|
405
|
+
<pre>`+e+`</pre>
|
|
406
|
+
</body>
|
|
407
|
+
</html>
|
|
408
|
+
`}function $G(n,e,t){var r=t||{},s=r.env||process.env.NODE_ENV||"development",i=r.onerror;return function(o){var a,l,c;if(!o&&n0(e)){xp("cannot 404 after headers sent");return}if(o?(c=NG(o),c===void 0?c=MG(e):a=TG(o),l=PG(o,c,s)):(c=404,l="Cannot "+n.method+" "+AG(LG(n))),xp("default %s",c),o&&i&&IG(i,o,n,e),n0(e)){xp("cannot %d after headers sent",c),n.socket.destroy();return}DG(n,e,c,a,l);}}function TG(n){if(!(!n.headers||typeof n.headers!="object")){for(var e=Object.create(null),t=Object.keys(n.headers),r=0;r<t.length;r++){var s=t[r];e[s]=n.headers[s];}return e}}function PG(n,e,t){var r;return t!=="production"&&(r=n.stack,!r&&typeof n.toString=="function"&&(r=n.toString())),r||cO[e]}function NG(n){if(typeof n.status=="number"&&n.status>=400&&n.status<600)return n.status;if(typeof n.statusCode=="number"&&n.statusCode>=400&&n.statusCode<600)return n.statusCode}function LG(n){try{return _G.original(n).pathname}catch{return "resource"}}function MG(n){var e=n.statusCode;return (typeof e!="number"||e<400||e>599)&&(e=500),e}function n0(n){return typeof n.headersSent!="boolean"?!!n._header:n.headersSent}function DG(n,e,t,r,s){function i(){var o=RG(s);if(e.statusCode=t,e.statusMessage=cO[t],BG(e,r),e.setHeader("Content-Security-Policy","default-src 'none'"),e.setHeader("X-Content-Type-Options","nosniff"),e.setHeader("Content-Type","text/html; charset=utf-8"),e.setHeader("Content-Length",Buffer.byteLength(o,"utf8")),n.method==="HEAD"){e.end();return}e.end(o,"utf8");}if(OG(n)){i();return}bG(n),lO(n,i),n.resume();}function BG(n,e){if(e)for(var t=Object.keys(e),r=0;r<t.length;r++){var s=t[r];n.setHeader(s,e[s]);}}function QG(n,e,t,r,s,i){var o=n.length,a=t,l=!!t;fO("%s %s : %s",n.name||"<anonymous>",e,r.originalUrl);try{if(l&&o===4){n(t,r,s,i);return}else if(!l&&o<4){n(r,s,i);return}}catch(c){a=c;}i(a);}function WG(n){dO!=="test"&&console.error(n.stack||n.toString());}function qG(n){if(!(n.length===0||n[0]==="/")){var e=n.indexOf("://");return e!==-1&&n.lastIndexOf("?",e)===-1?n.substr(0,n.indexOf("/",3+e)):void 0}}function GG(n){if(n==null)throw new TypeError("Object.assign cannot be called with null or undefined");return Object(n)}function KG(){try{if(!Object.assign)return !1;var n=new String("abc");if(n[5]="de",Object.getOwnPropertyNames(n)[0]==="5")return !1;for(var e={},t=0;t<10;t++)e["_"+String.fromCharCode(t)]=t;var r=Object.getOwnPropertyNames(e).map(function(i){return e[i]});if(r.join("")!=="0123456789")return !1;var s={};return "abcdefghijklmnopqrst".split("").forEach(function(i){s[i]=i;}),Object.keys(Object.assign({},s)).join("")==="abcdefghijklmnopqrst"}catch{return !1}}function mO(n,e){if(typeof n!="string")throw new TypeError("header argument is required");if(!e)throw new TypeError("field argument is required");for(var t=Array.isArray(e)?e:s0(String(e)),r=0;r<t.length;r++)if(!JG.test(t[r]))throw new TypeError("field argument contains an invalid header name");if(n==="*")return n;var s=n,i=s0(n.toLowerCase());if(t.indexOf("*")!==-1||i.indexOf("*")!==-1)return "*";for(var o=0;o<t.length;o++){var a=t[o].toLowerCase();i.indexOf(a)===-1&&(i.push(a),s=s?s+", "+t[o]:t[o]);}return s}function s0(n){for(var e=0,t=[],r=0,s=0,i=n.length;s<i;s++)switch(n.charCodeAt(s)){case 32:r===e&&(r=e=s+1);break;case 44:t.push(n.substring(r,e)),r=e=s+1;break;default:e=s+1;break}return t.push(n.substring(r,e)),t}function YG(n,e){if(!n||!n.getHeader||!n.setHeader)throw new TypeError("res argument is required");var t=n.getHeader("Vary")||"",r=Array.isArray(t)?t.join(", "):String(t);(t=mO(r,e))&&n.setHeader("Vary",t);}function f0(n,e,t,r,s){let i=(o,a)=>{t(n),s(o,a,{watchedPath:n}),a&&n!==a&&mc(He.resolve(n,a),ti,He.join(n,a));};try{return Tn.watch(n,e,i)}catch(o){r(o);}}function cK(n,e,t,r){let s=ze.extname(e)?ze.dirname(e):e,i=ze.dirname(s),o=Fr.get(s);uK(i)&&(s=i);let a=ze.resolve(n),l=a!==e,c=(f,h,m)=>{l&&(f=f.replace(e,a)),(f===a||!f.indexOf(a+ze.sep))&&t(f,h,m);},u=!1;for(let f of Fr.keys())if(e.indexOf(ze.resolve(f)+ze.sep)===0){s=f,o=Fr.get(s),u=!0;break}return o||u?o.listeners.add(c):(o={listeners:new Set([c]),rawEmitter:r,watcher:lK(s,(f,h)=>{if(!o.listeners.size||h&X4)return;let m=hi.getInfo(f,h);o.listeners.forEach(p=>{p(f,h,m);}),o.rawEmitter(m.event,f,m);})},Fr.set(s,o)),()=>{let f=o.listeners;if(f.delete(c),!f.size&&(Fr.delete(s),o.watcher))return o.watcher.stop().then(()=>{o.rawEmitter=o.watcher=void 0,Object.freeze(o);})}}function YK(n,e){for(var t=e.lastIndex,r=[],s;s=e.exec(n);)r.push(s),e.lastIndex===s.index&&(e.lastIndex+=1);return e.lastIndex=t,r}function XK(n,e,t){var r=typeof n=="function"?n(t):n[t];return typeof r>"u"&&t!=""?r="":typeof r>"u"&&(r="$"),typeof r=="object"?e+qr+JSON.stringify(r)+qr:e+r}function ZK(n,e,t){t||(t={});var r=t.escape||"\\",s="(\\"+r+`['"`+b0+`]|[^\\s'"`+b0+"])+",i=new RegExp(["("+kO+")","("+s+"|"+zK+"|"+GK+")+"].join("|"),"g"),o=YK(n,i);if(o.length===0)return [];e||(e={});var a=!1;return o.map(function(l){var c=l[0];if(!c||a)return;if(_0.test(c))return {op:c};var u=!1,f=!1,h="",m=!1,p;function d(){p+=1;var w,v,A=c.charAt(p);if(A==="{"){if(p+=1,c.charAt(p)==="}")throw new Error("Bad substitution: "+c.slice(p-2,p+1));if(w=c.indexOf("}",p),w<0)throw new Error("Bad substitution: "+c.slice(p));v=c.slice(p,w),p=w;}else if(/[*@#?$!_-]/.test(A))v=A,p+=1;else {var E=c.slice(p);w=E.match(/[^\w\d_]/),w?(v=E.slice(0,w.index),p+=w.index-1):(v=E,p=c.length);}return XK(e,"",v)}for(p=0;p<c.length;p++){var g=c.charAt(p);if(m=m||!u&&(g==="*"||g==="?"),f)h+=g,f=!1;else if(u)g===u?u=!1:u==x0?h+=g:g===r?(p+=1,g=c.charAt(p),g===C0||g===r||g===Bp?h+=g:h+=r+g):g===Bp?h+=d():h+=g;else if(g===C0||g===x0)u=g;else {if(_0.test(g))return {op:c};if(KK.test(g)){a=!0;var y={comment:n.slice(l.index+p+1)};return h.length?[h,y]:[y]}else g===r?f=!0:g===Bp?h+=d():h+=g;}}return m?{op:"glob",pattern:h}:h}).reduce(function(l,c){return typeof c>"u"?l:l.concat(c)},[])}function $O(n,e){if(Bg(n)?.isFile())return TO(n,e)}function tV(n,e,t){for(let r of e){let s=$O(n+r,t);if(s)return s}}function nV(n,e){let t=Bg(n);if(t?.isFile())return {path:TO(n,e),type:"file"};if(t?.isDirectory())return {type:"directory"}}function TO(n,e){return e||(n=Oo(n)),or(n)}function rV(n){return Bg(n)?.isDirectory()??!1}function cV(){try{return PO.statSync("/.dockerenv"),!0}catch{return !1}}function uV(){try{return PO.readFileSync("/proc/self/cgroup","utf8").includes("docker")}catch{return !1}}function vV(){return Up===void 0&&(Up=wV()||yV()),Up}function T0(n){if(typeof n=="string"||Array.isArray(n))return n;let{[k0]:e}=n;if(!e)throw new Error(`${k0} is not supported`);return e}function Dy({[Js]:n},{wsl:e}){if(e&&gc)return T0(e);if(!n)throw new Error(`${Js} is not supported`);return T0(n)}function SV(){if(P0)return Qp;P0=1,Qp=r,r.sync=s;var n=Je__namespace.default;function e(i,o){var a=o.pathExt!==void 0?o.pathExt:process.env.PATHEXT;if(!a||(a=a.split(";"),a.indexOf("")!==-1))return !0;for(var l=0;l<a.length;l++){var c=a[l].toLowerCase();if(c&&i.substr(-c.length).toLowerCase()===c)return !0}return !1}function t(i,o,a){return !i.isSymbolicLink()&&!i.isFile()?!1:e(o,a)}function r(i,o,a){n.stat(i,function(l,c){a(l,l?!1:t(c,i,o));});}function s(i,o){return t(n.statSync(i),i,o)}return Qp}function _V(){if(N0)return Wp;N0=1,Wp=e,e.sync=t;var n=Je__namespace.default;function e(i,o,a){n.stat(i,function(l,c){a(l,l?!1:r(c,o));});}function t(i,o){return r(n.statSync(i),o)}function r(i,o){return i.isFile()&&s(i,o)}function s(i,o){var a=i.mode,l=i.uid,c=i.gid,u=o.uid!==void 0?o.uid:process.getuid&&process.getuid(),f=o.gid!==void 0?o.gid:process.getgid&&process.getgid(),h=parseInt("100",8),m=parseInt("010",8),p=parseInt("001",8),d=h|m,g=a&p||a&m&&c===f||a&h&&l===u||a&d&&u===0;return g}return Wp}function By(n,e,t){if(typeof e=="function"&&(t=e,e={}),!t){if(typeof Promise!="function")throw new TypeError("callback not provided");return new Promise(function(r,s){By(n,e||{},function(i,o){i?s(i):r(o);});})}ou(n,e||{},function(r,s){r&&(r.code==="EACCES"||e&&e.ignoreErrors)&&(r=null,s=!1),t(r,s);});}function xV(n,e){try{return ou.sync(n,e||{})}catch(t){if(e&&e.ignoreErrors||t.code==="EACCES")return !1;throw t}}function M0(n,e){let t=n.options.env||process.env,r=process.cwd(),s=n.options.cwd!=null,i=s&&process.chdir!==void 0&&!process.chdir.disabled;if(i)try{process.chdir(n.options.cwd);}catch{}let o;try{o=kV.sync(n.command,{path:t[$V({env:t})],pathExt:e?L0.delimiter:void 0});}catch{}finally{i&&process.chdir(r);}return o&&(o=L0.resolve(s?n.options.cwd:"",o)),o}function TV(n){return M0(n)||M0(n,!0)}function NV(n){return n=n.replace(yg,"^$1"),n}function LV(n,e){return n=`${n}`,n=n.replace(/(\\*)"/g,'$1$1\\"'),n=n.replace(/(\\*)$/,"$1$1"),n=`"${n}"`,n=n.replace(yg,"^$1"),e&&(n=n.replace(yg,"^$1")),n}function jV(n){let t=Buffer.alloc(150),r;try{r=qp.openSync(n,"r"),qp.readSync(r,t,0,150,0),qp.closeSync(r);}catch{}return FV(t.toString())}function GV(n){n.file=D0(n);let e=n.file&&WV(n.file);return e?(n.args.unshift(n.file),n.command=e,D0(n)):n.file}function KV(n){if(!qV)return n;let e=GV(n),t=!HV.test(e);if(n.options.forceShell||t){let r=zV.test(e);n.command=QV.normalize(n.command),n.command=B0.command(n.command),n.args=n.args.map(i=>B0.argument(i,r));let s=[n.command].concat(n.args).join(" ");n.args=["/d","/s","/c",`"${s}"`],n.command=process.env.comspec||"cmd.exe",n.options.windowsVerbatimArguments=!0;}return n}function VV(n,e,t){e&&!Array.isArray(e)&&(t=e,e=null),e=e?e.slice(0):[],t=Object.assign({},t);let r={command:n,args:e,options:t,file:void 0,original:{command:n,args:e}};return t.shell?r:KV(r)}function Qy(n,e){return Object.assign(new Error(`${e} ${n.command} ENOENT`),{code:"ENOENT",errno:"ENOENT",syscall:`${e} ${n.command}`,path:n.command,spawnargs:n.args})}function YV(n,e){if(!Uy)return;let t=n.emit;n.emit=function(r,s){if(r==="exit"){let i=WO(s,e);if(i)return t.call(n,"error",i)}return t.apply(n,arguments)};}function WO(n,e){return Uy&&n===1&&!e.file?Qy(e.original,"spawn"):null}function XV(n,e){return Uy&&n===1&&!e.file?Qy(e.original,"spawnSync"):null}function HO(n,e,t){let r=Wy(n,e,t),s=qO.spawn(r.command,r.args,r.options);return qy.hookChildProcess(s,r),s}function eJ(n,e,t){let r=Wy(n,e,t),s=qO.spawnSync(r.command,r.args,r.options);return s.error=s.error||qy.verifyENOENTSync(s.status,r),s}function nJ(n,e){if(n.length===0)return tJ;if(n.length===1)return n[0];let t=Buffer.allocUnsafe(e),r=0;for(let s=0;s<n.length;s++){let i=n[s];t.set(i,r),r+=i.length;}return r<e?new wg(t.buffer,t.byteOffset,r):t}function KO(n,e,t,r,s){for(let i=0;i<s;i++)t[r+i]=n[i]^e[i&3];}function VO(n,e){for(let t=0;t<n.length;t++)n[t]^=e[t&3];}function rJ(n){return n.length===n.buffer.byteLength?n.buffer:n.buffer.slice(n.byteOffset,n.byteOffset+n.length)}function vg(n){if(vg.readOnly=!0,Buffer.isBuffer(n))return n;let e;return n instanceof ArrayBuffer?e=new wg(n):ArrayBuffer.isView(n)?e=new wg(n.buffer,n.byteOffset,n.byteLength):(e=Buffer.from(n),vg.readOnly=!1),e}function uJ(n){this[Zn].push(n),this[Rn]+=n.length;}function YO(n){if(this[Rn]+=n.length,this[lu]._maxPayload<1||this[Rn]<=this[lu]._maxPayload){this[Zn].push(n);return}this[yc]=new RangeError("Max payload size exceeded"),this[yc].code="WS_ERR_UNSUPPORTED_MESSAGE_LENGTH",this[yc][JO]=1009,this.removeListener("data",YO),this.reset();}function fJ(n){this[lu]._inflate=null,n[JO]=1007,this[$o](n);}function pJ(n){return n>=1e3&&n<=1014&&n!==1004&&n!==1005&&n!==1006||n>=3e3&&n<=4999}function Eg(n){let e=n.length,t=0;for(;t<e;)if(!(n[t]&128))t++;else if((n[t]&224)===192){if(t+1===e||(n[t+1]&192)!==128||(n[t]&254)===192)return !1;t+=2;}else if((n[t]&240)===224){if(t+2>=e||(n[t+1]&192)!==128||(n[t+2]&192)!==128||n[t]===224&&(n[t+1]&224)===128||n[t]===237&&(n[t+1]&224)===160)return !1;t+=3;}else if((n[t]&248)===240){if(t+3>=e||(n[t+1]&192)!==128||(n[t+2]&192)!==128||(n[t+3]&192)!==128||n[t]===240&&(n[t+1]&240)===128||n[t]===244&&n[t+1]>143||n[t]>244)return !1;t+=4;}else return !1;return !0}function mJ(n){return hJ&&typeof n=="object"&&typeof n.arrayBuffer=="function"&&typeof n.type=="string"&&typeof n.stream=="function"&&(n[Symbol.toStringTag]==="Blob"||n[Symbol.toStringTag]==="File")}function Ag(n,e,t){typeof t=="function"&&t(e);for(let r=0;r<n._queue.length;r++){let s=n._queue[r],i=s[s.length-1];typeof i=="function"&&i(e);}}function LJ(n,e,t){Ag(n,e,t),n.onerror(e);}function nc(n,e,t){typeof n=="object"&&n.handleEvent?n.handleEvent.call(n,t):n.call(e,t);}function fn(n,e,t){n[e]===void 0?n[e]=[t]:n[e].push(t);}function BJ(n){let e=Object.create(null),t=Object.create(null),r=!1,s=!1,i=!1,o,a,l=-1,c=-1,u=-1,f=0;for(;f<n.length;f++)if(c=n.charCodeAt(f),o===void 0)if(u===-1&&Eo[c]===1)l===-1&&(l=f);else if(f!==0&&(c===32||c===9))u===-1&&l!==-1&&(u=f);else if(c===59||c===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${f}`);u===-1&&(u=f);let m=n.slice(l,u);c===44?(fn(e,m,t),t=Object.create(null)):o=m,l=u=-1;}else throw new SyntaxError(`Unexpected character at index ${f}`);else if(a===void 0)if(u===-1&&Eo[c]===1)l===-1&&(l=f);else if(c===32||c===9)u===-1&&l!==-1&&(u=f);else if(c===59||c===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${f}`);u===-1&&(u=f),fn(t,n.slice(l,u),!0),c===44&&(fn(e,o,t),t=Object.create(null),o=void 0),l=u=-1;}else if(c===61&&l!==-1&&u===-1)a=n.slice(l,f),l=u=-1;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(s){if(Eo[c]!==1)throw new SyntaxError(`Unexpected character at index ${f}`);l===-1?l=f:r||(r=!0),s=!1;}else if(i)if(Eo[c]===1)l===-1&&(l=f);else if(c===34&&l!==-1)i=!1,u=f;else if(c===92)s=!0;else throw new SyntaxError(`Unexpected character at index ${f}`);else if(c===34&&n.charCodeAt(f-1)===61)i=!0;else if(u===-1&&Eo[c]===1)l===-1&&(l=f);else if(l!==-1&&(c===32||c===9))u===-1&&(u=f);else if(c===59||c===44){if(l===-1)throw new SyntaxError(`Unexpected character at index ${f}`);u===-1&&(u=f);let m=n.slice(l,u);r&&(m=m.replace(/\\/g,""),r=!1),fn(t,a,m),c===44&&(fn(e,o,t),t=Object.create(null),o=void 0),a=void 0,l=u=-1;}else throw new SyntaxError(`Unexpected character at index ${f}`);if(l===-1||i||c===32||c===9)throw new SyntaxError("Unexpected end of input");u===-1&&(u=f);let h=n.slice(l,u);return o===void 0?fn(e,h,t):(a===void 0?fn(t,h,!0):r?fn(t,a,h.replace(/\\/g,"")):fn(t,a,h),fn(e,o,t)),e}function FJ(n){return Object.keys(n).map(e=>{let t=n[e];return Array.isArray(t)||(t=[t]),t.map(r=>[e].concat(Object.keys(r).map(s=>{let i=r[s];return Array.isArray(i)||(i=[i]),i.map(o=>o===!0?s:`${s}=${o}`).join("; ")})).join("; ")).join(", ")}).join(", ")}function n1(n,e,t,r){let s={allowSynchronousEvents:!0,autoPong:!0,protocolVersion:Xp[1],maxPayload:104857600,skipUTF8Validation:!1,perMessageDeflate:!0,followRedirects:!1,maxRedirects:10,...r,socketPath:void 0,hostname:void 0,protocol:void 0,timeout:void 0,method:"GET",host:void 0,path:void 0,port:void 0};if(n._autoPong=s.autoPong,!Xp.includes(s.protocolVersion))throw new RangeError(`Unsupported protocol version: ${s.protocolVersion} (supported versions: ${Xp.join(", ")})`);let i;if(e instanceof Jp)i=e;else try{i=new Jp(e);}catch{throw new SyntaxError(`Invalid URL: ${e}`)}i.protocol==="http:"?i.protocol="ws:":i.protocol==="https:"&&(i.protocol="wss:"),n._url=i.href;let o=i.protocol==="wss:",a=i.protocol==="ws+unix:",l;if(i.protocol!=="ws:"&&!o&&!a?l=`The URL's protocol must be one of "ws:", "wss:", "http:", "https", or "ws+unix:"`:a&&!i.pathname?l="The URL's pathname is empty":i.hash&&(l="The URL contains a fragment identifier"),l){let d=new SyntaxError(l);if(n._redirects===0)throw d;vc(n,d);return}let c=o?443:80,u=qJ(16).toString("base64"),f=o?UJ.request:QJ.request,h=new Set,m;if(s.createConnection=s.createConnection||(o?aY:oY),s.defaultPort=s.defaultPort||c,s.port=i.port||c,s.host=i.hostname.startsWith("[")?i.hostname.slice(1,-1):i.hostname,s.headers={...s.headers,"Sec-WebSocket-Version":s.protocolVersion,"Sec-WebSocket-Key":u,Connection:"Upgrade",Upgrade:"websocket"},s.path=i.pathname+i.search,s.timeout=s.handshakeTimeout,s.perMessageDeflate&&(m=new er(s.perMessageDeflate!==!0?s.perMessageDeflate:{},!1,s.maxPayload),s.headers["Sec-WebSocket-Extensions"]=eY({[er.extensionName]:m.offer()})),t.length){for(let d of t){if(typeof d!="string"||!sY.test(d)||h.has(d))throw new SyntaxError("An invalid or duplicated subprotocol was specified");h.add(d);}s.headers["Sec-WebSocket-Protocol"]=t.join(",");}if(s.origin&&(s.protocolVersion<13?s.headers["Sec-WebSocket-Origin"]=s.origin:s.headers.Origin=s.origin),(i.username||i.password)&&(s.auth=`${i.username}:${i.password}`),a){let d=s.path.split(":");s.socketPath=d[0],s.path=d[1];}let p;if(s.followRedirects){if(n._redirects===0){n._originalIpc=a,n._originalSecure=o,n._originalHostOrSocketPath=a?s.socketPath:i.host;let d=r&&r.headers;if(r={...r,headers:{}},d)for(let[g,y]of Object.entries(d))r.headers[g.toLowerCase()]=y;}else if(n.listenerCount("redirect")===0){let d=a?n._originalIpc?s.socketPath===n._originalHostOrSocketPath:!1:n._originalIpc?!1:i.host===n._originalHostOrSocketPath;(!d||n._originalSecure&&!o)&&(delete s.headers.authorization,delete s.headers.cookie,d||delete s.headers.host,s.auth=void 0);}s.auth&&!r.headers.authorization&&(r.headers.authorization="Basic "+Buffer.from(s.auth).toString("base64")),p=n._req=f(s),n._redirects&&n.emit("redirect",n.url,p);}else p=n._req=f(s);s.timeout&&p.on("timeout",()=>{xt(n,p,"Opening handshake has timed out");}),p.on("error",d=>{p===null||p[t1]||(p=n._req=null,vc(n,d));}),p.on("response",d=>{let g=d.headers.location,y=d.statusCode;if(g&&s.followRedirects&&y>=300&&y<400){if(++n._redirects>s.maxRedirects){xt(n,p,"Maximum redirects exceeded");return}p.abort();let w;try{w=new Jp(g,e);}catch{let A=new SyntaxError(`Invalid URL: ${g}`);vc(n,A);return}n1(n,w,t,r);}else n.emit("unexpected-response",p,d)||xt(n,p,`Unexpected server response: ${d.statusCode}`);}),p.on("upgrade",(d,g,y)=>{if(n.emit("upgrade",d),n.readyState!==Te.CONNECTING)return;p=n._req=null;let w=d.headers.upgrade;if(w===void 0||w.toLowerCase()!=="websocket"){xt(n,g,"Invalid Upgrade header");return}let v=HJ("sha1").update(u+VJ).digest("base64");if(d.headers["sec-websocket-accept"]!==v){xt(n,g,"Invalid Sec-WebSocket-Accept header");return}let A=d.headers["sec-websocket-protocol"],E;if(A!==void 0?h.size?h.has(A)||(E="Server sent an invalid subprotocol"):E="Server sent a subprotocol but none was requested":h.size&&(E="Server sent no subprotocol"),E){xt(n,g,E);return}A&&(n._protocol=A);let S=d.headers["sec-websocket-extensions"];if(S!==void 0){if(!m){xt(n,g,"Server sent a Sec-WebSocket-Extensions header but no extension was requested");return}let C;try{C=tY(S);}catch{xt(n,g,"Invalid Sec-WebSocket-Extensions header");return}let _=Object.keys(C);if(_.length!==1||_[0]!==er.extensionName){xt(n,g,"Server indicated an extension that was not requested");return}try{m.accept(C[er.extensionName]);}catch{xt(n,g,"Invalid Sec-WebSocket-Extensions header");return}n._extensions[er.extensionName]=m;}n.setSocket(g,y,{allowSynchronousEvents:s.allowSynchronousEvents,generateMask:s.generateMask,maxPayload:s.maxPayload,skipUTF8Validation:s.skipUTF8Validation});}),s.finishRequest?s.finishRequest(p,n):p.end();}function vc(n,e){n._readyState=Te.CLOSING,n._errorEmitted=!0,n.emit("error",e),n.emitClose();}function oY(n){return n.path=n.socketPath,ZO.connect(n)}function aY(n){return n.path=void 0,!n.servername&&n.servername!==""&&(n.servername=ZO.isIP(n.host)?"":n.host),WJ.connect(n)}function xt(n,e,t){n._readyState=Te.CLOSING;let r=new Error(t);Error.captureStackTrace(r,xt),e.setHeader?(e[t1]=!0,e.abort(),e.socket&&!e.socket.destroyed&&e.socket.destroy(),process.nextTick(vc,n,r)):(e.destroy(r),e.once("error",n.emit.bind(n,"error")),e.once("close",n.emitClose.bind(n)));}function Zp(n,e,t){if(e){let r=KJ(e)?e.size:nY(e).length;n._socket?n._sender._bufferedBytes+=r:n._bufferedAmount+=r;}if(t){let r=new Error(`WebSocket is not open: readyState ${n.readyState} (${Dn[n.readyState]})`);process.nextTick(t,r);}}function lY(n,e){let t=this[Ge];t._closeFrameReceived=!0,t._closeMessage=e,t._closeCode=n,t._socket[Ge]!==void 0&&(t._socket.removeListener("data",zu),process.nextTick(r1,t._socket),n===1005?t.close():t.close(n,e));}function cY(){let n=this[Ge];n.isPaused||n._socket.resume();}function uY(n){let e=this[Ge];e._socket[Ge]!==void 0&&(e._socket.removeListener("data",zu),process.nextTick(r1,e._socket),e.close(n[YJ])),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",n));}function sx(){this[Ge].emitClose();}function fY(n,e){this[Ge].emit("message",n,e);}function hY(n){let e=this[Ge];e._autoPong&&e.pong(n,!this._isServer,e1),e.emit("ping",n);}function dY(n){this[Ge].emit("pong",n);}function r1(n){n.resume();}function pY(n){let e=this[Ge];e.readyState!==Te.CLOSED&&(e.readyState===Te.OPEN&&(e._readyState=Te.CLOSING,s1(e)),this._socket.end(),e._errorEmitted||(e._errorEmitted=!0,e.emit("error",n)));}function s1(n){n._closeTimer=setTimeout(n._socket.destroy.bind(n._socket),rY);}function i1(){let n=this[Ge];this.removeListener("close",i1),this.removeListener("data",zu),this.removeListener("end",o1),n._readyState=Te.CLOSING;let e;!this._readableState.endEmitted&&!n._closeFrameReceived&&!n._receiver._writableState.errorEmitted&&(e=n._socket.read())!==null&&n._receiver.write(e),n._receiver.end(),this[Ge]=void 0,clearTimeout(n._closeTimer),n._receiver._writableState.finished||n._receiver._writableState.errorEmitted?n.emitClose():(n._receiver.on("error",sx),n._receiver.on("finish",sx));}function zu(n){this[Ge]._receiver.write(n)||this.pause();}function o1(){let n=this[Ge];n._readyState=Te.CLOSING,n._receiver.end(),this.end();}function a1(){let n=this[Ge];this.removeListener("error",a1),this.on("error",e1),n&&(n._readyState=Te.CLOSING,this.destroy());}function gY(n){let e=new Set,t=-1,r=-1,s=0;for(s;s<n.length;s++){let o=n.charCodeAt(s);if(r===-1&&mY[o]===1)t===-1&&(t=s);else if(s!==0&&(o===32||o===9))r===-1&&t!==-1&&(r=s);else if(o===44){if(t===-1)throw new SyntaxError(`Unexpected character at index ${s}`);r===-1&&(r=s);let a=n.slice(t,r);if(e.has(a))throw new SyntaxError(`The "${a}" subprotocol is duplicated`);e.add(a),t=r=-1;}else throw new SyntaxError(`Unexpected character at index ${s}`)}if(t===-1||r!==-1)throw new SyntaxError("Unexpected end of input");let i=n.slice(t,s);if(e.has(i))throw new SyntaxError(`The "${i}" subprotocol is duplicated`);return e.add(i),e}function CY(n,e){for(let t of Object.keys(e))n.on(t,e[t]);return function(){for(let r of Object.keys(e))n.removeListener(r,e[r]);}}function Ao(n){n._state=l1,n.emit("close");}function lx(){this.destroy();}function To(n,e,t,r){t=t||uu.STATUS_CODES[e],r={Connection:"close","Content-Type":"text/html","Content-Length":Buffer.byteLength(t),...r},n.once("finish",n.destroy),n.end(`HTTP/1.1 ${e} ${uu.STATUS_CODES[e]}\r
|
|
409
|
+
`+Object.keys(r).map(s=>`${s}: ${r[s]}`).join(`\r
|
|
410
|
+
`)+`\r
|
|
411
|
+
\r
|
|
412
|
+
`+t);}function Mr(n,e,t,r,s){if(n.listenerCount("wsClientError")){let i=new Error(s);Error.captureStackTrace(i,Mr),n.emit("wsClientError",i,t,e);}else To(t,r,s);}function gt(n,e){zy.call(this),this._sanitizeOptions(n),this._options=n,this._ended=!1,this._ending=!1,this._redirectCount=0,this._redirects=[],this._requestBodyLength=0,this._requestBodyBuffers=[],e&&this.on("response",e);var t=this;this._onNativeResponse=function(r){try{t._processResponse(r);}catch(s){t.emit("error",s instanceof bg?s:new bg({cause:s}));}},this._performRequest();}function h1(n){var e={maxRedirects:21,maxBodyLength:10485760},t={};return Object.keys(n).forEach(function(r){var s=r+":",i=t[s]=n[r],o=e[r]=Object.create(i);function a(c,u,f){return WY(c)?c=xg(c):Hr(c)?c=xg(Yy(c)):(f=u,u=p1(c),c={protocol:s}),Zo(u)&&(f=u,u=null),u=Object.assign({maxRedirects:e.maxRedirects,maxBodyLength:e.maxBodyLength},c,u),u.nativeProtocols=t,!Hr(u.host)&&!Hr(u.hostname)&&(u.hostname="::1"),Gy.equal(u.protocol,s,"protocol mismatch"),f1("options",u),new gt(u,f)}function l(c,u,f){var h=o.request(c,u,f);return h.end(),h}Object.defineProperties(o,{request:{value:a,configurable:!0,enumerable:!0,writable:!0},get:{value:l,configurable:!0,enumerable:!0,writable:!0}});}),e}function d1(){}function Yy(n){var e;if(Ky)e=new Xo(n);else if(e=p1(ga.parse(n)),!Hr(e.protocol))throw new _g({input:n});return e}function jY(n,e){return Ky?new Xo(n,e):Yy(ga.resolve(e,n))}function p1(n){if(/^\[/.test(n.hostname)&&!/^\[[:0-9a-f]+\]$/i.test(n.hostname))throw new _g({input:n.href||n});if(/^\[/.test(n.host)&&!/^\[[:0-9a-f]+\](:\d+)?$/i.test(n.host))throw new _g({input:n.href||n});return n}function xg(n,e){var t=e||{};for(var r of LY)t[r]=n[r];return t.hostname.startsWith("[")&&(t.hostname=t.hostname.slice(1,-1)),t.port!==""&&(t.port=Number(t.port)),t.path=t.search?t.pathname+t.search:t.pathname,t}function em(n,e){var t;for(var r in e)n.test(r)&&(t=e[r],delete e[r]);return t===null||typeof t>"u"?void 0:String(t).trim()}function ya(n,e,t){function r(s){Error.captureStackTrace(this,this.constructor),Object.assign(this,s||{}),this.code=n,this.message=this.cause?e+": "+this.cause.message:e;}return r.prototype=new(t||Error),Object.defineProperties(r.prototype,{constructor:{value:r,enumerable:!1},name:{value:"Error ["+n+"]",enumerable:!1}}),r}function Xy(n,e){for(var t of Vy)n.removeListener(t,Jy[t]);n.on("error",d1),n.destroy(e);}function UY(n,e){Gy(Hr(n)&&Hr(e));var t=n.length-e.length-1;return t>0&&n[t]==="."&&n.endsWith(e)}function Hr(n){return typeof n=="string"||n instanceof String}function Zo(n){return typeof n=="function"}function QY(n){return typeof n=="object"&&"length"in n}function WY(n){return Xo&&n instanceof Xo}function Zy(n){return new Ku(n)}function ni(n){return t6.test(n)?n.replace(r6,"\\\\").replace(n6,"\\$1"):n}var $F,sm,du,Ec,Ir,kg,C_,Rl,NF,LF,MF,wx,DF,qd,BF,Ex,FF,UF,na,WF,hn,I_,kn,qF,HF,pu,zF,Ax,$g,Sx,Tg,GF,KF,VF,JF,YF,XF,_x,ZF,ej,mu,O_,Hd,tj,_o,nj,zd,Gd,bx,Kd,Vd,rj,sj,R_,ij,k_,oj,$_,T_,aj,lj,Ac,Dt,Sc,cj,uj,fj,xx,hj,Ns,Pg,dj,pj,mj,im,Ng,gj,yj,Le,wj,Lg,vj,Ej,Aj,Sj,Ox,_j,Rx,kx,Mg,$x,Tx,$j,Tj,_c,Pj,ao,Nj,N_,Lj,qs,Mj,L_,Dj,kl,Bj,Fj,jj,Uj,Dg,M_,D_,bc,Nx,ht,Qj,Wj,qj,Hj,zj,Gj,Kj,Vj,Jj,Yj,Xj,Zj,eU,tU,nU,rU,sU,iU,Lx,Mx,Dx,B_,oU,ft,aU,lU,cU,uU,fU,Pt,hU,Bx,dU,pU,F_,mU,wn,Ls,Fx,om,jx,xc,j_,gU,Xn,Ux,Xs,am,Cc,U_,yU,wU,vU,In,On,Yn,$l,lo,Tl,Q_,Pl,W_,Xt,Ms,Qe,co,Qs,We,ut,qe,Yd,Nl,Ze,Ne,Xd,Zd,q_,ep,un,tp,Ll,uo,Rr,bt,fo,EU,AU,SU,_U,Ic,lm,bU,xU,ri,CU,xo,Qx,Wx,IU,OU,Ft,qx,Hx,dn,zx,Gx,Nr,Kx,Mt,ho,np,H_,Co,nn,Ml,ic,z_,RU,rp,G_,Io,K_,Dl,Oc,cm,Vx,et,Rc,kc,$c,Uo,Qo,Tc,kU,$U,TU,Pc,PU,Nc,um,fm,hm,Lc,NU,Mc,Dc,Bc,LU,Pn,MU,DU,BU,FU,jU,UU,J_,Y_,QU,WU,dm,Bl,sp,X_,ip,Z_,eb,Fl,tb,eC,GU,KU,VU,nb,XU,e2,t2,n2,r2,s2,Oo,pm,o2,rb,c2,u2,p2,g2,sC,y2,w2,ab,op,E2,tt,Ce,si,wu,vu,b2,Be,C2,I2,iC,O2,R2,k2,$2,T2,se,M2,D2,lC,B2,F2,cC,j2,U2,Q2,ap,W2,q2,H2,z2,uC,Eu,lb,Qg,G2,cb,Wr,tQ,nQ,fC,gb,rQ,cp,Po,up,sQ,iQ,Uc,oQ,hC,dC,pC,mC,aQ,lQ,cQ,oc,gC,uQ,yb,fQ,hQ,dQ,wb,Hs,Dr,pQ,mQ,gQ,yQ,vb,fp,wQ,vQ,EQ,AQ,SQ,_Q,bQ,Eb,Ab,xQ,CQ,IQ,OQ,RQ,kQ,Sb,$Q,TQ,PQ,Ct,yC,wC,vC,vn,gm,_b,EC,Ee,AC,LQ,MQ,Wg,SC,DQ,BQ,FQ,jQ,UQ,QQ,WQ,Su,iW,RC,oW,aW,cW,ii,dW,pW,mW,gW,yW,wW,vW,on,zg,Gg,Ut,Kg,_u,mn,tr,It,bu,xu,Vg,PC,_W,bW,Ib,xW,Em,Ob,OW,RW,kW,ra,Qc,NC,TW,LC,PW,NW,LW,sa,Cu,Sm,DW,ia,FW,MC,jW,DC,BC,nr,WW,qW,UC,QC,Jg,HC,zW,GW,KW,VW,Rb,JW,bm,Yg,eq,tq,sq,Qt,Iu,cq,uq,fq,hq,dq,jl,pq,Cm,mq,Im,Xg,wq,vq,Om,Zg,ey,Eq,Ul,Aq,Rm,Sq,km,ty,_q,bq,$m,kb,xq,Cq,Tm,oa,kq,$q,$b,Pm,Ou,Tq,Pq,Nq,Lq,Nm,Mq,Dq,Bq,Lm,aa,ny,ry,sy,po,Mm,Fq,Dm,Ql,jq,Bm,iy,kr,Fm,oy,Uq,jm,ay,Tb,Um,Qq,Wq,qq,Hq,zq,Qm,Gq,Kq,Wm,ly,Vq,Jq,Yq,qm,cy,uy,Xq,Zq,eH,Hm,tH,nH,zm,GC,KC,rH,sH,iH,Gm,Bt,la,sn,No,oH,Nb,Vm,ac,VC,dp,JC,ZC,fy,Jm,rr,eI,Nn,pi,qt,ar,es,ts,Ae,me,ns,lH,mt,tI,gn,cH,uH,sr,Wo,zr,lI,oe,hH,Ro,Vc,pH,jr,cI,Ym,cc,ku,$u,Zm,Mb,EH,Ve,nt,mi,an,gi,Tu,Pu,dy,pI,mI,gI,Nu,py,wI,vI,EI,bH,ql,xH,CH,IH,my,gy,Zs,yy,bI,xI,OH,RH,kH,fa,$H,TH,PH,NH,ei,vy,II,OI,Mu,Bb,Fb,jb,LH,MH,Ho,Gr,ai,pn,zo,Yc,Ub,gp,yp,KH,ZH,ci,o3,tg,a3,MI,Du,Bu,Fu,Ko,l3,c3,FI,Wb,f3,Hl,h3,Ep,Vo,Jo,ui,d3,p3,m3,g3,y3,HI,Ap,v3,E3,zb,A3,S3,_3,b3,x3,C3,Gb,I3,O3,R3,k3,$3,Sp,T3,P3,zI,lr,Z3,ez,tz,nz,rz,sz,iz,oz,az,lz,cz,uz,fz,hz,dz,pz,ng,_y,mz,gz,yz,by,wz,Fe,kz,$z,Tz,Pz,xy,VI,Nz,Lz,Bz,Fz,jz,XI,Uz,Vb,qz,sg,Gl,Kl,bp,Jb,Yb,Xb,Vl,Zb,eO,Jz,Yz,Xz,Zz,tG,nG,Cy,sG,e0,aG,dG,Iy,nO,t0,eu,oO,mG,aO,gG,wG,xp,AG,SG,lO,_G,cO,bG,xG,CG,IG,OG,kG,uO,fO,FG,hO,jG,dO,Oy,UG,pO,r0,HG,zG,VG,Ry,JG,XG,gO,da,ZG,go,Uu,Cp,e4,t4,i0,n4,r4,yO,s4,ig,wO,tu,hc,o0,i4,a0,o4,a4,l0,nu,fi,l4,c4,ky,vO,u4,EO,f4,c0,h4,d4,p4,u0,og,m4,g4,y4,w4,v4,E4,A4,Qu,Tn,He,pa,S4,_4,b4,x4,C4,ti,Ip,Mo,I4,dc,Jl,O4,AO,R4,k4,$4,T4,P4,N4,SO,L4,M4,Op,D4,ag,Do,B4,Bo,_O,pc,mc,F4,Rp,j4,U4,Q4,$y,Ty,ze,Py,hi,kp,W4,h0,Yl,q4,H4,z4,G4,K4,V4,J4,Y4,X4,Z4,ko,bO,d0,eK,p0,$p,tK,nK,rK,lg,sK,m0,iK,Fr,oK,aK,lK,uK,fK,Tp,g0,hK,dK,pK,Ny,pe,xO,mK,cg,gK,Pp,yK,wK,vK,y0,Np,EK,Xl,yo,w0,AK,SK,_K,Lp,bK,xK,CK,v0,IK,OK,RK,Mp,kK,$K,ug,CO,TK,PK,Dp,fg,Ly,NK,hg,LK,MK,DK,BK,FK,jK,dg,IO,E0,A0,OO,S0,UK,en,pg,QK,WK,mg,ru,qK,RO,HK,kO,_0,b0,zK,GK,KK,x0,C0,Bp,qr,VK,Fp,JK,eV,iV,aV,lV,gg,PO,jp,NO,fV,hV,I0,O0,dV,pV,mV,gV,su,LO,gc,yV,My,R0,Js,k0,wV,Up,EV,$0,iu,MO,AV,Wu,yi,Qp,P0,Wp,N0,ou,bV,Ws,DO,CV,BO,FO,jO,UO,IV,OV,Fy,QO,RV,L0,kV,$V,PV,jy,yg,MV,DV,BV,qp,FV,UV,QV,D0,B0,WV,qV,HV,zV,JV,Uy,ZV,qO,Wy,qy,au,zO,GO,cr,tJ,wg,qu,F0,Hp,sJ,iJ,wo,j0,oJ,JO,aJ,lJ,lu,Rn,$o,Zn,yc,Zl,cJ,Hu,cu,U0,hJ,dJ,ma,gJ,Q0,yJ,W0,wJ,vJ,zp,EJ,AJ,SJ,q0,ec,Nt,H0,z0,G0,Gp,Kp,tc,_J,bJ,xJ,K0,CJ,IJ,OJ,Fs,RJ,V0,$r,Lt,kJ,wc,Tr,js,tn,$J,TJ,PJ,NJ,vo,Vp,J0,Y0,X0,Z0,ex,Ys,tx,nx,rs,Vr,di,Yo,MJ,DJ,Eo,XO,jJ,UJ,QJ,ZO,WJ,qJ,HJ,Jp,er,zJ,GJ,KJ,rx,rc,VJ,Yp,JJ,YJ,Ge,e1,XJ,ZJ,eY,tY,nY,rY,t1,Xp,Dn,sY,Te,iY,mY,yY,wY,uu,vY,ix,Pr,EY,AY,SY,_Y,bY,ox,ax,l1,Sg,xY,IY,c1,u1,OY,Gu,RY,cx,ux,kY,$Y,Hy,So,TY,ga,Xo,PY,NY,zy,Gy,f1,Ky,LY,Vy,Jy,_g,bg,MY,DY,BY,FY,qY,HY,zY,Fo,sc,GY,KY,VY,JY,YY,Us,XY,ZY,Ku,t6,n6,r6,jo,tm,s6,fx,i6,Mi=Fn(()=>{ss(Mf());Qf();kf();$F=Jr.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('preset.cjs', document.baseURI).href))),sm=Oe.dirname($F),du=AF.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('preset.cjs', document.baseURI).href))),Ec=du,Ir=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};kg={exports:{}},C_=process.argv||[],Rl=process.env,NF=!("NO_COLOR"in Rl||C_.includes("--no-color"))&&("FORCE_COLOR"in Rl||C_.includes("--color")||process.platform==="win32"||PF!=null&&Og__default.default.isatty(1)&&Rl.TERM!=="dumb"||"CI"in Rl),LF=(n,e,t=n)=>r=>{let s=""+r,i=s.indexOf(e,n.length);return ~i?n+MF(s,e,t,i)+e:n+s+e},MF=(n,e,t,r)=>{let s="",i=0;do s+=n.substring(i,r)+t,i=r+e.length,r=n.indexOf(e,i);while(~r);return s+n.substring(i)},wx=(n=NF)=>{let e=n?LF:()=>String;return {isColorSupported:n,reset:e("\x1B[0m","\x1B[0m"),bold:e("\x1B[1m","\x1B[22m","\x1B[22m\x1B[1m"),dim:e("\x1B[2m","\x1B[22m","\x1B[22m\x1B[2m"),italic:e("\x1B[3m","\x1B[23m"),underline:e("\x1B[4m","\x1B[24m"),inverse:e("\x1B[7m","\x1B[27m"),hidden:e("\x1B[8m","\x1B[28m"),strikethrough:e("\x1B[9m","\x1B[29m"),black:e("\x1B[30m","\x1B[39m"),red:e("\x1B[31m","\x1B[39m"),green:e("\x1B[32m","\x1B[39m"),yellow:e("\x1B[33m","\x1B[39m"),blue:e("\x1B[34m","\x1B[39m"),magenta:e("\x1B[35m","\x1B[39m"),cyan:e("\x1B[36m","\x1B[39m"),white:e("\x1B[37m","\x1B[39m"),gray:e("\x1B[90m","\x1B[39m"),bgBlack:e("\x1B[40m","\x1B[49m"),bgRed:e("\x1B[41m","\x1B[49m"),bgGreen:e("\x1B[42m","\x1B[49m"),bgYellow:e("\x1B[43m","\x1B[49m"),bgBlue:e("\x1B[44m","\x1B[49m"),bgMagenta:e("\x1B[45m","\x1B[49m"),bgCyan:e("\x1B[46m","\x1B[49m"),bgWhite:e("\x1B[47m","\x1B[49m")}};kg.exports=wx();kg.exports.createColors=wx;DF=kg.exports,qd=bn(DF),BF="/@id/";Ex=typeof process<"u"&&process.platform==="win32",FF=/\\/g;UF=/[?#].*$/;na={},WF=Oe__default.default,hn="\\\\/",I_=`[^${hn}]`,kn="\\.",qF="\\+",HF="\\?",pu="\\/",zF="(?=.)",Ax="[^/]",$g=`(?:${pu}|$)`,Sx=`(?:^|${pu})`,Tg=`${kn}{1,2}${$g}`,GF=`(?!${kn})`,KF=`(?!${Sx}${Tg})`,VF=`(?!${kn}{0,1}${$g})`,JF=`(?!${Tg})`,YF=`[^.${pu}]`,XF=`${Ax}*?`,_x={DOT_LITERAL:kn,PLUS_LITERAL:qF,QMARK_LITERAL:HF,SLASH_LITERAL:pu,ONE_CHAR:zF,QMARK:Ax,END_ANCHOR:$g,DOTS_SLASH:Tg,NO_DOT:GF,NO_DOTS:KF,NO_DOT_SLASH:VF,NO_DOTS_SLASH:JF,QMARK_NO_DOT:YF,STAR:XF,START_ANCHOR:Sx},ZF={..._x,SLASH_LITERAL:`[${hn}]`,QMARK:I_,STAR:`${I_}*?`,DOTS_SLASH:`${kn}{1,2}(?:[${hn}]|$)`,NO_DOT:`(?!${kn})`,NO_DOTS:`(?!(?:^|[${hn}])${kn}{1,2}(?:[${hn}]|$))`,NO_DOT_SLASH:`(?!${kn}{0,1}(?:[${hn}]|$))`,NO_DOTS_SLASH:`(?!${kn}{1,2}(?:[${hn}]|$))`,QMARK_NO_DOT:`[^.${hn}]`,START_ANCHOR:`(?:^|[${hn}])`,END_ANCHOR:`(?:[${hn}]|$)`},ej={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"},mu={MAX_LENGTH:1024*64,POSIX_REGEX_SOURCE:ej,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:WF.sep,extglobChars(n){return {"!":{type:"negate",open:"(?:(?!(?:",close:`))${n.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}},globChars(n){return n===!0?ZF:_x}};(function(n){let e=Oe__default.default,t=process.platform==="win32",{REGEX_BACKSLASH:r,REGEX_REMOVE_BACKSLASH:s,REGEX_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_GLOBAL:o}=mu;n.isObject=a=>a!==null&&typeof a=="object"&&!Array.isArray(a),n.hasRegexChars=a=>i.test(a),n.isRegexChar=a=>a.length===1&&n.hasRegexChars(a),n.escapeRegex=a=>a.replace(o,"\\$1"),n.toPosixSlashes=a=>a.replace(r,"/"),n.removeBackslashes=a=>a.replace(s,l=>l==="\\"?"":l),n.supportsLookbehinds=()=>{let a=process.version.slice(1).split(".").map(Number);return a.length===3&&a[0]>=9||a[0]===8&&a[1]>=10},n.isWindows=a=>a&&typeof a.windows=="boolean"?a.windows:t===!0||e.sep==="\\",n.escapeLast=(a,l,c)=>{let u=a.lastIndexOf(l,c);return u===-1?a:a[u-1]==="\\"?n.escapeLast(a,l,u-1):`${a.slice(0,u)}\\${a.slice(u)}`},n.removePrefix=(a,l={})=>{let c=a;return c.startsWith("./")&&(c=c.slice(2),l.prefix="./"),c},n.wrapOutput=(a,l={},c={})=>{let u=c.contains?"":"^",f=c.contains?"":"$",h=`${u}(?:${a})${f}`;return l.negated===!0&&(h=`(?:^(?!${h}).*$)`),h};})(na);O_=na,{CHAR_ASTERISK:Hd,CHAR_AT:tj,CHAR_BACKWARD_SLASH:_o,CHAR_COMMA:nj,CHAR_DOT:zd,CHAR_EXCLAMATION_MARK:Gd,CHAR_FORWARD_SLASH:bx,CHAR_LEFT_CURLY_BRACE:Kd,CHAR_LEFT_PARENTHESES:Vd,CHAR_LEFT_SQUARE_BRACKET:rj,CHAR_PLUS:sj,CHAR_QUESTION_MARK:R_,CHAR_RIGHT_CURLY_BRACE:ij,CHAR_RIGHT_PARENTHESES:k_,CHAR_RIGHT_SQUARE_BRACKET:oj}=mu,$_=n=>n===bx||n===_o,T_=n=>{n.isPrefix!==!0&&(n.depth=n.isGlobstar?1/0:1);},aj=(n,e)=>{let t=e||{},r=n.length-1,s=t.parts===!0||t.scanToEnd===!0,i=[],o=[],a=[],l=n,c=-1,u=0,f=0,h=!1,m=!1,p=!1,d=!1,g=!1,y=!1,w=!1,v=!1,A=!1,E=!1,S=0,C,_,x={value:"",depth:0,isGlob:!1},$=()=>c>=r,b=()=>l.charCodeAt(c+1),T=()=>(C=_,l.charCodeAt(++c));for(;c<r;){_=T();let H;if(_===_o){w=x.backslashes=!0,_=T(),_===Kd&&(y=!0);continue}if(y===!0||_===Kd){for(S++;$()!==!0&&(_=T());){if(_===_o){w=x.backslashes=!0,T();continue}if(_===Kd){S++;continue}if(y!==!0&&_===zd&&(_=T())===zd){if(h=x.isBrace=!0,p=x.isGlob=!0,E=!0,s===!0)continue;break}if(y!==!0&&_===nj){if(h=x.isBrace=!0,p=x.isGlob=!0,E=!0,s===!0)continue;break}if(_===ij&&(S--,S===0)){y=!1,h=x.isBrace=!0,E=!0;break}}if(s===!0)continue;break}if(_===bx){if(i.push(c),o.push(x),x={value:"",depth:0,isGlob:!1},E===!0)continue;if(C===zd&&c===u+1){u+=2;continue}f=c+1;continue}if(t.noext!==!0&&(_===sj||_===tj||_===Hd||_===R_||_===Gd)===!0&&b()===Vd){if(p=x.isGlob=!0,d=x.isExtglob=!0,E=!0,_===Gd&&c===u&&(A=!0),s===!0){for(;$()!==!0&&(_=T());){if(_===_o){w=x.backslashes=!0,_=T();continue}if(_===k_){p=x.isGlob=!0,E=!0;break}}continue}break}if(_===Hd){if(C===Hd&&(g=x.isGlobstar=!0),p=x.isGlob=!0,E=!0,s===!0)continue;break}if(_===R_){if(p=x.isGlob=!0,E=!0,s===!0)continue;break}if(_===rj){for(;$()!==!0&&(H=T());){if(H===_o){w=x.backslashes=!0,T();continue}if(H===oj){m=x.isBracket=!0,p=x.isGlob=!0,E=!0;break}}if(s===!0)continue;break}if(t.nonegate!==!0&&_===Gd&&c===u){v=x.negated=!0,u++;continue}if(t.noparen!==!0&&_===Vd){if(p=x.isGlob=!0,s===!0){for(;$()!==!0&&(_=T());){if(_===Vd){w=x.backslashes=!0,_=T();continue}if(_===k_){E=!0;break}}continue}break}if(p===!0){if(E=!0,s===!0)continue;break}}t.noext===!0&&(d=!1,p=!1);let Q=l,V="",R="";u>0&&(V=l.slice(0,u),l=l.slice(u),f-=u),Q&&p===!0&&f>0?(Q=l.slice(0,f),R=l.slice(f)):p===!0?(Q="",R=l):Q=l,Q&&Q!==""&&Q!=="/"&&Q!==l&&$_(Q.charCodeAt(Q.length-1))&&(Q=Q.slice(0,-1)),t.unescape===!0&&(R&&(R=O_.removeBackslashes(R)),Q&&w===!0&&(Q=O_.removeBackslashes(Q)));let I={prefix:V,input:n,start:u,base:Q,glob:R,isBrace:h,isBracket:m,isGlob:p,isExtglob:d,isGlobstar:g,negated:v,negatedExtglob:A};if(t.tokens===!0&&(I.maxDepth=0,$_(_)||o.push(x),I.tokens=o),t.parts===!0||t.tokens===!0){let H;for(let q=0;q<i.length;q++){let X=H?H+1:u,G=i[q],D=n.slice(X,G);t.tokens&&(q===0&&u!==0?(o[q].isPrefix=!0,o[q].value=V):o[q].value=D,T_(o[q]),I.maxDepth+=o[q].depth),(q!==0||D!=="")&&a.push(D),H=G;}if(H&&H+1<n.length){let q=n.slice(H+1);a.push(q),t.tokens&&(o[o.length-1].value=q,T_(o[o.length-1]),I.maxDepth+=o[o.length-1].depth);}I.slashes=i,I.parts=a;}return I},lj=aj,Ac=mu,Dt=na,{MAX_LENGTH:Sc,POSIX_REGEX_SOURCE:cj,REGEX_NON_SPECIAL_CHARS:uj,REGEX_SPECIAL_CHARS_BACKREF:fj,REPLACEMENTS:xx}=Ac,hj=(n,e)=>typeof e.expandRange=="function"?e.expandRange(...n,e):(n.sort(),`[${n.join("-")}]`),Ns=(n,e)=>`Missing ${n}: "${e}" - use "\\\\${e}" to match literal characters`,Pg=(n,e)=>{if(typeof n!="string")throw new TypeError("Expected a string");n=xx[n]||n;let t={...e},r=typeof t.maxLength=="number"?Math.min(Sc,t.maxLength):Sc,s=n.length;if(s>r)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${r}`);let i={type:"bos",value:"",output:t.prepend||""},o=[i],a=t.capture?"":"?:",l=Dt.isWindows(e),c=Ac.globChars(l),u=Ac.extglobChars(c),{DOT_LITERAL:f,PLUS_LITERAL:h,SLASH_LITERAL:m,ONE_CHAR:p,DOTS_SLASH:d,NO_DOT:g,NO_DOT_SLASH:y,NO_DOTS_SLASH:w,QMARK:v,QMARK_NO_DOT:A,STAR:E,START_ANCHOR:S}=c,C=B=>`(${a}(?:(?!${S}${B.dot?d:f}).)*?)`,_=t.dot?"":g,x=t.dot?v:A,$=t.bash===!0?C(t):E;t.capture&&($=`(${$})`),typeof t.noext=="boolean"&&(t.noextglob=t.noext);let b={input:n,index:-1,start:0,dot:t.dot===!0,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:o};n=Dt.removePrefix(n,b),s=n.length;let T=[],Q=[],V=[],R=i,I,H=()=>b.index===s-1,q=b.peek=(B=1)=>n[b.index+B],X=b.advance=()=>n[++b.index]||"",G=()=>n.slice(b.index+1),D=(B="",K=0)=>{b.consumed+=B,b.index+=K;},U=B=>{b.output+=B.output!=null?B.output:B.value,D(B.value);},j=()=>{let B=1;for(;q()==="!"&&(q(2)!=="("||q(3)==="?");)X(),b.start++,B++;return B%2===0?!1:(b.negated=!0,b.start++,!0)},P=B=>{b[B]++,V.push(B);},F=B=>{b[B]--,V.pop();},W=B=>{if(R.type==="globstar"){let K=b.braces>0&&(B.type==="comma"||B.type==="brace"),L=B.extglob===!0||T.length&&(B.type==="pipe"||B.type==="paren");B.type!=="slash"&&B.type!=="paren"&&!K&&!L&&(b.output=b.output.slice(0,-R.output.length),R.type="star",R.value="*",R.output=$,b.output+=R.output);}if(T.length&&B.type!=="paren"&&(T[T.length-1].inner+=B.value),(B.value||B.output)&&U(B),R&&R.type==="text"&&B.type==="text"){R.value+=B.value,R.output=(R.output||"")+B.value;return}B.prev=R,o.push(B),R=B;},O=(B,K)=>{let L={...u[K],conditions:1,inner:""};L.prev=R,L.parens=b.parens,L.output=b.output;let z=(t.capture?"(":"")+L.open;P("parens"),W({type:B,value:K,output:b.output?"":p}),W({type:"paren",extglob:!0,value:X(),output:z}),T.push(L);},J=B=>{let K=B.close+(t.capture?")":""),L;if(B.type==="negate"){let z=$;if(B.inner&&B.inner.length>1&&B.inner.includes("/")&&(z=C(t)),(z!==$||H()||/^\)+$/.test(G()))&&(K=B.close=`)$))${z}`),B.inner.includes("*")&&(L=G())&&/^\.[^\\/.]+$/.test(L)){let ae=Pg(L,{...e,fastpaths:!1}).output;K=B.close=`)${ae})${z})`;}B.prev.type==="bos"&&(b.negatedExtglob=!0);}W({type:"paren",extglob:!0,value:I,output:K}),F("parens");};if(t.fastpaths!==!1&&!/(^[*!]|[/()[\]{}"])/.test(n)){let B=!1,K=n.replace(fj,(L,z,ae,ee,le,yt)=>ee==="\\"?(B=!0,L):ee==="?"?z?z+ee+(le?v.repeat(le.length):""):yt===0?x+(le?v.repeat(le.length):""):v.repeat(ae.length):ee==="."?f.repeat(ae.length):ee==="*"?z?z+ee+(le?$:""):$:z?L:`\\${L}`);return B===!0&&(t.unescape===!0?K=K.replace(/\\/g,""):K=K.replace(/\\+/g,L=>L.length%2===0?"\\\\":L?"\\":"")),K===n&&t.contains===!0?(b.output=n,b):(b.output=Dt.wrapOutput(K,b,e),b)}for(;!H();){if(I=X(),I==="\0")continue;if(I==="\\"){let L=q();if(L==="/"&&t.bash!==!0||L==="."||L===";")continue;if(!L){I+="\\",W({type:"text",value:I});continue}let z=/^\\+/.exec(G()),ae=0;if(z&&z[0].length>2&&(ae=z[0].length,b.index+=ae,ae%2!==0&&(I+="\\")),t.unescape===!0?I=X():I+=X(),b.brackets===0){W({type:"text",value:I});continue}}if(b.brackets>0&&(I!=="]"||R.value==="["||R.value==="[^")){if(t.posix!==!1&&I===":"){let L=R.value.slice(1);if(L.includes("[")&&(R.posix=!0,L.includes(":"))){let z=R.value.lastIndexOf("["),ae=R.value.slice(0,z),ee=R.value.slice(z+2),le=cj[ee];if(le){R.value=ae+le,b.backtrack=!0,X(),!i.output&&o.indexOf(R)===1&&(i.output=p);continue}}}(I==="["&&q()!==":"||I==="-"&&q()==="]")&&(I=`\\${I}`),I==="]"&&(R.value==="["||R.value==="[^")&&(I=`\\${I}`),t.posix===!0&&I==="!"&&R.value==="["&&(I="^"),R.value+=I,U({value:I});continue}if(b.quotes===1&&I!=='"'){I=Dt.escapeRegex(I),R.value+=I,U({value:I});continue}if(I==='"'){b.quotes=b.quotes===1?0:1,t.keepQuotes===!0&&W({type:"text",value:I});continue}if(I==="("){P("parens"),W({type:"paren",value:I});continue}if(I===")"){if(b.parens===0&&t.strictBrackets===!0)throw new SyntaxError(Ns("opening","("));let L=T[T.length-1];if(L&&b.parens===L.parens+1){J(T.pop());continue}W({type:"paren",value:I,output:b.parens?")":"\\)"}),F("parens");continue}if(I==="["){if(t.nobracket===!0||!G().includes("]")){if(t.nobracket!==!0&&t.strictBrackets===!0)throw new SyntaxError(Ns("closing","]"));I=`\\${I}`;}else P("brackets");W({type:"bracket",value:I});continue}if(I==="]"){if(t.nobracket===!0||R&&R.type==="bracket"&&R.value.length===1){W({type:"text",value:I,output:`\\${I}`});continue}if(b.brackets===0){if(t.strictBrackets===!0)throw new SyntaxError(Ns("opening","["));W({type:"text",value:I,output:`\\${I}`});continue}F("brackets");let L=R.value.slice(1);if(R.posix!==!0&&L[0]==="^"&&!L.includes("/")&&(I=`/${I}`),R.value+=I,U({value:I}),t.literalBrackets===!1||Dt.hasRegexChars(L))continue;let z=Dt.escapeRegex(R.value);if(b.output=b.output.slice(0,-R.value.length),t.literalBrackets===!0){b.output+=z,R.value=z;continue}R.value=`(${a}${z}|${R.value})`,b.output+=R.value;continue}if(I==="{"&&t.nobrace!==!0){P("braces");let L={type:"brace",value:I,output:"(",outputIndex:b.output.length,tokensIndex:b.tokens.length};Q.push(L),W(L);continue}if(I==="}"){let L=Q[Q.length-1];if(t.nobrace===!0||!L){W({type:"text",value:I,output:I});continue}let z=")";if(L.dots===!0){let ae=o.slice(),ee=[];for(let le=ae.length-1;le>=0&&(o.pop(),ae[le].type!=="brace");le--)ae[le].type!=="dots"&&ee.unshift(ae[le].value);z=hj(ee,t),b.backtrack=!0;}if(L.comma!==!0&&L.dots!==!0){let ae=b.output.slice(0,L.outputIndex),ee=b.tokens.slice(L.tokensIndex);L.value=L.output="\\{",I=z="\\}",b.output=ae;for(let le of ee)b.output+=le.output||le.value;}W({type:"brace",value:I,output:z}),F("braces"),Q.pop();continue}if(I==="|"){T.length>0&&T[T.length-1].conditions++,W({type:"text",value:I});continue}if(I===","){let L=I,z=Q[Q.length-1];z&&V[V.length-1]==="braces"&&(z.comma=!0,L="|"),W({type:"comma",value:I,output:L});continue}if(I==="/"){if(R.type==="dot"&&b.index===b.start+1){b.start=b.index+1,b.consumed="",b.output="",o.pop(),R=i;continue}W({type:"slash",value:I,output:m});continue}if(I==="."){if(b.braces>0&&R.type==="dot"){R.value==="."&&(R.output=f);let L=Q[Q.length-1];R.type="dots",R.output+=I,R.value+=I,L.dots=!0;continue}if(b.braces+b.parens===0&&R.type!=="bos"&&R.type!=="slash"){W({type:"text",value:I,output:f});continue}W({type:"dot",value:I,output:f});continue}if(I==="?"){if(!(R&&R.value==="(")&&t.noextglob!==!0&&q()==="("&&q(2)!=="?"){O("qmark",I);continue}if(R&&R.type==="paren"){let z=q(),ae=I;if(z==="<"&&!Dt.supportsLookbehinds())throw new Error("Node.js v10 or higher is required for regex lookbehinds");(R.value==="("&&!/[!=<:]/.test(z)||z==="<"&&!/<([!=]|\w+>)/.test(G()))&&(ae=`\\${I}`),W({type:"text",value:I,output:ae});continue}if(t.dot!==!0&&(R.type==="slash"||R.type==="bos")){W({type:"qmark",value:I,output:A});continue}W({type:"qmark",value:I,output:v});continue}if(I==="!"){if(t.noextglob!==!0&&q()==="("&&(q(2)!=="?"||!/[!=<:]/.test(q(3)))){O("negate",I);continue}if(t.nonegate!==!0&&b.index===0){j();continue}}if(I==="+"){if(t.noextglob!==!0&&q()==="("&&q(2)!=="?"){O("plus",I);continue}if(R&&R.value==="("||t.regex===!1){W({type:"plus",value:I,output:h});continue}if(R&&(R.type==="bracket"||R.type==="paren"||R.type==="brace")||b.parens>0){W({type:"plus",value:I});continue}W({type:"plus",value:h});continue}if(I==="@"){if(t.noextglob!==!0&&q()==="("&&q(2)!=="?"){W({type:"at",extglob:!0,value:I,output:""});continue}W({type:"text",value:I});continue}if(I!=="*"){(I==="$"||I==="^")&&(I=`\\${I}`);let L=uj.exec(G());L&&(I+=L[0],b.index+=L[0].length),W({type:"text",value:I});continue}if(R&&(R.type==="globstar"||R.star===!0)){R.type="star",R.star=!0,R.value+=I,R.output=$,b.backtrack=!0,b.globstar=!0,D(I);continue}let B=G();if(t.noextglob!==!0&&/^\([^?]/.test(B)){O("star",I);continue}if(R.type==="star"){if(t.noglobstar===!0){D(I);continue}let L=R.prev,z=L.prev,ae=L.type==="slash"||L.type==="bos",ee=z&&(z.type==="star"||z.type==="globstar");if(t.bash===!0&&(!ae||B[0]&&B[0]!=="/")){W({type:"star",value:I,output:""});continue}let le=b.braces>0&&(L.type==="comma"||L.type==="brace"),yt=T.length&&(L.type==="pipe"||L.type==="paren");if(!ae&&L.type!=="paren"&&!le&&!yt){W({type:"star",value:I,output:""});continue}for(;B.slice(0,3)==="/**";){let st=n[b.index+4];if(st&&st!=="/")break;B=B.slice(3),D("/**",3);}if(L.type==="bos"&&H()){R.type="globstar",R.value+=I,R.output=C(t),b.output=R.output,b.globstar=!0,D(I);continue}if(L.type==="slash"&&L.prev.type!=="bos"&&!ee&&H()){b.output=b.output.slice(0,-(L.output+R.output).length),L.output=`(?:${L.output}`,R.type="globstar",R.output=C(t)+(t.strictSlashes?")":"|$)"),R.value+=I,b.globstar=!0,b.output+=L.output+R.output,D(I);continue}if(L.type==="slash"&&L.prev.type!=="bos"&&B[0]==="/"){let st=B[1]!==void 0?"|$":"";b.output=b.output.slice(0,-(L.output+R.output).length),L.output=`(?:${L.output}`,R.type="globstar",R.output=`${C(t)}${m}|${m}${st})`,R.value+=I,b.output+=L.output+R.output,b.globstar=!0,D(I+X()),W({type:"slash",value:"/",output:""});continue}if(L.type==="bos"&&B[0]==="/"){R.type="globstar",R.value+=I,R.output=`(?:^|${m}|${C(t)}${m})`,b.output=R.output,b.globstar=!0,D(I+X()),W({type:"slash",value:"/",output:""});continue}b.output=b.output.slice(0,-R.output.length),R.type="globstar",R.output=C(t),R.value+=I,b.output+=R.output,b.globstar=!0,D(I);continue}let K={type:"star",value:I,output:$};if(t.bash===!0){K.output=".*?",(R.type==="bos"||R.type==="slash")&&(K.output=_+K.output),W(K);continue}if(R&&(R.type==="bracket"||R.type==="paren")&&t.regex===!0){K.output=I,W(K);continue}(b.index===b.start||R.type==="slash"||R.type==="dot")&&(R.type==="dot"?(b.output+=y,R.output+=y):t.dot===!0?(b.output+=w,R.output+=w):(b.output+=_,R.output+=_),q()!=="*"&&(b.output+=p,R.output+=p)),W(K);}for(;b.brackets>0;){if(t.strictBrackets===!0)throw new SyntaxError(Ns("closing","]"));b.output=Dt.escapeLast(b.output,"["),F("brackets");}for(;b.parens>0;){if(t.strictBrackets===!0)throw new SyntaxError(Ns("closing",")"));b.output=Dt.escapeLast(b.output,"("),F("parens");}for(;b.braces>0;){if(t.strictBrackets===!0)throw new SyntaxError(Ns("closing","}"));b.output=Dt.escapeLast(b.output,"{"),F("braces");}if(t.strictSlashes!==!0&&(R.type==="star"||R.type==="bracket")&&W({type:"maybe_slash",value:"",output:`${m}?`}),b.backtrack===!0){b.output="";for(let B of b.tokens)b.output+=B.output!=null?B.output:B.value,B.suffix&&(b.output+=B.suffix);}return b};Pg.fastpaths=(n,e)=>{let t={...e},r=typeof t.maxLength=="number"?Math.min(Sc,t.maxLength):Sc,s=n.length;if(s>r)throw new SyntaxError(`Input length: ${s}, exceeds maximum allowed length: ${r}`);n=xx[n]||n;let i=Dt.isWindows(e),{DOT_LITERAL:o,SLASH_LITERAL:a,ONE_CHAR:l,DOTS_SLASH:c,NO_DOT:u,NO_DOTS:f,NO_DOTS_SLASH:h,STAR:m,START_ANCHOR:p}=Ac.globChars(i),d=t.dot?f:u,g=t.dot?h:u,y=t.capture?"":"?:",w={negated:!1,prefix:""},v=t.bash===!0?".*?":m;t.capture&&(v=`(${v})`);let A=_=>_.noglobstar===!0?v:`(${y}(?:(?!${p}${_.dot?c:o}).)*?)`,E=_=>{switch(_){case"*":return `${d}${l}${v}`;case".*":return `${o}${l}${v}`;case"*.*":return `${d}${v}${o}${l}${v}`;case"*/*":return `${d}${v}${a}${l}${g}${v}`;case"**":return d+A(t);case"**/*":return `(?:${d}${A(t)}${a})?${g}${l}${v}`;case"**/*.*":return `(?:${d}${A(t)}${a})?${g}${v}${o}${l}${v}`;case"**/.*":return `(?:${d}${A(t)}${a})?${o}${l}${v}`;default:{let x=/^(.*?)\.(\w+)$/.exec(_);if(!x)return;let $=E(x[1]);return $?$+o+x[2]:void 0}}},S=Dt.removePrefix(n,w),C=E(S);return C&&t.strictSlashes!==!0&&(C+=`${a}?`),C};dj=Pg,pj=Oe__default.default,mj=lj,im=dj,Ng=na,gj=mu,yj=n=>n&&typeof n=="object"&&!Array.isArray(n),Le=(n,e,t=!1)=>{if(Array.isArray(n)){let u=n.map(h=>Le(h,e,t));return h=>{for(let m of u){let p=m(h);if(p)return p}return !1}}let r=yj(n)&&n.tokens&&n.input;if(n===""||typeof n!="string"&&!r)throw new TypeError("Expected pattern to be a non-empty string");let s=e||{},i=Ng.isWindows(e),o=r?Le.compileRe(n,e):Le.makeRe(n,e,!1,!0),a=o.state;delete o.state;let l=()=>!1;if(s.ignore){let u={...e,ignore:null,onMatch:null,onResult:null};l=Le(s.ignore,u,t);}let c=(u,f=!1)=>{let{isMatch:h,match:m,output:p}=Le.test(u,o,e,{glob:n,posix:i}),d={glob:n,state:a,regex:o,posix:i,input:u,output:p,match:m,isMatch:h};return typeof s.onResult=="function"&&s.onResult(d),h===!1?(d.isMatch=!1,f?d:!1):l(u)?(typeof s.onIgnore=="function"&&s.onIgnore(d),d.isMatch=!1,f?d:!1):(typeof s.onMatch=="function"&&s.onMatch(d),f?d:!0)};return t&&(c.state=a),c};Le.test=(n,e,t,{glob:r,posix:s}={})=>{if(typeof n!="string")throw new TypeError("Expected input to be a string");if(n==="")return {isMatch:!1,output:""};let i=t||{},o=i.format||(s?Ng.toPosixSlashes:null),a=n===r,l=a&&o?o(n):n;return a===!1&&(l=o?o(n):n,a=l===r),(a===!1||i.capture===!0)&&(i.matchBase===!0||i.basename===!0?a=Le.matchBase(n,e,t,s):a=e.exec(l)),{isMatch:!!a,match:a,output:l}};Le.matchBase=(n,e,t,r=Ng.isWindows(t))=>(e instanceof RegExp?e:Le.makeRe(e,t)).test(pj.basename(n));Le.isMatch=(n,e,t)=>Le(e,t)(n);Le.parse=(n,e)=>Array.isArray(n)?n.map(t=>Le.parse(t,e)):im(n,{...e,fastpaths:!1});Le.scan=(n,e)=>mj(n,e);Le.compileRe=(n,e,t=!1,r=!1)=>{if(t===!0)return n.output;let s=e||{},i=s.contains?"":"^",o=s.contains?"":"$",a=`${i}(?:${n.output})${o}`;n&&n.negated===!0&&(a=`^(?!${a}).*$`);let l=Le.toRegex(a,e);return r===!0&&(l.state=n),l};Le.makeRe=(n,e={},t=!1,r=!1)=>{if(!n||typeof n!="string")throw new TypeError("Expected a non-empty string");let s={negated:!1,fastpaths:!0};return e.fastpaths!==!1&&(n[0]==="."||n[0]==="*")&&(s.output=im.fastpaths(n,e)),s.output||(s=im(n,e)),Le.compileRe(s,e,t,r)};Le.toRegex=(n,e)=>{try{let t=e||{};return new RegExp(n,t.flags||(t.nocase?"i":""))}catch(t){if(e&&e.debug===!0)throw t;return /$^/}};Le.constants=gj;wj=Le,Lg=wj,vj="break case class catch const continue debugger default delete do else export extends finally for function if import in instanceof let new return super switch this throw try typeof var void while with yield enum await implements package protected static interface private public",Ej="arguments Infinity NaN undefined null true false eval uneval isFinite isNaN parseFloat parseInt decodeURI decodeURIComponent encodeURI encodeURIComponent escape unescape Object Function Boolean Symbol Error EvalError InternalError RangeError ReferenceError SyntaxError TypeError URIError Number Math Date String RegExp Array Int8Array Uint8Array Uint8ClampedArray Int16Array Uint16Array Int32Array Uint32Array Float32Array Float64Array Map Set WeakMap WeakSet SIMD ArrayBuffer DataView JSON Promise Generator GeneratorFunction Reflect Proxy Intl",Aj=new Set(`${vj} ${Ej}`.split(" "));Aj.add("");Sj=Cx;Cx.range=Ix;Ox=Sj,_j=Cj,Rx="\0SLASH"+Math.random()+"\0",kx="\0OPEN"+Math.random()+"\0",Mg="\0CLOSE"+Math.random()+"\0",$x="\0COMMA"+Math.random()+"\0",Tx="\0PERIOD"+Math.random()+"\0";$j=bn(_j),Tj=1024*64,_c=n=>{if(typeof n!="string")throw new TypeError("invalid pattern");if(n.length>Tj)throw new TypeError("pattern is too long")},Pj={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}",!0],"[:alpha:]":["\\p{L}\\p{Nl}",!0],"[:ascii:]":["\\x00-\\x7f",!1],"[:blank:]":["\\p{Zs}\\t",!0],"[:cntrl:]":["\\p{Cc}",!0],"[:digit:]":["\\p{Nd}",!0],"[:graph:]":["\\p{Z}\\p{C}",!0,!0],"[:lower:]":["\\p{Ll}",!0],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}",!0],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f",!0],"[:upper:]":["\\p{Lu}",!0],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}",!0],"[:xdigit:]":["A-Fa-f0-9",!1]},ao=n=>n.replace(/[[\]\\-]/g,"\\$&"),Nj=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),N_=n=>n.join(""),Lj=(n,e)=>{let t=e;if(n.charAt(t)!=="[")throw new Error("not in a brace expression");let r=[],s=[],i=t+1,o=!1,a=!1,l=!1,c=!1,u=t,f="";e:for(;i<n.length;){let d=n.charAt(i);if((d==="!"||d==="^")&&i===t+1){c=!0,i++;continue}if(d==="]"&&o&&!l){u=i+1;break}if(o=!0,d==="\\"&&!l){l=!0,i++;continue}if(d==="["&&!l){for(let[g,[y,w,v]]of Object.entries(Pj))if(n.startsWith(g,i)){if(f)return ["$.",!1,n.length-t,!0];i+=g.length,v?s.push(y):r.push(y),a=a||w;continue e}}if(l=!1,f){d>f?r.push(ao(f)+"-"+ao(d)):d===f&&r.push(ao(d)),f="",i++;continue}if(n.startsWith("-]",i+1)){r.push(ao(d+"-")),i+=2;continue}if(n.startsWith("-",i+1)){f=d,i+=2;continue}r.push(ao(d)),i++;}if(u<i)return ["",!1,0,!1];if(!r.length&&!s.length)return ["$.",!1,n.length-t,!0];if(s.length===0&&r.length===1&&/^\\?.$/.test(r[0])&&!c){let d=r[0].length===2?r[0].slice(-1):r[0];return [Nj(d),!1,u-t,!1]}let h="["+(c?"^":"")+N_(r)+"]",m="["+(c?"":"^")+N_(s)+"]";return [r.length&&s.length?"("+h+"|"+m+")":r.length?h:m,a,u-t,!0]},qs=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/\[([^\/\\])\]/g,"$1"):n.replace(/((?!\\).|^)\[([^\/\\])\]/g,"$1$2").replace(/\\([^\/])/g,"$1"),Mj=new Set(["!","?","+","*","@"]),L_=n=>Mj.has(n),Dj="(?!(?:^|/)\\.\\.?(?:$|/))",kl="(?!\\.)",Bj=new Set(["[","."]),Fj=new Set(["..","."]),jj=new Set("().*{}+?[]^$\\!"),Uj=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),Dg="[^/]",M_=Dg+"*?",D_=Dg+"+?",bc=class n{type;#e;#t;#i=!1;#r=[];#o;#E;#c;#f=!1;#a;#l;#s=!1;constructor(e,t,r={}){this.type=e,e&&(this.#t=!0),this.#o=t,this.#e=this.#o?this.#o.#e:this,this.#a=this.#e===this?r:this.#e.#a,this.#c=this.#e===this?[]:this.#e.#c,e==="!"&&!this.#e.#f&&this.#c.push(this),this.#E=this.#o?this.#o.#r.length:0;}get hasMagic(){if(this.#t!==void 0)return this.#t;for(let e of this.#r)if(typeof e!="string"&&(e.type||e.hasMagic))return this.#t=!0;return this.#t}toString(){return this.#l!==void 0?this.#l:this.type?this.#l=this.type+"("+this.#r.map(e=>String(e)).join("|")+")":this.#l=this.#r.map(e=>String(e)).join("")}#g(){if(this!==this.#e)throw new Error("should only call on root");if(this.#f)return this;this.toString(),this.#f=!0;let e;for(;e=this.#c.pop();){if(e.type!=="!")continue;let t=e,r=t.#o;for(;r;){for(let s=t.#E+1;!r.type&&s<r.#r.length;s++)for(let i of e.#r){if(typeof i=="string")throw new Error("string part in extglob AST??");i.copyIn(r.#r[s]);}t=r,r=t.#o;}}return this}push(...e){for(let t of e)if(t!==""){if(typeof t!="string"&&!(t instanceof n&&t.#o===this))throw new Error("invalid part: "+t);this.#r.push(t);}}toJSON(){let e=this.type===null?this.#r.slice().map(t=>typeof t=="string"?t:t.toJSON()):[this.type,...this.#r.map(t=>t.toJSON())];return this.isStart()&&!this.type&&e.unshift([]),this.isEnd()&&(this===this.#e||this.#e.#f&&this.#o?.type==="!")&&e.push({}),e}isStart(){if(this.#e===this)return !0;if(!this.#o?.isStart())return !1;if(this.#E===0)return !0;let e=this.#o;for(let t=0;t<this.#E;t++){let r=e.#r[t];if(!(r instanceof n&&r.type==="!"))return !1}return !0}isEnd(){if(this.#e===this||this.#o?.type==="!")return !0;if(!this.#o?.isEnd())return !1;if(!this.type)return this.#o?.isEnd();let e=this.#o?this.#o.#r.length:0;return this.#E===e-1}copyIn(e){typeof e=="string"?this.push(e):this.push(e.clone(this));}clone(e){let t=new n(this.type,e);for(let r of this.#r)t.copyIn(r);return t}static#y(e,t,r,s){let i=!1,o=!1,a=-1,l=!1;if(t.type===null){let m=r,p="";for(;m<e.length;){let d=e.charAt(m++);if(i||d==="\\"){i=!i,p+=d;continue}if(o){m===a+1?(d==="^"||d==="!")&&(l=!0):d==="]"&&!(m===a+2&&l)&&(o=!1),p+=d;continue}else if(d==="["){o=!0,a=m,l=!1,p+=d;continue}if(!s.noext&&L_(d)&&e.charAt(m)==="("){t.push(p),p="";let g=new n(d,t);m=n.#y(e,g,m,s),t.push(g);continue}p+=d;}return t.push(p),m}let c=r+1,u=new n(null,t),f=[],h="";for(;c<e.length;){let m=e.charAt(c++);if(i||m==="\\"){i=!i,h+=m;continue}if(o){c===a+1?(m==="^"||m==="!")&&(l=!0):m==="]"&&!(c===a+2&&l)&&(o=!1),h+=m;continue}else if(m==="["){o=!0,a=c,l=!1,h+=m;continue}if(L_(m)&&e.charAt(c)==="("){u.push(h),h="";let p=new n(m,u);u.push(p),c=n.#y(e,p,c,s);continue}if(m==="|"){u.push(h),h="",f.push(u),u=new n(null,t);continue}if(m===")")return h===""&&t.#r.length===0&&(t.#s=!0),u.push(h),h="",t.push(...f,u),c;h+=m;}return t.type=null,t.#t=void 0,t.#r=[e.substring(r-1)],c}static fromGlob(e,t={}){let r=new n(null,void 0,t);return n.#y(e,r,0,t),r}toMMPattern(){if(this!==this.#e)return this.#e.toMMPattern();let e=this.toString(),[t,r,s,i]=this.toRegExpSource();if(!(s||this.#t||this.#a.nocase&&!this.#a.nocaseMagicOnly&&e.toUpperCase()!==e.toLowerCase()))return r;let a=(this.#a.nocase?"i":"")+(i?"u":"");return Object.assign(new RegExp(`^${t}$`,a),{_src:t,_glob:e})}get options(){return this.#a}toRegExpSource(e){let t=e??!!this.#a.dot;if(this.#e===this&&this.#g(),!this.type){let l=this.isStart()&&this.isEnd(),c=this.#r.map(m=>{let[p,d,g,y]=typeof m=="string"?n.#h(m,this.#t,l):m.toRegExpSource(e);return this.#t=this.#t||g,this.#i=this.#i||y,p}).join(""),u="";if(this.isStart()&&typeof this.#r[0]=="string"&&!(this.#r.length===1&&Fj.has(this.#r[0]))){let p=Bj,d=t&&p.has(c.charAt(0))||c.startsWith("\\.")&&p.has(c.charAt(2))||c.startsWith("\\.\\.")&&p.has(c.charAt(4)),g=!t&&!e&&p.has(c.charAt(0));u=d?Dj:g?kl:"";}let f="";return this.isEnd()&&this.#e.#f&&this.#o?.type==="!"&&(f="(?:$|\\/)"),[u+c+f,qs(c),this.#t=!!this.#t,this.#i]}let r=this.type==="*"||this.type==="+",s=this.type==="!"?"(?:(?!(?:":"(?:",i=this.#d(t);if(this.isStart()&&this.isEnd()&&!i&&this.type!=="!"){let l=this.toString();return this.#r=[l],this.type=null,this.#t=void 0,[l,qs(this.toString()),!1,!1]}let o=!r||e||t||!kl?"":this.#d(!0);o===i&&(o=""),o&&(i=`(?:${i})(?:${o})*?`);let a="";if(this.type==="!"&&this.#s)a=(this.isStart()&&!t?kl:"")+D_;else {let l=this.type==="!"?"))"+(this.isStart()&&!t&&!e?kl:"")+M_+")":this.type==="@"?")":this.type==="?"?")?":this.type==="+"&&o?")":this.type==="*"&&o?")?":`)${this.type}`;a=s+i+l;}return [a,qs(i),this.#t=!!this.#t,this.#i]}#d(e){return this.#r.map(t=>{if(typeof t=="string")throw new Error("string type in extglob ast??");let[r,s,i,o]=t.toRegExpSource(e);return this.#i=this.#i||o,r}).filter(t=>!(this.isStart()&&this.isEnd())||!!t).join("|")}static#h(e,t,r=!1){let s=!1,i="",o=!1;for(let a=0;a<e.length;a++){let l=e.charAt(a);if(s){s=!1,i+=(jj.has(l)?"\\":"")+l;continue}if(l==="\\"){a===e.length-1?i+="\\\\":s=!0;continue}if(l==="["){let[c,u,f,h]=Lj(e,a);if(f){i+=c,o=o||u,a+=f-1,t=t||h;continue}}if(l==="*"){r&&e==="*"?i+=D_:i+=M_,t=!0;continue}if(l==="?"){i+=Dg,t=!0;continue}i+=Uj(l);}return [i,qs(e),!!t,o]}},Nx=(n,{windowsPathsNoEscape:e=!1}={})=>e?n.replace(/[?*()[\]]/g,"[$&]"):n.replace(/[?*()[\]\\]/g,"\\$&"),ht=(n,e,t={})=>(_c(e),!t.nocomment&&e.charAt(0)==="#"?!1:new wn(e,t).match(n)),Qj=/^\*+([^+@!?\*\[\(]*)$/,Wj=n=>e=>!e.startsWith(".")&&e.endsWith(n),qj=n=>e=>e.endsWith(n),Hj=n=>(n=n.toLowerCase(),e=>!e.startsWith(".")&&e.toLowerCase().endsWith(n)),zj=n=>(n=n.toLowerCase(),e=>e.toLowerCase().endsWith(n)),Gj=/^\*+\.\*+$/,Kj=n=>!n.startsWith(".")&&n.includes("."),Vj=n=>n!=="."&&n!==".."&&n.includes("."),Jj=/^\.\*+$/,Yj=n=>n!=="."&&n!==".."&&n.startsWith("."),Xj=/^\*+$/,Zj=n=>n.length!==0&&!n.startsWith("."),eU=n=>n.length!==0&&n!=="."&&n!=="..",tU=/^\?+([^+@!?\*\[\(]*)?$/,nU=([n,e=""])=>{let t=Lx([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},rU=([n,e=""])=>{let t=Mx([n]);return e?(e=e.toLowerCase(),r=>t(r)&&r.toLowerCase().endsWith(e)):t},sU=([n,e=""])=>{let t=Mx([n]);return e?r=>t(r)&&r.endsWith(e):t},iU=([n,e=""])=>{let t=Lx([n]);return e?r=>t(r)&&r.endsWith(e):t},Lx=([n])=>{let e=n.length;return t=>t.length===e&&!t.startsWith(".")},Mx=([n])=>{let e=n.length;return t=>t.length===e&&t!=="."&&t!==".."},Dx=typeof process=="object"&&process?typeof process.env=="object"&&process.env&&process.env.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",B_={win32:{sep:"\\"},posix:{sep:"/"}},oU=Dx==="win32"?B_.win32.sep:B_.posix.sep;ht.sep=oU;ft=Symbol("globstar **");ht.GLOBSTAR=ft;aU="[^/]",lU=aU+"*?",cU="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",uU="(?:(?!(?:\\/|^)\\.).)*?",fU=(n,e={})=>t=>ht(t,n,e);ht.filter=fU;Pt=(n,e={})=>Object.assign({},n,e),hU=n=>{if(!n||typeof n!="object"||!Object.keys(n).length)return ht;let e=ht;return Object.assign((r,s,i={})=>e(r,s,Pt(n,i)),{Minimatch:class extends e.Minimatch{constructor(s,i={}){super(s,Pt(n,i));}static defaults(s){return e.defaults(Pt(n,s)).Minimatch}},AST:class extends e.AST{constructor(s,i,o={}){super(s,i,Pt(n,o));}static fromGlob(s,i={}){return e.AST.fromGlob(s,Pt(n,i))}},unescape:(r,s={})=>e.unescape(r,Pt(n,s)),escape:(r,s={})=>e.escape(r,Pt(n,s)),filter:(r,s={})=>e.filter(r,Pt(n,s)),defaults:r=>e.defaults(Pt(n,r)),makeRe:(r,s={})=>e.makeRe(r,Pt(n,s)),braceExpand:(r,s={})=>e.braceExpand(r,Pt(n,s)),match:(r,s,i={})=>e.match(r,s,Pt(n,i)),sep:e.sep,GLOBSTAR:ft})};ht.defaults=hU;Bx=(n,e={})=>(_c(n),e.nobrace||!/\{(?:(?!\{).)*\}/.test(n)?[n]:$j(n));ht.braceExpand=Bx;dU=(n,e={})=>new wn(n,e).makeRe();ht.makeRe=dU;pU=(n,e,t={})=>{let r=new wn(e,t);return n=n.filter(s=>r.match(s)),r.options.nonull&&!n.length&&n.push(e),n};ht.match=pU;F_=/[?*]|[+@!]\(.*?\)|\[|\]/,mU=n=>n.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&"),wn=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;regexp;constructor(e,t={}){_c(e),t=t||{},this.options=t,this.pattern=e,this.platform=t.platform||Dx,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!t.preserveMultipleSlashes,this.regexp=null,this.negate=!1,this.nonegate=!!t.nonegate,this.comment=!1,this.empty=!1,this.partial=!!t.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=t.windowsNoMagicRoot!==void 0?t.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.make();}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return !0;for(let e of this.set)for(let t of e)if(typeof t!="string")return !0;return !1}debug(...e){}make(){let e=this.pattern,t=this.options;if(!t.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.braceExpand())],t.debug&&(this.debug=(...i)=>console.error(...i)),this.debug(this.pattern,this.globSet);let r=this.globSet.map(i=>this.slashSplit(i));this.globParts=this.preprocess(r),this.debug(this.pattern,this.globParts);let s=this.globParts.map((i,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=i[0]===""&&i[1]===""&&(i[2]==="?"||!F_.test(i[2]))&&!F_.test(i[3]),c=/^[a-z]:/i.test(i[0]);if(l)return [...i.slice(0,4),...i.slice(4).map(u=>this.parse(u))];if(c)return [i[0],...i.slice(1).map(u=>this.parse(u))]}return i.map(l=>this.parse(l))});if(this.debug(this.pattern,s),this.set=s.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){let o=this.set[i];o[0]===""&&o[1]===""&&this.globParts[i][2]==="?"&&typeof o[3]=="string"&&/^[a-z]:$/i.test(o[3])&&(o[2]="?");}this.debug(this.pattern,this.set);}preprocess(e){if(this.options.noglobstar)for(let r=0;r<e.length;r++)for(let s=0;s<e[r].length;s++)e[r][s]==="**"&&(e[r][s]="*");let{optimizationLevel:t=1}=this.options;return t>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):t>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(t=>{let r=-1;for(;(r=t.indexOf("**",r+1))!==-1;){let s=r;for(;t[s+1]==="**";)s++;s!==r&&t.splice(r,s-r);}return t})}levelOneOptimize(e){return e.map(t=>(t=t.reduce((r,s)=>{let i=r[r.length-1];return s==="**"&&i==="**"?r:s===".."&&i&&i!==".."&&i!=="."&&i!=="**"?(r.pop(),r):(r.push(s),r)},[]),t.length===0?[""]:t))}levelTwoFileOptimize(e){Array.isArray(e)||(e=this.slashSplit(e));let t=!1;do{if(t=!1,!this.preserveMultipleSlashes){for(let s=1;s<e.length-1;s++){let i=e[s];s===1&&i===""&&e[0]===""||(i==="."||i==="")&&(t=!0,e.splice(s,1),s--);}e[0]==="."&&e.length===2&&(e[1]==="."||e[1]==="")&&(t=!0,e.pop());}let r=0;for(;(r=e.indexOf("..",r+1))!==-1;){let s=e[r-1];s&&s!=="."&&s!==".."&&s!=="**"&&(t=!0,e.splice(r-1,2),r-=2);}}while(t);return e.length===0?[""]:e}firstPhasePreProcess(e){let t=!1;do{t=!1;for(let r of e){let s=-1;for(;(s=r.indexOf("**",s+1))!==-1;){let o=s;for(;r[o+1]==="**";)o++;o>s&&r.splice(s+1,o-s);let a=r[s+1],l=r[s+2],c=r[s+3];if(a!==".."||!l||l==="."||l===".."||!c||c==="."||c==="..")continue;t=!0,r.splice(s,1);let u=r.slice(0);u[s]="**",e.push(u),s--;}if(!this.preserveMultipleSlashes){for(let o=1;o<r.length-1;o++){let a=r[o];o===1&&a===""&&r[0]===""||(a==="."||a==="")&&(t=!0,r.splice(o,1),o--);}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(t=!0,r.pop());}let i=0;for(;(i=r.indexOf("..",i+1))!==-1;){let o=r[i-1];if(o&&o!=="."&&o!==".."&&o!=="**"){t=!0;let l=i===1&&r[i+1]==="**"?["."]:[];r.splice(i-1,2,...l),r.length===0&&r.push(""),i-=2;}}}}while(t);return e}secondPhasePreProcess(e){for(let t=0;t<e.length-1;t++)for(let r=t+1;r<e.length;r++){let s=this.partsMatch(e[t],e[r],!this.preserveMultipleSlashes);if(s){e[t]=[],e[r]=s;break}}return e.filter(t=>t.length)}partsMatch(e,t,r=!1){let s=0,i=0,o=[],a="";for(;s<e.length&&i<t.length;)if(e[s]===t[i])o.push(a==="b"?t[i]:e[s]),s++,i++;else if(r&&e[s]==="**"&&t[i]===e[s+1])o.push(e[s]),s++;else if(r&&t[i]==="**"&&e[s]===t[i+1])o.push(t[i]),i++;else if(e[s]==="*"&&t[i]&&(this.options.dot||!t[i].startsWith("."))&&t[i]!=="**"){if(a==="b")return !1;a="a",o.push(e[s]),s++,i++;}else if(t[i]==="*"&&e[s]&&(this.options.dot||!e[s].startsWith("."))&&e[s]!=="**"){if(a==="a")return !1;a="b",o.push(t[i]),s++,i++;}else return !1;return e.length===t.length&&o}parseNegate(){if(this.nonegate)return;let e=this.pattern,t=!1,r=0;for(let s=0;s<e.length&&e.charAt(s)==="!";s++)t=!t,r++;r&&(this.pattern=e.slice(r)),this.negate=t;}matchOne(e,t,r=!1){let s=this.options;if(this.isWindows){let d=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),g=!d&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),y=typeof t[0]=="string"&&/^[a-z]:$/i.test(t[0]),w=!y&&t[0]===""&&t[1]===""&&t[2]==="?"&&typeof t[3]=="string"&&/^[a-z]:$/i.test(t[3]),v=g?3:d?0:void 0,A=w?3:y?0:void 0;if(typeof v=="number"&&typeof A=="number"){let[E,S]=[e[v],t[A]];E.toLowerCase()===S.toLowerCase()&&(t[A]=E,A>v?t=t.slice(A):v>A&&(e=e.slice(v)));}}let{optimizationLevel:i=1}=this.options;i>=2&&(e=this.levelTwoFileOptimize(e)),this.debug("matchOne",this,{file:e,pattern:t}),this.debug("matchOne",e.length,t.length);for(var o=0,a=0,l=e.length,c=t.length;o<l&&a<c;o++,a++){this.debug("matchOne loop");var u=t[a],f=e[o];if(this.debug(t,u,f),u===!1)return !1;if(u===ft){this.debug("GLOBSTAR",[t,u,f]);var h=o,m=a+1;if(m===c){for(this.debug("** at the end");o<l;o++)if(e[o]==="."||e[o]===".."||!s.dot&&e[o].charAt(0)===".")return !1;return !0}for(;h<l;){var p=e[h];if(this.debug(`
|
|
413
|
+
globstar while`,e,h,t,m,p),this.matchOne(e.slice(h),t.slice(m),r))return this.debug("globstar found match!",h,l,p),!0;if(p==="."||p===".."||!s.dot&&p.charAt(0)==="."){this.debug("dot detected!",e,h,t,m);break}this.debug("globstar swallow a segment, and continue"),h++;}return !!(r&&(this.debug(`
|
|
414
|
+
>>> no match, partial?`,e,h,t,m),h===l))}let d;if(typeof u=="string"?(d=f===u,this.debug("string match",u,f,d)):(d=u.test(f),this.debug("pattern match",u,f,d)),!d)return !1}if(o===l&&a===c)return !0;if(o===l)return r;if(a===c)return o===l-1&&e[o]==="";throw new Error("wtf?")}braceExpand(){return Bx(this.pattern,this.options)}parse(e){_c(e);let t=this.options;if(e==="**")return ft;if(e==="")return "";let r,s=null;(r=e.match(Xj))?s=t.dot?eU:Zj:(r=e.match(Qj))?s=(t.nocase?t.dot?zj:Hj:t.dot?qj:Wj)(r[1]):(r=e.match(tU))?s=(t.nocase?t.dot?rU:nU:t.dot?sU:iU)(r):(r=e.match(Gj))?s=t.dot?Vj:Kj:(r=e.match(Jj))&&(s=Yj);let i=bc.fromGlob(e,this.options).toMMPattern();return s&&typeof i=="object"&&Reflect.defineProperty(i,"test",{value:s}),i}makeRe(){if(this.regexp||this.regexp===!1)return this.regexp;let e=this.set;if(!e.length)return this.regexp=!1,this.regexp;let t=this.options,r=t.noglobstar?lU:t.dot?cU:uU,s=new Set(t.nocase?["i"]:[]),i=e.map(l=>{let c=l.map(u=>{if(u instanceof RegExp)for(let f of u.flags.split(""))s.add(f);return typeof u=="string"?mU(u):u===ft?ft:u._src});return c.forEach((u,f)=>{let h=c[f+1],m=c[f-1];u!==ft||m===ft||(m===void 0?h!==void 0&&h!==ft?c[f+1]="(?:\\/|"+r+"\\/)?"+h:c[f]=r:h===void 0?c[f-1]=m+"(?:\\/|"+r+")?":h!==ft&&(c[f-1]=m+"(?:\\/|\\/"+r+"\\/)"+h,c[f+1]=ft));}),c.filter(u=>u!==ft).join("/")}).join("|"),[o,a]=e.length>1?["(?:",")"]:["",""];i="^"+o+i+a+"$",this.negate&&(i="^(?!"+i+").+$");try{this.regexp=new RegExp(i,[...s].join(""));}catch{this.regexp=!1;}return this.regexp}slashSplit(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^\/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,t=this.partial){if(this.debug("match",e,this.pattern),this.comment)return !1;if(this.empty)return e==="";if(e==="/"&&t)return !0;let r=this.options;this.isWindows&&(e=e.split("\\").join("/"));let s=this.slashSplit(e);this.debug(this.pattern,"split",s);let i=this.set;this.debug(this.pattern,"set",i);let o=s[s.length-1];if(!o)for(let a=s.length-2;!o&&a>=0;a--)o=s[a];for(let a=0;a<i.length;a++){let l=i[a],c=s;if(r.matchBase&&l.length===1&&(c=[o]),this.matchOne(c,l,t))return r.flipNegate?!0:!this.negate}return r.flipNegate?!1:this.negate}static defaults(e){return ht.defaults(e).Minimatch}};ht.AST=bc;ht.Minimatch=wn;ht.escape=Nx;ht.unescape=qs;Ls=typeof performance=="object"&&performance&&typeof performance.now=="function"?performance:Date,Fx=new Set,om=typeof process=="object"&&process?process:{},jx=(n,e,t,r)=>{typeof om.emitWarning=="function"?om.emitWarning(n,e,t,r):console.error(`[${t}] ${e}: ${n}`);},xc=globalThis.AbortController,j_=globalThis.AbortSignal;if(typeof xc>"u"){j_=class{onabort;_onabort=[];reason;aborted=!1;addEventListener(r,s){this._onabort.push(s);}},xc=class{constructor(){e();}signal=new j_;abort(r){if(!this.signal.aborted){this.signal.reason=r,this.signal.aborted=!0;for(let s of this.signal._onabort)s(r);this.signal.onabort?.(r);}}};let n=om.env?.LRU_CACHE_IGNORE_AC_WARNING!=="1",e=()=>{n&&(n=!1,jx("AbortController is not defined. If using lru-cache in node 14, load an AbortController polyfill from the `node-abort-controller` package. A minimal polyfill is provided for use by LRUCache.fetch(), but it should not be relied upon in other contexts (eg, passing it to other APIs that use AbortController/AbortSignal might have undesirable effects). You may disable this with LRU_CACHE_IGNORE_AC_WARNING=1 in the env.","NO_ABORT_CONTROLLER","ENOTSUP",e));};}gU=n=>!Fx.has(n),Xn=n=>n&&n===Math.floor(n)&&n>0&&isFinite(n),Ux=n=>Xn(n)?n<=Math.pow(2,8)?Uint8Array:n<=Math.pow(2,16)?Uint16Array:n<=Math.pow(2,32)?Uint32Array:n<=Number.MAX_SAFE_INTEGER?Xs:null:null,Xs=class extends Array{constructor(e){super(e),this.fill(0);}},am=class n{heap;length;static#e=!1;static create(e){let t=Ux(e);if(!t)return [];n.#e=!0;let r=new n(e,t);return n.#e=!1,r}constructor(e,t){if(!n.#e)throw new TypeError("instantiate Stack using Stack.create(n)");this.heap=new t(e),this.length=0;}push(e){this.heap[this.length++]=e;}pop(){return this.heap[--this.length]}},Cc=class n{#e;#t;#i;#r;#o;#E;ttl;ttlResolution;ttlAutopurge;updateAgeOnGet;updateAgeOnHas;allowStale;noDisposeOnSet;noUpdateTTL;maxEntrySize;sizeCalculation;noDeleteOnFetchRejection;noDeleteOnStaleGet;allowStaleOnFetchAbort;allowStaleOnFetchRejection;ignoreFetchAbort;#c;#f;#a;#l;#s;#g;#y;#d;#h;#_;#m;#b;#x;#v;#A;#S;#p;static unsafeExposeInternals(e){return {starts:e.#x,ttls:e.#v,sizes:e.#b,keyMap:e.#a,keyList:e.#l,valList:e.#s,next:e.#g,prev:e.#y,get head(){return e.#d},get tail(){return e.#h},free:e.#_,isBackgroundFetch:t=>e.#u(t),backgroundFetch:(t,r,s,i)=>e.#B(t,r,s,i),moveToTail:t=>e.#j(t),indexes:t=>e.#I(t),rindexes:t=>e.#O(t),isStale:t=>e.#w(t)}}get max(){return this.#e}get maxSize(){return this.#t}get calculatedSize(){return this.#f}get size(){return this.#c}get fetchMethod(){return this.#o}get memoMethod(){return this.#E}get dispose(){return this.#i}get disposeAfter(){return this.#r}constructor(e){let{max:t=0,ttl:r,ttlResolution:s=1,ttlAutopurge:i,updateAgeOnGet:o,updateAgeOnHas:a,allowStale:l,dispose:c,disposeAfter:u,noDisposeOnSet:f,noUpdateTTL:h,maxSize:m=0,maxEntrySize:p=0,sizeCalculation:d,fetchMethod:g,memoMethod:y,noDeleteOnFetchRejection:w,noDeleteOnStaleGet:v,allowStaleOnFetchRejection:A,allowStaleOnFetchAbort:E,ignoreFetchAbort:S}=e;if(t!==0&&!Xn(t))throw new TypeError("max option must be a nonnegative integer");let C=t?Ux(t):Array;if(!C)throw new Error("invalid max value: "+t);if(this.#e=t,this.#t=m,this.maxEntrySize=p||this.#t,this.sizeCalculation=d,this.sizeCalculation){if(!this.#t&&!this.maxEntrySize)throw new TypeError("cannot set sizeCalculation without setting maxSize or maxEntrySize");if(typeof this.sizeCalculation!="function")throw new TypeError("sizeCalculation set to non-function")}if(y!==void 0&&typeof y!="function")throw new TypeError("memoMethod must be a function if defined");if(this.#E=y,g!==void 0&&typeof g!="function")throw new TypeError("fetchMethod must be a function if specified");if(this.#o=g,this.#S=!!g,this.#a=new Map,this.#l=new Array(t).fill(void 0),this.#s=new Array(t).fill(void 0),this.#g=new C(t),this.#y=new C(t),this.#d=0,this.#h=0,this.#_=am.create(t),this.#c=0,this.#f=0,typeof c=="function"&&(this.#i=c),typeof u=="function"?(this.#r=u,this.#m=[]):(this.#r=void 0,this.#m=void 0),this.#A=!!this.#i,this.#p=!!this.#r,this.noDisposeOnSet=!!f,this.noUpdateTTL=!!h,this.noDeleteOnFetchRejection=!!w,this.allowStaleOnFetchRejection=!!A,this.allowStaleOnFetchAbort=!!E,this.ignoreFetchAbort=!!S,this.maxEntrySize!==0){if(this.#t!==0&&!Xn(this.#t))throw new TypeError("maxSize must be a positive integer if specified");if(!Xn(this.maxEntrySize))throw new TypeError("maxEntrySize must be a positive integer if specified");this.#k();}if(this.allowStale=!!l,this.noDeleteOnStaleGet=!!v,this.updateAgeOnGet=!!o,this.updateAgeOnHas=!!a,this.ttlResolution=Xn(s)||s===0?s:1,this.ttlAutopurge=!!i,this.ttl=r||0,this.ttl){if(!Xn(this.ttl))throw new TypeError("ttl must be a positive integer if specified");this.#R();}if(this.#e===0&&this.ttl===0&&this.#t===0)throw new TypeError("At least one of max, maxSize, or ttl is required");if(!this.ttlAutopurge&&!this.#e&&!this.#t){let _="LRU_CACHE_UNBOUNDED";gU(_)&&(Fx.add(_),jx("TTL caching without ttlAutopurge, max, or maxSize can result in unbounded memory consumption.","UnboundedCacheWarning",_,n));}}getRemainingTTL(e){return this.#a.has(e)?1/0:0}#R(){let e=new Xs(this.#e),t=new Xs(this.#e);this.#v=e,this.#x=t,this.#T=(i,o,a=Ls.now())=>{if(t[i]=o!==0?a:0,e[i]=o,o!==0&&this.ttlAutopurge){let l=setTimeout(()=>{this.#w(i)&&this.#$(this.#l[i],"expire");},o+1);l.unref&&l.unref();}},this.#C=i=>{t[i]=e[i]!==0?Ls.now():0;},this.#n=(i,o)=>{if(e[o]){let a=e[o],l=t[o];if(!a||!l)return;i.ttl=a,i.start=l,i.now=r||s();let c=i.now-l;i.remainingTTL=a-c;}};let r=0,s=()=>{let i=Ls.now();if(this.ttlResolution>0){r=i;let o=setTimeout(()=>r=0,this.ttlResolution);o.unref&&o.unref();}return i};this.getRemainingTTL=i=>{let o=this.#a.get(i);if(o===void 0)return 0;let a=e[o],l=t[o];if(!a||!l)return 1/0;let c=(r||s())-l;return a-c},this.#w=i=>{let o=t[i],a=e[i];return !!a&&!!o&&(r||s())-o>a};}#C=()=>{};#n=()=>{};#T=()=>{};#w=()=>!1;#k(){let e=new Xs(this.#e);this.#f=0,this.#b=e,this.#P=t=>{this.#f-=e[t],e[t]=0;},this.#L=(t,r,s,i)=>{if(this.#u(r))return 0;if(!Xn(s))if(i){if(typeof i!="function")throw new TypeError("sizeCalculation must be a function");if(s=i(r,t),!Xn(s))throw new TypeError("sizeCalculation return invalid (expect positive integer)")}else throw new TypeError("invalid size value (must be positive integer). When maxSize or maxEntrySize is used, sizeCalculation or size must be set.");return s},this.#N=(t,r,s)=>{if(e[t]=r,this.#t){let i=this.#t-e[t];for(;this.#f>i;)this.#D(!0);}this.#f+=e[t],s&&(s.entrySize=r,s.totalCalculatedSize=this.#f);};}#P=e=>{};#N=(e,t,r)=>{};#L=(e,t,r,s)=>{if(r||s)throw new TypeError("cannot set size without setting maxSize or maxEntrySize on cache");return 0};*#I({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#h;!(!this.#M(t)||((e||!this.#w(t))&&(yield t),t===this.#d));)t=this.#y[t];}*#O({allowStale:e=this.allowStale}={}){if(this.#c)for(let t=this.#d;!(!this.#M(t)||((e||!this.#w(t))&&(yield t),t===this.#h));)t=this.#g[t];}#M(e){return e!==void 0&&this.#a.get(this.#l[e])===e}*entries(){for(let e of this.#I())this.#s[e]!==void 0&&this.#l[e]!==void 0&&!this.#u(this.#s[e])&&(yield [this.#l[e],this.#s[e]]);}*rentries(){for(let e of this.#O())this.#s[e]!==void 0&&this.#l[e]!==void 0&&!this.#u(this.#s[e])&&(yield [this.#l[e],this.#s[e]]);}*keys(){for(let e of this.#I()){let t=this.#l[e];t!==void 0&&!this.#u(this.#s[e])&&(yield t);}}*rkeys(){for(let e of this.#O()){let t=this.#l[e];t!==void 0&&!this.#u(this.#s[e])&&(yield t);}}*values(){for(let e of this.#I())this.#s[e]!==void 0&&!this.#u(this.#s[e])&&(yield this.#s[e]);}*rvalues(){for(let e of this.#O())this.#s[e]!==void 0&&!this.#u(this.#s[e])&&(yield this.#s[e]);}[Symbol.iterator](){return this.entries()}[Symbol.toStringTag]="LRUCache";find(e,t={}){for(let r of this.#I()){let s=this.#s[r],i=this.#u(s)?s.__staleWhileFetching:s;if(i!==void 0&&e(i,this.#l[r],this))return this.get(this.#l[r],t)}}forEach(e,t=this){for(let r of this.#I()){let s=this.#s[r],i=this.#u(s)?s.__staleWhileFetching:s;i!==void 0&&e.call(t,i,this.#l[r],this);}}rforEach(e,t=this){for(let r of this.#O()){let s=this.#s[r],i=this.#u(s)?s.__staleWhileFetching:s;i!==void 0&&e.call(t,i,this.#l[r],this);}}purgeStale(){let e=!1;for(let t of this.#O({allowStale:!0}))this.#w(t)&&(this.#$(this.#l[t],"expire"),e=!0);return e}info(e){let t=this.#a.get(e);if(t===void 0)return;let r=this.#s[t],s=this.#u(r)?r.__staleWhileFetching:r;if(s===void 0)return;let i={value:s};if(this.#v&&this.#x){let o=this.#v[t],a=this.#x[t];if(o&&a){let l=o-(Ls.now()-a);i.ttl=l,i.start=Date.now();}}return this.#b&&(i.size=this.#b[t]),i}dump(){let e=[];for(let t of this.#I({allowStale:!0})){let r=this.#l[t],s=this.#s[t],i=this.#u(s)?s.__staleWhileFetching:s;if(i===void 0||r===void 0)continue;let o={value:i};if(this.#v&&this.#x){o.ttl=this.#v[t];let a=Ls.now()-this.#x[t];o.start=Math.floor(Date.now()-a);}this.#b&&(o.size=this.#b[t]),e.unshift([r,o]);}return e}load(e){this.clear();for(let[t,r]of e){if(r.start){let s=Date.now()-r.start;r.start=Ls.now()-s;}this.set(t,r.value,r);}}set(e,t,r={}){if(t===void 0)return this.delete(e),this;let{ttl:s=this.ttl,start:i,noDisposeOnSet:o=this.noDisposeOnSet,sizeCalculation:a=this.sizeCalculation,status:l}=r,{noUpdateTTL:c=this.noUpdateTTL}=r,u=this.#L(e,t,r.size||0,a);if(this.maxEntrySize&&u>this.maxEntrySize)return l&&(l.set="miss",l.maxEntrySizeExceeded=!0),this.#$(e,"set"),this;let f=this.#c===0?void 0:this.#a.get(e);if(f===void 0)f=this.#c===0?this.#h:this.#_.length!==0?this.#_.pop():this.#c===this.#e?this.#D(!1):this.#c,this.#l[f]=e,this.#s[f]=t,this.#a.set(e,f),this.#g[this.#h]=f,this.#y[f]=this.#h,this.#h=f,this.#c++,this.#N(f,u,l),l&&(l.set="add"),c=!1;else {this.#j(f);let h=this.#s[f];if(t!==h){if(this.#S&&this.#u(h)){h.__abortController.abort(new Error("replaced"));let{__staleWhileFetching:m}=h;m!==void 0&&!o&&(this.#A&&this.#i?.(m,e,"set"),this.#p&&this.#m?.push([m,e,"set"]));}else o||(this.#A&&this.#i?.(h,e,"set"),this.#p&&this.#m?.push([h,e,"set"]));if(this.#P(f),this.#N(f,u,l),this.#s[f]=t,l){l.set="replace";let m=h&&this.#u(h)?h.__staleWhileFetching:h;m!==void 0&&(l.oldValue=m);}}else l&&(l.set="update");}if(s!==0&&!this.#v&&this.#R(),this.#v&&(c||this.#T(f,s,i),l&&this.#n(l,f)),!o&&this.#p&&this.#m){let h=this.#m,m;for(;m=h?.shift();)this.#r?.(...m);}return this}pop(){try{for(;this.#c;){let e=this.#s[this.#d];if(this.#D(!0),this.#u(e)){if(e.__staleWhileFetching)return e.__staleWhileFetching}else if(e!==void 0)return e}}finally{if(this.#p&&this.#m){let e=this.#m,t;for(;t=e?.shift();)this.#r?.(...t);}}}#D(e){let t=this.#d,r=this.#l[t],s=this.#s[t];return this.#S&&this.#u(s)?s.__abortController.abort(new Error("evicted")):(this.#A||this.#p)&&(this.#A&&this.#i?.(s,r,"evict"),this.#p&&this.#m?.push([s,r,"evict"])),this.#P(t),e&&(this.#l[t]=void 0,this.#s[t]=void 0,this.#_.push(t)),this.#c===1?(this.#d=this.#h=0,this.#_.length=0):this.#d=this.#g[t],this.#a.delete(r),this.#c--,t}has(e,t={}){let{updateAgeOnHas:r=this.updateAgeOnHas,status:s}=t,i=this.#a.get(e);if(i!==void 0){let o=this.#s[i];if(this.#u(o)&&o.__staleWhileFetching===void 0)return !1;if(this.#w(i))s&&(s.has="stale",this.#n(s,i));else return r&&this.#C(i),s&&(s.has="hit",this.#n(s,i)),!0}else s&&(s.has="miss");return !1}peek(e,t={}){let{allowStale:r=this.allowStale}=t,s=this.#a.get(e);if(s===void 0||!r&&this.#w(s))return;let i=this.#s[s];return this.#u(i)?i.__staleWhileFetching:i}#B(e,t,r,s){let i=t===void 0?void 0:this.#s[t];if(this.#u(i))return i;let o=new xc,{signal:a}=r;a?.addEventListener("abort",()=>o.abort(a.reason),{signal:o.signal});let l={signal:o.signal,options:r,context:s},c=(d,g=!1)=>{let{aborted:y}=o.signal,w=r.ignoreFetchAbort&&d!==void 0;if(r.status&&(y&&!g?(r.status.fetchAborted=!0,r.status.fetchError=o.signal.reason,w&&(r.status.fetchAbortIgnored=!0)):r.status.fetchResolved=!0),y&&!w&&!g)return f(o.signal.reason);let v=m;return this.#s[t]===m&&(d===void 0?v.__staleWhileFetching?this.#s[t]=v.__staleWhileFetching:this.#$(e,"fetch"):(r.status&&(r.status.fetchUpdated=!0),this.set(e,d,l.options))),d},u=d=>(r.status&&(r.status.fetchRejected=!0,r.status.fetchError=d),f(d)),f=d=>{let{aborted:g}=o.signal,y=g&&r.allowStaleOnFetchAbort,w=y||r.allowStaleOnFetchRejection,v=w||r.noDeleteOnFetchRejection,A=m;if(this.#s[t]===m&&(!v||A.__staleWhileFetching===void 0?this.#$(e,"fetch"):y||(this.#s[t]=A.__staleWhileFetching)),w)return r.status&&A.__staleWhileFetching!==void 0&&(r.status.returnedStale=!0),A.__staleWhileFetching;if(A.__returned===A)throw d},h=(d,g)=>{let y=this.#o?.(e,i,l);y&&y instanceof Promise&&y.then(w=>d(w===void 0?void 0:w),g),o.signal.addEventListener("abort",()=>{(!r.ignoreFetchAbort||r.allowStaleOnFetchAbort)&&(d(void 0),r.allowStaleOnFetchAbort&&(d=w=>c(w,!0)));});};r.status&&(r.status.fetchDispatched=!0);let m=new Promise(h).then(c,u),p=Object.assign(m,{__abortController:o,__staleWhileFetching:i,__returned:void 0});return t===void 0?(this.set(e,p,{...l.options,status:void 0}),t=this.#a.get(e)):this.#s[t]=p,p}#u(e){if(!this.#S)return !1;let t=e;return !!t&&t instanceof Promise&&t.hasOwnProperty("__staleWhileFetching")&&t.__abortController instanceof xc}async fetch(e,t={}){let{allowStale:r=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,ttl:o=this.ttl,noDisposeOnSet:a=this.noDisposeOnSet,size:l=0,sizeCalculation:c=this.sizeCalculation,noUpdateTTL:u=this.noUpdateTTL,noDeleteOnFetchRejection:f=this.noDeleteOnFetchRejection,allowStaleOnFetchRejection:h=this.allowStaleOnFetchRejection,ignoreFetchAbort:m=this.ignoreFetchAbort,allowStaleOnFetchAbort:p=this.allowStaleOnFetchAbort,context:d,forceRefresh:g=!1,status:y,signal:w}=t;if(!this.#S)return y&&(y.fetch="get"),this.get(e,{allowStale:r,updateAgeOnGet:s,noDeleteOnStaleGet:i,status:y});let v={allowStale:r,updateAgeOnGet:s,noDeleteOnStaleGet:i,ttl:o,noDisposeOnSet:a,size:l,sizeCalculation:c,noUpdateTTL:u,noDeleteOnFetchRejection:f,allowStaleOnFetchRejection:h,allowStaleOnFetchAbort:p,ignoreFetchAbort:m,status:y,signal:w},A=this.#a.get(e);if(A===void 0){y&&(y.fetch="miss");let E=this.#B(e,A,v,d);return E.__returned=E}else {let E=this.#s[A];if(this.#u(E)){let $=r&&E.__staleWhileFetching!==void 0;return y&&(y.fetch="inflight",$&&(y.returnedStale=!0)),$?E.__staleWhileFetching:E.__returned=E}let S=this.#w(A);if(!g&&!S)return y&&(y.fetch="hit"),this.#j(A),s&&this.#C(A),y&&this.#n(y,A),E;let C=this.#B(e,A,v,d),x=C.__staleWhileFetching!==void 0&&r;return y&&(y.fetch=S?"stale":"refresh",x&&S&&(y.returnedStale=!0)),x?C.__staleWhileFetching:C.__returned=C}}async forceFetch(e,t={}){let r=await this.fetch(e,t);if(r===void 0)throw new Error("fetch() returned undefined");return r}memo(e,t={}){let r=this.#E;if(!r)throw new Error("no memoMethod provided to constructor");let{context:s,forceRefresh:i,...o}=t,a=this.get(e,o);if(!i&&a!==void 0)return a;let l=r(e,a,{options:o,context:s});return this.set(e,l,o),l}get(e,t={}){let{allowStale:r=this.allowStale,updateAgeOnGet:s=this.updateAgeOnGet,noDeleteOnStaleGet:i=this.noDeleteOnStaleGet,status:o}=t,a=this.#a.get(e);if(a!==void 0){let l=this.#s[a],c=this.#u(l);return o&&this.#n(o,a),this.#w(a)?(o&&(o.get="stale"),c?(o&&r&&l.__staleWhileFetching!==void 0&&(o.returnedStale=!0),r?l.__staleWhileFetching:void 0):(i||this.#$(e,"expire"),o&&r&&(o.returnedStale=!0),r?l:void 0)):(o&&(o.get="hit"),c?l.__staleWhileFetching:(this.#j(a),s&&this.#C(a),l))}else o&&(o.get="miss");}#F(e,t){this.#y[t]=e,this.#g[e]=t;}#j(e){e!==this.#h&&(e===this.#d?this.#d=this.#g[e]:this.#F(this.#y[e],this.#g[e]),this.#F(this.#h,e),this.#h=e);}delete(e){return this.#$(e,"delete")}#$(e,t){let r=!1;if(this.#c!==0){let s=this.#a.get(e);if(s!==void 0)if(r=!0,this.#c===1)this.#U(t);else {this.#P(s);let i=this.#s[s];if(this.#u(i)?i.__abortController.abort(new Error("deleted")):(this.#A||this.#p)&&(this.#A&&this.#i?.(i,e,t),this.#p&&this.#m?.push([i,e,t])),this.#a.delete(e),this.#l[s]=void 0,this.#s[s]=void 0,s===this.#h)this.#h=this.#y[s];else if(s===this.#d)this.#d=this.#g[s];else {let o=this.#y[s];this.#g[o]=this.#g[s];let a=this.#g[s];this.#y[a]=this.#y[s];}this.#c--,this.#_.push(s);}}if(this.#p&&this.#m?.length){let s=this.#m,i;for(;i=s?.shift();)this.#r?.(...i);}return r}clear(){return this.#U("delete")}#U(e){for(let t of this.#O({allowStale:!0})){let r=this.#s[t];if(this.#u(r))r.__abortController.abort(new Error("deleted"));else {let s=this.#l[t];this.#A&&this.#i?.(r,s,e),this.#p&&this.#m?.push([r,s,e]);}}if(this.#a.clear(),this.#s.fill(void 0),this.#l.fill(void 0),this.#v&&this.#x&&(this.#v.fill(0),this.#x.fill(0)),this.#b&&this.#b.fill(0),this.#d=0,this.#h=0,this.#_.length=0,this.#f=0,this.#c=0,this.#p&&this.#m){let t=this.#m,r;for(;r=t?.shift();)this.#r?.(...r);}}},U_=typeof process=="object"&&process?process:{stdout:null,stderr:null},yU=n=>!!n&&typeof n=="object"&&(n instanceof ri||n instanceof Xr__default.default||wU(n)||vU(n)),wU=n=>!!n&&typeof n=="object"&&n instanceof ea.EventEmitter&&typeof n.pipe=="function"&&n.pipe!==Xr__default.default.Writable.prototype.pipe,vU=n=>!!n&&typeof n=="object"&&n instanceof ea.EventEmitter&&typeof n.write=="function"&&typeof n.end=="function",In=Symbol("EOF"),On=Symbol("maybeEmitEnd"),Yn=Symbol("emittedEnd"),$l=Symbol("emittingEnd"),lo=Symbol("emittedError"),Tl=Symbol("closed"),Q_=Symbol("read"),Pl=Symbol("flush"),W_=Symbol("flushChunk"),Xt=Symbol("encoding"),Ms=Symbol("decoder"),Qe=Symbol("flowing"),co=Symbol("paused"),Qs=Symbol("resume"),We=Symbol("buffer"),ut=Symbol("pipes"),qe=Symbol("bufferLength"),Yd=Symbol("bufferPush"),Nl=Symbol("bufferShift"),Ze=Symbol("objectMode"),Ne=Symbol("destroyed"),Xd=Symbol("error"),Zd=Symbol("emitData"),q_=Symbol("emitEnd"),ep=Symbol("emitEnd2"),un=Symbol("async"),tp=Symbol("abort"),Ll=Symbol("aborted"),uo=Symbol("signal"),Rr=Symbol("dataListeners"),bt=Symbol("discarded"),fo=n=>Promise.resolve().then(n),EU=n=>n(),AU=n=>n==="end"||n==="finish"||n==="prefinish",SU=n=>n instanceof ArrayBuffer||!!n&&typeof n=="object"&&n.constructor&&n.constructor.name==="ArrayBuffer"&&n.byteLength>=0,_U=n=>!Buffer.isBuffer(n)&&ArrayBuffer.isView(n),Ic=class{src;dest;opts;ondrain;constructor(e,t,r){this.src=e,this.dest=t,this.opts=r,this.ondrain=()=>e[Qs](),this.dest.on("drain",this.ondrain);}unpipe(){this.dest.removeListener("drain",this.ondrain);}proxyErrors(e){}end(){this.unpipe(),this.opts.end&&this.dest.end();}},lm=class extends Ic{unpipe(){this.src.removeListener("error",this.proxyErrors),super.unpipe();}constructor(e,t,r){super(e,t,r),this.proxyErrors=s=>t.emit("error",s),e.on("error",this.proxyErrors);}},bU=n=>!!n.objectMode,xU=n=>!n.objectMode&&!!n.encoding&&n.encoding!=="buffer",ri=class extends ea.EventEmitter{[Qe]=!1;[co]=!1;[ut]=[];[We]=[];[Ze];[Xt];[un];[Ms];[In]=!1;[Yn]=!1;[$l]=!1;[Tl]=!1;[lo]=null;[qe]=0;[Ne]=!1;[uo];[Ll]=!1;[Rr]=0;[bt]=!1;writable=!0;readable=!0;constructor(...e){let t=e[0]||{};if(super(),t.objectMode&&typeof t.encoding=="string")throw new TypeError("Encoding and objectMode may not be used together");bU(t)?(this[Ze]=!0,this[Xt]=null):xU(t)?(this[Xt]=t.encoding,this[Ze]=!1):(this[Ze]=!1,this[Xt]=null),this[un]=!!t.async,this[Ms]=this[Xt]?new string_decoder.StringDecoder(this[Xt]):null,t&&t.debugExposeBuffer===!0&&Object.defineProperty(this,"buffer",{get:()=>this[We]}),t&&t.debugExposePipes===!0&&Object.defineProperty(this,"pipes",{get:()=>this[ut]});let{signal:r}=t;r&&(this[uo]=r,r.aborted?this[tp]():r.addEventListener("abort",()=>this[tp]()));}get bufferLength(){return this[qe]}get encoding(){return this[Xt]}set encoding(e){throw new Error("Encoding must be set at instantiation time")}setEncoding(e){throw new Error("Encoding must be set at instantiation time")}get objectMode(){return this[Ze]}set objectMode(e){throw new Error("objectMode must be set at instantiation time")}get async(){return this[un]}set async(e){this[un]=this[un]||!!e;}[tp](){this[Ll]=!0,this.emit("abort",this[uo]?.reason),this.destroy(this[uo]?.reason);}get aborted(){return this[Ll]}set aborted(e){}write(e,t,r){if(this[Ll])return !1;if(this[In])throw new Error("write after end");if(this[Ne])return this.emit("error",Object.assign(new Error("Cannot call write after a stream was destroyed"),{code:"ERR_STREAM_DESTROYED"})),!0;typeof t=="function"&&(r=t,t="utf8"),t||(t="utf8");let s=this[un]?fo:EU;if(!this[Ze]&&!Buffer.isBuffer(e)){if(_U(e))e=Buffer.from(e.buffer,e.byteOffset,e.byteLength);else if(SU(e))e=Buffer.from(e);else if(typeof e!="string")throw new Error("Non-contiguous data written to non-objectMode stream")}return this[Ze]?(this[Qe]&&this[qe]!==0&&this[Pl](!0),this[Qe]?this.emit("data",e):this[Yd](e),this[qe]!==0&&this.emit("readable"),r&&s(r),this[Qe]):e.length?(typeof e=="string"&&!(t===this[Xt]&&!this[Ms]?.lastNeed)&&(e=Buffer.from(e,t)),Buffer.isBuffer(e)&&this[Xt]&&(e=this[Ms].write(e)),this[Qe]&&this[qe]!==0&&this[Pl](!0),this[Qe]?this.emit("data",e):this[Yd](e),this[qe]!==0&&this.emit("readable"),r&&s(r),this[Qe]):(this[qe]!==0&&this.emit("readable"),r&&s(r),this[Qe])}read(e){if(this[Ne])return null;if(this[bt]=!1,this[qe]===0||e===0||e&&e>this[qe])return this[On](),null;this[Ze]&&(e=null),this[We].length>1&&!this[Ze]&&(this[We]=[this[Xt]?this[We].join(""):Buffer.concat(this[We],this[qe])]);let t=this[Q_](e||null,this[We][0]);return this[On](),t}[Q_](e,t){if(this[Ze])this[Nl]();else {let r=t;e===r.length||e===null?this[Nl]():typeof r=="string"?(this[We][0]=r.slice(e),t=r.slice(0,e),this[qe]-=e):(this[We][0]=r.subarray(e),t=r.subarray(0,e),this[qe]-=e);}return this.emit("data",t),!this[We].length&&!this[In]&&this.emit("drain"),t}end(e,t,r){return typeof e=="function"&&(r=e,e=void 0),typeof t=="function"&&(r=t,t="utf8"),e!==void 0&&this.write(e,t),r&&this.once("end",r),this[In]=!0,this.writable=!1,(this[Qe]||!this[co])&&this[On](),this}[Qs](){this[Ne]||(!this[Rr]&&!this[ut].length&&(this[bt]=!0),this[co]=!1,this[Qe]=!0,this.emit("resume"),this[We].length?this[Pl]():this[In]?this[On]():this.emit("drain"));}resume(){return this[Qs]()}pause(){this[Qe]=!1,this[co]=!0,this[bt]=!1;}get destroyed(){return this[Ne]}get flowing(){return this[Qe]}get paused(){return this[co]}[Yd](e){this[Ze]?this[qe]+=1:this[qe]+=e.length,this[We].push(e);}[Nl](){return this[Ze]?this[qe]-=1:this[qe]-=this[We][0].length,this[We].shift()}[Pl](e=!1){do;while(this[W_](this[Nl]())&&this[We].length);!e&&!this[We].length&&!this[In]&&this.emit("drain");}[W_](e){return this.emit("data",e),this[Qe]}pipe(e,t){if(this[Ne])return e;this[bt]=!1;let r=this[Yn];return t=t||{},e===U_.stdout||e===U_.stderr?t.end=!1:t.end=t.end!==!1,t.proxyErrors=!!t.proxyErrors,r?t.end&&e.end():(this[ut].push(t.proxyErrors?new lm(this,e,t):new Ic(this,e,t)),this[un]?fo(()=>this[Qs]()):this[Qs]()),e}unpipe(e){let t=this[ut].find(r=>r.dest===e);t&&(this[ut].length===1?(this[Qe]&&this[Rr]===0&&(this[Qe]=!1),this[ut]=[]):this[ut].splice(this[ut].indexOf(t),1),t.unpipe());}addListener(e,t){return this.on(e,t)}on(e,t){let r=super.on(e,t);if(e==="data")this[bt]=!1,this[Rr]++,!this[ut].length&&!this[Qe]&&this[Qs]();else if(e==="readable"&&this[qe]!==0)super.emit("readable");else if(AU(e)&&this[Yn])super.emit(e),this.removeAllListeners(e);else if(e==="error"&&this[lo]){let s=t;this[un]?fo(()=>s.call(this,this[lo])):s.call(this,this[lo]);}return r}removeListener(e,t){return this.off(e,t)}off(e,t){let r=super.off(e,t);return e==="data"&&(this[Rr]=this.listeners("data").length,this[Rr]===0&&!this[bt]&&!this[ut].length&&(this[Qe]=!1)),r}removeAllListeners(e){let t=super.removeAllListeners(e);return (e==="data"||e===void 0)&&(this[Rr]=0,!this[bt]&&!this[ut].length&&(this[Qe]=!1)),t}get emittedEnd(){return this[Yn]}[On](){!this[$l]&&!this[Yn]&&!this[Ne]&&this[We].length===0&&this[In]&&(this[$l]=!0,this.emit("end"),this.emit("prefinish"),this.emit("finish"),this[Tl]&&this.emit("close"),this[$l]=!1);}emit(e,...t){let r=t[0];if(e!=="error"&&e!=="close"&&e!==Ne&&this[Ne])return !1;if(e==="data")return !this[Ze]&&!r?!1:this[un]?(fo(()=>this[Zd](r)),!0):this[Zd](r);if(e==="end")return this[q_]();if(e==="close"){if(this[Tl]=!0,!this[Yn]&&!this[Ne])return !1;let i=super.emit("close");return this.removeAllListeners("close"),i}else if(e==="error"){this[lo]=r,super.emit(Xd,r);let i=!this[uo]||this.listeners("error").length?super.emit("error",r):!1;return this[On](),i}else if(e==="resume"){let i=super.emit("resume");return this[On](),i}else if(e==="finish"||e==="prefinish"){let i=super.emit(e);return this.removeAllListeners(e),i}let s=super.emit(e,...t);return this[On](),s}[Zd](e){for(let r of this[ut])r.dest.write(e)===!1&&this.pause();let t=this[bt]?!1:super.emit("data",e);return this[On](),t}[q_](){return this[Yn]?!1:(this[Yn]=!0,this.readable=!1,this[un]?(fo(()=>this[ep]()),!0):this[ep]())}[ep](){if(this[Ms]){let t=this[Ms].end();if(t){for(let r of this[ut])r.dest.write(t);this[bt]||super.emit("data",t);}}for(let t of this[ut])t.end();let e=super.emit("end");return this.removeAllListeners("end"),e}async collect(){let e=Object.assign([],{dataLength:0});this[Ze]||(e.dataLength=0);let t=this.promise();return this.on("data",r=>{e.push(r),this[Ze]||(e.dataLength+=r.length);}),await t,e}async concat(){if(this[Ze])throw new Error("cannot concat in objectMode");let e=await this.collect();return this[Xt]?e.join(""):Buffer.concat(e,e.dataLength)}async promise(){return new Promise((e,t)=>{this.on(Ne,()=>t(new Error("stream destroyed"))),this.on("error",r=>t(r)),this.on("end",()=>e());})}[Symbol.asyncIterator](){this[bt]=!1;let e=!1,t=async()=>(this.pause(),e=!0,{value:void 0,done:!0});return {next:()=>{if(e)return t();let s=this.read();if(s!==null)return Promise.resolve({done:!1,value:s});if(this[In])return t();let i,o,a=f=>{this.off("data",l),this.off("end",c),this.off(Ne,u),t(),o(f);},l=f=>{this.off("error",a),this.off("end",c),this.off(Ne,u),this.pause(),i({value:f,done:!!this[In]});},c=()=>{this.off("error",a),this.off("data",l),this.off(Ne,u),t(),i({done:!0,value:void 0});},u=()=>a(new Error("stream destroyed"));return new Promise((f,h)=>{o=h,i=f,this.once(Ne,u),this.once("error",a),this.once("end",c),this.once("data",l);})},throw:t,return:t,[Symbol.asyncIterator](){return this}}}[Symbol.iterator](){this[bt]=!1;let e=!1,t=()=>(this.pause(),this.off(Xd,t),this.off(Ne,t),this.off("end",t),e=!0,{done:!0,value:void 0}),r=()=>{if(e)return t();let s=this.read();return s===null?t():{done:!1,value:s}};return this.once("end",t),this.once(Xd,t),this.once(Ne,t),{next:r,throw:t,return:t,[Symbol.iterator](){return this}}}destroy(e){if(this[Ne])return e?this.emit("error",e):this.emit(Ne),this;this[Ne]=!0,this[bt]=!0,this[We].length=0,this[qe]=0;let t=this;return typeof t.close=="function"&&!this[Tl]&&t.close(),e?this.emit("error",e):this.emit(Ne),this}static get isStream(){return yU}},CU=Je.realpathSync.native,xo={lstatSync:Je.lstatSync,readdir:Je.readdir,readdirSync:Je.readdirSync,readlinkSync:Je.readlinkSync,realpathSync:CU,promises:{lstat:promises.lstat,readdir:promises.readdir,readlink:promises.readlink,realpath:promises.realpath}},Qx=n=>!n||n===xo||n===Je__namespace?xo:{...xo,...n,promises:{...xo.promises,...n.promises||{}}},Wx=/^\\\\\?\\([a-z]:)\\?$/i,IU=n=>n.replace(/\//g,"\\").replace(Wx,"$1\\"),OU=/[\\\/]/,Ft=0,qx=1,Hx=2,dn=4,zx=6,Gx=8,Nr=10,Kx=12,Mt=15,ho=~Mt,np=16,H_=32,Co=64,nn=128,Ml=256,ic=512,z_=Co|nn|ic,RU=1023,rp=n=>n.isFile()?Gx:n.isDirectory()?dn:n.isSymbolicLink()?Nr:n.isCharacterDevice()?Hx:n.isBlockDevice()?zx:n.isSocket()?Kx:n.isFIFO()?qx:Ft,G_=new Map,Io=n=>{let e=G_.get(n);if(e)return e;let t=n.normalize("NFKD");return G_.set(n,t),t},K_=new Map,Dl=n=>{let e=K_.get(n);if(e)return e;let t=Io(n.toLowerCase());return K_.set(n,t),t},Oc=class extends Cc{constructor(){super({max:256});}},cm=class extends Cc{constructor(e=16*1024){super({maxSize:e,sizeCalculation:t=>t.length+1});}},Vx=Symbol("PathScurry setAsCwd"),et=class{name;root;roots;parent;nocase;isCWD=!1;#e;#t;get dev(){return this.#t}#i;get mode(){return this.#i}#r;get nlink(){return this.#r}#o;get uid(){return this.#o}#E;get gid(){return this.#E}#c;get rdev(){return this.#c}#f;get blksize(){return this.#f}#a;get ino(){return this.#a}#l;get size(){return this.#l}#s;get blocks(){return this.#s}#g;get atimeMs(){return this.#g}#y;get mtimeMs(){return this.#y}#d;get ctimeMs(){return this.#d}#h;get birthtimeMs(){return this.#h}#_;get atime(){return this.#_}#m;get mtime(){return this.#m}#b;get ctime(){return this.#b}#x;get birthtime(){return this.#x}#v;#A;#S;#p;#R;#C;#n;#T;#w;#k;get parentPath(){return (this.parent||this).fullpath()}get path(){return this.parentPath}constructor(e,t=Ft,r,s,i,o,a){this.name=e,this.#v=i?Dl(e):Io(e),this.#n=t&RU,this.nocase=i,this.roots=s,this.root=r||this,this.#T=o,this.#S=a.fullpath,this.#R=a.relative,this.#C=a.relativePosix,this.parent=a.parent,this.parent?this.#e=this.parent.#e:this.#e=Qx(a.fs);}depth(){return this.#A!==void 0?this.#A:this.parent?this.#A=this.parent.depth()+1:this.#A=0}childrenCache(){return this.#T}resolve(e){if(!e)return this;let t=this.getRootString(e),s=e.substring(t.length).split(this.splitSep);return t?this.getRoot(t).#P(s):this.#P(s)}#P(e){let t=this;for(let r of e)t=t.child(r);return t}children(){let e=this.#T.get(this);if(e)return e;let t=Object.assign([],{provisional:0});return this.#T.set(this,t),this.#n&=~np,t}child(e,t){if(e===""||e===".")return this;if(e==="..")return this.parent||this;let r=this.children(),s=this.nocase?Dl(e):Io(e);for(let l of r)if(l.#v===s)return l;let i=this.parent?this.sep:"",o=this.#S?this.#S+i+e:void 0,a=this.newChild(e,Ft,{...t,parent:this,fullpath:o});return this.canReaddir()||(a.#n|=nn),r.push(a),a}relative(){if(this.isCWD)return "";if(this.#R!==void 0)return this.#R;let e=this.name,t=this.parent;if(!t)return this.#R=this.name;let r=t.relative();return r+(!r||!t.parent?"":this.sep)+e}relativePosix(){if(this.sep==="/")return this.relative();if(this.isCWD)return "";if(this.#C!==void 0)return this.#C;let e=this.name,t=this.parent;if(!t)return this.#C=this.fullpathPosix();let r=t.relativePosix();return r+(!r||!t.parent?"":"/")+e}fullpath(){if(this.#S!==void 0)return this.#S;let e=this.name,t=this.parent;if(!t)return this.#S=this.name;let s=t.fullpath()+(t.parent?this.sep:"")+e;return this.#S=s}fullpathPosix(){if(this.#p!==void 0)return this.#p;if(this.sep==="/")return this.#p=this.fullpath();if(!this.parent){let s=this.fullpath().replace(/\\/g,"/");return /^[a-z]:\//i.test(s)?this.#p=`//?/${s}`:this.#p=s}let e=this.parent,t=e.fullpathPosix(),r=t+(!t||!e.parent?"":"/")+this.name;return this.#p=r}isUnknown(){return (this.#n&Mt)===Ft}isType(e){return this[`is${e}`]()}getType(){return this.isUnknown()?"Unknown":this.isDirectory()?"Directory":this.isFile()?"File":this.isSymbolicLink()?"SymbolicLink":this.isFIFO()?"FIFO":this.isCharacterDevice()?"CharacterDevice":this.isBlockDevice()?"BlockDevice":this.isSocket()?"Socket":"Unknown"}isFile(){return (this.#n&Mt)===Gx}isDirectory(){return (this.#n&Mt)===dn}isCharacterDevice(){return (this.#n&Mt)===Hx}isBlockDevice(){return (this.#n&Mt)===zx}isFIFO(){return (this.#n&Mt)===qx}isSocket(){return (this.#n&Mt)===Kx}isSymbolicLink(){return (this.#n&Nr)===Nr}lstatCached(){return this.#n&H_?this:void 0}readlinkCached(){return this.#w}realpathCached(){return this.#k}readdirCached(){let e=this.children();return e.slice(0,e.provisional)}canReadlink(){if(this.#w)return !0;if(!this.parent)return !1;let e=this.#n&Mt;return !(e!==Ft&&e!==Nr||this.#n&Ml||this.#n&nn)}calledReaddir(){return !!(this.#n&np)}isENOENT(){return !!(this.#n&nn)}isNamed(e){return this.nocase?this.#v===Dl(e):this.#v===Io(e)}async readlink(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=await this.#e.promises.readlink(this.fullpath()),r=(await this.parent.realpath())?.resolve(t);if(r)return this.#w=r}catch(t){this.#u(t.code);return}}readlinkSync(){let e=this.#w;if(e)return e;if(this.canReadlink()&&this.parent)try{let t=this.#e.readlinkSync(this.fullpath()),r=this.parent.realpathSync()?.resolve(t);if(r)return this.#w=r}catch(t){this.#u(t.code);return}}#N(e){this.#n|=np;for(let t=e.provisional;t<e.length;t++){let r=e[t];r&&r.#L();}}#L(){this.#n&nn||(this.#n=(this.#n|nn)&ho,this.#I());}#I(){let e=this.children();e.provisional=0;for(let t of e)t.#L();}#O(){this.#n|=ic,this.#M();}#M(){if(this.#n&Co)return;let e=this.#n;(e&Mt)===dn&&(e&=ho),this.#n=e|Co,this.#I();}#D(e=""){e==="ENOTDIR"||e==="EPERM"?this.#M():e==="ENOENT"?this.#L():this.children().provisional=0;}#B(e=""){e==="ENOTDIR"?this.parent.#M():e==="ENOENT"&&this.#L();}#u(e=""){let t=this.#n;t|=Ml,e==="ENOENT"&&(t|=nn),(e==="EINVAL"||e==="UNKNOWN")&&(t&=ho),this.#n=t,e==="ENOTDIR"&&this.parent&&this.parent.#M();}#F(e,t){return this.#$(e,t)||this.#j(e,t)}#j(e,t){let r=rp(e),s=this.newChild(e.name,r,{parent:this}),i=s.#n&Mt;return i!==dn&&i!==Nr&&i!==Ft&&(s.#n|=Co),t.unshift(s),t.provisional++,s}#$(e,t){for(let r=t.provisional;r<t.length;r++){let s=t[r];if((this.nocase?Dl(e.name):Io(e.name))===s.#v)return this.#U(e,s,r,t)}}#U(e,t,r,s){let i=t.name;return t.#n=t.#n&ho|rp(e),i!==e.name&&(t.name=e.name),r!==s.provisional&&(r===s.length-1?s.pop():s.splice(r,1),s.unshift(t)),s.provisional++,t}async lstat(){if(!(this.#n&nn))try{return this.#H(await this.#e.promises.lstat(this.fullpath())),this}catch(e){this.#B(e.code);}}lstatSync(){if(!(this.#n&nn))try{return this.#H(this.#e.lstatSync(this.fullpath())),this}catch(e){this.#B(e.code);}}#H(e){let{atime:t,atimeMs:r,birthtime:s,birthtimeMs:i,blksize:o,blocks:a,ctime:l,ctimeMs:c,dev:u,gid:f,ino:h,mode:m,mtime:p,mtimeMs:d,nlink:g,rdev:y,size:w,uid:v}=e;this.#_=t,this.#g=r,this.#x=s,this.#h=i,this.#f=o,this.#s=a,this.#b=l,this.#d=c,this.#t=u,this.#E=f,this.#a=h,this.#i=m,this.#m=p,this.#y=d,this.#r=g,this.#c=y,this.#l=w,this.#o=v;let A=rp(e);this.#n=this.#n&ho|A|H_,A!==Ft&&A!==dn&&A!==Nr&&(this.#n|=Co);}#W=[];#q=!1;#z(e){this.#q=!1;let t=this.#W.slice();this.#W.length=0,t.forEach(r=>r(null,e));}readdirCB(e,t=!1){if(!this.canReaddir()){t?e(null,[]):queueMicrotask(()=>e(null,[]));return}let r=this.children();if(this.calledReaddir()){let i=r.slice(0,r.provisional);t?e(null,i):queueMicrotask(()=>e(null,i));return}if(this.#W.push(e),this.#q)return;this.#q=!0;let s=this.fullpath();this.#e.readdir(s,{withFileTypes:!0},(i,o)=>{if(i)this.#D(i.code),r.provisional=0;else {for(let a of o)this.#F(a,r);this.#N(r);}this.#z(r.slice(0,r.provisional));});}#Q;async readdir(){if(!this.canReaddir())return [];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();if(this.#Q)await this.#Q;else {let r=()=>{};this.#Q=new Promise(s=>r=s);try{for(let s of await this.#e.promises.readdir(t,{withFileTypes:!0}))this.#F(s,e);this.#N(e);}catch(s){this.#D(s.code),e.provisional=0;}this.#Q=void 0,r();}return e.slice(0,e.provisional)}readdirSync(){if(!this.canReaddir())return [];let e=this.children();if(this.calledReaddir())return e.slice(0,e.provisional);let t=this.fullpath();try{for(let r of this.#e.readdirSync(t,{withFileTypes:!0}))this.#F(r,e);this.#N(e);}catch(r){this.#D(r.code),e.provisional=0;}return e.slice(0,e.provisional)}canReaddir(){if(this.#n&z_)return !1;let e=Mt&this.#n;return e===Ft||e===dn||e===Nr}shouldWalk(e,t){return (this.#n&dn)===dn&&!(this.#n&z_)&&!e.has(this)&&(!t||t(this))}async realpath(){if(this.#k)return this.#k;if(!((ic|Ml|nn)&this.#n))try{let e=await this.#e.promises.realpath(this.fullpath());return this.#k=this.resolve(e)}catch{this.#O();}}realpathSync(){if(this.#k)return this.#k;if(!((ic|Ml|nn)&this.#n))try{let e=this.#e.realpathSync(this.fullpath());return this.#k=this.resolve(e)}catch{this.#O();}}[Vx](e){if(e===this)return;e.isCWD=!1,this.isCWD=!0;let t=new Set([]),r=[],s=this;for(;s&&s.parent;)t.add(s),s.#R=r.join(this.sep),s.#C=r.join("/"),s=s.parent,r.push("..");for(s=e;s&&s.parent&&!t.has(s);)s.#R=void 0,s.#C=void 0,s=s.parent;}},Rc=class n extends et{sep="\\";splitSep=OU;constructor(e,t=Ft,r,s,i,o,a){super(e,t,r,s,i,o,a);}newChild(e,t=Ft,r={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}getRootString(e){return Oe.win32.parse(e).root}getRoot(e){if(e=IU(e.toUpperCase()),e===this.root.name)return this.root;for(let[t,r]of Object.entries(this.roots))if(this.sameRoot(e,t))return this.roots[e]=r;return this.roots[e]=new Uo(e,this).root}sameRoot(e,t=this.root.name){return e=e.toUpperCase().replace(/\//g,"\\").replace(Wx,"$1\\"),e===t}},kc=class n extends et{splitSep="/";sep="/";constructor(e,t=Ft,r,s,i,o,a){super(e,t,r,s,i,o,a);}getRootString(e){return e.startsWith("/")?"/":""}getRoot(e){return this.root}newChild(e,t=Ft,r={}){return new n(e,t,this.root,this.roots,this.nocase,this.childrenCache(),r)}},$c=class{root;rootPath;roots;cwd;#e;#t;#i;nocase;#r;constructor(e=process.cwd(),t,r,{nocase:s,childrenCacheSize:i=16*1024,fs:o=xo}={}){this.#r=Qx(o),(e instanceof URL||e.startsWith("file://"))&&(e=Jr.fileURLToPath(e));let a=t.resolve(e);this.roots=Object.create(null),this.rootPath=this.parseRootPath(a),this.#e=new Oc,this.#t=new Oc,this.#i=new cm(i);let l=a.substring(this.rootPath.length).split(r);if(l.length===1&&!l[0]&&l.pop(),s===void 0)throw new TypeError("must provide nocase setting to PathScurryBase ctor");this.nocase=s,this.root=this.newRoot(this.#r),this.roots[this.rootPath]=this.root;let c=this.root,u=l.length-1,f=t.sep,h=this.rootPath,m=!1;for(let p of l){let d=u--;c=c.child(p,{relative:new Array(d).fill("..").join(f),relativePosix:new Array(d).fill("..").join("/"),fullpath:h+=(m?"":f)+p}),m=!0;}this.cwd=c;}depth(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.depth()}childrenCache(){return this.#i}resolve(...e){let t="";for(let i=e.length-1;i>=0;i--){let o=e[i];if(!(!o||o===".")&&(t=t?`${o}/${t}`:o,this.isAbsolute(o)))break}let r=this.#e.get(t);if(r!==void 0)return r;let s=this.cwd.resolve(t).fullpath();return this.#e.set(t,s),s}resolvePosix(...e){let t="";for(let i=e.length-1;i>=0;i--){let o=e[i];if(!(!o||o===".")&&(t=t?`${o}/${t}`:o,this.isAbsolute(o)))break}let r=this.#t.get(t);if(r!==void 0)return r;let s=this.cwd.resolve(t).fullpathPosix();return this.#t.set(t,s),s}relative(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relative()}relativePosix(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.relativePosix()}basename(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.name}dirname(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),(e.parent||e).fullpath()}async readdir(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e,e=this.cwd);let{withFileTypes:r}=t;if(e.canReaddir()){let s=await e.readdir();return r?s:s.map(i=>i.name)}else return []}readdirSync(e=this.cwd,t={withFileTypes:!0}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e,e=this.cwd);let{withFileTypes:r=!0}=t;return e.canReaddir()?r?e.readdirSync():e.readdirSync().map(s=>s.name):[]}async lstat(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstat()}lstatSync(e=this.cwd){return typeof e=="string"&&(e=this.cwd.resolve(e)),e.lstatSync()}async readlink(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e.withFileTypes,e=this.cwd);let r=await e.readlink();return t?r:r?.fullpath()}readlinkSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e.withFileTypes,e=this.cwd);let r=e.readlinkSync();return t?r:r?.fullpath()}async realpath(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e.withFileTypes,e=this.cwd);let r=await e.realpath();return t?r:r?.fullpath()}realpathSync(e=this.cwd,{withFileTypes:t}={withFileTypes:!1}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e.withFileTypes,e=this.cwd);let r=e.realpathSync();return t?r:r?.fullpath()}async walk(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:s=!1,filter:i,walkFilter:o}=t,a=[];(!i||i(e))&&a.push(r?e:e.fullpath());let l=new Set,c=(f,h)=>{l.add(f),f.readdirCB((m,p)=>{if(m)return h(m);let d=p.length;if(!d)return h();let g=()=>{--d===0&&h();};for(let y of p)(!i||i(y))&&a.push(r?y:y.fullpath()),s&&y.isSymbolicLink()?y.realpath().then(w=>w?.isUnknown()?w.lstat():w).then(w=>w?.shouldWalk(l,o)?c(w,g):g()):y.shouldWalk(l,o)?c(y,g):g();},!0);},u=e;return new Promise((f,h)=>{c(u,m=>{if(m)return h(m);f(a);});})}walkSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:s=!1,filter:i,walkFilter:o}=t,a=[];(!i||i(e))&&a.push(r?e:e.fullpath());let l=new Set([e]);for(let c of l){let u=c.readdirSync();for(let f of u){(!i||i(f))&&a.push(r?f:f.fullpath());let h=f;if(f.isSymbolicLink()){if(!(s&&(h=f.realpathSync())))continue;h.isUnknown()&&h.lstatSync();}h.shouldWalk(l,o)&&l.add(h);}}return a}[Symbol.asyncIterator](){return this.iterate()}iterate(e=this.cwd,t={}){return typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e,e=this.cwd),this.stream(e,t)[Symbol.asyncIterator]()}[Symbol.iterator](){return this.iterateSync()}*iterateSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:s=!1,filter:i,walkFilter:o}=t;(!i||i(e))&&(yield r?e:e.fullpath());let a=new Set([e]);for(let l of a){let c=l.readdirSync();for(let u of c){(!i||i(u))&&(yield r?u:u.fullpath());let f=u;if(u.isSymbolicLink()){if(!(s&&(f=u.realpathSync())))continue;f.isUnknown()&&f.lstatSync();}f.shouldWalk(a,o)&&a.add(f);}}}stream(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:s=!1,filter:i,walkFilter:o}=t,a=new ri({objectMode:!0});(!i||i(e))&&a.write(r?e:e.fullpath());let l=new Set,c=[e],u=0,f=()=>{let h=!1;for(;!h;){let m=c.shift();if(!m){u===0&&a.end();return}u++,l.add(m);let p=(g,y,w=!1)=>{if(g)return a.emit("error",g);if(s&&!w){let v=[];for(let A of y)A.isSymbolicLink()&&v.push(A.realpath().then(E=>E?.isUnknown()?E.lstat():E));if(v.length){Promise.all(v).then(()=>p(null,y,!0));return}}for(let v of y)v&&(!i||i(v))&&(a.write(r?v:v.fullpath())||(h=!0));u--;for(let v of y){let A=v.realpathCached()||v;A.shouldWalk(l,o)&&c.push(A);}h&&!a.flowing?a.once("drain",f):d||f();},d=!0;m.readdirCB(p,!0),d=!1;}};return f(),a}streamSync(e=this.cwd,t={}){typeof e=="string"?e=this.cwd.resolve(e):e instanceof et||(t=e,e=this.cwd);let{withFileTypes:r=!0,follow:s=!1,filter:i,walkFilter:o}=t,a=new ri({objectMode:!0}),l=new Set;(!i||i(e))&&a.write(r?e:e.fullpath());let c=[e],u=0,f=()=>{let h=!1;for(;!h;){let m=c.shift();if(!m){u===0&&a.end();return}u++,l.add(m);let p=m.readdirSync();for(let d of p)(!i||i(d))&&(a.write(r?d:d.fullpath())||(h=!0));u--;for(let d of p){let g=d;if(d.isSymbolicLink()){if(!(s&&(g=d.realpathSync())))continue;g.isUnknown()&&g.lstatSync();}g.shouldWalk(l,o)&&c.push(g);}}h&&!a.flowing&&a.once("drain",f);};return f(),a}chdir(e=this.cwd){let t=this.cwd;this.cwd=typeof e=="string"?this.cwd.resolve(e):e,this.cwd[Vx](t);}},Uo=class extends $c{sep="\\";constructor(e=process.cwd(),t={}){let{nocase:r=!0}=t;super(e,Oe.win32,"\\",{...t,nocase:r}),this.nocase=r;for(let s=this.cwd;s;s=s.parent)s.nocase=this.nocase;}parseRootPath(e){return Oe.win32.parse(e).root.toUpperCase()}newRoot(e){return new Rc(this.rootPath,dn,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")||e.startsWith("\\")||/^[a-z]:(\/|\\)/i.test(e)}},Qo=class extends $c{sep="/";constructor(e=process.cwd(),t={}){let{nocase:r=!1}=t;super(e,Oe.posix,"/",{...t,nocase:r}),this.nocase=r;}parseRootPath(e){return "/"}newRoot(e){return new kc(this.rootPath,dn,void 0,this.roots,this.nocase,this.childrenCache(),{fs:e})}isAbsolute(e){return e.startsWith("/")}},Tc=class extends Qo{constructor(e=process.cwd(),t={}){let{nocase:r=!0}=t;super(e,{...t,nocase:r});}};process.platform;kU=process.platform==="win32"?Uo:process.platform==="darwin"?Tc:Qo,$U=n=>n.length>=1,TU=n=>n.length>=1,Pc=class n{#e;#t;#i;length;#r;#o;#E;#c;#f;#a;#l=!0;constructor(e,t,r,s){if(!$U(e))throw new TypeError("empty pattern list");if(!TU(t))throw new TypeError("empty glob list");if(t.length!==e.length)throw new TypeError("mismatched pattern list and glob list lengths");if(this.length=e.length,r<0||r>=this.length)throw new TypeError("index out of range");if(this.#e=e,this.#t=t,this.#i=r,this.#r=s,this.#i===0){if(this.isUNC()){let[i,o,a,l,...c]=this.#e,[u,f,h,m,...p]=this.#t;c[0]===""&&(c.shift(),p.shift());let d=[i,o,a,l,""].join("/"),g=[u,f,h,m,""].join("/");this.#e=[d,...c],this.#t=[g,...p],this.length=this.#e.length;}else if(this.isDrive()||this.isAbsolute()){let[i,...o]=this.#e,[a,...l]=this.#t;o[0]===""&&(o.shift(),l.shift());let c=i+"/",u=a+"/";this.#e=[c,...o],this.#t=[u,...l],this.length=this.#e.length;}}}pattern(){return this.#e[this.#i]}isString(){return typeof this.#e[this.#i]=="string"}isGlobstar(){return this.#e[this.#i]===ft}isRegExp(){return this.#e[this.#i]instanceof RegExp}globString(){return this.#E=this.#E||(this.#i===0?this.isAbsolute()?this.#t[0]+this.#t.slice(1).join("/"):this.#t.join("/"):this.#t.slice(this.#i).join("/"))}hasMore(){return this.length>this.#i+1}rest(){return this.#o!==void 0?this.#o:this.hasMore()?(this.#o=new n(this.#e,this.#t,this.#i+1,this.#r),this.#o.#a=this.#a,this.#o.#f=this.#f,this.#o.#c=this.#c,this.#o):this.#o=null}isUNC(){let e=this.#e;return this.#f!==void 0?this.#f:this.#f=this.#r==="win32"&&this.#i===0&&e[0]===""&&e[1]===""&&typeof e[2]=="string"&&!!e[2]&&typeof e[3]=="string"&&!!e[3]}isDrive(){let e=this.#e;return this.#c!==void 0?this.#c:this.#c=this.#r==="win32"&&this.#i===0&&this.length>1&&typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0])}isAbsolute(){let e=this.#e;return this.#a!==void 0?this.#a:this.#a=e[0]===""&&e.length>1||this.isDrive()||this.isUNC()}root(){let e=this.#e[0];return typeof e=="string"&&this.isAbsolute()&&this.#i===0?e:""}checkFollowGlobstar(){return !(this.#i===0||!this.isGlobstar()||!this.#l)}markFollowGlobstar(){return this.#i===0||!this.isGlobstar()||!this.#l?!1:(this.#l=!1,!0)}},PU=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Nc=class{relative;relativeChildren;absolute;absoluteChildren;platform;mmopts;constructor(e,{nobrace:t,nocase:r,noext:s,noglobstar:i,platform:o=PU}){this.relative=[],this.absolute=[],this.relativeChildren=[],this.absoluteChildren=[],this.platform=o,this.mmopts={dot:!0,nobrace:t,nocase:r,noext:s,noglobstar:i,optimizationLevel:2,platform:o,nocomment:!0,nonegate:!0};for(let a of e)this.add(a);}add(e){let t=new wn(e,this.mmopts);for(let r=0;r<t.set.length;r++){let s=t.set[r],i=t.globParts[r];if(!s||!i)throw new Error("invalid pattern object");for(;s[0]==="."&&i[0]===".";)s.shift(),i.shift();let o=new Pc(s,i,0,this.platform),a=new wn(o.globString(),this.mmopts),l=i[i.length-1]==="**",c=o.isAbsolute();c?this.absolute.push(a):this.relative.push(a),l&&(c?this.absoluteChildren.push(a):this.relativeChildren.push(a));}}ignored(e){let t=e.fullpath(),r=`${t}/`,s=e.relative()||".",i=`${s}/`;for(let o of this.relative)if(o.match(s)||o.match(i))return !0;for(let o of this.absolute)if(o.match(t)||o.match(r))return !0;return !1}childrenIgnored(e){let t=e.fullpath()+"/",r=(e.relative()||".")+"/";for(let s of this.relativeChildren)if(s.match(r))return !0;for(let s of this.absoluteChildren)if(s.match(t))return !0;return !1}},um=class n{store;constructor(e=new Map){this.store=e;}copy(){return new n(new Map(this.store))}hasWalked(e,t){return this.store.get(e.fullpath())?.has(t.globString())}storeWalked(e,t){let r=e.fullpath(),s=this.store.get(r);s?s.add(t.globString()):this.store.set(r,new Set([t.globString()]));}},fm=class{store=new Map;add(e,t,r){let s=(t?2:0)|(r?1:0),i=this.store.get(e);this.store.set(e,i===void 0?s:s&i);}entries(){return [...this.store.entries()].map(([e,t])=>[e,!!(t&2),!!(t&1)])}},hm=class{store=new Map;add(e,t){if(!e.canReaddir())return;let r=this.store.get(e);r?r.find(s=>s.globString()===t.globString())||r.push(t):this.store.set(e,[t]);}get(e){let t=this.store.get(e);if(!t)throw new Error("attempting to walk unknown path");return t}entries(){return this.keys().map(e=>[e,this.store.get(e)])}keys(){return [...this.store.keys()].filter(e=>e.canReaddir())}},Lc=class n{hasWalkedCache;matches=new fm;subwalks=new hm;patterns;follow;dot;opts;constructor(e,t){this.opts=e,this.follow=!!e.follow,this.dot=!!e.dot,this.hasWalkedCache=t?t.copy():new um;}processPatterns(e,t){this.patterns=t;let r=t.map(s=>[e,s]);for(let[s,i]of r){this.hasWalkedCache.storeWalked(s,i);let o=i.root(),a=i.isAbsolute()&&this.opts.absolute!==!1;if(o){s=s.resolve(o==="/"&&this.opts.root!==void 0?this.opts.root:o);let f=i.rest();if(f)i=f;else {this.matches.add(s,!0,!1);continue}}if(s.isENOENT())continue;let l,c,u=!1;for(;typeof(l=i.pattern())=="string"&&(c=i.rest());)s=s.resolve(l),i=c,u=!0;if(l=i.pattern(),c=i.rest(),u){if(this.hasWalkedCache.hasWalked(s,i))continue;this.hasWalkedCache.storeWalked(s,i);}if(typeof l=="string"){let f=l===".."||l===""||l===".";this.matches.add(s.resolve(l),a,f);continue}else if(l===ft){(!s.isSymbolicLink()||this.follow||i.checkFollowGlobstar())&&this.subwalks.add(s,i);let f=c?.pattern(),h=c?.rest();if(!c||(f===""||f===".")&&!h)this.matches.add(s,a,f===""||f===".");else if(f===".."){let m=s.parent||s;h?this.hasWalkedCache.hasWalked(m,h)||this.subwalks.add(m,h):this.matches.add(m,a,!0);}}else l instanceof RegExp&&this.subwalks.add(s,i);}return this}subwalkTargets(){return this.subwalks.keys()}child(){return new n(this.opts,this.hasWalkedCache)}filterEntries(e,t){let r=this.subwalks.get(e),s=this.child();for(let i of t)for(let o of r){let a=o.isAbsolute(),l=o.pattern(),c=o.rest();l===ft?s.testGlobstar(i,o,c,a):l instanceof RegExp?s.testRegExp(i,l,c,a):s.testString(i,l,c,a);}return s}testGlobstar(e,t,r,s){if((this.dot||!e.name.startsWith("."))&&(t.hasMore()||this.matches.add(e,s,!1),e.canReaddir()&&(this.follow||!e.isSymbolicLink()?this.subwalks.add(e,t):e.isSymbolicLink()&&(r&&t.checkFollowGlobstar()?this.subwalks.add(e,r):t.markFollowGlobstar()&&this.subwalks.add(e,t)))),r){let i=r.pattern();if(typeof i=="string"&&i!==".."&&i!==""&&i!==".")this.testString(e,i,r.rest(),s);else if(i===".."){let o=e.parent||e;this.subwalks.add(o,r);}else i instanceof RegExp&&this.testRegExp(e,i,r.rest(),s);}}testRegExp(e,t,r,s){t.test(e.name)&&(r?this.subwalks.add(e,r):this.matches.add(e,s,!1));}testString(e,t,r,s){e.isNamed(t)&&(r?this.subwalks.add(e,r):this.matches.add(e,s,!1));}},NU=(n,e)=>typeof n=="string"?new Nc([n],e):Array.isArray(n)?new Nc(n,e):n,Mc=class{path;patterns;opts;seen=new Set;paused=!1;aborted=!1;#e=[];#t;#i;signal;maxDepth;includeChildMatches;constructor(e,t,r){if(this.patterns=e,this.path=t,this.opts=r,this.#i=!r.posix&&r.platform==="win32"?"\\":"/",this.includeChildMatches=r.includeChildMatches!==!1,(r.ignore||!this.includeChildMatches)&&(this.#t=NU(r.ignore??[],r),!this.includeChildMatches&&typeof this.#t.add!="function")){let s="cannot ignore child matches, ignore lacks add() method.";throw new Error(s)}this.maxDepth=r.maxDepth||1/0,r.signal&&(this.signal=r.signal,this.signal.addEventListener("abort",()=>{this.#e.length=0;}));}#r(e){return this.seen.has(e)||!!this.#t?.ignored?.(e)}#o(e){return !!this.#t?.childrenIgnored?.(e)}pause(){this.paused=!0;}resume(){if(this.signal?.aborted)return;this.paused=!1;let e;for(;!this.paused&&(e=this.#e.shift());)e();}onResume(e){this.signal?.aborted||(this.paused?this.#e.push(e):e());}async matchCheck(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||await e.realpath(),!r)return;e=r;}let i=e.isUnknown()||this.opts.stat?await e.lstat():e;if(this.opts.follow&&this.opts.nodir&&i?.isSymbolicLink()){let o=await i.realpath();o&&(o.isUnknown()||this.opts.stat)&&await o.lstat();}return this.matchCheckTest(i,t)}matchCheckTest(e,t){return e&&(this.maxDepth===1/0||e.depth()<=this.maxDepth)&&(!t||e.canReaddir())&&(!this.opts.nodir||!e.isDirectory())&&(!this.opts.nodir||!this.opts.follow||!e.isSymbolicLink()||!e.realpathCached()?.isDirectory())&&!this.#r(e)?e:void 0}matchCheckSync(e,t){if(t&&this.opts.nodir)return;let r;if(this.opts.realpath){if(r=e.realpathCached()||e.realpathSync(),!r)return;e=r;}let i=e.isUnknown()||this.opts.stat?e.lstatSync():e;if(this.opts.follow&&this.opts.nodir&&i?.isSymbolicLink()){let o=i.realpathSync();o&&(o?.isUnknown()||this.opts.stat)&&o.lstatSync();}return this.matchCheckTest(i,t)}matchFinish(e,t){if(this.#r(e))return;if(!this.includeChildMatches&&this.#t?.add){let i=`${e.relativePosix()}/**`;this.#t.add(i);}let r=this.opts.absolute===void 0?t:this.opts.absolute;this.seen.add(e);let s=this.opts.mark&&e.isDirectory()?this.#i:"";if(this.opts.withFileTypes)this.matchEmit(e);else if(r){let i=this.opts.posix?e.fullpathPosix():e.fullpath();this.matchEmit(i+s);}else {let i=this.opts.posix?e.relativePosix():e.relative(),o=this.opts.dotRelative&&!i.startsWith(".."+this.#i)?"."+this.#i:"";this.matchEmit(i?o+i+s:"."+s);}}async match(e,t,r){let s=await this.matchCheck(e,r);s&&this.matchFinish(s,t);}matchSync(e,t,r){let s=this.matchCheckSync(e,r);s&&this.matchFinish(s,t);}walkCB(e,t,r){this.signal?.aborted&&r(),this.walkCB2(e,t,new Lc(this.opts),r);}walkCB2(e,t,r,s){if(this.#o(e))return s();if(this.signal?.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2(e,t,r,s));return}r.processPatterns(e,t);let i=1,o=()=>{--i===0&&s();};for(let[a,l,c]of r.matches.entries())this.#r(a)||(i++,this.match(a,l,c).then(()=>o()));for(let a of r.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;i++;let l=a.readdirCached();a.calledReaddir()?this.walkCB3(a,l,r,o):a.readdirCB((c,u)=>this.walkCB3(a,u,r,o),!0);}o();}walkCB3(e,t,r,s){r=r.filterEntries(e,t);let i=1,o=()=>{--i===0&&s();};for(let[a,l,c]of r.matches.entries())this.#r(a)||(i++,this.match(a,l,c).then(()=>o()));for(let[a,l]of r.subwalks.entries())i++,this.walkCB2(a,l,r.child(),o);o();}walkCBSync(e,t,r){this.signal?.aborted&&r(),this.walkCB2Sync(e,t,new Lc(this.opts),r);}walkCB2Sync(e,t,r,s){if(this.#o(e))return s();if(this.signal?.aborted&&s(),this.paused){this.onResume(()=>this.walkCB2Sync(e,t,r,s));return}r.processPatterns(e,t);let i=1,o=()=>{--i===0&&s();};for(let[a,l,c]of r.matches.entries())this.#r(a)||this.matchSync(a,l,c);for(let a of r.subwalkTargets()){if(this.maxDepth!==1/0&&a.depth()>=this.maxDepth)continue;i++;let l=a.readdirSync();this.walkCB3Sync(a,l,r,o);}o();}walkCB3Sync(e,t,r,s){r=r.filterEntries(e,t);let i=1,o=()=>{--i===0&&s();};for(let[a,l,c]of r.matches.entries())this.#r(a)||this.matchSync(a,l,c);for(let[a,l]of r.subwalks.entries())i++,this.walkCB2Sync(a,l,r.child(),o);o();}},Dc=class extends Mc{matches=new Set;constructor(e,t,r){super(e,t,r);}matchEmit(e){this.matches.add(e);}async walk(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&await this.path.lstat(),await new Promise((e,t)=>{this.walkCB(this.path,this.patterns,()=>{this.signal?.aborted?t(this.signal.reason):e(this.matches);});}),this.matches}walkSync(){if(this.signal?.aborted)throw this.signal.reason;return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>{if(this.signal?.aborted)throw this.signal.reason}),this.matches}},Bc=class extends Mc{results;constructor(e,t,r){super(e,t,r),this.results=new ri({signal:this.signal,objectMode:!0}),this.results.on("drain",()=>this.resume()),this.results.on("resume",()=>this.resume());}matchEmit(e){this.results.write(e),this.results.flowing||this.pause();}stream(){let e=this.path;return e.isUnknown()?e.lstat().then(()=>{this.walkCB(e,this.patterns,()=>this.results.end());}):this.walkCB(e,this.patterns,()=>this.results.end()),this.results}streamSync(){return this.path.isUnknown()&&this.path.lstatSync(),this.walkCBSync(this.path,this.patterns,()=>this.results.end()),this.results}},LU=typeof process=="object"&&process&&typeof process.platform=="string"?process.platform:"linux",Pn=class{absolute;cwd;root;dot;dotRelative;follow;ignore;magicalBraces;mark;matchBase;maxDepth;nobrace;nocase;nodir;noext;noglobstar;pattern;platform;realpath;scurry;stat;signal;windowsPathsNoEscape;withFileTypes;includeChildMatches;opts;patterns;constructor(e,t){if(!t)throw new TypeError("glob options required");if(this.withFileTypes=!!t.withFileTypes,this.signal=t.signal,this.follow=!!t.follow,this.dot=!!t.dot,this.dotRelative=!!t.dotRelative,this.nodir=!!t.nodir,this.mark=!!t.mark,t.cwd?(t.cwd instanceof URL||t.cwd.startsWith("file://"))&&(t.cwd=Jr.fileURLToPath(t.cwd)):this.cwd="",this.cwd=t.cwd||"",this.root=t.root,this.magicalBraces=!!t.magicalBraces,this.nobrace=!!t.nobrace,this.noext=!!t.noext,this.realpath=!!t.realpath,this.absolute=t.absolute,this.includeChildMatches=t.includeChildMatches!==!1,this.noglobstar=!!t.noglobstar,this.matchBase=!!t.matchBase,this.maxDepth=typeof t.maxDepth=="number"?t.maxDepth:1/0,this.stat=!!t.stat,this.ignore=t.ignore,this.withFileTypes&&this.absolute!==void 0)throw new Error("cannot set absolute and withFileTypes:true");if(typeof e=="string"&&(e=[e]),this.windowsPathsNoEscape=!!t.windowsPathsNoEscape||t.allowWindowsEscape===!1,this.windowsPathsNoEscape&&(e=e.map(l=>l.replace(/\\/g,"/"))),this.matchBase){if(t.noglobstar)throw new TypeError("base matching requires globstar");e=e.map(l=>l.includes("/")?l:`./**/${l}`);}if(this.pattern=e,this.platform=t.platform||LU,this.opts={...t,platform:this.platform},t.scurry){if(this.scurry=t.scurry,t.nocase!==void 0&&t.nocase!==t.scurry.nocase)throw new Error("nocase option contradicts provided scurry option")}else {let l=t.platform==="win32"?Uo:t.platform==="darwin"?Tc:t.platform?Qo:kU;this.scurry=new l(this.cwd,{nocase:t.nocase,fs:t.fs});}this.nocase=this.scurry.nocase;let r=this.platform==="darwin"||this.platform==="win32",s={...t,dot:this.dot,matchBase:this.matchBase,nobrace:this.nobrace,nocase:this.nocase,nocaseMagicOnly:r,nocomment:!0,noext:this.noext,nonegate:!0,optimizationLevel:2,platform:this.platform,windowsPathsNoEscape:this.windowsPathsNoEscape,debug:!!this.opts.debug},i=this.pattern.map(l=>new wn(l,s)),[o,a]=i.reduce((l,c)=>(l[0].push(...c.set),l[1].push(...c.globParts),l),[[],[]]);this.patterns=o.map((l,c)=>{let u=a[c];if(!u)throw new Error("invalid pattern object");return new Pc(l,u,0,this.platform)});}async walk(){return [...await new Dc(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walk()]}walkSync(){return [...new Dc(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).walkSync()]}stream(){return new Bc(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).stream()}streamSync(){return new Bc(this.patterns,this.scurry.cwd,{...this.opts,maxDepth:this.maxDepth!==1/0?this.maxDepth+this.scurry.cwd.depth():1/0,platform:this.platform,nocase:this.nocase,includeChildMatches:this.includeChildMatches}).streamSync()}iterateSync(){return this.streamSync()[Symbol.iterator]()}[Symbol.iterator](){return this.iterateSync()}iterate(){return this.stream()[Symbol.asyncIterator]()}[Symbol.asyncIterator](){return this.iterate()}},MU=(n,e={})=>{Array.isArray(n)||(n=[n]);for(let t of n)if(new wn(t,e).hasMagic())return !0;return !1};DU=gu,BU=Object.assign(Jx,{sync:gu}),FU=yu,jU=Object.assign(Xx,{sync:yu}),UU=Object.assign(Yx,{stream:gu,iterate:yu}),J_=Object.assign(V_,{glob:V_,globSync:Yx,sync:UU,globStream:Jx,stream:BU,globStreamSync:gu,streamSync:DU,globIterate:Xx,iterate:jU,globIterateSync:yu,iterateSync:FU,Glob:Pn,hasMagic:MU,escape:Nx,unescape:qs});J_.glob=J_;Y_="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",QU=new Uint8Array(64),WU=new Uint8Array(128);for(let n=0;n<Y_.length;n++){let e=Y_.charCodeAt(n);QU[n]=e,WU[e]=n;}dm={exports:{}},Bl={exports:{}};Fl={exports:{}};typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?dm.exports=HU():dm.exports=zU();eC=dm.exports,GU=bn(eC);if(process.versions.pnp)try{KU=AF.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('preset.cjs', document.baseURI).href)))("pnpapi");}catch{}AF.builtinModules.filter(n=>!n.includes(":")),VU=AF.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('preset.cjs', document.baseURI).href)));JU("rollup"),nb=process.env.VITE_DEBUG_FILTER,XU=process.env.DEBUG;Jr.URL.canParse??((n,e)=>{try{return new Jr.URL(n,e),!0}catch{return !1}}),ZU();e2=/^(https?:)?\/\//,t2=n=>e2.test(n),n2=/^\s*data:/i,r2=n=>n2.test(n),s2=[Nv,BF,Lv,Mv],new RegExp(`^(?:${s2.join("|")})`);Oo=Ex?a2:Je__namespace.default.realpathSync.native,pm=new Map;o2=/^\w* +(\w:) +([^ ]+)\s/,rb=!1;c2=/(?: |\\t|\\n|\\f|\\r)+/g,u2=/^(?:[\w\-]+\(.*?\)|'.*?'|".*?"|\S*)/;p2=/(?:url|image|gradient|cross-fade)\([^)]*\)|"([^"]|(?<=\\)")*"|'([^']|(?<=\\)')*'|data:\w+\/[\w.+\-]+;base64,[\w+/=]+|\?\S+,/g;g2=n=>" ".repeat(n.length),Oe__default.default.dirname(Jr.fileURLToPath((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('preset.cjs', document.baseURI).href))));[{name:"Assets",color:qd.green},{name:"CSS",color:qd.magenta},{name:"JS",color:qd.cyan}],new RegExp("\\"+Oe__default.default.posix.sep,"g"),new RegExp("\\"+Oe__default.default.sep,"g"),sC=[".ts",".tsx",".mts",".cts"],y2=[".js",".jsx",".mjs",".cjs"],w2=sC.concat(y2),`\\.(?:${sC.map(n=>n.substring(1)).join("|")})`,`\\.(?:${w2.map(n=>n.substring(1)).join("|")})`,Oe__default.default.posix.sep===Oe__default.default.sep,Re("vite:esbuild"),xF.Buffer.from("version https://git-lfs.github.com");(function(n){n[n.Static=1]="Static",n[n.Dynamic=2]="Dynamic",n[n.ImportMeta=3]="ImportMeta",n[n.StaticSourcePhase=4]="StaticSourcePhase",n[n.DynamicSourcePhase=5]="DynamicSourcePhase";})(ab||(ab={}));new Uint8Array(new Uint16Array([1]).buffer)[0]===1,WebAssembly.compile((op="AGFzbQEAAAABKwhgAX8Bf2AEf39/fwBgAAF/YAAAYAF/AGADf39/AX9gAn9/AX9gA39/fwADMTAAAQECAgICAgICAgICAgICAgICAgIAAwMDBAQAAAUAAAAAAAMDAwAGAAAABwAGAgUEBQFwAQEBBQMBAAEGDwJ/AUHA8gALfwBBwPIACwd6FQZtZW1vcnkCAAJzYQAAAWUAAwJpcwAEAmllAAUCc3MABgJzZQAHAml0AAgCYWkACQJpZAAKAmlwAAsCZXMADAJlZQANA2VscwAOA2VsZQAPAnJpABACcmUAEQFmABICbXMAEwVwYXJzZQAUC19faGVhcF9iYXNlAwEKm0EwaAEBf0EAIAA2AoAKQQAoAtwJIgEgAEEBdGoiAEEAOwEAQQAgAEECaiIANgKECkEAIAA2AogKQQBBADYC4AlBAEEANgLwCUEAQQA2AugJQQBBADYC5AlBAEEANgL4CUEAQQA2AuwJIAEL0wEBA39BACgC8AkhBEEAQQAoAogKIgU2AvAJQQAgBDYC9AlBACAFQSRqNgKICiAEQSBqQeAJIAQbIAU2AgBBACgC1AkhBEEAKALQCSEGIAUgATYCACAFIAA2AgggBSACIAJBAmpBACAGIANGIgAbIAQgA0YiBBs2AgwgBSADNgIUIAVBADYCECAFIAI2AgQgBUEANgIgIAVBA0EBQQIgABsgBBs2AhwgBUEAKALQCSADRiICOgAYAkACQCACDQBBACgC1AkgA0cNAQtBAEEBOgCMCgsLXgEBf0EAKAL4CSIEQRBqQeQJIAQbQQAoAogKIgQ2AgBBACAENgL4CUEAIARBFGo2AogKQQBBAToAjAogBEEANgIQIAQgAzYCDCAEIAI2AgggBCABNgIEIAQgADYCAAsIAEEAKAKQCgsVAEEAKALoCSgCAEEAKALcCWtBAXULHgEBf0EAKALoCSgCBCIAQQAoAtwJa0EBdUF/IAAbCxUAQQAoAugJKAIIQQAoAtwJa0EBdQseAQF/QQAoAugJKAIMIgBBACgC3AlrQQF1QX8gABsLCwBBACgC6AkoAhwLHgEBf0EAKALoCSgCECIAQQAoAtwJa0EBdUF/IAAbCzsBAX8CQEEAKALoCSgCFCIAQQAoAtAJRw0AQX8PCwJAIABBACgC1AlHDQBBfg8LIABBACgC3AlrQQF1CwsAQQAoAugJLQAYCxUAQQAoAuwJKAIAQQAoAtwJa0EBdQsVAEEAKALsCSgCBEEAKALcCWtBAXULHgEBf0EAKALsCSgCCCIAQQAoAtwJa0EBdUF/IAAbCx4BAX9BACgC7AkoAgwiAEEAKALcCWtBAXVBfyAAGwslAQF/QQBBACgC6AkiAEEgakHgCSAAGygCACIANgLoCSAAQQBHCyUBAX9BAEEAKALsCSIAQRBqQeQJIAAbKAIAIgA2AuwJIABBAEcLCABBAC0AlAoLCABBAC0AjAoL3Q0BBX8jAEGA0ABrIgAkAEEAQQE6AJQKQQBBACgC2Ak2ApwKQQBBACgC3AlBfmoiATYCsApBACABQQAoAoAKQQF0aiICNgK0CkEAQQA6AIwKQQBBADsBlgpBAEEAOwGYCkEAQQA6AKAKQQBBADYCkApBAEEAOgD8CUEAIABBgBBqNgKkCkEAIAA2AqgKQQBBADoArAoCQAJAAkACQANAQQAgAUECaiIDNgKwCiABIAJPDQECQCADLwEAIgJBd2pBBUkNAAJAAkACQAJAAkAgAkGbf2oOBQEICAgCAAsgAkEgRg0EIAJBL0YNAyACQTtGDQIMBwtBAC8BmAoNASADEBVFDQEgAUEEakGCCEEKEC8NARAWQQAtAJQKDQFBAEEAKAKwCiIBNgKcCgwHCyADEBVFDQAgAUEEakGMCEEKEC8NABAXC0EAQQAoArAKNgKcCgwBCwJAIAEvAQQiA0EqRg0AIANBL0cNBBAYDAELQQEQGQtBACgCtAohAkEAKAKwCiEBDAALC0EAIQIgAyEBQQAtAPwJDQIMAQtBACABNgKwCkEAQQA6AJQKCwNAQQAgAUECaiIDNgKwCgJAAkACQAJAAkACQAJAIAFBACgCtApPDQAgAy8BACICQXdqQQVJDQYCQAJAAkACQAJAAkACQAJAAkACQCACQWBqDgoQDwYPDw8PBQECAAsCQAJAAkACQCACQaB/ag4KCxISAxIBEhISAgALIAJBhX9qDgMFEQYJC0EALwGYCg0QIAMQFUUNECABQQRqQYIIQQoQLw0QEBYMEAsgAxAVRQ0PIAFBBGpBjAhBChAvDQ8QFwwPCyADEBVFDQ4gASkABELsgISDsI7AOVINDiABLwEMIgNBd2oiAUEXSw0MQQEgAXRBn4CABHFFDQwMDQtBAEEALwGYCiIBQQFqOwGYCkEAKAKkCiABQQN0aiIBQQE2AgAgAUEAKAKcCjYCBAwNC0EALwGYCiIDRQ0JQQAgA0F/aiIDOwGYCkEALwGWCiICRQ0MQQAoAqQKIANB//8DcUEDdGooAgBBBUcNDAJAIAJBAnRBACgCqApqQXxqKAIAIgMoAgQNACADQQAoApwKQQJqNgIEC0EAIAJBf2o7AZYKIAMgAUEEajYCDAwMCwJAQQAoApwKIgEvAQBBKUcNAEEAKALwCSIDRQ0AIAMoAgQgAUcNAEEAQQAoAvQJIgM2AvAJAkAgA0UNACADQQA2AiAMAQtBAEEANgLgCQtBAEEALwGYCiIDQQFqOwGYCkEAKAKkCiADQQN0aiIDQQZBAkEALQCsChs2AgAgAyABNgIEQQBBADoArAoMCwtBAC8BmAoiAUUNB0EAIAFBf2oiATsBmApBACgCpAogAUH//wNxQQN0aigCAEEERg0EDAoLQScQGgwJC0EiEBoMCAsgAkEvRw0HAkACQCABLwEEIgFBKkYNACABQS9HDQEQGAwKC0EBEBkMCQsCQAJAAkACQEEAKAKcCiIBLwEAIgMQG0UNAAJAAkAgA0FVag4EAAkBAwkLIAFBfmovAQBBK0YNAwwICyABQX5qLwEAQS1GDQIMBwsgA0EpRw0BQQAoAqQKQQAvAZgKIgJBA3RqKAIEEBxFDQIMBgsgAUF+ai8BAEFQakH//wNxQQpPDQULQQAvAZgKIQILAkACQCACQf//A3EiAkUNACADQeYARw0AQQAoAqQKIAJBf2pBA3RqIgQoAgBBAUcNACABQX5qLwEAQe8ARw0BIAQoAgRBlghBAxAdRQ0BDAULIANB/QBHDQBBACgCpAogAkEDdGoiAigCBBAeDQQgAigCAEEGRg0ECyABEB8NAyADRQ0DIANBL0ZBAC0AoApBAEdxDQMCQEEAKAL4CSICRQ0AIAEgAigCAEkNACABIAIoAgRNDQQLIAFBfmohAUEAKALcCSECAkADQCABQQJqIgQgAk0NAUEAIAE2ApwKIAEvAQAhAyABQX5qIgQhASADECBFDQALIARBAmohBAsCQCADQf//A3EQIUUNACAEQX5qIQECQANAIAFBAmoiAyACTQ0BQQAgATYCnAogAS8BACEDIAFBfmoiBCEBIAMQIQ0ACyAEQQJqIQMLIAMQIg0EC0EAQQE6AKAKDAcLQQAoAqQKQQAvAZgKIgFBA3QiA2pBACgCnAo2AgRBACABQQFqOwGYCkEAKAKkCiADakEDNgIACxAjDAULQQAtAPwJQQAvAZYKQQAvAZgKcnJFIQIMBwsQJEEAQQA6AKAKDAMLECVBACECDAULIANBoAFHDQELQQBBAToArAoLQQBBACgCsAo2ApwKC0EAKAKwCiEBDAALCyAAQYDQAGokACACCxoAAkBBACgC3AkgAEcNAEEBDwsgAEF+ahAmC/4KAQZ/QQBBACgCsAoiAEEMaiIBNgKwCkEAKAL4CSECQQEQKSEDAkACQAJAAkACQAJAAkACQAJAQQAoArAKIgQgAUcNACADEChFDQELAkACQAJAAkACQAJAAkAgA0EqRg0AIANB+wBHDQFBACAEQQJqNgKwCkEBECkhA0EAKAKwCiEEA0ACQAJAIANB//8DcSIDQSJGDQAgA0EnRg0AIAMQLBpBACgCsAohAwwBCyADEBpBAEEAKAKwCkECaiIDNgKwCgtBARApGgJAIAQgAxAtIgNBLEcNAEEAQQAoArAKQQJqNgKwCkEBECkhAwsgA0H9AEYNA0EAKAKwCiIFIARGDQ8gBSEEIAVBACgCtApNDQAMDwsLQQAgBEECajYCsApBARApGkEAKAKwCiIDIAMQLRoMAgtBAEEAOgCUCgJAAkACQAJAAkACQCADQZ9/ag4MAgsEAQsDCwsLCwsFAAsgA0H2AEYNBAwKC0EAIARBDmoiAzYCsAoCQAJAAkBBARApQZ9/ag4GABICEhIBEgtBACgCsAoiBSkAAkLzgOSD4I3AMVINESAFLwEKECFFDRFBACAFQQpqNgKwCkEAECkaC0EAKAKwCiIFQQJqQbIIQQ4QLw0QIAUvARAiAkF3aiIBQRdLDQ1BASABdEGfgIAEcUUNDQwOC0EAKAKwCiIFKQACQuyAhIOwjsA5Ug0PIAUvAQoiAkF3aiIBQRdNDQYMCgtBACAEQQpqNgKwCkEAECkaQQAoArAKIQQLQQAgBEEQajYCsAoCQEEBECkiBEEqRw0AQQBBACgCsApBAmo2ArAKQQEQKSEEC0EAKAKwCiEDIAQQLBogA0EAKAKwCiIEIAMgBBACQQBBACgCsApBfmo2ArAKDwsCQCAEKQACQuyAhIOwjsA5Ug0AIAQvAQoQIEUNAEEAIARBCmo2ArAKQQEQKSEEQQAoArAKIQMgBBAsGiADQQAoArAKIgQgAyAEEAJBAEEAKAKwCkF+ajYCsAoPC0EAIARBBGoiBDYCsAoLQQAgBEEGajYCsApBAEEAOgCUCkEBECkhBEEAKAKwCiEDIAQQLCEEQQAoArAKIQIgBEHf/wNxIgFB2wBHDQNBACACQQJqNgKwCkEBECkhBUEAKAKwCiEDQQAhBAwEC0EAQQE6AIwKQQBBACgCsApBAmo2ArAKC0EBECkhBEEAKAKwCiEDAkAgBEHmAEcNACADQQJqQawIQQYQLw0AQQAgA0EIajYCsAogAEEBEClBABArIAJBEGpB5AkgAhshAwNAIAMoAgAiA0UNBSADQgA3AgggA0EQaiEDDAALC0EAIANBfmo2ArAKDAMLQQEgAXRBn4CABHFFDQMMBAtBASEECwNAAkACQCAEDgIAAQELIAVB//8DcRAsGkEBIQQMAQsCQAJAQQAoArAKIgQgA0YNACADIAQgAyAEEAJBARApIQQCQCABQdsARw0AIARBIHJB/QBGDQQLQQAoArAKIQMCQCAEQSxHDQBBACADQQJqNgKwCkEBECkhBUEAKAKwCiEDIAVBIHJB+wBHDQILQQAgA0F+ajYCsAoLIAFB2wBHDQJBACACQX5qNgKwCg8LQQAhBAwACwsPCyACQaABRg0AIAJB+wBHDQQLQQAgBUEKajYCsApBARApIgVB+wBGDQMMAgsCQCACQVhqDgMBAwEACyACQaABRw0CC0EAIAVBEGo2ArAKAkBBARApIgVBKkcNAEEAQQAoArAKQQJqNgKwCkEBECkhBQsgBUEoRg0BC0EAKAKwCiEBIAUQLBpBACgCsAoiBSABTQ0AIAQgAyABIAUQAkEAQQAoArAKQX5qNgKwCg8LIAQgA0EAQQAQAkEAIARBDGo2ArAKDwsQJQvcCAEGf0EAIQBBAEEAKAKwCiIBQQxqIgI2ArAKQQEQKSEDQQAoArAKIQQCQAJAAkACQAJAAkACQAJAIANBLkcNAEEAIARBAmo2ArAKAkBBARApIgNB8wBGDQAgA0HtAEcNB0EAKAKwCiIDQQJqQZwIQQYQLw0HAkBBACgCnAoiBBAqDQAgBC8BAEEuRg0ICyABIAEgA0EIakEAKALUCRABDwtBACgCsAoiA0ECakGiCEEKEC8NBgJAQQAoApwKIgQQKg0AIAQvAQBBLkYNBwsgA0EMaiEDDAELIANB8wBHDQEgBCACTQ0BQQYhAEEAIQIgBEECakGiCEEKEC8NAiAEQQxqIQMCQCAELwEMIgVBd2oiBEEXSw0AQQEgBHRBn4CABHENAQsgBUGgAUcNAgtBACADNgKwCkEBIQBBARApIQMLAkACQAJAAkAgA0H7AEYNACADQShHDQFBACgCpApBAC8BmAoiA0EDdGoiBEEAKAKwCjYCBEEAIANBAWo7AZgKIARBBTYCAEEAKAKcCi8BAEEuRg0HQQBBACgCsAoiBEECajYCsApBARApIQMgAUEAKAKwCkEAIAQQAQJAAkAgAA0AQQAoAvAJIQQMAQtBACgC8AkiBEEFNgIcC0EAQQAvAZYKIgBBAWo7AZYKQQAoAqgKIABBAnRqIAQ2AgACQCADQSJGDQAgA0EnRg0AQQBBACgCsApBfmo2ArAKDwsgAxAaQQBBACgCsApBAmoiAzYCsAoCQAJAAkBBARApQVdqDgQBAgIAAgtBAEEAKAKwCkECajYCsApBARApGkEAKALwCSIEIAM2AgQgBEEBOgAYIARBACgCsAoiAzYCEEEAIANBfmo2ArAKDwtBACgC8AkiBCADNgIEIARBAToAGEEAQQAvAZgKQX9qOwGYCiAEQQAoArAKQQJqNgIMQQBBAC8BlgpBf2o7AZYKDwtBAEEAKAKwCkF+ajYCsAoPCyAADQJBACgCsAohA0EALwGYCg0BA0ACQAJAAkAgA0EAKAK0Ck8NAEEBECkiA0EiRg0BIANBJ0YNASADQf0ARw0CQQBBACgCsApBAmo2ArAKC0EBECkhBEEAKAKwCiEDAkAgBEHmAEcNACADQQJqQawIQQYQLw0JC0EAIANBCGo2ArAKAkBBARApIgNBIkYNACADQSdHDQkLIAEgA0EAECsPCyADEBoLQQBBACgCsApBAmoiAzYCsAoMAAsLIAANAUEGIQBBACECAkAgA0FZag4EBAMDBAALIANBIkYNAwwCC0EAIANBfmo2ArAKDwtBDCEAQQEhAgtBACgCsAoiAyABIABBAXRqRw0AQQAgA0F+ajYCsAoPC0EALwGYCg0CQQAoArAKIQNBACgCtAohAANAIAMgAE8NAQJAAkAgAy8BACIEQSdGDQAgBEEiRw0BCyABIAQgAhArDwtBACADQQJqIgM2ArAKDAALCxAlCw8LQQBBACgCsApBfmo2ArAKC0cBA39BACgCsApBAmohAEEAKAK0CiEBAkADQCAAIgJBfmogAU8NASACQQJqIQAgAi8BAEF2ag4EAQAAAQALC0EAIAI2ArAKC5gBAQN/QQBBACgCsAoiAUECajYCsAogAUEGaiEBQQAoArQKIQIDQAJAAkACQCABQXxqIAJPDQAgAUF+ai8BACEDAkACQCAADQAgA0EqRg0BIANBdmoOBAIEBAIECyADQSpHDQMLIAEvAQBBL0cNAkEAIAFBfmo2ArAKDAELIAFBfmohAQtBACABNgKwCg8LIAFBAmohAQwACwuIAQEEf0EAKAKwCiEBQQAoArQKIQICQAJAA0AgASIDQQJqIQEgAyACTw0BIAEvAQAiBCAARg0CAkAgBEHcAEYNACAEQXZqDgQCAQECAQsgA0EEaiEBIAMvAQRBDUcNACADQQZqIAEgAy8BBkEKRhshAQwACwtBACABNgKwChAlDwtBACABNgKwCgtsAQF/AkACQCAAQV9qIgFBBUsNAEEBIAF0QTFxDQELIABBRmpB//8DcUEGSQ0AIABBKUcgAEFYakH//wNxQQdJcQ0AAkAgAEGlf2oOBAEAAAEACyAAQf0ARyAAQYV/akH//wNxQQRJcQ8LQQELLgEBf0EBIQECQCAAQaYJQQUQHQ0AIABBlghBAxAdDQAgAEGwCUECEB0hAQsgAQtGAQN/QQAhAwJAIAAgAkEBdCICayIEQQJqIgBBACgC3AkiBUkNACAAIAEgAhAvDQACQCAAIAVHDQBBAQ8LIAQQJiEDCyADC4MBAQJ/QQEhAQJAAkACQAJAAkACQCAALwEAIgJBRWoOBAUEBAEACwJAIAJBm39qDgQDBAQCAAsgAkEpRg0EIAJB+QBHDQMgAEF+akG8CUEGEB0PCyAAQX5qLwEAQT1GDwsgAEF+akG0CUEEEB0PCyAAQX5qQcgJQQMQHQ8LQQAhAQsgAQu0AwECf0EAIQECQAJAAkACQAJAAkACQAJAAkACQCAALwEAQZx/ag4UAAECCQkJCQMJCQQFCQkGCQcJCQgJCwJAAkAgAEF+ai8BAEGXf2oOBAAKCgEKCyAAQXxqQcoIQQIQHQ8LIABBfGpBzghBAxAdDwsCQAJAAkAgAEF+ai8BAEGNf2oOAwABAgoLAkAgAEF8ai8BACICQeEARg0AIAJB7ABHDQogAEF6akHlABAnDwsgAEF6akHjABAnDwsgAEF8akHUCEEEEB0PCyAAQXxqQdwIQQYQHQ8LIABBfmovAQBB7wBHDQYgAEF8ai8BAEHlAEcNBgJAIABBemovAQAiAkHwAEYNACACQeMARw0HIABBeGpB6AhBBhAdDwsgAEF4akH0CEECEB0PCyAAQX5qQfgIQQQQHQ8LQQEhASAAQX5qIgBB6QAQJw0EIABBgAlBBRAdDwsgAEF+akHkABAnDwsgAEF+akGKCUEHEB0PCyAAQX5qQZgJQQQQHQ8LAkAgAEF+ai8BACICQe8ARg0AIAJB5QBHDQEgAEF8akHuABAnDwsgAEF8akGgCUEDEB0hAQsgAQs0AQF/QQEhAQJAIABBd2pB//8DcUEFSQ0AIABBgAFyQaABRg0AIABBLkcgABAocSEBCyABCzABAX8CQAJAIABBd2oiAUEXSw0AQQEgAXRBjYCABHENAQsgAEGgAUYNAEEADwtBAQtOAQJ/QQAhAQJAAkAgAC8BACICQeUARg0AIAJB6wBHDQEgAEF+akH4CEEEEB0PCyAAQX5qLwEAQfUARw0AIABBfGpB3AhBBhAdIQELIAEL3gEBBH9BACgCsAohAEEAKAK0CiEBAkACQAJAA0AgACICQQJqIQAgAiABTw0BAkACQAJAIAAvAQAiA0Gkf2oOBQIDAwMBAAsgA0EkRw0CIAIvAQRB+wBHDQJBACACQQRqIgA2ArAKQQBBAC8BmAoiAkEBajsBmApBACgCpAogAkEDdGoiAkEENgIAIAIgADYCBA8LQQAgADYCsApBAEEALwGYCkF/aiIAOwGYCkEAKAKkCiAAQf//A3FBA3RqKAIAQQNHDQMMBAsgAkEEaiEADAALC0EAIAA2ArAKCxAlCwtwAQJ/AkACQANAQQBBACgCsAoiAEECaiIBNgKwCiAAQQAoArQKTw0BAkACQAJAIAEvAQAiAUGlf2oOAgECAAsCQCABQXZqDgQEAwMEAAsgAUEvRw0CDAQLEC4aDAELQQAgAEEEajYCsAoMAAsLECULCzUBAX9BAEEBOgD8CUEAKAKwCiEAQQBBACgCtApBAmo2ArAKQQAgAEEAKALcCWtBAXU2ApAKC0MBAn9BASEBAkAgAC8BACICQXdqQf//A3FBBUkNACACQYABckGgAUYNAEEAIQEgAhAoRQ0AIAJBLkcgABAqcg8LIAELPQECf0EAIQICQEEAKALcCSIDIABLDQAgAC8BACABRw0AAkAgAyAARw0AQQEPCyAAQX5qLwEAECAhAgsgAgtoAQJ/QQEhAQJAAkAgAEFfaiICQQVLDQBBASACdEExcQ0BCyAAQfj/A3FBKEYNACAAQUZqQf//A3FBBkkNAAJAIABBpX9qIgJBA0sNACACQQFHDQELIABBhX9qQf//A3FBBEkhAQsgAQucAQEDf0EAKAKwCiEBAkADQAJAAkAgAS8BACICQS9HDQACQCABLwECIgFBKkYNACABQS9HDQQQGAwCCyAAEBkMAQsCQAJAIABFDQAgAkF3aiIBQRdLDQFBASABdEGfgIAEcUUNAQwCCyACECFFDQMMAQsgAkGgAUcNAgtBAEEAKAKwCiIDQQJqIgE2ArAKIANBACgCtApJDQALCyACCzEBAX9BACEBAkAgAC8BAEEuRw0AIABBfmovAQBBLkcNACAAQXxqLwEAQS5GIQELIAELnAQBAX8CQCABQSJGDQAgAUEnRg0AECUPC0EAKAKwCiEDIAEQGiAAIANBAmpBACgCsApBACgC0AkQAQJAIAJFDQBBACgC8AlBBDYCHAtBAEEAKAKwCkECajYCsAoCQAJAAkACQEEAECkiAUHhAEYNACABQfcARg0BQQAoArAKIQEMAgtBACgCsAoiAUECakHACEEKEC8NAUEGIQAMAgtBACgCsAoiAS8BAkHpAEcNACABLwEEQfQARw0AQQQhACABLwEGQegARg0BC0EAIAFBfmo2ArAKDwtBACABIABBAXRqNgKwCgJAQQEQKUH7AEYNAEEAIAE2ArAKDwtBACgCsAoiAiEAA0BBACAAQQJqNgKwCgJAAkACQEEBECkiAEEiRg0AIABBJ0cNAUEnEBpBAEEAKAKwCkECajYCsApBARApIQAMAgtBIhAaQQBBACgCsApBAmo2ArAKQQEQKSEADAELIAAQLCEACwJAIABBOkYNAEEAIAE2ArAKDwtBAEEAKAKwCkECajYCsAoCQEEBECkiAEEiRg0AIABBJ0YNAEEAIAE2ArAKDwsgABAaQQBBACgCsApBAmo2ArAKAkACQEEBECkiAEEsRg0AIABB/QBGDQFBACABNgKwCg8LQQBBACgCsApBAmo2ArAKQQEQKUH9AEYNAEEAKAKwCiEADAELC0EAKALwCSIBIAI2AhAgAUEAKAKwCkECajYCDAttAQJ/AkACQANAAkAgAEH//wNxIgFBd2oiAkEXSw0AQQEgAnRBn4CABHENAgsgAUGgAUYNASAAIQIgARAoDQJBACECQQBBACgCsAoiAEECajYCsAogAC8BAiIADQAMAgsLIAAhAgsgAkH//wNxC6sBAQR/AkACQEEAKAKwCiICLwEAIgNB4QBGDQAgASEEIAAhBQwBC0EAIAJBBGo2ArAKQQEQKSECQQAoArAKIQUCQAJAIAJBIkYNACACQSdGDQAgAhAsGkEAKAKwCiEEDAELIAIQGkEAQQAoArAKQQJqIgQ2ArAKC0EBECkhA0EAKAKwCiECCwJAIAIgBUYNACAFIARBACAAIAAgAUYiAhtBACABIAIbEAILIAMLcgEEf0EAKAKwCiEAQQAoArQKIQECQAJAA0AgAEECaiECIAAgAU8NAQJAAkAgAi8BACIDQaR/ag4CAQQACyACIQAgA0F2ag4EAgEBAgELIABBBGohAAwACwtBACACNgKwChAlQQAPC0EAIAI2ArAKQd0AC0kBA39BACEDAkAgAkUNAAJAA0AgAC0AACIEIAEtAAAiBUcNASABQQFqIQEgAEEBaiEAIAJBf2oiAg0ADAILCyAEIAVrIQMLIAMLC+wBAgBBgAgLzgEAAHgAcABvAHIAdABtAHAAbwByAHQAZgBvAHIAZQB0AGEAbwB1AHIAYwBlAHIAbwBtAHUAbgBjAHQAaQBvAG4AcwBzAGUAcgB0AHYAbwB5AGkAZQBkAGUAbABlAGMAbwBuAHQAaQBuAGkAbgBzAHQAYQBuAHQAeQBiAHIAZQBhAHIAZQB0AHUAcgBkAGUAYgB1AGcAZwBlAGEAdwBhAGkAdABoAHIAdwBoAGkAbABlAGkAZgBjAGEAdABjAGYAaQBuAGEAbABsAGUAbABzAABB0AkLEAEAAAACAAAAAAQAAEA5AAA=",typeof Buffer<"u"?Buffer.from(op,"base64"):Uint8Array.from(atob(op),n=>n.charCodeAt(0)))).then(WebAssembly.instantiate).then(({exports:n})=>{}),E2={};(function(n){Object.defineProperty(n,"commentRegex",{get:function(){return /^\s*?\/[\/\*][@#]\s+?sourceMappingURL=data:(((?:application|text)\/json)(?:;charset=([^;,]+?)?)?)?(?:;(base64))?,(.*?)$/mg}}),Object.defineProperty(n,"mapFileCommentRegex",{get:function(){return /(?:\/\/[@#][ \t]+?sourceMappingURL=([^\s'"`]+?)[ \t]*?$)|(?:\/\*[@#][ \t]+sourceMappingURL=([^*]+?)[ \t]*?(?:\*\/){1}[ \t]*?$)/mg}});var e;typeof Buffer<"u"?typeof Buffer.from=="function"?e=t:e=r:e=s;function t(h){return Buffer.from(h,"base64").toString()}function r(h){if(typeof value=="number")throw new TypeError("The value to decode must not be of type number.");return new Buffer(h,"base64").toString()}function s(h){return decodeURIComponent(escape(atob(h)))}function i(h){return h.split(",").pop()}function o(h,m){var p=n.mapFileCommentRegex.exec(h),d=p[1]||p[2];try{var h=m(d);return h!=null&&typeof h.catch=="function"?h.catch(g):h}catch(y){g(y);}function g(y){throw new Error("An error occurred while trying to read the map file at "+d+`
|
|
415
|
+
`+y.stack)}}function a(h,m){m=m||{},m.hasComment&&(h=i(h)),m.encoding==="base64"?h=e(h):m.encoding==="uri"&&(h=decodeURIComponent(h)),(m.isJSON||m.encoding)&&(h=JSON.parse(h)),this.sourcemap=h;}a.prototype.toJSON=function(h){return JSON.stringify(this.sourcemap,null,h)},typeof Buffer<"u"?typeof Buffer.from=="function"?a.prototype.toBase64=l:a.prototype.toBase64=c:a.prototype.toBase64=u;function l(){var h=this.toJSON();return Buffer.from(h,"utf8").toString("base64")}function c(){var h=this.toJSON();if(typeof h=="number")throw new TypeError("The json to encode must not be of type number.");return new Buffer(h,"utf8").toString("base64")}function u(){var h=this.toJSON();return btoa(unescape(encodeURIComponent(h)))}a.prototype.toURI=function(){var h=this.toJSON();return encodeURIComponent(h)},a.prototype.toComment=function(h){var m,p,d;return h!=null&&h.encoding==="uri"?(m="",p=this.toURI()):(m=";base64",p=this.toBase64()),d="sourceMappingURL=data:application/json;charset=utf-8"+m+","+p,h!=null&&h.multiline?"/*# "+d+" */":"//# "+d},a.prototype.toObject=function(){return JSON.parse(this.toJSON())},a.prototype.addProperty=function(h,m){if(this.sourcemap.hasOwnProperty(h))throw new Error('property "'+h+'" already exists on the sourcemap, use set property instead');return this.setProperty(h,m)},a.prototype.setProperty=function(h,m){return this.sourcemap[h]=m,this},a.prototype.getProperty=function(h){return this.sourcemap[h]},n.fromObject=function(h){return new a(h)},n.fromJSON=function(h){return new a(h,{isJSON:!0})},n.fromURI=function(h){return new a(h,{encoding:"uri"})},n.fromBase64=function(h){return new a(h,{encoding:"base64"})},n.fromComment=function(h){var m,p;return h=h.replace(/^\/\*/g,"//").replace(/\*\/$/g,""),m=n.commentRegex.exec(h),p=m&&m[4]||"uri",new a(h,{encoding:p,hasComment:!0})};function f(h){return new a(h,{isJSON:!0})}n.fromMapFileComment=function(h,m){if(typeof m=="string")throw new Error("String directory paths are no longer supported with `fromMapFileComment`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var p=o(h,m);return p!=null&&typeof p.then=="function"?p.then(f):f(p)},n.fromSource=function(h){var m=h.match(n.commentRegex);return m?n.fromComment(m.pop()):null},n.fromMapFileSource=function(h,m){if(typeof m=="string")throw new Error("String directory paths are no longer supported with `fromMapFileSource`\nPlease review the Upgrading documentation at https://github.com/thlorenz/convert-source-map#upgrading");var p=h.match(n.mapFileCommentRegex);return p?n.fromMapFileComment(p.pop(),m):null},n.removeComments=function(h){return h.replace(n.commentRegex,"")},n.removeMapFileComments=function(h){return h.replace(n.mapFileCommentRegex,"")},n.generateMapFileComment=function(h,m){var p="sourceMappingURL="+h;return m&&m.multiline?"/*# "+p+" */":"//# "+p};})(E2);Re("vite:sourcemap",{onlyWhenFocused:!0}),tt={},Ce={},si={};Object.defineProperty(si,"__esModule",{value:!0});si.splitWhen=si.flatten=void 0;si.flatten=A2;si.splitWhen=S2;wu={};Object.defineProperty(wu,"__esModule",{value:!0});wu.isEnoentCodeError=void 0;wu.isEnoentCodeError=_2;vu={};Object.defineProperty(vu,"__esModule",{value:!0});vu.createDirentFromStats=void 0;b2=class{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t);}};vu.createDirentFromStats=x2;Be={};Object.defineProperty(Be,"__esModule",{value:!0});Be.convertPosixPathToPattern=Be.convertWindowsPathToPattern=Be.convertPathToPattern=Be.escapePosixPath=Be.escapeWindowsPath=Be.escape=Be.removeLeadingDotSegment=Be.makeAbsolute=Be.unixify=void 0;C2=Zr__default.default,I2=Oe__default.default,iC=C2.platform()==="win32",O2=2,R2=/(\\?)([()*?[\]{|}]|^!|[!+@](?=\()|\\(?![!()*+?@[\]{|}]))/g,k2=/(\\?)([()[\]{}]|^!|[!+@](?=\())/g,$2=/^\\\\([.?])/,T2=/\\(?![!()+@[\]{}])/g;Be.unixify=P2;Be.makeAbsolute=N2;Be.removeLeadingDotSegment=L2;Be.escape=iC?jg:Ug;Be.escapeWindowsPath=jg;Be.escapePosixPath=Ug;Be.convertPathToPattern=iC?oC:aC;Be.convertWindowsPathToPattern=oC;Be.convertPosixPathToPattern=aC;se={};M2=function(e){if(typeof e!="string"||e==="")return !1;for(var t;t=/(\\).|([@?!+*]\(.*\))/g.exec(e);){if(t[2])return !0;e=e.slice(t.index+t[0].length);}return !1};D2=M2,lC={"{":"}","(":")","[":"]"},B2=function(n){if(n[0]==="!")return !0;for(var e=0,t=-2,r=-2,s=-2,i=-2,o=-2;e<n.length;){if(n[e]==="*"||n[e+1]==="?"&&/[\].+)]/.test(n[e])||r!==-1&&n[e]==="["&&n[e+1]!=="]"&&(r<e&&(r=n.indexOf("]",e)),r>e&&(o===-1||o>r||(o=n.indexOf("\\",e),o===-1||o>r)))||s!==-1&&n[e]==="{"&&n[e+1]!=="}"&&(s=n.indexOf("}",e),s>e&&(o=n.indexOf("\\",e),o===-1||o>s))||i!==-1&&n[e]==="("&&n[e+1]==="?"&&/[:!=]/.test(n[e+2])&&n[e+3]!==")"&&(i=n.indexOf(")",e),i>e&&(o=n.indexOf("\\",e),o===-1||o>i))||t!==-1&&n[e]==="("&&n[e+1]!=="|"&&(t<e&&(t=n.indexOf("|",e)),t!==-1&&n[t+1]!==")"&&(i=n.indexOf(")",t),i>t&&(o=n.indexOf("\\",t),o===-1||o>i))))return !0;if(n[e]==="\\"){var a=n[e+1];e+=2;var l=lC[a];if(l){var c=n.indexOf(l,e);c!==-1&&(e=c+1);}if(n[e]==="!")return !0}else e++;}return !1},F2=function(n){if(n[0]==="!")return !0;for(var e=0;e<n.length;){if(/[*?{}()[\]]/.test(n[e]))return !0;if(n[e]==="\\"){var t=n[e+1];e+=2;var r=lC[t];if(r){var s=n.indexOf(r,e);s!==-1&&(e=s+1);}if(n[e]==="!")return !0}else e++;}return !1},cC=function(e,t){if(typeof e!="string"||e==="")return !1;if(D2(e))return !0;var r=B2;return t&&t.strict===!1&&(r=F2),r(e)},j2=cC,U2=Oe__default.default.posix.dirname,Q2=Zr__default.default.platform()==="win32",ap="/",W2=/\\/g,q2=/[\{\[].*[\}\]]$/,H2=/(^|[^\\])([\{\[]|\([^\)]+$)/,z2=/\\([\!\*\?\|\[\]\(\)\{\}])/g,uC=function(e,t){var r=Object.assign({flipBackslashes:!0},t);r.flipBackslashes&&Q2&&e.indexOf(ap)<0&&(e=e.replace(W2,ap)),q2.test(e)&&(e+=ap),e+="a";do e=U2(e);while(j2(e)||H2.test(e));return e.replace(z2,"$1")},Eu={};(function(n){n.isInteger=e=>typeof e=="number"?Number.isInteger(e):typeof e=="string"&&e.trim()!==""?Number.isInteger(Number(e)):!1,n.find=(e,t)=>e.nodes.find(r=>r.type===t),n.exceedsLimit=(e,t,r=1,s)=>s===!1||!n.isInteger(e)||!n.isInteger(t)?!1:(Number(t)-Number(e))/Number(r)>=s,n.escapeNode=(e,t=0,r)=>{let s=e.nodes[t];s&&(r&&s.type===r||s.type==="open"||s.type==="close")&&s.escaped!==!0&&(s.value="\\"+s.value,s.escaped=!0);},n.encloseBrace=e=>e.type!=="brace"||e.commas>>0+e.ranges>>0?!1:(e.invalid=!0,!0),n.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,n.isOpenOrClose=e=>e.type==="open"||e.type==="close"?!0:e.open===!0||e.close===!0,n.reduce=e=>e.reduce((t,r)=>(r.type==="text"&&t.push(r.value),r.type==="range"&&(r.type="text"),t),[]),n.flatten=(...e)=>{let t=[],r=s=>{for(let i=0;i<s.length;i++){let o=s[i];if(Array.isArray(o)){r(o);continue}o!==void 0&&t.push(o);}return t};return r(e),t};})(Eu);lb=Eu,Qg=(n,e={})=>{let t=(r,s={})=>{let i=e.escapeInvalid&&lb.isInvalidBrace(s),o=r.invalid===!0&&e.escapeInvalid===!0,a="";if(r.value)return (i||o)&&lb.isOpenOrClose(r)?"\\"+r.value:r.value;if(r.value)return r.value;if(r.nodes)for(let l of r.nodes)a+=t(l);return a};return t(n)};G2=function(n){return typeof n=="number"?n-n===0:typeof n=="string"&&n.trim()!==""?Number.isFinite?Number.isFinite(+n):isFinite(+n):!1};cb=G2,Wr=(n,e,t)=>{if(cb(n)===!1)throw new TypeError("toRegexRange: expected the first argument to be a number");if(e===void 0||n===e)return String(n);if(cb(e)===!1)throw new TypeError("toRegexRange: expected the second argument to be a number.");let r={relaxZeros:!0,...t};typeof r.strictZeros=="boolean"&&(r.relaxZeros=r.strictZeros===!1);let s=String(r.relaxZeros),i=String(r.shorthand),o=String(r.capture),a=String(r.wrap),l=n+":"+e+"="+s+i+o+a;if(Wr.cache.hasOwnProperty(l))return Wr.cache[l].result;let c=Math.min(n,e),u=Math.max(n,e);if(Math.abs(c-u)===1){let d=n+"|"+e;return r.capture?`(${d})`:r.wrap===!1?d:`(?:${d})`}let f=mb(n)||mb(e),h={min:n,max:e,a:c,b:u},m=[],p=[];if(f&&(h.isPadded=f,h.maxLen=String(h.max).length),c<0){let d=u<0?Math.abs(u):1;p=ub(d,Math.abs(c),h,r),c=h.a=0;}return u>=0&&(m=ub(c,u,h,r)),h.negatives=p,h.positives=m,h.result=K2(p,m),r.capture===!0?h.result=`(${h.result})`:r.wrap!==!1&&m.length+p.length>1&&(h.result=`(?:${h.result})`),Wr.cache[l]=h,h.result};Wr.cache={};Wr.clearCache=()=>Wr.cache={};tQ=Wr;nQ=Mn__default.default,fC=tQ,gb=n=>n!==null&&typeof n=="object"&&!Array.isArray(n),rQ=n=>e=>n===!0?Number(e):String(e),cp=n=>typeof n=="number"||typeof n=="string"&&n!=="",Po=n=>Number.isInteger(+n),up=n=>{let e=`${n}`,t=-1;if(e[0]==="-"&&(e=e.slice(1)),e==="0")return !1;for(;e[++t]==="0";);return t>0},sQ=(n,e,t)=>typeof n=="string"||typeof e=="string"?!0:t.stringify===!0,iQ=(n,e,t)=>{if(e>0){let r=n[0]==="-"?"-":"";r&&(n=n.slice(1)),n=r+n.padStart(r?e-1:e,"0");}return t===!1?String(n):n},Uc=(n,e)=>{let t=n[0]==="-"?"-":"";for(t&&(n=n.slice(1),e--);n.length<e;)n="0"+n;return t?"-"+n:n},oQ=(n,e,t)=>{n.negatives.sort((a,l)=>a<l?-1:a>l?1:0),n.positives.sort((a,l)=>a<l?-1:a>l?1:0);let r=e.capture?"":"?:",s="",i="",o;return n.positives.length&&(s=n.positives.map(a=>Uc(String(a),t)).join("|")),n.negatives.length&&(i=`-(${r}${n.negatives.map(a=>Uc(String(a),t)).join("|")})`),s&&i?o=`${s}|${i}`:o=s||i,e.wrap?`(${r}${o})`:o},hC=(n,e,t,r)=>{if(t)return fC(n,e,{wrap:!1,...r});let s=String.fromCharCode(n);if(n===e)return s;let i=String.fromCharCode(e);return `[${s}-${i}]`},dC=(n,e,t)=>{if(Array.isArray(n)){let r=t.wrap===!0,s=t.capture?"":"?:";return r?`(${s}${n.join("|")})`:n.join("|")}return fC(n,e,t)},pC=(...n)=>new RangeError("Invalid range arguments: "+nQ.inspect(...n)),mC=(n,e,t)=>{if(t.strictRanges===!0)throw pC([n,e]);return []},aQ=(n,e)=>{if(e.strictRanges===!0)throw new TypeError(`Expected step "${n}" to be a number`);return []},lQ=(n,e,t=1,r={})=>{let s=Number(n),i=Number(e);if(!Number.isInteger(s)||!Number.isInteger(i)){if(r.strictRanges===!0)throw pC([n,e]);return []}s===0&&(s=0),i===0&&(i=0);let o=s>i,a=String(n),l=String(e),c=String(t);t=Math.max(Math.abs(t),1);let u=up(a)||up(l)||up(c),f=u?Math.max(a.length,l.length,c.length):0,h=u===!1&&sQ(n,e,r)===!1,m=r.transform||rQ(h);if(r.toRegex&&t===1)return hC(Uc(n,f),Uc(e,f),!0,r);let p={negatives:[],positives:[]},d=w=>p[w<0?"negatives":"positives"].push(Math.abs(w)),g=[],y=0;for(;o?s>=i:s<=i;)r.toRegex===!0&&t>1?d(s):g.push(iQ(m(s,y),f,h)),s=o?s-t:s+t,y++;return r.toRegex===!0?t>1?oQ(p,r,f):dC(g,null,{wrap:!1,...r}):g},cQ=(n,e,t=1,r={})=>{if(!Po(n)&&n.length>1||!Po(e)&&e.length>1)return mC(n,e,r);let s=r.transform||(h=>String.fromCharCode(h)),i=`${n}`.charCodeAt(0),o=`${e}`.charCodeAt(0),a=i>o,l=Math.min(i,o),c=Math.max(i,o);if(r.toRegex&&t===1)return hC(l,c,!1,r);let u=[],f=0;for(;a?i>=o:i<=o;)u.push(s(i,f)),i=a?i-t:i+t,f++;return r.toRegex===!0?dC(u,null,{wrap:!1,options:r}):u},oc=(n,e,t,r={})=>{if(e==null&&cp(n))return [n];if(!cp(n)||!cp(e))return mC(n,e,r);if(typeof t=="function")return oc(n,e,1,{transform:t});if(gb(t))return oc(n,e,0,t);let s={...r};return s.capture===!0&&(s.wrap=!0),t=t||s.step||1,Po(t)?Po(n)&&Po(e)?lQ(n,e,t,s):cQ(n,e,Math.max(Math.abs(t),1),s):t!=null&&!gb(t)?aQ(t,s):oc(n,e,1,t)},gC=oc,uQ=gC,yb=Eu,fQ=(n,e={})=>{let t=(r,s={})=>{let i=yb.isInvalidBrace(s),o=r.invalid===!0&&e.escapeInvalid===!0,a=i===!0||o===!0,l=e.escapeInvalid===!0?"\\":"",c="";if(r.isOpen===!0)return l+r.value;if(r.isClose===!0)return console.log("node.isClose",l,r.value),l+r.value;if(r.type==="open")return a?l+r.value:"(";if(r.type==="close")return a?l+r.value:")";if(r.type==="comma")return r.prev.type==="comma"?"":a?r.value:"|";if(r.value)return r.value;if(r.nodes&&r.ranges>0){let u=yb.reduce(r.nodes),f=uQ(...u,{...e,wrap:!1,toRegex:!0,strictZeros:!0});if(f.length!==0)return u.length>1&&f.length>1?`(${f})`:f}if(r.nodes)for(let u of r.nodes)c+=t(u,r);return c};return t(n)},hQ=fQ,dQ=gC,wb=Qg,Hs=Eu,Dr=(n="",e="",t=!1)=>{let r=[];if(n=[].concat(n),e=[].concat(e),!e.length)return n;if(!n.length)return t?Hs.flatten(e).map(s=>`{${s}}`):e;for(let s of n)if(Array.isArray(s))for(let i of s)r.push(Dr(i,e,t));else for(let i of e)t===!0&&typeof i=="string"&&(i=`{${i}}`),r.push(Array.isArray(i)?Dr(s,i,t):s+i);return Hs.flatten(r)},pQ=(n,e={})=>{let t=e.rangeLimit===void 0?1e3:e.rangeLimit,r=(s,i={})=>{s.queue=[];let o=i,a=i.queue;for(;o.type!=="brace"&&o.type!=="root"&&o.parent;)o=o.parent,a=o.queue;if(s.invalid||s.dollar){a.push(Dr(a.pop(),wb(s,e)));return}if(s.type==="brace"&&s.invalid!==!0&&s.nodes.length===2){a.push(Dr(a.pop(),["{}"]));return}if(s.nodes&&s.ranges>0){let f=Hs.reduce(s.nodes);if(Hs.exceedsLimit(...f,e.step,t))throw new RangeError("expanded array length exceeds range limit. Use options.rangeLimit to increase or disable the limit.");let h=dQ(...f,e);h.length===0&&(h=wb(s,e)),a.push(Dr(a.pop(),h)),s.nodes=[];return}let l=Hs.encloseBrace(s),c=s.queue,u=s;for(;u.type!=="brace"&&u.type!=="root"&&u.parent;)u=u.parent,c=u.queue;for(let f=0;f<s.nodes.length;f++){let h=s.nodes[f];if(h.type==="comma"&&s.type==="brace"){f===1&&c.push(""),c.push("");continue}if(h.type==="close"){a.push(Dr(a.pop(),c,l));continue}if(h.value&&h.type!=="open"){c.push(Dr(c.pop(),h.value));continue}h.nodes&&r(h,s);}return c};return Hs.flatten(r(n))},mQ=pQ,gQ={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:`
|
|
416
|
+
`,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"},yQ=Qg,{MAX_LENGTH:vb,CHAR_BACKSLASH:fp,CHAR_BACKTICK:wQ,CHAR_COMMA:vQ,CHAR_DOT:EQ,CHAR_LEFT_PARENTHESES:AQ,CHAR_RIGHT_PARENTHESES:SQ,CHAR_LEFT_CURLY_BRACE:_Q,CHAR_RIGHT_CURLY_BRACE:bQ,CHAR_LEFT_SQUARE_BRACKET:Eb,CHAR_RIGHT_SQUARE_BRACKET:Ab,CHAR_DOUBLE_QUOTE:xQ,CHAR_SINGLE_QUOTE:CQ,CHAR_NO_BREAK_SPACE:IQ,CHAR_ZERO_WIDTH_NOBREAK_SPACE:OQ}=gQ,RQ=(n,e={})=>{if(typeof n!="string")throw new TypeError("Expected a string");let t=e||{},r=typeof t.maxLength=="number"?Math.min(vb,t.maxLength):vb;if(n.length>r)throw new SyntaxError(`Input length (${n.length}), exceeds max characters (${r})`);let s={type:"root",input:n,nodes:[]},i=[s],o=s,a=s,l=0,c=n.length,u=0,f=0,h,m=()=>n[u++],p=d=>{if(d.type==="text"&&a.type==="dot"&&(a.type="text"),a&&a.type==="text"&&d.type==="text"){a.value+=d.value;return}return o.nodes.push(d),d.parent=o,d.prev=a,a=d,d};for(p({type:"bos"});u<c;)if(o=i[i.length-1],h=m(),!(h===OQ||h===IQ)){if(h===fp){p({type:"text",value:(e.keepEscaping?h:"")+m()});continue}if(h===Ab){p({type:"text",value:"\\"+h});continue}if(h===Eb){l++;let d;for(;u<c&&(d=m());){if(h+=d,d===Eb){l++;continue}if(d===fp){h+=m();continue}if(d===Ab&&(l--,l===0))break}p({type:"text",value:h});continue}if(h===AQ){o=p({type:"paren",nodes:[]}),i.push(o),p({type:"text",value:h});continue}if(h===SQ){if(o.type!=="paren"){p({type:"text",value:h});continue}o=i.pop(),p({type:"text",value:h}),o=i[i.length-1];continue}if(h===xQ||h===CQ||h===wQ){let d=h,g;for(e.keepQuotes!==!0&&(h="");u<c&&(g=m());){if(g===fp){h+=g+m();continue}if(g===d){e.keepQuotes===!0&&(h+=g);break}h+=g;}p({type:"text",value:h});continue}if(h===_Q){f++;let g={type:"brace",open:!0,close:!1,dollar:a.value&&a.value.slice(-1)==="$"||o.dollar===!0,depth:f,commas:0,ranges:0,nodes:[]};o=p(g),i.push(o),p({type:"open",value:h});continue}if(h===bQ){if(o.type!=="brace"){p({type:"text",value:h});continue}let d="close";o=i.pop(),o.close=!0,p({type:d,value:h}),f--,o=i[i.length-1];continue}if(h===vQ&&f>0){if(o.ranges>0){o.ranges=0;let d=o.nodes.shift();o.nodes=[d,{type:"text",value:yQ(o)}];}p({type:"comma",value:h}),o.commas++;continue}if(h===EQ&&f>0&&o.commas===0){let d=o.nodes;if(f===0||d.length===0){p({type:"text",value:h});continue}if(a.type==="dot"){if(o.range=[],a.value+=h,a.type="range",o.nodes.length!==3&&o.nodes.length!==5){o.invalid=!0,o.ranges=0,a.type="text";continue}o.ranges++,o.args=[];continue}if(a.type==="range"){d.pop();let g=d[d.length-1];g.value+=a.value+h,a=g,o.ranges--;continue}p({type:"dot",value:h});continue}p({type:"text",value:h});}do if(o=i.pop(),o.type!=="root"){o.nodes.forEach(y=>{y.nodes||(y.type==="open"&&(y.isOpen=!0),y.type==="close"&&(y.isClose=!0),y.nodes||(y.type="text"),y.invalid=!0);});let d=i[i.length-1],g=d.nodes.indexOf(o);d.nodes.splice(g,1,...o.nodes);}while(i.length>0);return p({type:"eos"}),s},kQ=RQ,Sb=Qg,$Q=hQ,TQ=mQ,PQ=kQ,Ct=(n,e={})=>{let t=[];if(Array.isArray(n))for(let r of n){let s=Ct.create(r,e);Array.isArray(s)?t.push(...s):t.push(s);}else t=[].concat(Ct.create(n,e));return e&&e.expand===!0&&e.nodupes===!0&&(t=[...new Set(t)]),t};Ct.parse=(n,e={})=>PQ(n,e);Ct.stringify=(n,e={})=>Sb(typeof n=="string"?Ct.parse(n,e):n,e);Ct.compile=(n,e={})=>(typeof n=="string"&&(n=Ct.parse(n,e)),$Q(n,e));Ct.expand=(n,e={})=>{typeof n=="string"&&(n=Ct.parse(n,e));let t=TQ(n,e);return e.noempty===!0&&(t=t.filter(Boolean)),e.nodupes===!0&&(t=[...new Set(t)]),t};Ct.create=(n,e={})=>n===""||n.length<3?[n]:e.expand!==!0?Ct.compile(n,e):Ct.expand(n,e);yC=Ct,wC=Mn__default.default,vC=yC,vn=Lg,gm=na,_b=n=>n===""||n==="./",EC=n=>{let e=n.indexOf("{");return e>-1&&n.indexOf("}",e)>-1},Ee=(n,e,t)=>{e=[].concat(e),n=[].concat(n);let r=new Set,s=new Set,i=new Set,o=0,a=u=>{i.add(u.output),t&&t.onResult&&t.onResult(u);};for(let u=0;u<e.length;u++){let f=vn(String(e[u]),{...t,onResult:a},!0),h=f.state.negated||f.state.negatedExtglob;h&&o++;for(let m of n){let p=f(m,!0);(h?!p.isMatch:p.isMatch)&&(h?r.add(p.output):(r.delete(p.output),s.add(p.output)));}}let c=(o===e.length?[...i]:[...s]).filter(u=>!r.has(u));if(t&&c.length===0){if(t.failglob===!0)throw new Error(`No matches found for "${e.join(", ")}"`);if(t.nonull===!0||t.nullglob===!0)return t.unescape?e.map(u=>u.replace(/\\/g,"")):e}return c};Ee.match=Ee;Ee.matcher=(n,e)=>vn(n,e);Ee.isMatch=(n,e,t)=>vn(e,t)(n);Ee.any=Ee.isMatch;Ee.not=(n,e,t={})=>{e=[].concat(e).map(String);let r=new Set,s=[],i=a=>{t.onResult&&t.onResult(a),s.push(a.output);},o=new Set(Ee(n,e,{...t,onResult:i}));for(let a of s)o.has(a)||r.add(a);return [...r]};Ee.contains=(n,e,t)=>{if(typeof n!="string")throw new TypeError(`Expected a string: "${wC.inspect(n)}"`);if(Array.isArray(e))return e.some(r=>Ee.contains(n,r,t));if(typeof e=="string"){if(_b(n)||_b(e))return !1;if(n.includes(e)||n.startsWith("./")&&n.slice(2).includes(e))return !0}return Ee.isMatch(n,e,{...t,contains:!0})};Ee.matchKeys=(n,e,t)=>{if(!gm.isObject(n))throw new TypeError("Expected the first argument to be an object");let r=Ee(Object.keys(n),e,t),s={};for(let i of r)s[i]=n[i];return s};Ee.some=(n,e,t)=>{let r=[].concat(n);for(let s of [].concat(e)){let i=vn(String(s),t);if(r.some(o=>i(o)))return !0}return !1};Ee.every=(n,e,t)=>{let r=[].concat(n);for(let s of [].concat(e)){let i=vn(String(s),t);if(!r.every(o=>i(o)))return !1}return !0};Ee.all=(n,e,t)=>{if(typeof n!="string")throw new TypeError(`Expected a string: "${wC.inspect(n)}"`);return [].concat(e).every(r=>vn(r,t)(n))};Ee.capture=(n,e,t)=>{let r=gm.isWindows(t),i=vn.makeRe(String(n),{...t,capture:!0}).exec(r?gm.toPosixSlashes(e):e);if(i)return i.slice(1).map(o=>o===void 0?"":o)};Ee.makeRe=(...n)=>vn.makeRe(...n);Ee.scan=(...n)=>vn.scan(...n);Ee.parse=(n,e)=>{let t=[];for(let r of [].concat(n||[]))for(let s of vC(String(r),e))t.push(vn.parse(s,e));return t};Ee.braces=(n,e)=>{if(typeof n!="string")throw new TypeError("Expected a string");return e&&e.nobrace===!0||!EC(n)?[n]:vC(n,e)};Ee.braceExpand=(n,e)=>{if(typeof n!="string")throw new TypeError("Expected a string");return Ee.braces(n,{...e,expand:!0})};Ee.hasBraces=EC;AC=Ee,bn(AC);Object.defineProperty(se,"__esModule",{value:!0});se.removeDuplicateSlashes=se.matchAny=se.convertPatternsToRe=se.makeRe=se.getPatternParts=se.expandBraceExpansion=se.expandPatternsWithBraceExpansion=se.isAffectDepthOfReadingPattern=se.endsWithSlashGlobStar=se.hasGlobStar=se.getBaseDirectory=se.isPatternRelatedToParentDirectory=se.getPatternsOutsideCurrentDirectory=se.getPatternsInsideCurrentDirectory=se.getPositivePatterns=se.getNegativePatterns=se.isPositivePattern=se.isNegativePattern=se.convertToNegativePattern=se.convertToPositivePattern=se.isDynamicPattern=se.isStaticPattern=void 0;LQ=Oe__default.default,MQ=uC,Wg=AC,SC="**",DQ="\\",BQ=/[*?]|^!/,FQ=/\[[^[]*]/,jQ=/(?:^|[^!*+?@])\([^(]*\|[^|]*\)/,UQ=/[!*+?@]\([^(]*\)/,QQ=/,|\.\./,WQ=/(?!^)\/{2,}/g;se.isStaticPattern=_C;se.isDynamicPattern=bC;se.convertToPositivePattern=HQ;se.convertToNegativePattern=zQ;se.isNegativePattern=Au;se.isPositivePattern=xC;se.getNegativePatterns=GQ;se.getPositivePatterns=KQ;se.getPatternsInsideCurrentDirectory=VQ;se.getPatternsOutsideCurrentDirectory=JQ;se.isPatternRelatedToParentDirectory=qg;se.getBaseDirectory=YQ;se.hasGlobStar=XQ;se.endsWithSlashGlobStar=CC;se.isAffectDepthOfReadingPattern=ZQ;se.expandPatternsWithBraceExpansion=eW;se.expandBraceExpansion=IC;se.getPatternParts=tW;se.makeRe=OC;se.convertPatternsToRe=nW;se.matchAny=rW;se.removeDuplicateSlashes=sW;Su={},iW=Xr__default.default,RC=iW.PassThrough,oW=Array.prototype.slice,aW=lW;Object.defineProperty(Su,"__esModule",{value:!0});Su.merge=void 0;cW=aW;Su.merge=uW;ii={};Object.defineProperty(ii,"__esModule",{value:!0});ii.isEmpty=ii.isString=void 0;ii.isString=fW;ii.isEmpty=hW;Object.defineProperty(Ce,"__esModule",{value:!0});Ce.string=Ce.stream=Ce.pattern=Ce.path=Ce.fs=Ce.errno=Ce.array=void 0;dW=si;Ce.array=dW;pW=wu;Ce.errno=pW;mW=vu;Ce.fs=mW;gW=Be;Ce.path=gW;yW=se;Ce.pattern=yW;wW=Su;Ce.stream=wW;vW=ii;Ce.string=vW;Object.defineProperty(tt,"__esModule",{value:!0});tt.convertPatternGroupToTask=tt.convertPatternGroupsToTasks=tt.groupPatternsByBaseDirectory=tt.getNegativePatternsAsPositive=tt.getPositivePatterns=tt.convertPatternsToTasks=tt.generate=void 0;on=Ce;tt.generate=EW;tt.convertPatternsToTasks=ym;tt.getPositivePatterns=$C;tt.getNegativePatternsAsPositive=TC;tt.groupPatternsByBaseDirectory=wm;tt.convertPatternGroupsToTasks=vm;tt.convertPatternGroupToTask=Hg;zg={},Gg={},Ut={},Kg={},_u={},mn={},tr={},It={},bu={};Object.defineProperty(bu,"__esModule",{value:!0});bu.read=void 0;bu.read=AW;xu={};Object.defineProperty(xu,"__esModule",{value:!0});xu.read=void 0;xu.read=SW;Vg={},PC={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.createFileSystemAdapter=n.FILE_SYSTEM_ADAPTER=void 0;let e=Je__namespace.default;n.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync};function t(r){return r===void 0?n.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},n.FILE_SYSTEM_ADAPTER),r)}n.createFileSystemAdapter=t;})(PC);Object.defineProperty(Vg,"__esModule",{value:!0});_W=PC,bW=class{constructor(e={}){this._options=e,this.followSymbolicLink=this._getValue(this._options.followSymbolicLink,!0),this.fs=_W.createFileSystemAdapter(this._options.fs),this.markSymbolicLink=this._getValue(this._options.markSymbolicLink,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0);}_getValue(e,t){return e??t}};Vg.default=bW;Object.defineProperty(It,"__esModule",{value:!0});It.statSync=It.stat=It.Settings=void 0;Ib=bu,xW=xu,Em=Vg;It.Settings=Em.default;It.stat=CW;It.statSync=IW;OW=typeof queueMicrotask=="function"?queueMicrotask.bind(typeof window<"u"?window:Ir):n=>(Ob||(Ob=Promise.resolve())).then(n).catch(e=>setTimeout(()=>{throw e},0));RW=$W,kW=OW;ra={};Object.defineProperty(ra,"__esModule",{value:!0});ra.IS_SUPPORT_READDIR_WITH_FILE_TYPES=void 0;Qc=process.versions.node.split(".");if(Qc[0]===void 0||Qc[1]===void 0)throw new Error(`Unexpected behavior. The 'process.versions.node' variable has invalid value: ${process.versions.node}`);NC=Number.parseInt(Qc[0],10),TW=Number.parseInt(Qc[1],10),LC=10,PW=10,NW=NC>LC,LW=NC===LC&&TW>=PW;ra.IS_SUPPORT_READDIR_WITH_FILE_TYPES=NW||LW;sa={},Cu={};Object.defineProperty(Cu,"__esModule",{value:!0});Cu.createDirentFromStats=void 0;Sm=class{constructor(e,t){this.name=e,this.isBlockDevice=t.isBlockDevice.bind(t),this.isCharacterDevice=t.isCharacterDevice.bind(t),this.isDirectory=t.isDirectory.bind(t),this.isFIFO=t.isFIFO.bind(t),this.isFile=t.isFile.bind(t),this.isSocket=t.isSocket.bind(t),this.isSymbolicLink=t.isSymbolicLink.bind(t);}};Cu.createDirentFromStats=MW;Object.defineProperty(sa,"__esModule",{value:!0});sa.fs=void 0;DW=Cu;sa.fs=DW;ia={};Object.defineProperty(ia,"__esModule",{value:!0});ia.joinPathSegments=void 0;ia.joinPathSegments=BW;Object.defineProperty(tr,"__esModule",{value:!0});tr.readdir=tr.readdirWithFileTypes=tr.read=void 0;FW=It,MC=RW,jW=ra,DC=sa,BC=ia;tr.read=UW;tr.readdirWithFileTypes=FC;tr.readdir=jC;nr={};Object.defineProperty(nr,"__esModule",{value:!0});nr.readdir=nr.readdirWithFileTypes=nr.read=void 0;WW=It,qW=ra,UC=sa,QC=ia;nr.read=HW;nr.readdirWithFileTypes=WC;nr.readdir=qC;Jg={},HC={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.createFileSystemAdapter=n.FILE_SYSTEM_ADAPTER=void 0;let e=Je__namespace.default;n.FILE_SYSTEM_ADAPTER={lstat:e.lstat,stat:e.stat,lstatSync:e.lstatSync,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};function t(r){return r===void 0?n.FILE_SYSTEM_ADAPTER:Object.assign(Object.assign({},n.FILE_SYSTEM_ADAPTER),r)}n.createFileSystemAdapter=t;})(HC);Object.defineProperty(Jg,"__esModule",{value:!0});zW=Oe__default.default,GW=It,KW=HC,VW=class{constructor(e={}){this._options=e,this.followSymbolicLinks=this._getValue(this._options.followSymbolicLinks,!1),this.fs=KW.createFileSystemAdapter(this._options.fs),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,zW.sep),this.stats=this._getValue(this._options.stats,!1),this.throwErrorOnBrokenSymbolicLink=this._getValue(this._options.throwErrorOnBrokenSymbolicLink,!0),this.fsStatSettings=new GW.Settings({followSymbolicLink:this.followSymbolicLinks,fs:this.fs,throwErrorOnBrokenSymbolicLink:this.throwErrorOnBrokenSymbolicLink});}_getValue(e,t){return e??t}};Jg.default=VW;Object.defineProperty(mn,"__esModule",{value:!0});mn.Settings=mn.scandirSync=mn.scandir=void 0;Rb=tr,JW=nr,bm=Jg;mn.Settings=bm.default;mn.scandir=YW;mn.scandirSync=XW;Yg={exports:{}};eq=ZW,tq=eq;Yg.exports=zC;Yg.exports.promise=rq;sq=Yg.exports,Qt={};Object.defineProperty(Qt,"__esModule",{value:!0});Qt.joinPathSegments=Qt.replacePathSegmentSeparator=Qt.isAppliedFilter=Qt.isFatalError=void 0;Qt.isFatalError=iq;Qt.isAppliedFilter=oq;Qt.replacePathSegmentSeparator=aq;Qt.joinPathSegments=lq;Iu={};Object.defineProperty(Iu,"__esModule",{value:!0});cq=Qt,uq=class{constructor(e,t){this._root=e,this._settings=t,this._root=cq.replacePathSegmentSeparator(e,t.pathSegmentSeparator);}};Iu.default=uq;Object.defineProperty(_u,"__esModule",{value:!0});fq=ea__default.default,hq=mn,dq=sq,jl=Qt,pq=Iu,Cm=class extends pq.default{constructor(e,t){super(e,t),this._settings=t,this._scandir=hq.scandir,this._emitter=new fq.EventEmitter,this._queue=dq(this._worker.bind(this),this._settings.concurrency),this._isFatalError=!1,this._isDestroyed=!1,this._queue.drain=()=>{this._isFatalError||this._emitter.emit("end");};}read(){return this._isFatalError=!1,this._isDestroyed=!1,setImmediate(()=>{this._pushToQueue(this._root,this._settings.basePath);}),this._emitter}get isDestroyed(){return this._isDestroyed}destroy(){if(this._isDestroyed)throw new Error("The reader is already destroyed");this._isDestroyed=!0,this._queue.killAndDrain();}onEntry(e){this._emitter.on("entry",e);}onError(e){this._emitter.once("error",e);}onEnd(e){this._emitter.once("end",e);}_pushToQueue(e,t){let r={directory:e,base:t};this._queue.push(r,s=>{s!==null&&this._handleError(s);});}_worker(e,t){this._scandir(e.directory,this._settings.fsScandirSettings,(r,s)=>{if(r!==null){t(r,void 0);return}for(let i of s)this._handleEntry(i,e.base);t(null,void 0);});}_handleError(e){this._isDestroyed||!jl.isFatalError(this._settings,e)||(this._isFatalError=!0,this._isDestroyed=!0,this._emitter.emit("error",e));}_handleEntry(e,t){if(this._isDestroyed||this._isFatalError)return;let r=e.path;t!==void 0&&(e.path=jl.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),jl.isAppliedFilter(this._settings.entryFilter,e)&&this._emitEntry(e),e.dirent.isDirectory()&&jl.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,t===void 0?void 0:e.path);}_emitEntry(e){this._emitter.emit("entry",e);}};_u.default=Cm;Object.defineProperty(Kg,"__esModule",{value:!0});mq=_u,Im=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new mq.default(this._root,this._settings),this._storage=[];}read(e){this._reader.onError(t=>{gq(e,t);}),this._reader.onEntry(t=>{this._storage.push(t);}),this._reader.onEnd(()=>{yq(e,this._storage);}),this._reader.read();}};Kg.default=Im;Xg={};Object.defineProperty(Xg,"__esModule",{value:!0});wq=Xr__default.default,vq=_u,Om=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new vq.default(this._root,this._settings),this._stream=new wq.Readable({objectMode:!0,read:()=>{},destroy:()=>{this._reader.isDestroyed||this._reader.destroy();}});}read(){return this._reader.onError(e=>{this._stream.emit("error",e);}),this._reader.onEntry(e=>{this._stream.push(e);}),this._reader.onEnd(()=>{this._stream.push(null);}),this._reader.read(),this._stream}};Xg.default=Om;Zg={},ey={};Object.defineProperty(ey,"__esModule",{value:!0});Eq=mn,Ul=Qt,Aq=Iu,Rm=class extends Aq.default{constructor(){super(...arguments),this._scandir=Eq.scandirSync,this._storage=[],this._queue=new Set;}read(){return this._pushToQueue(this._root,this._settings.basePath),this._handleQueue(),this._storage}_pushToQueue(e,t){this._queue.add({directory:e,base:t});}_handleQueue(){for(let e of this._queue.values())this._handleDirectory(e.directory,e.base);}_handleDirectory(e,t){try{let r=this._scandir(e,this._settings.fsScandirSettings);for(let s of r)this._handleEntry(s,t);}catch(r){this._handleError(r);}}_handleError(e){if(Ul.isFatalError(this._settings,e))throw e}_handleEntry(e,t){let r=e.path;t!==void 0&&(e.path=Ul.joinPathSegments(t,e.name,this._settings.pathSegmentSeparator)),Ul.isAppliedFilter(this._settings.entryFilter,e)&&this._pushToStorage(e),e.dirent.isDirectory()&&Ul.isAppliedFilter(this._settings.deepFilter,e)&&this._pushToQueue(r,t===void 0?void 0:e.path);}_pushToStorage(e){this._storage.push(e);}};ey.default=Rm;Object.defineProperty(Zg,"__esModule",{value:!0});Sq=ey,km=class{constructor(e,t){this._root=e,this._settings=t,this._reader=new Sq.default(this._root,this._settings);}read(){return this._reader.read()}};Zg.default=km;ty={};Object.defineProperty(ty,"__esModule",{value:!0});_q=Oe__default.default,bq=mn,$m=class{constructor(e={}){this._options=e,this.basePath=this._getValue(this._options.basePath,void 0),this.concurrency=this._getValue(this._options.concurrency,Number.POSITIVE_INFINITY),this.deepFilter=this._getValue(this._options.deepFilter,null),this.entryFilter=this._getValue(this._options.entryFilter,null),this.errorFilter=this._getValue(this._options.errorFilter,null),this.pathSegmentSeparator=this._getValue(this._options.pathSegmentSeparator,_q.sep),this.fsScandirSettings=new bq.Settings({followSymbolicLinks:this._options.followSymbolicLinks,fs:this._options.fs,pathSegmentSeparator:this._options.pathSegmentSeparator,stats:this._options.stats,throwErrorOnBrokenSymbolicLink:this._options.throwErrorOnBrokenSymbolicLink});}_getValue(e,t){return e??t}};ty.default=$m;Object.defineProperty(Ut,"__esModule",{value:!0});Ut.Settings=Ut.walkStream=Ut.walkSync=Ut.walk=void 0;kb=Kg,xq=Xg,Cq=Zg,Tm=ty;Ut.Settings=Tm.default;Ut.walk=Iq;Ut.walkSync=Oq;Ut.walkStream=Rq;oa={};Object.defineProperty(oa,"__esModule",{value:!0});kq=Oe__default.default,$q=It,$b=Ce,Pm=class{constructor(e){this._settings=e,this._fsStatSettings=new $q.Settings({followSymbolicLink:this._settings.followSymbolicLinks,fs:this._settings.fs,throwErrorOnBrokenSymbolicLink:this._settings.followSymbolicLinks});}_getFullEntryPath(e){return kq.resolve(this._settings.cwd,e)}_makeEntry(e,t){let r={name:t,path:t,dirent:$b.fs.createDirentFromStats(t,e)};return this._settings.stats&&(r.stats=e),r}_isFatalError(e){return !$b.errno.isEnoentCodeError(e)&&!this._settings.suppressErrors}};oa.default=Pm;Ou={};Object.defineProperty(Ou,"__esModule",{value:!0});Tq=Xr__default.default,Pq=It,Nq=Ut,Lq=oa,Nm=class extends Lq.default{constructor(){super(...arguments),this._walkStream=Nq.walkStream,this._stat=Pq.stat;}dynamic(e,t){return this._walkStream(e,t)}static(e,t){let r=e.map(this._getFullEntryPath,this),s=new Tq.PassThrough({objectMode:!0});s._write=(i,o,a)=>this._getEntry(r[i],e[i],t).then(l=>{l!==null&&t.entryFilter(l)&&s.push(l),i===r.length-1&&s.end(),a();}).catch(a);for(let i=0;i<r.length;i++)s.write(i);return s}_getEntry(e,t,r){return this._getStat(e).then(s=>this._makeEntry(s,t)).catch(s=>{if(r.errorFilter(s))return null;throw s})}_getStat(e){return new Promise((t,r)=>{this._stat(e,this._fsStatSettings,(s,i)=>s===null?t(i):r(s));})}};Ou.default=Nm;Object.defineProperty(Gg,"__esModule",{value:!0});Mq=Ut,Dq=oa,Bq=Ou,Lm=class extends Dq.default{constructor(){super(...arguments),this._walkAsync=Mq.walk,this._readerStream=new Bq.default(this._settings);}dynamic(e,t){return new Promise((r,s)=>{this._walkAsync(e,t,(i,o)=>{i===null?r(o):s(i);});})}async static(e,t){let r=[],s=this._readerStream.static(e,t);return new Promise((i,o)=>{s.once("error",o),s.on("data",a=>r.push(a)),s.once("end",()=>i(r));})}};Gg.default=Lm;aa={},ny={},ry={},sy={};Object.defineProperty(sy,"__esModule",{value:!0});po=Ce,Mm=class{constructor(e,t,r){this._patterns=e,this._settings=t,this._micromatchOptions=r,this._storage=[],this._fillStorage();}_fillStorage(){for(let e of this._patterns){let t=this._getPatternSegments(e),r=this._splitSegmentsIntoSections(t);this._storage.push({complete:r.length<=1,pattern:e,segments:t,sections:r});}}_getPatternSegments(e){return po.pattern.getPatternParts(e,this._micromatchOptions).map(r=>po.pattern.isDynamicPattern(r,this._settings)?{dynamic:!0,pattern:r,patternRe:po.pattern.makeRe(r,this._micromatchOptions)}:{dynamic:!1,pattern:r})}_splitSegmentsIntoSections(e){return po.array.splitWhen(e,t=>t.dynamic&&po.pattern.hasGlobStar(t.pattern))}};sy.default=Mm;Object.defineProperty(ry,"__esModule",{value:!0});Fq=sy,Dm=class extends Fq.default{match(e){let t=e.split("/"),r=t.length,s=this._storage.filter(i=>!i.complete||i.segments.length>r);for(let i of s){let o=i.sections[0];if(!i.complete&&r>o.length||t.every((l,c)=>{let u=i.segments[c];return !!(u.dynamic&&u.patternRe.test(l)||!u.dynamic&&u.pattern===l)}))return !0}return !1}};ry.default=Dm;Object.defineProperty(ny,"__esModule",{value:!0});Ql=Ce,jq=ry,Bm=class{constructor(e,t){this._settings=e,this._micromatchOptions=t;}getFilter(e,t,r){let s=this._getMatcher(t),i=this._getNegativePatternsRe(r);return o=>this._filter(e,o,s,i)}_getMatcher(e){return new jq.default(e,this._settings,this._micromatchOptions)}_getNegativePatternsRe(e){let t=e.filter(Ql.pattern.isAffectDepthOfReadingPattern);return Ql.pattern.convertPatternsToRe(t,this._micromatchOptions)}_filter(e,t,r,s){if(this._isSkippedByDeep(e,t.path)||this._isSkippedSymbolicLink(t))return !1;let i=Ql.path.removeLeadingDotSegment(t.path);return this._isSkippedByPositivePatterns(i,r)?!1:this._isSkippedByNegativePatterns(i,s)}_isSkippedByDeep(e,t){return this._settings.deep===1/0?!1:this._getEntryLevel(e,t)>=this._settings.deep}_getEntryLevel(e,t){let r=t.split("/").length;if(e==="")return r;let s=e.split("/").length;return r-s}_isSkippedSymbolicLink(e){return !this._settings.followSymbolicLinks&&e.dirent.isSymbolicLink()}_isSkippedByPositivePatterns(e,t){return !this._settings.baseNameMatch&&!t.match(e)}_isSkippedByNegativePatterns(e,t){return !Ql.pattern.matchAny(e,t)}};ny.default=Bm;iy={};Object.defineProperty(iy,"__esModule",{value:!0});kr=Ce,Fm=class{constructor(e,t){this._settings=e,this._micromatchOptions=t,this.index=new Map;}getFilter(e,t){let r=kr.pattern.convertPatternsToRe(e,this._micromatchOptions),s=kr.pattern.convertPatternsToRe(t,Object.assign(Object.assign({},this._micromatchOptions),{dot:!0}));return i=>this._filter(i,r,s)}_filter(e,t,r){let s=kr.path.removeLeadingDotSegment(e.path);if(this._settings.unique&&this._isDuplicateEntry(s)||this._onlyFileFilter(e)||this._onlyDirectoryFilter(e)||this._isSkippedByAbsoluteNegativePatterns(s,r))return !1;let i=e.dirent.isDirectory(),o=this._isMatchToPatterns(s,t,i)&&!this._isMatchToPatterns(s,r,i);return this._settings.unique&&o&&this._createIndexRecord(s),o}_isDuplicateEntry(e){return this.index.has(e)}_createIndexRecord(e){this.index.set(e,void 0);}_onlyFileFilter(e){return this._settings.onlyFiles&&!e.dirent.isFile()}_onlyDirectoryFilter(e){return this._settings.onlyDirectories&&!e.dirent.isDirectory()}_isSkippedByAbsoluteNegativePatterns(e,t){if(!this._settings.absolute)return !1;let r=kr.path.makeAbsolute(this._settings.cwd,e);return kr.pattern.matchAny(r,t)}_isMatchToPatterns(e,t,r){let s=kr.pattern.matchAny(e,t);return !s&&r?kr.pattern.matchAny(e+"/",t):s}};iy.default=Fm;oy={};Object.defineProperty(oy,"__esModule",{value:!0});Uq=Ce,jm=class{constructor(e){this._settings=e;}getFilter(){return e=>this._isNonFatalError(e)}_isNonFatalError(e){return Uq.errno.isEnoentCodeError(e)||this._settings.suppressErrors}};oy.default=jm;ay={};Object.defineProperty(ay,"__esModule",{value:!0});Tb=Ce,Um=class{constructor(e){this._settings=e;}getTransformer(){return e=>this._transform(e)}_transform(e){let t=e.path;return this._settings.absolute&&(t=Tb.path.makeAbsolute(this._settings.cwd,t),t=Tb.path.unixify(t)),this._settings.markDirectories&&e.dirent.isDirectory()&&(t+="/"),this._settings.objectMode?Object.assign(Object.assign({},e),{path:t}):t}};ay.default=Um;Object.defineProperty(aa,"__esModule",{value:!0});Qq=Oe__default.default,Wq=ny,qq=iy,Hq=oy,zq=ay,Qm=class{constructor(e){this._settings=e,this.errorFilter=new Hq.default(this._settings),this.entryFilter=new qq.default(this._settings,this._getMicromatchOptions()),this.deepFilter=new Wq.default(this._settings,this._getMicromatchOptions()),this.entryTransformer=new zq.default(this._settings);}_getRootDirectory(e){return Qq.resolve(this._settings.cwd,e.base)}_getReaderOptions(e){let t=e.base==="."?"":e.base;return {basePath:t,pathSegmentSeparator:"/",concurrency:this._settings.concurrency,deepFilter:this.deepFilter.getFilter(t,e.positive,e.negative),entryFilter:this.entryFilter.getFilter(e.positive,e.negative),errorFilter:this.errorFilter.getFilter(),followSymbolicLinks:this._settings.followSymbolicLinks,fs:this._settings.fs,stats:this._settings.stats,throwErrorOnBrokenSymbolicLink:this._settings.throwErrorOnBrokenSymbolicLink,transform:this.entryTransformer.getTransformer()}}_getMicromatchOptions(){return {dot:this._settings.dot,matchBase:this._settings.baseNameMatch,nobrace:!this._settings.braceExpansion,nocase:!this._settings.caseSensitiveMatch,noext:!this._settings.extglob,noglobstar:!this._settings.globstar,posix:!0,strictSlashes:!1}}};aa.default=Qm;Object.defineProperty(zg,"__esModule",{value:!0});Gq=Gg,Kq=aa,Wm=class extends Kq.default{constructor(){super(...arguments),this._reader=new Gq.default(this._settings);}async read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e);return (await this.api(t,e,r)).map(i=>r.transform(i))}api(e,t,r){return t.dynamic?this._reader.dynamic(e,r):this._reader.static(t.patterns,r)}};zg.default=Wm;ly={};Object.defineProperty(ly,"__esModule",{value:!0});Vq=Xr__default.default,Jq=Ou,Yq=aa,qm=class extends Yq.default{constructor(){super(...arguments),this._reader=new Jq.default(this._settings);}read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e),s=this.api(t,e,r),i=new Vq.Readable({objectMode:!0,read:()=>{}});return s.once("error",o=>i.emit("error",o)).on("data",o=>i.emit("data",r.transform(o))).once("end",()=>i.emit("end")),i.once("close",()=>s.destroy()),i}api(e,t,r){return t.dynamic?this._reader.dynamic(e,r):this._reader.static(t.patterns,r)}};ly.default=qm;cy={},uy={};Object.defineProperty(uy,"__esModule",{value:!0});Xq=It,Zq=Ut,eH=oa,Hm=class extends eH.default{constructor(){super(...arguments),this._walkSync=Zq.walkSync,this._statSync=Xq.statSync;}dynamic(e,t){return this._walkSync(e,t)}static(e,t){let r=[];for(let s of e){let i=this._getFullEntryPath(s),o=this._getEntry(i,s,t);o===null||!t.entryFilter(o)||r.push(o);}return r}_getEntry(e,t,r){try{let s=this._getStat(e);return this._makeEntry(s,t)}catch(s){if(r.errorFilter(s))return null;throw s}}_getStat(e){return this._statSync(e,this._fsStatSettings)}};uy.default=Hm;Object.defineProperty(cy,"__esModule",{value:!0});tH=uy,nH=aa,zm=class extends nH.default{constructor(){super(...arguments),this._reader=new tH.default(this._settings);}read(e){let t=this._getRootDirectory(e),r=this._getReaderOptions(e);return this.api(t,e,r).map(r.transform)}api(e,t,r){return t.dynamic?this._reader.dynamic(e,r):this._reader.static(t.patterns,r)}};cy.default=zm;GC={};(function(n){Object.defineProperty(n,"__esModule",{value:!0}),n.DEFAULT_FILE_SYSTEM_ADAPTER=void 0;let e=Je__namespace.default,r=Math.max(Zr__default.default.cpus().length,1);n.DEFAULT_FILE_SYSTEM_ADAPTER={lstat:e.lstat,lstatSync:e.lstatSync,stat:e.stat,statSync:e.statSync,readdir:e.readdir,readdirSync:e.readdirSync};class s{constructor(o={}){this._options=o,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,r),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(o,a){return o===void 0?a:o}_getFileSystemMethods(o={}){return Object.assign(Object.assign({},n.DEFAULT_FILE_SYSTEM_ADAPTER),o)}}n.default=s;})(GC);KC=tt,rH=zg,sH=ly,iH=cy,Gm=GC,Bt=Ce;(function(n){n.glob=n,n.globSync=e,n.globStream=t,n.async=n;function e(a,l){rn(a);let c=Km(a,iH.default,l);return Bt.array.flatten(c)}n.sync=e;function t(a,l){rn(a);let c=Km(a,sH.default,l);return Bt.stream.merge(c)}n.stream=t;function r(a,l){rn(a);let c=[].concat(a),u=new Gm.default(l);return KC.generate(c,u)}n.generateTasks=r;function s(a,l){rn(a);let c=new Gm.default(l);return Bt.pattern.isDynamicPattern(a,c)}n.isDynamicPattern=s;function i(a){return rn(a),Bt.path.escape(a)}n.escapePath=i;function o(a){return rn(a),Bt.path.convertPathToPattern(a)}n.convertPathToPattern=o,function(a){function l(u){return rn(u),Bt.path.escapePosixPath(u)}a.escapePath=l;function c(u){return rn(u),Bt.path.convertPosixPathToPattern(u)}a.convertPathToPattern=c;}(n.posix||(n.posix={})),function(a){function l(u){return rn(u),Bt.path.escapeWindowsPath(u)}a.escapePath=l;function c(u){return rn(u),Bt.path.convertWindowsPathToPattern(u)}a.convertPathToPattern=c;}(n.win32||(n.win32={}));})(Pb||(Pb={}));la={},sn=Oe__default.default,No=Je__namespace.default,oH=Zr__default.default,Nb=No.promises.readFile;Vm=(n,e)=>JSON.parse(e),ac=typeof __webpack_require__=="function"?__non_webpack_require__:Ec,VC=Object.freeze({".js":ac,".json":ac,".cjs":ac,noExt:Vm});la.defaultLoadersSync=VC;dp=async n=>{try{return (await import(n)).default}catch(e){try{return ac(n)}catch(t){throw t.code==="ERR_REQUIRE_ESM"||t instanceof SyntaxError&&t.toString().includes("Cannot use import statement outside a module")?e:t}}},JC=Object.freeze({".js":dp,".mjs":dp,".cjs":dp,".json":Vm,noExt:Vm});la.defaultLoaders=JC;ZC=n=>(e,t,r)=>(n&&e.set(t,r),r);la.lilconfig=function(e,t){let{ignoreEmptySearchPlaces:r,loaders:s,packageProp:i,searchPlaces:o,stopDir:a,transform:l,cache:c}=YC(e,t??{},!1),u=new Map,f=new Map,h=ZC(c);return {async search(m=process.cwd()){let p={config:null,filepath:""},d=new Set,g=m;e:for(;;){if(c){let w=u.get(g);if(w!==void 0){for(let v of d)u.set(v,w);return w}d.add(g);}for(let w of o){let v=sn.join(g,w);try{await No.promises.access(v);}catch{continue}let A=String(await Nb(v)),E=sn.extname(w)||"noExt",S=s[E];if(w==="package.json"){let _=await S(v,A),x=zc(i,_);if(x!=null){p.config=x,p.filepath=v;break e}continue}let C=A.trim()==="";if(!(C&&r)){C?(p.isEmpty=!0,p.config=void 0):(Gc(S,E),p.config=await S(v,A)),p.filepath=v;break e}}if(g===a||g===Hc(g))break e;g=Hc(g);}let y=p.filepath===""&&p.config===null?l(null):l(p);if(c)for(let w of d)u.set(w,y);return y},async load(m){XC(m);let p=sn.resolve(process.cwd(),m);if(c&&f.has(p))return f.get(p);let{base:d,ext:g}=sn.parse(p),y=g||"noExt",w=s[y];Gc(w,y);let v=String(await Nb(p));if(d==="package.json"){let S=await w(p,v);return h(f,p,l({config:zc(i,S),filepath:p}))}let A={config:null,filepath:p},E=v.trim()==="";return E&&r?h(f,p,l({config:void 0,filepath:p,isEmpty:!0})):(A.config=E?void 0:await w(p,v),h(f,p,l(E?{...A,isEmpty:E,config:void 0}:A)))},clearLoadCache(){c&&f.clear();},clearSearchCache(){c&&u.clear();},clearCaches(){c&&(f.clear(),u.clear());}}};la.lilconfigSync=function(e,t){let{ignoreEmptySearchPlaces:r,loaders:s,packageProp:i,searchPlaces:o,stopDir:a,transform:l,cache:c}=YC(e,t??{},!0),u=new Map,f=new Map,h=ZC(c);return {search(m=process.cwd()){let p={config:null,filepath:""},d=new Set,g=m;e:for(;;){if(c){let w=u.get(g);if(w!==void 0){for(let v of d)u.set(v,w);return w}d.add(g);}for(let w of o){let v=sn.join(g,w);try{No.accessSync(v);}catch{continue}let A=sn.extname(w)||"noExt",E=s[A],S=String(No.readFileSync(v));if(w==="package.json"){let _=E(v,S),x=zc(i,_);if(x!=null){p.config=x,p.filepath=v;break e}continue}let C=S.trim()==="";if(!(C&&r)){C?(p.isEmpty=!0,p.config=void 0):(Gc(E,A),p.config=E(v,S)),p.filepath=v;break e}}if(g===a||g===Hc(g))break e;g=Hc(g);}let y=p.filepath===""&&p.config===null?l(null):l(p);if(c)for(let w of d)u.set(w,y);return y},load(m){XC(m);let p=sn.resolve(process.cwd(),m);if(c&&f.has(p))return f.get(p);let{base:d,ext:g}=sn.parse(p),y=g||"noExt",w=s[y];Gc(w,y);let v=String(No.readFileSync(p));if(d==="package.json"){let S=w(p,v);return l({config:zc(i,S),filepath:p})}let A={config:null,filepath:p},E=v.trim()==="";return E&&r?h(f,p,l({filepath:p,config:void 0,isEmpty:!0})):(A.config=E?void 0:w(p,v),h(f,p,l(E?{...A,isEmpty:E,config:void 0}:A)))},clearLoadCache(){c&&f.clear();},clearSearchCache(){c&&u.clear();},clearCaches(){c&&(f.clear(),u.clear());}}};fy=Symbol.for("yaml.alias"),Jm=Symbol.for("yaml.document"),rr=Symbol.for("yaml.map"),eI=Symbol.for("yaml.pair"),Nn=Symbol.for("yaml.scalar"),pi=Symbol.for("yaml.seq"),qt=Symbol.for("yaml.node.type"),ar=n=>!!n&&typeof n=="object"&&n[qt]===fy,es=n=>!!n&&typeof n=="object"&&n[qt]===Jm,ts=n=>!!n&&typeof n=="object"&&n[qt]===rr,Ae=n=>!!n&&typeof n=="object"&&n[qt]===eI,me=n=>!!n&&typeof n=="object"&&n[qt]===Nn,ns=n=>!!n&&typeof n=="object"&&n[qt]===pi;lH=n=>(me(n)||xe(n))&&!!n.anchor,mt=Symbol("break visit"),tI=Symbol("skip children"),gn=Symbol("remove node");Ln.BREAK=mt;Ln.SKIP=tI;Ln.REMOVE=gn;ca.BREAK=mt;ca.SKIP=tI;ca.REMOVE=gn;cH={"!":"%21",",":"%2C","[":"%5B","]":"%5D","{":"%7B","}":"%7D"},uH=n=>n.replace(/[!,[\]{}]/g,e=>cH[e]),sr=class n{constructor(e,t){this.docStart=null,this.docEnd=!1,this.yaml=Object.assign({},n.defaultYaml,e),this.tags=Object.assign({},n.defaultTags,t);}clone(){let e=new n(this.yaml,this.tags);return e.docStart=this.docStart,e}atDocument(){let e=new n(this.yaml,this.tags);switch(this.yaml.version){case"1.1":this.atNextDocument=!0;break;case"1.2":this.atNextDocument=!1,this.yaml={explicit:n.defaultYaml.explicit,version:"1.2"},this.tags=Object.assign({},n.defaultTags);break}return e}add(e,t){this.atNextDocument&&(this.yaml={explicit:n.defaultYaml.explicit,version:"1.1"},this.tags=Object.assign({},n.defaultTags),this.atNextDocument=!1);let r=e.trim().split(/[ \t]+/),s=r.shift();switch(s){case"%TAG":{if(r.length!==2&&(t(0,"%TAG directive should contain exactly two parts"),r.length<2))return !1;let[i,o]=r;return this.tags[i]=o,!0}case"%YAML":{if(this.yaml.explicit=!0,r.length!==1)return t(0,"%YAML directive should contain exactly one part"),!1;let[i]=r;if(i==="1.1"||i==="1.2")return this.yaml.version=i,!0;{let o=/^\d+\.\d+$/.test(i);return t(6,`Unsupported YAML version ${i}`,o),!1}}default:return t(0,`Unknown directive ${s}`,!0),!1}}tagName(e,t){if(e==="!")return "!";if(e[0]!=="!")return t(`Not a valid tag: ${e}`),null;if(e[1]==="<"){let o=e.slice(2,-1);return o==="!"||o==="!!"?(t(`Verbatim tags aren't resolved, so ${e} is invalid.`),null):(e[e.length-1]!==">"&&t("Verbatim tags must end with a >"),o)}let[,r,s]=e.match(/^(.*!)([^!]*)$/s);s||t(`The ${e} tag has no suffix`);let i=this.tags[r];if(i)try{return i+decodeURIComponent(s)}catch(o){return t(String(o)),null}return r==="!"?e:(t(`Could not resolve tag: ${e}`),null)}tagString(e){for(let[t,r]of Object.entries(this.tags))if(e.startsWith(r))return t+uH(e.substring(r.length));return e[0]==="!"?e:`!<${e}>`}toString(e){let t=this.yaml.explicit?[`%YAML ${this.yaml.version||"1.2"}`]:[],r=Object.entries(this.tags),s;if(e&&r.length>0&&Ie(e.contents)){let i={};Ln(e.contents,(o,a)=>{Ie(a)&&a.tag&&(i[a.tag]=!0);}),s=Object.keys(i);}else s=[];for(let[i,o]of r)i==="!!"&&o==="tag:yaml.org,2002:"||(!e||s.some(a=>a.startsWith(o)))&&t.push(`%TAG ${i} ${o}`);return t.join(`
|
|
417
|
+
`)}};sr.defaultYaml={explicit:!1,version:"1.2"};sr.defaultTags={"!!":"tag:yaml.org,2002:"};Wo=class{constructor(e){Object.defineProperty(this,qt,{value:e});}clone(){let e=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return this.range&&(e.range=this.range.slice()),e}toJS(e,{mapAsMap:t,maxAliasCount:r,onAnchor:s,reviver:i}={}){if(!es(e))throw new TypeError("A document argument is required");let o={anchors:new Map,doc:e,keep:!0,mapAsMap:t===!0,mapKeyWarned:!1,maxAliasCount:typeof r=="number"?r:100},a=Wt(this,"",o);if(typeof s=="function")for(let{count:l,res:c}of o.anchors.values())s(c,l);return typeof i=="function"?Ks(i,{"":a},"",a):a}},zr=class extends Wo{constructor(e){super(fy),this.source=e,Object.defineProperty(this,"tag",{set(){throw new Error("Alias nodes cannot have tags")}});}resolve(e){let t;return Ln(e,{Node:(r,s)=>{if(s===this)return Ln.BREAK;s.anchor===this.source&&(t=s);}}),t}toJSON(e,t){if(!t)return {source:this.source};let{anchors:r,doc:s,maxAliasCount:i}=t,o=this.resolve(s);if(!o){let l=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new ReferenceError(l)}let a=r.get(o);if(a||(Wt(o,null,t),a=r.get(o)),!a||a.res===void 0){let l="This should not happen: Alias anchor was not resolved?";throw new ReferenceError(l)}if(i>=0&&(a.count+=1,a.aliasCount===0&&(a.aliasCount=lc(s,o,r)),a.count*a.aliasCount>i)){let l="Excessive alias count indicates a resource exhaustion attack";throw new ReferenceError(l)}return a.res}toString(e,t,r){let s=`*${this.source}`;if(e){if(iI(this.source),e.options.verifyAliasOrder&&!e.anchors.has(this.source)){let i=`Unresolved alias (the anchor must be set before the alias): ${this.source}`;throw new Error(i)}if(e.implicitKey)return `${s} `}return s}};lI=n=>!n||typeof n!="function"&&typeof n!="object",oe=class extends Wo{constructor(e){super(Nn),this.value=e;}toJSON(e,t){return t?.keep?this.value:Wt(this.value,e,t)}toString(){return String(this.value)}};oe.BLOCK_FOLDED="BLOCK_FOLDED";oe.BLOCK_LITERAL="BLOCK_LITERAL";oe.PLAIN="PLAIN";oe.QUOTE_DOUBLE="QUOTE_DOUBLE";oe.QUOTE_SINGLE="QUOTE_SINGLE";hH="tag:yaml.org,2002:";Ro=n=>n==null||typeof n=="object"&&!!n[Symbol.iterator]().next().done,Vc=class extends Wo{constructor(e,t){super(e),Object.defineProperty(this,"schema",{value:t,configurable:!0,enumerable:!1,writable:!0});}clone(e){let t=Object.create(Object.getPrototypeOf(this),Object.getOwnPropertyDescriptors(this));return e&&(t.schema=e),t.items=t.items.map(r=>Ie(r)||Ae(r)?r.clone(e):r),this.range&&(t.range=this.range.slice()),t}addIn(e,t){if(Ro(e))this.add(t);else {let[r,...s]=e,i=this.get(r,!0);if(xe(i))i.addIn(s,t);else if(i===void 0&&this.schema)this.set(r,Kc(this.schema,s,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn(e){let[t,...r]=e;if(r.length===0)return this.delete(t);let s=this.get(t,!0);if(xe(s))return s.deleteIn(r);throw new Error(`Expected YAML collection at ${t}. Remaining path: ${r}`)}getIn(e,t){let[r,...s]=e,i=this.get(r,!0);return s.length===0?!t&&me(i)?i.value:i:xe(i)?i.getIn(s,t):void 0}hasAllNullValues(e){return this.items.every(t=>{if(!Ae(t))return !1;let r=t.value;return r==null||e&&me(r)&&r.value==null&&!r.commentBefore&&!r.comment&&!r.tag})}hasIn(e){let[t,...r]=e;if(r.length===0)return this.has(t);let s=this.get(t,!0);return xe(s)?s.hasIn(r):!1}setIn(e,t){let[r,...s]=e;if(s.length===0)this.set(r,t);else {let i=this.get(r,!0);if(xe(i))i.setIn(s,t);else if(i===void 0&&this.schema)this.set(r,Kc(this.schema,s,t));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}},pH=n=>n.replace(/^(?!$)(?: $)?/gm,"#");jr=(n,e,t)=>n.endsWith(`
|
|
418
|
+
`)?$n(t,e):t.includes(`
|
|
419
|
+
`)?`
|
|
420
|
+
`+$n(t,e):(n.endsWith(" ")?"":" ")+t,cI="flow",Ym="block",cc="quoted";ku=(n,e)=>({indentAtStart:e?n.indent.length:n.indentAtStart,lineWidth:n.options.lineWidth,minContentWidth:n.options.minContentWidth}),$u=n=>/^(%|---|\.\.\.)/m.test(n);try{Zm=new RegExp(`(^|(?<!
|
|
421
|
+
))
|
|
422
|
+
+(?!
|
|
423
|
+
|$)`,"g");}catch{Zm=/\n+(?!\n|$)/g;}Mb="<<";EH=n=>n===Mb||me(n)&&n.value===Mb&&(!n.type||n.type===oe.PLAIN);Ve=class n{constructor(e,t=null){Object.defineProperty(this,qt,{value:eI}),this.key=e,this.value=t;}clone(e){let{key:t,value:r}=this;return Ie(t)&&(t=t.clone(e)),Ie(r)&&(r=r.clone(e)),new n(t,r)}toJSON(e,t){let r=t?.mapAsMap?new Map:{};return hI(t,r,this)}toString(e,t,r){return e?.doc?vH(this,e,t,r):JSON.stringify(this)}};nt=class extends Vc{static get tagName(){return "tag:yaml.org,2002:map"}constructor(e){super(rr,e),this.items=[];}static from(e,t,r){let{keepUndefined:s,replacer:i}=r,o=new this(e),a=(l,c)=>{if(typeof i=="function")c=i.call(t,l,c);else if(Array.isArray(i)&&!i.includes(l))return;(c!==void 0||s)&&o.items.push(hy(l,c,r));};if(t instanceof Map)for(let[l,c]of t)a(l,c);else if(t&&typeof t=="object")for(let l of Object.keys(t))a(l,t[l]);return typeof e.sortMapEntries=="function"&&o.items.sort(e.sortMapEntries),o}add(e,t){let r;Ae(e)?r=e:!e||typeof e!="object"||!("key"in e)?r=new Ve(e,e?.value):r=new Ve(e.key,e.value);let s=Ur(this.items,r.key),i=this.schema?.sortMapEntries;if(s){if(!t)throw new Error(`Key ${r.key} already set`);me(s.value)&&lI(r.value)?s.value.value=r.value:s.value=r.value;}else if(i){let o=this.items.findIndex(a=>i(r,a)<0);o===-1?this.items.push(r):this.items.splice(o,0,r);}else this.items.push(r);}delete(e){let t=Ur(this.items,e);return t?this.items.splice(this.items.indexOf(t),1).length>0:!1}get(e,t){let s=Ur(this.items,e)?.value;return (!t&&me(s)?s.value:s)??void 0}has(e){return !!Ur(this.items,e)}set(e,t){this.add(new Ve(e,t),!0);}toJSON(e,t,r){let s=r?new r:t?.mapAsMap?new Map:{};t?.onCreate&&t.onCreate(s);for(let i of this.items)hI(t,s,i);return s}toString(e,t,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!Ae(s))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return !e.allNullValues&&this.hasAllNullValues(!1)&&(e=Object.assign({},e,{allNullValues:!0})),dI(this,e,{blockItemPrefix:"",flowChars:{start:"{",end:"}"},itemIndent:e.indent||"",onChompKeep:r,onComment:t})}},mi={collection:"map",default:!0,nodeClass:nt,tag:"tag:yaml.org,2002:map",resolve(n,e){return ts(n)||e("Expected a mapping for this tag"),n},createNode:(n,e,t)=>nt.from(n,e,t)},an=class extends Vc{static get tagName(){return "tag:yaml.org,2002:seq"}constructor(e){super(pi,e),this.items=[];}add(e){this.items.push(e);}delete(e){let t=Wl(e);return typeof t!="number"?!1:this.items.splice(t,1).length>0}get(e,t){let r=Wl(e);if(typeof r!="number")return;let s=this.items[r];return !t&&me(s)?s.value:s}has(e){let t=Wl(e);return typeof t=="number"&&t<this.items.length}set(e,t){let r=Wl(e);if(typeof r!="number")throw new Error(`Expected a valid index, not ${e}.`);let s=this.items[r];me(s)&&lI(t)?s.value=t:this.items[r]=t;}toJSON(e,t){let r=[];t?.onCreate&&t.onCreate(r);let s=0;for(let i of this.items)r.push(Wt(i,String(s++),t));return r}toString(e,t,r){return e?dI(this,e,{blockItemPrefix:"- ",flowChars:{start:"[",end:"]"},itemIndent:(e.indent||"")+" ",onChompKeep:r,onComment:t}):JSON.stringify(this)}static from(e,t,r){let{replacer:s}=r,i=new this(e);if(t&&Symbol.iterator in Object(t)){let o=0;for(let a of t){if(typeof s=="function"){let l=t instanceof Set?a:String(o++);a=s.call(t,l,a);}i.items.push(qo(a,void 0,r));}}return i}};gi={collection:"seq",default:!0,nodeClass:an,tag:"tag:yaml.org,2002:seq",resolve(n,e){return ns(n)||e("Expected a sequence for this tag"),n},createNode:(n,e,t)=>an.from(n,e,t)},Tu={identify:n=>typeof n=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n=>n,stringify(n,e,t,r){return e=Object.assign({actualString:!0},e),ua(n,e,t,r)}},Pu={identify:n=>n==null,createNode:()=>new oe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^(?:~|[Nn]ull|NULL)?$/,resolve:()=>new oe(null),stringify:({source:n},e)=>typeof n=="string"&&Pu.test.test(n)?n:e.options.nullStr},dy={identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:[Tt]rue|TRUE|[Ff]alse|FALSE)$/,resolve:n=>new oe(n[0]==="t"||n[0]==="T"),stringify({source:n,value:e},t){if(n&&dy.test.test(n)){let r=n[0]==="t"||n[0]==="T";if(e===r)return n}return e?t.options.trueStr:t.options.falseStr}};pI={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:n=>n.slice(-3).toLowerCase()==="nan"?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ln},mI={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:\.[0-9]+|[0-9]+(?:\.[0-9]*)?)[eE][-+]?[0-9]+$/,resolve:n=>parseFloat(n),stringify(n){let e=Number(n.value);return isFinite(e)?e.toExponential():ln(n)}},gI={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:\.[0-9]+|[0-9]+\.[0-9]*)$/,resolve(n){let e=new oe(parseFloat(n)),t=n.indexOf(".");return t!==-1&&n[n.length-1]==="0"&&(e.minFractionDigits=n.length-t-1),e},stringify:ln},Nu=n=>typeof n=="bigint"||Number.isInteger(n),py=(n,e,t,{intAsBigInt:r})=>r?BigInt(n):parseInt(n.substring(e),t);wI={identify:n=>Nu(n)&&n>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^0o[0-7]+$/,resolve:(n,e,t)=>py(n,2,8,t),stringify:n=>yI(n,8,"0o")},vI={identify:Nu,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9]+$/,resolve:(n,e,t)=>py(n,0,10,t),stringify:ln},EI={identify:n=>Nu(n)&&n>=0,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^0x[0-9a-fA-F]+$/,resolve:(n,e,t)=>py(n,2,16,t),stringify:n=>yI(n,16,"0x")},bH=[mi,gi,Tu,Pu,dy,wI,vI,EI,pI,mI,gI];ql=({value:n})=>JSON.stringify(n),xH=[{identify:n=>typeof n=="string",default:!0,tag:"tag:yaml.org,2002:str",resolve:n=>n,stringify:ql},{identify:n=>n==null,createNode:()=>new oe(null),default:!0,tag:"tag:yaml.org,2002:null",test:/^null$/,resolve:()=>null,stringify:ql},{identify:n=>typeof n=="boolean",default:!0,tag:"tag:yaml.org,2002:bool",test:/^true|false$/,resolve:n=>n==="true",stringify:ql},{identify:Db,default:!0,tag:"tag:yaml.org,2002:int",test:/^-?(?:0|[1-9][0-9]*)$/,resolve:(n,e,{intAsBigInt:t})=>t?BigInt(n):parseInt(n,10),stringify:({value:n})=>Db(n)?n.toString():JSON.stringify(n)},{identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^-?(?:0|[1-9][0-9]*)(?:\.[0-9]*)?(?:[eE][-+]?[0-9]+)?$/,resolve:n=>parseFloat(n),stringify:ql}],CH={default:!0,tag:"",test:/^/,resolve(n,e){return e(`Unresolved plain scalar ${JSON.stringify(n)}`),n}},IH=[mi,gi].concat(xH,CH),my={identify:n=>n instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve(n,e){if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let t=atob(n.replace(/[\n\r]/g,"")),r=new Uint8Array(t.length);for(let s=0;s<t.length;++s)r[s]=t.charCodeAt(s);return r}else return e("This environment does not support reading binary tags; either Buffer or atob is required"),n},stringify({comment:n,type:e,value:t},r,s,i){let o=t,a;if(typeof Buffer=="function")a=o instanceof Buffer?o.toString("base64"):Buffer.from(o.buffer).toString("base64");else if(typeof btoa=="function"){let l="";for(let c=0;c<o.length;++c)l+=String.fromCharCode(o[c]);a=btoa(l);}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=oe.BLOCK_LITERAL),e!==oe.QUOTE_DOUBLE){let l=Math.max(r.options.lineWidth-r.indent.length,r.options.minContentWidth),c=Math.ceil(a.length/l),u=new Array(c);for(let f=0,h=0;f<c;++f,h+=l)u[f]=a.substr(h,l);a=u.join(e===oe.BLOCK_LITERAL?`
|
|
424
|
+
`:" ");}return ua({comment:n,type:e,value:a},r,s,i)}};gy={collection:"seq",default:!1,tag:"tag:yaml.org,2002:pairs",resolve:AI,createNode:SI},Zs=class n extends an{constructor(){super(),this.add=nt.prototype.add.bind(this),this.delete=nt.prototype.delete.bind(this),this.get=nt.prototype.get.bind(this),this.has=nt.prototype.has.bind(this),this.set=nt.prototype.set.bind(this),this.tag=n.tag;}toJSON(e,t){if(!t)return super.toJSON(e);let r=new Map;t?.onCreate&&t.onCreate(r);for(let s of this.items){let i,o;if(Ae(s)?(i=Wt(s.key,"",t),o=Wt(s.value,i,t)):i=Wt(s,"",t),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o);}return r}static from(e,t,r){let s=SI(e,t,r),i=new this;return i.items=s.items,i}};Zs.tag="tag:yaml.org,2002:omap";yy={collection:"seq",identify:n=>n instanceof Map,nodeClass:Zs,default:!1,tag:"tag:yaml.org,2002:omap",resolve(n,e){let t=AI(n,e),r=[];for(let{key:s}of t.items)me(s)&&(r.includes(s.value)?e(`Ordered maps must not include duplicate keys: ${s.value}`):r.push(s.value));return Object.assign(new Zs,t)},createNode:(n,e,t)=>Zs.from(n,e,t)};bI={identify:n=>n===!0,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:Y|y|[Yy]es|YES|[Tt]rue|TRUE|[Oo]n|ON)$/,resolve:()=>new oe(!0),stringify:_I},xI={identify:n=>n===!1,default:!0,tag:"tag:yaml.org,2002:bool",test:/^(?:N|n|[Nn]o|NO|[Ff]alse|FALSE|[Oo]ff|OFF)$/,resolve:()=>new oe(!1),stringify:_I},OH={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^(?:[-+]?\.(?:inf|Inf|INF)|\.nan|\.NaN|\.NAN)$/,resolve:n=>n.slice(-3).toLowerCase()==="nan"?NaN:n[0]==="-"?Number.NEGATIVE_INFINITY:Number.POSITIVE_INFINITY,stringify:ln},RH={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"EXP",test:/^[-+]?(?:[0-9][0-9_]*)?(?:\.[0-9_]*)?[eE][-+]?[0-9]+$/,resolve:n=>parseFloat(n.replace(/_/g,"")),stringify(n){let e=Number(n.value);return isFinite(e)?e.toExponential():ln(n)}},kH={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",test:/^[-+]?(?:[0-9][0-9_]*)?\.[0-9_]*$/,resolve(n){let e=new oe(parseFloat(n.replace(/_/g,""))),t=n.indexOf(".");if(t!==-1){let r=n.substring(t+1).replace(/_/g,"");r[r.length-1]==="0"&&(e.minFractionDigits=r.length);}return e},stringify:ln},fa=n=>typeof n=="bigint"||Number.isInteger(n);$H={identify:fa,default:!0,tag:"tag:yaml.org,2002:int",format:"BIN",test:/^[-+]?0b[0-1_]+$/,resolve:(n,e,t)=>Lu(n,2,2,t),stringify:n=>wy(n,2,"0b")},TH={identify:fa,default:!0,tag:"tag:yaml.org,2002:int",format:"OCT",test:/^[-+]?0[0-7_]+$/,resolve:(n,e,t)=>Lu(n,1,8,t),stringify:n=>wy(n,8,"0")},PH={identify:fa,default:!0,tag:"tag:yaml.org,2002:int",test:/^[-+]?[0-9][0-9_]*$/,resolve:(n,e,t)=>Lu(n,0,10,t),stringify:ln},NH={identify:fa,default:!0,tag:"tag:yaml.org,2002:int",format:"HEX",test:/^[-+]?0x[0-9a-fA-F_]+$/,resolve:(n,e,t)=>Lu(n,2,16,t),stringify:n=>wy(n,16,"0x")},ei=class n extends nt{constructor(e){super(e),this.tag=n.tag;}add(e){let t;Ae(e)?t=e:e&&typeof e=="object"&&"key"in e&&"value"in e&&e.value===null?t=new Ve(e.key,null):t=new Ve(e,null),Ur(this.items,t.key)||this.items.push(t);}get(e,t){let r=Ur(this.items,e);return !t&&Ae(r)?me(r.key)?r.key.value:r.key:r}set(e,t){if(typeof t!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof t}`);let r=Ur(this.items,e);r&&!t?this.items.splice(this.items.indexOf(r),1):!r&&t&&this.items.push(new Ve(e));}toJSON(e,t){return super.toJSON(e,t,Set)}toString(e,t,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues(!0))return super.toString(Object.assign({},e,{allNullValues:!0}),t,r);throw new Error("Set items must all have null values")}static from(e,t,r){let{replacer:s}=r,i=new this(e);if(t&&Symbol.iterator in Object(t))for(let o of t)typeof s=="function"&&(o=s.call(t,o,o)),i.items.push(hy(o,null,r));return i}};ei.tag="tag:yaml.org,2002:set";vy={collection:"map",identify:n=>n instanceof Set,nodeClass:ei,default:!1,tag:"tag:yaml.org,2002:set",createNode:(n,e,t)=>ei.from(n,e,t),resolve(n,e){if(ts(n)){if(n.hasAllNullValues(!0))return Object.assign(new ei,n);e("Set items must all have null values");}else e("Expected a mapping for this tag");return n}};II={identify:n=>typeof n=="bigint"||Number.isInteger(n),default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+$/,resolve:(n,e,{intAsBigInt:t})=>Ey(n,t),stringify:CI},OI={identify:n=>typeof n=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^[-+]?[0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*$/,resolve:n=>Ey(n,!1),stringify:CI},Mu={identify:n=>n instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?$"),resolve(n){let e=n.match(Mu.test);if(!e)throw new Error("!!timestamp expects a date, starting with yyyy-mm-dd");let[,t,r,s,i,o,a]=e.map(Number),l=e[7]?Number((e[7]+"00").substr(1,3)):0,c=Date.UTC(t,r-1,s,i||0,o||0,a||0,l),u=e[8];if(u&&u!=="Z"){let f=Ey(u,!1);Math.abs(f)<30&&(f*=60),c-=6e4*f;}return new Date(c)},stringify:({value:n})=>n.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")},Bb=[mi,gi,Tu,Pu,bI,xI,$H,TH,PH,NH,OH,RH,kH,my,yy,gy,vy,II,OI,Mu],Fb=new Map([["core",bH],["failsafe",[mi,gi,Tu]],["json",IH],["yaml11",Bb],["yaml-1.1",Bb]]),jb={binary:my,bool:dy,float:gI,floatExp:mI,floatNaN:pI,floatTime:OI,int:vI,intHex:EI,intOct:wI,intTime:II,map:mi,null:Pu,omap:yy,pairs:gy,seq:gi,set:vy,timestamp:Mu},LH={"tag:yaml.org,2002:binary":my,"tag:yaml.org,2002:omap":yy,"tag:yaml.org,2002:pairs":gy,"tag:yaml.org,2002:set":vy,"tag:yaml.org,2002:timestamp":Mu};MH=(n,e)=>n.key<e.key?-1:n.key>e.key?1:0,Ho=class n{constructor({compat:e,customTags:t,merge:r,resolveKnownTags:s,schema:i,sortMapEntries:o,toStringDefaults:a}){this.compat=Array.isArray(e)?mp(e,"compat"):e?mp(null,e):null,this.merge=!!r,this.name=typeof i=="string"&&i||"core",this.knownTags=s?LH:{},this.tags=mp(t,this.name),this.toStringOptions=a??null,Object.defineProperty(this,rr,{value:mi}),Object.defineProperty(this,Nn,{value:Tu}),Object.defineProperty(this,pi,{value:gi}),this.sortMapEntries=typeof o=="function"?o:o===!0?MH:null;}clone(){let e=Object.create(n.prototype,Object.getOwnPropertyDescriptors(this));return e.tags=this.tags.slice(),e}};Gr=class n{constructor(e,t,r){this.commentBefore=null,this.comment=null,this.errors=[],this.warnings=[],Object.defineProperty(this,qt,{value:Jm});let s=null;typeof t=="function"||Array.isArray(t)?s=t:r===void 0&&t&&(r=t,t=void 0);let i=Object.assign({intAsBigInt:!1,keepSourceTokens:!1,logLevel:"warn",prettyErrors:!0,strict:!0,uniqueKeys:!0,version:"1.2"},r);this.options=i;let{version:o}=i;r?._directives?(this.directives=r._directives.atDocument(),this.directives.yaml.explicit&&(o=this.directives.yaml.version)):this.directives=new sr({version:o}),this.setSchema(o,r),this.contents=e===void 0?null:this.createNode(e,s,r);}clone(){let e=Object.create(n.prototype,{[qt]:{value:Jm}});return e.commentBefore=this.commentBefore,e.comment=this.comment,e.errors=this.errors.slice(),e.warnings=this.warnings.slice(),e.options=Object.assign({},this.options),this.directives&&(e.directives=this.directives.clone()),e.schema=this.schema.clone(),e.contents=Ie(this.contents)?this.contents.clone(e.schema):this.contents,this.range&&(e.range=this.range.slice()),e}add(e){Ds(this.contents)&&this.contents.add(e);}addIn(e,t){Ds(this.contents)&&this.contents.addIn(e,t);}createAlias(e,t){if(!e.anchor){let r=oI(this);e.anchor=!t||r.has(t)?aI(t||"a",r):t;}return new zr(e.anchor)}createNode(e,t,r){let s;if(typeof t=="function")e=t.call({"":e},"",e),s=t;else if(Array.isArray(t)){let g=w=>typeof w=="number"||w instanceof String||w instanceof Number,y=t.filter(g).map(String);y.length>0&&(t=t.concat(y)),s=t;}else r===void 0&&t&&(r=t,t=void 0);let{aliasDuplicateObjects:i,anchorPrefix:o,flow:a,keepUndefined:l,onTagObj:c,tag:u}=r??{},{onAnchor:f,setAnchors:h,sourceObjects:m}=fH(this,o||"a"),p={aliasDuplicateObjects:i??!0,keepUndefined:l??!1,onAnchor:f,onTagObj:c,replacer:s,schema:this.schema,sourceObjects:m},d=qo(e,u,p);return a&&xe(d)&&(d.flow=!0),h(),d}createPair(e,t,r={}){let s=this.createNode(e,null,r),i=this.createNode(t,null,r);return new Ve(s,i)}delete(e){return Ds(this.contents)?this.contents.delete(e):!1}deleteIn(e){return Ro(e)?this.contents==null?!1:(this.contents=null,!0):Ds(this.contents)?this.contents.deleteIn(e):!1}get(e,t){return xe(this.contents)?this.contents.get(e,t):void 0}getIn(e,t){return Ro(e)?!t&&me(this.contents)?this.contents.value:this.contents:xe(this.contents)?this.contents.getIn(e,t):void 0}has(e){return xe(this.contents)?this.contents.has(e):!1}hasIn(e){return Ro(e)?this.contents!==void 0:xe(this.contents)?this.contents.hasIn(e):!1}set(e,t){this.contents==null?this.contents=Kc(this.schema,[e],t):Ds(this.contents)&&this.contents.set(e,t);}setIn(e,t){Ro(e)?this.contents=t:this.contents==null?this.contents=Kc(this.schema,Array.from(e),t):Ds(this.contents)&&this.contents.setIn(e,t);}setSchema(e,t={}){typeof e=="number"&&(e=String(e));let r;switch(e){case"1.1":this.directives?this.directives.yaml.version="1.1":this.directives=new sr({version:"1.1"}),r={merge:!0,resolveKnownTags:!1,schema:"yaml-1.1"};break;case"1.2":case"next":this.directives?this.directives.yaml.version=e:this.directives=new sr({version:e}),r={merge:!1,resolveKnownTags:!0,schema:"core"};break;case null:this.directives&&delete this.directives,r=null;break;default:{let s=JSON.stringify(e);throw new Error(`Expected '1.1', '1.2' or null as first argument, but found: ${s}`)}}if(t.schema instanceof Object)this.schema=t.schema;else if(r)this.schema=new Ho(Object.assign(r,t));else throw new Error("With a null YAML version, the { schema: Schema } option is required")}toJS({json:e,jsonArg:t,mapAsMap:r,maxAliasCount:s,onAnchor:i,reviver:o}={}){let a={anchors:new Map,doc:this,keep:!e,mapAsMap:r===!0,mapKeyWarned:!1,maxAliasCount:typeof s=="number"?s:100},l=Wt(this.contents,t??"",a);if(typeof i=="function")for(let{count:c,res:u}of a.anchors.values())i(u,c);return typeof o=="function"?Ks(o,{"":l},"",l):l}toJSON(e,t){return this.toJS({json:!0,jsonArg:e,mapAsMap:!1,onAnchor:t})}toString(e={}){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");if("indent"in e&&(!Number.isInteger(e.indent)||Number(e.indent)<=0)){let t=JSON.stringify(e.indent);throw new Error(`"indent" option must be a positive integer, not ${t}`)}return DH(this,e)}};ai=class extends Error{constructor(e,t,r,s){super(),this.name=e,this.code=r,this.message=s,this.pos=t;}},pn=class extends ai{constructor(e,t,r){super("YAMLParseError",e,t,r);}},zo=class extends ai{constructor(e,t,r){super("YAMLWarning",e,t,r);}},Yc=(n,e)=>t=>{if(t.pos[0]===-1)return;t.linePos=t.pos.map(a=>e.linePos(a));let{line:r,col:s}=t.linePos[0];t.message+=` at line ${r}, column ${s}`;let i=s-1,o=n.substring(e.lineStarts[r-1],e.lineStarts[r]).replace(/[\n\r]+$/,"");if(i>=60&&o.length>80){let a=Math.min(i-39,o.length-79);o="\u2026"+o.substring(a),i-=a-1;}if(o.length>80&&(o=o.substring(0,79)+"\u2026"),r>1&&/^ *$/.test(o.substring(0,i))){let a=n.substring(e.lineStarts[r-2],e.lineStarts[r-1]);a.length>80&&(a=a.substring(0,79)+`\u2026
|
|
425
|
+
`),o=a+o;}if(/[^ ]/.test(o)){let a=1,l=t.linePos[1];l&&l.line===r&&l.col>s&&(a=Math.max(1,Math.min(l.col-s,80-i)));let c=" ".repeat(i)+"^".repeat(a);t.message+=`:
|
|
426
|
+
|
|
427
|
+
${o}
|
|
428
|
+
${c}
|
|
429
|
+
`;}};Ub="All mapping items must start at the same column";gp="Block collections are not allowed within flow collections",yp=n=>n&&(n.type==="block-map"||n.type==="block-seq");KH={0:"\0",a:"\x07",b:"\b",e:"\x1B",f:"\f",n:`
|
|
430
|
+
`,r:"\r",t:" ",v:"\v",N:"\x85",_:"\xA0",L:"\u2028",P:"\u2029"," ":" ",'"':'"',"/":"/","\\":"\\"," ":" "};ZH={composeNode:NI,composeEmptyNode:Ay};ci=class{constructor(e={}){this.doc=null,this.atDirectives=!1,this.prelude=[],this.errors=[],this.warnings=[],this.onError=(t,r,s,i)=>{let o=mo(t);i?this.warnings.push(new zo(o,r,s)):this.errors.push(new pn(o,r,s));},this.directives=new sr({version:e.version||"1.2"}),this.options=e;}decorate(e,t){let{comment:r,afterEmptyLine:s}=Qb(this.prelude);if(r){let i=e.contents;if(t)e.comment=e.comment?`${e.comment}
|
|
431
|
+
${r}`:r;else if(s||e.directives.docStart||!i)e.commentBefore=r;else if(xe(i)&&!i.flow&&i.items.length>0){let o=i.items[0];Ae(o)&&(o=o.key);let a=o.commentBefore;o.commentBefore=a?`${r}
|
|
432
|
+
${a}`:r;}else {let o=i.commentBefore;i.commentBefore=o?`${r}
|
|
433
|
+
${o}`:r;}}t?(Array.prototype.push.apply(e.errors,this.errors),Array.prototype.push.apply(e.warnings,this.warnings)):(e.errors=this.errors,e.warnings=this.warnings),this.prelude=[],this.errors=[],this.warnings=[];}streamInfo(){return {comment:Qb(this.prelude).comment,directives:this.directives,errors:this.errors,warnings:this.warnings}}*compose(e,t=!1,r=-1){for(let s of e)yield*this.next(s);yield*this.end(t,r);}*next(e){switch(e.type){case"directive":this.directives.add(e.source,(t,r,s)=>{let i=mo(e);i[0]+=t,this.onError(i,"BAD_DIRECTIVE",r,s);}),this.prelude.push(e.source),this.atDirectives=!0;break;case"document":{let t=t3(this.options,this.directives,e,this.onError);this.atDirectives&&!t.directives.docStart&&this.onError(e,"MISSING_CHAR","Missing directives-end/doc-start indicator line"),this.decorate(t,!1),this.doc&&(yield this.doc),this.doc=t,this.atDirectives=!1;break}case"byte-order-mark":case"space":break;case"comment":case"newline":this.prelude.push(e.source);break;case"error":{let t=e.source?`${e.message}: ${JSON.stringify(e.source)}`:e.message,r=new pn(mo(e),"UNEXPECTED_TOKEN",t);this.atDirectives||!this.doc?this.errors.push(r):this.doc.errors.push(r);break}case"doc-end":{if(!this.doc){let r="Unexpected doc-end without preceding document";this.errors.push(new pn(mo(e),"UNEXPECTED_TOKEN",r));break}this.doc.directives.docEnd=!0;let t=ha(e.end,e.offset+e.source.length,this.doc.options.strict,this.onError);if(this.decorate(this.doc,!0),t.comment){let r=this.doc.comment;this.doc.comment=r?`${r}
|
|
434
|
+
${t.comment}`:t.comment;}this.doc.range[2]=t.offset;break}default:this.errors.push(new pn(mo(e),"UNEXPECTED_TOKEN",`Unsupported token ${e.type}`));}}*end(e=!1,t=-1){if(this.doc)this.decorate(this.doc,!0),yield this.doc,this.doc=null;else if(e){let r=Object.assign({_directives:this.directives},this.options),s=new Gr(void 0,r);this.atDirectives&&this.onError(t,"MISSING_CHAR","Missing directives-end indicator line"),s.range=[0,t,t],this.decorate(s,!1),yield s;}}};o3=n=>"type"in n?Xc(n):fc(n);tg=Symbol("break visit"),a3=Symbol("skip children"),MI=Symbol("remove item");Kr.BREAK=tg;Kr.SKIP=a3;Kr.REMOVE=MI;Kr.itemAtPath=(n,e)=>{let t=n;for(let[r,s]of e){let i=t?.[r];if(i&&"items"in i)t=i.items[s];else return}return t};Kr.parentCollection=(n,e)=>{let t=Kr.itemAtPath(n,e.slice(0,-1)),r=e[e.length-1][0],s=t?.[r];if(s&&"items"in s)return s;throw new Error("Parent collection not found")};Du="\uFEFF",Bu="",Fu="",Ko="",l3=n=>!!n&&"items"in n,c3=n=>!!n&&(n.type==="scalar"||n.type==="single-quoted-scalar"||n.type==="double-quoted-scalar"||n.type==="block-scalar");FI={__proto__:null,BOM:Du,DOCUMENT:Bu,FLOW_END:Fu,SCALAR:Ko,createScalarToken:r3,isCollection:l3,isScalar:c3,prettyToken:u3,resolveAsScalar:n3,setScalarValue:s3,stringify:o3,tokenType:BI,visit:Kr};Wb=new Set("0123456789ABCDEFabcdef"),f3=new Set("0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz-#;/?:@&=+$_.!~*'()"),Hl=new Set(",[]{}"),h3=new Set(` ,[]{}
|
|
435
|
+
\r `),Ep=n=>!n||h3.has(n),Vo=class{constructor(){this.atEnd=!1,this.blockScalarIndent=-1,this.blockScalarKeep=!1,this.buffer="",this.flowKey=!1,this.flowLevel=0,this.indentNext=0,this.indentValue=0,this.lineEndPos=null,this.next=null,this.pos=0;}*lex(e,t=!1){if(e){if(typeof e!="string")throw TypeError("source is not a string");this.buffer=this.buffer?this.buffer+e:e,this.lineEndPos=null;}this.atEnd=!t;let r=this.next??"stream";for(;r&&(t||this.hasChars(1));)r=yield*this.parseNext(r);}atLineEnd(){let e=this.pos,t=this.buffer[e];for(;t===" "||t===" ";)t=this.buffer[++e];return !t||t==="#"||t===`
|
|
436
|
+
`?!0:t==="\r"?this.buffer[e+1]===`
|
|
437
|
+
`:!1}charAt(e){return this.buffer[this.pos+e]}continueScalar(e){let t=this.buffer[e];if(this.indentNext>0){let r=0;for(;t===" ";)t=this.buffer[++r+e];if(t==="\r"){let s=this.buffer[r+e+1];if(s===`
|
|
438
|
+
`||!s&&!this.atEnd)return e+r+1}return t===`
|
|
439
|
+
`||r>=this.indentNext||!t&&!this.atEnd?e+r:-1}if(t==="-"||t==="."){let r=this.buffer.substr(e,3);if((r==="---"||r==="...")&&Zt(this.buffer[e+3]))return -1}return e}getLine(){let e=this.lineEndPos;return (typeof e!="number"||e!==-1&&e<this.pos)&&(e=this.buffer.indexOf(`
|
|
440
|
+
`,this.pos),this.lineEndPos=e),e===-1?this.atEnd?this.buffer.substring(this.pos):null:(this.buffer[e-1]==="\r"&&(e-=1),this.buffer.substring(this.pos,e))}hasChars(e){return this.pos+e<=this.buffer.length}setNext(e){return this.buffer=this.buffer.substring(this.pos),this.pos=0,this.lineEndPos=null,this.next=e,null}peek(e){return this.buffer.substr(this.pos,e)}*parseNext(e){switch(e){case"stream":return yield*this.parseStream();case"line-start":return yield*this.parseLineStart();case"block-start":return yield*this.parseBlockStart();case"doc":return yield*this.parseDocument();case"flow":return yield*this.parseFlowCollection();case"quoted-scalar":return yield*this.parseQuotedScalar();case"block-scalar":return yield*this.parseBlockScalar();case"plain-scalar":return yield*this.parsePlainScalar()}}*parseStream(){let e=this.getLine();if(e===null)return this.setNext("stream");if(e[0]===Du&&(yield*this.pushCount(1),e=e.substring(1)),e[0]==="%"){let t=e.length,r=e.indexOf("#");for(;r!==-1;){let i=e[r-1];if(i===" "||i===" "){t=r-1;break}else r=e.indexOf("#",r+1);}for(;;){let i=e[t-1];if(i===" "||i===" ")t-=1;else break}let s=(yield*this.pushCount(t))+(yield*this.pushSpaces(!0));return yield*this.pushCount(e.length-s),this.pushNewline(),"stream"}if(this.atLineEnd()){let t=yield*this.pushSpaces(!0);return yield*this.pushCount(e.length-t),yield*this.pushNewline(),"stream"}return yield Bu,yield*this.parseLineStart()}*parseLineStart(){let e=this.charAt(0);if(!e&&!this.atEnd)return this.setNext("line-start");if(e==="-"||e==="."){if(!this.atEnd&&!this.hasChars(4))return this.setNext("line-start");let t=this.peek(3);if((t==="---"||t==="...")&&Zt(this.charAt(3)))return yield*this.pushCount(3),this.indentValue=0,this.indentNext=0,t==="---"?"doc":"stream"}return this.indentValue=yield*this.pushSpaces(!1),this.indentNext>this.indentValue&&!Zt(this.charAt(1))&&(this.indentNext=this.indentValue),yield*this.parseBlockStart()}*parseBlockStart(){let[e,t]=this.peek(2);if(!t&&!this.atEnd)return this.setNext("block-start");if((e==="-"||e==="?"||e===":")&&Zt(t)){let r=(yield*this.pushCount(1))+(yield*this.pushSpaces(!0));return this.indentNext=this.indentValue+1,this.indentValue+=r,yield*this.parseBlockStart()}return "doc"}*parseDocument(){yield*this.pushSpaces(!0);let e=this.getLine();if(e===null)return this.setNext("doc");let t=yield*this.pushIndicators();switch(e[t]){case"#":yield*this.pushCount(e.length-t);case void 0:return yield*this.pushNewline(),yield*this.parseLineStart();case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel=1,"flow";case"}":case"]":return yield*this.pushCount(1),"doc";case"*":return yield*this.pushUntil(Ep),"doc";case'"':case"'":return yield*this.parseQuotedScalar();case"|":case">":return t+=yield*this.parseBlockScalarHeader(),t+=yield*this.pushSpaces(!0),yield*this.pushCount(e.length-t),yield*this.pushNewline(),yield*this.parseBlockScalar();default:return yield*this.parsePlainScalar()}}*parseFlowCollection(){let e,t,r=-1;do e=yield*this.pushNewline(),e>0?(t=yield*this.pushSpaces(!1),this.indentValue=r=t):t=0,t+=yield*this.pushSpaces(!0);while(e+t>0);let s=this.getLine();if(s===null)return this.setNext("flow");if((r!==-1&&r<this.indentNext&&s[0]!=="#"||r===0&&(s.startsWith("---")||s.startsWith("..."))&&Zt(s[3]))&&!(r===this.indentNext-1&&this.flowLevel===1&&(s[0]==="]"||s[0]==="}")))return this.flowLevel=0,yield Fu,yield*this.parseLineStart();let i=0;for(;s[i]===",";)i+=yield*this.pushCount(1),i+=yield*this.pushSpaces(!0),this.flowKey=!1;switch(i+=yield*this.pushIndicators(),s[i]){case void 0:return "flow";case"#":return yield*this.pushCount(s.length-i),"flow";case"{":case"[":return yield*this.pushCount(1),this.flowKey=!1,this.flowLevel+=1,"flow";case"}":case"]":return yield*this.pushCount(1),this.flowKey=!0,this.flowLevel-=1,this.flowLevel?"flow":"doc";case"*":return yield*this.pushUntil(Ep),"flow";case'"':case"'":return this.flowKey=!0,yield*this.parseQuotedScalar();case":":{let o=this.charAt(1);if(this.flowKey||Zt(o)||o===",")return this.flowKey=!1,yield*this.pushCount(1),yield*this.pushSpaces(!0),"flow"}default:return this.flowKey=!1,yield*this.parsePlainScalar()}}*parseQuotedScalar(){let e=this.charAt(0),t=this.buffer.indexOf(e,this.pos+1);if(e==="'")for(;t!==-1&&this.buffer[t+1]==="'";)t=this.buffer.indexOf("'",t+2);else for(;t!==-1;){let i=0;for(;this.buffer[t-1-i]==="\\";)i+=1;if(i%2===0)break;t=this.buffer.indexOf('"',t+1);}let r=this.buffer.substring(0,t),s=r.indexOf(`
|
|
441
|
+
`,this.pos);if(s!==-1){for(;s!==-1;){let i=this.continueScalar(s+1);if(i===-1)break;s=r.indexOf(`
|
|
442
|
+
`,i);}s!==-1&&(t=s-(r[s-1]==="\r"?2:1));}if(t===-1){if(!this.atEnd)return this.setNext("quoted-scalar");t=this.buffer.length;}return yield*this.pushToIndex(t+1,!1),this.flowLevel?"flow":"doc"}*parseBlockScalarHeader(){this.blockScalarIndent=-1,this.blockScalarKeep=!1;let e=this.pos;for(;;){let t=this.buffer[++e];if(t==="+")this.blockScalarKeep=!0;else if(t>"0"&&t<="9")this.blockScalarIndent=Number(t)-1;else if(t!=="-")break}return yield*this.pushUntil(t=>Zt(t)||t==="#")}*parseBlockScalar(){let e=this.pos-1,t=0,r;e:for(let i=this.pos;r=this.buffer[i];++i)switch(r){case" ":t+=1;break;case`
|
|
443
|
+
`:e=i,t=0;break;case"\r":{let o=this.buffer[i+1];if(!o&&!this.atEnd)return this.setNext("block-scalar");if(o===`
|
|
444
|
+
`)break}default:break e}if(!r&&!this.atEnd)return this.setNext("block-scalar");if(t>=this.indentNext){this.blockScalarIndent===-1?this.indentNext=t:this.indentNext=this.blockScalarIndent+(this.indentNext===0?1:this.indentNext);do{let i=this.continueScalar(e+1);if(i===-1)break;e=this.buffer.indexOf(`
|
|
445
|
+
`,i);}while(e!==-1);if(e===-1){if(!this.atEnd)return this.setNext("block-scalar");e=this.buffer.length;}}let s=e+1;for(r=this.buffer[s];r===" ";)r=this.buffer[++s];if(r===" "){for(;r===" "||r===" "||r==="\r"||r===`
|
|
446
|
+
`;)r=this.buffer[++s];e=s-1;}else if(!this.blockScalarKeep)do{let i=e-1,o=this.buffer[i];o==="\r"&&(o=this.buffer[--i]);let a=i;for(;o===" ";)o=this.buffer[--i];if(o===`
|
|
447
|
+
`&&i>=this.pos&&i+1+t>a)e=i;else break}while(!0);return yield Ko,yield*this.pushToIndex(e+1,!0),yield*this.parseLineStart()}*parsePlainScalar(){let e=this.flowLevel>0,t=this.pos-1,r=this.pos-1,s;for(;s=this.buffer[++r];)if(s===":"){let i=this.buffer[r+1];if(Zt(i)||e&&Hl.has(i))break;t=r;}else if(Zt(s)){let i=this.buffer[r+1];if(s==="\r"&&(i===`
|
|
448
|
+
`?(r+=1,s=`
|
|
449
|
+
`,i=this.buffer[r+1]):t=r),i==="#"||e&&Hl.has(i))break;if(s===`
|
|
450
|
+
`){let o=this.continueScalar(r+1);if(o===-1)break;r=Math.max(r,o-2);}}else {if(e&&Hl.has(s))break;t=r;}return !s&&!this.atEnd?this.setNext("plain-scalar"):(yield Ko,yield*this.pushToIndex(t+1,!0),e?"flow":"doc")}*pushCount(e){return e>0?(yield this.buffer.substr(this.pos,e),this.pos+=e,e):0}*pushToIndex(e,t){let r=this.buffer.slice(this.pos,e);return r?(yield r,this.pos+=r.length,r.length):(t&&(yield ""),0)}*pushIndicators(){switch(this.charAt(0)){case"!":return (yield*this.pushTag())+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"&":return (yield*this.pushUntil(Ep))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators());case"-":case"?":case":":{let e=this.flowLevel>0,t=this.charAt(1);if(Zt(t)||e&&Hl.has(t))return e?this.flowKey&&(this.flowKey=!1):this.indentNext=this.indentValue+1,(yield*this.pushCount(1))+(yield*this.pushSpaces(!0))+(yield*this.pushIndicators())}}return 0}*pushTag(){if(this.charAt(1)==="<"){let e=this.pos+2,t=this.buffer[e];for(;!Zt(t)&&t!==">";)t=this.buffer[++e];return yield*this.pushToIndex(t===">"?e+1:e,!1)}else {let e=this.pos+1,t=this.buffer[e];for(;t;)if(f3.has(t))t=this.buffer[++e];else if(t==="%"&&Wb.has(this.buffer[e+1])&&Wb.has(this.buffer[e+2]))t=this.buffer[e+=3];else break;return yield*this.pushToIndex(e,!1)}}*pushNewline(){let e=this.buffer[this.pos];return e===`
|
|
451
|
+
`?yield*this.pushCount(1):e==="\r"&&this.charAt(1)===`
|
|
452
|
+
`?yield*this.pushCount(2):0}*pushSpaces(e){let t=this.pos-1,r;do r=this.buffer[++t];while(r===" "||e&&r===" ");let s=t-this.pos;return s>0&&(yield this.buffer.substr(this.pos,s),this.pos=t),s}*pushUntil(e){let t=this.pos,r=this.buffer[t];for(;!e(r);)r=this.buffer[++t];return yield*this.pushToIndex(t,!1)}},Jo=class{constructor(){this.lineStarts=[],this.addNewLine=e=>this.lineStarts.push(e),this.linePos=e=>{let t=0,r=this.lineStarts.length;for(;t<r;){let i=t+r>>1;this.lineStarts[i]<e?t=i+1:r=i;}if(this.lineStarts[t]===e)return {line:t+1,col:1};if(t===0)return {line:0,col:e};let s=this.lineStarts[t-1];return {line:t,col:e-s+1}};}};ui=class{constructor(e){this.atNewLine=!0,this.atScalar=!1,this.indent=0,this.offset=0,this.onKeyLine=!1,this.stack=[],this.source="",this.type="",this.lexer=new Vo,this.onNewLine=e;}*parse(e,t=!1){this.onNewLine&&this.offset===0&&this.onNewLine(0);for(let r of this.lexer.lex(e,t))yield*this.next(r);t||(yield*this.end());}*next(e){if(this.source=e,this.atScalar){this.atScalar=!1,yield*this.step(),this.offset+=e.length;return}let t=BI(e);if(t)if(t==="scalar")this.atNewLine=!1,this.atScalar=!0,this.type="scalar";else {switch(this.type=t,yield*this.step(),t){case"newline":this.atNewLine=!0,this.indent=0,this.onNewLine&&this.onNewLine(this.offset+e.length);break;case"space":this.atNewLine&&e[0]===" "&&(this.indent+=e.length);break;case"explicit-key-ind":case"map-value-ind":case"seq-item-ind":this.atNewLine&&(this.indent+=e.length);break;case"doc-mode":case"flow-error-end":return;default:this.atNewLine=!1;}this.offset+=e.length;}else {let r=`Not a YAML token: ${e}`;yield*this.pop({type:"error",offset:this.offset,message:r,source:e}),this.offset+=e.length;}}*end(){for(;this.stack.length>0;)yield*this.pop();}get sourceToken(){return {type:this.type,offset:this.offset,indent:this.indent,source:this.source}}*step(){let e=this.peek(1);if(this.type==="doc-end"&&(!e||e.type!=="doc-end")){for(;this.stack.length>0;)yield*this.pop();this.stack.push({type:"doc-end",offset:this.offset,source:this.source});return}if(!e)return yield*this.stream();switch(e.type){case"document":return yield*this.document(e);case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return yield*this.scalar(e);case"block-scalar":return yield*this.blockScalar(e);case"block-map":return yield*this.blockMap(e);case"block-seq":return yield*this.blockSequence(e);case"flow-collection":return yield*this.flowCollection(e);case"doc-end":return yield*this.documentEnd(e)}yield*this.pop();}peek(e){return this.stack[this.stack.length-e]}*pop(e){let t=e??this.stack.pop();if(!t)yield {type:"error",offset:this.offset,source:"",message:"Tried to pop an empty stack"};else if(this.stack.length===0)yield t;else {let r=this.peek(1);switch(t.type==="block-scalar"?t.indent="indent"in r?r.indent:0:t.type==="flow-collection"&&r.type==="document"&&(t.indent=0),t.type==="flow-collection"&&Hb(t),r.type){case"document":r.value=t;break;case"block-scalar":r.props.push(t);break;case"block-map":{let s=r.items[r.items.length-1];if(s.value){r.items.push({start:[],key:t,sep:[]}),this.onKeyLine=!0;return}else if(s.sep)s.value=t;else {Object.assign(s,{key:t,sep:[]}),this.onKeyLine=!s.explicitKey;return}break}case"block-seq":{let s=r.items[r.items.length-1];s.value?r.items.push({start:[],value:t}):s.value=t;break}case"flow-collection":{let s=r.items[r.items.length-1];!s||s.value?r.items.push({start:[],key:t,sep:[]}):s.sep?s.value=t:Object.assign(s,{key:t,sep:[]});return}default:yield*this.pop(),yield*this.pop(t);}if((r.type==="document"||r.type==="block-map"||r.type==="block-seq")&&(t.type==="block-map"||t.type==="block-seq")){let s=t.items[t.items.length-1];s&&!s.sep&&!s.value&&s.start.length>0&&qb(s.start)===-1&&(t.indent===0||s.start.every(i=>i.type!=="comment"||i.indent<t.indent))&&(r.type==="document"?r.end=s.start:r.items.push({start:s.start}),t.items.splice(-1,1));}}}*stream(){switch(this.type){case"directive-line":yield {type:"directive",offset:this.offset,source:this.source};return;case"byte-order-mark":case"space":case"comment":case"newline":yield this.sourceToken;return;case"doc-mode":case"doc-start":{let e={type:"document",offset:this.offset,start:[]};this.type==="doc-start"&&e.start.push(this.sourceToken),this.stack.push(e);return}}yield {type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML stream`,source:this.source};}*document(e){if(e.value)return yield*this.lineEnd(e);switch(this.type){case"doc-start":{qb(e.start)!==-1?(yield*this.pop(),yield*this.step()):e.start.push(this.sourceToken);return}case"anchor":case"tag":case"space":case"comment":case"newline":e.start.push(this.sourceToken);return}let t=this.startBlockValue(e);t?this.stack.push(t):yield {type:"error",offset:this.offset,message:`Unexpected ${this.type} token in YAML document`,source:this.source};}*scalar(e){if(this.type==="map-value-ind"){let t=zl(this.peek(2)),r=Bs(t),s;e.end?(s=e.end,s.push(this.sourceToken),delete e.end):s=[this.sourceToken];let i={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:r,key:e,sep:s}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=i;}else yield*this.lineEnd(e);}*blockScalar(e){switch(this.type){case"space":case"comment":case"newline":e.props.push(this.sourceToken);return;case"scalar":if(e.source=this.source,this.atNewLine=!0,this.indent=0,this.onNewLine){let t=this.source.indexOf(`
|
|
453
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
454
|
+
`,t)+1;}yield*this.pop();break;default:yield*this.pop(),yield*this.step();}}*blockMap(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,t.value){let r="end"in t.value?t.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]});}else t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else if(t.sep)t.sep.push(this.sourceToken);else {if(this.atIndentedComment(t.start,e.indent)){let s=e.items[e.items.length-2]?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken);}return}if(this.indent>=e.indent){let r=!this.onKeyLine&&this.indent===e.indent,s=r&&(t.sep||t.explicitKey)&&this.type!=="seq-item-ind",i=[];if(s&&t.sep&&!t.value){let o=[];for(let a=0;a<t.sep.length;++a){let l=t.sep[a];switch(l.type){case"newline":o.push(a);break;case"space":break;case"comment":l.indent>e.indent&&(o.length=0);break;default:o.length=0;}}o.length>=2&&(i=t.sep.splice(o[1]));}switch(this.type){case"anchor":case"tag":s||t.value?(i.push(this.sourceToken),e.items.push({start:i}),this.onKeyLine=!0):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"explicit-key-ind":!t.sep&&!t.explicitKey?(t.start.push(this.sourceToken),t.explicitKey=!0):s||t.value?(i.push(this.sourceToken),e.items.push({start:i,explicitKey:!0})):this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken],explicitKey:!0}]}),this.onKeyLine=!0;return;case"map-value-ind":if(t.explicitKey)if(t.sep)if(t.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(Br(t.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:i,key:null,sep:[this.sourceToken]}]});else if(jI(t.key)&&!Br(t.sep,"newline")){let o=Bs(t.start),a=t.key,l=t.sep;l.push(this.sourceToken),delete t.key,delete t.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:a,sep:l}]});}else i.length>0?t.sep=t.sep.concat(i,this.sourceToken):t.sep.push(this.sourceToken);else if(Br(t.start,"newline"))Object.assign(t,{key:null,sep:[this.sourceToken]});else {let o=Bs(t.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:o,key:null,sep:[this.sourceToken]}]});}else t.sep?t.value||s?e.items.push({start:i,key:null,sep:[this.sourceToken]}):Br(t.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let o=this.flowScalar(this.type);s||t.value?(e.items.push({start:i,key:o,sep:[]}),this.onKeyLine=!0):t.sep?this.stack.push(o):(Object.assign(t,{key:o,sep:[]}),this.onKeyLine=!0);return}default:{let o=this.startBlockValue(e);if(o){r&&o.type!=="block-seq"&&e.items.push({start:i}),this.stack.push(o);return}}}}yield*this.pop(),yield*this.step();}*blockSequence(e){let t=e.items[e.items.length-1];switch(this.type){case"newline":if(t.value){let r="end"in t.value?t.value.end:void 0;(Array.isArray(r)?r[r.length-1]:void 0)?.type==="comment"?r?.push(this.sourceToken):e.items.push({start:[this.sourceToken]});}else t.start.push(this.sourceToken);return;case"space":case"comment":if(t.value)e.items.push({start:[this.sourceToken]});else {if(this.atIndentedComment(t.start,e.indent)){let s=e.items[e.items.length-2]?.value?.end;if(Array.isArray(s)){Array.prototype.push.apply(s,t.start),s.push(this.sourceToken),e.items.pop();return}}t.start.push(this.sourceToken);}return;case"anchor":case"tag":if(t.value||this.indent<=e.indent)break;t.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;t.value||Br(t.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return}if(this.indent>e.indent){let r=this.startBlockValue(e);if(r){this.stack.push(r);return}}yield*this.pop(),yield*this.step();}*flowCollection(e){let t=e.items[e.items.length-1];if(this.type==="flow-error-end"){let r;do yield*this.pop(),r=this.peek(1);while(r&&r.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!t||t.sep?e.items.push({start:[this.sourceToken]}):t.start.push(this.sourceToken);return;case"map-value-ind":!t||t.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):Object.assign(t,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!t||t.value?e.items.push({start:[this.sourceToken]}):t.sep?t.sep.push(this.sourceToken):t.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let s=this.flowScalar(this.type);!t||t.value?e.items.push({start:[],key:s,sep:[]}):t.sep?this.stack.push(s):Object.assign(t,{key:s,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let r=this.startBlockValue(e);r?this.stack.push(r):(yield*this.pop(),yield*this.step());}else {let r=this.peek(2);if(r.type==="block-map"&&(this.type==="map-value-ind"&&r.indent===e.indent||this.type==="newline"&&!r.items[r.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&r.type!=="flow-collection"){let s=zl(r),i=Bs(s);Hb(e);let o=e.end.splice(1,e.end.length);o.push(this.sourceToken);let a={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:i,key:e,sep:o}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=a;}else yield*this.lineEnd(e);}}flowScalar(e){if(this.onNewLine){let t=this.source.indexOf(`
|
|
455
|
+
`)+1;for(;t!==0;)this.onNewLine(this.offset+t),t=this.source.indexOf(`
|
|
456
|
+
`,t)+1;}return {type:e,offset:this.offset,indent:this.indent,source:this.source}}startBlockValue(e){switch(this.type){case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":return this.flowScalar(this.type);case"block-scalar-header":return {type:"block-scalar",offset:this.offset,indent:this.indent,props:[this.sourceToken],source:""};case"flow-map-start":case"flow-seq-start":return {type:"flow-collection",offset:this.offset,indent:this.indent,start:this.sourceToken,items:[],end:[]};case"seq-item-ind":return {type:"block-seq",offset:this.offset,indent:this.indent,items:[{start:[this.sourceToken]}]};case"explicit-key-ind":{this.onKeyLine=!0;let t=zl(e),r=Bs(t);return r.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let t=zl(e),r=Bs(t);return {type:"block-map",offset:this.offset,indent:this.indent,items:[{start:r,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,t){return this.type!=="comment"||this.indent<=t?!1:e.every(r=>r.type==="newline"||r.type==="space")}*documentEnd(e){this.type!=="doc-mode"&&(e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop()));}*lineEnd(e){switch(this.type){case"comma":case"doc-start":case"doc-end":case"flow-seq-end":case"flow-map-end":case"map-value-ind":yield*this.pop(),yield*this.step();break;case"newline":this.onKeyLine=!1;case"space":case"comment":default:e.end?e.end.push(this.sourceToken):e.end=[this.sourceToken],this.type==="newline"&&(yield*this.pop());}}};d3={__proto__:null,Alias:zr,CST:FI,Composer:ci,Document:Gr,Lexer:Vo,LineCounter:Jo,Pair:Ve,Parser:ui,Scalar:oe,Schema:Ho,YAMLError:ai,YAMLMap:nt,YAMLParseError:pn,YAMLSeq:an,YAMLWarning:zo,isAlias:ar,isCollection:xe,isDocument:es,isMap:ts,isNode:Ie,isPair:Ae,isScalar:me,isSeq:ns,parse:WI,parseAllDocuments:QI,parseDocument:Sy,stringify:qI,visit:Ln,visitAsync:ca},p3={__proto__:null,Alias:zr,CST:FI,Composer:ci,Document:Gr,Lexer:Vo,LineCounter:Jo,Pair:Ve,Parser:ui,Scalar:oe,Schema:Ho,YAMLError:ai,YAMLMap:nt,YAMLParseError:pn,YAMLSeq:an,YAMLWarning:zo,default:d3,isAlias:ar,isCollection:xe,isDocument:es,isMap:ts,isNode:Ie,isPair:Ae,isScalar:me,isSeq:ns,parse:WI,parseAllDocuments:QI,parseDocument:Sy,stringify:qI,visit:Ln,visitAsync:ca},m3=TF(p3),{createRequire:g3,createRequireFromPath:y3}=AF__default.default;HI=w3,Ap=HI,v3=(n,e)=>{if(n.parser&&typeof n.parser=="string")try{n.parser=Ap(n.parser,e);}catch(t){throw new Error(`Loading PostCSS Parser failed: ${t.message}
|
|
457
|
+
|
|
458
|
+
(@${e})`)}if(n.syntax&&typeof n.syntax=="string")try{n.syntax=Ap(n.syntax,e);}catch(t){throw new Error(`Loading PostCSS Syntax failed: ${t.message}
|
|
459
|
+
|
|
460
|
+
(@${e})`)}if(n.stringifier&&typeof n.stringifier=="string")try{n.stringifier=Ap(n.stringifier,e);}catch(t){throw new Error(`Loading PostCSS Stringifier failed: ${t.message}
|
|
461
|
+
|
|
462
|
+
(@${e})`)}return n.plugins&&delete n.plugins,n},E3=v3,zb=HI,A3=(n,e,t)=>{try{return e==null||Object.keys(e).length===0?zb(n,t):zb(n,t)(e)}catch(r){throw new Error(`Loading PostCSS Plugin failed: ${r.message}
|
|
463
|
+
|
|
464
|
+
(@${t})`)}},S3=(n,e)=>{let t=[];return Array.isArray(n.plugins)?t=n.plugins.filter(Boolean):t=Object.keys(n.plugins).filter(r=>n.plugins[r]!==!1?r:"").map(r=>A3(r,n.plugins[r],e)),t.length&&t.length>0&&t.forEach((r,s)=>{if(r.default&&(r=r.default),r.postcss===!0?r=r():r.postcss&&(r=r.postcss),!(typeof r=="object"&&Array.isArray(r.plugins)||typeof r=="object"&&r.postcssPlugin||typeof r=="function"))throw new TypeError(`Invalid PostCSS Plugin found at: plugins[${s}]
|
|
465
|
+
|
|
466
|
+
(@${e})`)}),t},_3=S3,b3=Oe__default.default.resolve,x3=Jr__default.default,C3=la,Gb=m3,I3=E3,O3=_3,R3=n=>n&&n.__esModule?n:{default:n},k3=(n,e)=>{let t=e.filepath||"",r=R3(e.config).default||{};return typeof r=="function"?r=r(n):r=Object.assign({},r,n),r.plugins||(r.plugins=[]),{plugins:O3(r,t),options:I3(r,t),file:t}},$3=n=>(n=Object.assign({cwd:process.cwd(),env:process.env.NODE_ENV},n),n.env||(process.env.NODE_ENV="development"),n),Sp=async n=>(await import(x3.pathToFileURL(n).href)).default,T3=(n={},e)=>{let t="postcss";return {...n,searchPlaces:[...n.searchPlaces||[],"package.json",`.${t}rc`,`.${t}rc.json`,`.${t}rc.yaml`,`.${t}rc.yml`,`.${t}rc.ts`,`.${t}rc.cts`,`.${t}rc.js`,`.${t}rc.cjs`,`.${t}rc.mjs`,`${t}.config.ts`,`${t}.config.cts`,`${t}.config.js`,`${t}.config.cjs`,`${t}.config.mjs`],loaders:{...n.loaders,".yaml":(r,s)=>Gb.parse(s),".yml":(r,s)=>Gb.parse(s),".js":Sp,".cjs":Sp,".mjs":Sp,".ts":e,".cts":e}}},P3=n=>(e,t,r)=>n(e,t,T3(r,s=>{let i={enabled(){}};try{return i=Ec("ts-node").register({moduleTypes:{"**/*.cts":"cjs"}}),Ec(s)}catch(o){throw o.code==="MODULE_NOT_FOUND"?new Error(`'ts-node' is required for the TypeScript configuration files. Make sure it is installed
|
|
467
|
+
Error: ${o.message}`):o}finally{i.enabled(!1);}})),P3((n,e,t)=>(n=$3(n),e=e?b3(e):process.cwd(),C3.lilconfig("postcss",t).search(e).then(r=>{if(!r)throw new Error(`No PostCSS Config found in: ${e}`);return k3(n,r)})));zI=/\r?\n|[\r\u2028\u2029]/y;RegExp(zI.source);lr={exports:{}},Z3="dotenv",ez="16.4.5",tz="Loads environment variables from .env file",nz="lib/main.js",rz="lib/main.d.ts",sz={".":{types:"./lib/main.d.ts",require:"./lib/main.js",default:"./lib/main.js"},"./config":"./config.js","./config.js":"./config.js","./lib/env-options":"./lib/env-options.js","./lib/env-options.js":"./lib/env-options.js","./lib/cli-options":"./lib/cli-options.js","./lib/cli-options.js":"./lib/cli-options.js","./package.json":"./package.json"},iz={"dts-check":"tsc --project tests/types/tsconfig.json",lint:"standard","lint-readme":"standard-markdown",pretest:"npm run lint && npm run dts-check",test:"tap tests/*.js --100 -Rspec","test:coverage":"tap --coverage-report=lcov",prerelease:"npm test",release:"standard-version"},oz={type:"git",url:"git://github.com/motdotla/dotenv.git"},az="https://dotenvx.com",lz=["dotenv","env",".env","environment","variables","config","settings"],cz="README.md",uz="BSD-2-Clause",fz={"@definitelytyped/dtslint":"^0.0.133","@types/node":"^18.11.3",decache:"^4.6.1",sinon:"^14.0.1",standard:"^17.0.0","standard-markdown":"^7.1.0","standard-version":"^9.5.0",tap:"^16.3.0",tar:"^6.1.11",typescript:"^4.8.4"},hz={node:">=12"},dz={fs:!1},pz={name:Z3,version:ez,description:tz,main:nz,types:rz,exports:sz,scripts:iz,repository:oz,funding:az,keywords:lz,readmeFilename:cz,license:uz,devDependencies:fz,engines:hz,browser:dz},ng=Je__namespace.default,_y=Oe__default.default,mz=Zr__default.default,gz=hu__default.default,yz=pz,by=yz.version,wz=/(?:^|^)\s*(?:export\s+)?([\w.-]+)(?:\s*=\s*?|:\s+?)(\s*'(?:\\'|[^'])*'|\s*"(?:\\"|[^"])*"|\s*`(?:\\`|[^`])*`|[^#\r\n]+)?\s*(?:#.*)?(?:$|$)/mg;Fe={configDotenv:xz,_configVault:bz,_parseVault:Ez,config:Cz,decrypt:Iz,parse:vz,populate:Oz};lr.exports.configDotenv=Fe.configDotenv;lr.exports._configVault=Fe._configVault;lr.exports._parseVault=Fe._parseVault;lr.exports.config=Fe.config;lr.exports.decrypt=Fe.decrypt;lr.exports.parse=Fe.parse;lr.exports.populate=Fe.populate;lr.exports=Fe;kz=/[ \t]*<script[^>]*type\s*=\s*(?:"module"|'module'|module)[^>]*>/i,$z=/[ \t]*<link[^>]*rel\s*=\s*(?:"modulepreload"|'modulepreload'|modulepreload)[\s\S]*?\/>/i,new RegExp([kz,$z].map(n=>n.source).join("|"),"i"),new TextDecoder,new RegExp(`\\.module${Pv.source}`),Tz=/^[A-Z_][\w-]*\(/i,Pz=/(?<!\\)"/g;xy=/(?<=^|[^\w\-\u0080-\uffff])url\((\s*('[^']+'|"[^"]+")\s*|[^'")]+)\)/,VI=/(?<=image-set\()((?:[\w\-]{1,256}\([^)]*\)|[^)])*)(?=\))/,Nz=n=>{if(!n)throw new Error("base or replace is required");return {postcssPlugin:"vite-url-rewrite",Once(e){let t=[];if(e.walkDecls(r=>{let s=r.source?.input.file;s||n.logger.warnOnce("\nA PostCSS plugin did not pass the `from` option to `postcss.parse`. This may cause imported assets to be incorrectly transformed. If you've recently added a PostCSS plugin that raised this warning, please contact the package author to fix the issue.");let i=xy.test(r.value),o=VI.test(r.value);if(i||o){let a=c=>n.replacer(c,s),l=o?Mz:JI;t.push(l(r.value,a).then(c=>{r.value=c;}));}}),t.length)return Promise.all(t)}}};Nz.postcss=!0;Lz=/(?:gradient|element|cross-fade|image)\(/;new Set(AF.builtinModules);Bz={}.hasOwnProperty,Fz=/^([A-Z][a-z\d]*)+$/,jz=new Set(["string","function","number","object","Function","Object","boolean","bigint","symbol"]);XI=new Map,Uz="__node_internal_";Ht("ERR_INVALID_ARG_TYPE",(n,e,t)=>{Qr__default.default(typeof n=="string","'name' must be a string"),Array.isArray(e)||(e=[e]);let r="The ";if(n.endsWith(" argument"))r+=`${n} `;else {let a=n.includes(".")?"property":"argument";r+=`"${n}" ${a} `;}r+="must be ";let s=[],i=[],o=[];for(let a of e)Qr__default.default(typeof a=="string","All expected entries have to be of type string"),jz.has(a)?s.push(a.toLowerCase()):Fz.exec(a)===null?(Qr__default.default(a!=="object",'The value "object" should be written as "Object"'),o.push(a)):i.push(a);if(i.length>0){let a=s.indexOf("object");a!==-1&&(s.slice(a,1),i.push("Object"));}return s.length>0&&(r+=`${s.length>1?"one of type":"of type"} ${_p(s,"or")}`,(i.length>0||o.length>0)&&(r+=" or ")),i.length>0&&(r+=`an instance of ${_p(i,"or")}`,o.length>0&&(r+=" or ")),o.length>0&&(o.length>1?r+=`one of ${_p(o,"or")}`:(o[0].toLowerCase()!==o[0]&&(r+="an "),r+=`${o[0]}`)),r+=`. Received ${zz(t)}`,r},TypeError);Ht("ERR_INVALID_MODULE_SPECIFIER",(n,e,t=void 0)=>`Invalid module "${n}" ${e}${t?` imported from ${t}`:""}`,TypeError);Ht("ERR_INVALID_PACKAGE_CONFIG",(n,e,t)=>`Invalid package config ${n}${e?` while importing ${e}`:""}${t?`. ${t}`:""}`,Error);Ht("ERR_INVALID_PACKAGE_TARGET",(n,e,t,r=!1,s=void 0)=>{let i=typeof t=="string"&&!r&&t.length>0&&!t.startsWith("./");return e==="."?(Qr__default.default(r===!1),`Invalid "exports" main target ${JSON.stringify(t)} defined in the package config ${n}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`):`Invalid "${r?"imports":"exports"}" target ${JSON.stringify(t)} defined for '${e}' in the package config ${n}package.json${s?` imported from ${s}`:""}${i?'; targets must start with "./"':""}`},Error);Ht("ERR_MODULE_NOT_FOUND",(n,e,t=!1)=>`Cannot find ${t?"module":"package"} '${n}' imported from ${e}`,Error);Ht("ERR_NETWORK_IMPORT_DISALLOWED","import of '%s' by %s is not supported: %s",Error);Ht("ERR_PACKAGE_IMPORT_NOT_DEFINED",(n,e,t)=>`Package import specifier "${n}" is not defined${e?` in package ${e}package.json`:""} imported from ${t}`,TypeError);Ht("ERR_PACKAGE_PATH_NOT_EXPORTED",(n,e,t=void 0)=>e==="."?`No "exports" main defined in ${n}package.json${t?` imported from ${t}`:""}`:`Package subpath '${e}' is not defined by "exports" in ${n}package.json${t?` imported from ${t}`:""}`,Error);Ht("ERR_UNSUPPORTED_DIR_IMPORT","Directory import '%s' is not supported resolving ES modules imported from %s",Error);Ht("ERR_UNSUPPORTED_RESOLVE_REQUEST",'Failed to resolve module specifier "%s" from "%s": Invalid relative URL or base scheme is not hierarchical.',TypeError);Ht("ERR_UNKNOWN_FILE_EXTENSION",(n,e)=>`Unknown file extension "${n}" for ${e}`,TypeError);Ht("ERR_INVALID_ARG_VALUE",(n,e,t="is invalid")=>{let r=Mn.inspect(e);return r.length>128&&(r=`${r.slice(0,128)}...`),`The ${n.includes(".")?"property":"argument"} '${n}' ${t}. Received ${r}`},TypeError);qz=Wz(function(n){let e=rg();return e&&(Vb=Error.stackTraceLimit,Error.stackTraceLimit=Number.POSITIVE_INFINITY),Error.captureStackTrace(n),e&&(Error.stackTraceLimit=Vb),n});sg={exports:{}},Gl={exports:{}},Kl={exports:{}};Vl={exports:{}};typeof process<"u"&&process.type==="renderer"?sg.exports=Kz():sg.exports=Vz();eO=sg.exports;Jz=eG,Yz=/(?:[^\x21\x25\x26-\x3B\x3D\x3F-\x5B\x5D\x5F\x61-\x7A\x7E]|%(?:[^0-9A-Fa-f]|[0-9A-Fa-f][^0-9A-Fa-f]|$))+/g,Xz=/(^|[^\uD800-\uDBFF])[\uDC00-\uDFFF]|[\uD800-\uDBFF]([^\uDC00-\uDFFF]|$)/g,Zz="$1\uFFFD$2";tG=/["'&<>]/,nG=rG;Cy={exports:{}};sG=iG;Cy.exports=lG;Cy.exports.isFinished=tO;e0=sG,aG=typeof setImmediate=="function"?setImmediate:function(n){process.nextTick(n.bind.apply(n,arguments));};dG=Cy.exports,Iy={exports:{}};nO=Jr__default.default,t0=nO.parse,eu=nO.Url;Iy.exports=rO;Iy.exports.original=pG;oO=Iy.exports,mG={100:"Continue",101:"Switching Protocols",102:"Processing",103:"Early Hints",200:"OK",201:"Created",202:"Accepted",203:"Non-Authoritative Information",204:"No Content",205:"Reset Content",206:"Partial Content",207:"Multi-Status",208:"Already Reported",226:"IM Used",300:"Multiple Choices",301:"Moved Permanently",302:"Found",303:"See Other",304:"Not Modified",305:"Use Proxy",306:"(Unused)",307:"Temporary Redirect",308:"Permanent Redirect",400:"Bad Request",401:"Unauthorized",402:"Payment Required",403:"Forbidden",404:"Not Found",405:"Method Not Allowed",406:"Not Acceptable",407:"Proxy Authentication Required",408:"Request Timeout",409:"Conflict",410:"Gone",411:"Length Required",412:"Precondition Failed",413:"Payload Too Large",414:"URI Too Long",415:"Unsupported Media Type",416:"Range Not Satisfiable",417:"Expectation Failed",418:"I'm a teapot",421:"Misdirected Request",422:"Unprocessable Entity",423:"Locked",424:"Failed Dependency",425:"Unordered Collection",426:"Upgrade Required",428:"Precondition Required",429:"Too Many Requests",431:"Request Header Fields Too Large",451:"Unavailable For Legal Reasons",500:"Internal Server Error",501:"Not Implemented",502:"Bad Gateway",503:"Service Unavailable",504:"Gateway Timeout",505:"HTTP Version Not Supported",506:"Variant Also Negotiates",507:"Insufficient Storage",508:"Loop Detected",509:"Bandwidth Limit Exceeded",510:"Not Extended",511:"Network Authentication Required"};aO=mG,gG=yn;yn.STATUS_CODES=aO;yn.codes=yG(yn,aO);yn.redirect={300:!0,301:!0,302:!0,303:!0,305:!0,307:!0,308:!0};yn.empty={204:!0,205:!0,304:!0};yn.retry={502:!0,503:!0,504:!0};wG=EG;xp=eO("finalhandler"),AG=Jz,SG=nG,lO=dG,_G=oO,cO=gG,bG=wG,xG=/\x20{2}/g,CG=/\n/g,IG=typeof setImmediate=="function"?setImmediate:function(n){process.nextTick(n.bind.apply(n,arguments));},OG=lO.isFinished;kG=$G;uO={exports:{}};(function(n,e){n.exports=function(t,r){if(t&&r)for(var s in r)t[s]=r[s];return t};})(uO);uO.exports;fO=eO("connect:dispatcher"),ea__default.default.EventEmitter,FG=kG,hO=Yr__default.default,jG=oO,dO=process.env.NODE_ENV||"development",Oy={},UG=typeof setImmediate=="function"?setImmediate:function(n){process.nextTick(n.bind.apply(n,arguments));};Oy.use=function(e,t){var r=t,s=e;if(typeof e!="string"&&(r=e,s="/"),typeof r.handle=="function"){var i=r;i.route=s,r=function(o,a,l){i.handle(o,a,l);};}return r instanceof hO.Server&&(r=r.listeners("request")[0]),s[s.length-1]==="/"&&(s=s.slice(0,-1)),fO("use %s %s",s||"/",r.name||"anonymous"),this.stack.push({route:s,handle:r}),this};Oy.handle=function(e,t,r){var s=0,i=qG(e.url)||"",o="",a=!1,l=this.stack,c=r||FG(e,t,{env:dO,onerror:WG});e.originalUrl=e.originalUrl||e.url;function u(f){a&&(e.url=e.url.substr(1),a=!1),o.length!==0&&(e.url=i+o+e.url.substr(i.length),o="");var h=l[s++];if(!h){UG(c,f);return}var m=jG(e).pathname||"/",p=h.route;if(m.toLowerCase().substr(0,p.length)!==p.toLowerCase())return u(f);var d=m.length>p.length&&m[p.length];if(d&&d!=="/"&&d!==".")return u(f);p.length!==0&&p!=="/"&&(o=p,e.url=i+e.url.substr(i.length+o.length),!i&&e.url[0]!=="/"&&(e.url="/"+e.url,a=!0)),QG(h.handle,p,f,e,t,u);}u();};Oy.listen=function(){var e=hO.createServer(this);return e.listen.apply(e,arguments)};pO={exports:{}};r0=Object.getOwnPropertySymbols,HG=Object.prototype.hasOwnProperty,zG=Object.prototype.propertyIsEnumerable;VG=KG()?Object.assign:function(n,e){for(var t,r=GG(n),s,i=1;i<arguments.length;i++){t=Object(arguments[i]);for(var o in t)HG.call(t,o)&&(r[o]=t[o]);if(r0){s=r0(t);for(var a=0;a<s.length;a++)zG.call(t,s[a])&&(r[s[a]]=t[s[a]]);}}return r},Ry={exports:{}};Ry.exports=YG;Ry.exports.append=mO;JG=/^[!#$%&'*+\-.^_`|~0-9A-Za-z]+$/;XG=Ry.exports;(function(){var n=VG,e=XG,t={origin:"*",methods:"GET,HEAD,PUT,PATCH,POST,DELETE",preflightContinue:!1,optionsSuccessStatus:204};function r(p){return typeof p=="string"||p instanceof String}function s(p,d){if(Array.isArray(d)){for(var g=0;g<d.length;++g)if(s(p,d[g]))return !0;return !1}else return r(d)?p===d:d instanceof RegExp?d.test(p):!!d}function i(p,d){var g=d.headers.origin,y=[],w;return !p.origin||p.origin==="*"?y.push([{key:"Access-Control-Allow-Origin",value:"*"}]):r(p.origin)?(y.push([{key:"Access-Control-Allow-Origin",value:p.origin}]),y.push([{key:"Vary",value:"Origin"}])):(w=s(g,p.origin),y.push([{key:"Access-Control-Allow-Origin",value:w?g:!1}]),y.push([{key:"Vary",value:"Origin"}])),y}function o(p){var d=p.methods;return d.join&&(d=p.methods.join(",")),{key:"Access-Control-Allow-Methods",value:d}}function a(p){return p.credentials===!0?{key:"Access-Control-Allow-Credentials",value:"true"}:null}function l(p,d){var g=p.allowedHeaders||p.headers,y=[];return g?g.join&&(g=g.join(",")):(g=d.headers["access-control-request-headers"],y.push([{key:"Vary",value:"Access-Control-Request-Headers"}])),g&&g.length&&y.push([{key:"Access-Control-Allow-Headers",value:g}]),y}function c(p){var d=p.exposedHeaders;if(d)d.join&&(d=d.join(","));else return null;return d&&d.length?{key:"Access-Control-Expose-Headers",value:d}:null}function u(p){var d=(typeof p.maxAge=="number"||p.maxAge)&&p.maxAge.toString();return d&&d.length?{key:"Access-Control-Max-Age",value:d}:null}function f(p,d){for(var g=0,y=p.length;g<y;g++){var w=p[g];w&&(Array.isArray(w)?f(w,d):w.key==="Vary"&&w.value?e(d,w.value):w.value&&d.setHeader(w.key,w.value));}}function h(p,d,g,y){var w=[],v=d.method&&d.method.toUpperCase&&d.method.toUpperCase();v==="OPTIONS"?(w.push(i(p,d)),w.push(a(p)),w.push(o(p)),w.push(l(p,d)),w.push(u(p)),w.push(c(p)),f(w,g),p.preflightContinue?y():(g.statusCode=p.optionsSuccessStatus,g.setHeader("Content-Length","0"),g.end())):(w.push(i(p,d)),w.push(a(p)),w.push(c(p)),f(w,g),y());}function m(p){var d=null;return typeof p=="function"?d=p:d=function(g,y){y(null,p);},function(y,w,v){d(y,function(A,E){if(A)v(A);else {var S=n({},t,E),C=null;S.origin&&typeof S.origin=="function"?C=S.origin:S.origin&&(C=function(_,x){x(null,S.origin);}),C?C(y.headers.origin,function(_,x){_||!x?v(_):(S.origin=x,h(S,y,w,v));}):v();}});}}pO.exports=m;})();pO.exports,gO={},da=Je__namespace.default,{Readable:ZG}=Xr__default.default,go=Oe__default.default,{promisify:Uu}=Mn__default.default,Cp=Lg,e4=Uu(da.readdir),t4=Uu(da.stat),i0=Uu(da.lstat),n4=Uu(da.realpath),r4="!",yO="READDIRP_RECURSIVE_ERROR",s4=new Set(["ENOENT","EPERM","EACCES","ELOOP",yO]),ig="files",wO="directories",tu="files_directories",hc="all",o0=[ig,wO,tu,hc],i4=n=>s4.has(n.code),[a0,o4]=process.versions.node.split(".").slice(0,2).map(n=>Number.parseInt(n,10)),a4=process.platform==="win32"&&(a0>10||a0===10&&o4>=5),l0=n=>{if(n!==void 0){if(typeof n=="function")return n;if(typeof n=="string"){let e=Cp(n.trim());return t=>e(t.basename)}if(Array.isArray(n)){let e=[],t=[];for(let r of n){let s=r.trim();s.charAt(0)===r4?t.push(Cp(s.slice(1))):e.push(Cp(s));}return t.length>0?e.length>0?r=>e.some(s=>s(r.basename))&&!t.some(s=>s(r.basename)):r=>!t.some(s=>s(r.basename)):r=>e.some(s=>s(r.basename))}}},nu=class n extends ZG{static get defaultOptions(){return {root:".",fileFilter:e=>!0,directoryFilter:e=>!0,type:ig,lstat:!1,depth:2147483648,alwaysStat:!1}}constructor(e={}){super({objectMode:!0,autoDestroy:!0,highWaterMark:e.highWaterMark||4096});let t={...n.defaultOptions,...e},{root:r,type:s}=t;this._fileFilter=l0(t.fileFilter),this._directoryFilter=l0(t.directoryFilter);let i=t.lstat?i0:t4;a4?this._stat=o=>i(o,{bigint:!0}):this._stat=i,this._maxDepth=t.depth,this._wantsDir=[wO,tu,hc].includes(s),this._wantsFile=[ig,tu,hc].includes(s),this._wantsEverything=s===hc,this._root=go.resolve(r),this._isDirent="Dirent"in da&&!t.alwaysStat,this._statsProp=this._isDirent?"dirent":"stats",this._rdOptions={encoding:"utf8",withFileTypes:this._isDirent},this.parents=[this._exploreDir(r,1)],this.reading=!1,this.parent=void 0;}async _read(e){if(!this.reading){this.reading=!0;try{for(;!this.destroyed&&e>0;){let{path:t,depth:r,files:s=[]}=this.parent||{};if(s.length>0){let i=s.splice(0,e).map(o=>this._formatEntry(o,t));for(let o of await Promise.all(i)){if(this.destroyed)return;let a=await this._getEntryType(o);a==="directory"&&this._directoryFilter(o)?(r<=this._maxDepth&&this.parents.push(this._exploreDir(o.fullPath,r+1)),this._wantsDir&&(this.push(o),e--)):(a==="file"||this._includeAsFile(o))&&this._fileFilter(o)&&this._wantsFile&&(this.push(o),e--);}}else {let i=this.parents.pop();if(!i){this.push(null);break}if(this.parent=await i,this.destroyed)return}}}catch(t){this.destroy(t);}finally{this.reading=!1;}}}async _exploreDir(e,t){let r;try{r=await e4(e,this._rdOptions);}catch(s){this._onError(s);}return {files:r,depth:t,path:e}}async _formatEntry(e,t){let r;try{let s=this._isDirent?e.name:e,i=go.resolve(go.join(t,s));r={path:go.relative(this._root,i),fullPath:i,basename:s},r[this._statsProp]=this._isDirent?e:await this._stat(i);}catch(s){this._onError(s);}return r}_onError(e){i4(e)&&!this.destroyed?this.emit("warn",e):this.destroy(e);}async _getEntryType(e){let t=e&&e[this._statsProp];if(t){if(t.isFile())return "file";if(t.isDirectory())return "directory";if(t&&t.isSymbolicLink()){let r=e.fullPath;try{let s=await n4(r),i=await i0(s);if(i.isFile())return "file";if(i.isDirectory()){let o=s.length;if(r.startsWith(s)&&r.substr(o,1)===go.sep){let a=new Error(`Circular symlink detected: "${r}" points to "${s}"`);return a.code=yO,this._onError(a)}return "directory"}}catch(s){this._onError(s);}}}}_includeAsFile(e){let t=e&&e[this._statsProp];return t&&this._wantsEverything&&!t.isDirectory()}},fi=(n,e={})=>{let t=e.entryType||e.type;if(t==="both"&&(t=tu),t&&(e.type=t),n){if(typeof n!="string")throw new TypeError("readdirp: root argument must be a string. Usage: readdirp(root, options)");if(t&&!o0.includes(t))throw new Error(`readdirp: Invalid type passed. Use one of ${o0.join(", ")}`)}else throw new Error("readdirp: root argument is required. Usage: readdirp(root, options)");return e.root=n,new nu(e)},l4=(n,e={})=>new Promise((t,r)=>{let s=[];fi(n,e).on("data",i=>s.push(i)).on("end",()=>t(s)).on("error",i=>r(i));});fi.promise=l4;fi.ReaddirpStream=nu;fi.default=fi;c4=fi,ky={exports:{}};vO=function(n,e){if(typeof n!="string")throw new TypeError("expected path to be a string");if(n==="\\"||n==="/")return "/";var t=n.length;if(t<=1)return n;var r="";if(t>4&&n[3]==="\\"){var s=n[2];(s==="?"||s===".")&&n.slice(0,2)==="\\\\"&&(n=n.slice(2),r="//");}var i=n.split(/[/\\]+/);return e!==!1&&i[i.length-1]===""&&i.pop(),r+i.join("/")},u4=ky.exports;Object.defineProperty(u4,"__esModule",{value:!0});EO=Lg,f4=vO,c0="!",h4={returnIndex:!1},d4=n=>Array.isArray(n)?n:[n],p4=(n,e)=>{if(typeof n=="function")return n;if(typeof n=="string"){let t=EO(n,e);return r=>n===r||t(r)}return n instanceof RegExp?t=>n.test(t):t=>!1},u0=(n,e,t,r)=>{let s=Array.isArray(t),i=s?t[0]:t;if(!s&&typeof i!="string")throw new TypeError("anymatch: second argument must be a string: got "+Object.prototype.toString.call(i));let o=f4(i);for(let l=0;l<e.length;l++){let c=e[l];if(c(o))return r?-1:!1}let a=s&&[o].concat(t.slice(1));for(let l=0;l<n.length;l++){let c=n[l];if(s?c(...a):c(o))return r?l:!0}return r?-1:!1},og=(n,e,t=h4)=>{if(n==null)throw new TypeError("anymatch: specify first argument");let r=typeof t=="boolean"?{returnIndex:t}:t,s=r.returnIndex||!1,i=d4(n),o=i.filter(l=>typeof l=="string"&&l.charAt(0)===c0).map(l=>l.slice(1)).map(l=>EO(l,r)),a=i.filter(l=>typeof l!="string"||typeof l=="string"&&l.charAt(0)!==c0).map(l=>p4(l,r));return e==null?(l,c=!1)=>u0(a,o,l,typeof c=="boolean"?c:!1):u0(a,o,e,s)};og.default=og;ky.exports=og;m4=ky.exports,g4=["3dm","3ds","3g2","3gp","7z","a","aac","adp","ai","aif","aiff","alz","ape","apk","appimage","ar","arj","asf","au","avi","bak","baml","bh","bin","bk","bmp","btif","bz2","bzip2","cab","caf","cgm","class","cmx","cpio","cr2","cur","dat","dcm","deb","dex","djvu","dll","dmg","dng","doc","docm","docx","dot","dotm","dra","DS_Store","dsk","dts","dtshd","dvb","dwg","dxf","ecelp4800","ecelp7470","ecelp9600","egg","eol","eot","epub","exe","f4v","fbs","fh","fla","flac","flatpak","fli","flv","fpx","fst","fvt","g3","gh","gif","graffle","gz","gzip","h261","h263","h264","icns","ico","ief","img","ipa","iso","jar","jpeg","jpg","jpgv","jpm","jxr","key","ktx","lha","lib","lvp","lz","lzh","lzma","lzo","m3u","m4a","m4v","mar","mdi","mht","mid","midi","mj2","mka","mkv","mmr","mng","mobi","mov","movie","mp3","mp4","mp4a","mpeg","mpg","mpga","mxu","nef","npx","numbers","nupkg","o","odp","ods","odt","oga","ogg","ogv","otf","ott","pages","pbm","pcx","pdb","pdf","pea","pgm","pic","png","pnm","pot","potm","potx","ppa","ppam","ppm","pps","ppsm","ppsx","ppt","pptm","pptx","psd","pya","pyc","pyo","pyv","qt","rar","ras","raw","resources","rgb","rip","rlc","rmf","rmvb","rpm","rtf","rz","s3m","s7z","scpt","sgi","shar","snap","sil","sketch","slk","smv","snk","so","stl","suo","sub","swf","tar","tbz","tbz2","tga","tgz","thmx","tif","tiff","tlz","ttc","ttf","txz","udf","uvh","uvi","uvm","uvp","uvs","uvu","viv","vob","war","wav","wax","wbmp","wdp","weba","webm","webp","whl","wim","wm","wma","wmv","wmx","woff","woff2","wrm","wvx","xbm","xif","xla","xlam","xls","xlsb","xlsm","xlsx","xlt","xltm","xltx","xm","xmind","xpi","xpm","xwd","xz","z","zip","zipx"],y4=g4,w4=Oe__default.default,v4=y4,E4=new Set(v4),A4=n=>E4.has(w4.extname(n).slice(1).toLowerCase()),Qu={};(function(n){let{sep:e}=Oe__default.default,{platform:t}=process,r=Zr__default.default;n.EV_ALL="all",n.EV_READY="ready",n.EV_ADD="add",n.EV_CHANGE="change",n.EV_ADD_DIR="addDir",n.EV_UNLINK="unlink",n.EV_UNLINK_DIR="unlinkDir",n.EV_RAW="raw",n.EV_ERROR="error",n.STR_DATA="data",n.STR_END="end",n.STR_CLOSE="close",n.FSEVENT_CREATED="created",n.FSEVENT_MODIFIED="modified",n.FSEVENT_DELETED="deleted",n.FSEVENT_MOVED="moved",n.FSEVENT_CLONED="cloned",n.FSEVENT_UNKNOWN="unknown",n.FSEVENT_FLAG_MUST_SCAN_SUBDIRS=1,n.FSEVENT_TYPE_FILE="file",n.FSEVENT_TYPE_DIRECTORY="directory",n.FSEVENT_TYPE_SYMLINK="symlink",n.KEY_LISTENERS="listeners",n.KEY_ERR="errHandlers",n.KEY_RAW="rawEmitters",n.HANDLER_KEYS=[n.KEY_LISTENERS,n.KEY_ERR,n.KEY_RAW],n.DOT_SLASH=`.${e}`,n.BACK_SLASH_RE=/\\/g,n.DOUBLE_SLASH_RE=/\/\//,n.SLASH_OR_BACK_SLASH_RE=/[/\\]/,n.DOT_RE=/\..*\.(sw[px])$|~$|\.subl.*\.tmp/,n.REPLACER_RE=/^\.[/\\]/,n.SLASH="/",n.SLASH_SLASH="//",n.BRACE_START="{",n.BANG="!",n.ONE_DOT=".",n.TWO_DOTS="..",n.STAR="*",n.GLOBSTAR="**",n.ROOT_GLOBSTAR="/**/*",n.SLASH_GLOBSTAR="/**",n.DIR_SUFFIX="Dir",n.ANYMATCH_OPTS={dot:!0},n.STRING_TYPE="string",n.FUNCTION_TYPE="function",n.EMPTY_STR="",n.EMPTY_FN=()=>{},n.IDENTITY_FN=s=>s,n.isWindows=t==="win32",n.isMacos=t==="darwin",n.isLinux=t==="linux",n.isIBMi=r.type()==="OS400";})(Qu);Tn=Je__namespace.default,He=Oe__default.default,{promisify:pa}=Mn__default.default,S4=A4,{isWindows:_4,isLinux:b4,EMPTY_FN:x4,EMPTY_STR:C4,KEY_LISTENERS:ti,KEY_ERR:Ip,KEY_RAW:Mo,HANDLER_KEYS:I4,EV_CHANGE:dc,EV_ADD:Jl,EV_ADD_DIR:O4,EV_ERROR:AO,STR_DATA:R4,STR_END:k4,BRACE_START:$4,STAR:T4}=Qu,P4="watch",N4=pa(Tn.open),SO=pa(Tn.stat),L4=pa(Tn.lstat),M4=pa(Tn.close),Op=pa(Tn.realpath),D4={lstat:L4,stat:SO},ag=(n,e)=>{n instanceof Set?n.forEach(e):e(n);},Do=(n,e,t)=>{let r=n[e];r instanceof Set||(n[e]=r=new Set([r])),r.add(t);},B4=n=>e=>{let t=n[e];t instanceof Set?t.clear():delete n[e];},Bo=(n,e,t)=>{let r=n[e];r instanceof Set?r.delete(t):r===t&&delete n[e];},_O=n=>n instanceof Set?n.size===0:!n,pc=new Map;mc=(n,e,t,r,s)=>{let i=pc.get(n);i&&ag(i[e],o=>{o(t,r,s);});},F4=(n,e,t,r)=>{let{listener:s,errHandler:i,rawEmitter:o}=r,a=pc.get(e),l;if(!t.persistent)return l=f0(n,t,s,i,o),l.close.bind(l);if(a)Do(a,ti,s),Do(a,Ip,i),Do(a,Mo,o);else {if(l=f0(n,t,mc.bind(null,e,ti),i,mc.bind(null,e,Mo)),!l)return;l.on(AO,async c=>{let u=mc.bind(null,e,Ip);if(a.watcherUnusable=!0,_4&&c.code==="EPERM")try{let f=await N4(n,"r");await M4(f),u(c);}catch{}else u(c);}),a={listeners:s,errHandlers:i,rawEmitters:o,watcher:l},pc.set(e,a);}return ()=>{Bo(a,ti,s),Bo(a,Ip,i),Bo(a,Mo,o),_O(a.listeners)&&(a.watcher.close(),pc.delete(e),I4.forEach(B4(a)),a.watcher=void 0,Object.freeze(a));}},Rp=new Map,j4=(n,e,t,r)=>{let{listener:s,rawEmitter:i}=r,o=Rp.get(e),a=o&&o.options;return a&&(a.persistent<t.persistent||a.interval>t.interval)&&(Tn.unwatchFile(e),o=void 0),o?(Do(o,ti,s),Do(o,Mo,i)):(o={listeners:s,rawEmitters:i,options:t,watcher:Tn.watchFile(e,t,(l,c)=>{ag(o.rawEmitters,f=>{f(dc,e,{curr:l,prev:c});});let u=l.mtimeMs;(l.size!==c.size||u>c.mtimeMs||u===0)&&ag(o.listeners,f=>f(n,l));})},Rp.set(e,o)),()=>{Bo(o,ti,s),Bo(o,Mo,i),_O(o.listeners)&&(Rp.delete(e),Tn.unwatchFile(e),o.options=o.watcher=void 0,Object.freeze(o));}},U4=class{constructor(e){this.fsw=e,this._boundHandleError=t=>e._handleError(t);}_watchWithNodeFs(e,t){let r=this.fsw.options,s=He.dirname(e),i=He.basename(e);this.fsw._getWatchedDir(s).add(i);let a=He.resolve(e),l={persistent:r.persistent};t||(t=x4);let c;return r.usePolling?(l.interval=r.enableBinaryInterval&&S4(i)?r.binaryInterval:r.interval,c=j4(e,a,l,{listener:t,rawEmitter:this.fsw._emitRaw})):c=F4(e,a,l,{listener:t,errHandler:this._boundHandleError,rawEmitter:this.fsw._emitRaw}),c}_handleFile(e,t,r){if(this.fsw.closed)return;let s=He.dirname(e),i=He.basename(e),o=this.fsw._getWatchedDir(s),a=t;if(o.has(i))return;let l=async(u,f)=>{if(this.fsw._throttle(P4,e,5)){if(!f||f.mtimeMs===0)try{let h=await SO(e);if(this.fsw.closed)return;let m=h.atimeMs,p=h.mtimeMs;(!m||m<=p||p!==a.mtimeMs)&&this.fsw._emit(dc,e,h),b4&&a.ino!==h.ino?(this.fsw._closeFile(u),a=h,this.fsw._addPathCloser(u,this._watchWithNodeFs(e,l))):a=h;}catch{this.fsw._remove(s,i);}else if(o.has(i)){let h=f.atimeMs,m=f.mtimeMs;(!h||h<=m||m!==a.mtimeMs)&&this.fsw._emit(dc,e,f),a=f;}}},c=this._watchWithNodeFs(e,l);if(!(r&&this.fsw.options.ignoreInitial)&&this.fsw._isntIgnored(e)){if(!this.fsw._throttle(Jl,e,0))return;this.fsw._emit(Jl,e,t);}return c}async _handleSymlink(e,t,r,s){if(this.fsw.closed)return;let i=e.fullPath,o=this.fsw._getWatchedDir(t);if(!this.fsw.options.followSymlinks){this.fsw._incrReadyCount();let a;try{a=await Op(r);}catch{return this.fsw._emitReady(),!0}return this.fsw.closed?void 0:(o.has(s)?this.fsw._symlinkPaths.get(i)!==a&&(this.fsw._symlinkPaths.set(i,a),this.fsw._emit(dc,r,e.stats)):(o.add(s),this.fsw._symlinkPaths.set(i,a),this.fsw._emit(Jl,r,e.stats)),this.fsw._emitReady(),!0)}if(this.fsw._symlinkPaths.has(i))return !0;this.fsw._symlinkPaths.set(i,!0);}_handleRead(e,t,r,s,i,o,a){if(e=He.join(e,C4),!r.hasGlob&&(a=this.fsw._throttle("readdir",e,1e3),!a))return;let l=this.fsw._getWatchedDir(r.path),c=new Set,u=this.fsw._readdirp(e,{fileFilter:f=>r.filterPath(f),directoryFilter:f=>r.filterDir(f),depth:0}).on(R4,async f=>{if(this.fsw.closed){u=void 0;return}let h=f.path,m=He.join(e,h);if(c.add(h),!(f.stats.isSymbolicLink()&&await this._handleSymlink(f,e,m,h))){if(this.fsw.closed){u=void 0;return}(h===s||!s&&!l.has(h))&&(this.fsw._incrReadyCount(),m=He.join(i,He.relative(i,m)),this._addToNodeFs(m,t,r,o+1));}}).on(AO,this._boundHandleError);return new Promise(f=>u.once(k4,()=>{if(this.fsw.closed){u=void 0;return}let h=a?a.clear():!1;f(),l.getChildren().filter(m=>m!==e&&!c.has(m)&&(!r.hasGlob||r.filterPath({fullPath:He.resolve(e,m)}))).forEach(m=>{this.fsw._remove(e,m);}),u=void 0,h&&this._handleRead(e,!1,r,s,i,o,a);}))}async _handleDir(e,t,r,s,i,o,a){let l=this.fsw._getWatchedDir(He.dirname(e)),c=l.has(He.basename(e));!(r&&this.fsw.options.ignoreInitial)&&!i&&!c&&(!o.hasGlob||o.globFilter(e))&&this.fsw._emit(O4,e,t),l.add(He.basename(e)),this.fsw._getWatchedDir(e);let u,f,h=this.fsw.options.depth;if((h==null||s<=h)&&!this.fsw._symlinkPaths.has(a)){if(!i&&(await this._handleRead(e,r,o,i,e,s,u),this.fsw.closed))return;f=this._watchWithNodeFs(e,(m,p)=>{p&&p.mtimeMs===0||this._handleRead(m,!1,o,i,e,s,u);});}return f}async _addToNodeFs(e,t,r,s,i){let o=this.fsw._emitReady;if(this.fsw._isIgnored(e)||this.fsw.closed)return o(),!1;let a=this.fsw._getWatchHelpers(e,s);!a.hasGlob&&r&&(a.hasGlob=r.hasGlob,a.globFilter=r.globFilter,a.filterPath=l=>r.filterPath(l),a.filterDir=l=>r.filterDir(l));try{let l=await D4[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,l))return o(),!1;let c=this.fsw.options.followSymlinks&&!e.includes(T4)&&!e.includes($4),u;if(l.isDirectory()){let f=He.resolve(e),h=c?await Op(e):e;if(this.fsw.closed||(u=await this._handleDir(a.watchPath,l,t,s,i,a,h),this.fsw.closed))return;f!==h&&h!==void 0&&this.fsw._symlinkPaths.set(f,h);}else if(l.isSymbolicLink()){let f=c?await Op(e):e;if(this.fsw.closed)return;let h=He.dirname(a.watchPath);if(this.fsw._getWatchedDir(h).add(a.watchPath),this.fsw._emit(Jl,a.watchPath,l),u=await this._handleDir(h,l,t,s,e,a,f),this.fsw.closed)return;f!==void 0&&this.fsw._symlinkPaths.set(He.resolve(e),f);}else u=this._handleFile(a.watchPath,l,t);return o(),this.fsw._addPathCloser(e,u),!1}catch(l){if(this.fsw._handleError(l))return o(),e}}},Q4=U4,$y={exports:{}},Ty=Je__namespace.default,ze=Oe__default.default,{promisify:Py}=Mn__default.default;try{hi=Ec("fsevents");}catch(n){process.env.CHOKIDAR_PRINT_FSEVENTS_REQUIRE_ERROR&&console.error(n);}if(hi){let n=process.version.match(/v(\d+)\.(\d+)/);if(n&&n[1]&&n[2]){let e=Number.parseInt(n[1],10),t=Number.parseInt(n[2],10);e===8&&t<16&&(hi=void 0);}}(({EV_ADD:kp,EV_CHANGE:W4,EV_ADD_DIR:h0,EV_UNLINK:Yl,EV_ERROR:q4,STR_DATA:H4,STR_END:z4,FSEVENT_CREATED:G4,FSEVENT_MODIFIED:K4,FSEVENT_DELETED:V4,FSEVENT_MOVED:J4,FSEVENT_UNKNOWN:Y4,FSEVENT_FLAG_MUST_SCAN_SUBDIRS:X4,FSEVENT_TYPE_FILE:Z4,FSEVENT_TYPE_DIRECTORY:ko,FSEVENT_TYPE_SYMLINK:bO,ROOT_GLOBSTAR:d0,DIR_SUFFIX:eK,DOT_SLASH:p0,FUNCTION_TYPE:$p,EMPTY_FN:tK,IDENTITY_FN:nK}=Qu)),rK=n=>isNaN(n)?{}:{depth:n},lg=Py(Ty.stat),sK=Py(Ty.lstat),m0=Py(Ty.realpath),iK={stat:lg,lstat:sK},Fr=new Map,oK=10,aK=new Set([69888,70400,71424,72704,73472,131328,131840,262912]),lK=(n,e)=>({stop:hi.watch(n,e)});uK=n=>{let e=0;for(let t of Fr.keys())if(t.indexOf(n)===0&&(e++,e>=oK))return !0;return !1},fK=()=>hi&&Fr.size<128,Tp=(n,e)=>{let t=0;for(;!n.indexOf(e)&&(n=ze.dirname(n))!==e;)t++;return t},g0=(n,e)=>n.type===ko&&e.isDirectory()||n.type===bO&&e.isSymbolicLink()||n.type===Z4&&e.isFile(),hK=class{constructor(e){this.fsw=e;}checkIgnored(e,t){let r=this.fsw._ignoredPaths;if(this.fsw._isIgnored(e,t))return r.add(e),t&&t.isDirectory()&&r.add(e+d0),!0;r.delete(e),r.delete(e+d0);}addOrChange(e,t,r,s,i,o,a,l){let c=i.has(o)?W4:kp;this.handleEvent(c,e,t,r,s,i,o,a,l);}async checkExists(e,t,r,s,i,o,a,l){try{let c=await lg(e);if(this.fsw.closed)return;g0(a,c)?this.addOrChange(e,t,r,s,i,o,a,l):this.handleEvent(Yl,e,t,r,s,i,o,a,l);}catch(c){c.code==="EACCES"?this.addOrChange(e,t,r,s,i,o,a,l):this.handleEvent(Yl,e,t,r,s,i,o,a,l);}}handleEvent(e,t,r,s,i,o,a,l,c){if(!(this.fsw.closed||this.checkIgnored(t)))if(e===Yl){let u=l.type===ko;(u||o.has(a))&&this.fsw._remove(i,a,u);}else {if(e===kp){if(l.type===ko&&this.fsw._getWatchedDir(t),l.type===bO&&c.followSymlinks){let f=c.depth===void 0?void 0:Tp(r,s)+1;return this._addToFsEvents(t,!1,!0,f)}this.fsw._getWatchedDir(i).add(a);}let u=l.type===ko?e+eK:e;this.fsw._emit(u,t),u===h0&&this._addToFsEvents(t,!1,!0);}}_watchWithFsEvents(e,t,r,s){if(this.fsw.closed||this.fsw._isIgnored(e))return;let i=this.fsw.options,a=cK(e,t,async(l,c,u)=>{if(this.fsw.closed||this.fsw._isIgnored(l)||i.depth!==void 0&&Tp(l,t)>i.depth)return;let f=r(ze.join(e,ze.relative(e,l)));if(s&&!s(f))return;let h=ze.dirname(f),m=ze.basename(f),p=this.fsw._getWatchedDir(u.type===ko?f:h);if(aK.has(c)||u.event===Y4)if(typeof i.ignored===$p){let d;try{d=await lg(f);}catch{}if(this.fsw.closed||this.checkIgnored(f,d))return;g0(u,d)?this.addOrChange(f,l,t,h,p,m,u,i):this.handleEvent(Yl,f,l,t,h,p,m,u,i);}else this.checkExists(f,l,t,h,p,m,u,i);else switch(u.event){case G4:case K4:return this.addOrChange(f,l,t,h,p,m,u,i);case V4:case J4:return this.checkExists(f,l,t,h,p,m,u,i)}},this.fsw._emitRaw);return this.fsw._emitReady(),a}async _handleFsEventsSymlink(e,t,r,s){if(!(this.fsw.closed||this.fsw._symlinkPaths.has(t))){this.fsw._symlinkPaths.set(t,!0),this.fsw._incrReadyCount();try{let i=await m0(e);if(this.fsw.closed)return;if(this.fsw._isIgnored(i))return this.fsw._emitReady();this.fsw._incrReadyCount(),this._addToFsEvents(i||e,o=>{let a=e;return i&&i!==p0?a=o.replace(i,e):o!==p0&&(a=ze.join(e,o)),r(a)},!1,s);}catch(i){if(this.fsw._handleError(i))return this.fsw._emitReady()}}}emitAdd(e,t,r,s,i){let o=r(e),a=t.isDirectory(),l=this.fsw._getWatchedDir(ze.dirname(o)),c=ze.basename(o);a&&this.fsw._getWatchedDir(o),!l.has(c)&&(l.add(c),(!s.ignoreInitial||i===!0)&&this.fsw._emit(a?h0:kp,o,t));}initWatch(e,t,r,s){if(this.fsw.closed)return;let i=this._watchWithFsEvents(r.watchPath,ze.resolve(e||r.watchPath),s,r.globFilter);this.fsw._addPathCloser(t,i);}async _addToFsEvents(e,t,r,s){if(this.fsw.closed)return;let i=this.fsw.options,o=typeof t===$p?t:nK,a=this.fsw._getWatchHelpers(e);try{let l=await iK[a.statMethod](a.watchPath);if(this.fsw.closed)return;if(this.fsw._isIgnored(a.watchPath,l))throw null;if(l.isDirectory()){if(a.globFilter||this.emitAdd(o(e),l,o,i,r),s&&s>i.depth)return;this.fsw._readdirp(a.watchPath,{fileFilter:c=>a.filterPath(c),directoryFilter:c=>a.filterDir(c),...rK(i.depth-(s||0))}).on(H4,c=>{if(this.fsw.closed||c.stats.isDirectory()&&!a.filterPath(c))return;let u=ze.join(a.watchPath,c.path),{fullPath:f}=c;if(a.followSymlinks&&c.stats.isSymbolicLink()){let h=i.depth===void 0?void 0:Tp(u,ze.resolve(a.watchPath))+1;this._handleFsEventsSymlink(u,f,o,h);}else this.emitAdd(u,c.stats,o,i,r);}).on(q4,tK).on(z4,()=>{this.fsw._emitReady();});}else this.emitAdd(a.watchPath,l,o,i,r),this.fsw._emitReady();}catch(l){(!l||this.fsw._handleError(l))&&(this.fsw._emitReady(),this.fsw._emitReady());}if(i.persistent&&r!==!0)if(typeof t===$p)this.initWatch(void 0,e,a,o);else {let l;try{l=await m0(a.watchPath);}catch{}this.initWatch(l,e,a,o);}}};$y.exports=hK;$y.exports.canUse=fK;dK=$y.exports,{EventEmitter:pK}=ea__default.default,Ny=Je__namespace.default,pe=Oe__default.default,{promisify:xO}=Mn__default.default,mK=c4,cg=m4.default,gK=uC,Pp=cC,yK=yC,wK=vO,vK=Q4,y0=dK,{EV_ALL:Np,EV_READY:EK,EV_ADD:Xl,EV_CHANGE:yo,EV_UNLINK:w0,EV_ADD_DIR:AK,EV_UNLINK_DIR:SK,EV_RAW:_K,EV_ERROR:Lp,STR_CLOSE:bK,STR_END:xK,BACK_SLASH_RE:CK,DOUBLE_SLASH_RE:v0,SLASH_OR_BACK_SLASH_RE:IK,DOT_RE:OK,REPLACER_RE:RK,SLASH:Mp,SLASH_SLASH:kK,BRACE_START:$K,BANG:ug,ONE_DOT:CO,TWO_DOTS:TK,GLOBSTAR:PK,SLASH_GLOBSTAR:Dp,ANYMATCH_OPTS:fg,STRING_TYPE:Ly,FUNCTION_TYPE:NK,EMPTY_STR:hg,EMPTY_FN:LK,isWindows:MK,isMacos:DK,isIBMi:BK}=Qu,FK=xO(Ny.stat),jK=xO(Ny.readdir),dg=(n=[])=>Array.isArray(n)?n:[n],IO=(n,e=[])=>(n.forEach(t=>{Array.isArray(t)?IO(t,e):e.push(t);}),e),E0=n=>{let e=IO(dg(n));if(!e.every(t=>typeof t===Ly))throw new TypeError(`Non-string provided as watch path: ${e}`);return e.map(OO)},A0=n=>{let e=n.replace(CK,Mp),t=!1;for(e.startsWith(kK)&&(t=!0);e.match(v0);)e=e.replace(v0,Mp);return t&&(e=Mp+e),e},OO=n=>A0(pe.normalize(A0(n))),S0=(n=hg)=>e=>typeof e!==Ly?e:OO(pe.isAbsolute(e)?e:pe.join(n,e)),UK=(n,e)=>pe.isAbsolute(n)?n:n.startsWith(ug)?ug+pe.join(e,n.slice(1)):pe.join(e,n),en=(n,e)=>n[e]===void 0,pg=class{constructor(e,t){this.path=e,this._removeWatcher=t,this.items=new Set;}add(e){let{items:t}=this;t&&e!==CO&&e!==TK&&t.add(e);}async remove(e){let{items:t}=this;if(!t||(t.delete(e),t.size>0))return;let r=this.path;try{await jK(r);}catch{this._removeWatcher&&this._removeWatcher(pe.dirname(r),pe.basename(r));}}has(e){let{items:t}=this;if(t)return t.has(e)}getChildren(){let{items:e}=this;if(e)return [...e.values()]}dispose(){this.items.clear(),delete this.path,delete this._removeWatcher,delete this.items,Object.freeze(this);}},QK="stat",WK="lstat",mg=class{constructor(e,t,r,s){this.fsw=s,this.path=e=e.replace(RK,hg),this.watchPath=t,this.fullWatchPath=pe.resolve(t),this.hasGlob=t!==e,e===hg&&(this.hasGlob=!1),this.globSymlink=this.hasGlob&&r?void 0:!1,this.globFilter=this.hasGlob?cg(e,void 0,fg):!1,this.dirParts=this.getDirParts(e),this.dirParts.forEach(i=>{i.length>1&&i.pop();}),this.followSymlinks=r,this.statMethod=r?QK:WK;}checkGlobSymlink(e){return this.globSymlink===void 0&&(this.globSymlink=e.fullParentDir===this.fullWatchPath?!1:{realPath:e.fullParentDir,linkPath:this.fullWatchPath}),this.globSymlink?e.fullPath.replace(this.globSymlink.realPath,this.globSymlink.linkPath):e.fullPath}entryPath(e){return pe.join(this.watchPath,pe.relative(this.watchPath,this.checkGlobSymlink(e)))}filterPath(e){let{stats:t}=e;if(t&&t.isSymbolicLink())return this.filterDir(e);let r=this.entryPath(e);return (this.hasGlob&&typeof this.globFilter===NK?this.globFilter(r):!0)&&this.fsw._isntIgnored(r,t)&&this.fsw._hasReadPermissions(t)}getDirParts(e){if(!this.hasGlob)return [];let t=[];return (e.includes($K)?yK.expand(e):[e]).forEach(s=>{t.push(pe.relative(this.watchPath,s).split(IK));}),t}filterDir(e){if(this.hasGlob){let t=this.getDirParts(this.checkGlobSymlink(e)),r=!1;this.unmatchedGlob=!this.dirParts.some(s=>s.every((i,o)=>(i===PK&&(r=!0),r||!t[0][o]||cg(i,t[0][o],fg))));}return !this.unmatchedGlob&&this.fsw._isntIgnored(this.entryPath(e),e.stats)}},ru=class extends pK{constructor(e){super();let t={};e&&Object.assign(t,e),this._watched=new Map,this._closers=new Map,this._ignoredPaths=new Set,this._throttled=new Map,this._symlinkPaths=new Map,this._streams=new Set,this.closed=!1,en(t,"persistent")&&(t.persistent=!0),en(t,"ignoreInitial")&&(t.ignoreInitial=!1),en(t,"ignorePermissionErrors")&&(t.ignorePermissionErrors=!1),en(t,"interval")&&(t.interval=100),en(t,"binaryInterval")&&(t.binaryInterval=300),en(t,"disableGlobbing")&&(t.disableGlobbing=!1),t.enableBinaryInterval=t.binaryInterval!==t.interval,en(t,"useFsEvents")&&(t.useFsEvents=!t.usePolling),y0.canUse()||(t.useFsEvents=!1),en(t,"usePolling")&&!t.useFsEvents&&(t.usePolling=DK),BK&&(t.usePolling=!0);let s=process.env.CHOKIDAR_USEPOLLING;if(s!==void 0){let l=s.toLowerCase();l==="false"||l==="0"?t.usePolling=!1:l==="true"||l==="1"?t.usePolling=!0:t.usePolling=!!l;}let i=process.env.CHOKIDAR_INTERVAL;i&&(t.interval=Number.parseInt(i,10)),en(t,"atomic")&&(t.atomic=!t.usePolling&&!t.useFsEvents),t.atomic&&(this._pendingUnlinks=new Map),en(t,"followSymlinks")&&(t.followSymlinks=!0),en(t,"awaitWriteFinish")&&(t.awaitWriteFinish=!1),t.awaitWriteFinish===!0&&(t.awaitWriteFinish={});let o=t.awaitWriteFinish;o&&(o.stabilityThreshold||(o.stabilityThreshold=2e3),o.pollInterval||(o.pollInterval=100),this._pendingWrites=new Map),t.ignored&&(t.ignored=dg(t.ignored));let a=0;this._emitReady=()=>{a++,a>=this._readyCount&&(this._emitReady=LK,this._readyEmitted=!0,process.nextTick(()=>this.emit(EK)));},this._emitRaw=(...l)=>this.emit(_K,...l),this._readyEmitted=!1,this.options=t,t.useFsEvents?this._fsEventsHandler=new y0(this):this._nodeFsHandler=new vK(this),Object.freeze(t);}add(e,t,r){let{cwd:s,disableGlobbing:i}=this.options;this.closed=!1;let o=E0(e);return s&&(o=o.map(a=>{let l=UK(a,s);return i||!Pp(a)?l:wK(l)})),o=o.filter(a=>a.startsWith(ug)?(this._ignoredPaths.add(a.slice(1)),!1):(this._ignoredPaths.delete(a),this._ignoredPaths.delete(a+Dp),this._userIgnored=void 0,!0)),this.options.useFsEvents&&this._fsEventsHandler?(this._readyCount||(this._readyCount=o.length),this.options.persistent&&(this._readyCount+=o.length),o.forEach(a=>this._fsEventsHandler._addToFsEvents(a))):(this._readyCount||(this._readyCount=0),this._readyCount+=o.length,Promise.all(o.map(async a=>{let l=await this._nodeFsHandler._addToNodeFs(a,!r,0,0,t);return l&&this._emitReady(),l})).then(a=>{this.closed||a.filter(l=>l).forEach(l=>{this.add(pe.dirname(l),pe.basename(t||l));});})),this}unwatch(e){if(this.closed)return this;let t=E0(e),{cwd:r}=this.options;return t.forEach(s=>{!pe.isAbsolute(s)&&!this._closers.has(s)&&(r&&(s=pe.join(r,s)),s=pe.resolve(s)),this._closePath(s),this._ignoredPaths.add(s),this._watched.has(s)&&this._ignoredPaths.add(s+Dp),this._userIgnored=void 0;}),this}close(){if(this.closed)return this._closePromise;this.closed=!0,this.removeAllListeners();let e=[];return this._closers.forEach(t=>t.forEach(r=>{let s=r();s instanceof Promise&&e.push(s);})),this._streams.forEach(t=>t.destroy()),this._userIgnored=void 0,this._readyCount=0,this._readyEmitted=!1,this._watched.forEach(t=>t.dispose()),["closers","watched","streams","symlinkPaths","throttled"].forEach(t=>{this[`_${t}`].clear();}),this._closePromise=e.length?Promise.all(e).then(()=>{}):Promise.resolve(),this._closePromise}getWatched(){let e={};return this._watched.forEach((t,r)=>{let s=this.options.cwd?pe.relative(this.options.cwd,r):r;e[s||CO]=t.getChildren().sort();}),e}emitWithAll(e,t){this.emit(...t),e!==Lp&&this.emit(Np,...t);}async _emit(e,t,r,s,i){if(this.closed)return;let o=this.options;MK&&(t=pe.normalize(t)),o.cwd&&(t=pe.relative(o.cwd,t));let a=[e,t];i!==void 0?a.push(r,s,i):s!==void 0?a.push(r,s):r!==void 0&&a.push(r);let l=o.awaitWriteFinish,c;if(l&&(c=this._pendingWrites.get(t)))return c.lastChange=new Date,this;if(o.atomic){if(e===w0)return this._pendingUnlinks.set(t,a),setTimeout(()=>{this._pendingUnlinks.forEach((u,f)=>{this.emit(...u),this.emit(Np,...u),this._pendingUnlinks.delete(f);});},typeof o.atomic=="number"?o.atomic:100),this;e===Xl&&this._pendingUnlinks.has(t)&&(e=a[0]=yo,this._pendingUnlinks.delete(t));}if(l&&(e===Xl||e===yo)&&this._readyEmitted){let u=(f,h)=>{f?(e=a[0]=Lp,a[1]=f,this.emitWithAll(e,a)):h&&(a.length>2?a[2]=h:a.push(h),this.emitWithAll(e,a));};return this._awaitWriteFinish(t,l.stabilityThreshold,e,u),this}if(e===yo&&!this._throttle(yo,t,50))return this;if(o.alwaysStat&&r===void 0&&(e===Xl||e===AK||e===yo)){let u=o.cwd?pe.join(o.cwd,t):t,f;try{f=await FK(u);}catch{}if(!f||this.closed)return;a.push(f);}return this.emitWithAll(e,a),this}_handleError(e){let t=e&&e.code;return e&&t!=="ENOENT"&&t!=="ENOTDIR"&&(!this.options.ignorePermissionErrors||t!=="EPERM"&&t!=="EACCES")&&this.emit(Lp,e),e||this.closed}_throttle(e,t,r){this._throttled.has(e)||this._throttled.set(e,new Map);let s=this._throttled.get(e),i=s.get(t);if(i)return i.count++,!1;let o,a=()=>{let c=s.get(t),u=c?c.count:0;return s.delete(t),clearTimeout(o),c&&clearTimeout(c.timeoutObject),u};o=setTimeout(a,r);let l={timeoutObject:o,clear:a,count:0};return s.set(t,l),l}_incrReadyCount(){return this._readyCount++}_awaitWriteFinish(e,t,r,s){let i,o=e;this.options.cwd&&!pe.isAbsolute(e)&&(o=pe.join(this.options.cwd,e));let a=new Date,l=c=>{Ny.stat(o,(u,f)=>{if(u||!this._pendingWrites.has(e)){u&&u.code!=="ENOENT"&&s(u);return}let h=Number(new Date);c&&f.size!==c.size&&(this._pendingWrites.get(e).lastChange=h);let m=this._pendingWrites.get(e);h-m.lastChange>=t?(this._pendingWrites.delete(e),s(void 0,f)):i=setTimeout(l,this.options.awaitWriteFinish.pollInterval,f);});};this._pendingWrites.has(e)||(this._pendingWrites.set(e,{lastChange:a,cancelWait:()=>(this._pendingWrites.delete(e),clearTimeout(i),r)}),i=setTimeout(l,this.options.awaitWriteFinish.pollInterval));}_getGlobIgnored(){return [...this._ignoredPaths.values()]}_isIgnored(e,t){if(this.options.atomic&&OK.test(e))return !0;if(!this._userIgnored){let{cwd:r}=this.options,s=this.options.ignored,i=s&&s.map(S0(r)),o=dg(i).filter(l=>typeof l===Ly&&!Pp(l)).map(l=>l+Dp),a=this._getGlobIgnored().map(S0(r)).concat(i,o);this._userIgnored=cg(a,void 0,fg);}return this._userIgnored([e,t])}_isntIgnored(e,t){return !this._isIgnored(e,t)}_getWatchHelpers(e,t){let r=t||this.options.disableGlobbing||!Pp(e)?e:gK(e),s=this.options.followSymlinks;return new mg(e,r,s,this)}_getWatchedDir(e){this._boundRemove||(this._boundRemove=this._remove.bind(this));let t=pe.resolve(e);return this._watched.has(t)||this._watched.set(t,new pg(t,this._boundRemove)),this._watched.get(t)}_hasReadPermissions(e){if(this.options.ignorePermissionErrors)return !0;let r=(e&&Number.parseInt(e.mode,10))&511;return !!(4&Number.parseInt(r.toString(8)[0],10))}_remove(e,t,r){let s=pe.join(e,t),i=pe.resolve(s);if(r=r??(this._watched.has(s)||this._watched.has(i)),!this._throttle("remove",s,100))return;!r&&!this.options.useFsEvents&&this._watched.size===1&&this.add(e,t,!0),this._getWatchedDir(s).getChildren().forEach(h=>this._remove(s,h));let l=this._getWatchedDir(e),c=l.has(t);l.remove(t),this._symlinkPaths.has(i)&&this._symlinkPaths.delete(i);let u=s;if(this.options.cwd&&(u=pe.relative(this.options.cwd,s)),this.options.awaitWriteFinish&&this._pendingWrites.has(u)&&this._pendingWrites.get(u).cancelWait()===Xl)return;this._watched.delete(s),this._watched.delete(i);let f=r?SK:w0;c&&!this._isIgnored(s)&&this._emit(f,s),this.options.useFsEvents||this._closePath(s);}_closePath(e){this._closeFile(e);let t=pe.dirname(e);this._getWatchedDir(t).remove(pe.basename(e));}_closeFile(e){let t=this._closers.get(e);t&&(t.forEach(r=>r()),this._closers.delete(e));}_addPathCloser(e,t){if(!t)return;let r=this._closers.get(e);r||(r=[],this._closers.set(e,r)),r.push(t);}_readdirp(e,t){if(this.closed)return;let r={type:Np,alwaysStat:!0,lstat:!0,...t},s=mK(e,r);return this._streams.add(s),s.once(bK,()=>{s=void 0;}),s.once(xK,()=>{s&&(this._streams.delete(s),s=void 0);}),s}};gO.FSWatcher=ru;qK=(n,e)=>{let t=new ru(e);return t.add(n),t};gO.watch=qK;RO={},HK=function(e){return e.map(function(t){return t&&typeof t=="object"?t.op.replace(/(.)/g,"\\$1"):/["\s]/.test(t)&&!/'/.test(t)?"'"+t.replace(/(['\\])/g,"\\$1")+"'":/["'\s]/.test(t)?'"'+t.replace(/(["\\$`!])/g,"\\$1")+'"':String(t).replace(/([A-Za-z]:)?([#!"$&'()*,:;<=>?@[\\\]^`{|}])/g,"$1\\$2")}).join(" ")},kO="(?:"+["\\|\\|","\\&\\&",";;","\\|\\&","\\<\\(","\\<\\<\\<",">>",">\\&","<\\&","[&;()|<>]"].join("|")+")",_0=new RegExp("^"+kO+"$"),b0="|&;()<> \\t",zK='"((\\\\"|[^"])*?)"',GK="'((\\\\'|[^'])*?)'",KK=/^#$/,x0="'",C0='"',Bp="$",qr="",VK=4294967296;for(Fp=0;Fp<4;Fp++)qr+=(VK*Math.random()).toString(16);JK=new RegExp("^"+qr);eV=function(e,t,r){var s=ZK(e,t,r);return typeof t!="function"?s:s.reduce(function(i,o){if(typeof o=="object")return i.concat(o);var a=o.split(RegExp("("+qr+".*?"+qr+")","g"));return a.length===1?i.concat(a[0]):i.concat(a.filter(Boolean).map(function(l){return JK.test(l)?JSON.parse(l.split(qr)[1]):l}))},[])};RO.quote=HK;RO.parse=eV;({existsSync:Je__namespace.default.existsSync,isDirectory:rV,tryResolveRealFile:$O,tryResolveRealFileWithExtensions:tV,tryResolveRealFileOrType:nV});Je__namespace.default.Stats,or(Hn),or(Ff),Re("vite:resolve-details",{onlyWhenFocused:!0}),["css","less","sass","scss","styl","stylus","pcss","postcss","wasm","vue","svelte","marko","astro","imba","jsx","tsx",...Uf],Re("vite:ssr-external"),Re("vite:optimize-deps"),or(Hn),or(Ff),iV=async(n={},e)=>{let t;if(e.startsWith("data:")){let r=e.replace(/^data:.*?base64,/,""),s;if(typeof Buffer=="function"&&typeof Buffer.from=="function")s=Buffer.from(r,"base64");else if(typeof atob=="function"){let i=atob(r);s=new Uint8Array(i.length);for(let o=0;o<i.length;o++)s[o]=i.charCodeAt(o);}else throw new Error("Failed to decode base64-encoded data URL, Buffer and atob are not supported");t=await WebAssembly.instantiate(s,n);}else {let r=await fetch(e),s=r.headers.get("Content-Type")||"";if("instantiateStreaming"in WebAssembly&&s.startsWith("application/wasm"))t=await WebAssembly.instantiateStreaming(r,n);else {let i=await r.arrayBuffer();t=await WebAssembly.instantiate(i,n);}}return t.instance},iV.toString();if(!String.prototype.repeat)throw new Error("String.prototype.repeat is undefined, see https://github.com/davidbonnet/astring#installation");if(!String.prototype.endsWith)throw new Error("String.prototype.endsWith is undefined, see https://github.com/davidbonnet/astring#installation");process.env.DEBUG_VITE_SOURCEMAP_COMBINE_FILTER,Re("vite:sourcemap-combine",{onlyWhenFocused:!0}),Re("vite:resolve"),Re("vite:plugin-resolve",{onlyWhenFocused:"vite:plugin"}),Re("vite:plugin-transform",{onlyWhenFocused:"vite:plugin"}),Re("vite:deps"),Re("vite:deps"),Re("vite:deps"),aV=[{name:"package-lock.json",checkPatches:!0,manager:"npm"},{name:"yarn.lock",checkPatches:!0,manager:"yarn"},{name:"pnpm-lock.yaml",checkPatches:!1,manager:"pnpm"},{name:"bun.lockb",checkPatches:!0,manager:"bun"}].sort((n,{manager:e})=>process.env.npm_config_user_agent?.startsWith(e)?1:-1),aV.map(n=>n.name),lV=5e3,Mn.promisify(function(e,t,r){let s=Date.now(),i=0;Je__namespace.default.rename(e,t,function o(a){if(a&&(a.code==="EACCES"||a.code==="EPERM")&&Date.now()-s<lV){setTimeout(function(){Je__namespace.default.stat(t,function(l,c){l&&l.code==="ENOENT"?Je__namespace.default.rename(e,t,o):o(a);});},i),i<100&&(i+=10);return}r&&r(a);});}),Re("vite:load"),Re("vite:transform"),Re("vite:cache"),gg={exports:{}},PO=Je__namespace.default;NO=()=>(jp===void 0&&(jp=cV()||uV()),jp),fV=Zr__default.default,hV=Je__namespace.default,I0=NO,O0=()=>{if(process.platform!=="linux")return !1;if(fV.release().toLowerCase().includes("microsoft"))return !I0();try{return hV.readFileSync("/proc/version","utf8").toLowerCase().includes("microsoft")?!I0():!1}catch{return !1}};process.env.__IS_WSL_TEST__?gg.exports=O0:gg.exports=O0();dV=gg.exports,pV=(n,e,t)=>{let r=s=>Object.defineProperty(n,e,{value:s,enumerable:!0,writable:!0});return Object.defineProperty(n,e,{configurable:!0,enumerable:!0,get(){let s=t();return r(s),s},set(s){r(s);}}),n},mV=Oe__default.default,gV=yx__default.default,{promises:su,constants:LO}=Je__namespace.default,gc=dV,yV=NO,My=pV,R0=mV.join(sm,"xdg-open"),{platform:Js,arch:k0}=process,wV=()=>{try{return su.statSync("/run/.containerenv"),!0}catch{return !1}};EV=(()=>{let n="/mnt/",e;return async function(){if(e)return e;let t="/etc/wsl.conf",r=!1;try{await su.access(t,LO.F_OK),r=!0;}catch{}if(!r)return n;let s=await su.readFile(t,{encoding:"utf8"}),i=/(?<!#.*)root\s*=\s*(?<mountPoint>.*)/g.exec(s);return i?(e=i.groups.mountPoint.trim(),e=e.endsWith("/")?e:`${e}/`,e):n}})(),$0=async(n,e)=>{let t;for(let r of n)try{return await e(r)}catch(s){t=s;}throw t},iu=async n=>{if(n={wait:!1,background:!1,newInstance:!1,allowNonzeroExitCode:!1,...n},Array.isArray(n.app))return $0(n.app,a=>iu({...n,app:a}));let{name:e,arguments:t=[]}=n.app||{};if(t=[...t],Array.isArray(e))return $0(e,a=>iu({...n,app:{name:a,arguments:t}}));let r,s=[],i={};if(Js==="darwin")r="open",n.wait&&s.push("--wait-apps"),n.background&&s.push("--background"),n.newInstance&&s.push("--new"),e&&s.push("-a",e);else if(Js==="win32"||gc&&!vV()&&!e){let a=await EV();r=gc?`${a}c/Windows/System32/WindowsPowerShell/v1.0/powershell.exe`:`${process.env.SYSTEMROOT}\\System32\\WindowsPowerShell\\v1.0\\powershell`,s.push("-NoProfile","-NonInteractive","\u2013ExecutionPolicy","Bypass","-EncodedCommand"),gc||(i.windowsVerbatimArguments=!0);let l=["Start"];n.wait&&l.push("-Wait"),e?(l.push(`"\`"${e}\`""`,"-ArgumentList"),n.target&&t.unshift(n.target)):n.target&&l.push(`"${n.target}"`),t.length>0&&(t=t.map(c=>`"\`"${c}\`""`),l.push(t.join(","))),n.target=Buffer.from(l.join(" "),"utf16le").toString("base64");}else {if(e)r=e;else {let a=!sm||sm==="/",l=!1;try{await su.access(R0,LO.X_OK),l=!0;}catch{}r=process.versions.electron||Js==="android"||a||!l?"xdg-open":R0;}t.length>0&&s.push(...t),n.wait||(i.stdio="ignore",i.detached=!0);}n.target&&s.push(n.target),Js==="darwin"&&t.length>0&&s.push("--args",...t);let o=gV.spawn(r,s,i);return n.wait?new Promise((a,l)=>{o.once("error",l),o.once("close",c=>{if(!n.allowNonzeroExitCode&&c>0){l(new Error(`Exited with code ${c}`));return}a(o);});}):(o.unref(),o)},MO=(n,e)=>{if(typeof n!="string")throw new TypeError("Expected a `target`");return iu({...e,target:n})},AV=(n,e)=>{if(typeof n!="string")throw new TypeError("Expected a `name`");let{arguments:t=[]}=e||{};if(t!=null&&!Array.isArray(t))throw new TypeError("Expected `appArguments` as Array type");return iu({...e,app:{name:n,arguments:t}})};Wu={};My(Wu,"chrome",()=>Dy({darwin:"google chrome",win32:"chrome",linux:["google-chrome","google-chrome-stable","chromium"]},{wsl:{ia32:"/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe",x64:["/mnt/c/Program Files/Google/Chrome/Application/chrome.exe","/mnt/c/Program Files (x86)/Google/Chrome/Application/chrome.exe"]}}));My(Wu,"firefox",()=>Dy({darwin:"firefox",win32:"C:\\Program Files\\Mozilla Firefox\\firefox.exe",linux:"firefox"},{wsl:"/mnt/c/Program Files/Mozilla Firefox/firefox.exe"}));My(Wu,"edge",()=>Dy({darwin:"microsoft edge",win32:"msedge",linux:["microsoft-edge","microsoft-edge-dev"]},{wsl:"/mnt/c/Program Files (x86)/Microsoft/Edge/Application/msedge.exe"}));MO.apps=Wu;MO.openApp=AV;yi={exports:{}};process.platform==="win32"||Ir.TESTING_WINDOWS?ou=SV():ou=_V();bV=By;By.sync=xV;Ws=process.platform==="win32"||process.env.OSTYPE==="cygwin"||process.env.OSTYPE==="msys",DO=Oe__default.default,CV=Ws?";":":",BO=bV,FO=n=>Object.assign(new Error(`not found: ${n}`),{code:"ENOENT"}),jO=(n,e)=>{let t=e.colon||CV,r=n.match(/\//)||Ws&&n.match(/\\/)?[""]:[...Ws?[process.cwd()]:[],...(e.path||process.env.PATH||"").split(t)],s=Ws?e.pathExt||process.env.PATHEXT||".EXE;.CMD;.BAT;.COM":"",i=Ws?s.split(t):[""];return Ws&&n.indexOf(".")!==-1&&i[0]!==""&&i.unshift(""),{pathEnv:r,pathExt:i,pathExtExe:s}},UO=(n,e,t)=>{typeof e=="function"&&(t=e,e={}),e||(e={});let{pathEnv:r,pathExt:s,pathExtExe:i}=jO(n,e),o=[],a=c=>new Promise((u,f)=>{if(c===r.length)return e.all&&o.length?u(o):f(FO(n));let h=r[c],m=/^".*"$/.test(h)?h.slice(1,-1):h,p=DO.join(m,n),d=!m&&/^\.[\\\/]/.test(n)?n.slice(0,2)+p:p;u(l(d,c,0));}),l=(c,u,f)=>new Promise((h,m)=>{if(f===s.length)return h(a(u+1));let p=s[f];BO(c+p,{pathExt:i},(d,g)=>{if(!d&&g)if(e.all)o.push(c+p);else return h(c+p);return h(l(c,u,f+1))});});return t?a(0).then(c=>t(null,c),t):a(0)},IV=(n,e)=>{e=e||{};let{pathEnv:t,pathExt:r,pathExtExe:s}=jO(n,e),i=[];for(let o=0;o<t.length;o++){let a=t[o],l=/^".*"$/.test(a)?a.slice(1,-1):a,c=DO.join(l,n),u=!l&&/^\.[\\\/]/.test(n)?n.slice(0,2)+c:c;for(let f=0;f<r.length;f++){let h=u+r[f];try{if(BO.sync(h,{pathExt:s}))if(e.all)i.push(h);else return h}catch{}}}if(e.all&&i.length)return i;if(e.nothrow)return null;throw FO(n)},OV=UO;UO.sync=IV;Fy={exports:{}},QO=(n={})=>{let e=n.env||process.env;return (n.platform||process.platform)!=="win32"?"PATH":Object.keys(e).reverse().find(r=>r.toUpperCase()==="PATH")||"Path"};Fy.exports=QO;Fy.exports.default=QO;RV=Fy.exports,L0=Oe__default.default,kV=OV,$V=RV;PV=TV,jy={},yg=/([()\][%!^"`<>&|;, *?])/g;jy.command=NV;jy.argument=LV;MV=/^#!(.*)/,DV=MV,BV=(n="")=>{let e=n.match(DV);if(!e)return null;let[t,r]=e[0].replace(/#! ?/,"").split(" "),s=t.split("/").pop();return s==="env"?r:r?`${s} ${r}`:s},qp=Je__namespace.default,FV=BV;UV=jV,QV=Oe__default.default,D0=PV,B0=jy,WV=UV,qV=process.platform==="win32",HV=/\.(?:com|exe)$/i,zV=/node_modules[\\/].bin[\\/][^\\/]+\.cmd$/i;JV=VV,Uy=process.platform==="win32";ZV={hookChildProcess:YV,verifyENOENT:WO,verifyENOENTSync:XV,notFoundError:Qy},qO=yx__default.default,Wy=JV,qy=ZV;yi.exports=HO;yi.exports.spawn=HO;yi.exports.sync=eJ;yi.exports._parse=Wy;yi.exports._enoent=qy;yi.exports,au={exports:{}},zO=["nodebuffer","arraybuffer","fragments"],GO=typeof Blob<"u";GO&&zO.push("blob");cr={BINARY_TYPES:zO,EMPTY_BUFFER:Buffer.alloc(0),GUID:"258EAFA5-E914-47DA-95CA-C5AB0DC85B11",hasBlob:GO,kForOnEventAttribute:Symbol("kIsForOnEventAttribute"),kListener:Symbol("kListener"),kStatusCode:Symbol("status-code"),kWebSocket:Symbol("websocket"),NOOP:()=>{}},{EMPTY_BUFFER:tJ}=cr,wg=Buffer[Symbol.species];au.exports={concat:nJ,mask:KO,toArrayBuffer:rJ,toBuffer:vg,unmask:VO};if(!process.env.WS_NO_BUFFER_UTIL)try{let n=du("bufferutil");au.exports.mask=function(e,t,r,s,i){i<48?KO(e,t,r,s,i):n.mask(e,t,r,s,i);},au.exports.unmask=function(e,t){e.length<32?VO(e,t):n.unmask(e,t);};}catch{}qu=au.exports,F0=Symbol("kDone"),Hp=Symbol("kRun"),sJ=class{constructor(e){this[F0]=()=>{this.pending--,this[Hp]();},this.concurrency=e||1/0,this.jobs=[],this.pending=0;}add(e){this.jobs.push(e),this[Hp]();}[Hp](){if(this.pending!==this.concurrency&&this.jobs.length){let e=this.jobs.shift();this.pending++,e(this[F0]);}}},iJ=sJ,wo=bF__default.default,j0=qu,oJ=iJ,{kStatusCode:JO}=cr,aJ=Buffer[Symbol.species],lJ=Buffer.from([0,0,255,255]),lu=Symbol("permessage-deflate"),Rn=Symbol("total-length"),$o=Symbol("callback"),Zn=Symbol("buffers"),yc=Symbol("error"),cJ=class{constructor(e,t,r){if(this._maxPayload=r|0,this._options=e||{},this._threshold=this._options.threshold!==void 0?this._options.threshold:1024,this._isServer=!!t,this._deflate=null,this._inflate=null,this.params=null,!Zl){let s=this._options.concurrencyLimit!==void 0?this._options.concurrencyLimit:10;Zl=new oJ(s);}}static get extensionName(){return "permessage-deflate"}offer(){let e={};return this._options.serverNoContextTakeover&&(e.server_no_context_takeover=!0),this._options.clientNoContextTakeover&&(e.client_no_context_takeover=!0),this._options.serverMaxWindowBits&&(e.server_max_window_bits=this._options.serverMaxWindowBits),this._options.clientMaxWindowBits?e.client_max_window_bits=this._options.clientMaxWindowBits:this._options.clientMaxWindowBits==null&&(e.client_max_window_bits=!0),e}accept(e){return e=this.normalizeParams(e),this.params=this._isServer?this.acceptAsServer(e):this.acceptAsClient(e),this.params}cleanup(){if(this._inflate&&(this._inflate.close(),this._inflate=null),this._deflate){let e=this._deflate[$o];this._deflate.close(),this._deflate=null,e&&e(new Error("The deflate stream was closed while data was being processed"));}}acceptAsServer(e){let t=this._options,r=e.find(s=>!(t.serverNoContextTakeover===!1&&s.server_no_context_takeover||s.server_max_window_bits&&(t.serverMaxWindowBits===!1||typeof t.serverMaxWindowBits=="number"&&t.serverMaxWindowBits>s.server_max_window_bits)||typeof t.clientMaxWindowBits=="number"&&!s.client_max_window_bits));if(!r)throw new Error("None of the extension offers can be accepted");return t.serverNoContextTakeover&&(r.server_no_context_takeover=!0),t.clientNoContextTakeover&&(r.client_no_context_takeover=!0),typeof t.serverMaxWindowBits=="number"&&(r.server_max_window_bits=t.serverMaxWindowBits),typeof t.clientMaxWindowBits=="number"?r.client_max_window_bits=t.clientMaxWindowBits:(r.client_max_window_bits===!0||t.clientMaxWindowBits===!1)&&delete r.client_max_window_bits,r}acceptAsClient(e){let t=e[0];if(this._options.clientNoContextTakeover===!1&&t.client_no_context_takeover)throw new Error('Unexpected parameter "client_no_context_takeover"');if(!t.client_max_window_bits)typeof this._options.clientMaxWindowBits=="number"&&(t.client_max_window_bits=this._options.clientMaxWindowBits);else if(this._options.clientMaxWindowBits===!1||typeof this._options.clientMaxWindowBits=="number"&&t.client_max_window_bits>this._options.clientMaxWindowBits)throw new Error('Unexpected or invalid parameter "client_max_window_bits"');return t}normalizeParams(e){return e.forEach(t=>{Object.keys(t).forEach(r=>{let s=t[r];if(s.length>1)throw new Error(`Parameter "${r}" must have only a single value`);if(s=s[0],r==="client_max_window_bits"){if(s!==!0){let i=+s;if(!Number.isInteger(i)||i<8||i>15)throw new TypeError(`Invalid value for parameter "${r}": ${s}`);s=i;}else if(!this._isServer)throw new TypeError(`Invalid value for parameter "${r}": ${s}`)}else if(r==="server_max_window_bits"){let i=+s;if(!Number.isInteger(i)||i<8||i>15)throw new TypeError(`Invalid value for parameter "${r}": ${s}`);s=i;}else if(r==="client_no_context_takeover"||r==="server_no_context_takeover"){if(s!==!0)throw new TypeError(`Invalid value for parameter "${r}": ${s}`)}else throw new Error(`Unknown parameter "${r}"`);t[r]=s;});}),e}decompress(e,t,r){Zl.add(s=>{this._decompress(e,t,(i,o)=>{s(),r(i,o);});});}compress(e,t,r){Zl.add(s=>{this._compress(e,t,(i,o)=>{s(),r(i,o);});});}_decompress(e,t,r){let s=this._isServer?"client":"server";if(!this._inflate){let i=`${s}_max_window_bits`,o=typeof this.params[i]!="number"?wo.Z_DEFAULT_WINDOWBITS:this.params[i];this._inflate=wo.createInflateRaw({...this._options.zlibInflateOptions,windowBits:o}),this._inflate[lu]=this,this._inflate[Rn]=0,this._inflate[Zn]=[],this._inflate.on("error",fJ),this._inflate.on("data",YO);}this._inflate[$o]=r,this._inflate.write(e),t&&this._inflate.write(lJ),this._inflate.flush(()=>{let i=this._inflate[yc];if(i){this._inflate.close(),this._inflate=null,r(i);return}let o=j0.concat(this._inflate[Zn],this._inflate[Rn]);this._inflate._readableState.endEmitted?(this._inflate.close(),this._inflate=null):(this._inflate[Rn]=0,this._inflate[Zn]=[],t&&this.params[`${s}_no_context_takeover`]&&this._inflate.reset()),r(null,o);});}_compress(e,t,r){let s=this._isServer?"server":"client";if(!this._deflate){let i=`${s}_max_window_bits`,o=typeof this.params[i]!="number"?wo.Z_DEFAULT_WINDOWBITS:this.params[i];this._deflate=wo.createDeflateRaw({...this._options.zlibDeflateOptions,windowBits:o}),this._deflate[Rn]=0,this._deflate[Zn]=[],this._deflate.on("data",uJ);}this._deflate[$o]=r,this._deflate.write(e),this._deflate.flush(wo.Z_SYNC_FLUSH,()=>{if(!this._deflate)return;let i=j0.concat(this._deflate[Zn],this._deflate[Rn]);t&&(i=new aJ(i.buffer,i.byteOffset,i.length-4)),this._deflate[$o]=null,this._deflate[Rn]=0,this._deflate[Zn]=[],t&&this.params[`${s}_no_context_takeover`]&&this._deflate.reset(),r(null,i);});}},Hu=cJ;cu={exports:{}},{isUtf8:U0}=xF__default.default,{hasBlob:hJ}=cr,dJ=[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,1,1,1,1,1,0,0,1,1,0,1,1,0,1,1,1,1,1,1,1,1,1,1,0,0,0,0,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,0,0,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,1,0,1,0,1,0];cu.exports={isBlob:mJ,isValidStatusCode:pJ,isValidUTF8:Eg,tokenChars:dJ};if(U0)cu.exports.isValidUTF8=function(n){return n.length<24?Eg(n):U0(n)};else if(!process.env.WS_NO_UTF_8_VALIDATE)try{let n=du("utf-8-validate");cu.exports.isValidUTF8=function(e){return e.length<32?Eg(e):n(e)};}catch{}ma=cu.exports,{Writable:gJ}=Xr__default.default,Q0=Hu,{BINARY_TYPES:yJ,EMPTY_BUFFER:W0,kStatusCode:wJ,kWebSocket:vJ}=cr,{concat:zp,toArrayBuffer:EJ,unmask:AJ}=qu,{isValidStatusCode:SJ,isValidUTF8:q0}=ma,ec=Buffer[Symbol.species],Nt=0,H0=1,z0=2,G0=3,Gp=4,Kp=5,tc=6,_J=class extends gJ{constructor(e={}){super(),this._allowSynchronousEvents=e.allowSynchronousEvents!==void 0?e.allowSynchronousEvents:!0,this._binaryType=e.binaryType||yJ[0],this._extensions=e.extensions||{},this._isServer=!!e.isServer,this._maxPayload=e.maxPayload|0,this._skipUTF8Validation=!!e.skipUTF8Validation,this[vJ]=void 0,this._bufferedBytes=0,this._buffers=[],this._compressed=!1,this._payloadLength=0,this._mask=void 0,this._fragmented=0,this._masked=!1,this._fin=!1,this._opcode=0,this._totalPayloadLength=0,this._messageLength=0,this._fragments=[],this._errored=!1,this._loop=!1,this._state=Nt;}_write(e,t,r){if(this._opcode===8&&this._state==Nt)return r();this._bufferedBytes+=e.length,this._buffers.push(e),this.startLoop(r);}consume(e){if(this._bufferedBytes-=e,e===this._buffers[0].length)return this._buffers.shift();if(e<this._buffers[0].length){let r=this._buffers[0];return this._buffers[0]=new ec(r.buffer,r.byteOffset+e,r.length-e),new ec(r.buffer,r.byteOffset,e)}let t=Buffer.allocUnsafe(e);do{let r=this._buffers[0],s=t.length-e;e>=r.length?t.set(this._buffers.shift(),s):(t.set(new Uint8Array(r.buffer,r.byteOffset,e),s),this._buffers[0]=new ec(r.buffer,r.byteOffset+e,r.length-e)),e-=r.length;}while(e>0);return t}startLoop(e){this._loop=!0;do switch(this._state){case Nt:this.getInfo(e);break;case H0:this.getPayloadLength16(e);break;case z0:this.getPayloadLength64(e);break;case G0:this.getMask();break;case Gp:this.getData(e);break;case Kp:case tc:this._loop=!1;return}while(this._loop);this._errored||e();}getInfo(e){if(this._bufferedBytes<2){this._loop=!1;return}let t=this.consume(2);if(t[0]&48){let s=this.createError(RangeError,"RSV2 and RSV3 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_2_3");e(s);return}let r=(t[0]&64)===64;if(r&&!this._extensions[Q0.extensionName]){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(s);return}if(this._fin=(t[0]&128)===128,this._opcode=t[0]&15,this._payloadLength=t[1]&127,this._opcode===0){if(r){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(s);return}if(!this._fragmented){let s=this.createError(RangeError,"invalid opcode 0",!0,1002,"WS_ERR_INVALID_OPCODE");e(s);return}this._opcode=this._fragmented;}else if(this._opcode===1||this._opcode===2){if(this._fragmented){let s=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(s);return}this._compressed=r;}else if(this._opcode>7&&this._opcode<11){if(!this._fin){let s=this.createError(RangeError,"FIN must be set",!0,1002,"WS_ERR_EXPECTED_FIN");e(s);return}if(r){let s=this.createError(RangeError,"RSV1 must be clear",!0,1002,"WS_ERR_UNEXPECTED_RSV_1");e(s);return}if(this._payloadLength>125||this._opcode===8&&this._payloadLength===1){let s=this.createError(RangeError,`invalid payload length ${this._payloadLength}`,!0,1002,"WS_ERR_INVALID_CONTROL_PAYLOAD_LENGTH");e(s);return}}else {let s=this.createError(RangeError,`invalid opcode ${this._opcode}`,!0,1002,"WS_ERR_INVALID_OPCODE");e(s);return}if(!this._fin&&!this._fragmented&&(this._fragmented=this._opcode),this._masked=(t[1]&128)===128,this._isServer){if(!this._masked){let s=this.createError(RangeError,"MASK must be set",!0,1002,"WS_ERR_EXPECTED_MASK");e(s);return}}else if(this._masked){let s=this.createError(RangeError,"MASK must be clear",!0,1002,"WS_ERR_UNEXPECTED_MASK");e(s);return}this._payloadLength===126?this._state=H0:this._payloadLength===127?this._state=z0:this.haveLength(e);}getPayloadLength16(e){if(this._bufferedBytes<2){this._loop=!1;return}this._payloadLength=this.consume(2).readUInt16BE(0),this.haveLength(e);}getPayloadLength64(e){if(this._bufferedBytes<8){this._loop=!1;return}let t=this.consume(8),r=t.readUInt32BE(0);if(r>Math.pow(2,21)-1){let s=this.createError(RangeError,"Unsupported WebSocket frame: payload length > 2^53 - 1",!1,1009,"WS_ERR_UNSUPPORTED_DATA_PAYLOAD_LENGTH");e(s);return}this._payloadLength=r*Math.pow(2,32)+t.readUInt32BE(4),this.haveLength(e);}haveLength(e){if(this._payloadLength&&this._opcode<8&&(this._totalPayloadLength+=this._payloadLength,this._totalPayloadLength>this._maxPayload&&this._maxPayload>0)){let t=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");e(t);return}this._masked?this._state=G0:this._state=Gp;}getMask(){if(this._bufferedBytes<4){this._loop=!1;return}this._mask=this.consume(4),this._state=Gp;}getData(e){let t=W0;if(this._payloadLength){if(this._bufferedBytes<this._payloadLength){this._loop=!1;return}t=this.consume(this._payloadLength),this._masked&&this._mask[0]|this._mask[1]|this._mask[2]|this._mask[3]&&AJ(t,this._mask);}if(this._opcode>7){this.controlMessage(t,e);return}if(this._compressed){this._state=Kp,this.decompress(t,e);return}t.length&&(this._messageLength=this._totalPayloadLength,this._fragments.push(t)),this.dataMessage(e);}decompress(e,t){this._extensions[Q0.extensionName].decompress(e,this._fin,(s,i)=>{if(s)return t(s);if(i.length){if(this._messageLength+=i.length,this._messageLength>this._maxPayload&&this._maxPayload>0){let o=this.createError(RangeError,"Max payload size exceeded",!1,1009,"WS_ERR_UNSUPPORTED_MESSAGE_LENGTH");t(o);return}this._fragments.push(i);}this.dataMessage(t),this._state===Nt&&this.startLoop(t);});}dataMessage(e){if(!this._fin){this._state=Nt;return}let t=this._messageLength,r=this._fragments;if(this._totalPayloadLength=0,this._messageLength=0,this._fragmented=0,this._fragments=[],this._opcode===2){let s;this._binaryType==="nodebuffer"?s=zp(r,t):this._binaryType==="arraybuffer"?s=EJ(zp(r,t)):this._binaryType==="blob"?s=new Blob(r):s=r,this._allowSynchronousEvents?(this.emit("message",s,!0),this._state=Nt):(this._state=tc,setImmediate(()=>{this.emit("message",s,!0),this._state=Nt,this.startLoop(e);}));}else {let s=zp(r,t);if(!this._skipUTF8Validation&&!q0(s)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");e(i);return}this._state===Kp||this._allowSynchronousEvents?(this.emit("message",s,!1),this._state=Nt):(this._state=tc,setImmediate(()=>{this.emit("message",s,!1),this._state=Nt,this.startLoop(e);}));}}controlMessage(e,t){if(this._opcode===8){if(e.length===0)this._loop=!1,this.emit("conclude",1005,W0),this.end();else {let r=e.readUInt16BE(0);if(!SJ(r)){let i=this.createError(RangeError,`invalid status code ${r}`,!0,1002,"WS_ERR_INVALID_CLOSE_CODE");t(i);return}let s=new ec(e.buffer,e.byteOffset+2,e.length-2);if(!this._skipUTF8Validation&&!q0(s)){let i=this.createError(Error,"invalid UTF-8 sequence",!0,1007,"WS_ERR_INVALID_UTF8");t(i);return}this._loop=!1,this.emit("conclude",r,s),this.end();}this._state=Nt;return}this._allowSynchronousEvents?(this.emit(this._opcode===9?"ping":"pong",e),this._state=Nt):(this._state=tc,setImmediate(()=>{this.emit(this._opcode===9?"ping":"pong",e),this._state=Nt,this.startLoop(t);}));}createError(e,t,r,s,i){this._loop=!1,this._errored=!0;let o=new e(r?`Invalid WebSocket frame: ${t}`:t);return Error.captureStackTrace(o,this.createError),o.code=i,o[wJ]=s,o}},bJ=_J,{randomFillSync:xJ}=hu__default.default,K0=Hu,{EMPTY_BUFFER:CJ,kWebSocket:IJ,NOOP:OJ}=cr,{isBlob:Fs,isValidStatusCode:RJ}=ma,{mask:V0,toBuffer:$r}=qu,Lt=Symbol("kByteLength"),kJ=Buffer.alloc(4),wc=8*1024,js=wc,tn=0,$J=1,TJ=2,PJ=class Lr{constructor(e,t,r){this._extensions=t||{},r&&(this._generateMask=r,this._maskBuffer=Buffer.alloc(4)),this._socket=e,this._firstFragment=!0,this._compress=!1,this._bufferedBytes=0,this._queue=[],this._state=tn,this.onerror=OJ,this[IJ]=void 0;}static frame(e,t){let r,s=!1,i=2,o=!1;t.mask&&(r=t.maskBuffer||kJ,t.generateMask?t.generateMask(r):(js===wc&&(Tr===void 0&&(Tr=Buffer.alloc(wc)),xJ(Tr,0,wc),js=0),r[0]=Tr[js++],r[1]=Tr[js++],r[2]=Tr[js++],r[3]=Tr[js++]),o=(r[0]|r[1]|r[2]|r[3])===0,i=6);let a;typeof e=="string"?(!t.mask||o)&&t[Lt]!==void 0?a=t[Lt]:(e=Buffer.from(e),a=e.length):(a=e.length,s=t.mask&&t.readOnly&&!o);let l=a;a>=65536?(i+=8,l=127):a>125&&(i+=2,l=126);let c=Buffer.allocUnsafe(s?a+i:i);return c[0]=t.fin?t.opcode|128:t.opcode,t.rsv1&&(c[0]|=64),c[1]=l,l===126?c.writeUInt16BE(a,2):l===127&&(c[2]=c[3]=0,c.writeUIntBE(a,4,6)),t.mask?(c[1]|=128,c[i-4]=r[0],c[i-3]=r[1],c[i-2]=r[2],c[i-1]=r[3],o?[c,e]:s?(V0(e,r,c,i,a),[c]):(V0(e,r,e,0,a),[c,e])):[c,e]}close(e,t,r,s){let i;if(e===void 0)i=CJ;else {if(typeof e!="number"||!RJ(e))throw new TypeError("First argument must be a valid error code number");if(t===void 0||!t.length)i=Buffer.allocUnsafe(2),i.writeUInt16BE(e,0);else {let a=Buffer.byteLength(t);if(a>123)throw new RangeError("The message must not be greater than 123 bytes");i=Buffer.allocUnsafe(2+a),i.writeUInt16BE(e,0),typeof t=="string"?i.write(t,2):i.set(t,2);}}let o={[Lt]:i.length,fin:!0,generateMask:this._generateMask,mask:r,maskBuffer:this._maskBuffer,opcode:8,readOnly:!1,rsv1:!1};this._state!==tn?this.enqueue([this.dispatch,i,!1,o,s]):this.sendFrame(Lr.frame(i,o),s);}ping(e,t,r){let s,i;if(typeof e=="string"?(s=Buffer.byteLength(e),i=!1):Fs(e)?(s=e.size,i=!1):(e=$r(e),s=e.length,i=$r.readOnly),s>125)throw new RangeError("The data size must not be greater than 125 bytes");let o={[Lt]:s,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:9,readOnly:i,rsv1:!1};Fs(e)?this._state!==tn?this.enqueue([this.getBlobData,e,!1,o,r]):this.getBlobData(e,!1,o,r):this._state!==tn?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(Lr.frame(e,o),r);}pong(e,t,r){let s,i;if(typeof e=="string"?(s=Buffer.byteLength(e),i=!1):Fs(e)?(s=e.size,i=!1):(e=$r(e),s=e.length,i=$r.readOnly),s>125)throw new RangeError("The data size must not be greater than 125 bytes");let o={[Lt]:s,fin:!0,generateMask:this._generateMask,mask:t,maskBuffer:this._maskBuffer,opcode:10,readOnly:i,rsv1:!1};Fs(e)?this._state!==tn?this.enqueue([this.getBlobData,e,!1,o,r]):this.getBlobData(e,!1,o,r):this._state!==tn?this.enqueue([this.dispatch,e,!1,o,r]):this.sendFrame(Lr.frame(e,o),r);}send(e,t,r){let s=this._extensions[K0.extensionName],i=t.binary?2:1,o=t.compress,a,l;typeof e=="string"?(a=Buffer.byteLength(e),l=!1):Fs(e)?(a=e.size,l=!1):(e=$r(e),a=e.length,l=$r.readOnly),this._firstFragment?(this._firstFragment=!1,o&&s&&s.params[s._isServer?"server_no_context_takeover":"client_no_context_takeover"]&&(o=a>=s._threshold),this._compress=o):(o=!1,i=0),t.fin&&(this._firstFragment=!0);let c={[Lt]:a,fin:t.fin,generateMask:this._generateMask,mask:t.mask,maskBuffer:this._maskBuffer,opcode:i,readOnly:l,rsv1:o};Fs(e)?this._state!==tn?this.enqueue([this.getBlobData,e,this._compress,c,r]):this.getBlobData(e,this._compress,c,r):this._state!==tn?this.enqueue([this.dispatch,e,this._compress,c,r]):this.dispatch(e,this._compress,c,r);}getBlobData(e,t,r,s){this._bufferedBytes+=r[Lt],this._state=TJ,e.arrayBuffer().then(i=>{if(this._socket.destroyed){let a=new Error("The socket was closed while the blob was being read");process.nextTick(Ag,this,a,s);return}this._bufferedBytes-=r[Lt];let o=$r(i);t?this.dispatch(o,t,r,s):(this._state=tn,this.sendFrame(Lr.frame(o,r),s),this.dequeue());}).catch(i=>{process.nextTick(LJ,this,i,s);});}dispatch(e,t,r,s){if(!t){this.sendFrame(Lr.frame(e,r),s);return}let i=this._extensions[K0.extensionName];this._bufferedBytes+=r[Lt],this._state=$J,i.compress(e,r.fin,(o,a)=>{if(this._socket.destroyed){let l=new Error("The socket was closed while data was being compressed");Ag(this,l,s);return}this._bufferedBytes-=r[Lt],this._state=tn,r.readOnly=!1,this.sendFrame(Lr.frame(a,r),s),this.dequeue();});}dequeue(){for(;this._state===tn&&this._queue.length;){let e=this._queue.shift();this._bufferedBytes-=e[3][Lt],Reflect.apply(e[0],this,e.slice(1));}}enqueue(e){this._bufferedBytes+=e[3][Lt],this._queue.push(e);}sendFrame(e,t){e.length===2?(this._socket.cork(),this._socket.write(e[0]),this._socket.write(e[1],t),this._socket.uncork()):this._socket.write(e[0],t);}},NJ=PJ;(({kForOnEventAttribute:vo,kListener:Vp}=cr)),J0=Symbol("kCode"),Y0=Symbol("kData"),X0=Symbol("kError"),Z0=Symbol("kMessage"),ex=Symbol("kReason"),Ys=Symbol("kTarget"),tx=Symbol("kType"),nx=Symbol("kWasClean"),rs=class{constructor(e){this[Ys]=null,this[tx]=e;}get target(){return this[Ys]}get type(){return this[tx]}};Object.defineProperty(rs.prototype,"target",{enumerable:!0});Object.defineProperty(rs.prototype,"type",{enumerable:!0});Vr=class extends rs{constructor(e,t={}){super(e),this[J0]=t.code===void 0?0:t.code,this[ex]=t.reason===void 0?"":t.reason,this[nx]=t.wasClean===void 0?!1:t.wasClean;}get code(){return this[J0]}get reason(){return this[ex]}get wasClean(){return this[nx]}};Object.defineProperty(Vr.prototype,"code",{enumerable:!0});Object.defineProperty(Vr.prototype,"reason",{enumerable:!0});Object.defineProperty(Vr.prototype,"wasClean",{enumerable:!0});di=class extends rs{constructor(e,t={}){super(e),this[X0]=t.error===void 0?null:t.error,this[Z0]=t.message===void 0?"":t.message;}get error(){return this[X0]}get message(){return this[Z0]}};Object.defineProperty(di.prototype,"error",{enumerable:!0});Object.defineProperty(di.prototype,"message",{enumerable:!0});Yo=class extends rs{constructor(e,t={}){super(e),this[Y0]=t.data===void 0?null:t.data;}get data(){return this[Y0]}};Object.defineProperty(Yo.prototype,"data",{enumerable:!0});MJ={addEventListener(n,e,t={}){for(let s of this.listeners(n))if(!t[vo]&&s[Vp]===e&&!s[vo])return;let r;if(n==="message")r=function(i,o){let a=new Yo("message",{data:o?i:i.toString()});a[Ys]=this,nc(e,this,a);};else if(n==="close")r=function(i,o){let a=new Vr("close",{code:i,reason:o.toString(),wasClean:this._closeFrameReceived&&this._closeFrameSent});a[Ys]=this,nc(e,this,a);};else if(n==="error")r=function(i){let o=new di("error",{error:i,message:i.message});o[Ys]=this,nc(e,this,o);};else if(n==="open")r=function(){let i=new rs("open");i[Ys]=this,nc(e,this,i);};else return;r[vo]=!!t[vo],r[Vp]=e,t.once?this.once(n,r):this.on(n,r);},removeEventListener(n,e){for(let t of this.listeners(n))if(t[Vp]===e&&!t[vo]){this.removeListener(n,t);break}}},DJ={CloseEvent:Vr,ErrorEvent:di,Event:rs,EventTarget:MJ,MessageEvent:Yo};({tokenChars:Eo}=ma);XO={format:FJ,parse:BJ},jJ=ea__default.default,UJ=ta__default.default,QJ=Yr__default.default,ZO=gx__default.default,WJ=CF__default.default,{randomBytes:qJ,createHash:HJ}=hu__default.default,{URL:Jp}=Jr__default.default,er=Hu,zJ=bJ,GJ=NJ,{isBlob:KJ}=ma,{BINARY_TYPES:rx,EMPTY_BUFFER:rc,GUID:VJ,kForOnEventAttribute:Yp,kListener:JJ,kStatusCode:YJ,kWebSocket:Ge,NOOP:e1}=cr,{EventTarget:{addEventListener:XJ,removeEventListener:ZJ}}=DJ,{format:eY,parse:tY}=XO,{toBuffer:nY}=qu,rY=30*1e3,t1=Symbol("kAborted"),Xp=[8,13],Dn=["CONNECTING","OPEN","CLOSING","CLOSED"],sY=/^[!#$%&'*+\-.0-9A-Z^_`|a-z~]+$/,Te=class $e extends jJ{constructor(e,t,r){super(),this._binaryType=rx[0],this._closeCode=1006,this._closeFrameReceived=!1,this._closeFrameSent=!1,this._closeMessage=rc,this._closeTimer=null,this._errorEmitted=!1,this._extensions={},this._paused=!1,this._protocol="",this._readyState=$e.CONNECTING,this._receiver=null,this._sender=null,this._socket=null,e!==null?(this._bufferedAmount=0,this._isServer=!1,this._redirects=0,t===void 0?t=[]:Array.isArray(t)||(typeof t=="object"&&t!==null?(r=t,t=[]):t=[t]),n1(this,e,t,r)):(this._autoPong=r.autoPong,this._isServer=!0);}get binaryType(){return this._binaryType}set binaryType(e){rx.includes(e)&&(this._binaryType=e,this._receiver&&(this._receiver._binaryType=e));}get bufferedAmount(){return this._socket?this._socket._writableState.length+this._sender._bufferedBytes:this._bufferedAmount}get extensions(){return Object.keys(this._extensions).join()}get isPaused(){return this._paused}get onclose(){return null}get onerror(){return null}get onopen(){return null}get onmessage(){return null}get protocol(){return this._protocol}get readyState(){return this._readyState}get url(){return this._url}setSocket(e,t,r){let s=new zJ({allowSynchronousEvents:r.allowSynchronousEvents,binaryType:this.binaryType,extensions:this._extensions,isServer:this._isServer,maxPayload:r.maxPayload,skipUTF8Validation:r.skipUTF8Validation}),i=new GJ(e,this._extensions,r.generateMask);this._receiver=s,this._sender=i,this._socket=e,s[Ge]=this,i[Ge]=this,e[Ge]=this,s.on("conclude",lY),s.on("drain",cY),s.on("error",uY),s.on("message",fY),s.on("ping",hY),s.on("pong",dY),i.onerror=pY,e.setTimeout&&e.setTimeout(0),e.setNoDelay&&e.setNoDelay(),t.length>0&&e.unshift(t),e.on("close",i1),e.on("data",zu),e.on("end",o1),e.on("error",a1),this._readyState=$e.OPEN,this.emit("open");}emitClose(){if(!this._socket){this._readyState=$e.CLOSED,this.emit("close",this._closeCode,this._closeMessage);return}this._extensions[er.extensionName]&&this._extensions[er.extensionName].cleanup(),this._receiver.removeAllListeners(),this._readyState=$e.CLOSED,this.emit("close",this._closeCode,this._closeMessage);}close(e,t){if(this.readyState!==$e.CLOSED){if(this.readyState===$e.CONNECTING){xt(this,this._req,"WebSocket was closed before the connection was established");return}if(this.readyState===$e.CLOSING){this._closeFrameSent&&(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end();return}this._readyState=$e.CLOSING,this._sender.close(e,t,!this._isServer,r=>{r||(this._closeFrameSent=!0,(this._closeFrameReceived||this._receiver._writableState.errorEmitted)&&this._socket.end());}),s1(this);}}pause(){this.readyState===$e.CONNECTING||this.readyState===$e.CLOSED||(this._paused=!0,this._socket.pause());}ping(e,t,r){if(this.readyState===$e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==$e.OPEN){Zp(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.ping(e||rc,t,r);}pong(e,t,r){if(this.readyState===$e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof e=="function"?(r=e,e=t=void 0):typeof t=="function"&&(r=t,t=void 0),typeof e=="number"&&(e=e.toString()),this.readyState!==$e.OPEN){Zp(this,e,r);return}t===void 0&&(t=!this._isServer),this._sender.pong(e||rc,t,r);}resume(){this.readyState===$e.CONNECTING||this.readyState===$e.CLOSED||(this._paused=!1,this._receiver._writableState.needDrain||this._socket.resume());}send(e,t,r){if(this.readyState===$e.CONNECTING)throw new Error("WebSocket is not open: readyState 0 (CONNECTING)");if(typeof t=="function"&&(r=t,t={}),typeof e=="number"&&(e=e.toString()),this.readyState!==$e.OPEN){Zp(this,e,r);return}let s={binary:typeof e!="string",mask:!this._isServer,compress:!0,fin:!0,...t};this._extensions[er.extensionName]||(s.compress=!1),this._sender.send(e||rc,s,r);}terminate(){if(this.readyState!==$e.CLOSED){if(this.readyState===$e.CONNECTING){xt(this,this._req,"WebSocket was closed before the connection was established");return}this._socket&&(this._readyState=$e.CLOSING,this._socket.destroy());}}};Object.defineProperty(Te,"CONNECTING",{enumerable:!0,value:Dn.indexOf("CONNECTING")});Object.defineProperty(Te.prototype,"CONNECTING",{enumerable:!0,value:Dn.indexOf("CONNECTING")});Object.defineProperty(Te,"OPEN",{enumerable:!0,value:Dn.indexOf("OPEN")});Object.defineProperty(Te.prototype,"OPEN",{enumerable:!0,value:Dn.indexOf("OPEN")});Object.defineProperty(Te,"CLOSING",{enumerable:!0,value:Dn.indexOf("CLOSING")});Object.defineProperty(Te.prototype,"CLOSING",{enumerable:!0,value:Dn.indexOf("CLOSING")});Object.defineProperty(Te,"CLOSED",{enumerable:!0,value:Dn.indexOf("CLOSED")});Object.defineProperty(Te.prototype,"CLOSED",{enumerable:!0,value:Dn.indexOf("CLOSED")});["binaryType","bufferedAmount","extensions","isPaused","protocol","readyState","url"].forEach(n=>{Object.defineProperty(Te.prototype,n,{enumerable:!0});});["open","error","close","message"].forEach(n=>{Object.defineProperty(Te.prototype,`on${n}`,{enumerable:!0,get(){for(let e of this.listeners(n))if(e[Yp])return e[JJ];return null},set(e){for(let t of this.listeners(n))if(t[Yp]){this.removeListener(n,t);break}typeof e=="function"&&this.addEventListener(n,e,{[Yp]:!0});}});});Te.prototype.addEventListener=XJ;Te.prototype.removeEventListener=ZJ;iY=Te;({tokenChars:mY}=ma);yY={parse:gY},wY=ea__default.default,uu=Yr__default.default,{createHash:vY}=hu__default.default,ix=XO,Pr=Hu,EY=yY,AY=iY,{GUID:SY,kWebSocket:_Y}=cr,bY=/^[+/0-9A-Za-z]{22}==$/,ox=0,ax=1,l1=2,Sg=class extends wY{constructor(e,t){if(super(),e={allowSynchronousEvents:!0,autoPong:!0,maxPayload:100*1024*1024,skipUTF8Validation:!1,perMessageDeflate:!1,handleProtocols:null,clientTracking:!0,verifyClient:null,noServer:!1,backlog:null,server:null,host:null,path:null,port:null,WebSocket:AY,...e},e.port==null&&!e.server&&!e.noServer||e.port!=null&&(e.server||e.noServer)||e.server&&e.noServer)throw new TypeError('One and only one of the "port", "server", or "noServer" options must be specified');if(e.port!=null?(this._server=uu.createServer((r,s)=>{let i=uu.STATUS_CODES[426];s.writeHead(426,{"Content-Length":i.length,"Content-Type":"text/plain"}),s.end(i);}),this._server.listen(e.port,e.host,e.backlog,t)):e.server&&(this._server=e.server),this._server){let r=this.emit.bind(this,"connection");this._removeListeners=CY(this._server,{listening:this.emit.bind(this,"listening"),error:this.emit.bind(this,"error"),upgrade:(s,i,o)=>{this.handleUpgrade(s,i,o,r);}});}e.perMessageDeflate===!0&&(e.perMessageDeflate={}),e.clientTracking&&(this.clients=new Set,this._shouldEmitClose=!1),this.options=e,this._state=ox;}address(){if(this.options.noServer)throw new Error('The server is operating in "noServer" mode');return this._server?this._server.address():null}close(e){if(this._state===l1){e&&this.once("close",()=>{e(new Error("The server is not running"));}),process.nextTick(Ao,this);return}if(e&&this.once("close",e),this._state!==ax)if(this._state=ax,this.options.noServer||this.options.server)this._server&&(this._removeListeners(),this._removeListeners=this._server=null),this.clients?this.clients.size?this._shouldEmitClose=!0:process.nextTick(Ao,this):process.nextTick(Ao,this);else {let t=this._server;this._removeListeners(),this._removeListeners=this._server=null,t.close(()=>{Ao(this);});}}shouldHandle(e){if(this.options.path){let t=e.url.indexOf("?");if((t!==-1?e.url.slice(0,t):e.url)!==this.options.path)return !1}return !0}handleUpgrade(e,t,r,s){t.on("error",lx);let i=e.headers["sec-websocket-key"],o=e.headers.upgrade,a=+e.headers["sec-websocket-version"];if(e.method!=="GET"){Mr(this,e,t,405,"Invalid HTTP method");return}if(o===void 0||o.toLowerCase()!=="websocket"){Mr(this,e,t,400,"Invalid Upgrade header");return}if(i===void 0||!bY.test(i)){Mr(this,e,t,400,"Missing or invalid Sec-WebSocket-Key header");return}if(a!==8&&a!==13){Mr(this,e,t,400,"Missing or invalid Sec-WebSocket-Version header");return}if(!this.shouldHandle(e)){To(t,400);return}let l=e.headers["sec-websocket-protocol"],c=new Set;if(l!==void 0)try{c=EY.parse(l);}catch{Mr(this,e,t,400,"Invalid Sec-WebSocket-Protocol header");return}let u=e.headers["sec-websocket-extensions"],f={};if(this.options.perMessageDeflate&&u!==void 0){let h=new Pr(this.options.perMessageDeflate,!0,this.options.maxPayload);try{let m=ix.parse(u);m[Pr.extensionName]&&(h.accept(m[Pr.extensionName]),f[Pr.extensionName]=h);}catch{Mr(this,e,t,400,"Invalid or unacceptable Sec-WebSocket-Extensions header");return}}if(this.options.verifyClient){let h={origin:e.headers[`${a===8?"sec-websocket-origin":"origin"}`],secure:!!(e.socket.authorized||e.socket.encrypted),req:e};if(this.options.verifyClient.length===2){this.options.verifyClient(h,(m,p,d,g)=>{if(!m)return To(t,p||401,d,g);this.completeUpgrade(f,i,c,e,t,r,s);});return}if(!this.options.verifyClient(h))return To(t,401)}this.completeUpgrade(f,i,c,e,t,r,s);}completeUpgrade(e,t,r,s,i,o,a){if(!i.readable||!i.writable)return i.destroy();if(i[_Y])throw new Error("server.handleUpgrade() was called more than once with the same socket, possibly due to a misconfiguration");if(this._state>ox)return To(i,503);let c=["HTTP/1.1 101 Switching Protocols","Upgrade: websocket","Connection: Upgrade",`Sec-WebSocket-Accept: ${vY("sha1").update(t+SY).digest("base64")}`],u=new this.options.WebSocket(null,void 0,this.options);if(r.size){let f=this.options.handleProtocols?this.options.handleProtocols(r,s):r.values().next().value;f&&(c.push(`Sec-WebSocket-Protocol: ${f}`),u._protocol=f);}if(e[Pr.extensionName]){let f=e[Pr.extensionName].params,h=ix.format({[Pr.extensionName]:[f]});c.push(`Sec-WebSocket-Extensions: ${h}`),u._extensions=e;}this.emit("headers",c,s),i.write(c.concat(`\r
|
|
468
|
+
`).join(`\r
|
|
469
|
+
`)),i.removeListener("error",lx),u.setSocket(i,o,{allowSynchronousEvents:this.options.allowSynchronousEvents,maxPayload:this.options.maxPayload,skipUTF8Validation:this.options.skipUTF8Validation}),this.clients&&(this.clients.add(u),u.on("close",()=>{this.clients.delete(u),this._shouldEmitClose&&!this.clients.size&&process.nextTick(Ao,this);})),a(u,s);}},xY=Sg;IY=bn(xY),process.versions.bun?undefined("ws").WebSocketServer:IY,c1={exports:{}},u1={exports:{}};(function(n){var e=Object.prototype.hasOwnProperty,t="~";function r(){}Object.create&&(r.prototype=Object.create(null),new r().__proto__||(t=!1));function s(l,c,u){this.fn=l,this.context=c,this.once=u||!1;}function i(l,c,u,f,h){if(typeof u!="function")throw new TypeError("The listener must be a function");var m=new s(u,f||l,h),p=t?t+c:c;return l._events[p]?l._events[p].fn?l._events[p]=[l._events[p],m]:l._events[p].push(m):(l._events[p]=m,l._eventsCount++),l}function o(l,c){--l._eventsCount===0?l._events=new r:delete l._events[c];}function a(){this._events=new r,this._eventsCount=0;}a.prototype.eventNames=function(){var c=[],u,f;if(this._eventsCount===0)return c;for(f in u=this._events)e.call(u,f)&&c.push(t?f.slice(1):f);return Object.getOwnPropertySymbols?c.concat(Object.getOwnPropertySymbols(u)):c},a.prototype.listeners=function(c){var u=t?t+c:c,f=this._events[u];if(!f)return [];if(f.fn)return [f.fn];for(var h=0,m=f.length,p=new Array(m);h<m;h++)p[h]=f[h].fn;return p},a.prototype.listenerCount=function(c){var u=t?t+c:c,f=this._events[u];return f?f.fn?1:f.length:0},a.prototype.emit=function(c,u,f,h,m,p){var d=t?t+c:c;if(!this._events[d])return !1;var g=this._events[d],y=arguments.length,w,v;if(g.fn){switch(g.once&&this.removeListener(c,g.fn,void 0,!0),y){case 1:return g.fn.call(g.context),!0;case 2:return g.fn.call(g.context,u),!0;case 3:return g.fn.call(g.context,u,f),!0;case 4:return g.fn.call(g.context,u,f,h),!0;case 5:return g.fn.call(g.context,u,f,h,m),!0;case 6:return g.fn.call(g.context,u,f,h,m,p),!0}for(v=1,w=new Array(y-1);v<y;v++)w[v-1]=arguments[v];g.fn.apply(g.context,w);}else {var A=g.length,E;for(v=0;v<A;v++)switch(g[v].once&&this.removeListener(c,g[v].fn,void 0,!0),y){case 1:g[v].fn.call(g[v].context);break;case 2:g[v].fn.call(g[v].context,u);break;case 3:g[v].fn.call(g[v].context,u,f);break;case 4:g[v].fn.call(g[v].context,u,f,h);break;default:if(!w)for(E=1,w=new Array(y-1);E<y;E++)w[E-1]=arguments[E];g[v].fn.apply(g[v].context,w);}}return !0},a.prototype.on=function(c,u,f){return i(this,c,u,f,!1)},a.prototype.once=function(c,u,f){return i(this,c,u,f,!0)},a.prototype.removeListener=function(c,u,f,h){var m=t?t+c:c;if(!this._events[m])return this;if(!u)return o(this,m),this;var p=this._events[m];if(p.fn)p.fn===u&&(!h||p.once)&&(!f||p.context===f)&&o(this,m);else {for(var d=0,g=[],y=p.length;d<y;d++)(p[d].fn!==u||h&&!p[d].once||f&&p[d].context!==f)&&g.push(p[d]);g.length?this._events[m]=g.length===1?g[0]:g:o(this,m);}return this},a.prototype.removeAllListeners=function(c){var u;return c?(u=t?t+c:c,this._events[u]&&o(this,u)):(this._events=new r,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prefixed=t,a.EventEmitter=a,n.exports=a;})(u1);OY=u1.exports,Gu={},RY=function(e,t){if(t=t.split(":")[0],e=+e,!e)return !1;switch(t){case"http":case"ws":return e!==80;case"https":case"wss":return e!==443;case"ftp":return e!==21;case"gopher":return e!==70;case"file":return !1}return e!==0};(function(n){var e=n,t=Jr__default.default,r=RY,s=/(^|,)\s*upgrade\s*($|,)/i,i=/^https|wss/;e.isSSL=i,e.setupOutgoing=function(a,l,c,u){a.port=l[u||"target"].port||(i.test(l[u||"target"].protocol)?443:80),["host","hostname","socketPath","pfx","key","passphrase","cert","ca","ciphers","secureProtocol"].forEach(function(p){a[p]=l[u||"target"][p];}),a.method=l.method||c.method,a.headers=Object.assign({},c.headers),l.headers&&Object.assign(a.headers,l.headers),l.auth&&(a.auth=l.auth),l.ca&&(a.ca=l.ca),i.test(l[u||"target"].protocol)&&(a.rejectUnauthorized=typeof l.secure>"u"?!0:l.secure),a.agent=l.agent||!1,a.localAddress=l.localAddress,a.agent||(a.headers=a.headers||{},(typeof a.headers.connection!="string"||!s.test(a.headers.connection))&&(a.headers.connection="close"));var f=l[u||"target"],h=f&&l.prependPath!==!1&&f.path||"",m=l.toProxy?c.url:t.parse(c.url).path||"";return m=l.ignorePath?"":m,a.path=e.urlJoin(h,m),l.changeOrigin&&(a.headers.host=r(a.port,l[u||"target"].protocol)&&!o(a.host)?a.host+":"+a.port:a.host),a},e.setupSocket=function(a){return a.setTimeout(0),a.setNoDelay(!0),a.setKeepAlive(!0,0),a},e.getPort=function(a){var l=a.headers.host?a.headers.host.match(/:(\d+)/):"";return l?l[1]:e.hasEncryptedConnection(a)?"443":"80"},e.hasEncryptedConnection=function(a){return !!(a.connection.encrypted||a.connection.pair)},e.urlJoin=function(){var a=Array.prototype.slice.call(arguments),l=a.length-1,c=a[l],u=c.split("?"),f;return a[l]=u.shift(),f=[a.filter(Boolean).join("/").replace(/\/+/g,"/").replace("http:/","http://").replace("https:/","https://")],f.push.apply(f,u),f.join("?")},e.rewriteCookieProperty=function a(l,c,u){return Array.isArray(l)?l.map(function(f){return a(f,c,u)}):l.replace(new RegExp("(;\\s*"+u+"=)([^;]+)","i"),function(f,h,m){var p;if(m in c)p=c[m];else if("*"in c)p=c["*"];else return f;return p?h+p:""})};function o(a){return !!~a.indexOf(":")}})(Gu);cx=Jr__default.default,ux=Gu,kY=/^201|30(1|2|7|8)$/;$Y={removeChunked:function(e,t,r){e.httpVersion==="1.0"&&delete r.headers["transfer-encoding"];},setConnection:function(e,t,r){e.httpVersion==="1.0"?r.headers.connection=e.headers.connection||"close":e.httpVersion!=="2.0"&&!r.headers.connection&&(r.headers.connection=e.headers.connection||"keep-alive");},setRedirectHostRewrite:function(e,t,r,s){if((s.hostRewrite||s.autoRewrite||s.protocolRewrite)&&r.headers.location&&kY.test(r.statusCode)){var i=cx.parse(s.target),o=cx.parse(r.headers.location);if(i.host!=o.host)return;s.hostRewrite?o.host=s.hostRewrite:s.autoRewrite&&(o.host=e.headers.host),s.protocolRewrite&&(o.protocol=s.protocolRewrite),r.headers.location=o.format();}},writeHeaders:function(e,t,r,s){var i=s.cookieDomainRewrite,o=s.cookiePathRewrite,a=s.preserveHeaderKeyCase,l,c=function(h,m){m!=null&&(i&&h.toLowerCase()==="set-cookie"&&(m=ux.rewriteCookieProperty(m,i,"domain")),o&&h.toLowerCase()==="set-cookie"&&(m=ux.rewriteCookieProperty(m,o,"path")),t.setHeader(String(h).trim(),m));};if(typeof i=="string"&&(i={"*":i}),typeof o=="string"&&(o={"*":o}),a&&r.rawHeaders!=null){l={};for(var u=0;u<r.rawHeaders.length;u+=2){var f=r.rawHeaders[u];l[f.toLowerCase()]=f;}}Object.keys(r.headers).forEach(function(h){var m=r.headers[h];a&&l&&(h=l[h]||h),c(h,m);});},writeStatusCode:function(e,t,r){r.statusMessage?(t.statusCode=r.statusCode,t.statusMessage=r.statusMessage):t.statusCode=r.statusCode;}},Hy={exports:{}},TY=function(){if(!So){try{So=eC("follow-redirects");}catch{}typeof So!="function"&&(So=function(){});}So.apply(null,arguments);},ga=Jr__default.default,Xo=ga.URL,PY=Yr__default.default,NY=ta__default.default,zy=Xr__default.default.Writable,Gy=Qr__default.default,f1=TY,Ky=!1;try{Gy(new Xo);}catch(n){Ky=n.code==="ERR_INVALID_URL";}LY=["auth","host","hostname","href","path","pathname","port","protocol","query","search","hash"],Vy=["abort","aborted","connect","error","socket","timeout"],Jy=Object.create(null);Vy.forEach(function(n){Jy[n]=function(e,t,r){this._redirectable.emit(n,e,t,r);};});_g=ya("ERR_INVALID_URL","Invalid URL",TypeError),bg=ya("ERR_FR_REDIRECTION_FAILURE","Redirected request failed"),MY=ya("ERR_FR_TOO_MANY_REDIRECTS","Maximum number of redirects exceeded",bg),DY=ya("ERR_FR_MAX_BODY_LENGTH_EXCEEDED","Request body larger than maxBodyLength limit"),BY=ya("ERR_STREAM_WRITE_AFTER_END","write after end"),FY=zy.prototype.destroy||d1;gt.prototype=Object.create(zy.prototype);gt.prototype.abort=function(){Xy(this._currentRequest),this._currentRequest.abort(),this.emit("abort");};gt.prototype.destroy=function(n){return Xy(this._currentRequest,n),FY.call(this,n),this};gt.prototype.write=function(n,e,t){if(this._ending)throw new BY;if(!Hr(n)&&!QY(n))throw new TypeError("data should be a string, Buffer or Uint8Array");if(Zo(e)&&(t=e,e=null),n.length===0){t&&t();return}this._requestBodyLength+n.length<=this._options.maxBodyLength?(this._requestBodyLength+=n.length,this._requestBodyBuffers.push({data:n,encoding:e}),this._currentRequest.write(n,e,t)):(this.emit("error",new DY),this.abort());};gt.prototype.end=function(n,e,t){if(Zo(n)?(t=n,n=e=null):Zo(e)&&(t=e,e=null),!n)this._ended=this._ending=!0,this._currentRequest.end(null,null,t);else {var r=this,s=this._currentRequest;this.write(n,e,function(){r._ended=!0,s.end(null,null,t);}),this._ending=!0;}};gt.prototype.setHeader=function(n,e){this._options.headers[n]=e,this._currentRequest.setHeader(n,e);};gt.prototype.removeHeader=function(n){delete this._options.headers[n],this._currentRequest.removeHeader(n);};gt.prototype.setTimeout=function(n,e){var t=this;function r(o){o.setTimeout(n),o.removeListener("timeout",o.destroy),o.addListener("timeout",o.destroy);}function s(o){t._timeout&&clearTimeout(t._timeout),t._timeout=setTimeout(function(){t.emit("timeout"),i();},n),r(o);}function i(){t._timeout&&(clearTimeout(t._timeout),t._timeout=null),t.removeListener("abort",i),t.removeListener("error",i),t.removeListener("response",i),t.removeListener("close",i),e&&t.removeListener("timeout",e),t.socket||t._currentRequest.removeListener("socket",s);}return e&&this.on("timeout",e),this.socket?s(this.socket):this._currentRequest.once("socket",s),this.on("socket",r),this.on("abort",i),this.on("error",i),this.on("response",i),this.on("close",i),this};["flushHeaders","getHeader","setNoDelay","setSocketKeepAlive"].forEach(function(n){gt.prototype[n]=function(e,t){return this._currentRequest[n](e,t)};});["aborted","connection","socket"].forEach(function(n){Object.defineProperty(gt.prototype,n,{get:function(){return this._currentRequest[n]}});});gt.prototype._sanitizeOptions=function(n){if(n.headers||(n.headers={}),n.host&&(n.hostname||(n.hostname=n.host),delete n.host),!n.pathname&&n.path){var e=n.path.indexOf("?");e<0?n.pathname=n.path:(n.pathname=n.path.substring(0,e),n.search=n.path.substring(e));}};gt.prototype._performRequest=function(){var n=this._options.protocol,e=this._options.nativeProtocols[n];if(!e)throw new TypeError("Unsupported protocol "+n);if(this._options.agents){var t=n.slice(0,-1);this._options.agent=this._options.agents[t];}var r=this._currentRequest=e.request(this._options,this._onNativeResponse);r._redirectable=this;for(var s of Vy)r.on(s,Jy[s]);if(this._currentUrl=/^\//.test(this._options.path)?ga.format(this._options):this._options.path,this._isRedirect){var i=0,o=this,a=this._requestBodyBuffers;(function l(c){if(r===o._currentRequest)if(c)o.emit("error",c);else if(i<a.length){var u=a[i++];r.finished||r.write(u.data,u.encoding,l);}else o._ended&&r.end();})();}};gt.prototype._processResponse=function(n){var e=n.statusCode;this._options.trackRedirects&&this._redirects.push({url:this._currentUrl,headers:n.headers,statusCode:e});var t=n.headers.location;if(!t||this._options.followRedirects===!1||e<300||e>=400){n.responseUrl=this._currentUrl,n.redirects=this._redirects,this.emit("response",n),this._requestBodyBuffers=[];return}if(Xy(this._currentRequest),n.destroy(),++this._redirectCount>this._options.maxRedirects)throw new MY;var r,s=this._options.beforeRedirect;s&&(r=Object.assign({Host:n.req.getHeader("host")},this._options.headers));var i=this._options.method;((e===301||e===302)&&this._options.method==="POST"||e===303&&!/^(?:GET|HEAD)$/.test(this._options.method))&&(this._options.method="GET",this._requestBodyBuffers=[],em(/^content-/i,this._options.headers));var o=em(/^host$/i,this._options.headers),a=Yy(this._currentUrl),l=o||a.host,c=/^\w+:/.test(t)?this._currentUrl:ga.format(Object.assign(a,{host:l})),u=jY(t,c);if(f1("redirecting to",u.href),this._isRedirect=!0,xg(u,this._options),(u.protocol!==a.protocol&&u.protocol!=="https:"||u.host!==l&&!UY(u.host,l))&&em(/^(?:(?:proxy-)?authorization|cookie)$/i,this._options.headers),Zo(s)){var f={headers:n.headers,statusCode:e},h={url:c,method:i,headers:r};s(this._options,f,h),this._sanitizeOptions(this._options);}this._performRequest();};Hy.exports=h1({http:PY,https:NY});Hy.exports.wrap=h1;qY=Hy.exports,HY=Yr__default.default,zY=ta__default.default,Fo=$Y,sc=Gu,GY=qY;Fo=Object.keys(Fo).map(function(n){return Fo[n]});KY={http:HY,https:zY};VY={deleteLength:function(e,t,r){(e.method==="DELETE"||e.method==="OPTIONS")&&!e.headers["content-length"]&&(e.headers["content-length"]="0",delete e.headers["transfer-encoding"]);},timeout:function(e,t,r){r.timeout&&e.socket.setTimeout(r.timeout);},XHeaders:function(e,t,r){if(r.xfwd){var s=e.isSpdy||sc.hasEncryptedConnection(e),i={for:e.connection.remoteAddress||e.socket.remoteAddress,port:sc.getPort(e),proto:s?"https":"http"};["for","port","proto"].forEach(function(o){e.headers["x-forwarded-"+o]=(e.headers["x-forwarded-"+o]||"")+(e.headers["x-forwarded-"+o]?",":"")+i[o];}),e.headers["x-forwarded-host"]=e.headers["x-forwarded-host"]||e.headers.host||"";}},stream:function(e,t,r,s,i,o){i.emit("start",e,t,r.target||r.forward);var a=r.followRedirects?GY:KY,l=a.http,c=a.https;if(r.forward){var u=(r.forward.protocol==="https:"?c:l).request(sc.setupOutgoing(r.ssl||{},r,e,"forward")),f=p(u,r.forward);if(e.on("error",f),u.on("error",f),(r.buffer||e).pipe(u),!r.target)return t.end()}var h=(r.target.protocol==="https:"?c:l).request(sc.setupOutgoing(r.ssl||{},r,e));h.on("socket",function(d){i&&!h.getHeader("expect")&&i.emit("proxyReq",h,e,t,r);}),r.proxyTimeout&&h.setTimeout(r.proxyTimeout,function(){h.abort();}),e.on("aborted",function(){h.abort();});var m=p(h,r.target);e.on("error",m),h.on("error",m);function p(d,g){return function(w){if(e.socket.destroyed&&w.code==="ECONNRESET")return i.emit("econnreset",w,e,t,g),d.abort();o?o(w,e,t,g):i.emit("error",w,e,t,g);}}(r.buffer||e).pipe(h),h.on("response",function(d){if(i&&i.emit("proxyRes",d,e,t),!t.headersSent&&!r.selfHandleResponse)for(var g=0;g<Fo.length&&!Fo[g](e,t,d,r);g++);t.finished?i&&i.emit("end",e,t,d):(d.on("end",function(){i&&i.emit("end",e,t,d);}),r.selfHandleResponse||d.pipe(t));});}},JY=Yr__default.default,YY=ta__default.default,Us=Gu;XY={checkMethodAndHeader:function(e,t){if(e.method!=="GET"||!e.headers.upgrade||e.headers.upgrade.toLowerCase()!=="websocket")return t.destroy(),!0},XHeaders:function(e,t,r){if(r.xfwd){var s={for:e.connection.remoteAddress||e.socket.remoteAddress,port:Us.getPort(e),proto:Us.hasEncryptedConnection(e)?"wss":"ws"};["for","port","proto"].forEach(function(i){e.headers["x-forwarded-"+i]=(e.headers["x-forwarded-"+i]||"")+(e.headers["x-forwarded-"+i]?",":"")+s[i];});}},stream:function(e,t,r,s,i,o){var a=function(u,f){return Object.keys(f).reduce(function(h,m){var p=f[m];if(!Array.isArray(p))return h.push(m+": "+p),h;for(var d=0;d<p.length;d++)h.push(m+": "+p[d]);return h},[u]).join(`\r
|
|
470
|
+
`)+`\r
|
|
471
|
+
\r
|
|
472
|
+
`};Us.setupSocket(t),s&&s.length&&t.unshift(s);var l=(Us.isSSL.test(r.target.protocol)?YY:JY).request(Us.setupOutgoing(r.ssl||{},r,e));return i&&i.emit("proxyReqWs",l,e,t,r,s),l.on("error",c),l.on("response",function(u){u.upgrade||(t.write(a("HTTP/"+u.httpVersion+" "+u.statusCode+" "+u.statusMessage,u.headers)),u.pipe(t));}),l.on("upgrade",function(u,f,h){f.on("error",c),f.on("end",function(){i.emit("close",u,f,h);}),t.on("error",function(){f.end();}),Us.setupSocket(f),h&&h.length&&f.unshift(h),t.write(a("HTTP/1.1 101 Switching Protocols",u.headers)),f.pipe(t).pipe(f),i.emit("open",f),i.emit("proxySocket",f);}),l.end();function c(u){o?o(u,e,t):i.emit("error",u,e,t),t.end();}}};(function(n){var e=n.exports,t=Jr__default.default.parse,r=OY,s=Yr__default.default,i=ta__default.default,o=VY,a=XY;e.Server=c;function l(u){return function(f){return function(h,m){var p=u==="ws"?this.wsPasses:this.webPasses,d=[].slice.call(arguments),g=d.length-1,y,w;typeof d[g]=="function"&&(w=d[g],g--);var v=f;if(!(d[g]instanceof Buffer)&&d[g]!==m&&(v=Object.assign({},f),Object.assign(v,d[g]),g--),d[g]instanceof Buffer&&(y=d[g]),["target","forward"].forEach(function(E){typeof v[E]=="string"&&(v[E]=t(v[E]));}),!v.target&&!v.forward)return this.emit("error",new Error("Must provide a proper URL as target"));for(var A=0;A<p.length&&!p[A](h,m,v,y,this,w);A++);}}}e.createRightProxy=l;function c(u){r.call(this),u=u||{},u.prependPath=u.prependPath!==!1,this.web=this.proxyRequest=l("web")(u),this.ws=this.proxyWebsocketRequest=l("ws")(u),this.options=u,this.webPasses=Object.keys(o).map(function(f){return o[f]}),this.wsPasses=Object.keys(a).map(function(f){return a[f]}),this.on("error",this.onError,this);}Mn__default.default.inherits(c,r),c.prototype.onError=function(u){if(this.listeners("error").length===1)throw u},c.prototype.listen=function(u,f){var h=this,m=function(p,d){h.web(p,d);};return this._server=this.options.ssl?i.createServer(this.options.ssl,m):s.createServer(m),this.options.ws&&this._server.on("upgrade",function(p,d,g){h.ws(p,d,g);}),this._server.listen(u,f),this},c.prototype.close=function(u){var f=this;this._server&&this._server.close(h);function h(){f._server=null,u&&u.apply(null,arguments);}},c.prototype.before=function(u,f,h){if(u!=="ws"&&u!=="web")throw new Error("type must be `web` or `ws`");var m=u==="ws"?this.wsPasses:this.webPasses,p=!1;if(m.forEach(function(d,g){d.name===f&&(p=g);}),p===!1)throw new Error("No such pass");m.splice(p,0,h);},c.prototype.after=function(u,f,h){if(u!=="ws"&&u!=="web")throw new Error("type must be `web` or `ws`");var m=u==="ws"?this.wsPasses:this.webPasses,p=!1;if(m.forEach(function(d,g){d.name===f&&(p=g);}),p===!1)throw new Error("No such pass");m.splice(p++,0,h);};})(c1);ZY=c1.exports,Ku=ZY.Server;Ku.createProxyServer=Zy;Ku.createServer=Zy;Ku.createProxy=Zy;Re("vite:proxy"),Re("vite:html-fallback"),Re("vite:send",{onlyWhenFocused:!0}),Re("vite:cache"),Re("vite:time"),Re("vite:hmr"),or(jf),Re("vite:import-analysis"),or(jf),t6=/[\n\r'\\\u2028\u2029]/,n6=/([\n\r'\u2028\u2029])/g,r6=/\\/g;jo=(n,e="URL")=>`new ${e}(${n}).href`,tm=(n,e=!1)=>jo(`'${ni(jc(n))}', ${e?"typeof document === 'undefined' ? location.href : ":""}document.currentScript && document.currentScript.tagName.toUpperCase() === 'SCRIPT' && document.currentScript.src || document.baseURI`),s6=n=>`require('u' + 'rl').pathToFileURL(${n}).href`,fx=n=>s6(`__dirname + '/${ni(n)}'`),i6={amd:n=>(n[0]!=="."&&(n="./"+n),jo(`require.toUrl('${ni(n)}'), document.baseURI`)),cjs:n=>`(typeof document === 'undefined' ? ${fx(n)} : ${tm(n)})`,es:n=>jo(`'${ni(jc(n))}', import.meta.url`),iife:n=>tm(n),system:n=>jo(`'${ni(jc(n))}', module.meta.url`),umd:n=>`(typeof document === 'undefined' && typeof location === 'undefined' ? ${fx(n)} : ${tm(n,!0)})`},{...i6,"worker-iife":n=>jo(`'${ni(jc(n))}', self.location.href`)},Re("vite:config"),Mn.promisify(Je__namespace.default.realpath),AF.createRequire((typeof document === 'undefined' ? require('u' + 'rl').pathToFileURL(__filename).href : (_documentCurrentScript && _documentCurrentScript.tagName.toUpperCase() === 'SCRIPT' && _documentCurrentScript.src || new URL('preset.cjs', document.baseURI).href)));});var Jw=ss(jw());var Uw=n=>JSON.parse(JSON.stringify(jsonSchemaFaker.JSONSchemaFaker.generate(n))),YR=n=>Object.entries(n).reduce((e,[t,r])=>(e[t]={type:"string",...r},e),{}),Ww=(n,e)=>(jsonSchemaFaker.JSONSchemaFaker.option({ignoreProperties:["attributes"],pruneProperties:["attributes"],failOnInvalidTypes:!1,useExamplesValue:!0,useDefaultValue:!0,...e}),{...n?.props?.properties&&Uw(n.props.properties),...n?.slots&&Uw(YR(n.slots))});var XR=n=>({...n,...n.enum&&{control:"radio",options:n.enum}}),qw=n=>n?.props?.properties?Object.entries(n.props.properties).reduce((t,[r,s])=>(t[r]=XR(s),t),{}):{};var Hw=n=>{let e=[],t=r=>{let s={};for(let i in r)if(Array.isArray(r[i]))r[i].forEach(o=>{if(o.type==="component"){let c=`\${${o.component.split(":").pop().replace(/([-])/g,"")}.component(${JSON.stringify(o.args)})}`;s[i]?s[i]+=c:s[i]=c;}else {let a=o;s[i]?s[i]+=`${a}`:s[i]=`${a}`;}});else if(typeof r[i]=="object"){let o=t(r[i]);Object.entries(o).forEach(([a,l])=>{s[a]?s[a]+=l:s[a]=l;});}else s[i]=`${r[i]}`;return s};return Object.entries(n).forEach(([r,s])=>{let i=t(s.args),o=Object.entries(i).map(([a,l])=>`"${a}": \`${l}\``).join(", ");e.push(`export const ${r} = {
|
|
473
|
+
args: {
|
|
474
|
+
${o},
|
|
475
|
+
play: async ({ canvasElement }) => {
|
|
476
|
+
Drupal.attachBehaviors(canvasElement, window.drupalSettings);
|
|
477
|
+
},
|
|
478
|
+
}
|
|
479
|
+
};`);}),e.join(`
|
|
480
|
+
`)};var Yw=n=>(0, Jw.parse)(Je.readFileSync(n,"utf8")),tk=n=>Je.readdirSync(n,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(e=>Oe.join(n,e.name)),nk=(n,e)=>{let t=Oe.resolve("./components");return [t,...tk(t)].map(i=>Oe.resolve(`${i}/${e}/${e}.component.yml`)).find(i=>Je.readFileSync(i))},rk=n=>Je.readdirSync(n).reduce((t,r)=>{let s=`./${r}`;return Oe.extname(r)===".css"||Oe.extname(r)===".js"?`${t} import '${s}';`:Oe.extname(r)===".twig"?`${t} import COMPONENT from '${s}';`:t},""),sk=n=>{let e=new Set,t=r=>{for(let s in r)Array.isArray(r[s])?r[s].forEach(i=>{if(i.type==="component"){let[o,a]=i.component.split(":"),l=nk(o,a);if(l){let c=a.replace(/([-])/g,"");e.add(`import ${c} from '${l}';`);}}}):typeof r[s]=="object"&&t(r[s]);};return Object.entries(n).forEach(([r,s])=>{t(s.args);}),Array.from(e).join(`
|
|
481
|
+
`)},Xw=async({jsonSchemaFakerOptions:n})=>({name:"vite-plugin-storybook-yaml-stories",async load(e){if(!e.endsWith("component.yml"))return;let t=await Yw(e),r=rk(Oe.dirname(e)),s=sk(t.thirdPartySettings?.sdcStorybook?.stories||{}),i={componentMetadata:{table:{disable:!0}},...qw(t)},o={componentMetadata:{path:Oe.relative(process.cwd(),Oe.dirname(e)),machineName:e,status:t.status||"stable",name:t.name,group:t.group||"All Components"},...Ww(t,n)},a=t.thirdPartySettings?.sdcStorybook.stories?Hw(t.thirdPartySettings.sdcStorybook.stories):"";return `
|
|
482
|
+
${r}
|
|
483
|
+
${s}
|
|
484
|
+
|
|
485
|
+
export default {
|
|
486
|
+
component: COMPONENT,
|
|
487
|
+
argTypes: ${JSON.stringify(i,null,2)},
|
|
488
|
+
args: ${JSON.stringify(o,null,2)},
|
|
489
|
+
};
|
|
490
|
+
|
|
491
|
+
export const Basic = {
|
|
492
|
+
play: async ({ canvasElement }) => {
|
|
493
|
+
Drupal.attachBehaviors(canvasElement, window.drupalSettings);
|
|
494
|
+
},
|
|
495
|
+
};
|
|
496
|
+
|
|
497
|
+
${a}
|
|
498
|
+
`}}),Zw={test:/component\.yml$/,createIndex:async(n,{makeTitle:e})=>{let t=await Yw(n),r=e(`SDC/${t.name}`),s=[{type:"story",importPath:n,exportName:"Basic",title:r}],i=t.thirdPartySettings?.sdcStorybook?.stories;return i&&Object.entries(i).forEach(([o,a])=>{s.push({type:"story",importPath:n,exportName:o,title:r});}),s}};kf();Mi();Mi();Qf();ss(Mf());typeof process<"u"&&process.platform==="win32";var m1="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",o6=new Uint8Array(64),a6=new Uint8Array(128);for(let n=0;n<m1.length;n++){let e=m1.charCodeAt(n);o6[n]=e,a6[e]=n;}var d6=n=>Je__namespace.default.readdirSync(n,{withFileTypes:!0}).filter(e=>e.isDirectory()).map(e=>Oe.join(n,e.name)),p6=()=>{let n=Oe.resolve("./components"),e=d6(n);return [n,...e]},m6=(n,e)=>p6().map(s=>Oe.resolve(`${s}/${e}/${e}.component.yml`)).find(s=>Je__namespace.default.existsSync(s));function pee(n,e){let{namespace:t}=e.sdcStorybookOptions;return Fg(n,{plugins:[f6__default.default(e.vitePluginTwigDrupalOptions),Xw({...e})],resolve:{alias:[{find:new RegExp(`${t}:(.*)`),replacement:(r,s)=>{let i=m6(t,s);if(!i)throw new Error(`Component ${s} could not be resolved.`);return i}}]}})}var mee=async n=>[...n||[],Zw],gee=n=>`
|
|
499
|
+
<style>
|
|
500
|
+
.visually-hidden {
|
|
501
|
+
position: absolute !important;
|
|
502
|
+
overflow: hidden;
|
|
503
|
+
clip: rect(1px, 1px, 1px, 1px);
|
|
504
|
+
width: 1px;
|
|
505
|
+
height: 1px;
|
|
506
|
+
word-wrap: normal;
|
|
507
|
+
}
|
|
508
|
+
</style>
|
|
509
|
+
<script src="https://cdn.jsdelivr.net/gh/drupal/drupal/core/misc/drupalSettingsLoader.js"></script>
|
|
510
|
+
<script src="https://cdn.jsdelivr.net/gh/drupal/drupal/core/misc/drupal.js"></script>
|
|
511
|
+
<script src="https://cdn.jsdelivr.net/gh/drupal/drupal/core/misc/drupal.init.js"></script>
|
|
512
|
+
<script src="https://unpkg.com/@drupal/once"></script>
|
|
513
|
+
${n}
|
|
514
|
+
`;/*! Bundled license information:
|
|
515
|
+
|
|
516
|
+
rollup/dist/es/shared/parseAst.js:
|
|
517
|
+
(*
|
|
518
|
+
@license
|
|
519
|
+
Rollup.js v4.24.0
|
|
520
|
+
Wed, 02 Oct 2024 09:36:48 GMT - commit d3c000f4fd453e39a354299f0cfaa6831f56d7d8
|
|
521
|
+
|
|
522
|
+
https://github.com/rollup/rollup
|
|
523
|
+
|
|
524
|
+
Released under the MIT License.
|
|
525
|
+
*)
|
|
526
|
+
|
|
527
|
+
rollup/dist/es/parseAst.js:
|
|
528
|
+
(*
|
|
529
|
+
@license
|
|
530
|
+
Rollup.js v4.24.0
|
|
531
|
+
Wed, 02 Oct 2024 09:36:48 GMT - commit d3c000f4fd453e39a354299f0cfaa6831f56d7d8
|
|
532
|
+
|
|
533
|
+
https://github.com/rollup/rollup
|
|
534
|
+
|
|
535
|
+
Released under the MIT License.
|
|
536
|
+
*)
|
|
537
|
+
|
|
538
|
+
vite/dist/node/chunks/dep-BaJt-LTH.js:
|
|
539
|
+
(*! https://mths.be/cssesc v3.0.0 by @mathias *)
|
|
540
|
+
|
|
541
|
+
vite/dist/node/chunks/dep-CDnG8rE7.js:
|
|
542
|
+
(*!
|
|
543
|
+
* is-extglob <https://github.com/jonschlinkert/is-extglob>
|
|
544
|
+
*
|
|
545
|
+
* Copyright (c) 2014-2016, Jon Schlinkert.
|
|
546
|
+
* Licensed under the MIT License.
|
|
547
|
+
*)
|
|
548
|
+
(*!
|
|
549
|
+
* is-glob <https://github.com/jonschlinkert/is-glob>
|
|
550
|
+
*
|
|
551
|
+
* Copyright (c) 2014-2017, Jon Schlinkert.
|
|
552
|
+
* Released under the MIT License.
|
|
553
|
+
*)
|
|
554
|
+
(*!
|
|
555
|
+
* is-number <https://github.com/jonschlinkert/is-number>
|
|
556
|
+
*
|
|
557
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
558
|
+
* Released under the MIT License.
|
|
559
|
+
*)
|
|
560
|
+
(*!
|
|
561
|
+
* to-regex-range <https://github.com/micromatch/to-regex-range>
|
|
562
|
+
*
|
|
563
|
+
* Copyright (c) 2015-present, Jon Schlinkert.
|
|
564
|
+
* Released under the MIT License.
|
|
565
|
+
*)
|
|
566
|
+
(*!
|
|
567
|
+
* fill-range <https://github.com/jonschlinkert/fill-range>
|
|
568
|
+
*
|
|
569
|
+
* Copyright (c) 2014-present, Jon Schlinkert.
|
|
570
|
+
* Licensed under the MIT License.
|
|
571
|
+
*)
|
|
572
|
+
(*! queue-microtask. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
573
|
+
(*! run-parallel. MIT License. Feross Aboukhadijeh <https://feross.org/opensource> *)
|
|
574
|
+
(**
|
|
575
|
+
* Autoload Config for PostCSS
|
|
576
|
+
*
|
|
577
|
+
* @author Michael Ciniawsky @michael-ciniawsky <michael.ciniawsky@gmail.com>
|
|
578
|
+
* @license MIT
|
|
579
|
+
*
|
|
580
|
+
* @module postcss-load-config
|
|
581
|
+
* @version 2.1.0
|
|
582
|
+
*
|
|
583
|
+
* @requires comsiconfig
|
|
584
|
+
* @requires ./options
|
|
585
|
+
* @requires ./plugins
|
|
586
|
+
*)
|
|
587
|
+
(*!
|
|
588
|
+
* encodeurl
|
|
589
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
590
|
+
* MIT Licensed
|
|
591
|
+
*)
|
|
592
|
+
(*!
|
|
593
|
+
* escape-html
|
|
594
|
+
* Copyright(c) 2012-2013 TJ Holowaychuk
|
|
595
|
+
* Copyright(c) 2015 Andreas Lubbe
|
|
596
|
+
* Copyright(c) 2015 Tiancheng "Timothy" Gu
|
|
597
|
+
* MIT Licensed
|
|
598
|
+
*)
|
|
599
|
+
(*!
|
|
600
|
+
* ee-first
|
|
601
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
602
|
+
* MIT Licensed
|
|
603
|
+
*)
|
|
604
|
+
(*!
|
|
605
|
+
* on-finished
|
|
606
|
+
* Copyright(c) 2013 Jonathan Ong
|
|
607
|
+
* Copyright(c) 2014 Douglas Christopher Wilson
|
|
608
|
+
* MIT Licensed
|
|
609
|
+
*)
|
|
610
|
+
(*!
|
|
611
|
+
* parseurl
|
|
612
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
613
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
614
|
+
* MIT Licensed
|
|
615
|
+
*)
|
|
616
|
+
(*!
|
|
617
|
+
* statuses
|
|
618
|
+
* Copyright(c) 2014 Jonathan Ong
|
|
619
|
+
* Copyright(c) 2016 Douglas Christopher Wilson
|
|
620
|
+
* MIT Licensed
|
|
621
|
+
*)
|
|
622
|
+
(*!
|
|
623
|
+
* unpipe
|
|
624
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
625
|
+
* MIT Licensed
|
|
626
|
+
*)
|
|
627
|
+
(*!
|
|
628
|
+
* finalhandler
|
|
629
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
630
|
+
* MIT Licensed
|
|
631
|
+
*)
|
|
632
|
+
(*!
|
|
633
|
+
* connect
|
|
634
|
+
* Copyright(c) 2010 Sencha Inc.
|
|
635
|
+
* Copyright(c) 2011 TJ Holowaychuk
|
|
636
|
+
* Copyright(c) 2015 Douglas Christopher Wilson
|
|
637
|
+
* MIT Licensed
|
|
638
|
+
*)
|
|
639
|
+
(*
|
|
640
|
+
object-assign
|
|
641
|
+
(c) Sindre Sorhus
|
|
642
|
+
@license MIT
|
|
643
|
+
*)
|
|
644
|
+
(*!
|
|
645
|
+
* vary
|
|
646
|
+
* Copyright(c) 2014-2017 Douglas Christopher Wilson
|
|
647
|
+
* MIT Licensed
|
|
648
|
+
*)
|
|
649
|
+
(*!
|
|
650
|
+
* normalize-path <https://github.com/jonschlinkert/normalize-path>
|
|
651
|
+
*
|
|
652
|
+
* Copyright (c) 2014-2018, Jon Schlinkert.
|
|
653
|
+
* Released under the MIT License.
|
|
654
|
+
*)
|
|
655
|
+
(*!
|
|
656
|
+
* etag
|
|
657
|
+
* Copyright(c) 2014-2016 Douglas Christopher Wilson
|
|
658
|
+
* MIT Licensed
|
|
659
|
+
*)
|
|
660
|
+
(*!
|
|
661
|
+
* Array of passes.
|
|
662
|
+
*
|
|
663
|
+
* A `pass` is just a function that is executed on `req, res, options`
|
|
664
|
+
* so that you can easily add new checks while still keeping the base
|
|
665
|
+
* flexible.
|
|
666
|
+
*)
|
|
667
|
+
(*!
|
|
668
|
+
* Array of passes.
|
|
669
|
+
*
|
|
670
|
+
* A `pass` is just a function that is executed on `req, socket, options`
|
|
671
|
+
* so that you can easily add new checks while still keeping the base
|
|
672
|
+
* flexible.
|
|
673
|
+
*)
|
|
674
|
+
(*!
|
|
675
|
+
* Caron dimonio, con occhi di bragia
|
|
676
|
+
* loro accennando, tutte le raccoglie;
|
|
677
|
+
* batte col remo qualunque s’adagia
|
|
678
|
+
*
|
|
679
|
+
* Charon the demon, with the eyes of glede,
|
|
680
|
+
* Beckoning to them, collects them all together,
|
|
681
|
+
* Beats with his oar whoever lags behind
|
|
682
|
+
*
|
|
683
|
+
* Dante - The Divine Comedy (Canto III)
|
|
684
|
+
*)
|
|
685
|
+
*/
|
|
686
|
+
|
|
687
|
+
exports.experimental_indexers = mee;
|
|
688
|
+
exports.previewHead = gee;
|
|
689
|
+
exports.viteFinal = pee;
|
|
690
|
+
//# sourceMappingURL=preset.cjs.map
|
|
691
|
+
//# sourceMappingURL=preset.cjs.map
|