sveast 0.2.0 → 0.4.0

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.
@@ -0,0 +1,12 @@
1
+ import{b,S,f}from"./shared-vpc1jrf6.js";var Te="",Le,Ce=0;function c(t){Te=t,Le=void 0,Ce=0}function n(t){if(!Le){Le=[0];let ve=Te.indexOf(`
2
+ `);while(ve!==-1)Le.push(ve+1),ve=Te.indexOf(`
3
+ `,ve+1)}let r=0,a=Le.length-1;if(t>=Le[Ce])r=Ce;else a=Ce-1;if(r<a&&t<Le[r+1])a=r;while(r<a){let ve=r+a+1>>>1;if(Le[ve]<=t)r=ve;else a=ve-1}return Ce=r,{line:r+1,column:t-Le[r],character:t}}function u(t){let{line:r,column:a}=n(t);return{line:r,column:a}}function De(){return Te.split(`
4
+ `)}var He=/^\t+/;class e extends Error{name="ParseError";code;reason;position;start;end;frame;constructor(t,r,a){super(`${a}
5
+ https://svelte.dev/e/${r}`);this.code=r,this.reason=a;let ve=typeof t==="number"?t:t?.start,_e=typeof t==="number"?t:t?.end;if(ve!==void 0)this.position=[ve,_e??ve],this.start=n(this.position[0]),this.end=n(this.position[1]),this.frame=Qe(this.start.line-1,this.end.column)}}var We=(t)=>t.replace(He,(r)=>" ".repeat(r.length));function Qe(t,r){let a=De(),ve=Math.max(0,t-2),_e=Math.min(t+3,a.length),ge=String(_e+1).length;return a.slice(ve,_e).map((we,xe)=>{let be=String(xe+ve+1).padStart(ge," ");if(ve+xe!==t)return`${be}: ${We(we)}`;let ke=`${" ".repeat(ge+2+We(we.slice(0,r)).length)}^`;return`${be}: ${We(we)}
6
+ ${ke}`}).join(`
7
+ `)}function T(t){throw new e(t,"attribute_duplicate","Attributes need to be unique")}function A(t){throw new e(t,"attribute_empty_shorthand","Attribute shorthand cannot be empty")}function E(t,r){throw new e(t,"block_duplicate_clause",`${r} cannot appear more than once within a block`)}function N(t){throw new e(t,"block_invalid_continuation_placement","{:...} block is invalid at this position (did you forget to close the preceding element or block?)")}function C(t){throw new e(t,"block_invalid_elseif","'elseif' should be 'else if'")}function _(t,r,a){throw new e(t,"block_invalid_placement",`{#${r} ...} block cannot be ${a}`)}function L(t){throw new e(t,"block_unclosed","Block was left open")}function P(t){throw new e(t,"block_unexpected_close","Unexpected block closing tag")}function q(t){throw new e(t,"const_tag_invalid_expression","{@const ...} must consist of a single variable declaration")}function I(t){throw new e(t,"css_empty_declaration","Declaration cannot be empty")}function x(t){throw new e(t,"css_expected_identifier","Expected a valid CSS identifier")}function R(t){throw new e(t,"css_selector_invalid","Invalid selector")}function O(t){throw new e(t,"debug_tag_invalid_arguments","{@debug ...} arguments must be identifiers, not arbitrary expressions")}function g(t){throw new e(t,"declaration_tag_invalid_type","Declaration tags must be `let` or `const` declarations")}function D(t){throw new e(t,"directive_invalid_value","Directive value must be a JavaScript expression enclosed in curly braces")}function B(t,r){throw new e(t,"directive_missing_name",`\`${r}\` name cannot be empty`)}function V(t,r){throw new e(t,"element_invalid_closing_tag",`\`</${r}>\` attempted to close an element that was not open`)}function F(t,r,a){throw new e(t,"element_invalid_closing_tag_autoclosed",`\`</${r}>\` attempted to close element that was already automatically closed by \`<${a}>\` (cannot nest \`<${a}>\` inside \`<${r}>\`)`)}function d(t,r){throw new e(t,"element_unclosed",`\`<${r}>\` was left open`)}function y(t){throw new e(t,"expected_attribute_value","Expected attribute value")}function M(t){throw new e(t,"expected_block_type","Expected 'if', 'each', 'await', 'key' or 'snippet'")}function v(t){throw new e(t,"expected_identifier","Expected an identifier")}function j(t){throw new e(t,"expected_pattern","Expected identifier or destructure pattern")}function U(t){throw new e(t,"expected_tag","Expected 'html', 'render', 'attach', 'const', or 'debug'")}function s(t,r){throw new e(t,"expected_token",`Expected token ${r}`)}function z(t){throw new e(t,"expected_whitespace","Expected whitespace")}function Me(t,r){throw new e(t,"js_parse_error",`${r}`)}function W(t){throw new e(t,"render_tag_invalid_expression","`{@render ...}` tags can only contain call expressions")}function G(t){throw new e(t,"script_duplicate","A component can have a single top-level `<script>` element and/or a single top-level `<script module>` element")}function H(t,r){throw new e(t,"script_invalid_attribute_value",`If the \`${r}\` attribute is supplied, it must be a boolean attribute`)}function K(t){throw new e(t,"script_invalid_context",'If the context attribute is supplied, its value must be "module"')}function Q(t,r){throw new e(t,"script_reserved_attribute",`The \`${r}\` attribute is reserved and cannot be used`)}function X(t){throw new e(t,"style_duplicate","A component can have a single top-level `<style>` element")}function Y(t){throw new e(t,"svelte_component_invalid_this","Invalid component definition — must be an `{expression}`")}function Z(t){throw new e(t,"svelte_component_missing_this","`<svelte:component>` must have a 'this' attribute")}function k(t){throw new e(t,"svelte_element_missing_this","`<svelte:element>` must have a 'this' attribute with a value")}function J(t,r){throw new e(t,"svelte_meta_duplicate",`A component can only have one \`<${r}>\` element`)}function ee(t,r){throw new e(t,"svelte_meta_invalid_content",`<${r}> cannot have children`)}function te(t,r){throw new e(t,"svelte_meta_invalid_placement",`\`<${r}>\` tags cannot be inside elements or blocks`)}function ie(t,r){throw new e(t,"svelte_meta_invalid_tag",`Valid \`<svelte:...>\` tag names are ${r}`)}function se(t){throw new e(t,"svelte_options_deprecated_tag",'"tag" option is deprecated — use "customElement" instead')}function re(t){throw new e(t,"svelte_options_invalid_attribute","`<svelte:options>` can only receive static attributes")}function m(t,r){throw new e(t,"svelte_options_invalid_attribute_value",`Value must be ${r}, if specified`)}function ne(t){throw new e(t,"svelte_options_invalid_customelement",'"customElement" must be a string literal defining a valid custom element name or an object of the form { tag?: string; shadow?: "open" | "none" | `ShadowRootInit`; props?: { [key: string]: { attribute?: string; reflect?: boolean; type: .. } } }')}function ae(t){throw new e(t,"svelte_options_invalid_customelement_props",'"props" must be a statically analyzable object literal of the form "{ [key: string]: { attribute?: string; reflect?: boolean; type?: "String" | "Boolean" | "Number" | "Array" | "Object" }"')}function oe(t){throw new e(t,"svelte_options_invalid_customelement_shadow",'"shadow" must be either "open", "none" or `ShadowRootInit` object.')}function w(t){throw new e(t,"svelte_options_invalid_tagname","Tag name must be lowercase and hyphenated")}function ue(t){throw new e(t,"svelte_options_reserved_tagname","Tag name is reserved")}function le(t,r){throw new e(t,"svelte_options_unknown_attribute",`\`<svelte:options>\` unknown attribute '${r}'`)}function ce(t){throw new e(t,"tag_invalid_name","Expected a valid element or component name. Components must have a valid variable name or dot notation expression")}function he(t,r,a){throw new e(t,"tag_invalid_placement",`{@${r} ...} tag cannot be ${a}`)}function i(t){throw new e(t,"unexpected_eof","Unexpected end of input")}function pe(t,r){throw new e(t,"unexpected_reserved_word",`'${r}' is a reserved word in JavaScript and cannot be used here`)}function fe(t){throw new e(t,"unterminated_string_constant","Unterminated string constant")}function de(t){throw new e(t,"void_element_invalid_content","Void elements cannot have children or closing tags")}function Pe(t){return typeof t==="object"&&t!==null&&"type"in t&&typeof t.type==="string"}function Ie(t){return t}function h(t,r){let a=Ie(t);for(let ve in a){let _e=a[ve];if(Array.isArray(_e)){for(let ge=0;ge<_e.length;ge++)if(Pe(_e[ge]))_e[ge]=r(_e[ge])}else if(Pe(_e))a[ve]=r(_e)}}function l(t,...r){if(!r.some((a)=>a===t.type))throw Error(`expected ${r.join(" or ")}, got ${t.type}`)}var Ee="",Ke=[];function Ue(t,r){Ee=t,Ke=r}function Ve(t,r,a,ve,_e,ge){let we=r;if(t&&we.includes(`
8
+ `)){let be=Ee.lastIndexOf(`
9
+ `,a-1)+1,ke=be,Se=Ee.charCodeAt(ke);while(Se===32||Se===9)Se=Ee.charCodeAt(++ke);if(ke>be)we=Ze(we,Ee.slice(be,ke))}let xe={type:t?"Block":"Line",value:we,start:a,end:ve};if(_e&&ge)xe.loc={start:_e,end:ge};Ke.push(xe)}function Ze(t,r){let a=t.startsWith(r)?r.length:0,ve="",_e=t.indexOf(`
10
+ `,a);while(_e!==-1){if(ve+=t.slice(a,_e+1),a=_e+1,t.startsWith(r,a))a+=r.length;_e=t.indexOf(`
11
+ `,a)}return ve+t.slice(a)}function Ge(t,r,a){let ve=0,_e=r.length;while(ve<_e){let ge=ve+_e>>>1;if(r[ge].start<a)ve=ge+1;else _e=ge}if(ve>=r.length)return;if(ye=r.slice(ve).map(({type:ge,value:we,start:xe,end:be})=>({type:ge,value:we,start:xe,end:be})),Ne=0,je(t,void 0,!1),Ne<ye.length&&(ye[Ne].start>=t.end||t.type==="Program")){t.trailingComments??=[];while(Ne<ye.length)t.trailingComments.push(ye[Ne++])}}var ye=[],Ne=0,et=new Map([["BlockStatement","body"],["Program","body"],["ArrayExpression","elements"],["ObjectExpression","properties"]]);function Fe(t,r){for(let a=t;a<r;a++){let ve=Ee.charCodeAt(a);if(ve!==44&&ve!==41&&ve!==32&&ve!==9)return!0}return!1}function je(t,r,a){while(Ne<ye.length&&ye[Ne].start<t.start)t.leadingComments??=[],t.leadingComments.push(ye[Ne++]);if(Ne>=ye.length)return;let ve=ye[Ne].start;if(ve<t.end||!Fe(t.end,ve)){let _e=Ie(t),ge=et.get(t.type),we=ge===void 0?void 0:_e[ge],xe=Array.isArray(we)&&we.length===0;for(let be in _e){if(Ne>=ye.length)return;if(be==="type")continue;let ke=_e[be];if(Array.isArray(ke)){let Se=be===ge;for(let Ae=0;Ae<ke.length;Ae++){let ze=ke[Ae];if(Pe(ze))je(ze,t,Se?Ae===ke.length-1:xe)}}else if(Pe(ke))je(ke,t,xe)}if(Ne>=ye.length)return}if(r!==void 0&&t.end===r.end)return;if(a)while(Ne<ye.length){if(r&&ye[Ne].start>=r.end)break;t.trailingComments??=[],t.trailingComments.push(ye[Ne++])}else if(t.end<=ye[Ne].start&&!Fe(t.end,ye[Ne].start))t.trailingComments=[ye[Ne++]]}var Be=!1,Je=new Map;function $e(t){if(!(t instanceof RegExp))return t;let r=Je.get(t);if(!r){let a=new Set(t.source.slice(4,-2).split("|"));r={test:(ve)=>a.has(ve)},Je.set(t,r)}return r}var Xe=b((t)=>{let{keywordTypes:r,tokTypes:a}=t.acorn,ve=new Map("break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this const class extends export import super".split(" ").map((_e)=>[_e,r[_e]]));return class extends t{constructor(_e,ge,we){super(_e,ge,we);this.keywords=$e(this.keywords),this.reservedWords=$e(this.reservedWords),this.reservedWordsStrict=$e(this.reservedWordsStrict),this.reservedWordsStrictBind=$e(this.reservedWordsStrictBind)}parseParenAndDistinguishExpression(_e,ge){let we=super.parseParenAndDistinguishExpression(_e,ge);if(we.type==="ParenthesizedExpression")Be=!0;return we}checkLocalExport(){}skipSpace(){let _e=this.input,ge=this.options.locations,we=this.pos,xe=_e.charCodeAt(we);for(;;)if(xe===32||xe===9)xe=_e.charCodeAt(++we);else if(xe===10){if(xe=_e.charCodeAt(++we),ge)this.curLine++,this.lineStart=we}else break;if(this.pos=we,xe===47||xe<33||xe>=128)super.skipSpace()}readWord1(){let _e=this.input,ge=this.pos,we=ge,xe=_e.charCodeAt(we);while(xe>=97&&xe<=122||xe>=65&&xe<=90||xe>=48&&xe<=57||xe===95||xe===36)xe=_e.charCodeAt(++we);if(xe>=128||xe===92)return super.readWord1();return this.containsEsc=!1,this.pos=we,_e.slice(ge,we)}readWord(){let _e=this.readWord1();return this.finishToken(ve.get(_e)??a.name,_e)}}}),tt=S(Xe),nt=S(f,Xe),ot=/ \(\d+:\d+\)$/;function Oe(t){return t}function qe(t){return t instanceof SyntaxError&&"pos"in t&&typeof t.pos==="number"}function Re(t,r,a,ve,_e,ge=t.root.comments.length){let we=t.root.comments;Ue(r,we);let xe={onComment:Ve,sourceType:"module",ecmaVersion:16,locations:t.loc,preserveParens:ve};if(t.lfOnly)xe.startLocation=n(a);let be;try{be=_e(t.isTypeScript?nt:tt,xe)}catch(ke){if(!qe(ke))throw ke;Me(ke.pos,ke.message.replace(ot,""))}if(we.length>ge)Ge(Oe(be),we,a);return be}function p(t,r,a=0){return Oe(Re(t,r,0,!1,(ve,_e)=>{if(a>0&&_e.locations)_e.startLocation=n(a);let ge=new ve(_e,r,a).parse();return ge.start=0,ge},0))}var rt={count:0};function o(t,r,a,ve=!1){rt.count+=1,Be=!1;let _e=Oe(Re(t,r,a,!0,(xe,be)=>xe.parseExpressionAt(r,a,be))),ge=t.root.comments.at(-1),we=ge&&ge.end>_e.end?ge.end:_e.end;return{node:Be&&!ve?Ye(_e):_e,end:we}}function me(t,r,a){return Oe(Re(t,r,a,!1,(ve,_e)=>{let ge=new ve(_e,r,a);try{return ge.nextToken(),ge.parseStatement(null,!0,Object.create(null))}catch(we){if(qe(we)&&we.pos===r.length)i(r.length);throw we}}))}function Ye(t){let r=t;while(r.type==="ParenthesizedExpression")r=r.expression;return h(r,Ye),r}
12
+ export{c,n,u,e,T,A,E,N,C,_,L,P,q,I,x,R,O,g,D,B,V,F,d,y,M,v,j,U,s,z,W,G,H,K,Q,X,Y,Z,k,J,ee,te,ie,se,re,m,ne,ae,oe,w,ue,le,ce,he,i,pe,fe,de,h,l,p,o,me};
@@ -0,0 +1,10 @@
1
+ var ue=[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],Rt=[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],pe="‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",Vt="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",lt={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},ft="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",ce={5:ft,"5module":ft+" export import",6:ft+" const class extends export import super"},Ft=/^in(stanceof)?$/,le=new RegExp("["+Vt+"]"),fe=new RegExp("["+Vt+pe+"]");function dt(e,s){var n=65536;for(var o=0;o<s.length;o+=2){if(n+=s[o],n>e)return!1;if(n+=s[o+1],n>=e)return!0}return!1}function r(e,s){if(e<65)return e===36;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<=65535)return e>=170&&le.test(String.fromCharCode(e));if(s===!1)return!1;return dt(e,Rt)}function a(e,s){if(e<48)return e===36;if(e<58)return!0;if(e<65)return!1;if(e<91)return!0;if(e<97)return e===95;if(e<123)return!0;if(e<=65535)return e>=170&&fe.test(String.fromCharCode(e));if(s===!1)return!1;return dt(e,Rt)||dt(e,ue)}var A=function(s,n){if(n===void 0)n={};this.label=s,this.keyword=n.keyword,this.beforeExpr=!!n.beforeExpr,this.startsExpr=!!n.startsExpr,this.isLoop=!!n.isLoop,this.isAssign=!!n.isAssign,this.prefix=!!n.prefix,this.postfix=!!n.postfix,this.binop=n.binop||null,this.updateContext=null};function V(e,s){return new A(e,{beforeExpr:!0,binop:s})}var F={beforeExpr:!0},_={startsExpr:!0},xt={};function w(e,s){if(s===void 0)s={};return s.keyword=e,xt[e]=new A(e,s)}var u={num:new A("num",_),regexp:new A("regexp",_),string:new A("string",_),name:new A("name",_),privateId:new A("privateId",_),eof:new A("eof"),bracketL:new A("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new A("]"),braceL:new A("{",{beforeExpr:!0,startsExpr:!0}),braceR:new A("}"),parenL:new A("(",{beforeExpr:!0,startsExpr:!0}),parenR:new A(")"),comma:new A(",",F),semi:new A(";",F),colon:new A(":",F),dot:new A("."),question:new A("?",F),questionDot:new A("?."),arrow:new A("=>",F),template:new A("template"),invalidTemplate:new A("invalidTemplate"),ellipsis:new A("...",F),backQuote:new A("`",_),dollarBraceL:new A("${",{beforeExpr:!0,startsExpr:!0}),eq:new A("=",{beforeExpr:!0,isAssign:!0}),assign:new A("_=",{beforeExpr:!0,isAssign:!0}),incDec:new A("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new A("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:V("||",1),logicalAND:V("&&",2),bitwiseOR:V("|",3),bitwiseXOR:V("^",4),bitwiseAND:V("&",5),equality:V("==/!=/===/!==",6),relational:V("</>/<=/>=",7),bitShift:V("<</>>/>>>",8),plusMin:new A("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:V("%",10),star:V("*",10),slash:V("/",10),starstar:new A("**",{beforeExpr:!0}),coalesce:V("??",1),_break:w("break"),_case:w("case",F),_catch:w("catch"),_continue:w("continue"),_debugger:w("debugger"),_default:w("default",F),_do:w("do",{isLoop:!0,beforeExpr:!0}),_else:w("else",F),_finally:w("finally"),_for:w("for",{isLoop:!0}),_function:w("function",_),_if:w("if"),_return:w("return",F),_switch:w("switch"),_throw:w("throw",F),_try:w("try"),_var:w("var"),_const:w("const"),_while:w("while",{isLoop:!0}),_with:w("with"),_new:w("new",{beforeExpr:!0,startsExpr:!0}),_this:w("this",_),_super:w("super",_),_class:w("class",_),_extends:w("extends",F),_export:w("export"),_import:w("import",_),_null:w("null",_),_true:w("true",_),_false:w("false",_),_in:w("in",{beforeExpr:!0,binop:7}),_instanceof:w("instanceof",{beforeExpr:!0,binop:7}),_typeof:w("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:w("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:w("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},R=/\r\n?|\n|\u2028|\u2029/,de=new RegExp(R.source,"g");function K(e){return e===10||e===13||e===8232||e===8233}function Ot(e,s,n){if(n===void 0)n=e.length;for(var o=s;o<n;o++){var p=e.charCodeAt(o);if(K(p))return o<n-1&&p===13&&e.charCodeAt(o+1)===10?o+2:o+1}return-1}var Bt=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,I=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,Dt=Object.prototype,{hasOwnProperty:me,toString:be}=Dt,Y=Object.hasOwn||function(e,s){return me.call(e,s)},It=Array.isArray||function(e){return be.call(e)==="[object Array]"},Lt=Object.create(null);function tt(e){return Lt[e]||(Lt[e]=new RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function rt(e){if(e<=65535)return String.fromCharCode(e);return e-=65536,String.fromCharCode((e>>10)+55296,(e&1023)+56320)}var ye=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Q=function(s,n){this.line=s,this.column=n};Q.prototype.offset=function(s){return new Q(this.line,this.column+s)};var at=function(s,n,o){if(this.start=n,this.end=o,s.sourceFile!==null)this.source=s.sourceFile};function Mt(e,s){for(var n=1,o=0;;){var p=Ot(e,o,s);if(p<0)return new Q(n,s-o);++n,o=p}}var mt={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},_t=!1;function xe(e){var s={};for(var n in mt)s[n]=e&&Y(e,n)?e[n]:mt[n];if(s.ecmaVersion==="latest")s.ecmaVersion=1e8;else if(s.ecmaVersion==null){if(!_t&&typeof console==="object"&&console.warn)_t=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
2
+ Defaulting to 2020, but this will stop working in the future.`);s.ecmaVersion=11}else if(s.ecmaVersion>=2015)s.ecmaVersion-=2009;if(s.allowReserved==null)s.allowReserved=s.ecmaVersion<5;if(!e||e.allowHashBang==null)s.allowHashBang=s.ecmaVersion>=14;if(It(s.onToken)){var o=s.onToken;s.onToken=function(p){return o.push(p)}}if(It(s.onComment))s.onComment=ve(s,s.onComment);if(s.sourceType==="commonjs"&&s.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return s}function ve(e,s){return function(n,o,p,d,m,i){var h={type:n?"Block":"Line",value:o,start:p,end:d};if(e.locations)h.loc=new at(this,m,i);if(e.ranges)h.range=[p,d];s.push(h)}}var U=1,z=2,vt=4,qt=8,gt=16,Ut=32,nt=64,zt=128,W=256,X=512,Wt=1024,ot=U|z|W;function kt(e,s){return z|(e?vt:0)|(s?qt:0)}var et=0,Nt=1,M=2,jt=3,Kt=4,Ht=5,t=function(s,n,o){this.options=s=xe(s),this.sourceFile=s.sourceFile,this.keywords=tt(ce[s.ecmaVersion>=6?6:s.sourceType==="module"?"5module":5]);var p="";if(s.allowReserved!==!0){if(p=lt[s.ecmaVersion>=6?6:s.ecmaVersion===5?5:3],s.sourceType==="module")p+=" await"}this.reservedWords=tt(p);var d=(p?p+" ":"")+lt.strict;if(this.reservedWordsStrict=tt(d),this.reservedWordsStrictBind=tt(d+" "+lt.strictBind),this.input=String(n),this.containsEsc=!1,this.pos=o||0,this.curLine=1,s.startLocation)this.lineStart=this.pos-s.startLocation.column,this.curLine=s.startLocation.line;else if(o){if(this.lineStart=this.input.lastIndexOf(`
3
+ `,o-1)+1,this.options.locations)this.curLine=this.input.slice(0,this.lineStart).split(R).length}else this.lineStart=0;if(this.type=u.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=s.sourceType==="module",this.strict=this.inModule||s.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&s.allowHashBang&&this.input.slice(0,2)==="#!")this.skipLineComment(2);this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?z:U),this.regexpState=null,this.privateNameStack=[]},O={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};t.prototype.parse=function(){var s=this,n=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return s.parseTopLevel(n)})};O.inFunction.get=function(){return(this.currentVarScope().flags&z)>0};O.inGenerator.get=function(){return(this.currentVarScope().flags&qt)>0};O.inAsync.get=function(){return(this.currentVarScope().flags&vt)>0};O.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var s=this.scopeStack[e],n=s.flags;if(n&(W|X))return!1;if(n&z)return(n&vt)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction};O.allowReturn.get=function(){if(this.inFunction)return!0;if(this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&U)return!0;return!1};O.allowSuper.get=function(){var e=this.currentThisScope(),s=e.flags;return(s&nt)>0||this.options.allowSuperOutsideMethod};O.allowDirectSuper.get=function(){return(this.currentThisScope().flags&zt)>0};O.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())};O.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var s=this.scopeStack[e],n=s.flags;if(n&(W|X)||n&z&&!(n&gt))return!0}return!1};O.allowUsing.get=function(){var e=this.currentScope(),s=e.flags;if(s&Wt)return!1;if(!this.inModule&&s&U)return!1;return!0};O.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&W)>0};t.extend=function(){var s=[],n=arguments.length;while(n--)s[n]=arguments[n];var o=this;for(var p=0;p<s.length;p++)o=s[p](o);return o};t.parse=function(s,n){return new this(n,s).parse()};t.parseExpressionAt=function(s,n,o){var p=new this(o,s,n);return p.nextToken(),p.parseExpression()};t.tokenizer=function(s,n){return new this(n,s)};Object.defineProperties(t.prototype,O);var L=t.prototype,ge=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;L.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){I.lastIndex=e,e+=I.exec(this.input)[0].length;var s=ge.exec(this.input.slice(e));if(!s)return!1;if((s[1]||s[2])==="use strict"){I.lastIndex=e+s[0].length;var n=I.exec(this.input),o=n.index+n[0].length,p=this.input.charAt(o);return p===";"||p==="}"||R.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(p)||p==="!"&&this.input.charAt(o+1)==="=")}if(e+=s[0].length,I.lastIndex=e,e+=I.exec(this.input)[0].length,this.input[e]===";")e++}};L.eat=function(e){if(this.type===e)return this.next(),!0;else return!1};L.isContextual=function(e){return this.type===u.name&&this.value===e&&!this.containsEsc};L.eatContextual=function(e){if(!this.isContextual(e))return!1;return this.next(),!0};L.catchStackOverflow=function(e){try{return e()}catch(s){if(s instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(s.message)||/\btoo much recursion\b/i.test(s.message)))this.raise(this.start,"Not enough stack space to parse input");else throw s}};L.expectContextual=function(e){if(!this.eatContextual(e))this.unexpected()};L.canInsertSemicolon=function(){return this.type===u.eof||this.type===u.braceR||R.test(this.input.slice(this.lastTokEnd,this.start))};L.insertSemicolon=function(){if(this.canInsertSemicolon()){if(this.options.onInsertedSemicolon)this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc);return!0}};L.semicolon=function(){if(!this.eat(u.semi)&&!this.insertSemicolon())this.unexpected()};L.afterTrailingComma=function(e,s){if(this.type===e){if(this.options.onTrailingComma)this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc);if(!s)this.next();return!0}};L.expect=function(e){this.eat(e)||this.unexpected()};L.unexpected=function(e){this.raise(e!=null?e:this.start,"Unexpected token")};var ht=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};L.checkPatternErrors=function(e,s){if(!e)return;if(e.trailingComma>-1)this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=s?e.parenthesizedAssign:e.parenthesizedBind;if(n>-1)this.raiseRecoverable(n,s?"Assigning to rvalue":"Parenthesized pattern")};L.checkExpressionErrors=function(e,s){if(!e)return!1;var{shorthandAssign:n,doubleProto:o}=e;if(!s)return n>=0||o>=0;if(n>=0)this.raise(n,"Shorthand property assignments are valid only in destructuring patterns");if(o>=0)this.raiseRecoverable(o,"Redefinition of __proto__ property")};L.checkYieldAwaitInDefaultParams=function(){if(this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos))this.raise(this.yieldPos,"Yield expression cannot be a default value");if(this.awaitPos)this.raise(this.awaitPos,"Await expression cannot be a default value")};L.isSimpleAssignTarget=function(e){if(e.type==="ParenthesizedExpression")return this.isSimpleAssignTarget(e.expression);return e.type==="Identifier"||e.type==="MemberExpression"};var v=t.prototype;v.parseTopLevel=function(e){var s=Object.create(null);if(!e.body)e.body=[];while(this.type!==u.eof){var n=this.parseStatement(null,!0,s);e.body.push(n)}if(this.inModule)for(var o=0,p=Object.keys(this.undefinedExports);o<p.length;o+=1){var d=p[o];this.raiseRecoverable(this.undefinedExports[d].start,"Export '"+d+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(e,"Program")};var St={kind:"loop"},ke={kind:"switch"};v.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;I.lastIndex=this.pos;var s=I.exec(this.input),n=this.pos+s[0].length,o=this.fullCharCodeAt(n);if(o===91||o===92)return!0;if(e)return!1;if(o===123)return!0;if(r(o)){var p=n;do n+=o<=65535?1:2;while(a(o=this.fullCharCodeAt(n)));if(o===92)return!0;var d=this.input.slice(p,n);if(!Ft.test(d))return!0}return!1};v.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;I.lastIndex=this.pos;var e=I.exec(this.input),s=this.pos+e[0].length,n;return!R.test(this.input.slice(this.pos,s))&&this.input.slice(s,s+8)==="function"&&(s+8===this.input.length||!(a(n=this.fullCharCodeAt(s+8))||n===92))};v.isUsingKeyword=function(e,s){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;I.lastIndex=this.pos;var n=I.exec(this.input),o=this.pos+n[0].length;if(R.test(this.input.slice(this.pos,o)))return!1;if(e){var p=o+5,d;if(this.input.slice(o,p)!=="using"||p===this.input.length||a(d=this.fullCharCodeAt(p))||d===92)return!1;I.lastIndex=p;var m=I.exec(this.input);if(o=p+m[0].length,m&&R.test(this.input.slice(p,o)))return!1}var i=this.fullCharCodeAt(o);if(!r(i)&&i!==92)return!1;var h=o;do o+=i<=65535?1:2;while(a(i=this.fullCharCodeAt(o)));if(i===92)return!0;var l=this.input.slice(h,o);if(Ft.test(l))return!1;if(s&&!e&&l==="of"){I.lastIndex=o;var c=I.exec(this.input);if(o=o+c[0].length,this.input.charCodeAt(o)!==61||(i=this.input.charCodeAt(o+1))===61||i===62)return!1}return!0};v.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)};v.isUsing=function(e){return this.isUsingKeyword(!1,e)};v.parseStatement=function(e,s,n){var o=this.type,p=this.startNode(),d;if(this.isLet(e))o=u._var,d="let";switch(o){case u._break:case u._continue:return this.parseBreakContinueStatement(p,o.keyword);case u._debugger:return this.parseDebuggerStatement(p);case u._do:return this.parseDoStatement(p);case u._for:return this.parseForStatement(p);case u._function:if(e&&(this.strict||e!=="if"&&e!=="label")&&this.options.ecmaVersion>=6)this.unexpected();return this.parseFunctionStatement(p,!1,!e);case u._class:if(e)this.unexpected();return this.parseClass(p,!0);case u._if:return this.parseIfStatement(p);case u._return:return this.parseReturnStatement(p);case u._switch:return this.parseSwitchStatement(p);case u._throw:return this.parseThrowStatement(p);case u._try:return this.parseTryStatement(p);case u._const:case u._var:if(d=d||this.value,e&&d!=="var")this.unexpected();return this.parseVarStatement(p,d);case u._while:return this.parseWhileStatement(p);case u._with:return this.parseWithStatement(p);case u.braceL:return this.parseBlock(!0,p);case u.semi:return this.parseEmptyStatement(p);case u._export:case u._import:if(this.options.ecmaVersion>10&&o===u._import){I.lastIndex=this.pos;var m=I.exec(this.input),i=this.pos+m[0].length,h=this.input.charCodeAt(i);if(h===40||h===46)return this.parseExpressionStatement(p,this.parseExpression())}if(!this.options.allowImportExportEverywhere){if(!s)this.raise(this.start,"'import' and 'export' may only appear at the top level");if(!this.inModule)this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")}return o===u._import?this.parseImport(p):this.parseExport(p,n);default:if(this.isAsyncFunction()){if(e)this.unexpected();return this.next(),this.parseFunctionStatement(p,!0,!e)}var l=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(l){if(!this.allowUsing)this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement");if(e)this.raise(this.start,"Using declaration is not allowed in single-statement positions");if(l==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.next(),this.parseVar(p,!1,l),this.semicolon(),this.finishNode(p,"VariableDeclaration")}var c=this.value,y=this.parseExpression();if(o===u.name&&y.type==="Identifier"&&this.eat(u.colon))return this.parseLabeledStatement(p,c,y,e);else return this.parseExpressionStatement(p,y)}};v.parseBreakContinueStatement=function(e,s){var n=s==="break";if(this.next(),this.eat(u.semi)||this.insertSemicolon())e.label=null;else if(this.type!==u.name)this.unexpected();else e.label=this.parseIdent(),this.semicolon();var o=0;for(;o<this.labels.length;++o){var p=this.labels[o];if(e.label==null||p.name===e.label.name){if(p.kind!=null&&(n||p.kind==="loop"))break;if(e.label&&n)break}}if(o===this.labels.length)this.raise(e.start,"Unsyntactic "+s);return this.finishNode(e,n?"BreakStatement":"ContinueStatement")};v.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")};v.parseDoStatement=function(e){if(this.next(),this.labels.push(St),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(u._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6)this.eat(u.semi);else this.semicolon();return this.finishNode(e,"DoWhileStatement")};v.parseForStatement=function(e){this.next();var s=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(St),this.enterScope(0),this.expect(u.parenL),this.type===u.semi){if(s>-1)this.unexpected(s);return this.parseFor(e,null)}var n=this.isLet();if(this.type===u._var||this.type===u._const||n){var o=this.startNode(),p=n?"let":this.value;return this.next(),this.parseVar(o,!0,p),this.finishNode(o,"VariableDeclaration"),this.parseForAfterInit(e,o,s)}var d=this.isContextual("let"),m=!1,i=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(i){var h=this.startNode();if(this.next(),i==="await using"){if(!this.canAwait)this.raise(this.start,"Await using cannot appear outside of async function");this.next()}return this.parseVar(h,!0,i),this.finishNode(h,"VariableDeclaration"),this.parseForAfterInit(e,h,s)}var l=this.containsEsc,c=new ht,y=this.start,x=s>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);if(this.type===u._in||(m=this.options.ecmaVersion>=6&&this.isContextual("of"))){if(s>-1){if(this.type===u._in)this.unexpected(s);e.await=!0}else if(m&&this.options.ecmaVersion>=8){if(x.start===y&&!l&&x.type==="Identifier"&&x.name==="async")this.unexpected();else if(this.options.ecmaVersion>=9)e.await=!1}if(d&&m)this.raise(x.start,"The left-hand side of a for-of loop may not start with 'let'.");return this.toAssignable(x,!1,c),this.checkLValPattern(x),this.parseForIn(e,x)}else this.checkExpressionErrors(c,!0);if(s>-1)this.unexpected(s);return this.parseFor(e,x)};v.parseForAfterInit=function(e,s,n){if((this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&s.declarations.length===1){if(this.type===u._in){if((s.kind==="using"||s.kind==="await using")&&!s.declarations[0].init)this.raise(this.start,"Using declaration is not allowed in for-in loops");if(this.options.ecmaVersion>=9&&n>-1)this.unexpected(n)}else if(this.options.ecmaVersion>=9)e.await=n>-1;return this.parseForIn(e,s)}if(n>-1)this.unexpected(n);return this.parseFor(e,s)};v.parseFunctionStatement=function(e,s,n){return this.next(),this.parseFunction(e,G|(n?0:bt),!1,s)};v.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(u._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")};v.parseReturnStatement=function(e){if(!this.allowReturn)this.raise(this.start,"'return' outside of function");if(this.next(),this.eat(u.semi)||this.insertSemicolon())e.argument=null;else e.argument=this.parseExpression(),this.semicolon();return this.finishNode(e,"ReturnStatement")};v.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(u.braceL),this.labels.push(ke),this.enterScope(Wt);var s;for(var n=!1;this.type!==u.braceR;)if(this.type===u._case||this.type===u._default){var o=this.type===u._case;if(s)this.finishNode(s,"SwitchCase");if(e.cases.push(s=this.startNode()),s.consequent=[],this.next(),o)s.test=this.parseExpression();else{if(n)this.raiseRecoverable(this.lastTokStart,"Multiple default clauses");n=!0,s.test=null}this.expect(u.colon)}else{if(!s)this.unexpected();s.consequent.push(this.parseStatement(null))}if(this.exitScope(),s)this.finishNode(s,"SwitchCase");return this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")};v.parseThrowStatement=function(e){if(this.next(),R.test(this.input.slice(this.lastTokEnd,this.start)))this.raise(this.lastTokEnd,"Illegal newline after throw");return e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var Ne=[];v.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),s=e.type==="Identifier";return this.enterScope(s?Ut:0),this.checkLValPattern(e,s?Kt:M),this.expect(u.parenR),e};v.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===u._catch){var s=this.startNode();if(this.next(),this.eat(u.parenL))s.param=this.parseCatchClauseParam();else{if(this.options.ecmaVersion<10)this.unexpected();s.param=null,this.enterScope(0)}s.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(s,"CatchClause")}if(e.finalizer=this.eat(u._finally)?this.parseBlock():null,!e.handler&&!e.finalizer)this.raise(e.start,"Missing catch or finally clause");return this.finishNode(e,"TryStatement")};v.parseVarStatement=function(e,s,n){return this.next(),this.parseVar(e,!1,s,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")};v.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(St),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")};v.parseWithStatement=function(e){if(this.strict)this.raise(this.start,"'with' in strict mode");return this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")};v.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")};v.parseLabeledStatement=function(e,s,n,o){for(var p=0,d=this.labels;p<d.length;p+=1){var m=d[p];if(m.name===s)this.raise(n.start,"Label '"+s+"' is already declared")}var i=this.type.isLoop?"loop":this.type===u._switch?"switch":null;for(var h=this.labels.length-1;h>=0;h--){var l=this.labels[h];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=i;else break}return this.labels.push({name:s,kind:i,statementStart:this.start}),e.body=this.parseStatement(o?o.indexOf("label")===-1?o+"label":o:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")};v.parseExpressionStatement=function(e,s){return e.expression=s,this.semicolon(),this.finishNode(e,"ExpressionStatement")};v.parseBlock=function(e,s,n){if(e===void 0)e=!0;if(s===void 0)s=this.startNode();if(s.body=[],this.expect(u.braceL),e)this.enterScope(0);while(this.type!==u.braceR){var o=this.parseStatement(null);s.body.push(o)}if(n)this.strict=!1;if(this.next(),e)this.exitScope();return this.finishNode(s,"BlockStatement")};v.parseFor=function(e,s){return e.init=s,this.expect(u.semi),e.test=this.type===u.semi?null:this.parseExpression(),this.expect(u.semi),e.update=this.type===u.parenR?null:this.parseExpression(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")};v.parseForIn=function(e,s){var n=this.type===u._in;if(this.next(),s.type==="VariableDeclaration"&&s.declarations[0].init!=null&&(!n||this.options.ecmaVersion<8||this.strict||s.kind!=="var"||s.declarations[0].id.type!=="Identifier"))this.raise(s.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer");return e.left=s,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(u.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")};v.parseVar=function(e,s,n,o){e.declarations=[],e.kind=n;for(;;){var p=this.startNode();if(this.parseVarId(p,n),this.eat(u.eq))p.init=this.parseMaybeAssign(s);else if(!o&&n==="const"&&!(this.type===u._in||this.options.ecmaVersion>=6&&this.isContextual("of")))this.unexpected();else if(!o&&(n==="using"||n==="await using")&&this.options.ecmaVersion>=17&&this.type!==u._in&&!this.isContextual("of"))this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration");else if(!o&&p.id.type!=="Identifier"&&!(s&&(this.type===u._in||this.isContextual("of"))))this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value");else p.init=null;if(e.declarations.push(this.finishNode(p,"VariableDeclarator")),!this.eat(u.comma))break}return e};v.parseVarId=function(e,s){e.id=s==="using"||s==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,s==="var"?Nt:M,!1)};var G=1,bt=2,Gt=4;v.parseFunction=function(e,s,n,o,p){if(this.initFunction(e),this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!o){if(this.type===u.star&&s&bt)this.unexpected();e.generator=this.eat(u.star)}if(this.options.ecmaVersion>=8)e.async=!!o;if(s&G){if(e.id=s&Gt&&this.type!==u.name?null:this.parseIdent(),e.id&&!(s&bt))this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?Nt:M:jt)}var d=this.yieldPos,m=this.awaitPos,i=this.awaitIdentPos;if(this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(kt(e.async,e.generator)),!(s&G))e.id=this.type===u.name?this.parseIdent():null;return this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,p),this.yieldPos=d,this.awaitPos=m,this.awaitIdentPos=i,this.finishNode(e,s&G?"FunctionDeclaration":"FunctionExpression")};v.parseFunctionParams=function(e){this.expect(u.parenL),e.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()};v.parseClass=function(e,s){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,s),this.parseClassSuper(e);var o=this.enterClassBody(),p=this.startNode(),d=!1;p.body=[],this.expect(u.braceL);while(this.type!==u.braceR){var m=this.parseClassElement(e.superClass!==null);if(m){if(p.body.push(m),m.type==="MethodDefinition"&&m.kind==="constructor"){if(d)this.raiseRecoverable(m.start,"Duplicate constructor in the same class");d=!0}else if(m.key&&m.key.type==="PrivateIdentifier"&&Se(o,m))this.raiseRecoverable(m.key.start,"Identifier '#"+m.key.name+"' has already been declared")}}return this.strict=n,this.next(),e.body=this.finishNode(p,"ClassBody"),this.exitClassBody(),this.finishNode(e,s?"ClassDeclaration":"ClassExpression")};v.parseClassElement=function(e){if(this.eat(u.semi))return null;var s=this.options.ecmaVersion,n=this.startNode(),o="",p=!1,d=!1,m="method",i=!1;if(this.eatContextual("static")){if(s>=13&&this.eat(u.braceL))return this.parseClassStaticBlock(n),n;if(this.isClassElementNameStart()||this.type===u.star)i=!0;else o="static"}if(n.static=i,!o&&s>=8&&this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===u.star)&&!this.canInsertSemicolon())d=!0;else o="async";if(!o&&(s>=9||!d)&&this.eat(u.star))p=!0;if(!o&&!d&&!p){var h=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())m=h;else o=h}if(o)n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=o,this.finishNode(n.key,"Identifier");else this.parseClassElementName(n);if(s<13||this.type===u.parenL||m!=="method"||p||d){var l=!n.static&&st(n,"constructor"),c=l&&e;if(l&&m!=="method")this.raise(n.key.start,"Constructor can't have get/set modifier");n.kind=l?"constructor":m,this.parseClassMethod(n,p,d,c)}else this.parseClassField(n);return n};v.isClassElementNameStart=function(){return this.type===u.name||this.type===u.privateId||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword};v.parseClassElementName=function(e){if(this.type===u.privateId){if(this.value==="constructor")this.raise(this.start,"Classes can't have an element named '#constructor'");e.computed=!1,e.key=this.parsePrivateIdent()}else this.parsePropertyName(e)};v.parseClassMethod=function(e,s,n,o){var p=e.key;if(e.kind==="constructor"){if(s)this.raise(p.start,"Constructor can't be a generator");if(n)this.raise(p.start,"Constructor can't be an async method")}else if(e.static&&st(e,"prototype"))this.raise(p.start,"Classes may not have a static property named prototype");var d=e.value=this.parseMethod(s,n,o);if(e.kind==="get"&&d.params.length!==0)this.raiseRecoverable(d.start,"getter should have no params");if(e.kind==="set"&&d.params.length!==1)this.raiseRecoverable(d.start,"setter should have exactly one param");if(e.kind==="set"&&d.params[0].type==="RestElement")this.raiseRecoverable(d.params[0].start,"Setter cannot use rest params");return this.finishNode(e,"MethodDefinition")};v.parseClassField=function(e){if(st(e,"constructor"))this.raise(e.key.start,"Classes can't have a field named 'constructor'");else if(e.static&&st(e,"prototype"))this.raise(e.key.start,"Classes can't have a static field named 'prototype'");if(this.eat(u.eq))this.enterScope(X|nt),e.value=this.parseMaybeAssign(),this.exitScope();else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")};v.parseClassStaticBlock=function(e){e.body=[];var s=this.labels;this.labels=[],this.enterScope(W|nt);while(this.type!==u.braceR){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=s,this.finishNode(e,"StaticBlock")};v.parseClassId=function(e,s){if(this.type===u.name){if(e.id=this.parseIdent(),s)this.checkLValSimple(e.id,M,!1)}else{if(s===!0)this.unexpected();e.id=null}};v.parseClassSuper=function(e){e.superClass=this.eat(u._extends)?this.parseExprSubscripts(null,!1):null};v.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared};v.exitClassBody=function(){var e=this.privateNameStack.pop(),{declared:s,used:n}=e;if(!this.options.checkPrivateFields)return;var o=this.privateNameStack.length,p=o===0?null:this.privateNameStack[o-1];for(var d=0;d<n.length;++d){var m=n[d];if(!Y(s,m.name))if(p)p.used.push(m);else this.raiseRecoverable(m.start,"Private field '#"+m.name+"' must be declared in an enclosing class")}};function Se(e,s){var n=s.key.name,o=e[n],p="true";if(s.type==="MethodDefinition"&&(s.kind==="get"||s.kind==="set"))p=(s.static?"s":"i")+s.kind;if(o==="iget"&&p==="iset"||o==="iset"&&p==="iget"||o==="sget"&&p==="sset"||o==="sset"&&p==="sget")return e[n]="true",!1;else if(!o)return e[n]=p,!1;else return!0}function st(e,s){var{computed:n,key:o}=e;return!n&&(o.type==="Identifier"&&o.name===s||o.type==="Literal"&&o.value===s)}v.parseExportAllDeclaration=function(e,s){if(this.options.ecmaVersion>=11)if(this.eatContextual("as"))e.exported=this.parseModuleExportName(),this.checkExport(s,e.exported,this.lastTokStart);else e.exported=null;if(this.expectContextual("from"),this.type!==u.string)this.unexpected();if(e.source=this.parseExprAtom(),this.options.ecmaVersion>=16)e.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(e,"ExportAllDeclaration")};v.parseExport=function(e,s){if(this.next(),this.eat(u.star))return this.parseExportAllDeclaration(e,s);if(this.eat(u._default))return this.checkExport(s,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement()){if(e.declaration=this.parseExportDeclaration(e),e.declaration.type==="VariableDeclaration")this.checkVariableExport(s,e.declaration.declarations);else this.checkExport(s,e.declaration.id,e.declaration.id.start);if(e.specifiers=[],e.source=null,this.options.ecmaVersion>=16)e.attributes=[]}else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(s),this.eatContextual("from")){if(this.type!==u.string)this.unexpected();if(e.source=this.parseExprAtom(),this.options.ecmaVersion>=16)e.attributes=this.parseWithClause()}else{for(var n=0,o=e.specifiers;n<o.length;n+=1){var p=o[n];if(this.checkUnreserved(p.local),this.checkLocalExport(p.local),p.local.type==="Literal")this.raise(p.local.start,"A string literal cannot be used as an exported binding without `from`.")}if(e.source=null,this.options.ecmaVersion>=16)e.attributes=[]}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")};v.parseExportDeclaration=function(e){return this.parseStatement(null)};v.parseExportDefaultDeclaration=function(){var e;if(this.type===u._function||(e=this.isAsyncFunction())){var s=this.startNode();if(this.next(),e)this.next();return this.parseFunction(s,G|Gt,!1,e)}else if(this.type===u._class){var n=this.startNode();return this.parseClass(n,"nullableID")}else{var o=this.parseMaybeAssign();return this.semicolon(),o}};v.checkExport=function(e,s,n){if(!e)return;if(typeof s!=="string")s=s.type==="Identifier"?s.name:s.value;if(Y(e,s))this.raiseRecoverable(n,"Duplicate export '"+s+"'");e[s]=!0};v.checkPatternExport=function(e,s){var n=s.type;if(n==="Identifier")this.checkExport(e,s,s.start);else if(n==="ObjectPattern")for(var o=0,p=s.properties;o<p.length;o+=1){var d=p[o];this.checkPatternExport(e,d)}else if(n==="ArrayPattern")for(var m=0,i=s.elements;m<i.length;m+=1){var h=i[m];if(h)this.checkPatternExport(e,h)}else if(n==="Property")this.checkPatternExport(e,s.value);else if(n==="AssignmentPattern")this.checkPatternExport(e,s.left);else if(n==="RestElement")this.checkPatternExport(e,s.argument)};v.checkVariableExport=function(e,s){if(!e)return;for(var n=0,o=s;n<o.length;n+=1){var p=o[n];this.checkPatternExport(e,p.id)}};v.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()};v.parseExportSpecifier=function(e){var s=this.startNode();return s.local=this.parseModuleExportName(),s.exported=this.eatContextual("as")?this.parseModuleExportName():s.local,this.checkExport(e,s.exported,s.exported.start),this.finishNode(s,"ExportSpecifier")};v.parseExportSpecifiers=function(e){var s=[],n=!0;this.expect(u.braceL);while(!this.eat(u.braceR)){if(!n){if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break}else n=!1;s.push(this.parseExportSpecifier(e))}return s};v.parseImport=function(e){if(this.next(),this.type===u.string)e.specifiers=Ne,e.source=this.parseExprAtom();else e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===u.string?this.parseExprAtom():this.unexpected();if(this.options.ecmaVersion>=16)e.attributes=this.parseWithClause();return this.semicolon(),this.finishNode(e,"ImportDeclaration")};v.parseImportSpecifier=function(){var e=this.startNode();if(e.imported=this.parseModuleExportName(),this.eatContextual("as"))e.local=this.parseIdent();else this.checkUnreserved(e.imported),e.local=e.imported;return this.checkLValSimple(e.local,M),this.finishNode(e,"ImportSpecifier")};v.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,M),this.finishNode(e,"ImportDefaultSpecifier")};v.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,M),this.finishNode(e,"ImportNamespaceSpecifier")};v.parseImportSpecifiers=function(){var e=[],s=!0;if(this.type===u.name){if(e.push(this.parseImportDefaultSpecifier()),!this.eat(u.comma))return e}if(this.type===u.star)return e.push(this.parseImportNamespaceSpecifier()),e;this.expect(u.braceL);while(!this.eat(u.braceR)){if(!s){if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break}else s=!1;e.push(this.parseImportSpecifier())}return e};v.parseWithClause=function(){var e=[];if(!this.eat(u._with))return e;this.expect(u.braceL);var s={},n=!0;while(!this.eat(u.braceR)){if(!n){if(this.expect(u.comma),this.afterTrailingComma(u.braceR))break}else n=!1;var o=this.parseImportAttribute(),p=o.key.type==="Identifier"?o.key.name:o.key.value;if(Y(s,p))this.raiseRecoverable(o.key.start,"Duplicate attribute key '"+p+"'");s[p]=!0,e.push(o)}return e};v.parseImportAttribute=function(){var e=this.startNode();if(e.key=this.type===u.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(u.colon),this.type!==u.string)this.unexpected();return e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")};v.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===u.string){var e=this.parseLiteral(this.value);if(ye.test(e.value))this.raise(e.start,"An export name cannot include a lone surrogate.");return e}return this.parseIdent(!0)};v.adaptDirectivePrologue=function(e){for(var s=0;s<e.length&&this.isDirectiveCandidate(e[s]);++s)e[s].directive=e[s].expression.raw.slice(1,-1)};v.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&e.type==="ExpressionStatement"&&e.expression.type==="Literal"&&typeof e.expression.value==="string"&&(this.input[e.start]==='"'||this.input[e.start]==="'")};var B=t.prototype;B.toAssignable=function(e,s,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":if(this.inAsync&&e.name==="await")this.raise(e.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":if(e.type="ObjectPattern",n)this.checkPatternErrors(n,!0);for(var o=0,p=e.properties;o<p.length;o+=1){var d=p[o];if(this.toAssignable(d,s),d.type==="RestElement"&&(d.argument.type==="ArrayPattern"||d.argument.type==="ObjectPattern"))this.raise(d.argument.start,"Unexpected token")}break;case"Property":if(e.kind!=="init")this.raise(e.key.start,"Object pattern can't contain getter or setter");this.toAssignable(e.value,s);break;case"ArrayExpression":if(e.type="ArrayPattern",n)this.checkPatternErrors(n,!0);this.toAssignableList(e.elements,s);break;case"SpreadElement":if(e.type="RestElement",this.toAssignable(e.argument,s),e.argument.type==="AssignmentPattern")this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":if(e.operator!=="=")this.raise(e.left.end,"Only '=' operator can be used for specifying default value.");e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,s);break;case"ParenthesizedExpression":this.toAssignable(e.expression,s,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!s)break;default:this.raise(e.start,"Assigning to rvalue")}else if(n)this.checkPatternErrors(n,!0);return e};B.toAssignableList=function(e,s){var n=e.length;for(var o=0;o<n;o++){var p=e[o];if(p)this.toAssignable(p,s)}if(n){var d=e[n-1];if(this.options.ecmaVersion===6&&s&&d&&d.type==="RestElement"&&d.argument.type!=="Identifier")this.unexpected(d.argument.start)}return e};B.parseSpread=function(e){var s=this.startNode();return this.next(),s.argument=this.parseMaybeAssign(!1,e),this.finishNode(s,"SpreadElement")};B.parseRestBinding=function(){var e=this.startNode();if(this.next(),this.options.ecmaVersion===6&&this.type!==u.name)this.unexpected();return e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")};B.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case u.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(u.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case u.braceL:return this.parseObj(!0)}return this.parseIdent()};B.parseBindingList=function(e,s,n,o){var p=[],d=!0;while(!this.eat(e)){if(d)d=!1;else this.expect(u.comma);if(s&&this.type===u.comma)p.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===u.ellipsis){var m=this.parseRestBinding();if(this.parseBindingListItem(m),p.push(m),this.type===u.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");this.expect(e);break}else p.push(this.parseAssignableListItem(o))}return p};B.parseAssignableListItem=function(e){var s=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(s),s};B.parseBindingListItem=function(e){return e};B.parseMaybeDefault=function(e,s,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(u.eq))return n;var o=this.startNodeAt(e,s);return o.left=n,o.right=this.parseMaybeAssign(),this.finishNode(o,"AssignmentPattern")};B.checkLValSimple=function(e,s,n){if(s===void 0)s=et;var o=s!==et;switch(e.type){case"Identifier":if(this.strict&&this.reservedWordsStrictBind.test(e.name))this.raiseRecoverable(e.start,(o?"Binding ":"Assigning to ")+e.name+" in strict mode");if(o){if(s===M&&e.name==="let")this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name");if(n){if(Y(n,e.name))this.raiseRecoverable(e.start,"Argument name clash");n[e.name]=!0}if(s!==Ht)this.declareName(e.name,s,e.start)}break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(o)this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":if(o)this.raiseRecoverable(e.start,"Binding parenthesized expression");return this.checkLValSimple(e.expression,s,n);default:this.raise(e.start,(o?"Binding":"Assigning to")+" rvalue")}};B.checkLValPattern=function(e,s,n){if(s===void 0)s=et;switch(e.type){case"ObjectPattern":for(var o=0,p=e.properties;o<p.length;o+=1){var d=p[o];this.checkLValInnerPattern(d,s,n)}break;case"ArrayPattern":for(var m=0,i=e.elements;m<i.length;m+=1){var h=i[m];if(h)this.checkLValInnerPattern(h,s,n)}break;default:this.checkLValSimple(e,s,n)}};B.checkLValInnerPattern=function(e,s,n){if(s===void 0)s=et;switch(e.type){case"Property":this.checkLValInnerPattern(e.value,s,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,s,n);break;case"RestElement":this.checkLValPattern(e.argument,s,n);break;default:this.checkLValPattern(e,s,n)}};var D=function(s,n,o,p,d){this.token=s,this.isExpr=!!n,this.preserveSpace=!!o,this.override=p,this.generator=!!d},C={b_stat:new D("{",!1),b_expr:new D("{",!0),b_tmpl:new D("${",!1),p_stat:new D("(",!1),p_expr:new D("(",!0),q_tmpl:new D("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new D("function",!1),f_expr:new D("function",!0),f_expr_gen:new D("function",!0,!1,null,!0),f_gen:new D("function",!1,!1,null,!0)},H=t.prototype;H.initialContext=function(){return[C.b_stat]};H.curContext=function(){return this.context[this.context.length-1]};H.braceIsBlock=function(e){var s=this.curContext();if(s===C.f_expr||s===C.f_stat)return!0;if(e===u.colon&&(s===C.b_stat||s===C.b_expr))return!s.isExpr;if(e===u._return||e===u.name&&this.exprAllowed)return R.test(this.input.slice(this.lastTokEnd,this.start));if(e===u._else||e===u.semi||e===u.eof||e===u.parenR||e===u.arrow)return!0;if(e===u.braceL)return s===C.b_stat;if(e===u._var||e===u._const||e===u.name)return!1;return!this.exprAllowed};H.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var s=this.context[e];if(s.token==="function")return s.generator}return!1};H.updateContext=function(e){var s,n=this.type;if(n.keyword&&e===u.dot)this.exprAllowed=!1;else if(s=n.updateContext)s.call(this,e);else this.exprAllowed=n.beforeExpr};H.overrideContext=function(e){if(this.curContext()!==e)this.context[this.context.length-1]=e};u.parenR.updateContext=u.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var e=this.context.pop();if(e===C.b_stat&&this.curContext().token==="function")e=this.context.pop();this.exprAllowed=!e.isExpr};u.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?C.b_stat:C.b_expr),this.exprAllowed=!0};u.dollarBraceL.updateContext=function(){this.context.push(C.b_tmpl),this.exprAllowed=!0};u.parenL.updateContext=function(e){var s=e===u._if||e===u._for||e===u._with||e===u._while;this.context.push(s?C.p_stat:C.p_expr),this.exprAllowed=!0};u.incDec.updateContext=function(){};u._function.updateContext=u._class.updateContext=function(e){if(e.beforeExpr&&e!==u._else&&!(e===u.semi&&this.curContext()!==C.p_stat)&&!(e===u._return&&R.test(this.input.slice(this.lastTokEnd,this.start)))&&!((e===u.colon||e===u.braceL)&&this.curContext()===C.b_stat))this.context.push(C.f_expr);else this.context.push(C.f_stat);this.exprAllowed=!1};u.colon.updateContext=function(){if(this.curContext().token==="function")this.context.pop();this.exprAllowed=!0};u.backQuote.updateContext=function(){if(this.curContext()===C.q_tmpl)this.context.pop();else this.context.push(C.q_tmpl);this.exprAllowed=!1};u.star.updateContext=function(e){if(e===u._function){var s=this.context.length-1;if(this.context[s]===C.f_expr)this.context[s]=C.f_expr_gen;else this.context[s]=C.f_gen}this.exprAllowed=!0};u.name.updateContext=function(e){var s=!1;if(this.options.ecmaVersion>=6&&e!==u.dot){if(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())s=!0}this.exprAllowed=s};var k=t.prototype;k.checkPropClash=function(e,s,n){if(this.options.ecmaVersion>=9&&e.type==="SpreadElement")return;if(this.options.ecmaVersion>=6&&(e.computed||e.method||e.shorthand))return;var o=e.key,p;switch(o.type){case"Identifier":p=o.name;break;case"Literal":p=String(o.value);break;default:return}var d=e.kind;if(this.options.ecmaVersion>=6){if(p==="__proto__"&&d==="init"){if(s.proto)if(n){if(n.doubleProto<0)n.doubleProto=o.start}else this.raiseRecoverable(o.start,"Redefinition of __proto__ property");s.proto=!0}return}p="$"+p;var m=s[p];if(m){var i;if(d==="init")i=this.strict&&m.init||m.get||m.set;else i=m.init||m[d];if(i)this.raiseRecoverable(o.start,"Redefinition of property")}else m=s[p]={init:!1,get:!1,set:!1};m[d]=!0};k.parseExpression=function(e,s){var n=this;return this.catchStackOverflow(function(){var{start:o,startLoc:p}=n,d=n.parseMaybeAssign(e,s);if(n.type===u.comma){var m=n.startNodeAt(o,p);m.expressions=[d];while(n.eat(u.comma))m.expressions.push(n.parseMaybeAssign(e,s));return n.finishNode(m,"SequenceExpression")}return d})};k.parseMaybeAssign=function(e,s,n){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(e);else this.exprAllowed=!1;var o=!1,p=-1,d=-1,m=-1;if(s)p=s.parenthesizedAssign,d=s.trailingComma,m=s.doubleProto,s.parenthesizedAssign=s.trailingComma=-1;else s=new ht,o=!0;var i=this.start,h=this.startLoc;if(this.type===u.parenL||this.type===u.name)this.potentialArrowAt=this.start,this.potentialArrowInForAwait=e==="await";var l=this.parseMaybeConditional(e,s);if(n)l=n.call(this,l,i,h);if(this.type.isAssign){var c=this.startNodeAt(i,h);if(c.operator=this.value,this.type===u.eq)l=this.toAssignable(l,!1,s);if(!o)s.parenthesizedAssign=s.trailingComma=s.doubleProto=-1;if(s.shorthandAssign>=l.start)s.shorthandAssign=-1;if(this.type===u.eq)this.checkLValPattern(l);else this.checkLValSimple(l);if(c.left=l,this.next(),c.right=this.parseMaybeAssign(e),m>-1)s.doubleProto=m;return this.finishNode(c,"AssignmentExpression")}else if(o)this.checkExpressionErrors(s,!0);if(p>-1)s.parenthesizedAssign=p;if(d>-1)s.trailingComma=d;return l};k.parseMaybeConditional=function(e,s){var n=this.start,o=this.startLoc,p=this.parseExprOps(e,s);if(this.checkExpressionErrors(s))return p;if(!(p.type==="ArrowFunctionExpression"&&p.start===n)&&this.eat(u.question)){var d=this.startNodeAt(n,o);return d.test=p,d.consequent=this.parseMaybeAssign(),this.expect(u.colon),d.alternate=this.parseMaybeAssign(e),this.finishNode(d,"ConditionalExpression")}return p};k.parseExprOps=function(e,s){var n=this.start,o=this.startLoc,p=this.parseMaybeUnary(s,!1,!1,e);if(this.checkExpressionErrors(s))return p;return p.start===n&&p.type==="ArrowFunctionExpression"?p:this.parseExprOp(p,n,o,-1,e)};k.parseExprOp=function(e,s,n,o,p){var d=this.type.binop;if(d!=null&&(!p||this.type!==u._in)){if(d>o){var m=this.type===u.logicalOR||this.type===u.logicalAND,i=this.type===u.coalesce;if(i)d=u.logicalAND.binop;var h=this.value;this.next();var l=this.start,c=this.startLoc,y=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,p),l,c,d,p),x=this.buildBinary(s,n,e,y,h,m||i);if(m&&this.type===u.coalesce||i&&(this.type===u.logicalOR||this.type===u.logicalAND))this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses");return this.parseExprOp(x,s,n,o,p)}}return e};k.buildBinary=function(e,s,n,o,p,d){if(o.type==="PrivateIdentifier")this.raise(o.start,"Private identifier can only be left side of binary expression");var m=this.startNodeAt(e,s);return m.left=n,m.operator=p,m.right=o,this.finishNode(m,d?"LogicalExpression":"BinaryExpression")};k.parseMaybeUnary=function(e,s,n,o){var p=this.start,d=this.startLoc,m;if(this.isContextual("await")&&this.canAwait)m=this.parseAwait(o),s=!0;else if(this.type.prefix){var i=this.startNode(),h=this.type===u.incDec;if(i.operator=this.value,i.prefix=!0,this.next(),i.argument=this.parseMaybeUnary(null,!0,h,o),this.checkExpressionErrors(e,!0),h)this.checkLValSimple(i.argument);else if(this.strict&&i.operator==="delete"&&Qt(i.argument))this.raiseRecoverable(i.start,"Deleting local variable in strict mode");else if(i.operator==="delete"&&yt(i.argument))this.raiseRecoverable(i.start,"Private fields can not be deleted");else s=!0;m=this.finishNode(i,h?"UpdateExpression":"UnaryExpression")}else if(!s&&this.type===u.privateId){if((o||this.privateNameStack.length===0)&&this.options.checkPrivateFields)this.unexpected();if(m=this.parsePrivateIdent(),this.type!==u._in)this.unexpected()}else{if(m=this.parseExprSubscripts(e,o),this.checkExpressionErrors(e))return m;while(this.type.postfix&&!this.canInsertSemicolon()){var l=this.startNodeAt(p,d);l.operator=this.value,l.prefix=!1,l.argument=m,this.checkLValSimple(m),this.next(),m=this.finishNode(l,"UpdateExpression")}}if(!n&&!(m.type==="ArrowFunctionExpression"&&m.start===p)&&this.eat(u.starstar))if(s)this.unexpected(this.lastTokStart);else return this.buildBinary(p,d,m,this.parseMaybeUnary(null,!1,!1,o),"**",!1);else return m};function Qt(e){return e.type==="Identifier"||e.type==="ParenthesizedExpression"&&Qt(e.expression)}function yt(e){return e.type==="MemberExpression"&&e.property.type==="PrivateIdentifier"||e.type==="ChainExpression"&&yt(e.expression)||e.type==="ParenthesizedExpression"&&yt(e.expression)}k.parseExprSubscripts=function(e,s){var n=this.start,o=this.startLoc,p=this.parseExprAtom(e,s);if(p.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return p;var d=this.parseSubscripts(p,n,o,!1,s);if(e&&d.type==="MemberExpression"){if(e.parenthesizedAssign>=d.start)e.parenthesizedAssign=-1;if(e.parenthesizedBind>=d.start)e.parenthesizedBind=-1;if(e.trailingComma>=d.start)e.trailingComma=-1}return d};k.parseSubscripts=function(e,s,n,o,p){var d=this.options.ecmaVersion>=8&&e.type==="Identifier"&&e.name==="async"&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start===5&&this.potentialArrowAt===e.start,m=!1;while(!0){var i=this.parseSubscript(e,s,n,o,d,m,p);if(i.optional)m=!0;if(i===e||i.type==="ArrowFunctionExpression"){if(m){var h=this.startNodeAt(s,n);h.expression=i,i=this.finishNode(h,"ChainExpression")}return i}e=i}};k.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(u.arrow)};k.parseSubscriptAsyncArrow=function(e,s,n,o){return this.parseArrowExpression(this.startNodeAt(e,s),n,!0,o)};k.parseSubscript=function(e,s,n,o,p,d,m){var i=this.options.ecmaVersion>=11,h=i&&this.eat(u.questionDot);if(o&&h)this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var l=this.eat(u.bracketL);if(l||h&&this.type!==u.parenL&&this.type!==u.backQuote||this.eat(u.dot)){var c=this.startNodeAt(s,n);if(c.object=e,l)c.property=this.parseExpression(),this.expect(u.bracketR);else if(this.type===u.privateId&&e.type!=="Super")c.property=this.parsePrivateIdent();else c.property=this.parseIdent(this.options.allowReserved!=="never");if(c.computed=!!l,i)c.optional=h;e=this.finishNode(c,"MemberExpression")}else if(!o&&this.eat(u.parenL)){var y=new ht,x=this.yieldPos,g=this.awaitPos,N=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var P=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1,y);if(p&&!h&&this.shouldParseAsyncArrow()){if(this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0)this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function");return this.yieldPos=x,this.awaitPos=g,this.awaitIdentPos=N,this.parseSubscriptAsyncArrow(s,n,P,m)}this.checkExpressionErrors(y,!0),this.yieldPos=x||this.yieldPos,this.awaitPos=g||this.awaitPos,this.awaitIdentPos=N||this.awaitIdentPos;var E=this.startNodeAt(s,n);if(E.callee=e,E.arguments=P,i)E.optional=h;e=this.finishNode(E,"CallExpression")}else if(this.type===u.backQuote){if(h||d)this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var j=this.startNodeAt(s,n);j.tag=e,j.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(j,"TaggedTemplateExpression")}return e};k.parseExprAtom=function(e,s,n){if(this.type===u.slash)this.readRegexp();var o,p=this.potentialArrowAt===this.start;switch(this.type){case u._super:if(!this.allowSuper)this.raise(this.start,"'super' keyword outside a method");if(o=this.startNode(),this.next(),this.type===u.parenL&&!this.allowDirectSuper)this.raise(o.start,"super() call outside constructor of a subclass");if(this.type!==u.dot&&this.type!==u.bracketL&&this.type!==u.parenL)this.unexpected();return this.finishNode(o,"Super");case u._this:return o=this.startNode(),this.next(),this.finishNode(o,"ThisExpression");case u.name:var d=this.start,m=this.startLoc,i=this.containsEsc,h=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!i&&h.name==="async"&&!this.canInsertSemicolon()&&this.eat(u._function))return this.overrideContext(C.f_expr),this.parseFunction(this.startNodeAt(d,m),0,!1,!0,s);if(p&&!this.canInsertSemicolon()){if(this.eat(u.arrow))return this.parseArrowExpression(this.startNodeAt(d,m),[h],!1,s);if(this.options.ecmaVersion>=8&&h.name==="async"&&this.type===u.name&&!i&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc)){if(h=this.parseIdent(!1),this.canInsertSemicolon()||!this.eat(u.arrow))this.unexpected();return this.parseArrowExpression(this.startNodeAt(d,m),[h],!0,s)}}return h;case u.regexp:var l=this.value;return o=this.parseLiteral(l.value),o.regex={pattern:l.pattern,flags:l.flags},o;case u.num:case u.string:return this.parseLiteral(this.value);case u._null:case u._true:case u._false:return o=this.startNode(),o.value=this.type===u._null?null:this.type===u._true,o.raw=this.type.keyword,this.next(),this.finishNode(o,"Literal");case u.parenL:var c=this.start,y=this.parseParenAndDistinguishExpression(p,s);if(e){if(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(y))e.parenthesizedAssign=c;if(e.parenthesizedBind<0)e.parenthesizedBind=c}return y;case u.bracketL:return o=this.startNode(),this.next(),o.elements=this.parseExprList(u.bracketR,!0,!0,e),this.finishNode(o,"ArrayExpression");case u.braceL:return this.overrideContext(C.b_expr),this.parseObj(!1,e);case u._function:return o=this.startNode(),this.next(),this.parseFunction(o,0);case u._class:return this.parseClass(this.startNode(),!1);case u._new:return this.parseNew();case u.backQuote:return this.parseTemplate();case u._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(n);else return this.unexpected();default:return this.parseExprAtomDefault()}};k.parseExprAtomDefault=function(){this.unexpected()};k.parseExprImport=function(e){var s=this.startNode();if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword import");if(this.next(),this.type===u.parenL&&!e)return this.parseDynamicImport(s);else if(this.type===u.dot){var n=this.startNodeAt(s.start,s.loc&&s.loc.start);return n.name="import",s.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(s)}else this.unexpected()};k.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)if(!this.eat(u.parenR))if(this.expect(u.comma),!this.afterTrailingComma(u.parenR)){if(e.options=this.parseMaybeAssign(),!this.eat(u.parenR)){if(this.expect(u.comma),!this.afterTrailingComma(u.parenR))this.unexpected()}}else e.options=null;else e.options=null;else if(!this.eat(u.parenR)){var s=this.start;if(this.eat(u.comma)&&this.eat(u.parenR))this.raiseRecoverable(s,"Trailing comma is not allowed in import()");else this.unexpected(s)}return this.finishNode(e,"ImportExpression")};k.parseImportMeta=function(e){this.next();var s=this.containsEsc;if(e.property=this.parseIdent(!0),e.property.name!=="meta")this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'");if(s)this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters");if(this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere)this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module");return this.finishNode(e,"MetaProperty")};k.parseLiteral=function(e){var s=this.startNode();if(s.value=e,s.raw=this.input.slice(this.start,this.end),s.raw.charCodeAt(s.raw.length-1)===110)s.bigint=s.value!=null?s.value.toString():s.raw.slice(0,-1).replace(/_/g,"");return this.next(),this.finishNode(s,"Literal")};k.parseParenExpression=function(){this.expect(u.parenL);var e=this.parseExpression();return this.expect(u.parenR),e};k.shouldParseArrow=function(e){return!this.canInsertSemicolon()};k.parseParenAndDistinguishExpression=function(e,s){var n=this.start,o=this.startLoc,p,d=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var m=this.start,i=this.startLoc,h=[],l=!0,c=!1,y=new ht,x=this.yieldPos,g=this.awaitPos,N;this.yieldPos=0,this.awaitPos=0;while(this.type!==u.parenR)if(l?l=!1:this.expect(u.comma),d&&this.afterTrailingComma(u.parenR,!0)){c=!0;break}else if(this.type===u.ellipsis){if(N=this.start,h.push(this.parseParenItem(this.parseRestBinding())),this.type===u.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else h.push(this.parseMaybeAssign(!1,y,this.parseParenItem));var P=this.lastTokEnd,E=this.lastTokEndLoc;if(this.expect(u.parenR),e&&this.shouldParseArrow(h)&&this.eat(u.arrow))return this.checkPatternErrors(y,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=x,this.awaitPos=g,this.parseParenArrowList(n,o,h,s);if(!h.length||c)this.unexpected(this.lastTokStart);if(N)this.unexpected(N);if(this.checkExpressionErrors(y,!0),this.yieldPos=x||this.yieldPos,this.awaitPos=g||this.awaitPos,h.length>1)p=this.startNodeAt(m,i),p.expressions=h,this.finishNodeAt(p,"SequenceExpression",P,E);else p=h[0]}else p=this.parseParenExpression();if(this.options.preserveParens){var j=this.startNodeAt(n,o);return j.expression=p,this.finishNode(j,"ParenthesizedExpression")}else return p};k.parseParenItem=function(e){return e};k.parseParenArrowList=function(e,s,n,o){return this.parseArrowExpression(this.startNodeAt(e,s),n,!1,o)};var Te=[];k.parseNew=function(){if(this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===u.dot){var s=this.startNodeAt(e.start,e.loc&&e.loc.start);s.name="new",e.meta=this.finishNode(s,"Identifier"),this.next();var n=this.containsEsc;if(e.property=this.parseIdent(!0),e.property.name!=="target")this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'");if(n)this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters");if(!this.allowNewDotTarget)this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block");return this.finishNode(e,"MetaProperty")}var o=this.start,p=this.startLoc;if(e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),o,p,!0,!1),e.callee.type==="Super")this.raiseRecoverable(o,"Invalid use of 'super'");if(this.eat(u.parenL))e.arguments=this.parseExprList(u.parenR,this.options.ecmaVersion>=8,!1);else e.arguments=Te;return this.finishNode(e,"NewExpression")};k.parseTemplateElement=function(e){var s=e.isTagged,n=this.startNode();if(this.type===u.invalidTemplate){if(!s)this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal");n.value={raw:this.value.replace(/\r\n?/g,`
4
+ `),cooked:null}}else n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
5
+ `),cooked:this.value};return this.next(),n.tail=this.type===u.backQuote,this.finishNode(n,"TemplateElement")};k.parseTemplate=function(e){if(e===void 0)e={};var s=e.isTagged;if(s===void 0)s=!1;var n=this.startNode();this.next(),n.expressions=[];var o=this.parseTemplateElement({isTagged:s});n.quasis=[o];while(!o.tail){if(this.type===u.eof)this.raise(this.pos,"Unterminated template literal");this.expect(u.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(u.braceR),n.quasis.push(o=this.parseTemplateElement({isTagged:s}))}return this.next(),this.finishNode(n,"TemplateLiteral")};k.isAsyncProp=function(e){return!e.computed&&e.key.type==="Identifier"&&e.key.name==="async"&&(this.type===u.name||this.type===u.num||this.type===u.string||this.type===u.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===u.star)&&!R.test(this.input.slice(this.lastTokEnd,this.start))};k.parseObj=function(e,s){var n=this.startNode(),o=!0,p={};n.properties=[],this.next();while(!this.eat(u.braceR)){if(!o){if(this.expect(u.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(u.braceR))break}else o=!1;var d=this.parseProperty(e,s);if(!e)this.checkPropClash(d,p,s);n.properties.push(d)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")};k.parseProperty=function(e,s){var n=this.startNode(),o,p,d,m;if(this.options.ecmaVersion>=9&&this.eat(u.ellipsis)){if(e){if(n.argument=this.parseIdent(!1),this.type===u.comma)this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");return this.finishNode(n,"RestElement")}if(n.argument=this.parseMaybeAssign(!1,s),this.type===u.comma&&s&&s.trailingComma<0)s.trailingComma=this.start;return this.finishNode(n,"SpreadElement")}if(this.options.ecmaVersion>=6){if(n.method=!1,n.shorthand=!1,e||s)d=this.start,m=this.startLoc;if(!e)o=this.eat(u.star)}var i=this.containsEsc;if(this.parsePropertyName(n),!e&&!i&&this.options.ecmaVersion>=8&&!o&&this.isAsyncProp(n))p=!0,o=this.options.ecmaVersion>=9&&this.eat(u.star),this.parsePropertyName(n);else p=!1;return this.parsePropertyValue(n,e,o,p,d,m,s,i),this.finishNode(n,"Property")};k.parseGetterSetter=function(e){var s=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=s;var n=e.kind==="get"?0:1;if(e.value.params.length!==n){var o=e.value.start;if(e.kind==="get")this.raiseRecoverable(o,"getter should have no params");else this.raiseRecoverable(o,"setter should have exactly one param")}else if(e.kind==="set"&&e.value.params[0].type==="RestElement")this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")};k.parsePropertyValue=function(e,s,n,o,p,d,m,i){if((n||o)&&this.type===u.colon)this.unexpected();if(this.eat(u.colon))e.value=s?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,m),e.kind="init";else if(this.options.ecmaVersion>=6&&this.type===u.parenL){if(s)this.unexpected();e.method=!0,e.value=this.parseMethod(n,o),e.kind="init"}else if(!s&&!i&&this.options.ecmaVersion>=5&&!e.computed&&e.key.type==="Identifier"&&(e.key.name==="get"||e.key.name==="set")&&(this.type!==u.comma&&this.type!==u.braceR&&this.type!==u.eq)){if(n||o)this.unexpected();this.parseGetterSetter(e)}else if(this.options.ecmaVersion>=6&&!e.computed&&e.key.type==="Identifier"){if(n||o)this.unexpected();if(this.checkUnreserved(e.key),e.key.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=p;if(s)e.value=this.parseMaybeDefault(p,d,this.copyNode(e.key));else if(this.type===u.eq&&m){if(m.shorthandAssign<0)m.shorthandAssign=this.start;e.value=this.parseMaybeDefault(p,d,this.copyNode(e.key))}else e.value=this.copyNode(e.key);e.kind="init",e.shorthand=!0}else this.unexpected()};k.parsePropertyName=function(e){if(this.options.ecmaVersion>=6)if(this.eat(u.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(u.bracketR),e.key;else e.computed=!1;return e.key=this.type===u.num||this.type===u.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")};k.initFunction=function(e){if(e.id=null,this.options.ecmaVersion>=6)e.generator=e.expression=!1;if(this.options.ecmaVersion>=8)e.async=!1};k.parseMethod=function(e,s,n){var o=this.startNode(),p=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;if(this.initFunction(o),this.options.ecmaVersion>=6)o.generator=e;if(this.options.ecmaVersion>=8)o.async=!!s;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(kt(s,o.generator)|nt|(n?zt:0)),this.expect(u.parenL),o.params=this.parseBindingList(u.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(o,!1,!0,!1),this.yieldPos=p,this.awaitPos=d,this.awaitIdentPos=m,this.finishNode(o,"FunctionExpression")};k.parseArrowExpression=function(e,s,n,o){var p=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;if(this.enterScope(kt(n,!1)|gt),this.initFunction(e),this.options.ecmaVersion>=8)e.async=!!n;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(s,!0),this.parseFunctionBody(e,!0,!1,o),this.yieldPos=p,this.awaitPos=d,this.awaitIdentPos=m,this.finishNode(e,"ArrowFunctionExpression")};k.parseFunctionBody=function(e,s,n,o){var p=s&&this.type!==u.braceL,d=this.strict,m=!1;if(p)e.body=this.parseMaybeAssign(o),e.expression=!0,this.checkParams(e,!1);else{var i=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);if(!d||i){if(m=this.strictDirective(this.end),m&&i)this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list")}var h=this.labels;if(this.labels=[],m)this.strict=!0;if(this.checkParams(e,!d&&!m&&!s&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id)this.checkLValSimple(e.id,Ht);e.body=this.parseBlock(!1,void 0,m&&!d),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=h}this.exitScope()};k.isSimpleParamList=function(e){for(var s=0,n=e;s<n.length;s+=1){var o=n[s];if(o.type!=="Identifier")return!1}return!0};k.checkParams=function(e,s){var n=Object.create(null);for(var o=0,p=e.params;o<p.length;o+=1){var d=p[o];this.checkLValInnerPattern(d,Nt,s?null:n)}};k.parseExprList=function(e,s,n,o){var p=[],d=!0;while(!this.eat(e)){if(!d){if(this.expect(u.comma),s&&this.afterTrailingComma(e))break}else d=!1;var m=void 0;if(n&&this.type===u.comma)m=null;else if(this.type===u.ellipsis){if(m=this.parseSpread(o),o&&this.type===u.comma&&o.trailingComma<0)o.trailingComma=this.start}else m=this.parseMaybeAssign(!1,o);p.push(m)}return p};k.checkUnreserved=function(e){var{start:s,end:n,name:o}=e;if(this.inGenerator&&o==="yield")this.raiseRecoverable(s,"Cannot use 'yield' as identifier inside a generator");if(this.inAsync&&o==="await")this.raiseRecoverable(s,"Cannot use 'await' as identifier inside an async function");if(!(this.currentThisScope().flags&ot)&&o==="arguments")this.raiseRecoverable(s,"Cannot use 'arguments' in class field initializer");if(this.inClassStaticBlock&&(o==="arguments"||o==="await"))this.raise(s,"Cannot use "+o+" in class static initialization block");if(this.keywords.test(o))this.raise(s,"Unexpected keyword '"+o+"'");if(this.options.ecmaVersion<6&&this.input.slice(s,n).indexOf("\\")!==-1)return;var p=this.strict?this.reservedWordsStrict:this.reservedWords;if(p.test(o)){if(!this.inAsync&&o==="await")this.raiseRecoverable(s,"Cannot use keyword 'await' outside an async function");this.raiseRecoverable(s,"The keyword '"+o+"' is reserved")}};k.parseIdent=function(e){var s=this.parseIdentNode();if(this.next(!!e),this.finishNode(s,"Identifier"),!e){if(this.checkUnreserved(s),s.name==="await"&&!this.awaitIdentPos)this.awaitIdentPos=s.start}return s};k.parseIdentNode=function(){var e=this.startNode();if(this.type===u.name)e.name=this.value;else if(this.type.keyword){if(e.name=this.type.keyword,(e.name==="class"||e.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46))this.context.pop();this.type=u.name}else this.unexpected();return e};k.parsePrivateIdent=function(){var e=this.startNode();if(this.type===u.privateId)e.name=this.value;else this.unexpected();if(this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields)if(this.privateNameStack.length===0)this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class");else this.privateNameStack[this.privateNameStack.length-1].used.push(e);return e};k.parseYield=function(e){if(!this.yieldPos)this.yieldPos=this.start;var s=this.startNode();if(this.next(),this.type===u.semi||this.canInsertSemicolon()||this.type!==u.star&&!this.type.startsExpr)s.delegate=!1,s.argument=null;else s.delegate=this.eat(u.star),s.argument=this.parseMaybeAssign(e);return this.finishNode(s,"YieldExpression")};k.parseAwait=function(e){if(!this.awaitPos)this.awaitPos=this.start;var s=this.startNode();return this.next(),s.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(s,"AwaitExpression")};var it=t.prototype;it.raise=function(e,s){var n=Mt(this.input,e);if(s+=" ("+n.line+":"+n.column+")",this.sourceFile)s+=" in "+this.sourceFile;var o=SyntaxError(s);throw o.pos=e,o.loc=n,o.raisedAt=this.pos,o};it.raiseRecoverable=it.raise;it.curPosition=function(){if(this.options.locations)return new Q(this.curLine,this.pos-this.lineStart)};var q=t.prototype,we=function(s){this.flags=s,this.var=[],this.lexical=[],this.functions=[]};q.enterScope=function(e){this.scopeStack.push(new we(e))};q.exitScope=function(){this.scopeStack.pop()};q.treatFunctionsAsVarInScope=function(e){return e.flags&z||!this.inModule&&e.flags&U};q.declareName=function(e,s,n){var o=!1;if(s===M){var p=this.currentScope();if(o=p.lexical.indexOf(e)>-1||p.functions.indexOf(e)>-1||p.var.indexOf(e)>-1,p.lexical.push(e),this.inModule&&p.flags&U)delete this.undefinedExports[e]}else if(s===Kt){var d=this.currentScope();d.lexical.push(e)}else if(s===jt){var m=this.currentScope();if(this.treatFunctionsAsVar)o=m.lexical.indexOf(e)>-1;else o=m.lexical.indexOf(e)>-1||m.var.indexOf(e)>-1;m.functions.push(e)}else for(var i=this.scopeStack.length-1;i>=0;--i){var h=this.scopeStack[i];if(h.lexical.indexOf(e)>-1&&!(h.flags&Ut&&h.lexical[0]===e)||!this.treatFunctionsAsVarInScope(h)&&h.functions.indexOf(e)>-1){o=!0;break}if(h.var.push(e),this.inModule&&h.flags&U)delete this.undefinedExports[e];if(h.flags&ot)break}if(o)this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")};q.checkLocalExport=function(e){if(this.scopeStack[0].lexical.indexOf(e.name)===-1&&this.scopeStack[0].var.indexOf(e.name)===-1)this.undefinedExports[e.name]=e};q.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]};q.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var s=this.scopeStack[e];if(s.flags&(ot|X|W))return s}};q.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var s=this.scopeStack[e];if(s.flags&(ot|X|W)&&!(s.flags&gt))return s}};var ut=function(s,n,o){if(this.type="",this.start=n,this.end=0,s.options.locations)this.loc=new at(s,o);if(s.options.directSourceFile)this.sourceFile=s.options.directSourceFile;if(s.options.ranges)this.range=[n,0]},J=t.prototype;J.startNode=function(){return new ut(this,this.start,this.startLoc)};J.startNodeAt=function(e,s){return new ut(this,e,s)};function Yt(e,s,n,o){if(e.type=s,e.end=n,this.options.locations)e.loc.end=o;if(this.options.ranges)e.range[1]=n;return e}J.finishNode=function(e,s){return Yt.call(this,e,s,this.lastTokEnd,this.lastTokEndLoc)};J.finishNodeAt=function(e,s,n,o){return Yt.call(this,e,s,n,o)};J.copyNode=function(e){var s=new ut(this,e.start,this.startLoc);for(var n in e)s[n]=e[n];return s};var Xt=function(){};Xt.prototype.reset=function(){};t.prototype.validateRegExpFlags=function(){};t.prototype.validateRegExpPattern=function(){};var Tt=function(s){if(this.type=s.type,this.value=s.value,this.start=s.start,this.end=s.end,s.options.locations)this.loc=new at(s,s.startLoc,s.endLoc);if(s.options.ranges)this.range=[s.start,s.end]},T=t.prototype;T.next=function(e){if(!e&&this.type.keyword&&this.containsEsc)this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword);if(this.options.onToken)this.options.onToken(new Tt(this));this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()};T.getToken=function(){return this.next(),new Tt(this)};if(typeof Symbol<"u")T[Symbol.iterator]=function(){var e=this;return{next:function(){var s=e.getToken();return{done:s.type===u.eof,value:s}}}};T.nextToken=function(){var e=this.curContext();if(!e||!e.preserveSpace)this.skipSpace();if(this.start=this.pos,this.options.locations)this.startLoc=this.curPosition();if(this.pos>=this.input.length)return this.finishToken(u.eof);if(e.override)return e.override(this);else this.readToken(this.fullCharCodeAtPos())};T.readToken=function(e){if(r(e,this.options.ecmaVersion>=6)||e===92)return this.readWord();return this.getTokenFromCode(e)};T.fullCharCodeAt=function(e){var s=this.input.charCodeAt(e);if(s<=55295||s>=56320)return s;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?s:(s<<10)+n-56613888};T.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)};T.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),s=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(n===-1)this.raise(this.pos-2,"Unterminated comment");if(this.pos=n+2,this.options.locations)for(var o=void 0,p=s;(o=Ot(this.input,p,this.pos))>-1;)++this.curLine,p=this.lineStart=o;if(this.options.onComment)this.options.onComment(!0,this.input.slice(s+2,n),s,this.pos,e,this.curPosition())};T.skipLineComment=function(e){var s=this.pos,n=this.options.onComment&&this.curPosition(),o=this.input.charCodeAt(this.pos+=e);while(this.pos<this.input.length&&!K(o))o=this.input.charCodeAt(++this.pos);if(this.options.onComment)this.options.onComment(!1,this.input.slice(s+e,this.pos),s,this.pos,n,this.curPosition())};T.skipSpace=function(){t:while(this.pos<this.input.length){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:if(this.input.charCodeAt(this.pos+1)===10)++this.pos;case 10:case 8232:case 8233:if(++this.pos,this.options.locations)++this.curLine,this.lineStart=this.pos;break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break t}break;default:if(e>8&&e<14||e>=5760&&Bt.test(String.fromCharCode(e)))++this.pos;else break t}}};T.finishToken=function(e,s){if(this.end=this.pos,this.options.locations)this.endLoc=this.curPosition();var n=this.type;this.type=e,this.value=s,this.updateContext(n)};T.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var s=this.input.charCodeAt(this.pos+2);if(this.options.ecmaVersion>=6&&e===46&&s===46)return this.pos+=3,this.finishToken(u.ellipsis);else return++this.pos,this.finishToken(u.dot)};T.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);if(this.exprAllowed)return++this.pos,this.readRegexp();if(e===61)return this.finishOp(u.assign,2);return this.finishOp(u.slash,1)};T.readToken_mult_modulo_exp=function(e){var s=this.input.charCodeAt(this.pos+1),n=1,o=e===42?u.star:u.modulo;if(this.options.ecmaVersion>=7&&e===42&&s===42)++n,o=u.starstar,s=this.input.charCodeAt(this.pos+2);if(s===61)return this.finishOp(u.assign,n+1);return this.finishOp(o,n)};T.readToken_pipe_amp=function(e){var s=this.input.charCodeAt(this.pos+1);if(s===e){if(this.options.ecmaVersion>=12){var n=this.input.charCodeAt(this.pos+2);if(n===61)return this.finishOp(u.assign,3)}return this.finishOp(e===124?u.logicalOR:u.logicalAND,2)}if(s===61)return this.finishOp(u.assign,2);return this.finishOp(e===124?u.bitwiseOR:u.bitwiseAND,1)};T.readToken_caret=function(){var e=this.input.charCodeAt(this.pos+1);if(e===61)return this.finishOp(u.assign,2);return this.finishOp(u.bitwiseXOR,1)};T.readToken_plus_min=function(e){var s=this.input.charCodeAt(this.pos+1);if(s===e){if(s===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||R.test(this.input.slice(this.lastTokEnd,this.pos))))return this.skipLineComment(3),this.skipSpace(),this.nextToken();return this.finishOp(u.incDec,2)}if(s===61)return this.finishOp(u.assign,2);return this.finishOp(u.plusMin,1)};T.readToken_lt_gt=function(e){var s=this.input.charCodeAt(this.pos+1),n=1;if(s===e){if(n=e===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+n)===61)return this.finishOp(u.assign,n+1);return this.finishOp(u.bitShift,n)}if(s===33&&e===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45)return this.skipLineComment(4),this.skipSpace(),this.nextToken();if(s===61)n=2;return this.finishOp(u.relational,n)};T.readToken_eq_excl=function(e){var s=this.input.charCodeAt(this.pos+1);if(s===61)return this.finishOp(u.equality,this.input.charCodeAt(this.pos+2)===61?3:2);if(e===61&&s===62&&this.options.ecmaVersion>=6)return this.pos+=2,this.finishToken(u.arrow);return this.finishOp(e===61?u.eq:u.prefix,1)};T.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var s=this.input.charCodeAt(this.pos+1);if(s===46){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(u.questionDot,2)}if(s===63){if(e>=12){var o=this.input.charCodeAt(this.pos+2);if(o===61)return this.finishOp(u.assign,3)}return this.finishOp(u.coalesce,2)}}return this.finishOp(u.question,1)};T.readToken_numberSign=function(){var e=this.options.ecmaVersion,s=35;if(e>=13){if(++this.pos,s=this.fullCharCodeAtPos(),r(s,!0)||s===92)return this.finishToken(u.privateId,this.readWord1())}this.raise(this.pos,"Unexpected character '"+rt(s)+"'")};T.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(u.parenL);case 41:return++this.pos,this.finishToken(u.parenR);case 59:return++this.pos,this.finishToken(u.semi);case 44:return++this.pos,this.finishToken(u.comma);case 91:return++this.pos,this.finishToken(u.bracketL);case 93:return++this.pos,this.finishToken(u.bracketR);case 123:return++this.pos,this.finishToken(u.braceL);case 125:return++this.pos,this.finishToken(u.braceR);case 58:return++this.pos,this.finishToken(u.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(u.backQuote);case 48:var s=this.input.charCodeAt(this.pos+1);if(s===120||s===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(s===111||s===79)return this.readRadixNumber(8);if(s===98||s===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(e);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(e);case 124:case 38:return this.readToken_pipe_amp(e);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(e);case 60:case 62:return this.readToken_lt_gt(e);case 61:case 33:return this.readToken_eq_excl(e);case 63:return this.readToken_question();case 126:return this.finishOp(u.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+rt(e)+"'")};T.finishOp=function(e,s){var n=this.input.slice(this.pos,this.pos+s);return this.pos+=s,this.finishToken(e,n)};T.readRegexp=function(){var e,s,n=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(n,"Unterminated regular expression");var o=this.input.charAt(this.pos);if(R.test(o))this.raise(n,"Unterminated regular expression");if(!e){if(o==="[")s=!0;else if(o==="]"&&s)s=!1;else if(o==="/"&&!s)break;e=o==="\\"}else e=!1;++this.pos}var p=this.input.slice(n,this.pos);++this.pos;var d=this.pos,m=this.readWord1();if(this.containsEsc)this.unexpected(d);var i=this.regexpState||(this.regexpState=new Xt(this));i.reset(n,p,m),this.validateRegExpFlags(i),this.validateRegExpPattern(i);var h=null;try{h=new RegExp(p,m)}catch(l){}return this.finishToken(u.regexp,{pattern:p,flags:m,value:h})};T.readInt=function(e,s,n){var o=this.options.ecmaVersion>=12&&s===void 0,p=n&&this.input.charCodeAt(this.pos)===48,d=this.pos,m=0,i=0;for(var h=0,l=s==null?1/0:s;h<l;++h,++this.pos){var c=this.input.charCodeAt(this.pos),y=void 0;if(o&&c===95){if(p)this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals");if(i===95)this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore");if(h===0)this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits");i=c;continue}if(c>=97)y=c-97+10;else if(c>=65)y=c-65+10;else if(c>=48&&c<=57)y=c-48;else y=1/0;if(y>=e)break;i=c,m=m*e+y}if(o&&i===95)this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits");if(this.pos===d||s!=null&&this.pos-d!==s)return null;return m};function Ae(e,s){if(s)return parseInt(e,8);return parseFloat(e.replace(/_/g,""))}function Jt(e){if(typeof BigInt!=="function")return null;return BigInt(e.replace(/_/g,""))}T.readRadixNumber=function(e){var s=this.pos;this.pos+=2;var n=this.readInt(e);if(n==null)this.raise(this.start+2,"Expected number in radix "+e);if(this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110)n=Jt(this.input.slice(s,this.pos)),++this.pos;else if(r(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(u.num,n)};T.readNumber=function(e){var s=this.pos;if(!e&&this.readInt(10,void 0,!0)===null)this.raise(s,"Invalid number");var n=this.pos-s>=2&&this.input.charCodeAt(s)===48;if(n&&this.strict)this.raise(s,"Invalid number");var o=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&o===110){var p=Jt(this.input.slice(s,this.pos));if(++this.pos,r(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");return this.finishToken(u.num,p)}if(n&&/[89]/.test(this.input.slice(s,this.pos)))n=!1;if(o===46&&!n)++this.pos,this.readInt(10),o=this.input.charCodeAt(this.pos);if((o===69||o===101)&&!n){if(o=this.input.charCodeAt(++this.pos),o===43||o===45)++this.pos;if(this.readInt(10)===null)this.raise(s,"Invalid number")}if(r(this.fullCharCodeAtPos()))this.raise(this.pos,"Identifier directly after number");var d=Ae(this.input.slice(s,this.pos),n);return this.finishToken(u.num,d)};T.readCodePoint=function(){var e=this.input.charCodeAt(this.pos),s;if(e===123){if(this.options.ecmaVersion<6)this.unexpected();var n=++this.pos;if(s=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,s>1114111)this.invalidStringToken(n,"Code point out of bounds")}else s=this.readHexChar(4);return s};T.readString=function(e){var s="",n=++this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated string constant");var o=this.input.charCodeAt(this.pos);if(o===e)break;if(o===92)s+=this.input.slice(n,this.pos),s+=this.readEscapedChar(!1),n=this.pos;else if(o===8232||o===8233){if(this.options.ecmaVersion<10)this.raise(this.start,"Unterminated string constant");if(++this.pos,this.options.locations)this.curLine++,this.lineStart=this.pos}else{if(K(o))this.raise(this.start,"Unterminated string constant");++this.pos}}return s+=this.input.slice(n,this.pos++),this.finishToken(u.string,s)};var Zt={};T.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===Zt)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1};T.invalidStringToken=function(e,s){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw Zt;else this.raise(e,s)};T.readTmplToken=function(){var e="",s=this.pos;for(;;){if(this.pos>=this.input.length)this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(n===96||n===36&&this.input.charCodeAt(this.pos+1)===123){if(this.pos===this.start&&(this.type===u.template||this.type===u.invalidTemplate))if(n===36)return this.pos+=2,this.finishToken(u.dollarBraceL);else return++this.pos,this.finishToken(u.backQuote);return e+=this.input.slice(s,this.pos),this.finishToken(u.template,e)}if(n===92)e+=this.input.slice(s,this.pos),e+=this.readEscapedChar(!0),s=this.pos;else if(K(n)){switch(e+=this.input.slice(s,this.pos),++this.pos,n){case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:e+=`
6
+ `;break;default:e+=String.fromCharCode(n);break}if(this.options.locations)++this.curLine,this.lineStart=this.pos;s=this.pos}else++this.pos}};T.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(u.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":if(this.input[this.pos+1]===`
7
+ `)++this.pos;case`
8
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")};T.readEscapedChar=function(e){var s=this.input.charCodeAt(++this.pos);switch(++this.pos,s){case 110:return`
9
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return rt(this.readCodePoint());case 116:return"\t";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:if(this.input.charCodeAt(this.pos)===10)++this.pos;case 10:if(this.options.locations)this.lineStart=this.pos,++this.curLine;return"";case 56:case 57:if(this.strict)this.invalidStringToken(this.pos-1,"Invalid escape sequence");if(e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(s>=48&&s<=55){var o=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],p=parseInt(o,8);if(p>255)o=o.slice(0,-1),p=parseInt(o,8);if(this.pos+=o.length-1,s=this.input.charCodeAt(this.pos),(o!=="0"||s===56||s===57)&&(this.strict||e))this.invalidStringToken(this.pos-1-o.length,e?"Octal literal in template string":"Octal literal in strict mode");return String.fromCharCode(p)}if(K(s)){if(this.options.locations)this.lineStart=this.pos,++this.curLine;return""}return String.fromCharCode(s)}};T.readHexChar=function(e){var s=this.pos,n=this.readInt(16,e);if(n===null)this.invalidStringToken(s,"Bad character escape sequence");return n};T.readWord1=function(){this.containsEsc=!1;var e="",s=!0,n=this.pos,o=this.options.ecmaVersion>=6;while(this.pos<this.input.length){var p=this.fullCharCodeAtPos();if(a(p,o))this.pos+=p<=65535?1:2;else if(p===92){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var d=this.pos;if(this.input.charCodeAt(++this.pos)!==117)this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX");++this.pos;var m=this.readCodePoint();if(!(s?r:a)(m,o))this.invalidStringToken(d,"Invalid Unicode escape");e+=rt(m),n=this.pos}else break;s=!1}return e+this.input.slice(n,this.pos)};T.readWord=function(){var e=this.readWord1(),s=u.name;if(this.keywords.test(e))s=xt[e];return this.finishToken(s,e)};var Ee="8.18.0";t.acorn={Parser:t,version:Ee,defaultOptions:mt,Position:Q,SourceLocation:at,getLineInfo:Mt,Node:ut,TokenType:A,tokTypes:u,keywordTypes:xt,TokContext:D,tokContexts:C,isIdentifierChar:a,isIdentifierStart:r,Token:Tt,isNewLine:K,lineBreak:R,lineBreakG:de,nonASCIIwhitespace:Bt};function b(e){return(s)=>e(s)}function S(...e){return t.extend(...e)}var wt=/(?:\s|\/\/.*|\/\*[\s\S]*?\*\/)*/g,Ce=new Map([["any","TSAnyKeyword"],["bigint","TSBigIntKeyword"],["boolean","TSBooleanKeyword"],["never","TSNeverKeyword"],["null","TSNullKeyword"],["number","TSNumberKeyword"],["object","TSObjectKeyword"],["string","TSStringKeyword"],["symbol","TSSymbolKeyword"],["undefined","TSUndefinedKeyword"],["unknown","TSUnknownKeyword"],["void","TSVoidKeyword"]]),Pe=new Set("public private protected readonly declare abstract override static accessor".split(" ")),$e=new Set("public private protected readonly override".split(" ")),Ie=new Set("var let const function class abstract enum interface type namespace module global".split(" ")),Le=new Set("var let const function class interface enum".split(" ")),te=new Set(["TSAsExpression","TSSatisfiesExpression","TSNonNullExpression","TSTypeAssertion"]),ee=1,_e=32,Re=256,Ve=0,Fe=1,Z=2,Oe=3,Be=4,At=6,se=7,he=256,$t=1024,De=8|$t,Me=Z|he,ie=1,qe=2,re=40,Ue=41,ze=44,ae=46,ne=58,pt=61,oe=60,ct=123,We=91,Et=42,je=35,Ct=34,Pt=39,Ke=SyntaxError("speculative parse failed"),f=b((e)=>{let{tokTypes:s,keywordTypes:n,isIdentifierChar:o,isIdentifierStart:p}=e.acorn,d=new e.acorn.TokenType("@");class m extends e{inType=!1;$5=!1;$6=!1;$8=null;$o=null;$p=!1;$q=!1;$i=null;$b=[[]];$r=0;$12=0;constructor(i,h,l){super(i,h,l);let c=this.options.onComment;if(typeof c==="function")this.options.onComment=(y,x,g,N,P,E)=>{if(g<this.$12)return;this.$12=N,c.call(this,y,x,g,N,P,E)}}getTokenFromCode(i){if(i===64)return++this.pos,this.finishToken(d);return super.getTokenFromCode(i)}readToken_lt_gt(i){if(this.inType)return this.finishOp(s.relational,1);return super.readToken_lt_gt(i)}$9(i){let h=this.inType;this.inType=!0;let l=i();if(this.inType=h,!h&&this.type===s.relational)this.pos=this.start,this.nextToken();return l}$1(){return this.type===s.relational&&this.value==="<"}$k(){if(this.type===s.bitShift&&this.value==="<<")this.pos=this.start+1,this.finishToken(s.relational,"<");return this.$1()}$c(){return this.type===s.relational&&this.value===">"}$s(){return this.type===s.prefix&&this.value==="!"}hasPrecedingLineBreak(){return this.$13(this.lastTokEnd,this.start)}$13(i,h){for(let l=i;l<h;l++){let c=this.input.charCodeAt(l);if(c===10||c===13||c===8232||c===8233)return!0}return!1}$d(i=this.pos){return wt.lastIndex=i,wt.exec(this.input),wt.lastIndex}$2(){return this.input.charCodeAt(this.$d())}$3(){let i=this.$d(),h=i;while(h<this.input.length&&o(this.input.charCodeAt(h)))h++;return this.input.slice(i,h)}$a(){return!this.$13(this.pos,this.$d())}$14(){return this.$a()&&p(this.$2())&&!Object.hasOwn(n,this.$3())}$15(){return{pos:this.pos,type:this.type,value:this.value,start:this.start,end:this.end,startLoc:this.startLoc,endLoc:this.endLoc,lastTokStart:this.lastTokStart,lastTokEnd:this.lastTokEnd,lastTokStartLoc:this.lastTokStartLoc,lastTokEndLoc:this.lastTokEndLoc,curLine:this.curLine,lineStart:this.lineStart,context:this.context.slice(),exprAllowed:this.exprAllowed,containsEsc:this.containsEsc,inType:this.inType,$5:this.$5,$6:this.$6,$8:this.$8,scopes:this.scopeStack.length,privateNames:this.privateNameStack.length,labels:this.labels,labelCount:this.labels.length,strict:this.strict,yieldPos:this.yieldPos,awaitPos:this.awaitPos,awaitIdentPos:this.awaitIdentPos,potentialArrowAt:this.potentialArrowAt,potentialArrowInForAwait:this.potentialArrowInForAwait}}$16(i){this.pos=i.pos,this.type=i.type,this.value=i.value,this.start=i.start,this.end=i.end,this.startLoc=i.startLoc,this.endLoc=i.endLoc,this.lastTokStart=i.lastTokStart,this.lastTokEnd=i.lastTokEnd,this.lastTokStartLoc=i.lastTokStartLoc,this.lastTokEndLoc=i.lastTokEndLoc,this.curLine=i.curLine,this.lineStart=i.lineStart,this.context=i.context,this.exprAllowed=i.exprAllowed,this.containsEsc=i.containsEsc,this.inType=i.inType,this.$5=i.$5,this.$6=i.$6,this.$8=i.$8,this.scopeStack.length=i.scopes,this.privateNameStack.length=i.privateNames,this.labels=i.labels,this.labels.length=i.labelCount,this.strict=i.strict,this.yieldPos=i.yieldPos,this.awaitPos=i.awaitPos,this.awaitIdentPos=i.awaitIdentPos,this.potentialArrowAt=i.potentialArrowAt,this.potentialArrowInForAwait=i.potentialArrowInForAwait}raise(i,h){if(this.$r>0)throw Ke;return super.raise(i,h)}$1y(i,h){try{super.raise(i,h)}catch(l){if(l instanceof SyntaxError)l.$1z=!0;throw l}throw Error("unreachable")}$f(i,h=!1){let l=this.$15();this.$r++;try{let c=i();if(h||c===void 0)this.$16(l);return c}catch(c){if(!(c instanceof SyntaxError)||!h&&c.$1z)throw c;this.$16(l);return}finally{this.$r--}}$t(i){return this.$f(i,!0)===!0}$17(i){if(i.end=this.lastTokEnd,this.options.locations)i.loc.end=this.lastTokEndLoc}$l(i,h){if(i.start=h.start,this.options.locations)i.loc.start=h.loc.start}$4(i=!1){let h=this.startNode();return h.typeAnnotation=this.$9(()=>(this.next(),i?this.$20():this.$0())),this.finishNode(h,"TSTypeAnnotation")}$g(i,h){if(h&&this.eat(s.question))i.optional=!0,this.$17(i);if(this.type===s.colon)i.typeAnnotation=this.$4(),this.$17(i);return i}$20(){if(this.type!==s.name&&this.type!==s._this)return this.$0();if(this.isContextual("asserts")&&this.$a()&&p(this.$2())){let i=this.startNode();if(this.next(),i.parameterName=this.type===s._this?this.$u():this.parseIdent(),this.isContextual("is")&&!this.hasPrecedingLineBreak())return this.$v(i,!0);return i.asserts=!0,i.typeAnnotation=null,this.finishNode(i,"TSTypePredicate")}if(this.$3()==="is"&&this.$a()){let i=this.startNode();return i.parameterName=this.type===s._this?this.$u():this.parseIdent(!0),this.$v(i,!1)}return this.$0()}$v(i,h){this.next();let l=this.startNode();return l.typeAnnotation=this.$0(),i.typeAnnotation=this.finishNode(l,"TSTypeAnnotation"),i.asserts=h,this.finishNode(i,"TSTypePredicate")}$u(){let i=this.startNode();return this.next(),this.finishNode(i,"TSThisType")}parseWholeType(){this.inType=!0,this.nextToken();let i=this.$0();if(this.type!==s.eof)this.unexpected();return i}$0(){let i=this.$18();if(this.$5||this.type!==s._extends||this.hasPrecedingLineBreak())return i;let h=this.startNodeAt(i.start,i.loc?.start);return this.next(),h.checkType=i,h.extendsType=this.$h(!0,()=>this.$18()),this.expect(s.question),h.trueType=this.$h(!1,()=>this.$0()),this.expect(s.colon),h.falseType=this.$h(!1,()=>this.$0()),this.finishNode(h,"TSConditionalType")}$h(i,h){let l=this.$5;this.$5=i;let c=h();return this.$5=l,c}$18(){if(this.$21())return this.$19("TSFunctionType");if(this.type===s._new||this.isContextual("abstract")&&this.$3()==="new")return this.$19("TSConstructorType");return this.$1a("TSUnionType",s.bitwiseOR,()=>this.$1a("TSIntersectionType",s.bitwiseAND,()=>this.$1b()))}$19(i){let h=this.startNode();if(i==="TSConstructorType"){if(h.abstract=this.isContextual("abstract"),h.abstract)this.next();this.next()}return this.$h(!1,()=>this.$m(h,s.arrow)),this.finishNode(h,i)}$m(i,h){if(this.$1())i.typeParameters=this.$7();if(this.expect(s.parenL),i.parameters=this.parseBindingList(s.parenR,!1,!0),this.type===h)i.typeAnnotation=this.$4(!0);else if(h===s.arrow)this.unexpected()}$21(){if(this.$1())return!0;if(this.type!==s.parenL)return!1;return this.$t(()=>{if(this.next(),this.type===s.parenR||this.type===s.ellipsis)return!0;if(this.type===s.name||this.type===s._this)this.next();else if(this.type===s.braceL||this.type===s.bracketL)this.parseBindingAtom();else return!1;let i=this.type;if(i===s.colon||i===s.comma||i===s.question||i===s.eq)return!0;if(i!==s.parenR)return!1;return this.next(),this.type===s.arrow})}$1a(i,h,l){let c=this.startNode(),y=this.eat(h),x=[];do x.push(l());while(this.eat(h));if(x.length===1&&!y)return x[0];return c.types=x,this.finishNode(c,i)}$1b(){if(this.type===s.name&&!this.containsEsc){let i=this.value;if(i==="keyof"||i==="unique"||i==="readonly"){let h=this.startNode();return this.next(),h.operator=i,h.typeAnnotation=this.$1b(),this.finishNode(h,"TSTypeOperator")}if(i==="infer"){let h=this.startNode();this.next();let l=this.startNode();l.name=this.$w();let c=this.$f(()=>this.$22());if(c)l.constraint=c;return h.typeParameter=this.finishNode(l,"TSTypeParameter"),this.finishNode(h,"TSInferType")}}return this.$h(!1,()=>this.$23())}$22(){if(!this.eat(s._extends))return;let i=this.$h(!0,()=>this.$0());if(this.$5||this.type!==s.question)return i;return}$w(){if(this.type!==s.name&&!this.type.keyword)this.unexpected();let i=this.type===s.name?this.value:this.type.keyword;return this.next(),i}$23(){let i=this.$24();while(!this.hasPrecedingLineBreak()&&this.eat(s.bracketL)){let h=this.startNodeAt(i.start,i.loc?.start);if(this.eat(s.bracketR))h.elementType=i,i=this.finishNode(h,"TSArrayType");else h.objectType=i,h.indexType=this.$0(),this.expect(s.bracketR),i=this.finishNode(h,"TSIndexedAccessType")}return i}$24(){switch(this.type){case s.name:case s._void:case s._null:{let i=Ce.get(this.value);if(i&&(this.type!==s.name||!this.containsEsc&&this.$2()!==ae)){let h=this.startNode();return this.next(),this.finishNode(h,i)}return this.$1c()}case s.string:case s.num:case s._true:case s._false:{let i=this.startNode();return i.literal=this.parseExprAtom(),this.finishNode(i,"TSLiteralType")}case s.plusMin:{if(this.value!=="-")break;let i=this.startNode(),h=this.startNode();if(this.next(),this.type!==s.num)this.unexpected();return h.operator="-",h.prefix=!0,h.argument=this.parseExprAtom(),i.literal=this.finishNode(h,"UnaryExpression"),this.finishNode(i,"TSLiteralType")}case s.backQuote:return this.$25();case s._this:{let i=this.$u();if(this.isContextual("is")&&!this.hasPrecedingLineBreak()){let h=this.startNodeAt(i.start,i.loc?.start);return h.parameterName=i,this.$v(h,!1)}return i}case s._typeof:return this.$26();case s._import:return this.$1d();case s.braceL:return this.$27()?this.$28():this.$29();case s.bracketL:return this.$2a();case s.parenL:{let i=this.startNode();return this.next(),i.typeAnnotation=this.$0(),this.expect(s.parenR),this.finishNode(i,"TSParenthesizedType")}default:if(this.type.keyword)return this.$1c()}return this.unexpected()}$1c(){let i=this.startNode();if(i.typeName=this.$j(),!this.hasPrecedingLineBreak()&&this.$1())i.typeArguments=this.$e();return this.finishNode(i,"TSTypeReference")}$j(){let i=this.parseIdent(!0);while(this.eat(s.dot)){let h=this.startNodeAt(i.start,i.loc?.start);h.left=i,h.right=this.parseIdent(!0),i=this.finishNode(h,"TSQualifiedName")}return i}$26(){let i=this.startNode();if(this.next(),i.exprName=this.type===s._import?this.$1d():this.$j(),!this.hasPrecedingLineBreak()&&this.$1())i.typeArguments=this.$e();return this.finishNode(i,"TSTypeQuery")}$1d(){let i=this.startNode();if(this.next(),i.argument=this.$1e(),this.eat(s.dot))i.qualifier=this.$j();if(this.$1())i.typeArguments=this.$e();return this.finishNode(i,"TSImportType")}$x(){if(this.type!==s.string)this.unexpected();return this.parseExprAtom()}$1e(){this.expect(s.parenL);let i=this.$x();return this.expect(s.parenR),i}$25(){let i=this.startNode(),h=this.startNode();this.next(),h.expressions=[];let l=this.parseTemplateElement({isTagged:!1});h.quasis=[l];while(!l.tail){if(this.type===s.eof)this.raise(this.pos,"Unterminated template literal");this.expect(s.dollarBraceL),h.expressions.push(this.$0()),this.expect(s.braceR),l=this.parseTemplateElement({isTagged:!1}),h.quasis.push(l)}return this.next(),i.literal=this.finishNode(h,"TemplateLiteral"),this.finishNode(i,"TSLiteralType")}$27(){return this.$t(()=>{if(this.next(),this.type===s.plusMin)return this.next(),this.isContextual("readonly");if(this.isContextual("readonly"))this.next();if(this.type!==s.bracketL)return!1;if(this.next(),this.type!==s.name)return!1;return this.next(),this.type===s._in})}$28(){let i=this.startNode();if(this.expect(s.braceL),this.type===s.plusMin)i.readonly=this.value,this.next(),this.expectContextual("readonly");else if(this.eatContextual("readonly"))i.readonly=!0;this.expect(s.bracketL);let h=this.startNode();if(h.name=this.$w(),this.expect(s._in),h.constraint=this.$0(),i.typeParameter=this.finishNode(h,"TSTypeParameter"),i.nameType=this.eatContextual("as")?this.$0():null,this.expect(s.bracketR),this.type===s.plusMin)i.optional=this.value,this.next(),this.expect(s.question);else if(this.eat(s.question))i.optional=!0;if(this.eat(s.colon))i.typeAnnotation=this.$0();return this.semicolon(),this.expect(s.braceR),this.finishNode(i,"TSMappedType")}$29(){let i=this.startNode();return i.members=this.$1f(),this.finishNode(i,"TSTypeLiteral")}$1f(){this.expect(s.braceL);let i=[];while(!this.eat(s.braceR))i.push(this.$2b());return i}$2b(){let i=this.startNode(),h="TSPropertySignature",l=this.type===s._new?this.$2():-1;if(this.type===s.parenL||this.$1())h="TSCallSignatureDeclaration",this.$m(i,s.colon);else if(l===re||l===oe)h="TSConstructSignatureDeclaration",this.next(),this.$m(i,s.colon);else{let c=this.type===s._new?this.parseIdent(!0):null;if(this.isContextual("readonly")&&this.$n(!0))this.next(),i.readonly=!0;if(this.type===s.bracketL&&this.$1g())return this.$1h(i);let y="method";if(c)i.key=c;else{if((this.isContextual("get")||this.isContextual("set"))&&this.$n(!1))y=this.value,this.next();this.parsePropertyName(i)}if(this.eat(s.question))i.optional=!0;if(this.type===s.parenL||this.$1()){if(h="TSMethodSignature",y!=="method")i.kind=y;this.$m(i,s.colon),i.kind=y}else if(this.type===s.colon)i.typeAnnotation=this.$4()}return this.$1i(),this.finishNode(i,h)}$1i(){if(!this.eat(s.comma))this.semicolon()}$1g(){return this.$t(()=>{if(this.next(),this.type!==s.name)return!1;return this.next(),this.type===s.colon})}$1h(i){if(this.expect(s.bracketL),i.parameters=[this.$g(this.parseIdent(),!1)],this.expect(s.bracketR),this.type===s.colon)i.typeAnnotation=this.$4();return this.$1i(),this.finishNode(i,"TSIndexSignature")}$2a(){let i=this.startNode();this.expect(s.bracketL),i.elementTypes=[];while(!this.eat(s.bracketR))if(i.elementTypes.push(this.$2c()),this.type!==s.bracketR)this.expect(s.comma);return this.finishNode(i,"TSTupleType")}$2c(){let i=this.start,h=this.startLoc,l=this.eat(s.ellipsis),c;if((this.type===s.name||this.type.keyword)&&this.$2d()){let y=this.startNode();y.label=this.parseIdent(!0),y.optional=this.eat(s.question),this.expect(s.colon),y.elementType=this.$0(),c=this.finishNode(y,"TSNamedTupleMember")}else if(c=this.$0(),this.eat(s.question)){let y=this.startNodeAt(c.start,c.loc?.start);y.typeAnnotation=c,c=this.finishNode(y,"TSOptionalType")}if(l){let y=this.startNodeAt(i,h);y.typeAnnotation=c,c=this.finishNode(y,"TSRestType")}return c}$2d(){let i=this.$d();if(this.input.charCodeAt(i)===63)i=this.$d(i+1);return this.input.charCodeAt(i)===ne}$7(){return this.$9(()=>{let i=this.startNode();this.next(),i.params=[];while(!this.$c()){let h=this.startNode();while((this.type===s._const||this.type===s._in||this.isContextual("out"))&&p(this.$2()))h[this.value]=!0,this.next();if(h.name=this.$w(),this.eat(s._extends))h.constraint=this.$0();if(this.eat(s.eq))h.default=this.$0();if(i.params.push(this.finishNode(h,"TSTypeParameter")),!this.$c()){if(this.expect(s.comma),this.$c())i.extra={trailingComma:this.lastTokStart}}}if(this.next(),i.params.length===0)this.$1y(this.start,"Type parameter list cannot be empty.");return this.finishNode(i,"TSTypeParameterDeclaration")})}$e(){return this.$9(()=>{let i=this.startNode();this.next(),i.params=[];while(!this.$c())if(i.params.push(this.$0()),!this.$c())this.expect(s.comma);if(i.params.length===0)this.unexpected();return this.next(),this.finishNode(i,"TSTypeParameterInstantiation")})}$1j(){let i=[];do{let h=this.startNode();if(h.expression=this.$j(),this.$1())h.typeParameters=this.$e();i.push(this.finishNode(h,"TSExpressionWithTypeArguments"))}while(this.eat(s.comma));return i}$1k(i=!1){if(this.type!==s.name||this.containsEsc){if(this.type===s._const&&this.$3()==="enum")return this.$y(this.startNode());return}if(!this.$2e(this.value))return;if(this.value==="declare")return this.$2f(i);return this.$1l(this.startNode(),this.value)}$2e(i){switch(i){case"interface":case"type":case"namespace":return this.$14();case"enum":return p(this.$2());case"abstract":return this.$a()&&this.$3()==="class";case"module":{let h=this.$2();return this.$a()&&(h===Ct||h===Pt||p(h))}case"declare":return this.$a()&&Ie.has(this.$3());case"global":return this.$a()&&this.$2()===ct}return!1}$1l(i,h){switch(h){case"interface":return this.$1m(i);case"type":return this.$2g(i);case"enum":return this.$y(i);case"abstract":return this.$1n(i,!0);case"global":return i.global=!0,i.id=this.parseIdent(),i.body=this.$z(),this.finishNode(i,"TSModuleDeclaration")}return this.$2h(i)}$2f(i){let h=this.$6;this.$6=!0;let l=this.startNode();this.next();let c=this.value;if(c==="const"&&this.$3()==="enum")l.const=!0;if(!i&&Le.has(c))l.declare=!0;let y;if(l.const)y=this.$y(l);else if(c==="var"||c==="let"||c==="const")y=this.parseVarStatement(l,c,!0);else if(c==="function")this.next(),y=this.parseFunction(l,ie,!1,!1);else if(c==="class")y=this.parseClass(l,!0);else y=this.$1l(l,c);return y.declare=!0,this.$6=h,y}$1n(i,h){return this.next(),i.abstract=!0,this.parseClass(i,h)}$1m(i){if(this.next(),i.id=this.parseIdent(),this.checkLValSimple(i.id,se),this.$1())i.typeParameters=this.$7();return this.$9(()=>{if(this.eat(s._extends))i.extends=this.$1j();let h=this.startNode();h.body=this.$1f(),i.body=this.finishNode(h,"TSInterfaceBody")}),this.finishNode(i,"TSInterfaceDeclaration")}$2g(i){if(this.next(),i.id=this.parseIdent(),this.checkLValSimple(i.id,At),this.$1())i.typeParameters=this.$7();return i.typeAnnotation=this.$9(()=>(this.expect(s.eq),this.$0())),this.semicolon(),this.finishNode(i,"TSTypeAliasDeclaration")}$y(i){if(this.type===s._const)i.const=!0,this.next();this.next(),i.id=this.parseIdent(),this.checkLValSimple(i.id,Me),this.expect(s.braceL),i.members=[];while(!this.eat(s.braceR)){let h=this.startNode();if(h.id=this.type===s.string?this.parseExprAtom():this.parseIdent(!0),this.eat(s.eq))h.initializer=this.parseMaybeAssign();if(i.members.push(this.finishNode(h,"TSEnumMember")),this.type!==s.braceR)this.expect(s.comma)}return this.finishNode(i,"TSEnumDeclaration")}$2h(i){if(this.next(),this.type===s.string){if(i.id=this.parseExprAtom(),this.type===s.braceL)i.body=this.$z();else this.semicolon();return this.finishNode(i,"TSModuleDeclaration")}return i.id=this.parseIdent(),this.checkLValSimple(i.id,De),this.$1o(i)}$1o(i){if(this.eat(s.dot)){let h=this.startNode();h.id=this.parseIdent(),i.body=this.$1o(h)}else i.body=this.$z();return this.finishNode(i,"TSModuleDeclaration")}$z(){this.enterScope(Re);let i=this.startNode();this.enterScope(0),this.expect(s.braceL),i.body=[];while(!this.eat(s.braceR))i.body.push(this.parseStatement(null,!0));return this.exitScope(),this.exitScope(),this.finishNode(i,"TSModuleBlock")}$1p(i,h){if(i.isExport=h,i.id=this.parseIdent(),this.checkLValSimple(i.id,Z),this.expect(s.eq),this.isContextual("require")&&this.$2()===re){let l=this.startNode();this.next(),l.expression=this.$1e(),i.moduleReference=this.finishNode(l,"TSExternalModuleReference")}else i.moduleReference=this.$j();return this.semicolon(),this.finishNode(i,"TSImportEqualsDeclaration")}$2i(){let i=this.$d();if(this.input.charCodeAt(i)!==pt)return!1;let h=this.input.charCodeAt(i+1);return h!==pt&&h!==62}parseStatement(i,h,l){if(this.type===d)this.$1q(!0);let c=this.$1k();if(c)return c;return super.parseStatement(i,h,l)}parseVarStatement(i,h,l){return super.parseVarStatement(i,h,l||this.$6)}parseVarId(i,h){if(super.parseVarId(i,h),i.id.type==="Identifier"&&this.$s()&&!this.hasPrecedingLineBreak())this.next(),i.definite=!0;this.$g(i.id,!1)}parseCatchClauseParam(){let i=this.$g(this.parseBindingAtom(),!1),h=i.type==="Identifier";return this.enterScope(h?_e:0),this.checkLValPattern(i,h?Be:Z),this.expect(s.parenR),i}parseImport(i){if(this.next(),i.importKind="value",this.type===s.string)i.specifiers=[],i.source=this.parseExprAtom();else{if(this.isContextual("type")){let h=this.$2();if(h===ct||h===Et||p(h)&&this.$3()!=="from")i.importKind="type",this.next()}if(this.type===s.name&&this.$2i())return this.$1p(i,!1);i.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),i.source=this.$x()}return this.$1r(i),this.semicolon(),this.finishNode(i,"ImportDeclaration")}parseWithClause(){if(this.isContextual("assert")&&!this.hasPrecedingLineBreak())this.type=s._with;return this.type===s._with?super.parseWithClause():void 0}$1r(i){let h=this.parseWithClause();if(h)i.attributes=h}parseImportSpecifier(){return this.$1s("importKind",()=>super.parseImportSpecifier())}parseExportSpecifier(i){return this.$1s("exportKind",()=>super.parseExportSpecifier(i))}$1s(i,h){let l=this.isContextual("type")?this.$2():-1;if(l===Ct||l===Pt||p(l)&&this.$3()!=="as"){let y=this.startNode();this.next();let x=h();return this.$l(x,y),x[i]="type",x}let c=h();return c[i]="value",c}parseExport(i,h){if(this.next(),this.eat(s._import)){if(i.importKind="value",this.isContextual("type")&&p(this.$2())&&this.$3()!=="from")i.importKind="type",this.next();return this.$1p(i,!0)}if(this.eat(s.eq))return i.expression=this.parseExpression(),this.semicolon(),this.finishNode(i,"TSExportAssignment");if(this.eatContextual("as"))return this.expectContextual("namespace"),i.id=this.parseIdent(),this.semicolon(),this.finishNode(i,"TSNamespaceExportDeclaration");if(i.exportKind="value",this.isContextual("type")){let y=this.$2();if(y===ct||y===Et)i.exportKind="type",this.next()}if(this.eat(s.star))return this.parseExportAllDeclaration(i,h);if(this.eat(s._default)){if(this.isContextual("interface")&&this.$14())i.declaration=this.$1m(this.startNode());else if(this.isContextual("abstract")&&this.$3()==="class")i.declaration=this.$1n(this.startNode(),"nullableID");else i.declaration=this.parseExportDefaultDeclaration();return this.finishNode(i,"ExportDefaultDeclaration")}let l=this.isContextual("declare"),c=this.$1k(!0);if(c||this.shouldParseExportStatement()){if(i.declaration=c??this.parseStatement(null),l||i.declaration.type==="TSInterfaceDeclaration"||i.declaration.type==="TSTypeAliasDeclaration")i.exportKind="type";return i.specifiers=[],i.source=null,this.finishNode(i,"ExportNamedDeclaration")}if(i.declaration=null,i.specifiers=this.parseExportSpecifiers(h),this.eatContextual("from"))i.source=this.$x(),this.$1r(i);else{for(let y of i.specifiers)if(this.checkUnreserved(y.local),this.checkLocalExport(y.local),y.local.type==="Literal")this.raise(y.local.start,"A string literal cannot be used as an exported binding without `from`.");i.source=null}return this.semicolon(),this.finishNode(i,"ExportNamedDeclaration")}parseFunction(i,h,l,c,y){let x=h&ie;if(x)this.$i=i;super.parseFunction(i,h,l,c,y),this.$i=null;let g=!i.body;if(g)i.type="TSDeclareFunction";if(x&&i.id){if(g){if(this.$6&&this.currentScope().flags&ee)this.declareName(i.id.name,$t,i.id.start);this.checkLValSimple(i.id,Ve)}else if(!(h&qe)){let N=Oe;if(this.strict||i.generator||i.async)N=this.treatFunctionsAsVar?Fe:Z;this.checkLValSimple(i.id,N)}}return i}parseFunctionParams(i){if(this.$1())i.typeParameters=this.$7();if(super.parseFunctionParams(i),this.type===s.colon)i.returnType=this.$4(!0)}parseFunctionBody(i,h,l,c){if(l&&this.type===s.colon)i.returnType=this.$4(!0);if(h||this.type===s.braceL){super.parseFunctionBody(i,h,l,c);return}this.semicolon(),this.exitScope()}parseMethod(i,h,l){let c=this.$o;this.$o=null;let y=super.parseMethod(i,h,l);if(!y.body)y.type="TSDeclareMethod";if(c)y.typeParameters=c;return y}parseBindingList(i,h,l,c){let y=c===!0||this.$p;return this.$p=!1,super.parseBindingList(i,h,l,y)}$n(i){if(!i&&!this.$a())return!1;let h=this.$2();return h===We||h===ct||h===Et||h===ae||h===je||h===Ct||h===Pt||h>=48&&h<=57||p(h)}parseAssignableListItem(i){let h=this.$10(),l=this.start,c=this.startLoc,y,x=!1,g=!1;if(i)while(this.type===s.name&&$e.has(this.value)&&!this.containsEsc&&this.$n(!1)){if(this.value==="readonly")x=!0;else if(this.value==="override")g=!0;else y=this.value;this.next()}let N;if(this.type===s._this)N=this.startNode(),N.name="this",this.next(),this.finishNode(N,"Identifier");else N=this.parseBindingAtom();let P=this.type===s.eq?this.parseMaybeDefault(l,c,N):this.parseMaybeDefault(N.start,N.loc?.start,this.$g(N,!0));if(h.length>0)P.decorators=h;if(!y&&!x&&!g)return P;let E=this.startNodeAt(l,c);if(y)E.accessibility=y;if(x)E.readonly=!0;if(g)E.override=!0;return E.parameter=P,this.finishNode(E,"TSParameterProperty")}parseBindingListItem(i){if(i.type==="RestElement")this.$g(i,!0);return i}checkLValSimple(i,h,l){if(this.$i&&i===this.$i.id){this.$i=null;return}if(!h&&te.has(i.type)){this.checkLValSimple(i.expression,h,l);return}switch(i.type){case"TSParameterProperty":this.checkLValInnerPattern(i.parameter,h,l);return;case"Identifier":if(i.name==="this")return}super.checkLValSimple(i,h,l)}toAssignable(i,h,l){if(i&&!h&&te.has(i.type))return i;return super.toAssignable(i,h,l)}declareName(i,h,l){let c=this.currentScope();if(h&$t){this.$1t(c,i),c.$1u??=[],c.$1u.push(i);return}if(h===At||h===se){if(c.$11??=[],h===At&&c.$11.includes(i))this.raise(l,`type '${i}' has already been declared.`);c.$11.push(i),this.$1t(c,i);return}if(h&he){if(c.$1v??=[],c.$1v.includes(i))return;super.declareName(i,Z,l),c.$1v.push(i);return}super.declareName(i,h,l)}$1t(i,h){if(this.inModule&&i.flags&ee)delete this.undefinedExports[h]}checkLocalExport(i){for(let h=this.scopeStack.length-1;h>=0;h--){let l=this.scopeStack[h];if(l.$11?.includes(i.name)||l.$1u?.includes(i.name))return}super.checkLocalExport(i)}checkExport(){}raiseRecoverable(i,h){if(h==="Duplicate constructor in the same class")return;super.raiseRecoverable(i,h)}$10(){let i=[];while(this.type===d)i.push(this.$1w());return i}$1q(i){let h=this.$b[this.$b.length-1];while(this.type===d)h.push(this.$1w());if(this.type===s._export){if(!i)this.unexpected()}else if(this.type!==s._class&&!((this.isContextual("abstract")||this.isContextual("declare"))&&this.$3()==="class"))this.raise(this.start,"Leading decorators must be attached to a class declaration.")}$1w(){let i=this.startNode();this.next(),this.$b.push([]);let h=this.start,l=this.startLoc,c;if(this.type===s.parenL){if(this.next(),c=this.parseExpression(),this.expect(s.parenR),this.options.preserveParens){let x=this.startNodeAt(h,l);x.expression=c,c=this.finishNode(x,"ParenthesizedExpression")}}else{c=this.parseIdent(!1);while(this.eat(s.dot)){let x=this.startNodeAt(h,l);x.object=c,x.property=this.parseIdent(!0),x.computed=!1,c=this.finishNode(x,"MemberExpression")}}let y=this.$k()?this.$e():void 0;if(this.eat(s.parenL)){let x=this.startNodeAt(c.start,c.loc?.start);if(x.callee=c,x.arguments=this.parseExprList(s.parenR,!1,!1),y)x.typeArguments=y;c=this.finishNode(x,"CallExpression")}else if(y){let x=this.startNodeAt(c.start,c.loc?.start);x.expression=c,x.typeArguments=y,c=this.finishNode(x,"TSInstantiationExpression")}return i.expression=c,this.$b.pop(),this.finishNode(i,"Decorator")}shouldParseExportStatement(){return this.type===d||super.shouldParseExportStatement()}parseExprAtom(i,h,l){if(this.type===d)this.$1q(!1);return super.parseExprAtom(i,h,l)}parseProperty(i,h){if(i||this.type!==d)return super.parseProperty(i,h);let l=this.$10(),c=super.parseProperty(i,h);if(c.type==="SpreadElement")this.raise(c.start,"Decorators can't be used with SpreadElement");return c.decorators=l,c}parseClassId(i,h){let l=this.$b.length-1,c=this.$b[l];if(c.length>0)i.decorators=c,this.$l(i,c[0]),this.$b[l]=[];if(!this.isContextual("implements")||h===!0)super.parseClassId(i,h);if(this.$1())i.typeParameters=this.$7()}parseClassSuper(i){if(super.parseClassSuper(i),i.superClass&&this.$1())i.superTypeParameters=this.$e();if(this.eatContextual("implements"))i.implements=this.$9(()=>this.$1j())}parseClassElement(i){if(this.type===d){let g=this.$10();if(this.type===s.braceR)this.raise(this.start,"Decorators must be attached to a class element.");let N=this.parseClassElement(i);return N.decorators=g,this.$l(N,g[0]),N}if(this.eat(s.semi))return null;let h=this.startNode();while(this.type===s.name&&Pe.has(this.value)&&!this.containsEsc&&this.$n(this.value==="static")){let g=this.value;if(this.next(),g==="static"&&this.type===s.braceL)return this.next(),this.parseClassStaticBlock(h),h;if(g==="public"||g==="private"||g==="protected")h.accessibility=g;else h[g]=!0}if(this.type===s.bracketL&&this.$1g())return this.$1h(h);h.static??=!1;let l="",c=!1,y=!1,x="method";if(this.eatContextual("async"))if((this.isClassElementNameStart()||this.type===s.star)&&!this.canInsertSemicolon())y=!0;else l="async";if(!l&&this.eat(s.star))c=!0;if(!l&&!y&&!c){let g=this.value;if(this.eatContextual("get")||this.eatContextual("set"))if(this.isClassElementNameStart())x=g;else l=g}if(l)h.computed=!1,h.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),h.key.name=l,this.finishNode(h.key,"Identifier");else this.parseClassElementName(h);if(this.eat(s.question))h.optional=!0;if(this.type===s.parenL||this.$1()||x!=="method"||c||y){let g=h.key,N=!h.static&&!h.computed&&(g.type==="Identifier"&&g.name==="constructor"||g.type==="Literal"&&g.value==="constructor");if(h.kind=N?"constructor":x,this.$1())h.typeParameters=this.$7();this.$p=N,this.parseClassMethod(h,c,y,N&&i)}else{if(!h.optional&&this.$s())this.next(),h.definite=!0;if(this.type===s.colon)h.typeAnnotation=this.$4();this.parseClassField(h)}return h}parseMaybeAssign(i,h,l){if(this.$k()){let c=this.$f(()=>{let y=this.$7(),x=super.parseMaybeAssign(i,h,l);if(x.type!=="ArrowFunctionExpression")return;return x.typeParameters=y,this.$l(x,y),x});if(c)return c}return super.parseMaybeAssign(i,h,l)}parseMaybeUnary(i,h,l,c){if(this.$k()){let y=this.startNode();return y.typeAnnotation=this.$9(()=>{this.next();let x=this.$0();if(!this.$c())this.unexpected();return this.next(),x}),y.expression=this.parseMaybeUnary(null,!1,!1,c),this.finishNode(y,"TSTypeAssertion")}return super.parseMaybeUnary(i,h,l,c)}parseMaybeConditional(i,h){let l=this.start,c=this.startLoc,y=this.parseExprOps(i,h);if(this.checkExpressionErrors(h))return y;if(this.type===s.question&&!(y.type==="ArrowFunctionExpression"&&y.start===l)&&!this.$2j()){this.next();let x=this.startNodeAt(l,c);return x.test=y,x.consequent=this.parseMaybeAssign(),this.expect(s.colon),x.alternate=this.parseMaybeAssign(i),this.finishNode(x,"ConditionalExpression")}return y}$2j(){let i=this.$d(),h=this.input.charCodeAt(i);if(h===ne||h===ze||h===Ue)return!0;return h===pt&&this.input.charCodeAt(i+1)!==pt}parseParenItem(i){return this.$g(i,!0)}$1x(){if(this.type!==s.colon)return!0;let i=this.$f(()=>{let h=this.$4(!0);return this.type===s.arrow&&!this.canInsertSemicolon()?h:void 0});if(!i)return!1;return this.$8=i,!0}shouldParseArrow(i){return this.$1x()&&super.shouldParseArrow(i)}shouldParseAsyncArrow(){return this.$1x()&&super.shouldParseAsyncArrow()}parseArrowExpression(i,h,l,c){if(this.$8)i.returnType=this.$8,this.$8=null;return super.parseArrowExpression(i,h,l,c)}parseExprList(i,h,l,c){if(!this.$q)return super.parseExprList(i,h,l,c);this.$q=!1;let y=[],x=!0;while(!this.eat(i)){if(x)x=!1;else if(this.expect(s.comma),h&&this.afterTrailingComma(i))break;if(this.type===s.ellipsis){let g=this.parseSpread(c);if(this.eat(s.question))g.optional=!0;if(this.type===s.colon)g.typeAnnotation=this.$4();y.push(g)}else y.push(this.parseMaybeAssign(!1,c,this.parseParenItem))}return y}parseSubscript(i,h,l,c,y,x,g){if(this.$s()&&!this.hasPrecedingLineBreak()){let P=this.startNodeAt(h,l);return this.exprAllowed=!1,this.next(),P.expression=i,this.finishNode(P,"TSNonNullExpression")}if(y&&this.$1()){let P=this.$f(()=>this.$2k(h,l,g));if(P)return P}let N=this.type===s.questionDot&&this.$2()===oe;if(this.$1()||N||this.type===s.bitShift&&this.value==="<<"){let P=this.$f(()=>{if(N)this.next();this.$k();let E=this.$e();if(this.type===s.parenL&&!c)return E;if(this.type===s.backQuote)return N?void 0:E;if(N)return;if(this.$c()||this.type===s.bitShift||this.type.startsExpr&&this.type!==s.parenL&&!this.hasPrecedingLineBreak())return;return E});if(P){let E=this.startNodeAt(h,l);if(this.type===s.parenL&&!c){if(this.next(),E.callee=i,E.arguments=this.parseExprList(s.parenR,!0,!1),E.typeArguments=P,N)i.optional=!0;if(N||x)E.optional=N;return this.finishNode(E,"CallExpression")}if(this.type===s.backQuote)return E.tag=i,E.quasi=this.parseTemplate({isTagged:!0}),E.typeArguments=P,this.finishNode(E,"TaggedTemplateExpression");return E.expression=i,E.typeArguments=P,this.finishNode(E,"TSInstantiationExpression")}}if(y&&this.type===s.parenL)this.$q=!0;return super.parseSubscript(i,h,l,c,y,x,g)}$2k(i,h,l){let c=this.startNodeAt(i,h);if(c.typeParameters=this.$7(),this.expect(s.parenL),c.params=this.parseBindingList(s.parenR,!1,!0),this.type===s.colon)c.returnType=this.$4(!0);if(this.type!==s.arrow||this.canInsertSemicolon())return;return this.next(),this.parseArrowExpression(c,c.params,!0,l)}parseDynamicImport(i){if(this.next(),i.source=this.parseMaybeAssign(),this.eat(s.comma)&&this.type!==s.parenR)i.arguments=[this.parseExpression()];return this.expect(s.parenR),this.finishNode(i,"ImportExpression")}parseNew(){let i=super.parseNew();if(i.callee?.type!=="TSInstantiationExpression")return i;let h=this.startNodeAt(i.start,i.loc?.start);return h.callee=i.callee.expression,h.typeArguments=i.callee.typeArguments,h.arguments=i.arguments,this.finishNodeAt(h,"NewExpression",i.end,i.loc?.end)}parseExprOp(i,h,l,c,y){if(s._in.binop>c&&this.type===s.name&&(this.value==="as"||this.value==="satisfies")&&!this.containsEsc&&!this.hasPrecedingLineBreak()){let x=this.value==="satisfies",g=this.startNodeAt(h,l);return g.expression=i,g.typeAnnotation=this.$9(()=>{if(this.next(),!x&&this.type===s._const){let N=this.startNode();return N.typeName=this.parseIdent(!0),this.finishNode(N,"TSTypeReference")}return this.$0()}),this.finishNode(g,x?"TSSatisfiesExpression":"TSAsExpression"),this.parseExprOp(g,h,l,c,y)}return super.parseExprOp(i,h,l,c,y)}parseGetterSetter(i){i.kind=i.key.name,super.parseGetterSetter(i)}parsePropertyValue(i,h,l,c,y,x,g,N){if(!h&&this.$1()){if(this.$o=this.$7(),this.type!==s.parenL)this.unexpected();i.kind="init"}return super.parsePropertyValue(i,h,l,c,y,x,g,N)}}return m});
10
+ export{r,a,t,b,S,f};