@eslint-sukka/eslint-plugin-stylistic 8.10.4 → 8.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.cjs +1 -1
  2. package/package.json +2 -2
package/dist/index.cjs CHANGED
@@ -1,4 +1,4 @@
1
- "use strict";let e,t,n;require("node:module");var r,i,s,a,o,l,p,c,u,f,d,m,h,g,y,x,T,S,b,E,k,v,A,w=require("node:process");function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch{}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}let O={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};for(let e of Object.keys(O))Object.freeze(O[e]);Object.freeze(O);let P=new Set(["parent","leadingComments","trailingComments"]);function I(e){return!P.has(e)&&"_"!==e[0]}function N(e,t){let n=t.range[0],r=e,i=!1;do for(let e of(i=!1,r.childScopes)){let t=e.block.range;if(t[0]<=n&&n<t[1]){r=e,i=!0;break}}while(i);return r}function L(e,t){let n="",r=e;for("string"==typeof t?n=t:(n=t.name,r=N(r,t));null!=r;){let e=r.set.get(n);if(null!=e)return e;r=r.upper}return null}function B(e){return t=>!e(t)}function D(e,t){return"Punctuator"===e.type&&e.value===t}function j(e){return D(e,"=>")}function R(e){return D(e,",")}function F(e){return D(e,";")}function M(e){return D(e,":")}function $(e){return D(e,"(")}function V(e){return D(e,")")}function q(e){return D(e,"[")}function Y(e){return D(e,"]")}function X(e){return D(e,"{")}function J(e){return D(e,"}")}function U(e){return["Block","Line","Shebang"].includes(e.type)}let W=B(j),K=B(R),H=B(F),z=B(M),G=B($),Q=B(V),Z=B(q),ee=B(Y),et=B(X),en=B(J),er=B(U);function ei(e,t){let n=e.parent,r=null,i=null;if("ArrowFunctionExpression"===e.type){let n=t.getTokenBefore(e.body,j);r=n.loc.start,i=n.loc.end}else{var s,a;r=n&&("Property"===n.type||"MethodDefinition"===n.type||"PropertyDefinition"===n.type)?n.loc.start:e.loc.start,i=(s=e,a=t,s.id?a.getTokenAfter(s.id,$):a.getFirstToken(s,$)).loc.start}return{start:{...r},end:{...i}}}let es="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ea=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),eo=new Set([Array.isArray,Array.of,Array.prototype.at,Array.prototype.concat,Array.prototype.entries,Array.prototype.every,Array.prototype.filter,Array.prototype.find,Array.prototype.findIndex,Array.prototype.flat,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.join,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.slice,Array.prototype.some,Array.prototype.toString,Array.prototype.values,"function"==typeof BigInt?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,Map,Map.prototype.entries,Map.prototype.get,Map.prototype.has,Map.prototype.keys,Map.prototype.values,...Object.getOwnPropertyNames(Math).filter(e=>"random"!==e).map(e=>Math[e]).filter(e=>"function"==typeof e),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Number.prototype.toExponential,Number.prototype.toFixed,Number.prototype.toPrecision,Number.prototype.toString,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,Set,Set.prototype.entries,Set.prototype.has,Set.prototype.keys,Set.prototype.values,String,String.fromCharCode,String.fromCodePoint,String.raw,String.prototype.at,String.prototype.charAt,String.prototype.charCodeAt,String.prototype.codePointAt,String.prototype.concat,String.prototype.endsWith,String.prototype.includes,String.prototype.indexOf,String.prototype.lastIndexOf,String.prototype.normalize,String.prototype.padEnd,String.prototype.padStart,String.prototype.slice,String.prototype.startsWith,String.prototype.substr,String.prototype.substring,String.prototype.toLowerCase,String.prototype.toString,String.prototype.toUpperCase,String.prototype.trim,String.prototype.trimEnd,String.prototype.trimLeft,String.prototype.trimRight,String.prototype.trimStart,Symbol.for,Symbol.keyFor,unescape].filter(e=>"function"==typeof e)),el=new Set([Object.freeze,Object.preventExtensions,Object.seal]),ep=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function ec(e,t){let n=[];for(let r=0;r<e.length;++r){let i=e[r];if(null==i)n.length=r+1;else if("SpreadElement"===i.type){let e=ef(i.argument,t);if(null==e)return null;n.push(...e.value)}else{let e=ef(i,t);if(null==e)return null;n.push(e.value)}}return n}let eu=Object.freeze({ArrayExpression(e,t){let n=ec(e.elements,t);return null!=n?{value:n}:null},AssignmentExpression:(e,t)=>"="===e.operator?ef(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let n=ef(e.left,t),r=ef(e.right,t);if(null!=n&&null!=r)switch(e.operator){case"==":return{value:n.value==r.value};case"!=":return{value:n.value!=r.value};case"===":return{value:n.value===r.value};case"!==":return{value:n.value!==r.value};case"<":return{value:n.value<r.value};case"<=":return{value:n.value<=r.value};case">":return{value:n.value>r.value};case">=":return{value:n.value>=r.value};case"<<":return{value:n.value<<r.value};case">>":return{value:n.value>>r.value};case">>>":return{value:n.value>>>r.value};case"+":return{value:n.value+r.value};case"-":return{value:n.value-r.value};case"*":return{value:n.value*r.value};case"/":return{value:n.value/r.value};case"%":return{value:n.value%r.value};case"**":return{value:n.value**r.value};case"|":return{value:n.value|r.value};case"^":return{value:n.value^r.value};case"&":return{value:n.value&r.value}}return null},CallExpression(e,t){let n=e.callee,r=ec(e.arguments,t);if(null!=r)if("MemberExpression"===n.type){if("PrivateIdentifier"===n.property.type)return null;let i=ef(n.object,t);if(null!=i){if(null==i.value&&(i.optional||e.optional))return{value:void 0,optional:!0};let s=ed(n,t);if(null!=s){let e=i.value,t=s.value;if(eo.has(e[t]))return{value:e[t](...r)};if(el.has(e[t]))return{value:r[0]}}}}else{let i=ef(n,t);if(null!=i){if(null==i.value&&e.optional)return{value:void 0,optional:!0};let t=i.value;if(eo.has(t))return{value:t(...r)};if(el.has(t))return{value:r[0]}}}return null},ConditionalExpression(e,t){let n=ef(e.test,t);return null!=n?n.value?ef(e.consequent,t):ef(e.alternate,t):null},ExpressionStatement:(e,t)=>ef(e.expression,t),Identifier(e,t){if(null!=t){let n=L(t,e);if(null!=n){if(null!=n&&0===n.defs.length&&ea.has(n.name)&&n.name in es)return{value:es[n.name]};if(function(e){let t,n,r;if(1!==e.defs.length)return!1;let i=e.defs[0];return!!(i.parent&&"Variable"===i.type&&("const"===i.parent.kind||(n=(t=e.references).filter(e=>e.init).length,r=t.filter(e=>e.isReadOnly()).length,1===n&&r+n===t.length)))}(n)){let e=n.defs[0];if("Identifier"===e.node.id.type){let r=ef(e.node.init,t);return r&&"object"==typeof r.value&&null!==r.value&&function(e,t){for(let n of e.references){let e=n.identifier;for(;e&&e.parent&&"MemberExpression"===e.parent.type;)e=e.parent;if(e&&e.parent&&("AssignmentExpression"===e.parent.type&&e.parent.left===e||"UpdateExpression"===e.parent.type&&e.parent.argument===e||"CallExpression"===e.parent.type&&e.parent.callee===e&&"MemberExpression"===e.type&&function(e){if(null==e||null==e.value)return!1;let t=e.value;return"copyWithin"===t||"fill"===t||"pop"===t||"push"===t||"reverse"===t||"shift"===t||"sort"===t||"splice"===t||"unshift"===t}(ed(e,t))))return!0}return!1}(n,t)?null:r}}}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let n=ef(e.left,t);if(null!=n){if("||"===e.operator&&!0==!!n.value||"&&"===e.operator&&!1==!!n.value||"??"===e.operator&&null!=n.value)return n;let r=ef(e.right,t);if(null!=r)return r}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let n=ef(e.object,t);if(null!=n){if(null==n.value&&(n.optional||e.optional))return{value:void 0,optional:!0};let r=ed(e,t);if(null!=r){let e;if(null==(e=function(e,t){let n=e;for(;("object"==typeof n||"function"==typeof n)&&null!==n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}return null}(n.value,r.value))||null==e.get)return{value:n.value[r.value]};for(let[e,t]of ep)if(n.value instanceof e&&t.has(r.value))return{value:n.value[r.value]}}}return null},ChainExpression(e,t){let n=ef(e.expression,t);return null!=n?{value:n.value}:null},NewExpression(e,t){let n=ef(e.callee,t),r=ec(e.arguments,t);if(null!=n&&null!=r){let e=n.value;if(eo.has(e))return{value:new e(...r)}}return null},ObjectExpression(e,t){let n={};for(let r of e.properties)if("Property"===r.type){if("init"!==r.kind)return null;let e=ed(r,t),i=ef(r.value,t);if(null==e||null==i)return null;n[e.value]=i.value}else{if("SpreadElement"!==r.type&&"ExperimentalSpreadProperty"!==r.type)return null;let e=ef(r.argument,t);if(null==e)return null;Object.assign(n,e.value)}return{value:n}},SequenceExpression:(e,t)=>ef(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let n=ef(e.tag,t),r=ec(e.quasi.expressions,t);if(null!=n&&null!=r){let t=n.value,i=e.quasi.quasis.map(e=>e.value.cooked);if(i.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(i,...r)}}return null},TemplateLiteral(e,t){let n=ec(e.expressions,t);if(null!=n){let t=e.quasis[0].value.cooked;for(let r=0;r<n.length;++r)t+=n[r],t+=e.quasis[r+1].value.cooked;return{value:t}}return null},UnaryExpression(e,t){if("delete"===e.operator)return null;if("void"===e.operator)return{value:void 0};let n=ef(e.argument,t);if(null!=n)switch(e.operator){case"-":return{value:-n.value};case"+":return{value:+n.value};case"!":return{value:!n.value};case"~":return{value:~n.value};case"typeof":return{value:typeof n.value}}return null},TSAsExpression:(e,t)=>ef(e.expression,t),TSSatisfiesExpression:(e,t)=>ef(e.expression,t),TSTypeAssertion:(e,t)=>ef(e.expression,t),TSNonNullExpression:(e,t)=>ef(e.expression,t),TSInstantiationExpression:(e,t)=>ef(e.expression,t)});function ef(e,t){return null!=e&&Object.hasOwnProperty.call(eu,e.type)?eu[e.type](e,t):null}function ed(e,t){let n="Property"===e.type?e.key:e.property;return e.computed?ef(n,t):"Identifier"===n.type?{value:n.name}:"Literal"===n.type?n.bigint?{value:n.bigint}:{value:String(n.value)}:null}function em(e,t=null){try{return ef(e,t)}catch(e){return null}}function eh(e,t=null){if(e&&"Literal"===e.type&&null===e.value){if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint}let n=em(e,t);if(n)try{return String(n.value)}catch{}return null}function eg(e,t){switch(e.type){case"MemberExpression":if(e.computed)return eh(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return eh(e.key,t);if("Literal"===e.key.type)return String(e.key.value);if("PrivateIdentifier"===e.key.type)break;return e.key.name}return null}function ey(e,t){let n=e.parent;if(!n)return"";let r=[],i="Property"===n.type&&n.value===e,s="MethodDefinition"===n.type&&n.value===e,a="PropertyDefinition"===n.type&&n.value===e;if((s||a)&&(n.static&&r.push("static"),"PrivateIdentifier"===n.key.type&&r.push("private")),e.async&&r.push("async"),e.generator&&r.push("generator"),i||s){if("constructor"===n.kind)return"constructor";"get"===n.kind?r.push("getter"):"set"===n.kind?r.push("setter"):r.push("method")}else a?r.push("method"):("ArrowFunctionExpression"===e.type&&r.push("arrow"),r.push("function"));if(i||s||a)if("PrivateIdentifier"===n.key.type)r.push(`#${n.key.name}`);else{let e=eg(n);if(e)r.push(`'${e}'`);else if(t){let e=t.getText(n.key);e.includes("\n")||r.push(`[${e}]`)}}else e.id?r.push(`'${e.id.name}'`):"VariableDeclarator"===n.type&&n.id&&"Identifier"===n.id.type?r.push(`'${n.id.name}'`):("AssignmentExpression"===n.type||"AssignmentPattern"===n.type)&&n.left&&"Identifier"===n.left.type?r.push(`'${n.left.name}'`):"ExportDefaultDeclaration"===n.type&&n.declaration===e&&r.push("'default'");return r.join(" ")}let ex=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),eT=Object.freeze(new Set(["-","+","!","~"]));function eS(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}let eb=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,n){let{type:r}=e;return"function"==typeof this[r]?this[r](e,t,n):this.$visitChildren(e,t,n)},$visitChildren(e,t,n){let{type:r}=e;for(let i of n[r]||Object.keys(e).filter(I)){let r=e[i];if(Array.isArray(r)){for(let e of r)if(eS(e)&&this.$visit(e,t,n))return!0}else if(eS(r)&&this.$visit(r,t,n))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,n){return!!(t.considerImplicitTypeConversion&&ex.has(e.operator))&&("Literal"!==e.left.type||"Literal"!==e.right.type)||this.$visitChildren(e,t,n)},CallExpression:()=>!0,FunctionExpression:()=>!1,ImportExpression:()=>!0,MemberExpression(e,t,n){return!!t.considerGetters||!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.property.type||this.$visitChildren(e,t,n)},MethodDefinition(e,t,n){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,n)},NewExpression:()=>!0,Property(e,t,n){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,n)},PropertyDefinition(e,t,n){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,n)},UnaryExpression(e,t,n){return!!("delete"===e.operator||t.considerImplicitTypeConversion&&eT.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,n)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function eE(e,t,n={}){let{considerGetters:r=!1,considerImplicitTypeConversion:i=!1}=n;return eb.$visit(e,{considerGetters:r,considerImplicitTypeConversion:i},t.visitorKeys||O)}function ek(e,t,n){let r,i,s,a,o;if("number"==typeof e){if(r=0|e,i=t,s=n,!(r>=1))throw TypeError("'times' should be a positive integer.")}else r=1,i=e,s=t;if(null==i||null==i.parent||"CatchClause"===i.parent.type&&i.parent.param===i)return!1;a=o=i;do a=s.getTokenBefore(a),o=s.getTokenAfter(o);while(null!=a&&null!=o&&$(a)&&V(o)&&a!==function(e,t){let n=e.parent;if(!n)return null;switch(n.type){case"CallExpression":case"NewExpression":if(1===n.arguments.length&&n.arguments[0]===e)return t.getTokenAfter(n.typeArguments||n.typeParameters||n.callee,$);return null;case"DoWhileStatement":if(n.test===e)return t.getTokenAfter(n.body,$);return null;case"IfStatement":case"WhileStatement":if(n.test===e)return t.getFirstToken(n,1);return null;case"ImportExpression":if(n.source===e)return t.getFirstToken(n,1);return null;case"SwitchStatement":if(n.discriminant===e)return t.getFirstToken(n,1);return null;case"WithStatement":if(n.object===e)return t.getFirstToken(n,1);return null;default:return null}}(i,s)&&--r>0);return 0===r}let ev=/\$(?:[$&`']|[1-9][0-9]?)/gu,eA=new WeakMap;class ew{constructor(e,t={}){let{escaped:n=!1}=t;if(!(e instanceof RegExp))throw TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw Error("'pattern' should contains 'g' flag.");eA.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!n})}*execAll(e){let{pattern:t,escaped:n}=eA.get(this),r=null,i=0;for(t.lastIndex=0;null!=(r=t.exec(e));)(n||!function(e,t){let n=!1;for(let r=t-1;r>=0&&92===e.charCodeAt(r);--r)n=!n;return n}(e,r.index))&&(i=t.lastIndex,yield r,t.lastIndex=i)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,n){let r=[],i=0;for(let s of e.execAll(t))r.push(t.slice(i,s.index)),r.push(String(n(...s,s.index,s.input))),i=s.index+s[0].length;return r.push(t.slice(i)),r.join("")}(this,String(e),t):function(e,t,n){let r=[],i=0;for(let s of e.execAll(t))r.push(t.slice(i,s.index)),r.push(n.replace(ev,e=>(function(e,n){switch(e){case"$$":return"$";case"$&":return n[0];case"$`":return t.slice(0,n.index);case"$'":return t.slice(n.index+n[0].length);default:{let t=e.slice(1);if(t in n)return n[t];return e}}})(e,s))),i=s.index+s[0].length;return r.push(t.slice(i)),r.join("")}(this,String(e),String(t))}}let eC=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,e_=Function.call.bind(Object.hasOwnProperty),eO=Symbol("read"),eP=Symbol("call"),eI=Symbol("construct"),eN=Symbol("esm"),eL={require:{[eP]:!0}};function eB(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}class eD{constructor(e,t={}){let{mode:n="strict",globalObjectNames:r=["global","globalThis","self","window"]}=t;this.variableStack=[],this.globalScope=e,this.mode=n,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let n=e[t],r=[t],i=this.globalScope.set.get(t);eB(i)||(yield*this._iterateVariableReferences(i,r,n,!0))}for(let t of this.globalObjectNames){let n=[],r=this.globalScope.set.get(t);eB(r)||(yield*this._iterateVariableReferences(r,n,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(eL)){let n=eh(t.arguments[0]);if(null==n||!e_(e,n))continue;let r=e[n],i=[n];r[eO]&&(yield{node:t,path:i,type:eO,info:r[eO]}),yield*this._iteratePropertyReferences(t,i,r)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!eC.test(t.type)||null==t.source)continue;let n=t.source.value;if(!e_(e,n))continue;let r=e[n],i=[n];if(r[eO]&&(yield{node:t,path:i,type:eO,info:r[eO]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(r)){let n=r[e];n[eO]&&(yield{node:t,path:i.concat(e),type:eO,info:n[eO]})}else for(let e of t.specifiers){let t=e_(r,eN),n=this._iterateImportReferences(e,i,t?r:"legacy"===this.mode?{default:r,...r}:{default:r});if(t)yield*n;else for(let e of n)e.path=e.path.filter(ej),(e.path.length>=2||e.type!==eO)&&(yield e)}}}*iteratePropertyReferences(e,t){yield*this._iteratePropertyReferences(e,[],t)}*_iterateVariableReferences(e,t,n,r){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let i of e.references){if(!i.isRead())continue;let e=i.identifier;r&&n[eO]&&(yield{node:e,path:t,type:eO,info:n[eO]}),yield*this._iteratePropertyReferences(e,t,n)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,n){let r=e;for(;function(e){let t=e.parent;if(t)switch(t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":case"TSInstantiationExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e}return!1}(r);)r=r.parent;let i=r.parent;if(i){if("MemberExpression"===i.type){if(i.object===r){let e=eg(i);if(null==e||!e_(n,e))return;t=t.concat(e);let r=n[e];r[eO]&&(yield{node:i,path:t,type:eO,info:r[eO]}),yield*this._iteratePropertyReferences(i,t,r)}return}if("CallExpression"===i.type){i.callee===r&&n[eP]&&(yield{node:i,path:t,type:eP,info:n[eP]});return}if("NewExpression"===i.type){i.callee===r&&n[eI]&&(yield{node:i,path:t,type:eI,info:n[eI]});return}if("AssignmentExpression"===i.type){i.right===r&&(yield*this._iterateLhsReferences(i.left,t,n),yield*this._iteratePropertyReferences(i,t,n));return}if("AssignmentPattern"===i.type){i.right===r&&(yield*this._iterateLhsReferences(i.left,t,n));return}"VariableDeclarator"===i.type&&i.init===r&&(yield*this._iterateLhsReferences(i.id,t,n))}}*_iterateLhsReferences(e,t,n){if("Identifier"===e.type){let r=L(this.globalScope,e);null!=r&&(yield*this._iterateVariableReferences(r,t,n,!1));return}if("ObjectPattern"===e.type){for(let r of e.properties){let e=eg(r);if(null==e||!e_(n,e))continue;let i=t.concat(e),s=n[e];s[eO]&&(yield{node:r,path:i,type:eO,info:s[eO]}),yield*this._iterateLhsReferences(r.value,i,s)}return}"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,n))}*_iterateImportReferences(e,t,n){let r=e.type;if("ImportSpecifier"===r||"ImportDefaultSpecifier"===r){let i="ImportDefaultSpecifier"===r?"default":"Identifier"===e.imported.type?e.imported.name:e.imported.value;if(!e_(n,i))return;t=t.concat(i);let s=n[i];s[eO]&&(yield{node:e,path:t,type:eO,info:s[eO]}),yield*this._iterateVariableReferences(L(this.globalScope,e.local),t,s,!1);return}if("ImportNamespaceSpecifier"===r)return void(yield*this._iterateVariableReferences(L(this.globalScope,e.local),t,n,!1));if("ExportSpecifier"===r){let r="Identifier"===e.local.type?e.local.name:e.local.value;if(!e_(n,r))return;t=t.concat(r);let i=n[r];i[eO]&&(yield{node:e,path:t,type:eO,info:i[eO]})}}}function ej(e,t){return 1!==t||"default"!==e}eD.READ=eO,eD.CALL=eP,eD.CONSTRUCT=eI,eD.ESM=eN;var eR=Object.freeze({__proto__:null,CALL:eP,CONSTRUCT:eI,ESM:eN,PatternMatcher:ew,READ:eO,ReferenceTracker:eD,default:{CALL:eP,CONSTRUCT:eI,ESM:eN,findVariable:L,getFunctionHeadLocation:ei,getFunctionNameWithKind:ey,getInnermostScope:N,getPropertyName:eg,getStaticValue:em,getStringIfConstant:eh,hasSideEffect:eE,isArrowToken:j,isClosingBraceToken:J,isClosingBracketToken:Y,isClosingParenToken:V,isColonToken:M,isCommaToken:R,isCommentToken:U,isNotArrowToken:W,isNotClosingBraceToken:en,isNotClosingBracketToken:ee,isNotClosingParenToken:Q,isNotColonToken:z,isNotCommaToken:K,isNotCommentToken:er,isNotOpeningBraceToken:et,isNotOpeningBracketToken:Z,isNotOpeningParenToken:G,isNotSemicolonToken:H,isOpeningBraceToken:X,isOpeningBracketToken:q,isOpeningParenToken:$,isParenthesized:ek,isSemicolonToken:F,PatternMatcher:ew,READ:eO,ReferenceTracker:eD},findVariable:L,getFunctionHeadLocation:ei,getFunctionNameWithKind:ey,getInnermostScope:N,getPropertyName:eg,getStaticValue:em,getStringIfConstant:eh,hasSideEffect:eE,isArrowToken:j,isClosingBraceToken:J,isClosingBracketToken:Y,isClosingParenToken:V,isColonToken:M,isCommaToken:R,isCommentToken:U,isNotArrowToken:W,isNotClosingBraceToken:en,isNotClosingBracketToken:ee,isNotClosingParenToken:Q,isNotColonToken:z,isNotCommaToken:K,isNotCommentToken:er,isNotOpeningBraceToken:et,isNotOpeningBracketToken:Z,isNotOpeningParenToken:G,isNotSemicolonToken:H,isOpeningBraceToken:X,isOpeningBracketToken:q,isOpeningParenToken:$,isParenthesized:ek,isSemicolonToken:F}),eF=_(eR),eM={},e$={};function eV(){var e,t,n,r;return a?e$:(a=1,Object.defineProperty(e$,"__esModule",{value:!0}),e$.AST_TOKEN_TYPES=e$.AST_NODE_TYPES=void 0,(n=e||(e$.AST_NODE_TYPES=e={})).AccessorProperty="AccessorProperty",n.ArrayExpression="ArrayExpression",n.ArrayPattern="ArrayPattern",n.ArrowFunctionExpression="ArrowFunctionExpression",n.AssignmentExpression="AssignmentExpression",n.AssignmentPattern="AssignmentPattern",n.AwaitExpression="AwaitExpression",n.BinaryExpression="BinaryExpression",n.BlockStatement="BlockStatement",n.BreakStatement="BreakStatement",n.CallExpression="CallExpression",n.CatchClause="CatchClause",n.ChainExpression="ChainExpression",n.ClassBody="ClassBody",n.ClassDeclaration="ClassDeclaration",n.ClassExpression="ClassExpression",n.ConditionalExpression="ConditionalExpression",n.ContinueStatement="ContinueStatement",n.DebuggerStatement="DebuggerStatement",n.Decorator="Decorator",n.DoWhileStatement="DoWhileStatement",n.EmptyStatement="EmptyStatement",n.ExportAllDeclaration="ExportAllDeclaration",n.ExportDefaultDeclaration="ExportDefaultDeclaration",n.ExportNamedDeclaration="ExportNamedDeclaration",n.ExportSpecifier="ExportSpecifier",n.ExpressionStatement="ExpressionStatement",n.ForInStatement="ForInStatement",n.ForOfStatement="ForOfStatement",n.ForStatement="ForStatement",n.FunctionDeclaration="FunctionDeclaration",n.FunctionExpression="FunctionExpression",n.Identifier="Identifier",n.IfStatement="IfStatement",n.ImportAttribute="ImportAttribute",n.ImportDeclaration="ImportDeclaration",n.ImportDefaultSpecifier="ImportDefaultSpecifier",n.ImportExpression="ImportExpression",n.ImportNamespaceSpecifier="ImportNamespaceSpecifier",n.ImportSpecifier="ImportSpecifier",n.JSXAttribute="JSXAttribute",n.JSXClosingElement="JSXClosingElement",n.JSXClosingFragment="JSXClosingFragment",n.JSXElement="JSXElement",n.JSXEmptyExpression="JSXEmptyExpression",n.JSXExpressionContainer="JSXExpressionContainer",n.JSXFragment="JSXFragment",n.JSXIdentifier="JSXIdentifier",n.JSXMemberExpression="JSXMemberExpression",n.JSXNamespacedName="JSXNamespacedName",n.JSXOpeningElement="JSXOpeningElement",n.JSXOpeningFragment="JSXOpeningFragment",n.JSXSpreadAttribute="JSXSpreadAttribute",n.JSXSpreadChild="JSXSpreadChild",n.JSXText="JSXText",n.LabeledStatement="LabeledStatement",n.Literal="Literal",n.LogicalExpression="LogicalExpression",n.MemberExpression="MemberExpression",n.MetaProperty="MetaProperty",n.MethodDefinition="MethodDefinition",n.NewExpression="NewExpression",n.ObjectExpression="ObjectExpression",n.ObjectPattern="ObjectPattern",n.PrivateIdentifier="PrivateIdentifier",n.Program="Program",n.Property="Property",n.PropertyDefinition="PropertyDefinition",n.RestElement="RestElement",n.ReturnStatement="ReturnStatement",n.SequenceExpression="SequenceExpression",n.SpreadElement="SpreadElement",n.StaticBlock="StaticBlock",n.Super="Super",n.SwitchCase="SwitchCase",n.SwitchStatement="SwitchStatement",n.TaggedTemplateExpression="TaggedTemplateExpression",n.TemplateElement="TemplateElement",n.TemplateLiteral="TemplateLiteral",n.ThisExpression="ThisExpression",n.ThrowStatement="ThrowStatement",n.TryStatement="TryStatement",n.UnaryExpression="UnaryExpression",n.UpdateExpression="UpdateExpression",n.VariableDeclaration="VariableDeclaration",n.VariableDeclarator="VariableDeclarator",n.WhileStatement="WhileStatement",n.WithStatement="WithStatement",n.YieldExpression="YieldExpression",n.TSAbstractAccessorProperty="TSAbstractAccessorProperty",n.TSAbstractKeyword="TSAbstractKeyword",n.TSAbstractMethodDefinition="TSAbstractMethodDefinition",n.TSAbstractPropertyDefinition="TSAbstractPropertyDefinition",n.TSAnyKeyword="TSAnyKeyword",n.TSArrayType="TSArrayType",n.TSAsExpression="TSAsExpression",n.TSAsyncKeyword="TSAsyncKeyword",n.TSBigIntKeyword="TSBigIntKeyword",n.TSBooleanKeyword="TSBooleanKeyword",n.TSCallSignatureDeclaration="TSCallSignatureDeclaration",n.TSClassImplements="TSClassImplements",n.TSConditionalType="TSConditionalType",n.TSConstructorType="TSConstructorType",n.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",n.TSDeclareFunction="TSDeclareFunction",n.TSDeclareKeyword="TSDeclareKeyword",n.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",n.TSEnumBody="TSEnumBody",n.TSEnumDeclaration="TSEnumDeclaration",n.TSEnumMember="TSEnumMember",n.TSExportAssignment="TSExportAssignment",n.TSExportKeyword="TSExportKeyword",n.TSExternalModuleReference="TSExternalModuleReference",n.TSFunctionType="TSFunctionType",n.TSImportEqualsDeclaration="TSImportEqualsDeclaration",n.TSImportType="TSImportType",n.TSIndexedAccessType="TSIndexedAccessType",n.TSIndexSignature="TSIndexSignature",n.TSInferType="TSInferType",n.TSInstantiationExpression="TSInstantiationExpression",n.TSInterfaceBody="TSInterfaceBody",n.TSInterfaceDeclaration="TSInterfaceDeclaration",n.TSInterfaceHeritage="TSInterfaceHeritage",n.TSIntersectionType="TSIntersectionType",n.TSIntrinsicKeyword="TSIntrinsicKeyword",n.TSLiteralType="TSLiteralType",n.TSMappedType="TSMappedType",n.TSMethodSignature="TSMethodSignature",n.TSModuleBlock="TSModuleBlock",n.TSModuleDeclaration="TSModuleDeclaration",n.TSNamedTupleMember="TSNamedTupleMember",n.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",n.TSNeverKeyword="TSNeverKeyword",n.TSNonNullExpression="TSNonNullExpression",n.TSNullKeyword="TSNullKeyword",n.TSNumberKeyword="TSNumberKeyword",n.TSObjectKeyword="TSObjectKeyword",n.TSOptionalType="TSOptionalType",n.TSParameterProperty="TSParameterProperty",n.TSPrivateKeyword="TSPrivateKeyword",n.TSPropertySignature="TSPropertySignature",n.TSProtectedKeyword="TSProtectedKeyword",n.TSPublicKeyword="TSPublicKeyword",n.TSQualifiedName="TSQualifiedName",n.TSReadonlyKeyword="TSReadonlyKeyword",n.TSRestType="TSRestType",n.TSSatisfiesExpression="TSSatisfiesExpression",n.TSStaticKeyword="TSStaticKeyword",n.TSStringKeyword="TSStringKeyword",n.TSSymbolKeyword="TSSymbolKeyword",n.TSTemplateLiteralType="TSTemplateLiteralType",n.TSThisType="TSThisType",n.TSTupleType="TSTupleType",n.TSTypeAliasDeclaration="TSTypeAliasDeclaration",n.TSTypeAnnotation="TSTypeAnnotation",n.TSTypeAssertion="TSTypeAssertion",n.TSTypeLiteral="TSTypeLiteral",n.TSTypeOperator="TSTypeOperator",n.TSTypeParameter="TSTypeParameter",n.TSTypeParameterDeclaration="TSTypeParameterDeclaration",n.TSTypeParameterInstantiation="TSTypeParameterInstantiation",n.TSTypePredicate="TSTypePredicate",n.TSTypeQuery="TSTypeQuery",n.TSTypeReference="TSTypeReference",n.TSUndefinedKeyword="TSUndefinedKeyword",n.TSUnionType="TSUnionType",n.TSUnknownKeyword="TSUnknownKeyword",n.TSVoidKeyword="TSVoidKeyword",(r=t||(e$.AST_TOKEN_TYPES=t={})).Boolean="Boolean",r.Identifier="Identifier",r.JSXIdentifier="JSXIdentifier",r.PrivateIdentifier="PrivateIdentifier",r.JSXText="JSXText",r.Keyword="Keyword",r.Null="Null",r.Numeric="Numeric",r.Punctuator="Punctuator",r.RegularExpression="RegularExpression",r.String="String",r.Template="Template",r.Block="Block",r.Line="Line",e$)}var eq={},eY={},eX={};function eJ(){var e,t,n;return c?eM:(c=1,e=eM&&eM.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=eM&&eM.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(eM,"__esModule",{value:!0}),eM.AST_TOKEN_TYPES=eM.AST_NODE_TYPES=void 0,n=eV(),Object.defineProperty(eM,"AST_NODE_TYPES",{enumerable:!0,get:function(){return n.AST_NODE_TYPES}}),Object.defineProperty(eM,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return n.AST_TOKEN_TYPES}}),t((o||(o=1,Object.defineProperty(eq,"__esModule",{value:!0})),eq),eM),t((l||(l=1,Object.defineProperty(eY,"__esModule",{value:!0})),eY),eM),t(function(){if(p)return eX;p=1;var e,t=eX&&eX.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=eX&&eX.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=eX&&eX.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var s=e(r),a=0;a<s.length;a++)"default"!==s[a]&&t(i,r,s[a]);return n(i,r),i});return Object.defineProperty(eX,"__esModule",{value:!0}),eX.TSESTree=void 0,eX.TSESTree=r(eV()),eX}(),eM),eM)}var eU=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),eW=eU(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),a=0;a<s.length;a++)"default"!==s[a]&&n(i,e,s[a]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.isParenthesized=e.hasSideEffect=e.getStringIfConstant=e.getStaticValue=e.getPropertyName=e.getFunctionNameWithKind=e.getFunctionHeadLocation=void 0;let s=i(eF);e.getFunctionHeadLocation=s.getFunctionHeadLocation,e.getFunctionNameWithKind=s.getFunctionNameWithKind,e.getPropertyName=s.getPropertyName,e.getStaticValue=s.getStaticValue,e.getStringIfConstant=s.getStringIfConstant,e.hasSideEffect=s.hasSideEffect,e.isParenthesized=s.isParenthesized}),eK=eU(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),a=0;a<s.length;a++)"default"!==s[a]&&n(i,e,s[a]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.PatternMatcher=void 0,e.PatternMatcher=i(eF).PatternMatcher}),eH=eU(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),a=0;a<s.length;a++)"default"!==s[a]&&n(i,e,s[a]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.isNotSemicolonToken=e.isSemicolonToken=e.isNotOpeningParenToken=e.isOpeningParenToken=e.isNotOpeningBracketToken=e.isOpeningBracketToken=e.isNotOpeningBraceToken=e.isOpeningBraceToken=e.isNotCommentToken=e.isCommentToken=e.isNotCommaToken=e.isCommaToken=e.isNotColonToken=e.isColonToken=e.isNotClosingParenToken=e.isClosingParenToken=e.isNotClosingBracketToken=e.isClosingBracketToken=e.isNotClosingBraceToken=e.isClosingBraceToken=e.isNotArrowToken=e.isArrowToken=void 0;let s=i(eF);e.isArrowToken=s.isArrowToken,e.isNotArrowToken=s.isNotArrowToken,e.isClosingBraceToken=s.isClosingBraceToken,e.isNotClosingBraceToken=s.isNotClosingBraceToken,e.isClosingBracketToken=s.isClosingBracketToken,e.isNotClosingBracketToken=s.isNotClosingBracketToken,e.isClosingParenToken=s.isClosingParenToken,e.isNotClosingParenToken=s.isNotClosingParenToken,e.isColonToken=s.isColonToken,e.isNotColonToken=s.isNotColonToken,e.isCommaToken=s.isCommaToken,e.isNotCommaToken=s.isNotCommaToken,e.isCommentToken=s.isCommentToken,e.isNotCommentToken=s.isNotCommentToken,e.isOpeningBraceToken=s.isOpeningBraceToken,e.isNotOpeningBraceToken=s.isNotOpeningBraceToken,e.isOpeningBracketToken=s.isOpeningBracketToken,e.isNotOpeningBracketToken=s.isNotOpeningBracketToken,e.isOpeningParenToken=s.isOpeningParenToken,e.isNotOpeningParenToken=s.isNotOpeningParenToken,e.isSemicolonToken=s.isSemicolonToken,e.isNotSemicolonToken=s.isNotSemicolonToken}),ez=eU(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),a=0;a<s.length;a++)"default"!==s[a]&&n(i,e,s[a]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.ReferenceTracker=void 0;let s=i(eF);s.ReferenceTracker.READ,s.ReferenceTracker.CALL,s.ReferenceTracker.CONSTRUCT,s.ReferenceTracker.ESM,e.ReferenceTracker=s.ReferenceTracker}),eG=eU(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),a=0;a<s.length;a++)"default"!==s[a]&&n(i,e,s[a]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.getInnermostScope=e.findVariable=void 0;let s=i(eF);e.findVariable=s.findVariable,e.getInnermostScope=s.getInnermostScope}),eQ=eU(e=>{var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(eW(),e),n(eK(),e),n(eH(),e),n(ez(),e),n(eG(),e)}),eZ=eU(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isNotTokenOfTypeWithConditions=e.isTokenOfTypeWithConditions=e.isNodeOfTypeWithConditions=e.isNodeOfTypes=e.isNodeOfType=void 0,e.isNodeOfType=e=>t=>t?.type===e,e.isNodeOfTypes=e=>t=>!!t&&e.includes(t.type),e.isNodeOfTypeWithConditions=(e,t)=>{let n=Object.entries(t);return t=>t?.type===e&&n.every(([e,n])=>t[e]===n)},e.isTokenOfTypeWithConditions=(e,t)=>{let n=Object.entries(t);return t=>t?.type===e&&n.every(([e,n])=>t[e]===n)},e.isNotTokenOfTypeWithConditions=(t,n)=>r=>!(0,e.isTokenOfTypeWithConditions)(t,n)(r)}),e0=eU(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LINEBREAK_MATCHER=void 0,e.isTokenOnSameLine=function(e,t){return e.loc.end.line===t.loc.start.line},e.LINEBREAK_MATCHER=/\r\n|[\r\n\u2028\u2029]/}),e1=eU(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TSESTree=e.AST_TOKEN_TYPES=e.AST_NODE_TYPES=void 0;var t=eJ();Object.defineProperty(e,"AST_NODE_TYPES",{enumerable:!0,get:function(){return t.AST_NODE_TYPES}}),Object.defineProperty(e,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return t.AST_TOKEN_TYPES}}),Object.defineProperty(e,"TSESTree",{enumerable:!0,get:function(){return t.TSESTree}})}),e2=eU(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isLoop=e.isImportKeyword=e.isTypeKeyword=e.isAwaitKeyword=e.isAwaitExpression=e.isIdentifier=e.isConstructor=e.isClassOrTypeElement=e.isTSConstructorType=e.isTSFunctionType=e.isFunctionOrFunctionType=e.isFunctionType=e.isFunction=e.isVariableDeclarator=e.isTypeAssertion=e.isLogicalOrOperator=e.isOptionalCallExpression=e.isNotNonNullAssertionPunctuator=e.isNonNullAssertionPunctuator=e.isNotOptionalChainPunctuator=e.isOptionalChainPunctuator=void 0,e.isSetter=function(e){return!!e&&(e.type===t.AST_NODE_TYPES.MethodDefinition||e.type===t.AST_NODE_TYPES.Property)&&"set"===e.kind};let t=e1(),n=eZ();e.isOptionalChainPunctuator=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"?."}),e.isNotOptionalChainPunctuator=(0,n.isNotTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"?."}),e.isNonNullAssertionPunctuator=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"!"}),e.isNotNonNullAssertionPunctuator=(0,n.isNotTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"!"}),e.isOptionalCallExpression=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.CallExpression,{optional:!0}),e.isLogicalOrOperator=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.LogicalExpression,{operator:"||"}),e.isTypeAssertion=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.TSAsExpression,t.AST_NODE_TYPES.TSTypeAssertion]),e.isVariableDeclarator=(0,n.isNodeOfType)(t.AST_NODE_TYPES.VariableDeclarator);let r=[t.AST_NODE_TYPES.ArrowFunctionExpression,t.AST_NODE_TYPES.FunctionDeclaration,t.AST_NODE_TYPES.FunctionExpression];e.isFunction=(0,n.isNodeOfTypes)(r);let i=[t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructorType,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSDeclareFunction,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSFunctionType,t.AST_NODE_TYPES.TSMethodSignature];e.isFunctionType=(0,n.isNodeOfTypes)(i),e.isFunctionOrFunctionType=(0,n.isNodeOfTypes)([...r,...i]),e.isTSFunctionType=(0,n.isNodeOfType)(t.AST_NODE_TYPES.TSFunctionType),e.isTSConstructorType=(0,n.isNodeOfType)(t.AST_NODE_TYPES.TSConstructorType),e.isClassOrTypeElement=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.PropertyDefinition,t.AST_NODE_TYPES.FunctionExpression,t.AST_NODE_TYPES.MethodDefinition,t.AST_NODE_TYPES.TSAbstractPropertyDefinition,t.AST_NODE_TYPES.TSAbstractMethodDefinition,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSIndexSignature,t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSMethodSignature,t.AST_NODE_TYPES.TSPropertySignature]),e.isConstructor=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.MethodDefinition,{kind:"constructor"}),e.isIdentifier=(0,n.isNodeOfType)(t.AST_NODE_TYPES.Identifier),e.isAwaitExpression=(0,n.isNodeOfType)(t.AST_NODE_TYPES.AwaitExpression),e.isAwaitKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Identifier,{value:"await"}),e.isTypeKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Identifier,{value:"type"}),e.isImportKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Keyword,{value:"import"}),e.isLoop=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.DoWhileStatement,t.AST_NODE_TYPES.ForStatement,t.AST_NODE_TYPES.ForInStatement,t.AST_NODE_TYPES.ForOfStatement,t.AST_NODE_TYPES.WhileStatement])}),e3=eU(e=>{var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(eQ(),e),n(eZ(),e),n(e0(),e),n(e2(),e)}),e4=eJ();let e6={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};for(let e of Object.keys(e6))Object.freeze(e6[e]);Object.freeze(e6);var e5=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],e9=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],e8="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",e7={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"},te="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",tt={5:te,"5module":te+" export import",6:te+" const class extends export import super"},tn=/^in(stanceof)?$/,tr=RegExp("["+e8+"]"),ti=RegExp("["+e8+"‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function ts(e,t){for(var n=65536,r=0;r<t.length&&!((n+=t[r])>e);r+=2)if((n+=t[r+1])>=e)return!0;return!1}function ta(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&tr.test(String.fromCharCode(e)):!1!==t&&ts(e,e9)))}function to(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&ti.test(String.fromCharCode(e)):!1!==t&&(ts(e,e9)||ts(e,e5)))))}var tl=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 tp(e,t){return new tl(e,{beforeExpr:!0,binop:t})}var tc={beforeExpr:!0},tu={startsExpr:!0},tf={};function td(e,t){return void 0===t&&(t={}),t.keyword=e,tf[e]=new tl(e,t)}var tm={num:new tl("num",tu),regexp:new tl("regexp",tu),string:new tl("string",tu),name:new tl("name",tu),privateId:new tl("privateId",tu),eof:new tl("eof"),bracketL:new tl("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new tl("]"),braceL:new tl("{",{beforeExpr:!0,startsExpr:!0}),braceR:new tl("}"),parenL:new tl("(",{beforeExpr:!0,startsExpr:!0}),parenR:new tl(")"),comma:new tl(",",tc),semi:new tl(";",tc),colon:new tl(":",tc),dot:new tl("."),question:new tl("?",tc),questionDot:new tl("?."),arrow:new tl("=>",tc),template:new tl("template"),invalidTemplate:new tl("invalidTemplate"),ellipsis:new tl("...",tc),backQuote:new tl("`",tu),dollarBraceL:new tl("${",{beforeExpr:!0,startsExpr:!0}),eq:new tl("=",{beforeExpr:!0,isAssign:!0}),assign:new tl("_=",{beforeExpr:!0,isAssign:!0}),incDec:new tl("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new tl("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:tp("||",1),logicalAND:tp("&&",2),bitwiseOR:tp("|",3),bitwiseXOR:tp("^",4),bitwiseAND:tp("&",5),equality:tp("==/!=/===/!==",6),relational:tp("</>/<=/>=",7),bitShift:tp("<</>>/>>>",8),plusMin:new tl("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:tp("%",10),star:tp("*",10),slash:tp("/",10),starstar:new tl("**",{beforeExpr:!0}),coalesce:tp("??",1),_break:td("break"),_case:td("case",tc),_catch:td("catch"),_continue:td("continue"),_debugger:td("debugger"),_default:td("default",tc),_do:td("do",{isLoop:!0,beforeExpr:!0}),_else:td("else",tc),_finally:td("finally"),_for:td("for",{isLoop:!0}),_function:td("function",tu),_if:td("if"),_return:td("return",tc),_switch:td("switch"),_throw:td("throw",tc),_try:td("try"),_var:td("var"),_const:td("const"),_while:td("while",{isLoop:!0}),_with:td("with"),_new:td("new",{beforeExpr:!0,startsExpr:!0}),_this:td("this",tu),_super:td("super",tu),_class:td("class",tu),_extends:td("extends",tc),_export:td("export"),_import:td("import",tu),_null:td("null",tu),_true:td("true",tu),_false:td("false",tu),_in:td("in",{beforeExpr:!0,binop:7}),_instanceof:td("instanceof",{beforeExpr:!0,binop:7}),_typeof:td("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:td("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:td("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},th=/\r\n?|\n|\u2028|\u2029/,tg=RegExp(th.source,"g");function ty(e){return 10===e||13===e||8232===e||8233===e}function tx(e,t,n){void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(ty(i))return r<n-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return -1}var tT=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,tS=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,tb=Object.prototype,tE=tb.hasOwnProperty,tk=tb.toString,tv=Object.hasOwn||function(e,t){return tE.call(e,t)},tA=Array.isArray||function(e){return"[object Array]"===tk.call(e)},tw=Object.create(null);function tC(e){return tw[e]||(tw[e]=RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function t_(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}var tO=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,tP=function(e,t){this.line=e,this.column=t};tP.prototype.offset=function(e){return new tP(this.line,this.column+e)};var tI=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function tN(e,t){for(var n=1,r=0;;){var i=tx(e,r,t);if(i<0)return new tP(n,t-r);++n,r=i}}var tL={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},tB=!1;function tD(e,t){return 2|4*!!e|8*!!t}var tj=function(e,t,n){this.options=e=function(e){var t,n,r={};for(var i in tL)r[i]=e&&tv(e,i)?e[i]:tL[i];if("latest"===r.ecmaVersion?r.ecmaVersion=1e8:null==r.ecmaVersion?(!tB&&"object"==typeof console&&console.warn&&(tB=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),r.ecmaVersion=11):r.ecmaVersion>=2015&&(r.ecmaVersion-=2009),null==r.allowReserved&&(r.allowReserved=r.ecmaVersion<5),e&&null!=e.allowHashBang||(r.allowHashBang=r.ecmaVersion>=14),tA(r.onToken)){var s=r.onToken;r.onToken=function(e){return s.push(e)}}if(tA(r.onComment)&&(t=r,n=r.onComment,r.onComment=function(e,r,i,s,a,o){var l={type:e?"Block":"Line",value:r,start:i,end:s};t.locations&&(l.loc=new tI(this,a,o)),t.ranges&&(l.range=[i,s]),n.push(l)}),"commonjs"===r.sourceType&&r.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return r}(e),this.sourceFile=e.sourceFile,this.keywords=tC(tt[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=e7[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=tC(r);var i=(r?r+" ":"")+e7.strict;this.reservedWordsStrict=tC(i),this.reservedWordsStrictBind=tC(i+" "+e7.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(th).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=tm.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("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},tR={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};tj.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},tR.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},tR.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},tR.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},tR.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},tR.allowReturn.get=function(){return!!this.inFunction||!!this.options.allowReturnOutsideFunction&&!!(1&this.currentVarScope().flags)},tR.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},tR.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},tR.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},tR.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},tR.allowUsing.get=function(){var e=this.currentScope().flags;return!(1024&e)&&(!!this.inModule||!(1&e))},tR.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},tj.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},tj.parse=function(e,t){return new this(t,e).parse()},tj.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},tj.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(tj.prototype,tR);var tF=tj.prototype,tM=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;tF.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){tS.lastIndex=e,e+=tS.exec(this.input)[0].length;var t=tM.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){tS.lastIndex=e+t[0].length;var n=tS.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||th.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}tS.lastIndex=e+=t[0].length,e+=tS.exec(this.input)[0].length,";"===this.input[e]&&e++}},tF.eat=function(e){return this.type===e&&(this.next(),!0)},tF.isContextual=function(e){return this.type===tm.name&&this.value===e&&!this.containsEsc},tF.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},tF.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},tF.canInsertSemicolon=function(){return this.type===tm.eof||this.type===tm.braceR||th.test(this.input.slice(this.lastTokEnd,this.start))},tF.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},tF.semicolon=function(){this.eat(tm.semi)||this.insertSemicolon()||this.unexpected()},tF.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},tF.expect=function(e){this.eat(e)||this.unexpected()},tF.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var t$=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};tF.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")}},tF.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")},tF.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},tF.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var tV=tj.prototype;tV.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==tm.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(e,"Program")};var tq={kind:"loop"},tY={kind:"switch"};tV.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;tS.lastIndex=this.pos;var t=tS.exec(this.input),n=this.pos+t[0].length,r=this.fullCharCodeAt(n);if(91===r||92===r)return!0;if(e)return!1;if(123===r)return!0;if(ta(r)){var i=n;do n+=r<=65535?1:2;while(to(r=this.fullCharCodeAt(n)));if(92===r)return!0;var s=this.input.slice(i,n);if(!tn.test(s))return!0}return!1},tV.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;tS.lastIndex=this.pos;var e,t=tS.exec(this.input),n=this.pos+t[0].length;return!th.test(this.input.slice(this.pos,n))&&"function"===this.input.slice(n,n+8)&&(n+8===this.input.length||!(to(e=this.fullCharCodeAt(n+8))||92===e))},tV.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;tS.lastIndex=this.pos;var n=tS.exec(this.input),r=this.pos+n[0].length;if(th.test(this.input.slice(this.pos,r)))return!1;if(e){var i,s=r+5;if("using"!==this.input.slice(r,s)||s===this.input.length||to(i=this.fullCharCodeAt(s))||92===i)return!1;tS.lastIndex=s;var a=tS.exec(this.input);if(r=s+a[0].length,a&&th.test(this.input.slice(s,r)))return!1}var o=this.fullCharCodeAt(r);if(!ta(o)&&92!==o)return!1;var l=r;do r+=o<=65535?1:2;while(to(o=this.fullCharCodeAt(r)));if(92===o)return!0;var p=this.input.slice(l,r);return!tn.test(p)&&(!t||"of"!==p)},tV.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},tV.isUsing=function(e){return this.isUsingKeyword(!1,e)},tV.parseStatement=function(e,t,n){var r,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=tm._var,r="let"),i){case tm._break:case tm._continue:return this.parseBreakContinueStatement(s,i.keyword);case tm._debugger:return this.parseDebuggerStatement(s);case tm._do:return this.parseDoStatement(s);case tm._for:return this.parseForStatement(s);case tm._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case tm._class:return e&&this.unexpected(),this.parseClass(s,!0);case tm._if:return this.parseIfStatement(s);case tm._return:return this.parseReturnStatement(s);case tm._switch:return this.parseSwitchStatement(s);case tm._throw:return this.parseThrowStatement(s);case tm._try:return this.parseTryStatement(s);case tm._const:case tm._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case tm._while:return this.parseWhileStatement(s);case tm._with:return this.parseWithStatement(s);case tm.braceL:return this.parseBlock(!0,s);case tm.semi:return this.parseEmptyStatement(s);case tm._export:case tm._import:if(this.options.ecmaVersion>10&&i===tm._import){tS.lastIndex=this.pos;var a=tS.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(s,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'")),i===tm._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var p=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(p)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===p&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(s,!1,p),this.semicolon(),this.finishNode(s,"VariableDeclaration");var c=this.value,u=this.parseExpression();if(i===tm.name&&"Identifier"===u.type&&this.eat(tm.colon))return this.parseLabeledStatement(s,c,u,e);return this.parseExpressionStatement(s,u)}},tV.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(tm.semi)||this.insertSemicolon()?e.label=null:this.type!==tm.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((null==e.label||i.name===e.label.name)&&(null!=i.kind&&(n||"loop"===i.kind)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},tV.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},tV.parseDoStatement=function(e){return this.next(),this.labels.push(tq),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(tm._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(tm.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},tV.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(tq),this.enterScope(0),this.expect(tm.parenL),this.type===tm.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===tm._var||this.type===tm._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(e,r,t)}var s=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var l=this.startNode();return this.next(),"await using"===o&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(l,!0,o),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var p=this.containsEsc,c=new t$,u=this.start,f=t>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);return this.type===tm._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===tm._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(f.start!==u||p||"Identifier"!==f.type||"async"!==f.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),s&&a&&this.raise(f.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(f,!1,c),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(c,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))},tV.parseForAfterInit=function(e,t,n){return(this.type===tm._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===tm._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},tV.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,tJ|(n?0:tU),!1,t)},tV.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(tm._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},tV.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(tm.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},tV.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(tm.braceL),this.labels.push(tY),this.enterScope(1024);for(var t,n=!1;this.type!==tm.braceR;)if(this.type===tm._case||this.type===tm._default){var r=this.type===tm._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(tm.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")},tV.parseThrowStatement=function(e){return this.next(),th.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 tX=[];tV.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(32*!!t),this.checkLValPattern(e,t?4:2),this.expect(tm.parenR),e},tV.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===tm._catch){var t=this.startNode();this.next(),this.eat(tm.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(tm._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},tV.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},tV.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(tq),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},tV.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")},tV.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},tV.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1)s[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===tm._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:t,kind:a,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")},tV.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},tV.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(tm.braceL),e&&this.enterScope(0);this.type!==tm.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},tV.parseFor=function(e,t){return e.init=t,this.expect(tm.semi),e.test=this.type===tm.semi?null:this.parseExpression(),this.expect(tm.semi),e.update=this.type===tm.parenR?null:this.parseExpression(),this.expect(tm.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},tV.parseForIn=function(e,t){var n=this.type===tm._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(tm.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},tV.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(tm.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===tm._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"using"!==n&&"await using"!==n||!(this.options.ecmaVersion>=17)||this.type===tm._in||this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===tm._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(tm.comma))break}return e},tV.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var tJ=1,tU=2;function tW(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}tV.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===tm.star&&t&tU&&this.unexpected(),e.generator=this.eat(tm.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&tJ&&(e.id=4&t&&this.type!==tm.name?null:this.parseIdent(),e.id&&!(t&tU)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(tD(e.async,e.generator)),t&tJ||(e.id=this.type===tm.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&tJ?"FunctionDeclaration":"FunctionExpression")},tV.parseFunctionParams=function(e){this.expect(tm.parenL),e.params=this.parseBindingList(tm.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},tV.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(tm.braceL);this.type!==tm.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(e,t){var n=t.key.name,r=e[n],i="true";return("MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i)?(e[n]="true",!1):!!r||(e[n]=i,!1)}(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},tV.parseClassElement=function(e){if(this.eat(tm.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(tm.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===tm.star?o=!0:r="static"}if(n.static=o,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===tm.star)&&!this.canInsertSemicolon()?s=!0:r="async"),!r&&(t>=9||!s)&&this.eat(tm.star)&&(i=!0),!r&&!s&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=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===tm.parenL||"method"!==a||i||s){var p=!n.static&&tW(n,"constructor");p&&"method"!==a&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=p?"constructor":a,this.parseClassMethod(n,i,s,p&&e)}else this.parseClassField(n);return n},tV.isClassElementNameStart=function(){return this.type===tm.name||this.type===tm.privateId||this.type===tm.num||this.type===tm.string||this.type===tm.bracketL||this.type.keyword},tV.parseClassElementName=function(e){this.type===tm.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)},tV.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&tW(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},tV.parseClassField=function(e){return tW(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&tW(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(tm.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},tV.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==tm.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},tV.parseClassId=function(e,t){this.type===tm.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},tV.parseClassSuper=function(e){e.superClass=this.eat(tm._extends)?this.parseExprSubscripts(null,!1):null},tV.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},tV.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],s=0;s<n.length;++s){var a=n[s];tv(t,a.name)||(i?i.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},tV.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!==tm.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},tV.parseExport=function(e,t){if(this.next(),this.eat(tm.star))return this.parseExportAllDeclaration(e,t);if(this.eat(tm._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,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==tm.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),"Literal"===i.local.type&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},tV.parseExportDeclaration=function(e){return this.parseStatement(null)},tV.parseExportDefaultDeclaration=function(){if(this.type===tm._function||(e=this.isAsyncFunction())){var e,t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|tJ,!1,e)}if(this.type===tm._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},tV.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),tv(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},tV.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===n)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n&&this.checkPatternExport(e,t.argument)},tV.checkVariableExport=function(e,t){if(e)for(var n=0;n<t.length;n+=1){var r=t[n];this.checkPatternExport(e,r.id)}},tV.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},tV.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},tV.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(tm.braceL);!this.eat(tm.braceR);){if(n)n=!1;else if(this.expect(tm.comma),this.afterTrailingComma(tm.braceR))break;t.push(this.parseExportSpecifier(e))}return t},tV.parseImport=function(e){return this.next(),this.type===tm.string?(e.specifiers=tX,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===tm.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},tV.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},tV.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},tV.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},tV.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===tm.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(tm.comma)))return e;if(this.type===tm.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(tm.braceL);!this.eat(tm.braceR);){if(t)t=!1;else if(this.expect(tm.comma),this.afterTrailingComma(tm.braceR))break;e.push(this.parseImportSpecifier())}return e},tV.parseWithClause=function(){var e=[];if(!this.eat(tm._with))return e;this.expect(tm.braceL);for(var t={},n=!0;!this.eat(tm.braceR);){if(n)n=!1;else if(this.expect(tm.comma),this.afterTrailingComma(tm.braceR))break;var r=this.parseImportAttribute(),i="Identifier"===r.key.type?r.key.name:r.key.value;tv(t,i)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(r)}return e},tV.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===tm.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(tm.colon),this.type!==tm.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},tV.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===tm.string){var e=this.parseLiteral(this.value);return tO.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},tV.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},tV.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var tK=tj.prototype;tK.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,i=e.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,t),"RestElement"===s.type&&("ArrayPattern"===s.argument.type||"ObjectPattern"===s.argument.type)&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},tK.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var s=e[n-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},tK.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},tK.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==tm.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},tK.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case tm.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(tm.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case tm.braceL:return this.parseObj(!0)}return this.parseIdent()},tK.parseBindingList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(tm.comma),t&&this.type===tm.comma)i.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===tm.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===tm.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},tK.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},tK.parseBindingListItem=function(e){return e},tK.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(tm.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},tK.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(tv(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},tK.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,t,n)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,n)}break;default:this.checkLValSimple(e,t,n)}},tK.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var tH=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},tz={b_stat:new tH("{",!1),b_expr:new tH("{",!0),b_tmpl:new tH("${",!1),p_stat:new tH("(",!1),p_expr:new tH("(",!0),q_tmpl:new tH("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new tH("function",!1),f_expr:new tH("function",!0),f_expr_gen:new tH("function",!0,!1,null,!0),f_gen:new tH("function",!1,!1,null,!0)},tG=tj.prototype;tG.initialContext=function(){return[tz.b_stat]},tG.curContext=function(){return this.context[this.context.length-1]},tG.braceIsBlock=function(e){var t=this.curContext();return t===tz.f_expr||t===tz.f_stat||(e===tm.colon&&(t===tz.b_stat||t===tz.b_expr)?!t.isExpr:e===tm._return||e===tm.name&&this.exprAllowed?th.test(this.input.slice(this.lastTokEnd,this.start)):e===tm._else||e===tm.semi||e===tm.eof||e===tm.parenR||e===tm.arrow||(e===tm.braceL?t===tz.b_stat:e!==tm._var&&e!==tm._const&&e!==tm.name&&!this.exprAllowed))},tG.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},tG.updateContext=function(e){var t,n=this.type;n.keyword&&e===tm.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},tG.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},tm.parenR.updateContext=tm.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var e=this.context.pop();e===tz.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},tm.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?tz.b_stat:tz.b_expr),this.exprAllowed=!0},tm.dollarBraceL.updateContext=function(){this.context.push(tz.b_tmpl),this.exprAllowed=!0},tm.parenL.updateContext=function(e){var t=e===tm._if||e===tm._for||e===tm._with||e===tm._while;this.context.push(t?tz.p_stat:tz.p_expr),this.exprAllowed=!0},tm.incDec.updateContext=function(){},tm._function.updateContext=tm._class.updateContext=function(e){e.beforeExpr&&e!==tm._else&&(e!==tm.semi||this.curContext()===tz.p_stat)&&!(e===tm._return&&th.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==tm.colon&&e!==tm.braceL||this.curContext()!==tz.b_stat)?this.context.push(tz.f_expr):this.context.push(tz.f_stat),this.exprAllowed=!1},tm.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},tm.backQuote.updateContext=function(){this.curContext()===tz.q_tmpl?this.context.pop():this.context.push(tz.q_tmpl),this.exprAllowed=!1},tm.star.updateContext=function(e){if(e===tm._function){var t=this.context.length-1;this.context[t]===tz.f_expr?this.context[t]=tz.f_expr_gen:this.context[t]=tz.f_gen}this.exprAllowed=!0},tm.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==tm.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var tQ=tj.prototype;tQ.checkPropClash=function(e,t,n){if((!(this.options.ecmaVersion>=9)||"SpreadElement"!==e.type)&&(!(this.options.ecmaVersion>=6)||!e.computed&&!e.method&&!e.shorthand)){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){"__proto__"===r&&"init"===s&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}var a=t[r="$"+r];a?("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(i.start,"Redefinition of property"):a=t[r]={init:!1,get:!1,set:!1},a[s]=!0}},tQ.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===tm.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(tm.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},tQ.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(e);else this.exprAllowed=!1;var r=!1,i=-1,s=-1,a=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new t$,r=!0);var o=this.start,l=this.startLoc;(this.type===tm.parenL||this.type===tm.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var p=this.parseMaybeConditional(e,t);if(n&&(p=n.call(this,p,o,l)),this.type.isAssign){var c=this.startNodeAt(o,l);return c.operator=this.value,this.type===tm.eq&&(p=this.toAssignable(p,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===tm.eq?this.checkLValPattern(p):this.checkLValSimple(p),c.left=p,this.next(),c.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),p},tQ.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(tm.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(tm.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},tQ.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},tQ.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==tm._in)&&s>r){var a=this.type===tm.logicalOR||this.type===tm.logicalAND,o=this.type===tm.coalesce;o&&(s=tm.logicalAND.binop);var l=this.value;this.next();var p=this.start,c=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),p,c,s,i),f=this.buildBinary(t,n,e,u,l,a||o);return(a&&this.type===tm.coalesce||o&&(this.type===tm.logicalOR||this.type===tm.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(f,t,n,r,i)}return e},tQ.buildBinary=function(e,t,n,r,i,s){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=n,a.operator=i,a.right=r,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},tQ.parseMaybeUnary=function(e,t,n,r){var i,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===tm.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,r),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&function e(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&e(t.expression)}(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&function e(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&e(t.expression)||"ParenthesizedExpression"===t.type&&e(t.expression)}(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==tm.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var p=this.startNodeAt(s,a);p.operator=this.value,p.prefix=!1,p.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(p,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==tm._in&&this.unexpected();return!n&&this.eat(tm.starstar)?t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1):i},tQ.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var s=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},tQ.parseSubscripts=function(e,t,n,r,i){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,n,r,s,a,i);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,n);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},tQ.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(tm.arrow)},tQ.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},tQ.parseSubscript=function(e,t,n,r,i,s,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(tm.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(tm.bracketL);if(p||l&&this.type!==tm.parenL&&this.type!==tm.backQuote||this.eat(tm.dot)){var c=this.startNodeAt(t,n);c.object=e,p?(c.property=this.parseExpression(),this.expect(tm.bracketR)):this.type===tm.privateId&&"Super"!==e.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!p,o&&(c.optional=l),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(tm.parenL)){var u=new t$,f=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(tm.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=f,this.awaitPos=d,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,a);this.checkExpressionErrors(u,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===tm.backQuote){(l||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,n);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},tQ.parseExprAtom=function(e,t,n){this.type===tm.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case tm._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==tm.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==tm.dot&&this.type!==tm.bracketL&&this.type!==tm.parenL&&this.unexpected(),this.finishNode(r,"Super");case tm._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case tm.name:var s=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(tm._function))return this.overrideContext(tz.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(tm.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===tm.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(tm.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[l],!0,t)}return l;case tm.regexp:var p=this.value;return(r=this.parseLiteral(p.value)).regex={pattern:p.pattern,flags:p.flags},r;case tm.num:case tm.string:return this.parseLiteral(this.value);case tm._null:case tm._true:case tm._false:return(r=this.startNode()).value=this.type===tm._null?null:this.type===tm._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case tm.parenL:var c=this.start,u=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),u;case tm.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(tm.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case tm.braceL:return this.overrideContext(tz.b_expr),this.parseObj(!1,e);case tm._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case tm._class:return this.parseClass(this.startNode(),!1);case tm._new:return this.parseNew();case tm.backQuote:return this.parseTemplate();case tm._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(n);return this.unexpected();default:return this.parseExprAtomDefault()}},tQ.parseExprAtomDefault=function(){this.unexpected()},tQ.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===tm.parenL&&!e)return this.parseDynamicImport(t);if(this.type===tm.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()},tQ.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(tm.parenR)?e.options=null:(this.expect(tm.comma),this.afterTrailingComma(tm.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),!this.eat(tm.parenR)&&(this.expect(tm.comma),this.afterTrailingComma(tm.parenR)||this.unexpected())));else if(!this.eat(tm.parenR)){var t=this.start;this.eat(tm.comma)&&this.eat(tm.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},tQ.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")},tQ.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=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},tQ.parseParenExpression=function(){this.expect(tm.parenL);var e=this.parseExpression();return this.expect(tm.parenR),e},tQ.shouldParseArrow=function(e){return!this.canInsertSemicolon()},tQ.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,p=[],c=!0,u=!1,f=new t$,d=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==tm.parenR;){if(c?c=!1:this.expect(tm.comma),s&&this.afterTrailingComma(tm.parenR,!0)){u=!0;break}if(this.type===tm.ellipsis){a=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===tm.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}p.push(this.parseMaybeAssign(!1,f,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(tm.parenR),e&&this.shouldParseArrow(p)&&this.eat(tm.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(r,i,p,t);(!p.length||u)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(f,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,p.length>1?((n=this.startNodeAt(o,l)).expressions=p,this.finishNodeAt(n,"SequenceExpression",h,g)):n=p[0]}else n=this.parseParenExpression();if(!this.options.preserveParens)return n;var y=this.startNodeAt(r,i);return y.expression=n,this.finishNode(y,"ParenthesizedExpression")},tQ.parseParenItem=function(e){return e},tQ.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var tZ=[];tQ.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===tm.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,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(tm.parenL)?e.arguments=this.parseExprList(tm.parenR,this.options.ecmaVersion>=8,!1):e.arguments=tZ,this.finishNode(e,"NewExpression")},tQ.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===tm.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===tm.backQuote,this.finishNode(n,"TemplateElement")},tQ.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===tm.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(tm.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(tm.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},tQ.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===tm.name||this.type===tm.num||this.type===tm.string||this.type===tm.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===tm.star)&&!th.test(this.input.slice(this.lastTokEnd,this.start))},tQ.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(tm.braceR);){if(r)r=!1;else if(this.expect(tm.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(tm.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},tQ.parseProperty=function(e,t){var n,r,i,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(tm.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===tm.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===tm.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(n=this.eat(tm.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(tm.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,n,r,i,s,t,o),this.finishNode(a,"Property")},tQ.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=+("get"!==e.kind);if(e.value.params.length!==n){var r=e.value.start;"get"===e.kind?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"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")},tQ.parsePropertyValue=function(e,t,n,r,i,s,a,o){(n||r)&&this.type===tm.colon&&this.unexpected(),this.eat(tm.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===tm.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind="init"):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===tm.comma||this.type===tm.braceR||this.type===tm.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=i),t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===tm.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},tQ.parsePropertyName=function(e){if(this.options.ecmaVersion>=6)if(this.eat(tm.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(tm.bracketR),e.key;else e.computed=!1;return e.key=this.type===tm.num||this.type===tm.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},tQ.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},tQ.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=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|tD(t,r.generator)|128*!!n),this.expect(tm.parenL),r.params=this.parseBindingList(tm.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},tQ.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|tD(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=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},tQ.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==tm.braceL,s=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||o)&&(a=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=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},tQ.isSimpleParamList=function(e){for(var t=0;t<e.length;t+=1)if("Identifier"!==e[t].type)return!1;return!0},tQ.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,1,t?null:n)}},tQ.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(tm.comma),t&&this.afterTrailingComma(e))break;var a=void 0;n&&this.type===tm.comma?a=null:this.type===tm.ellipsis?(a=this.parseSpread(r),r&&this.type===tm.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),i.push(a)}return i},tQ.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),259&this.currentThisScope().flags||"arguments"!==r||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===r||"await"===r)&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),(!(this.options.ecmaVersion<6)||-1===this.input.slice(t,n).indexOf("\\"))&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},tQ.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),!e&&(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},tQ.parseIdentNode=function(){var e=this.startNode();return this.type===tm.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,("class"===e.name||"function"===e.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop(),this.type=tm.name):this.unexpected(),e},tQ.parsePrivateIdent=function(){var e=this.startNode();return this.type===tm.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},tQ.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===tm.semi||this.canInsertSemicolon()||this.type!==tm.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(tm.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},tQ.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var t0=tj.prototype;t0.raise=function(e,t){var n=tN(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},t0.raiseRecoverable=t0.raise,t0.curPosition=function(){if(this.options.locations)return new tP(this.curLine,this.pos-this.lineStart)};var t1=tj.prototype,t2=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};t1.enterScope=function(e){this.scopeStack.push(new t2(e))},t1.exitScope=function(){this.scopeStack.pop()},t1.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},t1.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];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")},t1.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},t1.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},t1.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},t1.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var t3=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new tI(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},t4=tj.prototype;function t6(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}t4.startNode=function(){return new t3(this,this.start,this.startLoc)},t4.startNodeAt=function(e,t){return new t3(this,e,t)},t4.finishNode=function(e,t){return t6.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},t4.finishNodeAt=function(e,t,n,r){return t6.call(this,e,t,n,r)},t4.copyNode=function(e){var t=new t3(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};for(var t5="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",t9=t5+" Extended_Pictographic",t8=t9+" EBase EComp EMod EPres ExtPict",t7={9:t5,10:t9,11:t9,12:t8,13:t8,14:t8},ne={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"},nt="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",nn="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",nr=nn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ni=nr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ns=ni+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",na=ns+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",no={9:nn,10:nr,11:ni,12:ns,13:na,14:na+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},nl={},np=0,nc=[9,10,11,12,13,14];np<nc.length;np+=1)!function(e){var t=nl[e]={binary:tC(t7[e]+" "+nt),binaryOfStrings:tC(ne[e]),nonBinary:{General_Category:tC(nt),Script:tC(no[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}(nc[np]);var nu=tj.prototype,nf=function(e,t){this.parent=e,this.base=t||this};nf.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},nf.prototype.sibling=function(){return new nf(this.parent,this.base)};var nd=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=nl[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 nm(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function nh(e){return e>=65&&e<=90||e>=97&&e<=122}function ng(e){return nh(e)||95===e}function ny(e){return e>=48&&e<=57}function nx(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function nT(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function nS(e){return e>=48&&e<=55}nd.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),i=-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=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},nd.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},nd.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return -1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var s=n.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-0x35fdc00:i},nd.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,s=n.charCodeAt(e);return!(t||this.switchU)||s<=55295||s>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},nd.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},nd.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},nd.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},nd.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},nd.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0;r<e.length;r+=1){var i=e[r],s=this.at(n,t);if(-1===s||s!==i)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},nu.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,s=0;s<n.length;s++){var a=n.charAt(s);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(a,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},nu.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))},nu.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<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}},nu.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new nf(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")},nu.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},nu.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?!!this.regexp_eatAtom(e):!!this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},nu.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=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},nu.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},nu.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},nu.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return -1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},nu.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},nu.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},nu.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var s=n.charAt(i);n.indexOf(s,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(r){var a=this.regexp_eatModifiers(e);n||a||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var l=a.charAt(o);(a.indexOf(l,o+1)>-1||n.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},nu.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=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},nu.regexp_eatModifiers=function(e){for(var t,n="",r=0;-1!==(r=e.current())&&(105===(t=r)||109===t||115===t);)n+=t_(r),e.advance();return n},nu.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)},nu.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},nu.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!nm(t)&&(e.lastIntValue=t,e.advance(),!0)},nu.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!nm(n);)e.advance();return e.pos!==t},nu.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)},nu.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;r<n.length;r+=1)n[r].separatedFrom(e.branchID)||e.raise("Duplicate capture group name");else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},nu.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},nu.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=t_(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=t_(e.lastIntValue);return!0}return!1},nu.regexp_eatRegExpIdentifierStart=function(e){var t,n=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),ta(t=i,!0)||36===t||95===t)?(e.lastIntValue=i,!0):(e.pos=n,!1)},nu.regexp_eatRegExpIdentifierPart=function(e){var t,n=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),to(t=i,!0)||36===t||95===t||8204===t||8205===t)?(e.lastIntValue=i,!0):(e.pos=n,!1)},nu.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)},nu.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},nu.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},nu.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)},nu.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},nu.regexp_eatZero=function(e){return!(48!==e.current()||ny(e.lookahead()))&&(e.lastIntValue=0,e.advance(),!0)},nu.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)},nu.regexp_eatControlLetter=function(e){var t=e.current();return!!nh(t)&&(e.lastIntValue=t%32,e.advance(),!0)},nu.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i,s=e.lastIntValue;if(r&&s>=55296&&s<=56319){var a=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=(s-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=s}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(i=e.lastIntValue)>=0&&i<=1114111)return!0;r&&e.raise("Invalid unicode escape"),e.pos=n}return!1},nu.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)},nu.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},nu.regexp_eatCharacterClassEscape=function(e){var t,n,r=e.current();if(100===(t=r)||68===t||115===t||83===t||119===t||87===t)return e.lastIntValue=-1,e.advance(),1;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===r)||112===r)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&2===n&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return 0},nu.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 i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},nu.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){tv(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},nu.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")},nu.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";ng(t=e.current());)e.lastStringValue+=t_(t),e.advance();return""!==e.lastStringValue},nu.regexp_eatUnicodePropertyValue=function(e){var t,n=0;for(e.lastStringValue="";ng(t=n=e.current())||ny(t);)e.lastStringValue+=t_(n),e.advance();return""!==e.lastStringValue},nu.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},nu.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},nu.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},nu.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")}}},nu.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||nS(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)},nu.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)},nu.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]);){if(38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))){2!==t&&(n=1);continue}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)}},nu.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},nu.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},nu.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 i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},nu.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},nu.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},nu.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},nu.regexp_eatClassSetCharacter=function(e){var t,n,r=e.pos;if(e.eat(92))return!!(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=r,!1));var i=e.current();return!(i<0||i===e.lookahead()&&(33===(t=i)||t>=35&&t<=38||t>=42&&t<=44||46===t||t>=58&&t<=64||94===t||96===t||126===t)||40===(n=i)||41===n||45===n||47===n||n>=91&&n<=93||n>=123&&n<=125)&&(e.advance(),e.lastIntValue=i,!0)},nu.regexp_eatClassSetReservedPunctuator=function(e){var t,n=e.current();return!!(33===(t=n)||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t)&&(e.lastIntValue=n,e.advance(),!0)},nu.regexp_eatClassControlLetter=function(e){var t=e.current();return(!!ny(t)||95===t)&&(e.lastIntValue=t%32,e.advance(),!0)},nu.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},nu.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ny(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},nu.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;nx(n=e.current());)e.lastIntValue=16*e.lastIntValue+nT(n),e.advance();return e.pos!==t},nu.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},nu.regexp_eatOctalDigit=function(e){var t=e.current();return nS(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},nu.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!nx(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+nT(i),e.advance()}return!0};var nb=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new tI(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},nE=tj.prototype;function nk(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}nE.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new nb(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},nE.getToken=function(){return this.next(),new nb(this)},"u">typeof Symbol&&(nE[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===tm.eof,value:t}}}}),nE.nextToken=function(){var e=this.curContext();return(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)?this.finishToken(tm.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},nE.readToken=function(e){return ta(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},nE.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-0x35fdc00},nE.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},nE.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,i=t;(r=tx(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},nE.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ty(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},nE.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&tT.test(String.fromCharCode(e)))++this.pos;else break e}}},nE.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)},nE.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(tm.ellipsis)):(++this.pos,this.finishToken(tm.dot))},nE.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(tm.assign,2):this.finishOp(tm.slash,1)},nE.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?tm.star:tm.modulo;return(this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=tm.starstar,t=this.input.charCodeAt(this.pos+2)),61===t)?this.finishOp(tm.assign,n+1):this.finishOp(r,n)},nE.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e)return this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(tm.assign,3):this.finishOp(124===e?tm.logicalOR:tm.logicalAND,2);return 61===t?this.finishOp(tm.assign,2):this.finishOp(124===e?tm.bitwiseOR:tm.bitwiseAND,1)},nE.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(tm.assign,2):this.finishOp(tm.bitwiseXOR,1)},nE.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||th.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(tm.incDec,2):61===t?this.finishOp(tm.assign,2):this.finishOp(tm.plusMin,1)},nE.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(tm.assign,n+1):this.finishOp(tm.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(tm.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},nE.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(tm.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(tm.arrow)):this.finishOp(61===e?tm.eq:tm.prefix,1)},nE.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(tm.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(tm.assign,3):this.finishOp(tm.coalesce,2)}return this.finishOp(tm.question,1)},nE.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,ta(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(tm.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+t_(t)+"'")},nE.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(tm.parenL);case 41:return++this.pos,this.finishToken(tm.parenR);case 59:return++this.pos,this.finishToken(tm.semi);case 44:return++this.pos,this.finishToken(tm.comma);case 91:return++this.pos,this.finishToken(tm.bracketL);case 93:return++this.pos,this.finishToken(tm.bracketR);case 123:return++this.pos,this.finishToken(tm.braceL);case 125:return++this.pos,this.finishToken(tm.braceR);case 58:return++this.pos,this.finishToken(tm.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(tm.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(tm.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+t_(e)+"'")},nE.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},nE.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(th.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 i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new nd(this));o.reset(n,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(i,a)}catch(e){}return this.finishToken(tm.regexp,{pattern:i,flags:a,value:l})},nE.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,l=0,p=null==t?1/0:t;l<p;++l,++this.pos){var c=this.input.charCodeAt(this.pos),u=void 0;if(r&&95===c){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=c;continue}if((u=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;o=c,a=a*e+u}return(r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t)?null:a},nE.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=nk(this.input.slice(t,this.pos)),++this.pos):ta(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(tm.num,n)},nE.readNumber=function(e){var t,n=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(n,"Invalid number");var r=this.pos-n>=2&&48===this.input.charCodeAt(n);r&&this.strict&&this.raise(n,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===i){var s=nk(this.input.slice(n,this.pos));return++this.pos,ta(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(tm.num,s)}r&&/[89]/.test(this.input.slice(n,this.pos))&&(r=!1),46!==i||r||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||r||((43===(i=this.input.charCodeAt(++this.pos))||45===i)&&++this.pos,null===this.readInt(10)&&this.raise(n,"Invalid number")),ta(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(t=this.input.slice(n,this.pos),r?parseInt(t,8):parseFloat(t.replace(/_/g,"")));return this.finishToken(tm.num,a)},nE.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},nE.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)):(ty(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(tm.string,t)};var nv={};nE.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===nv)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},nE.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw nv;this.raise(e,t)},nE.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)){if(this.pos===this.start&&(this.type===tm.template||this.type===tm.invalidTemplate))if(36===n)return this.pos+=2,this.finishToken(tm.dollarBraceL);else return++this.pos,this.finishToken(tm.backQuote);return e+=this.input.slice(t,this.pos),this.finishToken(tm.template,e)}if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ty(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}},nE.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(tm.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},nE.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return t_(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(i=parseInt(r=r.slice(0,-1),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(i)}if(ty(t))return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";return String.fromCharCode(t)}},nE.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},nE.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(to(i,r))this.pos+=i<=65535?1:2;else if(92===i){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?ta:to)(a,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=t_(a),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},nE.readWord=function(){var e=this.readWord1(),t=tm.name;return this.keywords.test(e)&&(t=tf[e]),this.finishToken(t,e)};var nA="8.16.0";tj.acorn={Parser:tj,version:nA,defaultOptions:tL,Position:tP,SourceLocation:tI,getLineInfo:tN,Node:t3,TokenType:tl,tokTypes:tm,keywordTypes:tf,TokContext:tH,tokContexts:tz,isIdentifierChar:to,isIdentifierStart:ta,Token:nb,isNewLine:ty,lineBreak:th,lineBreakG:tg,nonASCIIwhitespace:tT};var nw=Object.freeze({__proto__:null,Node:t3,Parser:tj,Position:tP,SourceLocation:tI,TokContext:tH,Token:nb,TokenType:tl,defaultOptions:tL,getLineInfo:tN,isIdentifierChar:to,isIdentifierStart:ta,isNewLine:ty,keywordTypes:tf,lineBreak:th,lineBreakG:tg,nonASCIIwhitespace:tT,parse:function(e,t){return tj.parse(e,t)},parseExpressionAt:function(e,t,n){return tj.parseExpressionAt(e,t,n)},tokContexts:tz,tokTypes:tm,tokenizer:function(e,t){return tj.tokenizer(e,t)},version:nA}),nC={exports:{}},n_=_(nw),nO=C((d||(d=1,!function(e){let t=f?u:(f=1,u={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"Œ",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:"♦"}),n=/^[\da-fA-F]+$/,r=/^\d+$/,i=new WeakMap;function s(e){e=e.Parser.acorn||e;let t=i.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,s=e.TokenType,a=new r("<tag",!1),o=new r("</tag",!1),l=new r("<tag>...</tag>",!0,!0),p={jsxName:new s("jsxName"),jsxText:new s("jsxText",{beforeExpr:!0}),jsxTagStart:new s("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new s("jsxTagEnd")};p.jsxTagStart.updateContext=function(){this.context.push(l),this.context.push(a),this.exprAllowed=!1},p.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===a&&e===n.slash||t===o?(this.context.pop(),this.exprAllowed=this.curContext()===l):this.exprAllowed=!0},t={tokContexts:{tc_oTag:a,tc_cTag:o,tc_expr:l},tokTypes:p},i.set(e,t)}return t}function a(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?a(e.object)+"."+a(e.property):void 0:e}e.exports=function(e){return e=e||{},function(i){var o,l;let p,c,u,f,d,m,h,g,y,x,T;return o={allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},l=i,c=s(p=l.acorn||n_),u=p.tokTypes,f=c.tokTypes,d=p.tokContexts,m=c.tokContexts.tc_oTag,h=c.tokContexts.tc_cTag,g=c.tokContexts.tc_expr,y=p.isNewLine,x=p.isIdentifierStart,T=p.isIdentifierChar,class extends l{static get acornJsx(){return c}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:if(this.pos===this.start){if(60===n&&this.exprAllowed)return++this.pos,this.finishToken(f.jsxTagStart);return this.getTokenFromCode(n)}return e+=this.input.slice(t,this.pos),this.finishToken(f.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?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:y(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let 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}jsx_readString(e){let t="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let 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):y(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(u.string,t)}jsx_readEntity(){let e="",i=0,s,a=this.input[this.pos];"&"!==a&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos<this.input.length&&i++<10;){if(";"===(a=this.input[this.pos++])){"#"===e[0]?"x"===e[1]?(e=e.substr(2),n.test(e)&&(s=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),r.test(e)&&(s=String.fromCharCode(parseInt(e,10)))):s=t[e];break}e+=a}return s||(this.pos=o,"&")}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(T(e)||45===e);return this.finishToken(f.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===f.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsx_parseNamespacedName(){let e=this.start,t=this.startLoc,n=this.jsx_parseIdentifier();if(!o.allowNamespaces||!this.eat(u.colon))return n;var r=this.startNodeAt(e,t);return r.namespace=n,r.name=this.jsx_parseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===f.jsxTagEnd)return"";let e=this.start,t=this.startLoc,n=this.jsx_parseNamespacedName();for(this.type!==u.dot||"JSXNamespacedName"!==n.type||o.allowNamespacedObjects||this.unexpected();this.eat(u.dot);){let r=this.startNodeAt(e,t);r.object=n,r.property=this.jsx_parseIdentifier(),n=this.finishNode(r,"JSXMemberExpression")}return n}jsx_parseAttributeValue(){switch(this.type){case u.braceL:let e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case f.jsxTagStart:case u.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===u.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(u.braceR),this.finishNode(e,"JSXExpressionContainer")}jsx_parseAttribute(){let e=this.startNode();return this.eat(u.braceL)?(this.expect(u.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(u.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(u.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==u.slash&&this.type!==f.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(u.slash),this.expect(f.jsxTagEnd),this.finishNode(n,r?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(f.jsxTagEnd),this.finishNode(n,r?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),s=null;if(!i.selfClosing){t:for(;;)switch(this.type){case f.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(u.slash)){s=this.jsx_parseClosingElementAt(e,t);break t}r.push(this.jsx_parseElementAt(e,t));break;case f.jsxText:r.push(this.parseExprAtom());break;case u.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}a(s.name)!==a(i.name)&&this.raise(s.start,"Expected corresponding JSX closing tag for <"+a(i.name)+">")}let o=i.name?"Element":"Fragment";return n["opening"+o]=i,n["closing"+o]=s,n.children=r,this.type===u.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===g)return this.jsx_readToken();if(t===m||t===h){if(x(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(f.jsxTagEnd);if((34===e||39===e)&&t==m)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==u.braceL){var t=this.curContext();t==m?this.context.push(d.b_expr):t==g?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==u.slash||e!==f.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(h),this.exprAllowed=!1}}}}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(n_).tokTypes},configurable:!0,enumerable:!0})}(nC)),nC.exports));let nP="Keyword",nI="JSXText";function nN(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}nN.prototype={constructor:nN,translate(e,t){let n=e.type,r=this._acornTokTypes;if(n===r.name)e.type="Identifier","static"===e.value&&(e.type=nP),t.ecmaVersion>5&&("yield"===e.value||"let"===e.value)&&(e.type=nP);else if(n===r.privateId)e.type="PrivateIdentifier";else if(n===r.semi||n===r.comma||n===r.parenL||n===r.parenR||n===r.braceL||n===r.braceR||n===r.dot||n===r.bracketL||n===r.colon||n===r.question||n===r.bracketR||n===r.ellipsis||n===r.arrow||n===r.jsxTagStart||n===r.incDec||n===r.starstar||n===r.jsxTagEnd||n===r.prefix||n===r.questionDot||n.binop&&!n.keyword||n.isAssign)e.type="Punctuator",e.value=this._code.slice(e.start,e.end);else if(n===r.jsxName)e.type="JSXIdentifier";else if("jsxText"===n.label||n===r.jsxAttrValueToken)e.type=nI;else if(n.keyword)"true"===n.keyword||"false"===n.keyword?e.type="Boolean":"null"===n.keyword?e.type="Null":e.type=nP;else if(n===r.num)e.type="Numeric",e.value=this._code.slice(e.start,e.end);else if(n===r.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=nI):e.type="String",e.value=this._code.slice(e.start,e.end);else if(n===r.regexp){e.type="RegularExpression";let t=e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e},onToken(e,t){let n=this._acornTokTypes,r=t.tokens,i=this._tokens,s=()=>{var e,t;let n,i,s;r.push((e=this._tokens,t=this._code,n=e[0],i=e.at(-1),s={type:"Template",value:t.slice(n.start,i.end)},n.loc&&(s.loc={start:n.loc.start,end:i.loc.end}),n.range&&(s.start=n.range[0],s.end=i.range[1],s.range=[s.start,s.end]),s)),this._tokens=[]};if(e.type===n.eof){this._curlyBrace&&r.push(this.translate(this._curlyBrace,t));return}if(e.type===n.backQuote){this._curlyBrace&&(r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),i.push(e),i.length>1&&s();return}if(e.type===n.dollarBraceL){i.push(e),s();return}if(e.type===n.braceR){this._curlyBrace&&r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===n.template||e.type===n.invalidTemplate){this._curlyBrace&&(i.push(this._curlyBrace),this._curlyBrace=null),i.push(e);return}this._curlyBrace&&(r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),r.push(this.translate(e,t))}};let nL=[3,5,6,7,8,9,10,11,12,13,14,15,16,17];function nB(){return nL.at(-1)}let nD=Symbol("espree's internal state"),nj=Symbol("espree's esprimaFinishNode");var nR=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,n){("object"!=typeof e||null===e)&&(e={}),"string"==typeof n||n instanceof String||(n=String(n));let r=e.sourceType,i=function(e){let t=function(e=5){let t="latest"===e?nB():e;if("number"!=typeof t)throw Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!nL.includes(t))throw Error("Invalid ecmaVersion.");return t}(e.ecmaVersion),n=function(e="script"){if("script"===e||"module"===e)return e;if("commonjs"===e)return"script";throw Error("Invalid sourceType.")}(e.sourceType),r=!0===e.range,i=!0===e.loc;if(3!==t&&e.allowReserved)throw Error("`allowReserved` is only supported when ecmaVersion is 3");if(void 0!==e.allowReserved&&"boolean"!=typeof e.allowReserved)throw Error("`allowReserved`, when present, must be `true` or `false`");let s=3===t&&(e.allowReserved||"never"),a=e.ecmaFeatures||{},o="commonjs"===e.sourceType||!!a.globalReturn;if("module"===n&&t<6)throw Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:n,ranges:r,locations:i,allowReserved:s,allowReturnOutsideFunction:o})}(e),s=i.ecmaFeatures||{},a=!0===i.tokens?new nN(t,n):null,o={originalSourceType:r||i.sourceType,tokens:a?[]:null,comments:!0===i.comment?[]:null,impliedStrict:!0===s.impliedStrict&&i.ecmaVersion>=5,ecmaVersion:i.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:i.ecmaVersion,sourceType:i.sourceType,ranges:i.ranges,locations:i.locations,allowReserved:i.allowReserved,allowReturnOutsideFunction:i.allowReturnOutsideFunction,onToken(e){a&&a.onToken(e,o),e.type!==t.eof&&(o.lastToken=e)},onComment(e,t,r,i,s,a){if(o.comments){var l;let p,c=(l=n,p={type:e?"Block":"#!"===l.slice(r,r+2)?"Hashbang":"Line",value:t},"number"==typeof r&&(p.start=r,p.end=i,p.range=[r,i]),"object"==typeof s&&(p.loc={start:s,end:a}),p);o.comments.push(c)}}},n),this[nD]=o}tokenize(){do this.next();while(this.type!==t.eof);this.next();let e=this[nD],n=e.tokens;return e.comments&&(n.comments=e.comments),n}finishNode(...e){let t=super.finishNode(...e);return this[nj](t)}finishNodeAt(...e){let t=super.finishNodeAt(...e);return this[nj](t)}parse(){let e=this[nD],t=super.parse();if(t.sourceType=e.originalSourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),t.body.length){let[e]=t.body;t.range&&(t.range[0]=e.range[0]),t.loc&&(t.loc.start=e.loc.start),t.start=e.start}return e.lastToken&&(t.range&&(t.range[1]=e.lastToken.range[1]),t.loc&&(t.loc.end=e.lastToken.loc.end),t.end=e.lastToken.end),this[nD].templateElements.forEach(e=>{let t=e.tail?1:2;e.start+=-1,e.end+=t,e.range&&(e.range[0]+=-1,e.range[1]+=t),e.loc&&(e.loc.start.column+=-1,e.loc.end.column+=t)}),t}parseTopLevel(e){return this[nD].impliedStrict&&(this.strict=!0),super.parseTopLevel(e)}raise(t,n){let r=e.acorn.getLineInfo(this.input,t),i=SyntaxError(n);throw i.index=t,i.lineNumber=r.line,i.column=r.column+1,i}raiseRecoverable(e,t){this.raise(e,t)}unexpected(e){let t="Unexpected token";if(null!=e){if(this.pos=e,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf("\n",this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(t+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,t)}jsx_readString(e){let n=super.jsx_readString(e);return this.type===t.string&&(this[nD].jsxAttrValueToken=!0),n}[nj](e){return"TemplateElement"===e.type&&this[nD].templateElements.push(e),e.type.includes("Function")&&!e.generator&&(e.generator=!1),e}}};let nF={_regular:null,_jsx:null,get regular(){return null===this._regular&&(this._regular=tj.extend(nR())),this._regular},get jsx(){return null===this._jsx&&(this._jsx=tj.extend(nO(),nR())),this._jsx},get(e){return e&&e.ecmaFeatures&&e.ecmaFeatures.jsx?this.jsx:this.regular}};function nM(e,t){let n=nF.get(t);return t&&!0===t.tokens||(t=Object.assign({},t,{tokens:!0})),new n(t,e).tokenize()}let n$,nV={};for(n$ in"function"==typeof Object.create&&(nV=Object.create(null)),e6)Object.hasOwn(e6,n$)&&(nV[n$]=n$);"function"==typeof Object.freeze&&Object.freeze(nV);let nq=nB();var nY={},nX=m?nY:(m=1,!function e(t){var n,r,i,s,a,o;function l(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&("object"==typeof(n=e[t])&&null!==n?r[t]=l(n):r[t]=n);return r}function p(e,t){this.parent=e,this.key=t}function c(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function u(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function d(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&"properties"===t}function m(e,t){for(var n=e.length-1;n>=0;--n)if(e[n].node===t)return!0;return!1}function h(e,t){return new u().traverse(e,t)}return n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},i={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},r={Break:s={},Skip:a={},Remove:o={}},p.prototype.replace=function(e){this.parent[this.key]=e},p.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},u.prototype.path=function(){var e,t,n,r,i;function s(e,t){if(Array.isArray(t))for(n=0,r=t.length;n<r;++n)e.push(t[n]);else e.push(t)}if(!this.__current.path)return null;for(e=2,i=[],t=this.__leavelist.length;e<t;++e)s(i,this.__leavelist[e].path);return s(i,this.__current.path),i},u.prototype.type=function(){return this.current().type||this.__current.wrap},u.prototype.parents=function(){var e,t,n;for(e=1,n=[],t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},u.prototype.current=function(){return this.__current.node},u.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},u.prototype.notify=function(e){this.__state=e},u.prototype.skip=function(){this.notify(a)},u.prototype.break=function(){this.notify(s)},u.prototype.remove=function(){this.notify(o)},u.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},u.prototype.traverse=function(e,t){var n,r,i,o,l,p,u,h,g,y,x,T;for(this.__initialize(e,t),T={},n=this.__worklist,r=this.__leavelist,n.push(new c(e,null,null,null)),r.push(new c(null,null,null,null));n.length;){if((i=n.pop())===T){if(i=r.pop(),p=this.__execute(t.leave,i),this.__state===s||p===s)return;continue}if(i.node){if(p=this.__execute(t.enter,i),this.__state===s||p===s)return;if(n.push(T),r.push(i),this.__state===a||p===a)continue;if(l=(o=i.node).type||i.wrap,!(y=this.__keys[l]))if(this.__fallback)y=this.__fallback(o);else throw Error("Unknown node type "+l+".");for(h=y.length;(h-=1)>=0;)if(x=o[u=y[h]]){if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(!(!x[g]||m(r,x[g]))){if(d(l,y[h]))i=new c(x[g],[u,g],"Property",null);else{if(!f(x[g]))continue;i=new c(x[g],[u,g],null,null)}n.push(i)}}else if(f(x)){if(m(r,x))continue;n.push(new c(x,u,null,null))}}}}},u.prototype.replace=function(e,t){var n,r,i,l,u,m,h,g,y,x,T,S,b;function E(e){var t,r,i,s;if(e.ref.remove()){for(r=e.ref.key,s=e.ref.parent,t=n.length;t--;)if((i=n[t]).ref&&i.ref.parent===s){if(i.ref.key<r)break;--i.ref.key}}}for(this.__initialize(e,t),T={},n=this.__worklist,r=this.__leavelist,S={root:e},m=new c(e,null,null,new p(S,"root")),n.push(m),r.push(m);n.length;){if((m=n.pop())===T){if(m=r.pop(),void 0!==(u=this.__execute(t.leave,m))&&u!==s&&u!==a&&u!==o&&m.ref.replace(u),(this.__state===o||u===o)&&E(m),this.__state===s||u===s)return S.root;continue}if(void 0!==(u=this.__execute(t.enter,m))&&u!==s&&u!==a&&u!==o&&(m.ref.replace(u),m.node=u),(this.__state===o||u===o)&&(E(m),m.node=null),this.__state===s||u===s)break;if(i=m.node){if(n.push(T),r.push(m),this.__state!==a&&u!==a){if(l=i.type||m.wrap,!(y=this.__keys[l]))if(this.__fallback)y=this.__fallback(i);else throw Error("Unknown node type "+l+".");for(h=y.length;(h-=1)>=0;)if(x=i[b=y[h]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]){if(d(l,y[h]))m=new c(x[g],[b,g],"Property",new p(x,g));else{if(!f(x[g]))continue;m=new c(x[g],[b,g],null,new p(x,g))}n.push(m)}}else f(x)&&n.push(new c(x,b,null,new p(i,b)))}}}return S.root},t.Syntax=n,t.traverse=h,t.replace=function(e,t){return new u().replace(e,t)},t.attachComments=function(e,t,n){var i,s,a,o,p=[];if(!e.range)throw Error("attachComments needs range information");if(!n.length){if(t.length){for(a=0,s=t.length;a<s;a+=1)(i=l(t[a])).extendedRange=[0,e.range[0]],p.push(i);e.leadingComments=p}return e}for(a=0,s=t.length;a<s;a+=1)p.push(function(e,t){var n;return n=function(e,t){var n,r,i,s;for(r=e.length,i=0;r;)t(e[s=i+(n=r>>>1)])?r=n:(i=s+1,r-=n+1);return i}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}(l(t[a]),n));return o=0,h(e,{enter:function(e){for(var t;o<p.length&&!((t=p[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),p.splice(o,1)):o+=1;return o===p.length?r.Break:p[o].extendedRange[0]>e.range[1]?r.Skip:void 0}}),o=0,h(e,{leave:function(e){for(var t;o<p.length&&(t=p[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),p.splice(o,1)):o+=1;return o===p.length?r.Break:p[o].extendedRange[0]>e.range[1]?r.Skip:void 0}}),e},t.VisitorKeys=i,t.VisitorOption=r,t.Controller=u,t.cloneEnvironment=function(){return e({})},t}(nY),nY);let nJ=new Set;function nU(e,t,n=""){var r;let i=`You are using deprecated ${e}${n?` in "${n}"`:""}`;return t&&(i+=`, please use ${t} instead.`),r=i,void(!(w.env.TEST||nJ.has(r))&&(nJ.add(r),console.warn(`[@stylistic/eslint-plugin]: ${r}`)))}function nW(e,t,n,r=""){Array.isArray(t)||(t=[t]),t.forEach(t=>{e&&Object.hasOwn(e,t)&&nU(`option("${t.toString()}")`,n?`"${n.toString()}"`:void 0,r)})}var nK=e3();let nH=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,nz=new Set(["\r\n","\r","\n","\u2028","\u2029"]),nG=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),nQ=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,nZ=/^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su,n0=["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=","**=","||=","&&=","??="],n1=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"],n2=[...n1,"arguments","as","async","await","eval","from","get","let","of","set","type","using","yield"].concat(["accessor","satisfies"]);function n3(){return RegExp(nK.LINEBREAK_MATCHER.source,"gu")}let n4=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u;function n6(e){let t;if(e)switch(e.type){case"ChainExpression":return n6(e.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":case"ImportAttribute":t=e.key;break;case"MemberExpression":t=e.property}if(t){if("Identifier"===t.type&&!("computed"in e&&e.computed))return t.name;var n=t;switch(n.type){case"Literal":if(null!==n.value||"Literal"===n.type&&null===n.value&&!("regex"in n)&&!("bigint"in n))return String(n.value);if(rl(n))return`/${n.regex.pattern}/${n.regex.flags}`;if("bigint"in n&&n.bigint)return n.bigint;break;case"TemplateLiteral":if(0===n.expressions.length&&1===n.quasis.length)return n.quasis[0].value.cooked}}return null}function n5(e){return e&&"ChainExpression"===e.type?e.expression:e}function n9(e,t){let n=e.getTokenBefore(t),r=e.getTokenAfter(t);return!!n&&!!r&&(0,nK.isOpeningParenToken)(n)&&n.range[1]<=t.range[0]&&(0,nK.isClosingParenToken)(r)&&r.range[0]>=t.range[1]}function n8(e){return"="===e.value&&"Punctuator"===e.type}function n7(e){return"?"===e.value&&"Punctuator"===e.type}function re(e){return e?.type==="Keyword"}function rt(e){return"Shebang"===e.type||"Hashbang"===e.type}function rn(e){return"LogicalExpression"===e.type&&("&&"===e.operator||"||"===e.operator)}function rr(e){return"LogicalExpression"===e.type&&"??"===e.operator}function ri(e,t){return rn(e)&&rr(t)||rr(e)&&rn(t)}function rs(e,t){return e.test?t.getTokenAfter(e.test,e=>(0,nK.isColonToken)(e)):t.getFirstToken(e,1)}function ra(e){if("ExpressionStatement"!==e.type)return!1;let t=e.parent;return"Program"===t.type||"BlockStatement"===t.type&&(0,nK.isFunction)(t.parent)}function ro(e){return"Literal"===e.type&&"string"==typeof e.value||"TemplateLiteral"===e.type}function rl(e){return"Literal"===e.type&&"regex"in e}function rp(e,t){return e[0]===t&&e[e.length-1]===t}function rc(e){switch(e.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":case"TSConditionalType":return 3;case"LogicalExpression":switch(e.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(e.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"TSUnionType":return 6;case"TSIntersectionType":return 8;case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;case"TSImportType":case"TSArrayType":return 20;default:if(e.type in e6)return 20;return -1}}function ru(e){return"Literal"===e.type&&"number"==typeof e.value&&nQ.test(e.raw)}function rf(e,{column:t,line:n}){return t<e.lines[n-1].length?{column:t+1,line:n}:n<e.lines.length?{column:0,line:n+1}:null}function rd(e,t){let n,r,i={comment:!0,ecmaVersion:nq,range:!0};if("string"==typeof e){let t;try{t=nM(e,i)}catch{return!1}let r=t.comments;if(n=t[t.length-1],r.length){let e=r[r.length-1];(!n||e.range[0]>n.range[0])&&(n=e)}}else n=e;if(rt(n))return!1;if("string"==typeof t){let e;try{e=nM(t,i)}catch{return!1}let n=e.comments;if(r=e[0],n.length){let e=n[0];(!r||e.range[0]<r.range[0])&&(r=e)}}else r=t;if("Punctuator"===n.type||"Punctuator"===r.type){if("Punctuator"===n.type&&"Punctuator"===r.type){let e=new Set(["+","++"]),t=new Set(["-","--"]);return!(e.has(n.value)&&e.has(r.value)||t.has(n.value)&&t.has(r.value))}return"Punctuator"!==n.type||"/"!==n.value||!["Block","Line","RegularExpression"].includes(r.type)}return!!("String"===n.type||"String"===r.type||"Template"===n.type||"Template"===r.type||"Numeric"!==n.type&&"Numeric"===r.type&&r.value.startsWith("."))||"Block"===n.type||"Block"===r.type||"Line"===r.type||"PrivateIdentifier"===r.type}let rm=/^\s*$/u;function rh(e){return"string"==typeof e&&rm.test(e)}function rg(e,t){let n=e.sourceCode,r=t,i=null;do i="JSXText"===(r=n.getTokenBefore(r)).type?r.value.split("\n"):null;while("JSXText"===r.type&&i&&rh(i.at(-1)));return r}function ry(e,t){let n=rg(e,t);return!!n&&!(0,nK.isTokenOnSameLine)(n,t)}function rx(e){let t="attributes"in e&&e.attributes;return t&&0!==t.length?t[t.length-1]:e.name}function rT(e){return e.loc.start.line===e.loc.end.line}function rS(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}function rb(e={},t={}){return Array.from(new Set(Object.keys(e).concat(Object.keys(t)))).reduce((n,r)=>{let i=r in e,s=r in t,a=e[r],o=t[r];return i&&s?rS(a)&&rS(o)?n[r]=rb(a,o):n[r]=o:i?n[r]=a:n[r]=o,n},{})}function rE({name:e,create:t,meta:n}){return{create:r=>{if(n.deprecated){let t;if("boolean"!=typeof n.deprecated){let{replacedBy:e}=n.deprecated;e&&(t=e.map(({rule:e,plugin:t})=>`"${e?.name}"${t?.name?` in "${t.name}"`:""}`).join(", "))}nU(`rule("${e}")`,t)}let{defaultOptions:i=[]}=n,s=Math.max(r.options.length,i.length);return t(r,Array.from({length:s},(e,t)=>rS(r.options[t])&&rS(i[t])?rb(i[t],r.options[t]):r.options[t]??i[t]))},meta:{...n,docs:{...n.docs,url:`https://eslint.style/rules/${e}`}}}}function rk(e,t,n,r){if(e.commentsExistBetween(t,n))return null;let i=[t.range[1],n.range[0]];return e=>e.replaceTextRange(i,"function"==typeof r?r():r)}function rv(e){return"string"==typeof e.text}function rA(e){return"function"==typeof e.getLocFromIndex&&Array.isArray(e.lines)}let rw=/^[a-z]/;function rC(e){let t=rP(e);return rw.test(t)}function r_(e){return e&&["JSXElement","JSXFragment"].includes(e.type)}function rO(e,t){return"JSXSpreadAttribute"===t.type?e.getText(t.argument):"JSXNamespacedName"===t.name.type?`${t.name.namespace.name}:${t.name.name.name}`:t.name.name}function rP(e){if("JSXOpeningFragment"===e.type)return"<>";let{name:t}=e;if(!t)throw Error("The argument provided is not a JSXElement node.");if("JSXMemberExpression"===t.type){let{object:e,property:n}=t;return function e(t,n){return"JSXMemberExpression"===t.type?`${e(t.object,t.property)}.${n.name}`:`${t.name}.${n.name}`}(e,n)}return"JSXNamespacedName"===t.type?`${t.namespace.name}:${t.name.name}`:e.name.name}function rI(t){return/^[\u0020-\u007F]*$/u.test(t)?t.length:[...(e??=new Intl.Segmenter).segment(t)].length}var rN=class{retainedRange;constructor(e,t){this.fixer=e,this.sourceCode=t,this.retainedRange=null}retainRange(e){return this.retainedRange=e,this}retainEnclosingFunction(e){let t=function(e){for(let t=e;t;t=t.parent)if(n4.test(t.type))return t;return null}(e);return this.retainRange(t?t.range:this.sourceCode.ast.range)}retainSurroundingTokens(e){let t=this.sourceCode.getTokenBefore(e)||e,n=this.sourceCode.getTokenAfter(e)||e;return this.retainRange([t.range[0],n.range[1]])}replaceTextRange(e,t){let n;return n=this.retainedRange?[Math.min(this.retainedRange[0],e[0]),Math.max(this.retainedRange[1],e[1])]:e,this.fixer.replaceTextRange(n,this.sourceCode.text.slice(n[0],e[0])+t+this.sourceCode.text.slice(e[1],n[1]))}remove(e){return this.replaceTextRange(e.range,"")}},rL=rE({name:"array-bracket-newline",meta:{type:"layout",docs:{description:"Enforce linebreaks after opening and before closing array brackets"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],defaultOptions:[],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(e){let t=e.sourceCode;function n(n){var r;let i,s,a,o,l=n.elements,p=(i=!1,s=!1,a=0,(r=e.options[0])?"consistent"===r?(i=!0,a=1/0):"always"===r||"string"!=typeof r&&0===r.minItems?a=0:"never"===r?a=1/0:(s=!!r.multiline,a=r.minItems||1/0):(i=!1,s=!0,a=1/0),{ArrayExpression:o={consistent:i,multiline:s,minItems:a},ArrayPattern:o})[n.type],c=t.getFirstToken(n),u=t.getLastToken(n),f=t.getTokenAfter(c,{includeComments:!0}),d=t.getTokenBefore(u,{includeComments:!0}),m=t.getTokenAfter(c),h=t.getTokenBefore(u);l.length>=p.minItems||p.multiline&&l.length>0&&!(0,nK.isTokenOnSameLine)(d,f)||0===l.length&&"Block"===f.type&&!(0,nK.isTokenOnSameLine)(d,f)&&f===d||p.consistent&&!(0,nK.isTokenOnSameLine)(c,m)?((0,nK.isTokenOnSameLine)(c,m)&&e.report({node:n,loc:c.loc,messageId:"missingOpeningLinebreak",fix:e=>e.insertTextAfter(c,"\n")}),(0,nK.isTokenOnSameLine)(h,u)&&e.report({node:n,loc:u.loc,messageId:"missingClosingLinebreak",fix:e=>e.insertTextBefore(u,"\n")})):((0,nK.isTokenOnSameLine)(c,m)||e.report({node:n,loc:c.loc,messageId:"unexpectedOpeningLinebreak",fix(e){let n=t.getTokenAfter(c,{includeComments:!0});return!n||(0,nK.isCommentToken)(n)?null:e.removeRange([c.range[1],n.range[0]])}}),(0,nK.isTokenOnSameLine)(h,u)||e.report({node:n,loc:u.loc,messageId:"unexpectedClosingLinebreak",fix(e){let n=t.getTokenBefore(u,{includeComments:!0});return!n||(0,nK.isCommentToken)(n)?null:e.removeRange([n.range[1],u.range[0]])}}))}return{ArrayPattern:n,ArrayExpression:n}}}),rB=rE({name:"array-bracket-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing inside array brackets"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],defaultOptions:["never"],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(e,[t]){let n="always"===t,r=e.sourceCode;function i(t){return!!e.options[1]&&!n===e.options[1][t]}let s={spaced:n,singleElementException:i("singleValue"),objectsInArraysException:i("objectsInArrays"),arraysInArraysException:i("arraysInArrays")};function a(e){return e&&("ObjectExpression"===e.type||"ObjectPattern"===e.type)}function o(e){return e&&("ArrayExpression"===e.type||"ArrayPattern"===e.type)}function l(t){if(s.spaced&&0===t.elements.length)return;let n=r.getFirstToken(t),i=r.getFirstToken(t,1),l="ArrayPattern"===t.type&&t.typeAnnotation?r.getTokenBefore(t.typeAnnotation):r.getLastToken(t),p=r.getTokenBefore(l),c=t.elements[0],u=t.elements[t.elements.length-1],f=c&&s.objectsInArraysException&&a(c)||c&&s.arraysInArraysException&&o(c)||s.singleElementException&&1===t.elements.length?!s.spaced:s.spaced,d=u&&s.objectsInArraysException&&a(u)||u&&s.arraysInArraysException&&o(u)||s.singleElementException&&1===t.elements.length?!s.spaced:s.spaced;if((0,nK.isTokenOnSameLine)(n,i)){let s;f&&!r.isSpaceBetween(n,i)&&e.report({node:t,loc:n.loc,messageId:"missingSpaceAfter",data:{tokenValue:n.value},fix:e=>e.insertTextAfter(n," ")}),!f&&r.isSpaceBetween(n,i)&&(s=r.getTokenAfter(n),e.report({node:t,loc:{start:n.loc.end,end:s.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:n.value},fix:e=>e.removeRange([n.range[1],s.range[0]])}))}if(n!==p&&(0,nK.isTokenOnSameLine)(p,l)){let n;d&&!r.isSpaceBetween(p,l)&&e.report({node:t,loc:l.loc,messageId:"missingSpaceBefore",data:{tokenValue:l.value},fix:e=>e.insertTextBefore(l," ")}),!d&&r.isSpaceBetween(p,l)&&(n=r.getTokenBefore(l),e.report({node:t,loc:{start:n.loc.end,end:l.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:l.value},fix:e=>e.removeRange([n.range[1],l.range[0]])}))}}return{ArrayPattern:l,ArrayExpression:l}}}),rD=rE({name:"array-element-newline",meta:{type:"layout",docs:{description:"Enforce line breaks after each array element"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{type:"string",enum:["always","never","consistent"]},{type:"object",properties:{consistent:{type:"boolean"},multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},defaultOptions:[],messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(e){let t=e.sourceCode;function n(e){let t,n=!1,r=!1,i=e||"always";return"always"===i||"object"==typeof i&&0===i.minItems?t=0:"never"===i?t=1/0:"consistent"===i?(n=!0,t=1/0):(n=!!i.consistent,r=!!i.multiline,t=i.minItems||1/0),{consistent:n,multiline:r,minItems:t}}function r(r){let i=r.elements,s=function(e){if(e&&(e.ArrayExpression||e.ArrayPattern)){let t,r;return e.ArrayExpression&&(t=n(e.ArrayExpression)),e.ArrayPattern&&(r=n(e.ArrayPattern)),{ArrayExpression:t,ArrayPattern:r}}let t=n(e);return{ArrayExpression:t,ArrayPattern:t}}(e.options[0])[r.type];if(!s)return;let a=!1;s.multiline&&(a=i.some(e=>null!==e&&!rT(e)));let o=0;for(let e=0;e<r.elements.length;e++){let n=r.elements[e],s=i[e-1];if(0===e||null===n||null===s)continue;let a=t.getFirstTokenBetween(s,n,nK.isCommaToken);!(0,nK.isTokenOnSameLine)(t.getTokenBefore(a),t.getTokenAfter(a))&&o++}let l=i.length>=s.minItems||s.multiline&&a||s.consistent&&o>0&&o<r.elements.length;i.forEach((n,r)=>{let s=i[r-1];if(0===r||null===n||null===s)return;let a=t.getFirstTokenBetween(s,n,nK.isCommaToken),o=t.getTokenBefore(a),p=t.getTokenAfter(a);if(l){let n;(0,nK.isTokenOnSameLine)(o,p)&&(n=t.getTokenBefore(p,{includeComments:!0}),e.report({loc:{start:n.loc.end,end:p.loc.start},messageId:"missingLineBreak",fix:e=>e.replaceTextRange([n.range[1],p.range[0]],"\n")}))}else{let n;(0,nK.isTokenOnSameLine)(o,p)||(n=t.getTokenBefore(p,{includeComments:!0}),e.report({loc:{start:n.loc.end,end:p.loc.start},messageId:"unexpectedLineBreak",fix(e){if((0,nK.isCommentToken)(n))return null;if(!(0,nK.isTokenOnSameLine)(n,p))return e.replaceTextRange([n.range[1],p.range[0]]," ");let r=t.getTokenBefore(n,{includeComments:!0});return(0,nK.isCommentToken)(r)?null:e.replaceTextRange([r.range[1],n.range[0]],"")}}))}})}return{ArrayPattern:r,ArrayExpression:r}}}),rj=rE({name:"arrow-parens",meta:{type:"layout",docs:{description:"Require parentheses around arrow function arguments"},fixable:"code",schema:[{type:"string",enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean"}},additionalProperties:!1}],defaultOptions:["always"],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(e,[t,n]){let r="as-needed"===t,i=r&&n?.requireForBlockBody===!0,s=e.sourceCode;function a(e){return s.getTokenAfter(e.params[0],nK.isClosingParenToken)}return{"ArrowFunctionExpression[params.length=1]":function(t){let n,o,l=!r||i&&"BlockStatement"===t.body.type,p=(n=s.getTokenBefore(t.params[0]))&&(0,nK.isOpeningParenToken)(n)&&t.range[0]<=n.range[0]?n:null,c=null!==p,[u]=t.params;l&&!c&&e.report({node:t,messageId:i?"expectedParensBlock":"expectedParens",loc:u.loc,*fix(e){yield e.insertTextBefore(u,"("),yield e.insertTextAfter(u,")")}}),l||!c||"Identifier"!==u.type||u.optional||u.typeAnnotation||t.returnType||s.commentsExistBetween(p,a(t))||(o=+!!t.async,s.getFirstToken(t,{skip:o})!==p)||e.report({node:t,messageId:i?"unexpectedParensInline":"unexpectedParens",loc:u.loc,*fix(e){let n=s.getTokenBefore(p),r=a(t);n&&n.range[1]===p.range[0]&&!rd(n,s.getFirstToken(u))&&(yield e.insertTextBefore(p," ")),yield e.removeRange([p.range[0],u.range[0]]),yield e.removeRange([u.range[1],r.range[1]])}})}}}}),rR=rE({name:"arrow-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing before and after the arrow in arrow functions"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{before:!0,after:!0}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(e,[t]){let n=e.sourceCode;function r(r){let i="ArrowFunctionExpression"===r.type?n.getTokenBefore(r.body,nK.isArrowToken):n.getFirstToken(r.returnType,nK.isArrowToken),s=n.getTokenBefore(i,{includeComments:!0}),a=n.isSpaceBetween(s,i);t.before?a||e.report({node:s,messageId:"expectedBefore",fix:e=>e.insertTextBefore(i," ")}):a&&e.report({node:s,messageId:"unexpectedBefore",fix:e=>e.removeRange([s.range[1],i.range[0]])});let o=n.getTokenAfter(i,{includeComments:!0}),l=n.isSpaceBetween(i,o);t.after?l||e.report({node:o,messageId:"expectedAfter",fix:e=>e.insertTextAfter(i," ")}):l&&e.report({node:o,messageId:"unexpectedAfter",fix:e=>e.removeRange([i.range[1],o.range[0]])})}return{ArrowFunctionExpression:r,TSFunctionType:r,TSConstructorType:r}}}),rF=rE({name:"block-spacing",meta:{type:"layout",docs:{description:"Disallow or enforce spaces inside of blocks after opening block and before closing block"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]}],defaultOptions:["always"],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(e,[t]){let n=e.sourceCode,r="never"!==t,i=r?"missing":"extra";function s(e,t){return!(0,nK.isTokenOnSameLine)(e,t)||n.isSpaceBetween(e,t)===r}function a(t){let a=n.getFirstToken(t,{filter:e=>(0,nK.isOpeningBraceToken)(e)}),o=n.getLastToken(t),l=n.getTokenAfter(a,{includeComments:!0}),p=n.getTokenBefore(o,{includeComments:!0});if((0,nK.isOpeningBraceToken)(a)&&(0,nK.isClosingBraceToken)(o)&&l!==o&&(r||l.type!==e4.AST_TOKEN_TYPES.Line)){if(!s(a,l)){let n=a.loc;"extra"===i&&(n={start:a.loc.end,end:l.loc.start}),e.report({node:t,loc:n,messageId:i,data:{location:"after",token:a.value},fix:e=>r?e.insertTextBefore(l," "):e.removeRange([a.range[1],l.range[0]])})}if(!s(p,o)){let n=o.loc;"extra"===i&&(n={start:p.loc.end,end:o.loc.start}),e.report({node:t,loc:n,messageId:i,data:{location:"before",token:o.value},fix:e=>r?e.insertTextAfter(p," "):e.removeRange([p.range[1],o.range[0]])})}}}return{BlockStatement:a,StaticBlock:a,SwitchStatement:a}}}),rM=rE({name:"brace-style",meta:{type:"layout",docs:{description:"Enforce consistent brace style for blocks"},fixable:"whitespace",schema:[{type:"string",enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean"}},additionalProperties:!1}],defaultOptions:["1tbs",{allowSingleLine:!1}],messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},create(e,[t,n]){let r=e.sourceCode,{allowSingleLine:i}=n,s="allman"===t;function a(t,n){let a=r.getTokenBefore(t),o=r.getTokenBefore(n),l=r.getTokenAfter(t),p=i&&(0,nK.isTokenOnSameLine)(t,n);s||(0,nK.isTokenOnSameLine)(a,t)||e.report({node:t,messageId:"nextLineOpen",fix:rk(r,a,t," ")}),s&&(0,nK.isTokenOnSameLine)(a,t)&&!p&&e.report({node:t,messageId:"sameLineOpen",fix:e=>e.insertTextBefore(t,"\n")}),(0,nK.isTokenOnSameLine)(t,l)&&l!==n&&!p&&e.report({node:t,messageId:"blockSameLine",fix:e=>e.insertTextAfter(t,"\n")}),(0,nK.isTokenOnSameLine)(o,n)&&o!==t&&!p&&e.report({node:n,messageId:"singleLineClose",fix:e=>e.insertTextBefore(n,"\n")})}function o(n){let i=r.getTokenAfter(n);"1tbs"!==t||(0,nK.isTokenOnSameLine)(n,i)||e.report({node:n,messageId:"nextLineClose",fix:rk(r,n,i," ")}),"1tbs"!==t&&(0,nK.isTokenOnSameLine)(n,i)&&e.report({node:n,messageId:"sameLineClose",fix:e=>e.insertTextAfter(n,"\n")})}return{BlockStatement(e){nG.has(e.parent.type)||a(r.getFirstToken(e),r.getLastToken(e))},StaticBlock(e){a(r.getFirstToken(e,{skip:1}),r.getLastToken(e))},ClassBody(e){a(r.getFirstToken(e),r.getLastToken(e))},SwitchStatement(e){let t=r.getLastToken(e);a(r.getTokenBefore(e.cases.length?e.cases[0]:t),t)},IfStatement(e){"BlockStatement"===e.consequent.type&&e.alternate&&o(r.getLastToken(e.consequent))},TryStatement(e){o(r.getLastToken(e.block)),e.handler&&e.finalizer&&o(r.getLastToken(e.handler.body))},TSModuleBlock(e){a(r.getFirstToken(e),r.getLastToken(e))}}}});let r$=["always-multiline","always","never","only-multiline"];var rV=rE({name:"comma-dangle",meta:{type:"layout",docs:{description:"Require or disallow trailing commas"},fixable:"code",schema:{$defs:{value:{type:"string",enum:r$},valueWithIgnore:{type:"string",enum:[...r$,"ignore"]}},type:"array",items:[{oneOf:[{$ref:"#/$defs/value"},{type:"object",properties:{arrays:{$ref:"#/$defs/valueWithIgnore"},objects:{$ref:"#/$defs/valueWithIgnore"},imports:{$ref:"#/$defs/valueWithIgnore"},exports:{$ref:"#/$defs/valueWithIgnore"},functions:{$ref:"#/$defs/valueWithIgnore"},importAttributes:{$ref:"#/$defs/valueWithIgnore"},dynamicImports:{$ref:"#/$defs/valueWithIgnore"},enums:{$ref:"#/$defs/valueWithIgnore"},generics:{$ref:"#/$defs/valueWithIgnore"},tuples:{$ref:"#/$defs/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},defaultOptions:["never"],messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(e,[t]){let n=function(e={},t){let n="never";return"string"==typeof e?{arrays:e,objects:e,imports:e,exports:e,functions:t&&"latest"!==t&&t<2017?"ignore":e,importAttributes:e,dynamicImports:t&&"latest"!==t&&t<2025?"ignore":e,enums:e,generics:e,tuples:e}:{arrays:e.arrays??n,objects:e.objects??n,imports:e.imports??n,exports:e.exports??n,functions:e.functions??n,importAttributes:e.importAttributes??n,dynamicImports:e.dynamicImports??n,enums:e.enums??n,generics:e.generics??n,tuples:e.tuples??n}}(t,e.languageOptions?.ecmaVersion??e.parserOptions?.ecmaVersion),r=(e.languageOptions?.parserOptions?.ecmaFeatures?.jsx??e.parserOptions?.ecmaFeatures?.jsx)&&e.filename?.endsWith(".tsx"),i=e.sourceCode,s=["}","]",")",">"],a={always:u,"always-multiline":function(e){p(e)?u(e):c(e)},"only-multiline":function(e){p(e)||c(e)},never:c,ignore:()=>{}};function o(e){return e?e[e.length-1]??null:null}function l(e){switch(e.node.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":case"ImportExpression":return i.getLastToken(e.node,1);default:{let t=e.lastItem;if(!t)return null;let n=i.getTokenAfter(t);if((0,nK.isCommaToken)(n))return n;return i.getLastToken(t)}}}function p(e){if(!e.lastItem)return!1;let t=l(e);if(!t)return!1;let n=i.getTokenAfter(t);return!!n&&n.loc.end.line!==t.loc.end.line}function c(t){if(r&&t.node.type===e4.AST_NODE_TYPES.TSTypeParameterDeclaration&&1===t.node.params.length)return;let n=t.lastItem;if(!n)return;let s=l(t);s&&(0,nK.isCommaToken)(s)&&e.report({node:n,loc:s.loc,messageId:"unexpected",*fix(e){yield e.remove(s),yield e.insertTextBefore(i.getTokenBefore(s),""),yield e.insertTextAfter(i.getTokenAfter(s),"")}})}function u(t){let n=t.lastItem;if(!n)return;if("RestElement"===n.type)return void c(t);let r=l(t);if(!r||","===r.value)return;let a=i.getTokenAfter(r);a&&s.includes(a.value)&&e.report({node:n,loc:{start:r.loc.end,end:rf(i,r.loc.end)},messageId:"missing",*fix(e){yield e.insertTextAfter(r,","),yield e.insertTextBefore(r,""),yield e.insertTextAfter(i.getTokenAfter(r),"")}})}return{ObjectExpression:e=>{a[n.objects]({node:e,lastItem:o(e.properties)})},ObjectPattern:e=>{a[n.objects]({node:e,lastItem:o(e.properties)})},ArrayExpression:e=>{a[n.arrays]({node:e,lastItem:o(e.elements)})},ArrayPattern:e=>{a[n.arrays]({node:e,lastItem:o(e.elements)})},ImportDeclaration:e=>{let t=o(e.specifiers);t?.type==="ImportSpecifier"&&a[n.imports]({node:e,lastItem:t}),a[n.importAttributes]({node:e,lastItem:o(e.attributes)})},ExportNamedDeclaration:e=>{a[n.exports]({node:e,lastItem:o(e.specifiers)}),a[n.importAttributes]({node:e,lastItem:o(e.attributes)})},ExportAllDeclaration:e=>{a[n.importAttributes]({node:e,lastItem:o(e.attributes)})},FunctionDeclaration:e=>{a[n.functions]({node:e,lastItem:o(e.params)})},FunctionExpression:e=>{a[n.functions]({node:e,lastItem:o(e.params)})},ArrowFunctionExpression:e=>{a[n.functions]({node:e,lastItem:o(e.params)})},CallExpression:e=>{a[n.functions]({node:e,lastItem:o(e.arguments)})},NewExpression:e=>{a[n.functions]({node:e,lastItem:o(e.arguments)})},ImportExpression:e=>{a[n.dynamicImports]({node:e,lastItem:e.options??e.source})},TSEnumDeclaration(e){a[n.enums]({node:e,lastItem:o(e.body?.members??e.members)})},TSTypeParameterDeclaration(e){a[n.generics]({node:e,lastItem:o(e.params)})},TSTypeParameterInstantiation(e){a.never({node:e,lastItem:o(e.params)})},TSTupleType(e){a[n.tuples]({node:e,lastItem:o(e.elementTypes)})},TSDeclareFunction(e){a[n.functions]({node:e,lastItem:o(e.params)})},TSFunctionType(e){a[n.functions]({node:e,lastItem:o(e.params)})}}}}),rq=rE({name:"comma-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing before and after commas"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{before:!1,after:!0}],messages:{unexpected:"There should be no space {{loc}} ','.",missing:"A space is required {{loc}} ','."}},create(e,[t]){let{before:n,after:r}=t,i=e.sourceCode,s=i.tokensAndComments,a=new Set;function o(e){let t=i.getFirstToken(e);for(let n of e.elements){let e;null==n?(e=i.getTokenAfter(t))&&(0,nK.isCommaToken)(e)&&a.add(e):e=i.getTokenAfter(n),t=e}}return{ArrayExpression:o,ArrayPattern:o,TSTypeParameterDeclaration:function(e){let t=e.params.length;if(t){let n=e.params[t-1],r=i.getTokenAfter(n);r&&(0,nK.isCommaToken)(r)&&a.add(r)}},"Program:exit":function(){s.forEach((t,o)=>{var l,p;if(!(0,nK.isCommaToken)(t))return;let c=s[o-1],u=s[o+1];l=(0,nK.isCommaToken)(c)||a.has(t)?null:c,p=u&&(0,nK.isCommaToken)(u)||a.has(t)?null:u,l&&(0,nK.isTokenOnSameLine)(l,t)&&n!==i.isSpaceBetween(l,t)&&e.report({node:t,data:{loc:"before"},messageId:n?"missing":"unexpected",fix:e=>n?e.insertTextBefore(t," "):e.replaceTextRange([l.range[1],t.range[0]],"")}),p&&(0,nK.isTokenOnSameLine)(t,p)&&!(0,nK.isClosingParenToken)(p)&&!(0,nK.isClosingBracketToken)(p)&&!(0,nK.isClosingBraceToken)(p)&&!(!r&&p.type===e4.AST_TOKEN_TYPES.Line)&&r!==i.isSpaceBetween(t,p)&&e.report({node:t,data:{loc:"after"},messageId:r?"missing":"unexpected",fix:e=>r?e.insertTextAfter(t," "):e.replaceTextRange([t.range[1],p.range[0]],"")})})}}}}),rY=rE({name:"comma-style",meta:{type:"layout",docs:{description:"Enforce consistent comma style"},fixable:"code",schema:[{type:"string",enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],defaultOptions:["last"],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(e,[t,n]){let r=e.sourceCode,i=n?.exceptions??{};function s(e,t,n,i){let s=r.text.slice(t.range[1],n.range[0])+r.text.slice(n.range[1],i.range[0]),a=[t.range[1],i.range[0]];return function(t){return t.replaceTextRange(a,function(e,t){switch(e){case"between":return`,${t.replace(nK.LINEBREAK_MATCHER,"")}`;case"first":return`${t},`;case"last":return`,${t}`;default:return""}}(e,s))}}function a(n,i){(function(e,t){if(0===t.length)return[];let n=t.filter(e=>!!e);if(0===n.length)return r.getTokens(e).filter(nK.isCommaToken);let i=[],s=n[0],a=r.getTokenBefore(s);for(;a&&e.range[0]<=a.range[0];){if((0,nK.isCommaToken)(a))i.unshift(a);else if((0,nK.isNotOpeningParenToken)(a))break;a=r.getTokenBefore(a)}let o=null;for(let e of n){o&&i.push(...r.getTokensBetween(o,e).filter(nK.isCommaToken));let t=r.getLastToken(e);t&&(0,nK.isCommaToken)(t)&&i.push(t),o=e}let l=r.getTokenAfter(o);for(;l&&l.range[1]<=e.range[1];){if((0,nK.isCommaToken)(l))i.push(l);else if((0,nK.isNotClosingParenToken)(l))break;l=r.getTokenAfter(l)}return i})(n,i).forEach(n=>{let i=r.getTokenBefore(n),a=r.getTokenAfter(n);if(!((0,nK.isOpeningBracketToken)(i)||(0,nK.isCommaToken)(i)&&(0,nK.isOpeningBracketToken)(r.getTokenBefore(i,nK.isNotCommaToken)))&&(!(0,nK.isCommaToken)(a)||(0,nK.isTokenOnSameLine)(n,a)))if((0,nK.isTokenOnSameLine)(n,a)&&(0,nK.isTokenOnSameLine)(i,n));else if((0,nK.isTokenOnSameLine)(n,a)||(0,nK.isTokenOnSameLine)(i,n))"first"!==t||(0,nK.isTokenOnSameLine)(n,a)?"last"===t&&(0,nK.isTokenOnSameLine)(n,a)&&e.report({node:n,messageId:"expectedCommaLast",fix:s(t,i,n,a)}):e.report({node:n,messageId:"expectedCommaFirst",fix:s(t,i,n,a)});else{let o=r.getCommentsAfter(n)[0],l=o&&"Block"===o.type&&(0,nK.isTokenOnSameLine)(n,o)?t:"between";e.report({node:n,messageId:"unexpectedLineBeforeAndAfterComma",fix:s(l,i,n,a)})}})}let o={};return i.VariableDeclaration||(o.VariableDeclaration=e=>a(e,e.declarations)),i.ObjectExpression||(o.ObjectExpression=l),i.ObjectPattern||(o.ObjectPattern=l),i.ArrayExpression||(o.ArrayExpression=p),i.ArrayPattern||(o.ArrayPattern=p),i.FunctionDeclaration||(o.FunctionDeclaration=c),i.FunctionExpression||(o.FunctionExpression=c),i.ArrowFunctionExpression||(o.ArrowFunctionExpression=c),i.CallExpression||(o.CallExpression=u),i.ImportDeclaration||(o.ImportDeclaration=e=>{a(e,e.specifiers),f(e)}),i.NewExpression||(o.NewExpression=u),i.ExportAllDeclaration||(o.ExportAllDeclaration=f),i.ExportNamedDeclaration||(o.ExportNamedDeclaration=e=>{a(e,e.specifiers),f(e)}),i.ImportExpression||(o.ImportExpression=e=>{a(e,[e.source,e.options??null])}),i.SequenceExpression||(o.SequenceExpression=e=>a(e,e.expressions)),i.ClassDeclaration||(o.ClassDeclaration=d),i.ClassExpression||(o.ClassExpression=d),i.TSDeclareFunction||(o.TSDeclareFunction=c),i.TSFunctionType||(o.TSFunctionType=c),i.TSConstructorType||(o.TSConstructorType=c),i.TSEmptyBodyFunctionExpression||(o.TSEmptyBodyFunctionExpression=c),i.TSMethodSignature||(o.TSMethodSignature=c),i.TSCallSignatureDeclaration||(o.TSCallSignatureDeclaration=c),i.TSConstructSignatureDeclaration||(o.TSConstructSignatureDeclaration=c),i.TSTypeParameterDeclaration||(o.TSTypeParameterDeclaration=h),i.TSTypeParameterInstantiation||(o.TSTypeParameterInstantiation=h),i.TSEnumBody||(o.TSEnumBody=m),i.TSTypeLiteral||(o.TSTypeLiteral=m),i.TSIndexSignature||(o.TSIndexSignature=e=>a(e,e.parameters)),i.TSInterfaceDeclaration||(o.TSInterfaceDeclaration=e=>a(e,e.extends)),i.TSInterfaceBody||(o.TSInterfaceBody=e=>a(e,e.body)),i.TSTupleType||(o.TSTupleType=e=>a(e,e.elementTypes)),o;function l(e){a(e,e.properties)}function p(e){a(e,e.elements)}function c(e){a(e,e.params)}function u(e){a(e,e.arguments)}function f(e){e.attributes&&a(e,e.attributes)}function d(e){e.implements&&a(e,e.implements)}function m(e){a(e,e.members)}function h(e){a(e,e.params)}}}),rX=rE({name:"computed-property-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing inside computed property brackets"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean"}},additionalProperties:!1}],defaultOptions:["never",{enforceForClassMembers:!0}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(e,[t,n]){let r=e.sourceCode,i="always"===t,{enforceForClassMembers:s}=n;function a(t){return function(n){if("TSIndexedAccessType"!==n.type&&!n.computed)return;let s=n[t],a=r.getTokenBefore(s,nK.isOpeningBracketToken),o=r.getTokenAfter(a,{includeComments:!0}),l=r.getTokenAfter(s,nK.isClosingBracketToken),p=r.getTokenBefore(l,{includeComments:!0});(0,nK.isTokenOnSameLine)(a,o)&&(i?!r.isSpaceBetween(a,o)&&(0,nK.isTokenOnSameLine)(a,o)&&e.report({node:n,loc:a.loc,messageId:"missingSpaceAfter",data:{tokenValue:a.value},fix:e=>e.insertTextAfter(a," ")}):r.isSpaceBetween(a,o)&&e.report({node:n,loc:{start:a.loc.end,end:o.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:a.value},fix:e=>e.removeRange([a.range[1],o.range[0]])})),(0,nK.isTokenOnSameLine)(p,l)&&(i?!r.isSpaceBetween(p,l)&&(0,nK.isTokenOnSameLine)(p,l)&&e.report({node:n,loc:l.loc,messageId:"missingSpaceBefore",data:{tokenValue:l.value},fix:e=>e.insertTextBefore(l," ")}):r.isSpaceBetween(p,l)&&e.report({node:n,loc:{start:p.loc.end,end:l.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:l.value},fix:e=>e.removeRange([p.range[1],l.range[0]])}))}}let o={Property:a("key"),MemberExpression:a("property"),TSIndexedAccessType:a("indexType")};return s&&(o.MethodDefinition=a("key"),o.PropertyDefinition=a("key"),o.AccessorProperty=a("key")),o}});let rJ={multiline:{type:"boolean"},minElements:{type:"integer",minimum:0},consistent:{type:"boolean"}},rU={oneOf:[{type:"string",enum:["always","never"]},{type:"object",properties:rJ,additionalProperties:!1}]};var rW=((r=rW||{}).IfStatementConsequent="IfStatementConsequent",r.IfStatementAlternative="IfStatementAlternative",r.DoWhileStatement="DoWhileStatement",r.ForInStatement="ForInStatement",r.ForOfStatement="ForOfStatement",r.ForStatement="ForStatement",r.WhileStatement="WhileStatement",r.SwitchStatement="SwitchStatement",r.SwitchCase="SwitchCase",r.TryStatementBlock="TryStatementBlock",r.TryStatementHandler="TryStatementHandler",r.TryStatementFinalizer="TryStatementFinalizer",r.BlockStatement="BlockStatement",r.ArrowFunctionExpression="ArrowFunctionExpression",r.FunctionDeclaration="FunctionDeclaration",r.FunctionExpression="FunctionExpression",r.Property="Property",r.ClassBody="ClassBody",r.StaticBlock="StaticBlock",r.WithStatement="WithStatement",r.TSModuleBlock="TSModuleBlock",r);let rK={multiline:!1,minElements:1/0,consistent:!0},rH={multiline:!1,minElements:0,consistent:!1},rz={multiline:!1,minElements:1/0,consistent:!1};function rG(e){return"always"===e?rH:"never"===e?rz:e?{consistent:!!e.consistent,minElements:e.minElements??1/0,multiline:!!e.multiline}:rK}var rQ=rE({name:"curly-newline",meta:{type:"layout",docs:{description:"Enforce consistent line breaks after opening and before closing braces"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["always","never"]},{type:"object",properties:{...Object.fromEntries(Object.entries(rW).map(([e])=>[e,rU])),...rJ},additionalProperties:!1}]}],defaultOptions:[],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},create(e,[t]){let n,r=e.sourceCode,i=(n=rG(t),Object.fromEntries(Object.entries(rW).map(([e])=>[e,"object"==typeof t&&null!=t&&e in t?rG(t[e]):n])));function s(t,n){let s,a,o,l=i[n];switch(t.type){case"SwitchStatement":a=r.getLastToken(t),s=r.getTokenBefore(t.cases.length?t.cases[0]:a),o=t.cases.length;break;case"StaticBlock":s=r.getFirstToken(t,e=>"{"===e.value),a=r.getLastToken(t),o=t.body.length;break;default:s=r.getFirstToken(t),a=r.getLastToken(t),o=t.body.length}let p=r.getTokenAfter(s,{includeComments:!0}),c=r.getTokenBefore(a,{includeComments:!0}),u=o>=l.minElements||l.multiline&&o>0&&!(0,nK.isTokenOnSameLine)(c,p),f=(0,nK.isCommentToken)(p),d=(0,nK.isCommentToken)(c);if(p=r.getTokenAfter(s),c=r.getTokenBefore(a),u)(0,nK.isTokenOnSameLine)(s,p)&&e.report({messageId:"expectedLinebreakAfterOpeningBrace",node:t,loc:s.loc,fix:e=>f?null:e.insertTextAfter(s,"\n")}),(0,nK.isTokenOnSameLine)(c,a)&&e.report({messageId:"expectedLinebreakBeforeClosingBrace",node:t,loc:a.loc,fix:e=>d?null:e.insertTextBefore(a,"\n")});else{let n=l.consistent,r=!(0,nK.isTokenOnSameLine)(s,p),i=!(0,nK.isTokenOnSameLine)(c,a);(!n&&r||n&&r&&!i)&&e.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:t,loc:s.loc,fix:e=>f?null:e.removeRange([s.range[1],p.range[0]])}),(!n&&i||n&&!r&&i)&&e.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:t,loc:a.loc,fix:e=>d?null:e.removeRange([c.range[1],a.range[0]])})}}function a(e){s(e,e.type)}return{BlockStatement(e){let{parent:t}=e;switch(t.type){case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":case"ForStatement":case"WhileStatement":case"ArrowFunctionExpression":case"FunctionDeclaration":case"WithStatement":s(e,t.type);break;case"FunctionExpression":"Property"===t.parent.type&&t.parent.method?s(e,"Property"):s(e,t.type);break;case"IfStatement":e===t.consequent&&s(e,"IfStatementConsequent"),e===t.alternate&&s(e,"IfStatementAlternative");break;case"TryStatement":e===t.block&&s(e,"TryStatementBlock"),e===t.finalizer&&s(e,"TryStatementFinalizer");break;case"CatchClause":s(e,"TryStatementHandler");break;default:"SwitchCase"===t.type&&1===t.consequent.length?s(e,"SwitchCase"):s(e,"BlockStatement")}},SwitchStatement:a,ClassBody:a,StaticBlock:a,TSModuleBlock:a}}}),rZ=rE({name:"dot-location",meta:{type:"layout",docs:{description:"Enforce consistent newlines before and after dots"},fixable:"code",schema:[{type:"string",enum:["object","property"]}],defaultOptions:["object"],messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(e,[t]){let n="object"===t,r=e.sourceCode;function i(t){let i="TSImportType"===t.type?t.qualifier:"TSQualifiedName"===t.type?t.right:t.property;if(!i)return;let s=r.getTokenBefore(i);if(s)if(n){let n=r.getTokenBefore(s);n&&!(0,nK.isTokenOnSameLine)(n,s)&&e.report({node:t,loc:s.loc,messageId:"expectedDotAfterObject",*fix(e){var t;s.value.startsWith(".")&&"Numeric"===(t=n).type&&nQ.test(t.value)?yield e.insertTextAfter(n,` ${s.value}`):yield e.insertTextAfter(n,s.value),yield e.remove(s)}})}else(0,nK.isTokenOnSameLine)(s,i)||e.report({node:t,loc:s.loc,messageId:"expectedDotBeforeProperty",*fix(e){yield e.remove(s),yield e.insertTextBefore(i,s.value)}})}return{MemberExpression(e){e.computed||i(e)},MetaProperty:i,JSXMemberExpression:i,TSQualifiedName:i,TSImportType:i}}}),r0=rE({name:"eol-last",meta:{type:"layout",docs:{description:"Require or disallow newline at the end of files"},fixable:"whitespace",schema:[{type:"string",enum:["always","never","unix","windows"]}],defaultOptions:["always"],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create(e,[t]){let n=e.sourceCode;if(!rv(n)||!rA(n))return{};let r=n.text,i=`\r
1
+ "use strict";let e,t,n;require("node:module");var r,i,s,a,o,l,p,c,u,f,d,m,h,g,y,x,T,S,b,E,k,v,A,w=require("node:process");function C(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function _(e){if(Object.prototype.hasOwnProperty.call(e,"__esModule"))return e;var t=e.default;if("function"==typeof t){var n=function e(){var n=!1;try{n=this instanceof e}catch(e){}return n?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};n.prototype=t.prototype}else n={};return Object.defineProperty(n,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var r=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(n,t,r.get?r:{enumerable:!0,get:function(){return e[t]}})}),n}let O={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportExpression:["source"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};for(let e of Object.keys(O))Object.freeze(O[e]);Object.freeze(O);let P=new Set(["parent","leadingComments","trailingComments"]);function I(e){return!P.has(e)&&"_"!==e[0]}function N(e,t){let n=t.range[0],r=e,i=!1;do for(let e of(i=!1,r.childScopes)){let t=e.block.range;if(t[0]<=n&&n<t[1]){r=e,i=!0;break}}while(i);return r}function L(e,t){let n="",r=e;for("string"==typeof t?n=t:(n=t.name,r=N(r,t));null!=r;){let e=r.set.get(n);if(null!=e)return e;r=r.upper}return null}function B(e){return t=>!e(t)}function D(e,t){return"Punctuator"===e.type&&e.value===t}function j(e){return D(e,"=>")}function R(e){return D(e,",")}function F(e){return D(e,";")}function M(e){return D(e,":")}function $(e){return D(e,"(")}function V(e){return D(e,")")}function q(e){return D(e,"[")}function Y(e){return D(e,"]")}function X(e){return D(e,"{")}function J(e){return D(e,"}")}function U(e){return["Block","Line","Shebang"].includes(e.type)}let W=B(j),K=B(R),H=B(F),z=B(M),G=B($),Q=B(V),Z=B(q),ee=B(Y),et=B(X),en=B(J),er=B(U);function ei(e,t){let n=e.parent,r=null,i=null;if("ArrowFunctionExpression"===e.type){let n=t.getTokenBefore(e.body,j);r=n.loc.start,i=n.loc.end}else{var s,a;r=n&&("Property"===n.type||"MethodDefinition"===n.type||"PropertyDefinition"===n.type)?n.loc.start:e.loc.start,i=(s=e,a=t,s.id?a.getTokenAfter(s.id,$):a.getFirstToken(s,$)).loc.start}return{start:{...r},end:{...i}}}let es="u">typeof globalThis?globalThis:"u">typeof self?self:"u">typeof window?window:"u">typeof global?global:{},ea=Object.freeze(new Set(["Array","ArrayBuffer","BigInt","BigInt64Array","BigUint64Array","Boolean","DataView","Date","decodeURI","decodeURIComponent","encodeURI","encodeURIComponent","escape","Float32Array","Float64Array","Function","Infinity","Int16Array","Int32Array","Int8Array","isFinite","isNaN","isPrototypeOf","JSON","Map","Math","NaN","Number","Object","parseFloat","parseInt","Promise","Proxy","Reflect","RegExp","Set","String","Symbol","Uint16Array","Uint32Array","Uint8Array","Uint8ClampedArray","undefined","unescape","WeakMap","WeakSet"])),eo=new Set([Array.isArray,Array.of,Array.prototype.at,Array.prototype.concat,Array.prototype.entries,Array.prototype.every,Array.prototype.filter,Array.prototype.find,Array.prototype.findIndex,Array.prototype.flat,Array.prototype.includes,Array.prototype.indexOf,Array.prototype.join,Array.prototype.keys,Array.prototype.lastIndexOf,Array.prototype.slice,Array.prototype.some,Array.prototype.toString,Array.prototype.values,"function"==typeof BigInt?BigInt:void 0,Boolean,Date,Date.parse,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,escape,isFinite,isNaN,isPrototypeOf,Map,Map.prototype.entries,Map.prototype.get,Map.prototype.has,Map.prototype.keys,Map.prototype.values,...Object.getOwnPropertyNames(Math).filter(e=>"random"!==e).map(e=>Math[e]).filter(e=>"function"==typeof e),Number,Number.isFinite,Number.isNaN,Number.parseFloat,Number.parseInt,Number.prototype.toExponential,Number.prototype.toFixed,Number.prototype.toPrecision,Number.prototype.toString,Object,Object.entries,Object.is,Object.isExtensible,Object.isFrozen,Object.isSealed,Object.keys,Object.values,parseFloat,parseInt,RegExp,Set,Set.prototype.entries,Set.prototype.has,Set.prototype.keys,Set.prototype.values,String,String.fromCharCode,String.fromCodePoint,String.raw,String.prototype.at,String.prototype.charAt,String.prototype.charCodeAt,String.prototype.codePointAt,String.prototype.concat,String.prototype.endsWith,String.prototype.includes,String.prototype.indexOf,String.prototype.lastIndexOf,String.prototype.normalize,String.prototype.padEnd,String.prototype.padStart,String.prototype.slice,String.prototype.startsWith,String.prototype.substr,String.prototype.substring,String.prototype.toLowerCase,String.prototype.toString,String.prototype.toUpperCase,String.prototype.trim,String.prototype.trimEnd,String.prototype.trimLeft,String.prototype.trimRight,String.prototype.trimStart,Symbol.for,Symbol.keyFor,unescape].filter(e=>"function"==typeof e)),el=new Set([Object.freeze,Object.preventExtensions,Object.seal]),ep=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function ec(e,t){let n=[];for(let r=0;r<e.length;++r){let i=e[r];if(null==i)n.length=r+1;else if("SpreadElement"===i.type){let e=ef(i.argument,t);if(null==e)return null;n.push(...e.value)}else{let e=ef(i,t);if(null==e)return null;n.push(e.value)}}return n}let eu=Object.freeze({ArrayExpression(e,t){let n=ec(e.elements,t);return null!=n?{value:n}:null},AssignmentExpression:(e,t)=>"="===e.operator?ef(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let n=ef(e.left,t),r=ef(e.right,t);if(null!=n&&null!=r)switch(e.operator){case"==":return{value:n.value==r.value};case"!=":return{value:n.value!=r.value};case"===":return{value:n.value===r.value};case"!==":return{value:n.value!==r.value};case"<":return{value:n.value<r.value};case"<=":return{value:n.value<=r.value};case">":return{value:n.value>r.value};case">=":return{value:n.value>=r.value};case"<<":return{value:n.value<<r.value};case">>":return{value:n.value>>r.value};case">>>":return{value:n.value>>>r.value};case"+":return{value:n.value+r.value};case"-":return{value:n.value-r.value};case"*":return{value:n.value*r.value};case"/":return{value:n.value/r.value};case"%":return{value:n.value%r.value};case"**":return{value:n.value**r.value};case"|":return{value:n.value|r.value};case"^":return{value:n.value^r.value};case"&":return{value:n.value&r.value}}return null},CallExpression(e,t){let n=e.callee,r=ec(e.arguments,t);if(null!=r)if("MemberExpression"===n.type){if("PrivateIdentifier"===n.property.type)return null;let i=ef(n.object,t);if(null!=i){if(null==i.value&&(i.optional||e.optional))return{value:void 0,optional:!0};let s=ed(n,t);if(null!=s){let e=i.value,t=s.value;if(eo.has(e[t]))return{value:e[t](...r)};if(el.has(e[t]))return{value:r[0]}}}}else{let i=ef(n,t);if(null!=i){if(null==i.value&&e.optional)return{value:void 0,optional:!0};let t=i.value;if(eo.has(t))return{value:t(...r)};if(el.has(t))return{value:r[0]}}}return null},ConditionalExpression(e,t){let n=ef(e.test,t);return null!=n?n.value?ef(e.consequent,t):ef(e.alternate,t):null},ExpressionStatement:(e,t)=>ef(e.expression,t),Identifier(e,t){if(null!=t){let n=L(t,e);if(null!=n){if(null!=n&&0===n.defs.length&&ea.has(n.name)&&n.name in es)return{value:es[n.name]};if(function(e){let t,n,r;if(1!==e.defs.length)return!1;let i=e.defs[0];return!!(i.parent&&"Variable"===i.type&&("const"===i.parent.kind||(n=(t=e.references).filter(e=>e.init).length,r=t.filter(e=>e.isReadOnly()).length,1===n&&r+n===t.length)))}(n)){let e=n.defs[0];if("Identifier"===e.node.id.type){let r=ef(e.node.init,t);return r&&"object"==typeof r.value&&null!==r.value&&function(e,t){for(let n of e.references){let e=n.identifier;for(;e&&e.parent&&"MemberExpression"===e.parent.type;)e=e.parent;if(e&&e.parent&&("AssignmentExpression"===e.parent.type&&e.parent.left===e||"UpdateExpression"===e.parent.type&&e.parent.argument===e||"CallExpression"===e.parent.type&&e.parent.callee===e&&"MemberExpression"===e.type&&function(e){if(null==e||null==e.value)return!1;let t=e.value;return"copyWithin"===t||"fill"===t||"pop"===t||"push"===t||"reverse"===t||"shift"===t||"sort"===t||"splice"===t||"unshift"===t}(ed(e,t))))return!0}return!1}(n,t)?null:r}}}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let n=ef(e.left,t);if(null!=n){if("||"===e.operator&&!0==!!n.value||"&&"===e.operator&&!1==!!n.value||"??"===e.operator&&null!=n.value)return n;let r=ef(e.right,t);if(null!=r)return r}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let n=ef(e.object,t);if(null!=n){if(null==n.value&&(n.optional||e.optional))return{value:void 0,optional:!0};let r=ed(e,t);if(null!=r){let e;if(null==(e=function(e,t){let n=e;for(;("object"==typeof n||"function"==typeof n)&&null!==n;){let e=Object.getOwnPropertyDescriptor(n,t);if(e)return e;n=Object.getPrototypeOf(n)}return null}(n.value,r.value))||null==e.get)return{value:n.value[r.value]};for(let[e,t]of ep)if(n.value instanceof e&&t.has(r.value))return{value:n.value[r.value]}}}return null},ChainExpression(e,t){let n=ef(e.expression,t);return null!=n?{value:n.value}:null},NewExpression(e,t){let n=ef(e.callee,t),r=ec(e.arguments,t);if(null!=n&&null!=r){let e=n.value;if(eo.has(e))return{value:new e(...r)}}return null},ObjectExpression(e,t){let n={};for(let r of e.properties)if("Property"===r.type){if("init"!==r.kind)return null;let e=ed(r,t),i=ef(r.value,t);if(null==e||null==i)return null;n[e.value]=i.value}else{if("SpreadElement"!==r.type&&"ExperimentalSpreadProperty"!==r.type)return null;let e=ef(r.argument,t);if(null==e)return null;Object.assign(n,e.value)}return{value:n}},SequenceExpression:(e,t)=>ef(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let n=ef(e.tag,t),r=ec(e.quasi.expressions,t);if(null!=n&&null!=r){let t=n.value,i=e.quasi.quasis.map(e=>e.value.cooked);if(i.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(i,...r)}}return null},TemplateLiteral(e,t){let n=ec(e.expressions,t);if(null!=n){let t=e.quasis[0].value.cooked;for(let r=0;r<n.length;++r)t+=n[r],t+=e.quasis[r+1].value.cooked;return{value:t}}return null},UnaryExpression(e,t){if("delete"===e.operator)return null;if("void"===e.operator)return{value:void 0};let n=ef(e.argument,t);if(null!=n)switch(e.operator){case"-":return{value:-n.value};case"+":return{value:+n.value};case"!":return{value:!n.value};case"~":return{value:~n.value};case"typeof":return{value:typeof n.value}}return null},TSAsExpression:(e,t)=>ef(e.expression,t),TSSatisfiesExpression:(e,t)=>ef(e.expression,t),TSTypeAssertion:(e,t)=>ef(e.expression,t),TSNonNullExpression:(e,t)=>ef(e.expression,t),TSInstantiationExpression:(e,t)=>ef(e.expression,t)});function ef(e,t){return null!=e&&Object.hasOwnProperty.call(eu,e.type)?eu[e.type](e,t):null}function ed(e,t){let n="Property"===e.type?e.key:e.property;return e.computed?ef(n,t):"Identifier"===n.type?{value:n.name}:"Literal"===n.type?n.bigint?{value:n.bigint}:{value:String(n.value)}:null}function em(e,t=null){try{return ef(e,t)}catch(e){return null}}function eh(e,t=null){if(e&&"Literal"===e.type&&null===e.value){if(e.regex)return`/${e.regex.pattern}/${e.regex.flags}`;if(e.bigint)return e.bigint}let n=em(e,t);if(n)try{return String(n.value)}catch{}return null}function eg(e,t){switch(e.type){case"MemberExpression":if(e.computed)return eh(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return eh(e.key,t);if("Literal"===e.key.type)return String(e.key.value);if("PrivateIdentifier"===e.key.type)break;return e.key.name}return null}function ey(e,t){let n=e.parent;if(!n)return"";let r=[],i="Property"===n.type&&n.value===e,s="MethodDefinition"===n.type&&n.value===e,a="PropertyDefinition"===n.type&&n.value===e;if((s||a)&&(n.static&&r.push("static"),"PrivateIdentifier"===n.key.type&&r.push("private")),e.async&&r.push("async"),e.generator&&r.push("generator"),i||s){if("constructor"===n.kind)return"constructor";"get"===n.kind?r.push("getter"):"set"===n.kind?r.push("setter"):r.push("method")}else a?r.push("method"):("ArrowFunctionExpression"===e.type&&r.push("arrow"),r.push("function"));if(i||s||a)if("PrivateIdentifier"===n.key.type)r.push(`#${n.key.name}`);else{let e=eg(n);if(e)r.push(`'${e}'`);else if(t){let e=t.getText(n.key);e.includes("\n")||r.push(`[${e}]`)}}else e.id?r.push(`'${e.id.name}'`):"VariableDeclarator"===n.type&&n.id&&"Identifier"===n.id.type?r.push(`'${n.id.name}'`):("AssignmentExpression"===n.type||"AssignmentPattern"===n.type)&&n.left&&"Identifier"===n.left.type?r.push(`'${n.left.name}'`):"ExportDefaultDeclaration"===n.type&&n.declaration===e&&r.push("'default'");return r.join(" ")}let ex=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),eT=Object.freeze(new Set(["-","+","!","~"]));function eS(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}let eb=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,n){let{type:r}=e;return"function"==typeof this[r]?this[r](e,t,n):this.$visitChildren(e,t,n)},$visitChildren(e,t,n){let{type:r}=e;for(let i of n[r]||Object.keys(e).filter(I)){let r=e[i];if(Array.isArray(r)){for(let e of r)if(eS(e)&&this.$visit(e,t,n))return!0}else if(eS(r)&&this.$visit(r,t,n))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,n){return!!(t.considerImplicitTypeConversion&&ex.has(e.operator))&&("Literal"!==e.left.type||"Literal"!==e.right.type)||this.$visitChildren(e,t,n)},CallExpression:()=>!0,FunctionExpression:()=>!1,ImportExpression:()=>!0,MemberExpression(e,t,n){return!!t.considerGetters||!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.property.type||this.$visitChildren(e,t,n)},MethodDefinition(e,t,n){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,n)},NewExpression:()=>!0,Property(e,t,n){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,n)},PropertyDefinition(e,t,n){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,n)},UnaryExpression(e,t,n){return!!("delete"===e.operator||t.considerImplicitTypeConversion&&eT.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,n)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function eE(e,t,n={}){let{considerGetters:r=!1,considerImplicitTypeConversion:i=!1}=n;return eb.$visit(e,{considerGetters:r,considerImplicitTypeConversion:i},t.visitorKeys||O)}function ek(e,t,n){let r,i,s,a,o;if("number"==typeof e){if(r=0|e,i=t,s=n,!(r>=1))throw TypeError("'times' should be a positive integer.")}else r=1,i=e,s=t;if(null==i||null==i.parent||"CatchClause"===i.parent.type&&i.parent.param===i)return!1;a=o=i;do a=s.getTokenBefore(a),o=s.getTokenAfter(o);while(null!=a&&null!=o&&$(a)&&V(o)&&a!==function(e,t){let n=e.parent;if(!n)return null;switch(n.type){case"CallExpression":case"NewExpression":if(1===n.arguments.length&&n.arguments[0]===e)return t.getTokenAfter(n.typeArguments||n.typeParameters||n.callee,$);return null;case"DoWhileStatement":if(n.test===e)return t.getTokenAfter(n.body,$);return null;case"IfStatement":case"WhileStatement":if(n.test===e)return t.getFirstToken(n,1);return null;case"ImportExpression":if(n.source===e)return t.getFirstToken(n,1);return null;case"SwitchStatement":if(n.discriminant===e)return t.getFirstToken(n,1);return null;case"WithStatement":if(n.object===e)return t.getFirstToken(n,1);return null;default:return null}}(i,s)&&--r>0);return 0===r}let ev=/\$(?:[$&`']|[1-9][0-9]?)/gu,eA=new WeakMap;class ew{constructor(e,t={}){let{escaped:n=!1}=t;if(!(e instanceof RegExp))throw TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw Error("'pattern' should contains 'g' flag.");eA.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!n})}*execAll(e){let{pattern:t,escaped:n}=eA.get(this),r=null,i=0;for(t.lastIndex=0;null!=(r=t.exec(e));)(n||!function(e,t){let n=!1;for(let r=t-1;r>=0&&92===e.charCodeAt(r);--r)n=!n;return n}(e,r.index))&&(i=t.lastIndex,yield r,t.lastIndex=i)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,n){let r=[],i=0;for(let s of e.execAll(t))r.push(t.slice(i,s.index)),r.push(String(n(...s,s.index,s.input))),i=s.index+s[0].length;return r.push(t.slice(i)),r.join("")}(this,String(e),t):function(e,t,n){let r=[],i=0;for(let s of e.execAll(t))r.push(t.slice(i,s.index)),r.push(n.replace(ev,e=>(function(e,n){switch(e){case"$$":return"$";case"$&":return n[0];case"$`":return t.slice(0,n.index);case"$'":return t.slice(n.index+n[0].length);default:{let t=e.slice(1);if(t in n)return n[t];return e}}})(e,s))),i=s.index+s[0].length;return r.push(t.slice(i)),r.join("")}(this,String(e),String(t))}}let eC=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,e_=Function.call.bind(Object.hasOwnProperty),eO=Symbol("read"),eP=Symbol("call"),eI=Symbol("construct"),eN=Symbol("esm"),eL={require:{[eP]:!0}};function eB(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}class eD{constructor(e,t={}){let{mode:n="strict",globalObjectNames:r=["global","globalThis","self","window"]}=t;this.variableStack=[],this.globalScope=e,this.mode=n,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let n=e[t],r=[t],i=this.globalScope.set.get(t);eB(i)||(yield*this._iterateVariableReferences(i,r,n,!0))}for(let t of this.globalObjectNames){let n=[],r=this.globalScope.set.get(t);eB(r)||(yield*this._iterateVariableReferences(r,n,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(eL)){let n=eh(t.arguments[0]);if(null==n||!e_(e,n))continue;let r=e[n],i=[n];r[eO]&&(yield{node:t,path:i,type:eO,info:r[eO]}),yield*this._iteratePropertyReferences(t,i,r)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!eC.test(t.type)||null==t.source)continue;let n=t.source.value;if(!e_(e,n))continue;let r=e[n],i=[n];if(r[eO]&&(yield{node:t,path:i,type:eO,info:r[eO]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(r)){let n=r[e];n[eO]&&(yield{node:t,path:i.concat(e),type:eO,info:n[eO]})}else for(let e of t.specifiers){let t=e_(r,eN),n=this._iterateImportReferences(e,i,t?r:"legacy"===this.mode?{default:r,...r}:{default:r});if(t)yield*n;else for(let e of n)e.path=e.path.filter(ej),(e.path.length>=2||e.type!==eO)&&(yield e)}}}*iteratePropertyReferences(e,t){yield*this._iteratePropertyReferences(e,[],t)}*_iterateVariableReferences(e,t,n,r){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let i of e.references){if(!i.isRead())continue;let e=i.identifier;r&&n[eO]&&(yield{node:e,path:t,type:eO,info:n[eO]}),yield*this._iteratePropertyReferences(e,t,n)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,n){let r=e;for(;function(e){let t=e.parent;if(t)switch(t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":case"TSInstantiationExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e}return!1}(r);)r=r.parent;let i=r.parent;if(i){if("MemberExpression"===i.type){if(i.object===r){let e=eg(i);if(null==e||!e_(n,e))return;t=t.concat(e);let r=n[e];r[eO]&&(yield{node:i,path:t,type:eO,info:r[eO]}),yield*this._iteratePropertyReferences(i,t,r)}return}if("CallExpression"===i.type){i.callee===r&&n[eP]&&(yield{node:i,path:t,type:eP,info:n[eP]});return}if("NewExpression"===i.type){i.callee===r&&n[eI]&&(yield{node:i,path:t,type:eI,info:n[eI]});return}if("AssignmentExpression"===i.type){i.right===r&&(yield*this._iterateLhsReferences(i.left,t,n),yield*this._iteratePropertyReferences(i,t,n));return}if("AssignmentPattern"===i.type){i.right===r&&(yield*this._iterateLhsReferences(i.left,t,n));return}"VariableDeclarator"===i.type&&i.init===r&&(yield*this._iterateLhsReferences(i.id,t,n))}}*_iterateLhsReferences(e,t,n){if("Identifier"===e.type){let r=L(this.globalScope,e);null!=r&&(yield*this._iterateVariableReferences(r,t,n,!1));return}if("ObjectPattern"===e.type){for(let r of e.properties){let e=eg(r);if(null==e||!e_(n,e))continue;let i=t.concat(e),s=n[e];s[eO]&&(yield{node:r,path:i,type:eO,info:s[eO]}),yield*this._iterateLhsReferences(r.value,i,s)}return}"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,n))}*_iterateImportReferences(e,t,n){let r=e.type;if("ImportSpecifier"===r||"ImportDefaultSpecifier"===r){let i="ImportDefaultSpecifier"===r?"default":"Identifier"===e.imported.type?e.imported.name:e.imported.value;if(!e_(n,i))return;t=t.concat(i);let s=n[i];s[eO]&&(yield{node:e,path:t,type:eO,info:s[eO]}),yield*this._iterateVariableReferences(L(this.globalScope,e.local),t,s,!1);return}if("ImportNamespaceSpecifier"===r)return void(yield*this._iterateVariableReferences(L(this.globalScope,e.local),t,n,!1));if("ExportSpecifier"===r){let r="Identifier"===e.local.type?e.local.name:e.local.value;if(!e_(n,r))return;t=t.concat(r);let i=n[r];i[eO]&&(yield{node:e,path:t,type:eO,info:i[eO]})}}}function ej(e,t){return 1!==t||"default"!==e}eD.READ=eO,eD.CALL=eP,eD.CONSTRUCT=eI,eD.ESM=eN;var eR=Object.freeze({__proto__:null,CALL:eP,CONSTRUCT:eI,ESM:eN,PatternMatcher:ew,READ:eO,ReferenceTracker:eD,default:{CALL:eP,CONSTRUCT:eI,ESM:eN,findVariable:L,getFunctionHeadLocation:ei,getFunctionNameWithKind:ey,getInnermostScope:N,getPropertyName:eg,getStaticValue:em,getStringIfConstant:eh,hasSideEffect:eE,isArrowToken:j,isClosingBraceToken:J,isClosingBracketToken:Y,isClosingParenToken:V,isColonToken:M,isCommaToken:R,isCommentToken:U,isNotArrowToken:W,isNotClosingBraceToken:en,isNotClosingBracketToken:ee,isNotClosingParenToken:Q,isNotColonToken:z,isNotCommaToken:K,isNotCommentToken:er,isNotOpeningBraceToken:et,isNotOpeningBracketToken:Z,isNotOpeningParenToken:G,isNotSemicolonToken:H,isOpeningBraceToken:X,isOpeningBracketToken:q,isOpeningParenToken:$,isParenthesized:ek,isSemicolonToken:F,PatternMatcher:ew,READ:eO,ReferenceTracker:eD},findVariable:L,getFunctionHeadLocation:ei,getFunctionNameWithKind:ey,getInnermostScope:N,getPropertyName:eg,getStaticValue:em,getStringIfConstant:eh,hasSideEffect:eE,isArrowToken:j,isClosingBraceToken:J,isClosingBracketToken:Y,isClosingParenToken:V,isColonToken:M,isCommaToken:R,isCommentToken:U,isNotArrowToken:W,isNotClosingBraceToken:en,isNotClosingBracketToken:ee,isNotClosingParenToken:Q,isNotColonToken:z,isNotCommaToken:K,isNotCommentToken:er,isNotOpeningBraceToken:et,isNotOpeningBracketToken:Z,isNotOpeningParenToken:G,isNotSemicolonToken:H,isOpeningBraceToken:X,isOpeningBracketToken:q,isOpeningParenToken:$,isParenthesized:ek,isSemicolonToken:F}),eF=_(eR),eM={},e$={};function eV(){var e,t,n,r;return a?e$:(a=1,Object.defineProperty(e$,"__esModule",{value:!0}),e$.AST_TOKEN_TYPES=e$.AST_NODE_TYPES=void 0,(n=e||(e$.AST_NODE_TYPES=e={})).AccessorProperty="AccessorProperty",n.ArrayExpression="ArrayExpression",n.ArrayPattern="ArrayPattern",n.ArrowFunctionExpression="ArrowFunctionExpression",n.AssignmentExpression="AssignmentExpression",n.AssignmentPattern="AssignmentPattern",n.AwaitExpression="AwaitExpression",n.BinaryExpression="BinaryExpression",n.BlockStatement="BlockStatement",n.BreakStatement="BreakStatement",n.CallExpression="CallExpression",n.CatchClause="CatchClause",n.ChainExpression="ChainExpression",n.ClassBody="ClassBody",n.ClassDeclaration="ClassDeclaration",n.ClassExpression="ClassExpression",n.ConditionalExpression="ConditionalExpression",n.ContinueStatement="ContinueStatement",n.DebuggerStatement="DebuggerStatement",n.Decorator="Decorator",n.DoWhileStatement="DoWhileStatement",n.EmptyStatement="EmptyStatement",n.ExportAllDeclaration="ExportAllDeclaration",n.ExportDefaultDeclaration="ExportDefaultDeclaration",n.ExportNamedDeclaration="ExportNamedDeclaration",n.ExportSpecifier="ExportSpecifier",n.ExpressionStatement="ExpressionStatement",n.ForInStatement="ForInStatement",n.ForOfStatement="ForOfStatement",n.ForStatement="ForStatement",n.FunctionDeclaration="FunctionDeclaration",n.FunctionExpression="FunctionExpression",n.Identifier="Identifier",n.IfStatement="IfStatement",n.ImportAttribute="ImportAttribute",n.ImportDeclaration="ImportDeclaration",n.ImportDefaultSpecifier="ImportDefaultSpecifier",n.ImportExpression="ImportExpression",n.ImportNamespaceSpecifier="ImportNamespaceSpecifier",n.ImportSpecifier="ImportSpecifier",n.JSXAttribute="JSXAttribute",n.JSXClosingElement="JSXClosingElement",n.JSXClosingFragment="JSXClosingFragment",n.JSXElement="JSXElement",n.JSXEmptyExpression="JSXEmptyExpression",n.JSXExpressionContainer="JSXExpressionContainer",n.JSXFragment="JSXFragment",n.JSXIdentifier="JSXIdentifier",n.JSXMemberExpression="JSXMemberExpression",n.JSXNamespacedName="JSXNamespacedName",n.JSXOpeningElement="JSXOpeningElement",n.JSXOpeningFragment="JSXOpeningFragment",n.JSXSpreadAttribute="JSXSpreadAttribute",n.JSXSpreadChild="JSXSpreadChild",n.JSXText="JSXText",n.LabeledStatement="LabeledStatement",n.Literal="Literal",n.LogicalExpression="LogicalExpression",n.MemberExpression="MemberExpression",n.MetaProperty="MetaProperty",n.MethodDefinition="MethodDefinition",n.NewExpression="NewExpression",n.ObjectExpression="ObjectExpression",n.ObjectPattern="ObjectPattern",n.PrivateIdentifier="PrivateIdentifier",n.Program="Program",n.Property="Property",n.PropertyDefinition="PropertyDefinition",n.RestElement="RestElement",n.ReturnStatement="ReturnStatement",n.SequenceExpression="SequenceExpression",n.SpreadElement="SpreadElement",n.StaticBlock="StaticBlock",n.Super="Super",n.SwitchCase="SwitchCase",n.SwitchStatement="SwitchStatement",n.TaggedTemplateExpression="TaggedTemplateExpression",n.TemplateElement="TemplateElement",n.TemplateLiteral="TemplateLiteral",n.ThisExpression="ThisExpression",n.ThrowStatement="ThrowStatement",n.TryStatement="TryStatement",n.UnaryExpression="UnaryExpression",n.UpdateExpression="UpdateExpression",n.VariableDeclaration="VariableDeclaration",n.VariableDeclarator="VariableDeclarator",n.WhileStatement="WhileStatement",n.WithStatement="WithStatement",n.YieldExpression="YieldExpression",n.TSAbstractAccessorProperty="TSAbstractAccessorProperty",n.TSAbstractKeyword="TSAbstractKeyword",n.TSAbstractMethodDefinition="TSAbstractMethodDefinition",n.TSAbstractPropertyDefinition="TSAbstractPropertyDefinition",n.TSAnyKeyword="TSAnyKeyword",n.TSArrayType="TSArrayType",n.TSAsExpression="TSAsExpression",n.TSAsyncKeyword="TSAsyncKeyword",n.TSBigIntKeyword="TSBigIntKeyword",n.TSBooleanKeyword="TSBooleanKeyword",n.TSCallSignatureDeclaration="TSCallSignatureDeclaration",n.TSClassImplements="TSClassImplements",n.TSConditionalType="TSConditionalType",n.TSConstructorType="TSConstructorType",n.TSConstructSignatureDeclaration="TSConstructSignatureDeclaration",n.TSDeclareFunction="TSDeclareFunction",n.TSDeclareKeyword="TSDeclareKeyword",n.TSEmptyBodyFunctionExpression="TSEmptyBodyFunctionExpression",n.TSEnumBody="TSEnumBody",n.TSEnumDeclaration="TSEnumDeclaration",n.TSEnumMember="TSEnumMember",n.TSExportAssignment="TSExportAssignment",n.TSExportKeyword="TSExportKeyword",n.TSExternalModuleReference="TSExternalModuleReference",n.TSFunctionType="TSFunctionType",n.TSImportEqualsDeclaration="TSImportEqualsDeclaration",n.TSImportType="TSImportType",n.TSIndexedAccessType="TSIndexedAccessType",n.TSIndexSignature="TSIndexSignature",n.TSInferType="TSInferType",n.TSInstantiationExpression="TSInstantiationExpression",n.TSInterfaceBody="TSInterfaceBody",n.TSInterfaceDeclaration="TSInterfaceDeclaration",n.TSInterfaceHeritage="TSInterfaceHeritage",n.TSIntersectionType="TSIntersectionType",n.TSIntrinsicKeyword="TSIntrinsicKeyword",n.TSLiteralType="TSLiteralType",n.TSMappedType="TSMappedType",n.TSMethodSignature="TSMethodSignature",n.TSModuleBlock="TSModuleBlock",n.TSModuleDeclaration="TSModuleDeclaration",n.TSNamedTupleMember="TSNamedTupleMember",n.TSNamespaceExportDeclaration="TSNamespaceExportDeclaration",n.TSNeverKeyword="TSNeverKeyword",n.TSNonNullExpression="TSNonNullExpression",n.TSNullKeyword="TSNullKeyword",n.TSNumberKeyword="TSNumberKeyword",n.TSObjectKeyword="TSObjectKeyword",n.TSOptionalType="TSOptionalType",n.TSParameterProperty="TSParameterProperty",n.TSPrivateKeyword="TSPrivateKeyword",n.TSPropertySignature="TSPropertySignature",n.TSProtectedKeyword="TSProtectedKeyword",n.TSPublicKeyword="TSPublicKeyword",n.TSQualifiedName="TSQualifiedName",n.TSReadonlyKeyword="TSReadonlyKeyword",n.TSRestType="TSRestType",n.TSSatisfiesExpression="TSSatisfiesExpression",n.TSStaticKeyword="TSStaticKeyword",n.TSStringKeyword="TSStringKeyword",n.TSSymbolKeyword="TSSymbolKeyword",n.TSTemplateLiteralType="TSTemplateLiteralType",n.TSThisType="TSThisType",n.TSTupleType="TSTupleType",n.TSTypeAliasDeclaration="TSTypeAliasDeclaration",n.TSTypeAnnotation="TSTypeAnnotation",n.TSTypeAssertion="TSTypeAssertion",n.TSTypeLiteral="TSTypeLiteral",n.TSTypeOperator="TSTypeOperator",n.TSTypeParameter="TSTypeParameter",n.TSTypeParameterDeclaration="TSTypeParameterDeclaration",n.TSTypeParameterInstantiation="TSTypeParameterInstantiation",n.TSTypePredicate="TSTypePredicate",n.TSTypeQuery="TSTypeQuery",n.TSTypeReference="TSTypeReference",n.TSUndefinedKeyword="TSUndefinedKeyword",n.TSUnionType="TSUnionType",n.TSUnknownKeyword="TSUnknownKeyword",n.TSVoidKeyword="TSVoidKeyword",(r=t||(e$.AST_TOKEN_TYPES=t={})).Boolean="Boolean",r.Identifier="Identifier",r.JSXIdentifier="JSXIdentifier",r.PrivateIdentifier="PrivateIdentifier",r.JSXText="JSXText",r.Keyword="Keyword",r.Null="Null",r.Numeric="Numeric",r.Punctuator="Punctuator",r.RegularExpression="RegularExpression",r.String="String",r.Template="Template",r.Block="Block",r.Line="Line",e$)}var eq={},eY={},eX={};function eJ(){var e,t,n;return c?eM:(c=1,e=eM&&eM.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=eM&&eM.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(eM,"__esModule",{value:!0}),eM.AST_TOKEN_TYPES=eM.AST_NODE_TYPES=void 0,n=eV(),Object.defineProperty(eM,"AST_NODE_TYPES",{enumerable:!0,get:function(){return n.AST_NODE_TYPES}}),Object.defineProperty(eM,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return n.AST_TOKEN_TYPES}}),t((o||(o=1,Object.defineProperty(eq,"__esModule",{value:!0})),eq),eM),t((l||(l=1,Object.defineProperty(eY,"__esModule",{value:!0})),eY),eM),t(function(){if(p)return eX;p=1;var e,t=eX&&eX.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=eX&&eX.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=eX&&eX.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var s=e(r),a=0;a<s.length;a++)"default"!==s[a]&&t(i,r,s[a]);return n(i,r),i});return Object.defineProperty(eX,"__esModule",{value:!0}),eX.TSESTree=void 0,eX.TSESTree=r(eV()),eX}(),eM),eM)}var eU=(e,t)=>()=>(t||e((t={exports:{}}).exports,t),t.exports),eW=eU(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),a=0;a<s.length;a++)"default"!==s[a]&&n(i,e,s[a]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.isParenthesized=e.hasSideEffect=e.getStringIfConstant=e.getStaticValue=e.getPropertyName=e.getFunctionNameWithKind=e.getFunctionHeadLocation=void 0;let s=i(eF);e.getFunctionHeadLocation=s.getFunctionHeadLocation,e.getFunctionNameWithKind=s.getFunctionNameWithKind,e.getPropertyName=s.getPropertyName,e.getStaticValue=s.getStaticValue,e.getStringIfConstant=s.getStringIfConstant,e.hasSideEffect=s.hasSideEffect,e.isParenthesized=s.isParenthesized}),eK=eU(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),a=0;a<s.length;a++)"default"!==s[a]&&n(i,e,s[a]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.PatternMatcher=void 0,e.PatternMatcher=i(eF).PatternMatcher}),eH=eU(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),a=0;a<s.length;a++)"default"!==s[a]&&n(i,e,s[a]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.isNotSemicolonToken=e.isSemicolonToken=e.isNotOpeningParenToken=e.isOpeningParenToken=e.isNotOpeningBracketToken=e.isOpeningBracketToken=e.isNotOpeningBraceToken=e.isOpeningBraceToken=e.isNotCommentToken=e.isCommentToken=e.isNotCommaToken=e.isCommaToken=e.isNotColonToken=e.isColonToken=e.isNotClosingParenToken=e.isClosingParenToken=e.isNotClosingBracketToken=e.isClosingBracketToken=e.isNotClosingBraceToken=e.isClosingBraceToken=e.isNotArrowToken=e.isArrowToken=void 0;let s=i(eF);e.isArrowToken=s.isArrowToken,e.isNotArrowToken=s.isNotArrowToken,e.isClosingBraceToken=s.isClosingBraceToken,e.isNotClosingBraceToken=s.isNotClosingBraceToken,e.isClosingBracketToken=s.isClosingBracketToken,e.isNotClosingBracketToken=s.isNotClosingBracketToken,e.isClosingParenToken=s.isClosingParenToken,e.isNotClosingParenToken=s.isNotClosingParenToken,e.isColonToken=s.isColonToken,e.isNotColonToken=s.isNotColonToken,e.isCommaToken=s.isCommaToken,e.isNotCommaToken=s.isNotCommaToken,e.isCommentToken=s.isCommentToken,e.isNotCommentToken=s.isNotCommentToken,e.isOpeningBraceToken=s.isOpeningBraceToken,e.isNotOpeningBraceToken=s.isNotOpeningBraceToken,e.isOpeningBracketToken=s.isOpeningBracketToken,e.isNotOpeningBracketToken=s.isNotOpeningBracketToken,e.isOpeningParenToken=s.isOpeningParenToken,e.isNotOpeningParenToken=s.isNotOpeningParenToken,e.isSemicolonToken=s.isSemicolonToken,e.isNotSemicolonToken=s.isNotSemicolonToken}),ez=eU(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),a=0;a<s.length;a++)"default"!==s[a]&&n(i,e,s[a]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.ReferenceTracker=void 0;let s=i(eF);s.ReferenceTracker.READ,s.ReferenceTracker.CALL,s.ReferenceTracker.CONSTRUCT,s.ReferenceTracker.ESM,e.ReferenceTracker=s.ReferenceTracker}),eG=eU(e=>{var t,n=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),r=e&&e.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),i=e&&e.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var i={};if(null!=e)for(var s=t(e),a=0;a<s.length;a++)"default"!==s[a]&&n(i,e,s[a]);return r(i,e),i});Object.defineProperty(e,"__esModule",{value:!0}),e.getInnermostScope=e.findVariable=void 0;let s=i(eF);e.findVariable=s.findVariable,e.getInnermostScope=s.getInnermostScope}),eQ=eU(e=>{var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(eW(),e),n(eK(),e),n(eH(),e),n(ez(),e),n(eG(),e)}),eZ=eU(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isNotTokenOfTypeWithConditions=e.isTokenOfTypeWithConditions=e.isNodeOfTypeWithConditions=e.isNodeOfTypes=e.isNodeOfType=void 0,e.isNodeOfType=e=>t=>t?.type===e,e.isNodeOfTypes=e=>t=>!!t&&e.includes(t.type),e.isNodeOfTypeWithConditions=(e,t)=>{let n=Object.entries(t);return t=>t?.type===e&&n.every(([e,n])=>t[e]===n)},e.isTokenOfTypeWithConditions=(e,t)=>{let n=Object.entries(t);return t=>t?.type===e&&n.every(([e,n])=>t[e]===n)},e.isNotTokenOfTypeWithConditions=(t,n)=>r=>!(0,e.isTokenOfTypeWithConditions)(t,n)(r)}),e0=eU(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.LINEBREAK_MATCHER=void 0,e.isTokenOnSameLine=function(e,t){return e.loc.end.line===t.loc.start.line},e.LINEBREAK_MATCHER=/\r\n|[\r\n\u2028\u2029]/}),e1=eU(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.TSESTree=e.AST_TOKEN_TYPES=e.AST_NODE_TYPES=void 0;var t=eJ();Object.defineProperty(e,"AST_NODE_TYPES",{enumerable:!0,get:function(){return t.AST_NODE_TYPES}}),Object.defineProperty(e,"AST_TOKEN_TYPES",{enumerable:!0,get:function(){return t.AST_TOKEN_TYPES}}),Object.defineProperty(e,"TSESTree",{enumerable:!0,get:function(){return t.TSESTree}})}),e2=eU(e=>{Object.defineProperty(e,"__esModule",{value:!0}),e.isLoop=e.isImportKeyword=e.isTypeKeyword=e.isAwaitKeyword=e.isAwaitExpression=e.isIdentifier=e.isConstructor=e.isClassOrTypeElement=e.isTSConstructorType=e.isTSFunctionType=e.isFunctionOrFunctionType=e.isFunctionType=e.isFunction=e.isVariableDeclarator=e.isTypeAssertion=e.isLogicalOrOperator=e.isOptionalCallExpression=e.isNotNonNullAssertionPunctuator=e.isNonNullAssertionPunctuator=e.isNotOptionalChainPunctuator=e.isOptionalChainPunctuator=void 0,e.isSetter=function(e){return!!e&&(e.type===t.AST_NODE_TYPES.MethodDefinition||e.type===t.AST_NODE_TYPES.Property)&&"set"===e.kind};let t=e1(),n=eZ();e.isOptionalChainPunctuator=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"?."}),e.isNotOptionalChainPunctuator=(0,n.isNotTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"?."}),e.isNonNullAssertionPunctuator=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"!"}),e.isNotNonNullAssertionPunctuator=(0,n.isNotTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Punctuator,{value:"!"}),e.isOptionalCallExpression=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.CallExpression,{optional:!0}),e.isLogicalOrOperator=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.LogicalExpression,{operator:"||"}),e.isTypeAssertion=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.TSAsExpression,t.AST_NODE_TYPES.TSTypeAssertion]),e.isVariableDeclarator=(0,n.isNodeOfType)(t.AST_NODE_TYPES.VariableDeclarator);let r=[t.AST_NODE_TYPES.ArrowFunctionExpression,t.AST_NODE_TYPES.FunctionDeclaration,t.AST_NODE_TYPES.FunctionExpression];e.isFunction=(0,n.isNodeOfTypes)(r);let i=[t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructorType,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSDeclareFunction,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSFunctionType,t.AST_NODE_TYPES.TSMethodSignature];e.isFunctionType=(0,n.isNodeOfTypes)(i),e.isFunctionOrFunctionType=(0,n.isNodeOfTypes)([...r,...i]),e.isTSFunctionType=(0,n.isNodeOfType)(t.AST_NODE_TYPES.TSFunctionType),e.isTSConstructorType=(0,n.isNodeOfType)(t.AST_NODE_TYPES.TSConstructorType),e.isClassOrTypeElement=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.PropertyDefinition,t.AST_NODE_TYPES.FunctionExpression,t.AST_NODE_TYPES.MethodDefinition,t.AST_NODE_TYPES.TSAbstractPropertyDefinition,t.AST_NODE_TYPES.TSAbstractMethodDefinition,t.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,t.AST_NODE_TYPES.TSIndexSignature,t.AST_NODE_TYPES.TSCallSignatureDeclaration,t.AST_NODE_TYPES.TSConstructSignatureDeclaration,t.AST_NODE_TYPES.TSMethodSignature,t.AST_NODE_TYPES.TSPropertySignature]),e.isConstructor=(0,n.isNodeOfTypeWithConditions)(t.AST_NODE_TYPES.MethodDefinition,{kind:"constructor"}),e.isIdentifier=(0,n.isNodeOfType)(t.AST_NODE_TYPES.Identifier),e.isAwaitExpression=(0,n.isNodeOfType)(t.AST_NODE_TYPES.AwaitExpression),e.isAwaitKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Identifier,{value:"await"}),e.isTypeKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Identifier,{value:"type"}),e.isImportKeyword=(0,n.isTokenOfTypeWithConditions)(t.AST_TOKEN_TYPES.Keyword,{value:"import"}),e.isLoop=(0,n.isNodeOfTypes)([t.AST_NODE_TYPES.DoWhileStatement,t.AST_NODE_TYPES.ForStatement,t.AST_NODE_TYPES.ForInStatement,t.AST_NODE_TYPES.ForOfStatement,t.AST_NODE_TYPES.WhileStatement])}),e3=eU(e=>{var t=e&&e.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=e&&e.__exportStar||function(e,n){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||t(n,e,r)};Object.defineProperty(e,"__esModule",{value:!0}),n(eQ(),e),n(eZ(),e),n(e0(),e),n(e2(),e)}),e4=eJ();let e6={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]};for(let e of Object.keys(e6))Object.freeze(e6[e]);Object.freeze(e6);var e5=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,78,5,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,266,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],e9=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,57,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,261,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7381,42,31,98,114,8702,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4381,3,5773,3,7472,16,621,2467,541,1507,4938,6,8489],e8="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-࢏ࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚ౜ౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽ೜-ೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲊᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ƛ꟱-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",e7={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"},te="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",tt={5:te,"5module":te+" export import",6:te+" const class extends export import super"},tn=/^in(stanceof)?$/,tr=RegExp("["+e8+"]"),ti=RegExp("["+e8+"‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࢗ-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-᫝᫠-᫫ᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・]");function ts(e,t){for(var n=65536,r=0;r<t.length&&!((n+=t[r])>e);r+=2)if((n+=t[r+1])>=e)return!0;return!1}function ta(e,t){return e<65?36===e:e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&tr.test(String.fromCharCode(e)):!1!==t&&ts(e,e9)))}function to(e,t){return e<48?36===e:e<58||!(e<65)&&(e<91||(e<97?95===e:e<123||(e<=65535?e>=170&&ti.test(String.fromCharCode(e)):!1!==t&&(ts(e,e9)||ts(e,e5)))))}var tl=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 tp(e,t){return new tl(e,{beforeExpr:!0,binop:t})}var tc={beforeExpr:!0},tu={startsExpr:!0},tf={};function td(e,t){return void 0===t&&(t={}),t.keyword=e,tf[e]=new tl(e,t)}var tm={num:new tl("num",tu),regexp:new tl("regexp",tu),string:new tl("string",tu),name:new tl("name",tu),privateId:new tl("privateId",tu),eof:new tl("eof"),bracketL:new tl("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new tl("]"),braceL:new tl("{",{beforeExpr:!0,startsExpr:!0}),braceR:new tl("}"),parenL:new tl("(",{beforeExpr:!0,startsExpr:!0}),parenR:new tl(")"),comma:new tl(",",tc),semi:new tl(";",tc),colon:new tl(":",tc),dot:new tl("."),question:new tl("?",tc),questionDot:new tl("?."),arrow:new tl("=>",tc),template:new tl("template"),invalidTemplate:new tl("invalidTemplate"),ellipsis:new tl("...",tc),backQuote:new tl("`",tu),dollarBraceL:new tl("${",{beforeExpr:!0,startsExpr:!0}),eq:new tl("=",{beforeExpr:!0,isAssign:!0}),assign:new tl("_=",{beforeExpr:!0,isAssign:!0}),incDec:new tl("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new tl("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:tp("||",1),logicalAND:tp("&&",2),bitwiseOR:tp("|",3),bitwiseXOR:tp("^",4),bitwiseAND:tp("&",5),equality:tp("==/!=/===/!==",6),relational:tp("</>/<=/>=",7),bitShift:tp("<</>>/>>>",8),plusMin:new tl("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:tp("%",10),star:tp("*",10),slash:tp("/",10),starstar:new tl("**",{beforeExpr:!0}),coalesce:tp("??",1),_break:td("break"),_case:td("case",tc),_catch:td("catch"),_continue:td("continue"),_debugger:td("debugger"),_default:td("default",tc),_do:td("do",{isLoop:!0,beforeExpr:!0}),_else:td("else",tc),_finally:td("finally"),_for:td("for",{isLoop:!0}),_function:td("function",tu),_if:td("if"),_return:td("return",tc),_switch:td("switch"),_throw:td("throw",tc),_try:td("try"),_var:td("var"),_const:td("const"),_while:td("while",{isLoop:!0}),_with:td("with"),_new:td("new",{beforeExpr:!0,startsExpr:!0}),_this:td("this",tu),_super:td("super",tu),_class:td("class",tu),_extends:td("extends",tc),_export:td("export"),_import:td("import",tu),_null:td("null",tu),_true:td("true",tu),_false:td("false",tu),_in:td("in",{beforeExpr:!0,binop:7}),_instanceof:td("instanceof",{beforeExpr:!0,binop:7}),_typeof:td("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:td("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:td("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},th=/\r\n?|\n|\u2028|\u2029/,tg=RegExp(th.source,"g");function ty(e){return 10===e||13===e||8232===e||8233===e}function tx(e,t,n){void 0===n&&(n=e.length);for(var r=t;r<n;r++){var i=e.charCodeAt(r);if(ty(i))return r<n-1&&13===i&&10===e.charCodeAt(r+1)?r+2:r+1}return -1}var tT=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,tS=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,tb=Object.prototype,tE=tb.hasOwnProperty,tk=tb.toString,tv=Object.hasOwn||function(e,t){return tE.call(e,t)},tA=Array.isArray||function(e){return"[object Array]"===tk.call(e)},tw=Object.create(null);function tC(e){return tw[e]||(tw[e]=RegExp("^(?:"+e.replace(/ /g,"|")+")$"))}function t_(e){return e<=65535?String.fromCharCode(e):String.fromCharCode(((e-=65536)>>10)+55296,(1023&e)+56320)}var tO=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,tP=function(e,t){this.line=e,this.column=t};tP.prototype.offset=function(e){return new tP(this.line,this.column+e)};var tI=function(e,t,n){this.start=t,this.end=n,null!==e.sourceFile&&(this.source=e.sourceFile)};function tN(e,t){for(var n=1,r=0;;){var i=tx(e,r,t);if(i<0)return new tP(n,t-r);++n,r=i}}var tL={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},tB=!1;function tD(e,t){return 2|4*!!e|8*!!t}var tj=function(e,t,n){this.options=e=function(e){var t,n,r={};for(var i in tL)r[i]=e&&tv(e,i)?e[i]:tL[i];if("latest"===r.ecmaVersion?r.ecmaVersion=1e8:null==r.ecmaVersion?(!tB&&"object"==typeof console&&console.warn&&(tB=!0,console.warn("Since Acorn 8.0.0, options.ecmaVersion is required.\nDefaulting to 2020, but this will stop working in the future.")),r.ecmaVersion=11):r.ecmaVersion>=2015&&(r.ecmaVersion-=2009),null==r.allowReserved&&(r.allowReserved=r.ecmaVersion<5),e&&null!=e.allowHashBang||(r.allowHashBang=r.ecmaVersion>=14),tA(r.onToken)){var s=r.onToken;r.onToken=function(e){return s.push(e)}}if(tA(r.onComment)&&(t=r,n=r.onComment,r.onComment=function(e,r,i,s,a,o){var l={type:e?"Block":"Line",value:r,start:i,end:s};t.locations&&(l.loc=new tI(this,a,o)),t.ranges&&(l.range=[i,s]),n.push(l)}),"commonjs"===r.sourceType&&r.allowAwaitOutsideFunction)throw Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return r}(e),this.sourceFile=e.sourceFile,this.keywords=tC(tt[e.ecmaVersion>=6?6:"module"===e.sourceType?"5module":5]);var r="";!0!==e.allowReserved&&(r=e7[e.ecmaVersion>=6?6:5===e.ecmaVersion?5:3],"module"===e.sourceType&&(r+=" await")),this.reservedWords=tC(r);var i=(r?r+" ":"")+e7.strict;this.reservedWordsStrict=tC(i),this.reservedWordsStrictBind=tC(i+" "+e7.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(th).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=tm.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("commonjs"===this.options.sourceType?2:1),this.regexpState=null,this.privateNameStack=[]},tR={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};tj.prototype.parse=function(){var e=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(e)},tR.inFunction.get=function(){return(2&this.currentVarScope().flags)>0},tR.inGenerator.get=function(){return(8&this.currentVarScope().flags)>0},tR.inAsync.get=function(){return(4&this.currentVarScope().flags)>0},tR.canAwait.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t)return!1;if(2&t)return(4&t)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},tR.allowReturn.get=function(){return!!this.inFunction||!!this.options.allowReturnOutsideFunction&&!!(1&this.currentVarScope().flags)},tR.allowSuper.get=function(){return(64&this.currentThisScope().flags)>0||this.options.allowSuperOutsideMethod},tR.allowDirectSuper.get=function(){return(128&this.currentThisScope().flags)>0},tR.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},tR.allowNewDotTarget.get=function(){for(var e=this.scopeStack.length-1;e>=0;e--){var t=this.scopeStack[e].flags;if(768&t||2&t&&!(16&t))return!0}return!1},tR.allowUsing.get=function(){var e=this.currentScope().flags;return!(1024&e)&&(!!this.inModule||!(1&e))},tR.inClassStaticBlock.get=function(){return(256&this.currentVarScope().flags)>0},tj.extend=function(){for(var e=[],t=arguments.length;t--;)e[t]=arguments[t];for(var n=this,r=0;r<e.length;r++)n=e[r](n);return n},tj.parse=function(e,t){return new this(t,e).parse()},tj.parseExpressionAt=function(e,t,n){var r=new this(n,e,t);return r.nextToken(),r.parseExpression()},tj.tokenizer=function(e,t){return new this(t,e)},Object.defineProperties(tj.prototype,tR);var tF=tj.prototype,tM=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;tF.strictDirective=function(e){if(this.options.ecmaVersion<5)return!1;for(;;){tS.lastIndex=e,e+=tS.exec(this.input)[0].length;var t=tM.exec(this.input.slice(e));if(!t)return!1;if("use strict"===(t[1]||t[2])){tS.lastIndex=e+t[0].length;var n=tS.exec(this.input),r=n.index+n[0].length,i=this.input.charAt(r);return";"===i||"}"===i||th.test(n[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(i)||"!"===i&&"="===this.input.charAt(r+1))}tS.lastIndex=e+=t[0].length,e+=tS.exec(this.input)[0].length,";"===this.input[e]&&e++}},tF.eat=function(e){return this.type===e&&(this.next(),!0)},tF.isContextual=function(e){return this.type===tm.name&&this.value===e&&!this.containsEsc},tF.eatContextual=function(e){return!!this.isContextual(e)&&(this.next(),!0)},tF.expectContextual=function(e){this.eatContextual(e)||this.unexpected()},tF.canInsertSemicolon=function(){return this.type===tm.eof||this.type===tm.braceR||th.test(this.input.slice(this.lastTokEnd,this.start))},tF.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},tF.semicolon=function(){this.eat(tm.semi)||this.insertSemicolon()||this.unexpected()},tF.afterTrailingComma=function(e,t){if(this.type===e)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),t||this.next(),!0},tF.expect=function(e){this.eat(e)||this.unexpected()},tF.unexpected=function(e){this.raise(null!=e?e:this.start,"Unexpected token")};var t$=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};tF.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")}},tF.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")},tF.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},tF.isSimpleAssignTarget=function(e){return"ParenthesizedExpression"===e.type?this.isSimpleAssignTarget(e.expression):"Identifier"===e.type||"MemberExpression"===e.type};var tV=tj.prototype;tV.parseTopLevel=function(e){var t=Object.create(null);for(e.body||(e.body=[]);this.type!==tm.eof;){var n=this.parseStatement(null,!0,t);e.body.push(n)}if(this.inModule)for(var r=0,i=Object.keys(this.undefinedExports);r<i.length;r+=1){var s=i[r];this.raiseRecoverable(this.undefinedExports[s].start,"Export '"+s+"' is not defined")}return this.adaptDirectivePrologue(e.body),this.next(),e.sourceType="commonjs"===this.options.sourceType?"script":this.options.sourceType,this.finishNode(e,"Program")};var tq={kind:"loop"},tY={kind:"switch"};tV.isLet=function(e){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;tS.lastIndex=this.pos;var t=tS.exec(this.input),n=this.pos+t[0].length,r=this.fullCharCodeAt(n);if(91===r||92===r)return!0;if(e)return!1;if(123===r)return!0;if(ta(r)){var i=n;do n+=r<=65535?1:2;while(to(r=this.fullCharCodeAt(n)));if(92===r)return!0;var s=this.input.slice(i,n);if(!tn.test(s))return!0}return!1},tV.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;tS.lastIndex=this.pos;var e,t=tS.exec(this.input),n=this.pos+t[0].length;return!th.test(this.input.slice(this.pos,n))&&"function"===this.input.slice(n,n+8)&&(n+8===this.input.length||!(to(e=this.fullCharCodeAt(n+8))||92===e))},tV.isUsingKeyword=function(e,t){if(this.options.ecmaVersion<17||!this.isContextual(e?"await":"using"))return!1;tS.lastIndex=this.pos;var n=tS.exec(this.input),r=this.pos+n[0].length;if(th.test(this.input.slice(this.pos,r)))return!1;if(e){var i,s=r+5;if("using"!==this.input.slice(r,s)||s===this.input.length||to(i=this.fullCharCodeAt(s))||92===i)return!1;tS.lastIndex=s;var a=tS.exec(this.input);if(r=s+a[0].length,a&&th.test(this.input.slice(s,r)))return!1}var o=this.fullCharCodeAt(r);if(!ta(o)&&92!==o)return!1;var l=r;do r+=o<=65535?1:2;while(to(o=this.fullCharCodeAt(r)));if(92===o)return!0;var p=this.input.slice(l,r);return!tn.test(p)&&(!t||"of"!==p)},tV.isAwaitUsing=function(e){return this.isUsingKeyword(!0,e)},tV.isUsing=function(e){return this.isUsingKeyword(!1,e)},tV.parseStatement=function(e,t,n){var r,i=this.type,s=this.startNode();switch(this.isLet(e)&&(i=tm._var,r="let"),i){case tm._break:case tm._continue:return this.parseBreakContinueStatement(s,i.keyword);case tm._debugger:return this.parseDebuggerStatement(s);case tm._do:return this.parseDoStatement(s);case tm._for:return this.parseForStatement(s);case tm._function:return e&&(this.strict||"if"!==e&&"label"!==e)&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(s,!1,!e);case tm._class:return e&&this.unexpected(),this.parseClass(s,!0);case tm._if:return this.parseIfStatement(s);case tm._return:return this.parseReturnStatement(s);case tm._switch:return this.parseSwitchStatement(s);case tm._throw:return this.parseThrowStatement(s);case tm._try:return this.parseTryStatement(s);case tm._const:case tm._var:return r=r||this.value,e&&"var"!==r&&this.unexpected(),this.parseVarStatement(s,r);case tm._while:return this.parseWhileStatement(s);case tm._with:return this.parseWithStatement(s);case tm.braceL:return this.parseBlock(!0,s);case tm.semi:return this.parseEmptyStatement(s);case tm._export:case tm._import:if(this.options.ecmaVersion>10&&i===tm._import){tS.lastIndex=this.pos;var a=tS.exec(this.input),o=this.pos+a[0].length,l=this.input.charCodeAt(o);if(40===l||46===l)return this.parseExpressionStatement(s,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'")),i===tm._import?this.parseImport(s):this.parseExport(s,n);default:if(this.isAsyncFunction())return e&&this.unexpected(),this.next(),this.parseFunctionStatement(s,!0,!e);var p=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(p)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),"await using"===p&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(s,!1,p),this.semicolon(),this.finishNode(s,"VariableDeclaration");var c=this.value,u=this.parseExpression();if(i===tm.name&&"Identifier"===u.type&&this.eat(tm.colon))return this.parseLabeledStatement(s,c,u,e);return this.parseExpressionStatement(s,u)}},tV.parseBreakContinueStatement=function(e,t){var n="break"===t;this.next(),this.eat(tm.semi)||this.insertSemicolon()?e.label=null:this.type!==tm.name?this.unexpected():(e.label=this.parseIdent(),this.semicolon());for(var r=0;r<this.labels.length;++r){var i=this.labels[r];if((null==e.label||i.name===e.label.name)&&(null!=i.kind&&(n||"loop"===i.kind)||e.label&&n))break}return r===this.labels.length&&this.raise(e.start,"Unsyntactic "+t),this.finishNode(e,n?"BreakStatement":"ContinueStatement")},tV.parseDebuggerStatement=function(e){return this.next(),this.semicolon(),this.finishNode(e,"DebuggerStatement")},tV.parseDoStatement=function(e){return this.next(),this.labels.push(tq),e.body=this.parseStatement("do"),this.labels.pop(),this.expect(tm._while),e.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(tm.semi):this.semicolon(),this.finishNode(e,"DoWhileStatement")},tV.parseForStatement=function(e){this.next();var t=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(tq),this.enterScope(0),this.expect(tm.parenL),this.type===tm.semi)return t>-1&&this.unexpected(t),this.parseFor(e,null);var n=this.isLet();if(this.type===tm._var||this.type===tm._const||n){var r=this.startNode(),i=n?"let":this.value;return this.next(),this.parseVar(r,!0,i),this.finishNode(r,"VariableDeclaration"),this.parseForAfterInit(e,r,t)}var s=this.isContextual("let"),a=!1,o=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(o){var l=this.startNode();return this.next(),"await using"===o&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(l,!0,o),this.finishNode(l,"VariableDeclaration"),this.parseForAfterInit(e,l,t)}var p=this.containsEsc,c=new t$,u=this.start,f=t>-1?this.parseExprSubscripts(c,"await"):this.parseExpression(!0,c);return this.type===tm._in||(a=this.options.ecmaVersion>=6&&this.isContextual("of"))?(t>-1?(this.type===tm._in&&this.unexpected(t),e.await=!0):a&&this.options.ecmaVersion>=8&&(f.start!==u||p||"Identifier"!==f.type||"async"!==f.name?this.options.ecmaVersion>=9&&(e.await=!1):this.unexpected()),s&&a&&this.raise(f.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(f,!1,c),this.checkLValPattern(f),this.parseForIn(e,f)):(this.checkExpressionErrors(c,!0),t>-1&&this.unexpected(t),this.parseFor(e,f))},tV.parseForAfterInit=function(e,t,n){return(this.type===tm._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&1===t.declarations.length?(this.options.ecmaVersion>=9&&(this.type===tm._in?n>-1&&this.unexpected(n):e.await=n>-1),this.parseForIn(e,t)):(n>-1&&this.unexpected(n),this.parseFor(e,t))},tV.parseFunctionStatement=function(e,t,n){return this.next(),this.parseFunction(e,tJ|(n?0:tU),!1,t)},tV.parseIfStatement=function(e){return this.next(),e.test=this.parseParenExpression(),e.consequent=this.parseStatement("if"),e.alternate=this.eat(tm._else)?this.parseStatement("if"):null,this.finishNode(e,"IfStatement")},tV.parseReturnStatement=function(e){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(tm.semi)||this.insertSemicolon()?e.argument=null:(e.argument=this.parseExpression(),this.semicolon()),this.finishNode(e,"ReturnStatement")},tV.parseSwitchStatement=function(e){this.next(),e.discriminant=this.parseParenExpression(),e.cases=[],this.expect(tm.braceL),this.labels.push(tY),this.enterScope(1024);for(var t,n=!1;this.type!==tm.braceR;)if(this.type===tm._case||this.type===tm._default){var r=this.type===tm._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(tm.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")},tV.parseThrowStatement=function(e){return this.next(),th.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 tX=[];tV.parseCatchClauseParam=function(){var e=this.parseBindingAtom(),t="Identifier"===e.type;return this.enterScope(32*!!t),this.checkLValPattern(e,t?4:2),this.expect(tm.parenR),e},tV.parseTryStatement=function(e){if(this.next(),e.block=this.parseBlock(),e.handler=null,this.type===tm._catch){var t=this.startNode();this.next(),this.eat(tm.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(tm._finally)?this.parseBlock():null,e.handler||e.finalizer||this.raise(e.start,"Missing catch or finally clause"),this.finishNode(e,"TryStatement")},tV.parseVarStatement=function(e,t,n){return this.next(),this.parseVar(e,!1,t,n),this.semicolon(),this.finishNode(e,"VariableDeclaration")},tV.parseWhileStatement=function(e){return this.next(),e.test=this.parseParenExpression(),this.labels.push(tq),e.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(e,"WhileStatement")},tV.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")},tV.parseEmptyStatement=function(e){return this.next(),this.finishNode(e,"EmptyStatement")},tV.parseLabeledStatement=function(e,t,n,r){for(var i=0,s=this.labels;i<s.length;i+=1)s[i].name===t&&this.raise(n.start,"Label '"+t+"' is already declared");for(var a=this.type.isLoop?"loop":this.type===tm._switch?"switch":null,o=this.labels.length-1;o>=0;o--){var l=this.labels[o];if(l.statementStart===e.start)l.statementStart=this.start,l.kind=a;else break}return this.labels.push({name:t,kind:a,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")},tV.parseExpressionStatement=function(e,t){return e.expression=t,this.semicolon(),this.finishNode(e,"ExpressionStatement")},tV.parseBlock=function(e,t,n){for(void 0===e&&(e=!0),void 0===t&&(t=this.startNode()),t.body=[],this.expect(tm.braceL),e&&this.enterScope(0);this.type!==tm.braceR;){var r=this.parseStatement(null);t.body.push(r)}return n&&(this.strict=!1),this.next(),e&&this.exitScope(),this.finishNode(t,"BlockStatement")},tV.parseFor=function(e,t){return e.init=t,this.expect(tm.semi),e.test=this.type===tm.semi?null:this.parseExpression(),this.expect(tm.semi),e.update=this.type===tm.parenR?null:this.parseExpression(),this.expect(tm.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,"ForStatement")},tV.parseForIn=function(e,t){var n=this.type===tm._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(tm.parenR),e.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(e,n?"ForInStatement":"ForOfStatement")},tV.parseVar=function(e,t,n,r){for(e.declarations=[],e.kind=n;;){var i=this.startNode();if(this.parseVarId(i,n),this.eat(tm.eq)?i.init=this.parseMaybeAssign(t):r||"const"!==n||this.type===tm._in||this.options.ecmaVersion>=6&&this.isContextual("of")?r||"using"!==n&&"await using"!==n||!(this.options.ecmaVersion>=17)||this.type===tm._in||this.isContextual("of")?r||"Identifier"===i.id.type||t&&(this.type===tm._in||this.isContextual("of"))?i.init=null:this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):this.raise(this.lastTokEnd,"Missing initializer in "+n+" declaration"):this.unexpected(),e.declarations.push(this.finishNode(i,"VariableDeclarator")),!this.eat(tm.comma))break}return e},tV.parseVarId=function(e,t){e.id="using"===t||"await using"===t?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(e.id,"var"===t?1:2,!1)};var tJ=1,tU=2;function tW(e,t){var n=e.computed,r=e.key;return!n&&("Identifier"===r.type&&r.name===t||"Literal"===r.type&&r.value===t)}tV.parseFunction=function(e,t,n,r,i){this.initFunction(e),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!r)&&(this.type===tm.star&&t&tU&&this.unexpected(),e.generator=this.eat(tm.star)),this.options.ecmaVersion>=8&&(e.async=!!r),t&tJ&&(e.id=4&t&&this.type!==tm.name?null:this.parseIdent(),e.id&&!(t&tU)&&this.checkLValSimple(e.id,this.strict||e.generator||e.async?this.treatFunctionsAsVar?1:2:3));var s=this.yieldPos,a=this.awaitPos,o=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(tD(e.async,e.generator)),t&tJ||(e.id=this.type===tm.name?this.parseIdent():null),this.parseFunctionParams(e),this.parseFunctionBody(e,n,!1,i),this.yieldPos=s,this.awaitPos=a,this.awaitIdentPos=o,this.finishNode(e,t&tJ?"FunctionDeclaration":"FunctionExpression")},tV.parseFunctionParams=function(e){this.expect(tm.parenL),e.params=this.parseBindingList(tm.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},tV.parseClass=function(e,t){this.next();var n=this.strict;this.strict=!0,this.parseClassId(e,t),this.parseClassSuper(e);var r=this.enterClassBody(),i=this.startNode(),s=!1;for(i.body=[],this.expect(tm.braceL);this.type!==tm.braceR;){var a=this.parseClassElement(null!==e.superClass);a&&(i.body.push(a),"MethodDefinition"===a.type&&"constructor"===a.kind?(s&&this.raiseRecoverable(a.start,"Duplicate constructor in the same class"),s=!0):a.key&&"PrivateIdentifier"===a.key.type&&function(e,t){var n=t.key.name,r=e[n],i="true";return("MethodDefinition"===t.type&&("get"===t.kind||"set"===t.kind)&&(i=(t.static?"s":"i")+t.kind),"iget"===r&&"iset"===i||"iset"===r&&"iget"===i||"sget"===r&&"sset"===i||"sset"===r&&"sget"===i)?(e[n]="true",!1):!!r||(e[n]=i,!1)}(r,a)&&this.raiseRecoverable(a.key.start,"Identifier '#"+a.key.name+"' has already been declared"))}return this.strict=n,this.next(),e.body=this.finishNode(i,"ClassBody"),this.exitClassBody(),this.finishNode(e,t?"ClassDeclaration":"ClassExpression")},tV.parseClassElement=function(e){if(this.eat(tm.semi))return null;var t=this.options.ecmaVersion,n=this.startNode(),r="",i=!1,s=!1,a="method",o=!1;if(this.eatContextual("static")){if(t>=13&&this.eat(tm.braceL))return this.parseClassStaticBlock(n),n;this.isClassElementNameStart()||this.type===tm.star?o=!0:r="static"}if(n.static=o,!r&&t>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===tm.star)&&!this.canInsertSemicolon()?s=!0:r="async"),!r&&(t>=9||!s)&&this.eat(tm.star)&&(i=!0),!r&&!s&&!i){var l=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?a=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===tm.parenL||"method"!==a||i||s){var p=!n.static&&tW(n,"constructor");p&&"method"!==a&&this.raise(n.key.start,"Constructor can't have get/set modifier"),n.kind=p?"constructor":a,this.parseClassMethod(n,i,s,p&&e)}else this.parseClassField(n);return n},tV.isClassElementNameStart=function(){return this.type===tm.name||this.type===tm.privateId||this.type===tm.num||this.type===tm.string||this.type===tm.bracketL||this.type.keyword},tV.parseClassElementName=function(e){this.type===tm.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)},tV.parseClassMethod=function(e,t,n,r){var i=e.key;"constructor"===e.kind?(t&&this.raise(i.start,"Constructor can't be a generator"),n&&this.raise(i.start,"Constructor can't be an async method")):e.static&&tW(e,"prototype")&&this.raise(i.start,"Classes may not have a static property named prototype");var s=e.value=this.parseMethod(t,n,r);return"get"===e.kind&&0!==s.params.length&&this.raiseRecoverable(s.start,"getter should have no params"),"set"===e.kind&&1!==s.params.length&&this.raiseRecoverable(s.start,"setter should have exactly one param"),"set"===e.kind&&"RestElement"===s.params[0].type&&this.raiseRecoverable(s.params[0].start,"Setter cannot use rest params"),this.finishNode(e,"MethodDefinition")},tV.parseClassField=function(e){return tW(e,"constructor")?this.raise(e.key.start,"Classes can't have a field named 'constructor'"):e.static&&tW(e,"prototype")&&this.raise(e.key.start,"Classes can't have a static field named 'prototype'"),this.eat(tm.eq)?(this.enterScope(576),e.value=this.parseMaybeAssign(),this.exitScope()):e.value=null,this.semicolon(),this.finishNode(e,"PropertyDefinition")},tV.parseClassStaticBlock=function(e){e.body=[];var t=this.labels;for(this.labels=[],this.enterScope(320);this.type!==tm.braceR;){var n=this.parseStatement(null);e.body.push(n)}return this.next(),this.exitScope(),this.labels=t,this.finishNode(e,"StaticBlock")},tV.parseClassId=function(e,t){this.type===tm.name?(e.id=this.parseIdent(),t&&this.checkLValSimple(e.id,2,!1)):(!0===t&&this.unexpected(),e.id=null)},tV.parseClassSuper=function(e){e.superClass=this.eat(tm._extends)?this.parseExprSubscripts(null,!1):null},tV.enterClassBody=function(){var e={declared:Object.create(null),used:[]};return this.privateNameStack.push(e),e.declared},tV.exitClassBody=function(){var e=this.privateNameStack.pop(),t=e.declared,n=e.used;if(this.options.checkPrivateFields)for(var r=this.privateNameStack.length,i=0===r?null:this.privateNameStack[r-1],s=0;s<n.length;++s){var a=n[s];tv(t,a.name)||(i?i.used.push(a):this.raiseRecoverable(a.start,"Private field '#"+a.name+"' must be declared in an enclosing class"))}},tV.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!==tm.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ExportAllDeclaration")},tV.parseExport=function(e,t){if(this.next(),this.eat(tm.star))return this.parseExportAllDeclaration(e,t);if(this.eat(tm._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,this.options.ecmaVersion>=16&&(e.attributes=[]);else{if(e.declaration=null,e.specifiers=this.parseExportSpecifiers(t),this.eatContextual("from"))this.type!==tm.string&&this.unexpected(),e.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause());else{for(var n=0,r=e.specifiers;n<r.length;n+=1){var i=r[n];this.checkUnreserved(i.local),this.checkLocalExport(i.local),"Literal"===i.local.type&&this.raise(i.local.start,"A string literal cannot be used as an exported binding without `from`.")}e.source=null,this.options.ecmaVersion>=16&&(e.attributes=[])}this.semicolon()}return this.finishNode(e,"ExportNamedDeclaration")},tV.parseExportDeclaration=function(e){return this.parseStatement(null)},tV.parseExportDefaultDeclaration=function(){if(this.type===tm._function||(e=this.isAsyncFunction())){var e,t=this.startNode();return this.next(),e&&this.next(),this.parseFunction(t,4|tJ,!1,e)}if(this.type===tm._class){var n=this.startNode();return this.parseClass(n,"nullableID")}var r=this.parseMaybeAssign();return this.semicolon(),r},tV.checkExport=function(e,t,n){e&&("string"!=typeof t&&(t="Identifier"===t.type?t.name:t.value),tv(e,t)&&this.raiseRecoverable(n,"Duplicate export '"+t+"'"),e[t]=!0)},tV.checkPatternExport=function(e,t){var n=t.type;if("Identifier"===n)this.checkExport(e,t,t.start);else if("ObjectPattern"===n)for(var r=0,i=t.properties;r<i.length;r+=1){var s=i[r];this.checkPatternExport(e,s)}else if("ArrayPattern"===n)for(var a=0,o=t.elements;a<o.length;a+=1){var l=o[a];l&&this.checkPatternExport(e,l)}else"Property"===n?this.checkPatternExport(e,t.value):"AssignmentPattern"===n?this.checkPatternExport(e,t.left):"RestElement"===n&&this.checkPatternExport(e,t.argument)},tV.checkVariableExport=function(e,t){if(e)for(var n=0;n<t.length;n+=1){var r=t[n];this.checkPatternExport(e,r.id)}},tV.shouldParseExportStatement=function(){return"var"===this.type.keyword||"const"===this.type.keyword||"class"===this.type.keyword||"function"===this.type.keyword||this.isLet()||this.isAsyncFunction()},tV.parseExportSpecifier=function(e){var t=this.startNode();return t.local=this.parseModuleExportName(),t.exported=this.eatContextual("as")?this.parseModuleExportName():t.local,this.checkExport(e,t.exported,t.exported.start),this.finishNode(t,"ExportSpecifier")},tV.parseExportSpecifiers=function(e){var t=[],n=!0;for(this.expect(tm.braceL);!this.eat(tm.braceR);){if(n)n=!1;else if(this.expect(tm.comma),this.afterTrailingComma(tm.braceR))break;t.push(this.parseExportSpecifier(e))}return t},tV.parseImport=function(e){return this.next(),this.type===tm.string?(e.specifiers=tX,e.source=this.parseExprAtom()):(e.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),e.source=this.type===tm.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(e.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(e,"ImportDeclaration")},tV.parseImportSpecifier=function(){var e=this.startNode();return e.imported=this.parseModuleExportName(),this.eatContextual("as")?e.local=this.parseIdent():(this.checkUnreserved(e.imported),e.local=e.imported),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportSpecifier")},tV.parseImportDefaultSpecifier=function(){var e=this.startNode();return e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportDefaultSpecifier")},tV.parseImportNamespaceSpecifier=function(){var e=this.startNode();return this.next(),this.expectContextual("as"),e.local=this.parseIdent(),this.checkLValSimple(e.local,2),this.finishNode(e,"ImportNamespaceSpecifier")},tV.parseImportSpecifiers=function(){var e=[],t=!0;if(this.type===tm.name&&(e.push(this.parseImportDefaultSpecifier()),!this.eat(tm.comma)))return e;if(this.type===tm.star)return e.push(this.parseImportNamespaceSpecifier()),e;for(this.expect(tm.braceL);!this.eat(tm.braceR);){if(t)t=!1;else if(this.expect(tm.comma),this.afterTrailingComma(tm.braceR))break;e.push(this.parseImportSpecifier())}return e},tV.parseWithClause=function(){var e=[];if(!this.eat(tm._with))return e;this.expect(tm.braceL);for(var t={},n=!0;!this.eat(tm.braceR);){if(n)n=!1;else if(this.expect(tm.comma),this.afterTrailingComma(tm.braceR))break;var r=this.parseImportAttribute(),i="Identifier"===r.key.type?r.key.name:r.key.value;tv(t,i)&&this.raiseRecoverable(r.key.start,"Duplicate attribute key '"+i+"'"),t[i]=!0,e.push(r)}return e},tV.parseImportAttribute=function(){var e=this.startNode();return e.key=this.type===tm.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved),this.expect(tm.colon),this.type!==tm.string&&this.unexpected(),e.value=this.parseExprAtom(),this.finishNode(e,"ImportAttribute")},tV.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===tm.string){var e=this.parseLiteral(this.value);return tO.test(e.value)&&this.raise(e.start,"An export name cannot include a lone surrogate."),e}return this.parseIdent(!0)},tV.adaptDirectivePrologue=function(e){for(var t=0;t<e.length&&this.isDirectiveCandidate(e[t]);++t)e[t].directive=e[t].expression.raw.slice(1,-1)},tV.isDirectiveCandidate=function(e){return this.options.ecmaVersion>=5&&"ExpressionStatement"===e.type&&"Literal"===e.expression.type&&"string"==typeof e.expression.value&&('"'===this.input[e.start]||"'"===this.input[e.start])};var tK=tj.prototype;tK.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,i=e.properties;r<i.length;r+=1){var s=i[r];this.toAssignable(s,t),"RestElement"===s.type&&("ArrayPattern"===s.argument.type||"ObjectPattern"===s.argument.type)&&this.raise(s.argument.start,"Unexpected token")}break;case"Property":"init"!==e.kind&&this.raise(e.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(e.value,t);break;case"ArrayExpression":e.type="ArrayPattern",n&&this.checkPatternErrors(n,!0),this.toAssignableList(e.elements,t);break;case"SpreadElement":e.type="RestElement",this.toAssignable(e.argument,t),"AssignmentPattern"===e.argument.type&&this.raise(e.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":"="!==e.operator&&this.raise(e.left.end,"Only '=' operator can be used for specifying default value."),e.type="AssignmentPattern",delete e.operator,this.toAssignable(e.left,t);break;case"ParenthesizedExpression":this.toAssignable(e.expression,t,n);break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!t)break;default:this.raise(e.start,"Assigning to rvalue")}else n&&this.checkPatternErrors(n,!0);return e},tK.toAssignableList=function(e,t){for(var n=e.length,r=0;r<n;r++){var i=e[r];i&&this.toAssignable(i,t)}if(n){var s=e[n-1];6===this.options.ecmaVersion&&t&&s&&"RestElement"===s.type&&"Identifier"!==s.argument.type&&this.unexpected(s.argument.start)}return e},tK.parseSpread=function(e){var t=this.startNode();return this.next(),t.argument=this.parseMaybeAssign(!1,e),this.finishNode(t,"SpreadElement")},tK.parseRestBinding=function(){var e=this.startNode();return this.next(),6===this.options.ecmaVersion&&this.type!==tm.name&&this.unexpected(),e.argument=this.parseBindingAtom(),this.finishNode(e,"RestElement")},tK.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case tm.bracketL:var e=this.startNode();return this.next(),e.elements=this.parseBindingList(tm.bracketR,!0,!0),this.finishNode(e,"ArrayPattern");case tm.braceL:return this.parseObj(!0)}return this.parseIdent()},tK.parseBindingList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);)if(s?s=!1:this.expect(tm.comma),t&&this.type===tm.comma)i.push(null);else if(n&&this.afterTrailingComma(e))break;else if(this.type===tm.ellipsis){var a=this.parseRestBinding();this.parseBindingListItem(a),i.push(a),this.type===tm.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(e);break}else i.push(this.parseAssignableListItem(r));return i},tK.parseAssignableListItem=function(e){var t=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(t),t},tK.parseBindingListItem=function(e){return e},tK.parseMaybeDefault=function(e,t,n){if(n=n||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(tm.eq))return n;var r=this.startNodeAt(e,t);return r.left=n,r.right=this.parseMaybeAssign(),this.finishNode(r,"AssignmentPattern")},tK.checkLValSimple=function(e,t,n){void 0===t&&(t=0);var r=0!==t;switch(e.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(e.name)&&this.raiseRecoverable(e.start,(r?"Binding ":"Assigning to ")+e.name+" in strict mode"),r&&(2===t&&"let"===e.name&&this.raiseRecoverable(e.start,"let is disallowed as a lexically bound name"),n&&(tv(n,e.name)&&this.raiseRecoverable(e.start,"Argument name clash"),n[e.name]=!0),5!==t&&this.declareName(e.name,t,e.start));break;case"ChainExpression":this.raiseRecoverable(e.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":r&&this.raiseRecoverable(e.start,"Binding member expression");break;case"ParenthesizedExpression":return r&&this.raiseRecoverable(e.start,"Binding parenthesized expression"),this.checkLValSimple(e.expression,t,n);default:this.raise(e.start,(r?"Binding":"Assigning to")+" rvalue")}},tK.checkLValPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"ObjectPattern":for(var r=0,i=e.properties;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,t,n)}break;case"ArrayPattern":for(var a=0,o=e.elements;a<o.length;a+=1){var l=o[a];l&&this.checkLValInnerPattern(l,t,n)}break;default:this.checkLValSimple(e,t,n)}},tK.checkLValInnerPattern=function(e,t,n){switch(void 0===t&&(t=0),e.type){case"Property":this.checkLValInnerPattern(e.value,t,n);break;case"AssignmentPattern":this.checkLValPattern(e.left,t,n);break;case"RestElement":this.checkLValPattern(e.argument,t,n);break;default:this.checkLValPattern(e,t,n)}};var tH=function(e,t,n,r,i){this.token=e,this.isExpr=!!t,this.preserveSpace=!!n,this.override=r,this.generator=!!i},tz={b_stat:new tH("{",!1),b_expr:new tH("{",!0),b_tmpl:new tH("${",!1),p_stat:new tH("(",!1),p_expr:new tH("(",!0),q_tmpl:new tH("`",!0,!0,function(e){return e.tryReadTemplateToken()}),f_stat:new tH("function",!1),f_expr:new tH("function",!0),f_expr_gen:new tH("function",!0,!1,null,!0),f_gen:new tH("function",!1,!1,null,!0)},tG=tj.prototype;tG.initialContext=function(){return[tz.b_stat]},tG.curContext=function(){return this.context[this.context.length-1]},tG.braceIsBlock=function(e){var t=this.curContext();return t===tz.f_expr||t===tz.f_stat||(e===tm.colon&&(t===tz.b_stat||t===tz.b_expr)?!t.isExpr:e===tm._return||e===tm.name&&this.exprAllowed?th.test(this.input.slice(this.lastTokEnd,this.start)):e===tm._else||e===tm.semi||e===tm.eof||e===tm.parenR||e===tm.arrow||(e===tm.braceL?t===tz.b_stat:e!==tm._var&&e!==tm._const&&e!==tm.name&&!this.exprAllowed))},tG.inGeneratorContext=function(){for(var e=this.context.length-1;e>=1;e--){var t=this.context[e];if("function"===t.token)return t.generator}return!1},tG.updateContext=function(e){var t,n=this.type;n.keyword&&e===tm.dot?this.exprAllowed=!1:(t=n.updateContext)?t.call(this,e):this.exprAllowed=n.beforeExpr},tG.overrideContext=function(e){this.curContext()!==e&&(this.context[this.context.length-1]=e)},tm.parenR.updateContext=tm.braceR.updateContext=function(){if(1===this.context.length){this.exprAllowed=!0;return}var e=this.context.pop();e===tz.b_stat&&"function"===this.curContext().token&&(e=this.context.pop()),this.exprAllowed=!e.isExpr},tm.braceL.updateContext=function(e){this.context.push(this.braceIsBlock(e)?tz.b_stat:tz.b_expr),this.exprAllowed=!0},tm.dollarBraceL.updateContext=function(){this.context.push(tz.b_tmpl),this.exprAllowed=!0},tm.parenL.updateContext=function(e){var t=e===tm._if||e===tm._for||e===tm._with||e===tm._while;this.context.push(t?tz.p_stat:tz.p_expr),this.exprAllowed=!0},tm.incDec.updateContext=function(){},tm._function.updateContext=tm._class.updateContext=function(e){e.beforeExpr&&e!==tm._else&&(e!==tm.semi||this.curContext()===tz.p_stat)&&!(e===tm._return&&th.test(this.input.slice(this.lastTokEnd,this.start)))&&(e!==tm.colon&&e!==tm.braceL||this.curContext()!==tz.b_stat)?this.context.push(tz.f_expr):this.context.push(tz.f_stat),this.exprAllowed=!1},tm.colon.updateContext=function(){"function"===this.curContext().token&&this.context.pop(),this.exprAllowed=!0},tm.backQuote.updateContext=function(){this.curContext()===tz.q_tmpl?this.context.pop():this.context.push(tz.q_tmpl),this.exprAllowed=!1},tm.star.updateContext=function(e){if(e===tm._function){var t=this.context.length-1;this.context[t]===tz.f_expr?this.context[t]=tz.f_expr_gen:this.context[t]=tz.f_gen}this.exprAllowed=!0},tm.name.updateContext=function(e){var t=!1;this.options.ecmaVersion>=6&&e!==tm.dot&&("of"===this.value&&!this.exprAllowed||"yield"===this.value&&this.inGeneratorContext())&&(t=!0),this.exprAllowed=t};var tQ=tj.prototype;tQ.checkPropClash=function(e,t,n){if((!(this.options.ecmaVersion>=9)||"SpreadElement"!==e.type)&&(!(this.options.ecmaVersion>=6)||!e.computed&&!e.method&&!e.shorthand)){var r,i=e.key;switch(i.type){case"Identifier":r=i.name;break;case"Literal":r=String(i.value);break;default:return}var s=e.kind;if(this.options.ecmaVersion>=6){"__proto__"===r&&"init"===s&&(t.proto&&(n?n.doubleProto<0&&(n.doubleProto=i.start):this.raiseRecoverable(i.start,"Redefinition of __proto__ property")),t.proto=!0);return}var a=t[r="$"+r];a?("init"===s?this.strict&&a.init||a.get||a.set:a.init||a[s])&&this.raiseRecoverable(i.start,"Redefinition of property"):a=t[r]={init:!1,get:!1,set:!1},a[s]=!0}},tQ.parseExpression=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeAssign(e,t);if(this.type===tm.comma){var s=this.startNodeAt(n,r);for(s.expressions=[i];this.eat(tm.comma);)s.expressions.push(this.parseMaybeAssign(e,t));return this.finishNode(s,"SequenceExpression")}return i},tQ.parseMaybeAssign=function(e,t,n){if(this.isContextual("yield"))if(this.inGenerator)return this.parseYield(e);else this.exprAllowed=!1;var r=!1,i=-1,s=-1,a=-1;t?(i=t.parenthesizedAssign,s=t.trailingComma,a=t.doubleProto,t.parenthesizedAssign=t.trailingComma=-1):(t=new t$,r=!0);var o=this.start,l=this.startLoc;(this.type===tm.parenL||this.type===tm.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait="await"===e);var p=this.parseMaybeConditional(e,t);if(n&&(p=n.call(this,p,o,l)),this.type.isAssign){var c=this.startNodeAt(o,l);return c.operator=this.value,this.type===tm.eq&&(p=this.toAssignable(p,!1,t)),r||(t.parenthesizedAssign=t.trailingComma=t.doubleProto=-1),t.shorthandAssign>=p.start&&(t.shorthandAssign=-1),this.type===tm.eq?this.checkLValPattern(p):this.checkLValSimple(p),c.left=p,this.next(),c.right=this.parseMaybeAssign(e),a>-1&&(t.doubleProto=a),this.finishNode(c,"AssignmentExpression")}return r&&this.checkExpressionErrors(t,!0),i>-1&&(t.parenthesizedAssign=i),s>-1&&(t.trailingComma=s),p},tQ.parseMaybeConditional=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprOps(e,t);if(this.checkExpressionErrors(t))return i;if(this.eat(tm.question)){var s=this.startNodeAt(n,r);return s.test=i,s.consequent=this.parseMaybeAssign(),this.expect(tm.colon),s.alternate=this.parseMaybeAssign(e),this.finishNode(s,"ConditionalExpression")}return i},tQ.parseExprOps=function(e,t){var n=this.start,r=this.startLoc,i=this.parseMaybeUnary(t,!1,!1,e);return this.checkExpressionErrors(t)||i.start===n&&"ArrowFunctionExpression"===i.type?i:this.parseExprOp(i,n,r,-1,e)},tQ.parseExprOp=function(e,t,n,r,i){var s=this.type.binop;if(null!=s&&(!i||this.type!==tm._in)&&s>r){var a=this.type===tm.logicalOR||this.type===tm.logicalAND,o=this.type===tm.coalesce;o&&(s=tm.logicalAND.binop);var l=this.value;this.next();var p=this.start,c=this.startLoc,u=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,i),p,c,s,i),f=this.buildBinary(t,n,e,u,l,a||o);return(a&&this.type===tm.coalesce||o&&(this.type===tm.logicalOR||this.type===tm.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(f,t,n,r,i)}return e},tQ.buildBinary=function(e,t,n,r,i,s){"PrivateIdentifier"===r.type&&this.raise(r.start,"Private identifier can only be left side of binary expression");var a=this.startNodeAt(e,t);return a.left=n,a.operator=i,a.right=r,this.finishNode(a,s?"LogicalExpression":"BinaryExpression")},tQ.parseMaybeUnary=function(e,t,n,r){var i,s=this.start,a=this.startLoc;if(this.isContextual("await")&&this.canAwait)i=this.parseAwait(r),t=!0;else if(this.type.prefix){var o=this.startNode(),l=this.type===tm.incDec;o.operator=this.value,o.prefix=!0,this.next(),o.argument=this.parseMaybeUnary(null,!0,l,r),this.checkExpressionErrors(e,!0),l?this.checkLValSimple(o.argument):this.strict&&"delete"===o.operator&&function e(t){return"Identifier"===t.type||"ParenthesizedExpression"===t.type&&e(t.expression)}(o.argument)?this.raiseRecoverable(o.start,"Deleting local variable in strict mode"):"delete"===o.operator&&function e(t){return"MemberExpression"===t.type&&"PrivateIdentifier"===t.property.type||"ChainExpression"===t.type&&e(t.expression)||"ParenthesizedExpression"===t.type&&e(t.expression)}(o.argument)?this.raiseRecoverable(o.start,"Private fields can not be deleted"):t=!0,i=this.finishNode(o,l?"UpdateExpression":"UnaryExpression")}else if(t||this.type!==tm.privateId){if(i=this.parseExprSubscripts(e,r),this.checkExpressionErrors(e))return i;for(;this.type.postfix&&!this.canInsertSemicolon();){var p=this.startNodeAt(s,a);p.operator=this.value,p.prefix=!1,p.argument=i,this.checkLValSimple(i),this.next(),i=this.finishNode(p,"UpdateExpression")}}else(r||0===this.privateNameStack.length)&&this.options.checkPrivateFields&&this.unexpected(),i=this.parsePrivateIdent(),this.type!==tm._in&&this.unexpected();return!n&&this.eat(tm.starstar)?t?void this.unexpected(this.lastTokStart):this.buildBinary(s,a,i,this.parseMaybeUnary(null,!1,!1,r),"**",!1):i},tQ.parseExprSubscripts=function(e,t){var n=this.start,r=this.startLoc,i=this.parseExprAtom(e,t);if("ArrowFunctionExpression"===i.type&&")"!==this.input.slice(this.lastTokStart,this.lastTokEnd))return i;var s=this.parseSubscripts(i,n,r,!1,t);return e&&"MemberExpression"===s.type&&(e.parenthesizedAssign>=s.start&&(e.parenthesizedAssign=-1),e.parenthesizedBind>=s.start&&(e.parenthesizedBind=-1),e.trailingComma>=s.start&&(e.trailingComma=-1)),s},tQ.parseSubscripts=function(e,t,n,r,i){for(var s=this.options.ecmaVersion>=8&&"Identifier"===e.type&&"async"===e.name&&this.lastTokEnd===e.end&&!this.canInsertSemicolon()&&e.end-e.start==5&&this.potentialArrowAt===e.start,a=!1;;){var o=this.parseSubscript(e,t,n,r,s,a,i);if(o.optional&&(a=!0),o===e||"ArrowFunctionExpression"===o.type){if(a){var l=this.startNodeAt(t,n);l.expression=o,o=this.finishNode(l,"ChainExpression")}return o}e=o}},tQ.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(tm.arrow)},tQ.parseSubscriptAsyncArrow=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!0,r)},tQ.parseSubscript=function(e,t,n,r,i,s,a){var o=this.options.ecmaVersion>=11,l=o&&this.eat(tm.questionDot);r&&l&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var p=this.eat(tm.bracketL);if(p||l&&this.type!==tm.parenL&&this.type!==tm.backQuote||this.eat(tm.dot)){var c=this.startNodeAt(t,n);c.object=e,p?(c.property=this.parseExpression(),this.expect(tm.bracketR)):this.type===tm.privateId&&"Super"!==e.type?c.property=this.parsePrivateIdent():c.property=this.parseIdent("never"!==this.options.allowReserved),c.computed=!!p,o&&(c.optional=l),e=this.finishNode(c,"MemberExpression")}else if(!r&&this.eat(tm.parenL)){var u=new t$,f=this.yieldPos,d=this.awaitPos,m=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var h=this.parseExprList(tm.parenR,this.options.ecmaVersion>=8,!1,u);if(i&&!l&&this.shouldParseAsyncArrow())return this.checkPatternErrors(u,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=f,this.awaitPos=d,this.awaitIdentPos=m,this.parseSubscriptAsyncArrow(t,n,h,a);this.checkExpressionErrors(u,!0),this.yieldPos=f||this.yieldPos,this.awaitPos=d||this.awaitPos,this.awaitIdentPos=m||this.awaitIdentPos;var g=this.startNodeAt(t,n);g.callee=e,g.arguments=h,o&&(g.optional=l),e=this.finishNode(g,"CallExpression")}else if(this.type===tm.backQuote){(l||s)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var y=this.startNodeAt(t,n);y.tag=e,y.quasi=this.parseTemplate({isTagged:!0}),e=this.finishNode(y,"TaggedTemplateExpression")}return e},tQ.parseExprAtom=function(e,t,n){this.type===tm.slash&&this.readRegexp();var r,i=this.potentialArrowAt===this.start;switch(this.type){case tm._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),r=this.startNode(),this.next(),this.type!==tm.parenL||this.allowDirectSuper||this.raise(r.start,"super() call outside constructor of a subclass"),this.type!==tm.dot&&this.type!==tm.bracketL&&this.type!==tm.parenL&&this.unexpected(),this.finishNode(r,"Super");case tm._this:return r=this.startNode(),this.next(),this.finishNode(r,"ThisExpression");case tm.name:var s=this.start,a=this.startLoc,o=this.containsEsc,l=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!o&&"async"===l.name&&!this.canInsertSemicolon()&&this.eat(tm._function))return this.overrideContext(tz.f_expr),this.parseFunction(this.startNodeAt(s,a),0,!1,!0,t);if(i&&!this.canInsertSemicolon()){if(this.eat(tm.arrow))return this.parseArrowExpression(this.startNodeAt(s,a),[l],!1,t);if(this.options.ecmaVersion>=8&&"async"===l.name&&this.type===tm.name&&!o&&(!this.potentialArrowInForAwait||"of"!==this.value||this.containsEsc))return l=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(tm.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(s,a),[l],!0,t)}return l;case tm.regexp:var p=this.value;return(r=this.parseLiteral(p.value)).regex={pattern:p.pattern,flags:p.flags},r;case tm.num:case tm.string:return this.parseLiteral(this.value);case tm._null:case tm._true:case tm._false:return(r=this.startNode()).value=this.type===tm._null?null:this.type===tm._true,r.raw=this.type.keyword,this.next(),this.finishNode(r,"Literal");case tm.parenL:var c=this.start,u=this.parseParenAndDistinguishExpression(i,t);return e&&(e.parenthesizedAssign<0&&!this.isSimpleAssignTarget(u)&&(e.parenthesizedAssign=c),e.parenthesizedBind<0&&(e.parenthesizedBind=c)),u;case tm.bracketL:return r=this.startNode(),this.next(),r.elements=this.parseExprList(tm.bracketR,!0,!0,e),this.finishNode(r,"ArrayExpression");case tm.braceL:return this.overrideContext(tz.b_expr),this.parseObj(!1,e);case tm._function:return r=this.startNode(),this.next(),this.parseFunction(r,0);case tm._class:return this.parseClass(this.startNode(),!1);case tm._new:return this.parseNew();case tm.backQuote:return this.parseTemplate();case tm._import:if(this.options.ecmaVersion>=11)return this.parseExprImport(n);return this.unexpected();default:return this.parseExprAtomDefault()}},tQ.parseExprAtomDefault=function(){this.unexpected()},tQ.parseExprImport=function(e){var t=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===tm.parenL&&!e)return this.parseDynamicImport(t);if(this.type===tm.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()},tQ.parseDynamicImport=function(e){if(this.next(),e.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(tm.parenR)?e.options=null:(this.expect(tm.comma),this.afterTrailingComma(tm.parenR)?e.options=null:(e.options=this.parseMaybeAssign(),!this.eat(tm.parenR)&&(this.expect(tm.comma),this.afterTrailingComma(tm.parenR)||this.unexpected())));else if(!this.eat(tm.parenR)){var t=this.start;this.eat(tm.comma)&&this.eat(tm.parenR)?this.raiseRecoverable(t,"Trailing comma is not allowed in import()"):this.unexpected(t)}return this.finishNode(e,"ImportExpression")},tQ.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")},tQ.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=null!=t.value?t.value.toString():t.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(t,"Literal")},tQ.parseParenExpression=function(){this.expect(tm.parenL);var e=this.parseExpression();return this.expect(tm.parenR),e},tQ.shouldParseArrow=function(e){return!this.canInsertSemicolon()},tQ.parseParenAndDistinguishExpression=function(e,t){var n,r=this.start,i=this.startLoc,s=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var a,o=this.start,l=this.startLoc,p=[],c=!0,u=!1,f=new t$,d=this.yieldPos,m=this.awaitPos;for(this.yieldPos=0,this.awaitPos=0;this.type!==tm.parenR;){if(c?c=!1:this.expect(tm.comma),s&&this.afterTrailingComma(tm.parenR,!0)){u=!0;break}if(this.type===tm.ellipsis){a=this.start,p.push(this.parseParenItem(this.parseRestBinding())),this.type===tm.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}p.push(this.parseMaybeAssign(!1,f,this.parseParenItem))}var h=this.lastTokEnd,g=this.lastTokEndLoc;if(this.expect(tm.parenR),e&&this.shouldParseArrow(p)&&this.eat(tm.arrow))return this.checkPatternErrors(f,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=d,this.awaitPos=m,this.parseParenArrowList(r,i,p,t);(!p.length||u)&&this.unexpected(this.lastTokStart),a&&this.unexpected(a),this.checkExpressionErrors(f,!0),this.yieldPos=d||this.yieldPos,this.awaitPos=m||this.awaitPos,p.length>1?((n=this.startNodeAt(o,l)).expressions=p,this.finishNodeAt(n,"SequenceExpression",h,g)):n=p[0]}else n=this.parseParenExpression();if(!this.options.preserveParens)return n;var y=this.startNodeAt(r,i);return y.expression=n,this.finishNode(y,"ParenthesizedExpression")},tQ.parseParenItem=function(e){return e},tQ.parseParenArrowList=function(e,t,n,r){return this.parseArrowExpression(this.startNodeAt(e,t),n,!1,r)};var tZ=[];tQ.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===tm.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,i=this.startLoc;return e.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),r,i,!0,!1),this.eat(tm.parenL)?e.arguments=this.parseExprList(tm.parenR,this.options.ecmaVersion>=8,!1):e.arguments=tZ,this.finishNode(e,"NewExpression")},tQ.parseTemplateElement=function(e){var t=e.isTagged,n=this.startNode();return this.type===tm.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===tm.backQuote,this.finishNode(n,"TemplateElement")},tQ.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===tm.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(tm.dollarBraceL),n.expressions.push(this.parseExpression()),this.expect(tm.braceR),n.quasis.push(r=this.parseTemplateElement({isTagged:t}));return this.next(),this.finishNode(n,"TemplateLiteral")},tQ.isAsyncProp=function(e){return!e.computed&&"Identifier"===e.key.type&&"async"===e.key.name&&(this.type===tm.name||this.type===tm.num||this.type===tm.string||this.type===tm.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===tm.star)&&!th.test(this.input.slice(this.lastTokEnd,this.start))},tQ.parseObj=function(e,t){var n=this.startNode(),r=!0,i={};for(n.properties=[],this.next();!this.eat(tm.braceR);){if(r)r=!1;else if(this.expect(tm.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(tm.braceR))break;var s=this.parseProperty(e,t);e||this.checkPropClash(s,i,t),n.properties.push(s)}return this.finishNode(n,e?"ObjectPattern":"ObjectExpression")},tQ.parseProperty=function(e,t){var n,r,i,s,a=this.startNode();if(this.options.ecmaVersion>=9&&this.eat(tm.ellipsis))return e?(a.argument=this.parseIdent(!1),this.type===tm.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(a,"RestElement")):(a.argument=this.parseMaybeAssign(!1,t),this.type===tm.comma&&t&&t.trailingComma<0&&(t.trailingComma=this.start),this.finishNode(a,"SpreadElement"));this.options.ecmaVersion>=6&&(a.method=!1,a.shorthand=!1,(e||t)&&(i=this.start,s=this.startLoc),e||(n=this.eat(tm.star)));var o=this.containsEsc;return this.parsePropertyName(a),!e&&!o&&this.options.ecmaVersion>=8&&!n&&this.isAsyncProp(a)?(r=!0,n=this.options.ecmaVersion>=9&&this.eat(tm.star),this.parsePropertyName(a)):r=!1,this.parsePropertyValue(a,e,n,r,i,s,t,o),this.finishNode(a,"Property")},tQ.parseGetterSetter=function(e){var t=e.key.name;this.parsePropertyName(e),e.value=this.parseMethod(!1),e.kind=t;var n=+("get"!==e.kind);if(e.value.params.length!==n){var r=e.value.start;"get"===e.kind?this.raiseRecoverable(r,"getter should have no params"):this.raiseRecoverable(r,"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")},tQ.parsePropertyValue=function(e,t,n,r,i,s,a,o){(n||r)&&this.type===tm.colon&&this.unexpected(),this.eat(tm.colon)?(e.value=t?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,a),e.kind="init"):this.options.ecmaVersion>=6&&this.type===tm.parenL?(t&&this.unexpected(),e.method=!0,e.value=this.parseMethod(n,r),e.kind="init"):t||o||!(this.options.ecmaVersion>=5)||e.computed||"Identifier"!==e.key.type||"get"!==e.key.name&&"set"!==e.key.name||this.type===tm.comma||this.type===tm.braceR||this.type===tm.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=i),t?e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key)):this.type===tm.eq&&a?(a.shorthandAssign<0&&(a.shorthandAssign=this.start),e.value=this.parseMaybeDefault(i,s,this.copyNode(e.key))):e.value=this.copyNode(e.key),e.kind="init",e.shorthand=!0):this.unexpected():((n||r)&&this.unexpected(),this.parseGetterSetter(e))},tQ.parsePropertyName=function(e){if(this.options.ecmaVersion>=6)if(this.eat(tm.bracketL))return e.computed=!0,e.key=this.parseMaybeAssign(),this.expect(tm.bracketR),e.key;else e.computed=!1;return e.key=this.type===tm.num||this.type===tm.string?this.parseExprAtom():this.parseIdent("never"!==this.options.allowReserved)},tQ.initFunction=function(e){e.id=null,this.options.ecmaVersion>=6&&(e.generator=e.expression=!1),this.options.ecmaVersion>=8&&(e.async=!1)},tQ.parseMethod=function(e,t,n){var r=this.startNode(),i=this.yieldPos,s=this.awaitPos,a=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|tD(t,r.generator)|128*!!n),this.expect(tm.parenL),r.params=this.parseBindingList(tm.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(r,!1,!0,!1),this.yieldPos=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(r,"FunctionExpression")},tQ.parseArrowExpression=function(e,t,n,r){var i=this.yieldPos,s=this.awaitPos,a=this.awaitIdentPos;return this.enterScope(16|tD(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=i,this.awaitPos=s,this.awaitIdentPos=a,this.finishNode(e,"ArrowFunctionExpression")},tQ.parseFunctionBody=function(e,t,n,r){var i=t&&this.type!==tm.braceL,s=this.strict,a=!1;if(i)e.body=this.parseMaybeAssign(r),e.expression=!0,this.checkParams(e,!1);else{var o=this.options.ecmaVersion>=7&&!this.isSimpleParamList(e.params);(!s||o)&&(a=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=[],a&&(this.strict=!0),this.checkParams(e,!s&&!a&&!t&&!n&&this.isSimpleParamList(e.params)),this.strict&&e.id&&this.checkLValSimple(e.id,5),e.body=this.parseBlock(!1,void 0,a&&!s),e.expression=!1,this.adaptDirectivePrologue(e.body.body),this.labels=l}this.exitScope()},tQ.isSimpleParamList=function(e){for(var t=0;t<e.length;t+=1)if("Identifier"!==e[t].type)return!1;return!0},tQ.checkParams=function(e,t){for(var n=Object.create(null),r=0,i=e.params;r<i.length;r+=1){var s=i[r];this.checkLValInnerPattern(s,1,t?null:n)}},tQ.parseExprList=function(e,t,n,r){for(var i=[],s=!0;!this.eat(e);){if(s)s=!1;else if(this.expect(tm.comma),t&&this.afterTrailingComma(e))break;var a=void 0;n&&this.type===tm.comma?a=null:this.type===tm.ellipsis?(a=this.parseSpread(r),r&&this.type===tm.comma&&r.trailingComma<0&&(r.trailingComma=this.start)):a=this.parseMaybeAssign(!1,r),i.push(a)}return i},tQ.checkUnreserved=function(e){var t=e.start,n=e.end,r=e.name;this.inGenerator&&"yield"===r&&this.raiseRecoverable(t,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&"await"===r&&this.raiseRecoverable(t,"Cannot use 'await' as identifier inside an async function"),259&this.currentThisScope().flags||"arguments"!==r||this.raiseRecoverable(t,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&("arguments"===r||"await"===r)&&this.raise(t,"Cannot use "+r+" in class static initialization block"),this.keywords.test(r)&&this.raise(t,"Unexpected keyword '"+r+"'"),(!(this.options.ecmaVersion<6)||-1===this.input.slice(t,n).indexOf("\\"))&&(this.strict?this.reservedWordsStrict:this.reservedWords).test(r)&&(this.inAsync||"await"!==r||this.raiseRecoverable(t,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(t,"The keyword '"+r+"' is reserved"))},tQ.parseIdent=function(e){var t=this.parseIdentNode();return this.next(!!e),this.finishNode(t,"Identifier"),!e&&(this.checkUnreserved(t),"await"!==t.name||this.awaitIdentPos||(this.awaitIdentPos=t.start)),t},tQ.parseIdentNode=function(){var e=this.startNode();return this.type===tm.name?e.name=this.value:this.type.keyword?(e.name=this.type.keyword,("class"===e.name||"function"===e.name)&&(this.lastTokEnd!==this.lastTokStart+1||46!==this.input.charCodeAt(this.lastTokStart))&&this.context.pop(),this.type=tm.name):this.unexpected(),e},tQ.parsePrivateIdent=function(){var e=this.startNode();return this.type===tm.privateId?e.name=this.value:this.unexpected(),this.next(),this.finishNode(e,"PrivateIdentifier"),this.options.checkPrivateFields&&(0===this.privateNameStack.length?this.raise(e.start,"Private field '#"+e.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(e)),e},tQ.parseYield=function(e){this.yieldPos||(this.yieldPos=this.start);var t=this.startNode();return this.next(),this.type===tm.semi||this.canInsertSemicolon()||this.type!==tm.star&&!this.type.startsExpr?(t.delegate=!1,t.argument=null):(t.delegate=this.eat(tm.star),t.argument=this.parseMaybeAssign(e)),this.finishNode(t,"YieldExpression")},tQ.parseAwait=function(e){this.awaitPos||(this.awaitPos=this.start);var t=this.startNode();return this.next(),t.argument=this.parseMaybeUnary(null,!0,!1,e),this.finishNode(t,"AwaitExpression")};var t0=tj.prototype;t0.raise=function(e,t){var n=tN(this.input,e);t+=" ("+n.line+":"+n.column+")",this.sourceFile&&(t+=" in "+this.sourceFile);var r=SyntaxError(t);throw r.pos=e,r.loc=n,r.raisedAt=this.pos,r},t0.raiseRecoverable=t0.raise,t0.curPosition=function(){if(this.options.locations)return new tP(this.curLine,this.pos-this.lineStart)};var t1=tj.prototype,t2=function(e){this.flags=e,this.var=[],this.lexical=[],this.functions=[]};t1.enterScope=function(e){this.scopeStack.push(new t2(e))},t1.exitScope=function(){this.scopeStack.pop()},t1.treatFunctionsAsVarInScope=function(e){return 2&e.flags||!this.inModule&&1&e.flags},t1.declareName=function(e,t,n){var r=!1;if(2===t){var i=this.currentScope();r=i.lexical.indexOf(e)>-1||i.functions.indexOf(e)>-1||i.var.indexOf(e)>-1,i.lexical.push(e),this.inModule&&1&i.flags&&delete this.undefinedExports[e]}else if(4===t)this.currentScope().lexical.push(e);else if(3===t){var s=this.currentScope();r=this.treatFunctionsAsVar?s.lexical.indexOf(e)>-1:s.lexical.indexOf(e)>-1||s.var.indexOf(e)>-1,s.functions.push(e)}else for(var a=this.scopeStack.length-1;a>=0;--a){var o=this.scopeStack[a];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")},t1.checkLocalExport=function(e){-1===this.scopeStack[0].lexical.indexOf(e.name)&&-1===this.scopeStack[0].var.indexOf(e.name)&&(this.undefinedExports[e.name]=e)},t1.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},t1.currentVarScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags)return t}},t1.currentThisScope=function(){for(var e=this.scopeStack.length-1;;e--){var t=this.scopeStack[e];if(771&t.flags&&!(16&t.flags))return t}};var t3=function(e,t,n){this.type="",this.start=t,this.end=0,e.options.locations&&(this.loc=new tI(e,n)),e.options.directSourceFile&&(this.sourceFile=e.options.directSourceFile),e.options.ranges&&(this.range=[t,0])},t4=tj.prototype;function t6(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}t4.startNode=function(){return new t3(this,this.start,this.startLoc)},t4.startNodeAt=function(e,t){return new t3(this,e,t)},t4.finishNode=function(e,t){return t6.call(this,e,t,this.lastTokEnd,this.lastTokEndLoc)},t4.finishNodeAt=function(e,t,n,r){return t6.call(this,e,t,n,r)},t4.copyNode=function(e){var t=new t3(this,e.start,this.startLoc);for(var n in e)t[n]=e[n];return t};for(var t5="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",t9=t5+" Extended_Pictographic",t8=t9+" EBase EComp EMod EPres ExtPict",t7={9:t5,10:t9,11:t9,12:t8,13:t8,14:t8},ne={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"},nt="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",nn="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",nr=nn+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",ni=nr+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",ns=ni+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",na=ns+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",no={9:nn,10:nr,11:ni,12:ns,13:na,14:na+" Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz"},nl={},np=0,nc=[9,10,11,12,13,14];np<nc.length;np+=1)!function(e){var t=nl[e]={binary:tC(t7[e]+" "+nt),binaryOfStrings:tC(ne[e]),nonBinary:{General_Category:tC(nt),Script:tC(no[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}(nc[np]);var nu=tj.prototype,nf=function(e,t){this.parent=e,this.base=t||this};nf.prototype.separatedFrom=function(e){for(var t=this;t;t=t.parent)for(var n=e;n;n=n.parent)if(t.base===n.base&&t!==n)return!0;return!1},nf.prototype.sibling=function(){return new nf(this.parent,this.base)};var nd=function(e){this.parser=e,this.validFlags="gim"+(e.options.ecmaVersion>=6?"uy":"")+(e.options.ecmaVersion>=9?"s":"")+(e.options.ecmaVersion>=13?"d":"")+(e.options.ecmaVersion>=15?"v":""),this.unicodeProperties=nl[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 nm(e){return 36===e||e>=40&&e<=43||46===e||63===e||e>=91&&e<=94||e>=123&&e<=125}function nh(e){return e>=65&&e<=90||e>=97&&e<=122}function ng(e){return nh(e)||95===e}function ny(e){return e>=48&&e<=57}function nx(e){return e>=48&&e<=57||e>=65&&e<=70||e>=97&&e<=102}function nT(e){return e>=65&&e<=70?10+(e-65):e>=97&&e<=102?10+(e-97):e-48}function nS(e){return e>=48&&e<=55}nd.prototype.reset=function(e,t,n){var r=-1!==n.indexOf("v"),i=-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=i&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=i&&this.parser.options.ecmaVersion>=9)},nd.prototype.raise=function(e){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+e)},nd.prototype.at=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return -1;var i=n.charCodeAt(e);if(!(t||this.switchU)||i<=55295||i>=57344||e+1>=r)return i;var s=n.charCodeAt(e+1);return s>=56320&&s<=57343?(i<<10)+s-0x35fdc00:i},nd.prototype.nextIndex=function(e,t){void 0===t&&(t=!1);var n=this.source,r=n.length;if(e>=r)return r;var i,s=n.charCodeAt(e);return!(t||this.switchU)||s<=55295||s>=57344||e+1>=r||(i=n.charCodeAt(e+1))<56320||i>57343?e+1:e+2},nd.prototype.current=function(e){return void 0===e&&(e=!1),this.at(this.pos,e)},nd.prototype.lookahead=function(e){return void 0===e&&(e=!1),this.at(this.nextIndex(this.pos,e),e)},nd.prototype.advance=function(e){void 0===e&&(e=!1),this.pos=this.nextIndex(this.pos,e)},nd.prototype.eat=function(e,t){return void 0===t&&(t=!1),this.current(t)===e&&(this.advance(t),!0)},nd.prototype.eatChars=function(e,t){void 0===t&&(t=!1);for(var n=this.pos,r=0;r<e.length;r+=1){var i=e[r],s=this.at(n,t);if(-1===s||s!==i)return!1;n=this.nextIndex(n,t)}return this.pos=n,!0},nu.validateRegExpFlags=function(e){for(var t=e.validFlags,n=e.flags,r=!1,i=!1,s=0;s<n.length;s++){var a=n.charAt(s);-1===t.indexOf(a)&&this.raise(e.start,"Invalid regular expression flag"),n.indexOf(a,s+1)>-1&&this.raise(e.start,"Duplicate regular expression flag"),"u"===a&&(r=!0),"v"===a&&(i=!0)}this.options.ecmaVersion>=15&&r&&i&&this.raise(e.start,"Invalid regular expression flag")},nu.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))},nu.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<n.length;t+=1){var r=n[t];e.groupNames[r]||e.raise("Invalid named capture referenced")}},nu.regexp_disjunction=function(e){var t=this.options.ecmaVersion>=16;for(t&&(e.branchID=new nf(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")},nu.regexp_alternative=function(e){for(;e.pos<e.source.length&&this.regexp_eatTerm(e););},nu.regexp_eatTerm=function(e){return this.regexp_eatAssertion(e)?(e.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(e)&&e.switchU&&e.raise("Invalid quantifier"),!0):(e.switchU?!!this.regexp_eatAtom(e):!!this.regexp_eatExtendedAtom(e))&&(this.regexp_eatQuantifier(e),!0)},nu.regexp_eatAssertion=function(e){var t=e.pos;if(e.lastAssertionIsQuantifiable=!1,e.eat(94)||e.eat(36))return!0;if(e.eat(92)){if(e.eat(66)||e.eat(98))return!0;e.pos=t}if(e.eat(40)&&e.eat(63)){var n=!1;if(this.options.ecmaVersion>=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},nu.regexp_eatQuantifier=function(e,t){return void 0===t&&(t=!1),!!this.regexp_eatQuantifierPrefix(e,t)&&(e.eat(63),!0)},nu.regexp_eatQuantifierPrefix=function(e,t){return e.eat(42)||e.eat(43)||e.eat(63)||this.regexp_eatBracedQuantifier(e,t)},nu.regexp_eatBracedQuantifier=function(e,t){var n=e.pos;if(e.eat(123)){var r=0,i=-1;if(this.regexp_eatDecimalDigits(e)&&(r=e.lastIntValue,e.eat(44)&&this.regexp_eatDecimalDigits(e)&&(i=e.lastIntValue),e.eat(125)))return -1!==i&&i<r&&!t&&e.raise("numbers out of order in {} quantifier"),!0;e.switchU&&!t&&e.raise("Incomplete quantifier"),e.pos=n}return!1},nu.regexp_eatAtom=function(e){return this.regexp_eatPatternCharacters(e)||e.eat(46)||this.regexp_eatReverseSolidusAtomEscape(e)||this.regexp_eatCharacterClass(e)||this.regexp_eatUncapturingGroup(e)||this.regexp_eatCapturingGroup(e)},nu.regexp_eatReverseSolidusAtomEscape=function(e){var t=e.pos;if(e.eat(92)){if(this.regexp_eatAtomEscape(e))return!0;e.pos=t}return!1},nu.regexp_eatUncapturingGroup=function(e){var t=e.pos;if(e.eat(40)){if(e.eat(63)){if(this.options.ecmaVersion>=16){var n=this.regexp_eatModifiers(e),r=e.eat(45);if(n||r){for(var i=0;i<n.length;i++){var s=n.charAt(i);n.indexOf(s,i+1)>-1&&e.raise("Duplicate regular expression modifiers")}if(r){var a=this.regexp_eatModifiers(e);n||a||58!==e.current()||e.raise("Invalid regular expression modifiers");for(var o=0;o<a.length;o++){var l=a.charAt(o);(a.indexOf(l,o+1)>-1||n.indexOf(l)>-1)&&e.raise("Duplicate regular expression modifiers")}}}}if(e.eat(58)){if(this.regexp_disjunction(e),e.eat(41))return!0;e.raise("Unterminated group")}}e.pos=t}return!1},nu.regexp_eatCapturingGroup=function(e){if(e.eat(40)){if(this.options.ecmaVersion>=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},nu.regexp_eatModifiers=function(e){for(var t,n="",r=0;-1!==(r=e.current())&&(105===(t=r)||109===t||115===t);)n+=t_(r),e.advance();return n},nu.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)},nu.regexp_eatInvalidBracedQuantifier=function(e){return this.regexp_eatBracedQuantifier(e,!0)&&e.raise("Nothing to repeat"),!1},nu.regexp_eatSyntaxCharacter=function(e){var t=e.current();return!!nm(t)&&(e.lastIntValue=t,e.advance(),!0)},nu.regexp_eatPatternCharacters=function(e){for(var t=e.pos,n=0;-1!==(n=e.current())&&!nm(n);)e.advance();return e.pos!==t},nu.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)},nu.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;r<n.length;r+=1)n[r].separatedFrom(e.branchID)||e.raise("Duplicate capture group name");else e.raise("Duplicate capture group name");t?(n||(e.groupNames[e.lastStringValue]=[])).push(e.branchID):e.groupNames[e.lastStringValue]=!0}},nu.regexp_eatGroupName=function(e){if(e.lastStringValue="",e.eat(60)){if(this.regexp_eatRegExpIdentifierName(e)&&e.eat(62))return!0;e.raise("Invalid capture group name")}return!1},nu.regexp_eatRegExpIdentifierName=function(e){if(e.lastStringValue="",this.regexp_eatRegExpIdentifierStart(e)){for(e.lastStringValue+=t_(e.lastIntValue);this.regexp_eatRegExpIdentifierPart(e);)e.lastStringValue+=t_(e.lastIntValue);return!0}return!1},nu.regexp_eatRegExpIdentifierStart=function(e){var t,n=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),ta(t=i,!0)||36===t||95===t)?(e.lastIntValue=i,!0):(e.pos=n,!1)},nu.regexp_eatRegExpIdentifierPart=function(e){var t,n=e.pos,r=this.options.ecmaVersion>=11,i=e.current(r);return(e.advance(r),92===i&&this.regexp_eatRegExpUnicodeEscapeSequence(e,r)&&(i=e.lastIntValue),to(t=i,!0)||36===t||95===t||8204===t||8205===t)?(e.lastIntValue=i,!0):(e.pos=n,!1)},nu.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)},nu.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},nu.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},nu.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)},nu.regexp_eatCControlLetter=function(e){var t=e.pos;if(e.eat(99)){if(this.regexp_eatControlLetter(e))return!0;e.pos=t}return!1},nu.regexp_eatZero=function(e){return!(48!==e.current()||ny(e.lookahead()))&&(e.lastIntValue=0,e.advance(),!0)},nu.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)},nu.regexp_eatControlLetter=function(e){var t=e.current();return!!nh(t)&&(e.lastIntValue=t%32,e.advance(),!0)},nu.regexp_eatRegExpUnicodeEscapeSequence=function(e,t){void 0===t&&(t=!1);var n=e.pos,r=t||e.switchU;if(e.eat(117)){if(this.regexp_eatFixedHexDigits(e,4)){var i,s=e.lastIntValue;if(r&&s>=55296&&s<=56319){var a=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=(s-55296)*1024+(o-56320)+65536,!0}e.pos=a,e.lastIntValue=s}return!0}if(r&&e.eat(123)&&this.regexp_eatHexDigits(e)&&e.eat(125)&&(i=e.lastIntValue)>=0&&i<=1114111)return!0;r&&e.raise("Invalid unicode escape"),e.pos=n}return!1},nu.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)},nu.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},nu.regexp_eatCharacterClassEscape=function(e){var t,n,r=e.current();if(100===(t=r)||68===t||115===t||83===t||119===t||87===t)return e.lastIntValue=-1,e.advance(),1;var i=!1;if(e.switchU&&this.options.ecmaVersion>=9&&((i=80===r)||112===r)){if(e.lastIntValue=-1,e.advance(),e.eat(123)&&(n=this.regexp_eatUnicodePropertyValueExpression(e))&&e.eat(125))return i&&2===n&&e.raise("Invalid property name"),n;e.raise("Invalid property name")}return 0},nu.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 i=e.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(e,i)}return 0},nu.regexp_validateUnicodePropertyNameAndValue=function(e,t,n){tv(e.unicodeProperties.nonBinary,t)||e.raise("Invalid property name"),e.unicodeProperties.nonBinary[t].test(n)||e.raise("Invalid property value")},nu.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")},nu.regexp_eatUnicodePropertyName=function(e){var t=0;for(e.lastStringValue="";ng(t=e.current());)e.lastStringValue+=t_(t),e.advance();return""!==e.lastStringValue},nu.regexp_eatUnicodePropertyValue=function(e){var t,n=0;for(e.lastStringValue="";ng(t=n=e.current())||ny(t);)e.lastStringValue+=t_(n),e.advance();return""!==e.lastStringValue},nu.regexp_eatLoneUnicodePropertyNameOrValue=function(e){return this.regexp_eatUnicodePropertyValue(e)},nu.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},nu.regexp_classContents=function(e){return 93===e.current()?1:e.switchV?this.regexp_classSetExpression(e):(this.regexp_nonEmptyClassRanges(e),1)},nu.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")}}},nu.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||nS(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)},nu.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)},nu.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]);){if(38!==e.current()&&(t=this.regexp_eatClassSetOperand(e))){2!==t&&(n=1);continue}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)}},nu.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},nu.regexp_eatClassSetOperand=function(e){return this.regexp_eatClassSetCharacter(e)?1:this.regexp_eatClassStringDisjunction(e)||this.regexp_eatNestedClass(e)},nu.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 i=this.regexp_eatCharacterClassEscape(e);if(i)return i;e.pos=t}return null},nu.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},nu.regexp_classStringDisjunctionContents=function(e){for(var t=this.regexp_classString(e);e.eat(124);)2===this.regexp_classString(e)&&(t=2);return t},nu.regexp_classString=function(e){for(var t=0;this.regexp_eatClassSetCharacter(e);)t++;return 1===t?1:2},nu.regexp_eatClassSetCharacter=function(e){var t,n,r=e.pos;if(e.eat(92))return!!(this.regexp_eatCharacterEscape(e)||this.regexp_eatClassSetReservedPunctuator(e))||(e.eat(98)?(e.lastIntValue=8,!0):(e.pos=r,!1));var i=e.current();return!(i<0||i===e.lookahead()&&(33===(t=i)||t>=35&&t<=38||t>=42&&t<=44||46===t||t>=58&&t<=64||94===t||96===t||126===t)||40===(n=i)||41===n||45===n||47===n||n>=91&&n<=93||n>=123&&n<=125)&&(e.advance(),e.lastIntValue=i,!0)},nu.regexp_eatClassSetReservedPunctuator=function(e){var t,n=e.current();return!!(33===(t=n)||35===t||37===t||38===t||44===t||45===t||t>=58&&t<=62||64===t||96===t||126===t)&&(e.lastIntValue=n,e.advance(),!0)},nu.regexp_eatClassControlLetter=function(e){var t=e.current();return(!!ny(t)||95===t)&&(e.lastIntValue=t%32,e.advance(),!0)},nu.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},nu.regexp_eatDecimalDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;ny(n=e.current());)e.lastIntValue=10*e.lastIntValue+(n-48),e.advance();return e.pos!==t},nu.regexp_eatHexDigits=function(e){var t=e.pos,n=0;for(e.lastIntValue=0;nx(n=e.current());)e.lastIntValue=16*e.lastIntValue+nT(n),e.advance();return e.pos!==t},nu.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},nu.regexp_eatOctalDigit=function(e){var t=e.current();return nS(t)?(e.lastIntValue=t-48,e.advance(),!0):(e.lastIntValue=0,!1)},nu.regexp_eatFixedHexDigits=function(e,t){var n=e.pos;e.lastIntValue=0;for(var r=0;r<t;++r){var i=e.current();if(!nx(i))return e.pos=n,!1;e.lastIntValue=16*e.lastIntValue+nT(i),e.advance()}return!0};var nb=function(e){this.type=e.type,this.value=e.value,this.start=e.start,this.end=e.end,e.options.locations&&(this.loc=new tI(e,e.startLoc,e.endLoc)),e.options.ranges&&(this.range=[e.start,e.end])},nE=tj.prototype;function nk(e){return"function"!=typeof BigInt?null:BigInt(e.replace(/_/g,""))}nE.next=function(e){!e&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new nb(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},nE.getToken=function(){return this.next(),new nb(this)},"u">typeof Symbol&&(nE[Symbol.iterator]=function(){var e=this;return{next:function(){var t=e.getToken();return{done:t.type===tm.eof,value:t}}}}),nE.nextToken=function(){var e=this.curContext();return(e&&e.preserveSpace||this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)?this.finishToken(tm.eof):e.override?e.override(this):void this.readToken(this.fullCharCodeAtPos())},nE.readToken=function(e){return ta(e,this.options.ecmaVersion>=6)||92===e?this.readWord():this.getTokenFromCode(e)},nE.fullCharCodeAt=function(e){var t=this.input.charCodeAt(e);if(t<=55295||t>=56320)return t;var n=this.input.charCodeAt(e+1);return n<=56319||n>=57344?t:(t<<10)+n-0x35fdc00},nE.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},nE.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,i=t;(r=tx(this.input,i,this.pos))>-1;)++this.curLine,i=this.lineStart=r;this.options.onComment&&this.options.onComment(!0,this.input.slice(t+2,n),t,this.pos,e,this.curPosition())},nE.skipLineComment=function(e){for(var t=this.pos,n=this.options.onComment&&this.curPosition(),r=this.input.charCodeAt(this.pos+=e);this.pos<this.input.length&&!ty(r);)r=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(t+e,this.pos),t,this.pos,n,this.curPosition())},nE.skipSpace=function(){e:for(;this.pos<this.input.length;){var e=this.input.charCodeAt(this.pos);switch(e){case 32:case 160:++this.pos;break;case 13:10===this.input.charCodeAt(this.pos+1)&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(e>8&&e<14||e>=5760&&tT.test(String.fromCharCode(e)))++this.pos;else break e}}},nE.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)},nE.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(tm.ellipsis)):(++this.pos,this.finishToken(tm.dot))},nE.readToken_slash=function(){var e=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):61===e?this.finishOp(tm.assign,2):this.finishOp(tm.slash,1)},nE.readToken_mult_modulo_exp=function(e){var t=this.input.charCodeAt(this.pos+1),n=1,r=42===e?tm.star:tm.modulo;return(this.options.ecmaVersion>=7&&42===e&&42===t&&(++n,r=tm.starstar,t=this.input.charCodeAt(this.pos+2)),61===t)?this.finishOp(tm.assign,n+1):this.finishOp(r,n)},nE.readToken_pipe_amp=function(e){var t=this.input.charCodeAt(this.pos+1);if(t===e)return this.options.ecmaVersion>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(tm.assign,3):this.finishOp(124===e?tm.logicalOR:tm.logicalAND,2);return 61===t?this.finishOp(tm.assign,2):this.finishOp(124===e?tm.bitwiseOR:tm.bitwiseAND,1)},nE.readToken_caret=function(){return 61===this.input.charCodeAt(this.pos+1)?this.finishOp(tm.assign,2):this.finishOp(tm.bitwiseXOR,1)},nE.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||th.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(tm.incDec,2):61===t?this.finishOp(tm.assign,2):this.finishOp(tm.plusMin,1)},nE.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(tm.assign,n+1):this.finishOp(tm.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(tm.relational,n)):(this.skipLineComment(4),this.skipSpace(),this.nextToken())},nE.readToken_eq_excl=function(e){var t=this.input.charCodeAt(this.pos+1);return 61===t?this.finishOp(tm.equality,61===this.input.charCodeAt(this.pos+2)?3:2):61===e&&62===t&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(tm.arrow)):this.finishOp(61===e?tm.eq:tm.prefix,1)},nE.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(tm.questionDot,2)}if(63===t)return e>=12&&61===this.input.charCodeAt(this.pos+2)?this.finishOp(tm.assign,3):this.finishOp(tm.coalesce,2)}return this.finishOp(tm.question,1)},nE.readToken_numberSign=function(){var e=this.options.ecmaVersion,t=35;if(e>=13&&(++this.pos,ta(t=this.fullCharCodeAtPos(),!0)||92===t))return this.finishToken(tm.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+t_(t)+"'")},nE.getTokenFromCode=function(e){switch(e){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(tm.parenL);case 41:return++this.pos,this.finishToken(tm.parenR);case 59:return++this.pos,this.finishToken(tm.semi);case 44:return++this.pos,this.finishToken(tm.comma);case 91:return++this.pos,this.finishToken(tm.bracketL);case 93:return++this.pos,this.finishToken(tm.bracketR);case 123:return++this.pos,this.finishToken(tm.braceL);case 125:return++this.pos,this.finishToken(tm.braceR);case 58:return++this.pos,this.finishToken(tm.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(tm.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(tm.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+t_(e)+"'")},nE.finishOp=function(e,t){var n=this.input.slice(this.pos,this.pos+t);return this.pos+=t,this.finishToken(e,n)},nE.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(th.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 i=this.input.slice(n,this.pos);++this.pos;var s=this.pos,a=this.readWord1();this.containsEsc&&this.unexpected(s);var o=this.regexpState||(this.regexpState=new nd(this));o.reset(n,i,a),this.validateRegExpFlags(o),this.validateRegExpPattern(o);var l=null;try{l=new RegExp(i,a)}catch(e){}return this.finishToken(tm.regexp,{pattern:i,flags:a,value:l})},nE.readInt=function(e,t,n){for(var r=this.options.ecmaVersion>=12&&void 0===t,i=n&&48===this.input.charCodeAt(this.pos),s=this.pos,a=0,o=0,l=0,p=null==t?1/0:t;l<p;++l,++this.pos){var c=this.input.charCodeAt(this.pos),u=void 0;if(r&&95===c){i&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),95===o&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),0===l&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),o=c;continue}if((u=c>=97?c-97+10:c>=65?c-65+10:c>=48&&c<=57?c-48:1/0)>=e)break;o=c,a=a*e+u}return(r&&95===o&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===s||null!=t&&this.pos-s!==t)?null:a},nE.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=nk(this.input.slice(t,this.pos)),++this.pos):ta(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(tm.num,n)},nE.readNumber=function(e){var t,n=this.pos;e||null!==this.readInt(10,void 0,!0)||this.raise(n,"Invalid number");var r=this.pos-n>=2&&48===this.input.charCodeAt(n);r&&this.strict&&this.raise(n,"Invalid number");var i=this.input.charCodeAt(this.pos);if(!r&&!e&&this.options.ecmaVersion>=11&&110===i){var s=nk(this.input.slice(n,this.pos));return++this.pos,ta(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(tm.num,s)}r&&/[89]/.test(this.input.slice(n,this.pos))&&(r=!1),46!==i||r||(++this.pos,this.readInt(10),i=this.input.charCodeAt(this.pos)),69!==i&&101!==i||r||((43===(i=this.input.charCodeAt(++this.pos))||45===i)&&++this.pos,null===this.readInt(10)&&this.raise(n,"Invalid number")),ta(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var a=(t=this.input.slice(n,this.pos),r?parseInt(t,8):parseFloat(t.replace(/_/g,"")));return this.finishToken(tm.num,a)},nE.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},nE.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)):(ty(r)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return t+=this.input.slice(n,this.pos++),this.finishToken(tm.string,t)};var nv={};nE.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(e){if(e===nv)this.readInvalidTemplateToken();else throw e}this.inTemplateElement=!1},nE.invalidStringToken=function(e,t){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw nv;this.raise(e,t)},nE.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)){if(this.pos===this.start&&(this.type===tm.template||this.type===tm.invalidTemplate))if(36===n)return this.pos+=2,this.finishToken(tm.dollarBraceL);else return++this.pos,this.finishToken(tm.backQuote);return e+=this.input.slice(t,this.pos),this.finishToken(tm.template,e)}if(92===n)e+=this.input.slice(t,this.pos),e+=this.readEscapedChar(!0),t=this.pos;else if(ty(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}},nE.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if("{"!==this.input[this.pos+1])break;case"`":return this.finishToken(tm.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":"\n"===this.input[this.pos+1]&&++this.pos;case"\n":case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1}this.raise(this.start,"Unterminated template")},nE.readEscapedChar=function(e){var t=this.input.charCodeAt(++this.pos);switch(++this.pos,t){case 110:return"\n";case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return t_(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:10===this.input.charCodeAt(this.pos)&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),e){var n=this.pos-1;this.invalidStringToken(n,"Invalid escape sequence in template string")}default:if(t>=48&&t<=55){var r=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],i=parseInt(r,8);return i>255&&(i=parseInt(r=r.slice(0,-1),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(i)}if(ty(t))return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";return String.fromCharCode(t)}},nE.readHexChar=function(e){var t=this.pos,n=this.readInt(16,e);return null===n&&this.invalidStringToken(t,"Bad character escape sequence"),n},nE.readWord1=function(){this.containsEsc=!1;for(var e="",t=!0,n=this.pos,r=this.options.ecmaVersion>=6;this.pos<this.input.length;){var i=this.fullCharCodeAtPos();if(to(i,r))this.pos+=i<=65535?1:2;else if(92===i){this.containsEsc=!0,e+=this.input.slice(n,this.pos);var s=this.pos;117!==this.input.charCodeAt(++this.pos)&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var a=this.readCodePoint();(t?ta:to)(a,r)||this.invalidStringToken(s,"Invalid Unicode escape"),e+=t_(a),n=this.pos}else break;t=!1}return e+this.input.slice(n,this.pos)},nE.readWord=function(){var e=this.readWord1(),t=tm.name;return this.keywords.test(e)&&(t=tf[e]),this.finishToken(t,e)};var nA="8.16.0";tj.acorn={Parser:tj,version:nA,defaultOptions:tL,Position:tP,SourceLocation:tI,getLineInfo:tN,Node:t3,TokenType:tl,tokTypes:tm,keywordTypes:tf,TokContext:tH,tokContexts:tz,isIdentifierChar:to,isIdentifierStart:ta,Token:nb,isNewLine:ty,lineBreak:th,lineBreakG:tg,nonASCIIwhitespace:tT};var nw=Object.freeze({__proto__:null,Node:t3,Parser:tj,Position:tP,SourceLocation:tI,TokContext:tH,Token:nb,TokenType:tl,defaultOptions:tL,getLineInfo:tN,isIdentifierChar:to,isIdentifierStart:ta,isNewLine:ty,keywordTypes:tf,lineBreak:th,lineBreakG:tg,nonASCIIwhitespace:tT,parse:function(e,t){return tj.parse(e,t)},parseExpressionAt:function(e,t,n){return tj.parseExpressionAt(e,t,n)},tokContexts:tz,tokTypes:tm,tokenizer:function(e,t){return tj.tokenizer(e,t)},version:nA}),nC={exports:{}},n_=_(nw),nO=C((d||(d=1,!function(e){let t=f?u:(f=1,u={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xa0",iexcl:"\xa1",cent:"\xa2",pound:"\xa3",curren:"\xa4",yen:"\xa5",brvbar:"\xa6",sect:"\xa7",uml:"\xa8",copy:"\xa9",ordf:"\xaa",laquo:"\xab",not:"\xac",shy:"\xad",reg:"\xae",macr:"\xaf",deg:"\xb0",plusmn:"\xb1",sup2:"\xb2",sup3:"\xb3",acute:"\xb4",micro:"\xb5",para:"\xb6",middot:"\xb7",cedil:"\xb8",sup1:"\xb9",ordm:"\xba",raquo:"\xbb",frac14:"\xbc",frac12:"\xbd",frac34:"\xbe",iquest:"\xbf",Agrave:"\xc0",Aacute:"\xc1",Acirc:"\xc2",Atilde:"\xc3",Auml:"\xc4",Aring:"\xc5",AElig:"\xc6",Ccedil:"\xc7",Egrave:"\xc8",Eacute:"\xc9",Ecirc:"\xca",Euml:"\xcb",Igrave:"\xcc",Iacute:"\xcd",Icirc:"\xce",Iuml:"\xcf",ETH:"\xd0",Ntilde:"\xd1",Ograve:"\xd2",Oacute:"\xd3",Ocirc:"\xd4",Otilde:"\xd5",Ouml:"\xd6",times:"\xd7",Oslash:"\xd8",Ugrave:"\xd9",Uacute:"\xda",Ucirc:"\xdb",Uuml:"\xdc",Yacute:"\xdd",THORN:"\xde",szlig:"\xdf",agrave:"\xe0",aacute:"\xe1",acirc:"\xe2",atilde:"\xe3",auml:"\xe4",aring:"\xe5",aelig:"\xe6",ccedil:"\xe7",egrave:"\xe8",eacute:"\xe9",ecirc:"\xea",euml:"\xeb",igrave:"\xec",iacute:"\xed",icirc:"\xee",iuml:"\xef",eth:"\xf0",ntilde:"\xf1",ograve:"\xf2",oacute:"\xf3",ocirc:"\xf4",otilde:"\xf5",ouml:"\xf6",divide:"\xf7",oslash:"\xf8",ugrave:"\xf9",uacute:"\xfa",ucirc:"\xfb",uuml:"\xfc",yacute:"\xfd",thorn:"\xfe",yuml:"\xff",OElig:"Œ",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:"♦"}),n=/^[\da-fA-F]+$/,r=/^\d+$/,i=new WeakMap;function s(e){e=e.Parser.acorn||e;let t=i.get(e);if(!t){let n=e.tokTypes,r=e.TokContext,s=e.TokenType,a=new r("<tag",!1),o=new r("</tag",!1),l=new r("<tag>...</tag>",!0,!0),p={jsxName:new s("jsxName"),jsxText:new s("jsxText",{beforeExpr:!0}),jsxTagStart:new s("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new s("jsxTagEnd")};p.jsxTagStart.updateContext=function(){this.context.push(l),this.context.push(a),this.exprAllowed=!1},p.jsxTagEnd.updateContext=function(e){let t=this.context.pop();t===a&&e===n.slash||t===o?(this.context.pop(),this.exprAllowed=this.curContext()===l):this.exprAllowed=!0},t={tokContexts:{tc_oTag:a,tc_cTag:o,tc_expr:l},tokTypes:p},i.set(e,t)}return t}function a(e){return e?"JSXIdentifier"===e.type?e.name:"JSXNamespacedName"===e.type?e.namespace.name+":"+e.name.name:"JSXMemberExpression"===e.type?a(e.object)+"."+a(e.property):void 0:e}e.exports=function(e){return e=e||{},function(i){var o,l;let p,c,u,f,d,m,h,g,y,x,T;return o={allowNamespaces:!1!==e.allowNamespaces,allowNamespacedObjects:!!e.allowNamespacedObjects},l=i,c=s(p=l.acorn||n_),u=p.tokTypes,f=c.tokTypes,d=p.tokContexts,m=c.tokContexts.tc_oTag,h=c.tokContexts.tc_cTag,g=c.tokContexts.tc_expr,y=p.isNewLine,x=p.isIdentifierStart,T=p.isIdentifierChar,class extends l{static get acornJsx(){return c}jsx_readToken(){let e="",t=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let n=this.input.charCodeAt(this.pos);switch(n){case 60:case 123:if(this.pos===this.start){if(60===n&&this.exprAllowed)return++this.pos,this.finishToken(f.jsxTagStart);return this.getTokenFromCode(n)}return e+=this.input.slice(t,this.pos),this.finishToken(f.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?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:y(n)?(e+=this.input.slice(t,this.pos),e+=this.jsx_readNewLine(!0),t=this.pos):++this.pos}}}jsx_readNewLine(e){let 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}jsx_readString(e){let t="",n=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let 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):y(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(u.string,t)}jsx_readEntity(){let e="",i=0,s,a=this.input[this.pos];"&"!==a&&this.raise(this.pos,"Entity must start with an ampersand");let o=++this.pos;for(;this.pos<this.input.length&&i++<10;){if(";"===(a=this.input[this.pos++])){"#"===e[0]?"x"===e[1]?(e=e.substr(2),n.test(e)&&(s=String.fromCharCode(parseInt(e,16)))):(e=e.substr(1),r.test(e)&&(s=String.fromCharCode(parseInt(e,10)))):s=t[e];break}e+=a}return s||(this.pos=o,"&")}jsx_readWord(){let e,t=this.pos;do e=this.input.charCodeAt(++this.pos);while(T(e)||45===e);return this.finishToken(f.jsxName,this.input.slice(t,this.pos))}jsx_parseIdentifier(){let e=this.startNode();return this.type===f.jsxName?e.name=this.value:this.type.keyword?e.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(e,"JSXIdentifier")}jsx_parseNamespacedName(){let e=this.start,t=this.startLoc,n=this.jsx_parseIdentifier();if(!o.allowNamespaces||!this.eat(u.colon))return n;var r=this.startNodeAt(e,t);return r.namespace=n,r.name=this.jsx_parseIdentifier(),this.finishNode(r,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===f.jsxTagEnd)return"";let e=this.start,t=this.startLoc,n=this.jsx_parseNamespacedName();for(this.type!==u.dot||"JSXNamespacedName"!==n.type||o.allowNamespacedObjects||this.unexpected();this.eat(u.dot);){let r=this.startNodeAt(e,t);r.object=n,r.property=this.jsx_parseIdentifier(),n=this.finishNode(r,"JSXMemberExpression")}return n}jsx_parseAttributeValue(){switch(this.type){case u.braceL:let e=this.jsx_parseExpressionContainer();return"JSXEmptyExpression"===e.expression.type&&this.raise(e.start,"JSX attributes must only be assigned a non-empty expression"),e;case f.jsxTagStart:case u.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let e=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(e,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let e=this.startNode();return this.next(),e.expression=this.type===u.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(u.braceR),this.finishNode(e,"JSXExpressionContainer")}jsx_parseAttribute(){let e=this.startNode();return this.eat(u.braceL)?(this.expect(u.ellipsis),e.argument=this.parseMaybeAssign(),this.expect(u.braceR),this.finishNode(e,"JSXSpreadAttribute")):(e.name=this.jsx_parseNamespacedName(),e.value=this.eat(u.eq)?this.jsx_parseAttributeValue():null,this.finishNode(e,"JSXAttribute"))}jsx_parseOpeningElementAt(e,t){let n=this.startNodeAt(e,t);n.attributes=[];let r=this.jsx_parseElementName();for(r&&(n.name=r);this.type!==u.slash&&this.type!==f.jsxTagEnd;)n.attributes.push(this.jsx_parseAttribute());return n.selfClosing=this.eat(u.slash),this.expect(f.jsxTagEnd),this.finishNode(n,r?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(e,t){let n=this.startNodeAt(e,t),r=this.jsx_parseElementName();return r&&(n.name=r),this.expect(f.jsxTagEnd),this.finishNode(n,r?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(e,t){let n=this.startNodeAt(e,t),r=[],i=this.jsx_parseOpeningElementAt(e,t),s=null;if(!i.selfClosing){t:for(;;)switch(this.type){case f.jsxTagStart:if(e=this.start,t=this.startLoc,this.next(),this.eat(u.slash)){s=this.jsx_parseClosingElementAt(e,t);break t}r.push(this.jsx_parseElementAt(e,t));break;case f.jsxText:r.push(this.parseExprAtom());break;case u.braceL:r.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}a(s.name)!==a(i.name)&&this.raise(s.start,"Expected corresponding JSX closing tag for <"+a(i.name)+">")}let o=i.name?"Element":"Fragment";return n["opening"+o]=i,n["closing"+o]=s,n.children=r,this.type===u.relational&&"<"===this.value&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(n,"JSX"+o)}jsx_parseText(){let e=this.parseLiteral(this.value);return e.type="JSXText",e}jsx_parseElement(){let e=this.start,t=this.startLoc;return this.next(),this.jsx_parseElementAt(e,t)}parseExprAtom(e){return this.type===f.jsxText?this.jsx_parseText():this.type===f.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(e)}readToken(e){let t=this.curContext();if(t===g)return this.jsx_readToken();if(t===m||t===h){if(x(e))return this.jsx_readWord();if(62==e)return++this.pos,this.finishToken(f.jsxTagEnd);if((34===e||39===e)&&t==m)return this.jsx_readString(e)}return 60===e&&this.exprAllowed&&33!==this.input.charCodeAt(this.pos+1)?(++this.pos,this.finishToken(f.jsxTagStart)):super.readToken(e)}updateContext(e){if(this.type==u.braceL){var t=this.curContext();t==m?this.context.push(d.b_expr):t==g?this.context.push(d.b_tmpl):super.updateContext(e),this.exprAllowed=!0}else{if(this.type!==u.slash||e!==f.jsxTagStart)return super.updateContext(e);this.context.length-=2,this.context.push(h),this.exprAllowed=!1}}}}},Object.defineProperty(e.exports,"tokTypes",{get:function(){return s(n_).tokTypes},configurable:!0,enumerable:!0})}(nC)),nC.exports));let nP="Keyword",nI="JSXText";function nN(e,t){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=t}nN.prototype={constructor:nN,translate(e,t){let n=e.type,r=this._acornTokTypes;if(n===r.name)e.type="Identifier","static"===e.value&&(e.type=nP),t.ecmaVersion>5&&("yield"===e.value||"let"===e.value)&&(e.type=nP);else if(n===r.privateId)e.type="PrivateIdentifier";else if(n===r.semi||n===r.comma||n===r.parenL||n===r.parenR||n===r.braceL||n===r.braceR||n===r.dot||n===r.bracketL||n===r.colon||n===r.question||n===r.bracketR||n===r.ellipsis||n===r.arrow||n===r.jsxTagStart||n===r.incDec||n===r.starstar||n===r.jsxTagEnd||n===r.prefix||n===r.questionDot||n.binop&&!n.keyword||n.isAssign)e.type="Punctuator",e.value=this._code.slice(e.start,e.end);else if(n===r.jsxName)e.type="JSXIdentifier";else if("jsxText"===n.label||n===r.jsxAttrValueToken)e.type=nI;else if(n.keyword)"true"===n.keyword||"false"===n.keyword?e.type="Boolean":"null"===n.keyword?e.type="Null":e.type=nP;else if(n===r.num)e.type="Numeric",e.value=this._code.slice(e.start,e.end);else if(n===r.string)t.jsxAttrValueToken?(t.jsxAttrValueToken=!1,e.type=nI):e.type="String",e.value=this._code.slice(e.start,e.end);else if(n===r.regexp){e.type="RegularExpression";let t=e.value;e.regex={flags:t.flags,pattern:t.pattern},e.value=`/${t.pattern}/${t.flags}`}return e},onToken(e,t){let n=this._acornTokTypes,r=t.tokens,i=this._tokens,s=()=>{var e,t;let n,i,s;r.push((e=this._tokens,t=this._code,n=e[0],i=e.at(-1),s={type:"Template",value:t.slice(n.start,i.end)},n.loc&&(s.loc={start:n.loc.start,end:i.loc.end}),n.range&&(s.start=n.range[0],s.end=i.range[1],s.range=[s.start,s.end]),s)),this._tokens=[]};if(e.type===n.eof){this._curlyBrace&&r.push(this.translate(this._curlyBrace,t));return}if(e.type===n.backQuote){this._curlyBrace&&(r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),i.push(e),i.length>1&&s();return}if(e.type===n.dollarBraceL){i.push(e),s();return}if(e.type===n.braceR){this._curlyBrace&&r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=e;return}if(e.type===n.template||e.type===n.invalidTemplate){this._curlyBrace&&(i.push(this._curlyBrace),this._curlyBrace=null),i.push(e);return}this._curlyBrace&&(r.push(this.translate(this._curlyBrace,t)),this._curlyBrace=null),r.push(this.translate(e,t))}};let nL=[3,5,6,7,8,9,10,11,12,13,14,15,16,17];function nB(){return nL.at(-1)}let nD=Symbol("espree's internal state"),nj=Symbol("espree's esprimaFinishNode");var nR=()=>e=>{let t=Object.assign({},e.acorn.tokTypes);return e.acornJsx&&Object.assign(t,e.acornJsx.tokTypes),class extends e{constructor(e,n){("object"!=typeof e||null===e)&&(e={}),"string"==typeof n||n instanceof String||(n=String(n));let r=e.sourceType,i=function(e){let t=function(e=5){let t="latest"===e?nB():e;if("number"!=typeof t)throw Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof e} instead.`);if(t>=2015&&(t-=2009),!nL.includes(t))throw Error("Invalid ecmaVersion.");return t}(e.ecmaVersion),n=function(e="script"){if("script"===e||"module"===e)return e;if("commonjs"===e)return"script";throw Error("Invalid sourceType.")}(e.sourceType),r=!0===e.range,i=!0===e.loc;if(3!==t&&e.allowReserved)throw Error("`allowReserved` is only supported when ecmaVersion is 3");if(void 0!==e.allowReserved&&"boolean"!=typeof e.allowReserved)throw Error("`allowReserved`, when present, must be `true` or `false`");let s=3===t&&(e.allowReserved||"never"),a=e.ecmaFeatures||{},o="commonjs"===e.sourceType||!!a.globalReturn;if("module"===n&&t<6)throw Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},e,{ecmaVersion:t,sourceType:n,ranges:r,locations:i,allowReserved:s,allowReturnOutsideFunction:o})}(e),s=i.ecmaFeatures||{},a=!0===i.tokens?new nN(t,n):null,o={originalSourceType:r||i.sourceType,tokens:a?[]:null,comments:!0===i.comment?[]:null,impliedStrict:!0===s.impliedStrict&&i.ecmaVersion>=5,ecmaVersion:i.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:i.ecmaVersion,sourceType:i.sourceType,ranges:i.ranges,locations:i.locations,allowReserved:i.allowReserved,allowReturnOutsideFunction:i.allowReturnOutsideFunction,onToken(e){a&&a.onToken(e,o),e.type!==t.eof&&(o.lastToken=e)},onComment(e,t,r,i,s,a){if(o.comments){var l;let p,c=(l=n,p={type:e?"Block":"#!"===l.slice(r,r+2)?"Hashbang":"Line",value:t},"number"==typeof r&&(p.start=r,p.end=i,p.range=[r,i]),"object"==typeof s&&(p.loc={start:s,end:a}),p);o.comments.push(c)}}},n),this[nD]=o}tokenize(){do this.next();while(this.type!==t.eof);this.next();let e=this[nD],n=e.tokens;return e.comments&&(n.comments=e.comments),n}finishNode(...e){let t=super.finishNode(...e);return this[nj](t)}finishNodeAt(...e){let t=super.finishNodeAt(...e);return this[nj](t)}parse(){let e=this[nD],t=super.parse();if(t.sourceType=e.originalSourceType,e.comments&&(t.comments=e.comments),e.tokens&&(t.tokens=e.tokens),t.body.length){let[e]=t.body;t.range&&(t.range[0]=e.range[0]),t.loc&&(t.loc.start=e.loc.start),t.start=e.start}return e.lastToken&&(t.range&&(t.range[1]=e.lastToken.range[1]),t.loc&&(t.loc.end=e.lastToken.loc.end),t.end=e.lastToken.end),this[nD].templateElements.forEach(e=>{let t=e.tail?1:2;e.start+=-1,e.end+=t,e.range&&(e.range[0]+=-1,e.range[1]+=t),e.loc&&(e.loc.start.column+=-1,e.loc.end.column+=t)}),t}parseTopLevel(e){return this[nD].impliedStrict&&(this.strict=!0),super.parseTopLevel(e)}raise(t,n){let r=e.acorn.getLineInfo(this.input,t),i=SyntaxError(n);throw i.index=t,i.lineNumber=r.line,i.column=r.column+1,i}raiseRecoverable(e,t){this.raise(e,t)}unexpected(e){let t="Unexpected token";if(null!=e){if(this.pos=e,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf("\n",this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(t+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,t)}jsx_readString(e){let n=super.jsx_readString(e);return this.type===t.string&&(this[nD].jsxAttrValueToken=!0),n}[nj](e){return"TemplateElement"===e.type&&this[nD].templateElements.push(e),e.type.includes("Function")&&!e.generator&&(e.generator=!1),e}}};let nF={_regular:null,_jsx:null,get regular(){return null===this._regular&&(this._regular=tj.extend(nR())),this._regular},get jsx(){return null===this._jsx&&(this._jsx=tj.extend(nO(),nR())),this._jsx},get(e){return e&&e.ecmaFeatures&&e.ecmaFeatures.jsx?this.jsx:this.regular}};function nM(e,t){let n=nF.get(t);return t&&!0===t.tokens||(t=Object.assign({},t,{tokens:!0})),new n(t,e).tokenize()}let n$,nV={};for(n$ in"function"==typeof Object.create&&(nV=Object.create(null)),e6)Object.hasOwn(e6,n$)&&(nV[n$]=n$);"function"==typeof Object.freeze&&Object.freeze(nV);let nq=nB();var nY={},nX=m?nY:(m=1,!function e(t){var n,r,i,s,a,o;function l(e){var t,n,r={};for(t in e)e.hasOwnProperty(t)&&("object"==typeof(n=e[t])&&null!==n?r[t]=l(n):r[t]=n);return r}function p(e,t){this.parent=e,this.key=t}function c(e,t,n,r){this.node=e,this.path=t,this.wrap=n,this.ref=r}function u(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function d(e,t){return(e===n.ObjectExpression||e===n.ObjectPattern)&&"properties"===t}function m(e,t){for(var n=e.length-1;n>=0;--n)if(e[n].node===t)return!0;return!1}function h(e,t){return new u().traverse(e,t)}return n={AssignmentExpression:"AssignmentExpression",AssignmentPattern:"AssignmentPattern",ArrayExpression:"ArrayExpression",ArrayPattern:"ArrayPattern",ArrowFunctionExpression:"ArrowFunctionExpression",AwaitExpression:"AwaitExpression",BlockStatement:"BlockStatement",BinaryExpression:"BinaryExpression",BreakStatement:"BreakStatement",CallExpression:"CallExpression",CatchClause:"CatchClause",ChainExpression:"ChainExpression",ClassBody:"ClassBody",ClassDeclaration:"ClassDeclaration",ClassExpression:"ClassExpression",ComprehensionBlock:"ComprehensionBlock",ComprehensionExpression:"ComprehensionExpression",ConditionalExpression:"ConditionalExpression",ContinueStatement:"ContinueStatement",DebuggerStatement:"DebuggerStatement",DirectiveStatement:"DirectiveStatement",DoWhileStatement:"DoWhileStatement",EmptyStatement:"EmptyStatement",ExportAllDeclaration:"ExportAllDeclaration",ExportDefaultDeclaration:"ExportDefaultDeclaration",ExportNamedDeclaration:"ExportNamedDeclaration",ExportSpecifier:"ExportSpecifier",ExpressionStatement:"ExpressionStatement",ForStatement:"ForStatement",ForInStatement:"ForInStatement",ForOfStatement:"ForOfStatement",FunctionDeclaration:"FunctionDeclaration",FunctionExpression:"FunctionExpression",GeneratorExpression:"GeneratorExpression",Identifier:"Identifier",IfStatement:"IfStatement",ImportExpression:"ImportExpression",ImportDeclaration:"ImportDeclaration",ImportDefaultSpecifier:"ImportDefaultSpecifier",ImportNamespaceSpecifier:"ImportNamespaceSpecifier",ImportSpecifier:"ImportSpecifier",Literal:"Literal",LabeledStatement:"LabeledStatement",LogicalExpression:"LogicalExpression",MemberExpression:"MemberExpression",MetaProperty:"MetaProperty",MethodDefinition:"MethodDefinition",ModuleSpecifier:"ModuleSpecifier",NewExpression:"NewExpression",ObjectExpression:"ObjectExpression",ObjectPattern:"ObjectPattern",PrivateIdentifier:"PrivateIdentifier",Program:"Program",Property:"Property",PropertyDefinition:"PropertyDefinition",RestElement:"RestElement",ReturnStatement:"ReturnStatement",SequenceExpression:"SequenceExpression",SpreadElement:"SpreadElement",Super:"Super",SwitchStatement:"SwitchStatement",SwitchCase:"SwitchCase",TaggedTemplateExpression:"TaggedTemplateExpression",TemplateElement:"TemplateElement",TemplateLiteral:"TemplateLiteral",ThisExpression:"ThisExpression",ThrowStatement:"ThrowStatement",TryStatement:"TryStatement",UnaryExpression:"UnaryExpression",UpdateExpression:"UpdateExpression",VariableDeclaration:"VariableDeclaration",VariableDeclarator:"VariableDeclarator",WhileStatement:"WhileStatement",WithStatement:"WithStatement",YieldExpression:"YieldExpression"},i={AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AwaitExpression:["argument"],BlockStatement:["body"],BinaryExpression:["left","right"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ComprehensionBlock:["left","right"],ComprehensionExpression:["blocks","filter","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DirectiveStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExportAllDeclaration:["source"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source"],ExportSpecifier:["exported","local"],ExpressionStatement:["expression"],ForStatement:["init","test","update","body"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],GeneratorExpression:["blocks","filter","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportExpression:["source"],ImportDeclaration:["specifiers","source"],ImportDefaultSpecifier:["local"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],Literal:[],LabeledStatement:["label","body"],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],ModuleSpecifier:[],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],Super:[],SwitchStatement:["discriminant","cases"],SwitchCase:["test","consequent"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},r={Break:s={},Skip:a={},Remove:o={}},p.prototype.replace=function(e){this.parent[this.key]=e},p.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},u.prototype.path=function(){var e,t,n,r,i;function s(e,t){if(Array.isArray(t))for(n=0,r=t.length;n<r;++n)e.push(t[n]);else e.push(t)}if(!this.__current.path)return null;for(e=2,i=[],t=this.__leavelist.length;e<t;++e)s(i,this.__leavelist[e].path);return s(i,this.__current.path),i},u.prototype.type=function(){return this.current().type||this.__current.wrap},u.prototype.parents=function(){var e,t,n;for(e=1,n=[],t=this.__leavelist.length;e<t;++e)n.push(this.__leavelist[e].node);return n},u.prototype.current=function(){return this.__current.node},u.prototype.__execute=function(e,t){var n,r;return r=void 0,n=this.__current,this.__current=t,this.__state=null,e&&(r=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=n,r},u.prototype.notify=function(e){this.__state=e},u.prototype.skip=function(){this.notify(a)},u.prototype.break=function(){this.notify(s)},u.prototype.remove=function(){this.notify(o)},u.prototype.__initialize=function(e,t){this.visitor=t,this.root=e,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,"iteration"===t.fallback?this.__fallback=Object.keys:"function"==typeof t.fallback&&(this.__fallback=t.fallback),this.__keys=i,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},u.prototype.traverse=function(e,t){var n,r,i,o,l,p,u,h,g,y,x,T;for(this.__initialize(e,t),T={},n=this.__worklist,r=this.__leavelist,n.push(new c(e,null,null,null)),r.push(new c(null,null,null,null));n.length;){if((i=n.pop())===T){if(i=r.pop(),p=this.__execute(t.leave,i),this.__state===s||p===s)return;continue}if(i.node){if(p=this.__execute(t.enter,i),this.__state===s||p===s)return;if(n.push(T),r.push(i),this.__state===a||p===a)continue;if(l=(o=i.node).type||i.wrap,!(y=this.__keys[l]))if(this.__fallback)y=this.__fallback(o);else throw Error("Unknown node type "+l+".");for(h=y.length;(h-=1)>=0;)if(x=o[u=y[h]]){if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(!(!x[g]||m(r,x[g]))){if(d(l,y[h]))i=new c(x[g],[u,g],"Property",null);else{if(!f(x[g]))continue;i=new c(x[g],[u,g],null,null)}n.push(i)}}else if(f(x)){if(m(r,x))continue;n.push(new c(x,u,null,null))}}}}},u.prototype.replace=function(e,t){var n,r,i,l,u,m,h,g,y,x,T,S,b;function E(e){var t,r,i,s;if(e.ref.remove()){for(r=e.ref.key,s=e.ref.parent,t=n.length;t--;)if((i=n[t]).ref&&i.ref.parent===s){if(i.ref.key<r)break;--i.ref.key}}}for(this.__initialize(e,t),T={},n=this.__worklist,r=this.__leavelist,S={root:e},m=new c(e,null,null,new p(S,"root")),n.push(m),r.push(m);n.length;){if((m=n.pop())===T){if(m=r.pop(),void 0!==(u=this.__execute(t.leave,m))&&u!==s&&u!==a&&u!==o&&m.ref.replace(u),(this.__state===o||u===o)&&E(m),this.__state===s||u===s)return S.root;continue}if(void 0!==(u=this.__execute(t.enter,m))&&u!==s&&u!==a&&u!==o&&(m.ref.replace(u),m.node=u),(this.__state===o||u===o)&&(E(m),m.node=null),this.__state===s||u===s)break;if(i=m.node){if(n.push(T),r.push(m),this.__state!==a&&u!==a){if(l=i.type||m.wrap,!(y=this.__keys[l]))if(this.__fallback)y=this.__fallback(i);else throw Error("Unknown node type "+l+".");for(h=y.length;(h-=1)>=0;)if(x=i[b=y[h]])if(Array.isArray(x)){for(g=x.length;(g-=1)>=0;)if(x[g]){if(d(l,y[h]))m=new c(x[g],[b,g],"Property",new p(x,g));else{if(!f(x[g]))continue;m=new c(x[g],[b,g],null,new p(x,g))}n.push(m)}}else f(x)&&n.push(new c(x,b,null,new p(i,b)))}}}return S.root},t.Syntax=n,t.traverse=h,t.replace=function(e,t){return new u().replace(e,t)},t.attachComments=function(e,t,n){var i,s,a,o,p=[];if(!e.range)throw Error("attachComments needs range information");if(!n.length){if(t.length){for(a=0,s=t.length;a<s;a+=1)(i=l(t[a])).extendedRange=[0,e.range[0]],p.push(i);e.leadingComments=p}return e}for(a=0,s=t.length;a<s;a+=1)p.push(function(e,t){var n;return n=function(e,t){var n,r,i,s;for(r=e.length,i=0;r;)t(e[s=i+(n=r>>>1)])?r=n:(i=s+1,r-=n+1);return i}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],n!==t.length&&(e.extendedRange[1]=t[n].range[0]),(n-=1)>=0&&(e.extendedRange[0]=t[n].range[1]),e}(l(t[a]),n));return o=0,h(e,{enter:function(e){for(var t;o<p.length&&!((t=p[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),p.splice(o,1)):o+=1;return o===p.length?r.Break:p[o].extendedRange[0]>e.range[1]?r.Skip:void 0}}),o=0,h(e,{leave:function(e){for(var t;o<p.length&&(t=p[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),p.splice(o,1)):o+=1;return o===p.length?r.Break:p[o].extendedRange[0]>e.range[1]?r.Skip:void 0}}),e},t.VisitorKeys=i,t.VisitorOption=r,t.Controller=u,t.cloneEnvironment=function(){return e({})},t}(nY),nY);let nJ=new Set;function nU(e,t,n=""){var r;let i=`You are using deprecated ${e}${n?` in "${n}"`:""}`;return t&&(i+=`, please use ${t} instead.`),r=i,void(!(w.env.TEST||nJ.has(r))&&(nJ.add(r),console.warn(`[@stylistic/eslint-plugin]: ${r}`)))}function nW(e,t,n,r=""){Array.isArray(t)||(t=[t]),t.forEach(t=>{e&&Object.hasOwn(e,t)&&nU(`option("${t.toString()}")`,n?`"${n.toString()}"`:void 0,r)})}var nK=e3();let nH=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,nz=new Set(["\r\n","\r","\n","\u2028","\u2029"]),nG=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),nQ=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,nZ=/^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su,n0=["=","+=","-=","*=","/=","%=","<<=",">>=",">>>=","|=","^=","&=","**=","||=","&&=","??="],n1=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"],n2=[...n1,"arguments","as","async","await","eval","from","get","let","of","set","type","using","yield"].concat(["accessor","satisfies"]);function n3(){return RegExp(nK.LINEBREAK_MATCHER.source,"gu")}let n4=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u;function n6(e){let t;if(e)switch(e.type){case"ChainExpression":return n6(e.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":case"ImportAttribute":t=e.key;break;case"MemberExpression":t=e.property}if(t){if("Identifier"===t.type&&!("computed"in e&&e.computed))return t.name;var n=t;switch(n.type){case"Literal":if(null!==n.value||"Literal"===n.type&&null===n.value&&!("regex"in n)&&!("bigint"in n))return String(n.value);if(rl(n))return`/${n.regex.pattern}/${n.regex.flags}`;if("bigint"in n&&n.bigint)return n.bigint;break;case"TemplateLiteral":if(0===n.expressions.length&&1===n.quasis.length)return n.quasis[0].value.cooked}}return null}function n5(e){return e&&"ChainExpression"===e.type?e.expression:e}function n9(e,t){let n=e.getTokenBefore(t),r=e.getTokenAfter(t);return!!n&&!!r&&(0,nK.isOpeningParenToken)(n)&&n.range[1]<=t.range[0]&&(0,nK.isClosingParenToken)(r)&&r.range[0]>=t.range[1]}function n8(e){return"="===e.value&&"Punctuator"===e.type}function n7(e){return"?"===e.value&&"Punctuator"===e.type}function re(e){return e?.type==="Keyword"}function rt(e){return"Shebang"===e.type||"Hashbang"===e.type}function rn(e){return"LogicalExpression"===e.type&&("&&"===e.operator||"||"===e.operator)}function rr(e){return"LogicalExpression"===e.type&&"??"===e.operator}function ri(e,t){return rn(e)&&rr(t)||rr(e)&&rn(t)}function rs(e,t){return e.test?t.getTokenAfter(e.test,e=>(0,nK.isColonToken)(e)):t.getFirstToken(e,1)}function ra(e){if("ExpressionStatement"!==e.type)return!1;let t=e.parent;return"Program"===t.type||"BlockStatement"===t.type&&(0,nK.isFunction)(t.parent)}function ro(e){return"Literal"===e.type&&"string"==typeof e.value||"TemplateLiteral"===e.type}function rl(e){return"Literal"===e.type&&"regex"in e}function rp(e,t){return e[0]===t&&e[e.length-1]===t}function rc(e){switch(e.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":case"TSConditionalType":return 3;case"LogicalExpression":switch(e.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(e.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"TSUnionType":return 6;case"TSIntersectionType":return 8;case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;case"TSImportType":case"TSArrayType":return 20;default:if(e.type in e6)return 20;return -1}}function ru(e){return"Literal"===e.type&&"number"==typeof e.value&&nQ.test(e.raw)}function rf(e,{column:t,line:n}){return t<e.lines[n-1].length?{column:t+1,line:n}:n<e.lines.length?{column:0,line:n+1}:null}function rd(e,t){let n,r,i={comment:!0,ecmaVersion:nq,range:!0};if("string"==typeof e){let t;try{t=nM(e,i)}catch{return!1}let r=t.comments;if(n=t[t.length-1],r.length){let e=r[r.length-1];(!n||e.range[0]>n.range[0])&&(n=e)}}else n=e;if(rt(n))return!1;if("string"==typeof t){let e;try{e=nM(t,i)}catch{return!1}let n=e.comments;if(r=e[0],n.length){let e=n[0];(!r||e.range[0]<r.range[0])&&(r=e)}}else r=t;if("Punctuator"===n.type||"Punctuator"===r.type){if("Punctuator"===n.type&&"Punctuator"===r.type){let e=new Set(["+","++"]),t=new Set(["-","--"]);return!(e.has(n.value)&&e.has(r.value)||t.has(n.value)&&t.has(r.value))}return"Punctuator"!==n.type||"/"!==n.value||!["Block","Line","RegularExpression"].includes(r.type)}return!!("String"===n.type||"String"===r.type||"Template"===n.type||"Template"===r.type||"Numeric"!==n.type&&"Numeric"===r.type&&r.value.startsWith("."))||"Block"===n.type||"Block"===r.type||"Line"===r.type||"PrivateIdentifier"===r.type}let rm=/^\s*$/u;function rh(e){return"string"==typeof e&&rm.test(e)}function rg(e,t){let n=e.sourceCode,r=t,i=null;do i="JSXText"===(r=n.getTokenBefore(r)).type?r.value.split("\n"):null;while("JSXText"===r.type&&i&&rh(i.at(-1)));return r}function ry(e,t){let n=rg(e,t);return!!n&&!(0,nK.isTokenOnSameLine)(n,t)}function rx(e){let t="attributes"in e&&e.attributes;return t&&0!==t.length?t[t.length-1]:e.name}function rT(e){return e.loc.start.line===e.loc.end.line}function rS(e){return"object"==typeof e&&null!=e&&!Array.isArray(e)}function rb(e={},t={}){return Array.from(new Set(Object.keys(e).concat(Object.keys(t)))).reduce((n,r)=>{let i=r in e,s=r in t,a=e[r],o=t[r];return i&&s?rS(a)&&rS(o)?n[r]=rb(a,o):n[r]=o:i?n[r]=a:n[r]=o,n},{})}function rE({name:e,create:t,meta:n}){return{create:r=>{if(n.deprecated){let t;if("boolean"!=typeof n.deprecated){let{replacedBy:e}=n.deprecated;e&&(t=e.map(({rule:e,plugin:t})=>`"${e?.name}"${t?.name?` in "${t.name}"`:""}`).join(", "))}nU(`rule("${e}")`,t)}let{defaultOptions:i=[]}=n,s=Math.max(r.options.length,i.length);return t(r,Array.from({length:s},(e,t)=>rS(r.options[t])&&rS(i[t])?rb(i[t],r.options[t]):r.options[t]??i[t]))},meta:{...n,docs:{...n.docs,url:`https://eslint.style/rules/${e}`}}}}function rk(e,t,n,r){if(e.commentsExistBetween(t,n))return null;let i=[t.range[1],n.range[0]];return e=>e.replaceTextRange(i,"function"==typeof r?r():r)}function rv(e){return"string"==typeof e.text}function rA(e){return"function"==typeof e.getLocFromIndex&&Array.isArray(e.lines)}let rw=/^[a-z]/;function rC(e){let t=rP(e);return rw.test(t)}function r_(e){return e&&["JSXElement","JSXFragment"].includes(e.type)}function rO(e,t){return"JSXSpreadAttribute"===t.type?e.getText(t.argument):"JSXNamespacedName"===t.name.type?`${t.name.namespace.name}:${t.name.name.name}`:t.name.name}function rP(e){if("JSXOpeningFragment"===e.type)return"<>";let{name:t}=e;if(!t)throw Error("The argument provided is not a JSXElement node.");if("JSXMemberExpression"===t.type){let{object:e,property:n}=t;return function e(t,n){return"JSXMemberExpression"===t.type?`${e(t.object,t.property)}.${n.name}`:`${t.name}.${n.name}`}(e,n)}return"JSXNamespacedName"===t.type?`${t.namespace.name}:${t.name.name}`:e.name.name}function rI(t){return/^[\u0020-\u007F]*$/u.test(t)?t.length:[...(e??=new Intl.Segmenter).segment(t)].length}var rN=class{retainedRange;constructor(e,t){this.fixer=e,this.sourceCode=t,this.retainedRange=null}retainRange(e){return this.retainedRange=e,this}retainEnclosingFunction(e){let t=function(e){for(let t=e;t;t=t.parent)if(n4.test(t.type))return t;return null}(e);return this.retainRange(t?t.range:this.sourceCode.ast.range)}retainSurroundingTokens(e){let t=this.sourceCode.getTokenBefore(e)||e,n=this.sourceCode.getTokenAfter(e)||e;return this.retainRange([t.range[0],n.range[1]])}replaceTextRange(e,t){let n;return n=this.retainedRange?[Math.min(this.retainedRange[0],e[0]),Math.max(this.retainedRange[1],e[1])]:e,this.fixer.replaceTextRange(n,this.sourceCode.text.slice(n[0],e[0])+t+this.sourceCode.text.slice(e[1],n[1]))}remove(e){return this.replaceTextRange(e.range,"")}},rL=rE({name:"array-bracket-newline",meta:{type:"layout",docs:{description:"Enforce linebreaks after opening and before closing array brackets"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],defaultOptions:[],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(e){let t=e.sourceCode;function n(n){var r;let i,s,a,o,l=n.elements,p=(i=!1,s=!1,a=0,(r=e.options[0])?"consistent"===r?(i=!0,a=1/0):"always"===r||"string"!=typeof r&&0===r.minItems?a=0:"never"===r?a=1/0:(s=!!r.multiline,a=r.minItems||1/0):(i=!1,s=!0,a=1/0),{ArrayExpression:o={consistent:i,multiline:s,minItems:a},ArrayPattern:o})[n.type],c=t.getFirstToken(n),u=t.getLastToken(n),f=t.getTokenAfter(c,{includeComments:!0}),d=t.getTokenBefore(u,{includeComments:!0}),m=t.getTokenAfter(c),h=t.getTokenBefore(u);l.length>=p.minItems||p.multiline&&l.length>0&&!(0,nK.isTokenOnSameLine)(d,f)||0===l.length&&"Block"===f.type&&!(0,nK.isTokenOnSameLine)(d,f)&&f===d||p.consistent&&!(0,nK.isTokenOnSameLine)(c,m)?((0,nK.isTokenOnSameLine)(c,m)&&e.report({node:n,loc:c.loc,messageId:"missingOpeningLinebreak",fix:e=>e.insertTextAfter(c,"\n")}),(0,nK.isTokenOnSameLine)(h,u)&&e.report({node:n,loc:u.loc,messageId:"missingClosingLinebreak",fix:e=>e.insertTextBefore(u,"\n")})):((0,nK.isTokenOnSameLine)(c,m)||e.report({node:n,loc:c.loc,messageId:"unexpectedOpeningLinebreak",fix(e){let n=t.getTokenAfter(c,{includeComments:!0});return!n||(0,nK.isCommentToken)(n)?null:e.removeRange([c.range[1],n.range[0]])}}),(0,nK.isTokenOnSameLine)(h,u)||e.report({node:n,loc:u.loc,messageId:"unexpectedClosingLinebreak",fix(e){let n=t.getTokenBefore(u,{includeComments:!0});return!n||(0,nK.isCommentToken)(n)?null:e.removeRange([n.range[1],u.range[0]])}}))}return{ArrayPattern:n,ArrayExpression:n}}}),rB=rE({name:"array-bracket-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing inside array brackets"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],defaultOptions:["never"],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(e,[t]){let n="always"===t,r=e.sourceCode;function i(t){return!!e.options[1]&&!n===e.options[1][t]}let s={spaced:n,singleElementException:i("singleValue"),objectsInArraysException:i("objectsInArrays"),arraysInArraysException:i("arraysInArrays")};function a(e){return e&&("ObjectExpression"===e.type||"ObjectPattern"===e.type)}function o(e){return e&&("ArrayExpression"===e.type||"ArrayPattern"===e.type)}function l(t){if(s.spaced&&0===t.elements.length)return;let n=r.getFirstToken(t),i=r.getFirstToken(t,1),l="ArrayPattern"===t.type&&t.typeAnnotation?r.getTokenBefore(t.typeAnnotation):r.getLastToken(t),p=r.getTokenBefore(l),c=t.elements[0],u=t.elements[t.elements.length-1],f=c&&s.objectsInArraysException&&a(c)||c&&s.arraysInArraysException&&o(c)||s.singleElementException&&1===t.elements.length?!s.spaced:s.spaced,d=u&&s.objectsInArraysException&&a(u)||u&&s.arraysInArraysException&&o(u)||s.singleElementException&&1===t.elements.length?!s.spaced:s.spaced;if((0,nK.isTokenOnSameLine)(n,i)){let s;f&&!r.isSpaceBetween(n,i)&&e.report({node:t,loc:n.loc,messageId:"missingSpaceAfter",data:{tokenValue:n.value},fix:e=>e.insertTextAfter(n," ")}),!f&&r.isSpaceBetween(n,i)&&(s=r.getTokenAfter(n),e.report({node:t,loc:{start:n.loc.end,end:s.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:n.value},fix:e=>e.removeRange([n.range[1],s.range[0]])}))}if(n!==p&&(0,nK.isTokenOnSameLine)(p,l)){let n;d&&!r.isSpaceBetween(p,l)&&e.report({node:t,loc:l.loc,messageId:"missingSpaceBefore",data:{tokenValue:l.value},fix:e=>e.insertTextBefore(l," ")}),!d&&r.isSpaceBetween(p,l)&&(n=r.getTokenBefore(l),e.report({node:t,loc:{start:n.loc.end,end:l.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:l.value},fix:e=>e.removeRange([n.range[1],l.range[0]])}))}}return{ArrayPattern:l,ArrayExpression:l}}}),rD=rE({name:"array-element-newline",meta:{type:"layout",docs:{description:"Enforce line breaks after each array element"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{type:"string",enum:["always","never","consistent"]},{type:"object",properties:{consistent:{type:"boolean"},multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},defaultOptions:[],messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(e){let t=e.sourceCode;function n(e){let t,n=!1,r=!1,i=e||"always";return"always"===i||"object"==typeof i&&0===i.minItems?t=0:"never"===i?t=1/0:"consistent"===i?(n=!0,t=1/0):(n=!!i.consistent,r=!!i.multiline,t=i.minItems||1/0),{consistent:n,multiline:r,minItems:t}}function r(r){let i=r.elements,s=function(e){if(e&&(e.ArrayExpression||e.ArrayPattern)){let t,r;return e.ArrayExpression&&(t=n(e.ArrayExpression)),e.ArrayPattern&&(r=n(e.ArrayPattern)),{ArrayExpression:t,ArrayPattern:r}}let t=n(e);return{ArrayExpression:t,ArrayPattern:t}}(e.options[0])[r.type];if(!s)return;let a=!1;s.multiline&&(a=i.some(e=>null!==e&&!rT(e)));let o=0;for(let e=0;e<r.elements.length;e++){let n=r.elements[e],s=i[e-1];if(0===e||null===n||null===s)continue;let a=t.getFirstTokenBetween(s,n,nK.isCommaToken);!(0,nK.isTokenOnSameLine)(t.getTokenBefore(a),t.getTokenAfter(a))&&o++}let l=i.length>=s.minItems||s.multiline&&a||s.consistent&&o>0&&o<r.elements.length;i.forEach((n,r)=>{let s=i[r-1];if(0===r||null===n||null===s)return;let a=t.getFirstTokenBetween(s,n,nK.isCommaToken),o=t.getTokenBefore(a),p=t.getTokenAfter(a);if(l){let n;(0,nK.isTokenOnSameLine)(o,p)&&(n=t.getTokenBefore(p,{includeComments:!0}),e.report({loc:{start:n.loc.end,end:p.loc.start},messageId:"missingLineBreak",fix:e=>e.replaceTextRange([n.range[1],p.range[0]],"\n")}))}else{let n;(0,nK.isTokenOnSameLine)(o,p)||(n=t.getTokenBefore(p,{includeComments:!0}),e.report({loc:{start:n.loc.end,end:p.loc.start},messageId:"unexpectedLineBreak",fix(e){if((0,nK.isCommentToken)(n))return null;if(!(0,nK.isTokenOnSameLine)(n,p))return e.replaceTextRange([n.range[1],p.range[0]]," ");let r=t.getTokenBefore(n,{includeComments:!0});return(0,nK.isCommentToken)(r)?null:e.replaceTextRange([r.range[1],n.range[0]],"")}}))}})}return{ArrayPattern:r,ArrayExpression:r}}}),rj=rE({name:"arrow-parens",meta:{type:"layout",docs:{description:"Require parentheses around arrow function arguments"},fixable:"code",schema:[{type:"string",enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean"}},additionalProperties:!1}],defaultOptions:["always"],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(e,[t,n]){let r="as-needed"===t,i=r&&n?.requireForBlockBody===!0,s=e.sourceCode;function a(e){return s.getTokenAfter(e.params[0],nK.isClosingParenToken)}return{"ArrowFunctionExpression[params.length=1]":function(t){let n,o,l=!r||i&&"BlockStatement"===t.body.type,p=(n=s.getTokenBefore(t.params[0]))&&(0,nK.isOpeningParenToken)(n)&&t.range[0]<=n.range[0]?n:null,c=null!==p,[u]=t.params;l&&!c&&e.report({node:t,messageId:i?"expectedParensBlock":"expectedParens",loc:u.loc,*fix(e){yield e.insertTextBefore(u,"("),yield e.insertTextAfter(u,")")}}),l||!c||"Identifier"!==u.type||u.optional||u.typeAnnotation||t.returnType||s.commentsExistBetween(p,a(t))||(o=+!!t.async,s.getFirstToken(t,{skip:o})!==p)||e.report({node:t,messageId:i?"unexpectedParensInline":"unexpectedParens",loc:u.loc,*fix(e){let n=s.getTokenBefore(p),r=a(t);n&&n.range[1]===p.range[0]&&!rd(n,s.getFirstToken(u))&&(yield e.insertTextBefore(p," ")),yield e.removeRange([p.range[0],u.range[0]]),yield e.removeRange([u.range[1],r.range[1]])}})}}}}),rR=rE({name:"arrow-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing before and after the arrow in arrow functions"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{before:!0,after:!0}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(e,[t]){let n=e.sourceCode;function r(r){let i="ArrowFunctionExpression"===r.type?n.getTokenBefore(r.body,nK.isArrowToken):n.getFirstToken(r.returnType,nK.isArrowToken),s=n.getTokenBefore(i,{includeComments:!0}),a=n.isSpaceBetween(s,i);t.before?a||e.report({node:s,messageId:"expectedBefore",fix:e=>e.insertTextBefore(i," ")}):a&&e.report({node:s,messageId:"unexpectedBefore",fix:e=>e.removeRange([s.range[1],i.range[0]])});let o=n.getTokenAfter(i,{includeComments:!0}),l=n.isSpaceBetween(i,o);t.after?l||e.report({node:o,messageId:"expectedAfter",fix:e=>e.insertTextAfter(i," ")}):l&&e.report({node:o,messageId:"unexpectedAfter",fix:e=>e.removeRange([i.range[1],o.range[0]])})}return{ArrowFunctionExpression:r,TSFunctionType:r,TSConstructorType:r}}}),rF=rE({name:"block-spacing",meta:{type:"layout",docs:{description:"Disallow or enforce spaces inside of blocks after opening block and before closing block"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]}],defaultOptions:["always"],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(e,[t]){let n=e.sourceCode,r="never"!==t,i=r?"missing":"extra";function s(e,t){return!(0,nK.isTokenOnSameLine)(e,t)||n.isSpaceBetween(e,t)===r}function a(t){let a=n.getFirstToken(t,{filter:e=>(0,nK.isOpeningBraceToken)(e)}),o=n.getLastToken(t),l=n.getTokenAfter(a,{includeComments:!0}),p=n.getTokenBefore(o,{includeComments:!0});if((0,nK.isOpeningBraceToken)(a)&&(0,nK.isClosingBraceToken)(o)&&l!==o&&(r||l.type!==e4.AST_TOKEN_TYPES.Line)){if(!s(a,l)){let n=a.loc;"extra"===i&&(n={start:a.loc.end,end:l.loc.start}),e.report({node:t,loc:n,messageId:i,data:{location:"after",token:a.value},fix:e=>r?e.insertTextBefore(l," "):e.removeRange([a.range[1],l.range[0]])})}if(!s(p,o)){let n=o.loc;"extra"===i&&(n={start:p.loc.end,end:o.loc.start}),e.report({node:t,loc:n,messageId:i,data:{location:"before",token:o.value},fix:e=>r?e.insertTextAfter(p," "):e.removeRange([p.range[1],o.range[0]])})}}}return{BlockStatement:a,StaticBlock:a,SwitchStatement:a}}}),rM=rE({name:"brace-style",meta:{type:"layout",docs:{description:"Enforce consistent brace style for blocks"},fixable:"whitespace",schema:[{type:"string",enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean"}},additionalProperties:!1}],defaultOptions:["1tbs",{allowSingleLine:!1}],messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},create(e,[t,n]){let r=e.sourceCode,{allowSingleLine:i}=n,s="allman"===t;function a(t,n){let a=r.getTokenBefore(t),o=r.getTokenBefore(n),l=r.getTokenAfter(t),p=i&&(0,nK.isTokenOnSameLine)(t,n);s||(0,nK.isTokenOnSameLine)(a,t)||e.report({node:t,messageId:"nextLineOpen",fix:rk(r,a,t," ")}),s&&(0,nK.isTokenOnSameLine)(a,t)&&!p&&e.report({node:t,messageId:"sameLineOpen",fix:e=>e.insertTextBefore(t,"\n")}),(0,nK.isTokenOnSameLine)(t,l)&&l!==n&&!p&&e.report({node:t,messageId:"blockSameLine",fix:e=>e.insertTextAfter(t,"\n")}),(0,nK.isTokenOnSameLine)(o,n)&&o!==t&&!p&&e.report({node:n,messageId:"singleLineClose",fix:e=>e.insertTextBefore(n,"\n")})}function o(n){let i=r.getTokenAfter(n);"1tbs"!==t||(0,nK.isTokenOnSameLine)(n,i)||e.report({node:n,messageId:"nextLineClose",fix:rk(r,n,i," ")}),"1tbs"!==t&&(0,nK.isTokenOnSameLine)(n,i)&&e.report({node:n,messageId:"sameLineClose",fix:e=>e.insertTextAfter(n,"\n")})}return{BlockStatement(e){nG.has(e.parent.type)||a(r.getFirstToken(e),r.getLastToken(e))},StaticBlock(e){a(r.getFirstToken(e,{skip:1}),r.getLastToken(e))},ClassBody(e){a(r.getFirstToken(e),r.getLastToken(e))},SwitchStatement(e){let t=r.getLastToken(e);a(r.getTokenBefore(e.cases.length?e.cases[0]:t),t)},IfStatement(e){"BlockStatement"===e.consequent.type&&e.alternate&&o(r.getLastToken(e.consequent))},TryStatement(e){o(r.getLastToken(e.block)),e.handler&&e.finalizer&&o(r.getLastToken(e.handler.body))},TSModuleBlock(e){a(r.getFirstToken(e),r.getLastToken(e))}}}});let r$=["always-multiline","always","never","only-multiline"];var rV=rE({name:"comma-dangle",meta:{type:"layout",docs:{description:"Require or disallow trailing commas"},fixable:"code",schema:{$defs:{value:{type:"string",enum:r$},valueWithIgnore:{type:"string",enum:[...r$,"ignore"]}},type:"array",items:[{oneOf:[{$ref:"#/$defs/value"},{type:"object",properties:{arrays:{$ref:"#/$defs/valueWithIgnore"},objects:{$ref:"#/$defs/valueWithIgnore"},imports:{$ref:"#/$defs/valueWithIgnore"},exports:{$ref:"#/$defs/valueWithIgnore"},functions:{$ref:"#/$defs/valueWithIgnore"},importAttributes:{$ref:"#/$defs/valueWithIgnore"},dynamicImports:{$ref:"#/$defs/valueWithIgnore"},enums:{$ref:"#/$defs/valueWithIgnore"},generics:{$ref:"#/$defs/valueWithIgnore"},tuples:{$ref:"#/$defs/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},defaultOptions:["never"],messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(e,[t]){let n=function(e={},t){let n="never";return"string"==typeof e?{arrays:e,objects:e,imports:e,exports:e,functions:t&&"latest"!==t&&t<2017?"ignore":e,importAttributes:e,dynamicImports:t&&"latest"!==t&&t<2025?"ignore":e,enums:e,generics:e,tuples:e}:{arrays:e.arrays??n,objects:e.objects??n,imports:e.imports??n,exports:e.exports??n,functions:e.functions??n,importAttributes:e.importAttributes??n,dynamicImports:e.dynamicImports??n,enums:e.enums??n,generics:e.generics??n,tuples:e.tuples??n}}(t,e.languageOptions?.ecmaVersion??e.parserOptions?.ecmaVersion),r=(e.languageOptions?.parserOptions?.ecmaFeatures?.jsx??e.parserOptions?.ecmaFeatures?.jsx)&&e.filename?.endsWith(".tsx"),i=e.sourceCode,s=["}","]",")",">"],a={always:u,"always-multiline":function(e){p(e)?u(e):c(e)},"only-multiline":function(e){p(e)||c(e)},never:c,ignore:()=>{}};function o(e){return e?e[e.length-1]??null:null}function l(e){switch(e.node.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":case"ImportExpression":return i.getLastToken(e.node,1);default:{let t=e.lastItem;if(!t)return null;let n=i.getTokenAfter(t);if((0,nK.isCommaToken)(n))return n;return i.getLastToken(t)}}}function p(e){if(!e.lastItem)return!1;let t=l(e);if(!t)return!1;let n=i.getTokenAfter(t);return!!n&&n.loc.end.line!==t.loc.end.line}function c(t){if(r&&t.node.type===e4.AST_NODE_TYPES.TSTypeParameterDeclaration&&1===t.node.params.length)return;let n=t.lastItem;if(!n)return;let s=l(t);s&&(0,nK.isCommaToken)(s)&&e.report({node:n,loc:s.loc,messageId:"unexpected",*fix(e){yield e.remove(s),yield e.insertTextBefore(i.getTokenBefore(s),""),yield e.insertTextAfter(i.getTokenAfter(s),"")}})}function u(t){let n=t.lastItem;if(!n)return;if("RestElement"===n.type)return void c(t);let r=l(t);if(!r||","===r.value)return;let a=i.getTokenAfter(r);a&&s.includes(a.value)&&e.report({node:n,loc:{start:r.loc.end,end:rf(i,r.loc.end)},messageId:"missing",*fix(e){yield e.insertTextAfter(r,","),yield e.insertTextBefore(r,""),yield e.insertTextAfter(i.getTokenAfter(r),"")}})}return{ObjectExpression:e=>{a[n.objects]({node:e,lastItem:o(e.properties)})},ObjectPattern:e=>{a[n.objects]({node:e,lastItem:o(e.properties)})},ArrayExpression:e=>{a[n.arrays]({node:e,lastItem:o(e.elements)})},ArrayPattern:e=>{a[n.arrays]({node:e,lastItem:o(e.elements)})},ImportDeclaration:e=>{let t=o(e.specifiers);t?.type==="ImportSpecifier"&&a[n.imports]({node:e,lastItem:t}),a[n.importAttributes]({node:e,lastItem:o(e.attributes)})},ExportNamedDeclaration:e=>{a[n.exports]({node:e,lastItem:o(e.specifiers)}),a[n.importAttributes]({node:e,lastItem:o(e.attributes)})},ExportAllDeclaration:e=>{a[n.importAttributes]({node:e,lastItem:o(e.attributes)})},FunctionDeclaration:e=>{a[n.functions]({node:e,lastItem:o(e.params)})},FunctionExpression:e=>{a[n.functions]({node:e,lastItem:o(e.params)})},ArrowFunctionExpression:e=>{a[n.functions]({node:e,lastItem:o(e.params)})},CallExpression:e=>{a[n.functions]({node:e,lastItem:o(e.arguments)})},NewExpression:e=>{a[n.functions]({node:e,lastItem:o(e.arguments)})},ImportExpression:e=>{a[n.dynamicImports]({node:e,lastItem:e.options??e.source})},TSEnumDeclaration(e){a[n.enums]({node:e,lastItem:o(e.body?.members??e.members)})},TSTypeParameterDeclaration(e){a[n.generics]({node:e,lastItem:o(e.params)})},TSTypeParameterInstantiation(e){a.never({node:e,lastItem:o(e.params)})},TSTupleType(e){a[n.tuples]({node:e,lastItem:o(e.elementTypes)})},TSDeclareFunction(e){a[n.functions]({node:e,lastItem:o(e.params)})},TSFunctionType(e){a[n.functions]({node:e,lastItem:o(e.params)})}}}}),rq=rE({name:"comma-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing before and after commas"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{before:!1,after:!0}],messages:{unexpected:"There should be no space {{loc}} ','.",missing:"A space is required {{loc}} ','."}},create(e,[t]){let{before:n,after:r}=t,i=e.sourceCode,s=i.tokensAndComments,a=new Set;function o(e){let t=i.getFirstToken(e);for(let n of e.elements){let e;null==n?(e=i.getTokenAfter(t))&&(0,nK.isCommaToken)(e)&&a.add(e):e=i.getTokenAfter(n),t=e}}return{ArrayExpression:o,ArrayPattern:o,TSTypeParameterDeclaration:function(e){let t=e.params.length;if(t){let n=e.params[t-1],r=i.getTokenAfter(n);r&&(0,nK.isCommaToken)(r)&&a.add(r)}},"Program:exit":function(){s.forEach((t,o)=>{var l,p;if(!(0,nK.isCommaToken)(t))return;let c=s[o-1],u=s[o+1];l=(0,nK.isCommaToken)(c)||a.has(t)?null:c,p=u&&(0,nK.isCommaToken)(u)||a.has(t)?null:u,l&&(0,nK.isTokenOnSameLine)(l,t)&&n!==i.isSpaceBetween(l,t)&&e.report({node:t,data:{loc:"before"},messageId:n?"missing":"unexpected",fix:e=>n?e.insertTextBefore(t," "):e.replaceTextRange([l.range[1],t.range[0]],"")}),p&&(0,nK.isTokenOnSameLine)(t,p)&&!(0,nK.isClosingParenToken)(p)&&!(0,nK.isClosingBracketToken)(p)&&!(0,nK.isClosingBraceToken)(p)&&!(!r&&p.type===e4.AST_TOKEN_TYPES.Line)&&r!==i.isSpaceBetween(t,p)&&e.report({node:t,data:{loc:"after"},messageId:r?"missing":"unexpected",fix:e=>r?e.insertTextAfter(t," "):e.replaceTextRange([t.range[1],p.range[0]],"")})})}}}}),rY=rE({name:"comma-style",meta:{type:"layout",docs:{description:"Enforce consistent comma style"},fixable:"code",schema:[{type:"string",enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],defaultOptions:["last"],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(e,[t,n]){let r=e.sourceCode,i=n?.exceptions??{};function s(e,t,n,i){let s=r.text.slice(t.range[1],n.range[0])+r.text.slice(n.range[1],i.range[0]),a=[t.range[1],i.range[0]];return function(t){return t.replaceTextRange(a,function(e,t){switch(e){case"between":return`,${t.replace(nK.LINEBREAK_MATCHER,"")}`;case"first":return`${t},`;case"last":return`,${t}`;default:return""}}(e,s))}}function a(n,i){(function(e,t){if(0===t.length)return[];let n=t.filter(e=>!!e);if(0===n.length)return r.getTokens(e).filter(nK.isCommaToken);let i=[],s=n[0],a=r.getTokenBefore(s);for(;a&&e.range[0]<=a.range[0];){if((0,nK.isCommaToken)(a))i.unshift(a);else if((0,nK.isNotOpeningParenToken)(a))break;a=r.getTokenBefore(a)}let o=null;for(let e of n){o&&i.push(...r.getTokensBetween(o,e).filter(nK.isCommaToken));let t=r.getLastToken(e);t&&(0,nK.isCommaToken)(t)&&i.push(t),o=e}let l=r.getTokenAfter(o);for(;l&&l.range[1]<=e.range[1];){if((0,nK.isCommaToken)(l))i.push(l);else if((0,nK.isNotClosingParenToken)(l))break;l=r.getTokenAfter(l)}return i})(n,i).forEach(n=>{let i=r.getTokenBefore(n),a=r.getTokenAfter(n);if(!((0,nK.isOpeningBracketToken)(i)||(0,nK.isCommaToken)(i)&&(0,nK.isOpeningBracketToken)(r.getTokenBefore(i,nK.isNotCommaToken)))&&(!(0,nK.isCommaToken)(a)||(0,nK.isTokenOnSameLine)(n,a)))if((0,nK.isTokenOnSameLine)(n,a)&&(0,nK.isTokenOnSameLine)(i,n));else if((0,nK.isTokenOnSameLine)(n,a)||(0,nK.isTokenOnSameLine)(i,n))"first"!==t||(0,nK.isTokenOnSameLine)(n,a)?"last"===t&&(0,nK.isTokenOnSameLine)(n,a)&&e.report({node:n,messageId:"expectedCommaLast",fix:s(t,i,n,a)}):e.report({node:n,messageId:"expectedCommaFirst",fix:s(t,i,n,a)});else{let o=r.getCommentsAfter(n)[0],l=o&&"Block"===o.type&&(0,nK.isTokenOnSameLine)(n,o)?t:"between";e.report({node:n,messageId:"unexpectedLineBeforeAndAfterComma",fix:s(l,i,n,a)})}})}let o={};return i.VariableDeclaration||(o.VariableDeclaration=e=>a(e,e.declarations)),i.ObjectExpression||(o.ObjectExpression=l),i.ObjectPattern||(o.ObjectPattern=l),i.ArrayExpression||(o.ArrayExpression=p),i.ArrayPattern||(o.ArrayPattern=p),i.FunctionDeclaration||(o.FunctionDeclaration=c),i.FunctionExpression||(o.FunctionExpression=c),i.ArrowFunctionExpression||(o.ArrowFunctionExpression=c),i.CallExpression||(o.CallExpression=u),i.ImportDeclaration||(o.ImportDeclaration=e=>{a(e,e.specifiers),f(e)}),i.NewExpression||(o.NewExpression=u),i.ExportAllDeclaration||(o.ExportAllDeclaration=f),i.ExportNamedDeclaration||(o.ExportNamedDeclaration=e=>{a(e,e.specifiers),f(e)}),i.ImportExpression||(o.ImportExpression=e=>{a(e,[e.source,e.options??null])}),i.SequenceExpression||(o.SequenceExpression=e=>a(e,e.expressions)),i.ClassDeclaration||(o.ClassDeclaration=d),i.ClassExpression||(o.ClassExpression=d),i.TSDeclareFunction||(o.TSDeclareFunction=c),i.TSFunctionType||(o.TSFunctionType=c),i.TSConstructorType||(o.TSConstructorType=c),i.TSEmptyBodyFunctionExpression||(o.TSEmptyBodyFunctionExpression=c),i.TSMethodSignature||(o.TSMethodSignature=c),i.TSCallSignatureDeclaration||(o.TSCallSignatureDeclaration=c),i.TSConstructSignatureDeclaration||(o.TSConstructSignatureDeclaration=c),i.TSTypeParameterDeclaration||(o.TSTypeParameterDeclaration=h),i.TSTypeParameterInstantiation||(o.TSTypeParameterInstantiation=h),i.TSEnumBody||(o.TSEnumBody=m),i.TSTypeLiteral||(o.TSTypeLiteral=m),i.TSIndexSignature||(o.TSIndexSignature=e=>a(e,e.parameters)),i.TSInterfaceDeclaration||(o.TSInterfaceDeclaration=e=>a(e,e.extends)),i.TSInterfaceBody||(o.TSInterfaceBody=e=>a(e,e.body)),i.TSTupleType||(o.TSTupleType=e=>a(e,e.elementTypes)),o;function l(e){a(e,e.properties)}function p(e){a(e,e.elements)}function c(e){a(e,e.params)}function u(e){a(e,e.arguments)}function f(e){e.attributes&&a(e,e.attributes)}function d(e){e.implements&&a(e,e.implements)}function m(e){a(e,e.members)}function h(e){a(e,e.params)}}}),rX=rE({name:"computed-property-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing inside computed property brackets"},fixable:"whitespace",schema:[{type:"string",enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean"}},additionalProperties:!1}],defaultOptions:["never",{enforceForClassMembers:!0}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(e,[t,n]){let r=e.sourceCode,i="always"===t,{enforceForClassMembers:s}=n;function a(t){return function(n){if("TSIndexedAccessType"!==n.type&&!n.computed)return;let s=n[t],a=r.getTokenBefore(s,nK.isOpeningBracketToken),o=r.getTokenAfter(a,{includeComments:!0}),l=r.getTokenAfter(s,nK.isClosingBracketToken),p=r.getTokenBefore(l,{includeComments:!0});(0,nK.isTokenOnSameLine)(a,o)&&(i?!r.isSpaceBetween(a,o)&&(0,nK.isTokenOnSameLine)(a,o)&&e.report({node:n,loc:a.loc,messageId:"missingSpaceAfter",data:{tokenValue:a.value},fix:e=>e.insertTextAfter(a," ")}):r.isSpaceBetween(a,o)&&e.report({node:n,loc:{start:a.loc.end,end:o.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:a.value},fix:e=>e.removeRange([a.range[1],o.range[0]])})),(0,nK.isTokenOnSameLine)(p,l)&&(i?!r.isSpaceBetween(p,l)&&(0,nK.isTokenOnSameLine)(p,l)&&e.report({node:n,loc:l.loc,messageId:"missingSpaceBefore",data:{tokenValue:l.value},fix:e=>e.insertTextBefore(l," ")}):r.isSpaceBetween(p,l)&&e.report({node:n,loc:{start:p.loc.end,end:l.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:l.value},fix:e=>e.removeRange([p.range[1],l.range[0]])}))}}let o={Property:a("key"),MemberExpression:a("property"),TSIndexedAccessType:a("indexType")};return s&&(o.MethodDefinition=a("key"),o.PropertyDefinition=a("key"),o.AccessorProperty=a("key")),o}});let rJ={multiline:{type:"boolean"},minElements:{type:"integer",minimum:0},consistent:{type:"boolean"}},rU={oneOf:[{type:"string",enum:["always","never"]},{type:"object",properties:rJ,additionalProperties:!1}]};var rW=((r=rW||{}).IfStatementConsequent="IfStatementConsequent",r.IfStatementAlternative="IfStatementAlternative",r.DoWhileStatement="DoWhileStatement",r.ForInStatement="ForInStatement",r.ForOfStatement="ForOfStatement",r.ForStatement="ForStatement",r.WhileStatement="WhileStatement",r.SwitchStatement="SwitchStatement",r.SwitchCase="SwitchCase",r.TryStatementBlock="TryStatementBlock",r.TryStatementHandler="TryStatementHandler",r.TryStatementFinalizer="TryStatementFinalizer",r.BlockStatement="BlockStatement",r.ArrowFunctionExpression="ArrowFunctionExpression",r.FunctionDeclaration="FunctionDeclaration",r.FunctionExpression="FunctionExpression",r.Property="Property",r.ClassBody="ClassBody",r.StaticBlock="StaticBlock",r.WithStatement="WithStatement",r.TSModuleBlock="TSModuleBlock",r);let rK={multiline:!1,minElements:1/0,consistent:!0},rH={multiline:!1,minElements:0,consistent:!1},rz={multiline:!1,minElements:1/0,consistent:!1};function rG(e){return"always"===e?rH:"never"===e?rz:e?{consistent:!!e.consistent,minElements:e.minElements??1/0,multiline:!!e.multiline}:rK}var rQ=rE({name:"curly-newline",meta:{type:"layout",docs:{description:"Enforce consistent line breaks after opening and before closing braces"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["always","never"]},{type:"object",properties:{...Object.fromEntries(Object.entries(rW).map(([e])=>[e,rU])),...rJ},additionalProperties:!1}]}],defaultOptions:[],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},create(e,[t]){let n,r=e.sourceCode,i=(n=rG(t),Object.fromEntries(Object.entries(rW).map(([e])=>[e,"object"==typeof t&&null!=t&&e in t?rG(t[e]):n])));function s(t,n){let s,a,o,l=i[n];switch(t.type){case"SwitchStatement":a=r.getLastToken(t),s=r.getTokenBefore(t.cases.length?t.cases[0]:a),o=t.cases.length;break;case"StaticBlock":s=r.getFirstToken(t,e=>"{"===e.value),a=r.getLastToken(t),o=t.body.length;break;default:s=r.getFirstToken(t),a=r.getLastToken(t),o=t.body.length}let p=r.getTokenAfter(s,{includeComments:!0}),c=r.getTokenBefore(a,{includeComments:!0}),u=o>=l.minElements||l.multiline&&o>0&&!(0,nK.isTokenOnSameLine)(c,p),f=(0,nK.isCommentToken)(p),d=(0,nK.isCommentToken)(c);if(p=r.getTokenAfter(s),c=r.getTokenBefore(a),u)(0,nK.isTokenOnSameLine)(s,p)&&e.report({messageId:"expectedLinebreakAfterOpeningBrace",node:t,loc:s.loc,fix:e=>f?null:e.insertTextAfter(s,"\n")}),(0,nK.isTokenOnSameLine)(c,a)&&e.report({messageId:"expectedLinebreakBeforeClosingBrace",node:t,loc:a.loc,fix:e=>d?null:e.insertTextBefore(a,"\n")});else{let n=l.consistent,r=!(0,nK.isTokenOnSameLine)(s,p),i=!(0,nK.isTokenOnSameLine)(c,a);(!n&&r||n&&r&&!i)&&e.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:t,loc:s.loc,fix:e=>f?null:e.removeRange([s.range[1],p.range[0]])}),(!n&&i||n&&!r&&i)&&e.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:t,loc:a.loc,fix:e=>d?null:e.removeRange([c.range[1],a.range[0]])})}}function a(e){s(e,e.type)}return{BlockStatement(e){let{parent:t}=e;switch(t.type){case"DoWhileStatement":case"ForInStatement":case"ForOfStatement":case"ForStatement":case"WhileStatement":case"ArrowFunctionExpression":case"FunctionDeclaration":case"WithStatement":s(e,t.type);break;case"FunctionExpression":"Property"===t.parent.type&&t.parent.method?s(e,"Property"):s(e,t.type);break;case"IfStatement":e===t.consequent&&s(e,"IfStatementConsequent"),e===t.alternate&&s(e,"IfStatementAlternative");break;case"TryStatement":e===t.block&&s(e,"TryStatementBlock"),e===t.finalizer&&s(e,"TryStatementFinalizer");break;case"CatchClause":s(e,"TryStatementHandler");break;default:"SwitchCase"===t.type&&1===t.consequent.length?s(e,"SwitchCase"):s(e,"BlockStatement")}},SwitchStatement:a,ClassBody:a,StaticBlock:a,TSModuleBlock:a}}}),rZ=rE({name:"dot-location",meta:{type:"layout",docs:{description:"Enforce consistent newlines before and after dots"},fixable:"code",schema:[{type:"string",enum:["object","property"]}],defaultOptions:["object"],messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(e,[t]){let n="object"===t,r=e.sourceCode;function i(t){let i="TSImportType"===t.type?t.qualifier:"TSQualifiedName"===t.type?t.right:t.property;if(!i)return;let s=r.getTokenBefore(i);if(s)if(n){let n=r.getTokenBefore(s);n&&!(0,nK.isTokenOnSameLine)(n,s)&&e.report({node:t,loc:s.loc,messageId:"expectedDotAfterObject",*fix(e){var t;s.value.startsWith(".")&&"Numeric"===(t=n).type&&nQ.test(t.value)?yield e.insertTextAfter(n,` ${s.value}`):yield e.insertTextAfter(n,s.value),yield e.remove(s)}})}else(0,nK.isTokenOnSameLine)(s,i)||e.report({node:t,loc:s.loc,messageId:"expectedDotBeforeProperty",*fix(e){yield e.remove(s),yield e.insertTextBefore(i,s.value)}})}return{MemberExpression(e){e.computed||i(e)},MetaProperty:i,JSXMemberExpression:i,TSQualifiedName:i,TSImportType:i}}}),r0=rE({name:"eol-last",meta:{type:"layout",docs:{description:"Require or disallow newline at the end of files"},fixable:"whitespace",schema:[{type:"string",enum:["always","never","unix","windows"]}],defaultOptions:["always"],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create(e,[t]){let n=e.sourceCode;if(!rv(n)||!rA(n))return{};let r=n.text,i=`\r
2
2
  `,s=r.endsWith("\n");if(!r.length)return{};let a=!1;if("unix"===t&&(nU('option("unix")','"always" and "@stylistic/eslint-plugin/rules/linebreak-style"',"eol-last"),t="always"),"windows"===t&&(nU('option("windows")','"always" and "@stylistic/eslint-plugin/rules/linebreak-style"',"eol-last"),t="always",a=!0),"always"!==t||s){if("never"===t&&s){let t=n.getLocFromIndex(r.length-(r.endsWith(i)?2:1)),s=n.getLocFromIndex(r.length);e.report({loc:{start:t,end:s},messageId:"unexpected",fix(e){let t=/(?:\r?\n)+$/u.exec(r).index,n=r.length;return e.replaceTextRange([t,n],"")}})}}else e.report({loc:n.getLocFromIndex(r.length),messageId:"missing",fix:e=>e.insertTextAfterRange([0,r.length],a?i:"\n")});return{}}}),r1=rE({name:"function-call-argument-newline",meta:{type:"layout",docs:{description:"Enforce line breaks between arguments of a function call"},fixable:"whitespace",schema:[{type:"string",enum:["always","never","consistent"]}],defaultOptions:["always"],messages:{unexpectedLineBreak:"There should be no line break here.",missingLineBreak:"There should be a line break after this argument."}},create(e,[t]){let n=e.sourceCode,r={messageId:"unexpectedLineBreak",check:(e,t)=>!(0,nK.isTokenOnSameLine)(e,t),createFix:(e,t)=>n=>n.replaceTextRange([t.range[1],e.range[0]]," ")},i={messageId:"missingLineBreak",check:(e,t)=>(0,nK.isTokenOnSameLine)(e,t),createFix:(e,t)=>n=>n.replaceTextRange([t.range[1],e.range[0]],"\n")};function s(t,r){for(let i=1;i<t.length;i++){let s=t[i-1],a=n.getLastToken(s),o=n.getFirstToken(t[i]);if(r.check(a,o)){let s=n.getTokenBefore(o,{includeComments:!0}),a="Line"===s.type;e.report({node:t[i-1],loc:{start:s.loc.end,end:o.loc.start},messageId:r.messageId,fix:a?null:r.createFix(o,s)})}}}function a(e){e.length<2||("never"===t?s(e,r):"always"===t?s(e,i):"consistent"===t&&((0,nK.isTokenOnSameLine)(n.getLastToken(e[0]),n.getFirstToken(e[1]))?s(e,r):s(e,i)))}return{CallExpression:e=>a(e.arguments),NewExpression:e=>a(e.arguments),ImportExpression:e=>{e.options&&a([e.source,e.options])}}}}),r2=rE({name:"function-call-spacing",meta:{type:"layout",docs:{description:"Require or disallow spacing between function identifiers and their invocations"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{type:"string",enum:["never"]}],minItems:0,maxItems:1},{type:"array",items:[{type:"string",enum:["always"]},{type:"object",properties:{allowNewlines:{type:"boolean"},optionalChain:{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}],minItems:0,maxItems:2}]},defaultOptions:["never"],messages:{unexpectedWhitespace:"Unexpected whitespace between function name and paren.",unexpectedNewline:"Unexpected newline between function name and paren.",missing:"Missing space between function name and paren."}},create(e,[t,n]){let r=e.sourceCode,i=r.getText(),{allowNewlines:s=!1,optionalChain:a={before:!0,after:!0}}=n??{};function o(n,o,l){let p=(0,nK.isOptionalCallExpression)(n),c=i.slice(o.range[1],l.range[0]).replace(/\/\*.*?\*\//gu,""),u=/\s/u.test(c),f=u&&nK.LINEBREAK_MATCHER.test(c);if("never"===t){if(u)return e.report({node:n,loc:{start:o.loc.end,end:l.loc.start},messageId:"unexpectedWhitespace",fix:rk(r,o,l,p?"?.":"")})}else if(p){let{before:t=!0,after:i=!0}=a,p=/^\s/u.test(c),u=/\s$/u.test(c),d=t?p:!p,m=i?u:!u,h=s||!f;d&&m&&h||e.report({node:n,loc:{start:o.loc.end,end:l.loc.start},messageId:h?!t&&p||!i&&u?"unexpectedWhitespace":"missing":"unexpectedNewline",fix:rk(r,o,l,()=>{let e=c;if(!s){let t=RegExp(nK.LINEBREAK_MATCHER.source,"g");e=e.replaceAll(t," ")}return d||(e=t?` ${e}`:e.trimStart()),m||(e=i?`${e} `:e.trimEnd()),e})})}else u?!s&&f&&e.report({node:n,loc:{start:o.loc.end,end:l.loc.start},messageId:"unexpectedNewline",fix:rk(r,o,l," ")}):e.report({node:n,loc:{start:o.loc.end,end:l.loc.start},messageId:"missing",fix:e=>e.insertTextBefore(l," ")})}return{"CallExpression, NewExpression":function(e){let t=r.getLastToken(e),n=r.getLastToken(e.typeArguments??e.callee),i=r.getFirstTokenBetween(n,t,nK.isOpeningParenToken);i&&!(i.range[1]>=e.range[1])&&o(e,r.getTokenBefore(i,nK.isNotOptionalChainPunctuator),i)},ImportExpression(e){let t=r.getFirstToken(e);o(e,t,r.getTokenAfter(t))}}}}),r3=rE({name:"function-paren-newline",meta:{type:"layout",docs:{description:"Enforce consistent line breaks inside function parentheses"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["always","never","consistent","multiline","multiline-arguments"]},{type:"object",properties:{minItems:{type:"integer",minimum:0}},additionalProperties:!1}]}],defaultOptions:["multiline"],messages:{expectedBefore:"Expected newline before ')'.",expectedAfter:"Expected newline after '('.",expectedBetween:"Expected newline between arguments/params.",unexpectedBefore:"Unexpected newline before ')'.",unexpectedAfter:"Unexpected newline after '('."}},create(e,[t]){let n,r=e.sourceCode,i="multiline"===t,s="multiline-arguments"===t,a="consistent"===t;function o(e,t){return s&&1===e.length?t:i||s?e.some((t,n)=>n!==e.length-1&&!(0,nK.isTokenOnSameLine)(t,e[n+1])):a?t:null==n||e.length>=n}return"object"==typeof t?n=t.minItems:"always"===t?n=0:"never"===t&&(n=1/0),{"ArrowFunctionExpression, CallExpression, FunctionDeclaration, FunctionExpression, ImportExpression, NewExpression"(t){let n,i=function(e){let t=()=>{let e=0;return t=>("Punctuator"===t.type&&"<"===t.value&&(e+=1),"Punctuator"===t.type&&">"===t.value&&(e-=1),0===e&&(0,nK.isOpeningParenToken)(t))};switch(e.type){case"NewExpression":if(!e.arguments.length&&!((0,nK.isOpeningParenToken)(r.getLastToken(e,{skip:1}))&&(0,nK.isClosingParenToken)(r.getLastToken(e))&&e.callee.range[1]<e.range[1]))return null;case"CallExpression":return{leftParen:r.getTokenAfter(e.callee,t()),rightParen:r.getLastToken(e)};case"FunctionDeclaration":case"FunctionExpression":{let n=r.getFirstToken(e,t());return{leftParen:n,rightParen:e.params.length?r.getTokenAfter(e.params[e.params.length-1],nK.isClosingParenToken):r.getTokenAfter(n)}}case"ArrowFunctionExpression":{let t=r.getFirstToken(e,{skip:+!!e.async});if(!(0,nK.isOpeningParenToken)(t))return null;return{leftParen:t,rightParen:e.params.length?r.getTokenAfter(e.params[e.params.length-1],nK.isClosingParenToken):r.getTokenAfter(t)}}case"ImportExpression":return{leftParen:r.getFirstToken(e,1),rightParen:r.getLastToken(e)};default:throw TypeError(`unexpected node with type ${e.type}`)}}(t);if(n="ImportExpression"===t.type?[t.source,...t.options?[t.options]:[]]:(0,nK.isFunction)(t)?t.params:t.arguments,i){let t,a,l,p,c,u,f;t=i.leftParen,a=i.rightParen,l=r.getTokenAfter(t),p=r.getTokenBefore(a),c=!(0,nK.isTokenOnSameLine)(t,l),u=!(0,nK.isTokenOnSameLine)(p,a),f=o(n,c),c&&!f?e.report({node:t,messageId:"unexpectedAfter",fix:rk(r,t,l,"")}):!c&&f&&e.report({node:t,messageId:"expectedAfter",fix:e=>e.insertTextAfter(t,"\n")}),u&&!f?e.report({node:a,messageId:"unexpectedBefore",fix:rk(r,p,a,"")}):!u&&f&&e.report({node:a,messageId:"expectedBefore",fix:e=>e.insertTextBefore(a,"\n")}),s&&function(t,n){let i=t.leftParen,s=o(n,!(0,nK.isTokenOnSameLine)(i,r.getTokenAfter(i)));for(let t=0;t<=n.length-2;t++){let r=n[t],i=n[t+1];(0,nK.isTokenOnSameLine)(r,i)&&s&&e.report({node:r,messageId:"expectedBetween",fix:e=>e.insertTextBefore(i,"\n")})}}(i,n)}}}}});let r4={oneOf:[{type:"string",enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]};var r6=rE({name:"generator-star-spacing",meta:{type:"layout",docs:{description:"Enforce consistent spacing around `*` operators in generator functions"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"},named:r4,anonymous:r4,method:r4,shorthand:r4},additionalProperties:!1}]}],defaultOptions:[{before:!0,after:!1}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e,[t]){let n={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function r(e,t){return e?"string"==typeof e?n[e]:Object.assign({},t,e):t}let i=function(){let e=r(t,n.before),{named:i,anonymous:s,method:a,shorthand:o}=t;return{named:r(i,e),anonymous:r(s,e),method:r(a,e),shorthand:r(o??a,e)}}(),s=e.sourceCode;function a(e){return"*"===e.value&&"Punctuator"===e.type}function o(t,n,r,s){if(!!(s.range[0]-r.range[1])!==i[t][n]){let a="*"===r.value,o=i[t][n],l=a?r:s,p=`${o?"missing":"unexpected"}${n[0].toUpperCase()+n.slice(1)}`;e.report({node:l,messageId:p,fix:e=>o?a?e.insertTextAfter(l," "):e.insertTextBefore(l," "):e.removeRange([r.range[1],s.range[0]])})}}function l(e){if(!e.generator)return;let t=s.getFirstToken("method"in e.parent&&e.parent.method||"MethodDefinition"===e.parent.type?e.parent:e,a),n=s.getTokenBefore(t),r=s.getTokenAfter(t),i="named";"Property"===e.parent.type&&e.parent.method?i="shorthand":"MethodDefinition"===e.parent.type?i="method":e.id||(i="anonymous"),("method"!==i&&"shorthand"!==i||t!==s.getFirstToken(e.parent))&&o(i,"before",n,t),o(i,"after",t,r)}return{FunctionDeclaration:l,FunctionExpression:l}}}),r5=rE({name:"implicit-arrow-linebreak",meta:{type:"layout",docs:{description:"Enforce the location of arrow function bodies"},fixable:"whitespace",schema:[{type:"string",enum:["beside","below"]}],defaultOptions:["beside"],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(e,[t]){let n=e.sourceCode;return{ArrowFunctionExpression:r=>(function(r){if("BlockStatement"===r.body.type)return;let i=n.getTokenBefore(r.body,nK.isNotOpeningParenToken),s=n.getTokenAfter(i),a=(0,nK.isTokenOnSameLine)(i,s);a&&"below"===t?e.report({node:s,messageId:"expected",fix:e=>e.insertTextBefore(s,"\n")}):a||"beside"!==t||e.report({node:s,messageId:"unexpected",fix:rk(n,i,s," ")})})(r)}}}),r9=rE({name:"indent-binary-ops",meta:{type:"layout",docs:{description:"Indentation for binary operators"},fixable:"whitespace",schema:[{oneOf:[{type:"integer",minimum:0},{type:"string",enum:["tab"]}]}],defaultOptions:[2],messages:{wrongIndentation:"Expected indentation of {{expected}}"}},create:(e,t)=>{let{sourceCode:n}=e,r="tab"===t[0]?" ":" ".repeat(t[0]??2),i=new Map;function s(e){return i.has(e)?i.get(e):n.lines[e-1].match(/^\s*/)?.[0]??""}function a(a,o){var l,p;if(a.loc.start.line===a.loc.end.line)return;let c=n.getFirstToken(o),u=n.getTokenBefore(c);for(;"("===u.value;)if(c=u,(u=n.getTokenBefore(c)).range[0]<=o.parent.range[0])return;let f=n.getTokenBefore(a),d=n.getTokenBefore(u);if(c.loc.start.line===d.loc.start.line)return;let m=(l=d.loc.start.line,n.tokensAndComments.find(e=>e.loc.start.line===l)),h=(p=d.loc.start.line,[...n.tokensAndComments].reverse().find(e=>e.loc.end.line===p)),g=re(m)&&!["typeof","instanceof","this"].includes(m.value)||m?.type==="Identifier"&&"type"===m.value&&function(t,n){for(;n.parent;)if("TSTypeAliasDeclaration"===(n=n.parent).type&&e.sourceCode.getTokenBefore(n.id)===t)return!0;return!1}(m,a)||[":","[","(","<"].concat(n0).includes(h?.value||"")||["[","(","{","=>",":"].concat(n0).includes(f?.value||"")&&m?.loc.start.line===f?.loc.start.line,y=h?.value===")"&&function(e){let t=n.tokensAndComments.filter(t=>t.loc.start.line===e),r=0,i=0;for(let e of t)"("===e.value&&r++,")"===e.value&&i++;return r<i}(d.loc.start.line)&&!["]",")","}"].includes(m?.value||""),x=s(d.loc.start.line),T=s(c.loc.start.line),S=function(e,n,i){if(n&&!i)return e+r;if(!n&&i)return"tab"===t[0]?e.slice(1):e.slice(t[0]??2);return e}(x,g,y);if(S!==T){let r={line:c.loc.start.line,column:0},s={line:c.loc.start.line,column:T.length};e.report({loc:{start:r,end:s},messageId:"wrongIndentation",data:{expected:`${S.length} ${"tab"===t[0]?"tab":"space"}${1===S.length?"":"s"}`},fix:e=>e.replaceTextRange([n.getIndexFromLoc(r),n.getIndexFromLoc(s)],S)}),i.set(c.loc.start.line,S)}}return{BinaryExpression(e){a(e,e.right)},LogicalExpression(e){a(e,e.right)},TSUnionType(e){e.types.length>1&&e.types.forEach(t=>{a(e,t)})},TSIntersectionType(e){e.types.length>1&&e.types.forEach(t=>{a(e,t)})}}}});let r8=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition",e4.AST_NODE_TYPES.AccessorProperty,"RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression","ImportAttribute",e4.AST_NODE_TYPES.TSAbstractKeyword,e4.AST_NODE_TYPES.TSAnyKeyword,e4.AST_NODE_TYPES.TSBooleanKeyword,e4.AST_NODE_TYPES.TSNeverKeyword,e4.AST_NODE_TYPES.TSNumberKeyword,e4.AST_NODE_TYPES.TSStringKeyword,e4.AST_NODE_TYPES.TSSymbolKeyword,e4.AST_NODE_TYPES.TSUndefinedKeyword,e4.AST_NODE_TYPES.TSUnknownKeyword,e4.AST_NODE_TYPES.TSVoidKeyword,e4.AST_NODE_TYPES.TSNullKeyword,e4.AST_NODE_TYPES.TSAbstractPropertyDefinition,e4.AST_NODE_TYPES.TSAbstractAccessorProperty,e4.AST_NODE_TYPES.TSAbstractMethodDefinition,e4.AST_NODE_TYPES.TSArrayType,e4.AST_NODE_TYPES.TSAsExpression,e4.AST_NODE_TYPES.TSCallSignatureDeclaration,e4.AST_NODE_TYPES.TSConditionalType,e4.AST_NODE_TYPES.TSConstructorType,e4.AST_NODE_TYPES.TSConstructSignatureDeclaration,e4.AST_NODE_TYPES.TSDeclareFunction,e4.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,e4.AST_NODE_TYPES.TSEnumDeclaration,e4.AST_NODE_TYPES.TSEnumBody,e4.AST_NODE_TYPES.TSEnumMember,e4.AST_NODE_TYPES.TSExportAssignment,e4.AST_NODE_TYPES.TSExternalModuleReference,e4.AST_NODE_TYPES.TSFunctionType,e4.AST_NODE_TYPES.TSImportType,e4.AST_NODE_TYPES.TSIndexedAccessType,e4.AST_NODE_TYPES.TSIndexSignature,e4.AST_NODE_TYPES.TSInferType,e4.AST_NODE_TYPES.TSInterfaceBody,e4.AST_NODE_TYPES.TSInterfaceDeclaration,e4.AST_NODE_TYPES.TSInterfaceHeritage,e4.AST_NODE_TYPES.TSImportEqualsDeclaration,e4.AST_NODE_TYPES.TSLiteralType,e4.AST_NODE_TYPES.TSMappedType,e4.AST_NODE_TYPES.TSMethodSignature,e4.AST_NODE_TYPES.TSModuleBlock,e4.AST_NODE_TYPES.TSModuleDeclaration,e4.AST_NODE_TYPES.TSNonNullExpression,e4.AST_NODE_TYPES.TSParameterProperty,e4.AST_NODE_TYPES.TSPropertySignature,e4.AST_NODE_TYPES.TSQualifiedName,e4.AST_NODE_TYPES.TSRestType,e4.AST_NODE_TYPES.TSThisType,e4.AST_NODE_TYPES.TSTupleType,e4.AST_NODE_TYPES.TSTypeAliasDeclaration,e4.AST_NODE_TYPES.TSTypeAnnotation,e4.AST_NODE_TYPES.TSTypeLiteral,e4.AST_NODE_TYPES.TSTypeOperator,e4.AST_NODE_TYPES.TSTypeParameter,e4.AST_NODE_TYPES.TSTypeParameterDeclaration,e4.AST_NODE_TYPES.TSTypeParameterInstantiation,e4.AST_NODE_TYPES.TSTypeReference,e4.AST_NODE_TYPES.Decorator]);var r7=class{_values;constructor(e){this._values=Array(e+1)}insert(e,t){this._values[e]=t}findLastNotAfter(e){let t=this._values;for(let n=e;n>=0;n--){let e=t[n];if(e)return e}}deleteRange(e,t){this._values.fill(void 0,e,t)}},ie=class{sourceCode;firstTokensByLineNumber;constructor(e){this.sourceCode=e,this.firstTokensByLineNumber=new Map;let t=e.tokensAndComments;for(let n=0;n<t.length;n++){let r=t[n];this.firstTokensByLineNumber.has(r.loc.start.line)||this.firstTokensByLineNumber.set(r.loc.start.line,r),!this.firstTokensByLineNumber.has(r.loc.end.line)&&e.text.slice(r.range[1]-r.loc.end.column,r.range[1]).trim()&&this.firstTokensByLineNumber.set(r.loc.end.line,r)}}getFirstTokenOfLine(e){return this.firstTokensByLineNumber.get(e.loc.start.line)}isFirstTokenOfLine(e){return this.getFirstTokenOfLine(e)===e}getTokenIndent(e){return this.sourceCode.text.slice(e.range[0]-e.loc.start.column,e.range[0])}},it=class{_tokenInfo;_indentSize;_indentType;_indexMap;_lockedFirstTokens=new WeakMap;_desiredIndentCache=new WeakMap;_ignoredTokens=new WeakSet;constructor(e,t,n,r){this._tokenInfo=e,this._indentSize=t,this._indentType=n,this._indexMap=new r7(r),this._indexMap.insert(0,{offset:0,from:null,force:!1})}_getOffsetDescriptor(e){return this._indexMap.findLastNotAfter(e.range[0])}matchOffsetOf(e,t){this._lockedFirstTokens.set(t,e)}setDesiredOffset(e,t,n){e&&this.setDesiredOffsets(e.range,t,n)}setDesiredOffsets(e,t,n,r=!1){let i={offset:n,from:t,force:r},s=this._indexMap.findLastNotAfter(e[1]),a=t&&t.range[0]>=e[0]&&t.range[1]<=e[1],o=a&&this._getOffsetDescriptor(t);this._indexMap.deleteRange(e[0]+1,e[1]),this._indexMap.insert(e[0],i),a&&(this._indexMap.insert(t.range[0],o),this._indexMap.insert(t.range[1],i)),this._indexMap.insert(e[1],s)}getDesiredIndent(e){if(!this._desiredIndentCache.has(e))if(this._ignoredTokens.has(e))this._desiredIndentCache.set(e,this._tokenInfo.getTokenIndent(e));else if(this._lockedFirstTokens.has(e)){let t=this._lockedFirstTokens.get(e),n=this._tokenInfo.getFirstTokenOfLine(t);this._desiredIndentCache.set(e,this.getDesiredIndent(n)+this._indentType.repeat(t.loc.start.column-n.loc.start.column))}else{let t=this._getOffsetDescriptor(e),n=!t.from||t.from.loc.start.line!==e.loc.start.line||/^\s*?\n/u.test(e.value)||t.force?t.offset*this._indentSize:0;this._desiredIndentCache.set(e,(t.from?this.getDesiredIndent(t.from):"")+this._indentType.repeat(n))}return this._desiredIndentCache.get(e)}ignoreToken(e){this._tokenInfo.isFirstTokenOfLine(e)&&this._ignoredTokens.add(e)}getFirstDependency(e){return this._getOffsetDescriptor(e).from}};let ir={oneOf:[{type:"integer",minimum:0},{type:"string",enum:["first","off"]}]};var ii=rE({name:"indent",meta:{type:"layout",docs:{description:"Enforce consistent indentation"},fixable:"whitespace",schema:[{oneOf:[{type:"string",enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0},VariableDeclarator:{oneOf:[ir,{type:"object",properties:{var:ir,let:ir,const:ir,using:ir},additionalProperties:!1}]},assignmentOperator:{oneOf:[{type:"integer",minimum:0},{type:"string",enum:["off"]}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{type:"string",enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{type:"string",enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:ir,body:{type:"integer",minimum:0},returnType:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:ir,body:{type:"integer",minimum:0},returnType:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:ir},additionalProperties:!1},ArrayExpression:ir,ObjectExpression:ir,ImportDeclaration:ir,flatTernaryExpressions:{type:"boolean"},offsetTernaryExpressions:{oneOf:[{type:"boolean"},{type:"object",properties:{CallExpression:{type:"boolean"},AwaitExpression:{type:"boolean"},NewExpression:{type:"boolean"}},additionalProperties:!1}]},offsetTernaryExpressionsOffsetCallExpressions:{type:"boolean"},ignoredNodes:{type:"array",items:{type:"string",not:{type:"string",pattern:":exit$"}}},ignoreComments:{type:"boolean"},tabLength:{type:"number"}},additionalProperties:!1}],defaultOptions:[4,{SwitchCase:1,flatTernaryExpressions:!1,ignoredNodes:[]}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},create(e,t){var n;if(!("object"==typeof(n=e.sourceCode)&&null!==n&&"isESTree"in n&&!0===n.isESTree))return{};nW(e.options[1],"offsetTernaryExpressionsOffsetCallExpressions","offsetTernaryExpressions.CallExpression","indent");let r="space",i=4,s={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1,using:1},outerIIFEBody:1,assignmentOperator:1,FunctionDeclaration:{parameters:1,body:1,returnType:1},FunctionExpression:{parameters:1,body:1,returnType:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1,offsetTernaryExpressions:!1,offsetTernaryExpressionsOffsetCallExpressions:!0,tabLength:4};if(t.length){"tab"===t[0]?(i=1,r="tab"):(i=t[0]??i,r="space");let e=t[1];e&&(Object.assign(s,e),("number"==typeof e.VariableDeclarator||"first"===e.VariableDeclarator)&&(s.VariableDeclarator={var:e.VariableDeclarator,let:e.VariableDeclarator,const:e.VariableDeclarator,using:e.VariableDeclarator}))}let a=e.sourceCode,o=new ie(a),l=new it(o,i,"space"===r?" ":" ",a.text.length),p=new WeakSet;function c(e,t,n){let i=`space${1===t?"":"s"}`,s=`tab${1===n?"":"s"}`;return{expected:`${e} ${r}${1===e?"":"s"}`,actual:t>0?"space"===r?t:`${t} ${i}`:n>0?"tab"===r?n:`${n} ${s}`:"0"}}function u(e,t){return o.getTokenIndent(e)===t}function f(e,t,n,r){function i(e){let n=a.getTokenBefore(e);for(;(0,nK.isOpeningParenToken)(n)&&n!==t;)n=a.getTokenBefore(n);return a.getTokenAfter(n)}l.setDesiredOffsets([t.range[1],n.range[0]],t,"number"==typeof r?r:1),l.setDesiredOffset(n,t,0),("first"!==r||!e.length||e[0])&&e.forEach((n,s)=>{if(n&&("off"===r&&l.ignoreToken(i(n)),0!==s))if("first"===r&&o.isFirstTokenOfLine(i(n)))l.matchOffsetOf(i(e[0]),i(n));else{let r,o=e[s-1],p=o&&i(o),c=o&&a.getLastToken(o);o&&c.loc.end.line-(null===(r=c.value.match(/\s*$/u)[0].match(n3()))?0:r.length)>t.loc.end.line&&l.setDesiredOffsets([o.range[1],n.range[1]],p,0)}})}function d(e){if("BlockStatement"!==e.type){let t=a.getTokenBefore(e,nK.isNotOpeningParenToken),n=a.getFirstToken(e),r=a.getLastToken(e);for(;(0,nK.isOpeningParenToken)(a.getTokenBefore(n))&&(0,nK.isClosingParenToken)(a.getTokenAfter(r));)n=a.getTokenBefore(n),r=a.getTokenAfter(r);l.setDesiredOffsets([n.range[0],r.range[1]],t,1)}}function m(e){let t;t=e.arguments.length?a.getTokenAfter(e.typeArguments??e.callee,nK.isOpeningParenToken):a.getLastToken(e,1);let n=a.getLastToken(e);if(p.add(t),p.add(n),"optional"in e&&e.optional){let n=a.getTokenAfter(e.callee,nK.isOptionalChainPunctuator),r=a.getTokensBetween(e.callee,n,{filter:nK.isClosingParenToken}).length,i=r?a.getTokenBefore(e.callee,{skip:r-1}):a.getFirstToken(e.callee),s=a.getTokenBefore(n),o=(0,nK.isTokenOnSameLine)(s,t)?s:i;l.setDesiredOffset(n,o,1)}let r="TaggedTemplateExpression"===e.callee.type?a.getFirstToken(e.callee.quasi):e.typeArguments??t,i=a.getTokenBefore(r);l.setDesiredOffset(t,i,0),f(e.arguments,t,n,s.CallExpression.arguments)}function h(e){let t=new Set(a.getTokens(e,{includeComments:!0}));t.forEach(e=>{if(!t.has(l.getFirstDependency(e))){let t=o.getFirstTokenOfLine(e);e===t?l.ignoreToken(e):l.setDesiredOffset(e,t,0)}})}function g(e,t){let n=e.loc.end.line,r=t.loc.start.line;if(n===r||n===r-1)return!1;for(let e=n+1;e<r;++e)if(!o.firstTokensByLineNumber.has(e))return!0;return!1}let y=new Set;function x(e){let t=a.getTokenBefore(e),n=a.getTokenAfter(e);"number"==typeof s.assignmentOperator?(l.setDesiredOffset(e,t,s.assignmentOperator),l.setDesiredOffset(n,e,s.assignmentOperator)):(l.ignoreToken(e),l.ignoreToken(n))}function T(e){let t=e.type===e4.AST_NODE_TYPES.TSTupleType?e.elementTypes:e.elements,n=a.getFirstToken(e);f(t,n,a.getTokenAfter([...t].reverse().find(e=>e)||n,nK.isClosingBracketToken),s.ArrayExpression)}function S(e,t){let n=a.getFirstToken(e,nK.isOpeningBraceToken);f(t,n,a.getTokenAfter(t.length?t[t.length-1]:n,nK.isClosingBraceToken),s.ObjectExpression)}function b(e,t,n,r){let i=a.getFirstToken(e);if(s.flatTernaryExpressions&&(0,nK.isTokenOnSameLine)(t,n)&&!function(e,t){let n=t;for(;n.parent&&!n.parent.type.endsWith("Statement")&&!n.parent.type.endsWith("Declaration");)n=n.parent;return!(n=n.parent)||n.loc.start.line===e.loc.start.line}(i,e))return;let o=!0===s.offsetTernaryExpressions?{CallExpression:s.offsetTernaryExpressionsOffsetCallExpressions??!0,AwaitExpression:s.offsetTernaryExpressionsOffsetCallExpressions??!0,NewExpression:!0}:s.offsetTernaryExpressions;function p(e,t){let n=1;if(o){let r=n5(e).type;("Punctuator"===t.type||o[r])&&(n=2)}l.setDesiredOffset(t,i,n)}let c=a.getFirstTokenBetween(t,n,n7),u=a.getFirstTokenBetween(n,r,nK.isColonToken),f=a.getTokenAfter(c),d=a.getTokenBefore(u),m=a.getTokenAfter(u);l.setDesiredOffset(c,i,1),l.setDesiredOffset(u,i,1),p(n,f),(0,nK.isTokenOnSameLine)(d,m)?l.setDesiredOffset(m,f,0):p(r,m)}function E(e,t,n){let r=a.getFirstTokenBetween(e,t,e=>e.value===n),i=a.getTokenAfter(r);l.ignoreToken(r),l.ignoreToken(i),l.setDesiredOffset(i,r,0)}function k(e,t,n,r=!1){let i=a.getFirstTokenBetween(t,n,nK.isNotClosingParenToken),o=a.getTokenAfter(i),p=a.getTokensBetween(t,n,{filter:nK.isClosingParenToken}).length,c=p?a.getTokenBefore(t,{skip:p-1}):a.getFirstToken(t),u=a.getTokenBefore(i),f=r?i:o;r&&(l.setDesiredOffset(a.getLastToken(e),i,0),l.setDesiredOffsets(n.range,i,1));let d=(0,nK.isTokenOnSameLine)(u,f)?u:c;"number"==typeof s.MemberExpression?(l.setDesiredOffset(i,d,s.MemberExpression),l.setDesiredOffset(o,r?i:d,s.MemberExpression)):(l.ignoreToken(i),l.ignoreToken(o),l.setDesiredOffset(i,d,0),l.setDesiredOffset(o,i,0))}function v(e){let t;t=e.parent&&function(e){if(!e.parent||"CallExpression"!==e.parent.type||e.parent.callee!==e)return!1;let t=e.parent&&e.parent.parent;for(;"UnaryExpression"===t.type&&["!","~","+","-"].includes(t.operator)||"AssignmentExpression"===t.type||"LogicalExpression"===t.type||"SequenceExpression"===t.type||"VariableDeclarator"===t.type;)t=t.parent;return("ExpressionStatement"===t.type||"VariableDeclaration"===t.type)&&"Program"===t.parent.type}(e.parent)?s.outerIIFEBody:e.parent&&("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)?s.FunctionExpression.body:e.parent&&"FunctionDeclaration"===e.parent.type?s.FunctionDeclaration.body:1,nG.has(e.parent.type)||l.setDesiredOffset(a.getFirstToken(e),a.getFirstToken(e.parent),0),f(e.type===e4.AST_NODE_TYPES.TSEnumBody?e.members:e.body,a.getFirstToken(e),a.getLastToken(e),t)}function A(e,t){let n=a.getFirstToken(e),r=a.getTokenBefore(t[0],nK.isNotOpeningParenToken);l.setDesiredOffsets([r.range[0],e.body.range[0]],n,1)}function w(e){let t,n=a.getFirstToken(e),r=a.getLastToken(e);if(e.computed){let r=a.getTokenBefore(e.key,nK.isOpeningBracketToken),i=t=a.getTokenAfter(e.key,nK.isClosingBracketToken),s=[r.range[1],i.range[0]];r!==n&&l.setDesiredOffset(r,n,0),l.setDesiredOffsets(s,r,1),l.setDesiredOffset(i,r,0)}else{let r=t=a.getFirstToken(e.key);e.decorators?.length||r===n||l.setDesiredOffset(r,n,1)}if(e.value){let t=a.getTokenBefore(e.value,n8);x(t),(0,nK.isSemicolonToken)(r)&&l.setDesiredOffset(r,t,1)}else(0,nK.isSemicolonToken)(r)&&l.setDesiredOffset(r,t,1)}let C=[],_={};for(let[t,n]of Object.entries({ArrayExpression:T,ArrayPattern:T,ObjectExpression(e){S(e,e.properties)},ObjectPattern(e){S(e,e.properties)},ArrowFunctionExpression(e){let t=a.getFirstToken(e,{skip:+!!e.async});if((0,nK.isOpeningParenToken)(t)){let n=a.getTokenBefore(e.returnType??e.body,{filter:nK.isClosingParenToken});p.add(t),p.add(n),f(e.params,t,n,s.FunctionExpression.parameters)}d(e.body)},AssignmentExpression(e){x(a.getFirstTokenBetween(e.left,e.right,t=>t.value===e.operator))},AssignmentPattern(e){x(a.getFirstTokenBetween(e.left,e.right,n8))},BinaryExpression(e){E(e.left,e.right,e.operator)},LogicalExpression(e){E(e.left,e.right,e.operator)},BlockStatement:v,ClassBody:v,CallExpression:m,ClassDeclaration(e){e.superClass&&A(e,[e.superClass])},ClassExpression(e){e.superClass&&A(e,[e.superClass])},ConditionalExpression(e){b(e,e.test,e.consequent,e.alternate)},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":function(e){d(e.body)},ExportNamedDeclaration(e){if(null===e.declaration){let t=e.source?a.getTokenBefore(e.source,nK.isClosingBraceToken):a.getLastToken(e,nK.isClosingBraceToken);if(f(e.specifiers,a.getFirstToken(e,{skip:1}),t,1),e.source){let n=a.getTokenAfter(t,e=>"Identifier"===e.type&&"from"===e.value),r=a.getLastToken(e,nK.isNotSemicolonToken);l.setDesiredOffsets([n.range[0],r.range[1]],a.getFirstToken(e),1);let i=a.getLastToken(e,nK.isClosingBraceToken);if(i&&e.source.range[1]<i.range[0]){let t=a.getTokenAfter(e.source,nK.isOpeningBraceToken);f(e.attributes,t,i,1)}}}},ExportAllDeclaration(e){let t=a.getTokenAfter(e.exported||a.getFirstToken(e),e=>"Identifier"===e.type&&"from"===e.value),n=a.getLastToken(e,nK.isNotSemicolonToken);l.setDesiredOffsets([t.range[0],n.range[1]],a.getFirstToken(e),1);let r=a.getLastToken(e,nK.isClosingBraceToken);if(r&&e.source.range[1]<r.range[0]){let t=a.getTokenAfter(e.source,nK.isOpeningBraceToken);f(e.attributes,t,r,1)}},ForStatement(e){let t=a.getFirstToken(e,1);e.init&&l.setDesiredOffsets(e.init.range,t,1),e.test&&l.setDesiredOffsets(e.test.range,t,1),e.update&&l.setDesiredOffsets(e.update.range,t,1),d(e.body)},"FunctionDeclaration, FunctionExpression":function(e){let t=a.getTokenBefore(e.returnType??e.body,{filter:nK.isClosingParenToken}),n=a.getTokenBefore(e.params.length?e.params[0].decorators?.[0]??e.params[0]:t,{filter:nK.isOpeningParenToken});p.add(n),p.add(t),f(e.params,n,t,s[e.type].parameters),e.returnType&&l.setDesiredOffsets(e.returnType.range,t,s[e.type].returnType)},IfStatement(e){d(e.consequent),e.alternate&&d(e.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit":function(e){let t;for(let n of("IfStatement"===e.type?(t=[e.consequent],e.alternate&&t.push(e.alternate)):t=[e.body],t)){let t=a.getLastToken(n);if((0,nK.isSemicolonToken)(t)){let n=a.getTokenBefore(t),r=a.getTokenAfter(t);!(0,nK.isTokenOnSameLine)(n,t)&&r&&(0,nK.isTokenOnSameLine)(t,r)&&l.setDesiredOffset(t,a.getFirstToken(e),0)}}},ImportDeclaration(e){if(e.specifiers.some(e=>"ImportSpecifier"===e.type)){let t=a.getFirstToken(e,nK.isOpeningBraceToken),n=a.getTokenBefore(e.source,nK.isClosingBraceToken);f(e.specifiers.filter(e=>"ImportSpecifier"===e.type),t,n,s.ImportDeclaration)}let t=e.specifiers.length?a.getTokenAfter(e.specifiers[e.specifiers.length-1],e=>"Identifier"===e.type&&"from"===e.value):a.getFirstToken(e,e=>"Identifier"===e.type&&"from"===e.value),n=a.getLastToken(e,nK.isNotSemicolonToken);t&&l.setDesiredOffsets([t.range[0],n.range[1]],a.getFirstToken(e),1);let r=a.getLastToken(e,nK.isClosingBraceToken);if(r&&e.source.range[1]<r.range[0]){let i=a.getTokenAfter(e.source,nK.isOpeningBraceToken);if(!t){let t=a.getTokenBefore(i,e=>"with"===e.value);l.setDesiredOffsets([t.range[0],n.range[1]],a.getFirstToken(e),1)}f(e.attributes,i,r,1)}},ImportExpression(e){let t=a.getFirstToken(e,1),n=a.getLastToken(e);p.add(t),p.add(n),l.setDesiredOffset(t,a.getTokenBefore(t),0),f([e.source],t,n,s.CallExpression.arguments)},MemberExpression(e){k(e,e.object,e.property,e.computed)},MetaProperty(e){k(e,e.meta,e.property)},NewExpression(e){(e.arguments.length>0||(0,nK.isClosingParenToken)(a.getLastToken(e))&&(0,nK.isOpeningParenToken)(a.getLastToken(e,1)))&&m(e)},Property(e){if(!e.shorthand&&!e.method&&"init"===e.kind){let t=a.getFirstTokenBetween(e.key,e.value,nK.isColonToken);l.ignoreToken(a.getTokenAfter(t))}},PropertyDefinition:w,AccessorProperty:w,TSAbstractPropertyDefinition:w,TSAbstractAccessorProperty:w,StaticBlock(e){let t=a.getFirstToken(e,{skip:1}),n=a.getLastToken(e);f(e.body,t,n,s.StaticBlock.body)},SwitchStatement(e){var t;let n=a.getTokenAfter(e.discriminant,nK.isOpeningBraceToken),r=a.getLastToken(e);l.setDesiredOffsets([n.range[1],r.range[0]],n,s.SwitchCase),e.cases.length&&(t=e.cases[e.cases.length-1],a.getTokensBetween(t,r,{includeComments:!0,filter:nK.isCommentToken})).forEach(e=>l.ignoreToken(e))},SwitchCase(e){if(1!==e.consequent.length||"BlockStatement"!==e.consequent[0].type){let t=a.getFirstToken(e),n=a.getTokenAfter(e);l.setDesiredOffsets([t.range[1],n.range[0]],t,1)}},TemplateLiteral(e){e.expressions.forEach((t,n)=>{let o=e.quasis[n],p=e.quasis[n+1],c=rT(o)?a.getFirstToken(o):null,u=(0,nK.isTokenOnSameLine)(o,t),f=(0,nK.isTokenOnSameLine)(t,p);if(c||f&&!u){l.setDesiredOffsets([o.range[1],p.range[0]],c,1),l.setDesiredOffset(a.getFirstToken(p),c,0);return}let d=a.text.slice(o.range[1]-o.loc.end.column,o.range[1]-2).split(""),m=d.findIndex(e=>" "!==e&&" "!==e);-1===m&&(m=d.length);let h=d.slice(0,m).filter(e=>" "===e).length,g=m-h+Math.ceil(h/("tab"===r?s.tabLength:i)),y=f?g:g+1;l.setDesiredOffsets([o.range[1],p.range[0]],c,y),l.setDesiredOffset(a.getFirstToken(p),c,g)})},VariableDeclaration(e){if(0===e.declarations.length)return;let t="await using"===e.kind?"using":e.kind,n=Object.hasOwn(s.VariableDeclarator,t)?s.VariableDeclarator[t]:1,r="first"===n,p=a.getFirstToken(e),c=a.getLastToken(e);if(e.declarations.at(-1).loc.start.line>e.loc.start.line){if(r){f(e.declarations,p,c,n);let t=a.getFirstToken(e.declarations[0]);n=(o.getTokenIndent(t).length-o.getTokenIndent(p).length)/i}l.setDesiredOffsets(e.range,p,n,!0)}else r&&(n=1),l.setDesiredOffsets(e.range,p,n);(0,nK.isSemicolonToken)(c)&&l.ignoreToken(c)},VariableDeclarator(e){e.init&&x(a.getTokenBefore(e.init,nK.isNotOpeningParenToken));let t=a.getLastToken(e);(0,nK.isSemicolonToken)(t)&&l.ignoreToken(t)},JSXText(t){if(!t.parent||"JSXElement"!==t.parent.type&&"JSXFragment"!==t.parent.type)return;let n=RegExp(`
3
3
  (${l._indentType}*)[ ]*\\S`,"g"),r=Array.from(String(t.value).matchAll(n),e=>e[1]?e[1].length:0);if(0===r.length)return;let s=a.lines[t.parent.loc.start.line-1].slice(0,t.parent.loc.start.column),o=RegExp(`^[${l._indentType}]+`).exec(s),p=(o?o[0].length:0)+i;r.forEach(n=>{n!==p&&e.report({node:t,messageId:"wrongIndentation",data:c(p,n,n),fix(e){let n=Array(p+1).join(l._indentType),r=t.raw.replace(/\n[\t ]*(\S)/g,(e,t)=>`
4
4
  ${n}${t}`);return e.replaceText(t,r)}})})},JSXAttribute(e){e.value&&x(a.getFirstTokenBetween(e.name,e.value,n8))},JSXElement(e){e.closingElement&&f(e.children,a.getFirstToken(e.openingElement),a.getFirstToken(e.closingElement),1)},JSXOpeningElement(e){let t,n=a.getFirstToken(e);e.selfClosing?(t=a.getLastToken(e,{skip:1}),l.setDesiredOffset(a.getLastToken(e),t,0)):t=a.getLastToken(e),l.setDesiredOffsets(e.name.range,n,0),f(e.attributes,n,t,1)},JSXClosingElement(e){let t=a.getFirstToken(e);l.setDesiredOffsets(e.name.range,t,1)},JSXFragment(e){let t=a.getFirstToken(e.openingFragment),n=a.getFirstToken(e.closingFragment);f(e.children,t,n,1)},JSXOpeningFragment(e){let t=a.getFirstToken(e),n=a.getLastToken(e);l.setDesiredOffsets(e.range,t,1),l.matchOffsetOf(t,n)},JSXClosingFragment(e){let t=a.getFirstToken(e),n=a.getLastToken(e);l.setDesiredOffsets(e.range,t,1);let r=a.getLastToken(e,e=>"/"===e.value);if(r){let e=(0,nK.isTokenOnSameLine)(r,n)?r:n;l.matchOffsetOf(t,e)}},JSXExpressionContainer(e){let t=a.getFirstToken(e),n=a.getLastToken(e);l.setDesiredOffsets([t.range[1],n.range[0]],t,1)},JSXSpreadAttribute(e){let t=a.getFirstToken(e),n=a.getLastToken(e);l.setDesiredOffsets([t.range[1],n.range[0]],t,1)},JSXMemberExpression(e){k(e,e.object,e.property)},TSTypeAliasDeclaration(e){x(a.getTokenBefore(e.typeAnnotation,nK.isNotOpeningParenToken));let t=a.getLastToken(e);(0,nK.isSemicolonToken)(t)&&l.ignoreToken(t)},TSTupleType:T,TSEnumBody:v,TSEnumMember(e){e.initializer&&x(a.getTokenBefore(e.initializer,n8))},TSTypeLiteral(e){S(e,e.members)},TSMappedType(e){let t=a.getFirstToken(e,nK.isOpeningBraceToken),n=a.getLastToken(e,nK.isClosingBraceToken);l.setDesiredOffsets([t.range[1],n.range[0]],t,1),l.setDesiredOffset(n,t,0)},TSAsExpression(e){E(e.expression,e.typeAnnotation,"as")},TSConditionalType(e){b(e,e.extendsType,e.trueType,e.falseType)},TSImportEqualsDeclaration(e){e.moduleReference&&x(a.getTokenBefore(e.moduleReference,n8));let t=a.getLastToken(e);(0,nK.isSemicolonToken)(t)&&l.ignoreToken(t)},TSIndexedAccessType(e){k(e,e.objectType,e.indexType,!0)},TSInterfaceBody:v,TSInterfaceDeclaration(e){0!==e.extends.length&&A(e,e.extends)},TSQualifiedName(e){k(e,e.left,e.right)},TSTypeParameter(e){e.default&&x(a.getTokenBefore(e.default,n8))},TSTypeParameterDeclaration(e){if(!e.params.length)return;let t=a.getFirstToken(e),n=a.getLastToken(e);f(e.params,t,n,1)},TSTypeParameterInstantiation(e){if(!e.params.length)return;let t=a.getFirstToken(e),n=a.getLastToken(e);f(e.params,t,n,1)},TSModuleBlock:v,"*":function(e){let t=a.getFirstToken(e);t&&!y.has(t)&&l.setDesiredOffsets(e.range,t,0)}}))_[t]=e=>C.push({listener:n,node:e});let O=new Set;function P(e){O.add(e),y.add(a.getFirstToken(e))}let I=s.ignoredNodes.reduce((e,t)=>Object.assign(e,{[t]:P}),{});return{..._,...I,"*:exit":function(e){r8.has(e.type)||P(e)},"Program:exit":function(){s.ignoreComments&&a.getAllComments().forEach(e=>l.ignoreToken(e));for(let e=0;e<C.length;e++){let t=C[e];O.has(t.node)||t.listener?.(t.node)}O.forEach(h),function(e){let t=[],n=[];for(let r=0;r<e.length;r++){let i=e[r];(0,nK.isOpeningParenToken)(i)?t.push(i):(0,nK.isClosingParenToken)(i)&&n.push({left:t.pop(),right:i})}for(let e=n.length-1;e>=0;e--){let t=n[e].left,r=n[e].right;if(!p.has(t)&&!p.has(r)){let e=new Set(a.getTokensBetween(t,r));e.forEach(n=>{e.has(l.getFirstDependency(n))||l.setDesiredOffset(n,t,1)})}l.setDesiredOffset(r,t,0)}}(a.ast.tokens);let t=new WeakMap;for(let e=0;e<a.ast.comments.length;e++){let n=a.ast.comments[e],r=a.getTokenBefore(n,{includeComments:!0}),i=t.has(r)?t.get(r):r;t.set(n,i)}for(let n=1;n<a.lines.length+1;n++){if(!o.firstTokensByLineNumber.has(n))continue;let r=o.firstTokensByLineNumber.get(n);if(r.loc.start.line===n){if((0,nK.isCommentToken)(r)){let e=t.get(r),n=e?a.getTokenAfter(e):a.ast.tokens[0],i=e&&!g(e,r),s=n&&!g(r,n);if(n&&(0,nK.isSemicolonToken)(n)&&!(0,nK.isTokenOnSameLine)(r,n)&&l.setDesiredOffset(r,n,0),i&&u(r,l.getDesiredIndent(e))||s&&u(r,l.getDesiredIndent(n)))continue}u(r,l.getDesiredIndent(r))||function(t,n){let r=Array.from(o.getTokenIndent(t)),i=r.filter(e=>" "===e).length,s=r.filter(e=>" "===e).length;e.report({node:t,messageId:"wrongIndentation",data:c(n.length,i,s),loc:{start:{line:t.loc.start.line,column:0},end:{line:t.loc.start.line,column:t.loc.start.column}},fix(e){let r=[t.range[0]-t.loc.start.column,t.range[0]];return e.replaceTextRange(r,n)}})}(r,l.getDesiredIndent(r))}}}}}});let is=new Set(["a","abbr","acronym","b","bdo","big","button","cite","code","dfn","em","i","img","input","kbd","label","map","object","q","samp","script","select","small","span","strong","sub","sup","textarea","tt","var"]);var ia=rE({name:"jsx-child-element-spacing",meta:{type:"layout",docs:{description:"Enforce or disallow spaces inside of curly braces in JSX attributes and expressions"},schema:[],messages:{spacingAfterPrev:"Ambiguous spacing after previous element {{element}}",spacingBeforeNext:"Ambiguous spacing before next element {{element}}"}},create(e){let t=/^[\t\v\f\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\n\s*\S/,n=/\S[\t\v\f\r \xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000\uFEFF]*\n\s*$/,r=e=>e.openingElement&&e.openingElement.name&&"JSXIdentifier"===e.openingElement.name.type&&e.openingElement.name.name||"",i=e=>"JSXElement"===e.type&&is.has(r(e)),s=s=>{let a=null,o=null;[...s.children,null].forEach(s=>{(a||s)&&(!a||i(a))&&o&&("Literal"===o.type||"JSXText"===o.type)&&(!s||i(s))&&(a&&String(o.value).match(t)?e.report({messageId:"spacingAfterPrev",node:a,loc:a.loc.end,data:{element:r(a)}}):s&&String(o.value).match(n)&&e.report({messageId:"spacingBeforeNext",node:s,loc:s.loc.start,data:{element:r(s)}})),a=o,o=s})};return{JSXElement:s,JSXFragment:s}}}),io=rE({name:"jsx-closing-bracket-location",meta:{type:"layout",docs:{description:"Enforce closing bracket location in JSX"},fixable:"code",schema:[{anyOf:[{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]},{type:"object",properties:{location:{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]}},additionalProperties:!1},{type:"object",properties:{nonEmpty:{oneOf:[{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]},{type:"boolean",enum:[!1]}]},selfClosing:{oneOf:[{type:"string",enum:["after-props","props-aligned","tag-aligned","line-aligned"]},{type:"boolean",enum:[!1]}]}},additionalProperties:!1}]}],defaultOptions:["tag-aligned"],messages:{bracketLocation:"The closing bracket must be {{location}}{{details}}"}},create(e,[t]){let n={"after-props":"placed after the last prop","after-tag":"placed after the opening tag","props-aligned":"aligned with the last prop","tag-aligned":"aligned with the opening tag","line-aligned":"aligned with the line containing the opening tag"},{nonEmpty:r="tag-aligned",selfClosing:i="tag-aligned"}="string"==typeof t?{nonEmpty:t,selfClosing:t}:"location"in t?{nonEmpty:t.location,selfClosing:t.location}:t;function s(e,t){switch(t){case"props-aligned":return e.lastProp.column;case"tag-aligned":return e.opening.column;case"line-aligned":return e.openingStartOfLine.column;default:return null}}function a(e,t){switch(t){case"after-tag":return e.tag.line===e.closing.line;case"after-props":return e.lastProp.lastLine===e.closing.line;case"props-aligned":case"tag-aligned":case"line-aligned":return s(e,t)===e.closing.column;default:return!0}}return{"JSXOpeningElement:exit":function(t){let o,l,p,c,u,f,d,m,h,g,y=t.attributes.at(-1),x=y?y.range[1]:null,T=(c=(p=e.sourceCode).getFirstToken(t).loc.start,u=p.getLastTokens(t,t.selfClosing?2:1)[0].loc.start,f=p.getFirstToken(t.name).loc.start,t.attributes.length&&(l=t.attributes[t.attributes.length-1],l={column:p.getFirstToken(l).loc.start.column,firstLine:p.getFirstToken(l).loc.start.line,lastLine:p.getLastToken(l).loc.end.line}),d=p.lines[c.line-1],m=p.lines[u.line-1],h={openTab:/^\t/.test(d),closeTab:/^\t/.test(m)},g={column:/^\s*/.exec(d)?.[0].length,line:c.line},{isTab:h,tag:f,opening:c,closing:u,lastProp:l,selfClosing:t.selfClosing,openingStartOfLine:g}),S=void 0===T.lastProp?"after-tag":T.opening.line===T.lastProp.lastLine?"after-props":T.selfClosing?i:r,b=!0;"tag-aligned"===S&&(b=T.isTab.openTab===T.isTab.closeTab);let E=e.sourceCode.getCommentsInside(t).at(-1),k=E&&E.range[0]>(y??t.name).range[1];if(("after-props"===S||"after-tag"===S)&&!(a(T,S)&&b)&&k&&(S="line-aligned"),a(T,S)&&b)return;let v={location:n[S],details:""},A=s(T,S);null!==A&&(o=T.lastProp&&T.lastProp.lastLine===T.closing.line,v.details=` (expected column ${A+1}${o?" on the next line)":")"}`),e.report({node:t,messageId:"bracketLocation",loc:T.closing,data:v,fix(n){let r=T.selfClosing?"/>":">";switch(S){case"after-tag":if(x)return n.replaceTextRange([x,t.range[1]],(o?"\n":"")+r);return n.replaceTextRange([t.name.range[1],t.range[1]],(o?"\n":" ")+r);case"after-props":return n.replaceTextRange([x,t.range[1]],(o?"\n":"")+r);case"props-aligned":case"tag-aligned":case"line-aligned":{let i=k?E.range[1]:x;return n.replaceTextRange([i,t.range[1]],`