dwolfe884_obsidian-x86-flow.../node_modules/prettier/parser-espree.js

26 lines
151 KiB
JavaScript
Raw Normal View History

2023-02-03 18:11:50 +00:00
(function(e){if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var i=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};i.prettierPlugins=i.prettierPlugins||{},i.prettierPlugins.espree=e()}})(function(){"use strict";var F=(n,o)=>()=>(o||n((o={exports:{}}).exports,o),o.exports);var Z=F((Nh,jr)=>{var Ye=function(n){return n&&n.Math==Math&&n};jr.exports=Ye(typeof globalThis=="object"&&globalThis)||Ye(typeof window=="object"&&window)||Ye(typeof self=="object"&&self)||Ye(typeof global=="object"&&global)||function(){return this}()||Function("return this")()});var Ae=F((Dh,qr)=>{qr.exports=function(n){try{return!!n()}catch{return!0}}});var Se=F((Oh,Mr)=>{var tn=Ae();Mr.exports=!tn(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})});var At=F((Lh,Ur)=>{var rn=Ae();Ur.exports=!rn(function(){var n=function(){}.bind();return typeof n!="function"||n.hasOwnProperty("prototype")})});var Ze=F((Vh,zr)=>{var sn=At(),$e=Function.prototype.call;zr.exports=sn?$e.bind($e):function(){return $e.apply($e,arguments)}});var Hr=F(Kr=>{"use strict";var Wr={}.propertyIsEnumerable,Gr=Object.getOwnPropertyDescriptor,an=Gr&&!Wr.call({1:2},1);Kr.f=an?function(o){var u=Gr(this,o);return!!u&&u.enumerable}:Wr});var Ct=F((jh,Xr)=>{Xr.exports=function(n,o){return{enumerable:!(n&1),configurable:!(n&2),writable:!(n&4),value:o}}});var fe=F((qh,Yr)=>{var Jr=At(),Qr=Function.prototype,nn=Qr.bind,Et=Qr.call,on=Jr&&nn.bind(Et,Et);Yr.exports=Jr?function(n){return n&&on(n)}:function(n){return n&&function(){return Et.apply(n,arguments)}}});var ei=F((Mh,Zr)=>{var $r=fe(),un=$r({}.toString),hn=$r("".slice);Zr.exports=function(n){return hn(un(n),8,-1)}});var ri=F((Uh,ti)=>{var ln=Z(),cn=fe(),pn=Ae(),fn=ei(),bt=ln.Object,dn=cn("".split);ti.exports=pn(function(){return!bt("z").propertyIsEnumerable(0)})?function(n){return fn(n)=="String"?dn(n,""):bt(n)}:bt});var _t=F((zh,ii)=>{var mn=Z(),vn=mn.TypeError;ii.exports=function(n){if(n==null)throw vn("Can't call method on "+n);return n}});var et=F((Wh,si)=>{var gn=ri(),xn=_t();si.exports=function(n){return gn(xn(n))}});var de=F((Gh,ai)=>{ai.exports=function(n){return typeof n=="function"}});var Pe=F((Kh,ni)=>{var yn=de();ni.exports=function(n){return typeof n=="object"?n!==null:yn(n)}});var tt=F((Hh,oi)=>{var St=Z(),An=de(),Cn=function(n){return An(n)?n:void 0};oi.exports=function(n,o){return arguments.length<2?Cn(St[n]):St[n]&&St[n][o]}});var hi=F((Xh,ui)=>{var En=fe();ui.exports=En({}.isPrototypeOf)});var ci=F((Jh,li)=>{var bn=tt();li.exports=bn("navigator","userAgent")||""});var xi=F((Qh,gi)=>{var vi=Z(),wt=ci(),pi=vi.process,fi=vi.Deno,di=pi&&pi.versions||fi&&fi.version,mi=di&&di.v8,le,rt;mi&&(le=mi.split("."),rt=le[0]>0&&le[0]<4?1:+(le[0]+le[1]));!rt&&wt&&(le=wt.match(/Edge\/(\d+)/),(!le||le[1]>=74)&&(le=wt.match(/Chrome\/(\d+)/),le&&(rt=+le[1])));gi.exports=rt});var kt=F((Yh,Ai)=>{var yi=xi(),_n=Ae();Ai.exports=!!Object.getOwnPropertySymbols&&!_n(function(){var n=Symbol();return!String(n)||!(Object(n)instanceof Symbol)||!Symbol.sham&&yi&&yi<41})});var Ft=F(($h,Ci)=>{var Sn=kt();Ci.exports=Sn&&!Symbol.sham&&typeof Symbol.iterator=="symbol"});var Bt=F((Zh,Ei)=>{var wn=Z(),kn=tt(),Fn=de(),Bn=hi(),Tn=Ft(),In=wn.Object;Ei.exports=Tn?function(n){return typeof n=="symbol"}:function(n){var o=kn("Symbol");return Fn(o)&&Bn(o.prototype,In(n))}});var _i=F((el,bi)=>{var Pn=Z(),Nn=Pn.String;bi.exports=function(n){try{return Nn(n)}catch{return"Object"}}});var wi=F((tl,Si)=>{var Dn=Z(),On=de(),Ln=_i(),Vn=Dn.TypeError;Si.exports=function(n){if(On(n))return n;throw Vn(Ln(n)+" is not a function")}});var Fi=F((rl,ki)=>{var Rn=wi();ki.exports=function(n,o){var u=n[o];return u==null?void 0:Rn(u)}});var Ti=F((il,Bi)=>{var jn=Z(),Tt=Ze(),It=de(),Pt=Pe(),qn=jn.TypeError;Bi.exports=function(n,o){var u,l;if(o==="string"&&It(u=n.toString)&&!Pt(l=Tt(u,n))||It(u=n.valueOf)&&!Pt(l=Tt(u,n))||o!=="string"&&It(u=n.toString)&&!Pt(l=Tt(u,n)))return l;throw qn("Can't convert object to primitive value")}});var P
`,Sa={EOL:nr,tmpdir:ar,tmpDir:sr,networkInterfaces:ba,getNetworkInterfaces:_a,release:Ea,type:Ca,cpus:Aa,totalmem:ya,freemem:xa,uptime:ga,loadavg:va,hostname:ma,endianness:da}}}),fh=Q({"node-modules-polyfills-commonjs:os"(n,o){J();var u=(ph(),hh(fa));if(u&&u.default){o.exports=u.default;for(let l in u)o.exports[l]=u[l]}else u&&(o.exports=u)}}),dh=Q({"node_modules/detect-newline/index.js"(n,o){"use strict";J();var u=l=>{if(typeof l!="string")throw new TypeError("Expected a string");let v=l.match(/(?:\r?\n)/g)||[];if(v.length===0)return;let E=v.filter(_=>_===`\r
`).length,x=v.length-E;return E>x?`\r
`:`
`};o.exports=u,o.exports.graceful=l=>typeof l=="string"&&u(l)||`
`}}),mh=Q({"node_modules/jest-docblock/build/index.js"(n){"use strict";J(),Object.defineProperty(n,"__esModule",{value:!0}),n.extract=D,n.parse=O,n.parseWithComments=S,n.print=b,n.strip=d;function o(){let A=fh();return o=function(){return A},A}function u(){let A=l(dh());return u=function(){return A},A}function l(A){return A&&A.__esModule?A:{default:A}}var v=/\*\/$/,E=/^\/\*\*?/,x=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,_=/(^|\s+)\/\/([^\r\n]*)/g,P=/^(\r?\n)+/,g=/(?:^|\r?\n) *(@[^\r\n]*?) *\r?\n *(?![^@\r\n]*\/\/[^]*)([^@\r\n\s][^@\r\n]+?) *\r?\n/g,N=/(?:^|\r?\n) *@(\S+) *([^\r\n]*)/g,q=/(\r?\n|^) *\* ?/g,T=[];function D(A){let H=A.match(x);return H?H[0].trimLeft():""}function d(A){let H=A.match(x);return H&&H[0]?A.substring(H[0].length):A}function O(A){return S(A).pragmas}function S(A){let H=(0,u().default)(A)||o().EOL;A=A.replace(E,"").replace(v,"").replace(q,"$1");let R="";for(;R!==A;)R=A,A=A.replace(g,`${H}$1 $2${H}`);A=A.replace(P,"").trimRight();let i=Object.create(null),k=A.replace(N,"").replace(P,"").trimRight(),I;for(;I=N.exec(A);){let M=I[2].replace(_,"");typeof i[I[1]]=="string"||Array.isArray(i[I[1]])?i[I[1]]=T.concat(i[I[1]],M):i[I[1]]=M}return{comments:k,pragmas:i}}function b(A){let{comments:H="",pragmas:R={}}=A,i=(0,u().default)(H)||o().EOL,k="/**",I=" *",M=" */",ee=Object.keys(R),oe=ee.map(se=>B(se,R[se])).reduce((se,De)=>se.concat(De),[]).map(se=>`${I} ${se}${i}`).join("");if(!H){if(ee.length===0)return"";if(ee.length===1&&!Array.isArray(R[ee[0]])){let se=R[ee[0]];return`${k} ${B(ee[0],se)[0]}${M}`}}let te=H.split(i).map(se=>`${I} ${se}`).join(i)+i;return k+i+(H?te:"")+(H&&ee.length?I+i:"")+oe+M}function B(A,H){return T.concat(H).map(R=>`@${A} ${R}`.trim())}}}),vh=Q({"src/common/end-of-line.js"(n,o){"use strict";J();function u(x){let _=x.indexOf("\r");return _>=0?x.charAt(_+1)===`
`?"crlf":"cr":"lf"}function l(x){switch(x){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}function v(x,_){let P;switch(_){case`
`:P=/\n/g;break;case"\r":P=/\r/g;break;case`\r
`:P=/\r\n/g;break;default:throw new Error(`Unexpected "eol" ${JSON.stringify(_)}.`)}let g=x.match(P);return g?g.length:0}function E(x){return x.replace(/\r\n?/g,`
`)}o.exports={guessEndOfLine:u,convertEndOfLineToChars:l,countEndOfLineChars:v,normalizeEndOfLine:E}}}),gh=Q({"src/language-js/utils/get-shebang.js"(n,o){"use strict";J();function u(l){if(!l.startsWith("#!"))return"";let v=l.indexOf(`
`);return v===-1?l:l.slice(0,v)}o.exports=u}}),xh=Q({"src/language-js/pragma.js"(n,o){"use strict";J();var{parseWithComments:u,strip:l,extract:v,print:E}=mh(),{normalizeEndOfLine:x}=vh(),_=gh();function P(q){let T=_(q);T&&(q=q.slice(T.length+1));let D=v(q),{pragmas:d,comments:O}=u(D);return{shebang:T,text:q,pragmas:d,comments:O}}function g(q){let T=Object.keys(P(q).pragmas);return T.includes("prettier")||T.includes("format")}function N(q){let{shebang:T,text:D,pragmas:d,comments:O}=P(q),S=l(D),b=E({pragmas:Object.assign({format:""},d),comments:O.trimStart()});return(T?`${T}
`:"")+x(b)+(S.startsWith(`
`)?`
`:`
`)+S}o.exports={hasPragma:g,insertPragma:N}}}),wa=Q({"src/utils/is-non-empty-array.js"(n,o){"use strict";J();function u(l){return Array.isArray(l)&&l.length>0}o.exports=u}}),ka=Q({"src/language-js/loc.js"(n,o){"use strict";J();var u=wa();function l(P){var g,N;let q=P.range?P.range[0]:P.start,T=(g=(N=P.declaration)===null||N===void 0?void 0:N.decorators)!==null&&g!==void 0?g:P.decorators;return u(T)?Math.min(l(T[0]),q):q}function v(P){return P.range?P.range[1]:P.end}function E(P,g){let N=l(P);return Number.isInteger(N)&&N===l(g)}function x(P,g){let N=v(P);return Number.isInteger(N)&&N===v(g)}function _(P,g){return E(P,g)&&x(P,g)}o.exports={locStart:l,locEnd:v,hasSameLocStart:E,hasSameLoc:_}}}),Fa=Q({"src/language-js/parse/utils/create-parser.js"(n,o){"use strict";J();var{hasPragma:u}=xh(),{locStart:l,locEnd:v}=ka();function E(x){return x=typeof x=="function"?{parse:x}:x,Object.assign({astFormat:"estree",hasPragma:u,locStart:l,locEnd:v},x)}o.exports=E}}),yh=Q({"src/language-js/utils/is-ts-keyword-type.js"(n,o){"use strict";J();function u(l){let{type:v}=l;return v.startsWith("TS")&&v.endsWith("Keyword")}o.exports=u}}),Ah=Q({"src/language-js/utils/is-block-comment.js"(n,o){"use strict";J();var u=new Set(["Block","CommentBlock","MultiLine"]),l=v=>u.has(v==null?void 0:v.type);o.exports=l}}),Ch=Q({"src/language-js/utils/is-type-cast-comment.js"(n,o){"use strict";J();var u=Ah();function l(v){return u(v)&&v.value[0]==="*"&&/@type\b/.test(v.value)}o.exports=l}}),Eh=Q({"src/utils/get-last.js"(n,o){"use strict";J();var u=l=>l[l.length-1];o.exports=u}}),Ba=Q({"src/language-js/parse/postprocess/visit-node.js"(n,o){"use strict";J();function u(l,v){if(Array.isArray(l)){for(let E=0;E<l.length;E++)l[E]=u(l[E],v);return l}if(l&&typeof l=="object"&&typeof l.type=="string"){let E=Object.keys(l);for(let x=0;x<E.length;x++)l[E[x]]=u(l[E[x]],v);return v(l)||l}return l}o.exports=u}}),Ta=Q({"src/language-js/parse/postprocess/throw-syntax-error.js"(n,o){"use strict";J();var u=hr();function l(v,E){let{start:x,end:_}=v.loc;throw u(E,{start:{line:x.line,column:x.column+1},end:{line:_.line,column:_.column+1}})}o.exports=l}}),bh=Q({"src/language-js/parse/postprocess/typescript.js"(n,o){"use strict";J();var u=wa(),l=Ba(),v=Ta(),E={AbstractKeyword:126,SourceFile:308,PropertyDeclaration:169};function x(N){for(;N&&N.kind!==E.SourceFile;)N=N.parent;return N}function _(N){let{illegalDecorators:q}=N;if(!u(q))return;let[{expression:T}]=q,D=x(T),[d,O]=[T.pos,T.end].map(S=>{let{line:b,character:B}=D.getLineAndCharacterOfPosition(S);return{line:b+1,column:B}});v({loc:{start:d,end:O}},"Decorators are not valid here.")}function P(N,q){N.kind!==E.PropertyDeclaration||N.modifiers&&!N.modifiers.some(T=>T.kind===E.AbstractKeyword)||N.initializer&&q.value===null&&v(q,"Abstract property cannot have an initializer")}function g(N,q){let{esTreeNodeToTSNodeMap:T,tsNodeToESTreeNodeMap:D}=q.tsParseResult;l(N,d=>{let O=T.get(d);if(!O)return;let S=D.get(O);S===d&&(_(O),P(O,S))})}o.exports={throwErrorForInvalidNodes:g}}}),Ia=Q({"src/language-js/parse/postprocess/index.js"(n,o){"use strict";J();var{locStart:u,locEnd:l}=ka(),v=yh(),E=Ch(),x=Eh(),_=Ba(),{throwErrorForInvalidNodes:P}=bh(),g=Ta();function N(d,O){if(O.parser==="typescript"&&/@|abstract/.test(O.originalText)&&P(d,O),O.parser!=="typescript"&&O.parser!=="flow"&&O.parser!=="acorn"&&O.parser!=="espree"&&O.parser!=="meriyah"){let b=new Set;d=_(d,B=>{B.leadingComments&&B.leadingComments.some(E)&&b.add(u(B))}),d=_(d,B=>{if(B.type==="ParenthesizedExpression"){let{expression:A}=B;if(A.type==="TypeCastExpression")return A.range=B.range,A;let H=u(B);if(!b.has(H))return A.extra=Object.assign(Object.assign({},A.extra),{},{parenthesized:!0}),A}})}return d=_(d,b=>{switch(b.type){case"ChainExpression":return q(b.expression);case"LogicalExpression":{if(T(b))return D(b);break}case"VariableDeclaration":{let B=x(b.declarations);B&&B.init&&S(b,B);break}case"TSParenthesizedType":return v(b.typeAnnotation)||b.typeAnnotation.type==="TSThisType"||(b.typeAnnotation.range=[u(b),l(b)]),b.typeAnnotation;case"TSTypeParameter":if(typeof b.name=="str
Defaulting to 2020, but this will stop working in the future.`)),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),t.allowReserved==null&&(t.allowReserved=t.ecmaVersion<5),e.allowHashBang==null&&(t.allowHashBang=t.ecmaVersion>=14),w(t.onToken)){var s=t.onToken;t.onToken=function(a){return s.push(a)}}return w(t.onComment)&&(t.onComment=pt(t,t.onComment)),t}function pt(e,t){return function(r,s,a,h,c,m){var y={type:r?"Block":"Line",value:s,start:a,end:h};e.locations&&(y.loc=new re(this,c,m)),e.ranges&&(y.range=[a,h]),t.push(y)}}var be=1,xe=2,Oe=4,ze=8,lr=16,cr=32,ft=64,pr=128,Le=256,dt=be|xe|Le;function mt(e,t){return xe|(e?Oe:0)|(t?ze:0)}var We=0,vt=1,me=2,fr=3,dr=4,mr=5,$=function(t,r,s){this.options=t=ct(t),this.sourceFile=t.sourceFile,this.keywords=f(g[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var a="";t.allowReserved!==!0&&(a=_[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(a+=" await")),this.reservedWords=f(a);var h=(a?a+" ":"")+_.strict;this.reservedWordsStrict=f(h),this.reservedWordsStrictBind=f(h+" "+_.strictBind),this.input=String(r),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(k).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=i.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=t.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&t.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(be),this.regexpState=null,this.privateNameStack=[]},pe={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};$.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)},pe.inFunction.get=function(){return(this.currentVarScope().flags&xe)>0},pe.inGenerator.get=function(){return(this.currentVarScope().flags&ze)>0&&!this.currentVarScope().inClassFieldInit},pe.inAsync.get=function(){return(this.currentVarScope().flags&Oe)>0&&!this.currentVarScope().inClassFieldInit},pe.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Le)return!1;if(t.flags&xe)return(t.flags&Oe)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},pe.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&ft)>0||r||this.options.allowSuperOutsideMethod},pe.allowDirectSuper.get=function(){return(this.currentThisScope().flags&pr)>0},pe.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},pe.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,r=e.inClassFieldInit;return(t&(xe|Le))>0||r},pe.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Le)>0},$.extend=function(){for(var t=[],r=arguments.length;r--;)t[r]=arguments[r];for(var s=this,a=0;a<t.length;a++)s=t[a](s);return s},$.parse=function(t,r){return new this(r,t).parse()},$.parseExpressionAt=function(t,r,s){var a=new this(s,t,r);return a.nextToken(),a.parseExpression()},$.tokenizer=function(t,r){return new this(r,t)},Object.defineProperties($.prototype,pe);var ae=$.prototype,Da=/^(?:'((?:\\.|[^'\\])*?)'|"((?:\\.|[^"\\])*?)")/;ae.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){te.lastIndex=e,e+=te.exec(this.input)[0].length;var t=Da.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){te.lastIndex=e+t[0].length;var r=te.exec(this.input),s=r.index+r[0].length,a=this.input.charAt(s);return a===";"||a==="}"||k.test(r[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(a)||a==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,te.lastIndex=e,e+=te.exec(this.input)[0].length,this.input[e]===";"&&e++}},ae.eat=function(e){return this.type===e?(this.next(),!0):!1},ae.isContextual=function(e){return this.type===i.name&&this.value===e&&!this.containsEsc},ae.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1},ae.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},ae.canInsertSemicolon=function(){return this.type===i.eof||this.type===i.braceR||k.test(this.input.slice(this.lastTokEnd,this.start))},ae.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ae.semicolon=function(){!this.eat(i.semi)&&!this.insertSemicolon()&&this.unexpected()},ae.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTo
`),cooked:this.value},this.next(),r.tail=this.type===i.backQuote,this.finishNode(r,"TemplateElement")},z.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var r=this.startNode();this.next(),r.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(r.quasis=[s];!s.tail;)this.type===i.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(i.dollarBraceL),r.expressions.push(this.parseExpression()),this.expect(i.braceR),r.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(r,"TemplateLiteral")},z.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===i.name||this.type===i.num||this.type===i.string||this.type===i.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===i.star)&&!k.test(this.input.slice(this.lastTokEnd,this.start))},z.parseObj=function(e,t){var r=this.startNode(),s=!0,a={};for(r.properties=[],this.next();!this.eat(i.braceR);){if(s)s=!1;else if(this.expect(i.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(i.braceR))break;var h=this.parseProperty(e,t);e||this.checkPropClash(h,a,t),r.properties.push(h)}return this.finishNode(r,e?"ObjectPattern":"ObjectExpression")},z.parseProperty=function(e,t){var r=this.startNode(),s,a,h,c;if(this.options.ecmaVersion>=9&&this.eat(i.ellipsis))return e?(r.argument=this.parseIdent(!1),this.type===i.comma&&this.raise(this.start,"Comma is not permitted after the rest element"),this.finishNode(r,"RestElement")):(r.argument=this.parseMaybeAssign(!1,t),this.type===i.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(r,"SpreadElement"));this.options.ecmaVersion>=6&&(r.method=!1,r.shorthand=!1,(e||t)&&(h=this.start,c=this.startLoc),e||(s=this.eat(i.star)));var m=this.containsEsc;return this.parsePropertyName(r),!e&&!m&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(r)?(a=!0,s=this.options.ecmaVersion>=9&&this.eat(i.star),this.parsePropertyName(r,t)):a=!1,this.parsePropertyValue(r,e,s,a,h,c,t,m),this.finishNode(r,"Property")},z.parsePropertyValue=function(e,t,r,s,a,h,c,m){if((r||s)&&this.type===i.colon&&this.unexpected(),this.eat(i.colon))e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,c),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===i.parenL)t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(r,s);else if(!t&&!m&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==i.comma&&this.type!==i.braceR&&this.type!==i.eq){(r||s)&&this.unexpected(),e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var y=e.kind==="get"?0:1;if(e.value.params.length!==y){var U=e.value.start;e.kind==="get"?this.raiseRecoverable(U,"getter should have no params"):this.raiseRecoverable(U,"setter should have exactly one param")}else e.kind==="set"&&e.value.params[0].type==="RestElement"&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")}else this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((r||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=a),e.kind="init",t?e.value=this.parseMaybeDefault(a,h,this.copyNode(e.key)):this.type===i.eq&&c?(c.shorthandAssign<0&&(c.shorthandAssign=this.start),e.value=this.parseMaybeDefault(a,h,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()},z.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(i.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(i.bracketR),e.key;e.computed=!1}return e.key=this.type===i.num||this.type===i.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},z.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},z.parseMethod=function(e,t,r){var s=this.startNode(),a=this.yieldPos,h=this.awaitPos,c=this.awaitIdentPos;ret
`;break;default:e+=String.fromCharCode(r);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},G.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(i.invalidTemplate,this.input.slice(this.start,this.pos))}this.raise(this.start,"Unterminated template")},G.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return`
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return C(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var r=this.pos-1;return this.invalidStringToken(r,"Invalid escape sequence in template string"),null}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],a=parseInt(s,8);return a>255&&(s=s.slice(0,-1),a=parseInt(s,8)),this.pos+=s.length-1,t=this.input.charCodeAt(this.pos),(s!=="0"||t===56||t===57)&&(this.strict||e)&&this.invalidStringToken(this.pos-1-s.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(a)}return M(t)?"":String.fromCharCode(t)}},G.readHexChar=function(e){var t=this.pos,r=this.readInt(16,e);return r===null&&this.invalidStringToken(t,"Bad character escape sequence"),r},G.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,r=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var a=this.fullCharCodeAtPos();if(O(a,s))this.pos+=a<=65535?1:2;else if(a===92){this.containsEsc=!0,e+=this.input.slice(r,this.pos);var h=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var c=this.readCodePoint();(t?d:O)(c,s)||this.invalidStringToken(h,"Invalid Unicode escape"),e+=C(c),r=this.pos}else break;t=!1}return e+this.input.slice(r,this.pos)},G.readWord=function(){var e=this.readWord1(),t=i.name;return this.keywords.test(e)&&(t=H[e]),this.finishToken(t,e)};var Rr="8.8.0";$.acorn={Parser:$,version:Rr,defaultOptions:ce,Position:K,SourceLocation:re,getLineInfo:ne,Node:Re,TokenType:S,tokTypes:i,keywordTypes:H,TokContext:ue,tokContexts:Y,isIdentifierChar:O,isIdentifierStart:d,Token:Je,isNewLine:M,lineBreak:k,lineBreakG:I,nonASCIIwhitespace:oe};function $a(e,t){return $.parse(e,t)}function Za(e,t,r){return $.parseExpressionAt(e,t,r)}function en(e,t){return $.tokenizer(e,t)}u.Node=Re,u.Parser=$,u.Position=K,u.SourceLocation=re,u.TokContext=ue,u.Token=Je,u.TokenType=S,u.defaultOptions=ce,u.getLineInfo=ne,u.isIdentifierChar=O,u.isIdentifierStart=d,u.isNewLine=M,u.keywordTypes=H,u.lineBreak=k,u.lineBreakG=I,u.nonASCIIwhitespace=oe,u.parse=$a,u.parseExpressionAt=Za,u.tokContexts=Y,u.tokTypes=i,u.tokenizer=en,u.version=Rr,Object.defineProperty(u,"__esModule",{value:!0})})}}),_h=Q({"node_modules/acorn-jsx/xhtml.js"(n,o){J(),o.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u039
`:`\r
`):I=String.fromCharCode(k),this.options.locations&&(++this.curLine,this.lineStart=this.pos),I}jsx_readString(i){let k="",I=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let M=this.input.charCodeAt(this.pos);if(M===i)break;M===38?(k+=this.input.slice(I,this.pos),k+=this.jsx_readEntity(),I=this.pos):A(M)?(k+=this.input.slice(I,this.pos),k+=this.jsx_readNewLine(!1),I=this.pos):++this.pos}return k+=this.input.slice(I,this.pos++),this.finishToken(D.string,k)}jsx_readEntity(){let i="",k=0,I,M=this.input[this.pos];M!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let ee=++this.pos;for(;this.pos<this.input.length&&k++<10;){if(M=this.input[this.pos++],M===";"){i[0]==="#"?i[1]==="x"?(i=i.substr(2),l.test(i)&&(I=String.fromCharCode(parseInt(i,16)))):(i=i.substr(1),v.test(i)&&(I=String.fromCharCode(parseInt(i,10)))):I=u[i];break}i+=M}return I||(this.pos=ee,"&")}jsx_readWord(){let i,k=this.pos;do i=this.input.charCodeAt(++this.pos);while(R(i)||i===45);return this.finishToken(d.jsxName,this.input.slice(k,this.pos))}jsx_parseIdentifier(){let i=this.startNode();return this.type===d.jsxName?i.name=this.value:this.type.keyword?i.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(i,"JSXIdentifier")}jsx_parseNamespacedName(){let i=this.start,k=this.startLoc,I=this.jsx_parseIdentifier();if(!g.allowNamespaces||!this.eat(D.colon))return I;var M=this.startNodeAt(i,k);return M.namespace=I,M.name=this.jsx_parseIdentifier(),this.finishNode(M,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===d.jsxTagEnd)return"";let i=this.start,k=this.startLoc,I=this.jsx_parseNamespacedName();for(this.type===D.dot&&I.type==="JSXNamespacedName"&&!g.allowNamespacedObjects&&this.unexpected();this.eat(D.dot);){let M=this.startNodeAt(i,k);M.object=I,M.property=this.jsx_parseIdentifier(),I=this.finishNode(M,"JSXMemberExpression")}return I}jsx_parseAttributeValue(){switch(this.type){case D.braceL:let i=this.jsx_parseExpressionContainer();return i.expression.type==="JSXEmptyExpression"&&this.raise(i.start,"JSX attributes must only be assigned a non-empty expression"),i;case d.jsxTagStart:case D.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let i=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(i,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let i=this.startNode();return this.next(),i.expression=this.type===D.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(D.braceR),this.finishNode(i,"JSXExpressionContainer")}jsx_parseAttribute(){let i=this.startNode();return this.eat(D.braceL)?(this.expect(D.ellipsis),i.argument=this.parseMaybeAssign(),this.expect(D.braceR),this.finishNode(i,"JSXSpreadAttribute")):(i.name=this.jsx_parseNamespacedName(),i.value=this.eat(D.eq)?this.jsx_parseAttributeValue():null,this.finishNode(i,"JSXAttribute"))}jsx_parseOpeningElementAt(i,k){let I=this.startNodeAt(i,k);I.attributes=[];let M=this.jsx_parseElementName();for(M&&(I.name=M);this.type!==D.slash&&this.type!==d.jsxTagEnd;)I.attributes.push(this.jsx_parseAttribute());return I.selfClosing=this.eat(D.slash),this.expect(d.jsxTagEnd),this.finishNode(I,M?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(i,k){let I=this.startNodeAt(i,k),M=this.jsx_parseElementName();return M&&(I.name=M),this.expect(d.jsxTagEnd),this.finishNode(I,M?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(i,k){let I=this.startNodeAt(i,k),M=[],ee=this.jsx_parseOpeningElementAt(i,k),oe=null;if(!ee.selfClosing){e:for(;;)switch(this.type){case d.jsxTagStart:if(i=this.start,k=this.startLoc,this.next(),this.eat(D.slash)){oe=this.jsx_parseClosingElementAt(i,k);break e}M.push(this.jsx_parseElementAt(i,k));break;case d.jsxText:M.push(this.parseExprAtom());break;case D.braceL:M.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}_(oe.name)!==_(ee.name)&&this.raise(oe.start,"Expected correspon
`,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(C+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,C)}jsx_readString(f){let C=super.jsx_readString(f);return this.type===L.string&&(this[B].jsxAttrValueToken=!0),C}[A](f){return f.type==="TemplateElement"&&this[B].templateElements.push(f),f.type.includes("Function")&&!f.generator&&(f.generator=!1),f}}},i="9.4.0",k={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=x.Parser.extend(R())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=x.Parser.extend(_.default(),R())),this._jsx},get(p){return Boolean(p&&p.ecmaFeatures&&p.ecmaFeatures.jsx)?this.jsx:this.regular}};function I(p,L){let w=k.get(L);return(!L||L.tokens!==!0)&&(L=Object.assign({},L,{tokens:!0})),new w(L,p).tokenize()}function M(p,L){let w=k.get(L);return new w(L,p).parse()}var ee=i,oe=function(){return P.KEYS}(),te=void 0,se=D(),De=d();n.Syntax=te,n.VisitorKeys=oe,n.latestEcmaVersion=se,n.parse=M,n.supportedEcmaVersions=De,n.tokenize=I,n.version=ee}}),Fh=Q({"src/language-js/parse/espree.js"(n,o){"use strict";J();var u=hr(),l=pa(),v=Fa(),E=wh(),x=Ia(),_={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function P(N){let{message:q,lineNumber:T,column:D}=N;return typeof T!="number"?N:u(q,{start:{line:T,column:D}})}function g(N,q){let T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},{parse:D}=kh(),d=E(N),{result:O,error:S}=l(()=>D(d,Object.assign(Object.assign({},_),{},{sourceType:"module"})),()=>D(d,Object.assign(Object.assign({},_),{},{sourceType:"script"})));if(!O)throw P(S);return T.originalText=N,x(O,T)}o.exports=v(g)}});J();var Bh=Sh(),Th=Fh();Na.exports={parsers:{acorn:Bh,espree:Th}}});return Ih();});