@batijs/core 0.0.282 → 0.0.286
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.d.ts +2 -1
- package/dist/index.js +4 -4
- package/package.json +2 -2
package/dist/index.d.ts
CHANGED
|
@@ -97,6 +97,7 @@ declare function addDependency<T extends PackageJsonDeps, U extends PackageJsonD
|
|
|
97
97
|
devDependencies?: (keyof U["dependencies"] | keyof U["devDependencies"])[];
|
|
98
98
|
dependencies?: (keyof U["dependencies"] | keyof U["devDependencies"])[];
|
|
99
99
|
}): T;
|
|
100
|
+
declare function removeDependency<T extends PackageJsonDeps>(packageJson: T, key: string): T;
|
|
100
101
|
declare function setScripts<T extends PackageJsonScripts>(packageJson: T, scripts: PackageJsonScriptOptions): T;
|
|
101
102
|
|
|
102
103
|
declare function appendToEnv(envContent: string | undefined | null, key: string, value: unknown, comment?: string): string;
|
|
@@ -113,4 +114,4 @@ declare function getVersion(): {
|
|
|
113
114
|
semver: string[];
|
|
114
115
|
};
|
|
115
116
|
|
|
116
|
-
export { type ContentGetter, type FileContext, type PackageJsonDeps, type PackageJsonScriptOption, type PackageJsonScriptOptions, type PackageJsonScripts, Readme, type Transformer, type TransformerProps, type VikeMeta, addDependency, appendToEnv, formatCode, getArgs, getVersion, loadAsJson, loadAsMagicast, loadReadme, loadRelativeFileAsMagicast, loadYaml, markdown, packageManager, parseReadme, setScripts, transformAndFormat, withIcon };
|
|
117
|
+
export { type ContentGetter, type FileContext, type PackageJsonDeps, type PackageJsonScriptOption, type PackageJsonScriptOptions, type PackageJsonScripts, Readme, type Transformer, type TransformerProps, type VikeMeta, addDependency, appendToEnv, formatCode, getArgs, getVersion, loadAsJson, loadAsMagicast, loadReadme, loadRelativeFileAsMagicast, loadYaml, markdown, packageManager, parseReadme, removeDependency, setScripts, transformAndFormat, withIcon };
|
package/dist/index.js
CHANGED
|
@@ -776,7 +776,7 @@ ${n.comment}`:n.comment}this.doc.range[2]=n.offset;break}default:this.errors.pus
|
|
|
776
776
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
777
777
|
`,n)+1}yield*this.pop();break;default:yield*this.pop(),yield*this.step()}}*blockMap(e){let n=e.items[e.items.length-1];switch(this.type){case"newline":if(this.onKeyLine=!1,n.value){let s="end"in n.value?n.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else if(n.sep)n.sep.push(this.sourceToken);else{if(this.atIndentedComment(n.start,e.indent)){let a=e.items[e.items.length-2]?.value?.end;if(Array.isArray(a)){Array.prototype.push.apply(a,n.start),a.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return}if(this.indent>=e.indent){let s=!this.onKeyLine&&this.indent===e.indent,a=s&&(n.sep||n.explicitKey)&&this.type!=="seq-item-ind",l=[];if(a&&n.sep&&!n.value){let p=[];for(let f=0;f<n.sep.length;++f){let d=n.sep[f];switch(d.type){case"newline":p.push(f);break;case"space":break;case"comment":d.indent>e.indent&&(p.length=0);break;default:p.length=0}}p.length>=2&&(l=n.sep.splice(p[1]))}switch(this.type){case"anchor":case"tag":a||n.value?(l.push(this.sourceToken),e.items.push({start:l}),this.onKeyLine=!0):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"explicit-key-ind":!n.sep&&!n.explicitKey?(n.start.push(this.sourceToken),n.explicitKey=!0):a||n.value?(l.push(this.sourceToken),e.items.push({start:l,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(n.explicitKey)if(n.sep)if(n.value)e.items.push({start:[],key:null,sep:[this.sourceToken]});else if(lG(n.sep,"map-value-ind"))this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:l,key:null,sep:[this.sourceToken]}]});else if(hWr(n.key)&&!lG(n.sep,"newline")){let p=Qie(n.start),f=n.key,d=n.sep;d.push(this.sourceToken),delete n.key,delete n.sep,this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:p,key:f,sep:d}]})}else l.length>0?n.sep=n.sep.concat(l,this.sourceToken):n.sep.push(this.sourceToken);else if(lG(n.start,"newline"))Object.assign(n,{key:null,sep:[this.sourceToken]});else{let p=Qie(n.start);this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:p,key:null,sep:[this.sourceToken]}]})}else n.sep?n.value||a?e.items.push({start:l,key:null,sep:[this.sourceToken]}):lG(n.sep,"map-value-ind")?this.stack.push({type:"block-map",offset:this.offset,indent:this.indent,items:[{start:[],key:null,sep:[this.sourceToken]}]}):n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});this.onKeyLine=!0;return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let p=this.flowScalar(this.type);a||n.value?(e.items.push({start:l,key:p,sep:[]}),this.onKeyLine=!0):n.sep?this.stack.push(p):(Object.assign(n,{key:p,sep:[]}),this.onKeyLine=!0);return}default:{let p=this.startBlockValue(e);if(p){s&&p.type!=="block-seq"&&e.items.push({start:l}),this.stack.push(p);return}}}}yield*this.pop(),yield*this.step()}*blockSequence(e){let n=e.items[e.items.length-1];switch(this.type){case"newline":if(n.value){let s="end"in n.value?n.value.end:void 0;(Array.isArray(s)?s[s.length-1]:void 0)?.type==="comment"?s?.push(this.sourceToken):e.items.push({start:[this.sourceToken]})}else n.start.push(this.sourceToken);return;case"space":case"comment":if(n.value)e.items.push({start:[this.sourceToken]});else{if(this.atIndentedComment(n.start,e.indent)){let a=e.items[e.items.length-2]?.value?.end;if(Array.isArray(a)){Array.prototype.push.apply(a,n.start),a.push(this.sourceToken),e.items.pop();return}}n.start.push(this.sourceToken)}return;case"anchor":case"tag":if(n.value||this.indent<=e.indent)break;n.start.push(this.sourceToken);return;case"seq-item-ind":if(this.indent!==e.indent)break;n.value||lG(n.start,"seq-item-ind")?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return}if(this.indent>e.indent){let s=this.startBlockValue(e);if(s){this.stack.push(s);return}}yield*this.pop(),yield*this.step()}*flowCollection(e){let n=e.items[e.items.length-1];if(this.type==="flow-error-end"){let s;do yield*this.pop(),s=this.peek(1);while(s&&s.type==="flow-collection")}else if(e.end.length===0){switch(this.type){case"comma":case"explicit-key-ind":!n||n.sep?e.items.push({start:[this.sourceToken]}):n.start.push(this.sourceToken);return;case"map-value-ind":!n||n.value?e.items.push({start:[],key:null,sep:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):Object.assign(n,{key:null,sep:[this.sourceToken]});return;case"space":case"comment":case"newline":case"anchor":case"tag":!n||n.value?e.items.push({start:[this.sourceToken]}):n.sep?n.sep.push(this.sourceToken):n.start.push(this.sourceToken);return;case"alias":case"scalar":case"single-quoted-scalar":case"double-quoted-scalar":{let a=this.flowScalar(this.type);!n||n.value?e.items.push({start:[],key:a,sep:[]}):n.sep?this.stack.push(a):Object.assign(n,{key:a,sep:[]});return}case"flow-map-end":case"flow-seq-end":e.end.push(this.sourceToken);return}let s=this.startBlockValue(e);s?this.stack.push(s):(yield*this.pop(),yield*this.step())}else{let s=this.peek(2);if(s.type==="block-map"&&(this.type==="map-value-ind"&&s.indent===e.indent||this.type==="newline"&&!s.items[s.items.length-1].sep))yield*this.pop(),yield*this.step();else if(this.type==="map-value-ind"&&s.type!=="flow-collection"){let a=O7e(s),l=Qie(a);mWr(e);let p=e.end.splice(1,e.end.length);p.push(this.sourceToken);let f={type:"block-map",offset:e.offset,indent:e.indent,items:[{start:l,key:e,sep:p}]};this.onKeyLine=!0,this.stack[this.stack.length-1]=f}else yield*this.lineEnd(e)}}flowScalar(e){if(this.onNewLine){let n=this.source.indexOf(`
|
|
778
778
|
`)+1;for(;n!==0;)this.onNewLine(this.offset+n),n=this.source.indexOf(`
|
|
779
|
-
`,n)+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 n=O7e(e),s=Qie(n);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let n=O7e(e),s=Qie(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(s=>s.type==="newline"||s.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())}}};gWr.Parser=fTt});var SWr=pe(Hye=>{"use strict";var yWr=Zvt(),gus=qye(),Gye=$ye(),yus=Xbt(),bus=pTt(),bWr=_Tt();function vWr(t){let e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new bus.LineCounter||null,prettyErrors:e}}function vus(t,e={}){let{lineCounter:n,prettyErrors:s}=vWr(e),a=new bWr.Parser(n?.addNewLine),l=new yWr.Composer(e),p=Array.from(l.compose(a.parse(t)));if(s&&n)for(let f of p)f.errors.forEach(Gye.prettifyError(t,n)),f.warnings.forEach(Gye.prettifyError(t,n));return p.length>0?p:Object.assign([],{empty:!0},l.streamInfo())}function TWr(t,e={}){let{lineCounter:n,prettyErrors:s}=vWr(e),a=new bWr.Parser(n?.addNewLine),l=new yWr.Composer(e),p=null;for(let f of l.compose(a.parse(t),!0,t.length))if(!p)p=f;else if(p.options.logLevel!=="silent"){p.errors.push(new Gye.YAMLParseError(f.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&n&&(p.errors.forEach(Gye.prettifyError(t,n)),p.warnings.forEach(Gye.prettifyError(t,n))),p}function Tus(t,e,n){let s;typeof e=="function"?s=e:n===void 0&&e&&typeof e=="object"&&(n=e);let a=TWr(t,n);if(!a)return null;if(a.warnings.forEach(l=>yus.warn(a.options.logLevel,l)),a.errors.length>0){if(a.options.logLevel!=="silent")throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:s},n))}function Sus(t,e,n){let s=null;if(typeof e=="function"||Array.isArray(e)?s=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){let a=Math.round(n);n=a<1?void 0:a>8?{indent:8}:{indent:a}}if(t===void 0){let{keepUndefined:a}=n??e??{};if(!a)return}return new gus.Document(t,s,n).toString(n)}Hye.parse=Tus;Hye.parseAllDocuments=vus;Hye.parseDocument=TWr;Hye.stringify=Sus});var EWr=pe(Zm=>{"use strict";var xus=Zvt(),Eus=qye(),Cus=Fvt(),dTt=$ye(),Aus=Pye(),cV=Om(),Pus=iV(),wus=Mb(),Dus=aV(),kus=oV(),Nus=I7e(),Ius=lTt(),Fus=pTt(),Ous=_Tt(),L7e=SWr(),xWr=xye();Zm.Composer=xus.Composer;Zm.Document=Eus.Document;Zm.Schema=Cus.Schema;Zm.YAMLError=dTt.YAMLError;Zm.YAMLParseError=dTt.YAMLParseError;Zm.YAMLWarning=dTt.YAMLWarning;Zm.Alias=Aus.Alias;Zm.isAlias=cV.isAlias;Zm.isCollection=cV.isCollection;Zm.isDocument=cV.isDocument;Zm.isMap=cV.isMap;Zm.isNode=cV.isNode;Zm.isPair=cV.isPair;Zm.isScalar=cV.isScalar;Zm.isSeq=cV.isSeq;Zm.Pair=Pus.Pair;Zm.Scalar=wus.Scalar;Zm.YAMLMap=Dus.YAMLMap;Zm.YAMLSeq=kus.YAMLSeq;Zm.CST=Nus;Zm.Lexer=Ius.Lexer;Zm.LineCounter=Fus.LineCounter;Zm.Parser=Ous.Parser;Zm.parse=L7e.parse;Zm.parseAllDocuments=L7e.parseAllDocuments;Zm.parseDocument=L7e.parseDocument;Zm.stringify=L7e.stringify;Zm.visit=xWr.visit;Zm.visitAsync=xWr.visitAsync});var jWr=pe(Zie=>{"use strict";Object.defineProperty(Zie,"__esModule",{value:!0});Zie.sync=Zie.isexe=void 0;var eps=$s("fs"),tps=$s("fs/promises"),rps=async(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return BWr(await(0,tps.stat)(t),e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Zie.isexe=rps;var nps=(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return BWr((0,eps.statSync)(t),e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Zie.sync=nps;var BWr=(t,e)=>t.isFile()&&ips(t,e),ips=(t,e)=>{let n=e.uid??process.getuid?.(),s=e.groups??process.getgroups?.()??[],a=e.gid??process.getgid?.()??s[0];if(n===void 0||a===void 0)throw new Error("cannot get uid or gid");let l=new Set([a,...s]),p=t.mode,f=t.uid,d=t.gid,g=parseInt("100",8),y=parseInt("010",8),T=parseInt("001",8),v=g|y;return!!(p&T||p&y&&l.has(d)||p&g&&f===n||p&v&&n===0)}});var qWr=pe(ese=>{"use strict";Object.defineProperty(ese,"__esModule",{value:!0});ese.sync=ese.isexe=void 0;var sps=$s("fs"),aps=$s("fs/promises"),ops=async(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return UWr(await(0,aps.stat)(t),t,e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};ese.isexe=ops;var cps=(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return UWr((0,sps.statSync)(t),t,e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};ese.sync=cps;var lps=(t,e)=>{let{pathExt:n=process.env.PATHEXT||""}=e,s=n.split(";");if(s.indexOf("")!==-1)return!0;for(let a=0;a<s.length;a++){let l=s[a].toLowerCase(),p=t.substring(t.length-l.length).toLowerCase();if(l&&p===l)return!0}return!1},UWr=(t,e,n)=>t.isFile()&&lps(e,n)});var JWr=pe(VWr=>{"use strict";Object.defineProperty(VWr,"__esModule",{value:!0})});var GWr=pe(jv=>{"use strict";var $Wr=jv&&jv.__createBinding||(Object.create?function(t,e,n,s){s===void 0&&(s=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,a)}:function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]}),ups=jv&&jv.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),WWr=jv&&jv.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&$Wr(e,t,n);return ups(e,t),e},pps=jv&&jv.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&$Wr(e,t,n)};Object.defineProperty(jv,"__esModule",{value:!0});jv.sync=jv.isexe=jv.posix=jv.win32=void 0;var YWr=WWr(jWr());jv.posix=YWr;var zWr=WWr(qWr());jv.win32=zWr;pps(JWr(),jv);var fps=process.env._ISEXE_TEST_PLATFORM_||process.platform,KWr=fps==="win32"?zWr:YWr;jv.isexe=KWr.isexe;jv.sync=KWr.sync});var sYr=pe((A7s,iYr)=>{"use strict";var{isexe:_ps,sync:dps}=GWr(),{join:mps,delimiter:hps,sep:HWr,posix:XWr}=$s("path"),QWr=process.platform==="win32",ZWr=new RegExp(`[${XWr.sep}${HWr===XWr.sep?"":HWr}]`.replace(/(\\)/g,"\\$1")),gps=new RegExp(`^\\.${ZWr.source}`),eYr=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),tYr=(t,{path:e=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:s=hps})=>{let a=t.match(ZWr)?[""]:[...QWr?[process.cwd()]:[],...(e||"").split(s)];if(QWr){let l=n||[".EXE",".CMD",".BAT",".COM"].join(s),p=l.split(s).flatMap(f=>[f,f.toLowerCase()]);return t.includes(".")&&p[0]!==""&&p.unshift(""),{pathEnv:a,pathExt:p,pathExtExe:l}}return{pathEnv:a,pathExt:[""]}},rYr=(t,e)=>{let n=/^".*"$/.test(t)?t.slice(1,-1):t;return(!n&&gps.test(e)?e.slice(0,2):"")+mps(n,e)},nYr=async(t,e={})=>{let{pathEnv:n,pathExt:s,pathExtExe:a}=tYr(t,e),l=[];for(let p of n){let f=rYr(p,t);for(let d of s){let g=f+d;if(await _ps(g,{pathExt:a,ignoreErrors:!0})){if(!e.all)return g;l.push(g)}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw eYr(t)},yps=(t,e={})=>{let{pathEnv:n,pathExt:s,pathExtExe:a}=tYr(t,e),l=[];for(let p of n){let f=rYr(p,t);for(let d of s){let g=f+d;if(dps(g,{pathExt:a,ignoreErrors:!0})){if(!e.all)return g;l.push(g)}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw eYr(t)};iYr.exports=nYr;nYr.sync=yps});var gXe={};XW(gXe,{default:()=>i2n,parsers:()=>JMt});var Wxn=Object.create,mXe=Object.defineProperty,Yxn=Object.getOwnPropertyDescriptor,zxn=Object.getOwnPropertyNames,Kxn=Object.getPrototypeOf,Gxn=Object.prototype.hasOwnProperty,Hxn=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xxn=(t,e)=>{for(var n in e)mXe(t,n,{get:e[n],enumerable:!0})},Qxn=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of zxn(e))!Gxn.call(t,a)&&a!==n&&mXe(t,a,{get:()=>e[a],enumerable:!(s=Yxn(e,a))||s.enumerable});return t},NMt=(t,e,n)=>(n=t!=null?Wxn(Kxn(t)):{},Qxn(e||!t||!t.__esModule?mXe(n,"default",{value:t,enumerable:!0}):n,t)),IMt=Hxn(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function e(z,F){if(z==null)return{};var Q={},me=Object.keys(z),ze,Dt;for(Dt=0;Dt<me.length;Dt++)ze=me[Dt],!(F.indexOf(ze)>=0)&&(Q[ze]=z[ze]);return Q}var n=class{constructor(z,F,Q){this.line=void 0,this.column=void 0,this.index=void 0,this.line=z,this.column=F,this.index=Q}},s=class{constructor(z,F){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=z,this.end=F}};function a(z,F){let{line:Q,column:me,index:ze}=z;return new n(Q,me+F,ze+F)}var l="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",p={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:l},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:l}},f={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},d=z=>z.type==="UpdateExpression"?f.UpdateExpression[`${z.prefix}`]:f[z.type],g={AccessorIsGenerator:({kind:z})=>`A ${z}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:z})=>`Missing initializer in ${z} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:z})=>`\`${z}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:z})=>`'import.${z}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:z,exportName:F})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
779
|
+
`,n)+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 n=O7e(e),s=Qie(n);return s.push(this.sourceToken),{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,explicitKey:!0}]}}case"map-value-ind":{this.onKeyLine=!0;let n=O7e(e),s=Qie(n);return{type:"block-map",offset:this.offset,indent:this.indent,items:[{start:s,key:null,sep:[this.sourceToken]}]}}}return null}atIndentedComment(e,n){return this.type!=="comment"||this.indent<=n?!1:e.every(s=>s.type==="newline"||s.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())}}};gWr.Parser=fTt});var SWr=pe(Hye=>{"use strict";var yWr=Zvt(),gus=qye(),Gye=$ye(),yus=Xbt(),bus=pTt(),bWr=_Tt();function vWr(t){let e=t.prettyErrors!==!1;return{lineCounter:t.lineCounter||e&&new bus.LineCounter||null,prettyErrors:e}}function vus(t,e={}){let{lineCounter:n,prettyErrors:s}=vWr(e),a=new bWr.Parser(n?.addNewLine),l=new yWr.Composer(e),p=Array.from(l.compose(a.parse(t)));if(s&&n)for(let f of p)f.errors.forEach(Gye.prettifyError(t,n)),f.warnings.forEach(Gye.prettifyError(t,n));return p.length>0?p:Object.assign([],{empty:!0},l.streamInfo())}function TWr(t,e={}){let{lineCounter:n,prettyErrors:s}=vWr(e),a=new bWr.Parser(n?.addNewLine),l=new yWr.Composer(e),p=null;for(let f of l.compose(a.parse(t),!0,t.length))if(!p)p=f;else if(p.options.logLevel!=="silent"){p.errors.push(new Gye.YAMLParseError(f.range.slice(0,2),"MULTIPLE_DOCS","Source contains multiple documents; please use YAML.parseAllDocuments()"));break}return s&&n&&(p.errors.forEach(Gye.prettifyError(t,n)),p.warnings.forEach(Gye.prettifyError(t,n))),p}function Tus(t,e,n){let s;typeof e=="function"?s=e:n===void 0&&e&&typeof e=="object"&&(n=e);let a=TWr(t,n);if(!a)return null;if(a.warnings.forEach(l=>yus.warn(a.options.logLevel,l)),a.errors.length>0){if(a.options.logLevel!=="silent")throw a.errors[0];a.errors=[]}return a.toJS(Object.assign({reviver:s},n))}function Sus(t,e,n){let s=null;if(typeof e=="function"||Array.isArray(e)?s=e:n===void 0&&e&&(n=e),typeof n=="string"&&(n=n.length),typeof n=="number"){let a=Math.round(n);n=a<1?void 0:a>8?{indent:8}:{indent:a}}if(t===void 0){let{keepUndefined:a}=n??e??{};if(!a)return}return new gus.Document(t,s,n).toString(n)}Hye.parse=Tus;Hye.parseAllDocuments=vus;Hye.parseDocument=TWr;Hye.stringify=Sus});var EWr=pe(Zm=>{"use strict";var xus=Zvt(),Eus=qye(),Cus=Fvt(),dTt=$ye(),Aus=Pye(),cV=Om(),Pus=iV(),wus=Mb(),Dus=aV(),kus=oV(),Nus=I7e(),Ius=lTt(),Fus=pTt(),Ous=_Tt(),L7e=SWr(),xWr=xye();Zm.Composer=xus.Composer;Zm.Document=Eus.Document;Zm.Schema=Cus.Schema;Zm.YAMLError=dTt.YAMLError;Zm.YAMLParseError=dTt.YAMLParseError;Zm.YAMLWarning=dTt.YAMLWarning;Zm.Alias=Aus.Alias;Zm.isAlias=cV.isAlias;Zm.isCollection=cV.isCollection;Zm.isDocument=cV.isDocument;Zm.isMap=cV.isMap;Zm.isNode=cV.isNode;Zm.isPair=cV.isPair;Zm.isScalar=cV.isScalar;Zm.isSeq=cV.isSeq;Zm.Pair=Pus.Pair;Zm.Scalar=wus.Scalar;Zm.YAMLMap=Dus.YAMLMap;Zm.YAMLSeq=kus.YAMLSeq;Zm.CST=Nus;Zm.Lexer=Ius.Lexer;Zm.LineCounter=Fus.LineCounter;Zm.Parser=Ous.Parser;Zm.parse=L7e.parse;Zm.parseAllDocuments=L7e.parseAllDocuments;Zm.parseDocument=L7e.parseDocument;Zm.stringify=L7e.stringify;Zm.visit=xWr.visit;Zm.visitAsync=xWr.visitAsync});var jWr=pe(Zie=>{"use strict";Object.defineProperty(Zie,"__esModule",{value:!0});Zie.sync=Zie.isexe=void 0;var eps=$s("fs"),tps=$s("fs/promises"),rps=async(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return BWr(await(0,tps.stat)(t),e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Zie.isexe=rps;var nps=(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return BWr((0,eps.statSync)(t),e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};Zie.sync=nps;var BWr=(t,e)=>t.isFile()&&ips(t,e),ips=(t,e)=>{let n=e.uid??process.getuid?.(),s=e.groups??process.getgroups?.()??[],a=e.gid??process.getgid?.()??s[0];if(n===void 0||a===void 0)throw new Error("cannot get uid or gid");let l=new Set([a,...s]),p=t.mode,f=t.uid,d=t.gid,g=parseInt("100",8),y=parseInt("010",8),T=parseInt("001",8),v=g|y;return!!(p&T||p&y&&l.has(d)||p&g&&f===n||p&v&&n===0)}});var qWr=pe(ese=>{"use strict";Object.defineProperty(ese,"__esModule",{value:!0});ese.sync=ese.isexe=void 0;var sps=$s("fs"),aps=$s("fs/promises"),ops=async(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return UWr(await(0,aps.stat)(t),t,e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};ese.isexe=ops;var cps=(t,e={})=>{let{ignoreErrors:n=!1}=e;try{return UWr((0,sps.statSync)(t),t,e)}catch(s){let a=s;if(n||a.code==="EACCES")return!1;throw a}};ese.sync=cps;var lps=(t,e)=>{let{pathExt:n=process.env.PATHEXT||""}=e,s=n.split(";");if(s.indexOf("")!==-1)return!0;for(let a=0;a<s.length;a++){let l=s[a].toLowerCase(),p=t.substring(t.length-l.length).toLowerCase();if(l&&p===l)return!0}return!1},UWr=(t,e,n)=>t.isFile()&&lps(e,n)});var JWr=pe(VWr=>{"use strict";Object.defineProperty(VWr,"__esModule",{value:!0})});var GWr=pe(jv=>{"use strict";var $Wr=jv&&jv.__createBinding||(Object.create?function(t,e,n,s){s===void 0&&(s=n);var a=Object.getOwnPropertyDescriptor(e,n);(!a||("get"in a?!e.__esModule:a.writable||a.configurable))&&(a={enumerable:!0,get:function(){return e[n]}}),Object.defineProperty(t,s,a)}:function(t,e,n,s){s===void 0&&(s=n),t[s]=e[n]}),ups=jv&&jv.__setModuleDefault||(Object.create?function(t,e){Object.defineProperty(t,"default",{enumerable:!0,value:e})}:function(t,e){t.default=e}),WWr=jv&&jv.__importStar||function(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var n in t)n!=="default"&&Object.prototype.hasOwnProperty.call(t,n)&&$Wr(e,t,n);return ups(e,t),e},pps=jv&&jv.__exportStar||function(t,e){for(var n in t)n!=="default"&&!Object.prototype.hasOwnProperty.call(e,n)&&$Wr(e,t,n)};Object.defineProperty(jv,"__esModule",{value:!0});jv.sync=jv.isexe=jv.posix=jv.win32=void 0;var YWr=WWr(jWr());jv.posix=YWr;var zWr=WWr(qWr());jv.win32=zWr;pps(JWr(),jv);var fps=process.env._ISEXE_TEST_PLATFORM_||process.platform,KWr=fps==="win32"?zWr:YWr;jv.isexe=KWr.isexe;jv.sync=KWr.sync});var sYr=pe((P7s,iYr)=>{"use strict";var{isexe:_ps,sync:dps}=GWr(),{join:mps,delimiter:hps,sep:HWr,posix:XWr}=$s("path"),QWr=process.platform==="win32",ZWr=new RegExp(`[${XWr.sep}${HWr===XWr.sep?"":HWr}]`.replace(/(\\)/g,"\\$1")),gps=new RegExp(`^\\.${ZWr.source}`),eYr=t=>Object.assign(new Error(`not found: ${t}`),{code:"ENOENT"}),tYr=(t,{path:e=process.env.PATH,pathExt:n=process.env.PATHEXT,delimiter:s=hps})=>{let a=t.match(ZWr)?[""]:[...QWr?[process.cwd()]:[],...(e||"").split(s)];if(QWr){let l=n||[".EXE",".CMD",".BAT",".COM"].join(s),p=l.split(s).flatMap(f=>[f,f.toLowerCase()]);return t.includes(".")&&p[0]!==""&&p.unshift(""),{pathEnv:a,pathExt:p,pathExtExe:l}}return{pathEnv:a,pathExt:[""]}},rYr=(t,e)=>{let n=/^".*"$/.test(t)?t.slice(1,-1):t;return(!n&&gps.test(e)?e.slice(0,2):"")+mps(n,e)},nYr=async(t,e={})=>{let{pathEnv:n,pathExt:s,pathExtExe:a}=tYr(t,e),l=[];for(let p of n){let f=rYr(p,t);for(let d of s){let g=f+d;if(await _ps(g,{pathExt:a,ignoreErrors:!0})){if(!e.all)return g;l.push(g)}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw eYr(t)},yps=(t,e={})=>{let{pathEnv:n,pathExt:s,pathExtExe:a}=tYr(t,e),l=[];for(let p of n){let f=rYr(p,t);for(let d of s){let g=f+d;if(dps(g,{pathExt:a,ignoreErrors:!0})){if(!e.all)return g;l.push(g)}}}if(e.all&&l.length)return l;if(e.nothrow)return null;throw eYr(t)};iYr.exports=nYr;nYr.sync=yps});var gXe={};XW(gXe,{default:()=>i2n,parsers:()=>JMt});var Wxn=Object.create,mXe=Object.defineProperty,Yxn=Object.getOwnPropertyDescriptor,zxn=Object.getOwnPropertyNames,Kxn=Object.getPrototypeOf,Gxn=Object.prototype.hasOwnProperty,Hxn=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Xxn=(t,e)=>{for(var n in e)mXe(t,n,{get:e[n],enumerable:!0})},Qxn=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let a of zxn(e))!Gxn.call(t,a)&&a!==n&&mXe(t,a,{get:()=>e[a],enumerable:!(s=Yxn(e,a))||s.enumerable});return t},NMt=(t,e,n)=>(n=t!=null?Wxn(Kxn(t)):{},Qxn(e||!t||!t.__esModule?mXe(n,"default",{value:t,enumerable:!0}):n,t)),IMt=Hxn(t=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});function e(z,F){if(z==null)return{};var Q={},me=Object.keys(z),ze,Dt;for(Dt=0;Dt<me.length;Dt++)ze=me[Dt],!(F.indexOf(ze)>=0)&&(Q[ze]=z[ze]);return Q}var n=class{constructor(z,F,Q){this.line=void 0,this.column=void 0,this.index=void 0,this.line=z,this.column=F,this.index=Q}},s=class{constructor(z,F){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=z,this.end=F}};function a(z,F){let{line:Q,column:me,index:ze}=z;return new n(Q,me+F,ze+F)}var l="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",p={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:l},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:l}},f={ArrayPattern:"array destructuring pattern",AssignmentExpression:"assignment expression",AssignmentPattern:"assignment expression",ArrowFunctionExpression:"arrow function expression",ConditionalExpression:"conditional expression",CatchClause:"catch clause",ForOfStatement:"for-of statement",ForInStatement:"for-in statement",ForStatement:"for-loop",FormalParameters:"function parameter list",Identifier:"identifier",ImportSpecifier:"import specifier",ImportDefaultSpecifier:"import default specifier",ImportNamespaceSpecifier:"import namespace specifier",ObjectPattern:"object destructuring pattern",ParenthesizedExpression:"parenthesized expression",RestElement:"rest element",UpdateExpression:{true:"prefix operation",false:"postfix operation"},VariableDeclarator:"variable declaration",YieldExpression:"yield expression"},d=z=>z.type==="UpdateExpression"?f.UpdateExpression[`${z.prefix}`]:f[z.type],g={AccessorIsGenerator:({kind:z})=>`A ${z}ter cannot be a generator.`,ArgumentsInClass:"'arguments' is only allowed in functions and class methods.",AsyncFunctionInSingleStatementContext:"Async functions can only be declared at the top level or inside a block.",AwaitBindingIdentifier:"Can not use 'await' as identifier inside an async function.",AwaitBindingIdentifierInStaticBlock:"Can not use 'await' as identifier inside a static block.",AwaitExpressionFormalParameter:"'await' is not allowed in async function parameters.",AwaitUsingNotInAsyncContext:"'await using' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncContext:"'await' is only allowed within async functions and at the top levels of modules.",AwaitNotInAsyncFunction:"'await' is only allowed within async functions.",BadGetterArity:"A 'get' accessor must not have any formal parameters.",BadSetterArity:"A 'set' accessor must have exactly one formal parameter.",BadSetterRestParameter:"A 'set' accessor function argument must not be a rest parameter.",ConstructorClassField:"Classes may not have a field named 'constructor'.",ConstructorClassPrivateField:"Classes may not have a private field named '#constructor'.",ConstructorIsAccessor:"Class constructor may not be an accessor.",ConstructorIsAsync:"Constructor can't be an async function.",ConstructorIsGenerator:"Constructor can't be a generator.",DeclarationMissingInitializer:({kind:z})=>`Missing initializer in ${z} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:z})=>`\`${z}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",DynamicImportPhaseRequiresImportExpressions:({phase:z})=>`'import.${z}(...)' can only be parsed when using the 'createImportExpressions' option.`,ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:z,exportName:F})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
780
780
|
- Did you mean \`export { '${z}' as '${F}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:z})=>`'${z==="ForInStatement"?"for-in":"for-of"}' loop variable declaration may not have an initializer.`,ForInUsing:"For-in loop may not start with 'using' declaration.",ForOfAsync:"The left-hand side of a for-of loop may not be 'async'.",ForOfLet:"The left-hand side of a for-of loop may not start with 'let'.",GeneratorInSingleStatementContext:"Generators can only be declared at the top level or inside a block.",IllegalBreakContinue:({type:z})=>`Unsyntactic ${z==="BreakStatement"?"break":"continue"}.`,IllegalLanguageModeDirective:"Illegal 'use strict' directive in function with non-simple parameter list.",IllegalReturn:"'return' outside of function.",ImportAttributesUseAssert:"The `assert` keyword in import attributes is deprecated and it has been replaced by the `with` keyword. You can enable the `deprecatedAssertSyntax: true` option in the import attributes plugin to suppress this error.",ImportBindingIsString:({importName:z})=>`A string literal cannot be used as an imported binding.
|
|
781
781
|
- Did you mean \`import { "${z}" as foo }\`?`,ImportCallArgumentTrailingComma:"Trailing comma is disallowed inside import(...) arguments.",ImportCallArity:({maxArgumentCount:z})=>`\`import()\` requires exactly ${z===1?"one argument":"one or two arguments"}.`,ImportCallNotNewExpression:"Cannot use new with import(...).",ImportCallSpreadArgument:"`...` is not allowed in `import()`.",ImportJSONBindingNotDefault:"A JSON module can only be imported with `default`.",ImportReflectionHasAssertion:"`import module x` cannot have assertions.",ImportReflectionNotBinding:'Only `import module x from "./module"` is valid.',IncompatibleRegExpUVFlags:"The 'u' and 'v' regular expression flags cannot be enabled at the same time.",InvalidBigIntLiteral:"Invalid BigIntLiteral.",InvalidCodePoint:"Code point out of bounds.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:z})=>`Expected number in radix ${z}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:z})=>`Escape sequence in keyword ${z}.`,InvalidIdentifier:({identifierName:z})=>`Invalid identifier ${z}.`,InvalidLhs:({ancestor:z})=>`Invalid left-hand side in ${d(z)}.`,InvalidLhsBinding:({ancestor:z})=>`Binding invalid left-hand side in ${d(z)}.`,InvalidLhsOptionalChaining:({ancestor:z})=>`Invalid optional chaining in the left-hand side of ${d(z)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:z})=>`Unexpected character '${z}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:z})=>`Private name #${z} is not defined.`,InvalidPropertyBindingPattern:"Binding member expression.",InvalidRecordProperty:"Only properties and spread elements are allowed in record definitions.",InvalidRestAssignmentPattern:"Invalid rest operator's argument.",LabelRedeclaration:({labelName:z})=>`Label '${z}' is already declared.`,LetInLexicalBinding:"'let' is disallowed as a lexically bound name.",LineTerminatorBeforeArrow:"No line break is allowed before '=>'.",MalformedRegExpFlags:"Invalid regular expression flag.",MissingClassName:"A class name is required.",MissingEqInAssignment:"Only '=' operator can be used for specifying default value.",MissingSemicolon:"Missing semicolon.",MissingPlugin:({missingPlugin:z})=>`This experimental syntax requires enabling the parser plugin: ${z.map(F=>JSON.stringify(F)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:z})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${z.map(F=>JSON.stringify(F)).join(", ")}.`,MissingUnicodeEscape:"Expecting Unicode escape sequence \\uXXXX.",MixingCoalesceWithLogical:"Nullish coalescing operator(??) requires parens when mixing with logical operators.",ModuleAttributeDifferentFromType:"The only accepted module attribute is `type`.",ModuleAttributeInvalidValue:"Only string literals are allowed as module attribute values.",ModuleAttributesWithDuplicateKeys:({key:z})=>`Duplicate key "${z}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:z})=>`An export name cannot include a lone surrogate, found '\\u${z.toString(16)}'.`,ModuleExportUndefined:({localName:z})=>`Export '${z}' is not defined.`,MultipleDefaultsInSwitch:"Multiple default clauses.",NewlineAfterThrow:"Illegal newline after throw.",NoCatchOrFinally:"Missing catch or finally clause.",NumberIdentifier:"Identifier directly after number.",NumericSeparatorInEscapeSequence:"Numeric separators are not allowed inside unicode escape sequences or hex escape sequences.",ObsoleteAwaitStar:"'await*' has been removed from the async functions proposal. Use Promise.all() instead.",OptionalChainingNoNew:"Constructors in/after an Optional Chain are not allowed.",OptionalChainingNoTemplate:"Tagged Template Literals are not allowed in optionalChain.",OverrideOnConstructor:"'override' modifier cannot appear on a constructor declaration.",ParamDupe:"Argument name clash.",PatternHasAccessor:"Object pattern can't contain getter or setter.",PatternHasMethod:"Object pattern can't contain methods.",PrivateInExpectedIn:({identifierName:z})=>`Private names are only allowed in property accesses (\`obj.#${z}\`) or in \`in\` expressions (\`#${z} in obj\`).`,PrivateNameRedeclaration:({identifierName:z})=>`Duplicate private name #${z}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:z})=>`Unexpected keyword '${z}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:z})=>`Unexpected reserved word '${z}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:z,unexpected:F})=>`Unexpected token${F?` '${F}'.`:""}${z?`, expected "${z}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script`.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:z,onlyValidPropertyName:F})=>`The only valid meta property for ${z} is ${z}.${F}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:z})=>`Identifier '${z}' has already been declared.`,YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},y={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:z})=>`Assigning to '${z}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:z})=>`Binding '${z}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},T=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),v={PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:z})=>`Invalid topic token ${z}. In order to use ${z} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${z}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:z})=>`Hack-style pipe body cannot be an unparenthesized ${d({type:z})}; please wrap it in parentheses.`,PipelineBodyNoArrow:'Unexpected arrow "=>" after pipeline body; arrow function in pipeline body must be parenthesized.',PipelineBodySequenceExpression:"Pipeline body may not be a comma-separated sequence expression.",PipelineHeadSequenceExpression:"Pipeline head should not be a comma-separated sequence expression.",PipelineTopicUnused:"Pipeline is in topic style but does not use topic reference.",PrimaryTopicNotAllowed:"Topic reference was used in a lexical context without topic binding.",PrimaryTopicRequiresSmartPipeline:'Topic reference is used, but the pipelineOperator plugin was not passed a "proposal": "hack" or "smart" option.'},x=["toMessage"],A=["message"];function w(z,F,Q){Object.defineProperty(z,F,{enumerable:!1,configurable:!0,value:Q})}function O(z){let{toMessage:F}=z,Q=e(z,x);return function me(ze,Dt){let lr=new SyntaxError;return Object.assign(lr,Q,{loc:ze,pos:ze.index}),"missingPlugin"in Dt&&Object.assign(lr,{missingPlugin:Dt.missingPlugin}),w(lr,"clone",function(Vr={}){var sn;let{line:en,column:Da,index:Ko}=(sn=Vr.loc)!=null?sn:ze;return me(new n(en,Da,Ko),Object.assign({},Dt,Vr.details))}),w(lr,"details",Dt),Object.defineProperty(lr,"message",{configurable:!0,get(){let Vr=`${F(Dt)} (${ze.line}:${ze.column})`;return this.message=Vr,Vr},set(Vr){Object.defineProperty(this,"message",{value:Vr,writable:!0})}}),lr}}function M(z,F){if(Array.isArray(z))return me=>M(me,z[0]);let Q={};for(let me of Object.keys(z)){let ze=z[me],Dt=typeof ze=="string"?{message:()=>ze}:typeof ze=="function"?{message:ze}:ze,{message:lr}=Dt,Vr=e(Dt,A),sn=typeof lr=="string"?()=>lr:lr;Q[me]=O(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:me,toMessage:sn},F?{syntaxPlugin:F}:{},Vr))}return Q}var B=Object.assign({},M(p),M(g),M(y),M`pipelineOperator`(v)),{defineProperty:$}=Object,Y=(z,F)=>{z&&$(z,F,{enumerable:!1,value:z[F]})};function G(z){return Y(z.loc.start,"index"),Y(z.loc.end,"index"),z}var re=z=>class extends z{parse(){let F=G(super.parse());return this.options.tokens&&(F.tokens=F.tokens.map(G)),F}parseRegExpLiteral({pattern:F,flags:Q}){let me=null;try{me=new RegExp(F,Q)}catch{}let ze=this.estreeParseLiteral(me);return ze.regex={pattern:F,flags:Q},ze}parseBigIntLiteral(F){let Q;try{Q=BigInt(F)}catch{Q=null}let me=this.estreeParseLiteral(Q);return me.bigint=String(me.value||F),me}parseDecimalLiteral(F){let Q=this.estreeParseLiteral(null);return Q.decimal=String(Q.value||F),Q}estreeParseLiteral(F){return this.parseLiteral(F,"Literal")}parseStringLiteral(F){return this.estreeParseLiteral(F)}parseNumericLiteral(F){return this.estreeParseLiteral(F)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(F){return this.estreeParseLiteral(F)}directiveToStmt(F){let Q=F.value;delete F.value,Q.type="Literal",Q.raw=Q.extra.raw,Q.value=Q.extra.expressionValue;let me=F;return me.type="ExpressionStatement",me.expression=Q,me.directive=Q.extra.rawValue,delete Q.extra,me}initFunction(F,Q){super.initFunction(F,Q),F.expression=!1}checkDeclaration(F){F!=null&&this.isObjectProperty(F)?this.checkDeclaration(F.value):super.checkDeclaration(F)}getObjectOrClassMethodParams(F){return F.value.params}isValidDirective(F){var Q;return F.type==="ExpressionStatement"&&F.expression.type==="Literal"&&typeof F.expression.value=="string"&&!((Q=F.expression.extra)!=null&&Q.parenthesized)}parseBlockBody(F,Q,me,ze,Dt){super.parseBlockBody(F,Q,me,ze,Dt);let lr=F.directives.map(Vr=>this.directiveToStmt(Vr));F.body=lr.concat(F.body),delete F.directives}pushClassMethod(F,Q,me,ze,Dt,lr){this.parseMethod(Q,me,ze,Dt,lr,"ClassMethod",!0),Q.typeParameters&&(Q.value.typeParameters=Q.typeParameters,delete Q.typeParameters),F.body.push(Q)}parsePrivateName(){let F=super.parsePrivateName();return this.getPluginOption("estree","classFeatures")?this.convertPrivateNameToPrivateIdentifier(F):F}convertPrivateNameToPrivateIdentifier(F){let Q=super.getPrivateNameSV(F);return F=F,delete F.id,F.name=Q,F.type="PrivateIdentifier",F}isPrivateName(F){return this.getPluginOption("estree","classFeatures")?F.type==="PrivateIdentifier":super.isPrivateName(F)}getPrivateNameSV(F){return this.getPluginOption("estree","classFeatures")?F.name:super.getPrivateNameSV(F)}parseLiteral(F,Q){let me=super.parseLiteral(F,Q);return me.raw=me.extra.raw,delete me.extra,me}parseFunctionBody(F,Q,me=!1){super.parseFunctionBody(F,Q,me),F.expression=F.body.type!=="BlockStatement"}parseMethod(F,Q,me,ze,Dt,lr,Vr=!1){let sn=this.startNode();return sn.kind=F.kind,sn=super.parseMethod(sn,Q,me,ze,Dt,lr,Vr),sn.type="FunctionExpression",delete sn.kind,F.value=sn,lr==="ClassPrivateMethod"&&(F.computed=!1),this.finishNode(F,"MethodDefinition")}nameIsConstructor(F){return F.type==="Literal"?F.value==="constructor":super.nameIsConstructor(F)}parseClassProperty(...F){let Q=super.parseClassProperty(...F);return this.getPluginOption("estree","classFeatures")&&(Q.type="PropertyDefinition"),Q}parseClassPrivateProperty(...F){let Q=super.parseClassPrivateProperty(...F);return this.getPluginOption("estree","classFeatures")&&(Q.type="PropertyDefinition",Q.computed=!1),Q}parseObjectMethod(F,Q,me,ze,Dt){let lr=super.parseObjectMethod(F,Q,me,ze,Dt);return lr&&(lr.type="Property",lr.kind==="method"&&(lr.kind="init"),lr.shorthand=!1),lr}parseObjectProperty(F,Q,me,ze){let Dt=super.parseObjectProperty(F,Q,me,ze);return Dt&&(Dt.kind="init",Dt.type="Property"),Dt}isValidLVal(F,Q,me){return F==="Property"?"value":super.isValidLVal(F,Q,me)}isAssignable(F,Q){return F!=null&&this.isObjectProperty(F)?this.isAssignable(F.value,Q):super.isAssignable(F,Q)}toAssignable(F,Q=!1){if(F!=null&&this.isObjectProperty(F)){let{key:me,value:ze}=F;this.isPrivateName(me)&&this.classScope.usePrivateName(this.getPrivateNameSV(me),me.loc.start),this.toAssignable(ze,Q)}else super.toAssignable(F,Q)}toAssignableObjectExpressionProp(F,Q,me){F.type==="Property"&&(F.kind==="get"||F.kind==="set")?this.raise(B.PatternHasAccessor,F.key):F.type==="Property"&&F.method?this.raise(B.PatternHasMethod,F.key):super.toAssignableObjectExpressionProp(F,Q,me)}finishCallExpression(F,Q){let me=super.finishCallExpression(F,Q);if(me.callee.type==="Import"){if(me.type="ImportExpression",me.source=me.arguments[0],this.hasPlugin("importAttributes")||this.hasPlugin("importAssertions")){var ze,Dt;me.options=(ze=me.arguments[1])!=null?ze:null,me.attributes=(Dt=me.arguments[1])!=null?Dt:null}delete me.arguments,delete me.callee}return me}toReferencedArguments(F){F.type!=="ImportExpression"&&super.toReferencedArguments(F)}parseExport(F,Q){let me=this.state.lastTokStartLoc,ze=super.parseExport(F,Q);switch(ze.type){case"ExportAllDeclaration":ze.exported=null;break;case"ExportNamedDeclaration":ze.specifiers.length===1&&ze.specifiers[0].type==="ExportNamespaceSpecifier"&&(ze.type="ExportAllDeclaration",ze.exported=ze.specifiers[0].exported,delete ze.specifiers);case"ExportDefaultDeclaration":{var Dt;let{declaration:lr}=ze;lr?.type==="ClassDeclaration"&&((Dt=lr.decorators)==null?void 0:Dt.length)>0&&lr.start===ze.start&&this.resetStartLocation(ze,me)}break}return ze}parseSubscript(F,Q,me,ze){let Dt=super.parseSubscript(F,Q,me,ze);if(ze.optionalChainMember){if((Dt.type==="OptionalMemberExpression"||Dt.type==="OptionalCallExpression")&&(Dt.type=Dt.type.substring(8)),ze.stop){let lr=this.startNodeAtNode(Dt);return lr.expression=Dt,this.finishNode(lr,"ChainExpression")}}else(Dt.type==="MemberExpression"||Dt.type==="CallExpression")&&(Dt.optional=!1);return Dt}isOptionalMemberExpression(F){return F.type==="ChainExpression"?F.expression.type==="MemberExpression":super.isOptionalMemberExpression(F)}hasPropertyAsPrivateName(F){return F.type==="ChainExpression"&&(F=F.expression),super.hasPropertyAsPrivateName(F)}isObjectProperty(F){return F.type==="Property"&&F.kind==="init"&&!F.method}isObjectMethod(F){return F.type==="Property"&&(F.method||F.kind==="get"||F.kind==="set")}finishNodeAt(F,Q,me){return G(super.finishNodeAt(F,Q,me))}resetStartLocation(F,Q){super.resetStartLocation(F,Q),G(F)}resetEndLocation(F,Q=this.state.lastTokEndLoc){super.resetEndLocation(F,Q),G(F)}},ce=class{constructor(z,F){this.token=void 0,this.preserveSpace=void 0,this.token=z,this.preserveSpace=!!F}},he={brace:new ce("{"),j_oTag:new ce("<tag"),j_cTag:new ce("</tag"),j_expr:new ce("<tag>...</tag>",!0)};he.template=new ce("`",!0);var Ne=!0,je=!0,Oe=!0,Le=!0,at=!0,De=!0,Ke=class{constructor(z,F={}){this.label=void 0,this.keyword=void 0,this.beforeExpr=void 0,this.startsExpr=void 0,this.rightAssociative=void 0,this.isLoop=void 0,this.isAssign=void 0,this.prefix=void 0,this.postfix=void 0,this.binop=void 0,this.label=z,this.keyword=F.keyword,this.beforeExpr=!!F.beforeExpr,this.startsExpr=!!F.startsExpr,this.rightAssociative=!!F.rightAssociative,this.isLoop=!!F.isLoop,this.isAssign=!!F.isAssign,this.prefix=!!F.prefix,this.postfix=!!F.postfix,this.binop=F.binop!=null?F.binop:null,this.updateContext=null}},ht=new Map;function qe(z,F={}){F.keyword=z;let Q=Jr(z,F);return ht.set(z,Q),Q}function Yt(z,F){return Jr(z,{beforeExpr:Ne,binop:F})}var Ar=-1,Qt=[],Cr=[],$n=[],zi=[],Cs=[],Ha=[];function Jr(z,F={}){var Q,me,ze,Dt;return++Ar,Cr.push(z),$n.push((Q=F.binop)!=null?Q:-1),zi.push((me=F.beforeExpr)!=null?me:!1),Cs.push((ze=F.startsExpr)!=null?ze:!1),Ha.push((Dt=F.prefix)!=null?Dt:!1),Qt.push(new Ke(z,F)),Ar}function zn(z,F={}){var Q,me,ze,Dt;return++Ar,ht.set(z,Ar),Cr.push(z),$n.push((Q=F.binop)!=null?Q:-1),zi.push((me=F.beforeExpr)!=null?me:!1),Cs.push((ze=F.startsExpr)!=null?ze:!1),Ha.push((Dt=F.prefix)!=null?Dt:!1),Qt.push(new Ke("name",F)),Ar}var Ei={bracketL:Jr("[",{beforeExpr:Ne,startsExpr:je}),bracketHashL:Jr("#[",{beforeExpr:Ne,startsExpr:je}),bracketBarL:Jr("[|",{beforeExpr:Ne,startsExpr:je}),bracketR:Jr("]"),bracketBarR:Jr("|]"),braceL:Jr("{",{beforeExpr:Ne,startsExpr:je}),braceBarL:Jr("{|",{beforeExpr:Ne,startsExpr:je}),braceHashL:Jr("#{",{beforeExpr:Ne,startsExpr:je}),braceR:Jr("}"),braceBarR:Jr("|}"),parenL:Jr("(",{beforeExpr:Ne,startsExpr:je}),parenR:Jr(")"),comma:Jr(",",{beforeExpr:Ne}),semi:Jr(";",{beforeExpr:Ne}),colon:Jr(":",{beforeExpr:Ne}),doubleColon:Jr("::",{beforeExpr:Ne}),dot:Jr("."),question:Jr("?",{beforeExpr:Ne}),questionDot:Jr("?."),arrow:Jr("=>",{beforeExpr:Ne}),template:Jr("template"),ellipsis:Jr("...",{beforeExpr:Ne}),backQuote:Jr("`",{startsExpr:je}),dollarBraceL:Jr("${",{beforeExpr:Ne,startsExpr:je}),templateTail:Jr("...`",{startsExpr:je}),templateNonTail:Jr("...${",{beforeExpr:Ne,startsExpr:je}),at:Jr("@"),hash:Jr("#",{startsExpr:je}),interpreterDirective:Jr("#!..."),eq:Jr("=",{beforeExpr:Ne,isAssign:Le}),assign:Jr("_=",{beforeExpr:Ne,isAssign:Le}),slashAssign:Jr("_=",{beforeExpr:Ne,isAssign:Le}),xorAssign:Jr("_=",{beforeExpr:Ne,isAssign:Le}),moduloAssign:Jr("_=",{beforeExpr:Ne,isAssign:Le}),incDec:Jr("++/--",{prefix:at,postfix:De,startsExpr:je}),bang:Jr("!",{beforeExpr:Ne,prefix:at,startsExpr:je}),tilde:Jr("~",{beforeExpr:Ne,prefix:at,startsExpr:je}),doubleCaret:Jr("^^",{startsExpr:je}),doubleAt:Jr("@@",{startsExpr:je}),pipeline:Yt("|>",0),nullishCoalescing:Yt("??",1),logicalOR:Yt("||",1),logicalAND:Yt("&&",2),bitwiseOR:Yt("|",3),bitwiseXOR:Yt("^",4),bitwiseAND:Yt("&",5),equality:Yt("==/!=/===/!==",6),lt:Yt("</>/<=/>=",7),gt:Yt("</>/<=/>=",7),relational:Yt("</>/<=/>=",7),bitShift:Yt("<</>>/>>>",8),bitShiftL:Yt("<</>>/>>>",8),bitShiftR:Yt("<</>>/>>>",8),plusMin:Jr("+/-",{beforeExpr:Ne,binop:9,prefix:at,startsExpr:je}),modulo:Jr("%",{binop:10,startsExpr:je}),star:Jr("*",{binop:10}),slash:Yt("/",10),exponent:Jr("**",{beforeExpr:Ne,binop:11,rightAssociative:!0}),_in:qe("in",{beforeExpr:Ne,binop:7}),_instanceof:qe("instanceof",{beforeExpr:Ne,binop:7}),_break:qe("break"),_case:qe("case",{beforeExpr:Ne}),_catch:qe("catch"),_continue:qe("continue"),_debugger:qe("debugger"),_default:qe("default",{beforeExpr:Ne}),_else:qe("else",{beforeExpr:Ne}),_finally:qe("finally"),_function:qe("function",{startsExpr:je}),_if:qe("if"),_return:qe("return",{beforeExpr:Ne}),_switch:qe("switch"),_throw:qe("throw",{beforeExpr:Ne,prefix:at,startsExpr:je}),_try:qe("try"),_var:qe("var"),_const:qe("const"),_with:qe("with"),_new:qe("new",{beforeExpr:Ne,startsExpr:je}),_this:qe("this",{startsExpr:je}),_super:qe("super",{startsExpr:je}),_class:qe("class",{startsExpr:je}),_extends:qe("extends",{beforeExpr:Ne}),_export:qe("export"),_import:qe("import",{startsExpr:je}),_null:qe("null",{startsExpr:je}),_true:qe("true",{startsExpr:je}),_false:qe("false",{startsExpr:je}),_typeof:qe("typeof",{beforeExpr:Ne,prefix:at,startsExpr:je}),_void:qe("void",{beforeExpr:Ne,prefix:at,startsExpr:je}),_delete:qe("delete",{beforeExpr:Ne,prefix:at,startsExpr:je}),_do:qe("do",{isLoop:Oe,beforeExpr:Ne}),_for:qe("for",{isLoop:Oe}),_while:qe("while",{isLoop:Oe}),_as:zn("as",{startsExpr:je}),_assert:zn("assert",{startsExpr:je}),_async:zn("async",{startsExpr:je}),_await:zn("await",{startsExpr:je}),_defer:zn("defer",{startsExpr:je}),_from:zn("from",{startsExpr:je}),_get:zn("get",{startsExpr:je}),_let:zn("let",{startsExpr:je}),_meta:zn("meta",{startsExpr:je}),_of:zn("of",{startsExpr:je}),_sent:zn("sent",{startsExpr:je}),_set:zn("set",{startsExpr:je}),_source:zn("source",{startsExpr:je}),_static:zn("static",{startsExpr:je}),_using:zn("using",{startsExpr:je}),_yield:zn("yield",{startsExpr:je}),_asserts:zn("asserts",{startsExpr:je}),_checks:zn("checks",{startsExpr:je}),_exports:zn("exports",{startsExpr:je}),_global:zn("global",{startsExpr:je}),_implements:zn("implements",{startsExpr:je}),_intrinsic:zn("intrinsic",{startsExpr:je}),_infer:zn("infer",{startsExpr:je}),_is:zn("is",{startsExpr:je}),_mixins:zn("mixins",{startsExpr:je}),_proto:zn("proto",{startsExpr:je}),_require:zn("require",{startsExpr:je}),_satisfies:zn("satisfies",{startsExpr:je}),_keyof:zn("keyof",{startsExpr:je}),_readonly:zn("readonly",{startsExpr:je}),_unique:zn("unique",{startsExpr:je}),_abstract:zn("abstract",{startsExpr:je}),_declare:zn("declare",{startsExpr:je}),_enum:zn("enum",{startsExpr:je}),_module:zn("module",{startsExpr:je}),_namespace:zn("namespace",{startsExpr:je}),_interface:zn("interface",{startsExpr:je}),_type:zn("type",{startsExpr:je}),_opaque:zn("opaque",{startsExpr:je}),name:Jr("name",{startsExpr:je}),string:Jr("string",{startsExpr:je}),num:Jr("num",{startsExpr:je}),bigint:Jr("bigint",{startsExpr:je}),decimal:Jr("decimal",{startsExpr:je}),regexp:Jr("regexp",{startsExpr:je}),privateName:Jr("#name",{startsExpr:je}),eof:Jr("eof"),jsxName:Jr("jsxName"),jsxText:Jr("jsxText",{beforeExpr:!0}),jsxTagStart:Jr("jsxTagStart",{startsExpr:!0}),jsxTagEnd:Jr("jsxTagEnd"),placeholder:Jr("%%",{startsExpr:!0})};function Qr(z){return z>=93&&z<=132}function ea(z){return z<=92}function Li(z){return z>=58&&z<=132}function Sa(z){return z>=58&&z<=136}function Gt(z){return zi[z]}function Io(z){return Cs[z]}function hs(z){return z>=29&&z<=33}function Kl(z){return z>=129&&z<=131}function fr(z){return z>=90&&z<=92}function Di(z){return z>=58&&z<=92}function Ja(z){return z>=39&&z<=59}function fc(z){return z===34}function Au(z){return Ha[z]}function Nu(z){return z>=121&&z<=123}function Hu(z){return z>=124&&z<=130}function Zl(z){return Cr[z]}function Vt(z){return $n[z]}function Xo(z){return z===57}function gf(z){return z>=24&&z<=25}function cr(z){return Qt[z]}Qt[8].updateContext=z=>{z.pop()},Qt[5].updateContext=Qt[7].updateContext=Qt[23].updateContext=z=>{z.push(he.brace)},Qt[22].updateContext=z=>{z[z.length-1]===he.template?z.pop():z.push(he.template)},Qt[142].updateContext=z=>{z.push(he.j_expr,he.j_oTag)};var wn="\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CA\uA7D0\uA7D1\uA7D3\uA7D5-\uA7D9\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC",va="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u0898-\u089F\u08CA-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B55-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1ACE\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F\uFF65",Mn=new RegExp("["+wn+"]"),dl=new RegExp("["+wn+va+"]");wn=va=null;var Bl=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],Ya=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function vu(z,F){let Q=65536;for(let me=0,ze=F.length;me<ze;me+=2){if(Q+=F[me],Q>z)return!1;if(Q+=F[me+1],Q>=z)return!0}return!1}function oc(z){return z<65?z===36:z<=90?!0:z<97?z===95:z<=122?!0:z<=65535?z>=170&&Mn.test(String.fromCharCode(z)):vu(z,Bl)}function Lu(z){return z<48?z===36:z<58?!0:z<65?!1:z<=90?!0:z<97?z===95:z<=122?!0:z<=65535?z>=170&&dl.test(String.fromCharCode(z)):vu(z,Bl)||vu(z,Ya)}var ef={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},El=new Set(ef.keyword),ip=new Set(ef.strict),zo=new Set(ef.strictBind);function kl(z,F){return F&&z==="await"||z==="enum"}function Xn(z,F){return kl(z,F)||ip.has(z)}function Kn(z){return zo.has(z)}function js(z,F){return Xn(z,F)||Kn(z)}function Tc(z){return El.has(z)}function On(z,F,Q){return z===64&&F===64&&oc(Q)}var Es=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Xi(z){return Es.has(z)}var Un=class{constructor(z){this.flags=0,this.names=new Map,this.firstLexicalName="",this.flags=z}},Ii=class{constructor(z,F){this.parser=void 0,this.scopeStack=[],this.inModule=void 0,this.undefinedExports=new Map,this.parser=z,this.inModule=F}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let z=this.currentThisScopeFlags();return(z&64)>0&&(z&2)===0}get inStaticBlock(){for(let z=this.scopeStack.length-1;;z--){let{flags:F}=this.scopeStack[z];if(F&128)return!0;if(F&451)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(z){return new Un(z)}enter(z){this.scopeStack.push(this.createScope(z))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(z){return!!(z.flags&130||!this.parser.inModule&&z.flags&1)}declareName(z,F,Q){let me=this.currentScope();if(F&8||F&16){this.checkRedeclarationInScope(me,z,F,Q);let ze=me.names.get(z)||0;F&16?ze=ze|4:(me.firstLexicalName||(me.firstLexicalName=z),ze=ze|2),me.names.set(z,ze),F&8&&this.maybeExportDefined(me,z)}else if(F&4)for(let ze=this.scopeStack.length-1;ze>=0&&(me=this.scopeStack[ze],this.checkRedeclarationInScope(me,z,F,Q),me.names.set(z,(me.names.get(z)||0)|1),this.maybeExportDefined(me,z),!(me.flags&387));--ze);this.parser.inModule&&me.flags&1&&this.undefinedExports.delete(z)}maybeExportDefined(z,F){this.parser.inModule&&z.flags&1&&this.undefinedExports.delete(F)}checkRedeclarationInScope(z,F,Q,me){this.isRedeclaredInScope(z,F,Q)&&this.parser.raise(B.VarRedeclaration,me,{identifierName:F})}isRedeclaredInScope(z,F,Q){if(!(Q&1))return!1;if(Q&8)return z.names.has(F);let me=z.names.get(F);return Q&16?(me&2)>0||!this.treatFunctionsAsVarInScope(z)&&(me&1)>0:(me&2)>0&&!(z.flags&8&&z.firstLexicalName===F)||!this.treatFunctionsAsVarInScope(z)&&(me&4)>0}checkLocalExport(z){let{name:F}=z;this.scopeStack[0].names.has(F)||this.undefinedExports.set(F,z.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let z=this.scopeStack.length-1;;z--){let{flags:F}=this.scopeStack[z];if(F&387)return F}}currentThisScopeFlags(){for(let z=this.scopeStack.length-1;;z--){let{flags:F}=this.scopeStack[z];if(F&451&&!(F&4))return F}}},ya=class extends Un{constructor(...z){super(...z),this.declareFunctions=new Set}},sr=class extends Ii{createScope(z){return new ya(z)}declareName(z,F,Q){let me=this.currentScope();if(F&2048){this.checkRedeclarationInScope(me,z,F,Q),this.maybeExportDefined(me,z),me.declareFunctions.add(z);return}super.declareName(z,F,Q)}isRedeclaredInScope(z,F,Q){if(super.isRedeclaredInScope(z,F,Q))return!0;if(Q&2048&&!z.declareFunctions.has(F)){let me=z.names.get(F);return(me&4)>0||(me&2)>0}return!1}checkLocalExport(z){this.scopeStack[0].declareFunctions.has(z.name)||super.checkLocalExport(z)}},wr=class{constructor(){this.sawUnambiguousESM=!1,this.ambiguousScriptDifferentAst=!1}hasPlugin(z){if(typeof z=="string")return this.plugins.has(z);{let[F,Q]=z;if(!this.hasPlugin(F))return!1;let me=this.plugins.get(F);for(let ze of Object.keys(Q))if(me?.[ze]!==Q[ze])return!1;return!0}}getPluginOption(z,F){var Q;return(Q=this.plugins.get(z))==null?void 0:Q[F]}};function zr(z,F){z.trailingComments===void 0?z.trailingComments=F:z.trailingComments.unshift(...F)}function Qn(z,F){z.leadingComments===void 0?z.leadingComments=F:z.leadingComments.unshift(...F)}function Ri(z,F){z.innerComments===void 0?z.innerComments=F:z.innerComments.unshift(...F)}function rn(z,F,Q){let me=null,ze=F.length;for(;me===null&&ze>0;)me=F[--ze];me===null||me.start>Q.start?Ri(z,Q.comments):zr(me,Q.comments)}var ai=class extends wr{addComment(z){this.filename&&(z.loc.filename=this.filename);let{commentsLen:F}=this.state;this.comments.length!==F&&(this.comments.length=F),this.comments.push(z),this.state.commentsLen++}processComment(z){let{commentStack:F}=this.state,Q=F.length;if(Q===0)return;let me=Q-1,ze=F[me];ze.start===z.end&&(ze.leadingNode=z,me--);let{start:Dt}=z;for(;me>=0;me--){let lr=F[me],Vr=lr.end;if(Vr>Dt)lr.containingNode=z,this.finalizeComment(lr),F.splice(me,1);else{Vr===Dt&&(lr.trailingNode=z);break}}}finalizeComment(z){let{comments:F}=z;if(z.leadingNode!==null||z.trailingNode!==null)z.leadingNode!==null&&zr(z.leadingNode,F),z.trailingNode!==null&&Qn(z.trailingNode,F);else{let{containingNode:Q,start:me}=z;if(this.input.charCodeAt(me-1)===44)switch(Q.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":rn(Q,Q.properties,z);break;case"CallExpression":case"OptionalCallExpression":rn(Q,Q.arguments,z);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":rn(Q,Q.params,z);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":rn(Q,Q.elements,z);break;case"ExportNamedDeclaration":case"ImportDeclaration":rn(Q,Q.specifiers,z);break;default:Ri(Q,F)}else Ri(Q,F)}}finalizeRemainingComments(){let{commentStack:z}=this.state;for(let F=z.length-1;F>=0;F--)this.finalizeComment(z[F]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(z){let{commentStack:F}=this.state,{length:Q}=F;if(Q===0)return;let me=F[Q-1];me.leadingNode===z&&(me.leadingNode=null)}resetPreviousIdentifierLeadingComments(z){let{commentStack:F}=this.state,{length:Q}=F;Q!==0&&(F[Q-1].trailingNode===z?F[Q-1].trailingNode=null:Q>=2&&F[Q-2].trailingNode===z&&(F[Q-2].trailingNode=null))}takeSurroundingComments(z,F,Q){let{commentStack:me}=this.state,ze=me.length;if(ze===0)return;let Dt=ze-1;for(;Dt>=0;Dt--){let lr=me[Dt],Vr=lr.end;if(lr.start===Q)lr.leadingNode=z;else if(Vr===F)lr.trailingNode=z;else if(Vr<F)break}}},lt=/\r\n?|[\n\u2028\u2029]/,za=new RegExp(lt.source,"g");function Vi(z){switch(z){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}var fn=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,fa=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g,Rs=new RegExp("(?=("+fa.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y");function wa(z){switch(z){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var oo=class FMt{constructor(){this.flags=1024,this.curLine=void 0,this.lineStart=void 0,this.startLoc=void 0,this.endLoc=void 0,this.errors=[],this.potentialArrowAt=-1,this.noArrowAt=[],this.noArrowParamsConversionAt=[],this.topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null},this.labels=[],this.commentsLen=0,this.commentStack=[],this.pos=0,this.type=139,this.value=null,this.start=0,this.end=0,this.lastTokEndLoc=null,this.lastTokStartLoc=null,this.context=[he.brace],this.firstInvalidTemplateEscapePos=null,this.strictErrors=new Map,this.tokensLength=0}get strict(){return(this.flags&1)>0}set strict(F){F?this.flags|=1:this.flags&=-2}init({strictMode:F,sourceType:Q,startLine:me,startColumn:ze}){this.strict=F===!1?!1:F===!0?!0:Q==="module",this.curLine=me,this.lineStart=-ze,this.startLoc=this.endLoc=new n(me,ze,0)}get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(F){F?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(F){F?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(F){F?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(F){F?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(F){F?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(F){F?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(F){F?this.flags|=128:this.flags&=-129}get soloAwait(){return(this.flags&256)>0}set soloAwait(F){F?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(F){F?this.flags|=512:this.flags&=-513}get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(F){F?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(F){F?this.flags|=2048:this.flags&=-2049}curPosition(){return new n(this.curLine,this.pos-this.lineStart,this.pos)}clone(){let F=new FMt;return F.flags=this.flags,F.curLine=this.curLine,F.lineStart=this.lineStart,F.startLoc=this.startLoc,F.endLoc=this.endLoc,F.errors=this.errors.slice(),F.potentialArrowAt=this.potentialArrowAt,F.noArrowAt=this.noArrowAt.slice(),F.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),F.topicContext=this.topicContext,F.labels=this.labels.slice(),F.commentsLen=this.commentsLen,F.commentStack=this.commentStack.slice(),F.pos=this.pos,F.type=this.type,F.value=this.value,F.start=this.start,F.end=this.end,F.lastTokEndLoc=this.lastTokEndLoc,F.lastTokStartLoc=this.lastTokStartLoc,F.context=this.context.slice(),F.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,F.strictErrors=this.strictErrors,F.tokensLength=this.tokensLength,F}},Cl=function(z){return z>=48&&z<=57},Xc={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},ka={bin:z=>z===48||z===49,oct:z=>z>=48&&z<=55,dec:z=>z>=48&&z<=57,hex:z=>z>=48&&z<=57||z>=65&&z<=70||z>=97&&z<=102};function yl(z,F,Q,me,ze,Dt){let lr=Q,Vr=me,sn=ze,en="",Da=null,Ko=Q,{length:qc}=F;for(;;){if(Q>=qc){Dt.unterminated(lr,Vr,sn),en+=F.slice(Ko,Q);break}let il=F.charCodeAt(Q);if(yd(z,il,F,Q)){en+=F.slice(Ko,Q);break}if(il===92){en+=F.slice(Ko,Q);let I_=cf(F,Q,me,ze,z==="template",Dt);I_.ch===null&&!Da?Da={pos:Q,lineStart:me,curLine:ze}:en+=I_.ch,{pos:Q,lineStart:me,curLine:ze}=I_,Ko=Q}else il===8232||il===8233?(++Q,++ze,me=Q):il===10||il===13?z==="template"?(en+=F.slice(Ko,Q)+`
|
|
782
782
|
`,++Q,il===13&&F.charCodeAt(Q)===10&&++Q,++ze,Ko=me=Q):Dt.unterminated(lr,Vr,sn):++Q}return{pos:Q,str:en,firstInvalidLoc:Da,lineStart:me,curLine:ze,containsInvalid:!!Da}}function yd(z,F,Q,me){return z==="template"?F===96||F===36&&Q.charCodeAt(me+1)===123:F===(z==="double"?34:39)}function cf(z,F,Q,me,ze,Dt){let lr=!ze;F++;let Vr=en=>({pos:F,ch:en,lineStart:Q,curLine:me}),sn=z.charCodeAt(F++);switch(sn){case 110:return Vr(`
|
|
@@ -1076,11 +1076,11 @@ ${t}
|
|
|
1076
1076
|
`}return new Obt(a)}var Obt=class{contents;constructor(e){this.contents=e}addIntro(e){this.contents[0]+=e}addTodo(e){this.contents[1]+=e}addAbout(e){this.contents[2]+=e}finalize(){let e="";for(let n=0;n<VLe.length;n++){let s=VLe[n].trim(),a=this.contents[n].trim();s&&a&&(e+=s+`
|
|
1077
1077
|
`),a&&(e+=a+`
|
|
1078
1078
|
|
|
1079
|
-
`)}return e}},$Os={h1:sas,h2:aas,h3:oas,link:uas,tick:pas,code:fas,bold:cas,italic:las};var CWr=Bf(EWr(),1);async function dLs({readfile:t}){let e=await t?.();return jVr(e)}async function mLs({readfile:t,source:e,target:n}){let s=await t?.();return qLe(typeof s=="string",`Unable to load previous JSON module ("${e}" -> "${n}")`),JSON.parse(s)}async function hLs({readfile:t,source:e,target:n}){let s=await t?.();return qLe(typeof s=="string",`Unable to load previous module ("${e}" -> "${n}")`),ULe(s)}async function gLs(t,e){let n=Mus(e.url),s=Lus(n);return Fbt(Rus(s,t))}async function yLs({readfile:t,source:e,target:n},s){let a=await t?.();return qLe(typeof a=="string",`Unable to load previous YAML module ("${e}" -> "${n}")`),(0,CWr.parseDocument)(a,s)}var TLs=Bf(N1t(),1),SLs=Bf(dbt(),1);function AWr(t,e){if(typeof e=="object")for(let n in e)typeof t[n]=="object"&&typeof e[n]=="object"?AWr(t[n],e[n]):t[n]=e[n]}function Bus(t){return PWr(t.exports.default)}function jus(t){if(t.exports.default.$type!=="identifier")throw new aS(`Not supported: Cannot modify this kind of default export (${t.exports.default.$type})`);let e=t.exports.default.$name;for(let n of t.$ast.body)if(n.type==="VariableDeclaration"){for(let s of n.declarations)if(s.id.type==="Identifier"&&s.id.name===e&&s.init){let a=s.init.type==="TSSatisfiesExpression"?s.init.expression:s.init,l=Zq(a).code,p=Ibt(l);return{declaration:s,config:PWr(p)}}}throw new aS("Couldn't find config declaration")}function PWr(t){return t.$type==="function-call"?t.$args[0]:t}function Uus(t,e){let n=Bus(t);return n.$type==="identifier"?qus(t,e):wWr(e,n),t.imports.$prepend({from:e.from,local:e.constructor,imported:e.imported||"default"}),!0}function qus(t,e){let{config:n,declaration:s}=jus(t);wWr(e,n),s.init&&(s.init.type==="ObjectExpression"?s.init=Zq(n).code:s.init.type==="CallExpression"&&s.init.callee.type==="Identifier"?s.init=Zq(Uie.functionCall(s.init.callee.name,n)).code:s.init.type==="TSSatisfiesExpression"&&(s.init.expression.type==="ObjectExpression"&&(s.init.expression=Zq(n).code),s.init.expression.type==="CallExpression"&&s.init.expression.callee.type==="Identifier"&&(s.init.expression=Zq(Uie.functionCall(s.init.expression.callee.name,n)).code)))}function wWr(t,e){let n=t.index??e.plugins?.length??0;e.plugins||(e.plugins=[]),e.plugins.splice(n,0,t.options?Uie.functionCall(t.constructor,t.options):Uie.functionCall(t.constructor))}import*as R7e from"tty";var{env:lV={},argv:kWr=[],platform:Vus=""}=typeof process>"u"?{}:process,Jus="NO_COLOR"in lV||kWr.includes("--no-color"),$us="FORCE_COLOR"in lV||kWr.includes("--color"),Wus=Vus==="win32",NWr=lV.TERM==="dumb",Yus=R7e&&R7e.isatty&&R7e.isatty(1)&&lV.TERM&&!NWr,zus="CI"in lV&&("GITHUB_ACTIONS"in lV||"GITLAB_CI"in lV||"CIRCLECI"in lV),Kus=!Jus&&($us||Wus&&!NWr||Yus||zus),IWr=(t,e,n,s,a=e.substring(0,t)+s,l=e.substring(t+n.length),p=l.indexOf(n))=>a+(p<0?l:IWr(p,l,n,s)),Gus=(t,e,n,s,a)=>t<0?n+e+s:n+IWr(t,e,s,a)+s,Hus=(t,e,n=t,s=t.length+1)=>a=>a||!(a===""||a===void 0)?Gus((""+a).indexOf(e,s),a,t,e,n):"",i_=(t,e,n)=>Hus(`\x1B[${t}m`,`\x1B[${e}m`,n),DWr={reset:i_(0,0),bold:i_(1,22,"\x1B[22m\x1B[1m"),dim:i_(2,22,"\x1B[22m\x1B[2m"),italic:i_(3,23),underline:i_(4,24),inverse:i_(7,27),hidden:i_(8,28),strikethrough:i_(9,29),black:i_(30,39),red:i_(31,39),green:i_(32,39),yellow:i_(33,39),blue:i_(34,39),magenta:i_(35,39),cyan:i_(36,39),white:i_(37,39),gray:i_(90,39),bgBlack:i_(40,49),bgRed:i_(41,49),bgGreen:i_(42,49),bgYellow:i_(43,49),bgBlue:i_(44,49),bgMagenta:i_(45,49),bgCyan:i_(46,49),bgWhite:i_(47,49),blackBright:i_(90,39),redBright:i_(91,39),greenBright:i_(92,39),yellowBright:i_(93,39),blueBright:i_(94,39),magentaBright:i_(95,39),cyanBright:i_(96,39),whiteBright:i_(97,39),bgBlackBright:i_(100,49),bgRedBright:i_(101,49),bgGreenBright:i_(102,49),bgYellowBright:i_(103,49),bgBlueBright:i_(104,49),bgMagentaBright:i_(105,49),bgCyanBright:i_(106,49),bgWhiteBright:i_(107,49)},Xus=({useColor:t=Kus}={})=>t?DWr:Object.keys(DWr).reduce((e,n)=>({...e,[n]:String}),{}),{reset:PLs,bold:wLs,dim:mTt,italic:DLs,underline:kLs,inverse:NLs,hidden:ILs,strikethrough:FLs,black:OLs,red:LLs,green:RLs,yellow:FWr,blue:MLs,magenta:BLs,cyan:jLs,white:ULs,gray:qLs,bgBlack:VLs,bgRed:JLs,bgGreen:$Ls,bgYellow:WLs,bgBlue:YLs,bgMagenta:zLs,bgCyan:KLs,bgWhite:GLs,blackBright:HLs,redBright:XLs,greenBright:QLs,yellowBright:ZLs,blueBright:e7s,magentaBright:t7s,cyanBright:r7s,whiteBright:n7s,bgBlackBright:i7s,bgRedBright:s7s,bgGreenBright:a7s,bgYellowBright:o7s,bgBlueBright:c7s,bgMagentaBright:l7s,bgCyanBright:u7s,bgWhiteBright:p7s}=Xus();function OWr(t,e,n=0){let s=`${" ".repeat(n*2)}${e?e(t):t}`;return a=>`${s} ${a}`}function*Qus(t){if(t.devDependencies)for(let e in t.devDependencies)yield[e,t.devDependencies[e]];if(t.dependencies)for(let e in t.dependencies)yield[e,t.dependencies[e]]}function*LWr(t,e){for(let n of e){let s=t.get(n);if(!s)throw new Error(`key '${s}' not found in package.json`);yield[n,s]}}function g7s(t,e,n){t.devDependencies??={},t.dependencies??={};let s=new Map(Qus(e));for(let[a,l]of LWr(s,n.devDependencies??[]))a in t.dependencies||(t.devDependencies[a]=l);for(let[a,l]of LWr(s,n.dependencies??[]))a in t.devDependencies&&delete t.devDependencies[a],t.dependencies[a]=l;return t}var RWr={};function MWr(t,e,n){console.warn(OWr("\u26A0",FWr)(`Possible conflict between flags for "package.json":
|
|
1079
|
+
`)}return e}},$Os={h1:sas,h2:aas,h3:oas,link:uas,tick:pas,code:fas,bold:cas,italic:las};var CWr=Bf(EWr(),1);async function dLs({readfile:t}){let e=await t?.();return jVr(e)}async function mLs({readfile:t,source:e,target:n}){let s=await t?.();return qLe(typeof s=="string",`Unable to load previous JSON module ("${e}" -> "${n}")`),JSON.parse(s)}async function hLs({readfile:t,source:e,target:n}){let s=await t?.();return qLe(typeof s=="string",`Unable to load previous module ("${e}" -> "${n}")`),ULe(s)}async function gLs(t,e){let n=Mus(e.url),s=Lus(n);return Fbt(Rus(s,t))}async function yLs({readfile:t,source:e,target:n},s){let a=await t?.();return qLe(typeof a=="string",`Unable to load previous YAML module ("${e}" -> "${n}")`),(0,CWr.parseDocument)(a,s)}var TLs=Bf(N1t(),1),SLs=Bf(dbt(),1);function AWr(t,e){if(typeof e=="object")for(let n in e)typeof t[n]=="object"&&typeof e[n]=="object"?AWr(t[n],e[n]):t[n]=e[n]}function Bus(t){return PWr(t.exports.default)}function jus(t){if(t.exports.default.$type!=="identifier")throw new aS(`Not supported: Cannot modify this kind of default export (${t.exports.default.$type})`);let e=t.exports.default.$name;for(let n of t.$ast.body)if(n.type==="VariableDeclaration"){for(let s of n.declarations)if(s.id.type==="Identifier"&&s.id.name===e&&s.init){let a=s.init.type==="TSSatisfiesExpression"?s.init.expression:s.init,l=Zq(a).code,p=Ibt(l);return{declaration:s,config:PWr(p)}}}throw new aS("Couldn't find config declaration")}function PWr(t){return t.$type==="function-call"?t.$args[0]:t}function Uus(t,e){let n=Bus(t);return n.$type==="identifier"?qus(t,e):wWr(e,n),t.imports.$prepend({from:e.from,local:e.constructor,imported:e.imported||"default"}),!0}function qus(t,e){let{config:n,declaration:s}=jus(t);wWr(e,n),s.init&&(s.init.type==="ObjectExpression"?s.init=Zq(n).code:s.init.type==="CallExpression"&&s.init.callee.type==="Identifier"?s.init=Zq(Uie.functionCall(s.init.callee.name,n)).code:s.init.type==="TSSatisfiesExpression"&&(s.init.expression.type==="ObjectExpression"&&(s.init.expression=Zq(n).code),s.init.expression.type==="CallExpression"&&s.init.expression.callee.type==="Identifier"&&(s.init.expression=Zq(Uie.functionCall(s.init.expression.callee.name,n)).code)))}function wWr(t,e){let n=t.index??e.plugins?.length??0;e.plugins||(e.plugins=[]),e.plugins.splice(n,0,t.options?Uie.functionCall(t.constructor,t.options):Uie.functionCall(t.constructor))}import*as R7e from"tty";var{env:lV={},argv:kWr=[],platform:Vus=""}=typeof process>"u"?{}:process,Jus="NO_COLOR"in lV||kWr.includes("--no-color"),$us="FORCE_COLOR"in lV||kWr.includes("--color"),Wus=Vus==="win32",NWr=lV.TERM==="dumb",Yus=R7e&&R7e.isatty&&R7e.isatty(1)&&lV.TERM&&!NWr,zus="CI"in lV&&("GITHUB_ACTIONS"in lV||"GITLAB_CI"in lV||"CIRCLECI"in lV),Kus=!Jus&&($us||Wus&&!NWr||Yus||zus),IWr=(t,e,n,s,a=e.substring(0,t)+s,l=e.substring(t+n.length),p=l.indexOf(n))=>a+(p<0?l:IWr(p,l,n,s)),Gus=(t,e,n,s,a)=>t<0?n+e+s:n+IWr(t,e,s,a)+s,Hus=(t,e,n=t,s=t.length+1)=>a=>a||!(a===""||a===void 0)?Gus((""+a).indexOf(e,s),a,t,e,n):"",i_=(t,e,n)=>Hus(`\x1B[${t}m`,`\x1B[${e}m`,n),DWr={reset:i_(0,0),bold:i_(1,22,"\x1B[22m\x1B[1m"),dim:i_(2,22,"\x1B[22m\x1B[2m"),italic:i_(3,23),underline:i_(4,24),inverse:i_(7,27),hidden:i_(8,28),strikethrough:i_(9,29),black:i_(30,39),red:i_(31,39),green:i_(32,39),yellow:i_(33,39),blue:i_(34,39),magenta:i_(35,39),cyan:i_(36,39),white:i_(37,39),gray:i_(90,39),bgBlack:i_(40,49),bgRed:i_(41,49),bgGreen:i_(42,49),bgYellow:i_(43,49),bgBlue:i_(44,49),bgMagenta:i_(45,49),bgCyan:i_(46,49),bgWhite:i_(47,49),blackBright:i_(90,39),redBright:i_(91,39),greenBright:i_(92,39),yellowBright:i_(93,39),blueBright:i_(94,39),magentaBright:i_(95,39),cyanBright:i_(96,39),whiteBright:i_(97,39),bgBlackBright:i_(100,49),bgRedBright:i_(101,49),bgGreenBright:i_(102,49),bgYellowBright:i_(103,49),bgBlueBright:i_(104,49),bgMagentaBright:i_(105,49),bgCyanBright:i_(106,49),bgWhiteBright:i_(107,49)},Xus=({useColor:t=Kus}={})=>t?DWr:Object.keys(DWr).reduce((e,n)=>({...e,[n]:String}),{}),{reset:PLs,bold:wLs,dim:mTt,italic:DLs,underline:kLs,inverse:NLs,hidden:ILs,strikethrough:FLs,black:OLs,red:LLs,green:RLs,yellow:FWr,blue:MLs,magenta:BLs,cyan:jLs,white:ULs,gray:qLs,bgBlack:VLs,bgRed:JLs,bgGreen:$Ls,bgYellow:WLs,bgBlue:YLs,bgMagenta:zLs,bgCyan:KLs,bgWhite:GLs,blackBright:HLs,redBright:XLs,greenBright:QLs,yellowBright:ZLs,blueBright:e7s,magentaBright:t7s,cyanBright:r7s,whiteBright:n7s,bgBlackBright:i7s,bgRedBright:s7s,bgGreenBright:a7s,bgYellowBright:o7s,bgBlueBright:c7s,bgMagentaBright:l7s,bgCyanBright:u7s,bgWhiteBright:p7s}=Xus();function OWr(t,e,n=0){let s=`${" ".repeat(n*2)}${e?e(t):t}`;return a=>`${s} ${a}`}function*Qus(t){if(t.devDependencies)for(let e in t.devDependencies)yield[e,t.devDependencies[e]];if(t.dependencies)for(let e in t.dependencies)yield[e,t.dependencies[e]]}function*LWr(t,e){for(let n of e){let s=t.get(n);if(!s)throw new Error(`key '${s}' not found in package.json`);yield[n,s]}}function g7s(t,e,n){t.devDependencies??={},t.dependencies??={};let s=new Map(Qus(e));for(let[a,l]of LWr(s,n.devDependencies??[]))a in t.dependencies||(t.devDependencies[a]=l);for(let[a,l]of LWr(s,n.dependencies??[]))a in t.devDependencies&&delete t.devDependencies[a],t.dependencies[a]=l;return t}function y7s(t,e){return t.devDependencies?.[e]&&delete t.devDependencies[e],t.dependencies?.[e]&&delete t.dependencies[e],t}var RWr={};function MWr(t,e,n){console.warn(OWr("\u26A0",FWr)(`Possible conflict between flags for "package.json":
|
|
1080
1080
|
Old \`scripts.${t}\`: ${mTt(e)}
|
|
1081
1081
|
New \`scripts.${t}\`: ${mTt(n)}
|
|
1082
1082
|
You can check https://batijs.dev for more details.
|
|
1083
|
-
`))}function
|
|
1083
|
+
`))}function b7s(t,e){let n=Object.keys(e);for(let s of n){let a=RWr[s]??{precedence:-1/0},l=e[s];l&&(l.precedence>a.precedence?(a.warnIfReplaced&&MWr(s,a.value,l.value),t.scripts[s]=l.value,RWr[s]=Object.assign({precedence:-1/0},l)):l.warnIfReplaced&&MWr(s,l.value,a.value))}return t}function T7s(t,e,n,s){t??="",t.endsWith(`
|
|
1084
1084
|
|
|
1085
1085
|
`)||(t.endsWith(`
|
|
1086
1086
|
`)?t=t+`
|
|
@@ -1088,7 +1088,7 @@ ${t}
|
|
|
1088
1088
|
|
|
1089
1089
|
`));let a=s?s.replace(/^(.+)/gm,"# $1")+`
|
|
1090
1090
|
`:"",l=`${e}=${Zus(n)}
|
|
1091
|
-
`;return t+a+l}function Zus(t){let e="";switch(typeof t){case"string":t&&(e=JSON.stringify(t));break;case"boolean":case"number":e=String(t);break;case"undefined":e="";break;case"object":t!==null&&(e=JSON.stringify(t));break}return e}var bps=Bf(sYr(),1);import{randomBytes as
|
|
1091
|
+
`;return t+a+l}function Zus(t){let e="";switch(typeof t){case"string":t&&(e=JSON.stringify(t));break;case"boolean":case"number":e=String(t);break;case"undefined":e="";break;case"object":t!==null&&(e=JSON.stringify(t));break}return e}var bps=Bf(sYr(),1);import{randomBytes as k7s}from"node:crypto";var hTt={name:"@batijs/core",version:"0.0.286",description:"",type:"module",types:"./dist/index.d.ts",scripts:{"check-types":"tsc --noEmit",vue:"tsx src/parse/linters/vue.ts",test:"vitest run","test:ci":"vitest run",build:"tsup"},keywords:[],author:"Jo\xEBl Charles <joel.charles91@gmail.com>",repository:"https://github.com/vikejs/bati",license:"MIT",devDependencies:{"@batijs/features":"workspace:*","@types/eslint":"^9.6.1","@types/estree":"^1.0.6","@types/node":"^18.19.14","@types/which":"^3.0.4","@typescript-eslint/parser":"^8.6.0","@typescript-eslint/utils":"^8.6.0",colorette:"^2.0.20",esbuild:"^0.24.0",eslint:"^9.11.0","eslint-plugin-solid":"^0.14.3","eslint-rule-composer":"^0.3.0",espree:"^10.1.0",magicast:"^0.3.5",prettier:"^3.3.3",squirrelly:"^9.1.0",tsup:"^8.3.0",tsx:"^4.19.1",typescript:"^5.6.2","unplugin-purge-polyfills":"^0.0.6",vitest:"^2.1.1","vue-eslint-parser":"^9.4.3",which:"^4.0.0",yaml:"^2.5.1"},exports:{".":"./dist/index.js","./types":{types:"./global.d.ts"}},typesVersions:{"*":{types:["./global.d.ts"]}},files:["dist/"]};function Tps(){if(process.env.npm_config_user_agent)return Sps(process.env.npm_config_user_agent)}function Sps(t){let e=t.split(" ")[0],n=e.lastIndexOf("/"),s=e.substring(0,n);return{name:s==="npminstall"?"cnpm":s,version:e.substring(n+1)}}function O7s(){switch(Tps()?.name){case"pnpm":return"pnpm create bati";case"yarn":return"yarn dlx @batijs/cli";case"bun":return"bun create bati";default:return"npm create bati --"}}function L7s(){let t=hTt.version.split("."),e=t[0],n=t[1],s=t.slice(2).join(".");return{version:hTt.version,semver:[e,n,s]}}var export_which=bps.default;export{Obt as Readme,g7s as addDependency,Uus as addVitePlugin,T7s as appendToEnv,VLs as bgBlack,i7s as bgBlackBright,YLs as bgBlue,c7s as bgBlueBright,KLs as bgCyan,u7s as bgCyanBright,$Ls as bgGreen,a7s as bgGreenBright,zLs as bgMagenta,l7s as bgMagentaBright,JLs as bgRed,s7s as bgRedBright,GLs as bgWhite,p7s as bgWhiteBright,WLs as bgYellow,o7s as bgYellowBright,OLs as black,HLs as blackBright,MLs as blue,e7s as blueBright,wLs as bold,Uie as builders,Xus as createColors,jLs as cyan,r7s as cyanBright,AWr as deepMergeObject,mTt as dim,jtt as formatCode,Zq as generateCode,O7s as getArgs,L7s as getVersion,qLs as gray,RLs as green,QLs as greenBright,ILs as hidden,NLs as inverse,Kus as isColorSupported,DLs as italic,mLs as loadAsJson,hLs as loadAsMagicast,Fbt as loadFile,dLs as loadReadme,gLs as loadRelativeFileAsMagicast,yLs as loadYaml,BLs as magenta,t7s as magentaBright,$Os as markdown,Tps as packageManager,ULe as parseModule,jVr as parseReadme,k7s as randomBytes,LLs as red,XLs as redBright,y7s as removeDependency,PLs as reset,b7s as setScripts,FLs as strikethrough,qrs as transformAndFormat,kLs as underline,export_which as which,ULs as white,n7s as whiteBright,OWr as withIcon,FWr as yellow,ZLs as yellowBright};
|
|
1092
1092
|
/*! Bundled license information:
|
|
1093
1093
|
|
|
1094
1094
|
uri-js/dist/es5/uri.all.js:
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@batijs/core",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.286",
|
|
4
4
|
"description": "",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"types": "./dist/index.d.ts",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"vue-eslint-parser": "^9.4.3",
|
|
33
33
|
"which": "^4.0.0",
|
|
34
34
|
"yaml": "^2.5.1",
|
|
35
|
-
"@batijs/features": "0.0.
|
|
35
|
+
"@batijs/features": "0.0.286"
|
|
36
36
|
},
|
|
37
37
|
"exports": {
|
|
38
38
|
".": "./dist/index.js",
|