@mkbabb/value.js 0.4.4 → 0.4.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/src/easing.d.ts +112 -0
- package/dist/src/index.d.ts +29 -0
- package/dist/src/math.d.ts +9 -0
- package/dist/src/parsing/color.d.ts +26 -0
- package/dist/src/parsing/index.d.ts +31 -0
- package/dist/src/parsing/math.d.ts +28 -0
- package/dist/src/parsing/units.d.ts +18 -0
- package/dist/src/parsing/utils.d.ts +24 -0
- package/dist/src/transform/decompose.d.ts +61 -0
- package/dist/src/units/color/colorFilter.d.ts +7 -0
- package/dist/src/units/color/constants.d.ts +992 -0
- package/dist/src/units/color/gamut.d.ts +60 -0
- package/dist/src/units/color/index.d.ts +171 -0
- package/dist/src/units/color/matrix.d.ts +28 -0
- package/dist/src/units/color/normalize.d.ts +10 -0
- package/dist/src/units/color/utils.d.ts +77 -0
- package/dist/src/units/constants.d.ts +33 -0
- package/dist/src/units/index.d.ts +51 -0
- package/dist/src/units/normalize.d.ts +9 -0
- package/dist/src/units/utils.d.ts +17 -0
- package/dist/src/utils.d.ts +28 -0
- package/dist/value.d.ts +2 -0
- package/dist/value.js +5238 -0
- package/package.json +1 -1
- package/dist/CNAME +0 -1
- package/dist/assets/KaTeX_AMS-Regular-BQhdFMY1.woff2 +0 -0
- package/dist/assets/KaTeX_AMS-Regular-DMm9YOAa.woff +0 -0
- package/dist/assets/KaTeX_AMS-Regular-DRggAlZN.ttf +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-ATXxdsX0.ttf +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-BEiXGLvX.woff +0 -0
- package/dist/assets/KaTeX_Caligraphic-Bold-Dq_IR9rO.woff2 +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-CTRA-rTL.woff +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-Di6jR-x-.woff2 +0 -0
- package/dist/assets/KaTeX_Caligraphic-Regular-wX97UBjC.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-BdnERNNW.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-BsDP51OF.woff +0 -0
- package/dist/assets/KaTeX_Fraktur-Bold-CL6g_b3V.woff2 +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-CB_wures.ttf +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-CTYiF6lA.woff2 +0 -0
- package/dist/assets/KaTeX_Fraktur-Regular-Dxdc4cR9.woff +0 -0
- package/dist/assets/KaTeX_Main-Bold-Cx986IdX.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Bold-Jm3AIy58.woff +0 -0
- package/dist/assets/KaTeX_Main-Bold-waoOVXN0.ttf +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-DxDJ3AOS.woff2 +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-DzxPMmG6.ttf +0 -0
- package/dist/assets/KaTeX_Main-BoldItalic-SpSLRI95.woff +0 -0
- package/dist/assets/KaTeX_Main-Italic-3WenGoN9.ttf +0 -0
- package/dist/assets/KaTeX_Main-Italic-BMLOBm91.woff +0 -0
- package/dist/assets/KaTeX_Main-Italic-NWA7e6Wa.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Regular-B22Nviop.woff2 +0 -0
- package/dist/assets/KaTeX_Main-Regular-Dr94JaBh.woff +0 -0
- package/dist/assets/KaTeX_Main-Regular-ypZvNtVU.ttf +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-B3XSjfu4.ttf +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-CZnvNsCZ.woff2 +0 -0
- package/dist/assets/KaTeX_Math-BoldItalic-iY-2wyZ7.woff +0 -0
- package/dist/assets/KaTeX_Math-Italic-DA0__PXp.woff +0 -0
- package/dist/assets/KaTeX_Math-Italic-flOr_0UB.ttf +0 -0
- package/dist/assets/KaTeX_Math-Italic-t53AETM-.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-CFMepnvq.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-D1sUS0GD.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Bold-DbIhKOiC.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-C3H0VqGB.woff2 +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-DN2j7dab.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Italic-YYjJ1zSn.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-BNo7hRIc.ttf +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-CS6fqUqJ.woff +0 -0
- package/dist/assets/KaTeX_SansSerif-Regular-DDBCnlJ7.woff2 +0 -0
- package/dist/assets/KaTeX_Script-Regular-C5JkGWo-.ttf +0 -0
- package/dist/assets/KaTeX_Script-Regular-D3wIWfF6.woff2 +0 -0
- package/dist/assets/KaTeX_Script-Regular-D5yQViql.woff +0 -0
- package/dist/assets/KaTeX_Size1-Regular-C195tn64.woff +0 -0
- package/dist/assets/KaTeX_Size1-Regular-Dbsnue_I.ttf +0 -0
- package/dist/assets/KaTeX_Size1-Regular-mCD8mA8B.woff2 +0 -0
- package/dist/assets/KaTeX_Size2-Regular-B7gKUWhC.ttf +0 -0
- package/dist/assets/KaTeX_Size2-Regular-Dy4dx90m.woff2 +0 -0
- package/dist/assets/KaTeX_Size2-Regular-oD1tc_U0.woff +0 -0
- package/dist/assets/KaTeX_Size3-Regular-CTq5MqoE.woff +0 -0
- package/dist/assets/KaTeX_Size3-Regular-DgpXs0kz.ttf +0 -0
- package/dist/assets/KaTeX_Size4-Regular-BF-4gkZK.woff +0 -0
- package/dist/assets/KaTeX_Size4-Regular-DWFBv043.ttf +0 -0
- package/dist/assets/KaTeX_Size4-Regular-Dl5lxZxV.woff2 +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-C0xS9mPB.woff +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-CO6r4hn1.woff2 +0 -0
- package/dist/assets/KaTeX_Typewriter-Regular-D3Ib7_Hf.ttf +0 -0
- package/dist/assets/Katex-ClrxLHTj.js +0 -131
- package/dist/assets/Katex-rb5Khf8S.css +0 -1
- package/dist/assets/favicon-BpOvZXpk.svg +0 -20
- package/dist/assets/hsl-hvHpFpJT.js +0 -1
- package/dist/assets/hsv-Dw3FShnj.js +0 -1
- package/dist/assets/hwb-pA6JoiNj.js +0 -1
- package/dist/assets/index-Q19pIqw1.js +0 -32
- package/dist/assets/index-VnEkwzsm.css +0 -1
- package/dist/assets/kelvin-Csjui27y.js +0 -1
- package/dist/assets/lab-DAj67vs8.js +0 -1
- package/dist/assets/lch-D_dY1vUG.js +0 -1
- package/dist/assets/oklab-BPM7MOIw.js +0 -1
- package/dist/assets/oklch-DwTrS_34.js +0 -1
- package/dist/assets/rgb-BLbQuf-A.js +0 -1
- package/dist/assets/vendor-highlight-sMWp9TLU.js +0 -3
- package/dist/assets/vendor-katex-Dehg5p_Y.js +0 -261
- package/dist/assets/vendor-prettier-wO8BBsoP.js +0 -166
- package/dist/assets/xyz-CX5zPyPG.js +0 -3
- package/dist/index.html +0 -18
|
@@ -1,166 +0,0 @@
|
|
|
1
|
-
var $A=Object.create,u2=Object.defineProperty,MA=Object.getOwnPropertyDescriptor,jA=Object.getOwnPropertyNames,JA=Object.getPrototypeOf,RA=Object.prototype.hasOwnProperty,UA=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),l2=(e,t)=>{for(var r in t)u2(e,r,{get:t[r],enumerable:!0})},qA=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of jA(t))!RA.call(e,s)&&s!==r&&u2(e,s,{get:()=>t[s],enumerable:!(n=MA(t,s))||n.enumerable});return e},KA=(e,t,r)=>(r=e!=null?$A(JA(e)):{},qA(u2(r,"default",{value:e,enumerable:!0}),e)),zA=UA((e,t)=>{var r,n,s,i,o,l,u,f,p,d,y,m,D,T,S,v,E,C,P;D=/\/(?![*\/])(?:\[(?:[^\]\\\n\r\u2028\u2029]+|\\.)*\]|[^\/\\\n\r\u2028\u2029]+|\\.)*(\/[$_\u200C\u200D\p{ID_Continue}]*|\\)?/yu,m=/--|\+\+|=>|\.{3}|\??\.(?!\d)|(?:&&|\|\||\?\?|[+\-%&|^]|\*{1,2}|<{1,2}|>{1,3}|!=?|={1,2}|\/(?![\/*]))=?|[?~,:;[\](){}]/y,r=/(\x23?)(?=[$_\p{ID_Start}\\])(?:[$_\u200C\u200D\p{ID_Continue}]+|\\u[\da-fA-F]{4}|\\u\{[\da-fA-F]+\})+/yu,S=/(['"])(?:[^'"\\\n\r]+|(?!\1)['"]|\\(?:\r\n|[^]))*(\1)?/y,y=/(?:0[xX][\da-fA-F](?:_?[\da-fA-F])*|0[oO][0-7](?:_?[0-7])*|0[bB][01](?:_?[01])*)n?|0n|[1-9](?:_?\d)*n|(?:(?:0(?!\d)|0\d*[89]\d*|[1-9](?:_?\d)*)(?:\.(?:\d(?:_?\d)*)?)?|\.\d(?:_?\d)*)(?:[eE][+-]?\d(?:_?\d)*)?|0[0-7]+/y,v=/[`}](?:[^`\\$]+|\\[^]|\$(?!\{))*(`|\$\{)?/y,P=/[\t\v\f\ufeff\p{Zs}]+/yu,f=/\r?\n|[\r\u2028\u2029]/y,p=/\/\*(?:[^*]+|\*(?!\/))*(\*\/)?/y,T=/\/\/.*/y,s=/[<>.:={}]|\/(?![\/*])/y,n=/[$_\p{ID_Start}][$_\u200C\u200D\p{ID_Continue}-]*/yu,i=/(['"])(?:[^'"]+|(?!\1)['"])*(\1)?/y,o=/[^<>{}]+/y,C=/^(?:[\/+-]|\.{3}|\?(?:InterpolationIn(?:JSX|Template)|NoLineTerminatorHere|NonExpressionParenEnd|UnaryIncDec))?$|[{}([,;<>=*%&|^!~?:]$/,E=/^(?:=>|[;\]){}]|else|\?(?:NoLineTerminatorHere|NonExpressionParenEnd))?$/,l=/^(?:await|case|default|delete|do|else|instanceof|new|return|throw|typeof|void|yield)$/,u=/^(?:return|throw|yield)$/,d=RegExp(f.source),t.exports=function*(k,{jsx:w=!1}={}){var B,I,oe,ee,me,Ge,Q,we,ge,Pe,Et,et,rr,Dt;for({length:Ge}=k,ee=0,me="",Dt=[{tag:"JS"}],B=[],Et=0,et=!1;ee<Ge;){switch(we=Dt[Dt.length-1],we.tag){case"JS":case"JSNonExpressionParen":case"InterpolationInTemplate":case"InterpolationInJSX":if(k[ee]==="/"&&(C.test(me)||l.test(me))&&(D.lastIndex=ee,Q=D.exec(k))){ee=D.lastIndex,me=Q[0],et=!0,yield{type:"RegularExpressionLiteral",value:Q[0],closed:Q[1]!==void 0&&Q[1]!=="\\"};continue}if(m.lastIndex=ee,Q=m.exec(k)){switch(rr=Q[0],ge=m.lastIndex,Pe=rr,rr){case"(":me==="?NonExpressionParenKeyword"&&Dt.push({tag:"JSNonExpressionParen",nesting:Et}),Et++,et=!1;break;case")":Et--,et=!0,we.tag==="JSNonExpressionParen"&&Et===we.nesting&&(Dt.pop(),Pe="?NonExpressionParenEnd",et=!1);break;case"{":m.lastIndex=0,oe=!E.test(me)&&(C.test(me)||l.test(me)),B.push(oe),et=!1;break;case"}":switch(we.tag){case"InterpolationInTemplate":if(B.length===we.nesting){v.lastIndex=ee,Q=v.exec(k),ee=v.lastIndex,me=Q[0],Q[1]==="${"?(me="?InterpolationInTemplate",et=!1,yield{type:"TemplateMiddle",value:Q[0]}):(Dt.pop(),et=!0,yield{type:"TemplateTail",value:Q[0],closed:Q[1]==="`"});continue}break;case"InterpolationInJSX":if(B.length===we.nesting){Dt.pop(),ee+=1,me="}",yield{type:"JSXPunctuator",value:"}"};continue}}et=B.pop(),Pe=et?"?ExpressionBraceEnd":"}";break;case"]":et=!0;break;case"++":case"--":Pe=et?"?PostfixIncDec":"?UnaryIncDec";break;case"<":if(w&&(C.test(me)||l.test(me))){Dt.push({tag:"JSXTag"}),ee+=1,me="<",yield{type:"JSXPunctuator",value:rr};continue}et=!1;break;default:et=!1}ee=ge,me=Pe,yield{type:"Punctuator",value:rr};continue}if(r.lastIndex=ee,Q=r.exec(k)){switch(ee=r.lastIndex,Pe=Q[0],Q[0]){case"for":case"if":case"while":case"with":me!=="."&&me!=="?."&&(Pe="?NonExpressionParenKeyword")}me=Pe,et=!l.test(Q[0]),yield{type:Q[1]==="#"?"PrivateIdentifier":"IdentifierName",value:Q[0]};continue}if(S.lastIndex=ee,Q=S.exec(k)){ee=S.lastIndex,me=Q[0],et=!0,yield{type:"StringLiteral",value:Q[0],closed:Q[2]!==void 0};continue}if(y.lastIndex=ee,Q=y.exec(k)){ee=y.lastIndex,me=Q[0],et=!0,yield{type:"NumericLiteral",value:Q[0]};continue}if(v.lastIndex=ee,Q=v.exec(k)){ee=v.lastIndex,me=Q[0],Q[1]==="${"?(me="?InterpolationInTemplate",Dt.push({tag:"InterpolationInTemplate",nesting:B.length}),et=!1,yield{type:"TemplateHead",value:Q[0]}):(et=!0,yield{type:"NoSubstitutionTemplate",value:Q[0],closed:Q[1]==="`"});continue}break;case"JSXTag":case"JSXTagEnd":if(s.lastIndex=ee,Q=s.exec(k)){switch(ee=s.lastIndex,Pe=Q[0],Q[0]){case"<":Dt.push({tag:"JSXTag"});break;case">":Dt.pop(),me==="/"||we.tag==="JSXTagEnd"?(Pe="?JSX",et=!0):Dt.push({tag:"JSXChildren"});break;case"{":Dt.push({tag:"InterpolationInJSX",nesting:B.length}),Pe="?InterpolationInJSX",et=!1;break;case"/":me==="<"&&(Dt.pop(),Dt[Dt.length-1].tag==="JSXChildren"&&Dt.pop(),Dt.push({tag:"JSXTagEnd"}))}me=Pe,yield{type:"JSXPunctuator",value:Q[0]};continue}if(n.lastIndex=ee,Q=n.exec(k)){ee=n.lastIndex,me=Q[0],yield{type:"JSXIdentifier",value:Q[0]};continue}if(i.lastIndex=ee,Q=i.exec(k)){ee=i.lastIndex,me=Q[0],yield{type:"JSXString",value:Q[0],closed:Q[2]!==void 0};continue}break;case"JSXChildren":if(o.lastIndex=ee,Q=o.exec(k)){ee=o.lastIndex,me=Q[0],yield{type:"JSXText",value:Q[0]};continue}switch(k[ee]){case"<":Dt.push({tag:"JSXTag"}),ee++,me="<",yield{type:"JSXPunctuator",value:"<"};continue;case"{":Dt.push({tag:"InterpolationInJSX",nesting:B.length}),ee++,me="?InterpolationInJSX",et=!1,yield{type:"JSXPunctuator",value:"{"};continue}}if(P.lastIndex=ee,Q=P.exec(k)){ee=P.lastIndex,yield{type:"WhiteSpace",value:Q[0]};continue}if(f.lastIndex=ee,Q=f.exec(k)){ee=f.lastIndex,et=!1,u.test(me)&&(me="?NoLineTerminatorHere"),yield{type:"LineTerminatorSequence",value:Q[0]};continue}if(p.lastIndex=ee,Q=p.exec(k)){ee=p.lastIndex,d.test(Q[0])&&(et=!1,u.test(me)&&(me="?NoLineTerminatorHere")),yield{type:"MultiLineComment",value:Q[0],closed:Q[1]!==void 0};continue}if(T.lastIndex=ee,Q=T.exec(k)){ee=T.lastIndex,et=!1,yield{type:"SingleLineComment",value:Q[0]};continue}I=String.fromCodePoint(k.codePointAt(ee)),ee+=I.length,me=I,et=!1,yield{type:we.tag.startsWith("JSX")?"JSXInvalid":"Invalid",value:I}}}}),WA={};l2(WA,{__debug:()=>LF,check:()=>IF,doc:()=>xE,format:()=>AE,formatWithCursor:()=>CE,getSupportInfo:()=>BF,util:()=>TE,version:()=>aF});var up=(e,t)=>(r,n,...s)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,s),VA=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},HA=up("replaceAll",function(){if(typeof this=="string")return VA}),am=HA,XA=class{diff(t,r,n={}){let s;typeof n=="function"?(s=n,n={}):"callback"in n&&(s=n.callback);let i=this.castInput(t,n),o=this.castInput(r,n),l=this.removeEmpty(this.tokenize(i,n)),u=this.removeEmpty(this.tokenize(o,n));return this.diffWithOptionsObj(l,u,n,s)}diffWithOptionsObj(t,r,n,s){var i;let o=E=>{if(E=this.postProcess(E,n),s){setTimeout(function(){s(E)},0);return}else return E},l=r.length,u=t.length,f=1,p=l+u;n.maxEditLength!=null&&(p=Math.min(p,n.maxEditLength));let d=(i=n.timeout)!==null&&i!==void 0?i:1/0,y=Date.now()+d,m=[{oldPos:-1,lastComponent:void 0}],D=this.extractCommon(m[0],r,t,0,n);if(m[0].oldPos+1>=u&&D+1>=l)return o(this.buildValues(m[0].lastComponent,r,t));let T=-1/0,S=1/0,v=()=>{for(let E=Math.max(T,-f);E<=Math.min(S,f);E+=2){let C,P=m[E-1],k=m[E+1];P&&(m[E-1]=void 0);let w=!1;if(k){let I=k.oldPos-E;w=k&&0<=I&&I<l}let B=P&&P.oldPos+1<u;if(!w&&!B){m[E]=void 0;continue}if(!B||w&&P.oldPos<k.oldPos?C=this.addToPath(k,!0,!1,0,n):C=this.addToPath(P,!1,!0,1,n),D=this.extractCommon(C,r,t,E,n),C.oldPos+1>=u&&D+1>=l)return o(this.buildValues(C.lastComponent,r,t))||!0;m[E]=C,C.oldPos+1>=u&&(S=Math.min(S,E-1)),D+1>=l&&(T=Math.max(T,E+1))}f++};if(s)(function E(){setTimeout(function(){if(f>p||Date.now()>y)return s(void 0);v()||E()},0)})();else for(;f<=p&&Date.now()<=y;){let E=v();if(E)return E}}addToPath(t,r,n,s,i){let o=t.lastComponent;return o&&!i.oneChangePerToken&&o.added===r&&o.removed===n?{oldPos:t.oldPos+s,lastComponent:{count:o.count+1,added:r,removed:n,previousComponent:o.previousComponent}}:{oldPos:t.oldPos+s,lastComponent:{count:1,added:r,removed:n,previousComponent:o}}}extractCommon(t,r,n,s,i){let o=r.length,l=n.length,u=t.oldPos,f=u-s,p=0;for(;f+1<o&&u+1<l&&this.equals(n[u+1],r[f+1],i);)f++,u++,p++,i.oneChangePerToken&&(t.lastComponent={count:1,previousComponent:t.lastComponent,added:!1,removed:!1});return p&&!i.oneChangePerToken&&(t.lastComponent={count:p,previousComponent:t.lastComponent,added:!1,removed:!1}),t.oldPos=u,f}equals(t,r,n){return n.comparator?n.comparator(t,r):t===r||!!n.ignoreCase&&t.toLowerCase()===r.toLowerCase()}removeEmpty(t){let r=[];for(let n=0;n<t.length;n++)t[n]&&r.push(t[n]);return r}castInput(t,r){return t}tokenize(t,r){return Array.from(t)}join(t){return t.join("")}postProcess(t,r){return t}get useLongestToken(){return!1}buildValues(t,r,n){let s=[],i;for(;t;)s.push(t),i=t.previousComponent,delete t.previousComponent,t=i;s.reverse();let o=s.length,l=0,u=0,f=0;for(;l<o;l++){let p=s[l];if(p.removed)p.value=this.join(n.slice(f,f+p.count)),f+=p.count;else{if(!p.added&&this.useLongestToken){let d=r.slice(u,u+p.count);d=d.map(function(y,m){let D=n[f+m];return D.length>y.length?D:y}),p.value=this.join(d)}else p.value=this.join(r.slice(u,u+p.count));u+=p.count,p.added||(f+=p.count)}}return s}},GA=class extends XA{tokenize(t){return t.slice()}join(t){return t}removeEmpty(t){return t}},QA=new GA;function YA(e,t,r){return QA.diff(e,t,r)}var ZA=()=>{},ev=ZA,vT="cr",ST="crlf",tv="lf",rv=tv,c2="\r",_T=`\r
|
|
2
|
-
`,om=`
|
|
3
|
-
`,nv=om;function sv(e){let t=e.indexOf(c2);return t!==-1?e.charAt(t+1)===om?ST:vT:rv}function p2(e){return e===vT?c2:e===ST?_T:nv}var iv=new Map([[om,/\n/gu],[c2,/\r/gu],[_T,/\r\n/gu]]);function FT(e,t){let r=iv.get(t);return e.match(r)?.length??0}var av=/\r\n?/gu;function ov(e){return am(0,e,av,om)}function uv(e){return this[e<0?this.length+e:e]}var lv=up("at",function(){if(Array.isArray(this)||typeof this=="string")return uv}),jr=lv,Io="string",Oi="array",Pa="cursor",Ui="indent",qi="align",Ki="trim",Mn="group",ui="fill",Gn="if-break",zi="indent-if-break",Wi="line-suffix",Vi="line-suffix-boundary",tn="line",li="label",gs="break-parent",kT=new Set([Pa,Ui,qi,Ki,Mn,ui,Gn,zi,Wi,Vi,tn,li,gs]);function cv(e){let t=e.length;for(;t>0&&(e[t-1]==="\r"||e[t-1]===`
|
|
4
|
-
`);)t--;return t<e.length?e.slice(0,t):e}function pv(e){if(typeof e=="string")return Io;if(Array.isArray(e))return Oi;if(!e)return;let{type:t}=e;if(kT.has(t))return t}var Bo=pv,dv=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function hv(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
5
|
-
Expected it to be 'string' or 'object'.`;if(Bo(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=dv([...kT].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'.
|
|
6
|
-
Expected it to be ${n}.`}var fv=class extends Error{name="InvalidDocError";constructor(t){super(hv(t)),this.doc=t}},Uu=fv,BD={};function mv(e,t,r,n){let s=[e];for(;s.length>0;){let i=s.pop();if(i===BD){r(s.pop());continue}r&&s.push(i,BD);let o=Bo(i);if(!o)throw new Uu(i);if(t?.(i)!==!1)switch(o){case Oi:case ui:{let l=o===Oi?i:i.parts;for(let u=l.length,f=u-1;f>=0;--f)s.push(l[f]);break}case Gn:s.push(i.flatContents,i.breakContents);break;case Mn:if(n&&i.expandedStates)for(let l=i.expandedStates.length,u=l-1;u>=0;--u)s.push(i.expandedStates[u]);else s.push(i.contents);break;case qi:case Ui:case zi:case li:case Wi:s.push(i.contents);break;case Io:case Pa:case Ki:case Vi:case tn:case gs:break;default:throw new Uu(i)}}}var d2=mv;function um(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let o=s(i);return r.set(i,o),o}function s(i){switch(Bo(i)){case Oi:return t(i.map(n));case ui:return t({...i,parts:i.parts.map(n)});case Gn:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Mn:{let{expandedStates:o,contents:l}=i;return o?(o=o.map(n),l=o[0]):l=n(l),t({...i,contents:l,expandedStates:o})}case qi:case Ui:case zi:case li:case Wi:return t({...i,contents:n(i.contents)});case Io:case Pa:case Ki:case Vi:case tn:case gs:return t(i);default:throw new Uu(i)}}}function h2(e,t,r){let n=r,s=!1;function i(o){if(s)return!1;let l=t(o);l!==void 0&&(s=!0,n=l)}return d2(e,i),n}function yv(e){if(e.type===Mn&&e.break||e.type===tn&&e.hard||e.type===gs)return!0}function gv(e){return h2(e,yv,!1)}function LD(e){if(e.length>0){let t=jr(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Dv(e){let t=new Set,r=[];function n(i){if(i.type===gs&&LD(r),i.type===Mn){if(r.push(i),t.has(i))return!1;t.add(i)}}function s(i){i.type===Mn&&r.pop().break&&LD(r)}d2(e,n,s,!0)}function xv(e){return e.type===tn&&!e.hard?e.soft?"":" ":e.type===Gn?e.flatContents:e}function Tv(e){return um(e,xv)}function OD(e){for(e=[...e];e.length>=2&&jr(0,e,-2).type===tn&&jr(0,e,-1).type===gs;)e.length-=2;if(e.length>0){let t=Bc(jr(0,e,-1));e[e.length-1]=t}return e}function Bc(e){switch(Bo(e)){case Ui:case zi:case Mn:case Wi:case li:{let t=Bc(e.contents);return{...e,contents:t}}case Gn:return{...e,breakContents:Bc(e.breakContents),flatContents:Bc(e.flatContents)};case ui:return{...e,parts:OD(e.parts)};case Oi:return OD(e);case Io:return cv(e);case qi:case Pa:case Ki:case Vi:case tn:case gs:break;default:throw new Uu(e)}return e}function wT(e){return Bc(bv(e))}function Ev(e){switch(Bo(e)){case ui:if(e.parts.every(t=>t===""))return"";break;case Mn:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Mn&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case qi:case Ui:case zi:case Wi:if(!e.contents)return"";break;case Gn:if(!e.flatContents&&!e.breakContents)return"";break;case Oi:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof jr(0,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 Io:case Pa:case Ki:case Vi:case tn:case li:case gs:break;default:throw new Uu(e)}return e}function bv(e){return um(e,t=>Ev(t))}function Cv(e,t=$T){return um(e,r=>typeof r=="string"?BT(t,r.split(`
|
|
7
|
-
`)):r)}function Av(e){if(e.type===tn)return!0}function vv(e){return h2(e,Av,!1)}function bf(e,t){return e.type===li?{...e,contents:t(e.contents)}:t(e)}var Sv=ev;function Rf(e){return{type:Ui,contents:e}}function qu(e,t){return{type:qi,contents:t,n:e}}function _v(e){return qu(Number.NEGATIVE_INFINITY,e)}function PT(e){return qu({type:"root"},e)}function Fv(e){return qu(-1,e)}function NT(e,t,r){let n=e;if(t>0){for(let s=0;s<Math.floor(t/r);++s)n=Rf(n);n=qu(t%r,n),n=qu(Number.NEGATIVE_INFINITY,n)}return n}var lm={type:gs},Eo={type:Pa};function kv(e){return{type:ui,parts:e}}function IT(e,t={}){return Sv(t.expandedStates),{type:Mn,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function wv(e,t){return IT(e[0],{...t,expandedStates:e})}function Pv(e,t="",r={}){return{type:Gn,breakContents:e,flatContents:t,groupId:r.groupId}}function Nv(e,t){return{type:zi,contents:e,groupId:t.groupId,negate:t.negate}}function BT(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function Iv(e,t){return e?{type:li,label:e,contents:t}:t}var LT={type:tn},Bv={type:tn,soft:!0},f2={type:tn,hard:!0},Ii=[f2,lm],OT={type:tn,hard:!0,literal:!0},$T=[OT,lm];function l0(e){return{type:Wi,contents:e}}var Lv={type:Vi},Ov={type:Ki};function Si(e){if(!e)return"";if(Array.isArray(e)){let t=[];for(let r of e)if(Array.isArray(r))t.push(...Si(r));else{let n=Si(r);n!==""&&t.push(n)}return t}return e.type===Gn?{...e,breakContents:Si(e.breakContents),flatContents:Si(e.flatContents)}:e.type===Mn?{...e,contents:Si(e.contents),expandedStates:e.expandedStates?.map(Si)}:e.type===ui?{type:"fill",parts:e.parts.map(Si)}:e.contents?{...e,contents:Si(e.contents)}:e}function $v(e){let t=Object.create(null),r=new Set;return n(Si(e));function n(i,o,l){if(typeof i=="string")return JSON.stringify(i);if(Array.isArray(i)){let u=i.map(n).filter(Boolean);return u.length===1?u[0]:`[${u.join(", ")}]`}if(i.type===tn){let u=l?.[o+1]?.type===gs;return i.literal?u?"literalline":"literallineWithoutBreakParent":i.hard?u?"hardline":"hardlineWithoutBreakParent":i.soft?"softline":"line"}if(i.type===gs)return l?.[o-1]?.type===tn&&l[o-1].hard?void 0:"breakParent";if(i.type===Ki)return"trim";if(i.type===Ui)return"indent("+n(i.contents)+")";if(i.type===qi)return i.n===Number.NEGATIVE_INFINITY?"dedentToRoot("+n(i.contents)+")":i.n<0?"dedent("+n(i.contents)+")":i.n.type==="root"?"markAsRoot("+n(i.contents)+")":"align("+JSON.stringify(i.n)+", "+n(i.contents)+")";if(i.type===Gn)return"ifBreak("+n(i.breakContents)+(i.flatContents?", "+n(i.flatContents):"")+(i.groupId?(i.flatContents?"":', ""')+`, { groupId: ${s(i.groupId)} }`:"")+")";if(i.type===zi){let u=[];i.negate&&u.push("negate: true"),i.groupId&&u.push(`groupId: ${s(i.groupId)}`);let f=u.length>0?`, { ${u.join(", ")} }`:"";return`indentIfBreak(${n(i.contents)}${f})`}if(i.type===Mn){let u=[];i.break&&i.break!=="propagated"&&u.push("shouldBreak: true"),i.id&&u.push(`id: ${s(i.id)}`);let f=u.length>0?`, { ${u.join(", ")} }`:"";return i.expandedStates?`conditionalGroup([${i.expandedStates.map(p=>n(p)).join(",")}]${f})`:`group(${n(i.contents)}${f})`}if(i.type===ui)return`fill([${i.parts.map(u=>n(u)).join(", ")}])`;if(i.type===Wi)return"lineSuffix("+n(i.contents)+")";if(i.type===Vi)return"lineSuffixBoundary";if(i.type===li)return`label(${JSON.stringify(i.label)}, ${n(i.contents)})`;if(i.type===Pa)return"cursor";throw new Error("Unknown doc type "+i.type)}function s(i){if(typeof i!="symbol")return JSON.stringify(String(i));if(i in t)return t[i];let o=i.description||"symbol";for(let l=0;;l++){let u=o+(l>0?` #${l}`:"");if(!r.has(u))return r.add(u),t[i]=`Symbol.for(${JSON.stringify(u)})`}}}var Mv=()=>/[#*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-\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-\uDED8\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\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function jv(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Jv(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Rv="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",Uv=/[^\x20-\x7F]/u,qv=new Set(Rv);function Kv(e){if(!e)return 0;if(!Uv.test(e))return e.length;e=e.replace(Mv(),r=>qv.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=jv(n)||Jv(n)?2:1)}return t}var m2=Kv,zv={type:0},Wv={type:1},MT={value:"",length:0,queue:[],get root(){return MT}};function jT(e,t,r){let n=t.type===1?e.queue.slice(0,-1):[...e.queue,t],s="",i=0,o=0,l=0;for(let D of n)switch(D.type){case 0:p(),r.useTabs?u(1):f(r.tabWidth);break;case 3:{let{string:T}=D;p(),s+=T,i+=T.length;break}case 2:{let{width:T}=D;o+=1,l+=T;break}default:throw new Error(`Unexpected indent comment '${D.type}'.`)}return y(),{...e,value:s,length:i,queue:n};function u(D){s+=" ".repeat(D),i+=r.tabWidth*D}function f(D){s+=" ".repeat(D),i+=D}function p(){r.useTabs?d():y()}function d(){o>0&&u(o),m()}function y(){l>0&&f(l),m()}function m(){o=0,l=0}}function Vv(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=Wv:n={type:2,width:t}:n={type:3,string:t},jT(e,n,r)}function Hv(e,t){return jT(e,zv,t)}function Xv(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function JT(e){let t=Xv(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var kn=Symbol("MODE_BREAK"),Vs=Symbol("MODE_FLAT"),c0=Symbol("DOC_FILL_PRINTED_LENGTH");function ef(e,t,r,n,s,i){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,l=!1,u=[e],f="";for(;r>=0;){if(u.length===0){if(o===0)return!0;u.push(t[--o]);continue}let{mode:p,doc:d}=u.pop(),y=Bo(d);switch(y){case Io:d&&(l&&(f+=" ",r-=1,l=!1),f+=d,r-=m2(d));break;case Oi:case ui:{let m=y===Oi?d:d.parts,D=d[c0]??0;for(let T=m.length-1;T>=D;T--)u.push({mode:p,doc:m[T]});break}case Ui:case qi:case zi:case li:u.push({mode:p,doc:d.contents});break;case Ki:{let{text:m,count:D}=JT(f);f=m,r+=D;break}case Mn:{if(i&&d.break)return!1;let m=d.break?kn:p,D=d.expandedStates&&m===kn?jr(0,d.expandedStates,-1):d.contents;u.push({mode:m,doc:D});break}case Gn:{let m=(d.groupId?s[d.groupId]||Vs:p)===kn?d.breakContents:d.flatContents;m&&u.push({mode:p,doc:m});break}case tn:if(p===kn||d.hard)return!0;d.soft||(l=!0);break;case Wi:n=!0;break;case Vi:if(n)return!1;break}}return!1}function cm(e,t){let r=Object.create(null),n=t.printWidth,s=p2(t.endOfLine),i=0,o=[{indent:MT,mode:kn,doc:e}],l="",u=!1,f=[],p=[],d=[],y=[],m=0;for(Dv(e);o.length>0;){let{indent:E,mode:C,doc:P}=o.pop();switch(Bo(P)){case Io:{let k=s!==`
|
|
8
|
-
`?am(0,P,`
|
|
9
|
-
`,s):P;k&&(l+=k,o.length>0&&(i+=m2(k)));break}case Oi:for(let k=P.length-1;k>=0;k--)o.push({indent:E,mode:C,doc:P[k]});break;case Pa:if(p.length>=2)throw new Error("There are too many 'cursor' in doc.");p.push(m+l.length);break;case Ui:o.push({indent:Hv(E,t),mode:C,doc:P.contents});break;case qi:o.push({indent:Vv(E,P.n,t),mode:C,doc:P.contents});break;case Ki:v();break;case Mn:switch(C){case Vs:if(!u){o.push({indent:E,mode:P.break?kn:Vs,doc:P.contents});break}case kn:{u=!1;let k={indent:E,mode:Vs,doc:P.contents},w=n-i,B=f.length>0;if(!P.break&&ef(k,o,w,B,r))o.push(k);else if(P.expandedStates){let I=jr(0,P.expandedStates,-1);if(P.break){o.push({indent:E,mode:kn,doc:I});break}else for(let oe=1;oe<P.expandedStates.length+1;oe++)if(oe>=P.expandedStates.length){o.push({indent:E,mode:kn,doc:I});break}else{let ee=P.expandedStates[oe],me={indent:E,mode:Vs,doc:ee};if(ef(me,o,w,B,r)){o.push(me);break}}}else o.push({indent:E,mode:kn,doc:P.contents});break}}P.id&&(r[P.id]=jr(0,o,-1).mode);break;case ui:{let k=n-i,w=P[c0]??0,{parts:B}=P,I=B.length-w;if(I===0)break;let oe=B[w+0],ee=B[w+1],me={indent:E,mode:Vs,doc:oe},Ge={indent:E,mode:kn,doc:oe},Q=ef(me,[],k,f.length>0,r,!0);if(I===1){Q?o.push(me):o.push(Ge);break}let we={indent:E,mode:Vs,doc:ee},ge={indent:E,mode:kn,doc:ee};if(I===2){Q?o.push(we,me):o.push(ge,Ge);break}let Pe=B[w+2],Et={indent:E,mode:C,doc:{...P,[c0]:w+2}},et=ef({indent:E,mode:Vs,doc:[oe,ee,Pe]},[],k,f.length>0,r,!0);o.push(Et),et?o.push(we,me):Q?o.push(ge,me):o.push(ge,Ge);break}case Gn:case zi:{let k=P.groupId?r[P.groupId]:C;if(k===kn){let w=P.type===Gn?P.breakContents:P.negate?P.contents:Rf(P.contents);w&&o.push({indent:E,mode:C,doc:w})}if(k===Vs){let w=P.type===Gn?P.flatContents:P.negate?Rf(P.contents):P.contents;w&&o.push({indent:E,mode:C,doc:w})}break}case Wi:f.push({indent:E,mode:C,doc:P.contents});break;case Vi:f.length>0&&o.push({indent:E,mode:C,doc:f2});break;case tn:switch(C){case Vs:if(P.hard)u=!0;else{P.soft||(l+=" ",i+=1);break}case kn:if(f.length>0){o.push({indent:E,mode:C,doc:P},...f.reverse()),f.length=0;break}P.literal?(l+=s,i=0,E.root&&(E.root.value&&(l+=E.root.value),i=E.root.length)):(v(),l+=s+E.value,i=E.length);break}break;case li:o.push({indent:E,mode:C,doc:P.contents});break;case gs:break;default:throw new Uu(P)}o.length===0&&f.length>0&&(o.push(...f.reverse()),f.length=0)}let D=d.join("")+l,T=[...y,...p];if(T.length!==2)return{formatted:D};let S=T[0];return{formatted:D,cursorNodeStart:S,cursorNodeText:D.slice(S,jr(0,T,-1))};function v(){let{text:E,count:C}=JT(l);E&&(d.push(E),m+=E.length),l="",i-=C,p.length>0&&(y.push(...p.map(P=>Math.min(P,m))),p.length=0)}}function Gv(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 y2=Gv,Qv=class{constructor(t){this.stack=[t]}get key(){let{stack:t,siblings:r}=this;return jr(0,t,r===null?-2:-4)??null}get index(){return this.siblings===null?null:jr(0,this.stack,-2)}get node(){return jr(0,this.stack,-1)}get parent(){return this.getNode(1)}get grandparent(){return this.getNode(2)}get isInArray(){return this.siblings!==null}get siblings(){let{stack:t}=this,r=jr(0,t,-3);return Array.isArray(r)?r:null}get next(){let{siblings:t}=this;return t===null?null:t[this.index+1]}get previous(){let{siblings:t}=this;return t===null?null:t[this.index-1]}get isFirst(){return this.index===0}get isLast(){let{siblings:t,index:r}=this;return t!==null&&r===t.length-1}get isRoot(){return this.stack.length===1}get root(){return this.stack[0]}get ancestors(){return[...this.#r()]}getName(){let{stack:t}=this,{length:r}=t;return r>1?jr(0,t,-2):null}getValue(){return jr(0,this.stack,-1)}getNode(t=0){let r=this.#t(t);return r===-1?null:this.stack[r]}getParentNode(t=0){return this.getNode(t+1)}#t(t){let{stack:r}=this;for(let n=r.length-1;n>=0;n-=2)if(!Array.isArray(r[n])&&--t<0)return n;return-1}call(t,...r){let{stack:n}=this,{length:s}=n,i=jr(0,n,-1);for(let o of r)i=i?.[o],n.push(o,i);try{return t(this)}finally{n.length=s}}callParent(t,r=0){let n=this.#t(r+1),s=this.stack.splice(n+1);try{return t(this)}finally{this.stack.push(...s)}}each(t,...r){let{stack:n}=this,{length:s}=n,i=jr(0,n,-1);for(let o of r)i=i[o],n.push(o,i);try{for(let o=0;o<i.length;++o)n.push(o,i[o]),t(this,o,i),n.length-=2}finally{n.length=s}}map(t,...r){let n=[];return this.each((s,i,o)=>{n[i]=t(s,i,o)},...r),n}match(...t){let r=this.stack.length-1,n=null,s=this.stack[r--];for(let i of t){if(s===void 0)return!1;let o=null;if(typeof n=="number"&&(o=n,n=this.stack[r--],s=this.stack[r--]),i&&!i(s,n,o))return!1;n=this.stack[r--],s=this.stack[r--]}return!0}findAncestor(t){for(let r of this.#r())if(t(r))return r}hasAncestor(t){for(let r of this.#r())if(t(r))return!0;return!1}*#r(){let{stack:t}=this;for(let r=t.length-3;r>=0;r-=2){let n=t[r];Array.isArray(n)||(yield n)}}},Yv=Qv;function Zv(e){return e!==null&&typeof e=="object"}var g2=Zv;function lp(e){return(t,r,n)=>{let s=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,o=r;for(;o>=0&&o<i;){let l=t.charAt(o);if(e instanceof RegExp){if(!e.test(l))return o}else if(!e.includes(l))return o;s?o--:o++}return o===-1||o===i?o:!1}}var eS=lp(/\s/u),Fa=lp(" "),RT=lp(",; "),UT=lp(/[^\n\r]/u),$D=e=>e===`
|
|
10
|
-
`||e==="\r"||e==="\u2028"||e==="\u2029";function tS(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let s=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&s===`
|
|
11
|
-
`)return t-2;if($D(s))return t-1}else{if(s==="\r"&&e.charAt(t+1)===`
|
|
12
|
-
`)return t+2;if($D(s))return t+1}return t}var ko=tS;function rS(e,t,r={}){let n=Fa(e,r.backwards?t-1:t,r),s=ko(e,n,r);return n!==s}var Ca=rS;function nS(e){return Array.isArray(e)&&e.length>0}var sS=nS;function*pm(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=i=>g2(i)&&n(i);for(let i of r(e)){let o=e[i];if(Array.isArray(o))for(let l of o)s(l)&&(yield l);else s(o)&&(yield o)}}function*iS(e,t){let r=[e];for(let n=0;n<r.length;n++){let s=r[n];for(let i of pm(s,t))yield i,r.push(i)}}function aS(e,t){return pm(e,t).next().done}function qT(e,t,r){let{cache:n}=r;if(n.has(e))return n.get(e);let{filter:s}=r;if(!s)return[];let i,o=(r.getChildren?.(e,r)??[...pm(e,{getVisitorKeys:r.getVisitorKeys})]).flatMap(f=>(i??(i=[e,...t]),s(f,i)?[f]:qT(f,i,r))),{locStart:l,locEnd:u}=r;return o.sort((f,p)=>l(f)-l(p)||u(f)-u(p)),n.set(e,o),o}var KT=qT;function oS(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)+"…"),t+(r?" "+r:"")}function D2(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=oS(e)}function Lc(e,t){t.leading=!0,t.trailing=!1,D2(e,t)}function mo(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),D2(e,t)}function Oc(e,t){t.leading=!1,t.trailing=!0,D2(e,t)}var zT=new WeakMap;function WT(e,t,r,n,s=[]){let{locStart:i,locEnd:o}=r,l=i(t),u=o(t),f=KT(e,s,{cache:zT,locStart:i,locEnd:o,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes}),p,d,y=0,m=f.length;for(;y<m;){let D=y+m>>1,T=f[D],S=i(T),v=o(T);if(S<=l&&u<=v)return WT(T,t,r,T,[T,...s]);if(v<=l){p=T,y=D+1;continue}if(u<=S){d=T,m=D;continue}throw new Error("Comment location overlaps with node location")}if(n?.type==="TemplateLiteral"){let{quasis:D}=n,T=my(D,t,r);p&&my(D,p,r)!==T&&(p=null),d&&my(D,d,r)!==T&&(d=null)}return{enclosingNode:n,precedingNode:p,followingNode:d}}var fy=()=>!1;function uS(e,t){let{comments:r}=e;if(delete e.comments,!sS(r)||!t.printer.canAttachComment)return;let n=[],{printer:{features:{experimental_avoidAstMutation:s},handleComments:i={}},originalText:o}=t,{ownLine:l=fy,endOfLine:u=fy,remaining:f=fy}=i,p=r.map((d,y)=>({...WT(e,d,t),comment:d,text:o,options:t,ast:e,isLastComment:r.length-1===y}));for(let[d,y]of p.entries()){let{comment:m,precedingNode:D,enclosingNode:T,followingNode:S,text:v,options:E,ast:C,isLastComment:P}=y,k;if(s?k=[y]:(m.enclosingNode=T,m.precedingNode=D,m.followingNode=S,k=[m,v,E,C,P]),lS(v,E,p,d))m.placement="ownLine",l(...k)||(S?Lc(S,m):D?Oc(D,m):mo(T||C,m));else if(cS(v,E,p,d))m.placement="endOfLine",u(...k)||(D?Oc(D,m):S?Lc(S,m):mo(T||C,m));else if(m.placement="remaining",!f(...k))if(D&&S){let w=n.length;w>0&&n[w-1].followingNode!==S&&MD(n,E),n.push(y)}else D?Oc(D,m):S?Lc(S,m):mo(T||C,m)}if(MD(n,t),!s)for(let d of r)delete d.precedingNode,delete d.enclosingNode,delete d.followingNode}var VT=e=>!/[\S\n\u2028\u2029]/u.test(e);function lS(e,t,r,n){let{comment:s,precedingNode:i}=r[n],{locStart:o,locEnd:l}=t,u=o(s);if(i)for(let f=n-1;f>=0;f--){let{comment:p,precedingNode:d}=r[f];if(d!==i||!VT(e.slice(l(p),u)))break;u=o(p)}return Ca(e,u,{backwards:!0})}function cS(e,t,r,n){let{comment:s,followingNode:i}=r[n],{locStart:o,locEnd:l}=t,u=l(s);if(i)for(let f=n+1;f<r.length;f++){let{comment:p,followingNode:d}=r[f];if(d!==i||!VT(e.slice(u,o(p))))break;u=l(p)}return Ca(e,u)}function MD(e,t){let r=e.length;if(r===0)return;let{precedingNode:n,followingNode:s}=e[0],i=t.locStart(s),o;for(o=r;o>0;--o){let{comment:l,precedingNode:u,followingNode:f}=e[o-1],p=t.originalText.slice(t.locEnd(l),i);if(t.printer.isGap?.(p,t)??/^[\s(]*$/u.test(p))i=t.locStart(l);else break}for(let[l,{comment:u}]of e.entries())l<o?Oc(n,u):Lc(s,u);for(let l of[n,s])l.comments&&l.comments.length>1&&l.comments.sort((u,f)=>t.locStart(u)-t.locStart(f));e.length=0}function my(e,t,r){let n=r.locStart(t)-1;for(let s=1;s<e.length;++s)if(n<r.locStart(e[s]))return s-1;return 0}function pS(e,t){let r=t-1;r=Fa(e,r,{backwards:!0}),r=ko(e,r,{backwards:!0}),r=Fa(e,r,{backwards:!0});let n=ko(e,r,{backwards:!0});return r!==n}var x2=pS;function HT(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function dS(e,t){let r=e.node,n=[HT(e,t)],{printer:s,originalText:i,locStart:o,locEnd:l}=t;if(s.isBlockComment?.(r)){let f=Ca(i,l(r))?Ca(i,o(r),{backwards:!0})?Ii:LT:" ";n.push(f)}else n.push(Ii);let u=ko(i,Fa(i,l(r)));return u!==!1&&Ca(i,u)&&n.push(Ii),n}function hS(e,t,r){let n=e.node,s=HT(e,t),{printer:i,originalText:o,locStart:l}=t,u=i.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||Ca(o,l(n),{backwards:!0})){let f=x2(o,l(n));return{doc:l0([Ii,f?Ii:"",s]),isBlock:u,hasLineSuffix:!0}}return!u||r?.hasLineSuffix?{doc:[l0([" ",s]),lm],isBlock:u,hasLineSuffix:!0}:{doc:[" ",s],isBlock:u,hasLineSuffix:!1}}function fS(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(l=>!n.has(l)).length===0)return{leading:"",trailing:""};let s=[],i=[],o;return e.each(()=>{let l=e.node;if(n?.has(l))return;let{leading:u,trailing:f}=l;u?s.push(dS(e,t)):f&&(o=hS(e,t,o),i.push(o.doc))},"comments"),{leading:s,trailing:i}}function mS(e,t,r){let{leading:n,trailing:s}=fS(e,r);return!n&&!s?t:bf(t,i=>[n,i,s])}function yS(e){let{[Symbol.for("comments")]:t,[Symbol.for("printedComments")]:r}=e;for(let n of t){if(!n.printed&&!r.has(n))throw new Error('Comment "'+n.value.trim()+'" was not printed. Please report this error!');delete n.printed}}var XT=class extends Error{name="ConfigError"},jD=class extends Error{name="UndefinedParserError"},gS={checkIgnorePragma:{category:"Special",type:"boolean",default:!1,description:"Check whether the file's first docblock comment contains '@noprettier' or '@noformat' to determine if it should be formatted.",cliCategory:"Other"},cursorOffset:{category:"Special",type:"int",default:-1,range:{start:-1,end:1/0,step:1},description:"Print (to stderr) where a cursor at the given position would move to after formatting.",cliCategory:"Editor"},endOfLine:{category:"Global",type:"choice",default:"lf",description:"Which end of line characters to apply.",choices:[{value:"lf",description:"Line Feed only (\\n), common on Linux and macOS as well as inside git repos"},{value:"crlf",description:"Carriage Return + Line Feed characters (\\r\\n), common on Windows"},{value:"cr",description:"Carriage Return character only (\\r), used very rarely"},{value:"auto",description:`Maintain existing
|
|
13
|
-
(mixed values within one file are normalised by looking at what's used after the first line)`}]},filepath:{category:"Special",type:"path",description:"Specify the input filepath. This will be used to do parser inference.",cliName:"stdin-filepath",cliCategory:"Other",cliDescription:"Path to the file to pretend that stdin comes from."},insertPragma:{category:"Special",type:"boolean",default:!1,description:"Insert @format pragma into file's first docblock comment.",cliCategory:"Other"},parser:{category:"Global",type:"choice",default:void 0,description:"Which parser to use.",exception:e=>typeof e=="string"||typeof e=="function",choices:[{value:"flow",description:"Flow"},{value:"babel",description:"JavaScript"},{value:"babel-flow",description:"Flow"},{value:"babel-ts",description:"TypeScript"},{value:"typescript",description:"TypeScript"},{value:"acorn",description:"JavaScript"},{value:"espree",description:"JavaScript"},{value:"meriyah",description:"JavaScript"},{value:"css",description:"CSS"},{value:"less",description:"Less"},{value:"scss",description:"SCSS"},{value:"json",description:"JSON"},{value:"json5",description:"JSON5"},{value:"jsonc",description:"JSON with Comments"},{value:"json-stringify",description:"JSON.stringify"},{value:"graphql",description:"GraphQL"},{value:"markdown",description:"Markdown"},{value:"mdx",description:"MDX"},{value:"vue",description:"Vue"},{value:"yaml",description:"YAML"},{value:"glimmer",description:"Ember / Handlebars"},{value:"html",description:"HTML"},{value:"angular",description:"Angular"},{value:"lwc",description:"Lightning Web Components"},{value:"mjml",description:"MJML"}]},plugins:{type:"path",array:!0,default:[{value:[]}],category:"Global",description:"Add a plugin. Multiple plugins can be passed as separate `--plugin`s.",exception:e=>typeof e=="string"||typeof e=="object",cliName:"plugin",cliCategory:"Config"},printWidth:{category:"Global",type:"int",default:80,description:"The line length where Prettier will try wrap.",range:{start:0,end:1/0,step:1}},rangeEnd:{category:"Special",type:"int",default:1/0,range:{start:0,end:1/0,step:1},description:`Format code ending at a given character offset (exclusive).
|
|
14
|
-
The range will extend forwards to the end of the selected statement.`,cliCategory:"Editor"},rangeStart:{category:"Special",type:"int",default:0,range:{start:0,end:1/0,step:1},description:`Format code starting at a given character offset.
|
|
15
|
-
The range will extend backwards to the start of the first line containing the selected statement.`,cliCategory:"Editor"},requirePragma:{category:"Special",type:"boolean",default:!1,description:"Require either '@prettier' or '@format' to be present in the file's first docblock comment in order for it to be formatted.",cliCategory:"Other"},tabWidth:{type:"int",category:"Global",default:2,description:"Number of spaces per indentation level.",range:{start:0,end:1/0,step:1}},useTabs:{category:"Global",type:"boolean",default:!1,description:"Indent with tabs instead of spaces."},embeddedLanguageFormatting:{category:"Global",type:"choice",default:"auto",description:"Control how Prettier formats quoted code embedded in the file.",choices:[{value:"auto",description:"Format embedded code if Prettier can automatically identify it."},{value:"off",description:"Never automatically format embedded code."}]}};function GT({plugins:e=[],showDeprecated:t=!1}={}){let r=e.flatMap(s=>s.languages??[]),n=[];for(let s of xS(Object.assign({},...e.map(({options:i})=>i),gS)))!t&&s.deprecated||(Array.isArray(s.choices)&&(t||(s.choices=s.choices.filter(i=>!i.deprecated)),s.name==="parser"&&(s.choices=[...s.choices,...DS(s.choices,r,e)])),s.pluginDefaults=Object.fromEntries(e.filter(i=>i.defaultOptions?.[s.name]!==void 0).map(i=>[i.name,i.defaultOptions[s.name]])),n.push(s));return{languages:r,options:n}}function*DS(e,t,r){let n=new Set(e.map(s=>s.value));for(let s of t)if(s.parsers){for(let i of s.parsers)if(!n.has(i)){n.add(i);let o=r.find(u=>u.parsers&&Object.prototype.hasOwnProperty.call(u.parsers,i)),l=s.name;o?.name&&(l+=` (plugin: ${o.name})`),yield{value:i,description:l}}}}function xS(e){let t=[];for(let[r,n]of Object.entries(e)){let s={name:r,...n};Array.isArray(s.default)&&(s.default=jr(0,s.default,-1).value),t.push(s)}return t}var TS=Array.prototype.toReversed??function(){return[...this].reverse()},ES=up("toReversed",function(){if(Array.isArray(this))return TS}),bS=ES;function CS(){let e=globalThis,t=e.Deno?.build?.os;return typeof t=="string"?t==="windows":e.navigator?.platform?.startsWith("Win")??e.process?.platform?.startsWith("win")??!1}var AS=CS();function QT(e){if(e=e instanceof URL?e:new URL(e),e.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${e.protocol}"`);return e}function vS(e){return e=QT(e),decodeURIComponent(e.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function SS(e){e=QT(e);let t=decodeURIComponent(e.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return e.hostname!==""&&(t=`\\\\${e.hostname}${t}`),t}function _S(e){return AS?SS(e):vS(e)}var FS=e=>String(e).split(/[/\\]/u).pop(),kS=e=>String(e).startsWith("file:");function JD(e,t){if(!t)return;let r=FS(t).toLowerCase();return e.find(({filenames:n})=>n?.some(s=>s.toLowerCase()===r))??e.find(({extensions:n})=>n?.some(s=>r.endsWith(s)))}function wS(e,t){if(t)return e.find(({name:r})=>r.toLowerCase()===t)??e.find(({aliases:r})=>r?.includes(t))??e.find(({extensions:r})=>r?.includes(`.${t}`))}var PS=void 0;function RD(e,t){if(t){if(kS(t))try{t=_S(t)}catch{return}if(typeof t=="string")return e.find(({isSupported:r})=>r?.({filepath:t}))}}function NS(e,t){let r=bS(0,e.plugins).flatMap(n=>n.languages??[]);return(wS(r,t.language)??JD(r,t.physicalFile)??JD(r,t.file)??RD(r,t.physicalFile)??RD(r,t.file)??PS?.(r,t.physicalFile))?.parsers[0]}var YT=NS,wu={key:e=>/^[$_a-zA-Z][$_a-zA-Z0-9]*$/.test(e)?e:JSON.stringify(e),value(e){if(e===null||typeof e!="object")return JSON.stringify(e);if(Array.isArray(e))return`[${e.map(r=>wu.value(r)).join(", ")}]`;let t=Object.keys(e);return t.length===0?"{}":`{ ${t.map(r=>`${wu.key(r)}: ${wu.value(e[r])}`).join(", ")} }`},pair:({key:e,value:t})=>wu.value({[e]:t})},T2=new Proxy(String,{get:()=>T2}),ti=T2,ZT=()=>T2,IS=(e,t,{descriptor:r})=>{let n=[`${ti.yellow(typeof e=="string"?r.key(e):r.pair(e))} is deprecated`];return t&&n.push(`we now treat it as ${ti.blue(typeof t=="string"?r.key(t):r.pair(t))}`),n.join("; ")+"."},eE=Symbol.for("vnopts.VALUE_NOT_EXIST"),Cf=Symbol.for("vnopts.VALUE_UNCHANGED"),UD=" ".repeat(2),BS=(e,t,r)=>{let{text:n,list:s}=r.normalizeExpectedResult(r.schemas[e].expected(r)),i=[];return n&&i.push(qD(e,t,n,r.descriptor)),s&&i.push([qD(e,t,s.title,r.descriptor)].concat(s.values.map(o=>tE(o,r.loggerPrintWidth))).join(`
|
|
16
|
-
`)),rE(i,r.loggerPrintWidth)};function qD(e,t,r,n){return[`Invalid ${ti.red(n.key(e))} value.`,`Expected ${ti.blue(r)},`,`but received ${t===eE?ti.gray("nothing"):ti.red(n.value(t))}.`].join(" ")}function tE({text:e,list:t},r){let n=[];return e&&n.push(`- ${ti.blue(e)}`),t&&n.push([`- ${ti.blue(t.title)}:`].concat(t.values.map(s=>tE(s,r-UD.length).replace(/^|\n/g,`$&${UD}`))).join(`
|
|
17
|
-
`)),rE(n,r)}function rE(e,t){if(e.length===1)return e[0];let[r,n]=e,[s,i]=e.map(o=>o.split(`
|
|
18
|
-
`,1)[0].length);return s>t&&s>i?n:r}var fu=[],yy=[];function gy(e,t,r){if(e===t)return 0;let n=r?.maxDistance,s=e;e.length>t.length&&(e=t,t=s);let i=e.length,o=t.length;for(;i>0&&e.charCodeAt(~-i)===t.charCodeAt(~-o);)i--,o--;let l=0;for(;l<i&&e.charCodeAt(l)===t.charCodeAt(l);)l++;if(i-=l,o-=l,n!==void 0&&o-i>n)return n;if(i===0)return n!==void 0&&o>n?n:o;let u,f,p,d,y=0,m=0;for(;y<i;)yy[y]=e.charCodeAt(l+y),fu[y]=++y;for(;m<o;){for(u=t.charCodeAt(l+m),p=m++,f=m,y=0;y<i;y++)d=u===yy[y]?p:p+1,p=fu[y],f=fu[y]=p>f?d>f?f+1:d:d>p?p+1:d;if(n!==void 0){let D=f;for(y=0;y<i;y++)fu[y]<D&&(D=fu[y]);if(D>n)return n}}return fu.length=i,yy.length=i,n!==void 0&&f>n?n:f}function LS(e,t,r){if(!Array.isArray(t)||t.length===0)return;let n=r?.maxDistance,s=e.length;for(let u of t)if(u===e)return u;let i,o=Number.POSITIVE_INFINITY,l=new Set;for(let u of t){if(l.has(u))continue;l.add(u);let f=Math.abs(u.length-s);if(f>=o||f>n)continue;let p=Number.isFinite(o)?Math.min(o,n):n,d=p===void 0?gy(e,u):gy(e,u,{maxDistance:p});if(d>n)continue;let y=d;if(p!==void 0&&d===p&&p===n&&(y=gy(e,u)),y<o&&(o=y,i=u,o===0))break}if(!(o>n))return i}var nE=(e,t,{descriptor:r,logger:n,schemas:s})=>{let i=[`Ignored unknown option ${ti.yellow(r.pair({key:e,value:t}))}.`],o=LS(e,Object.keys(s),{maxDistance:3});o&&i.push(`Did you mean ${ti.blue(r.key(o))}?`),n.warn(i.join(" "))},OS=["default","expected","validate","deprecated","forward","redirect","overlap","preprocess","postprocess"];function $S(e,t){let r=new e(t),n=Object.create(r);for(let s of OS)s in t&&(n[s]=MS(t[s],r,Na.prototype[s].length));return n}var Na=class{static create(t){return $S(this,t)}constructor(t){this.name=t.name}default(t){}expected(t){return"nothing"}validate(t,r){return!1}deprecated(t,r){return!1}forward(t,r){}redirect(t,r){}overlap(t,r,n){return t}preprocess(t,r){return t}postprocess(t,r){return Cf}};function MS(e,t,r){return typeof e=="function"?(...n)=>e(...n.slice(0,r-1),t,...n.slice(r-1)):()=>e}var jS=class extends Na{constructor(t){super(t),this._sourceName=t.sourceName}expected(t){return t.schemas[this._sourceName].expected(t)}validate(t,r){return r.schemas[this._sourceName].validate(t,r)}redirect(t,r){return this._sourceName}},JS=class extends Na{expected(){return"anything"}validate(){return!0}},RS=class extends Na{constructor({valueSchema:t,name:r=t.name,...n}){super({...n,name:r}),this._valueSchema=t}expected(t){let{text:r,list:n}=t.normalizeExpectedResult(this._valueSchema.expected(t));return{text:r&&`an array of ${r}`,list:n&&{title:"an array of the following values",values:[{list:n}]}}}validate(t,r){if(!Array.isArray(t))return!1;let n=[];for(let s of t){let i=r.normalizeValidateResult(this._valueSchema.validate(s,r),s);i!==!0&&n.push(i.value)}return n.length===0?!0:{value:n}}deprecated(t,r){let n=[];for(let s of t){let i=r.normalizeDeprecatedResult(this._valueSchema.deprecated(s,r),s);i!==!1&&n.push(...i.map(({value:o})=>({value:[o]})))}return n}forward(t,r){let n=[];for(let s of t){let i=r.normalizeForwardResult(this._valueSchema.forward(s,r),s);n.push(...i.map(KD))}return n}redirect(t,r){let n=[],s=[];for(let i of t){let o=r.normalizeRedirectResult(this._valueSchema.redirect(i,r),i);"remain"in o&&n.push(o.remain),s.push(...o.redirect.map(KD))}return n.length===0?{redirect:s}:{redirect:s,remain:n}}overlap(t,r){return t.concat(r)}};function KD({from:e,to:t}){return{from:[e],to:t}}var US=class extends Na{expected(){return"true or false"}validate(t){return typeof t=="boolean"}};function qS(e,t){let r=Object.create(null);for(let n of e){let s=n[t];if(r[s])throw new Error(`Duplicate ${t} ${JSON.stringify(s)}`);r[s]=n}return r}function KS(e,t){let r=new Map;for(let n of e){let s=n[t];if(r.has(s))throw new Error(`Duplicate ${t} ${JSON.stringify(s)}`);r.set(s,n)}return r}function zS(){let e=Object.create(null);return t=>{let r=JSON.stringify(t);return e[r]?!0:(e[r]=!0,!1)}}function WS(e,t){let r=[],n=[];for(let s of e)t(s)?r.push(s):n.push(s);return[r,n]}function VS(e){return e===Math.floor(e)}function HS(e,t){if(e===t)return 0;let r=typeof e,n=typeof t,s=["undefined","object","boolean","number","string"];return r!==n?s.indexOf(r)-s.indexOf(n):r!=="string"?Number(e)-Number(t):e.localeCompare(t)}function XS(e){return(...t)=>{let r=e(...t);return typeof r=="string"?new Error(r):r}}function zD(e){return e===void 0?{}:e}function sE(e){if(typeof e=="string")return{text:e};let{text:t,list:r}=e;return GS((t||r)!==void 0,"Unexpected `expected` result, there should be at least one field."),r?{text:t,list:{title:r.title,values:r.values.map(sE)}}:{text:t}}function WD(e,t){return e===!0?!0:e===!1?{value:t}:e}function VD(e,t,r=!1){return e===!1?!1:e===!0?r?!0:[{value:t}]:"value"in e?[e]:e.length===0?!1:e}function HD(e,t){return typeof e=="string"||"key"in e?{from:t,to:e}:"from"in e?{from:e.from,to:e.to}:{from:t,to:e.to}}function p0(e,t){return e===void 0?[]:Array.isArray(e)?e.map(r=>HD(r,t)):[HD(e,t)]}function XD(e,t){let r=p0(typeof e=="object"&&"redirect"in e?e.redirect:e,t);return r.length===0?{remain:t,redirect:r}:typeof e=="object"&&"remain"in e?{remain:e.remain,redirect:r}:{redirect:r}}function GS(e,t){if(!e)throw new Error(t)}var QS=class extends Na{constructor(t){super(t),this._choices=KS(t.choices.map(r=>r&&typeof r=="object"?r:{value:r}),"value")}expected({descriptor:t}){let r=Array.from(this._choices.keys()).map(i=>this._choices.get(i)).filter(({hidden:i})=>!i).map(i=>i.value).sort(HS).map(t.value),n=r.slice(0,-2),s=r.slice(-2);return{text:n.concat(s.join(" or ")).join(", "),list:{title:"one of the following values",values:r}}}validate(t){return this._choices.has(t)}deprecated(t){let r=this._choices.get(t);return r&&r.deprecated?{value:t}:!1}forward(t){let r=this._choices.get(t);return r?r.forward:void 0}redirect(t){let r=this._choices.get(t);return r?r.redirect:void 0}},YS=class extends Na{expected(){return"a number"}validate(t,r){return typeof t=="number"}},ZS=class extends YS{expected(){return"an integer"}validate(t,r){return r.normalizeValidateResult(super.validate(t,r),t)===!0&&VS(t)}},GD=class extends Na{expected(){return"a string"}validate(t){return typeof t=="string"}},e_=wu,t_=nE,r_=BS,n_=IS,s_=class{constructor(t,r){let{logger:n=console,loggerPrintWidth:s=80,descriptor:i=e_,unknown:o=t_,invalid:l=r_,deprecated:u=n_,missing:f=()=>!1,required:p=()=>!1,preprocess:d=m=>m,postprocess:y=()=>Cf}=r||{};this._utils={descriptor:i,logger:n||{warn:()=>{}},loggerPrintWidth:s,schemas:qS(t,"name"),normalizeDefaultResult:zD,normalizeExpectedResult:sE,normalizeDeprecatedResult:VD,normalizeForwardResult:p0,normalizeRedirectResult:XD,normalizeValidateResult:WD},this._unknownHandler=o,this._invalidHandler=XS(l),this._deprecatedHandler=u,this._identifyMissing=(m,D)=>!(m in D)||f(m,D),this._identifyRequired=p,this._preprocess=d,this._postprocess=y,this.cleanHistory()}cleanHistory(){this._hasDeprecationWarned=zS()}normalize(t){let r={},n=[this._preprocess(t,this._utils)],s=()=>{for(;n.length!==0;){let i=n.shift(),o=this._applyNormalization(i,r);n.push(...o)}};s();for(let i of Object.keys(this._utils.schemas)){let o=this._utils.schemas[i];if(!(i in r)){let l=zD(o.default(this._utils));"value"in l&&n.push({[i]:l.value})}}s();for(let i of Object.keys(this._utils.schemas)){if(!(i in r))continue;let o=this._utils.schemas[i],l=r[i],u=o.postprocess(l,this._utils);u!==Cf&&(this._applyValidation(u,i,o),r[i]=u)}return this._applyPostprocess(r),this._applyRequiredCheck(r),r}_applyNormalization(t,r){let n=[],{knownKeys:s,unknownKeys:i}=this._partitionOptionKeys(t);for(let o of s){let l=this._utils.schemas[o],u=l.preprocess(t[o],this._utils);this._applyValidation(u,o,l);let f=({from:y,to:m})=>{n.push(typeof m=="string"?{[m]:y}:{[m.key]:m.value})},p=({value:y,redirectTo:m})=>{let D=VD(l.deprecated(y,this._utils),u,!0);if(D!==!1)if(D===!0)this._hasDeprecationWarned(o)||this._utils.logger.warn(this._deprecatedHandler(o,m,this._utils));else for(let{value:T}of D){let S={key:o,value:T};if(!this._hasDeprecationWarned(S)){let v=typeof m=="string"?{key:m,value:T}:m;this._utils.logger.warn(this._deprecatedHandler(S,v,this._utils))}}};p0(l.forward(u,this._utils),u).forEach(f);let d=XD(l.redirect(u,this._utils),u);if(d.redirect.forEach(f),"remain"in d){let y=d.remain;r[o]=o in r?l.overlap(r[o],y,this._utils):y,p({value:y})}for(let{from:y,to:m}of d.redirect)p({value:y,redirectTo:m})}for(let o of i){let l=t[o];this._applyUnknownHandler(o,l,r,(u,f)=>{n.push({[u]:f})})}return n}_applyRequiredCheck(t){for(let r of Object.keys(this._utils.schemas))if(this._identifyMissing(r,t)&&this._identifyRequired(r))throw this._invalidHandler(r,eE,this._utils)}_partitionOptionKeys(t){let[r,n]=WS(Object.keys(t).filter(s=>!this._identifyMissing(s,t)),s=>s in this._utils.schemas);return{knownKeys:r,unknownKeys:n}}_applyValidation(t,r,n){let s=WD(n.validate(t,this._utils),t);if(s!==!0)throw this._invalidHandler(r,s.value,this._utils)}_applyUnknownHandler(t,r,n,s){let i=this._unknownHandler(t,r,this._utils);if(i)for(let o of Object.keys(i)){if(this._identifyMissing(o,i))continue;let l=i[o];o in this._utils.schemas?s(o,l):n[o]=l}}_applyPostprocess(t){let r=this._postprocess(t,this._utils);if(r!==Cf){if(r.delete)for(let n of r.delete)delete t[n];if(r.override){let{knownKeys:n,unknownKeys:s}=this._partitionOptionKeys(r.override);for(let i of n){let o=r.override[i];this._applyValidation(o,i,this._utils.schemas[i]),t[i]=o}for(let i of s){let o=r.override[i];this._applyUnknownHandler(i,o,t,(l,u)=>{let f=this._utils.schemas[l];this._applyValidation(u,l,f),t[l]=u})}}}}},Dy;function i_(e,t,{logger:r=!1,isCLI:n=!1,passThrough:s=!1,FlagSchema:i,descriptor:o}={}){if(n){if(!i)throw new Error("'FlagSchema' option is required.");if(!o)throw new Error("'descriptor' option is required.")}else o=wu;let l=s?Array.isArray(s)?(y,m)=>s.includes(y)?{[y]:m}:void 0:(y,m)=>({[y]:m}):(y,m,D)=>{let{_:T,...S}=D.schemas;return nE(y,m,{...D,schemas:S})},u=a_(t,{isCLI:n,FlagSchema:i}),f=new s_(u,{logger:r,unknown:l,descriptor:o}),p=r!==!1;p&&Dy&&(f._hasDeprecationWarned=Dy);let d=f.normalize(e);return p&&(Dy=f._hasDeprecationWarned),d}function a_(e,{isCLI:t,FlagSchema:r}){let n=[];t&&n.push(JS.create({name:"_"}));for(let s of e)n.push(o_(s,{isCLI:t,optionInfos:e,FlagSchema:r})),s.alias&&t&&n.push(jS.create({name:s.alias,sourceName:s.name}));return n}function o_(e,{isCLI:t,optionInfos:r,FlagSchema:n}){let{name:s}=e,i={name:s},o,l={};switch(e.type){case"int":o=ZS,t&&(i.preprocess=Number);break;case"string":o=GD;break;case"choice":o=QS,i.choices=e.choices.map(u=>u?.redirect?{...u,redirect:{to:{key:e.name,value:u.redirect}}}:u);break;case"boolean":o=US;break;case"flag":o=n,i.flags=r.flatMap(u=>[u.alias,u.description&&u.name,u.oppositeDescription&&`no-${u.name}`].filter(Boolean));break;case"path":o=GD;break;default:throw new Error(`Unexpected type ${e.type}`)}if(e.exception?i.validate=(u,f,p)=>e.exception(u)||f.validate(u,p):i.validate=(u,f,p)=>u===void 0||f.validate(u,p),e.redirect&&(l.redirect=u=>u?{to:typeof e.redirect=="string"?e.redirect:{key:e.redirect.option,value:e.redirect.value}}:void 0),e.deprecated&&(l.deprecated=!0),t&&!e.array){let u=i.preprocess||(f=>f);i.preprocess=(f,p,d)=>p.preprocess(u(Array.isArray(f)?jr(0,f,-1):f),d)}return e.array?RS.create({...t?{preprocess:u=>Array.isArray(u)?u:[u]}:{},...l,valueSchema:o.create(i)}):o.create({...i,...l})}var u_=i_,l_=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},c_=up("findLast",function(){if(Array.isArray(this))return l_}),iE=c_,p_=Symbol.for("PRETTIER_IS_FRONT_MATTER"),d_=[];function h_(e){return!!e?.[p_]}var E2=h_,aE=new Set(["yaml","toml"]),oE=({node:e})=>E2(e)&&aE.has(e.language);async function f_(e,t,r,n){let{node:s}=r,{language:i}=s;if(!aE.has(i))return;let o=s.value.trim(),l;if(o){let u=i==="yaml"?i:YT(n,{language:i});if(!u)return;l=o?await e(o,{parser:u}):""}else l=o;return PT([s.startDelimiter,s.explicitLanguage??"",Ii,l,l?Ii:"",s.endDelimiter])}function m_(e,t){return oE({node:e})&&(delete t.end,delete t.raw,delete t.value),t}var y_=m_;function g_({node:e}){return e.raw}var D_=g_,uE=new Set(["tokens","comments","parent","enclosingNode","precedingNode","followingNode"]),x_=e=>Object.keys(e).filter(t=>!uE.has(t));function T_(e,t){let r=e?n=>e(n,uE):x_;return t?new Proxy(r,{apply:(n,s,i)=>E2(i[0])?d_:Reflect.apply(n,s,i)}):r}var QD=T_;function lE(e,t){if(!t)throw new Error("parserName is required.");let r=iE(0,e,s=>s.parsers&&Object.prototype.hasOwnProperty.call(s.parsers,t));if(r)return r;let n=`Couldn't resolve parser "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new XT(n)}function E_(e,t){if(!t)throw new Error("astFormat is required.");let r=iE(0,e,s=>s.printers&&Object.prototype.hasOwnProperty.call(s.printers,t));if(r)return r;let n=`Couldn't find plugin for AST format "${t}".`;throw n+=" Plugins must be explicitly added to the standalone bundle.",new XT(n)}function b2({plugins:e,parser:t}){let r=lE(e,t);return cE(r,t)}function cE(e,t){let r=e.parsers[t];return typeof r=="function"?r():r}async function b_(e,t){let r=e.printers[t],n=typeof r=="function"?await r():r;return C_(n)}var xy=new WeakMap;function C_(e){if(xy.has(e))return xy.get(e);let{features:t,getVisitorKeys:r,embed:n,massageAstNode:s,print:i,...o}=e;t=__(t);let l=t.experimental_frontMatterSupport;r=QD(r,l.massageAstNode||l.embed||l.print);let u=s;s&&l.massageAstNode&&(u=new Proxy(s,{apply(y,m,D){return y_(...D),Reflect.apply(y,m,D)}}));let f=n;if(n){let y;f=new Proxy(n,{get(m,D,T){return D==="getVisitorKeys"?(y??(y=n.getVisitorKeys?QD(n.getVisitorKeys,l.massageAstNode||l.embed):r),y):Reflect.get(m,D,T)},apply:(m,D,T)=>l.embed&&oE(...T)?f_:Reflect.apply(m,D,T)})}let p=i;l.print&&(p=new Proxy(i,{apply(y,m,D){let[T]=D;return E2(T.node)?D_(T):Reflect.apply(y,m,D)}}));let d={features:t,getVisitorKeys:r,embed:f,massageAstNode:u,print:p,...o};return xy.set(e,d),d}var A_=["clean","embed","print"],v_=Object.fromEntries(A_.map(e=>[e,!1]));function S_(e){return{...v_,...e}}function __(e){return{experimental_avoidAstMutation:!1,...e,experimental_frontMatterSupport:S_(e?.experimental_frontMatterSupport)}}var YD={astFormat:"estree",printer:{},originalText:void 0,locStart:null,locEnd:null,getVisitorKeys:null};async function F_(e,t={}){let r={...e};if(!r.parser)if(r.filepath){if(r.parser=YT(r,{physicalFile:r.filepath}),!r.parser)throw new jD(`No parser could be inferred for file "${r.filepath}".`)}else throw new jD("No parser and no file path given, couldn't infer a parser.");let n=GT({plugins:e.plugins,showDeprecated:!0}).options,s={...YD,...Object.fromEntries(n.filter(d=>d.default!==void 0).map(d=>[d.name,d.default]))},i=lE(r.plugins,r.parser),o=await cE(i,r.parser);r.astFormat=o.astFormat,r.locEnd=o.locEnd,r.locStart=o.locStart;let l=i.printers?.[o.astFormat]?i:E_(r.plugins,o.astFormat),u=await b_(l,o.astFormat);r.printer=u,r.getVisitorKeys=u.getVisitorKeys;let f=l.defaultOptions?Object.fromEntries(Object.entries(l.defaultOptions).filter(([,d])=>d!==void 0)):{},p={...s,...f};for(let[d,y]of Object.entries(p))(r[d]===null||r[d]===void 0)&&(r[d]=y);return r.parser==="json"&&(r.trailingComma="none"),u_(r,n,{passThrough:Object.keys(YD),...t})}var Yu=F_;KA(zA());var C2={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]};new Set(C2.keyword);new Set(C2.strict);new Set(C2.strictBind);var tf=(e,t)=>r=>e(t(r));function pE(e){return{keyword:e.cyan,capitalized:e.yellow,jsxIdentifier:e.yellow,punctuator:e.yellow,number:e.magenta,string:e.green,regex:e.magenta,comment:e.gray,invalid:tf(tf(e.white,e.bgRed),e.bold),gutter:e.gray,marker:tf(e.red,e.bold),message:tf(e.red,e.bold),reset:e.reset}}pE(ZT());pE(ZT());function k_(){return new Proxy({},{get:()=>e=>e})}var ZD=/\r\n|[\n\r\u2028\u2029]/;function w_(e,t,r){let n=Object.assign({column:0,line:-1},e.start),s=Object.assign({},n,e.end),{linesAbove:i=2,linesBelow:o=3}=r||{},l=n.line,u=n.column,f=s.line,p=s.column,d=Math.max(l-(i+1),0),y=Math.min(t.length,f+o);l===-1&&(d=0),f===-1&&(y=t.length);let m=f-l,D={};if(m)for(let T=0;T<=m;T++){let S=T+l;if(!u)D[S]=!0;else if(T===0){let v=t[S-1].length;D[S]=[u,v-u+1]}else if(T===m)D[S]=[0,p];else{let v=t[S-T].length;D[S]=[0,v]}}else u===p?u?D[l]=[u,0]:D[l]=!0:D[l]=[u,p-u];return{start:d,end:y,markerLines:D}}function P_(e,t,r={}){let n=k_(),s=e.split(ZD),{start:i,end:o,markerLines:l}=w_(t,s,r),u=t.start&&typeof t.start.column=="number",f=String(o).length,p=e.split(ZD,o).slice(i,o).map((d,y)=>{let m=i+1+y,D=` ${` ${m}`.slice(-f)} |`,T=l[m],S=!l[m+1];if(T){let v="";if(Array.isArray(T)){let E=d.slice(0,Math.max(T[0]-1,0)).replace(/[^\t]/g," "),C=T[1]||1;v=[`
|
|
19
|
-
`,n.gutter(D.replace(/\d/g," "))," ",E,n.marker("^").repeat(C)].join(""),S&&r.message&&(v+=" "+n.message(r.message))}return[n.marker(">"),n.gutter(D),d.length>0?` ${d}`:"",v].join("")}else return` ${n.gutter(D)}${d.length>0?` ${d}`:""}`}).join(`
|
|
20
|
-
`);return r.message&&!u&&(p=`${" ".repeat(f+1)}${r.message}
|
|
21
|
-
${p}`),p}async function N_(e,t){let r=await b2(t),n=r.preprocess?await r.preprocess(e,t):e;t.originalText=n;let s;try{s=await r.parse(n,t,t)}catch(i){I_(i,e)}return{text:n,ast:s}}function I_(e,t){let{loc:r}=e;if(r){let n=P_(t,r,{});throw e.message+=`
|
|
22
|
-
`+n,e.codeFrame=n,e}throw e}var cp=N_;async function B_(e,t,r,n,s){if(r.embeddedLanguageFormatting!=="auto")return;let{printer:i}=r,{embed:o}=i;if(!o)return;if(o.length>2)throw new Error("printer.embed has too many parameters. The API changed in Prettier v3. Please update your plugin. See https://prettier.io/docs/plugins#optional-embed");let{hasPrettierIgnore:l}=i,{getVisitorKeys:u}=o,f=[];y();let p=e.stack;for(let{print:m,node:D,pathStack:T}of f)try{e.stack=T;let S=await m(d,t,e,r);S&&s.set(D,S)}catch(S){if(globalThis.PRETTIER_DEBUG)throw S}e.stack=p;function d(m,D){return L_(m,D,r,n)}function y(){let{node:m}=e;if(m===null||typeof m!="object"||l?.(e))return;for(let T of u(m))Array.isArray(m[T])?e.each(y,T):e.call(y,T);let D=o(e,r);if(D){if(typeof D=="function"){f.push({print:D,node:m,pathStack:[...e.stack]});return}s.set(m,D)}}}async function L_(e,t,r,n){let s=await Yu({...r,...t,parentParser:r.parser,originalText:e,cursorOffset:void 0,rangeStart:void 0,rangeEnd:void 0},{passThrough:!0}),{ast:i}=await cp(e,s),o=await n(i,s);return wT(o)}function O_(e,t,r,n){let{originalText:s,[Symbol.for("comments")]:i,locStart:o,locEnd:l,[Symbol.for("printedComments")]:u}=t,{node:f}=e,p=o(f),d=l(f);for(let m of i)o(m)>=p&&l(m)<=d&&u.add(m);let{printPrettierIgnored:y}=t.printer;return y?y(e,t,r,n):s.slice(p,d)}var $_=O_;async function dm(e,t){({ast:e}=await dE(e,t));let r=new Map,n=new Yv(e),s=new Map;await B_(n,o,t,dm,s);let i=await ex(n,t,o,void 0,s);if(yS(t),t.cursorOffset>=0){if(t.nodeAfterCursor&&!t.nodeBeforeCursor)return[Eo,i];if(t.nodeBeforeCursor&&!t.nodeAfterCursor)return[i,Eo]}return i;function o(u,f){return u===void 0||u===n?l(f):Array.isArray(u)?n.call(()=>l(f),...u):n.call(()=>l(f),u)}function l(u){let f=n.node;if(f==null)return"";let p=g2(f)&&u===void 0;if(p&&r.has(f))return r.get(f);let d=ex(n,t,o,u,s);return p&&r.set(f,d),d}}function ex(e,t,r,n,s){let{node:i}=e,{printer:o}=t,l;switch(o.hasPrettierIgnore?.(e)?l=$_(e,t,r,n):s.has(i)?l=s.get(i):l=o.print(e,t,r,n),i){case t.cursorNode:l=bf(l,u=>[Eo,u,Eo]);break;case t.nodeBeforeCursor:l=bf(l,u=>[u,Eo]);break;case t.nodeAfterCursor:l=bf(l,u=>[Eo,u]);break}return o.printComment&&!o.willPrintOwnComments?.(e,t)&&(l=mS(e,l,t)),l}async function dE(e,t){let r=e.comments??[];t[Symbol.for("comments")]=r,t[Symbol.for("printedComments")]=new Set,uS(e,t);let{printer:{preprocess:n}}=t;return e=n?await n(e,t):e,{ast:e,comments:r}}function M_(e,t){let{cursorOffset:r,locStart:n,locEnd:s,getVisitorKeys:i}=t,o=m=>n(m)<=r&&s(m)>=r,l=e,u=[e];for(let m of iS(e,{getVisitorKeys:i,filter:o}))u.push(m),l=m;if(aS(l,{getVisitorKeys:i}))return{cursorNode:l};let f,p,d=-1,y=Number.POSITIVE_INFINITY;for(;u.length>0&&(f===void 0||p===void 0);){l=u.pop();let m=f!==void 0,D=p!==void 0;for(let T of pm(l,{getVisitorKeys:i})){if(!m){let S=s(T);S<=r&&S>d&&(f=T,d=S)}if(!D){let S=n(T);S>=r&&S<y&&(p=T,y=S)}}}return{nodeBeforeCursor:f,nodeAfterCursor:p}}var hE=M_;function j_(e,t){let{printer:r}=t,n=r.massageAstNode;if(!n)return e;let{getVisitorKeys:s}=r,{ignoredProperties:i}=n;return o(e);function o(l,u){if(!g2(l))return l;if(Array.isArray(l))return l.map(y=>o(y,u)).filter(Boolean);let f={},p=new Set(s(l));for(let y in l)!Object.prototype.hasOwnProperty.call(l,y)||i?.has(y)||(p.has(y)?f[y]=o(l[y],l):f[y]=l[y]);let d=n(l,f,u);if(d!==null)return d??f}}var J_=j_,R_=Array.prototype.findLastIndex??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return t}return-1},U_=up("findLastIndex",function(){if(Array.isArray(this))return R_}),q_=U_,K_=({parser:e})=>e==="json"||e==="json5"||e==="jsonc"||e==="json-stringify";function z_(e,t){return t=new Set(t),e.find(r=>fE.has(r.type)&&t.has(r))}function tx(e){let t=q_(0,e,r=>r.type!=="Program"&&r.type!=="File");return t===-1?e:e.slice(0,t+1)}function W_(e,t,{locStart:r,locEnd:n}){let[s,...i]=e,[o,...l]=t;if(s===o)return[s,o];let u=r(s);for(let p of tx(l))if(r(p)>=u)o=p;else break;let f=n(o);for(let p of tx(i)){if(n(p)<=f)s=p;else break;if(s===o)break}return[s,o]}function d0(e,t,r,n,s=[],i){let{locStart:o,locEnd:l}=r,u=o(e),f=l(e);if(t>f||t<u||i==="rangeEnd"&&t===u||i==="rangeStart"&&t===f)return;let p=[e,...s],d=KT(e,p,{cache:zT,locStart:o,locEnd:l,getVisitorKeys:r.getVisitorKeys,filter:r.printer.canAttachComment,getChildren:r.printer.getCommentChildNodes});for(let y of d){let m=d0(y,t,r,n,p,i);if(m)return m}if(n(e,s[0]))return p}function V_(e,t){return t!=="DeclareExportDeclaration"&&e!=="TypeParameterDeclaration"&&(e==="Directive"||e==="TypeAlias"||e==="TSExportAssignment"||e.startsWith("Declare")||e.startsWith("TSDeclare")||e.endsWith("Statement")||e.endsWith("Declaration"))}var fE=new Set(["JsonRoot","ObjectExpression","ArrayExpression","StringLiteral","NumericLiteral","BooleanLiteral","NullLiteral","UnaryExpression","TemplateLiteral"]),H_=new Set(["OperationDefinition","FragmentDefinition","VariableDefinition","TypeExtensionDefinition","ObjectTypeDefinition","FieldDefinition","DirectiveDefinition","EnumTypeDefinition","EnumValueDefinition","InputValueDefinition","InputObjectTypeDefinition","SchemaDefinition","OperationTypeDefinition","InterfaceTypeDefinition","UnionTypeDefinition","ScalarTypeDefinition"]);function rx(e,t,r){if(!t)return!1;switch(e.parser){case"flow":case"hermes":case"babel":case"babel-flow":case"babel-ts":case"typescript":case"acorn":case"espree":case"meriyah":case"oxc":case"oxc-ts":case"__babel_estree":return V_(t.type,r?.type);case"json":case"json5":case"jsonc":case"json-stringify":return fE.has(t.type);case"graphql":return H_.has(t.kind);case"vue":return t.tag!=="root"}return!1}function X_(e,t,r){let{rangeStart:n,rangeEnd:s,locStart:i,locEnd:o}=t,l=e.slice(n,s).search(/\S/u),u=l===-1;if(!u)for(n+=l;s>n&&!/\S/u.test(e[s-1]);--s);let f=d0(r,n,t,(m,D)=>rx(t,m,D),[],"rangeStart");if(!f)return;let p=u?f:d0(r,s,t,m=>rx(t,m),[],"rangeEnd");if(!p)return;let d,y;if(K_(t)){let m=z_(f,p);d=m,y=m}else[d,y]=W_(f,p,t);return[Math.min(i(d),i(y)),Math.max(o(d),o(y))]}var mE="\uFEFF",nx=Symbol("cursor");async function yE(e,t,r=0){if(!e||e.trim().length===0)return{formatted:"",cursorOffset:-1,comments:[]};let{ast:n,text:s}=await cp(e,t);t.cursorOffset>=0&&(t={...t,...hE(n,t)});let i=await dm(n,t);r>0&&(i=NT([Ii,i],r,t.tabWidth));let o=cm(i,t);if(r>0){let u=o.formatted.trim();o.cursorNodeStart!==void 0&&(o.cursorNodeStart-=o.formatted.indexOf(u),o.cursorNodeStart<0&&(o.cursorNodeStart=0,o.cursorNodeText=o.cursorNodeText.trimStart()),o.cursorNodeStart+o.cursorNodeText.length>u.length&&(o.cursorNodeText=o.cursorNodeText.trimEnd())),o.formatted=u+p2(t.endOfLine)}let l=t[Symbol.for("comments")];if(t.cursorOffset>=0){let u,f,p,d;if((t.cursorNode||t.nodeBeforeCursor||t.nodeAfterCursor)&&o.cursorNodeText)if(p=o.cursorNodeStart,d=o.cursorNodeText,t.cursorNode)u=t.locStart(t.cursorNode),f=s.slice(u,t.locEnd(t.cursorNode));else{if(!t.nodeBeforeCursor&&!t.nodeAfterCursor)throw new Error("Cursor location must contain at least one of cursorNode, nodeBeforeCursor, nodeAfterCursor");u=t.nodeBeforeCursor?t.locEnd(t.nodeBeforeCursor):0;let v=t.nodeAfterCursor?t.locStart(t.nodeAfterCursor):s.length;f=s.slice(u,v)}else u=0,f=s,p=0,d=o.formatted;let y=t.cursorOffset-u;if(f===d)return{formatted:o.formatted,cursorOffset:p+y,comments:l};let m=f.split("");m.splice(y,0,nx);let D=d.split(""),T=YA(m,D),S=p;for(let v of T)if(v.removed){if(v.value.includes(nx))break}else S+=v.count;return{formatted:o.formatted,cursorOffset:S,comments:l}}return{formatted:o.formatted,cursorOffset:-1,comments:l}}async function G_(e,t){let{ast:r,text:n}=await cp(e,t),[s,i]=X_(n,t,r)??[0,0],o=n.slice(s,i),l=Math.min(s,n.lastIndexOf(`
|
|
23
|
-
`,s)+1),u=n.slice(l,s).match(/^\s*/u)[0],f=y2(u,t.tabWidth),p=await yE(o,{...t,rangeStart:0,rangeEnd:Number.POSITIVE_INFINITY,cursorOffset:t.cursorOffset>s&&t.cursorOffset<=i?t.cursorOffset-s:-1,endOfLine:"lf"},f),d=p.formatted.trimEnd(),{cursorOffset:y}=t;y>i?y+=d.length-o.length:p.cursorOffset>=0&&(y=p.cursorOffset+s);let m=n.slice(0,s)+d+n.slice(i);if(t.endOfLine!=="lf"){let D=p2(t.endOfLine);y>=0&&D===`\r
|
|
24
|
-
`&&(y+=FT(m.slice(0,y),`
|
|
25
|
-
`)),m=am(0,m,`
|
|
26
|
-
`,D)}return{formatted:m,cursorOffset:y,comments:p.comments}}function Ty(e,t,r){return typeof t!="number"||Number.isNaN(t)||t<0||t>e.length?r:t}function sx(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:s}=t;return r=Ty(e,r,-1),n=Ty(e,n,0),s=Ty(e,s,e.length),{...t,cursorOffset:r,rangeStart:n,rangeEnd:s}}function gE(e,t){let{cursorOffset:r,rangeStart:n,rangeEnd:s,endOfLine:i}=sx(e,t),o=e.charAt(0)===mE;if(o&&(e=e.slice(1),r--,n--,s--),i==="auto"&&(i=sv(e)),e.includes("\r")){let l=u=>FT(e.slice(0,Math.max(u,0)),`\r
|
|
27
|
-
`);r-=l(r),n-=l(n),s-=l(s),e=ov(e)}return{hasBOM:o,text:e,options:sx(e,{...t,cursorOffset:r,rangeStart:n,rangeEnd:s,endOfLine:i})}}async function ix(e,t){let r=await b2(t);return!r.hasPragma||r.hasPragma(e)}async function Q_(e,t){return(await b2(t)).hasIgnorePragma?.(e)}async function DE(e,t){let{hasBOM:r,text:n,options:s}=gE(e,await Yu(t));if(s.rangeStart>=s.rangeEnd&&n!==""||s.requirePragma&&!await ix(n,s)||s.checkIgnorePragma&&await Q_(n,s))return{formatted:e,cursorOffset:t.cursorOffset,comments:[]};let i;return s.rangeStart>0||s.rangeEnd<n.length?i=await G_(n,s):(!s.requirePragma&&s.insertPragma&&s.printer.insertPragma&&!await ix(n,s)&&(n=s.printer.insertPragma(n)),i=await yE(n,s)),r&&(i.formatted=mE+i.formatted,i.cursorOffset>=0&&i.cursorOffset++),i}async function Y_(e,t,r){let{text:n,options:s}=gE(e,await Yu(t)),i=await cp(n,s);return r&&(r.preprocessForPrint&&(i.ast=await dE(i.ast,s)),r.massage&&(i.ast=J_(i.ast,s))),i}async function Z_(e,t){t=await Yu(t);let r=await dm(e,t);return cm(r,t)}async function eF(e,t){let r=$v(e),{formatted:n}=await DE(r,{...t,parser:"__js_expression"});return n}async function tF(e,t){t=await Yu(t);let{ast:r}=await cp(e,t);return t.cursorOffset>=0&&(t={...t,...hE(r,t)}),dm(r,t)}async function rF(e,t){return cm(e,await Yu(t))}var xE={};l2(xE,{builders:()=>nF,printer:()=>sF,utils:()=>iF});var nF={join:BT,line:LT,softline:Bv,hardline:Ii,literalline:$T,group:IT,conditionalGroup:wv,fill:kv,lineSuffix:l0,lineSuffixBoundary:Lv,cursor:Eo,breakParent:lm,ifBreak:Pv,trim:Ov,indent:Rf,indentIfBreak:Nv,align:qu,addAlignmentToDoc:NT,markAsRoot:PT,dedentToRoot:_v,dedent:Fv,hardlineWithoutBreakParent:f2,literallineWithoutBreakParent:OT,label:Iv,concat:e=>e},sF={printDocToString:cm},iF={willBreak:gv,traverseDoc:d2,findInDoc:h2,mapDoc:um,removeLines:Tv,stripTrailingHardline:wT,replaceEndOfLine:Cv,canBreak:vv},aF="3.8.1",TE={};l2(TE,{addDanglingComment:()=>mo,addLeadingComment:()=>Lc,addTrailingComment:()=>Oc,getAlignmentSize:()=>y2,getIndentSize:()=>dF,getMaxContinuousCount:()=>mF,getNextNonSpaceNonCommentCharacter:()=>gF,getNextNonSpaceNonCommentCharacterIndex:()=>_F,getPreferredQuote:()=>EF,getStringWidth:()=>m2,hasNewline:()=>Ca,hasNewlineInRange:()=>CF,hasSpaces:()=>vF,isNextLineEmpty:()=>NF,isNextLineEmptyAfterIndex:()=>_2,isPreviousLineEmpty:()=>kF,makeString:()=>PF,skip:()=>lp,skipEverythingButNewLine:()=>UT,skipInlineComment:()=>A2,skipNewline:()=>ko,skipSpaces:()=>Fa,skipToLineEnd:()=>RT,skipTrailingComment:()=>v2,skipWhitespace:()=>eS});function oF(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 A2=oF;function uF(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?UT(e,t):t}var v2=uF;function lF(e,t){let r=null,n=t;for(;n!==r;)r=n,n=Fa(e,n),n=A2(e,n),n=v2(e,n),n=ko(e,n);return n}var S2=lF;function cF(e,t){let r=null,n=t;for(;n!==r;)r=n,n=RT(e,n),n=A2(e,n),n=Fa(e,n);return n=v2(e,n),n=ko(e,n),n!==!1&&Ca(e,n)}var _2=cF;function pF(e,t){let r=e.lastIndexOf(`
|
|
28
|
-
`);return r===-1?0:y2(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var dF=pF;function hF(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}function fF(e,t){let r=e.matchAll(new RegExp(`(?:${hF(t)})+`,"gu"));return r.reduce||(r=[...r]),r.reduce((n,[s])=>Math.max(n,s.length),0)/t.length}var mF=fF;function yF(e,t){let r=S2(e,t);return r===!1?"":e.charAt(r)}var gF=yF,EE=Object.freeze({character:"'",codePoint:39}),bE=Object.freeze({character:'"',codePoint:34}),DF=Object.freeze({preferred:EE,alternate:bE}),xF=Object.freeze({preferred:bE,alternate:EE});function TF(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?DF:xF,{length:s}=e,i=0,o=0;for(let l=0;l<s;l++){let u=e.charCodeAt(l);u===r.codePoint?i++:u===n.codePoint&&o++}return(i>o?n:r).character}var EF=TF;function bF(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
|
29
|
-
`)return!0;return!1}var CF=bF;function AF(e,t,r={}){return Fa(e,r.backwards?t-1:t,r)!==t}var vF=AF;function SF(e,t,r){return S2(e,r(t))}function _F(e,t){return arguments.length===2||typeof t=="number"?S2(e,t):SF(...arguments)}function FF(e,t,r){return x2(e,r(t))}function kF(e,t){return arguments.length===2||typeof t=="number"?x2(e,t):FF(...arguments)}function wF(e,t,r){return _2(e,r(t))}function PF(e,t,r){let n=t==='"'?"'":'"',s=am(0,e,/\\(.)|(["'])/gsu,(i,o,l)=>o===n?o:l===t?"\\"+l:l||(r&&/^[^\n\r"'0-7\\bfnrt-vx\u2028\u2029]$/u.test(o)?o:"\\"+o));return t+s+t}function NF(e,t){return arguments.length===2||typeof t=="number"?_2(e,t):wF(...arguments)}function go(e,t=1){return async(...r)=>{let n=r[t]??{},s=n.plugins??[];return r[t]={...n,plugins:Array.isArray(s)?s:Object.values(s)},e(...r)}}var CE=go(DE);async function AE(e,t){let{formatted:r}=await CE(e,{...t,cursorOffset:-1});return r}async function IF(e,t){return await AE(e,t)===e}var BF=go(GT,0),LF={parse:go(Y_),formatAST:go(Z_),formatDoc:go(eF),printToDoc:go(tF),printDocToString:go(rF)},OF=Object.defineProperty,F2=(e,t)=>{for(var r in t)OF(e,r,{get:t[r],enumerable:!0})},$F={};F2($F,{parsers:()=>Lw});var vE={};F2(vE,{__babel_estree:()=>Fw,__js_expression:()=>Px,__ts_expression:()=>Nx,__vue_event_binding:()=>kx,__vue_expression:()=>Px,__vue_ts_event_binding:()=>wx,__vue_ts_expression:()=>Nx,babel:()=>kx,"babel-flow":()=>rb,"babel-ts":()=>wx});function MF(e,t){if(e==null)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.indexOf(n)!==-1)continue;r[n]=e[n]}return r}var Aa=class{line;column;index;constructor(t,r,n){this.line=t,this.column=r,this.index=n}},Uf=class{start;end;filename;identifierName;constructor(t,r){this.start=t,this.end=r}};function ms(e,t){let{line:r,column:n,index:s}=e;return new Aa(r,n+t,s+t)}var ax="BABEL_PARSER_SOURCETYPE_MODULE_REQUIRED",jF={ImportMetaOutsideModule:{message:`import.meta may appear only with 'sourceType: "module"'`,code:ax},ImportOutsideModule:{message:`'import' and 'export' may appear only with 'sourceType: "module"'`,code:ax}},ox={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"},Af=e=>e.type==="UpdateExpression"?ox.UpdateExpression[`${e.prefix}`]:ox[e.type],JF={AccessorIsGenerator:({kind:e})=>`A ${e}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.",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:e})=>`Missing initializer in ${e} declaration.`,DecoratorArgumentsOutsideParentheses:"Decorator arguments must be moved inside parentheses: use '@(decorator(args))' instead of '@(decorator)(args)'.",DecoratorBeforeExport:"Decorators must be placed *before* the 'export' keyword. Remove the 'decoratorsBeforeExport: true' option to use the 'export @decorator class {}' syntax.",DecoratorsBeforeAfterExport:"Decorators can be placed *either* before or after the 'export' keyword, but not in both locations at the same time.",DecoratorConstructor:"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?",DecoratorExportClass:"Decorators must be placed *after* the 'export' keyword. Remove the 'decoratorsBeforeExport: false' option to use the '@decorator export class {}' syntax.",DecoratorSemicolon:"Decorators must not be followed by a semicolon.",DecoratorStaticBlock:"Decorators can't be used with a static block.",DeferImportRequiresNamespace:'Only `import defer * as x from "./module"` is valid.',DeletePrivateField:"Deleting a private field is not allowed.",DestructureNamedImport:"ES2015 named imports do not destructure. Use another statement for destructuring after the import.",DuplicateConstructor:"Duplicate constructor in the same class.",DuplicateDefaultExport:"Only one default export allowed per module.",DuplicateExport:({exportName:e})=>`\`${e}\` has already been exported. Exported identifiers must be unique.`,DuplicateProto:"Redefinition of __proto__ property.",DuplicateRegExpFlags:"Duplicate regular expression flag.",ElementAfterRest:"Rest element must be last element.",EscapedCharNotAnIdentifier:"Invalid Unicode escape.",ExportBindingIsString:({localName:e,exportName:t})=>`A string literal cannot be used as an exported binding without \`from\`.
|
|
30
|
-
- Did you mean \`export { '${e}' as '${t}' } from 'some-module'\`?`,ExportDefaultFromAsIdentifier:"'from' is not allowed as an identifier after 'export default'.",ForInOfLoopInitializer:({type:e})=>`'${e==="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:e})=>`Unsyntactic ${e==="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:e})=>`A string literal cannot be used as an imported binding.
|
|
31
|
-
- Did you mean \`import { "${e}" 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.",InvalidCoverDiscardElement:"'void' must be followed by an expression when not used in a binding position.",InvalidCoverInitializedName:"Invalid shorthand property initializer.",InvalidDecimal:"Invalid decimal.",InvalidDigit:({radix:e})=>`Expected number in radix ${e}.`,InvalidEscapeSequence:"Bad character escape sequence.",InvalidEscapeSequenceTemplate:"Invalid escape sequence in template.",InvalidEscapedReservedWord:({reservedWord:e})=>`Escape sequence in keyword ${e}.`,InvalidIdentifier:({identifierName:e})=>`Invalid identifier ${e}.`,InvalidLhs:({ancestor:e})=>`Invalid left-hand side in ${Af(e)}.`,InvalidLhsBinding:({ancestor:e})=>`Binding invalid left-hand side in ${Af(e)}.`,InvalidLhsOptionalChaining:({ancestor:e})=>`Invalid optional chaining in the left-hand side of ${Af(e)}.`,InvalidNumber:"Invalid number.",InvalidOrMissingExponent:"Floating-point numbers require a valid exponent after the 'e'.",InvalidOrUnexpectedToken:({unexpected:e})=>`Unexpected character '${e}'.`,InvalidParenthesizedAssignment:"Invalid parenthesized assignment pattern.",InvalidPrivateFieldResolution:({identifierName:e})=>`Private name #${e} 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:e})=>`Label '${e}' 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:e})=>`This experimental syntax requires enabling the parser plugin: ${e.map(t=>JSON.stringify(t)).join(", ")}.`,MissingOneOfPlugins:({missingPlugin:e})=>`This experimental syntax requires enabling one of the following parser plugin(s): ${e.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:e})=>`Duplicate key "${e}" is not allowed in module attributes.`,ModuleExportNameHasLoneSurrogate:({surrogateCharCode:e})=>`An export name cannot include a lone surrogate, found '\\u${e.toString(16)}'.`,ModuleExportUndefined:({localName:e})=>`Export '${e}' 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:e})=>`Private names are only allowed in property accesses (\`obj.#${e}\`) or in \`in\` expressions (\`#${e} in obj\`).`,PrivateNameRedeclaration:({identifierName:e})=>`Duplicate private name #${e}.`,RecordExpressionBarIncorrectEndSyntaxType:"Record expressions ending with '|}' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionBarIncorrectStartSyntaxType:"Record expressions starting with '{|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",RecordExpressionHashIncorrectStartSyntaxType:"Record expressions starting with '#{' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",RecordNoProto:"'__proto__' is not allowed in Record expressions.",RestTrailingComma:"Unexpected trailing comma after rest element.",SloppyFunction:"In non-strict mode code, functions can only be declared at top level or inside a block.",SloppyFunctionAnnexB:"In non-strict mode code, functions can only be declared at top level, inside a block, or as the body of an if statement.",SourcePhaseImportRequiresDefault:'Only `import source x from "./module"` is valid.',StaticPrototype:"Classes may not have static property named prototype.",SuperNotAllowed:"`super()` is only valid inside a class constructor of a subclass. Maybe a typo in the method name ('constructor') or not extending another class?",SuperPrivateField:"Private fields can't be accessed on super.",TrailingDecorator:"Decorators must be attached to a class element.",TupleExpressionBarIncorrectEndSyntaxType:"Tuple expressions ending with '|]' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionBarIncorrectStartSyntaxType:"Tuple expressions starting with '[|' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'bar'.",TupleExpressionHashIncorrectStartSyntaxType:"Tuple expressions starting with '#[' are only allowed when the 'syntaxType' option of the 'recordAndTuple' plugin is set to 'hash'.",UnexpectedArgumentPlaceholder:"Unexpected argument placeholder.",UnexpectedAwaitAfterPipelineBody:'Unexpected "await" after pipeline body; await must have parentheses in minimal proposal.',UnexpectedDigitAfterHash:"Unexpected digit after hash token.",UnexpectedImportExport:"'import' and 'export' may only appear at the top level.",UnexpectedKeyword:({keyword:e})=>`Unexpected keyword '${e}'.`,UnexpectedLeadingDecorator:"Leading decorators must be attached to a class declaration.",UnexpectedLexicalDeclaration:"Lexical declaration cannot appear in a single-statement context.",UnexpectedNewTarget:"`new.target` can only be used in functions or class properties.",UnexpectedNumericSeparator:"A numeric separator is only allowed between two digits.",UnexpectedPrivateField:"Unexpected private name.",UnexpectedReservedWord:({reservedWord:e})=>`Unexpected reserved word '${e}'.`,UnexpectedSuper:"'super' is only allowed in object methods and classes.",UnexpectedToken:({expected:e,unexpected:t})=>`Unexpected token${t?` '${t}'.`:""}${e?`, expected "${e}"`:""}`,UnexpectedTokenUnaryExponentiation:"Illegal expression. Wrap left hand side or entire exponentiation in parentheses.",UnexpectedUsingDeclaration:"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement.",UnexpectedVoidPattern:"Unexpected void binding.",UnsupportedBind:"Binding should be performed on object property.",UnsupportedDecoratorExport:"A decorated export must export a class declaration.",UnsupportedDefaultExport:"Only expressions, functions or classes are allowed as the `default` export.",UnsupportedImport:"`import` can only be used in `import()` or `import.meta`.",UnsupportedMetaProperty:({target:e,onlyValidPropertyName:t})=>`The only valid meta property for ${e} is ${e}.${t}.`,UnsupportedParameterDecorator:"Decorators cannot be used to decorate parameters.",UnsupportedPropertyDecorator:"Decorators cannot be used to decorate object literal properties.",UnsupportedSuper:"'super' can only be used with function calls (i.e. super()) or in property accesses (i.e. super.prop or super[prop]).",UnterminatedComment:"Unterminated comment.",UnterminatedRegExp:"Unterminated regular expression.",UnterminatedString:"Unterminated string constant.",UnterminatedTemplate:"Unterminated template.",UsingDeclarationExport:"Using declaration cannot be exported.",UsingDeclarationHasBindingPattern:"Using declaration cannot have destructuring patterns.",VarRedeclaration:({identifierName:e})=>`Identifier '${e}' has already been declared.`,VoidPatternCatchClauseParam:"A void binding can not be the catch clause parameter. Use `try { ... } catch { ... }` if you want to discard the caught error.",VoidPatternInitializer:"A void binding may not have an initializer.",YieldBindingIdentifier:"Can not use 'yield' as identifier inside a generator.",YieldInParameter:"Yield expression is not allowed in formal parameters.",YieldNotInGeneratorFunction:"'yield' is only allowed within generator functions.",ZeroDigitNumericSeparator:"Numeric separator can not be used after leading 0."},RF={StrictDelete:"Deleting local variable in strict mode.",StrictEvalArguments:({referenceName:e})=>`Assigning to '${e}' in strict mode.`,StrictEvalArgumentsBinding:({bindingName:e})=>`Binding '${e}' in strict mode.`,StrictFunction:"In strict mode code, functions can only be declared at top level or inside a block.",StrictNumericEscape:"The only valid numeric escape in strict mode is '\\0'.",StrictOctalLiteral:"Legacy octal literals are not allowed in strict mode.",StrictWith:"'with' in strict mode."},UF={ParseExpressionEmptyInput:"Unexpected parseExpression() input: The input is empty or contains only comments.",ParseExpressionExpectsEOF:({unexpected:e})=>`Unexpected parseExpression() input: The input should contain exactly one expression, but the first expression is followed by the unexpected character \`${String.fromCodePoint(e)}\`.`},qF=new Set(["ArrowFunctionExpression","AssignmentExpression","ConditionalExpression","YieldExpression"]),KF=Object.assign({PipeBodyIsTighter:"Unexpected yield after pipeline body; any yield expression acting as Hack-style pipe body must be parenthesized due to its loose operator precedence.",PipeTopicRequiresHackPipes:'Topic references are only supported when using the `"proposal": "hack"` version of the pipeline proposal.',PipeTopicUnbound:"Topic reference is unbound; it must be inside a pipe body.",PipeTopicUnconfiguredToken:({token:e})=>`Invalid topic token ${e}. In order to use ${e} as a topic reference, the pipelineOperator plugin must be configured with { "proposal": "hack", "topicToken": "${e}" }.`,PipeTopicUnused:"Hack-style pipe body does not contain a topic reference; Hack-style pipes must use topic at least once.",PipeUnparenthesizedBody:({type:e})=>`Hack-style pipe body cannot be an unparenthesized ${Af({type:e})}; please wrap it in parentheses.`},{}),zF=["message"];function ux(e,t,r){Object.defineProperty(e,t,{enumerable:!1,configurable:!0,value:r})}function WF({toMessage:e,code:t,reasonCode:r,syntaxPlugin:n}){let s=r==="MissingPlugin"||r==="MissingOneOfPlugins";return function i(o,l){let u=new SyntaxError;return u.code=t,u.reasonCode=r,u.loc=o,u.pos=o.index,u.syntaxPlugin=n,s&&(u.missingPlugin=l.missingPlugin),ux(u,"clone",function(f={}){let{line:p,column:d,index:y}=f.loc??o;return i(new Aa(p,d,y),Object.assign({},l,f.details))}),ux(u,"details",l),Object.defineProperty(u,"message",{configurable:!0,get(){let f=`${e(l)} (${o.line}:${o.column})`;return this.message=f,f},set(f){Object.defineProperty(this,"message",{value:f,writable:!0})}}),u}}function Qs(e,t){if(Array.isArray(e))return n=>Qs(n,e[0]);let r={};for(let n of Object.keys(e)){let s=e[n],i=typeof s=="string"?{message:()=>s}:typeof s=="function"?{message:s}:s,{message:o}=i,l=MF(i,zF),u=typeof o=="string"?()=>o:o;r[n]=WF(Object.assign({code:"BABEL_PARSER_SYNTAX_ERROR",reasonCode:n,toMessage:u},t?{syntaxPlugin:t}:{},l))}return r}var K=Object.assign({},Qs(jF),Qs(JF),Qs(RF),Qs(UF),Qs`pipelineOperator`(KF));function VF(){return{sourceType:"script",sourceFilename:void 0,startIndex:0,startColumn:0,startLine:1,allowAwaitOutsideFunction:!1,allowReturnOutsideFunction:!1,allowNewTargetOutsideFunction:!1,allowImportExportEverywhere:!1,allowSuperOutsideMethod:!1,allowUndeclaredExports:!1,allowYieldOutsideFunction:!1,plugins:[],strictMode:void 0,ranges:!1,tokens:!1,createImportExpressions:!0,createParenthesizedExpressions:!1,errorRecovery:!1,attachComment:!0,annexB:!0}}function HF(e){let t=VF();if(e==null)return t;if(e.annexB!=null&&e.annexB!==!1)throw new Error("The `annexB` option can only be set to `false`.");for(let r of Object.keys(t))e[r]!=null&&(t[r]=e[r]);if(t.startLine===1)e.startIndex==null&&t.startColumn>0?t.startIndex=t.startColumn:e.startColumn==null&&t.startIndex>0&&(t.startColumn=t.startIndex);else if(e.startColumn==null||e.startIndex==null)throw new Error("With a `startLine > 1` you must also specify `startIndex` and `startColumn`.");if(t.sourceType==="commonjs"){if(e.allowAwaitOutsideFunction!=null)throw new Error("The `allowAwaitOutsideFunction` option cannot be used with `sourceType: 'commonjs'`.");if(e.allowReturnOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowReturnOutsideFunction: true`, please remove the `allowReturnOutsideFunction` option or use `sourceType: 'script'`.");if(e.allowNewTargetOutsideFunction!=null)throw new Error("`sourceType: 'commonjs'` implies `allowNewTargetOutsideFunction: true`, please remove the `allowNewTargetOutsideFunction` option or use `sourceType: 'script'`.")}return t}var{defineProperty:XF}=Object,lx=(e,t)=>{e&&XF(e,t,{enumerable:!1,value:e[t]})};function oc(e){return lx(e.loc.start,"index"),lx(e.loc.end,"index"),e}var GF=e=>class extends e{parse(){let t=oc(super.parse());return this.optionFlags&256&&(t.tokens=t.tokens.map(oc)),t}parseRegExpLiteral({pattern:t,flags:r}){let n=null;try{n=new RegExp(t,r)}catch{}let s=this.estreeParseLiteral(n);return s.regex={pattern:t,flags:r},s}parseBigIntLiteral(t){let r;try{r=BigInt(t)}catch{r=null}let n=this.estreeParseLiteral(r);return n.bigint=String(n.value||t),n}parseDecimalLiteral(t){let r=this.estreeParseLiteral(null);return r.decimal=String(r.value||t),r}estreeParseLiteral(t){return this.parseLiteral(t,"Literal")}parseStringLiteral(t){return this.estreeParseLiteral(t)}parseNumericLiteral(t){return this.estreeParseLiteral(t)}parseNullLiteral(){return this.estreeParseLiteral(null)}parseBooleanLiteral(t){return this.estreeParseLiteral(t)}estreeParseChainExpression(t,r){let n=this.startNodeAtNode(t);return n.expression=t,this.finishNodeAt(n,"ChainExpression",r)}directiveToStmt(t){let r=t.value;delete t.value,this.castNodeTo(r,"Literal"),r.raw=r.extra.raw,r.value=r.extra.expressionValue;let n=this.castNodeTo(t,"ExpressionStatement");return n.expression=r,n.directive=r.extra.rawValue,delete r.extra,n}fillOptionalPropertiesForTSESLint(t){}cloneEstreeStringLiteral(t){let{start:r,end:n,loc:s,range:i,raw:o,value:l}=t,u=Object.create(t.constructor.prototype);return u.type="Literal",u.start=r,u.end=n,u.loc=s,u.range=i,u.raw=o,u.value=l,u}initFunction(t,r){super.initFunction(t,r),t.expression=!1}checkDeclaration(t){t!=null&&this.isObjectProperty(t)?this.checkDeclaration(t.value):super.checkDeclaration(t)}getObjectOrClassMethodParams(t){return t.value.params}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="Literal"&&typeof t.expression.value=="string"&&!t.expression.extra?.parenthesized}parseBlockBody(t,r,n,s,i){super.parseBlockBody(t,r,n,s,i);let o=t.directives.map(l=>this.directiveToStmt(l));t.body=o.concat(t.body),delete t.directives}parsePrivateName(){let t=super.parsePrivateName();return this.convertPrivateNameToPrivateIdentifier(t)}convertPrivateNameToPrivateIdentifier(t){let r=super.getPrivateNameSV(t);return delete t.id,t.name=r,this.castNodeTo(t,"PrivateIdentifier")}isPrivateName(t){return t.type==="PrivateIdentifier"}getPrivateNameSV(t){return t.name}parseLiteral(t,r){let n=super.parseLiteral(t,r);return n.raw=n.extra.raw,delete n.extra,n}parseFunctionBody(t,r,n=!1){super.parseFunctionBody(t,r,n),t.expression=t.body.type!=="BlockStatement"}parseMethod(t,r,n,s,i,o,l=!1){let u=this.startNode();u.kind=t.kind,u=super.parseMethod(u,r,n,s,i,o,l),delete u.kind;let{typeParameters:f}=t;f&&(delete t.typeParameters,u.typeParameters=f,this.resetStartLocationFromNode(u,f));let p=this.castNodeTo(u,this.hasPlugin("typescript")&&!u.body?"TSEmptyBodyFunctionExpression":"FunctionExpression");return t.value=p,o==="ClassPrivateMethod"&&(t.computed=!1),this.hasPlugin("typescript")&&t.abstract?(delete t.abstract,this.finishNode(t,"TSAbstractMethodDefinition")):o==="ObjectMethod"?(t.kind==="method"&&(t.kind="init"),t.shorthand=!1,this.finishNode(t,"Property")):this.finishNode(t,"MethodDefinition")}nameIsConstructor(t){return t.type==="Literal"?t.value==="constructor":super.nameIsConstructor(t)}parseClassProperty(...t){let r=super.parseClassProperty(...t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractPropertyDefinition")):this.castNodeTo(r,"PropertyDefinition"),r}parseClassPrivateProperty(...t){let r=super.parseClassPrivateProperty(...t);return r.abstract&&this.hasPlugin("typescript")?this.castNodeTo(r,"TSAbstractPropertyDefinition"):this.castNodeTo(r,"PropertyDefinition"),r.computed=!1,r}parseClassAccessorProperty(t){let r=super.parseClassAccessorProperty(t);return r.abstract&&this.hasPlugin("typescript")?(delete r.abstract,this.castNodeTo(r,"TSAbstractAccessorProperty")):this.castNodeTo(r,"AccessorProperty"),r}parseObjectProperty(t,r,n,s){let i=super.parseObjectProperty(t,r,n,s);return i&&(i.kind="init",this.castNodeTo(i,"Property")),i}finishObjectProperty(t){return t.kind="init",this.finishNode(t,"Property")}isValidLVal(t,r,n,s){return t==="Property"?"value":super.isValidLVal(t,r,n,s)}isAssignable(t,r){return t!=null&&this.isObjectProperty(t)?this.isAssignable(t.value,r):super.isAssignable(t,r)}toAssignable(t,r=!1){if(t!=null&&this.isObjectProperty(t)){let{key:n,value:s}=t;this.isPrivateName(n)&&this.classScope.usePrivateName(this.getPrivateNameSV(n),n.loc.start),this.toAssignable(s,r)}else super.toAssignable(t,r)}toAssignableObjectExpressionProp(t,r,n){t.type==="Property"&&(t.kind==="get"||t.kind==="set")?this.raise(K.PatternHasAccessor,t.key):t.type==="Property"&&t.method?this.raise(K.PatternHasMethod,t.key):super.toAssignableObjectExpressionProp(t,r,n)}finishCallExpression(t,r){let n=super.finishCallExpression(t,r);return n.callee.type==="Import"?(this.castNodeTo(n,"ImportExpression"),n.source=n.arguments[0],n.options=n.arguments[1]??null,delete n.arguments,delete n.callee):n.type==="OptionalCallExpression"?this.castNodeTo(n,"CallExpression"):n.optional=!1,n}toReferencedArguments(t){t.type!=="ImportExpression"&&super.toReferencedArguments(t)}parseExport(t,r){let n=this.state.lastTokStartLoc,s=super.parseExport(t,r);switch(s.type){case"ExportAllDeclaration":s.exported=null;break;case"ExportNamedDeclaration":s.specifiers.length===1&&s.specifiers[0].type==="ExportNamespaceSpecifier"&&(this.castNodeTo(s,"ExportAllDeclaration"),s.exported=s.specifiers[0].exported,delete s.specifiers);case"ExportDefaultDeclaration":{let{declaration:i}=s;i?.type==="ClassDeclaration"&&i.decorators?.length>0&&i.start===s.start&&this.resetStartLocation(s,n)}break}return s}stopParseSubscript(t,r){let n=super.stopParseSubscript(t,r);return r.optionalChainMember?this.estreeParseChainExpression(n,t.loc.end):n}parseMember(t,r,n,s,i){let o=super.parseMember(t,r,n,s,i);return o.type==="OptionalMemberExpression"?this.castNodeTo(o,"MemberExpression"):o.optional=!1,o}isOptionalMemberExpression(t){return t.type==="ChainExpression"?t.expression.type==="MemberExpression":super.isOptionalMemberExpression(t)}hasPropertyAsPrivateName(t){return t.type==="ChainExpression"&&(t=t.expression),super.hasPropertyAsPrivateName(t)}isObjectProperty(t){return t.type==="Property"&&t.kind==="init"&&!t.method}isObjectMethod(t){return t.type==="Property"&&(t.method||t.kind==="get"||t.kind==="set")}castNodeTo(t,r){let n=super.castNodeTo(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}cloneIdentifier(t){let r=super.cloneIdentifier(t);return this.fillOptionalPropertiesForTSESLint(r),r}cloneStringLiteral(t){return t.type==="Literal"?this.cloneEstreeStringLiteral(t):super.cloneStringLiteral(t)}finishNodeAt(t,r,n){return oc(super.finishNodeAt(t,r,n))}finishNode(t,r){let n=super.finishNode(t,r);return this.fillOptionalPropertiesForTSESLint(n),n}resetStartLocation(t,r){super.resetStartLocation(t,r),oc(t)}resetEndLocation(t,r=this.state.lastTokEndLoc){super.resetEndLocation(t,r),oc(t)}},rf=class{constructor(t,r){this.token=t,this.preserveSpace=!!r}token;preserveSpace},lr={brace:new rf("{"),j_oTag:new rf("<tag"),j_cTag:new rf("</tag"),j_expr:new rf("<tag>...</tag>",!0)},wt=!0,je=!0,Ey=!0,uc=!0,la=!0,QF=!0,SE=class{label;keyword;beforeExpr;startsExpr;rightAssociative;isLoop;isAssign;prefix;postfix;binop;constructor(t,r={}){this.label=t,this.keyword=r.keyword,this.beforeExpr=!!r.beforeExpr,this.startsExpr=!!r.startsExpr,this.rightAssociative=!!r.rightAssociative,this.isLoop=!!r.isLoop,this.isAssign=!!r.isAssign,this.prefix=!!r.prefix,this.postfix=!!r.postfix,this.binop=r.binop!=null?r.binop:null}},k2=new Map;function Kt(e,t={}){t.keyword=e;let r=it(e,t);return k2.set(e,r),r}function Dn(e,t){return it(e,{beforeExpr:wt,binop:t})}var $c=-1,w2=[],P2=[],N2=[],I2=[],B2=[],L2=[];function it(e,t={}){return++$c,P2.push(e),N2.push(t.binop??-1),I2.push(t.beforeExpr??!1),B2.push(t.startsExpr??!1),L2.push(t.prefix??!1),w2.push(new SE(e,t)),$c}function Nt(e,t={}){return++$c,k2.set(e,$c),P2.push(e),N2.push(t.binop??-1),I2.push(t.beforeExpr??!1),B2.push(t.startsExpr??!1),L2.push(t.prefix??!1),w2.push(new SE("name",t)),$c}var YF={bracketL:it("[",{beforeExpr:wt,startsExpr:je}),bracketHashL:it("#[",{beforeExpr:wt,startsExpr:je}),bracketBarL:it("[|",{beforeExpr:wt,startsExpr:je}),bracketR:it("]"),bracketBarR:it("|]"),braceL:it("{",{beforeExpr:wt,startsExpr:je}),braceBarL:it("{|",{beforeExpr:wt,startsExpr:je}),braceHashL:it("#{",{beforeExpr:wt,startsExpr:je}),braceR:it("}"),braceBarR:it("|}"),parenL:it("(",{beforeExpr:wt,startsExpr:je}),parenR:it(")"),comma:it(",",{beforeExpr:wt}),semi:it(";",{beforeExpr:wt}),colon:it(":",{beforeExpr:wt}),doubleColon:it("::",{beforeExpr:wt}),dot:it("."),question:it("?",{beforeExpr:wt}),questionDot:it("?."),arrow:it("=>",{beforeExpr:wt}),template:it("template"),ellipsis:it("...",{beforeExpr:wt}),backQuote:it("`",{startsExpr:je}),dollarBraceL:it("${",{beforeExpr:wt,startsExpr:je}),templateTail:it("...`",{startsExpr:je}),templateNonTail:it("...${",{beforeExpr:wt,startsExpr:je}),at:it("@"),hash:it("#",{startsExpr:je}),interpreterDirective:it("#!..."),eq:it("=",{beforeExpr:wt,isAssign:uc}),assign:it("_=",{beforeExpr:wt,isAssign:uc}),slashAssign:it("_=",{beforeExpr:wt,isAssign:uc}),xorAssign:it("_=",{beforeExpr:wt,isAssign:uc}),moduloAssign:it("_=",{beforeExpr:wt,isAssign:uc}),incDec:it("++/--",{prefix:la,postfix:QF,startsExpr:je}),bang:it("!",{beforeExpr:wt,prefix:la,startsExpr:je}),tilde:it("~",{beforeExpr:wt,prefix:la,startsExpr:je}),doubleCaret:it("^^",{startsExpr:je}),doubleAt:it("@@",{startsExpr:je}),pipeline:Dn("|>",0),nullishCoalescing:Dn("??",1),logicalOR:Dn("||",1),logicalAND:Dn("&&",2),bitwiseOR:Dn("|",3),bitwiseXOR:Dn("^",4),bitwiseAND:Dn("&",5),equality:Dn("==/!=/===/!==",6),lt:Dn("</>/<=/>=",7),gt:Dn("</>/<=/>=",7),relational:Dn("</>/<=/>=",7),bitShift:Dn("<</>>/>>>",8),bitShiftL:Dn("<</>>/>>>",8),bitShiftR:Dn("<</>>/>>>",8),plusMin:it("+/-",{beforeExpr:wt,binop:9,prefix:la,startsExpr:je}),modulo:it("%",{binop:10,startsExpr:je}),star:it("*",{binop:10}),slash:Dn("/",10),exponent:it("**",{beforeExpr:wt,binop:11,rightAssociative:!0}),_in:Kt("in",{beforeExpr:wt,binop:7}),_instanceof:Kt("instanceof",{beforeExpr:wt,binop:7}),_break:Kt("break"),_case:Kt("case",{beforeExpr:wt}),_catch:Kt("catch"),_continue:Kt("continue"),_debugger:Kt("debugger"),_default:Kt("default",{beforeExpr:wt}),_else:Kt("else",{beforeExpr:wt}),_finally:Kt("finally"),_function:Kt("function",{startsExpr:je}),_if:Kt("if"),_return:Kt("return",{beforeExpr:wt}),_switch:Kt("switch"),_throw:Kt("throw",{beforeExpr:wt,prefix:la,startsExpr:je}),_try:Kt("try"),_var:Kt("var"),_const:Kt("const"),_with:Kt("with"),_new:Kt("new",{beforeExpr:wt,startsExpr:je}),_this:Kt("this",{startsExpr:je}),_super:Kt("super",{startsExpr:je}),_class:Kt("class",{startsExpr:je}),_extends:Kt("extends",{beforeExpr:wt}),_export:Kt("export"),_import:Kt("import",{startsExpr:je}),_null:Kt("null",{startsExpr:je}),_true:Kt("true",{startsExpr:je}),_false:Kt("false",{startsExpr:je}),_typeof:Kt("typeof",{beforeExpr:wt,prefix:la,startsExpr:je}),_void:Kt("void",{beforeExpr:wt,prefix:la,startsExpr:je}),_delete:Kt("delete",{beforeExpr:wt,prefix:la,startsExpr:je}),_do:Kt("do",{isLoop:Ey,beforeExpr:wt}),_for:Kt("for",{isLoop:Ey}),_while:Kt("while",{isLoop:Ey}),_as:Nt("as",{startsExpr:je}),_assert:Nt("assert",{startsExpr:je}),_async:Nt("async",{startsExpr:je}),_await:Nt("await",{startsExpr:je}),_defer:Nt("defer",{startsExpr:je}),_from:Nt("from",{startsExpr:je}),_get:Nt("get",{startsExpr:je}),_let:Nt("let",{startsExpr:je}),_meta:Nt("meta",{startsExpr:je}),_of:Nt("of",{startsExpr:je}),_sent:Nt("sent",{startsExpr:je}),_set:Nt("set",{startsExpr:je}),_source:Nt("source",{startsExpr:je}),_static:Nt("static",{startsExpr:je}),_using:Nt("using",{startsExpr:je}),_yield:Nt("yield",{startsExpr:je}),_asserts:Nt("asserts",{startsExpr:je}),_checks:Nt("checks",{startsExpr:je}),_exports:Nt("exports",{startsExpr:je}),_global:Nt("global",{startsExpr:je}),_implements:Nt("implements",{startsExpr:je}),_intrinsic:Nt("intrinsic",{startsExpr:je}),_infer:Nt("infer",{startsExpr:je}),_is:Nt("is",{startsExpr:je}),_mixins:Nt("mixins",{startsExpr:je}),_proto:Nt("proto",{startsExpr:je}),_require:Nt("require",{startsExpr:je}),_satisfies:Nt("satisfies",{startsExpr:je}),_keyof:Nt("keyof",{startsExpr:je}),_readonly:Nt("readonly",{startsExpr:je}),_unique:Nt("unique",{startsExpr:je}),_abstract:Nt("abstract",{startsExpr:je}),_declare:Nt("declare",{startsExpr:je}),_enum:Nt("enum",{startsExpr:je}),_module:Nt("module",{startsExpr:je}),_namespace:Nt("namespace",{startsExpr:je}),_interface:Nt("interface",{startsExpr:je}),_type:Nt("type",{startsExpr:je}),_opaque:Nt("opaque",{startsExpr:je}),name:it("name",{startsExpr:je}),placeholder:it("%%",{startsExpr:je}),string:it("string",{startsExpr:je}),num:it("num",{startsExpr:je}),bigint:it("bigint",{startsExpr:je}),decimal:it("decimal",{startsExpr:je}),regexp:it("regexp",{startsExpr:je}),privateName:it("#name",{startsExpr:je}),eof:it("eof"),jsxName:it("jsxName"),jsxText:it("jsxText",{beforeExpr:wt}),jsxTagStart:it("jsxTagStart",{startsExpr:je}),jsxTagEnd:it("jsxTagEnd")};function Xt(e){return e>=93&&e<=133}function ZF(e){return e<=92}function ks(e){return e>=58&&e<=133}function _E(e){return e>=58&&e<=137}function ek(e){return I2[e]}function Ac(e){return B2[e]}function tk(e){return e>=29&&e<=33}function cx(e){return e>=129&&e<=131}function rk(e){return e>=90&&e<=92}function O2(e){return e>=58&&e<=92}function nk(e){return e>=39&&e<=59}function sk(e){return e===34}function ik(e){return L2[e]}function ak(e){return e>=121&&e<=123}function ok(e){return e>=124&&e<=130}function va(e){return P2[e]}function vf(e){return N2[e]}function uk(e){return e===57}function h0(e){return e>=24&&e<=25}function FE(e){return w2[e]}var $2="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ--ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",kE="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ--ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",lk=new RegExp("["+$2+"]"),ck=new RegExp("["+$2+kE+"]");$2=kE=null;var wE=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],pk=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239];function f0(e,t){let r=65536;for(let n=0,s=t.length;n<s;n+=2){if(r+=t[n],r>e)return!1;if(r+=t[n+1],r>=e)return!0}return!1}function Ys(e){return e<65?e===36:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&lk.test(String.fromCharCode(e)):f0(e,wE)}function Co(e){return e<48?e===36:e<58?!0:e<65?!1:e<=90?!0:e<97?e===95:e<=122?!0:e<=65535?e>=170&&ck.test(String.fromCharCode(e)):f0(e,wE)||f0(e,pk)}var M2={keyword:["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"],strict:["implements","interface","let","package","private","protected","public","static","yield"],strictBind:["eval","arguments"]},dk=new Set(M2.keyword),hk=new Set(M2.strict),fk=new Set(M2.strictBind);function PE(e,t){return t&&e==="await"||e==="enum"}function NE(e,t){return PE(e,t)||hk.has(e)}function IE(e){return fk.has(e)}function BE(e,t){return NE(e,t)||IE(e)}function mk(e){return dk.has(e)}function yk(e,t,r){return e===64&&t===64&&Ys(r)}var gk=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete","implements","interface","let","package","private","protected","public","static","yield","eval","arguments","enum","await"]);function Dk(e){return gk.has(e)}var j2=class{flags=0;names=new Map;firstLexicalName="";constructor(t){this.flags=t}},J2=class{parser;scopeStack=[];inModule;undefinedExports=new Map;constructor(t,r){this.parser=t,this.inModule=r}get inTopLevel(){return(this.currentScope().flags&1)>0}get inFunction(){return(this.currentVarScopeFlags()&2)>0}get allowSuper(){return(this.currentThisScopeFlags()&16)>0}get allowDirectSuper(){return(this.currentThisScopeFlags()&32)>0}get allowNewTarget(){return(this.currentThisScopeFlags()&512)>0}get inClass(){return(this.currentThisScopeFlags()&64)>0}get inClassAndNotInNonArrowFunction(){let t=this.currentThisScopeFlags();return(t&64)>0&&(t&2)===0}get inStaticBlock(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&128)return!0;if(r&1731)return!1}}get inNonArrowFunction(){return(this.currentThisScopeFlags()&2)>0}get inBareCaseStatement(){return(this.currentScope().flags&256)>0}get treatFunctionsAsVar(){return this.treatFunctionsAsVarInScope(this.currentScope())}createScope(t){return new j2(t)}enter(t){this.scopeStack.push(this.createScope(t))}exit(){return this.scopeStack.pop().flags}treatFunctionsAsVarInScope(t){return!!(t.flags&130||!this.parser.inModule&&t.flags&1)}declareName(t,r,n){let s=this.currentScope();if(r&8||r&16){this.checkRedeclarationInScope(s,t,r,n);let i=s.names.get(t)||0;r&16?i=i|4:(s.firstLexicalName||(s.firstLexicalName=t),i=i|2),s.names.set(t,i),r&8&&this.maybeExportDefined(s,t)}else if(r&4)for(let i=this.scopeStack.length-1;i>=0&&(s=this.scopeStack[i],this.checkRedeclarationInScope(s,t,r,n),s.names.set(t,(s.names.get(t)||0)|1),this.maybeExportDefined(s,t),!(s.flags&1667));--i);this.parser.inModule&&s.flags&1&&this.undefinedExports.delete(t)}maybeExportDefined(t,r){this.parser.inModule&&t.flags&1&&this.undefinedExports.delete(r)}checkRedeclarationInScope(t,r,n,s){this.isRedeclaredInScope(t,r,n)&&this.parser.raise(K.VarRedeclaration,s,{identifierName:r})}isRedeclaredInScope(t,r,n){if(!(n&1))return!1;if(n&8)return t.names.has(r);let s=t.names.get(r)||0;return n&16?(s&2)>0||!this.treatFunctionsAsVarInScope(t)&&(s&1)>0:(s&2)>0&&!(t.flags&8&&t.firstLexicalName===r)||!this.treatFunctionsAsVarInScope(t)&&(s&4)>0}checkLocalExport(t){let{name:r}=t;this.scopeStack[0].names.has(r)||this.undefinedExports.set(r,t.loc.start)}currentScope(){return this.scopeStack[this.scopeStack.length-1]}currentVarScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1667)return r}}currentThisScopeFlags(){for(let t=this.scopeStack.length-1;;t--){let{flags:r}=this.scopeStack[t];if(r&1731&&!(r&4))return r}}},xk=class extends j2{declareFunctions=new Set},Tk=class extends J2{createScope(t){return new xk(t)}declareName(t,r,n){let s=this.currentScope();if(r&2048){this.checkRedeclarationInScope(s,t,r,n),this.maybeExportDefined(s,t),s.declareFunctions.add(t);return}super.declareName(t,r,n)}isRedeclaredInScope(t,r,n){if(super.isRedeclaredInScope(t,r,n))return!0;if(n&2048&&!t.declareFunctions.has(r)){let s=t.names.get(r);return(s&4)>0||(s&2)>0}return!1}checkLocalExport(t){this.scopeStack[0].declareFunctions.has(t.name)||super.checkLocalExport(t)}},Ek=new Set(["_","any","bool","boolean","empty","extends","false","interface","mixed","null","number","static","string","true","typeof","void"]),ut=Qs`flow`({AmbiguousConditionalArrow:"Ambiguous expression: wrap the arrow functions in parentheses to disambiguate.",AmbiguousDeclareModuleKind:"Found both `declare module.exports` and `declare export` in the same module. Modules can only have 1 since they are either an ES module or they are a CommonJS module.",AssignReservedType:({reservedType:e})=>`Cannot overwrite reserved type ${e}.`,DeclareClassElement:"The `declare` modifier can only appear on class fields.",DeclareClassFieldInitializer:"Initializers are not allowed in fields with the `declare` modifier.",DuplicateDeclareModuleExports:"Duplicate `declare module.exports` statement.",EnumBooleanMemberNotInitialized:({memberName:e,enumName:t})=>`Boolean enum members need to be initialized. Use either \`${e} = true,\` or \`${e} = false,\` in enum \`${t}\`.`,EnumDuplicateMemberName:({memberName:e,enumName:t})=>`Enum member names need to be unique, but the name \`${e}\` has already been used before in enum \`${t}\`.`,EnumInconsistentMemberValues:({enumName:e})=>`Enum \`${e}\` has inconsistent member initializers. Either use no initializers, or consistently use literals (either booleans, numbers, or strings) for all member initializers.`,EnumInvalidExplicitType:({invalidEnumType:e,enumName:t})=>`Enum type \`${e}\` is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${t}\`.`,EnumInvalidExplicitTypeUnknownSupplied:({enumName:e})=>`Supplied enum type is not valid. Use one of \`boolean\`, \`number\`, \`string\`, or \`symbol\` in enum \`${e}\`.`,EnumInvalidMemberInitializerPrimaryType:({enumName:e,memberName:t,explicitType:r})=>`Enum \`${e}\` has type \`${r}\`, so the initializer of \`${t}\` needs to be a ${r} literal.`,EnumInvalidMemberInitializerSymbolType:({enumName:e,memberName:t})=>`Symbol enum members cannot be initialized. Use \`${t},\` in enum \`${e}\`.`,EnumInvalidMemberInitializerUnknownType:({enumName:e,memberName:t})=>`The enum member initializer for \`${t}\` needs to be a literal (either a boolean, number, or string) in enum \`${e}\`.`,EnumInvalidMemberName:({enumName:e,memberName:t,suggestion:r})=>`Enum member names cannot start with lowercase 'a' through 'z'. Instead of using \`${t}\`, consider using \`${r}\`, in enum \`${e}\`.`,EnumNumberMemberNotInitialized:({enumName:e,memberName:t})=>`Number enum members need to be initialized, e.g. \`${t} = 1\` in enum \`${e}\`.`,EnumStringMemberInconsistentlyInitialized:({enumName:e})=>`String enum members need to consistently either all use initializers, or use no initializers, in enum \`${e}\`.`,GetterMayNotHaveThisParam:"A getter cannot have a `this` parameter.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` or `typeof` keyword.",ImportTypeShorthandOnlyInPureImport:"The `type` and `typeof` keywords on named imports can only be used on regular `import` statements. It cannot be used with `import type` or `import typeof` statements.",InexactInsideExact:"Explicit inexact syntax cannot appear inside an explicit exact object type.",InexactInsideNonObject:"Explicit inexact syntax cannot appear in class or interface definitions.",InexactVariance:"Explicit inexact syntax cannot have variance.",InvalidNonTypeImportInDeclareModule:"Imports within a `declare module` body must always be `import type` or `import typeof`.",MissingTypeParamDefault:"Type parameter declaration needs a default, since a preceding type parameter declaration has a default.",NestedDeclareModule:"`declare module` cannot be used inside another `declare module`.",NestedFlowComment:"Cannot have a flow comment inside another flow comment.",PatternIsOptional:Object.assign({message:"A binding pattern parameter cannot be optional in an implementation signature."},{}),SetterMayNotHaveThisParam:"A setter cannot have a `this` parameter.",SpreadVariance:"Spread properties cannot have variance.",ThisParamAnnotationRequired:"A type annotation is required for the `this` parameter.",ThisParamBannedInConstructor:"Constructors cannot have a `this` parameter; constructors don't bind `this` like other functions.",ThisParamMayNotBeOptional:"The `this` parameter cannot be optional.",ThisParamMustBeFirst:"The `this` parameter must be the first function parameter.",ThisParamNoDefault:"The `this` parameter may not have a default value.",TypeBeforeInitializer:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeCastInPattern:"The type cast expression is expected to be wrapped with parenthesis.",UnexpectedExplicitInexactInObject:"Explicit inexact syntax must appear at the end of an inexact object.",UnexpectedReservedType:({reservedType:e})=>`Unexpected reserved type ${e}.`,UnexpectedReservedUnderscore:"`_` is only allowed as a type argument to call or new.",UnexpectedSpaceBetweenModuloChecks:"Spaces between `%` and `checks` are not allowed here.",UnexpectedSpreadType:"Spread operator cannot appear in class or interface definitions.",UnexpectedSubtractionOperand:'Unexpected token, expected "number" or "bigint".',UnexpectedTokenAfterTypeParameter:"Expected an arrow function after this type parameter declaration.",UnexpectedTypeParameterBeforeAsyncArrowFunction:"Type parameters must come after the async keyword, e.g. instead of `<T> async () => {}`, use `async <T>() => {}`.",UnsupportedDeclareExportKind:({unsupportedExportKind:e,suggestion:t})=>`\`declare export ${e}\` is not supported. Use \`${t}\` instead.`,UnsupportedStatementInDeclareModule:"Only declares and type imports are allowed inside declare module.",UnterminatedFlowComment:"Unterminated flow-comment."});function bk(e){return e.type==="DeclareExportAllDeclaration"||e.type==="DeclareExportDeclaration"&&(!e.declaration||e.declaration.type!=="TypeAlias"&&e.declaration.type!=="InterfaceDeclaration")}function px(e){return e.importKind==="type"||e.importKind==="typeof"}var Ck={const:"declare export var",let:"declare export var",type:"export type",interface:"export interface"};function Ak(e,t){let r=[],n=[];for(let s=0;s<e.length;s++)(t(e[s],s,e)?r:n).push(e[s]);return[r,n]}var vk=/\*?\s*@((?:no)?flow)\b/,Sk=e=>class extends e{flowPragma=void 0;getScopeHandler(){return Tk}shouldParseTypes(){return this.getPluginOption("flow","all")||this.flowPragma==="flow"}finishToken(t,r){t!==134&&t!==13&&t!==28&&this.flowPragma===void 0&&(this.flowPragma=null),super.finishToken(t,r)}addComment(t){if(this.flowPragma===void 0){let r=vk.exec(t.value);if(r)if(r[1]==="flow")this.flowPragma="flow";else if(r[1]==="noflow")this.flowPragma="noflow";else throw new Error("Unexpected flow pragma")}super.addComment(t)}flowParseTypeInitialiser(t){let r=this.state.inType;this.state.inType=!0,this.expect(t||14);let n=this.flowParseType();return this.state.inType=r,n}flowParsePredicate(){let t=this.startNode(),r=this.state.startLoc;return this.next(),this.expectContextual(110),this.state.lastTokStartLoc.index>r.index+1&&this.raise(ut.UnexpectedSpaceBetweenModuloChecks,r),this.eat(10)?(t.value=super.parseExpression(),this.expect(11),this.finishNode(t,"DeclaredPredicate")):this.finishNode(t,"InferredPredicate")}flowParseTypeAndPredicateInitialiser(){let t=this.state.inType;this.state.inType=!0,this.expect(14);let r=null,n=null;return this.match(54)?(this.state.inType=t,n=this.flowParsePredicate()):(r=this.flowParseType(),this.state.inType=t,this.match(54)&&(n=this.flowParsePredicate())),[r,n]}flowParseDeclareClass(t){return this.next(),this.flowParseInterfaceish(t,!0),this.finishNode(t,"DeclareClass")}flowParseDeclareFunction(t){this.next();let r=t.id=this.parseIdentifier(),n=this.startNode(),s=this.startNode();this.match(47)?n.typeParameters=this.flowParseTypeParameterDeclaration():n.typeParameters=null,this.expect(10);let i=this.flowParseFunctionTypeParams();return n.params=i.params,n.rest=i.rest,n.this=i._this,this.expect(11),[n.returnType,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),s.typeAnnotation=this.finishNode(n,"FunctionTypeAnnotation"),r.typeAnnotation=this.finishNode(s,"TypeAnnotation"),this.resetEndLocation(r),this.semicolon(),this.scope.declareName(t.id.name,2048,t.id.loc.start),this.finishNode(t,"DeclareFunction")}flowParseDeclare(t,r){if(this.match(80))return this.flowParseDeclareClass(t);if(this.match(68))return this.flowParseDeclareFunction(t);if(this.match(74))return this.flowParseDeclareVariable(t);if(this.eatContextual(127))return this.match(16)?this.flowParseDeclareModuleExports(t):(r&&this.raise(ut.NestedDeclareModule,this.state.lastTokStartLoc),this.flowParseDeclareModule(t));if(this.isContextual(130))return this.flowParseDeclareTypeAlias(t);if(this.isContextual(131))return this.flowParseDeclareOpaqueType(t);if(this.isContextual(129))return this.flowParseDeclareInterface(t);if(this.match(82))return this.flowParseDeclareExportDeclaration(t,r);throw this.unexpected()}flowParseDeclareVariable(t){return this.next(),t.id=this.flowParseTypeAnnotatableIdentifier(!0),this.scope.declareName(t.id.name,5,t.id.loc.start),this.semicolon(),this.finishNode(t,"DeclareVariable")}flowParseDeclareModule(t){this.scope.enter(0),this.match(134)?t.id=super.parseExprAtom():t.id=this.parseIdentifier();let r=t.body=this.startNode(),n=r.body=[];for(this.expect(5);!this.match(8);){let o=this.startNode();this.match(83)?(this.next(),!this.isContextual(130)&&!this.match(87)&&this.raise(ut.InvalidNonTypeImportInDeclareModule,this.state.lastTokStartLoc),n.push(super.parseImport(o))):(this.expectContextual(125,ut.UnsupportedStatementInDeclareModule),n.push(this.flowParseDeclare(o,!0)))}this.scope.exit(),this.expect(8),this.finishNode(r,"BlockStatement");let s=null,i=!1;return n.forEach(o=>{bk(o)?(s==="CommonJS"&&this.raise(ut.AmbiguousDeclareModuleKind,o),s="ES"):o.type==="DeclareModuleExports"&&(i&&this.raise(ut.DuplicateDeclareModuleExports,o),s==="ES"&&this.raise(ut.AmbiguousDeclareModuleKind,o),s="CommonJS",i=!0)}),t.kind=s||"CommonJS",this.finishNode(t,"DeclareModule")}flowParseDeclareExportDeclaration(t,r){if(this.expect(82),this.eat(65))return this.match(68)||this.match(80)?t.declaration=this.flowParseDeclare(this.startNode()):(t.declaration=this.flowParseType(),this.semicolon()),t.default=!0,this.finishNode(t,"DeclareExportDeclaration");if(this.match(75)||this.isLet()||(this.isContextual(130)||this.isContextual(129))&&!r){let n=this.state.value;throw this.raise(ut.UnsupportedDeclareExportKind,this.state.startLoc,{unsupportedExportKind:n,suggestion:Ck[n]})}if(this.match(74)||this.match(68)||this.match(80)||this.isContextual(131))return t.declaration=this.flowParseDeclare(this.startNode()),t.default=!1,this.finishNode(t,"DeclareExportDeclaration");if(this.match(55)||this.match(5)||this.isContextual(129)||this.isContextual(130)||this.isContextual(131))return t=this.parseExport(t,null),t.type==="ExportNamedDeclaration"?(t.default=!1,delete t.exportKind,this.castNodeTo(t,"DeclareExportDeclaration")):this.castNodeTo(t,"DeclareExportAllDeclaration");throw this.unexpected()}flowParseDeclareModuleExports(t){return this.next(),this.expectContextual(111),t.typeAnnotation=this.flowParseTypeAnnotation(),this.semicolon(),this.finishNode(t,"DeclareModuleExports")}flowParseDeclareTypeAlias(t){this.next();let r=this.flowParseTypeAlias(t);return this.castNodeTo(r,"DeclareTypeAlias"),r}flowParseDeclareOpaqueType(t){this.next();let r=this.flowParseOpaqueType(t,!0);return this.castNodeTo(r,"DeclareOpaqueType"),r}flowParseDeclareInterface(t){return this.next(),this.flowParseInterfaceish(t,!1),this.finishNode(t,"DeclareInterface")}flowParseInterfaceish(t,r){if(t.id=this.flowParseRestrictedIdentifier(!r,!0),this.scope.declareName(t.id.name,r?17:8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.extends=[],this.eat(81))do t.extends.push(this.flowParseInterfaceExtends());while(!r&&this.eat(12));if(r){if(t.implements=[],t.mixins=[],this.eatContextual(117))do t.mixins.push(this.flowParseInterfaceExtends());while(this.eat(12));if(this.eatContextual(113))do t.implements.push(this.flowParseInterfaceExtends());while(this.eat(12))}t.body=this.flowParseObjectType({allowStatic:r,allowExact:!1,allowSpread:!1,allowProto:r,allowInexact:!1})}flowParseInterfaceExtends(){let t=this.startNode();return t.id=this.flowParseQualifiedTypeIdentifier(),this.match(47)?t.typeParameters=this.flowParseTypeParameterInstantiation():t.typeParameters=null,this.finishNode(t,"InterfaceExtends")}flowParseInterface(t){return this.flowParseInterfaceish(t,!1),this.finishNode(t,"InterfaceDeclaration")}checkNotUnderscore(t){t==="_"&&this.raise(ut.UnexpectedReservedUnderscore,this.state.startLoc)}checkReservedType(t,r,n){Ek.has(t)&&this.raise(n?ut.AssignReservedType:ut.UnexpectedReservedType,r,{reservedType:t})}flowParseRestrictedIdentifier(t,r){return this.checkReservedType(this.state.value,this.state.startLoc,r),this.parseIdentifier(t)}flowParseTypeAlias(t){return t.id=this.flowParseRestrictedIdentifier(!1,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.right=this.flowParseTypeInitialiser(29),this.semicolon(),this.finishNode(t,"TypeAlias")}flowParseOpaqueType(t,r){return this.expectContextual(130),t.id=this.flowParseRestrictedIdentifier(!0,!0),this.scope.declareName(t.id.name,8201,t.id.loc.start),this.match(47)?t.typeParameters=this.flowParseTypeParameterDeclaration():t.typeParameters=null,t.supertype=null,this.match(14)&&(t.supertype=this.flowParseTypeInitialiser(14)),t.impltype=null,r||(t.impltype=this.flowParseTypeInitialiser(29)),this.semicolon(),this.finishNode(t,"OpaqueType")}flowParseTypeParameter(t=!1){let r=this.state.startLoc,n=this.startNode(),s=this.flowParseVariance(),i=this.flowParseTypeAnnotatableIdentifier();return n.name=i.name,n.variance=s,n.bound=i.typeAnnotation,this.match(29)?(this.eat(29),n.default=this.flowParseType()):t&&this.raise(ut.MissingTypeParamDefault,r),this.finishNode(n,"TypeParameter")}flowParseTypeParameterDeclaration(){let t=this.state.inType,r=this.startNode();r.params=[],this.state.inType=!0,this.match(47)||this.match(143)?this.next():this.unexpected();let n=!1;do{let s=this.flowParseTypeParameter(n);r.params.push(s),s.default&&(n=!0),this.match(48)||this.expect(12)}while(!this.match(48));return this.expect(48),this.state.inType=t,this.finishNode(r,"TypeParameterDeclaration")}flowInTopLevelContext(t){if(this.curContext()!==lr.brace){let r=this.state.context;this.state.context=[r[0]];try{return t()}finally{this.state.context=r}}else return t()}flowParseTypeParameterInstantiationInExpression(){if(this.reScan_lt()===47)return this.flowParseTypeParameterInstantiation()}flowParseTypeParameterInstantiation(){let t=this.startNode(),r=this.state.inType;return this.state.inType=!0,t.params=[],this.flowInTopLevelContext(()=>{this.expect(47);let n=this.state.noAnonFunctionType;for(this.state.noAnonFunctionType=!1;!this.match(48);)t.params.push(this.flowParseType()),this.match(48)||this.expect(12);this.state.noAnonFunctionType=n}),this.state.inType=r,!this.state.inType&&this.curContext()===lr.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TypeParameterInstantiation")}flowParseTypeParameterInstantiationCallOrNew(){if(this.reScan_lt()!==47)return null;let t=this.startNode(),r=this.state.inType;for(t.params=[],this.state.inType=!0,this.expect(47);!this.match(48);)t.params.push(this.flowParseTypeOrImplicitInstantiation()),this.match(48)||this.expect(12);return this.expect(48),this.state.inType=r,this.finishNode(t,"TypeParameterInstantiation")}flowParseInterfaceType(){let t=this.startNode();if(this.expectContextual(129),t.extends=[],this.eat(81))do t.extends.push(this.flowParseInterfaceExtends());while(this.eat(12));return t.body=this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!1,allowProto:!1,allowInexact:!1}),this.finishNode(t,"InterfaceTypeAnnotation")}flowParseObjectPropertyKey(){return this.match(135)||this.match(134)?super.parseExprAtom():this.parseIdentifier(!0)}flowParseObjectTypeIndexer(t,r,n){return t.static=r,this.lookahead().type===14?(t.id=this.flowParseObjectPropertyKey(),t.key=this.flowParseTypeInitialiser()):(t.id=null,t.key=this.flowParseType()),this.expect(3),t.value=this.flowParseTypeInitialiser(),t.variance=n,this.finishNode(t,"ObjectTypeIndexer")}flowParseObjectTypeInternalSlot(t,r){return t.static=r,t.id=this.flowParseObjectPropertyKey(),this.expect(3),this.expect(3),this.match(47)||this.match(10)?(t.method=!0,t.optional=!1,t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start))):(t.method=!1,this.eat(17)&&(t.optional=!0),t.value=this.flowParseTypeInitialiser()),this.finishNode(t,"ObjectTypeInternalSlot")}flowParseObjectTypeMethodish(t){for(t.params=[],t.rest=null,t.typeParameters=null,t.this=null,this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),this.expect(10),this.match(78)&&(t.this=this.flowParseFunctionTypeParam(!0),t.this.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.params.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(t.rest=this.flowParseFunctionTypeParam(!1)),this.expect(11),t.returnType=this.flowParseTypeInitialiser(),this.finishNode(t,"FunctionTypeAnnotation")}flowParseObjectTypeCallProperty(t,r){let n=this.startNode();return t.static=r,t.value=this.flowParseObjectTypeMethodish(n),this.finishNode(t,"ObjectTypeCallProperty")}flowParseObjectType({allowStatic:t,allowExact:r,allowSpread:n,allowProto:s,allowInexact:i}){let o=this.state.inType;this.state.inType=!0;let l=this.startNode();l.callProperties=[],l.properties=[],l.indexers=[],l.internalSlots=[];let u,f,p=!1;for(r&&this.match(6)?(this.expect(6),u=9,f=!0):(this.expect(5),u=8,f=!1),l.exact=f;!this.match(u);){let y=!1,m=null,D=null,T=this.startNode();if(s&&this.isContextual(118)){let v=this.lookahead();v.type!==14&&v.type!==17&&(this.next(),m=this.state.startLoc,t=!1)}if(t&&this.isContextual(106)){let v=this.lookahead();v.type!==14&&v.type!==17&&(this.next(),y=!0)}let S=this.flowParseVariance();if(this.eat(0))m!=null&&this.unexpected(m),this.eat(0)?(S&&this.unexpected(S.loc.start),l.internalSlots.push(this.flowParseObjectTypeInternalSlot(T,y))):l.indexers.push(this.flowParseObjectTypeIndexer(T,y,S));else if(this.match(10)||this.match(47))m!=null&&this.unexpected(m),S&&this.unexpected(S.loc.start),l.callProperties.push(this.flowParseObjectTypeCallProperty(T,y));else{let v="init";if(this.isContextual(99)||this.isContextual(104)){let C=this.lookahead();_E(C.type)&&(v=this.state.value,this.next())}let E=this.flowParseObjectTypeProperty(T,y,m,S,v,n,i??!f);E===null?(p=!0,D=this.state.lastTokStartLoc):l.properties.push(E)}this.flowObjectTypeSemicolon(),D&&!this.match(8)&&!this.match(9)&&this.raise(ut.UnexpectedExplicitInexactInObject,D)}this.expect(u),n&&(l.inexact=p);let d=this.finishNode(l,"ObjectTypeAnnotation");return this.state.inType=o,d}flowParseObjectTypeProperty(t,r,n,s,i,o,l){if(this.eat(21))return this.match(12)||this.match(13)||this.match(8)||this.match(9)?(o?l||this.raise(ut.InexactInsideExact,this.state.lastTokStartLoc):this.raise(ut.InexactInsideNonObject,this.state.lastTokStartLoc),s&&this.raise(ut.InexactVariance,s),null):(o||this.raise(ut.UnexpectedSpreadType,this.state.lastTokStartLoc),n!=null&&this.unexpected(n),s&&this.raise(ut.SpreadVariance,s),t.argument=this.flowParseType(),this.finishNode(t,"ObjectTypeSpreadProperty"));{t.key=this.flowParseObjectPropertyKey(),t.static=r,t.proto=n!=null,t.kind=i;let u=!1;return this.match(47)||this.match(10)?(t.method=!0,n!=null&&this.unexpected(n),s&&this.unexpected(s.loc.start),t.value=this.flowParseObjectTypeMethodish(this.startNodeAt(t.loc.start)),(i==="get"||i==="set")&&this.flowCheckGetterSetterParams(t),!o&&t.key.name==="constructor"&&t.value.this&&this.raise(ut.ThisParamBannedInConstructor,t.value.this)):(i!=="init"&&this.unexpected(),t.method=!1,this.eat(17)&&(u=!0),t.value=this.flowParseTypeInitialiser(),t.variance=s),t.optional=u,this.finishNode(t,"ObjectTypeProperty")}}flowCheckGetterSetterParams(t){let r=t.kind==="get"?0:1,n=t.value.params.length+(t.value.rest?1:0);t.value.this&&this.raise(t.kind==="get"?ut.GetterMayNotHaveThisParam:ut.SetterMayNotHaveThisParam,t.value.this),n!==r&&this.raise(t.kind==="get"?K.BadGetterArity:K.BadSetterArity,t),t.kind==="set"&&t.value.rest&&this.raise(K.BadSetterRestParameter,t)}flowObjectTypeSemicolon(){!this.eat(13)&&!this.eat(12)&&!this.match(8)&&!this.match(9)&&this.unexpected()}flowParseQualifiedTypeIdentifier(t,r){t??(t=this.state.startLoc);let n=r||this.flowParseRestrictedIdentifier(!0);for(;this.eat(16);){let s=this.startNodeAt(t);s.qualification=n,s.id=this.flowParseRestrictedIdentifier(!0),n=this.finishNode(s,"QualifiedTypeIdentifier")}return n}flowParseGenericType(t,r){let n=this.startNodeAt(t);return n.typeParameters=null,n.id=this.flowParseQualifiedTypeIdentifier(t,r),this.match(47)&&(n.typeParameters=this.flowParseTypeParameterInstantiation()),this.finishNode(n,"GenericTypeAnnotation")}flowParseTypeofType(){let t=this.startNode();return this.expect(87),t.argument=this.flowParsePrimaryType(),this.finishNode(t,"TypeofTypeAnnotation")}flowParseTupleType(){let t=this.startNode();for(t.types=[],this.expect(0);this.state.pos<this.length&&!this.match(3)&&(t.types.push(this.flowParseType()),!this.match(3));)this.expect(12);return this.expect(3),this.finishNode(t,"TupleTypeAnnotation")}flowParseFunctionTypeParam(t){let r=null,n=!1,s=null,i=this.startNode(),o=this.lookahead(),l=this.state.type===78;return o.type===14||o.type===17?(l&&!t&&this.raise(ut.ThisParamMustBeFirst,i),r=this.parseIdentifier(l),this.eat(17)&&(n=!0,l&&this.raise(ut.ThisParamMayNotBeOptional,i)),s=this.flowParseTypeInitialiser()):s=this.flowParseType(),i.name=r,i.optional=n,i.typeAnnotation=s,this.finishNode(i,"FunctionTypeParam")}reinterpretTypeAsFunctionTypeParam(t){let r=this.startNodeAt(t.loc.start);return r.name=null,r.optional=!1,r.typeAnnotation=t,this.finishNode(r,"FunctionTypeParam")}flowParseFunctionTypeParams(t=[]){let r=null,n=null;for(this.match(78)&&(n=this.flowParseFunctionTypeParam(!0),n.name=null,this.match(11)||this.expect(12));!this.match(11)&&!this.match(21);)t.push(this.flowParseFunctionTypeParam(!1)),this.match(11)||this.expect(12);return this.eat(21)&&(r=this.flowParseFunctionTypeParam(!1)),{params:t,rest:r,_this:n}}flowIdentToTypeAnnotation(t,r,n){switch(n.name){case"any":return this.finishNode(r,"AnyTypeAnnotation");case"bool":case"boolean":return this.finishNode(r,"BooleanTypeAnnotation");case"mixed":return this.finishNode(r,"MixedTypeAnnotation");case"empty":return this.finishNode(r,"EmptyTypeAnnotation");case"number":return this.finishNode(r,"NumberTypeAnnotation");case"string":return this.finishNode(r,"StringTypeAnnotation");case"symbol":return this.finishNode(r,"SymbolTypeAnnotation");default:return this.checkNotUnderscore(n.name),this.flowParseGenericType(t,n)}}flowParsePrimaryType(){let t=this.state.startLoc,r=this.startNode(),n,s,i=!1,o=this.state.noAnonFunctionType;switch(this.state.type){case 5:return this.flowParseObjectType({allowStatic:!1,allowExact:!1,allowSpread:!0,allowProto:!1,allowInexact:!0});case 6:return this.flowParseObjectType({allowStatic:!1,allowExact:!0,allowSpread:!0,allowProto:!1,allowInexact:!1});case 0:return this.state.noAnonFunctionType=!1,s=this.flowParseTupleType(),this.state.noAnonFunctionType=o,s;case 47:{let l=this.startNode();return l.typeParameters=this.flowParseTypeParameterDeclaration(),this.expect(10),n=this.flowParseFunctionTypeParams(),l.params=n.params,l.rest=n.rest,l.this=n._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),this.finishNode(l,"FunctionTypeAnnotation")}case 10:{let l=this.startNode();if(this.next(),!this.match(11)&&!this.match(21))if(Xt(this.state.type)||this.match(78)){let u=this.lookahead().type;i=u!==17&&u!==14}else i=!0;if(i){if(this.state.noAnonFunctionType=!1,s=this.flowParseType(),this.state.noAnonFunctionType=o,this.state.noAnonFunctionType||!(this.match(12)||this.match(11)&&this.lookahead().type===19))return this.expect(11),s;this.eat(12)}return s?n=this.flowParseFunctionTypeParams([this.reinterpretTypeAsFunctionTypeParam(s)]):n=this.flowParseFunctionTypeParams(),l.params=n.params,l.rest=n.rest,l.this=n._this,this.expect(11),this.expect(19),l.returnType=this.flowParseType(),l.typeParameters=null,this.finishNode(l,"FunctionTypeAnnotation")}case 134:return this.parseLiteral(this.state.value,"StringLiteralTypeAnnotation");case 85:case 86:return r.value=this.match(85),this.next(),this.finishNode(r,"BooleanLiteralTypeAnnotation");case 53:if(this.state.value==="-"){if(this.next(),this.match(135))return this.parseLiteralAtNode(-this.state.value,"NumberLiteralTypeAnnotation",r);if(this.match(136))return this.parseLiteralAtNode(-this.state.value,"BigIntLiteralTypeAnnotation",r);throw this.raise(ut.UnexpectedSubtractionOperand,this.state.startLoc)}throw this.unexpected();case 135:return this.parseLiteral(this.state.value,"NumberLiteralTypeAnnotation");case 136:return this.parseLiteral(this.state.value,"BigIntLiteralTypeAnnotation");case 88:return this.next(),this.finishNode(r,"VoidTypeAnnotation");case 84:return this.next(),this.finishNode(r,"NullLiteralTypeAnnotation");case 78:return this.next(),this.finishNode(r,"ThisTypeAnnotation");case 55:return this.next(),this.finishNode(r,"ExistsTypeAnnotation");case 87:return this.flowParseTypeofType();default:if(O2(this.state.type)){let l=va(this.state.type);return this.next(),super.createIdentifier(r,l)}else if(Xt(this.state.type))return this.isContextual(129)?this.flowParseInterfaceType():this.flowIdentToTypeAnnotation(t,r,this.parseIdentifier())}throw this.unexpected()}flowParsePostfixType(){let t=this.state.startLoc,r=this.flowParsePrimaryType(),n=!1;for(;(this.match(0)||this.match(18))&&!this.canInsertSemicolon();){let s=this.startNodeAt(t),i=this.eat(18);n=n||i,this.expect(0),!i&&this.match(3)?(s.elementType=r,this.next(),r=this.finishNode(s,"ArrayTypeAnnotation")):(s.objectType=r,s.indexType=this.flowParseType(),this.expect(3),n?(s.optional=i,r=this.finishNode(s,"OptionalIndexedAccessType")):r=this.finishNode(s,"IndexedAccessType"))}return r}flowParsePrefixType(){let t=this.startNode();return this.eat(17)?(t.typeAnnotation=this.flowParsePrefixType(),this.finishNode(t,"NullableTypeAnnotation")):this.flowParsePostfixType()}flowParseAnonFunctionWithoutParens(){let t=this.flowParsePrefixType();if(!this.state.noAnonFunctionType&&this.eat(19)){let r=this.startNodeAt(t.loc.start);return r.params=[this.reinterpretTypeAsFunctionTypeParam(t)],r.rest=null,r.this=null,r.returnType=this.flowParseType(),r.typeParameters=null,this.finishNode(r,"FunctionTypeAnnotation")}return t}flowParseIntersectionType(){let t=this.startNode();this.eat(45);let r=this.flowParseAnonFunctionWithoutParens();for(t.types=[r];this.eat(45);)t.types.push(this.flowParseAnonFunctionWithoutParens());return t.types.length===1?r:this.finishNode(t,"IntersectionTypeAnnotation")}flowParseUnionType(){let t=this.startNode();this.eat(43);let r=this.flowParseIntersectionType();for(t.types=[r];this.eat(43);)t.types.push(this.flowParseIntersectionType());return t.types.length===1?r:this.finishNode(t,"UnionTypeAnnotation")}flowParseType(){let t=this.state.inType;this.state.inType=!0;let r=this.flowParseUnionType();return this.state.inType=t,r}flowParseTypeOrImplicitInstantiation(){if(this.state.type===132&&this.state.value==="_"){let t=this.state.startLoc,r=this.parseIdentifier();return this.flowParseGenericType(t,r)}else return this.flowParseType()}flowParseTypeAnnotation(){let t=this.startNode();return t.typeAnnotation=this.flowParseTypeInitialiser(),this.finishNode(t,"TypeAnnotation")}flowParseTypeAnnotatableIdentifier(t){let r=t?this.parseIdentifier():this.flowParseRestrictedIdentifier();return this.match(14)&&(r.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(r)),r}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}flowParseVariance(){let t=null;return this.match(53)?(t=this.startNode(),this.state.value==="+"?t.kind="plus":t.kind="minus",this.next(),this.finishNode(t,"Variance")):t}parseFunctionBody(t,r,n=!1){if(r){this.forwardNoArrowParamsConversionAt(t,()=>super.parseFunctionBody(t,!0,n));return}super.parseFunctionBody(t,!1,n)}parseFunctionBodyAndFinish(t,r,n=!1){if(this.match(14)){let s=this.startNode();[s.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),t.returnType=s.typeAnnotation?this.finishNode(s,"TypeAnnotation"):null}return super.parseFunctionBodyAndFinish(t,r,n)}parseStatementLike(t){if(this.state.strict&&this.isContextual(129)){let n=this.lookahead();if(ks(n.type)){let s=this.startNode();return this.next(),this.flowParseInterface(s)}}else if(this.isContextual(126)){let n=this.startNode();return this.next(),this.flowParseEnumDeclaration(n)}let r=super.parseStatementLike(t);return this.flowPragma===void 0&&!this.isValidDirective(r)&&(this.flowPragma=null),r}parseExpressionStatement(t,r,n){if(r.type==="Identifier"){if(r.name==="declare"){if(this.match(80)||Xt(this.state.type)||this.match(68)||this.match(74)||this.match(82))return this.flowParseDeclare(t)}else if(Xt(this.state.type)){if(r.name==="interface")return this.flowParseInterface(t);if(r.name==="type")return this.flowParseTypeAlias(t);if(r.name==="opaque")return this.flowParseOpaqueType(t,!1)}}return super.parseExpressionStatement(t,r,n)}shouldParseExportDeclaration(){let{type:t}=this.state;return t===126||cx(t)?!this.state.containsEsc:super.shouldParseExportDeclaration()}isExportDefaultSpecifier(){let{type:t}=this.state;return t===126||cx(t)?this.state.containsEsc:super.isExportDefaultSpecifier()}parseExportDefaultExpression(){if(this.isContextual(126)){let t=this.startNode();return this.next(),this.flowParseEnumDeclaration(t)}return super.parseExportDefaultExpression()}parseConditional(t,r,n){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let d=this.lookaheadCharCode();if(d===44||d===61||d===58||d===41)return this.setOptionalParametersError(n),t}this.expect(17);let s=this.state.clone(),i=this.state.noArrowAt,o=this.startNodeAt(r),{consequent:l,failed:u}=this.tryParseConditionalConsequent(),[f,p]=this.getArrowLikeExpressions(l);if(u||p.length>0){let d=[...i];if(p.length>0){this.state=s,this.state.noArrowAt=d;for(let y=0;y<p.length;y++)d.push(p[y].start);({consequent:l,failed:u}=this.tryParseConditionalConsequent()),[f,p]=this.getArrowLikeExpressions(l)}u&&f.length>1&&this.raise(ut.AmbiguousConditionalArrow,s.startLoc),u&&f.length===1&&(this.state=s,d.push(f[0].start),this.state.noArrowAt=d,{consequent:l,failed:u}=this.tryParseConditionalConsequent())}return this.getArrowLikeExpressions(l,!0),this.state.noArrowAt=i,this.expect(14),o.test=t,o.consequent=l,o.alternate=this.forwardNoArrowParamsConversionAt(o,()=>this.parseMaybeAssign(void 0,void 0)),this.finishNode(o,"ConditionalExpression")}tryParseConditionalConsequent(){this.state.noArrowParamsConversionAt.push(this.state.start);let t=this.parseMaybeAssignAllowIn(),r=!this.match(14);return this.state.noArrowParamsConversionAt.pop(),{consequent:t,failed:r}}getArrowLikeExpressions(t,r){let n=[t],s=[];for(;n.length!==0;){let i=n.pop();i.type==="ArrowFunctionExpression"&&i.body.type!=="BlockStatement"?(i.typeParameters||!i.returnType?this.finishArrowValidation(i):s.push(i),n.push(i.body)):i.type==="ConditionalExpression"&&(n.push(i.consequent),n.push(i.alternate))}return r?(s.forEach(i=>this.finishArrowValidation(i)),[s,[]]):Ak(s,i=>i.params.every(o=>this.isAssignable(o,!0)))}finishArrowValidation(t){this.toAssignableList(t.params,t.extra?.trailingCommaLoc,!1),this.scope.enter(518),super.checkParams(t,!1,!0),this.scope.exit()}forwardNoArrowParamsConversionAt(t,r){let n;return this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?(this.state.noArrowParamsConversionAt.push(this.state.start),n=r(),this.state.noArrowParamsConversionAt.pop()):n=r(),n}parseParenItem(t,r){let n=super.parseParenItem(t,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(t)),this.match(14)){let s=this.startNodeAt(r);return s.expression=n,s.typeAnnotation=this.flowParseTypeAnnotation(),this.finishNode(s,"TypeCastExpression")}return n}assertModuleNodeAllowed(t){t.type==="ImportDeclaration"&&(t.importKind==="type"||t.importKind==="typeof")||t.type==="ExportNamedDeclaration"&&t.exportKind==="type"||t.type==="ExportAllDeclaration"&&t.exportKind==="type"||super.assertModuleNodeAllowed(t)}parseExportDeclaration(t){if(this.isContextual(130)){t.exportKind="type";let r=this.startNode();return this.next(),this.match(5)?(t.specifiers=this.parseExportSpecifiers(!0),super.parseExportFrom(t),null):this.flowParseTypeAlias(r)}else if(this.isContextual(131)){t.exportKind="type";let r=this.startNode();return this.next(),this.flowParseOpaqueType(r,!1)}else if(this.isContextual(129)){t.exportKind="type";let r=this.startNode();return this.next(),this.flowParseInterface(r)}else if(this.isContextual(126)){t.exportKind="value";let r=this.startNode();return this.next(),this.flowParseEnumDeclaration(r)}else return super.parseExportDeclaration(t)}eatExportStar(t){return super.eatExportStar(t)?!0:this.isContextual(130)&&this.lookahead().type===55?(t.exportKind="type",this.next(),this.next(),!0):!1}maybeParseExportNamespaceSpecifier(t){let{startLoc:r}=this.state,n=super.maybeParseExportNamespaceSpecifier(t);return n&&t.exportKind==="type"&&this.unexpected(r),n}parseClassId(t,r,n){super.parseClassId(t,r,n),this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration())}parseClassMember(t,r,n){let{startLoc:s}=this.state;if(this.isContextual(125)){if(super.parseClassMemberFromModifier(t,r))return;r.declare=!0}super.parseClassMember(t,r,n),r.declare&&(r.type!=="ClassProperty"&&r.type!=="ClassPrivateProperty"&&r.type!=="PropertyDefinition"?this.raise(ut.DeclareClassElement,s):r.value&&this.raise(ut.DeclareClassFieldInitializer,r.value))}isIterator(t){return t==="iterator"||t==="asyncIterator"}readIterator(){let t=super.readWord1(),r="@@"+t;(!this.isIterator(t)||!this.state.inType)&&this.raise(K.InvalidIdentifier,this.state.curPosition(),{identifierName:r}),this.finishToken(132,r)}getTokenFromCode(t){let r=this.input.charCodeAt(this.state.pos+1);t===123&&r===124?this.finishOp(6,2):this.state.inType&&(t===62||t===60)?this.finishOp(t===62?48:47,1):this.state.inType&&t===63?r===46?this.finishOp(18,2):this.finishOp(17,1):yk(t,r,this.input.charCodeAt(this.state.pos+2))?(this.state.pos+=2,this.readIterator()):super.getTokenFromCode(t)}isAssignable(t,r){return t.type==="TypeCastExpression"?this.isAssignable(t.expression,r):super.isAssignable(t,r)}toAssignable(t,r=!1){!r&&t.type==="AssignmentExpression"&&t.left.type==="TypeCastExpression"&&(t.left=this.typeCastToParameter(t.left)),super.toAssignable(t,r)}toAssignableList(t,r,n){for(let s=0;s<t.length;s++){let i=t[s];i?.type==="TypeCastExpression"&&(t[s]=this.typeCastToParameter(i))}super.toAssignableList(t,r,n)}toReferencedList(t,r){for(let n=0;n<t.length;n++){let s=t[n];s&&s.type==="TypeCastExpression"&&!s.extra?.parenthesized&&(t.length>1||!r)&&this.raise(ut.TypeCastInPattern,s.typeAnnotation)}return t}parseArrayLike(t,r,n){let s=super.parseArrayLike(t,r,n);return n!=null&&!this.state.maybeInArrowParameters&&this.toReferencedList(s.elements),s}isValidLVal(t,r,n,s){return t==="TypeCastExpression"||super.isValidLVal(t,r,n,s)}parseClassProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassProperty(t)}parseClassPrivateProperty(t){return this.match(14)&&(t.typeAnnotation=this.flowParseTypeAnnotation()),super.parseClassPrivateProperty(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(14)||super.isClassProperty()}isNonstaticConstructor(t){return!this.match(14)&&super.isNonstaticConstructor(t)}pushClassMethod(t,r,n,s,i,o){if(r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassMethod(t,r,n,s,i,o),r.params&&i){let l=r.params;l.length>0&&this.isThisParam(l[0])&&this.raise(ut.ThisParamBannedInConstructor,r)}else if(r.type==="MethodDefinition"&&i&&r.value.params){let l=r.value.params;l.length>0&&this.isThisParam(l[0])&&this.raise(ut.ThisParamBannedInConstructor,r)}}pushClassPrivateMethod(t,r,n,s){r.variance&&this.unexpected(r.variance.loc.start),delete r.variance,this.match(47)&&(r.typeParameters=this.flowParseTypeParameterDeclaration()),super.pushClassPrivateMethod(t,r,n,s)}parseClassSuper(t){if(super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeArguments=this.flowParseTypeParameterInstantiationInExpression()),this.isContextual(113)){this.next();let r=t.implements=[];do{let n=this.startNode();n.id=this.flowParseRestrictedIdentifier(!0),this.match(47)?n.typeParameters=this.flowParseTypeParameterInstantiation():n.typeParameters=null,r.push(this.finishNode(n,"ClassImplements"))}while(this.eat(12))}}checkGetterSetterParams(t){super.checkGetterSetterParams(t);let r=this.getObjectOrClassMethodParams(t);if(r.length>0){let n=r[0];this.isThisParam(n)&&t.kind==="get"?this.raise(ut.GetterMayNotHaveThisParam,n):this.isThisParam(n)&&this.raise(ut.SetterMayNotHaveThisParam,n)}}parsePropertyNamePrefixOperator(t){t.variance=this.flowParseVariance()}parseObjPropValue(t,r,n,s,i,o,l){t.variance&&this.unexpected(t.variance.loc.start),delete t.variance;let u;this.match(47)&&!o&&(u=this.flowParseTypeParameterDeclaration(),this.match(10)||this.unexpected());let f=super.parseObjPropValue(t,r,n,s,i,o,l);return u&&((f.value||f).typeParameters=u),f}parseFunctionParamType(t){return this.eat(17)&&(t.type!=="Identifier"&&this.raise(ut.PatternIsOptional,t),this.isThisParam(t)&&this.raise(ut.ThisParamMayNotBeOptional,t),t.optional=!0),this.match(14)?t.typeAnnotation=this.flowParseTypeAnnotation():this.isThisParam(t)&&this.raise(ut.ThisParamAnnotationRequired,t),this.match(29)&&this.isThisParam(t)&&this.raise(ut.ThisParamNoDefault,t),this.resetEndLocation(t),t}parseMaybeDefault(t,r){let n=super.parseMaybeDefault(t,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(ut.TypeBeforeInitializer,n.typeAnnotation),n}checkImportReflection(t){super.checkImportReflection(t),t.module&&t.importKind!=="value"&&this.raise(ut.ImportReflectionHasImportType,t.specifiers[0].loc.start)}parseImportSpecifierLocal(t,r,n){r.local=px(t)?this.flowParseRestrictedIdentifier(!0,!0):this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,n))}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){if(!t)return!0;let r=this.lookaheadCharCode();return r===123||r===42}return!t&&this.isContextual(87)}applyImportPhase(t,r,n,s){if(super.applyImportPhase(t,r,n,s),r){if(!n&&this.match(65))return;t.exportKind=n==="type"?n:"value"}else n==="type"&&this.match(55)&&this.unexpected(),t.importKind=n==="type"||n==="typeof"?n:"value"}parseImportSpecifier(t,r,n,s,i){let o=t.imported,l=null;o.type==="Identifier"&&(o.name==="type"?l="type":o.name==="typeof"&&(l="typeof"));let u=!1;if(this.isContextual(93)&&!this.isLookaheadContextual("as")){let p=this.parseIdentifier(!0);l!==null&&!ks(this.state.type)?(t.imported=p,t.importKind=l,t.local=this.cloneIdentifier(p)):(t.imported=o,t.importKind=null,t.local=this.parseIdentifier())}else{if(l!==null&&ks(this.state.type))t.imported=this.parseIdentifier(!0),t.importKind=l;else{if(r)throw this.raise(K.ImportBindingIsString,t,{importName:o.value});t.imported=o,t.importKind=null}this.eatContextual(93)?t.local=this.parseIdentifier():(u=!0,t.local=this.cloneIdentifier(t.imported))}let f=px(t);return n&&f&&this.raise(ut.ImportTypeShorthandOnlyInPureImport,t),(n||f)&&this.checkReservedType(t.local.name,t.local.loc.start,!0),u&&!n&&!f&&this.checkReservedWord(t.local.name,t.loc.start,!0,!0),this.finishImportSpecifier(t,"ImportSpecifier")}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseFunctionParams(t,r){let n=t.kind;n!=="get"&&n!=="set"&&this.match(47)&&(t.typeParameters=this.flowParseTypeParameterDeclaration()),super.parseFunctionParams(t,r)}parseVarId(t,r){super.parseVarId(t,r),this.match(14)&&(t.id.typeAnnotation=this.flowParseTypeAnnotation(),this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,r){if(this.match(14)){let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0,t.returnType=this.flowParseTypeAnnotation(),this.state.noAnonFunctionType=n}return super.parseAsyncArrowFromCallExpression(t,r)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}parseMaybeAssign(t,r){let n=null,s;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),s=this.tryParse(()=>super.parseMaybeAssign(t,r),n),!s.error)return s.node;let{context:i}=this.state,o=i[i.length-1];(o===lr.j_oTag||o===lr.j_expr)&&i.pop()}if(s?.error||this.match(47)){n=n||this.state.clone();let i,o=this.tryParse(u=>{i=this.flowParseTypeParameterDeclaration();let f=this.forwardNoArrowParamsConversionAt(i,()=>{let d=super.parseMaybeAssign(t,r);return this.resetStartLocationFromNode(d,i),d});f.extra?.parenthesized&&u();let p=this.maybeUnwrapTypeCastExpression(f);return p.type!=="ArrowFunctionExpression"&&u(),p.typeParameters=i,this.resetStartLocationFromNode(p,i),f},n),l=null;if(o.node&&this.maybeUnwrapTypeCastExpression(o.node).type==="ArrowFunctionExpression"){if(!o.error&&!o.aborted)return o.node.async&&this.raise(ut.UnexpectedTypeParameterBeforeAsyncArrowFunction,i),o.node;l=o.node}if(s?.node)return this.state=s.failState,s.node;if(l)return this.state=o.failState,l;throw s?.thrown?s.error:o.thrown?o.error:this.raise(ut.UnexpectedTokenAfterTypeParameter,i)}return super.parseMaybeAssign(t,r)}parseArrow(t){if(this.match(14)){let r=this.tryParse(()=>{let n=this.state.noAnonFunctionType;this.state.noAnonFunctionType=!0;let s=this.startNode();return[s.typeAnnotation,t.predicate]=this.flowParseTypeAndPredicateInitialiser(),this.state.noAnonFunctionType=n,this.canInsertSemicolon()&&this.unexpected(),this.match(19)||this.unexpected(),s});if(r.thrown)return null;r.error&&(this.state=r.failState),t.returnType=r.node.typeAnnotation?this.finishNode(r.node,"TypeAnnotation"):null}return super.parseArrow(t)}shouldParseArrow(t){return this.match(14)||super.shouldParseArrow(t)}setArrowFunctionParameters(t,r){this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start))?t.params=r:super.setArrowFunctionParameters(t,r)}checkParams(t,r,n,s=!0){if(!(n&&this.state.noArrowParamsConversionAt.includes(this.offsetToSourcePos(t.start)))){for(let i=0;i<t.params.length;i++)this.isThisParam(t.params[i])&&i>0&&this.raise(ut.ThisParamMustBeFirst,t.params[i]);super.checkParams(t,r,n,s)}}parseParenAndDistinguishExpression(t){return super.parseParenAndDistinguishExpression(t&&!this.state.noArrowAt.includes(this.sourceToOffsetPos(this.state.start)))}parseSubscripts(t,r,n){if(t.type==="Identifier"&&t.name==="async"&&this.state.noArrowAt.includes(r.index)){this.next();let s=this.startNodeAt(r);s.callee=t,s.arguments=super.parseCallExpressionArguments(),t=this.finishNode(s,"CallExpression")}else if(t.type==="Identifier"&&t.name==="async"&&this.match(47)){let s=this.state.clone(),i=this.tryParse(l=>this.parseAsyncArrowWithTypeParameters(r)||l(),s);if(!i.error&&!i.aborted)return i.node;let o=this.tryParse(()=>super.parseSubscripts(t,r,n),s);if(o.node&&!o.error)return o.node;if(i.node)return this.state=i.failState,i.node;if(o.node)return this.state=o.failState,o.node;throw i.error||o.error}return super.parseSubscripts(t,r,n)}parseSubscript(t,r,n,s){if(this.match(18)&&this.isLookaheadToken_lt()){if(s.optionalChainMember=!0,n)return s.stop=!0,t;this.next();let i=this.startNodeAt(r);return i.callee=t,i.typeArguments=this.flowParseTypeParameterInstantiationInExpression(),this.expect(10),i.arguments=this.parseCallExpressionArguments(),i.optional=!0,this.finishCallExpression(i,!0)}else if(!n&&this.shouldParseTypes()&&(this.match(47)||this.match(51))){let i=this.startNodeAt(r);i.callee=t;let o=this.tryParse(()=>(i.typeArguments=this.flowParseTypeParameterInstantiationCallOrNew(),this.expect(10),i.arguments=super.parseCallExpressionArguments(),s.optionalChainMember&&(i.optional=!1),this.finishCallExpression(i,s.optionalChainMember)));if(o.node)return o.error&&(this.state=o.failState),o.node}return super.parseSubscript(t,r,n,s)}parseNewCallee(t){super.parseNewCallee(t);let r=null;this.shouldParseTypes()&&this.match(47)&&(r=this.tryParse(()=>this.flowParseTypeParameterInstantiationCallOrNew()).node),t.typeArguments=r}parseAsyncArrowWithTypeParameters(t){let r=this.startNodeAt(t);if(this.parseFunctionParams(r,!1),!!this.parseArrow(r))return super.parseArrowExpression(r,void 0,!0)}readToken_mult_modulo(t){let r=this.input.charCodeAt(this.state.pos+1);if(t===42&&r===47&&this.state.hasFlowComment){this.state.hasFlowComment=!1,this.state.pos+=2,this.nextToken();return}super.readToken_mult_modulo(t)}readToken_pipe_amp(t){let r=this.input.charCodeAt(this.state.pos+1);if(t===124&&r===125){this.finishOp(9,2);return}super.readToken_pipe_amp(t)}parseTopLevel(t,r){let n=super.parseTopLevel(t,r);return this.state.hasFlowComment&&this.raise(ut.UnterminatedFlowComment,this.state.curPosition()),n}skipBlockComment(){if(this.hasPlugin("flowComments")&&this.skipFlowComment()){if(this.state.hasFlowComment)throw this.raise(ut.NestedFlowComment,this.state.startLoc);this.hasFlowCommentCompletion();let t=this.skipFlowComment();t&&(this.state.pos+=t,this.state.hasFlowComment=!0);return}return super.skipBlockComment(this.state.hasFlowComment?"*-/":"*/")}skipFlowComment(){let{pos:t}=this.state,r=2;for(;[32,9].includes(this.input.charCodeAt(t+r));)r++;let n=this.input.charCodeAt(r+t),s=this.input.charCodeAt(r+t+1);return n===58&&s===58?r+2:this.input.slice(r+t,r+t+12)==="flow-include"?r+12:n===58&&s!==58?r:!1}hasFlowCommentCompletion(){if(this.input.indexOf("*/",this.state.pos)===-1)throw this.raise(K.UnterminatedComment,this.state.curPosition())}flowEnumErrorBooleanMemberNotInitialized(t,{enumName:r,memberName:n}){this.raise(ut.EnumBooleanMemberNotInitialized,t,{memberName:n,enumName:r})}flowEnumErrorInvalidMemberInitializer(t,r){return this.raise(r.explicitType?r.explicitType==="symbol"?ut.EnumInvalidMemberInitializerSymbolType:ut.EnumInvalidMemberInitializerPrimaryType:ut.EnumInvalidMemberInitializerUnknownType,t,r)}flowEnumErrorNumberMemberNotInitialized(t,r){this.raise(ut.EnumNumberMemberNotInitialized,t,r)}flowEnumErrorStringMemberInconsistentlyInitialized(t,r){this.raise(ut.EnumStringMemberInconsistentlyInitialized,t,r)}flowEnumMemberInit(){let t=this.state.startLoc,r=()=>this.match(12)||this.match(8);switch(this.state.type){case 135:{let n=this.parseNumericLiteral(this.state.value);return r()?{type:"number",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}case 134:{let n=this.parseStringLiteral(this.state.value);return r()?{type:"string",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}case 85:case 86:{let n=this.parseBooleanLiteral(this.match(85));return r()?{type:"boolean",loc:n.loc.start,value:n}:{type:"invalid",loc:t}}default:return{type:"invalid",loc:t}}}flowEnumMemberRaw(){let t=this.state.startLoc,r=this.parseIdentifier(!0),n=this.eat(29)?this.flowEnumMemberInit():{type:"none",loc:t};return{id:r,init:n}}flowEnumCheckExplicitTypeMismatch(t,r,n){let{explicitType:s}=r;s!==null&&s!==n&&this.flowEnumErrorInvalidMemberInitializer(t,r)}flowEnumMembers({enumName:t,explicitType:r}){let n=new Set,s={booleanMembers:[],numberMembers:[],stringMembers:[],defaultedMembers:[]},i=!1;for(;!this.match(8);){if(this.eat(21)){i=!0;break}let o=this.startNode(),{id:l,init:u}=this.flowEnumMemberRaw(),f=l.name;if(f==="")continue;/^[a-z]/.test(f)&&this.raise(ut.EnumInvalidMemberName,l,{memberName:f,suggestion:f[0].toUpperCase()+f.slice(1),enumName:t}),n.has(f)&&this.raise(ut.EnumDuplicateMemberName,l,{memberName:f,enumName:t}),n.add(f);let p={enumName:t,explicitType:r,memberName:f};switch(o.id=l,u.type){case"boolean":{this.flowEnumCheckExplicitTypeMismatch(u.loc,p,"boolean"),o.init=u.value,s.booleanMembers.push(this.finishNode(o,"EnumBooleanMember"));break}case"number":{this.flowEnumCheckExplicitTypeMismatch(u.loc,p,"number"),o.init=u.value,s.numberMembers.push(this.finishNode(o,"EnumNumberMember"));break}case"string":{this.flowEnumCheckExplicitTypeMismatch(u.loc,p,"string"),o.init=u.value,s.stringMembers.push(this.finishNode(o,"EnumStringMember"));break}case"invalid":throw this.flowEnumErrorInvalidMemberInitializer(u.loc,p);case"none":switch(r){case"boolean":this.flowEnumErrorBooleanMemberNotInitialized(u.loc,p);break;case"number":this.flowEnumErrorNumberMemberNotInitialized(u.loc,p);break;default:s.defaultedMembers.push(this.finishNode(o,"EnumDefaultedMember"))}}this.match(8)||this.expect(12)}return{members:s,hasUnknownMembers:i}}flowEnumStringMembers(t,r,{enumName:n}){if(t.length===0)return r;if(r.length===0)return t;if(r.length>t.length){for(let s of t)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:n});return r}else{for(let s of r)this.flowEnumErrorStringMemberInconsistentlyInitialized(s,{enumName:n});return t}}flowEnumParseExplicitType({enumName:t}){if(!this.eatContextual(102))return null;if(!Xt(this.state.type))throw this.raise(ut.EnumInvalidExplicitTypeUnknownSupplied,this.state.startLoc,{enumName:t});let{value:r}=this.state;return this.next(),r!=="boolean"&&r!=="number"&&r!=="string"&&r!=="symbol"&&this.raise(ut.EnumInvalidExplicitType,this.state.startLoc,{enumName:t,invalidEnumType:r}),r}flowEnumBody(t,r){let n=r.name,s=r.loc.start,i=this.flowEnumParseExplicitType({enumName:n});this.expect(5);let{members:o,hasUnknownMembers:l}=this.flowEnumMembers({enumName:n,explicitType:i});switch(t.hasUnknownMembers=l,i){case"boolean":return t.explicitType=!0,t.members=o.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody");case"number":return t.explicitType=!0,t.members=o.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody");case"string":return t.explicitType=!0,t.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(t,"EnumStringBody");case"symbol":return t.members=o.defaultedMembers,this.expect(8),this.finishNode(t,"EnumSymbolBody");default:{let u=()=>(t.members=[],this.expect(8),this.finishNode(t,"EnumStringBody"));t.explicitType=!1;let f=o.booleanMembers.length,p=o.numberMembers.length,d=o.stringMembers.length,y=o.defaultedMembers.length;if(!f&&!p&&!d&&!y)return u();if(!f&&!p)return t.members=this.flowEnumStringMembers(o.stringMembers,o.defaultedMembers,{enumName:n}),this.expect(8),this.finishNode(t,"EnumStringBody");if(!p&&!d&&f>=y){for(let m of o.defaultedMembers)this.flowEnumErrorBooleanMemberNotInitialized(m.loc.start,{enumName:n,memberName:m.id.name});return t.members=o.booleanMembers,this.expect(8),this.finishNode(t,"EnumBooleanBody")}else if(!f&&!d&&p>=y){for(let m of o.defaultedMembers)this.flowEnumErrorNumberMemberNotInitialized(m.loc.start,{enumName:n,memberName:m.id.name});return t.members=o.numberMembers,this.expect(8),this.finishNode(t,"EnumNumberBody")}else return this.raise(ut.EnumInconsistentMemberValues,s,{enumName:n}),u()}}}flowParseEnumDeclaration(t){let r=this.parseIdentifier();return t.id=r,t.body=this.flowEnumBody(this.startNode(),r),this.finishNode(t,"EnumDeclaration")}jsxParseOpeningElementAfterName(t){return this.shouldParseTypes()&&(this.match(47)||this.match(51))&&(t.typeArguments=this.flowParseTypeParameterInstantiationInExpression()),super.jsxParseOpeningElementAfterName(t)}isLookaheadToken_lt(){let t=this.nextTokenStart();if(this.input.charCodeAt(t)===60){let r=this.input.charCodeAt(t+1);return r!==60&&r!==61}return!1}reScan_lt_gt(){let{type:t}=this.state;t===47?(this.state.pos-=1,this.readToken_lt()):t===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:t}=this.state;return t===51?(this.state.pos-=2,this.finishOp(47,1),47):t}maybeUnwrapTypeCastExpression(t){return t.type==="TypeCastExpression"?t.expression:t}},_k=/\r\n|[\r\n\u2028\u2029]/,nf=new RegExp(_k.source,"g");function Lu(e){switch(e){case 10:case 13:case 8232:case 8233:return!0;default:return!1}}function dx(e,t,r){for(let n=t;n<r;n++)if(Lu(e.charCodeAt(n)))return!0;return!1}var by=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Cy=/(?:[^\S\n\r\u2028\u2029]|\/\/.*|\/\*.*?\*\/)*/g;function Fk(e){switch(e){case 9:case 11:case 12:case 32:case 160:case 5760:case 8192:case 8193:case 8194:case 8195:case 8196:case 8197:case 8198:case 8199:case 8200:case 8201:case 8202:case 8239:case 8287:case 12288:case 65279:return!0;default:return!1}}var vi=Qs`jsx`({AttributeIsEmpty:"JSX attributes must only be assigned a non-empty expression.",MissingClosingTagElement:({openingTagName:e})=>`Expected corresponding JSX closing tag for <${e}>.`,MissingClosingTagFragment:"Expected corresponding JSX closing tag for <>.",UnexpectedSequenceExpression:"Sequence expressions cannot be directly nested inside JSX. Did you mean to wrap it in parentheses (...)?",UnexpectedToken:({unexpected:e,HTMLEntity:t})=>`Unexpected token \`${e}\`. Did you mean \`${t}\` or \`{'${e}'}\`?`,UnsupportedJsxValue:"JSX value should be either an expression or a quoted JSX text.",UnterminatedJsxContent:"Unterminated JSX contents.",UnwrappedAdjacentJSXElements:"Adjacent JSX elements must be wrapped in an enclosing tag. Did you want a JSX fragment <>...</>?"});function ca(e){return e?e.type==="JSXOpeningFragment"||e.type==="JSXClosingFragment":!1}function Pu(e){if(e.type==="JSXIdentifier")return e.name;if(e.type==="JSXNamespacedName")return e.namespace.name+":"+e.name.name;if(e.type==="JSXMemberExpression")return Pu(e.object)+"."+Pu(e.property);throw new Error("Node had unexpected type: "+e.type)}var kk=e=>class extends e{jsxReadToken(){let t="",r=this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(vi.UnterminatedJsxContent,this.state.startLoc);let n=this.input.charCodeAt(this.state.pos);switch(n){case 60:case 123:if(this.state.pos===this.state.start){n===60&&this.state.canStartJSXElement?(++this.state.pos,this.finishToken(143)):super.getTokenFromCode(n);return}t+=this.input.slice(r,this.state.pos),this.finishToken(142,t);return;case 38:t+=this.input.slice(r,this.state.pos),t+=this.jsxReadEntity(),r=this.state.pos;break;case 62:case 125:this.raise(vi.UnexpectedToken,this.state.curPosition(),{unexpected:this.input[this.state.pos],HTMLEntity:n===125?"}":">"});default:Lu(n)?(t+=this.input.slice(r,this.state.pos),t+=this.jsxReadNewLine(!0),r=this.state.pos):++this.state.pos}}}jsxReadNewLine(t){let r=this.input.charCodeAt(this.state.pos),n;return++this.state.pos,r===13&&this.input.charCodeAt(this.state.pos)===10?(++this.state.pos,n=t?`
|
|
32
|
-
`:`\r
|
|
33
|
-
`):n=String.fromCharCode(r),++this.state.curLine,this.state.lineStart=this.state.pos,n}jsxReadString(t){let r="",n=++this.state.pos;for(;;){if(this.state.pos>=this.length)throw this.raise(K.UnterminatedString,this.state.startLoc);let s=this.input.charCodeAt(this.state.pos);if(s===t)break;s===38?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadEntity(),n=this.state.pos):Lu(s)?(r+=this.input.slice(n,this.state.pos),r+=this.jsxReadNewLine(!1),n=this.state.pos):++this.state.pos}r+=this.input.slice(n,this.state.pos++),this.finishToken(134,r)}jsxReadEntity(){let t=++this.state.pos;if(this.codePointAtPos(this.state.pos)===35){++this.state.pos;let r=10;this.codePointAtPos(this.state.pos)===120&&(r=16,++this.state.pos);let n=this.readInt(r,void 0,!1,"bail");if(n!==null&&this.codePointAtPos(this.state.pos)===59)return++this.state.pos,String.fromCodePoint(n)}else{let r=0,n=!1;for(;r++<10&&this.state.pos<this.length&&!(n=this.codePointAtPos(this.state.pos)===59);)++this.state.pos;if(n){this.input.slice(t,this.state.pos);let s;++this.state.pos}}return this.state.pos=t,"&"}jsxReadWord(){let t,r=this.state.pos;do t=this.input.charCodeAt(++this.state.pos);while(Co(t)||t===45);this.finishToken(141,this.input.slice(r,this.state.pos))}jsxParseIdentifier(){let t=this.startNode();return this.match(141)?t.name=this.state.value:O2(this.state.type)?t.name=va(this.state.type):this.unexpected(),this.next(),this.finishNode(t,"JSXIdentifier")}jsxParseNamespacedName(){let t=this.state.startLoc,r=this.jsxParseIdentifier();if(!this.eat(14))return r;let n=this.startNodeAt(t);return n.namespace=r,n.name=this.jsxParseIdentifier(),this.finishNode(n,"JSXNamespacedName")}jsxParseElementName(){let t=this.state.startLoc,r=this.jsxParseNamespacedName();if(r.type==="JSXNamespacedName")return r;for(;this.eat(16);){let n=this.startNodeAt(t);n.object=r,n.property=this.jsxParseIdentifier(),r=this.finishNode(n,"JSXMemberExpression")}return r}jsxParseAttributeValue(){let t;switch(this.state.type){case 5:return t=this.startNode(),this.setContext(lr.brace),this.next(),t=this.jsxParseExpressionContainer(t,lr.j_oTag),t.expression.type==="JSXEmptyExpression"&&this.raise(vi.AttributeIsEmpty,t),t;case 143:case 134:return this.parseExprAtom();default:throw this.raise(vi.UnsupportedJsxValue,this.state.startLoc)}}jsxParseEmptyExpression(){let t=this.startNodeAt(this.state.lastTokEndLoc);return this.finishNodeAt(t,"JSXEmptyExpression",this.state.startLoc)}jsxParseSpreadChild(t){return this.next(),t.expression=this.parseExpression(),this.setContext(lr.j_expr),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadChild")}jsxParseExpressionContainer(t,r){if(this.match(8))t.expression=this.jsxParseEmptyExpression();else{let n=this.parseExpression();n.type==="SequenceExpression"&&!n.extra?.parenthesized&&this.raise(vi.UnexpectedSequenceExpression,n.expressions[1]),t.expression=n}return this.setContext(r),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXExpressionContainer")}jsxParseAttribute(){let t=this.startNode();return this.match(5)?(this.setContext(lr.brace),this.next(),this.expect(21),t.argument=this.parseMaybeAssignAllowIn(),this.setContext(lr.j_oTag),this.state.canStartJSXElement=!0,this.expect(8),this.finishNode(t,"JSXSpreadAttribute")):(t.name=this.jsxParseNamespacedName(),t.value=this.eat(29)?this.jsxParseAttributeValue():null,this.finishNode(t,"JSXAttribute"))}jsxParseOpeningElementAt(t){let r=this.startNodeAt(t);return this.eat(144)?this.finishNode(r,"JSXOpeningFragment"):(r.name=this.jsxParseElementName(),this.jsxParseOpeningElementAfterName(r))}jsxParseOpeningElementAfterName(t){let r=[];for(;!this.match(56)&&!this.match(144);)r.push(this.jsxParseAttribute());return t.attributes=r,t.selfClosing=this.eat(56),this.expect(144),this.finishNode(t,"JSXOpeningElement")}jsxParseClosingElementAt(t){let r=this.startNodeAt(t);return this.eat(144)?this.finishNode(r,"JSXClosingFragment"):(r.name=this.jsxParseElementName(),this.expect(144),this.finishNode(r,"JSXClosingElement"))}jsxParseElementAt(t){let r=this.startNodeAt(t),n=[],s=this.jsxParseOpeningElementAt(t),i=null;if(!s.selfClosing){e:for(;;)switch(this.state.type){case 143:if(t=this.state.startLoc,this.next(),this.eat(56)){i=this.jsxParseClosingElementAt(t);break e}n.push(this.jsxParseElementAt(t));break;case 142:n.push(this.parseLiteral(this.state.value,"JSXText"));break;case 5:{let o=this.startNode();this.setContext(lr.brace),this.next(),this.match(21)?n.push(this.jsxParseSpreadChild(o)):n.push(this.jsxParseExpressionContainer(o,lr.j_expr));break}default:this.unexpected()}ca(s)&&!ca(i)&&i!==null?this.raise(vi.MissingClosingTagFragment,i):!ca(s)&&ca(i)?this.raise(vi.MissingClosingTagElement,i,{openingTagName:Pu(s.name)}):!ca(s)&&!ca(i)&&Pu(i.name)!==Pu(s.name)&&this.raise(vi.MissingClosingTagElement,i,{openingTagName:Pu(s.name)})}if(ca(s)?(r.openingFragment=s,r.closingFragment=i):(r.openingElement=s,r.closingElement=i),r.children=n,this.match(47))throw this.raise(vi.UnwrappedAdjacentJSXElements,this.state.startLoc);return ca(s)?this.finishNode(r,"JSXFragment"):this.finishNode(r,"JSXElement")}jsxParseElement(){let t=this.state.startLoc;return this.next(),this.jsxParseElementAt(t)}setContext(t){let{context:r}=this.state;r[r.length-1]=t}parseExprAtom(t){return this.match(143)?this.jsxParseElement():this.match(47)&&this.input.charCodeAt(this.state.pos)!==33?(this.replaceToken(143),this.jsxParseElement()):super.parseExprAtom(t)}skipSpace(){this.curContext().preserveSpace||super.skipSpace()}getTokenFromCode(t){let r=this.curContext();if(r===lr.j_expr){this.jsxReadToken();return}if(r===lr.j_oTag||r===lr.j_cTag){if(Ys(t)){this.jsxReadWord();return}if(t===62){++this.state.pos,this.finishToken(144);return}if((t===34||t===39)&&r===lr.j_oTag){this.jsxReadString(t);return}}if(t===60&&this.state.canStartJSXElement&&this.input.charCodeAt(this.state.pos+1)!==33){++this.state.pos,this.finishToken(143);return}super.getTokenFromCode(t)}updateContext(t){let{context:r,type:n}=this.state;if(n===56&&t===143)r.splice(-2,2,lr.j_cTag),this.state.canStartJSXElement=!1;else if(n===143)r.push(lr.j_oTag);else if(n===144){let s=r[r.length-1];s===lr.j_oTag&&t===56||s===lr.j_cTag?(r.pop(),this.state.canStartJSXElement=r[r.length-1]===lr.j_expr):(this.setContext(lr.j_expr),this.state.canStartJSXElement=!0)}else this.state.canStartJSXElement=ek(n)}},wk=class extends j2{tsNames=new Map},Pk=class extends J2{importsStack=[];createScope(t){return this.importsStack.push(new Set),new wk(t)}enter(t){t===1024&&this.importsStack.push(new Set),super.enter(t)}exit(){let t=super.exit();return t===1024&&this.importsStack.pop(),t}hasImport(t,r){let n=this.importsStack.length;if(this.importsStack[n-1].has(t))return!0;if(!r&&n>1){for(let s=0;s<n-1;s++)if(this.importsStack[s].has(t))return!0}return!1}declareName(t,r,n){if(r&4096){this.hasImport(t,!0)&&this.parser.raise(K.VarRedeclaration,n,{identifierName:t}),this.importsStack[this.importsStack.length-1].add(t);return}let s=this.currentScope(),i=s.tsNames.get(t)||0;if(r&1024){this.maybeExportDefined(s,t),s.tsNames.set(t,i|16);return}super.declareName(t,r,n),r&2&&(r&1||(this.checkRedeclarationInScope(s,t,r,n),this.maybeExportDefined(s,t)),i=i|1),r&256&&(i=i|2),r&512&&(i=i|4),r&128&&(i=i|8),i&&s.tsNames.set(t,i)}isRedeclaredInScope(t,r,n){let s=t.tsNames.get(r);if((s&2)>0){if(n&256){let i=!!(n&512),o=(s&4)>0;return i!==o}return!0}return n&128&&(s&8)>0?t.names.get(r)&2?!!(n&1):!1:n&2&&(s&1)>0?!0:super.isRedeclaredInScope(t,r,n)}checkLocalExport(t){let{name:r}=t;if(this.hasImport(r))return;let n=this.scopeStack.length;for(let s=n-1;s>=0;s--){let i=this.scopeStack[s].tsNames.get(r);if((i&1)>0||(i&16)>0)return}super.checkLocalExport(t)}},Nk=class{stacks=[];enter(t){this.stacks.push(t)}exit(){this.stacks.pop()}currentFlags(){return this.stacks[this.stacks.length-1]}get hasAwait(){return(this.currentFlags()&2)>0}get hasYield(){return(this.currentFlags()&1)>0}get hasReturn(){return(this.currentFlags()&4)>0}get hasIn(){return(this.currentFlags()&8)>0}};function Sf(e,t){return(e?2:0)|(t?1:0)}var Ik=class{sawUnambiguousESM=!1;ambiguousScriptDifferentAst=!1;sourceToOffsetPos(t){return t+this.startIndex}offsetToSourcePos(t){return t-this.startIndex}hasPlugin(t){if(typeof t=="string")return this.plugins.has(t);{let[r,n]=t;if(!this.hasPlugin(r))return!1;let s=this.plugins.get(r);for(let i of Object.keys(n))if(s?.[i]!==n[i])return!1;return!0}}getPluginOption(t,r){return this.plugins.get(t)?.[r]}};function LE(e,t){e.trailingComments===void 0?e.trailingComments=t:e.trailingComments.unshift(...t)}function Bk(e,t){e.leadingComments===void 0?e.leadingComments=t:e.leadingComments.unshift(...t)}function Ou(e,t){e.innerComments===void 0?e.innerComments=t:e.innerComments.unshift(...t)}function uo(e,t,r){let n=null,s=t.length;for(;n===null&&s>0;)n=t[--s];n===null||n.start>r.start?Ou(e,r.comments):LE(n,r.comments)}var Lk=class extends Ik{addComment(t){this.filename&&(t.loc.filename=this.filename);let{commentsLen:r}=this.state;this.comments.length!==r&&(this.comments.length=r),this.comments.push(t),this.state.commentsLen++}processComment(t){let{commentStack:r}=this.state,n=r.length;if(n===0)return;let s=n-1,i=r[s];i.start===t.end&&(i.leadingNode=t,s--);let{start:o}=t;for(;s>=0;s--){let l=r[s],u=l.end;if(u>o)l.containingNode=t,this.finalizeComment(l),r.splice(s,1);else{u===o&&(l.trailingNode=t);break}}}finalizeComment(t){let{comments:r}=t;if(t.leadingNode!==null||t.trailingNode!==null)t.leadingNode!==null&&LE(t.leadingNode,r),t.trailingNode!==null&&Bk(t.trailingNode,r);else{let n=t.containingNode,s=t.start;if(this.input.charCodeAt(this.offsetToSourcePos(s)-1)===44)switch(n.type){case"ObjectExpression":case"ObjectPattern":case"RecordExpression":uo(n,n.properties,t);break;case"CallExpression":case"OptionalCallExpression":uo(n,n.arguments,t);break;case"ImportExpression":uo(n,[n.source,n.options??null],t);break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ObjectMethod":case"ClassMethod":case"ClassPrivateMethod":uo(n,n.params,t);break;case"ArrayExpression":case"ArrayPattern":case"TupleExpression":uo(n,n.elements,t);break;case"ExportNamedDeclaration":case"ImportDeclaration":uo(n,n.specifiers,t);break;case"TSEnumDeclaration":Ou(n,r);break;case"TSEnumBody":uo(n,n.members,t);break;default:Ou(n,r)}else Ou(n,r)}}finalizeRemainingComments(){let{commentStack:t}=this.state;for(let r=t.length-1;r>=0;r--)this.finalizeComment(t[r]);this.state.commentStack=[]}resetPreviousNodeTrailingComments(t){let{commentStack:r}=this.state,{length:n}=r;if(n===0)return;let s=r[n-1];s.leadingNode===t&&(s.leadingNode=null)}takeSurroundingComments(t,r,n){let{commentStack:s}=this.state,i=s.length;if(i===0)return;let o=i-1;for(;o>=0;o--){let l=s[o],u=l.end;if(l.start===n)l.leadingNode=t;else if(u===r)l.trailingNode=t;else if(u<r)break}}},Ok=class OE{flags=1024;get strict(){return(this.flags&1)>0}set strict(t){t?this.flags|=1:this.flags&=-2}startIndex;curLine;lineStart;startLoc;endLoc;init({strictMode:t,sourceType:r,startIndex:n,startLine:s,startColumn:i}){this.strict=t===!1?!1:t===!0?!0:r==="module",this.startIndex=n,this.curLine=s,this.lineStart=-i,this.startLoc=this.endLoc=new Aa(s,i,n)}errors=[];potentialArrowAt=-1;noArrowAt=[];noArrowParamsConversionAt=[];get maybeInArrowParameters(){return(this.flags&2)>0}set maybeInArrowParameters(t){t?this.flags|=2:this.flags&=-3}get inType(){return(this.flags&4)>0}set inType(t){t?this.flags|=4:this.flags&=-5}get noAnonFunctionType(){return(this.flags&8)>0}set noAnonFunctionType(t){t?this.flags|=8:this.flags&=-9}get hasFlowComment(){return(this.flags&16)>0}set hasFlowComment(t){t?this.flags|=16:this.flags&=-17}get isAmbientContext(){return(this.flags&32)>0}set isAmbientContext(t){t?this.flags|=32:this.flags&=-33}get inAbstractClass(){return(this.flags&64)>0}set inAbstractClass(t){t?this.flags|=64:this.flags&=-65}get inDisallowConditionalTypesContext(){return(this.flags&128)>0}set inDisallowConditionalTypesContext(t){t?this.flags|=128:this.flags&=-129}topicContext={maxNumOfResolvableTopics:0,maxTopicIndex:null};get soloAwait(){return(this.flags&256)>0}set soloAwait(t){t?this.flags|=256:this.flags&=-257}get inFSharpPipelineDirectBody(){return(this.flags&512)>0}set inFSharpPipelineDirectBody(t){t?this.flags|=512:this.flags&=-513}labels=[];commentsLen=0;commentStack=[];pos=0;type=140;value=null;start=0;end=0;lastTokEndLoc=null;lastTokStartLoc=null;context=[lr.brace];get canStartJSXElement(){return(this.flags&1024)>0}set canStartJSXElement(t){t?this.flags|=1024:this.flags&=-1025}get containsEsc(){return(this.flags&2048)>0}set containsEsc(t){t?this.flags|=2048:this.flags&=-2049}firstInvalidTemplateEscapePos=null;get hasTopLevelAwait(){return(this.flags&4096)>0}set hasTopLevelAwait(t){t?this.flags|=4096:this.flags&=-4097}strictErrors=new Map;tokensLength=0;curPosition(){return new Aa(this.curLine,this.pos-this.lineStart,this.pos+this.startIndex)}clone(){let t=new OE;return t.flags=this.flags,t.startIndex=this.startIndex,t.curLine=this.curLine,t.lineStart=this.lineStart,t.startLoc=this.startLoc,t.endLoc=this.endLoc,t.errors=this.errors.slice(),t.potentialArrowAt=this.potentialArrowAt,t.noArrowAt=this.noArrowAt.slice(),t.noArrowParamsConversionAt=this.noArrowParamsConversionAt.slice(),t.topicContext=this.topicContext,t.labels=this.labels.slice(),t.commentsLen=this.commentsLen,t.commentStack=this.commentStack.slice(),t.pos=this.pos,t.type=this.type,t.value=this.value,t.start=this.start,t.end=this.end,t.lastTokEndLoc=this.lastTokEndLoc,t.lastTokStartLoc=this.lastTokStartLoc,t.context=this.context.slice(),t.firstInvalidTemplateEscapePos=this.firstInvalidTemplateEscapePos,t.strictErrors=this.strictErrors,t.tokensLength=this.tokensLength,t}},$k=function(e){return e>=48&&e<=57},hx={decBinOct:new Set([46,66,69,79,95,98,101,111]),hex:new Set([46,88,95,120])},sf={bin:e=>e===48||e===49,oct:e=>e>=48&&e<=55,dec:e=>e>=48&&e<=57,hex:e=>e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102};function fx(e,t,r,n,s,i){let o=r,l=n,u=s,f="",p=null,d=r,{length:y}=t;for(;;){if(r>=y){i.unterminated(o,l,u),f+=t.slice(d,r);break}let m=t.charCodeAt(r);if(Mk(e,m,t,r)){f+=t.slice(d,r);break}if(m===92){f+=t.slice(d,r);let D=jk(t,r,n,s,e==="template",i);D.ch===null&&!p?p={pos:r,lineStart:n,curLine:s}:f+=D.ch,{pos:r,lineStart:n,curLine:s}=D,d=r}else m===8232||m===8233?(++r,++s,n=r):m===10||m===13?e==="template"?(f+=t.slice(d,r)+`
|
|
34
|
-
`,++r,m===13&&t.charCodeAt(r)===10&&++r,++s,d=n=r):i.unterminated(o,l,u):++r}return{pos:r,str:f,firstInvalidLoc:p,lineStart:n,curLine:s}}function Mk(e,t,r,n){return e==="template"?t===96||t===36&&r.charCodeAt(n+1)===123:t===(e==="double"?34:39)}function jk(e,t,r,n,s,i){let o=!s;t++;let l=f=>({pos:t,ch:f,lineStart:r,curLine:n}),u=e.charCodeAt(t++);switch(u){case 110:return l(`
|
|
35
|
-
`);case 114:return l("\r");case 120:{let f;return{code:f,pos:t}=m0(e,t,r,n,2,!1,o,i),l(f===null?null:String.fromCharCode(f))}case 117:{let f;return{code:f,pos:t}=ME(e,t,r,n,o,i),l(f===null?null:String.fromCodePoint(f))}case 116:return l(" ");case 98:return l("\b");case 118:return l("\v");case 102:return l("\f");case 13:e.charCodeAt(t)===10&&++t;case 10:r=t,++n;case 8232:case 8233:return l("");case 56:case 57:if(s)return l(null);i.strictNumericEscape(t-1,r,n);default:if(u>=48&&u<=55){let f=t-1,p=/^[0-7]+/.exec(e.slice(f,t+2))[0],d=parseInt(p,8);d>255&&(p=p.slice(0,-1),d=parseInt(p,8)),t+=p.length-1;let y=e.charCodeAt(t);if(p!=="0"||y===56||y===57){if(s)return l(null);i.strictNumericEscape(f,r,n)}return l(String.fromCharCode(d))}return l(String.fromCharCode(u))}}function m0(e,t,r,n,s,i,o,l){let u=t,f;return{n:f,pos:t}=$E(e,t,r,n,16,s,i,!1,l,!o),f===null&&(o?l.invalidEscapeSequence(u,r,n):t=u-1),{code:f,pos:t}}function $E(e,t,r,n,s,i,o,l,u,f){let p=t,d=s===16?hx.hex:hx.decBinOct,y=s===16?sf.hex:s===10?sf.dec:s===8?sf.oct:sf.bin,m=!1,D=0;for(let T=0,S=i??1/0;T<S;++T){let v=e.charCodeAt(t),E;if(v===95&&l!=="bail"){let C=e.charCodeAt(t-1),P=e.charCodeAt(t+1);if(l){if(Number.isNaN(P)||!y(P)||d.has(C)||d.has(P)){if(f)return{n:null,pos:t};u.unexpectedNumericSeparator(t,r,n)}}else{if(f)return{n:null,pos:t};u.numericSeparatorInEscapeSequence(t,r,n)}++t;continue}if(v>=97?E=v-97+10:v>=65?E=v-65+10:$k(v)?E=v-48:E=1/0,E>=s){if(E<=9&&f)return{n:null,pos:t};if(E<=9&&u.invalidDigit(t,r,n,s))E=0;else if(o)E=0,m=!0;else break}++t,D=D*s+E}return t===p||i!=null&&t-p!==i||m?{n:null,pos:t}:{n:D,pos:t}}function ME(e,t,r,n,s,i){let o=e.charCodeAt(t),l;if(o===123){if(++t,{code:l,pos:t}=m0(e,t,r,n,e.indexOf("}",t)-t,!0,s,i),++t,l!==null&&l>1114111)if(s)i.invalidCodePoint(t,r,n);else return{code:null,pos:t}}else({code:l,pos:t}=m0(e,t,r,n,4,!1,s,i));return{code:l,pos:t}}function lc(e,t,r){return new Aa(r,e-t,e)}var Jk=new Set([103,109,115,105,121,117,100,118]),Rk=class{constructor(t){let r=t.startIndex||0;this.type=t.type,this.value=t.value,this.start=r+t.start,this.end=r+t.end,this.loc=new Uf(t.startLoc,t.endLoc)}},Uk=class extends Lk{isLookahead;tokens=[];constructor(e,t){super(),this.state=new Ok,this.state.init(e),this.input=t,this.length=t.length,this.comments=[],this.isLookahead=!1}pushToken(e){this.tokens.length=this.state.tokensLength,this.tokens.push(e),++this.state.tokensLength}next(){this.checkKeywordEscapes(),this.optionFlags&256&&this.pushToken(new Rk(this.state)),this.state.lastTokEndLoc=this.state.endLoc,this.state.lastTokStartLoc=this.state.startLoc,this.nextToken()}eat(e){return this.match(e)?(this.next(),!0):!1}match(e){return this.state.type===e}createLookaheadState(e){return{pos:e.pos,value:null,type:e.type,start:e.start,end:e.end,context:[this.curContext()],inType:e.inType,startLoc:e.startLoc,lastTokEndLoc:e.lastTokEndLoc,curLine:e.curLine,lineStart:e.lineStart,curPosition:e.curPosition}}lookahead(){let e=this.state;this.state=this.createLookaheadState(e),this.isLookahead=!0,this.nextToken(),this.isLookahead=!1;let t=this.state;return this.state=e,t}nextTokenStart(){return this.nextTokenStartSince(this.state.pos)}nextTokenStartSince(e){return by.lastIndex=e,by.test(this.input)?by.lastIndex:e}lookaheadCharCode(){return this.lookaheadCharCodeSince(this.state.pos)}lookaheadCharCodeSince(e){return this.input.charCodeAt(this.nextTokenStartSince(e))}nextTokenInLineStart(){return this.nextTokenInLineStartSince(this.state.pos)}nextTokenInLineStartSince(e){return Cy.lastIndex=e,Cy.test(this.input)?Cy.lastIndex:e}lookaheadInLineCharCode(){return this.input.charCodeAt(this.nextTokenInLineStart())}codePointAtPos(e){let t=this.input.charCodeAt(e);if((t&64512)===55296&&++e<this.input.length){let r=this.input.charCodeAt(e);(r&64512)===56320&&(t=65536+((t&1023)<<10)+(r&1023))}return t}setStrict(e){this.state.strict=e,e&&(this.state.strictErrors.forEach(([t,r])=>this.raise(t,r)),this.state.strictErrors.clear())}curContext(){return this.state.context[this.state.context.length-1]}nextToken(){if(this.skipSpace(),this.state.start=this.state.pos,this.isLookahead||(this.state.startLoc=this.state.curPosition()),this.state.pos>=this.length){this.finishToken(140);return}this.getTokenFromCode(this.codePointAtPos(this.state.pos))}skipBlockComment(e){let t;this.isLookahead||(t=this.state.curPosition());let r=this.state.pos,n=this.input.indexOf(e,r+2);if(n===-1)throw this.raise(K.UnterminatedComment,this.state.curPosition());for(this.state.pos=n+e.length,nf.lastIndex=r+2;nf.test(this.input)&&nf.lastIndex<=n;)++this.state.curLine,this.state.lineStart=nf.lastIndex;if(this.isLookahead)return;let s={type:"CommentBlock",value:this.input.slice(r+2,n),start:this.sourceToOffsetPos(r),end:this.sourceToOffsetPos(n+e.length),loc:new Uf(t,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(s),s}skipLineComment(e){let t=this.state.pos,r;this.isLookahead||(r=this.state.curPosition());let n=this.input.charCodeAt(this.state.pos+=e);if(this.state.pos<this.length)for(;!Lu(n)&&++this.state.pos<this.length;)n=this.input.charCodeAt(this.state.pos);if(this.isLookahead)return;let s=this.state.pos,i={type:"CommentLine",value:this.input.slice(t+e,s),start:this.sourceToOffsetPos(t),end:this.sourceToOffsetPos(s),loc:new Uf(r,this.state.curPosition())};return this.optionFlags&256&&this.pushToken(i),i}skipSpace(){let e=this.state.pos,t=this.optionFlags&4096?[]:null;e:for(;this.state.pos<this.length;){let r=this.input.charCodeAt(this.state.pos);switch(r){case 32:case 160:case 9:++this.state.pos;break;case 13:this.input.charCodeAt(this.state.pos+1)===10&&++this.state.pos;case 10:case 8232:case 8233:++this.state.pos,++this.state.curLine,this.state.lineStart=this.state.pos;break;case 47:switch(this.input.charCodeAt(this.state.pos+1)){case 42:{let n=this.skipBlockComment("*/");n!==void 0&&(this.addComment(n),t?.push(n));break}case 47:{let n=this.skipLineComment(2);n!==void 0&&(this.addComment(n),t?.push(n));break}default:break e}break;default:if(Fk(r))++this.state.pos;else if(r===45&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===45&&this.input.charCodeAt(n+2)===62&&(e===0||this.state.lineStart>e)){let s=this.skipLineComment(3);s!==void 0&&(this.addComment(s),t?.push(s))}else break e}else if(r===60&&!this.inModule&&this.optionFlags&8192){let n=this.state.pos;if(this.input.charCodeAt(n+1)===33&&this.input.charCodeAt(n+2)===45&&this.input.charCodeAt(n+3)===45){let s=this.skipLineComment(4);s!==void 0&&(this.addComment(s),t?.push(s))}else break e}else break e}}if(t?.length>0){let r=this.state.pos,n={start:this.sourceToOffsetPos(e),end:this.sourceToOffsetPos(r),comments:t,leadingNode:null,trailingNode:null,containingNode:null};this.state.commentStack.push(n)}}finishToken(e,t){this.state.end=this.state.pos,this.state.endLoc=this.state.curPosition();let r=this.state.type;this.state.type=e,this.state.value=t,this.isLookahead||this.updateContext(r)}replaceToken(e){this.state.type=e,this.updateContext()}readToken_numberSign(){if(this.state.pos===0&&this.readToken_interpreter())return;let e=this.state.pos+1,t=this.codePointAtPos(e);if(t>=48&&t<=57)throw this.raise(K.UnexpectedDigitAfterHash,this.state.curPosition());Ys(t)?(++this.state.pos,this.finishToken(139,this.readWord1(t))):t===92?(++this.state.pos,this.finishToken(139,this.readWord1())):this.finishOp(27,1)}readToken_dot(){let e=this.input.charCodeAt(this.state.pos+1);if(e>=48&&e<=57){this.readNumber(!0);return}e===46&&this.input.charCodeAt(this.state.pos+2)===46?(this.state.pos+=3,this.finishToken(21)):(++this.state.pos,this.finishToken(16))}readToken_slash(){this.input.charCodeAt(this.state.pos+1)===61?this.finishOp(31,2):this.finishOp(56,1)}readToken_interpreter(){if(this.state.pos!==0||this.length<2)return!1;let e=this.input.charCodeAt(this.state.pos+1);if(e!==33)return!1;let t=this.state.pos;for(this.state.pos+=1;!Lu(e)&&++this.state.pos<this.length;)e=this.input.charCodeAt(this.state.pos);let r=this.input.slice(t+2,this.state.pos);return this.finishToken(28,r),!0}readToken_mult_modulo(e){let t=e===42?55:54,r=1,n=this.input.charCodeAt(this.state.pos+1);e===42&&n===42&&(r++,n=this.input.charCodeAt(this.state.pos+2),t=57),n===61&&!this.state.inType&&(r++,t=e===37?33:30),this.finishOp(t,r)}readToken_pipe_amp(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.input.charCodeAt(this.state.pos+2)===61?this.finishOp(30,3):this.finishOp(e===124?41:42,2);return}if(e===124&&t===62){this.finishOp(39,2);return}if(t===61){this.finishOp(30,2);return}this.finishOp(e===124?43:45,1)}readToken_caret(){let e=this.input.charCodeAt(this.state.pos+1);e===61&&!this.state.inType?this.finishOp(32,2):e===94&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"^^"}])?(this.finishOp(37,2),this.input.codePointAt(this.state.pos)===94&&this.unexpected()):this.finishOp(44,1)}readToken_atSign(){this.input.charCodeAt(this.state.pos+1)===64&&this.hasPlugin(["pipelineOperator",{proposal:"hack",topicToken:"@@"}])?this.finishOp(38,2):this.finishOp(26,1)}readToken_plus_min(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===e){this.finishOp(34,2);return}t===61?this.finishOp(30,2):this.finishOp(53,1)}readToken_lt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===60){if(this.input.charCodeAt(e+2)===61){this.finishOp(30,3);return}this.finishOp(51,2);return}if(t===61){this.finishOp(49,2);return}this.finishOp(47,1)}readToken_gt(){let{pos:e}=this.state,t=this.input.charCodeAt(e+1);if(t===62){let r=this.input.charCodeAt(e+2)===62?3:2;if(this.input.charCodeAt(e+r)===61){this.finishOp(30,r+1);return}this.finishOp(52,r);return}if(t===61){this.finishOp(49,2);return}this.finishOp(48,1)}readToken_eq_excl(e){let t=this.input.charCodeAt(this.state.pos+1);if(t===61){this.finishOp(46,this.input.charCodeAt(this.state.pos+2)===61?3:2);return}if(e===61&&t===62){this.state.pos+=2,this.finishToken(19);return}this.finishOp(e===61?29:35,1)}readToken_question(){let e=this.input.charCodeAt(this.state.pos+1),t=this.input.charCodeAt(this.state.pos+2);e===63?t===61?this.finishOp(30,3):this.finishOp(40,2):e===46&&!(t>=48&&t<=57)?(this.state.pos+=2,this.finishToken(18)):(++this.state.pos,this.finishToken(17))}getTokenFromCode(e){switch(e){case 46:this.readToken_dot();return;case 40:++this.state.pos,this.finishToken(10);return;case 41:++this.state.pos,this.finishToken(11);return;case 59:++this.state.pos,this.finishToken(13);return;case 44:++this.state.pos,this.finishToken(12);return;case 91:++this.state.pos,this.finishToken(0);return;case 93:++this.state.pos,this.finishToken(3);return;case 123:++this.state.pos,this.finishToken(5);return;case 125:++this.state.pos,this.finishToken(8);return;case 58:this.hasPlugin("functionBind")&&this.input.charCodeAt(this.state.pos+1)===58?this.finishOp(15,2):(++this.state.pos,this.finishToken(14));return;case 63:this.readToken_question();return;case 96:this.readTemplateToken();return;case 48:{let t=this.input.charCodeAt(this.state.pos+1);if(t===120||t===88){this.readRadixNumber(16);return}if(t===111||t===79){this.readRadixNumber(8);return}if(t===98||t===66){this.readRadixNumber(2);return}}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:this.readNumber(!1);return;case 34:case 39:this.readString(e);return;case 47:this.readToken_slash();return;case 37:case 42:this.readToken_mult_modulo(e);return;case 124:case 38:this.readToken_pipe_amp(e);return;case 94:this.readToken_caret();return;case 43:case 45:this.readToken_plus_min(e);return;case 60:this.readToken_lt();return;case 62:this.readToken_gt();return;case 61:case 33:this.readToken_eq_excl(e);return;case 126:this.finishOp(36,1);return;case 64:this.readToken_atSign();return;case 35:this.readToken_numberSign();return;case 92:this.readWord();return;default:if(Ys(e)){this.readWord(e);return}}throw this.raise(K.InvalidOrUnexpectedToken,this.state.curPosition(),{unexpected:String.fromCodePoint(e)})}finishOp(e,t){let r=this.input.slice(this.state.pos,this.state.pos+t);this.state.pos+=t,this.finishToken(e,r)}readRegexp(){let e=this.state.startLoc,t=this.state.start+1,r,n,{pos:s}=this.state;for(;;++s){if(s>=this.length)throw this.raise(K.UnterminatedRegExp,ms(e,1));let u=this.input.charCodeAt(s);if(Lu(u))throw this.raise(K.UnterminatedRegExp,ms(e,1));if(r)r=!1;else{if(u===91)n=!0;else if(u===93&&n)n=!1;else if(u===47&&!n)break;r=u===92}}let i=this.input.slice(t,s);++s;let o="",l=()=>ms(e,s+2-t);for(;s<this.length;){let u=this.codePointAtPos(s),f=String.fromCharCode(u);if(Jk.has(u))u===118?o.includes("u")&&this.raise(K.IncompatibleRegExpUVFlags,l()):u===117&&o.includes("v")&&this.raise(K.IncompatibleRegExpUVFlags,l()),o.includes(f)&&this.raise(K.DuplicateRegExpFlags,l());else if(Co(u)||u===92)this.raise(K.MalformedRegExpFlags,l());else break;++s,o+=f}this.state.pos=s,this.finishToken(138,{pattern:i,flags:o})}readInt(e,t,r=!1,n=!0){let{n:s,pos:i}=$E(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,t,r,n,this.errorHandlers_readInt,!1);return this.state.pos=i,s}readRadixNumber(e){let t=this.state.pos,r=this.state.curPosition(),n=!1;this.state.pos+=2;let s=this.readInt(e);s==null&&this.raise(K.InvalidDigit,ms(r,2),{radix:e});let i=this.input.charCodeAt(this.state.pos);if(i===110)++this.state.pos,n=!0;else if(i===109)throw this.raise(K.InvalidDecimal,r);if(Ys(this.codePointAtPos(this.state.pos)))throw this.raise(K.NumberIdentifier,this.state.curPosition());if(n){let o=this.input.slice(t,this.state.pos).replace(/[_n]/g,"");this.finishToken(136,o);return}this.finishToken(135,s)}readNumber(e){let t=this.state.pos,r=this.state.curPosition(),n=!1,s=!1,i=!1;!e&&this.readInt(10)===null&&this.raise(K.InvalidNumber,this.state.curPosition());let o=this.state.pos-t>=2&&this.input.charCodeAt(t)===48;if(o){let p=this.input.slice(t,this.state.pos);if(this.recordStrictModeErrors(K.StrictOctalLiteral,r),!this.state.strict){let d=p.indexOf("_");d>0&&this.raise(K.ZeroDigitNumericSeparator,ms(r,d))}i=o&&!/[89]/.test(p)}let l=this.input.charCodeAt(this.state.pos);if(l===46&&!i&&(++this.state.pos,this.readInt(10),n=!0,l=this.input.charCodeAt(this.state.pos)),(l===69||l===101)&&!i&&(l=this.input.charCodeAt(++this.state.pos),(l===43||l===45)&&++this.state.pos,this.readInt(10)===null&&this.raise(K.InvalidOrMissingExponent,r),n=!0,l=this.input.charCodeAt(this.state.pos)),l===110&&((n||o)&&this.raise(K.InvalidBigIntLiteral,r),++this.state.pos,s=!0),Ys(this.codePointAtPos(this.state.pos)))throw this.raise(K.NumberIdentifier,this.state.curPosition());let u=this.input.slice(t,this.state.pos).replace(/[_mn]/g,"");if(s){this.finishToken(136,u);return}let f=i?parseInt(u,8):parseFloat(u);this.finishToken(135,f)}readCodePoint(e){let{code:t,pos:r}=ME(this.input,this.state.pos,this.state.lineStart,this.state.curLine,e,this.errorHandlers_readCodePoint);return this.state.pos=r,t}readString(e){let{str:t,pos:r,curLine:n,lineStart:s}=fx(e===34?"double":"single",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_string);this.state.pos=r+1,this.state.lineStart=s,this.state.curLine=n,this.finishToken(134,t)}readTemplateContinuation(){this.match(8)||this.unexpected(null,8),this.state.pos--,this.readTemplateToken()}readTemplateToken(){let e=this.input[this.state.pos],{str:t,firstInvalidLoc:r,pos:n,curLine:s,lineStart:i}=fx("template",this.input,this.state.pos+1,this.state.lineStart,this.state.curLine,this.errorHandlers_readStringContents_template);this.state.pos=n+1,this.state.lineStart=i,this.state.curLine=s,r&&(this.state.firstInvalidTemplateEscapePos=new Aa(r.curLine,r.pos-r.lineStart,this.sourceToOffsetPos(r.pos))),this.input.codePointAt(n)===96?this.finishToken(24,r?null:e+t+"`"):(this.state.pos++,this.finishToken(25,r?null:e+t+"${"))}recordStrictModeErrors(e,t){let r=t.index;this.state.strict&&!this.state.strictErrors.has(r)?this.raise(e,t):this.state.strictErrors.set(r,[e,t])}readWord1(e){this.state.containsEsc=!1;let t="",r=this.state.pos,n=this.state.pos;for(e!==void 0&&(this.state.pos+=e<=65535?1:2);this.state.pos<this.length;){let s=this.codePointAtPos(this.state.pos);if(Co(s))this.state.pos+=s<=65535?1:2;else if(s===92){this.state.containsEsc=!0,t+=this.input.slice(n,this.state.pos);let i=this.state.curPosition(),o=this.state.pos===r?Ys:Co;if(this.input.charCodeAt(++this.state.pos)!==117){this.raise(K.MissingUnicodeEscape,this.state.curPosition()),n=this.state.pos-1;continue}++this.state.pos;let l=this.readCodePoint(!0);l!==null&&(o(l)||this.raise(K.EscapedCharNotAnIdentifier,i),t+=String.fromCodePoint(l)),n=this.state.pos}else break}return t+this.input.slice(n,this.state.pos)}readWord(e){let t=this.readWord1(e),r=k2.get(t);r!==void 0?this.finishToken(r,va(r)):this.finishToken(132,t)}checkKeywordEscapes(){let{type:e}=this.state;O2(e)&&this.state.containsEsc&&this.raise(K.InvalidEscapedReservedWord,this.state.startLoc,{reservedWord:va(e)})}raise(e,t,r={}){let n=t instanceof Aa?t:t.loc.start,s=e(n,r);if(!(this.optionFlags&2048))throw s;return this.isLookahead||this.state.errors.push(s),s}raiseOverwrite(e,t,r={}){let n=t instanceof Aa?t:t.loc.start,s=n.index,i=this.state.errors;for(let o=i.length-1;o>=0;o--){let l=i[o];if(l.loc.index===s)return i[o]=e(n,r);if(l.loc.index<s)break}return this.raise(e,t,r)}updateContext(e){}unexpected(e,t){throw this.raise(K.UnexpectedToken,e??this.state.startLoc,{expected:t?va(t):null})}expectPlugin(e,t){if(this.hasPlugin(e))return!0;throw this.raise(K.MissingPlugin,t??this.state.startLoc,{missingPlugin:[e]})}expectOnePlugin(e){if(!e.some(t=>this.hasPlugin(t)))throw this.raise(K.MissingOneOfPlugins,this.state.startLoc,{missingPlugin:e})}errorBuilder(e){return(t,r,n)=>{this.raise(e,lc(t,r,n))}}errorHandlers_readInt={invalidDigit:(e,t,r,n)=>this.optionFlags&2048?(this.raise(K.InvalidDigit,lc(e,t,r),{radix:n}),!0):!1,numericSeparatorInEscapeSequence:this.errorBuilder(K.NumericSeparatorInEscapeSequence),unexpectedNumericSeparator:this.errorBuilder(K.UnexpectedNumericSeparator)};errorHandlers_readCodePoint=Object.assign({},this.errorHandlers_readInt,{invalidEscapeSequence:this.errorBuilder(K.InvalidEscapeSequence),invalidCodePoint:this.errorBuilder(K.InvalidCodePoint)});errorHandlers_readStringContents_string=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:(e,t,r)=>{this.recordStrictModeErrors(K.StrictNumericEscape,lc(e,t,r))},unterminated:(e,t,r)=>{throw this.raise(K.UnterminatedString,lc(e-1,t,r))}});errorHandlers_readStringContents_template=Object.assign({},this.errorHandlers_readCodePoint,{strictNumericEscape:this.errorBuilder(K.StrictNumericEscape),unterminated:(e,t,r)=>{throw this.raise(K.UnterminatedTemplate,lc(e,t,r))}})},qk=class{privateNames=new Set;loneAccessors=new Map;undefinedPrivateNames=new Map},Kk=class{parser;stack=[];undefinedPrivateNames=new Map;constructor(t){this.parser=t}current(){return this.stack[this.stack.length-1]}enter(){this.stack.push(new qk)}exit(){let t=this.stack.pop(),r=this.current();for(let[n,s]of Array.from(t.undefinedPrivateNames))r?r.undefinedPrivateNames.has(n)||r.undefinedPrivateNames.set(n,s):this.parser.raise(K.InvalidPrivateFieldResolution,s,{identifierName:n})}declarePrivateName(t,r,n){let{privateNames:s,loneAccessors:i,undefinedPrivateNames:o}=this.current(),l=s.has(t);if(r&3){let u=l&&i.get(t);if(u){let f=u&4,p=r&4,d=u&3,y=r&3;l=d===y||f!==p,l||i.delete(t)}else l||i.set(t,r)}l&&this.parser.raise(K.PrivateNameRedeclaration,n,{identifierName:t}),s.add(t),o.delete(t)}usePrivateName(t,r){let n;for(n of this.stack)if(n.privateNames.has(t))return;n?n.undefinedPrivateNames.set(t,r):this.parser.raise(K.InvalidPrivateFieldResolution,r,{identifierName:t})}},hm=class{constructor(t=0){this.type=t}canBeArrowParameterDeclaration(){return this.type===2||this.type===1}isCertainlyParameterDeclaration(){return this.type===3}},jE=class extends hm{declarationErrors=new Map;constructor(t){super(t)}recordDeclarationError(t,r){let n=r.index;this.declarationErrors.set(n,[t,r])}clearDeclarationError(t){this.declarationErrors.delete(t)}iterateErrors(t){this.declarationErrors.forEach(t)}},zk=class{parser;stack=[new hm];constructor(t){this.parser=t}enter(t){this.stack.push(t)}exit(){this.stack.pop()}recordParameterInitializerError(t,r){let n=r.loc.start,{stack:s}=this,i=s.length-1,o=s[i];for(;!o.isCertainlyParameterDeclaration();){if(o.canBeArrowParameterDeclaration())o.recordDeclarationError(t,n);else return;o=s[--i]}this.parser.raise(t,n)}recordArrowParameterBindingError(t,r){let{stack:n}=this,s=n[n.length-1],i=r.loc.start;if(s.isCertainlyParameterDeclaration())this.parser.raise(t,i);else if(s.canBeArrowParameterDeclaration())s.recordDeclarationError(t,i);else return}recordAsyncArrowParametersError(t){let{stack:r}=this,n=r.length-1,s=r[n];for(;s.canBeArrowParameterDeclaration();)s.type===2&&s.recordDeclarationError(K.AwaitBindingIdentifier,t),s=r[--n]}validateAsPattern(){let{stack:t}=this,r=t[t.length-1];r.canBeArrowParameterDeclaration()&&r.iterateErrors(([n,s])=>{this.parser.raise(n,s);let i=t.length-2,o=t[i];for(;o.canBeArrowParameterDeclaration();)o.clearDeclarationError(s.index),o=t[--i]})}};function Wk(){return new hm(3)}function Vk(){return new jE(1)}function Hk(){return new jE(2)}function JE(){return new hm}var Xk=class extends Uk{addExtra(t,r,n,s=!0){if(!t)return;let{extra:i}=t;i==null&&(i={},t.extra=i),s?i[r]=n:Object.defineProperty(i,r,{enumerable:s,value:n})}isContextual(t){return this.state.type===t&&!this.state.containsEsc}isUnparsedContextual(t,r){if(this.input.startsWith(r,t)){let n=this.input.charCodeAt(t+r.length);return!(Co(n)||(n&64512)===55296)}return!1}isLookaheadContextual(t){let r=this.nextTokenStart();return this.isUnparsedContextual(r,t)}eatContextual(t){return this.isContextual(t)?(this.next(),!0):!1}expectContextual(t,r){if(!this.eatContextual(t)){if(r!=null)throw this.raise(r,this.state.startLoc);this.unexpected(null,t)}}canInsertSemicolon(){return this.match(140)||this.match(8)||this.hasPrecedingLineBreak()}hasPrecedingLineBreak(){return dx(this.input,this.offsetToSourcePos(this.state.lastTokEndLoc.index),this.state.start)}hasFollowingLineBreak(){return dx(this.input,this.state.end,this.nextTokenStart())}isLineTerminator(){return this.eat(13)||this.canInsertSemicolon()}semicolon(t=!0){(t?this.isLineTerminator():this.eat(13))||this.raise(K.MissingSemicolon,this.state.lastTokEndLoc)}expect(t,r){this.eat(t)||this.unexpected(r,t)}tryParse(t,r=this.state.clone()){let n={node:null};try{let s=t((i=null)=>{throw n.node=i,n});if(this.state.errors.length>r.errors.length){let i=this.state;return this.state=r,this.state.tokensLength=i.tokensLength,{node:s,error:i.errors[r.errors.length],thrown:!1,aborted:!1,failState:i}}return{node:s,error:null,thrown:!1,aborted:!1,failState:null}}catch(s){let i=this.state;if(this.state=r,s instanceof SyntaxError)return{node:null,error:s,thrown:!0,aborted:!1,failState:i};if(s===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:i};throw s}}checkExpressionErrors(t,r){if(!t)return!1;let{shorthandAssignLoc:n,doubleProtoLoc:s,privateKeyLoc:i,optionalParametersLoc:o,voidPatternLoc:l}=t,u=!!n||!!s||!!o||!!i||!!l;if(!r)return u;n!=null&&this.raise(K.InvalidCoverInitializedName,n),s!=null&&this.raise(K.DuplicateProto,s),i!=null&&this.raise(K.UnexpectedPrivateField,i),o!=null&&this.unexpected(o),l!=null&&this.raise(K.InvalidCoverDiscardElement,l)}isLiteralPropertyName(){return _E(this.state.type)}isPrivateName(t){return t.type==="PrivateName"}getPrivateNameSV(t){return t.id.name}hasPropertyAsPrivateName(t){return(t.type==="MemberExpression"||t.type==="OptionalMemberExpression")&&this.isPrivateName(t.property)}isObjectProperty(t){return t.type==="ObjectProperty"}isObjectMethod(t){return t.type==="ObjectMethod"}initializeScopes(t=this.options.sourceType==="module"){let r=this.state.labels;this.state.labels=[];let n=this.exportedIdentifiers;this.exportedIdentifiers=new Set;let s=this.inModule;this.inModule=t;let i=this.scope,o=this.getScopeHandler();this.scope=new o(this,t);let l=this.prodParam;this.prodParam=new Nk;let u=this.classScope;this.classScope=new Kk(this);let f=this.expressionScope;return this.expressionScope=new zk(this),()=>{this.state.labels=r,this.exportedIdentifiers=n,this.inModule=s,this.scope=i,this.prodParam=l,this.classScope=u,this.expressionScope=f}}enterInitialScopes(){let t=0;(this.inModule||this.optionFlags&1)&&(t|=2),this.optionFlags&32&&(t|=1);let r=!this.inModule&&this.options.sourceType==="commonjs";(r||this.optionFlags&2)&&(t|=4),this.prodParam.enter(t);let n=r?514:1;this.optionFlags&4&&(n|=512),this.optionFlags&16&&(n|=48),this.scope.enter(n)}checkDestructuringPrivate(t){let{privateKeyLoc:r}=t;r!==null&&this.expectPlugin("destructuringPrivate",r)}},_f=class{shorthandAssignLoc=null;doubleProtoLoc=null;privateKeyLoc=null;optionalParametersLoc=null;voidPatternLoc=null},y0=class{constructor(t,r,n){this.start=r,this.end=0,this.loc=new Uf(n),t?.optionFlags&128&&(this.range=[r,0]),t?.filename&&(this.loc.filename=t.filename)}type=""},mx=y0.prototype,Gk=class extends Xk{startNode(){let t=this.state.startLoc;return new y0(this,t.index,t)}startNodeAt(t){return new y0(this,t.index,t)}startNodeAtNode(t){return this.startNodeAt(t.loc.start)}finishNode(t,r){return this.finishNodeAt(t,r,this.state.lastTokEndLoc)}finishNodeAt(t,r,n){return t.type=r,t.end=n.index,t.loc.end=n,this.optionFlags&128&&(t.range[1]=n.index),this.optionFlags&4096&&this.processComment(t),t}resetStartLocation(t,r){t.start=r.index,t.loc.start=r,this.optionFlags&128&&(t.range[0]=r.index)}resetEndLocation(t,r=this.state.lastTokEndLoc){t.end=r.index,t.loc.end=r,this.optionFlags&128&&(t.range[1]=r.index)}resetStartLocationFromNode(t,r){this.resetStartLocation(t,r.loc.start)}castNodeTo(t,r){return t.type=r,t}cloneIdentifier(t){let{type:r,start:n,end:s,loc:i,range:o,name:l}=t,u=Object.create(mx);return u.type=r,u.start=n,u.end=s,u.loc=i,u.range=o,u.name=l,t.extra&&(u.extra=t.extra),u}cloneStringLiteral(t){let{type:r,start:n,end:s,loc:i,range:o,extra:l}=t,u=Object.create(mx);return u.type=r,u.start=n,u.end=s,u.loc=i,u.range=o,u.extra=l,u.value=t.value,u}},g0=e=>e.type==="ParenthesizedExpression"?g0(e.expression):e,Qk=class extends Gk{toAssignable(t,r=!1){let n;switch((t.type==="ParenthesizedExpression"||t.extra?.parenthesized)&&(n=g0(t),r?n.type==="Identifier"?this.expressionScope.recordArrowParameterBindingError(K.InvalidParenthesizedAssignment,t):n.type!=="CallExpression"&&n.type!=="MemberExpression"&&!this.isOptionalMemberExpression(n)&&this.raise(K.InvalidParenthesizedAssignment,t):this.raise(K.InvalidParenthesizedAssignment,t)),t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":break;case"ObjectExpression":this.castNodeTo(t,"ObjectPattern");for(let s=0,i=t.properties.length,o=i-1;s<i;s++){let l=t.properties[s],u=s===o;this.toAssignableObjectExpressionProp(l,u,r),u&&l.type==="RestElement"&&t.extra?.trailingCommaLoc&&this.raise(K.RestTrailingComma,t.extra.trailingCommaLoc)}break;case"ObjectProperty":{let{key:s,value:i}=t;this.isPrivateName(s)&&this.classScope.usePrivateName(this.getPrivateNameSV(s),s.loc.start),this.toAssignable(i,r);break}case"SpreadElement":throw new Error("Internal @babel/parser error (this is a bug, please report it). SpreadElement should be converted by .toAssignable's caller.");case"ArrayExpression":this.castNodeTo(t,"ArrayPattern"),this.toAssignableList(t.elements,t.extra?.trailingCommaLoc,r);break;case"AssignmentExpression":t.operator!=="="&&this.raise(K.MissingEqInAssignment,t.left.loc.end),this.castNodeTo(t,"AssignmentPattern"),delete t.operator,t.left.type==="VoidPattern"&&this.raise(K.VoidPatternInitializer,t.left),this.toAssignable(t.left,r);break;case"ParenthesizedExpression":this.toAssignable(n,r);break}}toAssignableObjectExpressionProp(t,r,n){if(t.type==="ObjectMethod")this.raise(t.kind==="get"||t.kind==="set"?K.PatternHasAccessor:K.PatternHasMethod,t.key);else if(t.type==="SpreadElement"){this.castNodeTo(t,"RestElement");let s=t.argument;this.checkToRestConversion(s,!1),this.toAssignable(s,n),r||this.raise(K.RestTrailingComma,t)}else this.toAssignable(t,n)}toAssignableList(t,r,n){let s=t.length-1;for(let i=0;i<=s;i++){let o=t[i];o&&(this.toAssignableListItem(t,i,n),o.type==="RestElement"&&(i<s?this.raise(K.RestTrailingComma,o):r&&this.raise(K.RestTrailingComma,r)))}}toAssignableListItem(t,r,n){let s=t[r];if(s.type==="SpreadElement"){this.castNodeTo(s,"RestElement");let i=s.argument;this.checkToRestConversion(i,!0),this.toAssignable(i,n)}else this.toAssignable(s,n)}isAssignable(t,r){switch(t.type){case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":case"VoidPattern":return!0;case"ObjectExpression":{let n=t.properties.length-1;return t.properties.every((s,i)=>s.type!=="ObjectMethod"&&(i===n||s.type!=="SpreadElement")&&this.isAssignable(s))}case"ObjectProperty":return this.isAssignable(t.value);case"SpreadElement":return this.isAssignable(t.argument);case"ArrayExpression":return t.elements.every(n=>n===null||this.isAssignable(n));case"AssignmentExpression":return t.operator==="=";case"ParenthesizedExpression":return this.isAssignable(t.expression);case"MemberExpression":case"OptionalMemberExpression":return!r;default:return!1}}toReferencedList(t,r){return t}toReferencedListDeep(t,r){this.toReferencedList(t,r);for(let n of t)n?.type==="ArrayExpression"&&this.toReferencedListDeep(n.elements)}parseSpread(t){let r=this.startNode();return this.next(),r.argument=this.parseMaybeAssignAllowIn(t,void 0),this.finishNode(r,"SpreadElement")}parseRestBinding(){let t=this.startNode();this.next();let r=this.parseBindingAtom();return r.type==="VoidPattern"&&this.raise(K.UnexpectedVoidPattern,r),t.argument=r,this.finishNode(t,"RestElement")}parseBindingAtom(){switch(this.state.type){case 0:{let t=this.startNode();return this.next(),t.elements=this.parseBindingList(3,93,1),this.finishNode(t,"ArrayPattern")}case 5:return this.parseObjectLike(8,!0);case 88:return this.parseVoidPattern(null)}return this.parseIdentifier()}parseBindingList(t,r,n){let s=n&1,i=[],o=!0;for(;!this.eat(t);)if(o?o=!1:this.expect(12),s&&this.match(12))i.push(null);else{if(this.eat(t))break;if(this.match(21)){let l=this.parseRestBinding();if(n&2&&(l=this.parseFunctionParamType(l)),i.push(l),!this.checkCommaAfterRest(r)){this.expect(t);break}}else{let l=[];if(n&2)for(this.match(26)&&this.hasPlugin("decorators")&&this.raise(K.UnsupportedParameterDecorator,this.state.startLoc);this.match(26);)l.push(this.parseDecorator());i.push(this.parseBindingElement(n,l))}}return i}parseBindingRestProperty(t){return this.next(),this.hasPlugin("discardBinding")&&this.match(88)?(t.argument=this.parseVoidPattern(null),this.raise(K.UnexpectedVoidPattern,t.argument)):t.argument=this.parseIdentifier(),this.checkCommaAfterRest(125),this.finishNode(t,"RestElement")}parseBindingProperty(){let{type:t,startLoc:r}=this.state;if(t===21)return this.parseBindingRestProperty(this.startNode());let n=this.startNode();return t===139?(this.expectPlugin("destructuringPrivate",r),this.classScope.usePrivateName(this.state.value,r),n.key=this.parsePrivateName()):this.parsePropertyName(n),n.method=!1,this.parseObjPropValue(n,r,!1,!1,!0,!1)}parseBindingElement(t,r){let n=this.parseMaybeDefault();return t&2&&this.parseFunctionParamType(n),r.length&&(n.decorators=r,this.resetStartLocationFromNode(n,r[0])),this.parseMaybeDefault(n.loc.start,n)}parseFunctionParamType(t){return t}parseMaybeDefault(t,r){if(t??(t=this.state.startLoc),r=r??this.parseBindingAtom(),!this.eat(29))return r;let n=this.startNodeAt(t);return r.type==="VoidPattern"&&this.raise(K.VoidPatternInitializer,r),n.left=r,n.right=this.parseMaybeAssignAllowIn(),this.finishNode(n,"AssignmentPattern")}isValidLVal(t,r,n,s){switch(t){case"AssignmentPattern":return"left";case"RestElement":return"argument";case"ObjectProperty":return"value";case"ParenthesizedExpression":return"expression";case"ArrayPattern":return"elements";case"ObjectPattern":return"properties";case"VoidPattern":return!0;case"CallExpression":if(!r&&!this.state.strict&&this.optionFlags&8192)return!0}return!1}isOptionalMemberExpression(t){return t.type==="OptionalMemberExpression"}checkLVal(t,r,n=64,s=!1,i=!1,o=!1,l=!1){let u=t.type;if(this.isObjectMethod(t))return;let f=this.isOptionalMemberExpression(t);if(f||u==="MemberExpression"){f&&(this.expectPlugin("optionalChainingAssign",t.loc.start),r.type!=="AssignmentExpression"&&this.raise(K.InvalidLhsOptionalChaining,t,{ancestor:r})),n!==64&&this.raise(K.InvalidPropertyBindingPattern,t);return}if(u==="Identifier"){this.checkIdentifier(t,n,i);let{name:S}=t;s&&(s.has(S)?this.raise(K.ParamDupe,t):s.add(S));return}else u==="VoidPattern"&&r.type==="CatchClause"&&this.raise(K.VoidPatternCatchClauseParam,t);let p=g0(t);l||(l=p.type==="CallExpression"&&(p.callee.type==="Import"||p.callee.type==="Super"));let d=this.isValidLVal(u,l,!(o||t.extra?.parenthesized)&&r.type==="AssignmentExpression",n);if(d===!0)return;if(d===!1){let S=n===64?K.InvalidLhs:K.InvalidLhsBinding;this.raise(S,t,{ancestor:r});return}let y,m;typeof d=="string"?(y=d,m=u==="ParenthesizedExpression"):[y,m]=d;let D=u==="ArrayPattern"||u==="ObjectPattern"?{type:u}:r,T=t[y];if(Array.isArray(T))for(let S of T)S&&this.checkLVal(S,D,n,s,i,m,!0);else T&&this.checkLVal(T,D,n,s,i,m,l)}checkIdentifier(t,r,n=!1){this.state.strict&&(n?BE(t.name,this.inModule):IE(t.name))&&(r===64?this.raise(K.StrictEvalArguments,t,{referenceName:t.name}):this.raise(K.StrictEvalArgumentsBinding,t,{bindingName:t.name})),r&8192&&t.name==="let"&&this.raise(K.LetInLexicalBinding,t),r&64||this.declareNameFromIdentifier(t,r)}declareNameFromIdentifier(t,r){this.scope.declareName(t.name,r,t.loc.start)}checkToRestConversion(t,r){switch(t.type){case"ParenthesizedExpression":this.checkToRestConversion(t.expression,r);break;case"Identifier":case"MemberExpression":break;case"ArrayExpression":case"ObjectExpression":if(r)break;default:this.raise(K.InvalidRestAssignmentPattern,t)}}checkCommaAfterRest(t){return this.match(12)?(this.raise(this.lookaheadCharCode()===t?K.RestTrailingComma:K.ElementAfterRest,this.state.startLoc),!0):!1}},Ay=/in(?:stanceof)?|as|satisfies/y;function Yk(e){if(e==null)throw new Error(`Unexpected ${e} value.`);return e}function yx(e){if(!e)throw new Error("Assert fail")}var We=Qs`typescript`({AbstractMethodHasImplementation:({methodName:e})=>`Method '${e}' cannot have an implementation because it is marked abstract.`,AbstractPropertyHasInitializer:({propertyName:e})=>`Property '${e}' cannot have an initializer because it is marked abstract.`,AccessorCannotBeOptional:"An 'accessor' property cannot be declared optional.",AccessorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccessorCannotHaveTypeParameters:"An accessor cannot have type parameters.",ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:({kind:e})=>`'declare' is not allowed in ${e}ters.`,DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:({modifier:e})=>`Accessibility modifier already seen: '${e}'.`,DuplicateModifier:({modifier:e})=>`Duplicate modifier: '${e}'.`,EmptyHeritageClauseType:({token:e})=>`'${e}' list cannot be empty.`,EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",ImportReflectionHasImportType:"An `import module` declaration can not use `type` modifier",IncompatibleModifiers:({modifiers:e})=>`'${e[0]}' modifier cannot be used with '${e[1]}' modifier.`,IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:({modifier:e})=>`Index signatures cannot have an accessibility modifier ('${e}').`,IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidHeritageClauseType:({token:e})=>`'${e}' list can only include identifiers or qualified-names with optional type arguments.`,InvalidModifierOnAwaitUsingDeclaration:e=>`'${e}' modifier cannot appear on an await using declaration.`,InvalidModifierOnTypeMember:({modifier:e})=>`'${e}' modifier cannot appear on a type member.`,InvalidModifierOnTypeParameter:({modifier:e})=>`'${e}' modifier cannot appear on a type parameter.`,InvalidModifierOnTypeParameterPositions:({modifier:e})=>`'${e}' modifier can only appear on a type parameter of a class, interface or type alias.`,InvalidModifierOnUsingDeclaration:e=>`'${e}' modifier cannot appear on a using declaration.`,InvalidModifiersOrder:({orderedModifiers:e})=>`'${e[0]}' modifier must precede '${e[1]}' modifier.`,InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifier:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:({modifier:e})=>`Private elements cannot have an accessibility modifier ('${e}').`,ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `<T,>() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccessorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccessorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccessorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:({typeParameterName:e})=>`Single type parameter ${e} should have a trailing comma. Example usage: <${e},>.`,StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TupleOptionalAfterType:"A labeled tuple optional element must be declared using a question mark after the name and before the colon (`name?: type`), rather than after the type (`name: type?`).",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:({type:e})=>`Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got ${e}.`,UsingDeclarationInAmbientContext:e=>`'${e}' declarations are not allowed in ambient contexts.`});function Zk(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}function gx(e){return e==="private"||e==="public"||e==="protected"}function e7(e){return e==="in"||e==="out"}function D0(e){if(e.extra?.parenthesized)return!1;switch(e.type){case"Identifier":return!0;case"MemberExpression":return!e.computed&&D0(e.object);case"TSInstantiationExpression":return D0(e.expression);default:return!1}}var t7=e=>class extends e{getScopeHandler(){return Pk}tsIsIdentifier(){return Xt(this.state.type)}tsTokenCanFollowModifier(){return this.match(0)||this.match(5)||this.match(55)||this.match(21)||this.match(139)||this.isLiteralPropertyName()}tsNextTokenOnSameLineAndCanFollowModifier(){return this.next(),this.hasPrecedingLineBreak()?!1:this.tsTokenCanFollowModifier()}tsNextTokenCanFollowModifier(){return this.match(106)?(this.next(),this.tsTokenCanFollowModifier()):this.tsNextTokenOnSameLineAndCanFollowModifier()}tsParseModifier(t,r,n){if(!Xt(this.state.type)&&this.state.type!==58&&this.state.type!==75)return;let s=this.state.value;if(t.includes(s)){if(n&&this.match(106)||r&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return s}}tsParseModifiers({allowedModifiers:t,disallowedModifiers:r,stopOnStartOfClassStaticBlock:n,errorTemplate:s=We.InvalidModifierOnTypeMember},i){let o=(u,f,p,d)=>{f===p&&i[d]&&this.raise(We.InvalidModifiersOrder,u,{orderedModifiers:[p,d]})},l=(u,f,p,d)=>{(i[p]&&f===d||i[d]&&f===p)&&this.raise(We.IncompatibleModifiers,u,{modifiers:[p,d]})};for(;;){let{startLoc:u}=this.state,f=this.tsParseModifier(t.concat(r??[]),n,i.static);if(!f)break;gx(f)?i.accessibility?this.raise(We.DuplicateAccessibilityModifier,u,{modifier:f}):(o(u,f,f,"override"),o(u,f,f,"static"),o(u,f,f,"readonly"),i.accessibility=f):e7(f)?(i[f]&&this.raise(We.DuplicateModifier,u,{modifier:f}),i[f]=!0,o(u,f,"in","out")):(Object.prototype.hasOwnProperty.call(i,f)?this.raise(We.DuplicateModifier,u,{modifier:f}):(o(u,f,"static","readonly"),o(u,f,"static","override"),o(u,f,"override","readonly"),o(u,f,"abstract","override"),l(u,f,"declare","override"),l(u,f,"static","abstract")),i[f]=!0),r?.includes(f)&&this.raise(s,u,{modifier:f})}}tsIsListTerminator(t){switch(t){case"EnumMembers":case"TypeMembers":return this.match(8);case"HeritageClauseElement":return this.match(5);case"TupleElementTypes":return this.match(3);case"TypeParametersOrArguments":return this.match(48)}}tsParseList(t,r){let n=[];for(;!this.tsIsListTerminator(t);)n.push(r());return n}tsParseDelimitedList(t,r,n){return Yk(this.tsParseDelimitedListWorker(t,r,!0,n))}tsParseDelimitedListWorker(t,r,n,s){let i=[],o=-1;for(;!this.tsIsListTerminator(t);){o=-1;let l=r();if(l==null)return;if(i.push(l),this.eat(12)){o=this.state.lastTokStartLoc.index;continue}if(this.tsIsListTerminator(t))break;n&&this.expect(12);return}return s&&(s.value=o),i}tsParseBracketedList(t,r,n,s,i){s||(n?this.expect(0):this.expect(47));let o=this.tsParseDelimitedList(t,r,i);return n?this.expect(3):this.expect(48),o}tsParseImportType(){let t=this.startNode();return this.expect(83),this.expect(10),this.match(134)?t.argument=this.tsParseLiteralTypeNode():(this.raise(We.UnsupportedImportTypeArgument,this.state.startLoc),t.argument=this.tsParseNonConditionalType()),this.eat(12)?t.options=this.tsParseImportTypeOptions():t.options=null,this.expect(11),this.eat(16)&&(t.qualifier=this.tsParseEntityName(3)),this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSImportType")}tsParseImportTypeOptions(){let t=this.startNode();this.expect(5);let r=this.startNode();return this.isContextual(76)?(r.method=!1,r.key=this.parseIdentifier(!0),r.computed=!1,r.shorthand=!1):this.unexpected(null,76),this.expect(14),r.value=this.tsParseImportTypeWithPropertyValue(),t.properties=[this.finishObjectProperty(r)],this.eat(12),this.expect(8),this.finishNode(t,"ObjectExpression")}tsParseImportTypeWithPropertyValue(){let t=this.startNode(),r=[];for(this.expect(5);!this.match(8);){let n=this.state.type;Xt(n)||n===134?r.push(super.parsePropertyDefinition(null)):this.unexpected(),this.eat(12)}return t.properties=r,this.next(),this.finishNode(t,"ObjectExpression")}tsParseEntityName(t){let r;if(t&1&&this.match(78))if(t&2)r=this.parseIdentifier(!0);else{let n=this.startNode();this.next(),r=this.finishNode(n,"ThisExpression")}else r=this.parseIdentifier(!!(t&1));for(;this.eat(16);){let n=this.startNodeAtNode(r);n.left=r,n.right=this.parseIdentifier(!!(t&1)),r=this.finishNode(n,"TSQualifiedName")}return r}tsParseTypeReference(){let t=this.startNode();return t.typeName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeReference")}tsParseThisTypePredicate(t){this.next();let r=this.startNodeAtNode(t);return r.parameterName=t,r.typeAnnotation=this.tsParseTypeAnnotation(!1),r.asserts=!1,this.finishNode(r,"TSTypePredicate")}tsParseThisTypeNode(){let t=this.startNode();return this.next(),this.finishNode(t,"TSThisType")}tsParseTypeQuery(){let t=this.startNode();return this.expect(87),this.match(83)?t.exprName=this.tsParseImportType():t.exprName=this.tsParseEntityName(1),!this.hasPrecedingLineBreak()&&this.match(47)&&(t.typeArguments=this.tsParseTypeArguments()),this.finishNode(t,"TSTypeQuery")}tsParseInOutModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out"],disallowedModifiers:["const","public","private","protected","readonly","declare","abstract","override"],errorTemplate:We.InvalidModifierOnTypeParameter});tsParseConstModifier=this.tsParseModifiers.bind(this,{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:We.InvalidModifierOnTypeParameterPositions});tsParseInOutConstModifiers=this.tsParseModifiers.bind(this,{allowedModifiers:["in","out","const"],disallowedModifiers:["public","private","protected","readonly","declare","abstract","override"],errorTemplate:We.InvalidModifierOnTypeParameter});tsParseTypeParameter(t){let r=this.startNode();return t(r),r.name=this.tsParseTypeParameterName(),r.constraint=this.tsEatThenParseType(81),r.default=this.tsEatThenParseType(29),this.finishNode(r,"TSTypeParameter")}tsTryParseTypeParameters(t){if(this.match(47))return this.tsParseTypeParameters(t)}tsParseTypeParameters(t){let r=this.startNode();this.match(47)||this.match(143)?this.next():this.unexpected();let n={value:-1};return r.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,t),!1,!0,n),r.params.length===0&&this.raise(We.EmptyTypeParameters,r),n.value!==-1&&this.addExtra(r,"trailingComma",n.value),this.finishNode(r,"TSTypeParameterDeclaration")}tsFillSignature(t,r){let n=t===19,s="params",i="returnType";r.typeParameters=this.tsTryParseTypeParameters(this.tsParseConstModifier),this.expect(10),r[s]=this.tsParseBindingListForSignature(),n?r[i]=this.tsParseTypeOrTypePredicateAnnotation(t):this.match(t)&&(r[i]=this.tsParseTypeOrTypePredicateAnnotation(t))}tsParseBindingListForSignature(){let t=super.parseBindingList(11,41,2);for(let r of t){let{type:n}=r;(n==="AssignmentPattern"||n==="TSParameterProperty")&&this.raise(We.UnsupportedSignatureParameterKind,r,{type:n})}return t}tsParseTypeMemberSemicolon(){!this.eat(12)&&!this.isLineTerminator()&&this.expect(13)}tsParseSignatureMember(t,r){return this.tsFillSignature(14,r),this.tsParseTypeMemberSemicolon(),this.finishNode(r,t)}tsIsUnambiguouslyIndexSignature(){return this.next(),Xt(this.state.type)?(this.next(),this.match(14)):!1}tsTryParseIndexSignature(t){if(!(this.match(0)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))))return;this.expect(0);let r=this.parseIdentifier();r.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(r),this.expect(3),t.parameters=[r];let n=this.tsTryParseTypeAnnotation();return n&&(t.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(t,"TSIndexSignature")}tsParsePropertyOrMethodSignature(t,r){if(this.eat(17)&&(t.optional=!0),this.match(10)||this.match(47)){r&&this.raise(We.ReadonlyForMethodSignature,t);let n=t;n.kind&&this.match(47)&&this.raise(We.AccessorCannotHaveTypeParameters,this.state.curPosition()),this.tsFillSignature(14,n),this.tsParseTypeMemberSemicolon();let s="params",i="returnType";if(n.kind==="get")n[s].length>0&&(this.raise(K.BadGetterArity,this.state.curPosition()),this.isThisParam(n[s][0])&&this.raise(We.AccessorCannotDeclareThisParameter,this.state.curPosition()));else if(n.kind==="set"){if(n[s].length!==1)this.raise(K.BadSetterArity,this.state.curPosition());else{let o=n[s][0];this.isThisParam(o)&&this.raise(We.AccessorCannotDeclareThisParameter,this.state.curPosition()),o.type==="Identifier"&&o.optional&&this.raise(We.SetAccessorCannotHaveOptionalParameter,this.state.curPosition()),o.type==="RestElement"&&this.raise(We.SetAccessorCannotHaveRestParameter,this.state.curPosition())}n[i]&&this.raise(We.SetAccessorCannotHaveReturnType,n[i])}else n.kind="method";return this.finishNode(n,"TSMethodSignature")}else{let n=t;r&&(n.readonly=!0);let s=this.tsTryParseTypeAnnotation();return s&&(n.typeAnnotation=s),this.tsParseTypeMemberSemicolon(),this.finishNode(n,"TSPropertySignature")}}tsParseTypeMember(){let t=this.startNode();if(this.match(10)||this.match(47))return this.tsParseSignatureMember("TSCallSignatureDeclaration",t);if(this.match(77)){let n=this.startNode();return this.next(),this.match(10)||this.match(47)?this.tsParseSignatureMember("TSConstructSignatureDeclaration",t):(t.key=this.createIdentifier(n,"new"),this.tsParsePropertyOrMethodSignature(t,!1))}return this.tsParseModifiers({allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]},t),this.tsTryParseIndexSignature(t)||(super.parsePropertyName(t),!t.computed&&t.key.type==="Identifier"&&(t.key.name==="get"||t.key.name==="set")&&this.tsTokenCanFollowModifier()&&(t.kind=t.key.name,super.parsePropertyName(t),!this.match(10)&&!this.match(47)&&this.unexpected(null,10)),this.tsParsePropertyOrMethodSignature(t,!!t.readonly))}tsParseTypeLiteral(){let t=this.startNode();return t.members=this.tsParseObjectTypeMembers(),this.finishNode(t,"TSTypeLiteral")}tsParseObjectTypeMembers(){this.expect(5);let t=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(8),t}tsIsStartOfMappedType(){return this.next(),this.eat(53)?this.isContextual(122):(this.isContextual(122)&&this.next(),!this.match(0)||(this.next(),!this.tsIsIdentifier())?!1:(this.next(),this.match(58)))}tsParseMappedType(){let t=this.startNode();return this.expect(5),this.match(53)?(t.readonly=this.state.value,this.next(),this.expectContextual(122)):this.eatContextual(122)&&(t.readonly=!0),this.expect(0),t.key=this.tsParseTypeParameterName(),t.constraint=this.tsExpectThenParseType(58),t.nameType=this.eatContextual(93)?this.tsParseType():null,this.expect(3),this.match(53)?(t.optional=this.state.value,this.next(),this.expect(17)):this.eat(17)&&(t.optional=!0),t.typeAnnotation=this.tsTryParseType(),this.semicolon(),this.expect(8),this.finishNode(t,"TSMappedType")}tsParseTupleType(){let t=this.startNode();t.elementTypes=this.tsParseBracketedList("TupleElementTypes",this.tsParseTupleElementType.bind(this),!0,!1);let r=!1;return t.elementTypes.forEach(n=>{let{type:s}=n;r&&s!=="TSRestType"&&s!=="TSOptionalType"&&!(s==="TSNamedTupleMember"&&n.optional)&&this.raise(We.OptionalTypeBeforeRequired,n),r||(r=s==="TSNamedTupleMember"&&n.optional||s==="TSOptionalType")}),this.finishNode(t,"TSTupleType")}tsParseTupleElementType(){let t=this.state.startLoc,r=this.eat(21),{startLoc:n}=this.state,s,i,o,l,u=ks(this.state.type)?this.lookaheadCharCode():null;if(u===58)s=!0,o=!1,i=this.parseIdentifier(!0),this.expect(14),l=this.tsParseType();else if(u===63){o=!0;let f=this.state.value,p=this.tsParseNonArrayType();this.lookaheadCharCode()===58?(s=!0,i=this.createIdentifier(this.startNodeAt(n),f),this.expect(17),this.expect(14),l=this.tsParseType()):(s=!1,l=p,this.expect(17))}else l=this.tsParseType(),o=this.eat(17),s=this.eat(14);if(s){let f;i?(f=this.startNodeAt(n),f.optional=o,f.label=i,f.elementType=l,this.eat(17)&&(f.optional=!0,this.raise(We.TupleOptionalAfterType,this.state.lastTokStartLoc))):(f=this.startNodeAt(n),f.optional=o,this.raise(We.InvalidTupleMemberLabel,l),f.label=l,f.elementType=this.tsParseType()),l=this.finishNode(f,"TSNamedTupleMember")}else if(o){let f=this.startNodeAt(n);f.typeAnnotation=l,l=this.finishNode(f,"TSOptionalType")}if(r){let f=this.startNodeAt(t);f.typeAnnotation=l,l=this.finishNode(f,"TSRestType")}return l}tsParseParenthesizedType(){let t=this.startNode();return this.expect(10),t.typeAnnotation=this.tsParseType(),this.expect(11),this.finishNode(t,"TSParenthesizedType")}tsParseFunctionOrConstructorType(t,r){let n=this.startNode();return t==="TSConstructorType"&&(n.abstract=!!r,r&&this.next(),this.next()),this.tsInAllowConditionalTypesContext(()=>this.tsFillSignature(19,n)),this.finishNode(n,t)}tsParseLiteralTypeNode(){let t=this.startNode();switch(this.state.type){case 135:case 136:case 134:case 85:case 86:t.literal=super.parseExprAtom();break;default:this.unexpected()}return this.finishNode(t,"TSLiteralType")}tsParseTemplateLiteralType(){{let t=this.state.startLoc,r=this.parseTemplateElement(!1),n=[r];if(r.tail){let s=this.startNodeAt(t),i=this.startNodeAt(t);return i.expressions=[],i.quasis=n,s.literal=this.finishNode(i,"TemplateLiteral"),this.finishNode(s,"TSLiteralType")}else{let s=[];for(;!r.tail;)s.push(this.tsParseType()),this.readTemplateContinuation(),n.push(r=this.parseTemplateElement(!1));let i=this.startNodeAt(t);return i.types=s,i.quasis=n,this.finishNode(i,"TSTemplateLiteralType")}}}parseTemplateSubstitution(){return this.state.inType?this.tsParseType():super.parseTemplateSubstitution()}tsParseThisTypeOrThisTypePredicate(){let t=this.tsParseThisTypeNode();return this.isContextual(116)&&!this.hasPrecedingLineBreak()?this.tsParseThisTypePredicate(t):t}tsParseNonArrayType(){switch(this.state.type){case 134:case 135:case 136:case 85:case 86:return this.tsParseLiteralTypeNode();case 53:if(this.state.value==="-"){let t=this.startNode(),r=this.lookahead();return r.type!==135&&r.type!==136&&this.unexpected(),t.literal=this.parseMaybeUnary(),this.finishNode(t,"TSLiteralType")}break;case 78:return this.tsParseThisTypeOrThisTypePredicate();case 87:return this.tsParseTypeQuery();case 83:return this.tsParseImportType();case 5:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case 0:return this.tsParseTupleType();case 10:if(!(this.optionFlags&1024)){let t=this.state.startLoc;this.next();let r=this.tsParseType();return this.expect(11),this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),r}return this.tsParseParenthesizedType();case 25:case 24:return this.tsParseTemplateLiteralType();default:{let{type:t}=this.state;if(Xt(t)||t===88||t===84){let r=t===88?"TSVoidKeyword":t===84?"TSNullKeyword":Zk(this.state.value);if(r!==void 0&&this.lookaheadCharCode()!==46){let n=this.startNode();return this.next(),this.finishNode(n,r)}return this.tsParseTypeReference()}}}throw this.unexpected()}tsParseArrayTypeOrHigher(){let{startLoc:t}=this.state,r=this.tsParseNonArrayType();for(;!this.hasPrecedingLineBreak()&&this.eat(0);)if(this.match(3)){let n=this.startNodeAt(t);n.elementType=r,this.expect(3),r=this.finishNode(n,"TSArrayType")}else{let n=this.startNodeAt(t);n.objectType=r,n.indexType=this.tsParseType(),this.expect(3),r=this.finishNode(n,"TSIndexedAccessType")}return r}tsParseTypeOperator(){let t=this.startNode(),r=this.state.value;return this.next(),t.operator=r,t.typeAnnotation=this.tsParseTypeOperatorOrHigher(),r==="readonly"&&this.tsCheckTypeAnnotationForReadOnly(t),this.finishNode(t,"TSTypeOperator")}tsCheckTypeAnnotationForReadOnly(t){switch(t.typeAnnotation.type){case"TSTupleType":case"TSArrayType":return;default:this.raise(We.UnexpectedReadonly,t)}}tsParseInferType(){let t=this.startNode();this.expectContextual(115);let r=this.startNode();return r.name=this.tsParseTypeParameterName(),r.constraint=this.tsTryParse(()=>this.tsParseConstraintForInferType()),t.typeParameter=this.finishNode(r,"TSTypeParameter"),this.finishNode(t,"TSInferType")}tsParseConstraintForInferType(){if(this.eat(81)){let t=this.tsInDisallowConditionalTypesContext(()=>this.tsParseType());if(this.state.inDisallowConditionalTypesContext||!this.match(17))return t}}tsParseTypeOperatorOrHigher(){return ak(this.state.type)&&!this.state.containsEsc?this.tsParseTypeOperator():this.isContextual(115)?this.tsParseInferType():this.tsInAllowConditionalTypesContext(()=>this.tsParseArrayTypeOrHigher())}tsParseUnionOrIntersectionType(t,r,n){let s=this.startNode(),i=this.eat(n),o=[];do o.push(r());while(this.eat(n));return o.length===1&&!i?o[0]:(s.types=o,this.finishNode(s,t))}tsParseIntersectionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),45)}tsParseUnionTypeOrHigher(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),43)}tsIsStartOfFunctionType(){return this.match(47)?!0:this.match(10)&&this.tsLookAhead(this.tsIsUnambiguouslyStartOfFunctionType.bind(this))}tsSkipParameterStart(){if(Xt(this.state.type)||this.match(78))return this.next(),!0;if(this.match(5)){let{errors:t}=this.state,r=t.length;try{return this.parseObjectLike(8,!0),t.length===r}catch{return!1}}if(this.match(0)){this.next();let{errors:t}=this.state,r=t.length;try{return super.parseBindingList(3,93,1),t.length===r}catch{return!1}}return!1}tsIsUnambiguouslyStartOfFunctionType(){return this.next(),!!(this.match(11)||this.match(21)||this.tsSkipParameterStart()&&(this.match(14)||this.match(12)||this.match(17)||this.match(29)||this.match(11)&&(this.next(),this.match(19))))}tsParseTypeOrTypePredicateAnnotation(t){return this.tsInType(()=>{let r=this.startNode();this.expect(t);let n=this.startNode(),s=!!this.tsTryParse(this.tsParseTypePredicateAsserts.bind(this));if(s&&this.match(78)){let l=this.tsParseThisTypeOrThisTypePredicate();return l.type==="TSThisType"?(n.parameterName=l,n.asserts=!0,n.typeAnnotation=null,l=this.finishNode(n,"TSTypePredicate")):(this.resetStartLocationFromNode(l,n),l.asserts=!0),r.typeAnnotation=l,this.finishNode(r,"TSTypeAnnotation")}let i=this.tsIsIdentifier()&&this.tsTryParse(this.tsParseTypePredicatePrefix.bind(this));if(!i)return s?(n.parameterName=this.parseIdentifier(),n.asserts=s,n.typeAnnotation=null,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")):this.tsParseTypeAnnotation(!1,r);let o=this.tsParseTypeAnnotation(!1);return n.parameterName=i,n.typeAnnotation=o,n.asserts=s,r.typeAnnotation=this.finishNode(n,"TSTypePredicate"),this.finishNode(r,"TSTypeAnnotation")})}tsTryParseTypeOrTypePredicateAnnotation(){if(this.match(14))return this.tsParseTypeOrTypePredicateAnnotation(14)}tsTryParseTypeAnnotation(){if(this.match(14))return this.tsParseTypeAnnotation()}tsTryParseType(){return this.tsEatThenParseType(14)}tsParseTypePredicatePrefix(){let t=this.parseIdentifier();if(this.isContextual(116)&&!this.hasPrecedingLineBreak())return this.next(),t}tsParseTypePredicateAsserts(){if(this.state.type!==109)return!1;let t=this.state.containsEsc;return this.next(),!Xt(this.state.type)&&!this.match(78)?!1:(t&&this.raise(K.InvalidEscapedReservedWord,this.state.lastTokStartLoc,{reservedWord:"asserts"}),!0)}tsParseTypeAnnotation(t=!0,r=this.startNode()){return this.tsInType(()=>{t&&this.expect(14),r.typeAnnotation=this.tsParseType()}),this.finishNode(r,"TSTypeAnnotation")}tsParseType(){yx(this.state.inType);let t=this.tsParseNonConditionalType();if(this.state.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(81))return t;let r=this.startNodeAtNode(t);return r.checkType=t,r.extendsType=this.tsInDisallowConditionalTypesContext(()=>this.tsParseNonConditionalType()),this.expect(17),r.trueType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.expect(14),r.falseType=this.tsInAllowConditionalTypesContext(()=>this.tsParseType()),this.finishNode(r,"TSConditionalType")}isAbstractConstructorSignature(){return this.isContextual(124)&&this.isLookaheadContextual("new")}tsParseNonConditionalType(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(77)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()}tsParseTypeAssertion(){this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(We.ReservedTypeAssertion,this.state.startLoc);let t=this.startNode();return t.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?this.tsParseTypeReference():this.tsParseType())),this.expect(48),t.expression=this.parseMaybeUnary(),this.finishNode(t,"TSTypeAssertion")}tsParseHeritageClause(t){let r=this.state.startLoc,n=this.tsParseDelimitedList("HeritageClauseElement",()=>{{let s=super.parseExprSubscripts();D0(s)||this.raise(We.InvalidHeritageClauseType,s.loc.start,{token:t});let i=t==="extends"?"TSInterfaceHeritage":"TSClassImplements";if(s.type==="TSInstantiationExpression")return s.type=i,s;let o=this.startNodeAtNode(s);return o.expression=s,(this.match(47)||this.match(51))&&(o.typeArguments=this.tsParseTypeArgumentsInExpression()),this.finishNode(o,i)}});return n.length||this.raise(We.EmptyHeritageClauseType,r,{token:t}),n}tsParseInterfaceDeclaration(t,r={}){if(this.hasFollowingLineBreak())return null;this.expectContextual(129),r.declare&&(t.declare=!0),Xt(this.state.type)?(t.id=this.parseIdentifier(),this.checkIdentifier(t.id,130)):(t.id=null,this.raise(We.MissingInterfaceName,this.state.startLoc)),t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers),this.eat(81)&&(t.extends=this.tsParseHeritageClause("extends"));let n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),t.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(t,"TSInterfaceDeclaration")}tsParseTypeAliasDeclaration(t){return t.id=this.parseIdentifier(),this.checkIdentifier(t.id,2),t.typeAnnotation=this.tsInType(()=>{if(t.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers),this.expect(29),this.isContextual(114)&&this.lookaheadCharCode()!==46){let r=this.startNode();return this.next(),this.finishNode(r,"TSIntrinsicKeyword")}return this.tsParseType()}),this.semicolon(),this.finishNode(t,"TSTypeAliasDeclaration")}tsInTopLevelContext(t){if(this.curContext()!==lr.brace){let r=this.state.context;this.state.context=[r[0]];try{return t()}finally{this.state.context=r}}else return t()}tsInType(t){let r=this.state.inType;this.state.inType=!0;try{return t()}finally{this.state.inType=r}}tsInDisallowConditionalTypesContext(t){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!0;try{return t()}finally{this.state.inDisallowConditionalTypesContext=r}}tsInAllowConditionalTypesContext(t){let r=this.state.inDisallowConditionalTypesContext;this.state.inDisallowConditionalTypesContext=!1;try{return t()}finally{this.state.inDisallowConditionalTypesContext=r}}tsEatThenParseType(t){if(this.match(t))return this.tsNextThenParseType()}tsExpectThenParseType(t){return this.tsInType(()=>(this.expect(t),this.tsParseType()))}tsNextThenParseType(){return this.tsInType(()=>(this.next(),this.tsParseType()))}tsParseEnumMember(){let t=this.startNode();return t.id=this.match(134)?super.parseStringLiteral(this.state.value):this.parseIdentifier(!0),this.eat(29)&&(t.initializer=super.parseMaybeAssignAllowIn()),this.finishNode(t,"TSEnumMember")}tsParseEnumDeclaration(t,r={}){return r.const&&(t.const=!0),r.declare&&(t.declare=!0),this.expectContextual(126),t.id=this.parseIdentifier(),this.checkIdentifier(t.id,t.const?8971:8459),t.body=this.tsParseEnumBody(),this.finishNode(t,"TSEnumDeclaration")}tsParseEnumBody(){let t=this.startNode();return this.expect(5),t.members=this.tsParseDelimitedList("EnumMembers",this.tsParseEnumMember.bind(this)),this.expect(8),this.finishNode(t,"TSEnumBody")}tsParseModuleBlock(){let t=this.startNode();return this.scope.enter(0),this.expect(5),super.parseBlockOrModuleBlockBody(t.body=[],void 0,!0,8),this.scope.exit(),this.finishNode(t,"TSModuleBlock")}tsParseModuleOrNamespaceDeclaration(t,r=!1){return t.id=this.tsParseEntityName(1),t.id.type==="Identifier"&&this.checkIdentifier(t.id,1024),this.scope.enter(1024),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit(),this.finishNode(t,"TSModuleDeclaration")}tsParseAmbientExternalModuleDeclaration(t){return this.isContextual(112)?(t.kind="global",t.id=this.parseIdentifier()):this.match(134)?(t.kind="module",t.id=super.parseStringLiteral(this.state.value)):this.unexpected(),this.match(5)?(this.scope.enter(1024),this.prodParam.enter(0),t.body=this.tsParseModuleBlock(),this.prodParam.exit(),this.scope.exit()):this.semicolon(),this.finishNode(t,"TSModuleDeclaration")}tsParseImportEqualsDeclaration(t,r,n){t.id=r||this.parseIdentifier(),this.checkIdentifier(t.id,4096),this.expect(29);let s=this.tsParseModuleReference();return t.importKind==="type"&&s.type!=="TSExternalModuleReference"&&this.raise(We.ImportAliasHasImportType,s),t.moduleReference=s,this.semicolon(),this.finishNode(t,"TSImportEqualsDeclaration")}tsIsExternalModuleReference(){return this.isContextual(119)&&this.lookaheadCharCode()===40}tsParseModuleReference(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(0)}tsParseExternalModuleReference(){let t=this.startNode();return this.expectContextual(119),this.expect(10),this.match(134)||this.unexpected(),t.expression=super.parseExprAtom(),this.expect(11),this.sawUnambiguousESM=!0,this.finishNode(t,"TSExternalModuleReference")}tsLookAhead(t){let r=this.state.clone(),n=t();return this.state=r,n}tsTryParseAndCatch(t){let r=this.tryParse(n=>t()||n());if(!(r.aborted||!r.node))return r.error&&(this.state=r.failState),r.node}tsTryParse(t){let r=this.state.clone(),n=t();if(n!==void 0&&n!==!1)return n;this.state=r}tsTryParseDeclare(t){if(this.isLineTerminator())return;let r=this.state.type;return this.tsInAmbientContext(()=>{switch(r){case 68:return t.declare=!0,super.parseFunctionStatement(t,!1,!1);case 80:return t.declare=!0,this.parseClass(t,!0,!1);case 126:return this.tsParseEnumDeclaration(t,{declare:!0});case 112:return this.tsParseAmbientExternalModuleDeclaration(t);case 100:if(this.state.containsEsc)return;case 75:case 74:return!this.match(75)||!this.isLookaheadContextual("enum")?(t.declare=!0,this.parseVarStatement(t,this.state.value,!0)):(this.expect(75),this.tsParseEnumDeclaration(t,{const:!0,declare:!0}));case 107:if(this.isUsing())return this.raise(We.InvalidModifierOnUsingDeclaration,this.state.startLoc,"declare"),t.declare=!0,this.parseVarStatement(t,"using",!0);break;case 96:if(this.isAwaitUsing())return this.raise(We.InvalidModifierOnAwaitUsingDeclaration,this.state.startLoc,"declare"),t.declare=!0,this.next(),this.parseVarStatement(t,"await using",!0);break;case 129:{let n=this.tsParseInterfaceDeclaration(t,{declare:!0});if(n)return n}default:if(Xt(r))return this.tsParseDeclaration(t,this.state.type,!0,null)}})}tsTryParseExportDeclaration(){return this.tsParseDeclaration(this.startNode(),this.state.type,!0,null)}tsParseDeclaration(t,r,n,s){switch(r){case 124:if(this.tsCheckLineTerminator(n)&&(this.match(80)||Xt(this.state.type)))return this.tsParseAbstractDeclaration(t,s);break;case 127:if(this.tsCheckLineTerminator(n)){if(this.match(134))return this.tsParseAmbientExternalModuleDeclaration(t);if(Xt(this.state.type))return t.kind="module",this.tsParseModuleOrNamespaceDeclaration(t)}break;case 128:if(this.tsCheckLineTerminator(n)&&Xt(this.state.type))return t.kind="namespace",this.tsParseModuleOrNamespaceDeclaration(t);break;case 130:if(this.tsCheckLineTerminator(n)&&Xt(this.state.type))return this.tsParseTypeAliasDeclaration(t);break}}tsCheckLineTerminator(t){return t?this.hasFollowingLineBreak()?!1:(this.next(),!0):!this.isLineTerminator()}tsTryParseGenericAsyncArrowFunction(t){if(!this.match(47))return;let r=this.state.maybeInArrowParameters;this.state.maybeInArrowParameters=!0;let n=this.tsTryParseAndCatch(()=>{let s=this.startNodeAt(t);return s.typeParameters=this.tsParseTypeParameters(this.tsParseConstModifier),super.parseFunctionParams(s),s.returnType=this.tsTryParseTypeOrTypePredicateAnnotation(),this.expect(19),s});if(this.state.maybeInArrowParameters=r,!!n)return super.parseArrowExpression(n,null,!0)}tsParseTypeArgumentsInExpression(){if(this.reScan_lt()===47)return this.tsParseTypeArguments()}tsParseTypeArguments(){let t=this.startNode();return t.params=this.tsInType(()=>this.tsInTopLevelContext(()=>(this.expect(47),this.tsParseDelimitedList("TypeParametersOrArguments",this.tsParseType.bind(this))))),t.params.length===0?this.raise(We.EmptyTypeArguments,t):!this.state.inType&&this.curContext()===lr.brace&&this.reScan_lt_gt(),this.expect(48),this.finishNode(t,"TSTypeParameterInstantiation")}tsIsDeclarationStart(){return ok(this.state.type)}isExportDefaultSpecifier(){return this.tsIsDeclarationStart()?!1:super.isExportDefaultSpecifier()}parseBindingElement(t,r){let n=r.length?r[0].loc.start:this.state.startLoc,s={};this.tsParseModifiers({allowedModifiers:["public","private","protected","override","readonly"]},s);let i=s.accessibility,o=s.override,l=s.readonly;!(t&4)&&(i||l||o)&&this.raise(We.UnexpectedParameterModifier,n);let u=this.parseMaybeDefault();t&2&&this.parseFunctionParamType(u);let f=this.parseMaybeDefault(u.loc.start,u);if(i||l||o){let p=this.startNodeAt(n);return r.length&&(p.decorators=r),i&&(p.accessibility=i),l&&(p.readonly=l),o&&(p.override=o),f.type!=="Identifier"&&f.type!=="AssignmentPattern"&&this.raise(We.UnsupportedParameterPropertyKind,p),p.parameter=f,this.finishNode(p,"TSParameterProperty")}return r.length&&(u.decorators=r),f}isSimpleParameter(t){return t.type==="TSParameterProperty"&&super.isSimpleParameter(t.parameter)||super.isSimpleParameter(t)}tsDisallowOptionalPattern(t){for(let r of t.params)r.type!=="Identifier"&&r.optional&&!this.state.isAmbientContext&&this.raise(We.PatternIsOptional,r)}setArrowFunctionParameters(t,r,n){super.setArrowFunctionParameters(t,r,n),this.tsDisallowOptionalPattern(t)}parseFunctionBodyAndFinish(t,r,n=!1){this.match(14)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(14));let s=r==="FunctionDeclaration"?"TSDeclareFunction":r==="ClassMethod"||r==="ClassPrivateMethod"?"TSDeclareMethod":void 0;return s&&!this.match(5)&&this.isLineTerminator()?this.finishNode(t,s):s==="TSDeclareFunction"&&this.state.isAmbientContext&&(this.raise(We.DeclareFunctionHasImplementation,t),t.declare)?super.parseFunctionBodyAndFinish(t,s,n):(this.tsDisallowOptionalPattern(t),super.parseFunctionBodyAndFinish(t,r,n))}registerFunctionStatementId(t){!t.body&&t.id?this.checkIdentifier(t.id,1024):super.registerFunctionStatementId(t)}tsCheckForInvalidTypeCasts(t){t.forEach(r=>{r?.type==="TSTypeCastExpression"&&this.raise(We.UnexpectedTypeAnnotation,r.typeAnnotation)})}toReferencedList(t,r){return this.tsCheckForInvalidTypeCasts(t),t}parseArrayLike(t,r,n){let s=super.parseArrayLike(t,r,n);return s.type==="ArrayExpression"&&this.tsCheckForInvalidTypeCasts(s.elements),s}parseSubscript(t,r,n,s){if(!this.hasPrecedingLineBreak()&&this.match(35)){this.state.canStartJSXElement=!1,this.next();let o=this.startNodeAt(r);return o.expression=t,this.finishNode(o,"TSNonNullExpression")}let i=!1;if(this.match(18)&&this.lookaheadCharCode()===60){if(n)return s.stop=!0,t;s.optionalChainMember=i=!0,this.next()}if(this.match(47)||this.match(51)){let o,l=this.tsTryParseAndCatch(()=>{if(!n&&this.atPossibleAsyncArrow(t)){let d=this.tsTryParseGenericAsyncArrowFunction(r);if(d)return s.stop=!0,d}let u=this.tsParseTypeArgumentsInExpression();if(!u)return;if(i&&!this.match(10)){o=this.state.curPosition();return}if(h0(this.state.type)){let d=super.parseTaggedTemplateExpression(t,r,s);return d.typeArguments=u,d}if(!n&&this.eat(10)){let d=this.startNodeAt(r);return d.callee=t,d.arguments=this.parseCallExpressionArguments(),this.tsCheckForInvalidTypeCasts(d.arguments),d.typeArguments=u,s.optionalChainMember&&(d.optional=i),this.finishCallExpression(d,s.optionalChainMember)}let f=this.state.type;if(f===48||f===52||f!==10&&Ac(f)&&!this.hasPrecedingLineBreak())return;let p=this.startNodeAt(r);return p.expression=t,p.typeArguments=u,this.finishNode(p,"TSInstantiationExpression")});if(o&&this.unexpected(o,10),l)return l.type==="TSInstantiationExpression"&&((this.match(16)||this.match(18)&&this.lookaheadCharCode()!==40)&&this.raise(We.InvalidPropertyAccessAfterInstantiationExpression,this.state.startLoc),!this.match(16)&&!this.match(18)&&(l.expression=super.stopParseSubscript(t,s))),l}return super.parseSubscript(t,r,n,s)}parseNewCallee(t){super.parseNewCallee(t);let{callee:r}=t;r.type==="TSInstantiationExpression"&&!r.extra?.parenthesized&&(t.typeArguments=r.typeArguments,t.callee=r.expression)}parseExprOp(t,r,n){let s;if(vf(58)>n&&!this.hasPrecedingLineBreak()&&(this.isContextual(93)||(s=this.isContextual(120)))){let i=this.startNodeAt(r);return i.expression=t,i.typeAnnotation=this.tsInType(()=>(this.next(),this.match(75)?(s&&this.raise(K.UnexpectedKeyword,this.state.startLoc,{keyword:"const"}),this.tsParseTypeReference()):this.tsParseType())),this.finishNode(i,s?"TSSatisfiesExpression":"TSAsExpression"),this.reScan_lt_gt(),this.parseExprOp(i,r,n)}return super.parseExprOp(t,r,n)}checkReservedWord(t,r,n,s){this.state.isAmbientContext||super.checkReservedWord(t,r,n,s)}checkImportReflection(t){super.checkImportReflection(t),t.module&&t.importKind!=="value"&&this.raise(We.ImportReflectionHasImportType,t.specifiers[0].loc.start)}checkDuplicateExports(){}isPotentialImportPhase(t){if(super.isPotentialImportPhase(t))return!0;if(this.isContextual(130)){let r=this.lookaheadCharCode();return t?r===123||r===42:r!==61}return!t&&this.isContextual(87)}applyImportPhase(t,r,n,s){super.applyImportPhase(t,r,n,s),r?t.exportKind=n==="type"?"type":"value":t.importKind=n==="type"||n==="typeof"?n:"value"}parseImport(t){if(this.match(134))return t.importKind="value",super.parseImport(t);let r;if(Xt(this.state.type)&&this.lookaheadCharCode()===61)return t.importKind="value",this.tsParseImportEqualsDeclaration(t);if(this.isContextual(130)){let n=this.parseMaybeImportPhase(t,!1);if(this.lookaheadCharCode()===61)return this.tsParseImportEqualsDeclaration(t,n);r=super.parseImportSpecifiersAndAfter(t,n)}else r=super.parseImport(t);return r.importKind==="type"&&r.specifiers.length>1&&r.specifiers[0].type==="ImportDefaultSpecifier"&&this.raise(We.TypeImportCannotSpecifyDefaultAndNamed,r),r}parseExport(t,r){if(this.match(83)){let n=this.startNode();this.next();let s=null;this.isContextual(130)&&this.isPotentialImportPhase(!1)?s=this.parseMaybeImportPhase(n,!1):n.importKind="value";let i=this.tsParseImportEqualsDeclaration(n,s,!0);return t.attributes=[],t.declaration=i,t.exportKind="value",t.source=null,t.specifiers=[],this.finishNode(t,"ExportNamedDeclaration")}else if(this.eat(29)){let n=t;return n.expression=super.parseExpression(),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(n,"TSExportAssignment")}else if(this.eatContextual(93)){let n=t;return this.expectContextual(128),n.id=this.parseIdentifier(),this.semicolon(),this.finishNode(n,"TSNamespaceExportDeclaration")}else return super.parseExport(t,r)}isAbstractClass(){return this.isContextual(124)&&this.isLookaheadContextual("class")}parseExportDefaultExpression(){if(this.isAbstractClass()){let t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0,!0)}if(this.match(129)){let t=this.tsParseInterfaceDeclaration(this.startNode());if(t)return t}return super.parseExportDefaultExpression()}parseVarStatement(t,r,n=!1){let{isAmbientContext:s}=this.state,i=super.parseVarStatement(t,r,n||s);if(!s)return i;if(!t.declare&&(r==="using"||r==="await using"))return this.raiseOverwrite(We.UsingDeclarationInAmbientContext,t,r),i;for(let{id:o,init:l}of i.declarations)l&&(r==="var"||r==="let"||o.typeAnnotation?this.raise(We.InitializerNotAllowedInAmbientContext,l):n7(l,this.hasPlugin("estree"))||this.raise(We.ConstInitializerMustBeStringOrNumericLiteralOrLiteralEnumReference,l));return i}parseStatementContent(t,r){if(!this.state.containsEsc)switch(this.state.type){case 75:{if(this.isLookaheadContextual("enum")){let n=this.startNode();return this.expect(75),this.tsParseEnumDeclaration(n,{const:!0})}break}case 124:case 125:{if(this.nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine()){let n=this.state.type,s=this.startNode();this.next();let i=n===125?this.tsTryParseDeclare(s):this.tsParseAbstractDeclaration(s,r);return i?(n===125&&(i.declare=!0),i):(s.expression=this.createIdentifier(this.startNodeAt(s.loc.start),n===125?"declare":"abstract"),this.semicolon(!1),this.finishNode(s,"ExpressionStatement"))}break}case 126:return this.tsParseEnumDeclaration(this.startNode());case 112:{if(this.lookaheadCharCode()===123){let n=this.startNode();return this.tsParseAmbientExternalModuleDeclaration(n)}break}case 129:{let n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n;break}case 127:{if(this.nextTokenIsIdentifierOrStringLiteralOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,127,!1,r)}break}case 128:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseDeclaration(n,128,!1,r)}break}case 130:{if(this.nextTokenIsIdentifierOnSameLine()){let n=this.startNode();return this.next(),this.tsParseTypeAliasDeclaration(n)}break}}return super.parseStatementContent(t,r)}parseAccessModifier(){return this.tsParseModifier(["public","protected","private"])}tsHasSomeModifiers(t,r){return r.some(n=>gx(n)?t.accessibility===n:!!t[n])}tsIsStartOfStaticBlocks(){return this.isContextual(106)&&this.lookaheadCharCode()===123}parseClassMember(t,r,n){let s=["declare","private","public","protected","override","abstract","readonly","static"];this.tsParseModifiers({allowedModifiers:s,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:We.InvalidModifierOnTypeParameterPositions},r);let i=()=>{this.tsIsStartOfStaticBlocks()?(this.next(),this.next(),this.tsHasSomeModifiers(r,s)&&this.raise(We.StaticBlockCannotHaveModifier,this.state.curPosition()),super.parseClassStaticBlock(t,r)):this.parseClassMemberWithIsStatic(t,r,n,!!r.static)};r.declare?this.tsInAmbientContext(i):i()}parseClassMemberWithIsStatic(t,r,n,s){let i=this.tsTryParseIndexSignature(r);if(i){t.body.push(i),r.abstract&&this.raise(We.IndexSignatureHasAbstract,r),r.accessibility&&this.raise(We.IndexSignatureHasAccessibility,r,{modifier:r.accessibility}),r.declare&&this.raise(We.IndexSignatureHasDeclare,r),r.override&&this.raise(We.IndexSignatureHasOverride,r);return}!this.state.inAbstractClass&&r.abstract&&this.raise(We.NonAbstractClassHasAbstractMethod,r),r.override&&(n.hadSuperClass||this.raise(We.OverrideNotInSubClass,r)),super.parseClassMemberWithIsStatic(t,r,n,s)}parsePostMemberNameModifiers(t){this.eat(17)&&(t.optional=!0),t.readonly&&this.match(10)&&this.raise(We.ClassMethodHasReadonly,t),t.declare&&this.match(10)&&this.raise(We.ClassMethodHasDeclare,t)}shouldParseExportDeclaration(){return this.tsIsDeclarationStart()?!0:super.shouldParseExportDeclaration()}parseConditional(t,r,n){if(!this.match(17))return t;if(this.state.maybeInArrowParameters){let s=this.lookaheadCharCode();if(s===44||s===61||s===58||s===41)return this.setOptionalParametersError(n),t}return super.parseConditional(t,r,n)}parseParenItem(t,r){let n=super.parseParenItem(t,r);if(this.eat(17)&&(n.optional=!0,this.resetEndLocation(t)),this.match(14)){let s=this.startNodeAt(r);return s.expression=t,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return t}parseExportDeclaration(t){if(!this.state.isAmbientContext&&this.isContextual(125))return this.tsInAmbientContext(()=>this.parseExportDeclaration(t));let r=this.state.startLoc,n=this.eatContextual(125);if(n&&(this.isContextual(125)||!this.shouldParseExportDeclaration()))throw this.raise(We.ExpectedAmbientAfterExportDeclare,this.state.startLoc);let s=Xt(this.state.type)&&this.tsTryParseExportDeclaration()||super.parseExportDeclaration(t);return s?((s.type==="TSInterfaceDeclaration"||s.type==="TSTypeAliasDeclaration"||n)&&(t.exportKind="type"),n&&s.type!=="TSImportEqualsDeclaration"&&(this.resetStartLocation(s,r),s.declare=!0),s):null}parseClassId(t,r,n,s){if((!r||n)&&this.isContextual(113))return;super.parseClassId(t,r,n,t.declare?1024:8331);let i=this.tsTryParseTypeParameters(this.tsParseInOutConstModifiers);i&&(t.typeParameters=i)}parseClassPropertyAnnotation(t){t.optional||(this.eat(35)?t.definite=!0:this.eat(17)&&(t.optional=!0));let r=this.tsTryParseTypeAnnotation();r&&(t.typeAnnotation=r)}parseClassProperty(t){if(this.parseClassPropertyAnnotation(t),this.state.isAmbientContext&&!(t.readonly&&!t.typeAnnotation)&&this.match(29)&&this.raise(We.DeclareClassFieldHasInitializer,this.state.startLoc),t.abstract&&this.match(29)){let{key:r}=t;this.raise(We.AbstractPropertyHasInitializer,this.state.startLoc,{propertyName:r.type==="Identifier"&&!t.computed?r.name:`[${this.input.slice(this.offsetToSourcePos(r.start),this.offsetToSourcePos(r.end))}]`})}return super.parseClassProperty(t)}parseClassPrivateProperty(t){return t.abstract&&this.raise(We.PrivateElementHasAbstract,t),t.accessibility&&this.raise(We.PrivateElementHasAccessibility,t,{modifier:t.accessibility}),this.parseClassPropertyAnnotation(t),super.parseClassPrivateProperty(t)}parseClassAccessorProperty(t){return this.parseClassPropertyAnnotation(t),t.optional&&this.raise(We.AccessorCannotBeOptional,t),super.parseClassAccessorProperty(t)}pushClassMethod(t,r,n,s,i,o){let l=this.tsTryParseTypeParameters(this.tsParseConstModifier);l&&i&&this.raise(We.ConstructorHasTypeParameters,l);let{declare:u=!1,kind:f}=r;u&&(f==="get"||f==="set")&&this.raise(We.DeclareAccessor,r,{kind:f}),l&&(r.typeParameters=l),super.pushClassMethod(t,r,n,s,i,o)}pushClassPrivateMethod(t,r,n,s){let i=this.tsTryParseTypeParameters(this.tsParseConstModifier);i&&(r.typeParameters=i),super.pushClassPrivateMethod(t,r,n,s)}declareClassPrivateMethodInScope(t,r){t.type!=="TSDeclareMethod"&&(t.type==="MethodDefinition"&&t.value.body==null||super.declareClassPrivateMethodInScope(t,r))}parseClassSuper(t){super.parseClassSuper(t),t.superClass&&(this.match(47)||this.match(51))&&(t.superTypeArguments=this.tsParseTypeArgumentsInExpression()),this.eatContextual(113)&&(t.implements=this.tsParseHeritageClause("implements"))}parseObjPropValue(t,r,n,s,i,o,l){let u=this.tsTryParseTypeParameters(this.tsParseConstModifier);return u&&(t.typeParameters=u),super.parseObjPropValue(t,r,n,s,i,o,l)}parseFunctionParams(t,r){let n=this.tsTryParseTypeParameters(this.tsParseConstModifier);n&&(t.typeParameters=n),super.parseFunctionParams(t,r)}parseVarId(t,r){super.parseVarId(t,r),t.id.type==="Identifier"&&!this.hasPrecedingLineBreak()&&this.eat(35)&&(t.definite=!0);let n=this.tsTryParseTypeAnnotation();n&&(t.id.typeAnnotation=n,this.resetEndLocation(t.id))}parseAsyncArrowFromCallExpression(t,r){return this.match(14)&&(t.returnType=this.tsParseTypeAnnotation()),super.parseAsyncArrowFromCallExpression(t,r)}parseMaybeAssign(t,r){let n,s,i;if(this.hasPlugin("jsx")&&(this.match(143)||this.match(47))){if(n=this.state.clone(),s=this.tryParse(()=>super.parseMaybeAssign(t,r),n),!s.error)return s.node;let{context:u}=this.state,f=u[u.length-1];(f===lr.j_oTag||f===lr.j_expr)&&u.pop()}if(!s?.error&&!this.match(47))return super.parseMaybeAssign(t,r);(!n||n===this.state)&&(n=this.state.clone());let o,l=this.tryParse(u=>{o=this.tsParseTypeParameters(this.tsParseConstModifier);let f=super.parseMaybeAssign(t,r);if((f.type!=="ArrowFunctionExpression"||f.extra?.parenthesized)&&u(),o?.params.length!==0&&this.resetStartLocationFromNode(f,o),f.typeParameters=o,this.hasPlugin("jsx")&&f.typeParameters.params.length===1&&!f.typeParameters.extra?.trailingComma){let p=f.typeParameters.params[0];p.constraint||this.raise(We.SingleTypeParameterWithoutTrailingComma,ms(p.loc.end,1),{typeParameterName:p.name.name})}return f},n);if(!l.error&&!l.aborted)return o&&this.reportReservedArrowTypeParam(o),l.node;if(!s&&(yx(!this.hasPlugin("jsx")),i=this.tryParse(()=>super.parseMaybeAssign(t,r),n),!i.error))return i.node;if(s?.node)return this.state=s.failState,s.node;if(l.node)return this.state=l.failState,o&&this.reportReservedArrowTypeParam(o),l.node;if(i?.node)return this.state=i.failState,i.node;throw s?.error||l.error||i?.error}reportReservedArrowTypeParam(t){t.params.length===1&&!t.params[0].constraint&&!t.extra?.trailingComma&&this.getPluginOption("typescript","disallowAmbiguousJSXLike")&&this.raise(We.ReservedArrowTypeParam,t)}parseMaybeUnary(t,r){return!this.hasPlugin("jsx")&&this.match(47)?this.tsParseTypeAssertion():super.parseMaybeUnary(t,r)}parseArrow(t){if(this.match(14)){let r=this.tryParse(n=>{let s=this.tsParseTypeOrTypePredicateAnnotation(14);return(this.canInsertSemicolon()||!this.match(19))&&n(),s});if(r.aborted)return;r.thrown||(r.error&&(this.state=r.failState),t.returnType=r.node)}return super.parseArrow(t)}parseFunctionParamType(t){this.eat(17)&&(t.optional=!0);let r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r),this.resetEndLocation(t),t}isAssignable(t,r){switch(t.type){case"TSTypeCastExpression":return this.isAssignable(t.expression,r);case"TSParameterProperty":return!0;default:return super.isAssignable(t,r)}}toAssignable(t,r=!1){switch(t.type){case"ParenthesizedExpression":this.toAssignableParenthesizedExpression(t,r);break;case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":r?this.expressionScope.recordArrowParameterBindingError(We.UnexpectedTypeCastInParameter,t):this.raise(We.UnexpectedTypeCastInParameter,t),this.toAssignable(t.expression,r);break;case"AssignmentExpression":!r&&t.left.type==="TSTypeCastExpression"&&(t.left=this.typeCastToParameter(t.left));default:super.toAssignable(t,r)}}toAssignableParenthesizedExpression(t,r){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":this.toAssignable(t.expression,r);break;default:super.toAssignable(t,r)}}checkToRestConversion(t,r){switch(t.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":this.checkToRestConversion(t.expression,!1);break;default:super.checkToRestConversion(t,r)}}isValidLVal(t,r,n,s){switch(t){case"TSTypeCastExpression":return!0;case"TSParameterProperty":return"parameter";case"TSNonNullExpression":return"expression";case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":return(s!==64||!n)&&["expression",!0];default:return super.isValidLVal(t,r,n,s)}}parseBindingAtom(){return this.state.type===78?this.parseIdentifier(!0):super.parseBindingAtom()}parseMaybeDecoratorArguments(t,r){if(this.match(47)||this.match(51)){let n=this.tsParseTypeArgumentsInExpression();if(this.match(10)){let s=super.parseMaybeDecoratorArguments(t,r);return s.typeArguments=n,s}this.unexpected(null,10)}return super.parseMaybeDecoratorArguments(t,r)}checkCommaAfterRest(t){return this.state.isAmbientContext&&this.match(12)&&this.lookaheadCharCode()===t?(this.next(),!1):super.checkCommaAfterRest(t)}isClassMethod(){return this.match(47)||super.isClassMethod()}isClassProperty(){return this.match(35)||this.match(14)||super.isClassProperty()}parseMaybeDefault(t,r){let n=super.parseMaybeDefault(t,r);return n.type==="AssignmentPattern"&&n.typeAnnotation&&n.right.start<n.typeAnnotation.start&&this.raise(We.TypeAnnotationAfterAssign,n.typeAnnotation),n}getTokenFromCode(t){if(this.state.inType){if(t===62){this.finishOp(48,1);return}if(t===60){this.finishOp(47,1);return}}super.getTokenFromCode(t)}reScan_lt_gt(){let{type:t}=this.state;t===47?(this.state.pos-=1,this.readToken_lt()):t===48&&(this.state.pos-=1,this.readToken_gt())}reScan_lt(){let{type:t}=this.state;return t===51?(this.state.pos-=2,this.finishOp(47,1),47):t}toAssignableListItem(t,r,n){let s=t[r];s.type==="TSTypeCastExpression"&&(t[r]=this.typeCastToParameter(s)),super.toAssignableListItem(t,r,n)}typeCastToParameter(t){return t.expression.typeAnnotation=t.typeAnnotation,this.resetEndLocation(t.expression,t.typeAnnotation.loc.end),t.expression}shouldParseArrow(t){return this.match(14)?t.every(r=>this.isAssignable(r,!0)):super.shouldParseArrow(t)}shouldParseAsyncArrow(){return this.match(14)||super.shouldParseAsyncArrow()}canHaveLeadingDecorator(){return super.canHaveLeadingDecorator()||this.isAbstractClass()}jsxParseOpeningElementAfterName(t){if(this.match(47)||this.match(51)){let r=this.tsTryParseAndCatch(()=>this.tsParseTypeArgumentsInExpression());r&&(t.typeArguments=r)}return super.jsxParseOpeningElementAfterName(t)}getGetterSetterExpectedParamCount(t){let r=super.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t)[0];return n&&this.isThisParam(n)?r+1:r}parseCatchClauseParam(){let t=super.parseCatchClauseParam(),r=this.tsTryParseTypeAnnotation();return r&&(t.typeAnnotation=r,this.resetEndLocation(t)),t}tsInAmbientContext(t){let{isAmbientContext:r,strict:n}=this.state;this.state.isAmbientContext=!0,this.state.strict=!1;try{return t()}finally{this.state.isAmbientContext=r,this.state.strict=n}}parseClass(t,r,n){let s=this.state.inAbstractClass;this.state.inAbstractClass=!!t.abstract;try{return super.parseClass(t,r,n)}finally{this.state.inAbstractClass=s}}tsParseAbstractDeclaration(t,r){if(this.match(80))return t.abstract=!0,this.maybeTakeDecorators(r,this.parseClass(t,!0,!1));if(this.isContextual(129))return this.hasFollowingLineBreak()?null:(t.abstract=!0,this.raise(We.NonClassMethodPropertyHasAbstractModifier,t),this.tsParseInterfaceDeclaration(t));throw this.unexpected(null,80)}parseMethod(t,r,n,s,i,o,l){let u=super.parseMethod(t,r,n,s,i,o,l);if((u.abstract||u.type==="TSAbstractMethodDefinition")&&(this.hasPlugin("estree")?u.value:u).body){let{key:f}=u;this.raise(We.AbstractMethodHasImplementation,u,{methodName:f.type==="Identifier"&&!u.computed?f.name:`[${this.input.slice(this.offsetToSourcePos(f.start),this.offsetToSourcePos(f.end))}]`})}return u}tsParseTypeParameterName(){return this.parseIdentifier()}shouldParseAsAmbientContext(){return!!this.getPluginOption("typescript","dts")}parse(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.parse()}getExpression(){return this.shouldParseAsAmbientContext()&&(this.state.isAmbientContext=!0),super.getExpression()}parseExportSpecifier(t,r,n,s){return!r&&s?(this.parseTypeOnlyImportExportSpecifier(t,!1,n),this.finishNode(t,"ExportSpecifier")):(t.exportKind="value",super.parseExportSpecifier(t,r,n,s))}parseImportSpecifier(t,r,n,s,i){return!r&&s?(this.parseTypeOnlyImportExportSpecifier(t,!0,n),this.finishNode(t,"ImportSpecifier")):(t.importKind="value",super.parseImportSpecifier(t,r,n,s,n?4098:4096))}parseTypeOnlyImportExportSpecifier(t,r,n){let s=r?"imported":"local",i=r?"local":"exported",o=t[s],l,u=!1,f=!0,p=o.loc.start;if(this.isContextual(93)){let y=this.parseIdentifier();if(this.isContextual(93)){let m=this.parseIdentifier();ks(this.state.type)?(u=!0,o=y,l=r?this.parseIdentifier():this.parseModuleExportName(),f=!1):(l=m,f=!1)}else ks(this.state.type)?(f=!1,l=r?this.parseIdentifier():this.parseModuleExportName()):(u=!0,o=y)}else ks(this.state.type)&&(u=!0,r?(o=this.parseIdentifier(!0),this.isContextual(93)||this.checkReservedWord(o.name,o.loc.start,!0,!0)):o=this.parseModuleExportName());u&&n&&this.raise(r?We.TypeModifierIsUsedInTypeImports:We.TypeModifierIsUsedInTypeExports,p),t[s]=o,t[i]=l;let d=r?"importKind":"exportKind";t[d]=u?"type":"value",f&&this.eatContextual(93)&&(t[i]=r?this.parseIdentifier():this.parseModuleExportName()),t[i]||(t[i]=this.cloneIdentifier(t[s])),r&&this.checkIdentifier(t[i],u?4098:4096)}fillOptionalPropertiesForTSESLint(t){switch(t.type){case"ExpressionStatement":t.directive??(t.directive=void 0);return;case"RestElement":t.value=void 0;case"Identifier":case"ArrayPattern":case"AssignmentPattern":case"ObjectPattern":t.decorators??(t.decorators=[]),t.optional??(t.optional=!1),t.typeAnnotation??(t.typeAnnotation=void 0);return;case"TSParameterProperty":t.accessibility??(t.accessibility=void 0),t.decorators??(t.decorators=[]),t.override??(t.override=!1),t.readonly??(t.readonly=!1),t.static??(t.static=!1);return;case"TSEmptyBodyFunctionExpression":t.body=null;case"TSDeclareFunction":case"FunctionDeclaration":case"FunctionExpression":case"ClassMethod":case"ClassPrivateMethod":t.declare??(t.declare=!1),t.returnType??(t.returnType=void 0),t.typeParameters??(t.typeParameters=void 0);return;case"Property":t.optional??(t.optional=!1);return;case"TSMethodSignature":case"TSPropertySignature":t.optional??(t.optional=!1);case"TSIndexSignature":t.accessibility??(t.accessibility=void 0),t.readonly??(t.readonly=!1),t.static??(t.static=!1);return;case"TSAbstractPropertyDefinition":case"PropertyDefinition":case"TSAbstractAccessorProperty":case"AccessorProperty":t.declare??(t.declare=!1),t.definite??(t.definite=!1),t.readonly??(t.readonly=!1),t.typeAnnotation??(t.typeAnnotation=void 0);case"TSAbstractMethodDefinition":case"MethodDefinition":t.accessibility??(t.accessibility=void 0),t.decorators??(t.decorators=[]),t.override??(t.override=!1),t.optional??(t.optional=!1);return;case"ClassExpression":t.id??(t.id=null);case"ClassDeclaration":t.abstract??(t.abstract=!1),t.declare??(t.declare=!1),t.decorators??(t.decorators=[]),t.implements??(t.implements=[]),t.superTypeArguments??(t.superTypeArguments=void 0),t.typeParameters??(t.typeParameters=void 0);return;case"TSTypeAliasDeclaration":case"VariableDeclaration":t.declare??(t.declare=!1);return;case"VariableDeclarator":t.definite??(t.definite=!1);return;case"TSEnumDeclaration":t.const??(t.const=!1),t.declare??(t.declare=!1);return;case"TSEnumMember":t.computed??(t.computed=!1);return;case"TSImportType":t.qualifier??(t.qualifier=null),t.options??(t.options=null),t.typeArguments??(t.typeArguments=null);return;case"TSInterfaceDeclaration":t.declare??(t.declare=!1),t.extends??(t.extends=[]);return;case"TSMappedType":t.optional??(t.optional=!1),t.readonly??(t.readonly=void 0);return;case"TSModuleDeclaration":t.declare??(t.declare=!1),t.global??(t.global=t.kind==="global");return;case"TSTypeParameter":t.const??(t.const=!1),t.in??(t.in=!1),t.out??(t.out=!1);return}}chStartsBindingIdentifierAndNotRelationalOperator(t,r){if(Ys(t)){if(Ay.lastIndex=r,Ay.test(this.input)){let n=this.codePointAtPos(Ay.lastIndex);if(!Co(n)&&n!==92)return!1}return!0}else return t===92}nextTokenIsIdentifierAndNotTSRelationalOperatorOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifierAndNotRelationalOperator(r,t)}nextTokenIsIdentifierOrStringLiteralOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)||r===34||r===39}};function r7(e){if(e.type!=="MemberExpression")return!1;let{computed:t,property:r}=e;return t&&r.type!=="StringLiteral"&&(r.type!=="TemplateLiteral"||r.expressions.length>0)?!1:UE(e.object)}function n7(e,t){let{type:r}=e;if(e.extra?.parenthesized)return!1;if(t){if(r==="Literal"){let{value:n}=e;if(typeof n=="string"||typeof n=="boolean")return!0}}else if(r==="StringLiteral"||r==="BooleanLiteral")return!0;return!!(RE(e,t)||s7(e,t)||r==="TemplateLiteral"&&e.expressions.length===0||r7(e))}function RE(e,t){return t?e.type==="Literal"&&(typeof e.value=="number"||"bigint"in e):e.type==="NumericLiteral"||e.type==="BigIntLiteral"}function s7(e,t){if(e.type==="UnaryExpression"){let{operator:r,argument:n}=e;if(r==="-"&&RE(n,t))return!0}return!1}function UE(e){return e.type==="Identifier"?!0:e.type!=="MemberExpression"||e.computed?!1:UE(e.object)}var Dx=Qs`placeholders`({ClassNameIsRequired:"A class name is required.",UnexpectedSpace:"Unexpected space in placeholder."}),i7=e=>class extends e{parsePlaceholder(t){if(this.match(133)){let r=this.startNode();return this.next(),this.assertNoSpace(),r.name=super.parseIdentifier(!0),this.assertNoSpace(),this.expect(133),this.finishPlaceholder(r,t)}}finishPlaceholder(t,r){let n=t;return(!n.expectedNode||!n.type)&&(n=this.finishNode(n,"Placeholder")),n.expectedNode=r,n}getTokenFromCode(t){t===37&&this.input.charCodeAt(this.state.pos+1)===37?this.finishOp(133,2):super.getTokenFromCode(t)}parseExprAtom(t){return this.parsePlaceholder("Expression")||super.parseExprAtom(t)}parseIdentifier(t){return this.parsePlaceholder("Identifier")||super.parseIdentifier(t)}checkReservedWord(t,r,n,s){t!==void 0&&super.checkReservedWord(t,r,n,s)}cloneIdentifier(t){let r=super.cloneIdentifier(t);return r.type==="Placeholder"&&(r.expectedNode=t.expectedNode),r}cloneStringLiteral(t){return t.type==="Placeholder"?this.cloneIdentifier(t):super.cloneStringLiteral(t)}parseBindingAtom(){return this.parsePlaceholder("Pattern")||super.parseBindingAtom()}isValidLVal(t,r,n,s){return t==="Placeholder"||super.isValidLVal(t,r,n,s)}toAssignable(t,r){t&&t.type==="Placeholder"&&t.expectedNode==="Expression"?t.expectedNode="Pattern":super.toAssignable(t,r)}chStartsBindingIdentifier(t,r){if(super.chStartsBindingIdentifier(t,r))return!0;let n=this.nextTokenStart();return this.input.charCodeAt(n)===37&&this.input.charCodeAt(n+1)===37}verifyBreakContinue(t,r){t.label&&t.label.type==="Placeholder"||super.verifyBreakContinue(t,r)}parseExpressionStatement(t,r){if(r.type!=="Placeholder"||r.extra?.parenthesized)return super.parseExpressionStatement(t,r);if(this.match(14)){let s=t;return s.label=this.finishPlaceholder(r,"Identifier"),this.next(),s.body=super.parseStatementOrSloppyAnnexBFunctionDeclaration(),this.finishNode(s,"LabeledStatement")}this.semicolon();let n=t;return n.name=r.name,this.finishPlaceholder(n,"Statement")}parseBlock(t,r,n){return this.parsePlaceholder("BlockStatement")||super.parseBlock(t,r,n)}parseFunctionId(t){return this.parsePlaceholder("Identifier")||super.parseFunctionId(t)}parseClass(t,r,n){let s=r?"ClassDeclaration":"ClassExpression";this.next();let i=this.state.strict,o=this.parsePlaceholder("Identifier");if(o)if(this.match(81)||this.match(133)||this.match(5))t.id=o;else{if(n||!r)return t.id=null,t.body=this.finishPlaceholder(o,"ClassBody"),this.finishNode(t,s);throw this.raise(Dx.ClassNameIsRequired,this.state.startLoc)}else this.parseClassId(t,r,n);return super.parseClassSuper(t),t.body=this.parsePlaceholder("ClassBody")||super.parseClassBody(!!t.superClass,i),this.finishNode(t,s)}parseExport(t,r){let n=this.parsePlaceholder("Identifier");if(!n)return super.parseExport(t,r);let s=t;if(!this.isContextual(98)&&!this.match(12))return s.specifiers=[],s.source=null,s.declaration=this.finishPlaceholder(n,"Declaration"),this.finishNode(s,"ExportNamedDeclaration");this.expectPlugin("exportDefaultFrom");let i=this.startNode();return i.exported=n,s.specifiers=[this.finishNode(i,"ExportDefaultSpecifier")],super.parseExport(s,r)}isExportDefaultSpecifier(){if(this.match(65)){let t=this.nextTokenStart();if(this.isUnparsedContextual(t,"from")&&this.input.startsWith(va(133),this.nextTokenStartSince(t+4)))return!0}return super.isExportDefaultSpecifier()}maybeParseExportDefaultSpecifier(t,r){return t.specifiers?.length?!0:super.maybeParseExportDefaultSpecifier(t,r)}checkExport(t){let{specifiers:r}=t;r?.length&&(t.specifiers=r.filter(n=>n.exported.type==="Placeholder")),super.checkExport(t),t.specifiers=r}parseImport(t){let r=this.parsePlaceholder("Identifier");if(!r)return super.parseImport(t);if(t.specifiers=[],!this.isContextual(98)&&!this.match(12))return t.source=this.finishPlaceholder(r,"StringLiteral"),this.semicolon(),this.finishNode(t,"ImportDeclaration");let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishNode(n,"ImportDefaultSpecifier")),this.eat(12)&&(this.maybeParseStarImportSpecifier(t)||this.parseNamedImportSpecifiers(t)),this.expectContextual(98),t.source=this.parseImportSource(),this.semicolon(),this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.parsePlaceholder("StringLiteral")||super.parseImportSource()}assertNoSpace(){this.state.start>this.offsetToSourcePos(this.state.lastTokEndLoc.index)&&this.raise(Dx.UnexpectedSpace,this.state.lastTokEndLoc)}},a7=e=>class extends e{parseV8Intrinsic(){if(this.match(54)){let t=this.state.startLoc,r=this.startNode();if(this.next(),Xt(this.state.type)){let n=this.parseIdentifierName(),s=this.createIdentifier(r,n);if(this.castNodeTo(s,"V8IntrinsicIdentifier"),this.match(10))return s}this.unexpected(t)}}parseExprAtom(t){return this.parseV8Intrinsic()||super.parseExprAtom(t)}},xx=["fsharp","hack"],Tx=["^^","@@","^","%","#"];function o7(e){if(e.has("decorators")){if(e.has("decorators-legacy"))throw new Error("Cannot use the decorators and decorators-legacy plugin together");let t=e.get("decorators").decoratorsBeforeExport;if(t!=null&&typeof t!="boolean")throw new Error("'decoratorsBeforeExport' must be a boolean, if specified.");let r=e.get("decorators").allowCallParenthesized;if(r!=null&&typeof r!="boolean")throw new Error("'allowCallParenthesized' must be a boolean.")}if(e.has("flow")&&e.has("typescript"))throw new Error("Cannot combine flow and typescript plugins.");if(e.has("placeholders")&&e.has("v8intrinsic"))throw new Error("Cannot combine placeholders and v8intrinsic plugins.");if(e.has("pipelineOperator")){let t=e.get("pipelineOperator").proposal;if(!xx.includes(t)){let r=xx.map(n=>`"${n}"`).join(", ");throw new Error(`"pipelineOperator" requires "proposal" option whose value must be one of: ${r}.`)}if(t==="hack"){if(e.has("placeholders"))throw new Error("Cannot combine placeholders plugin and Hack-style pipes.");if(e.has("v8intrinsic"))throw new Error("Cannot combine v8intrinsic plugin and Hack-style pipes.");let r=e.get("pipelineOperator").topicToken;if(!Tx.includes(r)){let n=Tx.map(s=>`"${s}"`).join(", ");throw new Error(`"pipelineOperator" in "proposal": "hack" mode also requires a "topicToken" option whose value must be one of: ${n}.`)}}}if(e.has("moduleAttributes"))throw new Error("`moduleAttributes` has been removed in Babel 8, please migrate to import attributes instead.");if(e.has("importAssertions"))throw new Error("`importAssertions` has been removed in Babel 8, please use import attributes instead. To use the non-standard `assert` syntax you can enable the `deprecatedImportAssert` parser plugin.");if(!e.has("deprecatedImportAssert")&&e.has("importAttributes")&&e.get("importAttributes").deprecatedAssertSyntax)throw new Error("The 'importAttributes' plugin has been removed in Babel 8. If you need to enable support for the deprecated `assert` syntax, you can enable the `deprecatedImportAssert` parser plugin.");if(e.has("recordAndTuple"))throw new Error("The 'recordAndTuple' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("asyncDoExpressions")&&!e.has("doExpressions")){let t=new Error("'asyncDoExpressions' requires 'doExpressions', please add 'doExpressions' to parser plugins.");throw t.missingPlugins="doExpressions",t}if(e.has("optionalChainingAssign")&&e.get("optionalChainingAssign").version!=="2023-07")throw new Error("The 'optionalChainingAssign' plugin requires a 'version' option, representing the last proposal update. Currently, the only supported value is '2023-07'.");if(e.has("discardBinding")&&e.get("discardBinding").syntaxType!=="void")throw new Error("The 'discardBinding' plugin requires a 'syntaxType' option. Currently the only supported value is 'void'.");{if(e.has("decimal"))throw new Error("The 'decimal' plugin has been removed in Babel 8. Please remove it from your configuration.");if(e.has("importReflection"))throw new Error("The 'importReflection' plugin has been removed in Babel 8. Use 'sourcePhaseImports' instead, and replace 'import module' with 'import source' in your code.")}}var qE={estree:GF,jsx:kk,flow:Sk,typescript:t7,v8intrinsic:a7,placeholders:i7},u7=Object.keys(qE),l7=class extends Qk{checkProto(t,r,n,s){if(t.type==="SpreadElement"||this.isObjectMethod(t)||t.computed||t.shorthand)return n;let i=t.key;return(i.type==="Identifier"?i.name:i.value)==="__proto__"?r?(this.raise(K.RecordNoProto,i),!0):(n&&(s?s.doubleProtoLoc===null&&(s.doubleProtoLoc=i.loc.start):this.raise(K.DuplicateProto,i)),!0):n}shouldExitDescending(t,r){return t.type==="ArrowFunctionExpression"&&this.offsetToSourcePos(t.start)===r}getExpression(){if(this.enterInitialScopes(),this.nextToken(),this.match(140))throw this.raise(K.ParseExpressionEmptyInput,this.state.startLoc);let t=this.parseExpression();if(!this.match(140))throw this.raise(K.ParseExpressionExpectsEOF,this.state.startLoc,{unexpected:this.input.codePointAt(this.state.start)});return this.finalizeRemainingComments(),t.comments=this.comments,t.errors=this.state.errors,this.optionFlags&256&&(t.tokens=this.tokens),t}parseExpression(t,r){return t?this.disallowInAnd(()=>this.parseExpressionBase(r)):this.allowInAnd(()=>this.parseExpressionBase(r))}parseExpressionBase(t){let r=this.state.startLoc,n=this.parseMaybeAssign(t);if(this.match(12)){let s=this.startNodeAt(r);for(s.expressions=[n];this.eat(12);)s.expressions.push(this.parseMaybeAssign(t));return this.toReferencedList(s.expressions),this.finishNode(s,"SequenceExpression")}return n}parseMaybeAssignDisallowIn(t,r){return this.disallowInAnd(()=>this.parseMaybeAssign(t,r))}parseMaybeAssignAllowIn(t,r){return this.allowInAnd(()=>this.parseMaybeAssign(t,r))}setOptionalParametersError(t){t.optionalParametersLoc=this.state.startLoc}parseMaybeAssign(t,r){let n=this.state.startLoc,s=this.isContextual(108);if(s&&this.prodParam.hasYield){this.next();let u=this.parseYield(n);return r&&(u=r.call(this,u,n)),u}let i;t?i=!1:(t=new _f,i=!0);let{type:o}=this.state;(o===10||Xt(o))&&(this.state.potentialArrowAt=this.state.start);let l=this.parseMaybeConditional(t);if(r&&(l=r.call(this,l,n)),tk(this.state.type)){let u=this.startNodeAt(n),f=this.state.value;if(u.operator=f,this.match(29)){this.toAssignable(l,!0),u.left=l;let p=n.index;t.doubleProtoLoc!=null&&t.doubleProtoLoc.index>=p&&(t.doubleProtoLoc=null),t.shorthandAssignLoc!=null&&t.shorthandAssignLoc.index>=p&&(t.shorthandAssignLoc=null),t.privateKeyLoc!=null&&t.privateKeyLoc.index>=p&&(this.checkDestructuringPrivate(t),t.privateKeyLoc=null),t.voidPatternLoc!=null&&t.voidPatternLoc.index>=p&&(t.voidPatternLoc=null)}else u.left=l;return this.next(),u.right=this.parseMaybeAssign(),this.checkLVal(l,this.finishNode(u,"AssignmentExpression"),void 0,void 0,void 0,void 0,f==="||="||f==="&&="||f==="??="),u}else i&&this.checkExpressionErrors(t,!0);if(s){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?Ac(u):Ac(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(K.YieldNotInGeneratorFunction,n),this.parseYield(n)}return l}parseMaybeConditional(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprOps(t);return this.shouldExitDescending(s,n)?s:this.parseConditional(s,r,t)}parseConditional(t,r,n){if(this.eat(17)){let s=this.startNodeAt(r);return s.test=t,s.consequent=this.parseMaybeAssignAllowIn(),this.expect(14),s.alternate=this.parseMaybeAssign(),this.finishNode(s,"ConditionalExpression")}return t}parseMaybeUnaryOrPrivate(t){return this.match(139)?this.parsePrivateName():this.parseMaybeUnary(t)}parseExprOps(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseMaybeUnaryOrPrivate(t);return this.shouldExitDescending(s,n)?s:this.parseExprOp(s,r,-1)}parseExprOp(t,r,n){if(this.isPrivateName(t)){let i=this.getPrivateNameSV(t);(n>=vf(58)||!this.prodParam.hasIn||!this.match(58))&&this.raise(K.PrivateInExpectedIn,t,{identifierName:i}),this.classScope.usePrivateName(i,t.loc.start)}let s=this.state.type;if(nk(s)&&(this.prodParam.hasIn||!this.match(58))){let i=vf(s);if(i>n){if(s===39){if(this.expectPlugin("pipelineOperator"),this.state.inFSharpPipelineDirectBody)return t;this.checkPipelineAtInfixOperator(t,r)}let o=this.startNodeAt(r);o.left=t,o.operator=this.state.value;let l=s===41||s===42,u=s===40;u&&(i=vf(42)),this.next(),o.right=this.parseExprOpRightExpr(s,i);let f=this.finishNode(o,l||u?"LogicalExpression":"BinaryExpression"),p=this.state.type;if(u&&(p===41||p===42)||l&&p===40)throw this.raise(K.MixingCoalesceWithLogical,this.state.startLoc);return this.parseExprOp(f,r,n)}}return t}parseExprOpRightExpr(t,r){switch(this.state.startLoc,t){case 39:switch(this.getPluginOption("pipelineOperator","proposal")){case"hack":return this.withTopicBindingContext(()=>this.parseHackPipeBody());case"fsharp":return this.withSoloAwaitPermittingContext(()=>this.parseFSharpPipelineBody(r))}default:return this.parseExprOpBaseRightExpr(t,r)}}parseExprOpBaseRightExpr(t,r){let n=this.state.startLoc;return this.parseExprOp(this.parseMaybeUnaryOrPrivate(),n,uk(t)?r-1:r)}parseHackPipeBody(){let{startLoc:t}=this.state,r=this.parseMaybeAssign();return qF.has(r.type)&&!r.extra?.parenthesized&&this.raise(K.PipeUnparenthesizedBody,t,{type:r.type}),this.topicReferenceWasUsedInCurrentContext()||this.raise(K.PipeTopicUnused,t),r}checkExponentialAfterUnary(t){this.match(57)&&this.raise(K.UnexpectedTokenUnaryExponentiation,t.argument)}parseMaybeUnary(t,r){let n=this.state.startLoc,s=this.isContextual(96);if(s&&this.recordAwaitIfAllowed()){this.next();let u=this.parseAwait(n);return r||this.checkExponentialAfterUnary(u),u}let i=this.match(34),o=this.startNode();if(ik(this.state.type)){o.operator=this.state.value,o.prefix=!0,this.match(72)&&this.expectPlugin("throwExpressions");let u=this.match(89);if(this.next(),o.argument=this.parseMaybeUnary(null,!0),this.checkExpressionErrors(t,!0),this.state.strict&&u){let f=o.argument;f.type==="Identifier"?this.raise(K.StrictDelete,o):this.hasPropertyAsPrivateName(f)&&this.raise(K.DeletePrivateField,o)}if(!i)return r||this.checkExponentialAfterUnary(o),this.finishNode(o,"UnaryExpression")}let l=this.parseUpdate(o,i,t);if(s){let{type:u}=this.state;if((this.hasPlugin("v8intrinsic")?Ac(u):Ac(u)&&!this.match(54))&&!this.isAmbiguousPrefixOrIdentifier())return this.raiseOverwrite(K.AwaitNotInAsyncContext,n),this.parseAwait(n)}return l}parseUpdate(t,r,n){if(r){let o=t;return this.checkLVal(o.argument,this.finishNode(o,"UpdateExpression")),t}let s=this.state.startLoc,i=this.parseExprSubscripts(n);if(this.checkExpressionErrors(n,!1))return i;for(;sk(this.state.type)&&!this.canInsertSemicolon();){let o=this.startNodeAt(s);o.operator=this.state.value,o.prefix=!1,o.argument=i,this.next(),this.checkLVal(i,i=this.finishNode(o,"UpdateExpression"))}return i}parseExprSubscripts(t){let r=this.state.startLoc,n=this.state.potentialArrowAt,s=this.parseExprAtom(t);return this.shouldExitDescending(s,n)?s:this.parseSubscripts(s,r)}parseSubscripts(t,r,n){let s={optionalChainMember:!1,maybeAsyncArrow:this.atPossibleAsyncArrow(t),stop:!1};do t=this.parseSubscript(t,r,n,s),s.maybeAsyncArrow=!1;while(!s.stop);return t}parseSubscript(t,r,n,s){let{type:i}=this.state;if(!n&&i===15)return this.parseBind(t,r,n,s);if(h0(i))return this.parseTaggedTemplateExpression(t,r,s);let o=!1;if(i===18){if(n&&(this.raise(K.OptionalChainingNoNew,this.state.startLoc),this.lookaheadCharCode()===40))return this.stopParseSubscript(t,s);s.optionalChainMember=o=!0,this.next()}if(!n&&this.match(10))return this.parseCoverCallAndAsyncArrowHead(t,r,s,o);{let l=this.eat(0);return l||o||this.eat(16)?this.parseMember(t,r,s,l,o):this.stopParseSubscript(t,s)}}stopParseSubscript(t,r){return r.stop=!0,t}parseMember(t,r,n,s,i){let o=this.startNodeAt(r);return o.object=t,o.computed=s,s?(o.property=this.parseExpression(),this.expect(3)):this.match(139)?(t.type==="Super"&&this.raise(K.SuperPrivateField,r),this.classScope.usePrivateName(this.state.value,this.state.startLoc),o.property=this.parsePrivateName()):o.property=this.parseIdentifier(!0),n.optionalChainMember?(o.optional=i,this.finishNode(o,"OptionalMemberExpression")):this.finishNode(o,"MemberExpression")}parseBind(t,r,n,s){let i=this.startNodeAt(r);return i.object=t,this.next(),i.callee=this.parseNoCallExpr(),s.stop=!0,this.parseSubscripts(this.finishNode(i,"BindExpression"),r,n)}parseCoverCallAndAsyncArrowHead(t,r,n,s){let i=this.state.maybeInArrowParameters,o=null;this.state.maybeInArrowParameters=!0,this.next();let l=this.startNodeAt(r);l.callee=t;let{maybeAsyncArrow:u,optionalChainMember:f}=n;u&&(this.expressionScope.enter(Hk()),o=new _f),f&&(l.optional=s),s?l.arguments=this.parseCallExpressionArguments():l.arguments=this.parseCallExpressionArguments(t.type!=="Super",l,o);let p=this.finishCallExpression(l,f);return u&&this.shouldParseAsyncArrow()&&!s?(n.stop=!0,this.checkDestructuringPrivate(o),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),p=this.parseAsyncArrowFromCallExpression(this.startNodeAt(r),p)):(u&&(this.checkExpressionErrors(o,!0),this.expressionScope.exit()),this.toReferencedArguments(p)),this.state.maybeInArrowParameters=i,p}toReferencedArguments(t,r){this.toReferencedListDeep(t.arguments,r)}parseTaggedTemplateExpression(t,r,n){let s=this.startNodeAt(r);return s.tag=t,s.quasi=this.parseTemplate(!0),n.optionalChainMember&&this.raise(K.OptionalChainingNoTemplate,r),this.finishNode(s,"TaggedTemplateExpression")}atPossibleAsyncArrow(t){return t.type==="Identifier"&&t.name==="async"&&this.state.lastTokEndLoc.index===t.end&&!this.canInsertSemicolon()&&t.end-t.start===5&&this.offsetToSourcePos(t.start)===this.state.potentialArrowAt}finishCallExpression(t,r){if(t.callee.type==="Import")if(t.arguments.length===0||t.arguments.length>2)this.raise(K.ImportCallArity,t);else for(let n of t.arguments)n.type==="SpreadElement"&&this.raise(K.ImportCallSpreadArgument,n);return this.finishNode(t,r?"OptionalCallExpression":"CallExpression")}parseCallExpressionArguments(t,r,n){let s=[],i=!0,o=this.state.inFSharpPipelineDirectBody;for(this.state.inFSharpPipelineDirectBody=!1;!this.eat(11);){if(i)i=!1;else if(this.expect(12),this.match(11)){r&&this.addTrailingCommaExtraToNode(r),this.next();break}s.push(this.parseExprListItem(11,!1,n,t))}return this.state.inFSharpPipelineDirectBody=o,s}shouldParseAsyncArrow(){return this.match(19)&&!this.canInsertSemicolon()}parseAsyncArrowFromCallExpression(t,r){return this.resetPreviousNodeTrailingComments(r),this.expect(19),this.parseArrowExpression(t,r.arguments,!0,r.extra?.trailingCommaLoc),r.innerComments&&Ou(t,r.innerComments),r.callee.trailingComments&&Ou(t,r.callee.trailingComments),t}parseNoCallExpr(){let t=this.state.startLoc;return this.parseSubscripts(this.parseExprAtom(),t,!0)}parseExprAtom(t){let r,n=null,{type:s}=this.state;switch(s){case 79:return this.parseSuper();case 83:return r=this.startNode(),this.next(),this.match(16)?this.parseImportMetaPropertyOrPhaseCall(r):this.match(10)?this.optionFlags&512?this.parseImportCall(r):this.finishNode(r,"Import"):(this.raise(K.UnsupportedImport,this.state.lastTokStartLoc),this.finishNode(r,"Import"));case 78:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case 90:return this.parseDo(this.startNode(),!1);case 56:case 31:return this.readRegexp(),this.parseRegExpLiteral(this.state.value);case 135:return this.parseNumericLiteral(this.state.value);case 136:return this.parseBigIntLiteral(this.state.value);case 134:return this.parseStringLiteral(this.state.value);case 84:return this.parseNullLiteral();case 85:return this.parseBooleanLiteral(!0);case 86:return this.parseBooleanLiteral(!1);case 10:{let i=this.state.potentialArrowAt===this.state.start;return this.parseParenAndDistinguishExpression(i)}case 0:return this.parseArrayLike(3,!1,t);case 5:return this.parseObjectLike(8,!1,!1,t);case 68:return this.parseFunctionOrFunctionSent();case 26:n=this.parseDecorators();case 80:return this.parseClass(this.maybeTakeDecorators(n,this.startNode()),!1);case 77:return this.parseNewOrNewTarget();case 25:case 24:return this.parseTemplate(!1);case 15:{r=this.startNode(),this.next(),r.object=null;let i=r.callee=this.parseNoCallExpr();if(i.type==="MemberExpression")return this.finishNode(r,"BindExpression");throw this.raise(K.UnsupportedBind,i)}case 139:return this.raise(K.PrivateInExpectedIn,this.state.startLoc,{identifierName:this.state.value}),this.parsePrivateName();case 33:return this.parseTopicReferenceThenEqualsSign(54,"%");case 32:return this.parseTopicReferenceThenEqualsSign(44,"^");case 37:case 38:return this.parseTopicReference("hack");case 44:case 54:case 27:{let i=this.getPluginOption("pipelineOperator","proposal");if(i)return this.parseTopicReference(i);throw this.unexpected()}case 47:{let i=this.input.codePointAt(this.nextTokenStart());throw Ys(i)||i===62?this.expectOnePlugin(["jsx","flow","typescript"]):this.unexpected()}default:if(Xt(s)){if(this.isContextual(127)&&this.lookaheadInLineCharCode()===123)return this.parseModuleExpression();let i=this.state.potentialArrowAt===this.state.start,o=this.state.containsEsc,l=this.parseIdentifier();if(!o&&l.name==="async"&&!this.canInsertSemicolon()){let{type:u}=this.state;if(u===68)return this.resetPreviousNodeTrailingComments(l),this.next(),this.parseAsyncFunctionExpression(this.startNodeAtNode(l));if(Xt(u))return this.lookaheadCharCode()===61?this.parseAsyncArrowUnaryFunction(this.startNodeAtNode(l)):l;if(u===90)return this.resetPreviousNodeTrailingComments(l),this.parseDo(this.startNodeAtNode(l),!0)}return i&&this.match(19)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(l),[l],!1)):l}else throw this.unexpected()}}parseTopicReferenceThenEqualsSign(t,r){let n=this.getPluginOption("pipelineOperator","proposal");if(n)return this.state.type=t,this.state.value=r,this.state.pos--,this.state.end--,this.state.endLoc=ms(this.state.endLoc,-1),this.parseTopicReference(n);throw this.unexpected()}parseTopicReference(t){let r=this.startNode(),n=this.state.startLoc,s=this.state.type;return this.next(),this.finishTopicReference(r,n,t,s)}finishTopicReference(t,r,n,s){if(this.testTopicReferenceConfiguration(n,r,s))return this.topicReferenceIsAllowedInCurrentContext()||this.raise(K.PipeTopicUnbound,r),this.registerTopicReference(),this.finishNode(t,"TopicReference");throw this.raise(K.PipeTopicUnconfiguredToken,r,{token:va(s)})}testTopicReferenceConfiguration(t,r,n){switch(t){case"hack":return this.hasPlugin(["pipelineOperator",{topicToken:va(n)}]);case"smart":return n===27;default:throw this.raise(K.PipeTopicRequiresHackPipes,r)}}parseAsyncArrowUnaryFunction(t){this.prodParam.enter(Sf(!0,this.prodParam.hasYield));let r=[this.parseIdentifier()];return this.prodParam.exit(),this.hasPrecedingLineBreak()&&this.raise(K.LineTerminatorBeforeArrow,this.state.curPosition()),this.expect(19),this.parseArrowExpression(t,r,!0)}parseDo(t,r){this.expectPlugin("doExpressions"),r&&this.expectPlugin("asyncDoExpressions"),t.async=r,this.next();let n=this.state.labels;return this.state.labels=[],r?(this.prodParam.enter(2),t.body=this.parseBlock(),this.prodParam.exit()):t.body=this.parseBlock(),this.state.labels=n,this.finishNode(t,"DoExpression")}parseSuper(){let t=this.startNode();return this.next(),this.match(10)&&!this.scope.allowDirectSuper?this.raise(K.SuperNotAllowed,t):this.scope.allowSuper||this.raise(K.UnexpectedSuper,t),!this.match(10)&&!this.match(0)&&!this.match(16)&&this.raise(K.UnsupportedSuper,t),this.finishNode(t,"Super")}parsePrivateName(){let t=this.startNode(),r=this.startNodeAt(ms(this.state.startLoc,1)),n=this.state.value;return this.next(),t.id=this.createIdentifier(r,n),this.finishNode(t,"PrivateName")}parseFunctionOrFunctionSent(){let t=this.startNode();if(this.next(),this.prodParam.hasYield&&this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"function");return this.next(),this.match(103)?this.expectPlugin("functionSent"):this.hasPlugin("functionSent")||this.unexpected(),this.parseMetaProperty(t,r,"sent")}return this.parseFunction(t)}parseMetaProperty(t,r,n){t.meta=r;let s=this.state.containsEsc;return t.property=this.parseIdentifier(!0),(t.property.name!==n||s)&&this.raise(K.UnsupportedMetaProperty,t.property,{target:r.name,onlyValidPropertyName:n}),this.finishNode(t,"MetaProperty")}parseImportMetaPropertyOrPhaseCall(t){if(this.next(),this.isContextual(105)||this.isContextual(97)){let r=this.isContextual(105);return this.expectPlugin(r?"sourcePhaseImports":"deferredImportEvaluation"),this.next(),t.phase=r?"source":"defer",this.parseImportCall(t)}else{let r=this.createIdentifierAt(this.startNodeAtNode(t),"import",this.state.lastTokStartLoc);return this.isContextual(101)&&(this.inModule||this.raise(K.ImportMetaOutsideModule,r),this.sawUnambiguousESM=!0),this.parseMetaProperty(t,r,"meta")}}parseLiteralAtNode(t,r,n){return this.addExtra(n,"rawValue",t),this.addExtra(n,"raw",this.input.slice(this.offsetToSourcePos(n.start),this.state.end)),n.value=t,this.next(),this.finishNode(n,r)}parseLiteral(t,r){let n=this.startNode();return this.parseLiteralAtNode(t,r,n)}parseStringLiteral(t){return this.parseLiteral(t,"StringLiteral")}parseNumericLiteral(t){return this.parseLiteral(t,"NumericLiteral")}parseBigIntLiteral(t){{let r;try{r=BigInt(t)}catch{r=null}return this.parseLiteral(r,"BigIntLiteral")}}parseDecimalLiteral(t){return this.parseLiteral(t,"DecimalLiteral")}parseRegExpLiteral(t){let r=this.startNode();return this.addExtra(r,"raw",this.input.slice(this.offsetToSourcePos(r.start),this.state.end)),r.pattern=t.pattern,r.flags=t.flags,this.next(),this.finishNode(r,"RegExpLiteral")}parseBooleanLiteral(t){let r=this.startNode();return r.value=t,this.next(),this.finishNode(r,"BooleanLiteral")}parseNullLiteral(){let t=this.startNode();return this.next(),this.finishNode(t,"NullLiteral")}parseParenAndDistinguishExpression(t){let r=this.state.startLoc,n;this.next(),this.expressionScope.enter(Vk());let s=this.state.maybeInArrowParameters,i=this.state.inFSharpPipelineDirectBody;this.state.maybeInArrowParameters=!0,this.state.inFSharpPipelineDirectBody=!1;let o=this.state.startLoc,l=[],u=new _f,f=!0,p,d;for(;!this.match(11);){if(f)f=!1;else if(this.expect(12,u.optionalParametersLoc===null?null:u.optionalParametersLoc),this.match(11)){d=this.state.startLoc;break}if(this.match(21)){let D=this.state.startLoc;if(p=this.state.startLoc,l.push(this.parseParenItem(this.parseRestBinding(),D)),!this.checkCommaAfterRest(41))break}else l.push(this.parseMaybeAssignAllowInOrVoidPattern(11,u,this.parseParenItem))}let y=this.state.lastTokEndLoc;this.expect(11),this.state.maybeInArrowParameters=s,this.state.inFSharpPipelineDirectBody=i;let m=this.startNodeAt(r);return t&&this.shouldParseArrow(l)&&(m=this.parseArrow(m))?(this.checkDestructuringPrivate(u),this.expressionScope.validateAsPattern(),this.expressionScope.exit(),this.parseArrowExpression(m,l,!1),m):(this.expressionScope.exit(),l.length||this.unexpected(this.state.lastTokStartLoc),d&&this.unexpected(d),p&&this.unexpected(p),this.checkExpressionErrors(u,!0),this.toReferencedListDeep(l,!0),l.length>1?(n=this.startNodeAt(o),n.expressions=l,this.finishNode(n,"SequenceExpression"),this.resetEndLocation(n,y)):n=l[0],this.wrapParenthesis(r,n))}wrapParenthesis(t,r){if(!(this.optionFlags&1024))return this.addExtra(r,"parenthesized",!0),this.addExtra(r,"parenStart",t.index),this.takeSurroundingComments(r,t.index,this.state.lastTokEndLoc.index),r;let n=this.startNodeAt(t);return n.expression=r,this.finishNode(n,"ParenthesizedExpression")}shouldParseArrow(t){return!this.canInsertSemicolon()}parseArrow(t){if(this.eat(19))return t}parseParenItem(t,r){return t}parseNewOrNewTarget(){let t=this.startNode();if(this.next(),this.match(16)){let r=this.createIdentifier(this.startNodeAtNode(t),"new");this.next();let n=this.parseMetaProperty(t,r,"target");return this.scope.allowNewTarget||this.raise(K.UnexpectedNewTarget,n),n}return this.parseNew(t)}parseNew(t){if(this.parseNewCallee(t),this.eat(10)){let r=this.parseExprList(11);this.toReferencedList(r),t.arguments=r}else t.arguments=[];return this.finishNode(t,"NewExpression")}parseNewCallee(t){let r=this.match(83),n=this.parseNoCallExpr();t.callee=n,r&&(n.type==="Import"||n.type==="ImportExpression")&&this.raise(K.ImportCallNotNewExpression,n)}parseTemplateElement(t){let{start:r,startLoc:n,end:s,value:i}=this.state,o=r+1,l=this.startNodeAt(ms(n,1));i===null&&(t||this.raise(K.InvalidEscapeSequenceTemplate,ms(this.state.firstInvalidTemplateEscapePos,1)));let u=this.match(24),f=u?-1:-2,p=s+f;l.value={raw:this.input.slice(o,p).replace(/\r\n?/g,`
|
|
36
|
-
`),cooked:i===null?null:i.slice(1,f)},l.tail=u,this.next();let d=this.finishNode(l,"TemplateElement");return this.resetEndLocation(d,ms(this.state.lastTokEndLoc,f)),d}parseTemplate(t){let r=this.startNode(),n=this.parseTemplateElement(t),s=[n],i=[];for(;!n.tail;)i.push(this.parseTemplateSubstitution()),this.readTemplateContinuation(),s.push(n=this.parseTemplateElement(t));return r.expressions=i,r.quasis=s,this.finishNode(r,"TemplateLiteral")}parseTemplateSubstitution(){return this.parseExpression()}parseObjectLike(t,r,n,s){n&&this.expectPlugin("recordAndTuple");let i=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let o=!1,l=!0,u=this.startNode();for(u.properties=[],this.next();!this.match(t);){if(l)l=!1;else if(this.expect(12),this.match(t)){this.addTrailingCommaExtraToNode(u);break}let p;r?p=this.parseBindingProperty():(p=this.parsePropertyDefinition(s),o=this.checkProto(p,n,o,s)),n&&!this.isObjectProperty(p)&&p.type!=="SpreadElement"&&this.raise(K.InvalidRecordProperty,p),u.properties.push(p)}this.next(),this.state.inFSharpPipelineDirectBody=i;let f="ObjectExpression";return r?f="ObjectPattern":n&&(f="RecordExpression"),this.finishNode(u,f)}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 r=[];if(this.match(26))for(this.hasPlugin("decorators")&&this.raise(K.UnsupportedPropertyDecorator,this.state.startLoc);this.match(26);)r.push(this.parseDecorator());let n=this.startNode(),s=!1,i=!1,o;if(this.match(21))return r.length&&this.unexpected(),this.parseSpread();r.length&&(n.decorators=r,r=[]),n.method=!1,t&&(o=this.state.startLoc);let l=this.eat(55);this.parsePropertyNamePrefixOperator(n);let u=this.state.containsEsc;if(this.parsePropertyName(n,t),!l&&!u&&this.maybeAsyncOrAccessorProp(n)){let{key:f}=n,p=f.name;p==="async"&&!this.hasPrecedingLineBreak()&&(s=!0,this.resetPreviousNodeTrailingComments(f),l=this.eat(55),this.parsePropertyName(n)),(p==="get"||p==="set")&&(i=!0,this.resetPreviousNodeTrailingComments(f),n.kind=p,this.match(55)&&(l=!0,this.raise(K.AccessorIsGenerator,this.state.curPosition(),{kind:p}),this.next()),this.parsePropertyName(n))}return this.parseObjPropValue(n,o,l,s,!1,i,t)}getGetterSetterExpectedParamCount(t){return t.kind==="get"?0:1}getObjectOrClassMethodParams(t){return t.params}checkGetterSetterParams(t){let r=this.getGetterSetterExpectedParamCount(t),n=this.getObjectOrClassMethodParams(t);n.length!==r&&this.raise(t.kind==="get"?K.BadGetterArity:K.BadSetterArity,t),t.kind==="set"&&n[n.length-1]?.type==="RestElement"&&this.raise(K.BadSetterRestParameter,t)}parseObjectMethod(t,r,n,s,i){if(i){let o=this.parseMethod(t,r,!1,!1,!1,"ObjectMethod");return this.checkGetterSetterParams(o),o}if(n||r||this.match(10))return s&&this.unexpected(),t.kind="method",t.method=!0,this.parseMethod(t,r,n,!1,!1,"ObjectMethod")}parseObjectProperty(t,r,n,s){if(t.shorthand=!1,this.eat(14))return t.value=n?this.parseMaybeDefault(this.state.startLoc):this.parseMaybeAssignAllowInOrVoidPattern(8,s),this.finishObjectProperty(t);if(!t.computed&&t.key.type==="Identifier"){if(this.checkReservedWord(t.key.name,t.key.loc.start,!0,!1),n)t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key));else if(this.match(29)){let i=this.state.startLoc;s!=null?s.shorthandAssignLoc===null&&(s.shorthandAssignLoc=i):this.raise(K.InvalidCoverInitializedName,i),t.value=this.parseMaybeDefault(r,this.cloneIdentifier(t.key))}else t.value=this.cloneIdentifier(t.key);return t.shorthand=!0,this.finishObjectProperty(t)}}finishObjectProperty(t){return this.finishNode(t,"ObjectProperty")}parseObjPropValue(t,r,n,s,i,o,l){let u=this.parseObjectMethod(t,n,s,i,o)||this.parseObjectProperty(t,r,i,l);return u||this.unexpected(),u}parsePropertyName(t,r){if(this.eat(0))t.computed=!0,t.key=this.parseMaybeAssignAllowIn(),this.expect(3);else{let{type:n,value:s}=this.state,i;if(ks(n))i=this.parseIdentifier(!0);else switch(n){case 135:i=this.parseNumericLiteral(s);break;case 134:i=this.parseStringLiteral(s);break;case 136:i=this.parseBigIntLiteral(s);break;case 139:{let o=this.state.startLoc;r!=null?r.privateKeyLoc===null&&(r.privateKeyLoc=o):this.raise(K.UnexpectedPrivateField,o),i=this.parsePrivateName();break}default:this.unexpected()}t.key=i,n!==139&&(t.computed=!1)}}initFunction(t,r){t.id=null,t.generator=!1,t.async=r}parseMethod(t,r,n,s,i,o,l=!1){this.initFunction(t,n),t.generator=r,this.scope.enter(530|(l?576:0)|(i?32:0)),this.prodParam.enter(Sf(n,t.generator)),this.parseFunctionParams(t,s);let u=this.parseFunctionBodyAndFinish(t,o,!0);return this.prodParam.exit(),this.scope.exit(),u}parseArrayLike(t,r,n){r&&this.expectPlugin("recordAndTuple");let s=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!1;let i=this.startNode();return this.next(),i.elements=this.parseExprList(t,!r,n,i),this.state.inFSharpPipelineDirectBody=s,this.finishNode(i,r?"TupleExpression":"ArrayExpression")}parseArrowExpression(t,r,n,s){this.scope.enter(518);let i=Sf(n,!1);!this.match(5)&&this.prodParam.hasIn&&(i|=8),this.prodParam.enter(i),this.initFunction(t,n);let o=this.state.maybeInArrowParameters;return r&&(this.state.maybeInArrowParameters=!0,this.setArrowFunctionParameters(t,r,s)),this.state.maybeInArrowParameters=!1,this.parseFunctionBody(t,!0),this.prodParam.exit(),this.scope.exit(),this.state.maybeInArrowParameters=o,this.finishNode(t,"ArrowFunctionExpression")}setArrowFunctionParameters(t,r,n){this.toAssignableList(r,n,!1),t.params=r}parseFunctionBodyAndFinish(t,r,n=!1){return this.parseFunctionBody(t,!1,n),this.finishNode(t,r)}parseFunctionBody(t,r,n=!1){let s=r&&!this.match(5);if(this.expressionScope.enter(JE()),s)t.body=this.parseMaybeAssign(),this.checkParams(t,!1,r,!1);else{let i=this.state.strict,o=this.state.labels;this.state.labels=[],this.prodParam.enter(this.prodParam.currentFlags()|4),t.body=this.parseBlock(!0,!1,l=>{let u=!this.isSimpleParamList(t.params);l&&u&&this.raise(K.IllegalLanguageModeDirective,(t.kind==="method"||t.kind==="constructor")&&t.key?t.key.loc.end:t);let f=!i&&this.state.strict;this.checkParams(t,!this.state.strict&&!r&&!n&&!u,r,f),this.state.strict&&t.id&&this.checkIdentifier(t.id,65,f)}),this.prodParam.exit(),this.state.labels=o}this.expressionScope.exit()}isSimpleParameter(t){return t.type==="Identifier"}isSimpleParamList(t){for(let r=0,n=t.length;r<n;r++)if(!this.isSimpleParameter(t[r]))return!1;return!0}checkParams(t,r,n,s=!0){let i=!r&&new Set,o={type:"FormalParameters"};for(let l of t.params)this.checkLVal(l,o,5,i,s)}parseExprList(t,r,n,s){let i=[],o=!0;for(;!this.eat(t);){if(o)o=!1;else if(this.expect(12),this.match(t)){s&&this.addTrailingCommaExtraToNode(s),this.next();break}i.push(this.parseExprListItem(t,r,n))}return i}parseExprListItem(t,r,n,s){let i;if(this.match(12))r||this.raise(K.UnexpectedToken,this.state.curPosition(),{unexpected:","}),i=null;else if(this.match(21)){let o=this.state.startLoc;i=this.parseParenItem(this.parseSpread(n),o)}else if(this.match(17)){this.expectPlugin("partialApplication"),s||this.raise(K.UnexpectedArgumentPlaceholder,this.state.startLoc);let o=this.startNode();this.next(),i=this.finishNode(o,"ArgumentPlaceholder")}else i=this.parseMaybeAssignAllowInOrVoidPattern(t,n,this.parseParenItem);return i}parseIdentifier(t){let r=this.startNode(),n=this.parseIdentifierName(t);return this.createIdentifier(r,n)}createIdentifier(t,r){return t.name=r,t.loc.identifierName=r,this.finishNode(t,"Identifier")}createIdentifierAt(t,r,n){return t.name=r,t.loc.identifierName=r,this.finishNodeAt(t,"Identifier",n)}parseIdentifierName(t){let r,{startLoc:n,type:s}=this.state;ks(s)?r=this.state.value:this.unexpected();let i=ZF(s);return t?i&&this.replaceToken(132):this.checkReservedWord(r,n,i,!1),this.next(),r}checkReservedWord(t,r,n,s){if(!(t.length>10||!Dk(t))){if(n&&mk(t)){this.raise(K.UnexpectedKeyword,r,{keyword:t});return}if((this.state.strict?s?BE:NE:PE)(t,this.inModule)){this.raise(K.UnexpectedReservedWord,r,{reservedWord:t});return}else if(t==="yield"){if(this.prodParam.hasYield){this.raise(K.YieldBindingIdentifier,r);return}}else if(t==="await"){if(this.prodParam.hasAwait){this.raise(K.AwaitBindingIdentifier,r);return}if(this.scope.inStaticBlock){this.raise(K.AwaitBindingIdentifierInStaticBlock,r);return}this.expressionScope.recordAsyncArrowParametersError(r)}else if(t==="arguments"&&this.scope.inClassAndNotInNonArrowFunction){this.raise(K.ArgumentsInClass,r);return}}}recordAwaitIfAllowed(){let t=this.prodParam.hasAwait;return t&&!this.scope.inFunction&&(this.state.hasTopLevelAwait=!0),t}parseAwait(t){let r=this.startNodeAt(t);return this.expressionScope.recordParameterInitializerError(K.AwaitExpressionFormalParameter,r),this.eat(55)&&this.raise(K.ObsoleteAwaitStar,r),!this.scope.inFunction&&!(this.optionFlags&1)&&(this.isAmbiguousPrefixOrIdentifier()?this.ambiguousScriptDifferentAst=!0:this.sawUnambiguousESM=!0),this.state.soloAwait||(r.argument=this.parseMaybeUnary(null,!0)),this.finishNode(r,"AwaitExpression")}isAmbiguousPrefixOrIdentifier(){if(this.hasPrecedingLineBreak())return!0;let{type:t}=this.state;return t===53||t===10||t===0||h0(t)||t===102&&!this.state.containsEsc||t===138||t===56||this.hasPlugin("v8intrinsic")&&t===54}parseYield(t){let r=this.startNodeAt(t);this.expressionScope.recordParameterInitializerError(K.YieldInParameter,r);let n=!1,s=null;if(!this.hasPrecedingLineBreak())switch(n=this.eat(55),this.state.type){case 13:case 140:case 8:case 11:case 3:case 9:case 14:case 12:if(!n)break;default:s=this.parseMaybeAssign()}return r.delegate=n,r.argument=s,this.finishNode(r,"YieldExpression")}parseImportCall(t){if(this.next(),t.source=this.parseMaybeAssignAllowIn(),t.options=null,this.eat(12)){if(this.match(11))this.addTrailingCommaExtraToNode(t.source);else if(t.options=this.parseMaybeAssignAllowIn(),this.eat(12)&&(this.addTrailingCommaExtraToNode(t.options),!this.match(11))){do this.parseMaybeAssignAllowIn();while(this.eat(12)&&!this.match(11));this.raise(K.ImportCallArity,t)}}return this.expect(11),this.finishNode(t,"ImportExpression")}checkPipelineAtInfixOperator(t,r){this.hasPlugin(["pipelineOperator",{proposal:"smart"}])&&t.type==="SequenceExpression"&&this.raise(K.PipelineHeadSequenceExpression,r)}parseSmartPipelineBodyInStyle(t,r){if(this.isSimpleReference(t)){let n=this.startNodeAt(r);return n.callee=t,this.finishNode(n,"PipelineBareFunction")}else{let n=this.startNodeAt(r);return this.checkSmartPipeTopicBodyEarlyErrors(r),n.expression=t,this.finishNode(n,"PipelineTopicExpression")}}isSimpleReference(t){switch(t.type){case"MemberExpression":return!t.computed&&this.isSimpleReference(t.object);case"Identifier":return!0;default:return!1}}checkSmartPipeTopicBodyEarlyErrors(t){if(this.match(19))throw this.raise(K.PipelineBodyNoArrow,this.state.startLoc);this.topicReferenceWasUsedInCurrentContext()||this.raise(K.PipelineTopicUnused,t)}withTopicBindingContext(t){let r=this.state.topicContext;this.state.topicContext={maxNumOfResolvableTopics:1,maxTopicIndex:null};try{return t()}finally{this.state.topicContext=r}}withSmartMixTopicForbiddingContext(t){return t()}withSoloAwaitPermittingContext(t){let r=this.state.soloAwait;this.state.soloAwait=!0;try{return t()}finally{this.state.soloAwait=r}}allowInAnd(t){let r=this.prodParam.currentFlags();if(8&~r){this.prodParam.enter(r|8);try{return t()}finally{this.prodParam.exit()}}return t()}disallowInAnd(t){let r=this.prodParam.currentFlags();if(8&r){this.prodParam.enter(r&-9);try{return t()}finally{this.prodParam.exit()}}return t()}registerTopicReference(){this.state.topicContext.maxTopicIndex=0}topicReferenceIsAllowedInCurrentContext(){return this.state.topicContext.maxNumOfResolvableTopics>=1}topicReferenceWasUsedInCurrentContext(){return this.state.topicContext.maxTopicIndex!=null&&this.state.topicContext.maxTopicIndex>=0}parseFSharpPipelineBody(t){let r=this.state.startLoc;this.state.potentialArrowAt=this.state.start;let n=this.state.inFSharpPipelineDirectBody;this.state.inFSharpPipelineDirectBody=!0;let s=this.parseExprOp(this.parseMaybeUnaryOrPrivate(),r,t);return this.state.inFSharpPipelineDirectBody=n,s}parseModuleExpression(){this.expectPlugin("moduleBlocks");let t=this.startNode();this.next(),this.match(5)||this.unexpected(null,5);let r=this.startNodeAt(this.state.endLoc);this.next();let n=this.initializeScopes(!0);this.enterInitialScopes();try{t.body=this.parseProgram(r,8,"module")}finally{n()}return this.finishNode(t,"ModuleExpression")}parseVoidPattern(t){this.expectPlugin("discardBinding");let r=this.startNode();return t!=null&&(t.voidPatternLoc=this.state.startLoc),this.next(),this.finishNode(r,"VoidPattern")}parseMaybeAssignAllowInOrVoidPattern(t,r,n){if(r!=null&&this.match(88)){let s=this.lookaheadCharCode();if(s===44||s===(t===3?93:t===8?125:41)||s===61)return this.parseMaybeDefault(this.state.startLoc,this.parseVoidPattern(r))}return this.parseMaybeAssignAllowIn(r,n)}parsePropertyNamePrefixOperator(t){}},vy={kind:1},c7={kind:2},p7=/[\uD800-\uDFFF]/u,Sy=/in(?:stanceof)?/y;function d7(e,t,r){for(let n=0;n<e.length;n++){let s=e[n],{type:i}=s;typeof i=="number"&&(s.type=FE(i))}return e}var h7=class extends l7{parseTopLevel(t,r){return t.program=this.parseProgram(r,140,this.options.sourceType==="module"?"module":"script"),t.comments=this.comments,this.optionFlags&256&&(t.tokens=d7(this.tokens,this.input,this.startIndex)),this.finishNode(t,"File")}parseProgram(t,r,n){if(t.sourceType=n,t.interpreter=this.parseInterpreterDirective(),this.parseBlockBody(t,!0,!0,r),this.inModule){if(!(this.optionFlags&64)&&this.scope.undefinedExports.size>0)for(let[i,o]of Array.from(this.scope.undefinedExports))this.raise(K.ModuleExportUndefined,o,{localName:i});this.addExtra(t,"topLevelAwait",this.state.hasTopLevelAwait)}let s;return r===140?s=this.finishNode(t,"Program"):s=this.finishNodeAt(t,"Program",ms(this.state.startLoc,-1)),s}stmtToDirective(t){let r=this.castNodeTo(t,"Directive"),n=this.castNodeTo(t.expression,"DirectiveLiteral"),s=n.value,i=this.input.slice(this.offsetToSourcePos(n.start),this.offsetToSourcePos(n.end)),o=n.value=i.slice(1,-1);return this.addExtra(n,"raw",i),this.addExtra(n,"rawValue",o),this.addExtra(n,"expressionValue",s),r.value=n,delete t.expression,r}parseInterpreterDirective(){if(!this.match(28))return null;let t=this.startNode();return t.value=this.state.value,this.next(),this.finishNode(t,"InterpreterDirective")}isLet(){return this.isContextual(100)?this.hasFollowingBindingAtom():!1}isUsing(){return this.isContextual(107)?this.nextTokenIsIdentifierOnSameLine():!1}isForUsing(){if(!this.isContextual(107))return!1;let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);if(this.isUnparsedContextual(t,"of")){let n=this.lookaheadCharCodeSince(t+2);if(n!==61&&n!==58&&n!==59)return!1}return!!(this.chStartsBindingIdentifier(r,t)||this.isUnparsedContextual(t,"void"))}nextTokenIsIdentifierOnSameLine(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return this.chStartsBindingIdentifier(r,t)}isAwaitUsing(){if(!this.isContextual(96))return!1;let t=this.nextTokenInLineStart();if(this.isUnparsedContextual(t,"using")){t=this.nextTokenInLineStartSince(t+5);let r=this.codePointAtPos(t);if(this.chStartsBindingIdentifier(r,t))return!0}return!1}chStartsBindingIdentifier(t,r){if(Ys(t)){if(Sy.lastIndex=r,Sy.test(this.input)){let n=this.codePointAtPos(Sy.lastIndex);if(!Co(n)&&n!==92)return!1}return!0}else return t===92}chStartsBindingPattern(t){return t===91||t===123}hasFollowingBindingAtom(){let t=this.nextTokenStart(),r=this.codePointAtPos(t);return this.chStartsBindingPattern(r)||this.chStartsBindingIdentifier(r,t)}hasInLineFollowingBindingIdentifierOrBrace(){let t=this.nextTokenInLineStart(),r=this.codePointAtPos(t);return r===123||this.chStartsBindingIdentifier(r,t)}allowsUsing(){return(this.scope.inModule||!this.scope.inTopLevel)&&!this.scope.inBareCaseStatement}parseModuleItem(){return this.parseStatementLike(15)}parseStatementListItem(){return this.parseStatementLike(6|(!this.options.annexB||this.state.strict?0:8))}parseStatementOrSloppyAnnexBFunctionDeclaration(t=!1){let r=0;return this.options.annexB&&!this.state.strict&&(r|=4,t&&(r|=8)),this.parseStatementLike(r)}parseStatement(){return this.parseStatementLike(0)}parseStatementLike(t){let r=null;return this.match(26)&&(r=this.parseDecorators(!0)),this.parseStatementContent(t,r)}parseStatementContent(t,r){let n=this.state.type,s=this.startNode(),i=!!(t&2),o=!!(t&4),l=t&1;switch(n){case 60:return this.parseBreakContinueStatement(s,!0);case 63:return this.parseBreakContinueStatement(s,!1);case 64:return this.parseDebuggerStatement(s);case 90:return this.parseDoWhileStatement(s);case 91:return this.parseForStatement(s);case 68:if(this.lookaheadCharCode()===46)break;return o||this.raise(this.state.strict?K.StrictFunction:this.options.annexB?K.SloppyFunctionAnnexB:K.SloppyFunction,this.state.startLoc),this.parseFunctionStatement(s,!1,!i&&o);case 80:return i||this.unexpected(),this.parseClass(this.maybeTakeDecorators(r,s),!0);case 69:return this.parseIfStatement(s);case 70:return this.parseReturnStatement(s);case 71:return this.parseSwitchStatement(s);case 72:return this.parseThrowStatement(s);case 73:return this.parseTryStatement(s);case 96:if(this.isAwaitUsing())return this.allowsUsing()?i?this.recordAwaitIfAllowed()||this.raise(K.AwaitUsingNotInAsyncContext,s):this.raise(K.UnexpectedLexicalDeclaration,s):this.raise(K.UnexpectedUsingDeclaration,s),this.next(),this.parseVarStatement(s,"await using");break;case 107:if(this.state.containsEsc||!this.hasInLineFollowingBindingIdentifierOrBrace())break;return this.allowsUsing()?i||this.raise(K.UnexpectedLexicalDeclaration,this.state.startLoc):this.raise(K.UnexpectedUsingDeclaration,this.state.startLoc),this.parseVarStatement(s,"using");case 100:{if(this.state.containsEsc)break;let p=this.nextTokenStart(),d=this.codePointAtPos(p);if(d!==91&&(!i&&this.hasFollowingLineBreak()||!this.chStartsBindingIdentifier(d,p)&&d!==123))break}case 75:i||this.raise(K.UnexpectedLexicalDeclaration,this.state.startLoc);case 74:{let p=this.state.value;return this.parseVarStatement(s,p)}case 92:return this.parseWhileStatement(s);case 76:return this.parseWithStatement(s);case 5:return this.parseBlock();case 13:return this.parseEmptyStatement(s);case 83:{let p=this.lookaheadCharCode();if(p===40||p===46)break}case 82:{!(this.optionFlags&8)&&!l&&this.raise(K.UnexpectedImportExport,this.state.startLoc),this.next();let p;return n===83?p=this.parseImport(s):p=this.parseExport(s,r),this.assertModuleNodeAllowed(p),p}default:if(this.isAsyncFunction())return i||this.raise(K.AsyncFunctionInSingleStatementContext,this.state.startLoc),this.next(),this.parseFunctionStatement(s,!0,!i&&o)}let u=this.state.value,f=this.parseExpression();return Xt(n)&&f.type==="Identifier"&&this.eat(14)?this.parseLabeledStatement(s,u,f,t):this.parseExpressionStatement(s,f,r)}assertModuleNodeAllowed(t){!(this.optionFlags&8)&&!this.inModule&&this.raise(K.ImportOutsideModule,t)}decoratorsEnabledBeforeExport(){return this.hasPlugin("decorators-legacy")?!0:this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")!==!1}maybeTakeDecorators(t,r,n){return t&&(r.decorators?.length?(typeof this.getPluginOption("decorators","decoratorsBeforeExport")!="boolean"&&this.raise(K.DecoratorsBeforeAfterExport,r.decorators[0]),r.decorators.unshift(...t)):r.decorators=t,this.resetStartLocationFromNode(r,t[0]),n&&this.resetStartLocationFromNode(n,r)),r}canHaveLeadingDecorator(){return this.match(80)}parseDecorators(t){let r=[];do r.push(this.parseDecorator());while(this.match(26));if(this.match(82))t||this.unexpected(),this.decoratorsEnabledBeforeExport()||this.raise(K.DecoratorExportClass,this.state.startLoc);else if(!this.canHaveLeadingDecorator())throw this.raise(K.UnexpectedLeadingDecorator,this.state.startLoc);return r}parseDecorator(){this.expectOnePlugin(["decorators","decorators-legacy"]);let t=this.startNode();if(this.next(),this.hasPlugin("decorators")){let r=this.state.startLoc,n;if(this.match(10)){let s=this.state.startLoc;this.next(),n=this.parseExpression(),this.expect(11),n=this.wrapParenthesis(s,n);let i=this.state.startLoc;t.expression=this.parseMaybeDecoratorArguments(n,s),this.getPluginOption("decorators","allowCallParenthesized")===!1&&t.expression!==n&&this.raise(K.DecoratorArgumentsOutsideParentheses,i)}else{for(n=this.parseIdentifier(!1);this.eat(16);){let s=this.startNodeAt(r);s.object=n,this.match(139)?(this.classScope.usePrivateName(this.state.value,this.state.startLoc),s.property=this.parsePrivateName()):s.property=this.parseIdentifier(!0),s.computed=!1,n=this.finishNode(s,"MemberExpression")}t.expression=this.parseMaybeDecoratorArguments(n,r)}}else t.expression=this.parseExprSubscripts();return this.finishNode(t,"Decorator")}parseMaybeDecoratorArguments(t,r){if(this.eat(10)){let n=this.startNodeAt(r);return n.callee=t,n.arguments=this.parseCallExpressionArguments(),this.toReferencedList(n.arguments),this.finishNode(n,"CallExpression")}return t}parseBreakContinueStatement(t,r){return this.next(),this.isLineTerminator()?t.label=null:(t.label=this.parseIdentifier(),this.semicolon()),this.verifyBreakContinue(t,r),this.finishNode(t,r?"BreakStatement":"ContinueStatement")}verifyBreakContinue(t,r){let n;for(n=0;n<this.state.labels.length;++n){let s=this.state.labels[n];if((t.label==null||s.name===t.label.name)&&(s.kind!=null&&(r||s.kind===1)||t.label&&r))break}if(n===this.state.labels.length){let s=r?"BreakStatement":"ContinueStatement";this.raise(K.IllegalBreakContinue,t,{type:s})}}parseDebuggerStatement(t){return this.next(),this.semicolon(),this.finishNode(t,"DebuggerStatement")}parseHeaderExpression(){this.expect(10);let t=this.parseExpression();return this.expect(11),t}parseDoWhileStatement(t){return this.next(),this.state.labels.push(vy),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.expect(92),t.test=this.parseHeaderExpression(),this.eat(13),this.finishNode(t,"DoWhileStatement")}parseForStatement(t){this.next(),this.state.labels.push(vy);let r=null;if(this.isContextual(96)&&this.recordAwaitIfAllowed()&&(r=this.state.startLoc,this.next()),this.scope.enter(0),this.expect(10),this.match(13))return r!==null&&this.unexpected(r),this.parseFor(t,null);let n=this.isContextual(100);{let u=this.isAwaitUsing(),f=u||this.isForUsing(),p=n&&this.hasFollowingBindingAtom()||f;if(this.match(74)||this.match(75)||p){let d=this.startNode(),y;u?(y="await using",this.recordAwaitIfAllowed()||this.raise(K.AwaitUsingNotInAsyncContext,this.state.startLoc),this.next()):y=this.state.value,this.next(),this.parseVar(d,!0,y);let m=this.finishNode(d,"VariableDeclaration"),D=this.match(58);return D&&f&&this.raise(K.ForInUsing,m),(D||this.isContextual(102))&&m.declarations.length===1?this.parseForIn(t,m,r):(r!==null&&this.unexpected(r),this.parseFor(t,m))}}let s=this.isContextual(95),i=new _f,o=this.parseExpression(!0,i),l=this.isContextual(102);if(l&&(n&&this.raise(K.ForOfLet,o),r===null&&s&&o.type==="Identifier"&&this.raise(K.ForOfAsync,o)),l||this.match(58)){this.checkDestructuringPrivate(i),this.toAssignable(o,!0);let u=l?"ForOfStatement":"ForInStatement";return this.checkLVal(o,{type:u}),this.parseForIn(t,o,r)}else this.checkExpressionErrors(i,!0);return r!==null&&this.unexpected(r),this.parseFor(t,o)}parseFunctionStatement(t,r,n){return this.next(),this.parseFunction(t,1|(n?2:0)|(r?8:0))}parseIfStatement(t){return this.next(),t.test=this.parseHeaderExpression(),t.consequent=this.parseStatementOrSloppyAnnexBFunctionDeclaration(),t.alternate=this.eat(66)?this.parseStatementOrSloppyAnnexBFunctionDeclaration():null,this.finishNode(t,"IfStatement")}parseReturnStatement(t){return this.prodParam.hasReturn||this.raise(K.IllegalReturn,this.state.startLoc),this.next(),this.isLineTerminator()?t.argument=null:(t.argument=this.parseExpression(),this.semicolon()),this.finishNode(t,"ReturnStatement")}parseSwitchStatement(t){this.next(),t.discriminant=this.parseHeaderExpression();let r=t.cases=[];this.expect(5),this.state.labels.push(c7),this.scope.enter(256);let n;for(let s;!this.match(8);)if(this.match(61)||this.match(65)){let i=this.match(61);n&&this.finishNode(n,"SwitchCase"),r.push(n=this.startNode()),n.consequent=[],this.next(),i?n.test=this.parseExpression():(s&&this.raise(K.MultipleDefaultsInSwitch,this.state.lastTokStartLoc),s=!0,n.test=null),this.expect(14)}else n?n.consequent.push(this.parseStatementListItem()):this.unexpected();return this.scope.exit(),n&&this.finishNode(n,"SwitchCase"),this.next(),this.state.labels.pop(),this.finishNode(t,"SwitchStatement")}parseThrowStatement(t){return this.next(),this.hasPrecedingLineBreak()&&this.raise(K.NewlineAfterThrow,this.state.lastTokEndLoc),t.argument=this.parseExpression(),this.semicolon(),this.finishNode(t,"ThrowStatement")}parseCatchClauseParam(){let t=this.parseBindingAtom();return this.scope.enter(this.options.annexB&&t.type==="Identifier"?8:0),this.checkLVal(t,{type:"CatchClause"},9),t}parseTryStatement(t){if(this.next(),t.block=this.parseBlock(),t.handler=null,this.match(62)){let r=this.startNode();this.next(),this.match(10)?(this.expect(10),r.param=this.parseCatchClauseParam(),this.expect(11)):(r.param=null,this.scope.enter(0)),r.body=this.withSmartMixTopicForbiddingContext(()=>this.parseBlock(!1,!1)),this.scope.exit(),t.handler=this.finishNode(r,"CatchClause")}return t.finalizer=this.eat(67)?this.parseBlock():null,!t.handler&&!t.finalizer&&this.raise(K.NoCatchOrFinally,t),this.finishNode(t,"TryStatement")}parseVarStatement(t,r,n=!1){return this.next(),this.parseVar(t,!1,r,n),this.semicolon(),this.finishNode(t,"VariableDeclaration")}parseWhileStatement(t){return this.next(),t.test=this.parseHeaderExpression(),this.state.labels.push(vy),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.state.labels.pop(),this.finishNode(t,"WhileStatement")}parseWithStatement(t){return this.state.strict&&this.raise(K.StrictWith,this.state.startLoc),this.next(),t.object=this.parseHeaderExpression(),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.finishNode(t,"WithStatement")}parseEmptyStatement(t){return this.next(),this.finishNode(t,"EmptyStatement")}parseLabeledStatement(t,r,n,s){for(let o of this.state.labels)o.name===r&&this.raise(K.LabelRedeclaration,n,{labelName:r});let i=rk(this.state.type)?1:this.match(71)?2:null;for(let o=this.state.labels.length-1;o>=0;o--){let l=this.state.labels[o];if(l.statementStart===t.start)l.statementStart=this.sourceToOffsetPos(this.state.start),l.kind=i;else break}return this.state.labels.push({name:r,kind:i,statementStart:this.sourceToOffsetPos(this.state.start)}),t.body=s&8?this.parseStatementOrSloppyAnnexBFunctionDeclaration(!0):this.parseStatement(),this.state.labels.pop(),t.label=n,this.finishNode(t,"LabeledStatement")}parseExpressionStatement(t,r,n){return t.expression=r,this.semicolon(),this.finishNode(t,"ExpressionStatement")}parseBlock(t=!1,r=!0,n){let s=this.startNode();return t&&this.state.strictErrors.clear(),this.expect(5),r&&this.scope.enter(0),this.parseBlockBody(s,t,!1,8,n),r&&this.scope.exit(),this.finishNode(s,"BlockStatement")}isValidDirective(t){return t.type==="ExpressionStatement"&&t.expression.type==="StringLiteral"&&!t.expression.extra.parenthesized}parseBlockBody(t,r,n,s,i){let o=t.body=[],l=t.directives=[];this.parseBlockOrModuleBlockBody(o,r?l:void 0,n,s,i)}parseBlockOrModuleBlockBody(t,r,n,s,i){let o=this.state.strict,l=!1,u=!1;for(;!this.match(s);){let f=n?this.parseModuleItem():this.parseStatementListItem();if(r&&!u){if(this.isValidDirective(f)){let p=this.stmtToDirective(f);r.push(p),!l&&p.value.value==="use strict"&&(l=!0,this.setStrict(!0));continue}u=!0,this.state.strictErrors.clear()}t.push(f)}i?.call(this,l),o||this.setStrict(!1),this.next()}parseFor(t,r){return t.init=r,this.semicolon(!1),t.test=this.match(13)?null:this.parseExpression(),this.semicolon(!1),t.update=this.match(11)?null:this.parseExpression(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,"ForStatement")}parseForIn(t,r,n){let s=this.match(58);return this.next(),s?n!==null&&this.unexpected(n):t.await=n!==null,r.type==="VariableDeclaration"&&r.declarations[0].init!=null&&(!s||!this.options.annexB||this.state.strict||r.kind!=="var"||r.declarations[0].id.type!=="Identifier")&&this.raise(K.ForInOfLoopInitializer,r,{type:s?"ForInStatement":"ForOfStatement"}),r.type==="AssignmentPattern"&&this.raise(K.InvalidLhs,r,{ancestor:{type:"ForStatement"}}),t.left=r,t.right=s?this.parseExpression():this.parseMaybeAssignAllowIn(),this.expect(11),t.body=this.withSmartMixTopicForbiddingContext(()=>this.parseStatement()),this.scope.exit(),this.state.labels.pop(),this.finishNode(t,s?"ForInStatement":"ForOfStatement")}parseVar(t,r,n,s=!1){let i=t.declarations=[];for(t.kind=n;;){let o=this.startNode();if(this.parseVarId(o,n),o.init=this.eat(29)?r?this.parseMaybeAssignDisallowIn():this.parseMaybeAssignAllowIn():null,o.init===null&&!s&&(o.id.type!=="Identifier"&&!(r&&(this.match(58)||this.isContextual(102)))?this.raise(K.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:"destructuring"}):(n==="const"||n==="using"||n==="await using")&&!(this.match(58)||this.isContextual(102))&&this.raise(K.DeclarationMissingInitializer,this.state.lastTokEndLoc,{kind:n})),i.push(this.finishNode(o,"VariableDeclarator")),!this.eat(12))break}return t}parseVarId(t,r){let n=this.parseBindingAtom();r==="using"||r==="await using"?(n.type==="ArrayPattern"||n.type==="ObjectPattern")&&this.raise(K.UsingDeclarationHasBindingPattern,n.loc.start):n.type==="VoidPattern"&&this.raise(K.UnexpectedVoidPattern,n.loc.start),this.checkLVal(n,{type:"VariableDeclarator"},r==="var"?5:8201),t.id=n}parseAsyncFunctionExpression(t){return this.parseFunction(t,8)}parseFunction(t,r=0){let n=r&2,s=!!(r&1),i=s&&!(r&4),o=!!(r&8);this.initFunction(t,o),this.match(55)&&(n&&this.raise(K.GeneratorInSingleStatementContext,this.state.startLoc),this.next(),t.generator=!0),s&&(t.id=this.parseFunctionId(i));let l=this.state.maybeInArrowParameters;return this.state.maybeInArrowParameters=!1,this.scope.enter(514),this.prodParam.enter(Sf(o,t.generator)),s||(t.id=this.parseFunctionId()),this.parseFunctionParams(t,!1),this.withSmartMixTopicForbiddingContext(()=>{this.parseFunctionBodyAndFinish(t,s?"FunctionDeclaration":"FunctionExpression")}),this.prodParam.exit(),this.scope.exit(),s&&!n&&this.registerFunctionStatementId(t),this.state.maybeInArrowParameters=l,t}parseFunctionId(t){return t||Xt(this.state.type)?this.parseIdentifier():null}parseFunctionParams(t,r){this.expect(10),this.expressionScope.enter(Wk()),t.params=this.parseBindingList(11,41,2|(r?4:0)),this.expressionScope.exit()}registerFunctionStatementId(t){t.id&&this.scope.declareName(t.id.name,!this.options.annexB||this.state.strict||t.generator||t.async?this.scope.treatFunctionsAsVar?5:8201:17,t.id.loc.start)}parseClass(t,r,n){this.next();let s=this.state.strict;return this.state.strict=!0,this.parseClassId(t,r,n),this.parseClassSuper(t),t.body=this.parseClassBody(!!t.superClass,s),this.finishNode(t,r?"ClassDeclaration":"ClassExpression")}isClassProperty(){return this.match(29)||this.match(13)||this.match(8)}isClassMethod(){return this.match(10)}nameIsConstructor(t){return t.type==="Identifier"&&t.name==="constructor"||t.type==="StringLiteral"&&t.value==="constructor"}isNonstaticConstructor(t){return!t.computed&&!t.static&&this.nameIsConstructor(t.key)}parseClassBody(t,r){this.classScope.enter();let n={hadConstructor:!1,hadSuperClass:t},s=[],i=this.startNode();if(i.body=[],this.expect(5),this.withSmartMixTopicForbiddingContext(()=>{for(;!this.match(8);){if(this.eat(13)){if(s.length>0)throw this.raise(K.DecoratorSemicolon,this.state.lastTokEndLoc);continue}if(this.match(26)){s.push(this.parseDecorator());continue}let o=this.startNode();s.length&&(o.decorators=s,this.resetStartLocationFromNode(o,s[0]),s=[]),this.parseClassMember(i,o,n),o.kind==="constructor"&&o.decorators&&o.decorators.length>0&&this.raise(K.DecoratorConstructor,o)}}),this.state.strict=r,this.next(),s.length)throw this.raise(K.TrailingDecorator,this.state.startLoc);return this.classScope.exit(),this.finishNode(i,"ClassBody")}parseClassMemberFromModifier(t,r){let n=this.parseIdentifier(!0);if(this.isClassMethod()){let s=r;return s.kind="method",s.computed=!1,s.key=n,s.static=!1,this.pushClassMethod(t,s,!1,!1,!1,!1),!0}else if(this.isClassProperty()){let s=r;return s.computed=!1,s.key=n,s.static=!1,t.body.push(this.parseClassProperty(s)),!0}return this.resetPreviousNodeTrailingComments(n),!1}parseClassMember(t,r,n){let s=this.isContextual(106);if(s){if(this.parseClassMemberFromModifier(t,r))return;if(this.eat(5)){this.parseClassStaticBlock(t,r);return}}this.parseClassMemberWithIsStatic(t,r,n,s)}parseClassMemberWithIsStatic(t,r,n,s){let i=r,o=r,l=r,u=r,f=r,p=i,d=i;if(r.static=s,this.parsePropertyNamePrefixOperator(r),this.eat(55)){p.kind="method";let v=this.match(139);if(this.parseClassElementName(p),this.parsePostMemberNameModifiers(p),v){this.pushClassPrivateMethod(t,o,!0,!1);return}this.isNonstaticConstructor(i)&&this.raise(K.ConstructorIsGenerator,i.key),this.pushClassMethod(t,i,!0,!1,!1,!1);return}let y=!this.state.containsEsc&&Xt(this.state.type),m=this.parseClassElementName(r),D=y?m.name:null,T=this.isPrivateName(m),S=this.state.startLoc;if(this.parsePostMemberNameModifiers(d),this.isClassMethod()){if(p.kind="method",T){this.pushClassPrivateMethod(t,o,!1,!1);return}let v=this.isNonstaticConstructor(i),E=!1;v&&(i.kind="constructor",n.hadConstructor&&!this.hasPlugin("typescript")&&this.raise(K.DuplicateConstructor,m),v&&this.hasPlugin("typescript")&&r.override&&this.raise(K.OverrideOnConstructor,m),n.hadConstructor=!0,E=n.hadSuperClass),this.pushClassMethod(t,i,!1,!1,v,E)}else if(this.isClassProperty())T?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,l);else if(D==="async"&&!this.isLineTerminator()){this.resetPreviousNodeTrailingComments(m);let v=this.eat(55);d.optional&&this.unexpected(S),p.kind="method";let E=this.match(139);this.parseClassElementName(p),this.parsePostMemberNameModifiers(d),E?this.pushClassPrivateMethod(t,o,v,!0):(this.isNonstaticConstructor(i)&&this.raise(K.ConstructorIsAsync,i.key),this.pushClassMethod(t,i,v,!0,!1,!1))}else if((D==="get"||D==="set")&&!(this.match(55)&&this.isLineTerminator())){this.resetPreviousNodeTrailingComments(m),p.kind=D;let v=this.match(139);this.parseClassElementName(i),v?this.pushClassPrivateMethod(t,o,!1,!1):(this.isNonstaticConstructor(i)&&this.raise(K.ConstructorIsAccessor,i.key),this.pushClassMethod(t,i,!1,!1,!1,!1)),this.checkGetterSetterParams(i)}else if(D==="accessor"&&!this.isLineTerminator()){this.expectPlugin("decoratorAutoAccessors"),this.resetPreviousNodeTrailingComments(m);let v=this.match(139);this.parseClassElementName(l),this.pushClassAccessorProperty(t,f,v)}else this.isLineTerminator()?T?this.pushClassPrivateProperty(t,u):this.pushClassProperty(t,l):this.unexpected()}parseClassElementName(t){let{type:r,value:n}=this.state;if((r===132||r===134)&&t.static&&n==="prototype"&&this.raise(K.StaticPrototype,this.state.startLoc),r===139){n==="constructor"&&this.raise(K.ConstructorClassPrivateField,this.state.startLoc);let s=this.parsePrivateName();return t.key=s,s}return this.parsePropertyName(t),t.key}parseClassStaticBlock(t,r){this.scope.enter(720);let n=this.state.labels;this.state.labels=[],this.prodParam.enter(0);let s=r.body=[];this.parseBlockOrModuleBlockBody(s,void 0,!1,8),this.prodParam.exit(),this.scope.exit(),this.state.labels=n,t.body.push(this.finishNode(r,"StaticBlock")),r.decorators?.length&&this.raise(K.DecoratorStaticBlock,r)}pushClassProperty(t,r){!r.computed&&this.nameIsConstructor(r.key)&&this.raise(K.ConstructorClassField,r.key),t.body.push(this.parseClassProperty(r))}pushClassPrivateProperty(t,r){let n=this.parseClassPrivateProperty(r);t.body.push(n),this.classScope.declarePrivateName(this.getPrivateNameSV(n.key),0,n.key.loc.start)}pushClassAccessorProperty(t,r,n){!n&&!r.computed&&this.nameIsConstructor(r.key)&&this.raise(K.ConstructorClassField,r.key);let s=this.parseClassAccessorProperty(r);t.body.push(s),n&&this.classScope.declarePrivateName(this.getPrivateNameSV(s.key),0,s.key.loc.start)}pushClassMethod(t,r,n,s,i,o){t.body.push(this.parseMethod(r,n,s,i,o,"ClassMethod",!0))}pushClassPrivateMethod(t,r,n,s){let i=this.parseMethod(r,n,s,!1,!1,"ClassPrivateMethod",!0);t.body.push(i);let o=i.kind==="get"?i.static?6:2:i.kind==="set"?i.static?5:1:0;this.declareClassPrivateMethodInScope(i,o)}declareClassPrivateMethodInScope(t,r){this.classScope.declarePrivateName(this.getPrivateNameSV(t.key),r,t.key.loc.start)}parsePostMemberNameModifiers(t){}parseClassPrivateProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassPrivateProperty")}parseClassProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassProperty")}parseClassAccessorProperty(t){return this.parseInitializer(t),this.semicolon(),this.finishNode(t,"ClassAccessorProperty")}parseInitializer(t){this.scope.enter(592),this.expressionScope.enter(JE()),this.prodParam.enter(0),t.value=this.eat(29)?this.parseMaybeAssignAllowIn():null,this.expressionScope.exit(),this.prodParam.exit(),this.scope.exit()}parseClassId(t,r,n,s=8331){if(Xt(this.state.type))t.id=this.parseIdentifier(),r&&this.declareNameFromIdentifier(t.id,s);else if(n||!r)t.id=null;else throw this.raise(K.MissingClassName,this.state.startLoc)}parseClassSuper(t){t.superClass=this.eat(81)?this.parseExprSubscripts():null}parseExport(t,r){let n=this.parseMaybeImportPhase(t,!0),s=this.maybeParseExportDefaultSpecifier(t,n),i=!s||this.eat(12),o=i&&this.eatExportStar(t),l=o&&this.maybeParseExportNamespaceSpecifier(t),u=i&&(!l||this.eat(12)),f=s||o;if(o&&!l){if(s&&this.unexpected(),r)throw this.raise(K.UnsupportedDecoratorExport,t);return this.parseExportFrom(t,!0),this.sawUnambiguousESM=!0,this.finishNode(t,"ExportAllDeclaration")}let p=this.maybeParseExportNamedSpecifiers(t);s&&i&&!o&&!p&&this.unexpected(null,5),l&&u&&this.unexpected(null,98);let d;if(f||p){if(d=!1,r)throw this.raise(K.UnsupportedDecoratorExport,t);this.parseExportFrom(t,f)}else d=this.maybeParseExportDeclaration(t);if(f||p||d){let y=t;if(this.checkExport(y,!0,!1,!!y.source),y.declaration?.type==="ClassDeclaration")this.maybeTakeDecorators(r,y.declaration,y);else if(r)throw this.raise(K.UnsupportedDecoratorExport,t);return this.sawUnambiguousESM=!0,this.finishNode(y,"ExportNamedDeclaration")}if(this.eat(65)){let y=t,m=this.parseExportDefaultExpression();if(y.declaration=m,m.type==="ClassDeclaration")this.maybeTakeDecorators(r,m,y);else if(r)throw this.raise(K.UnsupportedDecoratorExport,t);return this.checkExport(y,!0,!0),this.sawUnambiguousESM=!0,this.finishNode(y,"ExportDefaultDeclaration")}throw this.unexpected(null,5)}eatExportStar(t){return this.eat(55)}maybeParseExportDefaultSpecifier(t,r){if(r||this.isExportDefaultSpecifier()){this.expectPlugin("exportDefaultFrom",r?.loc.start);let n=r||this.parseIdentifier(!0),s=this.startNodeAtNode(n);return s.exported=n,t.specifiers=[this.finishNode(s,"ExportDefaultSpecifier")],!0}return!1}maybeParseExportNamespaceSpecifier(t){if(this.isContextual(93)){t.specifiers??(t.specifiers=[]);let r=this.startNodeAt(this.state.lastTokStartLoc);return this.next(),r.exported=this.parseModuleExportName(),t.specifiers.push(this.finishNode(r,"ExportNamespaceSpecifier")),!0}return!1}maybeParseExportNamedSpecifiers(t){if(this.match(5)){let r=t;r.specifiers||(r.specifiers=[]);let n=r.exportKind==="type";return r.specifiers.push(...this.parseExportSpecifiers(n)),r.source=null,r.attributes=[],r.declaration=null,!0}return!1}maybeParseExportDeclaration(t){return this.shouldParseExportDeclaration()?(t.specifiers=[],t.source=null,t.attributes=[],t.declaration=this.parseExportDeclaration(t),!0):!1}isAsyncFunction(){if(!this.isContextual(95))return!1;let t=this.nextTokenInLineStart();return this.isUnparsedContextual(t,"function")}parseExportDefaultExpression(){let t=this.startNode();if(this.match(68))return this.next(),this.parseFunction(t,5);if(this.isAsyncFunction())return this.next(),this.next(),this.parseFunction(t,13);if(this.match(80))return this.parseClass(t,!0,!0);if(this.match(26))return this.hasPlugin("decorators")&&this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(K.DecoratorBeforeExport,this.state.startLoc),this.parseClass(this.maybeTakeDecorators(this.parseDecorators(!1),this.startNode()),!0,!0);if(this.match(75)||this.match(74)||this.isLet()||this.isUsing()||this.isAwaitUsing())throw this.raise(K.UnsupportedDefaultExport,this.state.startLoc);let r=this.parseMaybeAssignAllowIn();return this.semicolon(),r}parseExportDeclaration(t){return this.match(80)?this.parseClass(this.startNode(),!0,!1):this.parseStatementListItem()}isExportDefaultSpecifier(){let{type:t}=this.state;if(Xt(t)){if(t===95&&!this.state.containsEsc||t===100)return!1;if((t===130||t===129)&&!this.state.containsEsc){let s=this.nextTokenStart(),i=this.input.charCodeAt(s);if(i===123||this.chStartsBindingIdentifier(i,s)&&!this.input.startsWith("from",s))return this.expectOnePlugin(["flow","typescript"]),!1}}else if(!this.match(65))return!1;let r=this.nextTokenStart(),n=this.isUnparsedContextual(r,"from");if(this.input.charCodeAt(r)===44||Xt(this.state.type)&&n)return!0;if(this.match(65)&&n){let s=this.input.charCodeAt(this.nextTokenStartSince(r+4));return s===34||s===39}return!1}parseExportFrom(t,r){this.eatContextual(98)?(t.source=this.parseImportSource(),this.checkExport(t),this.maybeParseImportAttributes(t),this.checkJSONModuleImport(t)):r&&this.unexpected(),this.semicolon()}shouldParseExportDeclaration(){let{type:t}=this.state;return t===26&&(this.expectOnePlugin(["decorators","decorators-legacy"]),this.hasPlugin("decorators"))?(this.getPluginOption("decorators","decoratorsBeforeExport")===!0&&this.raise(K.DecoratorBeforeExport,this.state.startLoc),!0):this.isUsing()?(this.raise(K.UsingDeclarationExport,this.state.startLoc),!0):this.isAwaitUsing()?(this.raise(K.UsingDeclarationExport,this.state.startLoc),!0):t===74||t===75||t===68||t===80||this.isLet()||this.isAsyncFunction()}checkExport(t,r,n,s){if(r){if(n){if(this.checkDuplicateExports(t,"default"),this.hasPlugin("exportDefaultFrom")){let i=t.declaration;i.type==="Identifier"&&i.name==="from"&&i.end-i.start===4&&!i.extra?.parenthesized&&this.raise(K.ExportDefaultFromAsIdentifier,i)}}else if(t.specifiers?.length)for(let i of t.specifiers){let{exported:o}=i,l=o.type==="Identifier"?o.name:o.value;if(this.checkDuplicateExports(i,l),!s&&i.local){let{local:u}=i;u.type!=="Identifier"?this.raise(K.ExportBindingIsString,i,{localName:u.value,exportName:l}):(this.checkReservedWord(u.name,u.loc.start,!0,!1),this.scope.checkLocalExport(u))}}else if(t.declaration){let i=t.declaration;if(i.type==="FunctionDeclaration"||i.type==="ClassDeclaration"){let{id:o}=i;if(!o)throw new Error("Assertion failure");this.checkDuplicateExports(t,o.name)}else if(i.type==="VariableDeclaration")for(let o of i.declarations)this.checkDeclaration(o.id)}}}checkDeclaration(t){if(t.type==="Identifier")this.checkDuplicateExports(t,t.name);else if(t.type==="ObjectPattern")for(let r of t.properties)this.checkDeclaration(r);else if(t.type==="ArrayPattern")for(let r of t.elements)r&&this.checkDeclaration(r);else t.type==="ObjectProperty"?this.checkDeclaration(t.value):t.type==="RestElement"?this.checkDeclaration(t.argument):t.type==="AssignmentPattern"&&this.checkDeclaration(t.left)}checkDuplicateExports(t,r){this.exportedIdentifiers.has(r)&&(r==="default"?this.raise(K.DuplicateDefaultExport,t):this.raise(K.DuplicateExport,t,{exportName:r})),this.exportedIdentifiers.add(r)}parseExportSpecifiers(t){let r=[],n=!0;for(this.expect(5);!this.eat(8);){if(n)n=!1;else if(this.expect(12),this.eat(8))break;let s=this.isContextual(130),i=this.match(134),o=this.startNode();o.local=this.parseModuleExportName(),r.push(this.parseExportSpecifier(o,i,t,s))}return r}parseExportSpecifier(t,r,n,s){return this.eatContextual(93)?t.exported=this.parseModuleExportName():r?t.exported=this.cloneStringLiteral(t.local):t.exported||(t.exported=this.cloneIdentifier(t.local)),this.finishNode(t,"ExportSpecifier")}parseModuleExportName(){if(this.match(134)){let t=this.parseStringLiteral(this.state.value),r=p7.exec(t.value);return r&&this.raise(K.ModuleExportNameHasLoneSurrogate,t,{surrogateCharCode:r[0].charCodeAt(0)}),t}return this.parseIdentifier(!0)}isJSONModuleImport(t){return t.assertions!=null?t.assertions.some(({key:r,value:n})=>n.value==="json"&&(r.type==="Identifier"?r.name==="type":r.value==="type")):!1}checkImportReflection(t){let{specifiers:r}=t,n=r.length===1?r[0].type:null;t.phase==="source"?n!=="ImportDefaultSpecifier"&&this.raise(K.SourcePhaseImportRequiresDefault,r[0].loc.start):t.phase==="defer"?n!=="ImportNamespaceSpecifier"&&this.raise(K.DeferImportRequiresNamespace,r[0].loc.start):t.module&&(n!=="ImportDefaultSpecifier"&&this.raise(K.ImportReflectionNotBinding,r[0].loc.start),t.assertions?.length>0&&this.raise(K.ImportReflectionHasAssertion,r[0].loc.start))}checkJSONModuleImport(t){if(this.isJSONModuleImport(t)&&t.type!=="ExportAllDeclaration"){let{specifiers:r}=t;if(r!=null){let n=r.find(s=>{let i;if(s.type==="ExportSpecifier"?i=s.local:s.type==="ImportSpecifier"&&(i=s.imported),i!==void 0)return i.type==="Identifier"?i.name!=="default":i.value!=="default"});n!==void 0&&this.raise(K.ImportJSONBindingNotDefault,n.loc.start)}}}isPotentialImportPhase(t){return t?!1:this.isContextual(105)||this.isContextual(97)}applyImportPhase(t,r,n,s){r||(this.hasPlugin("importReflection")&&(t.module=!1),n==="source"?(this.expectPlugin("sourcePhaseImports",s),t.phase="source"):n==="defer"?(this.expectPlugin("deferredImportEvaluation",s),t.phase="defer"):this.hasPlugin("sourcePhaseImports")&&(t.phase=null))}parseMaybeImportPhase(t,r){if(!this.isPotentialImportPhase(r))return this.applyImportPhase(t,r,null),null;let n=this.startNode(),s=this.parseIdentifierName(!0),{type:i}=this.state;return(ks(i)?i!==98||this.lookaheadCharCode()===102:i!==12)?(this.applyImportPhase(t,r,s,n.loc.start),null):(this.applyImportPhase(t,r,null),this.createIdentifier(n,s))}isPrecedingIdImportPhase(t){let{type:r}=this.state;return Xt(r)?r!==98||this.lookaheadCharCode()===102:r!==12}parseImport(t){return this.match(134)?this.parseImportSourceAndAttributes(t):this.parseImportSpecifiersAndAfter(t,this.parseMaybeImportPhase(t,!1))}parseImportSpecifiersAndAfter(t,r){t.specifiers=[];let n=!this.maybeParseDefaultImportSpecifier(t,r)||this.eat(12),s=n&&this.maybeParseStarImportSpecifier(t);return n&&!s&&this.parseNamedImportSpecifiers(t),this.expectContextual(98),this.parseImportSourceAndAttributes(t)}parseImportSourceAndAttributes(t){return t.specifiers??(t.specifiers=[]),t.source=this.parseImportSource(),this.maybeParseImportAttributes(t),this.checkImportReflection(t),this.checkJSONModuleImport(t),this.semicolon(),this.sawUnambiguousESM=!0,this.finishNode(t,"ImportDeclaration")}parseImportSource(){return this.match(134)||this.unexpected(),this.parseExprAtom()}parseImportSpecifierLocal(t,r,n){r.local=this.parseIdentifier(),t.specifiers.push(this.finishImportSpecifier(r,n))}finishImportSpecifier(t,r,n=8201){return this.checkLVal(t.local,{type:r},n),this.finishNode(t,r)}parseImportAttributes(){this.expect(5);let t=[],r=new Set;do{if(this.match(8))break;let n=this.startNode(),s=this.state.value;if(r.has(s)&&this.raise(K.ModuleAttributesWithDuplicateKeys,this.state.startLoc,{key:s}),r.add(s),this.match(134)?n.key=this.parseStringLiteral(s):n.key=this.parseIdentifier(!0),this.expect(14),!this.match(134))throw this.raise(K.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return this.expect(8),t}parseModuleAttributes(){let t=[],r=new Set;do{let n=this.startNode();if(n.key=this.parseIdentifier(!0),n.key.name!=="type"&&this.raise(K.ModuleAttributeDifferentFromType,n.key),r.has(n.key.name)&&this.raise(K.ModuleAttributesWithDuplicateKeys,n.key,{key:n.key.name}),r.add(n.key.name),this.expect(14),!this.match(134))throw this.raise(K.ModuleAttributeInvalidValue,this.state.startLoc);n.value=this.parseStringLiteral(this.state.value),t.push(this.finishNode(n,"ImportAttribute"))}while(this.eat(12));return t}maybeParseImportAttributes(t){let r;if(this.match(76)){if(this.hasPrecedingLineBreak()&&this.lookaheadCharCode()===40)return;this.next(),r=this.parseImportAttributes()}else this.isContextual(94)&&!this.hasPrecedingLineBreak()?(this.hasPlugin("deprecatedImportAssert")||this.raise(K.ImportAttributesUseAssert,this.state.startLoc),this.addExtra(t,"deprecatedAssertSyntax",!0),this.next(),r=this.parseImportAttributes()):r=[];t.attributes=r}maybeParseDefaultImportSpecifier(t,r){if(r){let n=this.startNodeAtNode(r);return n.local=r,t.specifiers.push(this.finishImportSpecifier(n,"ImportDefaultSpecifier")),!0}else if(ks(this.state.type))return this.parseImportSpecifierLocal(t,this.startNode(),"ImportDefaultSpecifier"),!0;return!1}maybeParseStarImportSpecifier(t){if(this.match(55)){let r=this.startNode();return this.next(),this.expectContextual(93),this.parseImportSpecifierLocal(t,r,"ImportNamespaceSpecifier"),!0}return!1}parseNamedImportSpecifiers(t){let r=!0;for(this.expect(5);!this.eat(8);){if(r)r=!1;else{if(this.eat(14))throw this.raise(K.DestructureNamedImport,this.state.startLoc);if(this.expect(12),this.eat(8))break}let n=this.startNode(),s=this.match(134),i=this.isContextual(130);n.imported=this.parseModuleExportName();let o=this.parseImportSpecifier(n,s,t.importKind==="type"||t.importKind==="typeof",i,void 0);t.specifiers.push(o)}}parseImportSpecifier(t,r,n,s,i){if(this.eatContextual(93))t.local=this.parseIdentifier();else{let{imported:o}=t;if(r)throw this.raise(K.ImportBindingIsString,t,{importName:o.value});this.checkReservedWord(o.name,t.loc.start,!0,!0),t.local||(t.local=this.cloneIdentifier(o))}return this.finishImportSpecifier(t,"ImportSpecifier",i)}isThisParam(t){return t.type==="Identifier"&&t.name==="this"}},KE=class extends h7{constructor(t,r,n){let s=HF(t);super(s,r),this.options=s,this.initializeScopes(),this.plugins=n,this.filename=s.sourceFilename,this.startIndex=s.startIndex;let i=0;s.allowAwaitOutsideFunction&&(i|=1),s.allowReturnOutsideFunction&&(i|=2),s.allowImportExportEverywhere&&(i|=8),s.allowSuperOutsideMethod&&(i|=16),s.allowUndeclaredExports&&(i|=64),s.allowNewTargetOutsideFunction&&(i|=4),s.allowYieldOutsideFunction&&(i|=32),s.ranges&&(i|=128),s.tokens&&(i|=256),s.createImportExpressions&&(i|=512),s.createParenthesizedExpressions&&(i|=1024),s.errorRecovery&&(i|=2048),s.attachComment&&(i|=4096),s.annexB&&(i|=8192),this.optionFlags=i}getScopeHandler(){return J2}parse(){this.enterInitialScopes();let t=this.startNode(),r=this.startNode();this.nextToken(),t.errors=null;let n=this.parseTopLevel(t,r);return n.errors=this.state.errors,n.comments.length=this.state.commentsLen,n}};function zE(e,t){if(t?.sourceType==="unambiguous"){t=Object.assign({},t);try{t.sourceType="module";let r=vc(t,e),n=r.parse();if(r.sawUnambiguousESM)return n;if(r.ambiguousScriptDifferentAst)try{return t.sourceType="script",vc(t,e).parse()}catch{}else n.program.sourceType="script";return n}catch(r){try{return t.sourceType="script",vc(t,e).parse()}catch{}throw r}}else return vc(t,e).parse()}function WE(e,t){let r=vc(t,e);return r.options.strictMode&&(r.state.strict=!0),r.getExpression()}function f7(e){let t={};for(let r of Object.keys(e))t[r]=FE(e[r]);return t}f7(YF);function vc(e,t){let r=KE,n=new Map;if(e?.plugins){for(let s of e.plugins){let i,o;typeof s=="string"?i=s:[i,o]=s,n.has(i)||n.set(i,o||{})}o7(n),r=m7(n)}return new r(e,t,n)}var Ex=new Map;function m7(e){let t=[];for(let s of u7)e.has(s)&&t.push(s);let r=t.join("|"),n=Ex.get(r);if(!n){n=KE;for(let s of t)n=qE[s](n);Ex.set(r,n)}return n}function VE(e){return(t,r,n)=>{let s=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,o=r;for(;o>=0&&o<i;){let l=t.charAt(o);if(e instanceof RegExp){if(!e.test(l))return o}else if(!e.includes(l))return o;s?o--:o++}return o===-1||o===i?o:!1}}var y7=VE(" "),g7=VE(/[^\n\r]/u);function D7(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 x7=D7,bx=e=>e===`
|
|
37
|
-
`||e==="\r"||e==="\u2028"||e==="\u2029";function T7(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let s=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&s===`
|
|
38
|
-
`)return t-2;if(bx(s))return t-1}else{if(s==="\r"&&e.charAt(t+1)===`
|
|
39
|
-
`)return t+2;if(bx(s))return t+1}return t}var E7=T7;function b7(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?g7(e,t):t}var C7=b7;function A7(e,t){let r=null,n=t;for(;n!==r;)r=n,n=y7(e,n),n=x7(e,n),n=C7(e,n),n=E7(e,n);return n}var v7=A7;function S7(e){let t=[];for(let r of e)try{return r()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}function _7(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
40
|
-
`);return t===-1?e:e.slice(0,t)}var HE=_7,R2=(e,t)=>(r,n,...s)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,s),F7=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},k7=R2("findLast",function(){if(Array.isArray(this))return F7}),w7=k7;function P7(e){return this[e<0?this.length+e:e]}var N7=R2("at",function(){if(Array.isArray(this)||typeof this=="string")return P7}),I7=N7;function Bi(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(Bi(r),t):t}function Zs(e){return e.range?.[1]??e.end}function B7(e){let t=new Set(e);return r=>t.has(r?.type)}var U2=B7,L7=U2(["Block","CommentBlock","MultiLine"]),q2=L7,O7=U2(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),$7=O7,_y=new WeakMap;function M7(e){return _y.has(e)||_y.set(e,q2(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),_y.get(e)}var j7=M7;function J7(e){if(!q2(e))return!1;let t=`*${e.value}*`.split(`
|
|
41
|
-
`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Fy=new WeakMap;function R7(e){return Fy.has(e)||Fy.set(e,J7(e)),Fy.get(e)}var Cx=R7;function U7(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&Zs(n)===Bi(t)&&Cx(n)&&Cx(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[Bi(n),Zs(t)]),!$7(n)&&!q2(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var q7=U7;function K7(e){return e!==null&&typeof e=="object"}var z7=K7,cc=null;function Mc(e){if(cc!==null&&typeof cc.property){let t=cc;return cc=Mc.prototype=null,t}return cc=Mc.prototype=e??Object.create(null),new Mc}var W7=10;for(let e=0;e<=W7;e++)Mc();function V7(e){return Mc(e)}function H7(e,t="type"){V7(e);function r(n){let s=n[t],i=e[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var X7=H7,j=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],G7={AccessorProperty:j[0],AnyTypeAnnotation:j[1],ArgumentPlaceholder:j[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:j[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:j[3],AsExpression:j[4],AssignmentExpression:j[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:j[6],BigIntLiteral:j[1],BigIntLiteralTypeAnnotation:j[1],BigIntTypeAnnotation:j[1],BinaryExpression:j[5],BindExpression:["object","callee"],BlockStatement:j[7],BooleanLiteral:j[1],BooleanLiteralTypeAnnotation:j[1],BooleanTypeAnnotation:j[1],BreakStatement:j[8],CallExpression:j[9],CatchClause:["param","body"],ChainExpression:j[3],ClassAccessorProperty:j[0],ClassBody:j[10],ClassDeclaration:j[11],ClassExpression:j[11],ClassImplements:j[12],ClassMethod:j[13],ClassPrivateMethod:j[13],ClassPrivateProperty:j[14],ClassProperty:j[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:j[15],ConditionalExpression:j[16],ConditionalTypeAnnotation:j[17],ContinueStatement:j[8],DebuggerStatement:j[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:j[18],DeclareEnum:j[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:j[20],DeclareFunction:["id","predicate"],DeclareHook:j[21],DeclareInterface:j[22],DeclareModule:j[19],DeclareModuleExports:j[23],DeclareNamespace:j[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:j[24],DeclareVariable:j[21],Decorator:j[3],Directive:j[18],DirectiveLiteral:j[1],DoExpression:j[10],DoWhileStatement:j[25],EmptyStatement:j[1],EmptyTypeAnnotation:j[1],EnumBigIntBody:j[26],EnumBigIntMember:j[27],EnumBooleanBody:j[26],EnumBooleanMember:j[27],EnumDeclaration:j[19],EnumDefaultedMember:j[21],EnumNumberBody:j[26],EnumNumberMember:j[27],EnumStringBody:j[26],EnumStringMember:j[27],EnumSymbolBody:j[26],ExistsTypeAnnotation:j[1],ExperimentalRestProperty:j[6],ExperimentalSpreadProperty:j[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:j[28],ExportNamedDeclaration:j[20],ExportNamespaceSpecifier:j[28],ExportSpecifier:["local","exported"],ExpressionStatement:j[3],File:["program"],ForInStatement:j[29],ForOfStatement:j[29],ForStatement:["init","test","update","body"],FunctionDeclaration:j[30],FunctionExpression:j[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:j[15],GenericTypeAnnotation:j[12],HookDeclaration:j[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:j[16],ImportAttribute:j[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:j[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:j[33],ImportSpecifier:["imported","local"],IndexedAccessType:j[34],InferredPredicate:j[1],InferTypeAnnotation:j[35],InterfaceDeclaration:j[22],InterfaceExtends:j[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:j[1],IntersectionTypeAnnotation:j[36],JsExpressionRoot:j[37],JsonRoot:j[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:j[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:j[1],JSXExpressionContainer:j[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:j[1],JSXMemberExpression:j[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:j[1],JSXSpreadAttribute:j[6],JSXSpreadChild:j[3],JSXText:j[1],KeyofTypeAnnotation:j[6],LabeledStatement:["label","body"],Literal:j[1],LogicalExpression:j[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:j[21],MatchExpression:j[39],MatchExpressionCase:j[40],MatchIdentifierPattern:j[21],MatchLiteralPattern:j[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:j[6],MatchStatement:j[39],MatchStatementCase:j[40],MatchUnaryPattern:j[6],MatchWildcardPattern:j[1],MemberExpression:j[38],MetaProperty:["meta","property"],MethodDefinition:j[42],MixedTypeAnnotation:j[1],ModuleExpression:j[10],NeverTypeAnnotation:j[1],NewExpression:j[9],NGChainedExpression:j[43],NGEmptyExpression:j[1],NGMicrosyntax:j[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:j[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:j[32],NGPipeExpression:["left","right","arguments"],NGRoot:j[37],NullableTypeAnnotation:j[23],NullLiteral:j[1],NullLiteralTypeAnnotation:j[1],NumberLiteralTypeAnnotation:j[1],NumberTypeAnnotation:j[1],NumericLiteral:j[1],ObjectExpression:["properties"],ObjectMethod:j[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:j[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:j[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:j[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:j[9],OptionalIndexedAccessType:j[34],OptionalMemberExpression:j[38],ParenthesizedExpression:j[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:j[1],PipelineTopicExpression:j[3],Placeholder:j[1],PrivateIdentifier:j[1],PrivateName:j[21],Program:j[7],Property:j[32],PropertyDefinition:j[14],QualifiedTypeIdentifier:j[44],QualifiedTypeofIdentifier:j[44],RegExpLiteral:j[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:j[6],SatisfiesExpression:j[4],SequenceExpression:j[43],SpreadElement:j[6],StaticBlock:j[10],StringLiteral:j[1],StringLiteralTypeAnnotation:j[1],StringTypeAnnotation:j[1],Super:j[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:j[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:j[1],TemplateLiteral:["quasis","expressions"],ThisExpression:j[1],ThisTypeAnnotation:j[1],ThrowStatement:j[6],TopicReference:j[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:j[45],TSAbstractKeyword:j[1],TSAbstractMethodDefinition:j[32],TSAbstractPropertyDefinition:j[45],TSAnyKeyword:j[1],TSArrayType:j[2],TSAsExpression:j[4],TSAsyncKeyword:j[1],TSBigIntKeyword:j[1],TSBooleanKeyword:j[1],TSCallSignatureDeclaration:j[46],TSClassImplements:j[47],TSConditionalType:j[17],TSConstructorType:j[46],TSConstructSignatureDeclaration:j[46],TSDeclareFunction:j[31],TSDeclareKeyword:j[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:j[26],TSEnumDeclaration:j[19],TSEnumMember:["id","initializer"],TSExportAssignment:j[3],TSExportKeyword:j[1],TSExternalModuleReference:j[3],TSFunctionType:j[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:j[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:j[35],TSInstantiationExpression:j[47],TSInterfaceBody:j[10],TSInterfaceDeclaration:j[22],TSInterfaceHeritage:j[47],TSIntersectionType:j[36],TSIntrinsicKeyword:j[1],TSJSDocAllType:j[1],TSJSDocNonNullableType:j[23],TSJSDocNullableType:j[23],TSJSDocUnknownType:j[1],TSLiteralType:j[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:j[10],TSModuleDeclaration:j[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:j[21],TSNeverKeyword:j[1],TSNonNullExpression:j[3],TSNullKeyword:j[1],TSNumberKeyword:j[1],TSObjectKeyword:j[1],TSOptionalType:j[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:j[23],TSPrivateKeyword:j[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:j[1],TSPublicKeyword:j[1],TSQualifiedName:j[5],TSReadonlyKeyword:j[1],TSRestType:j[23],TSSatisfiesExpression:j[4],TSStaticKeyword:j[1],TSStringKeyword:j[1],TSSymbolKeyword:j[1],TSTemplateLiteralType:["quasis","types"],TSThisType:j[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:j[23],TSTypeAssertion:j[4],TSTypeLiteral:j[26],TSTypeOperator:j[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:j[48],TSTypeParameterInstantiation:j[48],TSTypePredicate:j[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:j[1],TSUnionType:j[36],TSUnknownKeyword:j[1],TSVoidKeyword:j[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:j[24],TypeAnnotation:j[23],TypeCastExpression:j[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:j[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:j[48],TypeParameterInstantiation:j[48],TypePredicate:j[49],UnaryExpression:j[6],UndefinedTypeAnnotation:j[1],UnionTypeAnnotation:j[36],UnknownTypeAnnotation:j[1],UpdateExpression:j[6],V8IntrinsicIdentifier:j[1],VariableDeclaration:["declarations"],VariableDeclarator:j[27],Variance:j[1],VoidPattern:j[1],VoidTypeAnnotation:j[1],WhileStatement:j[25],WithStatement:["object","body"],YieldExpression:j[6]},Q7=X7(G7),Y7=Q7;function Ff(e,t){if(!z7(e))return e;if(Array.isArray(e)){for(let n=0;n<e.length;n++)e[n]=Ff(e[n],t);return e}if(t.onEnter){let n=t.onEnter(e)??e;if(n!==e)return Ff(n,t);e=n}let r=Y7(e);for(let n=0;n<r.length;n++)e[r[n]]=Ff(e[r[n]],t);return t.onLeave&&(e=t.onLeave(e)||e),e}var Z7=Ff;U2(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function ew(e,t){let{parser:r,text:n}=t,{comments:s}=e,i=r==="oxc"&&t.oxcAstType==="ts";q7(s);let o=e.type==="File"?e.program:e;o.interpreter&&(s.unshift(o.interpreter),delete o.interpreter),i&&e.hashbang&&(s.unshift(e.hashbang),delete e.hashbang),e.type==="Program"&&(e.range=[0,n.length]);let l;return e=Z7(e,{onEnter(u){switch(u.type){case"ParenthesizedExpression":{let{expression:f}=u,p=Bi(u);if(f.type==="TypeCastExpression")return f.range=[p,Zs(u)],f;let d=!1;if(!i){if(!l){l=[];for(let m of s)j7(m)&&l.push(Zs(m))}let y=w7(0,l,m=>m<=p);d=y&&n.slice(y,p).trim().length===0}return d?void 0:(f.extra={...f.extra,parenthesized:!0},f)}case"TemplateLiteral":if(u.expressions.length!==u.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||i){let f=Bi(u)+1,p=Zs(u)-(u.tail?1:2);u.range=[f,p]}break;case"VariableDeclaration":{let f=I7(0,u.declarations,-1);f?.init&&n[Zs(f)]!==";"&&(u.range=[Bi(u),Zs(f)]);break}case"TSParenthesizedType":return u.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(u.types.length===1)return u.types[0];break;case"ImportExpression":r==="hermes"&&u.attributes&&!u.options&&(u.options=u.attributes);break}},onLeave(u){switch(u.type){case"LogicalExpression":if(XE(u))return x0(u);break;case"TSImportType":!u.source&&u.argument.type==="TSLiteralType"&&(u.source=u.argument.literal,delete u.argument);break}}}),e}function XE(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function x0(e){return XE(e)?x0({type:"LogicalExpression",operator:e.operator,left:x0({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Bi(e.left),Zs(e.right.left)]}),right:e.right.right,range:[Bi(e),Zs(e)]}):e}var tw=ew;function rw(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var GE=rw,Ax="Unexpected parseExpression() input: ";function nw(e){let{message:t,loc:r,reasonCode:n}=e;if(!r)return e;let{line:s,column:i}=r,o=e;(n==="MissingPlugin"||n==="MissingOneOfPlugins")&&(t="Unexpected token.",o=void 0);let l=` (${s}:${i})`;return t.endsWith(l)&&(t=t.slice(0,-l.length)),t.startsWith(Ax)&&(t=t.slice(Ax.length)),GE(t,{loc:{start:{line:s,column:i+1}},cause:o})}var QE=nw,sw=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},iw=R2("replaceAll",function(){if(typeof this=="string")return sw}),af=iw,aw=/\*\/$/,ow=/^\/\*\*?/,uw=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,lw=/(^|\s+)\/\/([^\n\r]*)/g,vx=/^(\r?\n)+/,cw=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Sx=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,pw=/(\r?\n|^) *\* ?/g,dw=[];function hw(e){let t=e.match(uw);return t?t[0].trimStart():""}function fw(e){e=af(0,e.replace(ow,"").replace(aw,""),pw,"$1");let t="";for(;t!==e;)t=e,e=af(0,e,cw,`
|
|
42
|
-
$1 $2
|
|
43
|
-
`);e=e.replace(vx,"").trimEnd();let r=Object.create(null),n=af(0,e,Sx,"").replace(vx,"").trimEnd(),s;for(;s=Sx.exec(e);){let i=af(0,s[2],lw,"");if(typeof r[s[1]]=="string"||Array.isArray(r[s[1]])){let o=r[s[1]];r[s[1]]=[...dw,...Array.isArray(o)?o:[o],i]}else r[s[1]]=i}return{comments:n,pragmas:r}}var mw=["noformat","noprettier"],yw=["format","prettier"];function YE(e){let t=HE(e);t&&(e=e.slice(t.length+1));let r=hw(e),{pragmas:n,comments:s}=fw(r);return{shebang:t,text:e,pragmas:n,comments:s}}function gw(e){let{pragmas:t}=YE(e);return yw.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function Dw(e){let{pragmas:t}=YE(e);return mw.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function xw(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:gw,hasIgnorePragma:Dw,locStart:Bi,locEnd:Zs,...e}}var pp=xw,K2="module",ZE="commonjs";function Tw(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return K2;if(/\.(?:cjs|cts)$/iu.test(e))return ZE}}function Ew(e,t){let{type:r="JsExpressionRoot",rootMarker:n,text:s}=t,{tokens:i,comments:o}=e;return delete e.tokens,delete e.comments,{tokens:i,comments:o,type:r,node:e,range:[0,s.length],rootMarker:n}}var eb=Ew,Zu=e=>pp(Sw(e)),bw={sourceType:K2,allowImportExportEverywhere:!0,allowReturnOutsideFunction:!0,allowNewTargetOutsideFunction:!0,allowSuperOutsideMethod:!0,allowUndeclaredExports:!0,errorRecovery:!0,createParenthesizedExpressions:!0,attachComment:!1,plugins:["doExpressions","exportDefaultFrom","functionBind","functionSent","throwExpressions","partialApplication","decorators","moduleBlocks","asyncDoExpressions","destructuringPrivate","decoratorAutoAccessors","sourcePhaseImports","deferredImportEvaluation",["optionalChainingAssign",{version:"2023-07"}],["discardBinding",{syntaxType:"void"}]],tokens:!1,ranges:!1},_x="v8intrinsic",Fx=[["pipelineOperator",{proposal:"hack",topicToken:"%"}],["pipelineOperator",{proposal:"fsharp"}]],$i=(e,t=bw)=>({...t,plugins:[...t.plugins,...e]}),Cw=/@(?:no)?flow\b/u;function Aw(e,t){if(t?.endsWith(".js.flow"))return!0;let r=HE(e);r&&(e=e.slice(r.length));let n=v7(e,0);return n!==!1&&(e=e.slice(0,n)),Cw.test(e)}function vw(e,t,r){let n=e(t,r),s=n.errors.find(i=>!_w.has(i.reasonCode));if(s)throw s;return n}function Sw({isExpression:e=!1,optionsCombinations:t}){return(r,n={})=>{let{filepath:s}=n;if(typeof s!="string"&&(s=void 0),(n.parser==="babel"||n.parser==="__babel_estree")&&Aw(r,s))return n.parser="babel-flow",rb.parse(r,n);let i=t,o=n.__babelSourceType??Tw(s);o&&o!==K2&&(i=i.map(p=>({...p,sourceType:o,...o===ZE?{allowReturnOutsideFunction:void 0,allowNewTargetOutsideFunction:void 0}:void 0})));let l=/%[A-Z]/u.test(r);r.includes("|>")?i=(l?[...Fx,_x]:Fx).flatMap(p=>i.map(d=>$i([p],d))):l&&(i=i.map(p=>$i([_x],p)));let u=e?WE:zE,f;try{f=S7(i.map(p=>()=>vw(u,r,p)))}catch({errors:[p]}){throw QE(p)}return e&&(f=eb(f,{text:r,rootMarker:n.rootMarker})),tw(f,{text:r})}}var _w=new Set(["StrictNumericEscape","StrictWith","StrictOctalLiteral","StrictDelete","StrictEvalArguments","StrictEvalArgumentsBinding","StrictFunction","ForInOfLoopInitializer","ConstructorHasTypeParameters","UnsupportedParameterPropertyKind","DecoratorExportClass","ParamDupe","InvalidDecimal","RestTrailingComma","UnsupportedParameterDecorator","UnterminatedJsxContent","UnexpectedReservedWord","ModuleAttributesWithDuplicateKeys","InvalidEscapeSequenceTemplate","NonAbstractClassHasAbstractMethod","OptionalTypeBeforeRequired","PatternIsOptional","DeclareClassFieldHasInitializer","TypeImportCannotSpecifyDefaultAndNamed","VarRedeclaration","InvalidPrivateFieldResolution","DuplicateExport","ImportAttributesUseAssert","DeclarationMissingInitializer"]),tb=[$i(["jsx"])],kx=Zu({optionsCombinations:tb}),wx=Zu({optionsCombinations:[$i(["jsx","typescript"]),$i(["typescript"])]}),Px=Zu({isExpression:!0,optionsCombinations:[$i(["jsx"])]}),Nx=Zu({isExpression:!0,optionsCombinations:[$i(["typescript"])]}),rb=Zu({optionsCombinations:[$i(["jsx",["flow",{all:!0}],"flowComments"])]}),Fw=Zu({optionsCombinations:tb.map(e=>$i(["estree"],e))}),nb={};F2(nb,{json:()=>Pw,"json-stringify":()=>Bw,json5:()=>Nw,jsonc:()=>Iw});function kw(e){return Array.isArray(e)&&e.length>0}var sb=kw,ib={tokens:!1,ranges:!1,attachComment:!1,createParenthesizedExpressions:!0};function ww(e){let t=zE(e,ib),{program:r}=t;if(r.body.length===0&&r.directives.length===0&&!r.interpreter)return t}function fm(e,t={}){let{allowComments:r=!0,allowEmpty:n=!1}=t,s;try{s=WE(e,ib)}catch(i){if(n&&i.code==="BABEL_PARSER_SYNTAX_ERROR"&&i.reasonCode==="ParseExpressionEmptyInput")try{s=ww(e)}catch{}if(!s)throw QE(i)}if(!r&&sb(s.comments))throw ma(s.comments[0],"Comment");return s=eb(s,{type:"JsonRoot",text:e}),s.node.type==="File"?delete s.node:Eu(s.node),s}function ma(e,t){let[r,n]=[e.loc.start,e.loc.end].map(({line:s,column:i})=>({line:s,column:i+1}));return GE(`${t} is not allowed in JSON.`,{loc:{start:r,end:n}})}function Eu(e){switch(e.type){case"ArrayExpression":for(let t of e.elements)t!==null&&Eu(t);return;case"ObjectExpression":for(let t of e.properties)Eu(t);return;case"ObjectProperty":if(e.computed)throw ma(e.key,"Computed key");if(e.shorthand)throw ma(e.key,"Shorthand property");e.key.type!=="Identifier"&&Eu(e.key),Eu(e.value);return;case"UnaryExpression":{let{operator:t,argument:r}=e;if(t!=="+"&&t!=="-")throw ma(e,`Operator '${e.operator}'`);if(r.type==="NumericLiteral"||r.type==="Identifier"&&(r.name==="Infinity"||r.name==="NaN"))return;throw ma(r,`Operator '${t}' before '${r.type}'`)}case"Identifier":if(e.name!=="Infinity"&&e.name!=="NaN"&&e.name!=="undefined")throw ma(e,`Identifier '${e.name}'`);return;case"TemplateLiteral":if(sb(e.expressions))throw ma(e.expressions[0],"'TemplateLiteral' with expression");for(let t of e.quasis)Eu(t);return;case"NullLiteral":case"BooleanLiteral":case"NumericLiteral":case"StringLiteral":case"TemplateElement":return;default:throw ma(e,`'${e.type}'`)}}var Pw=pp({parse:e=>fm(e),hasPragma:()=>!0,hasIgnorePragma:()=>!1}),Nw=pp(e=>fm(e)),Iw=pp(e=>fm(e,{allowEmpty:!0})),Bw=pp({parse:e=>fm(e,{allowComments:!1}),astFormat:"estree-json"}),Lw={...vE,...nb},Ow=Object.defineProperty,z2=(e,t)=>{for(var r in t)Ow(e,r,{get:t[r],enumerable:!0})},$w={};z2($w,{languages:()=>JL,options:()=>ML,printers:()=>jL});var Mw=[{name:"JavaScript",type:"programming",aceMode:"javascript",extensions:[".js","._js",".bones",".cjs",".es",".es6",".gs",".jake",".javascript",".jsb",".jscad",".jsfl",".jslib",".jsm",".jspre",".jss",".mjs",".njs",".pac",".sjs",".ssjs",".xsjs",".xsjslib",".start.frag",".end.frag",".wxs"],filenames:["Jakefile","start.frag","end.frag"],tmScope:"source.js",aliases:["js","node"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",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",aceMode:"javascript",extensions:[".js.flow"],filenames:[],tmScope:"source.js",aliases:[],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",interpreters:["chakra","d8","gjs","js","node","nodejs","qjs","rhino","v8","v8-shell"],parsers:["flow","babel-flow"],vscodeLanguageIds:["javascript"],linguistLanguageId:183},{name:"JSX",type:"programming",aceMode:"javascript",extensions:[".jsx"],filenames:void 0,tmScope:"source.js.jsx",aliases:void 0,codemirrorMode:"jsx",codemirrorMimeType:"text/jsx",interpreters:void 0,parsers:["babel","babel-flow","babel-ts","flow","typescript","espree","meriyah"],vscodeLanguageIds:["javascriptreact"],group:"JavaScript",linguistLanguageId:183},{name:"TypeScript",type:"programming",aceMode:"typescript",extensions:[".ts",".cts",".mts"],tmScope:"source.ts",aliases:["ts"],codemirrorMode:"javascript",codemirrorMimeType:"application/typescript",interpreters:["bun","deno","ts-node","tsx"],parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescript"],linguistLanguageId:378},{name:"TSX",type:"programming",aceMode:"tsx",extensions:[".tsx"],tmScope:"source.tsx",codemirrorMode:"jsx",codemirrorMimeType:"text/typescript-jsx",group:"TypeScript",parsers:["typescript","babel-ts"],vscodeLanguageIds:["typescriptreact"],linguistLanguageId:94901924}],ab={};z2(ab,{canAttachComment:()=>i9,embed:()=>GP,features:()=>wL,getVisitorKeys:()=>hb,handleComments:()=>J9,hasPrettierIgnore:()=>Dg,insertPragma:()=>cN,isBlockComment:()=>Ls,isGap:()=>U9,massageAstNode:()=>Z5,print:()=>o3,printComment:()=>fN,printPrettierIgnored:()=>o3,willPrintOwnComments:()=>z9});var W2=(e,t)=>(r,n,...s)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,s),jw=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},Jw=W2("replaceAll",function(){if(typeof this=="string")return jw}),Kr=Jw;function Rw(e){return this[e<0?this.length+e:e]}var Uw=W2("at",function(){if(Array.isArray(this)||typeof this=="string")return Rw}),Vt=Uw;function qw(e){return e!==null&&typeof e=="object"}var ob=qw;function*Kw(e,t){let{getVisitorKeys:r,filter:n=()=>!0}=t,s=i=>ob(i)&&n(i);for(let i of r(e)){let o=e[i];if(Array.isArray(o))for(let l of o)s(l)&&(yield l);else s(o)&&(yield o)}}function*zw(e,t){let r=[e];for(let n=0;n<r.length;n++){let s=r[n];for(let i of Kw(s,t))yield i,r.push(i)}}function Ww(e,{getVisitorKeys:t,predicate:r}){for(let n of zw(e,{getVisitorKeys:t}))if(r(n))return!0;return!1}var Vw=()=>/[#*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-\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-\uDED8\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\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?)|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFC-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFD-\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFD\uDFFF]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?\uDC68\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDD1D\uDEEF]\u200D\uD83D\uDC68\uD83C[\uDFFB-\uDFFE]|[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3])))?))?|\uDC69(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:\uDC8B\u200D\uD83D)?[\uDC68\uDC69]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?|\uDC69\u200D\uD83D(?:\uDC66(?:\u200D\uD83D\uDC66)?|\uDC67(?:\u200D\uD83D[\uDC66\uDC67])?))|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFC-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFD-\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFD\uDFFF]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D\uD83D(?:[\uDC68\uDC69]|\uDC8B\u200D\uD83D[\uDC68\uDC69])\uD83C[\uDFFB-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3]|\uDD1D\u200D\uD83D[\uDC68\uDC69]\uD83C[\uDFFB-\uDFFE]|\uDEEF\u200D\uD83D\uDC69\uD83C[\uDFFB-\uDFFE])))?))?|\uDD75(?:\uD83C[\uDFFB-\uDFFF]|\uFE0F)?(?:\u200D[\u2640\u2642]\uFE0F?)?|\uDE2E(?:\u200D\uD83D\uDCA8)?|\uDE35(?:\u200D\uD83D\uDCAB)?|\uDE36(?:\u200D\uD83C\uDF2B\uFE0F?)?|\uDE42(?:\u200D[\u2194\u2195]\uFE0F?)?|\uDEB6(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?)|\uD83E(?:[\uDD0C\uDD0F\uDD18-\uDD1F\uDD30-\uDD34\uDD36\uDD77\uDDB5\uDDB6\uDDBB\uDDD2\uDDD3\uDDD5\uDEC3-\uDEC5\uDEF0\uDEF2-\uDEF8](?:\uD83C[\uDFFB-\uDFFF])?|[\uDD26\uDD35\uDD37-\uDD39\uDD3C-\uDD3E\uDDB8\uDDB9\uDDCD\uDDCF\uDDD4\uDDD6-\uDDDD](?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDDDE\uDDDF](?:\u200D[\u2640\u2642]\uFE0F?)?|[\uDD0D\uDD0E\uDD10-\uDD17\uDD20-\uDD25\uDD27-\uDD2F\uDD3A\uDD3F-\uDD45\uDD47-\uDD76\uDD78-\uDDB4\uDDB7\uDDBA\uDDBC-\uDDCC\uDDD0\uDDE0-\uDDFF\uDE70-\uDE7C\uDE80-\uDE8A\uDE8E-\uDEC2\uDEC6\uDEC8\uDECD-\uDEDC\uDEDF-\uDEEA\uDEEF]|\uDDCE(?:\uD83C[\uDFFB-\uDFFF])?(?:\u200D(?:[\u2640\u2642]\uFE0F?(?:\u200D\u27A1\uFE0F?)?|\u27A1\uFE0F?))?|\uDDD1(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1|\uDDD1\u200D\uD83E\uDDD2(?:\u200D\uD83E\uDDD2)?|\uDDD2(?:\u200D\uD83E\uDDD2)?))|\uD83C(?:\uDFFB(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFC-\uDFFF])))?|\uDFFC(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFD-\uDFFF])))?|\uDFFD(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])))?|\uDFFE(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFD\uDFFF])))?|\uDFFF(?:\u200D(?:[\u2695\u2696\u2708]\uFE0F?|\u2764\uFE0F?\u200D(?:\uD83D\uDC8B\u200D)?\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE]|\uD83C[\uDF3E\uDF73\uDF7C\uDF84\uDF93\uDFA4\uDFA8\uDFEB\uDFED]|\uD83D(?:[\uDCBB\uDCBC\uDD27\uDD2C\uDE80\uDE92]|\uDC30\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])|\uD83E(?:[\uDDAF\uDDBC\uDDBD](?:\u200D\u27A1\uFE0F?)?|[\uDDB0-\uDDB3\uDE70]|\uDD1D\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFF]|\uDEEF\u200D\uD83E\uDDD1\uD83C[\uDFFB-\uDFFE])))?))?|\uDEF1(?:\uD83C(?:\uDFFB(?:\u200D\uD83E\uDEF2\uD83C[\uDFFC-\uDFFF])?|\uDFFC(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFD-\uDFFF])?|\uDFFD(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB\uDFFC\uDFFE\uDFFF])?|\uDFFE(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFD\uDFFF])?|\uDFFF(?:\u200D\uD83E\uDEF2\uD83C[\uDFFB-\uDFFE])?))?)/g;function Hw(e){return e===12288||e>=65281&&e<=65376||e>=65504&&e<=65510}function Xw(e){return e>=4352&&e<=4447||e===8986||e===8987||e===9001||e===9002||e>=9193&&e<=9196||e===9200||e===9203||e===9725||e===9726||e===9748||e===9749||e>=9776&&e<=9783||e>=9800&&e<=9811||e===9855||e>=9866&&e<=9871||e===9875||e===9889||e===9898||e===9899||e===9917||e===9918||e===9924||e===9925||e===9934||e===9940||e===9962||e===9970||e===9971||e===9973||e===9978||e===9981||e===9989||e===9994||e===9995||e===10024||e===10060||e===10062||e>=10067&&e<=10069||e===10071||e>=10133&&e<=10135||e===10160||e===10175||e===11035||e===11036||e===11088||e===11093||e>=11904&&e<=11929||e>=11931&&e<=12019||e>=12032&&e<=12245||e>=12272&&e<=12287||e>=12289&&e<=12350||e>=12353&&e<=12438||e>=12441&&e<=12543||e>=12549&&e<=12591||e>=12593&&e<=12686||e>=12688&&e<=12773||e>=12783&&e<=12830||e>=12832&&e<=12871||e>=12880&&e<=42124||e>=42128&&e<=42182||e>=43360&&e<=43388||e>=44032&&e<=55203||e>=63744&&e<=64255||e>=65040&&e<=65049||e>=65072&&e<=65106||e>=65108&&e<=65126||e>=65128&&e<=65131||e>=94176&&e<=94180||e>=94192&&e<=94198||e>=94208&&e<=101589||e>=101631&&e<=101662||e>=101760&&e<=101874||e>=110576&&e<=110579||e>=110581&&e<=110587||e===110589||e===110590||e>=110592&&e<=110882||e===110898||e>=110928&&e<=110930||e===110933||e>=110948&&e<=110951||e>=110960&&e<=111355||e>=119552&&e<=119638||e>=119648&&e<=119670||e===126980||e===127183||e===127374||e>=127377&&e<=127386||e>=127488&&e<=127490||e>=127504&&e<=127547||e>=127552&&e<=127560||e===127568||e===127569||e>=127584&&e<=127589||e>=127744&&e<=127776||e>=127789&&e<=127797||e>=127799&&e<=127868||e>=127870&&e<=127891||e>=127904&&e<=127946||e>=127951&&e<=127955||e>=127968&&e<=127984||e===127988||e>=127992&&e<=128062||e===128064||e>=128066&&e<=128252||e>=128255&&e<=128317||e>=128331&&e<=128334||e>=128336&&e<=128359||e===128378||e===128405||e===128406||e===128420||e>=128507&&e<=128591||e>=128640&&e<=128709||e===128716||e>=128720&&e<=128722||e>=128725&&e<=128728||e>=128732&&e<=128735||e===128747||e===128748||e>=128756&&e<=128764||e>=128992&&e<=129003||e===129008||e>=129292&&e<=129338||e>=129340&&e<=129349||e>=129351&&e<=129535||e>=129648&&e<=129660||e>=129664&&e<=129674||e>=129678&&e<=129734||e===129736||e>=129741&&e<=129756||e>=129759&&e<=129770||e>=129775&&e<=129784||e>=131072&&e<=196605||e>=196608&&e<=262141}var Gw="©®‼⁉™ℹ↔↕↖↗↘↙↩↪⌨⏏⏱⏲⏸⏹⏺▪▫▶◀◻◼☀☁☂☃☄☎☑☘☝☠☢☣☦☪☮☯☸☹☺♀♂♟♠♣♥♦♨♻♾⚒⚔⚕⚖⚗⚙⚛⚜⚠⚧⚰⚱⛈⛏⛑⛓⛩⛱⛷⛸⛹✂✈✉✌✍✏✒✔✖✝✡✳✴❄❇❣❤➡⤴⤵⬅⬆⬇",Qw=/[^\x20-\x7F]/u,Yw=new Set(Gw);function Zw(e){if(!e)return 0;if(!Qw.test(e))return e.length;e=e.replace(Vw(),r=>Yw.has(r)?" ":" ");let t=0;for(let r of e){let n=r.codePointAt(0);n<=31||n>=127&&n<=159||n>=768&&n<=879||n>=65024&&n<=65039||(t+=Hw(n)||Xw(n)?2:1)}return t}var Ku=Zw;function V2(e){return(t,r,n)=>{let s=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,o=r;for(;o>=0&&o<i;){let l=t.charAt(o);if(e instanceof RegExp){if(!e.test(l))return o}else if(!e.includes(l))return o;s?o--:o++}return o===-1||o===i?o:!1}}var zu=V2(" "),e5=V2(",; "),t5=V2(/[^\n\r]/u),Ix=e=>e===`
|
|
44
|
-
`||e==="\r"||e==="\u2028"||e==="\u2029";function r5(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let s=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&s===`
|
|
45
|
-
`)return t-2;if(Ix(s))return t-1}else{if(s==="\r"&&e.charAt(t+1)===`
|
|
46
|
-
`)return t+2;if(Ix(s))return t+1}return t}var Wu=r5;function n5(e,t,r={}){let n=zu(e,r.backwards?t-1:t,r),s=Wu(e,n,r);return n!==s}var On=n5;function s5(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 H2=s5;function i5(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?t5(e,t):t}var X2=i5;function a5(e,t){let r=null,n=t;for(;n!==r;)r=n,n=e5(e,n),n=H2(e,n),n=zu(e,n);return n=X2(e,n),n=Wu(e,n),n!==!1&&On(e,n)}var G2=a5;function o5(e){return Array.isArray(e)&&e.length>0}var dr=o5,u5=()=>{},l5=u5,ub=Object.freeze({character:"'",codePoint:39}),lb=Object.freeze({character:'"',codePoint:34}),c5=Object.freeze({preferred:ub,alternate:lb}),p5=Object.freeze({preferred:lb,alternate:ub});function d5(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?c5:p5,{length:s}=e,i=0,o=0;for(let l=0;l<s;l++){let u=e.charCodeAt(l);u===r.codePoint?i++:u===n.codePoint&&o++}return(i>o?n:r).character}var cb=d5,h5=/\\(["'\\])|(["'])/gu;function f5(e,t){let r=t==='"'?"'":'"',n=Kr(0,e,h5,(s,i,o)=>i?i===r?r:s:o===t?"\\"+o:o);return t+n+t}var m5=f5;function y5(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":cb(r,t.singleQuote);return e.charAt(0)===n?e:m5(r,n)}var Vu=y5,pb=e=>Number.isInteger(e)&&e>=0;function Pt(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(Pt(r),t):t}function _t(e){return e.range?.[1]??e.end}function mm(e,t){let r=Pt(e);return pb(r)&&r===Pt(t)}function g5(e,t){let r=_t(e);return pb(r)&&r===_t(t)}function D5(e,t){return mm(e,t)&&g5(e,t)}var pc=null;function jc(e){if(pc!==null&&typeof pc.property){let t=pc;return pc=jc.prototype=null,t}return pc=jc.prototype=e??Object.create(null),new jc}var x5=10;for(let e=0;e<=x5;e++)jc();function T5(e){return jc(e)}function E5(e,t="type"){T5(e);function r(n){let s=n[t],i=e[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var db=E5,J=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],b5={AccessorProperty:J[0],AnyTypeAnnotation:J[1],ArgumentPlaceholder:J[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:J[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:J[3],AsExpression:J[4],AssignmentExpression:J[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:J[6],BigIntLiteral:J[1],BigIntLiteralTypeAnnotation:J[1],BigIntTypeAnnotation:J[1],BinaryExpression:J[5],BindExpression:["object","callee"],BlockStatement:J[7],BooleanLiteral:J[1],BooleanLiteralTypeAnnotation:J[1],BooleanTypeAnnotation:J[1],BreakStatement:J[8],CallExpression:J[9],CatchClause:["param","body"],ChainExpression:J[3],ClassAccessorProperty:J[0],ClassBody:J[10],ClassDeclaration:J[11],ClassExpression:J[11],ClassImplements:J[12],ClassMethod:J[13],ClassPrivateMethod:J[13],ClassPrivateProperty:J[14],ClassProperty:J[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:J[15],ConditionalExpression:J[16],ConditionalTypeAnnotation:J[17],ContinueStatement:J[8],DebuggerStatement:J[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:J[18],DeclareEnum:J[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:J[20],DeclareFunction:["id","predicate"],DeclareHook:J[21],DeclareInterface:J[22],DeclareModule:J[19],DeclareModuleExports:J[23],DeclareNamespace:J[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:J[24],DeclareVariable:J[21],Decorator:J[3],Directive:J[18],DirectiveLiteral:J[1],DoExpression:J[10],DoWhileStatement:J[25],EmptyStatement:J[1],EmptyTypeAnnotation:J[1],EnumBigIntBody:J[26],EnumBigIntMember:J[27],EnumBooleanBody:J[26],EnumBooleanMember:J[27],EnumDeclaration:J[19],EnumDefaultedMember:J[21],EnumNumberBody:J[26],EnumNumberMember:J[27],EnumStringBody:J[26],EnumStringMember:J[27],EnumSymbolBody:J[26],ExistsTypeAnnotation:J[1],ExperimentalRestProperty:J[6],ExperimentalSpreadProperty:J[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:J[28],ExportNamedDeclaration:J[20],ExportNamespaceSpecifier:J[28],ExportSpecifier:["local","exported"],ExpressionStatement:J[3],File:["program"],ForInStatement:J[29],ForOfStatement:J[29],ForStatement:["init","test","update","body"],FunctionDeclaration:J[30],FunctionExpression:J[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:J[15],GenericTypeAnnotation:J[12],HookDeclaration:J[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:J[16],ImportAttribute:J[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:J[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:J[33],ImportSpecifier:["imported","local"],IndexedAccessType:J[34],InferredPredicate:J[1],InferTypeAnnotation:J[35],InterfaceDeclaration:J[22],InterfaceExtends:J[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:J[1],IntersectionTypeAnnotation:J[36],JsExpressionRoot:J[37],JsonRoot:J[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:J[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:J[1],JSXExpressionContainer:J[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:J[1],JSXMemberExpression:J[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:J[1],JSXSpreadAttribute:J[6],JSXSpreadChild:J[3],JSXText:J[1],KeyofTypeAnnotation:J[6],LabeledStatement:["label","body"],Literal:J[1],LogicalExpression:J[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:J[21],MatchExpression:J[39],MatchExpressionCase:J[40],MatchIdentifierPattern:J[21],MatchLiteralPattern:J[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:J[6],MatchStatement:J[39],MatchStatementCase:J[40],MatchUnaryPattern:J[6],MatchWildcardPattern:J[1],MemberExpression:J[38],MetaProperty:["meta","property"],MethodDefinition:J[42],MixedTypeAnnotation:J[1],ModuleExpression:J[10],NeverTypeAnnotation:J[1],NewExpression:J[9],NGChainedExpression:J[43],NGEmptyExpression:J[1],NGMicrosyntax:J[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:J[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:J[32],NGPipeExpression:["left","right","arguments"],NGRoot:J[37],NullableTypeAnnotation:J[23],NullLiteral:J[1],NullLiteralTypeAnnotation:J[1],NumberLiteralTypeAnnotation:J[1],NumberTypeAnnotation:J[1],NumericLiteral:J[1],ObjectExpression:["properties"],ObjectMethod:J[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:J[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:J[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:J[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:J[9],OptionalIndexedAccessType:J[34],OptionalMemberExpression:J[38],ParenthesizedExpression:J[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:J[1],PipelineTopicExpression:J[3],Placeholder:J[1],PrivateIdentifier:J[1],PrivateName:J[21],Program:J[7],Property:J[32],PropertyDefinition:J[14],QualifiedTypeIdentifier:J[44],QualifiedTypeofIdentifier:J[44],RegExpLiteral:J[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:J[6],SatisfiesExpression:J[4],SequenceExpression:J[43],SpreadElement:J[6],StaticBlock:J[10],StringLiteral:J[1],StringLiteralTypeAnnotation:J[1],StringTypeAnnotation:J[1],Super:J[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:J[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:J[1],TemplateLiteral:["quasis","expressions"],ThisExpression:J[1],ThisTypeAnnotation:J[1],ThrowStatement:J[6],TopicReference:J[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:J[45],TSAbstractKeyword:J[1],TSAbstractMethodDefinition:J[32],TSAbstractPropertyDefinition:J[45],TSAnyKeyword:J[1],TSArrayType:J[2],TSAsExpression:J[4],TSAsyncKeyword:J[1],TSBigIntKeyword:J[1],TSBooleanKeyword:J[1],TSCallSignatureDeclaration:J[46],TSClassImplements:J[47],TSConditionalType:J[17],TSConstructorType:J[46],TSConstructSignatureDeclaration:J[46],TSDeclareFunction:J[31],TSDeclareKeyword:J[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:J[26],TSEnumDeclaration:J[19],TSEnumMember:["id","initializer"],TSExportAssignment:J[3],TSExportKeyword:J[1],TSExternalModuleReference:J[3],TSFunctionType:J[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:J[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:J[35],TSInstantiationExpression:J[47],TSInterfaceBody:J[10],TSInterfaceDeclaration:J[22],TSInterfaceHeritage:J[47],TSIntersectionType:J[36],TSIntrinsicKeyword:J[1],TSJSDocAllType:J[1],TSJSDocNonNullableType:J[23],TSJSDocNullableType:J[23],TSJSDocUnknownType:J[1],TSLiteralType:J[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:J[10],TSModuleDeclaration:J[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:J[21],TSNeverKeyword:J[1],TSNonNullExpression:J[3],TSNullKeyword:J[1],TSNumberKeyword:J[1],TSObjectKeyword:J[1],TSOptionalType:J[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:J[23],TSPrivateKeyword:J[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:J[1],TSPublicKeyword:J[1],TSQualifiedName:J[5],TSReadonlyKeyword:J[1],TSRestType:J[23],TSSatisfiesExpression:J[4],TSStaticKeyword:J[1],TSStringKeyword:J[1],TSSymbolKeyword:J[1],TSTemplateLiteralType:["quasis","types"],TSThisType:J[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:J[23],TSTypeAssertion:J[4],TSTypeLiteral:J[26],TSTypeOperator:J[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:J[48],TSTypeParameterInstantiation:J[48],TSTypePredicate:J[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:J[1],TSUnionType:J[36],TSUnknownKeyword:J[1],TSVoidKeyword:J[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:J[24],TypeAnnotation:J[23],TypeCastExpression:J[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:J[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:J[48],TypeParameterInstantiation:J[48],TypePredicate:J[49],UnaryExpression:J[6],UndefinedTypeAnnotation:J[1],UnionTypeAnnotation:J[36],UnknownTypeAnnotation:J[1],UpdateExpression:J[6],V8IntrinsicIdentifier:J[1],VariableDeclaration:["declarations"],VariableDeclarator:J[27],Variance:J[1],VoidPattern:J[1],VoidTypeAnnotation:J[1],WhileStatement:J[25],WithStatement:["object","body"],YieldExpression:J[6]},C5=db(b5),hb=C5;function A5(e){let t=new Set(e);return r=>t.has(r?.type)}var Tt=A5;function v5(e){return e.extra?.raw??e.raw}var $n=v5,S5=Tt(["Block","CommentBlock","MultiLine"]),Ls=S5,_5=Tt(["AnyTypeAnnotation","ThisTypeAnnotation","NumberTypeAnnotation","VoidTypeAnnotation","BooleanTypeAnnotation","BigIntTypeAnnotation","SymbolTypeAnnotation","StringTypeAnnotation","NeverTypeAnnotation","UndefinedTypeAnnotation","UnknownTypeAnnotation","EmptyTypeAnnotation","MixedTypeAnnotation"]),fb=_5,F5=Tt(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),dp=F5;function k5(e,t){let r=t.split(".");for(let n=r.length-1;n>=0;n--){let s=r[n];if(n===0)return e.type==="Identifier"&&e.name===s;if(n===1&&e.type==="MetaProperty"&&e.property.type==="Identifier"&&e.property.name===s){e=e.meta;continue}if(e.type==="MemberExpression"&&!e.optional&&!e.computed&&e.property.type==="Identifier"&&e.property.name===s){e=e.object;continue}return!1}}function w5(e,t){return t.some(r=>k5(e,r))}var Q2=w5;function P5({type:e}){return e.startsWith("TS")&&e.endsWith("Keyword")}var mb=P5;function N5({node:e,parent:t}){return e?.type!=="EmptyStatement"?!1:t.type==="IfStatement"?t.consequent===e||t.alternate===e:t.type==="DoWhileStatement"||t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"||t.type==="LabeledStatement"||t.type==="WithStatement"||t.type==="WhileStatement"?t.body===e:!1}var Y2=N5;function T0(e,t){return t(e)||Ww(e,{getVisitorKeys:hb,predicate:t})}function Z2(e){return e.type==="AssignmentExpression"||e.type==="BinaryExpression"||e.type==="LogicalExpression"||e.type==="NGPipeExpression"||e.type==="ConditionalExpression"||Wt(e)||pr(e)||e.type==="SequenceExpression"||e.type==="TaggedTemplateExpression"||e.type==="BindExpression"||e.type==="UpdateExpression"&&!e.prefix||ws(e)||e.type==="TSNonNullExpression"||e.type==="ChainExpression"}function I5(e){return e.expressions?e.expressions[0]:e.left??e.test??e.callee??e.object??e.tag??e.argument??e.expression}function yb(e){if(e.expressions)return["expressions",0];if(e.left)return["left"];if(e.test)return["test"];if(e.object)return["object"];if(e.callee)return["callee"];if(e.tag)return["tag"];if(e.argument)return["argument"];if(e.expression)return["expression"];throw new Error("Unexpected node has no left side.")}var B5=Tt(["ExportDefaultDeclaration","DeclareExportDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportAllDeclaration"]),rn=Tt(["ArrayExpression"]),Ns=Tt(["ObjectExpression"]);function L5(e){return e.type==="LogicalExpression"&&e.operator==="??"}function ii(e){return e.type==="NumericLiteral"||e.type==="Literal"&&typeof e.value=="number"}function O5(e){return e.type==="BooleanLiteral"||e.type==="Literal"&&typeof e.value=="boolean"}function gb(e){return e.type==="UnaryExpression"&&(e.operator==="+"||e.operator==="-")&&ii(e.argument)}function Wr(e){return!!(e&&(e.type==="StringLiteral"||e.type==="Literal"&&typeof e.value=="string"))}function Db(e){return e.type==="RegExpLiteral"||e.type==="Literal"&&!!e.regex}var eg=Tt(["Literal","BooleanLiteral","BigIntLiteral","DirectiveLiteral","NullLiteral","NumericLiteral","RegExpLiteral","StringLiteral"]),$5=Tt(["Identifier","ThisExpression","Super","PrivateName","PrivateIdentifier"]),ka=Tt(["ObjectTypeAnnotation","TSTypeLiteral","TSMappedType"]),Gc=Tt(["FunctionExpression","ArrowFunctionExpression"]);function M5(e){return e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&e.body.type==="BlockStatement"}function ky(e){return Wt(e)&&e.callee.type==="Identifier"&&["async","inject","fakeAsync","waitForAsync"].includes(e.callee.name)}var zr=Tt(["JSXElement","JSXFragment"]);function hp(e){return e.method&&e.kind==="init"||e.kind==="get"||e.kind==="set"}function xb(e){return(e.type==="ObjectTypeProperty"||e.type==="ObjectTypeInternalSlot")&&!e.static&&!e.method&&e.kind!=="get"&&e.kind!=="set"&&e.value.type==="FunctionTypeAnnotation"}function j5(e){return(e.type==="TypeAnnotation"||e.type==="TSTypeAnnotation")&&e.typeAnnotation.type==="FunctionTypeAnnotation"&&!e.static&&!mm(e,e.typeAnnotation)}var Mi=Tt(["BinaryExpression","LogicalExpression","NGPipeExpression"]);function bu(e){return pr(e)||e.type==="BindExpression"&&!!e.object}var J5=Tt(["TSThisType","NullLiteralTypeAnnotation","BooleanLiteralTypeAnnotation","StringLiteralTypeAnnotation","BigIntLiteralTypeAnnotation","NumberLiteralTypeAnnotation","TSLiteralType","TSTemplateLiteralType"]);function tg(e){return mb(e)||fb(e)||J5(e)||e.type==="GenericTypeAnnotation"&&!e.typeParameters||e.type==="TSTypeReference"&&!e.typeArguments}function R5(e){return e.type==="Identifier"&&(e.name==="beforeEach"||e.name==="beforeAll"||e.name==="afterEach"||e.name==="afterAll")}var U5=["it","it.only","it.skip","describe","describe.only","describe.skip","test","test.only","test.skip","test.fixme","test.step","test.describe","test.describe.only","test.describe.skip","test.describe.fixme","test.describe.parallel","test.describe.parallel.only","test.describe.serial","test.describe.serial.only","skip","xit","xdescribe","xtest","fit","fdescribe","ftest"];function q5(e){return Q2(e,U5)}function ym(e,t){if(e?.type!=="CallExpression"||e.optional)return!1;let r=ts(e);if(r.length===1){if(ky(e)&&ym(t))return Gc(r[0]);if(R5(e.callee))return ky(r[0])}else if((r.length===2||r.length===3)&&(r[0].type==="TemplateLiteral"||Wr(r[0]))&&q5(e.callee))return r[2]&&!ii(r[2])?!1:(r.length===2?Gc(r[1]):M5(r[1])&&cn(r[1]).length<=1)||ky(r[1]);return!1}var Tb=e=>t=>(t?.type==="ChainExpression"&&(t=t.expression),e(t)),Wt=Tb(Tt(["CallExpression","OptionalCallExpression"])),pr=Tb(Tt(["MemberExpression","OptionalMemberExpression"]));function Bx(e,t=5){return Eb(e,t)<=t}function Eb(e,t){let r=0;for(let n in e){let s=e[n];if(ob(s)&&typeof s.type=="string"&&(r++,r+=Eb(s,t-r)),r>t)return r}return r}var K5=.25;function rg(e,t){let{printWidth:r}=t;if($e(e))return!1;let n=r*K5;if(e.type==="ThisExpression"||e.type==="Identifier"&&e.name.length<=n||gb(e)&&!$e(e.argument))return!0;let s=e.type==="Literal"&&"regex"in e&&e.regex.pattern||e.type==="RegExpLiteral"&&e.pattern;return s?s.length<=n:Wr(e)?Vu($n(e),t).length<=n:e.type==="TemplateLiteral"?e.expressions.length===0&&e.quasis[0].value.raw.length<=n&&!e.quasis[0].value.raw.includes(`
|
|
47
|
-
`):e.type==="UnaryExpression"?rg(e.argument,{printWidth:r}):e.type==="CallExpression"&&e.arguments.length===0&&e.callee.type==="Identifier"?e.callee.name.length<=n-2:eg(e)}function Ps(e,t){return zr(t)?gm(t):$e(t,ze.Leading,r=>On(e,_t(r)))}function Lx(e){return e.quasis.some(t=>t.value.raw.includes(`
|
|
48
|
-
`))}function bb(e,t){return(e.type==="TemplateLiteral"&&Lx(e)||e.type==="TaggedTemplateExpression"&&Lx(e.quasi))&&!On(t,Pt(e),{backwards:!0})}function Cb(e){if(!$e(e))return!1;let t=Vt(0,Ao(e,ze.Dangling),-1);return t&&!Ls(t)}function z5(e){if(e.length<=1)return!1;let t=0;for(let r of e)if(Gc(r)){if(t+=1,t>1)return!0}else if(Wt(r)){for(let n of ts(r))if(Gc(n))return!0}return!1}function Ab(e){let{node:t,parent:r,key:n}=e;return n==="callee"&&Wt(t)&&Wt(r)&&r.arguments.length>0&&t.arguments.length>r.arguments.length}var W5=new Set(["!","-","+","~"]);function Fs(e,t=2){if(t<=0)return!1;if(e.type==="ChainExpression"||e.type==="TSNonNullExpression")return Fs(e.expression,t);let r=n=>Fs(n,t-1);if(Db(e))return Ku(e.pattern??e.regex.pattern)<=5;if(eg(e)||$5(e)||e.type==="ArgumentPlaceholder")return!0;if(e.type==="TemplateLiteral")return e.quasis.every(n=>!n.value.raw.includes(`
|
|
49
|
-
`))&&e.expressions.every(r);if(Ns(e))return e.properties.every(n=>!n.computed&&(n.shorthand||n.value&&r(n.value)));if(rn(e))return e.elements.every(n=>n===null||r(n));if(Xu(e)){if(e.type==="ImportExpression"||Fs(e.callee,t)){let n=ts(e);return n.length<=t&&n.every(r)}return!1}return pr(e)?Fs(e.object,t)&&Fs(e.property,t):e.type==="UnaryExpression"&&W5.has(e.operator)||e.type==="UpdateExpression"?Fs(e.argument,t):!1}function ci(e,t="es5"){return e.trailingComma==="es5"&&t==="es5"||e.trailingComma==="all"&&(t==="all"||t==="es5")}function Tn(e,t){switch(e.type){case"BinaryExpression":case"LogicalExpression":case"AssignmentExpression":case"NGPipeExpression":return Tn(e.left,t);case"MemberExpression":case"OptionalMemberExpression":return Tn(e.object,t);case"TaggedTemplateExpression":return e.tag.type==="FunctionExpression"?!1:Tn(e.tag,t);case"CallExpression":case"OptionalCallExpression":return e.callee.type==="FunctionExpression"?!1:Tn(e.callee,t);case"ConditionalExpression":return Tn(e.test,t);case"UpdateExpression":return!e.prefix&&Tn(e.argument,t);case"BindExpression":return e.object&&Tn(e.object,t);case"SequenceExpression":return Tn(e.expressions[0],t);case"ChainExpression":case"TSSatisfiesExpression":case"TSAsExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return Tn(e.expression,t);default:return t(e)}}var Ox={"==":!0,"!=":!0,"===":!0,"!==":!0},of={"*":!0,"/":!0,"%":!0},E0={">>":!0,">>>":!0,"<<":!0};function ng(e,t){return!(qf(t)!==qf(e)||e==="**"||Ox[e]&&Ox[t]||t==="%"&&of[e]||e==="%"&&of[t]||t!==e&&of[t]&&of[e]||E0[e]&&E0[t])}var V5=new Map([["|>"],["??"],["||"],["&&"],["|"],["^"],["&"],["==","===","!=","!=="],["<",">","<=",">=","in","instanceof"],[">>","<<",">>>"],["+","-"],["*","/","%"],["**"]].flatMap((e,t)=>e.map(r=>[r,t])));function qf(e){return V5.get(e)}function H5(e){return!!E0[e]||e==="|"||e==="^"||e==="&"}function X5(e){if(e.rest)return!0;let t=cn(e);return Vt(0,t,-1)?.type==="RestElement"}var wy=new WeakMap;function cn(e){if(wy.has(e))return wy.get(e);let t=[];return e.this&&t.push(e.this),t.push(...e.params),e.rest&&t.push(e.rest),wy.set(e,t),t}function G5(e,t){let{node:r}=e,n=0,s=()=>t(e,n++);r.this&&e.call(s,"this"),e.each(s,"params"),r.rest&&e.call(s,"rest")}var Py=new WeakMap;function ts(e){if(Py.has(e))return Py.get(e);if(e.type==="ChainExpression")return ts(e.expression);let t;return e.type==="ImportExpression"||e.type==="TSImportType"?(t=[e.source],e.options&&t.push(e.options)):e.type==="TSExternalModuleReference"?t=[e.expression]:t=e.arguments,Py.set(e,t),t}function Kf(e,t){let{node:r}=e;if(r.type==="ChainExpression")return e.call(()=>Kf(e,t),"expression");r.type==="ImportExpression"||r.type==="TSImportType"?(e.call(()=>t(e,0),"source"),r.options&&e.call(()=>t(e,1),"options")):r.type==="TSExternalModuleReference"?e.call(()=>t(e,0),"expression"):e.each(t,"arguments")}function $x(e,t){let r=[];if(e.type==="ChainExpression"&&(e=e.expression,r.push("expression")),e.type==="ImportExpression"||e.type==="TSImportType"){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")}else if(e.type==="TSExternalModuleReference"){if(t===0||t===-1)return[...r,"expression"]}else if(t<0&&(t=e.arguments.length+t),t>=0&&t<e.arguments.length)return[...r,"arguments",t];throw new RangeError("Invalid argument index")}function Hu(e){return e.value.trim()==="prettier-ignore"&&!e.unignore}function gm(e){return e?.prettierIgnore||$e(e,ze.PrettierIgnore)}var ze={Leading:2,Trailing:4,Dangling:8,Block:16,Line:32,PrettierIgnore:64,First:128,Last:256},vb=(e,t)=>{if(typeof e=="function"&&(t=e,e=0),e||t)return(r,n,s)=>!(e&ze.Leading&&!r.leading||e&ze.Trailing&&!r.trailing||e&ze.Dangling&&(r.leading||r.trailing)||e&ze.Block&&!Ls(r)||e&ze.Line&&!dp(r)||e&ze.First&&n!==0||e&ze.Last&&n!==s.length-1||e&ze.PrettierIgnore&&!Hu(r)||t&&!t(r))};function $e(e,t,r){if(!dr(e?.comments))return!1;let n=vb(t,r);return n?e.comments.some(n):!0}function Ao(e,t,r){if(!Array.isArray(e?.comments))return[];let n=vb(t,r);return n?e.comments.filter(n):e.comments}var pi=(e,{originalText:t})=>G2(t,_t(e));function Xu(e){return Wt(e)||e.type==="NewExpression"||e.type==="ImportExpression"}function Ia(e){return e&&(e.type==="ObjectProperty"||e.type==="Property"&&!hp(e))}var ws=Tt(["TSAsExpression","TSSatisfiesExpression","AsExpression","AsConstExpression","SatisfiesExpression"]),ai=Tt(["TSUnionType","UnionTypeAnnotation"]),fp=Tt(["TSIntersectionType","IntersectionTypeAnnotation"]),wa=Tt(["TSConditionalType","ConditionalTypeAnnotation"]),Q5=e=>e?.type==="TSAsExpression"&&e.typeAnnotation.type==="TSTypeReference"&&e.typeAnnotation.typeName.type==="Identifier"&&e.typeAnnotation.typeName.name==="const",b0=Tt(["TSTypeAliasDeclaration","TypeAlias"]);function Sb({key:e,parent:t}){return!(e==="types"&&ai(t)||e==="types"&&fp(t))}var Y5=new Set(["range","raw","comments","leadingComments","trailingComments","innerComments","extra","start","end","loc","flags","errors","tokens"]),mu=e=>{for(let t of e.quasis)delete t.value};function _b(e,t,r){if(e.type==="Program"&&delete t.sourceType,(e.type==="BigIntLiteral"||e.type==="Literal")&&e.bigint&&(t.bigint=e.bigint.toLowerCase()),e.type==="EmptyStatement"&&!Y2({node:e,parent:r})||e.type==="JSXText"||e.type==="JSXExpressionContainer"&&(e.expression.type==="Literal"||e.expression.type==="StringLiteral")&&e.expression.value===" ")return null;if((e.type==="Property"||e.type==="ObjectProperty"||e.type==="MethodDefinition"||e.type==="ClassProperty"||e.type==="ClassMethod"||e.type==="PropertyDefinition"||e.type==="TSDeclareMethod"||e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty"||e.type==="ImportAttribute")&&e.key&&!e.computed){let{key:s}=e;Wr(s)||ii(s)?t.key=String(s.value):s.type==="Identifier"&&(t.key=s.name)}if(e.type==="JSXElement"&&e.openingElement.name.name==="style"&&e.openingElement.attributes.some(s=>s.type==="JSXAttribute"&&s.name.name==="jsx"))for(let{type:s,expression:i}of t.children)s==="JSXExpressionContainer"&&i.type==="TemplateLiteral"&&mu(i);e.type==="JSXAttribute"&&e.name.name==="css"&&e.value.type==="JSXExpressionContainer"&&e.value.expression.type==="TemplateLiteral"&&mu(t.value.expression),e.type==="JSXAttribute"&&e.value?.type==="Literal"&&/["']|"|'/u.test(e.value.value)&&(t.value.value=Kr(0,e.value.value,/["']|"|'/gu,'"'));let n=e.expression||e.callee;if(e.type==="Decorator"&&n.type==="CallExpression"&&n.callee.name==="Component"&&n.arguments.length===1){let s=e.expression.arguments[0].properties;for(let[i,o]of t.expression.arguments[0].properties.entries())switch(s[i].key.name){case"styles":rn(o.value)&&mu(o.value.elements[0]);break;case"template":o.value.type==="TemplateLiteral"&&mu(o.value);break}}e.type==="TaggedTemplateExpression"&&(e.tag.type==="MemberExpression"||e.tag.type==="Identifier"&&(e.tag.name==="gql"||e.tag.name==="graphql"||e.tag.name==="css"||e.tag.name==="md"||e.tag.name==="markdown"||e.tag.name==="html")||e.tag.type==="CallExpression")&&mu(t.quasi),e.type==="TemplateLiteral"&&mu(t),e.type==="ChainExpression"&&e.expression.type==="TSNonNullExpression"&&(t.type="TSNonNullExpression",t.expression.type="ChainExpression")}_b.ignoredProperties=Y5;var Z5=_b,e9=Tt(["File","TemplateElement","TSEmptyBodyFunctionExpression","ChainExpression"]),t9=(e,[t])=>t?.type==="ComponentParameter"&&t.shorthand&&t.name===e&&t.local!==t.name||t?.type==="MatchObjectPatternProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="ObjectProperty"&&t.shorthand&&t.key===e&&t.value!==t.key||t?.type==="Property"&&t.shorthand&&t.key===e&&!hp(t)&&t.value!==t.key,r9=(e,[t])=>!!(e.type==="FunctionExpression"&&t.type==="MethodDefinition"&&t.value===e&&cn(e).length===0&&!e.returnType&&!dr(e.typeParameters)&&e.body),Mx=(e,[t])=>t?.typeAnnotation===e&&Q5(t),n9=(e,[t,...r])=>Mx(e,[t])||t?.typeName===e&&Mx(t,r);function s9(e,t){return e9(e)||t9(e,t)||r9(e,t)?!1:e.type==="EmptyStatement"?Y2({node:e,parent:t[0]}):!(n9(e,t)||e.type==="TSTypeAnnotation"&&t[0].type==="TSPropertySignature")}var i9=s9;function a9(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)+"…"),t+(r?" "+r:"")}function sg(e,t){(e.comments??(e.comments=[])).push(t),t.printed=!1,t.nodeDescription=a9(e)}function Pr(e,t){t.leading=!0,t.trailing=!1,sg(e,t)}function Yn(e,t,r){t.leading=!1,t.trailing=!1,r&&(t.marker=r),sg(e,t)}function Tr(e,t){t.leading=!1,t.trailing=!0,sg(e,t)}function o9(e,t){let r=null,n=t;for(;n!==r;)r=n,n=zu(e,n),n=H2(e,n),n=X2(e,n),n=Wu(e,n);return n}var el=o9;function u9(e,t){let r=el(e,t);return r===!1?"":e.charAt(r)}var Is=u9;function l9(e,t,r){for(let n=t;n<r;++n)if(e.charAt(n)===`
|
|
50
|
-
`)return!0;return!1}var Zn=l9,Ny=new WeakMap;function c9(e){return Ny.has(e)||Ny.set(e,Ls(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),Ny.get(e)}var Fb=c9,ig=(e,t)=>dp(e)||!Zn(t,Pt(e),_t(e));function p9(e){return[$b,wb,Bb,b9,m9,ag,og,kb,Pb,_9,A9,v9,lg,Ob,F9,Nb,Lb,ug,y9,L9,Mb,cg].some(t=>t(e))}function d9(e){return[f9,Bb,wb,Ob,ag,og,kb,Pb,Lb,C9,S9,lg,P9,ug,I9,B9,O9,Mb,M9,$9,cg].some(t=>t(e))}function h9(e){return[$b,ag,og,E9,Nb,lg,T9,x9,ug,N9,cg].some(t=>t(e))}function Lo(e,t){let r=(e.body||e.properties).find(({type:n})=>n!=="EmptyStatement");r?Pr(r,t):Yn(e,t)}function C0(e,t){e.type==="BlockStatement"?Lo(e,t):Pr(e,t)}function f9({comment:e,followingNode:t}){return t&&Fb(e)?(Pr(t,e),!0):!1}function ag({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){if(r?.type!=="IfStatement"||!n)return!1;if(Is(s,_t(e))===")")return Tr(t,e),!0;if(n.type==="BlockStatement"&&n===r.consequent&&Pt(e)>=_t(t)&&_t(e)<=Pt(n))return Pr(n,e),!0;if(t===r.consequent&&n===r.alternate){let i=el(s,_t(r.consequent));if(n.type==="BlockStatement"&&Pt(e)>=i&&_t(e)<=Pt(n))return Pr(n,e),!0;if(Pt(e)<i||r.alternate.type==="BlockStatement")return t.type==="BlockStatement"||ig(e,s)&&!Zn(s,Pt(t),Pt(e))?(Tr(t,e),!0):(Yn(r,e),!0)}return n.type==="BlockStatement"?(Lo(n,e),!0):n.type==="IfStatement"?(C0(n.consequent,e),!0):r.consequent===n?(Pr(n,e),!0):!1}function og({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return r?.type!=="WhileStatement"||!n?!1:Is(s,_t(e))===")"?(Tr(t,e),!0):n.type==="BlockStatement"?(Lo(n,e),!0):r.body===n?(Pr(n,e),!0):!1}function kb({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r?.type!=="TryStatement"&&r?.type!=="CatchClause"||!n?!1:r.type==="CatchClause"&&t?(Tr(t,e),!0):n.type==="BlockStatement"?(Lo(n,e),!0):n.type==="TryStatement"?(C0(n.finalizer,e),!0):n.type==="CatchClause"?(C0(n.body,e),!0):!1}function m9({comment:e,enclosingNode:t,followingNode:r}){return pr(t)&&r?.type==="Identifier"?(Pr(t,e),!0):!1}function y9({comment:e,enclosingNode:t,followingNode:r,options:n}){return!n.experimentalTernaries||!(t?.type==="ConditionalExpression"||wa(t))?!1:r?.type==="ConditionalExpression"||wa(r)?(Yn(t,e),!0):!1}function wb({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s,options:i}){let o=t&&!Zn(s,_t(t),Pt(e));return(!t||!o)&&(r?.type==="ConditionalExpression"||wa(r))&&n?i.experimentalTernaries&&r.alternate===n&&!(Ls(e)&&!Zn(i.originalText,Pt(e),_t(e)))?(Yn(r,e),!0):(Pr(n,e),!0):!1}var g9=Tt(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function Pb({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){if(g9(r)){if(dr(r.decorators)&&n?.type!=="Decorator")return Tr(Vt(0,r.decorators,-1),e),!0;if(r.body&&n===r.body)return Lo(r.body,e),!0;if(n){if(r.superClass&&n===r.superClass&&t&&(t===r.id||t===r.typeParameters))return Tr(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)?Tr(t,e):Yn(r,e,s),!0}}return!1}var D9=Tt(["ClassMethod","ClassProperty","PropertyDefinition","TSAbstractPropertyDefinition","TSAbstractMethodDefinition","TSDeclareMethod","MethodDefinition","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","TSParameterProperty"]);function Nb({comment:e,precedingNode:t,enclosingNode:r,text:n}){return r&&t&&Is(n,_t(e))==="("&&(r.type==="Property"||r.type==="TSDeclareMethod"||r.type==="TSAbstractMethodDefinition")&&t.type==="Identifier"&&r.key===t&&Is(n,_t(t))!==":"||t?.type==="Decorator"&&D9(r)&&(dp(e)||e.placement==="ownLine")?(Tr(t,e),!0):!1}var Ib=Tt(["FunctionDeclaration","FunctionExpression","ClassMethod","MethodDefinition","ObjectMethod"]);function x9({comment:e,precedingNode:t,enclosingNode:r,text:n}){return Is(n,_t(e))!=="("?!1:t&&Ib(r)?(Tr(t,e),!0):!1}function T9({comment:e,enclosingNode:t,text:r}){if(t?.type!=="ArrowFunctionExpression")return!1;let n=el(r,_t(e));return n!==!1&&r.slice(n,n+2)==="=>"?(Yn(t,e),!0):!1}function E9({comment:e,enclosingNode:t,text:r}){return Is(r,_t(e))!==")"?!1:t&&(jb(t)&&cn(t).length===0||Xu(t)&&ts(t).length===0)?(Yn(t,e),!0):(t?.type==="MethodDefinition"||t?.type==="TSAbstractMethodDefinition")&&cn(t.value).length===0?(Yn(t.value,e),!0):!1}function b9({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return t?.type==="ComponentTypeParameter"&&(r?.type==="DeclareComponent"||r?.type==="ComponentTypeAnnotation")&&n?.type!=="ComponentTypeParameter"||(t?.type==="ComponentParameter"||t?.type==="RestElement")&&r?.type==="ComponentDeclaration"&&Is(s,_t(e))===")"?(Tr(t,e),!0):!1}function Bb({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return t?.type==="FunctionTypeParam"&&r?.type==="FunctionTypeAnnotation"&&n?.type!=="FunctionTypeParam"||(t?.type==="Identifier"||t?.type==="AssignmentPattern"||t?.type==="ObjectPattern"||t?.type==="ArrayPattern"||t?.type==="RestElement"||t?.type==="TSParameterProperty")&&jb(r)&&Is(s,_t(e))===")"?(Tr(t,e),!0):!Ls(e)&&n?.type==="BlockStatement"&&Ib(r)&&(r.type==="MethodDefinition"?r.value.body:r.body)===n&&el(s,_t(e))===Pt(n)?(Lo(n,e),!0):!1}function Lb({comment:e,enclosingNode:t}){return t?.type==="LabeledStatement"?(Pr(t,e),!0):!1}function ug({comment:e,enclosingNode:t}){return(t?.type==="ContinueStatement"||t?.type==="BreakStatement")&&!t.label?(Tr(t,e),!0):!1}function C9({comment:e,precedingNode:t,enclosingNode:r}){return Wt(r)&&t&&r.callee===t&&r.arguments.length>0?(Pr(r.arguments[0],e),!0):!1}function A9({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return ai(r)?(Hu(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(Tr(t,e),!0):!1):(ai(n)&&Hu(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function v9({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return r&&r.type==="MatchOrPattern"?(Hu(e)&&(n.prettierIgnore=!0,e.unignore=!0),t?(Tr(t,e),!0):!1):(n&&n.type==="MatchOrPattern"&&Hu(e)&&(n.types[0].prettierIgnore=!0,e.unignore=!0),!1)}function S9({comment:e,enclosingNode:t}){return Ia(t)?(Pr(t,e),!0):!1}function lg({comment:e,enclosingNode:t,ast:r,isLastComment:n}){return r?.body?.length===0?(n?Yn(r,e):Pr(r,e),!0):t?.type==="Program"&&t.body.length===0&&!dr(t.directives)?(n?Yn(t,e):Pr(t,e),!0):!1}function _9({comment:e,enclosingNode:t,followingNode:r}){return(t?.type==="ForInStatement"||t?.type==="ForOfStatement")&&r!==t.body?(Pr(t,e),!0):!1}function Ob({comment:e,precedingNode:t,enclosingNode:r,text:n}){if(r?.type==="ImportSpecifier"||r?.type==="ExportSpecifier")return Pr(r,e),!0;let s=t?.type==="ImportSpecifier"&&r?.type==="ImportDeclaration",i=t?.type==="ExportSpecifier"&&r?.type==="ExportNamedDeclaration";return(s||i)&&On(n,_t(e))?(Tr(t,e),!0):!1}function F9({comment:e,enclosingNode:t}){return t?.type==="AssignmentPattern"?(Pr(t,e),!0):!1}var k9=Tt(["VariableDeclarator","AssignmentExpression","TypeAlias","TSTypeAliasDeclaration"]),w9=Tt(["ObjectExpression","ArrayExpression","TemplateLiteral","TaggedTemplateExpression","ObjectTypeAnnotation","TSTypeLiteral"]);function P9({comment:e,enclosingNode:t,followingNode:r}){return k9(t)&&r&&(w9(r)||Ls(e))?(Pr(r,e),!0):!1}function N9({comment:e,enclosingNode:t,precedingNode:r,followingNode:n,text:s}){return!n&&(t?.type==="TSMethodSignature"||t?.type==="TSDeclareFunction"||t?.type==="TSAbstractMethodDefinition")&&(!r||r!==t.returnType)&&Is(s,_t(e))===";"?(Tr(t,e),!0):!1}function $b({comment:e,enclosingNode:t,followingNode:r}){if(Hu(e)&&t?.type==="TSMappedType"&&r===t.key)return t.prettierIgnore=!0,e.unignore=!0,!0}function Mb({comment:e,precedingNode:t,enclosingNode:r}){if(r?.type==="TSMappedType"&&!t)return Yn(r,e),!0}function I9({comment:e,enclosingNode:t,followingNode:r}){return!t||t.type!=="SwitchCase"||t.test||!r||r!==t.consequent[0]?!1:(r.type==="BlockStatement"&&dp(e)?Lo(r,e):Yn(t,e),!0)}function B9({comment:e,precedingNode:t,enclosingNode:r,followingNode:n}){return ai(t)&&((r.type==="TSArrayType"||r.type==="ArrayTypeAnnotation")&&!n||fp(r))?(Tr(Vt(0,t.types,-1),e),!0):!1}function L9({comment:e,enclosingNode:t,precedingNode:r,followingNode:n}){if((t?.type==="ObjectPattern"||t?.type==="ArrayPattern")&&n?.type==="TSTypeAnnotation")return r?Tr(r,e):Yn(t,e),!0}function O9({comment:e,precedingNode:t,enclosingNode:r,followingNode:n,text:s}){return!n&&r?.type==="UnaryExpression"&&(t?.type==="LogicalExpression"||t?.type==="BinaryExpression")&&Zn(s,Pt(r.argument),Pt(t.right))&&ig(e,s)&&!Zn(s,Pt(t.right),Pt(e))?(Tr(t.right,e),!0):!1}function $9({enclosingNode:e,followingNode:t,comment:r}){if(e&&(e.type==="TSPropertySignature"||e.type==="ObjectTypeProperty")&&(ai(t)||fp(t)))return Pr(t,r),!0}function cg({enclosingNode:e,precedingNode:t,followingNode:r,comment:n,text:s}){if(ws(e)&&t===e.expression&&!ig(n,s))return r?Pr(r,n):Tr(e,n),!0}function M9({comment:e,enclosingNode:t,followingNode:r,precedingNode:n}){return t&&r&&n&&t.type==="ArrowFunctionExpression"&&t.returnType===n&&(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation")?(Pr(r,e),!0):!1}var jb=Tt(["ArrowFunctionExpression","FunctionExpression","FunctionDeclaration","ObjectMethod","ClassMethod","TSDeclareFunction","TSCallSignatureDeclaration","TSConstructSignatureDeclaration","TSMethodSignature","TSConstructorType","TSFunctionType","TSDeclareMethod"]),j9={endOfLine:d9,ownLine:p9,remaining:h9},J9=j9;function R9(e,{parser:t}){if(t==="flow"||t==="hermes"||t==="babel-flow")return e=Kr(0,e,/[\s(]/gu,""),e===""||e==="/*"||e==="/*::"}var U9=R9,q9=Tt(["ClassDeclaration","ClassExpression","DeclareClass","DeclareInterface","InterfaceDeclaration","TSInterfaceDeclaration"]);function K9(e){let{key:t,parent:r}=e;if(t==="types"&&ai(r)||t==="argument"&&r.type==="JSXSpreadAttribute"||t==="expression"&&r.type==="JSXSpreadChild"||t==="superClass"&&(r.type==="ClassDeclaration"||r.type==="ClassExpression")||(t==="id"||t==="typeParameters")&&q9(r)||t==="patterns"&&r.type==="MatchOrPattern")return!0;let{node:n}=e;return gm(n)?!1:ai(n)?Sb(e):!!zr(n)}var z9=K9,Oo="string",ji="array",tl="cursor",$o="indent",Mo="align",jo="trim",Ds="group",Ba="fill",ni="if-break",Jo="indent-if-break",Ro="line-suffix",La="line-suffix-boundary",Jn="line",Hi="label",Xi="break-parent",Jb=new Set([tl,$o,Mo,jo,Ds,Ba,ni,Jo,Ro,La,Jn,Hi,Xi]);function W9(e){if(typeof e=="string")return Oo;if(Array.isArray(e))return ji;if(!e)return;let{type:t}=e;if(Jb.has(t))return t}var Oa=W9,V9=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function H9(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
51
|
-
Expected it to be 'string' or 'object'.`;if(Oa(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=V9([...Jb].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'.
|
|
52
|
-
Expected it to be ${n}.`}var X9=class extends Error{name="InvalidDocError";constructor(t){super(H9(t)),this.doc=t}},Qc=X9,jx={};function G9(e,t,r,n){let s=[e];for(;s.length>0;){let i=s.pop();if(i===jx){r(s.pop());continue}r&&s.push(i,jx);let o=Oa(i);if(!o)throw new Qc(i);if(t?.(i)!==!1)switch(o){case ji:case Ba:{let l=o===ji?i:i.parts;for(let u=l.length,f=u-1;f>=0;--f)s.push(l[f]);break}case ni:s.push(i.flatContents,i.breakContents);break;case Ds:if(n&&i.expandedStates)for(let l=i.expandedStates.length,u=l-1;u>=0;--u)s.push(i.expandedStates[u]);else s.push(i.contents);break;case Mo:case $o:case Jo:case Hi:case Ro:s.push(i.contents);break;case Oo:case tl:case jo:case La:case Jn:case Xi:break;default:throw new Qc(i)}}}var pg=G9;function rl(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let o=s(i);return r.set(i,o),o}function s(i){switch(Oa(i)){case ji:return t(i.map(n));case Ba:return t({...i,parts:i.parts.map(n)});case ni:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Ds:{let{expandedStates:o,contents:l}=i;return o?(o=o.map(n),l=o[0]):l=n(l),t({...i,contents:l,expandedStates:o})}case Mo:case $o:case Jo:case Hi:case Ro:return t({...i,contents:n(i.contents)});case Oo:case tl:case jo:case La:case Jn:case Xi:return t(i);default:throw new Qc(i)}}}function Rb(e,t,r){let n=r,s=!1;function i(o){if(s)return!1;let l=t(o);l!==void 0&&(s=!0,n=l)}return pg(e,i),n}function Q9(e){if(e.type===Ds&&e.break||e.type===Jn&&e.hard||e.type===Xi)return!0}function En(e){return Rb(e,Q9,!1)}function Jx(e){if(e.length>0){let t=Vt(0,e,-1);!t.expandedStates&&!t.break&&(t.break="propagated")}return null}function Y9(e){let t=new Set,r=[];function n(i){if(i.type===Xi&&Jx(r),i.type===Ds){if(r.push(i),t.has(i))return!1;t.add(i)}}function s(i){i.type===Ds&&r.pop().break&&Jx(r)}pg(e,n,s,!0)}function Z9(e){return e.type===Jn&&!e.hard?e.soft?"":" ":e.type===ni?e.flatContents:e}function zf(e){return rl(e,Z9)}function eP(e){switch(Oa(e)){case Ba:if(e.parts.every(t=>t===""))return"";break;case Ds:if(!e.contents&&!e.id&&!e.break&&!e.expandedStates)return"";if(e.contents.type===Ds&&e.contents.id===e.id&&e.contents.break===e.break&&e.contents.expandedStates===e.expandedStates)return e.contents;break;case Mo:case $o:case Jo:case Ro:if(!e.contents)return"";break;case ni:if(!e.flatContents&&!e.breakContents)return"";break;case ji:{let t=[];for(let r of e){if(!r)continue;let[n,...s]=Array.isArray(r)?r:[r];typeof n=="string"&&typeof Vt(0,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 Oo:case tl:case jo:case La:case Jn:case Hi:case Xi:break;default:throw new Qc(e)}return e}function dg(e){return rl(e,t=>eP(t))}function wo(e,t=zb){return rl(e,r=>typeof r=="string"?Lt(t,r.split(`
|
|
53
|
-
`)):r)}function tP(e){if(e.type===Jn)return!0}function rP(e){return Rb(e,tP,!1)}function A0(e,t){return e.type===Hi?{...e,contents:t(e.contents)}:t(e)}function nP(e){let t=!0;return pg(e,r=>{switch(Oa(r)){case Oo:if(r==="")break;case jo:case La:case Jn:case Xi:return t=!1,!1}}),t}var sP=l5;function be(e){return{type:$o,contents:e}}function Bs(e,t){return{type:Mo,contents:t,n:e}}function iP(e){return Bs(Number.NEGATIVE_INFINITY,e)}function Ub(e){return Bs(-1,e)}function aP(e,t,r){let n=e;if(t>0){for(let s=0;s<Math.floor(t/r);++s)n=be(n);n=Bs(t%r,n),n=Bs(Number.NEGATIVE_INFINITY,n)}return n}var Ji={type:Xi},uf={type:tl};function qb(e){return{type:Ba,parts:e}}function ne(e,t={}){return sP(t.expandedStates),{type:Ds,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function bo(e,t){return ne(e[0],{...t,expandedStates:e})}function mt(e,t="",r={}){return{type:ni,breakContents:e,flatContents:t,groupId:r.groupId}}function Yc(e,t){return{type:Jo,contents:e,groupId:t.groupId,negate:t.negate}}function Lt(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}function mp(e,t){return e?{type:Hi,label:e,contents:t}:t}var Me={type:Jn},Ee={type:Jn,soft:!0},Kb={type:Jn,hard:!0},_e=[Kb,Ji],oP={type:Jn,hard:!0,literal:!0},zb=[oP,Ji];function Rx(e){return{type:Ro,contents:e}}var oi={type:La},uP="cr",lP="crlf",cP="\r",pP=`\r
|
|
54
|
-
`,dP=`
|
|
55
|
-
`,hP=dP;function fP(e){return e===uP?cP:e===lP?pP:hP}var mP={type:0},yP={type:1},Wb={value:"",length:0,queue:[],get root(){return Wb}};function Vb(e,t,r){let n=t.type===1?e.queue.slice(0,-1):[...e.queue,t],s="",i=0,o=0,l=0;for(let D of n)switch(D.type){case 0:p(),r.useTabs?u(1):f(r.tabWidth);break;case 3:{let{string:T}=D;p(),s+=T,i+=T.length;break}case 2:{let{width:T}=D;o+=1,l+=T;break}default:throw new Error(`Unexpected indent comment '${D.type}'.`)}return y(),{...e,value:s,length:i,queue:n};function u(D){s+=" ".repeat(D),i+=r.tabWidth*D}function f(D){s+=" ".repeat(D),i+=D}function p(){r.useTabs?d():y()}function d(){o>0&&u(o),m()}function y(){l>0&&f(l),m()}function m(){o=0,l=0}}function gP(e,t,r){if(!t)return e;if(t.type==="root")return{...e,root:e};if(t===Number.NEGATIVE_INFINITY)return e.root;let n;return typeof t=="number"?t<0?n=yP:n={type:2,width:t}:n={type:3,string:t},Vb(e,n,r)}function DP(e,t){return Vb(e,mP,t)}function xP(e){let t=0;for(let r=e.length-1;r>=0;r--){let n=e[r];if(n===" "||n===" ")t++;else break}return t}function Hb(e){let t=xP(e);return{text:t===0?e:e.slice(0,e.length-t),count:t}}var wn=Symbol("MODE_BREAK"),Hs=Symbol("MODE_FLAT"),v0=Symbol("DOC_FILL_PRINTED_LENGTH");function lf(e,t,r,n,s,i){if(r===Number.POSITIVE_INFINITY)return!0;let o=t.length,l=!1,u=[e],f="";for(;r>=0;){if(u.length===0){if(o===0)return!0;u.push(t[--o]);continue}let{mode:p,doc:d}=u.pop(),y=Oa(d);switch(y){case Oo:d&&(l&&(f+=" ",r-=1,l=!1),f+=d,r-=Ku(d));break;case ji:case Ba:{let m=y===ji?d:d.parts,D=d[v0]??0;for(let T=m.length-1;T>=D;T--)u.push({mode:p,doc:m[T]});break}case $o:case Mo:case Jo:case Hi:u.push({mode:p,doc:d.contents});break;case jo:{let{text:m,count:D}=Hb(f);f=m,r+=D;break}case Ds:{if(i&&d.break)return!1;let m=d.break?wn:p,D=d.expandedStates&&m===wn?Vt(0,d.expandedStates,-1):d.contents;u.push({mode:m,doc:D});break}case ni:{let m=(d.groupId?s[d.groupId]||Hs:p)===wn?d.breakContents:d.flatContents;m&&u.push({mode:p,doc:m});break}case Jn:if(p===wn||d.hard)return!0;d.soft||(l=!0);break;case Ro:n=!0;break;case La:if(n)return!1;break}}return!1}function Xb(e,t){let r=Object.create(null),n=t.printWidth,s=fP(t.endOfLine),i=0,o=[{indent:Wb,mode:wn,doc:e}],l="",u=!1,f=[],p=[],d=[],y=[],m=0;for(Y9(e);o.length>0;){let{indent:E,mode:C,doc:P}=o.pop();switch(Oa(P)){case Oo:{let k=s!==`
|
|
56
|
-
`?Kr(0,P,`
|
|
57
|
-
`,s):P;k&&(l+=k,o.length>0&&(i+=Ku(k)));break}case ji:for(let k=P.length-1;k>=0;k--)o.push({indent:E,mode:C,doc:P[k]});break;case tl:if(p.length>=2)throw new Error("There are too many 'cursor' in doc.");p.push(m+l.length);break;case $o:o.push({indent:DP(E,t),mode:C,doc:P.contents});break;case Mo:o.push({indent:gP(E,P.n,t),mode:C,doc:P.contents});break;case jo:v();break;case Ds:switch(C){case Hs:if(!u){o.push({indent:E,mode:P.break?wn:Hs,doc:P.contents});break}case wn:{u=!1;let k={indent:E,mode:Hs,doc:P.contents},w=n-i,B=f.length>0;if(!P.break&&lf(k,o,w,B,r))o.push(k);else if(P.expandedStates){let I=Vt(0,P.expandedStates,-1);if(P.break){o.push({indent:E,mode:wn,doc:I});break}else for(let oe=1;oe<P.expandedStates.length+1;oe++)if(oe>=P.expandedStates.length){o.push({indent:E,mode:wn,doc:I});break}else{let ee=P.expandedStates[oe],me={indent:E,mode:Hs,doc:ee};if(lf(me,o,w,B,r)){o.push(me);break}}}else o.push({indent:E,mode:wn,doc:P.contents});break}}P.id&&(r[P.id]=Vt(0,o,-1).mode);break;case Ba:{let k=n-i,w=P[v0]??0,{parts:B}=P,I=B.length-w;if(I===0)break;let oe=B[w+0],ee=B[w+1],me={indent:E,mode:Hs,doc:oe},Ge={indent:E,mode:wn,doc:oe},Q=lf(me,[],k,f.length>0,r,!0);if(I===1){Q?o.push(me):o.push(Ge);break}let we={indent:E,mode:Hs,doc:ee},ge={indent:E,mode:wn,doc:ee};if(I===2){Q?o.push(we,me):o.push(ge,Ge);break}let Pe=B[w+2],Et={indent:E,mode:C,doc:{...P,[v0]:w+2}},et=lf({indent:E,mode:Hs,doc:[oe,ee,Pe]},[],k,f.length>0,r,!0);o.push(Et),et?o.push(we,me):Q?o.push(ge,me):o.push(ge,Ge);break}case ni:case Jo:{let k=P.groupId?r[P.groupId]:C;if(k===wn){let w=P.type===ni?P.breakContents:P.negate?P.contents:be(P.contents);w&&o.push({indent:E,mode:C,doc:w})}if(k===Hs){let w=P.type===ni?P.flatContents:P.negate?be(P.contents):P.contents;w&&o.push({indent:E,mode:C,doc:w})}break}case Ro:f.push({indent:E,mode:C,doc:P.contents});break;case La:f.length>0&&o.push({indent:E,mode:C,doc:Kb});break;case Jn:switch(C){case Hs:if(P.hard)u=!0;else{P.soft||(l+=" ",i+=1);break}case wn:if(f.length>0){o.push({indent:E,mode:C,doc:P},...f.reverse()),f.length=0;break}P.literal?(l+=s,i=0,E.root&&(E.root.value&&(l+=E.root.value),i=E.root.length)):(v(),l+=s+E.value,i=E.length);break}break;case Hi:o.push({indent:E,mode:C,doc:P.contents});break;case Xi:break;default:throw new Qc(P)}o.length===0&&f.length>0&&(o.push(...f.reverse()),f.length=0)}let D=d.join("")+l,T=[...y,...p];if(T.length!==2)return{formatted:D};let S=T[0];return{formatted:D,cursorNodeStart:S,cursorNodeText:D.slice(S,Vt(0,T,-1))};function v(){let{text:E,count:C}=Hb(l);E&&(d.push(E),m+=E.length),l="",i-=C,p.length>0&&(y.push(...p.map(P=>Math.min(P,m))),p.length=0)}}function TP(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 EP=TP;function bP(e,t){let r=e.lastIndexOf(`
|
|
58
|
-
`);return r===-1?0:EP(e.slice(r+1).match(/^[\t ]*/u)[0],t)}var CP=bP;function Gb(e,t,r){let{node:n}=e;if(n.type==="TemplateLiteral"&&_P(e)){let u=vP(e,t,r);if(u)return u}let s="expressions";n.type==="TSTemplateLiteralType"&&(s="types");let i=[],o=e.map(r,s);i.push(oi,"`");let l=0;return e.each(({index:u,node:f})=>{if(i.push(r()),f.tail)return;let{tabWidth:p}=t,d=f.value.raw,y=d.includes(`
|
|
59
|
-
`)?CP(d,p):l;l=y;let m=o[u],D=n[s][u],T=Zn(t.originalText,_t(f),Pt(n.quasis[u+1]));if(!T){let v=Xb(m,{...t,printWidth:Number.POSITIVE_INFINITY}).formatted;v.includes(`
|
|
60
|
-
`)?T=!0:m=v}T&&($e(D)||D.type==="Identifier"||pr(D)||D.type==="ConditionalExpression"||D.type==="SequenceExpression"||ws(D)||Mi(D))&&(m=[be([Ee,m]),Ee]);let S=y===0&&d.endsWith(`
|
|
61
|
-
`)?Bs(Number.NEGATIVE_INFINITY,m):aP(m,y,p);i.push(ne(["${",S,oi,"}"]))},"quasis"),i.push("`"),i}function AP(e,t,r){let n=r("quasi"),{node:s}=e,i="",o=Ao(s.quasi,ze.Leading)[0];return o&&(Zn(t.originalText,_t(s.typeArguments??s.tag),Pt(o))?i=Ee:i=" "),mp(n.label&&{tagged:!0,...n.label},[r("tag"),r("typeArguments"),i,oi,n])}function vP(e,t,r){let{node:n}=e,s=n.quasis[0].value.raw.trim().split(/\s*\|\s*/u);if(s.length>1||s.some(i=>i.length>0)){t.__inJestEach=!0;let i=e.map(r,"expressions");t.__inJestEach=!1;let o=i.map(d=>"${"+Xb(d,{...t,printWidth:Number.POSITIVE_INFINITY,endOfLine:"lf"}).formatted+"}"),l=[{hasLineBreak:!1,cells:[]}];for(let d=1;d<n.quasis.length;d++){let y=Vt(0,l,-1),m=o[d-1];y.cells.push(m),m.includes(`
|
|
62
|
-
`)&&(y.hasLineBreak=!0),n.quasis[d].value.raw.includes(`
|
|
63
|
-
`)&&l.push({hasLineBreak:!1,cells:[]})}let u=Math.max(s.length,...l.map(d=>d.cells.length)),f=Array.from({length:u}).fill(0),p=[{cells:s},...l.filter(d=>d.cells.length>0)];for(let{cells:d}of p.filter(y=>!y.hasLineBreak))for(let[y,m]of d.entries())f[y]=Math.max(f[y],Ku(m));return[oi,"`",be([_e,Lt(_e,p.map(d=>Lt(" | ",d.cells.map((y,m)=>d.hasLineBreak?y:y+" ".repeat(f[m]-Ku(y))))))]),_e,"`"]}}function SP(e,t){let{node:r}=e,n=t();return $e(r)&&(n=ne([be([Ee,n]),Ee])),["${",n,oi,"}"]}function hg(e,t){return e.map(()=>SP(e,t),"expressions")}function Qb(e,t){return rl(e,r=>typeof r=="string"?t?Kr(0,r,/(\\*)`/gu,"$1$1\\`"):Yb(r):r)}function Yb(e){return Kr(0,e,/([\\`]|\$\{)/gu,"\\$1")}function _P({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 S0=[(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 FP(e){let t=n=>n.type==="TemplateLiteral",r=(n,s)=>Ia(n)&&!n.computed&&n.key.type==="Identifier"&&n.key.name==="styles"&&s==="value";return e.match(t,(n,s)=>rn(n)&&s==="elements",r,...S0)||e.match(t,r,...S0)}function kP(e){return e.match(t=>t.type==="TemplateLiteral",(t,r)=>Ia(t)&&!t.computed&&t.key.type==="Identifier"&&t.key.name==="template"&&r==="value",...S0)}function Iy(e,t){return $e(e,ze.Block|ze.Leading,({value:r})=>r===` ${t} `)}function Zb({node:e,parent:t},r){return Iy(e,r)||wP(t)&&Iy(t,r)||t.type==="ExpressionStatement"&&Iy(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 PP(e,t,r){let{node:n}=r,s="";for(let[u,f]of n.quasis.entries()){let{raw:p}=f.value;u>0&&(s+="@prettier-placeholder-"+(u-1)+"-id"),s+=p}let i=await e(s,{parser:"scss"}),o=hg(r,t),l=NP(i,o);if(!l)throw new Error("Couldn't insert all the expressions");return["`",be([_e,l]),Ee,"`"]}function NP(e,t){if(!dr(t))return e;let r=0,n=rl(dg(e),s=>typeof s!="string"||!s.includes("@prettier-placeholder")?s:s.split(/@prettier-placeholder-(\d+)-id/u).map((i,o)=>o%2===0?wo(i):(r++,t[i])));return t.length===r?n:null}function IP(e){return e.match(void 0,(t,r)=>r==="quasi"&&t.type==="TaggedTemplateExpression"&&Q2(t.tag,["css","css.global","css.resolve"]))||e.match(void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer",(t,r)=>r==="children"&&t.type==="JSXElement"&&t.openingElement.name.type==="JSXIdentifier"&&t.openingElement.name.name==="style"&&t.openingElement.attributes.some(n=>n.type==="JSXAttribute"&&n.name.type==="JSXIdentifier"&&n.name.name==="jsx"))}function cf(e){return e.type==="Identifier"&&e.name==="styled"}function Ux(e){return/^[A-Z]/u.test(e.object.name)&&e.property.name==="extend"}function BP({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 cf(t.object)||Ux(t);case"CallExpression":return cf(t.callee)||t.callee.type==="MemberExpression"&&(t.callee.object.type==="MemberExpression"&&(cf(t.callee.object.object)||Ux(t.callee.object))||t.callee.object.type==="CallExpression"&&cf(t.callee.object.callee));case"Identifier":return t.name==="css";default:return!1}}function LP({parent:e,grandparent:t}){return t?.type==="JSXAttribute"&&e.type==="JSXExpressionContainer"&&t.name.type==="JSXIdentifier"&&t.name.name==="css"}var OP=e=>IP(e)||BP(e)||LP(e)||FP(e);async function $P(e,t,r){let{node:n}=r,s=n.quasis.length,i=hg(r,t),o=[];for(let l=0;l<s;l++){let u=n.quasis[l],f=l===0,p=l===s-1,d=u.value.cooked,y=d.split(`
|
|
64
|
-
`),m=y.length,D=i[l],T=m>2&&y[0].trim()===""&&y[1].trim()==="",S=m>2&&y[m-1].trim()===""&&y[m-2].trim()==="",v=y.every(C=>/^\s*(?:#[^\n\r]*)?$/u.test(C));if(!p&&/#[^\n\r]*$/u.test(y[m-1]))return null;let E=null;v?E=MP(y):E=await e(d,{parser:"graphql"}),E?(E=Qb(E,!1),!f&&T&&o.push(""),o.push(E),!p&&S&&o.push("")):!f&&!p&&T&&o.push(""),D&&o.push(D)}return["`",be([_e,Lt(_e,o)]),_e,"`"]}function MP(e){let t=[],r=!1,n=e.map(s=>s.trim());for(let[s,i]of n.entries())i!==""&&(n[s-1]===""&&r?t.push([_e,i]):t.push(i),r=!0);return t.length===0?null:Lt(_e,t)}function jP({node:e,parent:t}){return Zb({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")}var By=0;async function e6(e,t,r,n,s){let{node:i}=n,o=By;By=By+1>>>0;let l=v=>`PRETTIER_HTML_PLACEHOLDER_${v}_${o}_IN_JS`,u=i.quasis.map((v,E,C)=>E===C.length-1?v.value.cooked:v.value.cooked+l(E)).join(""),f=hg(n,r),p=new RegExp(l("(\\d+)"),"gu"),d=0,y=await t(u,{parser:e,__onHtmlRoot(v){d=v.children.length}}),m=rl(y,v=>{if(typeof v!="string")return v;let E=[],C=v.split(p);for(let P=0;P<C.length;P++){let k=C[P];if(P%2===0){k&&(k=Yb(k),s.__embeddedInHtml&&(k=Kr(0,k,/<\/(?=script\b)/giu,"<\\/")),E.push(k));continue}let w=Number(k);E.push(f[w])}return E}),D=/^\s/u.test(u)?" ":"",T=/\s$/u.test(u)?" ":"",S=s.htmlWhitespaceSensitivity==="ignore"?_e:D&&T?Me:null;return S?ne(["`",be([S,ne(m)]),S,"`"]):mp({hug:!1},ne(["`",D,d>1?be(ne(m)):ne(m),T,"`"]))}function JP(e){return Zb(e,"HTML")||e.match(t=>t.type==="TemplateLiteral",(t,r)=>t.type==="TaggedTemplateExpression"&&t.tag.type==="Identifier"&&t.tag.name==="html"&&r==="quasi")}var RP=e6.bind(void 0,"html"),UP=e6.bind(void 0,"angular");async function qP(e,t,r){let{node:n}=r,s=Kr(0,n.quasis[0].value.raw,/((?:\\\\)*)\\`/gu,(u,f)=>"\\".repeat(f.length/2)+"`"),i=KP(s),o=i!=="";o&&(s=Kr(0,s,new RegExp(`^${i}`,"gmu"),""));let l=Qb(await e(s,{parser:"markdown",__inJsTemplate:!0}),!0);return["`",o?be([Ee,l]):[zb,iP(l)],Ee,"`"]}function KP(e){let t=e.match(/^([^\S\n]*)\S/mu);return t===null?"":t[1]}function zP({node:e,parent:t}){return t?.type==="TaggedTemplateExpression"&&e.quasis.length===1&&t.tag.type==="Identifier"&&(t.tag.name==="md"||t.tag.name==="markdown")}var WP=[{test:OP,print:PP},{test:jP,print:$P},{test:JP,print:RP},{test:kP,print:UP},{test:zP,print:qP}].map(({test:e,print:t})=>({test:e,print:HP(t)}));function VP(e){let{node:t}=e;if(t.type!=="TemplateLiteral"||XP(t))return;let r=WP.find(({test:n})=>n(e));if(r)return t.quasis.length===1&&t.quasis[0].value.raw.trim()===""?"``":r.print}function HP(e){return async(...t)=>{let r=await e(...t);return r&&mp({embed:!0,...r.label},r)}}function XP({quasis:e}){return e.some(({value:{cooked:t}})=>t===null)}var GP=VP,QP=/\*\/$/,YP=/^\/\*\*?/,t6=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,ZP=/(^|\s+)\/\/([^\n\r]*)/g,qx=/^(\r?\n)+/,eN=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,Kx=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,tN=/(\r?\n|^) *\* ?/g,r6=[];function rN(e){let t=e.match(t6);return t?t[0].trimStart():""}function nN(e){let t=e.match(t6)?.[0];return t==null?e:e.slice(t.length)}function sN(e){e=Kr(0,e.replace(YP,"").replace(QP,""),tN,"$1");let t="";for(;t!==e;)t=e,e=Kr(0,e,eN,`
|
|
65
|
-
$1 $2
|
|
66
|
-
`);e=e.replace(qx,"").trimEnd();let r=Object.create(null),n=Kr(0,e,Kx,"").replace(qx,"").trimEnd(),s;for(;s=Kx.exec(e);){let i=Kr(0,s[2],ZP,"");if(typeof r[s[1]]=="string"||Array.isArray(r[s[1]])){let o=r[s[1]];r[s[1]]=[...r6,...Array.isArray(o)?o:[o],i]}else r[s[1]]=i}return{comments:n,pragmas:r}}function iN({comments:e="",pragmas:t={}}){let r=Object.keys(t),n=r.flatMap(i=>zx(i,t[i])).map(i=>` * ${i}
|
|
67
|
-
`).join("");if(!e){if(r.length===0)return"";if(r.length===1&&!Array.isArray(t[r[0]])){let i=t[r[0]];return`/** ${zx(r[0],i)[0]} */`}}let s=e.split(`
|
|
68
|
-
`).map(i=>` * ${i}`).join(`
|
|
69
|
-
`)+`
|
|
70
|
-
`;return`/**
|
|
71
|
-
`+(e?s:"")+(e&&r.length>0?` *
|
|
72
|
-
`:"")+n+" */"}function zx(e,t){return[...r6,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var aN="format";function oN(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
73
|
-
`);return t===-1?e:e.slice(0,t)}var uN=oN;function lN(e){let t=uN(e);t&&(e=e.slice(t.length+1));let r=rN(e),{pragmas:n,comments:s}=sN(r);return{shebang:t,text:e,pragmas:n,comments:s}}function cN(e){let{shebang:t,text:r,pragmas:n,comments:s}=lN(e),i=nN(r),o=iN({pragmas:{[aN]:"",...n},comments:s.trimStart()});return(t?`${t}
|
|
74
|
-
`:"")+o+(i.startsWith(`
|
|
75
|
-
`)?`
|
|
76
|
-
`:`
|
|
77
|
-
|
|
78
|
-
`)+i}function pN(e){if(!Ls(e))return!1;let t=`*${e.value}*`.split(`
|
|
79
|
-
`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var Ly=new WeakMap;function dN(e){return Ly.has(e)||Ly.set(e,pN(e)),Ly.get(e)}var hN=dN;function fN(e,t){let r=e.node;if(dp(r))return t.originalText.slice(Pt(r),_t(r)).trimEnd();if(hN(r))return mN(r);if(Ls(r))return["/*",wo(r.value),"*/"];throw new Error("Not a comment: "+JSON.stringify(r))}function mN(e){let t=e.value.split(`
|
|
80
|
-
`);return["/*",Lt(_e,t.map((r,n)=>n===0?r.trimEnd():" "+(n<t.length-1?r.trim():r.trimStart()))),"*/"]}function _0(e,t){if(e.isRoot)return!1;let{node:r,key:n,parent:s}=e;if(t.__isInHtmlInterpolation&&!t.bracketSpacing&&xN(r)&&Sc(e))return!0;if(yN(r))return!1;if(r.type==="Identifier"){if(r.extra?.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 i=e.findAncestor(o=>o.type==="ForOfStatement")?.left;if(i&&Tn(i,o=>o===r))return!0}if(n==="object"&&r.name==="let"&&s.type==="MemberExpression"&&s.computed&&!s.optional){let i=e.findAncestor(l=>l.type==="ExpressionStatement"||l.type==="ForStatement"||l.type==="ForInStatement"),o=i?i.type==="ExpressionStatement"?i.expression:i.type==="ForStatement"?i.init:i.left:void 0;if(o&&Tn(o,l=>l===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 i=e.findAncestor(o=>!ws(o));if(i!==s&&i.type==="ExpressionStatement")return!0}}return!1}if(r.type==="ObjectExpression"||r.type==="FunctionExpression"||r.type==="ClassExpression"||r.type==="DoExpression"){let i=e.findAncestor(o=>o.type==="ExpressionStatement")?.expression;if(i&&Tn(i,o=>o===r))return!0}if(r.type==="ObjectExpression"){let i=e.findAncestor(o=>o.type==="ArrowFunctionExpression")?.body;if(i&&i.type!=="SequenceExpression"&&i.type!=="AssignmentExpression"&&Tn(i,o=>o===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"&&dr(r.decorators)))return!0;break;case"ExportDefaultDeclaration":return n6(e,t)||r.type==="SequenceExpression";case"Decorator":if(n==="expression"&&!EN(r))return!0;break;case"TypeAnnotation":if(e.match(void 0,void 0,(i,o)=>o==="returnType"&&i.type==="ArrowFunctionExpression")&&DN(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,(i,o)=>o==="declarations"&&i.type==="VariableDeclaration",(i,o)=>o==="left"&&i.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"&&gN(e))return!0;if(r.operator==="|>"&&r.extra?.parenthesized){let i=e.grandparent;if(i.type==="BinaryExpression"&&i.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!ws(r);case"ConditionalExpression":return ws(r)||L5(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"||ws(r));case"LogicalExpression":if(r.type==="LogicalExpression")return s.operator!==r.operator;case"BinaryExpression":{let{operator:i,type:o}=r;if(!i&&o!=="TSTypeAssertion")return!0;let l=qf(i),u=s.operator,f=qf(u);return!!(f>l||n==="right"&&f===l||f===l&&!ng(u,i)||f<l&&i==="%"&&(u==="+"||u==="-")||H5(u))}default:return!1}case"SequenceExpression":return s.type!=="ForStatement";case"YieldExpression":if(s.type==="AwaitExpression"||s.type==="TSTypeAssertion")return!0;case"AwaitExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"SpreadElement":case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"BindExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return n==="test";case"BinaryExpression":return!(!r.argument&&s.operator==="|>");default:return!1}case"TSFunctionType":if(e.match(i=>i.type==="TSFunctionType",(i,o)=>o==="typeAnnotation"&&i.type==="TSTypeAnnotation",(i,o)=>o==="returnType"&&i.type==="ArrowFunctionExpression"))return!0;case"TSConditionalType":case"TSConstructorType":case"ConditionalTypeAnnotation":if(n==="extendsType"&&wa(r)&&s.type===r.type||n==="checkType"&&wa(s))return!0;if(n==="extendsType"&&s.type==="TSConditionalType"){let{typeAnnotation:i}=r.returnType||r.typeAnnotation;if(i.type==="TSTypePredicate"&&i.typeAnnotation&&(i=i.typeAnnotation.typeAnnotation),i.type==="TSInferType"&&i.typeParameter.constraint)return!0}case"TSUnionType":case"TSIntersectionType":if(ai(s)||fp(s))return!0;case"TSInferType":if(r.type==="TSInferType"){if(s.type==="TSRestType")return!1;if(n==="types"&&(s.type==="TSUnionType"||s.type==="TSIntersectionType")&&r.typeParameter.type==="TSTypeParameter"&&r.typeParameter.constraint)return!0}case"TSTypeOperator":return s.type==="TSArrayType"||s.type==="TSOptionalType"||s.type==="TSRestType"||n==="objectType"&&s.type==="TSIndexedAccessType"||s.type==="TSTypeOperator"||s.type==="TSTypeAnnotation"&&e.grandparent.type.startsWith("TSJSDoc");case"TSTypeQuery":return n==="objectType"&&s.type==="TSIndexedAccessType"||n==="elementType"&&s.type==="TSArrayType";case"TypeOperator":return s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||s.type==="TypeOperator";case"TypeofTypeAnnotation":return n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType")||n==="elementType"&&s.type==="ArrayTypeAnnotation";case"ArrayTypeAnnotation":return s.type==="NullableTypeAnnotation";case"IntersectionTypeAnnotation":case"UnionTypeAnnotation":return s.type==="TypeOperator"||s.type==="KeyofTypeAnnotation"||s.type==="ArrayTypeAnnotation"||s.type==="NullableTypeAnnotation"||s.type==="IntersectionTypeAnnotation"||s.type==="UnionTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"InferTypeAnnotation":case"NullableTypeAnnotation":return s.type==="ArrayTypeAnnotation"||n==="objectType"&&(s.type==="IndexedAccessType"||s.type==="OptionalIndexedAccessType");case"ComponentTypeAnnotation":case"FunctionTypeAnnotation":{if(r.type==="ComponentTypeAnnotation"&&(r.rendersType===null||r.rendersType===void 0))return!1;if(e.match(void 0,(o,l)=>l==="typeAnnotation"&&o.type==="TypeAnnotation",(o,l)=>l==="returnType"&&o.type==="ArrowFunctionExpression")||e.match(void 0,(o,l)=>l==="typeAnnotation"&&o.type==="TypePredicate",(o,l)=>l==="typeAnnotation"&&o.type==="TypeAnnotation",(o,l)=>l==="returnType"&&o.type==="ArrowFunctionExpression"))return!0;let i=s.type==="NullableTypeAnnotation"?e.grandparent:s;return i.type==="UnionTypeAnnotation"||i.type==="IntersectionTypeAnnotation"||i.type==="ArrayTypeAnnotation"||n==="objectType"&&(i.type==="IndexedAccessType"||i.type==="OptionalIndexedAccessType")||n==="checkType"&&s.type==="ConditionalTypeAnnotation"||n==="extendsType"&&s.type==="ConditionalTypeAnnotation"&&r.returnType?.type==="InferTypeAnnotation"&&r.returnType?.typeParameter.bound||i.type==="NullableTypeAnnotation"||s.type==="FunctionTypeParam"&&s.name===null&&cn(r).some(o=>o.typeAnnotation?.type==="NullableTypeAnnotation")}case"OptionalIndexedAccessType":return n==="objectType"&&s.type==="IndexedAccessType";case"StringLiteral":case"NumericLiteral":case"Literal":if(typeof r.value=="string"&&s.type==="ExpressionStatement"&&typeof s.directive!="string"){let i=e.grandparent;return i.type==="Program"||i.type==="BlockStatement"}return n==="object"&&pr(s)&&ii(r);case"AssignmentExpression":return!((n==="init"||n==="update")&&s.type==="ForStatement"||n==="expression"&&r.left.type!=="ObjectPattern"&&s.type==="ExpressionStatement"||n==="key"&&s.type==="TSPropertySignature"||s.type==="AssignmentExpression"||n==="expressions"&&s.type==="SequenceExpression"&&e.match(void 0,void 0,(i,o)=>(o==="init"||o==="update")&&i.type==="ForStatement")||n==="value"&&s.type==="Property"&&e.match(void 0,void 0,(i,o)=>o==="properties"&&i.type==="ObjectPattern")||s.type==="NGChainedExpression"||n==="node"&&s.type==="JsExpressionRoot");case"ConditionalExpression":switch(s.type){case"TaggedTemplateExpression":case"UnaryExpression":case"SpreadElement":case"BinaryExpression":case"LogicalExpression":case"NGPipeExpression":case"ExportDefaultDeclaration":case"AwaitExpression":case"JSXSpreadAttribute":case"TSTypeAssertion":case"TypeCastExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":return!0;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"ConditionalExpression":return t.experimentalTernaries?!1:n==="test";case"MemberExpression":case"OptionalMemberExpression":return n==="object";default:return!1}case"FunctionExpression":switch(s.type){case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"TaggedTemplateExpression":return!0;default:return!1}case"ArrowFunctionExpression":switch(s.type){case"BinaryExpression":return s.operator!=="|>"||r.extra?.parenthesized;case"NewExpression":case"CallExpression":case"OptionalCallExpression":return n==="callee";case"MemberExpression":case"OptionalMemberExpression":return n==="object";case"TSAsExpression":case"TSSatisfiesExpression":case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":case"TSNonNullExpression":case"BindExpression":case"TaggedTemplateExpression":case"UnaryExpression":case"LogicalExpression":case"AwaitExpression":case"TSTypeAssertion":case"MatchExpressionCase":return!0;case"TSInstantiationExpression":return n==="expression";case"ConditionalExpression":return n==="test";default:return!1}case"ClassExpression":return s.type==="NewExpression"?n==="callee":!1;case"OptionalMemberExpression":case"OptionalCallExpression":case"CallExpression":case"MemberExpression":if(TN(e))return!0;case"TaggedTemplateExpression":case"TSNonNullExpression":if(n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")){let i=r;for(;i;)switch(i.type){case"CallExpression":case"OptionalCallExpression":return!0;case"MemberExpression":case"OptionalMemberExpression":case"BindExpression":i=i.object;break;case"TaggedTemplateExpression":i=i.tag;break;case"TSNonNullExpression":i=i.expression;break;default:return!1}}return!1;case"BindExpression":return n==="callee"&&(s.type==="BindExpression"||s.type==="NewExpression")||n==="object"&&pr(s);case"NGPipeExpression":return!(s.type==="NGRoot"||s.type==="NGMicrosyntaxExpression"||s.type==="ObjectProperty"&&!r.extra?.parenthesized||rn(s)||n==="arguments"&&Wt(s)||n==="right"&&s.type==="NGPipeExpression"||n==="property"&&s.type==="MemberExpression"||s.type==="AssignmentExpression");case"JSXFragment":case"JSXElement":return n==="callee"||n==="left"&&s.type==="BinaryExpression"&&s.operator==="<"||!rn(s)&&s.type!=="ArrowFunctionExpression"&&s.type!=="AssignmentExpression"&&s.type!=="AssignmentPattern"&&s.type!=="BinaryExpression"&&s.type!=="NewExpression"&&s.type!=="ConditionalExpression"&&s.type!=="ExpressionStatement"&&s.type!=="JsExpressionRoot"&&s.type!=="JSXAttribute"&&s.type!=="JSXElement"&&s.type!=="JSXExpressionContainer"&&s.type!=="JSXFragment"&&s.type!=="LogicalExpression"&&!Wt(s)&&!Ia(s)&&s.type!=="ReturnStatement"&&s.type!=="ThrowStatement"&&s.type!=="TypeCastExpression"&&s.type!=="VariableDeclarator"&&s.type!=="YieldExpression"&&s.type!=="MatchExpressionCase";case"TSInstantiationExpression":return n==="object"&&pr(s);case"MatchOrPattern":return s.type==="MatchAsPattern"}return!1}var yN=Tt(["BlockStatement","BreakStatement","ComponentDeclaration","ClassBody","ClassDeclaration","ClassMethod","ClassProperty","PropertyDefinition","ClassPrivateProperty","ContinueStatement","DebuggerStatement","DeclareComponent","DeclareClass","DeclareExportAllDeclaration","DeclareExportDeclaration","DeclareFunction","DeclareHook","DeclareInterface","DeclareModule","DeclareModuleExports","DeclareNamespace","DeclareVariable","DeclareEnum","DoWhileStatement","EnumDeclaration","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ForInStatement","ForOfStatement","ForStatement","FunctionDeclaration","HookDeclaration","IfStatement","ImportDeclaration","InterfaceDeclaration","LabeledStatement","MethodDefinition","ReturnStatement","SwitchStatement","ThrowStatement","TryStatement","TSDeclareFunction","TSEnumDeclaration","TSImportEqualsDeclaration","TSInterfaceDeclaration","TSModuleDeclaration","TSNamespaceExportDeclaration","TypeAlias","VariableDeclaration","WhileStatement","WithStatement"]);function gN(e){let t=0,{node:r}=e;for(;r;){let n=e.getParentNode(t++);if(n?.type==="ForStatement"&&n.init===r)return!0;r=n}return!1}function DN(e){return T0(e,t=>t.type==="ObjectTypeAnnotation"&&T0(t,r=>r.type==="FunctionTypeAnnotation"))}function xN(e){return Ns(e)}function Sc(e){let{parent:t,key:r}=e;switch(t.type){case"NGPipeExpression":if(r==="arguments"&&e.isLast)return e.callParent(Sc);break;case"ObjectProperty":if(r==="value")return e.callParent(()=>e.key==="properties"&&e.isLast);break;case"BinaryExpression":case"LogicalExpression":if(r==="right")return e.callParent(Sc);break;case"ConditionalExpression":if(r==="alternate")return e.callParent(Sc);break;case"UnaryExpression":if(t.prefix)return e.callParent(Sc);break}return!1}function n6(e,t){let{node:r,parent:n}=e;return r.type==="FunctionExpression"||r.type==="ClassExpression"?n.type==="ExportDefaultDeclaration"||!_0(e,t):!Z2(r)||n.type!=="ExportDefaultDeclaration"&&_0(e,t)?!1:e.call(()=>n6(e,t),...yb(r))}function TN(e){return!!(e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalCallExpression"||t.type==="OptionalMemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="tag"&&t.type==="TaggedTemplateExpression")||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&(t.type==="CallExpression"||t.type==="NewExpression"))||e.match(t=>t.type==="OptionalMemberExpression"||t.type==="OptionalCallExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression")||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression")&&(e.match(void 0,void 0,(t,r)=>r==="callee"&&(t.type==="CallExpression"&&!t.optional||t.type==="NewExpression")||r==="object"&&t.type==="MemberExpression"&&!t.optional)||e.match(void 0,void 0,(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))||e.match(t=>t.type==="CallExpression"||t.type==="MemberExpression",(t,r)=>r==="expression"&&t.type==="TSNonNullExpression",(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="object"&&t.type==="MemberExpression"||r==="callee"&&t.type==="CallExpression"))}function F0(e){return e.type==="Identifier"?!0:pr(e)?!e.computed&&!e.optional&&e.property.type==="Identifier"&&F0(e.object):!1}function EN(e){return e.type==="ChainExpression"&&(e=e.expression),F0(e)||Wt(e)&&!e.optional&&F0(e.callee)}var $a=_0;function bN(e,t){let r=t-1;r=zu(e,r,{backwards:!0}),r=Wu(e,r,{backwards:!0}),r=zu(e,r,{backwards:!0});let n=Wu(e,r,{backwards:!0});return r!==n}var CN=bN,AN=()=>!0;function fg(e,t){let r=e.node;return r.printed=!0,t.printer.printComment(e,t)}function vN(e,t){let r=e.node,n=[fg(e,t)],{printer:s,originalText:i,locStart:o,locEnd:l}=t;if(s.isBlockComment?.(r)){let f=On(i,l(r))?On(i,o(r),{backwards:!0})?_e:Me:" ";n.push(f)}else n.push(_e);let u=Wu(i,zu(i,l(r)));return u!==!1&&On(i,u)&&n.push(_e),n}function SN(e,t,r){let n=e.node,s=fg(e,t),{printer:i,originalText:o,locStart:l}=t,u=i.isBlockComment?.(n);if(r?.hasLineSuffix&&!r?.isBlock||On(o,l(n),{backwards:!0})){let f=CN(o,l(n));return{doc:Rx([_e,f?_e:"",s]),isBlock:u,hasLineSuffix:!0}}return!u||r?.hasLineSuffix?{doc:[Rx([" ",s]),Ji],isBlock:u,hasLineSuffix:!0}:{doc:[" ",s],isBlock:u,hasLineSuffix:!1}}function cr(e,t,r={}){let{node:n}=e;if(!dr(n?.comments))return"";let{indent:s=!1,marker:i,filter:o=AN}=r,l=[];if(e.each(({node:f})=>{f.leading||f.trailing||f.marker!==i||!o(f)||l.push(fg(e,t))},"comments"),l.length===0)return"";let u=Lt(_e,l);return s?be([_e,u]):u}function Dm(e,t){let r=e.node;if(!r)return{};let n=t[Symbol.for("printedComments")];if((r.comments||[]).filter(l=>!n.has(l)).length===0)return{leading:"",trailing:""};let s=[],i=[],o;return e.each(()=>{let l=e.node;if(n?.has(l))return;let{leading:u,trailing:f}=l;u?s.push(vN(e,t)):f&&(o=SN(e,t,o),i.push(o.doc))},"comments"),{leading:s,trailing:i}}function ys(e,t,r){let{leading:n,trailing:s}=Dm(e,r);return!n&&!s?t:A0(t,i=>[n,i,s])}var Wf=class extends Error{name="ArgExpansionBailout"};function Uo(e,t,r,n,s){let i=e.node,o=cn(i),l=s&&i.typeParameters?r("typeParameters"):"";if(o.length===0)return[l,"(",cr(e,t,{filter:m=>Is(t.originalText,_t(m))===")"}),")"];let{parent:u}=e,f=ym(u),p=s6(i),d=[];if(G5(e,(m,D)=>{let T=D===o.length-1;T&&i.rest&&d.push("..."),d.push(r()),!T&&(d.push(","),f||p?d.push(" "):pi(o[D],t)?d.push(_e,_e):d.push(Me))}),n&&!FN(e)){if(En(l)||En(d))throw new Wf;return ne([zf(l),"(",zf(d),")"])}let y=o.every(m=>!dr(m.decorators));return p&&y?[l,"(",...d,")"]:f?[l,"(",...d,")"]:(xb(u)||j5(u)||u.type==="TypeAlias"||u.type==="UnionTypeAnnotation"||u.type==="IntersectionTypeAnnotation"||u.type==="FunctionTypeAnnotation"&&u.returnType===i)&&o.length===1&&o[0].name===null&&i.this!==o[0]&&o[0].typeAnnotation&&i.typeParameters===null&&tg(o[0].typeAnnotation)&&!i.rest?t.arrowParens==="always"||i.type==="HookTypeAnnotation"?["(",...d,")"]:d:[l,"(",be([Ee,...d]),mt(!X5(i)&&ci(t,"all")?",":""),Ee,")"]}function s6(e){if(!e)return!1;let t=cn(e);if(t.length!==1)return!1;let[r]=t;return!$e(r)&&(r.type==="ObjectPattern"||r.type==="ArrayPattern"||r.type==="Identifier"&&r.typeAnnotation&&(r.typeAnnotation.type==="TypeAnnotation"||r.typeAnnotation.type==="TSTypeAnnotation")&&ka(r.typeAnnotation.typeAnnotation)||r.type==="FunctionTypeParam"&&ka(r.typeAnnotation)&&r!==e.rest||r.type==="AssignmentPattern"&&(r.left.type==="ObjectPattern"||r.left.type==="ArrayPattern")&&(r.right.type==="Identifier"||Ns(r.right)&&r.right.properties.length===0||rn(r.right)&&r.right.elements.length===0))}function _N(e){let t;return e.returnType?(t=e.returnType,t.typeAnnotation&&(t=t.typeAnnotation)):e.typeAnnotation&&(t=e.typeAnnotation),t}function nl(e,t){let r=_N(e);if(!r)return!1;let n=e.typeParameters?.params;if(n){if(n.length>1)return!1;if(n.length===1){let s=n[0];if(s.constraint||s.default)return!1}}return cn(e).length===1&&(ka(r)||En(t))}function FN(e){return e.match(t=>t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement",(t,r)=>{if(t.type==="CallExpression"&&r==="arguments"&&t.arguments.length===1&&t.callee.type==="CallExpression"){let n=t.callee.callee;return n.type==="Identifier"||n.type==="MemberExpression"&&!n.computed&&n.object.type==="Identifier"&&n.property.type==="Identifier"}return!1},(t,r)=>t.type==="VariableDeclarator"&&r==="init"||t.type==="ExportDefaultDeclaration"&&r==="declaration"||t.type==="TSExportAssignment"&&r==="expression"||t.type==="AssignmentExpression"&&r==="right"&&t.left.type==="MemberExpression"&&t.left.object.type==="Identifier"&&t.left.object.name==="module"&&t.left.property.type==="Identifier"&&t.left.property.name==="exports",t=>t.type!=="VariableDeclaration"||t.kind==="const"&&t.declarations.length===1)}function kN(e){let t=cn(e);return t.length>1&&t.some(r=>r.type==="TSParameterProperty")}function Jc(e,t){return(t==="params"||t==="this"||t==="rest")&&s6(e)}function bn(e){let{node:t}=e;return!t.optional||t.type==="Identifier"&&t===e.parent.key?"":Wt(t)||pr(t)&&t.computed||t.type==="OptionalIndexedAccessType"?"?.":"?"}function i6(e){return e.node.definite||e.match(void 0,(t,r)=>r==="id"&&t.type==="VariableDeclarator"&&t.definite)?"!":""}var wN=Tt(["DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","DeclareVariable","DeclareExportDeclaration","DeclareExportAllDeclaration","DeclareOpaqueType","DeclareTypeAlias","DeclareEnum","DeclareInterface"]);function es(e){let{node:t}=e;return t.declare||wN(t)&&e.parent.type!=="DeclareExportDeclaration"?"declare ":""}var PN=Tt(["TSAbstractMethodDefinition","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]);function xm({node:e}){return e.abstract||PN(e)?"abstract ":""}function pa(e,t,r){return e.type==="EmptyStatement"?$e(e,ze.Leading)?[" ",t]:t:e.type==="BlockStatement"||r?[" ",t]:be([Me,t])}function Tm(e){return e.accessibility?e.accessibility+" ":""}var NN=/^[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC][\$0-9A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]*$/,IN=e=>NN.test(e),BN=IN;function LN(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var Gu=LN,ON=0;function a6(e,t,r){let{node:n,parent:s,grandparent:i,key:o}=e,l=o!=="body"&&(s.type==="IfStatement"||s.type==="WhileStatement"||s.type==="SwitchStatement"||s.type==="DoWhileStatement"),u=n.operator==="|>"&&e.root.extra?.__isUsingHackPipeline,f=k0(e,t,r,!1,l);if(l)return f;if(u)return ne(f);if(o==="callee"&&(Wt(s)||s.type==="NewExpression")||s.type==="UnaryExpression"||pr(s)&&!s.computed)return ne([be([Ee,...f]),Ee]);let p=s.type==="ReturnStatement"||s.type==="ThrowStatement"||s.type==="JSXExpressionContainer"&&i.type==="JSXAttribute"||n.operator!=="|"&&s.type==="JsExpressionRoot"||n.type!=="NGPipeExpression"&&(s.type==="NGRoot"&&t.parser==="__ng_binding"||s.type==="NGMicrosyntaxExpression"&&i.type==="NGMicrosyntax"&&i.body.length===1)||n===s.body&&s.type==="ArrowFunctionExpression"||n!==s.body&&s.type==="ForStatement"||s.type==="ConditionalExpression"&&i.type!=="ReturnStatement"&&i.type!=="ThrowStatement"&&!Wt(i)&&i.type!=="NewExpression"||s.type==="TemplateLiteral"||MN(e),d=s.type==="AssignmentExpression"||s.type==="VariableDeclarator"||s.type==="ClassProperty"||s.type==="PropertyDefinition"||s.type==="TSAbstractPropertyDefinition"||s.type==="ClassPrivateProperty"||Ia(s),y=Mi(n.left)&&ng(n.operator,n.left.operator);if(p||Zc(n)&&!y||!Zc(n)&&d)return ne(f);if(f.length===0)return"";let m=zr(n.right),D=f.findIndex(P=>typeof P!="string"&&!Array.isArray(P)&&P.type===Ds),T=f.slice(0,D===-1?1:D+1),S=f.slice(T.length,m?-1:void 0),v=Symbol("logicalChain-"+ ++ON),E=ne([...T,be(S)],{id:v});if(!m)return E;let C=Vt(0,f,-1);return ne([E,Yc(C,{groupId:v})])}function k0(e,t,r,n,s){let{node:i}=e;if(!Mi(i))return[ne(r())];let o=[];ng(i.operator,i.left.operator)?o=e.call(()=>k0(e,t,r,!0,s),"left"):o.push(ne(r("left")));let l=Zc(i),u=i.right.type==="ChainExpression"?i.right.expression:i.right,f=(i.operator==="|>"||i.type==="NGPipeExpression"||$N(e,t))&&!Ps(t.originalText,u),p=!$e(u,ze.Leading,Fb)&&Ps(t.originalText,u),d=i.type==="NGPipeExpression"?"|":i.operator,y=i.type==="NGPipeExpression"&&i.arguments.length>0?ne(be([Ee,": ",Lt([Me,": "],e.map(()=>Bs(2,ne(r())),"arguments"))])):"",m;if(l)m=[d,Ps(t.originalText,u)?be([Me,r("right"),y]):[" ",r("right"),y]];else{let S=d==="|>"&&e.root.extra?.__isUsingHackPipeline?e.call(()=>k0(e,t,r,!0,s),"right"):r("right");if(t.experimentalOperatorPosition==="start"){let v="";if(p)switch(Oa(S)){case ji:v=S.splice(0,1)[0];break;case Hi:v=S.contents.splice(0,1)[0];break}m=[Me,v,d," ",S,y]}else m=[f?Me:"",d,f?" ":Me,S,y]}let{parent:D}=e,T=$e(i.left,ze.Trailing|ze.Line);if((T||!(s&&i.type==="LogicalExpression")&&D.type!==i.type&&i.left.type!==i.type&&i.right.type!==i.type)&&(m=ne(m,{shouldBreak:T})),t.experimentalOperatorPosition==="start"?o.push(l||p?" ":"",m):o.push(f?"":" ",m),n&&$e(i)){let S=dg(ys(e,o,t));return S.type===Ba?S.parts:Array.isArray(S)?S:[S]}return o}function Zc(e){return e.type!=="LogicalExpression"?!1:!!(Ns(e.right)&&e.right.properties.length>0||rn(e.right)&&e.right.elements.length>0||zr(e.right))}var Wx=e=>e.type==="BinaryExpression"&&e.operator==="|";function $N(e,t){return(t.parser==="__vue_expression"||t.parser==="__vue_ts_expression")&&Wx(e.node)&&!e.hasAncestor(r=>!Wx(r)&&r.type!=="JsExpressionRoot")}function MN(e){if(e.key!=="arguments")return!1;let{parent:t}=e;if(!(Wt(t)&&!t.optional&&t.arguments.length===1))return!1;let{callee:r}=t;return r.type==="Identifier"&&r.name==="Boolean"}function o6(e,t,r){let{node:n}=e,{parent:s}=e,i=s.type!=="TypeParameterInstantiation"&&(!wa(s)||!t.experimentalTernaries)&&s.type!=="TSTypeParameterInstantiation"&&s.type!=="GenericTypeAnnotation"&&s.type!=="TSTypeReference"&&s.type!=="TSTypeAssertion"&&s.type!=="TupleTypeAnnotation"&&s.type!=="TSTupleType"&&!(s.type==="FunctionTypeParam"&&!s.name&&e.grandparent.this!==s)&&!((b0(s)||s.type==="VariableDeclarator")&&Ps(t.originalText,n))&&!(b0(s)&&$e(s.id,ze.Trailing|ze.Line)),o=u6(n),l=e.map(()=>{let m=r();return o||(m=Bs(2,m)),ys(e,m,t)},"types"),u="",f="";if(Sb(e)&&({leading:u,trailing:f}=Dm(e,t)),o)return[u,Lt(" | ",l),f];let p=i&&!Ps(t.originalText,n),d=[mt([p?Me:"","| "]),Lt([Me,"| "],l)];if($a(e,t))return[u,ne([be(d),Ee]),f];let y=[u,ne(d)];return(s.type==="TupleTypeAnnotation"||s.type==="TSTupleType")&&s[s.type==="TupleTypeAnnotation"&&s.types?"types":"elementTypes"].length>1?[ne([be([mt(["(",Ee]),y]),Ee,mt(")")]),f]:[ne(i?be(y):y),f]}var jN=Tt(["VoidTypeAnnotation","TSVoidKeyword","NullLiteralTypeAnnotation","TSNullKeyword"]),JN=Tt(["ObjectTypeAnnotation","TSTypeLiteral","GenericTypeAnnotation","TSTypeReference"]);function u6(e){let{types:t}=e;if(t.some(n=>$e(n)))return!1;let r=t.find(n=>JN(n));return r?t.every(n=>n===r||jN(n)):!1}function RN(e){return tg(e)||ka(e)?!0:ai(e)?u6(e):!1}var UN=new WeakSet;function en(e,t,r="typeAnnotation"){let{node:{[r]:n}}=e;if(!n)return"";let s=!1;if(n.type==="TSTypeAnnotation"||n.type==="TypeAnnotation"){let i=e.call(l6,r);(i==="=>"||i===":"&&$e(n,ze.Leading))&&(s=!0),UN.add(n)}return s?[" ",t(r)]:t(r)}var l6=e=>e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>(r==="returnType"||r==="typeAnnotation")&&(t.type==="TSFunctionType"||t.type==="TSConstructorType"))?"=>":e.match(t=>t.type==="TSTypeAnnotation",(t,r)=>r==="typeAnnotation"&&(t.type==="TSJSDocNullableType"||t.type==="TSJSDocNonNullableType"||t.type==="TSTypePredicate"))||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareFunction")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="typeAnnotation"&&t.type==="Identifier",(t,r)=>r==="id"&&t.type==="DeclareHook")||e.match(t=>t.type==="TypeAnnotation",(t,r)=>r==="bound"&&t.type==="TypeParameter"&&t.usesExtendsBound)?"":":";function c6(e,t,r){let n=l6(e);return n?[n," ",r("typeAnnotation")]:r("typeAnnotation")}function qN(e,t,r,n){let{node:s}=e,i=s.inexact?"...":"";return $e(s,ze.Dangling)?ne([r,i,cr(e,t,{indent:!0}),Ee,n]):[r,i,n]}function mg(e,t,r){let{node:n}=e,s=[],i="[",o="]",l=n.type==="TupleTypeAnnotation"&&n.types?"types":n.type==="TSTupleType"||n.type==="TupleTypeAnnotation"?"elementTypes":"elements",u=n[l];if(u.length===0)s.push(qN(e,t,i,o));else{let f=Vt(0,u,-1),p=f?.type!=="RestElement"&&!n.inexact,d=f===null,y=Symbol("array"),m=!t.__inJestEach&&u.length>1&&u.every((S,v,E)=>{let C=S?.type;if(!rn(S)&&!Ns(S))return!1;let P=E[v+1];if(P&&C!==P.type)return!1;let k=rn(S)?"elements":"properties";return S[k]&&S[k].length>1}),D=p6(n,t),T=p?d?",":ci(t)?D?mt(",","",{groupId:y}):mt(","):"":"";s.push(ne([i,be([Ee,D?zN(e,t,r,T):[KN(e,t,r,l,n.inexact),T],cr(e,t)]),Ee,o],{shouldBreak:m,id:y}))}return s.push(bn(e),en(e,r)),s}function p6(e,t){return rn(e)&&e.elements.length>0&&e.elements.every(r=>r&&(ii(r)||gb(r)&&!$e(r.argument))&&!$e(r,ze.Trailing|ze.Line,n=>!On(t.originalText,Pt(n),{backwards:!0})))}function d6({node:e},{originalText:t}){let r=_t(e);if(r===Pt(e))return!1;let{length:n}=t;for(;r<n&&t[r]!==",";)r=H2(t,X2(t,r+1));return G2(t,r)}function KN(e,t,r,n,s){let i=[];return e.each(({node:o,isLast:l})=>{i.push(o?ne(r()):""),(!l||s)&&i.push([",",Me,o&&d6(e,t)?Ee:""])},n),s&&i.push("..."),i}function zN(e,t,r,n){let s=[];return e.each(({isLast:i,next:o})=>{s.push([r(),i?n:","]),i||s.push(d6(e,t)?[_e,_e]:$e(o,ze.Leading|ze.Line)?_e:Me)},"elements"),qb(s)}function WN(e,t,r){let{node:n}=e,s=ts(n);if(s.length===0)return["(",cr(e,t),")"];let i=s.length-1;if(XN(s)){let d=["("];return Kf(e,(y,m)=>{d.push(r()),m!==i&&d.push(", ")}),d.push(")"),d}let o=!1,l=[];Kf(e,({node:d},y)=>{let m=r();y===i||(pi(d,t)?(o=!0,m=[m,",",_e,_e]):m=[m,",",Me]),l.push(m)});let u=!t.parser.startsWith("__ng_")&&n.type!=="ImportExpression"&&n.type!=="TSImportType"&&n.type!=="TSExternalModuleReference"&&ci(t,"all")?",":"";function f(){return ne(["(",be([Me,...l]),u,Me,")"],{shouldBreak:!0})}if(o||e.parent.type!=="Decorator"&&z5(s))return f();if(HN(s)){let d=l.slice(1);if(d.some(En))return f();let y;try{y=r($x(n,0),{expandFirstArg:!0})}catch(m){if(m instanceof Wf)return f();throw m}return En(y)?[Ji,bo([["(",ne(y,{shouldBreak:!0}),", ",...d,")"],f()])]:bo([["(",y,", ",...d,")"],["(",ne(y,{shouldBreak:!0}),", ",...d,")"],f()])}if(VN(s,l,t)){let d=l.slice(0,-1);if(d.some(En))return f();let y;try{y=r($x(n,-1),{expandLastArg:!0})}catch(m){if(m instanceof Wf)return f();throw m}return En(y)?[Ji,bo([["(",...d,ne(y,{shouldBreak:!0}),")"],f()])]:bo([["(",...d,y,")"],["(",...d,ne(y,{shouldBreak:!0}),")"],f()])}let p=["(",be([Ee,...l]),mt(u),Ee,")"];return Ab(e)?p:ne(p,{shouldBreak:l.some(En)||o})}function Rc(e,t=!1){return Ns(e)&&(e.properties.length>0||$e(e))||rn(e)&&(e.elements.length>0||$e(e))||e.type==="TSTypeAssertion"&&Rc(e.expression)||ws(e)&&Rc(e.expression)||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression"&&(!e.returnType||!e.returnType.typeAnnotation||e.returnType.typeAnnotation.type!=="TSTypeReference"||GN(e.body))&&(e.body.type==="BlockStatement"||e.body.type==="ArrowFunctionExpression"&&Rc(e.body,!0)||Ns(e.body)||rn(e.body)||!t&&(Wt(e.body)||e.body.type==="ConditionalExpression")||zr(e.body))||e.type==="DoExpression"||e.type==="ModuleExpression"}function VN(e,t,r){let n=Vt(0,e,-1);if(e.length===1){let i=Vt(0,t,-1);if(i.label?.embed&&i.label?.hug!==!1)return!0}let s=Vt(0,e,-2);return!$e(n,ze.Leading)&&!$e(n,ze.Trailing)&&Rc(n)&&(!s||s.type!==n.type)&&(e.length!==2||s.type!=="ArrowFunctionExpression"||!rn(n))&&!(e.length>1&&p6(n,r))}function HN(e){if(e.length!==2)return!1;let[t,r]=e;return t.type==="ModuleExpression"&&QN(r)?!0:!$e(t)&&(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement")&&r.type!=="FunctionExpression"&&r.type!=="ArrowFunctionExpression"&&r.type!=="ConditionalExpression"&&h6(r)&&!Rc(r)}function h6(e){if(e.type==="ParenthesizedExpression")return h6(e.expression);if(ws(e)||e.type==="TypeCastExpression"){let{typeAnnotation:t}=e;if(t.type==="TypeAnnotation"&&(t=t.typeAnnotation),t.type==="TSArrayType"&&(t=t.elementType,t.type==="TSArrayType"&&(t=t.elementType)),t.type==="GenericTypeAnnotation"||t.type==="TSTypeReference"){let r=t.type==="GenericTypeAnnotation"?t.typeParameters:t.typeArguments;r?.params.length===1&&(t=r.params[0])}return tg(t)&&Fs(e.expression,1)}return Xu(e)&&ts(e).length>1?!1:Mi(e)?Fs(e.left,1)&&Fs(e.right,1):Db(e)||Fs(e)}function XN(e){return e.length===2?Vx(e,0):e.length===3?e[0].type==="Identifier"&&Vx(e,1):!1}function Vx(e,t){let r=e[t],n=e[t+1];return r.type==="ArrowFunctionExpression"&&cn(r).length===0&&r.body.type==="BlockStatement"&&n.type==="ArrayExpression"&&!e.some(s=>$e(s))}function GN(e){return e.type==="BlockStatement"&&(e.body.some(t=>t.type!=="EmptyStatement")||$e(e,ze.Dangling))}function QN(e){if(!(e.type==="ObjectExpression"&&e.properties.length===1))return!1;let[t]=e.properties;return Ia(t)?!t.computed&&(t.key.type==="Identifier"&&t.key.name==="type"||Wr(t.key)&&t.key.value==="type")&&Wr(t.value)&&t.value.value==="module":!1}var w0=WN;function YN(e,t,r){return[r("object"),ne(be([Ee,f6(e,t,r)]))]}function f6(e,t,r){return["::",r("callee")]}var ZN=e=>((e.type==="ChainExpression"||e.type==="TSNonNullExpression")&&(e=e.expression),Wt(e)&&ts(e).length>0);function eI(e){let{node:t,ancestors:r}=e;for(let n of r){if(!(pr(n)&&n.object===t||n.type==="TSNonNullExpression"&&n.expression===t))return n.type==="NewExpression"&&n.callee===t;t=n}return!1}function tI(e,t,r){let n=r("object"),s=m6(e,t,r),{node:i}=e,o=e.findAncestor(f=>!(pr(f)||f.type==="TSNonNullExpression")),l=e.findAncestor(f=>!(f.type==="ChainExpression"||f.type==="TSNonNullExpression")),u=o.type==="BindExpression"||o.type==="AssignmentExpression"&&o.left.type!=="Identifier"||eI(e)||i.computed||i.object.type==="Identifier"&&i.property.type==="Identifier"&&!pr(l)||(l.type==="AssignmentExpression"||l.type==="VariableDeclarator")&&(ZN(i.object)||n.label?.memberChain);return mp(n.label,[n,u?s:ne(be([Ee,s]))])}function m6(e,t,r){let n=r("property"),{node:s}=e,i=bn(e);return s.computed?!s.property||ii(s.property)?[i,"[",n,"]"]:ne([i,"[",be([Ee,n]),Ee,"]"]):[i,".",n]}function y6(e,t,r){if(e.node.type==="ChainExpression")return e.call(()=>y6(e,t,r),"expression");let n=(e.parent.type==="ChainExpression"?e.grandparent:e.parent).type==="ExpressionStatement",s=[];function i(Q){let{originalText:we}=t,ge=el(we,_t(Q));return we.charAt(ge)===")"?ge!==!1&&G2(we,ge+1):pi(Q,t)}function o(){let{node:Q}=e;if(Q.type==="ChainExpression")return e.call(o,"expression");if(Wt(Q)&&(bu(Q.callee)||Wt(Q.callee))){let we=i(Q);s.unshift({node:Q,hasTrailingEmptyLine:we,printed:[ys(e,[bn(e),r("typeArguments"),w0(e,t,r)],t),we?_e:""]}),e.call(o,"callee")}else bu(Q)?(s.unshift({node:Q,needsParens:$a(e,t),printed:ys(e,pr(Q)?m6(e,t,r):f6(e,t,r),t)}),e.call(o,"object")):Q.type==="TSNonNullExpression"?(s.unshift({node:Q,printed:ys(e,"!",t)}),e.call(o,"expression")):s.unshift({node:Q,printed:r()})}let{node:l}=e;s.unshift({node:l,printed:[bn(e),r("typeArguments"),w0(e,t,r)]}),l.callee&&e.call(o,"callee");let u=[],f=[s[0]],p=1;for(;p<s.length&&(s[p].node.type==="TSNonNullExpression"||Wt(s[p].node)||pr(s[p].node)&&s[p].node.computed&&ii(s[p].node.property));++p)f.push(s[p]);if(!Wt(s[0].node))for(;p+1<s.length&&bu(s[p].node)&&bu(s[p+1].node);++p)f.push(s[p]);u.push(f),f=[];let d=!1;for(;p<s.length;++p){if(d&&bu(s[p].node)){if(s[p].node.computed&&ii(s[p].node.property)){f.push(s[p]);continue}u.push(f),f=[],d=!1}(Wt(s[p].node)||s[p].node.type==="ImportExpression")&&(d=!0),f.push(s[p]),$e(s[p].node,ze.Trailing)&&(u.push(f),f=[],d=!1)}f.length>0&&u.push(f);function y(Q){return/^[A-Z]|^[$_]+$/u.test(Q)}function m(Q){return Q.length<=t.tabWidth}function D(Q){let we=Q[1][0]?.node.computed;if(Q[0].length===1){let Pe=Q[0][0].node;return Pe.type==="ThisExpression"||Pe.type==="Identifier"&&(y(Pe.name)||n&&m(Pe.name)||we)}let ge=Vt(0,Q[0],-1).node;return pr(ge)&&ge.property.type==="Identifier"&&(y(ge.property.name)||we)}let T=u.length>=2&&!$e(u[1][0].node)&&D(u);function S(Q){let we=Q.map(ge=>ge.printed);return Q.length>0&&Vt(0,Q,-1).needsParens?["(",...we,")"]:we}function v(Q){return Q.length===0?"":be([_e,Lt(_e,Q.map(S))])}let E=u.map(S),C=E,P=T?3:2,k=u.flat(),w=k.slice(1,-1).some(Q=>$e(Q.node,ze.Leading))||k.slice(0,-1).some(Q=>$e(Q.node,ze.Trailing))||u[P]&&$e(u[P][0].node,ze.Leading);if(u.length<=P&&!w&&!u.some(Q=>Vt(0,Q,-1).hasTrailingEmptyLine))return Ab(e)?C:ne(C);let B=Vt(0,u[T?1:0],-1).node,I=!Wt(B)&&i(B),oe=[S(u[0]),T?u.slice(1,2).map(S):"",I?_e:"",v(u.slice(T?2:1))],ee=s.map(({node:Q})=>Q).filter(Wt);function me(){let Q=Vt(0,Vt(0,u,-1),-1).node,we=Vt(0,E,-1);return Wt(Q)&&En(we)&&ee.slice(0,-1).some(ge=>ge.arguments.some(Gc))}let Ge;return w||ee.length>2&&ee.some(Q=>!Q.arguments.every(we=>Fs(we)))||E.slice(0,-1).some(En)||me()?Ge=ne(oe):Ge=[En(C)||I?Ji:"",bo([C,oe])],mp({memberChain:!0},Ge)}var rI=y6;function Vf(e,t,r){let{node:n}=e,s=n.type==="NewExpression",i=bn(e),o=ts(n),l=n.type!=="TSImportType"&&n.typeArguments?r("typeArguments"):"",u=o.length===1&&bb(o[0],t.originalText);if(u||sI(e)||iI(e)||ym(n,e.parent)){let d=[];if(Kf(e,()=>{d.push(r())}),!(u&&d[0].label?.embed))return[s?"new ":"",Hx(e,r),i,l,"(",Lt(", ",d),")"]}let f=n.type==="ImportExpression"||n.type==="TSImportType"||n.type==="TSExternalModuleReference";if(!f&&!s&&bu(n.callee)&&!e.call(()=>$a(e,t),"callee",...n.callee.type==="ChainExpression"?["expression"]:[]))return rI(e,t,r);let p=[s?"new ":"",Hx(e,r),i,l,w0(e,t,r)];return f||Wt(n.callee)?ne(p):p}function Hx(e,t){let{node:r}=e;return r.type==="ImportExpression"?`import${r.phase?`.${r.phase}`:""}`:r.type==="TSImportType"?"import":r.type==="TSExternalModuleReference"?"require":t("callee")}var nI=["require","require.resolve","require.resolve.paths","import.meta.resolve"];function sI(e){let{node:t}=e;if(!(t.type==="ImportExpression"||t.type==="TSImportType"||t.type==="TSExternalModuleReference"||t.type==="CallExpression"&&!t.optional&&Q2(t.callee,nI)))return!1;let r=ts(t);return r.length===1&&Wr(r[0])&&!$e(r[0])}function iI(e){let{node:t}=e;if(t.type!=="CallExpression"||t.optional||t.callee.type!=="Identifier")return!1;let r=ts(t);return t.callee.name==="require"?(r.length===1&&Wr(r[0])||r.length>1)&&!$e(r[0]):t.callee.name==="define"&&e.parent.type==="ExpressionStatement"?r.length===1||r.length===2&&r[0].type==="ArrayExpression"||r.length===3&&Wr(r[0])&&r[1].type==="ArrayExpression":!1}function yp(e,t,r,n,s,i){let o=uI(e,t,r,n,i),l=i?r(i,{assignmentLayout:o}):"";switch(o){case"break-after-operator":return ne([ne(n),s,ne(be([Me,l]))]);case"never-break-after-operator":return ne([ne(n),s," ",l]);case"fluid":{let u=Symbol("assignment");return ne([ne(n),s,ne(be(Me),{id:u}),oi,Yc(l,{groupId:u})])}case"break-lhs":return ne([n,s," ",ne(l)]);case"chain":return[ne(n),s,Me,l];case"chain-tail":return[ne(n),s,be([Me,l])];case"chain-tail-arrow-chain":return[ne(n),s,l];case"only-left":return n}}function aI(e,t,r){let{node:n}=e;return yp(e,t,r,r("left"),[" ",n.operator],"right")}function oI(e,t,r){return yp(e,t,r,r("id")," =","init")}function uI(e,t,r,n,s){let{node:i}=e,o=i[s];if(!o)return"only-left";let l=!kf(o);if(e.match(kf,g6,p=>!l||p.type!=="ExpressionStatement"&&p.type!=="VariableDeclaration"))return l?o.type==="ArrowFunctionExpression"&&o.body.type==="ArrowFunctionExpression"?"chain-tail-arrow-chain":"chain-tail":"chain";if(!l&&kf(o.right)||Ps(t.originalText,o))return"break-after-operator";if(i.type==="ImportAttribute"||o.type==="CallExpression"&&o.callee.name==="require"||t.parser==="json5"||t.parser==="jsonc"||t.parser==="json")return"never-break-after-operator";let u=rP(n);if(cI(i)||hI(i)||D6(i)&&u)return"break-lhs";let f=fI(i,n,t);return e.call(()=>lI(e,t,r,f),s)?"break-after-operator":pI(i)?"break-lhs":!u&&(f||o.type==="TemplateLiteral"||o.type==="TaggedTemplateExpression"||O5(o)||ii(o)||o.type==="ClassExpression")?"never-break-after-operator":"fluid"}function lI(e,t,r,n){let s=e.node;if(Mi(s)&&!Zc(s))return!0;switch(s.type){case"StringLiteralTypeAnnotation":case"SequenceExpression":return!0;case"TSConditionalType":case"ConditionalTypeAnnotation":if(!t.experimentalTernaries&&!gI(s))break;return!0;case"ConditionalExpression":{if(!t.experimentalTernaries){let{test:f}=s;return Mi(f)&&!Zc(f)}let{consequent:l,alternate:u}=s;return l.type==="ConditionalExpression"||u.type==="ConditionalExpression"}case"ClassExpression":return dr(s.decorators)}if(n)return!1;let i=s,o=[];for(;;)if(i.type==="UnaryExpression"||i.type==="AwaitExpression"||i.type==="YieldExpression"&&i.argument!==null)i=i.argument,o.push("argument");else if(i.type==="TSNonNullExpression")i=i.expression,o.push("expression");else break;return!!(Wr(i)||e.call(()=>x6(e,t,r),...o))}function cI(e){if(g6(e)){let t=e.left||e.id;return t.type==="ObjectPattern"&&t.properties.length>2&&t.properties.some(r=>Ia(r)&&(!r.shorthand||r.value?.type==="AssignmentPattern"))}return!1}function kf(e){return e.type==="AssignmentExpression"}function g6(e){return kf(e)||e.type==="VariableDeclarator"}function pI(e){let t=dI(e);if(dr(t)){let r=e.type==="TSTypeAliasDeclaration"?"constraint":"bound";if(t.length>1&&t.some(n=>n[r]||n.default))return!0}return!1}function dI(e){if(b0(e))return e.typeParameters?.params}function hI(e){if(e.type!=="VariableDeclarator")return!1;let{typeAnnotation:t}=e.id;if(!t||!t.typeAnnotation)return!1;let r=Xx(t.typeAnnotation);return dr(r)&&r.length>1&&r.some(n=>dr(Xx(n))||n.type==="TSConditionalType")}function D6(e){return e.type==="VariableDeclarator"&&e.init?.type==="ArrowFunctionExpression"}function Xx(e){let t;switch(e.type){case"GenericTypeAnnotation":t=e.typeParameters;break;case"TSTypeReference":t=e.typeArguments;break}return t?.params}function x6(e,t,r,n=!1){let{node:s}=e,i=()=>x6(e,t,r,!0);if(s.type==="ChainExpression"||s.type==="TSNonNullExpression")return e.call(i,"expression");if(Wt(s)){if(Vf(e,t,r).label?.memberChain)return!1;let o=ts(s);return!(o.length===0||o.length===1&&rg(o[0],t))||mI(s,r)?!1:e.call(i,"callee")}return pr(s)?e.call(i,"object"):n&&(s.type==="Identifier"||s.type==="ThisExpression")}function fI(e,t,r){return Ia(e)?(t=dg(t),typeof t=="string"&&Ku(t)<r.tabWidth+3):!1}function mI(e,t){let r=yI(e);if(dr(r)){if(r.length>1)return!0;if(r.length===1){let s=r[0];if(ai(s)||fp(s)||s.type==="TSTypeLiteral"||s.type==="ObjectTypeAnnotation")return!0}let n=e.typeParameters?"typeParameters":"typeArguments";if(En(t(n)))return!0}return!1}function yI(e){return(e.typeParameters??e.typeArguments)?.params}function Gx(e){switch(e.type){case"FunctionTypeAnnotation":case"GenericTypeAnnotation":case"TSFunctionType":return!!e.typeParameters;case"TSTypeReference":return!!e.typeArguments;default:return!1}}function gI(e){return Gx(e.checkType)||Gx(e.extendsType)}var wf=new WeakMap;function T6(e){return/^(?:\d+|\d+\.\d+)$/u.test(e)}function Qx(e,t){return t.parser==="json"||t.parser==="jsonc"||!Wr(e.key)||Vu($n(e.key),t).slice(1,-1)!==e.key.value?!1:!!(BN(e.key.value)&&!(t.parser==="babel-ts"&&e.type==="ClassProperty"||(t.parser==="typescript"||t.parser==="oxc-ts")&&e.type==="PropertyDefinition")||T6(e.key.value)&&String(Number(e.key.value))===e.key.value&&e.type!=="ImportAttribute"&&(t.parser==="babel"||t.parser==="acorn"||t.parser==="oxc"||t.parser==="espree"||t.parser==="meriyah"||t.parser==="__babel_estree"))}function DI(e,t){let{key:r}=e.node;return(r.type==="Identifier"||ii(r)&&T6(Gu($n(r)))&&String(r.value)===Gu($n(r))&&!(t.parser==="typescript"||t.parser==="babel-ts"||t.parser==="oxc-ts"))&&(t.parser==="json"||t.parser==="jsonc"||t.quoteProps==="consistent"&&wf.get(e.parent))}function gp(e,t,r){let{node:n}=e;if(n.computed)return["[",r("key"),"]"];let{parent:s}=e,{key:i}=n;if(t.quoteProps==="consistent"&&!wf.has(s)){let o=e.siblings.some(l=>!l.computed&&Wr(l.key)&&!Qx(l,t));wf.set(s,o)}if(DI(e,t)){let o=Vu(JSON.stringify(i.type==="Identifier"?i.name:i.value.toString()),t);return e.call(()=>ys(e,o,t),"key")}return Qx(n,t)&&(t.quoteProps==="as-needed"||t.quoteProps==="consistent"&&!wf.get(s))?e.call(()=>ys(e,/^\d/u.test(i.value)?Gu(i.value):i.value,t),"key"):r("key")}function Oy(e,t,r){let{node:n}=e;return n.shorthand?r("value"):yp(e,t,r,gp(e,t,r),":","value")}var xI=({node:e,key:t,parent:r})=>t==="value"&&e.type==="FunctionExpression"&&(r.type==="ObjectMethod"||r.type==="ClassMethod"||r.type==="ClassPrivateMethod"||r.type==="MethodDefinition"||r.type==="TSAbstractMethodDefinition"||r.type==="TSDeclareMethod"||r.type==="Property"&&hp(r));function E6(e,t,r,n){if(xI(e))return yg(e,t,r);let{node:s}=e,i=!1;if((s.type==="FunctionDeclaration"||s.type==="FunctionExpression")&&n?.expandLastArg){let{parent:p}=e;Wt(p)&&(ts(p).length>1||cn(s).every(d=>d.type==="Identifier"&&!d.typeAnnotation))&&(i=!0)}let o=[es(e),s.async?"async ":"",`function${s.generator?"*":""} `,s.id?r("id"):""],l=Uo(e,t,r,i),u=Em(e,r),f=nl(s,u);return o.push(r("typeParameters"),ne([f?ne(l):l,u]),s.body?" ":"",r("body")),t.semi&&(s.declare||!s.body)&&o.push(";"),o}function P0(e,t,r){let{node:n}=e,{kind:s}=n,i=n.value||n,o=[];return!s||s==="init"||s==="method"||s==="constructor"?i.async&&o.push("async "):o.push(s," "),i.generator&&o.push("*"),o.push(gp(e,t,r),n.optional?"?":"",n===i?yg(e,t,r):r("value")),o}function yg(e,t,r){let{node:n}=e,s=Uo(e,t,r),i=Em(e,r),o=kN(n),l=nl(n,i),u=[r("typeParameters"),ne([o?ne(s,{shouldBreak:!0}):l?ne(s):s,i])];return n.body?u.push(" ",r("body")):u.push(t.semi?";":""),u}function TI(e){let t=cn(e);return t.length===1&&!e.typeParameters&&!$e(e,ze.Dangling)&&t[0].type==="Identifier"&&!t[0].typeAnnotation&&!$e(t[0])&&!t[0].optional&&!e.predicate&&!e.returnType}function b6(e,t){if(t.arrowParens==="always")return!1;if(t.arrowParens==="avoid"){let{node:r}=e;return TI(r)}return!1}function Em(e,t){let{node:r}=e,n=[en(e,t,"returnType")];return r.predicate&&n.push(t("predicate")),n}function C6(e,t,r){let{node:n}=e,s=[];if(n.argument){let l=r("argument");CI(t,n.argument)?l=["(",be([_e,l]),_e,")"]:(Mi(n.argument)||t.experimentalTernaries&&n.argument.type==="ConditionalExpression"&&(n.argument.consequent.type==="ConditionalExpression"||n.argument.alternate.type==="ConditionalExpression"))&&(l=ne([mt("("),be([Ee,l]),Ee,mt(")")])),s.push(" ",l)}let i=$e(n,ze.Dangling),o=t.semi&&i&&$e(n,ze.Last|ze.Line);return o&&s.push(";"),i&&s.push(" ",cr(e,t)),!o&&t.semi&&s.push(";"),s}function EI(e,t,r){return["return",C6(e,t,r)]}function bI(e,t,r){return["throw",C6(e,t,r)]}function CI(e,t){if(Ps(e.originalText,t)||$e(t,ze.Leading,r=>Zn(e.originalText,Pt(r),_t(r)))&&!zr(t))return!0;if(Z2(t)){let r=t,n;for(;n=I5(r);)if(r=n,Ps(e.originalText,r))return!0}return!1}function AI(e,t){if(t.semi||v6(e,t)||_6(e,t)||S6(e,t))return!1;let{node:r,key:n,parent:s}=e;return!!(r.type==="ExpressionStatement"&&(n==="body"&&(s.type==="Program"||s.type==="BlockStatement"||s.type==="StaticBlock"||s.type==="TSModuleBlock")||n==="consequent"&&s.type==="SwitchCase")&&e.call(()=>A6(e,t),"expression"))}function A6(e,t){let{node:r}=e;switch(r.type){case"ParenthesizedExpression":case"TypeCastExpression":case"ArrayExpression":case"ArrayPattern":case"TemplateLiteral":case"TemplateElement":case"RegExpLiteral":return!0;case"ArrowFunctionExpression":if(!b6(e,t))return!0;break;case"UnaryExpression":{let{prefix:n,operator:s}=r;if(n&&(s==="+"||s==="-"))return!0;break}case"BindExpression":if(!r.object)return!0;break;case"Literal":if(r.regex)return!0;break;default:if(zr(r))return!0}return $a(e,t)?!0:Z2(r)?e.call(()=>A6(e,t),...yb(r)):!1}var gg=({node:e,parent:t})=>e.type==="ExpressionStatement"&&t.type==="Program"&&t.body.length===1&&(Array.isArray(t.directives)&&t.directives.length===0||!t.directives);function v6(e,t){return(t.parentParser==="markdown"||t.parentParser==="mdx")&&gg(e)&&zr(e.node.expression)}function S6(e,t){return t.__isHtmlInlineEventHandler&&gg(e)}function _6(e,t){return(t.parser==="__vue_event_binding"||t.parser==="__vue_ts_event_binding")&&gg(e)}var vI=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},sl=vI;function SI(e){if(typeof e!="string")throw new TypeError("Expected a string");return e.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}var _I=class{#t;constructor(t){this.#t=new Set(t)}getLeadingWhitespaceCount(t){let r=this.#t,n=0;for(let s=0;s<t.length&&r.has(t.charAt(s));s++)n++;return n}getTrailingWhitespaceCount(t){let r=this.#t,n=0;for(let s=t.length-1;s>=0&&r.has(t.charAt(s));s--)n++;return n}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 this.#t.has(t.charAt(0))}hasTrailingWhitespace(t){return this.#t.has(Vt(0,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 n=`[${SI([...this.#t].join(""))}]+`,s=new RegExp(r?`(${n})`:n,"u");return t.split(s)}hasWhitespaceCharacter(t){let r=this.#t;return Array.prototype.some.call(t,n=>r.has(n))}hasNonWhitespaceCharacter(t){let r=this.#t;return Array.prototype.some.call(t,n=>!r.has(n))}isWhitespaceOnly(t){let r=this.#t;return Array.prototype.every.call(t,n=>r.has(n))}#r(t){let r=Number.POSITIVE_INFINITY;for(let n of t.split(`
|
|
81
|
-
`)){if(n.length===0)continue;let s=this.getLeadingWhitespaceCount(n);if(s===0)return 0;n.length!==s&&s<r&&(r=s)}return r===Number.POSITIVE_INFINITY?0:r}dedentString(t){let r=this.#r(t);return r===0?t:t.split(`
|
|
82
|
-
`).map(n=>n.slice(r)).join(`
|
|
83
|
-
`)}},FI=_I,Pf=new FI(`
|
|
84
|
-
\r `),$y=e=>e===""||e===Me||e===_e||e===Ee;function kI(e,t,r){let{node:n}=e;if(n.type==="JSXElement"&&zI(n))return[r("openingElement"),r("closingElement")];let s=n.type==="JSXElement"?r("openingElement"):r("openingFragment"),i=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"),i];n.children=n.children.map(C=>WI(C)?{type:"JSXText",value:" ",raw:" "}:C);let o=n.children.some(zr),l=n.children.filter(C=>C.type==="JSXExpressionContainer").length>1,u=n.type==="JSXElement"&&n.openingElement.attributes.length>1,f=En(s)||o||u||l,p=e.parent.rootMarker==="mdx",d=t.singleQuote?"{' '}":'{" "}',y=p?Me:mt([d,Ee]," "),m=n.openingElement?.name?.name==="fbt",D=wI(e,t,r,y,m),T=n.children.some(C=>ep(C));for(let C=D.length-2;C>=0;C--){let P=D[C]===""&&D[C+1]==="",k=D[C]===_e&&D[C+1]===""&&D[C+2]===_e,w=(D[C]===Ee||D[C]===_e)&&D[C+1]===""&&D[C+2]===y,B=D[C]===y&&D[C+1]===""&&(D[C+2]===Ee||D[C+2]===_e),I=D[C]===y&&D[C+1]===""&&D[C+2]===y,oe=D[C]===Ee&&D[C+1]===""&&D[C+2]===_e||D[C]===_e&&D[C+1]===""&&D[C+2]===Ee;k&&T||P||w||I||oe?D.splice(C,2):B&&D.splice(C+1,2)}for(;D.length>0&&$y(Vt(0,D,-1));)D.pop();for(;D.length>1&&$y(D[0])&&$y(D[1]);)D.shift(),D.shift();let S=[""];for(let[C,P]of D.entries()){if(P===y){if(C===1&&nP(D[C-1])){if(D.length===2){S.push([S.pop(),d]);continue}S.push([d,_e],"");continue}else if(C===D.length-1){S.push([S.pop(),d]);continue}else if(D[C-1]===""&&D[C-2]===_e){S.push([S.pop(),d]);continue}}C%2===0?S.push([S.pop(),P]):S.push(P,""),En(P)&&(f=!0)}let v=T?qb(S):ne(S,{shouldBreak:!0});if(t.cursorNode?.type==="JSXText"&&n.children.includes(t.cursorNode)?v=[uf,v,uf]:t.nodeBeforeCursor?.type==="JSXText"&&n.children.includes(t.nodeBeforeCursor)?v=[uf,v]:t.nodeAfterCursor?.type==="JSXText"&&n.children.includes(t.nodeAfterCursor)&&(v=[v,uf]),p)return v;let E=ne([s,be([_e,v]),_e,i]);return f?E:bo([ne([s,...D,i]),E])}function wI(e,t,r,n,s){let i="",o=[i];function l(f){i=f,o.push([o.pop(),f])}function u(f){f!==""&&(i=f,o.push(f,""))}return e.each(({node:f,next:p})=>{if(f.type==="JSXText"){let d=$n(f);if(ep(f)){let y=Pf.split(d,!0);y[0]===""&&(y.shift(),/\n/u.test(y[0])?u(Zx(s,y[1],f,p)):u(n),y.shift());let m;if(Vt(0,y,-1)===""&&(y.pop(),m=y.pop()),y.length===0)return;for(let[D,T]of y.entries())D%2===1?u(Me):l(T);m!==void 0?/\n/u.test(m)?u(Zx(s,i,f,p)):u(n):u(Yx(s,i,f,p))}else/\n/u.test(d)?d.match(/\n/gu).length>1&&u(_e):u(n)}else{let d=r();if(l(d),p&&ep(p)){let y=Pf.trim($n(p)),[m]=Pf.split(y);u(Yx(s,m,f,p))}else u(_e)}},"children"),o}function Yx(e,t,r,n){return e?"":r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?t.length===1?Ee:_e:Ee}function Zx(e,t,r,n){return e?_e:t.length===1?r.type==="JSXElement"&&!r.closingElement||n?.type==="JSXElement"&&!n.closingElement?_e:Ee:_e}var PI=Tt(["ArrayExpression","JSXAttribute","JSXElement","JSXExpressionContainer","JSXFragment","ExpressionStatement","NewExpression","CallExpression","OptionalCallExpression","ConditionalExpression","JsExpressionRoot","MatchExpressionCase"]);function NI(e,t,r){let{parent:n}=e;if(PI(n))return t;let s=II(e),i=$a(e,r);return ne([i?"":mt("("),be([Ee,t]),Ee,i?"":mt(")")],{shouldBreak:s})}function II(e){return e.match(void 0,(t,r)=>r==="body"&&t.type==="ArrowFunctionExpression",(t,r)=>r==="arguments"&&Wt(t))&&(e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer")||e.match(void 0,void 0,void 0,(t,r)=>r==="expression"&&t.type==="ChainExpression",(t,r)=>r==="expression"&&t.type==="JSXExpressionContainer"))}function BI(e,t,r){let{node:n}=e,s=[r("name")];if(n.value){let i;if(Wr(n.value)){let o=$n(n.value),l=Kr(0,Kr(0,o.slice(1,-1),"'","'"),""",'"'),u=cb(l,t.jsxSingleQuote);l=u==='"'?Kr(0,l,'"',"""):Kr(0,l,"'","'"),i=e.call(()=>ys(e,wo(u+l+u),t),"value")}else i=r("value");s.push("=",i)}return s}function LI(e,t,r){let{node:n}=e,s=(i,o)=>i.type==="JSXEmptyExpression"||!$e(i)&&(rn(i)||Ns(i)||i.type==="ArrowFunctionExpression"||i.type==="AwaitExpression"&&(s(i.argument,i)||i.argument.type==="JSXElement")||Wt(i)||i.type==="ChainExpression"&&Wt(i.expression)||i.type==="FunctionExpression"||i.type==="TemplateLiteral"||i.type==="TaggedTemplateExpression"||i.type==="DoExpression"||zr(o)&&(i.type==="ConditionalExpression"||Mi(i)));return s(n.expression,e.parent)?ne(["{",r("expression"),oi,"}"]):ne(["{",be([Ee,r("expression")]),Ee,oi,"}"])}function OI(e,t,r){let{node:n}=e,s=$e(n.name)||$e(n.typeArguments);if(n.selfClosing&&n.attributes.length===0&&!s)return["<",r("name"),r("typeArguments")," />"];if(n.attributes?.length===1&&Wr(n.attributes[0].value)&&!n.attributes[0].value.value.includes(`
|
|
85
|
-
`)&&!s&&!$e(n.attributes[0]))return ne(["<",r("name"),r("typeArguments")," ",...e.map(r,"attributes"),n.selfClosing?" />":">"]);let i=n.attributes?.some(l=>Wr(l.value)&&l.value.value.includes(`
|
|
86
|
-
`)),o=t.singleAttributePerLine&&n.attributes.length>1?_e:Me;return ne(["<",r("name"),r("typeArguments"),be(e.map(()=>[o,r()],"attributes")),...$I(n,t,s)],{shouldBreak:i})}function $I(e,t,r){return e.selfClosing?[Me,"/>"]:MI(e,t,r)?[">"]:[Ee,">"]}function MI(e,t,r){let n=e.attributes.length>0&&$e(Vt(0,e.attributes,-1),ze.Trailing);return e.attributes.length===0&&!r||(t.bracketSameLine||t.jsxBracketSameLine)&&(!r||e.attributes.length>0)&&!n}function jI(e,t,r){let{node:n}=e,s=["</"],i=r("name");return $e(n.name,ze.Leading|ze.Line)?s.push(be([_e,i]),_e):$e(n.name,ze.Leading|ze.Block)?s.push(" ",i):s.push(i),s.push(">"),s}function JI(e,t){let{node:r}=e,n=$e(r),s=$e(r,ze.Line),i=r.type==="JSXOpeningFragment";return[i?"<":"</",be([s?_e:n&&!i?" ":"",cr(e,t)]),s?_e:"",">"]}function RI(e,t,r){let n=ys(e,kI(e,t,r),t);return NI(e,n,t)}function UI(e,t){let{node:r}=e,n=$e(r,ze.Line);return[cr(e,t,{indent:n}),n?_e:""]}function qI(e,t,r){let{node:n}=e;return["{",e.call(({node:s})=>{let i=["...",r()];return $e(s)?[be([Ee,ys(e,i,t)]),Ee]:i},n.type==="JSXSpreadAttribute"?"argument":"expression"),"}"]}function KI(e,t,r){let{node:n}=e;if(n.type.startsWith("JSX"))switch(n.type){case"JSXAttribute":return BI(e,t,r);case"JSXIdentifier":return n.name;case"JSXNamespacedName":return Lt(":",[r("namespace"),r("name")]);case"JSXMemberExpression":return Lt(".",[r("object"),r("property")]);case"JSXSpreadAttribute":case"JSXSpreadChild":return qI(e,t,r);case"JSXExpressionContainer":return LI(e,t,r);case"JSXFragment":case"JSXElement":return RI(e,t,r);case"JSXOpeningElement":return OI(e,t,r);case"JSXClosingElement":return jI(e,t,r);case"JSXOpeningFragment":case"JSXClosingFragment":return JI(e,t);case"JSXEmptyExpression":return UI(e,t);case"JSXText":throw new Error("JSXText should be handled by JSXElement");default:throw new sl(n,"JSX")}}function zI(e){if(e.children.length===0)return!0;if(e.children.length>1)return!1;let t=e.children[0];return t.type==="JSXText"&&!ep(t)}function ep(e){return e.type==="JSXText"&&(Pf.hasNonWhitespaceCharacter($n(e))||!/\n/u.test($n(e)))}function WI(e){return e.type==="JSXExpressionContainer"&&Wr(e.expression)&&e.expression.value===" "&&!$e(e.expression)}function VI(e){let{node:t,parent:r}=e;if(!zr(t)||!zr(r))return!1;let{index:n,siblings:s}=e,i;for(let o=n;o>0;o--){let l=s[o-1];if(!(l.type==="JSXText"&&!ep(l))){i=l;break}}return i?.type==="JSXExpressionContainer"&&i.expression.type==="JSXEmptyExpression"&&gm(i.expression)}function HI(e){return gm(e.node)||VI(e)}var Dg=HI;function XI(e,t,r){let{node:n}=e;if(n.type.startsWith("NG"))switch(n.type){case"NGRoot":return r("node");case"NGPipeExpression":return a6(e,t,r);case"NGChainedExpression":return ne(Lt([";",Me],e.map(()=>YI(e)?r():["(",r(),")"],"expressions")));case"NGEmptyExpression":return"";case"NGMicrosyntax":return e.map(()=>[e.isFirst?"":e3(e)?" ":[";",Me],r()],"body");case"NGMicrosyntaxKey":return/^[$_a-z][\w$]*(?:-[$_a-z][\w$])*$/iu.test(n.name)?n.name:JSON.stringify(n.name);case"NGMicrosyntaxExpression":return[r("expression"),n.alias===null?"":[" as ",r("alias")]];case"NGMicrosyntaxKeyedExpression":{let{index:s,parent:i}=e,o=e3(e)||GI(e)||(s===1&&(n.key.name==="then"||n.key.name==="else"||n.key.name==="as")||s===2&&(n.key.name==="else"&&i.body[s-1].type==="NGMicrosyntaxKeyedExpression"&&i.body[s-1].key.name==="then"||n.key.name==="track"))&&i.body[0].type==="NGMicrosyntaxExpression";return[r("key"),o?" ":": ",r("expression")]}case"NGMicrosyntaxLet":return["let ",r("key"),n.value===null?"":[" = ",r("value")]];case"NGMicrosyntaxAs":return[r("key")," as ",r("alias")];default:throw new sl(n,"Angular")}}function e3({node:e,index:t}){return e.type==="NGMicrosyntaxKeyedExpression"&&e.key.name==="of"&&t===1}function GI(e){let{node:t}=e;return e.parent.body[1].key.name==="of"&&t.type==="NGMicrosyntaxKeyedExpression"&&t.key.name==="track"&&t.key.type==="NGMicrosyntaxKey"}var QI=Tt(["CallExpression","OptionalCallExpression","AssignmentExpression"]);function YI({node:e}){return T0(e,QI)}function F6(e,t,r){let{node:n}=e;return ne([Lt(Me,e.map(r,"decorators")),k6(n,t)?_e:Me])}function ZI(e,t,r){return w6(e.node)?[Lt(_e,e.map(r,"declaration","decorators")),_e]:""}function eB(e,t,r){let{node:n,parent:s}=e,{decorators:i}=n;if(!dr(i)||w6(s)||Dg(e))return"";let o=n.type==="ClassExpression"||n.type==="ClassDeclaration"||k6(n,t);return[e.key==="declaration"&&B5(s)?_e:o?Ji:"",Lt(Me,e.map(r,"decorators")),Me]}function k6(e,t){return e.decorators.some(r=>On(t.originalText,_t(r)))}function w6(e){if(e.type!=="ExportDefaultDeclaration"&&e.type!=="ExportNamedDeclaration"&&e.type!=="DeclareExportDeclaration")return!1;let t=e.declaration?.decorators;return dr(t)&&mm(e,t[0])}var My=new WeakMap;function P6(e){return My.has(e)||My.set(e,e.type==="ConditionalExpression"&&!Tn(e,t=>t.type==="ObjectExpression")),My.get(e)}var tB=e=>e.type==="SequenceExpression";function rB(e,t,r,n={}){let s=[],i,o=[],l=!1,u=!n.expandLastArg&&e.node.body.type==="ArrowFunctionExpression",f;(function v(){let{node:E}=e,C=nB(e,t,r,n);if(s.length===0)s.push(C);else{let{leading:P,trailing:k}=Dm(e,t);s.push([P,C]),o.unshift(k)}u&&(l||(l=E.returnType&&cn(E).length>0||E.typeParameters||cn(E).some(P=>P.type!=="Identifier"))),!u||E.body.type!=="ArrowFunctionExpression"?(i=r("body",n),f=E.body):e.call(v,"body")})();let p=!Ps(t.originalText,f)&&(tB(f)||sB(f,i,t)||!l&&P6(f)),d=e.key==="callee"&&Xu(e.parent),y=Symbol("arrow-chain"),m=iB(e,n,{signatureDocs:s,shouldBreak:l}),D=!1,T=!1,S=!1;return u&&(d||n.assignmentLayout)&&(T=!0,S=!$e(e.node,ze.Leading&ze.Line),D=n.assignmentLayout==="chain-tail-arrow-chain"||d&&!p),i=aB(e,t,n,{bodyDoc:i,bodyComments:o,functionBody:f,shouldPutBodyOnSameLine:p}),ne([ne(T?be([S?Ee:"",m]):m,{shouldBreak:D,id:y})," =>",u?Yc(i,{groupId:y}):ne(i),u&&d?mt(Ee,"",{groupId:y}):""])}function nB(e,t,r,n){let{node:s}=e,i=[];if(s.async&&i.push("async "),b6(e,t))i.push(r(["params",0]));else{let l=n.expandLastArg||n.expandFirstArg,u=Em(e,r);if(l){if(En(u))throw new Wf;u=ne(zf(u))}i.push(ne([Uo(e,t,r,l,!0),u]))}let o=cr(e,t,{filter(l){let u=el(t.originalText,_t(l));return u!==!1&&t.originalText.slice(u,u+2)==="=>"}});return o&&i.push(" ",o),i}function sB(e,t,r){return rn(e)||Ns(e)||e.type==="ArrowFunctionExpression"||e.type==="DoExpression"||e.type==="BlockStatement"||zr(e)||t.label?.hug!==!1&&(t.label?.embed||bb(e,r.originalText))}function iB(e,t,{signatureDocs:r,shouldBreak:n}){if(r.length===1)return r[0];let{parent:s,key:i}=e;return i!=="callee"&&Xu(s)||Mi(s)?ne([r[0]," =>",be([Me,Lt([" =>",Me],r.slice(1))])],{shouldBreak:n}):i==="callee"&&Xu(s)||t.assignmentLayout?ne(Lt([" =>",Me],r),{shouldBreak:n}):ne(be(Lt([" =>",Me],r)),{shouldBreak:n})}function aB(e,t,r,{bodyDoc:n,bodyComments:s,functionBody:i,shouldPutBodyOnSameLine:o}){let{node:l,parent:u}=e,f=r.expandLastArg&&ci(t,"all")?mt(","):"",p=(r.expandLastArg||u.type==="JSXExpressionContainer")&&!$e(l)?Ee:"";return o&&P6(i)?[" ",ne([mt("","("),be([Ee,n]),mt("",")"),f,p]),s]:o?[" ",n,s]:[be([Me,n,s]),f,p]}var oB=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},uB=W2("findLast",function(){if(Array.isArray(this))return oB}),lB=uB;function N0(e,t,r,n){let{node:s}=e,i=[],o=lB(0,s[n],l=>l.type!=="EmptyStatement");return e.each(({node:l})=>{l.type!=="EmptyStatement"&&(i.push(r()),l!==o&&(i.push(_e),pi(l,t)&&i.push(_e)))},n),i}function N6(e,t,r){let n=cB(e,t,r),{node:s,parent:i}=e;if(s.type==="Program"&&i?.type!=="ModuleExpression")return n?[n,_e]:"";let o=[];if(s.type==="StaticBlock"&&o.push("static "),o.push("{"),n)o.push(be([_e,n]),_e);else{let l=e.grandparent;i.type==="ArrowFunctionExpression"||i.type==="FunctionExpression"||i.type==="FunctionDeclaration"||i.type==="ComponentDeclaration"||i.type==="HookDeclaration"||i.type==="ObjectMethod"||i.type==="ClassMethod"||i.type==="ClassPrivateMethod"||i.type==="ForStatement"||i.type==="WhileStatement"||i.type==="DoWhileStatement"||i.type==="DoExpression"||i.type==="ModuleExpression"||i.type==="CatchClause"&&!l.finalizer||i.type==="TSModuleDeclaration"||i.type==="MatchStatementCase"||s.type==="StaticBlock"||o.push(_e)}return o.push("}"),o}function cB(e,t,r){let{node:n}=e,s=dr(n.directives),i=n.body.some(u=>u.type!=="EmptyStatement"),o=$e(n,ze.Dangling);if(!s&&!i&&!o)return"";let l=[];return s&&(l.push(N0(e,t,r,"directives")),(i||o)&&(l.push(_e),pi(Vt(0,n.directives,-1),t)&&l.push(_e))),i&&l.push(N0(e,t,r,"body")),o&&l.push(cr(e,t)),l}function pB(e){let t=new WeakMap;return function(r){return t.has(r)||t.set(r,Symbol(e)),t.get(r)}}var dB=pB;function xg(e,t,r){let{node:n}=e,s=[],i=n.type==="ObjectTypeAnnotation",o=!I6(e),l=o?Me:_e,u=$e(n,ze.Dangling),[f,p]=i&&n.exact?["{|","|}"]:"{}",d;if(hB(e,({node:y,next:m,isLast:D})=>{if(d??(d=y),s.push(r()),o&&i){let{parent:T}=e;T.inexact||!D?s.push(","):ci(t)&&s.push(mt(","))}!o&&(fB({node:y,next:m},t)||L6({node:y,next:m},t))&&s.push(";"),D||(s.push(l),pi(y,t)&&s.push(_e))}),u&&s.push(cr(e,t)),n.type==="ObjectTypeAnnotation"&&n.inexact){let y;$e(n,ze.Dangling)?y=[$e(n,ze.Line)||On(t.originalText,_t(Vt(0,Ao(n),-1)))?_e:Me,"..."]:y=[d?Me:"","..."],s.push(y)}if(o){let y=u||t.objectWrap==="preserve"&&d&&Zn(t.originalText,Pt(n),Pt(d)),m;if(s.length===0)m=f+p;else{let D=t.bracketSpacing?Me:Ee;m=[f,be([D,...s]),D,p]}return e.match(void 0,(D,T)=>T==="typeAnnotation",(D,T)=>T==="typeAnnotation",Jc)||e.match(void 0,(D,T)=>D.type==="FunctionTypeParam"&&T==="typeAnnotation",Jc)?m:ne(m,{shouldBreak:y})}return[f,s.length>0?[be([_e,s]),_e]:"",p]}function I6(e){let{node:t}=e;if(t.type==="ObjectTypeAnnotation"){let{key:r,parent:n}=e;return r==="body"&&(n.type==="InterfaceDeclaration"||n.type==="DeclareInterface"||n.type==="DeclareClass")}return t.type==="ClassBody"||t.type==="TSInterfaceBody"}function hB(e,t){let{node:r}=e;if(r.type==="ClassBody"||r.type==="TSInterfaceBody"){e.each(t,"body");return}if(r.type==="TSTypeLiteral"){e.each(t,"members");return}if(r.type==="ObjectTypeAnnotation"){let n=["properties","indexers","callProperties","internalSlots"].flatMap(s=>e.map(({node:i,index:o})=>({node:i,loc:Pt(i),selector:[s,o]}),s)).sort((s,i)=>s.loc-i.loc);for(let[s,{node:i,selector:o}]of n.entries())e.call(()=>t({node:i,next:n[s+1]?.node,isLast:s===n.length-1}),...o)}}function wi(e,t){let{parent:r}=e;return e.callParent(I6)?t.semi||r.type==="ObjectTypeAnnotation"?";":"":r.type==="TSTypeLiteral"?e.isLast?t.semi?mt(";"):"":t.semi||L6({node:e.node,next:e.next},t)?";":mt("",";"):""}var t3=Tt(["ClassProperty","PropertyDefinition","ClassPrivateProperty","ClassAccessorProperty","AccessorProperty","TSAbstractPropertyDefinition","TSAbstractAccessorProperty"]),B6=e=>{if(e.computed||e.typeAnnotation)return!1;let{type:t,name:r}=e.key;return t==="Identifier"&&(r==="static"||r==="get"||r==="set")};function fB({node:e,next:t},r){if(r.semi||!t3(e))return!1;if(!e.value&&B6(e))return!0;if(!t||t.static||t.accessibility||t.readonly)return!1;if(!t.computed){let n=t.key?.name;if(n==="in"||n==="instanceof")return!0}if(t3(t)&&t.variance&&!t.static&&!t.declare)return!0;switch(t.type){case"ClassProperty":case"PropertyDefinition":case"TSAbstractPropertyDefinition":return t.computed;case"MethodDefinition":case"TSAbstractMethodDefinition":case"ClassMethod":case"ClassPrivateMethod":{if((t.value?t.value.async:t.async)||t.kind==="get"||t.kind==="set")return!1;let n=t.value?t.value.generator:t.generator;return!!(t.computed||n)}case"TSIndexSignature":return!0}return!1}var mB=Tt(["TSPropertySignature"]);function L6({node:e,next:t},r){return r.semi||!mB(e)?!1:B6(e)?!0:t?t.type==="TSCallSignatureDeclaration":!1}var yB=dB("heritageGroup"),gB=Tt(["TSInterfaceDeclaration","DeclareInterface","InterfaceDeclaration","InterfaceTypeAnnotation"]);function Tg(e,t,r){let{node:n}=e,s=gB(n),i=[es(e),xm(e),s?"interface":"class"],o=$6(e),l=[],u=[];if(n.type!=="InterfaceTypeAnnotation"){n.id&&l.push(" ");for(let p of["id","typeParameters"])if(n[p]){let{leading:d,trailing:y}=e.call(()=>Dm(e,t),p);l.push(d,r(p),be(y))}}if(n.superClass){let p=[TB(e,t,r),r(n.superTypeArguments?"superTypeArguments":"superTypeParameters")],d=e.call(()=>["extends ",ys(e,p,t)],"superClass");o?u.push(Me,ne(d)):u.push(" ",d)}else u.push(Jy(e,t,r,"extends"));u.push(Jy(e,t,r,"mixins"),Jy(e,t,r,"implements"));let f;return o?(f=yB(n),i.push(ne([...l,be(u)],{id:f}))):i.push(...l,...u),!s&&o&&DB(n.body)?i.push(mt(_e," ",{groupId:f})):i.push(" "),i.push(r("body")),i}function DB(e){return e.type==="ObjectTypeAnnotation"?["properties","indexers","callProperties","internalSlots"].some(t=>dr(e[t])):dr(e.body)}function O6(e){let t=e.superClass?1:0;for(let r of["extends","mixins","implements"])if(Array.isArray(e[r])&&(t+=e[r].length),t>1)return!0;return t>1}function xB(e){let{node:t}=e;if($e(t.id,ze.Trailing)||$e(t.typeParameters,ze.Trailing)||$e(t.superClass)||O6(t))return!0;if(t.superClass)return e.parent.type==="AssignmentExpression"?!1:!(t.superTypeArguments??t.superTypeParameters)&&pr(t.superClass);let r=t.extends?.[0]??t.mixins?.[0]??t.implements?.[0];return r?r.type==="InterfaceExtends"&&r.id.type==="QualifiedTypeIdentifier"&&!r.typeParameters||(r.type==="TSClassImplements"||r.type==="TSInterfaceHeritage")&&pr(r.expression)&&!r.typeArguments:!1}var jy=new WeakMap;function $6(e){let{node:t}=e;return jy.has(t)||jy.set(t,xB(e)),jy.get(t)}function Jy(e,t,r,n){let{node:s}=e;if(!dr(s[n]))return"";let i=cr(e,t,{marker:n}),o=Lt([",",Me],e.map(r,n));if(!O6(s)){let l=[`${n} `,i,o];return $6(e)?[Me,ne(l)]:[" ",l]}return[Me,i,i&&_e,n,ne(be([Me,o]))]}function TB(e,t,r){let n=r("superClass"),{parent:s}=e;return s.type==="AssignmentExpression"?ne(mt(["(",be([Ee,n]),Ee,")"],n)):n}function M6(e,t,r){let{node:n}=e,s=[];return dr(n.decorators)&&s.push(F6(e,t,r)),s.push(Tm(n)),n.static&&s.push("static "),s.push(xm(e)),n.override&&s.push("override "),s.push(P0(e,t,r)),s}function j6(e,t,r){let{node:n}=e,s=[];dr(n.decorators)&&s.push(F6(e,t,r)),s.push(es(e),Tm(n)),n.static&&s.push("static "),s.push(xm(e)),n.override&&s.push("override "),n.readonly&&s.push("readonly "),n.variance&&s.push(r("variance")),(n.type==="ClassAccessorProperty"||n.type==="AccessorProperty"||n.type==="TSAbstractAccessorProperty")&&s.push("accessor "),s.push(gp(e,t,r),bn(e),i6(e),en(e,r));let i=n.type==="TSAbstractPropertyDefinition"||n.type==="TSAbstractAccessorProperty";return[yp(e,t,r,s," =",i?void 0:"value"),t.semi?";":""]}var EB=Tt(["TSAsExpression","TSTypeAssertion","TSNonNullExpression","TSInstantiationExpression","TSSatisfiesExpression"]);function J6(e){return EB(e)?J6(e.expression):e}var bB=Tt(["FunctionExpression","ArrowFunctionExpression"]);function CB(e){return e.type==="MemberExpression"||e.type==="OptionalMemberExpression"||e.type==="Identifier"&&e.name!=="undefined"}function AB(e,t){if(_6(e,t)){let r=J6(e.node.expression);return bB(r)||CB(r)}return!(!t.semi||v6(e,t)||S6(e,t))}function vB(e,t,r){return[r("expression"),AB(e,t)?";":""]}function SB(e,t,r){if(t.__isVueBindings||t.__isVueForBindingLeft){let n=e.map(r,"program","body",0,"params");if(n.length===1)return n[0];let s=Lt([",",Me],n);return t.__isVueForBindingLeft?["(",be([Ee,ne(s)]),Ee,")"]:s}if(t.__isEmbeddedTypescriptGenericParameters){let n=e.map(r,"program","body",0,"typeParameters","params");return Lt([",",Me],n)}}function _B(e,t){let{node:r}=e;switch(r.type){case"RegExpLiteral":return r3(r);case"BigIntLiteral":return I0(r.extra.raw);case"NumericLiteral":return Gu(r.extra.raw);case"StringLiteral":return wo(Vu(r.extra.raw,t));case"NullLiteral":return"null";case"BooleanLiteral":return String(r.value);case"DirectiveLiteral":return n3(r.extra.raw,t);case"Literal":{if(r.regex)return r3(r.regex);if(r.bigint)return I0(r.raw);let{value:n}=r;return typeof n=="number"?Gu(r.raw):typeof n=="string"?FB(e)?n3(r.raw,t):wo(Vu(r.raw,t)):String(n)}}}function FB(e){if(e.key!=="expression")return;let{parent:t}=e;return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function I0(e){return e.toLowerCase()}function r3({pattern:e,flags:t}){return t=[...t].sort().join(""),`/${e}/${t}`}var kB="use strict";function n3(e,t){let r=e.slice(1,-1);if(r===kB||!(r.includes('"')||r.includes("'"))){let n=t.singleQuote?"'":'"';return n+r+n}return e}function wB(e,t,r){let n=e.originalText.slice(t,r);for(let s of e[Symbol.for("comments")]){let i=Pt(s);if(i>r)break;let o=_t(s);if(o<t)continue;let l=i-t,u=o-t;n=n.slice(0,l)+Kr(0,n.slice(l,u),/[^\n]/gu," ")+n.slice(u)}return n}var bm=wB,R6=Tt(["ImportDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","DeclareExportDeclaration","DeclareExportAllDeclaration"]),PB=Tt(["EnumBooleanBody","EnumNumberBody","EnumBigIntBody","EnumStringBody","EnumSymbolBody"]);function Eg(e,t,r){let{node:n,parent:s}=e,i=PB(n),o=n.type==="TSEnumBody"||i,l=R6(n),u=i&&n.hasUnknownMembers,f=o?"members":l?"attributes":"properties",p=n[f],d=o||n.type==="ObjectPattern"&&s.type!=="FunctionDeclaration"&&s.type!=="FunctionExpression"&&s.type!=="ArrowFunctionExpression"&&s.type!=="ObjectMethod"&&s.type!=="ClassMethod"&&s.type!=="ClassPrivateMethod"&&s.type!=="AssignmentPattern"&&s.type!=="CatchClause"&&n.properties.some(S=>S.value&&(S.value.type==="ObjectPattern"||S.value.type==="ArrayPattern"))||n.type!=="ObjectPattern"&&t.objectWrap==="preserve"&&p.length>0&&NB(n,p[0],t),y=[],m=e.map(({node:S})=>{let v=[...y,ne(r())];return y=[",",Me],pi(S,t)&&y.push(_e),v},f);if(u){let S;if($e(n,ze.Dangling)){let v=$e(n,ze.Line);S=[cr(e,t),v||On(t.originalText,_t(Vt(0,Ao(n),-1)))?_e:Me,"..."]}else S=["..."];m.push([...y,...S])}let D=!(u||Vt(0,p,-1)?.type==="RestElement"),T;if(m.length===0){if(!$e(n,ze.Dangling))return["{}",en(e,r)];T=ne(["{",cr(e,t,{indent:!0}),Ee,"}",bn(e),en(e,r)])}else{let S=t.bracketSpacing?Me:Ee;T=["{",be([S,...m]),mt(D&&ci(t)?",":""),S,"}",bn(e),en(e,r)]}return e.match(S=>S.type==="ObjectPattern"&&!dr(S.decorators),Jc)||ka(n)&&(e.match(void 0,(S,v)=>v==="typeAnnotation",(S,v)=>v==="typeAnnotation",Jc)||e.match(void 0,(S,v)=>S.type==="FunctionTypeParam"&&v==="typeAnnotation",Jc))||!d&&e.match(S=>S.type==="ObjectPattern",S=>S.type==="AssignmentExpression"||S.type==="VariableDeclarator")?T:ne(T,{shouldBreak:d})}function NB(e,t,r){let n=r.originalText,s=Pt(e),i=Pt(t);if(R6(e)){let o=Pt(e),l=bm(r,o,i);s=o+l.lastIndexOf("{")}return Zn(n,s,i)}function IB(e,t,r){let{node:n}=e;return["import",n.phase?` ${n.phase}`:"",K6(n),W6(e,t,r),z6(e,t,r),H6(e,t,r),t.semi?";":""]}var U6=e=>e.type==="ExportDefaultDeclaration"||e.type==="DeclareExportDeclaration"&&e.default;function q6(e,t,r){let{node:n}=e,s=[ZI(e,t,r),es(e),"export",U6(n)?" default":""],{declaration:i,exported:o}=n;return $e(n,ze.Dangling)&&(s.push(" ",cr(e,t)),Cb(n)&&s.push(_e)),i?s.push(" ",r("declaration")):(s.push(OB(n)),n.type==="ExportAllDeclaration"||n.type==="DeclareExportAllDeclaration"?(s.push(" *"),o&&s.push(" as ",r("exported"))):s.push(W6(e,t,r)),s.push(z6(e,t,r),H6(e,t,r))),s.push(LB(n,t)),s}var BB=Tt(["ClassDeclaration","ComponentDeclaration","FunctionDeclaration","TSInterfaceDeclaration","DeclareClass","DeclareComponent","DeclareFunction","DeclareHook","HookDeclaration","TSDeclareFunction","EnumDeclaration"]);function LB(e,t){return t.semi&&(!e.declaration||U6(e)&&!BB(e.declaration))?";":""}function bg(e,t=!0){return e&&e!=="value"?`${t?" ":""}${e}${t?"":" "}`:""}function K6(e,t){return bg(e.importKind,t)}function OB(e){return bg(e.exportKind)}function z6(e,t,r){let{node:n}=e;return n.source?[V6(n,t)?" from":""," ",r("source")]:""}function W6(e,t,r){let{node:n}=e;if(!V6(n,t))return"";let s=[" "];if(dr(n.specifiers)){let i=[],o=[];e.each(()=>{let l=e.node.type;if(l==="ExportNamespaceSpecifier"||l==="ExportDefaultSpecifier"||l==="ImportNamespaceSpecifier"||l==="ImportDefaultSpecifier")i.push(r());else if(l==="ExportSpecifier"||l==="ImportSpecifier")o.push(r());else throw new sl(n,"specifier")},"specifiers"),s.push(Lt(", ",i)),o.length>0&&(i.length>0&&s.push(", "),o.length>1||i.length>0||n.specifiers.some(l=>$e(l))?s.push(ne(["{",be([t.bracketSpacing?Me:Ee,Lt([",",Me],o)]),mt(ci(t)?",":""),t.bracketSpacing?Me:Ee,"}"])):s.push(["{",t.bracketSpacing?" ":"",...o,t.bracketSpacing?" ":"","}"]))}else s.push("{}");return s}function V6(e,t){return e.type!=="ImportDeclaration"||dr(e.specifiers)||e.importKind==="type"?!0:bm(t,Pt(e),Pt(e.source)).trimEnd().endsWith("from")}function $B(e,t){if(e.extra?.deprecatedAssertSyntax)return"assert";let r=bm(t,_t(e.source),e.attributes?.[0]?Pt(e.attributes[0]):_t(e)).trimStart();return r.startsWith("assert")?"assert":r.startsWith("with")||dr(e.attributes)?"with":void 0}var MB=e=>{let{attributes:t}=e;if(t.length!==1)return!1;let[r]=t,{type:n,key:s,value:i}=r;return n==="ImportAttribute"&&(s.type==="Identifier"&&s.name==="type"||Wr(s)&&s.value==="type")&&Wr(i)&&!$e(r)&&!$e(s)&&!$e(i)};function H6(e,t,r){let{node:n}=e;if(!n.source)return"";let s=$B(n,t);if(!s)return"";let i=Eg(e,t,r);return MB(n)&&(i=zf(i)),[` ${s} `,i]}function jB(e,t,r){let{node:n}=e,{type:s}=n,i=s.startsWith("Import"),o=i?"imported":"local",l=i?"local":"exported",u=n[o],f=n[l],p="",d="";return s==="ExportNamespaceSpecifier"||s==="ImportNamespaceSpecifier"?p="*":u&&(p=r(o)),f&&!JB(n)&&(d=r(l)),[bg(s==="ImportSpecifier"?n.importKind:n.exportKind,!1),p,p&&d?" as ":"",d]}function JB(e){if(e.type!=="ImportSpecifier"&&e.type!=="ExportSpecifier")return!1;let{local:t,[e.type==="ImportSpecifier"?"imported":"exported"]:r}=e;return t.type!==r.type||!D5(t,r)?!1:Wr(t)?t.value===r.value&&$n(t)===$n(r):t.type==="Identifier"?t.name===r.name:!1}function B0(e,t){return["...",t("argument"),en(e,t)]}function RB(e){let t=[e];for(let r=0;r<t.length;r++){let n=t[r];for(let s of["test","consequent","alternate"]){let i=n[s];if(zr(i))return!0;i.type==="ConditionalExpression"&&t.push(i)}}return!1}function UB(e,t,r){let{node:n}=e,s=n.type==="ConditionalExpression",i=s?"alternate":"falseType",{parent:o}=e,l=s?r("test"):[r("checkType")," ","extends"," ",r("extendsType")];return o.type===n.type&&o[i]===n?Bs(2,l):l}var qB=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function KB(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let s=0;!r;s++){let i=e.getParentNode(s);if(i.type==="ChainExpression"&&i.expression===n||Wt(i)&&i.callee===n||pr(i)&&i.object===n||i.type==="TSNonNullExpression"&&i.expression===n){n=i;continue}i.type==="NewExpression"&&i.callee===n||ws(i)&&i.expression===n?(r=e.getParentNode(s+1),n=i):r=i}return n===t?!1:r[qB.get(r.type)]===n}function zB(e,t,r){let{node:n}=e,s=n.type==="ConditionalExpression",i=s?"consequent":"trueType",o=s?"alternate":"falseType",l=s?["test"]:["checkType","extendsType"],u=n[i],f=n[o],p=[],d=!1,{parent:y}=e,m=y.type===n.type&&l.some(I=>y[I]===n),D=y.type===n.type&&!m,T,S,v=0;do S=T||n,T=e.getParentNode(v),v++;while(T&&T.type===n.type&&l.every(I=>T[I]!==S));let E=T||y,C=S;if(s&&(zr(n[l[0]])||zr(u)||zr(f)||RB(C))){d=!0,D=!0;let I=ee=>[mt("("),be([Ee,ee]),Ee,mt(")")],oe=ee=>ee.type==="NullLiteral"||ee.type==="Literal"&&ee.value===null||ee.type==="Identifier"&&ee.name==="undefined";p.push(" ? ",oe(u)?r(i):I(r(i))," : ",f.type===n.type||oe(f)?r(o):I(r(o)))}else{let I=ee=>t.useTabs?be(r(ee)):Bs(2,r(ee)),oe=[Me,"? ",u.type===n.type?mt("","("):"",I(i),u.type===n.type?mt("",")"):"",Me,": ",I(o)];p.push(y.type!==n.type||y[o]===n||m?oe:t.useTabs?Ub(be(oe)):Bs(Math.max(0,t.tabWidth-2),oe))}let P=I=>y===E?ne(I):I,k=!d&&(pr(y)||y.type==="NGPipeExpression"&&y.left===n)&&!y.computed,w=KB(e),B=P([UB(e,t,r),D?p:be(p),s&&k&&!w?Ee:""]);return m||w?ne([be([Ee,B]),Ee]):B}function WB(e,t){return(pr(t)||t.type==="NGPipeExpression"&&t.left===e)&&!t.computed}function VB(e,t,r,n){return[...e.map(s=>Ao(s)),Ao(t),Ao(r)].flat().some(s=>Ls(s)&&Zn(n.originalText,Pt(s),_t(s)))}var HB=new Map([["AssignmentExpression","right"],["VariableDeclarator","init"],["ReturnStatement","argument"],["ThrowStatement","argument"],["UnaryExpression","argument"],["YieldExpression","argument"],["AwaitExpression","argument"]]);function XB(e){let{node:t}=e;if(t.type!=="ConditionalExpression")return!1;let r,n=t;for(let s=0;!r;s++){let i=e.getParentNode(s);if(i.type==="ChainExpression"&&i.expression===n||Wt(i)&&i.callee===n||pr(i)&&i.object===n||i.type==="TSNonNullExpression"&&i.expression===n){n=i;continue}i.type==="NewExpression"&&i.callee===n||ws(i)&&i.expression===n?(r=e.getParentNode(s+1),n=i):r=i}return n===t?!1:r[HB.get(r.type)]===n}var Ry=e=>[mt("("),be([Ee,e]),Ee,mt(")")];function Cg(e,t,r,n){if(!t.experimentalTernaries)return zB(e,t,r);let{node:s}=e,i=s.type==="ConditionalExpression",o=wa(s),l=i?"consequent":"trueType",u=i?"alternate":"falseType",f=i?["test"]:["checkType","extendsType"],p=s[l],d=s[u],y=f.map(at=>s[at]),{parent:m}=e,D=m.type===s.type,T=D&&f.some(at=>m[at]===s),S=D&&m[u]===s,v=p.type===s.type,E=d.type===s.type,C=E||S,P=t.tabWidth>2||t.useTabs,k,w,B=0;do w=k||s,k=e.getParentNode(B),B++;while(k&&k.type===s.type&&f.every(at=>k[at]!==w));let I=k||m,oe=n&&n.assignmentLayout&&n.assignmentLayout!=="break-after-operator"&&(m.type==="AssignmentExpression"||m.type==="VariableDeclarator"||m.type==="ClassProperty"||m.type==="PropertyDefinition"||m.type==="ClassPrivateProperty"||m.type==="ObjectProperty"||m.type==="Property"),ee=(m.type==="ReturnStatement"||m.type==="ThrowStatement")&&!(v||E),me=i&&I.type==="JSXExpressionContainer"&&e.grandparent.type!=="JSXAttribute",Ge=XB(e),Q=WB(s,m),we=o&&$a(e,t),ge=P?t.useTabs?" ":" ".repeat(t.tabWidth-1):"",Pe=VB(y,p,d,t)||v||E,Et=!C&&!D&&!o&&(me?p.type==="NullLiteral"||p.type==="Literal"&&p.value===null:rg(p,t)&&Bx(s.test,3)),et=C||S||o&&!D||D&&i&&Bx(s.test,1)||Et,rr=[];!v&&$e(p,ze.Dangling)&&e.call(()=>{rr.push(cr(e,t),_e)},"consequent");let Dt=[];$e(s.test,ze.Dangling)&&e.call(()=>{Dt.push(cr(e,t))},"test"),!E&&$e(d,ze.Dangling)&&e.call(()=>{Dt.push(cr(e,t))},"alternate"),$e(s,ze.Dangling)&&Dt.push(cr(e,t));let Gt=Symbol("test"),Jt=Symbol("consequent"),pt=Symbol("test-and-consequent"),Ot=i?[Ry(r("test")),s.test.type==="ConditionalExpression"?Ji:""]:[r("checkType")," ","extends"," ",wa(s.extendsType)||s.extendsType.type==="TSMappedType"?r("extendsType"):ne(Ry(r("extendsType")))],ir=ne([Ot," ?"],{id:Gt}),Rt=r(l),ve=be([v||me&&(zr(p)||D||C)?_e:Me,rr,Rt]),ce=et?ne([ir,C?ve:mt(ve,ne(ve,{id:Jt}),{groupId:Gt})],{id:pt}):[ir,ve],fe=r(u),Ke=Et?mt(fe,Ub(Ry(fe)),{groupId:pt}):fe,xt=[ce,Dt.length>0?[be([_e,Dt]),_e]:E?_e:Et?mt(Me," ",{groupId:pt}):Me,":",E?" ":P?et?mt(ge,mt(C||Et?" ":ge," "),{groupId:pt}):mt(ge," "):" ",E?Ke:ne([be(Ke),me&&!Et?Ee:""]),Q&&!Ge?Ee:"",Pe?Ji:""];return oe&&!Pe?ne(be([Ee,ne(xt)])):oe||ee?ne(be(xt)):Ge||o&&T?ne([be([Ee,xt]),we?Ee:""]):m===I?ne(xt):xt}function GB(e,t,r,n){let{node:s}=e;if(eg(s))return _B(e,t);switch(s.type){case"JsExpressionRoot":return r("node");case"JsonRoot":return[cr(e,t),r("node"),_e];case"File":return SB(e,t,r)??r("program");case"ExpressionStatement":return vB(e,t,r);case"ChainExpression":return r("expression");case"ParenthesizedExpression":return!$e(s.expression)&&(Ns(s.expression)||rn(s.expression))?["(",r("expression"),")"]:ne(["(",be([Ee,r("expression")]),Ee,")"]);case"AssignmentExpression":return aI(e,t,r);case"VariableDeclarator":return oI(e,t,r);case"BinaryExpression":case"LogicalExpression":return a6(e,t,r);case"AssignmentPattern":return[r("left")," = ",r("right")];case"OptionalMemberExpression":case"MemberExpression":return tI(e,t,r);case"MetaProperty":return[r("meta"),".",r("property")];case"BindExpression":return YN(e,t,r);case"Identifier":return[s.name,bn(e),i6(e),en(e,r)];case"V8IntrinsicIdentifier":return["%",s.name];case"SpreadElement":return B0(e,r);case"RestElement":return B0(e,r);case"FunctionDeclaration":case"FunctionExpression":return E6(e,t,r,n);case"ArrowFunctionExpression":return rB(e,t,r,n);case"YieldExpression":return[`yield${s.delegate?"*":""}`,s.argument?[" ",r("argument")]:""];case"AwaitExpression":{let i=["await"];if(s.argument){i.push(" ",r("argument"));let{parent:o}=e;if(Wt(o)&&o.callee===s||pr(o)&&o.object===s){i=[be([Ee,...i]),Ee];let l=e.findAncestor(u=>u.type==="AwaitExpression"||u.type==="BlockStatement");if(l?.type!=="AwaitExpression"||!Tn(l.argument,u=>u===s))return ne(i)}}return i}case"ExportDefaultDeclaration":case"ExportNamedDeclaration":case"ExportAllDeclaration":return q6(e,t,r);case"ImportDeclaration":return IB(e,t,r);case"ImportSpecifier":case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ExportNamespaceSpecifier":case"ImportDefaultSpecifier":case"ExportDefaultSpecifier":return jB(e,t,r);case"ImportAttribute":return Oy(e,t,r);case"Program":case"BlockStatement":case"StaticBlock":return N6(e,t,r);case"ClassBody":return xg(e,t,r);case"ThrowStatement":return bI(e,t,r);case"ReturnStatement":return EI(e,t,r);case"NewExpression":case"ImportExpression":case"OptionalCallExpression":case"CallExpression":return Vf(e,t,r);case"ObjectExpression":case"ObjectPattern":return Eg(e,t,r);case"Property":return hp(s)?P0(e,t,r):Oy(e,t,r);case"ObjectProperty":return Oy(e,t,r);case"ObjectMethod":return P0(e,t,r);case"Decorator":return["@",r("expression")];case"ArrayExpression":case"ArrayPattern":return mg(e,t,r);case"SequenceExpression":{let{parent:i}=e;if(i.type==="ExpressionStatement"||i.type==="ForStatement"){let l=[];return e.each(({isFirst:u})=>{u?l.push(r()):l.push(",",be([Me,r()]))},"expressions"),ne(l)}let o=Lt([",",Me],e.map(r,"expressions"));return(i.type==="ReturnStatement"||i.type==="ThrowStatement")&&e.key==="argument"||i.type==="ArrowFunctionExpression"&&e.key==="body"?ne(mt([be([Ee,o]),Ee],o)):ne(o)}case"ThisExpression":return"this";case"Super":return"super";case"Directive":return[r("value"),t.semi?";":""];case"UnaryExpression":{let i=[s.operator];return/[a-z]$/u.test(s.operator)&&i.push(" "),$e(s.argument)?i.push(ne(["(",be([Ee,r("argument")]),Ee,")"])):i.push(r("argument")),i}case"UpdateExpression":return[s.prefix?s.operator:"",r("argument"),s.prefix?"":s.operator];case"ConditionalExpression":return Cg(e,t,r,n);case"VariableDeclaration":{let i=e.map(r,"declarations"),o=e.parent,l=o.type==="ForStatement"||o.type==="ForInStatement"||o.type==="ForOfStatement",u=s.declarations.some(p=>p.init),f;return i.length===1&&!$e(s.declarations[0])?f=i[0]:i.length>0&&(f=be(i[0])),ne([es(e),s.kind,f?[" ",f]:"",be(i.slice(1).map(p=>[",",u&&!l?_e:Me,p])),t.semi&&!(l&&o.body!==s)?";":""])}case"WithStatement":return ne(["with (",r("object"),")",pa(s.body,r("body"))]);case"IfStatement":{let i=pa(s.consequent,r("consequent")),o=[ne(["if (",ne([be([Ee,r("test")]),Ee]),")",i])];if(s.alternate){let l=$e(s.consequent,ze.Trailing|ze.Line)||Cb(s),u=s.consequent.type==="BlockStatement"&&!l;o.push(u?" ":_e),$e(s,ze.Dangling)&&o.push(cr(e,t),l?_e:" "),o.push("else",ne(pa(s.alternate,r("alternate"),s.alternate.type==="IfStatement")))}return o}case"ForStatement":{let i=pa(s.body,r("body")),o=cr(e,t),l=o?[o,Ee]:"";return!s.init&&!s.test&&!s.update?[l,ne(["for (;;)",i])]:[l,ne(["for (",ne([be([Ee,r("init"),";",Me,r("test"),";",s.update?[Me,r("update")]:mt("",Me)]),Ee]),")",i])]}case"WhileStatement":return ne(["while (",ne([be([Ee,r("test")]),Ee]),")",pa(s.body,r("body"))]);case"ForInStatement":return ne(["for (",r("left")," in ",r("right"),")",pa(s.body,r("body"))]);case"ForOfStatement":return ne(["for",s.await?" await":""," (",r("left")," of ",r("right"),")",pa(s.body,r("body"))]);case"DoWhileStatement":{let i=pa(s.body,r("body"));return[ne(["do",i]),s.body.type==="BlockStatement"?" ":_e,"while (",ne([be([Ee,r("test")]),Ee]),")",t.semi?";":""]}case"DoExpression":return[s.async?"async ":"","do ",r("body")];case"BreakStatement":case"ContinueStatement":return[s.type==="BreakStatement"?"break":"continue",s.label?[" ",r("label")]:"",t.semi?";":""];case"LabeledStatement":return[r("label"),`:${s.body.type==="EmptyStatement"&&!$e(s.body,ze.Leading)?"":" "}`,r("body")];case"TryStatement":return["try ",r("block"),s.handler?[" ",r("handler")]:"",s.finalizer?[" finally ",r("finalizer")]:""];case"CatchClause":if(s.param){let i=$e(s.param,l=>!Ls(l)||l.leading&&On(t.originalText,_t(l))||l.trailing&&On(t.originalText,Pt(l),{backwards:!0})),o=r("param");return["catch ",i?["(",be([Ee,o]),Ee,") "]:["(",o,") "],r("body")]}return["catch ",r("body")];case"SwitchStatement":return[ne(["switch (",be([Ee,r("discriminant")]),Ee,")"])," {",s.cases.length>0?be([_e,Lt(_e,e.map(({node:i,isLast:o})=>[r(),!o&&pi(i,t)?_e:""],"cases"))]):"",_e,"}"];case"SwitchCase":{let i=[];s.test?i.push("case ",r("test"),":"):i.push("default:"),$e(s,ze.Dangling)&&i.push(" ",cr(e,t));let o=s.consequent.filter(l=>l.type!=="EmptyStatement");if(o.length>0){let l=N0(e,t,r,"consequent");i.push(o.length===1&&o[0].type==="BlockStatement"?[" ",l]:be([_e,l]))}return i}case"DebuggerStatement":return["debugger",t.semi?";":""];case"ClassDeclaration":case"ClassExpression":return Tg(e,t,r);case"ClassMethod":case"ClassPrivateMethod":case"MethodDefinition":return M6(e,t,r);case"ClassProperty":case"PropertyDefinition":case"ClassPrivateProperty":case"ClassAccessorProperty":case"AccessorProperty":return j6(e,t,r);case"TemplateElement":return wo(s.value.raw);case"TemplateLiteral":return Gb(e,t,r);case"TaggedTemplateExpression":return AP(e,t,r);case"PrivateIdentifier":return["#",s.name];case"PrivateName":return["#",r("id")];case"TopicReference":return"%";case"ArgumentPlaceholder":return"?";case"ModuleExpression":return["module ",r("body")];case"VoidPattern":return"void";case"EmptyStatement":if(Y2(e))return";";default:throw new sl(s,"ESTree")}}function X6(e){return[e("elementType"),"[]"]}var QB=Tt(["SatisfiesExpression","TSSatisfiesExpression"]);function G6(e,t,r){let{parent:n,node:s,key:i}=e,o=s.type==="AsConstExpression"?"const":r("typeAnnotation"),l=[r("expression")," ",QB(s)?"satisfies":"as"," ",o];return i==="callee"&&Wt(n)||i==="object"&&pr(n)?ne([be([Ee,...l]),Ee]):l}function YB(e,t,r){let{node:n}=e,s=[es(e),"component"];n.id&&s.push(" ",r("id")),s.push(r("typeParameters"));let i=ZB(e,t,r);return n.rendersType?s.push(ne([i," ",r("rendersType")])):s.push(ne([i])),n.body&&s.push(" ",r("body")),t.semi&&n.type==="DeclareComponent"&&s.push(";"),s}function ZB(e,t,r){let{node:n}=e,s=n.params;if(n.rest&&(s=[...s,n.rest]),s.length===0)return["(",cr(e,t,{filter:o=>Is(t.originalText,_t(o))===")"}),")"];let i=[];return tL(e,(o,l)=>{let u=l===s.length-1;u&&n.rest&&i.push("..."),i.push(r()),!u&&(i.push(","),pi(s[l],t)?i.push(_e,_e):i.push(Me))}),["(",be([Ee,...i]),mt(ci(t,"all")&&!eL(n,s)?",":""),Ee,")"]}function eL(e,t){return e.rest||Vt(0,t,-1)?.type==="RestElement"}function tL(e,t){let{node:r}=e,n=0,s=i=>t(i,n++);e.each(s,"params"),r.rest&&e.call(s,"rest")}function rL(e,t,r){let{node:n}=e;return n.shorthand?r("local"):[r("name")," as ",r("local")]}function nL(e,t,r){let{node:n}=e,s=[];return n.name&&s.push(r("name"),n.optional?"?: ":": "),s.push(r("typeAnnotation")),s}function Q6(e,t,r){return Eg(e,t,r)}function sL(e,t,r){let{node:n}=e;return[n.type==="EnumSymbolBody"||n.explicitType?`of ${n.type.slice(4,-4).toLowerCase()} `:"",Q6(e,t,r)]}function Y6(e,t){let{node:r}=e,n=t("id");r.computed&&(n=["[",n,"]"]);let s="";return r.initializer&&(s=t("initializer")),r.init&&(s=t("init")),s?[n," = ",s]:n}function Z6(e,t){let{node:r}=e;return[es(e),r.const?"const ":"","enum ",t("id")," ",t("body")]}function e4(e,t,r){let{node:n}=e,s=[xm(e)];(n.type==="TSConstructorType"||n.type==="TSConstructSignatureDeclaration")&&s.push("new ");let i=Uo(e,t,r,!1,!0),o=[];return n.type==="FunctionTypeAnnotation"?o.push(iL(e)?" => ":": ",r("returnType")):o.push(en(e,r,"returnType")),nl(n,o)&&(i=ne(i)),s.push(i,o),[ne(s),n.type==="TSConstructSignatureDeclaration"||n.type==="TSCallSignatureDeclaration"?wi(e,t):""]}function iL(e){let{node:t,parent:r}=e;return t.type==="FunctionTypeAnnotation"&&(xb(r)||!((r.type==="ObjectTypeProperty"||r.type==="ObjectTypeInternalSlot")&&!r.variance&&!r.optional&&mm(r,t)||r.type==="ObjectTypeCallProperty"||e.getParentNode(2)?.type==="DeclareFunction"))}function aL(e,t,r){let{node:n}=e,s=["hook"];n.id&&s.push(" ",r("id"));let i=Uo(e,t,r,!1,!0),o=Em(e,r),l=nl(n,o);return s.push(ne([l?ne(i):i,o]),n.body?" ":"",r("body")),s}function oL(e,t,r){let{node:n}=e,s=[es(e),"hook"];return n.id&&s.push(" ",r("id")),t.semi&&s.push(";"),s}function s3(e){let{node:t}=e;return t.type==="HookTypeAnnotation"&&e.getParentNode(2)?.type==="DeclareHook"}function uL(e,t,r){let{node:n}=e,s=Uo(e,t,r,!1,!0),i=[s3(e)?": ":" => ",r("returnType")];return ne([s3(e)?"":"hook ",nl(n,i)?ne(s):s,i])}function t4(e,t,r){return[r("objectType"),bn(e),"[",r("indexType"),"]"]}function r4(e,t,r){return["infer ",r("typeParameter")]}function n4(e,t,r){let n=!1;return ne(e.map(({isFirst:s,previous:i,node:o,index:l})=>{let u=r();if(s)return u;let f=ka(o),p=ka(i);return p&&f?[" & ",n?be(u):u]:!p&&!f||Ps(t.originalText,o)?t.experimentalOperatorPosition==="start"?be([Me,"& ",u]):be([" &",Me,u]):(l>1&&(n=!0),[" & ",l>1?be(u):u])},"types"))}function lL(e){switch(e){case null:return"";case"PlusOptional":return"+?";case"MinusOptional":return"-?";case"Optional":return"?"}}function cL(e,t,r){let{node:n}=e;return[ne([n.variance?r("variance"):"","[",be([r("keyTparam")," in ",r("sourceType")]),"]",lL(n.optional),": ",r("propType")]),wi(e,t)]}function i3(e,t){return e==="+"||e==="-"?e+t:t}function pL(e,t,r){let{node:n}=e,s=!1;if(t.objectWrap==="preserve"){let i=Pt(n),o=bm(t,i+1,Pt(n.key)),l=i+1+o.search(/\S/u);Zn(t.originalText,i,l)&&(s=!0)}return ne(["{",be([t.bracketSpacing?Me:Ee,$e(n,ze.Dangling)?ne([cr(e,t),_e]):"",ne([n.readonly?[i3(n.readonly,"readonly")," "]:"","[",r("key")," in ",r("constraint"),n.nameType?[" as ",r("nameType")]:"","]",n.optional?i3(n.optional,"?"):"",n.typeAnnotation?": ":"",r("typeAnnotation")]),t.semi?mt(";"):""]),t.bracketSpacing?Me:Ee,"}"],{shouldBreak:s})}function dL(e,t,r){let{node:n}=e;return[ne(["match (",be([Ee,r("argument")]),Ee,")"])," {",n.cases.length>0?be([_e,Lt(_e,e.map(({node:s,isLast:i})=>[r(),!i&&pi(s,t)?_e:""],"cases"))]):"",_e,"}"]}function hL(e,t,r){let{node:n}=e,s=$e(n,ze.Dangling)?[" ",cr(e,t)]:[],i=n.type==="MatchStatementCase"?[" ",r("body")]:be([Me,r("body"),","]);return[r("pattern"),n.guard?ne([be([Me,"if (",r("guard"),")"])]):"",ne([" =>",s,i])]}function fL(e,t,r){let{node:n}=e;switch(n.type){case"MatchOrPattern":return gL(e,t,r);case"MatchAsPattern":return[r("pattern")," as ",r("target")];case"MatchWildcardPattern":return["_"];case"MatchLiteralPattern":return r("literal");case"MatchUnaryPattern":return[n.operator,r("argument")];case"MatchIdentifierPattern":return r("id");case"MatchMemberPattern":{let s=n.property.type==="Identifier"?[".",r("property")]:["[",be([Ee,r("property")]),Ee,"]"];return ne([r("base"),s])}case"MatchBindingPattern":return[n.kind," ",r("id")];case"MatchObjectPattern":{let s=e.map(r,"properties");return n.rest&&s.push(r("rest")),ne(["{",be([Ee,Lt([",",Me],s)]),n.rest?"":mt(","),Ee,"}"])}case"MatchArrayPattern":{let s=e.map(r,"elements");return n.rest&&s.push(r("rest")),ne(["[",be([Ee,Lt([",",Me],s)]),n.rest?"":mt(","),Ee,"]"])}case"MatchObjectPatternProperty":return n.shorthand?r("pattern"):ne([r("key"),":",be([Me,r("pattern")])]);case"MatchRestPattern":{let s=["..."];return n.argument&&s.push(r("argument")),s}}}var s4=Tt(["MatchWildcardPattern","MatchLiteralPattern","MatchUnaryPattern","MatchIdentifierPattern"]);function mL(e){let{patterns:t}=e;if(t.some(n=>$e(n)))return!1;let r=t.find(n=>n.type==="MatchObjectPattern");return r?t.every(n=>n===r||s4(n)):!1}function yL(e){return s4(e)||e.type==="MatchObjectPattern"?!0:e.type==="MatchOrPattern"?mL(e):!1}function gL(e,t,r){let{node:n}=e,{parent:s}=e,i=s.type!=="MatchStatementCase"&&s.type!=="MatchExpressionCase"&&s.type!=="MatchArrayPattern"&&s.type!=="MatchObjectPatternProperty"&&!Ps(t.originalText,n),o=yL(n),l=e.map(()=>{let f=r();return o||(f=Bs(2,f)),ys(e,f,t)},"patterns");if(o)return Lt(" | ",l);let u=[mt(["| "]),Lt([Me,"| "],l)];return $a(e,t)?ne([be([mt([Ee]),u]),Ee]):s.type==="MatchArrayPattern"&&s.elements.length>1?ne([be([mt(["(",Ee]),u]),Ee,mt(")")]):ne(i?be(u):u)}function DL(e,t,r){let{node:n}=e,s=[es(e),"opaque type ",r("id"),r("typeParameters")];if(n.supertype&&s.push(": ",r("supertype")),n.lowerBound||n.upperBound){let i=[];n.lowerBound&&i.push(be([Me,"super ",r("lowerBound")])),n.upperBound&&i.push(be([Me,"extends ",r("upperBound")])),s.push(ne(i))}return n.impltype&&s.push(" = ",r("impltype")),s.push(t.semi?";":""),s}function i4(e,t,r){let{node:n}=e;return["...",...n.type==="TupleTypeSpreadElement"&&n.label?[r("label"),": "]:[],r("typeAnnotation")]}function a4(e,t,r){let{node:n}=e;return[n.variance?r("variance"):"",r("label"),n.optional?"?":"",": ",r("elementType")]}function o4(e,t,r){let{node:n}=e,s=[es(e),"type ",r("id"),r("typeParameters")],i=n.type==="TSTypeAliasDeclaration"?"typeAnnotation":"right";return[yp(e,t,r,s," =",i),t.semi?";":""]}function xL(e,t,r){let{node:n}=e;return cn(n).length===1&&n.type.startsWith("TS")&&!n[r][0].constraint&&e.parent.type==="ArrowFunctionExpression"&&!(t.filepath&&/\.ts$/u.test(t.filepath))}function Uc(e,t,r,n){let{node:s}=e;if(!s[n])return"";if(!Array.isArray(s[n]))return r(n);let i=ym(e.grandparent),o=e.match(u=>!(u[n].length===1&&ka(u[n][0])),void 0,(u,f)=>f==="typeAnnotation",u=>u.type==="Identifier",D6);if(s[n].length===0||!o&&(i||s[n].length===1&&(s[n][0].type==="NullableTypeAnnotation"||RN(s[n][0]))))return["<",Lt(", ",e.map(r,n)),TL(e,t),">"];let l=s.type==="TSTypeParameterInstantiation"?"":xL(e,t,n)?",":ci(t)?mt(","):"";return ne(["<",be([Ee,Lt([",",Me],e.map(r,n))]),l,Ee,">"])}function TL(e,t){let{node:r}=e;if(!$e(r,ze.Dangling))return"";let n=!$e(r,ze.Line),s=cr(e,t,{indent:!n});return n?s:[s,_e]}function u4(e,t,r){let{node:n}=e,s=[n.const?"const ":""],i=n.type==="TSTypeParameter"?r("name"):n.name;if(n.variance&&s.push(r("variance")),n.in&&s.push("in "),n.out&&s.push("out "),s.push(i),n.bound&&(n.usesExtendsBound&&s.push(" extends "),s.push(en(e,r,"bound"))),n.constraint){let o=Symbol("constraint");s.push(" extends",ne(be(Me),{id:o}),oi,Yc(r("constraint"),{groupId:o}))}if(n.default){let o=Symbol("default");s.push(" =",ne(be(Me),{id:o}),oi,Yc(r("default"),{groupId:o}))}return ne(s)}function l4(e,t){let{node:r}=e;return[r.type==="TSTypePredicate"&&r.asserts?"asserts ":r.type==="TypePredicate"&&r.kind?`${r.kind} `:"",t("parameterName"),r.typeAnnotation?[" is ",en(e,t)]:""]}function c4({node:e},t){let r=e.type==="TSTypeQuery"?"exprName":"argument";return["typeof ",t(r),t("typeArguments")]}function EL(e,t,r){let{node:n}=e;if(fb(n))return n.type.slice(0,-14).toLowerCase();switch(n.type){case"ComponentDeclaration":case"DeclareComponent":case"ComponentTypeAnnotation":return YB(e,t,r);case"ComponentParameter":return rL(e,t,r);case"ComponentTypeParameter":return nL(e,t,r);case"HookDeclaration":return aL(e,t,r);case"DeclareHook":return oL(e,t,r);case"HookTypeAnnotation":return uL(e,t,r);case"DeclareFunction":return[es(e),"function ",r("id"),r("predicate"),t.semi?";":""];case"DeclareModule":return["declare module ",r("id")," ",r("body")];case"DeclareModuleExports":return["declare module.exports",en(e,r),t.semi?";":""];case"DeclareNamespace":return["declare namespace ",r("id")," ",r("body")];case"DeclareVariable":return[es(e),n.kind??"var"," ",r("id"),t.semi?";":""];case"DeclareExportDeclaration":case"DeclareExportAllDeclaration":return q6(e,t,r);case"DeclareOpaqueType":case"OpaqueType":return DL(e,t,r);case"DeclareTypeAlias":case"TypeAlias":return o4(e,t,r);case"IntersectionTypeAnnotation":return n4(e,t,r);case"UnionTypeAnnotation":return o6(e,t,r);case"ConditionalTypeAnnotation":return Cg(e,t,r);case"InferTypeAnnotation":return r4(e,t,r);case"FunctionTypeAnnotation":return e4(e,t,r);case"TupleTypeAnnotation":return mg(e,t,r);case"TupleTypeLabeledElement":return a4(e,t,r);case"TupleTypeSpreadElement":return i4(e,t,r);case"GenericTypeAnnotation":return[r("id"),Uc(e,t,r,"typeParameters")];case"IndexedAccessType":case"OptionalIndexedAccessType":return t4(e,t,r);case"TypeAnnotation":return c6(e,t,r);case"TypeParameter":return u4(e,t,r);case"TypeofTypeAnnotation":return c4(e,r);case"ExistsTypeAnnotation":return"*";case"ArrayTypeAnnotation":return X6(r);case"DeclareEnum":case"EnumDeclaration":return Z6(e,r);case"EnumBooleanBody":case"EnumNumberBody":case"EnumBigIntBody":case"EnumStringBody":case"EnumSymbolBody":return sL(e,t,r);case"EnumBooleanMember":case"EnumNumberMember":case"EnumBigIntMember":case"EnumStringMember":case"EnumDefaultedMember":return Y6(e,r);case"FunctionTypeParam":{let s=n.name?r("name"):e.parent.this===n?"this":"";return[s,bn(e),s?": ":"",r("typeAnnotation")]}case"DeclareClass":case"DeclareInterface":case"InterfaceDeclaration":case"InterfaceTypeAnnotation":return Tg(e,t,r);case"ObjectTypeAnnotation":return xg(e,t,r);case"ClassImplements":case"InterfaceExtends":return[r("id"),r("typeParameters")];case"NullableTypeAnnotation":return["?",r("typeAnnotation")];case"Variance":{let{kind:s}=n;return s==="plus"?"+":"-"}case"KeyofTypeAnnotation":return["keyof ",r("argument")];case"ObjectTypeCallProperty":return[n.static?"static ":"",r("value"),wi(e,t)];case"ObjectTypeMappedTypeProperty":return cL(e,t,r);case"ObjectTypeIndexer":return[n.static?"static ":"",n.variance?r("variance"):"","[",r("id"),n.id?": ":"",r("key"),"]: ",r("value"),wi(e,t)];case"ObjectTypeProperty":{let s="";return n.proto?s="proto ":n.static&&(s="static "),[s,n.kind!=="init"?n.kind+" ":"",n.variance?r("variance"):"",gp(e,t,r),bn(e),hp(n)?"":": ",r("value"),wi(e,t)]}case"ObjectTypeInternalSlot":return[n.static?"static ":"","[[",r("id"),"]]",bn(e),n.method?"":": ",r("value"),wi(e,t)];case"ObjectTypeSpreadProperty":return B0(e,r);case"QualifiedTypeofIdentifier":case"QualifiedTypeIdentifier":return[r("qualification"),".",r("id")];case"NullLiteralTypeAnnotation":return"null";case"BooleanLiteralTypeAnnotation":return String(n.value);case"StringLiteralTypeAnnotation":return wo(Vu($n(n),t));case"NumberLiteralTypeAnnotation":return Gu($n(n));case"BigIntLiteralTypeAnnotation":return I0($n(n));case"TypeCastExpression":return["(",r("expression"),en(e,r),")"];case"TypePredicate":return l4(e,r);case"TypeOperator":return[n.operator," ",r("typeAnnotation")];case"TypeParameterDeclaration":case"TypeParameterInstantiation":return Uc(e,t,r,"params");case"InferredPredicate":case"DeclaredPredicate":return[e.key==="predicate"&&e.parent.type!=="DeclareFunction"&&!e.parent.returnType?": ":" ","%checks",...n.type==="DeclaredPredicate"?["(",r("value"),")"]:[]];case"AsExpression":case"AsConstExpression":case"SatisfiesExpression":return G6(e,t,r);case"MatchExpression":case"MatchStatement":return dL(e,t,r);case"MatchExpressionCase":case"MatchStatementCase":return hL(e,t,r);case"MatchOrPattern":case"MatchAsPattern":case"MatchWildcardPattern":case"MatchLiteralPattern":case"MatchUnaryPattern":case"MatchIdentifierPattern":case"MatchMemberPattern":case"MatchBindingPattern":case"MatchObjectPattern":case"MatchObjectPatternProperty":case"MatchRestPattern":case"MatchArrayPattern":return fL(e,t,r)}}function bL(e,t,r){let{node:n}=e,s=n.parameters.length>1?mt(ci(t)?",":""):"",i=ne([be([Ee,Lt([", ",Ee],e.map(r,"parameters"))]),s,Ee]);return[e.key==="body"&&e.parent.type==="ClassBody"&&n.static?"static ":"",n.readonly?"readonly ":"","[",n.parameters?i:"","]",en(e,r),wi(e,t)]}function a3(e,t,r){let{node:n}=e;return[n.postfix?"":r,en(e,t),n.postfix?r:""]}function CL(e,t,r){let{node:n}=e,s=[],i=n.kind&&n.kind!=="method"?`${n.kind} `:"";s.push(Tm(n),i,n.computed?"[":"",r("key"),n.computed?"]":"",bn(e));let o=Uo(e,t,r,!1,!0),l=en(e,r,"returnType"),u=nl(n,l);return s.push(u?ne(o):o),n.returnType&&s.push(ne(l)),[ne(s),wi(e,t)]}function AL(e,t,r){let{node:n}=e;return[es(e),n.kind==="global"?"":`${n.kind} `,r("id"),n.body?[" ",ne(r("body"))]:t.semi?";":""]}function vL(e,t,r){let{node:n}=e,s=!(rn(n.expression)||Ns(n.expression)),i=ne(["<",be([Ee,r("typeAnnotation")]),Ee,">"]),o=[mt("("),be([Ee,r("expression")]),Ee,mt(")")];return s?bo([[i,r("expression")],[i,ne(o,{shouldBreak:!0})],[i,r("expression")]]):ne([i,r("expression")])}function SL(e,t,r){let{node:n}=e;if(n.type.startsWith("TS")){if(mb(n))return n.type.slice(2,-7).toLowerCase();switch(n.type){case"TSThisType":return"this";case"TSTypeAssertion":return vL(e,t,r);case"TSDeclareFunction":return E6(e,t,r);case"TSExportAssignment":return["export = ",r("expression"),t.semi?";":""];case"TSModuleBlock":return N6(e,t,r);case"TSInterfaceBody":case"TSTypeLiteral":return xg(e,t,r);case"TSTypeAliasDeclaration":return o4(e,t,r);case"TSQualifiedName":return[r("left"),".",r("right")];case"TSAbstractMethodDefinition":case"TSDeclareMethod":return M6(e,t,r);case"TSAbstractAccessorProperty":case"TSAbstractPropertyDefinition":return j6(e,t,r);case"TSInterfaceHeritage":case"TSClassImplements":case"TSInstantiationExpression":return[r("expression"),r("typeArguments")];case"TSTemplateLiteralType":return Gb(e,t,r);case"TSNamedTupleMember":return a4(e,t,r);case"TSRestType":return i4(e,t,r);case"TSOptionalType":return[r("typeAnnotation"),"?"];case"TSInterfaceDeclaration":return Tg(e,t,r);case"TSTypeParameterDeclaration":case"TSTypeParameterInstantiation":return Uc(e,t,r,"params");case"TSTypeParameter":return u4(e,t,r);case"TSAsExpression":case"TSSatisfiesExpression":return G6(e,t,r);case"TSArrayType":return X6(r);case"TSPropertySignature":return[n.readonly?"readonly ":"",gp(e,t,r),bn(e),en(e,r),wi(e,t)];case"TSParameterProperty":return[Tm(n),n.static?"static ":"",n.override?"override ":"",n.readonly?"readonly ":"",r("parameter")];case"TSTypeQuery":return c4(e,r);case"TSIndexSignature":return bL(e,t,r);case"TSTypePredicate":return l4(e,r);case"TSNonNullExpression":return[r("expression"),"!"];case"TSImportType":return[Vf(e,t,r),n.qualifier?[".",r("qualifier")]:"",Uc(e,t,r,"typeArguments")];case"TSLiteralType":return r("literal");case"TSIndexedAccessType":return t4(e,t,r);case"TSTypeOperator":return[n.operator," ",r("typeAnnotation")];case"TSMappedType":return pL(e,t,r);case"TSMethodSignature":return CL(e,t,r);case"TSNamespaceExportDeclaration":return["export as namespace ",r("id"),t.semi?";":""];case"TSEnumDeclaration":return Z6(e,r);case"TSEnumBody":return Q6(e,t,r);case"TSEnumMember":return Y6(e,r);case"TSImportEqualsDeclaration":return["import ",K6(n,!1),r("id")," = ",r("moduleReference"),t.semi?";":""];case"TSExternalModuleReference":return Vf(e,t,r);case"TSModuleDeclaration":return AL(e,t,r);case"TSConditionalType":return Cg(e,t,r);case"TSInferType":return r4(e,t,r);case"TSIntersectionType":return n4(e,t,r);case"TSUnionType":return o6(e,t,r);case"TSFunctionType":case"TSCallSignatureDeclaration":case"TSConstructorType":case"TSConstructSignatureDeclaration":return e4(e,t,r);case"TSTupleType":return mg(e,t,r);case"TSTypeReference":return[r("typeName"),Uc(e,t,r,"typeArguments")];case"TSTypeAnnotation":return c6(e,t,r);case"TSEmptyBodyFunctionExpression":return yg(e,t,r);case"TSJSDocAllType":return"*";case"TSJSDocUnknownType":return"?";case"TSJSDocNullableType":return a3(e,r,"?");case"TSJSDocNonNullableType":return a3(e,r,"!");default:throw new sl(n,"TypeScript")}}}function _L(e,t,r,n){for(let s of[XI,KI,EL,SL,GB]){let i=s(e,t,r,n);if(i!==void 0)return i}}var FL=Tt(["ClassMethod","ClassPrivateMethod","ClassProperty","ClassAccessorProperty","AccessorProperty","TSAbstractAccessorProperty","PropertyDefinition","TSAbstractPropertyDefinition","ClassPrivateProperty","MethodDefinition","TSAbstractMethodDefinition","TSDeclareMethod"]);function kL(e,t,r,n){e.isRoot&&t.__onHtmlBindingRoot?.(e.node,t);let{node:s}=e,i=Dg(e)?t.originalText.slice(Pt(s),_t(s)):_L(e,t,r,n);if(!i)return"";if(FL(s))return i;let o=dr(s.decorators),l=eB(e,t,r),u=s.type==="ClassExpression";if(o&&!u)return A0(i,d=>ne([l,d]));let f=$a(e,t),p=AI(e,t);return!l&&!f&&!p?i:A0(i,d=>[p?";":"",f?"(":"",f&&u&&o?[be([Me,l,d]),Me]:[l,d],f?")":""])}var o3=kL,wL={experimental_avoidAstMutation:!0},PL=[{name:"JSON.stringify",type:"data",aceMode:"json",extensions:[".importmap"],filenames:["package.json","package-lock.json","composer.json"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json-stringify"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON",type:"data",aceMode:"json",extensions:[".json",".4DForm",".4DProject",".avsc",".geojson",".gltf",".har",".ice",".JSON-tmLanguage",".json.example",".mcmeta",".sarif",".tact",".tfstate",".tfstate.backup",".topojson",".webapp",".webmanifest",".yy",".yyp"],filenames:[".all-contributorsrc",".arcconfig",".auto-changelog",".c8rc",".htmlhintrc",".imgbotconfig",".nycrc",".tern-config",".tern-project",".watchmanconfig",".babelrc",".jscsrc",".jshintrc",".jslintrc",".swcrc"],tmScope:"source.json",aliases:["geojson","jsonl","sarif","topojson"],codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json"],vscodeLanguageIds:["json"],linguistLanguageId:174},{name:"JSON with Comments",type:"data",aceMode:"javascript",extensions:[".jsonc",".code-snippets",".code-workspace",".sublime-build",".sublime-color-scheme",".sublime-commands",".sublime-completions",".sublime-keymap",".sublime-macro",".sublime-menu",".sublime-mousemap",".sublime-project",".sublime-settings",".sublime-theme",".sublime-workspace",".sublime_metrics",".sublime_session"],filenames:[],tmScope:"source.json.comments",aliases:["jsonc"],codemirrorMode:"javascript",codemirrorMimeType:"text/javascript",group:"JSON",parsers:["jsonc"],vscodeLanguageIds:["jsonc"],linguistLanguageId:423},{name:"JSON5",type:"data",aceMode:"json5",extensions:[".json5"],tmScope:"source.js",codemirrorMode:"javascript",codemirrorMimeType:"application/json",parsers:["json5"],vscodeLanguageIds:["json5"],linguistLanguageId:175}],p4={};z2(p4,{getVisitorKeys:()=>BL,massageAstNode:()=>d4,print:()=>LL});var yu=[[]],NL={JsonRoot:["node"],ArrayExpression:["elements"],ObjectExpression:["properties"],ObjectProperty:["key","value"],UnaryExpression:["argument"],NullLiteral:yu[0],BooleanLiteral:yu[0],StringLiteral:yu[0],NumericLiteral:yu[0],Identifier:yu[0],TemplateLiteral:["quasis"],TemplateElement:yu[0]},IL=db(NL),BL=IL;function LL(e,t,r){let{node:n}=e;switch(n.type){case"JsonRoot":return[r("node"),_e];case"ArrayExpression":{if(n.elements.length===0)return"[]";let s=e.map(()=>e.node===null?"null":r(),"elements");return["[",be([_e,Lt([",",_e],s)]),_e,"]"]}case"ObjectExpression":return n.properties.length===0?"{}":["{",be([_e,Lt([",",_e],e.map(r,"properties"))]),_e,"}"];case"ObjectProperty":return[r("key"),": ",r("value")];case"UnaryExpression":return[n.operator==="+"?"":n.operator,r("argument")];case"NullLiteral":return"null";case"BooleanLiteral":return n.value?"true":"false";case"StringLiteral":return JSON.stringify(n.value);case"NumericLiteral":return u3(e)?JSON.stringify(String(n.value)):JSON.stringify(n.value);case"Identifier":return u3(e)?JSON.stringify(n.name):n.name;case"TemplateLiteral":return r(["quasis",0]);case"TemplateElement":return JSON.stringify(n.value.cooked);default:throw new sl(n,"JSON")}}function u3(e){return e.key==="key"&&e.parent.type==="ObjectProperty"}var OL=new Set(["start","end","extra","loc","comments","leadingComments","trailingComments","innerComments","errors","range","tokens"]);function d4(e,t){let{type:r}=e;if(r==="ObjectProperty"){let{key:n}=e;n.type==="Identifier"?t.key={type:"StringLiteral",value:n.name}:n.type==="NumericLiteral"&&(t.key={type:"StringLiteral",value:String(n.value)});return}if(r==="UnaryExpression"&&e.operator==="+")return t.argument;if(r==="ArrayExpression"){for(let[n,s]of e.elements.entries())s===null&&t.elements.splice(n,0,{type:"NullLiteral"});return}if(r==="TemplateLiteral")return{type:"StringLiteral",value:e.quasis[0].value.cooked}}d4.ignoredProperties=OL;var dc={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."},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."}},da="JavaScript",$L={arrowParens:{category:da,type:"choice",default:"always",description:"Include parentheses around a sole arrow function parameter.",choices:[{value:"always",description:"Always include parens. Example: `(x) => x`"},{value:"avoid",description:"Omit parens when possible. Example: `x => x`"}]},bracketSameLine:dc.bracketSameLine,objectWrap:dc.objectWrap,bracketSpacing:dc.bracketSpacing,jsxBracketSameLine:{category:da,type:"boolean",description:"Put > on the last line instead of at a new line.",deprecated:"2.4.0"},semi:{category:da,type:"boolean",default:!0,description:"Print semicolons.",oppositeDescription:"Do not print semicolons, except at the beginning of lines which may need them."},experimentalOperatorPosition:{category:da,type:"choice",default:"end",description:"Where to print operators when binary expressions wrap lines.",choices:[{value:"start",description:"Print operators at the start of new lines."},{value:"end",description:"Print operators at the end of previous lines."}]},experimentalTernaries:{category:da,type:"boolean",default:!1,description:"Use curious ternaries, with the question mark after the condition.",oppositeDescription:"Default behavior of ternaries; keep question marks on the same line as the consequent."},singleQuote:dc.singleQuote,jsxSingleQuote:{category:da,type:"boolean",default:!1,description:"Use single quotes in JSX."},quoteProps:{category:da,type:"choice",default:"as-needed",description:"Change when properties in objects are quoted.",choices:[{value:"as-needed",description:"Only add quotes around object properties where required."},{value:"consistent",description:"If at least one property in an object requires quotes, quote all properties."},{value:"preserve",description:"Respect the input use of quotes in object properties."}]},trailingComma:{category:da,type:"choice",default:"all",description:"Print trailing commas wherever possible when multi-line.",choices:[{value:"all",description:"Trailing commas wherever possible (including function arguments)."},{value:"es5",description:"Trailing commas where valid in ES5 (objects, arrays, etc.)"},{value:"none",description:"No trailing commas."}]},singleAttributePerLine:dc.singleAttributePerLine},ML=$L,jL={estree:ab,"estree-json":p4},JL=[...Mw,...PL],RL=Object.create,Ag=Object.defineProperty,UL=Object.getOwnPropertyDescriptor,qL=Object.getOwnPropertyNames,KL=Object.getPrototypeOf,zL=Object.prototype.hasOwnProperty,Le=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),h4=(e,t)=>{for(var r in t)Ag(e,r,{get:t[r],enumerable:!0})},WL=(e,t,r,n)=>{if(t&&typeof t=="object"||typeof t=="function")for(let s of qL(t))!zL.call(e,s)&&s!==r&&Ag(e,s,{get:()=>t[s],enumerable:!(n=UL(t,s))||n.enumerable});return e},il=(e,t,r)=>(r=e!=null?RL(KL(e)):{},WL(Ag(r,"default",{value:e,enumerable:!0}),e)),VL=Le((e,t)=>{var r=String,n=function(){return{isColorSupported:!1,reset:r,bold:r,dim:r,italic:r,underline:r,inverse:r,hidden:r,strikethrough:r,black:r,red:r,green:r,yellow:r,blue:r,magenta:r,cyan:r,white:r,gray:r,bgBlack:r,bgRed:r,bgGreen:r,bgYellow:r,bgBlue:r,bgMagenta:r,bgCyan:r,bgWhite:r,blackBright:r,redBright:r,greenBright:r,yellowBright:r,blueBright:r,magentaBright:r,cyanBright:r,whiteBright:r,bgBlackBright:r,bgRedBright:r,bgGreenBright:r,bgYellowBright:r,bgBlueBright:r,bgMagentaBright:r,bgCyanBright:r,bgWhiteBright:r}};t.exports=n(),t.exports.createColors=n}),f4=Le(()=>{}),vg=Le((e,t)=>{var r=VL(),n=f4(),s=class m4 extends Error{constructor(o,l,u,f,p,d){super(o),this.name="CssSyntaxError",this.reason=o,p&&(this.file=p),f&&(this.source=f),d&&(this.plugin=d),typeof l<"u"&&typeof u<"u"&&(typeof l=="number"?(this.line=l,this.column=u):(this.line=l.line,this.column=l.column,this.endLine=u.line,this.endColumn=u.column)),this.setMessage(),Error.captureStackTrace&&Error.captureStackTrace(this,m4)}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(o){if(!this.source)return"";let l=this.source;o==null&&(o=r.isColorSupported);let u=T=>T,f=T=>T,p=T=>T;if(o){let{bold:T,gray:S,red:v}=r.createColors(!0);f=E=>T(v(E)),u=E=>S(E),n&&(p=E=>n(E))}let d=l.split(/\r?\n/),y=Math.max(this.line-3,0),m=Math.min(this.line+2,d.length),D=String(m).length;return d.slice(y,m).map((T,S)=>{let v=y+1+S,E=" "+(" "+v).slice(-D)+" | ";if(v===this.line){if(T.length>160){let P=20,k=Math.max(0,this.column-P),w=Math.max(this.column+P,this.endColumn+P),B=T.slice(k,w),I=u(E.replace(/\d/g," "))+T.slice(0,Math.min(this.column-1,P-1)).replace(/[^\t]/g," ");return f(">")+u(E)+p(B)+`
|
|
87
|
-
`+I+f("^")}let C=u(E.replace(/\d/g," "))+T.slice(0,this.column-1).replace(/[^\t]/g," ");return f(">")+u(E)+p(T)+`
|
|
88
|
-
`+C+f("^")}return" "+u(E)+p(T)}).join(`
|
|
89
|
-
`)}toString(){let o=this.showSourceCode();return o&&(o=`
|
|
90
|
-
|
|
91
|
-
`+o+`
|
|
92
|
-
`),this.name+": "+this.message+o}};t.exports=s,s.default=s}),Sg=Le((e,t)=>{var r={after:`
|
|
93
|
-
`,beforeClose:`
|
|
94
|
-
`,beforeComment:`
|
|
95
|
-
`,beforeDecl:`
|
|
96
|
-
`,beforeOpen:" ",beforeRule:`
|
|
97
|
-
`,colon:": ",commentLeft:" ",commentRight:" ",emptyBody:"",indent:" ",semicolon:!1};function n(i){return i[0].toUpperCase()+i.slice(1)}var s=class{constructor(i){this.builder=i}atrule(i,o){let l="@"+i.name,u=i.params?this.rawValue(i,"params"):"";if(typeof i.raws.afterName<"u"?l+=i.raws.afterName:u&&(l+=" "),i.nodes)this.block(i,l+u);else{let f=(i.raws.between||"")+(o?";":"");this.builder(l+u+f,i)}}beforeAfter(i,o){let l;i.type==="decl"?l=this.raw(i,null,"beforeDecl"):i.type==="comment"?l=this.raw(i,null,"beforeComment"):o==="before"?l=this.raw(i,null,"beforeRule"):l=this.raw(i,null,"beforeClose");let u=i.parent,f=0;for(;u&&u.type!=="root";)f+=1,u=u.parent;if(l.includes(`
|
|
98
|
-
`)){let p=this.raw(i,null,"indent");if(p.length)for(let d=0;d<f;d++)l+=p}return l}block(i,o){let l=this.raw(i,"between","beforeOpen");this.builder(o+l+"{",i,"start");let u;i.nodes&&i.nodes.length?(this.body(i),u=this.raw(i,"after")):u=this.raw(i,"after","emptyBody"),u&&this.builder(u),this.builder("}",i,"end")}body(i){let o=i.nodes.length-1;for(;o>0&&i.nodes[o].type==="comment";)o-=1;let l=this.raw(i,"semicolon");for(let u=0;u<i.nodes.length;u++){let f=i.nodes[u],p=this.raw(f,"before");p&&this.builder(p),this.stringify(f,o!==u||l)}}comment(i){let o=this.raw(i,"left","commentLeft"),l=this.raw(i,"right","commentRight");this.builder("/*"+o+i.text+l+"*/",i)}decl(i,o){let l=this.raw(i,"between","colon"),u=i.prop+l+this.rawValue(i,"value");i.important&&(u+=i.raws.important||" !important"),o&&(u+=";"),this.builder(u,i)}document(i){this.body(i)}raw(i,o,l){let u;if(l||(l=o),o&&(u=i.raws[o],typeof u<"u"))return u;let f=i.parent;if(l==="before"&&(!f||f.type==="root"&&f.first===i||f&&f.type==="document"))return"";if(!f)return r[l];let p=i.root();if(p.rawCache||(p.rawCache={}),typeof p.rawCache[l]<"u")return p.rawCache[l];if(l==="before"||l==="after")return this.beforeAfter(i,l);{let d="raw"+n(l);this[d]?u=this[d](p,i):p.walk(y=>{if(u=y.raws[o],typeof u<"u")return!1})}return typeof u>"u"&&(u=r[l]),p.rawCache[l]=u,u}rawBeforeClose(i){let o;return i.walk(l=>{if(l.nodes&&l.nodes.length>0&&typeof l.raws.after<"u")return o=l.raws.after,o.includes(`
|
|
99
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawBeforeComment(i,o){let l;return i.walkComments(u=>{if(typeof u.raws.before<"u")return l=u.raws.before,l.includes(`
|
|
100
|
-
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(o,null,"beforeDecl"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeDecl(i,o){let l;return i.walkDecls(u=>{if(typeof u.raws.before<"u")return l=u.raws.before,l.includes(`
|
|
101
|
-
`)&&(l=l.replace(/[^\n]+$/,"")),!1}),typeof l>"u"?l=this.raw(o,null,"beforeRule"):l&&(l=l.replace(/\S/g,"")),l}rawBeforeOpen(i){let o;return i.walk(l=>{if(l.type!=="decl"&&(o=l.raws.between,typeof o<"u"))return!1}),o}rawBeforeRule(i){let o;return i.walk(l=>{if(l.nodes&&(l.parent!==i||i.first!==l)&&typeof l.raws.before<"u")return o=l.raws.before,o.includes(`
|
|
102
|
-
`)&&(o=o.replace(/[^\n]+$/,"")),!1}),o&&(o=o.replace(/\S/g,"")),o}rawColon(i){let o;return i.walkDecls(l=>{if(typeof l.raws.between<"u")return o=l.raws.between.replace(/[^\s:]/g,""),!1}),o}rawEmptyBody(i){let o;return i.walk(l=>{if(l.nodes&&l.nodes.length===0&&(o=l.raws.after,typeof o<"u"))return!1}),o}rawIndent(i){if(i.raws.indent)return i.raws.indent;let o;return i.walk(l=>{let u=l.parent;if(u&&u!==i&&u.parent&&u.parent===i&&typeof l.raws.before<"u"){let f=l.raws.before.split(`
|
|
103
|
-
`);return o=f[f.length-1],o=o.replace(/\S/g,""),!1}}),o}rawSemicolon(i){let o;return i.walk(l=>{if(l.nodes&&l.nodes.length&&l.last.type==="decl"&&(o=l.raws.semicolon,typeof o<"u"))return!1}),o}rawValue(i,o){let l=i[o],u=i.raws[o];return u&&u.value===l?u.raw:l}root(i){this.body(i),i.raws.after&&this.builder(i.raws.after)}rule(i){this.block(i,this.rawValue(i,"selector")),i.raws.ownSemicolon&&this.builder(i.raws.ownSemicolon,i,"end")}stringify(i,o){if(!this[i.type])throw new Error("Unknown AST node type "+i.type+". Maybe you need to change PostCSS stringifier.");this[i.type](i,o)}};t.exports=s,s.default=s}),Cm=Le((e,t)=>{var r=Sg();function n(s,i){new r(i).stringify(s)}t.exports=n,n.default=n}),_g=Le((e,t)=>{t.exports.isClean=Symbol("isClean"),t.exports.my=Symbol("my")}),Am=Le((e,t)=>{var r=vg(),n=Sg(),s=Cm(),{isClean:i,my:o}=_g();function l(p,d){let y=new p.constructor;for(let m in p){if(!Object.prototype.hasOwnProperty.call(p,m)||m==="proxyCache")continue;let D=p[m],T=typeof D;m==="parent"&&T==="object"?d&&(y[m]=d):m==="source"?y[m]=D:Array.isArray(D)?y[m]=D.map(S=>l(S,y)):(T==="object"&&D!==null&&(D=l(D)),y[m]=D)}return y}function u(p,d){if(d&&typeof d.offset<"u")return d.offset;let y=1,m=1,D=0;for(let T=0;T<p.length;T++){if(m===d.line&&y===d.column){D=T;break}p[T]===`
|
|
104
|
-
`?(y=1,m+=1):y+=1}return D}var f=class{get proxyOf(){return this}constructor(p={}){this.raws={},this[i]=!1,this[o]=!0;for(let d in p)if(d==="nodes"){this.nodes=[];for(let y of p[d])typeof y.clone=="function"?this.append(y.clone()):this.append(y)}else this[d]=p[d]}addToError(p){if(p.postcssNode=this,p.stack&&this.source&&/\n\s{4}at /.test(p.stack)){let d=this.source;p.stack=p.stack.replace(/\n\s{4}at /,`$&${d.input.from}:${d.start.line}:${d.start.column}$&`)}return p}after(p){return this.parent.insertAfter(this,p),this}assign(p={}){for(let d in p)this[d]=p[d];return this}before(p){return this.parent.insertBefore(this,p),this}cleanRaws(p){delete this.raws.before,delete this.raws.after,p||delete this.raws.between}clone(p={}){let d=l(this);for(let y in p)d[y]=p[y];return d}cloneAfter(p={}){let d=this.clone(p);return this.parent.insertAfter(this,d),d}cloneBefore(p={}){let d=this.clone(p);return this.parent.insertBefore(this,d),d}error(p,d={}){if(this.source){let{end:y,start:m}=this.rangeBy(d);return this.source.input.error(p,{column:m.column,line:m.line},{column:y.column,line:y.line},d)}return new r(p)}getProxyProcessor(){return{get(p,d){return d==="proxyOf"?p:d==="root"?()=>p.root().toProxy():p[d]},set(p,d,y){return p[d]===y||(p[d]=y,(d==="prop"||d==="value"||d==="name"||d==="params"||d==="important"||d==="text")&&p.markDirty()),!0}}}markClean(){this[i]=!0}markDirty(){if(this[i]){this[i]=!1;let p=this;for(;p=p.parent;)p[i]=!1}}next(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p+1]}positionBy(p={}){let d=this.source.start;if(p.index)d=this.positionInside(p.index);else if(p.word){let y="document"in this.source.input?this.source.input.document:this.source.input.css,m=y.slice(u(y,this.source.start),u(y,this.source.end)).indexOf(p.word);m!==-1&&(d=this.positionInside(m))}return d}positionInside(p){let d=this.source.start.column,y=this.source.start.line,m="document"in this.source.input?this.source.input.document:this.source.input.css,D=u(m,this.source.start),T=D+p;for(let S=D;S<T;S++)m[S]===`
|
|
105
|
-
`?(d=1,y+=1):d+=1;return{column:d,line:y,offset:T}}prev(){if(!this.parent)return;let p=this.parent.index(this);return this.parent.nodes[p-1]}rangeBy(p={}){let d="document"in this.source.input?this.source.input.document:this.source.input.css,y={column:this.source.start.column,line:this.source.start.line,offset:u(d,this.source.start)},m=this.source.end?{column:this.source.end.column+1,line:this.source.end.line,offset:typeof this.source.end.offset=="number"?this.source.end.offset:u(d,this.source.end)+1}:{column:y.column+1,line:y.line,offset:y.offset+1};if(p.word){let D=d.slice(u(d,this.source.start),u(d,this.source.end)).indexOf(p.word);D!==-1&&(y=this.positionInside(D),m=this.positionInside(D+p.word.length))}else p.start?y={column:p.start.column,line:p.start.line,offset:u(d,p.start)}:p.index&&(y=this.positionInside(p.index)),p.end?m={column:p.end.column,line:p.end.line,offset:u(d,p.end)}:typeof p.endIndex=="number"?m=this.positionInside(p.endIndex):p.index&&(m=this.positionInside(p.index+1));return(m.line<y.line||m.line===y.line&&m.column<=y.column)&&(m={column:y.column+1,line:y.line,offset:y.offset+1}),{end:m,start:y}}raw(p,d){return new n().raw(this,p,d)}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}replaceWith(...p){if(this.parent){let d=this,y=!1;for(let m of p)m===this?y=!0:y?(this.parent.insertAfter(d,m),d=m):this.parent.insertBefore(d,m);y||this.remove()}return this}root(){let p=this;for(;p.parent&&p.parent.type!=="document";)p=p.parent;return p}toJSON(p,d){let y={},m=d==null;d=d||new Map;let D=0;for(let T in this){if(!Object.prototype.hasOwnProperty.call(this,T)||T==="parent"||T==="proxyCache")continue;let S=this[T];if(Array.isArray(S))y[T]=S.map(v=>typeof v=="object"&&v.toJSON?v.toJSON(null,d):v);else if(typeof S=="object"&&S.toJSON)y[T]=S.toJSON(null,d);else if(T==="source"){if(S==null)continue;let v=d.get(S.input);v==null&&(v=D,d.set(S.input,D),D++),y[T]={end:S.end,inputId:v,start:S.start}}else y[T]=S}return m&&(y.inputs=[...d.keys()].map(T=>T.toJSON())),y}toProxy(){return this.proxyCache||(this.proxyCache=new Proxy(this,this.getProxyProcessor())),this.proxyCache}toString(p=s){p.stringify&&(p=p.stringify);let d="";return p(this,y=>{d+=y}),d}warn(p,d,y={}){let m={node:this};for(let D in y)m[D]=y[D];return p.warn(d,m)}};t.exports=f,f.default=f}),Dp=Le((e,t)=>{var r=Am(),n=class extends r{constructor(s){super(s),this.type="comment"}};t.exports=n,n.default=n}),vm=Le((e,t)=>{var r=Am(),n=class extends r{get variable(){return this.prop.startsWith("--")||this.prop[0]==="$"}constructor(s){s&&typeof s.value<"u"&&typeof s.value!="string"&&(s={...s,value:String(s.value)}),super(s),this.type="decl"}};t.exports=n,n.default=n}),qo=Le((e,t)=>{var r=Dp(),n=vm(),s=Am(),{isClean:i,my:o}=_g(),l,u,f,p;function d(D){return D.map(T=>(T.nodes&&(T.nodes=d(T.nodes)),delete T.source,T))}function y(D){if(D[i]=!1,D.proxyOf.nodes)for(let T of D.proxyOf.nodes)y(T)}var m=class y4 extends s{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(...T){for(let S of T){let v=this.normalize(S,this.last);for(let E of v)this.proxyOf.nodes.push(E)}return this.markDirty(),this}cleanRaws(T){if(super.cleanRaws(T),this.nodes)for(let S of this.nodes)S.cleanRaws(T)}each(T){if(!this.proxyOf.nodes)return;let S=this.getIterator(),v,E;for(;this.indexes[S]<this.proxyOf.nodes.length&&(v=this.indexes[S],E=T(this.proxyOf.nodes[v],v),E!==!1);)this.indexes[S]+=1;return delete this.indexes[S],E}every(T){return this.nodes.every(T)}getIterator(){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let T=this.lastEach;return this.indexes[T]=0,T}getProxyProcessor(){return{get(T,S){return S==="proxyOf"?T:T[S]?S==="each"||typeof S=="string"&&S.startsWith("walk")?(...v)=>T[S](...v.map(E=>typeof E=="function"?(C,P)=>E(C.toProxy(),P):E)):S==="every"||S==="some"?v=>T[S]((E,...C)=>v(E.toProxy(),...C)):S==="root"?()=>T.root().toProxy():S==="nodes"?T.nodes.map(v=>v.toProxy()):S==="first"||S==="last"?T[S].toProxy():T[S]:T[S]},set(T,S,v){return T[S]===v||(T[S]=v,(S==="name"||S==="params"||S==="selector")&&T.markDirty()),!0}}}index(T){return typeof T=="number"?T:(T.proxyOf&&(T=T.proxyOf),this.proxyOf.nodes.indexOf(T))}insertAfter(T,S){let v=this.index(T),E=this.normalize(S,this.proxyOf.nodes[v]).reverse();v=this.index(T);for(let P of E)this.proxyOf.nodes.splice(v+1,0,P);let C;for(let P in this.indexes)C=this.indexes[P],v<C&&(this.indexes[P]=C+E.length);return this.markDirty(),this}insertBefore(T,S){let v=this.index(T),E=v===0?"prepend":!1,C=this.normalize(S,this.proxyOf.nodes[v],E).reverse();v=this.index(T);for(let k of C)this.proxyOf.nodes.splice(v,0,k);let P;for(let k in this.indexes)P=this.indexes[k],v<=P&&(this.indexes[k]=P+C.length);return this.markDirty(),this}normalize(T,S){if(typeof T=="string")T=d(u(T).nodes);else if(typeof T>"u")T=[];else if(Array.isArray(T)){T=T.slice(0);for(let v of T)v.parent&&v.parent.removeChild(v,"ignore")}else if(T.type==="root"&&this.type!=="document"){T=T.nodes.slice(0);for(let v of T)v.parent&&v.parent.removeChild(v,"ignore")}else if(T.type)T=[T];else if(T.prop){if(typeof T.value>"u")throw new Error("Value field is missed in node creation");typeof T.value!="string"&&(T.value=String(T.value)),T=[new n(T)]}else if(T.selector||T.selectors)T=[new p(T)];else if(T.name)T=[new l(T)];else if(T.text)T=[new r(T)];else throw new Error("Unknown node type in node creation");return T.map(v=>(v[o]||y4.rebuild(v),v=v.proxyOf,v.parent&&v.parent.removeChild(v),v[i]&&y(v),v.raws||(v.raws={}),typeof v.raws.before>"u"&&S&&typeof S.raws.before<"u"&&(v.raws.before=S.raws.before.replace(/\S/g,"")),v.parent=this.proxyOf,v))}prepend(...T){T=T.reverse();for(let S of T){let v=this.normalize(S,this.first,"prepend").reverse();for(let E of v)this.proxyOf.nodes.unshift(E);for(let E in this.indexes)this.indexes[E]=this.indexes[E]+v.length}return this.markDirty(),this}push(T){return T.parent=this,this.proxyOf.nodes.push(T),this}removeAll(){for(let T of this.proxyOf.nodes)T.parent=void 0;return this.proxyOf.nodes=[],this.markDirty(),this}removeChild(T){T=this.index(T),this.proxyOf.nodes[T].parent=void 0,this.proxyOf.nodes.splice(T,1);let S;for(let v in this.indexes)S=this.indexes[v],S>=T&&(this.indexes[v]=S-1);return this.markDirty(),this}replaceValues(T,S,v){return v||(v=S,S={}),this.walkDecls(E=>{S.props&&!S.props.includes(E.prop)||S.fast&&!E.value.includes(S.fast)||(E.value=E.value.replace(T,v))}),this.markDirty(),this}some(T){return this.nodes.some(T)}walk(T){return this.each((S,v)=>{let E;try{E=T(S,v)}catch(C){throw S.addToError(C)}return E!==!1&&S.walk&&(E=S.walk(T)),E})}walkAtRules(T,S){return S?T instanceof RegExp?this.walk((v,E)=>{if(v.type==="atrule"&&T.test(v.name))return S(v,E)}):this.walk((v,E)=>{if(v.type==="atrule"&&v.name===T)return S(v,E)}):(S=T,this.walk((v,E)=>{if(v.type==="atrule")return S(v,E)}))}walkComments(T){return this.walk((S,v)=>{if(S.type==="comment")return T(S,v)})}walkDecls(T,S){return S?T instanceof RegExp?this.walk((v,E)=>{if(v.type==="decl"&&T.test(v.prop))return S(v,E)}):this.walk((v,E)=>{if(v.type==="decl"&&v.prop===T)return S(v,E)}):(S=T,this.walk((v,E)=>{if(v.type==="decl")return S(v,E)}))}walkRules(T,S){return S?T instanceof RegExp?this.walk((v,E)=>{if(v.type==="rule"&&T.test(v.selector))return S(v,E)}):this.walk((v,E)=>{if(v.type==="rule"&&v.selector===T)return S(v,E)}):(S=T,this.walk((v,E)=>{if(v.type==="rule")return S(v,E)}))}};m.registerParse=D=>{u=D},m.registerRule=D=>{p=D},m.registerAtRule=D=>{l=D},m.registerRoot=D=>{f=D},t.exports=m,m.default=m,m.rebuild=D=>{D.type==="atrule"?Object.setPrototypeOf(D,l.prototype):D.type==="rule"?Object.setPrototypeOf(D,p.prototype):D.type==="decl"?Object.setPrototypeOf(D,n.prototype):D.type==="comment"?Object.setPrototypeOf(D,r.prototype):D.type==="root"&&Object.setPrototypeOf(D,f.prototype),D[o]=!0,D.nodes&&D.nodes.forEach(T=>{m.rebuild(T)})}}),HL=Le((e,t)=>{var r="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict",n=(i,o=21)=>(l=o)=>{let u="",f=l|0;for(;f--;)u+=i[Math.random()*i.length|0];return u},s=(i=21)=>{let o="",l=i|0;for(;l--;)o+=r[Math.random()*64|0];return o};t.exports={nanoid:s,customAlphabet:n}}),XL=Le(()=>{}),g4=Le((e,t)=>{t.exports=class{}}),xp=Le((e,t)=>{var{nanoid:r}=HL(),{isAbsolute:n,resolve:s}={},{SourceMapConsumer:i,SourceMapGenerator:o}=XL(),{fileURLToPath:l,pathToFileURL:u}={},f=vg(),p=g4(),d=f4(),y=Symbol("lineToIndexCache"),m=!!(i&&o),D=!!(s&&n);function T(v){if(v[y])return v[y];let E=v.css.split(`
|
|
106
|
-
`),C=new Array(E.length),P=0;for(let k=0,w=E.length;k<w;k++)C[k]=P,P+=E[k].length+1;return v[y]=C,C}var S=class{get from(){return this.file||this.id}constructor(v,E={}){if(v===null||typeof v>"u"||typeof v=="object"&&!v.toString)throw new Error(`PostCSS received ${v} instead of CSS string`);if(this.css=v.toString(),this.css[0]==="\uFEFF"||this.css[0]===""?(this.hasBOM=!0,this.css=this.css.slice(1)):this.hasBOM=!1,this.document=this.css,E.document&&(this.document=E.document.toString()),E.from&&(!D||/^\w+:\/\//.test(E.from)||n(E.from)?this.file=E.from:this.file=s(E.from)),D&&m){let C=new p(this.css,E);if(C.text){this.map=C;let P=C.consumer().file;!this.file&&P&&(this.file=this.mapResolve(P))}}this.file||(this.id="<input css "+r(6)+">"),this.map&&(this.map.file=this.from)}error(v,E,C,P={}){let k,w,B,I,oe;if(E&&typeof E=="object"){let me=E,Ge=C;if(typeof me.offset=="number"){I=me.offset;let Q=this.fromOffset(I);E=Q.line,C=Q.col}else E=me.line,C=me.column,I=this.fromLineAndColumn(E,C);if(typeof Ge.offset=="number"){B=Ge.offset;let Q=this.fromOffset(B);w=Q.line,k=Q.col}else w=Ge.line,k=Ge.column,B=this.fromLineAndColumn(Ge.line,Ge.column)}else if(C)I=this.fromLineAndColumn(E,C);else{I=E;let me=this.fromOffset(I);E=me.line,C=me.col}let ee=this.origin(E,C,w,k);return ee?oe=new f(v,ee.endLine===void 0?ee.line:{column:ee.column,line:ee.line},ee.endLine===void 0?ee.column:{column:ee.endColumn,line:ee.endLine},ee.source,ee.file,P.plugin):oe=new f(v,w===void 0?E:{column:C,line:E},w===void 0?C:{column:k,line:w},this.css,this.file,P.plugin),oe.input={column:C,endColumn:k,endLine:w,endOffset:B,line:E,offset:I,source:this.css},this.file&&(u&&(oe.input.url=u(this.file).toString()),oe.input.file=this.file),oe}fromLineAndColumn(v,E){return T(this)[v-1]+E-1}fromOffset(v){let E=T(this),C=E[E.length-1],P=0;if(v>=C)P=E.length-1;else{let k=E.length-2,w;for(;P<k;)if(w=P+(k-P>>1),v<E[w])k=w-1;else if(v>=E[w+1])P=w+1;else{P=w;break}}return{col:v-E[P]+1,line:P+1}}mapResolve(v){return/^\w+:\/\//.test(v)?v:s(this.map.consumer().sourceRoot||this.map.root||".",v)}origin(v,E,C,P){if(!this.map)return!1;let k=this.map.consumer(),w=k.originalPositionFor({column:E,line:v});if(!w.source)return!1;let B;typeof C=="number"&&(B=k.originalPositionFor({column:P,line:C}));let I;n(w.source)?I=u(w.source):I=new URL(w.source,this.map.consumer().sourceRoot||u(this.map.mapFile));let oe={column:w.column,endColumn:B&&B.column,endLine:B&&B.line,line:w.line,url:I.toString()};if(I.protocol==="file:")if(l)oe.file=l(I);else throw new Error("file: protocol is not available in this PostCSS build");let ee=k.sourceContentFor(w.source);return ee&&(oe.source=ee),oe}toJSON(){let v={};for(let E of["hasBOM","css","file","id"])this[E]!=null&&(v[E]=this[E]);return this.map&&(v.map={...this.map},v.map.consumerCache&&(v.map.consumerCache=void 0)),v}};t.exports=S,S.default=S,d&&d.registerInput&&d.registerInput(S)}),Fg=Le((e,t)=>{var r=qo(),n=class extends r{constructor(s){super(s),this.type="atrule"}append(...s){return this.proxyOf.nodes||(this.nodes=[]),super.append(...s)}prepend(...s){return this.proxyOf.nodes||(this.nodes=[]),super.prepend(...s)}};t.exports=n,n.default=n,r.registerAtRule(n)}),Tp=Le((e,t)=>{var r=qo(),n,s,i=class extends r{constructor(o){super(o),this.type="root",this.nodes||(this.nodes=[])}normalize(o,l,u){let f=super.normalize(o);if(l){if(u==="prepend")this.nodes.length>1?l.raws.before=this.nodes[1].raws.before:delete l.raws.before;else if(this.first!==l)for(let p of f)p.raws.before=l.raws.before}return f}removeChild(o,l){let u=this.index(o);return!l&&u===0&&this.nodes.length>1&&(this.nodes[1].raws.before=this.nodes[u].raws.before),super.removeChild(o)}toResult(o={}){return new n(new s,this,o).stringify()}};i.registerLazyResult=o=>{n=o},i.registerProcessor=o=>{s=o},t.exports=i,i.default=i,r.registerRoot(i)}),D4=Le((e,t)=>{var r={comma(n){return r.split(n,[","],!0)},space(n){let s=[" ",`
|
|
107
|
-
`," "];return r.split(n,s)},split(n,s,i){let o=[],l="",u=!1,f=0,p=!1,d="",y=!1;for(let m of n)y?y=!1:m==="\\"?y=!0:p?m===d&&(p=!1):m==='"'||m==="'"?(p=!0,d=m):m==="("?f+=1:m===")"?f>0&&(f-=1):f===0&&s.includes(m)&&(u=!0),u?(l!==""&&o.push(l.trim()),l="",u=!1):l+=m;return(i||l!=="")&&o.push(l.trim()),o}};t.exports=r,r.default=r}),kg=Le((e,t)=>{var r=qo(),n=D4(),s=class extends r{get selectors(){return n.comma(this.selector)}set selectors(i){let o=this.selector?this.selector.match(/,\s*/):null,l=o?o[0]:","+this.raw("between","beforeOpen");this.selector=i.join(l)}constructor(i){super(i),this.type="rule",this.nodes||(this.nodes=[])}};t.exports=s,s.default=s,r.registerRule(s)}),wg=Le((e,t)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,n=/[\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,s=/.[\r\n"'(/\\]/,i=/[\da-f]/i;t.exports=function(o,l={}){let u=o.css.valueOf(),f=l.ignoreErrors,p,d,y,m,D,T,S,v,E,C,P=u.length,k=0,w=[],B=[];function I(){return k}function oe(Q){throw o.error("Unclosed "+Q,k)}function ee(){return B.length===0&&k>=P}function me(Q){if(B.length)return B.pop();if(k>=P)return;let we=Q?Q.ignoreUnclosed:!1;switch(p=u.charCodeAt(k),p){case 10:case 32:case 9:case 13:case 12:{m=k;do m+=1,p=u.charCodeAt(m);while(p===32||p===10||p===9||p===13||p===12);T=["space",u.slice(k,m)],k=m-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let ge=String.fromCharCode(p);T=[ge,ge,k];break}case 40:{if(C=w.length?w.pop()[1]:"",E=u.charCodeAt(k+1),C==="url"&&E!==39&&E!==34&&E!==32&&E!==10&&E!==9&&E!==12&&E!==13){m=k;do{if(S=!1,m=u.indexOf(")",m+1),m===-1)if(f||we){m=k;break}else oe("bracket");for(v=m;u.charCodeAt(v-1)===92;)v-=1,S=!S}while(S);T=["brackets",u.slice(k,m+1),k,m],k=m}else m=u.indexOf(")",k+1),d=u.slice(k,m+1),m===-1||s.test(d)?T=["(","(",k]:(T=["brackets",d,k,m],k=m);break}case 39:case 34:{D=p===39?"'":'"',m=k;do{if(S=!1,m=u.indexOf(D,m+1),m===-1)if(f||we){m=k+1;break}else oe("string");for(v=m;u.charCodeAt(v-1)===92;)v-=1,S=!S}while(S);T=["string",u.slice(k,m+1),k,m],k=m;break}case 64:{r.lastIndex=k+1,r.test(u),r.lastIndex===0?m=u.length-1:m=r.lastIndex-2,T=["at-word",u.slice(k,m+1),k,m],k=m;break}case 92:{for(m=k,y=!0;u.charCodeAt(m+1)===92;)m+=1,y=!y;if(p=u.charCodeAt(m+1),y&&p!==47&&p!==32&&p!==10&&p!==9&&p!==13&&p!==12&&(m+=1,i.test(u.charAt(m)))){for(;i.test(u.charAt(m+1));)m+=1;u.charCodeAt(m+1)===32&&(m+=1)}T=["word",u.slice(k,m+1),k,m],k=m;break}default:{p===47&&u.charCodeAt(k+1)===42?(m=u.indexOf("*/",k+2)+1,m===0&&(f||we?m=u.length:oe("comment")),T=["comment",u.slice(k,m+1),k,m],k=m):(n.lastIndex=k+1,n.test(u),n.lastIndex===0?m=u.length-1:m=n.lastIndex-2,T=["word",u.slice(k,m+1),k,m],w.push(T),k=m);break}}return k++,T}function Ge(Q){B.push(Q)}return{back:Ge,endOfFile:ee,nextToken:me,position:I}}}),Pg=Le((e,t)=>{var r=Fg(),n=Dp(),s=vm(),i=Tp(),o=kg(),l=wg(),u={empty:!0,space:!0};function f(d){for(let y=d.length-1;y>=0;y--){let m=d[y],D=m[3]||m[2];if(D)return D}}var p=class{constructor(d){this.input=d,this.root=new i,this.current=this.root,this.spaces="",this.semicolon=!1,this.createTokenizer(),this.root.source={input:d,start:{column:1,line:1,offset:0}}}atrule(d){let y=new r;y.name=d[1].slice(1),y.name===""&&this.unnamedAtrule(y,d),this.init(y,d[2]);let m,D,T,S=!1,v=!1,E=[],C=[];for(;!this.tokenizer.endOfFile();){if(d=this.tokenizer.nextToken(),m=d[0],m==="("||m==="["?C.push(m==="("?")":"]"):m==="{"&&C.length>0?C.push("}"):m===C[C.length-1]&&C.pop(),C.length===0)if(m===";"){y.source.end=this.getPosition(d[2]),y.source.end.offset++,this.semicolon=!0;break}else if(m==="{"){v=!0;break}else if(m==="}"){if(E.length>0){for(T=E.length-1,D=E[T];D&&D[0]==="space";)D=E[--T];D&&(y.source.end=this.getPosition(D[3]||D[2]),y.source.end.offset++)}this.end(d);break}else E.push(d);else E.push(d);if(this.tokenizer.endOfFile()){S=!0;break}}y.raws.between=this.spacesAndCommentsFromEnd(E),E.length?(y.raws.afterName=this.spacesAndCommentsFromStart(E),this.raw(y,"params",E),S&&(d=E[E.length-1],y.source.end=this.getPosition(d[3]||d[2]),y.source.end.offset++,this.spaces=y.raws.between,y.raws.between="")):(y.raws.afterName="",y.params=""),v&&(y.nodes=[],this.current=y)}checkMissedSemicolon(d){let y=this.colon(d);if(y===!1)return;let m=0,D;for(let T=y-1;T>=0&&(D=d[T],!(D[0]!=="space"&&(m+=1,m===2)));T--);throw this.input.error("Missed semicolon",D[0]==="word"?D[3]+1:D[2])}colon(d){let y=0,m,D,T;for(let[S,v]of d.entries()){if(D=v,T=D[0],T==="("&&(y+=1),T===")"&&(y-=1),y===0&&T===":")if(!m)this.doubleColon(D);else{if(m[0]==="word"&&m[1]==="progid")continue;return S}m=D}return!1}comment(d){let y=new n;this.init(y,d[2]),y.source.end=this.getPosition(d[3]||d[2]),y.source.end.offset++;let m=d[1].slice(2,-2);if(/^\s*$/.test(m))y.text="",y.raws.left=m,y.raws.right="";else{let D=m.match(/^(\s*)([^]*\S)(\s*)$/);y.text=D[2],y.raws.left=D[1],y.raws.right=D[3]}}createTokenizer(){this.tokenizer=l(this.input)}decl(d,y){let m=new s;this.init(m,d[0][2]);let D=d[d.length-1];for(D[0]===";"&&(this.semicolon=!0,d.pop()),m.source.end=this.getPosition(D[3]||D[2]||f(d)),m.source.end.offset++;d[0][0]!=="word";)d.length===1&&this.unknownWord(d),m.raws.before+=d.shift()[1];for(m.source.start=this.getPosition(d[0][2]),m.prop="";d.length;){let E=d[0][0];if(E===":"||E==="space"||E==="comment")break;m.prop+=d.shift()[1]}m.raws.between="";let T;for(;d.length;)if(T=d.shift(),T[0]===":"){m.raws.between+=T[1];break}else T[0]==="word"&&/\w/.test(T[1])&&this.unknownWord([T]),m.raws.between+=T[1];(m.prop[0]==="_"||m.prop[0]==="*")&&(m.raws.before+=m.prop[0],m.prop=m.prop.slice(1));let S=[],v;for(;d.length&&(v=d[0][0],!(v!=="space"&&v!=="comment"));)S.push(d.shift());this.precheckMissedSemicolon(d);for(let E=d.length-1;E>=0;E--){if(T=d[E],T[1].toLowerCase()==="!important"){m.important=!0;let C=this.stringFrom(d,E);C=this.spacesFromEnd(d)+C,C!==" !important"&&(m.raws.important=C);break}else if(T[1].toLowerCase()==="important"){let C=d.slice(0),P="";for(let k=E;k>0;k--){let w=C[k][0];if(P.trim().startsWith("!")&&w!=="space")break;P=C.pop()[1]+P}P.trim().startsWith("!")&&(m.important=!0,m.raws.important=P,d=C)}if(T[0]!=="space"&&T[0]!=="comment")break}d.some(E=>E[0]!=="space"&&E[0]!=="comment")&&(m.raws.between+=S.map(E=>E[1]).join(""),S=[]),this.raw(m,"value",S.concat(d),y),m.value.includes(":")&&!y&&this.checkMissedSemicolon(d)}doubleColon(d){throw this.input.error("Double colon",{offset:d[2]},{offset:d[2]+d[1].length})}emptyRule(d){let y=new o;this.init(y,d[2]),y.selector="",y.raws.between="",this.current=y}end(d){this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.semicolon=!1,this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.spaces="",this.current.parent?(this.current.source.end=this.getPosition(d[2]),this.current.source.end.offset++,this.current=this.current.parent):this.unexpectedClose(d)}endFile(){this.current.parent&&this.unclosedBlock(),this.current.nodes&&this.current.nodes.length&&(this.current.raws.semicolon=this.semicolon),this.current.raws.after=(this.current.raws.after||"")+this.spaces,this.root.source.end=this.getPosition(this.tokenizer.position())}freeSemicolon(d){if(this.spaces+=d[1],this.current.nodes){let y=this.current.nodes[this.current.nodes.length-1];y&&y.type==="rule"&&!y.raws.ownSemicolon&&(y.raws.ownSemicolon=this.spaces,this.spaces="",y.source.end=this.getPosition(d[2]),y.source.end.offset+=y.raws.ownSemicolon.length)}}getPosition(d){let y=this.input.fromOffset(d);return{column:y.col,line:y.line,offset:d}}init(d,y){this.current.push(d),d.source={input:this.input,start:this.getPosition(y)},d.raws.before=this.spaces,this.spaces="",d.type!=="comment"&&(this.semicolon=!1)}other(d){let y=!1,m=null,D=!1,T=null,S=[],v=d[1].startsWith("--"),E=[],C=d;for(;C;){if(m=C[0],E.push(C),m==="("||m==="[")T||(T=C),S.push(m==="("?")":"]");else if(v&&D&&m==="{")T||(T=C),S.push("}");else if(S.length===0)if(m===";")if(D){this.decl(E,v);return}else break;else if(m==="{"){this.rule(E);return}else if(m==="}"){this.tokenizer.back(E.pop()),y=!0;break}else m===":"&&(D=!0);else m===S[S.length-1]&&(S.pop(),S.length===0&&(T=null));C=this.tokenizer.nextToken()}if(this.tokenizer.endOfFile()&&(y=!0),S.length>0&&this.unclosedBracket(T),y&&D){if(!v)for(;E.length&&(C=E[E.length-1][0],!(C!=="space"&&C!=="comment"));)this.tokenizer.back(E.pop());this.decl(E,v)}else this.unknownWord(E)}parse(){let d;for(;!this.tokenizer.endOfFile();)switch(d=this.tokenizer.nextToken(),d[0]){case"space":this.spaces+=d[1];break;case";":this.freeSemicolon(d);break;case"}":this.end(d);break;case"comment":this.comment(d);break;case"at-word":this.atrule(d);break;case"{":this.emptyRule(d);break;default:this.other(d);break}this.endFile()}precheckMissedSemicolon(){}raw(d,y,m,D){let T,S,v=m.length,E="",C=!0,P,k;for(let w=0;w<v;w+=1)T=m[w],S=T[0],S==="space"&&w===v-1&&!D?C=!1:S==="comment"?(k=m[w-1]?m[w-1][0]:"empty",P=m[w+1]?m[w+1][0]:"empty",!u[k]&&!u[P]?E.slice(-1)===","?C=!1:E+=T[1]:C=!1):E+=T[1];if(!C){let w=m.reduce((B,I)=>B+I[1],"");d.raws[y]={raw:w,value:E}}d[y]=E}rule(d){d.pop();let y=new o;this.init(y,d[0][2]),y.raws.between=this.spacesAndCommentsFromEnd(d),this.raw(y,"selector",d),this.current=y}spacesAndCommentsFromEnd(d){let y,m="";for(;d.length&&(y=d[d.length-1][0],!(y!=="space"&&y!=="comment"));)m=d.pop()[1]+m;return m}spacesAndCommentsFromStart(d){let y,m="";for(;d.length&&(y=d[0][0],!(y!=="space"&&y!=="comment"));)m+=d.shift()[1];return m}spacesFromEnd(d){let y,m="";for(;d.length&&(y=d[d.length-1][0],y==="space");)m=d.pop()[1]+m;return m}stringFrom(d,y){let m="";for(let D=y;D<d.length;D++)m+=d[D][1];return d.splice(y,d.length-y),m}unclosedBlock(){let d=this.current.source.start;throw this.input.error("Unclosed block",d.line,d.column)}unclosedBracket(d){throw this.input.error("Unclosed bracket",{offset:d[2]},{offset:d[2]+1})}unexpectedClose(d){throw this.input.error("Unexpected }",{offset:d[2]},{offset:d[2]+1})}unknownWord(d){throw this.input.error("Unknown word "+d[0][1],{offset:d[0][2]},{offset:d[0][2]+d[0][1].length})}unnamedAtrule(d,y){throw this.input.error("At-rule without name",{offset:y[2]},{offset:y[2]+y[1].length})}};t.exports=p}),Sm=Le((e,t)=>{var r=qo(),n=xp(),s=Pg();function i(o,l){let u=new n(o,l),f=new s(u);try{f.parse()}catch(p){throw p}return f.root}t.exports=i,i.default=i,r.registerParse(i)}),GL=Le((e,t)=>{var r=wg(),n=xp();t.exports={isInlineComment(s){if(s[0]==="word"&&s[1].slice(0,2)==="//"){let i=s,o=[],l,u;for(;s;){if(/\r?\n/.test(s[1])){if(/['"].*\r?\n/.test(s[1])){o.push(s[1].substring(0,s[1].indexOf(`
|
|
108
|
-
`))),u=s[1].substring(s[1].indexOf(`
|
|
109
|
-
`));let p=this.input.css.valueOf().substring(this.tokenizer.position());u+=p,l=s[3]+p.length-u.length}else this.tokenizer.back(s);break}o.push(s[1]),l=s[2],s=this.tokenizer.nextToken({ignoreUnclosed:!0})}let f=["comment",o.join(""),i[2],l];return this.inlineComment(f),u&&(this.input=new n(u),this.tokenizer=r(this.input)),!0}else if(s[1]==="/"){let i=this.tokenizer.nextToken({ignoreUnclosed:!0});if(i[0]==="comment"&&/^\/\*/.test(i[1]))return i[0]="word",i[1]=i[1].slice(1),s[1]="//",this.tokenizer.back(i),t.exports.isInlineComment.bind(this)(s)}return!1}}}),QL=Le((e,t)=>{t.exports={interpolation(r){let n=[r,this.tokenizer.nextToken()],s=["word","}"];if(n[0][1].length>1||n[1][0]!=="{")return this.tokenizer.back(n[1]),!1;for(r=this.tokenizer.nextToken();r&&s.includes(r[0]);)n.push(r),r=this.tokenizer.nextToken();let i=n.map(f=>f[1]),[o]=n,l=n.pop(),u=["word",i.join(""),o[2],l[2]];return this.tokenizer.back(r),this.tokenizer.back(u),!0}}}),YL=Le((e,t)=>{var r=/^#[0-9a-fA-F]{6}$|^#[0-9a-fA-F]{3}$/,n=/\.[0-9]/,s=i=>{let[,o]=i,[l]=o;return(l==="."||l==="#")&&r.test(o)===!1&&n.test(o)===!1};t.exports={isMixinToken:s}}),ZL=Le((e,t)=>{var r=wg(),n=/^url\((.+)\)/;t.exports=s=>{let{name:i,params:o=""}=s;if(i==="import"&&o.length){s.import=!0;let l=r({css:o});for(s.filename=o.replace(n,"$1");!l.endOfFile();){let[u,f]=l.nextToken();if(u==="word"&&f==="url")return;if(u==="brackets"){s.options=f,s.filename=o.replace(f,"").trim();break}}}}}),eO=Le((e,t)=>{var r=/:$/,n=/^:(\s+)?/;t.exports=s=>{let{name:i,params:o=""}=s;if(s.name.slice(-1)===":"){if(r.test(i)){let[l]=i.match(r);s.name=i.replace(l,""),s.raws.afterName=l+(s.raws.afterName||""),s.variable=!0,s.value=s.params}if(n.test(o)){let[l]=o.match(n);s.value=o.replace(l,""),s.raws.afterName=(s.raws.afterName||"")+l,s.variable=!0}}}}),tO=Le((e,t)=>{var r=Dp(),n=Pg(),{isInlineComment:s}=GL(),{interpolation:i}=QL(),{isMixinToken:o}=YL(),l=ZL(),u=eO(),f=/(!\s*important)$/i;t.exports=class extends n{constructor(...p){super(...p),this.lastNode=null}atrule(p){i.bind(this)(p)||(super.atrule(p),l(this.lastNode),u(this.lastNode))}decl(...p){super.decl(...p),/extend\(.+\)/i.test(this.lastNode.value)&&(this.lastNode.extend=!0)}each(p){p[0][1]=` ${p[0][1]}`;let d=p.findIndex(T=>T[0]==="("),y=p.reverse().find(T=>T[0]===")"),m=p.reverse().indexOf(y),D=p.splice(d,m).map(T=>T[1]).join("");for(let T of p.reverse())this.tokenizer.back(T);this.atrule(this.tokenizer.nextToken()),this.lastNode.function=!0,this.lastNode.params=D}init(p,d,y){super.init(p,d,y),this.lastNode=p}inlineComment(p){let d=new r,y=p[1].slice(2);if(this.init(d,p[2]),d.source.end=this.getPosition(p[3]||p[2]),d.inline=!0,d.raws.begin="//",/^\s*$/.test(y))d.text="",d.raws.left=y,d.raws.right="";else{let m=y.match(/^(\s*)([^]*[^\s])(\s*)$/);[,d.raws.left,d.text,d.raws.right]=m}}mixin(p){let[d]=p,y=d[1].slice(0,1),m=p.findIndex(E=>E[0]==="brackets"),D=p.findIndex(E=>E[0]==="("),T="";if((m<0||m>3)&&D>0){let E=p.reduce((me,Ge,Q)=>Ge[0]===")"?Q:me),C=p.slice(D,E+D).map(me=>me[1]).join(""),[P]=p.slice(D),k=[P[2],P[3]],[w]=p.slice(E,E+1),B=[w[2],w[3]],I=["brackets",C].concat(k,B),oe=p.slice(0,D),ee=p.slice(E+1);p=oe,p.push(I),p=p.concat(ee)}let S=[];for(let E of p)if((E[1]==="!"||S.length)&&S.push(E),E[1]==="important")break;if(S.length){let[E]=S,C=p.indexOf(E),P=S[S.length-1],k=[E[2],E[3]],w=[P[4],P[5]],B=["word",S.map(I=>I[1]).join("")].concat(k,w);p.splice(C,S.length,B)}let v=p.findIndex(E=>f.test(E[1]));v>0&&([,T]=p[v],p.splice(v,1));for(let E of p.reverse())this.tokenizer.back(E);this.atrule(this.tokenizer.nextToken()),this.lastNode.mixin=!0,this.lastNode.raws.identifier=y,T&&(this.lastNode.important=!0,this.lastNode.raws.important=T)}other(p){s.bind(this)(p)||super.other(p)}rule(p){let d=p[p.length-1],y=p[p.length-2];if(y[0]==="at-word"&&d[0]==="{"&&(this.tokenizer.back(d),i.bind(this)(y))){let m=this.tokenizer.nextToken();p=p.slice(0,p.length-2).concat([m]);for(let D of p.reverse())this.tokenizer.back(D);return}super.rule(p),/:extend\(.+\)/i.test(this.lastNode.selector)&&(this.lastNode.extend=!0)}unknownWord(p){let[d]=p;if(p[0][1]==="each"&&p[1][0]==="("){this.each(p);return}if(o(d)){this.mixin(p);return}super.unknownWord(p)}}}),rO=Le((e,t)=>{var r=Sg();t.exports=class extends r{atrule(n,s){if(!n.mixin&&!n.variable&&!n.function){super.atrule(n,s);return}let i=`${n.function?"":n.raws.identifier||"@"}${n.name}`,o=n.params?this.rawValue(n,"params"):"",l=n.raws.important||"";if(n.variable&&(o=n.value),typeof n.raws.afterName<"u"?i+=n.raws.afterName:o&&(i+=" "),n.nodes)this.block(n,i+o+l);else{let u=(n.raws.between||"")+l+(s?";":"");this.builder(i+o+u,n)}}comment(n){if(n.inline){let s=this.raw(n,"left","commentLeft"),i=this.raw(n,"right","commentRight");this.builder(`//${s}${n.text}${i}`,n)}else super.comment(n)}}}),nO=Le((e,t)=>{var r=xp(),n=tO(),s=rO();t.exports={parse(i,o){let l=new r(i,o),u=new n(l);return u.parse(),u.root.walk(f=>{let p=l.css.lastIndexOf(f.source.input.css);if(p===0)return;if(p+f.source.input.css.length!==l.css.length)throw new Error("Invalid state detected in postcss-less");let d=p+f.source.start.offset,y=l.fromOffset(p+f.source.start.offset);if(f.source.start={offset:d,line:y.line,column:y.col},f.source.end){let m=p+f.source.end.offset,D=l.fromOffset(p+f.source.end.offset);f.source.end={offset:m,line:D.line,column:D.col}}}),u.root},stringify(i,o){new s(o).stringify(i)},nodeToString(i){let o="";return t.exports.stringify(i,l=>{o+=l}),o}}}),Ng=Le((e,t)=>{var r=qo(),n,s,i=class extends r{constructor(o){super({type:"document",...o}),this.nodes||(this.nodes=[])}toResult(o={}){return new n(new s,this,o).stringify()}};i.registerLazyResult=o=>{n=o},i.registerProcessor=o=>{s=o},t.exports=i,i.default=i}),sO=Le((e,t)=>{var r=Fg(),n=Dp(),s=vm(),i=xp(),o=g4(),l=Tp(),u=kg();function f(p,d){if(Array.isArray(p))return p.map(D=>f(D));let{inputs:y,...m}=p;if(y){d=[];for(let D of y){let T={...D,__proto__:i.prototype};T.map&&(T.map={...T.map,__proto__:o.prototype}),d.push(T)}}if(m.nodes&&(m.nodes=p.nodes.map(D=>f(D,d))),m.source){let{inputId:D,...T}=m.source;m.source=T,D!=null&&(m.source.input=d[D])}if(m.type==="root")return new l(m);if(m.type==="decl")return new s(m);if(m.type==="rule")return new u(m);if(m.type==="comment")return new n(m);if(m.type==="atrule")return new r(m);throw new Error("Unknown node type: "+p.type)}t.exports=f,f.default=f}),x4=Le((e,t)=>{t.exports=class{generate(){}}}),T4=Le((e,t)=>{var r=class{constructor(n,s={}){if(this.type="warning",this.text=n,s.node&&s.node.source){let i=s.node.rangeBy(s);this.line=i.start.line,this.column=i.start.column,this.endLine=i.end.line,this.endColumn=i.end.column}for(let i in s)this[i]=s[i]}toString(){return this.node?this.node.error(this.text,{index:this.index,plugin:this.plugin,word:this.word}).message:this.plugin?this.plugin+": "+this.text:this.text}};t.exports=r,r.default=r}),Ig=Le((e,t)=>{var r=T4(),n=class{get content(){return this.css}constructor(s,i,o){this.processor=s,this.messages=[],this.root=i,this.opts=o,this.css="",this.map=void 0}toString(){return this.css}warn(s,i={}){i.plugin||this.lastPlugin&&this.lastPlugin.postcssPlugin&&(i.plugin=this.lastPlugin.postcssPlugin);let o=new r(s,i);return this.messages.push(o),o}warnings(){return this.messages.filter(s=>s.type==="warning")}};t.exports=n,n.default=n}),E4=Le((e,t)=>{var r={};t.exports=function(n){r[n]||(r[n]=!0,typeof console<"u"&&console.warn&&console.warn(n))}}),b4=Le((e,t)=>{var r=qo(),n=Ng(),s=x4(),i=Sm(),o=Ig(),l=Tp(),u=Cm(),{isClean:f,my:p}=_g();E4();var d={atrule:"AtRule",comment:"Comment",decl:"Declaration",document:"Document",root:"Root",rule:"Rule"},y={AtRule:!0,AtRuleExit:!0,Comment:!0,CommentExit:!0,Declaration:!0,DeclarationExit:!0,Document:!0,DocumentExit:!0,Once:!0,OnceExit:!0,postcssPlugin:!0,prepare:!0,Root:!0,RootExit:!0,Rule:!0,RuleExit:!0},m={Once:!0,postcssPlugin:!0,prepare:!0},D=0;function T(k){return typeof k=="object"&&typeof k.then=="function"}function S(k){let w=!1,B=d[k.type];return k.type==="decl"?w=k.prop.toLowerCase():k.type==="atrule"&&(w=k.name.toLowerCase()),w&&k.append?[B,B+"-"+w,D,B+"Exit",B+"Exit-"+w]:w?[B,B+"-"+w,B+"Exit",B+"Exit-"+w]:k.append?[B,D,B+"Exit"]:[B,B+"Exit"]}function v(k){let w;return k.type==="document"?w=["Document",D,"DocumentExit"]:k.type==="root"?w=["Root",D,"RootExit"]:w=S(k),{eventIndex:0,events:w,iterator:0,node:k,visitorIndex:0,visitors:[]}}function E(k){return k[f]=!1,k.nodes&&k.nodes.forEach(w=>E(w)),k}var C={},P=class C4{get content(){return this.stringify().content}get css(){return this.stringify().css}get map(){return this.stringify().map}get messages(){return this.sync().messages}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){return this.sync().root}get[Symbol.toStringTag](){return"LazyResult"}constructor(w,B,I){this.stringified=!1,this.processed=!1;let oe;if(typeof B=="object"&&B!==null&&(B.type==="root"||B.type==="document"))oe=E(B);else if(B instanceof C4||B instanceof o)oe=E(B.root),B.map&&(typeof I.map>"u"&&(I.map={}),I.map.inline||(I.map.inline=!1),I.map.prev=B.map);else{let ee=i;I.syntax&&(ee=I.syntax.parse),I.parser&&(ee=I.parser),ee.parse&&(ee=ee.parse);try{oe=ee(B,I)}catch(me){this.processed=!0,this.error=me}oe&&!oe[p]&&r.rebuild(oe)}this.result=new o(w,oe,I),this.helpers={...C,postcss:C,result:this.result},this.plugins=this.processor.plugins.map(ee=>typeof ee=="object"&&ee.prepare?{...ee,...ee.prepare(this.result)}:ee)}async(){return this.error?Promise.reject(this.error):this.processed?Promise.resolve(this.result):(this.processing||(this.processing=this.runAsync()),this.processing)}catch(w){return this.async().catch(w)}finally(w){return this.async().then(w,w)}getAsyncError(){throw new Error("Use process(css).then(cb) to work with async plugins")}handleError(w,B){let I=this.result.lastPlugin;try{B&&B.addToError(w),this.error=w,w.name==="CssSyntaxError"&&!w.plugin?(w.plugin=I.postcssPlugin,w.setMessage()):I.postcssVersion}catch(oe){console&&console.error&&console.error(oe)}return w}prepareVisitors(){this.listeners={};let w=(B,I,oe)=>{this.listeners[I]||(this.listeners[I]=[]),this.listeners[I].push([B,oe])};for(let B of this.plugins)if(typeof B=="object")for(let I in B){if(!y[I]&&/^[A-Z]/.test(I))throw new Error(`Unknown event ${I} in ${B.postcssPlugin}. Try to update PostCSS (${this.processor.version} now).`);if(!m[I])if(typeof B[I]=="object")for(let oe in B[I])oe==="*"?w(B,I,B[I][oe]):w(B,I+"-"+oe.toLowerCase(),B[I][oe]);else typeof B[I]=="function"&&w(B,I,B[I])}this.hasListener=Object.keys(this.listeners).length>0}async runAsync(){this.plugin=0;for(let w=0;w<this.plugins.length;w++){let B=this.plugins[w],I=this.runOnRoot(B);if(T(I))try{await I}catch(oe){throw this.handleError(oe)}}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[f];){w[f]=!0;let B=[v(w)];for(;B.length>0;){let I=this.visitTick(B);if(T(I))try{await I}catch(oe){let ee=B[B.length-1].node;throw this.handleError(oe,ee)}}}if(this.listeners.OnceExit)for(let[B,I]of this.listeners.OnceExit){this.result.lastPlugin=B;try{if(w.type==="document"){let oe=w.nodes.map(ee=>I(ee,this.helpers));await Promise.all(oe)}else await I(w,this.helpers)}catch(oe){throw this.handleError(oe)}}}return this.processed=!0,this.stringify()}runOnRoot(w){this.result.lastPlugin=w;try{if(typeof w=="object"&&w.Once){if(this.result.root.type==="document"){let B=this.result.root.nodes.map(I=>w.Once(I,this.helpers));return T(B[0])?Promise.all(B):B}return w.Once(this.result.root,this.helpers)}else if(typeof w=="function")return w(this.result.root,this.result)}catch(B){throw this.handleError(B)}}stringify(){if(this.error)throw this.error;if(this.stringified)return this.result;this.stringified=!0,this.sync();let w=this.result.opts,B=u;w.syntax&&(B=w.syntax.stringify),w.stringifier&&(B=w.stringifier),B.stringify&&(B=B.stringify);let I=new s(B,this.result.root,this.result.opts).generate();return this.result.css=I[0],this.result.map=I[1],this.result}sync(){if(this.error)throw this.error;if(this.processed)return this.result;if(this.processed=!0,this.processing)throw this.getAsyncError();for(let w of this.plugins){let B=this.runOnRoot(w);if(T(B))throw this.getAsyncError()}if(this.prepareVisitors(),this.hasListener){let w=this.result.root;for(;!w[f];)w[f]=!0,this.walkSync(w);if(this.listeners.OnceExit)if(w.type==="document")for(let B of w.nodes)this.visitSync(this.listeners.OnceExit,B);else this.visitSync(this.listeners.OnceExit,w)}return this.result}then(w,B){return this.async().then(w,B)}toString(){return this.css}visitSync(w,B){for(let[I,oe]of w){this.result.lastPlugin=I;let ee;try{ee=oe(B,this.helpers)}catch(me){throw this.handleError(me,B.proxyOf)}if(B.type!=="root"&&B.type!=="document"&&!B.parent)return!0;if(T(ee))throw this.getAsyncError()}}visitTick(w){let B=w[w.length-1],{node:I,visitors:oe}=B;if(I.type!=="root"&&I.type!=="document"&&!I.parent){w.pop();return}if(oe.length>0&&B.visitorIndex<oe.length){let[me,Ge]=oe[B.visitorIndex];B.visitorIndex+=1,B.visitorIndex===oe.length&&(B.visitors=[],B.visitorIndex=0),this.result.lastPlugin=me;try{return Ge(I.toProxy(),this.helpers)}catch(Q){throw this.handleError(Q,I)}}if(B.iterator!==0){let me=B.iterator,Ge;for(;Ge=I.nodes[I.indexes[me]];)if(I.indexes[me]+=1,!Ge[f]){Ge[f]=!0,w.push(v(Ge));return}B.iterator=0,delete I.indexes[me]}let ee=B.events;for(;B.eventIndex<ee.length;){let me=ee[B.eventIndex];if(B.eventIndex+=1,me===D){I.nodes&&I.nodes.length&&(I[f]=!0,B.iterator=I.getIterator());return}else if(this.listeners[me]){B.visitors=this.listeners[me];return}}w.pop()}walkSync(w){w[f]=!0;let B=S(w);for(let I of B)if(I===D)w.nodes&&w.each(oe=>{oe[f]||this.walkSync(oe)});else{let oe=this.listeners[I];if(oe&&this.visitSync(oe,w.toProxy()))return}}warnings(){return this.sync().warnings()}};P.registerPostcss=k=>{C=k},t.exports=P,P.default=P,l.registerLazyResult(P),n.registerLazyResult(P)}),iO=Le((e,t)=>{var r=x4(),n=Sm(),s=Ig(),i=Cm();E4();var o=class{get content(){return this.result.css}get css(){return this.result.css}get map(){return this.result.map}get messages(){return[]}get opts(){return this.result.opts}get processor(){return this.result.processor}get root(){if(this._root)return this._root;let l,u=n;try{l=u(this._css,this._opts)}catch(f){this.error=f}if(this.error)throw this.error;return this._root=l,l}get[Symbol.toStringTag](){return"NoWorkResult"}constructor(l,u,f){u=u.toString(),this.stringified=!1,this._processor=l,this._css=u,this._opts=f,this._map=void 0;let p,d=i;this.result=new s(this._processor,p,this._opts),this.result.css=u;let y=this;Object.defineProperty(this.result,"root",{get(){return y.root}});let m=new r(d,p,this._opts,u);if(m.isMap()){let[D,T]=m.generate();D&&(this.result.css=D),T&&(this.result.map=T)}else m.clearAnnotation(),this.result.css=m.css}async(){return this.error?Promise.reject(this.error):Promise.resolve(this.result)}catch(l){return this.async().catch(l)}finally(l){return this.async().then(l,l)}sync(){if(this.error)throw this.error;return this.result}then(l,u){return this.async().then(l,u)}toString(){return this._css}warnings(){return[]}};t.exports=o,o.default=o}),aO=Le((e,t)=>{var r=Ng(),n=b4(),s=iO(),i=Tp(),o=class{constructor(l=[]){this.version="8.5.6",this.plugins=this.normalize(l)}normalize(l){let u=[];for(let f of l)if(f.postcss===!0?f=f():f.postcss&&(f=f.postcss),typeof f=="object"&&Array.isArray(f.plugins))u=u.concat(f.plugins);else if(typeof f=="object"&&f.postcssPlugin)u.push(f);else if(typeof f=="function")u.push(f);else if(!(typeof f=="object"&&(f.parse||f.stringify)))throw new Error(f+" is not a PostCSS plugin");return u}process(l,u={}){return!this.plugins.length&&!u.parser&&!u.stringifier&&!u.syntax?new s(this,l,u):new n(this,l,u)}use(l){return this.plugins=this.plugins.concat(this.normalize([l])),this}};t.exports=o,o.default=o,i.registerProcessor(o),r.registerProcessor(o)}),Bg=Le((e,t)=>{var r=Fg(),n=Dp(),s=qo(),i=vg(),o=vm(),l=Ng(),u=sO(),f=xp(),p=b4(),d=D4(),y=Am(),m=Sm(),D=aO(),T=Ig(),S=Tp(),v=kg(),E=Cm(),C=T4();function P(...k){return k.length===1&&Array.isArray(k[0])&&(k=k[0]),new D(k)}P.plugin=function(k,w){let B=!1;function I(...ee){console&&console.warn&&!B&&(B=!0,console.warn(k+`: postcss.plugin was deprecated. Migration guide:
|
|
110
|
-
https://evilmartians.com/chronicles/postcss-8-plugin-migration`));let me=w(...ee);return me.postcssPlugin=k,me.postcssVersion=new D().version,me}let oe;return Object.defineProperty(I,"postcss",{get(){return oe||(oe=I()),oe}}),I.process=function(ee,me,Ge){return P([I(Ge)]).process(ee,me)},I},P.stringify=E,P.parse=m,P.fromJSON=u,P.list=d,P.comment=k=>new n(k),P.atRule=k=>new r(k),P.decl=k=>new o(k),P.rule=k=>new v(k),P.root=k=>new S(k),P.document=k=>new l(k),P.CssSyntaxError=i,P.Declaration=o,P.Container=s,P.Processor=D,P.Document=l,P.Comment=n,P.Warning=C,P.AtRule=r,P.Result=T,P.Input=f,P.Rule=v,P.Root=S,P.Node=y,p.registerPostcss(P),t.exports=P,P.default=P}),oO=Le((e,t)=>{var{Container:r}=Bg(),n=class extends r{constructor(s){super(s),this.type="decl",this.isNested=!0,this.nodes||(this.nodes=[])}};t.exports=n}),uO=Le((e,t)=>{var r=/[\t\n\f\r "#'()/;[\\\]{}]/g,n=/[,\t\n\f\r !"#'():;@[\\\]{}]|\/(?=\*)/g,s=/.[\r\n"'(/\\]/,i=/[\da-f]/i,o=/[\n\f\r]/g;t.exports=function(l,u={}){let f=l.css.valueOf(),p=u.ignoreErrors,d,y,m,D,T,S,v,E,C,P=f.length,k=0,w=[],B=[],I;function oe(){return k}function ee(ge){throw l.error("Unclosed "+ge,k)}function me(){return B.length===0&&k>=P}function Ge(){let ge=1,Pe=!1,Et=!1;for(;ge>0;)y+=1,f.length<=y&&ee("interpolation"),d=f.charCodeAt(y),E=f.charCodeAt(y+1),Pe?!Et&&d===Pe?(Pe=!1,Et=!1):d===92?Et=!Et:Et&&(Et=!1):d===39||d===34?Pe=d:d===125?ge-=1:d===35&&E===123&&(ge+=1)}function Q(ge){if(B.length)return B.pop();if(k>=P)return;let Pe=ge?ge.ignoreUnclosed:!1;switch(d=f.charCodeAt(k),d){case 10:case 32:case 9:case 13:case 12:{y=k;do y+=1,d=f.charCodeAt(y);while(d===32||d===10||d===9||d===13||d===12);C=["space",f.slice(k,y)],k=y-1;break}case 91:case 93:case 123:case 125:case 58:case 59:case 41:{let Et=String.fromCharCode(d);C=[Et,Et,k];break}case 44:{C=["word",",",k,k+1];break}case 40:{if(v=w.length?w.pop()[1]:"",E=f.charCodeAt(k+1),v==="url"&&E!==39&&E!==34){for(I=1,S=!1,y=k+1;y<=f.length-1;){if(E=f.charCodeAt(y),E===92)S=!S;else if(E===40)I+=1;else if(E===41&&(I-=1,I===0))break;y+=1}D=f.slice(k,y+1),C=["brackets",D,k,y],k=y}else y=f.indexOf(")",k+1),D=f.slice(k,y+1),y===-1||s.test(D)?C=["(","(",k]:(C=["brackets",D,k,y],k=y);break}case 39:case 34:{for(m=d,y=k,S=!1;y<P&&(y++,y===P&&ee("string"),d=f.charCodeAt(y),E=f.charCodeAt(y+1),!(!S&&d===m));)d===92?S=!S:S?S=!1:d===35&&E===123&&Ge();C=["string",f.slice(k,y+1),k,y],k=y;break}case 64:{r.lastIndex=k+1,r.test(f),r.lastIndex===0?y=f.length-1:y=r.lastIndex-2,C=["at-word",f.slice(k,y+1),k,y],k=y;break}case 92:{for(y=k,T=!0;f.charCodeAt(y+1)===92;)y+=1,T=!T;if(d=f.charCodeAt(y+1),T&&d!==47&&d!==32&&d!==10&&d!==9&&d!==13&&d!==12&&(y+=1,i.test(f.charAt(y)))){for(;i.test(f.charAt(y+1));)y+=1;f.charCodeAt(y+1)===32&&(y+=1)}C=["word",f.slice(k,y+1),k,y],k=y;break}default:E=f.charCodeAt(k+1),d===35&&E===123?(y=k,Ge(),D=f.slice(k,y+1),C=["word",D,k,y],k=y):d===47&&E===42?(y=f.indexOf("*/",k+2)+1,y===0&&(p||Pe?y=f.length:ee("comment")),C=["comment",f.slice(k,y+1),k,y],k=y):d===47&&E===47?(o.lastIndex=k+1,o.test(f),o.lastIndex===0?y=f.length-1:y=o.lastIndex-2,D=f.slice(k,y+1),C=["comment",D,k,y,"inline"],k=y):(n.lastIndex=k+1,n.test(f),n.lastIndex===0?y=f.length-1:y=n.lastIndex-2,C=["word",f.slice(k,y+1),k,y],w.push(C),k=y);break}return k++,C}function we(ge){B.push(ge)}return{back:we,endOfFile:me,nextToken:Q,position:oe}}}),lO=Le((e,t)=>{var{Comment:r}=Bg(),n=Pg(),s=oO(),i=uO(),o=class extends n{atrule(l){let u=l[1],f=l;for(;!this.tokenizer.endOfFile();){let p=this.tokenizer.nextToken();if(p[0]==="word"&&p[2]===f[3]+1)u+=p[1],f=p;else{this.tokenizer.back(p);break}}super.atrule(["at-word",u,l[2],f[3]])}comment(l){if(l[4]==="inline"){let u=new r;this.init(u,l[2]),u.raws.inline=!0;let f=this.input.fromOffset(l[3]);u.source.end={column:f.col,line:f.line,offset:l[3]+1};let p=l[1].slice(2);if(/^\s*$/.test(p))u.text="",u.raws.left=p,u.raws.right="";else{let d=p.match(/^(\s*)([^]*\S)(\s*)$/),y=d[2].replace(/(\*\/|\/\*)/g,"*//*");u.text=y,u.raws.left=d[1],u.raws.right=d[3],u.raws.text=d[2]}}else super.comment(l)}createTokenizer(){this.tokenizer=i(this.input)}raw(l,u,f,p){if(super.raw(l,u,f,p),l.raws[u]){let d=l.raws[u].raw;l.raws[u].raw=f.reduce((y,m)=>{if(m[0]==="comment"&&m[4]==="inline"){let D=m[1].slice(2).replace(/(\*\/|\/\*)/g,"*//*");return y+"/*"+D+"*/"}else return y+m[1]},""),d!==l.raws[u].raw&&(l.raws[u].scss=d)}}rule(l){let u=!1,f=0,p="";for(let d of l)if(u)d[0]!=="comment"&&d[0]!=="{"&&(p+=d[1]);else{if(d[0]==="space"&&d[1].includes(`
|
|
111
|
-
`))break;d[0]==="("?f+=1:d[0]===")"?f-=1:f===0&&d[0]===":"&&(u=!0)}if(!u||p.trim()===""||/^[#:A-Za-z-]/.test(p))super.rule(l);else{l.pop();let d=new s;this.init(d,l[0][2]);let y;for(let D=l.length-1;D>=0;D--)if(l[D][0]!=="space"){y=l[D];break}if(y[3]){let D=this.input.fromOffset(y[3]);d.source.end={column:D.col,line:D.line,offset:y[3]+1}}else{let D=this.input.fromOffset(y[2]);d.source.end={column:D.col,line:D.line,offset:y[2]+1}}for(;l[0][0]!=="word";)d.raws.before+=l.shift()[1];if(l[0][2]){let D=this.input.fromOffset(l[0][2]);d.source.start={column:D.col,line:D.line,offset:l[0][2]}}for(d.prop="";l.length;){let D=l[0][0];if(D===":"||D==="space"||D==="comment")break;d.prop+=l.shift()[1]}d.raws.between="";let m;for(;l.length;)if(m=l.shift(),m[0]===":"){d.raws.between+=m[1];break}else d.raws.between+=m[1];(d.prop[0]==="_"||d.prop[0]==="*")&&(d.raws.before+=d.prop[0],d.prop=d.prop.slice(1)),d.raws.between+=this.spacesAndCommentsFromStart(l),this.precheckMissedSemicolon(l);for(let D=l.length-1;D>0;D--){if(m=l[D],m[1]==="!important"){d.important=!0;let T=this.stringFrom(l,D);T=this.spacesFromEnd(l)+T,T!==" !important"&&(d.raws.important=T);break}else if(m[1]==="important"){let T=l.slice(0),S="";for(let v=D;v>0;v--){let E=T[v][0];if(S.trim().indexOf("!")===0&&E!=="space")break;S=T.pop()[1]+S}S.trim().indexOf("!")===0&&(d.important=!0,d.raws.important=S,l=T)}if(m[0]!=="space"&&m[0]!=="comment")break}this.raw(d,"value",l),d.value.includes(":")&&this.checkMissedSemicolon(l),this.current=d}}};t.exports=o}),cO=Le((e,t)=>{var{Input:r}=Bg(),n=lO();t.exports=function(s,i){let o=new r(s,i),l=new n(o);return l.parse(),l.root}}),A4=Le(e=>{Object.defineProperty(e,"__esModule",{value:!0});function t(r){this.after=r.after,this.before=r.before,this.type=r.type,this.value=r.value,this.sourceIndex=r.sourceIndex}e.default=t}),v4=Le(e=>{Object.defineProperty(e,"__esModule",{value:!0});var t=A4(),r=n(t);function n(i){return i&&i.__esModule?i:{default:i}}function s(i){var o=this;this.constructor(i),this.nodes=i.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(l){l.parent=o})}s.prototype=Object.create(r.default.prototype),s.constructor=r.default,s.prototype.walk=function(i,o){for(var l=typeof i=="string"||i instanceof RegExp,u=l?o:i,f=typeof i=="string"?new RegExp(i):i,p=0;p<this.nodes.length;p++){var d=this.nodes[p],y=l?f.test(d.type):!0;if(y&&u&&u(d,p,this.nodes)===!1||d.nodes&&d.walk(i,o)===!1)return!1}return!0},s.prototype.each=function(){for(var i=arguments.length<=0||arguments[0]===void 0?function(){}:arguments[0],o=0;o<this.nodes.length;o++){var l=this.nodes[o];if(i(l,o,this.nodes)===!1)return!1}return!0},e.default=s}),pO=Le(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.parseMediaFeature=o,e.parseMediaQuery=l,e.parseMediaList=u;var t=A4(),r=i(t),n=v4(),s=i(n);function i(f){return f&&f.__esModule?f:{default:f}}function o(f){var p=arguments.length<=1||arguments[1]===void 0?0:arguments[1],d=[{mode:"normal",character:null}],y=[],m=0,D="",T=null,S=null,v=p,E=f;f[0]==="("&&f[f.length-1]===")"&&(E=f.substring(1,f.length-1),v++);for(var C=0;C<E.length;C++){var P=E[C];if((P==="'"||P==='"')&&(d[m].isCalculationEnabled===!0?(d.push({mode:"string",isCalculationEnabled:!1,character:P}),m++):d[m].mode==="string"&&d[m].character===P&&E[C-1]!=="\\"&&(d.pop(),m--)),P==="{"?(d.push({mode:"interpolation",isCalculationEnabled:!0}),m++):P==="}"&&(d.pop(),m--),d[m].mode==="normal"&&P===":"){var k=E.substring(C+1);S={type:"value",before:/^(\s*)/.exec(k)[1],after:/(\s*)$/.exec(k)[1],value:k.trim()},S.sourceIndex=S.before.length+C+1+v,T={type:"colon",sourceIndex:C+v,after:S.before,value:":"};break}D+=P}return D={type:"media-feature",before:/^(\s*)/.exec(D)[1],after:/(\s*)$/.exec(D)[1],value:D.trim()},D.sourceIndex=D.before.length+v,y.push(D),T!==null&&(T.before=D.after,y.push(T)),S!==null&&y.push(S),y}function l(f){var p=arguments.length<=1||arguments[1]===void 0?0:arguments[1],d=[],y=0,m=!1,D=void 0;function T(){return{before:"",after:"",value:""}}D=T();for(var S=0;S<f.length;S++){var v=f[S];m?(D.value+=v,(v==="{"||v==="(")&&y++,(v===")"||v==="}")&&y--):v.search(/\s/)!==-1?D.before+=v:(v==="("&&(D.type="media-feature-expression",y++),D.value=v,D.sourceIndex=p+S,m=!0),m&&y===0&&(v===")"||S===f.length-1||f[S+1].search(/\s/)!==-1)&&(["not","only","and"].indexOf(D.value)!==-1&&(D.type="keyword"),D.type==="media-feature-expression"&&(D.nodes=o(D.value,D.sourceIndex)),d.push(Array.isArray(D.nodes)?new s.default(D):new r.default(D)),D=T(),m=!1)}for(var E=0;E<d.length;E++)if(D=d[E],E>0&&(d[E-1].after=D.before),D.type===void 0){if(E>0){if(d[E-1].type==="media-feature-expression"){D.type="keyword";continue}if(d[E-1].value==="not"||d[E-1].value==="only"){D.type="media-type";continue}if(d[E-1].value==="and"){D.type="media-feature-expression";continue}d[E-1].type==="media-type"&&(d[E+1]?D.type=d[E+1].type==="media-feature-expression"?"keyword":"media-feature-expression":D.type="media-feature-expression")}if(E===0){if(!d[E+1]){D.type="media-type";continue}if(d[E+1]&&(d[E+1].type==="media-feature-expression"||d[E+1].type==="keyword")){D.type="media-type";continue}if(d[E+2]){if(d[E+2].type==="media-feature-expression"){D.type="media-type",d[E+1].type="keyword";continue}if(d[E+2].type==="keyword"){D.type="keyword",d[E+1].type="media-type";continue}}if(d[E+3]&&d[E+3].type==="media-feature-expression"){D.type="keyword",d[E+1].type="media-type",d[E+2].type="keyword";continue}}}return d}function u(f){var p=[],d=0,y=0,m=/^(\s*)url\s*\(/.exec(f);if(m!==null){for(var D=m[0].length,T=1;T>0;){var S=f[D];S==="("&&T++,S===")"&&T--,D++}p.unshift(new r.default({type:"url",value:f.substring(0,D).trim(),sourceIndex:m[1].length,before:m[1],after:/^(\s*)/.exec(f.substring(D))[1]})),d=D}for(var v=d;v<f.length;v++){var E=f[v];if(E==="("&&y++,E===")"&&y--,y===0&&E===","){var C=f.substring(d,v),P=/^(\s*)/.exec(C)[1];p.push(new s.default({type:"media-query",value:C.trim(),sourceIndex:d+P.length,nodes:l(C,d),before:P,after:/(\s*)$/.exec(C)[1]})),d=v+1}}var k=f.substring(d),w=/^(\s*)/.exec(k)[1];return p.push(new s.default({type:"media-query",value:k.trim(),sourceIndex:d+w.length,nodes:l(k,d),before:w,after:/(\s*)$/.exec(k)[1]})),p}}),dO=Le(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.default=i;var t=v4(),r=s(t),n=pO();function s(o){return o&&o.__esModule?o:{default:o}}function i(o){return new r.default({nodes:(0,n.parseMediaList)(o),type:"media-query-list",value:o.trim()})}}),S4=Le((e,t)=>{t.exports=function(r,n){if(n=typeof n=="number"?n:1/0,!n)return Array.isArray(r)?r.map(function(i){return i}):r;return s(r,1);function s(i,o){return i.reduce(function(l,u){return Array.isArray(u)&&o<n?l.concat(s(u,o+1)):l.concat(u)},[])}}}),_4=Le((e,t)=>{t.exports=function(r,n){for(var s=-1,i=[];(s=r.indexOf(n,s+1))!==-1;)i.push(s);return i}}),F4=Le((e,t)=>{function r(i,o){for(var l=1,u=i.length,f=i[0],p=i[0],d=1;d<u;++d)if(p=f,f=i[d],o(f,p)){if(d===l){l++;continue}i[l++]=f}return i.length=l,i}function n(i){for(var o=1,l=i.length,u=i[0],f=i[0],p=1;p<l;++p,f=u)if(f=u,u=i[p],u!==f){if(p===o){o++;continue}i[o++]=u}return i.length=o,i}function s(i,o,l){return i.length===0?i:o?(l||i.sort(o),r(i,o)):(l||i.sort(),n(i))}t.exports=s}),al=Le((e,t)=>{e.__esModule=!0;var r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(o){return typeof o}:function(o){return o&&typeof Symbol=="function"&&o.constructor===Symbol&&o!==Symbol.prototype?"symbol":typeof o};function n(o,l){if(!(o instanceof l))throw new TypeError("Cannot call a class as a function")}var s=function o(l,u){if((typeof l>"u"?"undefined":r(l))!=="object")return l;var f=new l.constructor;for(var p in l)if(l.hasOwnProperty(p)){var d=l[p],y=typeof d>"u"?"undefined":r(d);p==="parent"&&y==="object"?u&&(f[p]=u):d instanceof Array?f[p]=d.map(function(m){return o(m,f)}):f[p]=o(d,f)}return f},i=(function(){function o(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};n(this,o);for(var u in l)this[u]=l[u];var f=l.spaces;f=f===void 0?{}:f;var p=f.before,d=p===void 0?"":p,y=f.after,m=y===void 0?"":y;this.spaces={before:d,after:m}}return o.prototype.remove=function(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this},o.prototype.replaceWith=function(){if(this.parent){for(var l in arguments)this.parent.insertBefore(this,arguments[l]);this.remove()}return this},o.prototype.next=function(){return this.parent.at(this.parent.index(this)+1)},o.prototype.prev=function(){return this.parent.at(this.parent.index(this)-1)},o.prototype.clone=function(){var l=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{},u=s(this);for(var f in l)u[f]=l[f];return u},o.prototype.toString=function(){return[this.spaces.before,String(this.value),this.spaces.after].join("")},o})();e.default=i,t.exports=e.default}),Rn=Le(e=>{e.__esModule=!0,e.TAG="tag",e.STRING="string",e.SELECTOR="selector",e.ROOT="root",e.PSEUDO="pseudo",e.NESTING="nesting",e.ID="id",e.COMMENT="comment",e.COMBINATOR="combinator",e.CLASS="class",e.ATTRIBUTE="attribute",e.UNIVERSAL="universal"}),Lg=Le((e,t)=>{e.__esModule=!0;var r=(function(){function m(D,T){for(var S=0;S<T.length;S++){var v=T[S];v.enumerable=v.enumerable||!1,v.configurable=!0,"value"in v&&(v.writable=!0),Object.defineProperty(D,v.key,v)}}return function(D,T,S){return T&&m(D.prototype,T),S&&m(D,S),D}})(),n=al(),s=u(n),i=Rn(),o=l(i);function l(m){if(m&&m.__esModule)return m;var D={};if(m!=null)for(var T in m)Object.prototype.hasOwnProperty.call(m,T)&&(D[T]=m[T]);return D.default=m,D}function u(m){return m&&m.__esModule?m:{default:m}}function f(m,D){if(!(m instanceof D))throw new TypeError("Cannot call a class as a function")}function p(m,D){if(!m)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return D&&(typeof D=="object"||typeof D=="function")?D:m}function d(m,D){if(typeof D!="function"&&D!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof D);m.prototype=Object.create(D&&D.prototype,{constructor:{value:m,enumerable:!1,writable:!0,configurable:!0}}),D&&(Object.setPrototypeOf?Object.setPrototypeOf(m,D):m.__proto__=D)}var y=(function(m){d(D,m);function D(T){f(this,D);var S=p(this,m.call(this,T));return S.nodes||(S.nodes=[]),S}return D.prototype.append=function(T){return T.parent=this,this.nodes.push(T),this},D.prototype.prepend=function(T){return T.parent=this,this.nodes.unshift(T),this},D.prototype.at=function(T){return this.nodes[T]},D.prototype.index=function(T){return typeof T=="number"?T:this.nodes.indexOf(T)},D.prototype.removeChild=function(T){T=this.index(T),this.at(T).parent=void 0,this.nodes.splice(T,1);var S=void 0;for(var v in this.indexes)S=this.indexes[v],S>=T&&(this.indexes[v]=S-1);return this},D.prototype.removeAll=function(){for(var v=this.nodes,T=Array.isArray(v),S=0,v=T?v:v[Symbol.iterator]();;){var E;if(T){if(S>=v.length)break;E=v[S++]}else{if(S=v.next(),S.done)break;E=S.value}var C=E;C.parent=void 0}return this.nodes=[],this},D.prototype.empty=function(){return this.removeAll()},D.prototype.insertAfter=function(T,S){var v=this.index(T);this.nodes.splice(v+1,0,S);var E=void 0;for(var C in this.indexes)E=this.indexes[C],v<=E&&(this.indexes[C]=E+this.nodes.length);return this},D.prototype.insertBefore=function(T,S){var v=this.index(T);this.nodes.splice(v,0,S);var E=void 0;for(var C in this.indexes)E=this.indexes[C],v<=E&&(this.indexes[C]=E+this.nodes.length);return this},D.prototype.each=function(T){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach++;var S=this.lastEach;if(this.indexes[S]=0,!!this.length){for(var v=void 0,E=void 0;this.indexes[S]<this.length&&(v=this.indexes[S],E=T(this.at(v),v),E!==!1);)this.indexes[S]+=1;if(delete this.indexes[S],E===!1)return!1}},D.prototype.walk=function(T){return this.each(function(S,v){var E=T(S,v);if(E!==!1&&S.length&&(E=S.walk(T)),E===!1)return!1})},D.prototype.walkAttributes=function(T){var S=this;return this.walk(function(v){if(v.type===o.ATTRIBUTE)return T.call(S,v)})},D.prototype.walkClasses=function(T){var S=this;return this.walk(function(v){if(v.type===o.CLASS)return T.call(S,v)})},D.prototype.walkCombinators=function(T){var S=this;return this.walk(function(v){if(v.type===o.COMBINATOR)return T.call(S,v)})},D.prototype.walkComments=function(T){var S=this;return this.walk(function(v){if(v.type===o.COMMENT)return T.call(S,v)})},D.prototype.walkIds=function(T){var S=this;return this.walk(function(v){if(v.type===o.ID)return T.call(S,v)})},D.prototype.walkNesting=function(T){var S=this;return this.walk(function(v){if(v.type===o.NESTING)return T.call(S,v)})},D.prototype.walkPseudos=function(T){var S=this;return this.walk(function(v){if(v.type===o.PSEUDO)return T.call(S,v)})},D.prototype.walkTags=function(T){var S=this;return this.walk(function(v){if(v.type===o.TAG)return T.call(S,v)})},D.prototype.walkUniversals=function(T){var S=this;return this.walk(function(v){if(v.type===o.UNIVERSAL)return T.call(S,v)})},D.prototype.split=function(T){var S=this,v=[];return this.reduce(function(E,C,P){var k=T.call(S,C);return v.push(C),k?(E.push(v),v=[]):P===S.length-1&&E.push(v),E},[])},D.prototype.map=function(T){return this.nodes.map(T)},D.prototype.reduce=function(T,S){return this.nodes.reduce(T,S)},D.prototype.every=function(T){return this.nodes.every(T)},D.prototype.some=function(T){return this.nodes.some(T)},D.prototype.filter=function(T){return this.nodes.filter(T)},D.prototype.sort=function(T){return this.nodes.sort(T)},D.prototype.toString=function(){return this.map(String).join("")},r(D,[{key:"first",get:function(){return this.at(0)}},{key:"last",get:function(){return this.at(this.length-1)}},{key:"length",get:function(){return this.nodes.length}}]),D})(s.default);e.default=y,t.exports=e.default}),hO=Le((e,t)=>{e.__esModule=!0;var r=Lg(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.ROOT,m}return d.prototype.toString=function(){var y=this.reduce(function(m,D){var T=String(D);return T?m+T+",":""},"").slice(0,-1);return this.trailingComma?y+",":y},d})(n.default);e.default=f,t.exports=e.default}),fO=Le((e,t)=>{e.__esModule=!0;var r=Lg(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.SELECTOR,m}return d})(n.default);e.default=f,t.exports=e.default}),Ep=Le((e,t)=>{e.__esModule=!0;var r=(function(){function p(d,y){for(var m=0;m<y.length;m++){var D=y[m];D.enumerable=D.enumerable||!1,D.configurable=!0,"value"in D&&(D.writable=!0),Object.defineProperty(d,D.key,D)}}return function(d,y,m){return y&&p(d.prototype,y),m&&p(d,m),d}})(),n=al(),s=i(n);function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(){return o(this,d),l(this,p.apply(this,arguments))}return d.prototype.toString=function(){return[this.spaces.before,this.ns,String(this.value),this.spaces.after].join("")},r(d,[{key:"ns",get:function(){var y=this.namespace;return y?(typeof y=="string"?y:"")+"|":""}}]),d})(s.default);e.default=f,t.exports=e.default}),mO=Le((e,t)=>{e.__esModule=!0;var r=Ep(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.CLASS,m}return d.prototype.toString=function(){return[this.spaces.before,this.ns,"."+this.value,this.spaces.after].join("")},d})(n.default);e.default=f,t.exports=e.default}),yO=Le((e,t)=>{e.__esModule=!0;var r=al(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.COMMENT,m}return d})(n.default);e.default=f,t.exports=e.default}),gO=Le((e,t)=>{e.__esModule=!0;var r=Ep(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.ID,m}return d.prototype.toString=function(){return[this.spaces.before,this.ns,"#"+this.value,this.spaces.after].join("")},d})(n.default);e.default=f,t.exports=e.default}),DO=Le((e,t)=>{e.__esModule=!0;var r=Ep(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.TAG,m}return d})(n.default);e.default=f,t.exports=e.default}),xO=Le((e,t)=>{e.__esModule=!0;var r=al(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.STRING,m}return d})(n.default);e.default=f,t.exports=e.default}),TO=Le((e,t)=>{e.__esModule=!0;var r=Lg(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.PSEUDO,m}return d.prototype.toString=function(){var y=this.length?"("+this.map(String).join(",")+")":"";return[this.spaces.before,String(this.value),y,this.spaces.after].join("")},d})(n.default);e.default=f,t.exports=e.default}),EO=Le((e,t)=>{e.__esModule=!0;var r=Ep(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.ATTRIBUTE,m.raws={},m}return d.prototype.toString=function(){var y=[this.spaces.before,"[",this.ns,this.attribute];return this.operator&&y.push(this.operator),this.value&&y.push(this.value),this.raws.insensitive?y.push(this.raws.insensitive):this.insensitive&&y.push(" i"),y.push("]"),y.concat(this.spaces.after).join("")},d})(n.default);e.default=f,t.exports=e.default}),bO=Le((e,t)=>{e.__esModule=!0;var r=Ep(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.UNIVERSAL,m.value="*",m}return d})(n.default);e.default=f,t.exports=e.default}),CO=Le((e,t)=>{e.__esModule=!0;var r=al(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.COMBINATOR,m}return d})(n.default);e.default=f,t.exports=e.default}),AO=Le((e,t)=>{e.__esModule=!0;var r=al(),n=i(r),s=Rn();function i(p){return p&&p.__esModule?p:{default:p}}function o(p,d){if(!(p instanceof d))throw new TypeError("Cannot call a class as a function")}function l(p,d){if(!p)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return d&&(typeof d=="object"||typeof d=="function")?d:p}function u(p,d){if(typeof d!="function"&&d!==null)throw new TypeError("Super expression must either be null or a function, not "+typeof d);p.prototype=Object.create(d&&d.prototype,{constructor:{value:p,enumerable:!1,writable:!0,configurable:!0}}),d&&(Object.setPrototypeOf?Object.setPrototypeOf(p,d):p.__proto__=d)}var f=(function(p){u(d,p);function d(y){o(this,d);var m=l(this,p.call(this,y));return m.type=s.NESTING,m.value="&",m}return d})(n.default);e.default=f,t.exports=e.default}),vO=Le((e,t)=>{e.__esModule=!0,e.default=r;function r(n){return n.sort(function(s,i){return s-i})}t.exports=e.default}),SO=Le((e,t)=>{e.__esModule=!0,e.default=me;var r=39,n=34,s=92,i=47,o=10,l=32,u=12,f=9,p=13,d=43,y=62,m=126,D=124,T=44,S=40,v=41,E=91,C=93,P=59,k=42,w=58,B=38,I=64,oe=/[ \n\t\r\{\(\)'"\\;/]/g,ee=/[ \n\t\r\(\)\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g;function me(Ge){for(var Q=[],we=Ge.css.valueOf(),ge=void 0,Pe=void 0,Et=void 0,et=void 0,rr=void 0,Dt=void 0,Gt=void 0,Jt=void 0,pt=void 0,Ot=void 0,ir=void 0,Rt=we.length,ve=-1,ce=1,fe=0,Ke=function(xt,at){if(Ge.safe)we+=at,Pe=we.length-1;else throw Ge.error("Unclosed "+xt,ce,fe-ve,fe)};fe<Rt;){switch(ge=we.charCodeAt(fe),ge===o&&(ve=fe,ce+=1),ge){case o:case l:case f:case p:case u:Pe=fe;do Pe+=1,ge=we.charCodeAt(Pe),ge===o&&(ve=Pe,ce+=1);while(ge===l||ge===o||ge===f||ge===p||ge===u);Q.push(["space",we.slice(fe,Pe),ce,fe-ve,fe]),fe=Pe-1;break;case d:case y:case m:case D:Pe=fe;do Pe+=1,ge=we.charCodeAt(Pe);while(ge===d||ge===y||ge===m||ge===D);Q.push(["combinator",we.slice(fe,Pe),ce,fe-ve,fe]),fe=Pe-1;break;case k:Q.push(["*","*",ce,fe-ve,fe]);break;case B:Q.push(["&","&",ce,fe-ve,fe]);break;case T:Q.push([",",",",ce,fe-ve,fe]);break;case E:Q.push(["[","[",ce,fe-ve,fe]);break;case C:Q.push(["]","]",ce,fe-ve,fe]);break;case w:Q.push([":",":",ce,fe-ve,fe]);break;case P:Q.push([";",";",ce,fe-ve,fe]);break;case S:Q.push(["(","(",ce,fe-ve,fe]);break;case v:Q.push([")",")",ce,fe-ve,fe]);break;case r:case n:Et=ge===r?"'":'"',Pe=fe;do for(Ot=!1,Pe=we.indexOf(Et,Pe+1),Pe===-1&&Ke("quote",Et),ir=Pe;we.charCodeAt(ir-1)===s;)ir-=1,Ot=!Ot;while(Ot);Q.push(["string",we.slice(fe,Pe+1),ce,fe-ve,ce,Pe-ve,fe]),fe=Pe;break;case I:oe.lastIndex=fe+1,oe.test(we),oe.lastIndex===0?Pe=we.length-1:Pe=oe.lastIndex-2,Q.push(["at-word",we.slice(fe,Pe+1),ce,fe-ve,ce,Pe-ve,fe]),fe=Pe;break;case s:for(Pe=fe,Gt=!0;we.charCodeAt(Pe+1)===s;)Pe+=1,Gt=!Gt;ge=we.charCodeAt(Pe+1),Gt&&ge!==i&&ge!==l&&ge!==o&&ge!==f&&ge!==p&&ge!==u&&(Pe+=1),Q.push(["word",we.slice(fe,Pe+1),ce,fe-ve,ce,Pe-ve,fe]),fe=Pe;break;default:ge===i&&we.charCodeAt(fe+1)===k?(Pe=we.indexOf("*/",fe+2)+1,Pe===0&&Ke("comment","*/"),Dt=we.slice(fe,Pe+1),et=Dt.split(`
|
|
112
|
-
`),rr=et.length-1,rr>0?(Jt=ce+rr,pt=Pe-et[rr].length):(Jt=ce,pt=ve),Q.push(["comment",Dt,ce,fe-ve,Jt,Pe-pt,fe]),ve=pt,ce=Jt,fe=Pe):(ee.lastIndex=fe+1,ee.test(we),ee.lastIndex===0?Pe=we.length-1:Pe=ee.lastIndex-2,Q.push(["word",we.slice(fe,Pe+1),ce,fe-ve,ce,Pe-ve,fe]),fe=Pe);break}fe++}return Q}t.exports=e.default}),_O=Le((e,t)=>{e.__esModule=!0;var r=(function(){function ve(ce,fe){for(var Ke=0;Ke<fe.length;Ke++){var xt=fe[Ke];xt.enumerable=xt.enumerable||!1,xt.configurable=!0,"value"in xt&&(xt.writable=!0),Object.defineProperty(ce,xt.key,xt)}}return function(ce,fe,Ke){return fe&&ve(ce.prototype,fe),Ke&&ve(ce,Ke),ce}})(),n=S4(),s=Ot(n),i=_4(),o=Ot(i),l=F4(),u=Ot(l),f=hO(),p=Ot(f),d=fO(),y=Ot(d),m=mO(),D=Ot(m),T=yO(),S=Ot(T),v=gO(),E=Ot(v),C=DO(),P=Ot(C),k=xO(),w=Ot(k),B=TO(),I=Ot(B),oe=EO(),ee=Ot(oe),me=bO(),Ge=Ot(me),Q=CO(),we=Ot(Q),ge=AO(),Pe=Ot(ge),Et=vO(),et=Ot(Et),rr=SO(),Dt=Ot(rr),Gt=Rn(),Jt=pt(Gt);function pt(ve){if(ve&&ve.__esModule)return ve;var ce={};if(ve!=null)for(var fe in ve)Object.prototype.hasOwnProperty.call(ve,fe)&&(ce[fe]=ve[fe]);return ce.default=ve,ce}function Ot(ve){return ve&&ve.__esModule?ve:{default:ve}}function ir(ve,ce){if(!(ve instanceof ce))throw new TypeError("Cannot call a class as a function")}var Rt=(function(){function ve(ce){ir(this,ve),this.input=ce,this.lossy=ce.options.lossless===!1,this.position=0,this.root=new p.default;var fe=new y.default;return this.root.append(fe),this.current=fe,this.lossy?this.tokens=(0,Dt.default)({safe:ce.safe,css:ce.css.trim()}):this.tokens=(0,Dt.default)(ce),this.loop()}return ve.prototype.attribute=function(){var ce="",fe=void 0,Ke=this.currToken;for(this.position++;this.position<this.tokens.length&&this.currToken[0]!=="]";)ce+=this.tokens[this.position][1],this.position++;this.position===this.tokens.length&&!~ce.indexOf("]")&&this.error("Expected a closing square bracket.");var xt=ce.split(/((?:[*~^$|]?=))([^]*)/),at=xt[0].split(/(\|)/g),hr={operator:xt[1],value:xt[2],source:{start:{line:Ke[2],column:Ke[3]},end:{line:this.currToken[2],column:this.currToken[3]}},sourceIndex:Ke[4]};if(at.length>1?(at[0]===""&&(at[0]=!0),hr.attribute=this.parseValue(at[2]),hr.namespace=this.parseNamespace(at[0])):hr.attribute=this.parseValue(xt[0]),fe=new ee.default(hr),xt[2]){var Ut=xt[2].split(/(\s+i\s*?)$/),Er=Ut[0].trim();fe.value=this.lossy?Er:Ut[0],Ut[1]&&(fe.insensitive=!0,this.lossy||(fe.raws.insensitive=Ut[1])),fe.quoted=Er[0]==="'"||Er[0]==='"',fe.raws.unquoted=fe.quoted?Er.slice(1,-1):Er}this.newNode(fe),this.position++},ve.prototype.combinator=function(){if(this.currToken[1]==="|")return this.namespace();for(var ce=new we.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"?(ce.spaces.before=this.parseSpace(this.currToken[1]),ce.source.start.line=this.nextToken[2],ce.source.start.column=this.nextToken[3],ce.source.end.column=this.nextToken[3],ce.source.end.line=this.nextToken[2],ce.sourceIndex=this.nextToken[4]):this.prevToken&&this.prevToken[0]==="combinator"?ce.spaces.after=this.parseSpace(this.currToken[1]):this.currToken[0]==="combinator"?ce.value=this.currToken[1]:this.currToken[0]==="space"&&(ce.value=this.parseSpace(this.currToken[1]," ")),this.position++;return this.newNode(ce)},ve.prototype.comma=function(){if(this.position===this.tokens.length-1){this.root.trailingComma=!0,this.position++;return}var ce=new y.default;this.current.parent.append(ce),this.current=ce,this.position++},ve.prototype.comment=function(){var ce=new S.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(ce),this.position++},ve.prototype.error=function(ce){throw new this.input.error(ce)},ve.prototype.missingBackslash=function(){return this.error("Expected a backslash preceding the semicolon.")},ve.prototype.missingParenthesis=function(){return this.error("Expected opening parenthesis.")},ve.prototype.missingSquareBracket=function(){return this.error("Expected opening square bracket.")},ve.prototype.namespace=function(){var ce=this.prevToken&&this.prevToken[1]||!0;if(this.nextToken[0]==="word")return this.position++,this.word(ce);if(this.nextToken[0]==="*")return this.position++,this.universal(ce)},ve.prototype.nesting=function(){this.newNode(new Pe.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++},ve.prototype.parentheses=function(){var ce=this.current.last;if(ce&&ce.type===Jt.PSEUDO){var fe=new y.default,Ke=this.current;ce.append(fe),this.current=fe;var xt=1;for(this.position++;this.position<this.tokens.length&&xt;)this.currToken[0]==="("&&xt++,this.currToken[0]===")"&&xt--,xt?this.parse():(fe.parent.source.end.line=this.currToken[2],fe.parent.source.end.column=this.currToken[3],this.position++);xt&&this.error("Expected closing parenthesis."),this.current=Ke}else{var at=1;for(this.position++,ce.value+="(";this.position<this.tokens.length&&at;)this.currToken[0]==="("&&at++,this.currToken[0]===")"&&at--,ce.value+=this.parseParenthesisToken(this.currToken),this.position++;at&&this.error("Expected closing parenthesis.")}},ve.prototype.pseudo=function(){for(var ce=this,fe="",Ke=this.currToken;this.currToken&&this.currToken[0]===":";)fe+=this.currToken[1],this.position++;if(!this.currToken)return this.error("Expected pseudo-class or pseudo-element");if(this.currToken[0]==="word"){var xt=void 0;this.splitWord(!1,function(at,hr){fe+=at,xt=new I.default({value:fe,source:{start:{line:Ke[2],column:Ke[3]},end:{line:ce.currToken[4],column:ce.currToken[5]}},sourceIndex:Ke[4]}),ce.newNode(xt),hr>1&&ce.nextToken&&ce.nextToken[0]==="("&&ce.error("Misplaced parenthesis.")})}else this.error('Unexpected "'+this.currToken[0]+'" found.')},ve.prototype.space=function(){var ce=this.currToken;this.position===0||this.prevToken[0]===","||this.prevToken[0]==="("?(this.spaces=this.parseSpace(ce[1]),this.position++):this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.spaces.after=this.parseSpace(ce[1]),this.position++):this.combinator()},ve.prototype.string=function(){var ce=this.currToken;this.newNode(new w.default({value:this.currToken[1],source:{start:{line:ce[2],column:ce[3]},end:{line:ce[4],column:ce[5]}},sourceIndex:ce[6]})),this.position++},ve.prototype.universal=function(ce){var fe=this.nextToken;if(fe&&fe[1]==="|")return this.position++,this.namespace();this.newNode(new Ge.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]}),ce),this.position++},ve.prototype.splitWord=function(ce,fe){for(var Ke=this,xt=this.nextToken,at=this.currToken[1];xt&&xt[0]==="word";){this.position++;var hr=this.currToken[1];if(at+=hr,hr.lastIndexOf("\\")===hr.length-1){var Ut=this.nextToken;Ut&&Ut[0]==="space"&&(at+=this.parseSpace(Ut[1]," "),this.position++)}xt=this.nextToken}var Er=(0,o.default)(at,"."),It=(0,o.default)(at,"#"),Ar=(0,o.default)(at,"#{");Ar.length&&(It=It.filter(function(Nr){return!~Ar.indexOf(Nr)}));var br=(0,et.default)((0,u.default)((0,s.default)([[0],Er,It])));br.forEach(function(Nr,nn){var pn=br[nn+1]||at.length,Vr=at.slice(Nr,pn);if(nn===0&&fe)return fe.call(Ke,Vr,br.length);var Hr=void 0;~Er.indexOf(Nr)?Hr=new D.default({value:Vr.slice(1),source:{start:{line:Ke.currToken[2],column:Ke.currToken[3]+Nr},end:{line:Ke.currToken[4],column:Ke.currToken[3]+(pn-1)}},sourceIndex:Ke.currToken[6]+br[nn]}):~It.indexOf(Nr)?Hr=new E.default({value:Vr.slice(1),source:{start:{line:Ke.currToken[2],column:Ke.currToken[3]+Nr},end:{line:Ke.currToken[4],column:Ke.currToken[3]+(pn-1)}},sourceIndex:Ke.currToken[6]+br[nn]}):Hr=new P.default({value:Vr,source:{start:{line:Ke.currToken[2],column:Ke.currToken[3]+Nr},end:{line:Ke.currToken[4],column:Ke.currToken[3]+(pn-1)}},sourceIndex:Ke.currToken[6]+br[nn]}),Ke.newNode(Hr,ce)}),this.position++},ve.prototype.word=function(ce){var fe=this.nextToken;return fe&&fe[1]==="|"?(this.position++,this.namespace()):this.splitWord(ce)},ve.prototype.loop=function(){for(;this.position<this.tokens.length;)this.parse(!0);return this.root},ve.prototype.parse=function(ce){switch(this.currToken[0]){case"space":this.space();break;case"comment":this.comment();break;case"(":this.parentheses();break;case")":ce&&this.missingParenthesis();break;case"[":this.attribute();break;case"]":this.missingSquareBracket();break;case"at-word":case"word":this.word();break;case":":this.pseudo();break;case";":this.missingBackslash();break;case",":this.comma();break;case"*":this.universal();break;case"&":this.nesting();break;case"combinator":this.combinator();break;case"string":this.string();break}},ve.prototype.parseNamespace=function(ce){if(this.lossy&&typeof ce=="string"){var fe=ce.trim();return fe.length?fe:!0}return ce},ve.prototype.parseSpace=function(ce,fe){return this.lossy?fe||"":ce},ve.prototype.parseValue=function(ce){return this.lossy&&ce&&typeof ce=="string"?ce.trim():ce},ve.prototype.parseParenthesisToken=function(ce){return this.lossy?ce[0]==="space"?this.parseSpace(ce[1]," "):this.parseValue(ce[1]):ce[1]},ve.prototype.newNode=function(ce,fe){return fe&&(ce.namespace=this.parseNamespace(fe)),this.spaces&&(ce.spaces.before=this.spaces,this.spaces=""),this.current.append(ce)},r(ve,[{key:"currToken",get:function(){return this.tokens[this.position]}},{key:"nextToken",get:function(){return this.tokens[this.position+1]}},{key:"prevToken",get:function(){return this.tokens[this.position-1]}}]),ve})();e.default=Rt,t.exports=e.default}),FO=Le((e,t)=>{e.__esModule=!0;var r=(function(){function u(f,p){for(var d=0;d<p.length;d++){var y=p[d];y.enumerable=y.enumerable||!1,y.configurable=!0,"value"in y&&(y.writable=!0),Object.defineProperty(f,y.key,y)}}return function(f,p,d){return p&&u(f.prototype,p),d&&u(f,d),f}})(),n=_O(),s=i(n);function i(u){return u&&u.__esModule?u:{default:u}}function o(u,f){if(!(u instanceof f))throw new TypeError("Cannot call a class as a function")}var l=(function(){function u(f){return o(this,u),this.func=f||function(){},this}return u.prototype.process=function(f){var p=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},d=new s.default({css:f,error:function(y){throw new Error(y)},options:p});return this.res=d,this.func(d),this},r(u,[{key:"result",get:function(){return String(this.res)}}]),u})();e.default=l,t.exports=e.default}),di=Le((e,t)=>{var r=function(n,s){let i=new n.constructor;for(let o in n){if(!n.hasOwnProperty(o))continue;let l=n[o],u=typeof l;o==="parent"&&u==="object"?s&&(i[o]=s):o==="source"?i[o]=l:l instanceof Array?i[o]=l.map(f=>r(f,i)):o!=="before"&&o!=="after"&&o!=="between"&&o!=="semicolon"&&(u==="object"&&l!==null&&(l=r(l)),i[o]=l)}return i};t.exports=class{constructor(n){n=n||{},this.raws={before:"",after:""};for(let s in n)this[s]=n[s]}remove(){return this.parent&&this.parent.removeChild(this),this.parent=void 0,this}toString(){return[this.raws.before,String(this.value),this.raws.after].join("")}clone(n){n=n||{};let s=r(this);for(let i in n)s[i]=n[i];return s}cloneBefore(n){n=n||{};let s=this.clone(n);return this.parent.insertBefore(this,s),s}cloneAfter(n){n=n||{};let s=this.clone(n);return this.parent.insertAfter(this,s),s}replaceWith(){let n=Array.prototype.slice.call(arguments);if(this.parent){for(let s of n)this.parent.insertBefore(this,s);this.remove()}return this}moveTo(n){return this.cleanRaws(this.root()===n.root()),this.remove(),n.append(this),this}moveBefore(n){return this.cleanRaws(this.root()===n.root()),this.remove(),n.parent.insertBefore(n,this),this}moveAfter(n){return this.cleanRaws(this.root()===n.root()),this.remove(),n.parent.insertAfter(n,this),this}next(){let n=this.parent.index(this);return this.parent.nodes[n+1]}prev(){let n=this.parent.index(this);return this.parent.nodes[n-1]}toJSON(){let n={};for(let s in this){if(!this.hasOwnProperty(s)||s==="parent")continue;let i=this[s];i instanceof Array?n[s]=i.map(o=>typeof o=="object"&&o.toJSON?o.toJSON():o):typeof i=="object"&&i.toJSON?n[s]=i.toJSON():n[s]=i}return n}root(){let n=this;for(;n.parent;)n=n.parent;return n}cleanRaws(n){delete this.raws.before,delete this.raws.after,n||delete this.raws.between}positionInside(n){let s=this.toString(),i=this.source.start.column,o=this.source.start.line;for(let l=0;l<n;l++)s[l]===`
|
|
113
|
-
`?(i=1,o+=1):i+=1;return{line:o,column:i}}positionBy(n){let s=this.source.start;if(Object(n).index)s=this.positionInside(n.index);else if(Object(n).word){let i=this.toString().indexOf(n.word);i!==-1&&(s=this.positionInside(i))}return s}}}),rs=Le((e,t)=>{var r=di(),n=class extends r{constructor(s){super(s),this.nodes||(this.nodes=[])}push(s){return s.parent=this,this.nodes.push(s),this}each(s){this.lastEach||(this.lastEach=0),this.indexes||(this.indexes={}),this.lastEach+=1;let i=this.lastEach,o,l;if(this.indexes[i]=0,!!this.nodes){for(;this.indexes[i]<this.nodes.length&&(o=this.indexes[i],l=s(this.nodes[o],o),l!==!1);)this.indexes[i]+=1;return delete this.indexes[i],l}}walk(s){return this.each((i,o)=>{let l=s(i,o);return l!==!1&&i.walk&&(l=i.walk(s)),l})}walkType(s,i){if(!s||!i)throw new Error("Parameters {type} and {callback} are required.");let o=typeof s=="function";return this.walk((l,u)=>{if(o&&l instanceof s||!o&&l.type===s)return i.call(this,l,u)})}append(s){return s.parent=this,this.nodes.push(s),this}prepend(s){return s.parent=this,this.nodes.unshift(s),this}cleanRaws(s){if(super.cleanRaws(s),this.nodes)for(let i of this.nodes)i.cleanRaws(s)}insertAfter(s,i){let o=this.index(s),l;this.nodes.splice(o+1,0,i);for(let u in this.indexes)l=this.indexes[u],o<=l&&(this.indexes[u]=l+this.nodes.length);return this}insertBefore(s,i){let o=this.index(s),l;this.nodes.splice(o,0,i);for(let u in this.indexes)l=this.indexes[u],o<=l&&(this.indexes[u]=l+this.nodes.length);return this}removeChild(s){s=this.index(s),this.nodes[s].parent=void 0,this.nodes.splice(s,1);let i;for(let o in this.indexes)i=this.indexes[o],i>=s&&(this.indexes[o]=i-1);return this}removeAll(){for(let s of this.nodes)s.parent=void 0;return this.nodes=[],this}every(s){return this.nodes.every(s)}some(s){return this.nodes.some(s)}index(s){return typeof s=="number"?s:this.nodes.indexOf(s)}get first(){if(this.nodes)return this.nodes[0]}get last(){if(this.nodes)return this.nodes[this.nodes.length-1]}toString(){let s=this.nodes.map(String).join("");return this.value&&(s=this.value+s),this.raws.before&&(s=this.raws.before+s),this.raws.after&&(s+=this.raws.after),s}};n.registerWalker=s=>{let i="walk"+s.name;i.lastIndexOf("s")!==i.length-1&&(i+="s"),!n.prototype[i]&&(n.prototype[i]=function(o){return this.walkType(s,o)})},t.exports=n}),kO=Le((e,t)=>{var r=rs();t.exports=class extends r{constructor(n){super(n),this.type="root"}}}),wO=Le((e,t)=>{var r=rs();t.exports=class extends r{constructor(n){super(n),this.type="value",this.unbalanced=0}}}),PO=Le((e,t)=>{var r=rs(),n=class extends r{constructor(s){super(s),this.type="atword"}toString(){return this.quoted&&this.raws.quote,[this.raws.before,"@",String.prototype.toString.call(this.value),this.raws.after].join("")}};r.registerWalker(n),t.exports=n}),NO=Le((e,t)=>{var r=rs(),n=di(),s=class extends n{constructor(i){super(i),this.type="colon"}};r.registerWalker(s),t.exports=s}),IO=Le((e,t)=>{var r=rs(),n=di(),s=class extends n{constructor(i){super(i),this.type="comma"}};r.registerWalker(s),t.exports=s}),BO=Le((e,t)=>{var r=rs(),n=di(),s=class extends n{constructor(i){super(i),this.type="comment",this.inline=Object(i).inline||!1}toString(){return[this.raws.before,this.inline?"//":"/*",String(this.value),this.inline?"":"*/",this.raws.after].join("")}};r.registerWalker(s),t.exports=s}),LO=Le((e,t)=>{var r=rs(),n=class extends r{constructor(s){super(s),this.type="func",this.unbalanced=-1}};r.registerWalker(n),t.exports=n}),OO=Le((e,t)=>{var r=rs(),n=di(),s=class extends n{constructor(i){super(i),this.type="number",this.unit=Object(i).unit||""}toString(){return[this.raws.before,String(this.value),this.unit,this.raws.after].join("")}};r.registerWalker(s),t.exports=s}),$O=Le((e,t)=>{var r=rs(),n=di(),s=class extends n{constructor(i){super(i),this.type="operator"}};r.registerWalker(s),t.exports=s}),MO=Le((e,t)=>{var r=rs(),n=di(),s=class extends n{constructor(i){super(i),this.type="paren",this.parenType=""}};r.registerWalker(s),t.exports=s}),jO=Le((e,t)=>{var r=rs(),n=di(),s=class extends n{constructor(i){super(i),this.type="string"}toString(){let i=this.quoted?this.raws.quote:"";return[this.raws.before,i,this.value+"",i,this.raws.after].join("")}};r.registerWalker(s),t.exports=s}),JO=Le((e,t)=>{var r=rs(),n=di(),s=class extends n{constructor(i){super(i),this.type="word"}};r.registerWalker(s),t.exports=s}),RO=Le((e,t)=>{var r=rs(),n=di(),s=class extends n{constructor(i){super(i),this.type="unicode-range"}};r.registerWalker(s),t.exports=s}),UO=Le((e,t)=>{var r=class extends Error{constructor(n){super(n),this.name=this.constructor.name,this.message=n||"An error ocurred while tokzenizing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(n).stack}};t.exports=r}),qO=Le((e,t)=>{var r=/[ \n\t\r\{\(\)'"\\;,/]/g,n=/[ \n\t\r\(\)\{\}\*:;@!&'"\+\|~>,\[\]\\]|\/(?=\*)/g,s=/[ \n\t\r\(\)\{\}\*:;@!&'"\-\+\|~>,\[\]\\]|\//g,i=/^[a-z0-9]/i,o=/^[a-f0-9?\-]/i,l=UO();t.exports=function(u,f){f=f||{};let p=[],d=u.valueOf(),y=d.length,m=-1,D=1,T=0,S=0,v=null,E,C,P,k,w,B,I,oe,ee,me,Ge;function Q(we){let ge=`Unclosed ${we} at line: ${D}, column: ${T-m}, token: ${T}`;throw new l(ge)}for(;T<y;){switch(E=d.charCodeAt(T),E===10&&(m=T,D+=1),E){case 10:case 32:case 9:case 13:case 12:C=T;do C+=1,E=d.charCodeAt(C),E===10&&(m=C,D+=1);while(E===32||E===10||E===9||E===13||E===12);p.push(["space",d.slice(T,C),D,T-m,D,C-m,T]),T=C-1;break;case 58:C=T+1,p.push(["colon",d.slice(T,C),D,T-m,D,C-m,T]),T=C-1;break;case 44:C=T+1,p.push(["comma",d.slice(T,C),D,T-m,D,C-m,T]),T=C-1;break;case 123:p.push(["{","{",D,T-m,D,C-m,T]);break;case 125:p.push(["}","}",D,T-m,D,C-m,T]);break;case 40:S++,v=!v&&S===1&&p.length>0&&p[p.length-1][0]==="word"&&p[p.length-1][1]==="url",p.push(["(","(",D,T-m,D,C-m,T]);break;case 41:S--,v=v&&S>0,p.push([")",")",D,T-m,D,C-m,T]);break;case 39:case 34:P=E===39?"'":'"',C=T;do for(ee=!1,C=d.indexOf(P,C+1),C===-1&&Q("quote"),me=C;d.charCodeAt(me-1)===92;)me-=1,ee=!ee;while(ee);p.push(["string",d.slice(T,C+1),D,T-m,D,C-m,T]),T=C;break;case 64:r.lastIndex=T+1,r.test(d),r.lastIndex===0?C=d.length-1:C=r.lastIndex-2,p.push(["atword",d.slice(T,C+1),D,T-m,D,C-m,T]),T=C;break;case 92:C=T,E=d.charCodeAt(C+1),p.push(["word",d.slice(T,C+1),D,T-m,D,C-m,T]),T=C;break;case 43:case 45:case 42:if(C=T+1,Ge=d.slice(T+1,C+1),d.slice(T-1,T),E===45&&Ge.charCodeAt(0)===45){C++,p.push(["word",d.slice(T,C),D,T-m,D,C-m,T]),T=C-1;break}p.push(["operator",d.slice(T,C),D,T-m,D,C-m,T]),T=C-1;break;default:if(E===47&&(d.charCodeAt(T+1)===42||f.loose&&!v&&d.charCodeAt(T+1)===47)){if(d.charCodeAt(T+1)===42)C=d.indexOf("*/",T+2)+1,C===0&&Q("comment");else{let we=d.indexOf(`
|
|
114
|
-
`,T+2);C=we!==-1?we-1:y}B=d.slice(T,C+1),k=B.split(`
|
|
115
|
-
`),w=k.length-1,w>0?(I=D+w,oe=C-k[w].length):(I=D,oe=m),p.push(["comment",B,D,T-m,I,C-oe,T]),m=oe,D=I,T=C}else if(E===35&&!i.test(d.slice(T+1,T+2)))C=T+1,p.push(["#",d.slice(T,C),D,T-m,D,C-m,T]),T=C-1;else if((E===117||E===85)&&d.charCodeAt(T+1)===43){C=T+2;do C+=1,E=d.charCodeAt(C);while(C<y&&o.test(d.slice(C,C+1)));p.push(["unicoderange",d.slice(T,C),D,T-m,D,C-m,T]),T=C-1}else if(E===47)C=T+1,p.push(["operator",d.slice(T,C),D,T-m,D,C-m,T]),T=C-1;else{let we=n;if(E>=48&&E<=57&&(we=s),we.lastIndex=T+1,we.test(d),we.lastIndex===0?C=d.length-1:C=we.lastIndex-2,we===s||E===46){let ge=d.charCodeAt(C),Pe=d.charCodeAt(C+1),Et=d.charCodeAt(C+2);(ge===101||ge===69)&&(Pe===45||Pe===43)&&Et>=48&&Et<=57&&(s.lastIndex=C+2,s.test(d),s.lastIndex===0?C=d.length-1:C=s.lastIndex-2)}p.push(["word",d.slice(T,C+1),D,T-m,D,C-m,T]),T=C}break}T++}return p}}),KO=Le((e,t)=>{var r=class extends Error{constructor(n){super(n),this.name=this.constructor.name,this.message=n||"An error ocurred while parsing.",typeof Error.captureStackTrace=="function"?Error.captureStackTrace(this,this.constructor):this.stack=new Error(n).stack}};t.exports=r}),zO=Le((e,t)=>{var r=kO(),n=wO(),s=PO(),i=NO(),o=IO(),l=BO(),u=LO(),f=OO(),p=$O(),d=MO(),y=jO(),m=JO(),D=RO(),T=qO(),S=S4(),v=_4(),E=F4(),C=KO();function P(k){return k.sort((w,B)=>w-B)}t.exports=class{constructor(k,w){let B={loose:!1};this.cache=[],this.input=k,this.options=Object.assign({},B,w),this.position=0,this.unbalanced=0,this.root=new r;let I=new n;this.root.append(I),this.current=I,this.tokens=T(k,this.options)}parse(){return this.loop()}colon(){let k=this.currToken;this.newNode(new i({value:k[1],source:{start:{line:k[2],column:k[3]},end:{line:k[4],column:k[5]}},sourceIndex:k[6]})),this.position++}comma(){let k=this.currToken;this.newNode(new o({value:k[1],source:{start:{line:k[2],column:k[3]},end:{line:k[4],column:k[5]}},sourceIndex:k[6]})),this.position++}comment(){let k=!1,w=this.currToken[1].replace(/\/\*|\*\//g,""),B;this.options.loose&&w.startsWith("//")&&(w=w.substring(2),k=!0),B=new l({value:w,inline:k,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(B),this.position++}error(k,w){throw new C(k+` at line: ${w[2]}, column ${w[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 k=this.currToken[1],w;if(k==="+"||k==="-"){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 w=new p({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(w)}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 k=1,w=this.position+1,B=this.currToken,I;for(;w<this.tokens.length&&k;){let oe=this.tokens[w];oe[0]==="("&&k++,oe[0]===")"&&k--,w++}if(k&&this.error("Expected closing parenthesis",B),I=this.current.last,I&&I.type==="func"&&I.unbalanced<0&&(I.unbalanced=0,this.current=I),this.current.unbalanced++,this.newNode(new d({value:B[1],source:{start:{line:B[2],column:B[3]},end:{line:B[4],column:B[5]}},sourceIndex:B[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 oe=this.nextToken,ee=this.currToken[1],me={line:this.currToken[2],column:this.currToken[3]};for(;oe&&oe[0]!==")"&&this.current.unbalanced;)this.position++,ee+=this.currToken[1],oe=this.nextToken;this.position!==this.tokens.length-1&&(this.position++,this.newNode(new m({value:ee,source:{start:me,end:{line:this.currToken[4],column:this.currToken[5]}},sourceIndex:this.currToken[6]})))}}parenClose(){let k=this.currToken;this.newNode(new d({value:k[1],source:{start:{line:k[2],column:k[3]},end:{line:k[4],column:k[5]}},sourceIndex:k[6]})),this.position++,!(this.position>=this.tokens.length-1&&!this.current.unbalanced)&&(this.current.unbalanced--,this.current.unbalanced<0&&this.error("Expected opening parenthesis",k),!this.current.unbalanced&&this.cache.length&&(this.current=this.cache.pop()))}space(){let k=this.currToken;this.position===this.tokens.length-1||this.nextToken[0]===","||this.nextToken[0]===")"?(this.current.last.raws.after+=k[1],this.position++):(this.spaces=k[1],this.position++)}unicodeRange(){let k=this.currToken;this.newNode(new D({value:k[1],source:{start:{line:k[2],column:k[3]},end:{line:k[4],column:k[5]}},sourceIndex:k[6]})),this.position++}splitWord(){let k=this.nextToken,w=this.currToken[1],B=/^[\+\-]?((\d+(\.\d*)?)|(\.\d+))([eE][\+\-]?\d+)?/,I=/^(?!\#([a-z0-9]+))[\#\{\}]/gi,oe,ee;if(!I.test(w))for(;k&&k[0]==="word";){this.position++;let me=this.currToken[1];w+=me,k=this.nextToken}oe=v(w,"@"),ee=P(E(S([[0],oe]))),ee.forEach((me,Ge)=>{let Q=ee[Ge+1]||w.length,we=w.slice(me,Q),ge;if(~oe.indexOf(me))ge=new s({value:we.slice(1),source:{start:{line:this.currToken[2],column:this.currToken[3]+me},end:{line:this.currToken[4],column:this.currToken[3]+(Q-1)}},sourceIndex:this.currToken[6]+ee[Ge]});else if(B.test(this.currToken[1])){let Pe=we.replace(B,"");ge=new f({value:we.replace(Pe,""),source:{start:{line:this.currToken[2],column:this.currToken[3]+me},end:{line:this.currToken[4],column:this.currToken[3]+(Q-1)}},sourceIndex:this.currToken[6]+ee[Ge],unit:Pe})}else ge=new(k&&k[0]==="("?u:m)({value:we,source:{start:{line:this.currToken[2],column:this.currToken[3]+me},end:{line:this.currToken[4],column:this.currToken[3]+(Q-1)}},sourceIndex:this.currToken[6]+ee[Ge]}),ge.type==="word"?(ge.isHex=/^#(.+)/.test(we),ge.isColor=/^#([0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i.test(we)):this.cache.push(this.current);this.newNode(ge)}),this.position++}string(){let k=this.currToken,w=this.currToken[1],B=/^(\"|\')/,I=B.test(w),oe="",ee;I&&(oe=w.match(B)[0],w=w.slice(1,w.length-1)),ee=new y({value:w,source:{start:{line:k[2],column:k[3]},end:{line:k[4],column:k[5]}},sourceIndex:k[6],quoted:I}),ee.raws.quote=oe,this.newNode(ee),this.position++}word(){return this.splitWord()}newNode(k){return this.spaces&&(k.raws.before+=this.spaces,this.spaces=""),this.current.append(k)}get currToken(){return this.tokens[this.position]}get nextToken(){return this.tokens[this.position+1]}get prevToken(){return this.tokens[this.position-1]}}}),WO={};h4(WO,{languages:()=>rj,options:()=>ij,parsers:()=>uC,printers:()=>Jj});var k4=(e,t)=>(r,n,...s)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,s),VO=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},HO=k4("replaceAll",function(){if(typeof this=="string")return VO}),wr=HO;function XO(e){return this[e<0?this.length+e:e]}var GO=k4("at",function(){if(Array.isArray(this)||typeof this=="string")return XO}),Po=GO,QO=()=>{},YO=QO,w4="string",P4="array",N4="cursor",_m="indent",Og="align",I4="trim",Fm="group",km="fill",wm="if-break",B4="indent-if-break",$g="line-suffix",L4="line-suffix-boundary",ol="line",O4="label",Mg="break-parent",$4=new Set([N4,_m,Og,I4,Fm,km,wm,B4,$g,L4,ol,O4,Mg]);function ZO(e){if(typeof e=="string")return w4;if(Array.isArray(e))return P4;if(!e)return;let{type:t}=e;if($4.has(t))return t}var qc=ZO,e$=e=>new Intl.ListFormat("en-US",{type:"disjunction"}).format(e);function t$(e){let t=e===null?"null":typeof e;if(t!=="string"&&t!=="object")return`Unexpected doc '${t}',
|
|
116
|
-
Expected it to be 'string' or 'object'.`;if(qc(e))throw new Error("doc is valid.");let r=Object.prototype.toString.call(e);if(r!=="[object Object]")return`Unexpected doc '${r}'.`;let n=e$([...$4].map(s=>`'${s}'`));return`Unexpected doc.type '${e.type}'.
|
|
117
|
-
Expected it to be ${n}.`}var r$=class extends Error{name="InvalidDocError";constructor(e){super(t$(e)),this.doc=e}},n$=r$;function s$(e,t){if(typeof e=="string")return t(e);let r=new Map;return n(e);function n(i){if(r.has(i))return r.get(i);let o=s(i);return r.set(i,o),o}function s(i){switch(qc(i)){case P4:return t(i.map(n));case km:return t({...i,parts:i.parts.map(n)});case wm:return t({...i,breakContents:n(i.breakContents),flatContents:n(i.flatContents)});case Fm:{let{expandedStates:o,contents:l}=i;return o?(o=o.map(n),l=o[0]):l=n(l),t({...i,contents:l,expandedStates:o})}case Og:case _m:case B4:case O4:case $g:return t({...i,contents:n(i.contents)});case w4:case N4:case I4:case L4:case ol:case Mg:return t(i);default:throw new n$(i)}}}function i$(e){return e.type===ol&&!e.hard?e.soft?"":" ":e.type===wm?e.flatContents:e}function a$(e){return s$(e,i$)}var o$=YO;function Hn(e){return{type:_m,contents:e}}function u$(e,t){return{type:Og,contents:t,n:e}}function tp(e){return u$(-1,e)}var jg={type:Mg};function Nf(e){return{type:km,parts:e}}function fs(e,t={}){return o$(t.expandedStates),{type:Fm,id:t.id,contents:e,break:!!t.shouldBreak,expandedStates:t.expandedStates}}function M4(e,t="",r={}){return{type:wm,breakContents:e,flatContents:t,groupId:r.groupId}}function ba(e,t){let r=[];for(let n=0;n<t.length;n++)n!==0&&r.push(e),r.push(t[n]);return r}var ln={type:ol},hs={type:ol,soft:!0},l$={type:ol,hard:!0},Mr=[l$,jg];function c$(e){return{type:$g,contents:e}}function p$(e){return Array.isArray(e)&&e.length>0}var Pm=p$,j4=Object.freeze({character:"'",codePoint:39}),J4=Object.freeze({character:'"',codePoint:34}),d$=Object.freeze({preferred:j4,alternate:J4}),h$=Object.freeze({preferred:J4,alternate:j4});function f$(e,t){let{preferred:r,alternate:n}=t===!0||t==="'"?d$:h$,{length:s}=e,i=0,o=0;for(let l=0;l<s;l++){let u=e.charCodeAt(l);u===r.codePoint?i++:u===n.codePoint&&o++}return(i>o?n:r).character}var m$=f$,y$=/\\(["'\\])|(["'])/gu;function g$(e,t){let r=t==='"'?"'":'"',n=wr(0,e,y$,(s,i,o)=>i?i===r?r:s:o===t?"\\"+o:o);return t+n+t}var D$=g$;function x$(e,t){let r=e.slice(1,-1),n=t.parser==="json"||t.parser==="jsonc"||t.parser==="json5"&&t.quoteProps==="preserve"&&!t.singleQuote?'"':t.__isInHtmlAttribute?"'":m$(r,t.singleQuote);return e.charAt(0)===n?e:D$(r,n)}var R4=x$,T$=class extends Error{name="UnexpectedNodeError";constructor(e,t,r="type"){super(`Unexpected ${t} node ${r}: ${JSON.stringify(e[r])}.`),this.node=e}},E$=T$,U4=Symbol.for("PRETTIER_IS_FRONT_MATTER");function b$(e){return!!e?.[U4]}var L0=b$,hc=3;function C$(e){let t=e.slice(0,hc);if(t!=="---"&&t!=="+++")return;let r=e.indexOf(`
|
|
118
|
-
`,hc);if(r===-1)return;let n=e.slice(hc,r).trim(),s=e.indexOf(`
|
|
119
|
-
${t}`,r),i=n;if(i||(i=t==="+++"?"toml":"yaml"),s===-1&&t==="---"&&i==="yaml"&&(s=e.indexOf(`
|
|
120
|
-
...`,r)),s===-1)return;let o=s+1+hc,l=e.charAt(o+1);if(!/\s?/u.test(l))return;let u=e.slice(0,o),f;return{language:i,explicitLanguage:n||null,value:e.slice(r+1,s),startDelimiter:t,endDelimiter:u.slice(-hc),raw:u,start:{line:1,column:0,index:0},end:{index:u.length,get line(){return f??(f=u.split(`
|
|
121
|
-
`)),f.length},get column(){return f??(f=u.split(`
|
|
122
|
-
`)),Po(0,f,-1).length}},[U4]:!0}}function A$(e){let t=C$(e);return t?{frontMatter:t,get content(){let{raw:r}=t;return wr(0,r,/[^\n]/gu," ")+e.slice(r.length)}}:{content:e}}var Nm=A$,v$=new Set(["raw","raws","sourceIndex","source","before","after","trailingComma","spaces"]);function q4(e,t,r){if(e.type==="css-comment"&&r.type==="css-root"&&r.nodes.length>0&&((r.nodes[0]===e||L0(r.nodes[0])&&r.nodes[1]===e)&&(delete t.text,/^\*\s*@(?:format|prettier)\s*$/u.test(e.text))||r.type==="css-root"&&Po(0,r.nodes,-1)===e))return null;if(e.type==="value-root"&&delete t.text,(e.type==="media-query"||e.type==="media-query-list"||e.type==="media-feature-expression")&&delete t.value,e.type==="css-rule"&&delete t.params,(e.type==="media-feature"||e.type==="media-keyword"||e.type==="media-type"||e.type==="media-unknown"||e.type==="media-url"||e.type==="media-value"||e.type==="selector-attribute"||e.type==="selector-string"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="value-string")&&e.value&&(t.value=S$(e.value)),e.type==="selector-combinator"&&(t.value=wr(0,t.value,/\s+/gu," ")),e.type==="media-feature"&&(t.value=wr(0,t.value," ","")),(e.type==="value-word"&&(e.isColor&&e.isHex||["initial","inherit","unset","revert"].includes(e.value.toLowerCase()))||e.type==="media-feature"||e.type==="selector-root-invalid"||e.type==="selector-pseudo")&&(t.value=t.value.toLowerCase()),e.type==="css-decl"&&(t.prop=e.prop.toLowerCase()),(e.type==="css-atrule"||e.type==="css-import")&&(t.name=e.name.toLowerCase()),e.type==="value-number"&&(t.unit=e.unit.toLowerCase()),e.type==="value-unknown"&&(t.value=wr(0,t.value,/;$/gu,"")),e.type==="selector-attribute"&&(t.attribute=e.attribute.trim(),e.namespace&&typeof e.namespace=="string"&&(t.namespace=e.namespace.trim()||!0),e.value)){let{value:n}=t;/\s[a-zA-Z]$/u.test(n)&&(t.__prettier_attribute_selector_flag=Po(0,n,-1),n=n.slice(0,-1)),n=n.trim(),n=n.replace(/^(?<quote>["'])(?<value>.*?)\k<quote>$/u,"$<value>"),t.value=n,delete t.quoted}if((e.type==="media-value"||e.type==="media-type"||e.type==="value-number"||e.type==="selector-root-invalid"||e.type==="selector-class"||e.type==="selector-combinator"||e.type==="selector-tag")&&e.value&&(t.value=wr(0,t.value,/([\d+.e-]+)([a-z]*)/giu,(n,s,i)=>{let o=Number(s);return Number.isNaN(o)?n:o+i.toLowerCase()})),e.type==="selector-tag"){let n=t.value.toLowerCase();["from","to"].includes(n)&&(t.value=n)}if(e.type==="css-atrule"&&e.name.toLowerCase()==="supports"&&delete t.value,e.type==="selector-unknown"&&delete t.value,e.type==="value-comma_group"){let n=e.groups.findIndex(s=>s.type==="value-number"&&s.unit==="...");n!==-1&&(t.groups[n].unit="",t.groups.splice(n+1,0,{type:"value-word",value:"...",isColor:!1,isHex:!1}))}if(e.type==="value-comma_group"&&e.groups.some(n=>n.type==="value-atword"&&(n.value.endsWith("[")||n.value.endsWith("]"))||n.type==="value-word"&&(n.value.startsWith("]")||n.value.startsWith("["))))return{type:"value-atword",value:e.groups.map(n=>n.value).join(""),group:{open:null,close:null,groups:[],type:"value-paren_group"}}}q4.ignoredProperties=v$;function S$(e){return wr(0,wr(0,e,"'",'"'),/\\([^\da-f])/giu,"$1")}var _$=q4;function K4(){}K4.getVisitorKeys=e=>e.type==="css-root"?["frontMatter"]:[];var F$=K4,fc=null;function Kc(e){if(fc!==null&&typeof fc.property){let t=fc;return fc=Kc.prototype=null,t}return fc=Kc.prototype=e??Object.create(null),new Kc}var k$=10;for(let e=0;e<=k$;e++)Kc();function w$(e){return Kc(e)}function P$(e,t="type"){w$(e);function r(n){let s=n[t],i=e[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var N$=P$,Bt=[[],["nodes"],["group"]],I$={"css-root":["frontMatter","nodes"],"css-comment":Bt[0],"css-rule":["selector","nodes"],"css-decl":["value","selector","nodes"],"css-atrule":["selector","params","value","nodes"],"media-query-list":Bt[1],"media-query":Bt[1],"media-type":Bt[0],"media-feature-expression":Bt[1],"media-feature":Bt[0],"media-colon":Bt[0],"media-value":Bt[0],"media-keyword":Bt[0],"media-url":Bt[0],"media-unknown":Bt[0],"selector-root":Bt[1],"selector-selector":Bt[1],"selector-comment":Bt[0],"selector-string":Bt[0],"selector-tag":Bt[0],"selector-id":Bt[0],"selector-class":Bt[0],"selector-attribute":Bt[0],"selector-combinator":Bt[1],"selector-universal":Bt[0],"selector-pseudo":Bt[1],"selector-nesting":Bt[0],"selector-unknown":Bt[0],"value-value":Bt[2],"value-root":Bt[2],"value-comment":Bt[0],"value-comma_group":["groups"],"value-paren_group":["open","groups","close"],"value-func":Bt[2],"value-paren":Bt[0],"value-number":Bt[0],"value-operator":Bt[0],"value-word":Bt[0],"value-colon":Bt[0],"value-comma":Bt[0],"value-string":Bt[0],"value-atword":Bt[0],"value-unicode-range":Bt[0],"value-unknown":Bt[0]},B$=N$(I$),L$=B$;function O$(e,t){let r=0;for(let n=0;n<e.line-1;++n)r=t.indexOf(`
|
|
123
|
-
`,r)+1;return r+e.column}var z4=O$;function Jg(e){return(t,r,n)=>{let s=!!n?.backwards;if(r===!1)return!1;let{length:i}=t,o=r;for(;o>=0&&o<i;){let l=t.charAt(o);if(e instanceof RegExp){if(!e.test(l))return o}else if(!e.includes(l))return o;s?o--:o++}return o===-1||o===i?o:!1}}var W4=Jg(" "),$$=Jg(",; "),V4=Jg(/[^\n\r]/u);function H4(e,t){let{value:r}=e;return r==="-"||r==="--"||r.charAt(0)!=="-"?t:t-(r.charAt(1)==="-"?2:1)}function X4(e,t){if(typeof e.source?.start?.offset=="number")return e.source.start.offset;if(typeof e.sourceIndex=="number")return e.type==="value-word"?H4(e,e.sourceIndex):e.sourceIndex;if(e.source?.start)return z4(e.source.start,t);throw Object.assign(new Error("Can not locate node."),{node:e})}function Rg(e,t){if(e.type==="css-comment"&&e.inline)return V4(t,e.source.startOffset);if(typeof e.source?.end?.offset=="number")return e.source.end.offset;if(e.source){if(e.source.end){let r=z4(e.source.end,t);return e.type==="value-word"?H4(e,r):r}if(Pm(e.nodes))return Rg(Po(0,e.nodes,-1),t)}return null}function G4(e,t){e.source&&(e.source.startOffset=X4(e,t),e.source.endOffset=Rg(e,t));for(let r in e){let n=e[r];r==="source"||!n||typeof n!="object"||(n.type==="value-root"||n.type==="value-unknown"?Q4(n,M$(e),n.text||n.value):G4(n,t))}}function Q4(e,t,r){e.source&&(e.source.startOffset=X4(e,r)+t,e.source.endOffset=Rg(e,r)+t);for(let n in e){let s=e[n];n==="source"||!s||typeof s!="object"||Q4(s,t,r)}}function M$(e){let t=e.source.startOffset;return typeof e.prop=="string"&&(t+=e.prop.length),e.type==="css-atrule"&&typeof e.name=="string"&&(t+=1+e.name.length+e.raws.afterName.match(/^\s*:?\s*/u)[0].length),e.type!=="css-atrule"&&typeof e.raws?.between=="string"&&(t+=e.raws.between.length),t}function j$(e){let t="initial",r="initial",n,s=!1,i=[];for(let o=0;o<e.length;o++){let l=e[o];switch(t){case"initial":if(l==="'"){t="single-quotes";continue}if(l==='"'){t="double-quotes";continue}if((l==="u"||l==="U")&&e.slice(o,o+4).toLowerCase()==="url("){t="url",o+=3;continue}if(l==="*"&&e[o-1]==="/"){t="comment-block";continue}if(l==="/"&&e[o-1]==="/"){t="comment-inline",n=o-1;continue}continue;case"single-quotes":if(l==="'"&&e[o-1]!=="\\"&&(t=r,r="initial"),l===`
|
|
124
|
-
`||l==="\r")return e;continue;case"double-quotes":if(l==='"'&&e[o-1]!=="\\"&&(t=r,r="initial"),l===`
|
|
125
|
-
`||l==="\r")return e;continue;case"url":if(l===")"&&(t="initial"),l===`
|
|
126
|
-
`||l==="\r")return e;if(l==="'"){t="single-quotes",r="url";continue}if(l==='"'){t="double-quotes",r="url";continue}continue;case"comment-block":l==="/"&&e[o-1]==="*"&&(t="initial");continue;case"comment-inline":(l==='"'||l==="'"||l==="*")&&(s=!0),(l===`
|
|
127
|
-
`||l==="\r")&&(s&&i.push([n,o]),t="initial",s=!1);continue}}for(let[o,l]of i)e=e.slice(0,o)+wr(0,e.slice(o,l),/["'*]/gu," ")+e.slice(l);return e}var In=e=>e.source?.startOffset,Bn=e=>e.source?.endOffset,J$=/\*\/$/,R$=/^\/\*\*?/,Y4=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,U$=/(^|\s+)\/\/([^\n\r]*)/g,l3=/^(\r?\n)+/,q$=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,c3=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,K$=/(\r?\n|^) *\* ?/g,Z4=[];function z$(e){let t=e.match(Y4);return t?t[0].trimStart():""}function W$(e){let t=e.match(Y4)?.[0];return t==null?e:e.slice(t.length)}function V$(e){e=wr(0,e.replace(R$,"").replace(J$,""),K$,"$1");let t="";for(;t!==e;)t=e,e=wr(0,e,q$,`
|
|
128
|
-
$1 $2
|
|
129
|
-
`);e=e.replace(l3,"").trimEnd();let r=Object.create(null),n=wr(0,e,c3,"").replace(l3,"").trimEnd(),s;for(;s=c3.exec(e);){let i=wr(0,s[2],U$,"");if(typeof r[s[1]]=="string"||Array.isArray(r[s[1]])){let o=r[s[1]];r[s[1]]=[...Z4,...Array.isArray(o)?o:[o],i]}else r[s[1]]=i}return{comments:n,pragmas:r}}function H$({comments:e="",pragmas:t={}}){let r=Object.keys(t),n=r.flatMap(i=>p3(i,t[i])).map(i=>` * ${i}
|
|
130
|
-
`).join("");if(!e){if(r.length===0)return"";if(r.length===1&&!Array.isArray(t[r[0]])){let i=t[r[0]];return`/** ${p3(r[0],i)[0]} */`}}let s=e.split(`
|
|
131
|
-
`).map(i=>` * ${i}`).join(`
|
|
132
|
-
`)+`
|
|
133
|
-
`;return`/**
|
|
134
|
-
`+(e?s:"")+(e&&r.length>0?` *
|
|
135
|
-
`:"")+n+" */"}function p3(e,t){return[...Z4,...Array.isArray(t)?t:[t]].map(r=>`@${e} ${r}`.trim())}var X$=["noformat","noprettier"],G$=["format","prettier"],Q$="format";function Y$(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
136
|
-
`);return t===-1?e:e.slice(0,t)}var Z$=Y$;function Ug(e){let t=Z$(e);t&&(e=e.slice(t.length+1));let r=z$(e),{pragmas:n,comments:s}=V$(r);return{shebang:t,text:e,pragmas:n,comments:s}}function eM(e){let{pragmas:t}=Ug(e);return G$.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function tM(e){let{pragmas:t}=Ug(e);return X$.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function rM(e){let{shebang:t,text:r,pragmas:n,comments:s}=Ug(e),i=W$(r),o=H$({pragmas:{[Q$]:"",...n},comments:s.trimStart()});return(t?`${t}
|
|
137
|
-
`:"")+o+(i.startsWith(`
|
|
138
|
-
`)?`
|
|
139
|
-
`:`
|
|
140
|
-
|
|
141
|
-
`)+i}var nM=e=>eM(Nm(e).content),sM=e=>tM(Nm(e).content),iM=e=>{let{frontMatter:t,content:r}=Nm(e);return(t?t.raw+`
|
|
142
|
-
|
|
143
|
-
`:"")+rM(r)},aM=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 oM(e){return e.findAncestor(t=>t.type==="css-decl")?.prop?.toLowerCase()}var uM=new Set(["initial","inherit","unset","revert"]);function lM(e){return uM.has(e.toLowerCase())}function cM(e,t){return e.findAncestor(r=>r.type==="css-atrule")?.name?.toLowerCase().endsWith("keyframes")&&["from","to"].includes(t.toLowerCase())}function mc(e){return e.includes("$")||e.includes("@")||e.includes("#")||e.startsWith("%")||e.startsWith("--")||e.startsWith(":--")||e.includes("(")&&e.includes(")")?e:e.toLowerCase()}function If(e,t){return e.findAncestor(r=>r.type==="value-func")?.value?.toLowerCase()===t}function pM(e){return e.hasAncestor(t=>{if(t.type!=="css-rule")return!1;let r=t.raws?.selector;return r&&(r.startsWith(":import")||r.startsWith(":export"))})}function zc(e,t){let r=Array.isArray(t)?t:[t],n=e.findAncestor(s=>s.type==="css-atrule");return n&&r.includes(n.name.toLowerCase())}function dM(e){let{node:t}=e;return t.groups[0]?.value==="url"&&t.groups.length===2&&e.findAncestor(r=>r.type==="css-atrule")?.name==="import"}function hM(e){return e.type==="value-func"&&e.value.toLowerCase()==="url"}function fM(e){return e.type==="value-func"&&e.value.toLowerCase()==="var"}function mM(e){let{selector:t}=e;return t?typeof t=="string"&&/^@.+:.*$/u.test(t)||t.value&&/^@.+:.*$/u.test(t.value):!1}function yM(e){return e.type==="value-word"&&["from","through","end"].includes(e.value)}function gM(e){return e.type==="value-word"&&["and","or","not"].includes(e.value)}function DM(e){return e.type==="value-word"&&e.value==="in"}function O0(e){return e.type==="value-operator"&&e.value==="*"}function Cu(e){return e?.type==="value-operator"&&e.value==="/"}function ya(e){return e.type==="value-operator"&&e.value==="+"}function Au(e){return e.type==="value-operator"&&e.value==="-"}function xM(e){return e.type==="value-operator"&&e.value==="%"}function Uy(e){return O0(e)||Cu(e)||ya(e)||Au(e)||xM(e)}function TM(e){return e.type==="value-word"&&["==","!="].includes(e.value)}function EM(e){return e.type==="value-word"&&["<",">","<=",">="].includes(e.value)}function $0(e,t){return t.parser==="scss"&&e.type==="css-atrule"&&["if","else","for","each","while"].includes(e.name)}function d3(e){return e.raws?.params&&/^\(\s*\)$/u.test(e.raws.params)}function qy(e){return e.name.startsWith("prettier-placeholder")}function bM(e){return e.prop.startsWith("@prettier-placeholder")}function CM(e,t){return e.value==="$$"&&e.type==="value-func"&&t?.type==="value-word"&&!t.raws.before}function AM(e){return e.value?.type==="value-root"&&e.value.group?.type==="value-value"&&e.prop.toLowerCase()==="composes"}function vM(e){return e.value?.group?.group?.type==="value-paren_group"&&e.value.group.group.open!==null&&e.value.group.group.close!==null}function ha(e){return e?.raws?.before===""}function qg(e){return e.type==="value-comma_group"&&e.groups?.[1]?.type==="value-colon"}function Ky(e){return e.type==="value-paren_group"&&e.groups?.[0]&&qg(e.groups[0])}function eC(e,t){if(t.parser!=="scss")return!1;let{node:r}=e;if(r.groups.length===0)return!1;let n=e.grandparent;return!Ky(r)&&!(n&&Ky(n))?!1:!!(e.findAncestor(s=>s.type==="css-decl")?.prop?.startsWith("$")||Ky(n)||n.type==="value-func")}function pf(e){return e.type==="value-comment"&&e.inline}function zy(e){return e.type==="value-word"&&e.value==="#"}function h3(e){return e.type==="value-word"&&e.value==="{"}function Wy(e){return e.type==="value-word"&&e.value==="}"}function df(e){return["value-word","value-atword"].includes(e.type)}function M0(e){return e?.type==="value-colon"}function SM(e,t){if(!qg(t))return!1;let{groups:r}=t,n=r.indexOf(e);return n===-1?!1:M0(r[n+1])}function _M(e){return e.value&&["not","and","or"].includes(e.value.toLowerCase())}function FM(e){return e.type!=="value-func"?!1:aM.has(e.value.toLowerCase())}function yc(e){return/\/\//u.test(e.split(/[\n\r]/u).pop())}function hf(e){return e?.type==="value-atword"&&e.value.startsWith("prettier-placeholder-")}function kM(e,t){if(e.open?.value!=="("||e.close?.value!==")"||e.groups.some(r=>r.type!=="value-comma_group"))return!1;if(t.type==="value-comma_group"){let r=t.groups.indexOf(e)-1,n=t.groups[r];if(n?.type==="value-word"&&n.value==="with")return!0}return!1}function ff(e){return e.type==="value-paren_group"&&e.open?.value==="("&&e.close?.value===")"}function wM(e,t,r){let{node:n}=e,s=e.parent,i=e.grandparent,o=oM(e),l=o&&s.type==="value-value"&&(o==="grid"||o.startsWith("grid-template")),u=e.findAncestor(S=>S.type==="css-atrule"),f=u&&$0(u,t),p=n.groups.some(S=>pf(S)),d=e.map(r,"groups"),y=[""],m=If(e,"url"),D=!1,T=!1;for(let S=0;S<n.groups.length;++S){let v=n.groups[S-1],E=n.groups[S],C=n.groups[S+1],P=n.groups[S+2];if(pf(E)&&!C){y.push([y.pop(),c$([" ",d[S]])]);continue}if(y.push([y.pop(),d[S]]),m){(C&&ya(C)||ya(E))&&y.push([y.pop()," "]);continue}if(zc(e,"forward")&&E.type==="value-word"&&E.value&&v!==void 0&&v.type==="value-word"&&v.value==="as"&&C.type==="value-operator"&&C.value==="*"||zc(e,"utility")&&E.type==="value-word"&&C&&C.type==="value-operator"&&C.value==="*"||!C||E.type==="value-word"&&hf(C)&&Bn(E)===In(C))continue;if(E.type==="value-string"&&E.quoted){let ee=E.value.lastIndexOf("#{"),me=E.value.lastIndexOf("}");ee!==-1&&me!==-1?D=ee>me:ee!==-1?D=!0:me!==-1&&(D=!1)}if(D||M0(E)||M0(C)||E.type==="value-atword"&&(E.value===""||E.value.endsWith("["))||C.type==="value-word"&&C.value.startsWith("]")||E.value==="~"||t.parser==="less"&&(C?.type==="value-word"&&C.value==="["||E.type==="value-word"&&E.value==="["&&(C?.type==="value-atword"||C?.type==="value-word")||E.type==="value-word"&&E.value==="]["&&C?.type==="value-word")||E.type!=="value-string"&&E.value&&E.value.includes("\\")&&C&&C.type!=="value-comment"||v?.value&&v.value.indexOf("\\")===v.value.length-1&&E.type==="value-operator"&&E.value==="/"||E.value==="\\"||CM(E,C)||zy(E)||h3(E)||Wy(C)||h3(C)&&ha(C)||Wy(E)&&ha(C)||E.value==="--"&&zy(C))continue;let k=Uy(E),w=Uy(C);if((k&&zy(C)||w&&Wy(E))&&ha(C)||!v&&Cu(E)||If(e,"calc")&&(ya(E)||ya(C)||Au(E)||Au(C))&&ha(C))continue;let B=(ya(E)||Au(E))&&S===0&&(C.type==="value-number"||C.isHex)&&i&&FM(i)&&!ha(C);if(t.parser==="scss"&&k&&E.value==="-"&&C.type==="value-func"&&Bn(E)!==In(C)){y.push([y.pop()," "]);continue}let I=P?.type==="value-func"||P&&df(P)||E.type==="value-func"||df(E),oe=C.type==="value-func"||df(C)||v?.type==="value-func"||v&&df(v);if(!(!(O0(C)||O0(E))&&!If(e,"calc")&&!B&&(Cu(C)&&!I||Cu(E)&&!oe||ya(C)&&!I||ya(E)&&!oe||Au(C)||Au(E))&&(ha(C)||k&&(!v||v&&Uy(v))))&&!((t.parser==="scss"||t.parser==="less")&&k&&E.value==="-"&&ff(C)&&Bn(E)===In(C.open)&&C.open.value==="(")){if(pf(E)){if(s.type==="value-paren_group"){y.push(tp(Mr),"");continue}y.push(Mr,"");continue}if(f&&(TM(C)||EM(C)||gM(C)||DM(E)||yM(E))){y.push([y.pop()," "]);continue}if(u&&u.name.toLowerCase()==="namespace"){y.push([y.pop()," "]);continue}if(l){E.source&&C.source&&E.source.start.line!==C.source.start.line?(y.push(Mr,""),T=!0):y.push([y.pop()," "]);continue}if(!(o&&(o==="font"||o.startsWith("--"))&&(Cu(C)&&ha(C)&&f3(E)||Cu(E)&&ha(E)&&f3(v)))){if(w){y.push([y.pop()," "]);continue}if(C?.value!=="..."&&!(hf(E)&&hf(C)&&Bn(E)===In(C))){if(hf(E)&&ff(C)&&Bn(E)===In(C.open)){y.push(hs,"");continue}if(E.value==="with"&&ff(C)){y=[[Nf(y)," "]];continue}if(!(E.value?.endsWith("#")&&C.value==="{"&&ff(C.group))&&!(pf(C)&&!P)){if(!u&&E.type==="value-comment"&&!E.inline&&n.groups.slice(0,S).every(ee=>ee.type==="value-comment")){y.push(tp(ln),"");continue}y.push(ln,"")}}}}}return p&&y.push([y.pop(),jg]),T&&y.unshift("",Mr),f?fs(Hn(y)):dM(e)?fs(Nf(y)):fs(Hn(Nf(y)))}function f3(e){if(e?.type==="value-number")return!0;if(e?.type!=="value-func")return!1;let t=e.value.toLowerCase();return t==="var"||t==="calc"||t==="min"||t==="max"||t==="clamp"||t.startsWith("--")}var PM=wM;function NM(e){return e.length===1?e:e.toLowerCase().replace(/^([+-]?[\d.]+e)(?:\+|(-))?0*(?=\d)/u,"$1$2").replace(/^([+-]?[\d.]+)e[+-]?0+$/u,"$1").replace(/^([+-])?\./u,"$10.").replace(/(\.\d+?)0+(?=e|$)/u,"$1").replace(/\.(?=e|$)/u,"")}var IM=NM,j0=new Map([["em","em"],["rem","rem"],["ex","ex"],["rex","rex"],["cap","cap"],["rcap","rcap"],["ch","ch"],["rch","rch"],["ic","ic"],["ric","ric"],["lh","lh"],["rlh","rlh"],["vw","vw"],["svw","svw"],["lvw","lvw"],["dvw","dvw"],["vh","vh"],["svh","svh"],["lvh","lvh"],["dvh","dvh"],["vi","vi"],["svi","svi"],["lvi","lvi"],["dvi","dvi"],["vb","vb"],["svb","svb"],["lvb","lvb"],["dvb","dvb"],["vmin","vmin"],["svmin","svmin"],["lvmin","lvmin"],["dvmin","dvmin"],["vmax","vmax"],["svmax","svmax"],["lvmax","lvmax"],["dvmax","dvmax"],["cm","cm"],["mm","mm"],["q","Q"],["in","in"],["pt","pt"],["pc","pc"],["px","px"],["deg","deg"],["grad","grad"],["rad","rad"],["turn","turn"],["s","s"],["ms","ms"],["hz","Hz"],["khz","kHz"],["dpi","dpi"],["dpcm","dpcm"],["dppx","dppx"],["x","x"],["cqw","cqw"],["cqh","cqh"],["cqi","cqi"],["cqb","cqb"],["cqmin","cqmin"],["cqmax","cqmax"],["fr","fr"]]);function tC(e){let t=e.toLowerCase();return j0.has(t)?j0.get(t):e}var rC=/(["'])(?:(?!\1)[^\\]|\\.)*\1/gsu,BM=/(?:\d*\.\d+|\d+\.?)(?:e[+-]?\d+)?/giu,LM=/[a-z]+/giu,OM=/[$@]?[_a-z\u0080-\uFFFF][\w\u0080-\uFFFF-]*/giu,$M=new RegExp(rC.source+`|(${OM.source})?(${BM.source})(${LM.source})?`,"giu");function zs(e,t){return wr(0,e,rC,r=>R4(r,t))}function MM(e,t){let r=t.singleQuote?"'":'"',n="",s=e.match(/^(?<value>.+?)\s+(?<flag>[a-zA-Z])$/u);return s&&({value:e,flag:n}=s.groups),(e.includes('"')||e.includes("'")?e:r+e+r)+(n?` ${n}`:"")}function gu(e){return wr(0,e,$M,(t,r,n,s,i)=>!n&&s&&(i??(i=""),i=i.toLowerCase(),!i||i==="n"||j0.has(i))?nC(s)+(i?tC(i):""):t)}function nC(e){return IM(e).replace(/\.0(?=$|e)/u,"")}function jM(e){return e.trailingComma==="es5"||e.trailingComma==="all"}var m3=e=>e===`
|
|
144
|
-
`||e==="\r"||e==="\u2028"||e==="\u2029";function JM(e,t,r){let n=!!r?.backwards;if(t===!1)return!1;let s=e.charAt(t);if(n){if(e.charAt(t-1)==="\r"&&s===`
|
|
145
|
-
`)return t-2;if(m3(s))return t-1}else{if(s==="\r"&&e.charAt(t+1)===`
|
|
146
|
-
`)return t+2;if(m3(s))return t+1}return t}var sC=JM;function RM(e,t,r={}){let n=W4(e,r.backwards?t-1:t,r),s=sC(e,n,r);return n!==s}var iC=RM;function UM(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 qM=UM;function KM(e,t){return t===!1?!1:e.charAt(t)==="/"&&e.charAt(t+1)==="/"?V4(e,t):t}var zM=KM;function WM(e,t){let r=null,n=t;for(;n!==r;)r=n,n=$$(e,n),n=qM(e,n),n=W4(e,n);return n=zM(e,n),n=sC(e,n),n!==!1&&iC(e,n)}var aC=WM;function VM({node:e,parent:t},r){return!!(e.source&&r.originalText.slice(In(e),In(t.close)).trimEnd().endsWith(","))}function HM(e,t){return fM(e.grandparent)&&VM(e,t)?",":e.node.type!=="value-comment"&&!(e.node.type==="value-comma_group"&&e.node.groups.every(r=>r.type==="value-comment"))&&jM(t)&&e.callParent(()=>eC(e,t))?M4(","):""}function XM(e,t,r){let{node:n,parent:s}=e,i=e.map(({node:m})=>typeof m=="string"?m:r(),"groups");if(s&&hM(s)&&(n.groups.length===1||n.groups.length>0&&n.groups[0].type==="value-comma_group"&&n.groups[0].groups.length>0&&n.groups[0].groups[0].type==="value-word"&&n.groups[0].groups[0].value.startsWith("data:")))return[n.open?r("open"):"",ba(",",i),n.close?r("close"):""];if(!n.open){let m=oC(e),D=QM(ba(",",i),2),T=ba(m?Mr:ln,D);return Hn(m?[Mr,T]:fs([GM(e)?hs:"",Nf(T)]))}let o=e.map(({node:m,isLast:D,index:T})=>{let S=i[T];qg(m)&&m.type==="value-comma_group"&&m.groups&&m.groups[0].type!=="value-paren_group"&&m.groups[2]?.type==="value-paren_group"&&qc(S)===Fm&&qc(S.contents)===_m&&qc(S.contents.contents)===km&&(S=fs(tp(S)));let v=[S,D?HM(e,t):","];if(!D&&m.type==="value-comma_group"&&Pm(m.groups)){let E=Po(0,m.groups,-1);!E.source&&E.close&&(E=E.close),E.source&&aC(t.originalText,Bn(E))&&v.push(Mr)}return v},"groups"),l=SM(n,s),u=kM(n,s),f=eC(e,t),p=u||f&&!l,d=u||l,y=fs([n.open?r("open"):"",Hn([hs,ba(ln,o)]),hs,n.close?r("close"):""],{shouldBreak:p});return d?tp(y):y}function oC(e){return e.match(t=>t.type==="value-paren_group"&&!t.open&&t.groups.some(r=>r.type==="value-comma_group"),(t,r)=>r==="group"&&t.type==="value-value",(t,r)=>r==="group"&&t.type==="value-root",(t,r)=>r==="value"&&(t.type==="css-decl"&&!t.prop.startsWith("--")||t.type==="css-atrule"&&t.variable))}function GM(e){return e.match(t=>t.type==="value-paren_group"&&!t.open,(t,r)=>r==="group"&&t.type==="value-value",(t,r)=>r==="group"&&t.type==="value-root",(t,r)=>r==="value"&&t.type==="css-decl")}function QM(e,t){let r=[];for(let n=0;n<e.length;n+=t)r.push(e.slice(n,n+t));return r}function YM(e,t,r){let n=[];return e.each(()=>{let{node:s,previous:i}=e;if(i?.type==="css-comment"&&i.text.trim()==="prettier-ignore"?n.push(t.originalText.slice(In(s),Bn(s))):n.push(r()),e.isLast)return;let{next:o}=e;o.type==="css-comment"&&!iC(t.originalText,In(o),{backwards:!0})&&!L0(s)||o.type==="css-atrule"&&o.name==="else"&&s.type!=="css-comment"?n.push(" "):(n.push(t.__isHTMLStyleAttribute?ln:Mr),aC(t.originalText,Bn(s))&&!L0(s)&&n.push(Mr))},"nodes"),n}var gc=YM;function ZM(e,t,r){let{node:n}=e;switch(n.type){case"css-root":{let s=gc(e,t,r),i=n.raws.after.trim();return i.startsWith(";")&&(i=i.slice(1).trim()),[n.frontMatter?[r("frontMatter"),Mr,n.nodes.length>0?Mr:""]:"",s,i?` ${i}`:"",n.nodes.length>0?Mr:""]}case"css-comment":{let s=n.inline||n.raws.inline,i=t.originalText.slice(In(n),Bn(n));return s?i.trimEnd():i}case"css-rule":return[r("selector"),n.important?" !important":"",n.nodes?[n.selector?.type==="selector-unknown"&&yc(n.selector.value)?ln:n.selector?" ":"","{",n.nodes.length>0?Hn([Mr,gc(e,t,r)]):"",Mr,"}",mM(n)?";":""]:";"];case"css-decl":{let s=e.parent,{between:i}=n.raws,o=i.trim(),l=o===":",u=typeof n.value=="string"&&/^ *$/u.test(n.value),f=typeof n.value=="string"?n.value:r("value");return f=AM(n)?a$(f):f,!l&&yc(o)&&!e.call(()=>oC(e),"value","group","group")&&(f=Hn([Mr,tp(f)])),[wr(0,n.raws.before,/[\s;]/gu,""),s.type==="css-atrule"&&s.variable||pM(e)?n.prop:mc(n.prop),o.startsWith("//")?" ":"",o,n.extend||u?"":" ",t.parser==="less"&&n.extend&&n.selector?["extend(",r("selector"),")"]:"",f,n.raws.important?n.raws.important.replace(/\s*!\s*important/iu," !important"):n.important?" !important":"",n.raws.scssDefault?n.raws.scssDefault.replace(/\s*!default/iu," !default"):n.scssDefault?" !default":"",n.raws.scssGlobal?n.raws.scssGlobal.replace(/\s*!global/iu," !global"):n.scssGlobal?" !global":"",n.nodes?[" {",Hn([hs,gc(e,t,r)]),hs,"}"]:bM(n)&&!s.raws.semicolon&&t.originalText[Bn(n)-1]!==";"?"":t.__isHTMLStyleAttribute&&e.isLast?M4(";"):";"]}case"css-atrule":{let s=e.parent,i=qy(n)&&!s.raws.semicolon&&t.originalText[Bn(n)-1]!==";";if(t.parser==="less"){if(n.mixin)return[r("selector"),n.important?" !important":"",i?"":";"];if(n.function)return[n.name,typeof n.params=="string"?n.params:r("params"),i?"":";"];if(n.variable)return["@",n.name,": ",n.value?r("value"):"",n.raws.between.trim()?n.raws.between.trim()+" ":"",n.nodes?["{",Hn([n.nodes.length>0?hs:"",gc(e,t,r)]),hs,"}"]:"",i?"":";"]}let o=n.name==="import"&&n.params?.type==="value-unknown"&&n.params.value.endsWith(";");return["@",d3(n)||n.name.endsWith(":")||qy(n)?n.name:mc(n.name),n.params?[d3(n)?"":qy(n)?n.raws.afterName===""?"":n.name.endsWith(":")?" ":/^\s*\n\s*\n/u.test(n.raws.afterName)?[Mr,Mr]:/^\s*\n/u.test(n.raws.afterName)?Mr:" ":" ",typeof n.params=="string"?n.params:r("params")]:"",n.selector?Hn([" ",r("selector")]):"",n.value?fs([" ",r("value"),$0(n,t)?vM(n)?" ":ln:""]):n.name==="else"?" ":"",n.nodes?[$0(n,t)?"":n.selector&&!n.selector.nodes&&typeof n.selector.value=="string"&&yc(n.selector.value)||!n.selector&&typeof n.params=="string"&&yc(n.params)?ln:" ","{",Hn([n.nodes.length>0?hs:"",gc(e,t,r)]),hs,"}"]:i||o?"":";"]}case"media-query-list":{let s=[];return e.each(({node:i})=>{i.type==="media-query"&&i.value===""||s.push(r())},"nodes"),fs(Hn(ba(ln,s)))}case"media-query":return[ba(" ",e.map(r,"nodes")),e.isLast?"":","];case"media-type":return gu(zs(n.value,t));case"media-feature-expression":return n.nodes?["(",...e.map(r,"nodes"),")"]:n.value;case"media-feature":return mc(zs(wr(0,n.value,/ +/gu," "),t));case"media-colon":return[n.value," "];case"media-value":return gu(zs(n.value,t));case"media-keyword":return zs(n.value,t);case"media-url":return zs(wr(0,wr(0,n.value,/^url\(\s+/giu,"url("),/\s+\)$/gu,")"),t);case"media-unknown":return n.value;case"selector-root":return fs([zc(e,"custom-selector")?[e.findAncestor(s=>s.type==="css-atrule").customSelector,ln]:"",ba([",",zc(e,["extend","custom-selector","nest"])?ln:Mr],e.map(r,"nodes"))]);case"selector-selector":{let s=n.nodes.length>2;return fs((s?Hn:i=>i)(e.map(r,"nodes")))}case"selector-comment":return n.value;case"selector-string":return zs(n.value,t);case"selector-tag":return[n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",e.previous?.type==="selector-nesting"?n.value:gu(cM(e,n.value)?n.value.toLowerCase():n.value)];case"selector-id":return["#",n.value];case"selector-class":return[".",gu(zs(n.value,t))];case"selector-attribute":return["[",n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",n.attribute.trim(),n.operator??"",n.value?MM(zs(n.value.trim(),t),t):"",n.insensitive?" i":"","]"];case"selector-combinator":{if(n.value==="+"||n.value===">"||n.value==="~"||n.value===">>>"){let o=e.parent;return[o.type==="selector-selector"&&o.nodes[0]===n?"":ln,n.value,e.isLast?"":" "]}let s=n.value.trim().startsWith("(")?ln:"",i=gu(zs(n.value.trim(),t))||ln;return[s,i]}case"selector-universal":return[n.namespace?[n.namespace===!0?"":n.namespace.trim(),"|"]:"",n.value];case"selector-pseudo":return[mc(n.value),Pm(n.nodes)?fs(["(",Hn([hs,ba([",",ln],e.map(r,"nodes"))]),hs,")"]):""];case"selector-nesting":return n.value;case"selector-unknown":{if(e.findAncestor(o=>o.type==="css-rule")?.isSCSSNesterProperty)return gu(zs(mc(n.value),t));let s=e.parent;if(s.raws?.selector){let o=In(s),l=o+s.raws.selector.length;return t.originalText.slice(o,l).trim()}let i=e.grandparent;if(s.type==="value-paren_group"&&i?.type==="value-func"&&i.value==="selector"){let o=Bn(s.open)+1,l=In(s.close),u=t.originalText.slice(o,l).trim();return yc(u)?[jg,u]:u}return n.value}case"value-value":case"value-root":return r("group");case"value-comment":return t.originalText.slice(In(n),Bn(n));case"value-comma_group":return PM(e,t,r);case"value-paren_group":return XM(e,t,r);case"value-func":return[n.value,zc(e,"supports")&&_M(n)?" ":"",r("group")];case"value-paren":return n.value;case"value-number":return[nC(n.value),tC(n.unit)];case"value-operator":return n.value;case"value-word":return n.isColor&&n.isHex||lM(n.value)?n.value.toLowerCase():n.value;case"value-colon":{let{previous:s}=e;return fs([n.value,typeof s?.value=="string"&&s.value.endsWith("\\")||If(e,"url")?"":ln])}case"value-string":return R4(n.raws.quote+n.value+n.raws.quote,t);case"value-atword":return["@",n.value];case"value-unicode-range":return n.value;case"value-unknown":return n.value;default:throw new E$(n,"PostCSS")}}var ej={features:{experimental_frontMatterSupport:{massageAstNode:!0,embed:!0,print:!0}},print:ZM,embed:F$,insertPragma:iM,massageAstNode:_$,getVisitorKeys:L$},tj=ej,rj=[{name:"CSS",type:"markup",aceMode:"css",extensions:[".css",".wxss"],tmScope:"source.css",codemirrorMode:"css",codemirrorMimeType:"text/css",parsers:["css"],vscodeLanguageIds:["css"],linguistLanguageId:50},{name:"PostCSS",type:"markup",aceMode:"text",extensions:[".pcss",".postcss"],tmScope:"source.postcss",group:"CSS",parsers:["css"],vscodeLanguageIds:["postcss"],linguistLanguageId:262764437},{name:"Less",type:"markup",aceMode:"less",extensions:[".less"],tmScope:"source.css.less",aliases:["less-css"],codemirrorMode:"css",codemirrorMimeType:"text/x-less",parsers:["less"],vscodeLanguageIds:["less"],linguistLanguageId:198},{name:"SCSS",type:"markup",aceMode:"scss",extensions:[".scss"],tmScope:"source.css.scss",codemirrorMode:"css",codemirrorMimeType:"text/x-scss",parsers:["scss"],vscodeLanguageIds:["scss"],linguistLanguageId:329}],nj={singleQuote:{category:"Common",type:"boolean",default:!1,description:"Use single quotes instead of double quotes."}},sj={singleQuote:nj.singleQuote},ij=sj,uC={};h4(uC,{css:()=>$j,less:()=>Mj,scss:()=>jj});var aj=il(Sm()),oj=il(nO()),uj=il(cO());function lj(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var cj=lj;function pj(e){return e!==null&&typeof e=="object"}var Im=pj,dj=il(dO());function bp(e,t,r){if(Im(e)){delete e.parent;for(let n in e)bp(e[n],t,r),n==="type"&&typeof e[n]=="string"&&!e[n].startsWith(t)&&(!r||!r.test(e[n]))&&(e[n]=t+e[n])}return e}function lC(e){if(Im(e)){delete e.parent;for(let t in e)lC(e[t]);!Array.isArray(e)&&e.value&&!e.type&&(e.type="unknown")}return e}var hj=dj.default.default;function fj(e){let t;try{t=hj(e)}catch{return{type:"selector-unknown",value:e}}return bp(lC(t),"media-")}var mj=fj,yj=il(FO());function gj(e){if(/\/[/*]/u.test(wr(0,e,/"[^"]+"|'[^']+'/gu,"")))return{type:"selector-unknown",value:e.trim()};let t;try{new yj.default(r=>{t=r}).process(e)}catch{return{type:"selector-unknown",value:e}}return bp(t,"selector-")}var yo=gj,Dj=il(zO()),xj=e=>{for(;e.parent;)e=e.parent;return e},cC=xj;function Tj(e){return cC(e).text.slice(e.group.open.sourceIndex+1,e.group.close.sourceIndex).trim()}var Ej=Tj;function bj(e){if(Pm(e)){for(let t=e.length-1;t>0;t--)if(e[t].type==="word"&&e[t].value==="{"&&e[t-1].type==="word"&&e[t-1].value.endsWith("#"))return!0}return!1}var Cj=bj;function Aj(e){return e.some(t=>t.type==="string"||t.type==="func"&&!t.value.endsWith("\\"))}var vj=Aj;function Sj(e,t){return!!(t.parser==="scss"&&e?.type==="word"&&e.value.startsWith("$"))}var _j=Sj,y3=e=>e.type==="paren"&&e.value===")";function Fj(e,t){let{nodes:r}=e,n={open:null,close:null,groups:[],type:"paren_group"},s=[n],i=n,o={groups:[],type:"comma_group"},l=[o];for(let u=0;u<r.length;++u){let f=r[u];if(t.parser==="scss"&&f.type==="number"&&f.unit===".."&&f.value.endsWith(".")&&(f.value=f.value.slice(0,-1),f.unit="..."),f.type==="func"&&f.value==="selector"&&(f.group.groups=[yo(cC(e).text.slice(f.group.open.sourceIndex+1,f.group.close.sourceIndex))]),f.type==="func"&&f.value==="url"){let p=f.group?.groups??[],d=[];for(let y=0;y<p.length;y++){let m=p[y];m.type==="comma_group"?d=[...d,...m.groups]:d.push(m)}(Cj(d)||!vj(d)&&!_j(d[0],t))&&(f.group.groups=[Ej(f)])}if(f.type==="paren"&&f.value==="(")n={open:f,close:null,groups:[],type:"paren_group"},s.push(n),o={groups:[],type:"comma_group"},l.push(o);else if(y3(f)){if(o.groups.length>0&&n.groups.push(o),n.close=f,l.length===1)throw new Error("Unbalanced parenthesis");l.pop(),o=Po(0,l,-1),o.groups.push(n),s.pop(),n=Po(0,s,-1)}else if(f.type==="comma"){if(u===r.length-3&&r[u+1].type==="comment"&&y3(r[u+2]))continue;n.groups.push(o),o={groups:[],type:"comma_group"},l[l.length-1]=o}else o.groups.push(f)}return o.groups.length>0&&n.groups.push(o),i}function J0(e){return e.type==="paren_group"&&!e.open&&!e.close&&e.groups.length===1||e.type==="comma_group"&&e.groups.length===1?J0(e.groups[0]):e.type==="paren_group"||e.type==="comma_group"?{...e,groups:e.groups.map(J0)}:e}function pC(e,t){if(Im(e))for(let r in e)r!=="parent"&&(pC(e[r],t),r==="nodes"&&(e.group=J0(Fj(e,t)),delete e[r]));return e}function kj(e,t){if(t.parser==="less"&&e.startsWith("~`"))return{type:"value-unknown",value:e};let r=null;try{r=new Dj.default(e,{loose:!0}).parse()}catch{return{type:"value-unknown",value:e}}r.text=e;let n=pC(r,t);return bp(n,"value-",/^selector-/u)}var lo=kj,wj=new Set(["import","use","forward"]);function Pj(e){return wj.has(e)}var Nj=Pj;function Ij(e,t){return t.parser!=="scss"||!e.selector?!1:e.selector.replace(/\/\*.*?\*\//u,"").replace(/\/\/.*\n/u,"").trim().endsWith(":")}var Bj=Ij,Lj=/(\s*)(!default).*$/u,Oj=/(\s*)(!global).*$/u;function dC(e,t){if(Im(e)){delete e.parent;for(let i in e)dC(e[i],t);if(!e.type)return e;if(e.raws??(e.raws={}),e.type==="css-decl"&&typeof e.prop=="string"&&e.prop.startsWith("--")&&typeof e.value=="string"&&e.value.startsWith("{")){let i;if(e.value.trimEnd().endsWith("}")){let o=t.originalText.slice(0,e.source.start.offset),l="a".repeat(e.prop.length)+t.originalText.slice(e.source.start.offset+e.prop.length,e.source.end.offset),u=wr(0,o,/[^\n]/gu," ")+l,f;t.parser==="scss"?f=mC:t.parser==="less"?f=fC:f=hC;let p;try{p=f(u,{...t})}catch{}p?.nodes?.length===1&&p.nodes[0].type==="css-rule"&&(i=p.nodes[0].nodes)}return i?e.value={type:"css-rule",nodes:i}:e.value={type:"value-unknown",value:e.raws.value.raw},e}let r="";typeof e.selector=="string"&&(r=e.raws.selector?e.raws.selector.scss??e.raws.selector.raw:e.selector,e.raws.between&&e.raws.between.trim().length>0&&(r+=e.raws.between),e.raws.selector=r);let n="";typeof e.value=="string"&&(n=e.raws.value?e.raws.value.scss??e.raws.value.raw:e.value,e.raws.value=n.trim());let s="";if(typeof e.params=="string"&&(s=e.raws.params?e.raws.params.scss??e.raws.params.raw:e.params,e.raws.afterName&&e.raws.afterName.trim().length>0&&(s=e.raws.afterName+s),e.raws.between&&e.raws.between.trim().length>0&&(s=s+e.raws.between),s=s.trim(),e.raws.params=s),r.trim().length>0)return r.startsWith("@")&&r.endsWith(":")?e:e.mixin?(e.selector=lo(r,t),e):(Bj(e,t)&&(e.isSCSSNesterProperty=!0),e.selector=yo(r),e);if(n.trim().length>0){let i=n.match(Lj);i&&(n=n.slice(0,i.index),e.scssDefault=!0,i[0].trim()!=="!default"&&(e.raws.scssDefault=i[0]));let o=n.match(Oj);if(o&&(n=n.slice(0,o.index),e.scssGlobal=!0,o[0].trim()!=="!global"&&(e.raws.scssGlobal=o[0])),n.startsWith("progid:"))return{type:"value-unknown",value:n};e.value=lo(n,t)}if(t.parser==="less"&&e.type==="css-decl"&&n.startsWith("extend(")&&(e.extend||(e.extend=e.raws.between===":"),e.extend&&!e.selector&&(delete e.value,e.selector=yo(n.slice(7,-1)))),e.type==="css-atrule"){if(t.parser==="less"){if(e.mixin){let i=e.raws.identifier+e.name+e.raws.afterName+e.raws.params;return e.selector=yo(i),delete e.params,e}if(e.function)return e}if(t.parser==="css"&&e.name==="custom-selector"){let i=e.params.match(/:--\S+\s+/u)[0].trim();return e.customSelector=i,e.selector=yo(e.params.slice(i.length).trim()),delete e.params,e}if(t.parser==="less"){if(e.name.includes(":")){e.variable=!0;let i=e.name.split(":");e.name=i[0];let o=i.slice(1).join(":");e.params&&(o+=e.params),e.value=lo(o,t)}if(!["page","nest","keyframes"].includes(e.name)&&e.params?.[0]===":"){e.variable=!0;let i=e.params.slice(1);i&&(e.value=lo(i,t)),e.raws.afterName+=":"}if(e.variable)return delete e.params,e.value||delete e.value,e}}if(e.type==="css-atrule"&&s.length>0){let{name:i}=e,o=e.name.toLowerCase();return i==="warn"||i==="error"?(e.params={type:"media-unknown",value:s},e):i==="extend"||i==="nest"?(e.selector=yo(s),delete e.params,e):i==="at-root"?(/^\(\s*(?:without|with)\s*:.+\)$/su.test(s)?e.params=lo(s,t):(e.selector=yo(s),delete e.params),e):Nj(o)?(e.import=!0,delete e.filename,e.params=lo(s,t),e):["namespace","supports","if","else","for","each","while","debug","mixin","include","function","return","define-mixin","add-mixin"].includes(i)?(s=s.replace(/(\$\S+?)(\s+)?\.{3}/u,"$1...$2"),s=s.replace(/^(?!if)([^"'\s(]+)(\s+)\(/u,"$1($2"),e.value=lo(s,t),delete e.params,e):["media","custom-media"].includes(o)?s.includes("#{")?{type:"media-unknown",value:s}:(e.params=mj(s),e):(e.params=s,e)}}return e}function Kg(e,t,r){let{frontMatter:n,content:s}=Nm(t),i;try{i=e(s,{map:!1})}catch(o){let{name:l,reason:u,line:f,column:p}=o;throw typeof f!="number"?o:cj(`${l}: ${u}`,{loc:{start:{line:f,column:p}},cause:o})}return r.originalText=t,i=dC(bp(i,"css-"),r),G4(i,t),n&&(i.frontMatter={...n,type:"front-matter",source:{startOffset:n.start.index,endOffset:n.end.index}}),i}function hC(e,t={}){return Kg(aj.default.default,e,t)}function fC(e,t={}){return Kg(r=>oj.default.parse(j$(r)),e,t)}function mC(e,t={}){return Kg(uj.default,e,t)}var zg={astFormat:"postcss",hasPragma:nM,hasIgnorePragma:sM,locStart:In,locEnd:Bn},$j={...zg,parse:hC},Mj={...zg,parse:fC},jj={...zg,parse:mC},Jj={postcss:tj},Rj=Object.defineProperty,yC=(e,t)=>{for(var r in t)Rj(e,r,{get:t[r],enumerable:!0})},Uj={};yC(Uj,{parsers:()=>gC});var gC={};yC(gC,{typescript:()=>HV});var qj=()=>()=>{},DC=qj,Wg=(e,t)=>(r,n,...s)=>r|1&&n==null?void 0:(t.call(n)??n[e]).apply(n,s),Kj=String.prototype.replaceAll??function(e,t){return e.global?this.replace(e,t):this.split(e).join(t)},zj=Wg("replaceAll",function(){if(typeof this=="string")return Kj}),Nu=zj,Wj="5.9",xr=[],Vj=new Map;function _c(e){return e!==void 0?e.length:0}function Qn(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let n=t(e[r],r);if(n)return n}}function Hj(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let n=t(e[r],r);if(n!==void 0)return n}}function g3(e,t,r){let n=[];re.assertEqual(e.length,t.length);for(let s=0;s<e.length;s++)n.push(r(e[s],t[s],s));return n}function Vg(e,t){if(e!==void 0){for(let r=0;r<e.length;r++)if(!t(e[r],r))return!1}return!0}function xC(e,t,r){if(e!==void 0)for(let n=0;n<e.length;n++){let s=e[n];if(t(s,n))return s}}function Vy(e,t,r){if(e===void 0)return-1;for(let n=r??0;n<e.length;n++)if(t(e[n],n))return n;return-1}function Xj(e,t,r=Gg){if(e!==void 0){for(let n=0;n<e.length;n++)if(r(e[n],t))return!0}return!1}function Pi(e,t){if(e!==void 0){let r=e.length,n=0;for(;n<r&&t(e[n]);)n++;if(n<r){let s=e.slice(0,n);for(n++;n<r;){let i=e[n];t(i)&&s.push(i),n++}return s}}return e}function R0(e,t){let r;if(e!==void 0){r=[];for(let n=0;n<e.length;n++)r.push(t(e[n],n))}return r}function TC(e){let t=[];for(let r=0;r<e.length;r++){let n=e[r];n&&(Ri(n)?Ln(t,n):t.push(n))}return t}function EC(e,t){let r;if(e!==void 0)for(let n=0;n<e.length;n++){let s=t(e[n],n);s&&(Ri(s)?r=Ln(r,s):r=Pn(r,s))}return r??xr}function Gj(e,t){let r;if(e!==void 0)for(let n=0;n<e.length;n++){let s=e[n],i=t(s,n);(r||s!==i||Ri(i))&&(r||(r=e.slice(0,n)),Ri(i)?Ln(r,i):r.push(i))}return r??e}function Qj(e,t){let r=[];if(e!==void 0)for(let n=0;n<e.length;n++){let s=t(e[n],n);s!==void 0&&r.push(s)}return r}function Yr(e,t){if(e!==void 0)if(t!==void 0){for(let r=0;r<e.length;r++)if(t(e[r]))return!0}else return e.length>0;return!1}function Hg(e,t){return t===void 0||t.length===0?e:e===void 0||e.length===0?t:[...e,...t]}function Yj(e,t,r=Gg){if(e===void 0||t===void 0)return e===t;if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(!r(e[n],t[n],n))return!1;return!0}function Pn(e,t){return t===void 0?e:e===void 0?[t]:(e.push(t),e)}function D3(e,t){return t<0?e.length+t:t}function Ln(e,t,r,n){if(t===void 0||t.length===0)return e;if(e===void 0)return t.slice(r,n);r=r===void 0?0:D3(t,r),n=n===void 0?t.length:D3(t,n);for(let s=r;s<n&&s<t.length;s++)t[s]!==void 0&&e.push(t[s]);return e}function Zj(e,t,r){return Xj(e,t,r)?!1:(e.push(t),!0)}function eJ(e,t,r){return e!==void 0?(Zj(e,t,r),e):[t]}function tJ(e,t){return e.length===0?xr:e.slice().sort(t)}function Xg(e){return e===void 0||e.length===0?void 0:e[0]}function $u(e){return e===void 0||e.length===0?void 0:e[e.length-1]}function rJ(e){return re.assert(e.length!==0),e[e.length-1]}function nJ(e){return e!==void 0&&e.length===1?e[0]:void 0}function sJ(e,t,r,n,s){return iJ(e,r(t),r,n)}function iJ(e,t,r,n,s){if(!Yr(e))return-1;let i=0,o=e.length-1;for(;i<=o;){let l=i+(o-i>>1),u=r(e[l],l);switch(n(u,t)){case-1:i=l+1;break;case 0:return l;case 1:o=l-1;break}}return~i}function aJ(e,t,r,n,s){if(e&&e.length>0){let i=e.length;if(i>0){let o=0,l=i-1,u;for(arguments.length<=2?(u=e[o],o++):u=r;o<=l;)u=t(u,e[o],o),o++;return u}}return r}var bC=Object.prototype.hasOwnProperty;function ri(e,t){return bC.call(e,t)}function oJ(e){let t=[];for(let r in e)bC.call(e,r)&&t.push(r);return t}function uJ(){let e=new Map;return e.add=lJ,e.remove=cJ,e}function lJ(e,t){let r=this.get(e);return r!==void 0?r.push(t):this.set(e,r=[t]),r}function cJ(e,t){let r=this.get(e);r!==void 0&&(TJ(r,t),r.length||this.delete(e))}function Ri(e){return Array.isArray(e)}function Hy(e){return Ri(e)?e:[e]}function pJ(e,t){return e!==void 0&&t(e)?e:void 0}function Xs(e,t){return e!==void 0&&t(e)?e:re.fail(`Invalid cast. The supplied value ${e} did not pass the test '${re.getFunctionName(t)}'.`)}function Hf(e){}function dJ(){return!0}function ur(e){return e}function x3(e){let t;return()=>(e&&(t=e(),e=void 0),t)}function ps(e){let t=new Map;return r=>{let n=`${typeof r}:${r}`,s=t.get(n);return s===void 0&&!t.has(n)&&(s=e(r),t.set(n,s)),s}}function Gg(e,t){return e===t}function hJ(e,t){return e===t||e!==void 0&&t!==void 0&&e.toUpperCase()===t.toUpperCase()}function fJ(e,t){return Gg(e,t)}function mJ(e,t){return e===t?0:e===void 0?-1:t===void 0?1:e<t?-1:1}function CC(e,t){return mJ(e,t)}function yJ(e,t,r){for(let n=0;n<e.length;n++)t=Math.max(t,r(e[n]));return t}function Fc(e,t,r){let n=Math.max(2,Math.floor(e.length*.34)),s=Math.floor(e.length*.4)+1,i;for(let o of t){let l=r(o);if(l!==void 0&&Math.abs(l.length-e.length)<=n){if(l===e||l.length<3&&l.toLowerCase()!==e.toLowerCase())continue;let u=gJ(e,l,s-.1);if(u===void 0)continue;re.assert(u<s),s=u,i=o}}return i}function gJ(e,t,r){let n=new Array(t.length+1),s=new Array(t.length+1),i=r+.01;for(let l=0;l<=t.length;l++)n[l]=l;for(let l=1;l<=e.length;l++){let u=e.charCodeAt(l-1),f=Math.ceil(l>r?l-r:1),p=Math.floor(t.length>r+l?r+l:t.length);s[0]=l;let d=l;for(let m=1;m<f;m++)s[m]=i;for(let m=f;m<=p;m++){let D=e[l-1].toLowerCase()===t[m-1].toLowerCase()?n[m-1]+.1:n[m-1]+2,T=u===t.charCodeAt(m-1)?n[m-1]:Math.min(n[m]+1,s[m-1]+1,D);s[m]=T,d=Math.min(d,T)}for(let m=p+1;m<=t.length;m++)s[m]=i;if(d>r)return;let y=n;n=s,s=y}let o=n[t.length];return o>r?void 0:o}function DJ(e,t,r){let n=e.length-t.length;return n>=0&&(r?hJ(e.slice(n),t):e.indexOf(t,n)===n)}function xJ(e,t){e[t]=e[e.length-1],e.pop()}function TJ(e,t){return EJ(e,r=>r===t)}function EJ(e,t){for(let r=0;r<e.length;r++)if(t(e[r]))return xJ(e,r),!0;return!1}function Xf(e,t,r){return e.lastIndexOf(t,0)===0}function U0(e){return e===void 0?void 0:[e]}var re;(e=>{let t=0;e.currentLogLevel=2,e.isDebugging=!1;function r(G){return e.currentLogLevel<=G}e.shouldLog=r;function n(G,Fe){e.loggingHost&&r(G)&&e.loggingHost.log(G,Fe)}function s(G){n(3,G)}e.log=s,(G=>{function Fe($t){n(1,$t)}G.error=Fe;function Oe($t){n(2,$t)}G.warn=Oe;function Ve($t){n(3,$t)}G.log=Ve;function Ft($t){n(4,$t)}G.trace=Ft})(s=e.log||(e.log={}));let i={};function o(){return t}e.getAssertionLevel=o;function l(G){let Fe=t;if(t=G,G>Fe)for(let Oe of oJ(i)){let Ve=i[Oe];Ve!==void 0&&e[Oe]!==Ve.assertion&&G>=Ve.level&&(e[Oe]=Ve,i[Oe]=void 0)}}e.setAssertionLevel=l;function u(G){return t>=G}e.shouldAssert=u;function f(G,Fe){return u(G)?!0:(i[Fe]={level:G,assertion:e[Fe]},e[Fe]=Hf,!1)}function p(G,Fe){debugger;let Oe=new Error(G?`Debug Failure. ${G}`:"Debug Failure.");throw Error.captureStackTrace&&Error.captureStackTrace(Oe,Fe||p),Oe}e.fail=p;function d(G,Fe,Oe){return p(`${Fe||"Unexpected node."}\r
|
|
147
|
-
Node ${et(G.kind)} was unexpected.`,Oe||d)}e.failBadSyntaxKind=d;function y(G,Fe,Oe,Ve){G||(Fe=Fe?`False expression: ${Fe}`:"False expression.",Oe&&(Fe+=`\r
|
|
148
|
-
Verbose Debug Information: `+(typeof Oe=="string"?Oe:Oe())),p(Fe,Ve||y))}e.assert=y;function m(G,Fe,Oe,Ve,Ft){if(G!==Fe){let $t=Oe?Ve?`${Oe} ${Ve}`:Oe:"";p(`Expected ${G} === ${Fe}. ${$t}`,Ft||m)}}e.assertEqual=m;function D(G,Fe,Oe,Ve){G>=Fe&&p(`Expected ${G} < ${Fe}. ${Oe||""}`,Ve||D)}e.assertLessThan=D;function T(G,Fe,Oe){G>Fe&&p(`Expected ${G} <= ${Fe}`,Oe||T)}e.assertLessThanOrEqual=T;function S(G,Fe,Oe){G<Fe&&p(`Expected ${G} >= ${Fe}`,Oe||S)}e.assertGreaterThanOrEqual=S;function v(G,Fe,Oe){G==null&&p(Fe,Oe||v)}e.assertIsDefined=v;function E(G,Fe,Oe){return v(G,Fe,Oe||E),G}e.checkDefined=E;function C(G,Fe,Oe){for(let Ve of G)v(Ve,Fe,Oe||C)}e.assertEachIsDefined=C;function P(G,Fe,Oe){return C(G,Fe,Oe||P),G}e.checkEachDefined=P;function k(G,Fe="Illegal value:",Oe){let Ve=typeof G=="object"&&ri(G,"kind")&&ri(G,"pos")?"SyntaxKind: "+et(G.kind):JSON.stringify(G);return p(`${Fe} ${Ve}`,Oe||k)}e.assertNever=k;function w(G,Fe,Oe,Ve){f(1,"assertEachNode")&&y(Fe===void 0||Vg(G,Fe),Oe||"Unexpected node.",()=>`Node array did not pass test '${Q(Fe)}'.`,Ve||w)}e.assertEachNode=w;function B(G,Fe,Oe,Ve){f(1,"assertNode")&&y(G!==void 0&&(Fe===void 0||Fe(G)),Oe||"Unexpected node.",()=>`Node ${et(G?.kind)} did not pass test '${Q(Fe)}'.`,Ve||B)}e.assertNode=B;function I(G,Fe,Oe,Ve){f(1,"assertNotNode")&&y(G===void 0||Fe===void 0||!Fe(G),Oe||"Unexpected node.",()=>`Node ${et(G.kind)} should not have passed test '${Q(Fe)}'.`,Ve||I)}e.assertNotNode=I;function oe(G,Fe,Oe,Ve){f(1,"assertOptionalNode")&&y(Fe===void 0||G===void 0||Fe(G),Oe||"Unexpected node.",()=>`Node ${et(G?.kind)} did not pass test '${Q(Fe)}'.`,Ve||oe)}e.assertOptionalNode=oe;function ee(G,Fe,Oe,Ve){f(1,"assertOptionalToken")&&y(Fe===void 0||G===void 0||G.kind===Fe,Oe||"Unexpected node.",()=>`Node ${et(G?.kind)} was not a '${et(Fe)}' token.`,Ve||ee)}e.assertOptionalToken=ee;function me(G,Fe,Oe){f(1,"assertMissingNode")&&y(G===void 0,Fe||"Unexpected node.",()=>`Node ${et(G.kind)} was unexpected'.`,Oe||me)}e.assertMissingNode=me;function Ge(G){}e.type=Ge;function Q(G){if(typeof G!="function")return"";if(ri(G,"name"))return G.name;{let Fe=Function.prototype.toString.call(G),Oe=/^function\s+([\w$]+)\s*\(/.exec(Fe);return Oe?Oe[1]:""}}e.getFunctionName=Q;function we(G){return`{ name: ${rp(G.escapedName)}; flags: ${Rt(G.flags)}; declarations: ${R0(G.declarations,Fe=>et(Fe.kind))} }`}e.formatSymbol=we;function ge(G=0,Fe,Oe){let Ve=Et(Fe);if(G===0)return Ve.length>0&&Ve[0][0]===0?Ve[0][1]:"0";if(Oe){let Ft=[],$t=G;for(let[Qt,vr]of Ve){if(Qt>G)break;Qt!==0&&Qt&G&&(Ft.push(vr),$t&=~Qt)}if($t===0)return Ft.join("|")}else for(let[Ft,$t]of Ve)if(Ft===G)return $t;return G.toString()}e.formatEnum=ge;let Pe=new Map;function Et(G){let Fe=Pe.get(G);if(Fe)return Fe;let Oe=[];for(let Ft in G){let $t=G[Ft];typeof $t=="number"&&Oe.push([$t,Ft])}let Ve=tJ(Oe,(Ft,$t)=>CC(Ft[0],$t[0]));return Pe.set(G,Ve),Ve}function et(G){return ge(G,ot,!1)}e.formatSyntaxKind=et;function rr(G){return ge(G,NC,!1)}e.formatSnippetKind=rr;function Dt(G){return ge(G,ki,!1)}e.formatScriptKind=Dt;function Gt(G){return ge(G,Xn,!0)}e.formatNodeFlags=Gt;function Jt(G){return ge(G,_C,!0)}e.formatNodeCheckFlags=Jt;function pt(G){return ge(G,AC,!0)}e.formatModifierFlags=pt;function Ot(G){return ge(G,PC,!0)}e.formatTransformFlags=Ot;function ir(G){return ge(G,IC,!0)}e.formatEmitFlags=ir;function Rt(G){return ge(G,SC,!0)}e.formatSymbolFlags=Rt;function ve(G){return ge(G,un,!0)}e.formatTypeFlags=ve;function ce(G){return ge(G,kC,!0)}e.formatSignatureFlags=ce;function fe(G){return ge(G,FC,!0)}e.formatObjectFlags=fe;function Ke(G){return ge(G,q0,!0)}e.formatFlowFlags=Ke;function xt(G){return ge(G,vC,!0)}e.formatRelationComparisonResult=xt;function at(G){return ge(G,CheckMode,!0)}e.formatCheckMode=at;function hr(G){return ge(G,SignatureCheckMode,!0)}e.formatSignatureCheckMode=hr;function Ut(G){return ge(G,TypeFacts,!0)}e.formatTypeFacts=Ut;let Er=!1,It;function Ar(G){"__debugFlowFlags"in G||Object.defineProperties(G,{__tsDebuggerDisplay:{value(){let Fe=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",Oe=this.flags&-2048;return`${Fe}${Oe?` (${Ke(Oe)})`:""}`}},__debugFlowFlags:{get(){return ge(this.flags,q0,!0)}},__debugToString:{value(){return Os(this)}}})}function br(G){return Er&&(typeof Object.setPrototypeOf=="function"?(It||(It=Object.create(Object.prototype),Ar(It)),Object.setPrototypeOf(G,It)):Ar(G)),G}e.attachFlowNodeDebugInfo=br;let Nr;function nn(G){"__tsDebuggerDisplay"in G||Object.defineProperties(G,{__tsDebuggerDisplay:{value(Fe){return Fe=String(Fe).replace(/(?:,[\s\w]+:[^,]+)+\]$/,"]"),`NodeArray ${Fe}`}}})}function pn(G){Er&&(typeof Object.setPrototypeOf=="function"?(Nr||(Nr=Object.create(Array.prototype),nn(Nr)),Object.setPrototypeOf(G,Nr)):nn(G))}e.attachNodeArrayDebugInfo=pn;function Vr(){if(Er)return;let G=new WeakMap,Fe=new WeakMap;Object.defineProperties(Dr.getSymbolConstructor().prototype,{__tsDebuggerDisplay:{value(){let Ve=this.flags&33554432?"TransientSymbol":"Symbol",Ft=this.flags&-33554433;return`${Ve} '${V0(this)}'${Ft?` (${Rt(Ft)})`:""}`}},__debugFlags:{get(){return Rt(this.flags)}}}),Object.defineProperties(Dr.getTypeConstructor().prototype,{__tsDebuggerDisplay:{value(){let Ve=this.flags&67359327?`IntrinsicType ${this.intrinsicName}${this.debugIntrinsicName?` (${this.debugIntrinsicName})`:""}`:this.flags&98304?"NullableType":this.flags&384?`LiteralType ${JSON.stringify(this.value)}`:this.flags&2048?`LiteralType ${this.value.negative?"-":""}${this.value.base10Value}n`:this.flags&8192?"UniqueESSymbolType":this.flags&32?"EnumType":this.flags&1048576?"UnionType":this.flags&2097152?"IntersectionType":this.flags&4194304?"IndexType":this.flags&8388608?"IndexedAccessType":this.flags&16777216?"ConditionalType":this.flags&33554432?"SubstitutionType":this.flags&262144?"TypeParameter":this.flags&524288?this.objectFlags&3?"InterfaceType":this.objectFlags&4?"TypeReference":this.objectFlags&8?"TupleType":this.objectFlags&16?"AnonymousType":this.objectFlags&32?"MappedType":this.objectFlags&1024?"ReverseMappedType":this.objectFlags&256?"EvolvingArrayType":"ObjectType":"Type",Ft=this.flags&524288?this.objectFlags&-1344:0;return`${Ve}${this.symbol?` '${V0(this.symbol)}'`:""}${Ft?` (${fe(Ft)})`:""}`}},__debugFlags:{get(){return ve(this.flags)}},__debugObjectFlags:{get(){return this.flags&524288?fe(this.objectFlags):""}},__debugTypeToString:{value(){let Ve=G.get(this);return Ve===void 0&&(Ve=this.checker.typeToString(this),G.set(this,Ve)),Ve}}}),Object.defineProperties(Dr.getSignatureConstructor().prototype,{__debugFlags:{get(){return ce(this.flags)}},__debugSignatureToString:{value(){var Ve;return(Ve=this.checker)==null?void 0:Ve.signatureToString(this)}}});let Oe=[Dr.getNodeConstructor(),Dr.getIdentifierConstructor(),Dr.getTokenConstructor(),Dr.getSourceFileConstructor()];for(let Ve of Oe)ri(Ve.prototype,"__debugKind")||Object.defineProperties(Ve.prototype,{__tsDebuggerDisplay:{value(){return`${Bu(this)?"GeneratedIdentifier":zt(this)?`Identifier '${jn(this)}'`:No(this)?`PrivateIdentifier '${jn(this)}'`:Ru(this)?`StringLiteral ${JSON.stringify(this.text.length<10?this.text:this.text.slice(10)+"...")}`:ul(this)?`NumericLiteral ${this.text}`:Pq(this)?`BigIntLiteral ${this.text}n`:C8(this)?"TypeParameterDeclaration":tm(this)?"ParameterDeclaration":A8(this)?"ConstructorDeclaration":e2(this)?"GetAccessorDeclaration":nm(this)?"SetAccessorDeclaration":jq(this)?"CallSignatureDeclaration":Jq(this)?"ConstructSignatureDeclaration":v8(this)?"IndexSignatureDeclaration":Rq(this)?"TypePredicateNode":S8(this)?"TypeReferenceNode":_8(this)?"FunctionTypeNode":F8(this)?"ConstructorTypeNode":Uq(this)?"TypeQueryNode":qq(this)?"TypeLiteralNode":Kq(this)?"ArrayTypeNode":zq(this)?"TupleTypeNode":Vq(this)?"OptionalTypeNode":Hq(this)?"RestTypeNode":Xq(this)?"UnionTypeNode":Gq(this)?"IntersectionTypeNode":Qq(this)?"ConditionalTypeNode":Yq(this)?"InferTypeNode":Zq(this)?"ParenthesizedTypeNode":eK(this)?"ThisTypeNode":tK(this)?"TypeOperatorNode":rK(this)?"IndexedAccessTypeNode":nK(this)?"MappedTypeNode":sK(this)?"LiteralTypeNode":Wq(this)?"NamedTupleMember":iK(this)?"ImportTypeNode":et(this.kind)}${this.flags?` (${Gt(this.flags)})`:""}`}},__debugKind:{get(){return et(this.kind)}},__debugNodeFlags:{get(){return Gt(this.flags)}},__debugModifierFlags:{get(){return pt(zU(this))}},__debugTransformFlags:{get(){return Ot(this.transformFlags)}},__debugIsParseTreeNode:{get(){return Yf(this)}},__debugEmitFlags:{get(){return ir(Ju(this))}},__debugGetText:{value(Ft){if(_u(this))return"";let $t=Fe.get(this);if($t===void 0){let Qt=aR(this),vr=Qt&&Sa(Qt);$t=vr?I3(vr,Qt,Ft):"",Fe.set(this,$t)}return $t}}});Er=!0}e.enableDebugInfo=Vr;function Hr(G){let Fe=G&7,Oe=Fe===0?"in out":Fe===3?"[bivariant]":Fe===2?"in":Fe===1?"out":Fe===4?"[independent]":"";return G&8?Oe+=" (unmeasurable)":G&16&&(Oe+=" (unreliable)"),Oe}e.formatVariance=Hr;class hi{__debugToString(){var Fe;switch(this.kind){case 3:return((Fe=this.debugInfo)==null?void 0:Fe.call(this))||"(function mapper)";case 0:return`${this.source.__debugTypeToString()} -> ${this.target.__debugTypeToString()}`;case 1:return g3(this.sources,this.targets||R0(this.sources,()=>"any"),(Oe,Ve)=>`${Oe.__debugTypeToString()} -> ${typeof Ve=="string"?Ve:Ve.__debugTypeToString()}`).join(", ");case 2:return g3(this.sources,this.targets,(Oe,Ve)=>`${Oe.__debugTypeToString()} -> ${Ve().__debugTypeToString()}`).join(", ");case 5:case 4:return`m1: ${this.mapper1.__debugToString().split(`
|
|
149
|
-
`).join(`
|
|
150
|
-
`)}
|
|
151
|
-
m2: ${this.mapper2.__debugToString().split(`
|
|
152
|
-
`).join(`
|
|
153
|
-
`)}`;default:return k(this)}}}e.DebugTypeMapper=hi;function ns(G){return e.isDebugging?Object.setPrototypeOf(G,hi.prototype):G}e.attachDebugPrototypeIfDebug=ns;function rt(G){return console.log(Os(G))}e.printControlFlowGraph=rt;function Os(G){let Fe=-1;function Oe(H){return H.id||(H.id=Fe,Fe--),H.id}let Ve;(H=>{H.lr="─",H.ud="│",H.dr="╭",H.dl="╮",H.ul="╯",H.ur="╰",H.udr="├",H.udl="┤",H.dlr="┬",H.ulr="┴",H.udlr="╫"})(Ve||(Ve={}));let Ft;(H=>{H[H.None=0]="None",H[H.Up=1]="Up",H[H.Down=2]="Down",H[H.Left=4]="Left",H[H.Right=8]="Right",H[H.UpDown=3]="UpDown",H[H.LeftRight=12]="LeftRight",H[H.UpLeft=5]="UpLeft",H[H.UpRight=9]="UpRight",H[H.DownLeft=6]="DownLeft",H[H.DownRight=10]="DownRight",H[H.UpDownLeft=7]="UpDownLeft",H[H.UpDownRight=11]="UpDownRight",H[H.UpLeftRight=13]="UpLeftRight",H[H.DownLeftRight=14]="DownLeftRight",H[H.UpDownLeftRight=15]="UpDownLeftRight",H[H.NoChildren=16]="NoChildren"})(Ft||(Ft={}));let $t=2032,Qt=882,vr=Object.create(null),fr=[],Yt=He(G,new Set);for(let H of fr)H.text=Un(H.flowNode,H.circular),Qe(H);let Qi=Je(Yt),Cn=bt(Qi);return Mt(Yt,0),Ht();function fi(H){return!!(H.flags&128)}function ss(H){return!!(H.flags&12)&&!!H.antecedent}function ja(H){return!!(H.flags&$t)}function te(H){return!!(H.flags&Qt)}function ye(H){let A=[];for(let dt of H.edges)dt.source===H&&A.push(dt.target);return A}function xe(H){let A=[];for(let dt of H.edges)dt.target===H&&A.push(dt.source);return A}function He(H,A){let dt=Oe(H),kt=vr[dt];if(kt&&A.has(H))return kt.circular=!0,kt={id:-1,flowNode:H,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:"circularity"},fr.push(kt),kt;if(A.add(H),!kt)if(vr[dt]=kt={id:dt,flowNode:H,edges:[],text:"",lane:-1,endLane:-1,level:-1,circular:!1},fr.push(kt),ss(H))for(let se of H.antecedent)Xe(kt,se,A);else ja(H)&&Xe(kt,H.antecedent,A);return A.delete(H),kt}function Xe(H,A,dt){let kt=He(A,dt),se={source:H,target:kt};H.edges.push(se),kt.edges.push(se)}function Qe(H){if(H.level!==-1)return H.level;let A=0;for(let dt of xe(H))A=Math.max(A,Qe(dt)+1);return H.level=A}function Je(H){let A=0;for(let dt of ye(H))A=Math.max(A,Je(dt));return A+1}function bt(H){let A=$s(Array(H),0);for(let dt of fr)A[dt.level]=Math.max(A[dt.level],dt.text.length);return A}function Mt(H,A){if(H.lane===-1){H.lane=A,H.endLane=A;let dt=ye(H);for(let kt=0;kt<dt.length;kt++){kt>0&&A++;let se=dt[kt];Mt(se,A),se.endLane>H.endLane&&(A=se.endLane)}H.endLane=A}}function At(H){if(H&2)return"Start";if(H&4)return"Branch";if(H&8)return"Loop";if(H&16)return"Assignment";if(H&32)return"True";if(H&64)return"False";if(H&128)return"SwitchClause";if(H&256)return"ArrayMutation";if(H&512)return"Call";if(H&1024)return"ReduceLabel";if(H&1)return"Unreachable";throw new Error}function Ze(H){let A=Sa(H);return I3(A,H,!1)}function Un(H,A){let dt=At(H.flags);if(A&&(dt=`${dt}#${Oe(H)}`),fi(H)){let kt=[],{switchStatement:se,clauseStart:jt,clauseEnd:Ct}=H.node;for(let vt=jt;vt<Ct;vt++){let Sr=se.caseBlock.clauses[vt];bK(Sr)?kt.push("default"):kt.push(Ze(Sr.expression))}dt+=` (${kt.join(", ")})`}else te(H)&&H.node&&(dt+=` (${Ze(H.node)})`);return A==="circularity"?`Circular(${dt})`:dt}function Ht(){let H=Cn.length,A=yJ(fr,0,Ct=>Ct.lane)+1,dt=$s(Array(A),""),kt=Cn.map(()=>Array(A)),se=Cn.map(()=>$s(Array(A),0));for(let Ct of fr){kt[Ct.level][Ct.lane]=Ct;let vt=ye(Ct);for(let ar=0;ar<vt.length;ar++){let _r=vt[ar],Xr=8;_r.lane===Ct.lane&&(Xr|=4),ar>0&&(Xr|=1),ar<vt.length-1&&(Xr|=2),se[Ct.level][_r.lane]|=Xr}vt.length===0&&(se[Ct.level][Ct.lane]|=16);let Sr=xe(Ct);for(let ar=0;ar<Sr.length;ar++){let _r=Sr[ar],Xr=4;ar>0&&(Xr|=1),ar<Sr.length-1&&(Xr|=2),se[Ct.level-1][_r.lane]|=Xr}}for(let Ct=0;Ct<H;Ct++)for(let vt=0;vt<A;vt++){let Sr=Ct>0?se[Ct-1][vt]:0,ar=vt>0?se[Ct][vt-1]:0,_r=se[Ct][vt];_r||(Sr&8&&(_r|=12),ar&2&&(_r|=3),se[Ct][vt]=_r)}for(let Ct=0;Ct<H;Ct++)for(let vt=0;vt<dt.length;vt++){let Sr=se[Ct][vt],ar=Sr&4?"─":" ",_r=kt[Ct][vt];_r?(jt(vt,_r.text),Ct<H-1&&(jt(vt," "),jt(vt,X(ar,Cn[Ct]-_r.text.length)))):Ct<H-1&&jt(vt,X(ar,Cn[Ct]+1)),jt(vt,dn(Sr)),jt(vt,Sr&8&&Ct<H-1&&!kt[Ct+1][vt]?"─":" ")}return`
|
|
154
|
-
${dt.join(`
|
|
155
|
-
`)}
|
|
156
|
-
`;function jt(Ct,vt){dt[Ct]+=vt}}function dn(H){switch(H){case 3:return"│";case 12:return"─";case 5:return"╯";case 9:return"╰";case 6:return"╮";case 10:return"╭";case 7:return"┤";case 11:return"├";case 13:return"┴";case 14:return"┬";case 15:return"╫"}return" "}function $s(H,A){if(H.fill)H.fill(A);else for(let dt=0;dt<H.length;dt++)H[dt]=A;return H}function X(H,A){if(H.repeat)return A>0?H.repeat(A):"";let dt="";for(;dt.length<A;)dt+=H;return dt}}e.formatControlFlowGraph=Os})(re||(re={}));var Bf,ot=(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]="FinallyKeyword",e[e.ForKeyword=99]="ForKeyword",e[e.FunctionKeyword=100]="FunctionKeyword",e[e.IfKeyword=101]="IfKeyword",e[e.ImportKeyword=102]="ImportKeyword",e[e.InKeyword=103]="InKeyword",e[e.InstanceOfKeyword=104]="InstanceOfKeyword",e[e.NewKeyword=105]="NewKeyword",e[e.NullKeyword=106]="NullKeyword",e[e.ReturnKeyword=107]="ReturnKeyword",e[e.SuperKeyword=108]="SuperKeyword",e[e.SwitchKeyword=109]="SwitchKeyword",e[e.ThisKeyword=110]="ThisKeyword",e[e.ThrowKeyword=111]="ThrowKeyword",e[e.TrueKeyword=112]="TrueKeyword",e[e.TryKeyword=113]="TryKeyword",e[e.TypeOfKeyword=114]="TypeOfKeyword",e[e.VarKeyword=115]="VarKeyword",e[e.VoidKeyword=116]="VoidKeyword",e[e.WhileKeyword=117]="WhileKeyword",e[e.WithKeyword=118]="WithKeyword",e[e.ImplementsKeyword=119]="ImplementsKeyword",e[e.InterfaceKeyword=120]="InterfaceKeyword",e[e.LetKeyword=121]="LetKeyword",e[e.PackageKeyword=122]="PackageKeyword",e[e.PrivateKeyword=123]="PrivateKeyword",e[e.ProtectedKeyword=124]="ProtectedKeyword",e[e.PublicKeyword=125]="PublicKeyword",e[e.StaticKeyword=126]="StaticKeyword",e[e.YieldKeyword=127]="YieldKeyword",e[e.AbstractKeyword=128]="AbstractKeyword",e[e.AccessorKeyword=129]="AccessorKeyword",e[e.AsKeyword=130]="AsKeyword",e[e.AssertsKeyword=131]="AssertsKeyword",e[e.AssertKeyword=132]="AssertKeyword",e[e.AnyKeyword=133]="AnyKeyword",e[e.AsyncKeyword=134]="AsyncKeyword",e[e.AwaitKeyword=135]="AwaitKeyword",e[e.BooleanKeyword=136]="BooleanKeyword",e[e.ConstructorKeyword=137]="ConstructorKeyword",e[e.DeclareKeyword=138]="DeclareKeyword",e[e.GetKeyword=139]="GetKeyword",e[e.InferKeyword=140]="InferKeyword",e[e.IntrinsicKeyword=141]="IntrinsicKeyword",e[e.IsKeyword=142]="IsKeyword",e[e.KeyOfKeyword=143]="KeyOfKeyword",e[e.ModuleKeyword=144]="ModuleKeyword",e[e.NamespaceKeyword=145]="NamespaceKeyword",e[e.NeverKeyword=146]="NeverKeyword",e[e.OutKeyword=147]="OutKeyword",e[e.ReadonlyKeyword=148]="ReadonlyKeyword",e[e.RequireKeyword=149]="RequireKeyword",e[e.NumberKeyword=150]="NumberKeyword",e[e.ObjectKeyword=151]="ObjectKeyword",e[e.SatisfiesKeyword=152]="SatisfiesKeyword",e[e.SetKeyword=153]="SetKeyword",e[e.StringKeyword=154]="StringKeyword",e[e.SymbolKeyword=155]="SymbolKeyword",e[e.TypeKeyword=156]="TypeKeyword",e[e.UndefinedKeyword=157]="UndefinedKeyword",e[e.UniqueKeyword=158]="UniqueKeyword",e[e.UnknownKeyword=159]="UnknownKeyword",e[e.UsingKeyword=160]="UsingKeyword",e[e.FromKeyword=161]="FromKeyword",e[e.GlobalKeyword=162]="GlobalKeyword",e[e.BigIntKeyword=163]="BigIntKeyword",e[e.OverrideKeyword=164]="OverrideKeyword",e[e.OfKeyword=165]="OfKeyword",e[e.DeferKeyword=166]="DeferKeyword",e[e.QualifiedName=167]="QualifiedName",e[e.ComputedPropertyName=168]="ComputedPropertyName",e[e.TypeParameter=169]="TypeParameter",e[e.Parameter=170]="Parameter",e[e.Decorator=171]="Decorator",e[e.PropertySignature=172]="PropertySignature",e[e.PropertyDeclaration=173]="PropertyDeclaration",e[e.MethodSignature=174]="MethodSignature",e[e.MethodDeclaration=175]="MethodDeclaration",e[e.ClassStaticBlockDeclaration=176]="ClassStaticBlockDeclaration",e[e.Constructor=177]="Constructor",e[e.GetAccessor=178]="GetAccessor",e[e.SetAccessor=179]="SetAccessor",e[e.CallSignature=180]="CallSignature",e[e.ConstructSignature=181]="ConstructSignature",e[e.IndexSignature=182]="IndexSignature",e[e.TypePredicate=183]="TypePredicate",e[e.TypeReference=184]="TypeReference",e[e.FunctionType=185]="FunctionType",e[e.ConstructorType=186]="ConstructorType",e[e.TypeQuery=187]="TypeQuery",e[e.TypeLiteral=188]="TypeLiteral",e[e.ArrayType=189]="ArrayType",e[e.TupleType=190]="TupleType",e[e.OptionalType=191]="OptionalType",e[e.RestType=192]="RestType",e[e.UnionType=193]="UnionType",e[e.IntersectionType=194]="IntersectionType",e[e.ConditionalType=195]="ConditionalType",e[e.InferType=196]="InferType",e[e.ParenthesizedType=197]="ParenthesizedType",e[e.ThisType=198]="ThisType",e[e.TypeOperator=199]="TypeOperator",e[e.IndexedAccessType=200]="IndexedAccessType",e[e.MappedType=201]="MappedType",e[e.LiteralType=202]="LiteralType",e[e.NamedTupleMember=203]="NamedTupleMember",e[e.TemplateLiteralType=204]="TemplateLiteralType",e[e.TemplateLiteralTypeSpan=205]="TemplateLiteralTypeSpan",e[e.ImportType=206]="ImportType",e[e.ObjectBindingPattern=207]="ObjectBindingPattern",e[e.ArrayBindingPattern=208]="ArrayBindingPattern",e[e.BindingElement=209]="BindingElement",e[e.ArrayLiteralExpression=210]="ArrayLiteralExpression",e[e.ObjectLiteralExpression=211]="ObjectLiteralExpression",e[e.PropertyAccessExpression=212]="PropertyAccessExpression",e[e.ElementAccessExpression=213]="ElementAccessExpression",e[e.CallExpression=214]="CallExpression",e[e.NewExpression=215]="NewExpression",e[e.TaggedTemplateExpression=216]="TaggedTemplateExpression",e[e.TypeAssertionExpression=217]="TypeAssertionExpression",e[e.ParenthesizedExpression=218]="ParenthesizedExpression",e[e.FunctionExpression=219]="FunctionExpression",e[e.ArrowFunction=220]="ArrowFunction",e[e.DeleteExpression=221]="DeleteExpression",e[e.TypeOfExpression=222]="TypeOfExpression",e[e.VoidExpression=223]="VoidExpression",e[e.AwaitExpression=224]="AwaitExpression",e[e.PrefixUnaryExpression=225]="PrefixUnaryExpression",e[e.PostfixUnaryExpression=226]="PostfixUnaryExpression",e[e.BinaryExpression=227]="BinaryExpression",e[e.ConditionalExpression=228]="ConditionalExpression",e[e.TemplateExpression=229]="TemplateExpression",e[e.YieldExpression=230]="YieldExpression",e[e.SpreadElement=231]="SpreadElement",e[e.ClassExpression=232]="ClassExpression",e[e.OmittedExpression=233]="OmittedExpression",e[e.ExpressionWithTypeArguments=234]="ExpressionWithTypeArguments",e[e.AsExpression=235]="AsExpression",e[e.NonNullExpression=236]="NonNullExpression",e[e.MetaProperty=237]="MetaProperty",e[e.SyntheticExpression=238]="SyntheticExpression",e[e.SatisfiesExpression=239]="SatisfiesExpression",e[e.TemplateSpan=240]="TemplateSpan",e[e.SemicolonClassElement=241]="SemicolonClassElement",e[e.Block=242]="Block",e[e.EmptyStatement=243]="EmptyStatement",e[e.VariableStatement=244]="VariableStatement",e[e.ExpressionStatement=245]="ExpressionStatement",e[e.IfStatement=246]="IfStatement",e[e.DoStatement=247]="DoStatement",e[e.WhileStatement=248]="WhileStatement",e[e.ForStatement=249]="ForStatement",e[e.ForInStatement=250]="ForInStatement",e[e.ForOfStatement=251]="ForOfStatement",e[e.ContinueStatement=252]="ContinueStatement",e[e.BreakStatement=253]="BreakStatement",e[e.ReturnStatement=254]="ReturnStatement",e[e.WithStatement=255]="WithStatement",e[e.SwitchStatement=256]="SwitchStatement",e[e.LabeledStatement=257]="LabeledStatement",e[e.ThrowStatement=258]="ThrowStatement",e[e.TryStatement=259]="TryStatement",e[e.DebuggerStatement=260]="DebuggerStatement",e[e.VariableDeclaration=261]="VariableDeclaration",e[e.VariableDeclarationList=262]="VariableDeclarationList",e[e.FunctionDeclaration=263]="FunctionDeclaration",e[e.ClassDeclaration=264]="ClassDeclaration",e[e.InterfaceDeclaration=265]="InterfaceDeclaration",e[e.TypeAliasDeclaration=266]="TypeAliasDeclaration",e[e.EnumDeclaration=267]="EnumDeclaration",e[e.ModuleDeclaration=268]="ModuleDeclaration",e[e.ModuleBlock=269]="ModuleBlock",e[e.CaseBlock=270]="CaseBlock",e[e.NamespaceExportDeclaration=271]="NamespaceExportDeclaration",e[e.ImportEqualsDeclaration=272]="ImportEqualsDeclaration",e[e.ImportDeclaration=273]="ImportDeclaration",e[e.ImportClause=274]="ImportClause",e[e.NamespaceImport=275]="NamespaceImport",e[e.NamedImports=276]="NamedImports",e[e.ImportSpecifier=277]="ImportSpecifier",e[e.ExportAssignment=278]="ExportAssignment",e[e.ExportDeclaration=279]="ExportDeclaration",e[e.NamedExports=280]="NamedExports",e[e.NamespaceExport=281]="NamespaceExport",e[e.ExportSpecifier=282]="ExportSpecifier",e[e.MissingDeclaration=283]="MissingDeclaration",e[e.ExternalModuleReference=284]="ExternalModuleReference",e[e.JsxElement=285]="JsxElement",e[e.JsxSelfClosingElement=286]="JsxSelfClosingElement",e[e.JsxOpeningElement=287]="JsxOpeningElement",e[e.JsxClosingElement=288]="JsxClosingElement",e[e.JsxFragment=289]="JsxFragment",e[e.JsxOpeningFragment=290]="JsxOpeningFragment",e[e.JsxClosingFragment=291]="JsxClosingFragment",e[e.JsxAttribute=292]="JsxAttribute",e[e.JsxAttributes=293]="JsxAttributes",e[e.JsxSpreadAttribute=294]="JsxSpreadAttribute",e[e.JsxExpression=295]="JsxExpression",e[e.JsxNamespacedName=296]="JsxNamespacedName",e[e.CaseClause=297]="CaseClause",e[e.DefaultClause=298]="DefaultClause",e[e.HeritageClause=299]="HeritageClause",e[e.CatchClause=300]="CatchClause",e[e.ImportAttributes=301]="ImportAttributes",e[e.ImportAttribute=302]="ImportAttribute",e[e.AssertClause=301]="AssertClause",e[e.AssertEntry=302]="AssertEntry",e[e.ImportTypeAssertionContainer=303]="ImportTypeAssertionContainer",e[e.PropertyAssignment=304]="PropertyAssignment",e[e.ShorthandPropertyAssignment=305]="ShorthandPropertyAssignment",e[e.SpreadAssignment=306]="SpreadAssignment",e[e.EnumMember=307]="EnumMember",e[e.SourceFile=308]="SourceFile",e[e.Bundle=309]="Bundle",e[e.JSDocTypeExpression=310]="JSDocTypeExpression",e[e.JSDocNameReference=311]="JSDocNameReference",e[e.JSDocMemberName=312]="JSDocMemberName",e[e.JSDocAllType=313]="JSDocAllType",e[e.JSDocUnknownType=314]="JSDocUnknownType",e[e.JSDocNullableType=315]="JSDocNullableType",e[e.JSDocNonNullableType=316]="JSDocNonNullableType",e[e.JSDocOptionalType=317]="JSDocOptionalType",e[e.JSDocFunctionType=318]="JSDocFunctionType",e[e.JSDocVariadicType=319]="JSDocVariadicType",e[e.JSDocNamepathType=320]="JSDocNamepathType",e[e.JSDoc=321]="JSDoc",e[e.JSDocComment=321]="JSDocComment",e[e.JSDocText=322]="JSDocText",e[e.JSDocTypeLiteral=323]="JSDocTypeLiteral",e[e.JSDocSignature=324]="JSDocSignature",e[e.JSDocLink=325]="JSDocLink",e[e.JSDocLinkCode=326]="JSDocLinkCode",e[e.JSDocLinkPlain=327]="JSDocLinkPlain",e[e.JSDocTag=328]="JSDocTag",e[e.JSDocAugmentsTag=329]="JSDocAugmentsTag",e[e.JSDocImplementsTag=330]="JSDocImplementsTag",e[e.JSDocAuthorTag=331]="JSDocAuthorTag",e[e.JSDocDeprecatedTag=332]="JSDocDeprecatedTag",e[e.JSDocClassTag=333]="JSDocClassTag",e[e.JSDocPublicTag=334]="JSDocPublicTag",e[e.JSDocPrivateTag=335]="JSDocPrivateTag",e[e.JSDocProtectedTag=336]="JSDocProtectedTag",e[e.JSDocReadonlyTag=337]="JSDocReadonlyTag",e[e.JSDocOverrideTag=338]="JSDocOverrideTag",e[e.JSDocCallbackTag=339]="JSDocCallbackTag",e[e.JSDocOverloadTag=340]="JSDocOverloadTag",e[e.JSDocEnumTag=341]="JSDocEnumTag",e[e.JSDocParameterTag=342]="JSDocParameterTag",e[e.JSDocReturnTag=343]="JSDocReturnTag",e[e.JSDocThisTag=344]="JSDocThisTag",e[e.JSDocTypeTag=345]="JSDocTypeTag",e[e.JSDocTemplateTag=346]="JSDocTemplateTag",e[e.JSDocTypedefTag=347]="JSDocTypedefTag",e[e.JSDocSeeTag=348]="JSDocSeeTag",e[e.JSDocPropertyTag=349]="JSDocPropertyTag",e[e.JSDocThrowsTag=350]="JSDocThrowsTag",e[e.JSDocSatisfiesTag=351]="JSDocSatisfiesTag",e[e.JSDocImportTag=352]="JSDocImportTag",e[e.SyntaxList=353]="SyntaxList",e[e.NotEmittedStatement=354]="NotEmittedStatement",e[e.NotEmittedTypeElement=355]="NotEmittedTypeElement",e[e.PartiallyEmittedExpression=356]="PartiallyEmittedExpression",e[e.CommaListExpression=357]="CommaListExpression",e[e.SyntheticReferenceExpression=358]="SyntheticReferenceExpression",e[e.Count=359]="Count",e[e.FirstAssignment=64]="FirstAssignment",e[e.LastAssignment=79]="LastAssignment",e[e.FirstCompoundAssignment=65]="FirstCompoundAssignment",e[e.LastCompoundAssignment=79]="LastCompoundAssignment",e[e.FirstReservedWord=83]="FirstReservedWord",e[e.LastReservedWord=118]="LastReservedWord",e[e.FirstKeyword=83]="FirstKeyword",e[e.LastKeyword=166]="LastKeyword",e[e.FirstFutureReservedWord=119]="FirstFutureReservedWord",e[e.LastFutureReservedWord=127]="LastFutureReservedWord",e[e.FirstTypeNode=183]="FirstTypeNode",e[e.LastTypeNode=206]="LastTypeNode",e[e.FirstPunctuation=19]="FirstPunctuation",e[e.LastPunctuation=79]="LastPunctuation",e[e.FirstToken=0]="FirstToken",e[e.LastToken=166]="LastToken",e[e.FirstTriviaToken=2]="FirstTriviaToken",e[e.LastTriviaToken=7]="LastTriviaToken",e[e.FirstLiteralToken=9]="FirstLiteralToken",e[e.LastLiteralToken=15]="LastLiteralToken",e[e.FirstTemplateToken=15]="FirstTemplateToken",e[e.LastTemplateToken=18]="LastTemplateToken",e[e.FirstBinaryOperator=30]="FirstBinaryOperator",e[e.LastBinaryOperator=79]="LastBinaryOperator",e[e.FirstStatement=244]="FirstStatement",e[e.LastStatement=260]="LastStatement",e[e.FirstNode=167]="FirstNode",e[e.FirstJSDocNode=310]="FirstJSDocNode",e[e.LastJSDocNode=352]="LastJSDocNode",e[e.FirstJSDocTagNode=328]="FirstJSDocTagNode",e[e.LastJSDocTagNode=352]="LastJSDocTagNode",e[e.FirstContextualKeyword=128]="FirstContextualKeyword",e[e.LastContextualKeyword=166]="LastContextualKeyword",e))(ot||{}),Xn=(e=>(e[e.None=0]="None",e[e.Let=1]="Let",e[e.Const=2]="Const",e[e.Using=4]="Using",e[e.AwaitUsing=6]="AwaitUsing",e[e.NestedNamespace=8]="NestedNamespace",e[e.Synthesized=16]="Synthesized",e[e.Namespace=32]="Namespace",e[e.OptionalChain=64]="OptionalChain",e[e.ExportContext=128]="ExportContext",e[e.ContainsThis=256]="ContainsThis",e[e.HasImplicitReturn=512]="HasImplicitReturn",e[e.HasExplicitReturn=1024]="HasExplicitReturn",e[e.GlobalAugmentation=2048]="GlobalAugmentation",e[e.HasAsyncFunctions=4096]="HasAsyncFunctions",e[e.DisallowInContext=8192]="DisallowInContext",e[e.YieldContext=16384]="YieldContext",e[e.DecoratorContext=32768]="DecoratorContext",e[e.AwaitContext=65536]="AwaitContext",e[e.DisallowConditionalTypesContext=131072]="DisallowConditionalTypesContext",e[e.ThisNodeHasError=262144]="ThisNodeHasError",e[e.JavaScriptFile=524288]="JavaScriptFile",e[e.ThisNodeOrAnySubNodesHasError=1048576]="ThisNodeOrAnySubNodesHasError",e[e.HasAggregatedChildData=2097152]="HasAggregatedChildData",e[e.PossiblyContainsDynamicImport=4194304]="PossiblyContainsDynamicImport",e[e.PossiblyContainsImportMeta=8388608]="PossiblyContainsImportMeta",e[e.JSDoc=16777216]="JSDoc",e[e.Ambient=33554432]="Ambient",e[e.InWithStatement=67108864]="InWithStatement",e[e.JsonFile=134217728]="JsonFile",e[e.TypeCached=268435456]="TypeCached",e[e.Deprecated=536870912]="Deprecated",e[e.BlockScoped=7]="BlockScoped",e[e.Constant=6]="Constant",e[e.ReachabilityCheckFlags=1536]="ReachabilityCheckFlags",e[e.ReachabilityAndEmitFlags=5632]="ReachabilityAndEmitFlags",e[e.ContextFlags=101441536]="ContextFlags",e[e.TypeExcludesFlags=81920]="TypeExcludesFlags",e[e.PermanentlySetIncrementalFlags=12582912]="PermanentlySetIncrementalFlags",e[e.IdentifierHasExtendedUnicodeEscape=256]="IdentifierHasExtendedUnicodeEscape",e[e.IdentifierIsInJSDocNamespace=4096]="IdentifierIsInJSDocNamespace",e))(Xn||{}),AC=(e=>(e[e.None=0]="None",e[e.Public=1]="Public",e[e.Private=2]="Private",e[e.Protected=4]="Protected",e[e.Readonly=8]="Readonly",e[e.Override=16]="Override",e[e.Export=32]="Export",e[e.Abstract=64]="Abstract",e[e.Ambient=128]="Ambient",e[e.Static=256]="Static",e[e.Accessor=512]="Accessor",e[e.Async=1024]="Async",e[e.Default=2048]="Default",e[e.Const=4096]="Const",e[e.In=8192]="In",e[e.Out=16384]="Out",e[e.Decorator=32768]="Decorator",e[e.Deprecated=65536]="Deprecated",e[e.JSDocPublic=8388608]="JSDocPublic",e[e.JSDocPrivate=16777216]="JSDocPrivate",e[e.JSDocProtected=33554432]="JSDocProtected",e[e.JSDocReadonly=67108864]="JSDocReadonly",e[e.JSDocOverride=134217728]="JSDocOverride",e[e.SyntacticOrJSDocModifiers=31]="SyntacticOrJSDocModifiers",e[e.SyntacticOnlyModifiers=65504]="SyntacticOnlyModifiers",e[e.SyntacticModifiers=65535]="SyntacticModifiers",e[e.JSDocCacheOnlyModifiers=260046848]="JSDocCacheOnlyModifiers",e[e.JSDocOnlyModifiers=65536]="JSDocOnlyModifiers",e[e.NonCacheOnlyModifiers=131071]="NonCacheOnlyModifiers",e[e.HasComputedJSDocModifiers=268435456]="HasComputedJSDocModifiers",e[e.HasComputedFlags=536870912]="HasComputedFlags",e[e.AccessibilityModifier=7]="AccessibilityModifier",e[e.ParameterPropertyModifier=31]="ParameterPropertyModifier",e[e.NonPublicAccessibilityModifier=6]="NonPublicAccessibilityModifier",e[e.TypeScriptModifier=28895]="TypeScriptModifier",e[e.ExportDefault=2080]="ExportDefault",e[e.All=131071]="All",e[e.Modifier=98303]="Modifier",e))(AC||{}),vC=(e=>(e[e.None=0]="None",e[e.Succeeded=1]="Succeeded",e[e.Failed=2]="Failed",e[e.ReportsUnmeasurable=8]="ReportsUnmeasurable",e[e.ReportsUnreliable=16]="ReportsUnreliable",e[e.ReportsMask=24]="ReportsMask",e[e.ComplexityOverflow=32]="ComplexityOverflow",e[e.StackDepthOverflow=64]="StackDepthOverflow",e[e.Overflow=96]="Overflow",e))(vC||{}),q0=(e=>(e[e.Unreachable=1]="Unreachable",e[e.Start=2]="Start",e[e.BranchLabel=4]="BranchLabel",e[e.LoopLabel=8]="LoopLabel",e[e.Assignment=16]="Assignment",e[e.TrueCondition=32]="TrueCondition",e[e.FalseCondition=64]="FalseCondition",e[e.SwitchClause=128]="SwitchClause",e[e.ArrayMutation=256]="ArrayMutation",e[e.Call=512]="Call",e[e.ReduceLabel=1024]="ReduceLabel",e[e.Referenced=2048]="Referenced",e[e.Shared=4096]="Shared",e[e.Label=12]="Label",e[e.Condition=96]="Condition",e))(q0||{}),SC=(e=>(e[e.None=0]="None",e[e.FunctionScopedVariable=1]="FunctionScopedVariable",e[e.BlockScopedVariable=2]="BlockScopedVariable",e[e.Property=4]="Property",e[e.EnumMember=8]="EnumMember",e[e.Function=16]="Function",e[e.Class=32]="Class",e[e.Interface=64]="Interface",e[e.ConstEnum=128]="ConstEnum",e[e.RegularEnum=256]="RegularEnum",e[e.ValueModule=512]="ValueModule",e[e.NamespaceModule=1024]="NamespaceModule",e[e.TypeLiteral=2048]="TypeLiteral",e[e.ObjectLiteral=4096]="ObjectLiteral",e[e.Method=8192]="Method",e[e.Constructor=16384]="Constructor",e[e.GetAccessor=32768]="GetAccessor",e[e.SetAccessor=65536]="SetAccessor",e[e.Signature=131072]="Signature",e[e.TypeParameter=262144]="TypeParameter",e[e.TypeAlias=524288]="TypeAlias",e[e.ExportValue=1048576]="ExportValue",e[e.Alias=2097152]="Alias",e[e.Prototype=4194304]="Prototype",e[e.ExportStar=8388608]="ExportStar",e[e.Optional=16777216]="Optional",e[e.Transient=33554432]="Transient",e[e.Assignment=67108864]="Assignment",e[e.ModuleExports=134217728]="ModuleExports",e[e.All=-1]="All",e[e.Enum=384]="Enum",e[e.Variable=3]="Variable",e[e.Value=111551]="Value",e[e.Type=788968]="Type",e[e.Namespace=1920]="Namespace",e[e.Module=1536]="Module",e[e.Accessor=98304]="Accessor",e[e.FunctionScopedVariableExcludes=111550]="FunctionScopedVariableExcludes",e[e.BlockScopedVariableExcludes=111551]="BlockScopedVariableExcludes",e[e.ParameterExcludes=111551]="ParameterExcludes",e[e.PropertyExcludes=0]="PropertyExcludes",e[e.EnumMemberExcludes=900095]="EnumMemberExcludes",e[e.FunctionExcludes=110991]="FunctionExcludes",e[e.ClassExcludes=899503]="ClassExcludes",e[e.InterfaceExcludes=788872]="InterfaceExcludes",e[e.RegularEnumExcludes=899327]="RegularEnumExcludes",e[e.ConstEnumExcludes=899967]="ConstEnumExcludes",e[e.ValueModuleExcludes=110735]="ValueModuleExcludes",e[e.NamespaceModuleExcludes=0]="NamespaceModuleExcludes",e[e.MethodExcludes=103359]="MethodExcludes",e[e.GetAccessorExcludes=46015]="GetAccessorExcludes",e[e.SetAccessorExcludes=78783]="SetAccessorExcludes",e[e.AccessorExcludes=13247]="AccessorExcludes",e[e.TypeParameterExcludes=526824]="TypeParameterExcludes",e[e.TypeAliasExcludes=788968]="TypeAliasExcludes",e[e.AliasExcludes=2097152]="AliasExcludes",e[e.ModuleMember=2623475]="ModuleMember",e[e.ExportHasLocal=944]="ExportHasLocal",e[e.BlockScoped=418]="BlockScoped",e[e.PropertyOrAccessor=98308]="PropertyOrAccessor",e[e.ClassMember=106500]="ClassMember",e[e.ExportSupportsDefaultModifier=112]="ExportSupportsDefaultModifier",e[e.ExportDoesNotSupportDefaultModifier=-113]="ExportDoesNotSupportDefaultModifier",e[e.Classifiable=2885600]="Classifiable",e[e.LateBindingContainer=6256]="LateBindingContainer",e))(SC||{}),_C=(e=>(e[e.None=0]="None",e[e.TypeChecked=1]="TypeChecked",e[e.LexicalThis=2]="LexicalThis",e[e.CaptureThis=4]="CaptureThis",e[e.CaptureNewTarget=8]="CaptureNewTarget",e[e.SuperInstance=16]="SuperInstance",e[e.SuperStatic=32]="SuperStatic",e[e.ContextChecked=64]="ContextChecked",e[e.MethodWithSuperPropertyAccessInAsync=128]="MethodWithSuperPropertyAccessInAsync",e[e.MethodWithSuperPropertyAssignmentInAsync=256]="MethodWithSuperPropertyAssignmentInAsync",e[e.CaptureArguments=512]="CaptureArguments",e[e.EnumValuesComputed=1024]="EnumValuesComputed",e[e.LexicalModuleMergesWithClass=2048]="LexicalModuleMergesWithClass",e[e.LoopWithCapturedBlockScopedBinding=4096]="LoopWithCapturedBlockScopedBinding",e[e.ContainsCapturedBlockScopeBinding=8192]="ContainsCapturedBlockScopeBinding",e[e.CapturedBlockScopedBinding=16384]="CapturedBlockScopedBinding",e[e.BlockScopedBindingInLoop=32768]="BlockScopedBindingInLoop",e[e.NeedsLoopOutParameter=65536]="NeedsLoopOutParameter",e[e.AssignmentsMarked=131072]="AssignmentsMarked",e[e.ContainsConstructorReference=262144]="ContainsConstructorReference",e[e.ConstructorReference=536870912]="ConstructorReference",e[e.ContainsClassWithPrivateIdentifiers=1048576]="ContainsClassWithPrivateIdentifiers",e[e.ContainsSuperPropertyInStaticInitializer=2097152]="ContainsSuperPropertyInStaticInitializer",e[e.InCheckIdentifier=4194304]="InCheckIdentifier",e[e.PartiallyTypeChecked=8388608]="PartiallyTypeChecked",e[e.LazyFlags=539358128]="LazyFlags",e))(_C||{}),un=(e=>(e[e.Any=1]="Any",e[e.Unknown=2]="Unknown",e[e.String=4]="String",e[e.Number=8]="Number",e[e.Boolean=16]="Boolean",e[e.Enum=32]="Enum",e[e.BigInt=64]="BigInt",e[e.StringLiteral=128]="StringLiteral",e[e.NumberLiteral=256]="NumberLiteral",e[e.BooleanLiteral=512]="BooleanLiteral",e[e.EnumLiteral=1024]="EnumLiteral",e[e.BigIntLiteral=2048]="BigIntLiteral",e[e.ESSymbol=4096]="ESSymbol",e[e.UniqueESSymbol=8192]="UniqueESSymbol",e[e.Void=16384]="Void",e[e.Undefined=32768]="Undefined",e[e.Null=65536]="Null",e[e.Never=131072]="Never",e[e.TypeParameter=262144]="TypeParameter",e[e.Object=524288]="Object",e[e.Union=1048576]="Union",e[e.Intersection=2097152]="Intersection",e[e.Index=4194304]="Index",e[e.IndexedAccess=8388608]="IndexedAccess",e[e.Conditional=16777216]="Conditional",e[e.Substitution=33554432]="Substitution",e[e.NonPrimitive=67108864]="NonPrimitive",e[e.TemplateLiteral=134217728]="TemplateLiteral",e[e.StringMapping=268435456]="StringMapping",e[e.Reserved1=536870912]="Reserved1",e[e.Reserved2=1073741824]="Reserved2",e[e.AnyOrUnknown=3]="AnyOrUnknown",e[e.Nullable=98304]="Nullable",e[e.Literal=2944]="Literal",e[e.Unit=109472]="Unit",e[e.Freshable=2976]="Freshable",e[e.StringOrNumberLiteral=384]="StringOrNumberLiteral",e[e.StringOrNumberLiteralOrUnique=8576]="StringOrNumberLiteralOrUnique",e[e.DefinitelyFalsy=117632]="DefinitelyFalsy",e[e.PossiblyFalsy=117724]="PossiblyFalsy",e[e.Intrinsic=67359327]="Intrinsic",e[e.StringLike=402653316]="StringLike",e[e.NumberLike=296]="NumberLike",e[e.BigIntLike=2112]="BigIntLike",e[e.BooleanLike=528]="BooleanLike",e[e.EnumLike=1056]="EnumLike",e[e.ESSymbolLike=12288]="ESSymbolLike",e[e.VoidLike=49152]="VoidLike",e[e.Primitive=402784252]="Primitive",e[e.DefinitelyNonNullable=470302716]="DefinitelyNonNullable",e[e.DisjointDomains=469892092]="DisjointDomains",e[e.UnionOrIntersection=3145728]="UnionOrIntersection",e[e.StructuredType=3670016]="StructuredType",e[e.TypeVariable=8650752]="TypeVariable",e[e.InstantiableNonPrimitive=58982400]="InstantiableNonPrimitive",e[e.InstantiablePrimitive=406847488]="InstantiablePrimitive",e[e.Instantiable=465829888]="Instantiable",e[e.StructuredOrInstantiable=469499904]="StructuredOrInstantiable",e[e.ObjectFlagsType=3899393]="ObjectFlagsType",e[e.Simplifiable=25165824]="Simplifiable",e[e.Singleton=67358815]="Singleton",e[e.Narrowable=536624127]="Narrowable",e[e.IncludesMask=473694207]="IncludesMask",e[e.IncludesMissingType=262144]="IncludesMissingType",e[e.IncludesNonWideningType=4194304]="IncludesNonWideningType",e[e.IncludesWildcard=8388608]="IncludesWildcard",e[e.IncludesEmptyObject=16777216]="IncludesEmptyObject",e[e.IncludesInstantiable=33554432]="IncludesInstantiable",e[e.IncludesConstrainedTypeVariable=536870912]="IncludesConstrainedTypeVariable",e[e.IncludesError=1073741824]="IncludesError",e[e.NotPrimitiveUnion=36323331]="NotPrimitiveUnion",e))(un||{}),FC=(e=>(e[e.None=0]="None",e[e.Class=1]="Class",e[e.Interface=2]="Interface",e[e.Reference=4]="Reference",e[e.Tuple=8]="Tuple",e[e.Anonymous=16]="Anonymous",e[e.Mapped=32]="Mapped",e[e.Instantiated=64]="Instantiated",e[e.ObjectLiteral=128]="ObjectLiteral",e[e.EvolvingArray=256]="EvolvingArray",e[e.ObjectLiteralPatternWithComputedProperties=512]="ObjectLiteralPatternWithComputedProperties",e[e.ReverseMapped=1024]="ReverseMapped",e[e.JsxAttributes=2048]="JsxAttributes",e[e.JSLiteral=4096]="JSLiteral",e[e.FreshLiteral=8192]="FreshLiteral",e[e.ArrayLiteral=16384]="ArrayLiteral",e[e.PrimitiveUnion=32768]="PrimitiveUnion",e[e.ContainsWideningType=65536]="ContainsWideningType",e[e.ContainsObjectOrArrayLiteral=131072]="ContainsObjectOrArrayLiteral",e[e.NonInferrableType=262144]="NonInferrableType",e[e.CouldContainTypeVariablesComputed=524288]="CouldContainTypeVariablesComputed",e[e.CouldContainTypeVariables=1048576]="CouldContainTypeVariables",e[e.SingleSignatureType=134217728]="SingleSignatureType",e[e.ClassOrInterface=3]="ClassOrInterface",e[e.RequiresWidening=196608]="RequiresWidening",e[e.PropagatingFlags=458752]="PropagatingFlags",e[e.InstantiatedMapped=96]="InstantiatedMapped",e[e.ObjectTypeKindMask=1343]="ObjectTypeKindMask",e[e.ContainsSpread=2097152]="ContainsSpread",e[e.ObjectRestType=4194304]="ObjectRestType",e[e.InstantiationExpressionType=8388608]="InstantiationExpressionType",e[e.IsClassInstanceClone=16777216]="IsClassInstanceClone",e[e.IdenticalBaseTypeCalculated=33554432]="IdenticalBaseTypeCalculated",e[e.IdenticalBaseTypeExists=67108864]="IdenticalBaseTypeExists",e[e.IsGenericTypeComputed=2097152]="IsGenericTypeComputed",e[e.IsGenericObjectType=4194304]="IsGenericObjectType",e[e.IsGenericIndexType=8388608]="IsGenericIndexType",e[e.IsGenericType=12582912]="IsGenericType",e[e.ContainsIntersections=16777216]="ContainsIntersections",e[e.IsUnknownLikeUnionComputed=33554432]="IsUnknownLikeUnionComputed",e[e.IsUnknownLikeUnion=67108864]="IsUnknownLikeUnion",e[e.IsNeverIntersectionComputed=16777216]="IsNeverIntersectionComputed",e[e.IsNeverIntersection=33554432]="IsNeverIntersection",e[e.IsConstrainedTypeVariable=67108864]="IsConstrainedTypeVariable",e))(FC||{}),kC=(e=>(e[e.None=0]="None",e[e.HasRestParameter=1]="HasRestParameter",e[e.HasLiteralTypes=2]="HasLiteralTypes",e[e.Abstract=4]="Abstract",e[e.IsInnerCallChain=8]="IsInnerCallChain",e[e.IsOuterCallChain=16]="IsOuterCallChain",e[e.IsUntypedSignatureInJSFile=32]="IsUntypedSignatureInJSFile",e[e.IsNonInferrable=64]="IsNonInferrable",e[e.IsSignatureCandidateForOverloadFailure=128]="IsSignatureCandidateForOverloadFailure",e[e.PropagatingFlags=167]="PropagatingFlags",e[e.CallChainFlags=24]="CallChainFlags",e))(kC||{}),ki=(e=>(e[e.Unknown=0]="Unknown",e[e.JS=1]="JS",e[e.JSX=2]="JSX",e[e.TS=3]="TS",e[e.TSX=4]="TSX",e[e.External=5]="External",e[e.JSON=6]="JSON",e[e.Deferred=7]="Deferred",e))(ki||{}),Qg=(e=>(e[e.ES3=0]="ES3",e[e.ES5=1]="ES5",e[e.ES2015=2]="ES2015",e[e.ES2016=3]="ES2016",e[e.ES2017=4]="ES2017",e[e.ES2018=5]="ES2018",e[e.ES2019=6]="ES2019",e[e.ES2020=7]="ES2020",e[e.ES2021=8]="ES2021",e[e.ES2022=9]="ES2022",e[e.ES2023=10]="ES2023",e[e.ES2024=11]="ES2024",e[e.ESNext=99]="ESNext",e[e.JSON=100]="JSON",e[e.Latest=99]="Latest",e))(Qg||{}),wC=(e=>(e[e.Standard=0]="Standard",e[e.JSX=1]="JSX",e))(wC||{}),ds=(e=>(e.Ts=".ts",e.Tsx=".tsx",e.Dts=".d.ts",e.Js=".js",e.Jsx=".jsx",e.Json=".json",e.TsBuildInfo=".tsbuildinfo",e.Mjs=".mjs",e.Mts=".mts",e.Dmts=".d.mts",e.Cjs=".cjs",e.Cts=".cts",e.Dcts=".d.cts",e))(ds||{}),PC=(e=>(e[e.None=0]="None",e[e.ContainsTypeScript=1]="ContainsTypeScript",e[e.ContainsJsx=2]="ContainsJsx",e[e.ContainsESNext=4]="ContainsESNext",e[e.ContainsES2022=8]="ContainsES2022",e[e.ContainsES2021=16]="ContainsES2021",e[e.ContainsES2020=32]="ContainsES2020",e[e.ContainsES2019=64]="ContainsES2019",e[e.ContainsES2018=128]="ContainsES2018",e[e.ContainsES2017=256]="ContainsES2017",e[e.ContainsES2016=512]="ContainsES2016",e[e.ContainsES2015=1024]="ContainsES2015",e[e.ContainsGenerator=2048]="ContainsGenerator",e[e.ContainsDestructuringAssignment=4096]="ContainsDestructuringAssignment",e[e.ContainsTypeScriptClassSyntax=8192]="ContainsTypeScriptClassSyntax",e[e.ContainsLexicalThis=16384]="ContainsLexicalThis",e[e.ContainsRestOrSpread=32768]="ContainsRestOrSpread",e[e.ContainsObjectRestOrSpread=65536]="ContainsObjectRestOrSpread",e[e.ContainsComputedPropertyName=131072]="ContainsComputedPropertyName",e[e.ContainsBlockScopedBinding=262144]="ContainsBlockScopedBinding",e[e.ContainsBindingPattern=524288]="ContainsBindingPattern",e[e.ContainsYield=1048576]="ContainsYield",e[e.ContainsAwait=2097152]="ContainsAwait",e[e.ContainsHoistedDeclarationOrCompletion=4194304]="ContainsHoistedDeclarationOrCompletion",e[e.ContainsDynamicImport=8388608]="ContainsDynamicImport",e[e.ContainsClassFields=16777216]="ContainsClassFields",e[e.ContainsDecorators=33554432]="ContainsDecorators",e[e.ContainsPossibleTopLevelAwait=67108864]="ContainsPossibleTopLevelAwait",e[e.ContainsLexicalSuper=134217728]="ContainsLexicalSuper",e[e.ContainsUpdateExpressionForIdentifier=268435456]="ContainsUpdateExpressionForIdentifier",e[e.ContainsPrivateIdentifierInExpression=536870912]="ContainsPrivateIdentifierInExpression",e[e.HasComputedFlags=-2147483648]="HasComputedFlags",e[e.AssertTypeScript=1]="AssertTypeScript",e[e.AssertJsx=2]="AssertJsx",e[e.AssertESNext=4]="AssertESNext",e[e.AssertES2022=8]="AssertES2022",e[e.AssertES2021=16]="AssertES2021",e[e.AssertES2020=32]="AssertES2020",e[e.AssertES2019=64]="AssertES2019",e[e.AssertES2018=128]="AssertES2018",e[e.AssertES2017=256]="AssertES2017",e[e.AssertES2016=512]="AssertES2016",e[e.AssertES2015=1024]="AssertES2015",e[e.AssertGenerator=2048]="AssertGenerator",e[e.AssertDestructuringAssignment=4096]="AssertDestructuringAssignment",e[e.OuterExpressionExcludes=-2147483648]="OuterExpressionExcludes",e[e.PropertyAccessExcludes=-2147483648]="PropertyAccessExcludes",e[e.NodeExcludes=-2147483648]="NodeExcludes",e[e.ArrowFunctionExcludes=-2072174592]="ArrowFunctionExcludes",e[e.FunctionExcludes=-1937940480]="FunctionExcludes",e[e.ConstructorExcludes=-1937948672]="ConstructorExcludes",e[e.MethodOrAccessorExcludes=-2005057536]="MethodOrAccessorExcludes",e[e.PropertyExcludes=-2013249536]="PropertyExcludes",e[e.ClassExcludes=-2147344384]="ClassExcludes",e[e.ModuleExcludes=-1941676032]="ModuleExcludes",e[e.TypeExcludes=-2]="TypeExcludes",e[e.ObjectLiteralExcludes=-2147278848]="ObjectLiteralExcludes",e[e.ArrayLiteralOrCallOrNewExcludes=-2147450880]="ArrayLiteralOrCallOrNewExcludes",e[e.VariableDeclarationListExcludes=-2146893824]="VariableDeclarationListExcludes",e[e.ParameterExcludes=-2147483648]="ParameterExcludes",e[e.CatchClauseExcludes=-2147418112]="CatchClauseExcludes",e[e.BindingPatternExcludes=-2147450880]="BindingPatternExcludes",e[e.ContainsLexicalThisOrSuper=134234112]="ContainsLexicalThisOrSuper",e[e.PropertyNamePropagatingFlags=134234112]="PropertyNamePropagatingFlags",e))(PC||{}),NC=(e=>(e[e.TabStop=0]="TabStop",e[e.Placeholder=1]="Placeholder",e[e.Choice=2]="Choice",e[e.Variable=3]="Variable",e))(NC||{}),IC=(e=>(e[e.None=0]="None",e[e.SingleLine=1]="SingleLine",e[e.MultiLine=2]="MultiLine",e[e.AdviseOnEmitNode=4]="AdviseOnEmitNode",e[e.NoSubstitution=8]="NoSubstitution",e[e.CapturesThis=16]="CapturesThis",e[e.NoLeadingSourceMap=32]="NoLeadingSourceMap",e[e.NoTrailingSourceMap=64]="NoTrailingSourceMap",e[e.NoSourceMap=96]="NoSourceMap",e[e.NoNestedSourceMaps=128]="NoNestedSourceMaps",e[e.NoTokenLeadingSourceMaps=256]="NoTokenLeadingSourceMaps",e[e.NoTokenTrailingSourceMaps=512]="NoTokenTrailingSourceMaps",e[e.NoTokenSourceMaps=768]="NoTokenSourceMaps",e[e.NoLeadingComments=1024]="NoLeadingComments",e[e.NoTrailingComments=2048]="NoTrailingComments",e[e.NoComments=3072]="NoComments",e[e.NoNestedComments=4096]="NoNestedComments",e[e.HelperName=8192]="HelperName",e[e.ExportName=16384]="ExportName",e[e.LocalName=32768]="LocalName",e[e.InternalName=65536]="InternalName",e[e.Indented=131072]="Indented",e[e.NoIndentation=262144]="NoIndentation",e[e.AsyncFunctionBody=524288]="AsyncFunctionBody",e[e.ReuseTempVariableScope=1048576]="ReuseTempVariableScope",e[e.CustomPrologue=2097152]="CustomPrologue",e[e.NoHoisting=4194304]="NoHoisting",e[e.Iterator=8388608]="Iterator",e[e.NoAsciiEscaping=16777216]="NoAsciiEscaping",e))(IC||{}),Dc={RegularExpressionFlagsUnicode:2,RegularExpressionFlagsSticky:2,RegularExpressionFlagsDotAll:5,RegularExpressionFlagsHasIndices:9,RegularExpressionFlagsUnicodeSets:11},BC={reference:{args:[{name:"types",optional:!0,captureSpan:!0},{name:"lib",optional:!0,captureSpan:!0},{name:"path",optional:!0,captureSpan:!0},{name:"no-default-lib",optional:!0},{name:"resolution-mode",optional:!0},{name:"preserve",optional:!0}],kind:1},"amd-dependency":{args:[{name:"path"},{name:"name",optional:!0}],kind:1},"amd-module":{args:[{name:"name"}],kind:1},"ts-check":{kind:2},"ts-nocheck":{kind:2},jsx:{args:[{name:"factory"}],kind:4},jsxfrag:{args:[{name:"factory"}],kind:4},jsximportsource:{args:[{name:"factory"}],kind:4},jsxruntime:{args:[{name:"factory"}],kind:4}},kc=(e=>(e[e.ParseAll=0]="ParseAll",e[e.ParseNone=1]="ParseNone",e[e.ParseForTypeErrors=2]="ParseForTypeErrors",e[e.ParseForTypeInfo=3]="ParseForTypeInfo",e))(kc||{}),Ni="/",bJ="\\",T3="://",CJ=/\\/g;function AJ(e){return e===47||e===92}function vJ(e,t){return e.length>t.length&&DJ(e,t)}function Yg(e){return e.length>0&&AJ(e.charCodeAt(e.length-1))}function E3(e){return e>=97&&e<=122||e>=65&&e<=90}function SJ(e,t){let r=e.charCodeAt(t);if(r===58)return t+1;if(r===37&&e.charCodeAt(t+1)===51){let n=e.charCodeAt(t+2);if(n===97||n===65)return t+3}return-1}function _J(e){if(!e)return 0;let t=e.charCodeAt(0);if(t===47||t===92){if(e.charCodeAt(1)!==t)return 1;let n=e.indexOf(t===47?Ni:bJ,2);return n<0?e.length:n+1}if(E3(t)&&e.charCodeAt(1)===58){let n=e.charCodeAt(2);if(n===47||n===92)return 3;if(e.length===2)return 2}let r=e.indexOf(T3);if(r!==-1){let n=r+T3.length,s=e.indexOf(Ni,n);if(s!==-1){let i=e.slice(0,r),o=e.slice(n,s);if(i==="file"&&(o===""||o==="localhost")&&E3(e.charCodeAt(s+1))){let l=SJ(e,s+2);if(l!==-1){if(e.charCodeAt(l)===47)return~(l+1);if(l===e.length)return~l}}return~(s+1)}return~e.length}return 0}function K0(e){let t=_J(e);return t<0?~t:t}function LC(e,t,r){if(e=Zg(e),K0(e)===e.length)return"";e=Gf(e);let n=e.slice(Math.max(K0(e),e.lastIndexOf(Ni)+1)),s;return s?n.slice(0,n.length-s.length):n}function b3(e,t,r){if(Xf(t,".")||(t="."+t),e.length>=t.length&&e.charCodeAt(e.length-t.length)===46){let n=e.slice(e.length-t.length);if(r(n,t))return n}}function FJ(e,t,r){if(typeof t=="string")return b3(e,t,r)||"";for(let n of t){let s=b3(e,n,r);if(s)return s}return""}function kJ(e,t,r){if(t)return FJ(Gf(e),t,fJ);let n=LC(e),s=n.lastIndexOf(".");return s>=0?n.substring(s):""}function Zg(e){return e.includes("\\")?e.replace(CJ,Ni):e}function wJ(e,t){let r=K0(e);e=Zg(e);let n=OC(e);if(n!==void 0)return n.length>r?Gf(n):n;let s=e.length,i=e.substring(0,r),o,l=r,u=l,f=l,p=r!==0;for(;l<s;){u=l;let d=e.charCodeAt(l);for(;d===47&&l+1<s;)l++,d=e.charCodeAt(l);l>u&&(o??(o=e.substring(0,u-1)),u=l);let y=e.indexOf(Ni,l+1);y===-1&&(y=s);let m=y-u;if(m===1&&e.charCodeAt(l)===46)o??(o=e.substring(0,f));else if(m===2&&e.charCodeAt(l)===46&&e.charCodeAt(l+1)===46)if(!p)o!==void 0?o+=o.length===r?"..":"/..":f=l+2;else if(o===void 0)f-2>=0?o=e.substring(0,Math.max(r,e.lastIndexOf(Ni,f-2))):o=e.substring(0,f);else{let D=o.lastIndexOf(Ni);D!==-1?o=o.substring(0,Math.max(r,D)):o=i,o.length===r&&(p=r!==0)}else o!==void 0?(o.length!==r&&(o+=Ni),p=!0,o+=e.substring(u,y)):(p=!0,f=y);l=y+1}return o??(s>r?Gf(e):e)}function PJ(e){e=Zg(e);let t=OC(e);return t!==void 0?t:(t=wJ(e),t&&Yg(e)?NJ(t):t)}function OC(e){if(!C3.test(e))return e;let t=e.replace(/\/\.\//g,"/");if(t.startsWith("./")&&(t=t.slice(2)),t!==e&&(e=t,!C3.test(e)))return e}function Gf(e){return Yg(e)?e.substr(0,e.length-1):e}function NJ(e){return Yg(e)?e:e+Ni}var C3=/\/\/|(?:^|\/)\.\.?(?:$|\/)/;function ue(e,t,r,n,s,i,o){return{code:e,category:t,key:r,message:n,reportsUnnecessary:s,elidedInCompatabilityPyramid:i,reportsDeprecated:o}}var U={Unterminated_string_literal:ue(1002,1,"Unterminated_string_literal_1002","Unterminated string literal."),Identifier_expected:ue(1003,1,"Identifier_expected_1003","Identifier expected."),_0_expected:ue(1005,1,"_0_expected_1005","'{0}' expected."),The_parser_expected_to_find_a_1_to_match_the_0_token_here:ue(1007,1,"The_parser_expected_to_find_a_1_to_match_the_0_token_here_1007","The parser expected to find a '{1}' to match the '{0}' token here."),Asterisk_Slash_expected:ue(1010,1,"Asterisk_Slash_expected_1010","'*/' expected."),An_element_access_expression_should_take_an_argument:ue(1011,1,"An_element_access_expression_should_take_an_argument_1011","An element access expression should take an argument."),Unexpected_token:ue(1012,1,"Unexpected_token_1012","Unexpected token."),super_must_be_followed_by_an_argument_list_or_member_access:ue(1034,1,"super_must_be_followed_by_an_argument_list_or_member_access_1034","'super' must be followed by an argument list or member access."),Unexpected_token_A_constructor_method_accessor_or_property_was_expected:ue(1068,1,"Unexpected_token_A_constructor_method_accessor_or_property_was_expected_1068","Unexpected token. A constructor, method, accessor, or property was expected."),Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces:ue(1069,1,"Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces_1069","Unexpected token. A type parameter name was expected without curly braces."),Invalid_reference_directive_syntax:ue(1084,1,"Invalid_reference_directive_syntax_1084","Invalid 'reference' directive syntax."),Expression_expected:ue(1109,1,"Expression_expected_1109","Expression expected."),Type_expected:ue(1110,1,"Type_expected_1110","Type expected."),Octal_literals_are_not_allowed_Use_the_syntax_0:ue(1121,1,"Octal_literals_are_not_allowed_Use_the_syntax_0_1121","Octal literals are not allowed. Use the syntax '{0}'."),Digit_expected:ue(1124,1,"Digit_expected_1124","Digit expected."),Hexadecimal_digit_expected:ue(1125,1,"Hexadecimal_digit_expected_1125","Hexadecimal digit expected."),Unexpected_end_of_text:ue(1126,1,"Unexpected_end_of_text_1126","Unexpected end of text."),Invalid_character:ue(1127,1,"Invalid_character_1127","Invalid character."),Declaration_or_statement_expected:ue(1128,1,"Declaration_or_statement_expected_1128","Declaration or statement expected."),Statement_expected:ue(1129,1,"Statement_expected_1129","Statement expected."),case_or_default_expected:ue(1130,1,"case_or_default_expected_1130","'case' or 'default' expected."),Property_or_signature_expected:ue(1131,1,"Property_or_signature_expected_1131","Property or signature expected."),Enum_member_expected:ue(1132,1,"Enum_member_expected_1132","Enum member expected."),Variable_declaration_expected:ue(1134,1,"Variable_declaration_expected_1134","Variable declaration expected."),Argument_expression_expected:ue(1135,1,"Argument_expression_expected_1135","Argument expression expected."),Property_assignment_expected:ue(1136,1,"Property_assignment_expected_1136","Property assignment expected."),Expression_or_comma_expected:ue(1137,1,"Expression_or_comma_expected_1137","Expression or comma expected."),Parameter_declaration_expected:ue(1138,1,"Parameter_declaration_expected_1138","Parameter declaration expected."),Type_parameter_declaration_expected:ue(1139,1,"Type_parameter_declaration_expected_1139","Type parameter declaration expected."),Type_argument_expected:ue(1140,1,"Type_argument_expected_1140","Type argument expected."),Line_break_not_permitted_here:ue(1142,1,"Line_break_not_permitted_here_1142","Line break not permitted here."),or_expected:ue(1144,1,"or_expected_1144","'{' or ';' expected."),or_JSX_element_expected:ue(1145,1,"or_JSX_element_expected_1145","'{' or JSX element expected."),Declaration_expected:ue(1146,1,"Declaration_expected_1146","Declaration expected."),Unterminated_template_literal:ue(1160,1,"Unterminated_template_literal_1160","Unterminated template literal."),Unterminated_regular_expression_literal:ue(1161,1,"Unterminated_regular_expression_literal_1161","Unterminated regular expression literal."),Binary_digit_expected:ue(1177,1,"Binary_digit_expected_1177","Binary digit expected."),Octal_digit_expected:ue(1178,1,"Octal_digit_expected_1178","Octal digit expected."),Unexpected_token_expected:ue(1179,1,"Unexpected_token_expected_1179","Unexpected token. '{' expected."),Property_destructuring_pattern_expected:ue(1180,1,"Property_destructuring_pattern_expected_1180","Property destructuring pattern expected."),Array_element_destructuring_pattern_expected:ue(1181,1,"Array_element_destructuring_pattern_expected_1181","Array element destructuring pattern expected."),Merge_conflict_marker_encountered:ue(1185,1,"Merge_conflict_marker_encountered_1185","Merge conflict marker encountered."),An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive:ue(1198,1,"An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive_1198","An extended Unicode escape value must be between 0x0 and 0x10FFFF inclusive."),Unterminated_Unicode_escape_sequence:ue(1199,1,"Unterminated_Unicode_escape_sequence_1199","Unterminated Unicode escape sequence."),Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0:ue(1209,1,"Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0_1209","Invalid optional chain from new expression. Did you mean to call '{0}()'?"),_0_tag_already_specified:ue(1223,1,"_0_tag_already_specified_1223","'{0}' tag already specified."),A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods:ue(1228,1,"A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods_1228","A type predicate is only allowed in return type position for functions and methods."),Keywords_cannot_contain_escape_characters:ue(1260,1,"Keywords_cannot_contain_escape_characters_1260","Keywords cannot contain escape characters."),An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal:ue(1351,1,"An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal_1351","An identifier or keyword cannot immediately follow a numeric literal."),A_bigint_literal_cannot_use_exponential_notation:ue(1352,1,"A_bigint_literal_cannot_use_exponential_notation_1352","A bigint literal cannot use exponential notation."),A_bigint_literal_must_be_an_integer:ue(1353,1,"A_bigint_literal_must_be_an_integer_1353","A bigint literal must be an integer."),An_enum_member_name_must_be_followed_by_a_or:ue(1357,1,"An_enum_member_name_must_be_followed_by_a_or_1357","An enum member name must be followed by a ',', '=', or '}'."),Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:ue(1359,1,"Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here_1359","Identifier expected. '{0}' is a reserved word that cannot be used here."),Did_you_mean_0:ue(1369,3,"Did_you_mean_0_1369","Did you mean '{0}'?"),Unexpected_token_Did_you_mean_or_rbrace:ue(1381,1,"Unexpected_token_Did_you_mean_or_rbrace_1381","Unexpected token. Did you mean `{'}'}` or `}`?"),Unexpected_token_Did_you_mean_or_gt:ue(1382,1,"Unexpected_token_Did_you_mean_or_gt_1382","Unexpected token. Did you mean `{'>'}` or `>`?"),Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:ue(1385,1,"Function_type_notation_must_be_parenthesized_when_used_in_a_union_type_1385","Function type notation must be parenthesized when used in a union type."),Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:ue(1386,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type_1386","Constructor type notation must be parenthesized when used in a union type."),Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:ue(1387,1,"Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1387","Function type notation must be parenthesized when used in an intersection type."),Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:ue(1388,1,"Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type_1388","Constructor type notation must be parenthesized when used in an intersection type."),_0_is_not_allowed_as_a_variable_declaration_name:ue(1389,1,"_0_is_not_allowed_as_a_variable_declaration_name_1389","'{0}' is not allowed as a variable declaration name."),_0_is_not_allowed_as_a_parameter_name:ue(1390,1,"_0_is_not_allowed_as_a_parameter_name_1390","'{0}' is not allowed as a parameter name."),Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters:ue(1433,1,"Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters_1433","Neither decorators nor modifiers may be applied to 'this' parameters."),Unexpected_keyword_or_identifier:ue(1434,1,"Unexpected_keyword_or_identifier_1434","Unexpected keyword or identifier."),Unknown_keyword_or_identifier_Did_you_mean_0:ue(1435,1,"Unknown_keyword_or_identifier_Did_you_mean_0_1435","Unknown keyword or identifier. Did you mean '{0}'?"),Decorators_must_precede_the_name_and_all_keywords_of_property_declarations:ue(1436,1,"Decorators_must_precede_the_name_and_all_keywords_of_property_declarations_1436","Decorators must precede the name and all keywords of property declarations."),Namespace_must_be_given_a_name:ue(1437,1,"Namespace_must_be_given_a_name_1437","Namespace must be given a name."),Interface_must_be_given_a_name:ue(1438,1,"Interface_must_be_given_a_name_1438","Interface must be given a name."),Type_alias_must_be_given_a_name:ue(1439,1,"Type_alias_must_be_given_a_name_1439","Type alias must be given a name."),Variable_declaration_not_allowed_at_this_location:ue(1440,1,"Variable_declaration_not_allowed_at_this_location_1440","Variable declaration not allowed at this location."),Cannot_start_a_function_call_in_a_type_annotation:ue(1441,1,"Cannot_start_a_function_call_in_a_type_annotation_1441","Cannot start a function call in a type annotation."),Expected_for_property_initializer:ue(1442,1,"Expected_for_property_initializer_1442","Expected '=' for property initializer."),Module_declaration_names_may_only_use_or_quoted_strings:ue(1443,1,"Module_declaration_names_may_only_use_or_quoted_strings_1443",`Module declaration names may only use ' or " quoted strings.`),resolution_mode_should_be_either_require_or_import:ue(1453,1,"resolution_mode_should_be_either_require_or_import_1453","`resolution-mode` should be either `require` or `import`."),catch_or_finally_expected:ue(1472,1,"catch_or_finally_expected_1472","'catch' or 'finally' expected."),An_instantiation_expression_cannot_be_followed_by_a_property_access:ue(1477,1,"An_instantiation_expression_cannot_be_followed_by_a_property_access_1477","An instantiation expression cannot be followed by a property access."),Identifier_or_string_literal_expected:ue(1478,1,"Identifier_or_string_literal_expected_1478","Identifier or string literal expected."),Octal_escape_sequences_are_not_allowed_Use_the_syntax_0:ue(1487,1,"Octal_escape_sequences_are_not_allowed_Use_the_syntax_0_1487","Octal escape sequences are not allowed. Use the syntax '{0}'."),Escape_sequence_0_is_not_allowed:ue(1488,1,"Escape_sequence_0_is_not_allowed_1488","Escape sequence '{0}' is not allowed."),Decimals_with_leading_zeros_are_not_allowed:ue(1489,1,"Decimals_with_leading_zeros_are_not_allowed_1489","Decimals with leading zeros are not allowed."),File_appears_to_be_binary:ue(1490,1,"File_appears_to_be_binary_1490","File appears to be binary."),Unknown_regular_expression_flag:ue(1499,1,"Unknown_regular_expression_flag_1499","Unknown regular expression flag."),Duplicate_regular_expression_flag:ue(1500,1,"Duplicate_regular_expression_flag_1500","Duplicate regular expression flag."),This_regular_expression_flag_is_only_available_when_targeting_0_or_later:ue(1501,1,"This_regular_expression_flag_is_only_available_when_targeting_0_or_later_1501","This regular expression flag is only available when targeting '{0}' or later."),The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously:ue(1502,1,"The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously_1502","The Unicode (u) flag and the Unicode Sets (v) flag cannot be set simultaneously."),Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later:ue(1503,1,"Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later_1503","Named capturing groups are only available when targeting 'ES2018' or later."),Subpattern_flags_must_be_present_when_there_is_a_minus_sign:ue(1504,1,"Subpattern_flags_must_be_present_when_there_is_a_minus_sign_1504","Subpattern flags must be present when there is a minus sign."),Incomplete_quantifier_Digit_expected:ue(1505,1,"Incomplete_quantifier_Digit_expected_1505","Incomplete quantifier. Digit expected."),Numbers_out_of_order_in_quantifier:ue(1506,1,"Numbers_out_of_order_in_quantifier_1506","Numbers out of order in quantifier."),There_is_nothing_available_for_repetition:ue(1507,1,"There_is_nothing_available_for_repetition_1507","There is nothing available for repetition."),Unexpected_0_Did_you_mean_to_escape_it_with_backslash:ue(1508,1,"Unexpected_0_Did_you_mean_to_escape_it_with_backslash_1508","Unexpected '{0}'. Did you mean to escape it with backslash?"),This_regular_expression_flag_cannot_be_toggled_within_a_subpattern:ue(1509,1,"This_regular_expression_flag_cannot_be_toggled_within_a_subpattern_1509","This regular expression flag cannot be toggled within a subpattern."),k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets:ue(1510,1,"k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets_1510","'\\k' must be followed by a capturing group name enclosed in angle brackets."),q_is_only_available_inside_character_class:ue(1511,1,"q_is_only_available_inside_character_class_1511","'\\q' is only available inside character class."),c_must_be_followed_by_an_ASCII_letter:ue(1512,1,"c_must_be_followed_by_an_ASCII_letter_1512","'\\c' must be followed by an ASCII letter."),Undetermined_character_escape:ue(1513,1,"Undetermined_character_escape_1513","Undetermined character escape."),Expected_a_capturing_group_name:ue(1514,1,"Expected_a_capturing_group_name_1514","Expected a capturing group name."),Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other:ue(1515,1,"Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other_1515","Named capturing groups with the same name must be mutually exclusive to each other."),A_character_class_range_must_not_be_bounded_by_another_character_class:ue(1516,1,"A_character_class_range_must_not_be_bounded_by_another_character_class_1516","A character class range must not be bounded by another character class."),Range_out_of_order_in_character_class:ue(1517,1,"Range_out_of_order_in_character_class_1517","Range out of order in character class."),Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class:ue(1518,1,"Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_characte_1518","Anything that would possibly match more than a single character is invalid inside a negated character class."),Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead:ue(1519,1,"Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead_1519","Operators must not be mixed within a character class. Wrap it in a nested class instead."),Expected_a_class_set_operand:ue(1520,1,"Expected_a_class_set_operand_1520","Expected a class set operand."),q_must_be_followed_by_string_alternatives_enclosed_in_braces:ue(1521,1,"q_must_be_followed_by_string_alternatives_enclosed_in_braces_1521","'\\q' must be followed by string alternatives enclosed in braces."),A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash:ue(1522,1,"A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backs_1522","A character class must not contain a reserved double punctuator. Did you mean to escape it with backslash?"),Expected_a_Unicode_property_name:ue(1523,1,"Expected_a_Unicode_property_name_1523","Expected a Unicode property name."),Unknown_Unicode_property_name:ue(1524,1,"Unknown_Unicode_property_name_1524","Unknown Unicode property name."),Expected_a_Unicode_property_value:ue(1525,1,"Expected_a_Unicode_property_value_1525","Expected a Unicode property value."),Unknown_Unicode_property_value:ue(1526,1,"Unknown_Unicode_property_value_1526","Unknown Unicode property value."),Expected_a_Unicode_property_name_or_value:ue(1527,1,"Expected_a_Unicode_property_name_or_value_1527","Expected a Unicode property name or value."),Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set:ue(1528,1,"Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_t_1528","Any Unicode property that would possibly match more than a single character is only available when the Unicode Sets (v) flag is set."),Unknown_Unicode_property_name_or_value:ue(1529,1,"Unknown_Unicode_property_name_or_value_1529","Unknown Unicode property name or value."),Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:ue(1530,1,"Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v__1530","Unicode property value expressions are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces:ue(1531,1,"_0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces_1531","'\\{0}' must be followed by a Unicode property value expression enclosed in braces."),There_is_no_capturing_group_named_0_in_this_regular_expression:ue(1532,1,"There_is_no_capturing_group_named_0_in_this_regular_expression_1532","There is no capturing group named '{0}' in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression:ue(1533,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_r_1533","This backreference refers to a group that does not exist. There are only {0} capturing groups in this regular expression."),This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression:ue(1534,1,"This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regul_1534","This backreference refers to a group that does not exist. There are no capturing groups in this regular expression."),This_character_cannot_be_escaped_in_a_regular_expression:ue(1535,1,"This_character_cannot_be_escaped_in_a_regular_expression_1535","This character cannot be escaped in a regular expression."),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:ue(1536,1,"Octal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_If_this_was_intended__1536","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."),Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class:ue(1537,1,"Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class_1537","Decimal escape sequences and backreferences are not allowed in a character class."),Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set:ue(1538,1,"Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_se_1538","Unicode escape sequences are only available when the Unicode (u) flag or the Unicode Sets (v) flag is set."),Interface_name_cannot_be_0:ue(2427,1,"Interface_name_cannot_be_0_2427","Interface name cannot be '{0}'."),Type_alias_name_cannot_be_0:ue(2457,1,"Type_alias_name_cannot_be_0_2457","Type alias name cannot be '{0}'."),An_AMD_module_cannot_have_multiple_name_assignments:ue(2458,1,"An_AMD_module_cannot_have_multiple_name_assignments_2458","An AMD module cannot have multiple name assignments."),JSX_expressions_must_have_one_parent_element:ue(2657,1,"JSX_expressions_must_have_one_parent_element_2657","JSX expressions must have one parent element."),super_may_not_use_type_arguments:ue(2754,1,"super_may_not_use_type_arguments_2754","'super' may not use type arguments."),Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses:ue(2809,1,"Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_d_2809","Declaration or statement expected. This '=' follows a block of statements, so if you intended to write a destructuring assignment, you might need to wrap the whole assignment in parentheses."),Namespace_name_cannot_be_0:ue(2819,1,"Namespace_name_cannot_be_0_2819","Namespace name cannot be '{0}'."),Numeric_separators_are_not_allowed_here:ue(6188,1,"Numeric_separators_are_not_allowed_here_6188","Numeric separators are not allowed here."),Multiple_consecutive_numeric_separators_are_not_permitted:ue(6189,1,"Multiple_consecutive_numeric_separators_are_not_permitted_6189","Multiple consecutive numeric separators are not permitted."),A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags:ue(8033,1,"A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags_8033","A JSDoc '@typedef' comment may not contain multiple '@type' tags."),The_tag_was_first_specified_here:ue(8034,1,"The_tag_was_first_specified_here_8034","The tag was first specified here."),A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag:ue(8039,1,"A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag_8039","A JSDoc '@template' tag may not follow a '@typedef', '@callback', or '@overload' tag"),Expected_corresponding_JSX_closing_tag_for_0:ue(17002,1,"Expected_corresponding_JSX_closing_tag_for_0_17002","Expected corresponding JSX closing tag for '{0}'."),An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:ue(17006,1,"An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_ex_17006","An unary expression with the '{0}' operator is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses:ue(17007,1,"A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Con_17007","A type assertion expression is not allowed in the left-hand side of an exponentiation expression. Consider enclosing the expression in parentheses."),JSX_element_0_has_no_corresponding_closing_tag:ue(17008,1,"JSX_element_0_has_no_corresponding_closing_tag_17008","JSX element '{0}' has no corresponding closing tag."),JSX_fragment_has_no_corresponding_closing_tag:ue(17014,1,"JSX_fragment_has_no_corresponding_closing_tag_17014","JSX fragment has no corresponding closing tag."),Expected_corresponding_closing_tag_for_JSX_fragment:ue(17015,1,"Expected_corresponding_closing_tag_for_JSX_fragment_17015","Expected corresponding closing tag for JSX fragment."),Unicode_escape_sequence_cannot_appear_here:ue(17021,1,"Unicode_escape_sequence_cannot_appear_here_17021","Unicode escape sequence cannot appear here."),Private_identifiers_cannot_be_used_as_parameters:ue(18009,1,"Private_identifiers_cannot_be_used_as_parameters_18009","Private identifiers cannot be used as parameters."),Private_identifiers_are_not_allowed_outside_class_bodies:ue(18016,1,"Private_identifiers_are_not_allowed_outside_class_bodies_18016","Private identifiers are not allowed outside class bodies."),can_only_be_used_at_the_start_of_a_file:ue(18026,1,"can_only_be_used_at_the_start_of_a_file_18026","'#!' can only be used at the start of a file."),Private_identifiers_are_not_allowed_in_variable_declarations:ue(18029,1,"Private_identifiers_are_not_allowed_in_variable_declarations_18029","Private identifiers are not allowed in variable declarations."),An_optional_chain_cannot_contain_private_identifiers:ue(18030,1,"An_optional_chain_cannot_contain_private_identifiers_18030","An optional chain cannot contain private identifiers.")};function yr(e){return e>=80}function IJ(e){return e===32||yr(e)}var eD={abstract:128,accessor:129,any:133,as:130,asserts:131,assert:132,bigint:163,boolean:136,break:83,case:84,catch:85,class:86,continue:88,const:87,constructor:137,debugger:89,declare:138,default:90,defer:166,delete:91,do:92,else:93,enum:94,export:95,extends:96,false:97,finally:98,for:99,from:161,function:100,get:139,if:101,implements:119,import:102,in:103,infer:140,instanceof:104,interface:120,intrinsic:141,is:142,keyof:143,let:121,module:144,namespace:145,never:146,new:105,null:106,number:150,object:151,package:122,private:123,protected:124,public:125,override:164,out:147,readonly:148,require:149,global:162,return:107,satisfies:152,set:153,static:126,string:154,super:108,switch:109,symbol:155,this:110,throw:111,true:112,try:113,type:156,typeof:114,undefined:157,unique:158,unknown:159,using:160,var:115,void:116,while:117,with:118,yield:127,async:134,await:135,of:165},BJ=new Map(Object.entries(eD)),$C=new Map(Object.entries({...eD,"{":19,"}":20,"(":21,")":22,"[":23,"]":24,".":25,"...":26,";":27,",":28,"<":30,">":32,"<=":33,">=":34,"==":35,"!=":36,"===":37,"!==":38,"=>":39,"+":40,"-":41,"**":43,"*":42,"/":44,"%":45,"++":46,"--":47,"<<":48,"</":31,">>":49,">>>":50,"&":51,"|":52,"^":53,"!":54,"~":55,"&&":56,"||":57,"?":58,"??":61,"?.":29,":":59,"=":64,"+=":65,"-=":66,"*=":67,"**=":68,"/=":69,"%=":70,"<<=":71,">>=":72,">>>=":73,"&=":74,"|=":75,"^=":79,"||=":76,"&&=":77,"??=":78,"@":60,"#":63,"`":62})),MC=new Map([[100,1],[103,2],[105,4],[109,8],[115,16],[117,32],[118,64],[121,128]]),LJ=new Map([[1,Dc.RegularExpressionFlagsHasIndices],[16,Dc.RegularExpressionFlagsDotAll],[32,Dc.RegularExpressionFlagsUnicode],[64,Dc.RegularExpressionFlagsUnicodeSets],[128,Dc.RegularExpressionFlagsSticky]]),OJ=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1319,1329,1366,1369,1369,1377,1415,1488,1514,1520,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2208,2208,2210,2220,2308,2361,2365,2365,2384,2384,2392,2401,2417,2423,2425,2431,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3133,3160,3161,3168,3169,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3294,3294,3296,3297,3313,3314,3333,3340,3342,3344,3346,3386,3389,3389,3406,3406,3424,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5905,5920,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6263,6272,6312,6314,6314,6320,6389,6400,6428,6480,6509,6512,6516,6528,6571,6593,6599,6656,6678,6688,6740,6823,6823,6917,6963,6981,6987,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7401,7404,7406,7409,7413,7414,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11823,11823,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42647,42656,42735,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43648,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],$J=[170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,902,902,904,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1319,1329,1366,1369,1369,1377,1415,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1520,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2048,2093,2112,2139,2208,2208,2210,2220,2276,2302,2304,2403,2406,2415,2417,2423,2425,2431,2433,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2902,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3073,3075,3077,3084,3086,3088,3090,3112,3114,3123,3125,3129,3133,3140,3142,3144,3146,3149,3157,3158,3160,3161,3168,3171,3174,3183,3202,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3294,3294,3296,3299,3302,3311,3313,3314,3330,3331,3333,3340,3342,3344,3346,3386,3389,3396,3398,3400,3402,3406,3415,3415,3424,3427,3430,3439,3450,3455,3458,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3719,3720,3722,3722,3725,3725,3732,3735,3737,3743,3745,3747,3749,3749,3751,3751,3754,3755,3757,3769,3771,3773,3776,3780,3782,3782,3784,3789,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4992,5007,5024,5108,5121,5740,5743,5759,5761,5786,5792,5866,5870,5872,5888,5900,5902,5908,5920,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6160,6169,6176,6263,6272,6314,6320,6389,6400,6428,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6617,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6912,6987,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7376,7378,7380,7414,7424,7654,7676,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8473,8477,8484,8484,8486,8486,8488,8488,8490,8493,8495,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11310,11312,11358,11360,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,11823,11823,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12442,12445,12447,12449,12538,12540,12543,12549,12589,12593,12686,12704,12730,12784,12799,13312,19893,19968,40908,40960,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42647,42655,42737,42775,42783,42786,42888,42891,42894,42896,42899,42912,42922,43e3,43047,43072,43123,43136,43204,43216,43225,43232,43255,43259,43259,43264,43309,43312,43347,43360,43388,43392,43456,43471,43481,43520,43574,43584,43597,43600,43609,43616,43638,43642,43643,43648,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43968,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65062,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500],MJ=[65,90,97,122,170,170,181,181,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,880,884,886,887,890,893,895,895,902,902,904,906,908,908,910,929,931,1013,1015,1153,1162,1327,1329,1366,1369,1369,1376,1416,1488,1514,1519,1522,1568,1610,1646,1647,1649,1747,1749,1749,1765,1766,1774,1775,1786,1788,1791,1791,1808,1808,1810,1839,1869,1957,1969,1969,1994,2026,2036,2037,2042,2042,2048,2069,2074,2074,2084,2084,2088,2088,2112,2136,2144,2154,2160,2183,2185,2190,2208,2249,2308,2361,2365,2365,2384,2384,2392,2401,2417,2432,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2493,2493,2510,2510,2524,2525,2527,2529,2544,2545,2556,2556,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2649,2652,2654,2654,2674,2676,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2749,2749,2768,2768,2784,2785,2809,2809,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2877,2877,2908,2909,2911,2913,2929,2929,2947,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3024,3024,3077,3084,3086,3088,3090,3112,3114,3129,3133,3133,3160,3162,3165,3165,3168,3169,3200,3200,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3261,3261,3293,3294,3296,3297,3313,3314,3332,3340,3342,3344,3346,3386,3389,3389,3406,3406,3412,3414,3423,3425,3450,3455,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3585,3632,3634,3635,3648,3654,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3760,3762,3763,3773,3773,3776,3780,3782,3782,3804,3807,3840,3840,3904,3911,3913,3948,3976,3980,4096,4138,4159,4159,4176,4181,4186,4189,4193,4193,4197,4198,4206,4208,4213,4225,4238,4238,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5905,5919,5937,5952,5969,5984,5996,5998,6e3,6016,6067,6103,6103,6108,6108,6176,6264,6272,6312,6314,6314,6320,6389,6400,6430,6480,6509,6512,6516,6528,6571,6576,6601,6656,6678,6688,6740,6823,6823,6917,6963,6981,6988,7043,7072,7086,7087,7098,7141,7168,7203,7245,7247,7258,7293,7296,7304,7312,7354,7357,7359,7401,7404,7406,7411,7413,7414,7418,7418,7424,7615,7680,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8305,8305,8319,8319,8336,8348,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11502,11506,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11648,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,12293,12295,12321,12329,12337,12341,12344,12348,12353,12438,12443,12447,12449,12538,12540,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42527,42538,42539,42560,42606,42623,42653,42656,42735,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43009,43011,43013,43015,43018,43020,43042,43072,43123,43138,43187,43250,43255,43259,43259,43261,43262,43274,43301,43312,43334,43360,43388,43396,43442,43471,43471,43488,43492,43494,43503,43514,43518,43520,43560,43584,43586,43588,43595,43616,43638,43642,43642,43646,43695,43697,43697,43701,43702,43705,43709,43712,43712,43714,43714,43739,43741,43744,43754,43762,43764,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44002,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64285,64287,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65136,65140,65142,65276,65313,65338,65345,65370,65382,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66176,66204,66208,66256,66304,66335,66349,66378,66384,66421,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68096,68112,68115,68117,68119,68121,68149,68192,68220,68224,68252,68288,68295,68297,68324,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68899,69248,69289,69296,69297,69376,69404,69415,69415,69424,69445,69488,69505,69552,69572,69600,69622,69635,69687,69745,69746,69749,69749,69763,69807,69840,69864,69891,69926,69956,69956,69959,69959,69968,70002,70006,70006,70019,70066,70081,70084,70106,70106,70108,70108,70144,70161,70163,70187,70207,70208,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70366,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70461,70461,70480,70480,70493,70497,70656,70708,70727,70730,70751,70753,70784,70831,70852,70853,70855,70855,71040,71086,71128,71131,71168,71215,71236,71236,71296,71338,71352,71352,71424,71450,71488,71494,71680,71723,71840,71903,71935,71942,71945,71945,71948,71955,71957,71958,71960,71983,71999,71999,72001,72001,72096,72103,72106,72144,72161,72161,72163,72163,72192,72192,72203,72242,72250,72250,72272,72272,72284,72329,72349,72349,72368,72440,72704,72712,72714,72750,72768,72768,72818,72847,72960,72966,72968,72969,72971,73008,73030,73030,73056,73061,73063,73064,73066,73097,73112,73112,73440,73458,73474,73474,73476,73488,73490,73523,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78913,78918,82944,83526,92160,92728,92736,92766,92784,92862,92880,92909,92928,92975,92992,92995,93027,93047,93053,93071,93760,93823,93952,94026,94032,94032,94099,94111,94176,94177,94179,94179,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,122624,122654,122661,122666,122928,122989,123136,123180,123191,123197,123214,123214,123536,123565,123584,123627,124112,124139,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125184,125251,125259,125259,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743],jJ=[48,57,65,90,95,95,97,122,170,170,181,181,183,183,186,186,192,214,216,246,248,705,710,721,736,740,748,748,750,750,768,884,886,887,890,893,895,895,902,906,908,908,910,929,931,1013,1015,1153,1155,1159,1162,1327,1329,1366,1369,1369,1376,1416,1425,1469,1471,1471,1473,1474,1476,1477,1479,1479,1488,1514,1519,1522,1552,1562,1568,1641,1646,1747,1749,1756,1759,1768,1770,1788,1791,1791,1808,1866,1869,1969,1984,2037,2042,2042,2045,2045,2048,2093,2112,2139,2144,2154,2160,2183,2185,2190,2200,2273,2275,2403,2406,2415,2417,2435,2437,2444,2447,2448,2451,2472,2474,2480,2482,2482,2486,2489,2492,2500,2503,2504,2507,2510,2519,2519,2524,2525,2527,2531,2534,2545,2556,2556,2558,2558,2561,2563,2565,2570,2575,2576,2579,2600,2602,2608,2610,2611,2613,2614,2616,2617,2620,2620,2622,2626,2631,2632,2635,2637,2641,2641,2649,2652,2654,2654,2662,2677,2689,2691,2693,2701,2703,2705,2707,2728,2730,2736,2738,2739,2741,2745,2748,2757,2759,2761,2763,2765,2768,2768,2784,2787,2790,2799,2809,2815,2817,2819,2821,2828,2831,2832,2835,2856,2858,2864,2866,2867,2869,2873,2876,2884,2887,2888,2891,2893,2901,2903,2908,2909,2911,2915,2918,2927,2929,2929,2946,2947,2949,2954,2958,2960,2962,2965,2969,2970,2972,2972,2974,2975,2979,2980,2984,2986,2990,3001,3006,3010,3014,3016,3018,3021,3024,3024,3031,3031,3046,3055,3072,3084,3086,3088,3090,3112,3114,3129,3132,3140,3142,3144,3146,3149,3157,3158,3160,3162,3165,3165,3168,3171,3174,3183,3200,3203,3205,3212,3214,3216,3218,3240,3242,3251,3253,3257,3260,3268,3270,3272,3274,3277,3285,3286,3293,3294,3296,3299,3302,3311,3313,3315,3328,3340,3342,3344,3346,3396,3398,3400,3402,3406,3412,3415,3423,3427,3430,3439,3450,3455,3457,3459,3461,3478,3482,3505,3507,3515,3517,3517,3520,3526,3530,3530,3535,3540,3542,3542,3544,3551,3558,3567,3570,3571,3585,3642,3648,3662,3664,3673,3713,3714,3716,3716,3718,3722,3724,3747,3749,3749,3751,3773,3776,3780,3782,3782,3784,3790,3792,3801,3804,3807,3840,3840,3864,3865,3872,3881,3893,3893,3895,3895,3897,3897,3902,3911,3913,3948,3953,3972,3974,3991,3993,4028,4038,4038,4096,4169,4176,4253,4256,4293,4295,4295,4301,4301,4304,4346,4348,4680,4682,4685,4688,4694,4696,4696,4698,4701,4704,4744,4746,4749,4752,4784,4786,4789,4792,4798,4800,4800,4802,4805,4808,4822,4824,4880,4882,4885,4888,4954,4957,4959,4969,4977,4992,5007,5024,5109,5112,5117,5121,5740,5743,5759,5761,5786,5792,5866,5870,5880,5888,5909,5919,5940,5952,5971,5984,5996,5998,6e3,6002,6003,6016,6099,6103,6103,6108,6109,6112,6121,6155,6157,6159,6169,6176,6264,6272,6314,6320,6389,6400,6430,6432,6443,6448,6459,6470,6509,6512,6516,6528,6571,6576,6601,6608,6618,6656,6683,6688,6750,6752,6780,6783,6793,6800,6809,6823,6823,6832,6845,6847,6862,6912,6988,6992,7001,7019,7027,7040,7155,7168,7223,7232,7241,7245,7293,7296,7304,7312,7354,7357,7359,7376,7378,7380,7418,7424,7957,7960,7965,7968,8005,8008,8013,8016,8023,8025,8025,8027,8027,8029,8029,8031,8061,8064,8116,8118,8124,8126,8126,8130,8132,8134,8140,8144,8147,8150,8155,8160,8172,8178,8180,8182,8188,8204,8205,8255,8256,8276,8276,8305,8305,8319,8319,8336,8348,8400,8412,8417,8417,8421,8432,8450,8450,8455,8455,8458,8467,8469,8469,8472,8477,8484,8484,8486,8486,8488,8488,8490,8505,8508,8511,8517,8521,8526,8526,8544,8584,11264,11492,11499,11507,11520,11557,11559,11559,11565,11565,11568,11623,11631,11631,11647,11670,11680,11686,11688,11694,11696,11702,11704,11710,11712,11718,11720,11726,11728,11734,11736,11742,11744,11775,12293,12295,12321,12335,12337,12341,12344,12348,12353,12438,12441,12447,12449,12543,12549,12591,12593,12686,12704,12735,12784,12799,13312,19903,19968,42124,42192,42237,42240,42508,42512,42539,42560,42607,42612,42621,42623,42737,42775,42783,42786,42888,42891,42954,42960,42961,42963,42963,42965,42969,42994,43047,43052,43052,43072,43123,43136,43205,43216,43225,43232,43255,43259,43259,43261,43309,43312,43347,43360,43388,43392,43456,43471,43481,43488,43518,43520,43574,43584,43597,43600,43609,43616,43638,43642,43714,43739,43741,43744,43759,43762,43766,43777,43782,43785,43790,43793,43798,43808,43814,43816,43822,43824,43866,43868,43881,43888,44010,44012,44013,44016,44025,44032,55203,55216,55238,55243,55291,63744,64109,64112,64217,64256,64262,64275,64279,64285,64296,64298,64310,64312,64316,64318,64318,64320,64321,64323,64324,64326,64433,64467,64829,64848,64911,64914,64967,65008,65019,65024,65039,65056,65071,65075,65076,65101,65103,65136,65140,65142,65276,65296,65305,65313,65338,65343,65343,65345,65370,65381,65470,65474,65479,65482,65487,65490,65495,65498,65500,65536,65547,65549,65574,65576,65594,65596,65597,65599,65613,65616,65629,65664,65786,65856,65908,66045,66045,66176,66204,66208,66256,66272,66272,66304,66335,66349,66378,66384,66426,66432,66461,66464,66499,66504,66511,66513,66517,66560,66717,66720,66729,66736,66771,66776,66811,66816,66855,66864,66915,66928,66938,66940,66954,66956,66962,66964,66965,66967,66977,66979,66993,66995,67001,67003,67004,67072,67382,67392,67413,67424,67431,67456,67461,67463,67504,67506,67514,67584,67589,67592,67592,67594,67637,67639,67640,67644,67644,67647,67669,67680,67702,67712,67742,67808,67826,67828,67829,67840,67861,67872,67897,67968,68023,68030,68031,68096,68099,68101,68102,68108,68115,68117,68119,68121,68149,68152,68154,68159,68159,68192,68220,68224,68252,68288,68295,68297,68326,68352,68405,68416,68437,68448,68466,68480,68497,68608,68680,68736,68786,68800,68850,68864,68903,68912,68921,69248,69289,69291,69292,69296,69297,69373,69404,69415,69415,69424,69456,69488,69509,69552,69572,69600,69622,69632,69702,69734,69749,69759,69818,69826,69826,69840,69864,69872,69881,69888,69940,69942,69951,69956,69959,69968,70003,70006,70006,70016,70084,70089,70092,70094,70106,70108,70108,70144,70161,70163,70199,70206,70209,70272,70278,70280,70280,70282,70285,70287,70301,70303,70312,70320,70378,70384,70393,70400,70403,70405,70412,70415,70416,70419,70440,70442,70448,70450,70451,70453,70457,70459,70468,70471,70472,70475,70477,70480,70480,70487,70487,70493,70499,70502,70508,70512,70516,70656,70730,70736,70745,70750,70753,70784,70853,70855,70855,70864,70873,71040,71093,71096,71104,71128,71133,71168,71232,71236,71236,71248,71257,71296,71352,71360,71369,71424,71450,71453,71467,71472,71481,71488,71494,71680,71738,71840,71913,71935,71942,71945,71945,71948,71955,71957,71958,71960,71989,71991,71992,71995,72003,72016,72025,72096,72103,72106,72151,72154,72161,72163,72164,72192,72254,72263,72263,72272,72345,72349,72349,72368,72440,72704,72712,72714,72758,72760,72768,72784,72793,72818,72847,72850,72871,72873,72886,72960,72966,72968,72969,72971,73014,73018,73018,73020,73021,73023,73031,73040,73049,73056,73061,73063,73064,73066,73102,73104,73105,73107,73112,73120,73129,73440,73462,73472,73488,73490,73530,73534,73538,73552,73561,73648,73648,73728,74649,74752,74862,74880,75075,77712,77808,77824,78895,78912,78933,82944,83526,92160,92728,92736,92766,92768,92777,92784,92862,92864,92873,92880,92909,92912,92916,92928,92982,92992,92995,93008,93017,93027,93047,93053,93071,93760,93823,93952,94026,94031,94087,94095,94111,94176,94177,94179,94180,94192,94193,94208,100343,100352,101589,101632,101640,110576,110579,110581,110587,110589,110590,110592,110882,110898,110898,110928,110930,110933,110933,110948,110951,110960,111355,113664,113770,113776,113788,113792,113800,113808,113817,113821,113822,118528,118573,118576,118598,119141,119145,119149,119154,119163,119170,119173,119179,119210,119213,119362,119364,119808,119892,119894,119964,119966,119967,119970,119970,119973,119974,119977,119980,119982,119993,119995,119995,119997,120003,120005,120069,120071,120074,120077,120084,120086,120092,120094,120121,120123,120126,120128,120132,120134,120134,120138,120144,120146,120485,120488,120512,120514,120538,120540,120570,120572,120596,120598,120628,120630,120654,120656,120686,120688,120712,120714,120744,120746,120770,120772,120779,120782,120831,121344,121398,121403,121452,121461,121461,121476,121476,121499,121503,121505,121519,122624,122654,122661,122666,122880,122886,122888,122904,122907,122913,122915,122916,122918,122922,122928,122989,123023,123023,123136,123180,123184,123197,123200,123209,123214,123214,123536,123566,123584,123641,124112,124153,124896,124902,124904,124907,124909,124910,124912,124926,124928,125124,125136,125142,125184,125259,125264,125273,126464,126467,126469,126495,126497,126498,126500,126500,126503,126503,126505,126514,126516,126519,126521,126521,126523,126523,126530,126530,126535,126535,126537,126537,126539,126539,126541,126543,126545,126546,126548,126548,126551,126551,126553,126553,126555,126555,126557,126557,126559,126559,126561,126562,126564,126564,126567,126570,126572,126578,126580,126583,126585,126588,126590,126590,126592,126601,126603,126619,126625,126627,126629,126633,126635,126651,130032,130041,131072,173791,173824,177977,177984,178205,178208,183969,183984,191456,191472,192093,194560,195101,196608,201546,201552,205743,917760,917999],JJ=/^\/\/\/?\s*@(ts-expect-error|ts-ignore)/,RJ=/^(?:\/|\*)*\s*@(ts-expect-error|ts-ignore)/,UJ=/@(?:see|link)/i;function Qf(e,t){if(e<t[0])return!1;let r=0,n=t.length,s;for(;r+1<n;){if(s=r+(n-r)/2,s-=s%2,t[s]<=e&&e<=t[s+1])return!0;e<t[s]?n=s:r=s+2}return!1}function qJ(e,t){return t>=2?Qf(e,MJ):Qf(e,OJ)}function KJ(e,t){return t>=2?Qf(e,jJ):Qf(e,$J)}function jC(e){let t=[];return e.forEach((r,n)=>{t[r]=n}),t}var zJ=jC($C);function er(e){return zJ[e]}function JC(e){return $C.get(e)}jC(MC);function A3(e){return MC.get(e)}function RC(e){let t=[],r=0,n=0;for(;r<e.length;){let s=e.charCodeAt(r);switch(r++,s){case 13:e.charCodeAt(r)===10&&r++;case 10:t.push(n),n=r;break;default:s>127&&Nn(s)&&(t.push(n),n=r);break}}return t.push(n),t}function WJ(e,t,r,n,s){(t<0||t>=e.length)&&(s?t=t<0?0:t>=e.length?e.length-1:t:re.fail(`Bad line number. Line: ${t}, lineStarts.length: ${e.length} , line map is correct? ${n!==void 0?Yj(e,RC(n)):"unknown"}`));let i=e[t]+r;return s?i>e[t+1]?e[t+1]:typeof n=="string"&&i>n.length?n.length:i:(t<e.length-1?re.assert(i<e[t+1]):n!==void 0&&re.assert(i<=n.length),i)}function z0(e){return e.lineMap||(e.lineMap=RC(e.text))}function VJ(e,t){let r=HJ(e,t);return{line:r,character:t-e[r]}}function HJ(e,t,r){let n=sJ(e,t,ur,CC);return n<0&&(n=~n-1,re.assert(n!==-1,"position cannot precede the beginning of the file")),n}function UC(e,t){return VJ(z0(e),t)}function Wc(e){return wc(e)||Nn(e)}function wc(e){return e===32||e===9||e===11||e===12||e===160||e===133||e===5760||e>=8192&&e<=8203||e===8239||e===8287||e===12288||e===65279}function Nn(e){return e===10||e===13||e===8232||e===8233}function Da(e){return e>=48&&e<=57}function Xy(e){return Da(e)||e>=65&&e<=70||e>=97&&e<=102}function tD(e){return e>=65&&e<=90||e>=97&&e<=122}function qC(e){return tD(e)||Da(e)||e===95}function Gy(e){return e>=48&&e<=55}function Gs(e,t,r,n,s){if(ap(t))return t;let i=!1;for(;;){let o=e.charCodeAt(t);switch(o){case 13:e.charCodeAt(t+1)===10&&t++;case 10:if(t++,r)return t;i=!!s;continue;case 9:case 11:case 12:case 32:t++;continue;case 47:if(n)break;if(e.charCodeAt(t+1)===47){for(t+=2;t<e.length&&!Nn(e.charCodeAt(t));)t++;i=!1;continue}if(e.charCodeAt(t+1)===42){for(t+=2;t<e.length;){if(e.charCodeAt(t)===42&&e.charCodeAt(t+1)===47){t+=2;break}t++}i=!1;continue}break;case 60:case 124:case 61:case 62:if(Do(e,t)){t=vu(e,t),i=!1;continue}break;case 35:if(t===0&&KC(e,t)){t=zC(e,t),i=!1;continue}break;case 42:if(i){t++,i=!1;continue}break;default:if(o>127&&Wc(o)){t++;continue}break}return t}}var Lf=7;function Do(e,t){if(re.assert(t>=0),t===0||Nn(e.charCodeAt(t-1))){let r=e.charCodeAt(t);if(t+Lf<e.length){for(let n=0;n<Lf;n++)if(e.charCodeAt(t+n)!==r)return!1;return r===61||e.charCodeAt(t+Lf)===32}}return!1}function vu(e,t,r){r&&r(U.Merge_conflict_marker_encountered,t,Lf);let n=e.charCodeAt(t),s=e.length;if(n===60||n===62)for(;t<s&&!Nn(e.charCodeAt(t));)t++;else for(re.assert(n===124||n===61);t<s;){let i=e.charCodeAt(t);if((i===61||i===62)&&i!==n&&Do(e,t))break;t++}return t}var rD=/^#!.*/;function KC(e,t){return re.assert(t===0),rD.test(e)}function zC(e,t){let r=rD.exec(e)[0];return t=t+r.length,t}function Bm(e,t,r,n,s,i,o){let l,u,f,p,d=!1,y=n,m=o;if(r===0){y=!0;let D=VC(t);D&&(r=D.length)}e:for(;r>=0&&r<t.length;){let D=t.charCodeAt(r);switch(D){case 13:t.charCodeAt(r+1)===10&&r++;case 10:if(r++,n)break e;y=!0,d&&(p=!0);continue;case 9:case 11:case 12:case 32:r++;continue;case 47:let T=t.charCodeAt(r+1),S=!1;if(T===47||T===42){let v=T===47?2:3,E=r;if(r+=2,T===47)for(;r<t.length;){if(Nn(t.charCodeAt(r))){S=!0;break}r++}else for(;r<t.length;){if(t.charCodeAt(r)===42&&t.charCodeAt(r+1)===47){r+=2;break}r++}if(y){if(d&&(m=s(l,u,f,p,i,m),!e&&m))return m;l=E,u=r,f=v,p=S,d=!0}continue}break e;default:if(D>127&&Wc(D)){d&&Nn(D)&&(p=!0),r++;continue}break e}}return d&&(m=s(l,u,f,p,i,m)),m}function XJ(e,t,r,n){return Bm(!1,e,t,!1,r,n)}function GJ(e,t,r,n){return Bm(!1,e,t,!0,r,n)}function QJ(e,t,r,n,s){return Bm(!0,e,t,!1,r,n,s)}function YJ(e,t,r,n,s){return Bm(!0,e,t,!0,r,n,s)}function WC(e,t,r,n,s,i=[]){return i.push({kind:r,pos:e,end:t,hasTrailingNewLine:n}),i}function W0(e,t){return QJ(e,t,WC,void 0,void 0)}function ZJ(e,t){return YJ(e,t,WC,void 0,void 0)}function VC(e){let t=rD.exec(e);if(t)return t[0]}function _s(e,t){return tD(e)||e===36||e===95||e>127&&qJ(e,t)}function _i(e,t,r){return qC(e)||e===36||!1||e>127&&KJ(e,t)}function eR(e,t,r){let n=xo(e,0);if(!_s(n,t))return!1;for(let s=$r(n);s<e.length;s+=$r(n))if(!_i(n=xo(e,s),t))return!1;return!0}function nD(e,t,r=0,n,s,i,o){var l=n,u,f,p,d,y,m,D,T,S=0,v=0,E=0;vr(l,i,o);var C={getTokenFullStart:()=>p,getStartPos:()=>p,getTokenEnd:()=>u,getTextPos:()=>u,getToken:()=>y,getTokenStart:()=>d,getTokenPos:()=>d,getTokenText:()=>l.substring(d,u),getTokenValue:()=>m,hasUnicodeEscape:()=>(D&1024)!==0,hasExtendedUnicodeEscape:()=>(D&8)!==0,hasPrecedingLineBreak:()=>(D&1)!==0,hasPrecedingJSDocComment:()=>(D&2)!==0,hasPrecedingJSDocLeadingAsterisks:()=>(D&32768)!==0,isIdentifier:()=>y===80||y>118,isReservedWord:()=>y>=83&&y<=118,isUnterminated:()=>(D&4)!==0,getCommentDirectives:()=>T,getNumericLiteralFlags:()=>D&25584,getTokenFlags:()=>D,reScanGreaterToken:Ke,reScanAsteriskEqualsToken:xt,reScanSlashToken:at,reScanTemplateToken:Ar,reScanTemplateHeadOrNoSubstitutionTemplate:br,scanJsxIdentifier:hi,scanJsxAttributeValue:ns,reScanJsxAttributeValue:rt,reScanJsxToken:Nr,reScanLessThanToken:nn,reScanHashToken:pn,reScanQuestionToken:Vr,reScanInvalidIdentifier:ce,scanJsxToken:Hr,scanJsDocToken:G,scanJSDocCommentTextToken:Os,scan:Rt,getText:$t,clearCommentDirectives:Qt,setText:vr,setScriptTarget:Yt,setLanguageVariant:Qi,setScriptKind:Cn,setJSDocParsingMode:fi,setOnError:fr,resetTokenState:ss,setTextPos:ss,setSkipJsDocLeadingAsterisks:ja,tryScan:Ft,lookAhead:Ve,scanRange:Oe};return re.isDebugging&&Object.defineProperty(C,"__debugShowCurrentPositionInText",{get:()=>{let te=C.getText();return te.slice(0,C.getTokenFullStart())+"║"+te.slice(C.getTokenFullStart())}}),C;function P(te){return xo(l,te)}function k(te){return te>=0&&te<f?P(te):-1}function w(te){return l.charCodeAt(te)}function B(te){return te>=0&&te<f?w(te):-1}function I(te,ye=u,xe,He){if(s){let Xe=u;u=ye,s(te,xe||0,He),u=Xe}}function oe(){let te=u,ye=!1,xe=!1,He="";for(;;){let Xe=w(u);if(Xe===95){D|=512,ye?(ye=!1,xe=!0,He+=l.substring(te,u)):(D|=16384,I(xe?U.Multiple_consecutive_numeric_separators_are_not_permitted:U.Numeric_separators_are_not_allowed_here,u,1)),u++,te=u;continue}if(Da(Xe)){ye=!0,xe=!1,u++;continue}break}return w(u-1)===95&&(D|=16384,I(U.Numeric_separators_are_not_allowed_here,u-1,1)),He+l.substring(te,u)}function ee(){let te=u,ye;if(w(u)===48)if(u++,w(u)===95)D|=16896,I(U.Numeric_separators_are_not_allowed_here,u,1),u--,ye=oe();else if(!Ge())D|=8192,ye=""+ +m;else if(!m)ye="0";else{m=""+parseInt(m,8),D|=32;let Je=y===41,bt=(Je?"-":"")+"0o"+(+m).toString(8);return Je&&te--,I(U.Octal_literals_are_not_allowed_Use_the_syntax_0,te,u-te,bt),9}else ye=oe();let xe,He;w(u)===46&&(u++,xe=oe());let Xe=u;if(w(u)===69||w(u)===101){u++,D|=16,(w(u)===43||w(u)===45)&&u++;let Je=u,bt=oe();bt?(He=l.substring(Xe,Je)+bt,Xe=u):I(U.Digit_expected)}let Qe;if(D&512?(Qe=ye,xe&&(Qe+="."+xe),He&&(Qe+=He)):Qe=l.substring(te,Xe),D&8192)return I(U.Decimals_with_leading_zeros_are_not_allowed,te,Xe-te),m=""+ +Qe,9;if(xe!==void 0||D&16)return me(te,xe===void 0&&!!(D&16)),m=""+ +Qe,9;{m=Qe;let Je=ir();return me(te),Je}}function me(te,ye){if(!_s(P(u),e))return;let xe=u,{length:He}=Jt();He===1&&l[xe]==="n"?I(ye?U.A_bigint_literal_cannot_use_exponential_notation:U.A_bigint_literal_must_be_an_integer,te,xe-te+1):(I(U.An_identifier_or_keyword_cannot_immediately_follow_a_numeric_literal,xe,He),u=xe)}function Ge(){let te=u,ye=!0;for(;Da(B(u));)Gy(w(u))||(ye=!1),u++;return m=l.substring(te,u),ye}function Q(te,ye){let xe=ge(te,!1,ye);return xe?parseInt(xe,16):-1}function we(te,ye){return ge(te,!0,ye)}function ge(te,ye,xe){let He=[],Xe=!1,Qe=!1;for(;He.length<te||ye;){let Je=w(u);if(xe&&Je===95){D|=512,Xe?(Xe=!1,Qe=!0):I(Qe?U.Multiple_consecutive_numeric_separators_are_not_permitted:U.Numeric_separators_are_not_allowed_here,u,1),u++;continue}if(Xe=xe,Je>=65&&Je<=70)Je+=32;else if(!(Je>=48&&Je<=57||Je>=97&&Je<=102))break;He.push(Je),u++,Qe=!1}return He.length<te&&(He=[]),w(u-1)===95&&I(U.Numeric_separators_are_not_allowed_here,u-1,1),String.fromCharCode(...He)}function Pe(te=!1){let ye=w(u);u++;let xe="",He=u;for(;;){if(u>=f){xe+=l.substring(He,u),D|=4,I(U.Unterminated_string_literal);break}let Xe=w(u);if(Xe===ye){xe+=l.substring(He,u),u++;break}if(Xe===92&&!te){xe+=l.substring(He,u),xe+=et(3),He=u;continue}if((Xe===10||Xe===13)&&!te){xe+=l.substring(He,u),D|=4,I(U.Unterminated_string_literal);break}u++}return xe}function Et(te){let ye=w(u)===96;u++;let xe=u,He="",Xe;for(;;){if(u>=f){He+=l.substring(xe,u),D|=4,I(U.Unterminated_template_literal),Xe=ye?15:18;break}let Qe=w(u);if(Qe===96){He+=l.substring(xe,u),u++,Xe=ye?15:18;break}if(Qe===36&&u+1<f&&w(u+1)===123){He+=l.substring(xe,u),u+=2,Xe=ye?16:17;break}if(Qe===92){He+=l.substring(xe,u),He+=et(1|(te?2:0)),xe=u;continue}if(Qe===13){He+=l.substring(xe,u),u++,u<f&&w(u)===10&&u++,He+=`
|
|
157
|
-
`,xe=u;continue}u++}return re.assert(Xe!==void 0),m=He,Xe}function et(te){let ye=u;if(u++,u>=f)return I(U.Unexpected_end_of_text),"";let xe=w(u);switch(u++,xe){case 48:if(u>=f||!Da(w(u)))return"\0";case 49:case 50:case 51:u<f&&Gy(w(u))&&u++;case 52:case 53:case 54:case 55:if(u<f&&Gy(w(u))&&u++,D|=2048,te&6){let Qe=parseInt(l.substring(ye+1,u),8);return te&4&&!(te&32)&&xe!==48?I(U.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,ye,u-ye,"\\x"+Qe.toString(16).padStart(2,"0")):I(U.Octal_escape_sequences_are_not_allowed_Use_the_syntax_0,ye,u-ye,"\\x"+Qe.toString(16).padStart(2,"0")),String.fromCharCode(Qe)}return l.substring(ye,u);case 56:case 57:return D|=2048,te&6?(te&4&&!(te&32)?I(U.Decimal_escape_sequences_and_backreferences_are_not_allowed_in_a_character_class,ye,u-ye):I(U.Escape_sequence_0_is_not_allowed,ye,u-ye,l.substring(ye,u)),String.fromCharCode(xe)):l.substring(ye,u);case 98:return"\b";case 116:return" ";case 110:return`
|
|
158
|
-
`;case 118:return"\v";case 102:return"\f";case 114:return"\r";case 39:return"'";case 34:return'"';case 117:if(u<f&&w(u)===123){u-=2;let Qe=rr(!!(te&6));return te&17||(D|=2048,te&6&&I(U.Unicode_escape_sequences_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,ye,u-ye)),Qe}for(;u<ye+6;u++)if(!(u<f&&Xy(w(u))))return D|=2048,te&6&&I(U.Hexadecimal_digit_expected),l.substring(ye,u);D|=1024;let He=parseInt(l.substring(ye+2,u),16),Xe=String.fromCharCode(He);if(te&16&&He>=55296&&He<=56319&&u+6<f&&l.substring(u,u+2)==="\\u"&&w(u+2)!==123){let Qe=u,Je=u+2;for(;Je<Qe+6;Je++)if(!Xy(w(Je)))return Xe;let bt=parseInt(l.substring(Qe+2,Je),16);if(bt>=56320&&bt<=57343)return u=Je,Xe+String.fromCharCode(bt)}return Xe;case 120:for(;u<ye+4;u++)if(!(u<f&&Xy(w(u))))return D|=2048,te&6&&I(U.Hexadecimal_digit_expected),l.substring(ye,u);return D|=4096,String.fromCharCode(parseInt(l.substring(ye+2,u),16));case 13:u<f&&w(u)===10&&u++;case 10:case 8232:case 8233:return"";default:return(te&16||te&4&&!(te&8)&&_i(xe,e))&&I(U.This_character_cannot_be_escaped_in_a_regular_expression,u-2,2),String.fromCharCode(xe)}}function rr(te){let ye=u;u+=3;let xe=u,He=we(1,!1),Xe=He?parseInt(He,16):-1,Qe=!1;return Xe<0?(te&&I(U.Hexadecimal_digit_expected),Qe=!0):Xe>1114111&&(te&&I(U.An_extended_Unicode_escape_value_must_be_between_0x0_and_0x10FFFF_inclusive,xe,u-xe),Qe=!0),u>=f?(te&&I(U.Unexpected_end_of_text),Qe=!0):w(u)===125?u++:(te&&I(U.Unterminated_Unicode_escape_sequence),Qe=!0),Qe?(D|=2048,l.substring(ye,u)):(D|=8,v3(Xe))}function Dt(){if(u+5<f&&w(u+1)===117){let te=u;u+=2;let ye=Q(4,!1);return u=te,ye}return-1}function Gt(){if(P(u+1)===117&&P(u+2)===123){let te=u;u+=3;let ye=we(1,!1),xe=ye?parseInt(ye,16):-1;return u=te,xe}return-1}function Jt(){let te="",ye=u;for(;u<f;){let xe=P(u);if(_i(xe,e))u+=$r(xe);else if(xe===92){if(xe=Gt(),xe>=0&&_i(xe,e)){te+=rr(!0),ye=u;continue}if(xe=Dt(),!(xe>=0&&_i(xe,e)))break;D|=1024,te+=l.substring(ye,u),te+=v3(xe),u+=6,ye=u}else break}return te+=l.substring(ye,u),te}function pt(){let te=m.length;if(te>=2&&te<=12){let ye=m.charCodeAt(0);if(ye>=97&&ye<=122){let xe=BJ.get(m);if(xe!==void 0)return y=xe}}return y=80}function Ot(te){let ye="",xe=!1,He=!1;for(;;){let Xe=w(u);if(Xe===95){D|=512,xe?(xe=!1,He=!0):I(He?U.Multiple_consecutive_numeric_separators_are_not_permitted:U.Numeric_separators_are_not_allowed_here,u,1),u++;continue}if(xe=!0,!Da(Xe)||Xe-48>=te)break;ye+=l[u],u++,He=!1}return w(u-1)===95&&I(U.Numeric_separators_are_not_allowed_here,u-1,1),ye}function ir(){return w(u)===110?(m+="n",D&384&&(m=hq(m)+"n"),u++,10):(m=""+(D&128?parseInt(m.slice(2),2):D&256?parseInt(m.slice(2),8):+m),9)}function Rt(){for(p=u,D=0;;){if(d=u,u>=f)return y=1;let te=P(u);if(u===0&&te===35&&KC(l,u)){if(u=zC(l,u),t)continue;return y=6}switch(te){case 10:case 13:if(D|=1,t){u++;continue}else return te===13&&u+1<f&&w(u+1)===10?u+=2:u++,y=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){u++;continue}else{for(;u<f&&wc(w(u));)u++;return y=5}case 33:return w(u+1)===61?w(u+2)===61?(u+=3,y=38):(u+=2,y=36):(u++,y=54);case 34:case 39:return m=Pe(),y=11;case 96:return y=Et(!1);case 37:return w(u+1)===61?(u+=2,y=70):(u++,y=45);case 38:return w(u+1)===38?w(u+2)===61?(u+=3,y=77):(u+=2,y=56):w(u+1)===61?(u+=2,y=74):(u++,y=51);case 40:return u++,y=21;case 41:return u++,y=22;case 42:if(w(u+1)===61)return u+=2,y=67;if(w(u+1)===42)return w(u+2)===61?(u+=3,y=68):(u+=2,y=43);if(u++,S&&(D&32768)===0&&D&1){D|=32768;continue}return y=42;case 43:return w(u+1)===43?(u+=2,y=46):w(u+1)===61?(u+=2,y=65):(u++,y=40);case 44:return u++,y=28;case 45:return w(u+1)===45?(u+=2,y=47):w(u+1)===61?(u+=2,y=66):(u++,y=41);case 46:return Da(w(u+1))?(ee(),y=9):w(u+1)===46&&w(u+2)===46?(u+=3,y=26):(u++,y=25);case 47:if(w(u+1)===47){for(u+=2;u<f&&!Nn(w(u));)u++;if(T=Er(T,l.slice(d,u),JJ,d),t)continue;return y=2}if(w(u+1)===42){u+=2;let Je=w(u)===42&&w(u+1)!==47,bt=!1,Mt=d;for(;u<f;){let At=w(u);if(At===42&&w(u+1)===47){u+=2,bt=!0;break}u++,Nn(At)&&(Mt=u,D|=1)}if(Je&&ve()&&(D|=2),T=Er(T,l.slice(Mt,u),RJ,Mt),bt||I(U.Asterisk_Slash_expected),t)continue;return bt||(D|=4),y=3}return w(u+1)===61?(u+=2,y=69):(u++,y=44);case 48:if(u+2<f&&(w(u+1)===88||w(u+1)===120))return u+=2,m=we(1,!0),m||(I(U.Hexadecimal_digit_expected),m="0"),m="0x"+m,D|=64,y=ir();if(u+2<f&&(w(u+1)===66||w(u+1)===98))return u+=2,m=Ot(2),m||(I(U.Binary_digit_expected),m="0"),m="0b"+m,D|=128,y=ir();if(u+2<f&&(w(u+1)===79||w(u+1)===111))return u+=2,m=Ot(8),m||(I(U.Octal_digit_expected),m="0"),m="0o"+m,D|=256,y=ir();case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return y=ee();case 58:return u++,y=59;case 59:return u++,y=27;case 60:if(Do(l,u)){if(u=vu(l,u,I),t)continue;return y=7}return w(u+1)===60?w(u+2)===61?(u+=3,y=71):(u+=2,y=48):w(u+1)===61?(u+=2,y=33):r===1&&w(u+1)===47&&w(u+2)!==42?(u+=2,y=31):(u++,y=30);case 61:if(Do(l,u)){if(u=vu(l,u,I),t)continue;return y=7}return w(u+1)===61?w(u+2)===61?(u+=3,y=37):(u+=2,y=35):w(u+1)===62?(u+=2,y=39):(u++,y=64);case 62:if(Do(l,u)){if(u=vu(l,u,I),t)continue;return y=7}return u++,y=32;case 63:return w(u+1)===46&&!Da(w(u+2))?(u+=2,y=29):w(u+1)===63?w(u+2)===61?(u+=3,y=78):(u+=2,y=61):(u++,y=58);case 91:return u++,y=23;case 93:return u++,y=24;case 94:return w(u+1)===61?(u+=2,y=79):(u++,y=53);case 123:return u++,y=19;case 124:if(Do(l,u)){if(u=vu(l,u,I),t)continue;return y=7}return w(u+1)===124?w(u+2)===61?(u+=3,y=76):(u+=2,y=57):w(u+1)===61?(u+=2,y=75):(u++,y=52);case 125:return u++,y=20;case 126:return u++,y=55;case 64:return u++,y=60;case 92:let ye=Gt();if(ye>=0&&_s(ye,e))return m=rr(!0)+Jt(),y=pt();let xe=Dt();return xe>=0&&_s(xe,e)?(u+=6,D|=1024,m=String.fromCharCode(xe)+Jt(),y=pt()):(I(U.Invalid_character),u++,y=0);case 35:if(u!==0&&l[u+1]==="!")return I(U.can_only_be_used_at_the_start_of_a_file,u,2),u++,y=0;let He=P(u+1);if(He===92){u++;let Je=Gt();if(Je>=0&&_s(Je,e))return m="#"+rr(!0)+Jt(),y=81;let bt=Dt();if(bt>=0&&_s(bt,e))return u+=6,D|=1024,m="#"+String.fromCharCode(bt)+Jt(),y=81;u--}return _s(He,e)?(u++,fe(He,e)):(m="#",I(U.Invalid_character,u++,$r(te))),y=81;case 65533:return I(U.File_appears_to_be_binary,0,0),u=f,y=8;default:let Xe=fe(te,e);if(Xe)return y=Xe;if(wc(te)){u+=$r(te);continue}else if(Nn(te)){D|=1,u+=$r(te);continue}let Qe=$r(te);return I(U.Invalid_character,u,Qe),u+=Qe,y=0}}}function ve(){switch(E){case 0:return!0;case 1:return!1}return v!==3&&v!==4?!0:E===3?!1:UJ.test(l.slice(p,u))}function ce(){re.assert(y===0,"'reScanInvalidIdentifier' should only be called when the current token is 'SyntaxKind.Unknown'."),u=d=p,D=0;let te=P(u),ye=fe(te,99);return ye?y=ye:(u+=$r(te),y)}function fe(te,ye){let xe=te;if(_s(xe,ye)){for(u+=$r(xe);u<f&&_i(xe=P(u),ye);)u+=$r(xe);return m=l.substring(d,u),xe===92&&(m+=Jt()),pt()}}function Ke(){if(y===32){if(w(u)===62)return w(u+1)===62?w(u+2)===61?(u+=3,y=73):(u+=2,y=50):w(u+1)===61?(u+=2,y=72):(u++,y=49);if(w(u)===61)return u++,y=34}return y}function xt(){return re.assert(y===67,"'reScanAsteriskEqualsToken' should only be called on a '*='"),u=d+1,y=64}function at(te){if(y===44||y===69){let ye=d+1;u=ye;let xe=!1,He=!1,Xe=!1;for(;;){let Je=B(u);if(Je===-1||Nn(Je)){D|=4;break}if(xe)xe=!1;else{if(Je===47&&!Xe)break;Je===91?Xe=!0:Je===92?xe=!0:Je===93?Xe=!1:!Xe&&Je===40&&B(u+1)===63&&B(u+2)===60&&B(u+3)!==61&&B(u+3)!==33&&(He=!0)}u++}let Qe=u;if(D&4){u=ye,xe=!1;let Je=0,bt=!1,Mt=0;for(;u<Qe;){let At=w(u);if(xe)xe=!1;else if(At===92)xe=!0;else if(At===91)Je++;else if(At===93&&Je)Je--;else if(!Je){if(At===123)bt=!0;else if(At===125&&bt)bt=!1;else if(!bt){if(At===40)Mt++;else if(At===41&&Mt)Mt--;else if(At===41||At===93||At===125)break}}u++}for(;Wc(B(u-1))||B(u-1)===59;)u--;I(U.Unterminated_regular_expression_literal,d,u-d)}else{u++;let Je=0;for(;;){let bt=k(u);if(bt===-1||!_i(bt,e))break;let Mt=$r(bt);if(te){let At=A3(bt);At===void 0?I(U.Unknown_regular_expression_flag,u,Mt):Je&At?I(U.Duplicate_regular_expression_flag,u,Mt):((Je|At)&96)===96?I(U.The_Unicode_u_flag_and_the_Unicode_Sets_v_flag_cannot_be_set_simultaneously,u,Mt):(Je|=At,Ut(At,Mt))}u+=Mt}te&&Oe(ye,Qe-ye,()=>{hr(Je,!0,He)})}m=l.substring(d,u),y=14}return y}function hr(te,ye,xe){var He=!!(te&64),Xe=!!(te&96),Qe=Xe||!1,Je=!1,bt=0,Mt,At,Ze,Un=[],Ht;function dn(le){for(;;){if(Un.push(Ht),Ht=void 0,$s(le),Ht=Un.pop(),B(u)!==124)return;u++}}function $s(le){let Ie=!1;for(;;){let yt=u,qe=B(u);switch(qe){case-1:return;case 94:case 36:u++,Ie=!1;break;case 92:switch(u++,B(u)){case 98:case 66:u++,Ie=!1;break;default:H(),Ie=!0;break}break;case 40:if(u++,B(u)===63)switch(u++,B(u)){case 61:case 33:u++,Ie=!Qe;break;case 60:let mr=u;switch(u++,B(u)){case 61:case 33:u++,Ie=!1;break;default:kt(!1),hn(62),e<5&&I(U.Named_capturing_groups_are_only_available_when_targeting_ES2018_or_later,mr,u-mr),bt++,Ie=!0;break}break;default:let Ir=u,fn=X(0);B(u)===45&&(u++,X(fn),u===Ir+1&&I(U.Subpattern_flags_must_be_present_when_there_is_a_minus_sign,Ir,u-Ir)),hn(58),Ie=!0;break}else bt++,Ie=!0;dn(!0),hn(41);break;case 123:u++;let Y=u;Ge();let sr=m;if(!Qe&&!sr){Ie=!0;break}if(B(u)===44){u++,Ge();let mr=m;if(sr)mr&&Number.parseInt(sr)>Number.parseInt(mr)&&(Qe||B(u)===125)&&I(U.Numbers_out_of_order_in_quantifier,Y,u-Y);else if(mr||B(u)===125)I(U.Incomplete_quantifier_Digit_expected,Y,0);else{I(U.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,yt,1,String.fromCharCode(qe)),Ie=!0;break}}else if(!sr){Qe&&I(U.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,yt,1,String.fromCharCode(qe)),Ie=!0;break}if(B(u)!==125)if(Qe)I(U._0_expected,u,0,"}"),u--;else{Ie=!0;break}case 42:case 43:case 63:u++,B(u)===63&&u++,Ie||I(U.There_is_nothing_available_for_repetition,yt,u-yt),Ie=!1;break;case 46:u++,Ie=!0;break;case 91:u++,He?Ct():jt(),hn(93),Ie=!0;break;case 41:if(le)return;case 93:case 125:(Qe||qe===41)&&I(U.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(qe)),u++,Ie=!0;break;case 47:case 124:return;default:Ja(),Ie=!0;break}}}function X(le){for(;;){let Ie=k(u);if(Ie===-1||!_i(Ie,e))break;let yt=$r(Ie),qe=A3(Ie);qe===void 0?I(U.Unknown_regular_expression_flag,u,yt):le&qe?I(U.Duplicate_regular_expression_flag,u,yt):qe&28?(le|=qe,Ut(qe,yt)):I(U.This_regular_expression_flag_cannot_be_toggled_within_a_subpattern,u,yt),u+=yt}return le}function H(){switch(re.assertEqual(w(u-1),92),B(u)){case 107:u++,B(u)===60?(u++,kt(!0),hn(62)):(Qe||xe)&&I(U.k_must_be_followed_by_a_capturing_group_name_enclosed_in_angle_brackets,u-2,2);break;case 113:if(He){u++,I(U.q_is_only_available_inside_character_class,u-2,2);break}default:re.assert(Ms()||A()||dt(!0));break}}function A(){re.assertEqual(w(u-1),92);let le=B(u);if(le>=49&&le<=57){let Ie=u;return Ge(),Ze=Pn(Ze,{pos:Ie,end:u,value:+m}),!0}return!1}function dt(le){re.assertEqual(w(u-1),92);let Ie=B(u);switch(Ie){case-1:return I(U.Undetermined_character_escape,u-1,1),"\\";case 99:if(u++,Ie=B(u),tD(Ie))return u++,String.fromCharCode(Ie&31);if(Qe)I(U.c_must_be_followed_by_an_ASCII_letter,u-2,2);else if(le)return u--,"\\";return String.fromCharCode(Ie);case 94:case 36:case 47:case 92:case 46:case 42:case 43:case 63:case 40:case 41:case 91:case 93:case 123:case 125:case 124:return u++,String.fromCharCode(Ie);default:return u--,et(12|(Xe?16:0)|(le?32:0))}}function kt(le){re.assertEqual(w(u-1),60),d=u,fe(k(u),e),u===d?I(U.Expected_a_capturing_group_name):le?At=Pn(At,{pos:d,end:u,name:m}):Ht?.has(m)||Un.some(Ie=>Ie?.has(m))?I(U.Named_capturing_groups_with_the_same_name_must_be_mutually_exclusive_to_each_other,d,u-d):(Ht??(Ht=new Set),Ht.add(m),Mt??(Mt=new Set),Mt.add(m))}function se(le){return le===93||le===-1||u>=f}function jt(){for(re.assertEqual(w(u-1),91),B(u)===94&&u++;;){let le=B(u);if(se(le))return;let Ie=u,yt=Xr();if(B(u)===45){u++;let qe=B(u);if(se(qe))return;!yt&&Qe&&I(U.A_character_class_range_must_not_be_bounded_by_another_character_class,Ie,u-1-Ie);let Y=u,sr=Xr();if(!sr&&Qe){I(U.A_character_class_range_must_not_be_bounded_by_another_character_class,Y,u-Y);continue}if(!yt)continue;let mr=xo(yt,0),Ir=xo(sr,0);yt.length===$r(mr)&&sr.length===$r(Ir)&&mr>Ir&&I(U.Range_out_of_order_in_character_class,Ie,u-Ie)}}}function Ct(){re.assertEqual(w(u-1),91);let le=!1;B(u)===94&&(u++,le=!0);let Ie=!1,yt=B(u);if(se(yt))return;let qe=u,Y;switch(l.slice(u,u+2)){case"--":case"&&":I(U.Expected_a_class_set_operand),Je=!1;break;default:Y=Sr();break}switch(B(u)){case 45:if(B(u+1)===45){le&&Je&&I(U.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,qe,u-qe),Ie=Je,vt(3),Je=!le&&Ie;return}break;case 38:if(B(u+1)===38){vt(2),le&&Je&&I(U.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,qe,u-qe),Ie=Je,Je=!le&&Ie;return}else I(U.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(yt));break;default:le&&Je&&I(U.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,qe,u-qe),Ie=Je;break}for(;yt=B(u),yt!==-1;){switch(yt){case 45:if(u++,yt=B(u),se(yt)){Je=!le&&Ie;return}if(yt===45){u++,I(U.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2),qe=u-2,Y=l.slice(qe,u);continue}else{Y||I(U.A_character_class_range_must_not_be_bounded_by_another_character_class,qe,u-1-qe);let sr=u,mr=Sr();if(le&&Je&&I(U.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,sr,u-sr),Ie||(Ie=Je),!mr){I(U.A_character_class_range_must_not_be_bounded_by_another_character_class,sr,u-sr);break}if(!Y)break;let Ir=xo(Y,0),fn=xo(mr,0);Y.length===$r(Ir)&&mr.length===$r(fn)&&Ir>fn&&I(U.Range_out_of_order_in_character_class,qe,u-qe)}break;case 38:qe=u,u++,B(u)===38?(u++,I(U.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2),B(u)===38&&(I(U.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(yt)),u++)):I(U.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u-1,1,String.fromCharCode(yt)),Y=l.slice(qe,u);continue}if(se(B(u)))break;switch(qe=u,l.slice(u,u+2)){case"--":case"&&":I(U.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u,2),u+=2,Y=l.slice(qe,u);break;default:Y=Sr();break}}Je=!le&&Ie}function vt(le){let Ie=Je;for(;;){let yt=B(u);if(se(yt))break;switch(yt){case 45:u++,B(u)===45?(u++,le!==3&&I(U.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2)):I(U.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-1,1);break;case 38:u++,B(u)===38?(u++,le!==2&&I(U.Operators_must_not_be_mixed_within_a_character_class_Wrap_it_in_a_nested_class_instead,u-2,2),B(u)===38&&(I(U.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(yt)),u++)):I(U.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u-1,1,String.fromCharCode(yt));break;default:switch(le){case 3:I(U._0_expected,u,0,"--");break;case 2:I(U._0_expected,u,0,"&&");break}break}if(yt=B(u),se(yt)){I(U.Expected_a_class_set_operand);break}Sr(),Ie&&(Ie=Je)}Je=Ie}function Sr(){switch(Je=!1,B(u)){case-1:return"";case 91:return u++,Ct(),hn(93),"";case 92:if(u++,Ms())return"";if(B(u)===113)return u++,B(u)===123?(u++,ar(),hn(125),""):(I(U.q_must_be_followed_by_string_alternatives_enclosed_in_braces,u-2,2),"q");u--;default:return _r()}}function ar(){re.assertEqual(w(u-1),123);let le=0;for(;;)switch(B(u)){case-1:return;case 125:le!==1&&(Je=!0);return;case 124:le!==1&&(Je=!0),u++,i=u,le=0;break;default:_r(),le++;break}}function _r(){let le=B(u);if(le===-1)return"";if(le===92){u++;let Ie=B(u);switch(Ie){case 98:return u++,"\b";case 38:case 45:case 33:case 35:case 37:case 44:case 58:case 59:case 60:case 61:case 62:case 64:case 96:case 126:return u++,String.fromCharCode(Ie);default:return dt(!1)}}else if(le===B(u+1))switch(le){case 38:case 33:case 35:case 37:case 42:case 43:case 44:case 46:case 58:case 59:case 60:case 61:case 62:case 63:case 64:case 96:case 126:return I(U.A_character_class_must_not_contain_a_reserved_double_punctuator_Did_you_mean_to_escape_it_with_backslash,u,2),u+=2,l.substring(u-2,u)}switch(le){case 47:case 40:case 41:case 91:case 93:case 123:case 125:case 45:case 124:return I(U.Unexpected_0_Did_you_mean_to_escape_it_with_backslash,u,1,String.fromCharCode(le)),u++,String.fromCharCode(le)}return Ja()}function Xr(){if(B(u)===92){u++;let le=B(u);switch(le){case 98:return u++,"\b";case 45:return u++,String.fromCharCode(le);default:return Ms()?"":dt(!1)}}else return Ja()}function Ms(){re.assertEqual(w(u-1),92);let le=!1,Ie=u-1,yt=B(u);switch(yt){case 100:case 68:case 115:case 83:case 119:case 87:return u++,!0;case 80:le=!0;case 112:if(u++,B(u)===123){u++;let qe=u,Y=is();if(B(u)===61){let sr=S3.get(Y);if(u===qe)I(U.Expected_a_Unicode_property_name);else if(sr===void 0){I(U.Unknown_Unicode_property_name,qe,u-qe);let fn=Fc(Y,S3.keys(),ur);fn&&I(U.Did_you_mean_0,qe,u-qe,fn)}u++;let mr=u,Ir=is();if(u===mr)I(U.Expected_a_Unicode_property_value);else if(sr!==void 0&&!Iu[sr].has(Ir)){I(U.Unknown_Unicode_property_value,mr,u-mr);let fn=Fc(Ir,Iu[sr],ur);fn&&I(U.Did_you_mean_0,mr,u-mr,fn)}}else if(u===qe)I(U.Expected_a_Unicode_property_name_or_value);else if(F3.has(Y))He?le?I(U.Anything_that_would_possibly_match_more_than_a_single_character_is_invalid_inside_a_negated_character_class,qe,u-qe):Je=!0:I(U.Any_Unicode_property_that_would_possibly_match_more_than_a_single_character_is_only_available_when_the_Unicode_Sets_v_flag_is_set,qe,u-qe);else if(!Iu.General_Category.has(Y)&&!_3.has(Y)){I(U.Unknown_Unicode_property_name_or_value,qe,u-qe);let sr=Fc(Y,[...Iu.General_Category,..._3,...F3],ur);sr&&I(U.Did_you_mean_0,qe,u-qe,sr)}hn(125),Xe||I(U.Unicode_property_value_expressions_are_only_available_when_the_Unicode_u_flag_or_the_Unicode_Sets_v_flag_is_set,Ie,u-Ie)}else if(Qe)I(U._0_must_be_followed_by_a_Unicode_property_value_expression_enclosed_in_braces,u-2,2,String.fromCharCode(yt));else return u--,!1;return!0}return!1}function is(){let le="";for(;;){let Ie=B(u);if(Ie===-1||!qC(Ie))break;le+=String.fromCharCode(Ie),u++}return le}function Ja(){let le=Xe?$r(k(u)):1;return u+=le,le>0?l.substring(u-le,u):""}function hn(le){B(u)===le?u++:I(U._0_expected,u,0,String.fromCharCode(le))}dn(!1),Qn(At,le=>{if(!Mt?.has(le.name)&&(I(U.There_is_no_capturing_group_named_0_in_this_regular_expression,le.pos,le.end-le.pos,le.name),Mt)){let Ie=Fc(le.name,Mt,ur);Ie&&I(U.Did_you_mean_0,le.pos,le.end-le.pos,Ie)}}),Qn(Ze,le=>{le.value>bt&&(bt?I(U.This_backreference_refers_to_a_group_that_does_not_exist_There_are_only_0_capturing_groups_in_this_regular_expression,le.pos,le.end-le.pos,bt):I(U.This_backreference_refers_to_a_group_that_does_not_exist_There_are_no_capturing_groups_in_this_regular_expression,le.pos,le.end-le.pos))})}function Ut(te,ye){let xe=LJ.get(te);xe&&e<xe&&I(U.This_regular_expression_flag_is_only_available_when_targeting_0_or_later,u,ye,uq(xe))}function Er(te,ye,xe,He){let Xe=It(ye.trimStart(),xe);return Xe===void 0?te:Pn(te,{range:{pos:He,end:u},type:Xe})}function It(te,ye){let xe=ye.exec(te);if(xe)switch(xe[1]){case"ts-expect-error":return 0;case"ts-ignore":return 1}}function Ar(te){return u=d,y=Et(!te)}function br(){return u=d,y=Et(!0)}function Nr(te=!0){return u=d=p,y=Hr(te)}function nn(){return y===48?(u=d+1,y=30):y}function pn(){return y===81?(u=d+1,y=63):y}function Vr(){return re.assert(y===61,"'reScanQuestionToken' should only be called on a '??'"),u=d+1,y=58}function Hr(te=!0){if(p=d=u,u>=f)return y=1;let ye=w(u);if(ye===60)return w(u+1)===47?(u+=2,y=31):(u++,y=30);if(ye===123)return u++,y=19;let xe=0;for(;u<f&&(ye=w(u),ye!==123);){if(ye===60){if(Do(l,u))return u=vu(l,u,I),y=7;break}if(ye===62&&I(U.Unexpected_token_Did_you_mean_or_gt,u,1),ye===125&&I(U.Unexpected_token_Did_you_mean_or_rbrace,u,1),Nn(ye)&&xe===0)xe=-1;else{if(!te&&Nn(ye)&&xe>0)break;Wc(ye)||(xe=u)}u++}return m=l.substring(p,u),xe===-1?13:12}function hi(){if(yr(y)){for(;u<f;){if(w(u)===45){m+="-",u++;continue}let te=u;if(m+=Jt(),u===te)break}return pt()}return y}function ns(){switch(p=u,w(u)){case 34:case 39:return m=Pe(!0),y=11;default:return Rt()}}function rt(){return u=d=p,ns()}function Os(te){if(p=d=u,D=0,u>=f)return y=1;for(let ye=w(u);u<f&&!Nn(ye)&&ye!==96&&!(!te&&(ye===123||ye===64&&u-1>=0&&wc(w(u-1))&&!(u+1<f&&Wc(w(u+1)))));ye=P(++u));return u===d?G():(m=l.substring(d,u),y=82)}function G(){if(p=d=u,D=0,u>=f)return y=1;let te=P(u);switch(u+=$r(te),te){case 9:case 11:case 12:case 32:for(;u<f&&wc(w(u));)u++;return y=5;case 64:return y=60;case 13:w(u)===10&&u++;case 10:return D|=1,y=4;case 42:return y=42;case 123:return y=19;case 125:return y=20;case 91:return y=23;case 93:return y=24;case 40:return y=21;case 41:return y=22;case 60:return y=30;case 62:return y=32;case 61:return y=64;case 44:return y=28;case 46:return y=25;case 96:return y=62;case 35:return y=63;case 92:u--;let ye=Gt();if(ye>=0&&_s(ye,e))return m=rr(!0)+Jt(),y=pt();let xe=Dt();return xe>=0&&_s(xe,e)?(u+=6,D|=1024,m=String.fromCharCode(xe)+Jt(),y=pt()):(u++,y=0)}if(_s(te,e)){let ye=te;for(;u<f&&_i(ye=P(u),e)||ye===45;)u+=$r(ye);return m=l.substring(d,u),ye===92&&(m+=Jt()),y=pt()}else return y=0}function Fe(te,ye){let xe=u,He=p,Xe=d,Qe=y,Je=m,bt=D,Mt=te();return(!Mt||ye)&&(u=xe,p=He,d=Xe,y=Qe,m=Je,D=bt),Mt}function Oe(te,ye,xe){let He=f,Xe=u,Qe=p,Je=d,bt=y,Mt=m,At=D,Ze=T;vr(l,te,ye);let Un=xe();return f=He,u=Xe,p=Qe,d=Je,y=bt,m=Mt,D=At,T=Ze,Un}function Ve(te){return Fe(te,!0)}function Ft(te){return Fe(te,!1)}function $t(){return l}function Qt(){T=void 0}function vr(te,ye,xe){l=te||"",f=xe===void 0?l.length:ye+xe,ss(ye||0)}function fr(te){s=te}function Yt(te){e=te}function Qi(te){r=te}function Cn(te){v=te}function fi(te){E=te}function ss(te){re.assert(te>=0),u=te,p=te,d=te,y=0,m=void 0,D=0}function ja(te){S+=te?1:-1}}function xo(e,t){return e.codePointAt(t)}function $r(e){return e>=65536?2:e===-1?0:1}function tR(e){if(re.assert(0<=e&&e<=1114111),e<=65535)return String.fromCharCode(e);let t=Math.floor((e-65536)/1024)+55296,r=(e-65536)%1024+56320;return String.fromCharCode(t,r)}var rR=String.fromCodePoint?e=>String.fromCodePoint(e):tR;function v3(e){return rR(e)}var S3=new Map(Object.entries({General_Category:"General_Category",gc:"General_Category",Script:"Script",sc:"Script",Script_Extensions:"Script_Extensions",scx:"Script_Extensions"})),_3=new Set(["ASCII","ASCII_Hex_Digit","AHex","Alphabetic","Alpha","Any","Assigned","Bidi_Control","Bidi_C","Bidi_Mirrored","Bidi_M","Case_Ignorable","CI","Cased","Changes_When_Casefolded","CWCF","Changes_When_Casemapped","CWCM","Changes_When_Lowercased","CWL","Changes_When_NFKC_Casefolded","CWKCF","Changes_When_Titlecased","CWT","Changes_When_Uppercased","CWU","Dash","Default_Ignorable_Code_Point","DI","Deprecated","Dep","Diacritic","Dia","Emoji","Emoji_Component","EComp","Emoji_Modifier","EMod","Emoji_Modifier_Base","EBase","Emoji_Presentation","EPres","Extended_Pictographic","ExtPict","Extender","Ext","Grapheme_Base","Gr_Base","Grapheme_Extend","Gr_Ext","Hex_Digit","Hex","IDS_Binary_Operator","IDSB","IDS_Trinary_Operator","IDST","ID_Continue","IDC","ID_Start","IDS","Ideographic","Ideo","Join_Control","Join_C","Logical_Order_Exception","LOE","Lowercase","Lower","Math","Noncharacter_Code_Point","NChar","Pattern_Syntax","Pat_Syn","Pattern_White_Space","Pat_WS","Quotation_Mark","QMark","Radical","Regional_Indicator","RI","Sentence_Terminal","STerm","Soft_Dotted","SD","Terminal_Punctuation","Term","Unified_Ideograph","UIdeo","Uppercase","Upper","Variation_Selector","VS","White_Space","space","XID_Continue","XIDC","XID_Start","XIDS"]),F3=new Set(["Basic_Emoji","Emoji_Keycap_Sequence","RGI_Emoji_Modifier_Sequence","RGI_Emoji_Flag_Sequence","RGI_Emoji_Tag_Sequence","RGI_Emoji_ZWJ_Sequence","RGI_Emoji"]),Iu={General_Category:new Set(["C","Other","Cc","Control","cntrl","Cf","Format","Cn","Unassigned","Co","Private_Use","Cs","Surrogate","L","Letter","LC","Cased_Letter","Ll","Lowercase_Letter","Lm","Modifier_Letter","Lo","Other_Letter","Lt","Titlecase_Letter","Lu","Uppercase_Letter","M","Mark","Combining_Mark","Mc","Spacing_Mark","Me","Enclosing_Mark","Mn","Nonspacing_Mark","N","Number","Nd","Decimal_Number","digit","Nl","Letter_Number","No","Other_Number","P","Punctuation","punct","Pc","Connector_Punctuation","Pd","Dash_Punctuation","Pe","Close_Punctuation","Pf","Final_Punctuation","Pi","Initial_Punctuation","Po","Other_Punctuation","Ps","Open_Punctuation","S","Symbol","Sc","Currency_Symbol","Sk","Modifier_Symbol","Sm","Math_Symbol","So","Other_Symbol","Z","Separator","Zl","Line_Separator","Zp","Paragraph_Separator","Zs","Space_Separator"]),Script:new Set(["Adlm","Adlam","Aghb","Caucasian_Albanian","Ahom","Arab","Arabic","Armi","Imperial_Aramaic","Armn","Armenian","Avst","Avestan","Bali","Balinese","Bamu","Bamum","Bass","Bassa_Vah","Batk","Batak","Beng","Bengali","Bhks","Bhaiksuki","Bopo","Bopomofo","Brah","Brahmi","Brai","Braille","Bugi","Buginese","Buhd","Buhid","Cakm","Chakma","Cans","Canadian_Aboriginal","Cari","Carian","Cham","Cher","Cherokee","Chrs","Chorasmian","Copt","Coptic","Qaac","Cpmn","Cypro_Minoan","Cprt","Cypriot","Cyrl","Cyrillic","Deva","Devanagari","Diak","Dives_Akuru","Dogr","Dogra","Dsrt","Deseret","Dupl","Duployan","Egyp","Egyptian_Hieroglyphs","Elba","Elbasan","Elym","Elymaic","Ethi","Ethiopic","Geor","Georgian","Glag","Glagolitic","Gong","Gunjala_Gondi","Gonm","Masaram_Gondi","Goth","Gothic","Gran","Grantha","Grek","Greek","Gujr","Gujarati","Guru","Gurmukhi","Hang","Hangul","Hani","Han","Hano","Hanunoo","Hatr","Hatran","Hebr","Hebrew","Hira","Hiragana","Hluw","Anatolian_Hieroglyphs","Hmng","Pahawh_Hmong","Hmnp","Nyiakeng_Puachue_Hmong","Hrkt","Katakana_Or_Hiragana","Hung","Old_Hungarian","Ital","Old_Italic","Java","Javanese","Kali","Kayah_Li","Kana","Katakana","Kawi","Khar","Kharoshthi","Khmr","Khmer","Khoj","Khojki","Kits","Khitan_Small_Script","Knda","Kannada","Kthi","Kaithi","Lana","Tai_Tham","Laoo","Lao","Latn","Latin","Lepc","Lepcha","Limb","Limbu","Lina","Linear_A","Linb","Linear_B","Lisu","Lyci","Lycian","Lydi","Lydian","Mahj","Mahajani","Maka","Makasar","Mand","Mandaic","Mani","Manichaean","Marc","Marchen","Medf","Medefaidrin","Mend","Mende_Kikakui","Merc","Meroitic_Cursive","Mero","Meroitic_Hieroglyphs","Mlym","Malayalam","Modi","Mong","Mongolian","Mroo","Mro","Mtei","Meetei_Mayek","Mult","Multani","Mymr","Myanmar","Nagm","Nag_Mundari","Nand","Nandinagari","Narb","Old_North_Arabian","Nbat","Nabataean","Newa","Nkoo","Nko","Nshu","Nushu","Ogam","Ogham","Olck","Ol_Chiki","Orkh","Old_Turkic","Orya","Oriya","Osge","Osage","Osma","Osmanya","Ougr","Old_Uyghur","Palm","Palmyrene","Pauc","Pau_Cin_Hau","Perm","Old_Permic","Phag","Phags_Pa","Phli","Inscriptional_Pahlavi","Phlp","Psalter_Pahlavi","Phnx","Phoenician","Plrd","Miao","Prti","Inscriptional_Parthian","Rjng","Rejang","Rohg","Hanifi_Rohingya","Runr","Runic","Samr","Samaritan","Sarb","Old_South_Arabian","Saur","Saurashtra","Sgnw","SignWriting","Shaw","Shavian","Shrd","Sharada","Sidd","Siddham","Sind","Khudawadi","Sinh","Sinhala","Sogd","Sogdian","Sogo","Old_Sogdian","Sora","Sora_Sompeng","Soyo","Soyombo","Sund","Sundanese","Sylo","Syloti_Nagri","Syrc","Syriac","Tagb","Tagbanwa","Takr","Takri","Tale","Tai_Le","Talu","New_Tai_Lue","Taml","Tamil","Tang","Tangut","Tavt","Tai_Viet","Telu","Telugu","Tfng","Tifinagh","Tglg","Tagalog","Thaa","Thaana","Thai","Tibt","Tibetan","Tirh","Tirhuta","Tnsa","Tangsa","Toto","Ugar","Ugaritic","Vaii","Vai","Vith","Vithkuqi","Wara","Warang_Citi","Wcho","Wancho","Xpeo","Old_Persian","Xsux","Cuneiform","Yezi","Yezidi","Yiii","Yi","Zanb","Zanabazar_Square","Zinh","Inherited","Qaai","Zyyy","Common","Zzzz","Unknown"]),Script_Extensions:void 0};Iu.Script_Extensions=Iu.Script;function Ws(e){return e.start+e.length}function nR(e){return e.length===0}function sD(e,t){if(e<0)throw new Error("start < 0");if(t<0)throw new Error("length < 0");return{start:e,length:t}}function sR(e,t){return sD(e,t-e)}function xc(e){return sD(e.span.start,e.newLength)}function iR(e){return nR(e.span)&&e.newLength===0}function HC(e,t){if(t<0)throw new Error("newLength < 0");return{span:e,newLength:t}}HC(sD(0,0),0);function XC(e,t){for(;e;){let r=t(e);if(r==="quit")return;if(r)return e;e=e.parent}}function Yf(e){return(e.flags&16)===0}function aR(e,t){if(e===void 0||Yf(e))return e;for(e=e.original;e;){if(Yf(e))return e;e=e.original}}function Su(e){return e.length>=2&&e.charCodeAt(0)===95&&e.charCodeAt(1)===95?"_"+e:e}function rp(e){let t=e;return t.length>=3&&t.charCodeAt(0)===95&&t.charCodeAt(1)===95&&t.charCodeAt(2)===95?t.substr(1):t}function jn(e){return rp(e.escapedText)}function oR(e){let t=JC(e.escapedText);return t?pJ(t,xa):void 0}function V0(e){return e.valueDeclaration&&IR(e.valueDeclaration)?jn(e.valueDeclaration.name):rp(e.escapedName)}function GC(e){let t=e.parent.parent;if(t){if(P3(t))return mf(t);switch(t.kind){case 244:if(t.declarationList&&t.declarationList.declarations[0])return mf(t.declarationList.declarations[0]);break;case 245:let r=t.expression;switch(r.kind===227&&r.operatorToken.kind===64&&(r=r.left),r.kind){case 212:return r.name;case 213:let n=r.argumentExpression;if(zt(n))return n}break;case 218:return mf(t.expression);case 257:{if(P3(t.statement)||WR(t.statement))return mf(t.statement);break}}}}function mf(e){let t=QC(e);return t&&zt(t)?t:void 0}function uR(e){return e.name||GC(e)}function lR(e){return!!e.name}function iD(e){switch(e.kind){case 80:return e;case 349:case 342:{let{name:r}=e;if(r.kind===167)return r.right;break}case 214:case 227:{let r=e;switch(cD(r)){case 1:case 4:case 5:case 3:return pD(r.left);case 7:case 8:case 9:return r.arguments[1];default:return}}case 347:return uR(e);case 341:return GC(e);case 278:{let{expression:r}=e;return zt(r)?r:void 0}case 213:let t=e;if(h8(t))return t.argumentExpression}return e.name}function QC(e){if(e!==void 0)return iD(e)||(P8(e)||N8(e)||t2(e)?cR(e):void 0)}function cR(e){if(e.parent){if(CK(e.parent)||aK(e.parent))return e.parent.name;if(Qu(e.parent)&&e===e.parent.right){if(zt(e.parent.left))return e.parent.left;if(x8(e.parent.left))return pD(e.parent.left)}else if(B8(e.parent)&&zt(e.parent.name))return e.parent.name}else return}function pR(e){if(jU(e))return Pi(e.modifiers,DD)}function dR(e){if(Ap(e,98303))return Pi(e.modifiers,OR)}function YC(e,t){if(e.name)if(zt(e.name)){let r=e.name.escapedText;return np(e.parent,t).filter(n=>z3(n)&&zt(n.name)&&n.name.escapedText===r)}else{let r=e.parent.parameters.indexOf(e);re.assert(r>-1,"Parameters should always be in their parents' parameter list");let n=np(e.parent,t).filter(z3);if(r<n.length)return[n[r]]}return xr}function hR(e){return YC(e,!1)}function fR(e){return YC(e,!0)}function ZC(e,t){let r=e.name.escapedText;return np(e.parent,t).filter(n=>MK(n)&&n.typeParameters.some(s=>s.name.escapedText===r))}function mR(e){return ZC(e,!1)}function yR(e){return ZC(e,!0)}function gR(e){return Ma(e,kK)}function DR(e){return SR(e,jK)}function xR(e){return Ma(e,wK,!0)}function TR(e){return Ma(e,PK,!0)}function ER(e){return Ma(e,NK,!0)}function bR(e){return Ma(e,IK,!0)}function CR(e){return Ma(e,BK,!0)}function AR(e){return Ma(e,OK,!0)}function vR(e){let t=Ma(e,ED);if(t&&t.typeExpression&&t.typeExpression.type)return t}function np(e,t){var r;if(!dD(e))return xr;let n=(r=e.jsDoc)==null?void 0:r.jsDocCache;if(n===void 0||t){let s=CU(e,t);re.assert(s.length<2||s[0]!==s[1]),n=EC(s,i=>q8(i)?i.tags:i),t||(e.jsDoc??(e.jsDoc=[]),e.jsDoc.jsDocCache=n)}return n}function e8(e){return np(e,!1)}function Ma(e,t,r){return xC(np(e,r),t)}function SR(e,t){return e8(e).filter(t)}function H0(e){return e.kind===80||e.kind===81}function _R(e){return Gi(e)&&!!(e.flags&64)}function FR(e){return vp(e)&&!!(e.flags&64)}function k3(e){return w8(e)&&!!(e.flags&64)}function kR(e){let t=e.kind;return!!(e.flags&64)&&(t===212||t===213||t===214||t===236)}function aD(e){return bD(e,8)}function wR(e){return $f(e)&&!!(e.flags&64)}function oD(e){return e>=167}function t8(e){return e>=0&&e<=166}function PR(e){return t8(e.kind)}function Ta(e){return ri(e,"pos")&&ri(e,"end")}function NR(e){return 9<=e&&e<=15}function w3(e){return 15<=e&&e<=18}function Bu(e){var t;return zt(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function r8(e){var t;return No(e)&&((t=e.emitNode)==null?void 0:t.autoGenerate)!==void 0}function IR(e){return(rm(e)||jR(e))&&No(e.name)}function Fi(e){switch(e){case 128:case 129:case 134:case 87:case 138:case 90:case 95:case 103:case 125:case 123:case 124:case 148:case 126:case 147:case 164:return!0}return!1}function BR(e){return!!(g8(e)&31)}function LR(e){return BR(e)||e===126||e===164||e===129}function OR(e){return Fi(e.kind)}function n8(e){let t=e.kind;return t===80||t===81||t===11||t===9||t===168}function s8(e){return!!e&&MR(e.kind)}function $R(e){switch(e){case 263:case 175:case 177:case 178:case 179:case 219:case 220:return!0;default:return!1}}function MR(e){switch(e){case 174:case 180:case 324:case 181:case 182:case 185:case 318:case 186:return!0;default:return $R(e)}}function Mu(e){return e&&(e.kind===264||e.kind===232)}function jR(e){switch(e.kind){case 175:case 178:case 179:return!0;default:return!1}}function JR(e){let t=e.kind;return t===304||t===305||t===306||t===175||t===178||t===179}function RR(e){return GU(e.kind)}function UR(e){if(e){let t=e.kind;return t===208||t===207}return!1}function qR(e){let t=e.kind;return t===210||t===211}function KR(e){switch(e.kind){case 261:case 170:case 209:return!0}return!1}function ju(e){return i8(aD(e).kind)}function i8(e){switch(e){case 212:case 213:case 215:case 214:case 285:case 286:case 289:case 216:case 210:case 218:case 211:case 232:case 219:case 80:case 81:case 14:case 9:case 10:case 11:case 15:case 229:case 97:case 106:case 110:case 112:case 108:case 236:case 234:case 237:case 102:case 283:return!0;default:return!1}}function zR(e){return a8(aD(e).kind)}function a8(e){switch(e){case 225:case 226:case 221:case 222:case 223:case 224:case 217:return!0;default:return i8(e)}}function WR(e){return VR(aD(e).kind)}function VR(e){switch(e){case 228:case 230:case 220:case 227:case 231:case 235:case 233:case 357:case 356:case 239:return!0;default:return a8(e)}}function HR(e){return e===220||e===209||e===264||e===232||e===176||e===177||e===267||e===307||e===282||e===263||e===219||e===178||e===274||e===272||e===277||e===265||e===292||e===175||e===174||e===268||e===271||e===275||e===281||e===170||e===304||e===173||e===172||e===179||e===305||e===266||e===169||e===261||e===347||e===339||e===349||e===203}function o8(e){return e===263||e===283||e===264||e===265||e===266||e===267||e===268||e===273||e===272||e===279||e===278||e===271}function u8(e){return e===253||e===252||e===260||e===247||e===245||e===243||e===250||e===251||e===249||e===246||e===257||e===254||e===256||e===258||e===259||e===244||e===248||e===255||e===354}function P3(e){return e.kind===169?e.parent&&e.parent.kind!==346||Ko(e):HR(e.kind)}function XR(e){let t=e.kind;return u8(t)||o8(t)||GR(e)}function GR(e){return e.kind!==242||e.parent!==void 0&&(e.parent.kind===259||e.parent.kind===300)?!1:!cU(e)}function QR(e){let t=e.kind;return u8(t)||o8(t)||t===242}function l8(e){return e.kind>=310&&e.kind<=352}function YR(e){return e.kind===321||e.kind===320||e.kind===322||tU(e)||ZR(e)||FK(e)||K8(e)}function ZR(e){return e.kind>=328&&e.kind<=352}function yf(e){return e.kind===179}function gf(e){return e.kind===178}function vo(e){if(!dD(e))return!1;let{jsDoc:t}=e;return!!t&&t.length>0}function eU(e){return!!e.initializer}function uD(e){return e.kind===11||e.kind===15}function tU(e){return e.kind===325||e.kind===326||e.kind===327}function N3(e){return(e.flags&33554432)!==0}function rU(e,t){let r=e.entries();for(let[n,s]of r){let i=t(s,n);if(i)return i}}function nU(e){return e.end-e.pos}function c8(e){return sU(e),(e.flags&1048576)!==0}function sU(e){e.flags&2097152||(((e.flags&262144)!==0||Zr(e,c8))&&(e.flags|=1048576),e.flags|=2097152)}function Sa(e){for(;e&&e.kind!==308;)e=e.parent;return e}function So(e){return e===void 0?!0:e.pos===e.end&&e.pos>=0&&e.kind!==1}function X0(e){return!So(e)}function Zf(e,t,r){if(So(e))return e.pos;if(l8(e)||e.kind===12)return Gs((t??Sa(e)).text,e.pos,!1,!0);if(r&&vo(e))return Zf(e.jsDoc[0],t);if(e.kind===353){t??(t=Sa(e));let n=Xg(z8(e,t));if(n)return Zf(n,t,r)}return Gs((t??Sa(e)).text,e.pos,!1,!1,pU(e))}function I3(e,t,r=!1){return Pc(e.text,t,r)}function iU(e){return!!XC(e,vK)}function Pc(e,t,r=!1){if(So(t))return"";let n=e.substring(r?t.pos:Gs(e,t.pos),t.end);return iU(t)&&(n=n.split(/\r\n|\n|\r/).map(s=>s.replace(/^\s*\*/,"").trimStart()).join(`
|
|
159
|
-
`)),n}function Ju(e){let t=e.emitNode;return t&&t.flags||0}function aU(e,t,r){re.assertGreaterThanOrEqual(t,0),re.assertGreaterThanOrEqual(r,0),re.assertLessThanOrEqual(t,e.length),re.assertLessThanOrEqual(t+r,e.length)}function Of(e){return e.kind===245&&e.expression.kind===11}function lD(e){return!!(Ju(e)&2097152)}function B3(e){return lD(e)&&L8(e)}function oU(e){return zt(e.name)&&!e.initializer}function L3(e){return lD(e)&&Om(e)&&Vg(e.declarationList.declarations,oU)}function uU(e,t){let r=e.kind===170||e.kind===169||e.kind===219||e.kind===220||e.kind===218||e.kind===261||e.kind===282?Hg(ZJ(t,e.pos),W0(t,e.pos)):W0(t,e.pos);return Pi(r,n=>n.end<=e.end&&t.charCodeAt(n.pos+1)===42&&t.charCodeAt(n.pos+2)===42&&t.charCodeAt(n.pos+3)!==47)}function lU(e){if(e)switch(e.kind){case 209:case 307:case 170:case 304:case 173:case 172:case 305:case 261:return!0}return!1}function cU(e){return e&&e.kind===242&&s8(e.parent)}function O3(e){let t=e.kind;return(t===212||t===213)&&e.expression.kind===108}function Ko(e){return!!e&&!!(e.flags&524288)}function pU(e){return!!e&&!!(e.flags&16777216)}function dU(e){for(;em(e,!0);)e=e.right;return e}function hU(e){return zt(e)&&e.escapedText==="exports"}function fU(e){return zt(e)&&e.escapedText==="module"}function p8(e){return(Gi(e)||d8(e))&&fU(e.expression)&&ip(e)==="exports"}function cD(e){let t=yU(e);return t===5||Ko(e)?t:0}function mU(e){return _c(e.arguments)===3&&Gi(e.expression)&&zt(e.expression.expression)&&jn(e.expression.expression)==="Object"&&jn(e.expression.name)==="defineProperty"&&Lm(e.arguments[1])&&sp(e.arguments[0],!0)}function d8(e){return vp(e)&&Lm(e.argumentExpression)}function Cp(e,t){return Gi(e)&&(!t&&e.expression.kind===110||zt(e.name)&&sp(e.expression,!0))||h8(e,t)}function h8(e,t){return d8(e)&&(!t&&e.expression.kind===110||mD(e.expression)||Cp(e.expression,!0))}function sp(e,t){return mD(e)||Cp(e,t)}function yU(e){if(w8(e)){if(!mU(e))return 0;let t=e.arguments[0];return hU(t)||p8(t)?8:Cp(t)&&ip(t)==="prototype"?9:7}return e.operatorToken.kind!==64||!x8(e.left)||gU(dU(e))?0:sp(e.left.expression,!0)&&ip(e.left)==="prototype"&&k8(xU(e))?6:DU(e.left)}function gU(e){return lK(e)&&ul(e.expression)&&e.expression.text==="0"}function pD(e){if(Gi(e))return e.name;let t=hD(e.argumentExpression);return ul(t)||uD(t)?t:e}function ip(e){let t=pD(e);if(t){if(zt(t))return t.escapedText;if(uD(t)||ul(t))return Su(t.text)}}function DU(e){if(e.expression.kind===110)return 4;if(p8(e))return 2;if(sp(e.expression,!0)){if(HU(e.expression))return 3;let t=e;for(;!zt(t.expression);)t=t.expression;let r=t.expression;if((r.escapedText==="exports"||r.escapedText==="module"&&ip(t)==="exports")&&Cp(e))return 1;if(sp(e,!0)||vp(e)&&IU(e))return 5}return 0}function xU(e){for(;Qu(e.right);)e=e.right;return e.right}function TU(e){return I8(e)&&Qu(e.expression)&&cD(e.expression)!==0&&Qu(e.expression.right)&&(e.expression.right.operatorToken.kind===57||e.expression.right.operatorToken.kind===61)?e.expression.right.right:void 0}function EU(e){switch(e.kind){case 244:let t=G0(e);return t&&t.initializer;case 173:return e.initializer;case 304:return e.initializer}}function G0(e){return Om(e)?Xg(e.declarationList.declarations):void 0}function bU(e){return op(e)&&e.body&&e.body.kind===268?e.body:void 0}function dD(e){switch(e.kind){case 220:case 227:case 242:case 253:case 180:case 297:case 264:case 232:case 176:case 177:case 186:case 181:case 252:case 260:case 247:case 213:case 243:case 1:case 267:case 307:case 278:case 279:case 282:case 245:case 250:case 251:case 249:case 263:case 219:case 185:case 178:case 80:case 246:case 273:case 272:case 182:case 265:case 318:case 324:case 257:case 175:case 174:case 268:case 203:case 271:case 211:case 170:case 218:case 212:case 304:case 173:case 172:case 254:case 241:case 179:case 305:case 306:case 256:case 258:case 259:case 266:case 169:case 261:case 244:case 248:case 255:return!0;default:return!1}}function CU(e,t){let r;lU(e)&&eU(e)&&vo(e.initializer)&&(r=Ln(r,$3(e,e.initializer.jsDoc)));let n=e;for(;n&&n.parent;){if(vo(n)&&(r=Ln(r,$3(e,n.jsDoc))),n.kind===170){r=Ln(r,(t?fR:hR)(n));break}if(n.kind===169){r=Ln(r,(t?yR:mR)(n));break}n=vU(n)}return r||xr}function $3(e,t){let r=rJ(t);return EC(t,n=>{if(n===r){let s=Pi(n.tags,i=>AU(e,i));return n.tags===s?[n]:s}else return Pi(n.tags,LK)})}function AU(e,t){return!(ED(t)||JK(t))||!t.parent||!q8(t.parent)||!xD(t.parent.parent)||t.parent.parent===e}function vU(e){let t=e.parent;if(t.kind===304||t.kind===278||t.kind===173||t.kind===245&&e.kind===212||t.kind===254||bU(t)||em(e))return t;if(t.parent&&(G0(t.parent)===e||em(t)))return t.parent;if(t.parent&&t.parent.parent&&(G0(t.parent.parent)||EU(t.parent.parent)===e||TU(t.parent.parent)))return t.parent.parent}function hD(e,t){return bD(e,1)}function SU(e){let t=_U(e);if(t&&Ko(e)){let r=gR(e);if(r)return r.class}return t}function _U(e){let t=fD(e.heritageClauses,96);return t&&t.types.length>0?t.types[0]:void 0}function FU(e){return Ko(e)?DR(e).map(t=>t.class):fD(e.heritageClauses,119)?.types}function kU(e){return TD(e)?wU(e)||xr:Mu(e)&&Hg(U0(SU(e)),FU(e))||xr}function wU(e){let t=fD(e.heritageClauses,96);return t?t.types:void 0}function fD(e,t){if(e){for(let r of e)if(r.token===t)return r}}function xa(e){return 83<=e&&e<=166}function PU(e){return 19<=e&&e<=79}function Qy(e){return xa(e)||PU(e)}function Lm(e){return uD(e)||ul(e)}function NU(e){return cK(e)&&(e.operator===40||e.operator===41)&&ul(e.operand)}function IU(e){if(!(e.kind===168||e.kind===213))return!1;let t=vp(e)?hD(e.argumentExpression):e.expression;return!Lm(t)&&!NU(t)}function BU(e){return H0(e)?jn(e):U8(e)?xq(e):e.text}function _u(e){return ap(e.pos)||ap(e.end)}function Yy(e){switch(e){case 61:return 5;case 57:return 5;case 56:return 6;case 52:return 7;case 53:return 8;case 51:return 9;case 35:case 36:case 37:case 38:return 10;case 30:case 32:case 33:case 34:case 104:case 103:case 130:case 152:return 11;case 48:case 49:case 50:return 12;case 40:case 41:return 13;case 42:case 44:case 45:return 14;case 43:return 15}return-1}function Zy(e){return!!((e.templateFlags||0)&2048)}function LU(e){return e&&!!(Nq(e)?Zy(e):Zy(e.head)||Yr(e.templateSpans,t=>Zy(t.literal)))}new Map(Object.entries({" ":"\\t","\v":"\\v","\f":"\\f","\b":"\\b","\r":"\\r","\n":"\\n","\\":"\\\\",'"':'\\"',"'":"\\'","`":"\\`","\u2028":"\\u2028","\u2029":"\\u2029","
":"\\u0085","\r\n":"\\r\\n"}));new Map(Object.entries({'"':""","'":"'"}));function OU(e){return!!e&&e.kind===80&&$U(e)}function $U(e){return e.escapedText==="this"}function Ap(e,t){return!!JU(e,t)}function MU(e){return Ap(e,256)}function jU(e){return Ap(e,32768)}function JU(e,t){return UU(e)&t}function RU(e,t,r){return e.kind>=0&&e.kind<=166?0:(e.modifierFlagsCache&536870912||(e.modifierFlagsCache=y8(e)|536870912),r||t&&Ko(e)?(!(e.modifierFlagsCache&268435456)&&e.parent&&(e.modifierFlagsCache|=f8(e)|268435456),m8(e.modifierFlagsCache)):qU(e.modifierFlagsCache))}function UU(e){return RU(e,!1)}function f8(e){let t=0;return e.parent&&!tm(e)&&(Ko(e)&&(xR(e)&&(t|=8388608),TR(e)&&(t|=16777216),ER(e)&&(t|=33554432),bR(e)&&(t|=67108864),CR(e)&&(t|=134217728)),AR(e)&&(t|=65536)),t}function qU(e){return e&65535}function m8(e){return e&131071|(e&260046848)>>>23}function KU(e){return m8(f8(e))}function zU(e){return y8(e)|KU(e)}function y8(e){let t=CD(e)?Vn(e.modifiers):0;return(e.flags&8||e.kind===80&&e.flags&4096)&&(t|=32),t}function Vn(e){let t=0;if(e)for(let r of e)t|=g8(r.kind);return t}function g8(e){switch(e){case 126:return 256;case 125:return 1;case 124:return 4;case 123:return 2;case 128:return 64;case 129:return 512;case 95:return 32;case 138:return 128;case 87:return 4096;case 90:return 2048;case 134:return 1024;case 148:return 8;case 164:return 16;case 103:return 8192;case 147:return 16384;case 171:return 32768}return 0}function WU(e){return e===76||e===77||e===78}function D8(e){return e>=64&&e<=79}function em(e,t){return Qu(e)&&(t?e.operatorToken.kind===64:D8(e.operatorToken.kind))&&ju(e.left)}function mD(e){return e.kind===80||VU(e)}function VU(e){return Gi(e)&&zt(e.name)&&mD(e.expression)}function HU(e){return Cp(e)&&ip(e)==="prototype"}function e0(e){return e.flags&3899393?e.objectFlags:0}function XU(e){let t;return Zr(e,r=>{X0(r)&&(t=r)},r=>{for(let n=r.length-1;n>=0;n--)if(X0(r[n])){t=r[n];break}}),t}function GU(e){return e>=183&&e<=206||e===133||e===159||e===150||e===163||e===151||e===136||e===154||e===155||e===116||e===157||e===146||e===141||e===234||e===313||e===314||e===315||e===316||e===317||e===318||e===319}function x8(e){return e.kind===212||e.kind===213}function QU(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}function YU(e,t){this.flags=t,(re.isDebugging||Bf)&&(this.checker=e)}function ZU(e,t){this.flags=t,re.isDebugging&&(this.checker=e)}function t0(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function eq(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}function tq(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}function rq(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(n=>n)}var Dr={getNodeConstructor:()=>t0,getTokenConstructor:()=>eq,getIdentifierConstructor:()=>tq,getPrivateIdentifierConstructor:()=>t0,getSourceFileConstructor:()=>t0,getSymbolConstructor:()=>QU,getTypeConstructor:()=>YU,getSignatureConstructor:()=>ZU,getSourceMapSourceConstructor:()=>rq},nq=[];function sq(e){Object.assign(Dr,e),Qn(nq,t=>t(Dr))}function iq(e,t){return e.replace(/\{(\d+)\}/g,(r,n)=>""+re.checkDefined(t[+n]))}function aq(e){return e.message}function Du(e,t,r,n,s,...i){r+n>t.length&&(n=t.length-r),aU(t,r,n);let o=aq(s);return Yr(i)&&(o=iq(o,i)),{file:void 0,start:r,length:n,messageText:o,category:s.category,code:s.code,reportsUnnecessary:s.reportsUnnecessary,fileName:e}}function oq(e){return e.file===void 0&&e.start!==void 0&&e.length!==void 0&&typeof e.fileName=="string"}function T8(e,t){let r=t.fileName||"",n=t.text.length;re.assertEqual(e.fileName,r),re.assertLessThanOrEqual(e.start,n),re.assertLessThanOrEqual(e.start+e.length,n);let s={file:t,start:e.start,length:e.length,messageText:e.messageText,category:e.category,code:e.code,reportsUnnecessary:e.reportsUnnecessary};if(e.relatedInformation){s.relatedInformation=[];for(let i of e.relatedInformation)oq(i)&&i.fileName===r?(re.assertLessThanOrEqual(i.start,n),re.assertLessThanOrEqual(i.start+i.length,n),s.relatedInformation.push(T8(i,t))):s.relatedInformation.push(i)}return s}function co(e,t){let r=[];for(let n of e)r.push(T8(n,t));return r}function M3(e){return e===4||e===2||e===1||e===6?1:0}function uq(e){return rU(targetOptionDeclaration.type,(t,r)=>t===e?r:void 0)}function lq(e,t){return t||cq(e)||3}function cq(e){switch(e.substr(e.lastIndexOf(".")).toLowerCase()){case".js":case".cjs":case".mjs":return 1;case".jsx":return 2;case".ts":case".cts":case".mts":return 3;case".tsx":return 4;case".json":return 6;default:return 0}}var E8=[[".ts",".tsx",".d.ts"],[".cts",".d.cts"],[".mts",".d.mts"]];TC(E8);[...E8];var pq=[[".js",".jsx"],[".mjs"],[".cjs"]];TC(pq);var dq=[".d.ts",".d.cts",".d.mts"];function ap(e){return!(e>=0)}function Df(e,...t){return t.length&&(e.relatedInformation||(e.relatedInformation=[]),re.assert(e.relatedInformation!==xr,"Diagnostic had empty array singleton for related info, but is still being constructed!"),e.relatedInformation.push(...t)),e}function hq(e){let t;switch(e.charCodeAt(1)){case 98:case 66:t=1;break;case 111:case 79:t=3;break;case 120:case 88:t=4;break;default:let f=e.length-1,p=0;for(;e.charCodeAt(p)===48;)p++;return e.slice(p,f)||"0"}let r=2,n=e.length-1,s=(n-r)*t,i=new Uint16Array((s>>>4)+(s&15?1:0));for(let f=n-1,p=0;f>=r;f--,p+=t){let d=p>>>4,y=e.charCodeAt(f),m=(y<=57?y-48:10+y-(y<=70?65:97))<<(p&15);i[d]|=m;let D=m>>>16;D&&(i[d+1]|=D)}let o="",l=i.length-1,u=!0;for(;u;){let f=0;u=!1;for(let p=l;p>=0;p--){let d=f<<16|i[p],y=d/10|0;i[p]=y,f=d-y*10,y&&!u&&(l=p,u=!0)}o=f+o}return o}function fq({negative:e,base10Value:t}){return(e&&t!=="0"?"-":"")+t}function Q0(e,t){return e.pos=t,e}function mq(e,t){return e.end=t,e}function _a(e,t,r){return mq(Q0(e,t),r)}function j3(e,t,r){return _a(e,t,t+r)}function yD(e,t){return e&&t&&(e.parent=t),e}function yq(e,t){if(!e)return e;return fT(e,l8(e)?r:s),e;function r(i,o){if(i.parent===o)return"skip";yD(i,o)}function n(i){if(vo(i))for(let o of i.jsDoc)r(o,i),fT(o,r)}function s(i,o){return r(i,o)||n(i)}}function gq(e){return!!(e.flags&262144&&e.isThisType)}function Dq(e){var t;return((t=getSnippetElement(e))==null?void 0:t.kind)===0}function xq(e){return`${jn(e.namespace)}:${jn(e.name)}`}var Y0=["assert","assert/strict","async_hooks","buffer","child_process","cluster","console","constants","crypto","dgram","diagnostics_channel","dns","dns/promises","domain","events","fs","fs/promises","http","http2","https","inspector","inspector/promises","module","net","os","path","path/posix","path/win32","perf_hooks","process","punycode","querystring","readline","readline/promises","repl","stream","stream/consumers","stream/promises","stream/web","string_decoder","sys","test/mock_loader","timers","timers/promises","tls","trace_events","tty","url","util","util/types","v8","vm","wasi","worker_threads","zlib"];new Set(Y0);var Tq=new Set(["node:sea","node:sqlite","node:test","node:test/reporters"]);[...Y0,...Y0.map(e=>`node:${e}`),...Tq];function Eq(){let e,t,r,n,s;return{createBaseSourceFileNode:i,createBaseIdentifierNode:o,createBasePrivateIdentifierNode:l,createBaseTokenNode:u,createBaseNode:f};function i(p){return new(s||(s=Dr.getSourceFileConstructor()))(p,-1,-1)}function o(p){return new(r||(r=Dr.getIdentifierConstructor()))(p,-1,-1)}function l(p){return new(n||(n=Dr.getPrivateIdentifierConstructor()))(p,-1,-1)}function u(p){return new(t||(t=Dr.getTokenConstructor()))(p,-1,-1)}function f(p){return new(e||(e=Dr.getNodeConstructor()))(p,-1,-1)}}var bq={getParenthesizeLeftSideOfBinaryForOperator:e=>ur,getParenthesizeRightSideOfBinaryForOperator:e=>ur,parenthesizeLeftSideOfBinary:(e,t)=>t,parenthesizeRightSideOfBinary:(e,t,r)=>r,parenthesizeExpressionOfComputedPropertyName:ur,parenthesizeConditionOfConditionalExpression:ur,parenthesizeBranchOfConditionalExpression:ur,parenthesizeExpressionOfExportDefault:ur,parenthesizeExpressionOfNew:e=>Xs(e,ju),parenthesizeLeftSideOfAccess:e=>Xs(e,ju),parenthesizeOperandOfPostfixUnary:e=>Xs(e,ju),parenthesizeOperandOfPrefixUnary:e=>Xs(e,zR),parenthesizeExpressionsOfCommaDelimitedList:e=>Xs(e,Ta),parenthesizeExpressionForDisallowedComma:ur,parenthesizeExpressionOfExpressionStatement:ur,parenthesizeConciseBodyOfArrowFunction:ur,parenthesizeCheckTypeOfConditionalType:ur,parenthesizeExtendsTypeOfConditionalType:ur,parenthesizeConstituentTypesOfUnionType:e=>Xs(e,Ta),parenthesizeConstituentTypeOfUnionType:ur,parenthesizeConstituentTypesOfIntersectionType:e=>Xs(e,Ta),parenthesizeConstituentTypeOfIntersectionType:ur,parenthesizeOperandOfTypeOperator:ur,parenthesizeOperandOfReadonlyTypeOperator:ur,parenthesizeNonArrayTypeOfPostfixType:ur,parenthesizeElementTypesOfTupleType:e=>Xs(e,Ta),parenthesizeElementTypeOfTupleType:ur,parenthesizeTypeOfOptionalType:ur,parenthesizeTypeArguments:e=>e&&Xs(e,Ta),parenthesizeLeadingTypeArgument:ur},xf=0,Cq=[];function gD(e,t){let r=e&8?ur:Fq,n=x3(()=>e&1?bq:createParenthesizerRules(v)),s=x3(()=>e&2?nullNodeConverters:createNodeConverters(v)),i=ps(a=>(c,h)=>Qo(c,a,h)),o=ps(a=>c=>xi(a,c)),l=ps(a=>c=>ea(c,a)),u=ps(a=>()=>Hd(a)),f=ps(a=>c=>jl(a,c)),p=ps(a=>(c,h)=>T1(a,c,h)),d=ps(a=>(c,h)=>Xd(a,c,h)),y=ps(a=>(c,h)=>x1(a,c,h)),m=ps(a=>(c,h)=>hh(a,c,h)),D=ps(a=>(c,h,x)=>P1(a,c,h,x)),T=ps(a=>(c,h,x)=>fh(a,c,h,x)),S=ps(a=>(c,h,x,_)=>N1(a,c,h,x,_)),v={get parenthesizer(){return n()},get converters(){return s()},baseFactory:t,flags:e,createNodeArray:E,createNumericLiteral:w,createBigIntLiteral:B,createStringLiteral:oe,createStringLiteralFromNode:ee,createRegularExpressionLiteral:me,createLiteralLikeNode:Ge,createIdentifier:ge,createTempVariable:Pe,createLoopVariable:Et,createUniqueName:et,getGeneratedNameForNode:rr,createPrivateIdentifier:Gt,createUniquePrivateName:pt,getGeneratedPrivateNameForNode:Ot,createToken:Rt,createSuper:ve,createThis:ce,createNull:fe,createTrue:Ke,createFalse:xt,createModifier:at,createModifiersFromModifierFlags:hr,createQualifiedName:Ut,updateQualifiedName:Er,createComputedPropertyName:It,updateComputedPropertyName:Ar,createTypeParameterDeclaration:br,updateTypeParameterDeclaration:Nr,createParameterDeclaration:nn,updateParameterDeclaration:pn,createDecorator:Vr,updateDecorator:Hr,createPropertySignature:hi,updatePropertySignature:ns,createPropertyDeclaration:Os,updatePropertyDeclaration:G,createMethodSignature:Fe,updateMethodSignature:Oe,createMethodDeclaration:Ve,updateMethodDeclaration:Ft,createConstructorDeclaration:Yt,updateConstructorDeclaration:Qi,createGetAccessorDeclaration:fi,updateGetAccessorDeclaration:ss,createSetAccessorDeclaration:te,updateSetAccessorDeclaration:ye,createCallSignature:He,updateCallSignature:Xe,createConstructSignature:Qe,updateConstructSignature:Je,createIndexSignature:bt,updateIndexSignature:Mt,createClassStaticBlockDeclaration:Qt,updateClassStaticBlockDeclaration:vr,createTemplateLiteralTypeSpan:At,updateTemplateLiteralTypeSpan:Ze,createKeywordTypeNode:Un,createTypePredicateNode:Ht,updateTypePredicateNode:dn,createTypeReferenceNode:$s,updateTypeReferenceNode:X,createFunctionTypeNode:H,updateFunctionTypeNode:A,createConstructorTypeNode:kt,updateConstructorTypeNode:Ct,createTypeQueryNode:ar,updateTypeQueryNode:_r,createTypeLiteralNode:Xr,updateTypeLiteralNode:Ms,createArrayTypeNode:is,updateArrayTypeNode:Ja,createTupleTypeNode:hn,updateTupleTypeNode:le,createNamedTupleMember:Ie,updateNamedTupleMember:yt,createOptionalTypeNode:qe,updateOptionalTypeNode:Y,createRestTypeNode:sr,updateRestTypeNode:mr,createUnionTypeNode:$m,updateUnionTypeNode:Sp,createIntersectionTypeNode:mi,updateIntersectionTypeNode:lt,createConditionalTypeNode:nr,updateConditionalTypeNode:Mm,createInferTypeNode:as,updateInferTypeNode:jm,createImportTypeNode:xs,updateImportTypeNode:zo,createParenthesizedType:Gr,updateParenthesizedType:Cr,createThisTypeNode:z,createTypeOperatorNode:Rr,updateTypeOperatorNode:yi,createIndexedAccessTypeNode:Ts,updateIndexedAccessTypeNode:ll,createMappedTypeNode:or,updateMappedTypeNode:Br,createLiteralTypeNode:Yi,updateLiteralTypeNode:js,createTemplateLiteralType:Jr,updateTemplateLiteralType:Jm,createObjectBindingPattern:_p,updateObjectBindingPattern:Rm,createArrayBindingPattern:gi,updateArrayBindingPattern:Um,createBindingElement:Wo,updateBindingElement:Zi,createArrayLiteralExpression:cl,updateArrayLiteralExpression:Fp,createObjectLiteralExpression:Ra,updateObjectLiteralExpression:qm,createPropertyAccessExpression:e&4?(a,c)=>setEmitFlags(Es(a,c),262144):Es,updatePropertyAccessExpression:Km,createPropertyAccessChain:e&4?(a,c,h)=>setEmitFlags(Ua(a,c,h),262144):Ua,updatePropertyAccessChain:Vo,createElementAccessExpression:qa,updateElementAccessExpression:zm,createElementAccessChain:Pp,updateElementAccessChain:pl,createCallExpression:Ka,updateCallExpression:Ho,createCallChain:dl,updateCallChain:Ip,createNewExpression:An,updateNewExpression:hl,createTaggedTemplateExpression:Xo,updateTaggedTemplateExpression:Bp,createTypeAssertion:Lp,updateTypeAssertion:Op,createParenthesizedExpression:fl,updateParenthesizedExpression:$p,createFunctionExpression:ml,updateFunctionExpression:Mp,createArrowFunction:yl,updateArrowFunction:jp,createDeleteExpression:Jp,updateDeleteExpression:Rp,createTypeOfExpression:Go,updateTypeOfExpression:mn,createVoidExpression:gl,updateVoidExpression:bs,createAwaitExpression:Up,updateAwaitExpression:Di,createPrefixUnaryExpression:xi,updatePrefixUnaryExpression:Wm,createPostfixUnaryExpression:ea,updatePostfixUnaryExpression:Vm,createBinaryExpression:Qo,updateBinaryExpression:Hm,createConditionalExpression:Kp,updateConditionalExpression:zp,createTemplateExpression:Wp,updateTemplateExpression:os,createTemplateHead:Hp,createTemplateMiddle:Yo,createTemplateTail:Dl,createNoSubstitutionTemplateLiteral:Gm,createTemplateLiteralLikeNode:ra,createYieldExpression:xl,updateYieldExpression:Qm,createSpreadElement:Xp,updateSpreadElement:Ym,createClassExpression:Gp,updateClassExpression:Tl,createOmittedExpression:El,createExpressionWithTypeArguments:Qp,updateExpressionWithTypeArguments:Yp,createAsExpression:yn,updateAsExpression:Zo,createNonNullExpression:Zp,updateNonNullExpression:ed,createSatisfiesExpression:bl,updateSatisfiesExpression:td,createNonNullChain:Cl,updateNonNullChain:qn,createMetaProperty:rd,updateMetaProperty:Al,createTemplateSpan:us,updateTemplateSpan:eu,createSemicolonClassElement:nd,createBlock:Ti,updateBlock:Zm,createVariableStatement:vl,updateVariableStatement:sd,createEmptyStatement:id,createExpressionStatement:Wa,updateExpressionStatement:ad,createIfStatement:od,updateIfStatement:ud,createDoStatement:ld,updateDoStatement:cd,createWhileStatement:pd,updateWhileStatement:e1,createForStatement:dd,updateForStatement:hd,createForInStatement:Sl,updateForInStatement:t1,createForOfStatement:fd,updateForOfStatement:r1,createContinueStatement:md,updateContinueStatement:n1,createBreakStatement:_l,updateBreakStatement:yd,createReturnStatement:Fl,updateReturnStatement:s1,createWithStatement:kl,updateWithStatement:gd,createSwitchStatement:wl,updateSwitchStatement:na,createLabeledStatement:Dd,updateLabeledStatement:xd,createThrowStatement:Td,updateThrowStatement:i1,createTryStatement:Ed,updateTryStatement:a1,createDebuggerStatement:bd,createVariableDeclaration:tu,updateVariableDeclaration:Cd,createVariableDeclarationList:Pl,updateVariableDeclarationList:o1,createFunctionDeclaration:Ad,updateFunctionDeclaration:Nl,createClassDeclaration:vd,updateClassDeclaration:ru,createInterfaceDeclaration:Sd,updateInterfaceDeclaration:_d,createTypeAliasDeclaration:Zt,updateTypeAliasDeclaration:Js,createEnumDeclaration:Il,updateEnumDeclaration:Rs,createModuleDeclaration:Fd,updateModuleDeclaration:gr,createModuleBlock:Us,updateModuleBlock:Or,createCaseBlock:kd,updateCaseBlock:l1,createNamespaceExportDeclaration:wd,updateNamespaceExportDeclaration:Pd,createImportEqualsDeclaration:Nd,updateImportEqualsDeclaration:Id,createImportDeclaration:Bd,updateImportDeclaration:Ld,createImportClause:Od,updateImportClause:$d,createAssertClause:Bl,updateAssertClause:p1,createAssertEntry:Va,updateAssertEntry:Md,createImportTypeAssertionContainer:Ll,updateImportTypeAssertionContainer:jd,createImportAttributes:Jd,updateImportAttributes:Ol,createImportAttribute:Rd,updateImportAttribute:Ud,createNamespaceImport:qd,updateNamespaceImport:d1,createNamespaceExport:Kd,updateNamespaceExport:h1,createNamedImports:zd,updateNamedImports:Wd,createImportSpecifier:qs,updateImportSpecifier:f1,createExportAssignment:nu,updateExportAssignment:Ha,createExportDeclaration:su,updateExportDeclaration:Vd,createNamedExports:$l,updateNamedExports:m1,createExportSpecifier:iu,updateExportSpecifier:y1,createMissingDeclaration:g1,createExternalModuleReference:Ml,updateExternalModuleReference:D1,get createJSDocAllType(){return u(313)},get createJSDocUnknownType(){return u(314)},get createJSDocNonNullableType(){return d(316)},get updateJSDocNonNullableType(){return y(316)},get createJSDocNullableType(){return d(315)},get updateJSDocNullableType(){return y(315)},get createJSDocOptionalType(){return f(317)},get updateJSDocOptionalType(){return p(317)},get createJSDocVariadicType(){return f(319)},get updateJSDocVariadicType(){return p(319)},get createJSDocNamepathType(){return f(320)},get updateJSDocNamepathType(){return p(320)},createJSDocFunctionType:Gd,updateJSDocFunctionType:E1,createJSDocTypeLiteral:Qd,updateJSDocTypeLiteral:b1,createJSDocTypeExpression:Yd,updateJSDocTypeExpression:Jl,createJSDocSignature:Zd,updateJSDocSignature:C1,createJSDocTemplateTag:Rl,updateJSDocTemplateTag:eh,createJSDocTypedefTag:au,updateJSDocTypedefTag:A1,createJSDocParameterTag:Ul,updateJSDocParameterTag:v1,createJSDocPropertyTag:th,updateJSDocPropertyTag:rh,createJSDocCallbackTag:nh,updateJSDocCallbackTag:sh,createJSDocOverloadTag:ih,updateJSDocOverloadTag:ql,createJSDocAugmentsTag:Kl,updateJSDocAugmentsTag:Ga,createJSDocImplementsTag:ah,updateJSDocImplementsTag:w1,createJSDocSeeTag:bi,updateJSDocSeeTag:ou,createJSDocImportTag:gh,updateJSDocImportTag:Dh,createJSDocNameReference:oh,updateJSDocNameReference:S1,createJSDocMemberName:uh,updateJSDocMemberName:_1,createJSDocLink:lh,updateJSDocLink:ch,createJSDocLinkCode:ph,updateJSDocLinkCode:F1,createJSDocLinkPlain:dh,updateJSDocLinkPlain:k1,get createJSDocTypeTag(){return T(345)},get updateJSDocTypeTag(){return S(345)},get createJSDocReturnTag(){return T(343)},get updateJSDocReturnTag(){return S(343)},get createJSDocThisTag(){return T(344)},get updateJSDocThisTag(){return S(344)},get createJSDocAuthorTag(){return m(331)},get updateJSDocAuthorTag(){return D(331)},get createJSDocClassTag(){return m(333)},get updateJSDocClassTag(){return D(333)},get createJSDocPublicTag(){return m(334)},get updateJSDocPublicTag(){return D(334)},get createJSDocPrivateTag(){return m(335)},get updateJSDocPrivateTag(){return D(335)},get createJSDocProtectedTag(){return m(336)},get updateJSDocProtectedTag(){return D(336)},get createJSDocReadonlyTag(){return m(337)},get updateJSDocReadonlyTag(){return D(337)},get createJSDocOverrideTag(){return m(338)},get updateJSDocOverrideTag(){return D(338)},get createJSDocDeprecatedTag(){return m(332)},get updateJSDocDeprecatedTag(){return D(332)},get createJSDocThrowsTag(){return T(350)},get updateJSDocThrowsTag(){return S(350)},get createJSDocSatisfiesTag(){return T(351)},get updateJSDocSatisfiesTag(){return S(351)},createJSDocEnumTag:yh,updateJSDocEnumTag:zl,createJSDocUnknownTag:mh,updateJSDocUnknownTag:I1,createJSDocText:Wl,updateJSDocText:B1,createJSDocComment:Qa,updateJSDocComment:xh,createJsxElement:Th,updateJsxElement:L1,createJsxSelfClosingElement:Eh,updateJsxSelfClosingElement:O1,createJsxOpeningElement:uu,updateJsxOpeningElement:bh,createJsxClosingElement:Vl,updateJsxClosingElement:Hl,createJsxFragment:Ur,createJsxText:Ya,updateJsxText:$1,createJsxOpeningFragment:Ah,createJsxJsxClosingFragment:vh,updateJsxFragment:Ch,createJsxAttribute:Sh,updateJsxAttribute:M1,createJsxAttributes:Za,updateJsxAttributes:j1,createJsxSpreadAttribute:_h,updateJsxSpreadAttribute:J1,createJsxExpression:Fh,updateJsxExpression:Xl,createJsxNamespacedName:sa,updateJsxNamespacedName:R1,createCaseClause:lu,updateCaseClause:kh,createDefaultClause:wh,updateDefaultClause:eo,createHeritageClause:Gl,updateHeritageClause:U1,createCatchClause:Ph,updateCatchClause:Nh,createPropertyAssignment:cu,updatePropertyAssignment:Ql,createShorthandPropertyAssignment:Ih,updateShorthandPropertyAssignment:q1,createSpreadAssignment:Bh,updateSpreadAssignment:Lh,createEnumMember:Yl,updateEnumMember:Kn,createSourceFile:Oh,updateSourceFile:V1,createRedirectedSourceFile:$h,createBundle:Mh,updateBundle:jh,createSyntheticExpression:H1,createSyntaxList:X1,createNotEmittedStatement:pu,createNotEmittedTypeElement:G1,createPartiallyEmittedExpression:tc,updatePartiallyEmittedExpression:Jh,createCommaListExpression:rc,updateCommaListExpression:Y1,createSyntheticReferenceExpression:nc,updateSyntheticReferenceExpression:Rh,cloneNode:du,get createComma(){return i(28)},get createAssignment(){return i(64)},get createLogicalOr(){return i(57)},get createLogicalAnd(){return i(56)},get createBitwiseOr(){return i(52)},get createBitwiseXor(){return i(53)},get createBitwiseAnd(){return i(51)},get createStrictEquality(){return i(37)},get createStrictInequality(){return i(38)},get createEquality(){return i(35)},get createInequality(){return i(36)},get createLessThan(){return i(30)},get createLessThanEquals(){return i(33)},get createGreaterThan(){return i(32)},get createGreaterThanEquals(){return i(34)},get createLeftShift(){return i(48)},get createRightShift(){return i(49)},get createUnsignedRightShift(){return i(50)},get createAdd(){return i(40)},get createSubtract(){return i(41)},get createMultiply(){return i(42)},get createDivide(){return i(44)},get createModulo(){return i(45)},get createExponent(){return i(43)},get createPrefixPlus(){return o(40)},get createPrefixMinus(){return o(41)},get createPrefixIncrement(){return o(46)},get createPrefixDecrement(){return o(47)},get createBitwiseNot(){return o(55)},get createLogicalNot(){return o(54)},get createPostfixIncrement(){return l(46)},get createPostfixDecrement(){return l(47)},createImmediatelyInvokedFunctionExpression:ty,createImmediatelyInvokedArrowFunction:ry,createVoidZero:to,createExportDefault:Kh,createExternalModuleExport:zh,createTypeCheck:ny,createIsNotTypeCheck:sc,createMethodCall:Ci,createGlobalMethodCall:ro,createFunctionBindCall:sy,createFunctionCallCall:iy,createFunctionApplyCall:ay,createArraySliceCall:oy,createArrayConcatCall:no,createObjectDefinePropertyCall:uy,createObjectGetOwnPropertyDescriptorCall:ic,createReflectGetCall:aa,createReflectSetCall:Wh,createPropertyDescriptor:ly,createCallBinding:Gh,createAssignmentTargetWrapper:Qh,inlineExpressions:g,getInternalName:F,getLocalName:N,getExportName:L,getDeclarationName:W,getNamespaceMemberName:he,getExternalModuleOrNamespaceExportName:ke,restoreOuterExpressions:Hh,restoreEnclosingLabel:Xh,createUseStrictPrologue:Ne,copyPrologue:Te,copyStandardPrologue:ht,copyCustomPrologue:ct,ensureUseStrict:tt,liftToBlock:an,mergeLexicalEnvironment:Cs,replaceModifiers:As,replaceDecoratorsAndModifiers:zn,replacePropertyName:Ai};return Qn(Cq,a=>a(v)),v;function E(a,c){if(a===void 0||a===xr)a=[];else if(Ta(a)){if(c===void 0||a.hasTrailingComma===c)return a.transformFlags===void 0&&R3(a),re.attachNodeArrayDebugInfo(a),a;let _=a.slice();return _.pos=a.pos,_.end=a.end,_.hasTrailingComma=c,_.transformFlags=a.transformFlags,re.attachNodeArrayDebugInfo(_),_}let h=a.length,x=h>=1&&h<=4?a.slice():a;return x.pos=-1,x.end=-1,x.hasTrailingComma=!!c,x.transformFlags=0,R3(x),re.attachNodeArrayDebugInfo(x),x}function C(a){return t.createBaseNode(a)}function P(a){let c=C(a);return c.symbol=void 0,c.localSymbol=void 0,c}function k(a,c){return a!==c&&(a.typeArguments=c.typeArguments),Z(a,c)}function w(a,c=0){let h=typeof a=="number"?a+"":a;re.assert(h.charCodeAt(0)!==45,"Negative numbers should be created in combination with createPrefixUnaryExpression");let x=P(9);return x.text=h,x.numericLiteralFlags=c,c&384&&(x.transformFlags|=1024),x}function B(a){let c=ir(10);return c.text=typeof a=="string"?a:fq(a)+"n",c.transformFlags|=32,c}function I(a,c){let h=P(11);return h.text=a,h.singleQuote=c,h}function oe(a,c,h){let x=I(a,c);return x.hasExtendedUnicodeEscape=h,h&&(x.transformFlags|=1024),x}function ee(a){let c=I(BU(a),void 0);return c.textSourceNode=a,c}function me(a){let c=ir(14);return c.text=a,c}function Ge(a,c){switch(a){case 9:return w(c,0);case 10:return B(c);case 11:return oe(c,void 0);case 12:return Ya(c,!1);case 13:return Ya(c,!0);case 14:return me(c);case 15:return ra(a,c,void 0,0)}}function Q(a){let c=t.createBaseIdentifierNode(80);return c.escapedText=a,c.jsDoc=void 0,c.flowNode=void 0,c.symbol=void 0,c}function we(a,c,h,x){let _=Q(Su(a));return setIdentifierAutoGenerate(_,{flags:c,id:xf,prefix:h,suffix:x}),xf++,_}function ge(a,c,h){c===void 0&&a&&(c=JC(a)),c===80&&(c=void 0);let x=Q(Su(a));return h&&(x.flags|=256),x.escapedText==="await"&&(x.transformFlags|=67108864),x.flags&256&&(x.transformFlags|=1024),x}function Pe(a,c,h,x){let _=1;c&&(_|=8);let O=we("",_,h,x);return a&&a(O),O}function Et(a){let c=2;return a&&(c|=8),we("",c,void 0,void 0)}function et(a,c=0,h,x){return re.assert(!(c&7),"Argument out of range: flags"),re.assert((c&48)!==32,"GeneratedIdentifierFlags.FileLevel cannot be set without also setting GeneratedIdentifierFlags.Optimistic"),we(a,3|c,h,x)}function rr(a,c=0,h,x){re.assert(!(c&7),"Argument out of range: flags");let _=a?H0(a)?r2(!1,h,a,x,jn):`generated@${getNodeId(a)}`:"";(h||x)&&(c|=16);let O=we(_,4|c,h,x);return O.original=a,O}function Dt(a){let c=t.createBasePrivateIdentifierNode(81);return c.escapedText=a,c.transformFlags|=16777216,c}function Gt(a){return Xf(a,"#")||re.fail("First character of private identifier must be #: "+a),Dt(Su(a))}function Jt(a,c,h,x){let _=Dt(Su(a));return setIdentifierAutoGenerate(_,{flags:c,id:xf,prefix:h,suffix:x}),xf++,_}function pt(a,c,h){a&&!Xf(a,"#")&&re.fail("First character of private identifier must be #: "+a);let x=8|(a?3:1);return Jt(a??"",x,c,h)}function Ot(a,c,h){let x=H0(a)?r2(!0,c,a,h,jn):`#generated@${getNodeId(a)}`,_=Jt(x,4|(c||h?16:0),c,h);return _.original=a,_}function ir(a){return t.createBaseTokenNode(a)}function Rt(a){re.assert(a>=0&&a<=166,"Invalid token"),re.assert(a<=15||a>=18,"Invalid token. Use 'createTemplateLiteralLikeNode' to create template literals."),re.assert(a<=9||a>=15,"Invalid token. Use 'createLiteralLikeNode' to create literals."),re.assert(a!==80,"Invalid token. Use 'createIdentifier' to create identifiers");let c=ir(a),h=0;switch(a){case 134:h=384;break;case 160:h=4;break;case 125:case 123:case 124:case 148:case 128:case 138:case 87:case 133:case 150:case 163:case 146:case 151:case 103:case 147:case 164:case 154:case 136:case 155:case 116:case 159:case 157:h=1;break;case 108:h=134218752,c.flowNode=void 0;break;case 126:h=1024;break;case 129:h=16777216;break;case 110:h=16384,c.flowNode=void 0;break}return h&&(c.transformFlags|=h),c}function ve(){return Rt(108)}function ce(){return Rt(110)}function fe(){return Rt(106)}function Ke(){return Rt(112)}function xt(){return Rt(97)}function at(a){return Rt(a)}function hr(a){let c=[];return a&32&&c.push(at(95)),a&128&&c.push(at(138)),a&2048&&c.push(at(90)),a&4096&&c.push(at(87)),a&1&&c.push(at(125)),a&2&&c.push(at(123)),a&4&&c.push(at(124)),a&64&&c.push(at(128)),a&256&&c.push(at(126)),a&16&&c.push(at(164)),a&8&&c.push(at(148)),a&512&&c.push(at(129)),a&1024&&c.push(at(134)),a&8192&&c.push(at(103)),a&16384&&c.push(at(147)),c.length?c:void 0}function Ut(a,c){let h=C(167);return h.left=a,h.right=qt(c),h.transformFlags|=ae(h.left)|Fu(h.right),h.flowNode=void 0,h}function Er(a,c,h){return a.left!==c||a.right!==h?Z(Ut(c,h),a):a}function It(a){let c=C(168);return c.expression=n().parenthesizeExpressionOfComputedPropertyName(a),c.transformFlags|=ae(c.expression)|1024|131072,c}function Ar(a,c){return a.expression!==c?Z(It(c),a):a}function br(a,c,h,x){let _=P(169);return _.modifiers=nt(a),_.name=qt(c),_.constraint=h,_.default=x,_.transformFlags=1,_.expression=void 0,_.jsDoc=void 0,_}function Nr(a,c,h,x,_){return a.modifiers!==c||a.name!==h||a.constraint!==x||a.default!==_?Z(br(c,h,x,_),a):a}function nn(a,c,h,x,_,O){let ie=P(170);return ie.modifiers=nt(a),ie.dotDotDotToken=c,ie.name=qt(h),ie.questionToken=x,ie.type=_,ie.initializer=so(O),OU(ie.name)?ie.transformFlags=1:ie.transformFlags=Ye(ie.modifiers)|ae(ie.dotDotDotToken)|Wn(ie.name)|ae(ie.questionToken)|ae(ie.initializer)|(ie.questionToken??ie.type?1:0)|(ie.dotDotDotToken??ie.initializer?1024:0)|(Vn(ie.modifiers)&31?8192:0),ie.jsDoc=void 0,ie}function pn(a,c,h,x,_,O,ie){return a.modifiers!==c||a.dotDotDotToken!==h||a.name!==x||a.questionToken!==_||a.type!==O||a.initializer!==ie?Z(nn(c,h,x,_,O,ie),a):a}function Vr(a){let c=C(171);return c.expression=n().parenthesizeLeftSideOfAccess(a,!1),c.transformFlags|=ae(c.expression)|1|8192|33554432,c}function Hr(a,c){return a.expression!==c?Z(Vr(c),a):a}function hi(a,c,h,x){let _=P(172);return _.modifiers=nt(a),_.name=qt(c),_.type=x,_.questionToken=h,_.transformFlags=1,_.initializer=void 0,_.jsDoc=void 0,_}function ns(a,c,h,x,_){return a.modifiers!==c||a.name!==h||a.questionToken!==x||a.type!==_?rt(hi(c,h,x,_),a):a}function rt(a,c){return a!==c&&(a.initializer=c.initializer),Z(a,c)}function Os(a,c,h,x,_){let O=P(173);O.modifiers=nt(a),O.name=qt(c),O.questionToken=h&&q3(h)?h:void 0,O.exclamationToken=h&&U3(h)?h:void 0,O.type=x,O.initializer=so(_);let ie=O.flags&33554432||Vn(O.modifiers)&128;return O.transformFlags=Ye(O.modifiers)|Wn(O.name)|ae(O.initializer)|(ie||O.questionToken||O.exclamationToken||O.type?1:0)|(b8(O.name)||Vn(O.modifiers)&256&&O.initializer?8192:0)|16777216,O.jsDoc=void 0,O}function G(a,c,h,x,_,O){return a.modifiers!==c||a.name!==h||a.questionToken!==(x!==void 0&&q3(x)?x:void 0)||a.exclamationToken!==(x!==void 0&&U3(x)?x:void 0)||a.type!==_||a.initializer!==O?Z(Os(c,h,x,_,O),a):a}function Fe(a,c,h,x,_,O){let ie=P(174);return ie.modifiers=nt(a),ie.name=qt(c),ie.questionToken=h,ie.typeParameters=nt(x),ie.parameters=nt(_),ie.type=O,ie.transformFlags=1,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.typeArguments=void 0,ie}function Oe(a,c,h,x,_,O,ie){return a.modifiers!==c||a.name!==h||a.questionToken!==x||a.typeParameters!==_||a.parameters!==O||a.type!==ie?k(Fe(c,h,x,_,O,ie),a):a}function Ve(a,c,h,x,_,O,ie,Be){let gt=P(175);if(gt.modifiers=nt(a),gt.asteriskToken=c,gt.name=qt(h),gt.questionToken=x,gt.exclamationToken=void 0,gt.typeParameters=nt(_),gt.parameters=E(O),gt.type=ie,gt.body=Be,!gt.body)gt.transformFlags=1;else{let kr=Vn(gt.modifiers)&1024,vs=!!gt.asteriskToken,_n=kr&&vs;gt.transformFlags=Ye(gt.modifiers)|ae(gt.asteriskToken)|Wn(gt.name)|ae(gt.questionToken)|Ye(gt.typeParameters)|Ye(gt.parameters)|ae(gt.type)|ae(gt.body)&-67108865|(_n?128:kr?256:vs?2048:0)|(gt.questionToken||gt.typeParameters||gt.type?1:0)|1024}return gt.typeArguments=void 0,gt.jsDoc=void 0,gt.locals=void 0,gt.nextContainer=void 0,gt.flowNode=void 0,gt.endFlowNode=void 0,gt.returnFlowNode=void 0,gt}function Ft(a,c,h,x,_,O,ie,Be,gt){return a.modifiers!==c||a.asteriskToken!==h||a.name!==x||a.questionToken!==_||a.typeParameters!==O||a.parameters!==ie||a.type!==Be||a.body!==gt?$t(Ve(c,h,x,_,O,ie,Be,gt),a):a}function $t(a,c){return a!==c&&(a.exclamationToken=c.exclamationToken),Z(a,c)}function Qt(a){let c=P(176);return c.body=a,c.transformFlags=ae(a)|16777216,c.modifiers=void 0,c.jsDoc=void 0,c.locals=void 0,c.nextContainer=void 0,c.endFlowNode=void 0,c.returnFlowNode=void 0,c}function vr(a,c){return a.body!==c?fr(Qt(c),a):a}function fr(a,c){return a!==c&&(a.modifiers=c.modifiers),Z(a,c)}function Yt(a,c,h){let x=P(177);return x.modifiers=nt(a),x.parameters=E(c),x.body=h,x.body?x.transformFlags=Ye(x.modifiers)|Ye(x.parameters)|ae(x.body)&-67108865|1024:x.transformFlags=1,x.typeParameters=void 0,x.type=void 0,x.typeArguments=void 0,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.endFlowNode=void 0,x.returnFlowNode=void 0,x}function Qi(a,c,h,x){return a.modifiers!==c||a.parameters!==h||a.body!==x?Cn(Yt(c,h,x),a):a}function Cn(a,c){return a!==c&&(a.typeParameters=c.typeParameters,a.type=c.type),k(a,c)}function fi(a,c,h,x,_){let O=P(178);return O.modifiers=nt(a),O.name=qt(c),O.parameters=E(h),O.type=x,O.body=_,O.body?O.transformFlags=Ye(O.modifiers)|Wn(O.name)|Ye(O.parameters)|ae(O.type)|ae(O.body)&-67108865|(O.type?1:0):O.transformFlags=1,O.typeArguments=void 0,O.typeParameters=void 0,O.jsDoc=void 0,O.locals=void 0,O.nextContainer=void 0,O.flowNode=void 0,O.endFlowNode=void 0,O.returnFlowNode=void 0,O}function ss(a,c,h,x,_,O){return a.modifiers!==c||a.name!==h||a.parameters!==x||a.type!==_||a.body!==O?ja(fi(c,h,x,_,O),a):a}function ja(a,c){return a!==c&&(a.typeParameters=c.typeParameters),k(a,c)}function te(a,c,h,x){let _=P(179);return _.modifiers=nt(a),_.name=qt(c),_.parameters=E(h),_.body=x,_.body?_.transformFlags=Ye(_.modifiers)|Wn(_.name)|Ye(_.parameters)|ae(_.body)&-67108865|(_.type?1:0):_.transformFlags=1,_.typeArguments=void 0,_.typeParameters=void 0,_.type=void 0,_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.flowNode=void 0,_.endFlowNode=void 0,_.returnFlowNode=void 0,_}function ye(a,c,h,x,_){return a.modifiers!==c||a.name!==h||a.parameters!==x||a.body!==_?xe(te(c,h,x,_),a):a}function xe(a,c){return a!==c&&(a.typeParameters=c.typeParameters,a.type=c.type),k(a,c)}function He(a,c,h){let x=P(180);return x.typeParameters=nt(a),x.parameters=nt(c),x.type=h,x.transformFlags=1,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.typeArguments=void 0,x}function Xe(a,c,h,x){return a.typeParameters!==c||a.parameters!==h||a.type!==x?k(He(c,h,x),a):a}function Qe(a,c,h){let x=P(181);return x.typeParameters=nt(a),x.parameters=nt(c),x.type=h,x.transformFlags=1,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.typeArguments=void 0,x}function Je(a,c,h,x){return a.typeParameters!==c||a.parameters!==h||a.type!==x?k(Qe(c,h,x),a):a}function bt(a,c,h){let x=P(182);return x.modifiers=nt(a),x.parameters=nt(c),x.type=h,x.transformFlags=1,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.typeArguments=void 0,x}function Mt(a,c,h,x){return a.parameters!==h||a.type!==x||a.modifiers!==c?k(bt(c,h,x),a):a}function At(a,c){let h=C(205);return h.type=a,h.literal=c,h.transformFlags=1,h}function Ze(a,c,h){return a.type!==c||a.literal!==h?Z(At(c,h),a):a}function Un(a){return Rt(a)}function Ht(a,c,h){let x=C(183);return x.assertsModifier=a,x.parameterName=qt(c),x.type=h,x.transformFlags=1,x}function dn(a,c,h,x){return a.assertsModifier!==c||a.parameterName!==h||a.type!==x?Z(Ht(c,h,x),a):a}function $s(a,c){let h=C(184);return h.typeName=qt(a),h.typeArguments=c&&n().parenthesizeTypeArguments(E(c)),h.transformFlags=1,h}function X(a,c,h){return a.typeName!==c||a.typeArguments!==h?Z($s(c,h),a):a}function H(a,c,h){let x=P(185);return x.typeParameters=nt(a),x.parameters=nt(c),x.type=h,x.transformFlags=1,x.modifiers=void 0,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.typeArguments=void 0,x}function A(a,c,h,x){return a.typeParameters!==c||a.parameters!==h||a.type!==x?dt(H(c,h,x),a):a}function dt(a,c){return a!==c&&(a.modifiers=c.modifiers),k(a,c)}function kt(...a){return a.length===4?se(...a):a.length===3?jt(...a):re.fail("Incorrect number of arguments specified.")}function se(a,c,h,x){let _=P(186);return _.modifiers=nt(a),_.typeParameters=nt(c),_.parameters=nt(h),_.type=x,_.transformFlags=1,_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.typeArguments=void 0,_}function jt(a,c,h){return se(void 0,a,c,h)}function Ct(...a){return a.length===5?vt(...a):a.length===4?Sr(...a):re.fail("Incorrect number of arguments specified.")}function vt(a,c,h,x,_){return a.modifiers!==c||a.typeParameters!==h||a.parameters!==x||a.type!==_?k(kt(c,h,x,_),a):a}function Sr(a,c,h,x){return vt(a,a.modifiers,c,h,x)}function ar(a,c){let h=C(187);return h.exprName=a,h.typeArguments=c&&n().parenthesizeTypeArguments(c),h.transformFlags=1,h}function _r(a,c,h){return a.exprName!==c||a.typeArguments!==h?Z(ar(c,h),a):a}function Xr(a){let c=P(188);return c.members=E(a),c.transformFlags=1,c}function Ms(a,c){return a.members!==c?Z(Xr(c),a):a}function is(a){let c=C(189);return c.elementType=n().parenthesizeNonArrayTypeOfPostfixType(a),c.transformFlags=1,c}function Ja(a,c){return a.elementType!==c?Z(is(c),a):a}function hn(a){let c=C(190);return c.elements=E(n().parenthesizeElementTypesOfTupleType(a)),c.transformFlags=1,c}function le(a,c){return a.elements!==c?Z(hn(c),a):a}function Ie(a,c,h,x){let _=P(203);return _.dotDotDotToken=a,_.name=c,_.questionToken=h,_.type=x,_.transformFlags=1,_.jsDoc=void 0,_}function yt(a,c,h,x,_){return a.dotDotDotToken!==c||a.name!==h||a.questionToken!==x||a.type!==_?Z(Ie(c,h,x,_),a):a}function qe(a){let c=C(191);return c.type=n().parenthesizeTypeOfOptionalType(a),c.transformFlags=1,c}function Y(a,c){return a.type!==c?Z(qe(c),a):a}function sr(a){let c=C(192);return c.type=a,c.transformFlags=1,c}function mr(a,c){return a.type!==c?Z(sr(c),a):a}function Ir(a,c,h){let x=C(a);return x.types=v.createNodeArray(h(c)),x.transformFlags=1,x}function fn(a,c,h){return a.types!==c?Z(Ir(a.kind,c,h),a):a}function $m(a){return Ir(193,a,n().parenthesizeConstituentTypesOfUnionType)}function Sp(a,c){return fn(a,c,n().parenthesizeConstituentTypesOfUnionType)}function mi(a){return Ir(194,a,n().parenthesizeConstituentTypesOfIntersectionType)}function lt(a,c){return fn(a,c,n().parenthesizeConstituentTypesOfIntersectionType)}function nr(a,c,h,x){let _=C(195);return _.checkType=n().parenthesizeCheckTypeOfConditionalType(a),_.extendsType=n().parenthesizeExtendsTypeOfConditionalType(c),_.trueType=h,_.falseType=x,_.transformFlags=1,_.locals=void 0,_.nextContainer=void 0,_}function Mm(a,c,h,x,_){return a.checkType!==c||a.extendsType!==h||a.trueType!==x||a.falseType!==_?Z(nr(c,h,x,_),a):a}function as(a){let c=C(196);return c.typeParameter=a,c.transformFlags=1,c}function jm(a,c){return a.typeParameter!==c?Z(as(c),a):a}function Jr(a,c){let h=C(204);return h.head=a,h.templateSpans=E(c),h.transformFlags=1,h}function Jm(a,c,h){return a.head!==c||a.templateSpans!==h?Z(Jr(c,h),a):a}function xs(a,c,h,x,_=!1){let O=C(206);return O.argument=a,O.attributes=c,O.assertions&&O.assertions.assertClause&&O.attributes&&(O.assertions.assertClause=O.attributes),O.qualifier=h,O.typeArguments=x&&n().parenthesizeTypeArguments(x),O.isTypeOf=_,O.transformFlags=1,O}function zo(a,c,h,x,_,O=a.isTypeOf){return a.argument!==c||a.attributes!==h||a.qualifier!==x||a.typeArguments!==_||a.isTypeOf!==O?Z(xs(c,h,x,_,O),a):a}function Gr(a){let c=C(197);return c.type=a,c.transformFlags=1,c}function Cr(a,c){return a.type!==c?Z(Gr(c),a):a}function z(){let a=C(198);return a.transformFlags=1,a}function Rr(a,c){let h=C(199);return h.operator=a,h.type=a===148?n().parenthesizeOperandOfReadonlyTypeOperator(c):n().parenthesizeOperandOfTypeOperator(c),h.transformFlags=1,h}function yi(a,c){return a.type!==c?Z(Rr(a.operator,c),a):a}function Ts(a,c){let h=C(200);return h.objectType=n().parenthesizeNonArrayTypeOfPostfixType(a),h.indexType=c,h.transformFlags=1,h}function ll(a,c,h){return a.objectType!==c||a.indexType!==h?Z(Ts(c,h),a):a}function or(a,c,h,x,_,O){let ie=P(201);return ie.readonlyToken=a,ie.typeParameter=c,ie.nameType=h,ie.questionToken=x,ie.type=_,ie.members=O&&E(O),ie.transformFlags=1,ie.locals=void 0,ie.nextContainer=void 0,ie}function Br(a,c,h,x,_,O,ie){return a.readonlyToken!==c||a.typeParameter!==h||a.nameType!==x||a.questionToken!==_||a.type!==O||a.members!==ie?Z(or(c,h,x,_,O,ie),a):a}function Yi(a){let c=C(202);return c.literal=a,c.transformFlags=1,c}function js(a,c){return a.literal!==c?Z(Yi(c),a):a}function _p(a){let c=C(207);return c.elements=E(a),c.transformFlags|=Ye(c.elements)|1024|524288,c.transformFlags&32768&&(c.transformFlags|=65664),c}function Rm(a,c){return a.elements!==c?Z(_p(c),a):a}function gi(a){let c=C(208);return c.elements=E(a),c.transformFlags|=Ye(c.elements)|1024|524288,c}function Um(a,c){return a.elements!==c?Z(gi(c),a):a}function Wo(a,c,h,x){let _=P(209);return _.dotDotDotToken=a,_.propertyName=qt(c),_.name=qt(h),_.initializer=so(x),_.transformFlags|=ae(_.dotDotDotToken)|Wn(_.propertyName)|Wn(_.name)|ae(_.initializer)|(_.dotDotDotToken?32768:0)|1024,_.flowNode=void 0,_}function Zi(a,c,h,x,_){return a.propertyName!==h||a.dotDotDotToken!==c||a.name!==x||a.initializer!==_?Z(Wo(c,h,x,_),a):a}function cl(a,c){let h=C(210),x=a&&$u(a),_=E(a,x&&dK(x)?!0:void 0);return h.elements=n().parenthesizeExpressionsOfCommaDelimitedList(_),h.multiLine=c,h.transformFlags|=Ye(h.elements),h}function Fp(a,c){return a.elements!==c?Z(cl(c,a.multiLine),a):a}function Ra(a,c){let h=P(211);return h.properties=E(a),h.multiLine=c,h.transformFlags|=Ye(h.properties),h.jsDoc=void 0,h}function qm(a,c){return a.properties!==c?Z(Ra(c,a.multiLine),a):a}function kp(a,c,h){let x=P(212);return x.expression=a,x.questionDotToken=c,x.name=h,x.transformFlags=ae(x.expression)|ae(x.questionDotToken)|(zt(x.name)?Fu(x.name):ae(x.name)|536870912),x.jsDoc=void 0,x.flowNode=void 0,x}function Es(a,c){let h=kp(n().parenthesizeLeftSideOfAccess(a,!1),void 0,qt(c));return r0(a)&&(h.transformFlags|=384),h}function Km(a,c,h){return _R(a)?Vo(a,c,a.questionDotToken,Xs(h,zt)):a.expression!==c||a.name!==h?Z(Es(c,h),a):a}function Ua(a,c,h){let x=kp(n().parenthesizeLeftSideOfAccess(a,!0),c,qt(h));return x.flags|=64,x.transformFlags|=32,x}function Vo(a,c,h,x){return re.assert(!!(a.flags&64),"Cannot update a PropertyAccessExpression using updatePropertyAccessChain. Use updatePropertyAccess instead."),a.expression!==c||a.questionDotToken!==h||a.name!==x?Z(Ua(c,h,x),a):a}function wp(a,c,h){let x=P(213);return x.expression=a,x.questionDotToken=c,x.argumentExpression=h,x.transformFlags|=ae(x.expression)|ae(x.questionDotToken)|ae(x.argumentExpression),x.jsDoc=void 0,x.flowNode=void 0,x}function qa(a,c){let h=wp(n().parenthesizeLeftSideOfAccess(a,!1),void 0,Ks(c));return r0(a)&&(h.transformFlags|=384),h}function zm(a,c,h){return FR(a)?pl(a,c,a.questionDotToken,h):a.expression!==c||a.argumentExpression!==h?Z(qa(c,h),a):a}function Pp(a,c,h){let x=wp(n().parenthesizeLeftSideOfAccess(a,!0),c,Ks(h));return x.flags|=64,x.transformFlags|=32,x}function pl(a,c,h,x){return re.assert(!!(a.flags&64),"Cannot update a ElementAccessExpression using updateElementAccessChain. Use updateElementAccess instead."),a.expression!==c||a.questionDotToken!==h||a.argumentExpression!==x?Z(Pp(c,h,x),a):a}function Np(a,c,h,x){let _=P(214);return _.expression=a,_.questionDotToken=c,_.typeArguments=h,_.arguments=x,_.transformFlags|=ae(_.expression)|ae(_.questionDotToken)|Ye(_.typeArguments)|Ye(_.arguments),_.typeArguments&&(_.transformFlags|=1),O3(_.expression)&&(_.transformFlags|=16384),_}function Ka(a,c,h){let x=Np(n().parenthesizeLeftSideOfAccess(a,!1),void 0,nt(c),n().parenthesizeExpressionsOfCommaDelimitedList(E(h)));return Lq(x.expression)&&(x.transformFlags|=8388608),x}function Ho(a,c,h,x){return k3(a)?Ip(a,c,a.questionDotToken,h,x):a.expression!==c||a.typeArguments!==h||a.arguments!==x?Z(Ka(c,h,x),a):a}function dl(a,c,h,x){let _=Np(n().parenthesizeLeftSideOfAccess(a,!0),c,nt(h),n().parenthesizeExpressionsOfCommaDelimitedList(E(x)));return _.flags|=64,_.transformFlags|=32,_}function Ip(a,c,h,x,_){return re.assert(!!(a.flags&64),"Cannot update a CallExpression using updateCallChain. Use updateCall instead."),a.expression!==c||a.questionDotToken!==h||a.typeArguments!==x||a.arguments!==_?Z(dl(c,h,x,_),a):a}function An(a,c,h){let x=P(215);return x.expression=n().parenthesizeExpressionOfNew(a),x.typeArguments=nt(c),x.arguments=h?n().parenthesizeExpressionsOfCommaDelimitedList(h):void 0,x.transformFlags|=ae(x.expression)|Ye(x.typeArguments)|Ye(x.arguments)|32,x.typeArguments&&(x.transformFlags|=1),x}function hl(a,c,h,x){return a.expression!==c||a.typeArguments!==h||a.arguments!==x?Z(An(c,h,x),a):a}function Xo(a,c,h){let x=C(216);return x.tag=n().parenthesizeLeftSideOfAccess(a,!1),x.typeArguments=nt(c),x.template=h,x.transformFlags|=ae(x.tag)|Ye(x.typeArguments)|ae(x.template)|1024,x.typeArguments&&(x.transformFlags|=1),LU(x.template)&&(x.transformFlags|=128),x}function Bp(a,c,h,x){return a.tag!==c||a.typeArguments!==h||a.template!==x?Z(Xo(c,h,x),a):a}function Lp(a,c){let h=C(217);return h.expression=n().parenthesizeOperandOfPrefixUnary(c),h.type=a,h.transformFlags|=ae(h.expression)|ae(h.type)|1,h}function Op(a,c,h){return a.type!==c||a.expression!==h?Z(Lp(c,h),a):a}function fl(a){let c=C(218);return c.expression=a,c.transformFlags=ae(c.expression),c.jsDoc=void 0,c}function $p(a,c){return a.expression!==c?Z(fl(c),a):a}function ml(a,c,h,x,_,O,ie){let Be=P(219);Be.modifiers=nt(a),Be.asteriskToken=c,Be.name=qt(h),Be.typeParameters=nt(x),Be.parameters=E(_),Be.type=O,Be.body=ie;let gt=Vn(Be.modifiers)&1024,kr=!!Be.asteriskToken,vs=gt&&kr;return Be.transformFlags=Ye(Be.modifiers)|ae(Be.asteriskToken)|Wn(Be.name)|Ye(Be.typeParameters)|Ye(Be.parameters)|ae(Be.type)|ae(Be.body)&-67108865|(vs?128:gt?256:kr?2048:0)|(Be.typeParameters||Be.type?1:0)|4194304,Be.typeArguments=void 0,Be.jsDoc=void 0,Be.locals=void 0,Be.nextContainer=void 0,Be.flowNode=void 0,Be.endFlowNode=void 0,Be.returnFlowNode=void 0,Be}function Mp(a,c,h,x,_,O,ie,Be){return a.name!==x||a.modifiers!==c||a.asteriskToken!==h||a.typeParameters!==_||a.parameters!==O||a.type!==ie||a.body!==Be?k(ml(c,h,x,_,O,ie,Be),a):a}function yl(a,c,h,x,_,O){let ie=P(220);ie.modifiers=nt(a),ie.typeParameters=nt(c),ie.parameters=E(h),ie.type=x,ie.equalsGreaterThanToken=_??Rt(39),ie.body=n().parenthesizeConciseBodyOfArrowFunction(O);let Be=Vn(ie.modifiers)&1024;return ie.transformFlags=Ye(ie.modifiers)|Ye(ie.typeParameters)|Ye(ie.parameters)|ae(ie.type)|ae(ie.equalsGreaterThanToken)|ae(ie.body)&-67108865|(ie.typeParameters||ie.type?1:0)|(Be?16640:0)|1024,ie.typeArguments=void 0,ie.jsDoc=void 0,ie.locals=void 0,ie.nextContainer=void 0,ie.flowNode=void 0,ie.endFlowNode=void 0,ie.returnFlowNode=void 0,ie}function jp(a,c,h,x,_,O,ie){return a.modifiers!==c||a.typeParameters!==h||a.parameters!==x||a.type!==_||a.equalsGreaterThanToken!==O||a.body!==ie?k(yl(c,h,x,_,O,ie),a):a}function Jp(a){let c=C(221);return c.expression=n().parenthesizeOperandOfPrefixUnary(a),c.transformFlags|=ae(c.expression),c}function Rp(a,c){return a.expression!==c?Z(Jp(c),a):a}function Go(a){let c=C(222);return c.expression=n().parenthesizeOperandOfPrefixUnary(a),c.transformFlags|=ae(c.expression),c}function mn(a,c){return a.expression!==c?Z(Go(c),a):a}function gl(a){let c=C(223);return c.expression=n().parenthesizeOperandOfPrefixUnary(a),c.transformFlags|=ae(c.expression),c}function bs(a,c){return a.expression!==c?Z(gl(c),a):a}function Up(a){let c=C(224);return c.expression=n().parenthesizeOperandOfPrefixUnary(a),c.transformFlags|=ae(c.expression)|256|128|2097152,c}function Di(a,c){return a.expression!==c?Z(Up(c),a):a}function xi(a,c){let h=C(225);return h.operator=a,h.operand=n().parenthesizeOperandOfPrefixUnary(c),h.transformFlags|=ae(h.operand),(a===46||a===47)&&zt(h.operand)&&!Bu(h.operand)&&!V3(h.operand)&&(h.transformFlags|=268435456),h}function Wm(a,c){return a.operand!==c?Z(xi(a.operator,c),a):a}function ea(a,c){let h=C(226);return h.operator=c,h.operand=n().parenthesizeOperandOfPostfixUnary(a),h.transformFlags|=ae(h.operand),zt(h.operand)&&!Bu(h.operand)&&!V3(h.operand)&&(h.transformFlags|=268435456),h}function Vm(a,c){return a.operand!==c?Z(ea(c,a.operator),a):a}function Qo(a,c,h){let x=P(227),_=py(c),O=_.kind;return x.left=n().parenthesizeLeftSideOfBinary(O,a),x.operatorToken=_,x.right=n().parenthesizeRightSideOfBinary(O,x.left,h),x.transformFlags|=ae(x.left)|ae(x.operatorToken)|ae(x.right),O===61?x.transformFlags|=32:O===64?k8(x.left)?x.transformFlags|=5248|qp(x.left):oK(x.left)&&(x.transformFlags|=5120|qp(x.left)):O===43||O===68?x.transformFlags|=512:WU(O)&&(x.transformFlags|=16),O===103&&No(x.left)&&(x.transformFlags|=536870912),x.jsDoc=void 0,x}function qp(a){return V8(a)?65536:0}function Hm(a,c,h,x){return a.left!==c||a.operatorToken!==h||a.right!==x?Z(Qo(c,h,x),a):a}function Kp(a,c,h,x,_){let O=C(228);return O.condition=n().parenthesizeConditionOfConditionalExpression(a),O.questionToken=c??Rt(58),O.whenTrue=n().parenthesizeBranchOfConditionalExpression(h),O.colonToken=x??Rt(59),O.whenFalse=n().parenthesizeBranchOfConditionalExpression(_),O.transformFlags|=ae(O.condition)|ae(O.questionToken)|ae(O.whenTrue)|ae(O.colonToken)|ae(O.whenFalse),O.flowNodeWhenFalse=void 0,O.flowNodeWhenTrue=void 0,O}function zp(a,c,h,x,_,O){return a.condition!==c||a.questionToken!==h||a.whenTrue!==x||a.colonToken!==_||a.whenFalse!==O?Z(Kp(c,h,x,_,O),a):a}function Wp(a,c){let h=C(229);return h.head=a,h.templateSpans=E(c),h.transformFlags|=ae(h.head)|Ye(h.templateSpans)|1024,h}function os(a,c,h){return a.head!==c||a.templateSpans!==h?Z(Wp(c,h),a):a}function za(a,c,h,x=0){re.assert(!(x&-7177),"Unsupported template flags.");let _;if(h!==void 0&&h!==c&&(_=Aq(a,h),typeof _=="object"))return re.fail("Invalid raw text");if(c===void 0){if(_===void 0)return re.fail("Arguments 'text' and 'rawText' may not both be undefined.");c=_}else _!==void 0&&re.assert(c===_,"Expected argument 'text' to be the normalized (i.e. 'cooked') version of argument 'rawText'.");return c}function Vp(a){let c=1024;return a&&(c|=128),c}function Xm(a,c,h,x){let _=ir(a);return _.text=c,_.rawText=h,_.templateFlags=x&7176,_.transformFlags=Vp(_.templateFlags),_}function ta(a,c,h,x){let _=P(a);return _.text=c,_.rawText=h,_.templateFlags=x&7176,_.transformFlags=Vp(_.templateFlags),_}function ra(a,c,h,x){return a===15?ta(a,c,h,x):Xm(a,c,h,x)}function Hp(a,c,h){return a=za(16,a,c,h),ra(16,a,c,h)}function Yo(a,c,h){return a=za(16,a,c,h),ra(17,a,c,h)}function Dl(a,c,h){return a=za(16,a,c,h),ra(18,a,c,h)}function Gm(a,c,h){return a=za(16,a,c,h),ta(15,a,c,h)}function xl(a,c){re.assert(!a||!!c,"A `YieldExpression` with an asteriskToken must have an expression.");let h=C(230);return h.expression=c&&n().parenthesizeExpressionForDisallowedComma(c),h.asteriskToken=a,h.transformFlags|=ae(h.expression)|ae(h.asteriskToken)|1024|128|1048576,h}function Qm(a,c,h){return a.expression!==h||a.asteriskToken!==c?Z(xl(c,h),a):a}function Xp(a){let c=C(231);return c.expression=n().parenthesizeExpressionForDisallowedComma(a),c.transformFlags|=ae(c.expression)|1024|32768,c}function Ym(a,c){return a.expression!==c?Z(Xp(c),a):a}function Gp(a,c,h,x,_){let O=P(232);return O.modifiers=nt(a),O.name=qt(c),O.typeParameters=nt(h),O.heritageClauses=nt(x),O.members=E(_),O.transformFlags|=Ye(O.modifiers)|Wn(O.name)|Ye(O.typeParameters)|Ye(O.heritageClauses)|Ye(O.members)|(O.typeParameters?1:0)|1024,O.jsDoc=void 0,O}function Tl(a,c,h,x,_,O){return a.modifiers!==c||a.name!==h||a.typeParameters!==x||a.heritageClauses!==_||a.members!==O?Z(Gp(c,h,x,_,O),a):a}function El(){return C(233)}function Qp(a,c){let h=C(234);return h.expression=n().parenthesizeLeftSideOfAccess(a,!1),h.typeArguments=c&&n().parenthesizeTypeArguments(c),h.transformFlags|=ae(h.expression)|Ye(h.typeArguments)|1024,h}function Yp(a,c,h){return a.expression!==c||a.typeArguments!==h?Z(Qp(c,h),a):a}function yn(a,c){let h=C(235);return h.expression=a,h.type=c,h.transformFlags|=ae(h.expression)|ae(h.type)|1,h}function Zo(a,c,h){return a.expression!==c||a.type!==h?Z(yn(c,h),a):a}function Zp(a){let c=C(236);return c.expression=n().parenthesizeLeftSideOfAccess(a,!1),c.transformFlags|=ae(c.expression)|1,c}function ed(a,c){return wR(a)?qn(a,c):a.expression!==c?Z(Zp(c),a):a}function bl(a,c){let h=C(239);return h.expression=a,h.type=c,h.transformFlags|=ae(h.expression)|ae(h.type)|1,h}function td(a,c,h){return a.expression!==c||a.type!==h?Z(bl(c,h),a):a}function Cl(a){let c=C(236);return c.flags|=64,c.expression=n().parenthesizeLeftSideOfAccess(a,!0),c.transformFlags|=ae(c.expression)|1,c}function qn(a,c){return re.assert(!!(a.flags&64),"Cannot update a NonNullExpression using updateNonNullChain. Use updateNonNullExpression instead."),a.expression!==c?Z(Cl(c),a):a}function rd(a,c){let h=C(237);switch(h.keywordToken=a,h.name=c,h.transformFlags|=ae(h.name),a){case 105:h.transformFlags|=1024;break;case 102:h.transformFlags|=32;break;default:return re.assertNever(a)}return h.flowNode=void 0,h}function Al(a,c){return a.name!==c?Z(rd(a.keywordToken,c),a):a}function us(a,c){let h=C(240);return h.expression=a,h.literal=c,h.transformFlags|=ae(h.expression)|ae(h.literal)|1024,h}function eu(a,c,h){return a.expression!==c||a.literal!==h?Z(us(c,h),a):a}function nd(){let a=C(241);return a.transformFlags|=1024,a}function Ti(a,c){let h=C(242);return h.statements=E(a),h.multiLine=c,h.transformFlags|=Ye(h.statements),h.jsDoc=void 0,h.locals=void 0,h.nextContainer=void 0,h}function Zm(a,c){return a.statements!==c?Z(Ti(c,a.multiLine),a):a}function vl(a,c){let h=C(244);return h.modifiers=nt(a),h.declarationList=Ri(c)?Pl(c):c,h.transformFlags|=Ye(h.modifiers)|ae(h.declarationList),Vn(h.modifiers)&128&&(h.transformFlags=1),h.jsDoc=void 0,h.flowNode=void 0,h}function sd(a,c,h){return a.modifiers!==c||a.declarationList!==h?Z(vl(c,h),a):a}function id(){let a=C(243);return a.jsDoc=void 0,a}function Wa(a){let c=C(245);return c.expression=n().parenthesizeExpressionOfExpressionStatement(a),c.transformFlags|=ae(c.expression),c.jsDoc=void 0,c.flowNode=void 0,c}function ad(a,c){return a.expression!==c?Z(Wa(c),a):a}function od(a,c,h){let x=C(246);return x.expression=a,x.thenStatement=ls(c),x.elseStatement=ls(h),x.transformFlags|=ae(x.expression)|ae(x.thenStatement)|ae(x.elseStatement),x.jsDoc=void 0,x.flowNode=void 0,x}function ud(a,c,h,x){return a.expression!==c||a.thenStatement!==h||a.elseStatement!==x?Z(od(c,h,x),a):a}function ld(a,c){let h=C(247);return h.statement=ls(a),h.expression=c,h.transformFlags|=ae(h.statement)|ae(h.expression),h.jsDoc=void 0,h.flowNode=void 0,h}function cd(a,c,h){return a.statement!==c||a.expression!==h?Z(ld(c,h),a):a}function pd(a,c){let h=C(248);return h.expression=a,h.statement=ls(c),h.transformFlags|=ae(h.expression)|ae(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function e1(a,c,h){return a.expression!==c||a.statement!==h?Z(pd(c,h),a):a}function dd(a,c,h,x){let _=C(249);return _.initializer=a,_.condition=c,_.incrementor=h,_.statement=ls(x),_.transformFlags|=ae(_.initializer)|ae(_.condition)|ae(_.incrementor)|ae(_.statement),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.flowNode=void 0,_}function hd(a,c,h,x,_){return a.initializer!==c||a.condition!==h||a.incrementor!==x||a.statement!==_?Z(dd(c,h,x,_),a):a}function Sl(a,c,h){let x=C(250);return x.initializer=a,x.expression=c,x.statement=ls(h),x.transformFlags|=ae(x.initializer)|ae(x.expression)|ae(x.statement),x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x.flowNode=void 0,x}function t1(a,c,h,x){return a.initializer!==c||a.expression!==h||a.statement!==x?Z(Sl(c,h,x),a):a}function fd(a,c,h,x){let _=C(251);return _.awaitModifier=a,_.initializer=c,_.expression=n().parenthesizeExpressionForDisallowedComma(h),_.statement=ls(x),_.transformFlags|=ae(_.awaitModifier)|ae(_.initializer)|ae(_.expression)|ae(_.statement)|1024,a&&(_.transformFlags|=128),_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_.flowNode=void 0,_}function r1(a,c,h,x,_){return a.awaitModifier!==c||a.initializer!==h||a.expression!==x||a.statement!==_?Z(fd(c,h,x,_),a):a}function md(a){let c=C(252);return c.label=qt(a),c.transformFlags|=ae(c.label)|4194304,c.jsDoc=void 0,c.flowNode=void 0,c}function n1(a,c){return a.label!==c?Z(md(c),a):a}function _l(a){let c=C(253);return c.label=qt(a),c.transformFlags|=ae(c.label)|4194304,c.jsDoc=void 0,c.flowNode=void 0,c}function yd(a,c){return a.label!==c?Z(_l(c),a):a}function Fl(a){let c=C(254);return c.expression=a,c.transformFlags|=ae(c.expression)|128|4194304,c.jsDoc=void 0,c.flowNode=void 0,c}function s1(a,c){return a.expression!==c?Z(Fl(c),a):a}function kl(a,c){let h=C(255);return h.expression=a,h.statement=ls(c),h.transformFlags|=ae(h.expression)|ae(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function gd(a,c,h){return a.expression!==c||a.statement!==h?Z(kl(c,h),a):a}function wl(a,c){let h=C(256);return h.expression=n().parenthesizeExpressionForDisallowedComma(a),h.caseBlock=c,h.transformFlags|=ae(h.expression)|ae(h.caseBlock),h.jsDoc=void 0,h.flowNode=void 0,h.possiblyExhaustive=!1,h}function na(a,c,h){return a.expression!==c||a.caseBlock!==h?Z(wl(c,h),a):a}function Dd(a,c){let h=C(257);return h.label=qt(a),h.statement=ls(c),h.transformFlags|=ae(h.label)|ae(h.statement),h.jsDoc=void 0,h.flowNode=void 0,h}function xd(a,c,h){return a.label!==c||a.statement!==h?Z(Dd(c,h),a):a}function Td(a){let c=C(258);return c.expression=a,c.transformFlags|=ae(c.expression),c.jsDoc=void 0,c.flowNode=void 0,c}function i1(a,c){return a.expression!==c?Z(Td(c),a):a}function Ed(a,c,h){let x=C(259);return x.tryBlock=a,x.catchClause=c,x.finallyBlock=h,x.transformFlags|=ae(x.tryBlock)|ae(x.catchClause)|ae(x.finallyBlock),x.jsDoc=void 0,x.flowNode=void 0,x}function a1(a,c,h,x){return a.tryBlock!==c||a.catchClause!==h||a.finallyBlock!==x?Z(Ed(c,h,x),a):a}function bd(){let a=C(260);return a.jsDoc=void 0,a.flowNode=void 0,a}function tu(a,c,h,x){let _=P(261);return _.name=qt(a),_.exclamationToken=c,_.type=h,_.initializer=so(x),_.transformFlags|=Wn(_.name)|ae(_.initializer)|(_.exclamationToken??_.type?1:0),_.jsDoc=void 0,_}function Cd(a,c,h,x,_){return a.name!==c||a.type!==x||a.exclamationToken!==h||a.initializer!==_?Z(tu(c,h,x,_),a):a}function Pl(a,c=0){let h=C(262);return h.flags|=c&7,h.declarations=E(a),h.transformFlags|=Ye(h.declarations)|4194304,c&7&&(h.transformFlags|=263168),c&4&&(h.transformFlags|=4),h}function o1(a,c){return a.declarations!==c?Z(Pl(c,a.flags),a):a}function Ad(a,c,h,x,_,O,ie){let Be=P(263);if(Be.modifiers=nt(a),Be.asteriskToken=c,Be.name=qt(h),Be.typeParameters=nt(x),Be.parameters=E(_),Be.type=O,Be.body=ie,!Be.body||Vn(Be.modifiers)&128)Be.transformFlags=1;else{let gt=Vn(Be.modifiers)&1024,kr=!!Be.asteriskToken,vs=gt&&kr;Be.transformFlags=Ye(Be.modifiers)|ae(Be.asteriskToken)|Wn(Be.name)|Ye(Be.typeParameters)|Ye(Be.parameters)|ae(Be.type)|ae(Be.body)&-67108865|(vs?128:gt?256:kr?2048:0)|(Be.typeParameters||Be.type?1:0)|4194304}return Be.typeArguments=void 0,Be.jsDoc=void 0,Be.locals=void 0,Be.nextContainer=void 0,Be.endFlowNode=void 0,Be.returnFlowNode=void 0,Be}function Nl(a,c,h,x,_,O,ie,Be){return a.modifiers!==c||a.asteriskToken!==h||a.name!==x||a.typeParameters!==_||a.parameters!==O||a.type!==ie||a.body!==Be?u1(Ad(c,h,x,_,O,ie,Be),a):a}function u1(a,c){return a!==c&&a.modifiers===c.modifiers&&(a.modifiers=c.modifiers),k(a,c)}function vd(a,c,h,x,_){let O=P(264);return O.modifiers=nt(a),O.name=qt(c),O.typeParameters=nt(h),O.heritageClauses=nt(x),O.members=E(_),Vn(O.modifiers)&128?O.transformFlags=1:(O.transformFlags|=Ye(O.modifiers)|Wn(O.name)|Ye(O.typeParameters)|Ye(O.heritageClauses)|Ye(O.members)|(O.typeParameters?1:0)|1024,O.transformFlags&8192&&(O.transformFlags|=1)),O.jsDoc=void 0,O}function ru(a,c,h,x,_,O){return a.modifiers!==c||a.name!==h||a.typeParameters!==x||a.heritageClauses!==_||a.members!==O?Z(vd(c,h,x,_,O),a):a}function Sd(a,c,h,x,_){let O=P(265);return O.modifiers=nt(a),O.name=qt(c),O.typeParameters=nt(h),O.heritageClauses=nt(x),O.members=E(_),O.transformFlags=1,O.jsDoc=void 0,O}function _d(a,c,h,x,_,O){return a.modifiers!==c||a.name!==h||a.typeParameters!==x||a.heritageClauses!==_||a.members!==O?Z(Sd(c,h,x,_,O),a):a}function Zt(a,c,h,x){let _=P(266);return _.modifiers=nt(a),_.name=qt(c),_.typeParameters=nt(h),_.type=x,_.transformFlags=1,_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_}function Js(a,c,h,x,_){return a.modifiers!==c||a.name!==h||a.typeParameters!==x||a.type!==_?Z(Zt(c,h,x,_),a):a}function Il(a,c,h){let x=P(267);return x.modifiers=nt(a),x.name=qt(c),x.members=E(h),x.transformFlags|=Ye(x.modifiers)|ae(x.name)|Ye(x.members)|1,x.transformFlags&=-67108865,x.jsDoc=void 0,x}function Rs(a,c,h,x){return a.modifiers!==c||a.name!==h||a.members!==x?Z(Il(c,h,x),a):a}function Fd(a,c,h,x=0){let _=P(268);return _.modifiers=nt(a),_.flags|=x&2088,_.name=c,_.body=h,Vn(_.modifiers)&128?_.transformFlags=1:_.transformFlags|=Ye(_.modifiers)|ae(_.name)|ae(_.body)|1,_.transformFlags&=-67108865,_.jsDoc=void 0,_.locals=void 0,_.nextContainer=void 0,_}function gr(a,c,h,x){return a.modifiers!==c||a.name!==h||a.body!==x?Z(Fd(c,h,x,a.flags),a):a}function Us(a){let c=C(269);return c.statements=E(a),c.transformFlags|=Ye(c.statements),c.jsDoc=void 0,c}function Or(a,c){return a.statements!==c?Z(Us(c),a):a}function kd(a){let c=C(270);return c.clauses=E(a),c.transformFlags|=Ye(c.clauses),c.locals=void 0,c.nextContainer=void 0,c}function l1(a,c){return a.clauses!==c?Z(kd(c),a):a}function wd(a){let c=P(271);return c.name=qt(a),c.transformFlags|=Fu(c.name)|1,c.modifiers=void 0,c.jsDoc=void 0,c}function Pd(a,c){return a.name!==c?c1(wd(c),a):a}function c1(a,c){return a!==c&&(a.modifiers=c.modifiers),Z(a,c)}function Nd(a,c,h,x){let _=P(272);return _.modifiers=nt(a),_.name=qt(h),_.isTypeOnly=c,_.moduleReference=x,_.transformFlags|=Ye(_.modifiers)|Fu(_.name)|ae(_.moduleReference),R8(_.moduleReference)||(_.transformFlags|=1),_.transformFlags&=-67108865,_.jsDoc=void 0,_}function Id(a,c,h,x,_){return a.modifiers!==c||a.isTypeOnly!==h||a.name!==x||a.moduleReference!==_?Z(Nd(c,h,x,_),a):a}function Bd(a,c,h,x){let _=C(273);return _.modifiers=nt(a),_.importClause=c,_.moduleSpecifier=h,_.attributes=_.assertClause=x,_.transformFlags|=ae(_.importClause)|ae(_.moduleSpecifier),_.transformFlags&=-67108865,_.jsDoc=void 0,_}function Ld(a,c,h,x,_){return a.modifiers!==c||a.importClause!==h||a.moduleSpecifier!==x||a.attributes!==_?Z(Bd(c,h,x,_),a):a}function Od(a,c,h){let x=P(274);return typeof a=="boolean"&&(a=a?156:void 0),x.isTypeOnly=a===156,x.phaseModifier=a,x.name=c,x.namedBindings=h,x.transformFlags|=ae(x.name)|ae(x.namedBindings),a===156&&(x.transformFlags|=1),x.transformFlags&=-67108865,x}function $d(a,c,h,x){return typeof c=="boolean"&&(c=c?156:void 0),a.phaseModifier!==c||a.name!==h||a.namedBindings!==x?Z(Od(c,h,x),a):a}function Bl(a,c){let h=C(301);return h.elements=E(a),h.multiLine=c,h.token=132,h.transformFlags|=4,h}function p1(a,c,h){return a.elements!==c||a.multiLine!==h?Z(Bl(c,h),a):a}function Va(a,c){let h=C(302);return h.name=a,h.value=c,h.transformFlags|=4,h}function Md(a,c,h){return a.name!==c||a.value!==h?Z(Va(c,h),a):a}function Ll(a,c){let h=C(303);return h.assertClause=a,h.multiLine=c,h}function jd(a,c,h){return a.assertClause!==c||a.multiLine!==h?Z(Ll(c,h),a):a}function Jd(a,c,h){let x=C(301);return x.token=h??118,x.elements=E(a),x.multiLine=c,x.transformFlags|=4,x}function Ol(a,c,h){return a.elements!==c||a.multiLine!==h?Z(Jd(c,h,a.token),a):a}function Rd(a,c){let h=C(302);return h.name=a,h.value=c,h.transformFlags|=4,h}function Ud(a,c,h){return a.name!==c||a.value!==h?Z(Rd(c,h),a):a}function qd(a){let c=P(275);return c.name=a,c.transformFlags|=ae(c.name),c.transformFlags&=-67108865,c}function d1(a,c){return a.name!==c?Z(qd(c),a):a}function Kd(a){let c=P(281);return c.name=a,c.transformFlags|=ae(c.name)|32,c.transformFlags&=-67108865,c}function h1(a,c){return a.name!==c?Z(Kd(c),a):a}function zd(a){let c=C(276);return c.elements=E(a),c.transformFlags|=Ye(c.elements),c.transformFlags&=-67108865,c}function Wd(a,c){return a.elements!==c?Z(zd(c),a):a}function qs(a,c,h){let x=P(277);return x.isTypeOnly=a,x.propertyName=c,x.name=h,x.transformFlags|=ae(x.propertyName)|ae(x.name),x.transformFlags&=-67108865,x}function f1(a,c,h,x){return a.isTypeOnly!==c||a.propertyName!==h||a.name!==x?Z(qs(c,h,x),a):a}function nu(a,c,h){let x=P(278);return x.modifiers=nt(a),x.isExportEquals=c,x.expression=c?n().parenthesizeRightSideOfBinary(64,void 0,h):n().parenthesizeExpressionOfExportDefault(h),x.transformFlags|=Ye(x.modifiers)|ae(x.expression),x.transformFlags&=-67108865,x.jsDoc=void 0,x}function Ha(a,c,h){return a.modifiers!==c||a.expression!==h?Z(nu(c,a.isExportEquals,h),a):a}function su(a,c,h,x,_){let O=P(279);return O.modifiers=nt(a),O.isTypeOnly=c,O.exportClause=h,O.moduleSpecifier=x,O.attributes=O.assertClause=_,O.transformFlags|=Ye(O.modifiers)|ae(O.exportClause)|ae(O.moduleSpecifier),O.transformFlags&=-67108865,O.jsDoc=void 0,O}function Vd(a,c,h,x,_,O){return a.modifiers!==c||a.isTypeOnly!==h||a.exportClause!==x||a.moduleSpecifier!==_||a.attributes!==O?Xa(su(c,h,x,_,O),a):a}function Xa(a,c){return a!==c&&a.modifiers===c.modifiers&&(a.modifiers=c.modifiers),Z(a,c)}function $l(a){let c=C(280);return c.elements=E(a),c.transformFlags|=Ye(c.elements),c.transformFlags&=-67108865,c}function m1(a,c){return a.elements!==c?Z($l(c),a):a}function iu(a,c,h){let x=C(282);return x.isTypeOnly=a,x.propertyName=qt(c),x.name=qt(h),x.transformFlags|=ae(x.propertyName)|ae(x.name),x.transformFlags&=-67108865,x.jsDoc=void 0,x}function y1(a,c,h,x){return a.isTypeOnly!==c||a.propertyName!==h||a.name!==x?Z(iu(c,h,x),a):a}function g1(){let a=P(283);return a.jsDoc=void 0,a}function Ml(a){let c=C(284);return c.expression=a,c.transformFlags|=ae(c.expression),c.transformFlags&=-67108865,c}function D1(a,c){return a.expression!==c?Z(Ml(c),a):a}function Hd(a){return C(a)}function Xd(a,c,h=!1){let x=jl(a,h?c&&n().parenthesizeNonArrayTypeOfPostfixType(c):c);return x.postfix=h,x}function jl(a,c){let h=C(a);return h.type=c,h}function x1(a,c,h){return c.type!==h?Z(Xd(a,h,c.postfix),c):c}function T1(a,c,h){return c.type!==h?Z(jl(a,h),c):c}function Gd(a,c){let h=P(318);return h.parameters=nt(a),h.type=c,h.transformFlags=Ye(h.parameters)|(h.type?1:0),h.jsDoc=void 0,h.locals=void 0,h.nextContainer=void 0,h.typeArguments=void 0,h}function E1(a,c,h){return a.parameters!==c||a.type!==h?Z(Gd(c,h),a):a}function Qd(a,c=!1){let h=P(323);return h.jsDocPropertyTags=nt(a),h.isArrayType=c,h}function b1(a,c,h){return a.jsDocPropertyTags!==c||a.isArrayType!==h?Z(Qd(c,h),a):a}function Yd(a){let c=C(310);return c.type=a,c}function Jl(a,c){return a.type!==c?Z(Yd(c),a):a}function Zd(a,c,h){let x=P(324);return x.typeParameters=nt(a),x.parameters=E(c),x.type=h,x.jsDoc=void 0,x.locals=void 0,x.nextContainer=void 0,x}function C1(a,c,h,x){return a.typeParameters!==c||a.parameters!==h||a.type!==x?Z(Zd(c,h,x),a):a}function sn(a){let c=Tf(a.kind);return a.tagName.escapedText===Su(c)?a.tagName:ge(c)}function vn(a,c,h){let x=C(a);return x.tagName=c,x.comment=h,x}function Ei(a,c,h){let x=P(a);return x.tagName=c,x.comment=h,x}function Rl(a,c,h,x){let _=vn(346,a??ge("template"),x);return _.constraint=c,_.typeParameters=E(h),_}function eh(a,c=sn(a),h,x,_){return a.tagName!==c||a.constraint!==h||a.typeParameters!==x||a.comment!==_?Z(Rl(c,h,x,_),a):a}function au(a,c,h,x){let _=Ei(347,a??ge("typedef"),x);return _.typeExpression=c,_.fullName=h,_.name=H3(h),_.locals=void 0,_.nextContainer=void 0,_}function A1(a,c=sn(a),h,x,_){return a.tagName!==c||a.typeExpression!==h||a.fullName!==x||a.comment!==_?Z(au(c,h,x,_),a):a}function Ul(a,c,h,x,_,O){let ie=Ei(342,a??ge("param"),O);return ie.typeExpression=x,ie.name=c,ie.isNameFirst=!!_,ie.isBracketed=h,ie}function v1(a,c=sn(a),h,x,_,O,ie){return a.tagName!==c||a.name!==h||a.isBracketed!==x||a.typeExpression!==_||a.isNameFirst!==O||a.comment!==ie?Z(Ul(c,h,x,_,O,ie),a):a}function th(a,c,h,x,_,O){let ie=Ei(349,a??ge("prop"),O);return ie.typeExpression=x,ie.name=c,ie.isNameFirst=!!_,ie.isBracketed=h,ie}function rh(a,c=sn(a),h,x,_,O,ie){return a.tagName!==c||a.name!==h||a.isBracketed!==x||a.typeExpression!==_||a.isNameFirst!==O||a.comment!==ie?Z(th(c,h,x,_,O,ie),a):a}function nh(a,c,h,x){let _=Ei(339,a??ge("callback"),x);return _.typeExpression=c,_.fullName=h,_.name=H3(h),_.locals=void 0,_.nextContainer=void 0,_}function sh(a,c=sn(a),h,x,_){return a.tagName!==c||a.typeExpression!==h||a.fullName!==x||a.comment!==_?Z(nh(c,h,x,_),a):a}function ih(a,c,h){let x=vn(340,a??ge("overload"),h);return x.typeExpression=c,x}function ql(a,c=sn(a),h,x){return a.tagName!==c||a.typeExpression!==h||a.comment!==x?Z(ih(c,h,x),a):a}function Kl(a,c,h){let x=vn(329,a??ge("augments"),h);return x.class=c,x}function Ga(a,c=sn(a),h,x){return a.tagName!==c||a.class!==h||a.comment!==x?Z(Kl(c,h,x),a):a}function ah(a,c,h){let x=vn(330,a??ge("implements"),h);return x.class=c,x}function bi(a,c,h){let x=vn(348,a??ge("see"),h);return x.name=c,x}function ou(a,c,h,x){return a.tagName!==c||a.name!==h||a.comment!==x?Z(bi(c,h,x),a):a}function oh(a){let c=C(311);return c.name=a,c}function S1(a,c){return a.name!==c?Z(oh(c),a):a}function uh(a,c){let h=C(312);return h.left=a,h.right=c,h.transformFlags|=ae(h.left)|ae(h.right),h}function _1(a,c,h){return a.left!==c||a.right!==h?Z(uh(c,h),a):a}function lh(a,c){let h=C(325);return h.name=a,h.text=c,h}function ch(a,c,h){return a.name!==c?Z(lh(c,h),a):a}function ph(a,c){let h=C(326);return h.name=a,h.text=c,h}function F1(a,c,h){return a.name!==c?Z(ph(c,h),a):a}function dh(a,c){let h=C(327);return h.name=a,h.text=c,h}function k1(a,c,h){return a.name!==c?Z(dh(c,h),a):a}function w1(a,c=sn(a),h,x){return a.tagName!==c||a.class!==h||a.comment!==x?Z(ah(c,h,x),a):a}function hh(a,c,h){return vn(a,c??ge(Tf(a)),h)}function P1(a,c,h=sn(c),x){return c.tagName!==h||c.comment!==x?Z(hh(a,h,x),c):c}function fh(a,c,h,x){let _=vn(a,c??ge(Tf(a)),x);return _.typeExpression=h,_}function N1(a,c,h=sn(c),x,_){return c.tagName!==h||c.typeExpression!==x||c.comment!==_?Z(fh(a,h,x,_),c):c}function mh(a,c){return vn(328,a,c)}function I1(a,c,h){return a.tagName!==c||a.comment!==h?Z(mh(c,h),a):a}function yh(a,c,h){let x=Ei(341,a??ge(Tf(341)),h);return x.typeExpression=c,x.locals=void 0,x.nextContainer=void 0,x}function zl(a,c=sn(a),h,x){return a.tagName!==c||a.typeExpression!==h||a.comment!==x?Z(yh(c,h,x),a):a}function gh(a,c,h,x,_){let O=vn(352,a??ge("import"),_);return O.importClause=c,O.moduleSpecifier=h,O.attributes=x,O.comment=_,O}function Dh(a,c,h,x,_,O){return a.tagName!==c||a.comment!==O||a.importClause!==h||a.moduleSpecifier!==x||a.attributes!==_?Z(gh(c,h,x,_,O),a):a}function Wl(a){let c=C(322);return c.text=a,c}function B1(a,c){return a.text!==c?Z(Wl(c),a):a}function Qa(a,c){let h=C(321);return h.comment=a,h.tags=nt(c),h}function xh(a,c,h){return a.comment!==c||a.tags!==h?Z(Qa(c,h),a):a}function Th(a,c,h){let x=C(285);return x.openingElement=a,x.children=E(c),x.closingElement=h,x.transformFlags|=ae(x.openingElement)|Ye(x.children)|ae(x.closingElement)|2,x}function L1(a,c,h,x){return a.openingElement!==c||a.children!==h||a.closingElement!==x?Z(Th(c,h,x),a):a}function Eh(a,c,h){let x=C(286);return x.tagName=a,x.typeArguments=nt(c),x.attributes=h,x.transformFlags|=ae(x.tagName)|Ye(x.typeArguments)|ae(x.attributes)|2,x.typeArguments&&(x.transformFlags|=1),x}function O1(a,c,h,x){return a.tagName!==c||a.typeArguments!==h||a.attributes!==x?Z(Eh(c,h,x),a):a}function uu(a,c,h){let x=C(287);return x.tagName=a,x.typeArguments=nt(c),x.attributes=h,x.transformFlags|=ae(x.tagName)|Ye(x.typeArguments)|ae(x.attributes)|2,c&&(x.transformFlags|=1),x}function bh(a,c,h,x){return a.tagName!==c||a.typeArguments!==h||a.attributes!==x?Z(uu(c,h,x),a):a}function Vl(a){let c=C(288);return c.tagName=a,c.transformFlags|=ae(c.tagName)|2,c}function Hl(a,c){return a.tagName!==c?Z(Vl(c),a):a}function Ur(a,c,h){let x=C(289);return x.openingFragment=a,x.children=E(c),x.closingFragment=h,x.transformFlags|=ae(x.openingFragment)|Ye(x.children)|ae(x.closingFragment)|2,x}function Ch(a,c,h,x){return a.openingFragment!==c||a.children!==h||a.closingFragment!==x?Z(Ur(c,h,x),a):a}function Ya(a,c){let h=C(12);return h.text=a,h.containsOnlyTriviaWhiteSpaces=!!c,h.transformFlags|=2,h}function $1(a,c,h){return a.text!==c||a.containsOnlyTriviaWhiteSpaces!==h?Z(Ya(c,h),a):a}function Ah(){let a=C(290);return a.transformFlags|=2,a}function vh(){let a=C(291);return a.transformFlags|=2,a}function Sh(a,c){let h=P(292);return h.name=a,h.initializer=c,h.transformFlags|=ae(h.name)|ae(h.initializer)|2,h}function M1(a,c,h){return a.name!==c||a.initializer!==h?Z(Sh(c,h),a):a}function Za(a){let c=P(293);return c.properties=E(a),c.transformFlags|=Ye(c.properties)|2,c}function j1(a,c){return a.properties!==c?Z(Za(c),a):a}function _h(a){let c=C(294);return c.expression=a,c.transformFlags|=ae(c.expression)|2,c}function J1(a,c){return a.expression!==c?Z(_h(c),a):a}function Fh(a,c){let h=C(295);return h.dotDotDotToken=a,h.expression=c,h.transformFlags|=ae(h.dotDotDotToken)|ae(h.expression)|2,h}function Xl(a,c){return a.expression!==c?Z(Fh(a.dotDotDotToken,c),a):a}function sa(a,c){let h=C(296);return h.namespace=a,h.name=c,h.transformFlags|=ae(h.namespace)|ae(h.name)|2,h}function R1(a,c,h){return a.namespace!==c||a.name!==h?Z(sa(c,h),a):a}function lu(a,c){let h=C(297);return h.expression=n().parenthesizeExpressionForDisallowedComma(a),h.statements=E(c),h.transformFlags|=ae(h.expression)|Ye(h.statements),h.jsDoc=void 0,h}function kh(a,c,h){return a.expression!==c||a.statements!==h?Z(lu(c,h),a):a}function wh(a){let c=C(298);return c.statements=E(a),c.transformFlags=Ye(c.statements),c}function eo(a,c){return a.statements!==c?Z(wh(c),a):a}function Gl(a,c){let h=C(299);switch(h.token=a,h.types=E(c),h.transformFlags|=Ye(h.types),a){case 96:h.transformFlags|=1024;break;case 119:h.transformFlags|=1;break;default:return re.assertNever(a)}return h}function U1(a,c){return a.types!==c?Z(Gl(a.token,c),a):a}function Ph(a,c){let h=C(300);return h.variableDeclaration=Sn(a),h.block=c,h.transformFlags|=ae(h.variableDeclaration)|ae(h.block)|(a?0:64),h.locals=void 0,h.nextContainer=void 0,h}function Nh(a,c,h){return a.variableDeclaration!==c||a.block!==h?Z(Ph(c,h),a):a}function cu(a,c){let h=P(304);return h.name=qt(a),h.initializer=n().parenthesizeExpressionForDisallowedComma(c),h.transformFlags|=Wn(h.name)|ae(h.initializer),h.modifiers=void 0,h.questionToken=void 0,h.exclamationToken=void 0,h.jsDoc=void 0,h}function Ql(a,c,h){return a.name!==c||a.initializer!==h?ia(cu(c,h),a):a}function ia(a,c){return a!==c&&(a.modifiers=c.modifiers,a.questionToken=c.questionToken,a.exclamationToken=c.exclamationToken),Z(a,c)}function Ih(a,c){let h=P(305);return h.name=qt(a),h.objectAssignmentInitializer=c&&n().parenthesizeExpressionForDisallowedComma(c),h.transformFlags|=Fu(h.name)|ae(h.objectAssignmentInitializer)|1024,h.equalsToken=void 0,h.modifiers=void 0,h.questionToken=void 0,h.exclamationToken=void 0,h.jsDoc=void 0,h}function q1(a,c,h){return a.name!==c||a.objectAssignmentInitializer!==h?K1(Ih(c,h),a):a}function K1(a,c){return a!==c&&(a.modifiers=c.modifiers,a.questionToken=c.questionToken,a.exclamationToken=c.exclamationToken,a.equalsToken=c.equalsToken),Z(a,c)}function Bh(a){let c=P(306);return c.expression=n().parenthesizeExpressionForDisallowedComma(a),c.transformFlags|=ae(c.expression)|128|65536,c.jsDoc=void 0,c}function Lh(a,c){return a.expression!==c?Z(Bh(c),a):a}function Yl(a,c){let h=P(307);return h.name=qt(a),h.initializer=c&&n().parenthesizeExpressionForDisallowedComma(c),h.transformFlags|=ae(h.name)|ae(h.initializer)|1,h.jsDoc=void 0,h}function Kn(a,c,h){return a.name!==c||a.initializer!==h?Z(Yl(c,h),a):a}function Oh(a,c,h){let x=t.createBaseSourceFileNode(308);return x.statements=E(a),x.endOfFileToken=c,x.flags|=h,x.text="",x.fileName="",x.path="",x.resolvedPath="",x.originalFileName="",x.languageVersion=1,x.languageVariant=0,x.scriptKind=0,x.isDeclarationFile=!1,x.hasNoDefaultLib=!1,x.transformFlags|=Ye(x.statements)|ae(x.endOfFileToken),x.locals=void 0,x.nextContainer=void 0,x.endFlowNode=void 0,x.nodeCount=0,x.identifierCount=0,x.symbolCount=0,x.parseDiagnostics=void 0,x.bindDiagnostics=void 0,x.bindSuggestionDiagnostics=void 0,x.lineMap=void 0,x.externalModuleIndicator=void 0,x.setExternalModuleIndicator=void 0,x.pragmas=void 0,x.checkJsDirective=void 0,x.referencedFiles=void 0,x.typeReferenceDirectives=void 0,x.libReferenceDirectives=void 0,x.amdDependencies=void 0,x.commentDirectives=void 0,x.identifiers=void 0,x.packageJsonLocations=void 0,x.packageJsonScope=void 0,x.imports=void 0,x.moduleAugmentations=void 0,x.ambientModuleNames=void 0,x.classifiableNames=void 0,x.impliedNodeFormat=void 0,x}function $h(a){let c=Object.create(a.redirectTarget);return Object.defineProperties(c,{id:{get(){return this.redirectInfo.redirectTarget.id},set(h){this.redirectInfo.redirectTarget.id=h}},symbol:{get(){return this.redirectInfo.redirectTarget.symbol},set(h){this.redirectInfo.redirectTarget.symbol=h}}}),c.redirectInfo=a,c}function z1(a){let c=$h(a.redirectInfo);return c.flags|=a.flags&-17,c.fileName=a.fileName,c.path=a.path,c.resolvedPath=a.resolvedPath,c.originalFileName=a.originalFileName,c.packageJsonLocations=a.packageJsonLocations,c.packageJsonScope=a.packageJsonScope,c.emitNode=void 0,c}function W1(a){let c=t.createBaseSourceFileNode(308);c.flags|=a.flags&-17;for(let h in a)if(!(ri(c,h)||!ri(a,h))){if(h==="emitNode"){c.emitNode=void 0;continue}c[h]=a[h]}return c}function Zl(a){let c=a.redirectInfo?z1(a):W1(a);return r(c,a),c}function ec(a,c,h,x,_,O,ie){let Be=Zl(a);return Be.statements=E(c),Be.isDeclarationFile=h,Be.referencedFiles=x,Be.typeReferenceDirectives=_,Be.hasNoDefaultLib=O,Be.libReferenceDirectives=ie,Be.transformFlags=Ye(Be.statements)|ae(Be.endOfFileToken),Be}function V1(a,c,h=a.isDeclarationFile,x=a.referencedFiles,_=a.typeReferenceDirectives,O=a.hasNoDefaultLib,ie=a.libReferenceDirectives){return a.statements!==c||a.isDeclarationFile!==h||a.referencedFiles!==x||a.typeReferenceDirectives!==_||a.hasNoDefaultLib!==O||a.libReferenceDirectives!==ie?Z(ec(a,c,h,x,_,O,ie),a):a}function Mh(a){let c=C(309);return c.sourceFiles=a,c.syntheticFileReferences=void 0,c.syntheticTypeReferences=void 0,c.syntheticLibReferences=void 0,c.hasNoDefaultLib=void 0,c}function jh(a,c){return a.sourceFiles!==c?Z(Mh(c),a):a}function H1(a,c=!1,h){let x=C(238);return x.type=a,x.isSpread=c,x.tupleNameSource=h,x}function X1(a){let c=C(353);return c._children=a,c}function pu(a){let c=C(354);return c.original=a,xn(c,a),c}function tc(a,c){let h=C(356);return h.expression=a,h.original=c,h.transformFlags|=ae(h.expression)|1,xn(h,c),h}function Jh(a,c){return a.expression!==c?Z(tc(c,a.original),a):a}function G1(){return C(355)}function Q1(a){if(_u(a)&&!Yf(a)&&!a.original&&!a.emitNode&&!a.id){if(mK(a))return a.elements;if(Qu(a)&&Iq(a.operatorToken))return[a.left,a.right]}return a}function rc(a){let c=C(357);return c.elements=E(Gj(a,Q1)),c.transformFlags|=Ye(c.elements),c}function Y1(a,c){return a.elements!==c?Z(rc(c),a):a}function nc(a,c){let h=C(358);return h.expression=a,h.thisArg=c,h.transformFlags|=ae(h.expression)|ae(h.thisArg),h}function Rh(a,c,h){return a.expression!==c||a.thisArg!==h?Z(nc(c,h),a):a}function Uh(a){let c=Q(a.escapedText);return c.flags|=a.flags&-17,c.transformFlags=a.transformFlags,r(c,a),setIdentifierAutoGenerate(c,{...a.emitNode.autoGenerate}),c}function Z1(a){let c=Q(a.escapedText);c.flags|=a.flags&-17,c.jsDoc=a.jsDoc,c.flowNode=a.flowNode,c.symbol=a.symbol,c.transformFlags=a.transformFlags,r(c,a);let h=getIdentifierTypeArguments(a);return h&&setIdentifierTypeArguments(c,h),c}function ey(a){let c=Dt(a.escapedText);return c.flags|=a.flags&-17,c.transformFlags=a.transformFlags,r(c,a),setIdentifierAutoGenerate(c,{...a.emitNode.autoGenerate}),c}function qh(a){let c=Dt(a.escapedText);return c.flags|=a.flags&-17,c.transformFlags=a.transformFlags,r(c,a),c}function du(a){if(a===void 0)return a;if(AK(a))return Zl(a);if(Bu(a))return Uh(a);if(zt(a))return Z1(a);if(r8(a))return ey(a);if(No(a))return qh(a);let c=oD(a.kind)?t.createBaseNode(a.kind):t.createBaseTokenNode(a.kind);c.flags|=a.flags&-17,c.transformFlags=a.transformFlags,r(c,a);for(let h in a)ri(c,h)||!ri(a,h)||(c[h]=a[h]);return c}function ty(a,c,h){return Ka(ml(void 0,void 0,void 0,void 0,c?[c]:[],void 0,Ti(a,!0)),void 0,h?[h]:[])}function ry(a,c,h){return Ka(yl(void 0,void 0,c?[c]:[],void 0,void 0,Ti(a,!0)),void 0,h?[h]:[])}function to(){return gl(w("0"))}function Kh(a){return nu(void 0,!1,a)}function zh(a){return su(void 0,!1,$l([iu(!1,void 0,a)]))}function ny(a,c){return c==="null"?v.createStrictEquality(a,fe()):c==="undefined"?v.createStrictEquality(a,to()):v.createStrictEquality(Go(a),oe(c))}function sc(a,c){return c==="null"?v.createStrictInequality(a,fe()):c==="undefined"?v.createStrictInequality(a,to()):v.createStrictInequality(Go(a),oe(c))}function Ci(a,c,h){return k3(a)?dl(Ua(a,void 0,c),void 0,void 0,h):Ka(Es(a,c),void 0,h)}function sy(a,c,h){return Ci(a,"bind",[c,...h])}function iy(a,c,h){return Ci(a,"call",[c,...h])}function ay(a,c,h){return Ci(a,"apply",[c,h])}function ro(a,c,h){return Ci(ge(a),c,h)}function oy(a,c){return Ci(a,"slice",c===void 0?[]:[Ks(c)])}function no(a,c){return Ci(a,"concat",c)}function uy(a,c,h){return ro("Object","defineProperty",[a,Ks(c),h])}function ic(a,c){return ro("Object","getOwnPropertyDescriptor",[a,Ks(c)])}function aa(a,c,h){return ro("Reflect","get",h?[a,c,h]:[a,c])}function Wh(a,c,h,x){return ro("Reflect","set",x?[a,c,h,x]:[a,c,h])}function oa(a,c,h){return h?(a.push(cu(c,h)),!0):!1}function ly(a,c){let h=[];oa(h,"enumerable",Ks(a.enumerable)),oa(h,"configurable",Ks(a.configurable));let x=oa(h,"writable",Ks(a.writable));x=oa(h,"value",a.value)||x;let _=oa(h,"get",a.get);return _=oa(h,"set",a.set)||_,re.assert(!(x&&_),"A PropertyDescriptor may not be both an accessor descriptor and a data descriptor."),Ra(h,!c)}function Vh(a,c){switch(a.kind){case 218:return $p(a,c);case 217:return Op(a,a.type,c);case 235:return Zo(a,c,a.type);case 239:return td(a,c,a.type);case 236:return ed(a,c);case 234:return Yp(a,c,a.typeArguments);case 356:return Jh(a,c)}}function cy(a){return xD(a)&&_u(a)&&_u(getSourceMapRange(a))&&_u(getCommentRange(a))&&!Yr(getSyntheticLeadingComments(a))&&!Yr(getSyntheticTrailingComments(a))}function Hh(a,c,h=63){return a&&W8(a,h)&&!cy(a)?Vh(a,Hh(a.expression,c)):c}function Xh(a,c,h){if(!c)return a;let x=xd(c,c.label,yK(c.statement)?Xh(a,c.statement):a);return h&&h(c),x}function ac(a,c){let h=hD(a);switch(h.kind){case 80:return c;case 110:case 9:case 10:case 11:return!1;case 210:return h.elements.length!==0;case 211:return h.properties.length>0;default:return!0}}function Gh(a,c,h,x=!1){let _=bD(a,63),O,ie;return O3(_)?(O=ce(),ie=_):r0(_)?(O=ce(),ie=h!==void 0&&h<2?xn(ge("_super"),_):_):Ju(_)&8192?(O=to(),ie=n().parenthesizeLeftSideOfAccess(_,!1)):Gi(_)?ac(_.expression,x)?(O=Pe(c),ie=Es(xn(v.createAssignment(O,_.expression),_.expression),_.name),xn(ie,_)):(O=_.expression,ie=_):vp(_)?ac(_.expression,x)?(O=Pe(c),ie=qa(xn(v.createAssignment(O,_.expression),_.expression),_.argumentExpression),xn(ie,_)):(O=_.expression,ie=_):(O=to(),ie=n().parenthesizeLeftSideOfAccess(a,!1)),{target:ie,thisArg:O}}function Qh(a,c){return Es(fl(Ra([te(void 0,"value",[nn(void 0,void 0,a,void 0,void 0,void 0)],Ti([Wa(c)]))])),"value")}function g(a){return a.length>10?rc(a):aJ(a,v.createComma)}function b(a,c,h,x=0,_){let O=_?a&&iD(a):QC(a);if(O&&zt(O)&&!Bu(O)){let ie=yD(xn(du(O),O),O.parent);return x|=Ju(O),h||(x|=96),c||(x|=3072),x&&setEmitFlags(ie,x),ie}return rr(a)}function F(a,c,h){return b(a,c,h,98304)}function N(a,c,h,x){return b(a,c,h,32768,x)}function L(a,c,h){return b(a,c,h,16384)}function W(a,c,h){return b(a,c,h)}function he(a,c,h,x){let _=Es(a,_u(c)?c:du(c));xn(_,c);let O=0;return x||(O|=96),h||(O|=3072),O&&setEmitFlags(_,O),_}function ke(a,c,h,x){return a&&Ap(c,32)?he(a,b(c),h,x):L(c,h,x)}function Te(a,c,h,x){let _=ht(a,c,0,h);return ct(a,c,_,x)}function De(a){return Ru(a.expression)&&a.expression.text==="use strict"}function Ne(){return WK(Wa(oe("use strict")))}function ht(a,c,h=0,x){re.assert(c.length===0,"Prologue directives should be at the first statement in the target statements array");let _=!1,O=a.length;for(;h<O;){let ie=a[h];if(Of(ie))De(ie)&&(_=!0),c.push(ie);else break;h++}return x&&!_&&c.push(Ne()),h}function ct(a,c,h,x,_=dJ){let O=a.length;for(;h!==void 0&&h<O;){let ie=a[h];if(Ju(ie)&2097152&&_(ie))Pn(c,x?visitNode(ie,x,XR):ie);else break;h++}return h}function tt(a){return KK(a)?a:xn(E([Ne(),...a]),a)}function an(a){return re.assert(Vg(a,QR),"Cannot lift nodes to a Block."),nJ(a)||Ti(a)}function Fr(a,c,h){let x=h;for(;x<a.length&&c(a[x]);)x++;return x}function Cs(a,c){if(!Yr(c))return a;let h=Fr(a,Of,0),x=Fr(a,B3,h),_=Fr(a,L3,x),O=Fr(c,Of,0),ie=Fr(c,B3,O),Be=Fr(c,L3,ie),gt=Fr(c,lD,Be);re.assert(gt===c.length,"Expected declarations to be valid standard or custom prologues");let kr=Ta(a)?a.slice():a;if(gt>Be&&kr.splice(_,0,...c.slice(Be,gt)),Be>ie&&kr.splice(x,0,...c.slice(ie,Be)),ie>O&&kr.splice(h,0,...c.slice(O,ie)),O>0)if(h===0)kr.splice(0,0,...c.slice(0,O));else{let vs=new Map;for(let _n=0;_n<h;_n++){let io=a[_n];vs.set(io.expression.text,!0)}for(let _n=O-1;_n>=0;_n--){let io=c[_n];vs.has(io.expression.text)||kr.unshift(io)}}return Ta(a)?xn(E(kr,a.hasTrailingComma),a):a}function As(a,c){let h;return typeof c=="number"?h=hr(c):h=c,C8(a)?Nr(a,h,a.name,a.constraint,a.default):tm(a)?pn(a,h,a.dotDotDotToken,a.name,a.questionToken,a.type,a.initializer):F8(a)?vt(a,h,a.typeParameters,a.parameters,a.type):$q(a)?ns(a,h,a.name,a.questionToken,a.type):rm(a)?G(a,h,a.name,a.questionToken??a.exclamationToken,a.type,a.initializer):Mq(a)?Oe(a,h,a.name,a.questionToken,a.typeParameters,a.parameters,a.type):Z0(a)?Ft(a,h,a.asteriskToken,a.name,a.questionToken,a.typeParameters,a.parameters,a.type,a.body):A8(a)?Qi(a,h,a.parameters,a.body):e2(a)?ss(a,h,a.name,a.parameters,a.type,a.body):nm(a)?ye(a,h,a.name,a.parameters,a.body):v8(a)?Mt(a,h,a.parameters,a.type):P8(a)?Mp(a,h,a.asteriskToken,a.name,a.typeParameters,a.parameters,a.type,a.body):N8(a)?jp(a,h,a.typeParameters,a.parameters,a.type,a.equalsGreaterThanToken,a.body):t2(a)?Tl(a,h,a.name,a.typeParameters,a.heritageClauses,a.members):Om(a)?sd(a,h,a.declarationList):L8(a)?Nl(a,h,a.asteriskToken,a.name,a.typeParameters,a.parameters,a.type,a.body):sm(a)?ru(a,h,a.name,a.typeParameters,a.heritageClauses,a.members):TD(a)?_d(a,h,a.name,a.typeParameters,a.heritageClauses,a.members):O8(a)?Js(a,h,a.name,a.typeParameters,a.type):DK(a)?Rs(a,h,a.name,a.members):op(a)?gr(a,h,a.name,a.body):$8(a)?Id(a,h,a.isTypeOnly,a.name,a.moduleReference):M8(a)?Ld(a,h,a.importClause,a.moduleSpecifier,a.attributes):j8(a)?Ha(a,h,a.expression):J8(a)?Vd(a,h,a.isTypeOnly,a.exportClause,a.moduleSpecifier,a.attributes):re.assertNever(a)}function zn(a,c){return tm(a)?pn(a,c,a.dotDotDotToken,a.name,a.questionToken,a.type,a.initializer):rm(a)?G(a,c,a.name,a.questionToken??a.exclamationToken,a.type,a.initializer):Z0(a)?Ft(a,c,a.asteriskToken,a.name,a.questionToken,a.typeParameters,a.parameters,a.type,a.body):e2(a)?ss(a,c,a.name,a.parameters,a.type,a.body):nm(a)?ye(a,c,a.name,a.parameters,a.body):t2(a)?Tl(a,c,a.name,a.typeParameters,a.heritageClauses,a.members):sm(a)?ru(a,c,a.name,a.typeParameters,a.heritageClauses,a.members):re.assertNever(a)}function Ai(a,c){switch(a.kind){case 178:return ss(a,a.modifiers,c,a.parameters,a.type,a.body);case 179:return ye(a,a.modifiers,c,a.parameters,a.body);case 175:return Ft(a,a.modifiers,a.asteriskToken,c,a.questionToken,a.typeParameters,a.parameters,a.type,a.body);case 174:return Oe(a,a.modifiers,c,a.questionToken,a.typeParameters,a.parameters,a.type);case 173:return G(a,a.modifiers,c,a.questionToken??a.exclamationToken,a.type,a.initializer);case 172:return ns(a,a.modifiers,c,a.questionToken,a.type);case 304:return Ql(a,c,a.initializer)}}function nt(a){return a?E(a):void 0}function qt(a){return typeof a=="string"?ge(a):a}function Ks(a){return typeof a=="string"?oe(a):typeof a=="number"?w(a):typeof a=="boolean"?a?Ke():xt():a}function so(a){return a&&n().parenthesizeExpressionForDisallowedComma(a)}function py(a){return typeof a=="number"?Rt(a):a}function ls(a){return a&&TK(a)?xn(r(id(),a),a):a}function Sn(a){return typeof a=="string"||a&&!B8(a)?tu(a,void 0,void 0,void 0):a}function Z(a,c){return a!==c&&(r(a,c),xn(a,c)),a}}function Tf(e){switch(e){case 345:return"type";case 343:return"returns";case 344:return"this";case 341:return"enum";case 331:return"author";case 333:return"class";case 334:return"public";case 335:return"private";case 336:return"protected";case 337:return"readonly";case 338:return"override";case 346:return"template";case 347:return"typedef";case 342:return"param";case 349:return"prop";case 339:return"callback";case 340:return"overload";case 329:return"augments";case 330:return"implements";case 352:return"import";default:return re.fail(`Unsupported kind: ${re.formatSyntaxKind(e)}`)}}var Fn,J3={};function Aq(e,t){switch(Fn||(Fn=nD(99,!1,0)),e){case 15:Fn.setText("`"+t+"`");break;case 16:Fn.setText("`"+t+"${");break;case 17:Fn.setText("}"+t+"${");break;case 18:Fn.setText("}"+t+"`");break}let r=Fn.scan();if(r===20&&(r=Fn.reScanTemplateToken(!1)),Fn.isUnterminated())return Fn.setText(void 0),J3;let n;switch(r){case 15:case 16:case 17:case 18:n=Fn.getTokenValue();break}return n===void 0||Fn.scan()!==1?(Fn.setText(void 0),J3):(Fn.setText(void 0),n)}function Wn(e){return e&&zt(e)?Fu(e):ae(e)}function Fu(e){return ae(e)&-67108865}function vq(e,t){return t|e.transformFlags&134234112}function ae(e){if(!e)return 0;let t=e.transformFlags&~Sq(e.kind);return lR(e)&&n8(e.name)?vq(e.name,t):t}function Ye(e){return e?e.transformFlags:0}function R3(e){let t=0;for(let r of e)t|=ae(r);e.transformFlags=t}function Sq(e){if(e>=183&&e<=206)return-2;switch(e){case 214:case 215:case 210:return-2147450880;case 268:return-1941676032;case 170:return-2147483648;case 220:return-2072174592;case 219:case 263:return-1937940480;case 262:return-2146893824;case 264:case 232:return-2147344384;case 177:return-1937948672;case 173:return-2013249536;case 175:case 178:case 179:return-2005057536;case 133:case 150:case 163:case 146:case 154:case 151:case 136:case 155:case 116:case 169:case 172:case 174:case 180:case 181:case 182:case 265:case 266:return-2;case 211:return-2147278848;case 300:return-2147418112;case 207:case 208:return-2147450880;case 217:case 239:case 235:case 356:case 218:case 108:return-2147483648;case 212:case 213:return-2147483648;default:return-2147483648}}var Tc=Eq();function Ec(e){return e.flags|=16,e}var _q={createBaseSourceFileNode:e=>Ec(Tc.createBaseSourceFileNode(e)),createBaseIdentifierNode:e=>Ec(Tc.createBaseIdentifierNode(e)),createBasePrivateIdentifierNode:e=>Ec(Tc.createBasePrivateIdentifierNode(e)),createBaseTokenNode:e=>Ec(Tc.createBaseTokenNode(e)),createBaseNode:e=>Ec(Tc.createBaseNode(e))};gD(4,_q);function Fq(e,t){if(e.original!==t&&(e.original=t,t)){let r=t.emitNode;r&&(e.emitNode=kq(r,e.emitNode))}return e}function kq(e,t){let{flags:r,internalFlags:n,leadingComments:s,trailingComments:i,commentRange:o,sourceMapRange:l,tokenSourceMapRanges:u,constantValue:f,helpers:p,startsOnNewLine:d,snippetElement:y,classThis:m,assignedName:D}=e;if(t||(t={}),r&&(t.flags=r),n&&(t.internalFlags=n&-9),s&&(t.leadingComments=Ln(s.slice(),t.leadingComments)),i&&(t.trailingComments=Ln(i.slice(),t.trailingComments)),o&&(t.commentRange=o),l&&(t.sourceMapRange=l),u&&(t.tokenSourceMapRanges=wq(u,t.tokenSourceMapRanges)),f!==void 0&&(t.constantValue=f),p)for(let T of p)t.helpers=eJ(t.helpers,T);return d!==void 0&&(t.startsOnNewLine=d),y!==void 0&&(t.snippetElement=y),m&&(t.classThis=m),D&&(t.assignedName=D),t}function wq(e,t){t||(t=[]);for(let r in e)t[r]=e[r];return t}function ul(e){return e.kind===9}function Pq(e){return e.kind===10}function Ru(e){return e.kind===11}function Nq(e){return e.kind===15}function Iq(e){return e.kind===28}function U3(e){return e.kind===54}function q3(e){return e.kind===58}function zt(e){return e.kind===80}function No(e){return e.kind===81}function Bq(e){return e.kind===95}function Ef(e){return e.kind===134}function r0(e){return e.kind===108}function Lq(e){return e.kind===102}function Oq(e){return e.kind===167}function b8(e){return e.kind===168}function C8(e){return e.kind===169}function tm(e){return e.kind===170}function DD(e){return e.kind===171}function $q(e){return e.kind===172}function rm(e){return e.kind===173}function Mq(e){return e.kind===174}function Z0(e){return e.kind===175}function A8(e){return e.kind===177}function e2(e){return e.kind===178}function nm(e){return e.kind===179}function jq(e){return e.kind===180}function Jq(e){return e.kind===181}function v8(e){return e.kind===182}function Rq(e){return e.kind===183}function S8(e){return e.kind===184}function _8(e){return e.kind===185}function F8(e){return e.kind===186}function Uq(e){return e.kind===187}function qq(e){return e.kind===188}function Kq(e){return e.kind===189}function zq(e){return e.kind===190}function Wq(e){return e.kind===203}function Vq(e){return e.kind===191}function Hq(e){return e.kind===192}function Xq(e){return e.kind===193}function Gq(e){return e.kind===194}function Qq(e){return e.kind===195}function Yq(e){return e.kind===196}function Zq(e){return e.kind===197}function eK(e){return e.kind===198}function tK(e){return e.kind===199}function rK(e){return e.kind===200}function nK(e){return e.kind===201}function sK(e){return e.kind===202}function iK(e){return e.kind===206}function aK(e){return e.kind===209}function oK(e){return e.kind===210}function k8(e){return e.kind===211}function Gi(e){return e.kind===212}function vp(e){return e.kind===213}function w8(e){return e.kind===214}function uK(e){return e.kind===216}function xD(e){return e.kind===218}function P8(e){return e.kind===219}function N8(e){return e.kind===220}function lK(e){return e.kind===223}function cK(e){return e.kind===225}function Qu(e){return e.kind===227}function pK(e){return e.kind===231}function t2(e){return e.kind===232}function dK(e){return e.kind===233}function hK(e){return e.kind===234}function $f(e){return e.kind===236}function fK(e){return e.kind===237}function mK(e){return e.kind===357}function Om(e){return e.kind===244}function I8(e){return e.kind===245}function yK(e){return e.kind===257}function B8(e){return e.kind===261}function gK(e){return e.kind===262}function L8(e){return e.kind===263}function sm(e){return e.kind===264}function TD(e){return e.kind===265}function O8(e){return e.kind===266}function DK(e){return e.kind===267}function op(e){return e.kind===268}function $8(e){return e.kind===272}function M8(e){return e.kind===273}function j8(e){return e.kind===278}function J8(e){return e.kind===279}function xK(e){return e.kind===280}function TK(e){return e.kind===354}function R8(e){return e.kind===284}function K3(e){return e.kind===287}function EK(e){return e.kind===290}function U8(e){return e.kind===296}function bK(e){return e.kind===298}function CK(e){return e.kind===304}function AK(e){return e.kind===308}function vK(e){return e.kind===310}function SK(e){return e.kind===315}function _K(e){return e.kind===318}function q8(e){return e.kind===321}function FK(e){return e.kind===323}function K8(e){return e.kind===324}function kK(e){return e.kind===329}function wK(e){return e.kind===334}function PK(e){return e.kind===335}function NK(e){return e.kind===336}function IK(e){return e.kind===337}function BK(e){return e.kind===338}function LK(e){return e.kind===340}function OK(e){return e.kind===332}function z3(e){return e.kind===342}function $K(e){return e.kind===343}function ED(e){return e.kind===345}function MK(e){return e.kind===346}function jK(e){return e.kind===330}function JK(e){return e.kind===351}var _o=new WeakMap;function z8(e,t){var r;let n=e.kind;return oD(n)?n===353?e._children:(r=_o.get(t))==null?void 0:r.get(e):xr}function RK(e,t,r){e.kind===353&&re.fail("Should not need to re-set the children of a SyntaxList.");let n=_o.get(t);return n===void 0&&(n=new WeakMap,_o.set(t,n)),n.set(e,r),r}function W3(e,t){var r;e.kind===353&&re.fail("Did not expect to unset the children of a SyntaxList."),(r=_o.get(t))==null||r.delete(e)}function UK(e,t){let r=_o.get(e);r!==void 0&&(_o.delete(e),_o.set(t,r))}function V3(e){return(Ju(e)&32768)!==0}function qK(e){return Ru(e.expression)&&e.expression.text==="use strict"}function KK(e){for(let t of e)if(Of(t)){if(qK(t))return t}else break}function zK(e){return xD(e)&&Ko(e)&&!!vR(e)}function W8(e,t=63){switch(e.kind){case 218:return t&-2147483648&&zK(e)?!1:(t&1)!==0;case 217:case 235:return(t&2)!==0;case 239:return(t&34)!==0;case 234:return(t&16)!==0;case 236:return(t&4)!==0;case 356:return(t&8)!==0}return!1}function bD(e,t=63){for(;W8(e,t);)e=e.expression;return e}function WK(e){return setStartsOnNewLine(e,!0)}function Nc(e){if(KR(e))return e.name;if(JR(e)){switch(e.kind){case 304:return Nc(e.initializer);case 305:return e.name;case 306:return Nc(e.expression)}return}return em(e,!0)?Nc(e.left):pK(e)?Nc(e.expression):e}function VK(e){switch(e.kind){case 207:case 208:case 210:return e.elements;case 211:return e.properties}}function H3(e){if(e){let t=e;for(;;){if(zt(t)||!t.body)return zt(t)?t:t.name;t=t.body}}}var X3;(e=>{function t(p,d,y,m,D,T,S){let v=d>0?D[d-1]:void 0;return re.assertEqual(y[d],t),D[d]=p.onEnter(m[d],v,S),y[d]=l(p,t),d}e.enter=t;function r(p,d,y,m,D,T,S){re.assertEqual(y[d],r),re.assertIsDefined(p.onLeft),y[d]=l(p,r);let v=p.onLeft(m[d].left,D[d],m[d]);return v?(f(d,m,v),u(d,y,m,D,v)):d}e.left=r;function n(p,d,y,m,D,T,S){return re.assertEqual(y[d],n),re.assertIsDefined(p.onOperator),y[d]=l(p,n),p.onOperator(m[d].operatorToken,D[d],m[d]),d}e.operator=n;function s(p,d,y,m,D,T,S){re.assertEqual(y[d],s),re.assertIsDefined(p.onRight),y[d]=l(p,s);let v=p.onRight(m[d].right,D[d],m[d]);return v?(f(d,m,v),u(d,y,m,D,v)):d}e.right=s;function i(p,d,y,m,D,T,S){re.assertEqual(y[d],i),y[d]=l(p,i);let v=p.onExit(m[d],D[d]);if(d>0){if(d--,p.foldState){let E=y[d]===i?"right":"left";D[d]=p.foldState(D[d],v,E)}}else T.value=v;return d}e.exit=i;function o(p,d,y,m,D,T,S){return re.assertEqual(y[d],o),d}e.done=o;function l(p,d){switch(d){case t:if(p.onLeft)return r;case r:if(p.onOperator)return n;case n:if(p.onRight)return s;case s:return i;case i:return o;case o:return o;default:re.fail("Invalid state")}}e.nextState=l;function u(p,d,y,m,D){return p++,d[p]=t,y[p]=D,m[p]=void 0,p}function f(p,d,y){if(re.shouldAssert(2))for(;p>=0;)re.assert(d[p]!==y,"Circular traversal detected."),p--}})(X3||(X3={}));function G3(e,t){return typeof e=="object"?r2(!1,e.prefix,e.node,e.suffix,t):typeof e=="string"?e.length>0&&e.charCodeAt(0)===35?e.slice(1):e:""}function HK(e,t){return typeof e=="string"?e:XK(e,re.checkDefined(t))}function XK(e,t){return r8(e)?t(e).slice(1):Bu(e)?t(e):No(e)?e.escapedText.slice(1):jn(e)}function r2(e,t,r,n,s){return t=G3(t,s),n=G3(n,s),r=HK(r,s),`${e?"#":""}${t}${r}${n}`}function V8(e){if(e.transformFlags&65536)return!0;if(e.transformFlags&128)for(let t of VK(e)){let r=Nc(t);if(r&&qR(r)&&(r.transformFlags&65536||r.transformFlags&128&&V8(r)))return!0}return!1}function xn(e,t){return t?_a(e,t.pos,t.end):e}function CD(e){let t=e.kind;return t===169||t===170||t===172||t===173||t===174||t===175||t===177||t===178||t===179||t===182||t===186||t===219||t===220||t===232||t===244||t===263||t===264||t===265||t===266||t===267||t===268||t===272||t===273||t===278||t===279}function GK(e){let t=e.kind;return t===170||t===173||t===175||t===178||t===179||t===232||t===264}var Q3,Y3,Z3,eT,tT,QK={createBaseSourceFileNode:e=>new(tT||(tT=Dr.getSourceFileConstructor()))(e,-1,-1),createBaseIdentifierNode:e=>new(Z3||(Z3=Dr.getIdentifierConstructor()))(e,-1,-1),createBasePrivateIdentifierNode:e=>new(eT||(eT=Dr.getPrivateIdentifierConstructor()))(e,-1,-1),createBaseTokenNode:e=>new(Y3||(Y3=Dr.getTokenConstructor()))(e,-1,-1),createBaseNode:e=>new(Q3||(Q3=Dr.getNodeConstructor()))(e,-1,-1)};gD(1,QK);function M(e,t){return t&&e(t)}function Se(e,t,r){if(r){if(t)return t(r);for(let n of r){let s=e(n);if(s)return s}}}function YK(e,t){return e.charCodeAt(t+1)===42&&e.charCodeAt(t+2)===42&&e.charCodeAt(t+3)!==47}function ZK(e){return Qn(e.statements,ez)||tz(e)}function ez(e){return CD(e)&&rz(e,95)||$8(e)&&R8(e.moduleReference)||M8(e)||j8(e)||J8(e)?e:void 0}function tz(e){return e.flags&8388608?H8(e):void 0}function H8(e){return nz(e)?e:Zr(e,H8)}function rz(e,t){return Yr(e.modifiers,r=>r.kind===t)}function nz(e){return fK(e)&&e.keywordToken===102&&e.name.escapedText==="meta"}var sz={167:function(e,t,r){return M(t,e.left)||M(t,e.right)},169:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||M(t,e.constraint)||M(t,e.default)||M(t,e.expression)},305:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||M(t,e.questionToken)||M(t,e.exclamationToken)||M(t,e.equalsToken)||M(t,e.objectAssignmentInitializer)},306:function(e,t,r){return M(t,e.expression)},170:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.dotDotDotToken)||M(t,e.name)||M(t,e.questionToken)||M(t,e.type)||M(t,e.initializer)},173:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||M(t,e.questionToken)||M(t,e.exclamationToken)||M(t,e.type)||M(t,e.initializer)},172:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||M(t,e.questionToken)||M(t,e.type)||M(t,e.initializer)},304:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||M(t,e.questionToken)||M(t,e.exclamationToken)||M(t,e.initializer)},261:function(e,t,r){return M(t,e.name)||M(t,e.exclamationToken)||M(t,e.type)||M(t,e.initializer)},209:function(e,t,r){return M(t,e.dotDotDotToken)||M(t,e.propertyName)||M(t,e.name)||M(t,e.initializer)},182:function(e,t,r){return Se(t,r,e.modifiers)||Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)},186:function(e,t,r){return Se(t,r,e.modifiers)||Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)},185:function(e,t,r){return Se(t,r,e.modifiers)||Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)},180:rT,181:rT,175:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.asteriskToken)||M(t,e.name)||M(t,e.questionToken)||M(t,e.exclamationToken)||Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)||M(t,e.body)},174:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||M(t,e.questionToken)||Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)},177:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)||M(t,e.body)},178:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)||M(t,e.body)},179:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)||M(t,e.body)},263:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.asteriskToken)||M(t,e.name)||Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)||M(t,e.body)},219:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.asteriskToken)||M(t,e.name)||Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)||M(t,e.body)},220:function(e,t,r){return Se(t,r,e.modifiers)||Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)||M(t,e.equalsGreaterThanToken)||M(t,e.body)},176:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.body)},184:function(e,t,r){return M(t,e.typeName)||Se(t,r,e.typeArguments)},183:function(e,t,r){return M(t,e.assertsModifier)||M(t,e.parameterName)||M(t,e.type)},187:function(e,t,r){return M(t,e.exprName)||Se(t,r,e.typeArguments)},188:function(e,t,r){return Se(t,r,e.members)},189:function(e,t,r){return M(t,e.elementType)},190:function(e,t,r){return Se(t,r,e.elements)},193:nT,194:nT,195:function(e,t,r){return M(t,e.checkType)||M(t,e.extendsType)||M(t,e.trueType)||M(t,e.falseType)},196:function(e,t,r){return M(t,e.typeParameter)},206:function(e,t,r){return M(t,e.argument)||M(t,e.attributes)||M(t,e.qualifier)||Se(t,r,e.typeArguments)},303:function(e,t,r){return M(t,e.assertClause)},197:sT,199:sT,200:function(e,t,r){return M(t,e.objectType)||M(t,e.indexType)},201:function(e,t,r){return M(t,e.readonlyToken)||M(t,e.typeParameter)||M(t,e.nameType)||M(t,e.questionToken)||M(t,e.type)||Se(t,r,e.members)},202:function(e,t,r){return M(t,e.literal)},203:function(e,t,r){return M(t,e.dotDotDotToken)||M(t,e.name)||M(t,e.questionToken)||M(t,e.type)},207:iT,208:iT,210:function(e,t,r){return Se(t,r,e.elements)},211:function(e,t,r){return Se(t,r,e.properties)},212:function(e,t,r){return M(t,e.expression)||M(t,e.questionDotToken)||M(t,e.name)},213:function(e,t,r){return M(t,e.expression)||M(t,e.questionDotToken)||M(t,e.argumentExpression)},214:aT,215:aT,216:function(e,t,r){return M(t,e.tag)||M(t,e.questionDotToken)||Se(t,r,e.typeArguments)||M(t,e.template)},217:function(e,t,r){return M(t,e.type)||M(t,e.expression)},218:function(e,t,r){return M(t,e.expression)},221:function(e,t,r){return M(t,e.expression)},222:function(e,t,r){return M(t,e.expression)},223:function(e,t,r){return M(t,e.expression)},225:function(e,t,r){return M(t,e.operand)},230:function(e,t,r){return M(t,e.asteriskToken)||M(t,e.expression)},224:function(e,t,r){return M(t,e.expression)},226:function(e,t,r){return M(t,e.operand)},227:function(e,t,r){return M(t,e.left)||M(t,e.operatorToken)||M(t,e.right)},235:function(e,t,r){return M(t,e.expression)||M(t,e.type)},236:function(e,t,r){return M(t,e.expression)},239:function(e,t,r){return M(t,e.expression)||M(t,e.type)},237:function(e,t,r){return M(t,e.name)},228:function(e,t,r){return M(t,e.condition)||M(t,e.questionToken)||M(t,e.whenTrue)||M(t,e.colonToken)||M(t,e.whenFalse)},231:function(e,t,r){return M(t,e.expression)},242:oT,269:oT,308:function(e,t,r){return Se(t,r,e.statements)||M(t,e.endOfFileToken)},244:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.declarationList)},262:function(e,t,r){return Se(t,r,e.declarations)},245:function(e,t,r){return M(t,e.expression)},246:function(e,t,r){return M(t,e.expression)||M(t,e.thenStatement)||M(t,e.elseStatement)},247:function(e,t,r){return M(t,e.statement)||M(t,e.expression)},248:function(e,t,r){return M(t,e.expression)||M(t,e.statement)},249:function(e,t,r){return M(t,e.initializer)||M(t,e.condition)||M(t,e.incrementor)||M(t,e.statement)},250:function(e,t,r){return M(t,e.initializer)||M(t,e.expression)||M(t,e.statement)},251:function(e,t,r){return M(t,e.awaitModifier)||M(t,e.initializer)||M(t,e.expression)||M(t,e.statement)},252:uT,253:uT,254:function(e,t,r){return M(t,e.expression)},255:function(e,t,r){return M(t,e.expression)||M(t,e.statement)},256:function(e,t,r){return M(t,e.expression)||M(t,e.caseBlock)},270:function(e,t,r){return Se(t,r,e.clauses)},297:function(e,t,r){return M(t,e.expression)||Se(t,r,e.statements)},298:function(e,t,r){return Se(t,r,e.statements)},257:function(e,t,r){return M(t,e.label)||M(t,e.statement)},258:function(e,t,r){return M(t,e.expression)},259:function(e,t,r){return M(t,e.tryBlock)||M(t,e.catchClause)||M(t,e.finallyBlock)},300:function(e,t,r){return M(t,e.variableDeclaration)||M(t,e.block)},171:function(e,t,r){return M(t,e.expression)},264:lT,232:lT,265:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||Se(t,r,e.typeParameters)||Se(t,r,e.heritageClauses)||Se(t,r,e.members)},266:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||Se(t,r,e.typeParameters)||M(t,e.type)},267:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||Se(t,r,e.members)},307:function(e,t,r){return M(t,e.name)||M(t,e.initializer)},268:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||M(t,e.body)},272:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||M(t,e.moduleReference)},273:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.importClause)||M(t,e.moduleSpecifier)||M(t,e.attributes)},274:function(e,t,r){return M(t,e.name)||M(t,e.namedBindings)},301:function(e,t,r){return Se(t,r,e.elements)},302:function(e,t,r){return M(t,e.name)||M(t,e.value)},271:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)},275:function(e,t,r){return M(t,e.name)},281:function(e,t,r){return M(t,e.name)},276:cT,280:cT,279:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.exportClause)||M(t,e.moduleSpecifier)||M(t,e.attributes)},277:pT,282:pT,278:function(e,t,r){return Se(t,r,e.modifiers)||M(t,e.expression)},229:function(e,t,r){return M(t,e.head)||Se(t,r,e.templateSpans)},240:function(e,t,r){return M(t,e.expression)||M(t,e.literal)},204:function(e,t,r){return M(t,e.head)||Se(t,r,e.templateSpans)},205:function(e,t,r){return M(t,e.type)||M(t,e.literal)},168:function(e,t,r){return M(t,e.expression)},299:function(e,t,r){return Se(t,r,e.types)},234:function(e,t,r){return M(t,e.expression)||Se(t,r,e.typeArguments)},284:function(e,t,r){return M(t,e.expression)},283:function(e,t,r){return Se(t,r,e.modifiers)},357:function(e,t,r){return Se(t,r,e.elements)},285:function(e,t,r){return M(t,e.openingElement)||Se(t,r,e.children)||M(t,e.closingElement)},289:function(e,t,r){return M(t,e.openingFragment)||Se(t,r,e.children)||M(t,e.closingFragment)},286:dT,287:dT,293:function(e,t,r){return Se(t,r,e.properties)},292:function(e,t,r){return M(t,e.name)||M(t,e.initializer)},294:function(e,t,r){return M(t,e.expression)},295:function(e,t,r){return M(t,e.dotDotDotToken)||M(t,e.expression)},288:function(e,t,r){return M(t,e.tagName)},296:function(e,t,r){return M(t,e.namespace)||M(t,e.name)},191:po,192:po,310:po,316:po,315:po,317:po,319:po,318:function(e,t,r){return Se(t,r,e.parameters)||M(t,e.type)},321:function(e,t,r){return(typeof e.comment=="string"?void 0:Se(t,r,e.comment))||Se(t,r,e.tags)},348:function(e,t,r){return M(t,e.tagName)||M(t,e.name)||(typeof e.comment=="string"?void 0:Se(t,r,e.comment))},311:function(e,t,r){return M(t,e.name)},312:function(e,t,r){return M(t,e.left)||M(t,e.right)},342:hT,349:hT,331:function(e,t,r){return M(t,e.tagName)||(typeof e.comment=="string"?void 0:Se(t,r,e.comment))},330:function(e,t,r){return M(t,e.tagName)||M(t,e.class)||(typeof e.comment=="string"?void 0:Se(t,r,e.comment))},329:function(e,t,r){return M(t,e.tagName)||M(t,e.class)||(typeof e.comment=="string"?void 0:Se(t,r,e.comment))},346:function(e,t,r){return M(t,e.tagName)||M(t,e.constraint)||Se(t,r,e.typeParameters)||(typeof e.comment=="string"?void 0:Se(t,r,e.comment))},347:function(e,t,r){return M(t,e.tagName)||(e.typeExpression&&e.typeExpression.kind===310?M(t,e.typeExpression)||M(t,e.fullName)||(typeof e.comment=="string"?void 0:Se(t,r,e.comment)):M(t,e.fullName)||M(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Se(t,r,e.comment)))},339:function(e,t,r){return M(t,e.tagName)||M(t,e.fullName)||M(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Se(t,r,e.comment))},343:ho,345:ho,344:ho,341:ho,351:ho,350:ho,340:ho,324:function(e,t,r){return Qn(e.typeParameters,t)||Qn(e.parameters,t)||M(t,e.type)},325:n0,326:n0,327:n0,323:function(e,t,r){return Qn(e.jsDocPropertyTags,t)},328:fa,333:fa,334:fa,335:fa,336:fa,337:fa,332:fa,338:fa,352:iz,356:az};function rT(e,t,r){return Se(t,r,e.typeParameters)||Se(t,r,e.parameters)||M(t,e.type)}function nT(e,t,r){return Se(t,r,e.types)}function sT(e,t,r){return M(t,e.type)}function iT(e,t,r){return Se(t,r,e.elements)}function aT(e,t,r){return M(t,e.expression)||M(t,e.questionDotToken)||Se(t,r,e.typeArguments)||Se(t,r,e.arguments)}function oT(e,t,r){return Se(t,r,e.statements)}function uT(e,t,r){return M(t,e.label)}function lT(e,t,r){return Se(t,r,e.modifiers)||M(t,e.name)||Se(t,r,e.typeParameters)||Se(t,r,e.heritageClauses)||Se(t,r,e.members)}function cT(e,t,r){return Se(t,r,e.elements)}function pT(e,t,r){return M(t,e.propertyName)||M(t,e.name)}function dT(e,t,r){return M(t,e.tagName)||Se(t,r,e.typeArguments)||M(t,e.attributes)}function po(e,t,r){return M(t,e.type)}function hT(e,t,r){return M(t,e.tagName)||(e.isNameFirst?M(t,e.name)||M(t,e.typeExpression):M(t,e.typeExpression)||M(t,e.name))||(typeof e.comment=="string"?void 0:Se(t,r,e.comment))}function ho(e,t,r){return M(t,e.tagName)||M(t,e.typeExpression)||(typeof e.comment=="string"?void 0:Se(t,r,e.comment))}function n0(e,t,r){return M(t,e.name)}function fa(e,t,r){return M(t,e.tagName)||(typeof e.comment=="string"?void 0:Se(t,r,e.comment))}function iz(e,t,r){return M(t,e.tagName)||M(t,e.importClause)||M(t,e.moduleSpecifier)||M(t,e.attributes)||(typeof e.comment=="string"?void 0:Se(t,r,e.comment))}function az(e,t,r){return M(t,e.expression)}function Zr(e,t,r){if(e===void 0||e.kind<=166)return;let n=sz[e.kind];return n===void 0?void 0:n(e,t,r)}function fT(e,t,r){let n=mT(e),s=[];for(;s.length<n.length;)s.push(e);for(;n.length!==0;){let i=n.pop(),o=s.pop();if(Ri(i))for(let l=i.length-1;l>=0;--l)n.push(i[l]),s.push(o);else{let l=t(i,o);if(l){if(l==="skip")continue;return l}if(i.kind>=167)for(let u of mT(i))n.push(u),s.push(i)}}}function mT(e){let t=[];return Zr(e,r,r),t;function r(n){t.unshift(n)}}function X8(e){e.externalModuleIndicator=ZK(e)}function oz(e,t,r,n=!1,s){var i,o;(i=Bf)==null||i.push(Bf.Phase.Parse,"createSourceFile",{path:e},!0);let l,{languageVersion:u,setExternalModuleIndicator:f,impliedNodeFormat:p,jsDocParsingMode:d}=typeof r=="object"?r:{languageVersion:r};if(u===100)l=Fo.parseSourceFile(e,t,u,void 0,n,6,Hf,d);else{let y=p===void 0?f:m=>(m.impliedNodeFormat=p,(f||X8)(m));l=Fo.parseSourceFile(e,t,u,void 0,n,s,y,d)}return(o=Bf)==null||o.pop(),l}function uz(e){return e.externalModuleIndicator!==void 0}function lz(e,t,r,n=!1){let s=im.updateSourceFile(e,t,r,n);return s.flags|=e.flags&12582912,s}var Fo;(e=>{var t=nD(99,!0),r=40960,n,s,i,o,l;function u(g){return xt++,g}var f={createBaseSourceFileNode:g=>u(new l(g,0,0)),createBaseIdentifierNode:g=>u(new i(g,0,0)),createBasePrivateIdentifierNode:g=>u(new o(g,0,0)),createBaseTokenNode:g=>u(new s(g,0,0)),createBaseNode:g=>u(new n(g,0,0))},p=gD(11,f),{createNodeArray:d,createNumericLiteral:y,createStringLiteral:m,createLiteralLikeNode:D,createIdentifier:T,createPrivateIdentifier:S,createToken:v,createArrayLiteralExpression:E,createObjectLiteralExpression:C,createPropertyAccessExpression:P,createPropertyAccessChain:k,createElementAccessExpression:w,createElementAccessChain:B,createCallExpression:I,createCallChain:oe,createNewExpression:ee,createParenthesizedExpression:me,createBlock:Ge,createVariableStatement:Q,createExpressionStatement:we,createIfStatement:ge,createWhileStatement:Pe,createForStatement:Et,createForOfStatement:et,createVariableDeclaration:rr,createVariableDeclarationList:Dt}=p,Gt,Jt,pt,Ot,ir,Rt,ve,ce,fe,Ke,xt,at,hr,Ut,Er,It,Ar=!0,br=!1;function Nr(g,b,F,N,L=!1,W,he,ke=0){var Te;if(W=lq(g,W),W===6){let Ne=pn(g,b,F,N,L);return convertToJson(Ne,(Te=Ne.statements[0])==null?void 0:Te.expression,Ne.parseDiagnostics,!1,void 0),Ne.referencedFiles=xr,Ne.typeReferenceDirectives=xr,Ne.libReferenceDirectives=xr,Ne.amdDependencies=xr,Ne.hasNoDefaultLib=!1,Ne.pragmas=Vj,Ne}Vr(g,b,F,N,W,ke);let De=hi(F,L,W,he||X8,ke);return Hr(),De}e.parseSourceFile=Nr;function nn(g,b){Vr("",g,b,void 0,1,0),se();let F=xi(!0),N=A()===1&&!ve.length;return Hr(),N?F:void 0}e.parseIsolatedEntityName=nn;function pn(g,b,F=2,N,L=!1){Vr(g,b,F,N,6,0),Jt=It,se();let W=X(),he,ke;if(A()===1)he=Cr([],W,W),ke=Jr();else{let Ne;for(;A()!==1;){let tt;switch(A()){case 23:tt=sh();break;case 112:case 97:case 106:tt=Jr();break;case 41:le(()=>se()===9&&se()!==59)?tt=Ud():tt=ql();break;case 9:case 11:if(le(()=>se()!==59)){tt=os();break}default:tt=ql();break}Ne&&Ri(Ne)?Ne.push(tt):Ne?Ne=[Ne,tt]:(Ne=tt,A()!==1&&Ze(U.Unexpected_token))}let ht=Ri(Ne)?z(E(Ne),W):re.checkDefined(Ne),ct=we(ht);z(ct,W),he=Cr([ct],W),ke=as(1,U.Unexpected_token)}let Te=Fe(g,2,6,!1,he,ke,Jt,Hf);L&&G(Te),Te.nodeCount=xt,Te.identifierCount=hr,Te.identifiers=at,Te.parseDiagnostics=co(ve,Te),ce&&(Te.jsDocDiagnostics=co(ce,Te));let De=Te;return Hr(),De}e.parseJsonText=pn;function Vr(g,b,F,N,L,W){switch(n=Dr.getNodeConstructor(),s=Dr.getTokenConstructor(),i=Dr.getIdentifierConstructor(),o=Dr.getPrivateIdentifierConstructor(),l=Dr.getSourceFileConstructor(),Gt=PJ(g),pt=b,Ot=F,fe=N,ir=L,Rt=M3(L),ve=[],Ut=0,at=new Map,hr=0,xt=0,Jt=0,Ar=!0,ir){case 1:case 2:It=524288;break;case 6:It=134742016;break;default:It=0;break}br=!1,t.setText(pt),t.setOnError($s),t.setScriptTarget(Ot),t.setLanguageVariant(Rt),t.setScriptKind(ir),t.setJSDocParsingMode(W)}function Hr(){t.clearCommentDirectives(),t.setText(""),t.setOnError(void 0),t.setScriptKind(0),t.setJSDocParsingMode(0),pt=void 0,Ot=void 0,fe=void 0,ir=void 0,Rt=void 0,Jt=0,ve=void 0,ce=void 0,Ut=0,at=void 0,Er=void 0,Ar=!0}function hi(g,b,F,N,L){let W=dz(Gt);W&&(It|=33554432),Jt=It,se();let he=An(0,Ur);re.assert(A()===1);let ke=H(),Te=rt(Jr(),ke),De=Fe(Gt,g,F,W,he,Te,Jt,N);return mz(De,pt),yz(De,Ne),De.commentDirectives=t.getCommentDirectives(),De.nodeCount=xt,De.identifierCount=hr,De.identifiers=at,De.parseDiagnostics=co(ve,De),De.jsDocParsingMode=L,ce&&(De.jsDocDiagnostics=co(ce,De)),b&&G(De),De;function Ne(ht,ct,tt){ve.push(Du(Gt,pt,ht,ct,tt))}}let ns=!1;function rt(g,b){if(!b)return g;re.assert(!g.jsDoc);let F=Qj(uU(g,pt),N=>Qh.parseJSDocComment(g,N.pos,N.end-N.pos));return F.length&&(g.jsDoc=F),ns&&(ns=!1,g.flags|=536870912),g}function Os(g){let b=fe,F=im.createSyntaxCursor(g);fe={currentNode:Ne};let N=[],L=ve;ve=[];let W=0,he=Te(g.statements,0);for(;he!==-1;){let ht=g.statements[W],ct=g.statements[he];Ln(N,g.statements,W,he),W=De(g.statements,he);let tt=Vy(L,Fr=>Fr.start>=ht.pos),an=tt>=0?Vy(L,Fr=>Fr.start>=ct.pos,tt):-1;tt>=0&&Ln(ve,L,tt,an>=0?an:void 0),hn(()=>{let Fr=It;for(It|=65536,t.resetTokenState(ct.pos),se();A()!==1;){let Cs=t.getTokenFullStart(),As=hl(0,Ur);if(N.push(As),Cs===t.getTokenFullStart()&&se(),W>=0){let zn=g.statements[W];if(As.end===zn.pos)break;As.end>zn.pos&&(W=De(g.statements,W+1))}}It=Fr},2),he=W>=0?Te(g.statements,W):-1}if(W>=0){let ht=g.statements[W];Ln(N,g.statements,W);let ct=Vy(L,tt=>tt.start>=ht.pos);ct>=0&&Ln(ve,L,ct)}return fe=b,p.updateSourceFile(g,xn(d(N),g.statements));function ke(ht){return!(ht.flags&65536)&&!!(ht.transformFlags&67108864)}function Te(ht,ct){for(let tt=ct;tt<ht.length;tt++)if(ke(ht[tt]))return tt;return-1}function De(ht,ct){for(let tt=ct;tt<ht.length;tt++)if(!ke(ht[tt]))return tt;return-1}function Ne(ht){let ct=F.currentNode(ht);return Ar&&ct&&ke(ct)&&n2(ct),ct}}function G(g){yq(g)}e.fixupParentReferences=G;function Fe(g,b,F,N,L,W,he,ke){let Te=p.createSourceFile(L,W,he);if(j3(Te,0,pt.length),De(Te),!N&&uz(Te)&&Te.transformFlags&67108864){let Ne=Te;Te=Os(Te),Ne!==Te&&De(Te)}return Te;function De(Ne){Ne.text=pt,Ne.bindDiagnostics=[],Ne.bindSuggestionDiagnostics=void 0,Ne.languageVersion=b,Ne.fileName=g,Ne.languageVariant=M3(F),Ne.isDeclarationFile=N,Ne.scriptKind=F,ke(Ne),Ne.setExternalModuleIndicator=ke}}function Oe(g,b){g?It|=b:It&=~b}function Ve(g){Oe(g,8192)}function Ft(g){Oe(g,16384)}function $t(g){Oe(g,32768)}function Qt(g){Oe(g,65536)}function vr(g,b){let F=g&It;if(F){Oe(!1,F);let N=b();return Oe(!0,F),N}return b()}function fr(g,b){let F=g&~It;if(F){Oe(!0,F);let N=b();return Oe(!1,F),N}return b()}function Yt(g){return vr(8192,g)}function Qi(g){return fr(8192,g)}function Cn(g){return vr(131072,g)}function fi(g){return fr(131072,g)}function ss(g){return fr(16384,g)}function ja(g){return fr(32768,g)}function te(g){return fr(65536,g)}function ye(g){return vr(65536,g)}function xe(g){return fr(81920,g)}function He(g){return vr(81920,g)}function Xe(g){return(It&g)!==0}function Qe(){return Xe(16384)}function Je(){return Xe(8192)}function bt(){return Xe(131072)}function Mt(){return Xe(32768)}function At(){return Xe(65536)}function Ze(g,...b){return Ht(t.getTokenStart(),t.getTokenEnd(),g,...b)}function Un(g,b,F,...N){let L=$u(ve),W;return(!L||g!==L.start)&&(W=Du(Gt,pt,g,b,F,...N),ve.push(W)),br=!0,W}function Ht(g,b,F,...N){return Un(g,b-g,F,...N)}function dn(g,b,...F){Ht(g.pos,g.end,b,...F)}function $s(g,b,F){Un(t.getTokenEnd(),b,g,F)}function X(){return t.getTokenFullStart()}function H(){return t.hasPrecedingJSDocComment()}function A(){return Ke}function dt(){return Ke=t.scan()}function kt(g){return se(),g()}function se(){return xa(Ke)&&(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ht(t.getTokenStart(),t.getTokenEnd(),U.Keywords_cannot_contain_escape_characters),dt()}function jt(){return Ke=t.scanJsDocToken()}function Ct(g){return Ke=t.scanJSDocCommentTextToken(g)}function vt(){return Ke=t.reScanGreaterToken()}function Sr(){return Ke=t.reScanSlashToken()}function ar(g){return Ke=t.reScanTemplateToken(g)}function _r(){return Ke=t.reScanLessThanToken()}function Xr(){return Ke=t.reScanHashToken()}function Ms(){return Ke=t.scanJsxIdentifier()}function is(){return Ke=t.scanJsxToken()}function Ja(){return Ke=t.scanJsxAttributeValue()}function hn(g,b){let F=Ke,N=ve.length,L=br,W=It,he=b!==0?t.lookAhead(g):t.tryScan(g);return re.assert(W===It),(!he||b!==0)&&(Ke=F,b!==2&&(ve.length=N),br=L),he}function le(g){return hn(g,1)}function Ie(g){return hn(g,0)}function yt(){return A()===80?!0:A()>118}function qe(){return A()===80?!0:A()===127&&Qe()||A()===135&&At()?!1:A()>118}function Y(g,b,F=!0){return A()===g?(F&&se(),!0):(b?Ze(b):Ze(U._0_expected,er(g)),!1)}let sr=Object.keys(eD).filter(g=>g.length>2);function mr(g){if(uK(g)){Ht(Gs(pt,g.template.pos),g.template.end,U.Module_declaration_names_may_only_use_or_quoted_strings);return}let b=zt(g)?jn(g):void 0;if(!b||!eR(b,Ot)){Ze(U._0_expected,er(27));return}let F=Gs(pt,g.pos);switch(b){case"const":case"let":case"var":Ht(F,g.end,U.Variable_declaration_not_allowed_at_this_location);return;case"declare":return;case"interface":Ir(U.Interface_name_cannot_be_0,U.Interface_must_be_given_a_name,19);return;case"is":Ht(F,t.getTokenStart(),U.A_type_predicate_is_only_allowed_in_return_type_position_for_functions_and_methods);return;case"module":case"namespace":Ir(U.Namespace_name_cannot_be_0,U.Namespace_must_be_given_a_name,19);return;case"type":Ir(U.Type_alias_name_cannot_be_0,U.Type_alias_must_be_given_a_name,64);return}let N=Fc(b,sr,ur)??fn(b);if(N){Ht(F,g.end,U.Unknown_keyword_or_identifier_Did_you_mean_0,N);return}A()!==0&&Ht(F,g.end,U.Unexpected_keyword_or_identifier)}function Ir(g,b,F){A()===F?Ze(b):Ze(g,t.getTokenValue())}function fn(g){for(let b of sr)if(g.length>b.length+2&&Xf(g,b))return`${b} ${g.slice(b.length)}`}function $m(g,b,F){if(A()===60&&!t.hasPrecedingLineBreak()){Ze(U.Decorators_must_precede_the_name_and_all_keywords_of_property_declarations);return}if(A()===21){Ze(U.Cannot_start_a_function_call_in_a_type_annotation),se();return}if(b&&!xs()){F?Ze(U._0_expected,er(27)):Ze(U.Expected_for_property_initializer);return}if(!zo()){if(F){Ze(U._0_expected,er(27));return}mr(g)}}function Sp(g){return A()===g?(jt(),!0):(re.assert(Qy(g)),Ze(U._0_expected,er(g)),!1)}function mi(g,b,F,N){if(A()===b){se();return}let L=Ze(U._0_expected,er(b));F&&L&&Df(L,Du(Gt,pt,N,1,U.The_parser_expected_to_find_a_1_to_match_the_0_token_here,er(g),er(b)))}function lt(g){return A()===g?(se(),!0):!1}function nr(g){if(A()===g)return Jr()}function Mm(g){if(A()===g)return Jm()}function as(g,b,F){return nr(g)||Rr(g,!1,b||U._0_expected,F||er(g))}function jm(g){return Mm(g)||(re.assert(Qy(g)),Rr(g,!1,U._0_expected,er(g)))}function Jr(){let g=X(),b=A();return se(),z(v(b),g)}function Jm(){let g=X(),b=A();return jt(),z(v(b),g)}function xs(){return A()===27?!0:A()===20||A()===1||t.hasPrecedingLineBreak()}function zo(){return xs()?(A()===27&&se(),!0):!1}function Gr(){return zo()||Y(27)}function Cr(g,b,F,N){let L=d(g,N);return _a(L,b,F??t.getTokenFullStart()),L}function z(g,b,F){return _a(g,b,F??t.getTokenFullStart()),It&&(g.flags|=It),br&&(br=!1,g.flags|=262144),g}function Rr(g,b,F,...N){b?Un(t.getTokenFullStart(),0,F,...N):F&&Ze(F,...N);let L=X(),W=g===80?T("",void 0):w3(g)?p.createTemplateLiteralLikeNode(g,"","",void 0):g===9?y("",void 0):g===11?m("",void 0):g===283?p.createMissingDeclaration():v(g);return z(W,L)}function yi(g){let b=at.get(g);return b===void 0&&at.set(g,b=g),b}function Ts(g,b,F){if(g){hr++;let ke=t.hasPrecedingJSDocLeadingAsterisks()?t.getTokenStart():X(),Te=A(),De=yi(t.getTokenValue()),Ne=t.hasExtendedUnicodeEscape();return dt(),z(T(De,Te,Ne),ke)}if(A()===81)return Ze(F||U.Private_identifiers_are_not_allowed_outside_class_bodies),Ts(!0);if(A()===0&&t.tryScan(()=>t.reScanInvalidIdentifier()===80))return Ts(!0);hr++;let N=A()===1,L=t.isReservedWord(),W=t.getTokenText(),he=L?U.Identifier_expected_0_is_a_reserved_word_that_cannot_be_used_here:U.Identifier_expected;return Rr(80,N,b||he,W)}function ll(g){return Ts(yt(),void 0,g)}function or(g,b){return Ts(qe(),g,b)}function Br(g){return Ts(yr(A()),g)}function Yi(){return(t.hasUnicodeEscape()||t.hasExtendedUnicodeEscape())&&Ze(U.Unicode_escape_sequence_cannot_appear_here),Ts(yr(A()))}function js(){return yr(A())||A()===11||A()===9||A()===10}function _p(){return yr(A())||A()===11}function Rm(g){if(A()===11||A()===9||A()===10){let b=os();return b.text=yi(b.text),b}return A()===23?Um():A()===81?Wo():Br()}function gi(){return Rm()}function Um(){let g=X();Y(23);let b=Yt(gr);return Y(24),z(p.createComputedPropertyName(b),g)}function Wo(){let g=X(),b=S(yi(t.getTokenValue()));return se(),z(b,g)}function Zi(g){return A()===g&&Ie(Fp)}function cl(){return se(),t.hasPrecedingLineBreak()?!1:Es()}function Fp(){switch(A()){case 87:return se()===94;case 95:return se(),A()===90?le(Ua):A()===156?le(qm):Ra();case 90:return Ua();case 126:return se(),Es();case 139:case 153:return se(),Km();default:return cl()}}function Ra(){return A()===60||A()!==42&&A()!==130&&A()!==19&&Es()}function qm(){return se(),Ra()}function kp(){return Fi(A())&&Ie(Fp)}function Es(){return A()===23||A()===19||A()===42||A()===26||js()}function Km(){return A()===23||js()}function Ua(){return se(),A()===86||A()===100||A()===120||A()===60||A()===128&&le(gh)||A()===134&&le(Dh)}function Vo(g,b){if(Xo(g))return!0;switch(g){case 0:case 1:case 3:return!(A()===27&&b)&&xh();case 2:return A()===84||A()===90;case 4:return le(id);case 5:return le(Ih)||A()===27&&!b;case 6:return A()===23||js();case 12:switch(A()){case 23:case 42:case 26:case 25:return!0;default:return js()}case 18:return js();case 9:return A()===23||A()===26||js();case 24:return _p();case 7:return A()===19?le(wp):b?qe()&&!pl():Il()&&!pl();case 8:return Xl();case 10:return A()===28||A()===26||Xl();case 19:return A()===103||A()===87||qe();case 15:switch(A()){case 28:case 25:return!0}case 11:return A()===26||Rs();case 16:return Zo(!1);case 17:return Zo(!0);case 20:case 21:return A()===28||na();case 22:return tc();case 23:return A()===161&&le(vh)?!1:A()===11?!0:yr(A());case 13:return yr(A())||A()===19;case 14:return!0;case 25:return!0;case 26:return re.fail("ParsingContext.Count used as a context");default:re.assertNever(g,"Non-exhaustive case in 'isListElement'.")}}function wp(){if(re.assert(A()===19),se()===20){let g=se();return g===28||g===19||g===96||g===119}return!0}function qa(){return se(),qe()}function zm(){return se(),yr(A())}function Pp(){return se(),IJ(A())}function pl(){return A()===119||A()===96?le(Np):!1}function Np(){return se(),Rs()}function Ka(){return se(),na()}function Ho(g){if(A()===1)return!0;switch(g){case 1:case 2:case 4:case 5:case 6:case 12:case 9:case 23:case 24:return A()===20;case 3:return A()===20||A()===84||A()===90;case 7:return A()===19||A()===96||A()===119;case 8:return dl();case 19:return A()===32||A()===21||A()===19||A()===96||A()===119;case 11:return A()===22||A()===27;case 15:case 21:case 10:return A()===24;case 17:case 16:case 18:return A()===22||A()===24;case 20:return A()!==28;case 22:return A()===19||A()===20;case 13:return A()===32||A()===44;case 14:return A()===30&&le(ty);default:return!1}}function dl(){return!!(xs()||Md(A())||A()===39)}function Ip(){re.assert(Ut,"Missing parsing context");for(let g=0;g<26;g++)if(Ut&1<<g&&(Vo(g,!0)||Ho(g)))return!0;return!1}function An(g,b){let F=Ut;Ut|=1<<g;let N=[],L=X();for(;!Ho(g);){if(Vo(g,!1)){N.push(hl(g,b));continue}if(Rp(g))break}return Ut=F,Cr(N,L)}function hl(g,b){let F=Xo(g);return F?Bp(F):b()}function Xo(g,b){var F;if(!fe||!Lp(g)||br)return;let N=fe.currentNode(b??t.getTokenFullStart());if(!(So(N)||pz(N)||c8(N)||(N.flags&101441536)!==It)&&Op(N,g))return dD(N)&&(F=N.jsDoc)!=null&&F.jsDocCache&&(N.jsDoc.jsDocCache=void 0),N}function Bp(g){return t.resetTokenState(g.end),se(),g}function Lp(g){switch(g){case 5:case 2:case 0:case 1:case 3:case 6:case 4:case 8:case 17:case 16:return!0}return!1}function Op(g,b){switch(b){case 5:return fl(g);case 2:return $p(g);case 0:case 1:case 3:return ml(g);case 6:return Mp(g);case 4:return yl(g);case 8:return jp(g);case 17:case 16:return Jp(g)}return!1}function fl(g){if(g)switch(g.kind){case 177:case 182:case 178:case 179:case 173:case 241:return!0;case 175:let b=g;return!(b.name.kind===80&&b.name.escapedText==="constructor")}return!1}function $p(g){if(g)switch(g.kind){case 297:case 298:return!0}return!1}function ml(g){if(g)switch(g.kind){case 263:case 244:case 242:case 246:case 245:case 258:case 254:case 256:case 253:case 252:case 250:case 251:case 249:case 248:case 255:case 243:case 259:case 257:case 247:case 260:case 273:case 272:case 279:case 278:case 268:case 264:case 265:case 267:case 266:return!0}return!1}function Mp(g){return g.kind===307}function yl(g){if(g)switch(g.kind){case 181:case 174:case 182:case 172:case 180:return!0}return!1}function jp(g){return g.kind!==261?!1:g.initializer===void 0}function Jp(g){return g.kind!==170?!1:g.initializer===void 0}function Rp(g){return Go(g),Ip()?!0:(se(),!1)}function Go(g){switch(g){case 0:return A()===90?Ze(U._0_expected,er(95)):Ze(U.Declaration_or_statement_expected);case 1:return Ze(U.Declaration_or_statement_expected);case 2:return Ze(U.case_or_default_expected);case 3:return Ze(U.Statement_expected);case 18:case 4:return Ze(U.Property_or_signature_expected);case 5:return Ze(U.Unexpected_token_A_constructor_method_accessor_or_property_was_expected);case 6:return Ze(U.Enum_member_expected);case 7:return Ze(U.Expression_expected);case 8:return xa(A())?Ze(U._0_is_not_allowed_as_a_variable_declaration_name,er(A())):Ze(U.Variable_declaration_expected);case 9:return Ze(U.Property_destructuring_pattern_expected);case 10:return Ze(U.Array_element_destructuring_pattern_expected);case 11:return Ze(U.Argument_expression_expected);case 12:return Ze(U.Property_assignment_expected);case 15:return Ze(U.Expression_or_comma_expected);case 17:return Ze(U.Parameter_declaration_expected);case 16:return xa(A())?Ze(U._0_is_not_allowed_as_a_parameter_name,er(A())):Ze(U.Parameter_declaration_expected);case 19:return Ze(U.Type_parameter_declaration_expected);case 20:return Ze(U.Type_argument_expected);case 21:return Ze(U.Type_expected);case 22:return Ze(U.Unexpected_token_expected);case 23:return A()===161?Ze(U._0_expected,"}"):Ze(U.Identifier_expected);case 13:return Ze(U.Identifier_expected);case 14:return Ze(U.Identifier_expected);case 24:return Ze(U.Identifier_or_string_literal_expected);case 25:return Ze(U.Identifier_expected);case 26:return re.fail("ParsingContext.Count used as a context");default:re.assertNever(g)}}function mn(g,b,F){let N=Ut;Ut|=1<<g;let L=[],W=X(),he=-1;for(;;){if(Vo(g,!1)){let ke=t.getTokenFullStart(),Te=hl(g,b);if(!Te){Ut=N;return}if(L.push(Te),he=t.getTokenStart(),lt(28))continue;if(he=-1,Ho(g))break;Y(28,gl(g)),F&&A()===27&&!t.hasPrecedingLineBreak()&&se(),ke===t.getTokenFullStart()&&se();continue}if(Ho(g)||Rp(g))break}return Ut=N,Cr(L,W,void 0,he>=0)}function gl(g){return g===6?U.An_enum_member_name_must_be_followed_by_a_or:void 0}function bs(){let g=Cr([],X());return g.isMissingList=!0,g}function Up(g){return!!g.isMissingList}function Di(g,b,F,N){if(Y(F)){let L=mn(g,b);return Y(N),L}return bs()}function xi(g,b){let F=X(),N=g?Br(b):or(b);for(;lt(25)&&A()!==30;)N=z(p.createQualifiedName(N,ea(g,!1,!0)),F);return N}function Wm(g,b){return z(p.createQualifiedName(g,b),g.pos)}function ea(g,b,F){if(t.hasPrecedingLineBreak()&&yr(A())&&le(zl))return Rr(80,!0,U.Identifier_expected);if(A()===81){let N=Wo();return b?N:Rr(80,!0,U.Identifier_expected)}return g?F?Br():Yi():or()}function Vm(g){let b=X(),F=[],N;do N=Wp(g),F.push(N);while(N.literal.kind===17);return Cr(F,b)}function Qo(g){let b=X();return z(p.createTemplateExpression(za(g),Vm(g)),b)}function qp(){let g=X();return z(p.createTemplateLiteralType(za(!1),Hm()),g)}function Hm(){let g=X(),b=[],F;do F=Kp(),b.push(F);while(F.literal.kind===17);return Cr(b,g)}function Kp(){let g=X();return z(p.createTemplateLiteralTypeSpan(Zt(),zp(!1)),g)}function zp(g){return A()===20?(ar(g),Vp()):as(18,U._0_expected,er(20))}function Wp(g){let b=X();return z(p.createTemplateSpan(Yt(gr),zp(g)),b)}function os(){return ta(A())}function za(g){!g&&t.getTokenFlags()&26656&&ar(!1);let b=ta(A());return re.assert(b.kind===16,"Template head has wrong token kind"),b}function Vp(){let g=ta(A());return re.assert(g.kind===17||g.kind===18,"Template fragment has wrong token kind"),g}function Xm(g){let b=g===15||g===18,F=t.getTokenText();return F.substring(1,F.length-(t.isUnterminated()?0:b?1:2))}function ta(g){let b=X(),F=w3(g)?p.createTemplateLiteralLikeNode(g,t.getTokenValue(),Xm(g),t.getTokenFlags()&7176):g===9?y(t.getTokenValue(),t.getNumericLiteralFlags()):g===11?m(t.getTokenValue(),void 0,t.hasExtendedUnicodeEscape()):NR(g)?D(g,t.getTokenValue()):re.fail();return t.hasExtendedUnicodeEscape()&&(F.hasExtendedUnicodeEscape=!0),t.isUnterminated()&&(F.isUnterminated=!0),se(),z(F,b)}function ra(){return xi(!0,U.Type_expected)}function Hp(){if(!t.hasPrecedingLineBreak()&&_r()===30)return Di(20,Zt,30,32)}function Yo(){let g=X();return z(p.createTypeReferenceNode(ra(),Hp()),g)}function Dl(g){switch(g.kind){case 184:return So(g.typeName);case 185:case 186:{let{parameters:b,type:F}=g;return Up(b)||Dl(F)}case 197:return Dl(g.type);default:return!1}}function Gm(g){return se(),z(p.createTypePredicateNode(void 0,g,Zt()),g.pos)}function xl(){let g=X();return se(),z(p.createThisTypeNode(),g)}function Qm(){let g=X();return se(),z(p.createJSDocAllType(),g)}function Xp(){let g=X();return se(),z(p.createJSDocNonNullableType(wl(),!1),g)}function Ym(){let g=X();return se(),A()===28||A()===20||A()===22||A()===32||A()===64||A()===52?z(p.createJSDocUnknownType(),g):z(p.createJSDocNullableType(Zt(),!1),g)}function Gp(){let g=X(),b=H();if(Ie(qh)){let F=us(36),N=qn(59,!1);return rt(z(p.createJSDocFunctionType(F,N),g),b)}return z(p.createTypeReferenceNode(Br(),void 0),g)}function Tl(){let g=X(),b;return(A()===110||A()===105)&&(b=Br(),Y(59)),z(p.createParameterDeclaration(void 0,void 0,b,void 0,El(),void 0),g)}function El(){t.setSkipJsDocLeadingAsterisks(!0);let g=X();if(lt(144)){let N=p.createJSDocNamepathType(void 0);e:for(;;)switch(A()){case 20:case 1:case 28:case 5:break e;default:jt()}return t.setSkipJsDocLeadingAsterisks(!1),z(N,g)}let b=lt(26),F=ru();return t.setSkipJsDocLeadingAsterisks(!1),b&&(F=z(p.createJSDocVariadicType(F),g)),A()===64?(se(),z(p.createJSDocOptionalType(F),g)):F}function Qp(){let g=X();Y(114);let b=xi(!0),F=t.hasPrecedingLineBreak()?void 0:pu();return z(p.createTypeQueryNode(b,F),g)}function Yp(){let g=X(),b=Kn(!1,!0),F=or(),N,L;lt(96)&&(na()||!Rs()?N=Zt():L=Wd());let W=lt(64)?Zt():void 0,he=p.createTypeParameterDeclaration(b,F,N,W);return he.expression=L,z(he,g)}function yn(){if(A()===30)return Di(19,Yp,30,32)}function Zo(g){return A()===26||Xl()||Fi(A())||A()===60||na(!g)}function Zp(g){let b=sa(U.Private_identifiers_cannot_be_used_as_parameters);return nU(b)===0&&!Yr(g)&&Fi(A())&&se(),b}function ed(){return yt()||A()===23||A()===19}function bl(g){return Cl(g)}function td(g){return Cl(g,!1)}function Cl(g,b=!0){let F=X(),N=H(),L=g?te(()=>Kn(!0)):ye(()=>Kn(!0));if(A()===110){let Te=p.createParameterDeclaration(L,void 0,Ts(!0),void 0,Js(),void 0),De=Xg(L);return De&&dn(De,U.Neither_decorators_nor_modifiers_may_be_applied_to_this_parameters),rt(z(Te,F),N)}let W=Ar;Ar=!1;let he=nr(26);if(!b&&!ed())return;let ke=rt(z(p.createParameterDeclaration(L,he,Zp(L),nr(58),Js(),Us()),F),N);return Ar=W,ke}function qn(g,b){if(rd(g,b))return Cn(ru)}function rd(g,b){return g===39?(Y(g),!0):lt(59)?!0:b&&A()===39?(Ze(U._0_expected,er(59)),se(),!0):!1}function Al(g,b){let F=Qe(),N=At();Ft(!!(g&1)),Qt(!!(g&2));let L=g&32?mn(17,Tl):mn(16,()=>b?bl(N):td(N));return Ft(F),Qt(N),L}function us(g){if(!Y(21))return bs();let b=Al(g,!0);return Y(22),b}function eu(){lt(28)||Gr()}function nd(g){let b=X(),F=H();g===181&&Y(105);let N=yn(),L=us(4),W=qn(59,!0);eu();let he=g===180?p.createCallSignature(N,L,W):p.createConstructSignature(N,L,W);return rt(z(he,b),F)}function Ti(){return A()===23&&le(Zm)}function Zm(){if(se(),A()===26||A()===24)return!0;if(Fi(A())){if(se(),qe())return!0}else if(qe())se();else return!1;return A()===59||A()===28?!0:A()!==58?!1:(se(),A()===59||A()===28||A()===24)}function vl(g,b,F){let N=Di(16,()=>bl(!1),23,24),L=Js();eu();let W=p.createIndexSignature(F,N,L);return rt(z(W,g),b)}function sd(g,b,F){let N=gi(),L=nr(58),W;if(A()===21||A()===30){let he=yn(),ke=us(4),Te=qn(59,!0);W=p.createMethodSignature(F,N,L,he,ke,Te)}else{let he=Js();W=p.createPropertySignature(F,N,L,he),A()===64&&(W.initializer=Us())}return eu(),rt(z(W,g),b)}function id(){if(A()===21||A()===30||A()===139||A()===153)return!0;let g=!1;for(;Fi(A());)g=!0,se();return A()===23?!0:(js()&&(g=!0,se()),g?A()===21||A()===30||A()===58||A()===59||A()===28||xs():!1)}function Wa(){if(A()===21||A()===30)return nd(180);if(A()===105&&le(ad))return nd(181);let g=X(),b=H(),F=Kn(!1);return Zi(139)?ia(g,b,F,178,4):Zi(153)?ia(g,b,F,179,4):Ti()?vl(g,b,F):sd(g,b,F)}function ad(){return se(),A()===21||A()===30}function od(){return se()===25}function ud(){switch(se()){case 21:case 30:case 25:return!0}return!1}function ld(){let g=X();return z(p.createTypeLiteralNode(cd()),g)}function cd(){let g;return Y(19)?(g=An(4,Wa),Y(20)):g=bs(),g}function pd(){return se(),A()===40||A()===41?se()===148:(A()===148&&se(),A()===23&&qa()&&se()===103)}function e1(){let g=X(),b=Br();Y(103);let F=Zt();return z(p.createTypeParameterDeclaration(void 0,b,F,void 0),g)}function dd(){let g=X();Y(19);let b;(A()===148||A()===40||A()===41)&&(b=Jr(),b.kind!==148&&Y(148)),Y(23);let F=e1(),N=lt(130)?Zt():void 0;Y(24);let L;(A()===58||A()===40||A()===41)&&(L=Jr(),L.kind!==58&&Y(58));let W=Js();Gr();let he=An(4,Wa);return Y(20),z(p.createMappedTypeNode(b,F,N,L,W,he),g)}function hd(){let g=X();if(lt(26))return z(p.createRestTypeNode(Zt()),g);let b=Zt();if(SK(b)&&b.pos===b.type.pos){let F=p.createOptionalTypeNode(b.type);return xn(F,b),F.flags=b.flags,F}return b}function Sl(){return se()===59||A()===58&&se()===59}function t1(){return A()===26?yr(se())&&Sl():yr(A())&&Sl()}function fd(){if(le(t1)){let g=X(),b=H(),F=nr(26),N=Br(),L=nr(58);Y(59);let W=hd(),he=p.createNamedTupleMember(F,N,L,W);return rt(z(he,g),b)}return hd()}function r1(){let g=X();return z(p.createTupleTypeNode(Di(21,fd,23,24)),g)}function md(){let g=X();Y(21);let b=Zt();return Y(22),z(p.createParenthesizedType(b),g)}function n1(){let g;if(A()===128){let b=X();se();let F=z(v(128),b);g=Cr([F],b)}return g}function _l(){let g=X(),b=H(),F=n1(),N=lt(105);re.assert(!F||N,"Per isStartOfFunctionOrConstructorType, a function type cannot have modifiers.");let L=yn(),W=us(4),he=qn(39,!1),ke=N?p.createConstructorTypeNode(F,L,W,he):p.createFunctionTypeNode(L,W,he);return rt(z(ke,g),b)}function yd(){let g=Jr();return A()===25?void 0:g}function Fl(g){let b=X();g&&se();let F=A()===112||A()===97||A()===106?Jr():ta(A());return g&&(F=z(p.createPrefixUnaryExpression(41,F),b)),z(p.createLiteralTypeNode(F),b)}function s1(){return se(),A()===102}function kl(){Jt|=4194304;let g=X(),b=lt(114);Y(102),Y(21);let F=Zt(),N;if(lt(28)){let he=t.getTokenStart();Y(19);let ke=A();if(ke===118||ke===132?se():Ze(U._0_expected,er(118)),Y(59),N=sc(ke,!0),lt(28),!Y(20)){let Te=$u(ve);Te&&Te.code===U._0_expected.code&&Df(Te,Du(Gt,pt,he,1,U.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}}Y(22);let L=lt(25)?ra():void 0,W=Hp();return z(p.createImportTypeNode(F,N,L,W,b),g)}function gd(){return se(),A()===9||A()===10}function wl(){switch(A()){case 133:case 159:case 154:case 150:case 163:case 155:case 136:case 157:case 146:case 151:return Ie(yd)||Yo();case 67:t.reScanAsteriskEqualsToken();case 42:return Qm();case 61:t.reScanQuestionToken();case 58:return Ym();case 100:return Gp();case 54:return Xp();case 15:case 11:case 9:case 10:case 112:case 97:case 106:return Fl();case 41:return le(gd)?Fl(!0):Yo();case 116:return Jr();case 110:{let g=xl();return A()===142&&!t.hasPrecedingLineBreak()?Gm(g):g}case 114:return le(s1)?kl():Qp();case 19:return le(pd)?dd():ld();case 23:return r1();case 21:return md();case 102:return kl();case 131:return le(zl)?_d():Yo();case 16:return qp();default:return Yo()}}function na(g){switch(A()){case 133:case 159:case 154:case 150:case 163:case 136:case 148:case 155:case 158:case 116:case 157:case 106:case 110:case 114:case 146:case 19:case 23:case 30:case 52:case 51:case 105:case 11:case 9:case 10:case 112:case 97:case 151:case 42:case 58:case 54:case 26:case 140:case 102:case 131:case 15:case 16:return!0;case 100:return!g;case 41:return!g&&le(gd);case 21:return!g&&le(Dd);default:return qe()}}function Dd(){return se(),A()===22||Zo(!1)||na()}function xd(){let g=X(),b=wl();for(;!t.hasPrecedingLineBreak();)switch(A()){case 54:se(),b=z(p.createJSDocNonNullableType(b,!0),g);break;case 58:if(le(Ka))return b;se(),b=z(p.createJSDocNullableType(b,!0),g);break;case 23:if(Y(23),na()){let F=Zt();Y(24),b=z(p.createIndexedAccessTypeNode(b,F),g)}else Y(24),b=z(p.createArrayTypeNode(b),g);break;default:return b}return b}function Td(g){let b=X();return Y(g),z(p.createTypeOperatorNode(g,bd()),b)}function i1(){if(lt(96)){let g=fi(Zt);if(bt()||A()!==58)return g}}function Ed(){let g=X(),b=or(),F=Ie(i1),N=p.createTypeParameterDeclaration(void 0,b,F);return z(N,g)}function a1(){let g=X();return Y(140),z(p.createInferTypeNode(Ed()),g)}function bd(){let g=A();switch(g){case 143:case 158:case 148:return Td(g);case 140:return a1()}return Cn(xd)}function tu(g){if(Nl()){let b=_l(),F;return _8(b)?F=g?U.Function_type_notation_must_be_parenthesized_when_used_in_a_union_type:U.Function_type_notation_must_be_parenthesized_when_used_in_an_intersection_type:F=g?U.Constructor_type_notation_must_be_parenthesized_when_used_in_a_union_type:U.Constructor_type_notation_must_be_parenthesized_when_used_in_an_intersection_type,dn(b,F),b}}function Cd(g,b,F){let N=X(),L=g===52,W=lt(g),he=W&&tu(L)||b();if(A()===g||W){let ke=[he];for(;lt(g);)ke.push(tu(L)||b());he=z(F(Cr(ke,N)),N)}return he}function Pl(){return Cd(51,bd,p.createIntersectionTypeNode)}function o1(){return Cd(52,Pl,p.createUnionTypeNode)}function Ad(){return se(),A()===105}function Nl(){return A()===30||A()===21&&le(vd)?!0:A()===105||A()===128&&le(Ad)}function u1(){if(Fi(A())&&Kn(!1),qe()||A()===110)return se(),!0;if(A()===23||A()===19){let g=ve.length;return sa(),g===ve.length}return!1}function vd(){return se(),!!(A()===22||A()===26||u1()&&(A()===59||A()===28||A()===58||A()===64||A()===22&&(se(),A()===39)))}function ru(){let g=X(),b=qe()&&Ie(Sd),F=Zt();return b?z(p.createTypePredicateNode(void 0,b,F),g):F}function Sd(){let g=or();if(A()===142&&!t.hasPrecedingLineBreak())return se(),g}function _d(){let g=X(),b=as(131),F=A()===110?xl():or(),N=lt(142)?Zt():void 0;return z(p.createTypePredicateNode(b,F,N),g)}function Zt(){if(It&81920)return vr(81920,Zt);if(Nl())return _l();let g=X(),b=o1();if(!bt()&&!t.hasPrecedingLineBreak()&<(96)){let F=fi(Zt);Y(58);let N=Cn(Zt);Y(59);let L=Cn(Zt);return z(p.createConditionalTypeNode(b,F,N,L),g)}return b}function Js(){return lt(59)?Zt():void 0}function Il(){switch(A()){case 110:case 108:case 106:case 112:case 97:case 9:case 10:case 11:case 15:case 16:case 21:case 23:case 19:case 100:case 86:case 105:case 44:case 69:case 80:return!0;case 102:return le(ud);default:return qe()}}function Rs(){if(Il())return!0;switch(A()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 46:case 47:case 30:case 135:case 127:case 81:case 60:return!0;default:return jd()?!0:qe()}}function Fd(){return A()!==19&&A()!==100&&A()!==86&&A()!==60&&Rs()}function gr(){let g=Mt();g&&$t(!1);let b=X(),F=Or(!0),N;for(;N=nr(28);)F=Ol(F,N,Or(!0),b);return g&&$t(!0),F}function Us(){return lt(64)?Or(!0):void 0}function Or(g){if(kd())return wd();let b=c1(g)||Ld(g);if(b)return b;let F=X(),N=H(),L=Va(0);return L.kind===80&&A()===39?Pd(F,L,g,N,void 0):ju(L)&&D8(vt())?Ol(L,Jr(),Or(g),F):p1(L,F,g)}function kd(){return A()===127?Qe()?!0:le(Wl):!1}function l1(){return se(),!t.hasPrecedingLineBreak()&&qe()}function wd(){let g=X();return se(),!t.hasPrecedingLineBreak()&&(A()===42||Rs())?z(p.createYieldExpression(nr(42),Or(!0)),g):z(p.createYieldExpression(void 0,void 0),g)}function Pd(g,b,F,N,L){re.assert(A()===39,"parseSimpleArrowFunctionExpression should only have been called if we had a =>");let W=p.createParameterDeclaration(void 0,void 0,b,void 0,void 0,void 0);z(W,b.pos);let he=Cr([W],W.pos,W.end),ke=as(39),Te=Bl(!!L,F),De=p.createArrowFunction(L,void 0,he,void 0,ke,Te);return rt(z(De,g),N)}function c1(g){let b=Nd();if(b!==0)return b===1?$d(!0,!0):Ie(()=>Bd(g))}function Nd(){return A()===21||A()===30||A()===134?le(Id):A()===39?1:0}function Id(){if(A()===134&&(se(),t.hasPrecedingLineBreak()||A()!==21&&A()!==30))return 0;let g=A(),b=se();if(g===21){if(b===22)switch(se()){case 39:case 59:case 19:return 1;default:return 0}if(b===23||b===19)return 2;if(b===26)return 1;if(Fi(b)&&b!==134&&le(qa))return se()===130?0:1;if(!qe()&&b!==110)return 0;switch(se()){case 59:return 1;case 58:return se(),A()===59||A()===28||A()===64||A()===22?1:0;case 28:case 64:case 22:return 2}return 0}else return re.assert(g===30),!qe()&&A()!==87?0:Rt===1?le(()=>{lt(87);let F=se();if(F===96)switch(se()){case 64:case 32:case 44:return!1;default:return!0}else if(F===28||F===64)return!0;return!1})?1:0:2}function Bd(g){let b=t.getTokenStart();if(Er?.has(b))return;let F=$d(!1,g);return F||(Er||(Er=new Set)).add(b),F}function Ld(g){if(A()===134&&le(Od)===1){let b=X(),F=H(),N=Oh(),L=Va(0);return Pd(b,L,g,F,N)}}function Od(){if(A()===134){if(se(),t.hasPrecedingLineBreak()||A()===39)return 0;let g=Va(0);if(!t.hasPrecedingLineBreak()&&g.kind===80&&A()===39)return 1}return 0}function $d(g,b){let F=X(),N=H(),L=Oh(),W=Yr(L,Ef)?2:0,he=yn(),ke;if(Y(21)){if(g)ke=Al(W,g);else{let Cs=Al(W,g);if(!Cs)return;ke=Cs}if(!Y(22)&&!g)return}else{if(!g)return;ke=bs()}let Te=A()===59,De=qn(59,!1);if(De&&!g&&Dl(De))return;let Ne=De;for(;Ne?.kind===197;)Ne=Ne.type;let ht=Ne&&_K(Ne);if(!g&&A()!==39&&(ht||A()!==19))return;let ct=A(),tt=as(39),an=ct===39||ct===19?Bl(Yr(L,Ef),b):or();if(!b&&Te&&A()!==59)return;let Fr=p.createArrowFunction(L,he,ke,De,tt,an);return rt(z(Fr,F),N)}function Bl(g,b){if(A()===19)return ou(g?2:0);if(A()!==27&&A()!==100&&A()!==86&&xh()&&!Fd())return ou(16|(g?2:0));let F=Qe();Ft(!1);let N=Ar;Ar=!1;let L=g?te(()=>Or(b)):ye(()=>Or(b));return Ar=N,Ft(F),L}function p1(g,b,F){let N=nr(58);if(!N)return g;let L;return z(p.createConditionalExpression(g,N,vr(r,()=>Or(!1)),L=as(59),X0(L)?Or(F):Rr(80,!1,U._0_expected,er(59))),b)}function Va(g){let b=X(),F=Wd();return Ll(g,F,b)}function Md(g){return g===103||g===165}function Ll(g,b,F){for(;;){vt();let N=Yy(A());if(!(A()===43?N>=g:N>g)||A()===103&&Je())break;if(A()===130||A()===152){if(t.hasPrecedingLineBreak())break;{let L=A();se(),b=L===152?Jd(b,Zt()):Rd(b,Zt())}}else b=Ol(b,Jr(),Va(N),F)}return b}function jd(){return Je()&&A()===103?!1:Yy(A())>0}function Jd(g,b){return z(p.createSatisfiesExpression(g,b),g.pos)}function Ol(g,b,F,N){return z(p.createBinaryExpression(g,b,F),N)}function Rd(g,b){return z(p.createAsExpression(g,b),g.pos)}function Ud(){let g=X();return z(p.createPrefixUnaryExpression(A(),kt(qs)),g)}function qd(){let g=X();return z(p.createDeleteExpression(kt(qs)),g)}function d1(){let g=X();return z(p.createTypeOfExpression(kt(qs)),g)}function Kd(){let g=X();return z(p.createVoidExpression(kt(qs)),g)}function h1(){return A()===135?At()?!0:le(Wl):!1}function zd(){let g=X();return z(p.createAwaitExpression(kt(qs)),g)}function Wd(){if(f1()){let F=X(),N=nu();return A()===43?Ll(Yy(A()),N,F):N}let g=A(),b=qs();if(A()===43){let F=Gs(pt,b.pos),{end:N}=b;b.kind===217?Ht(F,N,U.A_type_assertion_expression_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses):(re.assert(Qy(g)),Ht(F,N,U.An_unary_expression_with_the_0_operator_is_not_allowed_in_the_left_hand_side_of_an_exponentiation_expression_Consider_enclosing_the_expression_in_parentheses,er(g)))}return b}function qs(){switch(A()){case 40:case 41:case 55:case 54:return Ud();case 91:return qd();case 114:return d1();case 116:return Kd();case 30:return Rt===1?Xa(!0,void 0,void 0,!0):Qd();case 135:if(h1())return zd();default:return nu()}}function f1(){switch(A()){case 40:case 41:case 55:case 54:case 91:case 114:case 116:case 135:return!1;case 30:if(Rt!==1)return!1;default:return!0}}function nu(){if(A()===46||A()===47){let b=X();return z(p.createPrefixUnaryExpression(A(),kt(Ha)),b)}else if(Rt===1&&A()===30&&le(Pp))return Xa(!0);let g=Ha();if(re.assert(ju(g)),(A()===46||A()===47)&&!t.hasPrecedingLineBreak()){let b=A();return se(),z(p.createPostfixUnaryExpression(g,b),g.pos)}return g}function Ha(){let g=X(),b;return A()===102?le(ad)?(Jt|=4194304,b=Jr()):le(od)?(se(),se(),b=z(p.createMetaProperty(102,Br()),g),b.name.escapedText==="defer"?(A()===21||A()===30)&&(Jt|=4194304):Jt|=8388608):b=su():b=A()===108?Vd():su(),Rl(g,b)}function su(){let g=X(),b=Ul();return sn(g,b,!0)}function Vd(){let g=X(),b=Jr();if(A()===30){let F=X(),N=Ie(au);N!==void 0&&(Ht(F,X(),U.super_may_not_use_type_arguments),vn()||(b=p.createExpressionWithTypeArguments(b,N)))}return A()===21||A()===25||A()===23?b:(as(25,U.super_must_be_followed_by_an_argument_list_or_member_access),z(P(b,ea(!0,!0,!0)),g))}function Xa(g,b,F,N=!1){let L=X(),W=g1(g),he;if(W.kind===287){let ke=iu(W),Te,De=ke[ke.length-1];if(De?.kind===285&&!ga(De.openingElement.tagName,De.closingElement.tagName)&&ga(W.tagName,De.closingElement.tagName)){let Ne=De.children.end,ht=z(p.createJsxElement(De.openingElement,De.children,z(p.createJsxClosingElement(z(T(""),Ne,Ne)),Ne,Ne)),De.openingElement.pos,Ne);ke=Cr([...ke.slice(0,ke.length-1),ht],ke.pos,Ne),Te=De.closingElement}else Te=Gd(W,g),ga(W.tagName,Te.tagName)||(F&&K3(F)&&ga(Te.tagName,F.tagName)?dn(W.tagName,U.JSX_element_0_has_no_corresponding_closing_tag,Pc(pt,W.tagName)):dn(Te.tagName,U.Expected_corresponding_JSX_closing_tag_for_0,Pc(pt,W.tagName)));he=z(p.createJsxElement(W,ke,Te),L)}else W.kind===290?he=z(p.createJsxFragment(W,iu(W),E1(g)),L):(re.assert(W.kind===286),he=W);if(!N&&g&&A()===30){let ke=typeof b>"u"?he.pos:b,Te=Ie(()=>Xa(!0,ke));if(Te){let De=Rr(28,!1);return j3(De,Te.pos,0),Ht(Gs(pt,ke),Te.end,U.JSX_expressions_must_have_one_parent_element),z(p.createBinaryExpression(he,De,Te),L)}}return he}function $l(){let g=X(),b=p.createJsxText(t.getTokenValue(),Ke===13);return Ke=t.scanJsxToken(),z(b,g)}function m1(g,b){switch(b){case 1:if(EK(g))dn(g,U.JSX_fragment_has_no_corresponding_closing_tag);else{let F=g.tagName,N=Math.min(Gs(pt,F.pos),F.end);Ht(N,F.end,U.JSX_element_0_has_no_corresponding_closing_tag,Pc(pt,g.tagName))}return;case 31:case 7:return;case 12:case 13:return $l();case 19:return Hd(!1);case 30:return Xa(!1,void 0,g);default:return re.assertNever(b)}}function iu(g){let b=[],F=X(),N=Ut;for(Ut|=16384;;){let L=m1(g,Ke=t.reScanJsxToken());if(!L||(b.push(L),K3(g)&&L?.kind===285&&!ga(L.openingElement.tagName,L.closingElement.tagName)&&ga(g.tagName,L.closingElement.tagName)))break}return Ut=N,Cr(b,F)}function y1(){let g=X();return z(p.createJsxAttributes(An(13,Xd)),g)}function g1(g){let b=X();if(Y(30),A()===32)return is(),z(p.createJsxOpeningFragment(),b);let F=Ml(),N=(It&524288)===0?pu():void 0,L=y1(),W;return A()===32?(is(),W=p.createJsxOpeningElement(F,N,L)):(Y(44),Y(32,void 0,!1)&&(g?se():is()),W=p.createJsxSelfClosingElement(F,N,L)),z(W,b)}function Ml(){let g=X(),b=D1();if(U8(b))return b;let F=b;for(;lt(25);)F=z(P(F,ea(!0,!1,!1)),g);return F}function D1(){let g=X();Ms();let b=A()===110,F=Yi();return lt(59)?(Ms(),z(p.createJsxNamespacedName(F,Yi()),g)):b?z(p.createToken(110),g):F}function Hd(g){let b=X();if(!Y(19))return;let F,N;return A()!==20&&(g||(F=nr(26)),N=gr()),g?Y(20):Y(20,void 0,!1)&&is(),z(p.createJsxExpression(F,N),b)}function Xd(){if(A()===19)return T1();let g=X();return z(p.createJsxAttribute(x1(),jl()),g)}function jl(){if(A()===64){if(Ja()===11)return os();if(A()===19)return Hd(!0);if(A()===30)return Xa(!0);Ze(U.or_JSX_element_expected)}}function x1(){let g=X();Ms();let b=Yi();return lt(59)?(Ms(),z(p.createJsxNamespacedName(b,Yi()),g)):b}function T1(){let g=X();Y(19),Y(26);let b=gr();return Y(20),z(p.createJsxSpreadAttribute(b),g)}function Gd(g,b){let F=X();Y(31);let N=Ml();return Y(32,void 0,!1)&&(b||!ga(g.tagName,N)?se():is()),z(p.createJsxClosingElement(N),F)}function E1(g){let b=X();return Y(31),Y(32,U.Expected_corresponding_closing_tag_for_JSX_fragment,!1)&&(g?se():is()),z(p.createJsxJsxClosingFragment(),b)}function Qd(){re.assert(Rt!==1,"Type assertions should never be parsed in JSX; they should be parsed as comparisons or JSX elements/fragments.");let g=X();Y(30);let b=Zt();Y(32);let F=qs();return z(p.createTypeAssertion(b,F),g)}function b1(){return se(),yr(A())||A()===23||vn()}function Yd(){return A()===29&&le(b1)}function Jl(g){if(g.flags&64)return!0;if($f(g)){let b=g.expression;for(;$f(b)&&!(b.flags&64);)b=b.expression;if(b.flags&64){for(;$f(g);)g.flags|=64,g=g.expression;return!0}}return!1}function Zd(g,b,F){let N=ea(!0,!0,!0),L=F||Jl(b),W=L?k(b,F,N):P(b,N);if(L&&No(W.name)&&dn(W.name,U.An_optional_chain_cannot_contain_private_identifiers),hK(b)&&b.typeArguments){let he=b.typeArguments.pos-1,ke=Gs(pt,b.typeArguments.end)+1;Ht(he,ke,U.An_instantiation_expression_cannot_be_followed_by_a_property_access)}return z(W,g)}function C1(g,b,F){let N;if(A()===24)N=Rr(80,!0,U.An_element_access_expression_should_take_an_argument);else{let W=Yt(gr);Lm(W)&&(W.text=yi(W.text)),N=W}Y(24);let L=F||Jl(b)?B(b,F,N):w(b,N);return z(L,g)}function sn(g,b,F){for(;;){let N,L=!1;if(F&&Yd()?(N=as(29),L=yr(A())):L=lt(25),L){b=Zd(g,b,N);continue}if((N||!Mt())&<(23)){b=C1(g,b,N);continue}if(vn()){b=!N&&b.kind===234?Ei(g,b.expression,N,b.typeArguments):Ei(g,b,N,void 0);continue}if(!N){if(A()===54&&!t.hasPrecedingLineBreak()){se(),b=z(p.createNonNullExpression(b),g);continue}let W=Ie(au);if(W){b=z(p.createExpressionWithTypeArguments(b,W),g);continue}}return b}}function vn(){return A()===15||A()===16}function Ei(g,b,F,N){let L=p.createTaggedTemplateExpression(b,N,A()===15?(ar(!0),os()):Qo(!0));return(F||b.flags&64)&&(L.flags|=64),L.questionDotToken=F,z(L,g)}function Rl(g,b){for(;;){b=sn(g,b,!0);let F,N=nr(29);if(N&&(F=Ie(au),vn())){b=Ei(g,b,N,F);continue}if(F||A()===21){!N&&b.kind===234&&(F=b.typeArguments,b=b.expression);let L=eh(),W=N||Jl(b)?oe(b,N,F,L):I(b,F,L);b=z(W,g);continue}if(N){let L=Rr(80,!1,U.Identifier_expected);b=z(k(b,N,L),g)}break}return b}function eh(){Y(21);let g=mn(11,nh);return Y(22),g}function au(){if((It&524288)!==0||_r()!==30)return;se();let g=mn(20,Zt);if(vt()===32)return se(),g&&A1()?g:void 0}function A1(){switch(A()){case 21:case 15:case 16:return!0;case 30:case 32:case 40:case 41:return!1}return t.hasPrecedingLineBreak()||jd()||!Rs()}function Ul(){switch(A()){case 15:t.getTokenFlags()&26656&&ar(!1);case 9:case 10:case 11:return os();case 110:case 108:case 106:case 112:case 97:return Jr();case 21:return v1();case 23:return sh();case 19:return ql();case 134:if(!le(Dh))break;return Kl();case 60:return z1();case 86:return W1();case 100:return Kl();case 105:return ah();case 44:case 69:if(Sr()===14)return os();break;case 16:return Qo(!1);case 81:return Wo()}return or(U.Expression_expected)}function v1(){let g=X(),b=H();Y(21);let F=Yt(gr);return Y(22),rt(z(me(F),g),b)}function th(){let g=X();Y(26);let b=Or(!0);return z(p.createSpreadElement(b),g)}function rh(){return A()===26?th():A()===28?z(p.createOmittedExpression(),X()):Or(!0)}function nh(){return vr(r,rh)}function sh(){let g=X(),b=t.getTokenStart(),F=Y(23),N=t.hasPrecedingLineBreak(),L=mn(15,rh);return mi(23,24,F,b),z(E(L,N),g)}function ih(){let g=X(),b=H();if(nr(26)){let De=Or(!0);return rt(z(p.createSpreadAssignment(De),g),b)}let F=Kn(!0);if(Zi(139))return ia(g,b,F,178,0);if(Zi(153))return ia(g,b,F,179,0);let N=nr(42),L=qe(),W=gi(),he=nr(58),ke=nr(54);if(N||A()===21||A()===30)return Nh(g,b,F,N,W,he,ke);let Te;if(L&&A()!==59){let De=nr(64),Ne=De?Yt(()=>Or(!0)):void 0;Te=p.createShorthandPropertyAssignment(W,Ne),Te.equalsToken=De}else{Y(59);let De=Yt(()=>Or(!0));Te=p.createPropertyAssignment(W,De)}return Te.modifiers=F,Te.questionToken=he,Te.exclamationToken=ke,rt(z(Te,g),b)}function ql(){let g=X(),b=t.getTokenStart(),F=Y(19),N=t.hasPrecedingLineBreak(),L=mn(12,ih,!0);return mi(19,20,F,b),z(C(L,N),g)}function Kl(){let g=Mt();$t(!1);let b=X(),F=H(),N=Kn(!1);Y(100);let L=nr(42),W=L?1:0,he=Yr(N,Ef)?2:0,ke=W&&he?xe(Ga):W?ss(Ga):he?te(Ga):Ga(),Te=yn(),De=us(W|he),Ne=qn(59,!1),ht=ou(W|he);$t(g);let ct=p.createFunctionExpression(N,L,ke,Te,De,Ne,ht);return rt(z(ct,b),F)}function Ga(){return yt()?ll():void 0}function ah(){let g=X();if(Y(105),lt(25)){let W=Br();return z(p.createMetaProperty(105,W),g)}let b=X(),F=sn(b,Ul(),!1),N;F.kind===234&&(N=F.typeArguments,F=F.expression),A()===29&&Ze(U.Invalid_optional_chain_from_new_expression_Did_you_mean_to_call_0,Pc(pt,F));let L=A()===21?eh():void 0;return z(ee(F,N,L),g)}function bi(g,b){let F=X(),N=H(),L=t.getTokenStart(),W=Y(19,b);if(W||g){let he=t.hasPrecedingLineBreak(),ke=An(1,Ur);mi(19,20,W,L);let Te=rt(z(Ge(ke,he),F),N);return A()===64&&(Ze(U.Declaration_or_statement_expected_This_follows_a_block_of_statements_so_if_you_intended_to_write_a_destructuring_assignment_you_might_need_to_wrap_the_whole_assignment_in_parentheses),se()),Te}else{let he=bs();return rt(z(Ge(he,void 0),F),N)}}function ou(g,b){let F=Qe();Ft(!!(g&1));let N=At();Qt(!!(g&2));let L=Ar;Ar=!1;let W=Mt();W&&$t(!1);let he=bi(!!(g&16),b);return W&&$t(!0),Ar=L,Ft(F),Qt(N),he}function oh(){let g=X(),b=H();return Y(27),rt(z(p.createEmptyStatement(),g),b)}function S1(){let g=X(),b=H();Y(101);let F=t.getTokenStart(),N=Y(21),L=Yt(gr);mi(21,22,N,F);let W=Ur(),he=lt(93)?Ur():void 0;return rt(z(ge(L,W,he),g),b)}function uh(){let g=X(),b=H();Y(92);let F=Ur();Y(117);let N=t.getTokenStart(),L=Y(21),W=Yt(gr);return mi(21,22,L,N),lt(27),rt(z(p.createDoStatement(F,W),g),b)}function _1(){let g=X(),b=H();Y(117);let F=t.getTokenStart(),N=Y(21),L=Yt(gr);mi(21,22,N,F);let W=Ur();return rt(z(Pe(L,W),g),b)}function lh(){let g=X(),b=H();Y(99);let F=nr(135);Y(21);let N;A()!==27&&(A()===115||A()===121||A()===87||A()===160&&le(Eh)||A()===135&&le(Vl)?N=kh(!0):N=Qi(gr));let L;if(F?Y(165):lt(165)){let W=Yt(()=>Or(!0));Y(22),L=et(F,N,W,Ur())}else if(lt(103)){let W=Yt(gr);Y(22),L=p.createForInStatement(N,W,Ur())}else{Y(27);let W=A()!==27&&A()!==22?Yt(gr):void 0;Y(27);let he=A()!==22?Yt(gr):void 0;Y(22),L=Et(N,W,he,Ur())}return rt(z(L,g),b)}function ch(g){let b=X(),F=H();Y(g===253?83:88);let N=xs()?void 0:or();Gr();let L=g===253?p.createBreakStatement(N):p.createContinueStatement(N);return rt(z(L,b),F)}function ph(){let g=X(),b=H();Y(107);let F=xs()?void 0:Yt(gr);return Gr(),rt(z(p.createReturnStatement(F),g),b)}function F1(){let g=X(),b=H();Y(118);let F=t.getTokenStart(),N=Y(21),L=Yt(gr);mi(21,22,N,F);let W=fr(67108864,Ur);return rt(z(p.createWithStatement(L,W),g),b)}function dh(){let g=X(),b=H();Y(84);let F=Yt(gr);Y(59);let N=An(3,Ur);return rt(z(p.createCaseClause(F,N),g),b)}function k1(){let g=X();Y(90),Y(59);let b=An(3,Ur);return z(p.createDefaultClause(b),g)}function w1(){return A()===84?dh():k1()}function hh(){let g=X();Y(19);let b=An(2,w1);return Y(20),z(p.createCaseBlock(b),g)}function P1(){let g=X(),b=H();Y(109),Y(21);let F=Yt(gr);Y(22);let N=hh();return rt(z(p.createSwitchStatement(F,N),g),b)}function fh(){let g=X(),b=H();Y(111);let F=t.hasPrecedingLineBreak()?void 0:Yt(gr);return F===void 0&&(hr++,F=z(T(""),X())),zo()||mr(F),rt(z(p.createThrowStatement(F),g),b)}function N1(){let g=X(),b=H();Y(113);let F=bi(!1),N=A()===85?mh():void 0,L;return(!N||A()===98)&&(Y(98,U.catch_or_finally_expected),L=bi(!1)),rt(z(p.createTryStatement(F,N,L),g),b)}function mh(){let g=X();Y(85);let b;lt(21)?(b=lu(),Y(22)):b=void 0;let F=bi(!1);return z(p.createCatchClause(b,F),g)}function I1(){let g=X(),b=H();return Y(89),Gr(),rt(z(p.createDebuggerStatement(),g),b)}function yh(){let g=X(),b=H(),F,N=A()===21,L=Yt(gr);return zt(L)&<(59)?F=p.createLabeledStatement(L,Ur()):(zo()||mr(L),F=we(L),N&&(b=!1)),rt(z(F,g),b)}function zl(){return se(),yr(A())&&!t.hasPrecedingLineBreak()}function gh(){return se(),A()===86&&!t.hasPrecedingLineBreak()}function Dh(){return se(),A()===100&&!t.hasPrecedingLineBreak()}function Wl(){return se(),(yr(A())||A()===9||A()===10||A()===11)&&!t.hasPrecedingLineBreak()}function B1(){for(;;)switch(A()){case 115:case 121:case 87:case 100:case 86:case 94:return!0;case 160:return bh();case 135:return Hl();case 120:case 156:case 166:return l1();case 144:case 145:return M1();case 128:case 129:case 134:case 138:case 123:case 124:case 125:case 148:let g=A();if(se(),t.hasPrecedingLineBreak())return!1;if(g===138&&A()===156)return!0;continue;case 162:return se(),A()===19||A()===80||A()===95;case 102:return se(),A()===166||A()===11||A()===42||A()===19||yr(A());case 95:let b=se();if(b===156&&(b=le(se)),b===64||b===42||b===19||b===90||b===130||b===60)return!0;continue;case 126:se();continue;default:return!1}}function Qa(){return le(B1)}function xh(){switch(A()){case 60:case 27:case 19:case 115:case 121:case 160:case 100:case 86:case 94:case 101:case 92:case 117:case 99:case 88:case 83:case 107:case 118:case 109:case 111:case 113:case 89:case 85:case 98:return!0;case 102:return Qa()||le(ud);case 87:case 95:return Qa();case 134:case 138:case 120:case 144:case 145:case 156:case 162:case 166:return!0;case 129:case 125:case 123:case 124:case 126:case 148:return Qa()||!le(zl);default:return Rs()}}function Th(){return se(),yt()||A()===19||A()===23}function L1(){return le(Th)}function Eh(){return uu(!0)}function O1(){return se(),A()===64||A()===27||A()===59}function uu(g){return se(),g&&A()===165?le(O1):(yt()||A()===19)&&!t.hasPrecedingLineBreak()}function bh(){return le(uu)}function Vl(g){return se()===160?uu(g):!1}function Hl(){return le(Vl)}function Ur(){switch(A()){case 27:return oh();case 19:return bi(!1);case 115:return eo(X(),H(),void 0);case 121:if(L1())return eo(X(),H(),void 0);break;case 135:if(Hl())return eo(X(),H(),void 0);break;case 160:if(bh())return eo(X(),H(),void 0);break;case 100:return Gl(X(),H(),void 0);case 86:return Zl(X(),H(),void 0);case 101:return S1();case 92:return uh();case 117:return _1();case 99:return lh();case 88:return ch(252);case 83:return ch(253);case 107:return ph();case 118:return F1();case 109:return P1();case 111:return fh();case 113:case 85:case 98:return N1();case 89:return I1();case 60:return Ya();case 134:case 120:case 156:case 144:case 145:case 138:case 87:case 94:case 95:case 102:case 123:case 124:case 125:case 128:case 129:case 126:case 148:case 162:if(Qa())return Ya();break}return yh()}function Ch(g){return g.kind===138}function Ya(){let g=X(),b=H(),F=Kn(!0);if(Yr(F,Ch)){let N=$1(g);if(N)return N;for(let L of F)L.flags|=33554432;return fr(33554432,()=>Ah(g,b,F))}else return Ah(g,b,F)}function $1(g){return fr(33554432,()=>{let b=Xo(Ut,g);if(b)return Bp(b)})}function Ah(g,b,F){switch(A()){case 115:case 121:case 87:case 160:case 135:return eo(g,b,F);case 100:return Gl(g,b,F);case 86:return Zl(g,b,F);case 120:return G1(g,b,F);case 156:return Q1(g,b,F);case 94:return Y1(g,b,F);case 162:case 144:case 145:return Z1(g,b,F);case 102:return to(g,b,F);case 95:switch(se(),A()){case 90:case 64:return Xh(g,b,F);case 130:return ry(g,b,F);default:return Hh(g,b,F)}default:if(F){let N=Rr(283,!0,U.Declaration_expected);return Q0(N,g),N.modifiers=F,N}return}}function vh(){return se()===11}function Sh(){return se(),A()===161||A()===64}function M1(){return se(),!t.hasPrecedingLineBreak()&&(qe()||A()===11)}function Za(g,b){if(A()!==19){if(g&4){eu();return}if(xs()){Gr();return}}return ou(g,b)}function j1(){let g=X();if(A()===28)return z(p.createOmittedExpression(),g);let b=nr(26),F=sa(),N=Us();return z(p.createBindingElement(b,void 0,F,N),g)}function _h(){let g=X(),b=nr(26),F=yt(),N=gi(),L;F&&A()!==59?(L=N,N=void 0):(Y(59),L=sa());let W=Us();return z(p.createBindingElement(b,N,L,W),g)}function J1(){let g=X();Y(19);let b=Yt(()=>mn(9,_h));return Y(20),z(p.createObjectBindingPattern(b),g)}function Fh(){let g=X();Y(23);let b=Yt(()=>mn(10,j1));return Y(24),z(p.createArrayBindingPattern(b),g)}function Xl(){return A()===19||A()===23||A()===81||yt()}function sa(g){return A()===23?Fh():A()===19?J1():ll(g)}function R1(){return lu(!0)}function lu(g){let b=X(),F=H(),N=sa(U.Private_identifiers_are_not_allowed_in_variable_declarations),L;g&&N.kind===80&&A()===54&&!t.hasPrecedingLineBreak()&&(L=Jr());let W=Js(),he=Md(A())?void 0:Us(),ke=rr(N,L,W,he);return rt(z(ke,b),F)}function kh(g){let b=X(),F=0;switch(A()){case 115:break;case 121:F|=1;break;case 87:F|=2;break;case 160:F|=4;break;case 135:re.assert(Hl()),F|=6,se();break;default:re.fail()}se();let N;if(A()===165&&le(wh))N=bs();else{let L=Je();Ve(g),N=mn(8,g?lu:R1),Ve(L)}return z(Dt(N,F),b)}function wh(){return qa()&&se()===22}function eo(g,b,F){let N=kh(!1);Gr();let L=Q(F,N);return rt(z(L,g),b)}function Gl(g,b,F){let N=At(),L=Vn(F);Y(100);let W=nr(42),he=L&2048?Ga():ll(),ke=W?1:0,Te=L&1024?2:0,De=yn();L&32&&Qt(!0);let Ne=us(ke|Te),ht=qn(59,!1),ct=Za(ke|Te,U.or_expected);Qt(N);let tt=p.createFunctionDeclaration(F,W,he,De,Ne,ht,ct);return rt(z(tt,g),b)}function U1(){if(A()===137)return Y(137);if(A()===11&&le(se)===21)return Ie(()=>{let g=os();return g.text==="constructor"?g:void 0})}function Ph(g,b,F){return Ie(()=>{if(U1()){let N=yn(),L=us(0),W=qn(59,!1),he=Za(0,U.or_expected),ke=p.createConstructorDeclaration(F,L,he);return ke.typeParameters=N,ke.type=W,rt(z(ke,g),b)}})}function Nh(g,b,F,N,L,W,he,ke){let Te=N?1:0,De=Yr(F,Ef)?2:0,Ne=yn(),ht=us(Te|De),ct=qn(59,!1),tt=Za(Te|De,ke),an=p.createMethodDeclaration(F,N,L,W,Ne,ht,ct,tt);return an.exclamationToken=he,rt(z(an,g),b)}function cu(g,b,F,N,L){let W=!L&&!t.hasPrecedingLineBreak()?nr(54):void 0,he=Js(),ke=vr(90112,Us);$m(N,he,ke);let Te=p.createPropertyDeclaration(F,N,L||W,he,ke);return rt(z(Te,g),b)}function Ql(g,b,F){let N=nr(42),L=gi(),W=nr(58);return N||A()===21||A()===30?Nh(g,b,F,N,L,W,void 0,U.or_expected):cu(g,b,F,L,W)}function ia(g,b,F,N,L){let W=gi(),he=yn(),ke=us(0),Te=qn(59,!1),De=Za(L),Ne=N===178?p.createGetAccessorDeclaration(F,W,ke,Te,De):p.createSetAccessorDeclaration(F,W,ke,De);return Ne.typeParameters=he,nm(Ne)&&(Ne.type=Te),rt(z(Ne,g),b)}function Ih(){let g;if(A()===60)return!0;for(;Fi(A());){if(g=A(),LR(g))return!0;se()}if(A()===42||(js()&&(g=A(),se()),A()===23))return!0;if(g!==void 0){if(!xa(g)||g===153||g===139)return!0;switch(A()){case 21:case 30:case 54:case 59:case 64:case 58:return!0;default:return xs()}}return!1}function q1(g,b,F){as(126);let N=K1(),L=rt(z(p.createClassStaticBlockDeclaration(N),g),b);return L.modifiers=F,L}function K1(){let g=Qe(),b=At();Ft(!1),Qt(!0);let F=bi(!1);return Ft(g),Qt(b),F}function Bh(){if(At()&&A()===135){let g=X(),b=or(U.Expression_expected);se();let F=sn(g,b,!0);return Rl(g,F)}return Ha()}function Lh(){let g=X();if(!lt(60))return;let b=ja(Bh);return z(p.createDecorator(b),g)}function Yl(g,b,F){let N=X(),L=A();if(A()===87&&b){if(!Ie(cl))return}else if(F&&A()===126&&le(du)||g&&A()===126||!kp())return;return z(v(L),N)}function Kn(g,b,F){let N=X(),L,W,he,ke=!1,Te=!1,De=!1;if(g&&A()===60)for(;W=Lh();)L=Pn(L,W);for(;he=Yl(ke,b,F);)he.kind===126&&(ke=!0),L=Pn(L,he),Te=!0;if(Te&&g&&A()===60)for(;W=Lh();)L=Pn(L,W),De=!0;if(De)for(;he=Yl(ke,b,F);)he.kind===126&&(ke=!0),L=Pn(L,he);return L&&Cr(L,N)}function Oh(){let g;if(A()===134){let b=X();se();let F=z(v(134),b);g=Cr([F],b)}return g}function $h(){let g=X(),b=H();if(A()===27)return se(),rt(z(p.createSemicolonClassElement(),g),b);let F=Kn(!0,!0,!0);if(A()===126&&le(du))return q1(g,b,F);if(Zi(139))return ia(g,b,F,178,0);if(Zi(153))return ia(g,b,F,179,0);if(A()===137||A()===11){let N=Ph(g,b,F);if(N)return N}if(Ti())return vl(g,b,F);if(yr(A())||A()===11||A()===9||A()===10||A()===42||A()===23)if(Yr(F,Ch)){for(let N of F)N.flags|=33554432;return fr(33554432,()=>Ql(g,b,F))}else return Ql(g,b,F);if(F){let N=Rr(80,!0,U.Declaration_expected);return cu(g,b,F,N,void 0)}return re.fail("Should not have attempted to parse class member declaration.")}function z1(){let g=X(),b=H(),F=Kn(!0);if(A()===86)return ec(g,b,F,232);let N=Rr(283,!0,U.Expression_expected);return Q0(N,g),N.modifiers=F,N}function W1(){return ec(X(),H(),void 0,232)}function Zl(g,b,F){return ec(g,b,F,264)}function ec(g,b,F,N){let L=At();Y(86);let W=V1(),he=yn();Yr(F,Bq)&&Qt(!0);let ke=jh(),Te;Y(19)?(Te=Jh(),Y(20)):Te=bs(),Qt(L);let De=N===264?p.createClassDeclaration(F,W,he,ke,Te):p.createClassExpression(F,W,he,ke,Te);return rt(z(De,g),b)}function V1(){return yt()&&!Mh()?Ts(yt()):void 0}function Mh(){return A()===119&&le(zm)}function jh(){if(tc())return An(22,H1)}function H1(){let g=X(),b=A();re.assert(b===96||b===119),se();let F=mn(7,X1);return z(p.createHeritageClause(b,F),g)}function X1(){let g=X(),b=Ha();if(b.kind===234)return b;let F=pu();return z(p.createExpressionWithTypeArguments(b,F),g)}function pu(){return A()===30?Di(20,Zt,30,32):void 0}function tc(){return A()===96||A()===119}function Jh(){return An(5,$h)}function G1(g,b,F){Y(120);let N=or(),L=yn(),W=jh(),he=cd(),ke=p.createInterfaceDeclaration(F,N,L,W,he);return rt(z(ke,g),b)}function Q1(g,b,F){Y(156),t.hasPrecedingLineBreak()&&Ze(U.Line_break_not_permitted_here);let N=or(),L=yn();Y(64);let W=A()===141&&Ie(yd)||Zt();Gr();let he=p.createTypeAliasDeclaration(F,N,L,W);return rt(z(he,g),b)}function rc(){let g=X(),b=H(),F=gi(),N=Yt(Us);return rt(z(p.createEnumMember(F,N),g),b)}function Y1(g,b,F){Y(94);let N=or(),L;Y(19)?(L=He(()=>mn(6,rc)),Y(20)):L=bs();let W=p.createEnumDeclaration(F,N,L);return rt(z(W,g),b)}function nc(){let g=X(),b;return Y(19)?(b=An(1,Ur),Y(20)):b=bs(),z(p.createModuleBlock(b),g)}function Rh(g,b,F,N){let L=N&32,W=N&8?Br():or(),he=lt(25)?Rh(X(),!1,void 0,8|L):nc(),ke=p.createModuleDeclaration(F,W,he,N);return rt(z(ke,g),b)}function Uh(g,b,F){let N=0,L;A()===162?(L=or(),N|=2048):(L=os(),L.text=yi(L.text));let W;A()===19?W=nc():Gr();let he=p.createModuleDeclaration(F,L,W,N);return rt(z(he,g),b)}function Z1(g,b,F){let N=0;if(A()===162)return Uh(g,b,F);if(lt(145))N|=32;else if(Y(144),A()===11)return Uh(g,b,F);return Rh(g,b,F,N)}function ey(){return A()===149&&le(qh)}function qh(){return se()===21}function du(){return se()===19}function ty(){return se()===44}function ry(g,b,F){Y(130),Y(145);let N=or();Gr();let L=p.createNamespaceExportDeclaration(N);return L.modifiers=F,rt(z(L,g),b)}function to(g,b,F){Y(102);let N=t.getTokenFullStart(),L;qe()&&(L=or());let W;if(L?.escapedText==="type"&&(A()!==161||qe()&&le(Sh))&&(qe()||Ci())?(W=156,L=qe()?or():void 0):L?.escapedText==="defer"&&(A()===161?!le(vh):A()!==28&&A()!==64)&&(W=166,L=qe()?or():void 0),L&&!sy()&&W!==166)return iy(g,b,F,L,W===156);let he=Kh(L,N,W,void 0),ke=no(),Te=zh();Gr();let De=p.createImportDeclaration(F,he,ke,Te);return rt(z(De,g),b)}function Kh(g,b,F,N=!1){let L;return(g||A()===42||A()===19)&&(L=ay(g,b,F,N),Y(161)),L}function zh(){let g=A();if((g===118||g===132)&&!t.hasPrecedingLineBreak())return sc(g)}function ny(){let g=X(),b=yr(A())?Br():ta(11);Y(59);let F=Or(!0);return z(p.createImportAttribute(b,F),g)}function sc(g,b){let F=X();b||Y(g);let N=t.getTokenStart();if(Y(19)){let L=t.hasPrecedingLineBreak(),W=mn(24,ny,!0);if(!Y(20)){let he=$u(ve);he&&he.code===U._0_expected.code&&Df(he,Du(Gt,pt,N,1,U.The_parser_expected_to_find_a_1_to_match_the_0_token_here,"{","}"))}return z(p.createImportAttributes(W,L,g),F)}else{let L=Cr([],X(),void 0,!1);return z(p.createImportAttributes(L,!1,g),F)}}function Ci(){return A()===42||A()===19}function sy(){return A()===28||A()===161}function iy(g,b,F,N,L){Y(64);let W=ro();Gr();let he=p.createImportEqualsDeclaration(F,L,N,W);return rt(z(he,g),b)}function ay(g,b,F,N){let L;return(!g||lt(28))&&(N&&t.setSkipJsDocLeadingAsterisks(!0),A()===42?L=uy():L=Wh(276),N&&t.setSkipJsDocLeadingAsterisks(!1)),z(p.createImportClause(F,g,L),b)}function ro(){return ey()?oy():xi(!1)}function oy(){let g=X();Y(149),Y(21);let b=no();return Y(22),z(p.createExternalModuleReference(b),g)}function no(){if(A()===11){let g=os();return g.text=yi(g.text),g}else return gr()}function uy(){let g=X();Y(42),Y(130);let b=or();return z(p.createNamespaceImport(b),g)}function ic(){return yr(A())||A()===11}function aa(g){return A()===11?os():g()}function Wh(g){let b=X(),F=g===276?p.createNamedImports(Di(23,ly,19,20)):p.createNamedExports(Di(23,oa,19,20));return z(F,b)}function oa(){let g=H();return rt(Vh(282),g)}function ly(){return Vh(277)}function Vh(g){let b=X(),F=xa(A())&&!qe(),N=t.getTokenStart(),L=t.getTokenEnd(),W=!1,he,ke=!0,Te=aa(Br);if(Te.kind===80&&Te.escapedText==="type")if(A()===130){let ht=Br();if(A()===130){let ct=Br();ic()?(W=!0,he=ht,Te=aa(Ne),ke=!1):(he=Te,Te=ct,ke=!1)}else ic()?(he=Te,ke=!1,Te=aa(Ne)):(W=!0,Te=ht)}else ic()&&(W=!0,Te=aa(Ne));ke&&A()===130&&(he=Te,Y(130),Te=aa(Ne)),g===277&&(Te.kind!==80?(Ht(Gs(pt,Te.pos),Te.end,U.Identifier_expected),Te=_a(Rr(80,!1),Te.pos,Te.pos)):F&&Ht(N,L,U.Identifier_expected));let De=g===277?p.createImportSpecifier(W,he,Te):p.createExportSpecifier(W,he,Te);return z(De,b);function Ne(){return F=xa(A())&&!qe(),N=t.getTokenStart(),L=t.getTokenEnd(),Br()}}function cy(g){return z(p.createNamespaceExport(aa(Br)),g)}function Hh(g,b,F){let N=At();Qt(!0);let L,W,he,ke=lt(156),Te=X();lt(42)?(lt(130)&&(L=cy(Te)),Y(161),W=no()):(L=Wh(280),(A()===161||A()===11&&!t.hasPrecedingLineBreak())&&(Y(161),W=no()));let De=A();W&&(De===118||De===132)&&!t.hasPrecedingLineBreak()&&(he=sc(De)),Gr(),Qt(N);let Ne=p.createExportDeclaration(F,ke,L,W,he);return rt(z(Ne,g),b)}function Xh(g,b,F){let N=At();Qt(!0);let L;lt(64)?L=!0:Y(90);let W=Or(!0);Gr(),Qt(N);let he=p.createExportAssignment(F,L,W);return rt(z(he,g),b)}let ac;(g=>{g[g.SourceElements=0]="SourceElements",g[g.BlockStatements=1]="BlockStatements",g[g.SwitchClauses=2]="SwitchClauses",g[g.SwitchClauseStatements=3]="SwitchClauseStatements",g[g.TypeMembers=4]="TypeMembers",g[g.ClassMembers=5]="ClassMembers",g[g.EnumMembers=6]="EnumMembers",g[g.HeritageClauseElement=7]="HeritageClauseElement",g[g.VariableDeclarations=8]="VariableDeclarations",g[g.ObjectBindingElements=9]="ObjectBindingElements",g[g.ArrayBindingElements=10]="ArrayBindingElements",g[g.ArgumentExpressions=11]="ArgumentExpressions",g[g.ObjectLiteralMembers=12]="ObjectLiteralMembers",g[g.JsxAttributes=13]="JsxAttributes",g[g.JsxChildren=14]="JsxChildren",g[g.ArrayLiteralMembers=15]="ArrayLiteralMembers",g[g.Parameters=16]="Parameters",g[g.JSDocParameters=17]="JSDocParameters",g[g.RestProperties=18]="RestProperties",g[g.TypeParameters=19]="TypeParameters",g[g.TypeArguments=20]="TypeArguments",g[g.TupleElementTypes=21]="TupleElementTypes",g[g.HeritageClauses=22]="HeritageClauses",g[g.ImportOrExportSpecifiers=23]="ImportOrExportSpecifiers",g[g.ImportAttributes=24]="ImportAttributes",g[g.JSDocComment=25]="JSDocComment",g[g.Count=26]="Count"})(ac||(ac={}));let Gh;(g=>{g[g.False=0]="False",g[g.True=1]="True",g[g.Unknown=2]="Unknown"})(Gh||(Gh={}));let Qh;(g=>{function b(De,Ne,ht){Vr("file.js",De,99,void 0,1,0),t.setText(De,Ne,ht),Ke=t.scan();let ct=F(),tt=Fe("file.js",99,1,!1,[],v(1),0,Hf),an=co(ve,tt);return ce&&(tt.jsDocDiagnostics=co(ce,tt)),Hr(),ct?{jsDocTypeExpression:ct,diagnostics:an}:void 0}g.parseJSDocTypeExpressionForTests=b;function F(De){let Ne=X(),ht=(De?lt:Y)(19),ct=fr(16777216,El);(!De||ht)&&Sp(20);let tt=p.createJSDocTypeExpression(ct);return G(tt),z(tt,Ne)}g.parseJSDocTypeExpression=F;function N(){let De=X(),Ne=lt(19),ht=X(),ct=xi(!1);for(;A()===81;)Xr(),jt(),ct=z(p.createJSDocMemberName(ct,or()),ht);Ne&&Sp(20);let tt=p.createJSDocNameReference(ct);return G(tt),z(tt,De)}g.parseJSDocNameReference=N;function L(De,Ne,ht){Vr("",De,99,void 0,1,0);let ct=fr(16777216,()=>Te(Ne,ht)),tt=co(ve,{languageVariant:0,text:De});return Hr(),ct?{jsDoc:ct,diagnostics:tt}:void 0}g.parseIsolatedJSDocComment=L;function W(De,Ne,ht){let ct=Ke,tt=ve.length,an=br,Fr=fr(16777216,()=>Te(Ne,ht));return yD(Fr,De),It&524288&&(ce||(ce=[]),Ln(ce,ve,tt)),Ke=ct,ve.length=tt,br=an,Fr}g.parseJSDocComment=W;let he;(De=>{De[De.BeginningOfLine=0]="BeginningOfLine",De[De.SawAsterisk=1]="SawAsterisk",De[De.SavingComments=2]="SavingComments",De[De.SavingBackticks=3]="SavingBackticks"})(he||(he={}));let ke;(De=>{De[De.Property=1]="Property",De[De.Parameter=2]="Parameter",De[De.CallbackParameter=4]="CallbackParameter"})(ke||(ke={}));function Te(De=0,Ne){let ht=pt,ct=Ne===void 0?ht.length:De+Ne;if(Ne=ct-De,re.assert(De>=0),re.assert(De<=ct),re.assert(ct<=ht.length),!YK(ht,De))return;let tt,an,Fr,Cs,As,zn=[],Ai=[],nt=Ut;Ut|=1<<25;let qt=t.scanRange(De+3,Ne-5,Ks);return Ut=nt,qt;function Ks(){let V=1,pe,de=De-(ht.lastIndexOf(`
|
|
160
|
-
`,De)+1)+4;function Ae(ft){pe||(pe=de),zn.push(ft),de+=ft.length}for(jt();oo(5););oo(4)&&(V=0,de=0);e:for(;;){switch(A()){case 60:py(zn),As||(As=X()),gt(a(de)),V=0,pe=void 0;break;case 4:zn.push(t.getTokenText()),V=0,de=0;break;case 42:let ft=t.getTokenText();V===1?(V=2,Ae(ft)):(re.assert(V===0),V=1,de+=ft.length);break;case 5:re.assert(V!==2,"whitespace shouldn't come from the scanner while saving top-level comment text");let tr=t.getTokenText();pe!==void 0&&de+tr.length>pe&&zn.push(tr.slice(pe-de)),de+=tr.length;break;case 1:break e;case 82:V=2,Ae(t.getTokenValue());break;case 19:V=2;let gn=t.getTokenFullStart(),on=t.getTokenEnd()-1,Qr=x(on);if(Qr){Cs||so(zn),Ai.push(z(p.createJSDocText(zn.join("")),Cs??De,gn)),Ai.push(Qr),zn=[],Cs=t.getTokenEnd();break}default:V=2,Ae(t.getTokenText());break}V===2?Ct(!1):jt()}let Ce=zn.join("").trimEnd();Ai.length&&Ce.length&&Ai.push(z(p.createJSDocText(Ce),Cs??De,As)),Ai.length&&tt&&re.assertIsDefined(As,"having parsed tags implies that the end of the comment span should be set");let st=tt&&Cr(tt,an,Fr);return z(p.createJSDocComment(Ai.length?Cr(Ai,De,As):Ce.length?Ce:void 0,st),De,ct)}function so(V){for(;V.length&&(V[0]===`
|
|
161
|
-
`||V[0]==="\r");)V.shift()}function py(V){for(;V.length;){let pe=V[V.length-1].trimEnd();if(pe==="")V.pop();else if(pe.length<V[V.length-1].length){V[V.length-1]=pe;break}else break}}function ls(){for(;;){if(jt(),A()===1)return!0;if(!(A()===5||A()===4))return!1}}function Sn(){if(!((A()===5||A()===4)&&le(ls)))for(;A()===5||A()===4;)jt()}function Z(){if((A()===5||A()===4)&&le(ls))return"";let V=t.hasPrecedingLineBreak(),pe=!1,de="";for(;V&&A()===42||A()===5||A()===4;)de+=t.getTokenText(),A()===4?(V=!0,pe=!0,de=""):A()===42&&(V=!1),jt();return pe?de:""}function a(V){re.assert(A()===60);let pe=t.getTokenStart();jt();let de=ua(void 0),Ae=Z(),Ce;switch(de.escapedText){case"author":Ce=xA(pe,de,V,Ae);break;case"implements":Ce=EA(pe,de,V,Ae);break;case"augments":case"extends":Ce=bA(pe,de,V,Ae);break;case"class":case"constructor":Ce=ao(pe,p.createJSDocClassTag,de,V,Ae);break;case"public":Ce=ao(pe,p.createJSDocPublicTag,de,V,Ae);break;case"private":Ce=ao(pe,p.createJSDocPrivateTag,de,V,Ae);break;case"protected":Ce=ao(pe,p.createJSDocProtectedTag,de,V,Ae);break;case"readonly":Ce=ao(pe,p.createJSDocReadonlyTag,de,V,Ae);break;case"override":Ce=ao(pe,p.createJSDocOverrideTag,de,V,Ae);break;case"deprecated":ns=!0,Ce=ao(pe,p.createJSDocDeprecatedTag,de,V,Ae);break;case"this":Ce=PD(pe,de,V,Ae);break;case"enum":Ce=SA(pe,de,V,Ae);break;case"arg":case"argument":case"param":return io(pe,de,2,V);case"return":case"returns":Ce=yA(pe,de,V,Ae);break;case"template":Ce=ID(pe,de,V,Ae);break;case"type":Ce=kD(pe,de,V,Ae);break;case"typedef":Ce=_A(pe,de,V,Ae);break;case"callback":Ce=kA(pe,de,V,Ae);break;case"overload":Ce=wA(pe,de,V,Ae);break;case"satisfies":Ce=CA(pe,de,V,Ae);break;case"see":Ce=gA(pe,de,V,Ae);break;case"exception":case"throws":Ce=DA(pe,de,V,Ae);break;case"import":Ce=AA(pe,de,V,Ae);break;default:Ce=Be(pe,de,V,Ae);break}return Ce}function c(V,pe,de,Ae){return Ae||(de+=pe-V),h(de,Ae.slice(de))}function h(V,pe){let de=X(),Ae=[],Ce=[],st,ft=0,tr;function gn(cs){tr||(tr=V),Ae.push(cs),V+=cs.length}pe!==void 0&&(pe!==""&&gn(pe),ft=1);let on=A();e:for(;;){switch(on){case 4:ft=0,Ae.push(t.getTokenText()),V=0;break;case 60:t.resetTokenState(t.getTokenEnd()-1);break e;case 1:break e;case 5:re.assert(ft!==2&&ft!==3,"whitespace shouldn't come from the scanner while saving comment text");let cs=t.getTokenText();tr!==void 0&&V+cs.length>tr&&(Ae.push(cs.slice(tr-V)),ft=2),V+=cs.length;break;case 19:ft=2;let Yh=t.getTokenFullStart(),hu=t.getTokenEnd()-1,Zh=x(hu);Zh?(Ce.push(z(p.createJSDocText(Ae.join("")),st??de,Yh)),Ce.push(Zh),Ae=[],st=t.getTokenEnd()):gn(t.getTokenText());break;case 62:ft===3?ft=2:ft=3,gn(t.getTokenText());break;case 82:ft!==3&&(ft=2),gn(t.getTokenValue());break;case 42:if(ft===0){ft=1,V+=1;break}default:ft!==3&&(ft=2),gn(t.getTokenText());break}ft===2||ft===3?on=Ct(ft===3):on=jt()}so(Ae);let Qr=Ae.join("").trimEnd();if(Ce.length)return Qr.length&&Ce.push(z(p.createJSDocText(Qr),st??de)),Cr(Ce,de,t.getTokenEnd());if(Qr.length)return Qr}function x(V){let pe=Ie(O);if(!pe)return;jt(),Sn();let de=_(),Ae=[];for(;A()!==20&&A()!==4&&A()!==1;)Ae.push(t.getTokenText()),jt();let Ce=pe==="link"?p.createJSDocLink:pe==="linkcode"?p.createJSDocLinkCode:p.createJSDocLinkPlain;return z(Ce(de,Ae.join("")),V,t.getTokenEnd())}function _(){if(yr(A())){let V=X(),pe=Br();for(;lt(25);)pe=z(p.createQualifiedName(pe,A()===81?Rr(80,!1):Br()),V);for(;A()===81;)Xr(),jt(),pe=z(p.createJSDocMemberName(pe,or()),V);return pe}}function O(){if(Z(),A()===19&&jt()===60&&yr(jt())){let V=t.getTokenValue();if(ie(V))return V}}function ie(V){return V==="link"||V==="linkcode"||V==="linkplain"}function Be(V,pe,de,Ae){return z(p.createJSDocUnknownTag(pe,c(V,X(),de,Ae)),V)}function gt(V){V&&(tt?tt.push(V):(tt=[V],an=V.pos),Fr=V.end)}function kr(){return Z(),A()===19?F():void 0}function vs(){let V=oo(23);V&&Sn();let pe=oo(62),de=OA();return pe&&jm(62),V&&(Sn(),nr(64)&&gr(),Y(24)),{name:de,isBracketed:V}}function _n(V){switch(V.kind){case 151:return!0;case 189:return _n(V.elementType);default:return S8(V)&&zt(V.typeName)&&V.typeName.escapedText==="Object"&&!V.typeArguments}}function io(V,pe,de,Ae){let Ce=kr(),st=!Ce;Z();let{name:ft,isBracketed:tr}=vs(),gn=Z();st&&!le(O)&&(Ce=kr());let on=c(V,X(),Ae,gn),Qr=mA(Ce,ft,de,Ae);Qr&&(Ce=Qr,st=!0);let cs=de===1?p.createJSDocPropertyTag(pe,ft,tr,Ce,st,on):p.createJSDocParameterTag(pe,ft,tr,Ce,st,on);return z(cs,V)}function mA(V,pe,de,Ae){if(V&&_n(V.type)){let Ce=X(),st,ft;for(;st=Ie(()=>hy(de,Ae,pe));)st.kind===342||st.kind===349?ft=Pn(ft,st):st.kind===346&&dn(st.tagName,U.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);if(ft){let tr=z(p.createJSDocTypeLiteral(ft,V.type.kind===189),Ce);return z(p.createJSDocTypeExpression(tr),Ce)}}}function yA(V,pe,de,Ae){Yr(tt,$K)&&Ht(pe.pos,t.getTokenStart(),U._0_tag_already_specified,rp(pe.escapedText));let Ce=kr();return z(p.createJSDocReturnTag(pe,Ce,c(V,X(),de,Ae)),V)}function kD(V,pe,de,Ae){Yr(tt,ED)&&Ht(pe.pos,t.getTokenStart(),U._0_tag_already_specified,rp(pe.escapedText));let Ce=F(!0),st=de!==void 0&&Ae!==void 0?c(V,X(),de,Ae):void 0;return z(p.createJSDocTypeTag(pe,Ce,st),V)}function gA(V,pe,de,Ae){let Ce=A()===23||le(()=>jt()===60&&yr(jt())&&ie(t.getTokenValue()))?void 0:N(),st=de!==void 0&&Ae!==void 0?c(V,X(),de,Ae):void 0;return z(p.createJSDocSeeTag(pe,Ce,st),V)}function DA(V,pe,de,Ae){let Ce=kr(),st=c(V,X(),de,Ae);return z(p.createJSDocThrowsTag(pe,Ce,st),V)}function xA(V,pe,de,Ae){let Ce=X(),st=TA(),ft=t.getTokenFullStart(),tr=c(V,ft,de,Ae);tr||(ft=t.getTokenFullStart());let gn=typeof tr!="string"?Cr(Hg([z(st,Ce,ft)],tr),Ce):st.text+tr;return z(p.createJSDocAuthorTag(pe,gn),V)}function TA(){let V=[],pe=!1,de=t.getToken();for(;de!==1&&de!==4;){if(de===30)pe=!0;else{if(de===60&&!pe)break;if(de===32&&pe){V.push(t.getTokenText()),t.resetTokenState(t.getTokenEnd());break}}V.push(t.getTokenText()),de=jt()}return p.createJSDocText(V.join(""))}function EA(V,pe,de,Ae){let Ce=wD();return z(p.createJSDocImplementsTag(pe,Ce,c(V,X(),de,Ae)),V)}function bA(V,pe,de,Ae){let Ce=wD();return z(p.createJSDocAugmentsTag(pe,Ce,c(V,X(),de,Ae)),V)}function CA(V,pe,de,Ae){let Ce=F(!1),st=de!==void 0&&Ae!==void 0?c(V,X(),de,Ae):void 0;return z(p.createJSDocSatisfiesTag(pe,Ce,st),V)}function AA(V,pe,de,Ae){let Ce=t.getTokenFullStart(),st;qe()&&(st=or());let ft=Kh(st,Ce,156,!0),tr=no(),gn=zh(),on=de!==void 0&&Ae!==void 0?c(V,X(),de,Ae):void 0;return z(p.createJSDocImportTag(pe,ft,tr,gn,on),V)}function wD(){let V=lt(19),pe=X(),de=vA();t.setSkipJsDocLeadingAsterisks(!0);let Ae=pu();t.setSkipJsDocLeadingAsterisks(!1);let Ce=p.createExpressionWithTypeArguments(de,Ae),st=z(Ce,pe);return V&&(Sn(),Y(20)),st}function vA(){let V=X(),pe=ua();for(;lt(25);){let de=ua();pe=z(P(pe,de),V)}return pe}function ao(V,pe,de,Ae,Ce){return z(pe(de,c(V,X(),Ae,Ce)),V)}function PD(V,pe,de,Ae){let Ce=F(!0);return Sn(),z(p.createJSDocThisTag(pe,Ce,c(V,X(),de,Ae)),V)}function SA(V,pe,de,Ae){let Ce=F(!0);return Sn(),z(p.createJSDocEnumTag(pe,Ce,c(V,X(),de,Ae)),V)}function _A(V,pe,de,Ae){let Ce=kr();Z();let st=dy();Sn();let ft=h(de),tr;if(!Ce||_n(Ce.type)){let on,Qr,cs,Yh=!1;for(;(on=Ie(()=>NA(de)))&&on.kind!==346;)if(Yh=!0,on.kind===345)if(Qr){let hu=Ze(U.A_JSDoc_typedef_comment_may_not_contain_multiple_type_tags);hu&&Df(hu,Du(Gt,pt,0,0,U.The_tag_was_first_specified_here));break}else Qr=on;else cs=Pn(cs,on);if(Yh){let hu=Ce&&Ce.type.kind===189,Zh=p.createJSDocTypeLiteral(cs,hu);Ce=Qr&&Qr.typeExpression&&!_n(Qr.typeExpression.type)?Qr.typeExpression:z(Zh,V),tr=Ce.end}}tr=tr||ft!==void 0?X():(st??Ce??pe).end,ft||(ft=c(V,tr,de,Ae));let gn=p.createJSDocTypedefTag(pe,Ce,st,ft);return z(gn,V,tr)}function dy(V){let pe=t.getTokenStart();if(!yr(A()))return;let de=ua();if(lt(25)){let Ae=dy(!0),Ce=p.createModuleDeclaration(void 0,de,Ae,V?8:void 0);return z(Ce,pe)}return V&&(de.flags|=4096),de}function FA(V){let pe=X(),de,Ae;for(;de=Ie(()=>hy(4,V));){if(de.kind===346){dn(de.tagName,U.A_JSDoc_template_tag_may_not_follow_a_typedef_callback_or_overload_tag);break}Ae=Pn(Ae,de)}return Cr(Ae||[],pe)}function ND(V,pe){let de=FA(pe),Ae=Ie(()=>{if(oo(60)){let Ce=a(pe);if(Ce&&Ce.kind===343)return Ce}});return z(p.createJSDocSignature(void 0,de,Ae),V)}function kA(V,pe,de,Ae){let Ce=dy();Sn();let st=h(de),ft=ND(V,de);st||(st=c(V,X(),de,Ae));let tr=st!==void 0?X():ft.end;return z(p.createJSDocCallbackTag(pe,ft,Ce,st),V,tr)}function wA(V,pe,de,Ae){Sn();let Ce=h(de),st=ND(V,de);Ce||(Ce=c(V,X(),de,Ae));let ft=Ce!==void 0?X():st.end;return z(p.createJSDocOverloadTag(pe,st,Ce),V,ft)}function PA(V,pe){for(;!zt(V)||!zt(pe);)if(!zt(V)&&!zt(pe)&&V.right.escapedText===pe.right.escapedText)V=V.left,pe=pe.left;else return!1;return V.escapedText===pe.escapedText}function NA(V){return hy(1,V)}function hy(V,pe,de){let Ae=!0,Ce=!1;for(;;)switch(jt()){case 60:if(Ae){let st=IA(V,pe);return st&&(st.kind===342||st.kind===349)&&de&&(zt(st.name)||!PA(de,st.name.left))?!1:st}Ce=!1;break;case 4:Ae=!0,Ce=!1;break;case 42:Ce&&(Ae=!1),Ce=!0;break;case 80:Ae=!1;break;case 1:return!1}}function IA(V,pe){re.assert(A()===60);let de=t.getTokenFullStart();jt();let Ae=ua(),Ce=Z(),st;switch(Ae.escapedText){case"type":return V===1&&kD(de,Ae);case"prop":case"property":st=1;break;case"arg":case"argument":case"param":st=6;break;case"template":return ID(de,Ae,pe,Ce);case"this":return PD(de,Ae,pe,Ce);default:return!1}return V&st?io(de,Ae,V,pe):!1}function BA(){let V=X(),pe=oo(23);pe&&Sn();let de=Kn(!1,!0),Ae=ua(U.Unexpected_token_A_type_parameter_name_was_expected_without_curly_braces),Ce;if(pe&&(Sn(),Y(64),Ce=fr(16777216,El),Y(24)),!So(Ae))return z(p.createTypeParameterDeclaration(de,Ae,void 0,Ce),V)}function LA(){let V=X(),pe=[];do{Sn();let de=BA();de!==void 0&&pe.push(de),Z()}while(oo(28));return Cr(pe,V)}function ID(V,pe,de,Ae){let Ce=A()===19?F():void 0,st=LA();return z(p.createJSDocTemplateTag(pe,Ce,st,c(V,X(),de,Ae)),V)}function oo(V){return A()===V?(jt(),!0):!1}function OA(){let V=ua();for(lt(23)&&Y(24);lt(25);){let pe=ua();lt(23)&&Y(24),V=Wm(V,pe)}return V}function ua(V){if(!yr(A()))return Rr(80,!V,V||U.Identifier_expected);hr++;let pe=t.getTokenStart(),de=t.getTokenEnd(),Ae=A(),Ce=yi(t.getTokenValue()),st=z(T(Ce,Ae),pe,de);return jt(),st}}})(Qh=e.JSDocParser||(e.JSDocParser={}))})(Fo||(Fo={}));var yT=new WeakSet;function cz(e){yT.has(e)&&re.fail("Source file has already been incrementally parsed"),yT.add(e)}var G8=new WeakSet;function pz(e){return G8.has(e)}function n2(e){G8.add(e)}var im;(e=>{function t(m,D,T,S){if(S=S||re.shouldAssert(2),p(m,D,T,S),iR(T))return m;if(m.statements.length===0)return Fo.parseSourceFile(m.fileName,D,m.languageVersion,void 0,!0,m.scriptKind,m.setExternalModuleIndicator,m.jsDocParsingMode);cz(m),Fo.fixupParentReferences(m);let v=m.text,E=d(m),C=u(m,T);p(m,D,C,S),re.assert(C.span.start<=T.span.start),re.assert(Ws(C.span)===Ws(T.span)),re.assert(Ws(xc(C))===Ws(xc(T)));let P=xc(C).length-C.span.length;l(m,C.span.start,Ws(C.span),Ws(xc(C)),P,v,D,S);let k=Fo.parseSourceFile(m.fileName,D,m.languageVersion,E,!0,m.scriptKind,m.setExternalModuleIndicator,m.jsDocParsingMode);return k.commentDirectives=r(m.commentDirectives,k.commentDirectives,C.span.start,Ws(C.span),P,v,D,S),k.impliedNodeFormat=m.impliedNodeFormat,UK(m,k),k}e.updateSourceFile=t;function r(m,D,T,S,v,E,C,P){if(!m)return D;let k,w=!1;for(let I of m){let{range:oe,type:ee}=I;if(oe.end<T)k=Pn(k,I);else if(oe.pos>S){B();let me={range:{pos:oe.pos+v,end:oe.end+v},type:ee};k=Pn(k,me),P&&re.assert(E.substring(oe.pos,oe.end)===C.substring(me.range.pos,me.range.end))}}return B(),k;function B(){w||(w=!0,k?D&&k.push(...D):k=D)}}function n(m,D,T,S,v,E,C){T?k(m):P(m);return;function P(w){let B="";if(C&&s(w)&&(B=v.substring(w.pos,w.end)),W3(w,D),_a(w,w.pos+S,w.end+S),C&&s(w)&&re.assert(B===E.substring(w.pos,w.end)),Zr(w,P,k),vo(w))for(let I of w.jsDoc)P(I);o(w,C)}function k(w){_a(w,w.pos+S,w.end+S);for(let B of w)P(B)}}function s(m){switch(m.kind){case 11:case 9:case 80:return!0}return!1}function i(m,D,T,S,v){re.assert(m.end>=D,"Adjusting an element that was entirely before the change range"),re.assert(m.pos<=T,"Adjusting an element that was entirely after the change range"),re.assert(m.pos<=m.end);let E=Math.min(m.pos,S),C=m.end>=T?m.end+v:Math.min(m.end,S);if(re.assert(E<=C),m.parent){let P=m.parent;re.assertGreaterThanOrEqual(E,P.pos),re.assertLessThanOrEqual(C,P.end)}_a(m,E,C)}function o(m,D){if(D){let T=m.pos,S=v=>{re.assert(v.pos>=T),T=v.end};if(vo(m))for(let v of m.jsDoc)S(v);Zr(m,S),re.assert(T<=m.end)}}function l(m,D,T,S,v,E,C,P){k(m);return;function k(B){if(re.assert(B.pos<=B.end),B.pos>T){n(B,m,!1,v,E,C,P);return}let I=B.end;if(I>=D){if(n2(B),W3(B,m),i(B,D,T,S,v),Zr(B,k,w),vo(B))for(let oe of B.jsDoc)k(oe);o(B,P);return}re.assert(I<D)}function w(B){if(re.assert(B.pos<=B.end),B.pos>T){n(B,m,!0,v,E,C,P);return}let I=B.end;if(I>=D){n2(B),i(B,D,T,S,v);for(let oe of B)k(oe);return}re.assert(I<D)}}function u(m,D){let T=D.span.start;for(let E=0;T>0&&E<=1;E++){let C=f(m,T);re.assert(C.pos<=T);let P=C.pos;T=Math.max(0,P-1)}let S=sR(T,Ws(D.span)),v=D.newLength+(D.span.start-T);return HC(S,v)}function f(m,D){let T=m,S;if(Zr(m,E),S){let C=v(S);C.pos>T.pos&&(T=C)}return T;function v(C){for(;;){let P=XU(C);if(P)C=P;else return C}}function E(C){if(!So(C))if(C.pos<=D){if(C.pos>=T.pos&&(T=C),D<C.end)return Zr(C,E),!0;re.assert(C.end<=D),S=C}else return re.assert(C.pos>D),!0}}function p(m,D,T,S){let v=m.text;if(T&&(re.assert(v.length-T.span.length+T.newLength===D.length),S||re.shouldAssert(3))){let E=v.substr(0,T.span.start),C=D.substr(0,T.span.start);re.assert(E===C);let P=v.substring(Ws(T.span),v.length),k=D.substring(Ws(xc(T)),D.length);re.assert(P===k)}}function d(m){let D=m.statements,T=0;re.assert(T<D.length);let S=D[T],v=-1;return{currentNode(C){return C!==v&&(S&&S.end===C&&T<D.length-1&&(T++,S=D[T]),(!S||S.pos!==C)&&E(C)),v=C,re.assert(!S||S.pos===C),S}};function E(C){D=void 0,T=-1,S=void 0,Zr(m,P,k);return;function P(w){return C>=w.pos&&C<w.end?(Zr(w,P,k),!0):!1}function k(w){if(C>=w.pos&&C<w.end)for(let B=0;B<w.length;B++){let I=w[B];if(I){if(I.pos===C)return D=w,T=B,S=I,!0;if(I.pos<C&&C<I.end)return Zr(I,P,k),!0}}return!1}}}e.createSyntaxCursor=d;let y;(m=>{m[m.Value=-1]="Value"})(y||(y={}))})(im||(im={}));function dz(e){return hz(e)!==void 0}function hz(e){let t=kJ(e,dq);if(t)return t;if(vJ(e,".ts")){let r=LC(e),n=r.lastIndexOf(".d.");if(n>=0)return r.substring(n)}}function fz(e,t,r,n){if(e){if(e==="import")return 99;if(e==="require")return 1;n(t,r-t,U.resolution_mode_should_be_either_require_or_import)}}function mz(e,t){let r=[];for(let n of W0(t,0)||xr){let s=t.substring(n.pos,n.end);Tz(r,n,s)}e.pragmas=new Map;for(let n of r){if(e.pragmas.has(n.name)){let s=e.pragmas.get(n.name);s instanceof Array?s.push(n.args):e.pragmas.set(n.name,[s,n.args]);continue}e.pragmas.set(n.name,n.args)}}function yz(e,t){e.checkJsDirective=void 0,e.referencedFiles=[],e.typeReferenceDirectives=[],e.libReferenceDirectives=[],e.amdDependencies=[],e.hasNoDefaultLib=!1,e.pragmas.forEach((r,n)=>{switch(n){case"reference":{let s=e.referencedFiles,i=e.typeReferenceDirectives,o=e.libReferenceDirectives;Qn(Hy(r),l=>{let{types:u,lib:f,path:p,["resolution-mode"]:d,preserve:y}=l.arguments,m=y==="true"?!0:void 0;if(l.arguments["no-default-lib"]==="true")e.hasNoDefaultLib=!0;else if(u){let D=fz(d,u.pos,u.end,t);i.push({pos:u.pos,end:u.end,fileName:u.value,...D?{resolutionMode:D}:{},...m?{preserve:m}:{}})}else f?o.push({pos:f.pos,end:f.end,fileName:f.value,...m?{preserve:m}:{}}):p?s.push({pos:p.pos,end:p.end,fileName:p.value,...m?{preserve:m}:{}}):t(l.range.pos,l.range.end-l.range.pos,U.Invalid_reference_directive_syntax)});break}case"amd-dependency":{e.amdDependencies=R0(Hy(r),s=>({name:s.arguments.name,path:s.arguments.path}));break}case"amd-module":{if(r instanceof Array)for(let s of r)e.moduleName&&t(s.range.pos,s.range.end-s.range.pos,U.An_AMD_module_cannot_have_multiple_name_assignments),e.moduleName=s.arguments.name;else e.moduleName=r.arguments.name;break}case"ts-nocheck":case"ts-check":{Qn(Hy(r),s=>{(!e.checkJsDirective||s.range.pos>e.checkJsDirective.pos)&&(e.checkJsDirective={enabled:n==="ts-check",end:s.range.end,pos:s.range.pos})});break}case"jsx":case"jsxfrag":case"jsximportsource":case"jsxruntime":return;default:re.fail("Unhandled pragma kind")}})}var s0=new Map;function gz(e){if(s0.has(e))return s0.get(e);let t=new RegExp(`(\\s${e}\\s*=\\s*)(?:(?:'([^']*)')|(?:"([^"]*)"))`,"im");return s0.set(e,t),t}var Dz=/^\/\/\/\s*<(\S+)\s.*?\/>/m,xz=/^\/\/\/?\s*@([^\s:]+)((?:[^\S\r\n]|:).*)?$/m;function Tz(e,t,r){let n=t.kind===2&&Dz.exec(r);if(n){let i=n[1].toLowerCase(),o=BC[i];if(!o||!(o.kind&1))return;if(o.args){let l={};for(let u of o.args){let f=gz(u.name).exec(r);if(!f&&!u.optional)return;if(f){let p=f[2]||f[3];if(u.captureSpan){let d=t.pos+f.index+f[1].length+1;l[u.name]={value:p,pos:d,end:d+p.length}}else l[u.name]=p}}e.push({name:i,args:{arguments:l,range:t}})}else e.push({name:i,args:{arguments:{},range:t}});return}let s=t.kind===2&&xz.exec(r);if(s)return gT(e,t,2,s);if(t.kind===3){let i=/@(\S+)(\s+(?:\S.*)?)?$/gm,o;for(;o=i.exec(r);)gT(e,t,4,o)}}function gT(e,t,r,n){if(!n)return;let s=n[1].toLowerCase(),i=BC[s];if(!i||!(i.kind&r))return;let o=n[2],l=Ez(i,o);l!=="fail"&&e.push({name:s,args:{arguments:l,range:t}})}function Ez(e,t){if(!t)return{};if(!e.args)return{};let r=t.trim().split(/\s+/),n={};for(let s=0;s<e.args.length;s++){let i=e.args[s];if(!r[s]&&!i.optional)return"fail";if(i.captureSpan)return re.fail("Capture spans not yet implemented for non-xml pragmas");n[i.name]=r[s]}return n}function ga(e,t){return e.kind!==t.kind?!1:e.kind===80?e.escapedText===t.escapedText:e.kind===110?!0:e.kind===296?e.namespace.escapedText===t.namespace.escapedText&&e.name.escapedText===t.name.escapedText:e.name.escapedText===t.name.escapedText&&ga(e.expression,t.expression)}var Vc=nD(Qg.Latest,!0);function Q8(e,t,r,n){let s=oD(e)?new AD(e,t,r):e===80?new Z8(80,t,r):e===81?new eA(81,t,r):new Y8(e,t,r);return s.parent=n,s.flags=n.flags&101441536,s}var AD=class{constructor(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.modifierFlagsCache=0,this.transformFlags=0,this.parent=void 0,this.original=void 0,this.emitNode=void 0}assertHasRealPosition(e){re.assert(!ap(this.pos)&&!ap(this.end),e||"Node must have a real position for this operation")}getSourceFile(){return Sa(this)}getStart(e,t){return this.assertHasRealPosition(),Zf(this,e,t)}getFullStart(){return this.assertHasRealPosition(),this.pos}getEnd(){return this.assertHasRealPosition(),this.end}getWidth(e){return this.assertHasRealPosition(),this.getEnd()-this.getStart(e)}getFullWidth(){return this.assertHasRealPosition(),this.end-this.pos}getLeadingTriviaWidth(e){return this.assertHasRealPosition(),this.getStart(e)-this.pos}getFullText(e){return this.assertHasRealPosition(),(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return this.assertHasRealPosition(),e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(e){return this.getChildren(e).length}getChildAt(e,t){return this.getChildren(t)[e]}getChildren(e=Sa(this)){return this.assertHasRealPosition("Node without a real position cannot be scanned and thus has no token nodes - use forEachChild and collect the result if that's fine"),z8(this,e)??RK(this,e,bz(this,e))}getFirstToken(e){this.assertHasRealPosition();let t=this.getChildren(e);if(!t.length)return;let r=xC(t,n=>n.kind<310||n.kind>352);return r.kind<167?r:r.getFirstToken(e)}getLastToken(e){this.assertHasRealPosition();let t=this.getChildren(e),r=$u(t);if(r)return r.kind<167?r:r.getLastToken(e)}forEachChild(e,t){return Zr(this,e,t)}};function bz(e,t){let r=[];if(YR(e))return e.forEachChild(o=>{r.push(o)}),r;Vc.setText((t||e.getSourceFile()).text);let n=e.pos,s=o=>{Hc(r,n,o.pos,e),r.push(o),n=o.end},i=o=>{Hc(r,n,o.pos,e),r.push(Cz(o,e)),n=o.end};return Qn(e.jsDoc,s),n=e.pos,e.forEachChild(s,i),Hc(r,n,e.end,e),Vc.setText(void 0),r}function Hc(e,t,r,n){for(Vc.resetTokenState(t);t<r;){let s=Vc.scan(),i=Vc.getTokenEnd();if(i<=r){if(s===80){if(Dq(n))continue;re.fail(`Did not expect ${re.formatSyntaxKind(n.kind)} to have an Identifier in its trivia`)}e.push(Q8(s,t,i,n))}if(t=i,s===1)break}}function Cz(e,t){let r=Q8(353,e.pos,e.end,t),n=[],s=e.pos;for(let i of e)Hc(n,s,i.pos,t),n.push(i),s=i.end;return Hc(n,s,e.end,t),r._children=n,r}var vD=class{constructor(e,t,r){this.pos=t,this.end=r,this.kind=e,this.id=0,this.flags=0,this.transformFlags=0,this.parent=void 0,this.emitNode=void 0}getSourceFile(){return Sa(this)}getStart(e,t){return Zf(this,e,t)}getFullStart(){return this.pos}getEnd(){return this.end}getWidth(e){return this.getEnd()-this.getStart(e)}getFullWidth(){return this.end-this.pos}getLeadingTriviaWidth(e){return this.getStart(e)-this.pos}getFullText(e){return(e||this.getSourceFile()).text.substring(this.pos,this.end)}getText(e){return e||(e=this.getSourceFile()),e.text.substring(this.getStart(e),this.getEnd())}getChildCount(){return this.getChildren().length}getChildAt(e){return this.getChildren()[e]}getChildren(){return this.kind===1&&this.jsDoc||xr}getFirstToken(){}getLastToken(){}forEachChild(){}},Az=class{constructor(e,t){this.flags=e,this.escapedName=t,this.declarations=void 0,this.valueDeclaration=void 0,this.id=0,this.mergeId=0,this.parent=void 0,this.members=void 0,this.exports=void 0,this.exportSymbol=void 0,this.constEnumOnlyModule=void 0,this.isReferenced=void 0,this.lastAssignmentPos=void 0,this.links=void 0}getFlags(){return this.flags}get name(){return V0(this)}getEscapedName(){return this.escapedName}getName(){return this.name}getDeclarations(){return this.declarations}getDocumentationComment(e){if(!this.documentationComment)if(this.documentationComment=xr,!this.declarations&&N3(this)&&this.links.target&&N3(this.links.target)&&this.links.target.links.tupleLabelDeclaration){let t=this.links.target.links.tupleLabelDeclaration;this.documentationComment=Ic([t],e)}else this.documentationComment=Ic(this.declarations,e);return this.documentationComment}getContextualDocumentationComment(e,t){if(e){if(gf(e)&&(this.contextualGetAccessorDocumentationComment||(this.contextualGetAccessorDocumentationComment=xr,this.contextualGetAccessorDocumentationComment=Ic(Pi(this.declarations,gf),t)),_c(this.contextualGetAccessorDocumentationComment)))return this.contextualGetAccessorDocumentationComment;if(yf(e)&&(this.contextualSetAccessorDocumentationComment||(this.contextualSetAccessorDocumentationComment=xr,this.contextualSetAccessorDocumentationComment=Ic(Pi(this.declarations,yf),t)),_c(this.contextualSetAccessorDocumentationComment)))return this.contextualSetAccessorDocumentationComment}return this.getDocumentationComment(t)}getJsDocTags(e){return this.tags===void 0&&(this.tags=xr,this.tags=Mf(this.declarations,e)),this.tags}getContextualJsDocTags(e,t){if(e){if(gf(e)&&(this.contextualGetAccessorTags||(this.contextualGetAccessorTags=xr,this.contextualGetAccessorTags=Mf(Pi(this.declarations,gf),t)),_c(this.contextualGetAccessorTags)))return this.contextualGetAccessorTags;if(yf(e)&&(this.contextualSetAccessorTags||(this.contextualSetAccessorTags=xr,this.contextualSetAccessorTags=Mf(Pi(this.declarations,yf),t)),_c(this.contextualSetAccessorTags)))return this.contextualSetAccessorTags}return this.getJsDocTags(t)}},Y8=class extends vD{constructor(e,t,r){super(e,t,r)}},Z8=class extends vD{constructor(e,t,r){super(e,t,r)}get text(){return jn(this)}},eA=class extends vD{constructor(e,t,r){super(e,t,r)}get text(){return jn(this)}},vz=class{constructor(e,t){this.flags=t,this.checker=e}getFlags(){return this.flags}getSymbol(){return this.symbol}getProperties(){return this.checker.getPropertiesOfType(this)}getProperty(e){return this.checker.getPropertyOfType(this,e)}getApparentProperties(){return this.checker.getAugmentedPropertiesOfType(this)}getCallSignatures(){return this.checker.getSignaturesOfType(this,0)}getConstructSignatures(){return this.checker.getSignaturesOfType(this,1)}getStringIndexType(){return this.checker.getIndexTypeOfType(this,0)}getNumberIndexType(){return this.checker.getIndexTypeOfType(this,1)}getBaseTypes(){return this.isClassOrInterface()?this.checker.getBaseTypes(this):void 0}isNullableType(){return this.checker.isNullableType(this)}getNonNullableType(){return this.checker.getNonNullableType(this)}getNonOptionalType(){return this.checker.getNonOptionalType(this)}getConstraint(){return this.checker.getBaseConstraintOfType(this)}getDefault(){return this.checker.getDefaultFromTypeParameter(this)}isUnion(){return!!(this.flags&1048576)}isIntersection(){return!!(this.flags&2097152)}isUnionOrIntersection(){return!!(this.flags&3145728)}isLiteral(){return!!(this.flags&2432)}isStringLiteral(){return!!(this.flags&128)}isNumberLiteral(){return!!(this.flags&256)}isTypeParameter(){return!!(this.flags&262144)}isClassOrInterface(){return!!(e0(this)&3)}isClass(){return!!(e0(this)&1)}isIndexType(){return!!(this.flags&4194304)}get typeArguments(){if(e0(this)&4)return this.checker.getTypeArguments(this)}},Sz=class{constructor(e,t){this.flags=t,this.checker=e}getDeclaration(){return this.declaration}getTypeParameters(){return this.typeParameters}getParameters(){return this.parameters}getReturnType(){return this.checker.getReturnTypeOfSignature(this)}getTypeParameterAtPosition(e){let t=this.checker.getParameterType(this,e);if(t.isIndexType()&&gq(t.type)){let r=t.type.getConstraint();if(r)return this.checker.getIndexType(r)}return t}getDocumentationComment(){return this.documentationComment||(this.documentationComment=Ic(U0(this.declaration),this.checker))}getJsDocTags(){return this.jsDocTags||(this.jsDocTags=Mf(U0(this.declaration),this.checker))}};function tA(e){return e8(e).some(t=>t.tagName.text==="inheritDoc"||t.tagName.text==="inheritdoc")}function Mf(e,t){if(!e)return xr;let r=ts_JsDoc_exports.getJsDocTagsFromDeclarations(e,t);if(t&&(r.length===0||e.some(tA))){let n=new Set;for(let s of e){let i=rA(t,s,o=>{var l;if(!n.has(o))return n.add(o),s.kind===178||s.kind===179?o.getContextualJsDocTags(s,t):((l=o.declarations)==null?void 0:l.length)===1?o.getJsDocTags(t):void 0});i&&(r=[...i,...r])}}return r}function Ic(e,t){if(!e)return xr;let r=ts_JsDoc_exports.getJsDocCommentsFromDeclarations(e,t);if(t&&(r.length===0||e.some(tA))){let n=new Set;for(let s of e){let i=rA(t,s,o=>{if(!n.has(o))return n.add(o),s.kind===178||s.kind===179?o.getContextualDocumentationComment(s,t):o.getDocumentationComment(t)});i&&(r=r.length===0?i.slice():i.concat(lineBreakPart(),r))}}return r}function rA(e,t,r){var n;let s=((n=t.parent)==null?void 0:n.kind)===177?t.parent.parent:t.parent;if(!s)return;let i=MU(t);return Hj(kU(s),o=>{let l=e.getTypeAtLocation(o),u=i&&l.symbol?e.getTypeOfSymbol(l.symbol):l,f=e.getPropertyOfType(u,t.symbol.name);return f?r(f):void 0})}var _z=class extends AD{constructor(e,t,r){super(e,t,r)}update(e,t){return lz(this,e,t)}getLineAndCharacterOfPosition(e){return UC(this,e)}getLineStarts(){return z0(this)}getPositionOfLineAndCharacter(e,t,r){return WJ(z0(this),e,t,this.text,r)}getLineEndOfPosition(e){let{line:t}=this.getLineAndCharacterOfPosition(e),r=this.getLineStarts(),n;t+1>=r.length&&(n=this.getEnd()),n||(n=r[t+1]-1);let s=this.getFullText();return s[n]===`
|
|
162
|
-
`&&s[n-1]==="\r"?n-1:n}getNamedDeclarations(){return this.namedDeclarations||(this.namedDeclarations=this.computeNamedDeclarations()),this.namedDeclarations}computeNamedDeclarations(){let e=uJ();return this.forEachChild(s),e;function t(i){let o=n(i);o&&e.add(o,i)}function r(i){let o=e.get(i);return o||e.set(i,o=[]),o}function n(i){let o=iD(i);return o&&(b8(o)&&Gi(o.expression)?o.expression.name.text:n8(o)?getNameFromPropertyName(o):void 0)}function s(i){switch(i.kind){case 263:case 219:case 175:case 174:let o=i,l=n(o);if(l){let p=r(l),d=$u(p);d&&o.parent===d.parent&&o.symbol===d.symbol?o.body&&!d.body&&(p[p.length-1]=o):p.push(o)}Zr(i,s);break;case 264:case 232:case 265:case 266:case 267:case 268:case 272:case 282:case 277:case 274:case 275:case 178:case 179:case 188:t(i),Zr(i,s);break;case 170:if(!Ap(i,31))break;case 261:case 209:{let p=i;if(UR(p.name)){Zr(p.name,s);break}p.initializer&&s(p.initializer)}case 307:case 173:case 172:t(i);break;case 279:let u=i;u.exportClause&&(xK(u.exportClause)?Qn(u.exportClause.elements,s):s(u.exportClause.name));break;case 273:let f=i.importClause;f&&(f.name&&t(f.name),f.namedBindings&&(f.namedBindings.kind===275?t(f.namedBindings):Qn(f.namedBindings.elements,s)));break;case 227:cD(i)!==0&&t(i);default:Zr(i,s)}}}},Fz=class{constructor(e,t,r){this.fileName=e,this.text=t,this.skipTrivia=r||(n=>n)}getLineAndCharacterOfPosition(e){return UC(this,e)}};function kz(){return{getNodeConstructor:()=>AD,getTokenConstructor:()=>Y8,getIdentifierConstructor:()=>Z8,getPrivateIdentifierConstructor:()=>eA,getSourceFileConstructor:()=>_z,getSymbolConstructor:()=>Az,getTypeConstructor:()=>vz,getSignatureConstructor:()=>Sz,getSourceMapSourceConstructor:()=>Fz}}sq(kz());var nA=new Proxy({},{get:()=>!0}),sA=nA["4.8"];function si(e,t=!1){if(e!=null){if(sA){if(t||CD(e)){let r=dR(e);return r?[...r]:void 0}return}return e.modifiers?.filter(r=>!DD(r))}}function ku(e,t=!1){if(e!=null){if(sA){if(t||GK(e)){let r=pR(e);return r?[...r]:void 0}return}return e.decorators?.filter(DD)}}var wz={},iA=new Proxy({},{get:(e,t)=>t}),Pz=iA,Nz=iA,q=Pz,qr=Nz,Iz=nA["5.0"],Re=ot,Bz=new Set([Re.AmpersandAmpersandToken,Re.BarBarToken,Re.QuestionQuestionToken]),Lz=new Set([ot.AmpersandAmpersandEqualsToken,ot.AmpersandEqualsToken,ot.AsteriskAsteriskEqualsToken,ot.AsteriskEqualsToken,ot.BarBarEqualsToken,ot.BarEqualsToken,ot.CaretEqualsToken,ot.EqualsToken,ot.GreaterThanGreaterThanEqualsToken,ot.GreaterThanGreaterThanGreaterThanEqualsToken,ot.LessThanLessThanEqualsToken,ot.MinusEqualsToken,ot.PercentEqualsToken,ot.PlusEqualsToken,ot.QuestionQuestionEqualsToken,ot.SlashEqualsToken]),Oz=new Set([Re.AmpersandAmpersandToken,Re.AmpersandToken,Re.AsteriskAsteriskToken,Re.AsteriskToken,Re.BarBarToken,Re.BarToken,Re.CaretToken,Re.EqualsEqualsEqualsToken,Re.EqualsEqualsToken,Re.ExclamationEqualsEqualsToken,Re.ExclamationEqualsToken,Re.GreaterThanEqualsToken,Re.GreaterThanGreaterThanGreaterThanToken,Re.GreaterThanGreaterThanToken,Re.GreaterThanToken,Re.InKeyword,Re.InstanceOfKeyword,Re.LessThanEqualsToken,Re.LessThanLessThanToken,Re.LessThanToken,Re.MinusToken,Re.PercentToken,Re.PlusToken,Re.SlashToken]);function $z(e){return Lz.has(e.kind)}function Mz(e){return Bz.has(e.kind)}function jz(e){return Oz.has(e.kind)}function Ea(e){return er(e)}function Jz(e){return e.kind!==Re.SemicolonClassElement}function St(e,t){return si(t)?.some(r=>r.kind===e)===!0}function Rz(e){let t=si(e);return t==null?null:t[t.length-1]??null}function Uz(e){return e.kind===Re.CommaToken}function qz(e){return e.kind===Re.SingleLineCommentTrivia||e.kind===Re.MultiLineCommentTrivia}function Kz(e){return e.kind===Re.JSDocComment}function zz(e){if($z(e))return{type:q.AssignmentExpression,operator:Ea(e.kind)};if(Mz(e))return{type:q.LogicalExpression,operator:Ea(e.kind)};if(jz(e))return{type:q.BinaryExpression,operator:Ea(e.kind)};throw new Error(`Unexpected binary operator ${er(e.kind)}`)}function jf(e,t){let r=t.getLineAndCharacterOfPosition(e);return{column:r.character,line:r.line+1}}function To(e,t){let[r,n]=e.map(s=>jf(s,t));return{end:n,start:r}}function Wz(e){if(e.kind===ot.Block)switch(e.parent.kind){case ot.Constructor:case ot.GetAccessor:case ot.SetAccessor:case ot.ArrowFunction:case ot.FunctionExpression:case ot.FunctionDeclaration:case ot.MethodDeclaration:return!0;default:return!1}return!0}function xu(e,t){return[e.getStart(t),e.getEnd()]}function Vz(e){return e.kind>=Re.FirstToken&&e.kind<=Re.LastToken}function aA(e){return e.kind>=Re.JsxElement&&e.kind<=Re.JsxAttribute}function s2(e){return e.flags&Xn.Let?"let":(e.flags&Xn.AwaitUsing)===Xn.AwaitUsing?"await using":e.flags&Xn.Const?"const":e.flags&Xn.Using?"using":"var"}function fo(e){let t=si(e);if(t!=null)for(let r of t)switch(r.kind){case Re.PublicKeyword:return"public";case Re.ProtectedKeyword:return"protected";case Re.PrivateKeyword:return"private"}}function Ss(e,t,r){return n(t);function n(s){return PR(s)&&s.pos===e.end?s:rW(s.getChildren(r),i=>(i.pos<=e.pos&&i.end>e.end||i.pos===e.end)&&tW(i,r)?n(i):void 0)}}function Hz(e,t){let r=e;for(;r;){if(t(r))return r;r=r.parent}}function Xz(e){return!!Hz(e,aA)}function DT(e){return Nu(0,e,/&(?:#\d+|#x[\da-fA-F]+|[0-9a-zA-Z]+);/g,t=>{let r=t.slice(1,-1);if(r[0]==="#"){let n=r[1]==="x"?parseInt(r.slice(2),16):parseInt(r.slice(1),10);return n>1114111?t:String.fromCodePoint(n)}return wz[r]||t})}function Tu(e){return e.kind===Re.ComputedPropertyName}function xT(e){return!!e.questionToken}function oA(e){return e.type===q.ChainExpression}function Gz(e,t){return oA(t)&&e.expression.kind!==ot.ParenthesizedExpression}function Qz(e){if(e.kind===Re.NullKeyword)return qr.Null;if(e.kind>=Re.FirstKeyword&&e.kind<=Re.LastFutureReservedWord)return e.kind===Re.FalseKeyword||e.kind===Re.TrueKeyword?qr.Boolean:qr.Keyword;if(e.kind>=Re.FirstPunctuation&&e.kind<=Re.LastPunctuation)return qr.Punctuator;if(e.kind>=Re.NoSubstitutionTemplateLiteral&&e.kind<=Re.TemplateTail)return qr.Template;switch(e.kind){case Re.NumericLiteral:case Re.BigIntLiteral:return qr.Numeric;case Re.PrivateIdentifier:return qr.PrivateIdentifier;case Re.JsxText:return qr.JSXText;case Re.StringLiteral:return e.parent.kind===Re.JsxAttribute||e.parent.kind===Re.JsxElement?qr.JSXText:qr.String;case Re.RegularExpressionLiteral:return qr.RegularExpression;case Re.Identifier:case Re.ConstructorKeyword:case Re.GetKeyword:case Re.SetKeyword:}return e.kind===Re.Identifier&&(aA(e.parent)||e.parent.kind===Re.PropertyAccessExpression&&Xz(e))?qr.JSXIdentifier:qr.Identifier}function Yz(e,t){let r=e.kind===Re.JsxText?e.getFullStart():e.getStart(t),n=e.getEnd(),s=t.text.slice(r,n),i=Qz(e),o=[r,n],l=To(o,t);return i===qr.RegularExpression?{type:i,loc:l,range:o,regex:{flags:s.slice(s.lastIndexOf("/")+1),pattern:s.slice(1,s.lastIndexOf("/"))},value:s}:i===qr.PrivateIdentifier?{type:i,loc:l,range:o,value:s.slice(1)}:{type:i,loc:l,range:o,value:s}}function Zz(e){let t=[];function r(n){qz(n)||Kz(n)||(Vz(n)&&n.kind!==Re.EndOfFileToken?t.push(Yz(n,e)):n.getChildren(e).forEach(r))}return r(e),t}var eW=class extends Error{fileName;location;constructor(e,t,r){super(e),this.fileName=t,this.location=r,Object.defineProperty(this,"name",{configurable:!0,enumerable:!1,value:new.target.name})}get index(){return this.location.start.offset}get lineNumber(){return this.location.start.line}get column(){return this.location.start.column}};function SD(e,t,r,n=r){let[s,i]=[r,n].map(o=>{let{character:l,line:u}=t.getLineAndCharacterOfPosition(o);return{column:l,line:u+1,offset:o}});return new eW(e,t.fileName,{end:i,start:s})}function tW(e,t){return e.kind===Re.EndOfFileToken?!!e.jsDoc:e.getWidth(t)!==0}function rW(e,t){if(e!==void 0)for(let r=0;r<e.length;r++){let n=t(e[r],r);if(n!==void 0)return n}}function nW(e){return(Iz?oR(e):e.originalKeywordKind)===Re.ThisKeyword}function uA(e){return!!e&&e.kind===Re.Identifier&&nW(e)}function sW(e){if(!uA(e))return!1;for(;Oq(e.parent)&&e.parent.left===e;)e=e.parent;return e.parent.kind===Re.TypeQuery}function i2(e){switch(e.kind){case Re.Identifier:return!0;case Re.PropertyAccessExpression:case Re.ElementAccessExpression:return!(e.flags&Xn.OptionalChain);case Re.ParenthesizedExpression:case Re.TypeAssertionExpression:case Re.AsExpression:case Re.SatisfiesExpression:case Re.ExpressionWithTypeArguments:case Re.NonNullExpression:return i2(e.expression);default:return!1}}function iW(e){let t=si(e),r=e;for(;(!t||t.length===0)&&op(r.parent);){let n=si(r.parent);n?.length&&(t=n),r=r.parent}return t}function aW(e,t){return t.text.slice(e.pos,e.end).trimStart()||"(Missing)"}var Ue=ot;function oW(e){return e==null?!0:e.pos===e.end&&e.pos>=0&&e.kind!==Ue.EndOfFileToken}function TT(e){return!oW(e)}function uW(e){return St(Ue.AbstractKeyword,e)}function lW(e){if(e.parameters.length&&!K8(e)){let t=e.parameters[0];if(cW(t))return t}return null}function cW(e){return uA(e.name)}function pW(e){return XC(e.parent,s8)}function dW(e){switch(e.kind){case Ue.ClassDeclaration:return!0;case Ue.ClassExpression:return!0;case Ue.PropertyDeclaration:{let{parent:t}=e;return!!(sm(t)||Mu(t)&&!uW(e))}case Ue.GetAccessor:case Ue.SetAccessor:case Ue.MethodDeclaration:{let{parent:t}=e;return!!e.body&&(sm(t)||Mu(t))}case Ue.Parameter:{let{parent:t}=e,r=t.parent;return!!t&&"body"in t&&!!t.body&&(t.kind===Ue.Constructor||t.kind===Ue.MethodDeclaration||t.kind===Ue.SetAccessor)&&lW(t)!==e&&!!r&&r.kind===Ue.ClassDeclaration}}return!1}function hW(e){return!!("illegalDecorators"in e&&e.illegalDecorators?.length)}function Lr(e,t){let r=e.getSourceFile(),n=e.getStart(r),s=e.getEnd();throw SD(t,r,n,s)}function fW(e){hW(e)&&Lr(e.illegalDecorators[0],"Decorators are not valid here.");for(let t of ku(e,!0)??[])dW(e)||(Z0(e)&&!TT(e.body)?Lr(t,"A decorator can only decorate a method implementation, not an overload."):Lr(t,"Decorators are not valid here."));for(let t of si(e,!0)??[]){if(t.kind!==Ue.ReadonlyKeyword&&((e.kind===Ue.PropertySignature||e.kind===Ue.MethodSignature)&&Lr(t,`'${er(t.kind)}' modifier cannot appear on a type member`),e.kind===Ue.IndexSignature&&(t.kind!==Ue.StaticKeyword||!Mu(e.parent))&&Lr(t,`'${er(t.kind)}' modifier cannot appear on an index signature`)),t.kind!==Ue.InKeyword&&t.kind!==Ue.OutKeyword&&t.kind!==Ue.ConstKeyword&&e.kind===Ue.TypeParameter&&Lr(t,`'${er(t.kind)}' modifier cannot appear on a type parameter`),(t.kind===Ue.InKeyword||t.kind===Ue.OutKeyword)&&(e.kind!==Ue.TypeParameter||!(TD(e.parent)||Mu(e.parent)||O8(e.parent)))&&Lr(t,`'${er(t.kind)}' modifier can only appear on a type parameter of a class, interface or type alias`),t.kind===Ue.ReadonlyKeyword&&e.kind!==Ue.PropertyDeclaration&&e.kind!==Ue.PropertySignature&&e.kind!==Ue.IndexSignature&&e.kind!==Ue.Parameter&&Lr(t,"'readonly' modifier can only appear on a property declaration or index signature."),t.kind===Ue.DeclareKeyword&&Mu(e.parent)&&!rm(e)&&Lr(t,`'${er(t.kind)}' modifier cannot appear on class elements of this kind.`),t.kind===Ue.DeclareKeyword&&Om(e)){let r=s2(e.declarationList);(r==="using"||r==="await using")&&Lr(t,`'declare' modifier cannot appear on a '${r}' declaration.`)}if(t.kind===Ue.AbstractKeyword&&e.kind!==Ue.ClassDeclaration&&e.kind!==Ue.ConstructorType&&e.kind!==Ue.MethodDeclaration&&e.kind!==Ue.PropertyDeclaration&&e.kind!==Ue.GetAccessor&&e.kind!==Ue.SetAccessor&&Lr(t,`'${er(t.kind)}' modifier can only appear on a class, method, or property declaration.`),(t.kind===Ue.StaticKeyword||t.kind===Ue.PublicKeyword||t.kind===Ue.ProtectedKeyword||t.kind===Ue.PrivateKeyword)&&(e.parent.kind===Ue.ModuleBlock||e.parent.kind===Ue.SourceFile)&&Lr(t,`'${er(t.kind)}' modifier cannot appear on a module or namespace element.`),t.kind===Ue.AccessorKeyword&&e.kind!==Ue.PropertyDeclaration&&Lr(t,"'accessor' modifier can only appear on a property declaration."),t.kind===Ue.AsyncKeyword&&e.kind!==Ue.MethodDeclaration&&e.kind!==Ue.FunctionDeclaration&&e.kind!==Ue.FunctionExpression&&e.kind!==Ue.ArrowFunction&&Lr(t,"'async' modifier cannot be used here."),e.kind===Ue.Parameter&&(t.kind===Ue.StaticKeyword||t.kind===Ue.ExportKeyword||t.kind===Ue.DeclareKeyword||t.kind===Ue.AsyncKeyword)&&Lr(t,`'${er(t.kind)}' modifier cannot appear on a parameter.`),t.kind===Ue.PublicKeyword||t.kind===Ue.ProtectedKeyword||t.kind===Ue.PrivateKeyword)for(let r of si(e)??[])r!==t&&(r.kind===Ue.PublicKeyword||r.kind===Ue.ProtectedKeyword||r.kind===Ue.PrivateKeyword)&&Lr(r,"Accessibility modifier already seen.");if(e.kind===Ue.Parameter&&(t.kind===Ue.PublicKeyword||t.kind===Ue.PrivateKeyword||t.kind===Ue.ProtectedKeyword||t.kind===Ue.ReadonlyKeyword||t.kind===Ue.OverrideKeyword)){let r=pW(e);r?.kind===Ue.Constructor&&TT(r.body)||Lr(t,"A parameter property is only allowed in a constructor implementation.");let n=e;n.dotDotDotToken&&Lr(t,"A parameter property cannot be a rest parameter."),(n.name.kind===Ue.ArrayBindingPattern||n.name.kind===Ue.ObjectBindingPattern)&&Lr(t,"A parameter property may not be declared using a binding pattern.")}t.kind!==Ue.AsyncKeyword&&e.kind===Ue.MethodDeclaration&&e.parent.kind===Ue.ObjectLiteralExpression&&Lr(t,`'${er(t.kind)}' modifier cannot be used here.`)}}var $=ot;function mW(e){return SD("message"in e&&e.message||e.messageText,e.file,e.start)}function yW(e){return Gi(e)&&zt(e.name)&&lA(e.expression)}function lA(e){return e.kind===$.Identifier||yW(e)}var gW=class{allowPattern=!1;ast;esTreeNodeToTSNodeMap=new WeakMap;options;tsNodeToESTreeNodeMap=new WeakMap;constructor(e,t){this.ast=e,this.options={...t}}#t(e,t){let r=t===ot.ForInStatement?"for...in":"for...of";if(gK(e)){e.declarations.length!==1&&this.#e(e,`Only a single variable declaration is allowed in a '${r}' statement.`);let n=e.declarations[0];n.initializer?this.#e(n,`The variable declaration of a '${r}' statement cannot have an initializer.`):n.type&&this.#e(n,`The variable declaration of a '${r}' statement cannot have a type annotation.`),t===ot.ForInStatement&&e.flags&Xn.Using&&this.#e(e,"The left-hand side of a 'for...in' statement cannot be a 'using' declaration.")}else!i2(e)&&e.kind!==ot.ObjectLiteralExpression&&e.kind!==ot.ArrayLiteralExpression&&this.#e(e,`The left-hand side of a '${r}' statement must be a variable or a property access.`)}#r(e){this.options.allowInvalidAST||fW(e)}#e(e,t){if(this.options.allowInvalidAST)return;let r,n;throw Array.isArray(e)?[r,n]=e:typeof e=="number"?r=n=e:(r=e.getStart(this.ast),n=e.getEnd()),SD(t,this.ast,r,n)}#n(e,t,r,n=!1){let s=n;return Object.defineProperty(e,t,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>e[r]:()=>(s||((void 0)(`The '${t}' property is deprecated on ${e.type} nodes. Use '${r}' instead. See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.`,"DeprecationWarning"),s=!0),e[r]),set(i){Object.defineProperty(e,t,{enumerable:!0,value:i,writable:!0})}}),e}#s(e,t,r,n){let s=!1;return Object.defineProperty(e,t,{configurable:!0,get:this.options.suppressDeprecatedPropertyWarnings?()=>n:()=>{if(!s){let i=`The '${t}' property is deprecated on ${e.type} nodes.`;r&&(i+=` Use ${r} instead.`),i+=" See https://typescript-eslint.io/troubleshooting/faqs/general#the-key-property-is-deprecated-on-type-nodes-use-key-instead-warnings.",(void 0)(i,"DeprecationWarning"),s=!0}return n},set(i){Object.defineProperty(e,t,{enumerable:!0,value:i,writable:!0})}}),e}assertModuleSpecifier(e,t){!t&&e.moduleSpecifier==null&&this.#e(e,"Module specifier must be a string literal."),e.moduleSpecifier&&e.moduleSpecifier?.kind!==$.StringLiteral&&this.#e(e.moduleSpecifier,"Module specifier must be a string literal.")}convertBindingNameWithTypeAnnotation(e,t,r){let n=this.convertPattern(e);return t&&(n.typeAnnotation=this.convertTypeAnnotation(t,r),this.fixParentLocation(n,n.typeAnnotation.range)),n}convertBodyExpressions(e,t){let r=Wz(t);return e.map(n=>{let s=this.convertChild(n);if(r){if(s?.expression&&I8(n)&&Ru(n.expression)){let i=s.expression.raw;return s.directive=i.slice(1,-1),s}r=!1}return s}).filter(n=>n)}convertChainExpression(e,t){let{child:r,isOptional:n}=e.type===q.MemberExpression?{child:e.object,isOptional:e.optional}:e.type===q.CallExpression?{child:e.callee,isOptional:e.optional}:{child:e.expression,isOptional:!1},s=Gz(t,r);if(!s&&!n)return e;if(s&&oA(r)){let i=r.expression;e.type===q.MemberExpression?e.object=i:e.type===q.CallExpression?e.callee=i:e.expression=i}return this.createNode(t,{type:q.ChainExpression,expression:e})}convertChild(e,t){return this.converter(e,t,!1)}convertChildren(e,t){return e.map(r=>this.converter(r,t,!1))}convertPattern(e,t){return this.converter(e,t,!0)}convertTypeAnnotation(e,t){let r=t?.kind===$.FunctionType||t?.kind===$.ConstructorType?2:1,n=[e.getFullStart()-r,e.end],s=To(n,this.ast);return{type:q.TSTypeAnnotation,loc:s,range:n,typeAnnotation:this.convertChild(e)}}convertTypeArgumentsToTypeParameterInstantiation(e,t){let r=Ss(e,this.ast,this.ast),n=[e.pos-1,r.end];return e.length===0&&this.#e(n,"Type argument list cannot be empty."),this.createNode(t,{type:q.TSTypeParameterInstantiation,range:n,params:this.convertChildren(e)})}convertTSTypeParametersToTypeParametersDeclaration(e){let t=Ss(e,this.ast,this.ast),r=[e.pos-1,t.end];return e.length===0&&this.#e(r,"Type parameter list cannot be empty."),{type:q.TSTypeParameterDeclaration,loc:To(r,this.ast),range:r,params:this.convertChildren(e)}}convertParameters(e){return e?.length?e.map(t=>{let r=this.convertChild(t);return r.decorators=this.convertChildren(ku(t)??[]),r}):[]}converter(e,t,r){if(!e)return null;this.#r(e);let n=this.allowPattern;r!=null&&(this.allowPattern=r);let s=this.convertNode(e,t??e.parent);return this.registerTSNodeInNodeMap(e,s),this.allowPattern=n,s}convertImportAttributes(e){let t=e.attributes??e.assertClause;return this.convertChildren(t?.elements??[])}convertJSXIdentifier(e){let t=this.createNode(e,{type:q.JSXIdentifier,name:e.getText()});return this.registerTSNodeInNodeMap(e,t),t}convertJSXNamespaceOrIdentifier(e){if(e.kind===ot.JsxNamespacedName){let n=this.createNode(e,{type:q.JSXNamespacedName,name:this.createNode(e.name,{type:q.JSXIdentifier,name:e.name.text}),namespace:this.createNode(e.namespace,{type:q.JSXIdentifier,name:e.namespace.text})});return this.registerTSNodeInNodeMap(e,n),n}let t=e.getText(),r=t.indexOf(":");if(r>0){let n=xu(e,this.ast),s=this.createNode(e,{type:q.JSXNamespacedName,range:n,name:this.createNode(e,{type:q.JSXIdentifier,range:[n[0]+r+1,n[1]],name:t.slice(r+1)}),namespace:this.createNode(e,{type:q.JSXIdentifier,range:[n[0],n[0]+r],name:t.slice(0,r)})});return this.registerTSNodeInNodeMap(e,s),s}return this.convertJSXIdentifier(e)}convertJSXTagName(e,t){let r;switch(e.kind){case $.PropertyAccessExpression:e.name.kind===$.PrivateIdentifier&&this.#e(e.name,"Non-private identifier expected."),r=this.createNode(e,{type:q.JSXMemberExpression,object:this.convertJSXTagName(e.expression,t),property:this.convertJSXIdentifier(e.name)});break;case $.ThisKeyword:case $.Identifier:default:return this.convertJSXNamespaceOrIdentifier(e)}return this.registerTSNodeInNodeMap(e,r),r}convertMethodSignature(e){return this.createNode(e,{type:q.TSMethodSignature,accessibility:fo(e),computed:Tu(e.name),key:this.convertChild(e.name),kind:(()=>{switch(e.kind){case $.GetAccessor:return"get";case $.SetAccessor:return"set";case $.MethodSignature:return"method"}})(),optional:xT(e),params:this.convertParameters(e.parameters),readonly:St($.ReadonlyKeyword,e),returnType:e.type&&this.convertTypeAnnotation(e.type,e),static:St($.StaticKeyword,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}fixParentLocation(e,t){t[0]<e.range[0]&&(e.range[0]=t[0],e.loc.start=jf(e.range[0],this.ast)),t[1]>e.range[1]&&(e.range[1]=t[1],e.loc.end=jf(e.range[1],this.ast))}convertNode(e,t){switch(e.kind){case $.SourceFile:return this.createNode(e,{type:q.Program,range:[e.getStart(this.ast),e.endOfFileToken.end],body:this.convertBodyExpressions(e.statements,e),comments:void 0,sourceType:e.externalModuleIndicator?"module":"script",tokens:void 0});case $.Block:return this.createNode(e,{type:q.BlockStatement,body:this.convertBodyExpressions(e.statements,e)});case $.Identifier:return sW(e)?this.createNode(e,{type:q.ThisExpression}):this.createNode(e,{type:q.Identifier,decorators:[],name:e.text,optional:!1,typeAnnotation:void 0});case $.PrivateIdentifier:return this.createNode(e,{type:q.PrivateIdentifier,name:e.text.slice(1)});case $.WithStatement:return this.createNode(e,{type:q.WithStatement,body:this.convertChild(e.statement),object:this.convertChild(e.expression)});case $.ReturnStatement:return this.createNode(e,{type:q.ReturnStatement,argument:this.convertChild(e.expression)});case $.LabeledStatement:return this.createNode(e,{type:q.LabeledStatement,body:this.convertChild(e.statement),label:this.convertChild(e.label)});case $.ContinueStatement:return this.createNode(e,{type:q.ContinueStatement,label:this.convertChild(e.label)});case $.BreakStatement:return this.createNode(e,{type:q.BreakStatement,label:this.convertChild(e.label)});case $.IfStatement:return this.createNode(e,{type:q.IfStatement,alternate:this.convertChild(e.elseStatement),consequent:this.convertChild(e.thenStatement),test:this.convertChild(e.expression)});case $.SwitchStatement:return e.caseBlock.clauses.filter(r=>r.kind===$.DefaultClause).length>1&&this.#e(e,"A 'default' clause cannot appear more than once in a 'switch' statement."),this.createNode(e,{type:q.SwitchStatement,cases:this.convertChildren(e.caseBlock.clauses),discriminant:this.convertChild(e.expression)});case $.CaseClause:case $.DefaultClause:return this.createNode(e,{type:q.SwitchCase,consequent:this.convertChildren(e.statements),test:e.kind===$.CaseClause?this.convertChild(e.expression):null});case $.ThrowStatement:return e.expression.end===e.expression.pos&&this.#e(e,"A throw statement must throw an expression."),this.createNode(e,{type:q.ThrowStatement,argument:this.convertChild(e.expression)});case $.TryStatement:return this.createNode(e,{type:q.TryStatement,block:this.convertChild(e.tryBlock),finalizer:this.convertChild(e.finallyBlock),handler:this.convertChild(e.catchClause)});case $.CatchClause:return e.variableDeclaration?.initializer&&this.#e(e.variableDeclaration.initializer,"Catch clause variable cannot have an initializer."),this.createNode(e,{type:q.CatchClause,body:this.convertChild(e.block),param:e.variableDeclaration?this.convertBindingNameWithTypeAnnotation(e.variableDeclaration.name,e.variableDeclaration.type):null});case $.WhileStatement:return this.createNode(e,{type:q.WhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case $.DoStatement:return this.createNode(e,{type:q.DoWhileStatement,body:this.convertChild(e.statement),test:this.convertChild(e.expression)});case $.ForStatement:return this.createNode(e,{type:q.ForStatement,body:this.convertChild(e.statement),init:this.convertChild(e.initializer),test:this.convertChild(e.condition),update:this.convertChild(e.incrementor)});case $.ForInStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:q.ForInStatement,body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case $.ForOfStatement:return this.#t(e.initializer,e.kind),this.createNode(e,{type:q.ForOfStatement,await:!!(e.awaitModifier&&e.awaitModifier.kind===$.AwaitKeyword),body:this.convertChild(e.statement),left:this.convertPattern(e.initializer),right:this.convertChild(e.expression)});case $.FunctionDeclaration:{let r=St($.DeclareKeyword,e),n=St($.AsyncKeyword,e),s=!!e.asteriskToken;r?e.body?this.#e(e,"An implementation cannot be declared in ambient contexts."):n?this.#e(e,"'async' modifier cannot be used in an ambient context."):s&&this.#e(e,"Generators are not allowed in an ambient context."):!e.body&&s&&this.#e(e,"A function signature cannot be declared as a generator.");let i=this.createNode(e,{type:e.body?q.FunctionDeclaration:q.TSDeclareFunction,async:n,body:this.convertChild(e.body)||void 0,declare:r,expression:!1,generator:s,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,i)}case $.VariableDeclaration:{let r=!!e.exclamationToken,n=this.convertChild(e.initializer),s=this.convertBindingNameWithTypeAnnotation(e.name,e.type,e);return r&&(n?this.#e(e,"Declarations with initializers cannot also have definite assignment assertions."):(s.type!==q.Identifier||!s.typeAnnotation)&&this.#e(e,"Declarations with definite assignment assertions must also have type annotations.")),this.createNode(e,{type:q.VariableDeclarator,definite:r,id:s,init:n})}case $.VariableStatement:{let r=this.createNode(e,{type:q.VariableDeclaration,declarations:this.convertChildren(e.declarationList.declarations),declare:St($.DeclareKeyword,e),kind:s2(e.declarationList)});return r.declarations.length||this.#e(e,"A variable declaration list must have at least one variable declarator."),(r.kind==="using"||r.kind==="await using")&&e.declarationList.declarations.forEach((n,s)=>{r.declarations[s].init==null&&this.#e(n,`'${r.kind}' declarations must be initialized.`),r.declarations[s].id.type!==q.Identifier&&this.#e(n.name,`'${r.kind}' declarations may not have binding patterns.`)}),(r.declare||["await using","const","using"].includes(r.kind))&&e.declarationList.declarations.forEach((n,s)=>{r.declarations[s].definite&&this.#e(n,"A definite assignment assertion '!' is not permitted in this context.")}),r.declare&&e.declarationList.declarations.forEach((n,s)=>{r.declarations[s].init&&(["let","var"].includes(r.kind)||r.declarations[s].id.typeAnnotation)&&this.#e(n,"Initializers are not permitted in ambient contexts.")}),this.fixExports(e,r)}case $.VariableDeclarationList:{let r=this.createNode(e,{type:q.VariableDeclaration,declarations:this.convertChildren(e.declarations),declare:!1,kind:s2(e)});return(r.kind==="using"||r.kind==="await using")&&e.declarations.forEach((n,s)=>{r.declarations[s].init!=null&&this.#e(n,`'${r.kind}' declarations may not be initialized in for statement.`),r.declarations[s].id.type!==q.Identifier&&this.#e(n.name,`'${r.kind}' declarations may not have binding patterns.`)}),r}case $.ExpressionStatement:return this.createNode(e,{type:q.ExpressionStatement,directive:void 0,expression:this.convertChild(e.expression)});case $.ThisKeyword:return this.createNode(e,{type:q.ThisExpression});case $.ArrayLiteralExpression:return this.allowPattern?this.createNode(e,{type:q.ArrayPattern,decorators:[],elements:e.elements.map(r=>this.convertPattern(r)),optional:!1,typeAnnotation:void 0}):this.createNode(e,{type:q.ArrayExpression,elements:this.convertChildren(e.elements)});case $.ObjectLiteralExpression:{if(this.allowPattern)return this.createNode(e,{type:q.ObjectPattern,decorators:[],optional:!1,properties:e.properties.map(n=>this.convertPattern(n)),typeAnnotation:void 0});let r=[];for(let n of e.properties)(n.kind===$.GetAccessor||n.kind===$.SetAccessor||n.kind===$.MethodDeclaration)&&!n.body&&this.#e(n.end-1,"'{' expected."),r.push(this.convertChild(n));return this.createNode(e,{type:q.ObjectExpression,properties:r})}case $.PropertyAssignment:{let{exclamationToken:r,questionToken:n}=e;return n&&this.#e(n,"A property assignment cannot have a question token."),r&&this.#e(r,"A property assignment cannot have an exclamation token."),this.createNode(e,{type:q.Property,computed:Tu(e.name),key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.converter(e.initializer,e,this.allowPattern)})}case $.ShorthandPropertyAssignment:{let{exclamationToken:r,modifiers:n,questionToken:s}=e;return n&&this.#e(n[0],"A shorthand property assignment cannot have modifiers."),s&&this.#e(s,"A shorthand property assignment cannot have a question token."),r&&this.#e(r,"A shorthand property assignment cannot have an exclamation token."),e.objectAssignmentInitializer?this.createNode(e,{type:q.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.createNode(e,{type:q.AssignmentPattern,decorators:[],left:this.convertPattern(e.name),optional:!1,right:this.convertChild(e.objectAssignmentInitializer),typeAnnotation:void 0})}):this.createNode(e,{type:q.Property,computed:!1,key:this.convertChild(e.name),kind:"init",method:!1,optional:!1,shorthand:!0,value:this.convertChild(e.name)})}case $.ComputedPropertyName:return this.convertChild(e.expression);case $.PropertyDeclaration:{let r=St($.AbstractKeyword,e);r&&e.initializer&&this.#e(e.initializer,"Abstract property cannot have an initializer."),e.name.kind===$.StringLiteral&&e.name.text==="constructor"&&this.#e(e.name,"Classes may not have a field named 'constructor'.");let n=St($.AccessorKeyword,e),s=n?r?q.TSAbstractAccessorProperty:q.AccessorProperty:r?q.TSAbstractPropertyDefinition:q.PropertyDefinition,i=this.convertChild(e.name);return this.createNode(e,{type:s,accessibility:fo(e),computed:Tu(e.name),declare:St($.DeclareKeyword,e),decorators:this.convertChildren(ku(e)??[]),definite:!!e.exclamationToken,key:i,optional:(i.type===q.Literal||e.name.kind===$.Identifier||e.name.kind===$.ComputedPropertyName||e.name.kind===$.PrivateIdentifier)&&!!e.questionToken,override:St($.OverrideKeyword,e),readonly:St($.ReadonlyKeyword,e),static:St($.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e),value:r?null:this.convertChild(e.initializer)})}case $.GetAccessor:case $.SetAccessor:if(e.parent.kind===$.InterfaceDeclaration||e.parent.kind===$.TypeLiteral)return this.convertMethodSignature(e);case $.MethodDeclaration:{let r=St($.AbstractKeyword,e);r&&e.body&&this.#e(e.name,e.kind===$.GetAccessor||e.kind===$.SetAccessor?"An abstract accessor cannot have an implementation.":`Method '${aW(e.name,this.ast)}' cannot have an implementation because it is marked abstract.`);let n=this.createNode(e,{type:e.body?q.FunctionExpression:q.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:St($.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:null,params:[],returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});n.typeParameters&&this.fixParentLocation(n,n.typeParameters.range);let s;if(t.kind===$.ObjectLiteralExpression)n.params=this.convertChildren(e.parameters),s=this.createNode(e,{type:q.Property,computed:Tu(e.name),key:this.convertChild(e.name),kind:"init",method:e.kind===$.MethodDeclaration,optional:!!e.questionToken,shorthand:!1,value:n});else{n.params=this.convertParameters(e.parameters);let i=r?q.TSAbstractMethodDefinition:q.MethodDefinition;s=this.createNode(e,{type:i,accessibility:fo(e),computed:Tu(e.name),decorators:this.convertChildren(ku(e)??[]),key:this.convertChild(e.name),kind:"method",optional:!!e.questionToken,override:St($.OverrideKeyword,e),static:St($.StaticKeyword,e),value:n})}return e.kind===$.GetAccessor?s.kind="get":e.kind===$.SetAccessor?s.kind="set":!s.static&&e.name.kind===$.StringLiteral&&e.name.text==="constructor"&&s.type!==q.Property&&(s.kind="constructor"),s}case $.Constructor:{let r=Rz(e),n=(r&&Ss(r,e,this.ast))??e.getFirstToken(),s=this.createNode(e,{type:e.body?q.FunctionExpression:q.TSEmptyBodyFunctionExpression,range:[e.parameters.pos-1,e.end],async:!1,body:this.convertChild(e.body),declare:!1,expression:!1,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});s.typeParameters&&this.fixParentLocation(s,s.typeParameters.range);let i=n.kind===$.StringLiteral?this.createNode(n,{type:q.Literal,raw:n.getText(),value:"constructor"}):this.createNode(e,{type:q.Identifier,range:[n.getStart(this.ast),n.end],decorators:[],name:"constructor",optional:!1,typeAnnotation:void 0}),o=St($.StaticKeyword,e);return this.createNode(e,{type:St($.AbstractKeyword,e)?q.TSAbstractMethodDefinition:q.MethodDefinition,accessibility:fo(e),computed:!1,decorators:[],key:i,kind:o?"method":"constructor",optional:!1,override:!1,static:o,value:s})}case $.FunctionExpression:return this.createNode(e,{type:q.FunctionExpression,async:St($.AsyncKeyword,e),body:this.convertChild(e.body),declare:!1,expression:!1,generator:!!e.asteriskToken,id:this.convertChild(e.name),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case $.SuperKeyword:return this.createNode(e,{type:q.Super});case $.ArrayBindingPattern:return this.createNode(e,{type:q.ArrayPattern,decorators:[],elements:e.elements.map(r=>this.convertPattern(r)),optional:!1,typeAnnotation:void 0});case $.OmittedExpression:return null;case $.ObjectBindingPattern:return this.createNode(e,{type:q.ObjectPattern,decorators:[],optional:!1,properties:e.elements.map(r=>this.convertPattern(r)),typeAnnotation:void 0});case $.BindingElement:{if(t.kind===$.ArrayBindingPattern){let n=this.convertChild(e.name,t);return e.initializer?this.createNode(e,{type:q.AssignmentPattern,decorators:[],left:n,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}):e.dotDotDotToken?this.createNode(e,{type:q.RestElement,argument:n,decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):n}let r;return e.dotDotDotToken?r=this.createNode(e,{type:q.RestElement,argument:this.convertChild(e.propertyName??e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):r=this.createNode(e,{type:q.Property,computed:!!(e.propertyName&&e.propertyName.kind===$.ComputedPropertyName),key:this.convertChild(e.propertyName??e.name),kind:"init",method:!1,optional:!1,shorthand:!e.propertyName,value:this.convertChild(e.name)}),e.initializer&&(r.value=this.createNode(e,{type:q.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:this.convertChild(e.name),optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0})),r}case $.ArrowFunction:return this.createNode(e,{type:q.ArrowFunctionExpression,async:St($.AsyncKeyword,e),body:this.convertChild(e.body),expression:e.body.kind!==$.Block,generator:!1,id:null,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case $.YieldExpression:return this.createNode(e,{type:q.YieldExpression,argument:this.convertChild(e.expression),delegate:!!e.asteriskToken});case $.AwaitExpression:return this.createNode(e,{type:q.AwaitExpression,argument:this.convertChild(e.expression)});case $.NoSubstitutionTemplateLiteral:return this.createNode(e,{type:q.TemplateLiteral,expressions:[],quasis:[this.createNode(e,{type:q.TemplateElement,tail:!0,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-1)}})]});case $.TemplateExpression:{let r=this.createNode(e,{type:q.TemplateLiteral,expressions:[],quasis:[this.convertChild(e.head)]});return e.templateSpans.forEach(n=>{r.expressions.push(this.convertChild(n.expression)),r.quasis.push(this.convertChild(n.literal))}),r}case $.TaggedTemplateExpression:return e.tag.flags&Xn.OptionalChain&&this.#e(e,"Tagged template expressions are not permitted in an optional chain."),this.createNode(e,{type:q.TaggedTemplateExpression,quasi:this.convertChild(e.template),tag:this.convertChild(e.tag),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case $.TemplateHead:case $.TemplateMiddle:case $.TemplateTail:{let r=e.kind===$.TemplateTail;return this.createNode(e,{type:q.TemplateElement,tail:r,value:{cooked:e.text,raw:this.ast.text.slice(e.getStart(this.ast)+1,e.end-(r?1:2))}})}case $.SpreadAssignment:case $.SpreadElement:return this.allowPattern?this.createNode(e,{type:q.RestElement,argument:this.convertPattern(e.expression),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):this.createNode(e,{type:q.SpreadElement,argument:this.convertChild(e.expression)});case $.Parameter:{let r,n;return e.dotDotDotToken?r=n=this.createNode(e,{type:q.RestElement,argument:this.convertChild(e.name),decorators:[],optional:!1,typeAnnotation:void 0,value:void 0}):e.initializer?(r=this.convertChild(e.name),n=this.createNode(e,{type:q.AssignmentPattern,range:[e.name.getStart(this.ast),e.initializer.end],decorators:[],left:r,optional:!1,right:this.convertChild(e.initializer),typeAnnotation:void 0}),si(e)&&(n.range[0]=r.range[0],n.loc=To(n.range,this.ast))):r=n=this.convertChild(e.name,t),e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e),this.fixParentLocation(r,r.typeAnnotation.range)),e.questionToken&&(e.questionToken.end>r.range[1]&&(r.range[1]=e.questionToken.end,r.loc.end=jf(r.range[1],this.ast)),r.optional=!0),si(e)?this.createNode(e,{type:q.TSParameterProperty,accessibility:fo(e),decorators:[],override:St($.OverrideKeyword,e),parameter:n,readonly:St($.ReadonlyKeyword,e),static:St($.StaticKeyword,e)}):n}case $.ClassDeclaration:!e.name&&(!St(ot.ExportKeyword,e)||!St(ot.DefaultKeyword,e))&&this.#e(e,"A class declaration without the 'default' modifier must have a name.");case $.ClassExpression:{let r=e.heritageClauses??[],n=e.kind===$.ClassDeclaration?q.ClassDeclaration:q.ClassExpression,s,i;for(let l of r){let{token:u,types:f}=l;f.length===0&&this.#e(l,`'${er(u)}' list cannot be empty.`),u===$.ExtendsKeyword?(s&&this.#e(l,"'extends' clause already seen."),i&&this.#e(l,"'extends' clause must precede 'implements' clause."),f.length>1&&this.#e(f[1],"Classes can only extend a single class."),s??(s=l)):u===$.ImplementsKeyword&&(i&&this.#e(l,"'implements' clause already seen."),i??(i=l))}let o=this.createNode(e,{type:n,abstract:St($.AbstractKeyword,e),body:this.createNode(e,{type:q.ClassBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members.filter(Jz))}),declare:St($.DeclareKeyword,e),decorators:this.convertChildren(ku(e)??[]),id:this.convertChild(e.name),implements:this.convertChildren(i?.types??[]),superClass:s?.types[0]?this.convertChild(s.types[0].expression):null,superTypeArguments:void 0,typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return s?.types[0]?.typeArguments&&(o.superTypeArguments=this.convertTypeArgumentsToTypeParameterInstantiation(s.types[0].typeArguments,s.types[0])),this.fixExports(e,o)}case $.ModuleBlock:return this.createNode(e,{type:q.TSModuleBlock,body:this.convertBodyExpressions(e.statements,e)});case $.ImportDeclaration:{this.assertModuleSpecifier(e,!1);let r=this.createNode(e,this.#n({type:q.ImportDeclaration,attributes:this.convertImportAttributes(e),importKind:"value",source:this.convertChild(e.moduleSpecifier),specifiers:[]},"assertions","attributes",!0));if(e.importClause&&(e.importClause.isTypeOnly&&(r.importKind="type"),e.importClause.name&&r.specifiers.push(this.convertChild(e.importClause)),e.importClause.namedBindings))switch(e.importClause.namedBindings.kind){case $.NamespaceImport:r.specifiers.push(this.convertChild(e.importClause.namedBindings));break;case $.NamedImports:r.specifiers.push(...this.convertChildren(e.importClause.namedBindings.elements));break}return r}case $.NamespaceImport:return this.createNode(e,{type:q.ImportNamespaceSpecifier,local:this.convertChild(e.name)});case $.ImportSpecifier:return this.createNode(e,{type:q.ImportSpecifier,imported:this.convertChild(e.propertyName??e.name),importKind:e.isTypeOnly?"type":"value",local:this.convertChild(e.name)});case $.ImportClause:{let r=this.convertChild(e.name);return this.createNode(e,{type:q.ImportDefaultSpecifier,range:r.range,local:r})}case $.ExportDeclaration:return e.exportClause?.kind===$.NamedExports?(this.assertModuleSpecifier(e,!0),this.createNode(e,this.#n({type:q.ExportNamedDeclaration,attributes:this.convertImportAttributes(e),declaration:null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier),specifiers:this.convertChildren(e.exportClause.elements,e)},"assertions","attributes",!0))):(this.assertModuleSpecifier(e,!1),this.createNode(e,this.#n({type:q.ExportAllDeclaration,attributes:this.convertImportAttributes(e),exported:e.exportClause?.kind===$.NamespaceExport?this.convertChild(e.exportClause.name):null,exportKind:e.isTypeOnly?"type":"value",source:this.convertChild(e.moduleSpecifier)},"assertions","attributes",!0)));case $.ExportSpecifier:{let r=e.propertyName??e.name;return r.kind===$.StringLiteral&&t.kind===$.ExportDeclaration&&t.moduleSpecifier?.kind!==$.StringLiteral&&this.#e(r,"A string literal cannot be used as a local exported binding without `from`."),this.createNode(e,{type:q.ExportSpecifier,exported:this.convertChild(e.name),exportKind:e.isTypeOnly?"type":"value",local:this.convertChild(r)})}case $.ExportAssignment:return e.isExportEquals?this.createNode(e,{type:q.TSExportAssignment,expression:this.convertChild(e.expression)}):this.createNode(e,{type:q.ExportDefaultDeclaration,declaration:this.convertChild(e.expression),exportKind:"value"});case $.PrefixUnaryExpression:case $.PostfixUnaryExpression:{let r=Ea(e.operator);return r==="++"||r==="--"?(i2(e.operand)||this.#e(e.operand,"Invalid left-hand side expression in unary operation"),this.createNode(e,{type:q.UpdateExpression,argument:this.convertChild(e.operand),operator:r,prefix:e.kind===$.PrefixUnaryExpression})):this.createNode(e,{type:q.UnaryExpression,argument:this.convertChild(e.operand),operator:r,prefix:e.kind===$.PrefixUnaryExpression})}case $.DeleteExpression:return this.createNode(e,{type:q.UnaryExpression,argument:this.convertChild(e.expression),operator:"delete",prefix:!0});case $.VoidExpression:return this.createNode(e,{type:q.UnaryExpression,argument:this.convertChild(e.expression),operator:"void",prefix:!0});case $.TypeOfExpression:return this.createNode(e,{type:q.UnaryExpression,argument:this.convertChild(e.expression),operator:"typeof",prefix:!0});case $.TypeOperator:return this.createNode(e,{type:q.TSTypeOperator,operator:Ea(e.operator),typeAnnotation:this.convertChild(e.type)});case $.BinaryExpression:{if(e.operatorToken.kind!==$.InKeyword&&e.left.kind===$.PrivateIdentifier?this.#e(e.left,"Private identifiers cannot appear on the right-hand-side of an 'in' expression."):e.right.kind===$.PrivateIdentifier&&this.#e(e.right,"Private identifiers are only allowed on the left-hand-side of an 'in' expression."),Uz(e.operatorToken)){let n=this.createNode(e,{type:q.SequenceExpression,expressions:[]}),s=this.convertChild(e.left);return s.type===q.SequenceExpression&&e.left.kind!==$.ParenthesizedExpression?n.expressions.push(...s.expressions):n.expressions.push(s),n.expressions.push(this.convertChild(e.right)),n}let r=zz(e.operatorToken);return this.allowPattern&&r.type===q.AssignmentExpression?this.createNode(e,{type:q.AssignmentPattern,decorators:[],left:this.convertPattern(e.left,e),optional:!1,right:this.convertChild(e.right),typeAnnotation:void 0}):this.createNode(e,{...r,left:this.converter(e.left,e,r.type===q.AssignmentExpression),right:this.convertChild(e.right)})}case $.PropertyAccessExpression:{let r=this.convertChild(e.expression),n=this.convertChild(e.name),s=this.createNode(e,{type:q.MemberExpression,computed:!1,object:r,optional:e.questionDotToken!=null,property:n});return this.convertChainExpression(s,e)}case $.ElementAccessExpression:{let r=this.convertChild(e.expression),n=this.convertChild(e.argumentExpression),s=this.createNode(e,{type:q.MemberExpression,computed:!0,object:r,optional:e.questionDotToken!=null,property:n});return this.convertChainExpression(s,e)}case $.CallExpression:{if(e.expression.kind===$.ImportKeyword)return e.arguments.length!==1&&e.arguments.length!==2&&this.#e(e.arguments[2]??e,"Dynamic import requires exactly one or two arguments."),this.createNode(e,this.#n({type:q.ImportExpression,options:e.arguments[1]?this.convertChild(e.arguments[1]):null,source:this.convertChild(e.arguments[0])},"attributes","options",!0));let r=this.convertChild(e.expression),n=this.convertChildren(e.arguments),s=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),i=this.createNode(e,{type:q.CallExpression,arguments:n,callee:r,optional:e.questionDotToken!=null,typeArguments:s});return this.convertChainExpression(i,e)}case $.NewExpression:{let r=e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e);return this.createNode(e,{type:q.NewExpression,arguments:this.convertChildren(e.arguments??[]),callee:this.convertChild(e.expression),typeArguments:r})}case $.ConditionalExpression:return this.createNode(e,{type:q.ConditionalExpression,alternate:this.convertChild(e.whenFalse),consequent:this.convertChild(e.whenTrue),test:this.convertChild(e.condition)});case $.MetaProperty:return this.createNode(e,{type:q.MetaProperty,meta:this.createNode(e.getFirstToken(),{type:q.Identifier,decorators:[],name:Ea(e.keywordToken),optional:!1,typeAnnotation:void 0}),property:this.convertChild(e.name)});case $.Decorator:return this.createNode(e,{type:q.Decorator,expression:this.convertChild(e.expression)});case $.StringLiteral:return this.createNode(e,{type:q.Literal,raw:e.getText(),value:t.kind===$.JsxAttribute?DT(e.text):e.text});case $.NumericLiteral:return this.createNode(e,{type:q.Literal,raw:e.getText(),value:Number(e.text)});case $.BigIntLiteral:{let r=xu(e,this.ast),n=this.ast.text.slice(r[0],r[1]),s=Nu(0,n.slice(0,-1),"_",""),i=typeof BigInt<"u"?BigInt(s):null;return this.createNode(e,{type:q.Literal,range:r,bigint:i==null?s:String(i),raw:n,value:i})}case $.RegularExpressionLiteral:{let r=e.text.slice(1,e.text.lastIndexOf("/")),n=e.text.slice(e.text.lastIndexOf("/")+1),s=null;try{s=new RegExp(r,n)}catch{}return this.createNode(e,{type:q.Literal,raw:e.text,regex:{flags:n,pattern:r},value:s})}case $.TrueKeyword:return this.createNode(e,{type:q.Literal,raw:"true",value:!0});case $.FalseKeyword:return this.createNode(e,{type:q.Literal,raw:"false",value:!1});case $.NullKeyword:return this.createNode(e,{type:q.Literal,raw:"null",value:null});case $.EmptyStatement:return this.createNode(e,{type:q.EmptyStatement});case $.DebuggerStatement:return this.createNode(e,{type:q.DebuggerStatement});case $.JsxElement:return this.createNode(e,{type:q.JSXElement,children:this.convertChildren(e.children),closingElement:this.convertChild(e.closingElement),openingElement:this.convertChild(e.openingElement)});case $.JsxFragment:return this.createNode(e,{type:q.JSXFragment,children:this.convertChildren(e.children),closingFragment:this.convertChild(e.closingFragment),openingFragment:this.convertChild(e.openingFragment)});case $.JsxSelfClosingElement:return this.createNode(e,{type:q.JSXElement,children:[],closingElement:null,openingElement:this.createNode(e,{type:q.JSXOpeningElement,range:xu(e,this.ast),attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!0,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):void 0})});case $.JsxOpeningElement:return this.createNode(e,{type:q.JSXOpeningElement,attributes:this.convertChildren(e.attributes.properties),name:this.convertJSXTagName(e.tagName,e),selfClosing:!1,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case $.JsxClosingElement:return this.createNode(e,{type:q.JSXClosingElement,name:this.convertJSXTagName(e.tagName,e)});case $.JsxOpeningFragment:return this.createNode(e,{type:q.JSXOpeningFragment});case $.JsxClosingFragment:return this.createNode(e,{type:q.JSXClosingFragment});case $.JsxExpression:{let r=e.expression?this.convertChild(e.expression):this.createNode(e,{type:q.JSXEmptyExpression,range:[e.getStart(this.ast)+1,e.getEnd()-1]});return e.dotDotDotToken?this.createNode(e,{type:q.JSXSpreadChild,expression:r}):this.createNode(e,{type:q.JSXExpressionContainer,expression:r})}case $.JsxAttribute:return this.createNode(e,{type:q.JSXAttribute,name:this.convertJSXNamespaceOrIdentifier(e.name),value:this.convertChild(e.initializer)});case $.JsxText:{let r=e.getFullStart(),n=e.getEnd(),s=this.ast.text.slice(r,n);return this.createNode(e,{type:q.JSXText,range:[r,n],raw:s,value:DT(s)})}case $.JsxSpreadAttribute:return this.createNode(e,{type:q.JSXSpreadAttribute,argument:this.convertChild(e.expression)});case $.QualifiedName:return this.createNode(e,{type:q.TSQualifiedName,left:this.convertChild(e.left),right:this.convertChild(e.right)});case $.TypeReference:return this.createNode(e,{type:q.TSTypeReference,typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e),typeName:this.convertChild(e.typeName)});case $.TypeParameter:return this.createNode(e,{type:q.TSTypeParameter,const:St($.ConstKeyword,e),constraint:e.constraint&&this.convertChild(e.constraint),default:e.default?this.convertChild(e.default):void 0,in:St($.InKeyword,e),name:this.convertChild(e.name),out:St($.OutKeyword,e)});case $.ThisType:return this.createNode(e,{type:q.TSThisType});case $.AnyKeyword:case $.BigIntKeyword:case $.BooleanKeyword:case $.NeverKeyword:case $.NumberKeyword:case $.ObjectKeyword:case $.StringKeyword:case $.SymbolKeyword:case $.UnknownKeyword:case $.VoidKeyword:case $.UndefinedKeyword:case $.IntrinsicKeyword:return this.createNode(e,{type:q[`TS${$[e.kind]}`]});case $.NonNullExpression:{let r=this.createNode(e,{type:q.TSNonNullExpression,expression:this.convertChild(e.expression)});return this.convertChainExpression(r,e)}case $.TypeLiteral:return this.createNode(e,{type:q.TSTypeLiteral,members:this.convertChildren(e.members)});case $.ArrayType:return this.createNode(e,{type:q.TSArrayType,elementType:this.convertChild(e.elementType)});case $.IndexedAccessType:return this.createNode(e,{type:q.TSIndexedAccessType,indexType:this.convertChild(e.indexType),objectType:this.convertChild(e.objectType)});case $.ConditionalType:return this.createNode(e,{type:q.TSConditionalType,checkType:this.convertChild(e.checkType),extendsType:this.convertChild(e.extendsType),falseType:this.convertChild(e.falseType),trueType:this.convertChild(e.trueType)});case $.TypeQuery:return this.createNode(e,{type:q.TSTypeQuery,exprName:this.convertChild(e.exprName),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)});case $.MappedType:return e.members&&e.members.length>0&&this.#e(e.members[0],"A mapped type may not declare properties or methods."),this.createNode(e,this.#s({type:q.TSMappedType,constraint:this.convertChild(e.typeParameter.constraint),key:this.convertChild(e.typeParameter.name),nameType:this.convertChild(e.nameType)??null,optional:e.questionToken?e.questionToken.kind===$.QuestionToken||Ea(e.questionToken.kind):!1,readonly:e.readonlyToken?e.readonlyToken.kind===$.ReadonlyKeyword||Ea(e.readonlyToken.kind):void 0,typeAnnotation:e.type&&this.convertChild(e.type)},"typeParameter","'constraint' and 'key'",this.convertChild(e.typeParameter)));case $.ParenthesizedExpression:return this.convertChild(e.expression,t);case $.TypeAliasDeclaration:{let r=this.createNode(e,{type:q.TSTypeAliasDeclaration,declare:St($.DeclareKeyword,e),id:this.convertChild(e.name),typeAnnotation:this.convertChild(e.type),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,r)}case $.MethodSignature:return this.convertMethodSignature(e);case $.PropertySignature:{let{initializer:r}=e;return r&&this.#e(r,"A property signature cannot have an initializer."),this.createNode(e,{type:q.TSPropertySignature,accessibility:fo(e),computed:Tu(e.name),key:this.convertChild(e.name),optional:xT(e),readonly:St($.ReadonlyKeyword,e),static:St($.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)})}case $.IndexSignature:return this.createNode(e,{type:q.TSIndexSignature,accessibility:fo(e),parameters:this.convertChildren(e.parameters),readonly:St($.ReadonlyKeyword,e),static:St($.StaticKeyword,e),typeAnnotation:e.type&&this.convertTypeAnnotation(e.type,e)});case $.ConstructorType:return this.createNode(e,{type:q.TSConstructorType,abstract:St($.AbstractKeyword,e),params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});case $.FunctionType:{let{modifiers:r}=e;r&&this.#e(r[0],"A function type cannot have modifiers.")}case $.ConstructSignature:case $.CallSignature:{let r=e.kind===$.ConstructSignature?q.TSConstructSignatureDeclaration:e.kind===$.CallSignature?q.TSCallSignatureDeclaration:q.TSFunctionType;return this.createNode(e,{type:r,params:this.convertParameters(e.parameters),returnType:e.type&&this.convertTypeAnnotation(e.type,e),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)})}case $.ExpressionWithTypeArguments:{let r=t.kind,n=r===$.InterfaceDeclaration?q.TSInterfaceHeritage:r===$.HeritageClause?q.TSClassImplements:q.TSInstantiationExpression;return this.createNode(e,{type:n,expression:this.convertChild(e.expression),typeArguments:e.typeArguments&&this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e)})}case $.InterfaceDeclaration:{let r=e.heritageClauses??[],n=[],s=!1;for(let o of r){o.token!==$.ExtendsKeyword&&this.#e(o,o.token===$.ImplementsKeyword?"Interface declaration cannot have 'implements' clause.":"Unexpected token."),s&&this.#e(o,"'extends' clause already seen."),s=!0;for(let l of o.types)(!lA(l.expression)||kR(l.expression))&&this.#e(l,"Interface declaration can only extend an identifier/qualified name with optional type arguments."),n.push(this.convertChild(l,e))}let i=this.createNode(e,{type:q.TSInterfaceDeclaration,body:this.createNode(e,{type:q.TSInterfaceBody,range:[e.members.pos-1,e.end],body:this.convertChildren(e.members)}),declare:St($.DeclareKeyword,e),extends:n,id:this.convertChild(e.name),typeParameters:e.typeParameters&&this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters)});return this.fixExports(e,i)}case $.TypePredicate:{let r=this.createNode(e,{type:q.TSTypePredicate,asserts:e.assertsModifier!=null,parameterName:this.convertChild(e.parameterName),typeAnnotation:null});return e.type&&(r.typeAnnotation=this.convertTypeAnnotation(e.type,e),r.typeAnnotation.loc=r.typeAnnotation.typeAnnotation.loc,r.typeAnnotation.range=r.typeAnnotation.typeAnnotation.range),r}case $.ImportType:{let r=xu(e,this.ast);if(e.isTypeOf){let l=Ss(e.getFirstToken(),e,this.ast);r[0]=l.getStart(this.ast)}let n=null;if(e.attributes){let l=this.createNode(e.attributes,{type:q.ObjectExpression,properties:e.attributes.elements.map(T=>this.createNode(T,{type:q.Property,computed:!1,key:this.convertChild(T.name),kind:"init",method:!1,optional:!1,shorthand:!1,value:this.convertChild(T.value)}))}),u=Ss(e.argument,e,this.ast),f=Ss(u,e,this.ast),p=Ss(e.attributes,e,this.ast),d=p.kind===ot.CommaToken?Ss(p,e,this.ast):p,y=Ss(f,e,this.ast),m=xu(y,this.ast),D=y.kind===ot.AssertKeyword?"assert":"with";n=this.createNode(e,{type:q.ObjectExpression,range:[f.getStart(this.ast),d.end],properties:[this.createNode(e,{type:q.Property,range:[m[0],e.attributes.end],computed:!1,key:this.createNode(e,{type:q.Identifier,range:m,decorators:[],name:D,optional:!1,typeAnnotation:void 0}),kind:"init",method:!1,optional:!1,shorthand:!1,value:l})]})}let s=this.convertChild(e.argument),i=s.literal,o=this.createNode(e,this.#s({type:q.TSImportType,range:r,options:n,qualifier:this.convertChild(e.qualifier),source:i,typeArguments:e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null},"argument","source",s));return e.isTypeOf?this.createNode(e,{type:q.TSTypeQuery,exprName:o,typeArguments:void 0}):o}case $.EnumDeclaration:{let r=this.convertChildren(e.members),n=this.createNode(e,this.#s({type:q.TSEnumDeclaration,body:this.createNode(e,{type:q.TSEnumBody,range:[e.members.pos-1,e.end],members:r}),const:St($.ConstKeyword,e),declare:St($.DeclareKeyword,e),id:this.convertChild(e.name)},"members","'body.members'",this.convertChildren(e.members)));return this.fixExports(e,n)}case $.EnumMember:{let r=e.name.kind===ot.ComputedPropertyName;return r&&this.#e(e.name,"Computed property names are not allowed in enums."),(e.name.kind===$.NumericLiteral||e.name.kind===$.BigIntLiteral)&&this.#e(e.name,"An enum member cannot have a numeric name."),this.createNode(e,this.#s({type:q.TSEnumMember,id:this.convertChild(e.name),initializer:e.initializer&&this.convertChild(e.initializer)},"computed",void 0,r))}case $.ModuleDeclaration:{let r=St($.DeclareKeyword,e),n=this.createNode(e,{type:q.TSModuleDeclaration,...(()=>{if(e.flags&Xn.GlobalAugmentation){let i=this.convertChild(e.name),o=this.convertChild(e.body);return(o==null||o.type===q.TSModuleDeclaration)&&this.#e(e.body??e,"Expected a valid module body"),i.type!==q.Identifier&&this.#e(e.name,"global module augmentation must have an Identifier id"),{body:o,declare:!1,global:!1,id:i,kind:"global"}}if(Ru(e.name)){let i=this.convertChild(e.body);return{kind:"module",...i!=null?{body:i}:{},declare:!1,global:!1,id:this.convertChild(e.name)}}e.body==null&&this.#e(e,"Expected a module body"),e.name.kind!==ot.Identifier&&this.#e(e.name,"`namespace`s must have an Identifier id");let s=this.createNode(e.name,{type:q.Identifier,range:[e.name.getStart(this.ast),e.name.getEnd()],decorators:[],name:e.name.text,optional:!1,typeAnnotation:void 0});for(;e.body&&op(e.body)&&e.body.name;){e=e.body,r||(r=St($.DeclareKeyword,e));let i=e.name,o=this.createNode(i,{type:q.Identifier,range:[i.getStart(this.ast),i.getEnd()],decorators:[],name:i.text,optional:!1,typeAnnotation:void 0});s=this.createNode(i,{type:q.TSQualifiedName,range:[s.range[0],o.range[1]],left:s,right:o})}return{body:this.convertChild(e.body),declare:!1,global:!1,id:s,kind:e.flags&Xn.Namespace?"namespace":"module"}})()});return n.declare=r,e.flags&Xn.GlobalAugmentation&&(n.global=!0),this.fixExports(e,n)}case $.ParenthesizedType:return this.convertChild(e.type);case $.UnionType:return this.createNode(e,{type:q.TSUnionType,types:this.convertChildren(e.types)});case $.IntersectionType:return this.createNode(e,{type:q.TSIntersectionType,types:this.convertChildren(e.types)});case $.AsExpression:return this.createNode(e,{type:q.TSAsExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case $.InferType:return this.createNode(e,{type:q.TSInferType,typeParameter:this.convertChild(e.typeParameter)});case $.LiteralType:return e.literal.kind===$.NullKeyword?this.createNode(e.literal,{type:q.TSNullKeyword}):this.createNode(e,{type:q.TSLiteralType,literal:this.convertChild(e.literal)});case $.TypeAssertionExpression:return this.createNode(e,{type:q.TSTypeAssertion,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});case $.ImportEqualsDeclaration:return this.fixExports(e,this.createNode(e,{type:q.TSImportEqualsDeclaration,id:this.convertChild(e.name),importKind:e.isTypeOnly?"type":"value",moduleReference:this.convertChild(e.moduleReference)}));case $.ExternalModuleReference:return e.expression.kind!==$.StringLiteral&&this.#e(e.expression,"String literal expected."),this.createNode(e,{type:q.TSExternalModuleReference,expression:this.convertChild(e.expression)});case $.NamespaceExportDeclaration:return this.createNode(e,{type:q.TSNamespaceExportDeclaration,id:this.convertChild(e.name)});case $.AbstractKeyword:return this.createNode(e,{type:q.TSAbstractKeyword});case $.TupleType:{let r=this.convertChildren(e.elements);return this.createNode(e,{type:q.TSTupleType,elementTypes:r})}case $.NamedTupleMember:{let r=this.createNode(e,{type:q.TSNamedTupleMember,elementType:this.convertChild(e.type,e),label:this.convertChild(e.name,e),optional:e.questionToken!=null});return e.dotDotDotToken?(r.range[0]=r.label.range[0],r.loc.start=r.label.loc.start,this.createNode(e,{type:q.TSRestType,typeAnnotation:r})):r}case $.OptionalType:return this.createNode(e,{type:q.TSOptionalType,typeAnnotation:this.convertChild(e.type)});case $.RestType:return this.createNode(e,{type:q.TSRestType,typeAnnotation:this.convertChild(e.type)});case $.TemplateLiteralType:{let r=this.createNode(e,{type:q.TSTemplateLiteralType,quasis:[this.convertChild(e.head)],types:[]});return e.templateSpans.forEach(n=>{r.types.push(this.convertChild(n.type)),r.quasis.push(this.convertChild(n.literal))}),r}case $.ClassStaticBlockDeclaration:return this.createNode(e,{type:q.StaticBlock,body:this.convertBodyExpressions(e.body.statements,e)});case $.AssertEntry:case $.ImportAttribute:return this.createNode(e,{type:q.ImportAttribute,key:this.convertChild(e.name),value:this.convertChild(e.value)});case $.SatisfiesExpression:return this.createNode(e,{type:q.TSSatisfiesExpression,expression:this.convertChild(e.expression),typeAnnotation:this.convertChild(e.type)});default:return this.deeplyCopy(e)}}createNode(e,t){let r=t;return r.range??(r.range=xu(e,this.ast)),r.loc??(r.loc=To(r.range,this.ast)),r&&this.options.shouldPreserveNodeMaps&&this.esTreeNodeToTSNodeMap.set(r,e),r}convertProgram(){return this.converter(this.ast)}deeplyCopy(e){e.kind===ot.JSDocFunctionType&&this.#e(e,"JSDoc types can only be used inside documentation comments.");let t=`TS${$[e.kind]}`;if(this.options.errorOnUnknownASTType&&!q[t])throw new Error(`Unknown AST_NODE_TYPE: "${t}"`);let r=this.createNode(e,{type:t});"type"in e&&(r.typeAnnotation=e.type&&"kind"in e.type&&RR(e.type)?this.convertTypeAnnotation(e.type,e):null),"typeArguments"in e&&(r.typeArguments=e.typeArguments&&"pos"in e.typeArguments?this.convertTypeArgumentsToTypeParameterInstantiation(e.typeArguments,e):null),"typeParameters"in e&&(r.typeParameters=e.typeParameters&&"pos"in e.typeParameters?this.convertTSTypeParametersToTypeParametersDeclaration(e.typeParameters):null);let n=ku(e);n?.length&&(r.decorators=this.convertChildren(n));let s=new Set(["_children","decorators","end","flags","heritageClauses","illegalDecorators","jsDoc","kind","locals","localSymbol","modifierFlagsCache","modifiers","nextContainer","parent","pos","symbol","transformFlags","type","typeArguments","typeParameters"]);return Object.entries(e).filter(([i])=>!s.has(i)).forEach(([i,o])=>{Array.isArray(o)?r[i]=this.convertChildren(o):o&&typeof o=="object"&&o.kind?r[i]=this.convertChild(o):r[i]=o}),r}fixExports(e,t){let r=op(e)&&!Ru(e.name)?iW(e):si(e);if(r?.[0].kind===$.ExportKeyword){this.registerTSNodeInNodeMap(e,t);let n=r[0],s=r[1],i=s?.kind===$.DefaultKeyword,o=i?Ss(s,this.ast,this.ast):Ss(n,this.ast,this.ast);if(t.range[0]=o.getStart(this.ast),t.loc=To(t.range,this.ast),i)return this.createNode(e,{type:q.ExportDefaultDeclaration,range:[n.getStart(this.ast),t.range[1]],declaration:t,exportKind:"value"});let l=t.type===q.TSInterfaceDeclaration||t.type===q.TSTypeAliasDeclaration,u="declare"in t&&t.declare;return this.createNode(e,this.#n({type:q.ExportNamedDeclaration,range:[n.getStart(this.ast),t.range[1]],attributes:[],declaration:t,exportKind:l||u?"type":"value",source:null,specifiers:[]},"assertions","attributes",!0))}return t}getASTMaps(){return{esTreeNodeToTSNodeMap:this.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:this.tsNodeToESTreeNodeMap}}registerTSNodeInNodeMap(e,t){t&&this.options.shouldPreserveNodeMaps&&!this.tsNodeToESTreeNodeMap.has(e)&&this.tsNodeToESTreeNodeMap.set(e,t)}};function DW(e,t,r=e.getSourceFile()){let n=[];for(;;){if(t8(e.kind))t(e);else{let s=e.getChildren(r);if(s.length===1){e=s[0];continue}for(let i=s.length-1;i>=0;--i)n.push(s[i])}if(n.length===0)break;e=n.pop()}}function xW(e,t,r=e.getSourceFile()){let n=r.text,s=r.languageVariant!==wC.JSX;return DW(e,o=>{if(o.pos!==o.end&&(o.kind!==ot.JsxText&&XJ(n,o.pos===0?(VC(n)??"").length:o.pos,i),s||TW(o)))return GJ(n,o.end,i)},r);function i(o,l,u){t(n,{end:l,kind:u,pos:o})}}function TW(e){switch(e.kind){case ot.CloseBraceToken:return e.parent.kind!==ot.JsxExpression||!i0(e.parent.parent);case ot.GreaterThanToken:switch(e.parent.kind){case ot.JsxClosingElement:case ot.JsxClosingFragment:return!i0(e.parent.parent.parent);case ot.JsxOpeningElement:return e.end!==e.parent.end;case ot.JsxOpeningFragment:return!1;case ot.JsxSelfClosingElement:return e.end!==e.parent.end||!i0(e.parent.parent)}}return!0}function i0(e){return e.kind===ot.JsxElement||e.kind===ot.JsxFragment}var[RH,UH]=Wj.split(".").map(e=>Number.parseInt(e,10));un.Intrinsic??un.Any|un.Unknown|un.String|un.Number|un.BigInt|un.Boolean|un.BooleanLiteral|un.ESSymbol|un.Void|un.Undefined|un.Null|un.Never|un.NonPrimitive;function EW(e,t){let r=[];return xW(e,(n,s)=>{let i=s.kind===ot.SingleLineCommentTrivia?qr.Line:qr.Block,o=[s.pos,s.end],l=To(o,e),u=o[0]+2,f=s.kind===ot.SingleLineCommentTrivia?o[1]:o[1]-2;r.push({type:i,loc:l,range:o,value:t.slice(u,f)})},e),r}var bW=()=>{};function CW(e,t,r){let{parseDiagnostics:n}=e;if(n.length)throw mW(n[0]);let s=new gW(e,{allowInvalidAST:t.allowInvalidAST,errorOnUnknownASTType:t.errorOnUnknownASTType,shouldPreserveNodeMaps:r,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings}),i=s.convertProgram();return(!t.range||!t.loc)&&bW(),t.tokens&&(i.tokens=Zz(e)),t.comment&&(i.comments=EW(e,t.codeFullText)),{astMaps:s.getASTMaps(),estree:i}}function cA(e){if(typeof e!="object"||e==null)return!1;let t=e;return t.kind===ot.SourceFile&&typeof t.getFullText=="function"}var AW=function(e){return e&&e.__esModule?e:{default:e}},vW=AW({extname:e=>"."+e.split(".").pop()});function SW(e,t){switch(vW.default.extname(e).toLowerCase()){case ds.Cjs:case ds.Js:case ds.Mjs:return ki.JS;case ds.Cts:case ds.Mts:case ds.Ts:return ki.TS;case ds.Json:return ki.JSON;case ds.Jsx:return ki.JSX;case ds.Tsx:return ki.TSX;default:return t?ki.TSX:ki.TS}}var _W={default:DC},FW=(0,_W.default)("typescript-eslint:typescript-estree:create-program:createSourceFile");function kW(e){return FW("Getting AST without type information in %s mode for: %s",e.jsx?"TSX":"TS",e.filePath),cA(e.code)?e.code:oz(e.filePath,e.codeFullText,{jsDocParsingMode:e.jsDocParsingMode,languageVersion:Qg.Latest,setExternalModuleIndicator:e.setExternalModuleIndicator},!0,SW(e.filePath,e.jsx))}var wW=e=>e,PW=()=>{},NW=class{},IW=()=>!1,BW=function(e){return e&&e.__esModule?e:{default:e}},LW={},a2={default:DC},OW=BW({extname:e=>"."+e.split(".").pop()}),$W=(0,a2.default)("typescript-eslint:typescript-estree:parseSettings:createParseSettings"),ET,a0=null,bc={ParseAll:kc?.ParseAll,ParseForTypeErrors:kc?.ParseForTypeErrors,ParseForTypeInfo:kc?.ParseForTypeInfo,ParseNone:kc?.ParseNone};function MW(e,t={}){let r=jW(e),n=IW(),s;t.loggerFn;let i=wW(typeof t.filePath=="string"&&t.filePath!=="<input>"?t.filePath:JW(t.jsx)),o=OW.default.extname(i).toLowerCase(),l=(()=>{switch(t.jsDocParsingMode){case"all":return bc.ParseAll;case"none":return bc.ParseNone;case"type-info":return bc.ParseForTypeInfo;default:return bc.ParseAll}})(),u={loc:t.loc===!0,range:t.range===!0,allowInvalidAST:t.allowInvalidAST===!0,code:e,codeFullText:r,comment:t.comment===!0,comments:[],debugLevel:t.debugLevel===!0?new Set(["typescript-eslint"]):Array.isArray(t.debugLevel)?new Set(t.debugLevel):new Set,errorOnTypeScriptSyntacticAndSemanticIssues:!1,errorOnUnknownASTType:t.errorOnUnknownASTType===!0,extraFileExtensions:Array.isArray(t.extraFileExtensions)&&t.extraFileExtensions.every(f=>typeof f=="string")?t.extraFileExtensions:[],filePath:i,jsDocParsingMode:l,jsx:t.jsx===!0,log:typeof t.loggerFn=="function"?t.loggerFn:t.loggerFn===!1?()=>{}:console.log,preserveNodeMaps:t.preserveNodeMaps!==!1,programs:Array.isArray(t.programs)?t.programs:null,projects:new Map,projectService:t.projectService||t.project&&t.projectService!==!1&&(void 0).env.TYPESCRIPT_ESLINT_PROJECT_SERVICE==="true"?RW(t.projectService,{jsDocParsingMode:l,tsconfigRootDir:s}):void 0,setExternalModuleIndicator:t.sourceType==="module"||t.sourceType==null&&o===ds.Mjs||t.sourceType==null&&o===ds.Mts?f=>{f.externalModuleIndicator=!0}:void 0,singleRun:n,suppressDeprecatedPropertyWarnings:t.suppressDeprecatedPropertyWarnings??!0,tokens:t.tokens===!0?[]:null,tsconfigMatchCache:ET??(ET=new NW(t.cacheLifetime?.glob??void 0)),tsconfigRootDir:s};if(u.projectService&&t.project&&(void 0).env.TYPESCRIPT_ESLINT_IGNORE_PROJECT_AND_PROJECT_SERVICE_ERROR!=="true")throw new Error('Enabling "project" does nothing when "projectService" is enabled. You can remove the "project" setting.');if(u.debugLevel.size>0){let f=[];u.debugLevel.has("typescript-eslint")&&f.push("typescript-eslint:*"),(u.debugLevel.has("eslint")||a2.default.enabled("eslint:*,-eslint:code-path"))&&f.push("eslint:*,-eslint:code-path"),a2.default.enable(f.join(","))}if(Array.isArray(t.programs)){if(!t.programs.length)throw new Error("You have set parserOptions.programs to an empty array. This will cause all files to not be found in existing programs. Either provide one or more existing TypeScript Program instances in the array, or remove the parserOptions.programs setting.");$W("parserOptions.programs was provided, so parserOptions.project will be ignored.")}return!u.programs&&!u.projectService&&(u.projects=new Map),t.jsDocParsingMode==null&&u.projects.size===0&&u.programs==null&&u.projectService==null&&(u.jsDocParsingMode=bc.ParseNone),u}function jW(e){return cA(e)?e.getFullText(e):typeof e=="string"?e:String(e)}function JW(e){return e?"estree.tsx":"estree.ts"}function RW(e,t){let r=typeof e=="object"?e:{};return PW(r.allowDefaultProject),a0??(a0=(0,LW.createProjectService)({options:r,...t})),a0}function UW(e,t){let{ast:r}=qW(e,t,!1);return r}function qW(e,t,r){let n=MW(e,t);if(t?.errorOnTypeScriptSyntacticAndSemanticIssues)throw new Error('"errorOnTypeScriptSyntacticAndSemanticIssues" is only supported for parseAndGenerateServices()');let s=kW(n),{astMaps:i,estree:o}=CW(s,n,r);return{ast:o,esTreeNodeToTSNodeMap:i.esTreeNodeToTSNodeMap,tsNodeToESTreeNodeMap:i.tsNodeToESTreeNodeMap}}function KW(e,t){let r=new SyntaxError(e+" ("+t.loc.start.line+":"+t.loc.start.column+")");return Object.assign(r,t)}var zW=KW;function WW(e){let t=[];for(let r of e)try{return r()}catch(n){t.push(n)}throw Object.assign(new Error("All combinations failed"),{errors:t})}var VW=Array.prototype.findLast??function(e){for(let t=this.length-1;t>=0;t--){let r=this[t];if(e(r,t,this))return r}},HW=Wg("findLast",function(){if(Array.isArray(this))return VW}),XW=HW;function GW(e){return this[e<0?this.length+e:e]}var QW=Wg("at",function(){if(Array.isArray(this)||typeof this=="string")return GW}),YW=QW;function Li(e){let t=e.range?.[0]??e.start,r=(e.declaration?.decorators??e.decorators)?.[0];return r?Math.min(Li(r),t):t}function ei(e){return e.range?.[1]??e.end}function ZW(e){let t=new Set(e);return r=>t.has(r?.type)}var _D=ZW,eV=_D(["Block","CommentBlock","MultiLine"]),FD=eV,tV=_D(["Line","CommentLine","SingleLine","HashbangComment","HTMLOpen","HTMLClose","Hashbang","InterpreterDirective"]),rV=tV,o0=new WeakMap;function nV(e){return o0.has(e)||o0.set(e,FD(e)&&e.value[0]==="*"&&/@(?:type|satisfies)\b/u.test(e.value)),o0.get(e)}var sV=nV;function iV(e){if(!FD(e))return!1;let t=`*${e.value}*`.split(`
|
|
163
|
-
`);return t.length>1&&t.every(r=>r.trimStart()[0]==="*")}var u0=new WeakMap;function aV(e){return u0.has(e)||u0.set(e,iV(e)),u0.get(e)}var bT=aV;function oV(e){if(e.length<2)return;let t;for(let r=e.length-1;r>=0;r--){let n=e[r];if(t&&ei(n)===Li(t)&&bT(n)&&bT(t)&&(e.splice(r+1,1),n.value+="*//*"+t.value,n.range=[Li(n),ei(t)]),!rV(n)&&!FD(n))throw new TypeError(`Unknown comment type: "${n.type}".`);t=n}}var uV=oV;function lV(e){return e!==null&&typeof e=="object"}var cV=lV,Cc=null;function Xc(e){if(Cc!==null&&typeof Cc.property){let t=Cc;return Cc=Xc.prototype=null,t}return Cc=Xc.prototype=e??Object.create(null),new Xc}var pV=10;for(let e=0;e<=pV;e++)Xc();function dV(e){return Xc(e)}function hV(e,t="type"){dV(e);function r(n){let s=n[t],i=e[s];if(!Array.isArray(i))throw Object.assign(new Error(`Missing visitor keys for '${s}'.`),{node:n});return i}return r}var fV=hV,R=[["decorators","key","typeAnnotation","value"],[],["elementType"],["expression"],["expression","typeAnnotation"],["left","right"],["argument"],["directives","body"],["label"],["callee","typeArguments","arguments"],["body"],["decorators","id","typeParameters","superClass","superTypeArguments","mixins","implements","body","superTypeParameters"],["id","typeParameters"],["decorators","key","typeParameters","params","returnType","body"],["decorators","variance","key","typeAnnotation","value"],["name","typeAnnotation"],["test","consequent","alternate"],["checkType","extendsType","trueType","falseType"],["value"],["id","body"],["declaration","specifiers","source","attributes"],["id"],["id","typeParameters","extends","body"],["typeAnnotation"],["id","typeParameters","right"],["body","test"],["members"],["id","init"],["exported"],["left","right","body"],["id","typeParameters","params","predicate","returnType","body"],["id","params","body","typeParameters","returnType"],["key","value"],["local"],["objectType","indexType"],["typeParameter"],["types"],["node"],["object","property"],["argument","cases"],["pattern","body","guard"],["literal"],["decorators","key","value"],["expressions"],["qualification","id"],["decorators","key","typeAnnotation"],["typeParameters","params","returnType"],["expression","typeArguments"],["params"],["parameterName","typeAnnotation"]],mV={AccessorProperty:R[0],AnyTypeAnnotation:R[1],ArgumentPlaceholder:R[1],ArrayExpression:["elements"],ArrayPattern:["elements","typeAnnotation","decorators"],ArrayTypeAnnotation:R[2],ArrowFunctionExpression:["typeParameters","params","predicate","returnType","body"],AsConstExpression:R[3],AsExpression:R[4],AssignmentExpression:R[5],AssignmentPattern:["left","right","decorators","typeAnnotation"],AwaitExpression:R[6],BigIntLiteral:R[1],BigIntLiteralTypeAnnotation:R[1],BigIntTypeAnnotation:R[1],BinaryExpression:R[5],BindExpression:["object","callee"],BlockStatement:R[7],BooleanLiteral:R[1],BooleanLiteralTypeAnnotation:R[1],BooleanTypeAnnotation:R[1],BreakStatement:R[8],CallExpression:R[9],CatchClause:["param","body"],ChainExpression:R[3],ClassAccessorProperty:R[0],ClassBody:R[10],ClassDeclaration:R[11],ClassExpression:R[11],ClassImplements:R[12],ClassMethod:R[13],ClassPrivateMethod:R[13],ClassPrivateProperty:R[14],ClassProperty:R[14],ComponentDeclaration:["id","params","body","typeParameters","rendersType"],ComponentParameter:["name","local"],ComponentTypeAnnotation:["params","rest","typeParameters","rendersType"],ComponentTypeParameter:R[15],ConditionalExpression:R[16],ConditionalTypeAnnotation:R[17],ContinueStatement:R[8],DebuggerStatement:R[1],DeclareClass:["id","typeParameters","extends","mixins","implements","body"],DeclareComponent:["id","params","rest","typeParameters","rendersType"],DeclaredPredicate:R[18],DeclareEnum:R[19],DeclareExportAllDeclaration:["source","attributes"],DeclareExportDeclaration:R[20],DeclareFunction:["id","predicate"],DeclareHook:R[21],DeclareInterface:R[22],DeclareModule:R[19],DeclareModuleExports:R[23],DeclareNamespace:R[19],DeclareOpaqueType:["id","typeParameters","supertype","lowerBound","upperBound"],DeclareTypeAlias:R[24],DeclareVariable:R[21],Decorator:R[3],Directive:R[18],DirectiveLiteral:R[1],DoExpression:R[10],DoWhileStatement:R[25],EmptyStatement:R[1],EmptyTypeAnnotation:R[1],EnumBigIntBody:R[26],EnumBigIntMember:R[27],EnumBooleanBody:R[26],EnumBooleanMember:R[27],EnumDeclaration:R[19],EnumDefaultedMember:R[21],EnumNumberBody:R[26],EnumNumberMember:R[27],EnumStringBody:R[26],EnumStringMember:R[27],EnumSymbolBody:R[26],ExistsTypeAnnotation:R[1],ExperimentalRestProperty:R[6],ExperimentalSpreadProperty:R[6],ExportAllDeclaration:["source","attributes","exported"],ExportDefaultDeclaration:["declaration"],ExportDefaultSpecifier:R[28],ExportNamedDeclaration:R[20],ExportNamespaceSpecifier:R[28],ExportSpecifier:["local","exported"],ExpressionStatement:R[3],File:["program"],ForInStatement:R[29],ForOfStatement:R[29],ForStatement:["init","test","update","body"],FunctionDeclaration:R[30],FunctionExpression:R[30],FunctionTypeAnnotation:["typeParameters","this","params","rest","returnType"],FunctionTypeParam:R[15],GenericTypeAnnotation:R[12],HookDeclaration:R[31],HookTypeAnnotation:["params","returnType","rest","typeParameters"],Identifier:["typeAnnotation","decorators"],IfStatement:R[16],ImportAttribute:R[32],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:R[33],ImportExpression:["source","options"],ImportNamespaceSpecifier:R[33],ImportSpecifier:["imported","local"],IndexedAccessType:R[34],InferredPredicate:R[1],InferTypeAnnotation:R[35],InterfaceDeclaration:R[22],InterfaceExtends:R[12],InterfaceTypeAnnotation:["extends","body"],InterpreterDirective:R[1],IntersectionTypeAnnotation:R[36],JsExpressionRoot:R[37],JsonRoot:R[37],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:R[1],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:R[1],JSXExpressionContainer:R[3],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:R[1],JSXMemberExpression:R[38],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","typeArguments","attributes"],JSXOpeningFragment:R[1],JSXSpreadAttribute:R[6],JSXSpreadChild:R[3],JSXText:R[1],KeyofTypeAnnotation:R[6],LabeledStatement:["label","body"],Literal:R[1],LogicalExpression:R[5],MatchArrayPattern:["elements","rest"],MatchAsPattern:["pattern","target"],MatchBindingPattern:R[21],MatchExpression:R[39],MatchExpressionCase:R[40],MatchIdentifierPattern:R[21],MatchLiteralPattern:R[41],MatchMemberPattern:["base","property"],MatchObjectPattern:["properties","rest"],MatchObjectPatternProperty:["key","pattern"],MatchOrPattern:["patterns"],MatchRestPattern:R[6],MatchStatement:R[39],MatchStatementCase:R[40],MatchUnaryPattern:R[6],MatchWildcardPattern:R[1],MemberExpression:R[38],MetaProperty:["meta","property"],MethodDefinition:R[42],MixedTypeAnnotation:R[1],ModuleExpression:R[10],NeverTypeAnnotation:R[1],NewExpression:R[9],NGChainedExpression:R[43],NGEmptyExpression:R[1],NGMicrosyntax:R[10],NGMicrosyntaxAs:["key","alias"],NGMicrosyntaxExpression:["expression","alias"],NGMicrosyntaxKey:R[1],NGMicrosyntaxKeyedExpression:["key","expression"],NGMicrosyntaxLet:R[32],NGPipeExpression:["left","right","arguments"],NGRoot:R[37],NullableTypeAnnotation:R[23],NullLiteral:R[1],NullLiteralTypeAnnotation:R[1],NumberLiteralTypeAnnotation:R[1],NumberTypeAnnotation:R[1],NumericLiteral:R[1],ObjectExpression:["properties"],ObjectMethod:R[13],ObjectPattern:["decorators","properties","typeAnnotation"],ObjectProperty:R[42],ObjectTypeAnnotation:["properties","indexers","callProperties","internalSlots"],ObjectTypeCallProperty:R[18],ObjectTypeIndexer:["variance","id","key","value"],ObjectTypeInternalSlot:["id","value"],ObjectTypeMappedTypeProperty:["keyTparam","propType","sourceType","variance"],ObjectTypeProperty:["key","value","variance"],ObjectTypeSpreadProperty:R[6],OpaqueType:["id","typeParameters","supertype","impltype","lowerBound","upperBound"],OptionalCallExpression:R[9],OptionalIndexedAccessType:R[34],OptionalMemberExpression:R[38],ParenthesizedExpression:R[3],PipelineBareFunction:["callee"],PipelinePrimaryTopicReference:R[1],PipelineTopicExpression:R[3],Placeholder:R[1],PrivateIdentifier:R[1],PrivateName:R[21],Program:R[7],Property:R[32],PropertyDefinition:R[14],QualifiedTypeIdentifier:R[44],QualifiedTypeofIdentifier:R[44],RegExpLiteral:R[1],RestElement:["argument","typeAnnotation","decorators"],ReturnStatement:R[6],SatisfiesExpression:R[4],SequenceExpression:R[43],SpreadElement:R[6],StaticBlock:R[10],StringLiteral:R[1],StringLiteralTypeAnnotation:R[1],StringTypeAnnotation:R[1],Super:R[1],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],SymbolTypeAnnotation:R[1],TaggedTemplateExpression:["tag","typeArguments","quasi"],TemplateElement:R[1],TemplateLiteral:["quasis","expressions"],ThisExpression:R[1],ThisTypeAnnotation:R[1],ThrowStatement:R[6],TopicReference:R[1],TryStatement:["block","handler","finalizer"],TSAbstractAccessorProperty:R[45],TSAbstractKeyword:R[1],TSAbstractMethodDefinition:R[32],TSAbstractPropertyDefinition:R[45],TSAnyKeyword:R[1],TSArrayType:R[2],TSAsExpression:R[4],TSAsyncKeyword:R[1],TSBigIntKeyword:R[1],TSBooleanKeyword:R[1],TSCallSignatureDeclaration:R[46],TSClassImplements:R[47],TSConditionalType:R[17],TSConstructorType:R[46],TSConstructSignatureDeclaration:R[46],TSDeclareFunction:R[31],TSDeclareKeyword:R[1],TSDeclareMethod:["decorators","key","typeParameters","params","returnType"],TSEmptyBodyFunctionExpression:["id","typeParameters","params","returnType"],TSEnumBody:R[26],TSEnumDeclaration:R[19],TSEnumMember:["id","initializer"],TSExportAssignment:R[3],TSExportKeyword:R[1],TSExternalModuleReference:R[3],TSFunctionType:R[46],TSImportEqualsDeclaration:["id","moduleReference"],TSImportType:["options","qualifier","typeArguments","source"],TSIndexedAccessType:R[34],TSIndexSignature:["parameters","typeAnnotation"],TSInferType:R[35],TSInstantiationExpression:R[47],TSInterfaceBody:R[10],TSInterfaceDeclaration:R[22],TSInterfaceHeritage:R[47],TSIntersectionType:R[36],TSIntrinsicKeyword:R[1],TSJSDocAllType:R[1],TSJSDocNonNullableType:R[23],TSJSDocNullableType:R[23],TSJSDocUnknownType:R[1],TSLiteralType:R[41],TSMappedType:["key","constraint","nameType","typeAnnotation"],TSMethodSignature:["key","typeParameters","params","returnType"],TSModuleBlock:R[10],TSModuleDeclaration:R[19],TSNamedTupleMember:["label","elementType"],TSNamespaceExportDeclaration:R[21],TSNeverKeyword:R[1],TSNonNullExpression:R[3],TSNullKeyword:R[1],TSNumberKeyword:R[1],TSObjectKeyword:R[1],TSOptionalType:R[23],TSParameterProperty:["parameter","decorators"],TSParenthesizedType:R[23],TSPrivateKeyword:R[1],TSPropertySignature:["key","typeAnnotation"],TSProtectedKeyword:R[1],TSPublicKeyword:R[1],TSQualifiedName:R[5],TSReadonlyKeyword:R[1],TSRestType:R[23],TSSatisfiesExpression:R[4],TSStaticKeyword:R[1],TSStringKeyword:R[1],TSSymbolKeyword:R[1],TSTemplateLiteralType:["quasis","types"],TSThisType:R[1],TSTupleType:["elementTypes"],TSTypeAliasDeclaration:["id","typeParameters","typeAnnotation"],TSTypeAnnotation:R[23],TSTypeAssertion:R[4],TSTypeLiteral:R[26],TSTypeOperator:R[23],TSTypeParameter:["name","constraint","default"],TSTypeParameterDeclaration:R[48],TSTypeParameterInstantiation:R[48],TSTypePredicate:R[49],TSTypeQuery:["exprName","typeArguments"],TSTypeReference:["typeName","typeArguments"],TSUndefinedKeyword:R[1],TSUnionType:R[36],TSUnknownKeyword:R[1],TSVoidKeyword:R[1],TupleTypeAnnotation:["types","elementTypes"],TupleTypeLabeledElement:["label","elementType","variance"],TupleTypeSpreadElement:["label","typeAnnotation"],TypeAlias:R[24],TypeAnnotation:R[23],TypeCastExpression:R[4],TypeofTypeAnnotation:["argument","typeArguments"],TypeOperator:R[23],TypeParameter:["bound","default","variance"],TypeParameterDeclaration:R[48],TypeParameterInstantiation:R[48],TypePredicate:R[49],UnaryExpression:R[6],UndefinedTypeAnnotation:R[1],UnionTypeAnnotation:R[36],UnknownTypeAnnotation:R[1],UpdateExpression:R[6],V8IntrinsicIdentifier:R[1],VariableDeclaration:["declarations"],VariableDeclarator:R[27],Variance:R[1],VoidPattern:R[1],VoidTypeAnnotation:R[1],WhileStatement:R[25],WithStatement:["object","body"],YieldExpression:R[6]},yV=fV(mV),gV=yV;function Jf(e,t){if(!cV(e))return e;if(Array.isArray(e)){for(let n=0;n<e.length;n++)e[n]=Jf(e[n],t);return e}if(t.onEnter){let n=t.onEnter(e)??e;if(n!==e)return Jf(n,t);e=n}let r=gV(e);for(let n=0;n<r.length;n++)e[r[n]]=Jf(e[r[n]],t);return t.onLeave&&(e=t.onLeave(e)||e),e}var DV=Jf;_D(["RegExpLiteral","BigIntLiteral","NumericLiteral","StringLiteral","DirectiveLiteral","Literal","JSXText","TemplateElement","StringLiteralTypeAnnotation","NumberLiteralTypeAnnotation","BigIntLiteralTypeAnnotation"]);function xV(e,t){let{parser:r,text:n}=t,{comments:s}=e,i=r==="oxc"&&t.oxcAstType==="ts";uV(s);let o=e.type==="File"?e.program:e;o.interpreter&&(s.unshift(o.interpreter),delete o.interpreter),i&&e.hashbang&&(s.unshift(e.hashbang),delete e.hashbang),e.type==="Program"&&(e.range=[0,n.length]);let l;return e=DV(e,{onEnter(u){switch(u.type){case"ParenthesizedExpression":{let{expression:f}=u,p=Li(u);if(f.type==="TypeCastExpression")return f.range=[p,ei(u)],f;let d=!1;if(!i){if(!l){l=[];for(let m of s)sV(m)&&l.push(ei(m))}let y=XW(0,l,m=>m<=p);d=y&&n.slice(y,p).trim().length===0}return d?void 0:(f.extra={...f.extra,parenthesized:!0},f)}case"TemplateLiteral":if(u.expressions.length!==u.quasis.length-1)throw new Error("Malformed template literal.");break;case"TemplateElement":if(r==="flow"||r==="hermes"||r==="espree"||r==="typescript"||i){let f=Li(u)+1,p=ei(u)-(u.tail?1:2);u.range=[f,p]}break;case"VariableDeclaration":{let f=YW(0,u.declarations,-1);f?.init&&n[ei(f)]!==";"&&(u.range=[Li(u),ei(f)]);break}case"TSParenthesizedType":return u.typeAnnotation;case"TopicReference":e.extra={...e.extra,__isUsingHackPipeline:!0};break;case"TSUnionType":case"TSIntersectionType":if(u.types.length===1)return u.types[0];break;case"ImportExpression":r==="hermes"&&u.attributes&&!u.options&&(u.options=u.attributes);break}},onLeave(u){switch(u.type){case"LogicalExpression":if(pA(u))return o2(u);break;case"TSImportType":!u.source&&u.argument.type==="TSLiteralType"&&(u.source=u.argument.literal,delete u.argument);break}}}),e}function pA(e){return e.type==="LogicalExpression"&&e.right.type==="LogicalExpression"&&e.operator===e.right.operator}function o2(e){return pA(e)?o2({type:"LogicalExpression",operator:e.operator,left:o2({type:"LogicalExpression",operator:e.operator,left:e.left,right:e.right.left,range:[Li(e.left),ei(e.right.left)]}),right:e.right.right,range:[Li(e),ei(e)]}):e}var TV=xV,EV=/\*\/$/,bV=/^\/\*\*?/,CV=/^\s*(\/\*\*?(.|\r?\n)*?\*\/)/,AV=/(^|\s+)\/\/([^\n\r]*)/g,CT=/^(\r?\n)+/,vV=/(?:^|\r?\n) *(@[^\n\r]*?) *\r?\n *(?![^\n\r@]*\/\/[^]*)([^\s@][^\n\r@]+?) *\r?\n/g,AT=/(?:^|\r?\n) *@(\S+) *([^\n\r]*)/g,SV=/(\r?\n|^) *\* ?/g,_V=[];function FV(e){let t=e.match(CV);return t?t[0].trimStart():""}function kV(e){e=Nu(0,e.replace(bV,"").replace(EV,""),SV,"$1");let t="";for(;t!==e;)t=e,e=Nu(0,e,vV,`
|
|
164
|
-
$1 $2
|
|
165
|
-
`);e=e.replace(CT,"").trimEnd();let r=Object.create(null),n=Nu(0,e,AT,"").replace(CT,"").trimEnd(),s;for(;s=AT.exec(e);){let i=Nu(0,s[2],AV,"");if(typeof r[s[1]]=="string"||Array.isArray(r[s[1]])){let o=r[s[1]];r[s[1]]=[..._V,...Array.isArray(o)?o:[o],i]}else r[s[1]]=i}return{comments:n,pragmas:r}}var wV=["noformat","noprettier"],PV=["format","prettier"];function NV(e){if(!e.startsWith("#!"))return"";let t=e.indexOf(`
|
|
166
|
-
`);return t===-1?e:e.slice(0,t)}var IV=NV;function dA(e){let t=IV(e);t&&(e=e.slice(t.length+1));let r=FV(e),{pragmas:n,comments:s}=kV(r);return{shebang:t,text:e,pragmas:n,comments:s}}function BV(e){let{pragmas:t}=dA(e);return PV.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function LV(e){let{pragmas:t}=dA(e);return wV.some(r=>Object.prototype.hasOwnProperty.call(t,r))}function OV(e){return e=typeof e=="function"?{parse:e}:e,{astFormat:"estree",hasPragma:BV,hasIgnorePragma:LV,locStart:Li,locEnd:ei,...e}}var $V=OV,MV=/^[^"'`]*<\/|^[^/]{2}.*\/>/mu;function jV(e){return e.charAt(0)==="#"&&e.charAt(1)==="!"?"//"+e.slice(2):e}var JV=jV,hA="module",fA="commonjs",RV=[hA,fA];function UV(e){if(typeof e=="string"){if(e=e.toLowerCase(),/\.(?:mjs|mts)$/iu.test(e))return hA;if(/\.(?:cjs|cts)$/iu.test(e))return fA}}var qV={loc:!0,range:!0,comment:!0,tokens:!1,loggerFn:!1,project:!1,jsDocParsingMode:"none",suppressDeprecatedPropertyWarnings:!0};function KV(e){let{message:t,location:r}=e;if(!r)return e;let{start:n,end:s}=r;return zW(t,{loc:{start:{line:n.line,column:n.column+1},end:{line:s.line,column:s.column+1}},cause:e})}var zV=e=>e&&/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/iu.test(e);function WV(e,t){let r=[{...qV,filePath:t}],n=UV(t);if(n?r=r.map(i=>({...i,sourceType:n})):r=RV.flatMap(i=>r.map(o=>({...o,sourceType:i}))),zV(t))return r;let s=MV.test(e);return[s,!s].flatMap(i=>r.map(o=>({...o,jsx:i})))}function VV(e,t){let r=t?.filepath;typeof r!="string"&&(r=void 0);let n=JV(e),s=WV(e,r),i;try{i=WW(s.map(o=>()=>UW(n,o)))}catch({errors:[o]}){throw KV(o)}return TV(i,{parser:"typescript",text:e})}var HV=$V(VV);export{WA as H,Uj as I,$F as K,$w as T,WO as _};
|