!function(e,t){"object"==typeof exports&&"undefined"!=typeof module?t(exports):"function"==typeof define&&define.amd?define(["exports"],t):t((e="undefined"!=typeof globalThis?globalThis:e||self).svelte={})}(this,(function(e){"use strict";function t(e,t,r){const s=r._;let a=!1;function i(e,{next:t,state:n}){t(n)}return function e(t,o,l){if(a)return;if(!t.type)return;let c;const p={},u={path:o,state:l,next:(r=l)=>{o.push(t);for(const n in t){if("type"===n)continue;const s=t[n];if(s&&"object"==typeof s)if(Array.isArray(s)){const t={};s.forEach(((n,s)=>{if(n&&"object"==typeof n){const a=e(n,o,r);a&&(t[s]=a)}})),Object.keys(t).length>0&&(p[n]=s.map(((e,n)=>t[n]??e)))}else{const t=e(s,o,r);t&&(p[n]=t)}}if(o.pop(),Object.keys(p).length>0)return n(t,p)},stop:()=>{a=!0},visit:(n,r=l)=>{o.push(t);const s=e(n,o,r)??n;return o.pop(),s}};let d=r[t.type]??i;if(s){let e;c=s(t,{...u,next:(n=l)=>(l=n,e=d(t,{...u,state:n}),e)}),!c&&e&&(c=e)}else c=d(t,u);return c||Object.keys(p).length>0&&(c=n(t,p)),c||void 0}(e,[],t)??e}function n(e,t){const n={},r=Object.getOwnPropertyDescriptors(e);for(const e in r)Object.defineProperty(n,e,r[e]);for(const e in t)n[e]=t[e];return n}const r=/\s/,s=/\s+/,a=/^\r?\n/,i=/^\s/,o=/^[ \t\r\n]+/,l=/\s$/,c=/[ \t\r\n]+$/,p=/[^ \t\r\n]/,u=/[ \t\n\r\f]+/g,d=/^[ \t\n\r\f]+$/,h=/[^\n]/g,m=/^[a-zA-Z_$][a-zA-Z_$0-9]*$/,f=/(^[^a-zA-Z_$]|[^a-zA-Z0-9_$])/g,y=/^[aeiou]/,v=/^h[1-6]$/,g=/(^[0-9-.])|[\^$@%&#?!|()[\]{}^*+~;]/,b=1,_=2,x=4,w=8,C=16,k=1,S=2,P="http://www.w3.org/2000/svg",E="http://www.w3.org/1998/Math/MathML";function A(e,t){if(0===t.length)return null;const n=new q(t).get(e);return n&&n[0][0]>.7?n[0][1]:null}function T(e,t){if(null===e&&null===t)throw"Trying to compare two null values";if(null===e||null===t)return 0;const n=function(e,t){const n=[];let r=0,s=0;for(let a=0;a<=t.length;a++)for(let i=0;i<=e.length;i++)s=a&&i?e.charAt(i-1)===t.charAt(a-1)?r:Math.min(n[i],n[i-1],r)+1:a+i,r=n[i],n[i]=s;return n.pop()}(e=String(e),t=String(t));return 1-n/Math.max(e.length,t.length)}const $=/[^\w, ]+/;function R(e,t=2){const n={},r=function(e,t=2){const n="-"+e.toLowerCase().replace($,"")+"-",r=t-n.length,s=[];if(r>0)for(let t=0;t=2;--t){const n=this.__get(e,t);if(n.length>0)return n}return null}__get(e,t){const n=e.toLowerCase(),r={},s=R(n,t),a=this.items[t];let i,o,l,c,p,u=0;for(i in s)if(o=s[i],u+=Math.pow(o,2),i in this.match_dict)for(l=0;l{const n=s+e.length+1,r={start:s,end:n,line:t};return s=n,r}));let i=0;return function(t,s){if("string"==typeof t&&(t=e.indexOf(t,s??0)),-1===t)return;let o=a[i];const l=t>=o.end?1:-1;for(;o;){if(L(o,t))return{line:n+o.line,column:r+t-o.start,character:t};i+=l,o=a[i]}}}const O=/\r/g;function N(e){let t=5381,n=(e=e.replace(O,"")).length;for(;n--;)t=(t<<5)-t^e.charCodeAt(n);return(t>>>0).toString(36)}const D=["area","base","br","col","command","embed","hr","img","input","keygen","link","meta","param","source","track","wbr"];function j(e){return D.includes(e)||"!doctype"===e.toLowerCase()}const B=["arguments","await","break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","eval","export","extends","false","finally","for","function","if","implements","import","in","instanceof","interface","let","new","null","package","private","protected","public","return","static","super","switch","this","throw","true","try","typeof","var","void","while","with","yield"];function F(e){return B.includes(e)}function V(e){return e.endsWith("capture")&&"gotpointercapture"!==e&&"lostpointercapture"!==e}const H=["beforeinput","click","change","dblclick","contextmenu","focusin","focusout","input","keydown","keyup","mousedown","mousemove","mouseout","mouseover","mouseup","pointerdown","pointermove","pointerout","pointerover","pointerup","touchend","touchmove","touchstart"];function U(e){return H.includes(e)}const z=["allowfullscreen","async","autofocus","autoplay","checked","controls","default","disabled","formnovalidate","hidden","indeterminate","ismap","loop","multiple","muted","nomodule","novalidate","open","playsinline","readonly","required","reversed","seamless","selected","webkitdirectory"];function W(e){return z.includes(e)}const G={formnovalidate:"formNoValidate",ismap:"isMap",nomodule:"noModule",playsinline:"playsInline",readonly:"readOnly",defaultvalue:"defaultValue",defaultchecked:"defaultChecked",srcobject:"srcObject"};const K=[...z,"formNoValidate","isMap","noModule","playsInline","readOnly","value","inert","volume","defaultValue","defaultChecked","srcObject"];const X=["autofocus","muted","defaultValue","defaultChecked"];function J(e){return X.includes(e)}const Q=["touchstart","touchmove"];const Y=["textContent","innerHTML","innerText"];function Z(e){return Y.includes(e)}const ee=["body","embed","iframe","img","link","object","script","style","track"];function te(e){return ee.includes(e)}const ne=["altGlyph","altGlyphDef","altGlyphItem","animate","animateColor","animateMotion","animateTransform","circle","clipPath","color-profile","cursor","defs","desc","discard","ellipse","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","filter","font","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignObject","g","glyph","glyphRef","hatch","hatchpath","hkern","image","line","linearGradient","marker","mask","mesh","meshgradient","meshpatch","meshrow","metadata","missing-glyph","mpath","path","pattern","polygon","polyline","radialGradient","rect","set","solidcolor","stop","svg","switch","symbol","text","textPath","tref","tspan","unknown","use","view","vkern"];function re(e){return ne.includes(e)}const se=["annotation","annotation-xml","maction","math","merror","mfrac","mi","mmultiscripts","mn","mo","mover","mpadded","mphantom","mprescripts","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msubsup","msup","mtable","mtd","mtext","mtr","munder","munderover","semantics"];const ae=["$state","$state.raw","$state.snapshot","$props","$bindable","$derived","$derived.by","$effect","$effect.pre","$effect.tracking","$effect.root","$inspect","$inspect().with","$inspect.trace","$host"];function ie(e){return ae.includes(e)}let oe,le,ce,pe,ue=[],de=M("",{offsetLine:1});function he(e){const t=de(e.start);return`${n=oe,n?.replace(/\//g,"/​")}:${t?.line}:${t.column}`;var n}let me=[],fe=new Map;function ye(e=(()=>!0)){pe=e}function ve(e,t){return ce&&!!fe.get(e)?.some((e=>e.has(t)))}function ge(e,t){le=e;const n=t.rootDir?.replace(/\\/g,"/");oe=t.filename.replace(/\\/g,"/"),ce=!!t.dev,"string"==typeof n&&oe.startsWith(n)&&(oe=oe.replace(n,"").replace(/^[/\\]/,"")),de=M(le,{offsetLine:1}),ue=[],me=[],fe.clear()}const be=/^\t+/;function _e(e){return e.replace(be,(e=>e.split("\t").join(" ")))}class xe{name="CompileDiagnostic";constructor(e,t,n){this.code=e,this.message=t,oe&&(this.filename=oe),n&&(this.position=n,this.start=de(n[0]),this.end=de(n[1]),this.start&&this.end&&(this.frame=function(e,t,n){const r=e.split("\n"),s=Math.max(0,t-2),a=Math.min(t+3,r.length),i=String(a+1).length;return r.slice(s,a).map(((e,r)=>{const a=s+r===t,o=String(r+s+1).padStart(i," ");if(a){const t=" ".repeat(i+2+_e(e.slice(0,n)).length)+"^";return`${o}: ${_e(e)}\n${t}`}return`${o}: ${_e(e)}`})).join("\n")}(le,this.start.line-1,this.end.column)))}toString(){let e=`${this.code}: ${this.message}`;return this.filename&&(e+=`\n${this.filename}`,this.start&&(e+=`:${this.start.line}:${this.start.column}`)),this.frame&&(e+=`\n${this.frame}`),e}toJSON(){return{code:this.code,message:this.message,filename:this.filename,start:this.start,end:this.end,position:this.position,frame:this.frame}}}class we extends xe{name="CompileWarning";constructor(e,t,n){super(e,t,n)}}function Ce(e,t,n){let r=me;if(e&&(r=fe.get(e)??me),r&&r.at(-1)?.has(t))return;const s=new we(t,n,e&&void 0!==e.start?[e.start,e.end??e.start]:void 0);pe(s)&&ue.push(s)}function ke(e){Ce(e,"a11y_accesskey","Avoid using accesskey\nhttps://svelte.dev/e/a11y_accesskey")}function Se(e){Ce(e,"a11y_aria_activedescendant_has_tabindex","An element with an aria-activedescendant attribute should have a tabindex value\nhttps://svelte.dev/e/a11y_aria_activedescendant_has_tabindex")}function Pe(e,t){Ce(e,"a11y_aria_attributes",`\`<${t}>\` should not have aria-* attributes\nhttps://svelte.dev/e/a11y_aria_attributes`)}function Ee(e){Ce(e,"a11y_autofocus","Avoid using autofocus\nhttps://svelte.dev/e/a11y_autofocus")}function Ae(e,t){Ce(e,"a11y_hidden",`\`<${t}>\` element should not be hidden\nhttps://svelte.dev/e/a11y_hidden`)}function Te(e,t,n){Ce(e,"a11y_incorrect_aria_attribute_type",`The value of '${t}' must be a ${n}\nhttps://svelte.dev/e/a11y_incorrect_aria_attribute_type`)}function $e(e,t){Ce(e,"a11y_interactive_supports_focus",`Elements with the '${t}' interactive role must have a tabindex value\nhttps://svelte.dev/e/a11y_interactive_supports_focus`)}function Re(e,t){Ce(e,"a11y_misplaced_role",`\`<${t}>\` should not have role attribute\nhttps://svelte.dev/e/a11y_misplaced_role`)}function Ie(e){Ce(e,"a11y_misplaced_scope","The scope attribute should only be used with `` elements\nhttps://svelte.dev/e/a11y_misplaced_scope")}function qe(e,t,n){Ce(e,"a11y_mouse_events_have_key_events",`'${t}' event must be accompanied by '${n}' event\nhttps://svelte.dev/e/a11y_mouse_events_have_key_events`)}function Le(e,t){Ce(e,"a11y_no_abstract_role",`Abstract role '${t}' is forbidden\nhttps://svelte.dev/e/a11y_no_abstract_role`)}function Me(e,t,n){Ce(e,"a11y_no_interactive_element_to_noninteractive_role",`\`<${t}>\` cannot have role '${n}'\nhttps://svelte.dev/e/a11y_no_interactive_element_to_noninteractive_role`)}function Oe(e,t,n){Ce(e,"a11y_no_noninteractive_element_to_interactive_role",`Non-interactive element \`<${t}>\` cannot have interactive role '${n}'\nhttps://svelte.dev/e/a11y_no_noninteractive_element_to_interactive_role`)}function Ne(e,t){Ce(e,"a11y_no_redundant_roles",`Redundant role '${t}'\nhttps://svelte.dev/e/a11y_no_redundant_roles`)}function De(e){Ce(e,"a11y_positive_tabindex","Avoid tabindex values above zero\nhttps://svelte.dev/e/a11y_positive_tabindex")}function je(e,t,n){Ce(e,"a11y_role_has_required_aria_props",`Elements with the ARIA role "${t}" must have the following attributes defined: ${n}\nhttps://svelte.dev/e/a11y_role_has_required_aria_props`)}function Be(e,t,n){Ce(e,"a11y_role_supports_aria_props",`The attribute '${t}' is not supported by the role '${n}'\nhttps://svelte.dev/e/a11y_role_supports_aria_props`)}function Fe(e,t,n,r){Ce(e,"a11y_role_supports_aria_props_implicit",`The attribute '${t}' is not supported by the role '${n}'. This role is implicit on the element \`<${r}>\`\nhttps://svelte.dev/e/a11y_role_supports_aria_props_implicit`)}function Ve(e,t,n){Ce(e,"a11y_unknown_aria_attribute",(n?`Unknown aria attribute 'aria-${t}'. Did you mean '${n}'?`:`Unknown aria attribute 'aria-${t}'`)+"\nhttps://svelte.dev/e/a11y_unknown_aria_attribute")}function He(e,t,n){Ce(e,"a11y_unknown_role",(n?`Unknown role '${t}'. Did you mean '${n}'?`:`Unknown role '${t}'`)+"\nhttps://svelte.dev/e/a11y_unknown_role")}function Ue(e,t,n){Ce(e,"legacy_code",`\`${t}\` is no longer valid — please use \`${n}\` instead\nhttps://svelte.dev/e/legacy_code`)}function ze(e,t,n){Ce(e,"unknown_code",(n?`\`${t}\` is not a recognised code (did you mean \`${n}\`?)`:`\`${t}\` is not a recognised code`)+"\nhttps://svelte.dev/e/unknown_code")}function We(e){Ce(e,"options_deprecated_accessors","The `accessors` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_accessors")}function Ge(e){Ce(e,"options_deprecated_immutable","The `immutable` option has been deprecated. It will have no effect in runes mode\nhttps://svelte.dev/e/options_deprecated_immutable")}function Ke(e){Ce(e,"options_missing_custom_element","The `customElement` option is used when generating a custom element. Did you forget the `customElement: true` compile option?\nhttps://svelte.dev/e/options_missing_custom_element")}function Xe(e){Ce(e,"options_renamed_ssr_dom",'`generate: "dom"` and `generate: "ssr"` options have been renamed to "client" and "server" respectively\nhttps://svelte.dev/e/options_renamed_ssr_dom')}function Je(e,t){Ce(e,"export_let_unused",`Component has unused export property '${t}'. If it is for external reference only, please consider using \`export const ${t}\`\nhttps://svelte.dev/e/export_let_unused`)}function Qe(e,t){Ce(e,"non_reactive_update",`\`${t}\` is updated, but is not declared with \`$state(...)\`. Changing its value will not correctly trigger updates\nhttps://svelte.dev/e/non_reactive_update`)}function Ye(e,t){Ce(e,"store_rune_conflict",`It looks like you're using the \`$${t}\` rune, but there is a local binding called \`${t}\`. Referencing a local variable with a \`$\` prefix will create a store subscription. Please rename \`${t}\` to avoid the ambiguity\nhttps://svelte.dev/e/store_rune_conflict`)}function Ze(e){Ce(e,"attribute_avoid_is",'The "is" attribute is not supported cross-browser and should be avoided\nhttps://svelte.dev/e/attribute_avoid_is')}function et(e,t){Ce(e,"attribute_global_event_reference",`You are referencing \`globalThis.${t}\`. Did you forget to declare a variable with that name?\nhttps://svelte.dev/e/attribute_global_event_reference`)}function tt(e,t,n){Ce(e,"attribute_invalid_property_name",`'${t}' is not a valid HTML attribute. Did you mean '${n}'?\nhttps://svelte.dev/e/attribute_invalid_property_name`)}function nt(e,t){Ce(e,"node_invalid_placement_ssr",`${t}. When rendering this component on the server, the resulting HTML will be modified by the browser (by moving, removing, or inserting elements), likely resulting in a \`hydration_mismatch\` warning\nhttps://svelte.dev/e/node_invalid_placement_ssr`)}function rt(e){Ce(e,"script_unknown_attribute","Unrecognized attribute — should be one of `generics`, `lang` or `module`. If this exists for a preprocessor, ensure that the preprocessor removes it\nhttps://svelte.dev/e/script_unknown_attribute")}const st=/^\s*svelte-ignore\s/,at={"non-top-level-reactive-declaration":"reactive_declaration_invalid_placement","module-script-reactive-declaration":"reactive_declaration_module_script","empty-block":"block_empty","avoid-is":"attribute_avoid_is","invalid-html-attribute":"attribute_invalid_property_name","a11y-structure":"a11y_figcaption_parent","illegal-attribute-character":"attribute_illegal_colon","invalid-rest-eachblock-binding":"bind_invalid_each_rest","unused-export-let":"export_let_unused"},it=["a11y_accesskey","a11y_aria_activedescendant_has_tabindex","a11y_aria_attributes","a11y_autocomplete_valid","a11y_autofocus","a11y_click_events_have_key_events","a11y_consider_explicit_label","a11y_distracting_elements","a11y_figcaption_index","a11y_figcaption_parent","a11y_hidden","a11y_img_redundant_alt","a11y_incorrect_aria_attribute_type","a11y_incorrect_aria_attribute_type_boolean","a11y_incorrect_aria_attribute_type_id","a11y_incorrect_aria_attribute_type_idlist","a11y_incorrect_aria_attribute_type_integer","a11y_incorrect_aria_attribute_type_token","a11y_incorrect_aria_attribute_type_tokenlist","a11y_incorrect_aria_attribute_type_tristate","a11y_interactive_supports_focus","a11y_invalid_attribute","a11y_label_has_associated_control","a11y_media_has_caption","a11y_misplaced_role","a11y_misplaced_scope","a11y_missing_attribute","a11y_missing_content","a11y_mouse_events_have_key_events","a11y_no_abstract_role","a11y_no_interactive_element_to_noninteractive_role","a11y_no_noninteractive_element_interactions","a11y_no_noninteractive_element_to_interactive_role","a11y_no_noninteractive_tabindex","a11y_no_redundant_roles","a11y_no_static_element_interactions","a11y_positive_tabindex","a11y_role_has_required_aria_props","a11y_role_supports_aria_props","a11y_role_supports_aria_props_implicit","a11y_unknown_aria_attribute","a11y_unknown_role","legacy_code","unknown_code","options_deprecated_accessors","options_deprecated_immutable","options_missing_custom_element","options_removed_enable_sourcemap","options_removed_hydratable","options_removed_loop_guard_timeout","options_renamed_ssr_dom","export_let_unused","legacy_component_creation","non_reactive_update","perf_avoid_inline_class","perf_avoid_nested_class","reactive_declaration_invalid_placement","reactive_declaration_module_script_dependency","state_referenced_locally","store_rune_conflict","css_unused_selector","attribute_avoid_is","attribute_global_event_reference","attribute_illegal_colon","attribute_invalid_property_name","attribute_quoted","bind_invalid_each_rest","block_empty","component_name_lowercase","element_invalid_self_closing_tag","event_directive_deprecated","node_invalid_placement_ssr","script_context_deprecated","script_unknown_attribute","slot_element_deprecated","svelte_component_deprecated","svelte_element_invalid_this","svelte_self_deprecated"].concat(["state_snapshot_uncloneable","binding_property_non_reactive","hydration_attribute_changed","hydration_html_changed","ownership_invalid_binding","ownership_invalid_mutation"]);function ot(e,t,n){const r=st.exec(t);if(!r)return[];let s=r[0].length;e+=s;const a=[];if(n)for(const n of t.slice(s).matchAll(/([\w$-]+)(,)?/gm)){const t=n[1];if(it.includes(t))a.push(t);else{const r=at[t]??t.replace(/-/g,"_"),s=e+n.index,a=s+t.length;if(it.includes(r))Ue({start:s,end:a},t,r);else{ze({start:s,end:a},t,A(t,it))}}if(!n[2])break}else for(const e of t.slice(s).matchAll(/[\w$-]+/gm)){const t=e[0];if(a.push(t),!it.includes(t)){const e=at[t]??t.replace(/-/g,"_");it.includes(e)&&a.push(e)}}return a}function lt(e){const t=st.exec(e);if(!t)return e;const n=t[0].length;return e.substring(0,n)+e.substring(n).replace(/\w+-\w+(-\w+)*/g,((t,r,s)=>{let a=at[t]??t.replace(/-/g,"_");return/\w+-\w+/.test(e.substring(n+s+t.length))&&(a+=","),a}))}function ct(e){const t=e.at(0),n=e.at(-1);"Text"===t?.type&&(p.test(t.data)?t.data=t.data.replace(o,""):e.shift()),"Text"===n?.type&&(p.test(n.data)?n.data=n.data.replace(c,""):e.pop())}var pt=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239],ut=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],dt="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",ht={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"},mt="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",ft={5:mt,"5module":mt+" export import",6:mt+" const class extends export import super"},yt=/^in(stanceof)?$/,vt=new RegExp("["+dt+"]"),gt=new RegExp("["+dt+"‌‍·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function bt(e,t){for(var n=65536,r=0;re)return!1;if((n+=t[r+1])>=e)return!0}return!1}function _t(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&vt.test(String.fromCharCode(e)):!1!==t&&bt(e,ut)))}function xt(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&>.test(String.fromCharCode(e)):!1!==t&&(bt(e,ut)||bt(e,pt)))))}var wt=function(e,t){void 0===t&&(t={}),this.label=e,this.keyword=t.keyword,this.beforeExpr=!!t.beforeExpr,this.startsExpr=!!t.startsExpr,this.isLoop=!!t.isLoop,this.isAssign=!!t.isAssign,this.prefix=!!t.prefix,this.postfix=!!t.postfix,this.binop=t.binop||null,this.updateContext=null};function Ct(e,t){return new wt(e,{beforeExpr:!0,binop:t})}var kt={beforeExpr:!0},St={startsExpr:!0},Pt={};function Et(e,t){return void 0===t&&(t={}),t.keyword=e,Pt[e]=new wt(e,t)}var At={num:new wt("num",St),regexp:new wt("regexp",St),string:new wt("string",St),name:new wt("name",St),privateId:new wt("privateId",St),eof:new wt("eof"),bracketL:new wt("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new wt("]"),braceL:new wt("{",{beforeExpr:!0,startsExpr:!0}),braceR:new wt("}"),parenL:new wt("(",{beforeExpr:!0,startsExpr:!0}),parenR:new wt(")"),comma:new wt(",",kt),semi:new wt(";",kt),colon:new wt(":",kt),dot:new wt("."),question:new wt("?",kt),questionDot:new wt("?."),arrow:new wt("=>",kt),template:new wt("template"),invalidTemplate:new wt("invalidTemplate"),ellipsis:new wt("...",kt),backQuote:new wt("`",St),dollarBraceL:new wt("${",{beforeExpr:!0,startsExpr:!0}),eq:new wt("=",{beforeExpr:!0,isAssign:!0}),assign:new wt("_=",{beforeExpr:!0,isAssign:!0}),incDec:new wt("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new wt("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:Ct("||",1),logicalAND:Ct("&&",2),bitwiseOR:Ct("|",3),bitwiseXOR:Ct("^",4),bitwiseAND:Ct("&",5),equality:Ct("==/!=/===/!==",6),relational:Ct("/<=/>=",7),bitShift:Ct("<>/>>>",8),plusMin:new wt("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:Ct("%",10),star:Ct("*",10),slash:Ct("/",10),starstar:new wt("**",{beforeExpr:!0}),coalesce:Ct("??",1),_break:Et("break"),_case:Et("case",kt),_catch:Et("catch"),_continue:Et("continue"),_debugger:Et("debugger"),_default:Et("default",kt),_do:Et("do",{isLoop:!0,beforeExpr:!0}),_else:Et("else",kt),_finally:Et("finally"),_for:Et("for",{isLoop:!0}),_function:Et("function",St),_if:Et("if"),_return:Et("return",kt),_switch:Et("switch"),_throw:Et("throw",kt),_try:Et("try"),_var:Et("var"),_const:Et("const"),_while:Et("while",{isLoop:!0}),_with:Et("with"),_new:Et("new",{beforeExpr:!0,startsExpr:!0}),_this:Et("this",St),_super:Et("super",St),_class:Et("class",St),_extends:Et("extends",kt),_export:Et("export"),_import:Et("import",St),_null:Et("null",St),_true:Et("true",St),_false:Et("false",St),_in:Et("in",{beforeExpr:!0,binop:7}),_instanceof:Et("instanceof",{beforeExpr:!0,binop:7}),_typeof:Et("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:Et("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:Et("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},Tt=/\r\n?|\n|\u2028|\u2029/,$t=new RegExp(Tt.source,"g");function Rt(e){return 10===e||13===e||8232===e||8233===e}function It(e,t,n){void 0===n&&(n=e.length);for(var r=t;r>10),56320+(1023&e)))}var Ht=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,Ut=function(e,t){this.line=e,this.column=t};Ut.prototype.offset=function(e){return new Ut(this.line,this.column+e)};var zt=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function Wt(e,t){for(var n=1,r=0;;){var s=It(e,r,t);if(s<0)return new Ut(n,t-r);++n,r=s}}var Gt={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Kt=!1;function Xt(e){var t={};for(var n in Gt)t[n]=e&&Dt(e,n)?e[n]:Gt[n];if("latest"===t.ecmaVersion?t.ecmaVersion=1e8:null==t.ecmaVersion?(!Kt&&"object"==typeof console&&console.warn&&(Kt=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),t.ecmaVersion=11):t.ecmaVersion>=2015&&(t.ecmaVersion-=2009),null==t.allowReserved&&(t.allowReserved=t.ecmaVersion<5),e&&null!=e.allowHashBang||(t.allowHashBang=t.ecmaVersion>=14),jt(t.onToken)){var r=t.onToken;t.onToken=function(e){return r.push(e)}}return jt(t.onComment)&&(t.onComment=function(e,t){return function(n,r,s,a,i,o){var l={type:n?"Block":"Line",value:r,start:s,end:a};e.locations&&(l.loc=new zt(this,i,o)),e.ranges&&(l.range=[s,a]),t.push(l)}}(t,t.onComment)),t}var Jt=256;function Qt(e,t){return 2|(e?4:0)|(t?8:0)}var Yt=function(e,t,n){this.options=e=Xt(e),this.sourceFile=e.sourceFile,this.keywords=Ft(ft[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=ht[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=Ft(r);var s=(r?r+" ":"")+ht.strict;this.reservedWordsStrict=Ft(s),this.reservedWordsStrictBind=Ft(s+" "+ht.strictBind),this.input=String(t),this.containsEsc=!1,n?(this.pos=n,this.lineStart=this.input.lastIndexOf("\n",n-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(Tt).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=At.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="module"===e.sourceType,this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),0===this.pos&&e.allowHashBang&&"#!"===this.input.slice(0,2)&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(1),this.regexpState=null,this.privateNameStack=[]},Zt={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};Yt.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},Zt.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},Zt.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Zt.inAsync.get=function(){return(4&this.currentVarScope().flags)>0&&!this.currentVarScope().inClassFieldInit},Zt.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e];if(t.inClassFieldInit||t.flags&Jt)return!1;if(2&t.flags)return(4&t.flags)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},Zt.allowSuper.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(64&t)>0||n||this.options.allowSuperOutsideMethod},Zt.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},Zt.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},Zt.allowNewDotTarget.get=function(){var e=this.currentThisScope(),t=e.flags,n=e.inClassFieldInit;return(258&t)>0||n},Zt.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&Jt)>0},Yt.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r=,?^&]/.test(s)||"!"===s&&"="===this.input.charAt(r+1))}e+=t[0].length,Lt.lastIndex=e,e+=Lt.exec(this.input)[0].length,";"===this.input[e]&&e++}},en.eat=function(e){return this.type===e&&(this.next(),!0)},en.isContextual=function(e){return this.type===At.name&&this.value===e&&!this.containsEsc},en.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},en.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},en.canInsertSemicolon=function(){return this.type===At.eof||this.type===At.braceR||Tt.test(this.input.slice(this.lastTokEnd,this.start))},en.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},en.semicolon=function(){this.eat(At.semi)||this.insertSemicolon()||this.unexpected()},en.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},en.expect=function(e){this.eat(e)||this.unexpected()},en.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var nn=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};en.checkPatternErrors=function(e,t){if(e){e.trailingComma>-1&&this.raiseRecoverable(e.trailingComma,"Comma is not permitted after the rest element");var n=t?e.parenthesizedAssign:e.parenthesizedBind;n>-1&&this.raiseRecoverable(n,t?"Assigning to rvalue":"Parenthesized pattern")}},en.checkExpressionErrors=function(e,t){if(!e)return!1;var n=e.shorthandAssign,r=e.doubleProto;if(!t)return n>=0||r>=0;n>=0&&this.raise(n,"Shorthand property assignments are valid only in destructuring patterns"),r>=0&&this.raiseRecoverable(r,"Redefinition of __proto__ property")},en.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos55295&&r<56320)return!0;if(_t(r,!0)){for(var s=n+1;xt(r=this.input.charCodeAt(s),!0);)++s;if(92===r||r>55295&&r<56320)return!0;var a=this.input.slice(n,s);if(!yt.test(a))return!0}return!1},rn.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;Lt.lastIndex=this.pos;var e,t=Lt.exec(this.input),n=this.pos+t[0].length;return!(Tt.test(this.input.slice(this.pos,n))||"function"!==this.input.slice(n,n+8)||n+8!==this.input.length&&(xt(e=this.input.charCodeAt(n+8))||e>55295&&e<56320))},rn.parseStatement=function(e,t,n){var r,s=this.type,a=this.startNode();switch(this.isLet(e)&&(s=At._var,r="let"),s){case At._break:case At._continue:return this.parseBreakContinueStatement(a,s.keyword);case At._debugger:return this.parseDebuggerStatement(a);case At._do:return this.parseDoStatement(a);case At._for:return this.parseForStatement(a);case At._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(a,!1,!e);case At._class:return e&&this.unexpected(),this.parseClass(a,!0);case At._if:return this.parseIfStatement(a);case At._return:return this.parseReturnStatement(a);case At._switch:return this.parseSwitchStatement(a);case At._throw:return this.parseThrowStatement(a);case At._try:return this.parseTryStatement(a);case At._const:case At._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(a,r);case At._while:return this.parseWhileStatement(a);case At._with:return this.parseWithStatement(a);case At.braceL:return this.parseBlock(!0,a);case At.semi:return this.parseEmptyStatement(a);case At._export:case At._import:if(this.options.ecmaVersion>10&&s===At._import){Lt.lastIndex=this.pos;var i=Lt.exec(this.input),o=this.pos+i[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(a,this.parseExpression())}return this.options.allowImportExportEverywhere||(t||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),s===At._import?this.parseImport(a):this.parseExport(a,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(a,!0,!e);var c=this.value,p=this.parseExpression();return s===At.name&&"Identifier"===p.type&&this.eat(At.colon)?this.parseLabeledStatement(a,c,p,e):this.parseExpressionStatement(a,p)}},rn.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(At.semi)||this.insertSemicolon()?e.label=null:this.type!==At.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r=6?this.eat(At.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},rn.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(sn),this.enterScope(0),this.expect(At.parenL),this.type===At.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===At._var||this.type===At._const||n){var r=this.startNode(),s=n?"let":this.value;return this.next(),this.parseVar(r,!0,s),this.finishNode(r,"VariableDeclaration"),(this.type===At._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===r.declarations.length?(this.options.ecmaVersion>=9&&(this.type===At._in?t>-1&&this.unexpected(t):e.await=t>-1),this.parseForIn(e,r)):(t>-1&&this.unexpected(t),this.parseFor(e,r))}var a=this.isContextual("let"),i=!1,o=this.containsEsc,l=new nn,c=this.start,p=t>-1?this.parseExprSubscripts(l,"await"):this.parseExpression(!0,l);return this.type===At._in||(i=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===At._in&&this.unexpected(t),e.await=!0):i&&this.options.ecmaVersion>=8&&(p.start!==c||o||"Identifier"!==p.type||"async"!==p.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),a&&i&&this.raise(p.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(p,!1,l),this.checkLValPattern(p),this.parseForIn(e,p)):(this.checkExpressionErrors(l,!0),t>-1&&this.unexpected(t),this.parseFor(e,p))},rn.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,ln|(n?0:cn),!1,t)},rn.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(At._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},rn.parseReturnStatement=function(e){return this.inFunction||this.options.allowReturnOutsideFunction||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(At.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},rn.parseSwitchStatement=function(e){var t;this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(At.braceL),this.labels.push(an),this.enterScope(0);for(var n=!1;this.type!==At.braceR;)if(this.type===At._case||this.type===At._default){var r=this.type===At._case;t&&this.finishNode(t,"SwitchCase"),e.cases.push(t=this.startNode()),t.consequent=[],this.next(),r?t.test=this.parseExpression():(n&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),n=!0,t.test=null),this.expect(At.colon)}else t||this.unexpected(),t.consequent.push(this.parseStatement(null));return this.exitScope(),t&&this.finishNode(t,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(e,"SwitchStatement")},rn.parseThrowStatement=function(e){return this.next(),Tt.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),e.argument=this.parseExpression(),this.semicolon(),this.finishNode(e,"ThrowStatement")};var on=[];rn.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2),this.expect(At.parenR),e},rn.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===At._catch){var t=this.startNode();this.next(),this.eat(At.parenL)?t.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),t.param=null,this.enterScope(0)),t.body=this.parseBlock(!1),this.exitScope(),e.handler=this.finishNode(t,"CatchClause")}return e.finalizer=this.eat(At._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},rn.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},rn.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(sn),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},rn.parseWithStatement=function(e){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),e.object=this.parseParenExpression(),e.body=this.parseStatement("with"),this.finishNode(e,"WithStatement")},rn.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},rn.parseLabeledStatement=function(e,t,n,r){for(var s=0,a=this.labels;s=0;o--){var l=this.labels[o];if(l.statementStart!==e.start)break;l.statementStart=this.start,l.kind=i}return this.labels.push({name:t,kind:i,statementStart:this.start}),e.body=this.parseStatement(r?-1===r.indexOf("label")?r+"label":r:"label"),this.labels.pop(),e.label=n,this.finishNode(e,"LabeledStatement")},rn.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},rn.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(At.braceL),e&&this.enterScope(0);this.type!==At.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},rn.parseFor=function(e,t){return e.init=t,this.expect(At.semi),e.test=this.type===At.semi?null:this.parseExpression(),this.expect(At.semi),e.update=this.type===At.parenR?null:this.parseExpression(),this.expect(At.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},rn.parseForIn=function(e,t){var n=this.type===At._in;return this.next(),"VariableDeclaration"===t.type&&null!=t.declarations[0].init&&(!n||this.options.ecmaVersion<8||this.strict||"var"!==t.kind||"Identifier"!==t.declarations[0].id.type)&&this.raise(t.start,(n?"for-in":"for-of")+" loop variable declaration may not have an initializer"),e.left=t,e.right=n?this.parseExpression():this.parseMaybeAssign(),this.expect(At.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},rn.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var s=this.startNode();if(this.parseVarId(s,n),this.eat(At.eq)?s.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===At._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"Identifier"===s.id.type||t&&(this.type===At._in||this.isContextual("of"))?s.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.unexpected(),e.declarations.push(this.finishNode(s,"VariableDeclarator")),!this.eat(At.comma))break}return e},rn.parseVarId=function(e,t){e.id=this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var ln=1,cn=2;function pn(e,t){var n=t.key.name,r=e[n],s="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(s=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===s||"iset"===r&&"iget"===s||"sget"===r&&"sset"===s||"sset"===r&&"sget"===s?(e[n]="true",!1):!!r||(e[n]=s,!1)}function un(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}rn.parseFunction=function(e,t,n,r,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===At.star&&t&cn&&this.unexpected(),e.generator=this.eat(At.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&ln&&(e.id=4&t&&this.type!==At.name?null:this.parseIdent(),!e.id||t&cn||this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var a=this.yieldPos,i=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(Qt(e.async,e.generator)),t&ln||(e.id=this.type===At.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,s),this.yieldPos=a,this.awaitPos=i,this.awaitIdentPos=o,this.finishNode(e,t&ln?"FunctionDeclaration":"FunctionExpression")},rn.parseFunctionParams=function(e){this.expect(At.parenL),e.params=this.parseBindingList(At.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},rn.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),s=this.startNode(),a=!1;for(s.body=[],this.expect(At.braceL);this.type!==At.braceR;){var i=this.parseClassElement(null!==e.superClass);i&&(s.body.push(i),"MethodDefinition"===i.type&&"constructor"===i.kind?(a&&this.raiseRecoverable(i.start,"Duplicate constructor in the same class"),a=!0):i.key&&"PrivateIdentifier"===i.key.type&&pn(r,i)&&this.raiseRecoverable(i.key.start,"Identifier '#"+i.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(s,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},rn.parseClassElement=function(e){if(this.eat(At.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",s=!1,a=!1,i="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(At.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===At.star?o=!0:r="static"}if(n.static=o,!r&&t>=8&&this.eatContextual("async")&&(!this.isClassElementNameStart()&&this.type!==At.star||this.canInsertSemicolon()?r="async":a=!0),!r&&(t>=9||!a)&&this.eat(At.star)&&(s=!0),!r&&!a&&!s){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?i=l:r=l)}if(r?(n.computed=!1,n.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),n.key.name=r,this.finishNode(n.key,"Identifier")):this.parseClassElementName(n),t<13||this.type===At.parenL||"method"!==i||s||a){var c=!n.static&&un(n,"constructor"),p=c&&e;c&&"method"!==i&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=c?"constructor":i,this.parseClassMethod(n,s,a,p)}else this.parseClassField(n);return n},rn.isClassElementNameStart=function(){return this.type===At.name||this.type===At.privateId||this.type===At.num||this.type===At.string||this.type===At.bracketL||this.type.keyword},rn.parseClassElementName=function(e){this.type===At.privateId?("constructor"===this.value&&this.raise(this.start,"Classes can't have an element named '#constructor'"),e.computed=!1,e.key=this.parsePrivateIdent()):this.parsePropertyName(e)},rn.parseClassMethod=function(e,t,n,r){var s=e.key;"constructor"===e.kind?(t&&this.raise(s.start,"Constructor can't be a generator"),n&&this.raise(s.start,"Constructor can't be an async method")):e.static&&un(e,"prototype")&&this.raise(s.start,"Classes may not have a static property named prototype");var a=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==a.params.length&&this.raiseRecoverable(a.start,"getter should have no params"),"set"===e.kind&&1!==a.params.length&&this.raiseRecoverable(a.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===a.params[0].type&&this.raiseRecoverable(a.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},rn.parseClassField=function(e){if(un(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&un(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(At.eq)){var t=this.currentThisScope(),n=t.inClassFieldInit;t.inClassFieldInit=!0,e.value=this.parseMaybeAssign(),t.inClassFieldInit=n}else e.value=null;return this.semicolon(),this.finishNode(e,"PropertyDefinition")},rn.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==At.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},rn.parseClassId=function(e,t){this.type===At.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},rn.parseClassSuper=function(e){e.superClass=this.eat(At._extends)?this.parseExprSubscripts(null,!1):null},rn.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},rn.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,s=0===r?null:this.privateNameStack[r-1],a=0;a=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==At.string&&this.unexpected(),e.source=this.parseExprAtom(),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},rn.parseExport=function(e,t){if(this.next(),this.eat(At.star))return this.parseExportAllDeclaration(e,t);if(this.eat(At._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==At.string&&this.unexpected(),e.source=this.parseExprAtom();else{for(var n=0,r=e.specifiers;n=13&&this.type===At.string){var e=this.parseLiteral(this.value);return Ht.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},rn.adaptDirectivePrologue=function(e){for(var t=0;t=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var dn=Yt.prototype;dn.toAssignable=function(e,t,n){if(this.options.ecmaVersion>=6&&e)switch(e.type){case"Identifier":this.inAsync&&"await"===e.name&&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":e.type="ObjectPattern",n&&this.checkPatternErrors(n,!0);for(var r=0,s=e.properties;r=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(At._function))return this.overrideContext(mn.f_expr),this.parseFunction(this.startNodeAt(a,i),0,!1,!0,t);if(s&&!this.canInsertSemicolon()){if(this.eat(At.arrow))return this.parseArrowExpression(this.startNodeAt(a,i),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===At.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(At.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,i),[l],!0,t)}return l;case At.regexp:var c=this.value;return(r=this.parseLiteral(c.value)).regex={pattern:c.pattern,flags:c.flags},r;case At.num:case At.string:return this.parseLiteral(this.value);case At._null:case At._true:case At._false:return(r=this.startNode()).value=this.type===At._null?null:this.type===At._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case At.parenL:var p=this.start,u=this.parseParenAndDistinguishExpression(s,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=p),e.parenthesizedBind<0&&(e.parenthesizedBind=p)),u;case At.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(At.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case At.braceL:return this.overrideContext(mn.b_expr),this.parseObj(!1,e);case At._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case At._class:return this.parseClass(this.startNode(),!1);case At._new:return this.parseNew();case At.backQuote:return this.parseTemplate();case At._import:return this.options.ecmaVersion>=11?this.parseExprImport(n):this.unexpected();default:return this.parseExprAtomDefault()}},yn.parseExprAtomDefault=function(){this.unexpected()},yn.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===At.parenL&&!e)return this.parseDynamicImport(t);if(this.type===At.dot){var n=this.startNodeAt(t.start,t.loc&&t.loc.start);return n.name="import",t.meta=this.finishNode(n,"Identifier"),this.parseImportMeta(t)}this.unexpected()},yn.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),!this.eat(At.parenR)){var t=this.start;this.eat(At.comma)&&this.eat(At.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},yn.parseImportMeta=function(e){this.next();var t=this.containsEsc;return e.property=this.parseIdent(!0),"meta"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for import is 'import.meta'"),t&&this.raiseRecoverable(e.start,"'import.meta' must not contain escaped characters"),"module"===this.options.sourceType||this.options.allowImportExportEverywhere||this.raiseRecoverable(e.start,"Cannot use 'import.meta' outside a module"),this.finishNode(e,"MetaProperty")},yn.parseLiteral=function(e){var t=this.startNode();return t.value=e,t.raw=this.input.slice(this.start,this.end),110===t.raw.charCodeAt(t.raw.length-1)&&(t.bigint=t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},yn.parseParenExpression=function(){this.expect(At.parenL);var e=this.parseExpression();return this.expect(At.parenR),e},yn.shouldParseArrow=function(e){return!this.canInsertSemicolon()},yn.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,s=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var i,o=this.start,l=this.startLoc,c=[],p=!0,u=!1,d=new nn,h=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==At.parenR;){if(p?p=!1:this.expect(At.comma),a&&this.afterTrailingComma(At.parenR,!0)){u=!0;break}if(this.type===At.ellipsis){i=this.start,c.push(this.parseParenItem(this.parseRestBinding())),this.type===At.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}c.push(this.parseMaybeAssign(!1,d,this.parseParenItem))}var f=this.lastTokEnd,y=this.lastTokEndLoc;if(this.expect(At.parenR),e&&this.shouldParseArrow(c)&&this.eat(At.arrow))return this.checkPatternErrors(d,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=h,this.awaitPos=m,this.parseParenArrowList(r,s,c,t);c.length&&!u||this.unexpected(this.lastTokStart),i&&this.unexpected(i),this.checkExpressionErrors(d,!0),this.yieldPos=h||this.yieldPos,this.awaitPos=m||this.awaitPos,c.length>1?((n=this.startNodeAt(o,l)).expressions=c,this.finishNodeAt(n,"SequenceExpression",f,y)):n=c[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var v=this.startNodeAt(r,s);return v.expression=n,this.finishNode(v,"ParenthesizedExpression")}return n},yn.parseParenItem=function(e){return e},yn.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var bn=[];yn.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var e=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===At.dot){var t=this.startNodeAt(e.start,e.loc&&e.loc.start);t.name="new",e.meta=this.finishNode(t,"Identifier"),this.next();var n=this.containsEsc;return e.property=this.parseIdent(!0),"target"!==e.property.name&&this.raiseRecoverable(e.property.start,"The only valid meta property for new is 'new.target'"),n&&this.raiseRecoverable(e.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(e.start,"'new.target' can only be used in functions and class static block"),this.finishNode(e,"MetaProperty")}var r=this.start,s=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,s,!0,!1),this.eat(At.parenL)?e.arguments=this.parseExprList(At.parenR,this.options.ecmaVersion>=8,!1):e.arguments=bn,this.finishNode(e,"NewExpression")},yn.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===At.invalidTemplate?(t||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),n.value={raw:this.value.replace(/\r\n?/g,"\n"),cooked:null}):n.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,"\n"),cooked:this.value},this.next(),n.tail=this.type===At.backQuote,this.finishNode(n,"TemplateElement")},yn.parseTemplate=function(e){void 0===e&&(e={});var t=e.isTagged;void 0===t&&(t=!1);var n=this.startNode();this.next(),n.expressions=[];var r=this.parseTemplateElement({isTagged:t});for(n.quasis=[r];!r.tail;)this.type===At.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(At.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(At.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},yn.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===At.name||this.type===At.num||this.type===At.string||this.type===At.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===At.star)&&!Tt.test(this.input.slice(this.lastTokEnd,this.start))},yn.parseObj=function(e,t){var n=this.startNode(),r=!0,s={};for(n.properties=[],this.next();!this.eat(At.braceR);){if(r)r=!1;else if(this.expect(At.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(At.braceR))break;var a=this.parseProperty(e,t);e||this.checkPropClash(a,s,t),n.properties.push(a)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},yn.parseProperty=function(e,t){var n,r,s,a,i=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(At.ellipsis))return e?(i.argument=this.parseIdent(!1),this.type===At.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(i,"RestElement")):(i.argument=this.parseMaybeAssign(!1,t),this.type===At.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(i,"SpreadElement"));this.options.ecmaVersion>=6&&(i.method=!1,i.shorthand=!1,(e||t)&&(s=this.start,a=this.startLoc),e||(n=this.eat(At.star)));var o=this.containsEsc;return this.parsePropertyName(i),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(i)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(At.star),this.parsePropertyName(i)):r=!1,this.parsePropertyValue(i,e,n,r,s,a,t,o),this.finishNode(i,"Property")},yn.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1;if(e.value.params.length!==t){var n=e.value.start;"get"===e.kind?this.raiseRecoverable(n,"getter should have no params"):this.raiseRecoverable(n,"setter should have exactly one param")}else"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},yn.parsePropertyValue=function(e,t,n,r,s,a,i,o){(n||r)&&this.type===At.colon&&this.unexpected(),this.eat(At.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,i),e.kind="init"):this.options.ecmaVersion>=6&&this.type===At.parenL?(t&&this.unexpected(),e.kind="init",e.method=!0,e.value=this.parseMethod(n,r)):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===At.comma||this.type===At.braceR||this.type===At.eq?this.options.ecmaVersion>=6&&!e.computed&&"Identifier"===e.key.type?((n||r)&&this.unexpected(),this.checkUnreserved(e.key),"await"!==e.key.name||this.awaitIdentPos||(this.awaitIdentPos=s),e.kind="init",t?e.value=this.parseMaybeDefault(s,a,this.copyNode(e.key)):this.type===At.eq&&i?(i.shorthandAssign<0&&(i.shorthandAssign=this.start),e.value=this.parseMaybeDefault(s,a,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},yn.parsePropertyName=function(e){if(this.options.ecmaVersion>=6){if(this.eat(At.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(At.bracketR),e.key;e.computed=!1}return e.key=this.type===At.num||this.type===At.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},yn.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},yn.parseMethod=function(e,t,n){var r=this.startNode(),s=this.yieldPos,a=this.awaitPos,i=this.awaitIdentPos;return this.initFunction(r),this.options.ecmaVersion>=6&&(r.generator=e),this.options.ecmaVersion>=8&&(r.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|Qt(t,r.generator)|(n?128:0)),this.expect(At.parenL),r.params=this.parseBindingList(At.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=i,this.finishNode(r,"FunctionExpression")},yn.parseArrowExpression=function(e,t,n,r){var s=this.yieldPos,a=this.awaitPos,i=this.awaitIdentPos;return this.enterScope(16|Qt(n,!1)),this.initFunction(e),this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,e.params=this.toAssignableList(t,!0),this.parseFunctionBody(e,!0,!1,r),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=i,this.finishNode(e,"ArrowFunctionExpression")},yn.parseFunctionBody=function(e,t,n,r){var s=t&&this.type!==At.braceL,a=this.strict,i=!1;if(s)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);a&&!o||(i=this.strictDirective(this.end))&&o&&this.raiseRecoverable(e.start,"Illegal 'use strict' directive in function with non-simple parameter list");var l=this.labels;this.labels=[],i&&(this.strict=!0),this.checkParams(e,!a&&!i&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,i&&!a),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},yn.isSimpleParamList=function(e){for(var t=0,n=e;t-1||s.functions.indexOf(e)>-1||s.var.indexOf(e)>-1,s.lexical.push(e),this.inModule&&1&s.flags&&delete this.undefinedExports[e]}else if(4===t){this.currentScope().lexical.push(e)}else if(3===t){var a=this.currentScope();r=this.treatFunctionsAsVar?a.lexical.indexOf(e)>-1:a.lexical.indexOf(e)>-1||a.var.indexOf(e)>-1,a.functions.push(e)}else for(var i=this.scopeStack.length-1;i>=0;--i){var o=this.scopeStack[i];if(o.lexical.indexOf(e)>-1&&!(32&o.flags&&o.lexical[0]===e)||!this.treatFunctionsAsVarInScope(o)&&o.functions.indexOf(e)>-1){r=!0;break}if(o.var.push(e),this.inModule&&1&o.flags&&delete this.undefinedExports[e],259&o.flags)break}r&&this.raiseRecoverable(n,"Identifier '"+e+"' has already been declared")},xn.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},xn.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},xn.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags)return t}},xn.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(259&t.flags&&!(16&t.flags))return t}};var Cn=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new zt(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},kn=Yt.prototype;function Sn(e,t,n,r){return e.type=t,e.end=n,this.options.locations&&(e.loc.end=r),this.options.ranges&&(e.range[1]=n),e}kn.startNode=function(){return new Cn(this,this.start,this.startLoc)},kn.startNodeAt=function(e,t){return new Cn(this,e,t)},kn.finishNode=function(e,t){return Sn.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},kn.finishNodeAt=function(e,t,n,r){return Sn.call(this,e,t,n,r)},kn.copyNode=function(e){var t=new Cn(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};var Pn="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",En=Pn+" Extended_Pictographic",An=En+" EBase EComp EMod EPres ExtPict",Tn={9:Pn,10:En,11:En,12:An,13:An,14:An},$n={9:"",10:"",11:"",12:"",13:"",14:"Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji"},Rn="Cased_Letter LC Close_Punctuation Pe Connector_Punctuation Pc Control Cc cntrl Currency_Symbol Sc Dash_Punctuation Pd Decimal_Number Nd digit Enclosing_Mark Me Final_Punctuation Pf Format Cf Initial_Punctuation Pi Letter L Letter_Number Nl Line_Separator Zl Lowercase_Letter Ll Mark M Combining_Mark Math_Symbol Sm Modifier_Letter Lm Modifier_Symbol Sk Nonspacing_Mark Mn Number N Open_Punctuation Ps Other C Other_Letter Lo Other_Number No Other_Punctuation Po Other_Symbol So Paragraph_Separator Zp Private_Use Co Punctuation P punct Separator Z Space_Separator Zs Spacing_Mark Mc Surrogate Cs Symbol S Titlecase_Letter Lt Unassigned Cn Uppercase_Letter Lu",In="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",qn=In+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",Ln=qn+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",Mn=Ln+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",On=Mn+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Nn={9:In,10:qn,11:Ln,12:Mn,13:On,14:On+" Hrkt Katakana_Or_Hiragana Kawi Nag_Mundari Nagm Unknown Zzzz"},Dn={};function jn(e){var t=Dn[e]={binary:Ft(Tn[e]+" "+Rn),binaryOfStrings:Ft($n[e]),nonBinary:{General_Category:Ft(Rn),Script:Ft(Nn[e])}};t.nonBinary.Script_Extensions=t.nonBinary.Script,t.nonBinary.gc=t.nonBinary.General_Category,t.nonBinary.sc=t.nonBinary.Script,t.nonBinary.scx=t.nonBinary.Script_Extensions}for(var Bn=0,Fn=[9,10,11,12,13,14];Bn=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Dn[e.options.ecmaVersion>=14?14:e.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};function zn(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function Wn(e){return e>=65&&e<=90||e>=97&&e<=122}Un.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),s=-1!==n.indexOf("u");this.start=0|e,this.source=t+"",this.flags=n,r&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=s&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=s&&this.parser.options.ecmaVersion>=9)},Un.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},Un.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return-1;var s=n.charCodeAt(e);if(!t&&!this.switchU||s<=55295||s>=57344||e+1>=r)return s;var a=n.charCodeAt(e+1);return a>=56320&&a<=57343?(s<<10)+a-56613888:s},Un.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var s,a=n.charCodeAt(e);return!t&&!this.switchU||a<=55295||a>=57344||e+1>=r||(s=n.charCodeAt(e+1))<56320||s>57343?e+1:e+2},Un.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},Un.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},Un.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},Un.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},Un.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0,s=e;r-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===i&&(r=!0),"v"===i&&(s=!0)}this.options.ecmaVersion>=15&&r&&s&&this.raise(e.start,"Invalid regular expression flag")},Vn.validateRegExpPattern=function(e){this.regexp_pattern(e),!e.switchN&&this.options.ecmaVersion>=9&&function(e){for(var t in e)return!0;return!1}(e.groupNames)&&(e.switchN=!0,this.regexp_pattern(e))},Vn.regexp_pattern=function(e){e.pos=0,e.lastIntValue=0,e.lastStringValue="",e.lastAssertionIsQuantifiable=!1,e.numCapturingParens=0,e.maxBackReference=0,e.groupNames=Object.create(null),e.backReferenceNames.length=0,e.branchID=null,this.regexp_disjunction(e),e.pos!==e.source.length&&(e.eat(41)&&e.raise("Unmatched ')'"),(e.eat(93)||e.eat(125))&&e.raise("Lone quantifier brackets")),e.maxBackReference>e.numCapturingParens&&e.raise("Invalid escape");for(var t=0,n=e.backReferenceNames;t=16;for(t&&(e.branchID=new Hn(e.branchID,null)),this.regexp_alternative(e);e.eat(124);)t&&(e.branchID=e.branchID.sibling()),this.regexp_alternative(e);t&&(e.branchID=e.branchID.parent),this.regexp_eatQuantifier(e,!0)&&e.raise("Nothing to repeat"),e.eat(123)&&e.raise("Lone quantifier brackets")},Vn.regexp_alternative=function(e){for(;e.pos=9&&(n=e.eat(60)),e.eat(61)||e.eat(33))return this.regexp_disjunction(e),e.eat(41)||e.raise("Unterminated group"),e.lastAssertionIsQuantifiable=!n,!0}return e.pos=t,!1},Vn.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},Vn.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},Vn.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,s=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(s=e.lastIntValue),e.eat(125)))return-1!==s&&s=9?this.regexp_groupSpecifier(e):63===e.current()&&e.raise("Invalid group"),this.regexp_disjunction(e),e.eat(41))return e.numCapturingParens+=1,!0;e.raise("Unterminated group")}return!1},Vn.regexp_eatExtendedAtom=function(e){return e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)||this.regexp_eatInvalidBracedQuantifier(e)||this.regexp_eatExtendedPatternCharacter(e)},Vn.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},Vn.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!zn(t)&&(e.lastIntValue=t,e.advance(),!0)},Vn.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!zn(n);)e.advance();return e.pos!==t},Vn.regexp_eatExtendedPatternCharacter=function(e){var t=e.current();return!(-1===t||36===t||t>=40&&t<=43||46===t||63===t||91===t||94===t||124===t)&&(e.advance(),!0)},Vn.regexp_groupSpecifier=function(e){if(e.eat(63)){this.regexp_eatGroupName(e)||e.raise("Invalid group");var t=this.options.ecmaVersion>=16,n=e.groupNames[e.lastStringValue];if(n)if(t)for(var r=0,s=n;r=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return _t(e,!0)||36===e||95===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Vn.regexp_eatRegExpIdentifierPart=function(e){var t=e.pos,n=this.options.ecmaVersion>=11,r=e.current(n);return e.advance(n),92===r&&this.regexp_eatRegExpUnicodeEscapeSequence(e,n)&&(r=e.lastIntValue),function(e){return xt(e,!0)||36===e||95===e||8204===e||8205===e}(r)?(e.lastIntValue=r,!0):(e.pos=t,!1)},Vn.regexp_eatAtomEscape=function(e){return!!(this.regexp_eatBackReference(e)||this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)||e.switchN&&this.regexp_eatKGroupName(e))||(e.switchU&&(99===e.current()&&e.raise("Invalid unicode escape"),e.raise("Invalid escape")),!1)},Vn.regexp_eatBackReference=function(e){var t=e.pos;if(this.regexp_eatDecimalEscape(e)){var n=e.lastIntValue;if(e.switchU)return n>e.maxBackReference&&(e.maxBackReference=n),!0;if(n<=e.numCapturingParens)return!0;e.pos=t}return!1},Vn.regexp_eatKGroupName=function(e){if(e.eat(107)){if(this.regexp_eatGroupName(e))return e.backReferenceNames.push(e.lastStringValue),!0;e.raise("Invalid named reference")}return!1},Vn.regexp_eatCharacterEscape=function(e){return this.regexp_eatControlEscape(e)||this.regexp_eatCControlLetter(e)||this.regexp_eatZero(e)||this.regexp_eatHexEscapeSequence(e)||this.regexp_eatRegExpUnicodeEscapeSequence(e,!1)||!e.switchU&&this.regexp_eatLegacyOctalEscapeSequence(e)||this.regexp_eatIdentityEscape(e)},Vn.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},Vn.regexp_eatZero=function(e){return 48===e.current()&&!Xn(e.lookahead())&&(e.lastIntValue=0,e.advance(),!0)},Vn.regexp_eatControlEscape=function(e){var t=e.current();return 116===t?(e.lastIntValue=9,e.advance(),!0):110===t?(e.lastIntValue=10,e.advance(),!0):118===t?(e.lastIntValue=11,e.advance(),!0):102===t?(e.lastIntValue=12,e.advance(),!0):114===t&&(e.lastIntValue=13,e.advance(),!0)},Vn.regexp_eatControlLetter=function(e){var t=e.current();return!!Wn(t)&&(e.lastIntValue=t%32,e.advance(),!0)},Vn.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n,r=e.pos,s=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var a=e.lastIntValue;if(s&&a>=55296&&a<=56319){var i=e.pos;if(e.eat(92)&&e.eat(117)&&this.regexp_eatFixedHexDigits(e,4)){var o=e.lastIntValue;if(o>=56320&&o<=57343)return e.lastIntValue=1024*(a-55296)+(o-56320)+65536,!0}e.pos=i,e.lastIntValue=a}return!0}if(s&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&((n=e.lastIntValue)>=0&&n<=1114111))return!0;s&&e.raise("Invalid unicode escape"),e.pos=r}return!1},Vn.regexp_eatIdentityEscape=function(e){if(e.switchU)return!!this.regexp_eatSyntaxCharacter(e)||!!e.eat(47)&&(e.lastIntValue=47,!0);var t=e.current();return!(99===t||e.switchN&&107===t)&&(e.lastIntValue=t,e.advance(),!0)},Vn.regexp_eatDecimalEscape=function(e){e.lastIntValue=0;var t=e.current();if(t>=49&&t<=57){do{e.lastIntValue=10*e.lastIntValue+(t-48),e.advance()}while((t=e.current())>=48&&t<=57);return!0}return!1};function Gn(e){return Wn(e)||95===e}function Kn(e){return Gn(e)||Xn(e)}function Xn(e){return e>=48&&e<=57}function Jn(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function Qn(e){return e>=65&&e<=70?e-65+10:e>=97&&e<=102?e-97+10:e-48}function Yn(e){return e>=48&&e<=55}Vn.regexp_eatCharacterClassEscape=function(e){var t=e.current();if(function(e){return 100===e||68===e||115===e||83===e||119===e||87===e}(t))return e.lastIntValue=-1,e.advance(),1;var n=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((n=80===t)||112===t)){var r;if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(r=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return n&&2===r&&e.raise("Invalid property name"),r;e.raise("Invalid property name")}return 0},Vn.regexp_eatUnicodePropertyValueExpression=function(e){var t=e.pos;if(this.regexp_eatUnicodePropertyName(e)&&e.eat(61)){var n=e.lastStringValue;if(this.regexp_eatUnicodePropertyValue(e)){var r=e.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(e,n,r),1}}if(e.pos=t,this.regexp_eatLoneUnicodePropertyNameOrValue(e)){var s=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,s)}return 0},Vn.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){Dt(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},Vn.regexp_validateUnicodePropertyNameOrValue=function(e,t){return e.unicodeProperties.binary.test(t)?1:e.switchV&&e.unicodeProperties.binaryOfStrings.test(t)?2:void e.raise("Invalid property name")},Vn.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";Gn(t=e.current());)e.lastStringValue+=Vt(t),e.advance();return""!==e.lastStringValue},Vn.regexp_eatUnicodePropertyValue=function(e){var t=0;for(e.lastStringValue="";Kn(t=e.current());)e.lastStringValue+=Vt(t),e.advance();return""!==e.lastStringValue},Vn.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},Vn.regexp_eatCharacterClass=function(e){if(e.eat(91)){var t=e.eat(94),n=this.regexp_classContents(e);return e.eat(93)||e.raise("Unterminated character class"),t&&2===n&&e.raise("Negated character class may contain strings"),!0}return!1},Vn.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},Vn.regexp_nonEmptyClassRanges=function(e){for(;this.regexp_eatClassAtom(e);){var t=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassAtom(e)){var n=e.lastIntValue;!e.switchU||-1!==t&&-1!==n||e.raise("Invalid character class"),-1!==t&&-1!==n&&t>n&&e.raise("Range out of order in character class")}}},Vn.regexp_eatClassAtom=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatClassEscape(e))return!0;if(e.switchU){var n=e.current();(99===n||Yn(n))&&e.raise("Invalid class escape"),e.raise("Invalid escape")}e.pos=t}var r=e.current();return 93!==r&&(e.lastIntValue=r,e.advance(),!0)},Vn.regexp_eatClassEscape=function(e){var t=e.pos;if(e.eat(98))return e.lastIntValue=8,!0;if(e.switchU&&e.eat(45))return e.lastIntValue=45,!0;if(!e.switchU&&e.eat(99)){if(this.regexp_eatClassControlLetter(e))return!0;e.pos=t}return this.regexp_eatCharacterClassEscape(e)||this.regexp_eatCharacterEscape(e)},Vn.regexp_classSetExpression=function(e){var t,n=1;if(this.regexp_eatClassSetRange(e));else if(t=this.regexp_eatClassSetOperand(e)){2===t&&(n=2);for(var r=e.pos;e.eatChars([38,38]);)38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))?2!==t&&(n=1):e.raise("Invalid character in character class");if(r!==e.pos)return n;for(;e.eatChars([45,45]);)this.regexp_eatClassSetOperand(e)||e.raise("Invalid character in character class");if(r!==e.pos)return n}else e.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(e)){if(!(t=this.regexp_eatClassSetOperand(e)))return n;2===t&&(n=2)}},Vn.regexp_eatClassSetRange=function(e){var t=e.pos;if(this.regexp_eatClassSetCharacter(e)){var n=e.lastIntValue;if(e.eat(45)&&this.regexp_eatClassSetCharacter(e)){var r=e.lastIntValue;return-1!==n&&-1!==r&&n>r&&e.raise("Range out of order in character class"),!0}e.pos=t}return!1},Vn.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},Vn.regexp_eatNestedClass=function(e){var t=e.pos;if(e.eat(91)){var n=e.eat(94),r=this.regexp_classContents(e);if(e.eat(93))return n&&2===r&&e.raise("Negated character class may contain strings"),r;e.pos=t}if(e.eat(92)){var s=this.regexp_eatCharacterClassEscape(e);if(s)return s;e.pos=t}return null},Vn.regexp_eatClassStringDisjunction=function(e){var t=e.pos;if(e.eatChars([92,113])){if(e.eat(123)){var n=this.regexp_classStringDisjunctionContents(e);if(e.eat(125))return n}else e.raise("Invalid escape");e.pos=t}return null},Vn.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},Vn.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},Vn.regexp_eatClassSetCharacter=function(e){var t=e.pos;if(e.eat(92))return!(!this.regexp_eatCharacterEscape(e)&&!this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=t,!1));var n=e.current();return!(n<0||n===e.lookahead()&&function(e){return 33===e||e>=35&&e<=38||e>=42&&e<=44||46===e||e>=58&&e<=64||94===e||96===e||126===e}(n))&&(!function(e){return 40===e||41===e||45===e||47===e||e>=91&&e<=93||e>=123&&e<=125}(n)&&(e.advance(),e.lastIntValue=n,!0))},Vn.regexp_eatClassSetReservedPunctuator=function(e){var t=e.current();return!!function(e){return 33===e||35===e||37===e||38===e||44===e||45===e||e>=58&&e<=62||64===e||96===e||126===e}(t)&&(e.lastIntValue=t,e.advance(),!0)},Vn.regexp_eatClassControlLetter=function(e){var t=e.current();return!(!Xn(t)&&95!==t)&&(e.lastIntValue=t%32,e.advance(),!0)},Vn.regexp_eatHexEscapeSequence=function(e){var t=e.pos;if(e.eat(120)){if(this.regexp_eatFixedHexDigits(e,2))return!0;e.switchU&&e.raise("Invalid escape"),e.pos=t}return!1},Vn.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Xn(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},Vn.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;Jn(n=e.current());)e.lastIntValue=16*e.lastIntValue+Qn(n),e.advance();return e.pos!==t},Vn.regexp_eatLegacyOctalEscapeSequence=function(e){if(this.regexp_eatOctalDigit(e)){var t=e.lastIntValue;if(this.regexp_eatOctalDigit(e)){var n=e.lastIntValue;t<=3&&this.regexp_eatOctalDigit(e)?e.lastIntValue=64*t+8*n+e.lastIntValue:e.lastIntValue=8*t+n}else e.lastIntValue=t;return!0}return!1},Vn.regexp_eatOctalDigit=function(e){var t=e.current();return Yn(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},Vn.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r=this.input.length?this.finishToken(At.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},er.readToken=function(e){return _t(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},er.fullCharCodeAtPos=function(){var e=this.input.charCodeAt(this.pos);if(e<=55295||e>=56320)return e;var t=this.input.charCodeAt(this.pos+1);return t<=56319||t>=57344?e:(e<<10)+t-56613888},er.skipBlockComment=function(){var e=this.options.onComment&&this.curPosition(),t=this.pos,n=this.input.indexOf("*/",this.pos+=2);if(-1===n&&this.raise(this.pos-2,"Unterminated comment"),this.pos=n+2,this.options.locations)for(var r=void 0,s=t;(r=It(this.input,s,this.pos))>-1;)++this.curLine,s=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},er.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos8&&e<14||e>=5760&&qt.test(String.fromCharCode(e))))break e;++this.pos}}},er.finishToken=function(e,t){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var n=this.type;this.type=e,this.value=t,this.updateContext(n)},er.readToken_dot=function(){var e=this.input.charCodeAt(this.pos+1);if(e>=48&&e<=57)return this.readNumber(!0);var t=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&46===e&&46===t?(this.pos+=3,this.finishToken(At.ellipsis)):(++this.pos,this.finishToken(At.dot))},er.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(At.assign,2):this.finishOp(At.slash,1)},er.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?At.star:At.modulo;return this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=At.starstar,t=this.input.charCodeAt(this.pos+2)),61===t?this.finishOp(At.assign,n+1):this.finishOp(r,n)},er.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e){if(this.options.ecmaVersion>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(At.assign,3);return this.finishOp(124===e?At.logicalOR:At.logicalAND,2)}return 61===t?this.finishOp(At.assign,2):this.finishOp(124===e?At.bitwiseOR:At.bitwiseAND,1)},er.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(At.assign,2):this.finishOp(At.bitwiseXOR,1)},er.readToken_plus_min=function(e){var t=this.input.charCodeAt(this.pos+1);return t===e?45!==t||this.inModule||62!==this.input.charCodeAt(this.pos+2)||0!==this.lastTokEnd&&!Tt.test(this.input.slice(this.lastTokEnd,this.pos))?this.finishOp(At.incDec,2):(this.skipLineComment(3),this.skipSpace(),this.nextToken()):61===t?this.finishOp(At.assign,2):this.finishOp(At.plusMin,1)},er.readToken_lt_gt=function(e){var t=this.input.charCodeAt(this.pos+1),n=1;return t===e?(n=62===e&&62===this.input.charCodeAt(this.pos+2)?3:2,61===this.input.charCodeAt(this.pos+n)?this.finishOp(At.assign,n+1):this.finishOp(At.bitShift,n)):33!==t||60!==e||this.inModule||45!==this.input.charCodeAt(this.pos+2)||45!==this.input.charCodeAt(this.pos+3)?(61===t&&(n=2),this.finishOp(At.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},er.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(At.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(At.arrow)):this.finishOp(61===e?At.eq:At.prefix,1)},er.readToken_question=function(){var e=this.options.ecmaVersion;if(e>=11){var t=this.input.charCodeAt(this.pos+1);if(46===t){var n=this.input.charCodeAt(this.pos+2);if(n<48||n>57)return this.finishOp(At.questionDot,2)}if(63===t){if(e>=12)if(61===this.input.charCodeAt(this.pos+2))return this.finishOp(At.assign,3);return this.finishOp(At.coalesce,2)}}return this.finishOp(At.question,1)},er.readToken_numberSign=function(){var e=35;if(this.options.ecmaVersion>=13&&(++this.pos,_t(e=this.fullCharCodeAtPos(),!0)||92===e))return this.finishToken(At.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+Vt(e)+"'")},er.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(At.parenL);case 41:return++this.pos,this.finishToken(At.parenR);case 59:return++this.pos,this.finishToken(At.semi);case 44:return++this.pos,this.finishToken(At.comma);case 91:return++this.pos,this.finishToken(At.bracketL);case 93:return++this.pos,this.finishToken(At.bracketR);case 123:return++this.pos,this.finishToken(At.braceL);case 125:return++this.pos,this.finishToken(At.braceR);case 58:return++this.pos,this.finishToken(At.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(At.backQuote);case 48:var t=this.input.charCodeAt(this.pos+1);if(120===t||88===t)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(111===t||79===t)return this.readRadixNumber(8);if(98===t||66===t)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(At.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+Vt(e)+"'")},er.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},er.readRegexp=function(){for(var e,t,n=this.pos;;){this.pos>=this.input.length&&this.raise(n,"Unterminated regular expression");var r=this.input.charAt(this.pos);if(Tt.test(r)&&this.raise(n,"Unterminated regular expression"),e)e=!1;else{if("["===r)t=!0;else if("]"===r&&t)t=!1;else if("/"===r&&!t)break;e="\\"===r}++this.pos}var s=this.input.slice(n,this.pos);++this.pos;var a=this.pos,i=this.readWord1();this.containsEsc&&this.unexpected(a);var o=this.regexpState||(this.regexpState=new Un(this));o.reset(n,s,i),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(s,i)}catch(e){}return this.finishToken(At.regexp,{pattern:s,flags:i,value:l})},er.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,s=n&&48===this.input.charCodeAt(this.pos),a=this.pos,i=0,o=0,l=0,c=null==t?1/0:t;l=97?p-97+10:p>=65?p-65+10:p>=48&&p<=57?p-48:1/0)>=e)break;o=p,i=i*e+u}}return r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===a||null!=t&&this.pos-a!==t?null:i},er.readRadixNumber=function(e){var t=this.pos;this.pos+=2;var n=this.readInt(e);return null==n&&this.raise(this.start+2,"Expected number in radix "+e),this.options.ecmaVersion>=11&&110===this.input.charCodeAt(this.pos)?(n=tr(this.input.slice(t,this.pos)),++this.pos):_t(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(At.num,n)},er.readNumber=function(e){var t=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(t,"Invalid number");var n=this.pos-t>=2&&48===this.input.charCodeAt(t);n&&this.strict&&this.raise(t,"Invalid number");var r=this.input.charCodeAt(this.pos);if(!n&&!e&&this.options.ecmaVersion>=11&&110===r){var s=tr(this.input.slice(t,this.pos));return++this.pos,_t(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(At.num,s)}n&&/[89]/.test(this.input.slice(t,this.pos))&&(n=!1),46!==r||n||(++this.pos,this.readInt(10),r=this.input.charCodeAt(this.pos)),69!==r&&101!==r||n||(43!==(r=this.input.charCodeAt(++this.pos))&&45!==r||++this.pos,null===this.readInt(10)&&this.raise(t,"Invalid number")),_t(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a,i=(a=this.input.slice(t,this.pos),n?parseInt(a,8):parseFloat(a.replace(/_/g,"")));return this.finishToken(At.num,i)},er.readCodePoint=function(){var e;if(123===this.input.charCodeAt(this.pos)){this.options.ecmaVersion<6&&this.unexpected();var t=++this.pos;e=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,e>1114111&&this.invalidStringToken(t,"Code point out of bounds")}else e=this.readHexChar(4);return e},er.readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;92===r?(t+=this.input.slice(n,this.pos),t+=this.readEscapedChar(!1),n=this.pos):8232===r||8233===r?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(Rt(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(At.string,t)};var nr={};er.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e!==nr)throw e;this.readInvalidTemplateToken()}this.inTemplateElement=!1},er.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw nr;this.raise(e,t)},er.readTmplToken=function(){for(var e="",t=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var n=this.input.charCodeAt(this.pos);if(96===n||36===n&&123===this.input.charCodeAt(this.pos+1))return this.pos!==this.start||this.type!==At.template&&this.type!==At.invalidTemplate?(e+=this.input.slice(t,this.pos),this.finishToken(At.template,e)):36===n?(this.pos+=2,this.finishToken(At.dollarBraceL)):(++this.pos,this.finishToken(At.backQuote));if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(Rt(n)){switch(e+=this.input.slice(t,this.pos),++this.pos,n){case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:e+="\n";break;default:e+=String.fromCharCode(n)}this.options.locations&&(++this.curLine,this.lineStart=this.pos),t=this.pos}else++this.pos}},er.readInvalidTemplateToken=function(){for(;this.pos=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],s=parseInt(r,8);return s>255&&(r=r.slice(0,-1),s=parseInt(r,8)),this.pos+=r.length-1,t=this.input.charCodeAt(this.pos),"0"===r&&56!==t&&57!==t||!this.strict&&!e||this.invalidStringToken(this.pos-1-r.length,e?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(s)}return Rt(t)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(t)}},er.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},er.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pose.length)&&(t=e.length);for(var n=0,r=new Array(t);n=e.length?{done:!0}:{done:!1,value:e[r++]}}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var ur=!0;function dr(e,t){return void 0===t&&(t={}),new wt("name",t)}var hr=new WeakMap;function mr(e){var t=hr.get(e.Parser.acorn||e);if(!t){var n={assert:dr(0,{startsExpr:ur}),asserts:dr(0,{startsExpr:ur}),global:dr(0,{startsExpr:ur}),keyof:dr(0,{startsExpr:ur}),readonly:dr(0,{startsExpr:ur}),unique:dr(0,{startsExpr:ur}),abstract:dr(0,{startsExpr:ur}),declare:dr(0,{startsExpr:ur}),enum:dr(0,{startsExpr:ur}),module:dr(0,{startsExpr:ur}),namespace:dr(0,{startsExpr:ur}),interface:dr(0,{startsExpr:ur}),type:dr(0,{startsExpr:ur})},r={at:new wt("@"),jsxName:new wt("jsxName"),jsxText:new wt("jsxText",{beforeExpr:!0}),jsxTagStart:new wt("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new wt("jsxTagEnd")},s={tc_oTag:new hn("...",!0,!0)},a=new RegExp("^(?:"+Object.keys(n).join("|")+")$");r.jsxTagStart.updateContext=function(){this.context.push(s.tc_expr),this.context.push(s.tc_oTag),this.exprAllowed=!1},r.jsxTagEnd.updateContext=function(e){var t=this.context.pop();t===s.tc_oTag&&e===At.slash||t===s.tc_cTag?(this.context.pop(),this.exprAllowed=this.curContext()===s.tc_expr):this.exprAllowed=!0},t={tokTypes:ir({},n,r),tokContexts:ir({},s),keywordsRegExp:a,tokenIsLiteralPropertyName:function(e){return[At.name,At.string,At.num].concat(Object.values(Pt),Object.values(n)).includes(e)},tokenIsKeywordOrIdentifier:function(e){return[At.name].concat(Object.values(Pt),Object.values(n)).includes(e)},tokenIsIdentifier:function(e){return[].concat(Object.values(n),[At.name]).includes(e)},tokenIsTSDeclarationStart:function(e){return[n.abstract,n.declare,n.enum,n.module,n.namespace,n.interface,n.type].includes(e)},tokenIsTSTypeOperator:function(e){return[n.keyof,n.readonly,n.unique].includes(e)},tokenIsTemplate:function(e){return e===At.invalidTemplate}}}return t}var fr=1024,yr=new RegExp("(?:[^\\S\\n\\r\\u2028\\u2029]|\\/\\/.*|\\/\\*.*?\\*\\/)*","y"),vr=new RegExp("(?=("+yr.source+"))\\1"+/(?=[\n\r\u2028\u2029]|\/\*(?!.*?\*\/)|$)/.source,"y"),gr=function(){this.shorthandAssign=void 0,this.trailingComma=void 0,this.parenthesizedAssign=void 0,this.parenthesizedBind=void 0,this.doubleProto=void 0,this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};function br(e,t){var n=t.key.name,r=e[n],s="true";return"MethodDefinition"!==t.type||"get"!==t.kind&&"set"!==t.kind||(s=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===s||"iset"===r&&"iget"===s||"sget"===r&&"sset"===s||"sset"===r&&"sget"===s?(e[n]="true",!1):!!r||(e[n]=s,!1)}function _r(e,t){var n=e.key;return!e.computed&&("Identifier"===n.type&&n.name===t||"Literal"===n.type&&n.value===t)}var xr={AbstractMethodHasImplementation:function(e){return"Method '"+e.methodName+"' cannot have an implementation because it is marked abstract."},AbstractPropertyHasInitializer:function(e){return"Property '"+e.propertyName+"' cannot have an initializer because it is marked abstract."},AccesorCannotDeclareThisParameter:"'get' and 'set' accessors cannot declare 'this' parameters.",AccesorCannotHaveTypeParameters:"An accessor cannot have type parameters.",CannotFindName:function(e){return"Cannot find name '"+e.name+"'."},ClassMethodHasDeclare:"Class methods cannot have the 'declare' modifier.",ClassMethodHasReadonly:"Class methods cannot have the 'readonly' modifier.",ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference:"A 'const' initializer in an ambient context must be a string or numeric literal or literal enum reference.",ConstructorHasTypeParameters:"Type parameters cannot appear on a constructor declaration.",DeclareAccessor:function(e){return"'declare' is not allowed in "+e.kind+"ters."},DeclareClassFieldHasInitializer:"Initializers are not allowed in ambient contexts.",DeclareFunctionHasImplementation:"An implementation cannot be declared in ambient contexts.",DuplicateAccessibilityModifier:function(){return"Accessibility modifier already seen."},DuplicateModifier:function(e){return"Duplicate modifier: '"+e.modifier+"'."},EmptyHeritageClauseType:function(e){return"'"+e.token+"' list cannot be empty."},EmptyTypeArguments:"Type argument list cannot be empty.",EmptyTypeParameters:"Type parameter list cannot be empty.",ExpectedAmbientAfterExportDeclare:"'export declare' must be followed by an ambient declaration.",ImportAliasHasImportType:"An import alias can not use 'import type'.",IncompatibleModifiers:function(e){var t=e.modifiers;return"'"+t[0]+"' modifier cannot be used with '"+t[1]+"' modifier."},IndexSignatureHasAbstract:"Index signatures cannot have the 'abstract' modifier.",IndexSignatureHasAccessibility:function(e){return"Index signatures cannot have an accessibility modifier ('"+e.modifier+"')."},IndexSignatureHasDeclare:"Index signatures cannot have the 'declare' modifier.",IndexSignatureHasOverride:"'override' modifier cannot appear on an index signature.",IndexSignatureHasStatic:"Index signatures cannot have the 'static' modifier.",InitializerNotAllowedInAmbientContext:"Initializers are not allowed in ambient contexts.",InvalidModifierOnTypeMember:function(e){return"'"+e.modifier+"' modifier cannot appear on a type member."},InvalidModifierOnTypeParameter:function(e){return"'"+e.modifier+"' modifier cannot appear on a type parameter."},InvalidModifierOnTypeParameterPositions:function(e){return"'"+e.modifier+"' modifier can only appear on a type parameter of a class, interface or type alias."},InvalidModifiersOrder:function(e){var t=e.orderedModifiers;return"'"+t[0]+"' modifier must precede '"+t[1]+"' modifier."},InvalidPropertyAccessAfterInstantiationExpression:"Invalid property access after an instantiation expression. You can either wrap the instantiation expression in parentheses, or delete the type arguments.",InvalidTupleMemberLabel:"Tuple members must be labeled with a simple identifier.",MissingInterfaceName:"'interface' declarations must be followed by an identifier.",MixedLabeledAndUnlabeledElements:"Tuple members must all have names or all not have names.",NonAbstractClassHasAbstractMethod:"Abstract methods can only appear within an abstract class.",NonClassMethodPropertyHasAbstractModifer:"'abstract' modifier can only appear on a class, method, or property declaration.",OptionalTypeBeforeRequired:"A required element cannot follow an optional element.",OverrideNotInSubClass:"This member cannot have an 'override' modifier because its containing class does not extend another class.",PatternIsOptional:"A binding pattern parameter cannot be optional in an implementation signature.",PrivateElementHasAbstract:"Private elements cannot have the 'abstract' modifier.",PrivateElementHasAccessibility:function(e){return"Private elements cannot have an accessibility modifier ('"+e.modifier+"')."},PrivateMethodsHasAccessibility:function(e){return"Private methods cannot have an accessibility modifier ('"+e.modifier+"')."},ReadonlyForMethodSignature:"'readonly' modifier can only appear on a property declaration or index signature.",ReservedArrowTypeParam:"This syntax is reserved in files with the .mts or .cts extension. Add a trailing comma, as in `() => ...`.",ReservedTypeAssertion:"This syntax is reserved in files with the .mts or .cts extension. Use an `as` expression instead.",SetAccesorCannotHaveOptionalParameter:"A 'set' accessor cannot have an optional parameter.",SetAccesorCannotHaveRestParameter:"A 'set' accessor cannot have rest parameter.",SetAccesorCannotHaveReturnType:"A 'set' accessor cannot have a return type annotation.",SingleTypeParameterWithoutTrailingComma:function(e){var t=e.typeParameterName;return"Single type parameter "+t+" should have a trailing comma. Example usage: <"+t+",>."},StaticBlockCannotHaveModifier:"Static class blocks cannot have any modifier.",TypeAnnotationAfterAssign:"Type annotations must come before default assignments, e.g. instead of `age = 25: number` use `age: number = 25`.",TypeImportCannotSpecifyDefaultAndNamed:"A type-only import can specify a default import or named bindings, but not both.",TypeModifierIsUsedInTypeExports:"The 'type' modifier cannot be used on a named export when 'export type' is used on its export statement.",TypeModifierIsUsedInTypeImports:"The 'type' modifier cannot be used on a named import when 'import type' is used on its import statement.",UnexpectedParameterModifier:"A parameter property is only allowed in a constructor implementation.",UnexpectedReadonly:"'readonly' type modifier is only permitted on array and tuple literal types.",GenericsEndWithComma:"Trailing comma is not allowed at the end of generics.",UnexpectedTypeAnnotation:"Did not expect a type annotation here.",UnexpectedTypeCastInParameter:"Unexpected type cast in parameter position.",UnsupportedImportTypeArgument:"Argument in a type import must be a string literal.",UnsupportedParameterPropertyKind:"A parameter property may not be declared using a binding pattern.",UnsupportedSignatureParameterKind:function(e){return"Name in a signature must be an Identifier, ObjectPattern or ArrayPattern, instead got "+e.type+"."},LetInLexicalBinding:"'let' is not allowed to be used as a name in 'let' or 'const' declarations."},wr={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"­",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"‌",zwj:"‍",lrm:"‎",rlm:"‏",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"},Cr=/^[\da-fA-F]+$/,kr=/^\d+$/;function Sr(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?Sr(e.object)+"."+Sr(e.property):void 0:e}var Pr=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g;function Er(e){if(!e)throw new Error("Assert fail")}function Ar(e){return"accessor"===e}function Tr(e){return"in"===e||"out"===e}function $r(e,t){return 2|(e?4:0)|(t?8:0)}function Rr(e){if("MemberExpression"!==e.type)return!1;var t=e.property;return(!e.computed||!("TemplateLiteral"!==t.type||t.expressions.length>0))&&Ir(e.object)}function Ir(e){return"Identifier"===e.type||"MemberExpression"===e.type&&!e.computed&&Ir(e.object)}function qr(e){return"private"===e||"public"===e||"protected"===e}const Lr=Yt.extend(function(e){var t=e||{},n=t.dts,r=void 0!==n&&n,s=t.allowSatisfies,a=void 0!==s&&s;return function(t){var n=t.acorn||sr,s=mr(n),i=n.tokTypes,o=n.keywordTypes,l=n.isIdentifierStart,c=n.lineBreak,p=n.isNewLine,u=n.tokContexts,d=n.isIdentifierChar,h=s.tokTypes,m=s.tokContexts,f=s.keywordsRegExp,y=s.tokenIsLiteralPropertyName,v=s.tokenIsTemplate,g=s.tokenIsTSDeclarationStart,b=s.tokenIsIdentifier,_=s.tokenIsKeywordOrIdentifier,x=s.tokenIsTSTypeOperator;function w(e,t,n){void 0===n&&(n=e.length);for(var r=t;r=this.input.length&&this.raise(this.start,"Unterminated JSX contents");var n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:return this.pos===this.start?60===n&&this.exprAllowed?(++this.pos,this.finishToken(a.jsxTagStart)):this.getTokenFromCode(n):(e+=this.input.slice(t,this.pos),this.finishToken(a.jsxText,e));case 38:e+=this.input.slice(t,this.pos),e+=this.jsx_readEntity(),t=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(62===n?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:i(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}},n.jsx_readNewLine=function(e){var t,n=this.input.charCodeAt(this.pos);return++this.pos,13===n&&10===this.input.charCodeAt(this.pos)?(++this.pos,t=e?"\n":"\r\n"):t=String.fromCharCode(n),this.options.locations&&(++this.curLine,this.lineStart=this.pos),t},n.jsx_readString=function(e){for(var t="",n=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var r=this.input.charCodeAt(this.pos);if(r===e)break;38===r?(t+=this.input.slice(n,this.pos),t+=this.jsx_readEntity(),n=this.pos):i(r)?(t+=this.input.slice(n,this.pos),t+=this.jsx_readNewLine(!1),n=this.pos):++this.pos}return t+=this.input.slice(n,this.pos++),this.finishToken(s.string,t)},n.jsx_readEntity=function(){var e,t="",n=0,r=this.input[this.pos];"&"!==r&&this.raise(this.pos,"Entity must start with an ampersand");for(var s=++this.pos;this.pos")}var l=i.name?"Element":"Fragment";return n["opening"+l]=i,n["closing"+l]=o,n.children=r,this.type===s.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+l)},n.jsx_parseText=function(){var e=this.parseLiteral(this.value);return e.type="JSXText",e},n.jsx_parseElement=function(){var e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)},t}(n)}(n,s,t,null==e?void 0:e.jsx),t=function(e,t,n){var r=t.tokTypes,s=n.tokTypes;return function(e){function t(){return e.apply(this,arguments)||this}or(t,e);var n=t.prototype;return n.parseMaybeImportAttributes=function(e){if(this.type===s._with||this.type===r.assert){this.next();var t=this.parseImportAttributes();t&&(e.attributes=t)}},n.parseImportAttributes=function(){this.expect(s.braceL);var e=this.parseWithEntries();return this.expect(s.braceR),e},n.parseWithEntries=function(){var e=[],t=new Set;do{if(this.type===s.braceR)break;var n,r=this.startNode();n=this.type===s.string?this.parseLiteral(this.value):this.parseIdent(!0),this.next(),r.key=n,t.has(r.key.name)&&this.raise(this.pos,"Duplicated key in attributes"),t.add(r.key.name),this.type!==s.string&&this.raise(this.pos,"Only string is supported as an attribute value"),r.value=this.parseLiteral(this.value),e.push(this.finishNode(r,"ImportAttribute"))}while(this.eat(s.comma));return e},t}(e)}(t,s,n);var C=function(e){function t(t,n,r){var s;return(s=e.call(this,t,n,r)||this).preValue=null,s.preToken=null,s.isLookahead=!1,s.isAmbientContext=!1,s.inAbstractClass=!1,s.inType=!1,s.inDisallowConditionalTypesContext=!1,s.maybeInArrowParameters=!1,s.shouldParseArrowReturnType=void 0,s.shouldParseAsyncArrowReturnType=void 0,s.decoratorStack=[[]],s.importsStack=[[]],s.importOrExportOuterKind=void 0,s.tsParseConstModifier=s.tsParseModifiers.bind(function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(s),{allowedModifiers:["const"],disallowedModifiers:["in","out"],errorTemplate:xr.InvalidModifierOnTypeParameterPositions}),s}or(t,e);var C,k,S,P=t.prototype;return P.getTokenFromCodeInType=function(t){return 62===t||60===t?this.finishOp(i.relational,1):e.prototype.getTokenFromCode.call(this,t)},P.readToken=function(t){if(!this.inType){var n=this.curContext();if(n===m.tc_expr)return this.jsx_readToken();if(n===m.tc_oTag||n===m.tc_cTag){if(l(t))return this.jsx_readWord();if(62==t)return++this.pos,this.finishToken(h.jsxTagEnd);if((34===t||39===t)&&n==m.tc_oTag)return this.jsx_readString(t)}if(60===t&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1))return++this.pos,this.finishToken(h.jsxTagStart)}return e.prototype.readToken.call(this,t)},P.getTokenFromCode=function(t){return this.inType?this.getTokenFromCodeInType(t):64===t?(++this.pos,this.finishToken(h.at)):e.prototype.getTokenFromCode.call(this,t)},P.isAbstractClass=function(){return this.ts_isContextual(h.abstract)&&this.lookahead().type===i._class},P.finishNode=function(t,n){return""!==t.type&&0!==t.end?t:e.prototype.finishNode.call(this,t,n)},P.tryParse=function(e,t){void 0===t&&(t=this.cloneCurLookaheadState());var n={node:null};try{return{node:e((function(e){throw void 0===e&&(e=null),n.node=e,n})),error:null,thrown:!1,aborted:!1,failState:null}}catch(e){var r=this.getCurLookaheadState();if(this.setLookaheadState(t),e instanceof SyntaxError)return{node:null,error:e,thrown:!0,aborted:!1,failState:r};if(e===n)return{node:n.node,error:null,thrown:!1,aborted:!0,failState:r};throw e}},P.setOptionalParametersError=function(e,t){var n;e.optionalParametersLoc=null!=(n=null==t?void 0:t.loc)?n:this.startLoc},P.reScan_lt_gt=function(){this.type===i.relational&&(this.pos-=1,this.readToken_lt_gt(this.fullCharCodeAtPos()))},P.reScan_lt=function(){var e=this.type;return e===i.bitShift?(this.pos-=2,this.finishOp(i.relational,1),i.relational):e},P.resetEndLocation=function(e,t){void 0===t&&(t=this.lastTokEndLoc),e.end=t.column,e.loc.end=t,this.options.ranges&&(e.range[1]=t.column)},P.startNodeAtNode=function(t){return e.prototype.startNodeAt.call(this,t.start,t.loc.start)},P.nextTokenStart=function(){return this.nextTokenStartSince(this.pos)},P.tsHasSomeModifiers=function(e,t){return t.some((function(t){return qr(t)?e.accessibility===t:!!e[t]}))},P.tsIsStartOfStaticBlocks=function(){return this.isContextual("static")&&123===this.lookaheadCharCode()},P.tsCheckForInvalidTypeCasts=function(e){var t=this;e.forEach((function(e){"TSTypeCastExpression"===(null==e?void 0:e.type)&&t.raise(e.typeAnnotation.start,xr.UnexpectedTypeAnnotation)}))},P.atPossibleAsyncArrow=function(e){return"Identifier"===e.type&&"async"===e.name&&this.lastTokEndLoc.column===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&e.start===this.potentialArrowAt},P.tsIsIdentifier=function(){return b(this.type)},P.tsTryParseTypeOrTypePredicateAnnotation=function(){return this.match(i.colon)?this.tsParseTypeOrTypePredicateAnnotation(i.colon):void 0},P.tsTryParseGenericAsyncArrowFunction=function(t,n,r){var s=this;if(this.tsMatchLeftRelational()){var a=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var o=this.tsTryParseAndCatch((function(){var r=s.startNodeAt(t,n);return r.typeParameters=s.tsParseTypeParameters(),e.prototype.parseFunctionParams.call(s,r),r.returnType=s.tsTryParseTypeOrTypePredicateAnnotation(),s.expect(i.arrow),r}));if(this.maybeInArrowParameters=a,o)return e.prototype.parseArrowExpression.call(this,o,null,!0,r)}},P.tsParseTypeArgumentsInExpression=function(){if(this.reScan_lt()===i.relational)return this.tsParseTypeArguments()},P.tsInNoContext=function(e){var t=this.context;this.context=[t[0]];try{return e()}finally{this.context=t}},P.tsTryParseTypeAnnotation=function(){return this.match(i.colon)?this.tsParseTypeAnnotation():void 0},P.isUnparsedContextual=function(e,t){var n=e+t.length;if(this.input.slice(e,n)===t){var r=this.input.charCodeAt(n);return!(d(r)||55296==(64512&r))}return!1},P.isAbstractConstructorSignature=function(){return this.ts_isContextual(h.abstract)&&this.lookahead().type===i._new},P.nextTokenStartSince=function(e){return Pr.lastIndex=e,Pr.test(this.input)?Pr.lastIndex:e},P.lookaheadCharCode=function(){return this.input.charCodeAt(this.nextTokenStart())},P.compareLookaheadState=function(e,t){for(var n=0,r=Object.keys(e);n-1;)++this.curLine,s=this.lineStart=r;this.isLookahead||this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},P.skipLineComment=function(e){var t,n=this.pos;this.isLookahead||(t=this.options.onComment&&this.curPosition());for(var r=this.input.charCodeAt(this.pos+=e);this.pos"===this.value},P.tsParseParenthesizedType=function(){var e=this.startNode();return this.expect(i.parenL),e.typeAnnotation=this.tsParseType(),this.expect(i.parenR),this.finishNode(e,"TSParenthesizedType")},P.tsParseNonArrayType=function(){switch(this.type){case i.string:case i.num:case i._true:case i._false:return this.tsParseLiteralTypeNode();case i.plusMin:if("-"===this.value){var e=this.startNode();return this.lookahead().type!==i.num&&this.unexpected(),e.literal=this.parseMaybeUnary(),this.finishNode(e,"TSLiteralType")}break;case i._this:return this.tsParseThisTypeOrThisTypePredicate();case i._typeof:return this.tsParseTypeQuery();case i._import:return this.tsParseImportType();case i.braceL:return this.tsLookAhead(this.tsIsStartOfMappedType.bind(this))?this.tsParseMappedType():this.tsParseTypeLiteral();case i.bracketL:return this.tsParseTupleType();case i.parenL:return this.tsParseParenthesizedType();case i.backQuote:case i.dollarBraceL:return this.tsParseTemplateLiteralType();default:var t=this.type;if(b(t)||t===i._void||t===i._null){var n=t===i._void?"TSVoidKeyword":t===i._null?"TSNullKeyword":function(e){switch(e){case"any":return"TSAnyKeyword";case"boolean":return"TSBooleanKeyword";case"bigint":return"TSBigIntKeyword";case"never":return"TSNeverKeyword";case"number":return"TSNumberKeyword";case"object":return"TSObjectKeyword";case"string":return"TSStringKeyword";case"symbol":return"TSSymbolKeyword";case"undefined":return"TSUndefinedKeyword";case"unknown":return"TSUnknownKeyword";default:return}}(this.value);if(void 0!==n&&46!==this.lookaheadCharCode()){var r=this.startNode();return this.next(),this.finishNode(r,n)}return this.tsParseTypeReference()}}this.unexpected()},P.tsParseArrayTypeOrHigher=function(){for(var e=this.tsParseNonArrayType();!this.hasPrecedingLineBreak()&&this.eat(i.bracketL);)if(this.match(i.bracketR)){var t=this.startNodeAtNode(e);t.elementType=e,this.expect(i.bracketR),e=this.finishNode(t,"TSArrayType")}else{var n=this.startNodeAtNode(e);n.objectType=e,n.indexType=this.tsParseType(),this.expect(i.bracketR),e=this.finishNode(n,"TSIndexedAccessType")}return e},P.tsParseTypeOperatorOrHigher=function(){var e=this;return x(this.type)&&!this.containsEsc?this.tsParseTypeOperator():this.isContextual("infer")?this.tsParseInferType():this.tsInAllowConditionalTypesContext((function(){return e.tsParseArrayTypeOrHigher()}))},P.tsParseIntersectionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSIntersectionType",this.tsParseTypeOperatorOrHigher.bind(this),i.bitwiseAND)},P.tsParseUnionTypeOrHigher=function(){return this.tsParseUnionOrIntersectionType("TSUnionType",this.tsParseIntersectionTypeOrHigher.bind(this),i.bitwiseOR)},P.tsParseNonConditionalType=function(){return this.tsIsStartOfFunctionType()?this.tsParseFunctionOrConstructorType("TSFunctionType"):this.match(i._new)?this.tsParseFunctionOrConstructorType("TSConstructorType"):this.isAbstractConstructorSignature()?this.tsParseFunctionOrConstructorType("TSConstructorType",!0):this.tsParseUnionTypeOrHigher()},P.tsParseType=function(){var e=this;Er(this.inType);var t=this.tsParseNonConditionalType();if(this.inDisallowConditionalTypesContext||this.hasPrecedingLineBreak()||!this.eat(i._extends))return t;var n=this.startNodeAtNode(t);return n.checkType=t,n.extendsType=this.tsInDisallowConditionalTypesContext((function(){return e.tsParseNonConditionalType()})),this.expect(i.question),n.trueType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.expect(i.colon),n.falseType=this.tsInAllowConditionalTypesContext((function(){return e.tsParseType()})),this.finishNode(n,"TSConditionalType")},P.tsIsUnambiguouslyIndexSignature=function(){return this.next(),!!b(this.type)&&(this.next(),this.match(i.colon))},P.tsInType=function(e){var t=this.inType;this.inType=!0;try{return e()}finally{this.inType=t}},P.tsTryParseIndexSignature=function(e){if(this.match(i.bracketL)&&this.tsLookAhead(this.tsIsUnambiguouslyIndexSignature.bind(this))){this.expect(i.bracketL);var t=this.parseIdent();t.typeAnnotation=this.tsParseTypeAnnotation(),this.resetEndLocation(t),this.expect(i.bracketR),e.parameters=[t];var n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n),this.tsParseTypeMemberSemicolon(),this.finishNode(e,"TSIndexSignature")}},P.tsParseNoneModifiers=function(e){this.tsParseModifiers({modified:e,allowedModifiers:[],disallowedModifiers:["in","out"],errorTemplate:xr.InvalidModifierOnTypeParameterPositions})},P.tsParseTypeParameter=function(e){void 0===e&&(e=this.tsParseNoneModifiers.bind(this));var t=this.startNode();return e(t),t.name=this.tsParseTypeParameterName(),t.constraint=this.tsEatThenParseType(i._extends),t.default=this.tsEatThenParseType(i.eq),this.finishNode(t,"TSTypeParameter")},P.tsParseTypeParameters=function(e){var t=this.startNode();this.tsMatchLeftRelational()||this.matchJsx("jsxTagStart")?this.next():this.unexpected();var n={value:-1};return t.params=this.tsParseBracketedList("TypeParametersOrArguments",this.tsParseTypeParameter.bind(this,e),!1,!0,n),0===t.params.length&&this.raise(this.start,xr.EmptyTypeParameters),-1!==n.value&&this.addExtra(t,"trailingComma",n.value),this.finishNode(t,"TSTypeParameterDeclaration")},P.tsTryParseTypeParameters=function(e){if(this.tsMatchLeftRelational())return this.tsParseTypeParameters(e)},P.tsTryParse=function(e){var t=this.getCurLookaheadState(),n=e();return void 0!==n&&!1!==n?n:void this.setLookaheadState(t)},P.tsTokenCanFollowModifier=function(){return(this.match(i.bracketL)||this.match(i.braceL)||this.match(i.star)||this.match(i.ellipsis)||this.match(i.privateId)||this.isLiteralPropertyName())&&!this.hasPrecedingLineBreak()},P.tsNextTokenCanFollowModifier=function(){return this.next(!0),this.tsTokenCanFollowModifier()},P.tsParseModifier=function(e,t){if(b(this.type)||this.type===i._in){var n=this.value;if(-1!==e.indexOf(n)&&!this.containsEsc){if(t&&this.tsIsStartOfStaticBlocks())return;if(this.tsTryParse(this.tsNextTokenCanFollowModifier.bind(this)))return n}}},P.tsParseModifiersByMap=function(e){for(var t=e.modified,n=e.map,r=0,s=Object.keys(n);r0&&(this.raise(this.start,"A 'get' accesor must not have any formal parameters."),this.isThisParam(r[s][0])&&this.raise(this.start,xr.AccesorCannotDeclareThisParameter));else if("set"===r.kind){if(1!==r[s].length)this.raise(this.start,"A 'get' accesor must not have any formal parameters.");else{var o=r[s][0];this.isThisParam(o)&&this.raise(this.start,xr.AccesorCannotDeclareThisParameter),"Identifier"===o.type&&o.optional&&this.raise(this.start,xr.SetAccesorCannotHaveOptionalParameter),"RestElement"===o.type&&this.raise(this.start,xr.SetAccesorCannotHaveRestParameter)}r[a]&&this.raise(r[a].start,xr.SetAccesorCannotHaveReturnType)}else r.kind="method";return this.finishNode(r,"TSMethodSignature")}var l=n;t&&(l.readonly=!0);var c=this.tsTryParseTypeAnnotation();return c&&(l.typeAnnotation=c),this.tsParseTypeMemberSemicolon(),this.finishNode(l,"TSPropertySignature")},P.tsParseTypeMember=function(){var e=this.startNode();if(this.match(i.parenL)||this.tsMatchLeftRelational())return this.tsParseSignatureMember("TSCallSignatureDeclaration",e);if(this.match(i._new)){var t=this.startNode();return this.next(),this.match(i.parenL)||this.tsMatchLeftRelational()?this.tsParseSignatureMember("TSConstructSignatureDeclaration",e):(e.key=this.createIdentifier(t,"new"),this.tsParsePropertyOrMethodSignature(e,!1))}return this.tsParseModifiers({modified:e,allowedModifiers:["readonly"],disallowedModifiers:["declare","abstract","private","protected","public","static","override"]}),this.tsTryParseIndexSignature(e)||(this.parsePropertyName(e),e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||!this.tsTokenCanFollowModifier()||(e.kind=e.key.name,this.parsePropertyName(e)),this.tsParsePropertyOrMethodSignature(e,!!e.readonly))},P.tsParseList=function(e,t){for(var n=[];!this.tsIsListTerminator(e);)n.push(t());return n},P.tsParseObjectTypeMembers=function(){this.expect(i.braceL);var e=this.tsParseList("TypeMembers",this.tsParseTypeMember.bind(this));return this.expect(i.braceR),e},P.tsParseInterfaceDeclaration=function(e,t){if(void 0===t&&(t={}),this.hasFollowingLineBreak())return null;this.expectContextual("interface"),t.declare&&(e.declare=!0),b(this.type)?(e.id=this.parseIdent(),this.checkLValSimple(e.id,7)):(e.id=null,this.raise(this.start,xr.MissingInterfaceName)),e.typeParameters=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this)),this.eat(i._extends)&&(e.extends=this.tsParseHeritageClause("extends"));var n=this.startNode();return n.body=this.tsInType(this.tsParseObjectTypeMembers.bind(this)),e.body=this.finishNode(n,"TSInterfaceBody"),this.finishNode(e,"TSInterfaceDeclaration")},P.tsParseAbstractDeclaration=function(e){if(this.match(i._class))return e.abstract=!0,this.parseClass(e,!0);if(this.ts_isContextual(h.interface)){if(!this.hasFollowingLineBreak())return e.abstract=!0,this.tsParseInterfaceDeclaration(e)}else this.unexpected(e.start)},P.tsIsDeclarationStart=function(){return g(this.type)},P.tsParseExpressionStatement=function(t,n){switch(n.name){case"declare":var r=this.tsTryParseDeclare(t);if(r)return r.declare=!0,r;break;case"global":if(this.match(i.braceL)){e.prototype.enterScope.call(this,fr);var s=t;return s.global=!0,s.id=n,s.body=this.tsParseModuleBlock(),e.prototype.exitScope.call(this),this.finishNode(s,"TSModuleDeclaration")}break;default:return this.tsParseDeclaration(t,n.name,!1)}},P.tsParseModuleReference=function(){return this.tsIsExternalModuleReference()?this.tsParseExternalModuleReference():this.tsParseEntityName(!1)},P.tsIsExportDefaultSpecifier=function(){var e=this.type,t=this.isAsyncFunction(),n=this.isLet();if(b(e)){if(t&&!this.containsEsc||n)return!1;if((e===h.type||e===h.interface)&&!this.containsEsc){var r=this.lookahead();if(b(r.type)&&!this.isContextualWithState("from",r)||r.type===i.braceL)return!1}}else if(!this.match(i._default))return!1;var s=this.nextTokenStart(),a=this.isUnparsedContextual(s,"from");if(44===this.input.charCodeAt(s)||b(this.type)&&a)return!0;if(this.match(i._default)&&a){var o=this.input.charCodeAt(this.nextTokenStartSince(s+4));return 34===o||39===o}return!1},P.tsInAmbientContext=function(e){var t=this.isAmbientContext;this.isAmbientContext=!0;try{return e()}finally{this.isAmbientContext=t}},P.tsCheckLineTerminator=function(e){return e?!this.hasFollowingLineBreak()&&(this.next(),!0):!this.isLineTerminator()},P.tsParseModuleOrNamespaceDeclaration=function(t,n){if(void 0===n&&(n=!1),t.id=this.parseIdent(),n||this.checkLValSimple(t.id,8),this.eat(i.dot)){var r=this.startNode();this.tsParseModuleOrNamespaceDeclaration(r,!0),t.body=r}else e.prototype.enterScope.call(this,fr),t.body=this.tsParseModuleBlock(),e.prototype.exitScope.call(this);return this.finishNode(t,"TSModuleDeclaration")},P.checkLValSimple=function(t,n,r){return void 0===n&&(n=0),e.prototype.checkLValSimple.call(this,t,n,r)},P.tsParseTypeAliasDeclaration=function(e){var t=this;return e.id=this.parseIdent(),this.checkLValSimple(e.id,6),e.typeAnnotation=this.tsInType((function(){if(e.typeParameters=t.tsTryParseTypeParameters(t.tsParseInOutModifiers.bind(t)),t.expect(i.eq),t.ts_isContextual(h.interface)&&t.lookahead().type!==i.dot){var n=t.startNode();return t.next(),t.finishNode(n,"TSIntrinsicKeyword")}return t.tsParseType()})),this.semicolon(),this.finishNode(e,"TSTypeAliasDeclaration")},P.tsParseDeclaration=function(e,t,n){switch(t){case"abstract":if(this.tsCheckLineTerminator(n)&&(this.match(i._class)||b(this.type)))return this.tsParseAbstractDeclaration(e);break;case"module":if(this.tsCheckLineTerminator(n)){if(this.match(i.string))return this.tsParseAmbientExternalModuleDeclaration(e);if(b(this.type))return this.tsParseModuleOrNamespaceDeclaration(e)}break;case"namespace":if(this.tsCheckLineTerminator(n)&&b(this.type))return this.tsParseModuleOrNamespaceDeclaration(e);break;case"type":if(this.tsCheckLineTerminator(n)&&b(this.type))return this.tsParseTypeAliasDeclaration(e)}},P.tsTryParseExportDeclaration=function(){return this.tsParseDeclaration(this.startNode(),this.value,!0)},P.tsParseImportEqualsDeclaration=function(t,n){t.isExport=n||!1,t.id=this.parseIdent(),this.checkLValSimple(t.id,2),e.prototype.expect.call(this,i.eq);var r=this.tsParseModuleReference();return"type"===t.importKind&&"TSExternalModuleReference"!==r.type&&this.raise(r.start,xr.ImportAliasHasImportType),t.moduleReference=r,e.prototype.semicolon.call(this),this.finishNode(t,"TSImportEqualsDeclaration")},P.isExportDefaultSpecifier=function(){if(this.tsIsDeclarationStart())return!1;var e=this.type;if(b(e)){if(this.isContextual("async")||this.isContextual("let"))return!1;if((e===h.type||e===h.interface)&&!this.containsEsc){var t=this.lookahead();if(b(t.type)&&!this.isContextualWithState("from",t)||t.type===i.braceL)return!1}}else if(!this.match(i._default))return!1;var n=this.nextTokenStart(),r=this.isUnparsedContextual(n,"from");if(44===this.input.charCodeAt(n)||b(this.type)&&r)return!0;if(this.match(i._default)&&r){var s=this.input.charCodeAt(this.nextTokenStartSince(n+4));return 34===s||39===s}return!1},P.parseTemplate=function(e){var t=(void 0===e?{}:e).isTagged,n=void 0!==t&&t,r=this.startNode();this.next(),r.expressions=[];var s=this.parseTemplateElement({isTagged:n});for(r.quasis=[s];!s.tail;)this.type===i.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(i.dollarBraceL),r.expressions.push(this.inType?this.tsParseType():this.parseExpression()),this.expect(i.braceR),r.quasis.push(s=this.parseTemplateElement({isTagged:n}));return this.next(),this.finishNode(r,"TemplateLiteral")},P.parseFunction=function(e,t,n,r,s){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===i.star&&2&t&&this.unexpected(),e.generator=this.eat(i.star)),this.options.ecmaVersion>=8&&(e.async=!!r),1&t&&(e.id=4&t&&this.type!==i.name?null:this.parseIdent());var a=this.yieldPos,o=this.awaitPos,l=this.awaitIdentPos,c=this.maybeInArrowParameters;this.maybeInArrowParameters=!1,this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope($r(e.async,e.generator)),1&t||(e.id=this.type===i.name?this.parseIdent():null),this.parseFunctionParams(e);var p=1&t;return this.parseFunctionBody(e,n,!1,s,{isFunctionDeclaration:p}),this.yieldPos=a,this.awaitPos=o,this.awaitIdentPos=l,1&t&&e.id&&!(2&t)&&this.checkLValSimple(e.id,e.body?this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3:0),this.maybeInArrowParameters=c,this.finishNode(e,p?"FunctionDeclaration":"FunctionExpression")},P.parseFunctionBody=function(t,n,r,s,a){void 0===n&&(n=!1),void 0===r&&(r=!1),void 0===s&&(s=!1),this.match(i.colon)&&(t.returnType=this.tsParseTypeOrTypePredicateAnnotation(i.colon));var o=null!=a&&a.isFunctionDeclaration?"TSDeclareFunction":null!=a&&a.isClassMethod?"TSDeclareMethod":void 0;return o&&!this.match(i.braceL)&&this.isLineTerminator()?this.finishNode(t,o):"TSDeclareFunction"===o&&this.isAmbientContext&&(this.raise(t.start,xr.DeclareFunctionHasImplementation),t.declare)?(e.prototype.parseFunctionBody.call(this,t,n,r,!1),this.finishNode(t,o)):(e.prototype.parseFunctionBody.call(this,t,n,r,s),t)},P.parseNew=function(){var e;this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var t=this.startNode(),n=this.parseIdent(!0);if(this.options.ecmaVersion>=6&&this.eat(i.dot)){t.meta=n;var r=this.containsEsc;return t.property=this.parseIdent(!0),"target"!==t.property.name&&this.raiseRecoverable(t.property.start,"The only valid meta property for new is 'new.target'"),r&&this.raiseRecoverable(t.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(t.start,"'new.target' can only be used in functions and class static block"),this.finishNode(t,"MetaProperty")}var s=this.start,a=this.startLoc,o=this.type===i._import;t.callee=this.parseSubscripts(this.parseExprAtom(),s,a,!0,!1),o&&"ImportExpression"===t.callee.type&&this.raise(s,"Cannot use new with import()");var l=t.callee;return"TSInstantiationExpression"!==l.type||null!=(e=l.extra)&&e.parenthesized||(t.typeParameters=l.typeParameters,t.callee=l.expression),t.arguments=this.eat(i.parenL)?this.parseExprList(i.parenR,this.options.ecmaVersion>=8,!1):[],this.finishNode(t,"NewExpression")},P.parseExprOp=function(t,n,r,s,o){var l;if(i._in.binop>s&&!this.hasPrecedingLineBreak()&&(this.isContextual("as")&&(l="TSAsExpression"),a&&this.isContextual("satisfies")&&(l="TSSatisfiesExpression"),l)){var c=this.startNodeAt(n,r);c.expression=t;var p=this.tsTryNextParseConstantContext();return c.typeAnnotation=p||this.tsNextThenParseType(),this.finishNode(c,l),this.reScan_lt_gt(),this.parseExprOp(c,n,r,s,o)}return e.prototype.parseExprOp.call(this,t,n,r,s,o)},P.parseImportSpecifiers=function(){var e=[],t=!0;if(s.tokenIsIdentifier(this.type)&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(i.comma)))return e;if(this.type===i.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(i.braceL);!this.eat(i.braceR);){if(t)t=!1;else if(this.expect(i.comma),this.afterTrailingComma(i.braceR))break;e.push(this.parseImportSpecifier())}return e},P.parseImport=function(e){var t=this.lookahead();if(e.importKind="value",this.importOrExportOuterKind="value",b(t.type)||this.match(i.star)||this.match(i.braceL)){var n=this.lookahead(2);if(n.type!==i.comma&&!this.isContextualWithState("from",n)&&n.type!==i.eq&&this.ts_eatContextualWithState("type",1,t)&&(this.importOrExportOuterKind="type",e.importKind="type",t=this.lookahead(),n=this.lookahead(2)),b(t.type)&&n.type===i.eq){this.next();var r=this.tsParseImportEqualsDeclaration(e);return this.importOrExportOuterKind="value",r}}return this.next(),this.type===i.string?(e.specifiers=[],e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===i.string?this.parseExprAtom():this.unexpected()),this.parseMaybeImportAttributes(e),this.semicolon(),this.finishNode(e,"ImportDeclaration"),this.importOrExportOuterKind="value","type"===e.importKind&&e.specifiers.length>1&&"ImportDefaultSpecifier"===e.specifiers[0].type&&this.raise(e.start,xr.TypeImportCannotSpecifyDefaultAndNamed),e},P.parseExportDefaultDeclaration=function(){if(this.isAbstractClass()){var t=this.startNode();return this.next(),t.abstract=!0,this.parseClass(t,!0)}if(this.match(h.interface)){var n=this.tsParseInterfaceDeclaration(this.startNode());if(n)return n}return e.prototype.parseExportDefaultDeclaration.call(this)},P.parseExportAllDeclaration=function(e,t){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(e.exported=this.parseModuleExportName(),this.checkExport(t,e.exported,this.lastTokStart)):e.exported=null),this.expectContextual("from"),this.type!==i.string&&this.unexpected(),e.source=this.parseExprAtom(),this.parseMaybeImportAttributes(e),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},P.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.eat(i.comma)){var t=this.parseExpression();e.arguments=[t]}if(!this.eat(i.parenR)){var n=this.start;this.eat(i.comma)&&this.eat(i.parenR)?this.raiseRecoverable(n,"Trailing comma is not allowed in import()"):this.unexpected(n)}return this.finishNode(e,"ImportExpression")},P.parseExport=function(e,t){var n=this.lookahead();if(this.ts_eatWithState(i._import,2,n)){this.ts_isContextual(h.type)&&61!==this.lookaheadCharCode()?(e.importKind="type",this.importOrExportOuterKind="type",this.next()):(e.importKind="value",this.importOrExportOuterKind="value");var r=this.tsParseImportEqualsDeclaration(e,!0);return this.importOrExportOuterKind=void 0,r}if(this.ts_eatWithState(i.eq,2,n)){var s=e;return s.expression=this.parseExpression(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(s,"TSExportAssignment")}if(this.ts_eatContextualWithState("as",2,n)){var a=e;return this.expectContextual("namespace"),a.id=this.parseIdent(),this.semicolon(),this.importOrExportOuterKind=void 0,this.finishNode(a,"TSNamespaceExportDeclaration")}if(this.ts_isContextualWithState(n,h.type)&&this.lookahead(2).type===i.braceL?(this.next(),this.importOrExportOuterKind="type",e.exportKind="type"):(this.importOrExportOuterKind="value",e.exportKind="value"),this.next(),this.eat(i.star))return this.parseExportAllDeclaration(e,t);if(this.eat(i._default))return this.checkExport(t,"default",this.lastTokStart),e.declaration=this.parseExportDefaultDeclaration(),this.finishNode(e,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())e.declaration=this.parseExportDeclaration(e),"VariableDeclaration"===e.declaration.type?this.checkVariableExport(t,e.declaration.declarations):this.checkExport(t,e.declaration.id,e.declaration.id.start),e.specifiers=[],e.source=null;else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==i.string&&this.unexpected(),e.source=this.parseExprAtom(),this.parseMaybeImportAttributes(e);else{for(var o,l=pr(e.specifiers);!(o=l()).done;){var c=o.value;this.checkUnreserved(c.local),this.checkLocalExport(c.local),"Literal"===c.local.type&&this.raise(c.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},P.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),e[t]=!0)},P.parseMaybeDefault=function(t,n,r){var s=e.prototype.parseMaybeDefault.call(this,t,n,r);return"AssignmentPattern"===s.type&&s.typeAnnotation&&s.right.start=8&&!l&&"async"===c.name&&!this.canInsertSemicolon()&&this.eat(i._function))return this.overrideContext(u.f_expr),this.parseFunction(this.startNodeAt(a,o),0,!1,!0,n);if(s&&!this.canInsertSemicolon()){if(this.eat(i.arrow))return this.parseArrowExpression(this.startNodeAt(a,o),[c],!1,n);if(this.options.ecmaVersion>=8&&"async"===c.name&&this.type===i.name&&!l&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return c=this.parseIdent(!1),!this.canInsertSemicolon()&&this.eat(i.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAt(a,o),[c],!0,n)}return c}return e.prototype.parseExprAtom.call(this,t,n,r)},P.parseExprAtomDefault=function(){if(b(this.type)){var e=this.potentialArrowAt===this.start,t=this.containsEsc,n=this.parseIdent();if(!t&&"async"===n.name&&!this.canInsertSemicolon()){var r=this.type;if(r===i._function)return this.next(),this.parseFunction(this.startNodeAtNode(n),void 0,!0,!0);if(b(r)){if(61===this.lookaheadCharCode()){var s=this.parseIdent(!1);return!this.canInsertSemicolon()&&this.eat(i.arrow)||this.unexpected(),this.parseArrowExpression(this.startNodeAtNode(n),[s],!0)}return n}}return e&&this.match(i.arrow)&&!this.canInsertSemicolon()?(this.next(),this.parseArrowExpression(this.startNodeAtNode(n),[n],!1)):n}this.unexpected()},P.parseIdentNode=function(){var t=this.startNode();return _(this.type)?(t.name=this.value,t):e.prototype.parseIdentNode.call(this)},P.parseVarStatement=function(t,n,r){void 0===r&&(r=!1);var s=this.isAmbientContext;this.next(),e.prototype.parseVar.call(this,t,!1,n,r||s),this.semicolon();var a=this.finishNode(t,"VariableDeclaration");if(!s)return a;for(var i,o=pr(a.declarations);!(i=o()).done;){var l=i.value,c=l.init;c&&("const"!==n||l.id.typeAnnotation?this.raise(c.start,xr.InitializerNotAllowedInAmbientContext):"StringLiteral"!==c.type&&"BooleanLiteral"!==c.type&&"NumericLiteral"!==c.type&&"BigIntLiteral"!==c.type&&("TemplateLiteral"!==c.type||c.expressions.length>0)&&!Rr(c)&&this.raise(c.start,xr.ConstInitiailizerMustBeStringOrNumericLiteralOrLiteralEnumReference))}return a},P.parseStatement=function(t,n,r){if(this.match(h.at)&&this.parseDecorators(!0),this.match(i._const)&&this.isLookaheadContextual("enum")){var s=this.startNode();return this.expect(i._const),this.tsParseEnumDeclaration(s,{const:!0})}if(this.ts_isContextual(h.enum))return this.tsParseEnumDeclaration(this.startNode());if(this.ts_isContextual(h.interface)){var a=this.tsParseInterfaceDeclaration(this.startNode());if(a)return a}return e.prototype.parseStatement.call(this,t,n,r)},P.parseAccessModifier=function(){return this.tsParseModifier(["public","protected","private"])},P.parsePostMemberNameModifiers=function(e){this.eat(i.question)&&(e.optional=!0),e.readonly&&this.match(i.parenL)&&this.raise(e.start,xr.ClassMethodHasReadonly),e.declare&&this.match(i.parenL)&&this.raise(e.start,xr.ClassMethodHasDeclare)},P.parseExpressionStatement=function(t,n){return("Identifier"===n.type?this.tsParseExpressionStatement(t,n):void 0)||e.prototype.parseExpressionStatement.call(this,t,n)},P.shouldParseExportStatement=function(){return!!this.tsIsDeclarationStart()||!!this.match(h.at)||e.prototype.shouldParseExportStatement.call(this)},P.parseConditional=function(e,t,n,r,s){if(this.eat(i.question)){var a=this.startNodeAt(t,n);return a.test=e,a.consequent=this.parseMaybeAssign(),this.expect(i.colon),a.alternate=this.parseMaybeAssign(r),this.finishNode(a,"ConditionalExpression")}return e},P.parseMaybeConditional=function(e,t){var n=this,r=this.start,s=this.startLoc,a=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return a;if(!this.maybeInArrowParameters||!this.match(i.question))return this.parseConditional(a,r,s,e,t);var o=this.tryParse((function(){return n.parseConditional(a,r,s,e,t)}));return o.node?(o.error&&this.setLookaheadState(o.failState),o.node):(o.error&&this.setOptionalParametersError(t,o.error),a)},P.parseParenItem=function(t){var n=this.start,r=this.startLoc;if(t=e.prototype.parseParenItem.call(this,t),this.eat(i.question)&&(t.optional=!0,this.resetEndLocation(t)),this.match(i.colon)){var s=this.startNodeAt(n,r);return s.expression=t,s.typeAnnotation=this.tsParseTypeAnnotation(),this.finishNode(s,"TSTypeCastExpression")}return t},P.parseExportDeclaration=function(e){var t=this;if(!this.isAmbientContext&&this.ts_isContextual(h.declare))return this.tsInAmbientContext((function(){return t.parseExportDeclaration(e)}));var n=this.start,r=this.startLoc,s=this.eatContextual("declare");!s||!this.ts_isContextual(h.declare)&&this.shouldParseExportStatement()||this.raise(this.start,xr.ExpectedAmbientAfterExportDeclare);var a=b(this.type)&&this.tsTryParseExportDeclaration()||this.parseStatement(null);return a?(("TSInterfaceDeclaration"===a.type||"TSTypeAliasDeclaration"===a.type||s)&&(e.exportKind="type"),s&&(this.resetStartLocation(a,n,r),a.declare=!0),a):null},P.parseClassId=function(t,n){if(n||!this.isContextual("implements")){e.prototype.parseClassId.call(this,t,n);var r=this.tsTryParseTypeParameters(this.tsParseInOutModifiers.bind(this));r&&(t.typeParameters=r)}},P.parseClassPropertyAnnotation=function(e){e.optional||("!"===this.value&&this.eat(i.prefix)?e.definite=!0:this.eat(i.question)&&(e.optional=!0));var t=this.tsTryParseTypeAnnotation();t&&(e.typeAnnotation=t)},P.parseClassField=function(t){if("PrivateIdentifier"===t.key.type)t.abstract&&this.raise(t.start,xr.PrivateElementHasAbstract),t.accessibility&&this.raise(t.start,xr.PrivateElementHasAccessibility({modifier:t.accessibility})),this.parseClassPropertyAnnotation(t);else if(this.parseClassPropertyAnnotation(t),this.isAmbientContext&&(!t.readonly||t.typeAnnotation)&&this.match(i.eq)&&this.raise(this.start,xr.DeclareClassFieldHasInitializer),t.abstract&&this.match(i.eq)){var n=t.key;this.raise(this.start,xr.AbstractPropertyHasInitializer({propertyName:"Identifier"!==n.type||t.computed?"["+this.input.slice(n.start,n.end)+"]":n.name}))}return e.prototype.parseClassField.call(this,t)},P.parseClassMethod=function(e,t,n,r){var s="constructor"===e.kind,a="PrivateIdentifier"===e.key.type,i=this.tsTryParseTypeParameters();a?(i&&(e.typeParameters=i),e.accessibility&&this.raise(e.start,xr.PrivateMethodsHasAccessibility({modifier:e.accessibility}))):i&&s&&this.raise(i.start,xr.ConstructorHasTypeParameters);var o=e.declare,l=e.kind;!(void 0!==o&&o)||"get"!==l&&"set"!==l||this.raise(e.start,xr.DeclareAccessor({kind:l})),i&&(e.typeParameters=i);var c=e.key;"constructor"===e.kind?(t&&this.raise(c.start,"Constructor can't be a generator"),n&&this.raise(c.start,"Constructor can't be an async method")):e.static&&_r(e,"prototype")&&this.raise(c.start,"Classes may not have a static property named prototype");var p=e.value=this.parseMethod(t,n,r,!0,e);return"get"===e.kind&&0!==p.params.length&&this.raiseRecoverable(p.start,"getter should have no params"),"set"===e.kind&&1!==p.params.length&&this.raiseRecoverable(p.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===p.params[0].type&&this.raiseRecoverable(p.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},P.isClassMethod=function(){return this.match(i.relational)},P.parseClassElement=function(t){var n=this;if(this.eat(i.semi))return null;var r,s=this.options.ecmaVersion,a=this.startNode(),o="",l=!1,c=!1,p="method",u=["declare","private","public","protected","accessor","override","abstract","readonly","static"],d=this.tsParseModifiers({modified:a,allowedModifiers:u,disallowedModifiers:["in","out"],stopOnStartOfClassStaticBlock:!0,errorTemplate:xr.InvalidModifierOnTypeParameterPositions});r=Boolean(d.static);var h=function(){if(!n.tsIsStartOfStaticBlocks()){var d=n.tsTryParseIndexSignature(a);if(d)return a.abstract&&n.raise(a.start,xr.IndexSignatureHasAbstract),a.accessibility&&n.raise(a.start,xr.IndexSignatureHasAccessibility({modifier:a.accessibility})),a.declare&&n.raise(a.start,xr.IndexSignatureHasDeclare),a.override&&n.raise(a.start,xr.IndexSignatureHasOverride),d;if(!n.inAbstractClass&&a.abstract&&n.raise(a.start,xr.NonAbstractClassHasAbstractMethod),a.override&&t&&n.raise(a.start,xr.OverrideNotInSubClass),a.static=r,r&&(n.isClassElementNameStart()||n.type===i.star||(o="static")),!o&&s>=8&&n.eatContextual("async")&&(!n.isClassElementNameStart()&&n.type!==i.star||n.canInsertSemicolon()?o="async":c=!0),!o&&(s>=9||!c)&&n.eat(i.star)&&(l=!0),!o&&!c&&!l){var h=n.value;(n.eatContextual("get")||n.eatContextual("set"))&&(n.isClassElementNameStart()?p=h:o=h)}if(o?(a.computed=!1,a.key=n.startNodeAt(n.lastTokStart,n.lastTokStartLoc),a.key.name=o,n.finishNode(a.key,"Identifier")):n.parseClassElementName(a),n.parsePostMemberNameModifiers(a),n.isClassMethod()||s<13||n.type===i.parenL||"method"!==p||l||c){var m=!a.static&&_r(a,"constructor"),f=m&&t;m&&"method"!==p&&n.raise(a.key.start,"Constructor can't have get/set modifier"),a.kind=m?"constructor":p,n.parseClassMethod(a,l,c,f)}else n.parseClassField(a);return a}if(n.next(),n.next(),n.tsHasSomeModifiers(a,u)&&n.raise(n.start,xr.StaticBlockCannotHaveModifier),s>=13)return e.prototype.parseClassStaticBlock.call(n,a),a};return a.declare?this.tsInAmbientContext(h):h(),a},P.isClassElementNameStart=function(){return!!this.tsIsIdentifier()||e.prototype.isClassElementNameStart.call(this)},P.parseClassSuper=function(t){e.prototype.parseClassSuper.call(this,t),t.superClass&&(this.tsMatchLeftRelational()||this.match(i.bitShift))&&(t.superTypeParameters=this.tsParseTypeArgumentsInExpression()),this.eatContextual("implements")&&(t.implements=this.tsParseHeritageClause("implements"))},P.parseFunctionParams=function(t){var n=this.tsTryParseTypeParameters();n&&(t.typeParameters=n),e.prototype.parseFunctionParams.call(this,t)},P.parseVarId=function(t,n){e.prototype.parseVarId.call(this,t,n),"Identifier"===t.id.type&&!this.hasPrecedingLineBreak()&&"!"===this.value&&this.eat(i.prefix)&&(t.definite=!0);var r=this.tsTryParseTypeAnnotation();r&&(t.id.typeAnnotation=r,this.resetEndLocation(t.id))},P.parseArrowExpression=function(e,t,n,r){this.match(i.colon)&&(e.returnType=this.tsParseTypeAnnotation());var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;this.enterScope(16|$r(n,!1)),this.initFunction(e);var l=this.maybeInArrowParameters;return this.options.ecmaVersion>=8&&(e.async=!!n),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.maybeInArrowParameters=!0,e.params=this.toAssignableList(t,!0),this.maybeInArrowParameters=!1,this.parseFunctionBody(e,!0,!1,r),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.maybeInArrowParameters=l,this.finishNode(e,"ArrowFunctionExpression")},P.parseMaybeAssignOrigin=function(e,t,n){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(e);this.exprAllowed=!1}var r=!1,s=-1,a=-1,o=-1;t?(s=t.parenthesizedAssign,a=t.trailingComma,o=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new gr,r=!0);var l=this.start,c=this.startLoc;(this.type===i.parenL||b(this.type))&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var p=this.parseMaybeConditional(e,t);if(n&&(p=n.call(this,p,l,c)),this.type.isAssign){var u=this.startNodeAt(l,c);return u.operator=this.value,this.type===i.eq&&(p=this.toAssignable(p,!0,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===i.eq?this.checkLValPattern(p):this.checkLValSimple(p),u.left=p,this.next(),u.right=this.parseMaybeAssign(e),o>-1&&(t.doubleProto=o),this.finishNode(u,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),s>-1&&(t.parenthesizedAssign=s),a>-1&&(t.trailingComma=a),p},P.parseMaybeAssign=function(e,t,n){var r,a,i,o,l,c,p,u,d,h,m,f=this;if(this.matchJsx("jsxTagStart")||this.tsMatchLeftRelational()){if(u=this.cloneCurLookaheadState(),!(d=this.tryParse((function(){return f.parseMaybeAssignOrigin(e,t,n)}),u)).error)return d.node;var y=this.context,v=y[y.length-1];v===s.tokContexts.tc_oTag&&y[y.length-2]===s.tokContexts.tc_expr?(y.pop(),y.pop()):v!==s.tokContexts.tc_oTag&&v!==s.tokContexts.tc_expr||y.pop()}if(!(null!=(r=d)&&r.error||this.tsMatchLeftRelational()))return this.parseMaybeAssignOrigin(e,t,n);u&&!this.compareLookaheadState(u,this.getCurLookaheadState())||(u=this.cloneCurLookaheadState());var g=this.tryParse((function(r){var s,a;m=f.tsParseTypeParameters();var i=f.parseMaybeAssignOrigin(e,t,n);return("ArrowFunctionExpression"!==i.type||null!=(s=i.extra)&&s.parenthesized)&&r(),0!==(null==(a=m)?void 0:a.params.length)&&f.resetStartLocationFromNode(i,m),i.typeParameters=m,i}),u);if(!g.error&&!g.aborted)return m&&this.reportReservedArrowTypeParam(m),g.node;if(!d&&(Er(!0),!(h=this.tryParse((function(){return f.parseMaybeAssignOrigin(e,t,n)}),u)).error))return h.node;if(null!=(a=d)&&a.node)return this.setLookaheadState(d.failState),d.node;if(g.node)return this.setLookaheadState(g.failState),m&&this.reportReservedArrowTypeParam(m),g.node;if(null!=(i=h)&&i.node)return this.setLookaheadState(h.failState),h.node;if(null!=(o=d)&&o.thrown)throw d.error;if(g.thrown)throw g.error;if(null!=(l=h)&&l.thrown)throw h.error;throw(null==(c=d)?void 0:c.error)||g.error||(null==(p=h)?void 0:p.error)},P.parseAssignableListItem=function(e){for(var t=[];this.match(h.at);)t.push(this.parseDecorator());var n,r=this.start,s=this.startLoc,a=!1,i=!1;if(void 0!==e){var o={};this.tsParseModifiers({modified:o,allowedModifiers:["public","private","protected","override","readonly"]}),n=o.accessibility,i=o.override,a=o.readonly,!1===e&&(n||a||i)&&this.raise(s.start,xr.UnexpectedParameterModifier)}var l=this.parseMaybeDefault(r,s);this.parseBindingListItem(l);var c=this.parseMaybeDefault(l.start,l.loc,l);if(t.length&&(c.decorators=t),n||a||i){var p=this.startNodeAt(r,s);return n&&(p.accessibility=n),a&&(p.readonly=a),i&&(p.override=i),"Identifier"!==c.type&&"AssignmentPattern"!==c.type&&this.raise(p.start,xr.UnsupportedParameterPropertyKind),p.parameter=c,this.finishNode(p,"TSParameterProperty")}return c},P.checkLValInnerPattern=function(t,n,r){void 0===n&&(n=0),"TSParameterProperty"===t.type?this.checkLValInnerPattern(t.parameter,n,r):e.prototype.checkLValInnerPattern.call(this,t,n,r)},P.parseBindingListItem=function(e){this.eat(i.question)&&("Identifier"===e.type||this.isAmbientContext||this.inType||this.raise(e.start,xr.PatternIsOptional),e.optional=!0);var t=this.tsTryParseTypeAnnotation();return t&&(e.typeAnnotation=t),this.resetEndLocation(e),e},P.isAssignable=function(e,t){var n=this;switch(e.type){case"TSTypeCastExpression":return this.isAssignable(e.expression,t);case"TSParameterProperty":case"Identifier":case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":return!0;case"ObjectExpression":var r=e.properties.length-1;return e.properties.every((function(e,t){return"ObjectMethod"!==e.type&&(t===r||"SpreadElement"!==e.type)&&n.isAssignable(e)}));case"Property":case"ObjectProperty":return this.isAssignable(e.value);case"SpreadElement":return this.isAssignable(e.argument);case"ArrayExpression":return e.elements.every((function(e){return null===e||n.isAssignable(e)}));case"AssignmentExpression":return"="===e.operator;case"ParenthesizedExpression":return this.isAssignable(e.expression);case"MemberExpression":case"OptionalMemberExpression":return!t;default:return!1}},P.toAssignable=function(t,n,r){switch(void 0===n&&(n=!1),void 0===r&&(r=new gr),t.type){case"ParenthesizedExpression":return this.toAssignableParenthesizedExpression(t,n,r);case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":return n||this.raise(t.start,xr.UnexpectedTypeCastInParameter),this.toAssignable(t.expression,n,r);case"MemberExpression":break;case"AssignmentExpression":return n||"TSTypeCastExpression"!==t.left.type||(t.left=this.typeCastToParameter(t.left)),e.prototype.toAssignable.call(this,t,n,r);case"TSTypeCastExpression":return this.typeCastToParameter(t);default:return e.prototype.toAssignable.call(this,t,n,r)}return t},P.toAssignableParenthesizedExpression=function(t,n,r){switch(t.expression.type){case"TSAsExpression":case"TSSatisfiesExpression":case"TSNonNullExpression":case"TSTypeAssertion":case"ParenthesizedExpression":return this.toAssignable(t.expression,n,r);default:return e.prototype.toAssignable.call(this,t,n,r)}},P.curPosition=function(){if(this.options.locations){var t=e.prototype.curPosition.call(this);return Object.defineProperty(t,"offset",{get:function(){return function(e){var t=new n.Position(this.line,this.column+e);return t.index=this.index+e,t}}}),t.index=this.pos,t}},P.parseBindingAtom=function(){return this.type===i._this?this.parseIdent(!0):e.prototype.parseBindingAtom.call(this)},P.shouldParseArrow=function(e){var t,n=this;if(t=this.match(i.colon)?e.every((function(e){return n.isAssignable(e,!0)})):!this.canInsertSemicolon()){if(this.match(i.colon)){var r=this.tryParse((function(e){var t=n.tsParseTypeOrTypePredicateAnnotation(i.colon);return!n.canInsertSemicolon()&&n.match(i.arrow)||e(),t}));if(r.aborted)return this.shouldParseArrowReturnType=void 0,!1;r.thrown||(r.error&&this.setLookaheadState(r.failState),this.shouldParseArrowReturnType=r.node)}return!!this.match(i.arrow)||(this.shouldParseArrowReturnType=void 0,!1)}return this.shouldParseArrowReturnType=void 0,t},P.parseParenArrowList=function(e,t,n,r){var s=this.startNodeAt(e,t);return s.returnType=this.shouldParseArrowReturnType,this.shouldParseArrowReturnType=void 0,this.parseArrowExpression(s,n,!1,r)},P.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,s=this.startLoc,a=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){var o=this.maybeInArrowParameters;this.maybeInArrowParameters=!0,this.next();var l,c=this.start,p=this.startLoc,u=[],d=!0,h=!1,m=new gr,f=this.yieldPos,y=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==i.parenR;){if(d?d=!1:this.expect(i.comma),a&&this.afterTrailingComma(i.parenR,!0)){h=!0;break}if(this.type===i.ellipsis){l=this.start,u.push(this.parseParenItem(this.parseRestBinding())),this.type===i.comma&&this.raise(this.start,"Comma is not permitted after the rest element");break}u.push(this.parseMaybeAssign(t,m,this.parseParenItem))}var v=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(i.parenR),this.maybeInArrowParameters=o,e&&this.shouldParseArrow(u)&&this.eat(i.arrow))return this.checkPatternErrors(m,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=f,this.awaitPos=y,this.parseParenArrowList(r,s,u,t);u.length&&!h||this.unexpected(this.lastTokStart),l&&this.unexpected(l),this.checkExpressionErrors(m,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=y||this.awaitPos,u.length>1?((n=this.startNodeAt(c,p)).expressions=u,this.finishNodeAt(n,"SequenceExpression",v,g)):n=u[0]}else n=this.parseParenExpression();if(this.options.preserveParens){var b=this.startNodeAt(r,s);return b.expression=n,this.finishNode(b,"ParenthesizedExpression")}return n},P.parseTaggedTemplateExpression=function(e,t,n,r){var s=this.startNodeAt(t,n);return s.tag=e,s.quasi=this.parseTemplate({isTagged:!0}),r&&this.raise(t,"Tagged Template Literals are not allowed in optionalChain."),this.finishNode(s,"TaggedTemplateExpression")},P.shouldParseAsyncArrow=function(){var e=this;if(!this.match(i.colon))return!this.canInsertSemicolon()&&this.eat(i.arrow);var t=this.tryParse((function(t){var n=e.tsParseTypeOrTypePredicateAnnotation(i.colon);return!e.canInsertSemicolon()&&e.match(i.arrow)||t(),n}));return t.aborted?(this.shouldParseAsyncArrowReturnType=void 0,!1):t.thrown?void 0:(t.error&&this.setLookaheadState(t.failState),this.shouldParseAsyncArrowReturnType=t.node,!this.canInsertSemicolon()&&this.eat(i.arrow))},P.parseSubscriptAsyncArrow=function(e,t,n,r){var s=this.startNodeAt(e,t);return s.returnType=this.shouldParseAsyncArrowReturnType,this.shouldParseAsyncArrowReturnType=void 0,this.parseArrowExpression(s,n,!0,r)},P.parseExprList=function(e,t,n,r){for(var s=[],a=!0;!this.eat(e);){if(a)a=!1;else if(this.expect(i.comma),t&&this.afterTrailingComma(e))break;var o=void 0;n&&this.type===i.comma?o=null:this.type===i.ellipsis?(o=this.parseSpread(r),r&&this.type===i.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):o=this.parseMaybeAssign(!1,r,this.parseParenItem),s.push(o)}return s},P.parseSubscript=function(e,t,n,r,s,a,o){var l=this,c=a;if(!this.hasPrecedingLineBreak()&&"!"===this.value&&this.match(i.prefix)){this.exprAllowed=!1,this.next();var p=this.startNodeAt(t,n);return p.expression=e,e=this.finishNode(p,"TSNonNullExpression")}var u=!1;if(this.match(i.questionDot)&&60===this.lookaheadCharCode()){if(r)return e;e.optional=!0,c=u=!0,this.next()}if(this.tsMatchLeftRelational()||this.match(i.bitShift)){var d,h=this.tsTryParseAndCatch((function(){if(!r&&l.atPossibleAsyncArrow(e)){var s=l.tsTryParseGenericAsyncArrowFunction(t,n,o);if(s)return e=s}var a=l.tsParseTypeArgumentsInExpression();if(!a)return e;if(u&&!l.match(i.parenL))return d=l.curPosition(),e;if(v(l.type)||l.type===i.backQuote){var p=l.parseTaggedTemplateExpression(e,t,n,c);return p.typeParameters=a,p}if(!r&&l.eat(i.parenL)){var h=new gr,m=l.startNodeAt(t,n);return m.callee=e,m.arguments=l.parseExprList(i.parenR,l.options.ecmaVersion>=8,!1,h),l.tsCheckForInvalidTypeCasts(m.arguments),m.typeParameters=a,c&&(m.optional=u),l.checkExpressionErrors(h,!0),e=l.finishNode(m,"CallExpression")}var f=l.type;if(!(l.tsMatchRightRelational()||f===i.bitShift||f!==i.parenL&&(y=f,Boolean(y.startsExpr))&&!l.hasPrecedingLineBreak())){var y,g=l.startNodeAt(t,n);return g.expression=e,g.typeParameters=a,l.finishNode(g,"TSInstantiationExpression")}}));if(d&&this.unexpected(d),h)return"TSInstantiationExpression"===h.type&&(this.match(i.dot)||this.match(i.questionDot)&&40!==this.lookaheadCharCode())&&this.raise(this.start,xr.InvalidPropertyAccessAfterInstantiationExpression),e=h}var m=this.options.ecmaVersion>=11,f=m&&this.eat(i.questionDot);r&&f&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var y=this.eat(i.bracketL);if(y||f&&this.type!==i.parenL&&this.type!==i.backQuote||this.eat(i.dot)){var g=this.startNodeAt(t,n);g.object=e,y?(g.property=this.parseExpression(),this.expect(i.bracketR)):g.property=this.type===i.privateId&&"Super"!==e.type?this.parsePrivateIdent():this.parseIdent("never"!==this.options.allowReserved),g.computed=!!y,m&&(g.optional=f),e=this.finishNode(g,"MemberExpression")}else if(!r&&this.eat(i.parenL)){var b=this.maybeInArrowParameters;this.maybeInArrowParameters=!0;var _=new gr,x=this.yieldPos,w=this.awaitPos,C=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var k=this.parseExprList(i.parenR,this.options.ecmaVersion>=8,!1,_);if(s&&!f&&this.shouldParseAsyncArrow())this.checkPatternErrors(_,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=x,this.awaitPos=w,this.awaitIdentPos=C,e=this.parseSubscriptAsyncArrow(t,n,k,o);else{this.checkExpressionErrors(_,!0),this.yieldPos=x||this.yieldPos,this.awaitPos=w||this.awaitPos,this.awaitIdentPos=C||this.awaitIdentPos;var S=this.startNodeAt(t,n);S.callee=e,S.arguments=k,m&&(S.optional=f),e=this.finishNode(S,"CallExpression")}this.maybeInArrowParameters=b}else if(this.type===i.backQuote){(f||c)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var P=this.startNodeAt(t,n);P.tag=e,P.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(P,"TaggedTemplateExpression")}return e},P.parseGetterSetter=function(e){e.kind=e.key.name,this.parsePropertyName(e),e.value=this.parseMethod(!1);var t="get"===e.kind?0:1,n=e.value.params[0],r=n&&this.isThisParam(n);e.value.params.length!==(t=r?t+1:t)?this.raiseRecoverable(e.value.start,"get"===e.kind?"getter should have no params":"setter should have exactly one param"):"set"===e.kind&&"RestElement"===e.value.params[0].type&&this.raiseRecoverable(e.value.params[0].start,"Setter cannot use rest params")},P.parseProperty=function(t,n){if(!t){var r=[];if(this.match(h.at))for(;this.match(h.at);)r.push(this.parseDecorator());var s=e.prototype.parseProperty.call(this,t,n);return"SpreadElement"===s.type&&r.length&&this.raise(s.start,"Decorators can't be used with SpreadElement"),r.length&&(s.decorators=r,r=[]),s}return e.prototype.parseProperty.call(this,t,n)},P.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;this.enterScope(t?32:0),this.checkLValPattern(e,t?4:2);var n=this.tsTryParseTypeAnnotation();return n&&(e.typeAnnotation=n,this.resetEndLocation(e)),this.expect(i.parenR),e},P.parseClass=function(e,t){var n=this.inAbstractClass;this.inAbstractClass=!!e.abstract;try{this.next(),this.takeDecorators(e);var r=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var s=this.enterClassBody(),a=this.startNode(),o=!1;a.body=[];var l=[];for(this.expect(i.braceL);this.type!==i.braceR;)if(this.match(h.at))l.push(this.parseDecorator());else{var c=this.parseClassElement(null!==e.superClass);l.length&&(c.decorators=l,this.resetStartLocationFromNode(c,l[0]),l=[]),c&&(a.body.push(c),"MethodDefinition"===c.type&&"constructor"===c.kind&&"FunctionExpression"===c.value.type?(o&&this.raiseRecoverable(c.start,"Duplicate constructor in the same class"),o=!0,c.decorators&&c.decorators.length>0&&this.raise(c.start,"Decorators can't be used with a constructor. Did you mean '@dec class { ... }'?")):c.key&&"PrivateIdentifier"===c.key.type&&br(s,c)&&this.raiseRecoverable(c.key.start,"Identifier '#"+c.key.name+"' has already been declared"))}return this.strict=r,this.next(),l.length&&this.raise(this.start,"Decorators must be attached to a class element."),e.body=this.finishNode(a,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")}finally{this.inAbstractClass=n}},P.parseClassFunctionParams=function(){var e=this.tsTryParseTypeParameters(this.tsParseConstModifier),t=this.parseBindingList(i.parenR,!1,this.options.ecmaVersion>=8,!0);return e&&(t.typeParameters=e),t},P.parseMethod=function(e,t,n,r,s){var a=this.startNode(),o=this.yieldPos,l=this.awaitPos,c=this.awaitIdentPos;if(this.initFunction(a),this.options.ecmaVersion>=6&&(a.generator=e),this.options.ecmaVersion>=8&&(a.async=!!t),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(64|$r(t,a.generator)|(n?128:0)),this.expect(i.parenL),a.params=this.parseClassFunctionParams(),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(a,!1,!0,!1,{isClassMethod:r}),this.yieldPos=o,this.awaitPos=l,this.awaitIdentPos=c,s&&s.abstract&&a.body){var p=s.key;this.raise(s.start,xr.AbstractMethodHasImplementation({methodName:"Identifier"!==p.type||s.computed?"["+this.input.slice(p.start,p.end)+"]":p.name}))}return this.finishNode(a,"FunctionExpression")},t.parse=function(e,t){if(!1===t.locations)throw new Error("You have to enable options.locations while using acorn-typescript");t.locations=!0;var n=new this(t,e);return r&&(n.isAmbientContext=!0),n.parse()},t.parseExpressionAt=function(e,t,n){if(!1===n.locations)throw new Error("You have to enable options.locations while using acorn-typescript");n.locations=!0;var s=new this(n,e,t);return r&&(s.isAmbientContext=!0),s.nextToken(),s.parseExpression()},P.parseImportSpecifier=function(){if(this.ts_isContextual(h.type)){var t=this.startNode();return t.imported=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(t,!0,"type"===this.importOrExportOuterKind),this.finishNode(t,"ImportSpecifier")}var n=e.prototype.parseImportSpecifier.call(this);return n.importKind="value",n},P.parseExportSpecifier=function(t){var n=this.ts_isContextual(h.type);if(!this.match(i.string)&&n){var r=this.startNode();return r.local=this.parseModuleExportName(),this.parseTypeOnlyImportExportSpecifier(r,!1,"type"===this.importOrExportOuterKind),this.finishNode(r,"ExportSpecifier"),this.checkExport(t,r.exported,r.exported.start),r}var s=e.prototype.parseExportSpecifier.call(this,t);return s.exportKind="value",s},P.parseTypeOnlyImportExportSpecifier=function(t,n,r){var s,a=n?"imported":"local",i=n?"local":"exported",o=t[a],l=!1,c=!0,p=o.start;if(this.isContextual("as")){var u=this.parseIdent();if(this.isContextual("as")){var d=this.parseIdent();_(this.type)?(l=!0,o=u,s=n?this.parseIdent():this.parseModuleExportName(),c=!1):(s=d,c=!1)}else _(this.type)?(c=!1,s=n?this.parseIdent():this.parseModuleExportName()):(l=!0,o=u)}else _(this.type)&&(l=!0,n?(o=e.prototype.parseIdent.call(this,!0),this.isContextual("as")||this.checkUnreserved(o)):o=this.parseModuleExportName());l&&r&&this.raise(p,n?xr.TypeModifierIsUsedInTypeImports:xr.TypeModifierIsUsedInTypeExports),t[a]=o,t[i]=s,t[n?"importKind":"exportKind"]=l?"type":"value",c&&this.eatContextual("as")&&(t[i]=n?this.parseIdent():this.parseModuleExportName()),t[i]||(t[i]=this.copyNode(t[a])),n&&this.checkLValSimple(t[i],2)},P.raiseCommonCheck=function(t,n,r){return"Comma is not permitted after the rest element"===n?this.isAmbientContext&&this.match(i.comma)&&41===this.lookaheadCharCode()?void this.next():e.prototype.raise.call(this,t,n):r?e.prototype.raiseRecoverable.call(this,t,n):e.prototype.raise.call(this,t,n)},P.raiseRecoverable=function(e,t){return this.raiseCommonCheck(e,t,!0)},P.raise=function(e,t){return this.raiseCommonCheck(e,t,!0)},P.updateContext=function(t){var n=this.type;if(n==i.braceL){var r=this.curContext();r==m.tc_oTag?this.context.push(u.b_expr):r==m.tc_expr?this.context.push(u.b_tmpl):e.prototype.updateContext.call(this,t),this.exprAllowed=!0}else{if(n!==i.slash||t!==h.jsxTagStart)return e.prototype.updateContext.call(this,t);this.context.length-=2,this.context.push(m.tc_cTag),this.exprAllowed=!1}},P.jsx_parseOpeningElementAt=function(e,t){var n=this,r=this.startNodeAt(e,t),s=this.jsx_parseElementName();if(s&&(r.name=s),this.match(i.relational)||this.match(i.bitShift)){var a=this.tsTryParseAndCatch((function(){return n.tsParseTypeArgumentsInExpression()}));a&&(r.typeParameters=a)}for(r.attributes=[];this.type!==i.slash&&this.type!==h.jsxTagEnd;)r.attributes.push(this.jsx_parseAttribute());return r.selfClosing=this.eat(i.slash),this.expect(h.jsxTagEnd),this.finishNode(r,s?"JSXOpeningElement":"JSXOpeningFragment")},P.enterScope=function(t){t===fr&&this.importsStack.push([]),e.prototype.enterScope.call(this,t);var n=e.prototype.currentScope.call(this);n.types=[],n.enums=[],n.constEnums=[],n.classes=[],n.exportOnlyBindings=[]},P.exitScope=function(){e.prototype.currentScope.call(this).flags===fr&&this.importsStack.pop(),e.prototype.exitScope.call(this)},P.hasImport=function(e,t){var n=this.importsStack.length;if(this.importsStack[n-1].indexOf(e)>-1)return!0;if(!t&&n>1)for(var r=0;r-1)return!0;return!1},P.maybeExportDefined=function(e,t){this.inModule&&1&e.flags&&this.undefinedExports.delete(t)},P.isRedeclaredInScope=function(t,n,r){return!!(0&r)&&(2&r?t.lexical.indexOf(n)>-1||t.functions.indexOf(n)>-1||t.var.indexOf(n)>-1:3&r?t.lexical.indexOf(n)>-1||!e.prototype.treatFunctionsAsVarInScope.call(this,t)&&t.var.indexOf(n)>-1:t.lexical.indexOf(n)>-1&&!(32&t.flags&&t.lexical[0]===n)||!this.treatFunctionsAsVarInScope(t)&&t.functions.indexOf(n)>-1)},P.checkRedeclarationInScope=function(e,t,n,r){this.isRedeclaredInScope(e,t,n)&&this.raise(r,"Identifier '"+t+"' has already been declared.")},P.declareName=function(t,n,r){if(4096&n)return this.hasImport(t,!0)&&this.raise(r,"Identifier '"+t+"' has already been declared."),void this.importsStack[this.importsStack.length-1].push(t);var s=this.currentScope();if(1024&n)return this.maybeExportDefined(s,t),void s.exportOnlyBindings.push(t);e.prototype.declareName.call(this,t,n,r),0&n&&(0&n||(this.checkRedeclarationInScope(s,t,n,r),this.maybeExportDefined(s,t)),s.types.push(t)),256&n&&s.enums.push(t),512&n&&s.constEnums.push(t),128&n&&s.classes.push(t)},P.checkLocalExport=function(t){var n=t.name;if(!this.hasImport(n)){for(var r=this.scopeStack.length-1;r>=0;r--){var s=this.scopeStack[r];if(s.types.indexOf(n)>-1||s.exportOnlyBindings.indexOf(n)>-1)return}e.prototype.checkLocalExport.call(this,t)}},C=t,S=[{key:"acornTypeScript",get:function(){return s}}],(k=[{key:"acornTypeScript",get:function(){return s}}])&&ar(C.prototype,k),S&&ar(C,S),Object.defineProperty(C,"prototype",{writable:!1}),t}(t);return C}}({allowSatisfies:!0}));function Mr(e,t,n){const r=t?Lr:Yt,{onComment:s,add_comments:a}=Nr(e),i=r.prototype.parseStatement;let o;n&&(r.prototype.parseStatement=function(...e){const t=i.call(this,...e);return this.undefinedExports={},t});try{o=r.parse(e,{onComment:s,sourceType:"module",ecmaVersion:13,locations:!0})}finally{n&&(r.prototype.parseStatement=i)}return t&&Dr(e,o),a(o),o}function Or(e,t,n){const r=t?Lr:Yt,{onComment:s,add_comments:a}=Nr(e),i=r.parseExpressionAt(e,n,{onComment:s,sourceType:"module",ecmaVersion:13,locations:!0});return t&&Dr(e,i),a(i),i}function Nr(e){const n=[];return{onComment:(t,r,s,a)=>{if(t&&/\n/.test(r)){let t=s;for(;t>0&&"\n"!==e[t-1];)t-=1;let n=t;for(;/[ \t]/.test(e[n]);)n+=1;const a=e.slice(t,n);r=r.replace(new RegExp(`^${a}`,"gm"),"")}n.push({type:t?"Block":"Line",value:r,start:s,end:a})},add_comments(r){0!==n.length&&(t(r,null,{_(t,{next:r,path:s}){let a;for(;n[0]&&n[0].start=r.end)break;(t.trailingComments||=[]).push(e),n.shift(),e.end}else t.end<=n[0].start&&/^[,) \t]*$/.test(s)&&(t.trailingComments=[n.shift()])}}}}),n.length>0&&(n[0].start>=r.end||"Program"===r.type)&&(r.trailingComments||=[]).push(...n.splice(0)))}}}function Dr(e,n){return t(n,null,{_(t,n){if(delete t.loc.start.index,delete t.loc.end.index,"number"==typeof t.loc?.end){const e=de(t.loc.end);e&&(t.loc.end={line:e.line,column:e.column})}if(t.typeAnnotation&&(void 0===t.end||t.end`\nhttps://svelte.dev/e/declaration_duplicate_module_import")}function Ur(e){Br(e,"derived_invalid_export","Cannot export derived state from a module. To expose the current derived value, export a function returning its value\nhttps://svelte.dev/e/derived_invalid_export")}function zr(e){Br(e,"each_item_invalid_assignment","Cannot reassign or bind to each block argument in runes mode. Use the array and index variables instead (e.g. `array[i] = value` instead of `entry = value`)\nhttps://svelte.dev/e/each_item_invalid_assignment")}function Wr(e,t){Br(e,"export_undefined",`\`${t}\` is not defined\nhttps://svelte.dev/e/export_undefined`)}function Gr(e,t){Br(e,"global_reference_invalid",`\`${t}\` is an illegal variable name. To reference a global variable called \`${t}\`, use \`globalThis.${t}\`\nhttps://svelte.dev/e/global_reference_invalid`)}function Kr(e){Br(e,"props_illegal_name","Declaring or accessing a prop starting with `$$` is illegal (they are reserved for Svelte internals)\nhttps://svelte.dev/e/props_illegal_name")}function Xr(e){Br(e,"props_invalid_pattern","`$props()` assignment must not contain nested properties or computed keys\nhttps://svelte.dev/e/props_invalid_pattern")}function Jr(e,t){Br(e,"rune_invalid_arguments",`\`${t}\` cannot be called with arguments\nhttps://svelte.dev/e/rune_invalid_arguments`)}function Qr(e,t,n){Br(e,"rune_invalid_arguments_length",`\`${t}\` must be called with ${n}\nhttps://svelte.dev/e/rune_invalid_arguments_length`)}function Yr(e){Br(e,"rune_invalid_computed_property","Cannot access a computed property of a rune\nhttps://svelte.dev/e/rune_invalid_computed_property")}function Zr(e,t){Br(e,"rune_invalid_name",`\`${t}\` is not a valid rune\nhttps://svelte.dev/e/rune_invalid_name`)}function es(e,t){Br(e,"rune_removed",`The \`${t}\` rune has been removed\nhttps://svelte.dev/e/rune_removed`)}function ts(e,t,n){Br(e,"rune_renamed",`\`${t}\` is now \`${n}\`\nhttps://svelte.dev/e/rune_renamed`)}function ns(e,t){Br(e,"runes_mode_invalid_import",`${t} cannot be used in runes mode\nhttps://svelte.dev/e/runes_mode_invalid_import`)}function rs(e){Br(e,"snippet_parameter_assignment","Cannot reassign or bind to snippet parameter\nhttps://svelte.dev/e/snippet_parameter_assignment")}function ss(e){Br(e,"state_invalid_export","Cannot export state from a module if it is reassigned. Either export a function returning the state value or only mutate the state value's properties\nhttps://svelte.dev/e/state_invalid_export")}function as(e,t){Br(e,"state_invalid_placement",`\`${t}(...)\` can only be used as a variable declaration initializer or a class field\nhttps://svelte.dev/e/state_invalid_placement`)}function is(e){Br(e,"store_invalid_subscription","Cannot reference store value inside `