Initial commit

This commit is contained in:
robert committed 2025-05-30 18:13:30 +08:00
commit e49726988c
5445 files changed
+1089914

No files matched your search

+6
View File
@@ -0,0 +1,6 @@
import { Parser } from "../index.js";
export declare const parsers: {
acorn: Parser;
espree: Parser;
};
+15
View File
@@ -0,0 +1,15 @@
(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.acorn=e()}})(function(){"use strict";var di=Object.create;var ce=Object.defineProperty;var mi=Object.getOwnPropertyDescriptor;var xi=Object.getOwnPropertyNames;var yi=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty;var Ze=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vi=(e,t)=>{for(var i in t)ce(e,i,{get:t[i],enumerable:!0})},$e=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xi(t))!gi.call(e,r)&&r!==i&&ce(e,r,{get:()=>t[r],enumerable:!(s=mi(t,r))||s.enumerable});return e};var et=(e,t,i)=>(i=e!=null?di(yi(e)):{},$e(t||!e||!e.__esModule?ce(i,"default",{value:e,enumerable:!0}):i,e)),bi=e=>$e(ce({},"__esModule",{value:!0}),e);var Gt=Ze((Ys,qt)=>{qt.exports={}});var Je=Ze((Zs,Ge)=>{"use strict";var ns=Gt(),os=/^[\da-fA-F]+$/,us=/^\d+$/,Jt=new WeakMap;function Kt(e){e=e.Parser.acorn||e;let t=Jt.get(e);if(!t){let i=e.tokTypes,s=e.TokContext,r=e.TokenType,n=new s("<tag",!1),o=new s("</tag",!1),u=new s("<tag>...</tag>",!0,!0),p={tc_oTag:n,tc_cTag:o,tc_expr:u},d={jsxName:new r("jsxName"),jsxText:new r("jsxText",{beforeExpr:!0}),jsxTagStart:new r("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new r("jsxTagEnd")};d.jsxTagStart.updateContext=function(){this.context.push(u),this.context.push(n),this.exprAllowed=!1},d.jsxTagEnd.updateContext=function(f){let C=this.context.pop();C===n&&f===i.slash||C===o?(this.context.pop(),this.exprAllowed=this.curContext()===u):this.exprAllowed=!0},t={tokContexts:p,tokTypes:d},Jt.set(e,t)}return t}function ne(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ne(e.object)+"."+ne(e.property)}Ge.exports=function(e){return e=e||{},function(t){return ps({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}};Object.defineProperty(Ge.exports,"tokTypes",{get:function(){return Kt(void 0).tokTypes},configurable:!0,enumerable:!0});function ps(e,t){let i=t.acorn||void 0,s=Kt(i),r=i.tokTypes,n=s.tokTypes,o=i.tokContexts,u=s.tokContexts.tc_oTag,p=s.tokContexts.tc_cTag,d=s.tokContexts.tc_expr,f=i.isNewLine,C=i.isIdentifierStart,B=i.isIdentifierChar;return class extends t{static get acornJsx(){return s}jsx_readToken(){let h="",m=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let x=this.input.charCodeAt(this.pos);switch(x){case 60:case 123:return this.pos===this.start?x===60&&this.exprAllowed?(++this.pos,this.finishToken(n.jsxTagStart)):this.getTokenFromCode(x):(h+=this.input.slice(m,this.pos),this.finishToken(n.jsxText,h));case 38:h+=this.input.slice(m,this.pos),h+=this.jsx_readEntity(),m=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(x===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:f(x)?(h+=this.input.slice(m,this.pos),h+=this.jsx_readNewLine(!0),m=this.pos):++this.pos}}}jsx_readNewLine(h){let m=this.input.charCodeAt(this.pos),x;return++this.pos,m===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,x=h?`
`:`\r
`):x=String.fromCharCode(m),this.options.locations&&(++this.curLine,this.lineStart=this.pos),x}jsx_readString(h){let m="",x=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let g=this.input.charCodeAt(this.pos);if(g===h)break;g===38?(m+=this.input.slice(x,this.pos),m+=this.jsx_readEntity(),x=this.pos):f(g)?(m+=this.input.slice(x,this.pos),m+=this.jsx_readNewLine(!1),x=this.pos):++this.pos}return m+=this.input.slice(x,this.pos++),this.finishToken(r.string,m)}jsx_readEntity(){let h="",m=0,x,g=this.input[this.pos];g!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let w=++this.pos;for(;this.pos<this.input.length&&m++<10;){if(g=this.input[this.pos++],g===";"){h[0]==="#"?h[1]==="x"?(h=h.substr(2),os.test(h)&&(x=String.fromCharCode(parseInt(h,16)))):(h=h.substr(1),us.test(h)&&(x=String.fromCharCode(parseInt(h,10)))):x=ns[h];break}h+=g}return x||(this.pos=w,"&")}jsx_readWord(){let h,m=this.pos;do h=this.input.charCodeAt(++this.pos);while(B(h)||h===45);return this.finishToken(n.jsxName,this.input.slice(m,this.pos))}jsx_parseIdentifier(){let h=this.startNode();return this.type===n.jsxName?h.name=this.value:this.type.keyword?h.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(h,"JSXIdentifier")}jsx_parseNamespacedName(){let h=this.start,m=this.startLoc,x=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(r.colon))return x;var g=this.startNodeAt(h,m);return g.namespace=x,g.name=this.jsx_parseIdentifier(),this.finishNode(g,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===n.jsxTagEnd)return"";let h=this.start,m=this.startLoc,x=this.jsx_parseNamespacedName();for(this.type===r.dot&&x.type==="JSXNamespacedName"&&!e.allowNamespacedObjects&&this.unexpected();this.eat(r.dot);){let g=this.startNodeAt(h,m);g.object=x,g.property=this.jsx_parseIdentifier(),x=this.finishNode(g,"JSXMemberExpression")}return x}jsx_parseAttributeValue(){switch(this.type){case r.braceL:let h=this.jsx_parseExpressionContainer();return h.expression.type==="JSXEmptyExpression"&&this.raise(h.start,"JSX attributes must only be assigned a non-empty expression"),h;case n.jsxTagStart:case r.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let h=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(h,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let h=this.startNode();return this.next(),h.expression=this.type===r.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(r.braceR),this.finishNode(h,"JSXExpressionContainer")}jsx_parseAttribute(){let h=this.startNode();return this.eat(r.braceL)?(this.expect(r.ellipsis),h.argument=this.parseMaybeAssign(),this.expect(r.braceR),this.finishNode(h,"JSXSpreadAttribute")):(h.name=this.jsx_parseNamespacedName(),h.value=this.eat(r.eq)?this.jsx_parseAttributeValue():null,this.finishNode(h,"JSXAttribute"))}jsx_parseOpeningElementAt(h,m){let x=this.startNodeAt(h,m);x.attributes=[];let g=this.jsx_parseElementName();for(g&&(x.name=g);this.type!==r.slash&&this.type!==n.jsxTagEnd;)x.attributes.push(this.jsx_parseAttribute());return x.selfClosing=this.eat(r.slash),this.expect(n.jsxTagEnd),this.finishNode(x,g?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(h,m){let x=this.startNodeAt(h,m),g=this.jsx_parseElementName();return g&&(x.name=g),this.expect(n.jsxTagEnd),this.finishNode(x,g?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(h,m){let x=this.startNodeAt(h,m),g=[],w=this.jsx_parseOpeningElementAt(h,m),he=null;if(!w.selfClosing){e:for(;;)switch(this.type){case n.jsxTagStart:if(h=this.start,m=this.startLoc,this.next(),this.eat(r.slash)){he=this.jsx_parseClosingElementAt(h,m);break e}g.push(this.jsx_parseElementAt(h,m));break;case n.jsxText:g.push(this.parseExprAtom());break;case r.braceL:g.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}ne(he.name)!==ne(w.name)&&this.raise(he.start,"Expected corresponding JSX closing tag for <"+ne(w.name)+">")}let we=w.name?"Element":"Fragment";return x["opening"+we]=w,x["closing"+we]=he,x.children=g,this.type===r.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(x,"JSX"+we)}jsx_parseText(){let h=this.parseLiteral(this.value);return h.type="JSXText",h}jsx_parseElement(){let h=this.start,m=this.startLoc;return this.next(),this.jsx_parseElementAt(h,m)}parseExprAtom(h){return this.type===n.jsxText?this.jsx_parseText():this.type===n.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(h)}readToken(h){let m=this.curContext();if(m===d)return this.jsx_readToken();if(m===u||m===p){if(C(h))return this.jsx_readWord();if(h==62)return++this.pos,this.finishToken(n.jsxTagEnd);if((h===34||h===39)&&m==u)return this.jsx_readString(h)}return h===60&&this.exprAllowed&&this.input.charCodeAt(th Line truncated
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||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),tt(t.onToken)){var s=t.onToken;t.onToken=function(r){return s.push(r)}}return tt(t.onComment)&&(t.onComment=Vi(t,t.onComment)),t}function Vi(e,t){return function(i,s,r,n,o,u){var p={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(p.loc=new ye(this,o,u)),e.ranges&&(p.range=[r,n]),t.push(p)}}var se=1,Z=2,Be=4,lt=8,ft=16,dt=32,De=64,mt=128,re=256,Fe=se|Z|re;function je(e,t){return Z|(e?Be:0)|(t?lt:0)}var fe=0,Me=1,G=2,xt=3,yt=4,gt=5,T=function(t,i,s){this.options=t=Ni(t),this.sourceFile=t.sourceFile,this.keywords=K(_i[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=Ae[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=K(r);var n=(r?r+" ":"")+Ae.strict;this.reservedWordsStrict=K(n),this.reservedWordsStrictBind=K(n+" "+Ae.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(L).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.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(se),this.regexpState=null,this.privateNameStack=[]},F={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}};T.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};F.inFunction.get=function(){return(this.currentVarScope().flags&Z)>0};F.inGenerator.get=function(){return(this.currentVarScope().flags&lt)>0&&!this.currentVarScope().inClassFieldInit};F.inAsync.get=function(){return(this.currentVarScope().flags&Be)>0&&!this.currentVarScope().inClassFieldInit};F.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&re)return!1;if(t.flags&Z)return(t.flags&Be)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};F.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&De)>0||i||this.options.allowSuperOutsideMethod};F.allowDirectSuper.get=function(){return(this.currentThisScope().flags&mt)>0};F.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};F.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(Z|re))>0||i};F.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&re)>0};T.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,r=0;r<t.length;r++)s=t[r](s);return s};T.parse=function(t,i){return new this(i,t).parse()};T.parseExpressionAt=function(t,i,s){var r=new this(s,t,i);return r.nextToken(),r.parseExpression()};T.tokenizer=function(t,i){return new this(i,t)};Object.defineProperties(T.prototype,F);var k=T.prototype,Li=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;k.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){N.lastIndex=e,e+=N.exec(this.input)[0].length;var t=Li.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){N.lastIndex=e+t[0].length;var i=N.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return r===";"||r==="}"||L.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,N.lastIndex=e,e+=N.exec(this.input)[0].length,this.input[e]===";"&&e++}};k.eat=function(e){return this.type===e?(this.next(),!0):!1};k.isContextual=function(e){return this.type===a.name&&this.value===e&&!this.containsEsc};k.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};k.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};k.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||L.test(this.input.slice(this.lastTokEnd,this.start))};k.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};k.semicolon=function(){!this.eat(a.semi)&&!this.insertSemicolon()&&this.unexpected()};k.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};k.expect=function(e){this.eat(e)||this.unexpected()};k.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var ge=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};k.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};k.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};k.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<Line truncated
`),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
`),cooked:this.value},this.next(),i.tail=this.type===a.backQuote,this.finishNode(i,"TemplateElement")};y.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(a.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};y.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!L.test(this.input.slice(this.lastTokEnd,this.start))};y.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(a.braceR);){if(s)s=!1;else if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};y.parseProperty=function(e,t){var i=this.startNode(),s,r,n,o;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===a.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(n=this.start,o=this.startLoc),e||(s=this.eat(a.star)));var u=this.containsEsc;return this.parsePropertyName(i),!e&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,s,r,n,o,t,u),this.finishNode(i,"Property")};y.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"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")};y.parsePropertyValue=function(e,t,i,s,r,n,o,u){(i||s)&&this.type===a.colon&&this.unexpected(),this.eat(a.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===a.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),e.kind="init",t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===a.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};y.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(a.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(a.bracketR),e.key;e.computed=!1}return e.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};y.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};y.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(je(t,s.generator)|De|(i?mt:0)),this.expect(a.parenL),s.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(s,"FunctionExpression")};y.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(je(i,!1)|ft),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.f Line truncated
`;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};v.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(a.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
`&&++this.pos;case`
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};v.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 U(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 i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=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(r)}return Q(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};v.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};v.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(H(r,s))this.pos+=r<=65535?1:2;else if(r===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?M:H)(o,s)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=U(o),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)};v.readWord=function(){var e=this.readWord1(),t=a.name;return this.keywords.test(e)&&(t=Oe[e]),this.finishToken(t,e)};var rs="8.14.0";T.acorn={Parser:T,version:rs,defaultOptions:Ve,Position:ie,SourceLocation:ye,getLineInfo:ct,Node:ve,TokenType:S,tokTypes:a,keywordTypes:Oe,TokContext:D,tokContexts:_,isIdentifierChar:H,isIdentifierStart:M,Token:qe,isNewLine:Q,lineBreak:L,lineBreakG:wi,nonASCIIwhitespace:pt};var ni=et(Je(),1);function hs(e,t){let i=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(i,t)}var Se=hs;function cs(e){let t=[];for(let i of e)try{return i()}catch(s){t.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var Ce=cs;var ls=(e,t,i)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[i<0?t.length+i:i]:t.at(i)},X=ls;function fs(e){return Array.isArray(e)&&e.length>0}var Wt=fs;function O(e){var s,r,n;let t=((s=e.range)==null?void 0:s[0])??e.start,i=(n=((r=e.declaration)==null?void 0:r.decorators)??e.decorators)==null?void 0:n[0];return i?Math.min(O(i),t):t}function J(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function ds(e){let t=new Set(e);return i=>t.has(i==null?void 0:i.type)}var Xt=ds;var ms=Xt(["Block","CommentBlock","MultiLine"]),oe=ms;function xs(e){let t=`*${e.value}*`.split(`
`);return t.length>1&&t.every(i=>i.trimStart()[0]==="*")}var Ke=xs;function ys(e){return oe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var zt=ys;var ue=null;function pe(e){if(ue!==null&&typeof ue.property){let t=ue;return ue=pe.prototype=null,t}return ue=pe.prototype=e??Object.create(null),new pe}var gs=10;for(let e=0;e<=gs;e++)pe();function We(e){return pe(e)}function vs(e,t="type"){We(e);function i(s){let r=s[t],n=e[r];if(!Array.isArray(n))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:s});return n}return i}var Ht=vs;var Qt={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[] Line truncated
`;e=ee(!1,e.replace(Ts,"").replace(_s,""),As,"$1");let i="";for(;i!==e;)i=e,e=ee(!1,e,ws,`${t}$1 $2${t}`);e=e.replace($t,"").trimEnd();let s=Object.create(null),r=ee(!1,e,ei,"").replace($t,"").trimEnd(),n;for(;n=ei.exec(e);){let o=ee(!1,n[2],Es,"");if(typeof s[n[1]]=="string"||Array.isArray(s[n[1]])){let u=s[n[1]];s[n[1]]=[...Ps,...Array.isArray(u)?u:[u],o]}else s[n[1]]=o}return{comments:r,pragmas:s}}function Is(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
`);return t===-1?e:e.slice(0,t)}var si=Is;function Ns(e){let t=si(e);t&&(e=e.slice(t.length+1));let i=ti(e),{pragmas:s,comments:r}=ii(i);return{shebang:t,text:e,pragmas:s,comments:r}}function ri(e){let{pragmas:t}=Ns(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function Vs(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:ri,locStart:O,locEnd:J,...e}}var ke=Vs;function Ls(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var Ee=Ls;var Rs={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function Os(e){let{message:t,loc:i}=e;if(!i)return e;let{line:s,column:r}=i;return Se(t.replace(/ \(\d+:\d+\)$/u,""),{loc:{start:{line:s,column:r+1}},cause:e})}var ai,Bs=()=>(ai??(ai=T.extend((0,ni.default)())),ai);function Ds(e,t){let i=Bs(),s=[],r=[],n=i.parse(e,{...Rs,sourceType:t,allowImportExportEverywhere:t==="module",onComment:s,onToken:r});return n.comments=s,n.tokens=r,n}function Fs(e,t={}){let i=Ee(t),s=(i?[i]:["module","script"]).map(n=>()=>Ds(e,n)),r;try{r=Ce(s)}catch({errors:[n]}){throw Os(n)}return Te(r,{text:e})}var oi=ke(Fs);var ci=et(Je(),1);var E={Boolean:"Boolean",EOF:"<end>",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function js(e,t){let i=e[0],s=X(!1,e,-1),r={type:E.Template,value:t.slice(i.start,s.end)};return i.loc&&(r.loc={start:i.loc.start,end:s.loc.end}),i.range&&(r.start=i.range[0],r.end=s.range[1],r.range=[r.start,r.end]),r}function He(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}He.prototype={constructor:He,translate(e,t){let i=e.type,s=this._acornTokTypes;if(i===s.name)e.type=E.Identifier,e.value==="static"&&(e.type=E.Keyword),t.ecmaVersion>5&&(e.value==="yield"||e.value==="let")&&(e.type=E.Keyword);else if(i===s.privateId)e.type=E.PrivateIdentifier;else if(i===s.semi||i===s.comma||i===s.parenL||i===s.parenR||i===s.braceL||i===s.braceR||i===s.dot||i===s.bracketL||i===s.colon||i===s.question||i===s.bracketR||i===s.ellipsis||i===s.arrow||i===s.jsxTagStart||i===s.incDec||i===s.starstar||i===s.jsxTagEnd||i===s.prefix||i===s.questionDot||i.binop&&!i.keyword||i.isAssign)e.type=E.Punctuator,e.value=this._code.slice(e.start,e.end);else if(i===s.jsxName)e.type=E.JSXIdentifier;else if(i.label==="jsxText"||i===s.jsxAttrValueToken)e.type=E.JSXText;else if(i.keyword)i.keyword==="true"||i.keyword==="false"?e.type=E.Boolean:i.keyword==="null"?e.type=E.Null:e.type=E.Keyword;else if(i===s.num)e.type=E.Numeric,e.value=this._code.slice(e.start,e.end);else if(i===s.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=E.JSXText):e.type=E.String,e.value=this._code.slice(e.start,e.end);else if(i===s.regexp){e.type=E.RegularExpression;let r=e.value;e.regex={flags:r.flags,pattern:r.pattern},e.value=`/${r.pattern}/${r.flags}`}return e},onToken(e,t){let i=this._acornTokTypes,s=t.tokens,r=this._tokens,n=()=>{s.push(js(this._tokens,this._code)),this._tokens=[]};if(e.type===i.eof){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t));return}if(e.type===i.backQuote){this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),r.push(e),r.length>1&&n();return}if(e.type===i.dollarBraceL){r.push(e),n();return}if(e.type===i.braceR){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===i.template||e.type===i.invalidTemplate){this._curlyBrace&&(r.push(this._curlyBrace),this._curlyBrace=null),r.push(e);return}this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),s.push(this.translate(e,t))}};var ui=He;var pi=[3,5,6,7,8,9,10,11,12,13,14,15,16];function Ms(){return X(!1,pi,-1)}function Us(e=5){let t=e==="latest"?Ms():e;if(typeof t!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!pi.includes(t))throw new Error("Invalid ecmaVersion.");return t}function qs(e="script"){if(e==="script"||e==="module")return e;if(e==="commonjs")return"script";throw new Error("Invalid sourceType.")}function hi(e){let t=Us(e.ecmaVersion),i=qs(e.sourceType),s=e.range===!0,r=e.loc===!0;if(t!==3&&e.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof e.allowReserved<"u"&&typeof e.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let n=t===3?e.allowReserved||"never":!1,o=e.ecmaFeatures||{},u=e.sourceType==="commonjs"||!!o.globalReturn;if(i==="module"&&t<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the p Line truncated
`,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(r+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,r)}jsx_readString(s){let r=super.jsx_readString(s);return this.type===t.string&&(this[z].jsxAttrValueToken=!0),r}[Qe](s){return s.type==="TemplateElement"&&this[z].templateElements.push(s),s.type.includes("Function")&&!s.generator&&(s.generator=!1),s}}};var Js={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=T.extend(Ye())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=T.extend((0,ci.default)(),Ye())),this._jsx},get(e){return!!(e&&e.ecmaFeatures&&e.ecmaFeatures.jsx)?this.jsx:this.regular}};function li(e,t){let i=Js.get(t);return new i(t,e).parse()}var Ks={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function Ws(e){let{message:t,lineNumber:i,column:s}=e;return typeof i!="number"?e:Se(t,{loc:{start:{line:i,column:s}},cause:e})}function Xs(e,t={}){let i=Ee(t),s=(i?[i]:["module","script"]).map(n=>()=>li(e,{...Ks,sourceType:n})),r;try{r=Ce(s)}catch({errors:[n]}){throw Ws(n)}return Te(r,{text:e})}var fi=ke(Xs);var zs={acorn:oi,espree:fi};return bi(Hs);});
+15
View File
@@ -0,0 +1,15 @@
var di=Object.create;var we=Object.defineProperty;var mi=Object.getOwnPropertyDescriptor;var xi=Object.getOwnPropertyNames;var yi=Object.getPrototypeOf,gi=Object.prototype.hasOwnProperty;var $e=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),vi=(e,t)=>{for(var i in t)we(e,i,{get:t[i],enumerable:!0})},bi=(e,t,i,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of xi(t))!gi.call(e,r)&&r!==i&&we(e,r,{get:()=>t[r],enumerable:!(s=mi(t,r))||s.enumerable});return e};var et=(e,t,i)=>(i=e!=null?di(yi(e)):{},bi(t||!e||!e.__esModule?we(i,"default",{value:e,enumerable:!0}):i,e));var Gt=$e((Qs,qt)=>{qt.exports={}});var Je=$e((Ys,Ge)=>{"use strict";var ns=Gt(),os=/^[\da-fA-F]+$/,us=/^\d+$/,Jt=new WeakMap;function Kt(e){e=e.Parser.acorn||e;let t=Jt.get(e);if(!t){let i=e.tokTypes,s=e.TokContext,r=e.TokenType,n=new s("<tag",!1),o=new s("</tag",!1),u=new s("<tag>...</tag>",!0,!0),p={tc_oTag:n,tc_cTag:o,tc_expr:u},d={jsxName:new r("jsxName"),jsxText:new r("jsxText",{beforeExpr:!0}),jsxTagStart:new r("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new r("jsxTagEnd")};d.jsxTagStart.updateContext=function(){this.context.push(u),this.context.push(n),this.exprAllowed=!1},d.jsxTagEnd.updateContext=function(f){let C=this.context.pop();C===n&&f===i.slash||C===o?(this.context.pop(),this.exprAllowed=this.curContext()===u):this.exprAllowed=!0},t={tokContexts:p,tokTypes:d},Jt.set(e,t)}return t}function ne(e){if(!e)return e;if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return ne(e.object)+"."+ne(e.property)}Ge.exports=function(e){return e=e||{},function(t){return ps({allowNamespaces:e.allowNamespaces!==!1,allowNamespacedObjects:!!e.allowNamespacedObjects},t)}};Object.defineProperty(Ge.exports,"tokTypes",{get:function(){return Kt(void 0).tokTypes},configurable:!0,enumerable:!0});function ps(e,t){let i=t.acorn||void 0,s=Kt(i),r=i.tokTypes,n=s.tokTypes,o=i.tokContexts,u=s.tokContexts.tc_oTag,p=s.tokContexts.tc_cTag,d=s.tokContexts.tc_expr,f=i.isNewLine,C=i.isIdentifierStart,B=i.isIdentifierChar;return class extends t{static get acornJsx(){return s}jsx_readToken(){let h="",m=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let x=this.input.charCodeAt(this.pos);switch(x){case 60:case 123:return this.pos===this.start?x===60&&this.exprAllowed?(++this.pos,this.finishToken(n.jsxTagStart)):this.getTokenFromCode(x):(h+=this.input.slice(m,this.pos),this.finishToken(n.jsxText,h));case 38:h+=this.input.slice(m,this.pos),h+=this.jsx_readEntity(),m=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(x===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:f(x)?(h+=this.input.slice(m,this.pos),h+=this.jsx_readNewLine(!0),m=this.pos):++this.pos}}}jsx_readNewLine(h){let m=this.input.charCodeAt(this.pos),x;return++this.pos,m===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,x=h?`
`:`\r
`):x=String.fromCharCode(m),this.options.locations&&(++this.curLine,this.lineStart=this.pos),x}jsx_readString(h){let m="",x=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let g=this.input.charCodeAt(this.pos);if(g===h)break;g===38?(m+=this.input.slice(x,this.pos),m+=this.jsx_readEntity(),x=this.pos):f(g)?(m+=this.input.slice(x,this.pos),m+=this.jsx_readNewLine(!1),x=this.pos):++this.pos}return m+=this.input.slice(x,this.pos++),this.finishToken(r.string,m)}jsx_readEntity(){let h="",m=0,x,g=this.input[this.pos];g!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let w=++this.pos;for(;this.pos<this.input.length&&m++<10;){if(g=this.input[this.pos++],g===";"){h[0]==="#"?h[1]==="x"?(h=h.substr(2),os.test(h)&&(x=String.fromCharCode(parseInt(h,16)))):(h=h.substr(1),us.test(h)&&(x=String.fromCharCode(parseInt(h,10)))):x=ns[h];break}h+=g}return x||(this.pos=w,"&")}jsx_readWord(){let h,m=this.pos;do h=this.input.charCodeAt(++this.pos);while(B(h)||h===45);return this.finishToken(n.jsxName,this.input.slice(m,this.pos))}jsx_parseIdentifier(){let h=this.startNode();return this.type===n.jsxName?h.name=this.value:this.type.keyword?h.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(h,"JSXIdentifier")}jsx_parseNamespacedName(){let h=this.start,m=this.startLoc,x=this.jsx_parseIdentifier();if(!e.allowNamespaces||!this.eat(r.colon))return x;var g=this.startNodeAt(h,m);return g.namespace=x,g.name=this.jsx_parseIdentifier(),this.finishNode(g,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===n.jsxTagEnd)return"";let h=this.start,m=this.startLoc,x=this.jsx_parseNamespacedName();for(this.type===r.dot&&x.type==="JSXNamespacedName"&&!e.allowNamespacedObjects&&this.unexpected();this.eat(r.dot);){let g=this.startNodeAt(h,m);g.object=x,g.property=this.jsx_parseIdentifier(),x=this.finishNode(g,"JSXMemberExpression")}return x}jsx_parseAttributeValue(){switch(this.type){case r.braceL:let h=this.jsx_parseExpressionContainer();return h.expression.type==="JSXEmptyExpression"&&this.raise(h.start,"JSX attributes must only be assigned a non-empty expression"),h;case n.jsxTagStart:case r.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let h=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(h,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let h=this.startNode();return this.next(),h.expression=this.type===r.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(r.braceR),this.finishNode(h,"JSXExpressionContainer")}jsx_parseAttribute(){let h=this.startNode();return this.eat(r.braceL)?(this.expect(r.ellipsis),h.argument=this.parseMaybeAssign(),this.expect(r.braceR),this.finishNode(h,"JSXSpreadAttribute")):(h.name=this.jsx_parseNamespacedName(),h.value=this.eat(r.eq)?this.jsx_parseAttributeValue():null,this.finishNode(h,"JSXAttribute"))}jsx_parseOpeningElementAt(h,m){let x=this.startNodeAt(h,m);x.attributes=[];let g=this.jsx_parseElementName();for(g&&(x.name=g);this.type!==r.slash&&this.type!==n.jsxTagEnd;)x.attributes.push(this.jsx_parseAttribute());return x.selfClosing=this.eat(r.slash),this.expect(n.jsxTagEnd),this.finishNode(x,g?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(h,m){let x=this.startNodeAt(h,m),g=this.jsx_parseElementName();return g&&(x.name=g),this.expect(n.jsxTagEnd),this.finishNode(x,g?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(h,m){let x=this.startNodeAt(h,m),g=[],w=this.jsx_parseOpeningElementAt(h,m),he=null;if(!w.selfClosing){e:for(;;)switch(this.type){case n.jsxTagStart:if(h=this.start,m=this.startLoc,this.next(),this.eat(r.slash)){he=this.jsx_parseClosingElementAt(h,m);break e}g.push(this.jsx_parseElementAt(h,m));break;case n.jsxText:g.push(this.parseExprAtom());break;case r.braceL:g.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}ne(he.name)!==ne(w.name)&&this.raise(he.start,"Expected corresponding JSX closing tag for <"+ne(w.name)+">")}let Ee=w.name?"Element":"Fragment";return x["opening"+Ee]=w,x["closing"+Ee]=he,x.children=g,this.type===r.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(x,"JSX"+Ee)}jsx_parseText(){let h=this.parseLiteral(this.value);return h.type="JSXText",h}jsx_parseElement(){let h=this.start,m=this.startLoc;return this.next(),this.jsx_parseElementAt(h,m)}parseExprAtom(h){return this.type===n.jsxText?this.jsx_parseText():this.type===n.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(h)}readToken(h){let m=this.curContext();if(m===d)return this.jsx_readToken();if(m===u||m===p){if(C(h))return this.jsx_readWord();if(h==62)return++this.pos,this.finishToken(n.jsxTagEnd);if((h===34||h===39)&&m==u)return this.jsx_readString(h)}return h===60&&this.exprAllowed&&this.input.charCodeAt(th Line truncated
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||e.allowHashBang==null)&&(t.allowHashBang=t.ecmaVersion>=14),tt(t.onToken)){var s=t.onToken;t.onToken=function(r){return s.push(r)}}return tt(t.onComment)&&(t.onComment=Vi(t,t.onComment)),t}function Vi(e,t){return function(i,s,r,n,o,u){var p={type:i?"Block":"Line",value:s,start:r,end:n};e.locations&&(p.loc=new xe(this,o,u)),e.ranges&&(p.range=[r,n]),t.push(p)}}var se=1,Z=2,Be=4,lt=8,ft=16,dt=32,De=64,mt=128,re=256,Fe=se|Z|re;function je(e,t){return Z|(e?Be:0)|(t?lt:0)}var le=0,Me=1,G=2,xt=3,yt=4,gt=5,T=function(t,i,s){this.options=t=Ni(t),this.sourceFile=t.sourceFile,this.keywords=K(_i[t.ecmaVersion>=6?6:t.sourceType==="module"?"5module":5]);var r="";t.allowReserved!==!0&&(r=Ae[t.ecmaVersion>=6?6:t.ecmaVersion===5?5:3],t.sourceType==="module"&&(r+=" await")),this.reservedWords=K(r);var n=(r?r+" ":"")+Ae.strict;this.reservedWordsStrict=K(n),this.reservedWordsStrictBind=K(n+" "+Ae.strictBind),this.input=String(i),this.containsEsc=!1,s?(this.pos=s,this.lineStart=this.input.lastIndexOf(`
`,s-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(L).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=a.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(se),this.regexpState=null,this.privateNameStack=[]},F={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}};T.prototype.parse=function(){var t=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(t)};F.inFunction.get=function(){return(this.currentVarScope().flags&Z)>0};F.inGenerator.get=function(){return(this.currentVarScope().flags&lt)>0&&!this.currentVarScope().inClassFieldInit};F.inAsync.get=function(){return(this.currentVarScope().flags&Be)>0&&!this.currentVarScope().inClassFieldInit};F.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&re)return!1;if(t.flags&Z)return(t.flags&Be)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};F.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&De)>0||i||this.options.allowSuperOutsideMethod};F.allowDirectSuper.get=function(){return(this.currentThisScope().flags&mt)>0};F.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};F.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,i=e.inClassFieldInit;return(t&(Z|re))>0||i};F.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&re)>0};T.extend=function(){for(var t=[],i=arguments.length;i--;)t[i]=arguments[i];for(var s=this,r=0;r<t.length;r++)s=t[r](s);return s};T.parse=function(t,i){return new this(i,t).parse()};T.parseExpressionAt=function(t,i,s){var r=new this(s,t,i);return r.nextToken(),r.parseExpression()};T.tokenizer=function(t,i){return new this(i,t)};Object.defineProperties(T.prototype,F);var k=T.prototype,Li=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;k.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){N.lastIndex=e,e+=N.exec(this.input)[0].length;var t=Li.exec(this.input.slice(e));if(!t)return!1;if((t[1]||t[2])==="use strict"){N.lastIndex=e+t[0].length;var i=N.exec(this.input),s=i.index+i[0].length,r=this.input.charAt(s);return r===";"||r==="}"||L.test(i[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(r)||r==="!"&&this.input.charAt(s+1)==="=")}e+=t[0].length,N.lastIndex=e,e+=N.exec(this.input)[0].length,this.input[e]===";"&&e++}};k.eat=function(e){return this.type===e?(this.next(),!0):!1};k.isContextual=function(e){return this.type===a.name&&this.value===e&&!this.containsEsc};k.eatContextual=function(e){return this.isContextual(e)?(this.next(),!0):!1};k.expectContextual=function(e){this.eatContextual(e)||this.unexpected()};k.canInsertSemicolon=function(){return this.type===a.eof||this.type===a.braceR||L.test(this.input.slice(this.lastTokEnd,this.start))};k.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0};k.semicolon=function(){!this.eat(a.semi)&&!this.insertSemicolon()&&this.unexpected()};k.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0};k.expect=function(e){this.eat(e)||this.unexpected()};k.unexpected=function(e){this.raise(e??this.start,"Unexpected token")};var ye=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};k.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var i=t?e.parenthesizedAssign:e.parenthesizedBind;i>-1&&this.raiseRecoverable(i,t?"Assigning to rvalue":"Parenthesized pattern")}};k.checkExpressionErrors=function(e,t){if(!e)return!1;var i=e.shorthandAssign,s=e.doubleProto;if(!t)return i>=0||s>=0;i>=0&&this.raise(i,"Shorthand property assignments are valid only in destructuring patterns"),s>=0&&this.raiseRecoverable(s,"Redefinition of __proto__ property")};k.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<Line truncated
`),cooked:null}):i.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
`),cooked:this.value},this.next(),i.tail=this.type===a.backQuote,this.finishNode(i,"TemplateElement")};y.parseTemplate=function(e){e===void 0&&(e={});var t=e.isTagged;t===void 0&&(t=!1);var i=this.startNode();this.next(),i.expressions=[];var s=this.parseTemplateElement({isTagged:t});for(i.quasis=[s];!s.tail;)this.type===a.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(a.dollarBraceL),i.expressions.push(this.parseExpression()),this.expect(a.braceR),i.quasis.push(s=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(i,"TemplateLiteral")};y.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===a.name||this.type===a.num||this.type===a.string||this.type===a.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===a.star)&&!L.test(this.input.slice(this.lastTokEnd,this.start))};y.parseObj=function(e,t){var i=this.startNode(),s=!0,r={};for(i.properties=[],this.next();!this.eat(a.braceR);){if(s)s=!1;else if(this.expect(a.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(a.braceR))break;var n=this.parseProperty(e,t);e||this.checkPropClash(n,r,t),i.properties.push(n)}return this.finishNode(i,e?"ObjectPattern":"ObjectExpression")};y.parseProperty=function(e,t){var i=this.startNode(),s,r,n,o;if(this.options.ecmaVersion>=9&&this.eat(a.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===a.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===a.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(n=this.start,o=this.startLoc),e||(s=this.eat(a.star)));var u=this.containsEsc;return this.parsePropertyName(i),!e&&!u&&this.options.ecmaVersion>=8&&!s&&this.isAsyncProp(i)?(r=!0,s=this.options.ecmaVersion>=9&&this.eat(a.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,s,r,n,o,t,u),this.finishNode(i,"Property")};y.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t=e.kind==="get"?0:1;if(e.value.params.length!==t){var i=e.value.start;e.kind==="get"?this.raiseRecoverable(i,"getter should have no params"):this.raiseRecoverable(i,"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")};y.parsePropertyValue=function(e,t,i,s,r,n,o,u){(i||s)&&this.type===a.colon&&this.unexpected(),this.eat(a.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,o),e.kind="init"):this.options.ecmaVersion>=6&&this.type===a.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(i,s)):!t&&!u&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&this.type!==a.comma&&this.type!==a.braceR&&this.type!==a.eq?((i||s)&&this.unexpected(),this.parseGetterSetter(e)):this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"?((i||s)&&this.unexpected(),this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=r),e.kind="init",t?e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key)):this.type===a.eq&&o?(o.shorthandAssign<0&&(o.shorthandAssign=this.start),e.value=this.parseMaybeDefault(r,n,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected()};y.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(a.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(a.bracketR),e.key;e.computed=!1}return e.key=this.type===a.num||this.type===a.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};y.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)};y.parseMethod=function(e,t,i){var s=this.startNode(),r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.initFunction(s),this.options.ecmaVersion>=6&&(s.generator=e),this.options.ecmaVersion>=8&&(s.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(je(t,s.generator)|De|(i?mt:0)),this.expect(a.parenL),s.params=this.parseBindingList(a.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(s,!1,!0,!1),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.finishNode(s,"FunctionExpression")};y.parseArrowExpression=function(e,t,i,s){var r=this.yieldPos,n=this.awaitPos,o=this.awaitIdentPos;return this.enterScope(je(i,!1)|ft),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!i),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,s),this.yieldPos=r,this.awaitPos=n,this.awaitIdentPos=o,this.f Line truncated
`;break;default:e+=String.fromCharCode(i);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}};v.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(a.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
`&&++this.pos;case`
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};v.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 U(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 i=this.pos-1;this.invalidStringToken(i,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var s=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],r=parseInt(s,8);return r>255&&(s=s.slice(0,-1),r=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(r)}return Q(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}};v.readHexChar=function(e){var t=this.pos,i=this.readInt(16,e);return i===null&&this.invalidStringToken(t,"Bad character escape sequence"),i};v.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,i=this.pos,s=this.options.ecmaVersion>=6;this.pos<this.input.length;){var r=this.fullCharCodeAtPos();if(H(r,s))this.pos+=r<=65535?1:2;else if(r===92){this.containsEsc=!0,e+=this.input.slice(i,this.pos);var n=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var o=this.readCodePoint();(t?M:H)(o,s)||this.invalidStringToken(n,"Invalid Unicode escape"),e+=U(o),i=this.pos}else break;t=!1}return e+this.input.slice(i,this.pos)};v.readWord=function(){var e=this.readWord1(),t=a.name;return this.keywords.test(e)&&(t=Oe[e]),this.finishToken(t,e)};var rs="8.14.0";T.acorn={Parser:T,version:rs,defaultOptions:Ve,Position:ie,SourceLocation:xe,getLineInfo:ct,Node:ge,TokenType:S,tokTypes:a,keywordTypes:Oe,TokContext:D,tokContexts:_,isIdentifierChar:H,isIdentifierStart:M,Token:qe,isNewLine:Q,lineBreak:L,lineBreakG:wi,nonASCIIwhitespace:pt};var ni=et(Je(),1);function hs(e,t){let i=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(i,t)}var be=hs;function cs(e){let t=[];for(let i of e)try{return i()}catch(s){t.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var Se=cs;var ls=(e,t,i)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[i<0?t.length+i:i]:t.at(i)},X=ls;function fs(e){return Array.isArray(e)&&e.length>0}var Wt=fs;function O(e){var s,r,n;let t=((s=e.range)==null?void 0:s[0])??e.start,i=(n=((r=e.declaration)==null?void 0:r.decorators)??e.decorators)==null?void 0:n[0];return i?Math.min(O(i),t):t}function J(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function ds(e){let t=new Set(e);return i=>t.has(i==null?void 0:i.type)}var Xt=ds;var ms=Xt(["Block","CommentBlock","MultiLine"]),oe=ms;function xs(e){let t=`*${e.value}*`.split(`
`);return t.length>1&&t.every(i=>i.trimStart()[0]==="*")}var Ke=xs;function ys(e){return oe(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var zt=ys;var ue=null;function pe(e){if(ue!==null&&typeof ue.property){let t=ue;return ue=pe.prototype=null,t}return ue=pe.prototype=e??Object.create(null),new pe}var gs=10;for(let e=0;e<=gs;e++)pe();function We(e){return pe(e)}function vs(e,t="type"){We(e);function i(s){let r=s[t],n=e[r];if(!Array.isArray(n))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:s});return n}return i}var Ht=vs;var Qt={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[] Line truncated
`;e=ee(!1,e.replace(Ts,"").replace(_s,""),As,"$1");let i="";for(;i!==e;)i=e,e=ee(!1,e,ws,`${t}$1 $2${t}`);e=e.replace($t,"").trimEnd();let s=Object.create(null),r=ee(!1,e,ei,"").replace($t,"").trimEnd(),n;for(;n=ei.exec(e);){let o=ee(!1,n[2],Es,"");if(typeof s[n[1]]=="string"||Array.isArray(s[n[1]])){let u=s[n[1]];s[n[1]]=[...Ps,...Array.isArray(u)?u:[u],o]}else s[n[1]]=o}return{comments:r,pragmas:s}}function Is(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
`);return t===-1?e:e.slice(0,t)}var si=Is;function Ns(e){let t=si(e);t&&(e=e.slice(t.length+1));let i=ti(e),{pragmas:s,comments:r}=ii(i);return{shebang:t,text:e,pragmas:s,comments:r}}function ri(e){let{pragmas:t}=Ns(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function Vs(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:ri,locStart:O,locEnd:J,...e}}var Te=Vs;function Ls(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var ke=Ls;var Rs={ecmaVersion:"latest",allowReturnOutsideFunction:!0,allowSuperOutsideMethod:!0,locations:!0,ranges:!0};function Os(e){let{message:t,loc:i}=e;if(!i)return e;let{line:s,column:r}=i;return be(t.replace(/ \(\d+:\d+\)$/u,""),{loc:{start:{line:s,column:r+1}},cause:e})}var ai,Bs=()=>(ai??(ai=T.extend((0,ni.default)())),ai);function Ds(e,t){let i=Bs(),s=[],r=[],n=i.parse(e,{...Rs,sourceType:t,allowImportExportEverywhere:t==="module",onComment:s,onToken:r});return n.comments=s,n.tokens=r,n}function Fs(e,t={}){let i=ke(t),s=(i?[i]:["module","script"]).map(n=>()=>Ds(e,n)),r;try{r=Se(s)}catch({errors:[n]}){throw Os(n)}return _e(r,{text:e})}var oi=Te(Fs);var ci=et(Je(),1);var E={Boolean:"Boolean",EOF:"<end>",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function js(e,t){let i=e[0],s=X(!1,e,-1),r={type:E.Template,value:t.slice(i.start,s.end)};return i.loc&&(r.loc={start:i.loc.start,end:s.loc.end}),i.range&&(r.start=i.range[0],r.end=s.range[1],r.range=[r.start,r.end]),r}function He(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}He.prototype={constructor:He,translate(e,t){let i=e.type,s=this._acornTokTypes;if(i===s.name)e.type=E.Identifier,e.value==="static"&&(e.type=E.Keyword),t.ecmaVersion>5&&(e.value==="yield"||e.value==="let")&&(e.type=E.Keyword);else if(i===s.privateId)e.type=E.PrivateIdentifier;else if(i===s.semi||i===s.comma||i===s.parenL||i===s.parenR||i===s.braceL||i===s.braceR||i===s.dot||i===s.bracketL||i===s.colon||i===s.question||i===s.bracketR||i===s.ellipsis||i===s.arrow||i===s.jsxTagStart||i===s.incDec||i===s.starstar||i===s.jsxTagEnd||i===s.prefix||i===s.questionDot||i.binop&&!i.keyword||i.isAssign)e.type=E.Punctuator,e.value=this._code.slice(e.start,e.end);else if(i===s.jsxName)e.type=E.JSXIdentifier;else if(i.label==="jsxText"||i===s.jsxAttrValueToken)e.type=E.JSXText;else if(i.keyword)i.keyword==="true"||i.keyword==="false"?e.type=E.Boolean:i.keyword==="null"?e.type=E.Null:e.type=E.Keyword;else if(i===s.num)e.type=E.Numeric,e.value=this._code.slice(e.start,e.end);else if(i===s.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=E.JSXText):e.type=E.String,e.value=this._code.slice(e.start,e.end);else if(i===s.regexp){e.type=E.RegularExpression;let r=e.value;e.regex={flags:r.flags,pattern:r.pattern},e.value=`/${r.pattern}/${r.flags}`}return e},onToken(e,t){let i=this._acornTokTypes,s=t.tokens,r=this._tokens,n=()=>{s.push(js(this._tokens,this._code)),this._tokens=[]};if(e.type===i.eof){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t));return}if(e.type===i.backQuote){this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),r.push(e),r.length>1&&n();return}if(e.type===i.dollarBraceL){r.push(e),n();return}if(e.type===i.braceR){this._curlyBrace&&s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===i.template||e.type===i.invalidTemplate){this._curlyBrace&&(r.push(this._curlyBrace),this._curlyBrace=null),r.push(e);return}this._curlyBrace&&(s.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),s.push(this.translate(e,t))}};var ui=He;var pi=[3,5,6,7,8,9,10,11,12,13,14,15,16];function Ms(){return X(!1,pi,-1)}function Us(e=5){let t=e==="latest"?Ms():e;if(typeof t!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!pi.includes(t))throw new Error("Invalid ecmaVersion.");return t}function qs(e="script"){if(e==="script"||e==="module")return e;if(e==="commonjs")return"script";throw new Error("Invalid sourceType.")}function hi(e){let t=Us(e.ecmaVersion),i=qs(e.sourceType),s=e.range===!0,r=e.loc===!0;if(t!==3&&e.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof e.allowReserved<"u"&&typeof e.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let n=t===3?e.allowReserved||"never":!1,o=e.ecmaFeatures||{},u=e.sourceType==="commonjs"||!!o.globalReturn;if(i==="module"&&t<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the p Line truncated
`,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(r+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,r)}jsx_readString(s){let r=super.jsx_readString(s);return this.type===t.string&&(this[z].jsxAttrValueToken=!0),r}[Qe](s){return s.type==="TemplateElement"&&this[z].templateElements.push(s),s.type.includes("Function")&&!s.generator&&(s.generator=!1),s}}};var Js={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=T.extend(Ye())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=T.extend((0,ci.default)(),Ye())),this._jsx},get(e){return!!(e&&e.ecmaFeatures&&e.ecmaFeatures.jsx)?this.jsx:this.regular}};function li(e,t){let i=Js.get(t);return new i(t,e).parse()}var Ks={ecmaVersion:"latest",range:!0,loc:!0,comment:!0,tokens:!0,sourceType:"module",ecmaFeatures:{jsx:!0,globalReturn:!0,impliedStrict:!1}};function Ws(e){let{message:t,lineNumber:i,column:s}=e;return typeof i!="number"?e:be(t,{loc:{start:{line:i,column:s}},cause:e})}function Xs(e,t={}){let i=ke(t),s=(i?[i]:["module","script"]).map(n=>()=>li(e,{...Ks,sourceType:n})),r;try{r=Se(s)}catch({errors:[n]}){throw Ws(n)}return _e(r,{text:e})}var fi=Te(Xs);var zs={acorn:oi,espree:fi};var Ca=Ze;export{Ca as default,zs as parsers};
+8
View File
@@ -0,0 +1,8 @@
import { Parser } from "../index.js";
export declare const parsers: {
__ng_action: Parser;
__ng_binding: Parser;
__ng_directive: Parser;
__ng_interpolation: Parser;
};
+2
View File
@@ -0,0 +1,2 @@
(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.angular=e()}})(function(){"use strict";var it=Object.defineProperty;var $s=Object.getOwnPropertyDescriptor;var Rs=Object.getOwnPropertyNames;var Bs=Object.prototype.hasOwnProperty;var Xt=t=>{throw TypeError(t)};var Jt=(t,e)=>{for(var n in e)it(t,n,{get:e[n],enumerable:!0})},Ds=(t,e,n,s)=>{if(e&&typeof e=="object"||typeof e=="function")for(let r of Rs(e))!Bs.call(t,r)&&r!==n&&it(t,r,{get:()=>e[r],enumerable:!(s=$s(e,r))||s.enumerable});return t};var Os=t=>Ds(it({},"__esModule",{value:!0}),t);var ot=(t,e,n)=>e.has(t)||Xt("Cannot "+n);var L=(t,e,n)=>(ot(t,e,"read from private field"),n?n.call(t):e.get(t)),V=(t,e,n)=>e.has(t)?Xt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),K=(t,e,n,s)=>(ot(t,e,"write to private field"),s?s.call(t,n):e.set(t,n),n),c=(t,e,n)=>(ot(t,e,"access private method"),n);var Yr={};Jt(Yr,{parsers:()=>zt});var zt={};Jt(zt,{__ng_action:()=>zr,__ng_binding:()=>Gr,__ng_directive:()=>Jr,__ng_interpolation:()=>Xr});var Kr=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var Yt;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(Yt||(Yt={}));var Qt;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(Qt||(Qt={}));var Kt;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Kt||(Kt={}));var B;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(B||(B={}));var Zt;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Zt||(Zt={}));var en;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(en||(en={}));var tn;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(tn||(tn={}));var nn;(function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"})(nn||(nn={}));var Fs=void 0;var sn;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(sn||(sn={}));var _;(function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseOr=11]="BitwiseOr",t[t.BitwiseAnd=12]="BitwiseAnd",t[t.Lower=13]="Lower",t[t.LowerEquals=14]="LowerEquals",t[t.Bigger=15]="Bigger",t[t.BiggerEquals=16]="BiggerEquals",t[t.NullishCoalesce=17]="NullishCoalesce"})(_||(_={}));function Vs(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function Hs(t,e,n){let s=t.length;if(s!==e.length)return!1;for(let r=0;r<s;r++)if(!n(t[r],e[r]))return!1;return!0}function tt(t,e){return Hs(t,e,(n,s)=>n.isEquivalent(s))}var k=class{type;sourceSpan;constructor(e,n){this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new vt(this,e,null,n)}key(e,n,s){return new wt(this,e,n,s)}callFn(e,n,s){return new Xe(this,e,null,n,s)}instantiate(e,n,s){return new dt(this,e,n,s)}conditional(e,n=null,s){return new gt(this,e,n,null,s)}equals(e,n){return new C(_.Equals,this,e,null,n)}notEquals(e,n){return new C(_.NotEquals,this,e,null,n)}identical(e,n){return new C(_.Identical,this,e,null,n)}notIdentical(e,n){return new C(_.NotIdentical,this,e,null,n)}minus(e,n){return new C(_.Minus,this,e,null,n)}plus(e,n){return new C(_.Plus,this,e,null,n)}divide(e,n){return new C(_.Divide,this,e,null,n)}multiply(e,n){return new C(_.Multiply,this,e,null,n)}modulo(e,n){return new C(_.Modulo,this,e,null,n)}and(e,n){return new C(_.And,this,e,null,n)}bitwiseOr(e,n,s=!0){return new C(_.BitwiseOr,this,e,null,n,s)}bitwiseAnd(e,n,s=!0){return new C(_.BitwiseAnd,this,e,null,n,s)}or(e,n){return new C(_.Or,this,e,null,n)}lower(e,n){return new C(_.Lower,this,e,null,n)}lowerEquals(e,n){return new C(_.LowerEquals,this,e,null,n)}bigger(e,n){return new C(_.Bigger,this,e,null,n)}biggerEquals(e,n){return new C(_.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(TYPED_NULL_EXPR,e)}nullishCoalesce(e,n){return new C(_.NullishCoalesce,this,e,null,n)}toStmt(){return new St(this,null)}},Ge=class t extends k{name;constructor(e,n,s){super(n,s),this.name=e}isEquivalent(e){return e instanceof t&&this.name===e.name}isConstant(){return!1}visitExpression(e,n){return e.visitReadVarExpr(this,n)}clone(){return new t(this.name,this.type,this.sourceSpan)}set(e){return new pt(this.name,e,null,this.sourceSpan)}},ut=class t extends k{expr;constructor(e,n,s){super(n,s),Line truncated
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,vi=new RegExp(`[^${rs}]`),wi=new RegExp(`[${rs}]{2,}`,"g");var d;(function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.Error=7]="Error"})(d||(d={}));var Cr=["var","let","as","null","undefined","true","false","if","else","this","typeof"],De=class{tokenize(e){let n=new At(e),s=[],r=n.scanToken();for(;r!=null;)s.push(r),r=n.scanToken();return s}},M=class{index;end;type;numValue;strValue;constructor(e,n,s,r,o){this.index=e,this.end=n,this.type=s,this.numValue=r,this.strValue=o}isCharacter(e){return this.type==d.Character&&this.numValue==e}isNumber(){return this.type==d.Number}isString(){return this.type==d.String}isOperator(e){return this.type==d.Operator&&this.strValue==e}isIdentifier(){return this.type==d.Identifier}isPrivateIdentifier(){return this.type==d.PrivateIdentifier}isKeyword(){return this.type==d.Keyword}isKeywordLet(){return this.type==d.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==d.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==d.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==d.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==d.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==d.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==d.Keyword&&this.strValue=="this"}isKeywordTypeof(){return this.type===d.Keyword&&this.strValue==="typeof"}isError(){return this.type==d.Error}toNumber(){return this.type==d.Number?this.numValue:-1}toString(){switch(this.type){case d.Character:case d.Identifier:case d.Keyword:case d.Operator:case d.PrivateIdentifier:case d.String:case d.Error:return this.strValue;case d.Number:return this.numValue.toString();default:return null}}};function $n(t,e,n){return new M(t,e,d.Character,n,String.fromCharCode(n))}function Tr(t,e,n){return new M(t,e,d.Identifier,0,n)}function kr(t,e,n){return new M(t,e,d.PrivateIdentifier,0,n)}function Ir(t,e,n){return new M(t,e,d.Keyword,0,n)}function lt(t,e,n){return new M(t,e,d.Operator,0,n)}function br(t,e,n){return new M(t,e,d.String,0,n)}function Nr(t,e,n){return new M(t,e,d.Number,n,"")}function Ar(t,e,n){return new M(t,e,d.Error,0,n)}var ct=new M(-1,-1,d.Character,0,""),At=class{input;length;peek=0;index=-1;constructor(e){this.input=e,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?at:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,s=this.peek,r=this.index;for(;s<=Wn;)if(++r>=n){s=at;break}else s=e.charCodeAt(r);if(this.peek=s,this.index=r,r>=n)return null;if(Rn(s))return this.scanIdentifier();if(j(s))return this.scanNumber(r);let o=r;switch(s){case ee:return this.advance(),j(this.peek)?this.scanNumber(o):$n(o,this.index,ee);case je:case me:case kt:case xe:case ze:case we:case ge:case te:case ve:return this.scanCharacter(o,s);case zn:case qn:return this.scanString();case Ys:return this.scanPrivateIdentifier();case Gn:case Xn:case Ks:case Tt:case Qs:case ir:return this.scanOperator(o,String.fromCharCode(s));case hn:return this.scanQuestion(o);case Zs:case er:return this.scanComplexOperator(o,String.fromCharCode(s),qe,"=");case Js:case qe:return this.scanComplexOperator(o,String.fromCharCode(s),qe,"=",qe,"=");case pn:return this.scanComplexOperator(o,"&",pn,"&");case fn:return this.scanComplexOperator(o,"|",fn,"|");case Zn:for(;dr(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,n){return this.advance(),$n(e,this.index,n)}scanOperator(e,n){return this.advance(),lt(e,this.index,n)}scanComplexOperator(e,n,s,r,o,a){this.advance();let l=n;return this.peek==s&&(this.advance(),l+=r),o!=null&&this.peek==o&&(this.advance(),l+=a),lt(e,this.index,l)}scanIdentifier(){let e=this.index;for(this.advance();Bn(this.peek);)this.advance();let n=this.input.substring(e,this.index);return Cr.indexOf(n)>-1?Ir(e,this.index,n):Tr(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!Rn(this.peek))return this.error("Invalid character [#]",-1);for(;Bn(this.peek);)this.advance();let n=this.input.substring(e,this.index);return kr(e,this.index,n)}scanNumber(e){let n=this.index===e,s=!1;for(this.advance();;){if(!j(this.peek))if(this.peek===$t){if(!j(this.input.charCodeAt(this.index-1))||!j(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===ee)n=!1;else if(Pr(this.peek)){if(this.advance(),Lr(this.peek)&&this.advance(),!j(this.peek))return this.error("Invalid exponent",-1);n=!1}else break;this.advance()}let r=this.input.substring(e,this.index);s&&(r=r.replace(/_/g,""));let o=n?$r(r):parseFloat(r);return Nr(e,this.index,o)}scanString(){let e=this.index,n=this.peek;this.advance();let s="",r=this. Line truncated
+2
View File
@@ -0,0 +1,2 @@
var $s=Object.defineProperty;var Xt=t=>{throw TypeError(t)};var Jt=(t,e)=>{for(var n in e)$s(t,n,{get:e[n],enumerable:!0})};var it=(t,e,n)=>e.has(t)||Xt("Cannot "+n);var L=(t,e,n)=>(it(t,e,"read from private field"),n?n.call(t):e.get(t)),V=(t,e,n)=>e.has(t)?Xt("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,n),K=(t,e,n,s)=>(it(t,e,"write to private field"),s?s.call(t,n):e.set(t,n),n),c=(t,e,n)=>(it(t,e,"access private method"),n);var zt={};Jt(zt,{parsers:()=>jt});var jt={};Jt(jt,{__ng_action:()=>Ur,__ng_binding:()=>Wr,__ng_directive:()=>jr,__ng_interpolation:()=>qr});var Gr=new RegExp(`(\\:not\\()|(([\\.\\#]?)[-\\w]+)|(?:\\[([-.\\w*\\\\$]+)(?:=(["']?)([^\\]"']*)\\5)?\\])|(\\))|(\\s*,\\s*)`,"g");var Yt;(function(t){t[t.Emulated=0]="Emulated",t[t.None=2]="None",t[t.ShadowDom=3]="ShadowDom"})(Yt||(Yt={}));var Qt;(function(t){t[t.OnPush=0]="OnPush",t[t.Default=1]="Default"})(Qt||(Qt={}));var Kt;(function(t){t[t.None=0]="None",t[t.SignalBased=1]="SignalBased",t[t.HasDecoratorInputTransform=2]="HasDecoratorInputTransform"})(Kt||(Kt={}));var B;(function(t){t[t.NONE=0]="NONE",t[t.HTML=1]="HTML",t[t.STYLE=2]="STYLE",t[t.SCRIPT=3]="SCRIPT",t[t.URL=4]="URL",t[t.RESOURCE_URL=5]="RESOURCE_URL"})(B||(B={}));var Zt;(function(t){t[t.Error=0]="Error",t[t.Warning=1]="Warning",t[t.Ignore=2]="Ignore"})(Zt||(Zt={}));var en;(function(t){t[t.Little=0]="Little",t[t.Big=1]="Big"})(en||(en={}));var tn;(function(t){t[t.None=0]="None",t[t.Const=1]="Const"})(tn||(tn={}));var nn;(function(t){t[t.Dynamic=0]="Dynamic",t[t.Bool=1]="Bool",t[t.String=2]="String",t[t.Int=3]="Int",t[t.Number=4]="Number",t[t.Function=5]="Function",t[t.Inferred=6]="Inferred",t[t.None=7]="None"})(nn||(nn={}));var Rs=void 0;var sn;(function(t){t[t.Minus=0]="Minus",t[t.Plus=1]="Plus"})(sn||(sn={}));var _;(function(t){t[t.Equals=0]="Equals",t[t.NotEquals=1]="NotEquals",t[t.Identical=2]="Identical",t[t.NotIdentical=3]="NotIdentical",t[t.Minus=4]="Minus",t[t.Plus=5]="Plus",t[t.Divide=6]="Divide",t[t.Multiply=7]="Multiply",t[t.Modulo=8]="Modulo",t[t.And=9]="And",t[t.Or=10]="Or",t[t.BitwiseOr=11]="BitwiseOr",t[t.BitwiseAnd=12]="BitwiseAnd",t[t.Lower=13]="Lower",t[t.LowerEquals=14]="LowerEquals",t[t.Bigger=15]="Bigger",t[t.BiggerEquals=16]="BiggerEquals",t[t.NullishCoalesce=17]="NullishCoalesce"})(_||(_={}));function Bs(t,e){return t==null||e==null?t==e:t.isEquivalent(e)}function Ds(t,e,n){let s=t.length;if(s!==e.length)return!1;for(let r=0;r<s;r++)if(!n(t[r],e[r]))return!1;return!0}function tt(t,e){return Ds(t,e,(n,s)=>n.isEquivalent(s))}var k=class{type;sourceSpan;constructor(e,n){this.type=e||null,this.sourceSpan=n||null}prop(e,n){return new gt(this,e,null,n)}key(e,n,s){return new vt(this,e,n,s)}callFn(e,n,s){return new Xe(this,e,null,n,s)}instantiate(e,n,s){return new ft(this,e,n,s)}conditional(e,n=null,s){return new mt(this,e,n,null,s)}equals(e,n){return new C(_.Equals,this,e,null,n)}notEquals(e,n){return new C(_.NotEquals,this,e,null,n)}identical(e,n){return new C(_.Identical,this,e,null,n)}notIdentical(e,n){return new C(_.NotIdentical,this,e,null,n)}minus(e,n){return new C(_.Minus,this,e,null,n)}plus(e,n){return new C(_.Plus,this,e,null,n)}divide(e,n){return new C(_.Divide,this,e,null,n)}multiply(e,n){return new C(_.Multiply,this,e,null,n)}modulo(e,n){return new C(_.Modulo,this,e,null,n)}and(e,n){return new C(_.And,this,e,null,n)}bitwiseOr(e,n,s=!0){return new C(_.BitwiseOr,this,e,null,n,s)}bitwiseAnd(e,n,s=!0){return new C(_.BitwiseAnd,this,e,null,n,s)}or(e,n){return new C(_.Or,this,e,null,n)}lower(e,n){return new C(_.Lower,this,e,null,n)}lowerEquals(e,n){return new C(_.LowerEquals,this,e,null,n)}bigger(e,n){return new C(_.Bigger,this,e,null,n)}biggerEquals(e,n){return new C(_.BiggerEquals,this,e,null,n)}isBlank(e){return this.equals(TYPED_NULL_EXPR,e)}nullishCoalesce(e,n){return new C(_.NullishCoalesce,this,e,null,n)}toStmt(){return new xt(this,null)}},Ge=class t extends k{name;constructor(e,n,s){super(n,s),this.name=e}isEquivalent(e){return e instanceof t&&this.name===e.name}isConstant(){return!1}visitExpression(e,n){return e.visitReadVarExpr(this,n)}clone(){return new t(this.name,this.type,this.sourceSpan)}set(e){return new ut(this.name,e,null,this.sourceSpan)}},ct=class t extends k{expr;constructor(e,n,s){super(n,s),this.expr=e}visitExpression(e,n){return e.visitTypeofExpr(this,n)}isEquivalent(e){return e instanceof t&&e.expr.isEquivalent(this.expr)}isConstant(){return this.expr.isConstant()}clone(){return new t(this.expr.clone())}};var ut=class t extends k{name;value;constructor(e,n,s,r){super(s||n.type,r),this.name=e,this.value=n}isEquivalent(e){return e instanceof t&&this.name===e.name&&this.value.isEquivalent(e.value)}isConstant(){return!1}visitExpression(e,n){return e.visitWriteVarExpr(this,n)}clone(){return new t(this.name,this.value.clone(),this.type,this.sourceSpan)}toDeclStmt(e,n){return new wt(this.name,this.value,e,n,this.sourceSpan)}toConstDecl(){return this.toDeclStmt(Rs,Ee.Final)}},pt=class t extends kLine truncated
\r \v\u1680\u180E\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF`,hi=new RegExp(`[^${rs}]`),fi=new RegExp(`[${rs}]{2,}`,"g");var d;(function(t){t[t.Character=0]="Character",t[t.Identifier=1]="Identifier",t[t.PrivateIdentifier=2]="PrivateIdentifier",t[t.Keyword=3]="Keyword",t[t.String=4]="String",t[t.Operator=5]="Operator",t[t.Number=6]="Number",t[t.Error=7]="Error"})(d||(d={}));var Sr=["var","let","as","null","undefined","true","false","if","else","this","typeof"],De=class{tokenize(e){let n=new Nt(e),s=[],r=n.scanToken();for(;r!=null;)s.push(r),r=n.scanToken();return s}},M=class{index;end;type;numValue;strValue;constructor(e,n,s,r,o){this.index=e,this.end=n,this.type=s,this.numValue=r,this.strValue=o}isCharacter(e){return this.type==d.Character&&this.numValue==e}isNumber(){return this.type==d.Number}isString(){return this.type==d.String}isOperator(e){return this.type==d.Operator&&this.strValue==e}isIdentifier(){return this.type==d.Identifier}isPrivateIdentifier(){return this.type==d.PrivateIdentifier}isKeyword(){return this.type==d.Keyword}isKeywordLet(){return this.type==d.Keyword&&this.strValue=="let"}isKeywordAs(){return this.type==d.Keyword&&this.strValue=="as"}isKeywordNull(){return this.type==d.Keyword&&this.strValue=="null"}isKeywordUndefined(){return this.type==d.Keyword&&this.strValue=="undefined"}isKeywordTrue(){return this.type==d.Keyword&&this.strValue=="true"}isKeywordFalse(){return this.type==d.Keyword&&this.strValue=="false"}isKeywordThis(){return this.type==d.Keyword&&this.strValue=="this"}isKeywordTypeof(){return this.type===d.Keyword&&this.strValue==="typeof"}isError(){return this.type==d.Error}toNumber(){return this.type==d.Number?this.numValue:-1}toString(){switch(this.type){case d.Character:case d.Identifier:case d.Keyword:case d.Operator:case d.PrivateIdentifier:case d.String:case d.Error:return this.strValue;case d.Number:return this.numValue.toString();default:return null}}};function $n(t,e,n){return new M(t,e,d.Character,n,String.fromCharCode(n))}function Er(t,e,n){return new M(t,e,d.Identifier,0,n)}function yr(t,e,n){return new M(t,e,d.PrivateIdentifier,0,n)}function _r(t,e,n){return new M(t,e,d.Keyword,0,n)}function at(t,e,n){return new M(t,e,d.Operator,0,n)}function Cr(t,e,n){return new M(t,e,d.String,0,n)}function Tr(t,e,n){return new M(t,e,d.Number,n,"")}function kr(t,e,n){return new M(t,e,d.Error,0,n)}var lt=new M(-1,-1,d.Character,0,""),Nt=class{input;length;peek=0;index=-1;constructor(e){this.input=e,this.length=e.length,this.advance()}advance(){this.peek=++this.index>=this.length?ot:this.input.charCodeAt(this.index)}scanToken(){let e=this.input,n=this.length,s=this.peek,r=this.index;for(;s<=Wn;)if(++r>=n){s=ot;break}else s=e.charCodeAt(r);if(this.peek=s,this.index=r,r>=n)return null;if(Rn(s))return this.scanIdentifier();if(j(s))return this.scanNumber(r);let o=r;switch(s){case ee:return this.advance(),j(this.peek)?this.scanNumber(o):$n(o,this.index,ee);case je:case me:case Tt:case xe:case ze:case we:case ge:case te:case ve:return this.scanCharacter(o,s);case zn:case qn:return this.scanString();case zs:return this.scanPrivateIdentifier();case Gn:case Xn:case Xs:case Ct:case Gs:case tr:return this.scanOperator(o,String.fromCharCode(s));case hn:return this.scanQuestion(o);case Js:case Ys:return this.scanComplexOperator(o,String.fromCharCode(s),qe,"=");case js:case qe:return this.scanComplexOperator(o,String.fromCharCode(s),qe,"=",qe,"=");case pn:return this.scanComplexOperator(o,"&",pn,"&");case fn:return this.scanComplexOperator(o,"|",fn,"|");case Zn:for(;ur(this.peek);)this.advance();return this.scanToken()}return this.advance(),this.error(`Unexpected character [${String.fromCharCode(s)}]`,0)}scanCharacter(e,n){return this.advance(),$n(e,this.index,n)}scanOperator(e,n){return this.advance(),at(e,this.index,n)}scanComplexOperator(e,n,s,r,o,a){this.advance();let l=n;return this.peek==s&&(this.advance(),l+=r),o!=null&&this.peek==o&&(this.advance(),l+=a),at(e,this.index,l)}scanIdentifier(){let e=this.index;for(this.advance();Bn(this.peek);)this.advance();let n=this.input.substring(e,this.index);return Sr.indexOf(n)>-1?_r(e,this.index,n):Er(e,this.index,n)}scanPrivateIdentifier(){let e=this.index;if(this.advance(),!Rn(this.peek))return this.error("Invalid character [#]",-1);for(;Bn(this.peek);)this.advance();let n=this.input.substring(e,this.index);return yr(e,this.index,n)}scanNumber(e){let n=this.index===e,s=!1;for(this.advance();;){if(!j(this.peek))if(this.peek===Mt){if(!j(this.input.charCodeAt(this.index-1))||!j(this.input.charCodeAt(this.index+1)))return this.error("Invalid numeric separator",0);s=!0}else if(this.peek===ee)n=!1;else if(Ir(this.peek)){if(this.advance(),br(this.peek)&&this.advance(),!j(this.peek))return this.error("Invalid exponent",-1);n=!1}else break;this.advance()}let r=this.input.substring(e,this.index);s&&(r=r.replace(/_/g,""));let o=n?Ar(r):parseFloat(r);return Tr(e,this.index,o)}scanString(){let e=this.index,n=this.peek;this.advance();let s="",r=this. Line truncated
+18
View File
@@ -0,0 +1,18 @@
import { Parser } from "../index.js";
export declare const parsers: {
babel: Parser;
"babel-flow": Parser;
"babel-ts": Parser;
__js_expression: Parser;
__ts_expression: Parser;
__vue_expression: Parser;
__vue_ts_expression: Parser;
__vue_event_binding: Parser;
__vue_ts_event_binding: Parser;
__babel_estree: Parser;
json: Parser;
json5: Parser;
jsonc: Parser;
"json-stringify": Parser;
};
+15
View File
@@ -0,0 +1,15 @@
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.babel=e()}})(function(){"use strict";var Bs=Object.create;var be=Object.defineProperty;var Rs=Object.getOwnPropertyDescriptor;var _s=Object.getOwnPropertyNames;var Us=Object.getPrototypeOf,js=Object.prototype.hasOwnProperty;var $s=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),zs=(a,t)=>{for(var e in t)be(a,e,{get:t[e],enumerable:!0})},Et=(a,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _s(t))!js.call(a,i)&&i!==e&&be(a,i,{get:()=>t[i],enumerable:!(s=Rs(t,i))||s.enumerable});return a};var It=(a,t,e)=>(e=a!=null?Bs(Us(a)):{},Et(t||!a||!a.__esModule?be(e,"default",{value:a,enumerable:!0}):e,a)),Vs=a=>Et(be({},"__esModule",{value:!0}),a);var gt=$s(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});function qs(a,t){if(a==null)return{};var e={};for(var s in a)if({}.hasOwnProperty.call(a,s)){if(t.includes(s))continue;e[s]=a[s]}return e}var O=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},ee=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function v(a,t){let{line:e,column:s,index:i}=a;return new O(e,s+t,i+t)}var Nt="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Ks={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Nt},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Nt}},kt={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"},we=a=>a.type==="UpdateExpression"?kt.UpdateExpression[`${a.prefix}`]:kt[a.type],Hs={AccessorIsGenerator:({kind:a})=>`A ${a}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:a})=>`Missing initializer in ${a} 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.",DecoratorSemicolonLine truncated
- Did you mean \`export { '${a}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:a})=>`'${a==="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:a})=>`Unsyntactic ${a==="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 `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:a})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${a}" as foo }\`?`,ImportCallArity:"`import()` requires exactly 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:a})=>`Expected number in radix ${a}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:a})=>`Escape sequence in keyword ${a}.`,InvalidIdentifier:({identifierName:a})=>`Invalid identifier ${a}.`,InvalidLhs:({ancestor:a})=>`Invalid left-hand side in ${we(a)}.`,InvalidLhsBinding:({ancestor:a})=>`Binding invalid left-hand side in ${we(a)}.`,InvalidLhsOptionalChaining:({ancestor:a})=>`Invalid optional chaining in the left-hand side of ${we(a)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:a})=>`Unexpected character '${a}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:a})=>`Private name #${a} 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:a})=>`Label '${a}' 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:a})=>`This experimental syntax requires enabling the parser plugin: ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:a})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${a.map(t=>JSON.stringify(t)).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:a})=>`Duplicate key "${a}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:a})=>`An export name cannot include a lone surrogate, found '\\u${a.toString(16)}'.`,ModuleExportUndefined:({localName:a})=>`Export '${a}' 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:a})=>`Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`,PrivateNameRedeclaration:({identifierName:a})=>`Duplicate private name #${a}.`,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 allLine truncated
`,++e,d===13&&t.charCodeAt(e)===10&&++e,++i,u=s=e):r.unterminated(n,o,h):++e}return{pos:e,str:l,firstInvalidLoc:c,lineStart:s,curLine:i,containsInvalid:!!c}}function Ni(a,t,e,s){return a==="template"?t===96||t===36&&e.charCodeAt(s+1)===123:t===(a==="double"?34:39)}function ki(a,t,e,s,i,r){let n=!i;t++;let o=l=>({pos:t,ch:l,lineStart:e,curLine:s}),h=a.charCodeAt(t++);switch(h){case 110:return o(`
`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=Ge(a,t,e,s,2,!1,n,r),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=Qt(a,t,e,s,n,r),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:a.charCodeAt(t)===10&&++t;case 10:e=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,e,s);default:if(h>=48&&h<=55){let l=t-1,u=/^[0-7]+/.exec(a.slice(l,t+2))[0],f=parseInt(u,8);f>255&&(u=u.slice(0,-1),f=parseInt(u,8)),t+=u.length-1;let d=a.charCodeAt(t);if(u!=="0"||d===56||d===57){if(i)return o(null);r.strictNumericEscape(l,e,s)}return o(String.fromCharCode(f))}return o(String.fromCharCode(h))}}function Ge(a,t,e,s,i,r,n,o){let h=t,l;return{n:l,pos:t}=Yt(a,t,e,s,16,i,r,!1,o,!n),l===null&&(n?o.invalidEscapeSequence(h,e,s):t=h-1),{code:l,pos:t}}function Yt(a,t,e,s,i,r,n,o,h,l){let c=t,u=i===16?Ot.hex:Ot.decBinOct,f=i===16?Se.hex:i===10?Se.dec:i===8?Se.oct:Se.bin,d=!1,x=0;for(let S=0,N=r??1/0;S<N;++S){let w=a.charCodeAt(t),I;if(w===95&&o!=="bail"){let Te=a.charCodeAt(t-1),ne=a.charCodeAt(t+1);if(o){if(Number.isNaN(ne)||!f(ne)||u.has(Te)||u.has(ne)){if(l)return{n:null,pos:t};h.unexpectedNumericSeparator(t,e,s)}}else{if(l)return{n:null,pos:t};h.numericSeparatorInEscapeSequence(t,e,s)}++t;continue}if(w>=97?I=w-97+10:w>=65?I=w-65+10:Ii(w)?I=w-48:I=1/0,I>=i){if(I<=9&&l)return{n:null,pos:t};if(I<=9&&h.invalidDigit(t,e,s,i))I=0;else if(n)I=0,d=!0;else break}++t,x=x*i+I}return t===c||r!=null&&t-c!==r||d?{n:null,pos:t}:{n:x,pos:t}}function Qt(a,t,e,s,i,r){let n=a.charCodeAt(t),o;if(n===123){if(++t,{code:o,pos:t}=Ge(a,t,e,s,a.indexOf("}",t)-t,!0,i,r),++t,o!==null&&o>1114111)if(i)r.invalidCodePoint(t,e,s);else return{code:null,pos:t}}else({code:o,pos:t}=Ge(a,t,e,s,4,!1,i,r));return{code:o,pos:t}}function le(a,t,e){return new O(e,a-t,a)}var vi=new Set([103,109,115,105,121,117,100,118]),M=class{constructor(t){let e=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=e+t.start,this.end=e+t.end,this.loc=new ee(t.startLoc,t.endLoc)}},Ye=class extends We{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(s,i,r,n)=>this.optionFlags&1024?(this.raise(p.InvalidDigit,le(s,i,r),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(s,i,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,le(s,i,r))},unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedString,le(s-1,i,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedTemplate,le(s,i,r))}}),this.state=new Xe,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&128&&this.pushToken(new M(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Ue.lastIndex=t,Ue.test(this.input)?Ue.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return je.lastIndex=t,je.test(this.input)?je.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++t<this.input.length){let s=this.input.charCodeAt(t);(s&64512)===56320&&(e=65536+((e&1023)<<10)+(s&1023))}return e}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([e,s])=>this.raise(e,s)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state Line truncated
`:`\r
`):i=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(e){let s="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(p.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos):Q(r)?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(134,s)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;this.codePointAtPos(this.state.pos)===120&&(s=16,++this.state.pos);let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;for(;s++<10&&this.state.pos<this.length&&!(i=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(i){let r=this.input.slice(e,this.state.pos),n=void 0;if(++this.state.pos,n)return n}}return this.state.pos=e,"&"}jsxReadWord(){let e,s=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(Y(e)||e===45);this.finishToken(141,this.input.slice(s,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:mt(this.state.type)?e.name=q(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,s=this.jsxParseIdentifier();if(!this.eat(14))return s;let i=this.startNodeAt(e);return i.namespace=s,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,s=this.jsxParseNamespacedName();if(s.type==="JSXNamespacedName")return s;for(;this.eat(16);){let i=this.startNodeAt(e);i.object=s,i.property=this.jsxParseIdentifier(),s=this.finishNode(i,"JSXMemberExpression")}return s}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(C.brace),this.next(),e=this.jsxParseExpressionContainer(e,C.j_oTag),e.expression.type==="JSXEmptyExpression"&&this.raise(J.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(J.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(C.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,s){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let i=this.parseExpression();e.expression=i}return this.setContext(s),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(C.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(C.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){let s=this.startNodeAt(e);return this.eat(144)?this.finishNode(s,"JSXOpeningFragment"):(s.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(s))}jsxParseOpeningElementAfterName(e){let s=[];for(;!this.match(56)&&!this.match(144);)s.push(this.jsxParseAttribute());return e.attributes=s,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){let s=this.startNodeAt(e);return this.eat(144)?this.finishNode(s,"JSXClosingFragment"):(s.name=this.jsxParseElementName(),this.expect(144),this.finishNode(s,"JSXClosingElement"))}jsxParseElementAt(e){let s=this.startNodeAt(e),i=[],r=this.jsxParseOpeningElementAt(e),n=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){n=this.jsxParseClosingElementAt(e);break e}i.push(this.jsxParseElementAt(e));break;case 142:i.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(C.brace),this.next(),this.match(21)?i.push(this.jsxParseSpreadChild(o)):i.push(this.jsxParseExpressionContainer(o,C.j_expr));break}default:this.unexpected()}V(r)&&!V(n)&&n!==null?this.raise(J.MissingClosingTagFragment,n):!V(r)&&V(n)?this.raise(J.MissingClosingTagElement,n,{openingTagName:G(r.name)}):!V(r)&&!V(n)&&G(n.name)!==G(r.name)&&this.raise(J.MissingClosingTagElement,n,{openingTagName:G(r.name)})}if(V(r)?(s.openingFragment=r,s.closingFragment=n):(s.openingElement=r,s.closingElement=n),s.children=i,this.match(47))throw this.raise(J.UnwrappedAdjacentJSXElements,this.state.startLoc);return V(r)?this.finishNode(s,"JSXFragment"):this.finishNode(s,"J Line truncated
`),cooked:r===null?null:r.slice(1,l)},o.tail=h,this.next();let u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,v(this.state.lastTokEndLoc,l)),u}parseTemplate(t){let e=this.startNode(),s=this.parseTemplateElement(t),i=[s],r=[];for(;!s.tail;)r.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(s=this.parseTemplateElement(t));return e.expressions=r,e.quasis=i,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=Object.create(null),o=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let c;e?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,s,n,i)),s&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(p.InvalidRecordProperty,c),c.shorthand&&this.addExtra(c,"shorthand",!0),h.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=r;let l="ObjectExpression";return e?l="ObjectPattern":s&&(l="RecordExpression"),this.finishNode(h,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(p.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),i=!1,r=!1,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let h=this.state.containsEsc;if(this.parsePropertyName(s,t),!o&&!h&&this.maybeAsyncOrAccessorProp(s)){let{key:l}=s,c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(s)),(c==="get"||c==="set")&&(r=!0,this.resetPreviousNodeTrailingComments(l),s.kind=c,this.match(55)&&(o=!0,this.raise(p.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,n,o,i,!1,r,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==s&&this.raise(t.kind==="get"?p.BadGetterArity:p.BadSetterArity,t),t.kind==="set"&&((e=i[i.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(p.BadSetterRestParameter,t)}parseObjectMethod(t,e,s,i,r){if(r){let n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(s||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,i){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,U(t.key));else if(this.match(29)){let r=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=r):this.raise(p.InvalidCoverInitializedName,r),t.value=this.parseMaybeDefault(e,U(t.key))}else t.value=U(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,i,r,n,o){let h=this.parseObjectMethod(t,s,i,r,n)||this.parseObjectProperty(t,e,r,o);return h||this.unexpected(),h}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:s,value:i}=this.state,r;if(D(s))r=this.parseIdentifier(!0);else switch(s){case 135:r=this.parseNumericLiteral(i);break;case 134:r=this.parseStringLiteral(i);break;case 136:r=this.parseBigIntLiteral(i);break;case 139:{let n=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=n):this.raise(p.UnexpectedPrivateField,n),r=this.parsePrivateName();break}default:if(s===137){r=this.parseDecimalLiteral(i);break}this.unexpected()}t.key=r,s!==139&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,s,i,r,n,o=!1){this.initFunction(t,s),t.generator=e,this.scope.enter(18|(o?64:0)|(r?32:0)),this.prodParam.enter(Ee(s,t.generator)),this.parseFunctionParams(t,i);let h=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=t Line truncated
`)return t-2;if(i===`
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&a.charAt(t+1)===`
`)return t+2;if(i===`
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var os=lr;function cr(a,t){return t===!1?!1:a.charAt(t)==="/"&&a.charAt(t+1)==="/"?as(a,t):t}var hs=cr;function pr(a,t){let e=null,s=t;for(;s!==e;)e=s,s=rs(a,s),s=ns(a,s),s=hs(a,s),s=os(a,s);return s}var ls=pr;function ur(a){let t=[];for(let e of a)try{return e()}catch(s){t.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var cs=ur;function fr(a){if(!a.startsWith("#!"))return"";let t=a.indexOf(`
`);return t===-1?a:a.slice(0,t)}var De=fr;var dr=(a,t,e)=>{if(!(a&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},Tt=dr;function mr(a){return Array.isArray(a)&&a.length>0}var ye=mr;function L(a){var s,i,r;let t=((s=a.range)==null?void 0:s[0])??a.start,e=(r=((i=a.declaration)==null?void 0:i.decorators)??a.decorators)==null?void 0:r[0];return e?Math.min(L(e),t):t}function j(a){var t;return((t=a.range)==null?void 0:t[1])??a.end}function yr(a){let t=new Set(a);return e=>t.has(e==null?void 0:e.type)}var ps=yr;var xr=ps(["Block","CommentBlock","MultiLine"]),xe=xr;function Pr(a){let t=`*${a.value}*`.split(`
`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var bt=Pr;function gr(a){return xe(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(a.value)}var us=gr;var Pe=null;function ge(a){if(Pe!==null&&typeof Pe.property){let t=Pe;return Pe=ge.prototype=null,t}return Pe=ge.prototype=a??Object.create(null),new ge}var Tr=10;for(let a=0;a<=Tr;a++)ge();function At(a){return ge(a)}function br(a,t="type"){At(a);function e(s){let i=s[t],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return e}var fs=br;var ds={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[] Line truncated
`;a=ie(!1,a.replace(Nr,"").replace(Ir,""),Dr,"$1");let e="";for(;e!==a;)e=a,a=ie(!1,a,Lr,`${t}$1 $2${t}`);a=a.replace(Ps,"").trimEnd();let s=Object.create(null),i=ie(!1,a,gs,"").replace(Ps,"").trimEnd(),r;for(;r=gs.exec(a);){let n=ie(!1,r[2],vr,"");if(typeof s[r[1]]=="string"||Array.isArray(s[r[1]])){let o=s[r[1]];s[r[1]]=[...Mr,...Array.isArray(o)?o:[o],n]}else s[r[1]]=n}return{comments:i,pragmas:s}}function Or(a){let t=De(a);t&&(a=a.slice(t.length+1));let e=Ts(a),{pragmas:s,comments:i}=bs(e);return{shebang:t,text:a,pragmas:s,comments:i}}function As(a){let{pragmas:t}=Or(a);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function Fr(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:As,locStart:L,locEnd:j,...a}}var X=Fr;function Br(a){let{filepath:t}=a;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var Ss=Br;function Rr(a,t){let{type:e="JsExpressionRoot",rootMarker:s,text:i}=t,{tokens:r,comments:n}=a;return delete a.tokens,delete a.comments,{tokens:r,comments:n,type:e,node:a,range:[0,i.length],rootMarker:s}}var Be=Rr;var re=a=>X(zr(a)),_r={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","explicitResourceManagement","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},ws="v8intrinsic",Cs=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],$=(a,t=_r)=>({...t,plugins:[...t.plugins,...a]}),Ur=/@(?:no)?flow\b/u;function jr(a,t){var i;if((i=t.filepath)!=null&&i.endsWith(".js.flow"))return!0;let e=De(a);e&&(a=a.slice(e.length));let s=ls(a,0);return s!==!1&&(a=a.slice(0,s)),Ur.test(a)}function $r(a,t,e){let s=a(t,e),i=s.errors.find(r=>!Vr.has(r.reasonCode));if(i)throw i;return s}function zr({isExpression:a=!1,optionsCombinations:t}){return(e,s={})=>{if((s.parser==="babel"||s.parser==="__babel_estree")&&jr(e,s))return s.parser="babel-flow",Ls.parse(e,s);let i=t;(s.__babelSourceType??Ss(s))==="script"&&(i=i.map(l=>({...l,sourceType:"script"})));let n=/%[A-Z]/u.test(e);e.includes("|>")?i=(n?[...Cs,ws]:Cs).flatMap(c=>i.map(u=>$([c],u))):n&&(i=i.map(l=>$([ws],l)));let o=a?Re.parseExpression:Re.parse,h;try{h=cs(i.map(l=>()=>$r(o,e,l)))}catch({errors:[l]}){throw Fe(l)}return a&&(h=Be(h,{text:e,rootMarker:s.rootMarker})),xs(h,{parser:"babel",text:e})}}var Vr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert"]),vs=[$(["jsx"])],Es=re({optionsCombinations:vs}),Is=re({optionsCombinations:[$(["jsx","typescript"]),$(["typescript"])]}),Ns=re({isExpression:!0,optionsCombinations:[$(["jsx"])]}),ks=re({isExpression:!0,optionsCombinations:[$(["typescript"])]}),Ls=re({optionsCombinations:[$(["jsx",["flow",{all:!0}],"flowComments"])]}),qr=re({optionsCombinations:vs.map(a=>$(["estree"],a))}),Ds={babel:Es,"babel-flow":Ls,"babel-ts":Is,__js_expression:Ns,__ts_expression:ks,__vue_expression:Ns,__vue_ts_expression:ks,__vue_event_binding:Es,__vue_ts_event_binding:Is,__babel_estree:qr};var Ms=It(gt(),1);function Os(a={}){let{allowComments:t=!0}=a;return function(s){let i;try{i=(0,Ms.parseExpression)(s,{tokens:!0,ranges:!0,attachComment:!1})}catch(r){throw Fe(r)}if(!t&&ye(i.comments))throw K(i.comments[0],"Comment");return ae(i),Be(i,{type:"JsonRoot",text:s})}}function K(a,t){let[e,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return Oe(`${t} is not allowed in JSON.`,{loc:{start:e,end:s}})}function ae(a){switch(a.type){case"ArrayExpression":for(let t of a.elements)t!==null&&ae(t);return;case"ObjectExpression":for(let t of a.properties)ae(t);return;case"ObjectProperty":if(a.computed)throw K(a.key,"Computed key");if(a.shorthand)throw K(a.key,"Shor Line truncated
+15
View File
@@ -0,0 +1,15 @@
var Bs=Object.create;var Re=Object.defineProperty;var Rs=Object.getOwnPropertyDescriptor;var _s=Object.getOwnPropertyNames;var Us=Object.getPrototypeOf,js=Object.prototype.hasOwnProperty;var $s=(a,t)=>()=>(t||a((t={exports:{}}).exports,t),t.exports),zs=(a,t)=>{for(var e in t)Re(a,e,{get:t[e],enumerable:!0})},Vs=(a,t,e,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let i of _s(t))!js.call(a,i)&&i!==e&&Re(a,i,{get:()=>t[i],enumerable:!(s=Rs(t,i))||s.enumerable});return a};var It=(a,t,e)=>(e=a!=null?Bs(Us(a)):{},Vs(t||!a||!a.__esModule?Re(e,"default",{value:a,enumerable:!0}):e,a));var gt=$s(me=>{"use strict";Object.defineProperty(me,"__esModule",{value:!0});function qs(a,t){if(a==null)return{};var e={};for(var s in a)if({}.hasOwnProperty.call(a,s)){if(t.includes(s))continue;e[s]=a[s]}return e}var O=class{constructor(t,e,s){this.line=void 0,this.column=void 0,this.index=void 0,this.line=t,this.column=e,this.index=s}},ee=class{constructor(t,e){this.start=void 0,this.end=void 0,this.filename=void 0,this.identifierName=void 0,this.start=t,this.end=e}};function v(a,t){let{line:e,column:s,index:i}=a;return new O(e,s+t,i+t)}var Nt="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",Ks={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:Nt},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:Nt}},kt={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"},Se=a=>a.type==="UpdateExpression"?kt.UpdateExpression[`${a.prefix}`]:kt[a.type],Hs={AccessorIsGenerator:({kind:a})=>`A ${a}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:a})=>`Missing initializer in ${a} 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:"DuplicateLine truncated
- Did you mean \`export { '${a}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:a})=>`'${a==="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:a})=>`Unsyntactic ${a==="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 `deprecatedImportAssert` parser plugin to suppress this error.",ImportBindingIsString:({importName:a})=>`A string literal cannot be used as an imported binding.
- Did you mean \`import { "${a}" as foo }\`?`,ImportCallArity:"`import()` requires exactly 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:a})=>`Expected number in radix ${a}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:a})=>`Escape sequence in keyword ${a}.`,InvalidIdentifier:({identifierName:a})=>`Invalid identifier ${a}.`,InvalidLhs:({ancestor:a})=>`Invalid left-hand side in ${Se(a)}.`,InvalidLhsBinding:({ancestor:a})=>`Binding invalid left-hand side in ${Se(a)}.`,InvalidLhsOptionalChaining:({ancestor:a})=>`Invalid optional chaining in the left-hand side of ${Se(a)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:a})=>`Unexpected character '${a}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:a})=>`Private name #${a} 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:a})=>`Label '${a}' 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:a})=>`This experimental syntax requires enabling the parser plugin: ${a.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:a})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${a.map(t=>JSON.stringify(t)).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:a})=>`Duplicate key "${a}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:a})=>`An export name cannot include a lone surrogate, found '\\u${a.toString(16)}'.`,ModuleExportUndefined:({localName:a})=>`Export '${a}' 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:a})=>`Private names are only allowed in property accesses (\`obj.#${a}\`) or in \`in\` expressions (\`#${a} in obj\`).`,PrivateNameRedeclaration:({identifierName:a})=>`Duplicate private name #${a}.`,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 allLine truncated
`,++e,d===13&&t.charCodeAt(e)===10&&++e,++i,u=s=e):r.unterminated(n,o,h):++e}return{pos:e,str:l,firstInvalidLoc:c,lineStart:s,curLine:i,containsInvalid:!!c}}function Ni(a,t,e,s){return a==="template"?t===96||t===36&&e.charCodeAt(s+1)===123:t===(a==="double"?34:39)}function ki(a,t,e,s,i,r){let n=!i;t++;let o=l=>({pos:t,ch:l,lineStart:e,curLine:s}),h=a.charCodeAt(t++);switch(h){case 110:return o(`
`);case 114:return o("\r");case 120:{let l;return{code:l,pos:t}=Ge(a,t,e,s,2,!1,n,r),o(l===null?null:String.fromCharCode(l))}case 117:{let l;return{code:l,pos:t}=Qt(a,t,e,s,n,r),o(l===null?null:String.fromCodePoint(l))}case 116:return o(" ");case 98:return o("\b");case 118:return o("\v");case 102:return o("\f");case 13:a.charCodeAt(t)===10&&++t;case 10:e=t,++s;case 8232:case 8233:return o("");case 56:case 57:if(i)return o(null);r.strictNumericEscape(t-1,e,s);default:if(h>=48&&h<=55){let l=t-1,u=/^[0-7]+/.exec(a.slice(l,t+2))[0],f=parseInt(u,8);f>255&&(u=u.slice(0,-1),f=parseInt(u,8)),t+=u.length-1;let d=a.charCodeAt(t);if(u!=="0"||d===56||d===57){if(i)return o(null);r.strictNumericEscape(l,e,s)}return o(String.fromCharCode(f))}return o(String.fromCharCode(h))}}function Ge(a,t,e,s,i,r,n,o){let h=t,l;return{n:l,pos:t}=Yt(a,t,e,s,16,i,r,!1,o,!n),l===null&&(n?o.invalidEscapeSequence(h,e,s):t=h-1),{code:l,pos:t}}function Yt(a,t,e,s,i,r,n,o,h,l){let c=t,u=i===16?Ot.hex:Ot.decBinOct,f=i===16?Ae.hex:i===10?Ae.dec:i===8?Ae.oct:Ae.bin,d=!1,x=0;for(let S=0,N=r??1/0;S<N;++S){let w=a.charCodeAt(t),I;if(w===95&&o!=="bail"){let Te=a.charCodeAt(t-1),ne=a.charCodeAt(t+1);if(o){if(Number.isNaN(ne)||!f(ne)||u.has(Te)||u.has(ne)){if(l)return{n:null,pos:t};h.unexpectedNumericSeparator(t,e,s)}}else{if(l)return{n:null,pos:t};h.numericSeparatorInEscapeSequence(t,e,s)}++t;continue}if(w>=97?I=w-97+10:w>=65?I=w-65+10:Ii(w)?I=w-48:I=1/0,I>=i){if(I<=9&&l)return{n:null,pos:t};if(I<=9&&h.invalidDigit(t,e,s,i))I=0;else if(n)I=0,d=!0;else break}++t,x=x*i+I}return t===c||r!=null&&t-c!==r||d?{n:null,pos:t}:{n:x,pos:t}}function Qt(a,t,e,s,i,r){let n=a.charCodeAt(t),o;if(n===123){if(++t,{code:o,pos:t}=Ge(a,t,e,s,a.indexOf("}",t)-t,!0,i,r),++t,o!==null&&o>1114111)if(i)r.invalidCodePoint(t,e,s);else return{code:null,pos:t}}else({code:o,pos:t}=Ge(a,t,e,s,4,!1,i,r));return{code:o,pos:t}}function le(a,t,e){return new O(e,a-t,a)}var vi=new Set([103,109,115,105,121,117,100,118]),M=class{constructor(t){let e=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=e+t.start,this.end=e+t.end,this.loc=new ee(t.startLoc,t.endLoc)}},Ye=class extends We{constructor(t,e){super(),this.isLookahead=void 0,this.tokens=[],this.errorHandlers_readInt={invalidDigit:(s,i,r,n)=>this.optionFlags&1024?(this.raise(p.InvalidDigit,le(s,i,r),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(p.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(p.UnexpectedNumericSeparator)},this.errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(p.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(p.InvalidCodePoint)}),this.errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(s,i,r)=>{this.recordStrictModeErrors(p.StrictNumericEscape,le(s,i,r))},unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedString,le(s-1,i,r))}}),this.errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(p.StrictNumericEscape),unterminated:(s,i,r)=>{throw this.raise(p.UnterminatedTemplate,le(s,i,r))}}),this.state=new Xe,this.state.init(t),this.input=e,this.length=e.length,this.comments=[],this.isLookahead=!1}pushToken(t){this.tokens.length=this.state.tokensLength,this.tokens.push(t),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&128&&this.pushToken(new M(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(t){return this.match(t)?(this.next(),!0):!1}match(t){return this.state.type===t}createLookaheadState(t){return{pos:t.pos,value:null,type:t.type,start:t.start,end:t.end,context:[this.curContext()],inType:t.inType,startLoc:t.startLoc,lastTokEndLoc:t.lastTokEndLoc,curLine:t.curLine,lineStart:t.lineStart,curPosition:t.curPosition}}lookahead(){let t=this.state;this.state=this.createLookaheadState(t),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let e=this.state;return this.state=t,e}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(t){return Ue.lastIndex=t,Ue.test(this.input)?Ue.lastIndex:t}lookaheadCharCode(){return this.input.charCodeAt(this.nextTokenStart())}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(t){return je.lastIndex=t,je.test(this.input)?je.lastIndex:t}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(t){let e=this.input.charCodeAt(t);if((e&64512)===55296&&++t<this.input.length){let s=this.input.charCodeAt(t);(s&64512)===56320&&(e=65536+((e&1023)<<10)+(s&1023))}return e}setStrict(t){this.state.strict=t,t&&(this.state.strictErrors.forEach(([e,s])=>this.raise(e,s)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state Line truncated
`:`\r
`):i=String.fromCharCode(s),++this.state.curLine,this.state.lineStart=this.state.pos,i}jsxReadString(e){let s="",i=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(p.UnterminatedString,this.state.startLoc);let r=this.input.charCodeAt(this.state.pos);if(r===e)break;r===38?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadEntity(),i=this.state.pos):Q(r)?(s+=this.input.slice(i,this.state.pos),s+=this.jsxReadNewLine(!1),i=this.state.pos):++this.state.pos}s+=this.input.slice(i,this.state.pos++),this.finishToken(134,s)}jsxReadEntity(){let e=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let s=10;this.codePointAtPos(this.state.pos)===120&&(s=16,++this.state.pos);let i=this.readInt(s,void 0,!1,"bail");if(i!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(i)}else{let s=0,i=!1;for(;s++<10&&this.state.pos<this.length&&!(i=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(i){let r=this.input.slice(e,this.state.pos),n=void 0;if(++this.state.pos,n)return n}}return this.state.pos=e,"&"}jsxReadWord(){let e,s=this.state.pos;do e=this.input.charCodeAt(++this.state.pos);while(Y(e)||e===45);this.finishToken(141,this.input.slice(s,this.state.pos))}jsxParseIdentifier(){let e=this.startNode();return this.match(141)?e.name=this.state.value:mt(this.state.type)?e.name=q(this.state.type):this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsxParseNamespacedName(){let e=this.state.startLoc,s=this.jsxParseIdentifier();if(!this.eat(14))return s;let i=this.startNodeAt(e);return i.namespace=s,i.name=this.jsxParseIdentifier(),this.finishNode(i,"JSXNamespacedName")}jsxParseElementName(){let e=this.state.startLoc,s=this.jsxParseNamespacedName();if(s.type==="JSXNamespacedName")return s;for(;this.eat(16);){let i=this.startNodeAt(e);i.object=s,i.property=this.jsxParseIdentifier(),s=this.finishNode(i,"JSXMemberExpression")}return s}jsxParseAttributeValue(){let e;switch(this.state.type){case 5:return e=this.startNode(),this.setContext(C.brace),this.next(),e=this.jsxParseExpressionContainer(e,C.j_oTag),e.expression.type==="JSXEmptyExpression"&&this.raise(J.AttributeIsEmpty,e),e;case 143:case 134:return this.parseExprAtom();default:throw this.raise(J.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let e=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(e){return this.next(),e.expression=this.parseExpression(),this.setContext(C.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadChild")}jsxParseExpressionContainer(e,s){if(this.match(8))e.expression=this.jsxParseEmptyExpression();else{let i=this.parseExpression();e.expression=i}return this.setContext(s),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXExpressionContainer")}jsxParseAttribute(){let e=this.startNode();return this.match(5)?(this.setContext(C.brace),this.next(),this.expect(21),e.argument=this.parseMaybeAssignAllowIn(),this.setContext(C.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsxParseNamespacedName(),e.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsxParseOpeningElementAt(e){let s=this.startNodeAt(e);return this.eat(144)?this.finishNode(s,"JSXOpeningFragment"):(s.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(s))}jsxParseOpeningElementAfterName(e){let s=[];for(;!this.match(56)&&!this.match(144);)s.push(this.jsxParseAttribute());return e.attributes=s,e.selfClosing=this.eat(56),this.expect(144),this.finishNode(e,"JSXOpeningElement")}jsxParseClosingElementAt(e){let s=this.startNodeAt(e);return this.eat(144)?this.finishNode(s,"JSXClosingFragment"):(s.name=this.jsxParseElementName(),this.expect(144),this.finishNode(s,"JSXClosingElement"))}jsxParseElementAt(e){let s=this.startNodeAt(e),i=[],r=this.jsxParseOpeningElementAt(e),n=null;if(!r.selfClosing){e:for(;;)switch(this.state.type){case 143:if(e=this.state.startLoc,this.next(),this.eat(56)){n=this.jsxParseClosingElementAt(e);break e}i.push(this.jsxParseElementAt(e));break;case 142:i.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(C.brace),this.next(),this.match(21)?i.push(this.jsxParseSpreadChild(o)):i.push(this.jsxParseExpressionContainer(o,C.j_expr));break}default:this.unexpected()}V(r)&&!V(n)&&n!==null?this.raise(J.MissingClosingTagFragment,n):!V(r)&&V(n)?this.raise(J.MissingClosingTagElement,n,{openingTagName:G(r.name)}):!V(r)&&!V(n)&&G(n.name)!==G(r.name)&&this.raise(J.MissingClosingTagElement,n,{openingTagName:G(r.name)})}if(V(r)?(s.openingFragment=r,s.closingFragment=n):(s.openingElement=r,s.closingElement=n),s.children=i,this.match(47))throw this.raise(J.UnwrappedAdjacentJSXElements,this.state.startLoc);return V(r)?this.finishNode(s,"JSXFragment"):this.finishNode(s,"J Line truncated
`),cooked:r===null?null:r.slice(1,l)},o.tail=h,this.next();let u=this.finishNode(o,"TemplateElement");return this.resetEndLocation(u,v(this.state.lastTokEndLoc,l)),u}parseTemplate(t){let e=this.startNode(),s=this.parseTemplateElement(t),i=[s],r=[];for(;!s.tail;)r.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),i.push(s=this.parseTemplateElement(t));return e.expressions=r,e.quasis=i,this.finishNode(e,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=Object.create(null),o=!0,h=this.startNode();for(h.properties=[],this.next();!this.match(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(h);break}let c;e?c=this.parseBindingProperty():(c=this.parsePropertyDefinition(i),this.checkProto(c,s,n,i)),s&&!this.isObjectProperty(c)&&c.type!=="SpreadElement"&&this.raise(p.InvalidRecordProperty,c),c.shorthand&&this.addExtra(c,"shorthand",!0),h.properties.push(c)}this.next(),this.state.inFSharpPipelineDirectBody=r;let l="ObjectExpression";return e?l="ObjectPattern":s&&(l="RecordExpression"),this.finishNode(h,l)}addTrailingCommaExtraToNode(t){this.addExtra(t,"trailingComma",this.state.lastTokStartLoc.index),this.addExtra(t,"trailingCommaLoc",this.state.lastTokStartLoc,!1)}maybeAsyncOrAccessorProp(t){return!t.computed&&t.key.type==="Identifier"&&(this.isLiteralPropertyName()||this.match(0)||this.match(55))}parsePropertyDefinition(t){let e=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(p.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)e.push(this.parseDecorator());let s=this.startNode(),i=!1,r=!1,n;if(this.match(21))return e.length&&this.unexpected(),this.parseSpread();e.length&&(s.decorators=e,e=[]),s.method=!1,t&&(n=this.state.startLoc);let o=this.eat(55);this.parsePropertyNamePrefixOperator(s);let h=this.state.containsEsc;if(this.parsePropertyName(s,t),!o&&!h&&this.maybeAsyncOrAccessorProp(s)){let{key:l}=s,c=l.name;c==="async"&&!this.hasPrecedingLineBreak()&&(i=!0,this.resetPreviousNodeTrailingComments(l),o=this.eat(55),this.parsePropertyName(s)),(c==="get"||c==="set")&&(r=!0,this.resetPreviousNodeTrailingComments(l),s.kind=c,this.match(55)&&(o=!0,this.raise(p.AccessorIsGenerator,this.state.curPosition(),{kind:c}),this.next()),this.parsePropertyName(s))}return this.parseObjPropValue(s,n,o,i,!1,r,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){var e;let s=this.getGetterSetterExpectedParamCount(t),i=this.getObjectOrClassMethodParams(t);i.length!==s&&this.raise(t.kind==="get"?p.BadGetterArity:p.BadSetterArity,t),t.kind==="set"&&((e=i[i.length-1])==null?void 0:e.type)==="RestElement"&&this.raise(p.BadSetterRestParameter,t)}parseObjectMethod(t,e,s,i,r){if(r){let n=this.parseMethod(t,e,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(n),n}if(s||e||this.match(10))return i&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,e,s,!1,!1,"ObjectMethod")}parseObjectProperty(t,e,s,i){if(t.shorthand=!1,this.eat(14))return t.value=s?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowIn(i),this.finishNode(t,"ObjectProperty");if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),s)t.value=this.parseMaybeDefault(e,U(t.key));else if(this.match(29)){let r=this.state.startLoc;i!=null?i.shorthandAssignLoc===null&&(i.shorthandAssignLoc=r):this.raise(p.InvalidCoverInitializedName,r),t.value=this.parseMaybeDefault(e,U(t.key))}else t.value=U(t.key);return t.shorthand=!0,this.finishNode(t,"ObjectProperty")}}parseObjPropValue(t,e,s,i,r,n,o){let h=this.parseObjectMethod(t,s,i,r,n)||this.parseObjectProperty(t,e,r,o);return h||this.unexpected(),h}parsePropertyName(t,e){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:s,value:i}=this.state,r;if(D(s))r=this.parseIdentifier(!0);else switch(s){case 135:r=this.parseNumericLiteral(i);break;case 134:r=this.parseStringLiteral(i);break;case 136:r=this.parseBigIntLiteral(i);break;case 139:{let n=this.state.startLoc;e!=null?e.privateKeyLoc===null&&(e.privateKeyLoc=n):this.raise(p.UnexpectedPrivateField,n),r=this.parsePrivateName();break}default:if(s===137){r=this.parseDecimalLiteral(i);break}this.unexpected()}t.key=r,s!==139&&(t.computed=!1)}}initFunction(t,e){t.id=null,t.generator=!1,t.async=e}parseMethod(t,e,s,i,r,n,o=!1){this.initFunction(t,s),t.generator=e,this.scope.enter(18|(o?64:0)|(r?32:0)),this.prodParam.enter(Ce(s,t.generator)),this.parseFunctionParams(t,i);let h=this.parseFunctionBodyAndFinish(t,n,!0);return this.prodParam.exit(),this.scope.exit(),h}parseArrayLike(t,e,s,i){s&&this.expectPlugin("recordAndTuple");let r=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let n=t Line truncated
`)return t-2;if(i===`
`||i==="\r"||i==="\u2028"||i==="\u2029")return t-1}else{if(i==="\r"&&a.charAt(t+1)===`
`)return t+2;if(i===`
`||i==="\r"||i==="\u2028"||i==="\u2029")return t+1}return t}var os=lr;function cr(a,t){return t===!1?!1:a.charAt(t)==="/"&&a.charAt(t+1)==="/"?as(a,t):t}var hs=cr;function pr(a,t){let e=null,s=t;for(;s!==e;)e=s,s=rs(a,s),s=ns(a,s),s=hs(a,s),s=os(a,s);return s}var ls=pr;function ur(a){let t=[];for(let e of a)try{return e()}catch(s){t.push(s)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var cs=ur;function fr(a){if(!a.startsWith("#!"))return"";let t=a.indexOf(`
`);return t===-1?a:a.slice(0,t)}var Le=fr;var dr=(a,t,e)=>{if(!(a&&t==null))return Array.isArray(t)||typeof t=="string"?t[e<0?t.length+e:e]:t.at(e)},Tt=dr;function mr(a){return Array.isArray(a)&&a.length>0}var ye=mr;function L(a){var s,i,r;let t=((s=a.range)==null?void 0:s[0])??a.start,e=(r=((i=a.declaration)==null?void 0:i.decorators)??a.decorators)==null?void 0:r[0];return e?Math.min(L(e),t):t}function j(a){var t;return((t=a.range)==null?void 0:t[1])??a.end}function yr(a){let t=new Set(a);return e=>t.has(e==null?void 0:e.type)}var ps=yr;var xr=ps(["Block","CommentBlock","MultiLine"]),xe=xr;function Pr(a){let t=`*${a.value}*`.split(`
`);return t.length>1&&t.every(e=>e.trimStart()[0]==="*")}var bt=Pr;function gr(a){return xe(a)&&a.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(a.value)}var us=gr;var Pe=null;function ge(a){if(Pe!==null&&typeof Pe.property){let t=Pe;return Pe=ge.prototype=null,t}return Pe=ge.prototype=a??Object.create(null),new ge}var Tr=10;for(let a=0;a<=Tr;a++)ge();function At(a){return ge(a)}function br(a,t="type"){At(a);function e(s){let i=s[t],r=a[i];if(!Array.isArray(r))throw Object.assign(new Error(`Missing visitor keys for '${i}'.`),{node:s});return r}return e}var fs=br;var ds={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[] Line truncated
`;a=ie(!1,a.replace(Nr,"").replace(Ir,""),Dr,"$1");let e="";for(;e!==a;)e=a,a=ie(!1,a,Lr,`${t}$1 $2${t}`);a=a.replace(Ps,"").trimEnd();let s=Object.create(null),i=ie(!1,a,gs,"").replace(Ps,"").trimEnd(),r;for(;r=gs.exec(a);){let n=ie(!1,r[2],vr,"");if(typeof s[r[1]]=="string"||Array.isArray(s[r[1]])){let o=s[r[1]];s[r[1]]=[...Mr,...Array.isArray(o)?o:[o],n]}else s[r[1]]=n}return{comments:i,pragmas:s}}function Or(a){let t=Le(a);t&&(a=a.slice(t.length+1));let e=Ts(a),{pragmas:s,comments:i}=bs(e);return{shebang:t,text:a,pragmas:s,comments:i}}function As(a){let{pragmas:t}=Or(a);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function Fr(a){return a=typeof a=="function"?{parse:a}:a,{astFormat:"estree",hasPragma:As,locStart:L,locEnd:j,...a}}var X=Fr;function Br(a){let{filepath:t}=a;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var Ss=Br;function Rr(a,t){let{type:e="JsExpressionRoot",rootMarker:s,text:i}=t,{tokens:r,comments:n}=a;return delete a.tokens,delete a.comments,{tokens:r,comments:n,type:e,node:a,range:[0,i.length],rootMarker:s}}var Fe=Rr;var re=a=>X(zr(a)),_r={sourceType:"module",allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,createImportExpressions:!0,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","explicitResourceManagement","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],"recordAndTuple"],tokens:!0,ranges:!0},ws="v8intrinsic",Cs=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],$=(a,t=_r)=>({...t,plugins:[...t.plugins,...a]}),Ur=/@(?:no)?flow\b/u;function jr(a,t){var i;if((i=t.filepath)!=null&&i.endsWith(".js.flow"))return!0;let e=Le(a);e&&(a=a.slice(e.length));let s=ls(a,0);return s!==!1&&(a=a.slice(0,s)),Ur.test(a)}function $r(a,t,e){let s=a(t,e),i=s.errors.find(r=>!Vr.has(r.reasonCode));if(i)throw i;return s}function zr({isExpression:a=!1,optionsCombinations:t}){return(e,s={})=>{if((s.parser==="babel"||s.parser==="__babel_estree")&&jr(e,s))return s.parser="babel-flow",Ls.parse(e,s);let i=t;(s.__babelSourceType??Ss(s))==="script"&&(i=i.map(l=>({...l,sourceType:"script"})));let n=/%[A-Z]/u.test(e);e.includes("|>")?i=(n?[...Cs,ws]:Cs).flatMap(c=>i.map(u=>$([c],u))):n&&(i=i.map(l=>$([ws],l)));let o=a?Be.parseExpression:Be.parse,h;try{h=cs(i.map(l=>()=>$r(o,e,l)))}catch({errors:[l]}){throw Oe(l)}return a&&(h=Fe(h,{text:e,rootMarker:s.rootMarker})),xs(h,{parser:"babel",text:e})}}var Vr=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","EmptyTypeArguments","EmptyTypeParameters","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","LineTerminatorBeforeArrow","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","OptionalBindingPattern","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","ConstructorClassField","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert"]),vs=[$(["jsx"])],Es=re({optionsCombinations:vs}),Is=re({optionsCombinations:[$(["jsx","typescript"]),$(["typescript"])]}),Ns=re({isExpression:!0,optionsCombinations:[$(["jsx"])]}),ks=re({isExpression:!0,optionsCombinations:[$(["typescript"])]}),Ls=re({optionsCombinations:[$(["jsx",["flow",{all:!0}],"flowComments"])]}),qr=re({optionsCombinations:vs.map(a=>$(["estree"],a))}),Ds={babel:Es,"babel-flow":Ls,"babel-ts":Is,__js_expression:Ns,__ts_expression:ks,__vue_expression:Ns,__vue_ts_expression:ks,__vue_event_binding:Es,__vue_ts_event_binding:Is,__babel_estree:qr};var Ms=It(gt(),1);function Os(a={}){let{allowComments:t=!0}=a;return function(s){let i;try{i=(0,Ms.parseExpression)(s,{tokens:!0,ranges:!0,attachComment:!1})}catch(r){throw Oe(r)}if(!t&&ye(i.comments))throw K(i.comments[0],"Comment");return ae(i),Fe(i,{type:"JsonRoot",text:s})}}function K(a,t){let[e,s]=[a.loc.start,a.loc.end].map(({line:i,column:r})=>({line:i,column:r+1}));return Me(`${t} is not allowed in JSON.`,{loc:{start:e,end:s}})}function ae(a){switch(a.type){case"ArrayExpression":for(let t of a.elements)t!==null&&ae(t);return;case"ObjectExpression":for(let t of a.properties)ae(t);return;case"ObjectProperty":if(a.computed)throw K(a.key,"Computed key");if(a.shorthand)throw K(a.key,"Shor Line truncated
+1
View File
@@ -0,0 +1 @@
export {};
+36
View File
@@ -0,0 +1,36 @@
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.estree=e()}})(function(){"use strict";var wn=Object.defineProperty;var Ha=Object.getOwnPropertyDescriptor;var Va=Object.getOwnPropertyNames;var $a=Object.prototype.hasOwnProperty;var Ns=e=>{throw TypeError(e)};var xr=(e,t)=>{for(var r in t)wn(e,r,{get:t[r],enumerable:!0})},Ka=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of Va(t))!$a.call(e,s)&&s!==r&&wn(e,s,{get:()=>t[s],enumerable:!(n=Ha(t,s))||n.enumerable});return e};var Qa=e=>Ka(wn({},"__esModule",{value:!0}),e);var Gs=(e,t,r)=>t.has(e)||Ns("Cannot "+r);var ct=(e,t,r)=>(Gs(e,t,"read from private field"),r?r.call(e):t.get(e)),Us=(e,t,r)=>t.has(e)?Ns("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ys=(e,t,r,n)=>(Gs(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Em={};xr(Em,{languages:()=>fm,options:()=>Na,printers:()=>Dm});var Xs=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var js={};xr(js,{canAttachComment:()=>Bp,embed:()=>ri,experimentalFeatures:()=>om,getCommentChildNodes:()=>bp,getVisitorKeys:()=>br,handleComments:()=>Zn,insertPragma:()=>yi,isBlockComment:()=>ee,isGap:()=>Pp,massageAstNode:()=>xu,print:()=>ja,printComment:()=>Ou,willPrintOwnComments:()=>es});var za=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Y=za;var Za=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},M=Za;function eo(e){return e!==null&&typeof e=="object"}var Hs=eo;function*to(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=u=>Hs(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let a of i)s(a)&&(yield a);else s(i)&&(yield i)}}function*ro(e,t){let r=[e];for(let n=0;n<r.length;n++){let s=r[n];for(let u of to(s,t))yield u,r.push(u)}}function Vs(e,{getVisitorKeys:t,predicate:r}){for(let n of ro(e,{getVisitorKeys:t}))if(r(n))return!0;return!1}var $s=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\Line truncated
`)return t-2;if(s===`
`||s==="\r"||s==="\u2028"||s==="\u2029")return t-1}else{if(s==="\r"&&e.charAt(t+1)===`
`)return t+2;if(s===`
`||s==="\r"||s==="\u2028"||s==="\u2029")return t+1}return t}var He=uo;function io(e,t,r={}){let n=Xe(e,r.backwards?t-1:t,r),s=He(e,n,r);return n!==s}var Z=io;function ao(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var _t=ao;function oo(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?eu(e,t):t}var vt=oo;function po(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Zs(e,n),n=_t(e,n),n=Xe(e,n);return n=vt(e,n),n=He(e,n),n!==!1&&Z(e,n)}var jt=po;function co(e){return Array.isArray(e)&&e.length>0}var O=co;var tu=new Proxy(()=>{},{get:()=>tu}),Mt=tu;var gr="'",ru='"';function lo(e,t){let r=t===!0||t===gr?gr:ru,n=r===gr?ru:gr,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var Sr=lo;function mo(e,t,r){let n=t==='"'?"'":'"',u=Y(!1,e,/\\(.)|(["'])/gsu,(i,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+u+t}var nu=mo;function yo(e,t){Mt.ok(/^(?<quote>["']).*\k<quote>$/su.test(e));let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Sr(r,t.singleQuote);return e.charAt(0)===n?e:nu(r,n,!1)}var nt=yo;function q(e){var n,s,u;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(u=((s=e.declaration)==null?void 0:s.decorators)??e.decorators)==null?void 0:u[0];return r?Math.min(q(r),t):t}function k(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function Pt(e,t){let r=q(e);return Number.isInteger(r)&&r===q(t)}function Do(e,t){let r=k(e);return Number.isInteger(r)&&r===k(t)}function su(e,t){return Pt(e,t)&&Do(e,t)}var rr=null;function nr(e){if(rr!==null&&typeof rr.property){let t=rr;return rr=nr.prototype=null,t}return rr=nr.prototype=e??Object.create(null),new nr}var fo=10;for(let e=0;e<=fo;e++)nr();function On(e){return nr(e)}function Eo(e,t="type"){On(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var Br=Eo;var uu={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"] Line truncated
`):e.type==="UnaryExpression"?ir(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:wr(e)}function Le(e,t){return X(t)?Lt(t):T(t,h.Leading,r=>Z(e,k(r)))}function au(e){return e.quasis.some(t=>t.value.raw.includes(`
`))}function _r(e,t){return(e.type==="TemplateLiteral"&&au(e)||e.type==="TaggedTemplateExpression"&&au(e.quasi))&&!Z(t,q(e),{backwards:!0})}function vr(e){if(!T(e))return!1;let t=M(!1,lt(e,h.Dangling),-1);return t&&!ee(t)}function fu(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Rt(r)){if(t+=1,t>1)return!0}else if(L(r)){for(let n of pe(r))if(Rt(n))return!0}return!1}function jr(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&L(t)&&L(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var wo=new Set(["!","-","+","~"]);function Ie(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return Ie(e.expression,t);let r=n=>Ie(n,t-1);if(Jn(e))return rt(e.pattern??e.regex.pattern)<=5;if(wr(e)||So(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(`
`))&&e.expressions.every(r);if(se(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(U(e))return e.elements.every(n=>n===null||r(n));if(mt(e)){if(e.type==="ImportExpression"||Ie(e.callee,t)){let n=pe(e);return n.length<=t&&n.every(r)}return!1}return W(e)?Ie(e.object,t)&&Ie(e.property,t):e.type==="UnaryExpression"&&wo.has(e.operator)||e.type==="UpdateExpression"?Ie(e.argument,t):!1}function fe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function Eu(e){return e}function oe(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ae(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ae(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ae(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ae(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ae(e.callee,t);case"ConditionalExpression":return ae(e.test,t);case"UpdateExpression":return!e.prefix&&ae(e.argument,t);case"BindExpression":return e.object&&ae(e.object,t);case"SequenceExpression":return ae(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ae(e.expression,t);default:return t(e)}}var ou={"==":!0,"!=":!0,"===":!0,"!==":!0},Ir={"*":!0,"/":!0,"%":!0},Mn={">>":!0,">>>":!0,"<<":!0};function ar(e,t){return!(sr(t)!==sr(e)||e==="**"||ou[e]&&ou[t]||t==="%"&&Ir[e]||e==="%"&&Ir[t]||t!==e&&Ir[t]&&Ir[e]||Mn[e]&&Mn[t])}var Oo=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function sr(e){return Oo.get(e)}function Fu(e){return!!Mn[e]||e==="|"||e==="^"||e==="&"}function Cu(e){var r;if(e.rest)return!0;let t=z(e);return((r=M(!1,t,-1))==null?void 0:r.type)==="RestElement"}var vn=new WeakMap;function z(e){if(vn.has(e))return vn.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),vn.set(e,t),t}function Au(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var jn=new WeakMap;function pe(e){if(jn.has(e))return jn.get(e);if(e.type==="ChainExpression")return pe(e.expression);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.options&&t.push(e.options)),jn.set(e,t),t}function Wt(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>Wt(e,t),"expression");r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.options&&e.call(n=>t(n,1),"options")):e.each(t,"arguments")}function Wn(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return[...r,"arguments",t]}function or(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function Lt(e){return(e==null?void 0:e.prettierIgnore)||T(e,h.PrettierIgnore)}var h={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Tu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&h.Leading&&!r.leading||e&h.Trailing&&!r.trailing||e&h.Dangling&&(r.leading||r.trailing)||e&h.Block&&!ee(r)||e&h.Line&&!At(r)||e&h.First&&n!==0||e&h.Last&&n!==s.length-1||e&h.PrettierIgnore&&!or(r)||t&&!t(r))};function T(e,t,r){if(!O(e==null?void 0:e.comments))return!1;let n=Tu(t,r);return n?e.comments.some(n):!0}function lt(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=Tu(t,r);return n?e.comments.filter(n):e.comments}var ce=(e,{originalText:t})=>jt(t,k(e));function mt(e){return L(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Ce(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!kt(e))}var Ae=R(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),we=R(["TSUnionType","UnionTypeAnnotation"]),Nt=R(["TSIntersectionType","IntersectionTypeAnnotation"]),Je=R(["TSConditionalType","ConditionalTypeAnnotation"]);var _o=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Gt=e=>{for(let t of e.quasis)delete t.value};function du(e,t,r){var s,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&e.value&&(t.value=e.value.toLowerCase()),( Line truncated
Expected it to be 'string' or 'object'.`;if(Se(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=jo([...Mr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}var Nn=class extends Error{name="InvalidDocError";constructor(t){super(Mo(t)),this.doc=t}},dt=Nn;var hu={};function Ro(e,t,r,n){let s=[e];for(;s.length>0;){let u=s.pop();if(u===hu){r(s.pop());continue}r&&s.push(u,hu);let i=Se(u);if(!i)throw new dt(u);if((t==null?void 0:t(u))!==!1)switch(i){case he:case Oe:{let a=i===he?u:u.parts;for(let o=a.length,p=o-1;p>=0;--p)s.push(a[p]);break}case Te:s.push(u.flatContents,u.breakContents);break;case me:if(n&&u.expandedStates)for(let a=u.expandedStates.length,o=a-1;o>=0;--o)s.push(u.expandedStates[o]);else s.push(u.contents);break;case $e:case Ve:case Qe:case ge:case ze:s.push(u.contents);break;case qe:case st:case Ke:case We:case ie:case _e:break;default:throw new dt(u)}}}var pr=Ro;function yt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let i=s(u);return r.set(u,i),i}function s(u){switch(Se(u)){case he:return t(u.map(n));case Oe:return t({...u,parts:u.parts.map(n)});case Te:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case me:{let{expandedStates:i,contents:a}=u;return i?(i=i.map(n),a=i[0]):a=n(a),t({...u,contents:a,expandedStates:i})}case $e:case Ve:case Qe:case ge:case ze:return t({...u,contents:n(u.contents)});case qe:case st:case Ke:case We:case ie:case _e:return t(u);default:throw new dt(u)}}}function Su(e,t,r){let n=r,s=!1;function u(i){if(s)return!1;let a=t(i);a!==void 0&&(s=!0,n=a)}return pr(e,u),n}function Jo(e){if(e.type===me&&e.break||e.type===ie&&e.hard||e.type===_e)return!0}function re(e){return Su(e,Jo,!1)}function gu(e){if(e.length>0){let t=M(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Bu(e){let t=new Set,r=[];function n(u){if(u.type===_e&&gu(r),u.type===me){if(r.push(u),t.has(u))return!1;t.add(u)}}function s(u){u.type===me&&r.pop().break&&gu(r)}pr(e,n,s,!0)}function qo(e){return e.type===ie&&!e.hard?e.soft?"":" ":e.type===Te?e.flatContents:e}function cr(e){return yt(e,qo)}function Wo(e){switch(Se(e)){case Oe:if(e.parts.every(t=>t===""))return"";break;case me:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===me&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case $e:case Ve:case Qe:case ze:if(!e.contents)return"";break;case Te:if(!e.flatContents&&!e.breakContents)return"";break;case he:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof M(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case qe:case st:case Ke:case We:case ie:case ge:case _e:break;default:throw new dt(e)}return e}function Ut(e){return yt(e,t=>Wo(t))}function ve(e,t=Rr){return yt(e,r=>typeof r=="string"?b(t,r.split(`
`)):r)}function No(e){if(e.type===ie)return!0}function bu(e){return Su(e,No,!1)}function lr(e,t){return e.type===ge?{...e,contents:t(e.contents)}:t(e)}function Pu(e){let t=!0;return pr(e,r=>{switch(Se(r)){case qe:if(r==="")break;case Ke:case We:case ie:case _e:return t=!1,!1}}),t}var Gn=()=>{},Ze=Gn,Un=Gn,ku=Gn;function f(e){return Ze(e),{type:Ve,contents:e}}function Be(e,t){return Ze(t),{type:$e,contents:t,n:e}}function l(e,t={}){return Ze(e),Un(t.expandedStates,!0),{type:me,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Iu(e){return Be(Number.NEGATIVE_INFINITY,e)}function Jr(e){return Be(-1,e)}function et(e,t){return l(e[0],{...t,expandedStates:e})}function qr(e){return ku(e),{type:Oe,parts:e}}function B(e,t="",r={}){return Ze(e),t!==""&&Ze(t),{type:Te,breakContents:e,flatContents:t,groupId:r.groupId}}function xt(e,t){return Ze(e),{type:Qe,contents:e,groupId:t.groupId,negate:t.negate}}function Yn(e){return Ze(e),{type:ze,contents:e}}var je={type:We},Ee={type:_e};var Xn={type:ie,hard:!0},Go={type:ie,hard:!0,literal:!0},x={type:ie},E={type:ie,soft:!0},F=[Xn,Ee],Rr=[Go,Ee],mr={type:st};function b(e,t){Ze(e),Un(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function Lu(e,t,r){Ze(e);let n=e;if(t>0){for(let s=0;s<Math.floor(t/r);++s)n=f(n);n=Be(t%r,n),n=Be(Number.NEGATIVE_INFINITY,n)}return n}function ut(e,t){return Ze(t),e?{type:ge,label:e,contents:t}:t}function Uo(e){let t=`*${e.value}*`.split(`
`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var wu=Uo;function Ou(e,t){let r=e.node;if(At(r))return t.originalText.slice(q(r),k(r)).trimEnd();if(ee(r))return wu(r)?Yo(r):["/*",ve(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function Yo(e){let t=e.value.split(`
`);return["/*",b(F,t.map((r,n)=>n===0?r.trimEnd():" "+(n<t.length-1?r.trim():r.trimStart()))),"*/"]}var Zn={};xr(Zn,{endOfLine:()=>zo,ownLine:()=>Qo,remaining:()=>Zo});function Xo(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Hn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=Xo(e)}function le(e,t){t.leading=!0,t.trailing=!1,Hn(e,t)}function Me(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Hn(e,t)}function V(e,t){t.leading=!1,t.trailing=!0,Hn(e,t)}function Ho(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Xe(e,n),n=_t(e,n),n=vt(e,n),n=He(e,n);return n}var it=Ho;function Vo(e,t){let r=it(e,t);return r===!1?"":e.charAt(r)}var be=Vo;function $o(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
`)return!0;return!1}var de=$o;function Ko(e){return ee(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var Wr=Ko;function Qo(e){return[Wu,vu,Ru,cp,tp,$n,Kn,_u,ju,Dp,mp,zn,qu,fp,Mu,Ju,Qn,rp,hp].some(t=>t(e))}function zo(e){return[ep,Ru,vu,qu,$n,Kn,_u,ju,Ju,lp,yp,zn,Cp,Qn,dp,xp,gp].some(t=>t(e))}function Zo(e){return[Wu,$n,Kn,np,pp,Mu,zn,op,ap,Tp,Qn,Ap].some(t=>t(e))}function wt(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?le(r,t):Me(e,t)}function Vn(e,t){e.type==="BlockStatement"?wt(e,t):le(e,t)}function ep({comment:e,followingNode:t}){return t&&Wr(e)?(le(t,e),!0):!1}function $n({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(be(s,k(e))===")")return V(t,e),!0;if(t===r.consequent&&n===r.alternate){let i=it(s,k(r.consequent));if(q(e)<i||r.alternate.type==="BlockStatement"){if(t.type==="BlockStatement")V(t,e);else{let a=At(e)||e.loc.start.line===e.loc.end.line,o=e.loc.start.line===t.loc.start.line;a&&o?V(t,e):Me(r,e)}return!0}}return n.type==="BlockStatement"?(wt(n,e),!0):n.type==="IfStatement"?(Vn(n.consequent,e),!0):r.consequent===n?(le(n,e),!0):!1}function Kn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:be(s,k(e))===")"?(V(t,e),!0):n.type==="BlockStatement"?(wt(n,e),!0):r.body===n?(le(n,e),!0):!1}function _u({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(V(t,e),!0):n.type==="BlockStatement"?(wt(n,e),!0):n.type==="TryStatement"?(Vn(n.finalizer,e),!0):n.type==="CatchClause"?(Vn(n.body,e),!0):!1}function tp({comment:e,enclosingNode:t,followingNode:r}){return W(t)&&(r==null?void 0:r.type)==="Identifier"?(le(t,e),!0):!1}function rp({comment:e,enclosingNode:t,followingNode:r,options:n}){return!n.experimentalTernaries||!((t==null?void 0:t.type)==="ConditionalExpression"||Je(t))?!1:(r==null?void 0:r.type)==="ConditionalExpression"||Je(r)?(Me(t,e),!0):!1}function vu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s,options:u}){let i=t&&!de(s,k(t),q(e));return(!t||!i)&&((r==null?void 0:r.type)==="ConditionalExpression"||Je(r))&&n?u.experimentalTernaries&&r.alternate===n&&!(ee(e)&&!de(u.originalText,q(e),k(e)))?(Me(r,e),!0):(le(n,e),!0):!1}function np({comment:e,precedingNode:t,enclosingNode:r}){return Ce(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(V(r.value.left,e),!0):!1}var sp=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function ju({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(sp.has(r==null?void 0:r.type)){if(O(r.decorators)&&(n==null?void 0:n.type)!=="Decorator")return V(M(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return wt(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return V(t,e),!0;for(let s of["implements","extends","mixins"])if(r[s]&&n===r[s][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?V(t,e):Me(r,e,s),!0}}return!1}var up=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function Mu({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&be(n,k(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&be(n,k(t))!==":"?(V(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&up.has(r==null?void 0:r.type)&&(At(e)||e.placement==="ownLine")?(V(t,e),!0):!1}var ip=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function ap({comment:e,precedingNode:t,enclosingNode:r,text:n}){return be(n,k(e))!=="("?!1:t&&ip.has(r==null?void 0:r.type)?(V(t,e),!0):!1}function op({comment:e,enclosingNode:t,text:r}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=it(r,k(e));return n!==!1&&r.slice(n,n+2)==="=>"?(Me(t,e),!0):!1}function pp({comment:e,enclosingNode:t,text:r}){return be(r,k(e))!==")"?!1:t&&(Nu(t)&&z(t).length===0||mt(t)&&pe(t).length===0)?(Me(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&z(t.value).length===0?(Me(t.value,e),!0):!1}function cp({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(t==null?void 0:t.type)==="ComponentTypeParameter"&&((r==null?void 0:r.type)==="DeclareComponent"||(r==null?void 0:r.type)==="ComponentTypeAnnotation")&&(n==null?void 0:n.type)!=="ComponentTypeParameter"?(V(t,e),!0):((t==null?void 0:t.type)==="ComponentParameter"||(t==null?void 0:t.type)==="RestElement")&&(r==null?void 0:r.type)==="ComponentDeclaration"&&be Line truncated
`;default:return`
`}}var Pe=Symbol("MODE_BREAK"),at=Symbol("MODE_FLAT"),Yt=Symbol("cursor"),ts=Symbol("DOC_FILL_PRINTED_LENGTH");function Uu(){return{value:"",length:0,queue:[]}}function kp(e,t){return rs(e,{type:"indent"},t)}function Ip(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Uu():t<0?rs(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:rs(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function rs(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],s="",u=0,i=0,a=0;for(let c of n)switch(c.type){case"indent":y(),r.useTabs?o(1):p(r.tabWidth);break;case"stringAlign":y(),s+=c.n,u+=c.n.length;break;case"numberAlign":i+=1,a+=c.n;break;default:throw new Error(`Unexpected type '${c.type}'`)}return m(),{...e,value:s,length:u,queue:n};function o(c){s+=" ".repeat(c),u+=r.tabWidth*c}function p(c){s+=" ".repeat(c),u+=c}function y(){r.useTabs?D():m()}function D(){i>0&&o(i),C()}function m(){a>0&&p(a),C()}function C(){i=0,a=0}}function ns(e){let t=0,r=0,n=e.length;e:for(;n--;){let s=e[n];if(s===Yt){r++;continue}for(let u=s.length-1;u>=0;u--){let i=s[u];if(i===" "||i===" ")t++;else{e[n]=s.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Yt);return t}function Nr(e,t,r,n,s,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,a=[e],o=[];for(;r>=0;){if(a.length===0){if(i===0)return!0;a.push(t[--i]);continue}let{mode:p,doc:y}=a.pop(),D=Se(y);switch(D){case qe:o.push(y),r-=rt(y);break;case he:case Oe:{let m=D===he?y:y.parts,C=y[ts]??0;for(let c=m.length-1;c>=C;c--)a.push({mode:p,doc:m[c]});break}case Ve:case $e:case Qe:case ge:a.push({mode:p,doc:y.contents});break;case Ke:r+=ns(o);break;case me:{if(u&&y.break)return!1;let m=y.break?Pe:p,C=y.expandedStates&&m===Pe?M(!1,y.expandedStates,-1):y.contents;a.push({mode:m,doc:C});break}case Te:{let C=(y.groupId?s[y.groupId]||at:p)===Pe?y.breakContents:y.flatContents;C&&a.push({mode:p,doc:C});break}case ie:if(p===Pe||y.hard)return!0;y.soft||(o.push(" "),r--);break;case ze:n=!0;break;case We:if(n)return!1;break}}return!1}function ss(e,t){let r={},n=t.printWidth,s=Gu(t.endOfLine),u=0,i=[{ind:Uu(),mode:Pe,doc:e}],a=[],o=!1,p=[],y=0;for(Bu(e);i.length>0;){let{ind:m,mode:C,doc:c}=i.pop();switch(Se(c)){case qe:{let A=s!==`
`?Y(!1,c,`
`,s):c;a.push(A),i.length>0&&(u+=rt(A));break}case he:for(let A=c.length-1;A>=0;A--)i.push({ind:m,mode:C,doc:c[A]});break;case st:if(y>=2)throw new Error("There are too many 'cursor' in doc.");a.push(Yt),y++;break;case Ve:i.push({ind:kp(m,t),mode:C,doc:c.contents});break;case $e:i.push({ind:Ip(m,c.n,t),mode:C,doc:c.contents});break;case Ke:u-=ns(a);break;case me:switch(C){case at:if(!o){i.push({ind:m,mode:c.break?Pe:at,doc:c.contents});break}case Pe:{o=!1;let A={ind:m,mode:at,doc:c.contents},d=n-u,S=p.length>0;if(!c.break&&Nr(A,i,d,S,r))i.push(A);else if(c.expandedStates){let g=M(!1,c.expandedStates,-1);if(c.break){i.push({ind:m,mode:Pe,doc:g});break}else for(let _=1;_<c.expandedStates.length+1;_++)if(_>=c.expandedStates.length){i.push({ind:m,mode:Pe,doc:g});break}else{let v=c.expandedStates[_],j={ind:m,mode:at,doc:v};if(Nr(j,i,d,S,r)){i.push(j);break}}}else i.push({ind:m,mode:Pe,doc:c.contents});break}}c.id&&(r[c.id]=M(!1,i,-1).mode);break;case Oe:{let A=n-u,d=c[ts]??0,{parts:S}=c,g=S.length-d;if(g===0)break;let _=S[d+0],v=S[d+1],j={ind:m,mode:at,doc:_},I={ind:m,mode:Pe,doc:_},G=Nr(j,[],A,p.length>0,r,!0);if(g===1){G?i.push(j):i.push(I);break}let P={ind:m,mode:at,doc:v},N={ind:m,mode:Pe,doc:v};if(g===2){G?i.push(P,j):i.push(N,I);break}let ue=S[d+2],Q={ind:m,mode:C,doc:{...c,[ts]:d+2}};Nr({ind:m,mode:at,doc:[_,v,ue]},[],A,p.length>0,r,!0)?i.push(Q,P,j):G?i.push(Q,N,j):i.push(Q,N,I);break}case Te:case Qe:{let A=c.groupId?r[c.groupId]:C;if(A===Pe){let d=c.type===Te?c.breakContents:c.negate?c.contents:f(c.contents);d&&i.push({ind:m,mode:C,doc:d})}if(A===at){let d=c.type===Te?c.flatContents:c.negate?f(c.contents):c.contents;d&&i.push({ind:m,mode:C,doc:d})}break}case ze:p.push({ind:m,mode:C,doc:c.contents});break;case We:p.length>0&&i.push({ind:m,mode:C,doc:Xn});break;case ie:switch(C){case at:if(c.hard)o=!0;else{c.soft||(a.push(" "),u+=1);break}case Pe:if(p.length>0){i.push({ind:m,mode:C,doc:c},...p.reverse()),p.length=0;break}c.literal?m.root?(a.push(s,m.root.value),u=m.root.length):(a.push(s),u=0):(u-=ns(a),a.push(s+m.value),u=m.length);break}break;case ge:i.push({ind:m,mode:C,doc:c.contents});break;case _e:break;default:throw new dt(c)}i.length===0&&p.length>0&&(i.push(...p.reverse()),p.length=0)}let D=a.indexOf(Yt);if(D!==-1){let m=a.indexOf(Yt,D+1);if(m===-1)return{formatted:a.filter(d=>d!==Yt).join("")};let C=a.slice(0,D).join(""),c=a.slice(D+1,m).join(""),A=a.slice(m+1).join("");return{formatted:C+c+A,cursorNodeStart:C.length,cursorNodeText:c}}return{formatted:a.join("")}}function Lp(e,t,r=0){let n=0;for(let s=r;s<e.length;++s)e[s]===" "?n=n+t-n%t:n++;return n}var Yu=Lp;function wp(e,t){let r=e.lastIndexOf(`
`);return r===-1?0:Yu(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var Xu=wp;function Gr(e,t,r){let{node:n}=e;if(n.type==="TemplateLiteral"&&vp(e)){let p=Op(e,r,t);if(p)return p}let u="expressions";n.type==="TSTemplateLiteralType"&&(u="types");let i=[],a=e.map(t,u);i.push(je,"`");let o=0;return e.each(({index:p,node:y})=>{if(i.push(t()),y.tail)return;let{tabWidth:D}=r,m=y.value.raw,C=m.includes(`
`)?Xu(m,D):o;o=C;let c=a[p],A=n[u][p],d=de(r.originalText,k(y),q(n.quasis[p+1]));if(!d){let g=ss(c,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted;g.includes(`
`)?d=!0:c=g}d&&(T(A)||A.type==="Identifier"||W(A)||A.type==="ConditionalExpression"||A.type==="SequenceExpression"||Ae(A)||De(A))&&(c=[f([E,c]),E]);let S=C===0&&m.endsWith(`
`)?Be(Number.NEGATIVE_INFINITY,c):Lu(c,C,D);i.push(l(["${",S,je,"}"]))},"quasis"),i.push("`"),i}function Hu(e,t){let r=t("quasi");return ut(r.label&&{tagged:!0,...r.label},[t("tag"),t(e.node.typeArguments?"typeArguments":"typeParameters"),je,r])}function Op(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(s.length>1||s.some(u=>u.length>0)){t.__inJestEach=!0;let u=e.map(r,"expressions");t.__inJestEach=!1;let i=[],a=u.map(m=>"${"+ss(m,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let m=1;m<n.quasis.length;m++){let C=M(!1,o,-1),c=a[m-1];C.cells.push(c),c.includes(`
`)&&(C.hasLineBreak=!0),n.quasis[m].value.raw.includes(`
`)&&o.push({hasLineBreak:!1,cells:[]})}let p=Math.max(s.length,...o.map(m=>m.cells.length)),y=Array.from({length:p}).fill(0),D=[{cells:s},...o.filter(m=>m.cells.length>0)];for(let{cells:m}of D.filter(C=>!C.hasLineBreak))for(let[C,c]of m.entries())y[C]=Math.max(y[C],rt(c));return i.push(je,"`",f([F,b(F,D.map(m=>b(" | ",m.cells.map((C,c)=>m.hasLineBreak?C:C+" ".repeat(y[c]-rt(C))))))]),F,"`"),i}}function _p(e,t){let{node:r}=e,n=t();return T(r)&&(n=l([f([E,n]),E])),["${",n,je,"}"]}function Xt(e,t){return e.map(r=>_p(r,t),"expressions")}function Ur(e,t){return yt(e,r=>typeof r=="string"?t?Y(!1,r,/(\\*)`/gu,"$1$1\\`"):us(r):r)}function us(e){return Y(!1,e,/([\\`]|\$\{)/gu,String.raw`\$1`)}function vp({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var as=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function Vu(e){let t=n=>n.type==="TemplateLiteral",r=(n,s)=>Ce(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&s==="value";return e.match(t,(n,s)=>U(n)&&s==="elements",r,...as)||e.match(t,r,...as)}function $u(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Ce(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...as)}function is(e,t){return T(e,h.Block|h.Leading,({value:r})=>r===` ${t} `)}function Yr({node:e,parent:t},r){return is(e,r)||jp(t)&&is(t,r)||t.type==="ExpressionStatement"&&is(t,r)}function jp(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function Mp(e,t,r){let{node:n}=r,s=n.quasis.map(y=>y.value.raw),u=0,i=s.reduce((y,D,m)=>m===0?D:y+"@prettier-placeholder-"+u+++"-id"+D,""),a=await e(i,{parser:"scss"}),o=Xt(r,t),p=Rp(a,o);if(!p)throw new Error("Couldn't insert all the expressions");return["`",f([F,p]),E,"`"]}function Rp(e,t){if(!O(t))return e;let r=0,n=yt(Ut(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/u).map((u,i)=>i%2===0?ve(u):(r++,t[u])));return t.length===r?n:null}function Jp({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function Xr(e){return e.type==="Identifier"&&e.name==="styled"}function Ku(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function qp({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Xr(t.object)||Ku(t);case"CallExpression":return Xr(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Xr(t.callee.object.object)||Ku(t.callee.object))||t.callee.object.type==="CallExpression"&&Xr(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function Wp({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function Np(e){if(Jp(e)||qp(e)||Wp(e)||Vu(e))return Mp}var Qu=Np;async function Gp(e,t,r){let{node:n}=r,s=n.quasis.length,u=Xt(r,t),i=[];for(let a=0;a<s;a++){let o=n.quasis[a],p=a===0,y=a===s-1,D=o.value.cooked,m=D.split(`
`),C=m.length,c=u[a],A=C>2&&m[0].trim()===""&&m[1].trim()==="",d=C>2&&m[C-1].trim()===""&&m[C-2].trim()==="",S=m.every(_=>/^\s*(?:#[^\n\r]*)?$/u.test(_));if(!y&&/#[^\n\r]*$/u.test(m[C-1]))return null;let g=null;S?g=Up(m):g=await e(D,{parser:"graphql"}),g?(g=Ur(g,!1),!p&&A&&i.push(""),i.push(g),!y&&d&&i.push("")):!p&&!y&&A&&i.push(""),c&&i.push(c)}return["`",f([F,b(F,i)]),F,"`"]}function Up(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,u]of n.entries())u!==""&&(n[s-1]===""&&r?t.push([F,u]):t.push(u),r=!0);return t.length===0?null:b(F,t)}function Yp({node:e,parent:t}){return Yr({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function Xp(e){if(Yp(e))return Gp}var zu=Xp;var os=0;async function Zu(e,t,r,n,s){let{node:u}=n,i=os;os=os+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`,o=u.quasis.map((S,g,_)=>g===_.length-1?S.value.cooked:S.value.cooked+a(g)).join(""),p=Xt(n,r),y=new RegExp(a(String.raw`(\d+)`),"gu"),D=0,m=await t(o,{parser:e,__onHtmlRoot(S){D=S.children.length}}),C=yt(m,S=>{if(typeof S!="string")return S;let g=[],_=S.split(y);for(let v=0;v<_.length;v++){let j=_[v];if(v%2===0){j&&(j=us(j),s.__embeddedInHtml&&(j=Y(!1,j,/<\/(?=script\b)/giu,String.raw`<\/`)),g.push(j));continue}let I=Number(j);g.push(p[I])}return g}),c=/^\s/u.test(o)?" ":"",A=/\s$/u.test(o)?" ":"",d=s.htmlWhitespaceSensitivity==="ignore"?F:c&&A?x:null;return d?l(["`",f([d,l(C)]),d,"`"]):ut({hug:!1},l(["`",c,D>1?f(l(C)):l(C),A,"`"]))}function Hp(e){return Yr(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var Vp=Zu.bind(void 0,"html"),$p=Zu.bind(void 0,"angular");function Kp(e){if(Hp(e))return Vp;if($u(e))return $p}var ei=Kp;async function Qp(e,t,r){let{node:n}=r,s=Y(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(o,p)=>"\\".repeat(p.length/2)+"`"),u=zp(s),i=u!=="";i&&(s=Y(!1,s,new RegExp(`^${u}`,"gmu"),""));let a=Ur(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?f([E,a]):[Rr,Iu(a)],E,"`"]}function zp(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function Zp(e){if(ec(e))return Qp}function ec({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var ti=Zp;function tc(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||rc(t))return;let r;for(let n of[Qu,zu,ei,ti])if(r=n(e),!!r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...s)=>{let u=await r(...s);return u&&ut({embed:!0,...u.label},u)}}function rc({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var ri=tc;var nc=/\*\/$/,sc=/^\/\*\*?/,ii=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,uc=/(^|\s+)\/\/([^\n\r]*)/g,ni=/^(\r?\n)+/,ic=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,si=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,ac=/(\r?\n|^) *\* ?/g,ai=[];function oi(e){let t=e.match(ii);return t?t[0].trimStart():""}function pi(e){let t=e.match(ii),r=t==null?void 0:t[0];return r==null?e:e.slice(r.length)}function ci(e){let t=`
`;e=Y(!1,e.replace(sc,"").replace(nc,""),ac,"$1");let r="";for(;r!==e;)r=e,e=Y(!1,e,ic,`${t}$1 $2${t}`);e=e.replace(ni,"").trimEnd();let n=Object.create(null),s=Y(!1,e,si,"").replace(ni,"").trimEnd(),u;for(;u=si.exec(e);){let i=Y(!1,u[2],uc,"");if(typeof n[u[1]]=="string"||Array.isArray(n[u[1]])){let a=n[u[1]];n[u[1]]=[...ai,...Array.isArray(a)?a:[a],i]}else n[u[1]]=i}return{comments:s,pragmas:n}}function li({comments:e="",pragmas:t={}}){let r=`
`,n="/**",s=" *",u=" */",i=Object.keys(t),a=i.flatMap(p=>ui(p,t[p])).map(p=>`${s} ${p}${r}`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(t[i[0]])){let p=t[i[0]];return`${n} ${ui(i[0],p)[0]}${u}`}}let o=e.split(r).map(p=>`${s} ${p}`).join(r)+r;return n+r+(e?o:"")+(e&&i.length>0?s+r:"")+a+u}function ui(e,t){return[...ai,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}function oc(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
`);return t===-1?e:e.slice(0,t)}var mi=oc;function pc(e){let t=mi(e);t&&(e=e.slice(t.length+1));let r=oi(e),{pragmas:n,comments:s}=ci(r);return{shebang:t,text:e,pragmas:n,comments:s}}function yi(e){let{shebang:t,text:r,pragmas:n,comments:s}=pc(e),u=pi(r),i=li({pragmas:{format:"",...n},comments:s.trimStart()});return(t?`${t}
`:"")+i+(u.startsWith(`
`)?`
`:`
`)+u}function cc(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:a}=e,o=s(a),p=u(a);for(let y of n)s(y)>=o&&u(y)<=p&&i.add(y);return r.slice(o,p)}var Di=cc;function ps(e,t){var u,i,a,o,p,y,D,m,C;if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&Dc(r)&&yr(e))return!0;if(lc(r))return!1;if(r.type==="Identifier"){if((u=r.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name)||n==="left"&&(r.name==="async"&&!s.await||r.name==="let")&&s.type==="ForOfStatement")return!0;if(r.name==="let"){let c=(i=e.findAncestor(A=>A.type==="ForOfStatement"))==null?void 0:i.left;if(c&&ae(c,A=>A===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let c=e.findAncestor(d=>d.type==="ExpressionStatement"||d.type==="ForStatement"||d.type==="ForInStatement"),A=c?c.type==="ExpressionStatement"?c.expression:c.type==="ForStatement"?c.init:c.left:void 0;if(A&&ae(A,d=>d===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let c=e.findAncestor(A=>!Ae(A));if(c!==s&&c.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let c=(a=e.findAncestor(A=>A.type==="ExpressionStatement"))==null?void 0:a.expression;if(c&&ae(c,A=>A===r))return!0}if(r.type==="ObjectExpression"){let c=(o=e.findAncestor(A=>A.type==="ArrowFunctionExpression"))==null?void 0:o.body;if(c&&c.type!=="SequenceExpression"&&c.type!=="AssignmentExpression"&&ae(c,A=>A===r))return!0}switch(s.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&O(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return fi(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!Ec(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(c,A)=>A==="returnType"&&c.type==="ArrowFunctionExpression")&&yc(r))return!0;break;case"BinaryExpression":if(n==="left"&&(s.operator==="in"||s.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(c,A)=>A==="declarations"&&c.type==="VariableDeclaration",(c,A)=>A==="left"&&c.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(s.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&s.operator==="+"||r.operator==="--"&&s.operator==="-");case"UnaryExpression":switch(s.type){case"UnaryExpression":return r.operator===s.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&s.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(s.type==="UpdateExpression"||r.operator==="in"&&mc(e))return!0;if(r.operator==="|>"&&((p=r.extra)!=null&&p.parenthesized)){let c=e.grandparent;if(c.type==="BinaryExpression"&&c.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(s.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Ae(r);case"ConditionalExpression":return Ae(r)||lu(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Ae(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:c,type:A}=r;if(!c&&A!=="TSTypeAssertion")return!0;let d=sr(c),S=s.operator,g=sr(S);return g>d||n==="right"&&g===d||g===d&&!ar(S,c)?!0:g<d&&c==="%"?S==="+"||S==="-":!!Fu Line truncated
\r `),Es=e=>e===""||e===x||e===F||e===E;function dc(e,t,r){var _,v,j,I,G;let{node:n}=e;if(n.type==="JSXElement"&&vc(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),u=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[s,...e.map(r,"children"),u];n.children=n.children.map(P=>jc(P)?{type:"JSXText",value:" ",raw:" "}:P);let i=n.children.some(X),a=n.children.filter(P=>P.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,p=re(s)||i||o||a,y=e.parent.rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',m=y?x:B([D,E]," "),C=((v=(_=n.openingElement)==null?void 0:_.name)==null?void 0:v.name)==="fbt",c=xc(e,t,r,m,C),A=n.children.some(P=>Dr(P));for(let P=c.length-2;P>=0;P--){let N=c[P]===""&&c[P+1]==="",ue=c[P]===F&&c[P+1]===""&&c[P+2]===F,Q=(c[P]===E||c[P]===F)&&c[P+1]===""&&c[P+2]===m,Bt=c[P]===m&&c[P+1]===""&&(c[P+2]===E||c[P+2]===F),Ct=c[P]===m&&c[P+1]===""&&c[P+2]===m,w=c[P]===E&&c[P+1]===""&&c[P+2]===F||c[P]===F&&c[P+1]===""&&c[P+2]===E;ue&&A||N||Q||Ct||w?c.splice(P,2):Bt&&c.splice(P+1,2)}for(;c.length>0&&Es(M(!1,c,-1));)c.pop();for(;c.length>1&&Es(c[0])&&Es(c[1]);)c.shift(),c.shift();let d=[""];for(let[P,N]of c.entries()){if(N===m){if(P===1&&Pu(c[P-1])){if(c.length===2){d.push([d.pop(),D]);continue}d.push([D,F],"");continue}else if(P===c.length-1){d.push([d.pop(),D]);continue}else if(c[P-1]===""&&c[P-2]===F){d.push([d.pop(),D]);continue}}P%2===0?d.push([d.pop(),N]):d.push(N,""),re(N)&&(p=!0)}let S=A?qr(d):l(d,{shouldBreak:!0});if(((j=t.cursorNode)==null?void 0:j.type)==="JSXText"&&n.children.includes(t.cursorNode)?S=[mr,S,mr]:((I=t.nodeBeforeCursor)==null?void 0:I.type)==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?S=[mr,S]:((G=t.nodeAfterCursor)==null?void 0:G.type)==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(S=[S,mr]),y)return S;let g=l([s,f([F,S]),F,u]);return p?g:et([l([s,...c,u]),g])}function xc(e,t,r,n,s){let u="",i=[u];function a(p){u=p,i.push([i.pop(),p])}function o(p){p!==""&&(u=p,i.push(p,""))}return e.each(({node:p,next:y})=>{if(p.type==="JSXText"){let D=fe(p);if(Dr(p)){let m=Hr.split(D,!0);m[0]===""&&(m.shift(),/\n/u.test(m[0])?o(Ai(s,m[1],p,y)):o(n),m.shift());let C;if(M(!1,m,-1)===""&&(m.pop(),C=m.pop()),m.length===0)return;for(let[c,A]of m.entries())c%2===1?o(x):a(A);C!==void 0?/\n/u.test(C)?o(Ai(s,u,p,y)):o(n):o(Ci(s,u,p,y))}else/\n/u.test(D)?D.match(/\n/gu).length>1&&o(F):o(n)}else{let D=r();if(a(D),y&&Dr(y)){let C=Hr.trim(fe(y)),[c]=Hr.split(C);o(Ci(s,c,p,y))}else o(F)}},"children"),i}function Ci(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?E:F:E}function Ai(e,t,r,n){return e?F:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?F:E:F}var hc=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function gc(e,t,r){let{parent:n}=e;if(hc.has(n.type))return t;let s=e.match(void 0,i=>i.type==="ArrowFunctionExpression",L,i=>i.type==="JSXExpressionContainer"),u=ke(e,r);return l([u?"":B("("),f([E,t]),E,u?"":B(")")],{shouldBreak:s})}function Sc(e,t,r){let{node:n}=e,s=[];if(s.push(r("name")),n.value){let u;if(te(n.value)){let i=fe(n.value),a=Y(!1,Y(!1,i.slice(1,-1),"&apos;","'"),"&quot;",'"'),o=Sr(a,t.jsxSingleQuote);a=o==='"'?Y(!1,a,'"',"&quot;"):Y(!1,a,"'","&apos;"),u=e.call(()=>ye(e,ve(o+a+o),t),"value")}else u=r("value");s.push("=",u)}return s}function Bc(e,t,r){let{node:n}=e,s=(u,i)=>u.type==="JSXEmptyExpression"||!T(u)&&(U(u)||se(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(s(u.argument,u)||u.argument.type==="JSXElement")||L(u)||u.type==="ChainExpression"&&L(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||X(i)&&(u.type==="ConditionalExpression"||De(u)));return s(n.expression,e.parent)?l(["{",r("expression"),je,"}"]):l(["{",f([E,r("expression")]),E,je,"}"])}function bc(e,t,r){var a,o;let{node:n}=e,s=T(n.name)||T(n.typeParameters)||T(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," />"];if(((a=n.attributes)==null?void 0:a.length)===1&&te(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
`)&&!s&&!T(n.attributes[0]))return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let u=(o=n.attributes)==null?void 0:o.some(p=>te(p.value)&&p.value.value.includes(`
`)),i=t.singleAttributePerLine&&n.attributes.length>1?F:x;return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters"),f(e.map(()=>[i,r()],"attributes")),...Pc(n,t,s)],{shouldBreak:u})}function Pc(e,t,r){return e.selfClosing?[x,"/>"]:kc(e,t,r)?[">"]:[E,">"]}function kc(e,t,r){let n=e.attributes.length>0&&T(M(!1,e.attributes,-1),h.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function Ic(e,t,r){let{node:n}=e,s=[];s.push("</");let u=r("name");return T(n.name,h.Leading|h.Line)?s.push(f([F,u]),F):T(n.name,h.Leading|h.Block)?s.push(" ",u):s.push(u),s.push(">"),s}function Lc(e,t){let{node:r}=e,n=T(r),s=T(r,h.Line),u=r.type==="JSXOpeningFragment";return[u?"<":"</",f([s?F:n&&!u?" ":"",J(e,t)]),s?F:"",">"]}function wc(e,t,r){let n=ye(e,dc(e,t,r),t);return gc(e,n,t)}function Oc(e,t){let{node:r}=e,n=T(r,h.Line);return[J(e,t,{indent:n}),n?F:""]}function _c(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let u=["...",r()];return!T(s)||!es(e)?u:[f([E,ye(e,u,t)]),E]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Ti(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return Sc(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return b(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return b(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return _c(e,t,r);case"JSXExpressionContainer":return Bc(e,t,r);case"JSXFragment":case"JSXElement":return wc(e,t,r);case"JSXOpeningElement":return bc(e,t,r);case"JSXClosingElement":return Ic(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return Lc(e,t);case"JSXEmptyExpression":return Oc(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Ne(n,"JSX")}}function vc(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Dr(t)}function Dr(e){return e.type==="JSXText"&&(Hr.hasNonWhitespaceCharacter(fe(e))||!/\n/u.test(fe(e)))}function jc(e){return e.type==="JSXExpressionContainer"&&te(e.expression)&&e.expression.value===" "&&!T(e.expression)}function di(e){let{node:t,parent:r}=e;if(!X(t)||!X(r))return!1;let{index:n,siblings:s}=e,u;for(let i=n;i>0;i--){let a=s[i-1];if(!(a.type==="JSXText"&&!Dr(a))){u=a;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&Lt(u.expression)}function Mc(e){return Lt(e.node)||di(e)}var Vr=Mc;var Rc=0;function $r(e,t,r){var v;let{node:n,parent:s,grandparent:u,key:i}=e,a=i!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),o=n.operator==="|>"&&((v=e.root.extra)==null?void 0:v.__isUsingHackPipeline),p=Fs(e,r,t,!1,a);if(a)return p;if(o)return l(p);if(L(s)&&s.callee===n||s.type==="UnaryExpression"||W(s)&&!s.computed)return l([f([E,...p]),E]);let y=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!L(u)||s.type==="TemplateLiteral",D=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||Ce(s),m=De(n.left)&&ar(n.operator,n.left.operator);if(y||Ht(n)&&!m||!Ht(n)&&D)return l(p);if(p.length===0)return"";let C=X(n.right),c=p.findIndex(j=>typeof j!="string"&&!Array.isArray(j)&&j.type===me),A=p.slice(0,c===-1?1:c+1),d=p.slice(A.length,C?-1:void 0),S=Symbol("logicalChain-"+ ++Rc),g=l([...A,f(d)],{id:S});if(!C)return g;let _=M(!1,p,-1);return l([g,xt(_,{groupId:S})])}function Fs(e,t,r,n,s){var S;let{node:u}=e;if(!De(u))return[l(t())];let i=[];ar(u.operator,u.left.operator)?i=e.call(g=>Fs(g,t,r,!0,s),"left"):i.push(l(t("left")));let a=Ht(u),o=(u.operator==="|>"||u.type==="NGPipeExpression"||Jc(e,r))&&!Le(r.originalText,u.right),y=!T(u.right,h.Leading,Wr)&&Le(r.originalText,u.right),D=u.type==="NGPipeExpression"?"|":u.operator,m=u.type==="NGPipeExpression"&&u.arguments.length>0?l(f([E,": ",b([x,": "],e.map(()=>Be(2,l(t())),"arguments"))])):"",C;if(a)C=[D," ",t("right"),m];else{let _=D==="|>"&&((S=e.root.extra)==null?void 0:S.__isUsingHackPipeline)?e.call(v=>Fs(v,t,r,!0,s),"right"):t("right");if(r.experimentalOperatorPosition==="start"){let v="";if(y)switch(Se(_)){case he:v=_.splice(0,1)[0];break;case ge:v=_.contents.splice(0,1)[0];break}C=[x,v,D," ",_,m]}else C=[o?x:"",D,o?" ":x,_,m]}let{parent:c}=e,A=T(u.left,h.Trailing|h.Line);if((A||!(s&&u.type==="LogicalExpression")&&c.ty Line truncated
+36
View File
@@ -0,0 +1,36 @@
var Ha=Object.defineProperty;var Ns=e=>{throw TypeError(e)};var xr=(e,t)=>{for(var r in t)Ha(e,r,{get:t[r],enumerable:!0})};var Gs=(e,t,r)=>t.has(e)||Ns("Cannot "+r);var ct=(e,t,r)=>(Gs(e,t,"read from private field"),r?r.call(e):t.get(e)),Us=(e,t,r)=>t.has(e)?Ns("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Ys=(e,t,r,n)=>(Gs(e,t,"write to private field"),n?n.call(e,r):t.set(e,r),r);var Ms={};xr(Ms,{languages:()=>lm,options:()=>Na,printers:()=>cm});var Xs=[{linguistLanguageId:183,name:"JavaScript",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:["js","node"],extensions:[".js","._js",".bones",".cjs",".es",".es6",".frag",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".wxs"],filenames:["Jakefile"],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell","zx"],parsers:["babel","acorn","espree","meriyah","babel-flow","babel-ts","flow","typescript"],vscodeLanguageIds:["javascript","mongo"]},{linguistLanguageId:183,name:"Flow",type:"programming",tmScope:"source.js",aceMode:"javascript",codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",color:"#f1e05a",aliases:[],extensions:[".js.flow"],filenames:[],interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"]},{linguistLanguageId:183,name:"JSX",type:"programming",tmScope:"source.js.jsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",color:void 0,aliases:void 0,extensions:[".jsx"],filenames:void 0,interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript"},{linguistLanguageId:378,name:"TypeScript",type:"programming",color:"#3178c6",aliases:["ts"],interpreters:["deno","ts-node"],extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aceMode:"typescript",codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"]},{linguistLanguageId:94901924,name:"TSX",type:"programming",color:"#3178c6",group:"TypeScript",extensions:[".tsx"],tmScope:"source.tsx",aceMode:"javascript",codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"]}];var vs={};xr(vs,{canAttachComment:()=>xp,embed:()=>ri,experimentalFeatures:()=>sm,getCommentChildNodes:()=>hp,getVisitorKeys:()=>br,handleComments:()=>zn,insertPragma:()=>yi,isBlockComment:()=>ee,isGap:()=>gp,massageAstNode:()=>xu,print:()=>ja,printComment:()=>Ou,willPrintOwnComments:()=>Zn});var Va=(e,t,r,n)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,n):r.global?t.replace(r,n):t.split(r).join(n)},Y=Va;var $a=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},M=$a;function Ka(e){return e!==null&&typeof e=="object"}var Hs=Ka;function*Qa(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=u=>Hs(u)&&n(u);for(let u of r(e)){let i=e[u];if(Array.isArray(i))for(let a of i)s(a)&&(yield a);else s(i)&&(yield i)}}function*za(e,t){let r=[e];for(let n=0;n<r.length;n++){let s=r[n];for(let u of Qa(s,t))yield u,r.push(u)}}function Vs(e,{getVisitorKeys:t,predicate:r}){for(let n of za(e,{getVisitorKeys:t}))if(r(n))return!0;return!1}var $s=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDDLine truncated
`)return t-2;if(s===`
`||s==="\r"||s==="\u2028"||s==="\u2029")return t-1}else{if(s==="\r"&&e.charAt(t+1)===`
`)return t+2;if(s===`
`||s==="\r"||s==="\u2028"||s==="\u2029")return t+1}return t}var He=to;function ro(e,t,r={}){let n=Xe(e,r.backwards?t-1:t,r),s=He(e,n,r);return n!==s}var Z=ro;function no(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let r=t+2;r<e.length;++r)if(e.charAt(r)==="*"&&e.charAt(r+1)==="/")return r+2}return t}var _t=no;function so(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?eu(e,t):t}var vt=so;function uo(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Zs(e,n),n=_t(e,n),n=Xe(e,n);return n=vt(e,n),n=He(e,n),n!==!1&&Z(e,n)}var jt=uo;function io(e){return Array.isArray(e)&&e.length>0}var O=io;var tu=new Proxy(()=>{},{get:()=>tu}),Mt=tu;var gr="'",ru='"';function ao(e,t){let r=t===!0||t===gr?gr:ru,n=r===gr?ru:gr,s=0,u=0;for(let i of e)i===r?s++:i===n&&u++;return s>u?n:r}var Sr=ao;function oo(e,t,r){let n=t==='"'?"'":'"',u=Y(!1,e,/\\(.)|(["'])/gsu,(i,a,o)=>a===n?a:o===t?"\\"+o:o||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(a)?a:"\\"+a));return t+u+t}var nu=oo;function po(e,t){Mt.ok(/^(?<quote>["']).*\k<quote>$/su.test(e));let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":Sr(r,t.singleQuote);return e.charAt(0)===n?e:nu(r,n,!1)}var nt=po;function q(e){var n,s,u;let t=((n=e.range)==null?void 0:n[0])??e.start,r=(u=((s=e.declaration)==null?void 0:s.decorators)??e.decorators)==null?void 0:u[0];return r?Math.min(q(r),t):t}function k(e){var t;return((t=e.range)==null?void 0:t[1])??e.end}function Pt(e,t){let r=q(e);return Number.isInteger(r)&&r===q(t)}function co(e,t){let r=k(e);return Number.isInteger(r)&&r===k(t)}function su(e,t){return Pt(e,t)&&co(e,t)}var rr=null;function nr(e){if(rr!==null&&typeof rr.property){let t=rr;return rr=nr.prototype=null,t}return rr=nr.prototype=e??Object.create(null),new nr}var lo=10;for(let e=0;e<=lo;e++)nr();function wn(e){return nr(e)}function mo(e,t="type"){wn(e);function r(n){let s=n[t],u=e[s];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return u}return r}var Br=mo;var uu={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"] Line truncated
`):e.type==="UnaryExpression"?ir(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:wr(e)}function Le(e,t){return X(t)?Lt(t):T(t,h.Leading,r=>Z(e,k(r)))}function au(e){return e.quasis.some(t=>t.value.raw.includes(`
`))}function _r(e,t){return(e.type==="TemplateLiteral"&&au(e)||e.type==="TaggedTemplateExpression"&&au(e.quasi))&&!Z(t,q(e),{backwards:!0})}function vr(e){if(!T(e))return!1;let t=M(!1,lt(e,h.Dangling),-1);return t&&!ee(t)}function fu(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Rt(r)){if(t+=1,t>1)return!0}else if(L(r)){for(let n of pe(r))if(Rt(n))return!0}return!1}function jr(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&L(t)&&L(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var Po=new Set(["!","-","+","~"]);function Ie(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return Ie(e.expression,t);let r=n=>Ie(n,t-1);if(Rn(e))return rt(e.pattern??e.regex.pattern)<=5;if(wr(e)||To(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(`
`))&&e.expressions.every(r);if(se(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(U(e))return e.elements.every(n=>n===null||r(n));if(mt(e)){if(e.type==="ImportExpression"||Ie(e.callee,t)){let n=pe(e);return n.length<=t&&n.every(r)}return!1}return W(e)?Ie(e.object,t)&&Ie(e.property,t):e.type==="UnaryExpression"&&Po.has(e.operator)||e.type==="UpdateExpression"?Ie(e.argument,t):!1}function fe(e){var t;return((t=e.extra)==null?void 0:t.raw)??e.raw}function Eu(e){return e}function oe(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function ae(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return ae(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return ae(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:ae(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:ae(e.callee,t);case"ConditionalExpression":return ae(e.test,t);case"UpdateExpression":return!e.prefix&&ae(e.argument,t);case"BindExpression":return e.object&&ae(e.object,t);case"SequenceExpression":return ae(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return ae(e.expression,t);default:return t(e)}}var ou={"==":!0,"!=":!0,"===":!0,"!==":!0},Ir={"*":!0,"/":!0,"%":!0},jn={">>":!0,">>>":!0,"<<":!0};function ar(e,t){return!(sr(t)!==sr(e)||e==="**"||ou[e]&&ou[t]||t==="%"&&Ir[e]||e==="%"&&Ir[t]||t!==e&&Ir[t]&&Ir[e]||jn[e]&&jn[t])}var ko=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function sr(e){return ko.get(e)}function Fu(e){return!!jn[e]||e==="|"||e==="^"||e==="&"}function Cu(e){var r;if(e.rest)return!0;let t=z(e);return((r=M(!1,t,-1))==null?void 0:r.type)==="RestElement"}var _n=new WeakMap;function z(e){if(_n.has(e))return _n.get(e);let t=[];return e.this&&t.push(e.this),Array.isArray(e.parameters)?t.push(...e.parameters):Array.isArray(e.params)&&t.push(...e.params),e.rest&&t.push(e.rest),_n.set(e,t),t}function Au(e,t){let{node:r}=e,n=0,s=u=>t(u,n++);r.this&&e.call(s,"this"),Array.isArray(r.parameters)?e.each(s,"parameters"):Array.isArray(r.params)&&e.each(s,"params"),r.rest&&e.call(s,"rest")}var vn=new WeakMap;function pe(e){if(vn.has(e))return vn.get(e);if(e.type==="ChainExpression")return pe(e.expression);let t=e.arguments;return e.type==="ImportExpression"&&(t=[e.source],e.options&&t.push(e.options)),vn.set(e,t),t}function Wt(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>Wt(e,t),"expression");r.type==="ImportExpression"?(e.call(n=>t(n,0),"source"),r.options&&e.call(n=>t(n,1),"options")):e.each(t,"arguments")}function qn(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"){if(t===0||t===(e.options?-2:-1))return[...r,"source"];if(e.options&&(t===1||t===-1))return[...r,"options"];throw new RangeError("Invalid argument index")}if(t<0&&(t=e.arguments.length+t),t<0||t>=e.arguments.length)throw new RangeError("Invalid argument index");return[...r,"arguments",t]}function or(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function Lt(e){return(e==null?void 0:e.prettierIgnore)||T(e,h.PrettierIgnore)}var h={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},Tu=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&h.Leading&&!r.leading||e&h.Trailing&&!r.trailing||e&h.Dangling&&(r.leading||r.trailing)||e&h.Block&&!ee(r)||e&h.Line&&!At(r)||e&h.First&&n!==0||e&h.Last&&n!==s.length-1||e&h.PrettierIgnore&&!or(r)||t&&!t(r))};function T(e,t,r){if(!O(e==null?void 0:e.comments))return!1;let n=Tu(t,r);return n?e.comments.some(n):!0}function lt(e,t,r){if(!Array.isArray(e==null?void 0:e.comments))return[];let n=Tu(t,r);return n?e.comments.filter(n):e.comments}var ce=(e,{originalText:t})=>jt(t,k(e));function mt(e){return L(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Ce(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!kt(e))}var Ae=R(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),we=R(["TSUnionType","UnionTypeAnnotation"]),Nt=R(["TSIntersectionType","IntersectionTypeAnnotation"]),Je=R(["TSConditionalType","ConditionalTypeAnnotation"]);var Io=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),Gt=e=>{for(let t of e.quasis)delete t.value};function du(e,t,r){var s,u;if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="BigIntLiteralTypeAnnotation")&&e.value&&(t.value=e.value.toLowerCase()),( Line truncated
Expected it to be 'string' or 'object'.`;if(Se(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=wo([...Mr].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}var Wn=class extends Error{name="InvalidDocError";constructor(t){super(Oo(t)),this.doc=t}},dt=Wn;var hu={};function _o(e,t,r,n){let s=[e];for(;s.length>0;){let u=s.pop();if(u===hu){r(s.pop());continue}r&&s.push(u,hu);let i=Se(u);if(!i)throw new dt(u);if((t==null?void 0:t(u))!==!1)switch(i){case he:case Oe:{let a=i===he?u:u.parts;for(let o=a.length,p=o-1;p>=0;--p)s.push(a[p]);break}case Te:s.push(u.flatContents,u.breakContents);break;case me:if(n&&u.expandedStates)for(let a=u.expandedStates.length,o=a-1;o>=0;--o)s.push(u.expandedStates[o]);else s.push(u.contents);break;case $e:case Ve:case Qe:case ge:case ze:s.push(u.contents);break;case qe:case st:case Ke:case We:case ie:case _e:break;default:throw new dt(u)}}}var pr=_o;function yt(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(u){if(r.has(u))return r.get(u);let i=s(u);return r.set(u,i),i}function s(u){switch(Se(u)){case he:return t(u.map(n));case Oe:return t({...u,parts:u.parts.map(n)});case Te:return t({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case me:{let{expandedStates:i,contents:a}=u;return i?(i=i.map(n),a=i[0]):a=n(a),t({...u,contents:a,expandedStates:i})}case $e:case Ve:case Qe:case ge:case ze:return t({...u,contents:n(u.contents)});case qe:case st:case Ke:case We:case ie:case _e:return t(u);default:throw new dt(u)}}}function Su(e,t,r){let n=r,s=!1;function u(i){if(s)return!1;let a=t(i);a!==void 0&&(s=!0,n=a)}return pr(e,u),n}function vo(e){if(e.type===me&&e.break||e.type===ie&&e.hard||e.type===_e)return!0}function re(e){return Su(e,vo,!1)}function gu(e){if(e.length>0){let t=M(!1,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Bu(e){let t=new Set,r=[];function n(u){if(u.type===_e&&gu(r),u.type===me){if(r.push(u),t.has(u))return!1;t.add(u)}}function s(u){u.type===me&&r.pop().break&&gu(r)}pr(e,n,s,!0)}function jo(e){return e.type===ie&&!e.hard?e.soft?"":" ":e.type===Te?e.flatContents:e}function cr(e){return yt(e,jo)}function Mo(e){switch(Se(e)){case Oe:if(e.parts.every(t=>t===""))return"";break;case me:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===me&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case $e:case Ve:case Qe:case ze:if(!e.contents)return"";break;case Te:if(!e.flatContents&&!e.breakContents)return"";break;case he:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof M(!1,t,-1)=="string"?t[t.length-1]+=n:t.push(n),t.push(...s)}return t.length===0?"":t.length===1?t[0]:t}case qe:case st:case Ke:case We:case ie:case ge:case _e:break;default:throw new dt(e)}return e}function Ut(e){return yt(e,t=>Mo(t))}function ve(e,t=Rr){return yt(e,r=>typeof r=="string"?b(t,r.split(`
`)):r)}function Ro(e){if(e.type===ie)return!0}function bu(e){return Su(e,Ro,!1)}function lr(e,t){return e.type===ge?{...e,contents:t(e.contents)}:t(e)}function Pu(e){let t=!0;return pr(e,r=>{switch(Se(r)){case qe:if(r==="")break;case Ke:case We:case ie:case _e:return t=!1,!1}}),t}var Nn=()=>{},Ze=Nn,Gn=Nn,ku=Nn;function f(e){return Ze(e),{type:Ve,contents:e}}function Be(e,t){return Ze(t),{type:$e,contents:t,n:e}}function l(e,t={}){return Ze(e),Gn(t.expandedStates,!0),{type:me,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Iu(e){return Be(Number.NEGATIVE_INFINITY,e)}function Jr(e){return Be(-1,e)}function et(e,t){return l(e[0],{...t,expandedStates:e})}function qr(e){return ku(e),{type:Oe,parts:e}}function B(e,t="",r={}){return Ze(e),t!==""&&Ze(t),{type:Te,breakContents:e,flatContents:t,groupId:r.groupId}}function xt(e,t){return Ze(e),{type:Qe,contents:e,groupId:t.groupId,negate:t.negate}}function Un(e){return Ze(e),{type:ze,contents:e}}var je={type:We},Ee={type:_e};var Yn={type:ie,hard:!0},Jo={type:ie,hard:!0,literal:!0},x={type:ie},E={type:ie,soft:!0},F=[Yn,Ee],Rr=[Jo,Ee],mr={type:st};function b(e,t){Ze(e),Gn(t);let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function Lu(e,t,r){Ze(e);let n=e;if(t>0){for(let s=0;s<Math.floor(t/r);++s)n=f(n);n=Be(t%r,n),n=Be(Number.NEGATIVE_INFINITY,n)}return n}function ut(e,t){return Ze(t),e?{type:ge,label:e,contents:t}:t}function qo(e){let t=`*${e.value}*`.split(`
`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var wu=qo;function Ou(e,t){let r=e.node;if(At(r))return t.originalText.slice(q(r),k(r)).trimEnd();if(ee(r))return wu(r)?Wo(r):["/*",ve(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function Wo(e){let t=e.value.split(`
`);return["/*",b(F,t.map((r,n)=>n===0?r.trimEnd():" "+(n<t.length-1?r.trim():r.trimStart()))),"*/"]}var zn={};xr(zn,{endOfLine:()=>Vo,ownLine:()=>Ho,remaining:()=>$o});function No(e){let t=e.type||e.kind||"(unknown type)",r=String(e.name||e.id&&(typeof e.id=="object"?e.id.name:e.id)||e.key&&(typeof e.key=="object"?e.key.name:e.key)||e.value&&(typeof e.value=="object"?"":String(e.value))||e.operator||"");return r.length>20&&(r=r.slice(0,19)+"\u2026"),t+(r?" "+r:"")}function Xn(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=No(e)}function le(e,t){t.leading=!0,t.trailing=!1,Xn(e,t)}function Me(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),Xn(e,t)}function V(e,t){t.leading=!1,t.trailing=!0,Xn(e,t)}function Go(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Xe(e,n),n=_t(e,n),n=vt(e,n),n=He(e,n);return n}var it=Go;function Uo(e,t){let r=it(e,t);return r===!1?"":e.charAt(r)}var be=Uo;function Yo(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
`)return!0;return!1}var de=Yo;function Xo(e){return ee(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var Wr=Xo;function Ho(e){return[Wu,vu,Ru,ip,Qo,Vn,$n,_u,ju,cp,op,Qn,qu,lp,Mu,Ju,Kn,zo,Ap].some(t=>t(e))}function Vo(e){return[Ko,Ru,vu,qu,Vn,$n,_u,ju,Ju,ap,pp,Qn,Dp,Kn,Fp,Cp,Tp].some(t=>t(e))}function $o(e){return[Wu,Vn,$n,Zo,up,Mu,Qn,sp,np,Ep,Kn,fp].some(t=>t(e))}function wt(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?le(r,t):Me(e,t)}function Hn(e,t){e.type==="BlockStatement"?wt(e,t):le(e,t)}function Ko({comment:e,followingNode:t}){return t&&Wr(e)?(le(t,e),!0):!1}function Vn({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if((r==null?void 0:r.type)!=="IfStatement"||!n)return!1;if(be(s,k(e))===")")return V(t,e),!0;if(t===r.consequent&&n===r.alternate){let i=it(s,k(r.consequent));if(q(e)<i||r.alternate.type==="BlockStatement"){if(t.type==="BlockStatement")V(t,e);else{let a=At(e)||e.loc.start.line===e.loc.end.line,o=e.loc.start.line===t.loc.start.line;a&&o?V(t,e):Me(r,e)}return!0}}return n.type==="BlockStatement"?(wt(n,e),!0):n.type==="IfStatement"?(Hn(n.consequent,e),!0):r.consequent===n?(le(n,e),!0):!1}function $n({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(r==null?void 0:r.type)!=="WhileStatement"||!n?!1:be(s,k(e))===")"?(V(t,e),!0):n.type==="BlockStatement"?(wt(n,e),!0):r.body===n?(le(n,e),!0):!1}function _u({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return(r==null?void 0:r.type)!=="TryStatement"&&(r==null?void 0:r.type)!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(V(t,e),!0):n.type==="BlockStatement"?(wt(n,e),!0):n.type==="TryStatement"?(Hn(n.finalizer,e),!0):n.type==="CatchClause"?(Hn(n.body,e),!0):!1}function Qo({comment:e,enclosingNode:t,followingNode:r}){return W(t)&&(r==null?void 0:r.type)==="Identifier"?(le(t,e),!0):!1}function zo({comment:e,enclosingNode:t,followingNode:r,options:n}){return!n.experimentalTernaries||!((t==null?void 0:t.type)==="ConditionalExpression"||Je(t))?!1:(r==null?void 0:r.type)==="ConditionalExpression"||Je(r)?(Me(t,e),!0):!1}function vu({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s,options:u}){let i=t&&!de(s,k(t),q(e));return(!t||!i)&&((r==null?void 0:r.type)==="ConditionalExpression"||Je(r))&&n?u.experimentalTernaries&&r.alternate===n&&!(ee(e)&&!de(u.originalText,q(e),k(e)))?(Me(r,e),!0):(le(n,e),!0):!1}function Zo({comment:e,precedingNode:t,enclosingNode:r}){return Ce(r)&&r.shorthand&&r.key===t&&r.value.type==="AssignmentPattern"?(V(r.value.left,e),!0):!1}var ep=new Set(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function ju({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(ep.has(r==null?void 0:r.type)){if(O(r.decorators)&&(n==null?void 0:n.type)!=="Decorator")return V(M(!1,r.decorators,-1),e),!0;if(r.body&&n===r.body)return wt(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return V(t,e),!0;for(let s of["implements","extends","mixins"])if(r[s]&&n===r[s][0])return t&&(t===r.id||t===r.typeParameters||t===r.superClass)?V(t,e):Me(r,e,s),!0}}return!1}var tp=new Set(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function Mu({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&be(n,k(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&be(n,k(t))!==":"?(V(t,e),!0):(t==null?void 0:t.type)==="Decorator"&&tp.has(r==null?void 0:r.type)&&(At(e)||e.placement==="ownLine")?(V(t,e),!0):!1}var rp=new Set(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function np({comment:e,precedingNode:t,enclosingNode:r,text:n}){return be(n,k(e))!=="("?!1:t&&rp.has(r==null?void 0:r.type)?(V(t,e),!0):!1}function sp({comment:e,enclosingNode:t,text:r}){if((t==null?void 0:t.type)!=="ArrowFunctionExpression")return!1;let n=it(r,k(e));return n!==!1&&r.slice(n,n+2)==="=>"?(Me(t,e),!0):!1}function up({comment:e,enclosingNode:t,text:r}){return be(r,k(e))!==")"?!1:t&&(Nu(t)&&z(t).length===0||mt(t)&&pe(t).length===0)?(Me(t,e),!0):((t==null?void 0:t.type)==="MethodDefinition"||(t==null?void 0:t.type)==="TSAbstractMethodDefinition")&&z(t.value).length===0?(Me(t.value,e),!0):!1}function ip({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return(t==null?void 0:t.type)==="ComponentTypeParameter"&&((r==null?void 0:r.type)==="DeclareComponent"||(r==null?void 0:r.type)==="ComponentTypeAnnotation")&&(n==null?void 0:n.type)!=="ComponentTypeParameter"?(V(t,e),!0):((t==null?void 0:t.type)==="ComponentParameter"||(t==null?void 0:t.type)==="RestElement")&&(r==null?void 0:r.type)==="ComponentDeclaration"&&be Line truncated
`;default:return`
`}}var Pe=Symbol("MODE_BREAK"),at=Symbol("MODE_FLAT"),Yt=Symbol("cursor"),es=Symbol("DOC_FILL_PRINTED_LENGTH");function Uu(){return{value:"",length:0,queue:[]}}function Sp(e,t){return ts(e,{type:"indent"},t)}function Bp(e,t,r){return t===Number.NEGATIVE_INFINITY?e.root||Uu():t<0?ts(e,{type:"dedent"},r):t?t.type==="root"?{...e,root:e}:ts(e,{type:typeof t=="string"?"stringAlign":"numberAlign",n:t},r):e}function ts(e,t,r){let n=t.type==="dedent"?e.queue.slice(0,-1):[...e.queue,t],s="",u=0,i=0,a=0;for(let c of n)switch(c.type){case"indent":y(),r.useTabs?o(1):p(r.tabWidth);break;case"stringAlign":y(),s+=c.n,u+=c.n.length;break;case"numberAlign":i+=1,a+=c.n;break;default:throw new Error(`Unexpected type '${c.type}'`)}return m(),{...e,value:s,length:u,queue:n};function o(c){s+=" ".repeat(c),u+=r.tabWidth*c}function p(c){s+=" ".repeat(c),u+=c}function y(){r.useTabs?D():m()}function D(){i>0&&o(i),C()}function m(){a>0&&p(a),C()}function C(){i=0,a=0}}function rs(e){let t=0,r=0,n=e.length;e:for(;n--;){let s=e[n];if(s===Yt){r++;continue}for(let u=s.length-1;u>=0;u--){let i=s[u];if(i===" "||i===" ")t++;else{e[n]=s.slice(0,u+1);break e}}}if(t>0||r>0)for(e.length=n+1;r-- >0;)e.push(Yt);return t}function Nr(e,t,r,n,s,u){if(r===Number.POSITIVE_INFINITY)return!0;let i=t.length,a=[e],o=[];for(;r>=0;){if(a.length===0){if(i===0)return!0;a.push(t[--i]);continue}let{mode:p,doc:y}=a.pop(),D=Se(y);switch(D){case qe:o.push(y),r-=rt(y);break;case he:case Oe:{let m=D===he?y:y.parts,C=y[es]??0;for(let c=m.length-1;c>=C;c--)a.push({mode:p,doc:m[c]});break}case Ve:case $e:case Qe:case ge:a.push({mode:p,doc:y.contents});break;case Ke:r+=rs(o);break;case me:{if(u&&y.break)return!1;let m=y.break?Pe:p,C=y.expandedStates&&m===Pe?M(!1,y.expandedStates,-1):y.contents;a.push({mode:m,doc:C});break}case Te:{let C=(y.groupId?s[y.groupId]||at:p)===Pe?y.breakContents:y.flatContents;C&&a.push({mode:p,doc:C});break}case ie:if(p===Pe||y.hard)return!0;y.soft||(o.push(" "),r--);break;case ze:n=!0;break;case We:if(n)return!1;break}}return!1}function ns(e,t){let r={},n=t.printWidth,s=Gu(t.endOfLine),u=0,i=[{ind:Uu(),mode:Pe,doc:e}],a=[],o=!1,p=[],y=0;for(Bu(e);i.length>0;){let{ind:m,mode:C,doc:c}=i.pop();switch(Se(c)){case qe:{let A=s!==`
`?Y(!1,c,`
`,s):c;a.push(A),i.length>0&&(u+=rt(A));break}case he:for(let A=c.length-1;A>=0;A--)i.push({ind:m,mode:C,doc:c[A]});break;case st:if(y>=2)throw new Error("There are too many 'cursor' in doc.");a.push(Yt),y++;break;case Ve:i.push({ind:Sp(m,t),mode:C,doc:c.contents});break;case $e:i.push({ind:Bp(m,c.n,t),mode:C,doc:c.contents});break;case Ke:u-=rs(a);break;case me:switch(C){case at:if(!o){i.push({ind:m,mode:c.break?Pe:at,doc:c.contents});break}case Pe:{o=!1;let A={ind:m,mode:at,doc:c.contents},d=n-u,S=p.length>0;if(!c.break&&Nr(A,i,d,S,r))i.push(A);else if(c.expandedStates){let g=M(!1,c.expandedStates,-1);if(c.break){i.push({ind:m,mode:Pe,doc:g});break}else for(let _=1;_<c.expandedStates.length+1;_++)if(_>=c.expandedStates.length){i.push({ind:m,mode:Pe,doc:g});break}else{let v=c.expandedStates[_],j={ind:m,mode:at,doc:v};if(Nr(j,i,d,S,r)){i.push(j);break}}}else i.push({ind:m,mode:Pe,doc:c.contents});break}}c.id&&(r[c.id]=M(!1,i,-1).mode);break;case Oe:{let A=n-u,d=c[es]??0,{parts:S}=c,g=S.length-d;if(g===0)break;let _=S[d+0],v=S[d+1],j={ind:m,mode:at,doc:_},I={ind:m,mode:Pe,doc:_},G=Nr(j,[],A,p.length>0,r,!0);if(g===1){G?i.push(j):i.push(I);break}let P={ind:m,mode:at,doc:v},N={ind:m,mode:Pe,doc:v};if(g===2){G?i.push(P,j):i.push(N,I);break}let ue=S[d+2],Q={ind:m,mode:C,doc:{...c,[es]:d+2}};Nr({ind:m,mode:at,doc:[_,v,ue]},[],A,p.length>0,r,!0)?i.push(Q,P,j):G?i.push(Q,N,j):i.push(Q,N,I);break}case Te:case Qe:{let A=c.groupId?r[c.groupId]:C;if(A===Pe){let d=c.type===Te?c.breakContents:c.negate?c.contents:f(c.contents);d&&i.push({ind:m,mode:C,doc:d})}if(A===at){let d=c.type===Te?c.flatContents:c.negate?f(c.contents):c.contents;d&&i.push({ind:m,mode:C,doc:d})}break}case ze:p.push({ind:m,mode:C,doc:c.contents});break;case We:p.length>0&&i.push({ind:m,mode:C,doc:Yn});break;case ie:switch(C){case at:if(c.hard)o=!0;else{c.soft||(a.push(" "),u+=1);break}case Pe:if(p.length>0){i.push({ind:m,mode:C,doc:c},...p.reverse()),p.length=0;break}c.literal?m.root?(a.push(s,m.root.value),u=m.root.length):(a.push(s),u=0):(u-=rs(a),a.push(s+m.value),u=m.length);break}break;case ge:i.push({ind:m,mode:C,doc:c.contents});break;case _e:break;default:throw new dt(c)}i.length===0&&p.length>0&&(i.push(...p.reverse()),p.length=0)}let D=a.indexOf(Yt);if(D!==-1){let m=a.indexOf(Yt,D+1);if(m===-1)return{formatted:a.filter(d=>d!==Yt).join("")};let C=a.slice(0,D).join(""),c=a.slice(D+1,m).join(""),A=a.slice(m+1).join("");return{formatted:C+c+A,cursorNodeStart:C.length,cursorNodeText:c}}return{formatted:a.join("")}}function bp(e,t,r=0){let n=0;for(let s=r;s<e.length;++s)e[s]===" "?n=n+t-n%t:n++;return n}var Yu=bp;function Pp(e,t){let r=e.lastIndexOf(`
`);return r===-1?0:Yu(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var Xu=Pp;function Gr(e,t,r){let{node:n}=e;if(n.type==="TemplateLiteral"&&Lp(e)){let p=kp(e,r,t);if(p)return p}let u="expressions";n.type==="TSTemplateLiteralType"&&(u="types");let i=[],a=e.map(t,u);i.push(je,"`");let o=0;return e.each(({index:p,node:y})=>{if(i.push(t()),y.tail)return;let{tabWidth:D}=r,m=y.value.raw,C=m.includes(`
`)?Xu(m,D):o;o=C;let c=a[p],A=n[u][p],d=de(r.originalText,k(y),q(n.quasis[p+1]));if(!d){let g=ns(c,{...r,printWidth:Number.POSITIVE_INFINITY}).formatted;g.includes(`
`)?d=!0:c=g}d&&(T(A)||A.type==="Identifier"||W(A)||A.type==="ConditionalExpression"||A.type==="SequenceExpression"||Ae(A)||De(A))&&(c=[f([E,c]),E]);let S=C===0&&m.endsWith(`
`)?Be(Number.NEGATIVE_INFINITY,c):Lu(c,C,D);i.push(l(["${",S,je,"}"]))},"quasis"),i.push("`"),i}function Hu(e,t){let r=t("quasi");return ut(r.label&&{tagged:!0,...r.label},[t("tag"),t(e.node.typeArguments?"typeArguments":"typeParameters"),je,r])}function kp(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(s.length>1||s.some(u=>u.length>0)){t.__inJestEach=!0;let u=e.map(r,"expressions");t.__inJestEach=!1;let i=[],a=u.map(m=>"${"+ns(m,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),o=[{hasLineBreak:!1,cells:[]}];for(let m=1;m<n.quasis.length;m++){let C=M(!1,o,-1),c=a[m-1];C.cells.push(c),c.includes(`
`)&&(C.hasLineBreak=!0),n.quasis[m].value.raw.includes(`
`)&&o.push({hasLineBreak:!1,cells:[]})}let p=Math.max(s.length,...o.map(m=>m.cells.length)),y=Array.from({length:p}).fill(0),D=[{cells:s},...o.filter(m=>m.cells.length>0)];for(let{cells:m}of D.filter(C=>!C.hasLineBreak))for(let[C,c]of m.entries())y[C]=Math.max(y[C],rt(c));return i.push(je,"`",f([F,b(F,D.map(m=>b(" | ",m.cells.map((C,c)=>m.hasLineBreak?C:C+" ".repeat(y[c]-rt(C))))))]),F,"`"),i}}function Ip(e,t){let{node:r}=e,n=t();return T(r)&&(n=l([f([E,n]),E])),["${",n,je,"}"]}function Xt(e,t){return e.map(r=>Ip(r,t),"expressions")}function Ur(e,t){return yt(e,r=>typeof r=="string"?t?Y(!1,r,/(\\*)`/gu,"$1$1\\`"):ss(r):r)}function ss(e){return Y(!1,e,/([\\`]|\$\{)/gu,String.raw`\$1`)}function Lp({node:e,parent:t}){let r=/^[fx]?(?:describe|it|test)$/u;return t.type==="TaggedTemplateExpression"&&t.quasi===e&&t.tag.type==="MemberExpression"&&t.tag.property.type==="Identifier"&&t.tag.property.name==="each"&&(t.tag.object.type==="Identifier"&&r.test(t.tag.object.name)||t.tag.object.type==="MemberExpression"&&t.tag.object.property.type==="Identifier"&&(t.tag.object.property.name==="only"||t.tag.object.property.name==="skip")&&t.tag.object.object.type==="Identifier"&&r.test(t.tag.object.object.name))}var is=[(e,t)=>e.type==="ObjectExpression"&&t==="properties",(e,t)=>e.type==="CallExpression"&&e.callee.type==="Identifier"&&e.callee.name==="Component"&&t==="arguments",(e,t)=>e.type==="Decorator"&&t==="expression"];function Vu(e){let t=n=>n.type==="TemplateLiteral",r=(n,s)=>Ce(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&s==="value";return e.match(t,(n,s)=>U(n)&&s==="elements",r,...is)||e.match(t,r,...is)}function $u(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Ce(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...is)}function us(e,t){return T(e,h.Block|h.Leading,({value:r})=>r===` ${t} `)}function Yr({node:e,parent:t},r){return us(e,r)||wp(t)&&us(t,r)||t.type==="ExpressionStatement"&&us(t,r)}function wp(e){return e.type==="AsConstExpression"||e.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const"}async function Op(e,t,r){let{node:n}=r,s=n.quasis.map(y=>y.value.raw),u=0,i=s.reduce((y,D,m)=>m===0?D:y+"@prettier-placeholder-"+u+++"-id"+D,""),a=await e(i,{parser:"scss"}),o=Xt(r,t),p=_p(a,o);if(!p)throw new Error("Couldn't insert all the expressions");return["`",f([F,p]),E,"`"]}function _p(e,t){if(!O(t))return e;let r=0,n=yt(Ut(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/u).map((u,i)=>i%2===0?ve(u):(r++,t[u])));return t.length===r?n:null}function vp({node:e,parent:t,grandparent:r}){return r&&e.quasis&&t.type==="JSXExpressionContainer"&&r.type==="JSXElement"&&r.openingElement.name.name==="style"&&r.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.name==="jsx")||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="css"||(t==null?void 0:t.type)==="TaggedTemplateExpression"&&t.tag.type==="MemberExpression"&&t.tag.object.name==="css"&&(t.tag.property.name==="global"||t.tag.property.name==="resolve")}function Xr(e){return e.type==="Identifier"&&e.name==="styled"}function Ku(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function jp({parent:e}){if(!e||e.type!=="TaggedTemplateExpression")return!1;let t=e.tag.type==="ParenthesizedExpression"?e.tag.expression:e.tag;switch(t.type){case"MemberExpression":return Xr(t.object)||Ku(t);case"CallExpression":return Xr(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(Xr(t.callee.object.object)||Ku(t.callee.object))||t.callee.object.type==="CallExpression"&&Xr(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function Mp({parent:e,grandparent:t}){return(t==null?void 0:t.type)==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}function Rp(e){if(vp(e)||jp(e)||Mp(e)||Vu(e))return Op}var Qu=Rp;async function Jp(e,t,r){let{node:n}=r,s=n.quasis.length,u=Xt(r,t),i=[];for(let a=0;a<s;a++){let o=n.quasis[a],p=a===0,y=a===s-1,D=o.value.cooked,m=D.split(`
`),C=m.length,c=u[a],A=C>2&&m[0].trim()===""&&m[1].trim()==="",d=C>2&&m[C-1].trim()===""&&m[C-2].trim()==="",S=m.every(_=>/^\s*(?:#[^\n\r]*)?$/u.test(_));if(!y&&/#[^\n\r]*$/u.test(m[C-1]))return null;let g=null;S?g=qp(m):g=await e(D,{parser:"graphql"}),g?(g=Ur(g,!1),!p&&A&&i.push(""),i.push(g),!y&&d&&i.push("")):!p&&!y&&A&&i.push(""),c&&i.push(c)}return["`",f([F,b(F,i)]),F,"`"]}function qp(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,u]of n.entries())u!==""&&(n[s-1]===""&&r?t.push([F,u]):t.push(u),r=!0);return t.length===0?null:b(F,t)}function Wp({node:e,parent:t}){return Yr({node:e,parent:t},"GraphQL")||t&&(t.type==="TaggedTemplateExpression"&&(t.tag.type==="MemberExpression"&&t.tag.object.name==="graphql"&&t.tag.property.name==="experimental"||t.tag.type==="Identifier"&&(t.tag.name==="gql"||t.tag.name==="graphql"))||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="graphql")}function Np(e){if(Wp(e))return Jp}var zu=Np;var as=0;async function Zu(e,t,r,n,s){let{node:u}=n,i=as;as=as+1>>>0;let a=S=>`PRETTIER_HTML_PLACEHOLDER_${S}_${i}_IN_JS`,o=u.quasis.map((S,g,_)=>g===_.length-1?S.value.cooked:S.value.cooked+a(g)).join(""),p=Xt(n,r),y=new RegExp(a(String.raw`(\d+)`),"gu"),D=0,m=await t(o,{parser:e,__onHtmlRoot(S){D=S.children.length}}),C=yt(m,S=>{if(typeof S!="string")return S;let g=[],_=S.split(y);for(let v=0;v<_.length;v++){let j=_[v];if(v%2===0){j&&(j=ss(j),s.__embeddedInHtml&&(j=Y(!1,j,/<\/(?=script\b)/giu,String.raw`<\/`)),g.push(j));continue}let I=Number(j);g.push(p[I])}return g}),c=/^\s/u.test(o)?" ":"",A=/\s$/u.test(o)?" ":"",d=s.htmlWhitespaceSensitivity==="ignore"?F:c&&A?x:null;return d?l(["`",f([d,l(C)]),d,"`"]):ut({hug:!1},l(["`",c,D>1?f(l(C)):l(C),A,"`"]))}function Gp(e){return Yr(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var Up=Zu.bind(void 0,"html"),Yp=Zu.bind(void 0,"angular");function Xp(e){if(Gp(e))return Up;if($u(e))return Yp}var ei=Xp;async function Hp(e,t,r){let{node:n}=r,s=Y(!1,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(o,p)=>"\\".repeat(p.length/2)+"`"),u=Vp(s),i=u!=="";i&&(s=Y(!1,s,new RegExp(`^${u}`,"gmu"),""));let a=Ur(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",i?f([E,a]):[Rr,Iu(a)],E,"`"]}function Vp(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function $p(e){if(Kp(e))return Hp}function Kp({node:e,parent:t}){return(t==null?void 0:t.type)==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var ti=$p;function Qp(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||zp(t))return;let r;for(let n of[Qu,zu,ei,ti])if(r=n(e),!!r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":async(...s)=>{let u=await r(...s);return u&&ut({embed:!0,...u.label},u)}}function zp({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var ri=Qp;var Zp=/\*\/$/,ec=/^\/\*\*?/,ii=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,tc=/(^|\s+)\/\/([^\n\r]*)/g,ni=/^(\r?\n)+/,rc=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,si=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,nc=/(\r?\n|^) *\* ?/g,ai=[];function oi(e){let t=e.match(ii);return t?t[0].trimStart():""}function pi(e){let t=e.match(ii),r=t==null?void 0:t[0];return r==null?e:e.slice(r.length)}function ci(e){let t=`
`;e=Y(!1,e.replace(ec,"").replace(Zp,""),nc,"$1");let r="";for(;r!==e;)r=e,e=Y(!1,e,rc,`${t}$1 $2${t}`);e=e.replace(ni,"").trimEnd();let n=Object.create(null),s=Y(!1,e,si,"").replace(ni,"").trimEnd(),u;for(;u=si.exec(e);){let i=Y(!1,u[2],tc,"");if(typeof n[u[1]]=="string"||Array.isArray(n[u[1]])){let a=n[u[1]];n[u[1]]=[...ai,...Array.isArray(a)?a:[a],i]}else n[u[1]]=i}return{comments:s,pragmas:n}}function li({comments:e="",pragmas:t={}}){let r=`
`,n="/**",s=" *",u=" */",i=Object.keys(t),a=i.flatMap(p=>ui(p,t[p])).map(p=>`${s} ${p}${r}`).join("");if(!e){if(i.length===0)return"";if(i.length===1&&!Array.isArray(t[i[0]])){let p=t[i[0]];return`${n} ${ui(i[0],p)[0]}${u}`}}let o=e.split(r).map(p=>`${s} ${p}`).join(r)+r;return n+r+(e?o:"")+(e&&i.length>0?s+r:"")+a+u}function ui(e,t){return[...ai,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}function sc(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
`);return t===-1?e:e.slice(0,t)}var mi=sc;function uc(e){let t=mi(e);t&&(e=e.slice(t.length+1));let r=oi(e),{pragmas:n,comments:s}=ci(r);return{shebang:t,text:e,pragmas:n,comments:s}}function yi(e){let{shebang:t,text:r,pragmas:n,comments:s}=uc(e),u=pi(r),i=li({pragmas:{format:"",...n},comments:s.trimStart()});return(t?`${t}
`:"")+i+(u.startsWith(`
`)?`
`:`
`)+u}function ic(e,t){let{originalText:r,[Symbol.for("comments")]:n,locStart:s,locEnd:u,[Symbol.for("printedComments")]:i}=t,{node:a}=e,o=s(a),p=u(a);for(let y of n)s(y)>=o&&u(y)<=p&&i.add(y);return r.slice(o,p)}var Di=ic;function os(e,t){var u,i,a,o,p,y,D,m,C;if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&cc(r)&&yr(e))return!0;if(ac(r))return!1;if(r.type==="Identifier"){if((u=r.extra)!=null&&u.parenthesized&&/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(r.name)||n==="left"&&(r.name==="async"&&!s.await||r.name==="let")&&s.type==="ForOfStatement")return!0;if(r.name==="let"){let c=(i=e.findAncestor(A=>A.type==="ForOfStatement"))==null?void 0:i.left;if(c&&ae(c,A=>A===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let c=e.findAncestor(d=>d.type==="ExpressionStatement"||d.type==="ForStatement"||d.type==="ForInStatement"),A=c?c.type==="ExpressionStatement"?c.expression:c.type==="ForStatement"?c.init:c.left:void 0;if(A&&ae(A,d=>d===r))return!0}if(n==="expression")switch(r.name){case"await":case"interface":case"module":case"using":case"yield":case"let":case"component":case"hook":case"type":{let c=e.findAncestor(A=>!Ae(A));if(c!==s&&c.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let c=(a=e.findAncestor(A=>A.type==="ExpressionStatement"))==null?void 0:a.expression;if(c&&ae(c,A=>A===r))return!0}if(r.type==="ObjectExpression"){let c=(o=e.findAncestor(A=>A.type==="ArrowFunctionExpression"))==null?void 0:o.body;if(c&&c.type!=="SequenceExpression"&&c.type!=="AssignmentExpression"&&ae(c,A=>A===r))return!0}switch(s.type){case"ParenthesizedExpression":return!1;case"ClassDeclaration":case"ClassExpression":if(n==="superClass"&&(r.type==="ArrowFunctionExpression"||r.type==="AssignmentExpression"||r.type==="AwaitExpression"||r.type==="BinaryExpression"||r.type==="ConditionalExpression"||r.type==="LogicalExpression"||r.type==="NewExpression"||r.type==="ObjectExpression"||r.type==="SequenceExpression"||r.type==="TaggedTemplateExpression"||r.type==="UnaryExpression"||r.type==="UpdateExpression"||r.type==="YieldExpression"||r.type==="TSNonNullExpression"||r.type==="ClassExpression"&&O(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return fi(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!mc(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(c,A)=>A==="returnType"&&c.type==="ArrowFunctionExpression")&&pc(r))return!0;break;case"BinaryExpression":if(n==="left"&&(s.operator==="in"||s.operator==="instanceof")&&r.type==="UnaryExpression")return!0;break;case"VariableDeclarator":if(n==="init"&&e.match(void 0,void 0,(c,A)=>A==="declarations"&&c.type==="VariableDeclaration",(c,A)=>A==="left"&&c.type==="ForInStatement"))return!0;break}switch(r.type){case"UpdateExpression":if(s.type==="UnaryExpression")return r.prefix&&(r.operator==="++"&&s.operator==="+"||r.operator==="--"&&s.operator==="-");case"UnaryExpression":switch(s.type){case"UnaryExpression":return r.operator===s.operator&&(r.operator==="+"||r.operator==="-");case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TaggedTemplateExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"BinaryExpression":return n==="left"&&s.operator==="**";case"TSNonNullExpression":return!0;default:return!1}case"BinaryExpression":if(s.type==="UpdateExpression"||r.operator==="in"&&oc(e))return!0;if(r.operator==="|>"&&((p=r.extra)!=null&&p.parenthesized)){let c=e.grandparent;if(c.type==="BinaryExpression"&&c.operator==="|>")return!0}case"TSTypeAssertion":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"LogicalExpression":switch(s.type){case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return!Ae(r);case"ConditionalExpression":return Ae(r)||lu(r);case"CallExpression":case"NewExpression":case"OptionalCallExpression":return n==="callee";case"ClassExpression":case"ClassDeclaration":return n==="superClass";case"TSTypeAssertion":case"TaggedTemplateExpression":case"UnaryExpression":case"JSXSpreadAttribute":case"SpreadElement":case"BindExpression":case"AwaitExpression":case"TSNonNullExpression":case"UpdateExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"AssignmentExpression":case"AssignmentPattern":return n==="left"&&(r.type==="TSTypeAssertion"||Ae(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:c,type:A}=r;if(!c&&A!=="TSTypeAssertion")return!0;let d=sr(c),S=s.operator,g=sr(S);return g>d||n==="right"&&g===d||g===d&&!ar(S,c)?!0:g<d&&c==="%"?S==="+"||S==="-":!!Fu Line truncated
\r `),fs=e=>e===""||e===x||e===F||e===E;function Fc(e,t,r){var _,v,j,I,G;let{node:n}=e;if(n.type==="JSXElement"&&Lc(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),u=n.type==="JSXElement"?r("closingElement"):r("closingFragment");if(n.children.length===1&&n.children[0].type==="JSXExpressionContainer"&&(n.children[0].expression.type==="TemplateLiteral"||n.children[0].expression.type==="TaggedTemplateExpression"))return[s,...e.map(r,"children"),u];n.children=n.children.map(P=>wc(P)?{type:"JSXText",value:" ",raw:" "}:P);let i=n.children.some(X),a=n.children.filter(P=>P.type==="JSXExpressionContainer").length>1,o=n.type==="JSXElement"&&n.openingElement.attributes.length>1,p=re(s)||i||o||a,y=e.parent.rootMarker==="mdx",D=t.singleQuote?"{' '}":'{" "}',m=y?x:B([D,E]," "),C=((v=(_=n.openingElement)==null?void 0:_.name)==null?void 0:v.name)==="fbt",c=Cc(e,t,r,m,C),A=n.children.some(P=>Dr(P));for(let P=c.length-2;P>=0;P--){let N=c[P]===""&&c[P+1]==="",ue=c[P]===F&&c[P+1]===""&&c[P+2]===F,Q=(c[P]===E||c[P]===F)&&c[P+1]===""&&c[P+2]===m,Bt=c[P]===m&&c[P+1]===""&&(c[P+2]===E||c[P+2]===F),Ct=c[P]===m&&c[P+1]===""&&c[P+2]===m,w=c[P]===E&&c[P+1]===""&&c[P+2]===F||c[P]===F&&c[P+1]===""&&c[P+2]===E;ue&&A||N||Q||Ct||w?c.splice(P,2):Bt&&c.splice(P+1,2)}for(;c.length>0&&fs(M(!1,c,-1));)c.pop();for(;c.length>1&&fs(c[0])&&fs(c[1]);)c.shift(),c.shift();let d=[""];for(let[P,N]of c.entries()){if(N===m){if(P===1&&Pu(c[P-1])){if(c.length===2){d.push([d.pop(),D]);continue}d.push([D,F],"");continue}else if(P===c.length-1){d.push([d.pop(),D]);continue}else if(c[P-1]===""&&c[P-2]===F){d.push([d.pop(),D]);continue}}P%2===0?d.push([d.pop(),N]):d.push(N,""),re(N)&&(p=!0)}let S=A?qr(d):l(d,{shouldBreak:!0});if(((j=t.cursorNode)==null?void 0:j.type)==="JSXText"&&n.children.includes(t.cursorNode)?S=[mr,S,mr]:((I=t.nodeBeforeCursor)==null?void 0:I.type)==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?S=[mr,S]:((G=t.nodeAfterCursor)==null?void 0:G.type)==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(S=[S,mr]),y)return S;let g=l([s,f([F,S]),F,u]);return p?g:et([l([s,...c,u]),g])}function Cc(e,t,r,n,s){let u="",i=[u];function a(p){u=p,i.push([i.pop(),p])}function o(p){p!==""&&(u=p,i.push(p,""))}return e.each(({node:p,next:y})=>{if(p.type==="JSXText"){let D=fe(p);if(Dr(p)){let m=Hr.split(D,!0);m[0]===""&&(m.shift(),/\n/u.test(m[0])?o(Ai(s,m[1],p,y)):o(n),m.shift());let C;if(M(!1,m,-1)===""&&(m.pop(),C=m.pop()),m.length===0)return;for(let[c,A]of m.entries())c%2===1?o(x):a(A);C!==void 0?/\n/u.test(C)?o(Ai(s,u,p,y)):o(n):o(Ci(s,u,p,y))}else/\n/u.test(D)?D.match(/\n/gu).length>1&&o(F):o(n)}else{let D=r();if(a(D),y&&Dr(y)){let C=Hr.trim(fe(y)),[c]=Hr.split(C);o(Ci(s,c,p,y))}else o(F)}},"children"),i}function Ci(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?t.length===1?E:F:E}function Ai(e,t,r,n){return e?F:t.length===1?r.type==="JSXElement"&&!r.closingElement||(n==null?void 0:n.type)==="JSXElement"&&!n.closingElement?F:E:F}var Ac=new Set(["ArrayExpression","TupleExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot"]);function Tc(e,t,r){let{parent:n}=e;if(Ac.has(n.type))return t;let s=e.match(void 0,i=>i.type==="ArrowFunctionExpression",L,i=>i.type==="JSXExpressionContainer"),u=ke(e,r);return l([u?"":B("("),f([E,t]),E,u?"":B(")")],{shouldBreak:s})}function dc(e,t,r){let{node:n}=e,s=[];if(s.push(r("name")),n.value){let u;if(te(n.value)){let i=fe(n.value),a=Y(!1,Y(!1,i.slice(1,-1),"&apos;","'"),"&quot;",'"'),o=Sr(a,t.jsxSingleQuote);a=o==='"'?Y(!1,a,'"',"&quot;"):Y(!1,a,"'","&apos;"),u=e.call(()=>ye(e,ve(o+a+o),t),"value")}else u=r("value");s.push("=",u)}return s}function xc(e,t,r){let{node:n}=e,s=(u,i)=>u.type==="JSXEmptyExpression"||!T(u)&&(U(u)||se(u)||u.type==="ArrowFunctionExpression"||u.type==="AwaitExpression"&&(s(u.argument,u)||u.argument.type==="JSXElement")||L(u)||u.type==="ChainExpression"&&L(u.expression)||u.type==="FunctionExpression"||u.type==="TemplateLiteral"||u.type==="TaggedTemplateExpression"||u.type==="DoExpression"||X(i)&&(u.type==="ConditionalExpression"||De(u)));return s(n.expression,e.parent)?l(["{",r("expression"),je,"}"]):l(["{",f([E,r("expression")]),E,je,"}"])}function hc(e,t,r){var a,o;let{node:n}=e,s=T(n.name)||T(n.typeParameters)||T(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," />"];if(((a=n.attributes)==null?void 0:a.length)===1&&te(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
`)&&!s&&!T(n.attributes[0]))return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let u=(o=n.attributes)==null?void 0:o.some(p=>te(p.value)&&p.value.value.includes(`
`)),i=t.singleAttributePerLine&&n.attributes.length>1?F:x;return l(["<",r("name"),n.typeArguments?r("typeArguments"):r("typeParameters"),f(e.map(()=>[i,r()],"attributes")),...gc(n,t,s)],{shouldBreak:u})}function gc(e,t,r){return e.selfClosing?[x,"/>"]:Sc(e,t,r)?[">"]:[E,">"]}function Sc(e,t,r){let n=e.attributes.length>0&&T(M(!1,e.attributes,-1),h.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function Bc(e,t,r){let{node:n}=e,s=[];s.push("</");let u=r("name");return T(n.name,h.Leading|h.Line)?s.push(f([F,u]),F):T(n.name,h.Leading|h.Block)?s.push(" ",u):s.push(u),s.push(">"),s}function bc(e,t){let{node:r}=e,n=T(r),s=T(r,h.Line),u=r.type==="JSXOpeningFragment";return[u?"<":"</",f([s?F:n&&!u?" ":"",J(e,t)]),s?F:"",">"]}function Pc(e,t,r){let n=ye(e,Fc(e,t,r),t);return Tc(e,n,t)}function kc(e,t){let{node:r}=e,n=T(r,h.Line);return[J(e,t,{indent:n}),n?F:""]}function Ic(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let u=["...",r()];return!T(s)||!Zn(e)?u:[f([E,ye(e,u,t)]),E]},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function Ti(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return dc(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return b(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return b(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return Ic(e,t,r);case"JSXExpressionContainer":return xc(e,t,r);case"JSXFragment":case"JSXElement":return Pc(e,t,r);case"JSXOpeningElement":return hc(e,t,r);case"JSXClosingElement":return Bc(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return bc(e,t);case"JSXEmptyExpression":return kc(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new Ne(n,"JSX")}}function Lc(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!Dr(t)}function Dr(e){return e.type==="JSXText"&&(Hr.hasNonWhitespaceCharacter(fe(e))||!/\n/u.test(fe(e)))}function wc(e){return e.type==="JSXExpressionContainer"&&te(e.expression)&&e.expression.value===" "&&!T(e.expression)}function di(e){let{node:t,parent:r}=e;if(!X(t)||!X(r))return!1;let{index:n,siblings:s}=e,u;for(let i=n;i>0;i--){let a=s[i-1];if(!(a.type==="JSXText"&&!Dr(a))){u=a;break}}return(u==null?void 0:u.type)==="JSXExpressionContainer"&&u.expression.type==="JSXEmptyExpression"&&Lt(u.expression)}function Oc(e){return Lt(e.node)||di(e)}var Vr=Oc;var _c=0;function $r(e,t,r){var v;let{node:n,parent:s,grandparent:u,key:i}=e,a=i!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),o=n.operator==="|>"&&((v=e.root.extra)==null?void 0:v.__isUsingHackPipeline),p=Es(e,r,t,!1,a);if(a)return p;if(o)return l(p);if(L(s)&&s.callee===n||s.type==="UnaryExpression"||W(s)&&!s.computed)return l([f([E,...p]),E]);let y=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&u.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&u.type==="NGMicrosyntax"&&u.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&u.type!=="ReturnStatement"&&u.type!=="ThrowStatement"&&!L(u)||s.type==="TemplateLiteral",D=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||Ce(s),m=De(n.left)&&ar(n.operator,n.left.operator);if(y||Ht(n)&&!m||!Ht(n)&&D)return l(p);if(p.length===0)return"";let C=X(n.right),c=p.findIndex(j=>typeof j!="string"&&!Array.isArray(j)&&j.type===me),A=p.slice(0,c===-1?1:c+1),d=p.slice(A.length,C?-1:void 0),S=Symbol("logicalChain-"+ ++_c),g=l([...A,f(d)],{id:S});if(!C)return g;let _=M(!1,p,-1);return l([g,xt(_,{groupId:S})])}function Es(e,t,r,n,s){var S;let{node:u}=e;if(!De(u))return[l(t())];let i=[];ar(u.operator,u.left.operator)?i=e.call(g=>Es(g,t,r,!0,s),"left"):i.push(l(t("left")));let a=Ht(u),o=(u.operator==="|>"||u.type==="NGPipeExpression"||vc(e,r))&&!Le(r.originalText,u.right),y=!T(u.right,h.Leading,Wr)&&Le(r.originalText,u.right),D=u.type==="NGPipeExpression"?"|":u.operator,m=u.type==="NGPipeExpression"&&u.arguments.length>0?l(f([E,": ",b([x,": "],e.map(()=>Be(2,l(t())),"arguments"))])):"",C;if(a)C=[D," ",t("right"),m];else{let _=D==="|>"&&((S=e.root.extra)==null?void 0:S.__isUsingHackPipeline)?e.call(v=>Es(v,t,r,!0,s),"right"):t("right");if(r.experimentalOperatorPosition==="start"){let v="";if(y)switch(Se(_)){case he:v=_.splice(0,1)[0];break;case ge:v=_.contents.splice(0,1)[0];break}C=[x,v,D," ",_,m]}else C=[o?x:"",D,o?" ":x,_,m]}let{parent:c}=e,A=T(u.left,h.Trailing|h.Line);if((A||!(s&&u.type==="LogicalExpression")&&c.ty Line truncated
+5
View File
@@ -0,0 +1,5 @@
import { Parser } from "../index.js";
export declare const parsers: {
flow: Parser;
};
+19
View File
@@ -0,0 +1,19 @@
(function(i){function e(){var f=i();return f.default||f}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.flow=e()}})(function(){"use strict";var CE0=Object.create;var sd=Object.defineProperty;var jE0=Object.getOwnPropertyDescriptor;var OE0=Object.getOwnPropertyNames;var DE0=Object.getPrototypeOf,FE0=Object.prototype.hasOwnProperty;var RE0=(o0,ox)=>()=>(ox||o0((ox={exports:{}}).exports,ox),ox.exports),rz=(o0,ox)=>{for(var $x in ox)sd(o0,$x,{get:ox[$x],enumerable:!0})},ez=(o0,ox,$x,Ar)=>{if(ox&&typeof ox=="object"||typeof ox=="function")for(let lr of OE0(ox))!FE0.call(o0,lr)&&lr!==$x&&sd(o0,lr,{get:()=>ox[lr],enumerable:!(Ar=jE0(ox,lr))||Ar.enumerable});return o0};var LE0=(o0,ox,$x)=>($x=o0!=null?CE0(DE0(o0)):{},ez(ox||!o0||!o0.__esModule?sd($x,"default",{value:o0,enumerable:!0}):$x,o0)),ME0=o0=>ez(sd({},"__esModule",{value:!0}),o0);var tz=RE0(fO=>{(function(o0){typeof globalThis!="object"&&(this?ox():(o0.defineProperty(o0.prototype,"_T_",{configurable:!0,get:ox}),_T_));function ox(){var $x=this||self;$x.globalThis=$x,delete o0.prototype._T_}})(Object);(function(o0){"use strict";var ox="loc",$x=70416,Ar=69748,lr=163,Pr=92159,L2=43587,ie="labeled_statement",pO="&=",Bs="int_of_string",od=110591,vd=92909,M4=11559,kO="regexp",ld=43301,q4=11703,pd=122654,Us=255,mO="%ni",kd=68252,hO=232,md=42785,Dn="declare_variable",B4="while",hd=66938,dd=70301,yd=124907,U4=126515,dO=218,Fn="pattern_identifier",gd=67643,Rn="export_source",wd=216,_d=64279,yO="Out_of_memory",bd=113788,gO="comments",Td=126624,wO="win32",Ln="object_key_bigint_literal",Ed=185,X4=123214,Mo="constructor",Sd=69955,Mn="import_declaration",Ad=68437,Pd="Failure",Y4="Unix.Unix_error",Id=64255,Nd=42539,Cd=110579,qn="export_default_declaration",Bn="jsx_attribute_name",z4=11727,jd=43002,K4=126500,Un="component_param_pattern",_O="collect_comments_opt",Xn="match_unary_pattern",Yn="keyof_type",bO="Invalid binary/octal ",TO="range",J4=170,Xs="false",Od=43798,EO=", characters ",zn="object_type_property_getter",Dd=65547,Fd=126467,Rd=65007,SO="guard",Ld=42237,Md=8318,qd=71215,Kn="object_property_type",Jn="type_alias",Bd=67742,Gn="function_body",AO=304,Ud=68111,G4=120745,Xd=71959,W4=43880,PO="Match_failure",IO=280,Wn="type_cast",Vn=109,Ys="void",Yd="generator",zd=125124,Kd=101589,V4=94179,NO=">>>",$4=70404,$n="optional_indexed_access_type",CO=310,g1="argument",Qn="object_property",Hn="object_type_property",Jd=67004,Gd=42783,Wd=68850,jO="@",Vd=43741,$d=43487,Q4="object",OO="end",H4=126571,Qd=71956,DO=208,Hd=126566,Zd=67702,FO="EEXIST",Zn="this_expression",RO=203,xy=11507,ry=113807,Z4=119893,ey=42735,Bl="rest",x7="null_literal",Ul="protected",ty=43615,l1=8231,ny=68149,uy=73727,iy=72348,fy=92995,qo=224,cy=11686,sy=43013,r7="assignment_pattern",ay=12329,e7="function_type",v3=192,t7="jsx_element_name",oy=70018,n7="catch_clause_pattern",xp=126540,u7="template_literal",vy=120654,ly=68497,py=67679,i7="readonly_type",ky=68735,my="<",rp=": No such file or directory",hy=66915,LO="!",f7="object_type",dy=43712,ep=64297,yy=183969,gy=43503,wy=67591,Bo=65278,_y=67669,c7="for_of_assignment_pattern",Xl="`",by=11502,s7="catch_body",Ty=42191,Fa=-744106340,Ey=182,Uo=":",MO="a string",Sy=65663,Ay=66978,Py=71947,tp=43519,Iy=71086,Ny=125258,Cy=12538,a7="expression_or_spread",qO="Printexc.handle_uncaught_exception",np=69956,up=120122,ip=247,BO=231,jy=" : flags Open_rdonly and Open_wronly are not compatible",o7="statement_fork_point",UO=710,XO=-692038429,Re="static",Oy=55203,Dy=64324,Fy=64111,YO="!==",Ry=120132,Ly=124903,Yl="class",zO=222,v7="pattern_number_literal",zs="kind",My=71903,l7="variable_declarator",p7="typeof_expression",qy=126627,By=70084,KO=228,fp=70480,k7="class_private_field",Uy=239,cp=120713,xn=65535,m7="private_name",Xy=43137,h7="remote_identifier",Yy=70161,d7="label_identifier",zy="src/parser/statement_parser.ml",Ky=8335,Jy=19903,Gy=64310,Xo="_",y7="for_init_declaration",JO="infer",Wy=64466,Vy=43018,GO="tokens",$y=92735,Qy=66954,Hy=65473,Zy=70285,g7="sequence",x9="compare: functional value",r9=69890,zl=1e3,e9=65487,t9=42653,WO="\\\\",VO="%=",w7="match_member_pattern_base",n9=72367,_7="function_rest_param",$O="/static/",u9=124911,i9=65276,sp=126558,f9=11498,QO=137,b7="export_default_declaration_decl",c9="cases",ap=126602,T7="jsx_child",Le="continue",s9=42962,HO="importKind",c2=122,l3="Literal",E7="pattern_object_property_identifier_key",a9=42508,Ra="in",o9=55238,v9=67071,l9=70831,p9=72161,k9=67462,ZO="<<=",m9=43009,h9=66383,op=67827,d9=72202,y9=69839,g9=66775,xD="-=",Yo=8202,w9=70105,_9=120538,S7="for_in_left_declaration",b9="rendersType",vp=126563,T9=70708,lp=126523,rD=166,eD=202,E9=110951,Ks="component",pp=126552,S9=66977,tD=213,A7="enum_member_identifier",nD=210,P7="enum_bigint_body",uD=">=",A9=126495,P9="specifiers",iD=-88,I9="=",N9=65338,Kl=Line truncated
`,XD="**=",iu="pattern_object_property_pattern",Ew="e",Sw=72712,YD="Internal Error: Found object private prop",Aw="ENOENT",Pw=-42,fu="jsx_opening_attribute",Iw=67646,cu="component_type",Nw=64296,Cw=43887,zD="Division_by_zero",KD="EnumDefaultedMember",su="typeof_member_identifier",jw=43792,au="match_member_pattern_property",ou="declare_export_declaration_decl",Ow=93026,vu="type_annotation_hint",Dw=42887,Fw=43881,Rw=43761,Hp=8526,JD=158,GD=287,h3=119,Lw=43866,Mw=72847,qw=8348,se=101,Bw=94026,Zp=72272,WD="src/parser/flow_lexer.ml",Uw=120744,Vo=8191,d3="implies",xk=255,rk=11711,lu="match_unary_pattern_argument",Xw=71235,VD=288,ek=68116,y2=100,pu="match_expression",ku="enum_body",tk=1114111,mu="assignment",Yw=71955,nk=43260,hu="pattern_array_e",zw=126583,$D="prefix",du="class_body",uk="shorthand",Kw=171,Jw=66256,ik=-97,QD=" =",Gw=94032,Ww=42606,Vw=71839,fk=120134,$w=55291,Qw=92862,Hw=43019,Zw=126543,y3="function",x_=111355,r_=11389,e_=70753,t_=43249,n_=64829,ck="line",yu="function_declaration",sk="undefined",HD="([^/]+)",u_=110947,i_=70002,ZD="Cygwin",gu="as_expression",f_=12591,ak=64285,c_=2048,s_=73112,ok=126589,xF=225,vk=43259,a_=72817,lk=64318,rF=172,eF=209,wu="match_binding_pattern",_u=" ",bu="import_source",Vl="delete",tF="Enum `",pk=126553,o_=67001,$o="default",v_=11630,kk=206,Tu="enum_bigint_member",l_=67504,mk=67593,p_=113791,k_=69572,Eu="typeof_type",nF=212,uF="%i",Su="function_this_param",m_=72329,Ua="0x",Qo=8239,h_=75075,iF=57343,Au="pattern_bigint_literal",d_=12341,fF=201,Ho="hook",cF=": closedir failed",y_=42959,hk=119970,sF=278,g_=43560,aF="||=",Pu="member_private_name",w_=120570,Iu="object_key_identifier",dk=223,oF="Not_found",vF=230,Nu="jsx_element_name_member_expression",Cu="string_literal",__=120596,b_=43807,T_=69687,E_=63743,yk=72192,ju="member_property",S_=43262,Ou="class_declaration",lF="renders*",pF="%Li",A_=126578,Du="jsx_attribute",g3=254,Ee="empty",$l="label",Fu="object_internal_slot_property_type",gk=120133,P_=43359,Me="predicate",kF="??=",I_=43697,N_=-43,Ru="default_opt",mF="the start of a statement",C_=67826,Lu="object_",Mu="class_element",wk=11631,_k=70855,qu="opaque_type",Bu="number_literal",hF=", ",bk=8319,Tk=120004,Ek=133,Uu="type_params",Xu="pattern_object_rest_property",K1="import",j_=72e3,O_=67413,D_=12343,F_=70080,Yu="intersection_type",p1=-36,R_=70005,Sk="properties",L_=11679,M_=8483,q_=110587,dF=43520,zu="computed_key",yF=207,Ku="class_identifier",B_="Invalid number ",Ju="function_param_pattern",Zo=12288,U_=113817,X_=70730,Y_=178207,Ak=71236,gF=167,Gu="object_indexer_property_type",z_=64286,wF="TypeAnnotation",K_=220,Wu="type_identifier",Vu="spread_property",$u="jsx_attribute_value_expression",J_=126519,Pk=70108,Ik=126,Nk=42999,Xa="prototype",G_=" : flags Open_text and Open_binary are not compatible",_F="**",Ck=43823,W_=": Not a directory",Qu="render_type",jk=72349,w3="test",V_=43776,$_=92879,Q_=11263,bF=241,H_=93052,Hu="nullable_type",Z_=43704,xb=64321,TF="Property",rb=72191,EF=165,Ql="instanceof",eb=69247,qe="name",Ok=126634,tb=8516,Dk="typeArguments",nb=71127,Zu="jsx_spread_attribute",ub=66559,ib=44031,fb=43645,t1=8233,cb=71494,sb="opaque",Fk=72967,ab=70106,xi="logical",SF="@[%s =@ ",Hl="0o",Rk=126554,ob=71351,Lk=8484,vb=72242,Mk=120687,_3=252,lb=183983,Zl="%S",ri="function_this_param_type",AF=292,qk="decorators",pb=43255,ei="catch_clause",Be="-",kb=67711,PF=": file descriptor already closed",Bk=64311,Uk=120539,mb="arguments",Xk=73062,hb=173823,db=42124,yb=72095,gb=125259,wb=42969,Yk=70280,IF=12520,_b=69749,bb=70066,ti="binary",ni="for_in_statement",Tb=43010,NF="^=",Eb=126570,ui="for_statement",zk=126584,ii="function_return_annotation",Sb=72144,Ab=8505,fi="class_expression",Pb=120076,Ib=69807,Nb=40981,Cb=-24976191,jb=72768,Ob=126550,Kk='"',ci="call_type_arg",CF="f",xv="this",Jk=126628,jF="===",OF=56320,si="declare_module_exports",Db=120512,Pt=105,Fb=119974,Rb=71450,Lb=71942,DF=195,Gk=120629,FF="/=",RF=">>",ai="declare_interface",LF=4096,oi="pattern_array_rest_element",Mb=71338,Wk=126520,vi="as_const_expression",MF="Popping lex mode from empty stack",qF="renders?",qb=68405,li="member",pi="class_extends",rv=12287,Vk=126590,Bb=66377,Ya="async",ki="pattern_array_element",b3=240,BF=308,Ub=69864,ev="readonly",Xb=70460,Yb=120779,zb=66378,mi="new_",$k=126551,hi="pattern_object_rest_property_pattern",di="for_statement_init",Kb=43595,Qk=68296,Jb=120712,Gb=64217,Wb=69295,UF="||",Vb=";",$b=70461,Qb=66939,XF="collect_comments",Hk=279,yi="generic_type",Hb=68295,Zb=44002,Zk=72162,gi="object_call_property_type",x8=8305,r8=119995,e8="with",wi="class_property",YF="qualification",_i="jsx_attribute_name_namespaced",bi="if_statement",Ti="typeof_qualified_identifier",zF=238,xT=65615,KF=176,n1="expression",t8=126559,Ei="jsx_attribute_value",Si="<2>",Ai="component_param",n8="Map.bal",u8=132,rT=70412,eT=70440,JF="<<",i8="finally",GF="v",Pi="syntax_opt",Ii="meta_property",tT=12447,nT=67514,WF=260,f8=12448,Ni="object_mapped_type_property",tv="operator",VF="closedir",Ci="unary_expression",uT=12658Line truncated
`,G8=120093,o6="column",Lf="component_rest_param",NS=70451,CS=70312,jS=69967,W8=70279,OS=66463,DS=92975,V8=70286,Mf="pattern_object_property_computed_key",qf="object_key_string_literal",FS="jsError",Bf="type_args",RS=8304,zR="==",iv=115,Uf="declare_component",LS=120092,MS=43638,qS=66811,BS=43334,US=66863,XS=77823,KR=143,Xf="optional_call",YS=126562,$8=70162,ft=104,zS=66963,fv="await",Q8=70107,W1="0",KS=72250,JS=8507,GS=100351,H8="AssignmentPattern",Yf="type",JR="%u",zf="function_expression_or_method",WS=43470,GR=242,WR="camlinternalMod.ml",Kf="match_or_pattern",VS=72750,$S=69414,QS=65370,Jf="syntax",VR=32752,HS=42963,$R="End_of_file",ZS=12294,xA=8471,QR="elementType",rA=43782,HR="++",eA=43641,tA=71944,nA=126601,uA=78894,iA=-45,cv="null",fA=177,ZR="satisfies",cA=131071,Gf="import_specifier",Wf="class_method",Vf="type_",sA=126514,aA=8454,xL="inexact",oA=67807,vA=8525,lA=65470,pA=71352,$f="tuple_spread_element",rL=219,kA="abstract",mA=73458,Ue="return",v6=65536,Z8=126548,Qf="array_element",hA=-253313196,dA=186,xm="catch",Hf="infer_type",yA=12295,eL="Invalid legacy octal ",gA=69762,wA=43311,_A=65437,Zf="variable_declaration",tL=-696510241,xc="function_params",bA=64316,nL=311,rm=11565,uL="infinity",TA="@]",EA=65908,rc="extends",SA=66204,AA=43784,PA=11742,em=126503,Xe="debugger",IA=70457,Vs=-86,l6=912068366,NA=68786,tm="keyof",nm=69415,CA=12686,un=127343600,ec="declare_type_alias",iL="the",fL=233,tc="jsx_element_name_namespaced",jA=72283,cL=161,nc="function_param_type",Nt=128,OA=-673950933,um=126591,sL="Sys_error",DA=74649,FA=74862,p6="is",RA=43738,LA=68479,MA=196,im=70854,uc="enum_boolean_member",ic="match_expression_case",fm=72163,qA=92783,fc="component_param_name",BA=68863,fn=32768,aL=2048,UA=64284,oL="@{",XA="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",cm=8455,cc="update_expression",vL=276,YA=65500,k6="from",zA=68447,sm=12592,KA=92766,lL=">>=",w1=110,JA=66431,GA=43586,sc="jsx_identifier",WA=" : file already exists",M2=128,VA=71958,$A=66717,ac="enum_boolean_body",QA=64262,Gr="id",oc="component_renders_annotation",HA=42888,ZA=8584,xP=73008,vc="enum_symbol_body",lc="declare_namespace",am=72713,rP=55215,pc="object_property_value_type",kc="for_in_assignment_pattern",om=8485,eP=43395,pL=229,$s="true",tP=43743,mc="enum_number_member",kL=234,nP=72969,mL="expected *",cn=102,hL=200,m6="symbol",sv="source",hc="tparam_const_modifier",uP=43714,dc="jsx_fragment",yc="jsx_attribute_name_identifier",h6="public",iP=43442,gc="pattern_object_property",fP=65786,cP=70783,sP=43713,aP=72160,dL="*-/",wc="export_named_specifier",_c="arrow_function",oP=122623,vm=70006,yL="${",vP=43814,bc="generic_qualified_identifier_type",gL=199,Tc="jsx_spread_child",lm=8489,pm=184,wL=2047,lP=66955,Ec="try_catch",pP=70497,_L=237,kP=67431,mP=125183,bL=-602162310,sn="params",hP="consequent",dP=68029,yP=67829,gP=68095,Sc="enum_string_body",wP=93823,_P=68351,bP=65495,Ac="declare_module",Pc="body_expression",TP=66175,EP=191,km=70441,mm=65141,hm="&",Ic="super_expression",dm=126564,SP=72105,lS0="fs",Ye="throw",AP=68287,PP=67839,av=116,IP=110882,NP=69404,CP=123197,ov=65279,N3="src/parser/type_parser.ml",jP=68115,TL=259,ym=126547,gm=126556,OP=73055,Nc="member_property_expression",Cc="enum_defaulted_member",DP=43071,FP=11726,jc="component_type_rest_param",RP=68607,Oc="object_key",EL=160,V1="variance",LP=70655,MP=70414,C3="super",qP=123583,BP=65594,d6="method",UP=73648,y6=121,XP=93951,Dc="pattern_array_element_pattern",YP=43764,zP=42993,wm=120145,KP=74879,SL=168,_m=8486,JP=72001,Fc="tagged_template",Rc="module_ref_literal",GP=65312,vv="implements",WP=43700,VP=120003,AL="Invalid_argument",Lc=16777215,$P=83526,bm=69744,Tm=12336,Mc="switch_case",PL=-61,qc="optional_member",QP=64274,Em=64322,Sm=126530,HP=71998,Am=72970,ZP=13311,xI=73647,rI=120074,j3="let",Bc="expression_statement",Uc="component_type_params",eI=512,tI=69634,nI=67461,uI=123627,iI=64913,IL="children",NL="PropertyDefinition",CL=1026,jL="%li",Xc="declare_class",fI=43258,Yc="indexed_access_type",cI=124926,Qs=112,sI="b",zc="predicate_expression",Kc="if_alternate_statement",g6="private",OL=-594953737,DL=140,aI="nan",oI=72103,Pm=11735,Jc="statement",vI="rmdir",Im=66512,lI="match",FL=198,pI=11734,Gc="import_named_specifier",kI=69599,mI=68799,hI=194559,Wc="match_array_pattern",RL=174,Vc="function_",$c="bigint_literal",i2=248,Nm=67638,Cm=126539,dI=11557,LL=214,yI=5760,ze="break",an="block",Qc="match_member_pattern",gI=123565,wI=66815,w2="value",ML=1039100673,_I=69746,bI=70448,TI=74751,Hc="init",EI=69551,jm=65548,Zc="jsx_member_expression",Om=68096,Hs=108,Dm=126521,SI=71487,xs="match_statement",AI=178205,PI=12548,qL=" : is a directory",on=".",II=12348,O3=-835925911,$1="typeParameters",NI=66855,u1="typeAnnotation",lv="bigint",rs="jsx_attribute_value_literal",CI=194,BL="T_JSX_TEXT",jI=68466,Fm=126537,UL=67714067,OI=69487,Rm="export",DI=43822,Lm=126499,FI=55242,es="member_type_identifier",XL=138,RI=71679,w6=130,LI=12438,MI=119969,YL=298,Mm=12539,qI=119972,zL=",",BI=71423,UI="index out of bounLine truncated
`,aJ="@.",oJ="@@",vJ="@%",lJ=jO,pJ="%c",kJ="%s",mJ=uF,hJ=jL,dJ=mO,yJ=pF,gJ="%f",wJ="%B",_J="%{",bJ="%}",TJ="%(",EJ="%)",SJ="%a",AJ="%t",PJ="%?",IJ="%r",NJ="%_r",CJ=[0,k1,850,23],jJ=[0,k1,837,26],OJ=[0,k1,847,28],DJ=[0,k1,815,21],FJ=[0,k1,819,21],RJ=[0,k1,823,19],LJ=[0,k1,827,22],MJ=[0,k1,832,30],qJ=[0,k1,851,23],BJ=[0,k1,836,26],UJ=[0,k1,846,28],XJ=[0,k1,814,21],YJ=[0,k1,818,21],zJ=[0,k1,822,19],KJ=[0,k1,826,22],JJ=[0,k1,831,30];function cC(x){return x[2]===5?12:-6}function oq(x){return[0,0,E2(x)]}function vq(x,r){var e=Ot(x[2]),t=x[1]+r|0;if(e<t){var u=e*2|0,i=t<=u?u:t,c=E2(i);HM(x[2],0,c,0,e),x[2]=c}}function H3(x,r){vq(x,1),ra(x[2],x[1],r),x[1]=x[1]+1|0}function L1(x,r){var e=Cx(r);vq(x,e),yn(r,0,x[2],x[1],e),x[1]=x[1]+e|0}function lq(x){return V3(x[2],0,x[1])}function pq(x){if(typeof x=="number")switch(x){case 0:return iJ;case 1:return fJ;case 2:return cJ;case 3:return sJ;case 4:return aJ;case 5:return oJ;default:return vJ}switch(x[0]){case 0:return x[1];case 1:return x[1];default:return Mx(lJ,k5(1,x[1]))}}function sC(x,r){for(var e=r;;){if(typeof e=="number")return;switch(e[0]){case 0:var t=e[1];L1(x,pJ);var e=t;break;case 1:var u=e[1];L1(x,kJ);var e=u;break;case 2:var i=e[1];L1(x,mJ);var e=i;break;case 3:var c=e[1];L1(x,hJ);var e=c;break;case 4:var v=e[1];L1(x,dJ);var e=v;break;case 5:var a=e[1];L1(x,yJ);var e=a;break;case 6:var l=e[1];L1(x,gJ);var e=l;break;case 7:var m=e[1];L1(x,wJ);var e=m;break;case 8:var h=e[2],T=e[1];L1(x,_J),sC(x,T),L1(x,bJ);var e=h;break;case 9:var b=e[3],N=e[1];L1(x,TJ),sC(x,N),L1(x,EJ);var e=b;break;case 10:var C=e[1];L1(x,SJ);var e=C;break;case 11:var I=e[1];L1(x,AJ);var e=I;break;case 12:var F=e[1];L1(x,PJ);var e=F;break;case 13:var M=e[1];L1(x,IJ);var e=M;break;default:var Y=e[1];L1(x,NJ);var e=Y}}}function c1(x){if(typeof x=="number")return 0;switch(x[0]){case 0:return[0,c1(x[1])];case 1:return[1,c1(x[1])];case 2:return[2,c1(x[1])];case 3:return[3,c1(x[1])];case 4:return[4,c1(x[1])];case 5:return[5,c1(x[1])];case 6:return[6,c1(x[1])];case 7:return[7,c1(x[1])];case 8:var r=x[1];return[8,r,c1(x[2])];case 9:var e=x[2],t=x[1];return[9,e,t,c1(x[3])];case 10:return[10,c1(x[1])];case 11:return[11,c1(x[1])];case 12:return[12,c1(x[1])];case 13:return[13,c1(x[1])];default:return[14,c1(x[1])]}}function M1(x){if(typeof x=="number")return[0,function(d0){},function(d0){},function(d0){},function(d0){}];switch(x[0]){case 0:var r=M1(x[1]),e=r[2],t=r[1];return[0,function(d0){t(O)},function(d0){e(O)},r[3],r[4]];case 1:var u=M1(x[1]),i=u[2],c=u[1];return[0,function(d0){c(O)},function(d0){i(O)},u[3],u[4]];case 2:var v=M1(x[1]),a=v[2],l=v[1];return[0,function(d0){l(O)},function(d0){a(O)},v[3],v[4]];case 3:var m=M1(x[1]),h=m[2],T=m[1];return[0,function(d0){T(O)},function(d0){h(O)},m[3],m[4]];case 4:var b=M1(x[1]),N=b[2],C=b[1];return[0,function(d0){C(O)},function(d0){N(O)},b[3],b[4]];case 5:var I=M1(x[1]),F=I[2],M=I[1];return[0,function(d0){M(O)},function(d0){F(O)},I[3],I[4]];case 6:var Y=M1(x[1]),q=Y[2],K=Y[1];return[0,function(d0){K(O)},function(d0){q(O)},Y[3],Y[4]];case 7:var u0=M1(x[1]),Q=u0[2],e0=u0[1];return[0,function(d0){e0(O)},function(d0){Q(O)},u0[3],u0[4]];case 8:var f0=M1(x[2]),a0=f0[2],Z=f0[1];return[0,function(d0){Z(O)},function(d0){a0(O)},f0[3],f0[4]];case 9:var v0=x[2],t0=x[1],y0=M1(x[3]),n0=y0[4],s0=y0[3],l0=y0[2],w0=y0[1],L0=M1(h1(c1(t0),v0)),I0=L0[4],j0=L0[3],S0=L0[2],W0=L0[1];return[0,function(d0){w0(O),W0(O)},function(d0){S0(O),l0(O)},function(d0){s0(O),j0(O)},function(d0){I0(O),n0(O)}];case 10:var A0=M1(x[1]),J0=A0[2],b0=A0[1];return[0,function(d0){b0(O)},function(d0){J0(O)},A0[3],A0[4]];case 11:var z=M1(x[1]),C0=z[2],V0=z[1];return[0,function(d0){V0(O)},function(d0){C0(O)},z[3],z[4]];case 12:var N0=M1(x[1]),rx=N0[2],xx=N0[1];return[0,function(d0){xx(O)},function(d0){rx(O)},N0[3],N0[4]];case 13:var nx=M1(x[1]),mx=nx[4],F0=nx[3],px=nx[2],dx=nx[1];return[0,function(d0){dx(O)},function(d0){px(O)},function(d0){F0(O)},function(d0){mx(O)}];default:var W=M1(x[1]),g0=W[4],B=W[3],h0=W[2],_0=W[1];return[0,function(d0){_0(O)},function(d0){h0(O)},function(d0){B(O)},function(d0){g0(O)}]}}function h1(x,r){x:{r:{e:{t:{n:{u:{i:{if(typeof x!="number"){switch(x[0]){case 0:var e=x[1];if(typeof r!="number")switch(r[0]){case 0:return[0,h1(e,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 1:var t=x[1];if(typeof r!="number")switch(r[0]){case 1:return[1,h1(t,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 2:var u=x[1];if(typeof r!="number")switch(r[0]){case 2:return[2,h1(u,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 3:var i=x[1];if(typeof r!="number")switch(r[0]){case 3:return[3,h1(i,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 4:var c=x[1];if(typeof r!="number")switch(r[0] Line truncated
`];function kC(x,r){var e=x[1+r];if(!(1-(typeof e=="number"?1:0)))return d(sr(bW),e);if(hv(e)===_3)return d(sr(wW),e);if(hv(e)!==hE)return _W;for(var t=RN("%.12g",e),u=0,i=Cx(t);;){if(i<=u)return Mx(t,gW);var c=q2(t,u);x:{if(48<=c){if(58>c)break x}else if(c===45)break x;return t}var u=u+1|0}}function hq(x,r){if(x.length-1<=r)return TW;var e=hq(x,r+1|0),t=kC(x,r);return p(sr(EW),t,e)}function Y6(x){x:{r:{for(var r=M3(pC);r;){e:{var e=r[2],t=r[1];try{var u=d(t,x)}catch{break e}if(u)break r}var r=e}var i=0;break x}var i=[0,u[1]]}if(i)return i[1];if(x===WN)return NW;if(x===qM)return CW;if(x[1]===MM){var c=x[2],v=c[3],a=c[2],l=c[1];return GN(sr(VN),l,a,v,v+5|0,jW)}if(x[1]===Ir){var m=x[2],h=m[3],T=m[2],b=m[1];return GN(sr(VN),b,T,h,h+6|0,OW)}if(x[1]===C6){var N=x[2],C=N[3],I=N[2],F=N[1];return GN(sr(VN),F,I,C,C+6|0,DW)}if(hv(x)===0){var M=x.length-1,Y=x[1][1];if(2<M>>>0)var q=hq(x,2),K=kC(x,1),u0=p(sr(SW),K,q);else switch(M){case 0:var u0=AW;break;case 1:var u0=PW;break;default:var Q=kC(x,1),u0=d(sr(IW),Q)}var e0=[0,Y,[0,u0]]}else var e0=[0,x[1],0];var f0=e0[2],a0=e0[1];return f0?Mx(a0,f0[1]):a0}function mC(x,r){var e=Kz(r),t=e.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var c=P2(e,i)[1+i];let u0=i;var v=function(e0){return e0?u0===0?FW:RW:u0===0?LW:MW};if(c[0]===0){if(c[3]===c[6])var a=c[3],h=d(sr(qW),a);else var l=c[6],m=c[3],h=p(sr(YW),m,l);var T=c[7],b=c[4],N=c[8]?BW:XW,C=c[2],I=c[9],F=v(c[1]),Y=[0,MK(sr(UW),F,I,C,N,h,b,T)]}else if(c[1])var Y=0;else var M=v(0),Y=[0,d(sr(zW),M)];if(Y){var q=Y[1];d(mq(x,KW),q)}var K=i+1|0;if(t===i)break;var i=K}}function hC(x){for(;;){var r=M3(pC),e=1-Gm(pC,r,[0,x,r]);if(!e)return e}}var JW=[0,H0,`(Cannot print locations:
bytecode executable program file not found)`,`(Cannot print locations:
bytecode executable program file appears to be corrupt)`,`(Cannot print locations:
bytecode executable program file has wrong magic number)`,`(Cannot print locations:
bytecode executable program file cannot be opened;
-- too many open files. Try running with OCAMLRUNPARAM=b=2)`].slice(),GW=[0,[11,VE,[2,0,[12,10,0]]],YR],WW=[0],VW="Fatal error: out of memory in uncaught exception handler",$W=[0,[11,VE,[2,0,[12,10,0]]],YR],QW=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],`Fatal error in uncaught exception handler: exception %s
`];KN(qO,function(x,r){try{try{var e=r?WW:wM(0);try{QN(O)}catch{}try{var t=Y6(x);d(lC(GW),t),mC(hn,e);var u=hK(0);if(u<0){var i=v5(u);zM(P2(JW,i)[1+i])}var c=ln(hn),v=c}catch(b){var a=B2(b),l=Y6(x);d(lC($W),l),mC(hn,e);var m=Y6(a);d(lC(QW),m),mC(hn,wM(0));var v=ln(hn)}var h=v}catch(b){var T=B2(b);if(T!==WN)throw K0(T,0);var h=zM(VW)}return h}catch{return 0}});var HW=[i2,"Stdlib.Fun.Finally_raised",ks(0)],ZW="Fun.Finally_raised: ";hC(function(x){return x[1]===HW?[0,Mx(ZW,Y6(x[2]))]:0});var xV="Digest.BLAKE2: wrong hash size";function dC(x){var r=x[1]<1?1:0,e=r||(64<x[1]?1:0);e&&R1(xV)}dC([0,16]),dC([0,32]),dC([0,64]);function dq(x){var r=b1(x);return mK(r,0,Cx(r))}var rV=ct(1,0,0),eV=ct(0,0,0),tV=ct(0,0,0),nV=ct(2,0,0),uV=ct(1,0,0);function yq(x){return Nz(7,0,[0,4])}function gq(x,r,e,t,u){T6(x,0,SM(r,rV)),T6(x,1,e);var i=mv(t,eV)?t:uV;T6(x,2,i);var c=mv(u,tV)?u:nV;T6(x,3,c)}function wq(x,r,e,t){var u=yq(O);return gq(u,x,r,e,t),u}var iV=ct(14371852,15349651,22696),fV=ct(12230193,11438743,35013),cV=ct(1424933,15549263,2083),sV=ct(9492471,4696708,dF);hs([0,function(x){var r=u5(x),e=u5(x),t=u5(x);return wq(r,e,t,u5(x))}],function(x){return wq(sV,cV,fV,iV)});var w5=0,_q=-1,yC=[i2,"Stdlib.Format.String_tag",ks(0)];function z6(x,r){return x[13]=x[13]+r[3]|0,eC(r,x[28])}var bq=1000000010;function aV(x,r){return x<=r?x:r}var oV=[i2,"Stdlib.Queue.Empty",ks(0)],vV=[0,H0,0,H0],lV=H0,pV=H0,kV=H0,mV=H0,hV=[0,H0],dV=Tw;function gC(x,r){return Q0(x[17],r,0,Cx(r))}function _5(x){return d(x[19],0)}function Tq(x,r,e){x[9]=x[9]-r|0,gC(x,e),x[11]=0}function b5(x,r){var e=P(r,H0);return e&&Tq(x,Cx(r),r)}function wv(x,r,e){var t=r[3],u=r[2];return b5(x,r[1]),_5(x),x[11]=1,x[10]=aV(x[8],(x[6]-e|0)+u|0),x[9]=x[6]-x[10]|0,d(x[21],x[10]),b5(x,t)}function Eq(x,r){return wv(x,vV,r)}function xl(x,r){var e=r[2],t=r[3];return b5(x,r[1]),x[9]=x[9]-e|0,d(x[20],e),b5(x,t)}function yV(x,r,e){if(typeof e=="number")switch(e){case 0:var t=Q3(x[3]);if(!t)return;var u=t[1][1],i=function(V0,N0){if(!N0)return[0,V0,0];var rx=N0[1],xx=N0[2];return iK(V0,rx)?[0,V0,N0]:[0,rx,i(V0,xx)]};u[1]=i(x[6]-x[9]|0,u[1]);return;case 1:$3(x[2]);return;case 2:$3(x[3]);return;case 3:var c=Q3(x[2]);return c?Eq(x,c[1][2]):_5(x);case 4:var v=x[10]!==(x[6]-x[9]|0)?1:0;if(!v)return v;var a=x[28],l=a[2];if(l){var m=l[1];if(l[2]){var h=l[2];a[1]=a[1]-1|0,a[2]=h;var T=[0,m]}else{rC(a);var T=[0,m]}}else var T=0;if(!T)return;var b=T[1],N=b[1];x[12]=x[12]-b[3]|0,x[9]=x[9]+N|0;return;default:var C=$3(x[5]);return C?gC(x,d(x[25],C[1])):void 0}switch(e[0]){case 0:return Tq(x,r,e[1]);case 1:var I=e[2],F=e[1],M=I[1],Y=I[2],q=Q3(x[2]);if(!q)return;var K=q[1],u0=K[2];switch(K[1]){case 0:return xl(x,F);case 1:return wv(x,I,u0);case 2:return wv(x,I,u0);case 3:return x[9]<(r+Cx(M)|0)?wv(x,I,u0):xl(x,F);case 4:return x[11]?xl(x,F):x[9]<(r+Cx(M)|0)||((x[6]-u0|0)+Y|0)<x[10]?wv(x,I,u0):xl(x,F);default:return xl(x,F)}case 2:var Q=x[6]-x[9]|0,e0=e[2],f0=e[1],a0=Q3(x[3]);if(!a0)return;var Z=a0[1][1],v0=Z[1];if(v0)for(var t0=Z[1],y0=v0[1];;){if(t0){var n0=t0[1],s0=t0[2];if(Q>n0){var t0=s0;continue}var l0=n0}else var l0=y0;var w0=l0;break}else var w0=Q;var L0=w0-Q|0;return 0<=L0?xl(x,[0,pV,L0+f0|0,lV]):wv(x,[0,mV,w0+e0|0,kV],x[6]);case 3:var I0=e[2],j0=e[1];if(x[8]<(x[6]-x[9]|0)){var S0=Q3(x[2]);if(S0){var W0=S0[1],A0=W0[2],J0=W0[1];x[9]<A0&&3>=J0-1>>>0&&Eq(x,A0)}else _5(x)}var b0=x[9]-j0|0,z=I0===1?1:x[9]<r?I0:5;return yv([0,z,b0],x[2]);case 4:return yv(e[1],x[3]);default:var C0=e[1];return gC(x,d(x[24],C0)),yv(C0,x[5])}}function Sq(x){for(;;){var r=x[28][2],e=r?[0,r[1]]:0;if(!e)return;var t=e[1],u=t[1],i=0<=u?1:0,c=t[3],v=t[2],a=x[13]-x[12]|0,l=i||(x[9]<=a?1:0);if(!l)return l;var m=x[28],h=m[2];if(!h)throw K0(oV,1);if(h[2]){var T=h[2];m[1]=m[1]-1|0,m[2]=T}else rC(m);var b=0<=u?u:bq;yV(x,b,v),x[12]=c+x[12]|0}}function Aq(x,r){return z6(x,r),Sq(x)}function Pq(x,r,e){return Aq(x,[0,r,[0,e],r])}function wC(x){return q6(x),yv([0,-1,[0,_q,hV,0]],x)}function _C(x,r){var e=Q3(x[1]);if(e){var t=e[1],u=t[2],i=u[1];if(t[1]<x[12])return wC(x[1]);var c=u[2];if(typeof c!="number")switch(c[0]){case 3:1-r&&(u[1]=x[13]+i|0,$3(x[1]));return;case 1:case 2:r&&(u[1]=x[13]+i|0,$3(x[1]));return}}}function Iq(x,r,e){return z6(x,e),r&&_C(x,1),yv([0,x[13],e],x[1])}function Nq(x,r,e){if(x[14]=x[14]+1|0,x[14]<x[15])return Iq(x,0,[0,-x[13]|0,[3,r,e],0]);var t=x[14]===x[15]?1:0;if(!t)return t;var u=x[16];return Pq(x,Cx(u),u)}function Cq(x,r){1<x[14]&&(x[14]<x[15]&&(z6(x,[0,w5,1,0]),_C(x,1),_C(x,0)),x[14]=x[14]-1|0)}function jq(x,r){if(x[23]&&z6(x,[0,w5,5,0]),x[22]){var e=$3(x[4]);if(e)return d(x[27],e[1])}}function Oq(x,r){for(T1(function(e){return jq(x,O)},x[4][1]);!(1>=x[14]);)Cq(x,O);return x[13]=bq,Sq(x),r&&_5(x),x[12]=1,x[13]=1,rC(x[28]),wC(x[1]),q6(x[2]),q6(x[3]),q6(x[4]),q6(x[5]),x[10]=0,x[14]=0,x[9]=x[6],Nq(x,0,3)}function bC(x,r,e){var t=x[14]<x[15]?1:0;return t&&Pq(x,r,e)}function Dq(x,r,e){return bC(x,r,e)}function K6(x,r){return Dq(x,1,k5(1,r))}function _v(x,r){return Oq(x,0),d(x[18],0)}function TC(x,r){return Line truncated
`,Ut0=Tw,Xt0="unreachable regexp_class",Yt0=WO,zt0="unreachable regexp_body",Kt0=H0,Jt0=H0,Gt0=H0,Wt0=H0,Vt0=SD,$t0="{'>'}",Qt0=n6,Ht0="{'}'}",Zt0=g8,xn0=Ua,rn0=Vb,en0=hm,tn0=SD,nn0=Ua,un0=Vb,in0=hm,fn0="unreachable type_token wholenumber",cn0="unreachable type_token wholebigint",sn0="unreachable type_token floatbigint",an0="unreachable type_token scinumber",on0="unreachable type_token scibigint",vn0="unreachable type_token hexnumber",ln0="unreachable type_token hexbigint",pn0="unreachable type_token legacyoctnumber",kn0="unreachable type_token octnumber",mn0="unreachable type_token octbigint",hn0="unreachable type_token binnumber",dn0="unreachable type_token bigbigint",yn0="unreachable type_token",gn0=mL,wn0=[11,1],_n0=[11,0],bn0="unreachable template_tail",Tn0=H0,En0=H0,Sn0="unreachable jsx_child",An0="unreachable jsx_tag",Pn0=[0,ID],In0=[0,913],Nn0=[0,v3],Cn0=[0,CI],jn0=[0,hD],On0=[0,FL],Dn0=[0,8747],Fn0=[0,DO],Rn0=[0,916],Ln0=[0,8225],Mn0=[0,935],qn0=[0,gL],Bn0=[0,914],Un0=[0,MA],Xn0=[0,DF],Yn0=[0,mR],zn0=[0,915],Kn0=[0,RO],Jn0=[0,919],Gn0=[0,917],Wn0=[0,hL],Vn0=[0,eD],$n0=[0,eF],Qn0=[0,924],Hn0=[0,923],Zn0=[0,922],x70=[0,yF],r70=[0,921],e70=[0,AT],t70=[0,kk],n70=[0,fF],u70=[0,wd],i70=[0,927],f70=[0,937],c70=[0,nD],s70=[0,nF],a70=[0,pD],o70=[0,338],v70=[0,352],l70=[0,929],p70=[0,936],k70=[0,8243],m70=[0,928],h70=[0,934],d70=[0,LL],y70=[0,tD],g70=[0,933],w70=[0,hR],_70=[0,rL],b70=[0,dO],T70=[0,920],E70=[0,932],S70=[0,zO],A70=[0,PD],P70=[0,$F],I70=[0,xF],N70=[0,918],C70=[0,376],j70=[0,QF],O70=[0,926],D70=[0,K_],F70=[0,LR],R70=[0,925],L70=[0,39],M70=[0,8736],q70=[0,8743],B70=[0,38],U70=[0,945],X70=[0,8501],Y70=[0,qo],z70=[0,8226],K70=[0,rD],J70=[0,946],G70=[0,8222],W70=[0,KO],V70=[0,SR],$70=[0,8776],Q70=[0,pL],H70=[0,8773],Z70=[0,9827],xu0=[0,UO],ru0=[0,967],eu0=[0,UR],tu0=[0,pm],nu0=[0,BO],uu0=[0,KF],iu0=[0,8595],fu0=[0,8224],cu0=[0,8659],su0=[0,dD],au0=[0,8746],ou0=[0,8629],vu0=[0,Rg],lu0=[0,8745],pu0=[0,8195],ku0=[0,8709],mu0=[0,hO],hu0=[0,kL],du0=[0,fL],yu0=[0,ip],gu0=[0,9830],wu0=[0,8707],_u0=[0,8364],bu0=[0,IR],Tu0=[0,b3],Eu0=[0,951],Su0=[0,8801],Au0=[0,949],Pu0=[0,8194],Iu0=[0,8805],Nu0=[0,947],Cu0=[0,8260],ju0=[0,ZT],Ou0=[0,J9],Du0=[0,M8],Fu0=[0,8704],Ru0=[0,zF],Lu0=[0,_L],Mu0=[0,8230],qu0=[0,9829],Bu0=[0,8596],Uu0=[0,8660],Xu0=[0,62],Yu0=[0,402],zu0=[0,948],Ku0=[0,vF],Ju0=[0,Uy],Gu0=[0,8712],Wu0=[0,EP],Vu0=[0,953],$u0=[0,8734],Qu0=[0,8465],Hu0=[0,jR],Zu0=[0,8220],xi0=[0,8968],ri0=[0,8592],ei0=[0,Kw],ti0=[0,10216],ni0=[0,955],ui0=[0,8656],ii0=[0,954],fi0=[0,60],ci0=[0,8216],si0=[0,8249],ai0=[0,FR],oi0=[0,9674],vi0=[0,8727],li0=[0,8970],pi0=[0,EL],ki0=[0,8711],mi0=[0,956],hi0=[0,8722],di0=[0,Q9],yi0=[0,N8],gi0=[0,8212],wi0=[0,qD],_i0=[0,8804],bi0=[0,957],Ti0=[0,bF],Ei0=[0,8836],Si0=[0,8713],Ai0=[0,rF],Pi0=[0,8715],Ii0=[0,8800],Ni0=[0,8853],Ci0=[0,959],ji0=[0,969],Oi0=[0,8254],Di0=[0,GR],Fi0=[0,339],Ri0=[0,Go],Li0=[0,XR],Mi0=[0,Ey],qi0=[0,I3],Bi0=[0,8855],Ui0=[0,eE],Xi0=[0,i2],Yi0=[0,dA],zi0=[0,J4],Ki0=[0,lr],Ji0=[0,fA],Gi0=[0,982],Wi0=[0,960],Vi0=[0,966],$i0=[0,8869],Qi0=[0,8240],Hi0=[0,8706],Zi0=[0,8744],xf0=[0,8211],rf0=[0,10217],ef0=[0,8730],tf0=[0,8658],nf0=[0,34],uf0=[0,968],if0=[0,8733],ff0=[0,8719],cf0=[0,961],sf0=[0,8971],af0=[0,RL],of0=[0,8476],vf0=[0,8221],lf0=[0,8969],pf0=[0,8594],kf0=[0,sg],mf0=[0,AR],hf0=[0,gF],df0=[0,8901],yf0=[0,353],gf0=[0,8218],wf0=[0,8217],_f0=[0,8250],bf0=[0,8835],Tf0=[0,8721],Ef0=[0,8838],Sf0=[0,8834],Af0=[0,9824],Pf0=[0,8764],If0=[0,962],Nf0=[0,963],Cf0=[0,8207],jf0=[0,952],Of0=[0,8756],Df0=[0,964],Ff0=[0,dk],Rf0=[0,8839],Lf0=[0,GL],Mf0=[0,gD],qf0=[0,R3],Bf0=[0,8657],Uf0=[0,8482],Xf0=[0,Eg],Yf0=[0,732],zf0=[0,g3],Kf0=[0,8201],Jf0=[0,977],Gf0=[0,oR],Wf0=[0,_3],Vf0=[0,965],$f0=[0,978],Qf0=[0,SL],Hf0=[0,QE],Zf0=[0,WL],xc0=[0,lD],rc0=[0,8205],ec0=[0,950],tc0=[0,xk],nc0=[0,EF],uc0=[0,hE],ic0=[0,958],fc0=[0,8593],cc0=[0,Ed],sc0=[0,8242],ac0=[0,cL],oc0="unreachable regexp",vc0="unreachable token wholenumber",lc0="unreachable token wholebigint",pc0="unreachable token floatbigint",kc0="unreachable token scinumber",mc0="unreachable token scibigint",hc0="unreachable token hexnumber",dc0="unreachable token hexbigint",yc0="unreachable token legacyoctnumber",gc0="unreachable token legacynonoctnumber",wc0="unreachable token octnumber",_c0="unreachable token octbigint",bc0="unreachable token bignumber",Tc0="unreachable token bigint",Ec0="unreachable token",Sc0=mL,Ac0=[7,"#!"],Pc0="expected ?",Ic0="unreachable string_escape",Nc0=W1,Cc0=Hl,jc0=Hl,Oc0=W1,Dc0=sI,Fc0=CF,Rc0="n",Lc0="r",Mc0="t",qc0=GF,Bc0=Hl,Uc0=Ua,Xc0=Ua,Yc0="unreachable id_char",zc0=Ua,Kc0=Ua,Jc0=Hl,Gc0=eL,Wc0=bO,Vc0=B_,$c0=[26,"token ILLEGAL"],Qc0=[0,[11,"the identifier `",[2,0,[12,96,0]]],"the identifier `%s`"],Hc0=[0,1],Zc0=[0,1],xs0=MF,rs0=MF,es0=[0,[11,"an identifier. When exporting a ",[2,0,[11," as a named export, you must specify a ",[2,0,[11," name. Did you mean `export default ",[2,0,[11," ...`?",0]]]]]]],"an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `exp Line truncated
\v\x07\f\r\x1B  ! "#$%                                                                                                                                                                                            Line truncated
\v\f\r\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x1B\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07 \x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07Line truncated
\v\f\r\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\xLine truncated
\v\f\r`,t+1|0)-1|0;if(14<u>>>0)var i=w(r);else switch(u){case 0:var i=0;break;case 1:var i=16;break;case 2:var i=15;break;case 3:V(r,15);var i=Pe(y(r))===0?15:w(r);break;case 4:V(r,4);var i=Z1(y(r))===0?e(r):w(r);break;case 5:V(r,11);var i=Z1(y(r))===0?e(r):w(r);break;case 6:var i=0;break;case 7:var i=5;break;case 8:var i=6;break;case 9:var i=7;break;case 10:var i=8;break;case 11:var i=9;break;case 12:V(r,14);var c=Sv(y(r));if(c===0)var i=br(y(r))===0&&br(y(r))===0&&br(y(r))===0?12:w(r);else if(c===1&&br(y(r))===0){for(;;){var v=Ev(y(r));if(v!==0)break}var i=v===1?13:w(r)}else var i=w(r);break;case 13:var i=10;break;default:V(r,14);var i=br(y(r))===0&&br(y(r))===0?1:w(r)}if(16<i>>>0)return bx(Ic0);switch(i){case 0:var a=Ox(r);return[0,x,a,l2(r),0];case 1:var l=Ox(r);return[0,x,l,[0,st(Mx(Nc0,l))],0];case 2:var m=Ox(r),h=st(Mx(Cc0,m));return e6<=h?[0,x,m,[0,h>>>3|0,48+(h&7)|0],1]:[0,x,m,[0,h],1];case 3:var T=Ox(r);return[0,x,T,[0,st(Mx(jc0,T))],1];case 4:return[0,x,Oc0,[0,0],0];case 5:return[0,x,Dc0,[0,8],0];case 6:return[0,x,Fc0,[0,12],0];case 7:return[0,x,Rc0,[0,10],0];case 8:return[0,x,Lc0,[0,13],0];case 9:return[0,x,Mc0,[0,9],0];case 10:return[0,x,qc0,[0,11],0];case 11:var b=Ox(r);return[0,x,b,[0,st(Mx(Bc0,b))],1];case 12:var N=Ox(r);return[0,x,N,[0,st(Mx(Uc0,E1(N,1,Cx(N)-1|0)))],0];case 13:var C=Ox(r),I=st(Mx(Xc0,E1(C,2,Cx(C)-3|0))),F=tk<I?lt(x,zr(x,r)):x;return[0,F,C,[0,I],0];case 14:var M=Ox(r),Y=l2(r);return[0,lt(x,zr(x,r)),M,Y,0];case 15:var q=Ox(r);return[0,xe(x,r),q,[0],0];default:var K=Ox(r);return[0,x,K,l2(r),0]}}function sU(x,r,e,t,u,i){for(var c=x,v=u;;){or(i);var a=y(i),l=92<a?1:Y0("",a+1|0)-1|0;if(4<l>>>0)var m=w(i);else switch(l){case 0:var m=3;break;case 1:for(;;){V(i,4);var h=y(i),T=-1<h?91<h?92<h?0:-1:Y0("\0\0\0",h)-1|0:-1;if(T!==0)break}var m=w(i);break;case 2:var m=2;break;case 3:var m=0;break;default:var m=1}if(4<m>>>0)return bx(Lt0);switch(m){case 0:var b=Ox(i);if(ir(t,b),_r(r,b))return[0,c,Ie(c,i),v];ir(e,b);break;case 1:ir(t,Mt0);var N=cU(c,i),C=N[4],I=N[3],F=N[2],M=N[1],Y=C||v;ir(t,F),nq(function(y0){return ds(e,y0)},I);var c=M,v=Y;break;case 2:var q=Ox(i);ir(t,q);var K=xe(lt(c,zr(c,i)),i);return ir(e,q),[0,K,Ie(K,i),v];case 3:var u0=Ox(i);ir(t,u0);var Q=lt(c,zr(c,i));return ir(e,u0),[0,Q,Ie(Q,i),v];default:var e0=i[6],f0=i[3]-e0|0,a0=E2(f0*4|0),Z=G6(i[1],e0,f0,a0);uC(t,a0,0,Z),uC(e,a0,0,Z)}}}function aU(x,r,e,t){for(var u=x;;){or(t);var i=y(t),c=96<i?1:Y0("\x07",i+1|0)-1|0;if(6<c>>>0)var v=w(t);else switch(c){case 0:var v=0;break;case 1:for(;;){V(t,6);var a=y(t),l=-1<a?95<a?96<a?0:-1:Y0("\0\0\0\0",a)-1|0:-1;if(l!==0)break}var v=w(t);break;case 2:var v=5;break;case 3:V(t,5);var v=Pe(y(t))===0?4:w(t);break;case 4:V(t,6);var m=y(t),h=c2<m?en<m?-1:0:-1,v=h===0?2:w(t);break;case 5:var v=3;break;default:var v=1}if(6<v>>>0)return bx(qt0);switch(v){case 0:return[0,lt(u,zr(u,t)),1];case 1:return[0,u,1];case 2:return[0,u,0];case 3:at(e,92);var T=cU(u,t),b=T[3],N=T[1];ir(e,T[2]),nq(function(F){return ds(r,F)},b);var u=N;break;case 4:ir(e,Bt0),ir(r,Ut0);var u=xe(u,t);break;case 5:ir(e,Ox(t)),at(r,10);var u=xe(u,t);break;default:var C=Ox(t);ir(e,C),ir(r,C)}}}function zb0(x,r,e){for(var t=x;;){or(e);var u=y(e),i=92<u?t1<u?1:l1<u?2:1:Y0("\x07",u+1|0)-1|0;if(6<i>>>0)var c=w(e);else switch(i){case 0:var c=0;break;case 1:for(;;){V(e,7);var v=y(e),a=-1<v?90<v?92<v?l1<v?t1<v?0:-1:0:-1:Y0("\0\0\0",v)-1|0:-1;if(a!==0)break}var c=w(e);break;case 2:var c=6;break;case 3:V(e,6);var c=Pe(y(e))===0?6:w(e);break;case 4:if(V(e,4),LB(y(e))===0){for(;V(e,3),LB(y(e))===0;);var c=w(e)}else var c=w(e);break;case 5:var c=5;break;default:V(e,7);var l=y(e),m=-1<l?13<l?t1<l?0:l1<l?1:0:Y0("",l)-1|0:-1;if(2<m>>>0)var c=w(e);else switch(m){case 0:var c=2;break;case 1:var c=1;break;default:V(e,1);var c=Pe(y(e))===0?1:w(e)}}if(7<c>>>0)return bx(zt0);switch(c){case 0:return[0,I1(t,zr(t,e),w1),Kt0];case 1:return[0,xe(I1(t,zr(t,e),w1),e),Jt0];case 2:ir(r,Ox(e));break;case 3:var h=Ox(e);return[0,t,E1(h,1,Cx(h)-1|0)];case 4:return[0,t,Gt0];case 5:at(r,91);x:{r:{e:{t:{n:for(;;){or(e);var T=y(e),b=93<T?t1<T?1:l1<T?2:1:Y0("",T+1|0)-1|0;if(5<b>>>0)var N=w(e);else switch(b){case 0:var N=0;break;case 1:for(;;){V(e,5);var C=y(e),I=-1<C?91<C?93<C?l1<C?t1<C?0:-1:0:-1:Y0("\0\0",C)-1|0:-1;if(I Line truncated
`);return ox.length>1&&ox.every($x=>$x.trimStart()[0]==="*")}var sO=zE0;function KE0(o0){return F4(o0)&&o0.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(o0.value)}var fz=KE0;var R4=null;function L4(o0){if(R4!==null&&typeof R4.property){let ox=R4;return R4=L4.prototype=null,ox}return R4=L4.prototype=o0??Object.create(null),new L4}var JE0=10;for(let o0=0;o0<=JE0;o0++)L4();function aO(o0){return L4(o0)}function GE0(o0,ox="type"){aO(o0);function $x(Ar){let lr=Ar[ox],Pr=o0[lr];if(!Array.isArray(Pr))throw Object.assign(new Error(`Missing visitor keys for '${lr}'.`),{node:Ar});return Pr}return $x}var cz=GE0;var sz={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPre Line truncated
`;o0=ql(!1,o0.replace(HE0,"").replace(QE0,""),eS0,"$1");let $x="";for(;$x!==o0;)$x=o0,o0=ql(!1,o0,rS0,`${ox}$1 $2${ox}`);o0=o0.replace(lz,"").trimEnd();let Ar=Object.create(null),lr=ql(!1,o0,pz,"").replace(lz,"").trimEnd(),Pr;for(;Pr=pz.exec(o0);){let L2=ql(!1,Pr[2],xS0,"");if(typeof Ar[Pr[1]]=="string"||Array.isArray(Ar[Pr[1]])){let ie=Ar[Pr[1]];Ar[Pr[1]]=[...tS0,...Array.isArray(ie)?ie:[ie],L2]}else Ar[Pr[1]]=L2}return{comments:lr,pragmas:Ar}}function nS0(o0){if(!o0.startsWith("#!"))return"";let ox=o0.indexOf(`
`);return ox===-1?o0:o0.slice(0,ox)}var hz=nS0;function uS0(o0){let ox=hz(o0);ox&&(o0=o0.slice(ox.length+1));let $x=kz(o0),{pragmas:Ar,comments:lr}=mz($x);return{shebang:ox,text:o0,pragmas:Ar,comments:lr}}function dz(o0){let{pragmas:ox}=uS0(o0);return Object.prototype.hasOwnProperty.call(ox,"prettier")||Object.prototype.hasOwnProperty.call(ox,"format")}function iS0(o0){return o0=typeof o0=="function"?{parse:o0}:o0,{astFormat:"estree",hasPragma:dz,locStart:Zt,locEnd:Da,...o0}}var yz=iS0;function fS0(o0){return o0.charAt(0)==="#"&&o0.charAt(1)==="!"?"//"+o0.slice(2):o0}var gz=fS0;var cS0={comments:!1,components:!0,enums:!0,esproposal_decorators:!0,esproposal_export_star_as:!0,tokens:!0};function sS0(o0){let{message:ox,loc:{start:$x,end:Ar}}=o0;return nz(ox,{loc:{start:{line:$x.line,column:$x.column+1},end:{line:Ar.line,column:Ar.column+1}},cause:o0})}function aS0(o0){let ox=wz.default.parse(gz(o0),cS0),[$x]=ox.errors;if($x)throw sS0($x);return vz(ox,{text:o0})}var oS0=yz(aS0);return ME0(vS0);});
+19
View File
@@ -0,0 +1,19 @@
var CE0=Object.create;var iO=Object.defineProperty;var jE0=Object.getOwnPropertyDescriptor;var OE0=Object.getOwnPropertyNames;var DE0=Object.getPrototypeOf,FE0=Object.prototype.hasOwnProperty;var RE0=(o0,ox)=>()=>(ox||o0((ox={exports:{}}).exports,ox),ox.exports),ez=(o0,ox)=>{for(var $x in ox)iO(o0,$x,{get:ox[$x],enumerable:!0})},LE0=(o0,ox,$x,Ar)=>{if(ox&&typeof ox=="object"||typeof ox=="function")for(let lr of OE0(ox))!FE0.call(o0,lr)&&lr!==$x&&iO(o0,lr,{get:()=>ox[lr],enumerable:!(Ar=jE0(ox,lr))||Ar.enumerable});return o0};var ME0=(o0,ox,$x)=>($x=o0!=null?CE0(DE0(o0)):{},LE0(ox||!o0||!o0.__esModule?iO($x,"default",{value:o0,enumerable:!0}):$x,o0));var tz=RE0(fO=>{(function(o0){typeof globalThis!="object"&&(this?ox():(o0.defineProperty(o0.prototype,"_T_",{configurable:!0,get:ox}),_T_));function ox(){var $x=this||self;$x.globalThis=$x,delete o0.prototype._T_}})(Object);(function(o0){"use strict";var ox="loc",$x=70416,Ar=69748,lr=163,Pr=92159,L2=43587,ie="labeled_statement",kO="&=",Bs="int_of_string",ad=110591,od=92909,M4=11559,mO="regexp",vd=43301,q4=11703,ld=122654,Us=255,hO="%ni",pd=68252,dO=232,kd=42785,Dn="declare_variable",B4="while",md=66938,hd=70301,dd=124907,U4=126515,yO=218,Fn="pattern_identifier",yd=67643,Rn="export_source",gd=216,wd=64279,gO="Out_of_memory",_d=113788,wO="comments",bd=126624,_O="win32",Ln="object_key_bigint_literal",Td=185,X4=123214,Mo="constructor",Ed=69955,Mn="import_declaration",Sd=68437,Ad="Failure",Y4="Unix.Unix_error",Pd=64255,Id=42539,Nd=110579,qn="export_default_declaration",Bn="jsx_attribute_name",z4=11727,Cd=43002,K4=126500,Un="component_param_pattern",bO="collect_comments_opt",Xn="match_unary_pattern",Yn="keyof_type",TO="Invalid binary/octal ",EO="range",J4=170,Xs="false",jd=43798,SO=", characters ",zn="object_type_property_getter",Od=65547,Dd=126467,Fd=65007,AO="guard",Rd=42237,Ld=8318,Md=71215,Kn="object_property_type",Jn="type_alias",qd=67742,Gn="function_body",PO=304,Bd=68111,G4=120745,Ud=71959,W4=43880,IO="Match_failure",NO=280,Wn="type_cast",Vn=109,Ys="void",Xd="generator",Yd=125124,zd=101589,V4=94179,CO=">>>",$4=70404,$n="optional_indexed_access_type",jO=310,g1="argument",Qn="object_property",Hn="object_type_property",Kd=67004,Jd=42783,Gd=68850,OO="@",Wd=43741,Vd=43487,Q4="object",DO="end",H4=126571,$d=71956,FO=208,Qd=126566,Hd=67702,RO="EEXIST",Zn="this_expression",LO=203,Zd=11507,xy=113807,Z4=119893,ry=42735,Bl="rest",x7="null_literal",Ul="protected",ey=43615,l1=8231,ty=68149,ny=73727,uy=72348,iy=92995,qo=224,fy=11686,cy=43013,r7="assignment_pattern",sy=12329,e7="function_type",v3=192,t7="jsx_element_name",ay=70018,n7="catch_clause_pattern",xp=126540,u7="template_literal",oy=120654,vy=68497,ly=67679,i7="readonly_type",py=68735,ky="<",rp=": No such file or directory",my=66915,MO="!",f7="object_type",hy=43712,ep=64297,dy=183969,yy=43503,gy=67591,Bo=65278,wy=67669,c7="for_of_assignment_pattern",Xl="`",_y=11502,s7="catch_body",by=42191,Fa=-744106340,Ty=182,Uo=":",qO="a string",Ey=65663,Sy=66978,Ay=71947,tp=43519,Py=71086,Iy=125258,Ny=12538,a7="expression_or_spread",BO="Printexc.handle_uncaught_exception",np=69956,up=120122,ip=247,UO=231,Cy=" : flags Open_rdonly and Open_wronly are not compatible",o7="statement_fork_point",XO=710,YO=-692038429,Re="static",jy=55203,Oy=64324,Dy=64111,zO="!==",Fy=120132,Ry=124903,Yl="class",KO=222,v7="pattern_number_literal",zs="kind",Ly=71903,l7="variable_declarator",p7="typeof_expression",My=126627,qy=70084,JO=228,fp=70480,k7="class_private_field",By=239,cp=120713,xn=65535,m7="private_name",Uy=43137,h7="remote_identifier",Xy=70161,d7="label_identifier",Yy="src/parser/statement_parser.ml",zy=8335,Ky=19903,Jy=64310,Xo="_",y7="for_init_declaration",GO="infer",Gy=64466,Wy=43018,WO="tokens",Vy=92735,$y=66954,Qy=65473,Hy=70285,g7="sequence",Zy="compare: functional value",x9=69890,zl=1e3,r9=65487,e9=42653,VO="\\\\",$O="%=",w7="match_member_pattern_base",t9=72367,_7="function_rest_param",QO="/static/",n9=124911,u9=65276,sp=126558,i9=11498,HO=137,b7="export_default_declaration_decl",f9="cases",ap=126602,T7="jsx_child",Le="continue",c9=42962,ZO="importKind",c2=122,l3="Literal",E7="pattern_object_property_identifier_key",s9=42508,Ra="in",a9=55238,o9=67071,v9=70831,l9=72161,p9=67462,xD="<<=",k9=43009,m9=66383,op=67827,h9=72202,d9=69839,y9=66775,rD="-=",Yo=8202,g9=70105,w9=120538,S7="for_in_left_declaration",_9="rendersType",vp=126563,b9=70708,lp=126523,eD=166,tD=202,T9=110951,Ks="component",pp=126552,E9=66977,nD=213,A7="enum_member_identifier",uD=210,P7="enum_bigint_body",iD=">=",S9=126495,A9="specifiers",fD=-88,P9="=",I9=65338,Kl="members",N9=123535,C9=43702,j9=72767,zo="get",O9=126633,kp=126536,D9=94098,F9="types",cD=273,R9=113663,sD="Internal Error: Found private field in object props",I7="jsx_element",L9=70366,M9=110959,mp=120655,aD="trailingComments",oD=282,La=24029,q9=-100,z1="yield",N7="binding_pattern",C7="typeof_identifier",vD="ENOTEMPTY",B9=-104,hp=126468,U9=1255,X9=120628,j7="pattern_object_property_string_literal_key",Y9=8521,lD="leLine truncated
`,YD="**=",iu="pattern_object_property_pattern",Tw="e",Ew=72712,zD="Internal Error: Found object private prop",Sw="ENOENT",Aw=-42,fu="jsx_opening_attribute",Pw=67646,cu="component_type",Iw=64296,Nw=43887,KD="Division_by_zero",JD="EnumDefaultedMember",su="typeof_member_identifier",Cw=43792,au="match_member_pattern_property",ou="declare_export_declaration_decl",jw=93026,vu="type_annotation_hint",Ow=42887,Dw=43881,Fw=43761,Hp=8526,GD=158,WD=287,h3=119,Rw=43866,Lw=72847,Mw=8348,se=101,qw=94026,Zp=72272,VD="src/parser/flow_lexer.ml",Bw=120744,Vo=8191,d3="implies",xk=255,rk=11711,lu="match_unary_pattern_argument",Uw=71235,$D=288,ek=68116,y2=100,pu="match_expression",ku="enum_body",tk=1114111,mu="assignment",Xw=71955,nk=43260,hu="pattern_array_e",Yw=126583,QD="prefix",du="class_body",uk="shorthand",zw=171,Kw=66256,ik=-97,HD=" =",Jw=94032,Gw=42606,Ww=71839,fk=120134,Vw=55291,$w=92862,Qw=43019,Hw=126543,y3="function",Zw=111355,x_=11389,r_=70753,e_=43249,t_=64829,ck="line",yu="function_declaration",sk="undefined",ZD="([^/]+)",n_=110947,u_=70002,xF="Cygwin",gu="as_expression",i_=12591,ak=64285,f_=2048,c_=73112,ok=126589,rF=225,vk=43259,s_=72817,lk=64318,eF=172,tF=209,wu="match_binding_pattern",_u=" ",bu="import_source",Vl="delete",nF="Enum `",pk=126553,a_=67001,$o="default",o_=11630,kk=206,Tu="enum_bigint_member",v_=67504,mk=67593,l_=113791,p_=69572,Eu="typeof_type",uF=212,iF="%i",Su="function_this_param",k_=72329,Ua="0x",Qo=8239,m_=75075,fF=57343,Au="pattern_bigint_literal",h_=12341,cF=201,Ho="hook",sF=": closedir failed",d_=42959,hk=119970,aF=278,y_=43560,oF="||=",Pu="member_private_name",g_=120570,Iu="object_key_identifier",dk=223,vF="Not_found",lF=230,Nu="jsx_element_name_member_expression",Cu="string_literal",w_=120596,__=43807,b_=69687,T_=63743,yk=72192,ju="member_property",E_=43262,Ou="class_declaration",pF="renders*",kF="%Li",S_=126578,Du="jsx_attribute",g3=254,Ee="empty",$l="label",Fu="object_internal_slot_property_type",gk=120133,A_=43359,Me="predicate",mF="??=",P_=43697,I_=-43,Ru="default_opt",hF="the start of a statement",N_=67826,Lu="object_",Mu="class_element",wk=11631,_k=70855,qu="opaque_type",Bu="number_literal",dF=", ",bk=8319,Tk=120004,Ek=133,Uu="type_params",Xu="pattern_object_rest_property",K1="import",C_=72e3,j_=67413,O_=12343,D_=70080,Yu="intersection_type",p1=-36,F_=70005,Sk="properties",R_=11679,L_=8483,M_=110587,yF=43520,zu="computed_key",gF=207,Ku="class_identifier",q_="Invalid number ",Ju="function_param_pattern",Zo=12288,B_=113817,U_=70730,X_=178207,Ak=71236,wF=167,Gu="object_indexer_property_type",Y_=64286,_F="TypeAnnotation",z_=220,Wu="type_identifier",Vu="spread_property",$u="jsx_attribute_value_expression",K_=126519,Pk=70108,Ik=126,Nk=42999,Xa="prototype",J_=" : flags Open_text and Open_binary are not compatible",bF="**",Ck=43823,G_=": Not a directory",Qu="render_type",jk=72349,w3="test",W_=43776,V_=92879,$_=11263,TF=241,Q_=93052,Hu="nullable_type",H_=43704,Z_=64321,EF="Property",xb=72191,SF=165,Ql="instanceof",rb=69247,qe="name",Ok=126634,eb=8516,Dk="typeArguments",tb=71127,Zu="jsx_spread_attribute",nb=66559,ub=44031,ib=43645,t1=8233,fb=71494,cb="opaque",Fk=72967,sb=70106,xi="logical",AF="@[%s =@ ",Hl="0o",Rk=126554,ab=71351,Lk=8484,ob=72242,Mk=120687,_3=252,vb=183983,Zl="%S",ri="function_this_param_type",PF=292,qk="decorators",lb=43255,ei="catch_clause",Be="-",pb=67711,IF=": file descriptor already closed",Bk=64311,Uk=120539,kb="arguments",Xk=73062,mb=173823,hb=42124,db=72095,yb=125259,gb=42969,Yk=70280,NF=12520,wb=69749,_b=70066,ti="binary",ni="for_in_statement",bb=43010,CF="^=",Tb=126570,ui="for_statement",zk=126584,ii="function_return_annotation",Eb=72144,Sb=8505,fi="class_expression",Ab=120076,Pb=69807,Ib=40981,Nb=-24976191,Cb=72768,jb=126550,Kk='"',ci="call_type_arg",jF="f",xv="this",Jk=126628,OF="===",DF=56320,si="declare_module_exports",Ob=120512,Pt=105,Db=119974,Fb=71450,Rb=71942,FF=195,Gk=120629,RF="/=",LF=">>",ai="declare_interface",MF=4096,oi="pattern_array_rest_element",Lb=71338,Wk=126520,vi="as_const_expression",qF="Popping lex mode from empty stack",BF="renders?",Mb=68405,li="member",pi="class_extends",rv=12287,Vk=126590,qb=66377,Ya="async",ki="pattern_array_element",b3=240,UF=308,Bb=69864,ev="readonly",Ub=70460,Xb=120779,Yb=66378,mi="new_",$k=126551,hi="pattern_object_rest_property_pattern",di="for_statement_init",zb=43595,Qk=68296,Kb=120712,Jb=64217,Gb=69295,XF="||",Wb=";",Vb=70461,$b=66939,YF="collect_comments",Hk=279,yi="generic_type",Qb=68295,Hb=44002,Zk=72162,gi="object_call_property_type",x8=8305,r8=119995,e8="with",wi="class_property",zF="qualification",_i="jsx_attribute_name_namespaced",bi="if_statement",Ti="typeof_qualified_identifier",KF=238,Zb=65615,JF=176,n1="expression",t8=126559,Ei="jsx_attribute_value",Si="<2>",Ai="component_param",n8="Map.bal",u8=132,xT=70412,rT=70440,GF="<<",i8="finally",WF="v",Pi="syntax_opt",Ii="meta_property",eT=12447,tT=67514,VF=260,f8=12448,Ni="object_mapped_type_property",tv="operator",$F="closedir",Ci="unary_expression",nT=12658Line truncated
`,G8=120093,o6="column",Lf="component_rest_param",IS=70451,NS=70312,CS=69967,W8=70279,jS=66463,OS=92975,V8=70286,Mf="pattern_object_property_computed_key",qf="object_key_string_literal",DS="jsError",Bf="type_args",FS=8304,KR="==",iv=115,Uf="declare_component",RS=120092,LS=43638,MS=66811,qS=43334,BS=66863,US=77823,JR=143,Xf="optional_call",XS=126562,$8=70162,ft=104,YS=66963,fv="await",Q8=70107,W1="0",zS=72250,KS=8507,JS=100351,H8="AssignmentPattern",Yf="type",GR="%u",zf="function_expression_or_method",GS=43470,WR=242,VR="camlinternalMod.ml",Kf="match_or_pattern",WS=72750,VS=69414,$S=65370,Jf="syntax",$R=32752,QS=42963,QR="End_of_file",HS=12294,ZS=8471,HR="elementType",xA=43782,ZR="++",rA=43641,eA=71944,tA=126601,nA=78894,uA=-45,cv="null",iA=177,xL="satisfies",fA=131071,Gf="import_specifier",Wf="class_method",Vf="type_",cA=126514,sA=8454,rL="inexact",aA=67807,oA=8525,vA=65470,lA=71352,$f="tuple_spread_element",eL=219,pA="abstract",kA=73458,Ue="return",v6=65536,Z8=126548,Qf="array_element",mA=-253313196,hA=186,xm="catch",Hf="infer_type",dA=12295,tL="Invalid legacy octal ",yA=69762,gA=43311,wA=65437,Zf="variable_declaration",nL=-696510241,xc="function_params",_A=64316,uL=311,rm=11565,iL="infinity",bA="@]",TA=65908,rc="extends",EA=66204,SA=43784,AA=11742,em=126503,Xe="debugger",PA=70457,Vs=-86,l6=912068366,IA=68786,tm="keyof",nm=69415,NA=12686,un=127343600,ec="declare_type_alias",fL="the",cL=233,tc="jsx_element_name_namespaced",CA=72283,sL=161,nc="function_param_type",Nt=128,jA=-673950933,um=126591,aL="Sys_error",OA=74649,DA=74862,p6="is",FA=43738,RA=68479,LA=196,im=70854,uc="enum_boolean_member",ic="match_expression_case",fm=72163,MA=92783,fc="component_param_name",qA=68863,fn=32768,oL=2048,BA=64284,vL="@{",UA="\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0",cm=8455,cc="update_expression",lL=276,XA=65500,k6="from",YA=68447,sm=12592,zA=92766,pL=">>=",w1=110,KA=66431,JA=43586,sc="jsx_identifier",GA=" : file already exists",M2=128,WA=71958,VA=66717,ac="enum_boolean_body",$A=64262,Gr="id",oc="component_renders_annotation",QA=42888,HA=8584,ZA=73008,vc="enum_symbol_body",lc="declare_namespace",am=72713,xP=55215,pc="object_property_value_type",kc="for_in_assignment_pattern",om=8485,rP=43395,kL=229,$s="true",eP=43743,mc="enum_number_member",mL=234,tP=72969,hL="expected *",cn=102,dL=200,m6="symbol",sv="source",hc="tparam_const_modifier",nP=43714,dc="jsx_fragment",yc="jsx_attribute_name_identifier",h6="public",uP=43442,gc="pattern_object_property",iP=65786,fP=70783,cP=43713,sP=72160,yL="*-/",wc="export_named_specifier",_c="arrow_function",aP=122623,vm=70006,gL="${",oP=43814,bc="generic_qualified_identifier_type",wL=199,Tc="jsx_spread_child",lm=8489,pm=184,_L=2047,vP=66955,Ec="try_catch",lP=70497,bL=237,pP=67431,kP=125183,TL=-602162310,sn="params",mP="consequent",hP=68029,dP=67829,yP=68095,Sc="enum_string_body",gP=93823,wP=68351,_P=65495,Ac="declare_module",Pc="body_expression",bP=66175,TP=191,km=70441,mm=65141,hm="&",Ic="super_expression",dm=126564,EP=72105,vS0="fs",Ye="throw",SP=68287,AP=67839,av=116,PP=110882,IP=69404,NP=123197,ov=65279,N3="src/parser/type_parser.ml",CP=68115,EL=259,ym=126547,gm=126556,jP=73055,Nc="member_property_expression",Cc="enum_defaulted_member",OP=43071,DP=11726,jc="component_type_rest_param",FP=68607,Oc="object_key",SL=160,V1="variance",RP=70655,LP=70414,C3="super",MP=123583,qP=65594,d6="method",BP=73648,y6=121,UP=93951,Dc="pattern_array_element_pattern",XP=43764,YP=42993,wm=120145,zP=74879,AL=168,_m=8486,KP=72001,Fc="tagged_template",Rc="module_ref_literal",JP=65312,vv="implements",GP=43700,WP=120003,PL="Invalid_argument",Lc=16777215,VP=83526,bm=69744,Tm=12336,Mc="switch_case",IL=-61,qc="optional_member",$P=64274,Em=64322,Sm=126530,QP=71998,Am=72970,HP=13311,ZP=73647,xI=120074,j3="let",Bc="expression_statement",Uc="component_type_params",rI=512,eI=69634,tI=67461,nI=123627,uI=64913,NL="children",CL="PropertyDefinition",jL=1026,OL="%li",Xc="declare_class",iI=43258,Yc="indexed_access_type",fI=124926,Qs=112,cI="b",zc="predicate_expression",Kc="if_alternate_statement",g6="private",DL=-594953737,FL=140,sI="nan",aI=72103,Pm=11735,Jc="statement",oI="rmdir",Im=66512,vI="match",RL=198,lI=11734,Gc="import_named_specifier",pI=69599,kI=68799,mI=194559,Wc="match_array_pattern",LL=174,Vc="function_",$c="bigint_literal",i2=248,Nm=67638,Cm=126539,hI=11557,ML=214,dI=5760,ze="break",an="block",Qc="match_member_pattern",yI=123565,gI=66815,w2="value",qL=1039100673,wI=69746,_I=70448,bI=74751,Hc="init",TI=69551,jm=65548,Zc="jsx_member_expression",Om=68096,Hs=108,Dm=126521,EI=71487,xs="match_statement",SI=178205,AI=12548,BL=" : is a directory",on=".",PI=12348,O3=-835925911,$1="typeParameters",II=66855,u1="typeAnnotation",lv="bigint",rs="jsx_attribute_value_literal",NI=194,UL="T_JSX_TEXT",CI=68466,Fm=126537,XL=67714067,jI=69487,Rm="export",OI=43822,Lm=126499,DI=55242,es="member_type_identifier",YL=138,FI=71679,w6=130,RI=12438,LI=119969,zL=298,Mm=12539,MI=119972,KL=",",qI=71423,BI="index out of bounLine truncated
`,aJ="@.",oJ="@@",vJ="@%",lJ=OO,pJ="%c",kJ="%s",mJ=iF,hJ=OL,dJ=hO,yJ=kF,gJ="%f",wJ="%B",_J="%{",bJ="%}",TJ="%(",EJ="%)",SJ="%a",AJ="%t",PJ="%?",IJ="%r",NJ="%_r",CJ=[0,k1,850,23],jJ=[0,k1,837,26],OJ=[0,k1,847,28],DJ=[0,k1,815,21],FJ=[0,k1,819,21],RJ=[0,k1,823,19],LJ=[0,k1,827,22],MJ=[0,k1,832,30],qJ=[0,k1,851,23],BJ=[0,k1,836,26],UJ=[0,k1,846,28],XJ=[0,k1,814,21],YJ=[0,k1,818,21],zJ=[0,k1,822,19],KJ=[0,k1,826,22],JJ=[0,k1,831,30];function fC(x){return x[2]===5?12:-6}function vq(x){return[0,0,E2(x)]}function lq(x,r){var e=Ot(x[2]),t=x[1]+r|0;if(e<t){var u=e*2|0,i=t<=u?u:t,c=E2(i);ZM(x[2],0,c,0,e),x[2]=c}}function H3(x,r){lq(x,1),ra(x[2],x[1],r),x[1]=x[1]+1|0}function L1(x,r){var e=Cx(r);lq(x,e),yn(r,0,x[2],x[1],e),x[1]=x[1]+e|0}function pq(x){return V3(x[2],0,x[1])}function kq(x){if(typeof x=="number")switch(x){case 0:return iJ;case 1:return fJ;case 2:return cJ;case 3:return sJ;case 4:return aJ;case 5:return oJ;default:return vJ}switch(x[0]){case 0:return x[1];case 1:return x[1];default:return Mx(lJ,k5(1,x[1]))}}function cC(x,r){for(var e=r;;){if(typeof e=="number")return;switch(e[0]){case 0:var t=e[1];L1(x,pJ);var e=t;break;case 1:var u=e[1];L1(x,kJ);var e=u;break;case 2:var i=e[1];L1(x,mJ);var e=i;break;case 3:var c=e[1];L1(x,hJ);var e=c;break;case 4:var v=e[1];L1(x,dJ);var e=v;break;case 5:var a=e[1];L1(x,yJ);var e=a;break;case 6:var l=e[1];L1(x,gJ);var e=l;break;case 7:var m=e[1];L1(x,wJ);var e=m;break;case 8:var h=e[2],T=e[1];L1(x,_J),cC(x,T),L1(x,bJ);var e=h;break;case 9:var b=e[3],N=e[1];L1(x,TJ),cC(x,N),L1(x,EJ);var e=b;break;case 10:var C=e[1];L1(x,SJ);var e=C;break;case 11:var I=e[1];L1(x,AJ);var e=I;break;case 12:var F=e[1];L1(x,PJ);var e=F;break;case 13:var M=e[1];L1(x,IJ);var e=M;break;default:var Y=e[1];L1(x,NJ);var e=Y}}}function c1(x){if(typeof x=="number")return 0;switch(x[0]){case 0:return[0,c1(x[1])];case 1:return[1,c1(x[1])];case 2:return[2,c1(x[1])];case 3:return[3,c1(x[1])];case 4:return[4,c1(x[1])];case 5:return[5,c1(x[1])];case 6:return[6,c1(x[1])];case 7:return[7,c1(x[1])];case 8:var r=x[1];return[8,r,c1(x[2])];case 9:var e=x[2],t=x[1];return[9,e,t,c1(x[3])];case 10:return[10,c1(x[1])];case 11:return[11,c1(x[1])];case 12:return[12,c1(x[1])];case 13:return[13,c1(x[1])];default:return[14,c1(x[1])]}}function M1(x){if(typeof x=="number")return[0,function(d0){},function(d0){},function(d0){},function(d0){}];switch(x[0]){case 0:var r=M1(x[1]),e=r[2],t=r[1];return[0,function(d0){t(O)},function(d0){e(O)},r[3],r[4]];case 1:var u=M1(x[1]),i=u[2],c=u[1];return[0,function(d0){c(O)},function(d0){i(O)},u[3],u[4]];case 2:var v=M1(x[1]),a=v[2],l=v[1];return[0,function(d0){l(O)},function(d0){a(O)},v[3],v[4]];case 3:var m=M1(x[1]),h=m[2],T=m[1];return[0,function(d0){T(O)},function(d0){h(O)},m[3],m[4]];case 4:var b=M1(x[1]),N=b[2],C=b[1];return[0,function(d0){C(O)},function(d0){N(O)},b[3],b[4]];case 5:var I=M1(x[1]),F=I[2],M=I[1];return[0,function(d0){M(O)},function(d0){F(O)},I[3],I[4]];case 6:var Y=M1(x[1]),q=Y[2],K=Y[1];return[0,function(d0){K(O)},function(d0){q(O)},Y[3],Y[4]];case 7:var u0=M1(x[1]),Q=u0[2],e0=u0[1];return[0,function(d0){e0(O)},function(d0){Q(O)},u0[3],u0[4]];case 8:var f0=M1(x[2]),a0=f0[2],Z=f0[1];return[0,function(d0){Z(O)},function(d0){a0(O)},f0[3],f0[4]];case 9:var v0=x[2],t0=x[1],y0=M1(x[3]),n0=y0[4],s0=y0[3],l0=y0[2],w0=y0[1],L0=M1(h1(c1(t0),v0)),I0=L0[4],j0=L0[3],S0=L0[2],W0=L0[1];return[0,function(d0){w0(O),W0(O)},function(d0){S0(O),l0(O)},function(d0){s0(O),j0(O)},function(d0){I0(O),n0(O)}];case 10:var A0=M1(x[1]),J0=A0[2],b0=A0[1];return[0,function(d0){b0(O)},function(d0){J0(O)},A0[3],A0[4]];case 11:var z=M1(x[1]),C0=z[2],V0=z[1];return[0,function(d0){V0(O)},function(d0){C0(O)},z[3],z[4]];case 12:var N0=M1(x[1]),rx=N0[2],xx=N0[1];return[0,function(d0){xx(O)},function(d0){rx(O)},N0[3],N0[4]];case 13:var nx=M1(x[1]),mx=nx[4],F0=nx[3],px=nx[2],dx=nx[1];return[0,function(d0){dx(O)},function(d0){px(O)},function(d0){F0(O)},function(d0){mx(O)}];default:var W=M1(x[1]),g0=W[4],B=W[3],h0=W[2],_0=W[1];return[0,function(d0){_0(O)},function(d0){h0(O)},function(d0){B(O)},function(d0){g0(O)}]}}function h1(x,r){x:{r:{e:{t:{n:{u:{i:{if(typeof x!="number"){switch(x[0]){case 0:var e=x[1];if(typeof r!="number")switch(r[0]){case 0:return[0,h1(e,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 1:var t=x[1];if(typeof r!="number")switch(r[0]){case 1:return[1,h1(t,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 2:var u=x[1];if(typeof r!="number")switch(r[0]){case 2:return[2,h1(u,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 3:var i=x[1];if(typeof r!="number")switch(r[0]){case 3:return[3,h1(i,r[1])];case 8:break u;case 9:break i;case 10:break x;case 11:break r;case 12:break e;case 13:break t;case 14:break n}break;case 4:var c=x[1];if(typeof r!="number")switch(r[0] Line truncated
`];function pC(x,r){var e=x[1+r];if(!(1-(typeof e=="number"?1:0)))return d(sr(bW),e);if(hv(e)===_3)return d(sr(wW),e);if(hv(e)!==mE)return _W;for(var t=FN("%.12g",e),u=0,i=Cx(t);;){if(i<=u)return Mx(t,gW);var c=q2(t,u);x:{if(48<=c){if(58>c)break x}else if(c===45)break x;return t}var u=u+1|0}}function dq(x,r){if(x.length-1<=r)return TW;var e=dq(x,r+1|0),t=pC(x,r);return p(sr(EW),t,e)}function Y6(x){x:{r:{for(var r=M3(lC);r;){e:{var e=r[2],t=r[1];try{var u=d(t,x)}catch{break e}if(u)break r}var r=e}var i=0;break x}var i=[0,u[1]]}if(i)return i[1];if(x===GN)return NW;if(x===BM)return CW;if(x[1]===qM){var c=x[2],v=c[3],a=c[2],l=c[1];return JN(sr(WN),l,a,v,v+5|0,jW)}if(x[1]===Ir){var m=x[2],h=m[3],T=m[2],b=m[1];return JN(sr(WN),b,T,h,h+6|0,OW)}if(x[1]===C6){var N=x[2],C=N[3],I=N[2],F=N[1];return JN(sr(WN),F,I,C,C+6|0,DW)}if(hv(x)===0){var M=x.length-1,Y=x[1][1];if(2<M>>>0)var q=dq(x,2),K=pC(x,1),u0=p(sr(SW),K,q);else switch(M){case 0:var u0=AW;break;case 1:var u0=PW;break;default:var Q=pC(x,1),u0=d(sr(IW),Q)}var e0=[0,Y,[0,u0]]}else var e0=[0,x[1],0];var f0=e0[2],a0=e0[1];return f0?Mx(a0,f0[1]):a0}function kC(x,r){var e=Kz(r),t=e.length-1-1|0,u=0;if(t>=0)for(var i=u;;){var c=P2(e,i)[1+i];let u0=i;var v=function(e0){return e0?u0===0?FW:RW:u0===0?LW:MW};if(c[0]===0){if(c[3]===c[6])var a=c[3],h=d(sr(qW),a);else var l=c[6],m=c[3],h=p(sr(YW),m,l);var T=c[7],b=c[4],N=c[8]?BW:XW,C=c[2],I=c[9],F=v(c[1]),Y=[0,MK(sr(UW),F,I,C,N,h,b,T)]}else if(c[1])var Y=0;else var M=v(0),Y=[0,d(sr(zW),M)];if(Y){var q=Y[1];d(hq(x,KW),q)}var K=i+1|0;if(t===i)break;var i=K}}function mC(x){for(;;){var r=M3(lC),e=1-Gm(lC,r,[0,x,r]);if(!e)return e}}var JW=[0,H0,`(Cannot print locations:
bytecode executable program file not found)`,`(Cannot print locations:
bytecode executable program file appears to be corrupt)`,`(Cannot print locations:
bytecode executable program file has wrong magic number)`,`(Cannot print locations:
bytecode executable program file cannot be opened;
-- too many open files. Try running with OCAMLRUNPARAM=b=2)`].slice(),GW=[0,[11,WE,[2,0,[12,10,0]]],zR],WW=[0],VW="Fatal error: out of memory in uncaught exception handler",$W=[0,[11,WE,[2,0,[12,10,0]]],zR],QW=[0,[11,"Fatal error in uncaught exception handler: exception ",[2,0,[12,10,0]]],`Fatal error in uncaught exception handler: exception %s
`];zN(BO,function(x,r){try{try{var e=r?WW:_M(0);try{$N(O)}catch{}try{var t=Y6(x);d(vC(GW),t),kC(hn,e);var u=hK(0);if(u<0){var i=v5(u);KM(P2(JW,i)[1+i])}var c=ln(hn),v=c}catch(b){var a=B2(b),l=Y6(x);d(vC($W),l),kC(hn,e);var m=Y6(a);d(vC(QW),m),kC(hn,_M(0));var v=ln(hn)}var h=v}catch(b){var T=B2(b);if(T!==GN)throw K0(T,0);var h=KM(VW)}return h}catch{return 0}});var HW=[i2,"Stdlib.Fun.Finally_raised",ks(0)],ZW="Fun.Finally_raised: ";mC(function(x){return x[1]===HW?[0,Mx(ZW,Y6(x[2]))]:0});var xV="Digest.BLAKE2: wrong hash size";function hC(x){var r=x[1]<1?1:0,e=r||(64<x[1]?1:0);e&&R1(xV)}hC([0,16]),hC([0,32]),hC([0,64]);function yq(x){var r=b1(x);return mK(r,0,Cx(r))}var rV=ct(1,0,0),eV=ct(0,0,0),tV=ct(0,0,0),nV=ct(2,0,0),uV=ct(1,0,0);function gq(x){return Nz(7,0,[0,4])}function wq(x,r,e,t,u){T6(x,0,AM(r,rV)),T6(x,1,e);var i=mv(t,eV)?t:uV;T6(x,2,i);var c=mv(u,tV)?u:nV;T6(x,3,c)}function _q(x,r,e,t){var u=gq(O);return wq(u,x,r,e,t),u}var iV=ct(14371852,15349651,22696),fV=ct(12230193,11438743,35013),cV=ct(1424933,15549263,2083),sV=ct(9492471,4696708,yF);hs([0,function(x){var r=u5(x),e=u5(x),t=u5(x);return _q(r,e,t,u5(x))}],function(x){return _q(sV,cV,fV,iV)});var w5=0,bq=-1,dC=[i2,"Stdlib.Format.String_tag",ks(0)];function z6(x,r){return x[13]=x[13]+r[3]|0,rC(r,x[28])}var Tq=1000000010;function aV(x,r){return x<=r?x:r}var oV=[i2,"Stdlib.Queue.Empty",ks(0)],vV=[0,H0,0,H0],lV=H0,pV=H0,kV=H0,mV=H0,hV=[0,H0],dV=bw;function yC(x,r){return Q0(x[17],r,0,Cx(r))}function _5(x){return d(x[19],0)}function Eq(x,r,e){x[9]=x[9]-r|0,yC(x,e),x[11]=0}function b5(x,r){var e=P(r,H0);return e&&Eq(x,Cx(r),r)}function wv(x,r,e){var t=r[3],u=r[2];return b5(x,r[1]),_5(x),x[11]=1,x[10]=aV(x[8],(x[6]-e|0)+u|0),x[9]=x[6]-x[10]|0,d(x[21],x[10]),b5(x,t)}function Sq(x,r){return wv(x,vV,r)}function xl(x,r){var e=r[2],t=r[3];return b5(x,r[1]),x[9]=x[9]-e|0,d(x[20],e),b5(x,t)}function yV(x,r,e){if(typeof e=="number")switch(e){case 0:var t=Q3(x[3]);if(!t)return;var u=t[1][1],i=function(V0,N0){if(!N0)return[0,V0,0];var rx=N0[1],xx=N0[2];return iK(V0,rx)?[0,V0,N0]:[0,rx,i(V0,xx)]};u[1]=i(x[6]-x[9]|0,u[1]);return;case 1:$3(x[2]);return;case 2:$3(x[3]);return;case 3:var c=Q3(x[2]);return c?Sq(x,c[1][2]):_5(x);case 4:var v=x[10]!==(x[6]-x[9]|0)?1:0;if(!v)return v;var a=x[28],l=a[2];if(l){var m=l[1];if(l[2]){var h=l[2];a[1]=a[1]-1|0,a[2]=h;var T=[0,m]}else{xC(a);var T=[0,m]}}else var T=0;if(!T)return;var b=T[1],N=b[1];x[12]=x[12]-b[3]|0,x[9]=x[9]+N|0;return;default:var C=$3(x[5]);return C?yC(x,d(x[25],C[1])):void 0}switch(e[0]){case 0:return Eq(x,r,e[1]);case 1:var I=e[2],F=e[1],M=I[1],Y=I[2],q=Q3(x[2]);if(!q)return;var K=q[1],u0=K[2];switch(K[1]){case 0:return xl(x,F);case 1:return wv(x,I,u0);case 2:return wv(x,I,u0);case 3:return x[9]<(r+Cx(M)|0)?wv(x,I,u0):xl(x,F);case 4:return x[11]?xl(x,F):x[9]<(r+Cx(M)|0)||((x[6]-u0|0)+Y|0)<x[10]?wv(x,I,u0):xl(x,F);default:return xl(x,F)}case 2:var Q=x[6]-x[9]|0,e0=e[2],f0=e[1],a0=Q3(x[3]);if(!a0)return;var Z=a0[1][1],v0=Z[1];if(v0)for(var t0=Z[1],y0=v0[1];;){if(t0){var n0=t0[1],s0=t0[2];if(Q>n0){var t0=s0;continue}var l0=n0}else var l0=y0;var w0=l0;break}else var w0=Q;var L0=w0-Q|0;return 0<=L0?xl(x,[0,pV,L0+f0|0,lV]):wv(x,[0,mV,w0+e0|0,kV],x[6]);case 3:var I0=e[2],j0=e[1];if(x[8]<(x[6]-x[9]|0)){var S0=Q3(x[2]);if(S0){var W0=S0[1],A0=W0[2],J0=W0[1];x[9]<A0&&3>=J0-1>>>0&&Sq(x,A0)}else _5(x)}var b0=x[9]-j0|0,z=I0===1?1:x[9]<r?I0:5;return yv([0,z,b0],x[2]);case 4:return yv(e[1],x[3]);default:var C0=e[1];return yC(x,d(x[24],C0)),yv(C0,x[5])}}function Aq(x){for(;;){var r=x[28][2],e=r?[0,r[1]]:0;if(!e)return;var t=e[1],u=t[1],i=0<=u?1:0,c=t[3],v=t[2],a=x[13]-x[12]|0,l=i||(x[9]<=a?1:0);if(!l)return l;var m=x[28],h=m[2];if(!h)throw K0(oV,1);if(h[2]){var T=h[2];m[1]=m[1]-1|0,m[2]=T}else xC(m);var b=0<=u?u:Tq;yV(x,b,v),x[12]=c+x[12]|0}}function Pq(x,r){return z6(x,r),Aq(x)}function Iq(x,r,e){return Pq(x,[0,r,[0,e],r])}function gC(x){return q6(x),yv([0,-1,[0,bq,hV,0]],x)}function wC(x,r){var e=Q3(x[1]);if(e){var t=e[1],u=t[2],i=u[1];if(t[1]<x[12])return gC(x[1]);var c=u[2];if(typeof c!="number")switch(c[0]){case 3:1-r&&(u[1]=x[13]+i|0,$3(x[1]));return;case 1:case 2:r&&(u[1]=x[13]+i|0,$3(x[1]));return}}}function Nq(x,r,e){return z6(x,e),r&&wC(x,1),yv([0,x[13],e],x[1])}function Cq(x,r,e){if(x[14]=x[14]+1|0,x[14]<x[15])return Nq(x,0,[0,-x[13]|0,[3,r,e],0]);var t=x[14]===x[15]?1:0;if(!t)return t;var u=x[16];return Iq(x,Cx(u),u)}function jq(x,r){1<x[14]&&(x[14]<x[15]&&(z6(x,[0,w5,1,0]),wC(x,1),wC(x,0)),x[14]=x[14]-1|0)}function Oq(x,r){if(x[23]&&z6(x,[0,w5,5,0]),x[22]){var e=$3(x[4]);if(e)return d(x[27],e[1])}}function Dq(x,r){for(T1(function(e){return Oq(x,O)},x[4][1]);!(1>=x[14]);)jq(x,O);return x[13]=Tq,Aq(x),r&&_5(x),x[12]=1,x[13]=1,xC(x[28]),gC(x[1]),q6(x[2]),q6(x[3]),q6(x[4]),q6(x[5]),x[10]=0,x[14]=0,x[9]=x[6],Cq(x,0,3)}function _C(x,r,e){var t=x[14]<x[15]?1:0;return t&&Iq(x,r,e)}function Fq(x,r,e){return _C(x,r,e)}function K6(x,r){return Fq(x,1,k5(1,r))}function _v(x,r){return Dq(x,0),d(x[18],0)}function bC(x,r){return Line truncated
`,Ut0=bw,Xt0="unreachable regexp_class",Yt0=VO,zt0="unreachable regexp_body",Kt0=H0,Jt0=H0,Gt0=H0,Wt0=H0,Vt0=AD,$t0="{'>'}",Qt0=n6,Ht0="{'}'}",Zt0=g8,xn0=Ua,rn0=Wb,en0=hm,tn0=AD,nn0=Ua,un0=Wb,in0=hm,fn0="unreachable type_token wholenumber",cn0="unreachable type_token wholebigint",sn0="unreachable type_token floatbigint",an0="unreachable type_token scinumber",on0="unreachable type_token scibigint",vn0="unreachable type_token hexnumber",ln0="unreachable type_token hexbigint",pn0="unreachable type_token legacyoctnumber",kn0="unreachable type_token octnumber",mn0="unreachable type_token octbigint",hn0="unreachable type_token binnumber",dn0="unreachable type_token bigbigint",yn0="unreachable type_token",gn0=hL,wn0=[11,1],_n0=[11,0],bn0="unreachable template_tail",Tn0=H0,En0=H0,Sn0="unreachable jsx_child",An0="unreachable jsx_tag",Pn0=[0,ND],In0=[0,913],Nn0=[0,v3],Cn0=[0,NI],jn0=[0,dD],On0=[0,RL],Dn0=[0,8747],Fn0=[0,FO],Rn0=[0,916],Ln0=[0,8225],Mn0=[0,935],qn0=[0,wL],Bn0=[0,914],Un0=[0,LA],Xn0=[0,FF],Yn0=[0,hR],zn0=[0,915],Kn0=[0,LO],Jn0=[0,919],Gn0=[0,917],Wn0=[0,dL],Vn0=[0,tD],$n0=[0,tF],Qn0=[0,924],Hn0=[0,923],Zn0=[0,922],x70=[0,gF],r70=[0,921],e70=[0,ST],t70=[0,kk],n70=[0,cF],u70=[0,gd],i70=[0,927],f70=[0,937],c70=[0,uD],s70=[0,uF],a70=[0,kD],o70=[0,338],v70=[0,352],l70=[0,929],p70=[0,936],k70=[0,8243],m70=[0,928],h70=[0,934],d70=[0,ML],y70=[0,nD],g70=[0,933],w70=[0,dR],_70=[0,eL],b70=[0,yO],T70=[0,920],E70=[0,932],S70=[0,KO],A70=[0,ID],P70=[0,QF],I70=[0,rF],N70=[0,918],C70=[0,376],j70=[0,HF],O70=[0,926],D70=[0,z_],F70=[0,MR],R70=[0,925],L70=[0,39],M70=[0,8736],q70=[0,8743],B70=[0,38],U70=[0,945],X70=[0,8501],Y70=[0,qo],z70=[0,8226],K70=[0,eD],J70=[0,946],G70=[0,8222],W70=[0,JO],V70=[0,AR],$70=[0,8776],Q70=[0,kL],H70=[0,8773],Z70=[0,9827],xu0=[0,XO],ru0=[0,967],eu0=[0,XR],tu0=[0,pm],nu0=[0,UO],uu0=[0,JF],iu0=[0,8595],fu0=[0,8224],cu0=[0,8659],su0=[0,yD],au0=[0,8746],ou0=[0,8629],vu0=[0,Fg],lu0=[0,8745],pu0=[0,8195],ku0=[0,8709],mu0=[0,dO],hu0=[0,mL],du0=[0,cL],yu0=[0,ip],gu0=[0,9830],wu0=[0,8707],_u0=[0,8364],bu0=[0,NR],Tu0=[0,b3],Eu0=[0,951],Su0=[0,8801],Au0=[0,949],Pu0=[0,8194],Iu0=[0,8805],Nu0=[0,947],Cu0=[0,8260],ju0=[0,HT],Ou0=[0,K9],Du0=[0,M8],Fu0=[0,8704],Ru0=[0,KF],Lu0=[0,bL],Mu0=[0,8230],qu0=[0,9829],Bu0=[0,8596],Uu0=[0,8660],Xu0=[0,62],Yu0=[0,402],zu0=[0,948],Ku0=[0,lF],Ju0=[0,By],Gu0=[0,8712],Wu0=[0,TP],Vu0=[0,953],$u0=[0,8734],Qu0=[0,8465],Hu0=[0,OR],Zu0=[0,8220],xi0=[0,8968],ri0=[0,8592],ei0=[0,zw],ti0=[0,10216],ni0=[0,955],ui0=[0,8656],ii0=[0,954],fi0=[0,60],ci0=[0,8216],si0=[0,8249],ai0=[0,RR],oi0=[0,9674],vi0=[0,8727],li0=[0,8970],pi0=[0,SL],ki0=[0,8711],mi0=[0,956],hi0=[0,8722],di0=[0,$9],yi0=[0,N8],gi0=[0,8212],wi0=[0,BD],_i0=[0,8804],bi0=[0,957],Ti0=[0,TF],Ei0=[0,8836],Si0=[0,8713],Ai0=[0,eF],Pi0=[0,8715],Ii0=[0,8800],Ni0=[0,8853],Ci0=[0,959],ji0=[0,969],Oi0=[0,8254],Di0=[0,WR],Fi0=[0,339],Ri0=[0,Go],Li0=[0,YR],Mi0=[0,Ty],qi0=[0,I3],Bi0=[0,8855],Ui0=[0,rE],Xi0=[0,i2],Yi0=[0,hA],zi0=[0,J4],Ki0=[0,lr],Ji0=[0,iA],Gi0=[0,982],Wi0=[0,960],Vi0=[0,966],$i0=[0,8869],Qi0=[0,8240],Hi0=[0,8706],Zi0=[0,8744],xf0=[0,8211],rf0=[0,10217],ef0=[0,8730],tf0=[0,8658],nf0=[0,34],uf0=[0,968],if0=[0,8733],ff0=[0,8719],cf0=[0,961],sf0=[0,8971],af0=[0,LL],of0=[0,8476],vf0=[0,8221],lf0=[0,8969],pf0=[0,8594],kf0=[0,cg],mf0=[0,PR],hf0=[0,wF],df0=[0,8901],yf0=[0,353],gf0=[0,8218],wf0=[0,8217],_f0=[0,8250],bf0=[0,8835],Tf0=[0,8721],Ef0=[0,8838],Sf0=[0,8834],Af0=[0,9824],Pf0=[0,8764],If0=[0,962],Nf0=[0,963],Cf0=[0,8207],jf0=[0,952],Of0=[0,8756],Df0=[0,964],Ff0=[0,dk],Rf0=[0,8839],Lf0=[0,WL],Mf0=[0,wD],qf0=[0,R3],Bf0=[0,8657],Uf0=[0,8482],Xf0=[0,Tg],Yf0=[0,732],zf0=[0,g3],Kf0=[0,8201],Jf0=[0,977],Gf0=[0,vR],Wf0=[0,_3],Vf0=[0,965],$f0=[0,978],Qf0=[0,AL],Hf0=[0,$E],Zf0=[0,VL],xc0=[0,pD],rc0=[0,8205],ec0=[0,950],tc0=[0,xk],nc0=[0,SF],uc0=[0,mE],ic0=[0,958],fc0=[0,8593],cc0=[0,Td],sc0=[0,8242],ac0=[0,sL],oc0="unreachable regexp",vc0="unreachable token wholenumber",lc0="unreachable token wholebigint",pc0="unreachable token floatbigint",kc0="unreachable token scinumber",mc0="unreachable token scibigint",hc0="unreachable token hexnumber",dc0="unreachable token hexbigint",yc0="unreachable token legacyoctnumber",gc0="unreachable token legacynonoctnumber",wc0="unreachable token octnumber",_c0="unreachable token octbigint",bc0="unreachable token bignumber",Tc0="unreachable token bigint",Ec0="unreachable token",Sc0=hL,Ac0=[7,"#!"],Pc0="expected ?",Ic0="unreachable string_escape",Nc0=W1,Cc0=Hl,jc0=Hl,Oc0=W1,Dc0=cI,Fc0=jF,Rc0="n",Lc0="r",Mc0="t",qc0=WF,Bc0=Hl,Uc0=Ua,Xc0=Ua,Yc0="unreachable id_char",zc0=Ua,Kc0=Ua,Jc0=Hl,Gc0=tL,Wc0=TO,Vc0=q_,$c0=[26,"token ILLEGAL"],Qc0=[0,[11,"the identifier `",[2,0,[12,96,0]]],"the identifier `%s`"],Hc0=[0,1],Zc0=[0,1],xs0=qF,rs0=qF,es0=[0,[11,"an identifier. When exporting a ",[2,0,[11," as a named export, you must specify a ",[2,0,[11," name. Did you mean `export default ",[2,0,[11," ...`?",0]]]]]]],"an identifier. When exporting a %s as a named export, you must specify a %s name. Did you mean `exp Line truncated
\v\x07\f\r\x1B  ! "#$%                                                                                                                                                                                            Line truncated
\v\f\r\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x1B\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07 \x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07Line truncated
\v\f\r\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\x07\xLine truncated
\v\f\r`,t+1|0)-1|0;if(14<u>>>0)var i=w(r);else switch(u){case 0:var i=0;break;case 1:var i=16;break;case 2:var i=15;break;case 3:V(r,15);var i=Pe(y(r))===0?15:w(r);break;case 4:V(r,4);var i=Z1(y(r))===0?e(r):w(r);break;case 5:V(r,11);var i=Z1(y(r))===0?e(r):w(r);break;case 6:var i=0;break;case 7:var i=5;break;case 8:var i=6;break;case 9:var i=7;break;case 10:var i=8;break;case 11:var i=9;break;case 12:V(r,14);var c=Sv(y(r));if(c===0)var i=br(y(r))===0&&br(y(r))===0&&br(y(r))===0?12:w(r);else if(c===1&&br(y(r))===0){for(;;){var v=Ev(y(r));if(v!==0)break}var i=v===1?13:w(r)}else var i=w(r);break;case 13:var i=10;break;default:V(r,14);var i=br(y(r))===0&&br(y(r))===0?1:w(r)}if(16<i>>>0)return bx(Ic0);switch(i){case 0:var a=Ox(r);return[0,x,a,l2(r),0];case 1:var l=Ox(r);return[0,x,l,[0,st(Mx(Nc0,l))],0];case 2:var m=Ox(r),h=st(Mx(Cc0,m));return e6<=h?[0,x,m,[0,h>>>3|0,48+(h&7)|0],1]:[0,x,m,[0,h],1];case 3:var T=Ox(r);return[0,x,T,[0,st(Mx(jc0,T))],1];case 4:return[0,x,Oc0,[0,0],0];case 5:return[0,x,Dc0,[0,8],0];case 6:return[0,x,Fc0,[0,12],0];case 7:return[0,x,Rc0,[0,10],0];case 8:return[0,x,Lc0,[0,13],0];case 9:return[0,x,Mc0,[0,9],0];case 10:return[0,x,qc0,[0,11],0];case 11:var b=Ox(r);return[0,x,b,[0,st(Mx(Bc0,b))],1];case 12:var N=Ox(r);return[0,x,N,[0,st(Mx(Uc0,E1(N,1,Cx(N)-1|0)))],0];case 13:var C=Ox(r),I=st(Mx(Xc0,E1(C,2,Cx(C)-3|0))),F=tk<I?lt(x,zr(x,r)):x;return[0,F,C,[0,I],0];case 14:var M=Ox(r),Y=l2(r);return[0,lt(x,zr(x,r)),M,Y,0];case 15:var q=Ox(r);return[0,xe(x,r),q,[0],0];default:var K=Ox(r);return[0,x,K,l2(r),0]}}function aU(x,r,e,t,u,i){for(var c=x,v=u;;){or(i);var a=y(i),l=92<a?1:Y0("",a+1|0)-1|0;if(4<l>>>0)var m=w(i);else switch(l){case 0:var m=3;break;case 1:for(;;){V(i,4);var h=y(i),T=-1<h?91<h?92<h?0:-1:Y0("\0\0\0",h)-1|0:-1;if(T!==0)break}var m=w(i);break;case 2:var m=2;break;case 3:var m=0;break;default:var m=1}if(4<m>>>0)return bx(Lt0);switch(m){case 0:var b=Ox(i);if(ir(t,b),_r(r,b))return[0,c,Ie(c,i),v];ir(e,b);break;case 1:ir(t,Mt0);var N=sU(c,i),C=N[4],I=N[3],F=N[2],M=N[1],Y=C||v;ir(t,F),uq(function(y0){return ds(e,y0)},I);var c=M,v=Y;break;case 2:var q=Ox(i);ir(t,q);var K=xe(lt(c,zr(c,i)),i);return ir(e,q),[0,K,Ie(K,i),v];case 3:var u0=Ox(i);ir(t,u0);var Q=lt(c,zr(c,i));return ir(e,u0),[0,Q,Ie(Q,i),v];default:var e0=i[6],f0=i[3]-e0|0,a0=E2(f0*4|0),Z=G6(i[1],e0,f0,a0);nC(t,a0,0,Z),nC(e,a0,0,Z)}}}function oU(x,r,e,t){for(var u=x;;){or(t);var i=y(t),c=96<i?1:Y0("\x07",i+1|0)-1|0;if(6<c>>>0)var v=w(t);else switch(c){case 0:var v=0;break;case 1:for(;;){V(t,6);var a=y(t),l=-1<a?95<a?96<a?0:-1:Y0("\0\0\0\0",a)-1|0:-1;if(l!==0)break}var v=w(t);break;case 2:var v=5;break;case 3:V(t,5);var v=Pe(y(t))===0?4:w(t);break;case 4:V(t,6);var m=y(t),h=c2<m?en<m?-1:0:-1,v=h===0?2:w(t);break;case 5:var v=3;break;default:var v=1}if(6<v>>>0)return bx(qt0);switch(v){case 0:return[0,lt(u,zr(u,t)),1];case 1:return[0,u,1];case 2:return[0,u,0];case 3:at(e,92);var T=sU(u,t),b=T[3],N=T[1];ir(e,T[2]),uq(function(F){return ds(r,F)},b);var u=N;break;case 4:ir(e,Bt0),ir(r,Ut0);var u=xe(u,t);break;case 5:ir(e,Ox(t)),at(r,10);var u=xe(u,t);break;default:var C=Ox(t);ir(e,C),ir(r,C)}}}function zb0(x,r,e){for(var t=x;;){or(e);var u=y(e),i=92<u?t1<u?1:l1<u?2:1:Y0("\x07",u+1|0)-1|0;if(6<i>>>0)var c=w(e);else switch(i){case 0:var c=0;break;case 1:for(;;){V(e,7);var v=y(e),a=-1<v?90<v?92<v?l1<v?t1<v?0:-1:0:-1:Y0("\0\0\0",v)-1|0:-1;if(a!==0)break}var c=w(e);break;case 2:var c=6;break;case 3:V(e,6);var c=Pe(y(e))===0?6:w(e);break;case 4:if(V(e,4),MB(y(e))===0){for(;V(e,3),MB(y(e))===0;);var c=w(e)}else var c=w(e);break;case 5:var c=5;break;default:V(e,7);var l=y(e),m=-1<l?13<l?t1<l?0:l1<l?1:0:Y0("",l)-1|0:-1;if(2<m>>>0)var c=w(e);else switch(m){case 0:var c=2;break;case 1:var c=1;break;default:V(e,1);var c=Pe(y(e))===0?1:w(e)}}if(7<c>>>0)return bx(zt0);switch(c){case 0:return[0,I1(t,zr(t,e),w1),Kt0];case 1:return[0,xe(I1(t,zr(t,e),w1),e),Jt0];case 2:ir(r,Ox(e));break;case 3:var h=Ox(e);return[0,t,E1(h,1,Cx(h)-1|0)];case 4:return[0,t,Gt0];case 5:at(r,91);x:{r:{e:{t:{n:for(;;){or(e);var T=y(e),b=93<T?t1<T?1:l1<T?2:1:Y0("",T+1|0)-1|0;if(5<b>>>0)var N=w(e);else switch(b){case 0:var N=0;break;case 1:for(;;){V(e,5);var C=y(e),I=-1<C?91<C?93<C?l1<C?t1<C?0:-1:0:-1:Y0("\0\0",C)-1|0:-1;if(I Line truncated
`);return ox.length>1&&ox.every($x=>$x.trimStart()[0]==="*")}var sO=zE0;function KE0(o0){return F4(o0)&&o0.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(o0.value)}var fz=KE0;var R4=null;function L4(o0){if(R4!==null&&typeof R4.property){let ox=R4;return R4=L4.prototype=null,ox}return R4=L4.prototype=o0??Object.create(null),new L4}var JE0=10;for(let o0=0;o0<=JE0;o0++)L4();function aO(o0){return L4(o0)}function GE0(o0,ox="type"){aO(o0);function $x(Ar){let lr=Ar[ox],Pr=o0[lr];if(!Array.isArray(Pr))throw Object.assign(new Error(`Missing visitor keys for '${lr}'.`),{node:Ar});return Pr}return $x}var cz=GE0;var sz={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPre Line truncated
`;o0=ql(!1,o0.replace(HE0,"").replace(QE0,""),eS0,"$1");let $x="";for(;$x!==o0;)$x=o0,o0=ql(!1,o0,rS0,`${ox}$1 $2${ox}`);o0=o0.replace(lz,"").trimEnd();let Ar=Object.create(null),lr=ql(!1,o0,pz,"").replace(lz,"").trimEnd(),Pr;for(;Pr=pz.exec(o0);){let L2=ql(!1,Pr[2],xS0,"");if(typeof Ar[Pr[1]]=="string"||Array.isArray(Ar[Pr[1]])){let ie=Ar[Pr[1]];Ar[Pr[1]]=[...tS0,...Array.isArray(ie)?ie:[ie],L2]}else Ar[Pr[1]]=L2}return{comments:lr,pragmas:Ar}}function nS0(o0){if(!o0.startsWith("#!"))return"";let ox=o0.indexOf(`
`);return ox===-1?o0:o0.slice(0,ox)}var hz=nS0;function uS0(o0){let ox=hz(o0);ox&&(o0=o0.slice(ox.length+1));let $x=kz(o0),{pragmas:Ar,comments:lr}=mz($x);return{shebang:ox,text:o0,pragmas:Ar,comments:lr}}function dz(o0){let{pragmas:ox}=uS0(o0);return Object.prototype.hasOwnProperty.call(ox,"prettier")||Object.prototype.hasOwnProperty.call(ox,"format")}function iS0(o0){return o0=typeof o0=="function"?{parse:o0}:o0,{astFormat:"estree",hasPragma:dz,locStart:Zt,locEnd:Da,...o0}}var yz=iS0;function fS0(o0){return o0.charAt(0)==="#"&&o0.charAt(1)==="!"?"//"+o0.slice(2):o0}var gz=fS0;var cS0={comments:!1,components:!0,enums:!0,esproposal_decorators:!0,esproposal_export_star_as:!0,tokens:!0};function sS0(o0){let{message:ox,loc:{start:$x,end:Ar}}=o0;return nz(ox,{loc:{start:{line:$x.line,column:$x.column+1},end:{line:Ar.line,column:Ar.column+1}},cause:o0})}function aS0(o0){let ox=wz.default.parse(gz(o0),cS0),[$x]=ox.errors;if($x)throw sS0($x);return vz(ox,{text:o0})}var oS0=yz(aS0);var lA0=pO;export{lA0 as default,lO as parsers};
+5
View File
@@ -0,0 +1,5 @@
import { Parser } from "../index.js";
export declare const parsers: {
glimmer: Parser;
};
+30
View File
@@ -0,0 +1,30 @@
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.glimmer=e()}})(function(){"use strict";var Fe=Object.defineProperty;var Ws=Object.getOwnPropertyDescriptor;var js=Object.getOwnPropertyNames;var Qs=Object.prototype.hasOwnProperty;var Or=e=>{throw TypeError(e)};var He=(e,t)=>{for(var r in t)Fe(e,r,{get:t[r],enumerable:!0})},Js=(e,t,r,s)=>{if(t&&typeof t=="object"||typeof t=="function")for(let n of js(t))!Qs.call(e,n)&&n!==r&&Fe(e,n,{get:()=>t[n],enumerable:!(s=Ws(t,n))||s.enumerable});return e};var $s=e=>Js(Fe({},"__esModule",{value:!0}),e);var Br=(e,t,r)=>t.has(e)||Or("Cannot "+r);var I=(e,t,r)=>(Br(e,t,"read from private field"),r?r.call(e):t.get(e)),Lt=(e,t,r)=>t.has(e)?Or("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Y=(e,t,r,s)=>(Br(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r);var xi={};He(xi,{languages:()=>ps,parsers:()=>xr,printers:()=>Pi});var Xs=(e,t,r,s)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,s):r.global?t.replace(r,s):t.split(r).join(s)},Ue=Xs;var Dt="string",Gt="array",Kt="cursor",_t="indent",Ot="align",Wt="trim",Bt="group",It="fill",bt="if-break",jt="indent-if-break",Qt="line-suffix",Jt="line-suffix-boundary",j="line",$t="label",Rt="break-parent",fe=new Set([Kt,_t,Ot,Wt,Bt,It,bt,jt,Qt,Jt,j,$t,Rt]);var Zs=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},G=Zs;function tn(e){if(typeof e=="string")return Dt;if(Array.isArray(e))return Gt;if(!e)return;let{type:t}=e;if(fe.has(t))return t}var qt=tn;var en=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function rn(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
Expected it to be 'string' or 'object'.`;if(qt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=en([...fe].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${s}.`}var Me=class extends Error{name="InvalidDocError";constructor(t){super(rn(t)),this.doc=t}},ze=Me;function nn(e,t){if(typeof e=="string")return t(e);let r=new Map;return s(e);function s(i){if(r.has(i))return r.get(i);let a=n(i);return r.set(i,a),a}function n(i){switch(qt(i)){case Gt:return t(i.map(s));case It:return t({...i,parts:i.parts.map(s)});case bt:return t({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case Bt:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(s),o=a[0]):o=s(o),t({...i,contents:o,expandedStates:a})}case Ot:case _t:case jt:case $t:case Qt:return t({...i,contents:s(i.contents)});case Dt:case Kt:case Wt:case Jt:case j:case Rt:return t(i);default:throw new ze(i)}}}function Ir(e,t=Rr){return nn(e,r=>typeof r=="string"?yt(t,r.split(`
`)):r)}var Ye=()=>{},kt=Ye,Ge=Ye,qr=Ye;function B(e){return kt(e),{type:_t,contents:e}}function an(e,t){return kt(t),{type:Ot,contents:t,n:e}}function R(e,t={}){return kt(e),Ge(t.expandedStates,!0),{type:Bt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Xt(e){return an(-1,e)}function Ke(e){return qr(e),{type:It,parts:e}}function We(e,t="",r={}){return kt(e),t!==""&&kt(t),{type:bt,breakContents:e,flatContents:t,groupId:r.groupId}}var Vr={type:Rt};var on={type:j,hard:!0},ln={type:j,hard:!0,literal:!0},L={type:j},H={type:j,soft:!0},tt=[on,Vr],Rr=[ln,Vr];function yt(e,t){kt(e),Ge(t);let r=[];for(let s=0;s<t.length;s++)s!==0&&r.push(e),r.push(t[s]);return r}var me="'",Fr='"';function cn(e,t){let r=t===!0||t===me?me:Fr,s=r===me?Fr:me,n=0,i=0;for(let a of e)a===r?n++:a===s&&i++;return n>i?s:r}var de=cn;function je(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var z,Qe=class{constructor(t){Lt(this,z);Y(this,z,new Set(t))}getLeadingWhitespaceCount(t){let r=I(this,z),s=0;for(let n=0;n<t.length&&r.has(t.charAt(n));n++)s++;return s}getTrailingWhitespaceCount(t){let r=I(this,z),s=0;for(let n=t.length-1;n>=0&&r.has(t.charAt(n));n--)s++;return s}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return I(this,z).has(t.charAt(0))}hasTrailingWhitespace(t){return I(this,z).has(G(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let s=`[${je([...I(this,z)].join(""))}]+`,n=new RegExp(r?`(${s})`:s,"u");return t.split(n)}hasWhitespaceCharacter(t){let r=I(this,z);return Array.prototype.some.call(t,s=>r.has(s))}hasNonWhitespaceCharacter(t){let r=I(this,z);return Array.prototype.some.call(t,s=>!r.has(s))}isWhitespaceOnly(t){let r=I(this,z);return Array.prototype.every.call(t,s=>r.has(s))}};z=new WeakMap;var Hr=Qe;var un=[" ",`
`,"\f","\r"," "],hn=new Hr(un),K=hn;function pn(e){return Array.isArray(e)&&e.length>0}var Zt=pn;var Je=class extends Error{name="UnexpectedNodeError";constructor(t,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(t[s])}.`),this.node=t}},Ur=Je;function Mr(e,t,r){if(e.type==="TextNode"){let s=e.chars.trim();if(!s)return null;r.tag==="style"&&r.children.length===1&&r.children[0]===e?t.chars="":t.chars=K.split(s).join(" ")}e.type==="ElementNode"&&(delete t.startTag,delete t.openTag,delete t.parts,delete t.endTag,delete t.closeTag,delete t.nameNode,delete t.body,delete t.blockParamNodes,delete t.params,delete t.path),e.type==="Block"&&(delete t.blockParamNodes,delete t.params),e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value,e.type==="PathExpression"&&(t.head=e.head.original)}Mr.ignoredProperties=new Set(["loc","selfClosing"]);var zr=Mr;function fn(e){let{node:t}=e;if(t.type!=="TextNode")return;let{parent:r}=e;if(!(r.type==="ElementNode"&&r.tag==="style"&&r.children.length===1&&r.children[0]===t))return;let s=r.attributes.find(n=>n.type==="AttrNode"&&n.name==="lang");if(!(s&&!(s.value.type==="TextNode"&&(s.value.chars===""||s.value.chars==="css"))))return async n=>{let i=await n(t.chars,{parser:"css"});return i?[tt,i,Xt(H)]:[]}}var Yr=fn;var te=null;function ee(e){if(te!==null&&typeof te.property){let t=te;return te=ee.prototype=null,t}return te=ee.prototype=e??Object.create(null),new ee}var mn=10;for(let e=0;e<=mn;e++)ee();function $e(e){return ee(e)}function dn(e,t="type"){$e(e);function r(s){let n=s[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var Gr=dn;var Kr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var gn=Gr(Kr),Wr=gn;function St(e){return e.loc.start.offset}function re(e){return e.loc.end.offset}var jr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function Jr(e){return e.toUpperCase()===e}function bn(e){return e.type==="ElementNode"&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&(Jr(e.tag[0])||e.tag.includes("."))}function yn(e){return jr.has(e.toLowerCase())&&!Jr(e[0])}function Xe(e){return e.selfClosing===!0||yn(e.tag)||bn(e)&&e.children.every(t=>ge(t))}function ge(e){return e.type==="TextNode"&&!/\S/u.test(e.chars)}function Qr(e){return(e==null?void 0:e.type)==="MustacheCommentStatement"&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function $r(e){return Qr(e.node)||e.isInArray&&(e.key==="children"||e.key==="body"||e.key==="parts")&&Qr(e.siblings[e.index-2])}var is=2;function kn(e,t,r){var n,i,a,o,c,h,p,m,S;let{node:s}=e;switch(s.type){case"Block":case"Program":case"Template":return R(e.map(r,"body"));case"ElementNode":{let y=R(vn(e,r)),E=t.htmlWhitespaceSensitivity==="ignore"&&((n=e.next)==null?void 0:n.type)==="ElementNode"?H:"";if(Xe(s))return[y,E];let C=["</",s.tag,">"];return s.children.length===0?[y,B(C),E]:t.htmlWhitespaceSensitivity==="ignore"?[y,B(Xr(e,t,r)),tt,B(C),E]:[y,B(R(Xr(e,t,r))),B(C),E]}case"BlockStatement":return Pn(e)?[xn(e,r),es(e,r,t),rs(e,r,t)]:[Nn(e,r),R([es(e,r,t),rs(e,r,t),An(e,r,t)])];case"ElementModifierStatement":return R(["{{",ns(e,r),"}}"]);case"MustacheStatement":return R([be(s),ns(e,r),ye(s)]);case"SubExpression":return R(["(",Rn(e,r),H,")"]);case"AttrNode":{let{name:y,value:E}=s,C=E.type==="TextNode";if(C&&E.chars===""&&St(E)===re(E))return y;let w=C?de(E.chars,t.singleQuote):E.type==="ConcatStatement"?de(E.parts.map(q=>q.type==="TextNode"?q.chars:"").join(""),t.singleQuote):"",U=r("value");return[y,"=",w,y==="class"&&w?R(B(U)):U,w]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return yt(L,e.map(r,"pairs"));case"HashPair":return[s.key,"=",r("value")];case"TextNode":{if(e.parent.tag==="pre"||e.parent.tag==="style")return s.chars;let y=Ue(!1,s.chars,"{{",String.raw`\{{`),E=Dn(e);if(E){if(E==="class"){let X=y.trim().split(/\s+/u).join(" "),rt=!1,V=!1;return e.parent.type==="ConcatStatement"&&(((i=e.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/u.test(y)&&(rt=!0),((a=e.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/u.test(y)&&X!==""&&(V=!0)),[rt?L:"",X,V?L:""]}return Ir(y)}let C=K.isWhitespaceOnly(y),{isFirst:P,isLast:w}=e;if(t.htmlWhitespaceSensitivity!=="ignore"){let X=w&&e.parent.type==="Template",rt=P&&e.parent.type==="Template";if(C){if(rt||X)return"";let A=[L],nt=Vt(y);return nt&&(A=se(nt)),w&&(A=A.map(ue=>Xt(ue))),A}let V=K.getLeadingWhitespace Line truncated
`).length-1}function _n(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Vt(t)}function On(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Vt(t)}function se(e=0){return Array.from({length:Math.min(e,is)}).fill(tt)}function Bn(e,t){let{node:{value:r}}=e,s=de(r,In(e)?!t.singleQuote:t.singleQuote);return[s,Ue(!1,r,s,`\\${s}`),s]}function In(e){let{ancestors:t}=e,r=t.findIndex(s=>s.type!=="SubExpression");return r!==-1&&t[r+1].type==="ConcatStatement"&&t[r+2].type==="AttrNode"}function Rn(e,t){let r=Ze(e,t),s=ke(e,t);return s?B([r,L,R(s)]):r}function ns(e,t){let r=Ze(e,t),s=ke(e,t);return s?[B([r,L,s]),H]:r}function Ze(e,t){return t("path")}function ke(e,t){var n;let{node:r}=e,s=[];return r.params.length>0&&s.push(...e.map(t,"params")),((n=r.hash)==null?void 0:n.pairs.length)>0&&s.push(t("hash")),s.length===0?"":yt(L,s)}function tr(e){return["as |",e.blockParams.join(" "),"|"]}var qn=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Vn=new Set(["true","false","null","undefined"]),Fn=(e,t)=>t===0&&e.startsWith("@")?!1:t!==0&&Vn.has(e)||/\s/u.test(e)||/^\d/u.test(e)||Array.prototype.some.call(e,r=>qn.has(r));function Hn(e){return e.tail.length===0&&e.original.includes("/")?e.original:[e.head.original,...e.tail].map((r,s)=>Fn(r,s)?`[${r}]`:r).join(".")}var Un={print:kn,massageAstNode:zr,hasPrettierIgnore:$r,getVisitorKeys:Wr,embed:Yr},hs=Un;var ps=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var xr={};He(xr,{glimmer:()=>Ci});var Mn=Object.freeze([]);function ms(){return Mn}var Wa=ms(),ja=ms();var er=Object.assign;var fs=console;function ds(e,t="unexpected unreachable branch"){throw fs.log("unreachable",e),fs.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")}var zn=function(){var e=function(it,d,k,g){for(k=k||{},g=it.length;g--;k[it[g]]=d);return k},t=[2,44],r=[1,20],s=[5,14,15,19,29,34,39,44,47,48,52,56,60],n=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],h=[1,33],p=[1,34],m=[1,37],S=[14,15,19,29,34,39,44,47,48,52,56,60],y=[14,15,19,29,34,44,47,48,52,56,60],E=[15,18],C=[14,15,19,29,34,47,48,52,56,60],P=[33,64,71,79,80,81,82,83,84],w=[23,33,55,64,67,71,74,79,80,81,82,83,84],U=[1,51],q=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],$=[2,43],Nt=[55,64,71,79,80,81,82,83,84],Ct=[1,58],X=[1,59],rt=[1,66],V=[33,64,71,74,79,80,81,82,83,84],Pt=[23,64,71,79,80,81,82,83,84],F=[1,76],st=[64,67,71,79,80,81,82,83,84],A=[33,74],nt=[23,33,55,67,71,74],ue=[1,106],De=[1,118],Ar=[71,76],_e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],Line truncated
`+x.showPosition()+`
Expecting `+pe.join(", ")+", got '"+(this.terminals_[O]||O)+"'":Ve="Parse error on line "+(at+1)+": Unexpected "+(O==Dr?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(Ve,{text:x.match,token:this.terminals_[O]||O,line:x.yylineno,loc:Ie,expected:pe})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gt+", token: "+O);switch(M[0]){case 1:g.push(O),N.push(x.yytext),l.push(x.yylloc),g.push(M[1]),O=null,Re?(O=Re,Re=null):(Yt=x.yyleng,u=x.yytext,at=x.yylineno,Ie=x.yylloc,Lr>0&&Lr--);break;case 2:if(Z=this.productions_[M[1]][1],At.$=N[N.length-Z],At._$={first_line:l[l.length-(Z||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Z||1)].first_column,last_column:l[l.length-1].last_column},Gs&&(At._$.range=[l[l.length-(Z||1)].range[0],l[l.length-1].range[1]]),qe=this.performAction.apply(At,[u,Yt,at,dt.yy,M[1],N,l].concat(Ys)),typeof qe<"u")return qe;Z&&(g=g.slice(0,-1*Z*2),N=N.slice(0,-1*Z),l=l.slice(0,-1*Z)),g.push(this.productions_[M[1]][0]),N.push(At.$),l.push(At._$),_r=xt[g[g.length-2]][g[g.length-1]],g.push(_r);break;case 3:return!0}}return!0}},Ms=function(){var it={EOF:1,parseError:function(k,g){if(this.yy.parser)this.yy.parser.parseError(k,g);else throw new Error(k)},setInput:function(d,k){return this.yy=k||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var k=d.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},unput:function(d){var k=d.length,g=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var N=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===b.length?this.yylloc.first_column:0)+b[b.length-g.length].length-g[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[N[0],N[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(d){this.unput(this.match.slice(d))},pastInput:function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var d=this.pastInput(),k=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
`+k+"^"},test_match:function(d,k){var g,b,N;if(this.options.backtrack_lexer&&(N={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(N.yylloc.range=this.yylloc.range.slice(0))),b=d[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],g=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var l in N)this[l]=N[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,k,g,b;this._more||(this.yytext="",this.match="");for(var N=this._currentRules(),l=0;l<N.length;l++)if(g=this._input.match(this.rules[N[l]]),g&&(!k||g[0].length>k[0].length)){if(k=g,b=l,this.options.backtrack_lexer){if(d=this.test_match(g,N[l]),d!==!1)return d;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(d=this.test_match(k,N[b]),d!==!1?d:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(k,g,b,N){function l(u,at){return g.yytext=g.yytext.substring(u,g.yyleng-at+u)}var xt=N;switch(b){case 0:if(g.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):g.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),g.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(g.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return g.yytext=l(1,2).replace(/\\"/g,'"'),79;break;case 32:return g.yytext=l(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return g.yytext=g.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return it}();_e.lexer=Ms;function Oe(){this.yy={}}return Oe.prototype=_e,_e.Parser=Oe,new Oe}(),Se=zn;var rr=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function sr(e,t){var r=t&&t.loc,s,n,i,a;r&&(s=r.start.line,n=r.end.line,i=r.start.column,a=r.end.column,e+=" - "+s+":"+i);for(var o=Error.prototype.constructor.call(this,e),c=0;c<rr.length;c++)this[rr[c]]=o[rr[c]];Error.captureStackTrace&&Error.captureStackTrace(this,sr);try{r&&(this.lineNumber=s,this.endLineNumber=n,Object.defineProperty?(Object.defineProperty(this,"column",{value:i,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=i,this.endColumn=a))}catch{}}sr.prototype=new Error;var ot=sr;function ve(){this.parents=[]}ve.prototype={constructor:ve,mutating:!1,acceptKey:function(e,t){var r=this.accept(e[t]);if(this.mutating){if(r&&!ve.prototype[r.type])throw new ot('Unexpected node type "'+r.type+'" found when accepting '+t+" on "+e.type);e[t]=r}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new ot(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,r=e.length;t<r;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,r--)},accept:function(e){if(e){if(!this[e.type])throw new ot("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||tLine truncated
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
`)}var ur=function(){function e(t,r,s){s===void 0&&(s="precompile"),this.delegate=t,this.entityParser=r,this.mode=s,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var n=this.peek();if(n==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&n===`
`){var i=this.tagNameBuffer.toLowerCase();(i==="pre"||i==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var n=this.peek(),i=this.tagNameBuffer;n==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):n==="&"&&i!=="script"&&i!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(n))},tagOpen:function(){var n=this.consume();n==="!"?this.transitionTo("markupDeclarationOpen"):n==="/"?this.transitionTo("endTagOpen"):(n==="@"||n===":"||vs(n))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(n))},markupDeclarationOpen:function(){var n=this.consume();if(n==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();i==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var n=this.consume();_(n)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var n=this.consume();_(n)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase()))},doctypeName:function(){var n=this.consume();_(n)?this.transitionTo("afterDoctypeName"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase())},afterDoctypeName:function(){var n=this.consume();if(!_(n))if(n===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=i.toUpperCase()==="PUBLIC",o=i.toUpperCase()==="SYSTEM";(a||o)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):o&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var n=this.peek();_(n)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):n==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):n==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):n===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},doctypePublicIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},afterDoctypePublicIdentifier:function(){var n=this.consume();_(n)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var n=this.consume();_(n)||(n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},doctypeSystemIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},afterDoctypeSystemIdentifier:function(){var n=this.consume();_(n)||n===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var n=this.consume();n==="-"?this.transitionTo("commentStartDash"):n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(n),this.transitionTo("comment"))},commentStartDash:function(){var n=this.consum Line truncated
`?(this.line++,this.column=0):this.column++,t},e.prototype.consumeCharRef=function(){var t=this.input.indexOf(";",this.index);if(t!==-1){var r=this.input.slice(this.index,t),s=this.entityParser.parse(r);if(s){for(var n=r.length;n;)this.consume(),n--;return this.consume(),s}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(t){this.tagNameBuffer+=t,this.delegate.appendToTagName(t)},e.prototype.isIgnoredEndTag=function(){var t=this.tagNameBuffer;return t==="title"&&this.input.substring(this.index,this.index+8)!=="</title>"||t==="style"&&this.input.substring(this.index,this.index+8)!=="</style>"||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e}(),ao=function(){function e(t,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new ur(this,t,r.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var r=0;r<arguments.length;r++)if(t.type===arguments[r])return t;throw new Error("token type was unexpectedly "+t.type)},e.prototype.push=function(t){this.token=t,this.tokens.push(t)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(t){this.current("Doctype").name+=t},e.prototype.appendToDoctypePublicIdentifier=function(t){var r=this.current("Doctype");r.publicIdentifier===void 0?r.publicIdentifier=t:r.publicIdentifier+=t},e.prototype.appendToDoctypeSystemIdentifier=function(t){var r=this.current("Doctype");r.systemIdentifier===void 0?r.systemIdentifier=t:r.systemIdentifier+=t},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(t){this.current("Chars").chars+=t},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(t){this.current("Comment").chars+=t},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(t){this.current("StartTag","EndTag").tagName+=t},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(t){this.currentAttribute()[0]+=t},e.prototype.beginAttributeValue=function(t){this.currentAttribute()[2]=t},e.prototype.appendToAttributeValue=function(t){this.currentAttribute()[1]+=t},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(t){this.current().syntaxError=t},e}();var Ne={Append:1,TrustingAppend:2,Comment:3,Modifier:4,StrictModifier:5,Block:6,StrictBlock:7,Component:8,OpenElement:10,OpenElementWithSplat:11,FlushElement:12,CloseElement:13,StaticAttr:14,DynamicAttr:15,ComponentAttr:16,AttrSplat:17,Yield:18,DynamicArg:20,StaticArg:21,TrustingDynamicAttr:22,TrustingComponentAttr:23,StaticComponentAttr:24,Debugger:26,Undefined:27,Call:28,Concat:29,GetSymbol:30,GetLexicalSymbol:32,GetStrictKeyword:31,GetFreeAsComponentOrHelperHead:35,GetFreeAsHelperHead:37,GetFreeAsModifierHead:38,GetFreeAsComponentHead:39,InElement:40,If:41,Each:42,Let:44,WithDynamicVars:45,InvokeComponent:46,HasBlock:48,HasBlockParams:49,Curry:50,Not:51,IfInline:52,GetDynamicVar:53,Log:54};function ws(e){return function(t){return Array.isArray(t)&&t[0]===e}}var lo=ws(Ne.FlushElement);var co=ws(Ne.GetSymbol);var Ds=!1,ai=/["\x26\xa0]/u,ko=new RegExp(ai.source,"gu"),oi=/[&<>\xa0]/u,So=new RegExp(oi.source,"gu");var gr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function li(e){var t;return gr.has(e.toLowerCase())&&((t=e[0])==null?void 0:t.toLowerCase())===e[0]}function ce(e){ Line truncated
`,s);if(t<=n||n===-1)return{line:r+1,column:t-s};r+=1,s=n+1}}charPosFor(t){let{line:r,column:s}=t,n=this.source.length,i=0,a=0;for(;a<n;){let o=this.source.indexOf(`
`,a);if(o===-1&&(o=this.source.length),i===r-1){if(a+s>o)return o;if(Ds){let c=this.hbsPosFor(a+s);c.line,c.column}return a+s}if(o===-1)return 0;i+=1,a=o+1}return n}};function v(e,t){let{module:r,loc:s}=t,{line:n,column:i}=s.start,a=t.asString(),o=a?`
|
| ${a.split(`
`).join(`
| `)}
|
`:"",c=new Error(`${e}: ${o}(error occurred in '${r}' @ line ${n} : column ${i})`);return c.name="SyntaxError",c.location=t,c.code=a,c}var pi={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},Pr=function(){function e(t,r,s,n){let i=Error.call(this,t);this.key=n,this.message=t,this.node=r,this.parent=s,i.stack&&(this.stack=i.stack)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}();function Ts(e,t,r){return new Pr("Cannot remove a node unless it is part of an array",e,t,r)}function fi(e,t,r){return new Pr("Cannot replace a node with multiple nodes unless it is part of an array",e,t,r)}function Ns(e,t){return new Pr("Replacing and removing in key handlers is not yet supported.",e,null,t)}var zt=class{constructor(t,r=null,s=null){this.node=t,this.parent=r,this.parentKey=s}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new vr(this)}}},vr=class{constructor(t){this.path=t}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function Os(e){return typeof e=="function"?e:e.enter}function Bs(e){return typeof e=="function"?void 0:e.exit}function Ae(e,t){let r,s,n,{node:i,parent:a,parentKey:o}=t,c=function(h,p){if(h.Program&&(p==="Template"&&!h.Template||p==="Block"&&!h.Block))return h.Program;let m=h[p];return m!==void 0?m:h.All}(e,i.type);if(c!==void 0&&(r=Os(c),s=Bs(c)),r!==void 0&&(n=r(i,t)),n!=null){if(JSON.stringify(i)!==JSON.stringify(n))return Array.isArray(n)?(Is(e,n,a,o),n):Ae(e,new zt(n,a,o))||n;n=void 0}if(n===void 0){let h=pi[i.type];for(let p=0;p<h.length;p++)mi(e,c,t,h[p]);s!==void 0&&(n=s(i,t))}return n}function Cs(e,t,r){e[t]=r}function mi(e,t,r,s){let n,i,{node:a}=r,o=function(c,h){return c[h]}(a,s);if(o){if(t!==void 0){let c=function(h,p){let m=typeof h!="function"?h.keys:void 0;if(m===void 0)return;let S=m[p];return S!==void 0?S:m.All}(t,s);c!==void 0&&(n=Os(c),i=Bs(c))}if(n!==void 0&&n(a,s)!==void 0)throw Ns(a,s);if(Array.isArray(o))Is(e,o,r,s);else{let c=Ae(e,new zt(o,r,s));c!==void 0&&function(h,p,m,S){if(S===null)throw Ts(m,h,p);if(Array.isArray(S)){if(S.length!==1)throw S.length===0?Ts(m,h,p):fi(m,h,p);Cs(h,p,S[0])}else Cs(h,p,S)}(a,s,o,c)}if(i!==void 0&&i(a,s)!==void 0)throw Ns(a,s)}}function Is(e,t,r,s){for(let n=0;n<t.length;n++){let i=t[n],a=Ae(e,new zt(i,r,s));a!==void 0&&(n+=di(t,n,a)-1)}}function di(e,t,r){return r===null?(e.splice(t,1),0):Array.isArray(r)?(e.splice(t,1,...r),r.length):(e.splice(t,1,r),1)}function gi(e,t){Ae(t,new zt(e))}function Ht(e,t){(function(r){switch(r.type){case"Block":case"Template":return r.body;case"ElementNode":return r.children}})(e).push(t)}function Rs(e){return e.type==="StringLiteral"||e.type==="BooleanLiteral"||e.type==="NumberLiteral"||e.type==="NullLiteral"||e.type==="UndefinedLiteral"}var hr;function pr(){return hr||(hr=new wt("","(synthetic)")),hr}function Ps(e,t){return f.var({name:e,loc:T(t||null)})}function ct(e,t){let r=T(t||null);if(typeof e!="string"){if("type"in e)return e;{e.head.indexOf(".");let{head:i,tail:a}=e;return f.path({head:f.head({original:i,loc:r.sliceStartChars({chars:i.length})}),tail:a,loc:T(t||null)})}}let{head:s,tail:n}=function(i,a){let[o,...c]=i.split("."),h=f.head({original:o,loc:T(a||null)});return f.path({head:h,tail:c,loc:T(a||null)})}(e,r);return f.path({head:s,tail:n,loc:r})}function Pe(e,t,r){return f.literal({type:e,value:t,loc:T(r||null)})}function ie(e=[],t){return f.hash({pairs:e,loc:T(t||null)})}function qs(e){return e.map(t=>typeof t=="string"?f.var({name:t,loc:D.synthetic(t)}):t)}function xs(e=[],t=[],r=!1,s){return f.blockItself({body:e,params:qs(t),chained:r,loc:T(s||null)})}function As(e=[],t=[],r){return f.template({body:e,blockParams:t,loc:T(r||null)})}function T(...e){if(e.length===1){let t=e[0];return t&&typeof t=="object"?D.forHbsLoc(pr(),t):D.forHbsLoc(pr(),ui)}{let[t,r,s,n,i]=e,a=i?new wt("",i):pr();return D.forHbsLoc(a,{start:{line:t,column:r},end:{line:s||t,column:n||r}})}}var bi={mustache:function(e,t=[],r=ie([]),s=!1,n,i){return f.mustache({path:ct(e),params:t,hash:r,trusting:s,strip:i,loc:T(n||null)})},block:function(e,t,r,s,n=null,i,a,o,c){let h,p=null;return h=s.type==="Template"?f.blockItself({params:qs(s.blockParams),body:s.body,loc:s.loc}):s,(n==null?void 0:n.type)==="Template"?(n.blockParams.length,p=f.blockItself({params:[],body:n.body,loc:n.loc})):p=n,f.block({path:ct(e),params:t||[],hash:r||ie([]),defaultBlock:h,elseBlock:p,loc:T(i||null),openStrip:a,inverseStrip:o,closeStrip:c})} Line truncated
`)}},wr=class extends Er{parse(t,r){var i;t.loc;let s=f.template({body:[],blockParams:r,loc:this.source.spanFor(t.loc)}),n=this.parseProgram(s,t);return(i=this.pendingError)==null||i.eof(n.loc.getEnd()),n}Program(t,r){t.loc;let s=f.blockItself({body:[],params:r,chained:t.chained,loc:this.source.spanFor(t.loc)});return this.parseProgram(s,t)}parseProgram(t,r){if(r.body.length===0)return t;let s;try{this.elementStack.push(t);for(let n of r.body)this.acceptNode(n)}finally{s=this.elementStack.pop()}if(t!==s){if((s==null?void 0:s.type)==="ElementNode")throw v(`Unclosed element \`${s.tag}\``,s.loc);t.type}return t}BlockStatement(t){var m;if(this.tokenizer.state==="comment")return t.loc,void this.appendToCommentData(this.sourceForNode(t));if(this.tokenizer.state!=="data"&&this.tokenizer.state!=="beforeData")throw v("A block may only be used inside an HTML element or another block.",this.source.spanFor(t.loc));let{path:r,params:s,hash:n}=mr(this,t),i=this.source.spanFor(t.loc),a,o=[];if((m=t.program.blockParams)!=null&&m.length){let S=n.loc.collapse("end");S=t.program.loc?S.withEnd(this.source.spanFor(t.program.loc).getStart()):t.program.body[0]?S.withEnd(this.source.spanFor(t.program.body[0].loc).getStart()):S.withEnd(i.getEnd()),a=Ls(this.source,t,S);let y=S.asString(),E=y.indexOf("|")+1,C=y.indexOf("|",E);for(let P of t.program.blockParams){let w,U;w=E>=C?-1:y.indexOf(P,E),w===-1||w+P.length>C?(E=C,U=this.source.spanFor(br)):(E=w,U=S.sliceStartChars({skipStart:E,chars:P.length}),E+=P.length),o.push(f.var({name:P,loc:U}))}}else a=Ls(this.source,t,i);let c=this.Program(a.program,o),h=a.inverse?this.Program(a.inverse,[]):null,p=f.block({path:r,params:s,hash:n,defaultBlock:c,elseBlock:h,loc:this.source.spanFor(t.loc),openStrip:t.openStrip,inverseStrip:t.inverseStrip,closeStrip:t.closeStrip});Ht(this.currentElement(),p)}MustacheStatement(t){var o;(o=this.pendingError)==null||o.mustache(this.source.spanFor(t.loc));let{tokenizer:r}=this;if(r.state==="comment")return void this.appendToCommentData(this.sourceForNode(t));let s,{escaped:n,loc:i,strip:a}=t;if("original"in t.path&&t.path.original==="...attributes")throw v("Illegal use of ...attributes",this.source.spanFor(t.loc));if(Rs(t.path))s=f.mustache({path:this.acceptNode(t.path),params:[],hash:f.hash({pairs:[],loc:this.source.spanFor(t.path.loc).collapse("end")}),trusting:!n,loc:this.source.spanFor(i),strip:a});else{let{path:c,params:h,hash:p}=mr(this,t);s=f.mustache({path:c,params:h,hash:p,trusting:!n,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw v("Cannot use mustaches in an elements tagname",s.loc);case"beforeAttributeName":dr(this.currentStartTag,s);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),dr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":dr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(s),r.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(s);break;default:Ht(this.currentElement(),s)}return s}appendDynamicAttributeValuePart(t){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(t)}finalizeTextPart(){let t=this.currentAttr.currentPart;t!==null&&(this.currentAttr.parts.push(t),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(t){(function(r,s){let n=s.loc.start.line,i=s.loc.start.column,a=function(o,c){if(c==="")return{lines:o.split(`
`).length-1,columns:0};let[h]=o.split(c),p=h.split(/\n/u),m=p.length-1;return{lines:m,columns:p[m].length}}(s.original,s.value);n+=a.lines,a.lines?i=a.columns:i+=a.columns,r.line=n,r.column=i})(this.tokenizer,t),this.tokenizer.tokenizePart(t.value),this.tokenizer.flushData()}CommentStatement(t){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(t)),null;let{value:s,loc:n}=t,i=f.mustacheComment({value:s,loc:this.source.spanFor(n)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":Ht(this.currentElement(),i);break;default:throw v(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(t.loc))}return i}PartialStatement(t){throw v("Handlebars partials are not supported",this.source.spanFor(t.loc))}PartialBlockStatement(t){throw v("Handlebars partial blocks are not supported",this.source.spanFor(t.loc))}Decorator(t){throw v("Handlebars decorators are not supported",this.source.spanFor(t.loc))}DecoratorBlock(t){throw v("Handlebars decorator blocks are not supported",this.source.spanFor(t.loc))}SubExpression(t){let{path:r,params:s,hash:n}=mr(this,t);return f.sexpr({path:r,params:s,hash:n,loc:this.source.spanFor(t.loc)})}PathExpression(t){let{original:r}=t,s;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw v('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(t.loc));if(r.slice(0,3)==="../")throw v('Changing context using "../" is not supported in Glimmer',this.source.spanFor(t.loc));if(r.indexOf(".")!==-1)throw v("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(t.loc));s=[t.parts.join("/")]}else{if(r===".")throw v("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(t.loc));s=t.parts}let n,i=!1;if(/^this(?:\..+)?$/u.test(r)&&(i=!0),i)n=f.this({loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+4}})});else if(t.data){let a=s.shift();if(a===void 0)throw v("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(t.loc));n=f.atName({name:`@${a}`,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length+1}})})}else{let a=s.shift();if(a===void 0)throw v("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(t.loc));n=f.var({name:a,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length}})})}return f.path({head:n,tail:s,loc:this.source.spanFor(t.loc)})}Hash(t){let r=t.pairs.map(s=>f.pair({key:s.key,value:this.acceptNode(s.value),loc:this.source.spanFor(s.loc)}));return f.hash({pairs:r,loc:this.source.spanFor(t.loc)})}StringLiteral(t){return f.literal({type:"StringLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}BooleanLiteral(t){return f.literal({type:"BooleanLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}NumberLiteral(t){return f.literal({type:"NumberLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}UndefinedLiteral(t){return f.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(t.loc)})}NullLiteral(t){return f.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(t.loc)})}constructor(...t){super(...t),this.pendingError=null}};function mr(e,t){let r;switch(t.path.type){case"PathExpression":r=e.PathExpression(t.path);break;case"SubExpression":r=e.SubExpression(t.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let i;throw i=t.path.type==="BooleanLiteral"?t.path.original.toString():t.path.type==="StringLiteral"?`"${t.path.original}"`:t.path.type==="NullLiteral"?"null":t.path.type==="NumberLiteral"?t.path.value.toString():"undefined",v(`${t.path.type} "${t.path.type==="StringLiteral"?t.path.original:i}" cannot be called as a sub-expression, replace (${i}) with ${i}`,e.source.spanFor(t.path.loc))}}let s=t.params.map(i=>e.acceptNode(i)),n=ce(s)?Cr(s).loc:r.loc;return{path:r,params:s,hash:t.hash?e.Hash(t.hash):f.hash({pairs:[],loc:e.source.spanFor(n).collapse("end")})}}function dr(e,t){let{path:r,params:s,hash:n,loc:i}=t;if(Rs(r)){let o=`{{${function(c){return c.type==="UndefinedLiteral"?"undefined":JSON.stringify(c.value)}(r)}}}`;throw v(`In <${e.name} ... ${o} ..., ${o} is not a valid modifier`,t.loc)}let a=f.elementModifier({path:r,params:s,hash:n,loc:i});e.modifiers.push(a)}function Ls(e,t,r){if(!t.program.loc){let n=G(!1,t.program.body,0),i=G(!1,t.program.body,-1);if(n&&i)t.program.loc={...n.loc,end:i.loc.end};else{let a=e.spanFor(t.loc);t.program.loc=r.withEnd(a.getEnd())}}let s=e.spanFor(t.program.loc).getEnd();return t.inverse&&!t.inverse.loc&&(t.inverse.loc=s.collapsed()),t}function Ft(e){return/[\t\n\f ]/u.test(e)}var TLine truncated
`?s?s.loc.getEnd():this.currentAttr.valueSpan.getStart():i.move(-1),this.currentAttr.currentPart=f.text({chars:t,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let t=this.currentTag,r=this.offset();if(t.type==="EndTag")throw v("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:t.start.toJSON(),end:r.toJSON()}));let{name:s,parts:n,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(s.startsWith("|")&&n.length===0&&!a&&!o)throw v("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(s.length)));let h=this.assembleAttributeValue(n,a,o,i.until(r));h.loc=c.withEnd(r);let p=f.attr({name:s,value:h,loc:i.until(r)});this.currentStartTag.attributes.push(p)}parsePossibleBlockParams(){let t=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;this.tokenizer.state;let r=this.currentStartTag,s=this.currentAttr,n={state:"PossibleAs"},i={PossibleAs:o=>{if(n.state,Ft(o))n={state:"BeforeStartPipe"},this.tokenizer.transitionTo("afterAttributeName"),this.tokenizer.consume();else{if(o==="|")throw v('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',s.start.until(this.offset().move(1)));n={state:"Done"}}},BeforeStartPipe:o=>{n.state,Ft(o)?this.tokenizer.consume():o==="|"?(n={state:"BeforeBlockParamName"},this.tokenizer.transitionTo("beforeAttributeName"),this.tokenizer.consume()):n={state:"Done"}},BeforeBlockParamName:o=>{if(n.state,Ft(o))this.tokenizer.consume();else if(o==="")n={state:"Done"},this.pendingError={mustache(c){throw v("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw v('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"){if(r.params.length===0)throw v("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",s.start.until(this.offset().move(1)));n={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw v('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n={state:"BlockParamName",name:o,start:this.offset()},this.tokenizer.consume()}},BlockParamName:o=>{if(n.state,o==="")n={state:"Done"},this.pendingError={mustache(c){throw v("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw v('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"||Ft(o)){let c=n.start.until(this.offset());if(n.name==="this"||t.test(n.name))throw v(`Invalid block parameters syntax: invalid identifier name \`${n.name}\``,c);r.params.push(f.var({name:n.name,loc:c})),n=o==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw v('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n.name+=o,this.tokenizer.consume()}},AfterEndPipe:o=>{n.state,Ft(o)?this.tokenizer.consume():o===""?(n={state:"Done"},this.pendingError={mustache(c){throw v("Invalid block parameters syntax: modifiers cannot follow parameters list",c)},eof(c){throw v('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}}):o===">"||o==="/"?n={state:"Done"}:(n={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:o=>{if(n.state,o===""||o==="/"||o===">"||Ft(o))throw v(n.message,n.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{}},a;do a=this.tokenizer.peek(),i[n.state](a);while(n.state!=="Done"&&a!=="");n.state}reportSyntaxError(t){throw v(t,this.offset().collapsed())}assembleConcatenatedValue(t){let r=ci(t),s=Cr(t);return f.concat({parts:t,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(s.loc))})}validateEndTag(t,r,s){if(gr.has(t.name)&&!s)throw v(`<${t.name}> elements do not need end tags. You should remove it`,t.loc);if(r.type!=="ElementNode")throw v(`Closing tag </${t.name}> without an open tag`,t.loc);if(r.tag!==t.name)throw v(`Closing tag </${t.name}> did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,t.loc)}assembleAttributeValue(t,r,s,n){if(s){if(r)return this.assembleConcatenatedValue(t);{let[i,a]=t;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw v("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",n)}}return ce(t)?t[0]:f.text({chars:"",loc:n})}constructor(...t){super(...t),this.tagOpenLine=0,this.tagOpenColumn=0}},yi={},Nr=class extends cr{constructor(){super({})}parse(){}};function Vs(e,t={}){var c,h,p;let r,s,n,i=t.mode||"precomLine truncated
`,Fs="\r",Hs=function(){function e(t){this.length=t.length;for(var r=[0],s=0;s<t.length;)switch(t[s]){case Le:s+=Le.length,r.push(s);break;case Fs:s+=Fs.length,t[s]===Le&&(s+=Le.length),r.push(s);break;default:s++;break}this.offsets=r}return e.prototype.locationForIndex=function(t){if(t<0||t>this.length)return null;for(var r=0,s=this.offsets;s[r+1]<=t;)r++;var n=t-s[r];return{line:r,column:n}},e.prototype.indexForLocation=function(t){var r=t.line,s=t.column;return r<0||r>=this.offsets.length||s<0||s>this.lengthOfLine(r)?null:this.offsets[r]+s},e.prototype.lengthOfLine=function(t){var r=this.offsets[t],s=t===this.offsets.length-1?this.length:this.offsets[t+1];return s-r},e}();function Si(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Us=Si;function vi(e){let t=e.children??e.body;if(t)for(let r=0;r<t.length-1;r++)t[r].type==="TextNode"&&t[r+1].type==="MustacheStatement"&&(t[r].chars=t[r].chars.replace(/\\$/u,"\\\\"))}function Ei(e){let t=new Hs(e),r=({line:n,column:i})=>t.indexForLocation({line:n-1,column:i}),s=n=>{let{start:i,end:a}=n.loc;i.offset=r(i),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(n){s(n),vi(n)}}})}function wi(e){let t;try{t=Vs(e,{mode:"codemod",plugins:{ast:[Ei(e)]}})}catch(r){let s=Ni(r);if(s){let n=Ti(r);throw Us(n,{loc:s,cause:r})}throw r}return t}function Ti(e){let{message:t}=e,r=t.split(`
`);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(G(!1,r,-2))?G(!1,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(G(!1,r,-1))&&r[1]===""&&G(!1,r,-2)===""&&r.slice(2,-2).every(s=>s.startsWith("|"))?r[0].trim().slice(0,-1):t}function Ni(e){let{location:t,hash:r}=e;if(t){let{start:s,end:n}=t;return typeof n.line!="number"?{start:s}:t}if(r){let{loc:{last_line:s,last_column:n}}=r;return{start:{line:s,column:n+1}}}}var Ci={parse:wi,astFormat:"glimmer",locStart:St,locEnd:re};var Pi={glimmer:hs};return $s(xi);});
+30
View File
@@ -0,0 +1,30 @@
var Ws=Object.defineProperty;var Or=e=>{throw TypeError(e)};var Fe=(e,t)=>{for(var r in t)Ws(e,r,{get:t[r],enumerable:!0})};var Br=(e,t,r)=>t.has(e)||Or("Cannot "+r);var I=(e,t,r)=>(Br(e,t,"read from private field"),r?r.call(e):t.get(e)),Lt=(e,t,r)=>t.has(e)?Or("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,r),Y=(e,t,r,s)=>(Br(e,t,"write to private field"),s?s.call(e,r):t.set(e,r),r);var Pr={};Fe(Pr,{languages:()=>ps,parsers:()=>xr,printers:()=>wi});var js=(e,t,r,s)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(r,s):r.global?t.replace(r,s):t.split(r).join(s)},He=js;var Dt="string",Gt="array",Kt="cursor",_t="indent",Ot="align",Wt="trim",Bt="group",It="fill",bt="if-break",jt="indent-if-break",Qt="line-suffix",Jt="line-suffix-boundary",j="line",$t="label",Rt="break-parent",fe=new Set([Kt,_t,Ot,Wt,Bt,It,bt,jt,Qt,Jt,j,$t,Rt]);var Qs=(e,t,r)=>{if(!(e&&t==null))return Array.isArray(t)||typeof t=="string"?t[r<0?t.length+r:r]:t.at(r)},G=Qs;function Js(e){if(typeof e=="string")return Dt;if(Array.isArray(e))return Gt;if(!e)return;let{type:t}=e;if(fe.has(t))return t}var qt=Js;var $s=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function Xs(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
Expected it to be 'string' or 'object'.`;if(qt(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let s=$s([...fe].map(n=>`'${n}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${s}.`}var Ue=class extends Error{name="InvalidDocError";constructor(t){super(Xs(t)),this.doc=t}},Me=Ue;function tn(e,t){if(typeof e=="string")return t(e);let r=new Map;return s(e);function s(i){if(r.has(i))return r.get(i);let a=n(i);return r.set(i,a),a}function n(i){switch(qt(i)){case Gt:return t(i.map(s));case It:return t({...i,parts:i.parts.map(s)});case bt:return t({...i,breakContents:s(i.breakContents),flatContents:s(i.flatContents)});case Bt:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(s),o=a[0]):o=s(o),t({...i,contents:o,expandedStates:a})}case Ot:case _t:case jt:case $t:case Qt:return t({...i,contents:s(i.contents)});case Dt:case Kt:case Wt:case Jt:case j:case Rt:return t(i);default:throw new Me(i)}}}function Ir(e,t=Rr){return tn(e,r=>typeof r=="string"?yt(t,r.split(`
`)):r)}var ze=()=>{},kt=ze,Ye=ze,qr=ze;function B(e){return kt(e),{type:_t,contents:e}}function en(e,t){return kt(t),{type:Ot,contents:t,n:e}}function R(e,t={}){return kt(e),Ye(t.expandedStates,!0),{type:Bt,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function Xt(e){return en(-1,e)}function Ge(e){return qr(e),{type:It,parts:e}}function Ke(e,t="",r={}){return kt(e),t!==""&&kt(t),{type:bt,breakContents:e,flatContents:t,groupId:r.groupId}}var Vr={type:Rt};var rn={type:j,hard:!0},sn={type:j,hard:!0,literal:!0},L={type:j},H={type:j,soft:!0},tt=[rn,Vr],Rr=[sn,Vr];function yt(e,t){kt(e),Ye(t);let r=[];for(let s=0;s<t.length;s++)s!==0&&r.push(e),r.push(t[s]);return r}var me="'",Fr='"';function nn(e,t){let r=t===!0||t===me?me:Fr,s=r===me?Fr:me,n=0,i=0;for(let a of e)a===r?n++:a===s&&i++;return n>i?s:r}var de=nn;function We(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var z,je=class{constructor(t){Lt(this,z);Y(this,z,new Set(t))}getLeadingWhitespaceCount(t){let r=I(this,z),s=0;for(let n=0;n<t.length&&r.has(t.charAt(n));n++)s++;return s}getTrailingWhitespaceCount(t){let r=I(this,z),s=0;for(let n=t.length-1;n>=0&&r.has(t.charAt(n));n--)s++;return s}getLeadingWhitespace(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(0,r)}getTrailingWhitespace(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(t.length-r)}hasLeadingWhitespace(t){return I(this,z).has(t.charAt(0))}hasTrailingWhitespace(t){return I(this,z).has(G(!1,t,-1))}trimStart(t){let r=this.getLeadingWhitespaceCount(t);return t.slice(r)}trimEnd(t){let r=this.getTrailingWhitespaceCount(t);return t.slice(0,t.length-r)}trim(t){return this.trimEnd(this.trimStart(t))}split(t,r=!1){let s=`[${We([...I(this,z)].join(""))}]+`,n=new RegExp(r?`(${s})`:s,"u");return t.split(n)}hasWhitespaceCharacter(t){let r=I(this,z);return Array.prototype.some.call(t,s=>r.has(s))}hasNonWhitespaceCharacter(t){let r=I(this,z);return Array.prototype.some.call(t,s=>!r.has(s))}isWhitespaceOnly(t){let r=I(this,z);return Array.prototype.every.call(t,s=>r.has(s))}};z=new WeakMap;var Hr=je;var an=[" ",`
`,"\f","\r"," "],on=new Hr(an),K=on;function ln(e){return Array.isArray(e)&&e.length>0}var Zt=ln;var Qe=class extends Error{name="UnexpectedNodeError";constructor(t,r,s="type"){super(`Unexpected ${r} node ${s}: ${JSON.stringify(t[s])}.`),this.node=t}},Ur=Qe;function Mr(e,t,r){if(e.type==="TextNode"){let s=e.chars.trim();if(!s)return null;r.tag==="style"&&r.children.length===1&&r.children[0]===e?t.chars="":t.chars=K.split(s).join(" ")}e.type==="ElementNode"&&(delete t.startTag,delete t.openTag,delete t.parts,delete t.endTag,delete t.closeTag,delete t.nameNode,delete t.body,delete t.blockParamNodes,delete t.params,delete t.path),e.type==="Block"&&(delete t.blockParamNodes,delete t.params),e.type==="AttrNode"&&e.name.toLowerCase()==="class"&&delete t.value,e.type==="PathExpression"&&(t.head=e.head.original)}Mr.ignoredProperties=new Set(["loc","selfClosing"]);var zr=Mr;function cn(e){let{node:t}=e;if(t.type!=="TextNode")return;let{parent:r}=e;if(!(r.type==="ElementNode"&&r.tag==="style"&&r.children.length===1&&r.children[0]===t))return;let s=r.attributes.find(n=>n.type==="AttrNode"&&n.name==="lang");if(!(s&&!(s.value.type==="TextNode"&&(s.value.chars===""||s.value.chars==="css"))))return async n=>{let i=await n(t.chars,{parser:"css"});return i?[tt,i,Xt(H)]:[]}}var Yr=cn;var te=null;function ee(e){if(te!==null&&typeof te.property){let t=te;return te=ee.prototype=null,t}return te=ee.prototype=e??Object.create(null),new ee}var un=10;for(let e=0;e<=un;e++)ee();function Je(e){return ee(e)}function hn(e,t="type"){Je(e);function r(s){let n=s[t],i=e[n];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${n}'.`),{node:s});return i}return r}var Gr=hn;var Kr={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]};var pn=Gr(Kr),Wr=pn;function St(e){return e.loc.start.offset}function re(e){return e.loc.end.offset}var jr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function Jr(e){return e.toUpperCase()===e}function fn(e){return e.type==="ElementNode"&&typeof e.tag=="string"&&!e.tag.startsWith(":")&&(Jr(e.tag[0])||e.tag.includes("."))}function mn(e){return jr.has(e.toLowerCase())&&!Jr(e[0])}function $e(e){return e.selfClosing===!0||mn(e.tag)||fn(e)&&e.children.every(t=>ge(t))}function ge(e){return e.type==="TextNode"&&!/\S/u.test(e.chars)}function Qr(e){return(e==null?void 0:e.type)==="MustacheCommentStatement"&&typeof e.value=="string"&&e.value.trim()==="prettier-ignore"}function $r(e){return Qr(e.node)||e.isInArray&&(e.key==="children"||e.key==="body"||e.key==="parts")&&Qr(e.siblings[e.index-2])}var is=2;function dn(e,t,r){var n,i,a,o,c,h,p,m,S;let{node:s}=e;switch(s.type){case"Block":case"Program":case"Template":return R(e.map(r,"body"));case"ElementNode":{let y=R(bn(e,r)),E=t.htmlWhitespaceSensitivity==="ignore"&&((n=e.next)==null?void 0:n.type)==="ElementNode"?H:"";if($e(s))return[y,E];let C=["</",s.tag,">"];return s.children.length===0?[y,B(C),E]:t.htmlWhitespaceSensitivity==="ignore"?[y,B(Xr(e,t,r)),tt,B(C),E]:[y,B(R(Xr(e,t,r))),B(C),E]}case"BlockStatement":return wn(e)?[Tn(e,r),es(e,r,t),rs(e,r,t)]:[vn(e,r),R([es(e,r,t),rs(e,r,t),Nn(e,r,t)])];case"ElementModifierStatement":return R(["{{",ns(e,r),"}}"]);case"MustacheStatement":return R([be(s),ns(e,r),ye(s)]);case"SubExpression":return R(["(",_n(e,r),H,")"]);case"AttrNode":{let{name:y,value:E}=s,C=E.type==="TextNode";if(C&&E.chars===""&&St(E)===re(E))return y;let w=C?de(E.chars,t.singleQuote):E.type==="ConcatStatement"?de(E.parts.map(q=>q.type==="TextNode"?q.chars:"").join(""),t.singleQuote):"",U=r("value");return[y,"=",w,y==="class"&&w?R(B(U)):U,w]}case"ConcatStatement":return e.map(r,"parts");case"Hash":return yt(L,e.map(r,"pairs"));case"HashPair":return[s.key,"=",r("value")];case"TextNode":{if(e.parent.tag==="pre"||e.parent.tag==="style")return s.chars;let y=He(!1,s.chars,"{{",String.raw`\{{`),E=xn(e);if(E){if(E==="class"){let X=y.trim().split(/\s+/u).join(" "),rt=!1,V=!1;return e.parent.type==="ConcatStatement"&&(((i=e.previous)==null?void 0:i.type)==="MustacheStatement"&&/^\s/u.test(y)&&(rt=!0),((a=e.next)==null?void 0:a.type)==="MustacheStatement"&&/\s$/u.test(y)&&X!==""&&(V=!0)),[rt?L:"",X,V?L:""]}return Ir(y)}let C=K.isWhitespaceOnly(y),{isFirst:x,isLast:w}=e;if(t.htmlWhitespaceSensitivity!=="ignore"){let X=w&&e.parent.type==="Template",rt=x&&e.parent.type==="Template";if(C){if(rt||X)return"";let A=[L],nt=Vt(y);return nt&&(A=se(nt)),w&&(A=A.map(ue=>Xt(ue))),A}let V=K.getLeadingWhitespace Line truncated
`).length-1}function Pn(e){e=typeof e=="string"?e:"";let t=(e.match(/^([^\S\n\r]*[\n\r])+/gu)||[])[0]||"";return Vt(t)}function An(e){e=typeof e=="string"?e:"";let t=(e.match(/([\n\r][^\S\n\r]*)+$/gu)||[])[0]||"";return Vt(t)}function se(e=0){return Array.from({length:Math.min(e,is)}).fill(tt)}function Ln(e,t){let{node:{value:r}}=e,s=de(r,Dn(e)?!t.singleQuote:t.singleQuote);return[s,He(!1,r,s,`\\${s}`),s]}function Dn(e){let{ancestors:t}=e,r=t.findIndex(s=>s.type!=="SubExpression");return r!==-1&&t[r+1].type==="ConcatStatement"&&t[r+2].type==="AttrNode"}function _n(e,t){let r=Xe(e,t),s=ke(e,t);return s?B([r,L,R(s)]):r}function ns(e,t){let r=Xe(e,t),s=ke(e,t);return s?[B([r,L,s]),H]:r}function Xe(e,t){return t("path")}function ke(e,t){var n;let{node:r}=e,s=[];return r.params.length>0&&s.push(...e.map(t,"params")),((n=r.hash)==null?void 0:n.pairs.length)>0&&s.push(t("hash")),s.length===0?"":yt(L,s)}function Ze(e){return["as |",e.blockParams.join(" "),"|"]}var On=new Set("!\"#%&'()*+,./;<=>@[\\]^`{|}~"),Bn=new Set(["true","false","null","undefined"]),In=(e,t)=>t===0&&e.startsWith("@")?!1:t!==0&&Bn.has(e)||/\s/u.test(e)||/^\d/u.test(e)||Array.prototype.some.call(e,r=>On.has(r));function Rn(e){return e.tail.length===0&&e.original.includes("/")?e.original:[e.head.original,...e.tail].map((r,s)=>In(r,s)?`[${r}]`:r).join(".")}var qn={print:dn,massageAstNode:zr,hasPrettierIgnore:$r,getVisitorKeys:Wr,embed:Yr},hs=qn;var ps=[{linguistLanguageId:155,name:"Handlebars",type:"markup",color:"#f7931e",aliases:["hbs","htmlbars"],extensions:[".handlebars",".hbs"],tmScope:"text.html.handlebars",aceMode:"handlebars",parsers:["glimmer"],vscodeLanguageIds:["handlebars"]}];var xr={};Fe(xr,{glimmer:()=>Ei});var Vn=Object.freeze([]);function ms(){return Vn}var Ma=ms(),za=ms();var tr=Object.assign;var fs=console;function ds(e,t="unexpected unreachable branch"){throw fs.log("unreachable",e),fs.log(`${t} :: ${JSON.stringify(e)} (${e})`),new Error("code reached unreachable")}var Fn=function(){var e=function(it,d,k,g){for(k=k||{},g=it.length;g--;k[it[g]]=d);return k},t=[2,44],r=[1,20],s=[5,14,15,19,29,34,39,44,47,48,52,56,60],n=[1,35],i=[1,38],a=[1,30],o=[1,31],c=[1,32],h=[1,33],p=[1,34],m=[1,37],S=[14,15,19,29,34,39,44,47,48,52,56,60],y=[14,15,19,29,34,44,47,48,52,56,60],E=[15,18],C=[14,15,19,29,34,47,48,52,56,60],x=[33,64,71,79,80,81,82,83,84],w=[23,33,55,64,67,71,74,79,80,81,82,83,84],U=[1,51],q=[23,33,55,64,67,71,74,79,80,81,82,83,84,86],$=[2,43],Nt=[55,64,71,79,80,81,82,83,84],Ct=[1,58],X=[1,59],rt=[1,66],V=[33,64,71,74,79,80,81,82,83,84],xt=[23,64,71,79,80,81,82,83,84],F=[1,76],st=[64,67,71,79,80,81,82,83,84],A=[33,74],nt=[23,33,55,67,71,74],ue=[1,106],De=[1,118],Ar=[71,76],_e={trace:function(){},yy:{},symbols_:{error:2,root:3,program:4,EOF:5,program_repetition0:6,statement:7,mustache:8,block:9,rawBlock:10,partial:11,partialBlock:12,content:13,COMMENT:14,CONTENT:15,openRawBlock:16,rawBlock_repetition0:17,END_RAW_BLOCK:18,OPEN_RAW_BLOCK:19,helperName:20,openRawBlock_repetition0:21,openRawBlock_option0:22,CLOSE_RAW_BLOCK:23,openBlock:24,block_option0:25,closeBlock:26,openInverse:27,block_option1:28,OPEN_BLOCK:29,openBlock_repetition0:30,openBlock_option0:31,openBlock_option1:32,CLOSE:33,OPEN_INVERSE:34,openInverse_repetition0:35,openInverse_option0:36,openInverse_option1:37,openInverseChain:38,OPEN_INVERSE_CHAIN:39,openInverseChain_repetition0:40,openInverseChain_option0:41,openInverseChain_option1:42,inverseAndProgram:43,INVERSE:44,inverseChain:45,inverseChain_option0:46,OPEN_ENDBLOCK:47,OPEN:48,expr:49,mustache_repetition0:50,mustache_option0:51,OPEN_UNESCAPED:52,mustache_repetition1:53,mustache_option1:54,CLOSE_UNESCAPED:55,OPEN_PARTIAL:56,partial_repetition0:57,partial_option0:58,openPartialBlock:59,OPEN_PARTIAL_BLOCK:60,openPartialBlock_repetition0:61,openPartialBlock_option0:62,sexpr:63,OPEN_SEXPR:64,sexpr_repetition0:65,sexpr_option0:66,CLOSE_SEXPR:67,hash:68,hash_repetition_plus0:69,hashSegment:70,ID:71,EQUALS:72,blockParams:73,OPEN_BLOCK_PARAMS:74,blockParams_repetition_plus0:75,CLOSE_BLOCK_PARAMS:76,path:77,dataName:78,STRING:79,NUMBER:80,BOOLEAN:81,UNDEFINED:82,NULL:83,DATA:84,pathSegments:85,SEP:86,$accept:0,$end:1},terminals_:{2:"error",5:"EOF",14:"COMMENT",15:"CONTENT",18:"END_RAW_BLOCK",19:"OPEN_RAW_BLOCK",23:"CLOSE_RAW_BLOCK",29:"OPEN_BLOCK",33:"CLOSE",34:"OPEN_INVERSE",39:"OPEN_INVERSE_CHAIN",44:"INVERSE",47:"OPEN_ENDBLOCK",48:"OPEN",52:"OPEN_UNESCAPED",55:"CLOSE_UNESCAPED",56:"OPEN_PARTIAL",60:"OPEN_PARTIAL_BLOCK",64:"OPEN_SEXPR",67:"CLOSE_SEXPR",71:"ID",72:"EQUALS",74:"OPEN_BLOCK_PARAMS",76:"CLOSE_BLOCK_PARAMS",79:"STRING",80:"NUMBER",81:"BOOLEAN",82:"UNDEFINED",83:"NULL",84:"DATA",86:"SEP"},productions_:[0,[3,2],[4,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[7,1],[13,1],[10,3],[16,5],[9,4],[9,4],[24,6],[27,6],[38,6],[43,2],[45,3],[45,1],[26,3],[8,5],[8,5],[11,5],[12,3],[59,5],[49,1],[49,1],[63,5],[68,1],[70,3],[73,3],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[20,1],[78,2],[77,1],[85,3],[85,1],[6,0],[6,2],[17,0],[17,2],Line truncated
`+P.showPosition()+`
Expecting `+pe.join(", ")+", got '"+(this.terminals_[O]||O)+"'":Ve="Parse error on line "+(at+1)+": Unexpected "+(O==Dr?"end of input":"'"+(this.terminals_[O]||O)+"'"),this.parseError(Ve,{text:P.match,token:this.terminals_[O]||O,line:P.yylineno,loc:Ie,expected:pe})}if(M[0]instanceof Array&&M.length>1)throw new Error("Parse Error: multiple actions possible at state: "+gt+", token: "+O);switch(M[0]){case 1:g.push(O),N.push(P.yytext),l.push(P.yylloc),g.push(M[1]),O=null,Re?(O=Re,Re=null):(Yt=P.yyleng,u=P.yytext,at=P.yylineno,Ie=P.yylloc,Lr>0&&Lr--);break;case 2:if(Z=this.productions_[M[1]][1],At.$=N[N.length-Z],At._$={first_line:l[l.length-(Z||1)].first_line,last_line:l[l.length-1].last_line,first_column:l[l.length-(Z||1)].first_column,last_column:l[l.length-1].last_column},Gs&&(At._$.range=[l[l.length-(Z||1)].range[0],l[l.length-1].range[1]]),qe=this.performAction.apply(At,[u,Yt,at,dt.yy,M[1],N,l].concat(Ys)),typeof qe<"u")return qe;Z&&(g=g.slice(0,-1*Z*2),N=N.slice(0,-1*Z),l=l.slice(0,-1*Z)),g.push(this.productions_[M[1]][0]),N.push(At.$),l.push(At._$),_r=Pt[g[g.length-2]][g[g.length-1]],g.push(_r);break;case 3:return!0}}return!0}},Ms=function(){var it={EOF:1,parseError:function(k,g){if(this.yy.parser)this.yy.parser.parseError(k,g);else throw new Error(k)},setInput:function(d,k){return this.yy=k||this.yy||{},this._input=d,this._more=this._backtrack=this.done=!1,this.yylineno=this.yyleng=0,this.yytext=this.matched=this.match="",this.conditionStack=["INITIAL"],this.yylloc={first_line:1,first_column:0,last_line:1,last_column:0},this.options.ranges&&(this.yylloc.range=[0,0]),this.offset=0,this},input:function(){var d=this._input[0];this.yytext+=d,this.yyleng++,this.offset++,this.match+=d,this.matched+=d;var k=d.match(/(?:\r\n?|\n).*/g);return k?(this.yylineno++,this.yylloc.last_line++):this.yylloc.last_column++,this.options.ranges&&this.yylloc.range[1]++,this._input=this._input.slice(1),d},unput:function(d){var k=d.length,g=d.split(/(?:\r\n?|\n)/g);this._input=d+this._input,this.yytext=this.yytext.substr(0,this.yytext.length-k),this.offset-=k;var b=this.match.split(/(?:\r\n?|\n)/g);this.match=this.match.substr(0,this.match.length-1),this.matched=this.matched.substr(0,this.matched.length-1),g.length-1&&(this.yylineno-=g.length-1);var N=this.yylloc.range;return this.yylloc={first_line:this.yylloc.first_line,last_line:this.yylineno+1,first_column:this.yylloc.first_column,last_column:g?(g.length===b.length?this.yylloc.first_column:0)+b[b.length-g.length].length-g[0].length:this.yylloc.first_column-k},this.options.ranges&&(this.yylloc.range=[N[0],N[0]+this.yyleng-k]),this.yyleng=this.yytext.length,this},more:function(){return this._more=!0,this},reject:function(){if(this.options.backtrack_lexer)this._backtrack=!0;else return this.parseError("Lexical error on line "+(this.yylineno+1)+`. You can only invoke reject() in the lexer when the lexer is of the backtracking persuasion (options.backtrack_lexer = true).
`+this.showPosition(),{text:"",token:null,line:this.yylineno});return this},less:function(d){this.unput(this.match.slice(d))},pastInput:function(){var d=this.matched.substr(0,this.matched.length-this.match.length);return(d.length>20?"...":"")+d.substr(-20).replace(/\n/g,"")},upcomingInput:function(){var d=this.match;return d.length<20&&(d+=this._input.substr(0,20-d.length)),(d.substr(0,20)+(d.length>20?"...":"")).replace(/\n/g,"")},showPosition:function(){var d=this.pastInput(),k=new Array(d.length+1).join("-");return d+this.upcomingInput()+`
`+k+"^"},test_match:function(d,k){var g,b,N;if(this.options.backtrack_lexer&&(N={yylineno:this.yylineno,yylloc:{first_line:this.yylloc.first_line,last_line:this.last_line,first_column:this.yylloc.first_column,last_column:this.yylloc.last_column},yytext:this.yytext,match:this.match,matches:this.matches,matched:this.matched,yyleng:this.yyleng,offset:this.offset,_more:this._more,_input:this._input,yy:this.yy,conditionStack:this.conditionStack.slice(0),done:this.done},this.options.ranges&&(N.yylloc.range=this.yylloc.range.slice(0))),b=d[0].match(/(?:\r\n?|\n).*/g),b&&(this.yylineno+=b.length),this.yylloc={first_line:this.yylloc.last_line,last_line:this.yylineno+1,first_column:this.yylloc.last_column,last_column:b?b[b.length-1].length-b[b.length-1].match(/\r?\n?/)[0].length:this.yylloc.last_column+d[0].length},this.yytext+=d[0],this.match+=d[0],this.matches=d,this.yyleng=this.yytext.length,this.options.ranges&&(this.yylloc.range=[this.offset,this.offset+=this.yyleng]),this._more=!1,this._backtrack=!1,this._input=this._input.slice(d[0].length),this.matched+=d[0],g=this.performAction.call(this,this.yy,this,k,this.conditionStack[this.conditionStack.length-1]),this.done&&this._input&&(this.done=!1),g)return g;if(this._backtrack){for(var l in N)this[l]=N[l];return!1}return!1},next:function(){if(this.done)return this.EOF;this._input||(this.done=!0);var d,k,g,b;this._more||(this.yytext="",this.match="");for(var N=this._currentRules(),l=0;l<N.length;l++)if(g=this._input.match(this.rules[N[l]]),g&&(!k||g[0].length>k[0].length)){if(k=g,b=l,this.options.backtrack_lexer){if(d=this.test_match(g,N[l]),d!==!1)return d;if(this._backtrack){k=!1;continue}else return!1}else if(!this.options.flex)break}return k?(d=this.test_match(k,N[b]),d!==!1?d:!1):this._input===""?this.EOF:this.parseError("Lexical error on line "+(this.yylineno+1)+`. Unrecognized text.
`+this.showPosition(),{text:"",token:null,line:this.yylineno})},lex:function(){var k=this.next();return k||this.lex()},begin:function(k){this.conditionStack.push(k)},popState:function(){var k=this.conditionStack.length-1;return k>0?this.conditionStack.pop():this.conditionStack[0]},_currentRules:function(){return this.conditionStack.length&&this.conditionStack[this.conditionStack.length-1]?this.conditions[this.conditionStack[this.conditionStack.length-1]].rules:this.conditions.INITIAL.rules},topState:function(k){return k=this.conditionStack.length-1-Math.abs(k||0),k>=0?this.conditionStack[k]:"INITIAL"},pushState:function(k){this.begin(k)},stateStackSize:function(){return this.conditionStack.length},options:{},performAction:function(k,g,b,N){function l(u,at){return g.yytext=g.yytext.substring(u,g.yyleng-at+u)}var Pt=N;switch(b){case 0:if(g.yytext.slice(-2)==="\\\\"?(l(0,1),this.begin("mu")):g.yytext.slice(-1)==="\\"?(l(0,1),this.begin("emu")):this.begin("mu"),g.yytext)return 15;break;case 1:return 15;case 2:return this.popState(),15;break;case 3:return this.begin("raw"),15;break;case 4:return this.popState(),this.conditionStack[this.conditionStack.length-1]==="raw"?15:(l(5,9),18);case 5:return 15;case 6:return this.popState(),14;break;case 7:return 64;case 8:return 67;case 9:return 19;case 10:return this.popState(),this.begin("raw"),23;break;case 11:return 56;case 12:return 60;case 13:return 29;case 14:return 47;case 15:return this.popState(),44;break;case 16:return this.popState(),44;break;case 17:return 34;case 18:return 39;case 19:return 52;case 20:return 48;case 21:this.unput(g.yytext),this.popState(),this.begin("com");break;case 22:return this.popState(),14;break;case 23:return 48;case 24:return 72;case 25:return 71;case 26:return 71;case 27:return 86;case 28:break;case 29:return this.popState(),55;break;case 30:return this.popState(),33;break;case 31:return g.yytext=l(1,2).replace(/\\"/g,'"'),79;break;case 32:return g.yytext=l(1,2).replace(/\\'/g,"'"),79;break;case 33:return 84;case 34:return 81;case 35:return 81;case 36:return 82;case 37:return 83;case 38:return 80;case 39:return 74;case 40:return 76;case 41:return 71;case 42:return g.yytext=g.yytext.replace(/\\([\\\]])/g,"$1"),71;break;case 43:return"INVALID";case 44:return 5}},rules:[/^(?:[^\x00]*?(?=(\{\{)))/,/^(?:[^\x00]+)/,/^(?:[^\x00]{2,}?(?=(\{\{|\\\{\{|\\\\\{\{|$)))/,/^(?:\{\{\{\{(?=[^/]))/,/^(?:\{\{\{\{\/[^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=[=}\s\/.])\}\}\}\})/,/^(?:[^\x00]+?(?=(\{\{\{\{)))/,/^(?:[\s\S]*?--(~)?\}\})/,/^(?:\()/,/^(?:\))/,/^(?:\{\{\{\{)/,/^(?:\}\}\}\})/,/^(?:\{\{(~)?>)/,/^(?:\{\{(~)?#>)/,/^(?:\{\{(~)?#\*?)/,/^(?:\{\{(~)?\/)/,/^(?:\{\{(~)?\^\s*(~)?\}\})/,/^(?:\{\{(~)?\s*else\s*(~)?\}\})/,/^(?:\{\{(~)?\^)/,/^(?:\{\{(~)?\s*else\b)/,/^(?:\{\{(~)?\{)/,/^(?:\{\{(~)?&)/,/^(?:\{\{(~)?!--)/,/^(?:\{\{(~)?![\s\S]*?\}\})/,/^(?:\{\{(~)?\*?)/,/^(?:=)/,/^(?:\.\.)/,/^(?:\.(?=([=~}\s\/.)|])))/,/^(?:[\/.])/,/^(?:\s+)/,/^(?:\}(~)?\}\})/,/^(?:(~)?\}\})/,/^(?:"(\\["]|[^"])*")/,/^(?:'(\\[']|[^'])*')/,/^(?:@)/,/^(?:true(?=([~}\s)])))/,/^(?:false(?=([~}\s)])))/,/^(?:undefined(?=([~}\s)])))/,/^(?:null(?=([~}\s)])))/,/^(?:-?[0-9]+(?:\.[0-9]+)?(?=([~}\s)])))/,/^(?:as\s+\|)/,/^(?:\|)/,/^(?:([^\s!"#%-,\.\/;->@\[-\^`\{-~]+(?=([=~}\s\/.)|]))))/,/^(?:\[(\\\]|[^\]])*\])/,/^(?:.)/,/^(?:$)/],conditions:{mu:{rules:[7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44],inclusive:!1},emu:{rules:[2],inclusive:!1},com:{rules:[6],inclusive:!1},raw:{rules:[3,4,5],inclusive:!1},INITIAL:{rules:[0,1,44],inclusive:!0}}};return it}();_e.lexer=Ms;function Oe(){this.yy={}}return Oe.prototype=_e,_e.Parser=Oe,new Oe}(),Se=Fn;var er=["description","fileName","lineNumber","endLineNumber","message","name","number","stack"];function rr(e,t){var r=t&&t.loc,s,n,i,a;r&&(s=r.start.line,n=r.end.line,i=r.start.column,a=r.end.column,e+=" - "+s+":"+i);for(var o=Error.prototype.constructor.call(this,e),c=0;c<er.length;c++)this[er[c]]=o[er[c]];Error.captureStackTrace&&Error.captureStackTrace(this,rr);try{r&&(this.lineNumber=s,this.endLineNumber=n,Object.defineProperty?(Object.defineProperty(this,"column",{value:i,enumerable:!0}),Object.defineProperty(this,"endColumn",{value:a,enumerable:!0})):(this.column=i,this.endColumn=a))}catch{}}rr.prototype=new Error;var ot=rr;function ve(){this.parents=[]}ve.prototype={constructor:ve,mutating:!1,acceptKey:function(e,t){var r=this.accept(e[t]);if(this.mutating){if(r&&!ve.prototype[r.type])throw new ot('Unexpected node type "'+r.type+'" found when accepting '+t+" on "+e.type);e[t]=r}},acceptRequired:function(e,t){if(this.acceptKey(e,t),!e[t])throw new ot(e.type+" requires "+t)},acceptArray:function(e){for(var t=0,r=e.length;t<r;t++)this.acceptKey(e,t),e[t]||(e.splice(t,1),t--,r--)},accept:function(e){if(e){if(!this[e.type])throw new ot("Unknown type: "+e.type,e);this.current&&this.parents.unshift(this.current),this.current=e;var t=this[e.type](e);if(this.current=this.parents.shift(),!this.mutating||tLine truncated
`,nexist:"\u2204",nexists:"\u2204",Nfr:"\u{1D511}",nfr:"\u{1D52B}",ngE:"\u2267\u0338",nge:"\u2271",ngeq:"\u2271",ngeqq:"\u2267\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",nGg:"\u22D9\u0338",ngsim:"\u2275",nGt:"\u226B\u20D2",ngt:"\u226F",ngtr:"\u226F",nGtv:"\u226B\u0338",nharr:"\u21AE",nhArr:"\u21CE",nhpar:"\u2AF2",ni:"\u220B",nis:"\u22FC",nisd:"\u22FA",niv:"\u220B",NJcy:"\u040A",njcy:"\u045A",nlarr:"\u219A",nlArr:"\u21CD",nldr:"\u2025",nlE:"\u2266\u0338",nle:"\u2270",nleftarrow:"\u219A",nLeftarrow:"\u21CD",nleftrightarrow:"\u21AE",nLeftrightarrow:"\u21CE",nleq:"\u2270",nleqq:"\u2266\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",nless:"\u226E",nLl:"\u22D8\u0338",nlsim:"\u2274",nLt:"\u226A\u20D2",nlt:"\u226E",nltri:"\u22EA",nltrie:"\u22EC",nLtv:"\u226A\u0338",nmid:"\u2224",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nopf:"\u{1D55F}",Nopf:"\u2115",Not:"\u2AEC",not:"\xAC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",notin:"\u2209",notindot:"\u22F5\u0338",notinE:"\u22F9\u0338",notinva:"\u2209",notinvb:"\u22F7",notinvc:"\u22F6",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",notni:"\u220C",notniva:"\u220C",notnivb:"\u22FE",notnivc:"\u22FD",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangle:"\u22EB",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",nparallel:"\u2226",npar:"\u2226",nparsl:"\u2AFD\u20E5",npart:"\u2202\u0338",npolint:"\u2A14",npr:"\u2280",nprcue:"\u22E0",nprec:"\u2280",npreceq:"\u2AAF\u0338",npre:"\u2AAF\u0338",nrarrc:"\u2933\u0338",nrarr:"\u219B",nrArr:"\u21CF",nrarrw:"\u219D\u0338",nrightarrow:"\u219B",nRightarrow:"\u21CF",nrtri:"\u22EB",nrtrie:"\u22ED",nsc:"\u2281",nsccue:"\u22E1",nsce:"\u2AB0\u0338",Nscr:"\u{1D4A9}",nscr:"\u{1D4C3}",nshortmid:"\u2224",nshortparallel:"\u2226",nsim:"\u2241",nsime:"\u2244",nsimeq:"\u2244",nsmid:"\u2224",nspar:"\u2226",nsqsube:"\u22E2",nsqsupe:"\u22E3",nsub:"\u2284",nsubE:"\u2AC5\u0338",nsube:"\u2288",nsubset:"\u2282\u20D2",nsubseteq:"\u2288",nsubseteqq:"\u2AC5\u0338",nsucc:"\u2281",nsucceq:"\u2AB0\u0338",nsup:"\u2285",nsupE:"\u2AC6\u0338",nsupe:"\u2289",nsupset:"\u2283\u20D2",nsupseteq:"\u2289",nsupseteqq:"\u2AC6\u0338",ntgl:"\u2279",Ntilde:"\xD1",ntilde:"\xF1",ntlg:"\u2278",ntriangleleft:"\u22EA",ntrianglelefteq:"\u22EC",ntriangleright:"\u22EB",ntrianglerighteq:"\u22ED",Nu:"\u039D",nu:"\u03BD",num:"#",numero:"\u2116",numsp:"\u2007",nvap:"\u224D\u20D2",nvdash:"\u22AC",nvDash:"\u22AD",nVdash:"\u22AE",nVDash:"\u22AF",nvge:"\u2265\u20D2",nvgt:">\u20D2",nvHarr:"\u2904",nvinfin:"\u29DE",nvlArr:"\u2902",nvle:"\u2264\u20D2",nvlt:"<\u20D2",nvltrie:"\u22B4\u20D2",nvrArr:"\u2903",nvrtrie:"\u22B5\u20D2",nvsim:"\u223C\u20D2",nwarhk:"\u2923",nwarr:"\u2196",nwArr:"\u21D6",nwarrow:"\u2196",nwnear:"\u2927",Oacute:"\xD3",oacute:"\xF3",oast:"\u229B",Ocirc:"\xD4",ocirc:"\xF4",ocir:"\u229A",Ocy:"\u041E",ocy:"\u043E",odash:"\u229D",Odblac:"\u0150",odblac:"\u0151",odiv:"\u2A38",odot:"\u2299",odsold:"\u29BC",OElig:"\u0152",oelig:"\u0153",ofcir:"\u29BF",Ofr:"\u{1D512}",ofr:"\u{1D52C}",ogon:"\u02DB",Ograve:"\xD2",ograve:"\xF2",ogt:"\u29C1",ohbar:"\u29B5",ohm:"\u03A9",oint:"\u222E",olarr:"\u21BA",olcir:"\u29BE",olcross:"\u29BB",oline:"\u203E",olt:"\u29C0",Omacr:"\u014C",omacr:"\u014D",Omega:"\u03A9",omega:"\u03C9",Omicron:"\u039F",omicron:"\u03BF",omid:"\u29B6",ominus:"\u2296",Oopf:"\u{1D546}",oopf:"\u{1D560}",opar:"\u29B7",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",operp:"\u29B9",oplus:"\u2295",orarr:"\u21BB",Or:"\u2A54",or:"\u2228",ord:"\u2A5D",order:"\u2134",orderof:"\u2134",ordf:"\xAA",ordm:"\xBA",origof:"\u22B6",oror:"\u2A56",orslope:"\u2A57",orv:"\u2A5B",oS:"\u24C8",Oscr:"\u{1D4AA}",oscr:"\u2134",Oslash:"\xD8",oslash:"\xF8",osol:"\u2298",Otilde:"\xD5",otilde:"\xF5",otimesas:"\u2A36",Otimes:"\u2A37",otimes:"\u2297",Ouml:"\xD6",ouml:"\xF6",ovbar:"\u233D",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4 Line truncated
`)}var cr=function(){function e(t,r,s){s===void 0&&(s="precompile"),this.delegate=t,this.entityParser=r,this.mode=s,this.state="beforeData",this.line=-1,this.column=-1,this.input="",this.index=-1,this.tagNameBuffer="",this.states={beforeData:function(){var n=this.peek();if(n==="<"&&!this.isIgnoredEndTag())this.transitionTo("tagOpen"),this.markTagStart(),this.consume();else{if(this.mode==="precompile"&&n===`
`){var i=this.tagNameBuffer.toLowerCase();(i==="pre"||i==="textarea")&&this.consume()}this.transitionTo("data"),this.delegate.beginData()}},data:function(){var n=this.peek(),i=this.tagNameBuffer;n==="<"&&!this.isIgnoredEndTag()?(this.delegate.finishData(),this.transitionTo("tagOpen"),this.markTagStart(),this.consume()):n==="&"&&i!=="script"&&i!=="style"?(this.consume(),this.delegate.appendToData(this.consumeCharRef()||"&")):(this.consume(),this.delegate.appendToData(n))},tagOpen:function(){var n=this.consume();n==="!"?this.transitionTo("markupDeclarationOpen"):n==="/"?this.transitionTo("endTagOpen"):(n==="@"||n===":"||vs(n))&&(this.transitionTo("tagName"),this.tagNameBuffer="",this.delegate.beginStartTag(),this.appendToTagName(n))},markupDeclarationOpen:function(){var n=this.consume();if(n==="-"&&this.peek()==="-")this.consume(),this.transitionTo("commentStart"),this.delegate.beginComment();else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+6).toUpperCase();i==="DOCTYPE"&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.transitionTo("doctype"),this.delegate.beginDoctype&&this.delegate.beginDoctype())}},doctype:function(){var n=this.consume();_(n)&&this.transitionTo("beforeDoctypeName")},beforeDoctypeName:function(){var n=this.consume();_(n)||(this.transitionTo("doctypeName"),this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase()))},doctypeName:function(){var n=this.consume();_(n)?this.transitionTo("afterDoctypeName"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeName&&this.delegate.appendToDoctypeName(n.toLowerCase())},afterDoctypeName:function(){var n=this.consume();if(!_(n))if(n===">")this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData");else{var i=n.toUpperCase()+this.input.substring(this.index,this.index+5).toUpperCase(),a=i.toUpperCase()==="PUBLIC",o=i.toUpperCase()==="SYSTEM";(a||o)&&(this.consume(),this.consume(),this.consume(),this.consume(),this.consume(),this.consume()),a?this.transitionTo("afterDoctypePublicKeyword"):o&&this.transitionTo("afterDoctypeSystemKeyword")}},afterDoctypePublicKeyword:function(){var n=this.peek();_(n)?(this.transitionTo("beforeDoctypePublicIdentifier"),this.consume()):n==='"'?(this.transitionTo("doctypePublicIdentifierDoubleQuoted"),this.consume()):n==="'"?(this.transitionTo("doctypePublicIdentifierSingleQuoted"),this.consume()):n===">"&&(this.consume(),this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},doctypePublicIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},doctypePublicIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypePublicIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypePublicIdentifier&&this.delegate.appendToDoctypePublicIdentifier(n)},afterDoctypePublicIdentifier:function(){var n=this.consume();_(n)?this.transitionTo("betweenDoctypePublicAndSystemIdentifiers"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted")},betweenDoctypePublicAndSystemIdentifiers:function(){var n=this.consume();_(n)||(n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):n==='"'?this.transitionTo("doctypeSystemIdentifierDoubleQuoted"):n==="'"&&this.transitionTo("doctypeSystemIdentifierSingleQuoted"))},doctypeSystemIdentifierDoubleQuoted:function(){var n=this.consume();n==='"'?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},doctypeSystemIdentifierSingleQuoted:function(){var n=this.consume();n==="'"?this.transitionTo("afterDoctypeSystemIdentifier"):n===">"?(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData")):this.delegate.appendToDoctypeSystemIdentifier&&this.delegate.appendToDoctypeSystemIdentifier(n)},afterDoctypeSystemIdentifier:function(){var n=this.consume();_(n)||n===">"&&(this.delegate.endDoctype&&this.delegate.endDoctype(),this.transitionTo("beforeData"))},commentStart:function(){var n=this.consume();n==="-"?this.transitionTo("commentStartDash"):n===">"?(this.delegate.finishComment(),this.transitionTo("beforeData")):(this.delegate.appendToCommentData(n),this.transitionTo("comment"))},commentStartDash:function(){var n=this.consum Line truncated
`?(this.line++,this.column=0):this.column++,t},e.prototype.consumeCharRef=function(){var t=this.input.indexOf(";",this.index);if(t!==-1){var r=this.input.slice(this.index,t),s=this.entityParser.parse(r);if(s){for(var n=r.length;n;)this.consume(),n--;return this.consume(),s}}},e.prototype.markTagStart=function(){this.delegate.tagOpen()},e.prototype.appendToTagName=function(t){this.tagNameBuffer+=t,this.delegate.appendToTagName(t)},e.prototype.isIgnoredEndTag=function(){var t=this.tagNameBuffer;return t==="title"&&this.input.substring(this.index,this.index+8)!=="</title>"||t==="style"&&this.input.substring(this.index,this.index+8)!=="</style>"||t==="script"&&this.input.substring(this.index,this.index+9)!=="<\/script>"},e}(),eo=function(){function e(t,r){r===void 0&&(r={}),this.options=r,this.token=null,this.startLine=1,this.startColumn=0,this.tokens=[],this.tokenizer=new cr(this,t,r.mode),this._currentAttribute=void 0}return e.prototype.tokenize=function(t){return this.tokens=[],this.tokenizer.tokenize(t),this.tokens},e.prototype.tokenizePart=function(t){return this.tokens=[],this.tokenizer.tokenizePart(t),this.tokens},e.prototype.tokenizeEOF=function(){return this.tokens=[],this.tokenizer.tokenizeEOF(),this.tokens[0]},e.prototype.reset=function(){this.token=null,this.startLine=1,this.startColumn=0},e.prototype.current=function(){var t=this.token;if(t===null)throw new Error("token was unexpectedly null");if(arguments.length===0)return t;for(var r=0;r<arguments.length;r++)if(t.type===arguments[r])return t;throw new Error("token type was unexpectedly "+t.type)},e.prototype.push=function(t){this.token=t,this.tokens.push(t)},e.prototype.currentAttribute=function(){return this._currentAttribute},e.prototype.addLocInfo=function(){this.options.loc&&(this.current().loc={start:{line:this.startLine,column:this.startColumn},end:{line:this.tokenizer.line,column:this.tokenizer.column}}),this.startLine=this.tokenizer.line,this.startColumn=this.tokenizer.column},e.prototype.beginDoctype=function(){this.push({type:"Doctype",name:""})},e.prototype.appendToDoctypeName=function(t){this.current("Doctype").name+=t},e.prototype.appendToDoctypePublicIdentifier=function(t){var r=this.current("Doctype");r.publicIdentifier===void 0?r.publicIdentifier=t:r.publicIdentifier+=t},e.prototype.appendToDoctypeSystemIdentifier=function(t){var r=this.current("Doctype");r.systemIdentifier===void 0?r.systemIdentifier=t:r.systemIdentifier+=t},e.prototype.endDoctype=function(){this.addLocInfo()},e.prototype.beginData=function(){this.push({type:"Chars",chars:""})},e.prototype.appendToData=function(t){this.current("Chars").chars+=t},e.prototype.finishData=function(){this.addLocInfo()},e.prototype.beginComment=function(){this.push({type:"Comment",chars:""})},e.prototype.appendToCommentData=function(t){this.current("Comment").chars+=t},e.prototype.finishComment=function(){this.addLocInfo()},e.prototype.tagOpen=function(){},e.prototype.beginStartTag=function(){this.push({type:"StartTag",tagName:"",attributes:[],selfClosing:!1})},e.prototype.beginEndTag=function(){this.push({type:"EndTag",tagName:""})},e.prototype.finishTag=function(){this.addLocInfo()},e.prototype.markTagAsSelfClosing=function(){this.current("StartTag").selfClosing=!0},e.prototype.appendToTagName=function(t){this.current("StartTag","EndTag").tagName+=t},e.prototype.beginAttribute=function(){this._currentAttribute=["","",!1]},e.prototype.appendToAttributeName=function(t){this.currentAttribute()[0]+=t},e.prototype.beginAttributeValue=function(t){this.currentAttribute()[2]=t},e.prototype.appendToAttributeValue=function(t){this.currentAttribute()[1]+=t},e.prototype.finishAttributeValue=function(){this.current("StartTag").attributes.push(this._currentAttribute)},e.prototype.reportSyntaxError=function(t){this.current().syntaxError=t},e}();var Ne={Append:1,TrustingAppend:2,Comment:3,Modifier:4,StrictModifier:5,Block:6,StrictBlock:7,Component:8,OpenElement:10,OpenElementWithSplat:11,FlushElement:12,CloseElement:13,StaticAttr:14,DynamicAttr:15,ComponentAttr:16,AttrSplat:17,Yield:18,DynamicArg:20,StaticArg:21,TrustingDynamicAttr:22,TrustingComponentAttr:23,StaticComponentAttr:24,Debugger:26,Undefined:27,Call:28,Concat:29,GetSymbol:30,GetLexicalSymbol:32,GetStrictKeyword:31,GetFreeAsComponentOrHelperHead:35,GetFreeAsHelperHead:37,GetFreeAsModifierHead:38,GetFreeAsComponentHead:39,InElement:40,If:41,Each:42,Let:44,WithDynamicVars:45,InvokeComponent:46,HasBlock:48,HasBlockParams:49,Curry:50,Not:51,IfInline:52,GetDynamicVar:53,Log:54};function ws(e){return function(t){return Array.isArray(t)&&t[0]===e}}var so=ws(Ne.FlushElement);var no=ws(Ne.GetSymbol);var Ds=!1,ri=/["\x26\xa0]/u,fo=new RegExp(ri.source,"gu"),si=/[&<>\xa0]/u,mo=new RegExp(si.source,"gu");var dr=new Set(["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"]);function ni(e){var t;return dr.has(e.toLowerCase())&&((t=e[0])==null?void 0:t.toLowerCase())===e[0]}function ce(e){ Line truncated
`,s);if(t<=n||n===-1)return{line:r+1,column:t-s};r+=1,s=n+1}}charPosFor(t){let{line:r,column:s}=t,n=this.source.length,i=0,a=0;for(;a<n;){let o=this.source.indexOf(`
`,a);if(o===-1&&(o=this.source.length),i===r-1){if(a+s>o)return o;if(Ds){let c=this.hbsPosFor(a+s);c.line,c.column}return a+s}if(o===-1)return 0;i+=1,a=o+1}return n}};function v(e,t){let{module:r,loc:s}=t,{line:n,column:i}=s.start,a=t.asString(),o=a?`
|
| ${a.split(`
`).join(`
| `)}
|
`:"",c=new Error(`${e}: ${o}(error occurred in '${r}' @ line ${n} : column ${i})`);return c.name="SyntaxError",c.location=t,c.code=a,c}var li={Template:["body"],Block:["body"],MustacheStatement:["path","params","hash"],BlockStatement:["path","params","hash","program","inverse"],ElementModifierStatement:["path","params","hash"],CommentStatement:[],MustacheCommentStatement:[],ElementNode:["attributes","modifiers","children","comments"],AttrNode:["value"],TextNode:[],ConcatStatement:["parts"],SubExpression:["path","params","hash"],PathExpression:[],StringLiteral:[],BooleanLiteral:[],NumberLiteral:[],NullLiteral:[],UndefinedLiteral:[],Hash:["pairs"],HashPair:["value"]},Cr=function(){function e(t,r,s,n){let i=Error.call(this,t);this.key=n,this.message=t,this.node=r,this.parent=s,i.stack&&(this.stack=i.stack)}return e.prototype=Object.create(Error.prototype),e.prototype.constructor=e,e}();function Ts(e,t,r){return new Cr("Cannot remove a node unless it is part of an array",e,t,r)}function ci(e,t,r){return new Cr("Cannot replace a node with multiple nodes unless it is part of an array",e,t,r)}function Ns(e,t){return new Cr("Replacing and removing in key handlers is not yet supported.",e,null,t)}var zt=class{constructor(t,r=null,s=null){this.node=t,this.parent=r,this.parentKey=s}get parentNode(){return this.parent?this.parent.node:null}parents(){return{[Symbol.iterator]:()=>new Sr(this)}}},Sr=class{constructor(t){this.path=t}next(){return this.path.parent?(this.path=this.path.parent,{done:!1,value:this.path}):{done:!0,value:null}}};function Os(e){return typeof e=="function"?e:e.enter}function Bs(e){return typeof e=="function"?void 0:e.exit}function Ae(e,t){let r,s,n,{node:i,parent:a,parentKey:o}=t,c=function(h,p){if(h.Program&&(p==="Template"&&!h.Template||p==="Block"&&!h.Block))return h.Program;let m=h[p];return m!==void 0?m:h.All}(e,i.type);if(c!==void 0&&(r=Os(c),s=Bs(c)),r!==void 0&&(n=r(i,t)),n!=null){if(JSON.stringify(i)!==JSON.stringify(n))return Array.isArray(n)?(Is(e,n,a,o),n):Ae(e,new zt(n,a,o))||n;n=void 0}if(n===void 0){let h=li[i.type];for(let p=0;p<h.length;p++)ui(e,c,t,h[p]);s!==void 0&&(n=s(i,t))}return n}function Cs(e,t,r){e[t]=r}function ui(e,t,r,s){let n,i,{node:a}=r,o=function(c,h){return c[h]}(a,s);if(o){if(t!==void 0){let c=function(h,p){let m=typeof h!="function"?h.keys:void 0;if(m===void 0)return;let S=m[p];return S!==void 0?S:m.All}(t,s);c!==void 0&&(n=Os(c),i=Bs(c))}if(n!==void 0&&n(a,s)!==void 0)throw Ns(a,s);if(Array.isArray(o))Is(e,o,r,s);else{let c=Ae(e,new zt(o,r,s));c!==void 0&&function(h,p,m,S){if(S===null)throw Ts(m,h,p);if(Array.isArray(S)){if(S.length!==1)throw S.length===0?Ts(m,h,p):ci(m,h,p);Cs(h,p,S[0])}else Cs(h,p,S)}(a,s,o,c)}if(i!==void 0&&i(a,s)!==void 0)throw Ns(a,s)}}function Is(e,t,r,s){for(let n=0;n<t.length;n++){let i=t[n],a=Ae(e,new zt(i,r,s));a!==void 0&&(n+=hi(t,n,a)-1)}}function hi(e,t,r){return r===null?(e.splice(t,1),0):Array.isArray(r)?(e.splice(t,1,...r),r.length):(e.splice(t,1,r),1)}function pi(e,t){Ae(t,new zt(e))}function Ht(e,t){(function(r){switch(r.type){case"Block":case"Template":return r.body;case"ElementNode":return r.children}})(e).push(t)}function Rs(e){return e.type==="StringLiteral"||e.type==="BooleanLiteral"||e.type==="NumberLiteral"||e.type==="NullLiteral"||e.type==="UndefinedLiteral"}var ur;function hr(){return ur||(ur=new wt("","(synthetic)")),ur}function xs(e,t){return f.var({name:e,loc:T(t||null)})}function ct(e,t){let r=T(t||null);if(typeof e!="string"){if("type"in e)return e;{e.head.indexOf(".");let{head:i,tail:a}=e;return f.path({head:f.head({original:i,loc:r.sliceStartChars({chars:i.length})}),tail:a,loc:T(t||null)})}}let{head:s,tail:n}=function(i,a){let[o,...c]=i.split("."),h=f.head({original:o,loc:T(a||null)});return f.path({head:h,tail:c,loc:T(a||null)})}(e,r);return f.path({head:s,tail:n,loc:r})}function xe(e,t,r){return f.literal({type:e,value:t,loc:T(r||null)})}function ie(e=[],t){return f.hash({pairs:e,loc:T(t||null)})}function qs(e){return e.map(t=>typeof t=="string"?f.var({name:t,loc:D.synthetic(t)}):t)}function Ps(e=[],t=[],r=!1,s){return f.blockItself({body:e,params:qs(t),chained:r,loc:T(s||null)})}function As(e=[],t=[],r){return f.template({body:e,blockParams:t,loc:T(r||null)})}function T(...e){if(e.length===1){let t=e[0];return t&&typeof t=="object"?D.forHbsLoc(hr(),t):D.forHbsLoc(hr(),ai)}{let[t,r,s,n,i]=e,a=i?new wt("",i):hr();return D.forHbsLoc(a,{start:{line:t,column:r},end:{line:s||t,column:n||r}})}}var fi={mustache:function(e,t=[],r=ie([]),s=!1,n,i){return f.mustache({path:ct(e),params:t,hash:r,trusting:s,strip:i,loc:T(n||null)})},block:function(e,t,r,s,n=null,i,a,o,c){let h,p=null;return h=s.type==="Template"?f.blockItself({params:qs(s.blockParams),body:s.body,loc:s.loc}):s,(n==null?void 0:n.type)==="Template"?(n.blockParams.length,p=f.blockItself({params:[],body:n.body,loc:n.loc})):p=n,f.block({path:ct(e),params:t||[],hash:r||ie([]),defaultBlock:h,elseBlock:p,loc:T(i||null),openStrip:a,inverseStrip:o,closeStrip:c})} Line truncated
`)}},Er=class extends vr{parse(t,r){var i;t.loc;let s=f.template({body:[],blockParams:r,loc:this.source.spanFor(t.loc)}),n=this.parseProgram(s,t);return(i=this.pendingError)==null||i.eof(n.loc.getEnd()),n}Program(t,r){t.loc;let s=f.blockItself({body:[],params:r,chained:t.chained,loc:this.source.spanFor(t.loc)});return this.parseProgram(s,t)}parseProgram(t,r){if(r.body.length===0)return t;let s;try{this.elementStack.push(t);for(let n of r.body)this.acceptNode(n)}finally{s=this.elementStack.pop()}if(t!==s){if((s==null?void 0:s.type)==="ElementNode")throw v(`Unclosed element \`${s.tag}\``,s.loc);t.type}return t}BlockStatement(t){var m;if(this.tokenizer.state==="comment")return t.loc,void this.appendToCommentData(this.sourceForNode(t));if(this.tokenizer.state!=="data"&&this.tokenizer.state!=="beforeData")throw v("A block may only be used inside an HTML element or another block.",this.source.spanFor(t.loc));let{path:r,params:s,hash:n}=fr(this,t),i=this.source.spanFor(t.loc),a,o=[];if((m=t.program.blockParams)!=null&&m.length){let S=n.loc.collapse("end");S=t.program.loc?S.withEnd(this.source.spanFor(t.program.loc).getStart()):t.program.body[0]?S.withEnd(this.source.spanFor(t.program.body[0].loc).getStart()):S.withEnd(i.getEnd()),a=Ls(this.source,t,S);let y=S.asString(),E=y.indexOf("|")+1,C=y.indexOf("|",E);for(let x of t.program.blockParams){let w,U;w=E>=C?-1:y.indexOf(x,E),w===-1||w+x.length>C?(E=C,U=this.source.spanFor(gr)):(E=w,U=S.sliceStartChars({skipStart:E,chars:x.length}),E+=x.length),o.push(f.var({name:x,loc:U}))}}else a=Ls(this.source,t,i);let c=this.Program(a.program,o),h=a.inverse?this.Program(a.inverse,[]):null,p=f.block({path:r,params:s,hash:n,defaultBlock:c,elseBlock:h,loc:this.source.spanFor(t.loc),openStrip:t.openStrip,inverseStrip:t.inverseStrip,closeStrip:t.closeStrip});Ht(this.currentElement(),p)}MustacheStatement(t){var o;(o=this.pendingError)==null||o.mustache(this.source.spanFor(t.loc));let{tokenizer:r}=this;if(r.state==="comment")return void this.appendToCommentData(this.sourceForNode(t));let s,{escaped:n,loc:i,strip:a}=t;if("original"in t.path&&t.path.original==="...attributes")throw v("Illegal use of ...attributes",this.source.spanFor(t.loc));if(Rs(t.path))s=f.mustache({path:this.acceptNode(t.path),params:[],hash:f.hash({pairs:[],loc:this.source.spanFor(t.path.loc).collapse("end")}),trusting:!n,loc:this.source.spanFor(i),strip:a});else{let{path:c,params:h,hash:p}=fr(this,t);s=f.mustache({path:c,params:h,hash:p,trusting:!n,loc:this.source.spanFor(i),strip:a})}switch(r.state){case"tagOpen":case"tagName":throw v("Cannot use mustaches in an elements tagname",s.loc);case"beforeAttributeName":mr(this.currentStartTag,s);break;case"attributeName":case"afterAttributeName":this.beginAttributeValue(!1),this.finishAttributeValue(),mr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"afterAttributeValueQuoted":mr(this.currentStartTag,s),r.transitionTo("beforeAttributeName");break;case"beforeAttributeValue":this.beginAttributeValue(!1),this.appendDynamicAttributeValuePart(s),r.transitionTo("attributeValueUnquoted");break;case"attributeValueDoubleQuoted":case"attributeValueSingleQuoted":case"attributeValueUnquoted":this.appendDynamicAttributeValuePart(s);break;default:Ht(this.currentElement(),s)}return s}appendDynamicAttributeValuePart(t){this.finalizeTextPart();let r=this.currentAttr;r.isDynamic=!0,r.parts.push(t)}finalizeTextPart(){let t=this.currentAttr.currentPart;t!==null&&(this.currentAttr.parts.push(t),this.startTextPart())}startTextPart(){this.currentAttr.currentPart=null}ContentStatement(t){(function(r,s){let n=s.loc.start.line,i=s.loc.start.column,a=function(o,c){if(c==="")return{lines:o.split(`
`).length-1,columns:0};let[h]=o.split(c),p=h.split(/\n/u),m=p.length-1;return{lines:m,columns:p[m].length}}(s.original,s.value);n+=a.lines,a.lines?i=a.columns:i+=a.columns,r.line=n,r.column=i})(this.tokenizer,t),this.tokenizer.tokenizePart(t.value),this.tokenizer.flushData()}CommentStatement(t){let{tokenizer:r}=this;if(r.state==="comment")return this.appendToCommentData(this.sourceForNode(t)),null;let{value:s,loc:n}=t,i=f.mustacheComment({value:s,loc:this.source.spanFor(n)});switch(r.state){case"beforeAttributeName":case"afterAttributeName":this.currentStartTag.comments.push(i);break;case"beforeData":case"data":Ht(this.currentElement(),i);break;default:throw v(`Using a Handlebars comment when in the \`${r.state}\` state is not supported`,this.source.spanFor(t.loc))}return i}PartialStatement(t){throw v("Handlebars partials are not supported",this.source.spanFor(t.loc))}PartialBlockStatement(t){throw v("Handlebars partial blocks are not supported",this.source.spanFor(t.loc))}Decorator(t){throw v("Handlebars decorators are not supported",this.source.spanFor(t.loc))}DecoratorBlock(t){throw v("Handlebars decorator blocks are not supported",this.source.spanFor(t.loc))}SubExpression(t){let{path:r,params:s,hash:n}=fr(this,t);return f.sexpr({path:r,params:s,hash:n,loc:this.source.spanFor(t.loc)})}PathExpression(t){let{original:r}=t,s;if(r.indexOf("/")!==-1){if(r.slice(0,2)==="./")throw v('Using "./" is not supported in Glimmer and unnecessary',this.source.spanFor(t.loc));if(r.slice(0,3)==="../")throw v('Changing context using "../" is not supported in Glimmer',this.source.spanFor(t.loc));if(r.indexOf(".")!==-1)throw v("Mixing '.' and '/' in paths is not supported in Glimmer; use only '.' to separate property paths",this.source.spanFor(t.loc));s=[t.parts.join("/")]}else{if(r===".")throw v("'.' is not a supported path in Glimmer; check for a path with a trailing '.'",this.source.spanFor(t.loc));s=t.parts}let n,i=!1;if(/^this(?:\..+)?$/u.test(r)&&(i=!0),i)n=f.this({loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+4}})});else if(t.data){let a=s.shift();if(a===void 0)throw v("Attempted to parse a path expression, but it was not valid. Paths beginning with @ must start with a-z.",this.source.spanFor(t.loc));n=f.atName({name:`@${a}`,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length+1}})})}else{let a=s.shift();if(a===void 0)throw v("Attempted to parse a path expression, but it was not valid. Paths must start with a-z or A-Z.",this.source.spanFor(t.loc));n=f.var({name:a,loc:this.source.spanFor({start:t.loc.start,end:{line:t.loc.start.line,column:t.loc.start.column+a.length}})})}return f.path({head:n,tail:s,loc:this.source.spanFor(t.loc)})}Hash(t){let r=t.pairs.map(s=>f.pair({key:s.key,value:this.acceptNode(s.value),loc:this.source.spanFor(s.loc)}));return f.hash({pairs:r,loc:this.source.spanFor(t.loc)})}StringLiteral(t){return f.literal({type:"StringLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}BooleanLiteral(t){return f.literal({type:"BooleanLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}NumberLiteral(t){return f.literal({type:"NumberLiteral",value:t.value,loc:this.source.spanFor(t.loc)})}UndefinedLiteral(t){return f.literal({type:"UndefinedLiteral",value:void 0,loc:this.source.spanFor(t.loc)})}NullLiteral(t){return f.literal({type:"NullLiteral",value:null,loc:this.source.spanFor(t.loc)})}constructor(...t){super(...t),this.pendingError=null}};function fr(e,t){let r;switch(t.path.type){case"PathExpression":r=e.PathExpression(t.path);break;case"SubExpression":r=e.SubExpression(t.path);break;case"StringLiteral":case"UndefinedLiteral":case"NullLiteral":case"NumberLiteral":case"BooleanLiteral":{let i;throw i=t.path.type==="BooleanLiteral"?t.path.original.toString():t.path.type==="StringLiteral"?`"${t.path.original}"`:t.path.type==="NullLiteral"?"null":t.path.type==="NumberLiteral"?t.path.value.toString():"undefined",v(`${t.path.type} "${t.path.type==="StringLiteral"?t.path.original:i}" cannot be called as a sub-expression, replace (${i}) with ${i}`,e.source.spanFor(t.path.loc))}}let s=t.params.map(i=>e.acceptNode(i)),n=ce(s)?Nr(s).loc:r.loc;return{path:r,params:s,hash:t.hash?e.Hash(t.hash):f.hash({pairs:[],loc:e.source.spanFor(n).collapse("end")})}}function mr(e,t){let{path:r,params:s,hash:n,loc:i}=t;if(Rs(r)){let o=`{{${function(c){return c.type==="UndefinedLiteral"?"undefined":JSON.stringify(c.value)}(r)}}}`;throw v(`In <${e.name} ... ${o} ..., ${o} is not a valid modifier`,t.loc)}let a=f.elementModifier({path:r,params:s,hash:n,loc:i});e.modifiers.push(a)}function Ls(e,t,r){if(!t.program.loc){let n=G(!1,t.program.body,0),i=G(!1,t.program.body,-1);if(n&&i)t.program.loc={...n.loc,end:i.loc.end};else{let a=e.spanFor(t.loc);t.program.loc=r.withEnd(a.getEnd())}}let s=e.spanFor(t.program.loc).getEnd();return t.inverse&&!t.inverse.loc&&(t.inverse.loc=s.collapsed()),t}function Ft(e){return/[\t\n\f ]/u.test(e)}var wLine truncated
`?s?s.loc.getEnd():this.currentAttr.valueSpan.getStart():i.move(-1),this.currentAttr.currentPart=f.text({chars:t,loc:i.collapsed()})}}finishAttributeValue(){this.finalizeTextPart();let t=this.currentTag,r=this.offset();if(t.type==="EndTag")throw v("Invalid end tag: closing tag must not have attributes",this.source.spanFor({start:t.start.toJSON(),end:r.toJSON()}));let{name:s,parts:n,start:i,isQuoted:a,isDynamic:o,valueSpan:c}=this.currentAttr;if(s.startsWith("|")&&n.length===0&&!a&&!o)throw v("Invalid block parameters syntax: block parameters must be preceded by the `as` keyword",i.until(i.move(s.length)));let h=this.assembleAttributeValue(n,a,o,i.until(r));h.loc=c.withEnd(r);let p=f.attr({name:s,value:h,loc:i.until(r)});this.currentStartTag.attributes.push(p)}parsePossibleBlockParams(){let t=/[!"#%&'()*+./;<=>@[\\\]^`{|}~]/u;this.tokenizer.state;let r=this.currentStartTag,s=this.currentAttr,n={state:"PossibleAs"},i={PossibleAs:o=>{if(n.state,Ft(o))n={state:"BeforeStartPipe"},this.tokenizer.transitionTo("afterAttributeName"),this.tokenizer.consume();else{if(o==="|")throw v('Invalid block parameters syntax: expecting at least one space character between "as" and "|"',s.start.until(this.offset().move(1)));n={state:"Done"}}},BeforeStartPipe:o=>{n.state,Ft(o)?this.tokenizer.consume():o==="|"?(n={state:"BeforeBlockParamName"},this.tokenizer.transitionTo("beforeAttributeName"),this.tokenizer.consume()):n={state:"Done"}},BeforeBlockParamName:o=>{if(n.state,Ft(o))this.tokenizer.consume();else if(o==="")n={state:"Done"},this.pendingError={mustache(c){throw v("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw v('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"){if(r.params.length===0)throw v("Invalid block parameters syntax: empty parameters list, expecting at least one identifier",s.start.until(this.offset().move(1)));n={state:"AfterEndPipe"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw v('Invalid block parameters syntax: incomplete parameters list, expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n={state:"BlockParamName",name:o,start:this.offset()},this.tokenizer.consume()}},BlockParamName:o=>{if(n.state,o==="")n={state:"Done"},this.pendingError={mustache(c){throw v("Invalid block parameters syntax: mustaches cannot be used inside parameters list",c)},eof(c){throw v('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}};else if(o==="|"||Ft(o)){let c=n.start.until(this.offset());if(n.name==="this"||t.test(n.name))throw v(`Invalid block parameters syntax: invalid identifier name \`${n.name}\``,c);r.params.push(f.var({name:n.name,loc:c})),n=o==="|"?{state:"AfterEndPipe"}:{state:"BeforeBlockParamName"},this.tokenizer.consume()}else{if(o===">"||o==="/")throw v('Invalid block parameters syntax: expecting "|" but the tag was closed prematurely',s.start.until(this.offset().move(1)));n.name+=o,this.tokenizer.consume()}},AfterEndPipe:o=>{n.state,Ft(o)?this.tokenizer.consume():o===""?(n={state:"Done"},this.pendingError={mustache(c){throw v("Invalid block parameters syntax: modifiers cannot follow parameters list",c)},eof(c){throw v('Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',s.start.until(c))}}):o===">"||o==="/"?n={state:"Done"}:(n={state:"Error",message:'Invalid block parameters syntax: expecting the tag to be closed with ">" or "/>" after parameters list',start:this.offset()},this.tokenizer.consume())},Error:o=>{if(n.state,o===""||o==="/"||o===">"||Ft(o))throw v(n.message,n.start.until(this.offset()));this.tokenizer.consume()},Done:()=>{}},a;do a=this.tokenizer.peek(),i[n.state](a);while(n.state!=="Done"&&a!=="");n.state}reportSyntaxError(t){throw v(t,this.offset().collapsed())}assembleConcatenatedValue(t){let r=ii(t),s=Nr(t);return f.concat({parts:t,loc:this.source.spanFor(r.loc).extend(this.source.spanFor(s.loc))})}validateEndTag(t,r,s){if(dr.has(t.name)&&!s)throw v(`<${t.name}> elements do not need end tags. You should remove it`,t.loc);if(r.type!=="ElementNode")throw v(`Closing tag </${t.name}> without an open tag`,t.loc);if(r.tag!==t.name)throw v(`Closing tag </${t.name}> did not match last open tag <${r.tag}> (on line ${r.loc.startPosition.line})`,t.loc)}assembleAttributeValue(t,r,s,n){if(s){if(r)return this.assembleConcatenatedValue(t);{let[i,a]=t;if(a===void 0||a.type==="TextNode"&&a.chars==="/")return i;throw v("An unquoted attribute value must be a string or a mustache, preceded by whitespace or a '=' character, and followed by whitespace, a '>' character, or '/>'",n)}}return ce(t)?t[0]:f.text({chars:"",loc:n})}constructor(...t){super(...t),this.tagOpenLine=0,this.tagOpenColumn=0}},mi={},Tr=class extends lr{constructor(){super({})}parse(){}};function Vs(e,t={}){var c,h,p;let r,s,n,i=t.mode||"precomLine truncated
`,Fs="\r",Hs=function(){function e(t){this.length=t.length;for(var r=[0],s=0;s<t.length;)switch(t[s]){case Le:s+=Le.length,r.push(s);break;case Fs:s+=Fs.length,t[s]===Le&&(s+=Le.length),r.push(s);break;default:s++;break}this.offsets=r}return e.prototype.locationForIndex=function(t){if(t<0||t>this.length)return null;for(var r=0,s=this.offsets;s[r+1]<=t;)r++;var n=t-s[r];return{line:r,column:n}},e.prototype.indexForLocation=function(t){var r=t.line,s=t.column;return r<0||r>=this.offsets.length||s<0||s>this.lengthOfLine(r)?null:this.offsets[r]+s},e.prototype.lengthOfLine=function(t){var r=this.offsets[t],s=t===this.offsets.length-1?this.length:this.offsets[t+1];return s-r},e}();function gi(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var Us=gi;function bi(e){let t=e.children??e.body;if(t)for(let r=0;r<t.length-1;r++)t[r].type==="TextNode"&&t[r+1].type==="MustacheStatement"&&(t[r].chars=t[r].chars.replace(/\\$/u,"\\\\"))}function yi(e){let t=new Hs(e),r=({line:n,column:i})=>t.indexForLocation({line:n-1,column:i}),s=n=>{let{start:i,end:a}=n.loc;i.offset=r(i),a.offset=r(a)};return()=>({name:"prettierParsePlugin",visitor:{All(n){s(n),bi(n)}}})}function ki(e){let t;try{t=Vs(e,{mode:"codemod",plugins:{ast:[yi(e)]}})}catch(r){let s=vi(r);if(s){let n=Si(r);throw Us(n,{loc:s,cause:r})}throw r}return t}function Si(e){let{message:t}=e,r=t.split(`
`);return r.length>=4&&/^Parse error on line \d+:$/u.test(r[0])&&/^-*\^$/u.test(G(!1,r,-2))?G(!1,r,-1):r.length>=4&&/:\s?$/u.test(r[0])&&/^\(error occurred in '.*?' @ line \d+ : column \d+\)$/u.test(G(!1,r,-1))&&r[1]===""&&G(!1,r,-2)===""&&r.slice(2,-2).every(s=>s.startsWith("|"))?r[0].trim().slice(0,-1):t}function vi(e){let{location:t,hash:r}=e;if(t){let{start:s,end:n}=t;return typeof n.line!="number"?{start:s}:t}if(r){let{loc:{last_line:s,last_column:n}}=r;return{start:{line:s,column:n+1}}}}var Ei={parse:ki,astFormat:"glimmer",locStart:St,locEnd:re};var wi={glimmer:hs};var Do=Pr;export{Do as default,ps as languages,xr as parsers,wi as printers};
+5
View File
@@ -0,0 +1,5 @@
import { Parser } from "../index.js";
export declare const parsers: {
graphql: Parser;
};
+29
View File
@@ -0,0 +1,29 @@
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.graphql=e()}})(function(){"use strict";var ce=Object.defineProperty;var ft=Object.getOwnPropertyDescriptor;var ht=Object.getOwnPropertyNames;var dt=Object.prototype.hasOwnProperty;var ye=(e,t)=>{for(var n in t)ce(e,n,{get:t[n],enumerable:!0})},mt=(e,t,n,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let r of ht(t))!dt.call(e,r)&&r!==n&&ce(e,r,{get:()=>t[r],enumerable:!(i=ft(t,r))||i.enumerable});return e};var Et=e=>mt(ce({},"__esModule",{value:!0}),e);var fn={};ye(fn,{languages:()=>Je,options:()=>qe,parsers:()=>_e,printers:()=>pn});var Tt=(e,t,n,i)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,i):n.global?t.replace(n,i):t.split(n).join(i)},j=Tt;var G="indent";var $="group";var F="if-break";var C="line";var J="break-parent";var ve=()=>{},L=ve,pe=ve;function _(e){return L(e),{type:G,contents:e}}function x(e,t={}){return L(e),pe(t.expandedStates,!0),{type:$,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function I(e,t="",n={}){return L(e),t!==""&&L(t),{type:F,breakContents:e,flatContents:t,groupId:n.groupId}}var xt={type:J};var Ot={type:C,hard:!0};var k={type:C},p={type:C,soft:!0},f=[Ot,xt];function E(e,t){L(e),pe(t);let n=[];for(let i=0;i<t.length;i++)i!==0&&n.push(e),n.push(t[i]);return n}function X(e){return(t,n,i)=>{let r=!!(i!=null&&i.backwards);if(n===!1)return!1;let{length:s}=t,a=n;for(;a>=0&&a<s;){let u=t.charAt(a);if(e instanceof RegExp){if(!e.test(u))return a}else if(!e.includes(u))return a;r?a--:a++}return a===-1||a===s?a:!1}}var qn=X(/\s/u),q=X(" "),be=X(",; "),Le=X(/[^\n\r]/u);function It(e,t,n){let i=!!(n!=null&&n.backwards);if(t===!1)return!1;let r=e.charAt(t);if(i){if(e.charAt(t-1)==="\r"&&r===`
`)return t-2;if(r===`
`||r==="\r"||r==="\u2028"||r==="\u2029")return t-1}else{if(r==="\r"&&e.charAt(t+1)===`
`)return t+2;if(r===`
`||r==="\r"||r==="\u2028"||r==="\u2029")return t+1}return t}var Q=It;function Dt(e,t,n={}){let i=q(e,n.backwards?t-1:t,n),r=Q(e,i,n);return i!==r}var Re=Dt;function gt(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var Pe=gt;function At(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Le(e,t):t}var Fe=At;function kt(e,t){let n=null,i=t;for(;i!==n;)n=i,i=be(e,i),i=Pe(e,i),i=q(e,i);return i=Fe(e,i),i=Q(e,i),i!==!1&&Re(e,i)}var we=kt;function Ct(e){return Array.isArray(e)&&e.length>0}var fe=Ct;var he=class extends Error{name="UnexpectedNodeError";constructor(t,n,i="type"){super(`Unexpected ${n} node ${i}: ${JSON.stringify(t[i])}.`),this.node=t}},Be=he;var w=null;function B(e){if(w!==null&&typeof w.property){let t=w;return w=B.prototype=null,t}return w=B.prototype=e??Object.create(null),new B}var St=10;for(let e=0;e<=St;e++)B();function de(e){return B(e)}function vt(e,t="type"){de(e);function n(i){let r=i[t],s=e[r];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:i});return s}return n}var Ue=vt;var H=class{constructor(t,n,i){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},U=class{constructor(t,n,i,r,s,a){this.kind=t,this.start=n,this.end=i,this.line=r,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},W={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},hr=new Set(Object.keys(W));var S;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(S||(S={}));var bt=Ue(W,"kind"),Ve=bt;function K(e){return e.loc.start}function z(e){return e.loc.end}function Ye(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u.test(e)}function Me(e){return`# @format
`+e}function Lt(e,t,n){let{node:i}=e;if(!i.description)return"";let r=[n("description")];return i.kind==="InputValueDefinition"&&!i.description.block?r.push(k):r.push(f),r}var g=Lt;function Rt(e,t,n){let{node:i}=e;switch(i.kind){case"Document":return[...E(f,A(e,t,n,"definitions")),f];case"OperationDefinition":{let r=t.originalText[K(i)]!=="{",s=!!i.name;return[r?i.operation:"",r&&s?[" ",n("name")]:"",r&&!s&&fe(i.variableDefinitions)?" ":"",je(e,n),y(e,n,i),!r&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),je(e,n)," on ",n("typeCondition"),y(e,n,i)," ",n("selectionSet")];case"SelectionSet":return["{",_([f,E(f,A(e,t,n,"selections"))]),f,"}"];case"Field":return x([i.alias?[n("alias"),": "]:"",n("name"),i.arguments.length>0?x(["(",_([p,E([I("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",y(e,n,i),i.selectionSet?" ":"",n("selectionSet")]);case"Name":return i.value;case"StringValue":if(i.block){let r=j(!1,i.value,'"""',String.raw`\"""`).split(`
`);return r.length===1&&(r[0]=r[0].trim()),r.every(s=>s==="")&&(r.length=0),E(f,['"""',...r,'"""'])}return['"',j(!1,j(!1,i.value,/["\\]/gu,String.raw`\$&`),`
`,String.raw`\n`),'"'];case"IntValue":case"FloatValue":case"EnumValue":return i.value;case"BooleanValue":return i.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return x(["[",_([p,E([I("",", "),p],e.map(n,"values"))]),p,"]"]);case"ObjectValue":{let r=t.bracketSpacing&&i.fields.length>0?" ":"";return x(["{",r,_([p,E([I("",", "),p],e.map(n,"fields"))]),p,I("",r),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),i.arguments.length>0?x(["(",_([p,E([I("",", "),p],A(e,t,n,"arguments"))]),p,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",y(e,n,i)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:r}=i,s=[];return r.endsWith("TypeDefinition")?s.push(g(e,t,n)):s.push("extend "),r.startsWith("ObjectType")?s.push("type"):r.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!r.startsWith("InputObjectType")&&i.interfaces.length>0&&s.push(" implements ",...wt(e,t,n)),s.push(y(e,n,i)),i.fields.length>0&&s.push([" {",_([f,E(f,A(e,t,n,"fields"))]),f,"}"]),s}case"FieldDefinition":return[g(e,t,n),n("name"),i.arguments.length>0?x(["(",_([p,E([I("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",": ",n("type"),y(e,n,i)];case"DirectiveDefinition":return[g(e,t,n),"directive ","@",n("name"),i.arguments.length>0?x(["(",_([p,E([I("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",i.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[g(e,t,n),i.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),y(e,n,i),i.values.length>0?[" {",_([f,E(f,A(e,t,n,"values"))]),f,"}"]:""];case"EnumValueDefinition":return[g(e,t,n),n("name"),y(e,n,i)];case"InputValueDefinition":return[g(e,t,n),n("name"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",y(e,n,i)];case"SchemaExtension":return["extend schema",y(e,n,i),...i.operationTypes.length>0?[" {",_([f,E(f,A(e,t,n,"operationTypes"))]),f,"}"]:[]];case"SchemaDefinition":return[g(e,t,n),"schema",y(e,n,i)," {",i.operationTypes.length>0?_([f,E(f,A(e,t,n,"operationTypes"))]):"",f,"}"];case"OperationTypeDefinition":return[i.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),y(e,n,i)];case"InlineFragment":return["...",i.typeCondition?[" on ",n("typeCondition")]:"",y(e,n,i)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return x([g(e,t,n),x([i.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),y(e,n,i),i.types.length>0?[" =",I(""," "),_([I([k,"| "]),E([k,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[g(e,t,n),i.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),y(e,n,i)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Be(i,"Graphql","kind")}}function y(e,t,n){if(n.directives.length===0)return"";let i=E(k,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?x([k,i]):[" ",x(_([p,i]))]}function A(e,t,n,i){return e.map(({isLast:r,node:s})=>{let a=n();return!r&&we(t.originalText,z(s))?[a,f]:a},i)}function Pt(e){return e.kind!=="Comment"}function Ft(e){let t=e.node;if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function wt(e,t,n){let{node:i}=e,r=[],{interfaces:s}=i,a=e.map(n,"interfaces");for(let u=0;u<s.length;u++){let l=s[u];r.push(a[u]);let T=s[u+1];if(T){let D=t.originalText.slice(l.loc.end,T.loc.start).includes("#");r.push(" &",D?k:" ")}}return r}function je(e,t){let{node:n}=e;return fe(n.variableDefinitions)?x(["(",_([p,E([I("",", "),p],e.map(t,"variableDefinitions"))]),p,")"]):""}function Ge(e,t){e.kind==="StringValue"&&e.block&&!e.value.includes(`
`)&&(t.value=e.value.trim())}Ge.ignoredProperties=new Set(["loc","comments"]);function Bt(e){var n;let{node:t}=e;return(n=t==null?void 0:t.comments)==null?void 0:n.some(i=>i.value.trim()==="prettier-ignore")}var Ut={print:Rt,massageAstNode:Ge,hasPrettierIgnore:Bt,insertPragma:Me,printComment:Ft,canAttachComment:Pt,getVisitorKeys:Ve},$e=Ut;var Je=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}];var Xe={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Vt={bracketSpacing:Xe.bracketSpacing},qe=Vt;var _e={};ye(_e,{graphql:()=>ln});function Qe(e){return typeof e=="object"&&e!==null}function He(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var Yt=/\r\n|[\n\r]/g;function V(e,t){let n=0,i=1;for(let r of e.body.matchAll(Yt)){if(typeof r.index=="number"||He(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function Ke(e){return me(e.source,V(e.source,e.start))}function me(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,l=t.column+u,T=`${e.name}:${a}:${l}
`,h=i.split(/\r\n|[\n\r]/g),D=h[r];if(D.length>120){let O=Math.floor(l/80),ae=l%80,N=[];for(let b=0;b<D.length;b+=80)N.push(D.slice(b,b+80));return T+We([[`${a} |`,N[0]],...N.slice(1,O+1).map(b=>["|",b]),["|","^".padStart(ae)],["|",N[O+1]]])}return T+We([[`${a-1} |`,h[r-1]],[`${a} |`,D],["|","^".padStart(l)],[`${a+1} |`,h[r+1]]])}function We(e){let t=e.filter(([i,r])=>r!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(`
`)}function Mt(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Z=class e extends Error{constructor(t,...n){var i,r,s;let{nodes:a,source:u,positions:l,path:T,originalError:h,extensions:D}=Mt(n);super(t),this.name="GraphQLError",this.path=T??void 0,this.originalError=h??void 0,this.nodes=ze(Array.isArray(a)?a:a?[a]:void 0);let O=ze((i=this.nodes)===null||i===void 0?void 0:i.map(N=>N.loc).filter(N=>N!=null));this.source=u??(O==null||(r=O[0])===null||r===void 0?void 0:r.source),this.positions=l??(O==null?void 0:O.map(N=>N.start)),this.locations=l&&u?l.map(N=>V(u,N)):O==null?void 0:O.map(N=>V(N.source,N.start));let ae=Qe(h==null?void 0:h.extensions)?h==null?void 0:h.extensions:void 0;this.extensions=(s=D??ae)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),h!=null&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=`
`+Ke(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=`
`+me(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function ze(e){return e===void 0||e.length===0?void 0:e}function d(e,t,n){return new Z(`Syntax Error: ${n}`,{source:e,positions:[t]})}var ee;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ee||(ee={}));var c;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(c||(c={}));function Ze(e){return e===9||e===32}function R(e){return e>=48&&e<=57}function et(e){return e>=97&&e<=122||e>=65&&e<=90}function Ee(e){return et(e)||e===95}function tt(e){return et(e)||R(e)||e===95}function nt(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let a=0;a<e.length;++a){var s;let u=e[a],l=jt(u);l!==u.length&&(i=(s=i)!==null&&s!==void 0?s:a,r=a,a!==0&&l<n&&(n=l))}return e.map((a,u)=>u===0?a:a.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,r+1)}function jt(e){let t=0;for(;t<e.length&&Ze(e.charCodeAt(t));)++t;return t}var o;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(o||(o={}));var te=class{constructor(t){let n=new U(o.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==o.EOF)do if(t.next)t=t.next;else{let n=Gt(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===o.COMMENT);return t}};function it(e){return e===o.BANG||e===o.DOLLAR||e===o.AMP||e===o.PAREN_L||e===o.PAREN_R||e===o.SPREAD||e===o.COLON||e===o.EQUALS||e===o.AT||e===o.BRACKET_L||e===o.BRACKET_R||e===o.BRACE_L||e===o.PIPE||e===o.BRACE_R}function P(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ne(e,t){return st(e.charCodeAt(t))&&ot(e.charCodeAt(t+1))}function st(e){return e>=55296&&e<=56319}function ot(e){return e>=56320&&e<=57343}function v(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){let i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,i,r){let s=e.line,a=1+n-e.lineStart;return new U(t,n,i,s,a,r)}function Gt(e,t){let n=e.source.body,i=n.length,r=t;for(;r<i;){let s=n.charCodeAt(r);switch(s){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:n.charCodeAt(r+1)===10?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return $t(e,r);case 33:return m(e,o.BANG,r,r+1);case 36:return m(e,o.DOLLAR,r,r+1);case 38:return m(e,o.AMP,r,r+1);case 40:return m(e,o.PAREN_L,r,r+1);case 41:return m(e,o.PAREN_R,r,r+1);case 46:if(n.charCodeAt(r+1)===46&&n Line truncated
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Wt(e,t){let n=e.source.body,i=n.length,r=e.lineStart,s=t+3,a=s,u="",l=[];for(;s<i;){let T=n.charCodeAt(s);if(T===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){u+=n.slice(a,s),l.push(u);let h=m(e,o.BLOCK_STRING,t,s+3,nt(l).join(`
`));return e.line+=l.length-1,e.lineStart=r,h}if(T===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){u+=n.slice(a,s),a=s+1,s+=4;continue}if(T===10||T===13){u+=n.slice(a,s),l.push(u),T===13&&n.charCodeAt(s+1)===10?s+=2:++s,u="",a=s,r=s;continue}if(P(T))++s;else if(ne(n,s))s+=2;else throw d(e.source,s,`Invalid character within String: ${v(e,s)}.`)}throw d(e.source,s,"Unterminated string.")}function Kt(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){let s=n.charCodeAt(r);if(tt(s))++r;else break}return m(e,o.NAME,t,r,n.slice(t,r))}function re(e,t){if(!!!e)throw new Error(t)}function ie(e){return se(e,[])}function se(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return zt(e,t);default:return String(e)}}function zt(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(Zt(e)){let i=e.toJSON();if(i!==e)return typeof i=="string"?i:se(i,n)}else if(Array.isArray(e))return tn(e,n);return en(e,n)}function Zt(e){return typeof e.toJSON=="function"}function en(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+nn(e)+"]":"{ "+n.map(([r,s])=>r+": "+se(s,t)).join(", ")+" }"}function tn(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),i=e.length-n,r=[];for(let s=0;s<n;++s)r.push(se(e[s],t));return i===1?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function nn(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var rn=globalThis.process&&!0,at=rn?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var i;let r=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(r===s){let a=ie(t);throw new Error(`Cannot use ${r} "${a}" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
https://yarnpkg.com/en/docs/selective-version-resolutions
Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1};var M=class{constructor(t,n="GraphQL request",i={line:1,column:1}){typeof t=="string"||re(!1,`Body must be a string. Received: ${ie(t)}.`),this.body=t,this.name=n,this.locationOffset=i,this.locationOffset.line>0||re(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||re(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function ct(e){return at(e,M)}function ut(e,t){let n=new Ne(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}var Ne=class{constructor(t,n={}){let i=ct(t)?t:new M(t);this._lexer=new te(i),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:S.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),i;return this.peek(o.NAME)&&(i=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(o.NAME);switch(t.value){case"query":return S.QUERY;case"mutation":return S.MUTATION;case"subscription":return S.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),i,r;return this.expectOptionalToken(o.COLON)?(i=n,r=this.parseName()):r=n,this.node(t,{kind:c.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(o.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(o.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),di Line truncated
+29
View File
@@ -0,0 +1,29 @@
var ft=Object.defineProperty;var ye=(e,t)=>{for(var n in t)ft(e,n,{get:t[n],enumerable:!0})};var _e={};ye(_e,{languages:()=>Je,options:()=>qe,parsers:()=>Ne,printers:()=>an});var ht=(e,t,n,i)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(n,i):n.global?t.replace(n,i):t.split(n).join(i)},j=ht;var G="indent";var $="group";var F="if-break";var C="line";var J="break-parent";var ve=()=>{},L=ve,le=ve;function _(e){return L(e),{type:G,contents:e}}function x(e,t={}){return L(e),le(t.expandedStates,!0),{type:$,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function I(e,t="",n={}){return L(e),t!==""&&L(t),{type:F,breakContents:e,flatContents:t,groupId:n.groupId}}var Tt={type:J};var Nt={type:C,hard:!0};var k={type:C},p={type:C,soft:!0},f=[Nt,Tt];function E(e,t){L(e),le(t);let n=[];for(let i=0;i<t.length;i++)i!==0&&n.push(e),n.push(t[i]);return n}function X(e){return(t,n,i)=>{let r=!!(i!=null&&i.backwards);if(n===!1)return!1;let{length:s}=t,a=n;for(;a>=0&&a<s;){let u=t.charAt(a);if(e instanceof RegExp){if(!e.test(u))return a}else if(!e.includes(u))return a;r?a--:a++}return a===-1||a===s?a:!1}}var jn=X(/\s/u),q=X(" "),be=X(",; "),Le=X(/[^\n\r]/u);function _t(e,t,n){let i=!!(n!=null&&n.backwards);if(t===!1)return!1;let r=e.charAt(t);if(i){if(e.charAt(t-1)==="\r"&&r===`
`)return t-2;if(r===`
`||r==="\r"||r==="\u2028"||r==="\u2029")return t-1}else{if(r==="\r"&&e.charAt(t+1)===`
`)return t+2;if(r===`
`||r==="\r"||r==="\u2028"||r==="\u2029")return t+1}return t}var Q=_t;function yt(e,t,n={}){let i=q(e,n.backwards?t-1:t,n),r=Q(e,i,n);return i!==r}var Re=yt;function xt(e,t){if(t===!1)return!1;if(e.charAt(t)==="/"&&e.charAt(t+1)==="*"){for(let n=t+2;n<e.length;++n)if(e.charAt(n)==="*"&&e.charAt(n+1)==="/")return n+2}return t}var Pe=xt;function Ot(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?Le(e,t):t}var Fe=Ot;function It(e,t){let n=null,i=t;for(;i!==n;)n=i,i=be(e,i),i=Pe(e,i),i=q(e,i);return i=Fe(e,i),i=Q(e,i),i!==!1&&Re(e,i)}var we=It;function Dt(e){return Array.isArray(e)&&e.length>0}var pe=Dt;var fe=class extends Error{name="UnexpectedNodeError";constructor(t,n,i="type"){super(`Unexpected ${n} node ${i}: ${JSON.stringify(t[i])}.`),this.node=t}},Be=fe;var w=null;function B(e){if(w!==null&&typeof w.property){let t=w;return w=B.prototype=null,t}return w=B.prototype=e??Object.create(null),new B}var gt=10;for(let e=0;e<=gt;e++)B();function he(e){return B(e)}function At(e,t="type"){he(e);function n(i){let r=i[t],s=e[r];if(!Array.isArray(s))throw Object.assign(new Error(`Missing visitor keys for '${r}'.`),{node:i});return s}return n}var Ue=At;var H=class{constructor(t,n,i){this.start=t.start,this.end=n.end,this.startToken=t,this.endToken=n,this.source=i}get[Symbol.toStringTag](){return"Location"}toJSON(){return{start:this.start,end:this.end}}},U=class{constructor(t,n,i,r,s,a){this.kind=t,this.start=n,this.end=i,this.line=r,this.column=s,this.value=a,this.prev=null,this.next=null}get[Symbol.toStringTag](){return"Token"}toJSON(){return{kind:this.kind,value:this.value,line:this.line,column:this.column}}},W={Name:[],Document:["definitions"],OperationDefinition:["name","variableDefinitions","directives","selectionSet"],VariableDefinition:["variable","type","defaultValue","directives"],Variable:["name"],SelectionSet:["selections"],Field:["alias","name","arguments","directives","selectionSet"],Argument:["name","value"],FragmentSpread:["name","directives"],InlineFragment:["typeCondition","directives","selectionSet"],FragmentDefinition:["name","variableDefinitions","typeCondition","directives","selectionSet"],IntValue:[],FloatValue:[],StringValue:[],BooleanValue:[],NullValue:[],EnumValue:[],ListValue:["values"],ObjectValue:["fields"],ObjectField:["name","value"],Directive:["name","arguments"],NamedType:["name"],ListType:["type"],NonNullType:["type"],SchemaDefinition:["description","directives","operationTypes"],OperationTypeDefinition:["type"],ScalarTypeDefinition:["description","name","directives"],ObjectTypeDefinition:["description","name","interfaces","directives","fields"],FieldDefinition:["description","name","arguments","type","directives"],InputValueDefinition:["description","name","type","defaultValue","directives"],InterfaceTypeDefinition:["description","name","interfaces","directives","fields"],UnionTypeDefinition:["description","name","directives","types"],EnumTypeDefinition:["description","name","directives","values"],EnumValueDefinition:["description","name","directives"],InputObjectTypeDefinition:["description","name","directives","fields"],DirectiveDefinition:["description","name","arguments","locations"],SchemaExtension:["directives","operationTypes"],ScalarTypeExtension:["name","directives"],ObjectTypeExtension:["name","interfaces","directives","fields"],InterfaceTypeExtension:["name","interfaces","directives","fields"],UnionTypeExtension:["name","directives","types"],EnumTypeExtension:["name","directives","values"],InputObjectTypeExtension:["name","directives","fields"]},cr=new Set(Object.keys(W));var S;(function(e){e.QUERY="query",e.MUTATION="mutation",e.SUBSCRIPTION="subscription"})(S||(S={}));var kt=Ue(W,"kind"),Ve=kt;function K(e){return e.loc.start}function z(e){return e.loc.end}function Ye(e){return/^\s*#[^\S\n]*@(?:format|prettier)\s*(?:\n|$)/u.test(e)}function Me(e){return`# @format
`+e}function Ct(e,t,n){let{node:i}=e;if(!i.description)return"";let r=[n("description")];return i.kind==="InputValueDefinition"&&!i.description.block?r.push(k):r.push(f),r}var g=Ct;function St(e,t,n){let{node:i}=e;switch(i.kind){case"Document":return[...E(f,A(e,t,n,"definitions")),f];case"OperationDefinition":{let r=t.originalText[K(i)]!=="{",s=!!i.name;return[r?i.operation:"",r&&s?[" ",n("name")]:"",r&&!s&&pe(i.variableDefinitions)?" ":"",je(e,n),y(e,n,i),!r&&!s?"":" ",n("selectionSet")]}case"FragmentDefinition":return["fragment ",n("name"),je(e,n)," on ",n("typeCondition"),y(e,n,i)," ",n("selectionSet")];case"SelectionSet":return["{",_([f,E(f,A(e,t,n,"selections"))]),f,"}"];case"Field":return x([i.alias?[n("alias"),": "]:"",n("name"),i.arguments.length>0?x(["(",_([p,E([I("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",y(e,n,i),i.selectionSet?" ":"",n("selectionSet")]);case"Name":return i.value;case"StringValue":if(i.block){let r=j(!1,i.value,'"""',String.raw`\"""`).split(`
`);return r.length===1&&(r[0]=r[0].trim()),r.every(s=>s==="")&&(r.length=0),E(f,['"""',...r,'"""'])}return['"',j(!1,j(!1,i.value,/["\\]/gu,String.raw`\$&`),`
`,String.raw`\n`),'"'];case"IntValue":case"FloatValue":case"EnumValue":return i.value;case"BooleanValue":return i.value?"true":"false";case"NullValue":return"null";case"Variable":return["$",n("name")];case"ListValue":return x(["[",_([p,E([I("",", "),p],e.map(n,"values"))]),p,"]"]);case"ObjectValue":{let r=t.bracketSpacing&&i.fields.length>0?" ":"";return x(["{",r,_([p,E([I("",", "),p],e.map(n,"fields"))]),p,I("",r),"}"])}case"ObjectField":case"Argument":return[n("name"),": ",n("value")];case"Directive":return["@",n("name"),i.arguments.length>0?x(["(",_([p,E([I("",", "),p],A(e,t,n,"arguments"))]),p,")"]):""];case"NamedType":return n("name");case"VariableDefinition":return[n("variable"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",y(e,n,i)];case"ObjectTypeExtension":case"ObjectTypeDefinition":case"InputObjectTypeExtension":case"InputObjectTypeDefinition":case"InterfaceTypeExtension":case"InterfaceTypeDefinition":{let{kind:r}=i,s=[];return r.endsWith("TypeDefinition")?s.push(g(e,t,n)):s.push("extend "),r.startsWith("ObjectType")?s.push("type"):r.startsWith("InputObjectType")?s.push("input"):s.push("interface"),s.push(" ",n("name")),!r.startsWith("InputObjectType")&&i.interfaces.length>0&&s.push(" implements ",...Lt(e,t,n)),s.push(y(e,n,i)),i.fields.length>0&&s.push([" {",_([f,E(f,A(e,t,n,"fields"))]),f,"}"]),s}case"FieldDefinition":return[g(e,t,n),n("name"),i.arguments.length>0?x(["(",_([p,E([I("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",": ",n("type"),y(e,n,i)];case"DirectiveDefinition":return[g(e,t,n),"directive ","@",n("name"),i.arguments.length>0?x(["(",_([p,E([I("",", "),p],A(e,t,n,"arguments"))]),p,")"]):"",i.repeatable?" repeatable":""," on ",...E(" | ",e.map(n,"locations"))];case"EnumTypeExtension":case"EnumTypeDefinition":return[g(e,t,n),i.kind==="EnumTypeExtension"?"extend ":"","enum ",n("name"),y(e,n,i),i.values.length>0?[" {",_([f,E(f,A(e,t,n,"values"))]),f,"}"]:""];case"EnumValueDefinition":return[g(e,t,n),n("name"),y(e,n,i)];case"InputValueDefinition":return[g(e,t,n),n("name"),": ",n("type"),i.defaultValue?[" = ",n("defaultValue")]:"",y(e,n,i)];case"SchemaExtension":return["extend schema",y(e,n,i),...i.operationTypes.length>0?[" {",_([f,E(f,A(e,t,n,"operationTypes"))]),f,"}"]:[]];case"SchemaDefinition":return[g(e,t,n),"schema",y(e,n,i)," {",i.operationTypes.length>0?_([f,E(f,A(e,t,n,"operationTypes"))]):"",f,"}"];case"OperationTypeDefinition":return[i.operation,": ",n("type")];case"FragmentSpread":return["...",n("name"),y(e,n,i)];case"InlineFragment":return["...",i.typeCondition?[" on ",n("typeCondition")]:"",y(e,n,i)," ",n("selectionSet")];case"UnionTypeExtension":case"UnionTypeDefinition":return x([g(e,t,n),x([i.kind==="UnionTypeExtension"?"extend ":"","union ",n("name"),y(e,n,i),i.types.length>0?[" =",I(""," "),_([I([k,"| "]),E([k,"| "],e.map(n,"types"))])]:""])]);case"ScalarTypeExtension":case"ScalarTypeDefinition":return[g(e,t,n),i.kind==="ScalarTypeExtension"?"extend ":"","scalar ",n("name"),y(e,n,i)];case"NonNullType":return[n("type"),"!"];case"ListType":return["[",n("type"),"]"];default:throw new Be(i,"Graphql","kind")}}function y(e,t,n){if(n.directives.length===0)return"";let i=E(k,e.map(t,"directives"));return n.kind==="FragmentDefinition"||n.kind==="OperationDefinition"?x([k,i]):[" ",x(_([p,i]))]}function A(e,t,n,i){return e.map(({isLast:r,node:s})=>{let a=n();return!r&&we(t.originalText,z(s))?[a,f]:a},i)}function vt(e){return e.kind!=="Comment"}function bt(e){let t=e.node;if(t.kind==="Comment")return"#"+t.value.trimEnd();throw new Error("Not a comment: "+JSON.stringify(t))}function Lt(e,t,n){let{node:i}=e,r=[],{interfaces:s}=i,a=e.map(n,"interfaces");for(let u=0;u<s.length;u++){let l=s[u];r.push(a[u]);let T=s[u+1];if(T){let D=t.originalText.slice(l.loc.end,T.loc.start).includes("#");r.push(" &",D?k:" ")}}return r}function je(e,t){let{node:n}=e;return pe(n.variableDefinitions)?x(["(",_([p,E([I("",", "),p],e.map(t,"variableDefinitions"))]),p,")"]):""}function Ge(e,t){e.kind==="StringValue"&&e.block&&!e.value.includes(`
`)&&(t.value=e.value.trim())}Ge.ignoredProperties=new Set(["loc","comments"]);function Rt(e){var n;let{node:t}=e;return(n=t==null?void 0:t.comments)==null?void 0:n.some(i=>i.value.trim()==="prettier-ignore")}var Pt={print:St,massageAstNode:Ge,hasPrettierIgnore:Rt,insertPragma:Me,printComment:bt,canAttachComment:vt,getVisitorKeys:Ve},$e=Pt;var Je=[{linguistLanguageId:139,name:"GraphQL",type:"data",color:"#e10098",extensions:[".graphql",".gql",".graphqls"],tmScope:"source.graphql",aceMode:"text",parsers:["graphql"],vscodeLanguageIds:["graphql"]}];var Xe={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Ft={bracketSpacing:Xe.bracketSpacing},qe=Ft;var Ne={};ye(Ne,{graphql:()=>on});function Qe(e){return typeof e=="object"&&e!==null}function He(e,t){if(!!!e)throw new Error(t??"Unexpected invariant triggered.")}var wt=/\r\n|[\n\r]/g;function V(e,t){let n=0,i=1;for(let r of e.body.matchAll(wt)){if(typeof r.index=="number"||He(!1),r.index>=t)break;n=r.index+r[0].length,i+=1}return{line:i,column:t+1-n}}function Ke(e){return de(e.source,V(e.source,e.start))}function de(e,t){let n=e.locationOffset.column-1,i="".padStart(n)+e.body,r=t.line-1,s=e.locationOffset.line-1,a=t.line+s,u=t.line===1?n:0,l=t.column+u,T=`${e.name}:${a}:${l}
`,h=i.split(/\r\n|[\n\r]/g),D=h[r];if(D.length>120){let O=Math.floor(l/80),ae=l%80,N=[];for(let b=0;b<D.length;b+=80)N.push(D.slice(b,b+80));return T+We([[`${a} |`,N[0]],...N.slice(1,O+1).map(b=>["|",b]),["|","^".padStart(ae)],["|",N[O+1]]])}return T+We([[`${a-1} |`,h[r-1]],[`${a} |`,D],["|","^".padStart(l)],[`${a+1} |`,h[r+1]]])}function We(e){let t=e.filter(([i,r])=>r!==void 0),n=Math.max(...t.map(([i])=>i.length));return t.map(([i,r])=>i.padStart(n)+(r?" "+r:"")).join(`
`)}function Bt(e){let t=e[0];return t==null||"kind"in t||"length"in t?{nodes:t,source:e[1],positions:e[2],path:e[3],originalError:e[4],extensions:e[5]}:t}var Z=class e extends Error{constructor(t,...n){var i,r,s;let{nodes:a,source:u,positions:l,path:T,originalError:h,extensions:D}=Bt(n);super(t),this.name="GraphQLError",this.path=T??void 0,this.originalError=h??void 0,this.nodes=ze(Array.isArray(a)?a:a?[a]:void 0);let O=ze((i=this.nodes)===null||i===void 0?void 0:i.map(N=>N.loc).filter(N=>N!=null));this.source=u??(O==null||(r=O[0])===null||r===void 0?void 0:r.source),this.positions=l??(O==null?void 0:O.map(N=>N.start)),this.locations=l&&u?l.map(N=>V(u,N)):O==null?void 0:O.map(N=>V(N.source,N.start));let ae=Qe(h==null?void 0:h.extensions)?h==null?void 0:h.extensions:void 0;this.extensions=(s=D??ae)!==null&&s!==void 0?s:Object.create(null),Object.defineProperties(this,{message:{writable:!0,enumerable:!0},name:{enumerable:!1},nodes:{enumerable:!1},source:{enumerable:!1},positions:{enumerable:!1},originalError:{enumerable:!1}}),h!=null&&h.stack?Object.defineProperty(this,"stack",{value:h.stack,writable:!0,configurable:!0}):Error.captureStackTrace?Error.captureStackTrace(this,e):Object.defineProperty(this,"stack",{value:Error().stack,writable:!0,configurable:!0})}get[Symbol.toStringTag](){return"GraphQLError"}toString(){let t=this.message;if(this.nodes)for(let n of this.nodes)n.loc&&(t+=`
`+Ke(n.loc));else if(this.source&&this.locations)for(let n of this.locations)t+=`
`+de(this.source,n);return t}toJSON(){let t={message:this.message};return this.locations!=null&&(t.locations=this.locations),this.path!=null&&(t.path=this.path),this.extensions!=null&&Object.keys(this.extensions).length>0&&(t.extensions=this.extensions),t}};function ze(e){return e===void 0||e.length===0?void 0:e}function d(e,t,n){return new Z(`Syntax Error: ${n}`,{source:e,positions:[t]})}var ee;(function(e){e.QUERY="QUERY",e.MUTATION="MUTATION",e.SUBSCRIPTION="SUBSCRIPTION",e.FIELD="FIELD",e.FRAGMENT_DEFINITION="FRAGMENT_DEFINITION",e.FRAGMENT_SPREAD="FRAGMENT_SPREAD",e.INLINE_FRAGMENT="INLINE_FRAGMENT",e.VARIABLE_DEFINITION="VARIABLE_DEFINITION",e.SCHEMA="SCHEMA",e.SCALAR="SCALAR",e.OBJECT="OBJECT",e.FIELD_DEFINITION="FIELD_DEFINITION",e.ARGUMENT_DEFINITION="ARGUMENT_DEFINITION",e.INTERFACE="INTERFACE",e.UNION="UNION",e.ENUM="ENUM",e.ENUM_VALUE="ENUM_VALUE",e.INPUT_OBJECT="INPUT_OBJECT",e.INPUT_FIELD_DEFINITION="INPUT_FIELD_DEFINITION"})(ee||(ee={}));var c;(function(e){e.NAME="Name",e.DOCUMENT="Document",e.OPERATION_DEFINITION="OperationDefinition",e.VARIABLE_DEFINITION="VariableDefinition",e.SELECTION_SET="SelectionSet",e.FIELD="Field",e.ARGUMENT="Argument",e.FRAGMENT_SPREAD="FragmentSpread",e.INLINE_FRAGMENT="InlineFragment",e.FRAGMENT_DEFINITION="FragmentDefinition",e.VARIABLE="Variable",e.INT="IntValue",e.FLOAT="FloatValue",e.STRING="StringValue",e.BOOLEAN="BooleanValue",e.NULL="NullValue",e.ENUM="EnumValue",e.LIST="ListValue",e.OBJECT="ObjectValue",e.OBJECT_FIELD="ObjectField",e.DIRECTIVE="Directive",e.NAMED_TYPE="NamedType",e.LIST_TYPE="ListType",e.NON_NULL_TYPE="NonNullType",e.SCHEMA_DEFINITION="SchemaDefinition",e.OPERATION_TYPE_DEFINITION="OperationTypeDefinition",e.SCALAR_TYPE_DEFINITION="ScalarTypeDefinition",e.OBJECT_TYPE_DEFINITION="ObjectTypeDefinition",e.FIELD_DEFINITION="FieldDefinition",e.INPUT_VALUE_DEFINITION="InputValueDefinition",e.INTERFACE_TYPE_DEFINITION="InterfaceTypeDefinition",e.UNION_TYPE_DEFINITION="UnionTypeDefinition",e.ENUM_TYPE_DEFINITION="EnumTypeDefinition",e.ENUM_VALUE_DEFINITION="EnumValueDefinition",e.INPUT_OBJECT_TYPE_DEFINITION="InputObjectTypeDefinition",e.DIRECTIVE_DEFINITION="DirectiveDefinition",e.SCHEMA_EXTENSION="SchemaExtension",e.SCALAR_TYPE_EXTENSION="ScalarTypeExtension",e.OBJECT_TYPE_EXTENSION="ObjectTypeExtension",e.INTERFACE_TYPE_EXTENSION="InterfaceTypeExtension",e.UNION_TYPE_EXTENSION="UnionTypeExtension",e.ENUM_TYPE_EXTENSION="EnumTypeExtension",e.INPUT_OBJECT_TYPE_EXTENSION="InputObjectTypeExtension"})(c||(c={}));function Ze(e){return e===9||e===32}function R(e){return e>=48&&e<=57}function et(e){return e>=97&&e<=122||e>=65&&e<=90}function me(e){return et(e)||e===95}function tt(e){return et(e)||R(e)||e===95}function nt(e){var t;let n=Number.MAX_SAFE_INTEGER,i=null,r=-1;for(let a=0;a<e.length;++a){var s;let u=e[a],l=Ut(u);l!==u.length&&(i=(s=i)!==null&&s!==void 0?s:a,r=a,a!==0&&l<n&&(n=l))}return e.map((a,u)=>u===0?a:a.slice(n)).slice((t=i)!==null&&t!==void 0?t:0,r+1)}function Ut(e){let t=0;for(;t<e.length&&Ze(e.charCodeAt(t));)++t;return t}var o;(function(e){e.SOF="<SOF>",e.EOF="<EOF>",e.BANG="!",e.DOLLAR="$",e.AMP="&",e.PAREN_L="(",e.PAREN_R=")",e.SPREAD="...",e.COLON=":",e.EQUALS="=",e.AT="@",e.BRACKET_L="[",e.BRACKET_R="]",e.BRACE_L="{",e.PIPE="|",e.BRACE_R="}",e.NAME="Name",e.INT="Int",e.FLOAT="Float",e.STRING="String",e.BLOCK_STRING="BlockString",e.COMMENT="Comment"})(o||(o={}));var te=class{constructor(t){let n=new U(o.SOF,0,0,0,0);this.source=t,this.lastToken=n,this.token=n,this.line=1,this.lineStart=0}get[Symbol.toStringTag](){return"Lexer"}advance(){return this.lastToken=this.token,this.token=this.lookahead()}lookahead(){let t=this.token;if(t.kind!==o.EOF)do if(t.next)t=t.next;else{let n=Vt(this,t.end);t.next=n,n.prev=t,t=n}while(t.kind===o.COMMENT);return t}};function it(e){return e===o.BANG||e===o.DOLLAR||e===o.AMP||e===o.PAREN_L||e===o.PAREN_R||e===o.SPREAD||e===o.COLON||e===o.EQUALS||e===o.AT||e===o.BRACKET_L||e===o.BRACKET_R||e===o.BRACE_L||e===o.PIPE||e===o.BRACE_R}function P(e){return e>=0&&e<=55295||e>=57344&&e<=1114111}function ne(e,t){return st(e.charCodeAt(t))&&ot(e.charCodeAt(t+1))}function st(e){return e>=55296&&e<=56319}function ot(e){return e>=56320&&e<=57343}function v(e,t){let n=e.source.body.codePointAt(t);if(n===void 0)return o.EOF;if(n>=32&&n<=126){let i=String.fromCodePoint(n);return i==='"'?`'"'`:`"${i}"`}return"U+"+n.toString(16).toUpperCase().padStart(4,"0")}function m(e,t,n,i,r){let s=e.line,a=1+n-e.lineStart;return new U(t,n,i,s,a,r)}function Vt(e,t){let n=e.source.body,i=n.length,r=t;for(;r<i;){let s=n.charCodeAt(r);switch(s){case 65279:case 9:case 32:case 44:++r;continue;case 10:++r,++e.line,e.lineStart=r;continue;case 13:n.charCodeAt(r+1)===10?r+=2:++r,++e.line,e.lineStart=r;continue;case 35:return Yt(e,r);case 33:return m(e,o.BANG,r,r+1);case 36:return m(e,o.DOLLAR,r,r+1);case 38:return m(e,o.AMP,r,r+1);case 40:return m(e,o.PAREN_L,r,r+1);case 41:return m(e,o.PAREN_R,r,r+1);case 46:if(n.charCodeAt(r+1)===46&&n Line truncated
`,size:2};case 114:return{value:"\r",size:2};case 116:return{value:" ",size:2}}throw d(e.source,t,`Invalid character escape sequence: "${n.slice(t,t+2)}".`)}function Xt(e,t){let n=e.source.body,i=n.length,r=e.lineStart,s=t+3,a=s,u="",l=[];for(;s<i;){let T=n.charCodeAt(s);if(T===34&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34){u+=n.slice(a,s),l.push(u);let h=m(e,o.BLOCK_STRING,t,s+3,nt(l).join(`
`));return e.line+=l.length-1,e.lineStart=r,h}if(T===92&&n.charCodeAt(s+1)===34&&n.charCodeAt(s+2)===34&&n.charCodeAt(s+3)===34){u+=n.slice(a,s),a=s+1,s+=4;continue}if(T===10||T===13){u+=n.slice(a,s),l.push(u),T===13&&n.charCodeAt(s+1)===10?s+=2:++s,u="",a=s,r=s;continue}if(P(T))++s;else if(ne(n,s))s+=2;else throw d(e.source,s,`Invalid character within String: ${v(e,s)}.`)}throw d(e.source,s,"Unterminated string.")}function qt(e,t){let n=e.source.body,i=n.length,r=t+1;for(;r<i;){let s=n.charCodeAt(r);if(tt(s))++r;else break}return m(e,o.NAME,t,r,n.slice(t,r))}function re(e,t){if(!!!e)throw new Error(t)}function ie(e){return se(e,[])}function se(e,t){switch(typeof e){case"string":return JSON.stringify(e);case"function":return e.name?`[function ${e.name}]`:"[function]";case"object":return Qt(e,t);default:return String(e)}}function Qt(e,t){if(e===null)return"null";if(t.includes(e))return"[Circular]";let n=[...t,e];if(Ht(e)){let i=e.toJSON();if(i!==e)return typeof i=="string"?i:se(i,n)}else if(Array.isArray(e))return Kt(e,n);return Wt(e,n)}function Ht(e){return typeof e.toJSON=="function"}function Wt(e,t){let n=Object.entries(e);return n.length===0?"{}":t.length>2?"["+zt(e)+"]":"{ "+n.map(([r,s])=>r+": "+se(s,t)).join(", ")+" }"}function Kt(e,t){if(e.length===0)return"[]";if(t.length>2)return"[Array]";let n=Math.min(10,e.length),i=e.length-n,r=[];for(let s=0;s<n;++s)r.push(se(e[s],t));return i===1?r.push("... 1 more item"):i>1&&r.push(`... ${i} more items`),"["+r.join(", ")+"]"}function zt(e){let t=Object.prototype.toString.call(e).replace(/^\[object /,"").replace(/]$/,"");if(t==="Object"&&typeof e.constructor=="function"){let n=e.constructor.name;if(typeof n=="string"&&n!=="")return n}return t}var Zt=globalThis.process&&!0,at=Zt?function(t,n){return t instanceof n}:function(t,n){if(t instanceof n)return!0;if(typeof t=="object"&&t!==null){var i;let r=n.prototype[Symbol.toStringTag],s=Symbol.toStringTag in t?t[Symbol.toStringTag]:(i=t.constructor)===null||i===void 0?void 0:i.name;if(r===s){let a=ie(t);throw new Error(`Cannot use ${r} "${a}" from another module or realm.
Ensure that there is only one instance of "graphql" in the node_modules
directory. If different versions of "graphql" are the dependencies of other
relied on modules, use "resolutions" to ensure only one version is installed.
https://yarnpkg.com/en/docs/selective-version-resolutions
Duplicate "graphql" modules cannot be used at the same time since different
versions may have different capabilities and behavior. The data from one
version used in the function from another could produce confusing and
spurious results.`)}}return!1};var M=class{constructor(t,n="GraphQL request",i={line:1,column:1}){typeof t=="string"||re(!1,`Body must be a string. Received: ${ie(t)}.`),this.body=t,this.name=n,this.locationOffset=i,this.locationOffset.line>0||re(!1,"line in locationOffset is 1-indexed and must be positive."),this.locationOffset.column>0||re(!1,"column in locationOffset is 1-indexed and must be positive.")}get[Symbol.toStringTag](){return"Source"}};function ct(e){return at(e,M)}function ut(e,t){let n=new Te(e,t),i=n.parseDocument();return Object.defineProperty(i,"tokenCount",{enumerable:!1,value:n.tokenCount}),i}var Te=class{constructor(t,n={}){let i=ct(t)?t:new M(t);this._lexer=new te(i),this._options=n,this._tokenCounter=0}get tokenCount(){return this._tokenCounter}parseName(){let t=this.expectToken(o.NAME);return this.node(t,{kind:c.NAME,value:t.value})}parseDocument(){return this.node(this._lexer.token,{kind:c.DOCUMENT,definitions:this.many(o.SOF,this.parseDefinition,o.EOF)})}parseDefinition(){if(this.peek(o.BRACE_L))return this.parseOperationDefinition();let t=this.peekDescription(),n=t?this._lexer.lookahead():this._lexer.token;if(n.kind===o.NAME){switch(n.value){case"schema":return this.parseSchemaDefinition();case"scalar":return this.parseScalarTypeDefinition();case"type":return this.parseObjectTypeDefinition();case"interface":return this.parseInterfaceTypeDefinition();case"union":return this.parseUnionTypeDefinition();case"enum":return this.parseEnumTypeDefinition();case"input":return this.parseInputObjectTypeDefinition();case"directive":return this.parseDirectiveDefinition()}if(t)throw d(this._lexer.source,this._lexer.token.start,"Unexpected description, descriptions are supported only on type definitions.");switch(n.value){case"query":case"mutation":case"subscription":return this.parseOperationDefinition();case"fragment":return this.parseFragmentDefinition();case"extend":return this.parseTypeSystemExtension()}}throw this.unexpected(n)}parseOperationDefinition(){let t=this._lexer.token;if(this.peek(o.BRACE_L))return this.node(t,{kind:c.OPERATION_DEFINITION,operation:S.QUERY,name:void 0,variableDefinitions:[],directives:[],selectionSet:this.parseSelectionSet()});let n=this.parseOperationType(),i;return this.peek(o.NAME)&&(i=this.parseName()),this.node(t,{kind:c.OPERATION_DEFINITION,operation:n,name:i,variableDefinitions:this.parseVariableDefinitions(),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseOperationType(){let t=this.expectToken(o.NAME);switch(t.value){case"query":return S.QUERY;case"mutation":return S.MUTATION;case"subscription":return S.SUBSCRIPTION}throw this.unexpected(t)}parseVariableDefinitions(){return this.optionalMany(o.PAREN_L,this.parseVariableDefinition,o.PAREN_R)}parseVariableDefinition(){return this.node(this._lexer.token,{kind:c.VARIABLE_DEFINITION,variable:this.parseVariable(),type:(this.expectToken(o.COLON),this.parseTypeReference()),defaultValue:this.expectOptionalToken(o.EQUALS)?this.parseConstValueLiteral():void 0,directives:this.parseConstDirectives()})}parseVariable(){let t=this._lexer.token;return this.expectToken(o.DOLLAR),this.node(t,{kind:c.VARIABLE,name:this.parseName()})}parseSelectionSet(){return this.node(this._lexer.token,{kind:c.SELECTION_SET,selections:this.many(o.BRACE_L,this.parseSelection,o.BRACE_R)})}parseSelection(){return this.peek(o.SPREAD)?this.parseFragment():this.parseField()}parseField(){let t=this._lexer.token,n=this.parseName(),i,r;return this.expectOptionalToken(o.COLON)?(i=n,r=this.parseName()):r=n,this.node(t,{kind:c.FIELD,alias:i,name:r,arguments:this.parseArguments(!1),directives:this.parseDirectives(!1),selectionSet:this.peek(o.BRACE_L)?this.parseSelectionSet():void 0})}parseArguments(t){let n=t?this.parseConstArgument:this.parseArgument;return this.optionalMany(o.PAREN_L,n,o.PAREN_R)}parseArgument(t=!1){let n=this._lexer.token,i=this.parseName();return this.expectToken(o.COLON),this.node(n,{kind:c.ARGUMENT,name:i,value:this.parseValueLiteral(t)})}parseConstArgument(){return this.parseArgument(!0)}parseFragment(){let t=this._lexer.token;this.expectToken(o.SPREAD);let n=this.expectOptionalKeyword("on");return!n&&this.peek(o.NAME)?this.node(t,{kind:c.FRAGMENT_SPREAD,name:this.parseFragmentName(),directives:this.parseDirectives(!1)}):this.node(t,{kind:c.INLINE_FRAGMENT,typeCondition:n?this.parseNamedType():void 0,directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()})}parseFragmentDefinition(){let t=this._lexer.token;return this.expectKeyword("fragment"),this._options.allowLegacyFragmentVariables===!0?this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),variableDefinitions:this.parseVariableDefinitions(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),directives:this.parseDirectives(!1),selectionSet:this.parseSelectionSet()}):this.node(t,{kind:c.FRAGMENT_DEFINITION,name:this.parseFragmentName(),typeCondition:(this.expectKeyword("on"),this.parseNamedType()),di Line truncated
+8
View File
@@ -0,0 +1,8 @@
import { Parser } from "../index.js";
export declare const parsers: {
angular: Parser;
html: Parser;
lwc: Parser;
vue: Parser;
};
+22
View File
@@ -0,0 +1,22 @@
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.html=e()}})(function(){"use strict";var Et=Object.defineProperty;var ui=Object.getOwnPropertyDescriptor;var li=Object.getOwnPropertyNames;var ci=Object.prototype.hasOwnProperty;var sn=t=>{throw TypeError(t)};var pi=(t,e,r)=>e in t?Et(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var an=(t,e)=>{for(var r in e)Et(t,r,{get:e[r],enumerable:!0})},hi=(t,e,r,n)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of li(e))!ci.call(t,s)&&s!==r&&Et(t,s,{get:()=>e[s],enumerable:!(n=ui(e,s))||n.enumerable});return t};var fi=t=>hi(Et({},"__esModule",{value:!0}),t);var cr=(t,e,r)=>pi(t,typeof e!="symbol"?e+"":e,r),on=(t,e,r)=>e.has(t)||sn("Cannot "+r);var R=(t,e,r)=>(on(t,e,"read from private field"),r?r.call(t):e.get(t)),At=(t,e,r)=>e.has(t)?sn("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),un=(t,e,r,n)=>(on(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var jo={};an(jo,{languages:()=>Ts,options:()=>ks,parsers:()=>en,printers:()=>Yo});var mi=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},w=mi;var ye="string",Ge="array",Ye="cursor",we="indent",be="align",je="trim",Te="group",xe="fill",ce="if-break",ke="indent-if-break",Ke="line-suffix",Qe="line-suffix-boundary",j="line",Xe="label",Be="break-parent",Dt=new Set([Ye,we,be,je,Te,xe,ce,ke,Ke,Qe,j,Xe,Be]);var di=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},K=di;function gi(t){if(typeof t=="string")return ye;if(Array.isArray(t))return Ge;if(!t)return;let{type:e}=t;if(Dt.has(e))return e}var Le=gi;var Ci=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Si(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
Expected it to be 'string' or 'object'.`;if(Le(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=Ci([...Dt].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'.
Expected it to be ${n}.`}var pr=class extends Error{name="InvalidDocError";constructor(e){super(Si(e)),this.doc=e}},hr=pr;function fr(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Le(i)){case Ge:return e(i.map(n));case xe:return e({...i,parts:i.parts.map(n)});case ce:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Te:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case be:case we:case ke:case Xe:case Ke:return e({...i,contents:n(i.contents)});case ye:case Ye:case je:case Qe:case j:case Be:return e(i);default:throw new hr(i)}}}function B(t,e=ln){return fr(t,r=>typeof r=="string"?H(e,r.split(`
`)):r)}var mr=()=>{},ne=mr,dr=mr,cn=mr;function k(t){return ne(t),{type:we,contents:t}}function pn(t,e){return ne(e),{type:be,contents:e,n:t}}function E(t,e={}){return ne(t),dr(e.expandedStates,!0),{type:Te,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function hn(t){return pn(Number.NEGATIVE_INFINITY,t)}function fn(t){return pn({type:"root"},t)}function vt(t){return cn(t),{type:xe,parts:t}}function pe(t,e="",r={}){return ne(t),e!==""&&ne(e),{type:ce,breakContents:t,flatContents:e,groupId:r.groupId}}function mn(t,e){return ne(t),{type:ke,contents:t,groupId:e.groupId,negate:e.negate}}var se={type:Be};var Ei={type:j,hard:!0},Ai={type:j,hard:!0,literal:!0},_={type:j},v={type:j,soft:!0},S=[Ei,se],ln=[Ai,se];function H(t,e){ne(t),dr(e);let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var yt="'",dn='"';function Di(t,e){let r=e===!0||e===yt?yt:dn,n=r===yt?dn:yt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var gn=Di;function gr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var V,Cr=class{constructor(e){At(this,V);un(this,V,new Set(e))}getLeadingWhitespaceCount(e){let r=R(this,V),n=0;for(let s=0;s<e.length&&r.has(e.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(e){let r=R(this,V),n=0;for(let s=e.length-1;s>=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return R(this,V).has(e.charAt(0))}hasTrailingWhitespace(e){return R(this,V).has(K(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${gr([...R(this,V)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=R(this,V);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=R(this,V);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=R(this,V);return Array.prototype.every.call(e,n=>r.has(n))}};V=new WeakMap;var Cn=Cr;var vi=[" ",`
`,"\f","\r"," "],yi=new Cn(vi),O=yi;var Sr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},Sn=Sr;function wi(t){return(t==null?void 0:t.type)==="front-matter"}var Fe=wi;var bi=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),Ti=new Set(["if","else if","for","switch","case"]);function _n(t,e){var r;if(t.type==="text"||t.type==="comment"||Fe(t)||t.type==="yaml"||t.type==="toml")return null;if(t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value,t.type==="angularControlFlowBlock"&&((r=t.parameters)!=null&&r.children))for(let n of e.parameters.children)Ti.has(t.name)?delete n.expression:n.expression=n.expression.trim();t.type==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.type==="angularLetDeclarationInitializer"&&delete e.value}_n.ignoredProperties=bi;var En=_n;async function xi(t,e){if(t.language==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return fn([t.startDelimiter,t.explicitLanguage,S,n,n?S:"",t.endDelimiter])}}var An=xi;function he(t,e=!0){return[k([v,t]),e?v:""]}function Q(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function T(t,e,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let s=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{s=n(a,o)});let i=await e(t,r,e);return s?E(i):he(i)}function ki(t,e,r,n){let{node:s}=r,i=n.originalText.slice(s.sourceSpan.start.offset,s.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":T(i,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},Q)}var Dn=ki;var Bi=t=>String(t).split(/[/\\]/u).pop();function vn(t,e){if(!e)return;let r=Bi(e).toLowerCase();return t.find(({filenames:n})=>n==null?void 0:n.some(s=>s.toLowerCase()===r))??t.find(({extensions:n})=>n==null?void 0:n.some(s=>r.endsWith(s)))}function Li(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function Fi(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=Li(r,e.language)??vn(r,e.physicalFile)??vn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Ne=Fi;var yn="inline",wn={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},bn="normal",Tn={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function Ni(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var fe=Ni;var Pi=t=>w(!1,t,/^[\t\f\r ]*\n/gu,""),_r=t=>Pi(O.trimEnd(t)),xn=t=>{let e=t,r=O.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=O.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function wt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||me(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||xt(t,e)&&!W(t)&&t.type!=="interpolation")}function de(t){return t.type==="attribute"||!t.parent||!t.prev?!1:Ii(t.prev)}function Ii(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function $(t){return t.type==="text"||t.type==="comment"}function W(t){return t.typ Line truncated
`)){if(r.length===0)continue;let n=O.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<e&&(e=n)}return e===Number.POSITIVE_INFINITY?0:e}function vr(t,e=Yi(t)){return e===0?t:t.split(`
`).map(r=>r.slice(e)).join(`
`)}function yr(t){return w(!1,w(!1,t,"&apos;","'"),"&quot;",'"')}function N(t){return yr(t.value)}var ji=new Set(["template","style","script"]);function et(t,e){return ge(t,e)&&!ji.has(t.fullName)}function ge(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function xt(t,e){return ge(t,e)&&(et(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function Vn(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function Un(t,e){let r=t.parent;if(!ge(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function kt(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?B(e):B(vr(_r(e)),S):H(_,O.split(e))}function Bt(t,e){return ge(t,e)&&t.name==="script"}var wr=/\{\{(.+?)\}\}/su;async function Wn(t,e){let r=[];for(let[n,s]of t.split(wr).entries())if(n%2===0)r.push(B(s));else try{r.push(E(["{{",k([_,await T(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),_,"}}"]))}catch{r.push("{{",B(s),"}}")}return r}function br({parser:t}){return(e,r,n)=>T(N(n.node),e,{parser:t},Q)}var Ki=br({parser:"__ng_action"}),Qi=br({parser:"__ng_binding"}),Xi=br({parser:"__ng_directive"});function Ji(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return Ki;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return Qi;if(n.startsWith("*"))return Xi;let s=N(r);if(/^i18n(?:-.+)?$/u.test(n))return()=>he(vt(kt(r,s.trim())),!s.includes("@@"));if(wr.test(s))return i=>Wn(s,i)}var zn=Ji;function Zi(t,e){let{node:r}=t,n=N(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}var Gn=Zi;function Yn(t){return t===" "||t===`
`||t==="\f"||t==="\r"||t===" "}var ea=/^[ \t\n\r\u000c]+/,ta=/^[, \t\n\r\u000c]+/,ra=/^[^ \t\n\r\u000c]+/,na=/[,]+$/,jn=/^\d+$/,sa=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function ia(t){let e=t.length,r,n,s,i,a,o=0,u;function p(C){let A,D=C.exec(t.substring(o));if(D)return[A]=D,o+=A.length,A}let l=[];for(;;){if(p(ta),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(ra),n=[],r.slice(-1)===","?(r=r.replace(na,""),d()):f()}function f(){for(p(ea),s="",i="in descriptor";;){if(a=t.charAt(o),i==="in descriptor")if(Yn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){o+=1,s&&n.push(s),d();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),d();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),d();return}else s+=a;else if(i==="after descriptor"&&!Yn(a))if(a===""){d();return}else i="in descriptor",o-=1;o+=1}}function d(){let C=!1,A,D,I,F,c={},g,y,q,x,U;for(F=0;F<n.length;F++)g=n[F],y=g[g.length-1],q=g.substring(0,g.length-1),x=parseInt(q,10),U=parseFloat(q),jn.test(q)&&y==="w"?((A||D)&&(C=!0),x===0?C=!0:A=x):sa.test(q)&&y==="x"?((A||D||I)&&(C=!0),U<0?C=!0:D=U):jn.test(q)&&y==="h"?((I||D)&&(C=!0),x===0?C=!0:I=x):C=!0;if(!C)c.source={value:r,startOffset:u},A&&(c.width={value:A}),D&&(c.density={value:D}),I&&(c.height={value:I}),l.push(c);else throw new Error(`Invalid srcset descriptor found in "${t}" at "${g}".`)}}var Kn=ia;function aa(t){if(t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"))return()=>ua(N(t.node))}var Qn={width:"w",height:"h",density:"x"},oa=Object.keys(Qn);function ua(t){let e=Kn(t),r=oa.filter(l=>e.some(f=>Object.prototype.hasOwnProperty.call(f,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=Qn[n],i=e.map(l=>l.source.value),a=Math.max(...i.map(l=>l.length)),o=e.map(l=>l[n]?String(l[n].value):""),u=o.map(l=>{let f=l.indexOf(".");return f===-1?l.length:f}),p=Math.max(...u);return he(H([",",_],i.map((l,f)=>{let d=[l],C=o[f];if(C){let A=a-l.length+1,D=p-u[f],I=" ".repeat(A+D);d.push(pe(I," "),C+s)}return d})))}var Xn=aa;function Jn(t,e){let{node:r}=t,n=N(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>he(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var Tr=new WeakMap;function la(t,e){let{root:r}=t;return Tr.has(r)||Tr.set(r,r.children.some(n=>Bt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),Tr.get(r)}var Pe=la;function Zn(t,e,r){let{node:n}=r,s=N(n);return T(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Q)}function es(t,e,{parseWithTs:r}){return T(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}async function ts(t,e,r,n){let s=N(r.node),{left:i,operator:a,right:o}=ca(s),u=Pe(r,n);return[E(await T(`function _(${i}) {}`,t,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await T(o,t,{parser:u?"__ts_expression":"__js_expression"})]}function ca(t){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=w(!1,s[1].trim(),n,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];if(!u.some((p,l)=>!p&&(l===0||u.slice(l+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:s[2],right:i.for}}function pa(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return ts;if(n==="generic"&&Bt(r.parent,e))return Zn;let s=N(r),i=Pe(t,e);if(Vn(r)||Un(r,e))return a=>es(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>ha(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith(".")||n.startsWith("v-bind:"))return a=>fa(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>rs(s,a,{parseWithTs:i})}async function ha(t,e,{parseWithTs:r}){var n;try{return await rs(t,e,{parseWithTs:r})}catch(s){if(((n=s.cause)==null?void 0:n.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw s}return T(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Q)}function fa(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},Q)}function rs(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__ts_expression":"__js_expression"},Q)}var ns=pa;function ma(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[Xn,Jn,Gn,ns,zn]){let s=n(t,e);if(s)return da(s)}}}function da(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=fr(i,a=>typeof a=="string"?w(!1,a,'"',"&quot;"):a),[n.node.rawName,'="',E(i),'"']}}var ss=ma;var is=new Proxy(()=>{},{get:()=>is}),xr=is;function ga(t){return Array.isArray(t)&&t.l Line truncated
`+t}var ms=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function ds(t){let e=Z(t);return t.type==="element"&&!t.endSourceSpan&&Ie(t.children)?Math.max(e,ds(K(!1,t.children,-1))):e}function ot(t,e,r){let n=t.node;if(de(n)){let s=ds(n);return[G(n,e),B(O.trimEnd(e.originalText.slice(J(n)+(n.prev&&rt(n.prev)?Ft(n).length:0),s-(n.next&&X(n.next)?Se(n,e).length:0)))),z(n,e)]}return r()}function It(t,e){return $(t)&&$(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?bt(e)?S:_:"":bt(e)?S:v:rt(t)&&(de(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&X(e)?"":!e.isLeadingSpaceSensitive||bt(e)||X(e)&&t.lastChild&&Ee(t.lastChild)&&t.lastChild.lastChild&&Ee(t.lastChild.lastChild)?S:e.hasLeadingSpaces?_:v}function Re(t,e,r){let{node:n}=t;if(Ar(n))return[se,...t.map(i=>{let a=i.node,o=a.prev?It(a.prev,a):"";return[o?[o,Je(a.prev)?S:""]:"",ot(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let o=i.node;if($(o)){if(o.prev&&$(o.prev)){let A=It(o.prev,o);if(A)return Je(o.prev)?[S,S,ot(i,e,r)]:[A,ot(i,e,r)]}return ot(i,e,r)}let u=[],p=[],l=[],f=[],d=o.prev?It(o.prev,o):"",C=o.next?It(o,o.next):"";return d&&(Je(o.prev)?u.push(S,S):d===S?u.push(S):$(o.prev)?p.push(d):p.push(pe("",v,{groupId:s[a-1]}))),C&&(Je(o)?$(o.next)&&f.push(S,S):C===S?$(o.next)&&f.push(S):l.push(C)),[...u,E([...p,E([ot(i,e,r),...l],{id:s[a]})]),...f]},"children")}function gs(t,e,r){let{node:n}=t,s=[];ka(t)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",E(r("parameters")),")"),s.push(" {");let i=Cs(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(k([S,Re(t,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),E(s,{shouldBreak:!0})}function Cs(t){var e,r;return!(((e=t.next)==null?void 0:e.type)==="angularControlFlowBlock"&&((r=ms.get(t.name))!=null&&r.has(t.next.name)))}function ka(t){let{previous:e}=t;return(e==null?void 0:e.type)==="angularControlFlowBlock"&&!de(e)&&!Cs(e)}function Ss(t,e,r){return[k([v,H([";",_],t.map(r,"children"))]),v]}function _s(t,e,r){let{node:n}=t;return[Ae(n,e),E([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",k([_,H(_,t.map(r,"cases"))])]:"",v]),Ce(n,e)]}function Es(t,e,r){let{node:n}=t;return[n.value," {",E([k([v,t.map(({node:s,isLast:i})=>{let a=[r()];return s.type==="text"&&(s.hasLeadingSpaces&&a.unshift(_),s.hasTrailingSpaces&&!i&&a.push(_)),a},"expression")]),v]),"}"]}function As(t,e,r){let{node:n}=t;if(wt(n,e))return[G(n,e),E(st(t,e,r)),B(Pt(n,e)),...tt(n,e),z(n,e)];let s=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>E([E(st(t,e,r),{id:i}),l,tt(n,e)]),o=l=>s?mn(l,{groupId:i}):(W(n)||et(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:k(l),u=()=>s?pe(v,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?hn(v):v,p=()=>(n.next?X(n.next):_e(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?pe(v,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":v;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:""):a([Pn(n)?se:"",o([u(),Re(t,e,r)]),p()])}function ut(t){return t>=9&&t<=32||t==160}function Rt(t){return 48<=t&&t<=57}function lt(t){return t>=97&&t<=122||t>=65&&t<=90}function Ds(t){return t>=97&&t<=102||t>=65&&t<=70||Rt(t)}function $t(t){return t===10||t===13}function Br(t){return 48<=t&&t<=55}function Ot(t){return t===39||t===34||t===96}var Ba=/-+([a-z0-9])/g;function ys(t){return t.replace(Ba,(...e)=>e[1].toUpperCase())}var ie=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let u=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=u>0?s-u:s}else a--;for(;s<n&&e>0;){let o=r.charCodeAt(s);s++,e--,o==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,o=0;for(;a<e& Line truncated
`&&++o==r)););for(a=0,o=0;a<e&&i<n.length-1&&(i++,a++,!(n[i]==`
`&&++o==r)););return{before:n.substring(s,this.offset),after:n.substring(this.offset,i+1)}}return null}},De=class{constructor(e,r){this.content=e,this.url=r}},h=class{constructor(e,r,n=e,s=null){this.start=e,this.end=r,this.fullStart=n,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Mt;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(Mt||(Mt={}));var Oe=class{constructor(e,r,n=Mt.ERROR){this.span=e,this.msg=r,this.level=n}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Mt[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var La=[Na,Pa,Ra,Oa,Ma,Va,qa,Ha,Ua,$a];function Fa(t,e){for(let r of La)r(t,e);return t}function Na(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===`
`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function Pa(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let s=r.children[n];if(!e(s))continue;let i=s.prev,a=s.firstChild;r.removeChild(i),n--;let o=new h(i.sourceSpan.start,a.sourceSpan.end),u=new h(o.start,s.sourceSpan.end);s.condition=i.condition,s.sourceSpan=u,s.startSourceSpan=o,s.removeChild(a)}})}function Ia(t,e,r){t.walk(n=>{if(n.children)for(let s=0;s<n.children.length;s++){let i=n.children[s];if(i.type!=="text"&&!e(i))continue;i.type!=="text"&&(i.type="text",i.value=r(i));let a=i.prev;!a||a.type!=="text"||(a.value+=i.value,a.sourceSpan=new h(a.sourceSpan.start,i.sourceSpan.end),n.removeChild(i),s--)}})}function Ra(t){return Ia(t,e=>e.type==="cdata",e=>`<![CDATA[${e.value}]]>`)}function $a(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!O.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let s=r.children[n];if(!e(s))continue;let i=s.prev,a=s.next;i.value+=`<${s.rawName}>`+s.firstChild.value+`</${s.rawName}>`+a.value,i.sourceSpan=new h(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function Oa(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t.walk(n=>{if(kn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,o=s.value.split(r);for(let u=0;u<o.length;u++,i=a){let p=o[u];if(u%2===0){a=i.moveBy(p.length),p.length>0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new h(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new h(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new h(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function Ma(t){t.walk(e=>{let r=e.$children;if(!r)return;if(r.length===0||r.length===1&&r[0].type==="text"&&O.trim(r[0].value).length===0){e.hasDanglingSpaces=r.length>0,e.$children=[];return}let n=Bn(e),s=Er(e);if(!n)for(let i=0;i<r.length;i++){let a=r[i];if(a.type!=="text")continue;let{leadingWhitespace:o,text:u,trailingWhitespace:p}=xn(a.value),l=a.prev,f=a.next;u?(a.value=u,a.sourceSpan=new h(a.sourceSpan.start.moveBy(o.length),a.sourceSpan.end.moveBy(-p.length)),o&&(l&&(l.hasTrailingSpaces=!0),a.hasLeadingSpaces=!0),p&&(a.hasTrailingSpaces=!0,f&&(f.hasLeadingSpaces=!0))):(e.removeChild(a),i--,(o||p)&&(l&&(l.hasTrailingSpaces=!0),f&&(f.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=n,e.isIndentationSensitive=s})}function qa(t){t.walk(e=>{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function Ha(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Va(t,e){t.walk(r=>{r.cssDisplay=qn(r,e)})}function Ua(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Nn(r);return}for(let s of n)s.isLeadingSpaceSensitive=Ln(s,e),s.isTrailingSpaceSensitive=Fn(s,e);for(let s=0;s<n.length;s++){let i=n[s];i.isLeadingSpaceSensitive=(s===0||i.prev.isTrailingSpaceSensitive)&&i.isLeadingSpaceSensitive,i.isTrailingSpaceSensitive=(s===n.length-1||i.next.isLeadingSpaceSensitive)&&i.isTrailingSpaceSensitive}}})}var ws=Fa;function Wa(t,e,r){let{node:n}=t;switch(n.type){case"front-matter":return B(n.raw);case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[E(Re(t,e,r)),S];case"element":case"ieConditionalComment":return As(t,e,r);case"angularControlFlowBlock":return gs(t,e,r);case"angularControlFlowBlockParameters":return Ss(t,e,r);case"angularControlFlowBlockParameter":return O.trim(n.expression);case"angularLetDeclaration":return E(["@let ",E([n.id," =",E(k([_,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return n.value;case"angularIcuExpression":return _s(t,e,r);case"angularIcuCase":return Es(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Ae(n),Ce(n)];case"interpolation":return[Ae(n,e),...t.map(r,"children"),Ce(n,e)];case"text":{if(n.parent.type==="interpolation"){let o=/\n[^\S\n]*$/u,u=o.test(n.value),p=u?n.value.replace(o,""):n.value;retuLine truncated
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>Ja.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return ys(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(Za(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function Za(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var m=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=P.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:u=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=u??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Is,pt;function He(t){return pt||(Is=new m({canSelfClose:!0}),pt=Object.assign(Object.create(null),{base:new m({isVoid:!0}),meta:new m({isVoid:!0}),area:new m({isVoid:!0}),embed:new m({isVoid:!0}),link:new m({isVoid:!0}),img:new m({isVoid:!0}),input:new m({isVoid:!0}),param:new m({isVoid:!0}),hr:new m({isVoid:!0}),br:new m({isVoid:!0}),source:new m({isVoid:!0}),track:new m({isVoid:!0}),wbr:new m({isVoid:!0}),p:new m({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new m({closedByChildren:["tbody","tfoot"]}),tbody:new m({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new m({closedByChildren:["tbody"],closedByParent:!0}),tr:new m({closedByChildren:["tr"],closedByParent:!0}),td:new m({closedByChildren:["td","th"],closedByParent:!0}),th:new m({closedByChildren:["td","th"],closedByParent:!0}),col:new m({isVoid:!0}),svg:new m({implicitNamespacePrefix:"svg"}),foreignObject:new m({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new m({implicitNamespacePrefix:"math"}),li:new m({closedByChildren:["li"],closedByParent:!0}),dt:new m({closedByChildren:["dt","dd"]}),dd:new m({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new m({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new m({closedByChildren:["optgroup"],closedByParent:!0}),option:new m({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new m({ignoreFirstLf:!0}),listing:new m({ignoreFirstLf:!0}),style:new m({contentType:P.RAW_TEXT}),script:new m({contentType:P.RAW_TEXT}),title:new m({contentType:{default:P.ESCAPABLE_RAW_TEXT,svg:P.PARSABLE_DATA}}),textarea:new m({contentType:P.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Ut().allKnownElementNames().forEach(e=>{!pt[e]&&Me(e)===null&&(pt[e]=new m({canSelfClose:!1}))})),pt[t]??Is}var ae=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Wt=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},zt=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},Gt=class extends ae{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Yt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i,this.type="expansionCase"}visit(e,r){return e.visitExpans Line truncated
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",v Line truncated
`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(n=>ut(n)?!e:Ws(n)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._beginToken(25,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(b),this._attemptCharCode(41))this._attemptCharCodeUntilFn(b);else{r.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(zs);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),r=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let s=this._cursor.peek();if(s===92)this._cursor.advance();else if(s===r)r=null;else if(r===null&&Ot(s))r=s;else if(s===40&&r===null)n++;else if(s===41&&r===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(zs)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),ut(this._cursor.peek()))this._attemptCharCodeUntilFn(b);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=33;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(b),!this._attemptCharCode(61)){r.type=33;return}this._attemptCharCodeUntilFn(s=>b(s)&&!$t(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(r.type=33,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(n=>lt(n)||n===36||n===95||r&&Rt(n)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;Ot(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===92?(this._cursor.advance(),!1):n===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(To(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new gt("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new gt("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new gt(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new Ct(n)}handleError(e){if(e instanceof St&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Ct)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return xo(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Ue(this._cursor.peek()),this._cursor.getSpan(r))}_attemptS Line truncated
`){let n=this._getClosestParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],n=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===`
`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,Xs):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Wt(s,new h(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getContainer();e instanceof Y&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let C=this.getTagDefinition(i);this.canSelfClose||C.canSelfClose||Me(i)!==null||C.isVoid||this.errors.push(L.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,u=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),p=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new h(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new Y(i,s,[],u,p,void 0,l),d=this._getContainer();this._pushContainer(f,d instanceof Y&&this.getTagDefinition(d.name).isClosedByChild(f.name)),a?this._popContainer(i,Y,u):e.type===4&&(this._popContainer(i,Y,null),this.errors.push(L.create(i,u,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(L.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(r,Y,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(L.create(r,e.sourceSpan,n))}}_popContainer(e,r,n){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(Me(a.name)?a.name===e:(e==null||a.name.toLowerCase()===e.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(a instanceof te||a instanceof Y&&!this.getTagDefinition(a.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let r=qe(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],o,u;if(this._peek.type===16)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let f=this._advance();a.push(f),f.type===17?i+=f.parts.join("").replace(/&([^;]+);/g,Xs):f.type===9?i+=f.parts[0]:i+=f.parts.join(""),u=n=f.sourceSpan.end}this._peek.type===15&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new h((s==null?void 0:s.sourceSpan.start)??o.start,u,(s==null?void 0:s.sourceSpan.fullStart)??o.fullStart);return new jt(r,i,new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ht(o.parts[0],o.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new te(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,te,e.sourceSpan)||this.errors.push(L.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ht(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new te(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,te,null),this.errors.push(L.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],n,s;if(this._peek.type!==31){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==32){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else Line truncated
`,_t);if(r===-1)return;let n=t.slice(_t,r).trim(),s=t.indexOf(`
${e}`,r),i=n;if(i||(i=e==="+++"?"toml":"yaml"),s===-1&&e==="---"&&i==="yaml"&&(s=t.indexOf(`
...`,r)),s===-1)return;let a=s+1+_t,o=t.charAt(a+1);if(!/\s?/u.test(o))return;let u=t.slice(0,a);return{type:"front-matter",language:i,explicitLanguage:n,value:t.slice(r+1,s),startDelimiter:e,endDelimiter:u.slice(-_t),raw:u}}function No(t){let e=Fo(t);if(!e)return{content:t};let{raw:r}=e;return{frontMatter:e,content:w(!1,r,/[^\n]/gu," ")+t.slice(r.length)}}var Zs=No;var ar={attrs:!0,children:!0,cases:!0,expression:!0},ei=new Set(["parent"]),le,Jr,Zr,ze=class ze{constructor(e={}){At(this,le);cr(this,"type");cr(this,"parent");for(let r of new Set([...ei,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in ar&&(r=r.map(n=>this.createChild(n))),!ei.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in ar){let s=this[n];if(s){let i=Po(s,a=>a.map(e));r!==s&&(r||(r=new ze({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in ar||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in ar){let n=this[r];if(n)for(let s=0;s<n.length;s++)n[s].walk(e)}e(this)}createChild(e){let r=e instanceof ze?e.clone():new ze(e);return r.setProperty("parent",this),r}insertChildBefore(e,r){let n=this.$children;n.splice(n.indexOf(e),0,this.createChild(r))}removeChild(e){let r=this.$children;r.splice(r.indexOf(e),1)}replaceChild(e,r){let n=this.$children;n[n.indexOf(e)]=this.createChild(r)}clone(){return new ze(this)}get $children(){return this[R(this,le,Jr)]}set $children(e){this[R(this,le,Jr)]=e}get firstChild(){var e;return(e=this.$children)==null?void 0:e[0]}get lastChild(){return K(!0,this.$children,-1)}get prev(){let e=R(this,le,Zr);return e[e.indexOf(this)-1]}get next(){let e=R(this,le,Zr);return e[e.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(e=>[e.fullName,e.value]))}};le=new WeakSet,Jr=function(){return this.type==="angularIcuCase"?"expression":this.type==="angularIcuExpression"?"cases":"children"},Zr=function(){var e;return((e=this.parent)==null?void 0:e.$children)??[]};var or=ze;function Po(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var Io=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Ro},{regex:/^\[if([^\]]*)\]><!$/u,parse:$o},{regex:/^<!\s*\[endif\]$/u,parse:Oo}];function ti(t,e){if(t.value)for(let{regex:r,parse:n}of Io){let s=t.value.match(r);if(s)return n(t,e,s)}return null}function Ro(t,e,r){let[,n,s,i]=r,a=4+n.length,o=t.sourceSpan.start.moveBy(a),u=o.moveBy(i.length),[p,l]=(()=>{try{return[!0,e(i,o).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new h(o,u)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:w(!1,s.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new h(t.sourceSpan.start,o),endSourceSpan:new h(u,t.sourceSpan.end)}}function $o(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:w(!1,n.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan}}function Oo(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var ur=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],[" Line truncated
+22
View File
@@ -0,0 +1,22 @@
var sn=Object.defineProperty;var an=t=>{throw TypeError(t)};var li=(t,e,r)=>e in t?sn(t,e,{enumerable:!0,configurable:!0,writable:!0,value:r}):t[e]=r;var on=(t,e)=>{for(var r in e)sn(t,r,{get:e[r],enumerable:!0})};var lr=(t,e,r)=>li(t,typeof e!="symbol"?e+"":e,r),un=(t,e,r)=>e.has(t)||an("Cannot "+r);var R=(t,e,r)=>(un(t,e,"read from private field"),r?r.call(t):e.get(t)),Et=(t,e,r)=>e.has(t)?an("Cannot add the same private member more than once"):e instanceof WeakSet?e.add(t):e.set(t,r),ln=(t,e,r,n)=>(un(t,e,"write to private field"),n?n.call(t,r):e.set(t,r),r);var en={};on(en,{languages:()=>xs,options:()=>Bs,parsers:()=>Zr,printers:()=>Uo});var ci=(t,e,r,n)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(r,n):r.global?e.replace(r,n):e.split(r).join(n)},w=ci;var ye="string",Ge="array",Ye="cursor",we="indent",be="align",je="trim",Te="group",xe="fill",ce="if-break",ke="indent-if-break",Ke="line-suffix",Qe="line-suffix-boundary",j="line",Xe="label",Be="break-parent",At=new Set([Ye,we,be,je,Te,xe,ce,ke,Ke,Qe,j,Xe,Be]);var pi=(t,e,r)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[r<0?e.length+r:r]:e.at(r)},K=pi;function hi(t){if(typeof t=="string")return ye;if(Array.isArray(t))return Ge;if(!t)return;let{type:e}=t;if(At.has(e))return e}var Le=hi;var fi=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function mi(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
Expected it to be 'string' or 'object'.`;if(Le(t))throw new Error("doc is valid.");let r=Object.prototype.toString.call(t);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=fi([...At].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'.
Expected it to be ${n}.`}var cr=class extends Error{name="InvalidDocError";constructor(e){super(mi(e)),this.doc=e}},pr=cr;function hr(t,e){if(typeof t=="string")return e(t);let r=new Map;return n(t);function n(i){if(r.has(i))return r.get(i);let a=s(i);return r.set(i,a),a}function s(i){switch(Le(i)){case Ge:return e(i.map(n));case xe:return e({...i,parts:i.parts.map(n)});case ce:return e({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Te:{let{expandedStates:a,contents:o}=i;return a?(a=a.map(n),o=a[0]):o=n(o),e({...i,contents:o,expandedStates:a})}case be:case we:case ke:case Xe:case Ke:return e({...i,contents:n(i.contents)});case ye:case Ye:case je:case Qe:case j:case Be:return e(i);default:throw new pr(i)}}}function B(t,e=cn){return hr(t,r=>typeof r=="string"?H(e,r.split(`
`)):r)}var fr=()=>{},ne=fr,mr=fr,pn=fr;function k(t){return ne(t),{type:we,contents:t}}function hn(t,e){return ne(e),{type:be,contents:e,n:t}}function E(t,e={}){return ne(t),mr(e.expandedStates,!0),{type:Te,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function fn(t){return hn(Number.NEGATIVE_INFINITY,t)}function mn(t){return hn({type:"root"},t)}function Dt(t){return pn(t),{type:xe,parts:t}}function pe(t,e="",r={}){return ne(t),e!==""&&ne(e),{type:ce,breakContents:t,flatContents:e,groupId:r.groupId}}function dn(t,e){return ne(t),{type:ke,contents:t,groupId:e.groupId,negate:e.negate}}var se={type:Be};var gi={type:j,hard:!0},Ci={type:j,hard:!0,literal:!0},_={type:j},v={type:j,soft:!0},S=[gi,se],cn=[Ci,se];function H(t,e){ne(t),mr(e);let r=[];for(let n=0;n<e.length;n++)n!==0&&r.push(t),r.push(e[n]);return r}var vt="'",gn='"';function Si(t,e){let r=e===!0||e===vt?vt:gn,n=r===vt?gn:vt,s=0,i=0;for(let a of t)a===r?s++:a===n&&i++;return s>i?n:r}var Cn=Si;function dr(t){if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var V,gr=class{constructor(e){Et(this,V);ln(this,V,new Set(e))}getLeadingWhitespaceCount(e){let r=R(this,V),n=0;for(let s=0;s<e.length&&r.has(e.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(e){let r=R(this,V),n=0;for(let s=e.length-1;s>=0&&r.has(e.charAt(s));s--)n++;return n}getLeadingWhitespace(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(0,r)}getTrailingWhitespace(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(e.length-r)}hasLeadingWhitespace(e){return R(this,V).has(e.charAt(0))}hasTrailingWhitespace(e){return R(this,V).has(K(!1,e,-1))}trimStart(e){let r=this.getLeadingWhitespaceCount(e);return e.slice(r)}trimEnd(e){let r=this.getTrailingWhitespaceCount(e);return e.slice(0,e.length-r)}trim(e){return this.trimEnd(this.trimStart(e))}split(e,r=!1){let n=`[${dr([...R(this,V)].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return e.split(s)}hasWhitespaceCharacter(e){let r=R(this,V);return Array.prototype.some.call(e,n=>r.has(n))}hasNonWhitespaceCharacter(e){let r=R(this,V);return Array.prototype.some.call(e,n=>!r.has(n))}isWhitespaceOnly(e){let r=R(this,V);return Array.prototype.every.call(e,n=>r.has(n))}};V=new WeakMap;var Sn=gr;var _i=[" ",`
`,"\f","\r"," "],Ei=new Sn(_i),O=Ei;var Cr=class extends Error{name="UnexpectedNodeError";constructor(e,r,n="type"){super(`Unexpected ${r} node ${n}: ${JSON.stringify(e[n])}.`),this.node=e}},_n=Cr;function Ai(t){return(t==null?void 0:t.type)==="front-matter"}var Fe=Ai;var Di=new Set(["sourceSpan","startSourceSpan","endSourceSpan","nameSpan","valueSpan","keySpan","tagDefinition","tokens","valueTokens","switchValueSourceSpan","expSourceSpan","valueSourceSpan"]),vi=new Set(["if","else if","for","switch","case"]);function En(t,e){var r;if(t.type==="text"||t.type==="comment"||Fe(t)||t.type==="yaml"||t.type==="toml")return null;if(t.type==="attribute"&&delete e.value,t.type==="docType"&&delete e.value,t.type==="angularControlFlowBlock"&&((r=t.parameters)!=null&&r.children))for(let n of e.parameters.children)vi.has(t.name)?delete n.expression:n.expression=n.expression.trim();t.type==="angularIcuExpression"&&(e.switchValue=t.switchValue.trim()),t.type==="angularLetDeclarationInitializer"&&delete e.value}En.ignoredProperties=Di;var An=En;async function yi(t,e){if(t.language==="yaml"){let r=t.value.trim(),n=r?await e(r,{parser:"yaml"}):"";return mn([t.startDelimiter,t.explicitLanguage,S,n,n?S:"",t.endDelimiter])}}var Dn=yi;function he(t,e=!0){return[k([v,t]),e?v:""]}function Q(t,e){let r=t.type==="NGRoot"?t.node.type==="NGMicrosyntax"&&t.node.body.length===1&&t.node.body[0].type==="NGMicrosyntaxExpression"?t.node.body[0].expression:t.node:t.type==="JsExpressionRoot"?t.node:t;return r&&(r.type==="ObjectExpression"||r.type==="ArrayExpression"||(e.parser==="__vue_expression"||e.parser==="__vue_ts_expression")&&(r.type==="TemplateLiteral"||r.type==="StringLiteral"))}async function T(t,e,r,n){r={__isInHtmlAttribute:!0,__embeddedInHtml:!0,...r};let s=!0;n&&(r.__onHtmlBindingRoot=(a,o)=>{s=n(a,o)});let i=await e(t,r,e);return s?E(i):he(i)}function wi(t,e,r,n){let{node:s}=r,i=n.originalText.slice(s.sourceSpan.start.offset,s.sourceSpan.end.offset);return/^\s*$/u.test(i)?"":T(i,t,{parser:"__ng_directive",__isInHtmlAttribute:!1},Q)}var vn=wi;var bi=t=>String(t).split(/[/\\]/u).pop();function yn(t,e){if(!e)return;let r=bi(e).toLowerCase();return t.find(({filenames:n})=>n==null?void 0:n.some(s=>s.toLowerCase()===r))??t.find(({extensions:n})=>n==null?void 0:n.some(s=>r.endsWith(s)))}function Ti(t,e){if(e)return t.find(({name:r})=>r.toLowerCase()===e)??t.find(({aliases:r})=>r==null?void 0:r.includes(e))??t.find(({extensions:r})=>r==null?void 0:r.includes(`.${e}`))}function xi(t,e){let r=t.plugins.flatMap(s=>s.languages??[]),n=Ti(r,e.language)??yn(r,e.physicalFile)??yn(r,e.file)??(e.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var Ne=xi;var wn="inline",bn={area:"none",base:"none",basefont:"none",datalist:"none",head:"none",link:"none",meta:"none",noembed:"none",noframes:"none",param:"block",rp:"none",script:"block",style:"none",template:"inline",title:"none",html:"block",body:"block",address:"block",blockquote:"block",center:"block",dialog:"block",div:"block",figure:"block",figcaption:"block",footer:"block",form:"block",header:"block",hr:"block",legend:"block",listing:"block",main:"block",p:"block",plaintext:"block",pre:"block",search:"block",xmp:"block",slot:"contents",ruby:"ruby",rt:"ruby-text",article:"block",aside:"block",h1:"block",h2:"block",h3:"block",h4:"block",h5:"block",h6:"block",hgroup:"block",nav:"block",section:"block",dir:"block",dd:"block",dl:"block",dt:"block",menu:"block",ol:"block",ul:"block",li:"list-item",table:"table",caption:"table-caption",colgroup:"table-column-group",col:"table-column",thead:"table-header-group",tbody:"table-row-group",tfoot:"table-footer-group",tr:"table-row",td:"table-cell",th:"table-cell",input:"inline-block",button:"inline-block",fieldset:"block",details:"block",summary:"block",marquee:"inline-block",source:"block",track:"block",meter:"inline-block",progress:"inline-block",object:"inline-block",video:"inline-block",audio:"inline-block",select:"inline-block",option:"block",optgroup:"block"},Tn="normal",xn={listing:"pre",plaintext:"pre",pre:"pre",xmp:"pre",nobr:"nowrap",table:"initial",textarea:"pre-wrap"};function ki(t){return t.type==="element"&&!t.hasExplicitNamespace&&!["html","svg"].includes(t.namespace)}var fe=ki;var Bi=t=>w(!1,t,/^[\t\f\r ]*\n/gu,""),Sr=t=>Bi(O.trimEnd(t)),kn=t=>{let e=t,r=O.getLeadingWhitespace(e);r&&(e=e.slice(r.length));let n=O.getTrailingWhitespace(e);return n&&(e=e.slice(0,-n.length)),{leadingWhitespace:r,trailingWhitespace:n,text:e}};function yt(t,e){return!!(t.type==="ieConditionalComment"&&t.lastChild&&!t.lastChild.isSelfClosing&&!t.lastChild.endSourceSpan||t.type==="ieConditionalComment"&&!t.complete||me(t)&&t.children.some(r=>r.type!=="text"&&r.type!=="interpolation")||Tt(t,e)&&!W(t)&&t.type!=="interpolation")}function de(t){return t.type==="attribute"||!t.parent||!t.prev?!1:Li(t.prev)}function Li(t){return t.type==="comment"&&t.value.trim()==="prettier-ignore"}function $(t){return t.type==="text"||t.type==="comment"}function W(t){return t.typ Line truncated
`)){if(r.length===0)continue;let n=O.getLeadingWhitespaceCount(r);if(n===0)return 0;r.length!==n&&n<e&&(e=n)}return e===Number.POSITIVE_INFINITY?0:e}function Dr(t,e=Ui(t)){return e===0?t:t.split(`
`).map(r=>r.slice(e)).join(`
`)}function vr(t){return w(!1,w(!1,t,"&apos;","'"),"&quot;",'"')}function N(t){return vr(t.value)}var Wi=new Set(["template","style","script"]);function et(t,e){return ge(t,e)&&!Wi.has(t.fullName)}function ge(t,e){return e.parser==="vue"&&t.type==="element"&&t.parent.type==="root"&&t.fullName.toLowerCase()!=="html"}function Tt(t,e){return ge(t,e)&&(et(t,e)||t.attrMap.lang&&t.attrMap.lang!=="html")}function Un(t){let e=t.fullName;return e.charAt(0)==="#"||e==="slot-scope"||e==="v-slot"||e.startsWith("v-slot:")}function Wn(t,e){let r=t.parent;if(!ge(r,e))return!1;let n=r.fullName,s=t.fullName;return n==="script"&&s==="setup"||n==="style"&&s==="vars"}function xt(t,e=t.value){return t.parent.isWhitespaceSensitive?t.parent.isIndentationSensitive?B(e):B(Dr(Sr(e)),S):H(_,O.split(e))}function kt(t,e){return ge(t,e)&&t.name==="script"}var yr=/\{\{(.+?)\}\}/su;async function zn(t,e){let r=[];for(let[n,s]of t.split(yr).entries())if(n%2===0)r.push(B(s));else try{r.push(E(["{{",k([_,await T(s,e,{parser:"__ng_interpolation",__isInHtmlInterpolation:!0})]),_,"}}"]))}catch{r.push("{{",B(s),"}}")}return r}function wr({parser:t}){return(e,r,n)=>T(N(n.node),e,{parser:t},Q)}var zi=wr({parser:"__ng_action"}),Gi=wr({parser:"__ng_binding"}),Yi=wr({parser:"__ng_directive"});function ji(t,e){if(e.parser!=="angular")return;let{node:r}=t,n=r.fullName;if(n.startsWith("(")&&n.endsWith(")")||n.startsWith("on-"))return zi;if(n.startsWith("[")&&n.endsWith("]")||/^bind(?:on)?-/u.test(n)||/^ng-(?:if|show|hide|class|style)$/u.test(n))return Gi;if(n.startsWith("*"))return Yi;let s=N(r);if(/^i18n(?:-.+)?$/u.test(n))return()=>he(Dt(xt(r,s.trim())),!s.includes("@@"));if(yr.test(s))return i=>zn(s,i)}var Gn=ji;function Ki(t,e){let{node:r}=t,n=N(r);if(r.fullName==="class"&&!e.parentParser&&!n.includes("{{"))return()=>n.trim().split(/\s+/u).join(" ")}var Yn=Ki;function jn(t){return t===" "||t===`
`||t==="\f"||t==="\r"||t===" "}var Qi=/^[ \t\n\r\u000c]+/,Xi=/^[, \t\n\r\u000c]+/,Ji=/^[^ \t\n\r\u000c]+/,Zi=/[,]+$/,Kn=/^\d+$/,ea=/^-?(?:[0-9]+|[0-9]*\.[0-9]+)(?:[eE][+-]?[0-9]+)?$/;function ta(t){let e=t.length,r,n,s,i,a,o=0,u;function p(C){let A,D=C.exec(t.substring(o));if(D)return[A]=D,o+=A.length,A}let l=[];for(;;){if(p(Xi),o>=e){if(l.length===0)throw new Error("Must contain one or more image candidate strings.");return l}u=o,r=p(Ji),n=[],r.slice(-1)===","?(r=r.replace(Zi,""),d()):f()}function f(){for(p(Qi),s="",i="in descriptor";;){if(a=t.charAt(o),i==="in descriptor")if(jn(a))s&&(n.push(s),s="",i="after descriptor");else if(a===","){o+=1,s&&n.push(s),d();return}else if(a==="(")s+=a,i="in parens";else if(a===""){s&&n.push(s),d();return}else s+=a;else if(i==="in parens")if(a===")")s+=a,i="in descriptor";else if(a===""){n.push(s),d();return}else s+=a;else if(i==="after descriptor"&&!jn(a))if(a===""){d();return}else i="in descriptor",o-=1;o+=1}}function d(){let C=!1,A,D,I,F,c={},g,y,q,x,U;for(F=0;F<n.length;F++)g=n[F],y=g[g.length-1],q=g.substring(0,g.length-1),x=parseInt(q,10),U=parseFloat(q),Kn.test(q)&&y==="w"?((A||D)&&(C=!0),x===0?C=!0:A=x):ea.test(q)&&y==="x"?((A||D||I)&&(C=!0),U<0?C=!0:D=U):Kn.test(q)&&y==="h"?((I||D)&&(C=!0),x===0?C=!0:I=x):C=!0;if(!C)c.source={value:r,startOffset:u},A&&(c.width={value:A}),D&&(c.density={value:D}),I&&(c.height={value:I}),l.push(c);else throw new Error(`Invalid srcset descriptor found in "${t}" at "${g}".`)}}var Qn=ta;function ra(t){if(t.node.fullName==="srcset"&&(t.parent.fullName==="img"||t.parent.fullName==="source"))return()=>sa(N(t.node))}var Xn={width:"w",height:"h",density:"x"},na=Object.keys(Xn);function sa(t){let e=Qn(t),r=na.filter(l=>e.some(f=>Object.prototype.hasOwnProperty.call(f,l)));if(r.length>1)throw new Error("Mixed descriptor in srcset is not supported");let[n]=r,s=Xn[n],i=e.map(l=>l.source.value),a=Math.max(...i.map(l=>l.length)),o=e.map(l=>l[n]?String(l[n].value):""),u=o.map(l=>{let f=l.indexOf(".");return f===-1?l.length:f}),p=Math.max(...u);return he(H([",",_],i.map((l,f)=>{let d=[l],C=o[f];if(C){let A=a-l.length+1,D=p-u[f],I=" ".repeat(A+D);d.push(pe(I," "),C+s)}return d})))}var Jn=ra;function Zn(t,e){let{node:r}=t,n=N(t.node).trim();if(r.fullName==="style"&&!e.parentParser&&!n.includes("{{"))return async s=>he(await s(n,{parser:"css",__isHTMLStyleAttribute:!0}))}var br=new WeakMap;function ia(t,e){let{root:r}=t;return br.has(r)||br.set(r,r.children.some(n=>kt(n,e)&&["ts","typescript"].includes(n.attrMap.lang))),br.get(r)}var Pe=ia;function es(t,e,r){let{node:n}=r,s=N(n);return T(`type T<${s}> = any`,t,{parser:"babel-ts",__isEmbeddedTypescriptGenericParameters:!0},Q)}function ts(t,e,{parseWithTs:r}){return T(`function _(${t}) {}`,e,{parser:r?"babel-ts":"babel",__isVueBindings:!0})}async function rs(t,e,r,n){let s=N(r.node),{left:i,operator:a,right:o}=aa(s),u=Pe(r,n);return[E(await T(`function _(${i}) {}`,t,{parser:u?"babel-ts":"babel",__isVueForBindingLeft:!0}))," ",a," ",await T(o,t,{parser:u?"__ts_expression":"__js_expression"})]}function aa(t){let e=/(.*?)\s+(in|of)\s+(.*)/su,r=/,([^,\]}]*)(?:,([^,\]}]*))?$/u,n=/^\(|\)$/gu,s=t.match(e);if(!s)return;let i={};if(i.for=s[3].trim(),!i.for)return;let a=w(!1,s[1].trim(),n,""),o=a.match(r);o?(i.alias=a.replace(r,""),i.iterator1=o[1].trim(),o[2]&&(i.iterator2=o[2].trim())):i.alias=a;let u=[i.alias,i.iterator1,i.iterator2];if(!u.some((p,l)=>!p&&(l===0||u.slice(l+1).some(Boolean))))return{left:u.filter(Boolean).join(","),operator:s[2],right:i.for}}function oa(t,e){if(e.parser!=="vue")return;let{node:r}=t,n=r.fullName;if(n==="v-for")return rs;if(n==="generic"&&kt(r.parent,e))return es;let s=N(r),i=Pe(t,e);if(Un(r)||Wn(r,e))return a=>ts(s,a,{parseWithTs:i});if(n.startsWith("@")||n.startsWith("v-on:"))return a=>ua(s,a,{parseWithTs:i});if(n.startsWith(":")||n.startsWith(".")||n.startsWith("v-bind:"))return a=>la(s,a,{parseWithTs:i});if(n.startsWith("v-"))return a=>ns(s,a,{parseWithTs:i})}async function ua(t,e,{parseWithTs:r}){var n;try{return await ns(t,e,{parseWithTs:r})}catch(s){if(((n=s.cause)==null?void 0:n.code)!=="BABEL_PARSER_SYNTAX_ERROR")throw s}return T(t,e,{parser:r?"__vue_ts_event_binding":"__vue_event_binding"},Q)}function la(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__vue_ts_expression":"__vue_expression"},Q)}function ns(t,e,{parseWithTs:r}){return T(t,e,{parser:r?"__ts_expression":"__js_expression"},Q)}var ss=oa;function ca(t,e){let{node:r}=t;if(r.value){if(/^PRETTIER_HTML_PLACEHOLDER_\d+_\d+_IN_JS$/u.test(e.originalText.slice(r.valueSpan.start.offset,r.valueSpan.end.offset))||e.parser==="lwc"&&r.value.startsWith("{")&&r.value.endsWith("}"))return[r.rawName,"=",r.value];for(let n of[Jn,Zn,Yn,ss,Gn]){let s=n(t,e);if(s)return pa(s)}}}function pa(t){return async(e,r,n,s)=>{let i=await t(e,r,n,s);if(i)return i=hr(i,a=>typeof a=="string"?w(!1,a,'"',"&quot;"):a),[n.node.rawName,'="',E(i),'"']}}var is=ca;var as=new Proxy(()=>{},{get:()=>as}),Tr=as;function ha(t){return Array.isArray(t)&&t.l Line truncated
`+t}var ds=new Map([["if",new Set(["else if","else"])],["else if",new Set(["else if","else"])],["for",new Set(["empty"])],["defer",new Set(["placeholder","error","loading"])],["placeholder",new Set(["placeholder","error","loading"])],["error",new Set(["placeholder","error","loading"])],["loading",new Set(["placeholder","error","loading"])]]);function gs(t){let e=Z(t);return t.type==="element"&&!t.endSourceSpan&&Ie(t.children)?Math.max(e,gs(K(!1,t.children,-1))):e}function ot(t,e,r){let n=t.node;if(de(n)){let s=gs(n);return[G(n,e),B(O.trimEnd(e.originalText.slice(J(n)+(n.prev&&rt(n.prev)?Lt(n).length:0),s-(n.next&&X(n.next)?Se(n,e).length:0)))),z(n,e)]}return r()}function Pt(t,e){return $(t)&&$(e)?t.isTrailingSpaceSensitive?t.hasTrailingSpaces?wt(e)?S:_:"":wt(e)?S:v:rt(t)&&(de(e)||e.firstChild||e.isSelfClosing||e.type==="element"&&e.attrs.length>0)||t.type==="element"&&t.isSelfClosing&&X(e)?"":!e.isLeadingSpaceSensitive||wt(e)||X(e)&&t.lastChild&&Ee(t.lastChild)&&t.lastChild.lastChild&&Ee(t.lastChild.lastChild)?S:e.hasLeadingSpaces?_:v}function Re(t,e,r){let{node:n}=t;if(Er(n))return[se,...t.map(i=>{let a=i.node,o=a.prev?Pt(a.prev,a):"";return[o?[o,Je(a.prev)?S:""]:"",ot(i,e,r)]},"children")];let s=n.children.map(()=>Symbol(""));return t.map((i,a)=>{let o=i.node;if($(o)){if(o.prev&&$(o.prev)){let A=Pt(o.prev,o);if(A)return Je(o.prev)?[S,S,ot(i,e,r)]:[A,ot(i,e,r)]}return ot(i,e,r)}let u=[],p=[],l=[],f=[],d=o.prev?Pt(o.prev,o):"",C=o.next?Pt(o,o.next):"";return d&&(Je(o.prev)?u.push(S,S):d===S?u.push(S):$(o.prev)?p.push(d):p.push(pe("",v,{groupId:s[a-1]}))),C&&(Je(o)?$(o.next)&&f.push(S,S):C===S?$(o.next)&&f.push(S):l.push(C)),[...u,E([...p,E([ot(i,e,r),...l],{id:s[a]})]),...f]},"children")}function Cs(t,e,r){let{node:n}=t,s=[];wa(t)&&s.push("} "),s.push("@",n.name),n.parameters&&s.push(" (",E(r("parameters")),")"),s.push(" {");let i=Ss(n);return n.children.length>0?(n.firstChild.hasLeadingSpaces=!0,n.lastChild.hasTrailingSpaces=!0,s.push(k([S,Re(t,e,r)])),i&&s.push(S,"}")):i&&s.push("}"),E(s,{shouldBreak:!0})}function Ss(t){var e,r;return!(((e=t.next)==null?void 0:e.type)==="angularControlFlowBlock"&&((r=ds.get(t.name))!=null&&r.has(t.next.name)))}function wa(t){let{previous:e}=t;return(e==null?void 0:e.type)==="angularControlFlowBlock"&&!de(e)&&!Ss(e)}function _s(t,e,r){return[k([v,H([";",_],t.map(r,"children"))]),v]}function Es(t,e,r){let{node:n}=t;return[Ae(n,e),E([n.switchValue.trim(),", ",n.clause,n.cases.length>0?[",",k([_,H(_,t.map(r,"cases"))])]:"",v]),Ce(n,e)]}function As(t,e,r){let{node:n}=t;return[n.value," {",E([k([v,t.map(({node:s,isLast:i})=>{let a=[r()];return s.type==="text"&&(s.hasLeadingSpaces&&a.unshift(_),s.hasTrailingSpaces&&!i&&a.push(_)),a},"expression")]),v]),"}"]}function Ds(t,e,r){let{node:n}=t;if(yt(n,e))return[G(n,e),E(st(t,e,r)),B(Nt(n,e)),...tt(n,e),z(n,e)];let s=n.children.length===1&&(n.firstChild.type==="interpolation"||n.firstChild.type==="angularIcuExpression")&&n.firstChild.isLeadingSpaceSensitive&&!n.firstChild.hasLeadingSpaces&&n.lastChild.isTrailingSpaceSensitive&&!n.lastChild.hasTrailingSpaces,i=Symbol("element-attr-group-id"),a=l=>E([E(st(t,e,r),{id:i}),l,tt(n,e)]),o=l=>s?dn(l,{groupId:i}):(W(n)||et(n,e))&&n.parent.type==="root"&&e.parser==="vue"&&!e.vueIndentScriptAndStyle?l:k(l),u=()=>s?pe(v,"",{groupId:i}):n.firstChild.hasLeadingSpaces&&n.firstChild.isLeadingSpaceSensitive?_:n.firstChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive?fn(v):v,p=()=>(n.next?X(n.next):_e(n.parent))?n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?" ":"":s?pe(v,"",{groupId:i}):n.lastChild.hasTrailingSpaces&&n.lastChild.isTrailingSpaceSensitive?_:(n.lastChild.type==="comment"||n.lastChild.type==="text"&&n.isWhitespaceSensitive&&n.isIndentationSensitive)&&new RegExp(`\\n[\\t ]{${e.tabWidth*(t.ancestors.length-1)}}$`,"u").test(n.lastChild.value)?"":v;return n.children.length===0?a(n.hasDanglingSpaces&&n.isDanglingSpaceSensitive?_:""):a([In(n)?se:"",o([u(),Re(t,e,r)]),p()])}function ut(t){return t>=9&&t<=32||t==160}function It(t){return 48<=t&&t<=57}function lt(t){return t>=97&&t<=122||t>=65&&t<=90}function vs(t){return t>=97&&t<=102||t>=65&&t<=70||It(t)}function Rt(t){return t===10||t===13}function kr(t){return 48<=t&&t<=55}function $t(t){return t===39||t===34||t===96}var ba=/-+([a-z0-9])/g;function ws(t){return t.replace(ba,(...e)=>e[1].toUpperCase())}var ie=class t{constructor(e,r,n,s){this.file=e,this.offset=r,this.line=n,this.col=s}toString(){return this.offset!=null?`${this.file.url}@${this.line}:${this.col}`:this.file.url}moveBy(e){let r=this.file.content,n=r.length,s=this.offset,i=this.line,a=this.col;for(;s>0&&e<0;)if(s--,e++,r.charCodeAt(s)==10){i--;let u=r.substring(0,s-1).lastIndexOf(String.fromCharCode(10));a=u>0?s-u:s}else a--;for(;s<n&&e>0;){let o=r.charCodeAt(s);s++,e--,o==10?(i++,a=0):a++}return new t(this.file,s,i,a)}getContext(e,r){let n=this.file.content,s=this.offset;if(s!=null){s>n.length-1&&(s=n.length-1);let i=s,a=0,o=0;for(;a<e& Line truncated
`&&++o==r)););for(a=0,o=0;a<e&&i<n.length-1&&(i++,a++,!(n[i]==`
`&&++o==r)););return{before:n.substring(s,this.offset),after:n.substring(this.offset,i+1)}}return null}},De=class{constructor(e,r){this.content=e,this.url=r}},h=class{constructor(e,r,n=e,s=null){this.start=e,this.end=r,this.fullStart=n,this.details=s}toString(){return this.start.file.content.substring(this.start.offset,this.end.offset)}},Ot;(function(t){t[t.WARNING=0]="WARNING",t[t.ERROR=1]="ERROR"})(Ot||(Ot={}));var Oe=class{constructor(e,r,n=Ot.ERROR){this.span=e,this.msg=r,this.level=n}contextualMessage(){let e=this.span.start.getContext(100,3);return e?`${this.msg} ("${e.before}[${Ot[this.level]} ->]${e.after}")`:this.msg}toString(){let e=this.span.details?`, ${this.span.details}`:"";return`${this.contextualMessage()}: ${this.span.start}${e}`}};var Ta=[ka,Ba,Fa,Pa,Ia,Oa,Ra,$a,Ma,Na];function xa(t,e){for(let r of Ta)r(t,e);return t}function ka(t){t.walk(e=>{if(e.type==="element"&&e.tagDefinition.ignoreFirstLf&&e.children.length>0&&e.children[0].type==="text"&&e.children[0].value[0]===`
`){let r=e.children[0];r.value.length===1?e.removeChild(r):r.value=r.value.slice(1)}})}function Ba(t){let e=r=>{var n,s;return r.type==="element"&&((n=r.prev)==null?void 0:n.type)==="ieConditionalStartComment"&&r.prev.sourceSpan.end.offset===r.startSourceSpan.start.offset&&((s=r.firstChild)==null?void 0:s.type)==="ieConditionalEndComment"&&r.firstChild.sourceSpan.start.offset===r.startSourceSpan.end.offset};t.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let s=r.children[n];if(!e(s))continue;let i=s.prev,a=s.firstChild;r.removeChild(i),n--;let o=new h(i.sourceSpan.start,a.sourceSpan.end),u=new h(o.start,s.sourceSpan.end);s.condition=i.condition,s.sourceSpan=u,s.startSourceSpan=o,s.removeChild(a)}})}function La(t,e,r){t.walk(n=>{if(n.children)for(let s=0;s<n.children.length;s++){let i=n.children[s];if(i.type!=="text"&&!e(i))continue;i.type!=="text"&&(i.type="text",i.value=r(i));let a=i.prev;!a||a.type!=="text"||(a.value+=i.value,a.sourceSpan=new h(a.sourceSpan.start,i.sourceSpan.end),n.removeChild(i),s--)}})}function Fa(t){return La(t,e=>e.type==="cdata",e=>`<![CDATA[${e.value}]]>`)}function Na(t){let e=r=>{var n,s;return r.type==="element"&&r.attrs.length===0&&r.children.length===1&&r.firstChild.type==="text"&&!O.hasWhitespaceCharacter(r.children[0].value)&&!r.firstChild.hasLeadingSpaces&&!r.firstChild.hasTrailingSpaces&&r.isLeadingSpaceSensitive&&!r.hasLeadingSpaces&&r.isTrailingSpaceSensitive&&!r.hasTrailingSpaces&&((n=r.prev)==null?void 0:n.type)==="text"&&((s=r.next)==null?void 0:s.type)==="text"};t.walk(r=>{if(r.children)for(let n=0;n<r.children.length;n++){let s=r.children[n];if(!e(s))continue;let i=s.prev,a=s.next;i.value+=`<${s.rawName}>`+s.firstChild.value+`</${s.rawName}>`+a.value,i.sourceSpan=new h(i.sourceSpan.start,a.sourceSpan.end),i.isTrailingSpaceSensitive=a.isTrailingSpaceSensitive,i.hasTrailingSpaces=a.hasTrailingSpaces,r.removeChild(s),n--,r.removeChild(a)}})}function Pa(t,e){if(e.parser==="html")return;let r=/\{\{(.+?)\}\}/su;t.walk(n=>{if(Bn(n))for(let s of n.children){if(s.type!=="text")continue;let i=s.sourceSpan.start,a=null,o=s.value.split(r);for(let u=0;u<o.length;u++,i=a){let p=o[u];if(u%2===0){a=i.moveBy(p.length),p.length>0&&n.insertChildBefore(s,{type:"text",value:p,sourceSpan:new h(i,a)});continue}a=i.moveBy(p.length+4),n.insertChildBefore(s,{type:"interpolation",sourceSpan:new h(i,a),children:p.length===0?[]:[{type:"text",value:p,sourceSpan:new h(i.moveBy(2),a.moveBy(-2))}]})}n.removeChild(s)}})}function Ia(t){t.walk(e=>{let r=e.$children;if(!r)return;if(r.length===0||r.length===1&&r[0].type==="text"&&O.trim(r[0].value).length===0){e.hasDanglingSpaces=r.length>0,e.$children=[];return}let n=Ln(e),s=_r(e);if(!n)for(let i=0;i<r.length;i++){let a=r[i];if(a.type!=="text")continue;let{leadingWhitespace:o,text:u,trailingWhitespace:p}=kn(a.value),l=a.prev,f=a.next;u?(a.value=u,a.sourceSpan=new h(a.sourceSpan.start.moveBy(o.length),a.sourceSpan.end.moveBy(-p.length)),o&&(l&&(l.hasTrailingSpaces=!0),a.hasLeadingSpaces=!0),p&&(a.hasTrailingSpaces=!0,f&&(f.hasLeadingSpaces=!0))):(e.removeChild(a),i--,(o||p)&&(l&&(l.hasTrailingSpaces=!0),f&&(f.hasLeadingSpaces=!0)))}e.isWhitespaceSensitive=n,e.isIndentationSensitive=s})}function Ra(t){t.walk(e=>{e.isSelfClosing=!e.children||e.type==="element"&&(e.tagDefinition.isVoid||e.endSourceSpan&&e.startSourceSpan.start===e.endSourceSpan.start&&e.startSourceSpan.end===e.endSourceSpan.end)})}function $a(t,e){t.walk(r=>{r.type==="element"&&(r.hasHtmComponentClosingTag=r.endSourceSpan&&/^<\s*\/\s*\/\s*>$/u.test(e.originalText.slice(r.endSourceSpan.start.offset,r.endSourceSpan.end.offset)))})}function Oa(t,e){t.walk(r=>{r.cssDisplay=Hn(r,e)})}function Ma(t,e){t.walk(r=>{let{children:n}=r;if(n){if(n.length===0){r.isDanglingSpaceSensitive=Pn(r);return}for(let s of n)s.isLeadingSpaceSensitive=Fn(s,e),s.isTrailingSpaceSensitive=Nn(s,e);for(let s=0;s<n.length;s++){let i=n[s];i.isLeadingSpaceSensitive=(s===0||i.prev.isTrailingSpaceSensitive)&&i.isLeadingSpaceSensitive,i.isTrailingSpaceSensitive=(s===n.length-1||i.next.isLeadingSpaceSensitive)&&i.isTrailingSpaceSensitive}}})}var bs=xa;function qa(t,e,r){let{node:n}=t;switch(n.type){case"front-matter":return B(n.raw);case"root":return e.__onHtmlRoot&&e.__onHtmlRoot(n),[E(Re(t,e,r)),S];case"element":case"ieConditionalComment":return Ds(t,e,r);case"angularControlFlowBlock":return Cs(t,e,r);case"angularControlFlowBlockParameters":return _s(t,e,r);case"angularControlFlowBlockParameter":return O.trim(n.expression);case"angularLetDeclaration":return E(["@let ",E([n.id," =",E(k([_,r("init")]))]),";"]);case"angularLetDeclarationInitializer":return n.value;case"angularIcuExpression":return Es(t,e,r);case"angularIcuCase":return As(t,e,r);case"ieConditionalStartComment":case"ieConditionalEndComment":return[Ae(n),Ce(n)];case"interpolation":return[Ae(n,e),...t.map(r,"children"),Ce(n,e)];case"text":{if(n.parent.type==="interpolation"){let o=/\n[^\S\n]*$/u,u=o.test(n.value),p=u?n.value.replace(o,""):n.value;retuLine truncated
If '${e}' is a directive input, make sure the directive is imported by the current module.`}:{error:!1}}validateAttribute(e){return e.toLowerCase().startsWith("on")?{error:!0,msg:`Binding to event attribute '${e}' is disallowed for security reasons, please use (${e.slice(2)})=...`}:{error:!1}}allKnownElementNames(){return Array.from(this._schema.keys())}allKnownAttributesOfElement(e){let r=this._schema.get(e.toLowerCase())||this._schema.get("unknown");return Array.from(r.keys()).map(n=>ja.get(n)??n)}allKnownEventsOfElement(e){return Array.from(this._eventSchema.get(e.toLowerCase())??[])}normalizeAnimationStyleProperty(e){return ws(e)}normalizeAnimationStyleValue(e,r,n){let s="",i=n.toString().trim(),a=null;if(Ka(e)&&n!==0&&n!=="0")if(typeof n=="number")s="px";else{let o=n.match(/^[+-]?[\d\.]+([a-z]*)$/);o&&o[1].length==0&&(a=`Please provide a CSS unit value for ${r}:${n}`)}return{error:a,value:i+s}}};function Ka(t){switch(t){case"width":case"height":case"minWidth":case"minHeight":case"maxWidth":case"maxHeight":case"left":case"top":case"bottom":case"right":case"fontSize":case"outlineWidth":case"outlineOffset":case"paddingTop":case"paddingLeft":case"paddingBottom":case"paddingRight":case"marginTop":case"marginLeft":case"marginBottom":case"marginRight":case"borderRadius":case"borderWidth":case"borderTopWidth":case"borderLeftWidth":case"borderRightWidth":case"borderBottomWidth":case"textIndent":return!0;default:return!1}}var m=class{constructor({closedByChildren:e,implicitNamespacePrefix:r,contentType:n=P.PARSABLE_DATA,closedByParent:s=!1,isVoid:i=!1,ignoreFirstLf:a=!1,preventNamespaceInheritance:o=!1,canSelfClose:u=!1}={}){this.closedByChildren={},this.closedByParent=!1,e&&e.length>0&&e.forEach(p=>this.closedByChildren[p]=!0),this.isVoid=i,this.closedByParent=s||i,this.implicitNamespacePrefix=r||null,this.contentType=n,this.ignoreFirstLf=a,this.preventNamespaceInheritance=o,this.canSelfClose=u??i}isClosedByChild(e){return this.isVoid||e.toLowerCase()in this.closedByChildren}getContentType(e){return typeof this.contentType=="object"?(e===void 0?void 0:this.contentType[e])??this.contentType.default:this.contentType}},Rs,pt;function He(t){return pt||(Rs=new m({canSelfClose:!0}),pt=Object.assign(Object.create(null),{base:new m({isVoid:!0}),meta:new m({isVoid:!0}),area:new m({isVoid:!0}),embed:new m({isVoid:!0}),link:new m({isVoid:!0}),img:new m({isVoid:!0}),input:new m({isVoid:!0}),param:new m({isVoid:!0}),hr:new m({isVoid:!0}),br:new m({isVoid:!0}),source:new m({isVoid:!0}),track:new m({isVoid:!0}),wbr:new m({isVoid:!0}),p:new m({closedByChildren:["address","article","aside","blockquote","div","dl","fieldset","footer","form","h1","h2","h3","h4","h5","h6","header","hgroup","hr","main","nav","ol","p","pre","section","table","ul"],closedByParent:!0}),thead:new m({closedByChildren:["tbody","tfoot"]}),tbody:new m({closedByChildren:["tbody","tfoot"],closedByParent:!0}),tfoot:new m({closedByChildren:["tbody"],closedByParent:!0}),tr:new m({closedByChildren:["tr"],closedByParent:!0}),td:new m({closedByChildren:["td","th"],closedByParent:!0}),th:new m({closedByChildren:["td","th"],closedByParent:!0}),col:new m({isVoid:!0}),svg:new m({implicitNamespacePrefix:"svg"}),foreignObject:new m({implicitNamespacePrefix:"svg",preventNamespaceInheritance:!0}),math:new m({implicitNamespacePrefix:"math"}),li:new m({closedByChildren:["li"],closedByParent:!0}),dt:new m({closedByChildren:["dt","dd"]}),dd:new m({closedByChildren:["dt","dd"],closedByParent:!0}),rb:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rt:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),rtc:new m({closedByChildren:["rb","rtc","rp"],closedByParent:!0}),rp:new m({closedByChildren:["rb","rt","rtc","rp"],closedByParent:!0}),optgroup:new m({closedByChildren:["optgroup"],closedByParent:!0}),option:new m({closedByChildren:["option","optgroup"],closedByParent:!0}),pre:new m({ignoreFirstLf:!0}),listing:new m({ignoreFirstLf:!0}),style:new m({contentType:P.RAW_TEXT}),script:new m({contentType:P.RAW_TEXT}),title:new m({contentType:{default:P.ESCAPABLE_RAW_TEXT,svg:P.PARSABLE_DATA}}),textarea:new m({contentType:P.ESCAPABLE_RAW_TEXT,ignoreFirstLf:!0})}),new Vt().allKnownElementNames().forEach(e=>{!pt[e]&&Me(e)===null&&(pt[e]=new m({canSelfClose:!1}))})),pt[t]??Rs}var ae=class{constructor(e,r){this.sourceSpan=e,this.i18n=r}},Ut=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="text"}visit(e,r){return e.visitText(this,r)}},Wt=class extends ae{constructor(e,r,n,s){super(r,s),this.value=e,this.tokens=n,this.type="cdata"}visit(e,r){return e.visitCdata(this,r)}},zt=class extends ae{constructor(e,r,n,s,i,a){super(s,a),this.switchValue=e,this.type=r,this.cases=n,this.switchValueSourceSpan=i}visit(e,r){return e.visitExpansion(this,r)}},Gt=class{constructor(e,r,n,s,i){this.value=e,this.expression=r,this.sourceSpan=n,this.valueSourceSpan=s,this.expSourceSpan=i,this.type="expansionCase"}visit(e,r){return e.visitExpans Line truncated
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",nbsp:"\xA0",Nopf:"\u2115",naturals:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",nequiv:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",npar:"\u2226",nparallel:"\u2226",nshortparallel:"\u2226",nspar:"\u2226",NotElement:"\u2209",notin:"\u2209",notinva:"\u2209",NotEqual:"\u2260",ne:"\u2260",NotEqualTilde:"\u2242\u0338",nesim:"\u2242\u0338",NotExists:"\u2204",nexist:"\u2204",nexists:"\u2204",NotGreater:"\u226F",ngt:"\u226F",ngtr:"\u226F",NotGreaterEqual:"\u2271",nge:"\u2271",ngeq:"\u2271",NotGreaterFullEqual:"\u2267\u0338",ngE:"\u2267\u0338",ngeqq:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",nGtv:"\u226B\u0338",NotGreaterLess:"\u2279",ntgl:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",ngeqslant:"\u2A7E\u0338",nges:"\u2A7E\u0338",NotGreaterTilde:"\u2275",ngsim:"\u2275",NotHumpDownHump:"\u224E\u0338",nbump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",nbumpe:"\u224F\u0338",NotLeftTriangle:"\u22EA",nltri:"\u22EA",ntriangleleft:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",nltrie:"\u22EC",ntrianglelefteq:"\u22EC",NotLess:"\u226E",nless:"\u226E",nlt:"\u226E",NotLessEqual:"\u2270",nle:"\u2270",nleq:"\u2270",NotLessGreater:"\u2278",ntlg:"\u2278",NotLessLess:"\u226A\u0338",nLtv:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",nleqslant:"\u2A7D\u0338",nles:"\u2A7D\u0338",NotLessTilde:"\u2274",nlsim:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",npr:"\u2280",nprec:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",npre:"\u2AAF\u0338",npreceq:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",nprcue:"\u22E0",NotReverseElement:"\u220C",notni:"\u220C",notniva:"\u220C",NotRightTriangle:"\u22EB",nrtri:"\u22EB",ntriangleright:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",nrtrie:"\u22ED",ntrianglerighteq:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",nsqsube:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",nsqsupe:"\u22E3",NotSubset:"\u2282\u20D2",nsubset:"\u2282\u20D2",vnsub:"\u2282\u20D2",NotSubsetEqual:"\u2288",nsube:"\u2288",nsubseteq:"\u2288",NotSucceeds:"\u2281",nsc:"\u2281",nsucc:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",nsce:"\u2AB0\u0338",nsucceq:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",nsccue:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",nsupset:"\u2283\u20D2",vnsup:"\u2283\u20D2",NotSupersetEqual:"\u2289",nsupe:"\u2289",nsupseteq:"\u2289",NotTilde:"\u2241",nsim:"\u2241",NotTildeEqual:"\u2244",nsime:"\u2244",nsimeq:"\u2244",NotTildeFullEqual:"\u2247",ncong:"\u2247",NotTildeTilde:"\u2249",nap:"\u2249",napprox:"\u2249",NotVerticalBar:"\u2224",nmid:"\u2224",nshortmid:"\u2224",nsmid:"\u2224",Nscr:"\u{1D4A9}",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacute:"\xD3",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",ohm:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",ldquo:"\u201C",OpenCurlyQuote:"\u2018",lsquo:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslash:"\xD8",Otilde:"\xD5",Otimes:"\u2A37",Ouml:"\xD6",OverBar:"\u203E",oline:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",tbrk:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",part:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",plusmn:"\xB1",pm:"\xB1",Popf:"\u2119",primes:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",pr:"\u227A",prec:"\u227A",PrecedesEqual:"\u2AAF",pre:"\u2AAF",preceq:"\u2AAF",PrecedesSlantEqual:"\u227C",prcue:"\u227C",preccurlyeq:"\u227C",PrecedesTilde:"\u227E",precsim:"\u227E",prsim:"\u227E",Prime:"\u2033",Product:"\u220F",prod:"\u220F",Proportional:"\u221D",prop:"\u221D",propto:"\u221D",varpropto:"\u221D",vprop:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUOT:'"',quot:'"',Qfr:"\u{1D514}",Qopf:"\u211A",rationals:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",drbkarow:"\u2910",REG:"\xAE",circledR:"\xAE",reg:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",twoheadrightarrow:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",Rfr:"\u211C",real:"\u211C",realpart:"\u211C",ReverseElement:"\u220B",SuchThat:"\u220B",ni:"\u220B",niv:"\u220B",ReverseEquilibrium:"\u21CB",leftrightharpoons:"\u21CB",lrhar:"\u21CB",ReverseUpEquilibrium:"\u296F",duhar:"\u296F",Rho:"\u03A1",RightAngleBracket:"\u27E9",rang:"\u27E9",rangle:"\u27E9",RightArrow:"\u2192",ShortRightArrow:"\u2192",rarr:"\u2192",rightarrow:"\u2192",srarr:"\u2192",RightArrowBar:"\u21E5",rarrb:"\u21E5",RightArrowLeftArrow:"\u21C4",rightleftarrows:"\u21C4",rlarr:"\u21C4",RightCeiling:"\u2309",rceil:"\u2309",RightDoubleBracket:"\u27E7",robrk:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",dharr:"\u21C2",downharpoonright:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",rfloor:"\u230B",RightTee:"\u22A2",vdash:"\u22A2",RightTeeArrow:"\u21A6",map:"\u21A6",mapsto:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",vartriangleright:"\u22B3",v Line truncated
`)}tokenize(){for(;this._cursor.peek()!==0;){let e=this._cursor.clone();try{if(this._attemptCharCode(60))if(this._attemptCharCode(33))this._attemptStr("[CDATA[")?this._consumeCdata(e):this._attemptStr("--")?this._consumeComment(e):this._attemptStrCaseInsensitive("doctype")?this._consumeDocType(e):this._consumeBogusComment(e);else if(this._attemptCharCode(47))this._consumeTagClose(e);else{let r=this._cursor.clone();this._attemptCharCode(63)?(this._cursor=r,this._consumeBogusComment(e)):this._consumeTagOpen(e)}else this._tokenizeLet&&this._cursor.peek()===64&&!this._inInterpolation&&this._attemptStr("@let")?this._consumeLetDeclaration(e):this._tokenizeBlocks&&this._attemptCharCode(64)?this._consumeBlockStart(e):this._tokenizeBlocks&&!this._inInterpolation&&!this._isInExpansionCase()&&!this._isInExpansionForm()&&this._attemptCharCode(125)?this._consumeBlockEnd(e):this._tokenizeIcu&&this._tokenizeExpansionForm()||this._consumeWithInterpolation(5,8,()=>this._isTextEnd(),()=>this._isTagStart())}catch(r){this.handleError(r)}}this._beginToken(34),this._endToken([])}_getBlockName(){let e=!1,r=this._cursor.clone();return this._attemptCharCodeUntilFn(n=>ut(n)?!e:zs(n)?(e=!0,!1):!0),this._cursor.getChars(r).trim()}_consumeBlockStart(e){this._beginToken(25,e);let r=this._endToken([this._getBlockName()]);if(this._cursor.peek()===40)if(this._cursor.advance(),this._consumeBlockParameters(),this._attemptCharCodeUntilFn(b),this._attemptCharCode(41))this._attemptCharCodeUntilFn(b);else{r.type=29;return}this._attemptCharCode(123)?(this._beginToken(26),this._endToken([])):r.type=29}_consumeBlockEnd(e){this._beginToken(27,e),this._endToken([])}_consumeBlockParameters(){for(this._attemptCharCodeUntilFn(Gs);this._cursor.peek()!==41&&this._cursor.peek()!==0;){this._beginToken(28);let e=this._cursor.clone(),r=null,n=0;for(;this._cursor.peek()!==59&&this._cursor.peek()!==0||r!==null;){let s=this._cursor.peek();if(s===92)this._cursor.advance();else if(s===r)r=null;else if(r===null&&$t(s))r=s;else if(s===40&&r===null)n++;else if(s===41&&r===null){if(n===0)break;n>0&&n--}this._cursor.advance()}this._endToken([this._cursor.getChars(e)]),this._attemptCharCodeUntilFn(Gs)}}_consumeLetDeclaration(e){if(this._beginToken(30,e),ut(this._cursor.peek()))this._attemptCharCodeUntilFn(b);else{let s=this._endToken([this._cursor.getChars(e)]);s.type=33;return}let r=this._endToken([this._getLetDeclarationName()]);if(this._attemptCharCodeUntilFn(b),!this._attemptCharCode(61)){r.type=33;return}this._attemptCharCodeUntilFn(s=>b(s)&&!Rt(s)),this._consumeLetDeclarationValue(),this._cursor.peek()===59?(this._beginToken(32),this._endToken([]),this._cursor.advance()):(r.type=33,r.sourceSpan=this._cursor.getSpan(e))}_getLetDeclarationName(){let e=this._cursor.clone(),r=!1;return this._attemptCharCodeUntilFn(n=>lt(n)||n===36||n===95||r&&It(n)?(r=!0,!1):!0),this._cursor.getChars(e).trim()}_consumeLetDeclarationValue(){let e=this._cursor.clone();for(this._beginToken(31,e);this._cursor.peek()!==0;){let r=this._cursor.peek();if(r===59)break;$t(r)&&(this._cursor.advance(),this._attemptCharCodeUntilFn(n=>n===92?(this._cursor.advance(),!1):n===r)),this._cursor.advance()}this._endToken([this._cursor.getChars(e)])}_tokenizeExpansionForm(){if(this.isExpansionFormStart())return this._consumeExpansionFormStart(),!0;if(vo(this._cursor.peek())&&this._isInExpansionForm())return this._consumeExpansionCaseStart(),!0;if(this._cursor.peek()===125){if(this._isInExpansionCase())return this._consumeExpansionCaseEnd(),!0;if(this._isInExpansionForm())return this._consumeExpansionFormEnd(),!0}return!1}_beginToken(e,r=this._cursor.clone()){this._currentTokenStart=r,this._currentTokenType=e}_endToken(e,r){if(this._currentTokenStart===null)throw new gt("Programming error - attempted to end a token when there was no start to the token",this._currentTokenType,this._cursor.getSpan(r));if(this._currentTokenType===null)throw new gt("Programming error - attempted to end a token which has no token type",null,this._cursor.getSpan(this._currentTokenStart));let n={type:this._currentTokenType,parts:e,sourceSpan:(r??this._cursor).getSpan(this._currentTokenStart,this._leadingTriviaCodePoints)};return this.tokens.push(n),this._currentTokenStart=null,this._currentTokenType=null,n}_createError(e,r){this._isInExpansionForm()&&(e+=` (Do you have an unescaped "{" in your template? Use "{{ '{' }}") to escape it.)`);let n=new gt(e,this._currentTokenType,r);return this._currentTokenStart=null,this._currentTokenType=null,new Ct(n)}handleError(e){if(e instanceof St&&(e=this._createError(e.msg,this._cursor.getSpan(e.cursor))),e instanceof Ct)this.errors.push(e.error);else throw e}_attemptCharCode(e){return this._cursor.peek()===e?(this._cursor.advance(),!0):!1}_attemptCharCodeCaseInsensitive(e){return yo(this._cursor.peek(),e)?(this._cursor.advance(),!0):!1}_requireCharCode(e){let r=this._cursor.clone();if(!this._attemptCharCode(e))throw this._createError(Ue(this._cursor.peek()),this._cursor.getSpan(r))}_attemptS Line truncated
`){let n=this._getClosestParentElement();n!=null&&n.children.length==0&&this.getTagDefinition(n.name).ignoreFirstLf&&(r=r.substring(1))}return r}_consumeText(e){let r=[e],n=e.sourceSpan,s=e.parts[0];if(s.length>0&&s[0]===`
`){let i=this._getContainer();i!=null&&i.children.length===0&&this.getTagDefinition(i.name).ignoreFirstLf&&(s=s.substring(1),r[0]={type:e.type,sourceSpan:e.sourceSpan,parts:[s]})}for(;this._peek.type===8||this._peek.type===5||this._peek.type===9;)e=this._advance(),r.push(e),e.type===8?s+=e.parts.join("").replace(/&([^;]+);/g,Js):e.type===9?s+=e.parts[0]:s+=e.parts.join("");if(s.length>0){let i=e.sourceSpan;this._addToParent(new Ut(s,new h(n.start,i.end,n.fullStart,n.details),r))}}_closeVoidElement(){let e=this._getContainer();e instanceof Y&&this.getTagDefinition(e.name).isVoid&&this._containerStack.pop()}_consumeStartTag(e){let[r,n]=e.parts,s=[];for(;this._peek.type===14;)s.push(this._consumeAttr(this._advance()));let i=this._getElementFullName(r,n,this._getClosestParentElement()),a=!1;if(this._peek.type===2){this._advance(),a=!0;let C=this.getTagDefinition(i);this.canSelfClose||C.canSelfClose||Me(i)!==null||C.isVoid||this.errors.push(L.create(i,e.sourceSpan,`Only void, custom and foreign elements can be self closed "${e.parts[1]}"`))}else this._peek.type===1&&(this._advance(),a=!1);let o=this._peek.sourceSpan.fullStart,u=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),p=new h(e.sourceSpan.start,o,e.sourceSpan.fullStart),l=new h(e.sourceSpan.start.moveBy(1),e.sourceSpan.end),f=new Y(i,s,[],u,p,void 0,l),d=this._getContainer();this._pushContainer(f,d instanceof Y&&this.getTagDefinition(d.name).isClosedByChild(f.name)),a?this._popContainer(i,Y,u):e.type===4&&(this._popContainer(i,Y,null),this.errors.push(L.create(i,u,`Opening tag "${i}" not terminated.`)))}_pushContainer(e,r){r&&this._containerStack.pop(),this._addToParent(e),this._containerStack.push(e)}_consumeEndTag(e){let r=this.allowHtmComponentClosingTags&&e.parts.length===0?null:this._getElementFullName(e.parts[0],e.parts[1],this._getClosestParentElement());if(r&&this.getTagDefinition(r).isVoid)this.errors.push(L.create(r,e.sourceSpan,`Void elements do not have end tags "${e.parts[1]}"`));else if(!this._popContainer(r,Y,e.sourceSpan)){let n=`Unexpected closing tag "${r}". It may happen when the tag has already been closed by another tag. For more info see https://www.w3.org/TR/html5/syntax.html#closing-elements-that-have-implied-end-tags`;this.errors.push(L.create(r,e.sourceSpan,n))}}_popContainer(e,r,n){let s=!1;for(let i=this._containerStack.length-1;i>=0;i--){let a=this._containerStack[i];if(Me(a.name)?a.name===e:(e==null||a.name.toLowerCase()===e.toLowerCase())&&a instanceof r)return a.endSourceSpan=n,a.sourceSpan.end=n!==null?n.end:a.sourceSpan.end,this._containerStack.splice(i,this._containerStack.length-i),!s;(a instanceof te||a instanceof Y&&!this.getTagDefinition(a.name).closedByParent)&&(s=!0)}return!1}_consumeAttr(e){let r=qe(e.parts[0],e.parts[1]),n=e.sourceSpan.end,s;this._peek.type===15&&(s=this._advance());let i="",a=[],o,u;if(this._peek.type===16)for(o=this._peek.sourceSpan,u=this._peek.sourceSpan.end;this._peek.type===16||this._peek.type===17||this._peek.type===9;){let f=this._advance();a.push(f),f.type===17?i+=f.parts.join("").replace(/&([^;]+);/g,Js):f.type===9?i+=f.parts[0]:i+=f.parts.join(""),u=n=f.sourceSpan.end}this._peek.type===15&&(u=n=this._advance().sourceSpan.end);let l=o&&u&&new h((s==null?void 0:s.sourceSpan.start)??o.start,u,(s==null?void 0:s.sourceSpan.fullStart)??o.fullStart);return new Yt(r,i,new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),e.sourceSpan,l,a.length>0?a:void 0,void 0)}_consumeBlockOpen(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ht(o.parts[0],o.sourceSpan))}this._peek.type===26&&this._advance();let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new te(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1)}_consumeBlockClose(e){this._popContainer(null,te,e.sourceSpan)||this.errors.push(L.create(null,e.sourceSpan,'Unexpected closing block. The block may have been closed earlier. If you meant to write the } character, you should use the "&#125;" HTML entity instead.'))}_consumeIncompleteBlock(e){let r=[];for(;this._peek.type===28;){let o=this._advance();r.push(new ht(o.parts[0],o.sourceSpan))}let n=this._peek.sourceSpan.fullStart,s=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),i=new h(e.sourceSpan.start,n,e.sourceSpan.fullStart),a=new te(e.parts[0],r,[],s,e.sourceSpan,i);this._pushContainer(a,!1),this._popContainer(null,te,null),this.errors.push(L.create(e.parts[0],s,`Incomplete block "${e.parts[0]}". If you meant to write the @ character, you should use the "&#64;" HTML entity instead.`))}_consumeLet(e){let r=e.parts[0],n,s;if(this._peek.type!==31){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Invalid @let declaration "${r}". Declaration must have a value.`));return}else n=this._advance();if(this._peek.type!==32){this.errors.push(L.create(e.parts[0],e.sourceSpan,`Unterminated @let declaration "${r}". Declaration must be terminated with a semicolon.`));return}else Line truncated
`,_t);if(r===-1)return;let n=t.slice(_t,r).trim(),s=t.indexOf(`
${e}`,r),i=n;if(i||(i=e==="+++"?"toml":"yaml"),s===-1&&e==="---"&&i==="yaml"&&(s=t.indexOf(`
...`,r)),s===-1)return;let a=s+1+_t,o=t.charAt(a+1);if(!/\s?/u.test(o))return;let u=t.slice(0,a);return{type:"front-matter",language:i,explicitLanguage:n,value:t.slice(r+1,s),startDelimiter:e,endDelimiter:u.slice(-_t),raw:u}}function ko(t){let e=xo(t);if(!e)return{content:t};let{raw:r}=e;return{frontMatter:e,content:w(!1,r,/[^\n]/gu," ")+t.slice(r.length)}}var ei=ko;var ir={attrs:!0,children:!0,cases:!0,expression:!0},ti=new Set(["parent"]),le,Xr,Jr,ze=class ze{constructor(e={}){Et(this,le);lr(this,"type");lr(this,"parent");for(let r of new Set([...ti,...Object.keys(e)]))this.setProperty(r,e[r])}setProperty(e,r){if(this[e]!==r){if(e in ir&&(r=r.map(n=>this.createChild(n))),!ti.has(e)){this[e]=r;return}Object.defineProperty(this,e,{value:r,enumerable:!1,configurable:!0})}}map(e){let r;for(let n in ir){let s=this[n];if(s){let i=Bo(s,a=>a.map(e));r!==s&&(r||(r=new ze({parent:this.parent})),r.setProperty(n,i))}}if(r)for(let n in this)n in ir||(r[n]=this[n]);return e(r||this)}walk(e){for(let r in ir){let n=this[r];if(n)for(let s=0;s<n.length;s++)n[s].walk(e)}e(this)}createChild(e){let r=e instanceof ze?e.clone():new ze(e);return r.setProperty("parent",this),r}insertChildBefore(e,r){let n=this.$children;n.splice(n.indexOf(e),0,this.createChild(r))}removeChild(e){let r=this.$children;r.splice(r.indexOf(e),1)}replaceChild(e,r){let n=this.$children;n[n.indexOf(e)]=this.createChild(r)}clone(){return new ze(this)}get $children(){return this[R(this,le,Xr)]}set $children(e){this[R(this,le,Xr)]=e}get firstChild(){var e;return(e=this.$children)==null?void 0:e[0]}get lastChild(){return K(!0,this.$children,-1)}get prev(){let e=R(this,le,Jr);return e[e.indexOf(this)-1]}get next(){let e=R(this,le,Jr);return e[e.indexOf(this)+1]}get rawName(){return this.hasExplicitNamespace?this.fullName:this.name}get fullName(){return this.namespace?this.namespace+":"+this.name:this.name}get attrMap(){return Object.fromEntries(this.attrs.map(e=>[e.fullName,e.value]))}};le=new WeakSet,Xr=function(){return this.type==="angularIcuCase"?"expression":this.type==="angularIcuExpression"?"cases":"children"},Jr=function(){var e;return((e=this.parent)==null?void 0:e.$children)??[]};var ar=ze;function Bo(t,e){let r=t.map(e);return r.some((n,s)=>n!==t[s])?r:t}var Lo=[{regex:/^(\[if([^\]]*)\]>)(.*?)<!\s*\[endif\]$/su,parse:Fo},{regex:/^\[if([^\]]*)\]><!$/u,parse:No},{regex:/^<!\s*\[endif\]$/u,parse:Po}];function ri(t,e){if(t.value)for(let{regex:r,parse:n}of Lo){let s=t.value.match(r);if(s)return n(t,e,s)}return null}function Fo(t,e,r){let[,n,s,i]=r,a=4+n.length,o=t.sourceSpan.start.moveBy(a),u=o.moveBy(i.length),[p,l]=(()=>{try{return[!0,e(i,o).children]}catch{return[!1,[{type:"text",value:i,sourceSpan:new h(o,u)}]]}})();return{type:"ieConditionalComment",complete:p,children:l,condition:w(!1,s.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan,startSourceSpan:new h(t.sourceSpan.start,o),endSourceSpan:new h(u,t.sourceSpan.end)}}function No(t,e,r){let[,n]=r;return{type:"ieConditionalStartComment",condition:w(!1,n.trim(),/\s+/gu," "),sourceSpan:t.sourceSpan}}function Po(t){return{type:"ieConditionalEndComment",sourceSpan:t.sourceSpan}}var or=new Map([["*",new Set(["accesskey","autocapitalize","autofocus","class","contenteditable","dir","draggable","enterkeyhint","hidden","id","inert","inputmode","is","itemid","itemprop","itemref","itemscope","itemtype","lang","nonce","popover","slot","spellcheck","style","tabindex","title","translate","writingsuggestions"])],["a",new Set(["charset","coords","download","href","hreflang","name","ping","referrerpolicy","rel","rev","shape","target","type"])],["applet",new Set(["align","alt","archive","code","codebase","height","hspace","name","object","vspace","width"])],["area",new Set(["alt","coords","download","href","hreflang","nohref","ping","referrerpolicy","rel","shape","target","type"])],["audio",new Set(["autoplay","controls","crossorigin","loop","muted","preload","src"])],["base",new Set(["href","target"])],["basefont",new Set(["color","face","size"])],["blockquote",new Set(["cite"])],["body",new Set(["alink","background","bgcolor","link","text","vlink"])],["br",new Set(["clear"])],["button",new Set(["disabled","form","formaction","formenctype","formmethod","formnovalidate","formtarget","name","popovertarget","popovertargetaction","type","value"])],["canvas",new Set(["height","width"])],["caption",new Set(["align"])],["col",new Set(["align","char","charoff","span","valign","width"])],["colgroup",new Set(["align","char","charoff","span","valign","width"])],["data",new Set(["value"])],["del",new Set(["cite","datetime"])],["details",new Set(["name","open"])],["dialog",new Set(["open"])],["dir",new Set(["compact"])],["div",new Set(["align"])],["dl",new Set(["compact"])],["embed",new Set(["height","src","type","width"])],["fieldset",new Set(["disabled","form","name"])],["font",new Set(["color","face","size"])],["form",new Set(["accept","accept-charset","action","autocomplete","enctype","method","name","novalidate","target"])],[" Line truncated
+7
View File
@@ -0,0 +1,7 @@
import { Parser } from "../index.js";
export declare const parsers: {
markdown: Parser;
mdx: Parser;
remark: Parser;
};
+63
View File
@@ -0,0 +1,63 @@
(function(n){function e(){var i=n();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.markdown=e()}})(function(){"use strict";var ll=Object.create;var kr=Object.defineProperty;var fl=Object.getOwnPropertyDescriptor;var Dl=Object.getOwnPropertyNames;var pl=Object.getPrototypeOf,hl=Object.prototype.hasOwnProperty;var zn=e=>{throw TypeError(e)};var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Yn=(e,r)=>{for(var t in r)kr(e,t,{get:r[t],enumerable:!0})},Gn=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Dl(r))!hl.call(e,a)&&a!==t&&kr(e,a,{get:()=>r[a],enumerable:!(n=fl(r,a))||n.enumerable});return e};var Ue=(e,r,t)=>(t=e!=null?ll(pl(e)):{},Gn(r||!e||!e.__esModule?kr(t,"default",{value:e,enumerable:!0}):t,e)),dl=e=>Gn(kr({},"__esModule",{value:!0}),e);var Vn=(e,r,t)=>r.has(e)||zn("Cannot "+t);var ce=(e,r,t)=>(Vn(e,r,"read from private field"),t?t.call(e):r.get(e)),jn=(e,r,t)=>r.has(e)?zn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),$n=(e,r,t,n)=>(Vn(e,r,"write to private field"),n?n.call(e,t):r.set(e,t),t);var Br=C((Vm,Wn)=>{"use strict";Wn.exports=gl;function gl(e){return String(e).replace(/\s+/g," ")}});var Vi=C((Tv,Gi)=>{"use strict";Gi.exports=xf;var Dr=9,Mr=10,je=32,bf=33,yf=58,$e=91,Af=92,St=93,pr=94,zr=96,Yr=4,wf=1024;function xf(e){var r=this.Parser,t=this.Compiler;kf(r)&&Tf(r,e),Bf(t)&&qf(t)}function kf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Bf(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Tf(e,r){for(var t=r||{},n=e.prototype,a=n.blockTokenizers,u=n.inlineTokenizers,i=n.blockMethods,o=n.inlineMethods,s=a.definition,l=u.reference,c=[],f=-1,p=i.length,d;++f<p;)d=i[f],!(d==="newline"||d==="indentedCode"||d==="paragraph"||d==="footnoteDefinition")&&c.push([d]);c.push(["footnoteDefinition"]),t.inlineNotes&&(Ot(o,"reference","inlineNote"),u.inlineNote=m),Ot(i,"definition","footnoteDefinition"),Ot(o,"reference","footnoteCall"),a.definition=y,a.footnoteDefinition=D,u.footnoteCall=h,u.reference=F,n.interruptFootnoteDefinition=c,F.locator=l.locator,h.locator=E,m.locator=B;function D(b,g,A){for(var w=this,v=w.interruptFootnoteDefinition,x=w.offset,k=g.length+1,T=0,q=[],R,O,S,_,L,Be,W,I,ee,Z,ve,Ee,M;T<k&&(_=g.charCodeAt(T),!(_!==Dr&&_!==je));)T++;if(g.charCodeAt(T++)===$e&&g.charCodeAt(T++)===pr){for(O=T;T<k;){if(_=g.charCodeAt(T),_!==_||_===Mr||_===Dr||_===je)return;if(_===St){S=T,T++;break}T++}if(!(S===void 0||O===S||g.charCodeAt(T++)!==yf)){if(A)return!0;for(R=g.slice(O,S),L=b.now(),ee=0,Z=0,ve=T,Ee=[];T<k;){if(_=g.charCodeAt(T),_!==_||_===Mr)M={start:ee,contentStart:ve||T,contentEnd:T,end:T},Ee.push(M),_===Mr&&(ee=T+1,Z=0,ve=void 0,M.end=ee);else if(Z!==void 0)if(_===je||_===Dr)Z+=_===je?1:Yr-Z%Yr,Z>Yr&&(Z=void 0,ve=T);else{if(Z<Yr&&M&&(M.contentStart===M.contentEnd||_f(v,a,w,[b,g.slice(T,wf),!0])))break;Z=void 0,ve=T}T++}for(T=-1,k=Ee.length;k>0&&(M=Ee[k-1],M.contentStart===M.contentEnd);)k--;for(Be=b(g.slice(0,M.contentEnd));++T<k;)M=Ee[T],x[L.line+T]=(x[L.line+T]||0)+(M.contentStart-M.start),q.push(g.slice(M.contentStart,M.end));return W=w.enterBlock(),I=w.tokenizeBlock(q.join(""),L),W(),Be({type:"footnoteDefinition",identifier:R.toLowerCase(),label:R,children:I})}}}function h(b,g,A){var w=g.length+1,v=0,x,k,T,q;if(g.charCodeAt(v++)===$e&&g.charCodeAt(v++)===pr){for(k=v;v<w;){if(q=g.charCodeAt(v),q!==q||q===Mr||q===Dr||q===je)return;if(q===St){T=v,v++;break}v++}if(!(T===void 0||k===T))return A?!0:(x=g.slice(k,T),b(g.slice(0,v))({type:"footnoteReference",identifier:x.toLowerCase(),label:x}))}}function m(b,g,A){var w=this,v=g.length+1,x=0,k=0,T,q,R,O,S,_,L;if(g.charCodeAt(x++)===pr&&g.charCodeAt(x++)===$e){for(R=x;x<v;){if(q=g.charCodeAt(x),q!==q)return;if(_===void 0)if(q===Af)x+=2;else if(q===$e)k++,x++;else if(q===St)if(k===0){O=x,x++;break}else k--,x++;else if(q===zr){for(S=x,_=1;g.charCodeAt(S+_)===zr;)_++;x+=_}else x++;else if(q===zr){for(S=x,L=1;g.charCodeAt(S+L)===zr;)L++;x+=L,_===L&&(_=void 0),L=void 0}else x++}if(O!==void 0)return A?!0:(T=b.now(),T.column+=2,T.offset+=2,b(g.slice(0,x))({type:"footnote",children:w.tokenizeInline(g.slice(R,O),T)}))}}function F(b,g,A){var w=0;if(g.charCodeAt(w)===bf&&w++,g.charCodeAt(w)===$e&&g.charCodeAt(w+1)!==pr)return l.call(this,b,g,A)}function y(b,g,A){for(var w=0,v=g.charCodeAt(w);v===je||v===Dr;)v=g.charCodeAt(++w);if(v===$e&&g.charCodeAt(w+1)!==pr)return s.call(this,b,g,A)}function E(b,g){return b.indexOf("[",g)}function B(b,g){return b.indexOf("^[",g)}}function qf(e){var r=e.prototype.visitors,t=" ";r.footnote=n,r.footnoteReference=a,r.footnoteDefinition=u;function n(i){return"^["+this.all(i).join("")+"]"}function a(i){return"[^"+(i.label||i.identifier)+"]"}function u(i){for(var o=thLine truncated
`).split(`
`),s=0,l=o.length,c;++s<l;)c=o[s],c!==""&&(o[s]=t+c);return"[^"+(i.label||i.identifier)+"]: "+o.join(`
`)}}function Ot(e,r,t){e.splice(e.indexOf(r),0,t)}function _f(e,r,t,n){for(var a=e.length,u=-1;++u<a;)if(r[e[u][0]].apply(t,n))return!0;return!1}});var Pt=C(Lt=>{Lt.isRemarkParser=Sf;Lt.isRemarkCompiler=Of;function Sf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Of(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var Xi=C((_v,Ji)=>{var ji=Pt();Ji.exports=Nf;var $i=9,Wi=32,Gr=36,Lf=48,Pf=57,Hi=92,If=["math","math-inline"],Ki="math-display";function Nf(e){let r=this.Parser,t=this.Compiler;ji.isRemarkParser(r)&&Rf(r,e),ji.isRemarkCompiler(t)&&Uf(t,e)}function Rf(e,r){let t=e.prototype,n=t.inlineMethods;u.locator=a,t.inlineTokenizers.math=u,n.splice(n.indexOf("text"),0,"math");function a(i,o){return i.indexOf("$",o)}function u(i,o,s){let l=o.length,c=!1,f=!1,p=0,d,D,h,m,F,y,E;if(o.charCodeAt(p)===Hi&&(f=!0,p++),o.charCodeAt(p)===Gr){if(p++,f)return s?!0:i(o.slice(0,p))({type:"text",value:"$"});if(o.charCodeAt(p)===Gr&&(c=!0,p++),h=o.charCodeAt(p),!(h===Wi||h===$i)){for(m=p;p<l;){if(D=h,h=o.charCodeAt(p+1),D===Gr){if(d=o.charCodeAt(p-1),d!==Wi&&d!==$i&&(h!==h||h<Lf||h>Pf)&&(!c||h===Gr)){F=p-1,p++,c&&p++,y=p;break}}else D===Hi&&(p++,h=o.charCodeAt(p+1));p++}if(y!==void 0)return s?!0:(E=o.slice(m,F+1),i(o.slice(0,y))({type:"inlineMath",value:E,data:{hName:"span",hProperties:{className:If.concat(c&&r.inlineMathDouble?[Ki]:[])},hChildren:[{type:"text",value:E}]}}))}}}}function Uf(e){let r=e.prototype;r.visitors.inlineMath=t;function t(n){let a="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(Ki)&&(a="$$"),a+n.value+a}}});var tu=C((Sv,ru)=>{var Qi=Pt();ru.exports=Gf;var Zi=10,hr=32,It=36,eu=`
`,Mf="$",zf=2,Yf=["math","math-display"];function Gf(){let e=this.Parser,r=this.Compiler;Qi.isRemarkParser(e)&&Vf(e),Qi.isRemarkCompiler(r)&&jf(r)}function Vf(e){let r=e.prototype,t=r.blockMethods,n=r.interruptParagraph,a=r.interruptList,u=r.interruptBlockquote;r.blockTokenizers.math=i,t.splice(t.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),u.splice(u.indexOf("fencedCode")+1,0,["math"]);function i(o,s,l){var c=s.length,f=0;let p,d,D,h,m,F,y,E,B,b,g;for(;f<c&&s.charCodeAt(f)===hr;)f++;for(m=f;f<c&&s.charCodeAt(f)===It;)f++;if(F=f-m,!(F<zf)){for(;f<c&&s.charCodeAt(f)===hr;)f++;for(y=f;f<c;){if(p=s.charCodeAt(f),p===It)return;if(p===Zi)break;f++}if(s.charCodeAt(f)===Zi){if(l)return!0;for(d=[],y!==f&&d.push(s.slice(y,f)),f++,D=s.indexOf(eu,f+1),D=D===-1?c:D;f<c;){for(E=!1,b=f,g=D,h=D,B=0;h>b&&s.charCodeAt(h-1)===hr;)h--;for(;h>b&&s.charCodeAt(h-1)===It;)B++,h--;for(F<=B&&s.indexOf(Mf,b)===h&&(E=!0,g=h);b<=g&&b-f<m&&s.charCodeAt(b)===hr;)b++;if(E)for(;g>b&&s.charCodeAt(g-1)===hr;)g--;if((!E||b!==g)&&d.push(s.slice(b,g)),E)break;f=D+1,D=s.indexOf(eu,f+1),D=D===-1?c:D}return d=d.join(`
`),o(s.slice(0,D))({type:"math",value:d,data:{hName:"div",hProperties:{className:Yf.concat()},hChildren:[{type:"text",value:d}]}})}}}}function jf(e){let r=e.prototype;r.visitors.math=t;function t(n){return`$$
`+n.value+`
$$`}}});var iu=C((Ov,nu)=>{var $f=Xi(),Wf=tu();nu.exports=Hf;function Hf(e){var r=e||{};Wf.call(this,r),$f.call(this,r)}});var Ie=C((Lv,uu)=>{uu.exports=Jf;var Kf=Object.prototype.hasOwnProperty;function Jf(){for(var e={},r=0;r<arguments.length;r++){var t=arguments[r];for(var n in t)Kf.call(t,n)&&(e[n]=t[n])}return e}});var au=C((Pv,Nt)=>{typeof Object.create=="function"?Nt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Nt.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var cu=C((Iv,su)=>{"use strict";var Xf=Ie(),ou=au();su.exports=Qf;function Qf(e){var r,t,n;ou(u,e),ou(a,u),r=u.prototype;for(t in r)n=r[t],n&&typeof n=="object"&&(r[t]="concat"in n?n.concat():Xf(n));return u;function a(i){return e.apply(this,i)}function u(){return this instanceof u?e.apply(this,arguments):new a(arguments)}}});var fu=C((Nv,lu)=>{"use strict";lu.exports=Zf;function Zf(e,r,t){return n;function n(){var a=t||this,u=a[e];return a[e]=!r,i;function i(){a[e]=u}}}});var pu=C((Rv,Du)=>{"use strict";Du.exports=eD;function eD(e){for(var r=String(e),t=[],n=/\r?\n|\r/g;n.exec(r);)t.push(n.lastIndex);return t.push(r.length+1),{toPoint:a,toPosition:a,toOffset:u};function a(i){var o=-1;if(i>-1&&i<t[t.length-1]){for(;++o<t.length;)if(t[o]>i)return{line:o+1,column:i-(t[o-1]||0)+1,offset:i}}return{}}function u(i){var o=i&&i.line,s=i&&i.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in t&&(l=(t[o-2]||0)+s-1||0),l>-1&&l<t[t.length-1]?l:-1}}});var du=C((Uv,hu)=>{"use strict";hu.exports=rD;var Rt="\\";function rD(e,r){return t;function t(n){for(var a=0,u=n.indexOf(Rt),i=e[r],o=[],s;u!==-1;)o.push(n.slice(a,u)),a=u+1,s=n.charAt(a),(!s||i.indexOf(s)===-1)&&o.push(Rt),u=n.indexOf(Rt,a+1);return o.push(n.slice(a)),o.join("")}}});var mu=C((Mv,tD)=>{tD.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var Fu=C((zv,nD)=>{nD.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Ne=C((Yv,gu)=>{"use strict";gu.exports=iD;function iD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var Eu=C((Gv,vu)=>{"use strict";vu.exports=uD;function uD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var We=C((Vv,Cu)=>{"use strict";Cu.exports=aD;function aD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var yu=C((jv,bu)=>{"use strict";var oD=We(),sD=Ne();bu.exports=cD;function cD(e){return oD(e)||sD(e)}});var Au=C(($v,lD)=>{lD.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108", Line truncated
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRi Line truncated
`);k!==-1;)l++,x=k,k=v.indexOf(`
`,k+1);x===-1?c+=v.length:c=v.length-x,l in u&&(x!==-1?c+=u[l]:c<=u[l]&&(c=u[l]+1))}function y(){var v=[],x=l+1;return function(){for(var k=l+1;x<k;)v.push((u[x]||0)+1),x++;return v}}function E(){var v={line:l,column:c};return v.offset=a.toOffset(v),v}function B(v){this.start=v,this.end=E()}function b(v){t.slice(0,v.length)!==v&&a.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),E())}function g(){var v=E();return x;function x(k,T){var q=k.position,R=q?q.start:v,O=[],S=q&&q.end.line,_=v.line;if(k.position=new B(R),q&&T&&q.indent){if(O=q.indent,S<_){for(;++S<_;)O.push((u[S]||0)+1);O.push(v.column)}T=O.concat(T)}return k.position.indent=T||[],k}}function A(v,x){var k=x?x.children:i,T=k[k.length-1],q;return T&&v.type===T.type&&(v.type==="text"||v.type==="blockquote")&&Vu(T)&&Vu(v)&&(q=v.type==="text"?PD:ID,v=q.call(a,T,v)),v!==T&&k.push(v),a.atStart&&i.length!==0&&a.exitStart(),v}function w(v){var x=y(),k=g(),T=E();return b(v),q.reset=R,R.test=O,q.test=O,t=t.slice(v.length),F(v),x=x(),q;function q(S,_){return k(A(k(S),_),x)}function R(){var S=q.apply(null,arguments);return l=T.line,c=T.column,t=v+t,S}function O(){var S=k({});return l=T.line,c=T.column,t=v+t,S.position}}}}function Vu(e){var r,t;return e.type!=="text"||!e.position?!0:(r=e.position.start,t=e.position.end,r.line!==t.line||t.column-r.column===e.value.length)}function PD(e,r){return e.value+=r.value,e}function ID(e,r){return this.options.commonmark||this.options.gfm?r:(e.children=e.children.concat(r.children),e)}});var Ku=C((Xv,Hu)=>{"use strict";Hu.exports=jr;var Gt=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Vt=Gt.concat(["~","|"]),Wu=Vt.concat([`
`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);jr.default=Gt;jr.gfm=Vt;jr.commonmark=Wu;function jr(e){var r=e||{};return r.commonmark?Wu:r.gfm?Vt:Gt}});var Xu=C((Qv,Ju)=>{"use strict";Ju.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var jt=C((Zv,Qu)=>{"use strict";Qu.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Xu()}});var ea=C((eE,Zu)=>{"use strict";var ND=Ie(),RD=Ku(),UD=jt();Zu.exports=MD;function MD(e){var r=this,t=r.options,n,a;if(e==null)e={};else if(typeof e=="object")e=ND(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in UD){if(a=e[n],a==null&&(a=t[n]),n!=="blocks"&&typeof a!="boolean"||n==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+n+"`");e[n]=a}return r.options=e,r.escape=RD(e),r}});var na=C((rE,ta)=>{"use strict";ta.exports=ra;function ra(e){if(e==null)return VD;if(typeof e=="string")return GD(e);if(typeof e=="object")return"length"in e?YD(e):zD(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function zD(e){return r;function r(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function YD(e){for(var r=[],t=-1;++t<e.length;)r[t]=ra(e[t]);return n;function n(){for(var a=-1;++a<r.length;)if(r[a].apply(this,arguments))return!0;return!1}}function GD(e){return r;function r(t){return!!(t&&t.type===e)}}function VD(){return!0}});var ua=C((tE,ia)=>{ia.exports=jD;function jD(e){return e}});var ca=C((nE,sa)=>{"use strict";sa.exports=$r;var $D=na(),WD=ua(),aa=!0,oa="skip",$t=!1;$r.CONTINUE=aa;$r.SKIP=oa;$r.EXIT=$t;function $r(e,r,t,n){var a,u;typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),u=$D(r),a=n?-1:1,i(e,null,[])();function i(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,p.displayName="node ("+WD(c.type+(f?"<"+f+">":""))+")"),p;function p(){var d=l.concat(o),D=[],h,m;if((!r||u(o,s,l[l.length-1]||null))&&(D=HD(t(o,l)),D[0]===$t))return D;if(o.children&&D[0]!==oa)for(m=(n?o.children.length:-1)+a;m>-1&&m<o.children.length;){if(h=i(o.children[m],m,d)(),h[0]===$t)return h;m=typeof h[1]=="number"?h[1]:m+a}return D}}}function HD(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[aa,e]:[e]}});var fa=C((iE,la)=>{"use strict";la.exports=Hr;var Wr=ca(),KD=Wr.CONTINUE,JD=Wr.SKIP,XD=Wr.EXIT;Hr.CONTINUE=KD;Hr.SKIP=JD;Hr.EXIT=XD;function Hr(e,r,t,n){typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),Wr(e,r,a,n);function a(u,i){var o=i[i.length-1],s=o?o.children.indexOf(u):null;return t(u,s,o)}}});var pa=C((uE,Da)=>{"use strict";var QD=fa();Da.exports=ZD;function ZD(e,r){return QD(e,r?ep:rp),e}function ep(e){delete e.position}function rp(e){e.position=void 0}});var ma=C((aE,da)=>{"use strict";var ha=Ie(),tp=pa();da.exports=up;var np=`
`,ip=/\r\n|\r/g;function up(){var e=this,r=String(e.file),t={line:1,column:1,offset:0},n=ha(t),a;return r=r.replace(ip,np),r.charCodeAt(0)===65279&&(r=r.slice(1),n.column++,n.offset++),a={type:"root",children:e.tokenizeBlock(r,n),position:{start:t,end:e.eof||ha(t)}},e.options.position||tp(a,!0),a}});var ga=C((oE,Fa)=>{"use strict";var ap=/^[ \t]*(\n|$)/;Fa.exports=op;function op(e,r,t){for(var n,a="",u=0,i=r.length;u<i&&(n=ap.exec(r.slice(u)),n!=null);)u+=n[0].length,a+=n[0];if(a!==""){if(t)return!0;e(a)}}});var Kr=C((sE,va)=>{"use strict";var me="",Wt;va.exports=sp;function sp(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var t=e.length*r;if(Wt!==e||typeof Wt>"u")Wt=e,me="";else if(me.length>=t)return me.substr(0,t);for(;t>me.length&&r>1;)r&1&&(me+=e),r>>=1,e+=e;return me+=e,me=me.substr(0,t),me}});var Ht=C((cE,Ea)=>{"use strict";Ea.exports=cp;function cp(e){return String(e).replace(/\n+$/,"")}});var ya=C((lE,ba)=>{"use strict";var lp=Kr(),fp=Ht();ba.exports=hp;var Kt=`
`,Ca=" ",Jt=" ",Dp=4,pp=lp(Jt,Dp);function hp(e,r,t){for(var n=-1,a=r.length,u="",i="",o="",s="",l,c,f;++n<a;)if(l=r.charAt(n),f)if(f=!1,u+=o,i+=s,o="",s="",l===Kt)o=l,s=l;else for(u+=l,i+=l;++n<a;){if(l=r.charAt(n),!l||l===Kt){s=l,o=l;break}u+=l,i+=l}else if(l===Jt&&r.charAt(n+1)===l&&r.charAt(n+2)===l&&r.charAt(n+3)===l)o+=pp,n+=3,f=!0;else if(l===Ca)o+=l,f=!0;else{for(c="";l===Ca||l===Jt;)c+=l,l=r.charAt(++n);if(l!==Kt)break;o+=c+l,s+=l}if(i)return t?!0:e(u)({type:"code",lang:null,meta:null,value:fp(i)})}});var xa=C((fE,wa)=>{"use strict";wa.exports=gp;var Jr=`
`,mr=" ",Je=" ",dp="~",Aa="`",mp=3,Fp=4;function gp(e,r,t){var n=this,a=n.options.gfm,u=r.length+1,i=0,o="",s,l,c,f,p,d,D,h,m,F,y,E,B;if(a){for(;i<u&&(c=r.charAt(i),!(c!==Je&&c!==mr));)o+=c,i++;if(E=i,c=r.charAt(i),!(c!==dp&&c!==Aa)){for(i++,l=c,s=1,o+=c;i<u&&(c=r.charAt(i),c===l);)o+=c,s++,i++;if(!(s<mp)){for(;i<u&&(c=r.charAt(i),!(c!==Je&&c!==mr));)o+=c,i++;for(f="",D="";i<u&&(c=r.charAt(i),!(c===Jr||l===Aa&&c===l));)c===Je||c===mr?D+=c:(f+=D+c,D=""),i++;if(c=r.charAt(i),!(c&&c!==Jr)){if(t)return!0;B=e.now(),B.column+=o.length,B.offset+=o.length,o+=f,f=n.decode.raw(n.unescape(f),B),D&&(o+=D),D="",F="",y="",h="",m="";for(var b=!0;i<u;){if(c=r.charAt(i),h+=F,m+=y,F="",y="",c!==Jr){h+=c,y+=c,i++;continue}for(b?(o+=c,b=!1):(F+=c,y+=c),D="",i++;i<u&&(c=r.charAt(i),c===Je);)D+=c,i++;if(F+=D,y+=D.slice(E),!(D.length>=Fp)){for(D="";i<u&&(c=r.charAt(i),c===l);)D+=c,i++;if(F+=D,y+=D,!(D.length<s)){for(D="";i<u&&(c=r.charAt(i),!(c!==Je&&c!==mr));)F+=c,y+=c,i++;if(!c||c===Jr)break}}}for(o+=h+F,i=-1,u=f.length;++i<u;)if(c=f.charAt(i),c===Je||c===mr)p||(p=f.slice(0,i));else if(p){d=f.slice(i);break}return e(o)({type:"code",lang:p||f||null,meta:d||null,value:m})}}}}}});var Re=C((Xe,ka)=>{Xe=ka.exports=vp;function vp(e){return e.trim?e.trim():Xe.right(Xe.left(e))}Xe.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Xe.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,t=e.length;r.test(e.charAt(--t)););return e.slice(0,t+1)}});var Xr=C((DE,Ba)=>{"use strict";Ba.exports=Ep;function Ep(e,r,t,n){for(var a=e.length,u=-1,i,o;++u<a;)if(i=e[u],o=i[1]||{},!(o.pedantic!==void 0&&o.pedantic!==t.options.pedantic)&&!(o.commonmark!==void 0&&o.commonmark!==t.options.commonmark)&&r[i[0]].apply(t,n))return!0;return!1}});var Sa=C((pE,_a)=>{"use strict";var Cp=Re(),bp=Xr();_a.exports=yp;var Xt=`
`,Ta=" ",Qt=" ",qa=">";function yp(e,r,t){for(var n=this,a=n.offset,u=n.blockTokenizers,i=n.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],p=[],d,D=0,h,m,F,y,E,B,b,g;D<l&&(h=r.charAt(D),!(h!==Qt&&h!==Ta));)D++;if(r.charAt(D)===qa){if(t)return!0;for(D=0;D<l;){for(F=r.indexOf(Xt,D),B=D,b=!1,F===-1&&(F=l);D<l&&(h=r.charAt(D),!(h!==Qt&&h!==Ta));)D++;if(r.charAt(D)===qa?(D++,b=!0,r.charAt(D)===Qt&&D++):D=B,y=r.slice(D,F),!b&&!Cp(y)){D=B;break}if(!b&&(m=r.slice(D),bp(i,u,n,[e,m,!0])))break;E=B===D?y:r.slice(B,F),p.push(D-B),c.push(E),f.push(y),D=F+1}for(D=-1,l=p.length,d=e(c.join(Xt));++D<l;)a[s]=(a[s]||0)+p[D],s++;return g=n.enterBlock(),f=n.tokenizeBlock(f.join(Xt),o),g(),d({type:"blockquote",children:f})}}});var Pa=C((hE,La)=>{"use strict";La.exports=wp;var Oa=`
`,Fr=" ",gr=" ",vr="#",Ap=6;function wp(e,r,t){for(var n=this,a=n.options.pedantic,u=r.length+1,i=-1,o=e.now(),s="",l="",c,f,p;++i<u;){if(c=r.charAt(i),c!==gr&&c!==Fr){i--;break}s+=c}for(p=0;++i<=u;){if(c=r.charAt(i),c!==vr){i--;break}s+=c,p++}if(!(p>Ap)&&!(!p||!a&&r.charAt(i+1)===vr)){for(u=r.length+1,f="";++i<u;){if(c=r.charAt(i),c!==gr&&c!==Fr){i--;break}f+=c}if(!(!a&&f.length===0&&c&&c!==Oa)){if(t)return!0;for(s+=f,f="",l="";++i<u&&(c=r.charAt(i),!(!c||c===Oa));){if(c!==gr&&c!==Fr&&c!==vr){l+=f+c,f="";continue}for(;c===gr||c===Fr;)f+=c,c=r.charAt(++i);if(!a&&l&&!f&&c===vr){l+=c;continue}for(;c===vr;)f+=c,c=r.charAt(++i);for(;c===gr||c===Fr;)f+=c,c=r.charAt(++i);i--}return o.column+=s.length,o.offset+=s.length,s+=l+f,e(s)({type:"heading",depth:p,children:n.tokenizeInline(l,o)})}}}});var Ra=C((dE,Na)=>{"use strict";Na.exports=Sp;var xp=" ",kp=`
`,Ia=" ",Bp="*",Tp="-",qp="_",_p=3;function Sp(e,r,t){for(var n=-1,a=r.length+1,u="",i,o,s,l;++n<a&&(i=r.charAt(n),!(i!==xp&&i!==Ia));)u+=i;if(!(i!==Bp&&i!==Tp&&i!==qp))for(o=i,u+=i,s=1,l="";++n<a;)if(i=r.charAt(n),i===o)s++,u+=l+o,l="";else if(i===Ia)l+=i;else return s>=_p&&(!i||i===kp)?(u+=l,t?!0:e(u)({type:"thematicBreak"})):void 0}});var Zt=C((mE,Ma)=>{"use strict";Ma.exports=Ip;var Ua=" ",Op=" ",Lp=1,Pp=4;function Ip(e){for(var r=0,t=0,n=e.charAt(r),a={},u,i=0;n===Ua||n===Op;){for(u=n===Ua?Pp:Lp,t+=u,u>1&&(t=Math.floor(t/u)*u);i<t;)a[++i]=r;n=e.charAt(++r)}return{indent:t,stops:a}}});var Ga=C((FE,Ya)=>{"use strict";var Np=Re(),Rp=Kr(),Up=Zt();Ya.exports=Yp;var za=`
`,Mp=" ",zp="!";function Yp(e,r){var t=e.split(za),n=t.length+1,a=1/0,u=[],i,o,s;for(t.unshift(Rp(Mp,r)+zp);n--;)if(o=Up(t[n]),u[n]=o.stops,Np(t[n]).length!==0)if(o.indent)o.indent>0&&o.indent<a&&(a=o.indent);else{a=1/0;break}if(a!==1/0)for(n=t.length;n--;){for(s=u[n],i=a;i&&!(i in s);)i--;t[n]=t[n].slice(s[i]+1)}return t.shift(),t.join(za)}});var Ka=C((gE,Ha)=>{"use strict";var Gp=Re(),Vp=Kr(),Va=Ne(),jp=Zt(),$p=Ga(),Wp=Xr();Ha.exports=rh;var en="*",Hp="_",ja="+",rn="-",$a=".",Fe=" ",ae=`
`,Qr=" ",Wa=")",Kp="x",xe=4,Jp=/\n\n(?!\s*$)/,Xp=/^\[([ X\tx])][ \t]/,Qp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Zp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,eh=/^( {1,4}|\t)?/gm;function rh(e,r,t){for(var n=this,a=n.options.commonmark,u=n.options.pedantic,i=n.blockTokenizers,o=n.interruptList,s=0,l=r.length,c=null,f,p,d,D,h,m,F,y,E,B,b,g,A,w,v,x,k,T,q,R=!1,O,S,_,L;s<l&&(D=r.charAt(s),!(D!==Qr&&D!==Fe));)s++;if(D=r.charAt(s),D===en||D===ja||D===rn)h=D,d=!1;else{for(d=!0,p="";s<l&&(D=r.charAt(s),!!Va(D));)p+=D,s++;if(D=r.charAt(s),!p||!(D===$a||a&&D===Wa)||t&&p!=="1")return;c=parseInt(p,10),h=D}if(D=r.charAt(++s),!(D!==Fe&&D!==Qr&&(u||D!==ae&&D!==""))){if(t)return!0;for(s=0,w=[],v=[],x=[];s<l;){for(m=r.indexOf(ae,s),F=s,y=!1,L=!1,m===-1&&(m=l),f=0;s<l;){if(D=r.charAt(s),D===Qr)f+=xe-f%xe;else if(D===Fe)f++;else break;s++}if(k&&f>=k.indent&&(L=!0),D=r.charAt(s),E=null,!L){if(D===en||D===ja||D===rn)E=D,s++,f++;else{for(p="";s<l&&(D=r.charAt(s),!!Va(D));)p+=D,s++;D=r.charAt(s),s++,p&&(D===$a||a&&D===Wa)&&(E=D,f+=p.length+1)}if(E)if(D=r.charAt(s),D===Qr)f+=xe-f%xe,s++;else if(D===Fe){for(_=s+xe;s<_&&r.charAt(s)===Fe;)s++,f++;s===_&&r.charAt(s)===Fe&&(s-=xe-1,f-=xe-1)}else D!==ae&&D!==""&&(E=null)}if(E){if(!u&&h!==E)break;y=!0}else!a&&!L&&r.charAt(F)===Fe?L=!0:a&&k&&(L=f>=k.indent||f>xe),y=!1,s=F;if(b=r.slice(F,m),B=F===s?b:r.slice(s,m),(E===en||E===Hp||E===rn)&&i.thematicBreak.call(n,e,b,!0))break;if(g=A,A=!y&&!Gp(B).length,L&&k)k.value=k.value.concat(x,b),v=v.concat(x,b),x=[];else if(y)x.length!==0&&(R=!0,k.value.push(""),k.trail=x.concat()),k={value:[b],indent:f,trail:[]},w.push(k),v=v.concat(x,b),x=[];else if(A){if(g&&!a)break;x.push(b)}else{if(g||Wp(o,i,n,[e,b,!0]))break;k.value=k.value.concat(x,b),v=v.concat(x,b),x=[]}s=m+1}for(O=e(v.join(ae)).reset({type:"list",ordered:d,start:c,spread:R,children:[]}),T=n.enterList(),q=n.enterBlock(),s=-1,l=w.length;++s<l;)k=w[s].value.join(ae),S=e.now(),e(k)(th(n,k,S),O),k=w[s].trail.join(ae),s!==l-1&&(k+=ae),e(k);return T(),q(),O}}function th(e,r,t){var n=e.offset,a=e.options.pedantic?nh:ih,u=null,i,o;return r=a.apply(null,arguments),e.options.gfm&&(i=r.match(Xp),i&&(o=i[0].length,u=i[1].toLowerCase()===Kp,n[t.line]+=o,r=r.slice(o))),{type:"listItem",spread:Jp.test(r),checked:u,children:e.tokenizeBlock(r,t)}}function nh(e,r,t){var n=e.offset,a=t.line;return r=r.replace(Zp,u),a=t.line,r.replace(eh,u);function u(i){return n[a]=(n[a]||0)+i.length,a++,""}}function ih(e,r,t){var n=e.offset,a=t.line,u,i,o,s,l,c,f;for(r=r.replace(Qp,p),s=r.split(ae),l=$p(r,jp(u).indent).split(ae),l[0]=o,n[a]=(n[a]||0)+i.length,a++,c=0,f=s.length;++c<f;)n[a]=(n[a]||0)+s[c].length-l[c].length,a++;return l.join(ae);function p(d,D,h,m,F){return i=D+h+m,o=F,Number(h)<10&&i.length%2===1&&(h=Fe+h),u=D+Vp(Fe,h.length)+m,u+o}}});var Za=C((vE,Qa)=>{"use strict";Qa.exports=lh;var tn=`
`,uh=" ",Ja=" ",Xa="=",ah="-",oh=3,sh=1,ch=2;function lh(e,r,t){for(var n=this,a=e.now(),u=r.length,i=-1,o="",s,l,c,f,p;++i<u;){if(c=r.charAt(i),c!==Ja||i>=oh){i--;break}o+=c}for(s="",l="";++i<u;){if(c=r.charAt(i),c===tn){i--;break}c===Ja||c===uh?l+=c:(s+=l+c,l="")}if(a.column+=o.length,a.offset+=o.length,o+=s+l,c=r.charAt(++i),f=r.charAt(++i),!(c!==tn||f!==Xa&&f!==ah)){for(o+=c,l=f,p=f===Xa?sh:ch;++i<u;){if(c=r.charAt(i),c!==f){if(c!==tn)return;i--;break}l+=c}return t?!0:e(o+l)({type:"heading",depth:p,children:n.tokenizeInline(s,a)})}}});var un=C(nn=>{"use strict";var fh="[a-zA-Z_:][a-zA-Z0-9:._-]*",Dh="[^\"'=<>`\\u0000-\\u0020]+",ph="'[^']*'",hh='"[^"]*"',dh="(?:"+Dh+"|"+ph+"|"+hh+")",mh="(?:\\s+"+fh+"(?:\\s*=\\s*"+dh+")?)",eo="<[A-Za-z][A-Za-z0-9\\-]*"+mh+"*\\s*\\/?>",ro="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Fh="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",gh="<[?].*?[?]>",vh="<![A-Za-z]+\\s+[^>]*>",Eh="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";nn.openCloseTag=new RegExp("^(?:"+eo+"|"+ro+")");nn.tag=new RegExp("^(?:"+eo+"|"+ro+"|"+Fh+"|"+gh+"|"+vh+"|"+Eh+")")});var uo=C((CE,io)=>{"use strict";var Ch=un().openCloseTag;io.exports=Ih;var bh=" ",yh=" ",to=`
`,Ah="<",wh=/^<(script|pre|style)(?=(\s|>|$))/i,xh=/<\/(script|pre|style)>/i,kh=/^<!--/,Bh=/-->/,Th=/^<\?/,qh=/\?>/,_h=/^<![A-Za-z]/,Sh=/>/,Oh=/^<!\[CDATA\[/,Lh=/]]>/,no=/^$/,Ph=new RegExp(Ch.source+"\\s*$");function Ih(e,r,t){for(var n=this,a=n.options.blocks.join("|"),u=new RegExp("^</?("+a+")(?=(\\s|/?>|$))","i"),i=r.length,o=0,s,l,c,f,p,d,D,h=[[wh,xh,!0],[kh,Bh,!0],[Th,qh,!0],[_h,Sh,!0],[Oh,Lh,!0],[u,no,!0],[Ph,no,!1]];o<i&&(f=r.charAt(o),!(f!==bh&&f!==yh));)o++;if(r.charAt(o)===Ah){for(s=r.indexOf(to,o+1),s=s===-1?i:s,l=r.slice(o,s),c=-1,p=h.length;++c<p;)if(h[c][0].test(l)){d=h[c];break}if(d){if(t)return d[2];if(o=s,!d[1].test(l))for(;o<i;){if(s=r.indexOf(to,o+1),s=s===-1?i:s,l=r.slice(o+1,s),d[1].test(l)){l&&(o=s);break}o=s}return D=r.slice(0,o),e(D)({type:"html",value:D})}}}});var oe=C((bE,ao)=>{"use strict";ao.exports=Uh;var Nh=String.fromCharCode,Rh=/\s/;function Uh(e){return Rh.test(typeof e=="number"?Nh(e):e.charAt(0))}});var an=C((yE,oo)=>{"use strict";var Mh=Br();oo.exports=zh;function zh(e){return Mh(e).toLowerCase()}});var ho=C((AE,po)=>{"use strict";var Yh=oe(),Gh=an();po.exports=Wh;var so='"',co="'",Vh="\\",Qe=`
`,Zr=" ",et=" ",sn="[",Er="]",jh="(",$h=")",lo=":",fo="<",Do=">";function Wh(e,r,t){for(var n=this,a=n.options.commonmark,u=0,i=r.length,o="",s,l,c,f,p,d,D,h;u<i&&(f=r.charAt(u),!(f!==et&&f!==Zr));)o+=f,u++;if(f=r.charAt(u),f===sn){for(u++,o+=f,c="";u<i&&(f=r.charAt(u),f!==Er);)f===Vh&&(c+=f,u++,f=r.charAt(u)),c+=f,u++;if(!(!c||r.charAt(u)!==Er||r.charAt(u+1)!==lo)){for(d=c,o+=c+Er+lo,u=o.length,c="";u<i&&(f=r.charAt(u),!(f!==Zr&&f!==et&&f!==Qe));)o+=f,u++;if(f=r.charAt(u),c="",s=o,f===fo){for(u++;u<i&&(f=r.charAt(u),!!on(f));)c+=f,u++;if(f=r.charAt(u),f===on.delimiter)o+=fo+c+f,u++;else{if(a)return;u-=c.length+1,c=""}}if(!c){for(;u<i&&(f=r.charAt(u),!!Hh(f));)c+=f,u++;o+=c}if(c){for(D=c,c="";u<i&&(f=r.charAt(u),!(f!==Zr&&f!==et&&f!==Qe));)c+=f,u++;if(f=r.charAt(u),p=null,f===so?p=so:f===co?p=co:f===jh&&(p=$h),!p)c="",u=o.length;else if(c){for(o+=c+f,u=o.length,c="";u<i&&(f=r.charAt(u),f!==p);){if(f===Qe){if(u++,f=r.charAt(u),f===Qe||f===p)return;c+=Qe}c+=f,u++}if(f=r.charAt(u),f!==p)return;l=o,o+=c+f,u++,h=c,c=""}else return;for(;u<i&&(f=r.charAt(u),!(f!==Zr&&f!==et));)o+=f,u++;if(f=r.charAt(u),!f||f===Qe)return t?!0:(s=e(s).test().end,D=n.decode.raw(n.unescape(D),s,{nonTerminated:!1}),h&&(l=e(l).test().end,h=n.decode.raw(n.unescape(h),l)),e(o)({type:"definition",identifier:Gh(d),label:d,title:h||null,url:D}))}}}}function on(e){return e!==Do&&e!==sn&&e!==Er}on.delimiter=Do;function Hh(e){return e!==sn&&e!==Er&&!Yh(e)}});var go=C((wE,Fo)=>{"use strict";var Kh=oe();Fo.exports=ud;var Jh=" ",rt=`
`,Xh=" ",Qh="-",Zh=":",ed="\\",cn="|",rd=1,td=2,mo="left",nd="center",id="right";function ud(e,r,t){var n=this,a,u,i,o,s,l,c,f,p,d,D,h,m,F,y,E,B,b,g,A,w,v;if(n.options.gfm){for(a=0,E=0,l=r.length+1,c=[];a<l;){if(A=r.indexOf(rt,a),w=r.indexOf(cn,a+1),A===-1&&(A=r.length),w===-1||w>A){if(E<td)return;break}c.push(r.slice(a,A)),E++,a=A+1}for(o=c.join(rt),u=c.splice(1,1)[0]||[],a=0,l=u.length,E--,i=!1,D=[];a<l;){if(p=u.charAt(a),p===cn){if(d=null,i===!1){if(v===!1)return}else D.push(i),i=!1;v=!1}else if(p===Qh)d=!0,i=i||null;else if(p===Zh)i===mo?i=nd:d&&i===null?i=id:i=mo;else if(!Kh(p))return;a++}if(i!==!1&&D.push(i),!(D.length<rd)){if(t)return!0;for(y=-1,b=[],g=e(o).reset({type:"table",align:D,children:b});++y<E;){for(B=c[y],s={type:"tableRow",children:[]},y&&e(rt),e(B).reset(s,g),l=B.length+1,a=0,f="",h="",m=!0;a<l;){if(p=B.charAt(a),p===Jh||p===Xh){h?f+=p:e(p),a++;continue}p===""||p===cn?m?e(p):((h||p)&&!m&&(o=h,f.length>1&&(p?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),F=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(h,F)},s)),e(f+p),f="",h=""):(f&&(h+=f,f=""),h+=p,p===ed&&a!==l-2&&(h+=B.charAt(a+1),a++)),m=!1,a++}y||e(rt+u)}return g}}}});var Co=C((xE,Eo)=>{"use strict";var ad=Re(),od=Ht(),sd=Xr();Eo.exports=fd;var cd=" ",Cr=`
`,ld=" ",vo=4;function fd(e,r,t){for(var n=this,a=n.options,u=a.commonmark,i=n.blockTokenizers,o=n.interruptParagraph,s=r.indexOf(Cr),l=r.length,c,f,p,d,D;s<l;){if(s===-1){s=l;break}if(r.charAt(s+1)===Cr)break;if(u){for(d=0,c=s+1;c<l;){if(p=r.charAt(c),p===cd){d=vo;break}else if(p===ld)d++;else break;c++}if(d>=vo&&p!==Cr){s=r.indexOf(Cr,s+1);continue}}if(f=r.slice(s+1),sd(o,i,n,[e,f,!0]))break;if(c=s,s=r.indexOf(Cr,s+1),s!==-1&&ad(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),t?!0:(D=e.now(),f=od(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,D)}))}});var yo=C((kE,bo)=>{"use strict";bo.exports=Dd;function Dd(e,r){return e.indexOf("\\",r)}});var ko=C((BE,xo)=>{"use strict";var pd=yo();xo.exports=wo;wo.locator=pd;var hd=`
`,Ao="\\";function wo(e,r,t){var n=this,a,u;if(r.charAt(0)===Ao&&(a=r.charAt(1),n.escape.indexOf(a)!==-1))return t?!0:(a===hd?u={type:"break"}:u={type:"text",value:a},e(Ao+a)(u))}});var ln=C((TE,Bo)=>{"use strict";Bo.exports=dd;function dd(e,r){return e.indexOf("<",r)}});var Oo=C((qE,So)=>{"use strict";var To=oe(),md=dr(),Fd=ln();So.exports=hn;hn.locator=Fd;hn.notInLink=!0;var qo="<",fn=">",_o="@",Dn="/",pn="mailto:",tt=pn.length;function hn(e,r,t){var n=this,a="",u=r.length,i=0,o="",s=!1,l="",c,f,p,d,D;if(r.charAt(0)===qo){for(i++,a=qo;i<u&&(c=r.charAt(i),!(To(c)||c===fn||c===_o||c===":"&&r.charAt(i+1)===Dn));)o+=c,i++;if(o){if(l+=o,o="",c=r.charAt(i),l+=c,i++,c===_o)s=!0;else{if(c!==":"||r.charAt(i+1)!==Dn)return;l+=Dn,i++}for(;i<u&&(c=r.charAt(i),!(To(c)||c===fn));)o+=c,i++;if(c=r.charAt(i),!(!o||c!==fn))return t?!0:(l+=o,p=l,a+=l+c,f=e.now(),f.column++,f.offset++,s&&(l.slice(0,tt).toLowerCase()===pn?(p=p.slice(tt),f.column+=tt,f.offset+=tt):l=pn+l),d=n.inlineTokenizers,n.inlineTokenizers={text:d.text},D=n.enterLink(),p=n.tokenizeInline(p,f),n.inlineTokenizers=d,D(),e(a)({type:"link",title:null,url:md(l,{nonTerminated:!1}),children:p}))}}}});var Po=C((_E,Lo)=>{"use strict";Lo.exports=gd;function gd(e,r){var t=String(e),n=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=t.indexOf(r);a!==-1;)n++,a=t.indexOf(r,a+r.length);return n}});var Ro=C((SE,No)=>{"use strict";No.exports=vd;var Io=["www.","http://","https://"];function vd(e,r){var t=-1,n,a,u;if(!this.options.gfm)return t;for(a=Io.length,n=-1;++n<a;)u=e.indexOf(Io[n],r),u!==-1&&(t===-1||u<t)&&(t=u);return t}});var Go=C((OE,Yo)=>{"use strict";var Uo=Po(),Ed=dr(),Cd=Ne(),dn=We(),bd=oe(),yd=Ro();Yo.exports=Fn;Fn.locator=yd;Fn.notInLink=!0;var Ad=33,wd=38,xd=41,kd=42,Bd=44,Td=45,mn=46,qd=58,_d=59,Sd=63,Od=60,Mo=95,Ld=126,Pd="(",zo=")";function Fn(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=r.length,o=-1,s=!1,l,c,f,p,d,D,h,m,F,y,E,B,b,g;if(a){if(r.slice(0,4)==="www.")s=!0,p=4;else if(r.slice(0,7).toLowerCase()==="http://")p=7;else if(r.slice(0,8).toLowerCase()==="https://")p=8;else return;for(o=p-1,f=p,l=[];p<i;){if(h=r.charCodeAt(p),h===mn){if(o===p-1)break;l.push(p),o=p,p++;continue}if(Cd(h)||dn(h)||h===Td||h===Mo){p++;continue}break}if(h===mn&&(l.pop(),p--),l[0]!==void 0&&(c=l.length<2?f:l[l.length-2]+1,r.slice(c,p).indexOf("_")===-1)){if(t)return!0;for(m=p,d=p;p<i&&(h=r.charCodeAt(p),!(bd(h)||h===Od));)p++,h===Ad||h===kd||h===Bd||h===mn||h===qd||h===Sd||h===Mo||h===Ld||(m=p);if(p=m,r.charCodeAt(p-1)===xd)for(D=r.slice(d,p),F=Uo(D,Pd),y=Uo(D,zo);y>F;)p=d+D.lastIndexOf(zo),D=r.slice(d,p),y--;if(r.charCodeAt(p-1)===_d&&(p--,dn(r.charCodeAt(p-1)))){for(m=p-2;dn(r.charCodeAt(m));)m--;r.charCodeAt(m)===wd&&(p=m)}return E=r.slice(0,p),b=Ed(E,{nonTerminated:!1}),s&&(b="http://"+b),g=n.enterLink(),n.inlineTokenizers={text:u.text},B=n.tokenizeInline(E,e.now()),n.inlineTokenizers=u,g(),e(E)({type:"link",title:null,url:b,children:B})}}}});var Wo=C((LE,$o)=>{"use strict";var Id=Ne(),Nd=We(),Rd=43,Ud=45,Md=46,zd=95;$o.exports=jo;function jo(e,r){var t=this,n,a;if(!this.options.gfm||(n=e.indexOf("@",r),n===-1))return-1;if(a=n,a===r||!Vo(e.charCodeAt(a-1)))return jo.call(t,e,n+1);for(;a>r&&Vo(e.charCodeAt(a-1));)a--;return a}function Vo(e){return Id(e)||Nd(e)||e===Rd||e===Ud||e===Md||e===zd}});var Xo=C((PE,Jo)=>{"use strict";var Yd=dr(),Ho=Ne(),Ko=We(),Gd=Wo();Jo.exports=En;En.locator=Gd;En.notInLink=!0;var Vd=43,gn=45,nt=46,jd=64,vn=95;function En(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=0,o=r.length,s=-1,l,c,f,p;if(a){for(l=r.charCodeAt(i);Ho(l)||Ko(l)||l===Vd||l===gn||l===nt||l===vn;)l=r.charCodeAt(++i);if(i!==0&&l===jd){for(i++;i<o;){if(l=r.charCodeAt(i),Ho(l)||Ko(l)||l===gn||l===nt||l===vn){i++,s===-1&&l===nt&&(s=i);continue}break}if(!(s===-1||s===i||l===gn||l===vn))return l===nt&&i--,c=r.slice(0,i),t?!0:(p=n.enterLink(),n.inlineTokenizers={text:u.text},f=n.tokenizeInline(c,e.now()),n.inlineTokenizers=u,p(),e(c)({type:"link",title:null,url:"mailto:"+Yd(c,{nonTerminated:!1}),children:f}))}}}});var es=C((IE,Zo)=>{"use strict";var $d=We(),Wd=ln(),Hd=un().tag;Zo.exports=Qo;Qo.locator=Wd;var Kd="<",Jd="?",Xd="!",Qd="/",Zd=/^<a /i,e0=/^<\/a>/i;function Qo(e,r,t){var n=this,a=r.length,u,i;if(!(r.charAt(0)!==Kd||a<3)&&(u=r.charAt(1),!(!$d(u)&&u!==Jd&&u!==Xd&&u!==Qd)&&(i=r.match(Hd),!!i)))return t?!0:(i=i[0],!n.inLink&&Zd.test(i)?n.inLink=!0:n.inLink&&e0.test(i)&&(n.inLink=!1),e(i)({type:"html",value:i}))}});var Cn=C((NE,rs)=>{"use strict";rs.exports=r0;function r0(e,r){var t=e.indexOf("[",r),n=e.indexOf("![",r);return n===-1||t<n?t:n}});var ss=C((RE,os)=>{"use strict";var br=oe(),t0=Cn();os.exports=as;as.locator=t0;var n0=`
`,i0="!",ts='"',ns="'",Ze="(",yr=")",bn="<",yn=">",is="[",Ar="\\",u0="]",us="`";function as(e,r,t){var n=this,a="",u=0,i=r.charAt(0),o=n.options.pedantic,s=n.options.commonmark,l=n.options.gfm,c,f,p,d,D,h,m,F,y,E,B,b,g,A,w,v,x,k;if(i===i0&&(F=!0,a=i,i=r.charAt(++u)),i===is&&!(!F&&n.inLink)){for(a+=i,A="",u++,B=r.length,v=e.now(),g=0,v.column+=u,v.offset+=u;u<B;){if(i=r.charAt(u),h=i,i===us){for(f=1;r.charAt(u+1)===us;)h+=i,u++,f++;p?f>=p&&(p=0):p=f}else if(i===Ar)u++,h+=r.charAt(u);else if((!p||l)&&i===is)g++;else if((!p||l)&&i===u0)if(g)g--;else{if(r.charAt(u+1)!==Ze)return;h+=Ze,c=!0,u++;break}A+=h,h="",u++}if(c){for(y=A,a+=A+h,u++;u<B&&(i=r.charAt(u),!!br(i));)a+=i,u++;if(i=r.charAt(u),A="",d=a,i===bn){for(u++,d+=bn;u<B&&(i=r.charAt(u),i!==yn);){if(s&&i===n0)return;A+=i,u++}if(r.charAt(u)!==yn)return;a+=bn+A+yn,w=A,u++}else{for(i=null,h="";u<B&&(i=r.charAt(u),!(h&&(i===ts||i===ns||s&&i===Ze)));){if(br(i)){if(!o)break;h+=i}else{if(i===Ze)g++;else if(i===yr){if(g===0)break;g--}A+=h,h="",i===Ar&&(A+=Ar,i=r.charAt(++u)),A+=i}u++}a+=A,w=A,u=a.length}for(A="";u<B&&(i=r.charAt(u),!!br(i));)A+=i,u++;if(i=r.charAt(u),a+=A,A&&(i===ts||i===ns||s&&i===Ze))if(u++,a+=i,A="",E=i===Ze?yr:i,D=a,s){for(;u<B&&(i=r.charAt(u),i!==E);)i===Ar&&(A+=Ar,i=r.charAt(++u)),u++,A+=i;if(i=r.charAt(u),i!==E)return;for(b=A,a+=A+i,u++;u<B&&(i=r.charAt(u),!!br(i));)a+=i,u++}else for(h="";u<B;){if(i=r.charAt(u),i===E)m&&(A+=E+h,h=""),m=!0;else if(!m)A+=i;else if(i===yr){a+=A+E+h,b=A;break}else br(i)?h+=i:(A+=E+h+i,h="",m=!1);u++}if(r.charAt(u)===yr)return t?!0:(a+=yr,w=n.decode.raw(n.unescape(w),e(d).test().end,{nonTerminated:!1}),b&&(D=e(D).test().end,b=n.decode.raw(n.unescape(b),D)),k={type:F?"image":"link",title:b||null,url:w},F?k.alt=n.decode.raw(n.unescape(y),v)||null:(x=n.enterLink(),k.children=n.tokenizeInline(y,v),x()),e(a)(k))}}}});var fs=C((UE,ls)=>{"use strict";var a0=oe(),o0=Cn(),s0=an();ls.exports=cs;cs.locator=o0;var An="link",c0="image",l0="shortcut",f0="collapsed",wn="full",D0="!",it="[",ut="\\",at="]";function cs(e,r,t){var n=this,a=n.options.commonmark,u=r.charAt(0),i=0,o=r.length,s="",l="",c=An,f=l0,p,d,D,h,m,F,y,E;if(u===D0&&(c=c0,l=u,u=r.charAt(++i)),u===it){for(i++,l+=u,F="",E=0;i<o;){if(u=r.charAt(i),u===it)y=!0,E++;else if(u===at){if(!E)break;E--}u===ut&&(F+=ut,u=r.charAt(++i)),F+=u,i++}if(s=F,p=F,u=r.charAt(i),u===at){if(i++,s+=u,F="",!a)for(;i<o&&(u=r.charAt(i),!!a0(u));)F+=u,i++;if(u=r.charAt(i),u===it){for(d="",F+=u,i++;i<o&&(u=r.charAt(i),!(u===it||u===at));)u===ut&&(d+=ut,u=r.charAt(++i)),d+=u,i++;u=r.charAt(i),u===at?(f=d?wn:f0,F+=d+u,i++):d="",s+=F,F=""}else{if(!p)return;d=p}if(!(f!==wn&&y))return s=l+s,c===An&&n.inLink?null:t?!0:(D=e.now(),D.column+=l.length,D.offset+=l.length,d=f===wn?d:p,h={type:c+"Reference",identifier:s0(d),label:d,referenceType:f},c===An?(m=n.enterLink(),h.children=n.tokenizeInline(p,D),m()):h.alt=n.decode.raw(n.unescape(p),D)||null,e(s)(h))}}}});var ps=C((ME,Ds)=>{"use strict";Ds.exports=p0;function p0(e,r){var t=e.indexOf("**",r),n=e.indexOf("__",r);return n===-1?t:t===-1||n<t?n:t}});var Fs=C((zE,ms)=>{"use strict";var h0=Re(),hs=oe(),d0=ps();ms.exports=ds;ds.locator=d0;var m0="\\",F0="*",g0="_";function ds(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,p;if(!(u!==F0&&u!==g0||r.charAt(++a)!==u)&&(o=n.options.pedantic,s=u,c=s+s,f=r.length,a++,l="",u="",!(o&&hs(r.charAt(a)))))for(;a<f;){if(p=u,u=r.charAt(a),u===s&&r.charAt(a+1)===s&&(!o||!hs(p))&&(u=r.charAt(a+2),u!==s))return h0(l)?t?!0:(i=e.now(),i.column+=2,i.offset+=2,e(c+l+c)({type:"strong",children:n.tokenizeInline(l,i)})):void 0;!o&&u===m0&&(l+=u,u=r.charAt(++a)),l+=u,a++}}});var vs=C((YE,gs)=>{"use strict";gs.exports=C0;var v0=String.fromCharCode,E0=/\w/;function C0(e){return E0.test(typeof e=="number"?v0(e):e.charAt(0))}});var Cs=C((GE,Es)=>{"use strict";Es.exports=b0;function b0(e,r){var t=e.indexOf("*",r),n=e.indexOf("_",r);return n===-1?t:t===-1||n<t?n:t}});var xs=C((VE,ws)=>{"use strict";var y0=Re(),A0=vs(),bs=oe(),w0=Cs();ws.exports=As;As.locator=w0;var x0="*",ys="_",k0="\\";function As(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,p;if(!(u!==x0&&u!==ys)&&(o=n.options.pedantic,c=u,s=u,f=r.length,a++,l="",u="",!(o&&bs(r.charAt(a)))))for(;a<f;){if(p=u,u=r.charAt(a),u===s&&(!o||!bs(p))){if(u=r.charAt(++a),u!==s){if(!y0(l)||p===s)return;if(!o&&s===ys&&A0(u)){l+=s;continue}return t?!0:(i=e.now(),i.column++,i.offset++,e(c+l+s)({type:"emphasis",children:n.tokenizeInline(l,i)}))}l+=s}!o&&u===k0&&(l+=u,u=r.charAt(++a)),l+=u,a++}}});var Bs=C((jE,ks)=>{"use strict";ks.exports=B0;function B0(e,r){return e.indexOf("~~",r)}});var Os=C(($E,Ss)=>{"use strict";var Ts=oe(),T0=Bs();Ss.exports=_s;_s.locator=T0;var ot="~",qs="~~";function _s(e,r,t){var n=this,a="",u="",i="",o="",s,l,c;if(!(!n.options.gfm||r.charAt(0)!==ot||r.charAt(1)!==ot||Ts(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s<l;){if(a=r.charAt(s),a===ot&&u===ot&&(!i||!Ts(i)))return t?!0:e(qs+o+qs)({type:"delete",children:n.tokenizeInline(o,c)});o+=u,iLine truncated
`,r);t>r&&e.charAt(t-1)===" ";)t--;return t}});var Gs=C((JE,Ys)=>{"use strict";var O0=Ms();Ys.exports=zs;zs.locator=O0;var L0=" ",P0=`
`,I0=2;function zs(e,r,t){for(var n=r.length,a=-1,u="",i;++a<n;){if(i=r.charAt(a),i===P0)return a<I0?void 0:t?!0:(u+=i,e(u)({type:"break"}));if(i!==L0)return;u+=i}}});var js=C((XE,Vs)=>{"use strict";Vs.exports=N0;function N0(e,r,t){var n=this,a,u,i,o,s,l,c,f,p,d;if(t)return!0;for(a=n.inlineMethods,o=a.length,u=n.inlineTokenizers,i=-1,p=r.length;++i<o;)f=a[i],!(f==="text"||!u[f])&&(c=u[f].locator,c||e.file.fail("Missing locator: `"+f+"`"),l=c.call(n,r,1),l!==-1&&l<p&&(p=l));s=r.slice(0,p),d=e.now(),n.decode(s,d,D);function D(h,m,F){e(F||h)({type:"text",value:h})}}});var Ks=C((QE,Hs)=>{"use strict";var R0=Ie(),st=fu(),U0=pu(),M0=du(),z0=Gu(),Tn=$u();Hs.exports=$s;function $s(e,r){this.file=r,this.offset={},this.options=R0(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=U0(r).toOffset,this.unescape=M0(this,"escape"),this.decode=z0(this)}var U=$s.prototype;U.setOptions=ea();U.parse=ma();U.options=jt();U.exitStart=st("atStart",!0);U.enterList=st("inList",!1);U.enterLink=st("inLink",!1);U.enterBlock=st("inBlock",!1);U.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];U.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];U.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];U.blockTokenizers={blankLine:ga(),indentedCode:ya(),fencedCode:xa(),blockquote:Sa(),atxHeading:Pa(),thematicBreak:Ra(),list:Ka(),setextHeading:Za(),html:uo(),definition:ho(),table:go(),paragraph:Co()};U.inlineTokenizers={escape:ko(),autoLink:Oo(),url:Go(),email:Xo(),html:es(),link:ss(),reference:fs(),strong:Fs(),emphasis:xs(),deletion:Os(),code:Rs(),break:Gs(),text:js()};U.blockMethods=Ws(U.blockTokenizers);U.inlineMethods=Ws(U.inlineTokenizers);U.tokenizeBlock=Tn("block");U.tokenizeInline=Tn("inline");U.tokenizeFactory=Tn;function Ws(e){var r=[],t;for(t in e)r.push(t);return r}});var Zs=C((ZE,Qs)=>{"use strict";var Y0=cu(),G0=Ie(),Js=Ks();Qs.exports=Xs;Xs.Parser=Js;function Xs(e){var r=this.data("settings"),t=Y0(Js);t.prototype.options=G0(t.prototype.options,r,e),this.Parser=t}});var rc=C((eC,ec)=>{"use strict";ec.exports=V0;function V0(e){if(e)throw e}});var qn=C((rC,tc)=>{tc.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var fc=C((tC,lc)=>{"use strict";var ct=Object.prototype.hasOwnProperty,cc=Object.prototype.toString,nc=Object.defineProperty,ic=Object.getOwnPropertyDescriptor,uc=function(r){return typeof Array.isArray=="function"?Array.isArray(r):cc.call(r)==="[object Array]"},ac=function(r){if(!r||cc.call(r)!=="[object Object]")return!1;var t=ct.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&ct.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!t&&!n)return!1;var a;for(a in r);return typeof a>"u"||ct.call(r,a)},oc=function(r,t){nc&&t.name==="__proto__"?nc(r,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):r[t.name]=t.newValue},sc=function(r,t){if(t==="__proto__")if(ct.call(r,t)){if(ic)return ic(r,t).value}else return;return r[t]};lc.exports=function e(){var r,t,n,a,u,i,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s<l;++s)if(r=arguments[s],r!=null)for(t in r)n=sc(o,t),a=sc(r,t),o!==a&&(c&&a&&(ac(a)||(u=uc(a)))?(u?(u=!1,i=n&&uc(n)?n:[]):i=n&&ac(n)?n:{},oc(o,{name:t,newValue:e(c,i,a)})):typeof a<"u"&&oc(o,{name:t,newValue:a}));return o}});var pc=C((nC,Dc)=>{"use strict";Dc.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var dc=C((iC,hc)=>{"use strict";var j0=[].slice;hc.exports=$0;function $0(e,r){var t;return n;function n(){var i=j0.call(arguments,0),o=e.length>i.length,s;o&&i.push(a);try{s=e.apply(null,i)}catch(l){if(o&&t)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(u,a):s instanceof Error?a(s):u(s))}function a(){t||(t=!0,r.apply(null,arguments))}function u(i){a(null,i)}}});var Ec=C((uC,vc)=>{"use strict";var Fc=dc();vc.exports=gc;gc.wrap=Fc;var mc=[].slice;function gc(){var e=[],r={};return r.run=t,r.use=n,r;function t(){var a=-1,u=mc.call(arguments,0,-1),i=arguments[arguments.length-1];if(typeof i!="function")throw new Error("Expected function as last argument, not "+i);o.apply(null,[null].concat(u));function o(s){var l=e[++a],c=mc.call(arguments,0),f=c.slice(1),p=u.length,d=-1;if(s){i(s);return}for(;++d<p;)(f[d]===null||f[d]===void 0)&&(f[d]=u[d]);u=f,l?Fc(l,o).apply(null,u):i.apply(null,[null].concat(u))}}funct Line truncated
Expected it to be 'string' or 'object'.`;if(Y(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=El([...Tr].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}var pt=class extends Error{name="InvalidDocError";constructor(r){super(Cl(r)),this.doc=r}},Te=pt;var Hn={};function bl(e,r,t,n){let a=[e];for(;a.length>0;){let u=a.pop();if(u===Hn){t(a.pop());continue}t&&a.push(u,Hn);let i=Y(u);if(!i)throw new Te(u);if((r==null?void 0:r(u))!==!1)switch(i){case H:case X:{let o=i===H?u:u.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case K:a.push(u.flatContents,u.breakContents);break;case J:if(n&&u.expandedStates)for(let o=u.expandedStates.length,s=o-1;s>=0;--s)a.push(u.expandedStates[s]);else a.push(u.contents);break;case te:case re:case De:case de:case pe:a.push(u.contents);break;case G:case Ce:case fe:case he:case V:case ne:break;default:throw new Te(u)}}}var ht=bl;function yl(e,r){if(typeof e=="string")return r(e);let t=new Map;return n(e);function n(u){if(t.has(u))return t.get(u);let i=a(u);return t.set(u,i),i}function a(u){switch(Y(u)){case H:return r(u.map(n));case X:return r({...u,parts:u.parts.map(n)});case K:return r({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case J:{let{expandedStates:i,contents:o}=u;return i?(i=i.map(n),o=i[0]):o=n(o),r({...u,contents:o,expandedStates:i})}case te:case re:case De:case de:case pe:return r({...u,contents:n(u.contents)});case G:case Ce:case fe:case he:case V:case ne:return r(u);default:throw new Te(u)}}}function Kn(e){if(e.length>0){let r=z(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Jn(e){let r=new Set,t=[];function n(u){if(u.type===ne&&Kn(t),u.type===J){if(t.push(u),r.has(u))return!1;r.add(u)}}function a(u){u.type===J&&t.pop().break&&Kn(t)}ht(e,n,a,!0)}function be(e,r=tr){return yl(e,t=>typeof t=="string"?qr(r,t.split(`
`)):t)}var dt=()=>{},qe=dt,mt=dt,Xn=dt;function nr(e){return qe(e),{type:re,contents:e}}function ye(e,r){return qe(r),{type:te,contents:r,n:e}}function Me(e,r={}){return qe(e),mt(r.expandedStates,!0),{type:J,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function _e(e){return ye({type:"root"},e)}function ze(e){return Xn(e),{type:X,parts:e}}function Qn(e,r="",t={}){return qe(e),r!==""&&qe(r),{type:K,breakContents:e,flatContents:r,groupId:t.groupId}}var ir={type:ne};var ur={type:V,hard:!0},Al={type:V,hard:!0,literal:!0},_r={type:V},Sr={type:V,soft:!0},P=[ur,ir],tr=[Al,ir];function qr(e,r){qe(e),mt(r);let t=[];for(let n=0;n<r.length;n++)n!==0&&t.push(e),t.push(r[n]);return t}function wl(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));return t===null?0:t.reduce((n,a)=>Math.max(n,a.length/r.length),0)}var Or=wl;function xl(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));if(t===null)return 0;let n=new Map,a=0;for(let u of t){let i=u.length/r.length;n.set(i,!0),i>a&&(a=i)}for(let u=1;u<a;u++)if(!n.get(u))return u;return a+1}var Zn=xl;var Lr="'",ei='"';function kl(e,r){let t=r===!0||r===Lr?Lr:ei,n=t===Lr?ei:Lr,a=0,u=0;for(let i of e)i===t?a++:i===n&&u++;return a>u?n:t}var ri=kl;var Ft=class extends Error{name="UnexpectedNodeError";constructor(r,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`),this.node=r}},ti=Ft;var oi=Ue(Br(),1);function Bl(e){return(e==null?void 0:e.type)==="front-matter"}var ni=Bl;var ar=3;function Tl(e){let r=e.slice(0,ar);if(r!=="---"&&r!=="+++")return;let t=e.indexOf(`
`,ar);if(t===-1)return;let n=e.slice(ar,t).trim(),a=e.indexOf(`
${r}`,t),u=n;if(u||(u=r==="+++"?"toml":"yaml"),a===-1&&r==="---"&&u==="yaml"&&(a=e.indexOf(`
...`,t)),a===-1)return;let i=a+1+ar,o=e.charAt(i+1);if(!/\s?/u.test(o))return;let s=e.slice(0,i);return{type:"front-matter",language:u,explicitLanguage:n,value:e.slice(t+1,a),startDelimiter:r,endDelimiter:s.slice(-ar),raw:s}}function ql(e){let r=Tl(e);if(!r)return{content:e};let{raw:t}=r;return{frontMatter:r,content:N(!1,t,/[^\n]/gu," ")+e.slice(t.length)}}var or=ql;var ii=["format","prettier"];function gt(e){let r=`@(${ii.join("|")})`,t=new RegExp([`<!--\\s*${r}\\s*-->`,`\\{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*\\}`,`<!--.*\r?
[\\s\\S]*(^|
)[^\\S
]*${r}[^\\S
]*($|
)[\\s\\S]*
.*-->`].join("|"),"mu"),n=e.match(t);return(n==null?void 0:n.index)===0}var ui=e=>gt(or(e).content.trimStart()),ai=e=>{let r=or(e),t=`<!-- @${ii[0]} -->`;return r.frontMatter?`${r.frontMatter.raw}
${t}
${r.content}`:`${t}
${r.content}`};var _l=new Set(["position","raw"]);function si(e,r,t){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(r.value=N(!1,e.value,`
`," ")),e.type==="wikiLink"&&(r.value=N(!1,e.value.trim(),/[\t\n]+/gu," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,oi.default)(e.label)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")r.url=N(!1,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=N(!1,e.title,/\\(?=["')])/gu,"")),(t==null?void 0:t.type)==="root"&&t.children.length>0&&(t.children[0]===e||ni(t.children[0])&&t.children[1]===e)&&e.type==="html"&&gt(e.value))return null}si.ignoredProperties=_l;var ci=si;var li=/(?:[\u{2ea}-\u{2eb}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b739}\u{2b740}-\u{2b81d}\u{2b820}-\u{2cea1}\u{2ceb0}-\u{2ebe0}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{323af}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,Se=/(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;async function Sl(e,r){if(e.language==="yaml"){let t=e.value.trim(),n=t?await r(t,{parser:"yaml"}):"";return _e([e.startDelimiter,e.explicitLanguage,P,n,n?P:"",e.endDelimiter])}}var fi=Sl;var Ol=e=>String(e).split(/[/\\]/u).pop();function Di(e,r){if(!r)return;let t=Ol(r).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===t))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>t.endsWith(a)))}function Ll(e,r){if(r)return e.find(({name:t})=>t.toLowerCase()===r)??e.find(({aliases:t})=>t==null?void 0:t.includes(r))??e.find(({extensions:t})=>t==null?void 0:t.includes(`.${r}`))}function Pl(e,r){let t=e.plugins.flatMap(a=>a.languages??[]),n=Ll(t,r.language)??Di(t,r.physicalFile)??Di(t,r.file)??(r.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var pi=Pl;var Il=new Proxy(()=>{},{get:()=>Il});function Oe(e){return e.position.start.offset}function Le(e){return e.position.end.offset}var vt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Pr=new Set([...vt,"tableCell","paragraph","heading"]),Ge="non-cjk",ie="cj-letter",Pe="k-letter",sr="cjk-punctuation",Nl=/\p{Script_Extensions=Hangul}/u;function Ir(e){let r=[],t=e.split(/([\t\n ]+)/u);for(let[a,u]of t.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/u.test(u)?`
`:" "});continue}if((a===0||a===t.length-1)&&u==="")continue;let i=u.split(new RegExp(`(${li.source})`,"u"));for(let[o,s]of i.entries())if(!((o===0||o===i.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:Ge,isCJ:!1,hasLeadingPunctuation:Se.test(s[0]),hasTrailingPunctuation:Se.test(z(!1,s,-1))});continue}if(Se.test(s)){n({type:"word",value:s,kind:sr,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(Nl.test(s)){n({type:"word",value:s,kind:Pe,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}n({type:"word",value:s,kind:ie,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function n(a){let u=z(!1,r,-1);(u==null?void 0:u.type)==="word"&&!i(Ge,sr)&&![u.value,a.value].some(o=>/\u3000/u.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function i(o,s){return u.kind===o&&a.kind===s||u.kind===s&&a.kind===o}}}function Ye(e,r){let t=r.originalText.slice(e.position.start.offset,e.position.end.offset),{numberText:n,leadingSpaces:a}=t.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;return{number:Number(n),leadingSpaces:a}}function hi(e,r){return!e.ordered||e.children.length<2||Ye(e.children[1],r).number!==1?!1:Ye(e.children[0],r).number!==0?!0:e.children.length>2&&Ye(e.children[2],r).number===1}function Nr(e,r){let{value:t}=e;return e.position.end.offset===r.length&&t.endsWith(`
`)&&r.endsWith(`
`)?t.slice(0,-1):t}function Ae(e,r){return function t(n,a,u){let i={...r(n,a,u)};return i.children&&(i.children=i.children.map((o,s)=>t(o,s,[i,...u]))),i}(e,null,[])}function Et(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Oe(e)===Oe(r)&&Le(e)===Le(r)}function Rl(e,r){let{node:t}=e;if(t.type==="code"&&t.lang!==null){let n=pi(r,{language:t.lang});if(n)return async a=>{let u=r.__inJsTemplate?"~":"`",i=u.repeat(Math.max(3,Or(t.value,u)+1)),o={parser:n};t.lang==="ts"||t.lang==="typescript"?o.filepath="dummy.ts":t.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Nr(t,r.originalText),o);return _e([i,t.lang,t.meta?" "+t.meta:"",P,be(s),P,i])}}switch(t.type){case"front-matter":return n=>fi(t,n);case"import":case"export":return n=>n(t.value,{parser:"babel"});case"jsx":return n=>n(`<$>${t.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var di=Rl;var cr=null;function lr(e){if(cr!==null&&typeof cr.property){let r=cr;return cr=lr.prototype=null,r}return cr=lr.prototype=e??Object.create(null),new lr}var Ul=10;for(let e=0;e<=Ul;e++)lr();function Ct(e){return lr(e)}function Ml(e,r="type"){Ct(e);function t(n){let a=n[r],u=e[a];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return u}return t}var mi=Ml;var zl={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},Fi=zl;var Yl=mi(Fi),gi=Yl;function vi(e){switch(e){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}var Ei=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC Line truncated
`?N(!1,D,`
`,a):D;o.push(h),i.length>0&&(u+=fr(h));break}case H:for(let h=D.length-1;h>=0;h--)i.push({ind:p,mode:d,doc:D[h]});break;case Ce:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(Ve),c++;break;case re:i.push({ind:jl(p,r),mode:d,doc:D.contents});break;case te:i.push({ind:$l(p,D.n,r),mode:d,doc:D.contents});break;case fe:u-=At(o);break;case J:switch(d){case ue:if(!s){i.push({ind:p,mode:D.break?j:ue,doc:D.contents});break}case j:{s=!1;let h={ind:p,mode:ue,doc:D.contents},m=n-u,F=l.length>0;if(!D.break&&Rr(h,i,m,F,t))i.push(h);else if(D.expandedStates){let y=z(!1,D.expandedStates,-1);if(D.break){i.push({ind:p,mode:j,doc:y});break}else for(let E=1;E<D.expandedStates.length+1;E++)if(E>=D.expandedStates.length){i.push({ind:p,mode:j,doc:y});break}else{let B=D.expandedStates[E],b={ind:p,mode:ue,doc:B};if(Rr(b,i,m,F,t)){i.push(b);break}}}else i.push({ind:p,mode:j,doc:D.contents});break}}D.id&&(t[D.id]=z(!1,i,-1).mode);break;case X:{let h=n-u,m=D[bt]??0,{parts:F}=D,y=F.length-m;if(y===0)break;let E=F[m+0],B=F[m+1],b={ind:p,mode:ue,doc:E},g={ind:p,mode:j,doc:E},A=Rr(b,[],h,l.length>0,t,!0);if(y===1){A?i.push(b):i.push(g);break}let w={ind:p,mode:ue,doc:B},v={ind:p,mode:j,doc:B};if(y===2){A?i.push(w,b):i.push(v,g);break}let x=F[m+2],k={ind:p,mode:d,doc:{...D,[bt]:m+2}};Rr({ind:p,mode:ue,doc:[E,B,x]},[],h,l.length>0,t,!0)?i.push(k,w,b):A?i.push(k,v,b):i.push(k,v,g);break}case K:case De:{let h=D.groupId?t[D.groupId]:d;if(h===j){let m=D.type===K?D.breakContents:D.negate?D.contents:nr(D.contents);m&&i.push({ind:p,mode:d,doc:m})}if(h===ue){let m=D.type===K?D.flatContents:D.negate?nr(D.contents):D.contents;m&&i.push({ind:p,mode:d,doc:m})}break}case pe:l.push({ind:p,mode:d,doc:D.contents});break;case he:l.length>0&&i.push({ind:p,mode:d,doc:ur});break;case V:switch(d){case ue:if(D.hard)s=!0;else{D.soft||(o.push(" "),u+=1);break}case j:if(l.length>0){i.push({ind:p,mode:d,doc:D},...l.reverse()),l.length=0;break}D.literal?p.root?(o.push(a,p.root.value),u=p.root.length):(o.push(a),u=0):(u-=At(o),o.push(a+p.value),u=p.length);break}break;case de:i.push({ind:p,mode:d,doc:D.contents});break;case ne:break;default:throw new Te(D)}i.length===0&&l.length>0&&(i.push(...l.reverse()),l.length=0)}let f=o.indexOf(Ve);if(f!==-1){let p=o.indexOf(Ve,f+1);if(p===-1)return{formatted:o.filter(m=>m!==Ve).join("")};let d=o.slice(0,f).join(""),D=o.slice(f+1,p).join(""),h=o.slice(p+1).join("");return{formatted:d+D+h,cursorNodeStart:d.length,cursorNodeText:D}}return{formatted:o.join("")}}function xi(e,r,t){let{node:n}=e,a=[],u=e.map(()=>e.map(({index:f})=>{let p=wi(t(),r).formatted,d=fr(p);return a[f]=Math.max(a[f]??3,d),{text:p,width:d}},"children"),"children"),i=s(!1);if(r.proseWrap!=="never")return[ir,i];let o=s(!0);return[ir,Me(Qn(o,i))];function s(f){return qr(ur,[c(u[0],f),l(f),...u.slice(1).map(p=>c(p,f))].map(p=>`| ${p.join(" | ")} |`))}function l(f){return a.map((p,d)=>{let D=n.align[d],h=D==="center"||D==="left"?":":"-",m=D==="center"||D==="right"?":":"-",F=f?"-":"-".repeat(p-2);return`${h}${F}${m}`})}function c(f,p){return f.map(({text:d,width:D},h)=>{if(p)return d;let m=a[h]-D,F=n.align[h],y=0;F==="right"?y=m:F==="center"&&(y=Math.floor(m/2));let E=m-y;return`${" ".repeat(y)}${d}${" ".repeat(E)}`})}}function ki(e,r,t){let n=e.map(t,"children");return Wl(n)}function Wl(e){let r=[""];return function t(n){for(let a of n){let u=Y(a);if(u===H){t(a);continue}let i=a,o=[];u===X&&([i,...o]=a.parts),r.push([r.pop(),i],...o)}}(e),ze(r)}var Q,wt=class{constructor(r){jn(this,Q);$n(this,Q,new Set(r))}getLeadingWhitespaceCount(r){let t=ce(this,Q),n=0;for(let a=0;a<r.length&&t.has(r.charAt(a));a++)n++;return n}getTrailingWhitespaceCount(r){let t=ce(this,Q),n=0;for(let a=r.length-1;a>=0&&t.has(r.charAt(a));a--)n++;return n}getLeadingWhitespace(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(0,t)}getTrailingWhitespace(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(r.length-t)}hasLeadingWhitespace(r){return ce(this,Q).has(r.charAt(0))}hasTrailingWhitespace(r){return ce(this,Q).has(z(!1,r,-1))}trimStart(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(t)}trimEnd(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(0,r.length-t)}trim(r){return this.trimEnd(this.trimStart(r))}split(r,t=!1){let n=`[${le([...ce(this,Q)].join(""))}]+`,a=new RegExp(t?`(${n})`:n,"u");return r.split(a)}hasWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>t.has(n))}hasNonWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>!t.has(n))}isWhitespaceOnly(r){let t=ce(this,Q);return Array.prototype.every.call(r,n=>t.has(n))}};Q=new WeakMap;var Bi=wt;var Hl=[" ",`
`,"\f","\r"," "],Kl=new Bi(Hl),xt=Kl;var Jl=/^.$/su;function Xl(e,r){return e=Ql(e,r),e=ef(e),e=tf(e,r),e=nf(e,r),e=rf(e),e}function Ql(e,r){return Ae(e,t=>t.type!=="text"||t.value==="*"||t.value==="_"||!Jl.test(t.value)||t.position.end.offset-t.position.start.offset===t.value.length?t:{...t,value:r.originalText.slice(t.position.start.offset,t.position.end.offset)})}function Zl(e,r,t){return Ae(e,n=>{if(!n.children)return n;let a=n.children.reduce((u,i)=>{let o=z(!1,u,-1);return o&&r(o,i)?u.splice(-1,1,t(o,i)):u.push(i),u},[]);return{...n,children:a}})}function ef(e){return Zl(e,(r,t)=>r.type==="text"&&t.type==="text",(r,t)=>({type:"text",value:r.value+t.value,position:{start:r.position.start,end:t.position.end}}))}function rf(e){return Ae(e,(r,t,[n])=>{if(r.type!=="text")return r;let{value:a}=r;return n.type==="paragraph"&&(t===0&&(a=xt.trimStart(a)),t===n.children.length-1&&(a=xt.trimEnd(a))),{type:"sentence",position:r.position,children:Ir(a)}})}function tf(e,r){return Ae(e,(t,n,a)=>{if(t.type==="code"){let u=/^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=u,u)for(let i=0;i<a.length;i++){let o=a[i];if(o.hasIndentedCodeblock)break;o.type==="list"&&(o.hasIndentedCodeblock=!0)}}return t})}function nf(e,r){return Ae(e,(a,u,i)=>{if(a.type==="list"&&a.children.length>0){for(let o=0;o<i.length;o++){let s=i[o];if(s.type==="list"&&!s.isAligned)return a.isAligned=!1,a}a.isAligned=n(a)}return a});function t(a){return a.children.length===0?-1:a.children[0].position.start.column-1}function n(a){if(!a.ordered)return!0;let[u,i]=a.children;if(Ye(u,r).leadingSpaces.length>1)return!0;let s=t(u);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=t(i);return s!==l?!1:s%r.tabWidth===0?!0:Ye(i,r).leadingSpaces.length>1}}var Ti=Xl;function qi(e,r){let t=[""];return e.each(()=>{let{node:n}=e,a=r();switch(n.type){case"whitespace":if(Y(a)!==G){t.push(a,"");break}default:t.push([t.pop(),a])}},"children"),ze(t)}var uf=new Set(["heading","tableCell","link","wikiLink"]),_i=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function af({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:t}=e;for(let n=1;n<t.length-1;++n){let a=t[n];if(a.type==="whitespace"&&(a.value===" "||a.value==="")){let u=t[n-1].kind,i=t[n+1].kind;(u===ie&&i===Ge||u===Ge&&i===ie)&&++r[a.value]}}e.usesCJSpaces=r[" "]>r[""]}return e.usesCJSpaces}function of(e,r){if(r)return!0;let{previous:t,next:n}=e;if(!t||!n)return!0;let a=t.kind,u=n.kind;return Si(a)&&Si(u)||a===Pe&&u===ie||u===Pe&&a===ie?!0:a===sr||u===sr||a===ie&&u===ie?!1:_i.has(n.value[0])||_i.has(z(!1,t.value,-1))?!0:t.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:af(e)}function Si(e){return e===Ge||e===Pe}function sf(e,r,t,n){if(t!=="always"||e.hasAncestor(i=>uf.has(i.type)))return!1;if(n)return r!=="";let{previous:a,next:u}=e;return!a||!u?!0:r===""?!1:a.kind===Pe&&u.kind===ie||u.kind===Pe&&a.kind===ie?!0:!(a.isCJ||u.isCJ)}function kt(e,r,t,n){if(t==="preserve"&&r===`
`)return P;let a=r===" "||r===`
`&&of(e,n);return sf(e,r,t,n)?a?_r:Sr:a?" ":""}var cf=new Set(["listItem","definition"]);function lf(e,r,t){var a,u;let{node:n}=e;if(mf(e)){let i=[""],o=Ir(r.originalText.slice(n.position.start.offset,n.position.end.offset));for(let s of o){if(s.type==="word"){i.push([i.pop(),s.value]);continue}let l=kt(e,s.value,r.proseWrap,!0);if(Y(l)===G){i.push([i.pop(),l]);continue}i.push(l,"")}return ze(i)}switch(n.type){case"front-matter":return r.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[pf(e,r,t),P];case"paragraph":return ki(e,r,t);case"sentence":return qi(e,t);case"word":{let i=N(!1,N(!1,n.value,"*",String.raw`\*`),new RegExp([`(^|${Se.source})(_+)`,`(_+)(${Se.source}|$)`].join("|"),"gu"),(l,c,f,p,d)=>N(!1,f?`${c}${f}`:`${p}${d}`,"_",String.raw`\_`)),o=(l,c,f)=>l.type==="sentence"&&f===0,s=(l,c,f)=>Et(l.children[f-1]);return i!==n.value&&(e.match(void 0,o,s)||e.match(void 0,o,(l,c,f)=>l.type==="emphasis"&&f===0,s))&&(i=i.replace(/^(\\?[*_])+/u,l=>N(!1,l,"\\",""))),i}case"whitespace":{let{next:i}=e,o=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":r.proseWrap;return kt(e,n.value,o)}case"emphasis":{let i;if(Et(n.children[0]))i=r.originalText[n.position.start.offset];else{let{previous:o,next:s}=e;i=(o==null?void 0:o.type)==="sentence"&&((a=z(!1,o.children,-1))==null?void 0:a.type)==="word"&&!z(!1,o.children,-1).hasTrailingPunctuation||(s==null?void 0:s.type)==="sentence"&&((u=s.children[0])==null?void 0:u.type)==="word"&&!s.children[0].hasLeadingPunctuation||e.hasAncestor(c=>c.type==="emphasis")?"*":"_"}return[i,$(e,r,t),i]}case"strong":return["**",$(e,r,t),"**"];case"delete":return["~~",$(e,r,t),"~~"];case"inlineCode":{let i=r.proseWrap==="preserve"?n.value:N(!1,n.value,`
`," "),o=Zn(i,"`"),s="`".repeat(o||1),l=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[s,l,i,l,s]}case"wikiLink":{let i="";return r.proseWrap==="preserve"?i=n.value:i=N(!1,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(r.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&r.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",$(e,r,t),"](",Bt(n.url,")"),Ur(n.title,r),")"];default:return r.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",Bt(n.url,")"),Ur(n.title,r),")"];case"blockquote":return["> ",ye("> ",$(e,r,t))];case"heading":return["#".repeat(n.depth)+" ",$(e,r,t)];case"code":{if(n.isIndented){let s=" ".repeat(4);return ye(s,[s,be(n.value,P)])}let i=r.__inJsTemplate?"~":"`",o=i.repeat(Math.max(3,Or(n.value,i)+1));return[o,n.lang||"",n.meta?" "+n.meta:"",P,be(Nr(n,r.originalText),P),P,o]}case"html":{let{parent:i,isLast:o}=e,s=i.type==="root"&&o?n.value.trimEnd():n.value,l=/^<!--.*-->$/su.test(s);return be(s,l?P:_e(tr))}case"list":{let i=Li(n,e.parent),o=hi(n,r);return $(e,r,t,{processor(s){let l=f(),c=s.node;if(c.children.length===2&&c.children[1].type==="html"&&c.children[0].position.start.column!==c.children[1].position.start.column)return[l,Oi(s,r,t,l)];return[l,ye(" ".repeat(l.length),Oi(s,r,t,l))];function f(){let p=n.ordered?(s.isFirst?n.start:o?1:n.start+s.index)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return(n.isAligned||n.hasIndentedCodeblock)&&n.ordered?ff(p,r):p}}})}case"thematicBreak":{let{ancestors:i}=e,o=i.findIndex(l=>l.type==="list");return o===-1?"---":Li(i[o],i[o+1])%2===0?"***":"---"}case"linkReference":return["[",$(e,r,t),"]",n.referenceType==="full"?Tt(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",Tt(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=r.proseWrap==="always"?_r:" ";return Me([Tt(n),":",nr([i,Bt(n.url),n.title===null?"":[i,Ur(n.title,r,!1)]])])}case"footnote":return["[^",$(e,r,t),"]"];case"footnoteReference":return Ri(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[Ri(n),": ",i?$(e,r,t):Me([ye(" ".repeat(4),$(e,r,t,{processor:({isFirst:o})=>o?Me([Sr,t()]):t()}))])]}case"table":return xi(e,r,t);case"tableCell":return $(e,r,t);case"break":return/\s/u.test(r.originalText[n.position.start.offset])?[" ",_e(tr)]:["\\",P];case"liquidNode":return be(n.value,P);case"import":case"export":case"jsx":return n.value;case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",P,n.value?[be(n.value,P),P]:"","$$"];case"inlineMath":return r.originalText.slice(Oe(n),Le(n));case"tableRow":case"listItem":case"text":default:throw new ti(n,"Markdown")}}function Oi(e,r,t,n){let{node:a}=e,u=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[u,$(e,r,t,{processor({node:i,isFirst:o}){if(o&&i.type!=="list")return ye(" ".repeat(u.length),t());let s=" ".repeat(gf(r.tabWidth-n.length,0,3));return[s,ye(s,t())]}})]}function ff(e,r){let t=n();return e+" ".repeat(t>=4?0:t);function n(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function Li(e,r){return Df(e,r,t=>t.ordered===e.ordered)}function Df(e,r,t){let n=-1;for(let a of r.children)if(a.type===e.type&&t(a)?n++:n=-1,a===e)return n}function pf(e,r,t){let n=[],a=null,{children:u}=e.node;for(let[i,o]of u.entries())switch(qt(o)){case"start":a===null&&(a={index:i,offset:o.position.end.offset});break;case"end":a!==null&&(n.push({start:a,end:{index:i,offset:o.position.start.offset}}),a=null);break;default:break}return $(e,r,t,{processor({index:i}){if(n.length>0){let o=n[0];if(i===o.start.index)return[Pi(u[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),Pi(u[o.end.index])];if(o.start.index<i&&i<o.end.index)return!1;if(i===o.end.index)return n.shift(),!1}return t()}})}function $(e,r,t,n={}){let{processor:a=t}=n,u=[];return e.each(()=>{let i=a(e);i!==!1&&(u.length>0&&hf(e)&&(u.push(P),(df(e,r)||Ni(e))&&u.push(P),Ni(e)&&u.push(P)),u.push(i))},"children"),u}function Pi(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function qt(e){let r;if(e.type==="html")r=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);else{let t;e.type==="esComment"?t=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(t=e.children[0]),t&&(r=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return r?r[1]||"next":!1}function hf({node:e,parent:r}){let t=vt.has(e.type),n=e.type==="html"&&Pr.has(r.type);return!t&&!n}function Ii(e,r){retLine truncated
`)}function df({node:e,previous:r,parent:t},n){if(Ii(r,n))return!0;let i=r.type===e.type&&cf.has(e.type),o=t.type==="listItem"&&!Ii(t,n),s=qt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&t.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(i||o||s||l||c)}function Ni({node:e,previous:r}){let t=r.type==="list",n=e.type==="code"&&e.isIndented;return t&&n}function mf(e){let r=e.findAncestor(t=>t.type==="linkReference"||t.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}var Ff=(e,r)=>{for(let t of r)e=N(!1,e,t,encodeURIComponent(t));return e};function Bt(e,r=[]){let t=[" ",...Array.isArray(r)?r:[r]];return new RegExp(t.map(n=>le(n)).join("|"),"u").test(e)?`<${Ff(e,"<>")}>`:e}function Ur(e,r,t=!0){if(!e)return"";if(t)return" "+Ur(e,r,!1);if(e=N(!1,e,/\\(?=["')])/gu,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=ri(e,r.singleQuote);return e=N(!1,e,"\\","\\\\"),e=N(!1,e,n,`\\${n}`),`${n}${e}${n}`}function gf(e,r,t){return Math.max(r,Math.min(e,t))}function vf(e){return e.index>0&&qt(e.previous)==="next"}function Tt(e){return`[${(0,Ui.default)(e.label)}]`}function Ri(e){return`[^${e.label}]`}var Ef={preprocess:Ti,print:lf,embed:di,massageAstNode:ci,hasPrettierIgnore:vf,insertPragma:ai,getVisitorKeys:gi},Mi=Ef;var zi=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var _t={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Cf={proseWrap:_t.proseWrap,singleQuote:_t.singleQuote},Yi=Cf;var Mn={};Yn(Mn,{markdown:()=>Nm,mdx:()=>Rm,remark:()=>Nm});var il=Ue(Vi(),1),ul=Ue(iu(),1),al=Ue(Zs(),1),ol=Ue($c(),1);var Tm=/^import\s/u,qm=/^export\s/u,Wc=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,Hc=/<!---->|<!---?[^>-](?:-?[^-])*-->/u,_m=/^\{\s*\/\*(.*)\*\/\s*\}/u,Sm=`
`,Kc=e=>Tm.test(e),Un=e=>qm.test(e),Jc=(e,r)=>{let t=r.indexOf(Sm),n=r.slice(0,t);if(Un(n)||Kc(n))return e(n)({type:Un(n)?"export":"import",value:n})},Xc=(e,r)=>{let t=_m.exec(r);if(t)return e(t[0])({type:"esComment",value:t[1].trim()})};Jc.locator=e=>Un(e)||Kc(e)?-1:1;Xc.locator=(e,r)=>e.indexOf("{",r);var Qc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:t,inlineTokenizers:n,inlineMethods:a}=e.prototype;r.esSyntax=Jc,n.esComment=Xc,t.splice(t.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};var Om=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(t,n){let a=or(n);if(a.frontMatter)return t(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Zc=Om;function Lm(){return e=>Ae(e,(r,t,[n])=>r.type!=="html"||Hc.test(r.value)||Pr.has(n.type)?r:{...r,type:"jsx"})}var el=Lm;var Pm=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=t;function t(n,a){let u=a.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(u)return n(u[0])({type:"liquidNode",value:u[0]})}t.locator=function(n,a){return n.indexOf("{",a)}},rl=Pm;var Im=function(){let e="wikiLink",r=/^\[\[(?<linkContents>.+?)\]\]/su,t=this.Parser.prototype,n=t.inlineMethods;n.splice(n.indexOf("link"),0,e),t.inlineTokenizers.wikiLink=a;function a(u,i){let o=r.exec(i);if(o){let s=o.groups.linkContents.trim();return u(o[0])({type:e,value:s})}}a.locator=function(u,i){return u.indexOf("[",i)}},tl=Im;function sl({isMDX:e}){return r=>{let t=(0,ol.default)().use(al.default,{commonmark:!0,...e&&{blocks:[Wc]}}).use(il.default).use(Zc).use(ul.default).use(e?Qc:nl).use(rl).use(e?el:nl).use(tl);return t.run(t.parse(r))}}function nl(){}var cl={astFormat:"mdast",hasPragma:ui,locStart:Oe,locEnd:Le},Nm={...cl,parse:sl({isMDX:!1})},Rm={...cl,parse:sl({isMDX:!0})};var Um={mdast:Mi};return dl(Mm);});
+63
View File
@@ -0,0 +1,63 @@
var ll=Object.create;var Dt=Object.defineProperty;var fl=Object.getOwnPropertyDescriptor;var Dl=Object.getOwnPropertyNames;var pl=Object.getPrototypeOf,hl=Object.prototype.hasOwnProperty;var Yn=e=>{throw TypeError(e)};var C=(e,r)=>()=>(r||e((r={exports:{}}).exports,r),r.exports),Gn=(e,r)=>{for(var t in r)Dt(e,t,{get:r[t],enumerable:!0})},dl=(e,r,t,n)=>{if(r&&typeof r=="object"||typeof r=="function")for(let a of Dl(r))!hl.call(e,a)&&a!==t&&Dt(e,a,{get:()=>r[a],enumerable:!(n=fl(r,a))||n.enumerable});return e};var Ue=(e,r,t)=>(t=e!=null?ll(pl(e)):{},dl(r||!e||!e.__esModule?Dt(t,"default",{value:e,enumerable:!0}):t,e));var Vn=(e,r,t)=>r.has(e)||Yn("Cannot "+t);var ce=(e,r,t)=>(Vn(e,r,"read from private field"),t?t.call(e):r.get(e)),jn=(e,r,t)=>r.has(e)?Yn("Cannot add the same private member more than once"):r instanceof WeakSet?r.add(e):r.set(e,t),$n=(e,r,t,n)=>(Vn(e,r,"write to private field"),n?n.call(e,t):r.set(e,t),t);var kr=C((Gm,Wn)=>{"use strict";Wn.exports=gl;function gl(e){return String(e).replace(/\s+/g," ")}});var Vi=C((Bv,Gi)=>{"use strict";Gi.exports=xf;var Dr=9,Ur=10,je=32,bf=33,yf=58,$e=91,Af=92,St=93,pr=94,Mr=96,zr=4,wf=1024;function xf(e){var r=this.Parser,t=this.Compiler;kf(r)&&Tf(r,e),Bf(t)&&qf(t)}function kf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Bf(e){return!!(e&&e.prototype&&e.prototype.visitors)}function Tf(e,r){for(var t=r||{},n=e.prototype,a=n.blockTokenizers,u=n.inlineTokenizers,i=n.blockMethods,o=n.inlineMethods,s=a.definition,l=u.reference,c=[],f=-1,p=i.length,d;++f<p;)d=i[f],!(d==="newline"||d==="indentedCode"||d==="paragraph"||d==="footnoteDefinition")&&c.push([d]);c.push(["footnoteDefinition"]),t.inlineNotes&&(Ot(o,"reference","inlineNote"),u.inlineNote=m),Ot(i,"definition","footnoteDefinition"),Ot(o,"reference","footnoteCall"),a.definition=y,a.footnoteDefinition=D,u.footnoteCall=h,u.reference=F,n.interruptFootnoteDefinition=c,F.locator=l.locator,h.locator=E,m.locator=B;function D(b,g,A){for(var w=this,v=w.interruptFootnoteDefinition,x=w.offset,k=g.length+1,T=0,q=[],R,O,S,_,L,Be,W,I,ee,Z,ve,Ee,M;T<k&&(_=g.charCodeAt(T),!(_!==Dr&&_!==je));)T++;if(g.charCodeAt(T++)===$e&&g.charCodeAt(T++)===pr){for(O=T;T<k;){if(_=g.charCodeAt(T),_!==_||_===Ur||_===Dr||_===je)return;if(_===St){S=T,T++;break}T++}if(!(S===void 0||O===S||g.charCodeAt(T++)!==yf)){if(A)return!0;for(R=g.slice(O,S),L=b.now(),ee=0,Z=0,ve=T,Ee=[];T<k;){if(_=g.charCodeAt(T),_!==_||_===Ur)M={start:ee,contentStart:ve||T,contentEnd:T,end:T},Ee.push(M),_===Ur&&(ee=T+1,Z=0,ve=void 0,M.end=ee);else if(Z!==void 0)if(_===je||_===Dr)Z+=_===je?1:zr-Z%zr,Z>zr&&(Z=void 0,ve=T);else{if(Z<zr&&M&&(M.contentStart===M.contentEnd||_f(v,a,w,[b,g.slice(T,wf),!0])))break;Z=void 0,ve=T}T++}for(T=-1,k=Ee.length;k>0&&(M=Ee[k-1],M.contentStart===M.contentEnd);)k--;for(Be=b(g.slice(0,M.contentEnd));++T<k;)M=Ee[T],x[L.line+T]=(x[L.line+T]||0)+(M.contentStart-M.start),q.push(g.slice(M.contentStart,M.end));return W=w.enterBlock(),I=w.tokenizeBlock(q.join(""),L),W(),Be({type:"footnoteDefinition",identifier:R.toLowerCase(),label:R,children:I})}}}function h(b,g,A){var w=g.length+1,v=0,x,k,T,q;if(g.charCodeAt(v++)===$e&&g.charCodeAt(v++)===pr){for(k=v;v<w;){if(q=g.charCodeAt(v),q!==q||q===Ur||q===Dr||q===je)return;if(q===St){T=v,v++;break}v++}if(!(T===void 0||k===T))return A?!0:(x=g.slice(k,T),b(g.slice(0,v))({type:"footnoteReference",identifier:x.toLowerCase(),label:x}))}}function m(b,g,A){var w=this,v=g.length+1,x=0,k=0,T,q,R,O,S,_,L;if(g.charCodeAt(x++)===pr&&g.charCodeAt(x++)===$e){for(R=x;x<v;){if(q=g.charCodeAt(x),q!==q)return;if(_===void 0)if(q===Af)x+=2;else if(q===$e)k++,x++;else if(q===St)if(k===0){O=x,x++;break}else k--,x++;else if(q===Mr){for(S=x,_=1;g.charCodeAt(S+_)===Mr;)_++;x+=_}else x++;else if(q===Mr){for(S=x,L=1;g.charCodeAt(S+L)===Mr;)L++;x+=L,_===L&&(_=void 0),L=void 0}else x++}if(O!==void 0)return A?!0:(T=b.now(),T.column+=2,T.offset+=2,b(g.slice(0,x))({type:"footnote",children:w.tokenizeInline(g.slice(R,O),T)}))}}function F(b,g,A){var w=0;if(g.charCodeAt(w)===bf&&w++,g.charCodeAt(w)===$e&&g.charCodeAt(w+1)!==pr)return l.call(this,b,g,A)}function y(b,g,A){for(var w=0,v=g.charCodeAt(w);v===je||v===Dr;)v=g.charCodeAt(++w);if(v===$e&&g.charCodeAt(w+1)!==pr)return s.call(this,b,g,A)}function E(b,g){return b.indexOf("[",g)}function B(b,g){return b.indexOf("^[",g)}}function qf(e){var r=e.prototype.visitors,t=" ";r.footnote=n,r.footnoteReference=a,r.footnoteDefinition=u;function n(i){return"^["+this.all(i).join("")+"]"}function a(i){return"[^"+(i.label||i.identifier)+"]"}function u(i){for(var o=this.all(i).join(`
`).split(`
`),s=0,l=o.length,c;++s<l;)c=o[s],c!==""&&(o[s]=t+c);return"[^"+(i.label||i.identifier)+"]: "+o.join(`
`)}}function Ot(e,r,t){e.splice(e.indexOf(r),0,t)}function _f(e,r,t,n){for(var a=e.length,u=-1;++u<a;)if(r[e[u][0]].apply(t,n))return!0;return!1}});var Pt=C(Lt=>{Lt.isRemarkParser=Sf;Lt.isRemarkCompiler=Of;function Sf(e){return!!(e&&e.prototype&&e.prototype.blockTokenizers)}function Of(e){return!!(e&&e.prototype&&e.prototype.visitors)}});var Xi=C((qv,Ji)=>{var ji=Pt();Ji.exports=Nf;var $i=9,Wi=32,Yr=36,Lf=48,Pf=57,Hi=92,If=["math","math-inline"],Ki="math-display";function Nf(e){let r=this.Parser,t=this.Compiler;ji.isRemarkParser(r)&&Rf(r,e),ji.isRemarkCompiler(t)&&Uf(t,e)}function Rf(e,r){let t=e.prototype,n=t.inlineMethods;u.locator=a,t.inlineTokenizers.math=u,n.splice(n.indexOf("text"),0,"math");function a(i,o){return i.indexOf("$",o)}function u(i,o,s){let l=o.length,c=!1,f=!1,p=0,d,D,h,m,F,y,E;if(o.charCodeAt(p)===Hi&&(f=!0,p++),o.charCodeAt(p)===Yr){if(p++,f)return s?!0:i(o.slice(0,p))({type:"text",value:"$"});if(o.charCodeAt(p)===Yr&&(c=!0,p++),h=o.charCodeAt(p),!(h===Wi||h===$i)){for(m=p;p<l;){if(D=h,h=o.charCodeAt(p+1),D===Yr){if(d=o.charCodeAt(p-1),d!==Wi&&d!==$i&&(h!==h||h<Lf||h>Pf)&&(!c||h===Yr)){F=p-1,p++,c&&p++,y=p;break}}else D===Hi&&(p++,h=o.charCodeAt(p+1));p++}if(y!==void 0)return s?!0:(E=o.slice(m,F+1),i(o.slice(0,y))({type:"inlineMath",value:E,data:{hName:"span",hProperties:{className:If.concat(c&&r.inlineMathDouble?[Ki]:[])},hChildren:[{type:"text",value:E}]}}))}}}}function Uf(e){let r=e.prototype;r.visitors.inlineMath=t;function t(n){let a="$";return(n.data&&n.data.hProperties&&n.data.hProperties.className||[]).includes(Ki)&&(a="$$"),a+n.value+a}}});var tu=C((_v,ru)=>{var Qi=Pt();ru.exports=Gf;var Zi=10,hr=32,It=36,eu=`
`,Mf="$",zf=2,Yf=["math","math-display"];function Gf(){let e=this.Parser,r=this.Compiler;Qi.isRemarkParser(e)&&Vf(e),Qi.isRemarkCompiler(r)&&jf(r)}function Vf(e){let r=e.prototype,t=r.blockMethods,n=r.interruptParagraph,a=r.interruptList,u=r.interruptBlockquote;r.blockTokenizers.math=i,t.splice(t.indexOf("fencedCode")+1,0,"math"),n.splice(n.indexOf("fencedCode")+1,0,["math"]),a.splice(a.indexOf("fencedCode")+1,0,["math"]),u.splice(u.indexOf("fencedCode")+1,0,["math"]);function i(o,s,l){var c=s.length,f=0;let p,d,D,h,m,F,y,E,B,b,g;for(;f<c&&s.charCodeAt(f)===hr;)f++;for(m=f;f<c&&s.charCodeAt(f)===It;)f++;if(F=f-m,!(F<zf)){for(;f<c&&s.charCodeAt(f)===hr;)f++;for(y=f;f<c;){if(p=s.charCodeAt(f),p===It)return;if(p===Zi)break;f++}if(s.charCodeAt(f)===Zi){if(l)return!0;for(d=[],y!==f&&d.push(s.slice(y,f)),f++,D=s.indexOf(eu,f+1),D=D===-1?c:D;f<c;){for(E=!1,b=f,g=D,h=D,B=0;h>b&&s.charCodeAt(h-1)===hr;)h--;for(;h>b&&s.charCodeAt(h-1)===It;)B++,h--;for(F<=B&&s.indexOf(Mf,b)===h&&(E=!0,g=h);b<=g&&b-f<m&&s.charCodeAt(b)===hr;)b++;if(E)for(;g>b&&s.charCodeAt(g-1)===hr;)g--;if((!E||b!==g)&&d.push(s.slice(b,g)),E)break;f=D+1,D=s.indexOf(eu,f+1),D=D===-1?c:D}return d=d.join(`
`),o(s.slice(0,D))({type:"math",value:d,data:{hName:"div",hProperties:{className:Yf.concat()},hChildren:[{type:"text",value:d}]}})}}}}function jf(e){let r=e.prototype;r.visitors.math=t;function t(n){return`$$
`+n.value+`
$$`}}});var iu=C((Sv,nu)=>{var $f=Xi(),Wf=tu();nu.exports=Hf;function Hf(e){var r=e||{};Wf.call(this,r),$f.call(this,r)}});var Ie=C((Ov,uu)=>{uu.exports=Jf;var Kf=Object.prototype.hasOwnProperty;function Jf(){for(var e={},r=0;r<arguments.length;r++){var t=arguments[r];for(var n in t)Kf.call(t,n)&&(e[n]=t[n])}return e}});var au=C((Lv,Nt)=>{typeof Object.create=="function"?Nt.exports=function(r,t){t&&(r.super_=t,r.prototype=Object.create(t.prototype,{constructor:{value:r,enumerable:!1,writable:!0,configurable:!0}}))}:Nt.exports=function(r,t){if(t){r.super_=t;var n=function(){};n.prototype=t.prototype,r.prototype=new n,r.prototype.constructor=r}}});var cu=C((Pv,su)=>{"use strict";var Xf=Ie(),ou=au();su.exports=Qf;function Qf(e){var r,t,n;ou(u,e),ou(a,u),r=u.prototype;for(t in r)n=r[t],n&&typeof n=="object"&&(r[t]="concat"in n?n.concat():Xf(n));return u;function a(i){return e.apply(this,i)}function u(){return this instanceof u?e.apply(this,arguments):new a(arguments)}}});var fu=C((Iv,lu)=>{"use strict";lu.exports=Zf;function Zf(e,r,t){return n;function n(){var a=t||this,u=a[e];return a[e]=!r,i;function i(){a[e]=u}}}});var pu=C((Nv,Du)=>{"use strict";Du.exports=eD;function eD(e){for(var r=String(e),t=[],n=/\r?\n|\r/g;n.exec(r);)t.push(n.lastIndex);return t.push(r.length+1),{toPoint:a,toPosition:a,toOffset:u};function a(i){var o=-1;if(i>-1&&i<t[t.length-1]){for(;++o<t.length;)if(t[o]>i)return{line:o+1,column:i-(t[o-1]||0)+1,offset:i}}return{}}function u(i){var o=i&&i.line,s=i&&i.column,l;return!isNaN(o)&&!isNaN(s)&&o-1 in t&&(l=(t[o-2]||0)+s-1||0),l>-1&&l<t[t.length-1]?l:-1}}});var du=C((Rv,hu)=>{"use strict";hu.exports=rD;var Rt="\\";function rD(e,r){return t;function t(n){for(var a=0,u=n.indexOf(Rt),i=e[r],o=[],s;u!==-1;)o.push(n.slice(a,u)),a=u+1,s=n.charAt(a),(!s||i.indexOf(s)===-1)&&o.push(Rt),u=n.indexOf(Rt,a+1);return o.push(n.slice(a)),o.join("")}}});var mu=C((Uv,tD)=>{tD.exports={AElig:"\xC6",AMP:"&",Aacute:"\xC1",Acirc:"\xC2",Agrave:"\xC0",Aring:"\xC5",Atilde:"\xC3",Auml:"\xC4",COPY:"\xA9",Ccedil:"\xC7",ETH:"\xD0",Eacute:"\xC9",Ecirc:"\xCA",Egrave:"\xC8",Euml:"\xCB",GT:">",Iacute:"\xCD",Icirc:"\xCE",Igrave:"\xCC",Iuml:"\xCF",LT:"<",Ntilde:"\xD1",Oacute:"\xD3",Ocirc:"\xD4",Ograve:"\xD2",Oslash:"\xD8",Otilde:"\xD5",Ouml:"\xD6",QUOT:'"',REG:"\xAE",THORN:"\xDE",Uacute:"\xDA",Ucirc:"\xDB",Ugrave:"\xD9",Uuml:"\xDC",Yacute:"\xDD",aacute:"\xE1",acirc:"\xE2",acute:"\xB4",aelig:"\xE6",agrave:"\xE0",amp:"&",aring:"\xE5",atilde:"\xE3",auml:"\xE4",brvbar:"\xA6",ccedil:"\xE7",cedil:"\xB8",cent:"\xA2",copy:"\xA9",curren:"\xA4",deg:"\xB0",divide:"\xF7",eacute:"\xE9",ecirc:"\xEA",egrave:"\xE8",eth:"\xF0",euml:"\xEB",frac12:"\xBD",frac14:"\xBC",frac34:"\xBE",gt:">",iacute:"\xED",icirc:"\xEE",iexcl:"\xA1",igrave:"\xEC",iquest:"\xBF",iuml:"\xEF",laquo:"\xAB",lt:"<",macr:"\xAF",micro:"\xB5",middot:"\xB7",nbsp:"\xA0",not:"\xAC",ntilde:"\xF1",oacute:"\xF3",ocirc:"\xF4",ograve:"\xF2",ordf:"\xAA",ordm:"\xBA",oslash:"\xF8",otilde:"\xF5",ouml:"\xF6",para:"\xB6",plusmn:"\xB1",pound:"\xA3",quot:'"',raquo:"\xBB",reg:"\xAE",sect:"\xA7",shy:"\xAD",sup1:"\xB9",sup2:"\xB2",sup3:"\xB3",szlig:"\xDF",thorn:"\xFE",times:"\xD7",uacute:"\xFA",ucirc:"\xFB",ugrave:"\xF9",uml:"\xA8",uuml:"\xFC",yacute:"\xFD",yen:"\xA5",yuml:"\xFF"}});var Fu=C((Mv,nD)=>{nD.exports={"0":"\uFFFD","128":"\u20AC","130":"\u201A","131":"\u0192","132":"\u201E","133":"\u2026","134":"\u2020","135":"\u2021","136":"\u02C6","137":"\u2030","138":"\u0160","139":"\u2039","140":"\u0152","142":"\u017D","145":"\u2018","146":"\u2019","147":"\u201C","148":"\u201D","149":"\u2022","150":"\u2013","151":"\u2014","152":"\u02DC","153":"\u2122","154":"\u0161","155":"\u203A","156":"\u0153","158":"\u017E","159":"\u0178"}});var Ne=C((zv,gu)=>{"use strict";gu.exports=iD;function iD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=48&&r<=57}});var Eu=C((Yv,vu)=>{"use strict";vu.exports=uD;function uD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=102||r>=65&&r<=70||r>=48&&r<=57}});var We=C((Gv,Cu)=>{"use strict";Cu.exports=aD;function aD(e){var r=typeof e=="string"?e.charCodeAt(0):e;return r>=97&&r<=122||r>=65&&r<=90}});var yu=C((Vv,bu)=>{"use strict";var oD=We(),sD=Ne();bu.exports=cD;function cD(e){return oD(e)||sD(e)}});var Au=C((jv,lD)=>{lD.exports={AEli:"\xC6",AElig:"\xC6",AM:"&",AMP:"&",Aacut:"\xC1",Aacute:"\xC1",Abreve:"\u0102",Acir:"\xC2",Acirc:"\xC2",Acy:"\u0410",Afr:"\u{1D504}",Agrav:"\xC0",Agrave:"\xC0",Alpha:"\u0391",Amacr:"\u0100",And:"\u2A53",Aogon:"\u0104",Aopf:"\u{1D538}",ApplyFunction:"\u2061",Arin:"\xC5",Aring:"\xC5",Ascr:"\u{1D49C}",Assign:"\u2254",Atild:"\xC3",Atilde:"\xC3",Aum:"\xC4",Auml:"\xC4",Backslash:"\u2216",Barv:"\u2AE7",Barwed:"\u2306",Bcy:"\u0411",Because:"\u2235",Bernoullis:"\u212C",Beta:"\u0392",Bfr:"\u{1D505}",Bopf:"\u{1D539}",Breve:"\u02D8",Bscr:"\u212C",Bumpeq:"\u224E",CHcy:"\u0427",COP:"\xA9",COPY:"\xA9",Cacute:"\u0106",Cap:"\u22D2",CapitalDifferentialD:"\u2145",Cayleys:"\u212D",Ccaron:"\u010C",Ccedi:"\xC7",Ccedil:"\xC7",Ccirc:"\u0108", Line truncated
`,Nfr:"\u{1D511}",NoBreak:"\u2060",NonBreakingSpace:"\xA0",Nopf:"\u2115",Not:"\u2AEC",NotCongruent:"\u2262",NotCupCap:"\u226D",NotDoubleVerticalBar:"\u2226",NotElement:"\u2209",NotEqual:"\u2260",NotEqualTilde:"\u2242\u0338",NotExists:"\u2204",NotGreater:"\u226F",NotGreaterEqual:"\u2271",NotGreaterFullEqual:"\u2267\u0338",NotGreaterGreater:"\u226B\u0338",NotGreaterLess:"\u2279",NotGreaterSlantEqual:"\u2A7E\u0338",NotGreaterTilde:"\u2275",NotHumpDownHump:"\u224E\u0338",NotHumpEqual:"\u224F\u0338",NotLeftTriangle:"\u22EA",NotLeftTriangleBar:"\u29CF\u0338",NotLeftTriangleEqual:"\u22EC",NotLess:"\u226E",NotLessEqual:"\u2270",NotLessGreater:"\u2278",NotLessLess:"\u226A\u0338",NotLessSlantEqual:"\u2A7D\u0338",NotLessTilde:"\u2274",NotNestedGreaterGreater:"\u2AA2\u0338",NotNestedLessLess:"\u2AA1\u0338",NotPrecedes:"\u2280",NotPrecedesEqual:"\u2AAF\u0338",NotPrecedesSlantEqual:"\u22E0",NotReverseElement:"\u220C",NotRightTriangle:"\u22EB",NotRightTriangleBar:"\u29D0\u0338",NotRightTriangleEqual:"\u22ED",NotSquareSubset:"\u228F\u0338",NotSquareSubsetEqual:"\u22E2",NotSquareSuperset:"\u2290\u0338",NotSquareSupersetEqual:"\u22E3",NotSubset:"\u2282\u20D2",NotSubsetEqual:"\u2288",NotSucceeds:"\u2281",NotSucceedsEqual:"\u2AB0\u0338",NotSucceedsSlantEqual:"\u22E1",NotSucceedsTilde:"\u227F\u0338",NotSuperset:"\u2283\u20D2",NotSupersetEqual:"\u2289",NotTilde:"\u2241",NotTildeEqual:"\u2244",NotTildeFullEqual:"\u2247",NotTildeTilde:"\u2249",NotVerticalBar:"\u2224",Nscr:"\u{1D4A9}",Ntild:"\xD1",Ntilde:"\xD1",Nu:"\u039D",OElig:"\u0152",Oacut:"\xD3",Oacute:"\xD3",Ocir:"\xD4",Ocirc:"\xD4",Ocy:"\u041E",Odblac:"\u0150",Ofr:"\u{1D512}",Ograv:"\xD2",Ograve:"\xD2",Omacr:"\u014C",Omega:"\u03A9",Omicron:"\u039F",Oopf:"\u{1D546}",OpenCurlyDoubleQuote:"\u201C",OpenCurlyQuote:"\u2018",Or:"\u2A54",Oscr:"\u{1D4AA}",Oslas:"\xD8",Oslash:"\xD8",Otild:"\xD5",Otilde:"\xD5",Otimes:"\u2A37",Oum:"\xD6",Ouml:"\xD6",OverBar:"\u203E",OverBrace:"\u23DE",OverBracket:"\u23B4",OverParenthesis:"\u23DC",PartialD:"\u2202",Pcy:"\u041F",Pfr:"\u{1D513}",Phi:"\u03A6",Pi:"\u03A0",PlusMinus:"\xB1",Poincareplane:"\u210C",Popf:"\u2119",Pr:"\u2ABB",Precedes:"\u227A",PrecedesEqual:"\u2AAF",PrecedesSlantEqual:"\u227C",PrecedesTilde:"\u227E",Prime:"\u2033",Product:"\u220F",Proportion:"\u2237",Proportional:"\u221D",Pscr:"\u{1D4AB}",Psi:"\u03A8",QUO:'"',QUOT:'"',Qfr:"\u{1D514}",Qopf:"\u211A",Qscr:"\u{1D4AC}",RBarr:"\u2910",RE:"\xAE",REG:"\xAE",Racute:"\u0154",Rang:"\u27EB",Rarr:"\u21A0",Rarrtl:"\u2916",Rcaron:"\u0158",Rcedil:"\u0156",Rcy:"\u0420",Re:"\u211C",ReverseElement:"\u220B",ReverseEquilibrium:"\u21CB",ReverseUpEquilibrium:"\u296F",Rfr:"\u211C",Rho:"\u03A1",RightAngleBracket:"\u27E9",RightArrow:"\u2192",RightArrowBar:"\u21E5",RightArrowLeftArrow:"\u21C4",RightCeiling:"\u2309",RightDoubleBracket:"\u27E7",RightDownTeeVector:"\u295D",RightDownVector:"\u21C2",RightDownVectorBar:"\u2955",RightFloor:"\u230B",RightTee:"\u22A2",RightTeeArrow:"\u21A6",RightTeeVector:"\u295B",RightTriangle:"\u22B3",RightTriangleBar:"\u29D0",RightTriangleEqual:"\u22B5",RightUpDownVector:"\u294F",RightUpTeeVector:"\u295C",RightUpVector:"\u21BE",RightUpVectorBar:"\u2954",RightVector:"\u21C0",RightVectorBar:"\u2953",Rightarrow:"\u21D2",Ropf:"\u211D",RoundImplies:"\u2970",Rrightarrow:"\u21DB",Rscr:"\u211B",Rsh:"\u21B1",RuleDelayed:"\u29F4",SHCHcy:"\u0429",SHcy:"\u0428",SOFTcy:"\u042C",Sacute:"\u015A",Sc:"\u2ABC",Scaron:"\u0160",Scedil:"\u015E",Scirc:"\u015C",Scy:"\u0421",Sfr:"\u{1D516}",ShortDownArrow:"\u2193",ShortLeftArrow:"\u2190",ShortRightArrow:"\u2192",ShortUpArrow:"\u2191",Sigma:"\u03A3",SmallCircle:"\u2218",Sopf:"\u{1D54A}",Sqrt:"\u221A",Square:"\u25A1",SquareIntersection:"\u2293",SquareSubset:"\u228F",SquareSubsetEqual:"\u2291",SquareSuperset:"\u2290",SquareSupersetEqual:"\u2292",SquareUnion:"\u2294",Sscr:"\u{1D4AE}",Star:"\u22C6",Sub:"\u22D0",Subset:"\u22D0",SubsetEqual:"\u2286",Succeeds:"\u227B",SucceedsEqual:"\u2AB0",SucceedsSlantEqual:"\u227D",SucceedsTilde:"\u227F",SuchThat:"\u220B",Sum:"\u2211",Sup:"\u22D1",Superset:"\u2283",SupersetEqual:"\u2287",Supset:"\u22D1",THOR:"\xDE",THORN:"\xDE",TRADE:"\u2122",TSHcy:"\u040B",TScy:"\u0426",Tab:" ",Tau:"\u03A4",Tcaron:"\u0164",Tcedil:"\u0162",Tcy:"\u0422",Tfr:"\u{1D517}",Therefore:"\u2234",Theta:"\u0398",ThickSpace:"\u205F\u200A",ThinSpace:"\u2009",Tilde:"\u223C",TildeEqual:"\u2243",TildeFullEqual:"\u2245",TildeTilde:"\u2248",Topf:"\u{1D54B}",TripleDot:"\u20DB",Tscr:"\u{1D4AF}",Tstrok:"\u0166",Uacut:"\xDA",Uacute:"\xDA",Uarr:"\u219F",Uarrocir:"\u2949",Ubrcy:"\u040E",Ubreve:"\u016C",Ucir:"\xDB",Ucirc:"\xDB",Ucy:"\u0423",Udblac:"\u0170",Ufr:"\u{1D518}",Ugrav:"\xD9",Ugrave:"\xD9",Umacr:"\u016A",UnderBar:"_",UnderBrace:"\u23DF",UnderBracket:"\u23B5",UnderParenthesis:"\u23DD",Union:"\u22C3",UnionPlus:"\u228E",Uogon:"\u0172",Uopf:"\u{1D54C}",UpArrow:"\u2191",UpArrowBar:"\u2912",UpArrowDownArrow:"\u21C5",UpDownArrow:"\u2195",UpEquilibrium:"\u296E",UpTee:"\u22A5",UpTeeArrow:"\u21A5",Uparrow:"\u21D1",Updownarrow:"\u21D5",UpperLeftArrow:"\u2196",UpperRi Line truncated
`);k!==-1;)l++,x=k,k=v.indexOf(`
`,k+1);x===-1?c+=v.length:c=v.length-x,l in u&&(x!==-1?c+=u[l]:c<=u[l]&&(c=u[l]+1))}function y(){var v=[],x=l+1;return function(){for(var k=l+1;x<k;)v.push((u[x]||0)+1),x++;return v}}function E(){var v={line:l,column:c};return v.offset=a.toOffset(v),v}function B(v){this.start=v,this.end=E()}function b(v){t.slice(0,v.length)!==v&&a.file.fail(new Error("Incorrectly eaten value: please report this warning on https://git.io/vg5Ft"),E())}function g(){var v=E();return x;function x(k,T){var q=k.position,R=q?q.start:v,O=[],S=q&&q.end.line,_=v.line;if(k.position=new B(R),q&&T&&q.indent){if(O=q.indent,S<_){for(;++S<_;)O.push((u[S]||0)+1);O.push(v.column)}T=O.concat(T)}return k.position.indent=T||[],k}}function A(v,x){var k=x?x.children:i,T=k[k.length-1],q;return T&&v.type===T.type&&(v.type==="text"||v.type==="blockquote")&&Vu(T)&&Vu(v)&&(q=v.type==="text"?PD:ID,v=q.call(a,T,v)),v!==T&&k.push(v),a.atStart&&i.length!==0&&a.exitStart(),v}function w(v){var x=y(),k=g(),T=E();return b(v),q.reset=R,R.test=O,q.test=O,t=t.slice(v.length),F(v),x=x(),q;function q(S,_){return k(A(k(S),_),x)}function R(){var S=q.apply(null,arguments);return l=T.line,c=T.column,t=v+t,S}function O(){var S=k({});return l=T.line,c=T.column,t=v+t,S.position}}}}function Vu(e){var r,t;return e.type!=="text"||!e.position?!0:(r=e.position.start,t=e.position.end,r.line!==t.line||t.column-r.column===e.value.length)}function PD(e,r){return e.value+=r.value,e}function ID(e,r){return this.options.commonmark||this.options.gfm?r:(e.children=e.children.concat(r.children),e)}});var Ku=C((Jv,Hu)=>{"use strict";Hu.exports=Vr;var Gt=["\\","`","*","{","}","[","]","(",")","#","+","-",".","!","_",">"],Vt=Gt.concat(["~","|"]),Wu=Vt.concat([`
`,'"',"$","%","&","'",",","/",":",";","<","=","?","@","^"]);Vr.default=Gt;Vr.gfm=Vt;Vr.commonmark=Wu;function Vr(e){var r=e||{};return r.commonmark?Wu:r.gfm?Vt:Gt}});var Xu=C((Xv,Ju)=>{"use strict";Ju.exports=["address","article","aside","base","basefont","blockquote","body","caption","center","col","colgroup","dd","details","dialog","dir","div","dl","dt","fieldset","figcaption","figure","footer","form","frame","frameset","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","iframe","legend","li","link","main","menu","menuitem","meta","nav","noframes","ol","optgroup","option","p","param","pre","section","source","title","summary","table","tbody","td","tfoot","th","thead","title","tr","track","ul"]});var jt=C((Qv,Qu)=>{"use strict";Qu.exports={position:!0,gfm:!0,commonmark:!1,pedantic:!1,blocks:Xu()}});var ea=C((Zv,Zu)=>{"use strict";var ND=Ie(),RD=Ku(),UD=jt();Zu.exports=MD;function MD(e){var r=this,t=r.options,n,a;if(e==null)e={};else if(typeof e=="object")e=ND(e);else throw new Error("Invalid value `"+e+"` for setting `options`");for(n in UD){if(a=e[n],a==null&&(a=t[n]),n!=="blocks"&&typeof a!="boolean"||n==="blocks"&&typeof a!="object")throw new Error("Invalid value `"+a+"` for setting `options."+n+"`");e[n]=a}return r.options=e,r.escape=RD(e),r}});var na=C((eE,ta)=>{"use strict";ta.exports=ra;function ra(e){if(e==null)return VD;if(typeof e=="string")return GD(e);if(typeof e=="object")return"length"in e?YD(e):zD(e);if(typeof e=="function")return e;throw new Error("Expected function, string, or object as test")}function zD(e){return r;function r(t){var n;for(n in e)if(t[n]!==e[n])return!1;return!0}}function YD(e){for(var r=[],t=-1;++t<e.length;)r[t]=ra(e[t]);return n;function n(){for(var a=-1;++a<r.length;)if(r[a].apply(this,arguments))return!0;return!1}}function GD(e){return r;function r(t){return!!(t&&t.type===e)}}function VD(){return!0}});var ua=C((rE,ia)=>{ia.exports=jD;function jD(e){return e}});var ca=C((tE,sa)=>{"use strict";sa.exports=jr;var $D=na(),WD=ua(),aa=!0,oa="skip",$t=!1;jr.CONTINUE=aa;jr.SKIP=oa;jr.EXIT=$t;function jr(e,r,t,n){var a,u;typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),u=$D(r),a=n?-1:1,i(e,null,[])();function i(o,s,l){var c=typeof o=="object"&&o!==null?o:{},f;return typeof c.type=="string"&&(f=typeof c.tagName=="string"?c.tagName:typeof c.name=="string"?c.name:void 0,p.displayName="node ("+WD(c.type+(f?"<"+f+">":""))+")"),p;function p(){var d=l.concat(o),D=[],h,m;if((!r||u(o,s,l[l.length-1]||null))&&(D=HD(t(o,l)),D[0]===$t))return D;if(o.children&&D[0]!==oa)for(m=(n?o.children.length:-1)+a;m>-1&&m<o.children.length;){if(h=i(o.children[m],m,d)(),h[0]===$t)return h;m=typeof h[1]=="number"?h[1]:m+a}return D}}}function HD(e){return e!==null&&typeof e=="object"&&"length"in e?e:typeof e=="number"?[aa,e]:[e]}});var fa=C((nE,la)=>{"use strict";la.exports=Wr;var $r=ca(),KD=$r.CONTINUE,JD=$r.SKIP,XD=$r.EXIT;Wr.CONTINUE=KD;Wr.SKIP=JD;Wr.EXIT=XD;function Wr(e,r,t,n){typeof r=="function"&&typeof t!="function"&&(n=t,t=r,r=null),$r(e,r,a,n);function a(u,i){var o=i[i.length-1],s=o?o.children.indexOf(u):null;return t(u,s,o)}}});var pa=C((iE,Da)=>{"use strict";var QD=fa();Da.exports=ZD;function ZD(e,r){return QD(e,r?ep:rp),e}function ep(e){delete e.position}function rp(e){e.position=void 0}});var ma=C((uE,da)=>{"use strict";var ha=Ie(),tp=pa();da.exports=up;var np=`
`,ip=/\r\n|\r/g;function up(){var e=this,r=String(e.file),t={line:1,column:1,offset:0},n=ha(t),a;return r=r.replace(ip,np),r.charCodeAt(0)===65279&&(r=r.slice(1),n.column++,n.offset++),a={type:"root",children:e.tokenizeBlock(r,n),position:{start:t,end:e.eof||ha(t)}},e.options.position||tp(a,!0),a}});var ga=C((aE,Fa)=>{"use strict";var ap=/^[ \t]*(\n|$)/;Fa.exports=op;function op(e,r,t){for(var n,a="",u=0,i=r.length;u<i&&(n=ap.exec(r.slice(u)),n!=null);)u+=n[0].length,a+=n[0];if(a!==""){if(t)return!0;e(a)}}});var Hr=C((oE,va)=>{"use strict";var me="",Wt;va.exports=sp;function sp(e,r){if(typeof e!="string")throw new TypeError("expected a string");if(r===1)return e;if(r===2)return e+e;var t=e.length*r;if(Wt!==e||typeof Wt>"u")Wt=e,me="";else if(me.length>=t)return me.substr(0,t);for(;t>me.length&&r>1;)r&1&&(me+=e),r>>=1,e+=e;return me+=e,me=me.substr(0,t),me}});var Ht=C((sE,Ea)=>{"use strict";Ea.exports=cp;function cp(e){return String(e).replace(/\n+$/,"")}});var ya=C((cE,ba)=>{"use strict";var lp=Hr(),fp=Ht();ba.exports=hp;var Kt=`
`,Ca=" ",Jt=" ",Dp=4,pp=lp(Jt,Dp);function hp(e,r,t){for(var n=-1,a=r.length,u="",i="",o="",s="",l,c,f;++n<a;)if(l=r.charAt(n),f)if(f=!1,u+=o,i+=s,o="",s="",l===Kt)o=l,s=l;else for(u+=l,i+=l;++n<a;){if(l=r.charAt(n),!l||l===Kt){s=l,o=l;break}u+=l,i+=l}else if(l===Jt&&r.charAt(n+1)===l&&r.charAt(n+2)===l&&r.charAt(n+3)===l)o+=pp,n+=3,f=!0;else if(l===Ca)o+=l,f=!0;else{for(c="";l===Ca||l===Jt;)c+=l,l=r.charAt(++n);if(l!==Kt)break;o+=c+l,s+=l}if(i)return t?!0:e(u)({type:"code",lang:null,meta:null,value:fp(i)})}});var xa=C((lE,wa)=>{"use strict";wa.exports=gp;var Kr=`
`,mr=" ",Je=" ",dp="~",Aa="`",mp=3,Fp=4;function gp(e,r,t){var n=this,a=n.options.gfm,u=r.length+1,i=0,o="",s,l,c,f,p,d,D,h,m,F,y,E,B;if(a){for(;i<u&&(c=r.charAt(i),!(c!==Je&&c!==mr));)o+=c,i++;if(E=i,c=r.charAt(i),!(c!==dp&&c!==Aa)){for(i++,l=c,s=1,o+=c;i<u&&(c=r.charAt(i),c===l);)o+=c,s++,i++;if(!(s<mp)){for(;i<u&&(c=r.charAt(i),!(c!==Je&&c!==mr));)o+=c,i++;for(f="",D="";i<u&&(c=r.charAt(i),!(c===Kr||l===Aa&&c===l));)c===Je||c===mr?D+=c:(f+=D+c,D=""),i++;if(c=r.charAt(i),!(c&&c!==Kr)){if(t)return!0;B=e.now(),B.column+=o.length,B.offset+=o.length,o+=f,f=n.decode.raw(n.unescape(f),B),D&&(o+=D),D="",F="",y="",h="",m="";for(var b=!0;i<u;){if(c=r.charAt(i),h+=F,m+=y,F="",y="",c!==Kr){h+=c,y+=c,i++;continue}for(b?(o+=c,b=!1):(F+=c,y+=c),D="",i++;i<u&&(c=r.charAt(i),c===Je);)D+=c,i++;if(F+=D,y+=D.slice(E),!(D.length>=Fp)){for(D="";i<u&&(c=r.charAt(i),c===l);)D+=c,i++;if(F+=D,y+=D,!(D.length<s)){for(D="";i<u&&(c=r.charAt(i),!(c!==Je&&c!==mr));)F+=c,y+=c,i++;if(!c||c===Kr)break}}}for(o+=h+F,i=-1,u=f.length;++i<u;)if(c=f.charAt(i),c===Je||c===mr)p||(p=f.slice(0,i));else if(p){d=f.slice(i);break}return e(o)({type:"code",lang:p||f||null,meta:d||null,value:m})}}}}}});var Re=C((Xe,ka)=>{Xe=ka.exports=vp;function vp(e){return e.trim?e.trim():Xe.right(Xe.left(e))}Xe.left=function(e){return e.trimLeft?e.trimLeft():e.replace(/^\s\s*/,"")};Xe.right=function(e){if(e.trimRight)return e.trimRight();for(var r=/\s/,t=e.length;r.test(e.charAt(--t)););return e.slice(0,t+1)}});var Jr=C((fE,Ba)=>{"use strict";Ba.exports=Ep;function Ep(e,r,t,n){for(var a=e.length,u=-1,i,o;++u<a;)if(i=e[u],o=i[1]||{},!(o.pedantic!==void 0&&o.pedantic!==t.options.pedantic)&&!(o.commonmark!==void 0&&o.commonmark!==t.options.commonmark)&&r[i[0]].apply(t,n))return!0;return!1}});var Sa=C((DE,_a)=>{"use strict";var Cp=Re(),bp=Jr();_a.exports=yp;var Xt=`
`,Ta=" ",Qt=" ",qa=">";function yp(e,r,t){for(var n=this,a=n.offset,u=n.blockTokenizers,i=n.interruptBlockquote,o=e.now(),s=o.line,l=r.length,c=[],f=[],p=[],d,D=0,h,m,F,y,E,B,b,g;D<l&&(h=r.charAt(D),!(h!==Qt&&h!==Ta));)D++;if(r.charAt(D)===qa){if(t)return!0;for(D=0;D<l;){for(F=r.indexOf(Xt,D),B=D,b=!1,F===-1&&(F=l);D<l&&(h=r.charAt(D),!(h!==Qt&&h!==Ta));)D++;if(r.charAt(D)===qa?(D++,b=!0,r.charAt(D)===Qt&&D++):D=B,y=r.slice(D,F),!b&&!Cp(y)){D=B;break}if(!b&&(m=r.slice(D),bp(i,u,n,[e,m,!0])))break;E=B===D?y:r.slice(B,F),p.push(D-B),c.push(E),f.push(y),D=F+1}for(D=-1,l=p.length,d=e(c.join(Xt));++D<l;)a[s]=(a[s]||0)+p[D],s++;return g=n.enterBlock(),f=n.tokenizeBlock(f.join(Xt),o),g(),d({type:"blockquote",children:f})}}});var Pa=C((pE,La)=>{"use strict";La.exports=wp;var Oa=`
`,Fr=" ",gr=" ",vr="#",Ap=6;function wp(e,r,t){for(var n=this,a=n.options.pedantic,u=r.length+1,i=-1,o=e.now(),s="",l="",c,f,p;++i<u;){if(c=r.charAt(i),c!==gr&&c!==Fr){i--;break}s+=c}for(p=0;++i<=u;){if(c=r.charAt(i),c!==vr){i--;break}s+=c,p++}if(!(p>Ap)&&!(!p||!a&&r.charAt(i+1)===vr)){for(u=r.length+1,f="";++i<u;){if(c=r.charAt(i),c!==gr&&c!==Fr){i--;break}f+=c}if(!(!a&&f.length===0&&c&&c!==Oa)){if(t)return!0;for(s+=f,f="",l="";++i<u&&(c=r.charAt(i),!(!c||c===Oa));){if(c!==gr&&c!==Fr&&c!==vr){l+=f+c,f="";continue}for(;c===gr||c===Fr;)f+=c,c=r.charAt(++i);if(!a&&l&&!f&&c===vr){l+=c;continue}for(;c===vr;)f+=c,c=r.charAt(++i);for(;c===gr||c===Fr;)f+=c,c=r.charAt(++i);i--}return o.column+=s.length,o.offset+=s.length,s+=l+f,e(s)({type:"heading",depth:p,children:n.tokenizeInline(l,o)})}}}});var Ra=C((hE,Na)=>{"use strict";Na.exports=Sp;var xp=" ",kp=`
`,Ia=" ",Bp="*",Tp="-",qp="_",_p=3;function Sp(e,r,t){for(var n=-1,a=r.length+1,u="",i,o,s,l;++n<a&&(i=r.charAt(n),!(i!==xp&&i!==Ia));)u+=i;if(!(i!==Bp&&i!==Tp&&i!==qp))for(o=i,u+=i,s=1,l="";++n<a;)if(i=r.charAt(n),i===o)s++,u+=l+o,l="";else if(i===Ia)l+=i;else return s>=_p&&(!i||i===kp)?(u+=l,t?!0:e(u)({type:"thematicBreak"})):void 0}});var Zt=C((dE,Ma)=>{"use strict";Ma.exports=Ip;var Ua=" ",Op=" ",Lp=1,Pp=4;function Ip(e){for(var r=0,t=0,n=e.charAt(r),a={},u,i=0;n===Ua||n===Op;){for(u=n===Ua?Pp:Lp,t+=u,u>1&&(t=Math.floor(t/u)*u);i<t;)a[++i]=r;n=e.charAt(++r)}return{indent:t,stops:a}}});var Ga=C((mE,Ya)=>{"use strict";var Np=Re(),Rp=Hr(),Up=Zt();Ya.exports=Yp;var za=`
`,Mp=" ",zp="!";function Yp(e,r){var t=e.split(za),n=t.length+1,a=1/0,u=[],i,o,s;for(t.unshift(Rp(Mp,r)+zp);n--;)if(o=Up(t[n]),u[n]=o.stops,Np(t[n]).length!==0)if(o.indent)o.indent>0&&o.indent<a&&(a=o.indent);else{a=1/0;break}if(a!==1/0)for(n=t.length;n--;){for(s=u[n],i=a;i&&!(i in s);)i--;t[n]=t[n].slice(s[i]+1)}return t.shift(),t.join(za)}});var Ka=C((FE,Ha)=>{"use strict";var Gp=Re(),Vp=Hr(),Va=Ne(),jp=Zt(),$p=Ga(),Wp=Jr();Ha.exports=rh;var en="*",Hp="_",ja="+",rn="-",$a=".",Fe=" ",ae=`
`,Xr=" ",Wa=")",Kp="x",xe=4,Jp=/\n\n(?!\s*$)/,Xp=/^\[([ X\tx])][ \t]/,Qp=/^([ \t]*)([*+-]|\d+[.)])( {1,4}(?! )| |\t|$|(?=\n))([^\n]*)/,Zp=/^([ \t]*)([*+-]|\d+[.)])([ \t]+)/,eh=/^( {1,4}|\t)?/gm;function rh(e,r,t){for(var n=this,a=n.options.commonmark,u=n.options.pedantic,i=n.blockTokenizers,o=n.interruptList,s=0,l=r.length,c=null,f,p,d,D,h,m,F,y,E,B,b,g,A,w,v,x,k,T,q,R=!1,O,S,_,L;s<l&&(D=r.charAt(s),!(D!==Xr&&D!==Fe));)s++;if(D=r.charAt(s),D===en||D===ja||D===rn)h=D,d=!1;else{for(d=!0,p="";s<l&&(D=r.charAt(s),!!Va(D));)p+=D,s++;if(D=r.charAt(s),!p||!(D===$a||a&&D===Wa)||t&&p!=="1")return;c=parseInt(p,10),h=D}if(D=r.charAt(++s),!(D!==Fe&&D!==Xr&&(u||D!==ae&&D!==""))){if(t)return!0;for(s=0,w=[],v=[],x=[];s<l;){for(m=r.indexOf(ae,s),F=s,y=!1,L=!1,m===-1&&(m=l),f=0;s<l;){if(D=r.charAt(s),D===Xr)f+=xe-f%xe;else if(D===Fe)f++;else break;s++}if(k&&f>=k.indent&&(L=!0),D=r.charAt(s),E=null,!L){if(D===en||D===ja||D===rn)E=D,s++,f++;else{for(p="";s<l&&(D=r.charAt(s),!!Va(D));)p+=D,s++;D=r.charAt(s),s++,p&&(D===$a||a&&D===Wa)&&(E=D,f+=p.length+1)}if(E)if(D=r.charAt(s),D===Xr)f+=xe-f%xe,s++;else if(D===Fe){for(_=s+xe;s<_&&r.charAt(s)===Fe;)s++,f++;s===_&&r.charAt(s)===Fe&&(s-=xe-1,f-=xe-1)}else D!==ae&&D!==""&&(E=null)}if(E){if(!u&&h!==E)break;y=!0}else!a&&!L&&r.charAt(F)===Fe?L=!0:a&&k&&(L=f>=k.indent||f>xe),y=!1,s=F;if(b=r.slice(F,m),B=F===s?b:r.slice(s,m),(E===en||E===Hp||E===rn)&&i.thematicBreak.call(n,e,b,!0))break;if(g=A,A=!y&&!Gp(B).length,L&&k)k.value=k.value.concat(x,b),v=v.concat(x,b),x=[];else if(y)x.length!==0&&(R=!0,k.value.push(""),k.trail=x.concat()),k={value:[b],indent:f,trail:[]},w.push(k),v=v.concat(x,b),x=[];else if(A){if(g&&!a)break;x.push(b)}else{if(g||Wp(o,i,n,[e,b,!0]))break;k.value=k.value.concat(x,b),v=v.concat(x,b),x=[]}s=m+1}for(O=e(v.join(ae)).reset({type:"list",ordered:d,start:c,spread:R,children:[]}),T=n.enterList(),q=n.enterBlock(),s=-1,l=w.length;++s<l;)k=w[s].value.join(ae),S=e.now(),e(k)(th(n,k,S),O),k=w[s].trail.join(ae),s!==l-1&&(k+=ae),e(k);return T(),q(),O}}function th(e,r,t){var n=e.offset,a=e.options.pedantic?nh:ih,u=null,i,o;return r=a.apply(null,arguments),e.options.gfm&&(i=r.match(Xp),i&&(o=i[0].length,u=i[1].toLowerCase()===Kp,n[t.line]+=o,r=r.slice(o))),{type:"listItem",spread:Jp.test(r),checked:u,children:e.tokenizeBlock(r,t)}}function nh(e,r,t){var n=e.offset,a=t.line;return r=r.replace(Zp,u),a=t.line,r.replace(eh,u);function u(i){return n[a]=(n[a]||0)+i.length,a++,""}}function ih(e,r,t){var n=e.offset,a=t.line,u,i,o,s,l,c,f;for(r=r.replace(Qp,p),s=r.split(ae),l=$p(r,jp(u).indent).split(ae),l[0]=o,n[a]=(n[a]||0)+i.length,a++,c=0,f=s.length;++c<f;)n[a]=(n[a]||0)+s[c].length-l[c].length,a++;return l.join(ae);function p(d,D,h,m,F){return i=D+h+m,o=F,Number(h)<10&&i.length%2===1&&(h=Fe+h),u=D+Vp(Fe,h.length)+m,u+o}}});var Za=C((gE,Qa)=>{"use strict";Qa.exports=lh;var tn=`
`,uh=" ",Ja=" ",Xa="=",ah="-",oh=3,sh=1,ch=2;function lh(e,r,t){for(var n=this,a=e.now(),u=r.length,i=-1,o="",s,l,c,f,p;++i<u;){if(c=r.charAt(i),c!==Ja||i>=oh){i--;break}o+=c}for(s="",l="";++i<u;){if(c=r.charAt(i),c===tn){i--;break}c===Ja||c===uh?l+=c:(s+=l+c,l="")}if(a.column+=o.length,a.offset+=o.length,o+=s+l,c=r.charAt(++i),f=r.charAt(++i),!(c!==tn||f!==Xa&&f!==ah)){for(o+=c,l=f,p=f===Xa?sh:ch;++i<u;){if(c=r.charAt(i),c!==f){if(c!==tn)return;i--;break}l+=c}return t?!0:e(o+l)({type:"heading",depth:p,children:n.tokenizeInline(s,a)})}}});var un=C(nn=>{"use strict";var fh="[a-zA-Z_:][a-zA-Z0-9:._-]*",Dh="[^\"'=<>`\\u0000-\\u0020]+",ph="'[^']*'",hh='"[^"]*"',dh="(?:"+Dh+"|"+ph+"|"+hh+")",mh="(?:\\s+"+fh+"(?:\\s*=\\s*"+dh+")?)",eo="<[A-Za-z][A-Za-z0-9\\-]*"+mh+"*\\s*\\/?>",ro="<\\/[A-Za-z][A-Za-z0-9\\-]*\\s*>",Fh="<!---->|<!--(?:-?[^>-])(?:-?[^-])*-->",gh="<[?].*?[?]>",vh="<![A-Za-z]+\\s+[^>]*>",Eh="<!\\[CDATA\\[[\\s\\S]*?\\]\\]>";nn.openCloseTag=new RegExp("^(?:"+eo+"|"+ro+")");nn.tag=new RegExp("^(?:"+eo+"|"+ro+"|"+Fh+"|"+gh+"|"+vh+"|"+Eh+")")});var uo=C((EE,io)=>{"use strict";var Ch=un().openCloseTag;io.exports=Ih;var bh=" ",yh=" ",to=`
`,Ah="<",wh=/^<(script|pre|style)(?=(\s|>|$))/i,xh=/<\/(script|pre|style)>/i,kh=/^<!--/,Bh=/-->/,Th=/^<\?/,qh=/\?>/,_h=/^<![A-Za-z]/,Sh=/>/,Oh=/^<!\[CDATA\[/,Lh=/]]>/,no=/^$/,Ph=new RegExp(Ch.source+"\\s*$");function Ih(e,r,t){for(var n=this,a=n.options.blocks.join("|"),u=new RegExp("^</?("+a+")(?=(\\s|/?>|$))","i"),i=r.length,o=0,s,l,c,f,p,d,D,h=[[wh,xh,!0],[kh,Bh,!0],[Th,qh,!0],[_h,Sh,!0],[Oh,Lh,!0],[u,no,!0],[Ph,no,!1]];o<i&&(f=r.charAt(o),!(f!==bh&&f!==yh));)o++;if(r.charAt(o)===Ah){for(s=r.indexOf(to,o+1),s=s===-1?i:s,l=r.slice(o,s),c=-1,p=h.length;++c<p;)if(h[c][0].test(l)){d=h[c];break}if(d){if(t)return d[2];if(o=s,!d[1].test(l))for(;o<i;){if(s=r.indexOf(to,o+1),s=s===-1?i:s,l=r.slice(o+1,s),d[1].test(l)){l&&(o=s);break}o=s}return D=r.slice(0,o),e(D)({type:"html",value:D})}}}});var oe=C((CE,ao)=>{"use strict";ao.exports=Uh;var Nh=String.fromCharCode,Rh=/\s/;function Uh(e){return Rh.test(typeof e=="number"?Nh(e):e.charAt(0))}});var an=C((bE,oo)=>{"use strict";var Mh=kr();oo.exports=zh;function zh(e){return Mh(e).toLowerCase()}});var ho=C((yE,po)=>{"use strict";var Yh=oe(),Gh=an();po.exports=Wh;var so='"',co="'",Vh="\\",Qe=`
`,Qr=" ",Zr=" ",sn="[",Er="]",jh="(",$h=")",lo=":",fo="<",Do=">";function Wh(e,r,t){for(var n=this,a=n.options.commonmark,u=0,i=r.length,o="",s,l,c,f,p,d,D,h;u<i&&(f=r.charAt(u),!(f!==Zr&&f!==Qr));)o+=f,u++;if(f=r.charAt(u),f===sn){for(u++,o+=f,c="";u<i&&(f=r.charAt(u),f!==Er);)f===Vh&&(c+=f,u++,f=r.charAt(u)),c+=f,u++;if(!(!c||r.charAt(u)!==Er||r.charAt(u+1)!==lo)){for(d=c,o+=c+Er+lo,u=o.length,c="";u<i&&(f=r.charAt(u),!(f!==Qr&&f!==Zr&&f!==Qe));)o+=f,u++;if(f=r.charAt(u),c="",s=o,f===fo){for(u++;u<i&&(f=r.charAt(u),!!on(f));)c+=f,u++;if(f=r.charAt(u),f===on.delimiter)o+=fo+c+f,u++;else{if(a)return;u-=c.length+1,c=""}}if(!c){for(;u<i&&(f=r.charAt(u),!!Hh(f));)c+=f,u++;o+=c}if(c){for(D=c,c="";u<i&&(f=r.charAt(u),!(f!==Qr&&f!==Zr&&f!==Qe));)c+=f,u++;if(f=r.charAt(u),p=null,f===so?p=so:f===co?p=co:f===jh&&(p=$h),!p)c="",u=o.length;else if(c){for(o+=c+f,u=o.length,c="";u<i&&(f=r.charAt(u),f!==p);){if(f===Qe){if(u++,f=r.charAt(u),f===Qe||f===p)return;c+=Qe}c+=f,u++}if(f=r.charAt(u),f!==p)return;l=o,o+=c+f,u++,h=c,c=""}else return;for(;u<i&&(f=r.charAt(u),!(f!==Qr&&f!==Zr));)o+=f,u++;if(f=r.charAt(u),!f||f===Qe)return t?!0:(s=e(s).test().end,D=n.decode.raw(n.unescape(D),s,{nonTerminated:!1}),h&&(l=e(l).test().end,h=n.decode.raw(n.unescape(h),l)),e(o)({type:"definition",identifier:Gh(d),label:d,title:h||null,url:D}))}}}}function on(e){return e!==Do&&e!==sn&&e!==Er}on.delimiter=Do;function Hh(e){return e!==sn&&e!==Er&&!Yh(e)}});var go=C((AE,Fo)=>{"use strict";var Kh=oe();Fo.exports=ud;var Jh=" ",et=`
`,Xh=" ",Qh="-",Zh=":",ed="\\",cn="|",rd=1,td=2,mo="left",nd="center",id="right";function ud(e,r,t){var n=this,a,u,i,o,s,l,c,f,p,d,D,h,m,F,y,E,B,b,g,A,w,v;if(n.options.gfm){for(a=0,E=0,l=r.length+1,c=[];a<l;){if(A=r.indexOf(et,a),w=r.indexOf(cn,a+1),A===-1&&(A=r.length),w===-1||w>A){if(E<td)return;break}c.push(r.slice(a,A)),E++,a=A+1}for(o=c.join(et),u=c.splice(1,1)[0]||[],a=0,l=u.length,E--,i=!1,D=[];a<l;){if(p=u.charAt(a),p===cn){if(d=null,i===!1){if(v===!1)return}else D.push(i),i=!1;v=!1}else if(p===Qh)d=!0,i=i||null;else if(p===Zh)i===mo?i=nd:d&&i===null?i=id:i=mo;else if(!Kh(p))return;a++}if(i!==!1&&D.push(i),!(D.length<rd)){if(t)return!0;for(y=-1,b=[],g=e(o).reset({type:"table",align:D,children:b});++y<E;){for(B=c[y],s={type:"tableRow",children:[]},y&&e(et),e(B).reset(s,g),l=B.length+1,a=0,f="",h="",m=!0;a<l;){if(p=B.charAt(a),p===Jh||p===Xh){h?f+=p:e(p),a++;continue}p===""||p===cn?m?e(p):((h||p)&&!m&&(o=h,f.length>1&&(p?(o+=f.slice(0,-1),f=f.charAt(f.length-1)):(o+=f,f="")),F=e.now(),e(o)({type:"tableCell",children:n.tokenizeInline(h,F)},s)),e(f+p),f="",h=""):(f&&(h+=f,f=""),h+=p,p===ed&&a!==l-2&&(h+=B.charAt(a+1),a++)),m=!1,a++}y||e(et+u)}return g}}}});var Co=C((wE,Eo)=>{"use strict";var ad=Re(),od=Ht(),sd=Jr();Eo.exports=fd;var cd=" ",Cr=`
`,ld=" ",vo=4;function fd(e,r,t){for(var n=this,a=n.options,u=a.commonmark,i=n.blockTokenizers,o=n.interruptParagraph,s=r.indexOf(Cr),l=r.length,c,f,p,d,D;s<l;){if(s===-1){s=l;break}if(r.charAt(s+1)===Cr)break;if(u){for(d=0,c=s+1;c<l;){if(p=r.charAt(c),p===cd){d=vo;break}else if(p===ld)d++;else break;c++}if(d>=vo&&p!==Cr){s=r.indexOf(Cr,s+1);continue}}if(f=r.slice(s+1),sd(o,i,n,[e,f,!0]))break;if(c=s,s=r.indexOf(Cr,s+1),s!==-1&&ad(r.slice(c,s))===""){s=c;break}}return f=r.slice(0,s),t?!0:(D=e.now(),f=od(f),e(f)({type:"paragraph",children:n.tokenizeInline(f,D)}))}});var yo=C((xE,bo)=>{"use strict";bo.exports=Dd;function Dd(e,r){return e.indexOf("\\",r)}});var ko=C((kE,xo)=>{"use strict";var pd=yo();xo.exports=wo;wo.locator=pd;var hd=`
`,Ao="\\";function wo(e,r,t){var n=this,a,u;if(r.charAt(0)===Ao&&(a=r.charAt(1),n.escape.indexOf(a)!==-1))return t?!0:(a===hd?u={type:"break"}:u={type:"text",value:a},e(Ao+a)(u))}});var ln=C((BE,Bo)=>{"use strict";Bo.exports=dd;function dd(e,r){return e.indexOf("<",r)}});var Oo=C((TE,So)=>{"use strict";var To=oe(),md=dr(),Fd=ln();So.exports=hn;hn.locator=Fd;hn.notInLink=!0;var qo="<",fn=">",_o="@",Dn="/",pn="mailto:",rt=pn.length;function hn(e,r,t){var n=this,a="",u=r.length,i=0,o="",s=!1,l="",c,f,p,d,D;if(r.charAt(0)===qo){for(i++,a=qo;i<u&&(c=r.charAt(i),!(To(c)||c===fn||c===_o||c===":"&&r.charAt(i+1)===Dn));)o+=c,i++;if(o){if(l+=o,o="",c=r.charAt(i),l+=c,i++,c===_o)s=!0;else{if(c!==":"||r.charAt(i+1)!==Dn)return;l+=Dn,i++}for(;i<u&&(c=r.charAt(i),!(To(c)||c===fn));)o+=c,i++;if(c=r.charAt(i),!(!o||c!==fn))return t?!0:(l+=o,p=l,a+=l+c,f=e.now(),f.column++,f.offset++,s&&(l.slice(0,rt).toLowerCase()===pn?(p=p.slice(rt),f.column+=rt,f.offset+=rt):l=pn+l),d=n.inlineTokenizers,n.inlineTokenizers={text:d.text},D=n.enterLink(),p=n.tokenizeInline(p,f),n.inlineTokenizers=d,D(),e(a)({type:"link",title:null,url:md(l,{nonTerminated:!1}),children:p}))}}}});var Po=C((qE,Lo)=>{"use strict";Lo.exports=gd;function gd(e,r){var t=String(e),n=0,a;if(typeof r!="string")throw new Error("Expected character");for(a=t.indexOf(r);a!==-1;)n++,a=t.indexOf(r,a+r.length);return n}});var Ro=C((_E,No)=>{"use strict";No.exports=vd;var Io=["www.","http://","https://"];function vd(e,r){var t=-1,n,a,u;if(!this.options.gfm)return t;for(a=Io.length,n=-1;++n<a;)u=e.indexOf(Io[n],r),u!==-1&&(t===-1||u<t)&&(t=u);return t}});var Go=C((SE,Yo)=>{"use strict";var Uo=Po(),Ed=dr(),Cd=Ne(),dn=We(),bd=oe(),yd=Ro();Yo.exports=Fn;Fn.locator=yd;Fn.notInLink=!0;var Ad=33,wd=38,xd=41,kd=42,Bd=44,Td=45,mn=46,qd=58,_d=59,Sd=63,Od=60,Mo=95,Ld=126,Pd="(",zo=")";function Fn(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=r.length,o=-1,s=!1,l,c,f,p,d,D,h,m,F,y,E,B,b,g;if(a){if(r.slice(0,4)==="www.")s=!0,p=4;else if(r.slice(0,7).toLowerCase()==="http://")p=7;else if(r.slice(0,8).toLowerCase()==="https://")p=8;else return;for(o=p-1,f=p,l=[];p<i;){if(h=r.charCodeAt(p),h===mn){if(o===p-1)break;l.push(p),o=p,p++;continue}if(Cd(h)||dn(h)||h===Td||h===Mo){p++;continue}break}if(h===mn&&(l.pop(),p--),l[0]!==void 0&&(c=l.length<2?f:l[l.length-2]+1,r.slice(c,p).indexOf("_")===-1)){if(t)return!0;for(m=p,d=p;p<i&&(h=r.charCodeAt(p),!(bd(h)||h===Od));)p++,h===Ad||h===kd||h===Bd||h===mn||h===qd||h===Sd||h===Mo||h===Ld||(m=p);if(p=m,r.charCodeAt(p-1)===xd)for(D=r.slice(d,p),F=Uo(D,Pd),y=Uo(D,zo);y>F;)p=d+D.lastIndexOf(zo),D=r.slice(d,p),y--;if(r.charCodeAt(p-1)===_d&&(p--,dn(r.charCodeAt(p-1)))){for(m=p-2;dn(r.charCodeAt(m));)m--;r.charCodeAt(m)===wd&&(p=m)}return E=r.slice(0,p),b=Ed(E,{nonTerminated:!1}),s&&(b="http://"+b),g=n.enterLink(),n.inlineTokenizers={text:u.text},B=n.tokenizeInline(E,e.now()),n.inlineTokenizers=u,g(),e(E)({type:"link",title:null,url:b,children:B})}}}});var Wo=C((OE,$o)=>{"use strict";var Id=Ne(),Nd=We(),Rd=43,Ud=45,Md=46,zd=95;$o.exports=jo;function jo(e,r){var t=this,n,a;if(!this.options.gfm||(n=e.indexOf("@",r),n===-1))return-1;if(a=n,a===r||!Vo(e.charCodeAt(a-1)))return jo.call(t,e,n+1);for(;a>r&&Vo(e.charCodeAt(a-1));)a--;return a}function Vo(e){return Id(e)||Nd(e)||e===Rd||e===Ud||e===Md||e===zd}});var Xo=C((LE,Jo)=>{"use strict";var Yd=dr(),Ho=Ne(),Ko=We(),Gd=Wo();Jo.exports=En;En.locator=Gd;En.notInLink=!0;var Vd=43,gn=45,tt=46,jd=64,vn=95;function En(e,r,t){var n=this,a=n.options.gfm,u=n.inlineTokenizers,i=0,o=r.length,s=-1,l,c,f,p;if(a){for(l=r.charCodeAt(i);Ho(l)||Ko(l)||l===Vd||l===gn||l===tt||l===vn;)l=r.charCodeAt(++i);if(i!==0&&l===jd){for(i++;i<o;){if(l=r.charCodeAt(i),Ho(l)||Ko(l)||l===gn||l===tt||l===vn){i++,s===-1&&l===tt&&(s=i);continue}break}if(!(s===-1||s===i||l===gn||l===vn))return l===tt&&i--,c=r.slice(0,i),t?!0:(p=n.enterLink(),n.inlineTokenizers={text:u.text},f=n.tokenizeInline(c,e.now()),n.inlineTokenizers=u,p(),e(c)({type:"link",title:null,url:"mailto:"+Yd(c,{nonTerminated:!1}),children:f}))}}}});var es=C((PE,Zo)=>{"use strict";var $d=We(),Wd=ln(),Hd=un().tag;Zo.exports=Qo;Qo.locator=Wd;var Kd="<",Jd="?",Xd="!",Qd="/",Zd=/^<a /i,e0=/^<\/a>/i;function Qo(e,r,t){var n=this,a=r.length,u,i;if(!(r.charAt(0)!==Kd||a<3)&&(u=r.charAt(1),!(!$d(u)&&u!==Jd&&u!==Xd&&u!==Qd)&&(i=r.match(Hd),!!i)))return t?!0:(i=i[0],!n.inLink&&Zd.test(i)?n.inLink=!0:n.inLink&&e0.test(i)&&(n.inLink=!1),e(i)({type:"html",value:i}))}});var Cn=C((IE,rs)=>{"use strict";rs.exports=r0;function r0(e,r){var t=e.indexOf("[",r),n=e.indexOf("![",r);return n===-1||t<n?t:n}});var ss=C((NE,os)=>{"use strict";var br=oe(),t0=Cn();os.exports=as;as.locator=t0;var n0=`
`,i0="!",ts='"',ns="'",Ze="(",yr=")",bn="<",yn=">",is="[",Ar="\\",u0="]",us="`";function as(e,r,t){var n=this,a="",u=0,i=r.charAt(0),o=n.options.pedantic,s=n.options.commonmark,l=n.options.gfm,c,f,p,d,D,h,m,F,y,E,B,b,g,A,w,v,x,k;if(i===i0&&(F=!0,a=i,i=r.charAt(++u)),i===is&&!(!F&&n.inLink)){for(a+=i,A="",u++,B=r.length,v=e.now(),g=0,v.column+=u,v.offset+=u;u<B;){if(i=r.charAt(u),h=i,i===us){for(f=1;r.charAt(u+1)===us;)h+=i,u++,f++;p?f>=p&&(p=0):p=f}else if(i===Ar)u++,h+=r.charAt(u);else if((!p||l)&&i===is)g++;else if((!p||l)&&i===u0)if(g)g--;else{if(r.charAt(u+1)!==Ze)return;h+=Ze,c=!0,u++;break}A+=h,h="",u++}if(c){for(y=A,a+=A+h,u++;u<B&&(i=r.charAt(u),!!br(i));)a+=i,u++;if(i=r.charAt(u),A="",d=a,i===bn){for(u++,d+=bn;u<B&&(i=r.charAt(u),i!==yn);){if(s&&i===n0)return;A+=i,u++}if(r.charAt(u)!==yn)return;a+=bn+A+yn,w=A,u++}else{for(i=null,h="";u<B&&(i=r.charAt(u),!(h&&(i===ts||i===ns||s&&i===Ze)));){if(br(i)){if(!o)break;h+=i}else{if(i===Ze)g++;else if(i===yr){if(g===0)break;g--}A+=h,h="",i===Ar&&(A+=Ar,i=r.charAt(++u)),A+=i}u++}a+=A,w=A,u=a.length}for(A="";u<B&&(i=r.charAt(u),!!br(i));)A+=i,u++;if(i=r.charAt(u),a+=A,A&&(i===ts||i===ns||s&&i===Ze))if(u++,a+=i,A="",E=i===Ze?yr:i,D=a,s){for(;u<B&&(i=r.charAt(u),i!==E);)i===Ar&&(A+=Ar,i=r.charAt(++u)),u++,A+=i;if(i=r.charAt(u),i!==E)return;for(b=A,a+=A+i,u++;u<B&&(i=r.charAt(u),!!br(i));)a+=i,u++}else for(h="";u<B;){if(i=r.charAt(u),i===E)m&&(A+=E+h,h=""),m=!0;else if(!m)A+=i;else if(i===yr){a+=A+E+h,b=A;break}else br(i)?h+=i:(A+=E+h+i,h="",m=!1);u++}if(r.charAt(u)===yr)return t?!0:(a+=yr,w=n.decode.raw(n.unescape(w),e(d).test().end,{nonTerminated:!1}),b&&(D=e(D).test().end,b=n.decode.raw(n.unescape(b),D)),k={type:F?"image":"link",title:b||null,url:w},F?k.alt=n.decode.raw(n.unescape(y),v)||null:(x=n.enterLink(),k.children=n.tokenizeInline(y,v),x()),e(a)(k))}}}});var fs=C((RE,ls)=>{"use strict";var a0=oe(),o0=Cn(),s0=an();ls.exports=cs;cs.locator=o0;var An="link",c0="image",l0="shortcut",f0="collapsed",wn="full",D0="!",nt="[",it="\\",ut="]";function cs(e,r,t){var n=this,a=n.options.commonmark,u=r.charAt(0),i=0,o=r.length,s="",l="",c=An,f=l0,p,d,D,h,m,F,y,E;if(u===D0&&(c=c0,l=u,u=r.charAt(++i)),u===nt){for(i++,l+=u,F="",E=0;i<o;){if(u=r.charAt(i),u===nt)y=!0,E++;else if(u===ut){if(!E)break;E--}u===it&&(F+=it,u=r.charAt(++i)),F+=u,i++}if(s=F,p=F,u=r.charAt(i),u===ut){if(i++,s+=u,F="",!a)for(;i<o&&(u=r.charAt(i),!!a0(u));)F+=u,i++;if(u=r.charAt(i),u===nt){for(d="",F+=u,i++;i<o&&(u=r.charAt(i),!(u===nt||u===ut));)u===it&&(d+=it,u=r.charAt(++i)),d+=u,i++;u=r.charAt(i),u===ut?(f=d?wn:f0,F+=d+u,i++):d="",s+=F,F=""}else{if(!p)return;d=p}if(!(f!==wn&&y))return s=l+s,c===An&&n.inLink?null:t?!0:(D=e.now(),D.column+=l.length,D.offset+=l.length,d=f===wn?d:p,h={type:c+"Reference",identifier:s0(d),label:d,referenceType:f},c===An?(m=n.enterLink(),h.children=n.tokenizeInline(p,D),m()):h.alt=n.decode.raw(n.unescape(p),D)||null,e(s)(h))}}}});var ps=C((UE,Ds)=>{"use strict";Ds.exports=p0;function p0(e,r){var t=e.indexOf("**",r),n=e.indexOf("__",r);return n===-1?t:t===-1||n<t?n:t}});var Fs=C((ME,ms)=>{"use strict";var h0=Re(),hs=oe(),d0=ps();ms.exports=ds;ds.locator=d0;var m0="\\",F0="*",g0="_";function ds(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,p;if(!(u!==F0&&u!==g0||r.charAt(++a)!==u)&&(o=n.options.pedantic,s=u,c=s+s,f=r.length,a++,l="",u="",!(o&&hs(r.charAt(a)))))for(;a<f;){if(p=u,u=r.charAt(a),u===s&&r.charAt(a+1)===s&&(!o||!hs(p))&&(u=r.charAt(a+2),u!==s))return h0(l)?t?!0:(i=e.now(),i.column+=2,i.offset+=2,e(c+l+c)({type:"strong",children:n.tokenizeInline(l,i)})):void 0;!o&&u===m0&&(l+=u,u=r.charAt(++a)),l+=u,a++}}});var vs=C((zE,gs)=>{"use strict";gs.exports=C0;var v0=String.fromCharCode,E0=/\w/;function C0(e){return E0.test(typeof e=="number"?v0(e):e.charAt(0))}});var Cs=C((YE,Es)=>{"use strict";Es.exports=b0;function b0(e,r){var t=e.indexOf("*",r),n=e.indexOf("_",r);return n===-1?t:t===-1||n<t?n:t}});var xs=C((GE,ws)=>{"use strict";var y0=Re(),A0=vs(),bs=oe(),w0=Cs();ws.exports=As;As.locator=w0;var x0="*",ys="_",k0="\\";function As(e,r,t){var n=this,a=0,u=r.charAt(a),i,o,s,l,c,f,p;if(!(u!==x0&&u!==ys)&&(o=n.options.pedantic,c=u,s=u,f=r.length,a++,l="",u="",!(o&&bs(r.charAt(a)))))for(;a<f;){if(p=u,u=r.charAt(a),u===s&&(!o||!bs(p))){if(u=r.charAt(++a),u!==s){if(!y0(l)||p===s)return;if(!o&&s===ys&&A0(u)){l+=s;continue}return t?!0:(i=e.now(),i.column++,i.offset++,e(c+l+s)({type:"emphasis",children:n.tokenizeInline(l,i)}))}l+=s}!o&&u===k0&&(l+=u,u=r.charAt(++a)),l+=u,a++}}});var Bs=C((VE,ks)=>{"use strict";ks.exports=B0;function B0(e,r){return e.indexOf("~~",r)}});var Os=C((jE,Ss)=>{"use strict";var Ts=oe(),T0=Bs();Ss.exports=_s;_s.locator=T0;var at="~",qs="~~";function _s(e,r,t){var n=this,a="",u="",i="",o="",s,l,c;if(!(!n.options.gfm||r.charAt(0)!==at||r.charAt(1)!==at||Ts(r.charAt(2))))for(s=1,l=r.length,c=e.now(),c.column+=2,c.offset+=2;++s<l;){if(a=r.charAt(s),a===at&&u===at&&(!i||!Ts(i)))return t?!0:e(qs+o+qs)({type:"delete",children:n.tokenizeInline(o,c)});o+=u,iLine truncated
`,r);t>r&&e.charAt(t-1)===" ";)t--;return t}});var Gs=C((KE,Ys)=>{"use strict";var O0=Ms();Ys.exports=zs;zs.locator=O0;var L0=" ",P0=`
`,I0=2;function zs(e,r,t){for(var n=r.length,a=-1,u="",i;++a<n;){if(i=r.charAt(a),i===P0)return a<I0?void 0:t?!0:(u+=i,e(u)({type:"break"}));if(i!==L0)return;u+=i}}});var js=C((JE,Vs)=>{"use strict";Vs.exports=N0;function N0(e,r,t){var n=this,a,u,i,o,s,l,c,f,p,d;if(t)return!0;for(a=n.inlineMethods,o=a.length,u=n.inlineTokenizers,i=-1,p=r.length;++i<o;)f=a[i],!(f==="text"||!u[f])&&(c=u[f].locator,c||e.file.fail("Missing locator: `"+f+"`"),l=c.call(n,r,1),l!==-1&&l<p&&(p=l));s=r.slice(0,p),d=e.now(),n.decode(s,d,D);function D(h,m,F){e(F||h)({type:"text",value:h})}}});var Ks=C((XE,Hs)=>{"use strict";var R0=Ie(),ot=fu(),U0=pu(),M0=du(),z0=Gu(),Tn=$u();Hs.exports=$s;function $s(e,r){this.file=r,this.offset={},this.options=R0(this.options),this.setOptions({}),this.inList=!1,this.inBlock=!1,this.inLink=!1,this.atStart=!0,this.toOffset=U0(r).toOffset,this.unescape=M0(this,"escape"),this.decode=z0(this)}var U=$s.prototype;U.setOptions=ea();U.parse=ma();U.options=jt();U.exitStart=ot("atStart",!0);U.enterList=ot("inList",!1);U.enterLink=ot("inLink",!1);U.enterBlock=ot("inBlock",!1);U.interruptParagraph=[["thematicBreak"],["list"],["atxHeading"],["fencedCode"],["blockquote"],["html"],["setextHeading",{commonmark:!1}],["definition",{commonmark:!1}]];U.interruptList=[["atxHeading",{pedantic:!1}],["fencedCode",{pedantic:!1}],["thematicBreak",{pedantic:!1}],["definition",{commonmark:!1}]];U.interruptBlockquote=[["indentedCode",{commonmark:!0}],["fencedCode",{commonmark:!0}],["atxHeading",{commonmark:!0}],["setextHeading",{commonmark:!0}],["thematicBreak",{commonmark:!0}],["html",{commonmark:!0}],["list",{commonmark:!0}],["definition",{commonmark:!1}]];U.blockTokenizers={blankLine:ga(),indentedCode:ya(),fencedCode:xa(),blockquote:Sa(),atxHeading:Pa(),thematicBreak:Ra(),list:Ka(),setextHeading:Za(),html:uo(),definition:ho(),table:go(),paragraph:Co()};U.inlineTokenizers={escape:ko(),autoLink:Oo(),url:Go(),email:Xo(),html:es(),link:ss(),reference:fs(),strong:Fs(),emphasis:xs(),deletion:Os(),code:Rs(),break:Gs(),text:js()};U.blockMethods=Ws(U.blockTokenizers);U.inlineMethods=Ws(U.inlineTokenizers);U.tokenizeBlock=Tn("block");U.tokenizeInline=Tn("inline");U.tokenizeFactory=Tn;function Ws(e){var r=[],t;for(t in e)r.push(t);return r}});var Zs=C((QE,Qs)=>{"use strict";var Y0=cu(),G0=Ie(),Js=Ks();Qs.exports=Xs;Xs.Parser=Js;function Xs(e){var r=this.data("settings"),t=Y0(Js);t.prototype.options=G0(t.prototype.options,r,e),this.Parser=t}});var rc=C((ZE,ec)=>{"use strict";ec.exports=V0;function V0(e){if(e)throw e}});var qn=C((eC,tc)=>{tc.exports=function(r){return r!=null&&r.constructor!=null&&typeof r.constructor.isBuffer=="function"&&r.constructor.isBuffer(r)}});var fc=C((rC,lc)=>{"use strict";var st=Object.prototype.hasOwnProperty,cc=Object.prototype.toString,nc=Object.defineProperty,ic=Object.getOwnPropertyDescriptor,uc=function(r){return typeof Array.isArray=="function"?Array.isArray(r):cc.call(r)==="[object Array]"},ac=function(r){if(!r||cc.call(r)!=="[object Object]")return!1;var t=st.call(r,"constructor"),n=r.constructor&&r.constructor.prototype&&st.call(r.constructor.prototype,"isPrototypeOf");if(r.constructor&&!t&&!n)return!1;var a;for(a in r);return typeof a>"u"||st.call(r,a)},oc=function(r,t){nc&&t.name==="__proto__"?nc(r,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):r[t.name]=t.newValue},sc=function(r,t){if(t==="__proto__")if(st.call(r,t)){if(ic)return ic(r,t).value}else return;return r[t]};lc.exports=function e(){var r,t,n,a,u,i,o=arguments[0],s=1,l=arguments.length,c=!1;for(typeof o=="boolean"&&(c=o,o=arguments[1]||{},s=2),(o==null||typeof o!="object"&&typeof o!="function")&&(o={});s<l;++s)if(r=arguments[s],r!=null)for(t in r)n=sc(o,t),a=sc(r,t),o!==a&&(c&&a&&(ac(a)||(u=uc(a)))?(u?(u=!1,i=n&&uc(n)?n:[]):i=n&&ac(n)?n:{},oc(o,{name:t,newValue:e(c,i,a)})):typeof a<"u"&&oc(o,{name:t,newValue:a}));return o}});var pc=C((tC,Dc)=>{"use strict";Dc.exports=e=>{if(Object.prototype.toString.call(e)!=="[object Object]")return!1;let r=Object.getPrototypeOf(e);return r===null||r===Object.prototype}});var dc=C((nC,hc)=>{"use strict";var j0=[].slice;hc.exports=$0;function $0(e,r){var t;return n;function n(){var i=j0.call(arguments,0),o=e.length>i.length,s;o&&i.push(a);try{s=e.apply(null,i)}catch(l){if(o&&t)throw l;return a(l)}o||(s&&typeof s.then=="function"?s.then(u,a):s instanceof Error?a(s):u(s))}function a(){t||(t=!0,r.apply(null,arguments))}function u(i){a(null,i)}}});var Ec=C((iC,vc)=>{"use strict";var Fc=dc();vc.exports=gc;gc.wrap=Fc;var mc=[].slice;function gc(){var e=[],r={};return r.run=t,r.use=n,r;function t(){var a=-1,u=mc.call(arguments,0,-1),i=arguments[arguments.length-1];if(typeof i!="function")throw new Error("Expected function as last argument, not "+i);o.apply(null,[null].concat(u));function o(s){var l=e[++a],c=mc.call(arguments,0),f=c.slice(1),p=u.length,d=-1;if(s){i(s);return}for(;++d<p;)(f[d]===null||f[d]===void 0)&&(f[d]=u[d]);u=f,l?Fc(l,o).apply(null,u):i.apply(null,[null].concat(u))}}funct Line truncated
Expected it to be 'string' or 'object'.`;if(Y(e))throw new Error("doc is valid.");let t=Object.prototype.toString.call(e);if(t!=="[object Object]")return`Unexpected doc '${t}'.`;let n=El([...Br].map(a=>`'${a}'`));return`Unexpected doc.type '${e.type}'.
Expected it to be ${n}.`}var pt=class extends Error{name="InvalidDocError";constructor(r){super(Cl(r)),this.doc=r}},Te=pt;var Hn={};function bl(e,r,t,n){let a=[e];for(;a.length>0;){let u=a.pop();if(u===Hn){t(a.pop());continue}t&&a.push(u,Hn);let i=Y(u);if(!i)throw new Te(u);if((r==null?void 0:r(u))!==!1)switch(i){case H:case X:{let o=i===H?u:u.parts;for(let s=o.length,l=s-1;l>=0;--l)a.push(o[l]);break}case K:a.push(u.flatContents,u.breakContents);break;case J:if(n&&u.expandedStates)for(let o=u.expandedStates.length,s=o-1;s>=0;--s)a.push(u.expandedStates[s]);else a.push(u.contents);break;case te:case re:case De:case de:case pe:a.push(u.contents);break;case G:case Ce:case fe:case he:case V:case ne:break;default:throw new Te(u)}}}var ht=bl;function yl(e,r){if(typeof e=="string")return r(e);let t=new Map;return n(e);function n(u){if(t.has(u))return t.get(u);let i=a(u);return t.set(u,i),i}function a(u){switch(Y(u)){case H:return r(u.map(n));case X:return r({...u,parts:u.parts.map(n)});case K:return r({...u,breakContents:n(u.breakContents),flatContents:n(u.flatContents)});case J:{let{expandedStates:i,contents:o}=u;return i?(i=i.map(n),o=i[0]):o=n(o),r({...u,contents:o,expandedStates:i})}case te:case re:case De:case de:case pe:return r({...u,contents:n(u.contents)});case G:case Ce:case fe:case he:case V:case ne:return r(u);default:throw new Te(u)}}}function Kn(e){if(e.length>0){let r=z(!1,e,-1);!r.expandedStates&&!r.break&&(r.break="propagated")}return null}function Jn(e){let r=new Set,t=[];function n(u){if(u.type===ne&&Kn(t),u.type===J){if(t.push(u),r.has(u))return!1;r.add(u)}}function a(u){u.type===J&&t.pop().break&&Kn(t)}ht(e,n,a,!0)}function be(e,r=tr){return yl(e,t=>typeof t=="string"?Tr(r,t.split(`
`)):t)}var dt=()=>{},qe=dt,mt=dt,Xn=dt;function nr(e){return qe(e),{type:re,contents:e}}function ye(e,r){return qe(r),{type:te,contents:r,n:e}}function Me(e,r={}){return qe(e),mt(r.expandedStates,!0),{type:J,id:r.id,contents:e,break:!!r.shouldBreak,expandedStates:r.expandedStates}}function _e(e){return ye({type:"root"},e)}function ze(e){return Xn(e),{type:X,parts:e}}function Qn(e,r="",t={}){return qe(e),r!==""&&qe(r),{type:K,breakContents:e,flatContents:r,groupId:t.groupId}}var ir={type:ne};var ur={type:V,hard:!0},Al={type:V,hard:!0,literal:!0},qr={type:V},_r={type:V,soft:!0},P=[ur,ir],tr=[Al,ir];function Tr(e,r){qe(e),mt(r);let t=[];for(let n=0;n<r.length;n++)n!==0&&t.push(e),t.push(r[n]);return t}function wl(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));return t===null?0:t.reduce((n,a)=>Math.max(n,a.length/r.length),0)}var Sr=wl;function xl(e,r){let t=e.match(new RegExp(`(${le(r)})+`,"gu"));if(t===null)return 0;let n=new Map,a=0;for(let u of t){let i=u.length/r.length;n.set(i,!0),i>a&&(a=i)}for(let u=1;u<a;u++)if(!n.get(u))return u;return a+1}var Zn=xl;var Or="'",ei='"';function kl(e,r){let t=r===!0||r===Or?Or:ei,n=t===Or?ei:Or,a=0,u=0;for(let i of e)i===t?a++:i===n&&u++;return a>u?n:t}var ri=kl;var Ft=class extends Error{name="UnexpectedNodeError";constructor(r,t,n="type"){super(`Unexpected ${t} node ${n}: ${JSON.stringify(r[n])}.`),this.node=r}},ti=Ft;var oi=Ue(kr(),1);function Bl(e){return(e==null?void 0:e.type)==="front-matter"}var ni=Bl;var ar=3;function Tl(e){let r=e.slice(0,ar);if(r!=="---"&&r!=="+++")return;let t=e.indexOf(`
`,ar);if(t===-1)return;let n=e.slice(ar,t).trim(),a=e.indexOf(`
${r}`,t),u=n;if(u||(u=r==="+++"?"toml":"yaml"),a===-1&&r==="---"&&u==="yaml"&&(a=e.indexOf(`
...`,t)),a===-1)return;let i=a+1+ar,o=e.charAt(i+1);if(!/\s?/u.test(o))return;let s=e.slice(0,i);return{type:"front-matter",language:u,explicitLanguage:n,value:e.slice(t+1,a),startDelimiter:r,endDelimiter:s.slice(-ar),raw:s}}function ql(e){let r=Tl(e);if(!r)return{content:e};let{raw:t}=r;return{frontMatter:r,content:N(!1,t,/[^\n]/gu," ")+e.slice(t.length)}}var or=ql;var ii=["format","prettier"];function gt(e){let r=`@(${ii.join("|")})`,t=new RegExp([`<!--\\s*${r}\\s*-->`,`\\{\\s*\\/\\*\\s*${r}\\s*\\*\\/\\s*\\}`,`<!--.*\r?
[\\s\\S]*(^|
)[^\\S
]*${r}[^\\S
]*($|
)[\\s\\S]*
.*-->`].join("|"),"mu"),n=e.match(t);return(n==null?void 0:n.index)===0}var ui=e=>gt(or(e).content.trimStart()),ai=e=>{let r=or(e),t=`<!-- @${ii[0]} -->`;return r.frontMatter?`${r.frontMatter.raw}
${t}
${r.content}`:`${t}
${r.content}`};var _l=new Set(["position","raw"]);function si(e,r,t){if((e.type==="front-matter"||e.type==="code"||e.type==="yaml"||e.type==="import"||e.type==="export"||e.type==="jsx")&&delete r.value,e.type==="list"&&delete r.isAligned,(e.type==="list"||e.type==="listItem")&&delete r.spread,e.type==="text")return null;if(e.type==="inlineCode"&&(r.value=N(!1,e.value,`
`," ")),e.type==="wikiLink"&&(r.value=N(!1,e.value.trim(),/[\t\n]+/gu," ")),(e.type==="definition"||e.type==="linkReference"||e.type==="imageReference")&&(r.label=(0,oi.default)(e.label)),(e.type==="link"||e.type==="image")&&e.url&&e.url.includes("("))for(let n of"<>")r.url=N(!1,e.url,n,encodeURIComponent(n));if((e.type==="definition"||e.type==="link"||e.type==="image")&&e.title&&(r.title=N(!1,e.title,/\\(?=["')])/gu,"")),(t==null?void 0:t.type)==="root"&&t.children.length>0&&(t.children[0]===e||ni(t.children[0])&&t.children[1]===e)&&e.type==="html"&&gt(e.value))return null}si.ignoredProperties=_l;var ci=si;var li=/(?:[\u{2ea}-\u{2eb}\u{1100}-\u{11ff}\u{2e80}-\u{2e99}\u{2e9b}-\u{2ef3}\u{2f00}-\u{2fd5}\u{2ff0}-\u{303f}\u{3041}-\u{3096}\u{3099}-\u{30ff}\u{3105}-\u{312f}\u{3131}-\u{318e}\u{3190}-\u{4dbf}\u{4e00}-\u{9fff}\u{a700}-\u{a707}\u{a960}-\u{a97c}\u{ac00}-\u{d7a3}\u{d7b0}-\u{d7c6}\u{d7cb}-\u{d7fb}\u{f900}-\u{fa6d}\u{fa70}-\u{fad9}\u{fe10}-\u{fe1f}\u{fe30}-\u{fe6f}\u{ff00}-\u{ffef}\u{16fe3}\u{1aff0}-\u{1aff3}\u{1aff5}-\u{1affb}\u{1affd}-\u{1affe}\u{1b000}-\u{1b122}\u{1b132}\u{1b150}-\u{1b152}\u{1b155}\u{1b164}-\u{1b167}\u{1f200}\u{1f250}-\u{1f251}\u{20000}-\u{2a6df}\u{2a700}-\u{2b739}\u{2b740}-\u{2b81d}\u{2b820}-\u{2cea1}\u{2ceb0}-\u{2ebe0}\u{2f800}-\u{2fa1d}\u{30000}-\u{3134a}\u{31350}-\u{323af}])(?:[\u{fe00}-\u{fe0f}\u{e0100}-\u{e01ef}])?/u,Se=/(?:[\u{21}-\u{2f}\u{3a}-\u{40}\u{5b}-\u{60}\u{7b}-\u{7e}]|\p{General_Category=Connector_Punctuation}|\p{General_Category=Dash_Punctuation}|\p{General_Category=Close_Punctuation}|\p{General_Category=Final_Punctuation}|\p{General_Category=Initial_Punctuation}|\p{General_Category=Other_Punctuation}|\p{General_Category=Open_Punctuation})/u;async function Sl(e,r){if(e.language==="yaml"){let t=e.value.trim(),n=t?await r(t,{parser:"yaml"}):"";return _e([e.startDelimiter,e.explicitLanguage,P,n,n?P:"",e.endDelimiter])}}var fi=Sl;var Ol=e=>String(e).split(/[/\\]/u).pop();function Di(e,r){if(!r)return;let t=Ol(r).toLowerCase();return e.find(({filenames:n})=>n==null?void 0:n.some(a=>a.toLowerCase()===t))??e.find(({extensions:n})=>n==null?void 0:n.some(a=>t.endsWith(a)))}function Ll(e,r){if(r)return e.find(({name:t})=>t.toLowerCase()===r)??e.find(({aliases:t})=>t==null?void 0:t.includes(r))??e.find(({extensions:t})=>t==null?void 0:t.includes(`.${r}`))}function Pl(e,r){let t=e.plugins.flatMap(a=>a.languages??[]),n=Ll(t,r.language)??Di(t,r.physicalFile)??Di(t,r.file)??(r.physicalFile,void 0);return n==null?void 0:n.parsers[0]}var pi=Pl;var Il=new Proxy(()=>{},{get:()=>Il});function Oe(e){return e.position.start.offset}function Le(e){return e.position.end.offset}var vt=new Set(["liquidNode","inlineCode","emphasis","esComment","strong","delete","wikiLink","link","linkReference","image","imageReference","footnote","footnoteReference","sentence","whitespace","word","break","inlineMath"]),Lr=new Set([...vt,"tableCell","paragraph","heading"]),Ge="non-cjk",ie="cj-letter",Pe="k-letter",sr="cjk-punctuation",Nl=/\p{Script_Extensions=Hangul}/u;function Pr(e){let r=[],t=e.split(/([\t\n ]+)/u);for(let[a,u]of t.entries()){if(a%2===1){r.push({type:"whitespace",value:/\n/u.test(u)?`
`:" "});continue}if((a===0||a===t.length-1)&&u==="")continue;let i=u.split(new RegExp(`(${li.source})`,"u"));for(let[o,s]of i.entries())if(!((o===0||o===i.length-1)&&s==="")){if(o%2===0){s!==""&&n({type:"word",value:s,kind:Ge,isCJ:!1,hasLeadingPunctuation:Se.test(s[0]),hasTrailingPunctuation:Se.test(z(!1,s,-1))});continue}if(Se.test(s)){n({type:"word",value:s,kind:sr,isCJ:!0,hasLeadingPunctuation:!0,hasTrailingPunctuation:!0});continue}if(Nl.test(s)){n({type:"word",value:s,kind:Pe,isCJ:!1,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1});continue}n({type:"word",value:s,kind:ie,isCJ:!0,hasLeadingPunctuation:!1,hasTrailingPunctuation:!1})}}return r;function n(a){let u=z(!1,r,-1);(u==null?void 0:u.type)==="word"&&!i(Ge,sr)&&![u.value,a.value].some(o=>/\u3000/u.test(o))&&r.push({type:"whitespace",value:""}),r.push(a);function i(o,s){return u.kind===o&&a.kind===s||u.kind===s&&a.kind===o}}}function Ye(e,r){let t=r.originalText.slice(e.position.start.offset,e.position.end.offset),{numberText:n,leadingSpaces:a}=t.match(/^\s*(?<numberText>\d+)(\.|\))(?<leadingSpaces>\s*)/u).groups;return{number:Number(n),leadingSpaces:a}}function hi(e,r){return!e.ordered||e.children.length<2||Ye(e.children[1],r).number!==1?!1:Ye(e.children[0],r).number!==0?!0:e.children.length>2&&Ye(e.children[2],r).number===1}function Ir(e,r){let{value:t}=e;return e.position.end.offset===r.length&&t.endsWith(`
`)&&r.endsWith(`
`)?t.slice(0,-1):t}function Ae(e,r){return function t(n,a,u){let i={...r(n,a,u)};return i.children&&(i.children=i.children.map((o,s)=>t(o,s,[i,...u]))),i}(e,null,[])}function Et(e){if((e==null?void 0:e.type)!=="link"||e.children.length!==1)return!1;let[r]=e.children;return Oe(e)===Oe(r)&&Le(e)===Le(r)}function Rl(e,r){let{node:t}=e;if(t.type==="code"&&t.lang!==null){let n=pi(r,{language:t.lang});if(n)return async a=>{let u=r.__inJsTemplate?"~":"`",i=u.repeat(Math.max(3,Sr(t.value,u)+1)),o={parser:n};t.lang==="ts"||t.lang==="typescript"?o.filepath="dummy.ts":t.lang==="tsx"&&(o.filepath="dummy.tsx");let s=await a(Ir(t,r.originalText),o);return _e([i,t.lang,t.meta?" "+t.meta:"",P,be(s),P,i])}}switch(t.type){case"front-matter":return n=>fi(t,n);case"import":case"export":return n=>n(t.value,{parser:"babel"});case"jsx":return n=>n(`<$>${t.value}</$>`,{parser:"__js_expression",rootMarker:"mdx"})}return null}var di=Rl;var cr=null;function lr(e){if(cr!==null&&typeof cr.property){let r=cr;return cr=lr.prototype=null,r}return cr=lr.prototype=e??Object.create(null),new lr}var Ul=10;for(let e=0;e<=Ul;e++)lr();function Ct(e){return lr(e)}function Ml(e,r="type"){Ct(e);function t(n){let a=n[r],u=e[a];if(!Array.isArray(u))throw Object.assign(new Error(`Missing visitor keys for '${a}'.`),{node:n});return u}return t}var mi=Ml;var zl={"front-matter":[],root:["children"],paragraph:["children"],sentence:["children"],word:[],whitespace:[],emphasis:["children"],strong:["children"],delete:["children"],inlineCode:[],wikiLink:[],link:["children"],image:[],blockquote:["children"],heading:["children"],code:[],html:[],list:["children"],thematicBreak:[],linkReference:["children"],imageReference:[],definition:[],footnote:["children"],footnoteReference:[],footnoteDefinition:["children"],table:["children"],tableCell:["children"],break:[],liquidNode:[],import:[],export:[],esComment:[],jsx:[],math:[],inlineMath:[],tableRow:["children"],listItem:["children"],text:[]},Fi=zl;var Yl=mi(Fi),gi=Yl;function vi(e){switch(e){case"cr":return"\r";case"crlf":return`\r
`;default:return`
`}}var Ei=()=>/[#*0-9]\uFE0F?\u20E3|[\xA9\xAE\u203C\u2049\u2122\u2139\u2194-\u2199\u21A9\u21AA\u231A\u231B\u2328\u23CF\u23ED-\u23EF\u23F1\u23F2\u23F8-\u23FA\u24C2\u25AA\u25AB\u25B6\u25C0\u25FB\u25FC\u25FE\u2600-\u2604\u260E\u2611\u2614\u2615\u2618\u2620\u2622\u2623\u2626\u262A\u262E\u262F\u2638-\u263A\u2640\u2642\u2648-\u2653\u265F\u2660\u2663\u2665\u2666\u2668\u267B\u267E\u267F\u2692\u2694-\u2697\u2699\u269B\u269C\u26A0\u26A7\u26AA\u26B0\u26B1\u26BD\u26BE\u26C4\u26C8\u26CF\u26D1\u26E9\u26F0-\u26F5\u26F7\u26F8\u26FA\u2702\u2708\u2709\u270F\u2712\u2714\u2716\u271D\u2721\u2733\u2734\u2744\u2747\u2757\u2763\u27A1\u2934\u2935\u2B05-\u2B07\u2B1B\u2B1C\u2B55\u3030\u303D\u3297\u3299]\uFE0F?|[\u261D\u270C\u270D](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\u270A\u270B](?:\uD83C[\uDFFB-\uDFFF])?|[\u23E9-\u23EC\u23F0\u23F3\u25FD\u2693\u26A1\u26AB\u26C5\u26CE\u26D4\u26EA\u26FD\u2705\u2728\u274C\u274E\u2753-\u2755\u2795-\u2797\u27B0\u27BF\u2B50]|\u26D3\uFE0F?(?:\u200D\uD83D\uDCA5)?|\u26F9(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\u2764\uFE0F?(?:\u200D(?:\uD83D\uDD25|\uD83E\uDE79))?|\uD83C(?:[\uDC04\uDD70\uDD71\uDD7E\uDD7F\uDE02\uDE37\uDF21\uDF24-\uDF2C\uDF36\uDF7D\uDF96\uDF97\uDF99-\uDF9B\uDF9E\uDF9F\uDFCD\uDFCE\uDFD4-\uDFDF\uDFF5\uDFF7]\uFE0F?|[\uDF85\uDFC2\uDFC7](?:\uD83C[\uDFFB-\uDFFF])?|[\uDFC4\uDFCA](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDFCB\uDFCC](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDCCF\uDD8E\uDD91-\uDD9A\uDE01\uDE1A\uDE2F\uDE32-\uDE36\uDE38-\uDE3A\uDE50\uDE51\uDF00-\uDF20\uDF2D-\uDF35\uDF37-\uDF43\uDF45-\uDF4A\uDF4C-\uDF7C\uDF7E-\uDF84\uDF86-\uDF93\uDFA0-\uDFC1\uDFC5\uDFC6\uDFC8\uDFC9\uDFCF-\uDFD3\uDFE0-\uDFF0\uDFF8-\uDFFF]|\uDDE6\uD83C[\uDDE8-\uDDEC\uDDEE\uDDF1\uDDF2\uDDF4\uDDF6-\uDDFA\uDDFC\uDDFD\uDDFF]|\uDDE7\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEF\uDDF1-\uDDF4\uDDF6-\uDDF9\uDDFB\uDDFC\uDDFE\uDDFF]|\uDDE8\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDEE\uDDF0-\uDDF7\uDDFA-\uDDFF]|\uDDE9\uD83C[\uDDEA\uDDEC\uDDEF\uDDF0\uDDF2\uDDF4\uDDFF]|\uDDEA\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDED\uDDF7-\uDDFA]|\uDDEB\uD83C[\uDDEE-\uDDF0\uDDF2\uDDF4\uDDF7]|\uDDEC\uD83C[\uDDE6\uDDE7\uDDE9-\uDDEE\uDDF1-\uDDF3\uDDF5-\uDDFA\uDDFC\uDDFE]|\uDDED\uD83C[\uDDF0\uDDF2\uDDF3\uDDF7\uDDF9\uDDFA]|\uDDEE\uD83C[\uDDE8-\uDDEA\uDDF1-\uDDF4\uDDF6-\uDDF9]|\uDDEF\uD83C[\uDDEA\uDDF2\uDDF4\uDDF5]|\uDDF0\uD83C[\uDDEA\uDDEC-\uDDEE\uDDF2\uDDF3\uDDF5\uDDF7\uDDFC\uDDFE\uDDFF]|\uDDF1\uD83C[\uDDE6-\uDDE8\uDDEE\uDDF0\uDDF7-\uDDFB\uDDFE]|\uDDF2\uD83C[\uDDE6\uDDE8-\uDDED\uDDF0-\uDDFF]|\uDDF3\uD83C[\uDDE6\uDDE8\uDDEA-\uDDEC\uDDEE\uDDF1\uDDF4\uDDF5\uDDF7\uDDFA\uDDFF]|\uDDF4\uD83C\uDDF2|\uDDF5\uD83C[\uDDE6\uDDEA-\uDDED\uDDF0-\uDDF3\uDDF7-\uDDF9\uDDFC\uDDFE]|\uDDF6\uD83C\uDDE6|\uDDF7\uD83C[\uDDEA\uDDF4\uDDF8\uDDFA\uDDFC]|\uDDF8\uD83C[\uDDE6-\uDDEA\uDDEC-\uDDF4\uDDF7-\uDDF9\uDDFB\uDDFD-\uDDFF]|\uDDF9\uD83C[\uDDE6\uDDE8\uDDE9\uDDEB-\uDDED\uDDEF-\uDDF4\uDDF7\uDDF9\uDDFB\uDDFC\uDDFF]|\uDDFA\uD83C[\uDDE6\uDDEC\uDDF2\uDDF3\uDDF8\uDDFE\uDDFF]|\uDDFB\uD83C[\uDDE6\uDDE8\uDDEA\uDDEC\uDDEE\uDDF3\uDDFA]|\uDDFC\uD83C[\uDDEB\uDDF8]|\uDDFD\uD83C\uDDF0|\uDDFE\uD83C[\uDDEA\uDDF9]|\uDDFF\uD83C[\uDDE6\uDDF2\uDDFC]|\uDF44(?:\u200D\uD83D\uDFEB)?|\uDF4B(?:\u200D\uD83D\uDFE9)?|\uDFC3(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDFF3\uFE0F?(?:\u200D(?:\u26A7\uFE0F?|\uD83C\uDF08))?|\uDFF4(?:\u200D\u2620\uFE0F?|\uDB40\uDC67\uDB40\uDC62\uDB40(?:\uDC65\uDB40\uDC6E\uDB40\uDC67|\uDC73\uDB40\uDC63\uDB40\uDC74|\uDC77\uDB40\uDC6C\uDB40\uDC73)\uDB40\uDC7F)?)|\uD83D(?:[\uDC3F\uDCFD\uDD49\uDD4A\uDD6F\uDD70\uDD73\uDD76-\uDD79\uDD87\uDD8A-\uDD8D\uDDA5\uDDA8\uDDB1\uDDB2\uDDBC\uDDC2-\uDDC4\uDDD1-\uDDD3\uDDDC-\uDDDE\uDDE1\uDDE3\uDDE8\uDDEF\uDDF3\uDDFA\uDECB\uDECD-\uDECF\uDEE0-\uDEE5\uDEE9\uDEF0\uDEF3]\uFE0F?|[\uDC42\uDC43\uDC46-\uDC50\uDC66\uDC67\uDC6B-\uDC6D\uDC72\uDC74-\uDC76\uDC78\uDC7C\uDC83\uDC85\uDC8F\uDC91\uDCAA\uDD7A\uDD95\uDD96\uDE4C\uDE4F\uDEC0\uDECC](?:\uD83C[\uDFFB-\uDFFF])?|[\uDC6E\uDC70\uDC71\uDC73\uDC77\uDC81\uDC82\uDC86\uDC87\uDE45-\uDE47\uDE4B\uDE4D\uDE4E\uDEA3\uDEB4\uDEB5](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD74\uDD90](?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?|[\uDC00-\uDC07\uDC09-\uDC14\uDC16-\uDC25\uDC27-\uDC3A\uDC3C-\uDC3E\uDC40\uDC44\uDC45\uDC51-\uDC65\uDC6A\uDC79-\uDC7B\uDC7D-\uDC80\uDC84\uDC88-\uDC8E\uDC90\uDC92-\uDCA9\uDCAB-\uDCFC\uDCFF-\uDD3D\uDD4B-\uDD4E\uDD50-\uDD67\uDDA4\uDDFB-\uDE2D\uDE2F-\uDE34\uDE37-\uDE41\uDE43\uDE44\uDE48-\uDE4A\uDE80-\uDEA2\uDEA4-\uDEB3\uDEB7-\uDEBF\uDEC1-\uDEC5\uDED0-\uDED2\uDED5-\uDED7\uDEDC-\uDEDF\uDEEB\uDEEC\uDEF4-\uDEFC\uDFE0-\uDFEB\uDFF0]|\uDC08(?:\u200D\u2B1B)?|\uDC15(?:\u200D\uD83E\uDDBA)?|\uDC26(?:\u200D(?:\u2B1B|\uD83D\uDD25))?|\uDC3B(?:\u200D\u2744\uFE0F?)?|\uDC41\uFE0F?(?:\u200D\uD83D\uDDE8\uFE0F?)?|\uDC68(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDC68\uDC69]\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC Line truncated
`?N(!1,D,`
`,a):D;o.push(h),i.length>0&&(u+=fr(h));break}case H:for(let h=D.length-1;h>=0;h--)i.push({ind:p,mode:d,doc:D[h]});break;case Ce:if(c>=2)throw new Error("There are too many 'cursor' in doc.");o.push(Ve),c++;break;case re:i.push({ind:jl(p,r),mode:d,doc:D.contents});break;case te:i.push({ind:$l(p,D.n,r),mode:d,doc:D.contents});break;case fe:u-=At(o);break;case J:switch(d){case ue:if(!s){i.push({ind:p,mode:D.break?j:ue,doc:D.contents});break}case j:{s=!1;let h={ind:p,mode:ue,doc:D.contents},m=n-u,F=l.length>0;if(!D.break&&Nr(h,i,m,F,t))i.push(h);else if(D.expandedStates){let y=z(!1,D.expandedStates,-1);if(D.break){i.push({ind:p,mode:j,doc:y});break}else for(let E=1;E<D.expandedStates.length+1;E++)if(E>=D.expandedStates.length){i.push({ind:p,mode:j,doc:y});break}else{let B=D.expandedStates[E],b={ind:p,mode:ue,doc:B};if(Nr(b,i,m,F,t)){i.push(b);break}}}else i.push({ind:p,mode:j,doc:D.contents});break}}D.id&&(t[D.id]=z(!1,i,-1).mode);break;case X:{let h=n-u,m=D[bt]??0,{parts:F}=D,y=F.length-m;if(y===0)break;let E=F[m+0],B=F[m+1],b={ind:p,mode:ue,doc:E},g={ind:p,mode:j,doc:E},A=Nr(b,[],h,l.length>0,t,!0);if(y===1){A?i.push(b):i.push(g);break}let w={ind:p,mode:ue,doc:B},v={ind:p,mode:j,doc:B};if(y===2){A?i.push(w,b):i.push(v,g);break}let x=F[m+2],k={ind:p,mode:d,doc:{...D,[bt]:m+2}};Nr({ind:p,mode:ue,doc:[E,B,x]},[],h,l.length>0,t,!0)?i.push(k,w,b):A?i.push(k,v,b):i.push(k,v,g);break}case K:case De:{let h=D.groupId?t[D.groupId]:d;if(h===j){let m=D.type===K?D.breakContents:D.negate?D.contents:nr(D.contents);m&&i.push({ind:p,mode:d,doc:m})}if(h===ue){let m=D.type===K?D.flatContents:D.negate?nr(D.contents):D.contents;m&&i.push({ind:p,mode:d,doc:m})}break}case pe:l.push({ind:p,mode:d,doc:D.contents});break;case he:l.length>0&&i.push({ind:p,mode:d,doc:ur});break;case V:switch(d){case ue:if(D.hard)s=!0;else{D.soft||(o.push(" "),u+=1);break}case j:if(l.length>0){i.push({ind:p,mode:d,doc:D},...l.reverse()),l.length=0;break}D.literal?p.root?(o.push(a,p.root.value),u=p.root.length):(o.push(a),u=0):(u-=At(o),o.push(a+p.value),u=p.length);break}break;case de:i.push({ind:p,mode:d,doc:D.contents});break;case ne:break;default:throw new Te(D)}i.length===0&&l.length>0&&(i.push(...l.reverse()),l.length=0)}let f=o.indexOf(Ve);if(f!==-1){let p=o.indexOf(Ve,f+1);if(p===-1)return{formatted:o.filter(m=>m!==Ve).join("")};let d=o.slice(0,f).join(""),D=o.slice(f+1,p).join(""),h=o.slice(p+1).join("");return{formatted:d+D+h,cursorNodeStart:d.length,cursorNodeText:D}}return{formatted:o.join("")}}function xi(e,r,t){let{node:n}=e,a=[],u=e.map(()=>e.map(({index:f})=>{let p=wi(t(),r).formatted,d=fr(p);return a[f]=Math.max(a[f]??3,d),{text:p,width:d}},"children"),"children"),i=s(!1);if(r.proseWrap!=="never")return[ir,i];let o=s(!0);return[ir,Me(Qn(o,i))];function s(f){return Tr(ur,[c(u[0],f),l(f),...u.slice(1).map(p=>c(p,f))].map(p=>`| ${p.join(" | ")} |`))}function l(f){return a.map((p,d)=>{let D=n.align[d],h=D==="center"||D==="left"?":":"-",m=D==="center"||D==="right"?":":"-",F=f?"-":"-".repeat(p-2);return`${h}${F}${m}`})}function c(f,p){return f.map(({text:d,width:D},h)=>{if(p)return d;let m=a[h]-D,F=n.align[h],y=0;F==="right"?y=m:F==="center"&&(y=Math.floor(m/2));let E=m-y;return`${" ".repeat(y)}${d}${" ".repeat(E)}`})}}function ki(e,r,t){let n=e.map(t,"children");return Wl(n)}function Wl(e){let r=[""];return function t(n){for(let a of n){let u=Y(a);if(u===H){t(a);continue}let i=a,o=[];u===X&&([i,...o]=a.parts),r.push([r.pop(),i],...o)}}(e),ze(r)}var Q,wt=class{constructor(r){jn(this,Q);$n(this,Q,new Set(r))}getLeadingWhitespaceCount(r){let t=ce(this,Q),n=0;for(let a=0;a<r.length&&t.has(r.charAt(a));a++)n++;return n}getTrailingWhitespaceCount(r){let t=ce(this,Q),n=0;for(let a=r.length-1;a>=0&&t.has(r.charAt(a));a--)n++;return n}getLeadingWhitespace(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(0,t)}getTrailingWhitespace(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(r.length-t)}hasLeadingWhitespace(r){return ce(this,Q).has(r.charAt(0))}hasTrailingWhitespace(r){return ce(this,Q).has(z(!1,r,-1))}trimStart(r){let t=this.getLeadingWhitespaceCount(r);return r.slice(t)}trimEnd(r){let t=this.getTrailingWhitespaceCount(r);return r.slice(0,r.length-t)}trim(r){return this.trimEnd(this.trimStart(r))}split(r,t=!1){let n=`[${le([...ce(this,Q)].join(""))}]+`,a=new RegExp(t?`(${n})`:n,"u");return r.split(a)}hasWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>t.has(n))}hasNonWhitespaceCharacter(r){let t=ce(this,Q);return Array.prototype.some.call(r,n=>!t.has(n))}isWhitespaceOnly(r){let t=ce(this,Q);return Array.prototype.every.call(r,n=>t.has(n))}};Q=new WeakMap;var Bi=wt;var Hl=[" ",`
`,"\f","\r"," "],Kl=new Bi(Hl),xt=Kl;var Jl=/^.$/su;function Xl(e,r){return e=Ql(e,r),e=ef(e),e=tf(e,r),e=nf(e,r),e=rf(e),e}function Ql(e,r){return Ae(e,t=>t.type!=="text"||t.value==="*"||t.value==="_"||!Jl.test(t.value)||t.position.end.offset-t.position.start.offset===t.value.length?t:{...t,value:r.originalText.slice(t.position.start.offset,t.position.end.offset)})}function Zl(e,r,t){return Ae(e,n=>{if(!n.children)return n;let a=n.children.reduce((u,i)=>{let o=z(!1,u,-1);return o&&r(o,i)?u.splice(-1,1,t(o,i)):u.push(i),u},[]);return{...n,children:a}})}function ef(e){return Zl(e,(r,t)=>r.type==="text"&&t.type==="text",(r,t)=>({type:"text",value:r.value+t.value,position:{start:r.position.start,end:t.position.end}}))}function rf(e){return Ae(e,(r,t,[n])=>{if(r.type!=="text")return r;let{value:a}=r;return n.type==="paragraph"&&(t===0&&(a=xt.trimStart(a)),t===n.children.length-1&&(a=xt.trimEnd(a))),{type:"sentence",position:r.position,children:Pr(a)}})}function tf(e,r){return Ae(e,(t,n,a)=>{if(t.type==="code"){let u=/^\n?(?: {4,}|\t)/u.test(r.originalText.slice(t.position.start.offset,t.position.end.offset));if(t.isIndented=u,u)for(let i=0;i<a.length;i++){let o=a[i];if(o.hasIndentedCodeblock)break;o.type==="list"&&(o.hasIndentedCodeblock=!0)}}return t})}function nf(e,r){return Ae(e,(a,u,i)=>{if(a.type==="list"&&a.children.length>0){for(let o=0;o<i.length;o++){let s=i[o];if(s.type==="list"&&!s.isAligned)return a.isAligned=!1,a}a.isAligned=n(a)}return a});function t(a){return a.children.length===0?-1:a.children[0].position.start.column-1}function n(a){if(!a.ordered)return!0;let[u,i]=a.children;if(Ye(u,r).leadingSpaces.length>1)return!0;let s=t(u);if(s===-1)return!1;if(a.children.length===1)return s%r.tabWidth===0;let l=t(i);return s!==l?!1:s%r.tabWidth===0?!0:Ye(i,r).leadingSpaces.length>1}}var Ti=Xl;function qi(e,r){let t=[""];return e.each(()=>{let{node:n}=e,a=r();switch(n.type){case"whitespace":if(Y(a)!==G){t.push(a,"");break}default:t.push([t.pop(),a])}},"children"),ze(t)}var uf=new Set(["heading","tableCell","link","wikiLink"]),_i=new Set("!\"#$%&'()*+,-./:;<=>?@[\\]^_`{|}~");function af({parent:e}){if(e.usesCJSpaces===void 0){let r={" ":0,"":0},{children:t}=e;for(let n=1;n<t.length-1;++n){let a=t[n];if(a.type==="whitespace"&&(a.value===" "||a.value==="")){let u=t[n-1].kind,i=t[n+1].kind;(u===ie&&i===Ge||u===Ge&&i===ie)&&++r[a.value]}}e.usesCJSpaces=r[" "]>r[""]}return e.usesCJSpaces}function of(e,r){if(r)return!0;let{previous:t,next:n}=e;if(!t||!n)return!0;let a=t.kind,u=n.kind;return Si(a)&&Si(u)||a===Pe&&u===ie||u===Pe&&a===ie?!0:a===sr||u===sr||a===ie&&u===ie?!1:_i.has(n.value[0])||_i.has(z(!1,t.value,-1))?!0:t.hasTrailingPunctuation||n.hasLeadingPunctuation?!1:af(e)}function Si(e){return e===Ge||e===Pe}function sf(e,r,t,n){if(t!=="always"||e.hasAncestor(i=>uf.has(i.type)))return!1;if(n)return r!=="";let{previous:a,next:u}=e;return!a||!u?!0:r===""?!1:a.kind===Pe&&u.kind===ie||u.kind===Pe&&a.kind===ie?!0:!(a.isCJ||u.isCJ)}function kt(e,r,t,n){if(t==="preserve"&&r===`
`)return P;let a=r===" "||r===`
`&&of(e,n);return sf(e,r,t,n)?a?qr:_r:a?" ":""}var cf=new Set(["listItem","definition"]);function lf(e,r,t){var a,u;let{node:n}=e;if(mf(e)){let i=[""],o=Pr(r.originalText.slice(n.position.start.offset,n.position.end.offset));for(let s of o){if(s.type==="word"){i.push([i.pop(),s.value]);continue}let l=kt(e,s.value,r.proseWrap,!0);if(Y(l)===G){i.push([i.pop(),l]);continue}i.push(l,"")}return ze(i)}switch(n.type){case"front-matter":return r.originalText.slice(n.position.start.offset,n.position.end.offset);case"root":return n.children.length===0?"":[pf(e,r,t),P];case"paragraph":return ki(e,r,t);case"sentence":return qi(e,t);case"word":{let i=N(!1,N(!1,n.value,"*",String.raw`\*`),new RegExp([`(^|${Se.source})(_+)`,`(_+)(${Se.source}|$)`].join("|"),"gu"),(l,c,f,p,d)=>N(!1,f?`${c}${f}`:`${p}${d}`,"_",String.raw`\_`)),o=(l,c,f)=>l.type==="sentence"&&f===0,s=(l,c,f)=>Et(l.children[f-1]);return i!==n.value&&(e.match(void 0,o,s)||e.match(void 0,o,(l,c,f)=>l.type==="emphasis"&&f===0,s))&&(i=i.replace(/^(\\?[*_])+/u,l=>N(!1,l,"\\",""))),i}case"whitespace":{let{next:i}=e,o=i&&/^>|^(?:[*+-]|#{1,6}|\d+[).])$/u.test(i.value)?"never":r.proseWrap;return kt(e,n.value,o)}case"emphasis":{let i;if(Et(n.children[0]))i=r.originalText[n.position.start.offset];else{let{previous:o,next:s}=e;i=(o==null?void 0:o.type)==="sentence"&&((a=z(!1,o.children,-1))==null?void 0:a.type)==="word"&&!z(!1,o.children,-1).hasTrailingPunctuation||(s==null?void 0:s.type)==="sentence"&&((u=s.children[0])==null?void 0:u.type)==="word"&&!s.children[0].hasLeadingPunctuation||e.hasAncestor(c=>c.type==="emphasis")?"*":"_"}return[i,$(e,r,t),i]}case"strong":return["**",$(e,r,t),"**"];case"delete":return["~~",$(e,r,t),"~~"];case"inlineCode":{let i=r.proseWrap==="preserve"?n.value:N(!1,n.value,`
`," "),o=Zn(i,"`"),s="`".repeat(o||1),l=i.startsWith("`")||i.endsWith("`")||/^[\n ]/u.test(i)&&/[\n ]$/u.test(i)&&/[^\n ]/u.test(i)?" ":"";return[s,l,i,l,s]}case"wikiLink":{let i="";return r.proseWrap==="preserve"?i=n.value:i=N(!1,n.value,/[\t\n]+/gu," "),["[[",i,"]]"]}case"link":switch(r.originalText[n.position.start.offset]){case"<":{let i="mailto:";return["<",n.url.startsWith(i)&&r.originalText.slice(n.position.start.offset+1,n.position.start.offset+1+i.length)!==i?n.url.slice(i.length):n.url,">"]}case"[":return["[",$(e,r,t),"](",Bt(n.url,")"),Rr(n.title,r),")"];default:return r.originalText.slice(n.position.start.offset,n.position.end.offset)}case"image":return["![",n.alt||"","](",Bt(n.url,")"),Rr(n.title,r),")"];case"blockquote":return["> ",ye("> ",$(e,r,t))];case"heading":return["#".repeat(n.depth)+" ",$(e,r,t)];case"code":{if(n.isIndented){let s=" ".repeat(4);return ye(s,[s,be(n.value,P)])}let i=r.__inJsTemplate?"~":"`",o=i.repeat(Math.max(3,Sr(n.value,i)+1));return[o,n.lang||"",n.meta?" "+n.meta:"",P,be(Ir(n,r.originalText),P),P,o]}case"html":{let{parent:i,isLast:o}=e,s=i.type==="root"&&o?n.value.trimEnd():n.value,l=/^<!--.*-->$/su.test(s);return be(s,l?P:_e(tr))}case"list":{let i=Li(n,e.parent),o=hi(n,r);return $(e,r,t,{processor(s){let l=f(),c=s.node;if(c.children.length===2&&c.children[1].type==="html"&&c.children[0].position.start.column!==c.children[1].position.start.column)return[l,Oi(s,r,t,l)];return[l,ye(" ".repeat(l.length),Oi(s,r,t,l))];function f(){let p=n.ordered?(s.isFirst?n.start:o?1:n.start+s.index)+(i%2===0?". ":") "):i%2===0?"- ":"* ";return(n.isAligned||n.hasIndentedCodeblock)&&n.ordered?ff(p,r):p}}})}case"thematicBreak":{let{ancestors:i}=e,o=i.findIndex(l=>l.type==="list");return o===-1?"---":Li(i[o],i[o+1])%2===0?"***":"---"}case"linkReference":return["[",$(e,r,t),"]",n.referenceType==="full"?Tt(n):n.referenceType==="collapsed"?"[]":""];case"imageReference":switch(n.referenceType){case"full":return["![",n.alt||"","]",Tt(n)];default:return["![",n.alt,"]",n.referenceType==="collapsed"?"[]":""]}case"definition":{let i=r.proseWrap==="always"?qr:" ";return Me([Tt(n),":",nr([i,Bt(n.url),n.title===null?"":[i,Rr(n.title,r,!1)]])])}case"footnote":return["[^",$(e,r,t),"]"];case"footnoteReference":return Ri(n);case"footnoteDefinition":{let i=n.children.length===1&&n.children[0].type==="paragraph"&&(r.proseWrap==="never"||r.proseWrap==="preserve"&&n.children[0].position.start.line===n.children[0].position.end.line);return[Ri(n),": ",i?$(e,r,t):Me([ye(" ".repeat(4),$(e,r,t,{processor:({isFirst:o})=>o?Me([_r,t()]):t()}))])]}case"table":return xi(e,r,t);case"tableCell":return $(e,r,t);case"break":return/\s/u.test(r.originalText[n.position.start.offset])?[" ",_e(tr)]:["\\",P];case"liquidNode":return be(n.value,P);case"import":case"export":case"jsx":return n.value;case"esComment":return["{/* ",n.value," */}"];case"math":return["$$",P,n.value?[be(n.value,P),P]:"","$$"];case"inlineMath":return r.originalText.slice(Oe(n),Le(n));case"tableRow":case"listItem":case"text":default:throw new ti(n,"Markdown")}}function Oi(e,r,t,n){let{node:a}=e,u=a.checked===null?"":a.checked?"[x] ":"[ ] ";return[u,$(e,r,t,{processor({node:i,isFirst:o}){if(o&&i.type!=="list")return ye(" ".repeat(u.length),t());let s=" ".repeat(gf(r.tabWidth-n.length,0,3));return[s,ye(s,t())]}})]}function ff(e,r){let t=n();return e+" ".repeat(t>=4?0:t);function n(){let a=e.length%r.tabWidth;return a===0?0:r.tabWidth-a}}function Li(e,r){return Df(e,r,t=>t.ordered===e.ordered)}function Df(e,r,t){let n=-1;for(let a of r.children)if(a.type===e.type&&t(a)?n++:n=-1,a===e)return n}function pf(e,r,t){let n=[],a=null,{children:u}=e.node;for(let[i,o]of u.entries())switch(qt(o)){case"start":a===null&&(a={index:i,offset:o.position.end.offset});break;case"end":a!==null&&(n.push({start:a,end:{index:i,offset:o.position.start.offset}}),a=null);break;default:break}return $(e,r,t,{processor({index:i}){if(n.length>0){let o=n[0];if(i===o.start.index)return[Pi(u[o.start.index]),r.originalText.slice(o.start.offset,o.end.offset),Pi(u[o.end.index])];if(o.start.index<i&&i<o.end.index)return!1;if(i===o.end.index)return n.shift(),!1}return t()}})}function $(e,r,t,n={}){let{processor:a=t}=n,u=[];return e.each(()=>{let i=a(e);i!==!1&&(u.length>0&&hf(e)&&(u.push(P),(df(e,r)||Ni(e))&&u.push(P),Ni(e)&&u.push(P)),u.push(i))},"children"),u}function Pi(e){if(e.type==="html")return e.value;if(e.type==="paragraph"&&Array.isArray(e.children)&&e.children.length===1&&e.children[0].type==="esComment")return["{/* ",e.children[0].value," */}"]}function qt(e){let r;if(e.type==="html")r=e.value.match(/^<!--\s*prettier-ignore(?:-(start|end))?\s*-->$/u);else{let t;e.type==="esComment"?t=e:e.type==="paragraph"&&e.children.length===1&&e.children[0].type==="esComment"&&(t=e.children[0]),t&&(r=t.value.match(/^prettier-ignore(?:-(start|end))?$/u))}return r?r[1]||"next":!1}function hf({node:e,parent:r}){let t=vt.has(e.type),n=e.type==="html"&&Lr.has(r.type);return!t&&!n}function Ii(e,r){retLine truncated
`)}function df({node:e,previous:r,parent:t},n){if(Ii(r,n))return!0;let i=r.type===e.type&&cf.has(e.type),o=t.type==="listItem"&&!Ii(t,n),s=qt(r)==="next",l=e.type==="html"&&r.type==="html"&&r.position.end.line+1===e.position.start.line,c=e.type==="html"&&t.type==="listItem"&&r.type==="paragraph"&&r.position.end.line+1===e.position.start.line;return!(i||o||s||l||c)}function Ni({node:e,previous:r}){let t=r.type==="list",n=e.type==="code"&&e.isIndented;return t&&n}function mf(e){let r=e.findAncestor(t=>t.type==="linkReference"||t.type==="imageReference");return r&&(r.type!=="linkReference"||r.referenceType!=="full")}var Ff=(e,r)=>{for(let t of r)e=N(!1,e,t,encodeURIComponent(t));return e};function Bt(e,r=[]){let t=[" ",...Array.isArray(r)?r:[r]];return new RegExp(t.map(n=>le(n)).join("|"),"u").test(e)?`<${Ff(e,"<>")}>`:e}function Rr(e,r,t=!0){if(!e)return"";if(t)return" "+Rr(e,r,!1);if(e=N(!1,e,/\\(?=["')])/gu,""),e.includes('"')&&e.includes("'")&&!e.includes(")"))return`(${e})`;let n=ri(e,r.singleQuote);return e=N(!1,e,"\\","\\\\"),e=N(!1,e,n,`\\${n}`),`${n}${e}${n}`}function gf(e,r,t){return Math.max(r,Math.min(e,t))}function vf(e){return e.index>0&&qt(e.previous)==="next"}function Tt(e){return`[${(0,Ui.default)(e.label)}]`}function Ri(e){return`[^${e.label}]`}var Ef={preprocess:Ti,print:lf,embed:di,massageAstNode:ci,hasPrettierIgnore:vf,insertPragma:ai,getVisitorKeys:gi},Mi=Ef;var zi=[{linguistLanguageId:222,name:"Markdown",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".md",".livemd",".markdown",".mdown",".mdwn",".mkd",".mkdn",".mkdown",".ronn",".scd",".workbook"],filenames:["contents.lr","README"],tmScope:"text.md",parsers:["markdown"],vscodeLanguageIds:["markdown"]},{linguistLanguageId:222,name:"MDX",type:"prose",color:"#083fa1",aliases:["md","pandoc"],aceMode:"markdown",codemirrorMode:"gfm",codemirrorMimeType:"text/x-gfm",wrap:!0,extensions:[".mdx"],filenames:[],tmScope:"text.md",parsers:["mdx"],vscodeLanguageIds:["mdx"]}];var _t={bracketSpacing:{category:"Common",type:"boolean",default:!0,description:"Print spaces between brackets.",oppositeDescription:"Do not print spaces between brackets."},objectWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap object literals.",choices:[{value:"preserve",description:"Keep as multi-line, if there is a newline between the opening brace and first property."},{value:"collapse",description:"Fit to a single line when possible."}]},singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."},proseWrap:{category:"Common",type:"choice",default:"preserve",description:"How to wrap prose.",choices:[{value:"always",description:"Wrap prose if it exceeds the print width."},{value:"never",description:"Do not wrap prose."},{value:"preserve",description:"Wrap prose as-is."}]},bracketSameLine:{category:"Common",type:"boolean",default:!1,description:"Put > of opening tags on the last line instead of on a new line."},singleAttributePerLine:{category:"Common",type:"boolean",default:!1,description:"Enforce single attribute per line in HTML, Vue and JSX."}};var Cf={proseWrap:_t.proseWrap,singleQuote:_t.singleQuote},Yi=Cf;var Mn={};Gn(Mn,{markdown:()=>Nm,mdx:()=>Rm,remark:()=>Nm});var il=Ue(Vi(),1),ul=Ue(iu(),1),al=Ue(Zs(),1),ol=Ue($c(),1);var Tm=/^import\s/u,qm=/^export\s/u,Wc=String.raw`[a-z][a-z0-9]*(\.[a-z][a-z0-9]*)*|`,Hc=/<!---->|<!---?[^>-](?:-?[^-])*-->/u,_m=/^\{\s*\/\*(.*)\*\/\s*\}/u,Sm=`
`,Kc=e=>Tm.test(e),Un=e=>qm.test(e),Jc=(e,r)=>{let t=r.indexOf(Sm),n=r.slice(0,t);if(Un(n)||Kc(n))return e(n)({type:Un(n)?"export":"import",value:n})},Xc=(e,r)=>{let t=_m.exec(r);if(t)return e(t[0])({type:"esComment",value:t[1].trim()})};Jc.locator=e=>Un(e)||Kc(e)?-1:1;Xc.locator=(e,r)=>e.indexOf("{",r);var Qc=function(){let{Parser:e}=this,{blockTokenizers:r,blockMethods:t,inlineTokenizers:n,inlineMethods:a}=e.prototype;r.esSyntax=Jc,n.esComment=Xc,t.splice(t.indexOf("paragraph"),0,"esSyntax"),a.splice(a.indexOf("text"),0,"esComment")};var Om=function(){let e=this.Parser.prototype;e.blockMethods=["frontMatter",...e.blockMethods],e.blockTokenizers.frontMatter=r;function r(t,n){let a=or(n);if(a.frontMatter)return t(a.frontMatter.raw)(a.frontMatter)}r.onlyAtStart=!0},Zc=Om;function Lm(){return e=>Ae(e,(r,t,[n])=>r.type!=="html"||Hc.test(r.value)||Lr.has(n.type)?r:{...r,type:"jsx"})}var el=Lm;var Pm=function(){let e=this.Parser.prototype,r=e.inlineMethods;r.splice(r.indexOf("text"),0,"liquid"),e.inlineTokenizers.liquid=t;function t(n,a){let u=a.match(/^(\{%.*?%\}|\{\{.*?\}\})/su);if(u)return n(u[0])({type:"liquidNode",value:u[0]})}t.locator=function(n,a){return n.indexOf("{",a)}},rl=Pm;var Im=function(){let e="wikiLink",r=/^\[\[(?<linkContents>.+?)\]\]/su,t=this.Parser.prototype,n=t.inlineMethods;n.splice(n.indexOf("link"),0,e),t.inlineTokenizers.wikiLink=a;function a(u,i){let o=r.exec(i);if(o){let s=o.groups.linkContents.trim();return u(o[0])({type:e,value:s})}}a.locator=function(u,i){return u.indexOf("[",i)}},tl=Im;function sl({isMDX:e}){return r=>{let t=(0,ol.default)().use(al.default,{commonmark:!0,...e&&{blocks:[Wc]}}).use(il.default).use(Zc).use(ul.default).use(e?Qc:nl).use(rl).use(e?el:nl).use(tl);return t.run(t.parse(r))}}function nl(){}var cl={astFormat:"mdast",hasPragma:ui,locStart:Oe,locEnd:Le},Nm={...cl,parse:sl({isMDX:!1})},Rm={...cl,parse:sl({isMDX:!0})};var Um={mdast:Mi};var OC=zn;export{OC as default,zi as languages,Yi as options,Mn as parsers,Um as printers};
+5
View File
@@ -0,0 +1,5 @@
import { Parser } from "../index.js";
export declare const parsers: {
meriyah: Parser;
};
+4
View File
@@ -0,0 +1,4 @@
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.meriyah=e()}})(function(){"use strict";var x2=Object.defineProperty;var Ne=Object.getOwnPropertyDescriptor;var Ve=Object.getOwnPropertyNames;var Oe=Object.prototype.hasOwnProperty;var In=(n,e)=>{for(var u in e)x2(n,u,{get:e[u],enumerable:!0})},Re=(n,e,u,t)=>{if(e&&typeof e=="object"||typeof e=="function")for(let o of Ve(e))!Oe.call(n,o)&&o!==u&&x2(n,o,{get:()=>e[o],enumerable:!(t=Ne(e,o))||t.enumerable});return n};var Ue=n=>Re(x2({},"__esModule",{value:!0}),n);var Q1={};In(Q1,{parsers:()=>Bn});var Bn={};In(Bn,{meriyah:()=>Y1});var Me=(n,e,u,t)=>{if(!(n&&e==null))return e.replaceAll?e.replaceAll(u,t):u.global?e.replace(u,t):e.split(u).join(t)},i2=Me;var Je={0:"Unexpected token",30:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"\\8 and \\9 are not allowed in template strings",4:"Private identifier #%0 is not defined",5:"Illegal Unicode escape sequence",6:"Invalid code point %0",7:"Invalid hexadecimal escape sequence",9:"Octal literals are not allowed in strict mode",8:"Decimal integer literals with a leading zero are forbidden in strict mode",10:"Expected number in radix %0",151:"Invalid left-hand side assignment to a destructible right-hand side",11:"Non-number found after exponent indicator",12:"Invalid BigIntLiteral",13:"No identifiers allowed directly after numeric literal",14:"Escapes \\8 or \\9 are not syntactically valid escapes",15:"Escapes \\8 or \\9 are not allowed in strict mode",16:"Unterminated string literal",17:"Unterminated template literal",18:"Multiline comment was not closed properly",19:"The identifier contained dynamic unicode escape that was not closed",20:"Illegal character '%0'",21:"Missing hexadecimal digits",22:"Invalid implicit octal",23:"Invalid line break in string literal",24:"Only unicode escapes are legal in identifier names",25:"Expected '%0'",26:"Invalid left-hand side in assignment",27:"Invalid left-hand side in async arrow",28:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',29:"Member access on super must be in a method",31:"Await expression not allowed in formal parameter",32:"Yield expression not allowed in formal parameter",95:"Unexpected token: 'escaped keyword'",33:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",123:"Async functions can only be declared at the top level or inside a block",34:"Unterminated regular expression",35:"Unexpected regular expression flag",36:"Duplicate regular expression flag '%0'",37:"%0 functions must have exactly %1 argument%2",38:"Setter function argument must not be a rest parameter",39:"%0 declaration must have a name in this context",40:"Function name may not contain any reserved words or be eval or arguments in strict mode",41:"The rest operator is missing an argument",42:"A getter cannot be a generator",43:"A setter cannot be a generator",44:"A computed property name must be followed by a colon or paren",134:"Object literal keys that are strings or numbers must be a method or have a colon",46:"Found `* async x(){}` but this should be `async * x(){}`",45:"Getters and setters can not be generators",47:"'%0' can not be generator method",48:"No line break is allowed after '=>'",49:"The left-hand side of the arrow can only be destructed through assignment",50:"The binding declaration is not destructible",51:"Async arrow can not be followed by new expression",52:"Classes may not have a static property named 'prototype'",53:"Class constructor may not be a %0",54:"Duplicate constructor method in class",55:"Invalid increment/decrement operand",56:"Invalid use of `new` keyword on an increment/decrement expression",57:"`=>` is an invalid assignment target",58:"Rest element may not have a trailing comma",59:"Missing initializer in %0 declaration",60:"'for-%0' loop head declarations can not have an initializer",61:"Invalid left-hand side in for-%0 loop: Must have a single binding",62:"Invalid shorthand property initializer",63:"Property name __proto__ appears more than once in object literal",64:"Let is disallowed as a lexically bound name",65:"Invalid use of '%0' inside new expression",66:"Illegal 'use strict' directive in function with non-simple parameter list",67:'Identifier "let" disallowed as left-hand side expression in strict mode',68:"Illegal continue statement",69:"Illegal break statement",70:"Cannot have `let[...]` as a var name in strict mode",71:"Invalid destructuring assignment target",72:"Rest parameter may not have a default initializer",73:"The rest argument must tLine truncated
`);return e.length>1&&e.every(u=>u.trimStart()[0]==="*")}var Tn=L1;function F1(n){return q2(n)&&n.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(n.value)}var be=F1;var S2=null;function P2(n){if(S2!==null&&typeof S2.property){let e=S2;return S2=P2.prototype=null,e}return S2=P2.prototype=n??Object.create(null),new P2}var q1=10;for(let n=0;n<=q1;n++)P2();function Cn(n){return P2(n)}function S1(n,e="type"){Cn(n);function u(t){let o=t[e],i=n[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:t});return i}return u}var De=S1;var Te={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[] Line truncated
`;n=i2(!1,n.replace(V1,"").replace(N1,""),M1,"$1");let u="";for(;u!==n;)u=n,n=i2(!1,n,U1,`${e}$1 $2${e}`);n=n.replace(Be,"").trimEnd();let t=Object.create(null),o=i2(!1,n,Ie,"").replace(Be,"").trimEnd(),i;for(;i=Ie.exec(n);){let l=i2(!1,i[2],R1,"");if(typeof t[i[1]]=="string"||Array.isArray(t[i[1]])){let f=t[i[1]];t[i[1]]=[...J1,...Array.isArray(f)?f:[f],l]}else t[i[1]]=l}return{comments:o,pragmas:t}}function j1(n){if(!n.startsWith("#!"))return"";let e=n.indexOf(`
`);return e===-1?n:n.slice(0,e)}var qe=j1;function X1(n){let e=qe(n);e&&(n=n.slice(e.length+1));let u=Le(n),{pragmas:t,comments:o}=Fe(u);return{shebang:e,text:n,pragmas:t,comments:o}}function Se(n){let{pragmas:e}=X1(n);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function H1(n){return n=typeof n=="function"?{parse:n}:n,{astFormat:"estree",hasPragma:Se,locStart:G,locEnd:u2,...n}}var Pe=H1;function z1(n){let{filepath:e}=n;if(e){if(e=e.toLowerCase(),e.endsWith(".cjs")||e.endsWith(".cts"))return"script";if(e.endsWith(".mjs")||e.endsWith(".mts"))return"module"}}var ve=z1;var K1={next:!0,ranges:!0,webcompat:!0,loc:!0,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!1,lexical:!1,jsx:!0,uniqueKeyInPattern:!1};function $1(n,e){let u=[],t=[],o=ae(n,{...K1,module:e==="module",onComment:u,onToken:t});return o.comments=u,o.tokens=t,o}function W1(n){let{message:e,loc:u}=n;if(!u)return n;let t=`[${[u.start,u.end].map(({line:o,column:i})=>[o,i].join(":")).join("-")}]: `;return e.startsWith(t)&&(e=e.slice(t.length)),ye(e,{loc:{start:{line:u.start.line,column:u.start.column+1},end:{line:u.end.line,column:u.end.column+1}},cause:n})}function _1(n,e={}){let u=ve(e),t=(u?[u]:["module","script"]).map(i=>()=>$1(n,i)),o;try{o=se(t)}catch({errors:[i]}){throw W1(i)}return we(o,{parser:"meriyah",text:n})}var Y1=Pe(_1);return Ue(Q1);});
+4
View File
@@ -0,0 +1,4 @@
var Ne=Object.defineProperty;var In=(n,e)=>{for(var u in e)Ne(n,u,{get:e[u],enumerable:!0})};var Bn={};In(Bn,{parsers:()=>wn});var wn={};In(wn,{meriyah:()=>K1});var Ve=(n,e,u,t)=>{if(!(n&&e==null))return e.replaceAll?e.replaceAll(u,t):u.global?e.replace(u,t):e.split(u).join(t)},i2=Ve;var Oe={0:"Unexpected token",30:"Unexpected token: '%0'",1:"Octal escape sequences are not allowed in strict mode",2:"Octal escape sequences are not allowed in template strings",3:"\\8 and \\9 are not allowed in template strings",4:"Private identifier #%0 is not defined",5:"Illegal Unicode escape sequence",6:"Invalid code point %0",7:"Invalid hexadecimal escape sequence",9:"Octal literals are not allowed in strict mode",8:"Decimal integer literals with a leading zero are forbidden in strict mode",10:"Expected number in radix %0",151:"Invalid left-hand side assignment to a destructible right-hand side",11:"Non-number found after exponent indicator",12:"Invalid BigIntLiteral",13:"No identifiers allowed directly after numeric literal",14:"Escapes \\8 or \\9 are not syntactically valid escapes",15:"Escapes \\8 or \\9 are not allowed in strict mode",16:"Unterminated string literal",17:"Unterminated template literal",18:"Multiline comment was not closed properly",19:"The identifier contained dynamic unicode escape that was not closed",20:"Illegal character '%0'",21:"Missing hexadecimal digits",22:"Invalid implicit octal",23:"Invalid line break in string literal",24:"Only unicode escapes are legal in identifier names",25:"Expected '%0'",26:"Invalid left-hand side in assignment",27:"Invalid left-hand side in async arrow",28:'Calls to super must be in the "constructor" method of a class expression or class declaration that has a superclass',29:"Member access on super must be in a method",31:"Await expression not allowed in formal parameter",32:"Yield expression not allowed in formal parameter",95:"Unexpected token: 'escaped keyword'",33:"Unary expressions as the left operand of an exponentiation expression must be disambiguated with parentheses",123:"Async functions can only be declared at the top level or inside a block",34:"Unterminated regular expression",35:"Unexpected regular expression flag",36:"Duplicate regular expression flag '%0'",37:"%0 functions must have exactly %1 argument%2",38:"Setter function argument must not be a rest parameter",39:"%0 declaration must have a name in this context",40:"Function name may not contain any reserved words or be eval or arguments in strict mode",41:"The rest operator is missing an argument",42:"A getter cannot be a generator",43:"A setter cannot be a generator",44:"A computed property name must be followed by a colon or paren",134:"Object literal keys that are strings or numbers must be a method or have a colon",46:"Found `* async x(){}` but this should be `async * x(){}`",45:"Getters and setters can not be generators",47:"'%0' can not be generator method",48:"No line break is allowed after '=>'",49:"The left-hand side of the arrow can only be destructed through assignment",50:"The binding declaration is not destructible",51:"Async arrow can not be followed by new expression",52:"Classes may not have a static property named 'prototype'",53:"Class constructor may not be a %0",54:"Duplicate constructor method in class",55:"Invalid increment/decrement operand",56:"Invalid use of `new` keyword on an increment/decrement expression",57:"`=>` is an invalid assignment target",58:"Rest element may not have a trailing comma",59:"Missing initializer in %0 declaration",60:"'for-%0' loop head declarations can not have an initializer",61:"Invalid left-hand side in for-%0 loop: Must have a single binding",62:"Invalid shorthand property initializer",63:"Property name __proto__ appears more than once in object literal",64:"Let is disallowed as a lexically bound name",65:"Invalid use of '%0' inside new expression",66:"Illegal 'use strict' directive in function with non-simple parameter list",67:'Identifier "let" disallowed as left-hand side expression in strict mode',68:"Illegal continue statement",69:"Illegal break statement",70:"Cannot have `let[...]` as a var name in strict mode",71:"Invalid destructuring assignment target",72:"Rest parameter may not have a default initializer",73:"The rest argument must the be last parameter",74:"Invalid rest argument",76:"In strict mode code, functions can only be declared at top level or inside a block",77:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement",78:"Without web compatibility enabled functions can not be declared at top level, inside a block, or as the body of an if statement",79:"Class declaration can't appear in single-statement context",80:"Invalid left-hand side in for-%0",81:"Invalid assignment in for-%0",82:"for await (... of ...) is only valid in async functions and async generators",83:"The first token after the template expression should be a continuation of the template",85:"`let Line truncated
`);return e.length>1&&e.every(u=>u.trimStart()[0]==="*")}var Dn=E1;function w1(n){return q2(n)&&n.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(n.value)}var be=w1;var S2=null;function P2(n){if(S2!==null&&typeof S2.property){let e=S2;return S2=P2.prototype=null,e}return S2=P2.prototype=n??Object.create(null),new P2}var B1=10;for(let n=0;n<=B1;n++)P2();function Tn(n){return P2(n)}function I1(n,e="type"){Tn(n);function u(t){let o=t[e],i=n[o];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${o}'.`),{node:t});return i}return u}var De=I1;var Te={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[] Line truncated
`;n=i2(!1,n.replace(S1,"").replace(q1,""),V1,"$1");let u="";for(;u!==n;)u=n,n=i2(!1,n,N1,`${e}$1 $2${e}`);n=n.replace(Be,"").trimEnd();let t=Object.create(null),o=i2(!1,n,Ie,"").replace(Be,"").trimEnd(),i;for(;i=Ie.exec(n);){let l=i2(!1,i[2],v1,"");if(typeof t[i[1]]=="string"||Array.isArray(t[i[1]])){let f=t[i[1]];t[i[1]]=[...O1,...Array.isArray(f)?f:[f],l]}else t[i[1]]=l}return{comments:o,pragmas:t}}function R1(n){if(!n.startsWith("#!"))return"";let e=n.indexOf(`
`);return e===-1?n:n.slice(0,e)}var qe=R1;function U1(n){let e=qe(n);e&&(n=n.slice(e.length+1));let u=Le(n),{pragmas:t,comments:o}=Fe(u);return{shebang:e,text:n,pragmas:t,comments:o}}function Se(n){let{pragmas:e}=U1(n);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function M1(n){return n=typeof n=="function"?{parse:n}:n,{astFormat:"estree",hasPragma:Se,locStart:G,locEnd:u2,...n}}var Pe=M1;function J1(n){let{filepath:e}=n;if(e){if(e=e.toLowerCase(),e.endsWith(".cjs")||e.endsWith(".cts"))return"script";if(e.endsWith(".mjs")||e.endsWith(".mts"))return"module"}}var ve=J1;var j1={next:!0,ranges:!0,webcompat:!0,loc:!0,raw:!0,directives:!0,globalReturn:!0,impliedStrict:!1,preserveParens:!1,lexical:!1,jsx:!0,uniqueKeyInPattern:!1};function X1(n,e){let u=[],t=[],o=ae(n,{...j1,module:e==="module",onComment:u,onToken:t});return o.comments=u,o.tokens=t,o}function H1(n){let{message:e,loc:u}=n;if(!u)return n;let t=`[${[u.start,u.end].map(({line:o,column:i})=>[o,i].join(":")).join("-")}]: `;return e.startsWith(t)&&(e=e.slice(t.length)),ye(e,{loc:{start:{line:u.start.line,column:u.start.column+1},end:{line:u.end.line,column:u.end.column+1}},cause:n})}function z1(n,e={}){let u=ve(e),t=(u?[u]:["module","script"]).map(i=>()=>X1(n,i)),o;try{o=se(t)}catch({errors:[i]}){throw H1(i)}return we(o,{parser:"meriyah",text:n})}var K1=Pe(z1);var $0=Bn;export{$0 as default,wn as parsers};
+7
View File
@@ -0,0 +1,7 @@
import { Parser } from "../index.js";
export declare const parsers: {
css: Parser;
less: Parser;
scss: Parser;
};
+54
View File
@@ -0,0 +1,54 @@
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.postcss=e()}})(function(){"use strict";var hl=Object.create;var Tt=Object.defineProperty;var dl=Object.getOwnPropertyDescriptor;var ml=Object.getOwnPropertyNames;var yl=Object.getPrototypeOf,gl=Object.prototype.hasOwnProperty;var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),Zs=(t,e)=>{for(var s in e)Tt(t,s,{get:e[s],enumerable:!0})},en=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ml(e))!gl.call(t,n)&&n!==s&&Tt(t,n,{get:()=>e[n],enumerable:!(r=dl(e,n))||r.enumerable});return t};var xe=(t,e,s)=>(s=t!=null?hl(yl(t)):{},en(e||!t||!t.__esModule?Tt(s,"default",{value:t,enumerable:!0}):s,t)),wl=t=>en(Tt({},"__esModule",{value:!0}),t);var bi=g((bv,ss)=>{var _=String,xi=function(){return{isColorSupported:!1,reset:_,bold:_,dim:_,italic:_,underline:_,inverse:_,hidden:_,strikethrough:_,black:_,red:_,green:_,yellow:_,blue:_,magenta:_,cyan:_,white:_,gray:_,bgBlack:_,bgRed:_,bgGreen:_,bgYellow:_,bgBlue:_,bgMagenta:_,bgCyan:_,bgWhite:_,blackBright:_,redBright:_,greenBright:_,yellowBright:_,blueBright:_,magentaBright:_,cyanBright:_,whiteBright:_,bgBlackBright:_,bgRedBright:_,bgGreenBright:_,bgYellowBright:_,bgBlueBright:_,bgMagentaBright:_,bgCyanBright:_,bgWhiteBright:_}};ss.exports=xi();ss.exports.createColors=xi});var ns=g(()=>{});var Yt=g((kv,ki)=>{"use strict";var _i=bi(),Ei=ns(),ot=class t extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let s=this.source;e==null&&(e=_i.isColorSupported);let r=f=>f,n=f=>f,i=f=>f;if(e){let{bold:f,gray:p,red:l}=_i.createColors(!0);n=y=>f(l(y)),r=y=>p(y),Ei&&(i=y=>Ei(y))}let o=s.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;return o.slice(u,a).map((f,p)=>{let l=u+1+p,y=" "+(" "+l).slice(-c)+" | ";if(l===this.line){if(f.length>160){let h=20,d=Math.max(0,this.column-h),m=Math.max(this.column+h,this.endColumn+h),b=f.slice(d,m),w=r(y.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,h-1)).replace(/[^\t]/g," ");return n(">")+r(y)+i(b)+`
`+w+n("^")}let x=r(y.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(y)+i(f)+`
`+x+n("^")}return" "+r(y)+i(f)}).join(`
`)}toString(){let e=this.showSourceCode();return e&&(e=`
`+e+`
`),this.name+": "+this.message+e}};ki.exports=ot;ot.default=ot});var Vt=g((Sv,Ti)=>{"use strict";var Si={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function wc(t){return t[0].toUpperCase()+t.slice(1)}var at=class{constructor(e){this.builder=e}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(`
`)){let o=this.raw(e,null,"indent");if(o.length)for(let u=0;u<i;u++)r+=o}return r}block(e,s){let r=this.raw(e,"between","beforeOpen");this.builder(s+r+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let s=e.nodes.length-1;for(;s>0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,s!==n||r)}}comment(e){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+s+e.text+r+"*/",e)}decl(e,s){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),s&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,s,r){let n;if(r||(r=s),s&&(n=e.raws[s],typeof n<"u"))return n;let i=e.parent;if(r==="before"&&(!i||i.type==="root"&&i.first===e||i&&i.type==="document"))return"";if(!i)return Si[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let u="raw"+wc(r);this[u]?n=this[u](o,e):o.walk(a=>{if(n=a.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=Si[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(`
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(e,s){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,s){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let s;return e.walk(r=>{if(r.type!=="decl"&&(s=r.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(e){let s;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return s=r.raws.before,s.includes(`
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(e){let s;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return s=r.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(s=r.raws.after,typeof s<"u"))return!1}),s}rawIndent(e){if(e.raws.indent)return e.raws.indent;let s;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(`
`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}};Ti.exports=at;at.default=at});var ut=g((Tv,Ci)=>{"use strict";var vc=Vt();function is(t,e){new vc(e).stringify(t)}Ci.exports=is;is.default=is});var zt=g((Cv,os)=>{"use strict";os.exports.isClean=Symbol("isClean");os.exports.my=Symbol("my")});var pt=g((Ov,Oi)=>{"use strict";var xc=Yt(),bc=Vt(),_c=ut(),{isClean:lt,my:Ec}=zt();function as(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>as(o,s)):(i==="object"&&n!==null&&(n=as(n)),s[r]=n)}return s}function ct(t,e){if(e&&typeof e.offset<"u")return e.offset;let s=1,r=1,n=0;for(let i=0;i<t.length;i++){if(r===e.line&&s===e.column){n=i;break}t[i]===`
`?(s=1,r+=1):s+=1}return n}var ft=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[lt]=!1,this[Ec]=!0;for(let s in e)if(s==="nodes"){this.nodes=[];for(let r of e[s])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[s]=e[s]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let s=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let s in e)this[s]=e[s];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let s=as(this);for(let r in e)s[r]=e[r];return s}cloneAfter(e={}){let s=this.clone(e);return this.parent.insertAfter(this,s),s}cloneBefore(e={}){let s=this.clone(e);return this.parent.insertBefore(this,s),s}error(e,s={}){if(this.source){let{end:r,start:n}=this.rangeBy(s);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},s)}return new xc(e)}getProxyProcessor(){return{get(e,s){return s==="proxyOf"?e:s==="root"?()=>e.root().toProxy():e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0}}}markClean(){this[lt]=!0}markDirty(){if(this[lt]){this[lt]=!1;let e=this;for(;e=e.parent;)e[lt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let s=this.source.start;if(e.index)s=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(ct(r,this.source.start),ct(r,this.source.end)).indexOf(e.word);i!==-1&&(s=this.positionInside(i))}return s}positionInside(e){let s=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=ct(n,this.source.start),o=i+e;for(let u=i;u<o;u++)n[u]===`
`?(s=1,r+=1):s+=1;return{column:s,line:r}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let s={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:s.column+1,line:s.line};if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,o=n.slice(ct(n,this.source.start),ct(n,this.source.end)).indexOf(e.word);o!==-1&&(s=this.positionInside(o),r=this.positionInside(o+e.word.length))}else e.start?s={column:e.start.column,line:e.start.line}:e.index&&(s=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<s.line||r.line===s.line&&r.column<=s.column)&&(r={column:s.column+1,line:s.line}),{end:r,start:s}}raw(e,s){return new bc().raw(this,e,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let s=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(s,n),s=n):this.parent.insertBefore(s,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,s){let r={},n=s==null;s=s||new Map;let i=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let u=this[o];if(Array.isArray(u))r[o]=u.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,s):a);else if(typeof u=="object"&&u.toJSON)r[o]=u.toJSON(null,s);else if(o==="source"){let a=s.get(u.input);a==null&&(a=i,s.set(u.input,i),i++),r[o]={end:u.end,inputId:a,start:u.start}}else r[o]=u}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=_c){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}warn(e,s,r){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}};Oi.exports=ft;ft.default=ft});var Re=g((Av,Ai)=>{"use strict";var kc=pt(),ht=class extends kc{constructor(e){super(e),this.type="comment"}};Ai.exports=ht;ht.default=ht});var mt=g((Nv,Ni)=>{"use strict";var Sc=pt(),dt=class extends Sc{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Ni.exports=dt;dt.default=dt});var le=g((Pv,Ui)=>{"use strict";var Pi=Re(),Ri=mt(),Tc=pt(),{isClean:Ii,my:qi}=zt(),us,Li,Di,ls;function Bi(t){return t.map(e=>(e.nodes&&(e.nodes=Bi(e.nodes)),delete e.source,e))}function Mi(t){if(t[Ii]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Mi(e)}var z=class t extends Tc{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]<this.proxyOf.nodes.length&&(r=this.indexes[s],n=e(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[s]+=1;return delete this.indexes[s],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,s){return s==="proxyOf"?e:e[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?(...r)=>e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.root().toProxy():s==="nodes"?e.nodes.map(r=>r.toProxy()):s==="first"||s==="last"?e[s].toProxy():e[s]:e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="name"||s==="params"||s==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,s){let r=this.index(e),n=this.normalize(s,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r<i&&(this.indexes[o]=i+n.length);return this.markDirty(),this}insertBefore(e,s){let r=this.index(e),n=r===0?"prepend":!1,i=this.normalize(s,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let u of i)this.proxyOf.nodes.splice(r,0,u);let o;for(let u in this.indexes)o=this.indexes[u],r<=o&&(this.indexes[u]=o+i.length);return this.markDirty(),this}normalize(e,s){if(typeof e=="string")e=Bi(Li(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent. Line truncated
`);r=new Array(i.length);let o=0;for(let u=0,a=i.length;u<a;u++)r[u]=o,o+=i[u].length+1;this[ps]=r}s=r[r.length-1];let n=0;if(e>=s)n=r.length-1;else{let i=r.length-2,o;for(;n<i;)if(o=n+(i-n>>1),e<r[o])i=o-1;else if(e>=r[o+1])n=o+1;else{n=o;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ds(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:s,line:e});if(!o.source)return!1;let u;typeof r=="number"&&(u=i.originalPositionFor({column:n,line:r}));let a;hs(o.source)?a=Gt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||Gt(this.map.mapFile));let c={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Vi)c.file=Vi(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};ji.exports=Ie;Ie.default=Ie;fs&&fs.registerInput&&fs.registerInput(Ie)});var jt=g((Mv,Ki)=>{"use strict";var Hi=le(),Le=class extends Hi{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Ki.exports=Le;Le.default=Le;Hi.registerAtRule(Le)});var De=g((Uv,Zi)=>{"use strict";var Qi=le(),Ji,Xi,ce=class extends Qi{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Ji(new Xi,this,e).stringify()}};ce.registerLazyResult=t=>{Ji=t};ce.registerProcessor=t=>{Xi=t};Zi.exports=ce;ce.default=ce;Qi.registerRoot(ce)});var ms=g((Fv,eo)=>{"use strict";var yt={comma(t){return yt.split(t,[","],!0)},space(t){let e=[" ",`
`," "];return yt.split(t,e)},split(t,e,s){let r=[],n="",i=!1,o=0,u=!1,a="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:u?f===a&&(u=!1):f==='"'||f==="'"?(u=!0,a=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r}};eo.exports=yt;yt.default=yt});var Ht=g(($v,ro)=>{"use strict";var to=le(),Lc=ms(),Be=class extends to{get selectors(){return Lc.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};ro.exports=Be;Be.default=Be;to.registerRule(Be)});var Jt=g((Wv,no)=>{"use strict";var Kt=/[\t\n\f\r "#'()/;[\\\]{}]/g,Qt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Dc=/.[\r\n"'(/\\]/,so=/[\da-f]/i;no.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,y,x,h=r.length,d=0,m=[],b=[];function w(){return d}function v(W){throw e.error("Unclosed "+W,d)}function N(){return b.length===0&&d>=h}function F(W){if(b.length)return b.pop();if(d>=h)return;let T=W?W.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case 10:case 32:case 9:case 13:case 12:{a=d;do a+=1,i=r.charCodeAt(a);while(i===32||i===10||i===9||i===13||i===12);f=["space",r.slice(d,a)],d=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let C=String.fromCharCode(i);f=[C,C,d];break}case 40:{if(x=m.length?m.pop()[1]:"",y=r.charCodeAt(d+1),x==="url"&&y!==39&&y!==34&&y!==32&&y!==10&&y!==9&&y!==12&&y!==13){a=d;do{if(p=!1,a=r.indexOf(")",a+1),a===-1)if(n||T){a=d;break}else v("bracket");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["brackets",r.slice(d,a+1),d,a],d=a}else a=r.indexOf(")",d+1),o=r.slice(d,a+1),a===-1||Dc.test(o)?f=["(","(",d]:(f=["brackets",o,d,a],d=a);break}case 39:case 34:{c=i===39?"'":'"',a=d;do{if(p=!1,a=r.indexOf(c,a+1),a===-1)if(n||T){a=d+1;break}else v("string");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["string",r.slice(d,a+1),d,a],d=a;break}case 64:{Kt.lastIndex=d+1,Kt.test(r),Kt.lastIndex===0?a=r.length-1:a=Kt.lastIndex-2,f=["at-word",r.slice(d,a+1),d,a],d=a;break}case 92:{for(a=d,u=!0;r.charCodeAt(a+1)===92;)a+=1,u=!u;if(i=r.charCodeAt(a+1),u&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(a+=1,so.test(r.charAt(a)))){for(;so.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}f=["word",r.slice(d,a+1),d,a],d=a;break}default:{i===47&&r.charCodeAt(d+1)===42?(a=r.indexOf("*/",d+2)+1,a===0&&(n||T?a=r.length:v("comment")),f=["comment",r.slice(d,a+1),d,a],d=a):(Qt.lastIndex=d+1,Qt.test(r),Qt.lastIndex===0?a=r.length-1:a=Qt.lastIndex-2,f=["word",r.slice(d,a+1),d,a],m.push(f),d=a);break}}return d++,f}function Q(W){b.push(W)}return{back:Q,endOfFile:N,nextToken:F,position:w}}});var Xt=g((Yv,ao)=>{"use strict";var Bc=jt(),Mc=Re(),Uc=mt(),Fc=De(),io=Ht(),$c=Jt(),oo={empty:!0,space:!0};function Wc(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var ys=class{constructor(e){this.input=e,this.root=new Fc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let s=new Bc;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,u=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(a.length>0){for(i=a.length-1,n=a[i];n&&n[0]==="space";)n=a[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),o&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),u&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let s=0,r,n,i;for(let[o,u]of e.entries()){if(n=u,i=n[0],i==="("&&(s+=1),i===")"&&(s-=1),s===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=n}return!1}comment(e){let s=new Mc;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}createTokenizer(){this.tokenizer=$c(this.input)}decl(e,s){let r=new Uc;this.init(r,e[0][2]);let n=e[e.le Line truncated
`))),n=t[1].substring(t[1].indexOf(`
`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new jc(n),this.tokenizer=Gc(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),gs.exports.isInlineComment.bind(this)(t)}return!1}}});var fo=g((Gv,co)=>{co.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(u=>u[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var ho=g((jv,po)=>{var Hc=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Kc=/\.[0-9]/,Qc=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&Hc.test(e)===!1&&Kc.test(e)===!1};po.exports={isMixinToken:Qc}});var yo=g((Hv,mo)=>{var Jc=Jt(),Xc=/^url\((.+)\)/;mo.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=Jc({css:s});for(t.filename=s.replace(Xc,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var xo=g((Kv,vo)=>{var go=/:$/,wo=/^:(\s+)?/;vo.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(go.test(e)){let[r]=e.match(go);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(wo.test(s)){let[r]=s.match(wo);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var Eo=g((Jv,_o)=>{var Zc=Re(),ef=Xt(),{isInlineComment:tf}=lo(),{interpolation:bo}=fo(),{isMixinToken:rf}=ho(),sf=yo(),nf=xo(),of=/(!\s*important)$/i;_o.exports=class extends ef{constructor(...e){super(...e),this.lastNode=null}atrule(e){bo.bind(this)(e)||(super.atrule(e),sf(this.lastNode),nf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(u=>u[0]==="("),r=e.reverse().find(u=>u[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new Zc,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((w,v,N)=>v[0]===")"?N:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),y=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(y,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let u=[];for(let c of e)if((c[1]==="!"||u.length)&&u.push(c),c[1]==="important")break;if(u.length){let[c]=u,f=e.indexOf(c),p=u[u.length-1],l=[c[2],c[3]],y=[p[4],p[5]],h=["word",u.map(d=>d[1]).join("")].concat(l,y);e.splice(f,u.length,h)}let a=e.findIndex(c=>of.test(c[1]));a>0&&([,o]=e[a],e.splice(a,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){tf.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),bo.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(rf(s)){this.mixin(e);return}super.unknownWord(e)}}});var So=g((Zv,ko)=>{var af=Vt();ko.exports=class extends af{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let u=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+u,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var To=g((ex,ws)=>{var uf=qe(),lf=Eo(),cf=So();ws.exports={parse(t,e){let s=new uf(t,e),r=new lf(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndex Line truncated
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let u=s(...o);return u.postcssPlugin=e,u.postcssVersion=new Ss().version,u}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,u,a){return k([n(a)]).process(o,u)},n};k.stringify=jf;k.parse=zf;k.fromJSON=Ff;k.list=Yf;k.comment=t=>new Go(t);k.atRule=t=>new zo(t);k.decl=t=>new jo(t);k.rule=t=>new Qo(t);k.root=t=>new Ko(t);k.document=t=>new Ho(t);k.CssSyntaxError=Uf;k.Declaration=jo;k.Container=Mf;k.Processor=Ss;k.Document=Ho;k.Comment=Go;k.Warning=Hf;k.AtRule=zo;k.Result=Gf;k.Input=$f;k.Rule=Qo;k.Root=Ko;k.Node=Vf;Wf.registerPostcss(k);Jo.exports=k;k.default=k});var Zo=g((dx,Xo)=>{var{Container:Kf}=rr(),Ts=class extends Kf{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};Xo.exports=Ts});var ra=g((mx,ta)=>{"use strict";var sr=/[\t\n\f\r "#'()/;[\\\]{}]/g,nr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Qf=/.[\r\n"'(/\\]/,ea=/[\da-f]/i,ir=/[\n\f\r]/g;ta.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,y,x=r.length,h=0,d=[],m=[],b;function w(){return h}function v(T){throw e.error("Unclosed "+T,h)}function N(){return m.length===0&&h>=x}function F(){let T=1,C=!1,O=!1;for(;T>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),C?!O&&i===C?(C=!1,O=!1):i===92?O=!O:O&&(O=!1):i===39||i===34?C=i:i===125?T-=1:i===35&&l===123&&(T+=1)}function Q(T){if(m.length)return m.pop();if(h>=x)return;let C=T?T.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case 10:case 32:case 9:case 13:case 12:{o=h;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);y=["space",r.slice(h,o)],h=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let O=String.fromCharCode(i);y=[O,O,h];break}case 44:{y=["word",",",h,h+1];break}case 40:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==39&&l!==34){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===92)f=!f;else if(l===40)b+=1;else if(l===41&&(b-=1,b===0))break;o+=1}a=r.slice(h,o+1),y=["brackets",a,h,o],h=o}else o=r.indexOf(")",h+1),a=r.slice(h,o+1),o===-1||Qf.test(a)?y=["(","(",h]:(y=["brackets",a,h,o],h=o);break}case 39:case 34:{for(u=i,o=h,f=!1;o<x&&(o++,o===x&&v("string"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),!(!f&&i===u));)i===92?f=!f:f?f=!1:i===35&&l===123&&F();y=["string",r.slice(h,o+1),h,o],h=o;break}case 64:{sr.lastIndex=h+1,sr.test(r),sr.lastIndex===0?o=r.length-1:o=sr.lastIndex-2,y=["at-word",r.slice(h,o+1),h,o],h=o;break}case 92:{for(o=h,c=!0;r.charCodeAt(o+1)===92;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(o+=1,ea.test(r.charAt(o)))){for(;ea.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===32&&(o+=1)}y=["word",r.slice(h,o+1),h,o],h=o;break}default:l=r.charCodeAt(h+1),i===35&&l===123?(o=h,F(),a=r.slice(h,o+1),y=["word",a,h,o],h=o):i===47&&l===42?(o=r.indexOf("*/",h+2)+1,o===0&&(n||C?o=r.length:v("comment")),y=["comment",r.slice(h,o+1),h,o],h=o):i===47&&l===47?(ir.lastIndex=h+1,ir.test(r),ir.lastIndex===0?o=r.length-1:o=ir.lastIndex-2,a=r.slice(h,o+1),y=["comment",a,h,o,"inline"],h=o):(nr.lastIndex=h+1,nr.test(r),nr.lastIndex===0?o=r.length-1:o=nr.lastIndex-2,y=["word",r.slice(h,o+1),h,o],d.push(y),h=o);break}return h++,y}function W(T){m.push(T)}return{back:W,endOfFile:N,nextToken:Q,position:w}}});var na=g((yx,sa)=>{var{Comment:Jf}=rr(),Xf=Xt(),Zf=Zo(),ep=ra(),Cs=class extends Xf{atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}comment(e){if(e[4]==="inline"){let s=new Jf;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={column:r.col,line:r.line,offset:e[3]+1};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=ep(this.input)}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,u)=>{if(u[0]==="comment"&&u[4]==="inline"){let a=u[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+a+"*/"}else return o+u[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(`
`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new Zf;this.init(i,e[0][2]);let o;for(let a=e.length-1;a>=0;a--)if(e[a][0]!=="space"){o=e[a];break}if(o[3]){let a=this.input.fromOffset(o[3]);i.source.end={column:a.col,line:a.line,offset:o[3]+1}}else{let a=this.input.fromOffset(o[2]);i.source.end={column:a.col,line:a.line,offset:o[2]+1}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let a=this.input.fromOffset(e[0][2]);i.source.start={column:a.col,line:a.line,offset:e[0][2]}}for(i.prop="";e.length;){let a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let a=e.length-1;a>0;a--){if(u=e[a],u[1]==="!important"){i.important=!0;let c=this.stringFrom(e,a);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(u[1]==="important"){let c=e.slice(0),f="";for(let p=a;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(u[0]!=="space"&&u[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};sa.exports=Cs});var oa=g((gx,ia)=>{var{Input:tp}=rr(),rp=na();ia.exports=function(e,s){let r=new tp(e,s),n=new rp(r);return n.parse(),n.root}});var As=g(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});function np(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Os.default=np});var Ps=g(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var ip=As(),ua=op(ip);function op(t){return t&&t.__esModule?t:{default:t}}function Et(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(s){s.parent=e})}Et.prototype=Object.create(ua.default.prototype);Et.constructor=ua.default;Et.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o<this.nodes.length;o++){var u=this.nodes[o],a=r?i.test(u.type):!0;if(a&&n&&n(u,o,this.nodes)===!1||u.nodes&&u.walk(e,s)===!1)return!1}return!0};Et.prototype.each=function(){for(var e=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],s=0;s<this.nodes.length;s++){var r=this.nodes[s];if(e(r,s,this.nodes)===!1)return!1}return!0};Ns.default=Et});var pa=g(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.parseMediaFeature=fa;kt.parseMediaQuery=Is;kt.parseMediaList=lp;var ap=As(),la=ca(ap),up=Ps(),Rs=ca(up);function ca(t){return t&&t.__esModule?t:{default:t}}function fa(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,u=null,a=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),a++);for(var f=0;f<c.length;f++){var p=c[f];if((p==="'"||p==='"')&&(s[n].isCalculationEnabled===!0?(s.push({mode:"string",isCalculationEnabled:!1,character:p}),n++):s[n].mode==="string"&&s[n].character===p&&c[f-1]!=="\\"&&(s.pop(),n--)),p==="{"?(s.push({mode:"interpolation",isCalculationEnabled:!0}),n++):p==="}"&&(s.pop(),n--),s[n].mode==="normal"&&p===":"){var l=c.substring(f+1);u={type:"value",before:/^(\s*)/.exec(l)[1],after:/(\s*)$/.exec(l)[1],value:l.trim()},u.sourceIndex=u.before.length+f+1+a,o={type:"colon",sourceIndex:f+a,after:u.before,value:":"};break}i+=p}return i={type:"media-feature",before:/^(\s*)/.exec(i)[1],after:/(\s*)$/.exec(i)[1],value:i.trim()},i.sourceIndex=i.before.length+a,r.push(i),o!==null&&(o.before=i.after,r.push(o)),u!==null&&r.push(u),r}function Is(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[],r=0,n=!1,i=void 0;function o(){return{before:"",after:"",value:""}}i=o();for(var u=0;u<t.length;u++){var a=t[u];n?(i.value+=a,(a==="{"||a==="(")&&r++,(a===")"||a==="}")&&r--):a.search(/\s/)!==-1?i.before+=a:(a==="("&&(i.type="media-feature-expression",r++),i.value=a,i.sourceIndex=e+u,n=!0),n&&r===0&&(a===")"||u===t.length-1||t[u+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(i.value)!==-1&&(i.type="keyword"),i.type==="media-feature-expression"&&(i.nodes=fa(i.value,i.sourceIndex)),s.push(Array.isArray(i.nodes)?new Rs.default(i):new la.default(i)),i=o(),n=!1)}for(var c=0;c<s.length;c++)if(i=s[c],c>0&&(s[c-1].after=i.before),i.type===void 0){if(c>0){if(s[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(s[c-1].value==="not" Line truncated
`),u=o.length-1,u>0?(f=d+u,p=n-o[u].length):(f=d,p=h),e.push(["comment",a,d,m-h,f,n-p,m]),h=p,d=f,m=n):(kr.lastIndex=m+1,kr.test(s),kr.lastIndex===0?n=s.length-1:n=kr.lastIndex-2,e.push(["word",s.slice(m,n+1),d,m-h,d,n-h,m]),m=n);break}m++}return e}ru.exports=Sr.default});var ou=g((Tr,iu)=>{"use strict";Tr.__esModule=!0;var $d=function(){function t(e,s){for(var r=0;r<s.length;r++){var n=s[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,s,r){return s&&t(e.prototype,s),r&&t(e,r),e}}(),Wd=Ds(),Yd=I(Wd),Vd=Bs(),Vs=I(Vd),zd=Ms(),Gd=I(zd),jd=Ea(),Hd=I(jd),Kd=Sa(),zs=I(Kd),Qd=Oa(),Jd=I(Qd),Xd=Na(),Zd=I(Xd),em=Ra(),tm=I(em),rm=qa(),sm=I(rm),nm=Da(),im=I(nm),om=Ma(),am=I(om),um=Fa(),lm=I(um),cm=Wa(),fm=I(cm),pm=Va(),hm=I(pm),dm=Ga(),mm=I(dm),ym=Ha(),gm=I(ym),wm=su(),nu=I(wm),vm=B(),xm=bm(vm);function bm(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e.default=t,e}function I(t){return t&&t.__esModule?t:{default:t}}function _m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Em=function(){function t(e){_m(this,t),this.input=e,this.lossy=e.options.lossless===!1,this.position=0,this.root=new Hd.default;var s=new zs.default;return this.root.append(s),this.current=s,this.lossy?this.tokens=(0,nu.default)({safe:e.safe,css:e.css.trim()}):this.tokens=(0,nu.default)(e),this.loop()}return t.prototype.attribute=function(){var s="",r=void 0,n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)s+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~s.indexOf("]")&&this.error("Expected a closing square bracket.");var i=s.split(/((?:[*~^$|]?=))([^]*)/),o=i[0].split(/(\|)/g),u={operator:i[1],value:i[2],source:{start:{line:n[2],column:n[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:n[4]};if(o.length>1?(o[0]===""&&(o[0]=!0),u.attribute=this.parseValue(o[2]),u.namespace=this.parseNamespace(o[0])):u.attribute=this.parseValue(i[0]),r=new lm.default(u),i[2]){var a=i[2].split(/(\s+i\s*?)$/),c=a[0].trim();r.value=this.lossy?c:a[0],a[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=a[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new hm.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(s.spaces.before=this.parseSpace(this.currToken[1]),s.source.start.line=this.nextToken[2],s.source.start.column=this.nextToken[3],s.source.end.column=this.nextToken[3],s.source.end.line=this.nextToken[2],s.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?s.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?s.value=this.currToken[1]:this.currToken[0]==="space"&&(s.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(s)},t.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var s=new zs.default;this.current.parent.append(s),this.current=s,this.position++},t.prototype.comment=function(){var s=new Zd.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(s),this.position++},t.prototype.error=function(s){throw new this.input.error(s)},t.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},t.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},t.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},t.prototype.namespace=function(){var s=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(s);if(this.nextToken[0]==="*")return this.position++,this.universal(s)},t.prototype.nesting=function(){this.newNode(new mm.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},t.prototype.parentheses=function(){var s=this.current.last;if(s&&s.type===xm.PSEUDO){var r=new zs.default,n=this.current;s.append(r),this.current=r;var i=1;for(this.position++;this.position<this.tokens.length&&i;)this.currToken[0]==="("&&i++,this.currToken[0]===")"&&i--,i?this.parse():(r.parent.source.end.line=this.currToken[2],r.parent.source.end.column=th Line truncated
`?(r=1,n+=1):r+=1;return{line:n,column:r}}positionBy(e){let s=this.source.start;if(Object(e).index)s=this.positionInside(e.index);else if(Object(e).word){let r=this.toString().indexOf(e.word);r!==-1&&(s=this.positionInside(r))}return s}}});var U=g((Gx,fu)=>{"use strict";var Pm=G(),Fe=class extends Pm{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]<this.nodes.length&&(r=this.indexes[s],n=e(this.nodes[r],r),n!==!1);)this.indexes[s]+=1;return delete this.indexes[s],n}}walk(e){return this.each((s,r)=>{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Fe.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Fe.prototype[e]&&(Fe.prototype[e]=function(s){return this.walkType(t,s)})};fu.exports=Fe});var hu=g((Hx,pu)=>{"use strict";var Rm=U();pu.exports=class extends Rm{constructor(e){super(e),this.type="root"}}});var mu=g((Qx,du)=>{"use strict";var Im=U();du.exports=class extends Im{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var wu=g((Jx,gu)=>{"use strict";var yu=U(),Or=class extends yu{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};yu.registerWalker(Or);gu.exports=Or});var xu=g((Xx,vu)=>{"use strict";var qm=U(),Lm=G(),Ar=class extends Lm{constructor(e){super(e),this.type="colon"}};qm.registerWalker(Ar);vu.exports=Ar});var _u=g((Zx,bu)=>{"use strict";var Dm=U(),Bm=G(),Nr=class extends Bm{constructor(e){super(e),this.type="comma"}};Dm.registerWalker(Nr);bu.exports=Nr});var ku=g((eb,Eu)=>{"use strict";var Mm=U(),Um=G(),Pr=class extends Um{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Mm.registerWalker(Pr);Eu.exports=Pr});var Cu=g((tb,Tu)=>{"use strict";var Su=U(),Rr=class extends Su{constructor(e){super(e),this.type="func",this.unbalanced=-1}};Su.registerWalker(Rr);Tu.exports=Rr});var Au=g((rb,Ou)=>{"use strict";var Fm=U(),$m=G(),Ir=class extends $m{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};Fm.registerWalker(Ir);Ou.exports=Ir});var Pu=g((sb,Nu)=>{"use strict";var Wm=U(),Ym=G(),qr=class extends Ym{constructor(e){super(e),this.type="operator"}};Wm.registerWalker(qr);Nu.exports=qr});var Iu=g((nb,Ru)=>{"use strict";var Vm=U(),zm=G(),Lr=class extends zm{constructor(e){super(e),this.type="paren",this.parenType=""}};Vm.registerWalker(Lr);Ru.exports=Lr});var Lu=g((ib,qu)=>{"use strict";var Gm=U(),jm=G(),Dr=class extends jm{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};Gm.registerWalker(Dr);qu.exports=Dr});var Bu=g((ob,Du)=>{"use strict";var Hm=U(),Km=G(),Br=class extends Km{constructor(e){super(e),this.type="word"}};Hm.registerWalker(Br);Du.exports=Br});var Uu=g((ab,Mu)=>{"use strict";var Qm=U(),Jm=G(),Mr=class extends Jm{constructor(e){super(e),this.type="unicode-range"}};Qm.registerWalker(Mr);Mu.exports=Mr});var $u=g((ub,Fu)=>{"use strict";var js=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred wh Line truncated
`,a+2);l=O!==-1?O-1:i}d=n.slice(a,l+1),x=d.split(`
`),h=x.length-1,h>0?(b=u+h,w=l-x[h].length):(b=u,w=o),r.push(["comment",d,u,a-o,b,l-w,a]),o=w,u=b,a=l}else if(p===35&&!Zm.test(n.slice(a+1,a+2)))l=a+1,r.push(["#",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;else if((p===117||p===85)&&n.charCodeAt(a+1)===43){l=a+2;do l+=1,p=n.charCodeAt(l);while(l<i&&ey.test(n.slice(l,l+1)));r.push(["unicoderange",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1}else if(p===47)l=a+1,r.push(["operator",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;else{let C=Xm;if(p>=48&&p<=57&&(C=$e),C.lastIndex=a+1,C.test(n),C.lastIndex===0?l=n.length-1:l=C.lastIndex-2,C===$e||p===46){let O=n.charCodeAt(l),ve=n.charCodeAt(l+1),Xs=n.charCodeAt(l+2);(O===101||O===69)&&(ve===45||ve===43)&&Xs>=48&&Xs<=57&&($e.lastIndex=l+2,$e.test(n),$e.lastIndex===0?l=n.length-1:l=$e.lastIndex-2)}r.push(["word",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l}break}a++}return r}});var Gu=g((cb,zu)=>{"use strict";var Hs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};zu.exports=Hs});var Qu=g((pb,Ku)=>{"use strict";var ty=hu(),ry=mu(),sy=wu(),ny=xu(),iy=_u(),oy=ku(),ay=Cu(),uy=Au(),ly=Pu(),ju=Iu(),cy=Lu(),Hu=Bu(),fy=Uu(),py=Vu(),hy=Ds(),dy=Bs(),my=Ms(),yy=Gu();function gy(t){return t.sort((e,s)=>e-s)}Ku.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new ty;let n=new ry;this.root.append(n),this.current=n,this.tokens=py(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new ny({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new iy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new oy({value:s,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,s){throw new yy(e+` at line: ${s[2]}, column ${s[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let e=this.currToken[1],s;if(e==="+"||e==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return s=new ly({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(s)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,s=this.position+1,r=this.currToken,n;for(;s<this.tokens.length&&e;){let i=this.tokens[s];i[0]==="("&&e++,i[0]===")"&&e--,s++}if(e&&this.error("Expected closing parenthesis",r),n=this.current.last,n&&n.type==="func"&&n.unbalanced<0&&(n.unbalanced=0,this.current=n),this.current.unbalanced++,this.newNode(new ju({value:r[1],source:{start:{line:r[2],column:r[3]},end:{line:r[4],column:r[5]}},sourceIndex:r[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let i=this.nextToken,o=this.currToken[1],u={line:this.currToken[2],column:this.currToken[3]};for(;i&&i[0]!==")"&&this.current.unbalanced;)this.position++,o+=this.currToken[1],i=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new Hu({value:o,source:{start:u,end:{line:this.currToken[4],column:this.cu Line truncated
Expected it to be 'string' or 'object'.`;if(H(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=_l([...Ct].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'.
Expected it to be ${r}.`}var Wr=class extends Error{name="InvalidDocError";constructor(e){super(El(e)),this.doc=e}},Yr=Wr;function Sl(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(H(i)){case We:return e(i.map(r));case se:return e({...i,parts:i.parts.map(r)});case ne:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case re:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(r),u=o[0]):u=r(u),e({...i,contents:u,expandedStates:o})}case _e:case te:case ze:case je:case Ee:return e({...i,contents:r(i.contents)});case be:case Ye:case Ve:case Ge:case j:case ke:return e(i);default:throw new Yr(i)}}}function Tl(t){return t.type===j&&!t.hard?t.soft?"":" ":t.type===ne?t.flatContents:t}function tn(t){return Sl(t,Tl)}var Vr=()=>{},ie=Vr,He=Vr,rn=Vr;function q(t){return ie(t),{type:te,contents:t}}function sn(t,e){return ie(e),{type:_e,contents:e,n:t}}function L(t,e={}){return ie(t),He(e.expandedStates,!0),{type:re,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function nn(t){return sn({type:"root"},t)}function oe(t){return sn(-1,t)}function Se(t){return rn(t),{type:se,parts:t}}function Ot(t,e="",s={}){return ie(t),e!==""&&ie(e),{type:ne,breakContents:t,flatContents:e,groupId:s.groupId}}function on(t){return ie(t),{type:Ee,contents:t}}var Ke={type:ke};var Cl={type:j,hard:!0};var A={type:j},D={type:j,soft:!0},S=[Cl,Ke];function Y(t,e){ie(t),He(e);let s=[];for(let r=0;r<e.length;r++)r!==0&&s.push(t),s.push(e[r]);return s}function Ol(t){return Array.isArray(t)&&t.length>0}var ae=Ol;var an=new Proxy(()=>{},{get:()=>an}),un=an;var At="'",ln='"';function Al(t,e){let s=e===!0||e===At?At:ln,r=s===At?ln:At,n=0,i=0;for(let o of t)o===s?n++:o===r&&i++;return n>i?r:s}var cn=Al;function Nl(t,e,s){let r=e==='"'?"'":'"',i=E(!1,t,/\\(.)|(["'])/gsu,(o,u,a)=>u===r?u:a===e?"\\"+a:a||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return e+i+e}var fn=Nl;function Pl(t,e){un.ok(/^(?<quote>["']).*\k<quote>$/su.test(t));let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":cn(s,e.singleQuote);return t.charAt(0)===r?t:fn(s,r,!1)}var Nt=Pl;var zr=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},pn=zr;function Rl(t){return(t==null?void 0:t.type)==="front-matter"}var Te=Rl;var Il=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function hn(t,e,s){if(Te(t)&&t.language==="yaml"&&delete e.value,t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||Te(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||s.type==="css-root"&&$(!1,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=ql(t.value)),t.type==="selector-combinator"&&(e.value=E(!1,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=E(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=E(!1,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value&&(e.value=E(!1,e.value.trim(),/^["']|["']$/gu,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=E(!1,e.value,/([\d+.e-]+)([a-z]*)/giu,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=e.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isC Line truncated
`,s)+1;return s+t.column}var jr=Fl;function Pt(t){return(e,s,r)=>{let n=!!(r!=null&&r.backwards);if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&o<i;){let u=e.charAt(o);if(t instanceof RegExp){if(!t.test(u))return o}else if(!t.includes(u))return o;n?o--:o++}return o===-1||o===i?o:!1}}var $g=Pt(/\s/u),Rt=Pt(" "),bn=Pt(",; "),It=Pt(/[^\n\r]/u);function _n(t,e){var s,r,n;if(typeof((r=(s=t.source)==null?void 0:s.start)==null?void 0:r.offset)=="number")return t.source.start.offset;if(typeof t.sourceIndex=="number")return t.sourceIndex;if((n=t.source)!=null&&n.start)return jr(t.source.start,e);throw Object.assign(new Error("Can not locate node."),{node:t})}function Hr(t,e){var s,r;if(t.type==="css-comment"&&t.inline)return It(e,t.source.startOffset);if(typeof((r=(s=t.source)==null?void 0:s.end)==null?void 0:r.offset)=="number")return t.source.end.offset;if(t.source){if(t.source.end)return jr(t.source.end,e);if(ae(t.nodes))return Hr($(!1,t.nodes,-1),e)}return null}function Kr(t,e){t.source&&(t.source.startOffset=_n(t,e),t.source.endOffset=Hr(t,e));for(let s in t){let r=t[s];s==="source"||!r||typeof r!="object"||(r.type==="value-root"||r.type==="value-unknown"?En(r,$l(t),r.text||r.value):Kr(r,e))}}function En(t,e,s){t.source&&(t.source.startOffset=_n(t,s)+e,t.source.endOffset=Hr(t,s)+e);for(let r in t){let n=t[r];r==="source"||!n||typeof n!="object"||En(n,e,s)}}function $l(t){var s;let e=t.source.startOffset;return typeof t.prop=="string"&&(e+=t.prop.length),t.type==="css-atrule"&&typeof t.name=="string"&&(e+=1+t.name.length+t.raws.afterName.match(/^\s*:?\s*/u)[0].length),t.type!=="css-atrule"&&typeof((s=t.raws)==null?void 0:s.between)=="string"&&(e+=t.raws.between.length),e}function kn(t){let e="initial",s="initial",r,n=!1,i=[];for(let o=0;o<t.length;o++){let u=t[o];switch(e){case"initial":if(u==="'"){e="single-quotes";continue}if(u==='"'){e="double-quotes";continue}if((u==="u"||u==="U")&&t.slice(o,o+4).toLowerCase()==="url("){e="url",o+=3;continue}if(u==="*"&&t[o-1]==="/"){e="comment-block";continue}if(u==="/"&&t[o-1]==="/"){e="comment-inline",r=o-1;continue}continue;case"single-quotes":if(u==="'"&&t[o-1]!=="\\"&&(e=s,s="initial"),u===`
`||u==="\r")return t;continue;case"double-quotes":if(u==='"'&&t[o-1]!=="\\"&&(e=s,s="initial"),u===`
`||u==="\r")return t;continue;case"url":if(u===")"&&(e="initial"),u===`
`||u==="\r")return t;if(u==="'"){e="single-quotes",s="url";continue}if(u==='"'){e="double-quotes",s="url";continue}continue;case"comment-block":u==="/"&&t[o-1]==="*"&&(e="initial");continue;case"comment-inline":(u==='"'||u==="'"||u==="*")&&(n=!0),(u===`
`||u==="\r")&&(n&&i.push([r,o]),e="initial",n=!1);continue}}for(let[o,u]of i)t=t.slice(0,o)+E(!1,t.slice(o,u),/["'*]/gu," ")+t.slice(u);return t}function P(t){var e;return(e=t.source)==null?void 0:e.startOffset}function R(t){var e;return(e=t.source)==null?void 0:e.endOffset}var Wl=/\*\/$/,Yl=/^\/\*\*?/,On=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Vl=/(^|\s+)\/\/([^\n\r]*)/g,Sn=/^(\r?\n)+/,zl=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Tn=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Gl=/(\r?\n|^) *\* ?/g,An=[];function Nn(t){let e=t.match(On);return e?e[0].trimStart():""}function Pn(t){let e=t.match(On),s=e==null?void 0:e[0];return s==null?t:t.slice(s.length)}function Rn(t){let e=`
`;t=E(!1,t.replace(Yl,"").replace(Wl,""),Gl,"$1");let s="";for(;s!==t;)s=t,t=E(!1,t,zl,`${e}$1 $2${e}`);t=t.replace(Sn,"").trimEnd();let r=Object.create(null),n=E(!1,t,Tn,"").replace(Sn,"").trimEnd(),i;for(;i=Tn.exec(t);){let o=E(!1,i[2],Vl,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let u=r[i[1]];r[i[1]]=[...An,...Array.isArray(u)?u:[u],o]}else r[i[1]]=o}return{comments:n,pragmas:r}}function In({comments:t="",pragmas:e={}}){let s=`
`,r="/**",n=" *",i=" */",o=Object.keys(e),u=o.flatMap(c=>Cn(c,e[c])).map(c=>`${n} ${c}${s}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${Cn(o[0],c)[0]}${i}`}}let a=t.split(s).map(c=>`${n} ${c}`).join(s)+s;return r+s+(t?a:"")+(t&&o.length>0?n+s:"")+u+i}function Cn(t,e){return[...An,...Array.isArray(e)?e:[e]].map(s=>`@${t} ${s}`.trim())}function jl(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
`);return e===-1?t:t.slice(0,e)}var qn=jl;function Ln(t){let e=qn(t);e&&(t=t.slice(e.length+1));let s=Nn(t),{pragmas:r,comments:n}=Rn(s);return{shebang:e,text:t,pragmas:r,comments:n}}function Dn(t){let{pragmas:e}=Ln(t);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function Bn(t){let{shebang:e,text:s,pragmas:r,comments:n}=Ln(t),i=Pn(s),o=In({pragmas:{format:"",...r},comments:n.trimStart()});return(e?`${e}
`:"")+o+(i.startsWith(`
`)?`
`:`
`)+i}var Xe=3;function Hl(t){let e=t.slice(0,Xe);if(e!=="---"&&e!=="+++")return;let s=t.indexOf(`
`,Xe);if(s===-1)return;let r=t.slice(Xe,s).trim(),n=t.indexOf(`
${e}`,s),i=r;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(`
...`,s)),n===-1)return;let o=n+1+Xe,u=t.charAt(o+1);if(!/\s?/u.test(u))return;let a=t.slice(0,o);return{type:"front-matter",language:i,explicitLanguage:r,value:t.slice(s+1,n),startDelimiter:e,endDelimiter:a.slice(-Xe),raw:a}}function Kl(t){let e=Hl(t);if(!e)return{content:t};let{raw:s}=e;return{frontMatter:e,content:E(!1,s,/[^\n]/gu," ")+t.slice(s.length)}}var Ze=Kl;function Mn(t){return Dn(Ze(t).content)}function Un(t){let{frontMatter:e,content:s}=Ze(t);return(e?e.raw+`
`:"")+Bn(s)}var Ql=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Fn(t){var e,s;return(s=(e=t.findAncestor(r=>r.type==="css-decl"))==null?void 0:e.prop)==null?void 0:s.toLowerCase()}var Jl=new Set(["initial","inherit","unset","revert"]);function $n(t){return Jl.has(t.toLowerCase())}function Wn(t,e){var r;let s=t.findAncestor(n=>n.type==="css-atrule");return((r=s==null?void 0:s.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function ue(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function Ce(t,e){var r;let s=t.findAncestor(n=>n.type==="value-func");return((r=s==null?void 0:s.value)==null?void 0:r.toLowerCase())===e}function Yn(t){var r;let e=t.findAncestor(n=>n.type==="css-rule"),s=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))}function Oe(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Vn(t){var s;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((s=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:s.name)==="import"}function zn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Gn(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function jn(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function Hn(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function Kn(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function Qn(t){return t.type==="value-word"&&t.value==="in"}function qt(t){return t.type==="value-operator"&&t.value==="*"}function et(t){return t.type==="value-operator"&&t.value==="/"}function J(t){return t.type==="value-operator"&&t.value==="+"}function he(t){return t.type==="value-operator"&&t.value==="-"}function Xl(t){return t.type==="value-operator"&&t.value==="%"}function Lt(t){return qt(t)||et(t)||J(t)||he(t)||Xl(t)}function Jn(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function Xn(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function tt(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function Jr(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/u.test(t.raws.params)}function Dt(t){return t.name.startsWith("prettier-placeholder")}function Zn(t){return t.prop.startsWith("@prettier-placeholder")}function ei(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function ti(t){var e,s;return((e=t.value)==null?void 0:e.type)==="value-root"&&((s=t.value.group)==null?void 0:s.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function ri(t){var e,s,r;return((r=(s=(e=t.value)==null?void 0:e.group)==null?void 0:s.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function de(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function Bt(t){var e,s;return t.type==="value-comma_group"&&((s=(e=t.groups)==null?void 0:e[1])==null?void 0:s.type)==="value-colon"}function Qr(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&Bt(t.groups[0])}function Xr(t,e){var i;if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.grandparent;if(!Qr(s)&&!(r&&Qr(r)))return!1;let n=t.findAncestor(o=>o.type==="css-decl");return!!((i=n==null?void 0:n.prop)!=null&&i.startsWith("$")||Qr(r)||r.type==="value-func")}function Ae(t){return t.type==="value-comment"&&t.inline}function Mt(t){return t.type==="value-word"&&t.value==="#"}function Zr(t){return t.type==="value-word"&&t.value==="{"}function Ut(t){return t.type==="value-word"&&t.value==="}"}function rt(t){return["value-word","value-atword"].includes(t.type)}function st(t){return(t==null?void 0:t.type)==="value-colon"}function si(t,e){if(!Bt(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:st(s[r+1])}function ni(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function ii(t){return t.type!=="value-func"?!1:Ql.has(t.value.toLowerCase())}function Ne(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function nt(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function oi(t,e){var s,r;if(((s=t.open)==null?void 0:s.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(n=>n.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let n=e.groups.indexOf(t)-1,i=e.groups[n];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}f Line truncated
`)return e-2;if(n===`
`||n==="\r"||n==="\u2028"||n==="\u2029")return e-1}else{if(n==="\r"&&t.charAt(e+1)===`
`)return e+2;if(n===`
`||n==="\r"||n==="\u2028"||n==="\u2029")return e+1}return e}var Ft=ic;function oc(t,e,s={}){let r=Rt(t,s.backwards?e-1:e,s),n=Ft(t,r,s);return r!==n}var $t=oc;function ac(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;s<t.length;++s)if(t.charAt(s)==="*"&&t.charAt(s+1)==="/")return s+2}return e}var hi=ac;function uc(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?It(t,e):e}var di=uc;function lc(t,e){let s=null,r=e;for(;r!==s;)s=r,r=bn(t,r),r=hi(t,r),r=Rt(t,r);return r=di(t,r),r=Ft(t,r),r!==!1&&$t(t,r)}var Wt=lc;function cc({node:t,parent:e},s){return!!(t.source&&s.originalText.slice(P(t),P(e.close)).trimEnd().endsWith(","))}function fc(t,e){return Gn(t.grandparent)&&cc(t,e)?",":t.node.type!=="value-comment"&&!(t.node.type==="value-comma_group"&&t.node.groups.every(s=>s.type==="value-comment"))&&pi(e)&&t.callParent(()=>Xr(t,e))?Ot(","):""}function mi(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:y})=>typeof y=="string"?y:s(),"groups");if(n&&zn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",Y(",",i),r.close?s("close"):""];if(!r.open){let y=rs(t);He(i);let x=hc(Y(",",i),2),h=Y(y?S:A,x);return q(y?[S,h]:L([pc(t)?D:"",Se(h)]))}let o=t.map(({node:y,isLast:x,index:h})=>{var b;let d=i[h];Bt(y)&&y.type==="value-comma_group"&&y.groups&&y.groups[0].type!=="value-paren_group"&&((b=y.groups[2])==null?void 0:b.type)==="value-paren_group"&&H(d)===re&&H(d.contents)===te&&H(d.contents.contents)===se&&(d=L(oe(d)));let m=[d,x?fc(t,e):","];if(!x&&y.type==="value-comma_group"&&ae(y.groups)){let w=$(!1,y.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&Wt(e.originalText,R(w))&&m.push(S)}return m},"groups"),u=si(r,n),a=oi(r,n),c=Xr(t,e),f=a||c&&!u,p=a||u,l=L([r.open?s("open"):"",q([D,Y(A,o)]),D,r.close?s("close"):""],{shouldBreak:f});return p?oe(l):l}function rs(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function pc(t){return t.match(e=>e.type==="value-paren_group"&&!e.open,(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&e.type==="css-decl")}function hc(t,e){let s=[];for(let r=0;r<t.length;r+=e)s.push(t.slice(r,r+e));return s}function dc(t,e,s){let r=[];return t.each(()=>{let{node:n,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(n),R(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!$t(e.originalText,P(o),{backwards:!0})&&!Te(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:S),Wt(e.originalText,R(n))&&!Te(n)&&r.push(S))},"nodes"),r}var Pe=dc;function mc(t,e,s){var n,i,o,u,a,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,S];case"css-root":{let f=Pe(t,e,s),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[s("frontMatter"),S]:"",f,p?` ${p}`:"",r.nodes.length>0?S:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(P(r),R(r));return f?p.trimEnd():p}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[((n=r.selector)==null?void 0:n.type)==="selector-unknown"&&Ne(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([S,Pe(t,e,s)]):"",S,"}",jn(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),y=l===":",x=typeof r.value=="string"&&/^ *$/u.test(r.value),h=typeof r.value=="string"?r.value:s("value");return h=ti(r)?tn(h):h,!y&&Ne(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>rs(t),"value","group","group"))&&(h=q([S,oe(h)])),[E(!1,r.raws.before,/[\s;]/gu,""),f.type==="css-atrule"&&f.variable||Yn(t)?r.prop:ue(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([D,Pe(t,e,s)]),D,"}"]:Zn(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?Ot(";"):";"]}case"css-atrule":{let f=t.parent,p=Dt(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[s("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:s("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?s("value" Line truncated
+54
View File
@@ -0,0 +1,54 @@
var hl=Object.create;var $r=Object.defineProperty;var dl=Object.getOwnPropertyDescriptor;var ml=Object.getOwnPropertyNames;var yl=Object.getPrototypeOf,gl=Object.prototype.hasOwnProperty;var g=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),en=(t,e)=>{for(var s in e)$r(t,s,{get:e[s],enumerable:!0})},wl=(t,e,s,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let n of ml(e))!gl.call(t,n)&&n!==s&&$r(t,n,{get:()=>e[n],enumerable:!(r=dl(e,n))||r.enumerable});return t};var xe=(t,e,s)=>(s=t!=null?hl(yl(t)):{},wl(e||!t||!t.__esModule?$r(s,"default",{value:t,enumerable:!0}):s,t));var bi=g((xv,ss)=>{var _=String,xi=function(){return{isColorSupported:!1,reset:_,bold:_,dim:_,italic:_,underline:_,inverse:_,hidden:_,strikethrough:_,black:_,red:_,green:_,yellow:_,blue:_,magenta:_,cyan:_,white:_,gray:_,bgBlack:_,bgRed:_,bgGreen:_,bgYellow:_,bgBlue:_,bgMagenta:_,bgCyan:_,bgWhite:_,blackBright:_,redBright:_,greenBright:_,yellowBright:_,blueBright:_,magentaBright:_,cyanBright:_,whiteBright:_,bgBlackBright:_,bgRedBright:_,bgGreenBright:_,bgYellowBright:_,bgBlueBright:_,bgMagentaBright:_,bgCyanBright:_,bgWhiteBright:_}};ss.exports=xi();ss.exports.createColors=xi});var ns=g(()=>{});var Wt=g((Ev,ki)=>{"use strict";var _i=bi(),Ei=ns(),ot=class t extends Error{constructor(e,s,r,n,i,o){super(e),this.name="CssSyntaxError",this.reason=e,i&&(this.file=i),n&&(this.source=n),o&&(this.plugin=o),typeof s<"u"&&typeof r<"u"&&(typeof s=="number"?(this.line=s,this.column=r):(this.line=s.line,this.column=s.column,this.endLine=r.line,this.endColumn=r.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,t)}setMessage(){this.message=this.plugin?this.plugin+": ":"",this.message+=this.file?this.file:"<css input>",typeof this.line<"u"&&(this.message+=":"+this.line+":"+this.column),this.message+=": "+this.reason}showSourceCode(e){if(!this.source)return"";let s=this.source;e==null&&(e=_i.isColorSupported);let r=f=>f,n=f=>f,i=f=>f;if(e){let{bold:f,gray:p,red:l}=_i.createColors(!0);n=y=>f(l(y)),r=y=>p(y),Ei&&(i=y=>Ei(y))}let o=s.split(/\r?\n/),u=Math.max(this.line-3,0),a=Math.min(this.line+2,o.length),c=String(a).length;return o.slice(u,a).map((f,p)=>{let l=u+1+p,y=" "+(" "+l).slice(-c)+" | ";if(l===this.line){if(f.length>160){let h=20,d=Math.max(0,this.column-h),m=Math.max(this.column+h,this.endColumn+h),b=f.slice(d,m),w=r(y.replace(/\d/g," "))+f.slice(0,Math.min(this.column-1,h-1)).replace(/[^\t]/g," ");return n(">")+r(y)+i(b)+`
`+w+n("^")}let x=r(y.replace(/\d/g," "))+f.slice(0,this.column-1).replace(/[^\t]/g," ");return n(">")+r(y)+i(f)+`
`+x+n("^")}return" "+r(y)+i(f)}).join(`
`)}toString(){let e=this.showSourceCode();return e&&(e=`
`+e+`
`),this.name+": "+this.message+e}};ki.exports=ot;ot.default=ot});var Yt=g((kv,Ti)=>{"use strict";var Si={after:`
`,beforeClose:`
`,beforeComment:`
`,beforeDecl:`
`,beforeOpen:" ",beforeRule:`
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function wc(t){return t[0].toUpperCase()+t.slice(1)}var at=class{constructor(e){this.builder=e}atrule(e,s){let r="@"+e.name,n=e.params?this.rawValue(e,"params"):"";if(typeof e.raws.afterName<"u"?r+=e.raws.afterName:n&&(r+=" "),e.nodes)this.block(e,r+n);else{let i=(e.raws.between||"")+(s?";":"");this.builder(r+n+i,e)}}beforeAfter(e,s){let r;e.type==="decl"?r=this.raw(e,null,"beforeDecl"):e.type==="comment"?r=this.raw(e,null,"beforeComment"):s==="before"?r=this.raw(e,null,"beforeRule"):r=this.raw(e,null,"beforeClose");let n=e.parent,i=0;for(;n&&n.type!=="root";)i+=1,n=n.parent;if(r.includes(`
`)){let o=this.raw(e,null,"indent");if(o.length)for(let u=0;u<i;u++)r+=o}return r}block(e,s){let r=this.raw(e,"between","beforeOpen");this.builder(s+r+"{",e,"start");let n;e.nodes&&e.nodes.length?(this.body(e),n=this.raw(e,"after")):n=this.raw(e,"after","emptyBody"),n&&this.builder(n),this.builder("}",e,"end")}body(e){let s=e.nodes.length-1;for(;s>0&&e.nodes[s].type==="comment";)s-=1;let r=this.raw(e,"semicolon");for(let n=0;n<e.nodes.length;n++){let i=e.nodes[n],o=this.raw(i,"before");o&&this.builder(o),this.stringify(i,s!==n||r)}}comment(e){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder("/*"+s+e.text+r+"*/",e)}decl(e,s){let r=this.raw(e,"between","colon"),n=e.prop+r+this.rawValue(e,"value");e.important&&(n+=e.raws.important||" !important"),s&&(n+=";"),this.builder(n,e)}document(e){this.body(e)}raw(e,s,r){let n;if(r||(r=s),s&&(n=e.raws[s],typeof n<"u"))return n;let i=e.parent;if(r==="before"&&(!i||i.type==="root"&&i.first===e||i&&i.type==="document"))return"";if(!i)return Si[r];let o=e.root();if(o.rawCache||(o.rawCache={}),typeof o.rawCache[r]<"u")return o.rawCache[r];if(r==="before"||r==="after")return this.beforeAfter(e,r);{let u="raw"+wc(r);this[u]?n=this[u](o,e):o.walk(a=>{if(n=a.raws[s],typeof n<"u")return!1})}return typeof n>"u"&&(n=Si[r]),o.rawCache[r]=n,n}rawBeforeClose(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length>0&&typeof r.raws.after<"u")return s=r.raws.after,s.includes(`
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawBeforeComment(e,s){let r;return e.walkComments(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeDecl"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeDecl(e,s){let r;return e.walkDecls(n=>{if(typeof n.raws.before<"u")return r=n.raws.before,r.includes(`
`)&&(r=r.replace(/[^\n]+$/,"")),!1}),typeof r>"u"?r=this.raw(s,null,"beforeRule"):r&&(r=r.replace(/\S/g,"")),r}rawBeforeOpen(e){let s;return e.walk(r=>{if(r.type!=="decl"&&(s=r.raws.between,typeof s<"u"))return!1}),s}rawBeforeRule(e){let s;return e.walk(r=>{if(r.nodes&&(r.parent!==e||e.first!==r)&&typeof r.raws.before<"u")return s=r.raws.before,s.includes(`
`)&&(s=s.replace(/[^\n]+$/,"")),!1}),s&&(s=s.replace(/\S/g,"")),s}rawColon(e){let s;return e.walkDecls(r=>{if(typeof r.raws.between<"u")return s=r.raws.between.replace(/[^\s:]/g,""),!1}),s}rawEmptyBody(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length===0&&(s=r.raws.after,typeof s<"u"))return!1}),s}rawIndent(e){if(e.raws.indent)return e.raws.indent;let s;return e.walk(r=>{let n=r.parent;if(n&&n!==e&&n.parent&&n.parent===e&&typeof r.raws.before<"u"){let i=r.raws.before.split(`
`);return s=i[i.length-1],s=s.replace(/\S/g,""),!1}}),s}rawSemicolon(e){let s;return e.walk(r=>{if(r.nodes&&r.nodes.length&&r.last.type==="decl"&&(s=r.raws.semicolon,typeof s<"u"))return!1}),s}rawValue(e,s){let r=e[s],n=e.raws[s];return n&&n.value===r?n.raw:r}root(e){this.body(e),e.raws.after&&this.builder(e.raws.after)}rule(e){this.block(e,this.rawValue(e,"selector")),e.raws.ownSemicolon&&this.builder(e.raws.ownSemicolon,e,"end")}stringify(e,s){if(!this[e.type])throw new Error("Unknown AST node type "+e.type+". Maybe you need to change PostCSS stringifier.");this[e.type](e,s)}};Ti.exports=at;at.default=at});var ut=g((Sv,Ci)=>{"use strict";var vc=Yt();function is(t,e){new vc(e).stringify(t)}Ci.exports=is;is.default=is});var Vt=g((Tv,os)=>{"use strict";os.exports.isClean=Symbol("isClean");os.exports.my=Symbol("my")});var pt=g((Cv,Oi)=>{"use strict";var xc=Wt(),bc=Yt(),_c=ut(),{isClean:lt,my:Ec}=Vt();function as(t,e){let s=new t.constructor;for(let r in t){if(!Object.prototype.hasOwnProperty.call(t,r)||r==="proxyCache")continue;let n=t[r],i=typeof n;r==="parent"&&i==="object"?e&&(s[r]=e):r==="source"?s[r]=n:Array.isArray(n)?s[r]=n.map(o=>as(o,s)):(i==="object"&&n!==null&&(n=as(n)),s[r]=n)}return s}function ct(t,e){if(e&&typeof e.offset<"u")return e.offset;let s=1,r=1,n=0;for(let i=0;i<t.length;i++){if(r===e.line&&s===e.column){n=i;break}t[i]===`
`?(s=1,r+=1):s+=1}return n}var ft=class{get proxyOf(){return this}constructor(e={}){this.raws={},this[lt]=!1,this[Ec]=!0;for(let s in e)if(s==="nodes"){this.nodes=[];for(let r of e[s])typeof r.clone=="function"?this.append(r.clone()):this.append(r)}else this[s]=e[s]}addToError(e){if(e.postcssNode=this,e.stack&&this.source&&/\n\s{4}at /.test(e.stack)){let s=this.source;e.stack=e.stack.replace(/\n\s{4}at /,`$&${s.input.from}:${s.start.line}:${s.start.column}$&`)}return e}after(e){return this.parent.insertAfter(this,e),this}assign(e={}){for(let s in e)this[s]=e[s];return this}before(e){return this.parent.insertBefore(this,e),this}cleanRaws(e){delete this.raws.before,delete this.raws.after,e||delete this.raws.between}clone(e={}){let s=as(this);for(let r in e)s[r]=e[r];return s}cloneAfter(e={}){let s=this.clone(e);return this.parent.insertAfter(this,s),s}cloneBefore(e={}){let s=this.clone(e);return this.parent.insertBefore(this,s),s}error(e,s={}){if(this.source){let{end:r,start:n}=this.rangeBy(s);return this.source.input.error(e,{column:n.column,line:n.line},{column:r.column,line:r.line},s)}return new xc(e)}getProxyProcessor(){return{get(e,s){return s==="proxyOf"?e:s==="root"?()=>e.root().toProxy():e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="prop"||s==="value"||s==="name"||s==="params"||s==="important"||s==="text")&&e.markDirty()),!0}}}markClean(){this[lt]=!0}markDirty(){if(this[lt]){this[lt]=!1;let e=this;for(;e=e.parent;)e[lt]=!1}}next(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e+1]}positionBy(e){let s=this.source.start;if(e.index)s=this.positionInside(e.index);else if(e.word){let r="document"in this.source.input?this.source.input.document:this.source.input.css,i=r.slice(ct(r,this.source.start),ct(r,this.source.end)).indexOf(e.word);i!==-1&&(s=this.positionInside(i))}return s}positionInside(e){let s=this.source.start.column,r=this.source.start.line,n="document"in this.source.input?this.source.input.document:this.source.input.css,i=ct(n,this.source.start),o=i+e;for(let u=i;u<o;u++)n[u]===`
`?(s=1,r+=1):s+=1;return{column:s,line:r}}prev(){if(!this.parent)return;let e=this.parent.index(this);return this.parent.nodes[e-1]}rangeBy(e){let s={column:this.source.start.column,line:this.source.start.line},r=this.source.end?{column:this.source.end.column+1,line:this.source.end.line}:{column:s.column+1,line:s.line};if(e.word){let n="document"in this.source.input?this.source.input.document:this.source.input.css,o=n.slice(ct(n,this.source.start),ct(n,this.source.end)).indexOf(e.word);o!==-1&&(s=this.positionInside(o),r=this.positionInside(o+e.word.length))}else e.start?s={column:e.start.column,line:e.start.line}:e.index&&(s=this.positionInside(e.index)),e.end?r={column:e.end.column,line:e.end.line}:typeof e.endIndex=="number"?r=this.positionInside(e.endIndex):e.index&&(r=this.positionInside(e.index+1));return(r.line<s.line||r.line===s.line&&r.column<=s.column)&&(r={column:s.column+1,line:s.line}),{end:r,start:s}}raw(e,s){return new bc().raw(this,e,s)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...e){if(this.parent){let s=this,r=!1;for(let n of e)n===this?r=!0:r?(this.parent.insertAfter(s,n),s=n):this.parent.insertBefore(s,n);r||this.remove()}return this}root(){let e=this;for(;e.parent&&e.parent.type!=="document";)e=e.parent;return e}toJSON(e,s){let r={},n=s==null;s=s||new Map;let i=0;for(let o in this){if(!Object.prototype.hasOwnProperty.call(this,o)||o==="parent"||o==="proxyCache")continue;let u=this[o];if(Array.isArray(u))r[o]=u.map(a=>typeof a=="object"&&a.toJSON?a.toJSON(null,s):a);else if(typeof u=="object"&&u.toJSON)r[o]=u.toJSON(null,s);else if(o==="source"){let a=s.get(u.input);a==null&&(a=i,s.set(u.input,i),i++),r[o]={end:u.end,inputId:a,start:u.start}}else r[o]=u}return n&&(r.inputs=[...s.keys()].map(o=>o.toJSON())),r}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(e=_c){e.stringify&&(e=e.stringify);let s="";return e(this,r=>{s+=r}),s}warn(e,s,r){let n={node:this};for(let i in r)n[i]=r[i];return e.warn(s,n)}};Oi.exports=ft;ft.default=ft});var Re=g((Ov,Ai)=>{"use strict";var kc=pt(),ht=class extends kc{constructor(e){super(e),this.type="comment"}};Ai.exports=ht;ht.default=ht});var mt=g((Av,Ni)=>{"use strict";var Sc=pt(),dt=class extends Sc{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(e){e&&typeof e.value<"u"&&typeof e.value!="string"&&(e={...e,value:String(e.value)}),super(e),this.type="decl"}};Ni.exports=dt;dt.default=dt});var le=g((Nv,Ui)=>{"use strict";var Pi=Re(),Ri=mt(),Tc=pt(),{isClean:Ii,my:qi}=Vt(),us,Li,Di,ls;function Bi(t){return t.map(e=>(e.nodes&&(e.nodes=Bi(e.nodes)),delete e.source,e))}function Mi(t){if(t[Ii]=!1,t.proxyOf.nodes)for(let e of t.proxyOf.nodes)Mi(e)}var z=class t extends Tc{get first(){if(this.proxyOf.nodes)return this.proxyOf.nodes[0]}get last(){if(this.proxyOf.nodes)return this.proxyOf.nodes[this.proxyOf.nodes.length-1]}append(...e){for(let s of e){let r=this.normalize(s,this.last);for(let n of r)this.proxyOf.nodes.push(n)}return this.markDirty(),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}each(e){if(!this.proxyOf.nodes)return;let s=this.getIterator(),r,n;for(;this.indexes[s]<this.proxyOf.nodes.length&&(r=this.indexes[s],n=e(this.proxyOf.nodes[r],r),n!==!1);)this.indexes[s]+=1;return delete this.indexes[s],n}every(e){return this.nodes.every(e)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let e=this.lastEach;return this.indexes[e]=0,e}getProxyProcessor(){return{get(e,s){return s==="proxyOf"?e:e[s]?s==="each"||typeof s=="string"&&s.startsWith("walk")?(...r)=>e[s](...r.map(n=>typeof n=="function"?(i,o)=>n(i.toProxy(),o):n)):s==="every"||s==="some"?r=>e[s]((n,...i)=>r(n.toProxy(),...i)):s==="root"?()=>e.root().toProxy():s==="nodes"?e.nodes.map(r=>r.toProxy()):s==="first"||s==="last"?e[s].toProxy():e[s]:e[s]},set(e,s,r){return e[s]===r||(e[s]=r,(s==="name"||s==="params"||s==="selector")&&e.markDirty()),!0}}}index(e){return typeof e=="number"?e:(e.proxyOf&&(e=e.proxyOf),this.proxyOf.nodes.indexOf(e))}insertAfter(e,s){let r=this.index(e),n=this.normalize(s,this.proxyOf.nodes[r]).reverse();r=this.index(e);for(let o of n)this.proxyOf.nodes.splice(r+1,0,o);let i;for(let o in this.indexes)i=this.indexes[o],r<i&&(this.indexes[o]=i+n.length);return this.markDirty(),this}insertBefore(e,s){let r=this.index(e),n=r===0?"prepend":!1,i=this.normalize(s,this.proxyOf.nodes[r],n).reverse();r=this.index(e);for(let u of i)this.proxyOf.nodes.splice(r,0,u);let o;for(let u in this.indexes)o=this.indexes[u],r<=o&&(this.indexes[u]=o+i.length);return this.markDirty(),this}normalize(e,s){if(typeof e=="string")e=Bi(Li(e).nodes);else if(typeof e>"u")e=[];else if(Array.isArray(e)){e=e.slice(0);for(let n of e)n.parent&&n.parent.removeChild(n,"ignore")}else if(e.type==="root"&&this.type!=="document"){e=e.nodes.slice(0);for(let n of e)n.parent&&n.parent. Line truncated
`);r=new Array(i.length);let o=0;for(let u=0,a=i.length;u<a;u++)r[u]=o,o+=i[u].length+1;this[ps]=r}s=r[r.length-1];let n=0;if(e>=s)n=r.length-1;else{let i=r.length-2,o;for(;n<i;)if(o=n+(i-n>>1),e<r[o])i=o-1;else if(e>=r[o+1])n=o+1;else{n=o;break}}return{col:e-r[n]+1,line:n+1}}mapResolve(e){return/^\w+:\/\//.test(e)?e:ds(this.map.consumer().sourceRoot||this.map.root||".",e)}origin(e,s,r,n){if(!this.map)return!1;let i=this.map.consumer(),o=i.originalPositionFor({column:s,line:e});if(!o.source)return!1;let u;typeof r=="number"&&(u=i.originalPositionFor({column:n,line:r}));let a;hs(o.source)?a=zt(o.source):a=new URL(o.source,this.map.consumer().sourceRoot||zt(this.map.mapFile));let c={column:o.column,endColumn:u&&u.column,endLine:u&&u.line,line:o.line,url:a.toString()};if(a.protocol==="file:")if(Vi)c.file=Vi(a);else throw new Error("file: protocol is not available in this PostCSS build");let f=i.sourceContentFor(o.source);return f&&(c.source=f),c}toJSON(){let e={};for(let s of["hasBOM","css","file","id"])this[s]!=null&&(e[s]=this[s]);return this.map&&(e.map={...this.map},e.map.consumerCache&&(e.map.consumerCache=void 0)),e}};ji.exports=Ie;Ie.default=Ie;fs&&fs.registerInput&&fs.registerInput(Ie)});var Gt=g((Bv,Ki)=>{"use strict";var Hi=le(),Le=class extends Hi{constructor(e){super(e),this.type="atrule"}append(...e){return this.proxyOf.nodes||(this.nodes=[]),super.append(...e)}prepend(...e){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...e)}};Ki.exports=Le;Le.default=Le;Hi.registerAtRule(Le)});var De=g((Mv,Zi)=>{"use strict";var Qi=le(),Ji,Xi,ce=class extends Qi{constructor(e){super(e),this.type="root",this.nodes||(this.nodes=[])}normalize(e,s,r){let n=super.normalize(e);if(s){if(r==="prepend")this.nodes.length>1?s.raws.before=this.nodes[1].raws.before:delete s.raws.before;else if(this.first!==s)for(let i of n)i.raws.before=s.raws.before}return n}removeChild(e,s){let r=this.index(e);return!s&&r===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[r].raws.before),super.removeChild(e)}toResult(e={}){return new Ji(new Xi,this,e).stringify()}};ce.registerLazyResult=t=>{Ji=t};ce.registerProcessor=t=>{Xi=t};Zi.exports=ce;ce.default=ce;Qi.registerRoot(ce)});var ms=g((Uv,eo)=>{"use strict";var yt={comma(t){return yt.split(t,[","],!0)},space(t){let e=[" ",`
`," "];return yt.split(t,e)},split(t,e,s){let r=[],n="",i=!1,o=0,u=!1,a="",c=!1;for(let f of t)c?c=!1:f==="\\"?c=!0:u?f===a&&(u=!1):f==='"'||f==="'"?(u=!0,a=f):f==="("?o+=1:f===")"?o>0&&(o-=1):o===0&&e.includes(f)&&(i=!0),i?(n!==""&&r.push(n.trim()),n="",i=!1):n+=f;return(s||n!=="")&&r.push(n.trim()),r}};eo.exports=yt;yt.default=yt});var jt=g((Fv,ro)=>{"use strict";var to=le(),Lc=ms(),Be=class extends to{get selectors(){return Lc.comma(this.selector)}set selectors(e){let s=this.selector?this.selector.match(/,\s*/):null,r=s?s[0]:","+this.raw("between","beforeOpen");this.selector=e.join(r)}constructor(e){super(e),this.type="rule",this.nodes||(this.nodes=[])}};ro.exports=Be;Be.default=Be;to.registerRule(Be)});var Qt=g(($v,no)=>{"use strict";var Ht=/[\t\n\f\r "#'()/;[\\\]{}]/g,Kt=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Dc=/.[\r\n"'(/\\]/,so=/[\da-f]/i;no.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,y,x,h=r.length,d=0,m=[],b=[];function w(){return d}function v(W){throw e.error("Unclosed "+W,d)}function N(){return b.length===0&&d>=h}function F(W){if(b.length)return b.pop();if(d>=h)return;let T=W?W.ignoreUnclosed:!1;switch(i=r.charCodeAt(d),i){case 10:case 32:case 9:case 13:case 12:{a=d;do a+=1,i=r.charCodeAt(a);while(i===32||i===10||i===9||i===13||i===12);f=["space",r.slice(d,a)],d=a-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let C=String.fromCharCode(i);f=[C,C,d];break}case 40:{if(x=m.length?m.pop()[1]:"",y=r.charCodeAt(d+1),x==="url"&&y!==39&&y!==34&&y!==32&&y!==10&&y!==9&&y!==12&&y!==13){a=d;do{if(p=!1,a=r.indexOf(")",a+1),a===-1)if(n||T){a=d;break}else v("bracket");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["brackets",r.slice(d,a+1),d,a],d=a}else a=r.indexOf(")",d+1),o=r.slice(d,a+1),a===-1||Dc.test(o)?f=["(","(",d]:(f=["brackets",o,d,a],d=a);break}case 39:case 34:{c=i===39?"'":'"',a=d;do{if(p=!1,a=r.indexOf(c,a+1),a===-1)if(n||T){a=d+1;break}else v("string");for(l=a;r.charCodeAt(l-1)===92;)l-=1,p=!p}while(p);f=["string",r.slice(d,a+1),d,a],d=a;break}case 64:{Ht.lastIndex=d+1,Ht.test(r),Ht.lastIndex===0?a=r.length-1:a=Ht.lastIndex-2,f=["at-word",r.slice(d,a+1),d,a],d=a;break}case 92:{for(a=d,u=!0;r.charCodeAt(a+1)===92;)a+=1,u=!u;if(i=r.charCodeAt(a+1),u&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(a+=1,so.test(r.charAt(a)))){for(;so.test(r.charAt(a+1));)a+=1;r.charCodeAt(a+1)===32&&(a+=1)}f=["word",r.slice(d,a+1),d,a],d=a;break}default:{i===47&&r.charCodeAt(d+1)===42?(a=r.indexOf("*/",d+2)+1,a===0&&(n||T?a=r.length:v("comment")),f=["comment",r.slice(d,a+1),d,a],d=a):(Kt.lastIndex=d+1,Kt.test(r),Kt.lastIndex===0?a=r.length-1:a=Kt.lastIndex-2,f=["word",r.slice(d,a+1),d,a],m.push(f),d=a);break}}return d++,f}function Q(W){b.push(W)}return{back:Q,endOfFile:N,nextToken:F,position:w}}});var Jt=g((Wv,ao)=>{"use strict";var Bc=Gt(),Mc=Re(),Uc=mt(),Fc=De(),io=jt(),$c=Qt(),oo={empty:!0,space:!0};function Wc(t){for(let e=t.length-1;e>=0;e--){let s=t[e],r=s[3]||s[2];if(r)return r}}var ys=class{constructor(e){this.input=e,this.root=new Fc,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:e,start:{column:1,line:1,offset:0}}}atrule(e){let s=new Bc;s.name=e[1].slice(1),s.name===""&&this.unnamedAtrule(s,e),this.init(s,e[2]);let r,n,i,o=!1,u=!1,a=[],c=[];for(;!this.tokenizer.endOfFile();){if(e=this.tokenizer.nextToken(),r=e[0],r==="("||r==="["?c.push(r==="("?")":"]"):r==="{"&&c.length>0?c.push("}"):r===c[c.length-1]&&c.pop(),c.length===0)if(r===";"){s.source.end=this.getPosition(e[2]),s.source.end.offset++,this.semicolon=!0;break}else if(r==="{"){u=!0;break}else if(r==="}"){if(a.length>0){for(i=a.length-1,n=a[i];n&&n[0]==="space";)n=a[--i];n&&(s.source.end=this.getPosition(n[3]||n[2]),s.source.end.offset++)}this.end(e);break}else a.push(e);else a.push(e);if(this.tokenizer.endOfFile()){o=!0;break}}s.raws.between=this.spacesAndCommentsFromEnd(a),a.length?(s.raws.afterName=this.spacesAndCommentsFromStart(a),this.raw(s,"params",a),o&&(e=a[a.length-1],s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++,this.spaces=s.raws.between,s.raws.between="")):(s.raws.afterName="",s.params=""),u&&(s.nodes=[],this.current=s)}checkMissedSemicolon(e){let s=this.colon(e);if(s===!1)return;let r=0,n;for(let i=s-1;i>=0&&(n=e[i],!(n[0]!=="space"&&(r+=1,r===2)));i--);throw this.input.error("Missed semicolon",n[0]==="word"?n[3]+1:n[2])}colon(e){let s=0,r,n,i;for(let[o,u]of e.entries()){if(n=u,i=n[0],i==="("&&(s+=1),i===")"&&(s-=1),s===0&&i===":")if(!r)this.doubleColon(n);else{if(r[0]==="word"&&r[1]==="progid")continue;return o}r=n}return!1}comment(e){let s=new Mc;this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.source.end.offset++;let r=e[1].slice(2,-2);if(/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*\S)(\s*)$/);s.text=n[2],s.raws.left=n[1],s.raws.right=n[3]}}createTokenizer(){this.tokenizer=$c(this.input)}decl(e,s){let r=new Uc;this.init(r,e[0][2]);let n=e[e.le Line truncated
`))),n=t[1].substring(t[1].indexOf(`
`));let o=this.input.css.valueOf().substring(this.tokenizer.position());n+=o,r=t[3]+o.length-n.length}else this.tokenizer.back(t);break}s.push(t[1]),r=t[2],t=this.tokenizer.nextToken({ignoreUnclosed:!0})}let i=["comment",s.join(""),e[2],r];return this.inlineComment(i),n&&(this.input=new jc(n),this.tokenizer=Gc(this.input)),!0}else if(t[1]==="/"){let e=this.tokenizer.nextToken({ignoreUnclosed:!0});if(e[0]==="comment"&&/^\/\*/.test(e[1]))return e[0]="word",e[1]=e[1].slice(1),t[1]="//",this.tokenizer.back(e),gs.exports.isInlineComment.bind(this)(t)}return!1}}});var fo=g((zv,co)=>{co.exports={interpolation(t){let e=[t,this.tokenizer.nextToken()],s=["word","}"];if(e[0][1].length>1||e[1][0]!=="{")return this.tokenizer.back(e[1]),!1;for(t=this.tokenizer.nextToken();t&&s.includes(t[0]);)e.push(t),t=this.tokenizer.nextToken();let r=e.map(u=>u[1]),[n]=e,i=e.pop(),o=["word",r.join(""),n[2],i[2]];return this.tokenizer.back(t),this.tokenizer.back(o),!0}}});var ho=g((Gv,po)=>{var Hc=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,Kc=/\.[0-9]/,Qc=t=>{let[,e]=t,[s]=e;return(s==="."||s==="#")&&Hc.test(e)===!1&&Kc.test(e)===!1};po.exports={isMixinToken:Qc}});var yo=g((jv,mo)=>{var Jc=Qt(),Xc=/^url\((.+)\)/;mo.exports=t=>{let{name:e,params:s=""}=t;if(e==="import"&&s.length){t.import=!0;let r=Jc({css:s});for(t.filename=s.replace(Xc,"$1");!r.endOfFile();){let[n,i]=r.nextToken();if(n==="word"&&i==="url")return;if(n==="brackets"){t.options=i,t.filename=s.replace(i,"").trim();break}}}}});var xo=g((Hv,vo)=>{var go=/:$/,wo=/^:(\s+)?/;vo.exports=t=>{let{name:e,params:s=""}=t;if(t.name.slice(-1)===":"){if(go.test(e)){let[r]=e.match(go);t.name=e.replace(r,""),t.raws.afterName=r+(t.raws.afterName||""),t.variable=!0,t.value=t.params}if(wo.test(s)){let[r]=s.match(wo);t.value=s.replace(r,""),t.raws.afterName=(t.raws.afterName||"")+r,t.variable=!0}}}});var Eo=g((Qv,_o)=>{var Zc=Re(),ef=Jt(),{isInlineComment:tf}=lo(),{interpolation:bo}=fo(),{isMixinToken:rf}=ho(),sf=yo(),nf=xo(),of=/(!\s*important)$/i;_o.exports=class extends ef{constructor(...e){super(...e),this.lastNode=null}atrule(e){bo.bind(this)(e)||(super.atrule(e),sf(this.lastNode),nf(this.lastNode))}decl(...e){super.decl(...e),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(e){e[0][1]=` ${e[0][1]}`;let s=e.findIndex(u=>u[0]==="("),r=e.reverse().find(u=>u[0]===")"),n=e.reverse().indexOf(r),o=e.splice(s,n).map(u=>u[1]).join("");for(let u of e.reverse())this.tokenizer.back(u);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=o}init(e,s,r){super.init(e,s,r),this.lastNode=e}inlineComment(e){let s=new Zc,r=e[1].slice(2);if(this.init(s,e[2]),s.source.end=this.getPosition(e[3]||e[2]),s.inline=!0,s.raws.begin="//",/^\s*$/.test(r))s.text="",s.raws.left=r,s.raws.right="";else{let n=r.match(/^(\s*)([^]*[^\s])(\s*)$/);[,s.raws.left,s.text,s.raws.right]=n}}mixin(e){let[s]=e,r=s[1].slice(0,1),n=e.findIndex(c=>c[0]==="brackets"),i=e.findIndex(c=>c[0]==="("),o="";if((n<0||n>3)&&i>0){let c=e.reduce((w,v,N)=>v[0]===")"?N:w),p=e.slice(i,c+i).map(w=>w[1]).join(""),[l]=e.slice(i),y=[l[2],l[3]],[x]=e.slice(c,c+1),h=[x[2],x[3]],d=["brackets",p].concat(y,h),m=e.slice(0,i),b=e.slice(c+1);e=m,e.push(d),e=e.concat(b)}let u=[];for(let c of e)if((c[1]==="!"||u.length)&&u.push(c),c[1]==="important")break;if(u.length){let[c]=u,f=e.indexOf(c),p=u[u.length-1],l=[c[2],c[3]],y=[p[4],p[5]],h=["word",u.map(d=>d[1]).join("")].concat(l,y);e.splice(f,u.length,h)}let a=e.findIndex(c=>of.test(c[1]));a>0&&([,o]=e[a],e.splice(a,1));for(let c of e.reverse())this.tokenizer.back(c);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=r,o&&(this.lastNode.important=!0,this.lastNode.raws.important=o)}other(e){tf.bind(this)(e)||super.other(e)}rule(e){let s=e[e.length-1],r=e[e.length-2];if(r[0]==="at-word"&&s[0]==="{"&&(this.tokenizer.back(s),bo.bind(this)(r))){let i=this.tokenizer.nextToken();e=e.slice(0,e.length-2).concat([i]);for(let o of e.reverse())this.tokenizer.back(o);return}super.rule(e),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(e){let[s]=e;if(e[0][1]==="each"&&e[1][0]==="("){this.each(e);return}if(rf(s)){this.mixin(e);return}super.unknownWord(e)}}});var So=g((Xv,ko)=>{var af=Yt();ko.exports=class extends af{atrule(e,s){if(!e.mixin&&!e.variable&&!e.function){super.atrule(e,s);return}let n=`${e.function?"":e.raws.identifier||"@"}${e.name}`,i=e.params?this.rawValue(e,"params"):"",o=e.raws.important||"";if(e.variable&&(i=e.value),typeof e.raws.afterName<"u"?n+=e.raws.afterName:i&&(n+=" "),e.nodes)this.block(e,n+i+o);else{let u=(e.raws.between||"")+o+(s?";":"");this.builder(n+i+u,e)}}comment(e){if(e.inline){let s=this.raw(e,"left","commentLeft"),r=this.raw(e,"right","commentRight");this.builder(`//${s}${e.text}${r}`,e)}else super.comment(e)}}});var To=g((Zv,ws)=>{var uf=qe(),lf=Eo(),cf=So();ws.exports={parse(t,e){let s=new uf(t,e),r=new lf(s);return r.parse(),r.root.walk(n=>{let i=s.css.lastIndex Line truncated
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let u=s(...o);return u.postcssPlugin=e,u.postcssVersion=new Ss().version,u}let i;return Object.defineProperty(n,"postcss",{get(){return i||(i=n()),i}}),n.process=function(o,u,a){return k([n(a)]).process(o,u)},n};k.stringify=jf;k.parse=zf;k.fromJSON=Ff;k.list=Yf;k.comment=t=>new Go(t);k.atRule=t=>new zo(t);k.decl=t=>new jo(t);k.rule=t=>new Qo(t);k.root=t=>new Ko(t);k.document=t=>new Ho(t);k.CssSyntaxError=Uf;k.Declaration=jo;k.Container=Mf;k.Processor=Ss;k.Document=Ho;k.Comment=Go;k.Warning=Hf;k.AtRule=zo;k.Result=Gf;k.Input=$f;k.Rule=Qo;k.Root=Ko;k.Node=Vf;Wf.registerPostcss(k);Jo.exports=k;k.default=k});var Zo=g((hx,Xo)=>{var{Container:Kf}=tr(),Ts=class extends Kf{constructor(e){super(e),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};Xo.exports=Ts});var ra=g((dx,ta)=>{"use strict";var rr=/[\t\n\f\r "#'()/;[\\\]{}]/g,sr=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,Qf=/.[\r\n"'(/\\]/,ea=/[\da-f]/i,nr=/[\n\f\r]/g;ta.exports=function(e,s={}){let r=e.css.valueOf(),n=s.ignoreErrors,i,o,u,a,c,f,p,l,y,x=r.length,h=0,d=[],m=[],b;function w(){return h}function v(T){throw e.error("Unclosed "+T,h)}function N(){return m.length===0&&h>=x}function F(){let T=1,C=!1,O=!1;for(;T>0;)o+=1,r.length<=o&&v("interpolation"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),C?!O&&i===C?(C=!1,O=!1):i===92?O=!O:O&&(O=!1):i===39||i===34?C=i:i===125?T-=1:i===35&&l===123&&(T+=1)}function Q(T){if(m.length)return m.pop();if(h>=x)return;let C=T?T.ignoreUnclosed:!1;switch(i=r.charCodeAt(h),i){case 10:case 32:case 9:case 13:case 12:{o=h;do o+=1,i=r.charCodeAt(o);while(i===32||i===10||i===9||i===13||i===12);y=["space",r.slice(h,o)],h=o-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let O=String.fromCharCode(i);y=[O,O,h];break}case 44:{y=["word",",",h,h+1];break}case 40:{if(p=d.length?d.pop()[1]:"",l=r.charCodeAt(h+1),p==="url"&&l!==39&&l!==34){for(b=1,f=!1,o=h+1;o<=r.length-1;){if(l=r.charCodeAt(o),l===92)f=!f;else if(l===40)b+=1;else if(l===41&&(b-=1,b===0))break;o+=1}a=r.slice(h,o+1),y=["brackets",a,h,o],h=o}else o=r.indexOf(")",h+1),a=r.slice(h,o+1),o===-1||Qf.test(a)?y=["(","(",h]:(y=["brackets",a,h,o],h=o);break}case 39:case 34:{for(u=i,o=h,f=!1;o<x&&(o++,o===x&&v("string"),i=r.charCodeAt(o),l=r.charCodeAt(o+1),!(!f&&i===u));)i===92?f=!f:f?f=!1:i===35&&l===123&&F();y=["string",r.slice(h,o+1),h,o],h=o;break}case 64:{rr.lastIndex=h+1,rr.test(r),rr.lastIndex===0?o=r.length-1:o=rr.lastIndex-2,y=["at-word",r.slice(h,o+1),h,o],h=o;break}case 92:{for(o=h,c=!0;r.charCodeAt(o+1)===92;)o+=1,c=!c;if(i=r.charCodeAt(o+1),c&&i!==47&&i!==32&&i!==10&&i!==9&&i!==13&&i!==12&&(o+=1,ea.test(r.charAt(o)))){for(;ea.test(r.charAt(o+1));)o+=1;r.charCodeAt(o+1)===32&&(o+=1)}y=["word",r.slice(h,o+1),h,o],h=o;break}default:l=r.charCodeAt(h+1),i===35&&l===123?(o=h,F(),a=r.slice(h,o+1),y=["word",a,h,o],h=o):i===47&&l===42?(o=r.indexOf("*/",h+2)+1,o===0&&(n||C?o=r.length:v("comment")),y=["comment",r.slice(h,o+1),h,o],h=o):i===47&&l===47?(nr.lastIndex=h+1,nr.test(r),nr.lastIndex===0?o=r.length-1:o=nr.lastIndex-2,a=r.slice(h,o+1),y=["comment",a,h,o,"inline"],h=o):(sr.lastIndex=h+1,sr.test(r),sr.lastIndex===0?o=r.length-1:o=sr.lastIndex-2,y=["word",r.slice(h,o+1),h,o],d.push(y),h=o);break}return h++,y}function W(T){m.push(T)}return{back:W,endOfFile:N,nextToken:Q,position:w}}});var na=g((mx,sa)=>{var{Comment:Jf}=tr(),Xf=Jt(),Zf=Zo(),ep=ra(),Cs=class extends Xf{atrule(e){let s=e[1],r=e;for(;!this.tokenizer.endOfFile();){let n=this.tokenizer.nextToken();if(n[0]==="word"&&n[2]===r[3]+1)s+=n[1],r=n;else{this.tokenizer.back(n);break}}super.atrule(["at-word",s,e[2],r[3]])}comment(e){if(e[4]==="inline"){let s=new Jf;this.init(s,e[2]),s.raws.inline=!0;let r=this.input.fromOffset(e[3]);s.source.end={column:r.col,line:r.line,offset:e[3]+1};let n=e[1].slice(2);if(/^\s*$/.test(n))s.text="",s.raws.left=n,s.raws.right="";else{let i=n.match(/^(\s*)([^]*\S)(\s*)$/),o=i[2].replace(/(\*\/|\/\*)/g,"*//*");s.text=o,s.raws.left=i[1],s.raws.right=i[3],s.raws.text=i[2]}}else super.comment(e)}createTokenizer(){this.tokenizer=ep(this.input)}raw(e,s,r,n){if(super.raw(e,s,r,n),e.raws[s]){let i=e.raws[s].raw;e.raws[s].raw=r.reduce((o,u)=>{if(u[0]==="comment"&&u[4]==="inline"){let a=u[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return o+"/*"+a+"*/"}else return o+u[1]},""),i!==e.raws[s].raw&&(e.raws[s].scss=i)}}rule(e){let s=!1,r=0,n="";for(let i of e)if(s)i[0]!=="comment"&&i[0]!=="{"&&(n+=i[1]);else{if(i[0]==="space"&&i[1].includes(`
`))break;i[0]==="("?r+=1:i[0]===")"?r-=1:r===0&&i[0]===":"&&(s=!0)}if(!s||n.trim()===""||/^[#:A-Za-z-]/.test(n))super.rule(e);else{e.pop();let i=new Zf;this.init(i,e[0][2]);let o;for(let a=e.length-1;a>=0;a--)if(e[a][0]!=="space"){o=e[a];break}if(o[3]){let a=this.input.fromOffset(o[3]);i.source.end={column:a.col,line:a.line,offset:o[3]+1}}else{let a=this.input.fromOffset(o[2]);i.source.end={column:a.col,line:a.line,offset:o[2]+1}}for(;e[0][0]!=="word";)i.raws.before+=e.shift()[1];if(e[0][2]){let a=this.input.fromOffset(e[0][2]);i.source.start={column:a.col,line:a.line,offset:e[0][2]}}for(i.prop="";e.length;){let a=e[0][0];if(a===":"||a==="space"||a==="comment")break;i.prop+=e.shift()[1]}i.raws.between="";let u;for(;e.length;)if(u=e.shift(),u[0]===":"){i.raws.between+=u[1];break}else i.raws.between+=u[1];(i.prop[0]==="_"||i.prop[0]==="*")&&(i.raws.before+=i.prop[0],i.prop=i.prop.slice(1)),i.raws.between+=this.spacesAndCommentsFromStart(e),this.precheckMissedSemicolon(e);for(let a=e.length-1;a>0;a--){if(u=e[a],u[1]==="!important"){i.important=!0;let c=this.stringFrom(e,a);c=this.spacesFromEnd(e)+c,c!==" !important"&&(i.raws.important=c);break}else if(u[1]==="important"){let c=e.slice(0),f="";for(let p=a;p>0;p--){let l=c[p][0];if(f.trim().indexOf("!")===0&&l!=="space")break;f=c.pop()[1]+f}f.trim().indexOf("!")===0&&(i.important=!0,i.raws.important=f,e=c)}if(u[0]!=="space"&&u[0]!=="comment")break}this.raw(i,"value",e),i.value.includes(":")&&this.checkMissedSemicolon(e),this.current=i}}};sa.exports=Cs});var oa=g((yx,ia)=>{var{Input:tp}=tr(),rp=na();ia.exports=function(e,s){let r=new tp(e,s),n=new rp(r);return n.parse(),n.root}});var As=g(Os=>{"use strict";Object.defineProperty(Os,"__esModule",{value:!0});function np(t){this.after=t.after,this.before=t.before,this.type=t.type,this.value=t.value,this.sourceIndex=t.sourceIndex}Os.default=np});var Ps=g(Ns=>{"use strict";Object.defineProperty(Ns,"__esModule",{value:!0});var ip=As(),ua=op(ip);function op(t){return t&&t.__esModule?t:{default:t}}function Et(t){var e=this;this.constructor(t),this.nodes=t.nodes,this.after===void 0&&(this.after=this.nodes.length>0?this.nodes[this.nodes.length-1].after:""),this.before===void 0&&(this.before=this.nodes.length>0?this.nodes[0].before:""),this.sourceIndex===void 0&&(this.sourceIndex=this.before.length),this.nodes.forEach(function(s){s.parent=e})}Et.prototype=Object.create(ua.default.prototype);Et.constructor=ua.default;Et.prototype.walk=function(e,s){for(var r=typeof e=="string"||e instanceof RegExp,n=r?s:e,i=typeof e=="string"?new RegExp(e):e,o=0;o<this.nodes.length;o++){var u=this.nodes[o],a=r?i.test(u.type):!0;if(a&&n&&n(u,o,this.nodes)===!1||u.nodes&&u.walk(e,s)===!1)return!1}return!0};Et.prototype.each=function(){for(var e=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],s=0;s<this.nodes.length;s++){var r=this.nodes[s];if(e(r,s,this.nodes)===!1)return!1}return!0};Ns.default=Et});var pa=g(kt=>{"use strict";Object.defineProperty(kt,"__esModule",{value:!0});kt.parseMediaFeature=fa;kt.parseMediaQuery=Is;kt.parseMediaList=lp;var ap=As(),la=ca(ap),up=Ps(),Rs=ca(up);function ca(t){return t&&t.__esModule?t:{default:t}}function fa(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[{mode:"normal",character:null}],r=[],n=0,i="",o=null,u=null,a=e,c=t;t[0]==="("&&t[t.length-1]===")"&&(c=t.substring(1,t.length-1),a++);for(var f=0;f<c.length;f++){var p=c[f];if((p==="'"||p==='"')&&(s[n].isCalculationEnabled===!0?(s.push({mode:"string",isCalculationEnabled:!1,character:p}),n++):s[n].mode==="string"&&s[n].character===p&&c[f-1]!=="\\"&&(s.pop(),n--)),p==="{"?(s.push({mode:"interpolation",isCalculationEnabled:!0}),n++):p==="}"&&(s.pop(),n--),s[n].mode==="normal"&&p===":"){var l=c.substring(f+1);u={type:"value",before:/^(\s*)/.exec(l)[1],after:/(\s*)$/.exec(l)[1],value:l.trim()},u.sourceIndex=u.before.length+f+1+a,o={type:"colon",sourceIndex:f+a,after:u.before,value:":"};break}i+=p}return i={type:"media-feature",before:/^(\s*)/.exec(i)[1],after:/(\s*)$/.exec(i)[1],value:i.trim()},i.sourceIndex=i.before.length+a,r.push(i),o!==null&&(o.before=i.after,r.push(o)),u!==null&&r.push(u),r}function Is(t){var e=arguments.length<=1||arguments[1]===void 0?0:arguments[1],s=[],r=0,n=!1,i=void 0;function o(){return{before:"",after:"",value:""}}i=o();for(var u=0;u<t.length;u++){var a=t[u];n?(i.value+=a,(a==="{"||a==="(")&&r++,(a===")"||a==="}")&&r--):a.search(/\s/)!==-1?i.before+=a:(a==="("&&(i.type="media-feature-expression",r++),i.value=a,i.sourceIndex=e+u,n=!0),n&&r===0&&(a===")"||u===t.length-1||t[u+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(i.value)!==-1&&(i.type="keyword"),i.type==="media-feature-expression"&&(i.nodes=fa(i.value,i.sourceIndex)),s.push(Array.isArray(i.nodes)?new Rs.default(i):new la.default(i)),i=o(),n=!1)}for(var c=0;c<s.length;c++)if(i=s[c],c>0&&(s[c-1].after=i.before),i.type===void 0){if(c>0){if(s[c-1].type==="media-feature-expression"){i.type="keyword";continue}if(s[c-1].value==="not" Line truncated
`),u=o.length-1,u>0?(f=d+u,p=n-o[u].length):(f=d,p=h),e.push(["comment",a,d,m-h,f,n-p,m]),h=p,d=f,m=n):(Er.lastIndex=m+1,Er.test(s),Er.lastIndex===0?n=s.length-1:n=Er.lastIndex-2,e.push(["word",s.slice(m,n+1),d,m-h,d,n-h,m]),m=n);break}m++}return e}ru.exports=kr.default});var ou=g((Sr,iu)=>{"use strict";Sr.__esModule=!0;var $d=function(){function t(e,s){for(var r=0;r<s.length;r++){var n=s[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(e,s,r){return s&&t(e.prototype,s),r&&t(e,r),e}}(),Wd=Ds(),Yd=I(Wd),Vd=Bs(),Vs=I(Vd),zd=Ms(),Gd=I(zd),jd=Ea(),Hd=I(jd),Kd=Sa(),zs=I(Kd),Qd=Oa(),Jd=I(Qd),Xd=Na(),Zd=I(Xd),em=Ra(),tm=I(em),rm=qa(),sm=I(rm),nm=Da(),im=I(nm),om=Ma(),am=I(om),um=Fa(),lm=I(um),cm=Wa(),fm=I(cm),pm=Va(),hm=I(pm),dm=Ga(),mm=I(dm),ym=Ha(),gm=I(ym),wm=su(),nu=I(wm),vm=B(),xm=bm(vm);function bm(t){if(t&&t.__esModule)return t;var e={};if(t!=null)for(var s in t)Object.prototype.hasOwnProperty.call(t,s)&&(e[s]=t[s]);return e.default=t,e}function I(t){return t&&t.__esModule?t:{default:t}}function _m(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}var Em=function(){function t(e){_m(this,t),this.input=e,this.lossy=e.options.lossless===!1,this.position=0,this.root=new Hd.default;var s=new zs.default;return this.root.append(s),this.current=s,this.lossy?this.tokens=(0,nu.default)({safe:e.safe,css:e.css.trim()}):this.tokens=(0,nu.default)(e),this.loop()}return t.prototype.attribute=function(){var s="",r=void 0,n=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)s+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~s.indexOf("]")&&this.error("Expected a closing square bracket.");var i=s.split(/((?:[*~^$|]?=))([^]*)/),o=i[0].split(/(\|)/g),u={operator:i[1],value:i[2],source:{start:{line:n[2],column:n[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:n[4]};if(o.length>1?(o[0]===""&&(o[0]=!0),u.attribute=this.parseValue(o[2]),u.namespace=this.parseNamespace(o[0])):u.attribute=this.parseValue(i[0]),r=new lm.default(u),i[2]){var a=i[2].split(/(\s+i\s*?)$/),c=a[0].trim();r.value=this.lossy?c:a[0],a[1]&&(r.insensitive=!0,this.lossy||(r.raws.insensitive=a[1])),r.quoted=c[0]==="'"||c[0]==='"',r.raws.unquoted=r.quoted?c.slice(1,-1):c}this.newNode(r),this.position++},t.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var s=new hm.default({value:"",source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]});this.position<this.tokens.length&&this.currToken&&(this.currToken[0]==="space"||this.currToken[0]==="combinator");)this.nextToken&&this.nextToken[0]==="combinator"?(s.spaces.before=this.parseSpace(this.currToken[1]),s.source.start.line=this.nextToken[2],s.source.start.column=this.nextToken[3],s.source.end.column=this.nextToken[3],s.source.end.line=this.nextToken[2],s.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?s.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?s.value=this.currToken[1]:this.currToken[0]==="space"&&(s.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(s)},t.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var s=new zs.default;this.current.parent.append(s),this.current=s,this.position++},t.prototype.comment=function(){var s=new Zd.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]});this.newNode(s),this.position++},t.prototype.error=function(s){throw new this.input.error(s)},t.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},t.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},t.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},t.prototype.namespace=function(){var s=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(s);if(this.nextToken[0]==="*")return this.position++,this.universal(s)},t.prototype.nesting=function(){this.newNode(new mm.default({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]})),this.position++},t.prototype.parentheses=function(){var s=this.current.last;if(s&&s.type===xm.PSEUDO){var r=new zs.default,n=this.current;s.append(r),this.current=r;var i=1;for(this.position++;this.position<this.tokens.length&&i;)this.currToken[0]==="("&&i++,this.currToken[0]===")"&&i--,i?this.parse():(r.parent.source.end.line=this.currToken[2],r.parent.source.end.column=th Line truncated
`?(r=1,n+=1):r+=1;return{line:n,column:r}}positionBy(e){let s=this.source.start;if(Object(e).index)s=this.positionInside(e.index);else if(Object(e).word){let r=this.toString().indexOf(e.word);r!==-1&&(s=this.positionInside(r))}return s}}});var U=g((zx,fu)=>{"use strict";var Pm=G(),Fe=class extends Pm{constructor(e){super(e),this.nodes||(this.nodes=[])}push(e){return e.parent=this,this.nodes.push(e),this}each(e){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let s=this.lastEach,r,n;if(this.indexes[s]=0,!!this.nodes){for(;this.indexes[s]<this.nodes.length&&(r=this.indexes[s],n=e(this.nodes[r],r),n!==!1);)this.indexes[s]+=1;return delete this.indexes[s],n}}walk(e){return this.each((s,r)=>{let n=e(s,r);return n!==!1&&s.walk&&(n=s.walk(e)),n})}walkType(e,s){if(!e||!s)throw new Error("Parameters {type} and {callback} are required.");let r=typeof e=="function";return this.walk((n,i)=>{if(r&&n instanceof e||!r&&n.type===e)return s.call(this,n,i)})}append(e){return e.parent=this,this.nodes.push(e),this}prepend(e){return e.parent=this,this.nodes.unshift(e),this}cleanRaws(e){if(super.cleanRaws(e),this.nodes)for(let s of this.nodes)s.cleanRaws(e)}insertAfter(e,s){let r=this.index(e),n;this.nodes.splice(r+1,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}insertBefore(e,s){let r=this.index(e),n;this.nodes.splice(r,0,s);for(let i in this.indexes)n=this.indexes[i],r<=n&&(this.indexes[i]=n+this.nodes.length);return this}removeChild(e){e=this.index(e),this.nodes[e].parent=void 0,this.nodes.splice(e,1);let s;for(let r in this.indexes)s=this.indexes[r],s>=e&&(this.indexes[r]=s-1);return this}removeAll(){for(let e of this.nodes)e.parent=void 0;return this.nodes=[],this}every(e){return this.nodes.every(e)}some(e){return this.nodes.some(e)}index(e){return typeof e=="number"?e:this.nodes.indexOf(e)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let e=this.nodes.map(String).join("");return this.value&&(e=this.value+e),this.raws.before&&(e=this.raws.before+e),this.raws.after&&(e+=this.raws.after),e}};Fe.registerWalker=t=>{let e="walk"+t.name;e.lastIndexOf("s")!==e.length-1&&(e+="s"),!Fe.prototype[e]&&(Fe.prototype[e]=function(s){return this.walkType(t,s)})};fu.exports=Fe});var hu=g((jx,pu)=>{"use strict";var Rm=U();pu.exports=class extends Rm{constructor(e){super(e),this.type="root"}}});var mu=g((Kx,du)=>{"use strict";var Im=U();du.exports=class extends Im{constructor(e){super(e),this.type="value",this.unbalanced=0}}});var wu=g((Qx,gu)=>{"use strict";var yu=U(),Cr=class extends yu{constructor(e){super(e),this.type="atword"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};yu.registerWalker(Cr);gu.exports=Cr});var xu=g((Jx,vu)=>{"use strict";var qm=U(),Lm=G(),Or=class extends Lm{constructor(e){super(e),this.type="colon"}};qm.registerWalker(Or);vu.exports=Or});var _u=g((Xx,bu)=>{"use strict";var Dm=U(),Bm=G(),Ar=class extends Bm{constructor(e){super(e),this.type="comma"}};Dm.registerWalker(Ar);bu.exports=Ar});var ku=g((Zx,Eu)=>{"use strict";var Mm=U(),Um=G(),Nr=class extends Um{constructor(e){super(e),this.type="comment",this.inline=Object(e).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};Mm.registerWalker(Nr);Eu.exports=Nr});var Cu=g((eb,Tu)=>{"use strict";var Su=U(),Pr=class extends Su{constructor(e){super(e),this.type="func",this.unbalanced=-1}};Su.registerWalker(Pr);Tu.exports=Pr});var Au=g((tb,Ou)=>{"use strict";var Fm=U(),$m=G(),Rr=class extends $m{constructor(e){super(e),this.type="number",this.unit=Object(e).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};Fm.registerWalker(Rr);Ou.exports=Rr});var Pu=g((rb,Nu)=>{"use strict";var Wm=U(),Ym=G(),Ir=class extends Ym{constructor(e){super(e),this.type="operator"}};Wm.registerWalker(Ir);Nu.exports=Ir});var Iu=g((sb,Ru)=>{"use strict";var Vm=U(),zm=G(),qr=class extends zm{constructor(e){super(e),this.type="paren",this.parenType=""}};Vm.registerWalker(qr);Ru.exports=qr});var Lu=g((nb,qu)=>{"use strict";var Gm=U(),jm=G(),Lr=class extends jm{constructor(e){super(e),this.type="string"}toString(){let e=this.quoted?this.raws.quote:"";return[this.raws.before,e,this.value+"",e,this.raws.after].join("")}};Gm.registerWalker(Lr);qu.exports=Lr});var Bu=g((ib,Du)=>{"use strict";var Hm=U(),Km=G(),Dr=class extends Km{constructor(e){super(e),this.type="word"}};Hm.registerWalker(Dr);Du.exports=Dr});var Uu=g((ob,Mu)=>{"use strict";var Qm=U(),Jm=G(),Br=class extends Jm{constructor(e){super(e),this.type="unicode-range"}};Qm.registerWalker(Br);Mu.exports=Br});var $u=g((ab,Fu)=>{"use strict";var js=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred wh Line truncated
`,a+2);l=O!==-1?O-1:i}d=n.slice(a,l+1),x=d.split(`
`),h=x.length-1,h>0?(b=u+h,w=l-x[h].length):(b=u,w=o),r.push(["comment",d,u,a-o,b,l-w,a]),o=w,u=b,a=l}else if(p===35&&!Zm.test(n.slice(a+1,a+2)))l=a+1,r.push(["#",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;else if((p===117||p===85)&&n.charCodeAt(a+1)===43){l=a+2;do l+=1,p=n.charCodeAt(l);while(l<i&&ey.test(n.slice(l,l+1)));r.push(["unicoderange",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1}else if(p===47)l=a+1,r.push(["operator",n.slice(a,l),u,a-o,u,l-o,a]),a=l-1;else{let C=Xm;if(p>=48&&p<=57&&(C=$e),C.lastIndex=a+1,C.test(n),C.lastIndex===0?l=n.length-1:l=C.lastIndex-2,C===$e||p===46){let O=n.charCodeAt(l),ve=n.charCodeAt(l+1),Zs=n.charCodeAt(l+2);(O===101||O===69)&&(ve===45||ve===43)&&Zs>=48&&Zs<=57&&($e.lastIndex=l+2,$e.test(n),$e.lastIndex===0?l=n.length-1:l=$e.lastIndex-2)}r.push(["word",n.slice(a,l+1),u,a-o,u,l-o,a]),a=l}break}a++}return r}});var Gu=g((lb,zu)=>{"use strict";var Hs=class extends Error{constructor(e){super(e),this.name=this.constructor.name,this.message=e||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(e).stack}};zu.exports=Hs});var Qu=g((fb,Ku)=>{"use strict";var ty=hu(),ry=mu(),sy=wu(),ny=xu(),iy=_u(),oy=ku(),ay=Cu(),uy=Au(),ly=Pu(),ju=Iu(),cy=Lu(),Hu=Bu(),fy=Uu(),py=Vu(),hy=Ds(),dy=Bs(),my=Ms(),yy=Gu();function gy(t){return t.sort((e,s)=>e-s)}Ku.exports=class{constructor(e,s){let r={loose:!1};this.cache=[],this.input=e,this.options=Object.assign({},r,s),this.position=0,this.unbalanced=0,this.root=new ty;let n=new ry;this.root.append(n),this.current=n,this.tokens=py(e,this.options)}parse(){return this.loop()}colon(){let e=this.currToken;this.newNode(new ny({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comma(){let e=this.currToken;this.newNode(new iy({value:e[1],source:{start:{line:e[2],column:e[3]},end:{line:e[4],column:e[5]}},sourceIndex:e[6]})),this.position++}comment(){let e=!1,s=this.currToken[1].replace(/\/\*|\*\//g,""),r;this.options.loose&&s.startsWith("//")&&(s=s.substring(2),e=!0),r=new oy({value:s,inline:e,source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]}),this.newNode(r),this.position++}error(e,s){throw new yy(e+` at line: ${s[2]}, column ${s[3]}`)}loop(){for(;this.position<this.tokens.length;)this.parseTokens();return!this.current.last&&this.spaces?this.current.raws.before+=this.spaces:this.spaces&&(this.current.last.raws.after+=this.spaces),this.spaces="",this.root}operator(){let e=this.currToken[1],s;if(e==="+"||e==="-"){if(this.options.loose||this.position>0&&(this.current.type==="func"&&this.current.value==="calc"?this.prevToken[0]!=="space"&&this.prevToken[0]!=="("?this.error("Syntax Error",this.currToken):this.nextToken[0]!=="space"&&this.nextToken[0]!=="word"?this.error("Syntax Error",this.currToken):this.nextToken[0]==="word"&&this.current.last.type!=="operator"&&this.current.last.value!=="("&&this.error("Syntax Error",this.currToken):(this.nextToken[0]==="space"||this.nextToken[0]==="operator"||this.prevToken[0]==="operator")&&this.error("Syntax Error",this.currToken)),this.options.loose){if((!this.current.nodes.length||this.current.last&&this.current.last.type==="operator")&&this.nextToken[0]==="word")return this.word()}else if(this.nextToken[0]==="word")return this.word()}return s=new ly({value:this.currToken[1],source:{start:{line:this.currToken[2],column:this.currToken[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:this.currToken[4]}),this.position++,this.newNode(s)}parseTokens(){switch(this.currToken[0]){case"space":this.space();break;case"colon":this.colon();break;case"comma":this.comma();break;case"comment":this.comment();break;case"(":this.parenOpen();break;case")":this.parenClose();break;case"atword":case"word":this.word();break;case"operator":this.operator();break;case"string":this.string();break;case"unicoderange":this.unicodeRange();break;default:this.word();break}}parenOpen(){let e=1,s=this.position+1,r=this.currToken,n;for(;s<this.tokens.length&&e;){let i=this.tokens[s];i[0]==="("&&e++,i[0]===")"&&e--,s++}if(e&&this.error("Expected closing parenthesis",r),n=this.current.last,n&&n.type==="func"&&n.unbalanced<0&&(n.unbalanced=0,this.current=n),this.current.unbalanced++,this.newNode(new ju({value:r[1],source:{start:{line:r[2],column:r[3]},end:{line:r[4],column:r[5]}},sourceIndex:r[6]})),this.position++,this.current.type==="func"&&this.current.unbalanced&&this.current.value==="url"&&this.currToken[0]!=="string"&&this.currToken[0]!==")"&&!this.options.loose){let i=this.nextToken,o=this.currToken[1],u={line:this.currToken[2],column:this.currToken[3]};for(;i&&i[0]!==")"&&this.current.unbalanced;)this.position++,o+=this.currToken[1],i=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new Hu({value:o,source:{start:u,end:{line:this.currToken[4],column:this.cu Line truncated
Expected it to be 'string' or 'object'.`;if(H(t))throw new Error("doc is valid.");let s=Object.prototype.toString.call(t);if(s!=="[object Object]")return`Unexpected doc '${s}'.`;let r=_l([...Tt].map(n=>`'${n}'`));return`Unexpected doc.type '${t.type}'.
Expected it to be ${r}.`}var Wr=class extends Error{name="InvalidDocError";constructor(e){super(El(e)),this.doc=e}},Yr=Wr;function Sl(t,e){if(typeof t=="string")return e(t);let s=new Map;return r(t);function r(i){if(s.has(i))return s.get(i);let o=n(i);return s.set(i,o),o}function n(i){switch(H(i)){case We:return e(i.map(r));case se:return e({...i,parts:i.parts.map(r)});case ne:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case re:{let{expandedStates:o,contents:u}=i;return o?(o=o.map(r),u=o[0]):u=r(u),e({...i,contents:u,expandedStates:o})}case _e:case te:case ze:case je:case Ee:return e({...i,contents:r(i.contents)});case be:case Ye:case Ve:case Ge:case j:case ke:return e(i);default:throw new Yr(i)}}}function Tl(t){return t.type===j&&!t.hard?t.soft?"":" ":t.type===ne?t.flatContents:t}function tn(t){return Sl(t,Tl)}var Vr=()=>{},ie=Vr,He=Vr,rn=Vr;function q(t){return ie(t),{type:te,contents:t}}function sn(t,e){return ie(e),{type:_e,contents:e,n:t}}function L(t,e={}){return ie(t),He(e.expandedStates,!0),{type:re,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function nn(t){return sn({type:"root"},t)}function oe(t){return sn(-1,t)}function Se(t){return rn(t),{type:se,parts:t}}function Ct(t,e="",s={}){return ie(t),e!==""&&ie(e),{type:ne,breakContents:t,flatContents:e,groupId:s.groupId}}function on(t){return ie(t),{type:Ee,contents:t}}var Ke={type:ke};var Cl={type:j,hard:!0};var A={type:j},D={type:j,soft:!0},S=[Cl,Ke];function Y(t,e){ie(t),He(e);let s=[];for(let r=0;r<e.length;r++)r!==0&&s.push(t),s.push(e[r]);return s}function Ol(t){return Array.isArray(t)&&t.length>0}var ae=Ol;var an=new Proxy(()=>{},{get:()=>an}),un=an;var Ot="'",ln='"';function Al(t,e){let s=e===!0||e===Ot?Ot:ln,r=s===Ot?ln:Ot,n=0,i=0;for(let o of t)o===s?n++:o===r&&i++;return n>i?r:s}var cn=Al;function Nl(t,e,s){let r=e==='"'?"'":'"',i=E(!1,t,/\\(.)|(["'])/gsu,(o,u,a)=>u===r?u:a===e?"\\"+a:a||(s&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(u)?u:"\\"+u));return e+i+e}var fn=Nl;function Pl(t,e){un.ok(/^(?<quote>["']).*\k<quote>$/su.test(t));let s=t.slice(1,-1),r=e.parser==="json"||e.parser==="jsonc"||e.parser==="json5"&&e.quoteProps==="preserve"&&!e.singleQuote?'"':e.__isInHtmlAttribute?"'":cn(s,e.singleQuote);return t.charAt(0)===r?t:fn(s,r,!1)}var At=Pl;var zr=class extends Error{name="UnexpectedNodeError";constructor(e,s,r="type"){super(`Unexpected ${s} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},pn=zr;function Rl(t){return(t==null?void 0:t.type)==="front-matter"}var Te=Rl;var Il=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function hn(t,e,s){if(Te(t)&&t.language==="yaml"&&delete e.value,t.type==="css-comment"&&s.type==="css-root"&&s.nodes.length>0&&((s.nodes[0]===t||Te(s.nodes[0])&&s.nodes[1]===t)&&(delete e.text,/^\*\s*@(?:format|prettier)\s*$/u.test(t.text))||s.type==="css-root"&&$(!1,s.nodes,-1)===t))return null;if(t.type==="value-root"&&delete e.text,(t.type==="media-query"||t.type==="media-query-list"||t.type==="media-feature-expression")&&delete e.value,t.type==="css-rule"&&delete e.params,(t.type==="media-feature"||t.type==="media-keyword"||t.type==="media-type"||t.type==="media-unknown"||t.type==="media-url"||t.type==="media-value"||t.type==="selector-attribute"||t.type==="selector-string"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="value-string")&&t.value&&(e.value=ql(t.value)),t.type==="selector-combinator"&&(e.value=E(!1,e.value,/\s+/gu," ")),t.type==="media-feature"&&(e.value=E(!1,e.value," ","")),(t.type==="value-word"&&(t.isColor&&t.isHex||["initial","inherit","unset","revert"].includes(t.value.toLowerCase()))||t.type==="media-feature"||t.type==="selector-root-invalid"||t.type==="selector-pseudo")&&(e.value=e.value.toLowerCase()),t.type==="css-decl"&&(e.prop=t.prop.toLowerCase()),(t.type==="css-atrule"||t.type==="css-import")&&(e.name=t.name.toLowerCase()),t.type==="value-number"&&(e.unit=t.unit.toLowerCase()),t.type==="value-unknown"&&(e.value=E(!1,e.value,/;$/gu,"")),t.type==="selector-attribute"&&(e.attribute=t.attribute.trim(),t.namespace&&typeof t.namespace=="string"&&(e.namespace=t.namespace.trim()||!0),t.value&&(e.value=E(!1,e.value.trim(),/^["']|["']$/gu,""),delete e.quoted)),(t.type==="media-value"||t.type==="media-type"||t.type==="value-number"||t.type==="selector-root-invalid"||t.type==="selector-class"||t.type==="selector-combinator"||t.type==="selector-tag")&&t.value&&(e.value=E(!1,e.value,/([\d+.e-]+)([a-z]*)/giu,(r,n,i)=>{let o=Number(n);return Number.isNaN(o)?r:o+i.toLowerCase()})),t.type==="selector-tag"){let r=e.value.toLowerCase();["from","to"].includes(r)&&(e.value=r)}if(t.type==="css-atrule"&&t.name.toLowerCase()==="supports"&&delete e.value,t.type==="selector-unknown"&&delete e.value,t.type==="value-comma_group"){let r=t.groups.findIndex(n=>n.type==="value-number"&&n.unit==="...");r!==-1&&(e.groups[r].unit="",e.groups.splice(r+1,0,{type:"value-word",value:"...",isC Line truncated
`,s)+1;return s+t.column}var jr=Fl;function Nt(t){return(e,s,r)=>{let n=!!(r!=null&&r.backwards);if(s===!1)return!1;let{length:i}=e,o=s;for(;o>=0&&o<i;){let u=e.charAt(o);if(t instanceof RegExp){if(!t.test(u))return o}else if(!t.includes(u))return o;n?o--:o++}return o===-1||o===i?o:!1}}var Fg=Nt(/\s/u),Pt=Nt(" "),bn=Nt(",; "),Rt=Nt(/[^\n\r]/u);function _n(t,e){var s,r,n;if(typeof((r=(s=t.source)==null?void 0:s.start)==null?void 0:r.offset)=="number")return t.source.start.offset;if(typeof t.sourceIndex=="number")return t.sourceIndex;if((n=t.source)!=null&&n.start)return jr(t.source.start,e);throw Object.assign(new Error("Can not locate node."),{node:t})}function Hr(t,e){var s,r;if(t.type==="css-comment"&&t.inline)return Rt(e,t.source.startOffset);if(typeof((r=(s=t.source)==null?void 0:s.end)==null?void 0:r.offset)=="number")return t.source.end.offset;if(t.source){if(t.source.end)return jr(t.source.end,e);if(ae(t.nodes))return Hr($(!1,t.nodes,-1),e)}return null}function Kr(t,e){t.source&&(t.source.startOffset=_n(t,e),t.source.endOffset=Hr(t,e));for(let s in t){let r=t[s];s==="source"||!r||typeof r!="object"||(r.type==="value-root"||r.type==="value-unknown"?En(r,$l(t),r.text||r.value):Kr(r,e))}}function En(t,e,s){t.source&&(t.source.startOffset=_n(t,s)+e,t.source.endOffset=Hr(t,s)+e);for(let r in t){let n=t[r];r==="source"||!n||typeof n!="object"||En(n,e,s)}}function $l(t){var s;let e=t.source.startOffset;return typeof t.prop=="string"&&(e+=t.prop.length),t.type==="css-atrule"&&typeof t.name=="string"&&(e+=1+t.name.length+t.raws.afterName.match(/^\s*:?\s*/u)[0].length),t.type!=="css-atrule"&&typeof((s=t.raws)==null?void 0:s.between)=="string"&&(e+=t.raws.between.length),e}function kn(t){let e="initial",s="initial",r,n=!1,i=[];for(let o=0;o<t.length;o++){let u=t[o];switch(e){case"initial":if(u==="'"){e="single-quotes";continue}if(u==='"'){e="double-quotes";continue}if((u==="u"||u==="U")&&t.slice(o,o+4).toLowerCase()==="url("){e="url",o+=3;continue}if(u==="*"&&t[o-1]==="/"){e="comment-block";continue}if(u==="/"&&t[o-1]==="/"){e="comment-inline",r=o-1;continue}continue;case"single-quotes":if(u==="'"&&t[o-1]!=="\\"&&(e=s,s="initial"),u===`
`||u==="\r")return t;continue;case"double-quotes":if(u==='"'&&t[o-1]!=="\\"&&(e=s,s="initial"),u===`
`||u==="\r")return t;continue;case"url":if(u===")"&&(e="initial"),u===`
`||u==="\r")return t;if(u==="'"){e="single-quotes",s="url";continue}if(u==='"'){e="double-quotes",s="url";continue}continue;case"comment-block":u==="/"&&t[o-1]==="*"&&(e="initial");continue;case"comment-inline":(u==='"'||u==="'"||u==="*")&&(n=!0),(u===`
`||u==="\r")&&(n&&i.push([r,o]),e="initial",n=!1);continue}}for(let[o,u]of i)t=t.slice(0,o)+E(!1,t.slice(o,u),/["'*]/gu," ")+t.slice(u);return t}function P(t){var e;return(e=t.source)==null?void 0:e.startOffset}function R(t){var e;return(e=t.source)==null?void 0:e.endOffset}var Wl=/\*\/$/,Yl=/^\/\*\*?/,On=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,Vl=/(^|\s+)\/\/([^\n\r]*)/g,Sn=/^(\r?\n)+/,zl=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Tn=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,Gl=/(\r?\n|^) *\* ?/g,An=[];function Nn(t){let e=t.match(On);return e?e[0].trimStart():""}function Pn(t){let e=t.match(On),s=e==null?void 0:e[0];return s==null?t:t.slice(s.length)}function Rn(t){let e=`
`;t=E(!1,t.replace(Yl,"").replace(Wl,""),Gl,"$1");let s="";for(;s!==t;)s=t,t=E(!1,t,zl,`${e}$1 $2${e}`);t=t.replace(Sn,"").trimEnd();let r=Object.create(null),n=E(!1,t,Tn,"").replace(Sn,"").trimEnd(),i;for(;i=Tn.exec(t);){let o=E(!1,i[2],Vl,"");if(typeof r[i[1]]=="string"||Array.isArray(r[i[1]])){let u=r[i[1]];r[i[1]]=[...An,...Array.isArray(u)?u:[u],o]}else r[i[1]]=o}return{comments:n,pragmas:r}}function In({comments:t="",pragmas:e={}}){let s=`
`,r="/**",n=" *",i=" */",o=Object.keys(e),u=o.flatMap(c=>Cn(c,e[c])).map(c=>`${n} ${c}${s}`).join("");if(!t){if(o.length===0)return"";if(o.length===1&&!Array.isArray(e[o[0]])){let c=e[o[0]];return`${r} ${Cn(o[0],c)[0]}${i}`}}let a=t.split(s).map(c=>`${n} ${c}`).join(s)+s;return r+s+(t?a:"")+(t&&o.length>0?n+s:"")+u+i}function Cn(t,e){return[...An,...Array.isArray(e)?e:[e]].map(s=>`@${t} ${s}`.trim())}function jl(t){if(!t.startsWith("#!"))return"";let e=t.indexOf(`
`);return e===-1?t:t.slice(0,e)}var qn=jl;function Ln(t){let e=qn(t);e&&(t=t.slice(e.length+1));let s=Nn(t),{pragmas:r,comments:n}=Rn(s);return{shebang:e,text:t,pragmas:r,comments:n}}function Dn(t){let{pragmas:e}=Ln(t);return Object.prototype.hasOwnProperty.call(e,"prettier")||Object.prototype.hasOwnProperty.call(e,"format")}function Bn(t){let{shebang:e,text:s,pragmas:r,comments:n}=Ln(t),i=Pn(s),o=In({pragmas:{format:"",...r},comments:n.trimStart()});return(e?`${e}
`:"")+o+(i.startsWith(`
`)?`
`:`
`)+i}var Xe=3;function Hl(t){let e=t.slice(0,Xe);if(e!=="---"&&e!=="+++")return;let s=t.indexOf(`
`,Xe);if(s===-1)return;let r=t.slice(Xe,s).trim(),n=t.indexOf(`
${e}`,s),i=r;if(i||(i=e==="+++"?"toml":"yaml"),n===-1&&e==="---"&&i==="yaml"&&(n=t.indexOf(`
...`,s)),n===-1)return;let o=n+1+Xe,u=t.charAt(o+1);if(!/\s?/u.test(u))return;let a=t.slice(0,o);return{type:"front-matter",language:i,explicitLanguage:r,value:t.slice(s+1,n),startDelimiter:e,endDelimiter:a.slice(-Xe),raw:a}}function Kl(t){let e=Hl(t);if(!e)return{content:t};let{raw:s}=e;return{frontMatter:e,content:E(!1,s,/[^\n]/gu," ")+t.slice(s.length)}}var Ze=Kl;function Mn(t){return Dn(Ze(t).content)}function Un(t){let{frontMatter:e,content:s}=Ze(t);return(e?e.raw+`
`:"")+Bn(s)}var Ql=new Set(["red","green","blue","alpha","a","rgb","hue","h","saturation","s","lightness","l","whiteness","w","blackness","b","tint","shade","blend","blenda","contrast","hsl","hsla","hwb","hwba"]);function Fn(t){var e,s;return(s=(e=t.findAncestor(r=>r.type==="css-decl"))==null?void 0:e.prop)==null?void 0:s.toLowerCase()}var Jl=new Set(["initial","inherit","unset","revert"]);function $n(t){return Jl.has(t.toLowerCase())}function Wn(t,e){var r;let s=t.findAncestor(n=>n.type==="css-atrule");return((r=s==null?void 0:s.name)==null?void 0:r.toLowerCase().endsWith("keyframes"))&&["from","to"].includes(e.toLowerCase())}function ue(t){return t.includes("$")||t.includes("@")||t.includes("#")||t.startsWith("%")||t.startsWith("--")||t.startsWith(":--")||t.includes("(")&&t.includes(")")?t:t.toLowerCase()}function Ce(t,e){var r;let s=t.findAncestor(n=>n.type==="value-func");return((r=s==null?void 0:s.value)==null?void 0:r.toLowerCase())===e}function Yn(t){var r;let e=t.findAncestor(n=>n.type==="css-rule"),s=(r=e==null?void 0:e.raws)==null?void 0:r.selector;return s&&(s.startsWith(":import")||s.startsWith(":export"))}function Oe(t,e){let s=Array.isArray(e)?e:[e],r=t.findAncestor(n=>n.type==="css-atrule");return r&&s.includes(r.name.toLowerCase())}function Vn(t){var s;let{node:e}=t;return e.groups[0].value==="url"&&e.groups.length===2&&((s=t.findAncestor(r=>r.type==="css-atrule"))==null?void 0:s.name)==="import"}function zn(t){return t.type==="value-func"&&t.value.toLowerCase()==="url"}function Gn(t){return t.type==="value-func"&&t.value.toLowerCase()==="var"}function jn(t){let{selector:e}=t;return e?typeof e=="string"&&/^@.+:.*$/u.test(e)||e.value&&/^@.+:.*$/u.test(e.value):!1}function Hn(t){return t.type==="value-word"&&["from","through","end"].includes(t.value)}function Kn(t){return t.type==="value-word"&&["and","or","not"].includes(t.value)}function Qn(t){return t.type==="value-word"&&t.value==="in"}function It(t){return t.type==="value-operator"&&t.value==="*"}function et(t){return t.type==="value-operator"&&t.value==="/"}function J(t){return t.type==="value-operator"&&t.value==="+"}function he(t){return t.type==="value-operator"&&t.value==="-"}function Xl(t){return t.type==="value-operator"&&t.value==="%"}function qt(t){return It(t)||et(t)||J(t)||he(t)||Xl(t)}function Jn(t){return t.type==="value-word"&&["==","!="].includes(t.value)}function Xn(t){return t.type==="value-word"&&["<",">","<=",">="].includes(t.value)}function tt(t,e){return e.parser==="scss"&&t.type==="css-atrule"&&["if","else","for","each","while"].includes(t.name)}function Jr(t){var e;return((e=t.raws)==null?void 0:e.params)&&/^\(\s*\)$/u.test(t.raws.params)}function Lt(t){return t.name.startsWith("prettier-placeholder")}function Zn(t){return t.prop.startsWith("@prettier-placeholder")}function ei(t,e){return t.value==="$$"&&t.type==="value-func"&&(e==null?void 0:e.type)==="value-word"&&!e.raws.before}function ti(t){var e,s;return((e=t.value)==null?void 0:e.type)==="value-root"&&((s=t.value.group)==null?void 0:s.type)==="value-value"&&t.prop.toLowerCase()==="composes"}function ri(t){var e,s,r;return((r=(s=(e=t.value)==null?void 0:e.group)==null?void 0:s.group)==null?void 0:r.type)==="value-paren_group"&&t.value.group.group.open!==null&&t.value.group.group.close!==null}function de(t){var e;return((e=t.raws)==null?void 0:e.before)===""}function Dt(t){var e,s;return t.type==="value-comma_group"&&((s=(e=t.groups)==null?void 0:e[1])==null?void 0:s.type)==="value-colon"}function Qr(t){var e;return t.type==="value-paren_group"&&((e=t.groups)==null?void 0:e[0])&&Dt(t.groups[0])}function Xr(t,e){var i;if(e.parser!=="scss")return!1;let{node:s}=t;if(s.groups.length===0)return!1;let r=t.grandparent;if(!Qr(s)&&!(r&&Qr(r)))return!1;let n=t.findAncestor(o=>o.type==="css-decl");return!!((i=n==null?void 0:n.prop)!=null&&i.startsWith("$")||Qr(r)||r.type==="value-func")}function Ae(t){return t.type==="value-comment"&&t.inline}function Bt(t){return t.type==="value-word"&&t.value==="#"}function Zr(t){return t.type==="value-word"&&t.value==="{"}function Mt(t){return t.type==="value-word"&&t.value==="}"}function rt(t){return["value-word","value-atword"].includes(t.type)}function st(t){return(t==null?void 0:t.type)==="value-colon"}function si(t,e){if(!Dt(e))return!1;let{groups:s}=e,r=s.indexOf(t);return r===-1?!1:st(s[r+1])}function ni(t){return t.value&&["not","and","or"].includes(t.value.toLowerCase())}function ii(t){return t.type!=="value-func"?!1:Ql.has(t.value.toLowerCase())}function Ne(t){return/\/\//u.test(t.split(/[\n\r]/u).pop())}function nt(t){return(t==null?void 0:t.type)==="value-atword"&&t.value.startsWith("prettier-placeholder-")}function oi(t,e){var s,r;if(((s=t.open)==null?void 0:s.value)!=="("||((r=t.close)==null?void 0:r.value)!==")"||t.groups.some(n=>n.type!=="value-comma_group"))return!1;if(e.type==="value-comma_group"){let n=e.groups.indexOf(t)-1,i=e.groups[n];if((i==null?void 0:i.type)==="value-word"&&i.value==="with")return!0}return!1}f Line truncated
`)return e-2;if(n===`
`||n==="\r"||n==="\u2028"||n==="\u2029")return e-1}else{if(n==="\r"&&t.charAt(e+1)===`
`)return e+2;if(n===`
`||n==="\r"||n==="\u2028"||n==="\u2029")return e+1}return e}var Ut=ic;function oc(t,e,s={}){let r=Pt(t,s.backwards?e-1:e,s),n=Ut(t,r,s);return r!==n}var Ft=oc;function ac(t,e){if(e===!1)return!1;if(t.charAt(e)==="/"&&t.charAt(e+1)==="*"){for(let s=e+2;s<t.length;++s)if(t.charAt(s)==="*"&&t.charAt(s+1)==="/")return s+2}return e}var hi=ac;function uc(t,e){return e===!1?!1:t.charAt(e)==="/"&&t.charAt(e+1)==="/"?Rt(t,e):e}var di=uc;function lc(t,e){let s=null,r=e;for(;r!==s;)s=r,r=bn(t,r),r=hi(t,r),r=Pt(t,r);return r=di(t,r),r=Ut(t,r),r!==!1&&Ft(t,r)}var $t=lc;function cc({node:t,parent:e},s){return!!(t.source&&s.originalText.slice(P(t),P(e.close)).trimEnd().endsWith(","))}function fc(t,e){return Gn(t.grandparent)&&cc(t,e)?",":t.node.type!=="value-comment"&&!(t.node.type==="value-comma_group"&&t.node.groups.every(s=>s.type==="value-comment"))&&pi(e)&&t.callParent(()=>Xr(t,e))?Ct(","):""}function mi(t,e,s){let{node:r,parent:n}=t,i=t.map(({node:y})=>typeof y=="string"?y:s(),"groups");if(n&&zn(n)&&(r.groups.length===1||r.groups.length>0&&r.groups[0].type==="value-comma_group"&&r.groups[0].groups.length>0&&r.groups[0].groups[0].type==="value-word"&&r.groups[0].groups[0].value.startsWith("data:")))return[r.open?s("open"):"",Y(",",i),r.close?s("close"):""];if(!r.open){let y=rs(t);He(i);let x=hc(Y(",",i),2),h=Y(y?S:A,x);return q(y?[S,h]:L([pc(t)?D:"",Se(h)]))}let o=t.map(({node:y,isLast:x,index:h})=>{var b;let d=i[h];Dt(y)&&y.type==="value-comma_group"&&y.groups&&y.groups[0].type!=="value-paren_group"&&((b=y.groups[2])==null?void 0:b.type)==="value-paren_group"&&H(d)===re&&H(d.contents)===te&&H(d.contents.contents)===se&&(d=L(oe(d)));let m=[d,x?fc(t,e):","];if(!x&&y.type==="value-comma_group"&&ae(y.groups)){let w=$(!1,y.groups,-1);!w.source&&w.close&&(w=w.close),w.source&&$t(e.originalText,R(w))&&m.push(S)}return m},"groups"),u=si(r,n),a=oi(r,n),c=Xr(t,e),f=a||c&&!u,p=a||u,l=L([r.open?s("open"):"",q([D,Y(A,o)]),D,r.close?s("close"):""],{shouldBreak:f});return p?oe(l):l}function rs(t){return t.match(e=>e.type==="value-paren_group"&&!e.open&&e.groups.some(s=>s.type==="value-comma_group"),(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&(e.type==="css-decl"&&!e.prop.startsWith("--")||e.type==="css-atrule"&&e.variable))}function pc(t){return t.match(e=>e.type==="value-paren_group"&&!e.open,(e,s)=>s==="group"&&e.type==="value-value",(e,s)=>s==="group"&&e.type==="value-root",(e,s)=>s==="value"&&e.type==="css-decl")}function hc(t,e){let s=[];for(let r=0;r<t.length;r+=e)s.push(t.slice(r,r+e));return s}function dc(t,e,s){let r=[];return t.each(()=>{let{node:n,previous:i}=t;if((i==null?void 0:i.type)==="css-comment"&&i.text.trim()==="prettier-ignore"?r.push(e.originalText.slice(P(n),R(n))):r.push(s()),t.isLast)return;let{next:o}=t;o.type==="css-comment"&&!Ft(e.originalText,P(o),{backwards:!0})&&!Te(n)||o.type==="css-atrule"&&o.name==="else"&&n.type!=="css-comment"?r.push(" "):(r.push(e.__isHTMLStyleAttribute?A:S),$t(e.originalText,R(n))&&!Te(n)&&r.push(S))},"nodes"),r}var Pe=dc;function mc(t,e,s){var n,i,o,u,a,c;let{node:r}=t;switch(r.type){case"front-matter":return[r.raw,S];case"css-root":{let f=Pe(t,e,s),p=r.raws.after.trim();return p.startsWith(";")&&(p=p.slice(1).trim()),[r.frontMatter?[s("frontMatter"),S]:"",f,p?` ${p}`:"",r.nodes.length>0?S:""]}case"css-comment":{let f=r.inline||r.raws.inline,p=e.originalText.slice(P(r),R(r));return f?p.trimEnd():p}case"css-rule":return[s("selector"),r.important?" !important":"",r.nodes?[((n=r.selector)==null?void 0:n.type)==="selector-unknown"&&Ne(r.selector.value)?A:r.selector?" ":"","{",r.nodes.length>0?q([S,Pe(t,e,s)]):"",S,"}",jn(r)?";":""]:";"];case"css-decl":{let f=t.parent,{between:p}=r.raws,l=p.trim(),y=l===":",x=typeof r.value=="string"&&/^ *$/u.test(r.value),h=typeof r.value=="string"?r.value:s("value");return h=ti(r)?tn(h):h,!y&&Ne(l)&&!((o=(i=r.value)==null?void 0:i.group)!=null&&o.group&&t.call(()=>rs(t),"value","group","group"))&&(h=q([S,oe(h)])),[E(!1,r.raws.before,/[\s;]/gu,""),f.type==="css-atrule"&&f.variable||Yn(t)?r.prop:ue(r.prop),l.startsWith("//")?" ":"",l,r.extend||x?"":" ",e.parser==="less"&&r.extend&&r.selector?["extend(",s("selector"),")"]:"",h,r.raws.important?r.raws.important.replace(/\s*!\s*important/iu," !important"):r.important?" !important":"",r.raws.scssDefault?r.raws.scssDefault.replace(/\s*!default/iu," !default"):r.scssDefault?" !default":"",r.raws.scssGlobal?r.raws.scssGlobal.replace(/\s*!global/iu," !global"):r.scssGlobal?" !global":"",r.nodes?[" {",q([D,Pe(t,e,s)]),D,"}"]:Zn(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";"?"":e.__isHTMLStyleAttribute&&t.isLast?Ct(";"):";"]}case"css-atrule":{let f=t.parent,p=Lt(r)&&!f.raws.semicolon&&e.originalText[R(r)-1]!==";";if(e.parser==="less"){if(r.mixin)return[s("selector"),r.important?" !important":"",p?"":";"];if(r.function)return[r.name,typeof r.params=="string"?r.params:s("params"),p?"":";"];if(r.variable)return["@",r.name,": ",r.value?s("value" Line truncated
+5
View File
@@ -0,0 +1,5 @@
import { Parser } from "../index.js";
export declare const parsers: {
typescript: Parser;
};
+20
View File
@@ -0,0 +1,20 @@
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.typescript=e()}})(function(){"use strict";var Zc=Object.defineProperty;var $0=Object.getOwnPropertyDescriptor;var Q0=Object.getOwnPropertyNames;var K0=Object.prototype.hasOwnProperty;var vd=e=>{throw TypeError(e)};var Z0=(e,t,a)=>t in e?Zc(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var Td=(e,t)=>{for(var a in t)Zc(e,a,{get:t[a],enumerable:!0})},ey=(e,t,a,o)=>{if(t&&typeof t=="object"||typeof t=="function")for(let m of Q0(t))!K0.call(e,m)&&m!==a&&Zc(e,m,{get:()=>t[m],enumerable:!(o=$0(t,m))||o.enumerable});return e};var ty=e=>ey(Zc({},"__esModule",{value:!0}),e);var qi=(e,t,a)=>Z0(e,typeof t!="symbol"?t+"":t,a),ny=(e,t,a)=>t.has(e)||vd("Cannot "+a);var gp=(e,t,a)=>t.has(e)?vd("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a);var ge=(e,t,a)=>(ny(e,t,"access private method"),a);var q4={};Td(q4,{parsers:()=>dd});var dd={};Td(dd,{typescript:()=>B4});var ry=()=>()=>{},Ia=ry;var iy=(e,t,a,o)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(a,o):a.global?t.replace(a,o):t.split(a).join(o)},Sr=iy;var Sm="5.7";var bt=[],ay=new Map;function ts(e){return e!==void 0?e.length:0}function Un(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let o=t(e[a],a);if(o)return o}}function _y(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let o=t(e[a],a);if(o!==void 0)return o}}function xd(e,t,a){let o=[];B.assertEqual(e.length,t.length);for(let m=0;m<e.length;m++)o.push(a(e[m],t[m],m));return o}function Yp(e,t){if(e!==void 0){for(let a=0;a<e.length;a++)if(!t(e[a],a))return!1}return!0}function wm(e,t,a){if(e!==void 0)for(let o=a??0;o<e.length;o++){let m=e[o];if(t(m,o))return m}}function bp(e,t,a){if(e===void 0)return-1;for(let o=a??0;o<e.length;o++)if(t(e[o],o))return o;return-1}function sy(e,t,a=$p){if(e!==void 0){for(let o=0;o<e.length;o++)if(a(e[o],t))return!0}return!1}function Gr(e,t){if(e!==void 0){let a=e.length,o=0;for(;o<a&&t(e[o]);)o++;if(o<a){let m=e.slice(0,o);for(o++;o<a;){let v=e[o];t(v)&&m.push(v),o++}return m}}return e}function Np(e,t){let a;if(e!==void 0){a=[];for(let o=0;o<e.length;o++)a.push(t(e[o],o))}return a}function km(e){let t=[];for(let a=0;a<e.length;a++){let o=e[a];o&&(Yr(o)?Dn(t,o):t.push(o))}return t}function Em(e,t){let a;if(e!==void 0)for(let o=0;o<e.length;o++){let m=t(e[o],o);m&&(Yr(m)?a=Dn(a,m):a=An(a,m))}return a??bt}function oy(e,t){let a;if(e!==void 0)for(let o=0;o<e.length;o++){let m=e[o],v=t(m,o);(a||m!==v||Yr(v))&&(a||(a=e.slice(0,o)),Yr(v)?Dn(a,v):a.push(v))}return a??e}function cy(e,t){let a=[];if(e!==void 0)for(let o=0;o<e.length;o++){let m=t(e[o],o);m!==void 0&&a.push(m)}return a}function Xt(e,t){if(e!==void 0)if(t!==void 0){for(let a=0;a<e.length;a++)if(t(e[a]))return!0}else return e.length>0;return!1}function Xp(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function ly(e,t,a=$p){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!a(e[o],t[o],o))return!1;return!0}function An(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Ip(e,t){return t<0?e.length+t:t}function Dn(e,t,a,o){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(a,o);a=a===void 0?0:Ip(t,a),o=o===void 0?t.length:Ip(t,o);for(let m=a;m<o&&m<t.length;m++)t[m]!==void 0&&e.push(t[m]);return e}function uy(e,t,a){return sy(e,t,a)?!1:(e.push(t),!0)}function py(e,t,a){return e!==void 0?(uy(e,t,a),e):[t]}function fy(e,t){return e.length===0?bt:e.slice().sort(t)}var W4=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e!==void 0&&(t=Ip(e,t),t<e.length))return e[t]};function Hp(e){return e===void 0||e.length===0?void 0:e[0]}function Yi(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function dy(e){return B.assert(e.length!==0),e[e.length-1]}function my(e){return e!==void 0&&e.length===1?e[0]:void 0}function hy(e,t,a,o,m){return yy(e,a(t),a,o,m)}function yy(e,t,a,o,m){if(!Xt(e))return-1;let v=m??0,A=e.length-1;for(;v<=A;){let P=v+(A-v>>1),l=a(e[P],P);switch(o(l,t)){case-1:v=P+1;break;case 0:return P;case 1:A=P-1;break}}return~v}function gy(e,t,a,o,m){if(e&&e.length>0){let v=e.length;if(v>0){let A=o===void 0||o<0?0:o,P=m===void 0||A+m>v-1?v-1:A+m,l;for(arguments.length<=2?(l=e[A],A++):l=a;A<=P;)l=t(l,e[A],A),A++;return l}}return a}var Am=Object.prototype.hasOwnProperty;function Cr(e,t){return Am.call(e,t)}function by(e){let t=[];for(let a in e)Am.call(e,a)&&t.push(a);return t}function vy(){let e=new Map;return e.add=Ty,e.remove=xy,e}function Ty(e,t){let a=this.get(e);return a!==void 0?a.push(t):this.set(e,a=[t]),a}function xy(e,t){let a=this.get(e);a!==void 0&&(Ny(a,t),a.length||this.delete(e))}function Yr(e){return Line truncated
Node ${Ot(L.kind)} was unexpected.`,fe||y)}e.failBadSyntaxKind=y;function g(L,se,fe,Te){L||(se=se?`False expression: ${se}`:"False expression.",fe&&(se+=`\r
Verbose Debug Information: `+(typeof fe=="string"?fe:fe())),h(se,Te||g))}e.assert=g;function x(L,se,fe,Te,He){if(L!==se){let Ke=fe?Te?`${fe} ${Te}`:fe:"";h(`Expected ${L} === ${se}. ${Ke}`,He||x)}}e.assertEqual=x;function I(L,se,fe,Te){L>=se&&h(`Expected ${L} < ${se}. ${fe||""}`,Te||I)}e.assertLessThan=I;function re(L,se,fe){L>se&&h(`Expected ${L} <= ${se}`,fe||re)}e.assertLessThanOrEqual=re;function he(L,se,fe){L<se&&h(`Expected ${L} >= ${se}`,fe||he)}e.assertGreaterThanOrEqual=he;function ye(L,se,fe){L==null&&h(se,fe||ye)}e.assertIsDefined=ye;function de(L,se,fe){return ye(L,se,fe||de),L}e.checkDefined=de;function M(L,se,fe){for(let Te of L)ye(Te,se,fe||M)}e.assertEachIsDefined=M;function ae(L,se,fe){return M(L,se,fe||ae),L}e.checkEachDefined=ae;function Oe(L,se="Illegal value:",fe){let Te=typeof L=="object"&&Cr(L,"kind")&&Cr(L,"pos")?"SyntaxKind: "+Ot(L.kind):JSON.stringify(L);return h(`${se} ${Te}`,fe||Oe)}e.assertNever=Oe;function V(L,se,fe,Te){Q(1,"assertEachNode")&&g(se===void 0||Yp(L,se),fe||"Unexpected node.",()=>`Node array did not pass test '${bn(se)}'.`,Te||V)}e.assertEachNode=V;function oe(L,se,fe,Te){Q(1,"assertNode")&&g(L!==void 0&&(se===void 0||se(L)),fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} did not pass test '${bn(se)}'.`,Te||oe)}e.assertNode=oe;function W(L,se,fe,Te){Q(1,"assertNotNode")&&g(L===void 0||se===void 0||!se(L),fe||"Unexpected node.",()=>`Node ${Ot(L.kind)} should not have passed test '${bn(se)}'.`,Te||W)}e.assertNotNode=W;function dt(L,se,fe,Te){Q(1,"assertOptionalNode")&&g(se===void 0||L===void 0||se(L),fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} did not pass test '${bn(se)}'.`,Te||dt)}e.assertOptionalNode=dt;function nr(L,se,fe,Te){Q(1,"assertOptionalToken")&&g(se===void 0||L===void 0||L.kind===se,fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} was not a '${Ot(se)}' token.`,Te||nr)}e.assertOptionalToken=nr;function gn(L,se,fe){Q(1,"assertMissingNode")&&g(L===void 0,se||"Unexpected node.",()=>`Node ${Ot(L.kind)} was unexpected'.`,fe||gn)}e.assertMissingNode=gn;function rr(L){}e.type=rr;function bn(L){if(typeof L!="function")return"";if(Cr(L,"name"))return L.name;{let se=Function.prototype.toString.call(L),fe=/^function\s+([\w$]+)\s*\(/.exec(se);return fe?fe[1]:""}}e.getFunctionName=bn;function In(L){return`{ name: ${cs(L.escapedName)}; flags: ${ct(L.flags)}; declarations: ${Np(L.declarations,se=>Ot(se.kind))} }`}e.formatSymbol=In;function Ge(L=0,se,fe){let Te=Pr(se);if(L===0)return Te.length>0&&Te[0][0]===0?Te[0][1]:"0";if(fe){let He=[],Ke=L;for(let[st,Dt]of Te){if(st>L)break;st!==0&&st&L&&(He.push(Dt),Ke&=~st)}if(Ke===0)return He.join("|")}else for(let[He,Ke]of Te)if(He===L)return Ke;return L.toString()}e.formatEnum=Ge;let ir=new Map;function Pr(L){let se=ir.get(L);if(se)return se;let fe=[];for(let He in L){let Ke=L[He];typeof Ke=="number"&&fe.push([Ke,He])}let Te=fy(fe,(He,Ke)=>Cm(He[0],Ke[0]));return ir.set(L,Te),Te}function Ot(L){return Ge(L,Ie,!1)}e.formatSyntaxKind=Ot;function Bn(L){return Ge(L,Om,!1)}e.formatSnippetKind=Bn;function On(L){return Ge(L,Dr,!1)}e.formatScriptKind=On;function Mt(L){return Ge(L,on,!0)}e.formatNodeFlags=Mt;function vt(L){return Ge(L,Pm,!0)}e.formatNodeCheckFlags=vt;function Qe(L){return Ge(L,Kp,!0)}e.formatModifierFlags=Qe;function qn(L){return Ge(L,Im,!0)}e.formatTransformFlags=qn;function $t(L){return Ge(L,Mm,!0)}e.formatEmitFlags=$t;function ct(L){return Ge(L,Zp,!0)}e.formatSymbolFlags=ct;function _t(L){return Ge(L,nn,!0)}e.formatTypeFlags=_t;function Ut(L){return Ge(L,Nm,!0)}e.formatSignatureFlags=Ut;function Jt(L){return Ge(L,ef,!0)}e.formatObjectFlags=Jt;function lt(L){return Ge(L,Mp,!0)}e.formatFlowFlags=lt;function ar(L){return Ge(L,Dm,!0)}e.formatRelationComparisonResult=ar;function mt(L){return Ge(L,CheckMode,!0)}e.formatCheckMode=mt;function vn(L){return Ge(L,SignatureCheckMode,!0)}e.formatSignatureCheckMode=vn;function yt(L){return Ge(L,TypeFacts,!0)}e.formatTypeFacts=yt;let cn=!1,nt;function Bt(L){"__debugFlowFlags"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(){let se=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",fe=this.flags&-2048;return`${se}${fe?` (${lt(fe)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,Mp,!0)}},__debugToString:{value(){return mr(this)}}})}function rn(L){return cn&&(typeof Object.setPrototypeOf=="function"?(nt||(nt=Object.create(Object.prototype),Bt(nt)),Object.setPrototypeOf(L,nt)):Bt(L)),L}e.attachFlowNodeDebugInfo=rn;let _r;function fr(L){"__tsDebuggerDisplay"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}})}function dr(L){cn&&(type Line truncated
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return Oe(this)}}}e.DebugTypeMapper=Nr;function Vn(L){return e.isDebugging?Object.setPrototypeOf(L,Nr.prototype):L}e.attachDebugPrototypeIfDebug=Vn;function Ce(L){return console.log(mr(L))}e.printControlFlowGraph=Ce;function mr(L){let se=-1;function fe(u){return u.id||(u.id=se,se--),u.id}let Te;(u=>{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(Te||(Te={}));let He;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(He||(He={}));let Ke=2032,st=882,Dt=Object.create(null),Tt=[],ut=[],Ir=Se(L,new Set);for(let u of Tt)u.text=rt(u.flowNode,u.circular),be(u);let hr=We(Ir),Mn=Ze(hr);return Ye(Ir,0),ln();function Wn(u){return!!(u.flags&128)}function Si(u){return!!(u.flags&12)&&!!u.antecedent}function R(u){return!!(u.flags&Ke)}function $(u){return!!(u.flags&st)}function K(u){let Ne=[];for(let Me of u.edges)Me.source===u&&Ne.push(Me.target);return Ne}function xe(u){let Ne=[];for(let Me of u.edges)Me.target===u&&Ne.push(Me.source);return Ne}function Se(u,Ne){let Me=fe(u),U=Dt[Me];if(U&&Ne.has(u))return U.circular=!0,U={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(U),U;if(Ne.add(u),!U)if(Dt[Me]=U={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(U),Si(u))for(let ze of u.antecedent)we(U,ze,Ne);else R(u)&&we(U,u.antecedent,Ne);return Ne.delete(u),U}function we(u,Ne,Me){let U=Se(Ne,Me),ze={source:u,target:U};ut.push(ze),u.edges.push(ze),U.edges.push(ze)}function be(u){if(u.level!==-1)return u.level;let Ne=0;for(let Me of xe(u))Ne=Math.max(Ne,be(Me)+1);return u.level=Ne}function We(u){let Ne=0;for(let Me of K(u))Ne=Math.max(Ne,We(Me));return Ne+1}function Ze(u){let Ne=J(Array(u),0);for(let Me of Tt)Ne[Me.level]=Math.max(Ne[Me.level],Me.text.length);return Ne}function Ye(u,Ne){if(u.lane===-1){u.lane=Ne,u.endLane=Ne;let Me=K(u);for(let U=0;U<Me.length;U++){U>0&&Ne++;let ze=Me[U];Ye(ze,Ne),ze.endLane>u.endLane&&(Ne=ze.endLane)}u.endLane=Ne}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function Tn(u){let Ne=hi(u);return Rd(Ne,u,!1)}function rt(u,Ne){let Me=Ee(u.flags);if(Ne&&(Me=`${Me}#${fe(u)}`),Wn(u)){let U=[],{switchStatement:ze,clauseStart:an,clauseEnd:Ve}=u.node;for(let $e=an;$e<Ve;$e++){let Pt=ze.caseBlock.clauses[$e];_6(Pt)?U.push("default"):U.push(Tn(Pt.expression))}Me+=` (${U.join(", ")})`}else $(u)&&u.node&&(Me+=` (${Tn(u.node)})`);return Ne==="circularity"?`Circular(${Me})`:Me}function ln(){let u=Mn.length,Ne=Ay(Tt,0,Ve=>Ve.lane)+1,Me=J(Array(Ne),""),U=Mn.map(()=>Array(Ne)),ze=Mn.map(()=>J(Array(Ne),0));for(let Ve of Tt){U[Ve.level][Ve.lane]=Ve;let $e=K(Ve);for(let kt=0;kt<$e.length;kt++){let Nt=$e[kt],qt=8;Nt.lane===Ve.lane&&(qt|=4),kt>0&&(qt|=1),kt<$e.length-1&&(qt|=2),ze[Ve.level][Nt.lane]|=qt}$e.length===0&&(ze[Ve.level][Ve.lane]|=16);let Pt=xe(Ve);for(let kt=0;kt<Pt.length;kt++){let Nt=Pt[kt],qt=4;kt>0&&(qt|=1),kt<Pt.length-1&&(qt|=2),ze[Ve.level-1][Nt.lane]|=qt}}for(let Ve=0;Ve<u;Ve++)for(let $e=0;$e<Ne;$e++){let Pt=Ve>0?ze[Ve-1][$e]:0,kt=$e>0?ze[Ve][$e-1]:0,Nt=ze[Ve][$e];Nt||(Pt&8&&(Nt|=12),kt&2&&(Nt|=3),ze[Ve][$e]=Nt)}for(let Ve=0;Ve<u;Ve++)for(let $e=0;$e<Me.length;$e++){let Pt=ze[Ve][$e],kt=Pt&4?"\u2500":" ",Nt=U[Ve][$e];Nt?(an($e,Nt.text),Ve<u-1&&(an($e," "),an($e,qe(kt,Mn[Ve]-Nt.text.length)))):Ve<u-1&&an($e,qe(kt,Mn[Ve]+1)),an($e,Zr(Pt)),an($e,Pt&8&&Ve<u-1&&!U[Ve+1][$e]?"\u2500":" ")}return`
${Me.join(`
`)}
`;function an(Ve,$e){Me[Ve]+=$e}}function Zr(u){switch(u){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function J(u,Ne){if(u.fill)u.fill(Ne);else for(let Me=0;Me<u.length;Me++)u[Me]=Ne;return u}function qe(u,Ne){if(u.repeat)return Ne>0?u.repeat(Ne):"";let Me="";for(;Me.length<Ne;)Me+=u;return Me}}e.formatControlFlowGraph=mr})(B||(B={}));var G4=Date.now,wd=()=>{},Oy=()=>{},sl,Ie=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKey Line truncated
`,K=l;continue}l++}return B.assert(Se!==void 0),x=xe,Se}function Ot(R){let $=l;if(l++,l>=Q)return W(E.Unexpected_end_of_text),"";let K=V(l);switch(l++,K){case 48:if(l>=Q||!fi(V(l)))return"\0";case 49:case 50:case 51:l<Q&&xp(V(l))&&l++;case 52:case 53:case 54:case 55:if(l<Q&&xp(V(l))&&l++,I|=2048,R&6){let we=parseInt(P.substring($+1,l),8);return R&4&&!(R&32)&&K!==48?W(E.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead,$,l-$,"\\x"+we.toString(16).padStart(2,"0")):W(E.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,$,l-$,"\\x"+we.toString(16).padStart(2,"0")),String.fromCharCode(we)}return P.substring($,l);case 56:case 57:return I|=2048,R&6?(R&4&&!(R&32)?W(E.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,$,l-$):W(E.Escape_sequence_0_is_not_allowed,$,l-$,P.substring($,l)),String.fromCharCode(K)):P.substring($,l);case 98:return"\b";case 116:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(l<Q&&V(l)===123){l-=2;let we=Bn(!!(R&6));return R&17||(I|=2048,R&6&&W(E.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,$,l-$)),we}for(;l<$+6;l++)if(!(l<Q&&Tp(V(l))))return I|=2048,R&6&&W(E.Hexadecimal_digit_expected),P.substring($,l);I|=1024;let xe=parseInt(P.substring($+2,l),16),Se=String.fromCharCode(xe);if(R&16&&xe>=55296&&xe<=56319&&l+6<Q&&P.substring(l,l+2)==="\\u"&&V(l+2)!==123){let we=l,be=l+2;for(;be<we+6;be++)if(!Tp(V(be)))return Se;let We=parseInt(P.substring(we+2,be),16);if(We>=56320&&We<=57343)return l=be,Se+String.fromCharCode(We)}return Se;case 120:for(;l<$+4;l++)if(!(l<Q&&Tp(V(l))))return I|=2048,R&6&&W(E.Hexadecimal_digit_expected),P.substring($,l);return I|=4096,String.fromCharCode(parseInt(P.substring($+2,l),16));case 13:l<Q&&V(l)===10&&l++;case 10:case 8232:case 8233:return"";default:return(R&16||R&4&&!(R&8)&&Er(K,e))&&W(E.This_character_cannot_be_escaped_in_a_regular_expression,l-2,2),String.fromCharCode(K)}}function Bn(R){let $=l;l+=3;let K=l,xe=In(1,!1),Se=xe?parseInt(xe,16):-1,we=!1;return Se<0?(R&&W(E.Hexadecimal_digit_expected),we=!0):Se>1114111&&(R&&W(E.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,K,l-K),we=!0),l>=Q?(R&&W(E.Unexpected_end_of_text),we=!0):V(l)===125?l++:(R&&W(E.Unterminated_Unicode_escape_sequence),we=!0),we?(I|=2048,P.substring($,l)):(I|=8,Pd(Se))}function On(){if(l+5<Q&&V(l+1)===117){let R=l;l+=2;let $=bn(4,!1);return l=R,$}return-1}function Mt(){if(ae(l+1)===117&&ae(l+2)===123){let R=l;l+=3;let $=In(1,!1),K=$?parseInt($,16):-1;return l=R,K}return-1}function vt(){let R="",$=l;for(;l<Q;){let K=ae(l);if(Er(K,e))l+=Ft(K);else if(K===92){if(K=Mt(),K>=0&&Er(K,e)){R+=Bn(!0),$=l;continue}if(K=On(),!(K>=0&&Er(K,e)))break;I|=1024,R+=P.substring($,l),R+=Pd(K),l+=6,$=l}else break}return R+=P.substring($,l),R}function Qe(){let R=x.length;if(R>=2&&R<=12){let $=x.charCodeAt(0);if($>=97&&$<=122){let K=Xy.get(x);if(K!==void 0)return g=K}}return g=80}function qn(R){let $="",K=!1,xe=!1;for(;;){let Se=V(l);if(Se===95){I|=512,K?(K=!1,xe=!0):W(xe?E.Multiple_consecutive_numeric_separators_are_not_permitted:E.Numeric_separators_are_not_allowed_here,l,1),l++;continue}if(K=!0,!fi(Se)||Se-48>=R)break;$+=P[l],l++,xe=!1}return V(l-1)===95&&W(E.Numeric_separators_are_not_allowed_here,l-1,1),$}function $t(){return V(l)===110?(x+="n",I&384&&(x=Sb(x)+"n"),l++,10):(x=""+(I&128?parseInt(x.slice(2),2):I&256?parseInt(x.slice(2),8):+x),9)}function ct(){for(h=l,I=0;;){if(y=l,l>=Q)return g=1;let R=ae(l);if(l===0&&R===35&&Gm(P,l)){if(l=Ym(P,l),t)continue;return g=6}switch(R){case 10:case 13:if(I|=1,t){l++;continue}else return R===13&&l+1<Q&&V(l+1)===10?l+=2:l++,g=4;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 8203:case 8239:case 8287:case 12288:case 65279:if(t){l++;continue}else{for(;l<Q&&rs(V(l));)l++;return g=5}case 33:return V(l+1)===61?V(l+2)===61?(l+=3,g=38):(l+=2,g=36):(l++,g=54);case 34:case 39:return x=ir(),g=11;case 96:return g=Pr(!1);case 37:return V(l+1)===61?(l+=2,g=70):(l++,g=45);case 38:return V(l+1)===38?V(l+2)===61?(l+=3,g=77):(l+=2,g=56):V(l+1)===61?(l+=2,g=74):(l++,g=51);case 40:return l++,g=21;case 41:return l++,g=22;case 42:if(V(l+1)===61)return l+=2,g=67;if(V(l+1)===42)return V(l+2)===61?(l+=3,g=68):(l+=2,g=43);if(l++,he&&(I&32768)===0&&I&1){I|=32768;continue}return g=42;case 43:return V(l+1)===43?(l+=2,g=46):V(l+1)===61?(l+=2,g=65):(l++,g=40);case 44:return l++,g=28;case 45:return V(l+1)===45?(l+=2,g=47):V(l+1)===61?(l+=2,g=66):(l++,g=41);case 46:return fi(V(l+1))?(nr(),g=9):V(l+1)===46&&V(l+2)===46?(l+=3,g=26):(l++,g=25);case 47:if(V(l+1)===47){for(l+=2;l<Q&&!Cn(V(l));)l++;if(re=cn(re,P.slice(y,l),eg,y),t)continue;return g=2}if(V(l+1)===42){l+=2;let be=V(l)===42&&V(l+1)!==47,We=!1,Ze=y;for(;l<Q;){let Ye=V(l);if(Ye===42&&V(l+1)===47){l+=2,We=!0;break}l++,Cn(Ye)&&(Ze=l,I|=1)}if(be&&_t()&&(I|=2),re=cn(re,P.slice(Ze,l),tg,Ze),We||W(E.Asterisk_Slash_expected),t)continue;return We||(I|=4),g=3}return V(l+1)===61?(l+=2,g=69):(l++,g=44);case 48:if(l+2<Q&&(V(l+1)===88||V(l+1)===120))return l+=2,x=In(1,!0),x||(W(E.Hexadecimal_digit_expected),x="0"),x="0x"+x,I|=64,g=$t();if(l+2<Q&&(V(l+1)===66||V(l+1)===98))return l+=2,x=qn(2),x||(W(E.Binary_digit_expected),x="0"),x="0b"+x,I|=128,g=$t();if(l+2<Q&&(V(l+1)===79||V(l+1)===111))return l+=2,x=qn(8),x||(W(E.Octal_digit_expected),x="0"),x="0o"+x,I|=256,g=$t();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return g=nr();case 58:return l++,g=59;case 59:return l++,g=27;case 60:if(Wi(P,l)){if(l=Ma(P,l,W),t)continue;return g=7}return V(l+1)===60?V(l+2)===61?(l+=3,g=71):(l+=2,g=48):V(l+1)===61?(l+=2,g=33):a===1&&V(l+1)===47&&V(l+2)!==42?(l+=2,g=31):(l++,g=30);case 61:if(Wi(P,l)){if(l=Ma(P,l,W),t)continue;return g=7}retu Line truncated
`)),o}function za(e){let t=e.emitNode;return t&&t.flags||0}function p2(e,t,a){B.assertGreaterThanOrEqual(t,0),B.assertGreaterThanOrEqual(a,0),B.assertLessThanOrEqual(t,e.length),B.assertLessThanOrEqual(t+a,e.length)}function cl(e){return e.kind===244&&e.expression.kind===11}function yf(e){return!!(za(e)&2097152)}function Ud(e){return yf(e)&&Rf(e)}function f2(e){return tt(e.name)&&!e.initializer}function Bd(e){return yf(e)&&Ha(e)&&Yp(e.declarationList.declarations,f2)}function d2(e,t){let a=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Xp(ug(t,e.pos),Lp(t,e.pos)):Lp(t,e.pos);return Gr(a,o=>o.end<=e.end&&t.charCodeAt(o.pos+1)===42&&t.charCodeAt(o.pos+2)===42&&t.charCodeAt(o.pos+3)!==47)}function m2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function h2(e){return e&&e.kind===241&&hf(e.parent)}function qd(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function ea(e){return!!e&&!!(e.flags&524288)}function y2(e){return!!e&&!!(e.flags&16777216)}function g2(e){for(;gl(e,!0);)e=e.right;return e}function b2(e){return tt(e)&&e.escapedText==="exports"}function v2(e){return tt(e)&&e.escapedText==="module"}function m1(e){return(Xr(e)||h1(e))&&v2(e.expression)&&ps(e)==="exports"}function gf(e){let t=x2(e);return t===5||ea(e)?t:0}function T2(e){return ts(e.arguments)===3&&Xr(e.expression)&&tt(e.expression.expression)&&Pn(e.expression.expression)==="Object"&&Pn(e.expression.name)==="defineProperty"&&El(e.arguments[1])&&us(e.arguments[0],!0)}function h1(e){return Xa(e)&&El(e.argumentExpression)}function gs(e,t){return Xr(e)&&(!t&&e.expression.kind===110||tt(e.name)&&us(e.expression,!0))||y1(e,t)}function y1(e,t){return h1(e)&&(!t&&e.expression.kind===110||Sf(e.expression)||gs(e.expression,!0))}function us(e,t){return Sf(e)||gs(e,t)}function x2(e){if(Mf(e)){if(!T2(e))return 0;let t=e.arguments[0];return b2(t)||m1(t)?8:gs(t)&&ps(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!S1(e.left)||S2(g2(e))?0:us(e.left.expression,!0)&&ps(e.left)==="prototype"&&Of(k2(e))?6:w2(e.left)}function S2(e){return t6(e)&&ta(e.expression)&&e.expression.text==="0"}function bf(e){if(Xr(e))return e.name;let t=Tf(e.argumentExpression);return ta(t)||kl(t)?t:e}function ps(e){let t=bf(e);if(t){if(tt(t))return t.escapedText;if(kl(t)||ta(t))return Ja(t.text)}}function w2(e){if(e.expression.kind===110)return 4;if(m1(e))return 2;if(us(e.expression,!0)){if(eb(e.expression))return 3;let t=e;for(;!tt(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&ps(t)==="exports")&&gs(e))return 1;if(us(e,!0)||Xa(e)&&U2(e))return 5}return 0}function k2(e){for(;Zi(e.right);)e=e.right;return e.right}function E2(e){return Dl(e)&&Zi(e.expression)&&gf(e.expression)!==0&&Zi(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function A2(e){switch(e.kind){case 243:let t=Bp(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function Bp(e){return Ha(e)?Hp(e.declarationList.declarations):void 0}function C2(e){return Ti(e)&&e.body&&e.body.kind===267?e.body:void 0}function vf(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function D2(e,t){let a;m2(e)&&a2(e)&&Xi(e.initializer)&&(a=Dn(a,zd(e,e.initializer.jsDoc)));let o=e;for(;o&&o.parent;){if(Xi(o)&&(a=Dn(a,zd(e,o.jsDoc))),o.kind===169){a=Dn(a,(t?Sg:xg)(o));break}if(o.kind===168){a=Dn(a,(t?kg:wg)(o));break}o=N2(o)}return a||bt}function zd(e,t){let a=dy(t);return Em(t,o=>{if(o===a){let m=Gr(o.tags,v=>P2(e,v));return o.tags===m?[o]:m}else return Gr(o.tags,d6)})}function P2(e,t){return!(Vf(t)||g6(t))||!t.parent||!_h(t.parent)||!Cl(t.parent.parent)||t.parent.parent===e}function N2(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||C2(t)||gl(e))return t;if(t.parent&&(Bp(t.parent)===e||gl(t)))return t.parent;if(t.parent&&t.parent.parent&&(Bp(t.parent.parent)||A2(t.parent.parent)===e||E2(t.parent.parent)))return t.parent.parent}function Tf(e,t){return Wf(e,t?-2147483647:1)}function I2(e){let t=O2(e);if(t&&ea(e)){let a=Eg(e);if(a)return a.class}return t}function O2(e){let t=xf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function M2(e){if(ea(e))return Ag(e).map(t=>t.c Line truncated
`,ee)+1)+4;function te(Ue){Y||(Y=X),Ln.push(Ue),X+=Ue.length}for(ze();Bi(5););Bi(4)&&(O=0,X=0);e:for(;;){switch(u()){case 60:Da(Ln),ur||(ur=J()),pe(q(X)),O=0,Y=void 0;break;case 4:Ln.push(t.getTokenText()),O=0,X=0;break;case 42:let Ue=t.getTokenText();O===1?(O=2,te(Ue)):(B.assert(O===0),O=1,X+=Ue.length);break;case 5:B.assert(O!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let pt=t.getTokenText();Y!==void 0&&X+pt.length>Y&&Ln.push(pt.slice(Y-X)),X+=pt.length;break;case 1:break e;case 82:O=2,te(t.getTokenValue());break;case 19:O=2;let hn=t.getTokenFullStart(),sn=t.getTokenEnd()-1,tn=_(sn);if(tn){Zt||pr(Ln),Fr.push(D(h.createJSDocText(Ln.join("")),Zt??ee,hn)),Fr.push(tn),Ln=[],Zt=t.getTokenEnd();break}default:O=2,te(t.getTokenText());break}O===2?an(!1):ze()}let ne=Ln.join("").trimEnd();Fr.length&&ne.length&&Fr.push(D(h.createJSDocText(ne),Zt??ee,ur)),Fr.length&&Ae&&B.assertIsDefined(ur,"having parsed tags implies that the end of the comment span should be set");let Pe=Ae&&Ct(Ae,Yt,mn);return D(h.createJSDocComment(Fr.length?Ct(Fr,ee,ur):ne.length?ne:void 0,Pe),ee,je)}function pr(O){for(;O.length&&(O[0]===`
`||O[0]==="\r");)O.shift()}function Da(O){for(;O.length;){let Y=O[O.length-1].trimEnd();if(Y==="")O.pop();else if(Y.length<O[O.length-1].length){O[O.length-1]=Y;break}else break}}function $c(){for(;;){if(ze(),u()===1)return!0;if(!(u()===5||u()===4))return!1}}function It(){if(!((u()===5||u()===4)&&G($c)))for(;u()===5||u()===4;)ze()}function xr(){if((u()===5||u()===4)&&G($c))return"";let O=t.hasPrecedingLineBreak(),Y=!1,X="";for(;O&&u()===42||u()===5||u()===4;)X+=t.getTokenText(),u()===4?(O=!0,Y=!0,X=""):u()===42&&(O=!1),ze();return Y?X:""}function q(O){B.assert(u()===60);let Y=t.getTokenStart();ze();let X=li(void 0),te=xr(),ne;switch(X.escapedText){case"author":ne=I0(Y,X,O,te);break;case"implements":ne=M0(Y,X,O,te);break;case"augments":case"extends":ne=J0(Y,X,O,te);break;case"class":case"constructor":ne=Ui(Y,h.createJSDocClassTag,X,O,te);break;case"public":ne=Ui(Y,h.createJSDocPublicTag,X,O,te);break;case"private":ne=Ui(Y,h.createJSDocPrivateTag,X,O,te);break;case"protected":ne=Ui(Y,h.createJSDocProtectedTag,X,O,te);break;case"readonly":ne=Ui(Y,h.createJSDocReadonlyTag,X,O,te);break;case"override":ne=Ui(Y,h.createJSDocOverrideTag,X,O,te);break;case"deprecated":Vn=!0,ne=Ui(Y,h.createJSDocDeprecatedTag,X,O,te);break;case"this":ne=yd(Y,X,O,te);break;case"enum":ne=U0(Y,X,O,te);break;case"arg":case"argument":case"param":return $n(Y,X,2,O);case"return":case"returns":ne=D0(Y,X,O,te);break;case"template":ne=bd(Y,X,O,te);break;case"type":ne=md(Y,X,O,te);break;case"typedef":ne=B0(Y,X,O,te);break;case"callback":ne=z0(Y,X,O,te);break;case"overload":ne=F0(Y,X,O,te);break;case"satisfies":ne=L0(Y,X,O,te);break;case"see":ne=P0(Y,X,O,te);break;case"exception":case"throws":ne=N0(Y,X,O,te);break;case"import":ne=j0(Y,X,O,te);break;default:ne=F(Y,X,O,te);break}return ne}function n(O,Y,X,te){return te||(X+=Y-O),i(X,te.slice(X))}function i(O,Y){let X=J(),te=[],ne=[],Pe,Ue=0,pt;function hn(Qn){pt||(pt=O),te.push(Qn),O+=Qn.length}Y!==void 0&&(Y!==""&&hn(Y),Ue=1);let sn=u();e:for(;;){switch(sn){case 4:Ue=0,te.push(t.getTokenText()),O=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:B.assert(Ue!==2&&Ue!==3,"whitespace shouldn't come from the scanner while saving comment text");let Qn=t.getTokenText();pt!==void 0&&O+Qn.length>pt&&(te.push(Qn.slice(pt-O)),Ue=2),O+=Qn.length;break;case 19:Ue=2;let Qc=t.getTokenFullStart(),Na=t.getTokenEnd()-1,Kc=_(Na);Kc?(ne.push(D(h.createJSDocText(te.join("")),Pe??X,Qc)),ne.push(Kc),te=[],Pe=t.getTokenEnd()):hn(t.getTokenText());break;case 62:Ue===3?Ue=2:Ue=3,hn(t.getTokenText());break;case 82:Ue!==3&&(Ue=2),hn(t.getTokenValue());break;case 42:if(Ue===0){Ue=1,O+=1;break}default:Ue!==3&&(Ue=2),hn(t.getTokenText());break}Ue===2||Ue===3?sn=an(Ue===3):sn=ze()}pr(te);let tn=te.join("").trimEnd();if(ne.length)return tn.length&&ne.push(D(h.createJSDocText(tn),Pe??X)),Ct(ne,X,t.getTokenEnd());if(tn.length)return tn}function _(O){let Y=le(f);if(!Y)return;ze(),It();let X=c(),te=[];for(;u()!==20&&u()!==4&&u()!==1;)te.push(t.getTokenText()),ze();let ne=Y==="link"?h.createJSDocLink:Y==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return D(ne(X,te.join("")),O,t.getTokenEnd())}function c(){if(wt(u())){let O=J(),Y=jt();for(;Je(25);)Y=D(h.createQualifiedName(Y,u()===81?Gt(80,!1):jt()),O);for(;u()===81;)Nt(),ze(),Y=D(h.createJSDocMemberName(Y,St()),O);return Y}}function f(){if(xr(),u()===19&&ze()===60&&wt(ze())){let O=t.getTokenValue();if(w(O))return O}}function w(O){return O==="link"||O==="linkcode"||O==="linkplain"}function F(O,Y,X,te){return D(h.createJSDocUnknownTag(Y,n(O,J(),X,te)),O)}function pe(O){O&&(Ae?Ae.push(O):(Ae=[O],Yt=O.pos),mn=O.end)}function Re(){return xr(),u()===19?d():void 0}function en(){let O=Bi(23);O&&It();let Y=Bi(62),X=H0();return Y&&zl(62),O&&(It(),ft(64)&&Et(),j(24)),{name:X,isBracketed:O}}function kn(O){switch(O.kind){case 151:return!0;case 188:return kn(O.elementType);default:return Pf(O)&&tt(O.typeName)&&O.typeName.escapedText==="Object"&&!O.typeArguments}}function $n(O,Y,X,te){let ne=Re(),Pe=!ne;xr();let{name:Ue,isBracketed:pt}=en(),hn=xr();Pe&&!G(f)&&(ne=Re());let sn=n(O,J(),te,hn),tn=Pa(ne,Ue,X,te);tn&&(ne=tn,Pe=!0);let Qn=X===1?h.createJSDocPropertyTag(Y,Ue,pt,ne,Pe,sn):h.createJSDocParameterTag(Y,Ue,pt,ne,Pe,sn);return D(Qn,O)}function Pa(O,Y,X,te){if(O&&kn(O.type)){let ne=J(),Pe,Ue;for(;Pe=le(()=>yp(X,te,Y));)Pe.kind===341||Pe.kind===348?Ue=An(Ue,Pe):Pe.kind===345&&ln(Pe.tagName,E.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ue){let pt=D(h.createJSDocTypeLiteral(Ue,O.type.kind===188),ne);return D(h.createJSDocTypeExpression(pt),ne)}}}function D0(O,Y,X,te){Xt(Ae,h6)&&rt(Y.pos,t.getTokenStart(),E._0_tag_already_specified,cs(Y.escapedText));let ne=Re();return D(h.createJSDocReturnTag(Y,ne,n(O,J(),X,te)),O)}function md(O,Y,X,te){Xt(Ae,Vf)&&rt(Y.pos,t.getTokenStart(),E._0_tag_already_specified,cs(Y.escapedText));let ne=d(!0),Pe=X!==void 0&&te!==void 0?n(O,J(),X,te):void 0;return D(h.createJSDocTypeTag(Y,ne,Pe),O)}f Line truncated
`&&m[o-1]==="\r"?o-1:o}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=vy();return this.forEachChild(m),e;function t(v){let A=o(v);A&&e.add(A,v)}function a(v){let A=e.get(v);return A||e.set(v,A=[]),A}function o(v){let A=uf(v);return A&&(Ef(A)&&Xr(A.expression)?A.expression.name.text:_1(A)?getNameFromPropertyName(A):void 0)}function m(v){switch(v.kind){case 262:case 218:case 174:case 173:let A=v,P=o(A);if(P){let h=a(P),y=Yi(h);y&&A.parent===y.parent&&A.symbol===y.symbol?A.body&&!y.body&&(h[h.length-1]=A):h.push(A)}Ht(v,m);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(v),Ht(v,m);break;case 169:if(!bs(v,31))break;case 260:case 208:{let h=v;if(Xg(h.name)){Ht(h.name,m);break}h.initializer&&m(h.initializer)}case 306:case 172:case 171:t(v);break;case 278:let l=v;l.exportClause&&(Z1(l.exportClause)?Un(l.exportClause.elements,m):m(l.exportClause.name));break;case 272:let Q=v.importClause;Q&&(Q.name&&t(Q.name),Q.namedBindings&&(Q.namedBindings.kind===274?t(Q.namedBindings):Un(Q.namedBindings.elements,m)));break;case 226:gf(v)!==0&&t(v);default:Ht(v,m)}}}},rv=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}getLineAndCharacterOfPosition(e){return Vm(this,e)}};function iv(){return{getNodeConstructor:()=>Yf,getTokenConstructor:()=>yh,getIdentifierConstructor:()=>gh,getPrivateIdentifierConstructor:()=>bh,getSourceFileConstructor:()=>nv,getSymbolConstructor:()=>Z6,getTypeConstructor:()=>ev,getSignatureConstructor:()=>tv,getSourceMapSourceConstructor:()=>rv}}var av=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],w3=[...av,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];lb(iv());var Ol=new Proxy({},{get:()=>!0});var Sh=Ol["4.8"];function er(e,t=!1){var a;if(e!=null){if(Sh){if(t||Il(e)){let o=e1(e);return o?[...o]:void 0}return}return(a=e.modifiers)==null?void 0:a.filter(o=>!Al(o))}}function na(e,t=!1){var a;if(e!=null){if(Sh){if(t||Gf(e)){let o=pf(e);return o?[...o]:void 0}return}return(a=e.decorators)==null?void 0:a.filter(Al)}}var kh={};var Ml=new Proxy({},{get:(e,t)=>t});var Eh=Ml,Ah=Ml;var C=Eh,Rt=Ah;var Ch=Ol["5.0"],ue=Ie,ov=new Set([ue.AmpersandAmpersandToken,ue.BarBarToken,ue.QuestionQuestionToken]),cv=new Set([Ie.AmpersandAmpersandEqualsToken,Ie.AmpersandEqualsToken,Ie.AsteriskAsteriskEqualsToken,Ie.AsteriskEqualsToken,Ie.BarBarEqualsToken,Ie.BarEqualsToken,Ie.CaretEqualsToken,Ie.EqualsToken,Ie.GreaterThanGreaterThanEqualsToken,Ie.GreaterThanGreaterThanGreaterThanEqualsToken,Ie.LessThanLessThanEqualsToken,Ie.MinusEqualsToken,Ie.PercentEqualsToken,Ie.PlusEqualsToken,Ie.QuestionQuestionEqualsToken,Ie.SlashEqualsToken]),lv=new Set([ue.AmpersandAmpersandToken,ue.AmpersandToken,ue.AsteriskAsteriskToken,ue.AsteriskToken,ue.BarBarToken,ue.BarToken,ue.CaretToken,ue.EqualsEqualsEqualsToken,ue.EqualsEqualsToken,ue.ExclamationEqualsEqualsToken,ue.ExclamationEqualsToken,ue.GreaterThanEqualsToken,ue.GreaterThanGreaterThanGreaterThanToken,ue.GreaterThanGreaterThanToken,ue.GreaterThanToken,ue.InKeyword,ue.InstanceOfKeyword,ue.LessThanEqualsToken,ue.LessThanLessThanToken,ue.LessThanToken,ue.MinusToken,ue.PercentToken,ue.PlusToken,ue.SlashToken]);function uv(e){return cv.has(e.kind)}function pv(e){return ov.has(e.kind)}function fv(e){return lv.has(e.kind)}function $r(e){return it(e)}function Dh(e){return e.kind!==ue.SemicolonClassElement}function Xe(e,t){let a=er(t);return(a==null?void 0:a.some(o=>o.kind===e))===!0}function Ph(e){let t=er(e);return t==null?null:t[t.length-1]??null}function Nh(e){return e.kind===ue.CommaToken}function dv(e){return e.kind===ue.SingleLineCommentTrivia||e.kind===ue.MultiLineCommentTrivia}function mv(e){return e.kind===ue.JSDocComment}function Ih(e){if(uv(e))return{type:C.AssignmentExpression,operator:$r(e.kind)};if(pv(e))return{type:C.LogicalExpression,operator:$r(e.kind)};if(fv(e))return{type:C.BinaryExpression,operator:$r(e.kind)};throw new Error(`Unexpected binary operator ${it(e.kind)}`)}function Ts(e,t){let a=t.getLineAndCharacterOfPosition(e);return{column:a.character,l Line truncated
`);return t.length>1&&t.every(a=>a.trimStart()[0]==="*")}var ld=h4;function y4(e){return Ss(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var d0=y4;var ws=null;function ks(e){if(ws!==null&&typeof ws.property){let t=ws;return ws=ks.prototype=null,t}return ws=ks.prototype=e??Object.create(null),new ks}var g4=10;for(let e=0;e<=g4;e++)ks();function ud(e){return ks(e)}function b4(e,t="type"){ud(e);function a(o){let m=o[t],v=e[m];if(!Array.isArray(v))throw Object.assign(new Error(`Missing visitor keys for '${m}'.`),{node:o});return v}return a}var m0=b4;var h0={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[] Line truncated
`;e=Sr(!1,e.replace(S4,"").replace(x4,""),A4,"$1");let a="";for(;a!==e;)a=e,e=Sr(!1,e,E4,`${t}$1 $2${t}`);e=e.replace(v0,"").trimEnd();let o=Object.create(null),m=Sr(!1,e,T0,"").replace(v0,"").trimEnd(),v;for(;v=T0.exec(e);){let A=Sr(!1,v[2],k4,"");if(typeof o[v[1]]=="string"||Array.isArray(o[v[1]])){let P=o[v[1]];o[v[1]]=[...C4,...Array.isArray(P)?P:[P],A]}else o[v[1]]=A}return{comments:m,pragmas:o}}function D4(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
`);return t===-1?e:e.slice(0,t)}var w0=D4;function P4(e){let t=w0(e);t&&(e=e.slice(t.length+1));let a=x0(e),{pragmas:o,comments:m}=S0(a);return{shebang:t,text:e,pragmas:o,comments:m}}function k0(e){let{pragmas:t}=P4(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function N4(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:k0,locStart:tr,locEnd:Kr,...e}}var E0=N4;function I4(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var A0=I4;function O4(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var C0=O4;var M4={loc:!0,range:!0,comment:!0,tokens:!0,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function J4(e){if(!(e!=null&&e.location))return e;let{message:t,location:{start:a,end:o}}=e;return l0(t,{loc:{start:{line:a.line,column:a.column+1},end:{line:o.line,column:o.column+1}},cause:e})}var L4=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function j4(e,t){let a=t==null?void 0:t.filepath,o=[{...M4,filePath:a}],m=A0(t);if(m?o=o.map(A=>({...A,sourceType:m})):o=["module","script"].flatMap(P=>o.map(l=>({...l,sourceType:P}))),a&&L4(a))return o;let v=U4(e);return[v,!v].flatMap(A=>o.map(P=>({...P,jsx:A})))}function R4(e,t={}){let a=C0(e),o=j4(e,t),m;try{m=u0(o.map(v=>()=>c0(a,v)))}catch({errors:[v]}){throw J4(v)}return b0(m,{text:e})}function U4(e){return new RegExp(["(?:^[^\"'`]*</)","|","(?:^[^/]{2}.*/>)"].join(""),"mu").test(e)}var B4=E0(R4);return ty(q4);});
+20
View File
@@ -0,0 +1,20 @@
var vd=Object.defineProperty;var Td=e=>{throw TypeError(e)};var Q0=(e,t,a)=>t in e?vd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:a}):e[t]=a;var xd=(e,t)=>{for(var a in t)vd(e,a,{get:t[a],enumerable:!0})};var qi=(e,t,a)=>Q0(e,typeof t!="symbol"?t+"":t,a),K0=(e,t,a)=>t.has(e)||Td("Cannot "+a);var yp=(e,t,a)=>t.has(e)?Td("Cannot add the same private member more than once"):t instanceof WeakSet?t.add(e):t.set(e,a);var ge=(e,t,a)=>(K0(e,t,"access private method"),a);var dd={};xd(dd,{parsers:()=>fd});var fd={};xd(fd,{typescript:()=>L4});var Z0=()=>()=>{},Ia=Z0;var ey=(e,t,a,o)=>{if(!(e&&t==null))return t.replaceAll?t.replaceAll(a,o):a.global?t.replace(a,o):t.split(a).join(o)},Sr=ey;var wm="5.7";var bt=[],ty=new Map;function ts(e){return e!==void 0?e.length:0}function Un(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let o=t(e[a],a);if(o)return o}}function ny(e,t){if(e!==void 0)for(let a=0;a<e.length;a++){let o=t(e[a],a);if(o!==void 0)return o}}function Sd(e,t,a){let o=[];B.assertEqual(e.length,t.length);for(let m=0;m<e.length;m++)o.push(a(e[m],t[m],m));return o}function Gp(e,t){if(e!==void 0){for(let a=0;a<e.length;a++)if(!t(e[a],a))return!1}return!0}function km(e,t,a){if(e!==void 0)for(let o=a??0;o<e.length;o++){let m=e[o];if(t(m,o))return m}}function gp(e,t,a){if(e===void 0)return-1;for(let o=a??0;o<e.length;o++)if(t(e[o],o))return o;return-1}function ry(e,t,a=Hp){if(e!==void 0){for(let o=0;o<e.length;o++)if(a(e[o],t))return!0}return!1}function Gr(e,t){if(e!==void 0){let a=e.length,o=0;for(;o<a&&t(e[o]);)o++;if(o<a){let m=e.slice(0,o);for(o++;o<a;){let v=e[o];t(v)&&m.push(v),o++}return m}}return e}function Pp(e,t){let a;if(e!==void 0){a=[];for(let o=0;o<e.length;o++)a.push(t(e[o],o))}return a}function Em(e){let t=[];for(let a=0;a<e.length;a++){let o=e[a];o&&(Yr(o)?Dn(t,o):t.push(o))}return t}function Am(e,t){let a;if(e!==void 0)for(let o=0;o<e.length;o++){let m=t(e[o],o);m&&(Yr(m)?a=Dn(a,m):a=An(a,m))}return a??bt}function iy(e,t){let a;if(e!==void 0)for(let o=0;o<e.length;o++){let m=e[o],v=t(m,o);(a||m!==v||Yr(v))&&(a||(a=e.slice(0,o)),Yr(v)?Dn(a,v):a.push(v))}return a??e}function ay(e,t){let a=[];if(e!==void 0)for(let o=0;o<e.length;o++){let m=t(e[o],o);m!==void 0&&a.push(m)}return a}function Xt(e,t){if(e!==void 0)if(t!==void 0){for(let a=0;a<e.length;a++)if(t(e[a]))return!0}else return e.length>0;return!1}function Yp(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function _y(e,t,a=Hp){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let o=0;o<e.length;o++)if(!a(e[o],t[o],o))return!1;return!0}function An(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function Np(e,t){return t<0?e.length+t:t}function Dn(e,t,a,o){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(a,o);a=a===void 0?0:Np(t,a),o=o===void 0?t.length:Np(t,o);for(let m=a;m<o&&m<t.length;m++)t[m]!==void 0&&e.push(t[m]);return e}function sy(e,t,a){return ry(e,t,a)?!1:(e.push(t),!0)}function oy(e,t,a){return e!==void 0?(sy(e,t,a),e):[t]}function cy(e,t){return e.length===0?bt:e.slice().sort(t)}var B4=Array.prototype.at?(e,t)=>e==null?void 0:e.at(t):(e,t)=>{if(e!==void 0&&(t=Np(e,t),t<e.length))return e[t]};function Xp(e){return e===void 0||e.length===0?void 0:e[0]}function Yi(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function ly(e){return B.assert(e.length!==0),e[e.length-1]}function uy(e){return e!==void 0&&e.length===1?e[0]:void 0}function py(e,t,a,o,m){return fy(e,a(t),a,o,m)}function fy(e,t,a,o,m){if(!Xt(e))return-1;let v=m??0,A=e.length-1;for(;v<=A;){let P=v+(A-v>>1),l=a(e[P],P);switch(o(l,t)){case-1:v=P+1;break;case 0:return P;case 1:A=P-1;break}}return~v}function dy(e,t,a,o,m){if(e&&e.length>0){let v=e.length;if(v>0){let A=o===void 0||o<0?0:o,P=m===void 0||A+m>v-1?v-1:A+m,l;for(arguments.length<=2?(l=e[A],A++):l=a;A<=P;)l=t(l,e[A],A),A++;return l}}return a}var Cm=Object.prototype.hasOwnProperty;function Cr(e,t){return Cm.call(e,t)}function my(e){let t=[];for(let a in e)Cm.call(e,a)&&t.push(a);return t}function hy(){let e=new Map;return e.add=yy,e.remove=gy,e}function yy(e,t){let a=this.get(e);return a!==void 0?a.push(t):this.set(e,a=[t]),a}function gy(e,t){let a=this.get(e);a!==void 0&&(Ay(a,t),a.length||this.delete(e))}function Yr(e){return Array.isArray(e)}function bp(e){return Yr(e)?e:[e]}function by(e,t){return e!==void 0&&t(e)?e:void 0}function kr(e,t){return e!==void 0&&t(e)?e:B.fail(`Invalid cast. The supplied value ${e} did not pass the test '${B.getFunctionName(t)}'.`)}function Fa(e){}function vy(){return!0}function gt(e){return e}function wd(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function Kn(e){let t=new Map;return a=>{let o=`${typeof a}:${a}`,m=t.get(o);return m===void 0&&!t.has(o)&&(m=e(a),t.set(o,m)),m}}function Hp(e,t){return e===t}function $p(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function Ty(e,t){return Hp(e,t)}function xy(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function Line truncated
Node ${Ot(L.kind)} was unexpected.`,fe||y)}e.failBadSyntaxKind=y;function g(L,se,fe,Te){L||(se=se?`False expression: ${se}`:"False expression.",fe&&(se+=`\r
Verbose Debug Information: `+(typeof fe=="string"?fe:fe())),h(se,Te||g))}e.assert=g;function x(L,se,fe,Te,He){if(L!==se){let Ke=fe?Te?`${fe} ${Te}`:fe:"";h(`Expected ${L} === ${se}. ${Ke}`,He||x)}}e.assertEqual=x;function I(L,se,fe,Te){L>=se&&h(`Expected ${L} < ${se}. ${fe||""}`,Te||I)}e.assertLessThan=I;function re(L,se,fe){L>se&&h(`Expected ${L} <= ${se}`,fe||re)}e.assertLessThanOrEqual=re;function he(L,se,fe){L<se&&h(`Expected ${L} >= ${se}`,fe||he)}e.assertGreaterThanOrEqual=he;function ye(L,se,fe){L==null&&h(se,fe||ye)}e.assertIsDefined=ye;function de(L,se,fe){return ye(L,se,fe||de),L}e.checkDefined=de;function M(L,se,fe){for(let Te of L)ye(Te,se,fe||M)}e.assertEachIsDefined=M;function ae(L,se,fe){return M(L,se,fe||ae),L}e.checkEachDefined=ae;function Oe(L,se="Illegal value:",fe){let Te=typeof L=="object"&&Cr(L,"kind")&&Cr(L,"pos")?"SyntaxKind: "+Ot(L.kind):JSON.stringify(L);return h(`${se} ${Te}`,fe||Oe)}e.assertNever=Oe;function V(L,se,fe,Te){Q(1,"assertEachNode")&&g(se===void 0||Gp(L,se),fe||"Unexpected node.",()=>`Node array did not pass test '${bn(se)}'.`,Te||V)}e.assertEachNode=V;function oe(L,se,fe,Te){Q(1,"assertNode")&&g(L!==void 0&&(se===void 0||se(L)),fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} did not pass test '${bn(se)}'.`,Te||oe)}e.assertNode=oe;function W(L,se,fe,Te){Q(1,"assertNotNode")&&g(L===void 0||se===void 0||!se(L),fe||"Unexpected node.",()=>`Node ${Ot(L.kind)} should not have passed test '${bn(se)}'.`,Te||W)}e.assertNotNode=W;function dt(L,se,fe,Te){Q(1,"assertOptionalNode")&&g(se===void 0||L===void 0||se(L),fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} did not pass test '${bn(se)}'.`,Te||dt)}e.assertOptionalNode=dt;function nr(L,se,fe,Te){Q(1,"assertOptionalToken")&&g(se===void 0||L===void 0||L.kind===se,fe||"Unexpected node.",()=>`Node ${Ot(L==null?void 0:L.kind)} was not a '${Ot(se)}' token.`,Te||nr)}e.assertOptionalToken=nr;function gn(L,se,fe){Q(1,"assertMissingNode")&&g(L===void 0,se||"Unexpected node.",()=>`Node ${Ot(L.kind)} was unexpected'.`,fe||gn)}e.assertMissingNode=gn;function rr(L){}e.type=rr;function bn(L){if(typeof L!="function")return"";if(Cr(L,"name"))return L.name;{let se=Function.prototype.toString.call(L),fe=/^function\s+([\w$]+)\s*\(/.exec(se);return fe?fe[1]:""}}e.getFunctionName=bn;function In(L){return`{ name: ${cs(L.escapedName)}; flags: ${ct(L.flags)}; declarations: ${Pp(L.declarations,se=>Ot(se.kind))} }`}e.formatSymbol=In;function Ge(L=0,se,fe){let Te=Pr(se);if(L===0)return Te.length>0&&Te[0][0]===0?Te[0][1]:"0";if(fe){let He=[],Ke=L;for(let[st,Dt]of Te){if(st>L)break;st!==0&&st&L&&(He.push(Dt),Ke&=~st)}if(Ke===0)return He.join("|")}else for(let[He,Ke]of Te)if(He===L)return Ke;return L.toString()}e.formatEnum=Ge;let ir=new Map;function Pr(L){let se=ir.get(L);if(se)return se;let fe=[];for(let He in L){let Ke=L[He];typeof Ke=="number"&&fe.push([Ke,He])}let Te=cy(fe,(He,Ke)=>Dm(He[0],Ke[0]));return ir.set(L,Te),Te}function Ot(L){return Ge(L,Ie,!1)}e.formatSyntaxKind=Ot;function Bn(L){return Ge(L,Mm,!1)}e.formatSnippetKind=Bn;function On(L){return Ge(L,Dr,!1)}e.formatScriptKind=On;function Mt(L){return Ge(L,on,!0)}e.formatNodeFlags=Mt;function vt(L){return Ge(L,Nm,!0)}e.formatNodeCheckFlags=vt;function Qe(L){return Ge(L,Qp,!0)}e.formatModifierFlags=Qe;function qn(L){return Ge(L,Om,!0)}e.formatTransformFlags=qn;function $t(L){return Ge(L,Jm,!0)}e.formatEmitFlags=$t;function ct(L){return Ge(L,Kp,!0)}e.formatSymbolFlags=ct;function _t(L){return Ge(L,nn,!0)}e.formatTypeFlags=_t;function Ut(L){return Ge(L,Im,!0)}e.formatSignatureFlags=Ut;function Jt(L){return Ge(L,Zp,!0)}e.formatObjectFlags=Jt;function lt(L){return Ge(L,Op,!0)}e.formatFlowFlags=lt;function ar(L){return Ge(L,Pm,!0)}e.formatRelationComparisonResult=ar;function mt(L){return Ge(L,CheckMode,!0)}e.formatCheckMode=mt;function vn(L){return Ge(L,SignatureCheckMode,!0)}e.formatSignatureCheckMode=vn;function yt(L){return Ge(L,TypeFacts,!0)}e.formatTypeFacts=yt;let cn=!1,nt;function Bt(L){"__debugFlowFlags"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(){let se=this.flags&2?"FlowStart":this.flags&4?"FlowBranchLabel":this.flags&8?"FlowLoopLabel":this.flags&16?"FlowAssignment":this.flags&32?"FlowTrueCondition":this.flags&64?"FlowFalseCondition":this.flags&128?"FlowSwitchClause":this.flags&256?"FlowArrayMutation":this.flags&512?"FlowCall":this.flags&1024?"FlowReduceLabel":this.flags&1?"FlowUnreachable":"UnknownFlow",fe=this.flags&-2048;return`${se}${fe?` (${lt(fe)})`:""}`}},__debugFlowFlags:{get(){return Ge(this.flags,Op,!0)}},__debugToString:{value(){return mr(this)}}})}function rn(L){return cn&&(typeof Object.setPrototypeOf=="function"?(nt||(nt=Object.create(Object.prototype),Bt(nt)),Object.setPrototypeOf(L,nt)):Bt(L)),L}e.attachFlowNodeDebugInfo=rn;let _r;function fr(L){"__tsDebuggerDisplay"in L||Object.defineProperties(L,{__tsDebuggerDisplay:{value(se){return se=String(se).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${se}`}}})}function dr(L){cn&&(type Line truncated
`).join(`
`)}
m2: ${this.mapper2.__debugToString().split(`
`).join(`
`)}`;default:return Oe(this)}}}e.DebugTypeMapper=Nr;function Vn(L){return e.isDebugging?Object.setPrototypeOf(L,Nr.prototype):L}e.attachDebugPrototypeIfDebug=Vn;function Ce(L){return console.log(mr(L))}e.printControlFlowGraph=Ce;function mr(L){let se=-1;function fe(u){return u.id||(u.id=se,se--),u.id}let Te;(u=>{u.lr="\u2500",u.ud="\u2502",u.dr="\u256D",u.dl="\u256E",u.ul="\u256F",u.ur="\u2570",u.udr="\u251C",u.udl="\u2524",u.dlr="\u252C",u.ulr="\u2534",u.udlr="\u256B"})(Te||(Te={}));let He;(u=>{u[u.None=0]="None",u[u.Up=1]="Up",u[u.Down=2]="Down",u[u.Left=4]="Left",u[u.Right=8]="Right",u[u.UpDown=3]="UpDown",u[u.LeftRight=12]="LeftRight",u[u.UpLeft=5]="UpLeft",u[u.UpRight=9]="UpRight",u[u.DownLeft=6]="DownLeft",u[u.DownRight=10]="DownRight",u[u.UpDownLeft=7]="UpDownLeft",u[u.UpDownRight=11]="UpDownRight",u[u.UpLeftRight=13]="UpLeftRight",u[u.DownLeftRight=14]="DownLeftRight",u[u.UpDownLeftRight=15]="UpDownLeftRight",u[u.NoChildren=16]="NoChildren"})(He||(He={}));let Ke=2032,st=882,Dt=Object.create(null),Tt=[],ut=[],Ir=Se(L,new Set);for(let u of Tt)u.text=rt(u.flowNode,u.circular),be(u);let hr=We(Ir),Mn=Ze(hr);return Ye(Ir,0),ln();function Wn(u){return!!(u.flags&128)}function Si(u){return!!(u.flags&12)&&!!u.antecedent}function R(u){return!!(u.flags&Ke)}function $(u){return!!(u.flags&st)}function K(u){let Ne=[];for(let Me of u.edges)Me.source===u&&Ne.push(Me.target);return Ne}function xe(u){let Ne=[];for(let Me of u.edges)Me.target===u&&Ne.push(Me.source);return Ne}function Se(u,Ne){let Me=fe(u),U=Dt[Me];if(U&&Ne.has(u))return U.circular=!0,U={id:-1,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},Tt.push(U),U;if(Ne.add(u),!U)if(Dt[Me]=U={id:Me,flowNode:u,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},Tt.push(U),Si(u))for(let ze of u.antecedent)we(U,ze,Ne);else R(u)&&we(U,u.antecedent,Ne);return Ne.delete(u),U}function we(u,Ne,Me){let U=Se(Ne,Me),ze={source:u,target:U};ut.push(ze),u.edges.push(ze),U.edges.push(ze)}function be(u){if(u.level!==-1)return u.level;let Ne=0;for(let Me of xe(u))Ne=Math.max(Ne,be(Me)+1);return u.level=Ne}function We(u){let Ne=0;for(let Me of K(u))Ne=Math.max(Ne,We(Me));return Ne+1}function Ze(u){let Ne=J(Array(u),0);for(let Me of Tt)Ne[Me.level]=Math.max(Ne[Me.level],Me.text.length);return Ne}function Ye(u,Ne){if(u.lane===-1){u.lane=Ne,u.endLane=Ne;let Me=K(u);for(let U=0;U<Me.length;U++){U>0&&Ne++;let ze=Me[U];Ye(ze,Ne),ze.endLane>u.endLane&&(Ne=ze.endLane)}u.endLane=Ne}}function Ee(u){if(u&2)return"Start";if(u&4)return"Branch";if(u&8)return"Loop";if(u&16)return"Assignment";if(u&32)return"True";if(u&64)return"False";if(u&128)return"SwitchClause";if(u&256)return"ArrayMutation";if(u&512)return"Call";if(u&1024)return"ReduceLabel";if(u&1)return"Unreachable";throw new Error}function Tn(u){let Ne=hi(u);return Ud(Ne,u,!1)}function rt(u,Ne){let Me=Ee(u.flags);if(Ne&&(Me=`${Me}#${fe(u)}`),Wn(u)){let U=[],{switchStatement:ze,clauseStart:an,clauseEnd:Ve}=u.node;for(let $e=an;$e<Ve;$e++){let Pt=ze.caseBlock.clauses[$e];n6(Pt)?U.push("default"):U.push(Tn(Pt.expression))}Me+=` (${U.join(", ")})`}else $(u)&&u.node&&(Me+=` (${Tn(u.node)})`);return Ne==="circularity"?`Circular(${Me})`:Me}function ln(){let u=Mn.length,Ne=Sy(Tt,0,Ve=>Ve.lane)+1,Me=J(Array(Ne),""),U=Mn.map(()=>Array(Ne)),ze=Mn.map(()=>J(Array(Ne),0));for(let Ve of Tt){U[Ve.level][Ve.lane]=Ve;let $e=K(Ve);for(let kt=0;kt<$e.length;kt++){let Nt=$e[kt],qt=8;Nt.lane===Ve.lane&&(qt|=4),kt>0&&(qt|=1),kt<$e.length-1&&(qt|=2),ze[Ve.level][Nt.lane]|=qt}$e.length===0&&(ze[Ve.level][Ve.lane]|=16);let Pt=xe(Ve);for(let kt=0;kt<Pt.length;kt++){let Nt=Pt[kt],qt=4;kt>0&&(qt|=1),kt<Pt.length-1&&(qt|=2),ze[Ve.level-1][Nt.lane]|=qt}}for(let Ve=0;Ve<u;Ve++)for(let $e=0;$e<Ne;$e++){let Pt=Ve>0?ze[Ve-1][$e]:0,kt=$e>0?ze[Ve][$e-1]:0,Nt=ze[Ve][$e];Nt||(Pt&8&&(Nt|=12),kt&2&&(Nt|=3),ze[Ve][$e]=Nt)}for(let Ve=0;Ve<u;Ve++)for(let $e=0;$e<Me.length;$e++){let Pt=ze[Ve][$e],kt=Pt&4?"\u2500":" ",Nt=U[Ve][$e];Nt?(an($e,Nt.text),Ve<u-1&&(an($e," "),an($e,qe(kt,Mn[Ve]-Nt.text.length)))):Ve<u-1&&an($e,qe(kt,Mn[Ve]+1)),an($e,Zr(Pt)),an($e,Pt&8&&Ve<u-1&&!U[Ve+1][$e]?"\u2500":" ")}return`
${Me.join(`
`)}
`;function an(Ve,$e){Me[Ve]+=$e}}function Zr(u){switch(u){case 3:return"\u2502";case 12:return"\u2500";case 5:return"\u256F";case 9:return"\u2570";case 6:return"\u256E";case 10:return"\u256D";case 7:return"\u2524";case 11:return"\u251C";case 13:return"\u2534";case 14:return"\u252C";case 15:return"\u256B"}return" "}function J(u,Ne){if(u.fill)u.fill(Ne);else for(let Me=0;Me<u.length;Me++)u[Me]=Ne;return u}function qe(u,Ne){if(u.repeat)return Ne>0?u.repeat(Ne):"";let Me="";for(;Me.length<Ne;)Me+=u;return Me}}e.formatControlFlowGraph=mr})(B||(B={}));var q4=Date.now,kd=()=>{},Dy=()=>{},_l,Ie=(e=>(e[e.Unknown=0]="Unknown",e[e.EndOfFileToken=1]="EndOfFileToken",e[e.SingleLineCommentTrivia=2]="SingleLineCommentTrivia",e[e.MultiLineCommentTrivia=3]="MultiLineCommentTrivia",e[e.NewLineTrivia=4]="NewLineTrivia",e[e.WhitespaceTrivia=5]="WhitespaceTrivia",e[e.ShebangTrivia=6]="ShebangTrivia",e[e.ConflictMarkerTrivia=7]="ConflictMarkerTrivia",e[e.NonTextFileMarkerTrivia=8]="NonTextFileMarkerTrivia",e[e.NumericLiteral=9]="NumericLiteral",e[e.BigIntLiteral=10]="BigIntLiteral",e[e.StringLiteral=11]="StringLiteral",e[e.JsxText=12]="JsxText",e[e.JsxTextAllWhiteSpaces=13]="JsxTextAllWhiteSpaces",e[e.RegularExpressionLiteral=14]="RegularExpressionLiteral",e[e.NoSubstitutionTemplateLiteral=15]="NoSubstitutionTemplateLiteral",e[e.TemplateHead=16]="TemplateHead",e[e.TemplateMiddle=17]="TemplateMiddle",e[e.TemplateTail=18]="TemplateTail",e[e.OpenBraceToken=19]="OpenBraceToken",e[e.CloseBraceToken=20]="CloseBraceToken",e[e.OpenParenToken=21]="OpenParenToken",e[e.CloseParenToken=22]="CloseParenToken",e[e.OpenBracketToken=23]="OpenBracketToken",e[e.CloseBracketToken=24]="CloseBracketToken",e[e.DotToken=25]="DotToken",e[e.DotDotDotToken=26]="DotDotDotToken",e[e.SemicolonToken=27]="SemicolonToken",e[e.CommaToken=28]="CommaToken",e[e.QuestionDotToken=29]="QuestionDotToken",e[e.LessThanToken=30]="LessThanToken",e[e.LessThanSlashToken=31]="LessThanSlashToken",e[e.GreaterThanToken=32]="GreaterThanToken",e[e.LessThanEqualsToken=33]="LessThanEqualsToken",e[e.GreaterThanEqualsToken=34]="GreaterThanEqualsToken",e[e.EqualsEqualsToken=35]="EqualsEqualsToken",e[e.ExclamationEqualsToken=36]="ExclamationEqualsToken",e[e.EqualsEqualsEqualsToken=37]="EqualsEqualsEqualsToken",e[e.ExclamationEqualsEqualsToken=38]="ExclamationEqualsEqualsToken",e[e.EqualsGreaterThanToken=39]="EqualsGreaterThanToken",e[e.PlusToken=40]="PlusToken",e[e.MinusToken=41]="MinusToken",e[e.AsteriskToken=42]="AsteriskToken",e[e.AsteriskAsteriskToken=43]="AsteriskAsteriskToken",e[e.SlashToken=44]="SlashToken",e[e.PercentToken=45]="PercentToken",e[e.PlusPlusToken=46]="PlusPlusToken",e[e.MinusMinusToken=47]="MinusMinusToken",e[e.LessThanLessThanToken=48]="LessThanLessThanToken",e[e.GreaterThanGreaterThanToken=49]="GreaterThanGreaterThanToken",e[e.GreaterThanGreaterThanGreaterThanToken=50]="GreaterThanGreaterThanGreaterThanToken",e[e.AmpersandToken=51]="AmpersandToken",e[e.BarToken=52]="BarToken",e[e.CaretToken=53]="CaretToken",e[e.ExclamationToken=54]="ExclamationToken",e[e.TildeToken=55]="TildeToken",e[e.AmpersandAmpersandToken=56]="AmpersandAmpersandToken",e[e.BarBarToken=57]="BarBarToken",e[e.QuestionToken=58]="QuestionToken",e[e.ColonToken=59]="ColonToken",e[e.AtToken=60]="AtToken",e[e.QuestionQuestionToken=61]="QuestionQuestionToken",e[e.BacktickToken=62]="BacktickToken",e[e.HashToken=63]="HashToken",e[e.EqualsToken=64]="EqualsToken",e[e.PlusEqualsToken=65]="PlusEqualsToken",e[e.MinusEqualsToken=66]="MinusEqualsToken",e[e.AsteriskEqualsToken=67]="AsteriskEqualsToken",e[e.AsteriskAsteriskEqualsToken=68]="AsteriskAsteriskEqualsToken",e[e.SlashEqualsToken=69]="SlashEqualsToken",e[e.PercentEqualsToken=70]="PercentEqualsToken",e[e.LessThanLessThanEqualsToken=71]="LessThanLessThanEqualsToken",e[e.GreaterThanGreaterThanEqualsToken=72]="GreaterThanGreaterThanEqualsToken",e[e.GreaterThanGreaterThanGreaterThanEqualsToken=73]="GreaterThanGreaterThanGreaterThanEqualsToken",e[e.AmpersandEqualsToken=74]="AmpersandEqualsToken",e[e.BarEqualsToken=75]="BarEqualsToken",e[e.BarBarEqualsToken=76]="BarBarEqualsToken",e[e.AmpersandAmpersandEqualsToken=77]="AmpersandAmpersandEqualsToken",e[e.QuestionQuestionEqualsToken=78]="QuestionQuestionEqualsToken",e[e.CaretEqualsToken=79]="CaretEqualsToken",e[e.Identifier=80]="Identifier",e[e.PrivateIdentifier=81]="PrivateIdentifier",e[e.JSDocCommentTextToken=82]="JSDocCommentTextToken",e[e.BreakKeyword=83]="BreakKeyword",e[e.CaseKeyword=84]="CaseKeyword",e[e.CatchKeyword=85]="CatchKeyword",e[e.ClassKeyword=86]="ClassKeyword",e[e.ConstKeyword=87]="ConstKeyword",e[e.ContinueKeyword=88]="ContinueKeyword",e[e.DebuggerKeyword=89]="DebuggerKeyword",e[e.DefaultKeyword=90]="DefaultKeyword",e[e.DeleteKeyword=91]="DeleteKeyword",e[e.DoKeyword=92]="DoKeyword",e[e.ElseKeyword=93]="ElseKeyword",e[e.EnumKeyword=94]="EnumKeyword",e[e.ExportKeyword=95]="ExportKeyword",e[e.ExtendsKeyword=96]="ExtendsKeyword",e[e.FalseKeyword=97]="FalseKeyword",e[e.FinallyKeyword=98]="FinallyKey Line truncated
`,K=l;continue}l++}return B.assert(Se!==void 0),x=xe,Se}function Ot(R){let $=l;if(l++,l>=Q)return W(E.Unexpected_end_of_text),"";let K=V(l);switch(l++,K){case 48:if(l>=Q||!fi(V(l)))return"\0";case 49:case 50:case 51:l<Q&&Tp(V(l))&&l++;case 52:case 53:case 54:case 55:if(l<Q&&Tp(V(l))&&l++,I|=2048,R&6){let we=parseInt(P.substring($+1,l),8);return R&4&&!(R&32)&&K!==48?W(E.Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended_as_an_escape_sequence_use_the_syntax_0_instead,$,l-$,"\\x"+we.toString(16).padStart(2,"0")):W(E.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,$,l-$,"\\x"+we.toString(16).padStart(2,"0")),String.fromCharCode(we)}return P.substring($,l);case 56:case 57:return I|=2048,R&6?(R&4&&!(R&32)?W(E.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,$,l-$):W(E.Escape_sequence_0_is_not_allowed,$,l-$,P.substring($,l)),String.fromCharCode(K)):P.substring($,l);case 98:return"\b";case 116:return" ";case 110:return`
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(l<Q&&V(l)===123){l-=2;let we=Bn(!!(R&6));return R&17||(I|=2048,R&6&&W(E.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,$,l-$)),we}for(;l<$+6;l++)if(!(l<Q&&vp(V(l))))return I|=2048,R&6&&W(E.Hexadecimal_digit_expected),P.substring($,l);I|=1024;let xe=parseInt(P.substring($+2,l),16),Se=String.fromCharCode(xe);if(R&16&&xe>=55296&&xe<=56319&&l+6<Q&&P.substring(l,l+2)==="\\u"&&V(l+2)!==123){let we=l,be=l+2;for(;be<we+6;be++)if(!vp(V(be)))return Se;let We=parseInt(P.substring(we+2,be),16);if(We>=56320&&We<=57343)return l=be,Se+String.fromCharCode(We)}return Se;case 120:for(;l<$+4;l++)if(!(l<Q&&vp(V(l))))return I|=2048,R&6&&W(E.Hexadecimal_digit_expected),P.substring($,l);return I|=4096,String.fromCharCode(parseInt(P.substring($+2,l),16));case 13:l<Q&&V(l)===10&&l++;case 10:case 8232:case 8233:return"";default:return(R&16||R&4&&!(R&8)&&Er(K,e))&&W(E.This_character_cannot_be_escaped_in_a_regular_expression,l-2,2),String.fromCharCode(K)}}function Bn(R){let $=l;l+=3;let K=l,xe=In(1,!1),Se=xe?parseInt(xe,16):-1,we=!1;return Se<0?(R&&W(E.Hexadecimal_digit_expected),we=!0):Se>1114111&&(R&&W(E.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,K,l-K),we=!0),l>=Q?(R&&W(E.Unexpected_end_of_text),we=!0):V(l)===125?l++:(R&&W(E.Unterminated_Unicode_escape_sequence),we=!0),we?(I|=2048,P.substring($,l)):(I|=8,Nd(Se))}function On(){if(l+5<Q&&V(l+1)===117){let R=l;l+=2;let $=bn(4,!1);return l=R,$}return-1}function Mt(){if(ae(l+1)===117&&ae(l+2)===123){let R=l;l+=3;let $=In(1,!1),K=$?parseInt($,16):-1;return l=R,K}return-1}function vt(){let R="",$=l;for(;l<Q;){let K=ae(l);if(Er(K,e))l+=Ft(K);else if(K===92){if(K=Mt(),K>=0&&Er(K,e)){R+=Bn(!0),$=l;continue}if(K=On(),!(K>=0&&Er(K,e)))break;I|=1024,R+=P.substring($,l),R+=Nd(K),l+=6,$=l}else break}return R+=P.substring($,l),R}function Qe(){let R=x.length;if(R>=2&&R<=12){let $=x.charCodeAt(0);if($>=97&&$<=122){let K=Vy.get(x);if(K!==void 0)return g=K}}return g=80}function qn(R){let $="",K=!1,xe=!1;for(;;){let Se=V(l);if(Se===95){I|=512,K?(K=!1,xe=!0):W(xe?E.Multiple_consecutive_numeric_separators_are_not_permitted:E.Numeric_separators_are_not_allowed_here,l,1),l++;continue}if(K=!0,!fi(Se)||Se-48>=R)break;$+=P[l],l++,xe=!1}return V(l-1)===95&&W(E.Numeric_separators_are_not_allowed_here,l-1,1),$}function $t(){return V(l)===110?(x+="n",I&384&&(x=bb(x)+"n"),l++,10):(x=""+(I&128?parseInt(x.slice(2),2):I&256?parseInt(x.slice(2),8):+x),9)}function ct(){for(h=l,I=0;;){if(y=l,l>=Q)return g=1;let R=ae(l);if(l===0&&R===35&&Ym(P,l)){if(l=Xm(P,l),t)continue;return g=6}switch(R){case 10:case 13:if(I|=1,t){l++;continue}else return R===13&&l+1<Q&&V(l+1)===10?l+=2:l++,g=4;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 8203:case 8239:case 8287:case 12288:case 65279:if(t){l++;continue}else{for(;l<Q&&rs(V(l));)l++;return g=5}case 33:return V(l+1)===61?V(l+2)===61?(l+=3,g=38):(l+=2,g=36):(l++,g=54);case 34:case 39:return x=ir(),g=11;case 96:return g=Pr(!1);case 37:return V(l+1)===61?(l+=2,g=70):(l++,g=45);case 38:return V(l+1)===38?V(l+2)===61?(l+=3,g=77):(l+=2,g=56):V(l+1)===61?(l+=2,g=74):(l++,g=51);case 40:return l++,g=21;case 41:return l++,g=22;case 42:if(V(l+1)===61)return l+=2,g=67;if(V(l+1)===42)return V(l+2)===61?(l+=3,g=68):(l+=2,g=43);if(l++,he&&(I&32768)===0&&I&1){I|=32768;continue}return g=42;case 43:return V(l+1)===43?(l+=2,g=46):V(l+1)===61?(l+=2,g=65):(l++,g=40);case 44:return l++,g=28;case 45:return V(l+1)===45?(l+=2,g=47):V(l+1)===61?(l+=2,g=66):(l++,g=41);case 46:return fi(V(l+1))?(nr(),g=9):V(l+1)===46&&V(l+2)===46?(l+=3,g=26):(l++,g=25);case 47:if(V(l+1)===47){for(l+=2;l<Q&&!Cn(V(l));)l++;if(re=cn(re,P.slice(y,l),$y,y),t)continue;return g=2}if(V(l+1)===42){l+=2;let be=V(l)===42&&V(l+1)!==47,We=!1,Ze=y;for(;l<Q;){let Ye=V(l);if(Ye===42&&V(l+1)===47){l+=2,We=!0;break}l++,Cn(Ye)&&(Ze=l,I|=1)}if(be&&_t()&&(I|=2),re=cn(re,P.slice(Ze,l),Qy,Ze),We||W(E.Asterisk_Slash_expected),t)continue;return We||(I|=4),g=3}return V(l+1)===61?(l+=2,g=69):(l++,g=44);case 48:if(l+2<Q&&(V(l+1)===88||V(l+1)===120))return l+=2,x=In(1,!0),x||(W(E.Hexadecimal_digit_expected),x="0"),x="0x"+x,I|=64,g=$t();if(l+2<Q&&(V(l+1)===66||V(l+1)===98))return l+=2,x=qn(2),x||(W(E.Binary_digit_expected),x="0"),x="0b"+x,I|=128,g=$t();if(l+2<Q&&(V(l+1)===79||V(l+1)===111))return l+=2,x=qn(8),x||(W(E.Octal_digit_expected),x="0"),x="0o"+x,I|=256,g=$t();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return g=nr();case 58:return l++,g=59;case 59:return l++,g=27;case 60:if(Wi(P,l)){if(l=Ma(P,l,W),t)continue;return g=7}return V(l+1)===60?V(l+2)===61?(l+=3,g=71):(l+=2,g=48):V(l+1)===61?(l+=2,g=33):a===1&&V(l+1)===47&&V(l+2)!==42?(l+=2,g=31):(l++,g=30);case 61:if(Wi(P,l)){if(l=Ma(P,l,W),t)continue;return g=7}retu Line truncated
`)),o}function za(e){let t=e.emitNode;return t&&t.flags||0}function o2(e,t,a){B.assertGreaterThanOrEqual(t,0),B.assertGreaterThanOrEqual(a,0),B.assertLessThanOrEqual(t,e.length),B.assertLessThanOrEqual(t+a,e.length)}function ol(e){return e.kind===244&&e.expression.kind===11}function hf(e){return!!(za(e)&2097152)}function Bd(e){return hf(e)&&jf(e)}function c2(e){return tt(e.name)&&!e.initializer}function qd(e){return hf(e)&&Ha(e)&&Gp(e.declarationList.declarations,c2)}function l2(e,t){let a=e.kind===169||e.kind===168||e.kind===218||e.kind===219||e.kind===217||e.kind===260||e.kind===281?Yp(sg(t,e.pos),Jp(t,e.pos)):Jp(t,e.pos);return Gr(a,o=>o.end<=e.end&&t.charCodeAt(o.pos+1)===42&&t.charCodeAt(o.pos+2)===42&&t.charCodeAt(o.pos+3)!==47)}function u2(e){if(e)switch(e.kind){case 208:case 306:case 169:case 303:case 172:case 171:case 304:case 260:return!0}return!1}function p2(e){return e&&e.kind===241&&mf(e.parent)}function zd(e){let t=e.kind;return(t===211||t===212)&&e.expression.kind===108}function ea(e){return!!e&&!!(e.flags&524288)}function f2(e){return!!e&&!!(e.flags&16777216)}function d2(e){for(;yl(e,!0);)e=e.right;return e}function m2(e){return tt(e)&&e.escapedText==="exports"}function h2(e){return tt(e)&&e.escapedText==="module"}function h1(e){return(Xr(e)||y1(e))&&h2(e.expression)&&ps(e)==="exports"}function yf(e){let t=g2(e);return t===5||ea(e)?t:0}function y2(e){return ts(e.arguments)===3&&Xr(e.expression)&&tt(e.expression.expression)&&Pn(e.expression.expression)==="Object"&&Pn(e.expression.name)==="defineProperty"&&kl(e.arguments[1])&&us(e.arguments[0],!0)}function y1(e){return Xa(e)&&kl(e.argumentExpression)}function gs(e,t){return Xr(e)&&(!t&&e.expression.kind===110||tt(e.name)&&us(e.expression,!0))||g1(e,t)}function g1(e,t){return y1(e)&&(!t&&e.expression.kind===110||xf(e.expression)||gs(e.expression,!0))}function us(e,t){return xf(e)||gs(e,t)}function g2(e){if(Of(e)){if(!y2(e))return 0;let t=e.arguments[0];return m2(t)||h1(t)?8:gs(t)&&ps(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!w1(e.left)||b2(d2(e))?0:us(e.left.expression,!0)&&ps(e.left)==="prototype"&&If(T2(e))?6:v2(e.left)}function b2(e){return Qb(e)&&ta(e.expression)&&e.expression.text==="0"}function gf(e){if(Xr(e))return e.name;let t=vf(e.argumentExpression);return ta(t)||wl(t)?t:e}function ps(e){let t=gf(e);if(t){if(tt(t))return t.escapedText;if(wl(t)||ta(t))return Ja(t.text)}}function v2(e){if(e.expression.kind===110)return 4;if(h1(e))return 2;if(us(e.expression,!0)){if($2(e.expression))return 3;let t=e;for(;!tt(t.expression);)t=t.expression;let a=t.expression;if((a.escapedText==="exports"||a.escapedText==="module"&&ps(t)==="exports")&&gs(e))return 1;if(us(e,!0)||Xa(e)&&J2(e))return 5}return 0}function T2(e){for(;Zi(e.right);)e=e.right;return e.right}function x2(e){return Cl(e)&&Zi(e.expression)&&yf(e.expression)!==0&&Zi(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function S2(e){switch(e.kind){case 243:let t=Up(e);return t&&t.initializer;case 172:return e.initializer;case 303:return e.initializer}}function Up(e){return Ha(e)?Xp(e.declarationList.declarations):void 0}function w2(e){return Ti(e)&&e.body&&e.body.kind===267?e.body:void 0}function bf(e){switch(e.kind){case 219:case 226:case 241:case 252:case 179:case 296:case 263:case 231:case 175:case 176:case 185:case 180:case 251:case 259:case 246:case 212:case 242:case 1:case 266:case 306:case 277:case 278:case 281:case 244:case 249:case 250:case 248:case 262:case 218:case 184:case 177:case 80:case 245:case 272:case 271:case 181:case 264:case 317:case 323:case 256:case 174:case 173:case 267:case 202:case 270:case 210:case 169:case 217:case 211:case 303:case 172:case 171:case 253:case 240:case 178:case 304:case 305:case 255:case 257:case 258:case 265:case 168:case 260:case 243:case 247:case 254:return!0;default:return!1}}function k2(e,t){let a;u2(e)&&t2(e)&&Xi(e.initializer)&&(a=Dn(a,Fd(e,e.initializer.jsDoc)));let o=e;for(;o&&o.parent;){if(Xi(o)&&(a=Dn(a,Fd(e,o.jsDoc))),o.kind===169){a=Dn(a,(t?bg:gg)(o));break}if(o.kind===168){a=Dn(a,(t?Tg:vg)(o));break}o=A2(o)}return a||bt}function Fd(e,t){let a=ly(t);return Am(t,o=>{if(o===a){let m=Gr(o.tags,v=>E2(e,v));return o.tags===m?[o]:m}else return Gr(o.tags,l6)})}function E2(e,t){return!(Ff(t)||d6(t))||!t.parent||!sh(t.parent)||!Al(t.parent.parent)||t.parent.parent===e}function A2(e){let t=e.parent;if(t.kind===303||t.kind===277||t.kind===172||t.kind===244&&e.kind===211||t.kind===253||w2(t)||yl(e))return t;if(t.parent&&(Up(t.parent)===e||yl(t)))return t.parent;if(t.parent&&t.parent.parent&&(Up(t.parent.parent)||S2(t.parent.parent)===e||x2(t.parent.parent)))return t.parent.parent}function vf(e,t){return Vf(e,t?-2147483647:1)}function C2(e){let t=D2(e);if(t&&ea(e)){let a=xg(e);if(a)return a.class}return t}function D2(e){let t=Tf(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function P2(e){if(ea(e))return Sg(e).map(t=>t.c Line truncated
`,ee)+1)+4;function te(Ue){Y||(Y=X),Ln.push(Ue),X+=Ue.length}for(ze();Bi(5););Bi(4)&&(O=0,X=0);e:for(;;){switch(u()){case 60:Da(Ln),ur||(ur=J()),pe(q(X)),O=0,Y=void 0;break;case 4:Ln.push(t.getTokenText()),O=0,X=0;break;case 42:let Ue=t.getTokenText();O===1?(O=2,te(Ue)):(B.assert(O===0),O=1,X+=Ue.length);break;case 5:B.assert(O!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let pt=t.getTokenText();Y!==void 0&&X+pt.length>Y&&Ln.push(pt.slice(Y-X)),X+=pt.length;break;case 1:break e;case 82:O=2,te(t.getTokenValue());break;case 19:O=2;let hn=t.getTokenFullStart(),sn=t.getTokenEnd()-1,tn=_(sn);if(tn){Zt||pr(Ln),Fr.push(D(h.createJSDocText(Ln.join("")),Zt??ee,hn)),Fr.push(tn),Ln=[],Zt=t.getTokenEnd();break}default:O=2,te(t.getTokenText());break}O===2?an(!1):ze()}let ne=Ln.join("").trimEnd();Fr.length&&ne.length&&Fr.push(D(h.createJSDocText(ne),Zt??ee,ur)),Fr.length&&Ae&&B.assertIsDefined(ur,"having parsed tags implies that the end of the comment span should be set");let Pe=Ae&&Ct(Ae,Yt,mn);return D(h.createJSDocComment(Fr.length?Ct(Fr,ee,ur):ne.length?ne:void 0,Pe),ee,je)}function pr(O){for(;O.length&&(O[0]===`
`||O[0]==="\r");)O.shift()}function Da(O){for(;O.length;){let Y=O[O.length-1].trimEnd();if(Y==="")O.pop();else if(Y.length<O[O.length-1].length){O[O.length-1]=Y;break}else break}}function $c(){for(;;){if(ze(),u()===1)return!0;if(!(u()===5||u()===4))return!1}}function It(){if(!((u()===5||u()===4)&&G($c)))for(;u()===5||u()===4;)ze()}function xr(){if((u()===5||u()===4)&&G($c))return"";let O=t.hasPrecedingLineBreak(),Y=!1,X="";for(;O&&u()===42||u()===5||u()===4;)X+=t.getTokenText(),u()===4?(O=!0,Y=!0,X=""):u()===42&&(O=!1),ze();return Y?X:""}function q(O){B.assert(u()===60);let Y=t.getTokenStart();ze();let X=li(void 0),te=xr(),ne;switch(X.escapedText){case"author":ne=O0(Y,X,O,te);break;case"implements":ne=J0(Y,X,O,te);break;case"augments":case"extends":ne=L0(Y,X,O,te);break;case"class":case"constructor":ne=Ui(Y,h.createJSDocClassTag,X,O,te);break;case"public":ne=Ui(Y,h.createJSDocPublicTag,X,O,te);break;case"private":ne=Ui(Y,h.createJSDocPrivateTag,X,O,te);break;case"protected":ne=Ui(Y,h.createJSDocProtectedTag,X,O,te);break;case"readonly":ne=Ui(Y,h.createJSDocReadonlyTag,X,O,te);break;case"override":ne=Ui(Y,h.createJSDocOverrideTag,X,O,te);break;case"deprecated":Vn=!0,ne=Ui(Y,h.createJSDocDeprecatedTag,X,O,te);break;case"this":ne=yd(Y,X,O,te);break;case"enum":ne=B0(Y,X,O,te);break;case"arg":case"argument":case"param":return $n(Y,X,2,O);case"return":case"returns":ne=P0(Y,X,O,te);break;case"template":ne=bd(Y,X,O,te);break;case"type":ne=md(Y,X,O,te);break;case"typedef":ne=q0(Y,X,O,te);break;case"callback":ne=F0(Y,X,O,te);break;case"overload":ne=V0(Y,X,O,te);break;case"satisfies":ne=j0(Y,X,O,te);break;case"see":ne=N0(Y,X,O,te);break;case"exception":case"throws":ne=I0(Y,X,O,te);break;case"import":ne=R0(Y,X,O,te);break;default:ne=F(Y,X,O,te);break}return ne}function n(O,Y,X,te){return te||(X+=Y-O),i(X,te.slice(X))}function i(O,Y){let X=J(),te=[],ne=[],Pe,Ue=0,pt;function hn(Qn){pt||(pt=O),te.push(Qn),O+=Qn.length}Y!==void 0&&(Y!==""&&hn(Y),Ue=1);let sn=u();e:for(;;){switch(sn){case 4:Ue=0,te.push(t.getTokenText()),O=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:B.assert(Ue!==2&&Ue!==3,"whitespace shouldn't come from the scanner while saving comment text");let Qn=t.getTokenText();pt!==void 0&&O+Qn.length>pt&&(te.push(Qn.slice(pt-O)),Ue=2),O+=Qn.length;break;case 19:Ue=2;let Qc=t.getTokenFullStart(),Na=t.getTokenEnd()-1,Kc=_(Na);Kc?(ne.push(D(h.createJSDocText(te.join("")),Pe??X,Qc)),ne.push(Kc),te=[],Pe=t.getTokenEnd()):hn(t.getTokenText());break;case 62:Ue===3?Ue=2:Ue=3,hn(t.getTokenText());break;case 82:Ue!==3&&(Ue=2),hn(t.getTokenValue());break;case 42:if(Ue===0){Ue=1,O+=1;break}default:Ue!==3&&(Ue=2),hn(t.getTokenText());break}Ue===2||Ue===3?sn=an(Ue===3):sn=ze()}pr(te);let tn=te.join("").trimEnd();if(ne.length)return tn.length&&ne.push(D(h.createJSDocText(tn),Pe??X)),Ct(ne,X,t.getTokenEnd());if(tn.length)return tn}function _(O){let Y=le(f);if(!Y)return;ze(),It();let X=c(),te=[];for(;u()!==20&&u()!==4&&u()!==1;)te.push(t.getTokenText()),ze();let ne=Y==="link"?h.createJSDocLink:Y==="linkcode"?h.createJSDocLinkCode:h.createJSDocLinkPlain;return D(ne(X,te.join("")),O,t.getTokenEnd())}function c(){if(wt(u())){let O=J(),Y=jt();for(;Je(25);)Y=D(h.createQualifiedName(Y,u()===81?Gt(80,!1):jt()),O);for(;u()===81;)Nt(),ze(),Y=D(h.createJSDocMemberName(Y,St()),O);return Y}}function f(){if(xr(),u()===19&&ze()===60&&wt(ze())){let O=t.getTokenValue();if(w(O))return O}}function w(O){return O==="link"||O==="linkcode"||O==="linkplain"}function F(O,Y,X,te){return D(h.createJSDocUnknownTag(Y,n(O,J(),X,te)),O)}function pe(O){O&&(Ae?Ae.push(O):(Ae=[O],Yt=O.pos),mn=O.end)}function Re(){return xr(),u()===19?d():void 0}function en(){let O=Bi(23);O&&It();let Y=Bi(62),X=$0();return Y&&ql(62),O&&(It(),ft(64)&&Et(),j(24)),{name:X,isBracketed:O}}function kn(O){switch(O.kind){case 151:return!0;case 188:return kn(O.elementType);default:return Df(O)&&tt(O.typeName)&&O.typeName.escapedText==="Object"&&!O.typeArguments}}function $n(O,Y,X,te){let ne=Re(),Pe=!ne;xr();let{name:Ue,isBracketed:pt}=en(),hn=xr();Pe&&!G(f)&&(ne=Re());let sn=n(O,J(),te,hn),tn=Pa(ne,Ue,X,te);tn&&(ne=tn,Pe=!0);let Qn=X===1?h.createJSDocPropertyTag(Y,Ue,pt,ne,Pe,sn):h.createJSDocParameterTag(Y,Ue,pt,ne,Pe,sn);return D(Qn,O)}function Pa(O,Y,X,te){if(O&&kn(O.type)){let ne=J(),Pe,Ue;for(;Pe=le(()=>hp(X,te,Y));)Pe.kind===341||Pe.kind===348?Ue=An(Ue,Pe):Pe.kind===345&&ln(Pe.tagName,E.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(Ue){let pt=D(h.createJSDocTypeLiteral(Ue,O.type.kind===188),ne);return D(h.createJSDocTypeExpression(pt),ne)}}}function P0(O,Y,X,te){Xt(Ae,p6)&&rt(Y.pos,t.getTokenStart(),E._0_tag_already_specified,cs(Y.escapedText));let ne=Re();return D(h.createJSDocReturnTag(Y,ne,n(O,J(),X,te)),O)}function md(O,Y,X,te){Xt(Ae,Ff)&&rt(Y.pos,t.getTokenStart(),E._0_tag_already_specified,cs(Y.escapedText));let ne=d(!0),Pe=X!==void 0&&te!==void 0?n(O,J(),X,te):void 0;return D(h.createJSDocTypeTag(Y,ne,Pe),O)}f Line truncated
`&&m[o-1]==="\r"?o-1:o}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=hy();return this.forEachChild(m),e;function t(v){let A=o(v);A&&e.add(A,v)}function a(v){let A=e.get(v);return A||e.set(v,A=[]),A}function o(v){let A=lf(v);return A&&(kf(A)&&Xr(A.expression)?A.expression.name.text:s1(A)?getNameFromPropertyName(A):void 0)}function m(v){switch(v.kind){case 262:case 218:case 174:case 173:let A=v,P=o(A);if(P){let h=a(P),y=Yi(h);y&&A.parent===y.parent&&A.symbol===y.symbol?A.body&&!y.body&&(h[h.length-1]=A):h.push(A)}Ht(v,m);break;case 263:case 231:case 264:case 265:case 266:case 267:case 271:case 281:case 276:case 273:case 274:case 177:case 178:case 187:t(v),Ht(v,m);break;case 169:if(!bs(v,31))break;case 260:case 208:{let h=v;if(Vg(h.name)){Ht(h.name,m);break}h.initializer&&m(h.initializer)}case 306:case 172:case 171:t(v);break;case 278:let l=v;l.exportClause&&(eh(l.exportClause)?Un(l.exportClause.elements,m):m(l.exportClause.name));break;case 272:let Q=v.importClause;Q&&(Q.name&&t(Q.name),Q.namedBindings&&(Q.namedBindings.kind===274?t(Q.namedBindings):Un(Q.namedBindings.elements,m)));break;case 226:yf(v)!==0&&t(v);default:Ht(v,m)}}}},Z6=class{constructor(e,t,a){this.fileName=e,this.text=t,this.skipTrivia=a||(o=>o)}getLineAndCharacterOfPosition(e){return Wm(this,e)}};function ev(){return{getNodeConstructor:()=>Gf,getTokenConstructor:()=>gh,getIdentifierConstructor:()=>bh,getPrivateIdentifierConstructor:()=>vh,getSourceFileConstructor:()=>K6,getSymbolConstructor:()=>H6,getTypeConstructor:()=>$6,getSignatureConstructor:()=>Q6,getSourceMapSourceConstructor:()=>Z6}}var tv=["getSemanticDiagnostics","getSuggestionDiagnostics","getCompilerOptionsDiagnostics","getSemanticClassifications","getEncodedSemanticClassifications","getCodeFixesAtPosition","getCombinedCodeFix","applyCodeActionCommand","organizeImports","getEditsForFileRename","getEmitOutput","getApplicableRefactors","getEditsForRefactor","prepareCallHierarchy","provideCallHierarchyIncomingCalls","provideCallHierarchyOutgoingCalls","provideInlayHints","getSupportedCodeFixes","getPasteEdits"],b3=[...tv,"getCompletionsAtPosition","getCompletionEntryDetails","getCompletionEntrySymbol","getSignatureHelpItems","getQuickInfoAtPosition","getDefinitionAtPosition","getDefinitionAndBoundSpan","getImplementationAtPosition","getTypeDefinitionAtPosition","getReferencesAtPosition","findReferences","getDocumentHighlights","getNavigateToItems","getRenameInfo","findRenameLocations","getApplicableRefactors","preparePasteEditsForFile"];_b(ev());var Il=new Proxy({},{get:()=>!0});var wh=Il["4.8"];function er(e,t=!1){var a;if(e!=null){if(wh){if(t||Nl(e)){let o=t1(e);return o?[...o]:void 0}return}return(a=e.modifiers)==null?void 0:a.filter(o=>!El(o))}}function na(e,t=!1){var a;if(e!=null){if(wh){if(t||Wf(e)){let o=uf(e);return o?[...o]:void 0}return}return(a=e.decorators)==null?void 0:a.filter(El)}}var Eh={};var Ol=new Proxy({},{get:(e,t)=>t});var Ah=Ol,Ch=Ol;var C=Ah,Rt=Ch;var Dh=Il["5.0"],ue=Ie,iv=new Set([ue.AmpersandAmpersandToken,ue.BarBarToken,ue.QuestionQuestionToken]),av=new Set([Ie.AmpersandAmpersandEqualsToken,Ie.AmpersandEqualsToken,Ie.AsteriskAsteriskEqualsToken,Ie.AsteriskEqualsToken,Ie.BarBarEqualsToken,Ie.BarEqualsToken,Ie.CaretEqualsToken,Ie.EqualsToken,Ie.GreaterThanGreaterThanEqualsToken,Ie.GreaterThanGreaterThanGreaterThanEqualsToken,Ie.LessThanLessThanEqualsToken,Ie.MinusEqualsToken,Ie.PercentEqualsToken,Ie.PlusEqualsToken,Ie.QuestionQuestionEqualsToken,Ie.SlashEqualsToken]),_v=new Set([ue.AmpersandAmpersandToken,ue.AmpersandToken,ue.AsteriskAsteriskToken,ue.AsteriskToken,ue.BarBarToken,ue.BarToken,ue.CaretToken,ue.EqualsEqualsEqualsToken,ue.EqualsEqualsToken,ue.ExclamationEqualsEqualsToken,ue.ExclamationEqualsToken,ue.GreaterThanEqualsToken,ue.GreaterThanGreaterThanGreaterThanToken,ue.GreaterThanGreaterThanToken,ue.GreaterThanToken,ue.InKeyword,ue.InstanceOfKeyword,ue.LessThanEqualsToken,ue.LessThanLessThanToken,ue.LessThanToken,ue.MinusToken,ue.PercentToken,ue.PlusToken,ue.SlashToken]);function sv(e){return av.has(e.kind)}function ov(e){return iv.has(e.kind)}function cv(e){return _v.has(e.kind)}function $r(e){return it(e)}function Ph(e){return e.kind!==ue.SemicolonClassElement}function Xe(e,t){let a=er(t);return(a==null?void 0:a.some(o=>o.kind===e))===!0}function Nh(e){let t=er(e);return t==null?null:t[t.length-1]??null}function Ih(e){return e.kind===ue.CommaToken}function lv(e){return e.kind===ue.SingleLineCommentTrivia||e.kind===ue.MultiLineCommentTrivia}function uv(e){return e.kind===ue.JSDocComment}function Oh(e){if(sv(e))return{type:C.AssignmentExpression,operator:$r(e.kind)};if(ov(e))return{type:C.LogicalExpression,operator:$r(e.kind)};if(cv(e))return{type:C.BinaryExpression,operator:$r(e.kind)};throw new Error(`Unexpected binary operator ${it(e.kind)}`)}function Ts(e,t){let a=t.getLineAndCharacterOfPosition(e);return{column:a.character,l Line truncated
`);return t.length>1&&t.every(a=>a.trimStart()[0]==="*")}var cd=p4;function f4(e){return Ss(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)}var m0=f4;var ws=null;function ks(e){if(ws!==null&&typeof ws.property){let t=ws;return ws=ks.prototype=null,t}return ws=ks.prototype=e??Object.create(null),new ks}var d4=10;for(let e=0;e<=d4;e++)ks();function ld(e){return ks(e)}function m4(e,t="type"){ld(e);function a(o){let m=o[t],v=e[m];if(!Array.isArray(v))throw Object.assign(new Error(`Missing visitor keys for '${m}'.`),{node:o});return v}return a}var h0=m4;var y0={ArrayExpression:["elements"],AssignmentExpression:["left","right"],BinaryExpression:["left","right"],InterpreterDirective:[],Directive:["value"],DirectiveLiteral:[],BlockStatement:["directives","body"],BreakStatement:["label"],CallExpression:["callee","arguments","typeParameters","typeArguments"],CatchClause:["param","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExpressionStatement:["expression"],File:["program"],ForInStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","typeParameters","params","predicate","returnType","body"],FunctionExpression:["id","typeParameters","params","returnType","body"],Identifier:["typeAnnotation","decorators"],IfStatement:["test","consequent","alternate"],LabeledStatement:["label","body"],StringLiteral:[],NumericLiteral:[],NullLiteral:[],BooleanLiteral:[],RegExpLiteral:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],NewExpression:["callee","arguments","typeParameters","typeArguments"],Program:["directives","body"],ObjectExpression:["properties"],ObjectMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectProperty:["key","value","decorators"],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:["argument"],SequenceExpression:["expressions"],ParenthesizedExpression:["expression"],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],AssignmentPattern:["left","right","decorators","typeAnnotation"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],ClassBody:["body"],ClassExpression:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ClassDeclaration:["decorators","id","typeParameters","superClass","superTypeParameters","mixins","implements","body","superTypeArguments"],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ForOfStatement:["left","right","body"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],ImportExpression:["source","options"],MetaProperty:["meta","property"],ClassMethod:["decorators","key","typeParameters","params","returnType","body"],ObjectPattern:["properties","typeAnnotation","decorators"],SpreadElement:["argument"],Super:[],TaggedTemplateExpression:["tag","typeParameters","quasi","typeArguments"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],YieldExpression:["argument"],AwaitExpression:["argument"],BigIntLiteral:[],ExportNamespaceSpecifier:["exported"],OptionalMemberExpression:["object","property"],OptionalCallExpression:["callee","arguments","typeParameters","typeArguments"],ClassProperty:["decorators","variance","key","typeAnnotation","value"],ClassAccessorProperty:["decorators","key","typeAnnotation","value"],ClassPrivateProperty:["decorators","variance","key","typeAnnotation","value"],ClassPrivateMethod:["decorators","key","typeParameters","params","returnType","body"],PrivateName:["id"],StaticBlock:["body"],AnyTypeAnnotation:[],ArrayTypeAnnotation:["elementType"],BooleanTypeAnnotation:[],BooleanLiteralTypeAnnotation:[],NullLiteralTypeAnnotation:[],ClassImplements:["id","typeParameters"],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareFunction:["id","predicate"],DeclareInterface:["id","typeParameters","extends","body"],DeclareModule:["id","body"],DeclareModuleExports:["typeAnnotation"],DeclareTypeAlias:["id","typeParameters","right"],DeclareOpaqueType:["id","typeParameters","supertype"],DeclareVariable:["id"],DeclareExportDeclaration:["declaration","specifiers","source","attributes"],DeclareExportAllDeclaration:["source","attributes"],DeclaredPredicate:["value"],ExistsTypeAnnotation:[] Line truncated
`;e=Sr(!1,e.replace(b4,"").replace(g4,""),S4,"$1");let a="";for(;a!==e;)a=e,e=Sr(!1,e,x4,`${t}$1 $2${t}`);e=e.replace(T0,"").trimEnd();let o=Object.create(null),m=Sr(!1,e,x0,"").replace(T0,"").trimEnd(),v;for(;v=x0.exec(e);){let A=Sr(!1,v[2],T4,"");if(typeof o[v[1]]=="string"||Array.isArray(o[v[1]])){let P=o[v[1]];o[v[1]]=[...w4,...Array.isArray(P)?P:[P],A]}else o[v[1]]=A}return{comments:m,pragmas:o}}function k4(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
`);return t===-1?e:e.slice(0,t)}var k0=k4;function E4(e){let t=k0(e);t&&(e=e.slice(t.length+1));let a=S0(e),{pragmas:o,comments:m}=w0(a);return{shebang:t,text:e,pragmas:o,comments:m}}function E0(e){let{pragmas:t}=E4(e);return Object.prototype.hasOwnProperty.call(t,"prettier")||Object.prototype.hasOwnProperty.call(t,"format")}function A4(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:E0,locStart:tr,locEnd:Kr,...e}}var A0=A4;function C4(e){let{filepath:t}=e;if(t){if(t=t.toLowerCase(),t.endsWith(".cjs")||t.endsWith(".cts"))return"script";if(t.endsWith(".mjs")||t.endsWith(".mts"))return"module"}}var C0=C4;function D4(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var D0=D4;var P4={loc:!0,range:!0,comment:!0,tokens:!0,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function N4(e){if(!(e!=null&&e.location))return e;let{message:t,location:{start:a,end:o}}=e;return u0(t,{loc:{start:{line:a.line,column:a.column+1},end:{line:o.line,column:o.column+1}},cause:e})}var I4=e=>/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function O4(e,t){let a=t==null?void 0:t.filepath,o=[{...P4,filePath:a}],m=C0(t);if(m?o=o.map(A=>({...A,sourceType:m})):o=["module","script"].flatMap(P=>o.map(l=>({...l,sourceType:P}))),a&&I4(a))return o;let v=J4(e);return[v,!v].flatMap(A=>o.map(P=>({...P,jsx:A})))}function M4(e,t={}){let a=D0(e),o=O4(e,t),m;try{m=p0(o.map(v=>()=>l0(a,v)))}catch({errors:[v]}){throw N4(v)}return v0(m,{text:e})}function J4(e){return new RegExp(["(?:^[^\"'`]*</)","|","(?:^[^/]{2}.*/>)"].join(""),"mu").test(e)}var L4=A0(M4);var uS=dd;export{uS as default,fd as parsers};
+5
View File
@@ -0,0 +1,5 @@
import { Parser } from "../index.js";
export declare const parsers: {
yaml: Parser;
};
+161
View File
@@ -0,0 +1,161 @@
(function(f){function e(){var i=f();return i.default||i}if(typeof exports=="object"&&typeof module=="object")module.exports=e();else if(typeof define=="function"&&define.amd)define(e);else{var t=typeof globalThis<"u"?globalThis:typeof global<"u"?global:typeof self<"u"?self:this||{};t.prettierPlugins=t.prettierPlugins||{},t.prettierPlugins.yaml=e()}})(function(){"use strict";var Ti=Object.create;var yt=Object.defineProperty;var Ci=Object.getOwnPropertyDescriptor;var Mi=Object.getOwnPropertyNames;var ki=Object.getPrototypeOf,vi=Object.prototype.hasOwnProperty;var te=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),nr=(t,e)=>{for(var n in e)yt(t,n,{get:e[n],enumerable:!0})},rr=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Mi(e))!vi.call(t,s)&&s!==n&&yt(t,s,{get:()=>e[s],enumerable:!(r=Ci(e,s))||r.enumerable});return t};var sr=(t,e,n)=>(n=t!=null?Ti(ki(t)):{},rr(e||!t||!t.__esModule?yt(n,"default",{value:t,enumerable:!0}):n,t)),Ii=t=>rr(yt({},"__esModule",{value:!0}),t);var le=te(U=>{"use strict";var re={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},lt={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},Ao="tag:yaml.org,2002:",To={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Ps(t){let e=[0],n=t.indexOf(`
`);for(;n!==-1;)n+=1,e.push(n),n=t.indexOf(`
`,n);return e}function _s(t){let e,n;return typeof t=="string"?(e=Ps(t),n=t):(Array.isArray(t)&&(t=t[0]),t&&t.context&&(t.lineStarts||(t.lineStarts=Ps(t.context.src)),e=t.lineStarts,n=t.context.src)),{lineStarts:e,src:n}}function Tn(t,e){if(typeof t!="number"||t<0)return null;let{lineStarts:n,src:r}=_s(e);if(!n||!r||t>r.length)return null;for(let i=0;i<n.length;++i){let o=n[i];if(t<o)return{line:i,col:t-n[i-1]+1};if(t===o)return{line:i+1,col:1}}let s=n.length;return{line:s,col:t-n[s-1]+1}}function Co(t,e){let{lineStarts:n,src:r}=_s(e);if(!n||!(t>=1)||t>n.length)return null;let s=n[t-1],i=n[t];for(;i&&i>s&&r[i-1]===`
`;)--i;return r.slice(s,i)}function Mo({start:t,end:e},n,r=80){let s=Co(t.line,n);if(!s)return null;let{col:i}=t;if(s.length>r)if(i<=r-10)s=s.substr(0,r-1)+"\u2026";else{let f=Math.round(r/2);s.length>i+f&&(s=s.substr(0,i+f-1)+"\u2026"),i-=s.length-r,s="\u2026"+s.substr(1-r)}let o=1,a="";e&&(e.line===t.line&&i+(e.col-t.col)<=r+1?o=e.col-t.col:(o=Math.min(s.length+1,r)-i,a="\u2026"));let c=i>1?" ".repeat(i-1):"",l="^".repeat(o);return`${s}
${c}${l}${a}`}var Be=class t{static copy(e){return new t(e.start,e.end)}constructor(e,n){this.start=e,this.end=n||e}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(e,n){let{start:r,end:s}=this;if(e.length===0||s<=e[0])return this.origStart=r,this.origEnd=s,n;let i=n;for(;i<e.length&&!(e[i]>r);)++i;this.origStart=r+i;let o=i;for(;i<e.length&&!(e[i]>=s);)++i;return this.origEnd=s+i,o}},se=class t{static addStringTerminator(e,n,r){if(r[r.length-1]===`
`)return r;let s=t.endOfWhiteSpace(e,n);return s>=e.length||e[s]===`
`?r+`
`:r}static atDocumentBoundary(e,n,r){let s=e[n];if(!s)return!0;let i=e[n-1];if(i&&i!==`
`)return!1;if(r){if(s!==r)return!1}else if(s!==re.DIRECTIVES_END&&s!==re.DOCUMENT_END)return!1;let o=e[n+1],a=e[n+2];if(o!==s||a!==s)return!1;let c=e[n+3];return!c||c===`
`||c===" "||c===" "}static endOfIdentifier(e,n){let r=e[n],s=r==="<",i=s?[`
`," "," ",">"]:[`
`," "," ","[","]","{","}",","];for(;r&&i.indexOf(r)===-1;)r=e[n+=1];return s&&r===">"&&(n+=1),n}static endOfIndent(e,n){let r=e[n];for(;r===" ";)r=e[n+=1];return n}static endOfLine(e,n){let r=e[n];for(;r&&r!==`
`;)r=e[n+=1];return n}static endOfWhiteSpace(e,n){let r=e[n];for(;r===" "||r===" ";)r=e[n+=1];return n}static startOfLine(e,n){let r=e[n-1];if(r===`
`)return n;for(;r&&r!==`
`;)r=e[n-=1];return n+1}static endOfBlockIndent(e,n,r){let s=t.endOfIndent(e,r);if(s>r+n)return s;{let i=t.endOfWhiteSpace(e,s),o=e[i];if(!o||o===`
`)return i}return null}static atBlank(e,n,r){let s=e[n];return s===`
`||s===" "||s===" "||r&&!s}static nextNodeIsIndented(e,n,r){return!e||n<0?!1:n>0?!0:r&&e==="-"}static normalizeOffset(e,n){let r=e[n];return r?r!==`
`&&e[n-1]===`
`?n-1:t.endOfWhiteSpace(e,n):n}static foldNewline(e,n,r){let s=0,i=!1,o="",a=e[n+1];for(;a===" "||a===" "||a===`
`;){switch(a){case`
`:s=0,n+=1,o+=`
`;break;case" ":s<=r&&(i=!0),n=t.endOfWhiteSpace(e,n+2)-1;break;case" ":s+=1,n+=1;break}a=e[n+1]}return o||(o=" "),a&&s<=r&&(i=!0),{fold:o,offset:n,error:i}}constructor(e,n,r){Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=e,this.value=null}getPropValue(e,n,r){if(!this.context)return null;let{src:s}=this.context,i=this.props[e];return i&&s[i.start]===n?s.slice(i.start+(r?1:0),i.end):null}get anchor(){for(let e=0;e<this.props.length;++e){let n=this.getPropValue(e,re.ANCHOR,!0);if(n!=null)return n}return null}get comment(){let e=[];for(let n=0;n<this.props.length;++n){let r=this.getPropValue(n,re.COMMENT,!0);r!=null&&e.push(r)}return e.length>0?e.join(`
`):null}commentHasRequiredWhitespace(e){let{src:n}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return e!==r||t.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]===re.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]!==re.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[lt.FLOW_MAP,lt.FLOW_SEQ,lt.QUOTE_DOUBLE,lt.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let e=Tn(this.range.start,this.context.root);if(!e)return;let n=Tn(this.range.end,this.context.root);return{start:e,end:n}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange;return this.context.src.slice(e,n)}get tag(){for(let e=0;e<this.props.length;++e){let n=this.getPropValue(e,re.TAG,!1);if(n!=null){if(n[1]==="<")return{verbatim:n.slice(2,-1)};{let[r,s,i]=n.match(/^(.*!)([^!]*)$/);return{handle:s,suffix:i}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:e,end:n}=this.valueRange,{src:r}=this.context;for(let s=e;s<n;++s)if(r[s]===`
`)return!0;return!1}parseComment(e){let{src:n}=this.context;if(n[e]===re.COMMENT){let r=t.endOfLine(n,e+1),s=new Be(e,r);return this.props.push(s),r}return e}setOrigRanges(e,n){return this.range&&(n=this.range.setOrigRange(e,n)),this.valueRange&&this.valueRange.setOrigRange(e,n),this.props.forEach(r=>r.setOrigRange(e,n)),n}toString(){let{context:{src:e},range:n,value:r}=this;if(r!=null)return r;let s=e.slice(n.start,n.end);return t.addStringTerminator(e,n.end,s)}},ye=class extends Error{constructor(e,n,r){if(!r||!(n instanceof se))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=r,this.source=n}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Be(this.offset,this.offset+1);let n=e&&Tn(this.offset,e);if(n){let r={line:n.line,col:n.col+1};this.linePos={start:n,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:n,col:r}=this.linePos.start;this.message+=` at line ${n}, column ${r}`;let s=e&&Mo(this.linePos,e);s&&(this.message+=`:
${s}
`)}delete this.source}},Cn=class extends ye{constructor(e,n){super("YAMLReferenceError",e,n)}},ft=class extends ye{constructor(e,n){super("YAMLSemanticError",e,n)}},Mn=class extends ye{constructor(e,n){super("YAMLSyntaxError",e,n)}},kn=class extends ye{constructor(e,n){super("YAMLWarning",e,n)}};function ko(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vn=class t extends se{static endOfLine(e,n,r){let s=e[n],i=n;for(;s&&s!==`
`&&!(r&&(s==="["||s==="]"||s==="{"||s==="}"||s===","));){let o=e[i+1];if(s===":"&&(!o||o===`
`||o===" "||o===" "||r&&o===",")||(s===" "||s===" ")&&o==="#")break;i+=1,s=o}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{src:r}=this.context,s=r[n-1];for(;e<n&&(s===`
`||s===" "||s===" ");)s=r[--n-1];let i="";for(let a=e;a<n;++a){let c=r[a];if(c===`
`){let{fold:l,offset:f}=se.foldNewline(r,a,-1);i+=l,a=f}else if(c===" "||c===" "){let l=a,f=r[a+1];for(;a<n&&(f===" "||f===" ");)a+=1,f=r[a+1];f!==`
`&&(i+=a>l?r.slice(l,a+1):c)}else i+=c}let o=r[e];switch(o){case" ":{let a="Plain value cannot start with a tab character";return{errors:[new ft(this,a)],str:i}}case"@":case"`":{let a=`Plain value cannot start with reserved character ${o}`;return{errors:[new ft(this,a)],str:i}}default:return i}}parseBlockValue(e){let{indent:n,inFlow:r,src:s}=this.context,i=e,o=e;for(let a=s[i];a===`
`&&!se.atDocumentBoundary(s,i+1);a=s[i]){let c=se.endOfBlockIndent(s,n,i+1);if(c===null||s[c]==="#")break;s[c]===`
`?i=c:(o=t.endOfLine(s,c,r),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,n){this.context=e;let{inFlow:r,src:s}=e,i=n,o=s[i];return o&&o!=="#"&&o!==`
`&&(i=t.endOfLine(s,n,r)),this.valueRange=new Be(n,i),i=se.endOfWhiteSpace(s,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};U.Char=re;U.Node=se;U.PlainValue=vn;U.Range=Be;U.Type=lt;U.YAMLError=ye;U.YAMLReferenceError=Cn;U.YAMLSemanticError=ft;U.YAMLSyntaxError=Mn;U.YAMLWarning=kn;U._defineProperty=ko;U.defaultTagPrefix=Ao;U.defaultTags=To});var Rs=te(xs=>{"use strict";var u=le(),Se=class extends u.Node{constructor(){super(u.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new u.Range(n,n+1),n+1}},ut=class extends u.Node{constructor(e,n){super(e,n),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{atLineStart:i,lineStart:o}=e;!i&&this.type===u.Type.SEQ_ITEM&&(this.error=new u.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=i?n-o:e.indent,c=u.Node.endOfWhiteSpace(s,n+1),l=s[c],f=l==="#",m=[],d=null;for(;l===`
`||l==="#";){if(l==="#"){let h=u.Node.endOfLine(s,c+1);m.push(new u.Range(c,h)),c=h}else{i=!0,o=c+1;let h=u.Node.endOfWhiteSpace(s,o);s[h]===`
`&&m.length===0&&(d=new Se,o=d.parse({src:s},o)),c=u.Node.endOfIndent(s,o)}l=s[c]}if(u.Node.nextNodeIsIndented(l,c-(o+a),this.type!==u.Type.SEQ_ITEM)?this.node=r({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},c):l&&o>n+1&&(c=o-1),this.node){if(d){let h=e.parent.items||e.parent.contents;h&&h.push(d)}m.length&&Array.prototype.push.apply(this.props,m),c=this.node.range.end}else if(f){let h=m[0];this.props.push(h),c=h.end}else c=u.Node.endOfLine(s,n+1);let y=this.node?this.node.valueRange.end:c;return this.valueRange=new u.Range(n,y),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.node?this.node.setOrigRanges(e,n):n}toString(){let{context:{src:e},node:n,range:r,value:s}=this;if(s!=null)return s;let i=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return u.Node.addStringTerminator(e,r.end,i)}},Ee=class extends u.Node{constructor(){super(u.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new u.Range(n,r),r}};function In(t){let e=t;for(;e instanceof ut;)e=e.node;if(!(e instanceof Bt))return null;let n=e.items.length,r=-1;for(let o=n-1;o>=0;--o){let a=e.items[o];if(a.type===u.Type.COMMENT){let{indent:c,lineStart:l}=a.context;if(c>0&&a.range.start>=l+c)break;r=o}else if(a.type===u.Type.BLANK_LINE)r=o;else break}if(r===-1)return null;let s=e.items.splice(r,n-r),i=s[0].range.start;for(;e.range.end=i,e.valueRange&&e.valueRange.end>i&&(e.valueRange.end=i),e!==t;)e=e.context.parent;return s}var Bt=class t extends u.Node{static nextContentHasIndent(e,n,r){let s=u.Node.endOfLine(e,n)+1;n=u.Node.endOfWhiteSpace(e,s);let i=e[n];return i?n>=s+r?!0:i!=="#"&&i!==`
`?!1:t.nextContentHasIndent(e,n,r):!1}constructor(e){super(e.type===u.Type.SEQ_ITEM?u.Type.SEQ:u.Type.MAP);for(let r=e.props.length-1;r>=0;--r)if(e.props[r].start<e.context.lineStart){this.props=e.props.slice(0,r+1),e.props=e.props.slice(r+1);let s=e.props[0]||e.valueRange;e.range.start=s.start;break}this.items=[e];let n=In(e);n&&Array.prototype.push.apply(this.items,n)}get includesTrailingLines(){return this.items.length>0}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,i=u.Node.startOfLine(s,n),o=this.items[0];o.context.parent=this,this.valueRange=u.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,c=n;c=u.Node.normalizeOffset(s,c);let l=s[c],f=u.Node.endOfWhiteSpace(s,i)===c,m=!1;for(;l;){for(;l===`
`||l==="#";){if(f&&l===`
`&&!m){let h=new Se;if(c=h.parse({src:s},c),this.valueRange.end=c,c>=s.length){l=null;break}this.items.push(h),c-=1}else if(l==="#"){if(c<i+a&&!t.nextContentHasIndent(s,c,a))return c;let h=new Ee;if(c=h.parse({indent:a,lineStart:i,src:s},c),this.items.push(h),this.valueRange.end=c,c>=s.length){l=null;break}}if(i=c+1,c=u.Node.endOfIndent(s,i),u.Node.atBlank(s,c)){let h=u.Node.endOfWhiteSpace(s,c),g=s[h];(!g||g===`
`||g==="#")&&(c=h)}l=s[c],f=!0}if(!l)break;if(c!==i+a&&(f||l!==":")){if(c<i+a){i>n&&(c=i);break}else if(!this.error){let h="All collection items must start at the same column";this.error=new u.YAMLSyntaxError(this,h)}}if(o.type===u.Type.SEQ_ITEM){if(l!=="-"){i>n&&(c=i);break}}else if(l==="-"&&!this.error){let h=s[c+1];if(!h||h===`
`||h===" "||h===" "){let g="A collection cannot be both a mapping and a sequence";this.error=new u.YAMLSyntaxError(this,g)}}let d=r({atLineStart:f,inCollection:!0,indent:a,lineStart:i,parent:this},c);if(!d)return c;if(this.items.push(d),this.valueRange.end=d.valueRange.end,c=u.Node.normalizeOffset(s,d.range.end),l=s[c],f=!1,m=d.includesTrailingLines,l){let h=c-1,g=s[h];for(;g===" "||g===" ";)g=s[--h];g===`
`&&(i=h+1,f=!0)}let y=In(d);y&&Array.prototype.push.apply(this.items,y)}return c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach(r=>{n=r.setOrigRanges(e,n)}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=e.slice(r.start,n[0].range.start)+String(n[0]);for(let o=1;o<n.length;++o){let a=n[o],{atLineStart:c,indent:l}=a.context;if(c)for(let f=0;f<l;++f)i+=" ";i+=String(a)}return u.Node.addStringTerminator(e,r.end,i)}},Pn=class extends u.Node{constructor(){super(u.Type.DIRECTIVE),this.name=null}get parameters(){let e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){let{src:n}=this.context,r=e,s=n[r];for(;s&&s!==`
`&&s!==" "&&s!==" ";)s=n[r+=1];return this.name=n.slice(e,r),r}parseParameters(e){let{src:n}=this.context,r=e,s=n[r];for(;s&&s!==`
`&&s!=="#";)s=n[r+=1];return this.valueRange=new u.Range(e,r),r}parse(e,n){this.context=e;let r=this.parseName(n+1);return r=this.parseParameters(r),r=this.parseComment(r),this.range=new u.Range(n,r),r}},_n=class t extends u.Node{static startCommentOrEndBlankLine(e,n){let r=u.Node.endOfWhiteSpace(e,n),s=e[r];return s==="#"||s===`
`?r:n}constructor(){super(u.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(e){let{src:n}=this.context;this.directives=[];let r=!0,s=!1,i=e;for(;!u.Node.atDocumentBoundary(n,i,u.Char.DIRECTIVES_END);)switch(i=t.startCommentOrEndBlankLine(n,i),n[i]){case`
`:if(r){let o=new Se;i=o.parse({src:n},i),i<n.length&&this.directives.push(o)}else i+=1,r=!0;break;case"#":{let o=new Ee;i=o.parse({src:n},i),this.directives.push(o),r=!1}break;case"%":{let o=new Pn;i=o.parse({parent:this,src:n},i),this.directives.push(o),s=!0,r=!1}break;default:return s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new u.Range(i,i+3),i+3):(s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){let{parseNode:n,src:r}=this.context;this.contents||(this.contents=[]);let s=e;for(;r[s-1]==="-";)s-=1;let i=u.Node.endOfWhiteSpace(r,e),o=s===e;for(this.valueRange=new u.Range(i);!u.Node.atDocumentBoundary(r,i,u.Char.DOCUMENT_END);){switch(r[i]){case`
`:if(o){let a=new Se;i=a.parse({src:r},i),i<r.length&&this.contents.push(a)}else i+=1,o=!0;s=i;break;case"#":{let a=new Ee;i=a.parse({src:r},i),this.contents.push(a),o=!1}break;default:{let a=u.Node.endOfIndent(r,i),l=n({atLineStart:o,indent:-1,inFlow:!1,inCollection:!1,lineStart:s,parent:this},a);if(!l)return this.valueRange.end=a;this.contents.push(l),i=l.range.end,o=!1;let f=In(l);f&&Array.prototype.push.apply(this.contents,f)}}i=t.startCommentOrEndBlankLine(r,i)}if(this.valueRange.end=i,r[i]&&(this.documentEndMarker=new u.Range(i,i+3),i+=3,r[i])){if(i=u.Node.endOfWhiteSpace(r,i),r[i]==="#"){let a=new Ee;i=a.parse({src:r},i),this.contents.push(a)}switch(r[i]){case`
`:i+=1;break;case void 0:break;default:this.error=new u.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return i}parse(e,n){e.root=this,this.context=e;let{src:r}=e,s=r.charCodeAt(n)===65279?n+1:n;return s=this.parseDirectives(s),s=this.parseContents(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.directives.forEach(r=>{n=r.setOrigRanges(e,n)}),this.directivesEndMarker&&(n=this.directivesEndMarker.setOrigRange(e,n)),this.contents.forEach(r=>{n=r.setOrigRanges(e,n)}),this.documentEndMarker&&(n=this.documentEndMarker.setOrigRange(e,n)),n}toString(){let{contents:e,directives:n,value:r}=this;if(r!=null)return r;let s=n.join("");return e.length>0&&((n.length>0||e[0].type===u.Type.COMMENT)&&(s+=`---
`),s+=e.join("")),s[s.length-1]!==`
`&&(s+=`
`),s}},xn=class extends u.Node{parse(e,n){this.context=e;let{src:r}=e,s=u.Node.endOfIdentifier(r,n+1);return this.valueRange=new u.Range(n+1,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},fe={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},Rn=class extends u.Node{constructor(e,n){super(e,n),this.blockIndent=null,this.chomping=fe.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===fe.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=s[n-1];for(;o===`
`||o===" "||o===" ";){if(n-=1,n<=e){if(this.chomping===fe.KEEP)break;return""}o===`
`&&(i=n),o=s[n-1]}let a=n+1;i&&(this.chomping===fe.KEEP?(a=i,n=this.valueRange.end):n=i);let c=r+this.blockIndent,l=this.type===u.Type.BLOCK_FOLDED,f=!0,m="",d="",y=!1;for(let h=e;h<n;++h){for(let w=0;w<c&&s[h]===" ";++w)h+=1;let g=s[h];if(g===`
`)d===`
`?m+=`
`:d=`
`;else{let w=u.Node.endOfLine(s,h),C=s.slice(h,w);h=w,l&&(g===" "||g===" ")&&h<a?(d===" "?d=`
`:!y&&!f&&d===`
`&&(d=`
`),m+=d+C,d=w<n&&s[w]||"",y=!0):(m+=d+C,d=l&&h<a?" ":`
`,y=!1),f&&C!==""&&(f=!1)}}return this.chomping===fe.STRIP?m:m+`
`}parseBlockHeader(e){let{src:n}=this.context,r=e+1,s="";for(;;){let i=n[r];switch(i){case"-":this.chomping=fe.STRIP;break;case"+":this.chomping=fe.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":s+=i;break;default:return this.blockIndent=Number(s)||null,this.header=new u.Range(e,r),r}r+=1}}parseBlockValue(e){let{indent:n,src:r}=this.context,s=!!this.blockIndent,i=e,o=e,a=1;for(let c=r[i];c===`
`&&(i+=1,!u.Node.atDocumentBoundary(r,i));c=r[i]){let l=u.Node.endOfBlockIndent(r,n,i);if(l===null)break;let f=r[l],m=l-(i+n);if(this.blockIndent){if(f&&f!==`
`&&m<this.blockIndent){if(r[l]==="#")break;if(!this.error){let y=`Block scalars must not be less indented than their ${s?"explicit indentation indicator":"first line"}`;this.error=new u.YAMLSemanticError(this,y)}}}else if(r[l]!==`
`){if(m<a){let d="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new u.YAMLSemanticError(this,d)}this.blockIndent=m}else m>a&&(a=m);r[l]===`
`?i=l:i=o=u.Node.endOfLine(r,l)}return this.chomping!==fe.KEEP&&(i=r[o]?o+1:o),this.valueRange=new u.Range(e+1,i),i}parse(e,n){this.context=e;let{src:r}=e,s=this.parseBlockHeader(n);return s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.header?this.header.setOrigRange(e,n):n}},Dn=class extends u.Node{constructor(e,n){super(e,n),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===u.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{indent:i,lineStart:o}=e,a=s[n];this.items=[{char:a,offset:n}];let c=u.Node.endOfWhiteSpace(s,n+1);for(a=s[c];a&&a!=="]"&&a!=="}";){switch(a){case`
`:{o=c+1;let l=u.Node.endOfWhiteSpace(s,o);if(s[l]===`
`){let f=new Se;o=f.parse({src:s},o),this.items.push(f)}if(c=u.Node.endOfIndent(s,o),c<=o+i&&(a=s[c],c<o+i||a!=="]"&&a!=="}")){let f="Insufficient indentation in flow collection";this.error=new u.YAMLSemanticError(this,f)}}break;case",":this.items.push({char:a,offset:c}),c+=1;break;case"#":{let l=new Ee;c=l.parse({src:s},c),this.items.push(l)}break;case"?":case":":{let l=s[c+1];if(l===`
`||l===" "||l===" "||l===","||a===":"&&this.prevNodeIsJsonLike()){this.items.push({char:a,offset:c}),c+=1;break}}default:{let l=r({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:o,parent:this},c);if(!l)return this.valueRange=new u.Range(n,c),c;this.items.push(l),c=u.Node.normalizeOffset(s,l.range.end)}}c=u.Node.endOfWhiteSpace(s,c),a=s[c]}return this.valueRange=new u.Range(n,c+1),a&&(this.items.push({char:a,offset:c}),c=u.Node.endOfWhiteSpace(s,c+1),c=this.parseComment(c)),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach(r=>{if(r instanceof u.Node)n=r.setOrigRanges(e,n);else if(e.length===0)r.origOffset=r.offset;else{let s=n;for(;s<e.length&&!(e[s]>r.offset);)++s;r.origOffset=r.offset+s,n=s}}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=n.filter(c=>c instanceof u.Node),o="",a=r.start;return i.forEach(c=>{let l=e.slice(a,c.range.start);a=c.range.end,o+=l+String(c),o[o.length-1]===`
`&&e[a-1]!==`
`&&e[a]===`
`&&(a+=1)}),o+=e.slice(a,r.end),u.Node.addStringTerminator(e,r.end,o)}},Yn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r&&r!=='"';)n+=r==="\\"?2:1,r=e[n];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=='"'&&e.push(new u.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=n+1;a<r-1;++a){let c=i[a];if(c===`
`){u.Node.atDocumentBoundary(i,a+1)&&e.push(new u.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:l,offset:f,error:m}=u.Node.foldNewline(i,a,s);o+=l,a=f,m&&e.push(new u.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(c==="\\")switch(a+=1,i[a]){case"0":o+="\0";break;case"a":o+="\x07";break;case"b":o+="\b";break;case"e":o+="\x1B";break;case"f":o+="\f";break;case"n":o+=`
`;break;case"r":o+="\r";break;case"t":o+=" ";break;case"v":o+="\v";break;case"N":o+="\x85";break;case"_":o+="\xA0";break;case"L":o+="\u2028";break;case"P":o+="\u2029";break;case" ":o+=" ";break;case'"':o+='"';break;case"/":o+="/";break;case"\\":o+="\\";break;case" ":o+=" ";break;case"x":o+=this.parseCharCode(a+1,2,e),a+=2;break;case"u":o+=this.parseCharCode(a+1,4,e),a+=4;break;case"U":o+=this.parseCharCode(a+1,8,e),a+=8;break;case`
`:for(;i[a+1]===" "||i[a+1]===" ";)a+=1;break;default:e.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(a-1,2)}`)),o+="\\"+i[a]}else if(c===" "||c===" "){let l=a,f=i[a+1];for(;f===" "||f===" ";)a+=1,f=i[a+1];f!==`
`&&(o+=a>l?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:s}=this.context,i=s.substr(e,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(a)?(r.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,n+2)}`)),s.substr(e-2,n+2)):String.fromCodePoint(a)}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},$n=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r;)if(r==="'"){if(e[n+1]!=="'")break;r=e[n+=2]}else r=e[n+=1];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;a<r-1;++a){let c=i[a];if(c===`
`){u.Node.atDocumentBoundary(i,a+1)&&e.push(new u.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:l,offset:f,error:m}=u.Node.foldNewline(i,a,s);o+=l,a=f,m&&e.push(new u.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(c==="'")o+=c,a+=1,i[a]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(c===" "||c===" "){let l=a,f=i[a+1];for(;f===" "||f===" ";)a+=1,f=i[a+1];f!==`
`&&(o+=a>l?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function vo(t,e){switch(t){case u.Type.ALIAS:return new xn(t,e);case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:return new Rn(t,e);case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:return new Dn(t,e);case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:return new ut(t,e);case u.Type.COMMENT:case u.Type.PLAIN:return new u.PlainValue(t,e);case u.Type.QUOTE_DOUBLE:return new Yn(t,e);case u.Type.QUOTE_SINGLE:return new $n(t,e);default:return null}}var Bn=class t{static parseType(e,n,r){switch(e[n]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}constructor(e={},{atLineStart:n,inCollection:r,inFlow:s,indent:i,lineStart:o,parent:a}={}){u._defineProperty(this,"parseNode",(c,l)=>{if(u.Node.atDocumentBoundary(this.src,l))return null;let f=new t(this,c),{props:m,type:d,valueStart:y}=f.parseProps(l),h=vo(d,m),g=h.parse(f,y);if(h.range=new u.Range(l,g),g<=l&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=g,h.error.source=h,h.range.end=l+1),f.nodeStartsCollection(h)){!h.error&&!f.atLineStart&&f.parent.type===u.Type.DOCUMENT&&(h.error=new u.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let w=new Bt(h);return g=w.parse(new t(f),g),w.range=new u.Range(l,g),w}return h}),this.atLineStart=n??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=i??e.indent,this.lineStart=o??e.lineStart,this.parent=a??(e.parent||{}),this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:r,src:s}=this;if(n||r)return!1;if(e instanceof ut)return!0;let i=e.range.end;return s[i]===`
`||s[i-1]===`
`?!1:(i=u.Node.endOfWhiteSpace(s,i),s[i]===":")}parseProps(e){let{inFlow:n,parent:r,src:s}=this,i=[],o=!1;e=this.atLineStart?u.Node.endOfIndent(s,e):u.Node.endOfWhiteSpace(s,e);let a=s[e];for(;a===u.Char.ANCHOR||a===u.Char.COMMENT||a===u.Char.TAG||a===`
`;){if(a===`
`){let l=e,f;do f=l+1,l=u.Node.endOfIndent(s,f);while(s[l]===`
`);let m=l-(f+this.indent),d=r.type===u.Type.SEQ_ITEM&&r.context.atLineStart;if(s[l]!=="#"&&!u.Node.nextNodeIsIndented(s[l],m,!d))break;this.atLineStart=!0,this.lineStart=f,o=!1,e=l}else if(a===u.Char.COMMENT){let l=u.Node.endOfLine(s,e+1);i.push(new u.Range(e,l)),e=l}else{let l=u.Node.endOfIdentifier(s,e+1);a===u.Char.TAG&&s[l]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,l+13))&&(l=u.Node.endOfIdentifier(s,l+5)),i.push(new u.Range(e,l)),o=!0,e=u.Node.endOfWhiteSpace(s,l)}a=s[e]}o&&a===":"&&u.Node.atBlank(s,e+1,!0)&&(e-=1);let c=t.parseType(s,e,n);return{props:i,type:c,valueStart:e}}};function Io(t){let e=[];t.indexOf("\r")!==-1&&(t=t.replace(/\r\n?/g,(s,i)=>(s.length>1&&e.push(i),`
`)));let n=[],r=0;do{let s=new _n,i=new Bn({src:t});r=s.parse(i,r),n.push(s)}while(r<t.length);return n.setOrigRanges=()=>{if(e.length===0)return!1;for(let i=1;i<e.length;++i)e[i]-=i;let s=0;for(let i=0;i<n.length;++i)s=n[i].setOrigRanges(e,s);return e.splice(0,e.length),!0},n.toString=()=>n.join(`...
`),n}xs.parse=Io});var qe=te(k=>{"use strict";var p=le();function Po(t,e,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${e}#`)}
${e}${t}`:t}function Fe(t,e,n){return n?n.indexOf(`
`)===-1?`${t} #${n}`:`${t}
`+n.replace(/^/gm,`${e||""}#`):t}var W=class{};function ue(t,e,n){if(Array.isArray(t))return t.map((r,s)=>ue(r,String(s),n));if(t&&typeof t.toJSON=="function"){let r=n&&n.anchors&&n.anchors.get(t);r&&(n.onCreate=i=>{r.res=i,delete n.onCreate});let s=t.toJSON(e,n);return r&&n.onCreate&&n.onCreate(s),s}return(!n||!n.keep)&&typeof t=="bigint"?Number(t):t}var P=class extends W{constructor(e){super(),this.value=e}toJSON(e,n){return n&&n.keep?this.value:ue(this.value,e,n)}toString(){return String(this.value)}};function Ds(t,e,n){let r=n;for(let s=e.length-1;s>=0;--s){let i=e[s];if(Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o}else{let o={};Object.defineProperty(o,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=o}}return t.createNode(r,!1)}var Bs=t=>t==null||typeof t=="object"&&t[Symbol.iterator]().next().done,j=class t extends W{constructor(e){super(),p._defineProperty(this,"items",[]),this.schema=e}addIn(e,n){if(Bs(e))this.add(n);else{let[r,...s]=e,i=this.get(r,!0);if(i instanceof t)i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,Ds(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn([e,...n]){if(n.length===0)return this.delete(e);let r=this.get(e,!0);if(r instanceof t)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn([e,...n],r){let s=this.get(e,!0);return n.length===0?!r&&s instanceof P?s.value:s:s instanceof t?s.getIn(n,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return!1;let n=e.value;return n==null||n instanceof P&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn([e,...n]){if(n.length===0)return this.has(e);let r=this.get(e,!0);return r instanceof t?r.hasIn(n):!1}setIn([e,...n],r){if(n.length===0)this.set(e,r);else{let s=this.get(e,!0);if(s instanceof t)s.setIn(n,r);else if(s===void 0&&this.schema)this.set(e,Ds(this.schema,n,r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}}toJSON(){return null}toString(e,{blockItem:n,flowChars:r,isMap:s,itemIndent:i},o,a){let{indent:c,indentStep:l,stringify:f}=e,m=this.type===p.Type.FLOW_MAP||this.type===p.Type.FLOW_SEQ||e.inFlow;m&&(i+=l);let d=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:d,indent:i,inFlow:m,type:null});let y=!1,h=!1,g=this.items.reduce((C,L,M)=>{let A;L&&(!y&&L.spaceBefore&&C.push({type:"comment",str:""}),L.commentBefore&&L.commentBefore.match(/^.*$/gm).forEach(Ai=>{C.push({type:"comment",str:`#${Ai}`})}),L.comment&&(A=L.comment),m&&(!y&&L.spaceBefore||L.commentBefore||L.comment||L.key&&(L.key.commentBefore||L.key.comment)||L.value&&(L.value.commentBefore||L.value.comment))&&(h=!0)),y=!1;let _=f(L,e,()=>A=null,()=>y=!0);return m&&!h&&_.includes(`
`)&&(h=!0),m&&M<this.items.length-1&&(_+=","),_=Fe(_,i,A),y&&(A||m)&&(y=!1),C.push({type:"item",str:_}),C},[]),w;if(g.length===0)w=r.start+r.end;else if(m){let{start:C,end:L}=r,M=g.map(A=>A.str);if(h||M.reduce((A,_)=>A+_.length+2,2)>t.maxFlowStringSingleLineLength){w=C;for(let A of M)w+=A?`
${l}${c}${A}`:`
`;w+=`
${c}${L}`}else w=`${C} ${M.join(" ")} ${L}`}else{let C=g.map(n);w=C.shift();for(let L of C)w+=L?`
${c}${L}`:`
`}return this.comment?(w+=`
`+this.comment.replace(/^/gm,`${c}#`),o&&o()):y&&a&&a(),w}};p._defineProperty(j,"maxFlowStringSingleLineLength",60);function Ft(t){let e=t instanceof P?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),Number.isInteger(e)&&e>=0?e:null}var pe=class extends j{add(e){this.items.push(e)}delete(e){let n=Ft(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){let r=Ft(e);if(typeof r!="number")return;let s=this.items[r];return!n&&s instanceof P?s.value:s}has(e){let n=Ft(e);return typeof n=="number"&&n<this.items.length}set(e,n){let r=Ft(e);if(typeof r!="number")throw new Error(`Expected a valid index, not ${e}.`);this.items[r]=n}toJSON(e,n){let r=[];n&&n.onCreate&&n.onCreate(r);let s=0;for(let i of this.items)r.push(ue(i,String(s++),n));return r}toString(e,n,r){return e?super.toString(e,{blockItem:s=>s.type==="comment"?s.str:`- ${s.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}},_o=(t,e,n)=>e===null?"":typeof e!="object"?String(e):t instanceof W&&n&&n.doc?t.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(e),T=class t extends W{constructor(e,n=null){super(),this.key=e,this.value=n,this.type=t.Type.PAIR}get commentBefore(){return this.key instanceof W?this.key.commentBefore:void 0}set commentBefore(e){if(this.key==null&&(this.key=new P(null)),this.key instanceof W)this.key.commentBefore=e;else{let n="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(n)}}addToJSMap(e,n){let r=ue(this.key,"",e);if(n instanceof Map){let s=ue(this.value,r,e);n.set(r,s)}else if(n instanceof Set)n.add(r);else{let s=_o(this.key,r,e),i=ue(this.value,s,e);s in n?Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):n[s]=i}return n}toJSON(e,n){let r=n&&n.mapAsMap?new Map:{};return this.addToJSMap(n,r)}toString(e,n,r){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:i,simpleKeys:o}=e.doc.options,{key:a,value:c}=this,l=a instanceof W&&a.comment;if(o){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof j){let _="With simple keys, collection cannot be used as a key value";throw new Error(_)}}let f=!o&&(!a||l||(a instanceof W?a instanceof j||a.type===p.Type.BLOCK_FOLDED||a.type===p.Type.BLOCK_LITERAL:typeof a=="object")),{doc:m,indent:d,indentStep:y,stringify:h}=e;e=Object.assign({},e,{implicitKey:!f,indent:d+y});let g=!1,w=h(a,e,()=>l=null,()=>g=!0);if(w=Fe(w,e.indent,l),!f&&w.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!o)return this.comment?(w=Fe(w,e.indent,this.comment),n&&n()):g&&!l&&r&&r(),e.inFlow&&!f?w:`? ${w}`;w=f?`? ${w}
${d}:`:`${w}:`,this.comment&&(w=Fe(w,e.indent,this.comment),n&&n());let C="",L=null;if(c instanceof W){if(c.spaceBefore&&(C=`
`),c.commentBefore){let _=c.commentBefore.replace(/^/gm,`${e.indent}#`);C+=`
${_}`}L=c.comment}else c&&typeof c=="object"&&(c=m.schema.createNode(c,!0));e.implicitKey=!1,!f&&!this.comment&&c instanceof P&&(e.indentAtStart=w.length+1),g=!1,!i&&s>=2&&!e.inFlow&&!f&&c instanceof pe&&c.type!==p.Type.FLOW_SEQ&&!c.tag&&!m.anchors.getName(c)&&(e.indent=e.indent.substr(2));let M=h(c,e,()=>L=null,()=>g=!0),A=" ";return C||this.comment?A=`${C}
${e.indent}`:!f&&c instanceof j?(!(M[0]==="["||M[0]==="{")||M.includes(`
`))&&(A=`
${e.indent}`):M[0]===`
`&&(A=""),g&&!L&&r&&r(),Fe(w+A+M,e.indent,L)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var qt=(t,e)=>{if(t instanceof be){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof j){let n=0;for(let r of t.items){let s=qt(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=qt(t.key,e),r=qt(t.value,e);return Math.max(n,r)}return 1},be=class t extends W{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ue(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=qt(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(be,"default",!0);function pt(t,e){let n=e instanceof P?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var mt=class extends j{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=pt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=pt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=pt(this.items,e),s=r&&r.value;return!n&&s instanceof P?s.value:s}has(e){return!!pt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},Fs="<<",Vt=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof pe||(n=new pe,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new P(Fs),new pe);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof mt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},xo={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},Ro={trueStr:"true",falseStr:"false"},Do={asBigInt:!1},Yo={nullStr:"null"},Ne={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function qn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof P||(a=new P(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new P(t)}var qs="flow",Fn="block",Ut="quoted",Ys=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==`
`);n=t[e+1]}return e};function Wt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let d,y,h=!1,g=-1,w=-1,C=-1;n===Fn&&(g=Ys(t,g),g!==-1&&(m=g+c));for(let M;M=t[g+=1];){if(n===Ut&&M==="\\"){switch(w=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(M===`
`)n===Fn&&(g=Ys(t,g)),m=g+c,d=void 0;else{if(M===" "&&y&&y!==" "&&y!==`
`&&y!==" "){let A=t[g+1];A&&A!==" "&&A!==`
`&&A!==" "&&(d=g)}if(g>=m)if(d)l.push(d),m=d+c,d=void 0;else if(n===Ut){for(;y===" "||y===" ";)y=M,M=t[g+=1],h=!0;let A=g>C+1?g-2:w-1;if(f[A])return t;l.push(A),f[A]=!0,m=A+c,d=void 0}else h=!0}y=M}if(h&&a&&a(),l.length===0)return t;o&&o();let L=t.slice(0,l[0]);for(let M=0;M<l.length;++M){let A=l[M],_=l[M+1]||t.length;A===0?L=`
${e}${t.slice(0,_)}`:(n===Ut&&f[A]&&(L+=`${t[A]}\\`),L+=`
${e}${t.slice(A+1,_)}`)}return L}var Un=({indentAtStart:t})=>t?Object.assign({indentAtStart:t},Ne.fold):Ne.fold,jt=t=>/^(%|---|\.\.\.)/m.test(t);function $o(t,e,n){if(!e||e<0)return!1;let r=e-n,s=t.length;if(s<=r)return!1;for(let i=0,o=0;i<s;++i)if(t[i]===`
`){if(i-o>r)return!0;if(o=i+1,s-o<=r)return!1}return!0}function we(t,e){let{implicitKey:n}=e,{jsonEncoding:r,minMultiLineLength:s}=Ne.doubleQuoted,i=JSON.stringify(t);if(r)return i;let o=e.indent||(jt(t)?" ":""),a="",c=0;for(let l=0,f=i[l];f;f=i[++l])if(f===" "&&i[l+1]==="\\"&&i[l+2]==="n"&&(a+=i.slice(c,l)+"\\ ",l+=1,c=l,f="\\"),f==="\\")switch(i[l+1]){case"u":{a+=i.slice(c,l);let m=i.substr(l+2,4);switch(m){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:m.substr(0,2)==="00"?a+="\\x"+m.substr(2):a+=i.substr(l,6)}l+=5,c=l+1}break;case"n":if(n||i[l+2]==='"'||i.length<s)l+=1;else{for(a+=i.slice(c,l)+`
`;i[l+2]==="\\"&&i[l+3]==="n"&&i[l+4]!=='"';)a+=`
`,l+=2;a+=o,i[l+2]===" "&&(a+="\\"),l+=1,c=l+1}break;default:l+=1}return a=c?a+i.slice(c):i,n?a:Wt(a,o,Ut,Un(e))}function Us(t,e){if(e.implicitKey){if(/\n/.test(t))return we(t,e)}else if(/[ \t]\n|\n[ \t]/.test(t))return we(t,e);let n=e.indent||(jt(t)?" ":""),r="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
${n}`)+"'";return e.implicitKey?r:Wt(r,n,qs,Un(e))}function Kt({comment:t,type:e,value:n},r,s,i){if(/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return we(n,r);let o=r.indent||(r.forceBlockIndent||jt(n)?" ":""),a=o?"2":"1",c=e===p.Type.BLOCK_FOLDED?!1:e===p.Type.BLOCK_LITERAL?!0:!$o(n,Ne.fold.lineWidth,o.length),l=c?"|":">";if(!n)return l+`
`;let f="",m="";if(n=n.replace(/[\n\t ]*$/,y=>{let h=y.indexOf(`
`);return h===-1?l+="-":(n===y||h!==y.length-1)&&(l+="+",i&&i()),m=y.replace(/\n$/,""),""}).replace(/^[\n ]*/,y=>{y.indexOf(" ")!==-1&&(l+=a);let h=y.match(/ +$/);return h?(f=y.slice(0,-h[0].length),h[0]):(f=y,"")}),m&&(m=m.replace(/\n+(?!\n|$)/g,`$&${o}`)),f&&(f=f.replace(/\n+/g,`$&${o}`)),t&&(l+=" #"+t.replace(/ ?[\r\n]+/g," "),s&&s()),!n)return`${l}${a}
${o}${m}`;if(c)return n=n.replace(/\n+/g,`$&${o}`),`${l}
${o}${f}${n}${m}`;n=n.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);let d=Wt(`${f}${n}${m}`,o,Fn,Ne.fold);return`${l}
${o}${d}`}function Bo(t,e,n,r){let{comment:s,type:i,value:o}=t,{actualString:a,implicitKey:c,indent:l,inFlow:f}=e;if(c&&/[\n[\]{},]/.test(o)||f&&/[[\]{},]/.test(o))return we(o,e);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return c||f||o.indexOf(`
`)===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?Us(o,e):we(o,e):Kt(t,e,n,r);if(!c&&!f&&i!==p.Type.PLAIN&&o.indexOf(`
`)!==-1)return Kt(t,e,n,r);if(l===""&&jt(o))return e.forceBlockIndent=!0,Kt(t,e,n,r);let m=o.replace(/\n+/g,`$&
${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof qn(m,y,y.scalarFallback).value!="string")return we(o,e)}let d=c?m:Wt(m,l,qs,Un(e));return s&&!f&&(d.indexOf(`
`)!==-1||s.indexOf(`
`)!==-1)?(n&&n(),Po(d,l,s)):d}function Fo(t,e,n,r){let{defaultType:s}=Ne,{implicitKey:i,inFlow:o}=e,{type:a,value:c}=t;typeof c!="string"&&(c=String(c),t=Object.assign({},t,{value:c}));let l=m=>{switch(m){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return Kt(t,e,n,r);case p.Type.QUOTE_DOUBLE:return we(c,e);case p.Type.QUOTE_SINGLE:return Us(c,e);case p.Type.PLAIN:return Bo(t,e,n,r);default:return null}};(a!==p.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)||(i||o)&&(a===p.Type.BLOCK_FOLDED||a===p.Type.BLOCK_LITERAL))&&(a=p.Type.QUOTE_DOUBLE);let f=l(a);if(f===null&&(f=l(s),f===null))throw new Error(`Unsupported default string type ${s}`);return f}function qo({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let o=e-(s.length-i-1);for(;o-- >0;)s+="0"}return s}function Ks(t,e){let n,r;switch(e.type){case p.Type.FLOW_MAP:n="}",r="flow map";break;case p.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:t.push(new p.YAMLSemanticError(e,"Not a flow collection!?"));return}let s;for(let i=e.items.length-1;i>=0;--i){let o=e.items[i];if(!o||o.type!==p.Type.COMMENT){s=o;break}}if(s&&s.char!==n){let i=`Expected ${r} to end with ${n}`,o;typeof s.offset=="number"?(o=new p.YAMLSemanticError(e,i),o.offset=s.offset+1):(o=new p.YAMLSemanticError(s,i),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),t.push(o)}}function Vs(t,e){let n=e.context.src[e.range.start-1];if(n!==`
`&&n!==" "&&n!==" "){let r="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,r))}}function Ws(t,e){let n=String(e),r=n.substr(0,8)+"..."+n.substr(-8);return new p.YAMLSemanticError(t,`The "${r}" key is too long`)}function js(t,e){for(let{afterKey:n,before:r,comment:s}of e){let i=t.items[r];i?(n&&i.value&&(i=i.value),s===void 0?(n||!i.commentBefore)&&(i.spaceBefore=!0):i.commentBefore?i.commentBefore+=`
`+s:i.commentBefore=s):s!==void 0&&(t.comment?t.comment+=`
`+s:t.comment=s)}}function Kn(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function Uo(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function Ko(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return Uo(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function $s(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof j?a:new P(a)}let i=Kn(t,e);return typeof i=="string"&&s.length>0?qn(i,s,r.scalarFallback):null}function Vo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function Wo(t,e,n){try{let r=$s(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=Vo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=$s(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var jo=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Qo(t,e){let n={before:[],after:[]},r=!1,s=!1,i=jo(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function Jo(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new be(a);return n._cstAliases.push(c),c}let i=Ko(t,e);if(i)return Wo(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Kn(t,e);return qn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function me(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Qo(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=Jo(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(`
`);o&&(i.commentBefore=i.commentBefore?`${i.commentBefore}
${o}`:o);let a=n.after.join(`
`);a&&(i.comment=i.comment?`${i.comment}
${a}`:a)}return e.resolved=i}function Go(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?Zo(t,e):zo(t,e),s=new mt;s.items=r,js(s,n);let i=!1;for(let o=0;o<r.length;++o){let{key:a}=r[o];if(a instanceof j&&(i=!0),t.schema.merge&&a&&a.value===Fs){r[o]=new Vt(r[o]);let c=r[o].value.items,l=null;c.some(f=>{if(f instanceof be){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c<r.length;++c){let{key:l}=r[c];if(a===l||a&&l&&Object.prototype.hasOwnProperty.call(a,"value")&&a.value===l.value){let f=`Map keys must be unique; "${a}" is repeated`;t.errors.push(new p.YAMLSemanticError(e,f));break}}}if(i&&!t.options.mapAsMap){let o="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,o))}return e.resolved=s,s}var Ho=({context:{lineStart:t,node:e,src:n},props:r})=>{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i<s;++i)if(n[i]===`
`)return!1;return!0};function Xo(t,e){if(!Ho(t))return;let n=t.getPropValue(0,p.Char.COMMENT,!0),r=!1,s=e.value.commentBefore;if(s&&s.startsWith(n))e.value.commentBefore=s.substr(n.length+1),r=!0;else{let i=e.value.comment;!t.node&&i&&i.startsWith(n)&&(e.value.comment=i.substr(n.length+1),r=!0)}r&&(e.comment=n)}function zo(t,e){let n=[],r=[],s,i=null;for(let o=0;o<e.items.length;++o){let a=e.items[o];switch(a.type){case p.Type.BLANK_LINE:n.push({afterKey:!!s,before:r.length});break;case p.Type.COMMENT:n.push({afterKey:!!s,before:r.length,comment:a.comment});break;case p.Type.MAP_KEY:s!==void 0&&r.push(new T(s)),a.error&&t.errors.push(a.error),s=me(t,a.node),i=null;break;case p.Type.MAP_VALUE:{if(s===void 0&&(s=null),a.error&&t.errors.push(a.error),!a.context.atLineStart&&a.node&&a.node.type===p.Type.MAP&&!a.node.context.atLineStart){let f="Nested mappings are not allowed in compact mappings";t.errors.push(new p.YAMLSemanticError(a.node,f))}let c=a.node;if(!c&&a.props.length>0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,me(t,c));Xo(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(Ws(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=me(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function Zo(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;a<e.items.length;++a){let c=e.items[a];if(typeof c.char=="string"){let{char:l,offset:f}=c;if(l==="?"&&s===void 0&&!i){i=!0,o=":";continue}if(l===":"){if(s===void 0&&(s=null),o===":"){o=",";continue}}else if(i&&(s===void 0&&l!==","&&(s=null),i=!1),s!==void 0&&(r.push(new T(s)),s=void 0,l===",")){o=":";continue}if(l==="}"){if(a===e.items.length-1)continue}else if(l===o){o=":";continue}let m=`Flow map contains an unexpected ${l}`,d=new p.YAMLSyntaxError(e,m);d.offset=f,t.errors.push(d)}else c.type===p.Type.BLANK_LINE?n.push({afterKey:!!s,before:r.length}):c.type===p.Type.COMMENT?(Vs(t.errors,c),n.push({afterKey:!!s,before:r.length,comment:c.comment})):s===void 0?(o===","&&t.errors.push(new p.YAMLSemanticError(c,"Separator , missing in flow map")),s=me(t,c)):(o!==","&&t.errors.push(new p.YAMLSemanticError(c,"Indicator : missing in flow map entry")),r.push(new T(s,me(t,c))),s=void 0,i=!1)}return Ks(t.errors,e),s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function ea(t,e){if(e.type!==p.Type.SEQ&&e.type!==p.Type.FLOW_SEQ){let i=`A ${e.type} node cannot be resolved as a sequence`;return t.errors.push(new p.YAMLSyntaxError(e,i)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_SEQ?na(t,e):ta(t,e),s=new pe;if(s.items=r,js(s,n),!t.options.mapAsMap&&r.some(i=>i instanceof T&&i.key instanceof j)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function ta(t,e){let n=[],r=[];for(let s=0;s<e.items.length;++s){let i=e.items[s];switch(i.type){case p.Type.BLANK_LINE:n.push({before:r.length});break;case p.Type.COMMENT:n.push({comment:i.comment,before:r.length});break;case p.Type.SEQ_ITEM:if(i.error&&t.errors.push(i.error),r.push(me(t,i.node)),i.hasProps){let o="Sequence items cannot have tags or anchors before the - indicator";t.errors.push(new p.YAMLSemanticError(i,o))}break;default:i.error&&t.errors.push(i.error),t.errors.push(new p.YAMLSyntaxError(i,`Unexpected ${i.type} node in sequence`))}}return{comments:n,items:r}}function na(t,e){let n=[],r=[],s=!1,i,o=null,a="[",c=null;for(let l=0;l<e.items.length;++l){let f=e.items[l];if(typeof f.char=="string"){let{char:m,offset:d}=f;if(m!==":"&&(s||i!==void 0)&&(s&&i===void 0&&(i=a?r.pop():null),r.push(new T(i)),s=!1,i=void 0,o=null),m===a)a=null;else if(!a&&m==="?")s=!0;else if(a!=="["&&m===":"&&i===void 0){if(a===","){if(i=r.pop(),i instanceof T){let y="Chaining flow sequence pairs is invalid",h=new p.YAMLSemanticError(e,y);h.offset=d,t.errors.push(h)}if(!s&&typeof o=="number"){let y=f.range?f.range.start:f.offset;y>o+1024&&t.errors.push(Ws(e,i));let{src:h}=c.context;for(let g=o;g<y;++g)if(h[g]===`
`){let w="Implicit keys of flow sequence pairs need to be on a single line";t.errors.push(new p.YAMLSemanticError(c,w));break}}}else i=null;o=null,s=!1,a=null}else if(a==="["||m!=="]"||l<e.items.length-1){let y=`Flow sequence contains an unexpected ${m}`,h=new p.YAMLSyntaxError(e,y);h.offset=d,t.errors.push(h)}}else if(f.type===p.Type.BLANK_LINE)n.push({before:r.length});else if(f.type===p.Type.COMMENT)Vs(t.errors,f),n.push({comment:f.comment,before:r.length});else{if(a){let d=`Expected a ${a} in flow sequence`;t.errors.push(new p.YAMLSemanticError(f,d))}let m=me(t,f);i===void 0?(r.push(m),c=f):(r.push(new T(i,m)),i=void 0),o=f.range.start,a=","}}return Ks(t.errors,e),i!==void 0&&r.push(new T(i)),{comments:n,items:r}}k.Alias=be;k.Collection=j;k.Merge=Vt;k.Node=W;k.Pair=T;k.Scalar=P;k.YAMLMap=mt;k.YAMLSeq=pe;k.addComment=Fe;k.binaryOptions=xo;k.boolOptions=Ro;k.findPair=pt;k.intOptions=Do;k.isEmptyPath=Bs;k.nullOptions=Yo;k.resolveMap=Go;k.resolveNode=me;k.resolveSeq=ea;k.resolveString=Kn;k.strOptions=Ne;k.stringifyNumber=qo;k.stringifyString=Fo;k.toJSON=ue});var Qn=te(z=>{"use strict";var Q=le(),O=qe(),ra={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i<r.length;++i)s[i]=r.charCodeAt(i);return s}else{let r="This environment does not support reading binary tags; either Buffer or atob is required";return t.errors.push(new Q.YAMLReferenceError(e,r)),null}},options:O.binaryOptions,stringify:({comment:t,type:e,value:n},r,s,i)=>{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c<n.length;++c)a+=String.fromCharCode(n[c]);o=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=O.binaryOptions.defaultType),e===Q.Type.QUOTE_DOUBLE)n=o;else{let{lineWidth:a}=O.binaryOptions,c=Math.ceil(o.length/a),l=new Array(c);for(let f=0,m=0;f<c;++f,m+=a)l[f]=o.substr(m,a);n=l.join(e===Q.Type.BLOCK_LITERAL?`
`:" ")}return O.stringifyString({comment:t,type:e,value:n},r,s,i)}};function Js(t,e){let n=O.resolveSeq(t,e);for(let r=0;r<n.items.length;++r){let s=n.items[r];if(!(s instanceof O.Pair)){if(s instanceof O.YAMLMap){if(s.items.length>1){let o="Each pair must have its own sequence indicator";throw new Q.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore}
${i.commentBefore}`:s.commentBefore),s.comment&&(i.comment=i.comment?`${s.comment}
${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function Gs(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var sa={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Js,createNode:Gs},Ue=class t extends O.YAMLSeq{constructor(){super(),Q._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),Q._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),Q._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),Q._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),Q._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};Q._defineProperty(Ue,"tag","tag:yaml.org,2002:omap");function ia(t,e){let n=Js(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new Q.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Ue,n)}function oa(t,e,n){let r=Gs(t,e,n),s=new Ue;return s.items=r.items,s}var aa={identify:t=>t instanceof Map,nodeClass:Ue,default:!1,tag:"tag:yaml.org,2002:omap",resolve:ia,createNode:oa},Ke=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};Q._defineProperty(Ke,"tag","tag:yaml.org,2002:set");function ca(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new Q.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new Ke,n)}function la(t,e,n){let r=new Ke;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var fa={identify:t=>t instanceof Set,nodeClass:Ke,default:!1,tag:"tag:yaml.org,2002:set",resolve:ca,createNode:la},Vn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},Hs=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},ua={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Vn(e,n.replace(/_/g,"")),stringify:Hs},pa={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Vn(e,n.replace(/_/g,"")),stringify:Hs},ma={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Vn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Wn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function jn(t,e){Wn(!1)&&console.warn(e?`${e}: ${t}`:t)}function ha(t){if(Wn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");jn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var Qs={};function ga(t,e){if(!Qs[t]&&Wn(!0)){Qs[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",jn(n,"DeprecationWarning")}}z.binary=ra;z.floatTime=pa;z.intTime=ua;z.omap=aa;z.pairs=sa;z.set=fa;z.timestamp=ma;z.warn=jn;z.warnFileDeprecation=ha;z.warnOptionDep Line truncated
${e.indent}${c}`:c}var zn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},Zt=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>Zt(r,e))):t instanceof S.Pair?(Zt(t.key,e),Zt(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},Ia=t=>Object.keys(Zt(t,{}));function Pa(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(`
`),n.before=[]));if(t.contents=r||null,!r)t.comment=n.before.concat(n.after).join(`
`)||null;else{let i=n.before.join(`
`);if(i){let o=r instanceof S.Collection&&r.items[0]?r.items[0]:r;o.commentBefore=o.commentBefore?`${i}
${o.commentBefore}`:i}t.comment=n.after.join(`
`)||null}}function _a({tagPrefixes:t},e){let[n,r]=e.parameters;if(!n||!r){let s="Insufficient parameters given for %TAG directive";throw new Y.YAMLSemanticError(e,s)}if(t.some(s=>s.handle===n)){let s="The %TAG directive must only be given at most once per handle in the same document.";throw new Y.YAMLSemanticError(e,s)}return{handle:n,prefix:r}}function xa(t,e){let[n]=e.parameters;if(e.name==="YAML:1.0"&&(n="1.0"),!n){let r="Insufficient parameters given for %YAML directive";throw new Y.YAMLSemanticError(e,r)}if(!pi[n]){let s=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${n}`;t.warnings.push(new Y.YAMLWarning(e,s))}return n}function Ra(t,e,n){let r=[],s=!1;for(let i of e){let{comment:o,name:a}=i;switch(a){case"TAG":try{t.tagPrefixes.push(_a(t,i))}catch(c){t.errors.push(c)}s=!0;break;case"YAML":case"YAML:1.0":if(t.version){let c="The %YAML directive must only be given at most once per document.";t.errors.push(new Y.YAMLSemanticError(i,c))}try{t.version=xa(t,i)}catch(c){t.errors.push(c)}s=!0;break;default:if(a){let c=`YAML only supports %TAG and %YAML directives, and not %${a}`;t.warnings.push(new Y.YAMLWarning(i,c))}}o&&r.push(o)}if(n&&!s&&(t.version||n.version||t.options.version)==="1.1"){let i=({handle:o,prefix:a})=>({handle:o,prefix:a});t.tagPrefixes=n.tagPrefixes.map(i),t.version=n.version}t.commentBefore=r.join(`
`)||null}function Ve(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var en=class t{constructor(e){this.anchors=new zn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Ve(this.contents),this.contents.add(e)}addIn(e,n){Ve(this.contents),this.contents.addIn(e,n)}delete(e){return Ve(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Ve(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Ve(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Ve(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new fi.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),Ra(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],Pa(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return Ia(this.contents).filter(e=>e.indexOf(fi.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:zt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:zt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=zt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(zt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(`
`)+`
`}};Y._defineProperty(en,"defaults",pi);tn.Document=en;tn.defaultOptions=Ca;tn.scalarOptions=Ma});var di=te(gi=>{"use strict";var Zn=Rs(),Oe=mi(),Da=Xn(),Ya=le(),$a=Qn();qe();function Ba(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Oe.Document.defaults[Oe.defaultOptions.version],Oe.defaultOptions);return new Da.Schema(r).createNode(t,e,n)}var We=class extends Oe.Document{constructor(e){super(Object.assign({},Oe.defaultOptions,e))}};function Fa(t,e){let n=[],r;for(let s of Zn.parse(t)){let i=new We(e);i.parse(s,r),n.push(i),r=i}return n}function hi(t,e){let n=Zn.parse(t),r=new We(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Ya.YAMLSemanticError(n[1],s))}return r}function qa(t,e){let n=hi(t,e);if(n.warnings.forEach(r=>$a.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function Ua(t,e){let n=new We(e);return n.contents=t,String(n)}var Ka={createNode:Ba,defaultOptions:Oe.defaultOptions,Document:We,parse:qa,parseAllDocuments:Fa,parseCST:Zn.parse,parseDocument:hi,scalarOptions:Oe.scalarOptions,stringify:Ua};gi.YAML=Ka});var Ei=te((Um,yi)=>{yi.exports=di().YAML});var Si=te(J=>{"use strict";var je=qe(),Qe=le();J.findPair=je.findPair;J.parseMap=je.resolveMap;J.parseSeq=je.resolveSeq;J.stringifyNumber=je.stringifyNumber;J.stringifyString=je.stringifyString;J.toJSON=je.toJSON;J.Type=Qe.Type;J.YAMLError=Qe.YAMLError;J.YAMLReferenceError=Qe.YAMLReferenceError;J.YAMLSemanticError=Qe.YAMLSemanticError;J.YAMLSyntaxError=Qe.YAMLSyntaxError;J.YAMLWarning=Qe.YAMLWarning});var Xa={};nr(Xa,{languages:()=>_r,options:()=>xr,parsers:()=>tr,printers:()=>Ha});var Pi=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},Et=Pi;var Le="string",Je="array",Ge="cursor",He="indent",Ae="align",Xe="trim",Te="group",Ce="fill",he="if-break",ze="indent-if-break",Me="line-suffix",Ze="line-suffix-boundary",Z="line",et="label",ke="break-parent",St=new Set([Ge,He,Ae,Xe,Te,Ce,he,ze,Me,Ze,Z,et,ke]);var _i=(t,e,n)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},x=_i;function xi(t){if(typeof t=="string")return Le;if(Array.isArray(t))return Je;if(!t)return;let{type:e}=t;if(St.has(e))return e}var ve=xi;var Ri=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Di(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
Expected it to be 'string' or 'object'.`;if(ve(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=Ri([...St].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'.
Expected it to be ${r}.`}var nn=class extends Error{name="InvalidDocError";constructor(e){super(Di(e)),this.doc=e}},rn=nn;function $i(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(ve(i)){case Je:return e(i.map(r));case Ce:return e({...i,parts:i.parts.map(r)});case he:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Te:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Ae:case He:case ze:case et:case Me:return e({...i,contents:r(i.contents)});case Le:case Ge:case Xe:case Ze:case Z:case ke:return e(i);default:throw new rn(i)}}}function ir(t,e=tt){return $i(t,n=>typeof n=="string"?v(e,n.split(`
`)):n)}var sn=()=>{},ge=sn,on=sn,or=sn;function nt(t,e){return ge(e),{type:Ae,contents:e,n:t}}function Ie(t,e={}){return ge(t),on(e.expandedStates,!0),{type:Te,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function an(t){return nt(Number.NEGATIVE_INFINITY,t)}function ar(t){return nt({type:"root"},t)}function cr(t){return nt(-1,t)}function cn(t,e){return Ie(t[0],{...e,expandedStates:t})}function wt(t){return or(t),{type:Ce,parts:t}}function rt(t,e="",n={}){return ge(t),e!==""&&ge(e),{type:he,breakContents:t,flatContents:e,groupId:n.groupId}}function lr(t){return ge(t),{type:Me,contents:t}}var bt={type:ke};var Bi={type:Z,hard:!0},Fi={type:Z,hard:!0,literal:!0},ne={type:Z},Nt={type:Z,soft:!0},N=[Bi,bt],tt=[Fi,bt];function v(t,e){ge(t),on(e);let n=[];for(let r=0;r<e.length;r++)r!==0&&n.push(t),n.push(e[r]);return n}function Ot(t){return(e,n,r)=>{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&o<i;){let a=e.charAt(o);if(t instanceof RegExp){if(!t.test(a))return o}else if(!t.includes(a))return o;s?o--:o++}return o===-1||o===i?o:!1}}var kc=Ot(/\s/u),ln=Ot(" "),vc=Ot(",; "),Ic=Ot(/[^\n\r]/u);function qi(t,e,n){let r=!!(n!=null&&n.backwards);if(e===!1)return!1;let s=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&s===`
`)return e-2;if(s===`
`||s==="\r"||s==="\u2028"||s==="\u2029")return e-1}else{if(s==="\r"&&t.charAt(e+1)===`
`)return e+2;if(s===`
`||s==="\r"||s==="\u2028"||s==="\u2029")return e+1}return e}var fn=qi;function Ui(t,e){let n=e-1;n=ln(t,n,{backwards:!0}),n=fn(t,n,{backwards:!0}),n=ln(t,n,{backwards:!0});let r=fn(t,n,{backwards:!0});return n!==r}var fr=Ui;var un=class extends Error{name="UnexpectedNodeError";constructor(e,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},ur=un;function pr(t,e){let{node:n}=t;if(n.type==="root"&&e.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/u.test(e.filepath))return async r=>{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}pr.getVisitorKeys=()=>[];var mr=pr;var st=null;function it(t){if(st!==null&&typeof st.property){let e=st;return st=it.prototype=null,e}return st=it.prototype=t??Object.create(null),new it}var Ki=10;for(let t=0;t<=Ki;t++)it();function pn(t){return it(t)}function Vi(t,e="type"){pn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var hr=Vi;var Wi=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([t,e])=>[t,[...e,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),gr=Wi;var ji=hr(gr),dr=ji;function Pe(t){return t.position.start.offset}function yr(t){return t.position.end.offset}function Er(t){return/^\s*@(?:prettier|format)\s*$/u.test(t)}function Sr(t){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/u.test(t)}function wr(t){return`# @format
${t}`}function Qi(t){return Array.isArray(t)&&t.length>0}var _e=Qi;function H(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function mn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>mn(r,e,t))}:t,n)}function xe(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function Nr(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;s<r;s++){let i=e[s];if(i===`
`&&n++,n===1&&/\S/u.test(i))return!1;if(n===2)return!0}return!1}function Lt(t){let{node:e}=t;switch(e.type){case"tag":case"anchor":case"comment":return!1}let n=t.stack.length;for(let r=1;r<n;r++){let s=t.stack[r],i=t.stack[r-1];if(Array.isArray(i)&&typeof s=="number"&&s!==i.length-1)return!1}return!0}function At(t){return _e(t.children)?At(x(!1,t.children,-1)):t}function br(t){return t.value.trim()==="prettier-ignore"}function Or(t){let{node:e}=t;if(e.type==="documentBody"){let n=t.parent.head;return R(n)&&br(x(!1,n.endComments,-1))}return ee(e)&&br(x(!1,e.leadingComments,-1))}function Re(t){return!_e(t.children)&&!Ji(t)}function Ji(t){return ee(t)||ie(t)||hn(t)||K(t)||R(t)}function ee(t){return _e(t==null?void 0:t.leadingComments)}function ie(t){return _e(t==null?void 0:t.middleComments)}function hn(t){return t==null?void 0:t.indicatorComment}function K(t){return t==null?void 0:t.trailingComment}function R(t){return _e(t==null?void 0:t.endComments)}function Lr(t){let e=[],n;for(let r of t.split(/( +)/u))r!==" "?n===" "?e.push(r):e.push((e.pop()||"")+r):n===void 0&&e.unshift(""),n=r;return n===" "&&e.push((e.pop()||"")+" "),e[0]===""&&(e.shift(),e.unshift(" "+(e.shift()||""))),e}function Ar(t,e,n){let r=e.split(`
`).map((s,i,o)=>i===0&&i===o.length-1?s:i!==0&&i!==o.length-1?s.trim():i===0?s.trimEnd():s.trimStart());return n.proseWrap==="preserve"?r.map(s=>s.length===0?[]:[s]):r.map(s=>s.length===0?[]:Lr(s)).reduce((s,i,o)=>o!==0&&r[o-1].length>0&&i.length>0&&!(t==="quoteDouble"&&x(!1,x(!1,s,-1),-1).endsWith("\\"))?[...s.slice(0,-1),[...x(!1,s,-1),...i]]:[...s,i],[]).map(s=>n.proseWrap==="never"?[s.join(" ")]:s)}function Tr(t,{parentIndent:e,isLastDescendant:n,options:r}){let s=t.position.start.line===t.position.end.line?"":r.originalText.slice(t.position.start.offset,t.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],i;if(t.indent===null){let c=s.match(/^(?<leadingSpace> *)[^\n\r ]/mu);i=c?c.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=t.indent-1+e;let o=s.split(`
`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:Lr(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/u.test(l[0])&&!/^\s|\s$/u.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/u.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function ot(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var gn=new WeakMap;function Tt(t,e){let{node:n,root:r}=t,s;return gn.has(r)?s=gn.get(r):(s=new Set,gn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),Nr(n,e)&&!dn(t.parent))?Nt:""}function dn(t){return R(t)&&!H(t,["documentHead","documentBody","flowMapping","flowSequence"])}function I(t,e){return nt(" ".repeat(t),e)}function Gi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=Lt(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),hn(r)&&o.push(" ",e("indicatorComment"));let a=Tr(r,{parentIndent:s,isLastDescendant:i,options:n}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(wt(v(ne,f))),l!==a.length-1?c.push(f.length===0?N:ar(tt)):r.chomping==="keep"&&i&&c.push(an(f.length===0?N:tt));return r.indent===null?o.push(cr(I(n.tabWidth,c))):o.push(an(I(r.indent-1+s,c))),o}var Cr=Gi;function Ct(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=Nt;s&&r.children.length>0&&n.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&Re(c.key)&&Re(c.value);return[i,I(n.tabWidth,[a,Hi(t,e,n),n.trailingComma==="none"?"":rt(","),R(r)?[N,v(N,t.map(e,"endComments"))]:""]),l?"":a,o]}function Hi(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[e(),r?"":[",",ne,s.position.start.line!==i.position.start.line?Tt(t,n.originalText):""]],"children")}function Xi(t,e,n){var C;let{node:r,parent:s}=t,{key:i,value:o}=r,a=Re(i),c=Re(o);if(a&&c)return": ";let l=e("key"),f=zi(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&yn(i.content,n)&&!K(i.content)&&((C=s.tag)==null?void 0:C.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",I(2,l)];let m=e("value");if(a)return[": ",I(2,m)];if(ee(o)||!ot(i.content))return["? ",I(2,l),N,...t.map(()=>[e(),N],"value","leadingComments"),": ",I(2,m)];if(Zi(i.content)&&!ee(i.content)&&!ie(i.content)&&!K(i.content)&&!R(i)&&!ee(o.content)&&!ie(o.content)&&!R(o)&&yn(o.content,n))return[l,f,": ",m];let d=Symbol("mappingKey"),y=Ie([rt("? "),Ie(I(2,l),{id:d})]),h=[N,": ",I(2,m)],g=[f,":"];ee(o.content)||R(o)&&o.content&&!H(o.content,["mapping","sequence"])||s.type==="mapping"&&K(i.content)&&ot(o.content)||H(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content?g.push(ne):K(o)&&g.push(" "),g.push(m);let w=I(n.tabWidth,g);return yn(i.content,n)&&!ee(i.content)&&!ie(i.content)&&!R(i)?cn([[l,w]]):cn([[y,rt(h,w,{groupId:d})]])}function yn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/mu.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(`
`);case"always":return!/[\n ]/u.test(t.value);default:return!1}}function zi(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function Zi(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Mr=Xi;function eo(t){return mn(t,to)}function to(t){switch(t.type){case"document":xe(t,"head",()=>t.children[0]),xe(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":xe(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":xe(t,"key",()=>t.children[0]),xe(t,"value",()=>t.children[1]);break}return t}var kr=eo;function no(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&ee(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return H(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Lt(t)&&(a=Tt(t,e.originalText)),(i||o)&&(H(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),Or(t)?s.push(ir(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(Ie(ro(t,e,n))),K(r)&&!H(r,["document","documentHead"])&&s.push(lr([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&ot(r)?"":bt,n("trailingComment")])),dn(r)&&s.push(I(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[fr(e.originalText,Pe(c))?N:"",n()],"endComments"))])),s.push(a),s}function ro(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),vr(o,a)?(s.push(N,"..."),K(o)&&s.push(" ",n("trailingComment"))):a&&!K(a.head)&&s.push(N,"---")},"children");let i=At(r);return(!H(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return io(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),K(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),so(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=At(r);H(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return at(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/u.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,at(r.type,o,e),c]}if(o.includes(i))return[s,at(r.type,r.type==="quoteDouble"?Et(!1,Et(!1,o,String.raw`\"`,i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,at(r.type,r.type==="quoteSingle"?Et(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,at(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Cr(t,n,e);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",I(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Mr(t,n,e);case"flowMapping":return Ct(t,n,e);case"flowSequence":return Ct(t,n,e);case"flowSequenceItem":return n("content");default:throw new ur(r,"YAML")}}function so(t){return t.body.children.length>0||R(t.body)}function vr(t,e){return K(t)||e&&(e.head.children.length>0||R(e.head))}function io(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/u.test(e.originalText.slice(Pe(n),Pe(n)+4))||n.head.children.length>0||R(n.head)||K(n.head))return"head";let r=t.next;return vr(n,r)?!1:r?"root":!1}function at(t,e,n){let r=Ar(t,e,n);return v(N,r.map(s=>wt(v(ne,s))))}function Ir(t,e){if(H(t))switch(t.type){case"comment":if(Er(t.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}Ir.ignoredProperties=new Set(["position"]);var oo={preprocess:kr,embed:mr,print:no,massageAstNode:Ir,insertPragma:wr,getVisitorKeys:dr},Pr=oo;var _r=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"]Line truncated
`,Rr="\r",Dr=function(){function t(e){this.length=e.length;for(var n=[0],r=0;r<e.length;)switch(e[r]){case kt:r+=kt.length,n.push(r);break;case Rr:r+=Rr.length,e[r]===kt&&(r+=kt.length),n.push(r);break;default:r++;break}this.offsets=n}return t.prototype.locationForIndex=function(e){if(e<0||e>this.length)return null;for(var n=0,r=this.offsets;r[n+1]<=e;)n++;var s=e-r[n];return{line:n,column:s}},t.prototype.indexForLocation=function(e){var n=e.line,r=e.column;return n<0||n>=this.offsets.length||r<0||r>this.lengthOfLine(n)?null:this.offsets[n]+r},t.prototype.lengthOfLine=function(e){var n=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-n},t}();function $(t,e=null){"children"in t&&t.children.forEach(n=>$(n,t)),"anchor"in t&&t.anchor&&$(t.anchor,t),"tag"in t&&t.tag&&$(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>$(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>$(n,t)),"indicatorComment"in t&&t.indicatorComment&&$(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&$(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>$(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function de(t){return`${t.line}:${t.column}`}function Yr(t){$(t);let e=co(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();lo(r,e,n[0])})}function co(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return $r(e,t),e}function $r(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column<r.position.start.column)&&(t[n.line-1].leadingAttachableNode=e)}if("trailingComment"in e&&e.position.end.column>1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{$r(t,n)})}}function lo(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${de(t.position.start)}`);$(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Br(l)?l:f}for(;;){if(fo(c,t)){$(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){$(t,a),a.leadingComments.push(t);return}}let i=n.children[1];$(t,i),i.endComments.push(t)}function fo(t,e){if(t.position.start.offset<e.position.start.offset&&t.position.end.offset>e.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offset<t.position.end.offset)return!1;switch(t.type){case"sequenceItem":return e.position.start.column>t.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Br(t));default:return!1}}function Br(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function Fr(t,e,n){return{...b("root",t),children:e,comments:n}}function ct(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):ct(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):ct(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&ct(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(){return{leadingComments:[]}}function oe(t=null){return{trailingComment:t}}function B(){return{...X(),...oe()}}function qr(t,e,n){return{.. Line truncated
+161
View File
@@ -0,0 +1,161 @@
var Ti=Object.create;var tn=Object.defineProperty;var Ci=Object.getOwnPropertyDescriptor;var Mi=Object.getOwnPropertyNames;var ki=Object.getPrototypeOf,vi=Object.prototype.hasOwnProperty;var te=(t,e)=>()=>(e||t((e={exports:{}}).exports,e),e.exports),rr=(t,e)=>{for(var n in e)tn(t,n,{get:e[n],enumerable:!0})},Ii=(t,e,n,r)=>{if(e&&typeof e=="object"||typeof e=="function")for(let s of Mi(e))!vi.call(t,s)&&s!==n&&tn(t,s,{get:()=>e[s],enumerable:!(r=Ci(e,s))||r.enumerable});return t};var sr=(t,e,n)=>(n=t!=null?Ti(ki(t)):{},Ii(e||!t||!t.__esModule?tn(n,"default",{value:t,enumerable:!0}):n,t));var le=te(U=>{"use strict";var re={ANCHOR:"&",COMMENT:"#",TAG:"!",DIRECTIVES_END:"-",DOCUMENT_END:"."},lt={ALIAS:"ALIAS",BLANK_LINE:"BLANK_LINE",BLOCK_FOLDED:"BLOCK_FOLDED",BLOCK_LITERAL:"BLOCK_LITERAL",COMMENT:"COMMENT",DIRECTIVE:"DIRECTIVE",DOCUMENT:"DOCUMENT",FLOW_MAP:"FLOW_MAP",FLOW_SEQ:"FLOW_SEQ",MAP:"MAP",MAP_KEY:"MAP_KEY",MAP_VALUE:"MAP_VALUE",PLAIN:"PLAIN",QUOTE_DOUBLE:"QUOTE_DOUBLE",QUOTE_SINGLE:"QUOTE_SINGLE",SEQ:"SEQ",SEQ_ITEM:"SEQ_ITEM"},Ao="tag:yaml.org,2002:",To={MAP:"tag:yaml.org,2002:map",SEQ:"tag:yaml.org,2002:seq",STR:"tag:yaml.org,2002:str"};function Ps(t){let e=[0],n=t.indexOf(`
`);for(;n!==-1;)n+=1,e.push(n),n=t.indexOf(`
`,n);return e}function _s(t){let e,n;return typeof t=="string"?(e=Ps(t),n=t):(Array.isArray(t)&&(t=t[0]),t&&t.context&&(t.lineStarts||(t.lineStarts=Ps(t.context.src)),e=t.lineStarts,n=t.context.src)),{lineStarts:e,src:n}}function Tn(t,e){if(typeof t!="number"||t<0)return null;let{lineStarts:n,src:r}=_s(e);if(!n||!r||t>r.length)return null;for(let i=0;i<n.length;++i){let o=n[i];if(t<o)return{line:i,col:t-n[i-1]+1};if(t===o)return{line:i+1,col:1}}let s=n.length;return{line:s,col:t-n[s-1]+1}}function Co(t,e){let{lineStarts:n,src:r}=_s(e);if(!n||!(t>=1)||t>n.length)return null;let s=n[t-1],i=n[t];for(;i&&i>s&&r[i-1]===`
`;)--i;return r.slice(s,i)}function Mo({start:t,end:e},n,r=80){let s=Co(t.line,n);if(!s)return null;let{col:i}=t;if(s.length>r)if(i<=r-10)s=s.substr(0,r-1)+"\u2026";else{let f=Math.round(r/2);s.length>i+f&&(s=s.substr(0,i+f-1)+"\u2026"),i-=s.length-r,s="\u2026"+s.substr(1-r)}let o=1,a="";e&&(e.line===t.line&&i+(e.col-t.col)<=r+1?o=e.col-t.col:(o=Math.min(s.length+1,r)-i,a="\u2026"));let c=i>1?" ".repeat(i-1):"",l="^".repeat(o);return`${s}
${c}${l}${a}`}var Be=class t{static copy(e){return new t(e.start,e.end)}constructor(e,n){this.start=e,this.end=n||e}isEmpty(){return typeof this.start!="number"||!this.end||this.end<=this.start}setOrigRange(e,n){let{start:r,end:s}=this;if(e.length===0||s<=e[0])return this.origStart=r,this.origEnd=s,n;let i=n;for(;i<e.length&&!(e[i]>r);)++i;this.origStart=r+i;let o=i;for(;i<e.length&&!(e[i]>=s);)++i;return this.origEnd=s+i,o}},se=class t{static addStringTerminator(e,n,r){if(r[r.length-1]===`
`)return r;let s=t.endOfWhiteSpace(e,n);return s>=e.length||e[s]===`
`?r+`
`:r}static atDocumentBoundary(e,n,r){let s=e[n];if(!s)return!0;let i=e[n-1];if(i&&i!==`
`)return!1;if(r){if(s!==r)return!1}else if(s!==re.DIRECTIVES_END&&s!==re.DOCUMENT_END)return!1;let o=e[n+1],a=e[n+2];if(o!==s||a!==s)return!1;let c=e[n+3];return!c||c===`
`||c===" "||c===" "}static endOfIdentifier(e,n){let r=e[n],s=r==="<",i=s?[`
`," "," ",">"]:[`
`," "," ","[","]","{","}",","];for(;r&&i.indexOf(r)===-1;)r=e[n+=1];return s&&r===">"&&(n+=1),n}static endOfIndent(e,n){let r=e[n];for(;r===" ";)r=e[n+=1];return n}static endOfLine(e,n){let r=e[n];for(;r&&r!==`
`;)r=e[n+=1];return n}static endOfWhiteSpace(e,n){let r=e[n];for(;r===" "||r===" ";)r=e[n+=1];return n}static startOfLine(e,n){let r=e[n-1];if(r===`
`)return n;for(;r&&r!==`
`;)r=e[n-=1];return n+1}static endOfBlockIndent(e,n,r){let s=t.endOfIndent(e,r);if(s>r+n)return s;{let i=t.endOfWhiteSpace(e,s),o=e[i];if(!o||o===`
`)return i}return null}static atBlank(e,n,r){let s=e[n];return s===`
`||s===" "||s===" "||r&&!s}static nextNodeIsIndented(e,n,r){return!e||n<0?!1:n>0?!0:r&&e==="-"}static normalizeOffset(e,n){let r=e[n];return r?r!==`
`&&e[n-1]===`
`?n-1:t.endOfWhiteSpace(e,n):n}static foldNewline(e,n,r){let s=0,i=!1,o="",a=e[n+1];for(;a===" "||a===" "||a===`
`;){switch(a){case`
`:s=0,n+=1,o+=`
`;break;case" ":s<=r&&(i=!0),n=t.endOfWhiteSpace(e,n+2)-1;break;case" ":s+=1,n+=1;break}a=e[n+1]}return o||(o=" "),a&&s<=r&&(i=!0),{fold:o,offset:n,error:i}}constructor(e,n,r){Object.defineProperty(this,"context",{value:r||null,writable:!0}),this.error=null,this.range=null,this.valueRange=null,this.props=n||[],this.type=e,this.value=null}getPropValue(e,n,r){if(!this.context)return null;let{src:s}=this.context,i=this.props[e];return i&&s[i.start]===n?s.slice(i.start+(r?1:0),i.end):null}get anchor(){for(let e=0;e<this.props.length;++e){let n=this.getPropValue(e,re.ANCHOR,!0);if(n!=null)return n}return null}get comment(){let e=[];for(let n=0;n<this.props.length;++n){let r=this.getPropValue(n,re.COMMENT,!0);r!=null&&e.push(r)}return e.length>0?e.join(`
`):null}commentHasRequiredWhitespace(e){let{src:n}=this.context;if(this.header&&e===this.header.end||!this.valueRange)return!1;let{end:r}=this.valueRange;return e!==r||t.atBlank(n,r-1)}get hasComment(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]===re.COMMENT)return!0}return!1}get hasProps(){if(this.context){let{src:e}=this.context;for(let n=0;n<this.props.length;++n)if(e[this.props[n].start]!==re.COMMENT)return!0}return!1}get includesTrailingLines(){return!1}get jsonLike(){return[lt.FLOW_MAP,lt.FLOW_SEQ,lt.QUOTE_DOUBLE,lt.QUOTE_SINGLE].indexOf(this.type)!==-1}get rangeAsLinePos(){if(!this.range||!this.context)return;let e=Tn(this.range.start,this.context.root);if(!e)return;let n=Tn(this.range.end,this.context.root);return{start:e,end:n}}get rawValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange;return this.context.src.slice(e,n)}get tag(){for(let e=0;e<this.props.length;++e){let n=this.getPropValue(e,re.TAG,!1);if(n!=null){if(n[1]==="<")return{verbatim:n.slice(2,-1)};{let[r,s,i]=n.match(/^(.*!)([^!]*)$/);return{handle:s,suffix:i}}}}return null}get valueRangeContainsNewline(){if(!this.valueRange||!this.context)return!1;let{start:e,end:n}=this.valueRange,{src:r}=this.context;for(let s=e;s<n;++s)if(r[s]===`
`)return!0;return!1}parseComment(e){let{src:n}=this.context;if(n[e]===re.COMMENT){let r=t.endOfLine(n,e+1),s=new Be(e,r);return this.props.push(s),r}return e}setOrigRanges(e,n){return this.range&&(n=this.range.setOrigRange(e,n)),this.valueRange&&this.valueRange.setOrigRange(e,n),this.props.forEach(r=>r.setOrigRange(e,n)),n}toString(){let{context:{src:e},range:n,value:r}=this;if(r!=null)return r;let s=e.slice(n.start,n.end);return t.addStringTerminator(e,n.end,s)}},ye=class extends Error{constructor(e,n,r){if(!r||!(n instanceof se))throw new Error(`Invalid arguments for new ${e}`);super(),this.name=e,this.message=r,this.source=n}makePretty(){if(!this.source)return;this.nodeType=this.source.type;let e=this.source.context&&this.source.context.root;if(typeof this.offset=="number"){this.range=new Be(this.offset,this.offset+1);let n=e&&Tn(this.offset,e);if(n){let r={line:n.line,col:n.col+1};this.linePos={start:n,end:r}}delete this.offset}else this.range=this.source.range,this.linePos=this.source.rangeAsLinePos;if(this.linePos){let{line:n,col:r}=this.linePos.start;this.message+=` at line ${n}, column ${r}`;let s=e&&Mo(this.linePos,e);s&&(this.message+=`:
${s}
`)}delete this.source}},Cn=class extends ye{constructor(e,n){super("YAMLReferenceError",e,n)}},ft=class extends ye{constructor(e,n){super("YAMLSemanticError",e,n)}},Mn=class extends ye{constructor(e,n){super("YAMLSyntaxError",e,n)}},kn=class extends ye{constructor(e,n){super("YAMLWarning",e,n)}};function ko(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var vn=class t extends se{static endOfLine(e,n,r){let s=e[n],i=n;for(;s&&s!==`
`&&!(r&&(s==="["||s==="]"||s==="{"||s==="}"||s===","));){let o=e[i+1];if(s===":"&&(!o||o===`
`||o===" "||o===" "||r&&o===",")||(s===" "||s===" ")&&o==="#")break;i+=1,s=o}return i}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{src:r}=this.context,s=r[n-1];for(;e<n&&(s===`
`||s===" "||s===" ");)s=r[--n-1];let i="";for(let a=e;a<n;++a){let c=r[a];if(c===`
`){let{fold:l,offset:f}=se.foldNewline(r,a,-1);i+=l,a=f}else if(c===" "||c===" "){let l=a,f=r[a+1];for(;a<n&&(f===" "||f===" ");)a+=1,f=r[a+1];f!==`
`&&(i+=a>l?r.slice(l,a+1):c)}else i+=c}let o=r[e];switch(o){case" ":{let a="Plain value cannot start with a tab character";return{errors:[new ft(this,a)],str:i}}case"@":case"`":{let a=`Plain value cannot start with reserved character ${o}`;return{errors:[new ft(this,a)],str:i}}default:return i}}parseBlockValue(e){let{indent:n,inFlow:r,src:s}=this.context,i=e,o=e;for(let a=s[i];a===`
`&&!se.atDocumentBoundary(s,i+1);a=s[i]){let c=se.endOfBlockIndent(s,n,i+1);if(c===null||s[c]==="#")break;s[c]===`
`?i=c:(o=t.endOfLine(s,c,r),i=o)}return this.valueRange.isEmpty()&&(this.valueRange.start=e),this.valueRange.end=o,o}parse(e,n){this.context=e;let{inFlow:r,src:s}=e,i=n,o=s[i];return o&&o!=="#"&&o!==`
`&&(i=t.endOfLine(s,n,r)),this.valueRange=new Be(n,i),i=se.endOfWhiteSpace(s,i),i=this.parseComment(i),(!this.hasComment||this.valueRange.isEmpty())&&(i=this.parseBlockValue(i)),i}};U.Char=re;U.Node=se;U.PlainValue=vn;U.Range=Be;U.Type=lt;U.YAMLError=ye;U.YAMLReferenceError=Cn;U.YAMLSemanticError=ft;U.YAMLSyntaxError=Mn;U.YAMLWarning=kn;U._defineProperty=ko;U.defaultTagPrefix=Ao;U.defaultTags=To});var Rs=te(xs=>{"use strict";var u=le(),Se=class extends u.Node{constructor(){super(u.Type.BLANK_LINE)}get includesTrailingLines(){return!0}parse(e,n){return this.context=e,this.range=new u.Range(n,n+1),n+1}},ut=class extends u.Node{constructor(e,n){super(e,n),this.node=null}get includesTrailingLines(){return!!this.node&&this.node.includesTrailingLines}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{atLineStart:i,lineStart:o}=e;!i&&this.type===u.Type.SEQ_ITEM&&(this.error=new u.YAMLSemanticError(this,"Sequence items must not have preceding content on the same line"));let a=i?n-o:e.indent,c=u.Node.endOfWhiteSpace(s,n+1),l=s[c],f=l==="#",m=[],d=null;for(;l===`
`||l==="#";){if(l==="#"){let h=u.Node.endOfLine(s,c+1);m.push(new u.Range(c,h)),c=h}else{i=!0,o=c+1;let h=u.Node.endOfWhiteSpace(s,o);s[h]===`
`&&m.length===0&&(d=new Se,o=d.parse({src:s},o)),c=u.Node.endOfIndent(s,o)}l=s[c]}if(u.Node.nextNodeIsIndented(l,c-(o+a),this.type!==u.Type.SEQ_ITEM)?this.node=r({atLineStart:i,inCollection:!1,indent:a,lineStart:o,parent:this},c):l&&o>n+1&&(c=o-1),this.node){if(d){let h=e.parent.items||e.parent.contents;h&&h.push(d)}m.length&&Array.prototype.push.apply(this.props,m),c=this.node.range.end}else if(f){let h=m[0];this.props.push(h),c=h.end}else c=u.Node.endOfLine(s,n+1);let y=this.node?this.node.valueRange.end:c;return this.valueRange=new u.Range(n,y),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.node?this.node.setOrigRanges(e,n):n}toString(){let{context:{src:e},node:n,range:r,value:s}=this;if(s!=null)return s;let i=n?e.slice(r.start,n.range.start)+String(n):e.slice(r.start,r.end);return u.Node.addStringTerminator(e,r.end,i)}},Ee=class extends u.Node{constructor(){super(u.Type.COMMENT)}parse(e,n){this.context=e;let r=this.parseComment(n);return this.range=new u.Range(n,r),r}};function In(t){let e=t;for(;e instanceof ut;)e=e.node;if(!(e instanceof $t))return null;let n=e.items.length,r=-1;for(let o=n-1;o>=0;--o){let a=e.items[o];if(a.type===u.Type.COMMENT){let{indent:c,lineStart:l}=a.context;if(c>0&&a.range.start>=l+c)break;r=o}else if(a.type===u.Type.BLANK_LINE)r=o;else break}if(r===-1)return null;let s=e.items.splice(r,n-r),i=s[0].range.start;for(;e.range.end=i,e.valueRange&&e.valueRange.end>i&&(e.valueRange.end=i),e!==t;)e=e.context.parent;return s}var $t=class t extends u.Node{static nextContentHasIndent(e,n,r){let s=u.Node.endOfLine(e,n)+1;n=u.Node.endOfWhiteSpace(e,s);let i=e[n];return i?n>=s+r?!0:i!=="#"&&i!==`
`?!1:t.nextContentHasIndent(e,n,r):!1}constructor(e){super(e.type===u.Type.SEQ_ITEM?u.Type.SEQ:u.Type.MAP);for(let r=e.props.length-1;r>=0;--r)if(e.props[r].start<e.context.lineStart){this.props=e.props.slice(0,r+1),e.props=e.props.slice(r+1);let s=e.props[0]||e.valueRange;e.range.start=s.start;break}this.items=[e];let n=In(e);n&&Array.prototype.push.apply(this.items,n)}get includesTrailingLines(){return this.items.length>0}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,i=u.Node.startOfLine(s,n),o=this.items[0];o.context.parent=this,this.valueRange=u.Range.copy(o.valueRange);let a=o.range.start-o.context.lineStart,c=n;c=u.Node.normalizeOffset(s,c);let l=s[c],f=u.Node.endOfWhiteSpace(s,i)===c,m=!1;for(;l;){for(;l===`
`||l==="#";){if(f&&l===`
`&&!m){let h=new Se;if(c=h.parse({src:s},c),this.valueRange.end=c,c>=s.length){l=null;break}this.items.push(h),c-=1}else if(l==="#"){if(c<i+a&&!t.nextContentHasIndent(s,c,a))return c;let h=new Ee;if(c=h.parse({indent:a,lineStart:i,src:s},c),this.items.push(h),this.valueRange.end=c,c>=s.length){l=null;break}}if(i=c+1,c=u.Node.endOfIndent(s,i),u.Node.atBlank(s,c)){let h=u.Node.endOfWhiteSpace(s,c),g=s[h];(!g||g===`
`||g==="#")&&(c=h)}l=s[c],f=!0}if(!l)break;if(c!==i+a&&(f||l!==":")){if(c<i+a){i>n&&(c=i);break}else if(!this.error){let h="All collection items must start at the same column";this.error=new u.YAMLSyntaxError(this,h)}}if(o.type===u.Type.SEQ_ITEM){if(l!=="-"){i>n&&(c=i);break}}else if(l==="-"&&!this.error){let h=s[c+1];if(!h||h===`
`||h===" "||h===" "){let g="A collection cannot be both a mapping and a sequence";this.error=new u.YAMLSyntaxError(this,g)}}let d=r({atLineStart:f,inCollection:!0,indent:a,lineStart:i,parent:this},c);if(!d)return c;if(this.items.push(d),this.valueRange.end=d.valueRange.end,c=u.Node.normalizeOffset(s,d.range.end),l=s[c],f=!1,m=d.includesTrailingLines,l){let h=c-1,g=s[h];for(;g===" "||g===" ";)g=s[--h];g===`
`&&(i=h+1,f=!0)}let y=In(d);y&&Array.prototype.push.apply(this.items,y)}return c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach(r=>{n=r.setOrigRanges(e,n)}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=e.slice(r.start,n[0].range.start)+String(n[0]);for(let o=1;o<n.length;++o){let a=n[o],{atLineStart:c,indent:l}=a.context;if(c)for(let f=0;f<l;++f)i+=" ";i+=String(a)}return u.Node.addStringTerminator(e,r.end,i)}},Pn=class extends u.Node{constructor(){super(u.Type.DIRECTIVE),this.name=null}get parameters(){let e=this.rawValue;return e?e.trim().split(/[ \t]+/):[]}parseName(e){let{src:n}=this.context,r=e,s=n[r];for(;s&&s!==`
`&&s!==" "&&s!==" ";)s=n[r+=1];return this.name=n.slice(e,r),r}parseParameters(e){let{src:n}=this.context,r=e,s=n[r];for(;s&&s!==`
`&&s!=="#";)s=n[r+=1];return this.valueRange=new u.Range(e,r),r}parse(e,n){this.context=e;let r=this.parseName(n+1);return r=this.parseParameters(r),r=this.parseComment(r),this.range=new u.Range(n,r),r}},_n=class t extends u.Node{static startCommentOrEndBlankLine(e,n){let r=u.Node.endOfWhiteSpace(e,n),s=e[r];return s==="#"||s===`
`?r:n}constructor(){super(u.Type.DOCUMENT),this.directives=null,this.contents=null,this.directivesEndMarker=null,this.documentEndMarker=null}parseDirectives(e){let{src:n}=this.context;this.directives=[];let r=!0,s=!1,i=e;for(;!u.Node.atDocumentBoundary(n,i,u.Char.DIRECTIVES_END);)switch(i=t.startCommentOrEndBlankLine(n,i),n[i]){case`
`:if(r){let o=new Se;i=o.parse({src:n},i),i<n.length&&this.directives.push(o)}else i+=1,r=!0;break;case"#":{let o=new Ee;i=o.parse({src:n},i),this.directives.push(o),r=!1}break;case"%":{let o=new Pn;i=o.parse({parent:this,src:n},i),this.directives.push(o),s=!0,r=!1}break;default:return s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i}return n[i]?(this.directivesEndMarker=new u.Range(i,i+3),i+3):(s?this.error=new u.YAMLSemanticError(this,"Missing directives-end indicator line"):this.directives.length>0&&(this.contents=this.directives,this.directives=[]),i)}parseContents(e){let{parseNode:n,src:r}=this.context;this.contents||(this.contents=[]);let s=e;for(;r[s-1]==="-";)s-=1;let i=u.Node.endOfWhiteSpace(r,e),o=s===e;for(this.valueRange=new u.Range(i);!u.Node.atDocumentBoundary(r,i,u.Char.DOCUMENT_END);){switch(r[i]){case`
`:if(o){let a=new Se;i=a.parse({src:r},i),i<r.length&&this.contents.push(a)}else i+=1,o=!0;s=i;break;case"#":{let a=new Ee;i=a.parse({src:r},i),this.contents.push(a),o=!1}break;default:{let a=u.Node.endOfIndent(r,i),l=n({atLineStart:o,indent:-1,inFlow:!1,inCollection:!1,lineStart:s,parent:this},a);if(!l)return this.valueRange.end=a;this.contents.push(l),i=l.range.end,o=!1;let f=In(l);f&&Array.prototype.push.apply(this.contents,f)}}i=t.startCommentOrEndBlankLine(r,i)}if(this.valueRange.end=i,r[i]&&(this.documentEndMarker=new u.Range(i,i+3),i+=3,r[i])){if(i=u.Node.endOfWhiteSpace(r,i),r[i]==="#"){let a=new Ee;i=a.parse({src:r},i),this.contents.push(a)}switch(r[i]){case`
`:i+=1;break;case void 0:break;default:this.error=new u.YAMLSyntaxError(this,"Document end marker line cannot have a non-comment suffix")}}return i}parse(e,n){e.root=this,this.context=e;let{src:r}=e,s=r.charCodeAt(n)===65279?n+1:n;return s=this.parseDirectives(s),s=this.parseContents(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.directives.forEach(r=>{n=r.setOrigRanges(e,n)}),this.directivesEndMarker&&(n=this.directivesEndMarker.setOrigRange(e,n)),this.contents.forEach(r=>{n=r.setOrigRanges(e,n)}),this.documentEndMarker&&(n=this.documentEndMarker.setOrigRange(e,n)),n}toString(){let{contents:e,directives:n,value:r}=this;if(r!=null)return r;let s=n.join("");return e.length>0&&((n.length>0||e[0].type===u.Type.COMMENT)&&(s+=`---
`),s+=e.join("")),s[s.length-1]!==`
`&&(s+=`
`),s}},xn=class extends u.Node{parse(e,n){this.context=e;let{src:r}=e,s=u.Node.endOfIdentifier(r,n+1);return this.valueRange=new u.Range(n+1,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},fe={CLIP:"CLIP",KEEP:"KEEP",STRIP:"STRIP"},Rn=class extends u.Node{constructor(e,n){super(e,n),this.blockIndent=null,this.chomping=fe.CLIP,this.header=null}get includesTrailingLines(){return this.chomping===fe.KEEP}get strValue(){if(!this.valueRange||!this.context)return null;let{start:e,end:n}=this.valueRange,{indent:r,src:s}=this.context;if(this.valueRange.isEmpty())return"";let i=null,o=s[n-1];for(;o===`
`||o===" "||o===" ";){if(n-=1,n<=e){if(this.chomping===fe.KEEP)break;return""}o===`
`&&(i=n),o=s[n-1]}let a=n+1;i&&(this.chomping===fe.KEEP?(a=i,n=this.valueRange.end):n=i);let c=r+this.blockIndent,l=this.type===u.Type.BLOCK_FOLDED,f=!0,m="",d="",y=!1;for(let h=e;h<n;++h){for(let w=0;w<c&&s[h]===" ";++w)h+=1;let g=s[h];if(g===`
`)d===`
`?m+=`
`:d=`
`;else{let w=u.Node.endOfLine(s,h),C=s.slice(h,w);h=w,l&&(g===" "||g===" ")&&h<a?(d===" "?d=`
`:!y&&!f&&d===`
`&&(d=`
`),m+=d+C,d=w<n&&s[w]||"",y=!0):(m+=d+C,d=l&&h<a?" ":`
`,y=!1),f&&C!==""&&(f=!1)}}return this.chomping===fe.STRIP?m:m+`
`}parseBlockHeader(e){let{src:n}=this.context,r=e+1,s="";for(;;){let i=n[r];switch(i){case"-":this.chomping=fe.STRIP;break;case"+":this.chomping=fe.KEEP;break;case"0":case"1":case"2":case"3":case"4":case"5":case"6":case"7":case"8":case"9":s+=i;break;default:return this.blockIndent=Number(s)||null,this.header=new u.Range(e,r),r}r+=1}}parseBlockValue(e){let{indent:n,src:r}=this.context,s=!!this.blockIndent,i=e,o=e,a=1;for(let c=r[i];c===`
`&&(i+=1,!u.Node.atDocumentBoundary(r,i));c=r[i]){let l=u.Node.endOfBlockIndent(r,n,i);if(l===null)break;let f=r[l],m=l-(i+n);if(this.blockIndent){if(f&&f!==`
`&&m<this.blockIndent){if(r[l]==="#")break;if(!this.error){let y=`Block scalars must not be less indented than their ${s?"explicit indentation indicator":"first line"}`;this.error=new u.YAMLSemanticError(this,y)}}}else if(r[l]!==`
`){if(m<a){let d="Block scalars with more-indented leading empty lines must use an explicit indentation indicator";this.error=new u.YAMLSemanticError(this,d)}this.blockIndent=m}else m>a&&(a=m);r[l]===`
`?i=l:i=o=u.Node.endOfLine(r,l)}return this.chomping!==fe.KEEP&&(i=r[o]?o+1:o),this.valueRange=new u.Range(e+1,i),i}parse(e,n){this.context=e;let{src:r}=e,s=this.parseBlockHeader(n);return s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s=this.parseBlockValue(s),s}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.header?this.header.setOrigRange(e,n):n}},Dn=class extends u.Node{constructor(e,n){super(e,n),this.items=null}prevNodeIsJsonLike(e=this.items.length){let n=this.items[e-1];return!!n&&(n.jsonLike||n.type===u.Type.COMMENT&&this.prevNodeIsJsonLike(e-1))}parse(e,n){this.context=e;let{parseNode:r,src:s}=e,{indent:i,lineStart:o}=e,a=s[n];this.items=[{char:a,offset:n}];let c=u.Node.endOfWhiteSpace(s,n+1);for(a=s[c];a&&a!=="]"&&a!=="}";){switch(a){case`
`:{o=c+1;let l=u.Node.endOfWhiteSpace(s,o);if(s[l]===`
`){let f=new Se;o=f.parse({src:s},o),this.items.push(f)}if(c=u.Node.endOfIndent(s,o),c<=o+i&&(a=s[c],c<o+i||a!=="]"&&a!=="}")){let f="Insufficient indentation in flow collection";this.error=new u.YAMLSemanticError(this,f)}}break;case",":this.items.push({char:a,offset:c}),c+=1;break;case"#":{let l=new Ee;c=l.parse({src:s},c),this.items.push(l)}break;case"?":case":":{let l=s[c+1];if(l===`
`||l===" "||l===" "||l===","||a===":"&&this.prevNodeIsJsonLike()){this.items.push({char:a,offset:c}),c+=1;break}}default:{let l=r({atLineStart:!1,inCollection:!1,inFlow:!0,indent:-1,lineStart:o,parent:this},c);if(!l)return this.valueRange=new u.Range(n,c),c;this.items.push(l),c=u.Node.normalizeOffset(s,l.range.end)}}c=u.Node.endOfWhiteSpace(s,c),a=s[c]}return this.valueRange=new u.Range(n,c+1),a&&(this.items.push({char:a,offset:c}),c=u.Node.endOfWhiteSpace(s,c+1),c=this.parseComment(c)),c}setOrigRanges(e,n){return n=super.setOrigRanges(e,n),this.items.forEach(r=>{if(r instanceof u.Node)n=r.setOrigRanges(e,n);else if(e.length===0)r.origOffset=r.offset;else{let s=n;for(;s<e.length&&!(e[s]>r.offset);)++s;r.origOffset=r.offset+s,n=s}}),n}toString(){let{context:{src:e},items:n,range:r,value:s}=this;if(s!=null)return s;let i=n.filter(c=>c instanceof u.Node),o="",a=r.start;return i.forEach(c=>{let l=e.slice(a,c.range.start);a=c.range.end,o+=l+String(c),o[o.length-1]===`
`&&e[a-1]!==`
`&&e[a]===`
`&&(a+=1)}),o+=e.slice(a,r.end),u.Node.addStringTerminator(e,r.end,o)}},Yn=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r&&r!=='"';)n+=r==="\\"?2:1,r=e[n];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=='"'&&e.push(new u.YAMLSyntaxError(this,'Missing closing "quote'));let o="";for(let a=n+1;a<r-1;++a){let c=i[a];if(c===`
`){u.Node.atDocumentBoundary(i,a+1)&&e.push(new u.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:l,offset:f,error:m}=u.Node.foldNewline(i,a,s);o+=l,a=f,m&&e.push(new u.YAMLSemanticError(this,"Multi-line double-quoted string needs to be sufficiently indented"))}else if(c==="\\")switch(a+=1,i[a]){case"0":o+="\0";break;case"a":o+="\x07";break;case"b":o+="\b";break;case"e":o+="\x1B";break;case"f":o+="\f";break;case"n":o+=`
`;break;case"r":o+="\r";break;case"t":o+=" ";break;case"v":o+="\v";break;case"N":o+="\x85";break;case"_":o+="\xA0";break;case"L":o+="\u2028";break;case"P":o+="\u2029";break;case" ":o+=" ";break;case'"':o+='"';break;case"/":o+="/";break;case"\\":o+="\\";break;case" ":o+=" ";break;case"x":o+=this.parseCharCode(a+1,2,e),a+=2;break;case"u":o+=this.parseCharCode(a+1,4,e),a+=4;break;case"U":o+=this.parseCharCode(a+1,8,e),a+=8;break;case`
`:for(;i[a+1]===" "||i[a+1]===" ";)a+=1;break;default:e.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${i.substr(a-1,2)}`)),o+="\\"+i[a]}else if(c===" "||c===" "){let l=a,f=i[a+1];for(;f===" "||f===" ";)a+=1,f=i[a+1];f!==`
`&&(o+=a>l?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parseCharCode(e,n,r){let{src:s}=this.context,i=s.substr(e,n),a=i.length===n&&/^[0-9a-fA-F]+$/.test(i)?parseInt(i,16):NaN;return isNaN(a)?(r.push(new u.YAMLSyntaxError(this,`Invalid escape sequence ${s.substr(e-2,n+2)}`)),s.substr(e-2,n+2)):String.fromCodePoint(a)}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}},$n=class t extends u.Node{static endOfQuote(e,n){let r=e[n];for(;r;)if(r==="'"){if(e[n+1]!=="'")break;r=e[n+=2]}else r=e[n+=1];return n+1}get strValue(){if(!this.valueRange||!this.context)return null;let e=[],{start:n,end:r}=this.valueRange,{indent:s,src:i}=this.context;i[r-1]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Missing closing 'quote"));let o="";for(let a=n+1;a<r-1;++a){let c=i[a];if(c===`
`){u.Node.atDocumentBoundary(i,a+1)&&e.push(new u.YAMLSemanticError(this,"Document boundary indicators are not allowed within string values"));let{fold:l,offset:f,error:m}=u.Node.foldNewline(i,a,s);o+=l,a=f,m&&e.push(new u.YAMLSemanticError(this,"Multi-line single-quoted string needs to be sufficiently indented"))}else if(c==="'")o+=c,a+=1,i[a]!=="'"&&e.push(new u.YAMLSyntaxError(this,"Unescaped single quote? This should not happen."));else if(c===" "||c===" "){let l=a,f=i[a+1];for(;f===" "||f===" ";)a+=1,f=i[a+1];f!==`
`&&(o+=a>l?i.slice(l,a+1):c)}else o+=c}return e.length>0?{errors:e,str:o}:o}parse(e,n){this.context=e;let{src:r}=e,s=t.endOfQuote(r,n+1);return this.valueRange=new u.Range(n,s),s=u.Node.endOfWhiteSpace(r,s),s=this.parseComment(s),s}};function vo(t,e){switch(t){case u.Type.ALIAS:return new xn(t,e);case u.Type.BLOCK_FOLDED:case u.Type.BLOCK_LITERAL:return new Rn(t,e);case u.Type.FLOW_MAP:case u.Type.FLOW_SEQ:return new Dn(t,e);case u.Type.MAP_KEY:case u.Type.MAP_VALUE:case u.Type.SEQ_ITEM:return new ut(t,e);case u.Type.COMMENT:case u.Type.PLAIN:return new u.PlainValue(t,e);case u.Type.QUOTE_DOUBLE:return new Yn(t,e);case u.Type.QUOTE_SINGLE:return new $n(t,e);default:return null}}var Bn=class t{static parseType(e,n,r){switch(e[n]){case"*":return u.Type.ALIAS;case">":return u.Type.BLOCK_FOLDED;case"|":return u.Type.BLOCK_LITERAL;case"{":return u.Type.FLOW_MAP;case"[":return u.Type.FLOW_SEQ;case"?":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_KEY:u.Type.PLAIN;case":":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.MAP_VALUE:u.Type.PLAIN;case"-":return!r&&u.Node.atBlank(e,n+1,!0)?u.Type.SEQ_ITEM:u.Type.PLAIN;case'"':return u.Type.QUOTE_DOUBLE;case"'":return u.Type.QUOTE_SINGLE;default:return u.Type.PLAIN}}constructor(e={},{atLineStart:n,inCollection:r,inFlow:s,indent:i,lineStart:o,parent:a}={}){u._defineProperty(this,"parseNode",(c,l)=>{if(u.Node.atDocumentBoundary(this.src,l))return null;let f=new t(this,c),{props:m,type:d,valueStart:y}=f.parseProps(l),h=vo(d,m),g=h.parse(f,y);if(h.range=new u.Range(l,g),g<=l&&(h.error=new Error("Node#parse consumed no characters"),h.error.parseEnd=g,h.error.source=h,h.range.end=l+1),f.nodeStartsCollection(h)){!h.error&&!f.atLineStart&&f.parent.type===u.Type.DOCUMENT&&(h.error=new u.YAMLSyntaxError(h,"Block collection must not have preceding content here (e.g. directives-end indicator)"));let w=new $t(h);return g=w.parse(new t(f),g),w.range=new u.Range(l,g),w}return h}),this.atLineStart=n??(e.atLineStart||!1),this.inCollection=r??(e.inCollection||!1),this.inFlow=s??(e.inFlow||!1),this.indent=i??e.indent,this.lineStart=o??e.lineStart,this.parent=a??(e.parent||{}),this.root=e.root,this.src=e.src}nodeStartsCollection(e){let{inCollection:n,inFlow:r,src:s}=this;if(n||r)return!1;if(e instanceof ut)return!0;let i=e.range.end;return s[i]===`
`||s[i-1]===`
`?!1:(i=u.Node.endOfWhiteSpace(s,i),s[i]===":")}parseProps(e){let{inFlow:n,parent:r,src:s}=this,i=[],o=!1;e=this.atLineStart?u.Node.endOfIndent(s,e):u.Node.endOfWhiteSpace(s,e);let a=s[e];for(;a===u.Char.ANCHOR||a===u.Char.COMMENT||a===u.Char.TAG||a===`
`;){if(a===`
`){let l=e,f;do f=l+1,l=u.Node.endOfIndent(s,f);while(s[l]===`
`);let m=l-(f+this.indent),d=r.type===u.Type.SEQ_ITEM&&r.context.atLineStart;if(s[l]!=="#"&&!u.Node.nextNodeIsIndented(s[l],m,!d))break;this.atLineStart=!0,this.lineStart=f,o=!1,e=l}else if(a===u.Char.COMMENT){let l=u.Node.endOfLine(s,e+1);i.push(new u.Range(e,l)),e=l}else{let l=u.Node.endOfIdentifier(s,e+1);a===u.Char.TAG&&s[l]===","&&/^[a-zA-Z0-9-]+\.[a-zA-Z0-9-]+,\d\d\d\d(-\d\d){0,2}\/\S/.test(s.slice(e+1,l+13))&&(l=u.Node.endOfIdentifier(s,l+5)),i.push(new u.Range(e,l)),o=!0,e=u.Node.endOfWhiteSpace(s,l)}a=s[e]}o&&a===":"&&u.Node.atBlank(s,e+1,!0)&&(e-=1);let c=t.parseType(s,e,n);return{props:i,type:c,valueStart:e}}};function Io(t){let e=[];t.indexOf("\r")!==-1&&(t=t.replace(/\r\n?/g,(s,i)=>(s.length>1&&e.push(i),`
`)));let n=[],r=0;do{let s=new _n,i=new Bn({src:t});r=s.parse(i,r),n.push(s)}while(r<t.length);return n.setOrigRanges=()=>{if(e.length===0)return!1;for(let i=1;i<e.length;++i)e[i]-=i;let s=0;for(let i=0;i<n.length;++i)s=n[i].setOrigRanges(e,s);return e.splice(0,e.length),!0},n.toString=()=>n.join(`...
`),n}xs.parse=Io});var qe=te(k=>{"use strict";var p=le();function Po(t,e,n){return n?`#${n.replace(/[\s\S]^/gm,`$&${e}#`)}
${e}${t}`:t}function Fe(t,e,n){return n?n.indexOf(`
`)===-1?`${t} #${n}`:`${t}
`+n.replace(/^/gm,`${e||""}#`):t}var W=class{};function ue(t,e,n){if(Array.isArray(t))return t.map((r,s)=>ue(r,String(s),n));if(t&&typeof t.toJSON=="function"){let r=n&&n.anchors&&n.anchors.get(t);r&&(n.onCreate=i=>{r.res=i,delete n.onCreate});let s=t.toJSON(e,n);return r&&n.onCreate&&n.onCreate(s),s}return(!n||!n.keep)&&typeof t=="bigint"?Number(t):t}var P=class extends W{constructor(e){super(),this.value=e}toJSON(e,n){return n&&n.keep?this.value:ue(this.value,e,n)}toString(){return String(this.value)}};function Ds(t,e,n){let r=n;for(let s=e.length-1;s>=0;--s){let i=e[s];if(Number.isInteger(i)&&i>=0){let o=[];o[i]=r,r=o}else{let o={};Object.defineProperty(o,i,{value:r,writable:!0,enumerable:!0,configurable:!0}),r=o}}return t.createNode(r,!1)}var Bs=t=>t==null||typeof t=="object"&&t[Symbol.iterator]().next().done,j=class t extends W{constructor(e){super(),p._defineProperty(this,"items",[]),this.schema=e}addIn(e,n){if(Bs(e))this.add(n);else{let[r,...s]=e,i=this.get(r,!0);if(i instanceof t)i.addIn(s,n);else if(i===void 0&&this.schema)this.set(r,Ds(this.schema,s,n));else throw new Error(`Expected YAML collection at ${r}. Remaining path: ${s}`)}}deleteIn([e,...n]){if(n.length===0)return this.delete(e);let r=this.get(e,!0);if(r instanceof t)return r.deleteIn(n);throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}getIn([e,...n],r){let s=this.get(e,!0);return n.length===0?!r&&s instanceof P?s.value:s:s instanceof t?s.getIn(n,r):void 0}hasAllNullValues(){return this.items.every(e=>{if(!e||e.type!=="PAIR")return!1;let n=e.value;return n==null||n instanceof P&&n.value==null&&!n.commentBefore&&!n.comment&&!n.tag})}hasIn([e,...n]){if(n.length===0)return this.has(e);let r=this.get(e,!0);return r instanceof t?r.hasIn(n):!1}setIn([e,...n],r){if(n.length===0)this.set(e,r);else{let s=this.get(e,!0);if(s instanceof t)s.setIn(n,r);else if(s===void 0&&this.schema)this.set(e,Ds(this.schema,n,r));else throw new Error(`Expected YAML collection at ${e}. Remaining path: ${n}`)}}toJSON(){return null}toString(e,{blockItem:n,flowChars:r,isMap:s,itemIndent:i},o,a){let{indent:c,indentStep:l,stringify:f}=e,m=this.type===p.Type.FLOW_MAP||this.type===p.Type.FLOW_SEQ||e.inFlow;m&&(i+=l);let d=s&&this.hasAllNullValues();e=Object.assign({},e,{allNullValues:d,indent:i,inFlow:m,type:null});let y=!1,h=!1,g=this.items.reduce((C,L,M)=>{let A;L&&(!y&&L.spaceBefore&&C.push({type:"comment",str:""}),L.commentBefore&&L.commentBefore.match(/^.*$/gm).forEach(Ai=>{C.push({type:"comment",str:`#${Ai}`})}),L.comment&&(A=L.comment),m&&(!y&&L.spaceBefore||L.commentBefore||L.comment||L.key&&(L.key.commentBefore||L.key.comment)||L.value&&(L.value.commentBefore||L.value.comment))&&(h=!0)),y=!1;let _=f(L,e,()=>A=null,()=>y=!0);return m&&!h&&_.includes(`
`)&&(h=!0),m&&M<this.items.length-1&&(_+=","),_=Fe(_,i,A),y&&(A||m)&&(y=!1),C.push({type:"item",str:_}),C},[]),w;if(g.length===0)w=r.start+r.end;else if(m){let{start:C,end:L}=r,M=g.map(A=>A.str);if(h||M.reduce((A,_)=>A+_.length+2,2)>t.maxFlowStringSingleLineLength){w=C;for(let A of M)w+=A?`
${l}${c}${A}`:`
`;w+=`
${c}${L}`}else w=`${C} ${M.join(" ")} ${L}`}else{let C=g.map(n);w=C.shift();for(let L of C)w+=L?`
${c}${L}`:`
`}return this.comment?(w+=`
`+this.comment.replace(/^/gm,`${c}#`),o&&o()):y&&a&&a(),w}};p._defineProperty(j,"maxFlowStringSingleLineLength",60);function Bt(t){let e=t instanceof P?t.value:t;return e&&typeof e=="string"&&(e=Number(e)),Number.isInteger(e)&&e>=0?e:null}var pe=class extends j{add(e){this.items.push(e)}delete(e){let n=Bt(e);return typeof n!="number"?!1:this.items.splice(n,1).length>0}get(e,n){let r=Bt(e);if(typeof r!="number")return;let s=this.items[r];return!n&&s instanceof P?s.value:s}has(e){let n=Bt(e);return typeof n=="number"&&n<this.items.length}set(e,n){let r=Bt(e);if(typeof r!="number")throw new Error(`Expected a valid index, not ${e}.`);this.items[r]=n}toJSON(e,n){let r=[];n&&n.onCreate&&n.onCreate(r);let s=0;for(let i of this.items)r.push(ue(i,String(s++),n));return r}toString(e,n,r){return e?super.toString(e,{blockItem:s=>s.type==="comment"?s.str:`- ${s.str}`,flowChars:{start:"[",end:"]"},isMap:!1,itemIndent:(e.indent||"")+" "},n,r):JSON.stringify(this)}},_o=(t,e,n)=>e===null?"":typeof e!="object"?String(e):t instanceof W&&n&&n.doc?t.toString({anchors:Object.create(null),doc:n.doc,indent:"",indentStep:n.indentStep,inFlow:!0,inStringifyKey:!0,stringify:n.stringify}):JSON.stringify(e),T=class t extends W{constructor(e,n=null){super(),this.key=e,this.value=n,this.type=t.Type.PAIR}get commentBefore(){return this.key instanceof W?this.key.commentBefore:void 0}set commentBefore(e){if(this.key==null&&(this.key=new P(null)),this.key instanceof W)this.key.commentBefore=e;else{let n="Pair.commentBefore is an alias for Pair.key.commentBefore. To set it, the key must be a Node.";throw new Error(n)}}addToJSMap(e,n){let r=ue(this.key,"",e);if(n instanceof Map){let s=ue(this.value,r,e);n.set(r,s)}else if(n instanceof Set)n.add(r);else{let s=_o(this.key,r,e),i=ue(this.value,s,e);s in n?Object.defineProperty(n,s,{value:i,writable:!0,enumerable:!0,configurable:!0}):n[s]=i}return n}toJSON(e,n){let r=n&&n.mapAsMap?new Map:{};return this.addToJSMap(n,r)}toString(e,n,r){if(!e||!e.doc)return JSON.stringify(this);let{indent:s,indentSeq:i,simpleKeys:o}=e.doc.options,{key:a,value:c}=this,l=a instanceof W&&a.comment;if(o){if(l)throw new Error("With simple keys, key nodes cannot have comments");if(a instanceof j){let _="With simple keys, collection cannot be used as a key value";throw new Error(_)}}let f=!o&&(!a||l||(a instanceof W?a instanceof j||a.type===p.Type.BLOCK_FOLDED||a.type===p.Type.BLOCK_LITERAL:typeof a=="object")),{doc:m,indent:d,indentStep:y,stringify:h}=e;e=Object.assign({},e,{implicitKey:!f,indent:d+y});let g=!1,w=h(a,e,()=>l=null,()=>g=!0);if(w=Fe(w,e.indent,l),!f&&w.length>1024){if(o)throw new Error("With simple keys, single line scalar must not span more than 1024 characters");f=!0}if(e.allNullValues&&!o)return this.comment?(w=Fe(w,e.indent,this.comment),n&&n()):g&&!l&&r&&r(),e.inFlow&&!f?w:`? ${w}`;w=f?`? ${w}
${d}:`:`${w}:`,this.comment&&(w=Fe(w,e.indent,this.comment),n&&n());let C="",L=null;if(c instanceof W){if(c.spaceBefore&&(C=`
`),c.commentBefore){let _=c.commentBefore.replace(/^/gm,`${e.indent}#`);C+=`
${_}`}L=c.comment}else c&&typeof c=="object"&&(c=m.schema.createNode(c,!0));e.implicitKey=!1,!f&&!this.comment&&c instanceof P&&(e.indentAtStart=w.length+1),g=!1,!i&&s>=2&&!e.inFlow&&!f&&c instanceof pe&&c.type!==p.Type.FLOW_SEQ&&!c.tag&&!m.anchors.getName(c)&&(e.indent=e.indent.substr(2));let M=h(c,e,()=>L=null,()=>g=!0),A=" ";return C||this.comment?A=`${C}
${e.indent}`:!f&&c instanceof j?(!(M[0]==="["||M[0]==="{")||M.includes(`
`))&&(A=`
${e.indent}`):M[0]===`
`&&(A=""),g&&!L&&r&&r(),Fe(w+A+M,e.indent,L)}};p._defineProperty(T,"Type",{PAIR:"PAIR",MERGE_PAIR:"MERGE_PAIR"});var Ft=(t,e)=>{if(t instanceof be){let n=e.get(t.source);return n.count*n.aliasCount}else if(t instanceof j){let n=0;for(let r of t.items){let s=Ft(r,e);s>n&&(n=s)}return n}else if(t instanceof T){let n=Ft(t.key,e),r=Ft(t.value,e);return Math.max(n,r)}return 1},be=class t extends W{static stringify({range:e,source:n},{anchors:r,doc:s,implicitKey:i,inStringifyKey:o}){let a=Object.keys(r).find(l=>r[l]===n);if(!a&&o&&(a=s.anchors.getName(n)||s.anchors.newName()),a)return`*${a}${i?" ":""}`;let c=s.anchors.getName(n)?"Alias node must be after source node":"Source node not found for alias node";throw new Error(`${c} [${e}]`)}constructor(e){super(),this.source=e,this.type=p.Type.ALIAS}set tag(e){throw new Error("Alias nodes cannot have tags")}toJSON(e,n){if(!n)return ue(this.source,e,n);let{anchors:r,maxAliasCount:s}=n,i=r.get(this.source);if(!i||i.res===void 0){let o="This should not happen: Alias anchor was not resolved?";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}if(s>=0&&(i.count+=1,i.aliasCount===0&&(i.aliasCount=Ft(this.source,r)),i.count*i.aliasCount>s)){let o="Excessive alias count indicates a resource exhaustion attack";throw this.cstNode?new p.YAMLReferenceError(this.cstNode,o):new ReferenceError(o)}return i.res}toString(e){return t.stringify(this,e)}};p._defineProperty(be,"default",!0);function pt(t,e){let n=e instanceof P?e.value:e;for(let r of t)if(r instanceof T&&(r.key===e||r.key===n||r.key&&r.key.value===n))return r}var mt=class extends j{add(e,n){e?e instanceof T||(e=new T(e.key||e,e.value)):e=new T(e);let r=pt(this.items,e.key),s=this.schema&&this.schema.sortMapEntries;if(r)if(n)r.value=e.value;else throw new Error(`Key ${e.key} already set`);else if(s){let i=this.items.findIndex(o=>s(e,o)<0);i===-1?this.items.push(e):this.items.splice(i,0,e)}else this.items.push(e)}delete(e){let n=pt(this.items,e);return n?this.items.splice(this.items.indexOf(n),1).length>0:!1}get(e,n){let r=pt(this.items,e),s=r&&r.value;return!n&&s instanceof P?s.value:s}has(e){return!!pt(this.items,e)}set(e,n){this.add(new T(e,n),!0)}toJSON(e,n,r){let s=r?new r:n&&n.mapAsMap?new Map:{};n&&n.onCreate&&n.onCreate(s);for(let i of this.items)i.addToJSMap(n,s);return s}toString(e,n,r){if(!e)return JSON.stringify(this);for(let s of this.items)if(!(s instanceof T))throw new Error(`Map items must all be pairs; found ${JSON.stringify(s)} instead`);return super.toString(e,{blockItem:s=>s.str,flowChars:{start:"{",end:"}"},isMap:!0,itemIndent:e.indent||""},n,r)}},Fs="<<",Kt=class extends T{constructor(e){if(e instanceof T){let n=e.value;n instanceof pe||(n=new pe,n.items.push(e.value),n.range=e.value.range),super(e.key,n),this.range=e.range}else super(new P(Fs),new pe);this.type=T.Type.MERGE_PAIR}addToJSMap(e,n){for(let{source:r}of this.value.items){if(!(r instanceof mt))throw new Error("Merge sources must be maps");let s=r.toJSON(null,e,Map);for(let[i,o]of s)n instanceof Map?n.has(i)||n.set(i,o):n instanceof Set?n.add(i):Object.prototype.hasOwnProperty.call(n,i)||Object.defineProperty(n,i,{value:o,writable:!0,enumerable:!0,configurable:!0})}return n}toString(e,n){let r=this.value;if(r.items.length>1)return super.toString(e,n);this.value=r.items[0];let s=super.toString(e,n);return this.value=r,s}},xo={defaultType:p.Type.BLOCK_LITERAL,lineWidth:76},Ro={trueStr:"true",falseStr:"false"},Do={asBigInt:!1},Yo={nullStr:"null"},Ne={defaultType:p.Type.PLAIN,doubleQuoted:{jsonEncoding:!1,minMultiLineLength:40},fold:{lineWidth:80,minContentWidth:20}};function qn(t,e,n){for(let{format:r,test:s,resolve:i}of e)if(s){let o=t.match(s);if(o){let a=i.apply(null,o);return a instanceof P||(a=new P(a)),r&&(a.format=r),a}}return n&&(t=n(t)),new P(t)}var qs="flow",Fn="block",qt="quoted",Ys=(t,e)=>{let n=t[e+1];for(;n===" "||n===" ";){do n=t[e+=1];while(n&&n!==`
`);n=t[e+1]}return e};function Vt(t,e,n,{indentAtStart:r,lineWidth:s=80,minContentWidth:i=20,onFold:o,onOverflow:a}){if(!s||s<0)return t;let c=Math.max(1+i,1+s-e.length);if(t.length<=c)return t;let l=[],f={},m=s-e.length;typeof r=="number"&&(r>s-Math.max(2,i)?l.push(0):m=s-r);let d,y,h=!1,g=-1,w=-1,C=-1;n===Fn&&(g=Ys(t,g),g!==-1&&(m=g+c));for(let M;M=t[g+=1];){if(n===qt&&M==="\\"){switch(w=g,t[g+1]){case"x":g+=3;break;case"u":g+=5;break;case"U":g+=9;break;default:g+=1}C=g}if(M===`
`)n===Fn&&(g=Ys(t,g)),m=g+c,d=void 0;else{if(M===" "&&y&&y!==" "&&y!==`
`&&y!==" "){let A=t[g+1];A&&A!==" "&&A!==`
`&&A!==" "&&(d=g)}if(g>=m)if(d)l.push(d),m=d+c,d=void 0;else if(n===qt){for(;y===" "||y===" ";)y=M,M=t[g+=1],h=!0;let A=g>C+1?g-2:w-1;if(f[A])return t;l.push(A),f[A]=!0,m=A+c,d=void 0}else h=!0}y=M}if(h&&a&&a(),l.length===0)return t;o&&o();let L=t.slice(0,l[0]);for(let M=0;M<l.length;++M){let A=l[M],_=l[M+1]||t.length;A===0?L=`
${e}${t.slice(0,_)}`:(n===qt&&f[A]&&(L+=`${t[A]}\\`),L+=`
${e}${t.slice(A+1,_)}`)}return L}var Un=({indentAtStart:t})=>t?Object.assign({indentAtStart:t},Ne.fold):Ne.fold,Wt=t=>/^(%|---|\.\.\.)/m.test(t);function $o(t,e,n){if(!e||e<0)return!1;let r=e-n,s=t.length;if(s<=r)return!1;for(let i=0,o=0;i<s;++i)if(t[i]===`
`){if(i-o>r)return!0;if(o=i+1,s-o<=r)return!1}return!0}function we(t,e){let{implicitKey:n}=e,{jsonEncoding:r,minMultiLineLength:s}=Ne.doubleQuoted,i=JSON.stringify(t);if(r)return i;let o=e.indent||(Wt(t)?" ":""),a="",c=0;for(let l=0,f=i[l];f;f=i[++l])if(f===" "&&i[l+1]==="\\"&&i[l+2]==="n"&&(a+=i.slice(c,l)+"\\ ",l+=1,c=l,f="\\"),f==="\\")switch(i[l+1]){case"u":{a+=i.slice(c,l);let m=i.substr(l+2,4);switch(m){case"0000":a+="\\0";break;case"0007":a+="\\a";break;case"000b":a+="\\v";break;case"001b":a+="\\e";break;case"0085":a+="\\N";break;case"00a0":a+="\\_";break;case"2028":a+="\\L";break;case"2029":a+="\\P";break;default:m.substr(0,2)==="00"?a+="\\x"+m.substr(2):a+=i.substr(l,6)}l+=5,c=l+1}break;case"n":if(n||i[l+2]==='"'||i.length<s)l+=1;else{for(a+=i.slice(c,l)+`
`;i[l+2]==="\\"&&i[l+3]==="n"&&i[l+4]!=='"';)a+=`
`,l+=2;a+=o,i[l+2]===" "&&(a+="\\"),l+=1,c=l+1}break;default:l+=1}return a=c?a+i.slice(c):i,n?a:Vt(a,o,qt,Un(e))}function Us(t,e){if(e.implicitKey){if(/\n/.test(t))return we(t,e)}else if(/[ \t]\n|\n[ \t]/.test(t))return we(t,e);let n=e.indent||(Wt(t)?" ":""),r="'"+t.replace(/'/g,"''").replace(/\n+/g,`$&
${n}`)+"'";return e.implicitKey?r:Vt(r,n,qs,Un(e))}function Ut({comment:t,type:e,value:n},r,s,i){if(/\n[\t ]+$/.test(n)||/^\s*$/.test(n))return we(n,r);let o=r.indent||(r.forceBlockIndent||Wt(n)?" ":""),a=o?"2":"1",c=e===p.Type.BLOCK_FOLDED?!1:e===p.Type.BLOCK_LITERAL?!0:!$o(n,Ne.fold.lineWidth,o.length),l=c?"|":">";if(!n)return l+`
`;let f="",m="";if(n=n.replace(/[\n\t ]*$/,y=>{let h=y.indexOf(`
`);return h===-1?l+="-":(n===y||h!==y.length-1)&&(l+="+",i&&i()),m=y.replace(/\n$/,""),""}).replace(/^[\n ]*/,y=>{y.indexOf(" ")!==-1&&(l+=a);let h=y.match(/ +$/);return h?(f=y.slice(0,-h[0].length),h[0]):(f=y,"")}),m&&(m=m.replace(/\n+(?!\n|$)/g,`$&${o}`)),f&&(f=f.replace(/\n+/g,`$&${o}`)),t&&(l+=" #"+t.replace(/ ?[\r\n]+/g," "),s&&s()),!n)return`${l}${a}
${o}${m}`;if(c)return n=n.replace(/\n+/g,`$&${o}`),`${l}
${o}${f}${n}${m}`;n=n.replace(/\n+/g,`
$&`).replace(/(?:^|\n)([\t ].*)(?:([\n\t ]*)\n(?![\n\t ]))?/g,"$1$2").replace(/\n+/g,`$&${o}`);let d=Vt(`${f}${n}${m}`,o,Fn,Ne.fold);return`${l}
${o}${d}`}function Bo(t,e,n,r){let{comment:s,type:i,value:o}=t,{actualString:a,implicitKey:c,indent:l,inFlow:f}=e;if(c&&/[\n[\]{},]/.test(o)||f&&/[[\]{},]/.test(o))return we(o,e);if(!o||/^[\n\t ,[\]{}#&*!|>'"%@`]|^[?-]$|^[?-][ \t]|[\n:][ \t]|[ \t]\n|[\n\t ]#|[\n\t :]$/.test(o))return c||f||o.indexOf(`
`)===-1?o.indexOf('"')!==-1&&o.indexOf("'")===-1?Us(o,e):we(o,e):Ut(t,e,n,r);if(!c&&!f&&i!==p.Type.PLAIN&&o.indexOf(`
`)!==-1)return Ut(t,e,n,r);if(l===""&&Wt(o))return e.forceBlockIndent=!0,Ut(t,e,n,r);let m=o.replace(/\n+/g,`$&
${l}`);if(a){let{tags:y}=e.doc.schema;if(typeof qn(m,y,y.scalarFallback).value!="string")return we(o,e)}let d=c?m:Vt(m,l,qs,Un(e));return s&&!f&&(d.indexOf(`
`)!==-1||s.indexOf(`
`)!==-1)?(n&&n(),Po(d,l,s)):d}function Fo(t,e,n,r){let{defaultType:s}=Ne,{implicitKey:i,inFlow:o}=e,{type:a,value:c}=t;typeof c!="string"&&(c=String(c),t=Object.assign({},t,{value:c}));let l=m=>{switch(m){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:return Ut(t,e,n,r);case p.Type.QUOTE_DOUBLE:return we(c,e);case p.Type.QUOTE_SINGLE:return Us(c,e);case p.Type.PLAIN:return Bo(t,e,n,r);default:return null}};(a!==p.Type.QUOTE_DOUBLE&&/[\x00-\x08\x0b-\x1f\x7f-\x9f]/.test(c)||(i||o)&&(a===p.Type.BLOCK_FOLDED||a===p.Type.BLOCK_LITERAL))&&(a=p.Type.QUOTE_DOUBLE);let f=l(a);if(f===null&&(f=l(s),f===null))throw new Error(`Unsupported default string type ${s}`);return f}function qo({format:t,minFractionDigits:e,tag:n,value:r}){if(typeof r=="bigint")return String(r);if(!isFinite(r))return isNaN(r)?".nan":r<0?"-.inf":".inf";let s=JSON.stringify(r);if(!t&&e&&(!n||n==="tag:yaml.org,2002:float")&&/^\d/.test(s)){let i=s.indexOf(".");i<0&&(i=s.length,s+=".");let o=e-(s.length-i-1);for(;o-- >0;)s+="0"}return s}function Ks(t,e){let n,r;switch(e.type){case p.Type.FLOW_MAP:n="}",r="flow map";break;case p.Type.FLOW_SEQ:n="]",r="flow sequence";break;default:t.push(new p.YAMLSemanticError(e,"Not a flow collection!?"));return}let s;for(let i=e.items.length-1;i>=0;--i){let o=e.items[i];if(!o||o.type!==p.Type.COMMENT){s=o;break}}if(s&&s.char!==n){let i=`Expected ${r} to end with ${n}`,o;typeof s.offset=="number"?(o=new p.YAMLSemanticError(e,i),o.offset=s.offset+1):(o=new p.YAMLSemanticError(s,i),s.range&&s.range.end&&(o.offset=s.range.end-s.range.start)),t.push(o)}}function Vs(t,e){let n=e.context.src[e.range.start-1];if(n!==`
`&&n!==" "&&n!==" "){let r="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,r))}}function Ws(t,e){let n=String(e),r=n.substr(0,8)+"..."+n.substr(-8);return new p.YAMLSemanticError(t,`The "${r}" key is too long`)}function js(t,e){for(let{afterKey:n,before:r,comment:s}of e){let i=t.items[r];i?(n&&i.value&&(i=i.value),s===void 0?(n||!i.commentBefore)&&(i.spaceBefore=!0):i.commentBefore?i.commentBefore+=`
`+s:i.commentBefore=s):s!==void 0&&(t.comment?t.comment+=`
`+s:t.comment=s)}}function Kn(t,e){let n=e.strValue;return n?typeof n=="string"?n:(n.errors.forEach(r=>{r.source||(r.source=e),t.errors.push(r)}),n.str):""}function Uo(t,e){let{handle:n,suffix:r}=e.tag,s=t.tagPrefixes.find(i=>i.handle===n);if(!s){let i=t.getDefaults().tagPrefixes;if(i&&(s=i.find(o=>o.handle===n)),!s)throw new p.YAMLSemanticError(e,`The ${n} tag handle is non-default and was not declared.`)}if(!r)throw new p.YAMLSemanticError(e,`The ${n} tag has no suffix.`);if(n==="!"&&(t.version||t.options.version)==="1.0"){if(r[0]==="^")return t.warnings.push(new p.YAMLWarning(e,"YAML 1.0 ^ tag expansion is not supported")),r;if(/[:/]/.test(r)){let i=r.match(/^([a-z0-9-]+)\/(.*)/i);return i?`tag:${i[1]}.yaml.org,2002:${i[2]}`:`tag:${r}`}}return s.prefix+decodeURIComponent(r)}function Ko(t,e){let{tag:n,type:r}=e,s=!1;if(n){let{handle:i,suffix:o,verbatim:a}=n;if(a){if(a!=="!"&&a!=="!!")return a;let c=`Verbatim tags aren't resolved, so ${a} is invalid.`;t.errors.push(new p.YAMLSemanticError(e,c))}else if(i==="!"&&!o)s=!0;else try{return Uo(t,e)}catch(c){t.errors.push(c)}}switch(r){case p.Type.BLOCK_FOLDED:case p.Type.BLOCK_LITERAL:case p.Type.QUOTE_DOUBLE:case p.Type.QUOTE_SINGLE:return p.defaultTags.STR;case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;case p.Type.PLAIN:return s?p.defaultTags.STR:null;default:return null}}function $s(t,e,n){let{tags:r}=t.schema,s=[];for(let o of r)if(o.tag===n)if(o.test)s.push(o);else{let a=o.resolve(t,e);return a instanceof j?a:new P(a)}let i=Kn(t,e);return typeof i=="string"&&s.length>0?qn(i,s,r.scalarFallback):null}function Vo({type:t}){switch(t){case p.Type.FLOW_MAP:case p.Type.MAP:return p.defaultTags.MAP;case p.Type.FLOW_SEQ:case p.Type.SEQ:return p.defaultTags.SEQ;default:return p.defaultTags.STR}}function Wo(t,e,n){try{let r=$s(t,e,n);if(r)return n&&e.tag&&(r.tag=n),r}catch(r){return r.source||(r.source=e),t.errors.push(r),null}try{let r=Vo(e);if(!r)throw new Error(`The tag ${n} is unavailable`);let s=`The tag ${n} is unavailable, falling back to ${r}`;t.warnings.push(new p.YAMLWarning(e,s));let i=$s(t,e,r);return i.tag=n,i}catch(r){let s=new p.YAMLReferenceError(e,r.message);return s.stack=r.stack,t.errors.push(s),null}}var jo=t=>{if(!t)return!1;let{type:e}=t;return e===p.Type.MAP_KEY||e===p.Type.MAP_VALUE||e===p.Type.SEQ_ITEM};function Qo(t,e){let n={before:[],after:[]},r=!1,s=!1,i=jo(e.context.parent)?e.context.parent.props.concat(e.props):e.props;for(let{start:o,end:a}of i)switch(e.context.src[o]){case p.Char.COMMENT:{if(!e.commentHasRequiredWhitespace(o)){let m="Comments must be separated from other tokens by white space characters";t.push(new p.YAMLSemanticError(e,m))}let{header:c,valueRange:l}=e;(l&&(o>l.start||c&&o>c.start)?n.after:n.before).push(e.context.src.slice(o+1,a));break}case p.Char.ANCHOR:if(r){let c="A node can have at most one anchor";t.push(new p.YAMLSemanticError(e,c))}r=!0;break;case p.Char.TAG:if(s){let c="A node can have at most one tag";t.push(new p.YAMLSemanticError(e,c))}s=!0;break}return{comments:n,hasAnchor:r,hasTag:s}}function Jo(t,e){let{anchors:n,errors:r,schema:s}=t;if(e.type===p.Type.ALIAS){let o=e.rawValue,a=n.getNode(o);if(!a){let l=`Aliased anchor not found: ${o}`;return r.push(new p.YAMLReferenceError(e,l)),null}let c=new be(a);return n._cstAliases.push(c),c}let i=Ko(t,e);if(i)return Wo(t,e,i);if(e.type!==p.Type.PLAIN){let o=`Failed to resolve ${e.type} node here`;return r.push(new p.YAMLSyntaxError(e,o)),null}try{let o=Kn(t,e);return qn(o,s.tags,s.tags.scalarFallback)}catch(o){return o.source||(o.source=e),r.push(o),null}}function me(t,e){if(!e)return null;e.error&&t.errors.push(e.error);let{comments:n,hasAnchor:r,hasTag:s}=Qo(t.errors,e);if(r){let{anchors:o}=t,a=e.anchor,c=o.getNode(a);c&&(o.map[o.newName(a)]=c),o.map[a]=e}if(e.type===p.Type.ALIAS&&(r||s)){let o="An alias node must not specify any properties";t.errors.push(new p.YAMLSemanticError(e,o))}let i=Jo(t,e);if(i){i.range=[e.range.start,e.range.end],t.options.keepCstNodes&&(i.cstNode=e),t.options.keepNodeTypes&&(i.type=e.type);let o=n.before.join(`
`);o&&(i.commentBefore=i.commentBefore?`${i.commentBefore}
${o}`:o);let a=n.after.join(`
`);a&&(i.comment=i.comment?`${i.comment}
${a}`:a)}return e.resolved=i}function Go(t,e){if(e.type!==p.Type.MAP&&e.type!==p.Type.FLOW_MAP){let o=`A ${e.type} node cannot be resolved as a mapping`;return t.errors.push(new p.YAMLSyntaxError(e,o)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_MAP?Zo(t,e):zo(t,e),s=new mt;s.items=r,js(s,n);let i=!1;for(let o=0;o<r.length;++o){let{key:a}=r[o];if(a instanceof j&&(i=!0),t.schema.merge&&a&&a.value===Fs){r[o]=new Kt(r[o]);let c=r[o].value.items,l=null;c.some(f=>{if(f instanceof be){let{type:m}=f.source;return m===p.Type.MAP||m===p.Type.FLOW_MAP?!1:l="Merge nodes aliases can only point to maps"}return l="Merge nodes can only have Alias nodes as values"}),l&&t.errors.push(new p.YAMLSemanticError(e,l))}else for(let c=o+1;c<r.length;++c){let{key:l}=r[c];if(a===l||a&&l&&Object.prototype.hasOwnProperty.call(a,"value")&&a.value===l.value){let f=`Map keys must be unique; "${a}" is repeated`;t.errors.push(new p.YAMLSemanticError(e,f));break}}}if(i&&!t.options.mapAsMap){let o="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,o))}return e.resolved=s,s}var Ho=({context:{lineStart:t,node:e,src:n},props:r})=>{if(r.length===0)return!1;let{start:s}=r[0];if(e&&s>e.valueRange.start||n[s]!==p.Char.COMMENT)return!1;for(let i=t;i<s;++i)if(n[i]===`
`)return!1;return!0};function Xo(t,e){if(!Ho(t))return;let n=t.getPropValue(0,p.Char.COMMENT,!0),r=!1,s=e.value.commentBefore;if(s&&s.startsWith(n))e.value.commentBefore=s.substr(n.length+1),r=!0;else{let i=e.value.comment;!t.node&&i&&i.startsWith(n)&&(e.value.comment=i.substr(n.length+1),r=!0)}r&&(e.comment=n)}function zo(t,e){let n=[],r=[],s,i=null;for(let o=0;o<e.items.length;++o){let a=e.items[o];switch(a.type){case p.Type.BLANK_LINE:n.push({afterKey:!!s,before:r.length});break;case p.Type.COMMENT:n.push({afterKey:!!s,before:r.length,comment:a.comment});break;case p.Type.MAP_KEY:s!==void 0&&r.push(new T(s)),a.error&&t.errors.push(a.error),s=me(t,a.node),i=null;break;case p.Type.MAP_VALUE:{if(s===void 0&&(s=null),a.error&&t.errors.push(a.error),!a.context.atLineStart&&a.node&&a.node.type===p.Type.MAP&&!a.node.context.atLineStart){let f="Nested mappings are not allowed in compact mappings";t.errors.push(new p.YAMLSemanticError(a.node,f))}let c=a.node;if(!c&&a.props.length>0){c=new p.PlainValue(p.Type.PLAIN,[]),c.context={parent:a,src:a.context.src};let f=a.range.start+1;if(c.range={start:f,end:f},c.valueRange={start:f,end:f},typeof a.range.origStart=="number"){let m=a.range.origStart+1;c.range.origStart=c.range.origEnd=m,c.valueRange.origStart=c.valueRange.origEnd=m}}let l=new T(s,me(t,c));Xo(a,l),r.push(l),s&&typeof i=="number"&&a.range.start>i+1024&&t.errors.push(Ws(e,s)),s=void 0,i=null}break;default:s!==void 0&&r.push(new T(s)),s=me(t,a),i=a.range.start,a.error&&t.errors.push(a.error);e:for(let c=o+1;;++c){let l=e.items[c];switch(l&&l.type){case p.Type.BLANK_LINE:case p.Type.COMMENT:continue e;case p.Type.MAP_VALUE:break e;default:{let f="Implicit map keys need to be followed by map values";t.errors.push(new p.YAMLSemanticError(a,f));break e}}}if(a.valueRangeContainsNewline){let c="Implicit map keys need to be on a single line";t.errors.push(new p.YAMLSemanticError(a,c))}}}return s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function Zo(t,e){let n=[],r=[],s,i=!1,o="{";for(let a=0;a<e.items.length;++a){let c=e.items[a];if(typeof c.char=="string"){let{char:l,offset:f}=c;if(l==="?"&&s===void 0&&!i){i=!0,o=":";continue}if(l===":"){if(s===void 0&&(s=null),o===":"){o=",";continue}}else if(i&&(s===void 0&&l!==","&&(s=null),i=!1),s!==void 0&&(r.push(new T(s)),s=void 0,l===",")){o=":";continue}if(l==="}"){if(a===e.items.length-1)continue}else if(l===o){o=":";continue}let m=`Flow map contains an unexpected ${l}`,d=new p.YAMLSyntaxError(e,m);d.offset=f,t.errors.push(d)}else c.type===p.Type.BLANK_LINE?n.push({afterKey:!!s,before:r.length}):c.type===p.Type.COMMENT?(Vs(t.errors,c),n.push({afterKey:!!s,before:r.length,comment:c.comment})):s===void 0?(o===","&&t.errors.push(new p.YAMLSemanticError(c,"Separator , missing in flow map")),s=me(t,c)):(o!==","&&t.errors.push(new p.YAMLSemanticError(c,"Indicator : missing in flow map entry")),r.push(new T(s,me(t,c))),s=void 0,i=!1)}return Ks(t.errors,e),s!==void 0&&r.push(new T(s)),{comments:n,items:r}}function ea(t,e){if(e.type!==p.Type.SEQ&&e.type!==p.Type.FLOW_SEQ){let i=`A ${e.type} node cannot be resolved as a sequence`;return t.errors.push(new p.YAMLSyntaxError(e,i)),null}let{comments:n,items:r}=e.type===p.Type.FLOW_SEQ?na(t,e):ta(t,e),s=new pe;if(s.items=r,js(s,n),!t.options.mapAsMap&&r.some(i=>i instanceof T&&i.key instanceof j)){let i="Keys with collection values will be stringified as YAML due to JS Object restrictions. Use mapAsMap: true to avoid this.";t.warnings.push(new p.YAMLWarning(e,i))}return e.resolved=s,s}function ta(t,e){let n=[],r=[];for(let s=0;s<e.items.length;++s){let i=e.items[s];switch(i.type){case p.Type.BLANK_LINE:n.push({before:r.length});break;case p.Type.COMMENT:n.push({comment:i.comment,before:r.length});break;case p.Type.SEQ_ITEM:if(i.error&&t.errors.push(i.error),r.push(me(t,i.node)),i.hasProps){let o="Sequence items cannot have tags or anchors before the - indicator";t.errors.push(new p.YAMLSemanticError(i,o))}break;default:i.error&&t.errors.push(i.error),t.errors.push(new p.YAMLSyntaxError(i,`Unexpected ${i.type} node in sequence`))}}return{comments:n,items:r}}function na(t,e){let n=[],r=[],s=!1,i,o=null,a="[",c=null;for(let l=0;l<e.items.length;++l){let f=e.items[l];if(typeof f.char=="string"){let{char:m,offset:d}=f;if(m!==":"&&(s||i!==void 0)&&(s&&i===void 0&&(i=a?r.pop():null),r.push(new T(i)),s=!1,i=void 0,o=null),m===a)a=null;else if(!a&&m==="?")s=!0;else if(a!=="["&&m===":"&&i===void 0){if(a===","){if(i=r.pop(),i instanceof T){let y="Chaining flow sequence pairs is invalid",h=new p.YAMLSemanticError(e,y);h.offset=d,t.errors.push(h)}if(!s&&typeof o=="number"){let y=f.range?f.range.start:f.offset;y>o+1024&&t.errors.push(Ws(e,i));let{src:h}=c.context;for(let g=o;g<y;++g)if(h[g]===`
`){let w="Implicit keys of flow sequence pairs need to be on a single line";t.errors.push(new p.YAMLSemanticError(c,w));break}}}else i=null;o=null,s=!1,a=null}else if(a==="["||m!=="]"||l<e.items.length-1){let y=`Flow sequence contains an unexpected ${m}`,h=new p.YAMLSyntaxError(e,y);h.offset=d,t.errors.push(h)}}else if(f.type===p.Type.BLANK_LINE)n.push({before:r.length});else if(f.type===p.Type.COMMENT)Vs(t.errors,f),n.push({comment:f.comment,before:r.length});else{if(a){let d=`Expected a ${a} in flow sequence`;t.errors.push(new p.YAMLSemanticError(f,d))}let m=me(t,f);i===void 0?(r.push(m),c=f):(r.push(new T(i,m)),i=void 0),o=f.range.start,a=","}}return Ks(t.errors,e),i!==void 0&&r.push(new T(i)),{comments:n,items:r}}k.Alias=be;k.Collection=j;k.Merge=Kt;k.Node=W;k.Pair=T;k.Scalar=P;k.YAMLMap=mt;k.YAMLSeq=pe;k.addComment=Fe;k.binaryOptions=xo;k.boolOptions=Ro;k.findPair=pt;k.intOptions=Do;k.isEmptyPath=Bs;k.nullOptions=Yo;k.resolveMap=Go;k.resolveNode=me;k.resolveSeq=ea;k.resolveString=Kn;k.strOptions=Ne;k.stringifyNumber=qo;k.stringifyString=Fo;k.toJSON=ue});var Qn=te(z=>{"use strict";var Q=le(),O=qe(),ra={identify:t=>t instanceof Uint8Array,default:!1,tag:"tag:yaml.org,2002:binary",resolve:(t,e)=>{let n=O.resolveString(t,e);if(typeof Buffer=="function")return Buffer.from(n,"base64");if(typeof atob=="function"){let r=atob(n.replace(/[\n\r]/g,"")),s=new Uint8Array(r.length);for(let i=0;i<r.length;++i)s[i]=r.charCodeAt(i);return s}else{let r="This environment does not support reading binary tags; either Buffer or atob is required";return t.errors.push(new Q.YAMLReferenceError(e,r)),null}},options:O.binaryOptions,stringify:({comment:t,type:e,value:n},r,s,i)=>{let o;if(typeof Buffer=="function")o=n instanceof Buffer?n.toString("base64"):Buffer.from(n.buffer).toString("base64");else if(typeof btoa=="function"){let a="";for(let c=0;c<n.length;++c)a+=String.fromCharCode(n[c]);o=btoa(a)}else throw new Error("This environment does not support writing binary tags; either Buffer or btoa is required");if(e||(e=O.binaryOptions.defaultType),e===Q.Type.QUOTE_DOUBLE)n=o;else{let{lineWidth:a}=O.binaryOptions,c=Math.ceil(o.length/a),l=new Array(c);for(let f=0,m=0;f<c;++f,m+=a)l[f]=o.substr(m,a);n=l.join(e===Q.Type.BLOCK_LITERAL?`
`:" ")}return O.stringifyString({comment:t,type:e,value:n},r,s,i)}};function Js(t,e){let n=O.resolveSeq(t,e);for(let r=0;r<n.items.length;++r){let s=n.items[r];if(!(s instanceof O.Pair)){if(s instanceof O.YAMLMap){if(s.items.length>1){let o="Each pair must have its own sequence indicator";throw new Q.YAMLSemanticError(e,o)}let i=s.items[0]||new O.Pair;s.commentBefore&&(i.commentBefore=i.commentBefore?`${s.commentBefore}
${i.commentBefore}`:s.commentBefore),s.comment&&(i.comment=i.comment?`${s.comment}
${i.comment}`:s.comment),s=i}n.items[r]=s instanceof O.Pair?s:new O.Pair(s)}}return n}function Gs(t,e,n){let r=new O.YAMLSeq(t);r.tag="tag:yaml.org,2002:pairs";for(let s of e){let i,o;if(Array.isArray(s))if(s.length===2)i=s[0],o=s[1];else throw new TypeError(`Expected [key, value] tuple: ${s}`);else if(s&&s instanceof Object){let c=Object.keys(s);if(c.length===1)i=c[0],o=s[i];else throw new TypeError(`Expected { key: value } tuple: ${s}`)}else i=s;let a=t.createPair(i,o,n);r.items.push(a)}return r}var sa={default:!1,tag:"tag:yaml.org,2002:pairs",resolve:Js,createNode:Gs},Ue=class t extends O.YAMLSeq{constructor(){super(),Q._defineProperty(this,"add",O.YAMLMap.prototype.add.bind(this)),Q._defineProperty(this,"delete",O.YAMLMap.prototype.delete.bind(this)),Q._defineProperty(this,"get",O.YAMLMap.prototype.get.bind(this)),Q._defineProperty(this,"has",O.YAMLMap.prototype.has.bind(this)),Q._defineProperty(this,"set",O.YAMLMap.prototype.set.bind(this)),this.tag=t.tag}toJSON(e,n){let r=new Map;n&&n.onCreate&&n.onCreate(r);for(let s of this.items){let i,o;if(s instanceof O.Pair?(i=O.toJSON(s.key,"",n),o=O.toJSON(s.value,i,n)):i=O.toJSON(s,"",n),r.has(i))throw new Error("Ordered maps must not include duplicate keys");r.set(i,o)}return r}};Q._defineProperty(Ue,"tag","tag:yaml.org,2002:omap");function ia(t,e){let n=Js(t,e),r=[];for(let{key:s}of n.items)if(s instanceof O.Scalar)if(r.includes(s.value)){let i="Ordered maps must not include duplicate keys";throw new Q.YAMLSemanticError(e,i)}else r.push(s.value);return Object.assign(new Ue,n)}function oa(t,e,n){let r=Gs(t,e,n),s=new Ue;return s.items=r.items,s}var aa={identify:t=>t instanceof Map,nodeClass:Ue,default:!1,tag:"tag:yaml.org,2002:omap",resolve:ia,createNode:oa},Ke=class t extends O.YAMLMap{constructor(){super(),this.tag=t.tag}add(e){let n=e instanceof O.Pair?e:new O.Pair(e);O.findPair(this.items,n.key)||this.items.push(n)}get(e,n){let r=O.findPair(this.items,e);return!n&&r instanceof O.Pair?r.key instanceof O.Scalar?r.key.value:r.key:r}set(e,n){if(typeof n!="boolean")throw new Error(`Expected boolean value for set(key, value) in a YAML set, not ${typeof n}`);let r=O.findPair(this.items,e);r&&!n?this.items.splice(this.items.indexOf(r),1):!r&&n&&this.items.push(new O.Pair(e))}toJSON(e,n){return super.toJSON(e,n,Set)}toString(e,n,r){if(!e)return JSON.stringify(this);if(this.hasAllNullValues())return super.toString(e,n,r);throw new Error("Set items must all have null values")}};Q._defineProperty(Ke,"tag","tag:yaml.org,2002:set");function ca(t,e){let n=O.resolveMap(t,e);if(!n.hasAllNullValues())throw new Q.YAMLSemanticError(e,"Set items must all have null values");return Object.assign(new Ke,n)}function la(t,e,n){let r=new Ke;for(let s of e)r.items.push(t.createPair(s,null,n));return r}var fa={identify:t=>t instanceof Set,nodeClass:Ke,default:!1,tag:"tag:yaml.org,2002:set",resolve:ca,createNode:la},Vn=(t,e)=>{let n=e.split(":").reduce((r,s)=>r*60+Number(s),0);return t==="-"?-n:n},Hs=({value:t})=>{if(isNaN(t)||!isFinite(t))return O.stringifyNumber(t);let e="";t<0&&(e="-",t=Math.abs(t));let n=[t%60];return t<60?n.unshift(0):(t=Math.round((t-n[0])/60),n.unshift(t%60),t>=60&&(t=Math.round((t-n[0])/60),n.unshift(t))),e+n.map(r=>r<10?"0"+String(r):String(r)).join(":").replace(/000000\d*$/,"")},ua={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:int",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+)$/,resolve:(t,e,n)=>Vn(e,n.replace(/_/g,"")),stringify:Hs},pa={identify:t=>typeof t=="number",default:!0,tag:"tag:yaml.org,2002:float",format:"TIME",test:/^([-+]?)([0-9][0-9_]*(?::[0-5]?[0-9])+\.[0-9_]*)$/,resolve:(t,e,n)=>Vn(e,n.replace(/_/g,"")),stringify:Hs},ma={identify:t=>t instanceof Date,default:!0,tag:"tag:yaml.org,2002:timestamp",test:RegExp("^(?:([0-9]{4})-([0-9]{1,2})-([0-9]{1,2})(?:(?:t|T|[ \\t]+)([0-9]{1,2}):([0-9]{1,2}):([0-9]{1,2}(\\.[0-9]+)?)(?:[ \\t]*(Z|[-+][012]?[0-9](?::[0-9]{2})?))?)?)$"),resolve:(t,e,n,r,s,i,o,a,c)=>{a&&(a=(a+"00").substr(1,3));let l=Date.UTC(e,n-1,r,s||0,i||0,o||0,a||0);if(c&&c!=="Z"){let f=Vn(c[0],c.slice(1));Math.abs(f)<30&&(f*=60),l-=6e4*f}return new Date(l)},stringify:({value:t})=>t.toISOString().replace(/((T00:00)?:00)?\.000Z$/,"")};function Wn(t){let e={};return t?typeof YAML_SILENCE_DEPRECATION_WARNINGS<"u"?!YAML_SILENCE_DEPRECATION_WARNINGS:!e.YAML_SILENCE_DEPRECATION_WARNINGS:typeof YAML_SILENCE_WARNINGS<"u"?!YAML_SILENCE_WARNINGS:!e.YAML_SILENCE_WARNINGS}function jn(t,e){Wn(!1)&&console.warn(e?`${e}: ${t}`:t)}function ha(t){if(Wn(!0)){let e=t.replace(/.*yaml[/\\]/i,"").replace(/\.js$/,"").replace(/\\/g,"/");jn(`The endpoint 'yaml/${e}' will be removed in a future release.`,"DeprecationWarning")}}var Qs={};function ga(t,e){if(!Qs[t]&&Wn(!0)){Qs[t]=!0;let n=`The option '${t}' will be removed in a future release`;n+=e?`, use '${e}' instead.`:".",jn(n,"DeprecationWarning")}}z.binary=ra;z.floatTime=pa;z.intTime=ua;z.omap=aa;z.pairs=sa;z.set=fa;z.timestamp=ma;z.warn=jn;z.warnFileDeprecation=ha;z.warnOptionDep Line truncated
${e.indent}${c}`:c}var zn=class t{static validAnchorNode(e){return e instanceof S.Scalar||e instanceof S.YAMLSeq||e instanceof S.YAMLMap}constructor(e){Y._defineProperty(this,"map",Object.create(null)),this.prefix=e}createAlias(e,n){return this.setAnchor(e,n),new S.Alias(e)}createMergePair(...e){let n=new S.Merge;return n.value.items=e.map(r=>{if(r instanceof S.Alias){if(r.source instanceof S.YAMLMap)return r}else if(r instanceof S.YAMLMap)return this.createAlias(r);throw new Error("Merge sources must be Map nodes or their Aliases")}),n}getName(e){let{map:n}=this;return Object.keys(n).find(r=>n[r]===e)}getNames(){return Object.keys(this.map)}getNode(e){return this.map[e]}newName(e){e||(e=this.prefix);let n=Object.keys(this.map);for(let r=1;;++r){let s=`${e}${r}`;if(!n.includes(s))return s}}resolveNodes(){let{map:e,_cstAliases:n}=this;Object.keys(e).forEach(r=>{e[r]=e[r].resolved}),n.forEach(r=>{r.source=r.source.resolved}),delete this._cstAliases}setAnchor(e,n){if(e!=null&&!t.validAnchorNode(e))throw new Error("Anchors may only be set for Scalar, Seq and Map nodes");if(n&&/[\x00-\x19\s,[\]{}]/.test(n))throw new Error("Anchor names must not contain whitespace or control characters");let{map:r}=this,s=e&&Object.keys(r).find(i=>r[i]===e);if(s)if(n)s!==n&&(delete r[s],r[n]=e);else return s;else{if(!n){if(!e)return null;n=this.newName()}r[n]=e}return n}},zt=(t,e)=>{if(t&&typeof t=="object"){let{tag:n}=t;t instanceof S.Collection?(n&&(e[n]=!0),t.items.forEach(r=>zt(r,e))):t instanceof S.Pair?(zt(t.key,e),zt(t.value,e)):t instanceof S.Scalar&&n&&(e[n]=!0)}return e},Ia=t=>Object.keys(zt(t,{}));function Pa(t,e){let n={before:[],after:[]},r,s=!1;for(let i of e)if(i.valueRange){if(r!==void 0){let a="Document contains trailing content not separated by a ... or --- line";t.errors.push(new Y.YAMLSyntaxError(i,a));break}let o=S.resolveNode(t,i);s&&(o.spaceBefore=!0,s=!1),r=o}else i.comment!==null?(r===void 0?n.before:n.after).push(i.comment):i.type===Y.Type.BLANK_LINE&&(s=!0,r===void 0&&n.before.length>0&&!t.commentBefore&&(t.commentBefore=n.before.join(`
`),n.before=[]));if(t.contents=r||null,!r)t.comment=n.before.concat(n.after).join(`
`)||null;else{let i=n.before.join(`
`);if(i){let o=r instanceof S.Collection&&r.items[0]?r.items[0]:r;o.commentBefore=o.commentBefore?`${i}
${o.commentBefore}`:i}t.comment=n.after.join(`
`)||null}}function _a({tagPrefixes:t},e){let[n,r]=e.parameters;if(!n||!r){let s="Insufficient parameters given for %TAG directive";throw new Y.YAMLSemanticError(e,s)}if(t.some(s=>s.handle===n)){let s="The %TAG directive must only be given at most once per handle in the same document.";throw new Y.YAMLSemanticError(e,s)}return{handle:n,prefix:r}}function xa(t,e){let[n]=e.parameters;if(e.name==="YAML:1.0"&&(n="1.0"),!n){let r="Insufficient parameters given for %YAML directive";throw new Y.YAMLSemanticError(e,r)}if(!pi[n]){let s=`Document will be parsed as YAML ${t.version||t.options.version} rather than YAML ${n}`;t.warnings.push(new Y.YAMLWarning(e,s))}return n}function Ra(t,e,n){let r=[],s=!1;for(let i of e){let{comment:o,name:a}=i;switch(a){case"TAG":try{t.tagPrefixes.push(_a(t,i))}catch(c){t.errors.push(c)}s=!0;break;case"YAML":case"YAML:1.0":if(t.version){let c="The %YAML directive must only be given at most once per document.";t.errors.push(new Y.YAMLSemanticError(i,c))}try{t.version=xa(t,i)}catch(c){t.errors.push(c)}s=!0;break;default:if(a){let c=`YAML only supports %TAG and %YAML directives, and not %${a}`;t.warnings.push(new Y.YAMLWarning(i,c))}}o&&r.push(o)}if(n&&!s&&(t.version||n.version||t.options.version)==="1.1"){let i=({handle:o,prefix:a})=>({handle:o,prefix:a});t.tagPrefixes=n.tagPrefixes.map(i),t.version=n.version}t.commentBefore=r.join(`
`)||null}function Ve(t){if(t instanceof S.Collection)return!0;throw new Error("Expected a YAML collection as document contents")}var Zt=class t{constructor(e){this.anchors=new zn(e.anchorPrefix),this.commentBefore=null,this.comment=null,this.contents=null,this.directivesEndMarker=null,this.errors=[],this.options=e,this.schema=null,this.tagPrefixes=[],this.version=null,this.warnings=[]}add(e){return Ve(this.contents),this.contents.add(e)}addIn(e,n){Ve(this.contents),this.contents.addIn(e,n)}delete(e){return Ve(this.contents),this.contents.delete(e)}deleteIn(e){return S.isEmptyPath(e)?this.contents==null?!1:(this.contents=null,!0):(Ve(this.contents),this.contents.deleteIn(e))}getDefaults(){return t.defaults[this.version]||t.defaults[this.options.version]||{}}get(e,n){return this.contents instanceof S.Collection?this.contents.get(e,n):void 0}getIn(e,n){return S.isEmptyPath(e)?!n&&this.contents instanceof S.Scalar?this.contents.value:this.contents:this.contents instanceof S.Collection?this.contents.getIn(e,n):void 0}has(e){return this.contents instanceof S.Collection?this.contents.has(e):!1}hasIn(e){return S.isEmptyPath(e)?this.contents!==void 0:this.contents instanceof S.Collection?this.contents.hasIn(e):!1}set(e,n){Ve(this.contents),this.contents.set(e,n)}setIn(e,n){S.isEmptyPath(e)?this.contents=n:(Ve(this.contents),this.contents.setIn(e,n))}setSchema(e,n){if(!e&&!n&&this.schema)return;typeof e=="number"&&(e=e.toFixed(1)),e==="1.0"||e==="1.1"||e==="1.2"?(this.version?this.version=e:this.options.version=e,delete this.options.schema):e&&typeof e=="string"&&(this.options.schema=e),Array.isArray(n)&&(this.options.customTags=n);let r=Object.assign({},this.getDefaults(),this.options);this.schema=new fi.Schema(r)}parse(e,n){this.options.keepCstNodes&&(this.cstNode=e),this.options.keepNodeTypes&&(this.type="DOCUMENT");let{directives:r=[],contents:s=[],directivesEndMarker:i,error:o,valueRange:a}=e;if(o&&(o.source||(o.source=this),this.errors.push(o)),Ra(this,r,n),i&&(this.directivesEndMarker=!0),this.range=a?[a.start,a.end]:null,this.setSchema(),this.anchors._cstAliases=[],Pa(this,s),this.anchors.resolveNodes(),this.options.prettyErrors){for(let c of this.errors)c instanceof Y.YAMLError&&c.makePretty();for(let c of this.warnings)c instanceof Y.YAMLError&&c.makePretty()}return this}listNonDefaultTags(){return Ia(this.contents).filter(e=>e.indexOf(fi.Schema.defaultPrefix)!==0)}setTagPrefix(e,n){if(e[0]!=="!"||e[e.length-1]!=="!")throw new Error("Handle must start and end with !");if(n){let r=this.tagPrefixes.find(s=>s.handle===e);r?r.prefix=n:this.tagPrefixes.push({handle:e,prefix:n})}else this.tagPrefixes=this.tagPrefixes.filter(r=>r.handle!==e)}toJSON(e,n){let{keepBlobsInJSON:r,mapAsMap:s,maxAliasCount:i}=this.options,o=r&&(typeof e!="string"||!(this.contents instanceof S.Scalar)),a={doc:this,indentStep:" ",keep:o,mapAsMap:o&&!!s,maxAliasCount:i,stringify:Xt},c=Object.keys(this.anchors.map);c.length>0&&(a.anchors=new Map(c.map(f=>[this.anchors.map[f],{alias:[],aliasCount:0,count:1}])));let l=S.toJSON(this.contents,e,a);if(typeof n=="function"&&a.anchors)for(let{count:f,res:m}of a.anchors.values())n(m,f);return l}toString(){if(this.errors.length>0)throw new Error("Document with errors cannot be stringified");let e=this.options.indent;if(!Number.isInteger(e)||e<=0){let c=JSON.stringify(e);throw new Error(`"indent" option must be a positive integer, not ${c}`)}this.setSchema();let n=[],r=!1;if(this.version){let c="%YAML 1.2";this.schema.name==="yaml-1.1"&&(this.version==="1.0"?c="%YAML:1.0":this.version==="1.1"&&(c="%YAML 1.1")),n.push(c),r=!0}let s=this.listNonDefaultTags();this.tagPrefixes.forEach(({handle:c,prefix:l})=>{s.some(f=>f.indexOf(l)===0)&&(n.push(`%TAG ${c} ${l}`),r=!0)}),(r||this.directivesEndMarker)&&n.push("---"),this.commentBefore&&((r||!this.directivesEndMarker)&&n.unshift(""),n.unshift(this.commentBefore.replace(/^/gm,"#")));let i={anchors:Object.create(null),doc:this,indent:"",indentStep:" ".repeat(e),stringify:Xt},o=!1,a=null;if(this.contents){this.contents instanceof S.Node&&(this.contents.spaceBefore&&(r||this.directivesEndMarker)&&n.push(""),this.contents.commentBefore&&n.push(this.contents.commentBefore.replace(/^/gm,"#")),i.forceBlockIndent=!!this.comment,a=this.contents.comment);let c=a?null:()=>o=!0,l=Xt(this.contents,i,()=>a=null,c);n.push(S.addComment(l,"",a))}else this.contents!==void 0&&n.push(Xt(this.contents,i));return this.comment&&((!o||a)&&n[n.length-1]!==""&&n.push(""),n.push(this.comment.replace(/^/gm,"#"))),n.join(`
`)+`
`}};Y._defineProperty(Zt,"defaults",pi);en.Document=Zt;en.defaultOptions=Ca;en.scalarOptions=Ma});var di=te(gi=>{"use strict";var Zn=Rs(),Oe=mi(),Da=Xn(),Ya=le(),$a=Qn();qe();function Ba(t,e=!0,n){n===void 0&&typeof e=="string"&&(n=e,e=!0);let r=Object.assign({},Oe.Document.defaults[Oe.defaultOptions.version],Oe.defaultOptions);return new Da.Schema(r).createNode(t,e,n)}var We=class extends Oe.Document{constructor(e){super(Object.assign({},Oe.defaultOptions,e))}};function Fa(t,e){let n=[],r;for(let s of Zn.parse(t)){let i=new We(e);i.parse(s,r),n.push(i),r=i}return n}function hi(t,e){let n=Zn.parse(t),r=new We(e).parse(n[0]);if(n.length>1){let s="Source contains multiple documents; please use YAML.parseAllDocuments()";r.errors.unshift(new Ya.YAMLSemanticError(n[1],s))}return r}function qa(t,e){let n=hi(t,e);if(n.warnings.forEach(r=>$a.warn(r)),n.errors.length>0)throw n.errors[0];return n.toJSON()}function Ua(t,e){let n=new We(e);return n.contents=t,String(n)}var Ka={createNode:Ba,defaultOptions:Oe.defaultOptions,Document:We,parse:qa,parseAllDocuments:Fa,parseCST:Zn.parse,parseDocument:hi,scalarOptions:Oe.scalarOptions,stringify:Ua};gi.YAML=Ka});var Ei=te((qm,yi)=>{yi.exports=di().YAML});var Si=te(J=>{"use strict";var je=qe(),Qe=le();J.findPair=je.findPair;J.parseMap=je.resolveMap;J.parseSeq=je.resolveSeq;J.stringifyNumber=je.stringifyNumber;J.stringifyString=je.stringifyString;J.toJSON=je.toJSON;J.Type=Qe.Type;J.YAMLError=Qe.YAMLError;J.YAMLReferenceError=Qe.YAMLReferenceError;J.YAMLSemanticError=Qe.YAMLSemanticError;J.YAMLSyntaxError=Qe.YAMLSyntaxError;J.YAMLWarning=Qe.YAMLWarning});var nr={};rr(nr,{languages:()=>_r,options:()=>xr,parsers:()=>tr,printers:()=>Ha});var Pi=(t,e,n,r)=>{if(!(t&&e==null))return e.replaceAll?e.replaceAll(n,r):n.global?e.replace(n,r):e.split(n).join(r)},yt=Pi;var Le="string",Je="array",Ge="cursor",He="indent",Ae="align",Xe="trim",Te="group",Ce="fill",he="if-break",ze="indent-if-break",Me="line-suffix",Ze="line-suffix-boundary",Z="line",et="label",ke="break-parent",Et=new Set([Ge,He,Ae,Xe,Te,Ce,he,ze,Me,Ze,Z,et,ke]);var _i=(t,e,n)=>{if(!(t&&e==null))return Array.isArray(e)||typeof e=="string"?e[n<0?e.length+n:n]:e.at(n)},x=_i;function xi(t){if(typeof t=="string")return Le;if(Array.isArray(t))return Je;if(!t)return;let{type:e}=t;if(Et.has(e))return e}var ve=xi;var Ri=t=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(t);function Di(t){let e=t===null?"null":typeof t;if(e!=="string"&&e!=="object")return`Unexpected doc '${e}',
Expected it to be 'string' or 'object'.`;if(ve(t))throw new Error("doc is valid.");let n=Object.prototype.toString.call(t);if(n!=="[object Object]")return`Unexpected doc '${n}'.`;let r=Ri([...Et].map(s=>`'${s}'`));return`Unexpected doc.type '${t.type}'.
Expected it to be ${r}.`}var nn=class extends Error{name="InvalidDocError";constructor(e){super(Di(e)),this.doc=e}},rn=nn;function $i(t,e){if(typeof t=="string")return e(t);let n=new Map;return r(t);function r(i){if(n.has(i))return n.get(i);let o=s(i);return n.set(i,o),o}function s(i){switch(ve(i)){case Je:return e(i.map(r));case Ce:return e({...i,parts:i.parts.map(r)});case he:return e({...i,breakContents:r(i.breakContents),flatContents:r(i.flatContents)});case Te:{let{expandedStates:o,contents:a}=i;return o?(o=o.map(r),a=o[0]):a=r(a),e({...i,contents:a,expandedStates:o})}case Ae:case He:case ze:case et:case Me:return e({...i,contents:r(i.contents)});case Le:case Ge:case Xe:case Ze:case Z:case ke:return e(i);default:throw new rn(i)}}}function ir(t,e=tt){return $i(t,n=>typeof n=="string"?v(e,n.split(`
`)):n)}var sn=()=>{},ge=sn,on=sn,or=sn;function nt(t,e){return ge(e),{type:Ae,contents:e,n:t}}function Ie(t,e={}){return ge(t),on(e.expandedStates,!0),{type:Te,id:e.id,contents:t,break:!!e.shouldBreak,expandedStates:e.expandedStates}}function an(t){return nt(Number.NEGATIVE_INFINITY,t)}function ar(t){return nt({type:"root"},t)}function cr(t){return nt(-1,t)}function cn(t,e){return Ie(t[0],{...e,expandedStates:t})}function St(t){return or(t),{type:Ce,parts:t}}function rt(t,e="",n={}){return ge(t),e!==""&&ge(e),{type:he,breakContents:t,flatContents:e,groupId:n.groupId}}function lr(t){return ge(t),{type:Me,contents:t}}var wt={type:ke};var Bi={type:Z,hard:!0},Fi={type:Z,hard:!0,literal:!0},ne={type:Z},bt={type:Z,soft:!0},N=[Bi,wt],tt=[Fi,wt];function v(t,e){ge(t),on(e);let n=[];for(let r=0;r<e.length;r++)r!==0&&n.push(t),n.push(e[r]);return n}function Nt(t){return(e,n,r)=>{let s=!!(r!=null&&r.backwards);if(n===!1)return!1;let{length:i}=e,o=n;for(;o>=0&&o<i;){let a=e.charAt(o);if(t instanceof RegExp){if(!t.test(a))return o}else if(!t.includes(a))return o;s?o--:o++}return o===-1||o===i?o:!1}}var Mc=Nt(/\s/u),ln=Nt(" "),kc=Nt(",; "),vc=Nt(/[^\n\r]/u);function qi(t,e,n){let r=!!(n!=null&&n.backwards);if(e===!1)return!1;let s=t.charAt(e);if(r){if(t.charAt(e-1)==="\r"&&s===`
`)return e-2;if(s===`
`||s==="\r"||s==="\u2028"||s==="\u2029")return e-1}else{if(s==="\r"&&t.charAt(e+1)===`
`)return e+2;if(s===`
`||s==="\r"||s==="\u2028"||s==="\u2029")return e+1}return e}var fn=qi;function Ui(t,e){let n=e-1;n=ln(t,n,{backwards:!0}),n=fn(t,n,{backwards:!0}),n=ln(t,n,{backwards:!0});let r=fn(t,n,{backwards:!0});return n!==r}var fr=Ui;var un=class extends Error{name="UnexpectedNodeError";constructor(e,n,r="type"){super(`Unexpected ${n} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},ur=un;function pr(t,e){let{node:n}=t;if(n.type==="root"&&e.filepath&&/(?:[/\\]|^)\.(?:prettier|stylelint|lintstaged)rc$/u.test(e.filepath))return async r=>{let s=await r(e.originalText,{parser:"json"});return s?[s,N]:void 0}}pr.getVisitorKeys=()=>[];var mr=pr;var st=null;function it(t){if(st!==null&&typeof st.property){let e=st;return st=it.prototype=null,e}return st=it.prototype=t??Object.create(null),new it}var Ki=10;for(let t=0;t<=Ki;t++)it();function pn(t){return it(t)}function Vi(t,e="type"){pn(t);function n(r){let s=r[e],i=t[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:r});return i}return n}var hr=Vi;var Wi=Object.fromEntries(Object.entries({root:["children"],document:["head","body","children"],documentHead:["children"],documentBody:["children"],directive:[],alias:[],blockLiteral:[],blockFolded:["children"],plain:["children"],quoteSingle:[],quoteDouble:[],mapping:["children"],mappingItem:["key","value","children"],mappingKey:["content","children"],mappingValue:["content","children"],sequence:["children"],sequenceItem:["content","children"],flowMapping:["children"],flowMappingItem:["key","value","children"],flowSequence:["children"],flowSequenceItem:["content","children"],comment:[],tag:[],anchor:[]}).map(([t,e])=>[t,[...e,"anchor","tag","indicatorComment","leadingComments","middleComments","trailingComment","endComments"]])),gr=Wi;var ji=hr(gr),dr=ji;function Pe(t){return t.position.start.offset}function yr(t){return t.position.end.offset}function Er(t){return/^\s*@(?:prettier|format)\s*$/u.test(t)}function Sr(t){return/^\s*#[^\S\n]*@(?:prettier|format)\s*?(?:\n|$)/u.test(t)}function wr(t){return`# @format
${t}`}function Qi(t){return Array.isArray(t)&&t.length>0}var _e=Qi;function H(t,e){return typeof(t==null?void 0:t.type)=="string"&&(!e||e.includes(t.type))}function mn(t,e,n){return e("children"in t?{...t,children:t.children.map(r=>mn(r,e,t))}:t,n)}function xe(t,e,n){Object.defineProperty(t,e,{get:n,enumerable:!1})}function Nr(t,e){let n=0,r=e.length;for(let s=t.position.end.offset-1;s<r;s++){let i=e[s];if(i===`
`&&n++,n===1&&/\S/u.test(i))return!1;if(n===2)return!0}return!1}function Ot(t){let{node:e}=t;switch(e.type){case"tag":case"anchor":case"comment":return!1}let n=t.stack.length;for(let r=1;r<n;r++){let s=t.stack[r],i=t.stack[r-1];if(Array.isArray(i)&&typeof s=="number"&&s!==i.length-1)return!1}return!0}function Lt(t){return _e(t.children)?Lt(x(!1,t.children,-1)):t}function br(t){return t.value.trim()==="prettier-ignore"}function Or(t){let{node:e}=t;if(e.type==="documentBody"){let n=t.parent.head;return R(n)&&br(x(!1,n.endComments,-1))}return ee(e)&&br(x(!1,e.leadingComments,-1))}function Re(t){return!_e(t.children)&&!Ji(t)}function Ji(t){return ee(t)||ie(t)||hn(t)||K(t)||R(t)}function ee(t){return _e(t==null?void 0:t.leadingComments)}function ie(t){return _e(t==null?void 0:t.middleComments)}function hn(t){return t==null?void 0:t.indicatorComment}function K(t){return t==null?void 0:t.trailingComment}function R(t){return _e(t==null?void 0:t.endComments)}function Lr(t){let e=[],n;for(let r of t.split(/( +)/u))r!==" "?n===" "?e.push(r):e.push((e.pop()||"")+r):n===void 0&&e.unshift(""),n=r;return n===" "&&e.push((e.pop()||"")+" "),e[0]===""&&(e.shift(),e.unshift(" "+(e.shift()||""))),e}function Ar(t,e,n){let r=e.split(`
`).map((s,i,o)=>i===0&&i===o.length-1?s:i!==0&&i!==o.length-1?s.trim():i===0?s.trimEnd():s.trimStart());return n.proseWrap==="preserve"?r.map(s=>s.length===0?[]:[s]):r.map(s=>s.length===0?[]:Lr(s)).reduce((s,i,o)=>o!==0&&r[o-1].length>0&&i.length>0&&!(t==="quoteDouble"&&x(!1,x(!1,s,-1),-1).endsWith("\\"))?[...s.slice(0,-1),[...x(!1,s,-1),...i]]:[...s,i],[]).map(s=>n.proseWrap==="never"?[s.join(" ")]:s)}function Tr(t,{parentIndent:e,isLastDescendant:n,options:r}){let s=t.position.start.line===t.position.end.line?"":r.originalText.slice(t.position.start.offset,t.position.end.offset).match(/^[^\n]*\n(.*)$/su)[1],i;if(t.indent===null){let c=s.match(/^(?<leadingSpace> *)[^\n\r ]/mu);i=c?c.groups.leadingSpace.length:Number.POSITIVE_INFINITY}else i=t.indent-1+e;let o=s.split(`
`).map(c=>c.slice(i));if(r.proseWrap==="preserve"||t.type==="blockLiteral")return a(o.map(c=>c.length===0?[]:[c]));return a(o.map(c=>c.length===0?[]:Lr(c)).reduce((c,l,f)=>f!==0&&o[f-1].length>0&&l.length>0&&!/^\s/u.test(l[0])&&!/^\s|\s$/u.test(x(!1,c,-1))?[...c.slice(0,-1),[...x(!1,c,-1),...l]]:[...c,l],[]).map(c=>c.reduce((l,f)=>l.length>0&&/\s$/u.test(x(!1,l,-1))?[...l.slice(0,-1),x(!1,l,-1)+" "+f]:[...l,f],[])).map(c=>r.proseWrap==="never"?[c.join(" ")]:c));function a(c){if(t.chomping==="keep")return x(!1,c,-1).length===0?c.slice(0,-1):c;let l=0;for(let f=c.length-1;f>=0&&c[f].length===0;f--)l++;return l===0?c:l>=2&&!n?c.slice(0,-(l-1)):c.slice(0,-l)}}function ot(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":case"alias":case"flowMapping":case"flowSequence":return!0;default:return!1}}var gn=new WeakMap;function At(t,e){let{node:n,root:r}=t,s;return gn.has(r)?s=gn.get(r):(s=new Set,gn.set(r,s)),!s.has(n.position.end.line)&&(s.add(n.position.end.line),Nr(n,e)&&!dn(t.parent))?bt:""}function dn(t){return R(t)&&!H(t,["documentHead","documentBody","flowMapping","flowSequence"])}function I(t,e){return nt(" ".repeat(t),e)}function Gi(t,e,n){let{node:r}=t,s=t.ancestors.filter(l=>l.type==="sequence"||l.type==="mapping").length,i=Ot(t),o=[r.type==="blockFolded"?">":"|"];r.indent!==null&&o.push(r.indent.toString()),r.chomping!=="clip"&&o.push(r.chomping==="keep"?"+":"-"),hn(r)&&o.push(" ",e("indicatorComment"));let a=Tr(r,{parentIndent:s,isLastDescendant:i,options:n}),c=[];for(let[l,f]of a.entries())l===0&&c.push(N),c.push(St(v(ne,f))),l!==a.length-1?c.push(f.length===0?N:ar(tt)):r.chomping==="keep"&&i&&c.push(an(f.length===0?N:tt));return r.indent===null?o.push(cr(I(n.tabWidth,c))):o.push(an(I(r.indent-1+s,c))),o}var Cr=Gi;function Tt(t,e,n){let{node:r}=t,s=r.type==="flowMapping",i=s?"{":"[",o=s?"}":"]",a=bt;s&&r.children.length>0&&n.bracketSpacing&&(a=ne);let c=x(!1,r.children,-1),l=(c==null?void 0:c.type)==="flowMappingItem"&&Re(c.key)&&Re(c.value);return[i,I(n.tabWidth,[a,Hi(t,e,n),n.trailingComma==="none"?"":rt(","),R(r)?[N,v(N,t.map(e,"endComments"))]:""]),l?"":a,o]}function Hi(t,e,n){return t.map(({isLast:r,node:s,next:i})=>[e(),r?"":[",",ne,s.position.start.line!==i.position.start.line?At(t,n.originalText):""]],"children")}function Xi(t,e,n){var C;let{node:r,parent:s}=t,{key:i,value:o}=r,a=Re(i),c=Re(o);if(a&&c)return": ";let l=e("key"),f=zi(r)?" ":"";if(c)return r.type==="flowMappingItem"&&s.type==="flowMapping"?l:r.type==="mappingItem"&&yn(i.content,n)&&!K(i.content)&&((C=s.tag)==null?void 0:C.value)!=="tag:yaml.org,2002:set"?[l,f,":"]:["? ",I(2,l)];let m=e("value");if(a)return[": ",I(2,m)];if(ee(o)||!ot(i.content))return["? ",I(2,l),N,...t.map(()=>[e(),N],"value","leadingComments"),": ",I(2,m)];if(Zi(i.content)&&!ee(i.content)&&!ie(i.content)&&!K(i.content)&&!R(i)&&!ee(o.content)&&!ie(o.content)&&!R(o)&&yn(o.content,n))return[l,f,": ",m];let d=Symbol("mappingKey"),y=Ie([rt("? "),Ie(I(2,l),{id:d})]),h=[N,": ",I(2,m)],g=[f,":"];ee(o.content)||R(o)&&o.content&&!H(o.content,["mapping","sequence"])||s.type==="mapping"&&K(i.content)&&ot(o.content)||H(o.content,["mapping","sequence"])&&o.content.tag===null&&o.content.anchor===null?g.push(N):o.content?g.push(ne):K(o)&&g.push(" "),g.push(m);let w=I(n.tabWidth,g);return yn(i.content,n)&&!ee(i.content)&&!ie(i.content)&&!R(i)?cn([[l,w]]):cn([[y,rt(h,w,{groupId:d})]])}function yn(t,e){if(!t)return!0;switch(t.type){case"plain":case"quoteSingle":case"quoteDouble":break;case"alias":return!0;default:return!1}if(e.proseWrap==="preserve")return t.position.start.line===t.position.end.line;if(/\\$/mu.test(e.originalText.slice(t.position.start.offset,t.position.end.offset)))return!1;switch(e.proseWrap){case"never":return!t.value.includes(`
`);case"always":return!/[\n ]/u.test(t.value);default:return!1}}function zi(t){var e;return((e=t.key.content)==null?void 0:e.type)==="alias"}function Zi(t){if(!t)return!0;switch(t.type){case"plain":case"quoteDouble":case"quoteSingle":return t.position.start.line===t.position.end.line;case"alias":return!0;default:return!1}}var Mr=Xi;function eo(t){return mn(t,to)}function to(t){switch(t.type){case"document":xe(t,"head",()=>t.children[0]),xe(t,"body",()=>t.children[1]);break;case"documentBody":case"sequenceItem":case"flowSequenceItem":case"mappingKey":case"mappingValue":xe(t,"content",()=>t.children[0]);break;case"mappingItem":case"flowMappingItem":xe(t,"key",()=>t.children[0]),xe(t,"value",()=>t.children[1]);break}return t}var kr=eo;function no(t,e,n){let{node:r}=t,s=[];r.type!=="mappingValue"&&ee(r)&&s.push([v(N,t.map(n,"leadingComments")),N]);let{tag:i,anchor:o}=r;i&&s.push(n("tag")),i&&o&&s.push(" "),o&&s.push(n("anchor"));let a="";return H(r,["mapping","sequence","comment","directive","mappingItem","sequenceItem"])&&!Ot(t)&&(a=At(t,e.originalText)),(i||o)&&(H(r,["sequence","mapping"])&&!ie(r)?s.push(N):s.push(" ")),ie(r)&&s.push([r.middleComments.length===1?"":N,v(N,t.map(n,"middleComments")),N]),Or(t)?s.push(ir(e.originalText.slice(r.position.start.offset,r.position.end.offset).trimEnd())):s.push(Ie(ro(t,e,n))),K(r)&&!H(r,["document","documentHead"])&&s.push(lr([r.type==="mappingValue"&&!r.content?"":" ",t.parent.type==="mappingKey"&&t.getParentNode(2).type==="mapping"&&ot(r)?"":wt,n("trailingComment")])),dn(r)&&s.push(I(r.type==="sequenceItem"?2:0,[N,v(N,t.map(({node:c})=>[fr(e.originalText,Pe(c))?N:"",n()],"endComments"))])),s.push(a),s}function ro(t,e,n){let{node:r}=t;switch(r.type){case"root":{let s=[];t.each(({node:o,next:a,isFirst:c})=>{c||s.push(N),s.push(n()),vr(o,a)?(s.push(N,"..."),K(o)&&s.push(" ",n("trailingComment"))):a&&!K(a.head)&&s.push(N,"---")},"children");let i=Lt(r);return(!H(i,["blockLiteral","blockFolded"])||i.chomping!=="keep")&&s.push(N),s}case"document":{let s=[];return io(t,e)==="head"&&((r.head.children.length>0||r.head.endComments.length>0)&&s.push(n("head")),K(r.head)?s.push(["---"," ",n(["head","trailingComment"])]):s.push("---")),so(r)&&s.push(n("body")),v(N,s)}case"documentHead":return v(N,[...t.map(n,"children"),...t.map(n,"endComments")]);case"documentBody":{let{children:s,endComments:i}=r,o="";if(s.length>0&&i.length>0){let a=Lt(r);H(a,["blockFolded","blockLiteral"])?a.chomping!=="keep"&&(o=[N,N]):o=N}return[v(N,t.map(n,"children")),o,v(N,t.map(n,"endComments"))]}case"directive":return["%",v(" ",[r.name,...r.parameters])];case"comment":return["#",r.value];case"alias":return["*",r.value];case"tag":return e.originalText.slice(r.position.start.offset,r.position.end.offset);case"anchor":return["&",r.value];case"plain":return at(r.type,e.originalText.slice(r.position.start.offset,r.position.end.offset),e);case"quoteDouble":case"quoteSingle":{let s="'",i='"',o=e.originalText.slice(r.position.start.offset+1,r.position.end.offset-1);if(r.type==="quoteSingle"&&o.includes("\\")||r.type==="quoteDouble"&&/\\[^"]/u.test(o)){let c=r.type==="quoteDouble"?i:s;return[c,at(r.type,o,e),c]}if(o.includes(i))return[s,at(r.type,r.type==="quoteDouble"?yt(!1,yt(!1,o,String.raw`\"`,i),"'",s.repeat(2)):o,e),s];if(o.includes(s))return[i,at(r.type,r.type==="quoteSingle"?yt(!1,o,"''",s):o,e),i];let a=e.singleQuote?s:i;return[a,at(r.type,o,e),a]}case"blockFolded":case"blockLiteral":return Cr(t,n,e);case"mapping":case"sequence":return v(N,t.map(n,"children"));case"sequenceItem":return["- ",I(2,r.content?n("content"):"")];case"mappingKey":case"mappingValue":return r.content?n("content"):"";case"mappingItem":case"flowMappingItem":return Mr(t,n,e);case"flowMapping":return Tt(t,n,e);case"flowSequence":return Tt(t,n,e);case"flowSequenceItem":return n("content");default:throw new ur(r,"YAML")}}function so(t){return t.body.children.length>0||R(t.body)}function vr(t,e){return K(t)||e&&(e.head.children.length>0||R(e.head))}function io(t,e){let n=t.node;if(t.isFirst&&/---(?:\s|$)/u.test(e.originalText.slice(Pe(n),Pe(n)+4))||n.head.children.length>0||R(n.head)||K(n.head))return"head";let r=t.next;return vr(n,r)?!1:r?"root":!1}function at(t,e,n){let r=Ar(t,e,n);return v(N,r.map(s=>St(v(ne,s))))}function Ir(t,e){if(H(t))switch(t.type){case"comment":if(Er(t.value))return null;break;case"quoteDouble":case"quoteSingle":e.type="quote";break}}Ir.ignoredProperties=new Set(["position"]);var oo={preprocess:kr,embed:mr,print:no,massageAstNode:Ir,insertPragma:wr,getVisitorKeys:dr},Pr=oo;var _r=[{linguistLanguageId:407,name:"YAML",type:"data",color:"#cb171e",tmScope:"source.yaml",aliases:["yml"],extensions:[".yml",".mir",".reek",".rviz",".sublime-syntax",".syntax",".yaml",".yaml-tmlanguage",".yaml.sed",".yml.mysql"],filenames:[".clang-format",".clang-tidy",".gemrc","CITATION.cff","glide.lock",".prettierrc",".stylelintrc",".lintstagedrc"],aceMode:"yaml",codemirrorMode:"yaml",codemirrorMimeType:"text/x-yaml",parsers:["yaml"]Line truncated
`,Rr="\r",Dr=function(){function t(e){this.length=e.length;for(var n=[0],r=0;r<e.length;)switch(e[r]){case Mt:r+=Mt.length,n.push(r);break;case Rr:r+=Rr.length,e[r]===Mt&&(r+=Mt.length),n.push(r);break;default:r++;break}this.offsets=n}return t.prototype.locationForIndex=function(e){if(e<0||e>this.length)return null;for(var n=0,r=this.offsets;r[n+1]<=e;)n++;var s=e-r[n];return{line:n,column:s}},t.prototype.indexForLocation=function(e){var n=e.line,r=e.column;return n<0||n>=this.offsets.length||r<0||r>this.lengthOfLine(n)?null:this.offsets[n]+r},t.prototype.lengthOfLine=function(e){var n=this.offsets[e],r=e===this.offsets.length-1?this.length:this.offsets[e+1];return r-n},t}();function $(t,e=null){"children"in t&&t.children.forEach(n=>$(n,t)),"anchor"in t&&t.anchor&&$(t.anchor,t),"tag"in t&&t.tag&&$(t.tag,t),"leadingComments"in t&&t.leadingComments.forEach(n=>$(n,t)),"middleComments"in t&&t.middleComments.forEach(n=>$(n,t)),"indicatorComment"in t&&t.indicatorComment&&$(t.indicatorComment,t),"trailingComment"in t&&t.trailingComment&&$(t.trailingComment,t),"endComments"in t&&t.endComments.forEach(n=>$(n,t)),Object.defineProperty(t,"_parent",{value:e,enumerable:!1})}function de(t){return`${t.line}:${t.column}`}function Yr(t){$(t);let e=co(t),n=t.children.slice();t.comments.sort((r,s)=>r.position.start.offset-s.position.end.offset).filter(r=>!r._parent).forEach(r=>{for(;n.length>1&&r.position.start.line>n[0].position.end.line;)n.shift();lo(r,e,n[0])})}function co(t){let e=Array.from(new Array(t.position.end.line),()=>({}));for(let n of t.comments)e[n.position.start.line-1].comment=n;return $r(e,t),e}function $r(t,e){if(e.position.start.offset!==e.position.end.offset){if("leadingComments"in e){let{start:n}=e.position,{leadingAttachableNode:r}=t[n.line-1];(!r||n.column<r.position.start.column)&&(t[n.line-1].leadingAttachableNode=e)}if("trailingComment"in e&&e.position.end.column>1&&e.type!=="document"&&e.type!=="documentHead"){let{end:n}=e.position,{trailingAttachableNode:r}=t[n.line-1];(!r||n.column>=r.position.end.column)&&(t[n.line-1].trailingAttachableNode=e)}if(e.type!=="root"&&e.type!=="document"&&e.type!=="documentHead"&&e.type!=="documentBody"){let{start:n,end:r}=e.position,s=[r.line].concat(n.line===r.line?[]:n.line);for(let i of s){let o=t[i-1].trailingNode;(!o||r.column>=o.position.end.column)&&(t[i-1].trailingNode=e)}}"children"in e&&e.children.forEach(n=>{$r(t,n)})}}function lo(t,e,n){let r=t.position.start.line,{trailingAttachableNode:s}=e[r-1];if(s){if(s.trailingComment)throw new Error(`Unexpected multiple trailing comment at ${de(t.position.start)}`);$(t,s),s.trailingComment=t;return}for(let o=r;o>=n.position.start.line;o--){let{trailingNode:a}=e[o-1],c;if(a)c=a;else if(o!==r&&e[o-1].comment)c=e[o-1].comment._parent;else continue;if((c.type==="sequence"||c.type==="mapping")&&(c=c.children[0]),c.type==="mappingItem"){let[l,f]=c.children;c=Br(l)?l:f}for(;;){if(fo(c,t)){$(t,c),c.endComments.push(t);return}if(!c._parent)break;c=c._parent}break}for(let o=r+1;o<=n.position.end.line;o++){let{leadingAttachableNode:a}=e[o-1];if(a){$(t,a),a.leadingComments.push(t);return}}let i=n.children[1];$(t,i),i.endComments.push(t)}function fo(t,e){if(t.position.start.offset<e.position.start.offset&&t.position.end.offset>e.position.end.offset)switch(t.type){case"flowMapping":case"flowSequence":return t.children.length===0||e.position.start.line>t.children[t.children.length-1].position.end.line}if(e.position.end.offset<t.position.end.offset)return!1;switch(t.type){case"sequenceItem":return e.position.start.column>t.position.start.column;case"mappingKey":case"mappingValue":return e.position.start.column>t._parent.position.start.column&&(t.children.length===0||t.children.length===1&&t.children[0].type!=="blockFolded"&&t.children[0].type!=="blockLiteral")&&(t.type==="mappingValue"||Br(t));default:return!1}}function Br(t){return t.position.start!==t.position.end&&(t.children.length===0||t.position.start.offset!==t.children[0].position.start.offset)}function b(t,e){return{type:t,position:e}}function Fr(t,e,n){return{...b("root",t),children:e,comments:n}}function ct(t){switch(t.type){case"DOCUMENT":for(let e=t.contents.length-1;e>=0;e--)t.contents[e].type==="BLANK_LINE"?t.contents.splice(e,1):ct(t.contents[e]);for(let e=t.directives.length-1;e>=0;e--)t.directives[e].type==="BLANK_LINE"&&t.directives.splice(e,1);break;case"FLOW_MAP":case"FLOW_SEQ":case"MAP":case"SEQ":for(let e=t.items.length-1;e>=0;e--){let n=t.items[e];"char"in n||(n.type==="BLANK_LINE"?t.items.splice(e,1):ct(n))}break;case"MAP_KEY":case"MAP_VALUE":case"SEQ_ITEM":t.node&&ct(t.node);break;case"ALIAS":case"BLANK_LINE":case"BLOCK_FOLDED":case"BLOCK_LITERAL":case"COMMENT":case"DIRECTIVE":case"PLAIN":case"QUOTE_DOUBLE":case"QUOTE_SINGLE":break;default:throw new Error(`Unexpected node type ${JSON.stringify(t.type)}`)}}function X(){return{leadingComments:[]}}function oe(t=null){return{trailingComment:t}}function B(){return{...X(),...oe()}}function qr(t,e,n){return{.. Line truncated