eslint-plugin-sukka 6.2.0 → 6.2.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.mjs CHANGED
@@ -1,18 +1,18 @@
1
- import*as e from"node:path";import*as t from"node:fs";import{createRule as r}from"@eslint-sukka/shared";import{AST_NODE_TYPES as n,ASTUtils as u}from"@typescript-eslint/utils";function a(e,t){if("string"==typeof t){let e=t;t=t=>t.type===e}for(;e;){if(t(e))return e;e=e.parent}}function i(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function o(e){return e?.type==="MemberExpression"}function s(e){return e?.type==="AwaitExpression"}function d(e,t){return!!i(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function l(e,t){return e?.type==="Literal"&&(Array.isArray(t)?t.includes(e.value):"string"==typeof e.value&&t instanceof RegExp?t.test(e.value):e.value===t)}function c(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function f(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function p({name:e,meta:t,create:r,resolveOptions:n}){return t?.docs&&(t.docs.url??=new URL(e,"https://dimensiondev.github.io/eslint-plugin/src/rules/").toString()),Object.freeze({name:e,meta:t,create(e){let t=n?.(...e.options)??e.options[0];return Object.fromEntries(Object.entries(r(e,t)).filter(e=>e[1]))}})}var m,g,y,h,b,v,x,E=p({name:"array/no-unneeded-flat-map",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `Array#flatMap((x) => x)` when simpler alternatives exist",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple `Array#flatMap()` in array"}},create:e=>({CallExpression(t){var r;if("MemberExpression"!==t.callee.type||!d(t.callee.property,"flatMap")||!(c(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(f(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&f(r.params[0],r.body.body[0].argument))))return;let{property:n}=t.callee;e.report({node:t,messageId:"invalid",*fix(e){yield e.replaceText(n,"flat"),yield*t.arguments.map(t=>e.remove(t))}})}})});let A=new Set(["href","pathname","search","hash","origin"]);var D=p({name:"browser/prefer-location-assign",meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer `location.assign(...)` over `location.*`",recommended:"stylistic"},schema:[],messages:{instead:"Use `location.assign(...)` instead of `location.{{name}}`"}},create:e=>({AssignmentExpression(t){let r=function(e,t){if(d(e,t))return e;for(;o(e);){if(d(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let n=C(r.parent);e.report({node:t,messageId:"instead",data:{name:n},fix:function(e,t,r){let n=C(t.parent);if(A.has(n??"href"))return n=>n.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function C(e){if(o(e)&&i(e.property))return e.property.name}var S=p({name:"jsx/no-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow use template-literal in JSX",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow use template-literal in JSX"}},create:e=>({JSXExpressionContainer(t){if("TemplateLiteral"!==t.expression.type||t.parent?.type==="JSXAttribute")return;let{expression:r}=t;e.report({node:t,messageId:"invalid",fix(n){let u=[...r.expressions,...r.quasis];u.sort((e,t)=>e.range[0]-t.range[0]);let a=u.map(t=>"TemplateElement"===t.type?t.value.cooked:"{"+e.sourceCode.getText(t)+"}");return n.replaceText(t,a.join(""))}})}})}),w=p({name:"jsx/no-unneeded-nested",meta:{type:"suggestion",fixable:"code",docs:{description:"Reduce unneeded JSXFragment nested",recommended:"stylistic"},schema:[],messages:{invalid:"Reduce unneeded JSXFragment nested"}},create(e){let t=e.sourceCode;return{JSXFragment(r){if(1!==r.children.length)return;let n=r.children[0];e.report({node:r,messageId:"invalid",*fix(e){"JSXExpressionContainer"===n.type?"JSXEmptyExpression"!==n.expression.type&&(yield e.replaceText(r,t.getText(n.expression))):yield e.replaceText(r,t.getText(n))}})}}}});let F=/^toLocale(?<name>Upper|Lower)Case$/g;var _=p({name:"string/no-locale-case",meta:{type:"problem",fixable:"code",docs:{description:"Disallow use `String#toLocale{Upper,Lower}Case()`",recommended:"recommended"},schema:[],messages:{instead:"Use `.to{{name}}Case(...)` instead of `.toLocale{{name}}Case()`"}},create:e=>({CallExpression(t){if(t.arguments.length>0||!o(t.callee)||!i(t.callee.property))return;let{property:r}=t.callee,n=F.exec(r.name);n&&e.report({node:t,data:{name:n.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})});function k(e){return JSON.stringify(e)}var T=p({name:"string/no-simple-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow simple template-literal",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple template-literal"}},create:e=>({TemplateLiteral(t){var r;let n=(r=e.sourceCode,t.parent?.type!=="TaggedTemplateExpression"&&1===t.quasis.length&&!function({loc:e}){return!!e&&e.start.line!==e.end.line}(t.quasis[0])&&0===t.expressions.length?e=>{let n=k(t.quasis[0].value.cooked),u=a(t,e=>"Property"===e.type&&e.key===t);return u?e.replaceText(u,`${n}: ${r.getText(u.value)}`):e.replaceText(t,n)}:2===t.quasis.length&&t.quasis.every(({value:e})=>""===e.cooked)&&1===t.expressions.length?e=>e.replaceText(t,r.getText(t.expressions[0])):void 0);n&&e.report({node:t,messageId:"invalid",fix:n})}})});let P=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var I=p({name:"type/no-instanceof-wrapper",meta:{type:"problem",fixable:"code",docs:{description:"Disallow `instanceof` for wrapper objects",recommended:"recommended"},schema:[],messages:{primitive:'Unexpected `instanceof` operator. Use `typeof x === "{{typeName}}"` instead',array:"Unexpected `instanceof` operator. Use `Array.isArray` instead"},replacedBy:["unicorn/no-instanceof-array"]},create(e){let t=e.sourceCode,r=t.scopeManager?.scopes[0]??null,n=P.flatMap(e=>{let t=r?.set.get(e);return!t||t.defs.length>0?[]:t.references??[]});return{Program(){for(let{identifier:r}of n){let n=r.parent;if(n?.type==="BinaryExpression"&&"instanceof"===n.operator&&n.right===r){if("Array"===r.name)e.report({node:n,messageId:"array",fix:e=>e.replaceText(n,`Array.isArray(${t.getText(n.left)})`)});else{let u=r.name.toLowerCase();e.report({node:n,messageId:"primitive",data:{typeName:u},fix:e=>e.replaceText(n,`typeof ${t.getText(n.left)} === ${k(u)}`)})}}}}}}});let B=/\P{ASCII}/u;function j(e,t){return{Program(r){for(let n of r.tokens??[]){let r=function(e){switch(e.type){case"String":case"Template":return e.value.slice(1,-1);case"Identifier":if(e.value.startsWith("#"))return e.value.slice(1);return e.value;case"RegularExpression":return e.regex.pattern;case"JSXText":case"JSXIdentifier":return e.value}return!1}(n);!1!==r&&e.test(r)&&t(n,"code")}for(let n of r.comments??[])e.test(n.value)&&t(n,"comment")}}}function O(e,t){switch(e.type){case"String":case"Template":return r=>{let n=e.value.slice(0,1),u=e.value.slice(-1),a=R(e.value.slice(1,-1),t);return r.replaceText(e,`${n}${a}${u}`)};case"JSXText":return r=>{let n=e.value.replace(t,e=>`&#x${L(e.codePointAt(0))};`);return r.replaceText(e,n)};case"RegularExpression":return r=>{let n=new Set(e.regex.flags);n.add("u");let u=new RegExp(R(e.regex.pattern,t),[...n].join(""));return r.replaceText(e,u.toString())}}}function R(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${L(t)}}`:`\\u${L(t)}`})}function L(e){return e.toString(16).padStart(4,"0").toUpperCase()}p({name:"unicode/specific-set",meta:{type:"problem",fixable:"code",docs:{description:"Limit the range of literal characters"},schema:[{type:"object",properties:{pattern:{type:"string"},flags:{type:"string"},only:{type:"string",enum:["code","comment"]}},additionalProperties:!1}],messages:{illegal:"Illegal character detected"}},resolveOptions:e=>({pattern:e?.pattern?new RegExp(e.pattern,e.flags??"u"):B,only:e?.only}),create:(e,{pattern:t,only:r})=>j(t,(n,u)=>{if(r&&r!==u)return;let a=O(n,RegExp(t.source,"gu"));e.report({node:n,messageId:"illegal",fix:a})})});let N=/[\u061C\u202A-\u202E\u2066-\u2069]/;var M=p({name:"unicode/no-bidi",meta:{type:"problem",fixable:"code",docs:{description:"Detect and stop Trojan Source attacks",recommended:"recommended"},schema:[],messages:{detected:"Detected potential trojan source attack with unicode bidi introduced in this {{kind}}: {{text}}."}},create:e=>j(N,(t,r)=>{let n=RegExp(N.source,"gu"),u={kind:r,text:R(t.value,n)},a=O(t,n);e.report({node:t,data:u,messageId:"detected",fix:a})})});let $=function(){let e=[/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u].map(e=>"string"==typeof e?e:e.source).join("");return RegExp(`[${e}]`,"u")}(/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u);var z=p({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>j($,t=>{let r=O(t,RegExp($.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),U=p({name:"no-redundant-variable",meta:{type:"problem",fixable:"code",docs:{description:"Disallow redundant variable",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Redundant Variable"}},create:e=>({BlockStatement({body:t}){var r;let n=t.find(q);if(!n)return;let u=t[t.indexOf(n)-1];u&&"VariableDeclaration"===u.type&&1===u.declarations.length&&u.declarations.some(({init:e,id:t})=>null!==e&&f(n.argument,t))&&e.report({node:n,messageId:"invalid",fix:(r=e.sourceCode,e=>{let{init:t,id:i}=u.declarations[0];if(!(t&&i&&n.argument))return null;let o=!s(t)||a(t,"TryStatement")?t:t.argument,d=(e=>{if(!i.typeAnnotation)return e;let n=r.getText(i.typeAnnotation.typeAnnotation);return`(${e}) as ${s(t)?`Promise<${n}>`:n}`})(r.getText(o));return[e.remove(u),e.replaceText(n.argument,d)]})})}})});function q(e){return"ReturnStatement"===e.type&&i(e.argument)}var W=p({name:"no-single-return",meta:{type:"suggestion",docs:{description:"Disallow single-return",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Single Return"}},create:e=>({BlockStatement({parent:t,body:r}){if(!c(t))return;let n=function(e,t){let r=t.find(V);if(!r)return;let n=t.find(e=>"VariableDeclaration"===e.type&&"const"!==e.kind&&e.declarations.some(({id:e})=>f(r.argument,e)));if(n)return e.sourceCode.getDeclaredVariables(n).find(({references:e})=>e.every(e=>e.isWriteOnly()||e.identifier.parent===r))}(e,r);for(let{identifier:t}of n?.references??[])t.parent&&e.report({node:t.parent,messageId:"invalid"})}})});function V(e){return"ReturnStatement"===e.type&&i(e.argument)}var Z=p({name:"prefer-early-return",meta:{type:"problem",fixable:"code",docs:{description:"Prefer early returns over full-body conditional wrapping in function declarations",recommended:"stylistic"},schema:[{type:"object",properties:{maximumStatements:{type:"integer",minimum:0}},additionalProperties:!1}],messages:{prefer:"Prefer an early return to a conditionally-wrapped function body"}},resolveOptions:e=>e?.maximumStatements??1,create:(e,t)=>({BlockStatement:function({body:r,parent:n}){var u;if(!c(n)||!(1===r.length&&function(e,t){if(!("IfStatement"===e.type&&null===e.alternate))return!1;let{consequent:r}=e;return"ExpressionStatement"===r.type&&0===t||"BlockStatement"===r.type&&r.body.length>t}(r[0],t)))return;let a=(u=r[0],function*(t){let r;if("IfStatement"!==u.type)return;let{test:n,consequent:a}=u;yield t.insertTextBefore(n,"!("),yield t.insertTextAfter(n,")"),yield t.replaceText(a,"return;");let i=(r=e.sourceCode.getText(a),"BlockStatement"===a.type?r.slice(1,-1):r);yield t.insertTextAfter(u,i)});e.report({node:r[0],messageId:"prefer",fix:a})}})}),G=p({name:"prefer-fetch",meta:{type:"problem",docs:{description:"Enforce fetch",recommended:"stylistic"},schema:[],messages:{callee:"Should use 'fetch' instead"}},create:e=>({ImportDeclaration(t){let r=t.source.value;("axios"===r||"request"===r)&&e.report({node:t,messageId:"callee"})},NewExpression(t){((function({callee:e}){return d(e,"XMLHttpRequest")})(t)||d(t.callee,"ActiveXObject")&&l(t.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return d(e,t)||o(e)&&d(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return d(e,r)&&o(t)&&d(t.property,"load")||o(e)&&d(e.object,r)&&d(e.property,["ajax","get","post","getJSON","getScript"])}(t)||H(t,"axios")||H(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function H(e,t){return d(e.callee,"require")&&l(e.arguments[0],t)}let K=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var X=p({name:"prefer-timer-id",meta:{type:"problem",docs:{description:"Enforce best practice with timer function",recommended:"recommended"},schema:[],messages:{assign:"Timer id should assign to an identifier or member for cleaning up, `const timer = {{name}}(...);`",fix:"Assign timer id to a variable"},hasSuggestions:!0},create:e=>({CallExpression(t){"Identifier"===t.callee.type&&(!K.has(t.callee.name)||function(e){if(!d(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||l(t,0)}(t)||t.parent?.type==="AssignmentExpression"&&t.parent.right===t||t.parent?.type==="VariableDeclarator"&&t.parent.init===t||e.report({node:t,messageId:"assign",data:{name:t.callee.name},suggest:[{messageId:"fix",fix:e=>e.insertTextBefore(t,"const timer = ")}]}))}})}),J="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Y(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Q(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var ee=/*@__PURE__*/Q(e),et=function(e){let t=ee.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/${t}.md`},er=/*@__PURE__*/Y(et);let en={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(en))Object.freeze(en[e]);Object.freeze(en);let eu=new Set(["parent","leadingComments","trailingComments"]);function ea(e){return!eu.has(e)&&"_"!==e[0]}function ei(e,t){let r=t.range[0],n=e,u=!1;do for(let e of(u=!1,n.childScopes)){let t=e.block.range;if(t[0]<=r&&r<t[1]){n=e,u=!0;break}}while(u);return n}function eo(e,t){let r="",n=e;for("string"==typeof t?r=t:(r=t.name,n=ei(n,t));null!=n;){let e=n.set.get(r);if(null!=e)return e;n=n.upper}return null}function es(e){return!this(e)}function ed(e){return es.bind(e)}function el(e,t){return"Punctuator"===e.type&&e.value===t}function ec(e){return el(e,"=>")}function ef(e){return el(e,",")}function ep(e){return el(e,";")}function em(e){return el(e,":")}function eg(e){return el(e,"(")}function ey(e){return el(e,")")}function eh(e){return el(e,"[")}function eb(e){return el(e,"]")}function ev(e){return el(e,"{")}function ex(e){return el(e,"}")}function eE(e){return["Block","Line","Shebang"].includes(e.type)}let eA=ed(ec),eD=ed(ef),eC=ed(ep),eS=ed(em),ew=ed(eg),eF=ed(ey),e_=ed(eh),ek=ed(eb),eT=ed(ev),eP=ed(ex),eI=ed(eE);function eB(e,t){let r=e.parent,n=null,u=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,ec);n=r.loc.start,u=r.loc.end}else n="Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?r.loc.start:e.loc.start,u=(e.id?t.getTokenAfter(e.id,eg):t.getFirstToken(e,eg)).loc.start;return{start:{...n},end:{...u}}}let ej="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},eO=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"])),eR=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]),eN=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function eM(e,t){let r=[];for(let n=0;n<e.length;++n){let u=e[n];if(null==u)r.length=n+1;else if("SpreadElement"===u.type){let e=ez(u.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=ez(u,t);if(null==e)return null;r.push(e.value)}}return r}let e$=Object.freeze({ArrayExpression(e,t){let r=eM(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?ez(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=ez(e.left,t),n=ez(e.right,t);if(null!=r&&null!=n)switch(e.operator){case"==":return{value:r.value==n.value};case"!=":return{value:r.value!=n.value};case"===":return{value:r.value===n.value};case"!==":return{value:r.value!==n.value};case"<":return{value:r.value<n.value};case"<=":return{value:r.value<=n.value};case">":return{value:r.value>n.value};case">=":return{value:r.value>=n.value};case"<<":return{value:r.value<<n.value};case">>":return{value:r.value>>n.value};case">>>":return{value:r.value>>>n.value};case"+":return{value:r.value+n.value};case"-":return{value:r.value-n.value};case"*":return{value:r.value*n.value};case"/":return{value:r.value/n.value};case"%":return{value:r.value%n.value};case"**":return{value:r.value**n.value};case"|":return{value:r.value|n.value};case"^":return{value:r.value^n.value};case"&":return{value:r.value&n.value}}return null},CallExpression(e,t){let r=e.callee,n=eM(e.arguments,t);if(null!=n){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let u=ez(r.object,t);if(null!=u){if(null==u.value&&(u.optional||e.optional))return{value:void 0,optional:!0};let a=eU(r,t);if(null!=a){let e=u.value,t=a.value;if(eR.has(e[t]))return{value:e[t](...n)};if(eL.has(e[t]))return{value:n[0]}}}}else{let u=ez(r,t);if(null!=u){if(null==u.value&&e.optional)return{value:void 0,optional:!0};let t=u.value;if(eR.has(t))return{value:t(...n)};if(eL.has(t))return{value:n[0]}}}}return null},ConditionalExpression(e,t){let r=ez(e.test,t);return null!=r?r.value?ez(e.consequent,t):ez(e.alternate,t):null},ExpressionStatement:(e,t)=>ez(e.expression,t),Identifier(e,t){if(null!=t){let r=eo(t,e);if(null!=r&&0===r.defs.length&&eO.has(r.name)&&r.name in ej)return{value:ej[r.name]};if(null!=r&&1===r.defs.length){let e=r.defs[0];if(e.parent&&"Variable"===e.type&&("const"===e.parent.kind||function(e){let t=e.references,r=t.filter(e=>e.init).length,n=t.filter(e=>e.isReadOnly()).length;return 1===r&&n+r===t.length}(r))&&"Identifier"===e.node.id.type)return ez(e.node.init,t)}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let r=ez(e.left,t);if(null!=r){if("||"===e.operator&&!0==!!r.value||"&&"===e.operator&&!1==!!r.value||"??"===e.operator&&null!=r.value)return r;let n=ez(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=ez(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let n=eU(e,t);if(null!=n){if(!function(e,t){let r=function(e,t){let r=e;for(;("object"==typeof r||"function"==typeof r)&&null!==r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}return null}(e,t);return null!=r&&null!=r.get}(r.value,n.value))return{value:r.value[n.value]};for(let[e,t]of eN)if(r.value instanceof e&&t.has(n.value))return{value:r.value[n.value]}}}return null},ChainExpression(e,t){let r=ez(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=ez(e.callee,t),n=eM(e.arguments,t);if(null!=r&&null!=n){let e=r.value;if(eR.has(e))return{value:new e(...n)}}return null},ObjectExpression(e,t){let r={};for(let n of e.properties)if("Property"===n.type){if("init"!==n.kind)return null;let e=eU(n,t),u=ez(n.value,t);if(null==e||null==u)return null;r[e.value]=u.value}else{if("SpreadElement"!==n.type&&"ExperimentalSpreadProperty"!==n.type)return null;let e=ez(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>ez(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=ez(e.tag,t),n=eM(e.quasi.expressions,t);if(null!=r&&null!=n){let t=r.value,u=e.quasi.quasis.map(e=>e.value.cooked);if(u.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(u,...n)}}return null},TemplateLiteral(e,t){let r=eM(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let n=0;n<r.length;++n)t+=r[n]+e.quasis[n+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 r=ez(e.argument,t);if(null!=r)switch(e.operator){case"-":return{value:-r.value};case"+":return{value:+r.value};case"!":return{value:!r.value};case"~":return{value:~r.value};case"typeof":return{value:typeof r.value}}return null}});function ez(e,t){return null!=e&&Object.hasOwnProperty.call(e$,e.type)?e$[e.type](e,t):null}function eU(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?ez(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function eq(e,t=null){try{return ez(e,t)}catch(e){return null}}function eW(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 r=eq(e,t);return r&&String(r.value)}function eV(e,t){switch(e.type){case"MemberExpression":if(e.computed)return eW(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return eW(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 eZ(e,t){let r=e.parent,n=[],u="Property"===r.type&&r.value===e,a="MethodDefinition"===r.type&&r.value===e,i="PropertyDefinition"===r.type&&r.value===e;if((a||i)&&(r.static&&n.push("static"),"PrivateIdentifier"===r.key.type&&n.push("private")),e.async&&n.push("async"),e.generator&&n.push("generator"),u||a){if("constructor"===r.kind)return"constructor";"get"===r.kind?n.push("getter"):"set"===r.kind?n.push("setter"):n.push("method")}else i?n.push("method"):("ArrowFunctionExpression"===e.type&&n.push("arrow"),n.push("function"));if(u||a||i){if("PrivateIdentifier"===r.key.type)n.push(`#${r.key.name}`);else{let e=eV(r);if(e)n.push(`'${e}'`);else if(t){let e=t.getText(r.key);e.includes("\n")||n.push(`[${e}]`)}}}else e.id?n.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?n.push(`'${r.id.name}'`):("AssignmentExpression"===r.type||"AssignmentPattern"===r.type)&&r.left&&"Identifier"===r.left.type?n.push(`'${r.left.name}'`):"ExportDefaultDeclaration"===r.type&&r.declaration===e&&n.push("'default'");return n.join(" ")}let eG=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),eH=Object.freeze(new Set(["-","+","!","~"]));function eK(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}let eX=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){let{type:n}=e;return"function"==typeof this[n]?this[n](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){let{type:n}=e;for(let u of r[n]||Object.keys(e).filter(ea)){let n=e[u];if(Array.isArray(n)){for(let e of n)if(eK(e)&&this.$visit(e,t,r))return!0}else if(eK(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&eG.has(e.operator))&&("Literal"!==e.left.type||"Literal"!==e.right.type)||this.$visitChildren(e,t,r)},CallExpression:()=>!0,FunctionExpression:()=>!1,ImportExpression:()=>!0,MemberExpression(e,t,r){return!!t.considerGetters||!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.property.type||this.$visitChildren(e,t,r)},MethodDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},NewExpression:()=>!0,Property(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},PropertyDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},UnaryExpression(e,t,r){return!!("delete"===e.operator||t.considerImplicitTypeConversion&&eH.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function eJ(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return eX.$visit(e,{considerGetters:r,considerImplicitTypeConversion:n},t.visitorKeys||en)}function eY(e,t,r){let n,u,a,i,o;if("number"==typeof e){if(n=0|e,u=t,a=r,!(n>=1))throw TypeError("'times' should be a positive integer.")}else n=1,u=e,a=t;if(null==u||null==u.parent||"CatchClause"===u.parent.type&&u.parent.param===u)return!1;i=o=u;do i=a.getTokenBefore(i),o=a.getTokenAfter(o);while(null!=i&&null!=o&&eg(i)&&ey(o)&&i!==function(e,t){let r=e.parent;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.getTokenAfter(r.callee,eg);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,eg);return null;case"IfStatement":case"WhileStatement":if(r.test===e)return t.getFirstToken(r,1);return null;case"ImportExpression":if(r.source===e)return t.getFirstToken(r,1);return null;case"SwitchStatement":if(r.discriminant===e)return t.getFirstToken(r,1);return null;case"WithStatement":if(r.object===e)return t.getFirstToken(r,1);return null;default:return null}}(u,a)&&--n>0);return 0===n}let eQ=/\$(?:[$&`']|[1-9][0-9]?)/gu,e0=new WeakMap;class e1{constructor(e,{escaped:t=!1}={}){if(!(e instanceof RegExp))throw TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw Error("'pattern' should contains 'g' flag.");e0.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=e0.get(this),n=null,u=0;for(t.lastIndex=0;null!=(n=t.exec(e));)(r||!function(e,t){let r=!1;for(let n=t-1;n>=0&&92===e.charCodeAt(n);--n)r=!r;return r}(e,n.index))&&(u=t.lastIndex,yield n,t.lastIndex=u)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){let n=[],u=0;for(let a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(String(r(...a,a.index,a.input))),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),t):function(e,t,r){let n=[],u=0,a=null;function i(e){switch(e){case"$$":return"$";case"$&":return a[0];case"$`":return t.slice(0,a.index);case"$'":return t.slice(a.index+a[0].length);default:{let t=e.slice(1);if(t in a)return a[t];return e}}}for(a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(r.replace(eQ,i)),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),String(t))}}let e2=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,e3=Function.call.bind(Object.hasOwnProperty),e4=Symbol("read"),e5=Symbol("call"),e8=Symbol("construct"),e6=Symbol("esm"),e9={require:{[e5]:!0}};function e7(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}let te=class{constructor(e,{mode:t="strict",globalObjectNames:r=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=t,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let r=e[t],n=[t],u=this.globalScope.set.get(t);e7(u)||(yield*this._iterateVariableReferences(u,n,r,!0))}for(let t of this.globalObjectNames){let r=[],n=this.globalScope.set.get(t);e7(n)||(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(e9)){let r=eW(t.arguments[0]);if(null==r||!e3(e,r))continue;let n=e[r],u=[r];n[e4]&&(yield{node:t,path:u,type:e4,info:n[e4]}),yield*this._iteratePropertyReferences(t,u,n)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!e2.test(t.type)||null==t.source)continue;let r=t.source.value;if(!e3(e,r))continue;let n=e[r],u=[r];if(n[e4]&&(yield{node:t,path:u,type:e4,info:n[e4]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(n)){let r=n[e];r[e4]&&(yield{node:t,path:u.concat(e),type:e4,info:r[e4]})}else for(let e of t.specifiers){let t=e3(n,e6),r=this._iterateImportReferences(e,u,t?n:"legacy"===this.mode?{default:n,...n}:{default:n});if(t)yield*r;else for(let e of r)e.path=e.path.filter(tt),(e.path.length>=2||e.type!==e4)&&(yield e)}}}*_iterateVariableReferences(e,t,r,n){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let u of e.references){if(!u.isRead())continue;let e=u.identifier;n&&r[e4]&&(yield{node:e,path:t,type:e4,info:r[e4]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let n=e;for(;function(e){let t=e.parent;switch(t&&t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e;default:return!1}}(n);)n=n.parent;let u=n.parent;if("MemberExpression"===u.type){if(u.object===n){let e=eV(u);if(null==e||!e3(r,e))return;t=t.concat(e);let n=r[e];n[e4]&&(yield{node:u,path:t,type:e4,info:n[e4]}),yield*this._iteratePropertyReferences(u,t,n)}return}if("CallExpression"===u.type){u.callee===n&&r[e5]&&(yield{node:u,path:t,type:e5,info:r[e5]});return}if("NewExpression"===u.type){u.callee===n&&r[e8]&&(yield{node:u,path:t,type:e8,info:r[e8]});return}if("AssignmentExpression"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r),yield*this._iteratePropertyReferences(u,t,r));return}if("AssignmentPattern"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r));return}"VariableDeclarator"===u.type&&u.init===n&&(yield*this._iterateLhsReferences(u.id,t,r))}*_iterateLhsReferences(e,t,r){if("Identifier"===e.type){let n=eo(this.globalScope,e);null!=n&&(yield*this._iterateVariableReferences(n,t,r,!1));return}if("ObjectPattern"===e.type){for(let n of e.properties){let e=eV(n);if(null==e||!e3(r,e))continue;let u=t.concat(e),a=r[e];a[e4]&&(yield{node:n,path:u,type:e4,info:a[e4]}),yield*this._iterateLhsReferences(n.value,u,a)}return}"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r))}*_iterateImportReferences(e,t,r){let n=e.type;if("ImportSpecifier"===n||"ImportDefaultSpecifier"===n){let u="ImportDefaultSpecifier"===n?"default":e.imported.name;if(!e3(r,u))return;t=t.concat(u);let a=r[u];a[e4]&&(yield{node:e,path:t,type:e4,info:a[e4]}),yield*this._iterateVariableReferences(eo(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===n){yield*this._iterateVariableReferences(eo(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===n){let n=e.local.name;if(!e3(r,n))return;t=t.concat(n);let u=r[n];u[e4]&&(yield{node:e,path:t,type:e4,info:u[e4]})}}};function tt(e,t){return!(1===t&&"default"===e)}te.READ=e4,te.CALL=e5,te.CONSTRUCT=e8,te.ESM=e6;var tr=/*@__PURE__*/Q(/*#__PURE__*/Object.freeze({__proto__:null,CALL:e5,CONSTRUCT:e8,ESM:e6,PatternMatcher:e1,READ:e4,ReferenceTracker:te,default:{CALL:e5,CONSTRUCT:e8,ESM:e6,findVariable:eo,getFunctionHeadLocation:eB,getFunctionNameWithKind:eZ,getInnermostScope:ei,getPropertyName:eV,getStaticValue:eq,getStringIfConstant:eW,hasSideEffect:eJ,isArrowToken:ec,isClosingBraceToken:ex,isClosingBracketToken:eb,isClosingParenToken:ey,isColonToken:em,isCommaToken:ef,isCommentToken:eE,isNotArrowToken:eA,isNotClosingBraceToken:eP,isNotClosingBracketToken:ek,isNotClosingParenToken:eF,isNotColonToken:eS,isNotCommaToken:eD,isNotCommentToken:eI,isNotOpeningBraceToken:eT,isNotOpeningBracketToken:e_,isNotOpeningParenToken:ew,isNotSemicolonToken:eC,isOpeningBraceToken:ev,isOpeningBracketToken:eh,isOpeningParenToken:eg,isParenthesized:eY,isSemicolonToken:ep,PatternMatcher:e1,READ:e4,ReferenceTracker:te},findVariable:eo,getFunctionHeadLocation:eB,getFunctionNameWithKind:eZ,getInnermostScope:ei,getPropertyName:eV,getStaticValue:eq,getStringIfConstant:eW,hasSideEffect:eJ,isArrowToken:ec,isClosingBraceToken:ex,isClosingBracketToken:eb,isClosingParenToken:ey,isColonToken:em,isCommaToken:ef,isCommentToken:eE,isNotArrowToken:eA,isNotClosingBraceToken:eP,isNotClosingBracketToken:ek,isNotClosingParenToken:eF,isNotColonToken:eS,isNotCommaToken:eD,isNotCommentToken:eI,isNotOpeningBraceToken:eT,isNotOpeningBracketToken:e_,isNotOpeningParenToken:ew,isNotSemicolonToken:eC,isOpeningBraceToken:ev,isOpeningBracketToken:eh,isOpeningParenToken:eg,isParenthesized:eY,isSemicolonToken:ep}));let{isParenthesized:tn}=tr,tu="too-deep",ta="should-parenthesized";var ti=/*@__PURE__*/Y({create:e=>({ConditionalExpression(t){if([t.test,t.consequent,t.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:r}=e,n=r.getAncestors(t).reverse(),u=n.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==u||tn(t,r)?u>1?{node:u>2?n[u-3]:t,messageId:tu}:void 0:{node:t,messageId:ta,fix:e=>[e.insertTextBefore(t,"("),e.insertTextAfter(t,")")]}}}),meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions.",recommended:!0},fixable:"code",messages:{[tu]:"Do not nest ternary expressions.",[ta]:"Nest ternary expression should be parenthesized."}}});let{isParenthesized:to,isOpeningParenToken:ts,isClosingParenToken:td}=tr;function tl(e,t){let r=0;for(;to(r+1,e,t);)r++;return r}function tc(e,t){let r=tl(e,t);return 0===r?[]:[...t.getTokensBefore(e,{count:r,filter:ts}),...t.getTokensAfter(e,{count:r,filter:td})]}function tf(e,t){let r=tc(e,t),[n]=(r[0]||e).range,[,u]=(r.at(-1)||e).range;return[n,u]}var tp={isParenthesized:to,getParenthesizedTimes:tl,getParentheses:tc,getParenthesizedRange:tf,getParenthesizedText:function(e,t){let[r,n]=tf(e,t);return t.text.slice(r,n)}};function tm(e,t){return e?.type==="Literal"&&(null===t?"null"===e.raw:e.value===t)}var tg={isLiteral:tm,isStringLiteral:e=>e?.type==="Literal"&&"string"==typeof e.value,isNumberLiteral:e=>"Literal"===e.type&&"number"==typeof e.value,isBigIntLiteral:e=>"Literal"===e.type&&!!e.bigint,isNullLiteral:e=>tm(e,null),isRegexLiteral:e=>"Literal"===e.type&&!!e.regex};function ty(e,t,r){if(!r.includes(e?.type))return!1;"string"==typeof t&&(t={names:[t]}),Array.isArray(t)&&(t={names:t});let{name:n,names:u,argumentsLength:a,minimumArguments:i,maximumArguments:o,allowSpreadElement:s,optional:d}={minimumArguments:0,maximumArguments:Number.POSITIVE_INFINITY,allowSpreadElement:!1,...t};if(n&&(u=[n]),!0===d&&e.optional!==d||!1===d&&e.optional||"number"==typeof a&&e.arguments.length!==a||0!==i&&e.arguments.length<i||Number.isFinite(o)&&e.arguments.length>o)return!1;if(!s){let t=Number.isFinite(o)?o:a;if("number"==typeof t&&e.arguments.some((e,r)=>"SpreadElement"===e.type&&r<t))return!1}return!Array.isArray(u)||!(u.length>0)||"Identifier"===e.callee.type&&!!u.includes(e.callee.name)}var th={isCallExpression:(e,t)=>ty(e,t,["CallExpression"]),isNewExpression:(e,t)=>{if("boolean"==typeof t?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return ty(e,t,["NewExpression"])},isCallOrNewExpression:(e,t)=>ty(e,t,["CallExpression","NewExpression"])},tb=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"],tv=function(e,t){if(e?.type!=="MemberExpression")return!1;"string"==typeof t&&(t={properties:[t]}),Array.isArray(t)&&(t={properties:t});let{property:r,properties:n,object:u,objects:a,optional:i,computed:o}={property:"",properties:[],object:"",...t};if(r&&(n=[r]),u&&(a=[u]),!0===i&&e.optional!==i||!1===i&&e.optional)return!1;if(Array.isArray(n)&&n.length>0){if("Identifier"!==e.property.type||!n.includes(e.property.name))return!1;o??=!1}return!(!0===o&&e.computed!==o||!1===o&&e.computed||Array.isArray(a)&&a.length>0&&("Identifier"!==e.object.type||!a.includes(e.object.name)))};let{isCallExpression:tx}=th,{isStringLiteral:tE}=tg,{isCallExpression:tA}=th;function tD(e,t){let r=t.trim().split(".");for(let t=r.length-1;t>=0;t--){let n=r[t];if(!n)return!1;if(0===t)return"Identifier"===e.type&&e.name===n||"this"===n&&"ThisExpression"===e.type;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==n)return!1;e=e.object}}var tC={isNodeMatchesNameOrPath:tD,isNodeMatches:function(e,t){return t.some(t=>tD(e,t))}};let{isNodeMatches:tS}=tC,{isLiteral:tw,isStringLiteral:tF,isNumberLiteral:t_,isBigIntLiteral:tk,isNullLiteral:tT,isRegexLiteral:tP}=tg,{isNewExpression:tI,isCallExpression:tB,isCallOrNewExpression:tj}=th;var tO={isLiteral:tw,isStringLiteral:tF,isNumberLiteral:t_,isBigIntLiteral:tk,isNullLiteral:tT,isRegexLiteral:tP,isArrowFunctionBody:function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e},isCallExpression:tB,isCallOrNewExpression:tj,isDirective:e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive,isEmptyNode:function e(t,r){let{type:n}=t;return"BlockStatement"===n?t.body.every(t=>e(t,r)):!!("EmptyStatement"===n||r?.(t))},isExpressionStatement:function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type},isFunction:function(e){return tb.includes(e.type)},isMemberExpression:tv,isMethodCall:function(e,t){"string"==typeof t&&(t={methods:[t]}),Array.isArray(t)&&(t={methods:t});let{optionalCall:r,optionalMember:n,method:u,methods:a}={method:"",methods:[],...t};return tx(e,{argumentsLength:t.argumentsLength,minimumArguments:t.minimumArguments,maximumArguments:t.maximumArguments,allowSpreadElement:t.allowSpreadElement,optional:r})&&tv(e.callee,{object:t.object,objects:t.objects,computed:t.computed,property:u,properties:a,optional:n})},isNewExpression:tI,isReferenceIdentifier:function(e,t=[]){if("Identifier"!==e.type)return!1;let r=Array.isArray(t)?t:[t];return(!(r.length>0)||!!r.includes(e.name))&&!function(e){let{parent:t}=e;switch(t.type){case"MemberExpression":return!t.computed&&t.property===e;case"FunctionDeclaration":case"FunctionExpression":return t.params.includes(e)||t.id===e;case"ArrowFunctionExpression":return t.params.includes(e);case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":case"TSDeclareFunction":case"TSEnumMember":case"TSTypeAliasDeclaration":return t.id===e;case"PropertyDefinition":case"MethodDefinition":return!t.computed&&t.key===e;case"Property":return!t.computed&&t.key===e&&("ObjectExpression"===t.parent.type||"ObjectPattern"===t.parent.type)&&t.parent.properties.includes(t)||t.value===e&&"ObjectPattern"===t.parent.type&&t.parent.properties.includes(t);case"ArrayPattern":return t.elements.includes(e);case"LabeledStatement":case"ContinueStatement":case"BreakStatement":return t.label===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":return t.local===e;case"ExportAllDeclaration":return t.exported===e;case"ImportSpecifier":return t.local===e||t.imported===e;case"ExportSpecifier":return t.local===e||t.exported===e;case"TSIndexSignature":return t.parameters.includes(e);case"TSTypeParameter":return t.name===e;case"TSMappedType":case"TSPropertySignature":return t.key===e}return!1}(e)},isStaticRequire:e=>tA(e,{name:"require",argumentsLength:1,optional:!1})&&tE(e.arguments[0]),isTaggedTemplateLiteral:function(e,t){return"TemplateLiteral"===e.type&&"TaggedTemplateExpression"===e.parent.type&&e.parent.quasi===e&&(!t||tS(e.parent.tag,t))},isUndefined:function(e){return"Identifier"===e.type&&"undefined"===e.name},functionTypes:tb};let{isMemberExpression:tR}=tO;function tL(e,t){let{object:r,property:n,properties:u}={property:"",properties:[],...t};if(!tR(e,{property:n,properties:u,optional:!1}))return;let a=e.object;return tR(a,{object:r,property:"prototype",optional:!1})||"Array"===r&&"ArrayExpression"===a.type&&0===a.elements.length||"Object"===r&&"ObjectExpression"===a.type&&0===a.properties.length}var tN=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator);let tM=e=>e?.type==="UnaryExpression"&&"!"===e.operator,t$=e=>tM(e.parent)&&e.parent.argument===e,tz=e=>tU(e.parent)&&e.parent.arguments[0]===e,tU=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length,tq=e=>e?.type==="VExpressionContainer"&&"VAttribute"===e.parent.type&&e.parent.directive&&e.parent.value===e&&"VDirectiveKey"===e.parent.key.type&&"VIdentifier"===e.parent.key.name.type&&("if"===e.parent.key.name.rawName||"else-if"===e.parent.key.name.rawName||"show"===e.parent.key.name.rawName);var tW={},tV={};Object.defineProperty(tV,"__esModule",{value:!0}),tV.isIdentifierChar=t0,tV.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((64512&n)==55296&&r+1<e.length){let t=e.charCodeAt(++r);(64512&t)==56320&&(n=65536+((1023&n)<<10)+(1023&t))}if(t){if(t=!1,!tQ(n))return!1}else if(!t0(n))return!1}return!t},tV.isIdentifierStart=tQ;let tZ="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",tG="‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",tH=RegExp("["+tZ+"]"),tK=RegExp("["+tZ+tG+"]");tZ=tG=null;let tX=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],tJ=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function tY(e,t){let r=65536;for(let n=0,u=t.length;n<u&&!((r+=t[n])>e);n+=2)if((r+=t[n+1])>=e)return!0;return!1}function tQ(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tH.test(String.fromCharCode(e)):tY(e,tX)))}function t0(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tK.test(String.fromCharCode(e)):tY(e,tX)||tY(e,tJ))))}var t1={};Object.defineProperty(t1,"__esModule",{value:!0}),t1.isKeyword=function(e){return t2.has(e)},t1.isReservedWord=t5,t1.isStrictBindOnlyReservedWord=t6,t1.isStrictBindReservedWord=function(e,t){return t8(e,t)||t6(e)},t1.isStrictReservedWord=t8;let t2=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),t3=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),t4=new Set(["eval","arguments"]);function t5(e,t){return t&&"await"===e||"enum"===e}function t8(e,t){return t5(e,t)||t3.has(e)}function t6(e){return t4.has(e)}Object.defineProperty(tW,"__esModule",{value:!0}),Object.defineProperty(tW,"isIdentifierChar",{enumerable:!0,get:function(){return m.isIdentifierChar}}),Object.defineProperty(tW,"isIdentifierName",{enumerable:!0,get:function(){return m.isIdentifierName}}),Object.defineProperty(tW,"isIdentifierStart",{enumerable:!0,get:function(){return m.isIdentifierStart}}),Object.defineProperty(tW,"isKeyword",{enumerable:!0,get:function(){return g.isKeyword}}),Object.defineProperty(tW,"isReservedWord",{enumerable:!0,get:function(){return g.isReservedWord}}),Object.defineProperty(tW,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return g.isStrictBindOnlyReservedWord}}),Object.defineProperty(tW,"isStrictBindReservedWord",{enumerable:!0,get:function(){return g.isStrictBindReservedWord}}),Object.defineProperty(tW,"isStrictReservedWord",{enumerable:!0,get:function(){return g.isStrictReservedWord}}),m=tV,g=t1;let t9=e=>[e,...e.childScopes.flatMap(e=>t9(e))];var t7=e=>[...new Set(t9(e).flatMap(({references:e})=>e))];let{isIdentifierName:re,isStrictReservedWord:rt,isKeyword:rr}=tW,rn=function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}},ru=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","as","implements","interface","let","package","private","protected","public","static","yield","any","boolean","constructor","declare","get","module","require","number","set","string","symbol","type","from","of"]),ra=e=>"string"==typeof e&&!rr(e)&&!rt(e,!0)&&re(e)&&"arguments"!==e&&!ru.has(e),ri=(e,t)=>t7(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r),ro=(e,t)=>!t.some(t=>rn(e,t)||ri(e,t)),rs=()=>!0;var rd=function(e,t,r=rs){if(ra(e)||ra(e+="_")){for(;!ro(e,t)||!r(e,t);)e+="_";return e}};let rl={},rc=rl.hasOwnProperty,rf=(e,t)=>{for(let r in e)rc.call(e,r)&&t(r,e[r])},rp=(e,t)=>(t&&rf(t,(t,r)=>{e[t]=r}),e),rm=(e,t)=>{let r=e.length,n=-1;for(;++n<r;)t(e[n])},rg=e=>"\\u"+("0000"+e).slice(-4),ry=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},rh=rl.toString,rb=Array.isArray,rv=e=>"function"==typeof Buffer&&Buffer.isBuffer(e),rx=e=>"[object Object]"==rh.call(e),rE=e=>"string"==typeof e||"[object String]"==rh.call(e),rA=e=>"number"==typeof e||"[object Number]"==rh.call(e),rD=e=>"function"==typeof e,rC=e=>"[object Map]"==rh.call(e),rS=e=>"[object Set]"==rh.call(e),rw={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},rF=/[\\\b\f\n\r\t]/,r_=/[0-9]/,rk=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,rT=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,rP=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,rI=(e,t)=>{let r;let n=()=>{l=d,++t.indentLevel,d=t.indent.repeat(t.indentLevel)},u={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},a=t&&t.json;a&&(u.quotes="double",u.wrap=!0),"single"!=(t=rp(u,t)).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let i="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",o=t.compact,s=t.lowercaseHex,d=t.indent.repeat(t.indentLevel),l="",c=t.__inline1__,f=t.__inline2__,p=o?"":"\n",m=!0,g="binary"==t.numbers,y="octal"==t.numbers,h="decimal"==t.numbers,b="hexadecimal"==t.numbers;if(a&&e&&rD(e.toJSON)&&(e=e.toJSON()),!rE(e)){if(rC(e))return 0==e.size?"new Map()":(o||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+rI(Array.from(e),t)+")");if(rS(e))return 0==e.size?"new Set()":"new Set("+rI(Array.from(e),t)+")";if(rv(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+rI(Array.from(e),t)+")";if(rb(e))return(r=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),f||n(),rm(e,e=>{m=!1,f&&(t.__inline2__=!1),r.push((o||f?"":d)+rI(e,t))}),m)?"[]":f?"["+r.join(", ")+"]":"["+p+r.join(","+p)+p+(o?"":l)+"]";if(rA(e)){if(a)return JSON.stringify(e);if(h)return String(e);if(b){let t=e.toString(16);return s||(t=t.toUpperCase()),"0x"+t}if(g)return"0b"+e.toString(2);if(y)return"0o"+e.toString(8)}else if(rx(e))return(r=[],t.wrap=!0,n(),rf(e,(e,n)=>{m=!1,r.push((o?"":d)+rI(e,t)+":"+(o?"":" ")+rI(n,t))}),m)?"{}":"{"+p+r.join(","+p)+p+(o?"":l)+"}";else return a?JSON.stringify(e)||"null":String(e)}let v=t.escapeEverything?rT:rP;return r=e.replace(v,(e,r,n,u,o,d)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),n=r.charCodeAt(1);return t.es6?"\\u{"+ry((e-55296)*1024+n-56320+65536,s)+"}":rg(ry(e,s))+rg(ry(n,s))}if(n)return rg(ry(n.charCodeAt(0),s));if("\0"==e&&!a&&!r_.test(d.charAt(o+1)))return"\\0";if(u)return u==i||t.escapeEverything?"\\"+u:u;if(rF.test(e))return rw[e];if(t.minimal&&!rk.test(e))return e;let l=ry(e.charCodeAt(0),s);return a||l.length>2?rg(l):"\\x"+("00"+l).slice(-2)}),"`"==i&&(r=r.replace(/\$\{/g,"\\${")),t.isScriptContext&&(r=r.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,a?"\\u003C!--":"\\x3C!--")),t.wrap&&(r=i+r+i),r};rI.version="3.0.2";var rB=function(e,t="'"){if("string"!=typeof e)throw TypeError("Unexpected string.");return rI(e,{quotes:'"'===t?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})};let{isOpeningParenToken:rj,isCommaToken:rO}=tr;var rR=function(e,t){let r=e.getTokenAfter(t.callee,rj),[n,u]=e.getLastTokens(t,2);return{openingParenthesisToken:r,closingParenthesisToken:u,trailingCommaToken:rO(n)?n:void 0}},rL=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])];let rN=e=>"MemberExpression"===e.type||"CallExpression"===e.type,{findVariable:rM}=tr,r$=(e,t)=>{let{references:r=[]}=rM(e,t)||{};return r};var rz=e=>("AssignmentExpression"===e.parent.type||"AssignmentPattern"===e.parent.type)&&e.parent.left===e||"UpdateExpression"===e.parent.type&&e.parent.argument===e||"ArrayPattern"===e.parent.type&&e.parent.elements.includes(e)||"Property"===e.parent.type&&e.parent.value===e&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)||"UnaryExpression"===e.parent.type&&"delete"===e.parent.operator&&e.parent.argument===e;let{isUndefined:rU}=tO,rq=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]),{isUndefined:rW,isCallExpression:rV,isMethodCall:rZ}=tO,rG=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),rH=new Set(["AssignmentExpression","AwaitExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]);var rK=function(e,t){return e.loc.start.line===t.loc.start.line};let{getStaticValue:rX}=tr;function rJ(e){let t;switch(e?.type){case"MemberExpression":t=e.property;break;case"ChainExpression":return rJ(e.expression);case"Property":case"MethodDefinition":t=e.key}if(t){if("Identifier"===t.type&&!e.computed)return t.name;let r=rX(t);if(!r)return;return String(r.value)}}var rY=function e(t,r){if(t.type!==r.type)return"ChainExpression"===t.type?e(t.expression,r):"ChainExpression"===r.type&&e(t,r.expression);switch(t.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return t.name===r.name;case"Literal":return t.regex||r.regex?!!(t.regex&&r.regex&&t.regex.pattern===r.regex.pattern&&t.regex.flags===r.regex.flags):t.bigint||r.bigint?t.bigint===r.bigint:t.value===r.value;case"ChainExpression":return e(t.expression,r.expression);case"MemberExpression":{let n=rJ(t);if(void 0!==n)return e(t.object,r.object)&&n===rJ(r);return t.computed===r.computed&&e(t.object,r.object)&&e(t.property,r.property)}default:return!1}},rQ=function(e,t){let r=function(e,t){let r=e.references.filter(e=>e.identifier===t);if(1===r.length)return r[0]}(e,t);return!!r?.resolved&&r.resolved.defs.length>0};let{isExpressionStatement:r0}=tO,r1=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),r2=new Set(["[","(","/","`","+","-","*",",","."]);var r3=function(e,t,r){if(""===r||r&&!r2.has(r.charAt(0))||!e)return!1;let{type:n,value:u,range:a}=e,i=t.getNodeByRangeIndex(a[0]);if("Punctuator"===n){if(";"===u)return!1;if("]"===u)return!0;if(")"===u){switch(i.type){case"IfStatement":if(t.getTokenBefore(i.consequent)===e)return!1;break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"WhileStatement":case"DoWhileStatement":case"WithStatement":if(i.body&&t.getTokenBefore(i.body)===e)return!1}return!0}}return!!r1.has(n)||("Template"===n?u.endsWith("`"):"ObjectExpression"===i.type||"Identifier"===n&&("of"!==u||"ForOfStatement"!==i.type)&&("await"!==u||"AwaitExpression"!==i.type))};let{isOpeningParenToken:r4,isClosingParenToken:r5}=tr;var r8=function(e,t){if(e.arguments.length>0)return!0;let[r,n]=t.getLastTokens(e,2);return r4(r)&&r5(n)&&e.callee.range[1]<e.range[1]};let{isNumberLiteral:r6,isBigIntLiteral:r9}=tO,r7=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,ne=e=>r7.test(e);var nt={isDecimalIntegerNode:e=>r6(e)&&ne(e.raw),isDecimalInteger:ne,isNumeric:e=>r6(e)||r9(e),isLegacyOctal:e=>r6(e)&&/^0\d+$/.test(e.raw),getPrefix:function(e){let t="",r=e;return/^0[box]/i.test(e)&&(t=e.slice(0,2),r=e.slice(2)),{prefix:t,data:r}},parseNumber:function(e){let{number:t,mark:r="",sign:n="",power:u=""}=e.match(/^(?<number>[\d._]*?)(?:(?<mark>[Ee])(?<sign>[+-])?(?<power>[\d_]+))?$/).groups;return{number:t,mark:r,sign:n,power:u}},parseFloatNumber:function(e){let t=e.split("."),[r,n=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:n}}};let{isDecimalIntegerNode:nr}=nt;var nn=function(e,t){switch(e.type){case"Identifier":case"MemberExpression":case"CallExpression":case"ChainExpression":case"TemplateLiteral":case"ThisExpression":case"ArrayExpression":case"FunctionExpression":return!1;case"NewExpression":return!r8(e,t);case"Literal":if(nr(e))return!0;return!1;default:return!0}},nu={exports:{}};y=function(){var e=[],t=[],r={},n={},u={};function a(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function i(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function o(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var u=n.length;u--;){var a=n[u];if(a[0].test(t))return function(e,t){return e.replace(t[0],function(r,n){var u,a,o=(u=t[1],a=arguments,u.replace(/\$(\d{1,2})/g,function(e,t){return a[t]||""}));return""===r?i(e[n-1],o):i(r,o)})}(t,a)}return t}function s(e,t,r){return function(n){var u=n.toLowerCase();return t.hasOwnProperty(u)?i(n,u):e.hasOwnProperty(u)?i(n,e[u]):o(u,n,r)}}function d(e,t,r,n){return function(n){var u=n.toLowerCase();return!!t.hasOwnProperty(u)||!e.hasOwnProperty(u)&&o(u,u,r)===u}}function l(e,t,r){var n=1===t?l.singular(e):l.plural(e);return(r?t+" ":"")+n}return l.plural=s(u,n,e),l.isPlural=d(u,n,e),l.singular=s(n,u,t),l.isSingular=d(n,u,t),l.addPluralRule=function(t,r){e.push([a(t),r])},l.addSingularRule=function(e,r){t.push([a(e),r])},l.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}l.addPluralRule(e,"$0"),l.addSingularRule(e,"$0")},l.addIrregularRule=function(e,t){t=t.toLowerCase(),u[e=e.toLowerCase()]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return l.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return l.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return l.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(l.addUncountableRule),l},nu.exports=y();let{singular:na}=nu.exports;var ni=function(e,t,r=0,n=0){let[u,a]=Array.isArray(e)?e:e.range;return{start:t.getLocFromIndex(u+r),end:t.getLocFromIndex(a+n)}};let{isParenthesized:no,getParenthesizedTimes:ns,getParentheses:nd,getParenthesizedRange:nl,getParenthesizedText:nc}=tp,{isArrayPrototypeProperty:nf,isObjectPrototypeProperty:np}={isArrayPrototypeProperty:(e,t)=>tL(e,{...t,object:"Array"}),isObjectPrototypeProperty:(e,t)=>tL(e,{...t,object:"Object"})},{isNodeMatches:nm,isNodeMatchesNameOrPath:ng}=tC,{isBooleanNode:ny,getBooleanAncestor:nh}={isBooleanNode:function e(t){if(tM(t)||t$(t)||tU(t)||tz(t))return!0;let{parent:r}=t;return!!tq(r)||("IfStatement"===r.type||"ConditionalExpression"===r.type||"WhileStatement"===r.type||"DoWhileStatement"===r.type||"ForStatement"===r.type)&&r.test===t||!!tN(r)&&e(r)},getBooleanAncestor:function(e){let t=!1;for(;;)if(t$(e))t=!t,e=e.parent;else if(tz(e))e=e.parent;else break;return{node:e,isNegative:t}}};var nb={avoidCapture:rd,escapeString:rB,getBooleanAncestor:nh,getCallExpressionArgumentsText:function(e,t){let{openingParenthesisToken:r,closingParenthesisToken:n}=rR(e,t);return e.text.slice(r.range[1],n.range[0])},getCallExpressionTokens:rR,getParentheses:nd,getParenthesizedRange:nl,getParenthesizedText:nc,getParenthesizedTimes:ns,getReferences:t7,getScopes:t9,getVariableIdentifiers:rL,hasOptionalChainElement:function e(t){return!!rN(t)&&(!!t.optional||"MemberExpression"===t.type&&e(t.object))},isArrayPrototypeProperty:nf,isBooleanNode:ny,isFunctionSelfUsedInside:function(e,t){if(t.block!==e)throw Error('"functionScope" should be the scope of "functionNode".');let{type:r,id:n}=e;return"ArrowFunctionExpression"!==r&&(!!(t.thisFound||r$(t,"arguments").some(({from:e})=>e===t))||!!n&&r$(t,n).length>0)},isLeftHandSide:rz,isLogicalExpression:tN,isMethodNamed:(e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t,isNodeMatches:nm,isNodeMatchesNameOrPath:ng,isNodeValueNotDomNode:e=>rq.has(e.type)||rU(e),isNodeValueNotFunction:e=>rG.has(e.type)||rH.has(e.type)||rW(e)||rV(e)&&!rZ(e,{method:"bind",optionalCall:!1,optionalMember:!1}),isObjectPrototypeProperty:np,isOnSameLine:rK,isParenthesized:no,isSameIdentifier:(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name,isSameReference:rY,isShadowed:rQ,isValueNotUsable:e=>r0(e.parent),needsSemicolon:r3,shouldAddParenthesesToMemberExpressionObject:nn,shouldAddParenthesesToCallExpressionCallee:function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type||"UnaryExpression"===e.type||"UpdateExpression"===e.type||"NewExpression"===e.type},shouldAddParenthesesToAwaitExpressionArgument:function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type},singular:e=>{let t=na(e);if(t!==e)return t},toLocation:ni,getAncestor:function(e,t){let r=function(e){if("string"==typeof e)return t=>t.type===e}(t);for(;e.parent;e=e.parent)if(r(e))return e}};let{findVariable:nv}=tr,{getAncestor:nx}=nb,{isStaticRequire:nE,isStringLiteral:nA,isMemberExpression:nD}=tO,nC="prefer-event-target",nS=new Set(["@angular/core","eventemitter3"]),nw=e=>"VariableDeclarator"===e.parent.type&&e.parent.id===e&&"VariableDeclaration"===e.parent.parent.type&&"const"===e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent);function nF(e){let t;return!!e&&(nE(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(nA(t)&&nS.has(t.value)))}var n_=/*@__PURE__*/Y({create:e=>({Identifier(t){if(!("EventEmitter"===t.name&&(("ClassDeclaration"===t.parent.type||"ClassExpression"===t.parent.type)&&t.parent.superClass===t||"NewExpression"===t.parent.type&&t.parent.callee===t)))return;let r=e.sourceCode.getScope(t);if(!function(e){if(!e)return!1;let t=nx(e,"ImportDeclaration");return!!(nS.has(t?.source.value)||"Property"===e.parent.type&&e.parent.value===e&&"Identifier"===e.parent.key.type&&"EventEmitter"===e.parent.key.name&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)&&nw(e.parent.parent)&&nF(e.parent.parent.parent.init)||nw(e)&&nD(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&nF(e.parent.init.object))}(nv(r,t)?.defs[0]?.name))return{node:t,messageId:nC}}}),meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`.",recommended:!0},messages:{[nC]:"Prefer `EventTarget` over `EventEmitter`."}}});let nk={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",219:"[",220:"\\",221:"]",222:"'",224:"Meta"},{isNumberLiteral:nT}=tO,nP="prefer-keyboard-event-key",nI=new Set(["keyCode","charCode","which"]),nB=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,nj=(e,t)=>{let r=nR(t,"CallExpression",nB),n=r?.arguments[1];switch(n?.type){case"ArrowFunctionExpression":case"FunctionExpression":{let t=e.sourceCode.getDeclaredVariables(n)[0],r=t?.references;return{event:n.params[0],references:r}}default:return{}}},nO=(e,t)=>e?.parent?.type==="MemberExpression"&&e.parent.object===t,nR=(e,t,r=()=>!0)=>{let n=e;for(;n;){if(n.type===t&&r(n))return n;n=n.parent}},nL=(e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r},nN=e=>t=>{let r=nL(e,3);if(!r||"IfStatement"!==r.type)return;let{type:n,operator:u,right:a}=r.test;if(!("BinaryExpression"===n&&("=="===u||"==="===u)&&nT(a)))return;let i=nk[a.value]||String.fromCodePoint(a.value);if(i)return[t.replaceText(e,"key"),t.replaceText(a,rB(i))]},nM=e=>({messageId:nP,data:{name:e.name},node:e,fix:nN(e)});var n$=/*@__PURE__*/Y({create:e=>({Identifier(t){if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:n}=nj(e,t);if(r&&n&&n.some(e=>nO(t,e.identifier)))return nM(t)},Property(t){let r=t.value.name;if(!nI.has(r))return;let{event:n,references:u}=nj(e,t);if(!n)return;let a=nR(t,"VariableDeclarator"),i=a?.init;if(u&&u.some(e=>e.identifier===i))return nM(t.value);if("ObjectPattern"===n.type){for(let e of n.properties)if(e===t)return nM(t.value)}}}),meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.",recommended:!0},fixable:"code",messages:{[nP]:"Use `.key` instead of `.{{name}}`."}}});let{isMemberExpression:nz}=tO,nU="error",nq="suggestion";var nW=/*@__PURE__*/Y({create:()=>({MemberExpression(e){if(!nz(e,{property:"innerText"}))return;let t=e.property;return{node:t,messageId:nU,suggest:[{messageId:nq,fix:e=>e.replaceText(t,"textContent")}]}},Identifier(e){if("innerText"===e.name&&"Property"===e.parent.type&&e.parent.key===e&&!e.parent.computed&&"init"===e.parent.kind&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent))return{node:e,messageId:nU,suggest:[{messageId:nq,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`.",recommended:!0},hasSuggestions:!0,messages:{[nU]:"Prefer `.textContent` over `.innerText`.",[nq]:"Switch to `.textContent`."}}});let{getParentheses:nV}=tp,{isCommaToken:nZ}=tr,{isCommaToken:nG}=tr,{getParentheses:nH}=tp,{getParenthesizedRange:nK}=tp,{isSemicolonToken:nX}=tr;var nJ=function*(e,t,r){if("ReturnStatement"!==t.type&&"ThrowStatement"!==t.type)return;let n=r.getFirstToken(t);yield e.insertTextAfter(n," (");let u=r.getLastToken(t);if(!nX(u)){yield e.insertTextAfter(t,")");return}yield e.insertTextBefore(u,")")},nY=function(e,t,r){let n=e;"object"==typeof e&&Array.isArray(e.range)&&(n=e.range[1]);let[u]=t.text.slice(n).match(/^\s*/);return r.removeRange([n,n+u.length])};let{isParenthesized:nQ}=tp,{getParenthesizedRange:n0}=tp,n1=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;var n2=function*(e,t,r){let n=n0(t,r),u=r.getTokenBefore({range:n},{includeComments:!0});u&&n[0]===u.range[1]&&n1(u)&&(yield e.insertTextAfter(u," "));let a=r.getTokenAfter({range:n},{includeComments:!0});a&&n[1]===a.range[0]&&n1(a)&&(yield e.insertTextBefore(a," "))};let{isParenthesized:n3}=tp,{getParenthesizedRange:n4}=tp;var n5=function(e,t,r){let[,n]=n4(t.object,r),[,u]=t.range;return e.removeRange([n,u])};let{getParenthesizedRange:n8}=tp;var n6=function*(e,t,r){let n=t.callee;yield n5(e,n,r);let[,u]=n8(n,r),[,a]=t.range;yield e.removeRange([u,a])},n9=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value,n7=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1];let ue=e=>"AssignmentPattern"===e.parent.type&&e.parent.left===e&&n9(e.parent),ut=e=>{let{type:t,local:r,imported:n}=e.parent;return"ImportSpecifier"===t&&n7(r,n)&&r===e},ur=e=>{let{type:t,local:r,exported:n}=e.parent;return"ExportSpecifier"===t&&n7(r,n)&&r===e};var un=function(e,t,r){return n9(e)||ue(e)?r.replaceText(e,`${e.name}: ${t}`):ut(e)?r.replaceText(e,`${e.name} as ${t}`):ur(e)?r.replaceText(e,`${t} as ${e.name}`):e.typeAnnotation?r.replaceTextRange([e.range[0],e.typeAnnotation.range[0]],`${t}${e.optional?"?":""}`):r.replaceText(e,t)};let{getParentheses:uu}=tp;var ua={extendFixRange:function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")},removeParentheses:function*(e,t,r){for(let n of nV(e,r))yield t.remove(n)},appendArgument:function(e,t,r,n){if("CallExpression"!==t.type)throw Error(`Unexpected node "${t.type}".`);let[u,a]=n.getLastTokens(t,2);return t.arguments.length>0&&(r=nZ(u)?` ${r},`:`, ${r}`),e.insertTextBefore(a,r)},removeArgument:function(e,t,r){let n=t.parent,u=n.arguments.indexOf(t),a=nH(t,r),i=a[0]||t,o=a.at(-1)||t,[s]=i.range,[,d]=o.range;if(0!==u&&(s=r.getTokenBefore(i).range[0]),1===n.arguments.length){let e=r.getTokenBefore(o);nG(e)&&(d=e[1])}return e.replaceTextRange([s,d],"")},replaceArgument:function(e,t,r,n){return e.replaceTextRange(nK(t,n),r)},switchNewExpressionToCallExpression:function*(e,t,r){let n=t.getFirstToken(e);yield r.remove(n),yield nY(n,t,r),r8(e,t)||(yield r.insertTextAfter(e,"()")),rK(n,e.callee)||nQ(e,t)||(yield*nJ(r,e.parent,t))},switchCallExpressionToNewExpression:function*(e,t,r){var n;yield*n2(r,e,t),yield r.insertTextBefore(e,"new ");let{callee:u}=e;!n3(u,t)&&"MemberExpression"===(n=u).type&&function(e){let t=e.object,r=e.object.type;for(;"MemberExpression"===r;)r=(t=t.object).type;return"CallExpression"===r}(n)&&(yield r.insertTextBefore(u,"("),yield r.insertTextAfter(u,")"))},removeMemberExpressionProperty:n5,removeMethodCall:n6,replaceTemplateElement:(e,t,r)=>{let{range:[n,u],tail:a}=t;return e.replaceTextRange([n+1,u-(a?1:2)],r)},replaceReferenceIdentifier:un,renameVariable:(e,t,r)=>rL(e).map(e=>un(e,t,r)),replaceNodeOrTokenAndSpacesBefore:function* e(t,r,n,u,a=u){for(let r of uu(t,a))yield*e(r,"",n,u,a);let[i,o]=t.range,[s]=u.text.slice(0,i).match(/\s*$/),[d]=s.match(/(?:\r?\n|\r){0,1}/);i-=s.length,yield n.replaceTextRange([i,o],`${d}${r}`)},removeSpacesAfter:nY,fixSpaceAroundKeyword:n2,replaceStringLiteral:function(e,t,r,n,u){let a=t.range[0]+1,i=Number.isInteger(u)?n+a:a,o=Number.isInteger(u)?u+a:t.range[1]-1;return e.replaceTextRange([i,o],r)},addParenthesizesToReturnOrThrowExpression:nJ};let{appendArgument:ui}=ua,{isMethodCall:uo}=tO,{isArrayPrototypeProperty:us}=nb,ud="require-array-join-separator";var ul=/*@__PURE__*/Y({create:e=>({CallExpression(t){if(!(uo(t,{method:"join",argumentsLength:0,optionalCall:!1})||uo(t,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&us(t.callee.object,{property:"join"})))return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2),a=1===t.arguments.length;return{loc:{start:n.loc[a?"end":"start"],end:u.loc.end},messageId:ud,fix:e=>ui(e,t,"','",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`.",recommended:!0},fixable:"code",messages:{[ud]:"Missing the separator argument."}}});let{getStaticValue:uc,getPropertyName:uf}=tr,{isMethodCall:up}=tO,um="no-thenable-object",ug="no-thenable-export",uy="no-thenable-class",uh=(e,t)=>uc(e,t.sourceCode.getScope(e))?.value==="then",ub=(e,t)=>{try{return"then"===uf(e,t.sourceCode.getScope(e))}catch{}return!1},uv=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&ub(r,t)&&(yield r.key)},messageId:um},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,t){"then"===uf(e,t.sourceCode.getScope(e))&&(yield e.key)},messageId:uy},{selector:"MemberExpression",*getNodes(e,t){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===uf(e,t.sourceCode.getScope(e))&&(yield e.property)},messageId:um},{selector:"CallExpression",*getNodes(e,t){if(!(up(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,r]=e.arguments;uh(r,t)&&(yield r)},messageId:um},{selector:"CallExpression",*getNodes(e,t){if(up(e,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"ArrayExpression"===e.arguments[0].type){for(let r of e.arguments[0].elements)if(r?.type==="ArrayExpression"&&r.elements[0]&&"SpreadElement"!==r.elements[0].type){let[e]=r.elements;uh(e,t)&&(yield e)}}},messageId:um},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:ug},{selector:"Identifier",*getNodes(e){"then"===e.name&&("FunctionDeclaration"===e.parent.type||"ClassDeclaration"===e.parent.type)&&e.parent.id===e&&"ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent&&(yield e)},messageId:ug},{selector:"VariableDeclaration",*getNodes(e,t){if("ExportNamedDeclaration"===e.parent.type&&e.parent.declaration===e)for(let r of t.sourceCode.getDeclaredVariables(e))"then"===r.name&&(yield*r.identifiers)},messageId:ug}];var ux=/*@__PURE__*/Y({create:e=>{for(let{selector:t,selectors:r,messageId:n,getNodes:u}of uv)e.on(t??r,function*(t){for(let r of u(t,e))yield{node:r,messageId:n}})},meta:{type:"problem",docs:{description:"Disallow `then` property.",recommended:!0},messages:{[um]:"Do not add `then` to an object.",[ug]:"Do not export `then`.",[uy]:"Do not add `then` to a class."}}});let{getFunctionHeadLocation:uE}=tr,{isMethodCall:uA}=tO,uD="no-invalid-remove-event-listener";var uC=/*@__PURE__*/Y({create:e=>({CallExpression(t){if(!(uA(t,{method:"removeEventListener",minimumArguments:2,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==t.arguments[0].type&&("FunctionExpression"===t.arguments[1].type||"ArrowFunctionExpression"===t.arguments[1].type||uA(t.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,r]=t.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(r.type)?{node:r,loc:uE(r,e.sourceCode),messageId:uD}:{node:r.callee.property,messageId:uD}}}),meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression.",recommended:!0},messages:{[uD]:"The listener argument should be a function reference."}}});let{getFunctionHeadLocation:uS,getFunctionNameWithKind:uw}=tr,{getReferences:uF,isNodeMatches:u_}=nb,{functionTypes:uk}=tO,uT="consistent-function-scoping",uP=(e,t)=>e&&t&&(e===t||e.block===t.block),uI=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),uB=e=>e.block?.parent?.callee&&u_(e.block.parent.callee,uI),uj=e=>"function"===e.type&&e.block?.type==="ArrowFunctionExpression"&&(e.thisFound||e.childScopes.some(e=>uj(e))),uO=new Set(["FunctionExpression","ArrowFunctionExpression"]),uR=e=>uO.has(e.type)&&"CallExpression"===e.parent.type&&e.parent.callee===e;var uL=/*@__PURE__*/Y({create:e=>{let{checkArrowFunctions:t}={checkArrowFunctions:!0,...e.options[0]},{sourceCode:r}=e,{scopeManager:n}=r,u=[];e.on(uk,()=>{u.push(!1)}),e.on("JSXElement",()=>{u.length>0&&(u[u.length-1]=!0)}),e.onExit(uk,e=>{if(!(u.pop()||"ArrowFunctionExpression"===e.type&&!t||function(e,t){let r=t.acquire(e);if(!r||uj(r))return!0;let n=e.parent;"VariableDeclarator"===n.type&&(n=n.parent),"VariableDeclaration"===n.type&&(n=n.parent),"BlockStatement"===n.type&&(n=n.parent);let u=t.acquire(n);return!!(!u||"global"===u.type||uB(u)||uR(n))||function(e,t,r){let n=e=>e.some(e=>{if(uP(t,e.from))return!0;let{resolved:r}=e,[n]=r.defs;return(n?.type!=="FunctionName"||r.name!==n.name.name)&&uP(t,r.scope)}),u=e=>e.some(e=>uP(t,r.acquire(e.node))),a=n=>n.some(n=>{if(!n.parent||"FunctionDeclaration"!==n.parent.type||r.acquire(n))return!1;let u=r.acquire(n.parent);return!(!u||uP(e,u))&&uP(t,u.upper)});return uF(e).map(({resolved:e})=>e).filter(Boolean).some(e=>n(e.references)||u(e.defs)||a(e.identifiers))}(r,u,t)}(e,n)))return{node:e,loc:uS(e,r),messageId:uT,data:{functionNameWithKind:uw(e,r)}}})},meta:{type:"suggestion",docs:{description:"Move function definitions to the highest possible scope.",recommended:!0},schema:[{type:"object",additionalProperties:!1,properties:{checkArrowFunctions:{type:"boolean",default:!0}}}],messages:{[uT]:"Move {{functionNameWithKind}} to the outer scope."}}});let{getStaticValue:uN}=tr,{isNumberLiteral:uM}=tO,u$=(e,t,r)=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.object.type&&e.object.name===t&&"Identifier"===e.property.type&&r.has(e.property.name),uz=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,uU=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),uq=e=>u$(e,"Math",uU),uW=new Set(["abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","clz32","cos","cosh","exp","expm1","floor","fround","hypot","imul","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc"]),uV=e=>"CallExpression"===e.type&&!e.optional&&u$(e.callee,"Math",uW),uZ=e=>uz(e,"Number"),uG=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),uH=e=>u$(e,"Number",uG),uK=new Set(["parseFloat","parseInt"]),uX=e=>"CallExpression"===e.type&&!e.optional&&u$(e.callee,"Number",uK),uJ=e=>uz(e,"parseInt")||uz(e,"parseFloat"),uY=(e,t)=>"number"==typeof uN(e,t)?.value,uQ=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,u0=new Set(["-","*","/","%","**","<<",">>","|","^","&"]);var u1=function e(t,r){if(uM(t)||uq(t)||uV(t)||uZ(t)||uH(t)||uX(t)||uJ(t)||uQ(t))return!0;switch(t.type){case"AssignmentExpression":{let{operator:n}=t;if("="===n&&e(t.right,r))return!0}case"BinaryExpression":{let{operator:n}=t;if("AssignmentExpression"===t.type&&(n=n.slice(0,-1)),"+"===n&&e(t.left,r)&&e(t.right,r)||">>>"===n||u0.has(n)&&(e(t.left,r)||e(t.right,r)))return!0;break}case"UnaryExpression":{let{operator:n}=t;if("+"===n||("-"===n||"~"===n)&&e(t.argument,r))return!0;break}case"UpdateExpression":if(e(t.argument,r))return!0;break;case"ConditionalExpression":{let n=e(t.consequent,r),u=e(t.alternate,r);if(n&&u)return!0;let a=uN(t.test,r);if(null!==a&&(a.value&&n||!a.value&&u))return!0;break}case"SequenceExpression":if(e(t.expressions.at(-1),r))return!0}return uY(t,r)};let{getStaticValue:u2}=tr,{switchNewExpressionToCallExpression:u3}=ua,{isNewExpression:u4}=tO,u5="error",u8="error-unknown",u6="suggestion",u9=(e,t)=>{if(1!==e.length)return"from";let[r]=e;if("SpreadElement"===r.type)return;if("ArrayExpression"===r.type||"TemplateLiteral"===r.type)return"from";if(u1(r,t))return"alloc";let n=u2(r,t);if(n){let{value:e}=n;if("string"==typeof e||Array.isArray(e))return"from"}};function u7(e,t,r){return function*(n){yield n.insertTextAfter(e.callee,`.${r}`),yield*u3(e,t,n)}}var ae=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e;return{NewExpression(e){if(!u4(e,{name:"Buffer"}))return;let r=u9(e.arguments,t.getScope(e));return r?{node:e,messageId:u5,data:{method:r},fix:u7(e,t,r)}:{node:e,messageId:u8,suggest:["from","alloc"].map(r=>({messageId:u6,data:{replacement:r},fix:u7(e,t,r)}))}}}},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[u5]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[u8]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[u6]:"Switch to `Buffer.{{replacement}}()`."}}});let{isStringLiteral:at,isMethodCall:ar}=tO,an="no-console-spaces",au=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),aa=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2);var ai=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e,r=(e,r,n)=>{let u="leading"===n?e.range[0]+1:e.range[1]-2,a=[u,u+1];return{loc:ni(a,t),messageId:an,data:{method:r,position:n},fix:e=>e.removeRange(a)}};return{*CallExpression(e){if(!ar(e,{object:"console",methods:["log","debug","info","warn","error"],minimumArguments:1,optionalCall:!1,optionalMember:!1}))return;let n=e.callee.property.name,{arguments:u}=e,{length:a}=u;for(let[e,i]of u.entries()){if(!at(i)&&"TemplateLiteral"!==i.type)continue;let u=t.getText(i).slice(1,-1);0!==e&&au(u)&&(yield r(i,n,"leading")),e!==a-1&&aa(u)&&(yield r(i,n,"trailing"))}}}},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters.",recommended:!0},fixable:"code",messages:{[an]:"Do not use {{position}} space between `console.{{method}}` parameters."}}});let{isEmptyNode:ao,isDirective:as}=tO,ad="no-empty-file",al=e=>ao(e,as),ac=e=>"Line"===e.type&&e.value.startsWith("/"),af=e=>e.some(e=>ac(e));var ap=/*@__PURE__*/Y({create:e=>{let t=e.physicalFilename;if(/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(t))return{Program(t){if(t.body.some(e=>!al(e)))return;let{sourceCode:r}=e;if(!af(r.getAllComments()))return{node:t,messageId:ad}}}},meta:{type:"suggestion",docs:{description:"Disallow empty files.",recommended:!0},messages:{[ad]:"Empty files are not allowed."}}});let{isParenthesized:am,getParenthesizedRange:ag}=tp,{removeParentheses:ay}=ua,ah="no-useless-fallback-in-spread";var ab=/*@__PURE__*/Y({create:e=>({ObjectExpression(t){if(0===t.properties.length&&"LogicalExpression"===t.parent.type&&t.parent.right===t&&("||"===t.parent.operator||"??"===t.parent.operator)&&"SpreadElement"===t.parent.parent.type&&t.parent.parent.argument===t.parent&&"ObjectExpression"===t.parent.parent.parent.type&&t.parent.parent.parent.properties.includes(t.parent.parent))return{node:t,messageId:ah,*fix(r){let{sourceCode:n}=e,u=t.parent,{left:a}=u,i=am(a,n),[,o]=i?ag(a,n):a.range,[,s]=u.range;yield r.removeRange([o,s]),(i||"SequenceExpression"!==a.type)&&(yield*ay(u,r,n))}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals.",recommended:!0},fixable:"code",messages:{[ah]:"The empty object is useless."}}});let{isMethodCall:av,isMemberExpression:ax}=tO,{getParenthesizedRange:aE,isSameReference:aA,isLogicalExpression:aD}=nb,aC=e=>"BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&ax(e.left,{property:"length",optional:!1})&&aD(e.parent);var aS=/*@__PURE__*/Y({create:e=>{let t=[],r=new Set,n=new Set,u=new Set,a=new Set;return{BinaryExpression(e){if(aC(e)){let{operator:t}=e;"==="===t?r.add(e):(">"===t||"!=="===t)&&n.add(e)}},CallExpression(e){av(e,{optionalCall:!1,optionalMember:!1,computed:!1})&&"Identifier"===e.callee.property.type&&("some"===e.callee.property.name?u.add(e):"every"===e.callee.property.name&&a.add(e))},LogicalExpression(e){aD(e)&&t.push(e)},*"Program:exit"(){for(let i of new Set(t.flatMap(e=>(function(e){let{operator:t}=e;return(function e(t){return[t.left,t.right].flatMap(r=>"LogicalExpression"===r.type&&r.operator===t.operator?e(r):[r])})(e).filter((e,i,o)=>(function({node:e,operator:t,siblings:i}){return"||"===t&&r.has(e)&&i.some(t=>a.has(t)&&aA(e.left.object,t.callee.object))||"&&"===t&&n.has(e)&&i.some(t=>u.has(t)&&aA(e.left.object,t.callee.object))})({node:e,operator:t,siblings:[o[i-1],o[i+1]].filter(Boolean)}))})(e))))yield{loc:{start:i.left.property.loc.start,end:i.loc.end},messageId:r.has(i)?"zero":"non-zero",fix(t){let{sourceCode:r}=e,{left:n,right:u}=i.parent,a=aE(n,r),o=aE(u,r),s=[];return n===i?(s[0]=a[0],s[1]=o[0]):(s[0]=a[1],s[1]=o[1]),t.removeRange(s)}}}}},meta:{type:"suggestion",docs:{description:"Disallow useless array length check.",recommended:!0},fixable:"code",messages:{"non-zero":"The non-empty check is useless as `Array#some()` returns `false` for an empty array.",zero:"The empty check is useless as `Array#every()` returns `true` for an empty array."}}});let{getParenthesizedRange:aw}=nb,{isFunction:aF,isMethodCall:a_}=tO;var ak=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e;return{CallExpression(e){if(!(a_(e,{object:"Promise",methods:["resolve","reject"],optionalCall:!1,optionalMember:!1})&&("ArrowFunctionExpression"===e.parent.type&&e.parent.body===e||"ReturnStatement"===e.parent.type&&e.parent.argument===e||"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)))return;let{functionNode:r,isInTryStatement:n}=function(e){let t,r=!1;for(;e;e=e.parent){if(aF(e)){t=e;break}"TryStatement"===e.type&&(r=!0)}return{functionNode:t,isInTryStatement:r}}(e);if(r&&(r.async||function(e){if("CallExpression"===e.parent.type&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&"Identifier"===e.parent.callee.property.type){let{callee:{property:t},arguments:r}=e.parent;if(1===r.length&&("then"===t.name||"catch"===t.name||"finally"===t.name)&&r[0]===e||2===r.length&&"then"===t.name&&(r[0]===e||"SpreadElement"!==r[0].type&&r[1]===e))return!0}return!1}(r)))return function(e,t){let{callee:r,parent:n}=e,u=r.property.name;return{node:r,messageId:u,data:{type:"YieldExpression"===n.type?"yield":"return"},fix:t}}(e,function(e,t,r){if(e.arguments.length>1)return;let{callee:n,parent:u,arguments:[a]}=e;if(a?.type==="SpreadElement")return;let i="reject"===n.property.name,o="YieldExpression"===u.type;if(!i||!t&&(!o||"ExpressionStatement"===u.parent.type))return function(t){let n="ArrowFunctionExpression"===u.type,s=a?r.getText(a):"";if(a?.type==="SequenceExpression"&&(s=`(${s})`),i){if(s||="undefined",s=`throw ${s}`,o)return t.replaceTextRange(aw(u,r),s);if(s+=";",n)return s=`{ ${s} }`,t.replaceTextRange(aw(e,r),s)}else o?s=`yield${s?" ":""}${s}`:"ReturnStatement"===u.type?s=`return${s?" ":""}${s};`:(a?.type==="ObjectExpression"&&(s=`(${s})`),s||="{}");return t.replaceText(n?e:u,s)}}(e,n,t))}}},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks",recommended:!0},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}});let{isParenthesized:aT}=tr,{isDecimalInteger:aP}=nt,{fixSpaceAroundKeyword:aI}=ua,{isNumberLiteral:aB}=tO,aj="zero-fraction",aO="dangling-dot";var aR=/*@__PURE__*/Y({create:e=>({Literal(t){if(!aB(t))return;let{raw:r}=t,n=r.match(/^(?<before>[\d_]*)(?<dotAndFractions>\.[\d_]*)(?<after>.*)$/);if(!n)return;let{before:u,dotAndFractions:a,after:i}=n.groups,o=(u+a.replaceAll(/[.0_]+$/g,"")||"0")+i;if(o===r)return;let s="."===a,d=t.range[0]+u.length+a.length,l=d-(r.length-o.length),{sourceCode:c}=e;return{loc:ni([l,d],c),messageId:s?aO:aj,*fix(e){let r=o;"MemberExpression"===t.parent.type&&t.parent.object===t&&aP(o)&&!aT(t,c)&&(r=`(${r})`,r3(c.getTokenBefore(t),c,r)&&(r=`;${r}`)),yield e.replaceText(t,r),yield*aI(e,t,c)}}}}),meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots.",recommended:!0},fixable:"code",messages:{[aj]:"Don't use a zero fraction in the number.",[aO]:"Don't use a dangling dot in the number."}}});let{isCommaToken:aL,isOpeningBraceToken:aN,isClosingBraceToken:aM}=tr,{isStringLiteral:a$}=tO,az="error",aU="suggestion",aq=Symbol.for("default"),aW=Symbol("NAMESPACE_SPECIFIER_NAME"),aV=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},aZ=e=>"type"===e.exportKind||"type"===e.parent.exportKind,aG=e=>"type"===e.importKind||"type"===e.parent.importKind;function*aH(e,t,r){switch(e.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":yield*function*(e,t,r){let{parent:n}=e,{specifiers:u}=n;if(1===u.length){yield*aH(n,t,r);return}switch(e.type){case"ImportSpecifier":if(!u.some(t=>t!==e&&t.type===e.type)){let n=r.getTokenAfter(e,aM),u=r.getTokenBefore(e,aL);yield t.replaceTextRange([u.range[0],n.range[1]],"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield t.remove(e);let n=r.getTokenAfter(e);aL(n)&&(yield t.remove(n))}}}(e,t,r);return;case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield t.remove(e)}}function aK(e,t){let[r]=t.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value).range,[,n]=e.range;return t.text.slice(r,n)}var aX=/*@__PURE__*/Y({create:function(e){let{sourceCode:t}=e,{ignoreUsedVariables:r}={ignoreUsedVariables:!1,...e.options[0]},n=new Set,u=[];return{ImportDeclaration(e){e.specifiers.length>0&&n.add(e)},ExportNamedDeclaration(e){a$(e.source)&&u.push(e)},*"Program:exit"(e){for(let a of n){let n=t.getDeclaredVariables(a);if(n.some(e=>1!==e.defs.length||e.defs[0].parent!==a)||(n=n.map(e=>{let r=function(e,t){let r=e.defs[0].node,n={node:r,declaration:r.parent,variable:e,isTypeImport:aG(r)};switch(r.type){case"ImportDefaultSpecifier":return{name:aq,text:"default",...n};case"ImportSpecifier":return{name:aV(r.imported),text:t.getText(r.imported),...n};case"ImportNamespaceSpecifier":return{name:aW,text:"*",...n}}}(e,t),n=function(e,t){let r=[];for(let{identifier:n}of e.variable.references){let u=function(e,t){let{parent:r}=e;switch(r.type){case"ExportDefaultDeclaration":return{node:r,name:aq,text:"default",isTypeExport:aZ(r)};case"ExportSpecifier":return{node:r,name:aV(r.exported),text:t.getText(r.exported),isTypeExport:aZ(r)};case"VariableDeclarator":if(r.init===e&&"Identifier"===r.id.type&&!r.id.typeAnnotation&&"VariableDeclaration"===r.parent.type&&"const"===r.parent.kind&&1===r.parent.declarations.length&&r.parent.declarations[0]===r&&"ExportNamedDeclaration"===r.parent.parent.type&&function(e,t){let r=t.getDeclaredVariables(e);if(1!==r.length)return!1;let[{identifiers:n,references:u}]=r;return 1===n.length&&n[0]===e.id&&1===u.length&&u[0].identifier===e.id}(r,t))return{node:r.parent.parent,name:Symbol.for(r.id.name),text:t.getText(r.id)}}}(n,t);u&&(e.name!==aW||u.name!==aq)&&r.push(u)}return r}(r,t);return{variable:e,imported:r,exports:n}}),r&&n.some(({variable:e,exports:t})=>e.references.length!==t.length)))continue;let i=r&&n.some(({variable:e})=>0===e.references.length);for(let{imported:r,exports:a}of n)for(let n of a){let a={node:n.node,messageId:az,data:{exported:n.text}},o=function({sourceCode:e,imported:t,exported:r,exportDeclarations:n,program:u}){let a;let i=t.declaration,o=i.source.value,s=t.isTypeImport||r.isTypeExport;return s&&(a=n.find(({source:e,exportKind:t})=>e.value===o&&"type"===t)),a||=n.find(({source:e,exportKind:t})=>e.value===o&&"type"!==t),function*(n){if(t.name===aW)yield n.insertTextAfter(u,`
2
- export * as ${r.text} ${aK(i,e)}`);else{let o=r.name===t.name?r.text:`${t.text} as ${r.text}`;if(s&&(!a||"type"!==a.exportKind)&&(o=`type ${o}`),a){let t=a.specifiers.at(-1);if(t)yield n.insertTextAfter(t,`, ${o}`);else{let t=e.getFirstToken(a,aN);yield n.insertTextAfter(t,o)}}else yield n.insertTextAfter(u,`
3
- export {${o}} ${aK(i,e)}`)}1===t.variable.references.length&&(yield*aH(t.node,n,e)),yield*aH(r.node,n,e)}}({sourceCode:t,imported:r,exported:n,exportDeclarations:u,program:e});i?a.suggest=[{messageId:aU,fix:o}]:a.fix=o,yield a}}}}},meta:{type:"suggestion",docs:{description:"Prefer `export…from` when re-exporting.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignoreUsedVariables:{type:"boolean",default:!1}}}],messages:{[az]:"Use `export…from` to re-export `{{exported}}`.",[aU]:"Switch to `export…from`."}}});let{getFunctionHeadLocation:aJ,getFunctionNameWithKind:aY}=tr,{functionTypes:aQ}=tO,a0="prefer-native-coercion-functions",a1=new Set(["String","Number","BigInt","Boolean","Symbol"]),a2=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),a3=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&a1.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,a4=e=>"ArrowFunctionExpression"===e.type&&"Identifier"===e.body.type&&e.body.name===e.params[0].name||"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&e.body.body[0].argument?.type==="Identifier"&&e.body.body[0].argument.name===e.params[0].name,a5=e=>a4(e)&&"CallExpression"===e.parent.type&&!e.parent.optional&&e.parent.arguments[0]===e&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&!e.parent.callee.optional&&"Identifier"===e.parent.callee.property.type&&a2.has(e.parent.callee.property.name);var a8=/*@__PURE__*/Y({create:e=>{e.on(aQ,t=>{if(t.async||t.generator||0===t.params.length||"Identifier"!==t.params[0].type||("MethodDefinition"===t.parent.type&&("constructor"===t.parent.kind||"set"===t.parent.kind)||"Property"===t.parent.type&&"set"===t.parent.kind)&&t.parent.value===t)return;let r=function(e){if(a5(e))return{replacementFunction:"Boolean",fix:t=>t.replaceText(e,"Boolean")}}(t)||function(e){let t=function(e){let t=e.params[0].name;return"ArrowFunctionExpression"===e.type&&a3(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&a3(e.body.body[0].argument,t)?e.body.body[0].argument:void 0}(e);if(!t)return;let{name:r}=t.callee,n={replacementFunction:r};return"FunctionDeclaration"===e.type||1!==t.arguments.length||(n.fix=t=>{let n=r;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?n=`: ${n}`:"MethodDefinition"===e.parent.type&&(n=` = ${n};`),t.replaceText(e,n)}),n}(t);if(!r)return;let{sourceCode:n}=e,{replacementFunction:u,fix:a}=r;return r={node:t,loc:aJ(t,n),messageId:a0,data:{functionNameWithKind:aY(t,n),replacementFunction:u}},!a||1!==t.params.length||n.getCommentsInside(t).length>0||(r.fix=a),r})},meta:{type:"suggestion",docs:{description:"Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.",recommended:!0},fixable:"code",messages:{[a0]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}});let{ReferenceTracker:a6}=tr,a9=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").reverse())r={[t]:r};return r},a7=class{#e={};#t;#r;constructor({object:e,objects:t=[e],filter:r,handle:n,type:u=a6.READ}){for(let e of t)Object.assign(this.#e,a9(e,u));this.#t=r,this.#r=n}*track(e){for(let t of new a6(e).iterateGlobalReferences(this.#e)){if(this.#t&&!this.#t(t))continue;let e=this.#r(t);e&&(e[Symbol.iterator]?yield*e:yield e)}}createListeners(e){return{"Program:exit":t=>this.track(e.sourceCode.getScope(t))}}};Object.assign(a7,{READ:a6.READ,CALL:a6.CALL,CONSTRUCT:a6.CONSTRUCT});var ie={GlobalReferenceTracker:a7};let{GlobalReferenceTracker:it}=ie,ir="no-document-cookie",iu=new it({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:ir})});var ia=/*@__PURE__*/Y({create:e=>iu.createListeners(e),meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly.",recommended:!0},messages:{[ir]:"Do not use `document.cookie` directly."}}});let ii=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()];var io=new Set(["click","rightclick","dblclick","auxclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","mousecancel","selectionchange","selectstart","wheel","keypress","keydown","keyup","blur","focus","deactivate","focusin","focusout","change","reset","select","submit","input","propertychange","dragstart","drag","dragenter","dragover","dragleave","drop","dragend","touchstart","touchmove","touchend","touchcancel","beforeunload","consolemessage","contextmenu","devicechange","devicemotion","deviceorientation","DOMContentLoaded","error","help","load","losecapture","orientationchange","readystatechange","resize","scroll","unload","canplay","canplaythrough","durationchange","emptied","ended","loadeddata","loadedmetadata","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","sourceopen","sourceended","sourceclosed","abort","update","updatestart","updateend","hashchange","pagehide","pageshow","popstate","copy","paste","cut","beforecopy","beforecut","beforepaste","online","offline","message","connect","install","activate","fetch","foreignfetch","messageerror","statechange","updatefound","controllerchange",...ii("AnimationStart"),...ii("AnimationEnd"),...ii("AnimationIteration"),...ii("TransitionEnd"),"pointerdown","pointerup","pointercancel","pointermove","pointerover","pointerout","pointerenter","pointerleave","gotpointercapture","lostpointercapture","MSGestureChange","MSGestureEnd","MSGestureHold","MSGestureStart","MSGestureTap","MSGotPointerCapture","MSInertiaStart","MSLostPointerCapture","MSPointerCancel","MSPointerDown","MSPointerEnter","MSPointerHover","MSPointerLeave","MSPointerMove","MSPointerOut","MSPointerOver","MSPointerUp","text","textinput","textInput","compositionstart","compositionupdate","compositionend","beforeinput","exit","loadabort","loadcommit","loadredirect","loadstart","loadstop","responsive","sizechanged","unresponsive","visibilitychange","storage","DOMSubtreeModified","DOMNodeInserted","DOMNodeRemoved","DOMNodeRemovedFromDocument","DOMNodeInsertedIntoDocument","DOMAttrModified","DOMCharacterDataModified","beforeprint","afterprint","beforeinstallprompt","appinstalled","afterblur","beforeblur","cancel","close","dragexit","encrypted","fullscreenchange","invalid","toggle","search","open","show"]);let{isParenthesized:is}=tr,{isUndefined:id,isNullLiteral:il,isStaticRequire:ic}=tO,ip="prefer-add-event-listener",im={beforeunload:"Use `event.preventDefault(); event.returnValue = 'foo'` to trigger the prompt.",message:"Note that there is difference between `SharedWorker#onmessage` and `SharedWorker#addEventListener('message')`.",error:"Note that there is difference between `{window,element}.onerror` and `{window,element}.addEventListener('error')`."},ig=e=>e.property.name,iy=e=>e.slice(2),ih=(e,t,r,n)=>{let u=iy(ig(n)),a=t.getText(n.object);is(n.object,t)&&(a=`(${a})`);let i=t.getText(r.right);is(r.right,t)&&(i=`(${i})`);let o=`${a}.addEventListener('${u}', ${i})`;return e.replaceText(r,o)},ib=(e,t)=>("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&"BlockStatement"===e.body.type&&!t.get(e),iv=e=>id(e)||il(e);var ix=/*@__PURE__*/Y({create:e=>{let t,r;let n=new Set((e.options[0]||{}).excludedPackages||["koa","sax"]),u=new WeakMap;return{onCodePathStart(e,t){r={node:t,upper:r,returnsSomething:!1}},onCodePathEnd(){u.set(r.node,r.returnsSomething),r=r.upper},CallExpression(e){ic(e)&&!t&&n.has(e.arguments[0].value)&&(t=!0)},Literal(e){"ImportDeclaration"===e.parent.type&&!t&&n.has(e.value)&&(t=!0)},ReturnStatement(e){r.returnsSomething||=!!e.argument},"AssignmentExpression:exit"(r){let n;if(t)return;let{left:a,right:i,operator:o}=r;if("MemberExpression"!==a.type||a.computed)return;let s=ig(a);if(!s||!s.startsWith("on"))return;let d=iy(s);if(!io.has(d))return;let l="addEventListener",c="";return iv(i)?l="removeEventListener":"beforeunload"!==d||ib(i,u)?"message"===d?c=im.message:"error"===d?c=im.error:"="===o&&"ExpressionStatement"===r.parent.type&&r.parent.expression===r&&(n=t=>ih(t,e.sourceCode,r,a)):c=im.beforeunload,{node:a.property,messageId:ip,data:{replacement:l,method:s,extra:c?` ${c}`:""},fix:n}}}},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0}}}],messages:{[ip]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}});let{hasSideEffect:iE,isParenthesized:iA,findVariable:iD}=tr,{isMethodCall:iC}=tO,{isSameIdentifier:iS,isFunctionSelfUsedInside:iw}=nb,iF=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(iS(e.left,t)||iS(e.right,t)),i_=e=>"ArrowFunctionExpression"===e.type&&!e.async&&1===e.params.length&&iF(e.body,e.params[0])||("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&!e.async&&!e.generator&&1===e.params.length&&"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&iF(e.body.body[0].argument,e.params[0]),ik=({type:e,name:t},r)=>"Identifier"===e&&t===r,iT=function({method:e,replacement:t}){let r=`prefer-${t}-over-${e}/`,n=`${r}error`,u=`${r}suggestion`;return{messages:{[n]:({findIndex:"Use `.indexOf()` instead of `.findIndex()` when looking for the index of an item.",findLastIndex:"Use `.lastIndexOf()` instead of `findLastIndex() when looking for the index of an item.`",some:`Use \`.${t}()\` instead of \`.${e}()\` when checking value existence.`})[e],[u]:`Replace \`.${e}()\` with \`.${t}()\`.`},listen:function(r){let{sourceCode:a}=r,{scopeManager:i}=a;r.on("CallExpression",r=>{let o,s;if(!iC(r,{method:e,argumentsLength:1,optionalCall:!1,optionalMember:!1})||!i_(r.arguments[0]))return;let[d]=r.arguments,l="BinaryExpression"===d.body.type?d.body:d.body.body[0].argument,[c]=d.params,{left:f,right:p}=l,{name:m}=c;if(ik(f,m))o=p,s=f;else{if(!ik(p,m))return;o=f,s=p}let g=i.acquire(d);if(iD(g,c).references.some(({identifier:e})=>e!==s)||iw(d,g))return;let y=r.callee.property,h={node:y,messageId:n,suggest:[]},b=function*(e){let r=a.getText(o);iA(o,a)&&!iA(d,a)&&(r=`(${r})`),yield e.replaceText(y,t),yield e.replaceText(d,r)};return iE(o,a)?h.suggest.push({messageId:u,fix:b}):h.fix=b,h})}}},iP=iT({method:"findIndex",replacement:"indexOf"}),iI=iT({method:"findLastIndex",replacement:"lastIndexOf"});var iB=/*@__PURE__*/Y({create(e){iP.listen(e),iI.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{...iP.messages,...iI.messages}}});let{isMethodCall:ij}=tO,iO="error";var iR=/*@__PURE__*/Y({create:()=>({CallExpression(e){if(!ij(e,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let t=e.callee.property,r=t.name;return{node:t,messageId:iO,data:{method:r,replacement:"readAsArrayBuffer"===r?"arrayBuffer":"text"}}}}),meta:{type:"suggestion",docs:{description:"Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.",recommended:!0},messages:{[iO]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}});let{isMethodCall:iL,isCallExpression:iN,isNewExpression:iM}=tO,{fixSpaceAroundKeyword:i$}=ua,iz="prefer-date",iU="prefer-date-now-over-methods",iq="prefer-date-now-over-number-data-object",iW=e=>iM(e,{name:"Date",argumentsLength:0}),iV=(e,t,r)=>({node:e,messageId:iz,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield*i$(t,e,r))},...t});var iZ=/*@__PURE__*/Y({create:e=>({CallExpression(e){if(iL(e,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&iW(e.callee.object)){let t=e.callee.property;return iV(e,{node:t,messageId:iU,data:{method:t.name}})}if(iN(e,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&iW(e.arguments[0])){let{name:t}=e.callee;return"Number"===t?iV(e,{messageId:iq}):iV(e.arguments[0])}},UnaryExpression(t){if(("+"===t.operator||"-"===t.operator)&&iW(t.argument))return iV("-"===t.operator?t.argument:t,{},e.sourceCode)},AssignmentExpression(e){if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&iW(e.right))return iV(e.right)},*BinaryExpression(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])iW(t)&&(yield iV(t))}}),meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.",recommended:!0},fixable:"code",messages:{[iz]:"Prefer `Date.now()` over `new Date()`.",[iU]:"Prefer `Date.now()` over `Date#{{method}}()`.",[iq]:"Prefer `Date.now()` over `Number(new Date())`."}}});let{isIdentifierName:iG}=tW,{escapeString:iH,hasOptionalChainElement:iK,isValueNotUsable:iX}=nb,{isMethodCall:iJ,isStringLiteral:iY,isExpressionStatement:iQ}=tO,i0="prefer-dom-node-dataset",i1=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());var i2=/*@__PURE__*/Y({create:e=>({CallExpression(t){if(!((iJ(t,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||iJ(t,{methods:["getAttribute","removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&iY(t.arguments[0])))return;let r=t.callee.property.name;if(("AwaitExpression"!==t.parent.type||t.parent.argument!==t||"getAttribute"!==r)&&t.arguments[0].value.toLowerCase().startsWith("data-"))return{node:t,messageId:i0,data:{method:t.callee.property.name},fix:function(e,t){let r=e.callee.property.name;if(!("setAttribute"===r&&iK(e.callee))&&("setAttribute"!==r||iX(e))&&("removeAttribute"!==r||iQ(e.parent)))return n=>{let[u]=e.arguments,a=i1(u.value.toLowerCase().slice(5)),{sourceCode:i}=t,o="",s=`${i.getText(e.callee.object)}.dataset`;switch(r){case"setAttribute":case"getAttribute":case"removeAttribute":o=iG(a)?`.${a}`:`[${iH(a,u.raw.charAt(0))}]`,o=`${s}${o}`,"setAttribute"===r?o+=` = ${i.getText(e.arguments[1])}`:"removeAttribute"===r&&(o=`delete ${o}`);break;case"hasAttribute":o=`Object.hasOwn(${s}, ${iH(a,u.raw.charAt(0))})`}return n.replaceText(e,o)}}(t,e)}}}),meta:{type:"suggestion",docs:{description:"Prefer using `.dataset` on DOM elements over calling attribute methods.",recommended:!0},fixable:"code",messages:{[i0]:"Prefer `.dataset` over `{{method}}(…)`."}}});let{getParenthesizedText:i3,getParenthesizedRange:i4,isSameReference:i5}=nb,{isLiteral:i8,isMethodCall:i6}=tO,{replaceNodeOrTokenAndSpacesBefore:i9,removeParentheses:i7}=ua,oe="prefer-modern-math-apis",ot=(e,t)=>"MemberExpression"===e.type&&!e.optional&&!e.computed&&"Identifier"===e.object.type&&"Math"===e.object.name&&"Identifier"===e.property.type&&e.property.name===t,or=(e,t)=>"CallExpression"===e.type&&!e.optional&&ot(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function on({constantName:e,replacementMethod:t}){let r=`Math.${t}(…)`;return function(n,u){let a,i;if(!("BinaryExpression"===n.type&&"*"===n.operator)||(or(n.left,"log")&&ot(n.right,e)?(a=n.left,i=`Math.log(…) * Math.${e}`):or(n.right,"log")&&ot(n.left,e)&&(a=n.right,i=`Math.${e} * Math.log(…)`),!a))return;let[o]=a.arguments;return{node:n,messageId:oe,data:{replacement:r,description:i},fix:e=>e.replaceText(n,`Math.${t}(${i3(o,u.sourceCode)})`)}}}function ou({constantName:e,replacementMethod:t}){let r={messageId:oe,data:{replacement:`Math.${t}(…)`,description:`Math.log(…) / Math.${e}`}};return function(n,u){if(!("BinaryExpression"===n.type&&"/"===n.operator&&or(n.left,"log")&&ot(n.right,e)))return;let[a]=n.left.arguments;return{...r,node:n,fix:e=>e.replaceText(n,`Math.${t}(${i3(a,u.sourceCode)})`)}}}let oa=[on({constantName:"LOG10E",replacementMethod:"log10"}),on({constantName:"LOG2E",replacementMethod:"log2"}),ou({constantName:"LN10",replacementMethod:"log10"}),ou({constantName:"LN2",replacementMethod:"log2"})],oi=e=>"BinaryExpression"===e.type&&"+"===e.operator,oo=e=>"BinaryExpression"===e.type&&("*"===e.operator&&i5(e.left,e.right)||"**"===e.operator&&i8(e.right,2)),os=e=>oi(e)?[e.left,e.right].flatMap(e=>os(e)):[e];var od=/*@__PURE__*/Y({create:e=>{let t=[];return{CallExpression(t){if(!i6(t,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let r=os(t.arguments[0]);if(r.some(e=>!oo(e)))return;let n=1===r.length?"abs":"hypot",u=new Set(1===r.length?[]:r.map(e=>e.parent));return{node:t.callee.property,messageId:oe,data:{replacement:`Math.${n}(…)`,description:"Math.sqrt(…)"},*fix(a){let{sourceCode:i}=e;for(let e of(yield a.replaceText(t.callee.property,n),u)){let t=i.getTokenAfter(e.left,e=>"Punctuator"===e.type&&"+"===e.value);yield*i9(t,",",a,i),yield*i7(e,a,i)}for(let e of r)yield a.removeRange([i4(e.left,i)[1],e.range[1]])}}},BinaryExpression(e){t.push(e)},*"Program:exit"(){for(let r of t)for(let t of oa){let n=t(r,e);n&&(yield n)}}}},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns.",recommended:!0},fixable:"code",messages:{[oe]:"Prefer `{{replacement}}` over `{{description}}`."}}}),ol=/*@__PURE__*/Q(t);let oc=e=>"function"==typeof e?.[Symbol.iterator],of=class extends Error{},op={abort(){throw new of("Fix aborted.")}};function om(e){return t=>{let r=e(t,op);if(oc(r))try{return[...r]}catch(e){if(e instanceof of)return;throw e}return r}}let og=new Set;function oy(e){if(og.has(e))return e;let t=t=>{let r={},n=(e,t)=>{r[e]??=[],r[e].push(t)};for(let[r,u]of Object.entries(e(new Proxy(t,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))n(r,u);return Object.fromEntries(Object.entries(r).map(([e,r])=>[e,(...e)=>{for(let n of r)!function(e,t){if(e){for(let r of(oc(e)||(e=[e]),e))if(r){if(r.fix&&=om(r.fix),Array.isArray(r.suggest))for(let e of r.suggest)e.fix&&=om(e.fix),e.data={...r.data,...e.data};t.report(r)}}}(n(...e),t)}]))};return og.add(t),t}function oh(e){let t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../${e}`);return{meta:{schema:[],...t.meta,docs:{...t.meta.docs,url:et(e)}},create:oy(t.create)}}var ob={loadRule:oh,loadRules:function(){return Object.fromEntries(ol.readdirSync(ee.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=ee.basename(e.name,".js");return[t,oh(t)]}))},checkVueTemplate:function(e,t){let{visitScriptBlock:r}={visitScriptBlock:!0,...t};e=oy(e);let n=t=>{let n=e(t),{parserServices:u}=t.sourceCode;return u?.defineTemplateBodyVisitor?r?u.defineTemplateBodyVisitor(n,n):u.defineTemplateBodyVisitor(n):n};return og.add(n),n}};let{checkVueTemplate:ov}=ob,{isNumberLiteral:ox,isBigIntLiteral:oE}=tO,oA="number-literal-case",oD=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};var oC=/*@__PURE__*/Y({create:ov(()=>({Literal(e){let{raw:t}=e,r=t;if(ox(e)?r=oD(t):oE(e)&&(r=oD(t.slice(0,-1))+"n"),t!==r)return{node:e,messageId:oA,fix:t=>t.replaceText(e,r)}}})),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals.",recommended:!0},fixable:"code",messages:{[oA]:"Invalid number literal casing."}}});let{GlobalReferenceTracker:oS}=ie,{replaceReferenceIdentifier:ow}=ua,{fixSpaceAroundKeyword:oF}=ua,o_="error",ok="suggestion",oT={parseInt:!0,parseFloat:!0,NaN:!0,Infinity:!0,isNaN:!1,isFinite:!1},oP=e=>{let{parent:t}=e;return"UnaryExpression"===t.type&&"-"===t.operator&&t.argument===e};var oI=/*@__PURE__*/Y({create:e=>{let{checkInfinity:t,checkNaN:r}={checkInfinity:!1,checkNaN:!0,...e.options[0]},{sourceCode:n}=e;return new oS({objects:Object.keys(oT).filter(e=>(!!t||"Infinity"!==e)&&(!!r||"NaN"!==e)),handle:e=>(function({node:e,path:[t]},r){let{parent:n}=e,u=t;"Infinity"===t&&(u=oP(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let a={node:e,messageId:o_,data:{description:t,property:u}};if("NEGATIVE_INFINITY"===u)return a.node=n,a.data.description="-Infinity",a.fix=function*(e){yield e.replaceText(n,"Number.NEGATIVE_INFINITY"),yield*oF(e,n,r)},a;let i=t=>ow(e,`Number.${u}`,t,r);return oT[t]?a.fix=i:a.suggest=[{messageId:ok,fix:i}],a})(e,n),filter:({node:e})=>!rz(e)}).createListeners(e)},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean",default:!1},checkNaN:{type:"boolean",default:!0}}}],messages:{[o_]:"Prefer `Number.{{property}}` over `{{description}}`.",[ok]:"Replace `{{description}}` with `Number.{{property}}`."}}});let{getPropertyName:oB}=tr,{isNullLiteral:oj,isMethodCall:oO}=tO,oR="prefer-reflect-apply",oL=(e,t)=>(oj(e)||"ThisExpression"===e.type)&&("ArrayExpression"===t.type||"Identifier"===t.type&&"arguments"===t.name),oN=(e,t,r,n)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(n)})`,oM=(e,t)=>{if("apply"===oB(e.callee)&&2===e.arguments.length&&oL(e.arguments[0],e.arguments[1]))return r=>r.replaceText(e,oN(t,e.callee.object,e.arguments[0],e.arguments[1]))},o$=(e,t)=>{if("call"===oB(e.callee)&&"apply"===oB(e.callee.object)&&"prototype"===oB(e.callee.object.object)&&e.callee.object.object.object?.type==="Identifier"&&"Function"===e.callee.object.object.object.name&&3===e.arguments.length&&oL(e.arguments[1],e.arguments[2]))return r=>r.replaceText(e,oN(t,e.arguments[0],e.arguments[1],e.arguments[2]))};var oz=/*@__PURE__*/Y({create:e=>({CallExpression(t){if(!oO(t,{optionalCall:!1,optionalMember:!1})||"Literal"===t.callee.object.type||"ArrayExpression"===t.callee.object.type||"ObjectExpression"===t.callee.object.type)return;let{sourceCode:r}=e,n=oM(t,r)||o$(t,r);if(n)return{node:t,messageId:oR,fix:n}}}),meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`.",recommended:!0},fixable:"code",messages:{[oR]:"Prefer `Reflect.apply()` over `Function#apply()`."}}});let{findVariable:oU}=tr,{fixSpaceAroundKeyword:oq}=ua,{isNewExpression:oW,isMemberExpression:oV}=tO,oZ="prefer-set-size",oG=e=>oW(e,{name:"Set"});var oH=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e;return{MemberExpression(e){if(!oV(e,{property:"length",optional:!1})||"ArrayExpression"!==e.object.type||1!==e.object.elements.length||e.object.elements[0]?.type!=="SpreadElement")return;let r=e.object.elements[0].argument;if(function(e,t){if(oG(e))return!0;if("Identifier"!==e.type)return!1;let r=oU(t,e);if(!r||1!==r.defs.length)return!1;let[n]=r.defs;if("Variable"!==n.type||"const"!==n.kind)return!1;let u=n.node;return"VariableDeclarator"===u.type&&"Identifier"===u.id.type&&oG(n.node.init)}(r,t.getScope(r)))return{node:e.property,messageId:oZ,fix:function(e,t){let{object:r,property:n}=t,u=r.elements[0].argument;if(!(e.getCommentsInside(r).length>e.getCommentsInside(u).length))return function*(a){yield a.replaceText(n,"size"),yield a.replaceText(r,e.getText(u)),yield*oq(a,t,e)}}(t,e)}}}},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`.",recommended:!0},fixable:"code",messages:{[oZ]:"Prefer using `Set#size` instead of `Array#length`."}}}),oK={exports:{}};v=String.fromCodePoint||(h=String.fromCharCode,b=Math.floor,function(){var e,t,r=[],n=-1,u=arguments.length;if(!u)return"";for(var a="";++n<u;){var i=Number(arguments[n]);if(!isFinite(i)||i<0||i>1114111||b(i)!=i)throw RangeError("Invalid code point: "+i);i<=65535?r.push(i):(i-=65536,e=(i>>10)+55296,t=i%1024+56320,r.push(e,t)),(n+1==u||r.length>16384)&&(a+=h.apply(null,r),r.length=0)}return a}),x={parse:function(e,t,r){function n(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function u(e,t){return e.range[0]=t,n(e)}function a(e,t){return n({type:"anchor",kind:e,range:[X-t,X]})}function i(e,t,r,u){return n({type:"value",kind:e,codePoint:t,range:[r,u]})}function o(e,t,r,n){return n=n||0,i(e,t,X-(r.length+n),X)}function s(e){var t,r=e[0],n=r.charCodeAt(0);return K&&1===r.length&&n>=55296&&n<=56319&&(t=y().charCodeAt(0))>=56320&&t<=57343?i("symbol",(n-55296)*1024+t-56320+65536,++X-2,X):i("symbol",n,X-1,X)}function d(e,t,r,u,a){return null==u&&(r=X-1,u=X),n({type:"quantifier",min:e,max:t,greedy:!0,body:null,symbol:a,range:[r,u]})}function l(e,t,r,u){return n({type:"characterClass",kind:e.kind,body:e.body,negative:t,range:[r,u]})}function c(e,t,r,u){return e.codePoint>t.codePoint&&U("invalid range in character class",e.raw+"-"+t.raw,r,u),n({type:"characterClassRange",min:e,max:t,range:[r,u]})}function f(e){return"alternative"===e.type?e.body:[e]}function p(t){t=t||1;var r=e.substring(X,X+t);return X+=t||1,r}function m(e){g(e)||U("character",e)}function g(t){if(e.indexOf(t,X)===X)return p(t.length)}function y(){return e[X]}function h(t){return e.indexOf(t,X)===X}function b(t){return e[X+1]===t}function x(t){var r=e.substring(X).match(t);return r&&(r.range=[],r.range[0]=X,p(r[0].length),r.range[1]=X),r}function E(){var e=[],t=X;for(e.push(A());g("|");)e.push(A());return 1===e.length?e[0]:n({type:"disjunction",body:e,range:[t,X]})}function A(){for(var t,o=[],d=X;t=function(){if(X>=e.length||h("|")||h(")"))return null;var t=g("^")?a("start",1):g("$")?a("end",1):g("\\b")?a("boundary",2):g("\\B")?a("not-boundary",2):D("(?=","lookahead","(?!","negativeLookahead");if(!t){var o=function(){if((t=x(/^[^^$\\.*+?()[\]{}|]/))||!K&&(t=x(/^(?:]|})/)))return s(t);if(g("."))return n({type:"dot",range:[X-1,X]});if(g("\\")){if(!(t=F())){if(!K&&"c"==y())return i("symbol",92,X-1,X);U("atomEscape")}return t}if(t=O())return t;if(r.lookbehind&&(t=D("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(r.namedGroups&&g("(?<")){var t,u,a,o,d,l,c=I();m(">");var f=C("normal",c.range[0]-3);return f.name=c,f}else return r.modifiers&&e.indexOf("(?")==X&&":"!=e[X+2]?(a=X,p(2),o=x(/^[sim]+/),g("-")?(u=x(/^[sim]+/))||U("Invalid flags for modifiers group"):o||U("Invalid flags for modifiers group"),((d=(o=o?o[0]:"")+(u=u?u[0]:"")).length>3||function(e){for(var t=0;t<e.length;){if(-1!=e.indexOf(e[t],t+1))return!0;t++}return!1}(d))&&U("flags cannot be duplicated for modifiers group"),m(":"),(l=C("ignore",a)).modifierFlags={enabling:o,disabling:u},l):D("(?:","ignore","(","normal")}();if(!o){var d,l,c=X;(d=S()||!1)&&(X=c,U("Expected atom")),!K&&(l=x(/^{/))?o=s(l):U("Expected atom")}t=o}return(d=S()||!1)?(d.body=f(t),u(d,t.range[0]),d):t}();)o.push(t);return 1===o.length?o[0]:n({type:"alternative",body:o,range:[d,X]})}function D(e,t,r,n){var u=null,a=X;if(g(e))u=t;else{if(!g(r))return!1;u=n}return C(u,a)}function C(e,t){var r=E();r||U("Expected disjunction"),m(")");var u=n({type:"group",behavior:e,body:f(r),range:[t,X]});return"normal"==e&&V&&W++,u}function S(){var e,t,r,n,u=X;return g("*")?e=d(0,void 0,void 0,void 0,"*"):g("+")?e=d(1,void 0,void 0,void 0,"+"):g("?")?e=d(0,1,void 0,void 0,"?"):(n=x(/^\{([0-9]+)\}/))?e=d(t=parseInt(n[1],10),t,n.range[0],n.range[1]):(n=x(/^\{([0-9]+),\}/))?e=d(t=parseInt(n[1],10),void 0,n.range[0],n.range[1]):(n=x(/^\{([0-9]+),([0-9]+)\}/))&&((t=parseInt(n[1],10))>(r=parseInt(n[2],10))&&U("numbers out of order in {} quantifier","",u,X),e=d(t,r,n.range[0],n.range[1])),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&U("iterations outside JS safe integer range in quantifier","",u,X),e&&g("?")&&(e.greedy=!1,e.range[1]+=1),e}function w(e){if(K){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&h("\\")&&b("u")){var u=X;X++;var a=F(!0);"unicodeEscape"==a.kind&&(r=a.codePoint)>=56320&&r<=57343?(e.range[1]=a.range[1],e.codePoint=(t-55296)*1024+r-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",n(e)):X=u}}return e}function F(e){var t,a,i=X;if(a=function(e){var t,r,a=X;if(t=x(/^(?!0)\d+/)){r=t[0];var i,d=parseInt(t[0],10);return d<=W&&!e?n({type:"reference",matchIndex:parseInt(i=t[0],10),range:[X-1-i.length,X]}):(q.push(d),V?Z=!0:_(a,X),p(-t[0].length),t=x(/^[0-7]{1,3}/))?o("octal",parseInt(t[0],8),t[0],1):u(t=s(x(/^[89]/)),t.range[0]-1)}return!!(t=x(/^[0-7]{1,3}/))&&(("0"!==(r=t[0])&&_(a,X),/^0{1,3}$/.test(r))?o("null",0,"0",r.length):o("octal",parseInt(r,8),r,1))}(e)||function(){if(r.namedGroups&&x(/^k<(?=.*?>)/)){var e=I();return m(">"),n({type:"reference",name:e,range:[e.range[0]-3,X]})}}())return a;if(e){if(g("b"))return o("singleEscape",8,"\\b");if(g("B"))U("\\B not possible inside of CharacterClass","",i);else if(!K&&(a=x(/^c([0-9])/)))return o("controlLetter",a[1]+16,a[1],2);else if(!K&&(a=x(/^c_/)))return o("controlLetter",31,"_",2);if(K&&g("-"))return o("singleEscape",45,"\\-")}return((t=x(/^[dDsSwW]/))?n({type:"characterClassEscape",value:t[0],range:[X-2,X]}):r.unicodePropertyEscape&&K&&(t=x(/^([pP])\{([^\}]+)\}/))?n({type:"unicodePropertyEscape",negative:"P"===t[1],value:t[2],range:[t.range[0]-1,t.range[1]],raw:t[0]}):!!(r.unicodeSet&&H&&g("q{"))&&function(){var e=X-3,t=[];do t.push(function(){for(var e,t=[],r=X;e=M();)t.push(e);return n({type:"classString",characters:t,range:[r,X]})}());while(g("|"));return m("}"),n({type:"classStrings",strings:t,range:[e,X]})}())||T()}function _(e,t){K&&U("Invalid decimal escape in unicode mode",null,e,t)}function k(){var e;return(e=x(/^u([0-9a-fA-F]{4})/))?w(o("unicodeEscape",parseInt(e[1],16),e[1],2)):K&&(e=x(/^u\{([0-9a-fA-F]+)\}/))?o("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):void 0}function T(){var e,t,n,u=X;if(n=x(/^[fnrtv]/)){var a=0;switch(n[0]){case"t":a=9;break;case"n":a=10;break;case"v":a=11;break;case"f":a=12;break;case"r":a=13}return o("singleEscape",a,"\\"+n[0])}return(n=x(/^c([a-zA-Z])/))?o("controlLetter",n[1].charCodeAt(0)%32,n[1],2):(n=x(/^x([0-9a-fA-F]{2})/))?o("hexadecimalEscape",parseInt(n[1],16),n[1],2):(n=k())?((!n||n.codePoint>1114111)&&U("Invalid escape sequence",null,u,X),n):(t=y(),K&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!K&&"c"!==t?"k"===t&&r.lookbehind?null:o("identifier",(e=p()).charCodeAt(0),e,1):null)}function P(t){var r=y(),n=X;if("\\"===r){p();var u=k();return u&&t(u.codePoint)||U("Invalid escape sequence",null,n,X),v(u.codePoint)}var a=r.charCodeAt(0);if(a>=55296&&a<=56319){var i=(r+=e[X+1]).charCodeAt(1);i>=56320&&i<=57343&&(a=(a-55296)*1024+i-56320+65536)}if(t(a))return p(),a>65535&&p(),r}function I(){var e,t=X,r=P(B);for(r||U("Invalid identifier");e=P(j);)r+=e;return n({type:"identifier",value:r,range:[t,X]})}function B(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/.test(v(e))}function j(e){return B(e)||e>=48&&e<=57||e>=128&&/[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/.test(v(e))}function O(){var e,t=X;return(e=x(/^\[\^/))?(e=R(),m("]"),l(e,!0,t,X)):g("[")?(e=R(),m("]"),l(e,!1,t,X)):null}function R(){var e,t;return h("]")?{kind:"union",body:[]}:H?function(){var e,t=[],r=N(!0);for(t.push(r),e="classRange"===r.type?"union":h("&")?"intersection":h("-")?"subtraction":"union";!h("]");)"intersection"===e?(m("&"),m("&"),h("&")&&U("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(m("-"),m("-")),t.push(r=N("union"===e));return{kind:e,body:t}}():((t=L())||U("classAtom"),(e=h("]")?[t]:function e(t){if(h("-")&&!b("]")){r=t.range[0],i=s(g("-")),(a=L())||U("classAtom"),n=X;var r,n,u,a,i,o,d=R();return(d||U("classRanges"),"codePoint"in t&&"codePoint"in a?u=[c(t,a,r,n)]:K?U("invalid character class"):u=[t,i,a],"empty"===d.type)?u:u.concat(d.body)}return(o=L())||U("classAtom"),(u=h("]")?o:e(o))||U("nonEmptyClassRangesNoDash"),[t].concat(u)}(t))||U("nonEmptyClassRanges"),{kind:"union",body:e})}function L(){var e;return g("-")?s("-"):(e=x(/^[^\\\]-]/))?s(e[0]):g("\\")?((e=F(!0))||U("classEscape"),w(e)):void 0}function N(e){var t,r,n=X;if(g("\\")){if(r=F(!0))t=r;else{if(r=z())return r;U("Invalid escape","\\"+y(),n)}}else if(r=$())t=r;else{if(r=O())return r;U("Invalid character",y())}if(e&&h("-")&&!b("-")){if(m("-"),r=M())return c(t,r,n,X);U("Invalid range end",y())}return t}function M(){if(g("\\")){var e,t=X;if(e=z())return e;U("Invalid escape","\\"+y(),t)}return $()}function $(){var e;if(e=x(/^[^()[\]{}/\-\\|]/))return s(e)}function z(){var e;if(g("b"))return o("singleEscape",8,"\\b");if(g("B"))U("\\B not possible inside of ClassContents","",X-2);else if(e=x(/^[&\-!#%,:;<=>@_`~]/))return o("identifier",e[0].codePointAt(0),e[0]);else if(e=T())return e;else return null}function U(t,r,n,u){n=null==n?X:n,u=null==u?n:u;var a=Math.max(0,n-10),i=Math.min(u+10,e.length),o=" "+e.substring(a,i),s=" "+Array(n-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+n+(r?": "+r:"")+"\n"+o+"\n"+s)}r||(r={});var q=[],W=0,V=!0,Z=!1,G=-1!==(t||"").indexOf("u"),H=-1!==(t||"").indexOf("v"),K=G||H,X=0;if(H&&!r.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(G&&H)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var J=E();return(J.range[1]!==e.length&&U("Could not parse entire input - got stuck","",J.range[1]),Z=Z||q.some(function(e){return e<=W}))?(X=0,V=!1,E()):J}},oK.exports?oK.exports=x:window.regjsparser=x;var oX=oK.exports;let{getStaticValue:oJ}=tr,{parse:oY}=oX,{isRegexLiteral:oQ,isNewExpression:o0,isMethodCall:o1}=tO,o2="method",o3="pattern",o4=(e,t)=>{if(oQ(e))return e.regex.flags.includes("g");if(o0(e,{name:"RegExp"})&&e.arguments[0]?.type!=="SpreadElement"&&e.arguments[1]?.type==="Literal"&&"string"==typeof e.arguments[1].value)return e.arguments[1].value.includes("g");let r=oJ(e,t);if(!r)return!1;let{value:n}=r;return"[object RegExp]"===Object.prototype.toString.call(n)&&n.global};var o5=/*@__PURE__*/Y({create:e=>({CallExpression(t){if(!o1(t,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1,optionalMember:!1}))return;let{arguments:[r],callee:{property:n}}=t;if(!o4(r,e.sourceCode.getScope(r)))return;let u=n.name,a=function(e){let t;if(!oQ(e))return;let{pattern:r,flags:n}=e.regex;if("g"!==n.replace("u","").replace("v",""))return;try{t=oY(r,n,{unicodePropertyEscape:n.includes("u"),unicodeSet:n.includes("v"),namedGroups:!0,lookbehind:!0})}catch{return}let u="alternative"===t.type?t.body:[t];if(!u.some(e=>"value"!==e.type))return rB(String.fromCodePoint(...u.map(e=>e.codePoint)))}(r);if("replaceAll"===u){if(!a)return;return{node:r,messageId:o3,data:{replacement:a.length<20?a:"a string literal"},fix:e=>e.replaceText(r,a)}}return{node:n,messageId:o2,*fix(e){yield e.insertTextAfter(n,"All"),a&&(yield e.replaceText(r,a))}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#replaceAll()` over regex searches with the global flag.",recommended:!0},fixable:"code",messages:{[o2]:"Prefer `String#replaceAll()` over `String#replace()`.",[o3]:"This pattern can be replaced with {{replacement}}."}}});let{getStaticValue:o8}=tr,{getParenthesizedText:o6,getParenthesizedRange:o9}=tp,{replaceArgument:o7}=ua,{isNumberLiteral:se,isMethodCall:st}=tO,sr=e=>se(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-sr(e.argument):void 0,sn=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name;var su=/*@__PURE__*/Y({create:e=>({CallExpression(t){if(!st(t,{methods:["substr","substring"]}))return;let r=t.callee.property.name;return{node:t,messageId:r,*fix(n,{abort:u}){if(yield n.replaceText(t.callee.property,"slice"),0!==t.arguments.length){if(t.arguments.length>2||t.arguments.some(e=>"SpreadElement"===e.type))return u();yield*("substr"===r?function*({node:e,fixer:t,context:r,abort:n}){let u=e.arguments,[a,i]=u;if(!i)return;let{sourceCode:o}=r,s=o.getScope(e),d=o8(a,s),l=o9(i,o),c=e=>o7(t,i,e,o);if(d?.value===0){if(se(i)||sn(i))return;if("number"==typeof sr(i)){yield c(Math.max(0,sr(i)));return}yield t.insertTextBeforeRange(l,"Math.max(0, "),yield t.insertTextAfterRange(l,")");return}if(u.every(e=>se(e))){yield c(a.value+i.value);return}if(u.every(e=>u1(e,s))){let e=o6(a,o);yield t.insertTextBeforeRange(l,`${e} + `);return}return n()}:function*({node:e,fixer:t,context:r,abort:n}){let{sourceCode:u}=r,[a,i]=e.arguments,o=a?sr(a):void 0,s=o6(a,u),d=e=>o7(t,a,e,u);if(!i){if(sn(a))return;if(void 0!==o){yield d(Math.max(0,o));return}let e=o9(a,u);yield t.insertTextBeforeRange(e,"Math.max(0, "),yield t.insertTextAfterRange(e,")");return}let l=sr(i),c=o6(i,u),f=e=>o7(t,i,e,u);if(void 0!==o&&void 0!==l){let e=[Math.max(0,o),Math.max(0,l)];o>l&&e.reverse(),e[0]!==o&&(yield d(e[0])),e[1]!==l&&(yield f(e[1]));return}if(0===o||0===l){yield d(0),yield f(`Math.max(0, ${0===o?c:s})`);return}return n()})({node:t,fixer:n,context:e,abort:u})}}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#slice()` over `String#substr()` and `String#substring()`.",recommended:!0},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}});let{isMethodCall:sa}=tO,si="prefer-string-trim-start-end";var so=/*@__PURE__*/Y({create:()=>({CallExpression(e){if(!sa(e,{methods:["trimLeft","trimRight"],argumentsLength:0,optionalCall:!1}))return;let t=e.callee.property,r=t.name,n="trimLeft"===r?"trimStart":"trimEnd";return{node:t,messageId:si,data:{method:r,replacement:n},fix:e=>e.replaceText(t,n)}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.",recommended:!0},fixable:"code",messages:{[si]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}});let{isParenthesized:ss,getParenthesizedRange:sd,toLocation:sl}=nb,sc="no-unreadable-iife";var sf=/*@__PURE__*/Y({create:e=>({CallExpression(t){let{sourceCode:r}=e;if("ArrowFunctionExpression"===t.callee.type&&"BlockStatement"!==t.callee.body.type&&ss(t.callee.body,r))return{node:t,loc:sl(sd(t.callee.body,r),r),messageId:sc}}}),meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs.",recommended:!0},hasSuggestions:!1,messages:{[sc]:"IIFE with parenthesized arrow function body is considered unreadable."}}});let{switchCallExpressionToNewExpression:sp}=ua,sm="throw-new-error",sg=/^(?:[A-Z][\da-z]*)*Error$/;var sy=/*@__PURE__*/Y({create:e=>({CallExpression(t){let{callee:r}=t;if("Identifier"===r.type&&sg.test(r.name)||"MemberExpression"===r.type&&!r.computed&&"Identifier"===r.property.type&&sg.test(r.property.name))return{node:t,messageId:sm,fix:r=>sp(t,e.sourceCode,r)}}}),meta:{type:"suggestion",docs:{description:"Require `new` when creating an error.",recommended:!0},fixable:"code",messages:{[sm]:"Use `new` when creating an error."}}}),sh=/[|\\{}()[\]^$+*?.]/g,sb=new Map([["[0-9]",{value:"\\d"}],["[^0-9]",{value:"\\D"}],["[a-zA-Z0-9_]",{value:"\\w"}],["[a-zA-Z_0-9]",{value:"\\w"}],["[a-z0-9A-Z_]",{value:"\\w"}],["[a-z0-9_A-Z]",{value:"\\w"}],["[a-z_A-Z0-9]",{value:"\\w"}],["[a-z_0-9A-Z]",{value:"\\w"}],["[A-Za-z0-9_]",{value:"\\w"}],["[A-Za-z_0-9]",{value:"\\w"}],["[A-Z0-9a-z_]",{value:"\\w"}],["[A-Z0-9_a-z]",{value:"\\w"}],["[A-Z_a-z0-9]",{value:"\\w"}],["[A-Z_0-9a-z]",{value:"\\w"}],["[0-9a-zA-Z_]",{value:"\\w"}],["[0-9a-z_A-Z]",{value:"\\w"}],["[0-9A-Za-z_]",{value:"\\w"}],["[0-9A-Z_a-z]",{value:"\\w"}],["[0-9_a-zA-Z]",{value:"\\w"}],["[0-9_A-Za-z]",{value:"\\w"}],["[_a-zA-Z0-9]",{value:"\\w"}],["[_a-z0-9A-Z]",{value:"\\w"}],["[_A-Za-z0-9]",{value:"\\w"}],["[_A-Z0-9a-z]",{value:"\\w"}],["[_0-9a-zA-Z]",{value:"\\w"}],["[_0-9A-Za-z]",{value:"\\w"}],["[a-zA-Z\\d_]",{value:"\\w"}],["[a-zA-Z_\\d]",{value:"\\w"}],["[a-z\\dA-Z_]",{value:"\\w"}],["[a-z\\d_A-Z]",{value:"\\w"}],["[a-z_A-Z\\d]",{value:"\\w"}],["[a-z_\\dA-Z]",{value:"\\w"}],["[A-Za-z\\d_]",{value:"\\w"}],["[A-Za-z_\\d]",{value:"\\w"}],["[A-Z\\da-z_]",{value:"\\w"}],["[A-Z\\d_a-z]",{value:"\\w"}],["[A-Z_a-z\\d]",{value:"\\w"}],["[A-Z_\\da-z]",{value:"\\w"}],["[\\da-zA-Z_]",{value:"\\w"}],["[\\da-z_A-Z]",{value:"\\w"}],["[\\dA-Za-z_]",{value:"\\w"}],["[\\dA-Z_a-z]",{value:"\\w"}],["[\\d_a-zA-Z]",{value:"\\w"}],["[\\d_A-Za-z]",{value:"\\w"}],["[_a-zA-Z\\d]",{value:"\\w"}],["[_a-z\\dA-Z]",{value:"\\w"}],["[_A-Za-z\\d]",{value:"\\w"}],["[_A-Z\\da-z]",{value:"\\w"}],["[_\\da-zA-Z]",{value:"\\w"}],["[_\\dA-Za-z]",{value:"\\w"}],["[^a-zA-Z0-9_]",{value:"\\W"}],["[^a-zA-Z_0-9]",{value:"\\W"}],["[^a-z0-9A-Z_]",{value:"\\W"}],["[^a-z0-9_A-Z]",{value:"\\W"}],["[^a-z_A-Z0-9]",{value:"\\W"}],["[^a-z_0-9A-Z]",{value:"\\W"}],["[^A-Za-z0-9_]",{value:"\\W"}],["[^A-Za-z_0-9]",{value:"\\W"}],["[^A-Z0-9a-z_]",{value:"\\W"}],["[^A-Z0-9_a-z]",{value:"\\W"}],["[^A-Z_a-z0-9]",{value:"\\W"}],["[^A-Z_0-9a-z]",{value:"\\W"}],["[^0-9a-zA-Z_]",{value:"\\W"}],["[^0-9a-z_A-Z]",{value:"\\W"}],["[^0-9A-Za-z_]",{value:"\\W"}],["[^0-9A-Z_a-z]",{value:"\\W"}],["[^0-9_a-zA-Z]",{value:"\\W"}],["[^0-9_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z0-9]",{value:"\\W"}],["[^_a-z0-9A-Z]",{value:"\\W"}],["[^_A-Za-z0-9]",{value:"\\W"}],["[^_A-Z0-9a-z]",{value:"\\W"}],["[^_0-9a-zA-Z]",{value:"\\W"}],["[^_0-9A-Za-z]",{value:"\\W"}],["[^a-zA-Z\\d_]",{value:"\\W"}],["[^a-zA-Z_\\d]",{value:"\\W"}],["[^a-z\\dA-Z_]",{value:"\\W"}],["[^a-z\\d_A-Z]",{value:"\\W"}],["[^a-z_A-Z\\d]",{value:"\\W"}],["[^a-z_\\dA-Z]",{value:"\\W"}],["[^A-Za-z\\d_]",{value:"\\W"}],["[^A-Za-z_\\d]",{value:"\\W"}],["[^A-Z\\da-z_]",{value:"\\W"}],["[^A-Z\\d_a-z]",{value:"\\W"}],["[^A-Z_a-z\\d]",{value:"\\W"}],["[^A-Z_\\da-z]",{value:"\\W"}],["[^\\da-zA-Z_]",{value:"\\W"}],["[^\\da-z_A-Z]",{value:"\\W"}],["[^\\dA-Za-z_]",{value:"\\W"}],["[^\\dA-Z_a-z]",{value:"\\W"}],["[^\\d_a-zA-Z]",{value:"\\W"}],["[^\\d_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z\\d]",{value:"\\W"}],["[^_a-z\\dA-Z]",{value:"\\W"}],["[^_A-Za-z\\d]",{value:"\\W"}],["[^_A-Z\\da-z]",{value:"\\W"}],["[^_\\da-zA-Z]",{value:"\\W"}],["[^_\\dA-Za-z]",{value:"\\W"}],["[a-z0-9_]",{value:"\\w",flags:"i"}],["[a-z_0-9]",{value:"\\w",flags:"i"}],["[0-9a-z_]",{value:"\\w",flags:"i"}],["[0-9_a-z]",{value:"\\w",flags:"i"}],["[_a-z0-9]",{value:"\\w",flags:"i"}],["[_0-9a-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[a-z\\d_]",{value:"\\w",flags:"i"}],["[a-z_\\d]",{value:"\\w",flags:"i"}],["[\\da-z_]",{value:"\\w",flags:"i"}],["[\\d_a-z]",{value:"\\w",flags:"i"}],["[_a-z\\d]",{value:"\\w",flags:"i"}],["[_\\da-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[^a-z_0-9]",{value:"\\W",flags:"i"}],["[^0-9a-z_]",{value:"\\W",flags:"i"}],["[^0-9_a-z]",{value:"\\W",flags:"i"}],["[^_a-z0-9]",{value:"\\W",flags:"i"}],["[^_0-9a-z]",{value:"\\W",flags:"i"}],["[^a-z\\d_]",{value:"\\W",flags:"i"}],["[^a-z_\\d]",{value:"\\W",flags:"i"}],["[^\\da-z_]",{value:"\\W",flags:"i"}],["[^\\d_a-z]",{value:"\\W",flags:"i"}],["[^_a-z\\d]",{value:"\\W",flags:"i"}],["[^_\\da-z]",{value:"\\W",flags:"i"}]]);let sv=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(sh,"\\$&")},sx=(e,t)=>!t||t.split("").every(t=>e.includes(t));function sE(e){return e?sA[e.type](e):""}var sA={RegExp:function(e){return"/"+sE(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(sE).join("")},Disjunction:function(e){return sE(e.left)+"|"+sE(e.right)},Group:function(e){var t=sE(e.expression);return e.capturing?e.name?"(?<"+(e.nameRaw||e.name)+">"+t+")":"("+t+")":"(?:"+t+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(e){switch(e.kind){case"^":case"$":case"\\b":case"\\B":return e.kind;case"Lookahead":var t=sE(e.assertion);if(e.negative)return"(?!"+t+")";return"(?="+t+")";case"Lookbehind":var r=sE(e.assertion);if(e.negative)return"(?<!"+r+")";return"(?<="+r+")";default:throw TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(sE).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return sE(e.from)+"-"+sE(e.to)},Repetition:function(e){return""+sE(e.expression)+sE(e.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){return"\\"+(e.negative?"P":"p")+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}},sD={generate:sE},sC={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},sS=sI(sC),sw={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"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:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",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:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"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"},sF=sI(sw),s_={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"},sk=sI(s_),sT={Adlam:"Adlm",Ahom:"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",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",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",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",Masaram_Gondi:"Gonm",Meetei_Mayek:"Mtei",Mende_Kikakui:"Mend",Meroitic_Cursive:"Merc",Meroitic_Hieroglyphs:"Mero",Miao:"Plrd",Modi:"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_Sogdian:"Sogo",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",Sogdian:"Sogd",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"},sP=sI(sT);function sI(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(Array.isArray(n))for(var u=0;u<n.length;u++)t[n[u]]=r;else t[n]=r}return t}function sB(e){return s_.hasOwnProperty(e)||sk.hasOwnProperty(e)}var sj=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function sO(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var sR=void 0,sL={},sN=void 0,sM=void 0;function s$(e,t){return sL.options.captureLocations?e&&t?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:e||t:null}var sz=[[-1,1,function(e,t){sM=s$(t,t),sN=e}],[0,4,function(e,t,r,n,u,a,i,o){sM=s$(u,o),sN=s7({type:"RegExp",body:t,flags:function(e){var t=new Set,r=!0,n=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value;if(t.has(o)||!"gimsuxy".includes(o))throw SyntaxError("Invalid flags: "+e);t.add(o)}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}return e.split("").sort().join("")}(n)},de(u,o||i))}],[1,1,function(e,t){sM=s$(t,t),sN=e}],[1,0,function(){sM=null,sN=""}],[2,1,function(e,t){sM=s$(t,t),sN=e}],[2,2,function(e,t,r,n){sM=s$(r,n),sN=e+t}],[3,1,function(e,t){sM=s$(t,t),sN=e}],[4,1,function(e,t){sM=s$(t,t),sN=e}],[4,3,function(e,t,r,n,u,a){sM=s$(n,a);var i=null;u&&(i=de(n||u,a||u)),sN=s7({type:"Disjunction",left:e,right:r},i)}],[5,1,function(e,t){if(sM=s$(t,t),0===e.length){sN=null;return}sN=1===e.length?s7(e[0],sM):s7({type:"Alternative",expressions:e},sM)}],[6,0,function(){sM=null,sN=[]}],[6,2,function(e,t,r,n){sM=s$(r,n),sN=e.concat(t)}],[7,1,function(e,t){sM=s$(t,t),sN=s7(Object.assign({type:"Assertion"},e),sM)}],[7,2,function(e,t,r,n){sM=s$(r,n),sN=e,t&&(sN=s7({type:"Repetition",expression:e,quantifier:t},sM))}],[8,1,function(e,t){sM=s$(t,t),sN={kind:"^"}}],[8,1,function(e,t){sM=s$(t,t),sN={kind:"$"}}],[8,1,function(e,t){sM=s$(t,t),sN={kind:"\\b"}}],[8,1,function(e,t){sM=s$(t,t),sN={kind:"\\B"}}],[8,3,function(e,t,r,n,u,a){sM=s$(n,a),sN={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,n,u,a){sM=s$(n,a),sN={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,n,u,a){sM=s$(n,a),sN={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,n,u,a){sM=s$(n,a),sN={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){sM=s$(t,t),sN=e}],[9,1,function(e,t){sM=s$(t,t),sN=e}],[9,1,function(e,t){sM=s$(t,t),sN=e}],[10,1,function(e,t){sN=s2(e,"simple",sM=s$(t,t))}],[10,1,function(e,t){sM=s$(t,t),(sN=s2(e.slice(1),"simple",sM)).escaped=!0}],[10,1,function(e,t){(sN=s2(e,"unicode",sM=s$(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){sN=s2(e,"unicode",sM=s$(t,t))}],[10,1,function(e,t){sN=function(e,t){var r="P"===e[1],n=e.indexOf("="),u=e.slice(3,-1!==n?n:-1),a=void 0,i=-1===n&&s1.isGeneralCategoryValue(u),o=-1===n&&s1.isBinaryPropertyName(u);if(i)a=u,u="General_Category";else if(o)a=u;else{if(!s1.isValidName(u))throw SyntaxError("Invalid unicode property name: "+u+".");if(a=e.slice(n+1,-1),!s1.isValidValue(u,a))throw SyntaxError("Invalid "+u+" unicode property value: "+a+".")}return s7({type:"UnicodeProperty",name:u,value:a,negative:r,shorthand:i,binary:o,canonicalName:s1.getCanonicalName(u)||u,canonicalValue:s1.getCanonicalValue(a)||a},t)}(e,sM=s$(t,t))}],[10,1,function(e,t){sN=s2(e,"control",sM=s$(t,t))}],[10,1,function(e,t){sN=s2(e,"hex",sM=s$(t,t))}],[10,1,function(e,t){sN=s2(e,"oct",sM=s$(t,t))}],[10,1,function(e,t){var r,n;r=sM=s$(t,t),sN=(n=Number(e.slice(1)))>0&&n<=sX?s7({type:"Backreference",kind:"number",number:n,reference:n},r):s2(e,"decimal",r)}],[10,1,function(e,t){sN=s2(e,"meta",sM=s$(t,t))}],[10,1,function(e,t){sN=s2(e,"meta",sM=s$(t,t))}],[10,1,function(e,t){sM=s$(t,t),sN=function(e,t){var r=e.slice(3,-1),n=s9(r);if(sJ.hasOwnProperty(n))return s7({type:"Backreference",kind:"name",number:sJ[n],reference:n,referenceRaw:r},t);var u=null,a=null,i=null,o=null;t&&(u=t.startOffset,a=t.startLine,i=t.endLine,o=t.startColumn);var s=/^[\w$<>]/,d=void 0,l=[s2(e.slice(1,2),"simple",u?{startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=2,endColumn:o+=2}:null)];for(l[0].escaped=!0,e=e.slice(2);e.length>0;){var c=null;(c=e.match(s3))||(c=e.match(s4))?(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=c[0].length,endColumn:o+=c[0].length}),l.push(s2(c[0],"unicode",d)),e=e.slice(c[0].length)):(c=e.match(s))&&(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:++u,endColumn:++o}),l.push(s2(c[0],"simple",d)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){sM=s$(t,t),sN=e}],[11,0],[12,1,function(e,t){sM=s$(t,t),sN=e}],[12,2,function(e,t,r,n){sM=s$(r,n),e.greedy=!1,sN=e}],[13,1,function(e,t){sN=s7({type:"Quantifier",kind:e,greedy:!0},sM=s$(t,t))}],[13,1,function(e,t){sN=s7({type:"Quantifier",kind:e,greedy:!0},sM=s$(t,t))}],[13,1,function(e,t){sN=s7({type:"Quantifier",kind:e,greedy:!0},sM=s$(t,t))}],[13,1,function(e,t){sM=s$(t,t);var r=sQ(e);sN=s7({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},sM)}],[13,1,function(e,t){sM=s$(t,t),sN=s7({type:"Quantifier",kind:"Range",from:sQ(e)[0],greedy:!0},sM)}],[13,1,function(e,t){sM=s$(t,t);var r=sQ(e);sN=s7({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},sM)}],[14,1,function(e,t){sM=s$(t,t),sN=e}],[14,1,function(e,t){sM=s$(t,t),sN=e}],[15,3,function(e,t,r,n,u,a){sM=s$(n,a);var i=String(e),o=s9(i);if(!sL.options.allowGroupNameDuplicates&&sJ.hasOwnProperty(o))throw SyntaxError('Duplicate of the named group "'+o+'".');sJ[o]=e.groupNumber,sN=s7({type:"Group",capturing:!0,name:o,nameRaw:i,number:e.groupNumber,expression:t},sM)}],[15,3,function(e,t,r,n,u,a){sM=s$(n,a),sN=s7({type:"Group",capturing:!0,number:e.groupNumber,expression:t},sM)}],[16,3,function(e,t,r,n,u,a){sN=s7({type:"Group",capturing:!1,expression:t},sM=s$(n,a))}],[17,3,function(e,t,r,n,u,a){sN=s7({type:"CharacterClass",negative:!0,expressions:t},sM=s$(n,a))}],[17,3,function(e,t,r,n,u,a){sN=s7({type:"CharacterClass",expressions:t},sM=s$(n,a))}],[18,0,function(){sM=null,sN=[]}],[18,1,function(e,t){sM=s$(t,t),sN=e}],[19,1,function(e,t){sM=s$(t,t),sN=[e]}],[19,2,function(e,t,r,n){sM=s$(r,n),sN=[e].concat(t)}],[19,4,function(e,t,r,n,u,a,i,o){sM=s$(u,o),s0(e,r),sN=[s7({type:"ClassRange",from:e,to:r},de(u,i))],n&&(sN=sN.concat(n))}],[20,1,function(e,t){sM=s$(t,t),sN=e}],[20,2,function(e,t,r,n){sM=s$(r,n),sN=[e].concat(t)}],[20,4,function(e,t,r,n,u,a,i,o){sM=s$(u,o),s0(e,r),sN=[s7({type:"ClassRange",from:e,to:r},de(u,i))],n&&(sN=sN.concat(n))}],[21,1,function(e,t){sN=s2(e,"simple",sM=s$(t,t))}],[21,1,function(e,t){sM=s$(t,t),sN=e}],[22,1,function(e,t){sM=s$(t,t),sN=e}],[22,1,function(e,t){sN=s2(e,"meta",sM=s$(t,t))}]],sU={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},sq=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],sW=[],sV=void 0,sZ=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return s8(sR.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===sR);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+sR);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return s8(sR=sR.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],sG={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},sH={type:"$",value:""};sV={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(sH);for(var e=this._string.slice(this._cursor),t=sG[this.getCurrentState()],r=0;r<t.length;r++){var n=sZ[t[r]],u=this._match(e,n[0]);if(""===e&&""===u&&this._cursor++,null!==u){(sR=u).length;var a=n[1].call(this);if(!a)return this.getNextToken();if(Array.isArray(a)){var i,o=a.slice(1);a=a[0],o.length>0&&(i=this._tokensQueue).unshift.apply(i,sO(o))}return this.onToken(this._toToken(a,sR))}}if(this.isEOF())return this._cursor++,sH;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var n=this._string.split("\n")[t-1],u="";throw n&&(u="\n\n"+n+"\n"+" ".repeat(r)+"^\n"),SyntaxError(u+'Unexpected token: "'+e+'" '+("at "+t)+":"+r+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var r=void 0;null!==(r=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+r.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{type:e,value:t,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var r=e.match(t);return r?(this._captureLocation(r[0]),this._cursor+=r[0].length,r[0]):null},onToken:function(e){return e}},sL.lexer=sV,sL.tokenizer=sV,sL.options={captureLocations:!0};var sK={setOptions:function(e){return sL.options=e,this},getOptions:function(){return sL.options},parse:function(e,t){if(!sV)throw Error("Tokenizer instance wasn't specified.");sV.initString(e);var r=sL.options;t&&(sL.options=Object.assign({},sL.options,t)),sK.onParseBegin(e,sV,sL.options),sW.length=0,sW.push(0);var n=sV.getNextToken(),u=null;do{n||(sL.options=r,dr());var a=sW[sW.length-1],i=sU[n.type];sq[a].hasOwnProperty(i)||(sL.options=r,dt(n));var o=sq[a][i];if("s"===o[0]){var s=null;sL.options.captureLocations&&(s={startOffset:n.startOffset,endOffset:n.endOffset,startLine:n.startLine,endLine:n.endLine,startColumn:n.startColumn,endColumn:n.endColumn}),u=this.onShift(n),sW.push({symbol:sU[u.type],semanticValue:u.value,loc:s},Number(o.slice(1))),n=sV.getNextToken()}else if("r"===o[0]){var d=sz[o.slice(1)],l="function"==typeof d[2],c=l?[]:null,f=l&&sL.options.captureLocations?[]:null;if(0!==d[1])for(var p=d[1];p-- >0;){sW.pop();var m=sW.pop();l&&(c.unshift(m.semanticValue),f&&f.unshift(m.loc))}var g={symbol:d[0]};if(l){sR=u?u.value:null,u&&u.value.length;var y=null!==f?c.concat(f):c;d[2].apply(d,sO(y)),g.semanticValue=sN,f&&(g.loc=sM)}var h=sW[sW.length-1],b=d[0];sW.push(g,sq[h][b])}else if("acc"===o){sW.pop();var v=sW.pop();if((1!==sW.length||0!==sW[0]||sV.hasMoreTokens())&&(sL.options=r,dt(n)),v.hasOwnProperty("semanticValue"))return sL.options=r,sK.onParseEnd(v.semanticValue),v.semanticValue;return sK.onParseEnd(),sL.options=r,!0}}while(sV.hasMoreTokens()||sW.length>1)},setTokenizer:function(e){return sV=e,sK},getTokenizer:function(){return sV},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},sX=0,sJ={},sY="";function sQ(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw SyntaxError("Numbers out of order in "+e+" quantifier");return t}function s0(e,t){if("control"===e.kind||"control"===t.kind||!isNaN(e.codePoint)&&!isNaN(t.codePoint)&&e.codePoint>t.codePoint)throw SyntaxError("Range "+e.value+"-"+t.value+" out of order in character class")}sK.onParseBegin=function(e,t){sY=e,sX=0,sJ={};var r=e.lastIndexOf("/"),n=e.slice(r);n.includes("x")&&n.includes("u")?t.pushState("xu"):(n.includes("x")&&t.pushState("x"),n.includes("u")&&t.pushState("u"))},sK.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++sX),e};var s1={isValidName:function(e){return sC.hasOwnProperty(e)||sS.hasOwnProperty(e)||sw.hasOwnProperty(e)||sF.hasOwnProperty(e)},isValidValue:function(e,t){return"General_Category"===e||"gc"==e?sB(t):!!("Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e)&&(sT.hasOwnProperty(t)||sP.hasOwnProperty(t))},isGeneralCategoryValue:sB,isBinaryPropertyName:function(e){return sw.hasOwnProperty(e)||sF.hasOwnProperty(e)},getCanonicalName:function(e){return sS.hasOwnProperty(e)?sS[e]:sF.hasOwnProperty(e)?sF[e]:null},getCanonicalValue:function(e){return sk.hasOwnProperty(e)?sk[e]:sP.hasOwnProperty(e)?sP[e]:sF.hasOwnProperty(e)?sF[e]:null}};function s2(e,t,r){var n=void 0,u=void 0;switch(t){case"decimal":n=String.fromCodePoint(u=Number(e.slice(1)));break;case"oct":n=String.fromCodePoint(u=parseInt(e.slice(1),8));break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var a=sj(e.split("\\u").slice(1),2),i=a[0],o=a[1];n=String.fromCodePoint(u=((i=parseInt(i,16))-55296)*1024+((o=parseInt(o,16))-56320)+65536)}else{if((u=parseInt(e.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+e);n=String.fromCodePoint(u)}break;case"meta":switch(e){case"\\t":u=(n=" ").codePointAt(0);break;case"\\n":u=(n="\n").codePointAt(0);break;case"\\r":u=(n="\r").codePointAt(0);break;case"\\v":u=(n="\v").codePointAt(0);break;case"\\f":u=(n="\f").codePointAt(0);break;case"\\b":u=(n="\b").codePointAt(0);case"\\0":n="\0",u=0;case".":n=".",u=NaN;break;default:u=NaN}break;case"simple":u=(n=e).codePointAt(0)}return s7({type:"Char",value:e,kind:t,symbol:n,codePoint:u},r)}var s3=/^\\u[0-9a-fA-F]{4}/,s4=/^\\u\{[0-9a-fA-F]{1,}\}/,s5=/\\u\{[0-9a-fA-F]{1,}\}/;function s8(e,t){if(s5.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var s6=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function s9(e){return e.replace(RegExp(s6,"g"),function(e,t,r,n,u,a,i){return t?String.fromCodePoint(parseInt(t,16),parseInt(r,16)):n?String.fromCodePoint(parseInt(n,16)):u?String.fromCodePoint(parseInt(u,16)):a?String.fromCodePoint(parseInt(a,16)):i?String.fromCodePoint(parseInt(i,16)):e})}function s7(e,t){return sL.options.captureLocations&&(e.loc={source:sY.slice(t.startOffset,t.endOffset),start:{line:t.startLine,column:t.startColumn,offset:t.startOffset},end:{line:t.endLine,column:t.endColumn,offset:t.endOffset}}),e}function de(e,t){return sL.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function dt(e){"$"===e.type&&dr(),sV.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function dr(){!function(e){throw SyntaxError(e)}("Unexpected end of input.")}var dn=sK.parse.bind(sK);sK.parse=function(e,t){return dn(""+e,t)},sK.setOptions({captureLocations:!1});var du=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),da="expressions",di="expression",ds=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.node=t,this.parentPath=r,this.parent=r?r.node:null,this.property=n,this.index=u}return du(e,[{key:"_enforceProp",value:function(e){if(!this.node.hasOwnProperty(e))throw Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}},{key:"setChild",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=void 0;return null!=r?(n||(n=da),this._enforceProp(n),this.node[n][r]=t,u=e.getForNode(t,this,n,r)):(n||(n=di),this._enforceProp(n),this.node[n]=t,u=e.getForNode(t,this,n,null)),u}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=da),this._enforceProp(t);var r=this.node[t].length;return this.setChild(e,r,t)}},{key:"insertChildAt",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:da;this._enforceProp(n),this.node[n].splice(r,0,t),r<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,n)}},{key:"remove",value:function(){if(!this.isRemoved()&&(e.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=e.getTraversingIndex()&&e.updateTraversingIndex(-1),this._rebuildIndex(this.parent,this.property),this.index=null,this.property=null;return}delete this.parent[this.property],this.property=null}}},{key:"_rebuildIndex",value:function(t,r){for(var n=e.getForNode(t),u=0;u<t[r].length;u++)e.getForNode(t[r][u],n,r,u).index=u}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(t){return(e.registry.delete(this.node),this.node=t,this.parent)?(null!==this.index?this.parent[this.property][this.index]=t:this.parent[this.property]=t,e.getForNode(t,this.parentPath,this.property,this.index)):null}},{key:"update",value:function(e){Object.assign(this.node,e)}},{key:"getParent",value:function(){return this.parentPath}},{key:"getChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?e.getForNode(this.node.expressions[t],this,da,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,di):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,dd)===JSON.stringify(e.node,dd)}},{key:"jsonEncode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,r=e.useLoc;return JSON.stringify(this.node,r?null:dd,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index-1],e.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index+1],e.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!t)return null;e.registry.has(t)||e.registry.set(t,new e(t,r,n,-1==u?null:u));var a=e.registry.get(t);return null!==r&&(a.parentPath=r,a.parent=a.parentPath.node),null!==n&&(a.property=n),u>=0&&(a.index=u),a}},{key:"initRegistry",value:function(){e.registry||(e.registry=new Map),e.registry.clear()}},{key:"updateTraversingIndex",value:function(t){return e.traversingIndexStack[e.traversingIndexStack.length-1]+=t}},{key:"getTraversingIndex",value:function(){return e.traversingIndexStack[e.traversingIndexStack.length-1]}}]),e}();function dd(e,t){if("loc"!==e)return t}ds.initRegistry(),ds.traversingIndexStack=[];var dl=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function n(e,t,r,n){var u=ds.getForNode(t);return ds.getForNode(e,u,r,n)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),ds.initRegistry(),t.forEach(function(t){"function"==typeof t.init&&t.init(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.pre,n=t.post,u=t.skipProperty;!function e(t,a,i,o){if(t&&"string"==typeof t.type){var s=void 0;if(r&&(s=r(t,a,i,o)),!1!==s){for(var d in a&&a[i]&&(t=isNaN(o)?a[i]:a[i][o]),t)if(t.hasOwnProperty(d)){if(u?u(d,t):"$"===d[0])continue;var l=t[d];if(Array.isArray(l)){var c=0;for(ds.traversingIndexStack.push(c);c<l.length;)e(l[c],t,d,c),c=ds.updateTraversingIndex(1);ds.traversingIndexStack.pop()}else e(l,t,d)}}n&&n(t,a,i,o)}}(e,null)}(e,{pre:function(e,u,a,i){var o=void 0;r.asNodes||(o=n(e,u,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=t[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if("function"==typeof p["*"]){if(o){if(!o.isRemoved()){var m=p["*"](o);if(!1===m)return!1}}else p["*"](e,u,a,i)}var g=void 0;if("function"==typeof p[e.type]?g=p[e.type]:"object"==typeof p[e.type]&&"function"==typeof p[e.type].pre&&(g=p[e.type].pre),g){if(o){if(!o.isRemoved()){var y=g.call(p,o);if(!1===y)return!1}}else g.call(p,e,u,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}},post:function(e,u,a,i){if(e){var o=void 0;r.asNodes||(o=n(e,u,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=t[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value,m=void 0;if("object"==typeof p[e.type]&&"function"==typeof p[e.type].post&&(m=p[e.type].post),m){if(o){if(!o.isRemoved()){var g=m.call(p,o);if(!1===g)return!1}}else m.call(p,e,u,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}}},skipProperty:function(e){return"loc"===e}})},dc=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),df=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=r}return dc(e,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=sD.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=sD.generate(this._ast)),this._string}}]),e}(),dp=function(e,t){var r=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(r=sK.parse(e,{captureLocations:!0})),dl(r,t),new df(r)},dm={dotAll:{_hasUFlag:!1,shouldRun:function(e){return!!e.flags.includes("s")&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var r="\\uFFFF",n="￿";this._hasUFlag&&(r="\\u{10FFFF}",n="\uDBFF\uDFFF"),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:r,kind:"unicode",symbol:n}}]})}}},namedCapturingGroups:{_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}},xFlag:{RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}}},dg=function e(t){if("Disjunction"!==t.type)throw TypeError('Expected "Disjunction" node, got "'+t.type+'"');var r=[];return t.left&&"Disjunction"===t.left.type?r.push.apply(r,(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r})(e(t.left)).concat([t.right])):r.push(t.left,t.right),r},dy=function(e){"*"===e.kind?e.kind="+":"+"===e.kind?(e.kind="Range",e.from=2,delete e.to):"?"===e.kind?(e.kind="Range",e.from=1,e.to=2):"Range"===e.kind&&(e.from+=1,e.to&&(e.to+=1))};function dh(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function db(e){var t=void 0,r=void 0;return"*"===e.kind?t=0:"+"===e.kind?t=1:"?"===e.kind?(t=0,r=1):(t=e.from,e.to&&(r=e.to)),{from:t,to:r}}function dv(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var dx=[function(e){return dE(e," ")}].concat(dv(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return dA(t,e)}})),dv([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return dD(t,e)}})),[function(e){return"ClassRange"===e.type&&dD(e.from,8192)&&dD(e.to,8202)}]);function dE(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"simple";return"Char"===e.type&&e.value===t&&e.kind===r}function dA(e,t){return dE(e,t,"meta")}function dD(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}function dC(e,t,r){for(var n=e,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];u&&"Char"===u.type&&"simple"===u.kind&&!u.escaped&&/\d/.test(u.value);)r?n--:n++,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];return Math.abs(e-n)}function dS(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}function dw(e,t){var r=dF(e),n=dF(t);if(r===n){if("ClassRange"===e.type&&"ClassRange"!==t.type)return -1;if("ClassRange"===t.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===t.type)return dF(e.to)-dF(t.to);if(d_(e)&&d_(t)||dk(e)&&dk(t))return e.value<t.value?-1:1}return r-n}function dF(e){return"Char"===e.type?"-"===e.value||"control"===e.kind?1/0:"meta"===e.kind&&isNaN(e.codePoint)?-1:e.codePoint:e.from.codePoint}function d_(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"Char"===e.type&&"meta"===e.kind&&(t?e.value===t:/^\\[dws]$/i.test(e.value))}function dk(e){return"Char"===e.type&&"control"===e.kind}function dT(e){return 9===e.codePoint||10===e.codePoint||11===e.codePoint||12===e.codePoint||13===e.codePoint||32===e.codePoint||160===e.codePoint||5760===e.codePoint||e.codePoint>=8192&&e.codePoint<=8202||8232===e.codePoint||8233===e.codePoint||8239===e.codePoint||8287===e.codePoint||12288===e.codePoint||65279===e.codePoint}function dP(e){return e.codePoint>=48&&e.codePoint<=57}function dI(e,t){return dP(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function dB(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(dI(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var dj={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var r=e.node;r.capturing?r.expression=t:e.replace(t)}};function dO(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}function dR(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var dL=new Map([["charSurrogatePairToSingleUnicode",{shouldRun:function(e){return e.flags.includes("u")},Char:function(e){var t=e.node;"unicode"!==t.kind||!t.isSurrogatePair||isNaN(t.codePoint)||(t.value="\\u{"+t.codePoint.toString(16)+"}",delete t.isSurrogatePair)}}],["charCodeToSimpleChar",{Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(n=r.from,u=r.to,n.codePoint>=48&&n.codePoint<=57&&u.codePoint>=48&&u.codePoint<=57||n.codePoint>=65&&n.codePoint<=90&&u.codePoint>=65&&u.codePoint<=90||n.codePoint>=97&&n.codePoint<=122&&u.codePoint>=97&&u.codePoint<=122))&&(a=t.codePoint)>=32&&a<=126){var n,u,a,i,o=String.fromCodePoint(t.codePoint),s={type:"Char",kind:"simple",value:o,symbol:o,codePoint:t.codePoint};("ClassRange"===(i=r.type)||"CharacterClass"===i?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(s.escaped=!0),e.replace(s)}}}],["charCaseInsensitiveLowerCaseTransform",{_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t,r,n=e.node,u=e.parent;if(!isNaN(n.codePoint)&&(this._hasUFlag||!(n.codePoint>=4096))){if("ClassRange"===u.type){if(!this._AZClassRanges.has(u)&&(t=u.from,r=u.to,!(t.codePoint>=65)||!(t.codePoint<=90)||!(r.codePoint>=65)||!(r.codePoint<=90)))return;this._AZClassRanges.add(u)}var a=n.symbol.toLowerCase();a!==n.symbol&&(n.value=function(e,t){var r=e.codePointAt(0);if("decimal"===t.kind)return"\\"+r;if("oct"===t.kind)return"\\0"+r.toString(8);if("hex"===t.kind)return"\\x"+r.toString(16);if("unicode"===t.kind){if(t.isSurrogatePair){var n={lead:(Math.floor((r-65536)/1024)+55296).toString(16),trail:((r-65536)%1024+56320).toString(16)},u=n.lead,a=n.trail;return"\\u"+"0".repeat(4-u.length)+u+"\\u"+"0".repeat(4-a.length)+a}if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var i=r.toString(16);return"\\u"+"0".repeat(4-i.length)+i}return e}(a,n),n.symbol=a,n.codePoint=a.codePointAt(0))}}}],["charClassRemoveDuplicates",{CharacterClass:function(e){for(var t=e.node,r={},n=0;n<t.expressions.length;n++){var u=e.getChild(n),a=u.jsonEncode();r.hasOwnProperty(a)&&(u.remove(),n--),r[a]=!0}}}],["quantifiersMerge",{Repetition:function(e){var t=e.node;if("Alternative"===e.parent.type&&e.index){var r=e.getPreviousSibling();if(r){if("Repetition"===r.node.type){if(!r.getChild().hasEqualSource(e.getChild()))return;var n=db(r.node.quantifier),u=n.from,a=n.to,i=db(t.quantifier),o=i.from,s=i.to;if(r.node.quantifier.greedy!==t.quantifier.greedy&&!dh(r.node.quantifier)&&!dh(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=u+o,a&&s?t.quantifier.to=a+s:delete t.quantifier.to,(dh(r.node.quantifier)||dh(t.quantifier))&&(t.quantifier.greedy=!0),r.remove()}else{if(!r.hasEqualSource(e.getChild()))return;dy(t.quantifier),r.remove()}}}}}],["quantifierRangeToSymbol",{Quantifier:function(e){if("Range"===e.node.kind){var t,r,n;0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(r=e.node).from||r.to||(r.kind="+",delete r.from),1===(n=e.node).from&&1===n.to&&e.parentPath.replace(e.parentPath.node.expression)}}}],["charClassClassrangesToChars",{ClassRange:function(e){var t=e.node;t.from.codePoint===t.to.codePoint?e.replace(t.from):t.from.codePoint===t.to.codePoint-1&&(e.getParent().insertChildAt(t.to,e.index+1),e.replace(t.from))}}],["charClassToMeta",{_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var t,r,n,u,a,i,o,s,d;(function(e){e.node.expressions.forEach(function(t,r){"ClassRange"===t.type&&"0"===t.from.value&&"9"===t.to.value&&e.getChild(r).replace({type:"Char",value:"\\d",kind:"meta"})})})(e),t=this._hasIFlag,r=this._hasUFlag,n=e.node,u=null,a=null,i=null,o=null,s=null,d=null,n.expressions.forEach(function(n,l){dA(n,"\\d")?u=e.getChild(l):"ClassRange"===n.type&&"a"===n.from.value&&"z"===n.to.value?a=e.getChild(l):"ClassRange"===n.type&&"A"===n.from.value&&"Z"===n.to.value?i=e.getChild(l):"Char"===n.type&&"_"===n.value&&"simple"===n.kind?o=e.getChild(l):t&&r&&dD(n,383)?s=e.getChild(l):t&&r&&dD(n,8490)&&(d=e.getChild(l))}),u&&(a&&i||t&&(a||i))&&o&&(!r||!t||s&&d)&&(u.replace({type:"Char",value:"\\w",kind:"meta"}),a&&a.remove(),i&&i.remove(),o.remove(),s&&s.remove(),d&&d.remove()),function(e){var t=e.node;if(!(t.expressions.length<dx.length)&&dx.every(function(e){return t.expressions.some(function(t){return e(t)})})){var r=t.expressions.find(function(e){return dA(e,"\\n")});r.value="\\s",r.symbol=void 0,r.codePoint=NaN,t.expressions.map(function(t,r){return dx.some(function(e){return e(t)})?e.getChild(r):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}}(e)}}],["charClassToSingleChar",{CharacterClass:function(e){var t=e.node;if(1===t.expressions.length&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&"Char"===(r=t.expressions[0]).type&&"\\b"!==r.value){var r,n,u,a,i=t.expressions[0],o=i.value,s=i.kind,d=i.escaped;if(t.negative){if(n=o,!/^\\[dwsDWS]$/.test(n))return;u=o,o=/[dws]/.test(u)?u.toUpperCase():u.toLowerCase()}e.replace({type:"Char",value:o,kind:s,escaped:d||(a=o,/[*[()+?$./{}|]/.test(a))})}}}],["charEscapeUnescape",{_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(e){var t,r,n,u,a=e.node;a.escaped&&(t=this._hasXFlag,r=e.node.value,n=e.index,("CharacterClass"!==(u=e.parent).type&&"ClassRange"!==u.type?"{"===r?function(e,t){if(null==e)return!1;var r=dC(e+1,t),n=e+r+1,u=n<t.expressions.length&&t.expressions[n];if(r){if(dS(u,"}"))return!0;if(dS(u,","))return r=dC(n+1,t),dS(u=(n=n+r+1)<t.expressions.length&&t.expressions[n],"}")}return!1}(n,u):"}"===r?function(e,t){if(null==e)return!1;var r=dC(e-1,t,!0),n=e-r-1,u=n>=0&&t.expressions[n];return!!(r&&dS(u,"{"))||!!dS(u,",")&&(r=dC(n-1,t,!0),u=(n=n-r-1)<t.expressions.length&&t.expressions[n],r&&dS(u,"{"))}(n,u):!!(t&&/[ #]/.test(r))||/[*[()+?^$./\\|]/.test(r):"^"===r?0===n&&!u.negative:"-"===r||/[\]\\]/.test(r))||delete a.escaped)}}],["charClassClassrangesMerge",{_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(e){var t=e.node.expressions,r=[];t.forEach(function(e){d_(e)&&r.push(e.value)}),t.sort(dw);for(var n=0;n<t.length;n++){var u,a=t[n];if(function(e,t,r){for(var n=0;n<t.length;n++)if(function e(t,r,n){return"ClassRange"===t.type?e(t.from,r,n)&&e(t.to,r,n):!!("\\S"===r&&(d_(t,"\\w")||d_(t,"\\d"))||"\\D"===r&&(d_(t,"\\W")||d_(t,"\\s"))||"\\w"===r&&d_(t,"\\d")||"\\W"===r&&d_(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===r?dT(t):"\\S"===r?!dT(t):"\\d"===r?dP(t):"\\D"===r?!dP(t):"\\w"===r?dI(t,n):"\\W"===r&&!dI(t,n))}(e,t[n],r))return!0;return!1}(a,r,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;if(dB(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(a,t[n-1])||(u=t[n+1])&&"ClassRange"===u.type&&dB(a)&&u.from.codePoint===a.codePoint+1&&(u.from=a,1))t.splice(n,1),n--;else{var i=function(e,t,r){if(!dB(e))return 0;for(var n=0;t>0;){var u=r[t],a=r[t-1];if(dB(a)&&a.codePoint===u.codePoint-1)n++,t--;else break}return n>1?(r[t]={type:"ClassRange",from:r[t],to:e},n):0}(a,n,t);t.splice(n-i+1,i),n-=i}}}}],["disjunctionRemoveDuplicates",{Disjunction:function(e){var t=e.node,r={},n=dg(t).filter(function(e){var t=e?ds.getForNode(e).jsonEncode():"null";return!r.hasOwnProperty(t)&&(r[t]=e,!0)});e.replace(n.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}}))}}],["groupSingleCharsToCharClass",{Disjunction:function(e){var t=e.node,r=e.parent;if(dj[r.type]){var n=new Map;if(function e(t,r){if(!t)return!1;var n=t.type;if("Disjunction"===n){var u=t.left,a=t.right;return e(u,r)&&e(a,r)}if("Char"===n){if("meta"===t.kind&&"."===t.symbol)return!1;var i=t.value;return r.set(i,t),!0}return"CharacterClass"===n&&!t.negative&&t.expressions.every(function(t){return e(t,r)})}(t,n)&&n.size){var u={type:"CharacterClass",expressions:Array.from(n.keys()).sort().map(function(e){return n.get(e)})};dj[r.type](e.getParent(),u)}}}}],["removeEmptyGroup",{Group:function(e){var t=e.node,r=e.parent,n=e.getChild();t.capturing||n||("Repetition"===r.type?e.getParent().replace(t):"RegExp"!==r.type&&e.remove())}}],["ungroup",{Group:function(e){var t=e.node,r=e.parent,n=e.getChild();if(!t.capturing&&n&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&("Disjunction"!==n.node.type||"RegExp"===r.type)&&("Repetition"!==r.type||"Char"===n.node.type||"CharacterClass"===n.node.type)){if("Alternative"===n.node.type){var u=e.getParent();"Alternative"===u.node.type&&u.replace({type:"Alternative",expressions:[].concat(dO(r.expressions.slice(0,e.index)),dO(n.node.expressions),dO(r.expressions.slice(e.index+1)))})}else e.replace(n.node)}}}],["combineRepeatingPatterns",{Alternative:function(e){for(var t=e.node,r=1;r<t.expressions.length;){var n=e.getChild(r);if((r=Math.max(1,function(e,t,r){for(var n=e.node,u=Math.ceil(r/2),a=0;a<u;){var i=r-2*a-1,o=void 0,s=void 0;if(0===a?(o=t,s=e.getChild(i)):(o=ds.getForNode({type:"Alternative",expressions:[].concat(dR(n.expressions.slice(r-a,r)),[t.node])}),s=ds.getForNode({type:"Alternative",expressions:[].concat(dR(n.expressions.slice(i,r-a)))})),o.hasEqualSource(s)){for(var d=0;d<2*a+1;d++)e.getChild(i).remove();return t.replace({type:"Repetition",expression:0===a&&"Repetition"!==o.node.type?o.node:{type:"Group",capturing:!1,expression:o.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),i}a++}return r}(e,n,r)))>=t.expressions.length||(n=e.getChild(r),(r=Math.max(1,function(e,t,r){for(var n=e.node,u=0;u<r;){var a=e.getChild(u);if("Repetition"===a.node.type&&a.node.quantifier.greedy){var i=a.getChild(),o=void 0;if("Group"!==i.node.type||i.node.capturing||(i=i.getChild()),u+1===r?"Group"!==(o=t).node.type||o.node.capturing||(o=o.getChild()):o=ds.getForNode({type:"Alternative",expressions:[].concat(dR(n.expressions.slice(u+1,r+1)))}),i.hasEqualSource(o)){for(var s=u;s<r;s++)e.getChild(u+1).remove();return dy(a.node.quantifier),u}}u++}return r}(e,n,r)))>=t.expressions.length))break;n=e.getChild(r),r=Math.max(1,function(e,t,r){var n=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var u=t.getChild(),a=void 0;"Group"!==u.node.type||u.node.capturing||(u=u.getChild());var i=void 0;if("Alternative"===u.node.type?(i=u.node.expressions.length,a=ds.getForNode({type:"Alternative",expressions:[].concat(dR(n.expressions.slice(r-i,r)))})):(i=1,"Group"!==(a=e.getChild(r-1)).node.type||a.node.capturing||(a=a.getChild())),a.hasEqualSource(u)){for(var o=r-i;o<r;o++)e.getChild(r-i).remove();return dy(t.node.quantifier),r-i}}return r}(e,n,r)),r++}}}]]),dN=function e(t){if(null===t||"object"!=typeof t)return t;var r=void 0;for(var n in r=Array.isArray(t)?[]:{},t)r[n]=e(t[n]);return r},dM=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},d$=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),dz=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.in=t,this.out=r}return d$(e,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var r=e[t];for(var n in r)"ε*"!==n&&this._alphabet.add(n)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,r=void 0;try{for(var n,u=this.getAcceptingStates()[Symbol.iterator]();!(e=(n=u.next()).done);e=!0){var a=n.value;this._acceptingStateNumbers.add(a.number)}}catch(e){t=!0,r=e}finally{try{!e&&u.return&&u.return()}finally{if(t)throw r}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var e=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var t=new Set,r=new Set;(function n(u){if(!t.has(u)){t.add(u),u.number=t.size,e._transitionTable[u.number]={},u.accepting&&e._acceptingStates.add(u);var a=u.getTransitions(),i=!0,o=!1,s=void 0;try{for(var d,l=a[Symbol.iterator]();!(i=(d=l.next()).done);i=!0){var c=d.value,f=dM(c,2),p=f[0],m=f[1],g=[];r.add(p);var y=!0,h=!1,b=void 0;try{for(var v,x=m[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value;n(E),g.push(E.number)}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}e._transitionTable[u.number][p]=g}}catch(e){o=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}}})(this.in),t.forEach(function(t){delete e._transitionTable[t.number]["ε"],e._transitionTable[t.number]["ε*"]=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e}(),dU=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function dq(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var dW=null,dV=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function dZ(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var dG=function(e){var t=e.getTransitionTable(),r=Object.keys(t),n=e.getAlphabet(),u=e.getAcceptingStateNumbers();dW={};var a=new Set;r.forEach(function(e){e=Number(e),u.has(e)?dW[e]=u:(a.add(e),dW[e]=a)});var i=[[a,u].filter(function(e){return e.size>0})],o=void 0,s=void 0;for(o=i[i.length-1],s=i[i.length-2];!function(e,t){if(!t||e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],u=t[r];if(n.size!==u.size||[].concat(dq(n)).sort().join(",")!==[].concat(dq(u)).sort().join(","))return!1}return!0}(o,s);)!function(){var e={},r=!0,u=!1,a=void 0;try{for(var d,l=o[Symbol.iterator]();!(r=(d=l.next()).done);r=!0){var c=d.value,f={},p=Array.isArray(c)?c:Array.from(c),m=p[0],g=p.slice(1);f[m]=new Set([m]);var y=!0,h=!1,b=void 0;try{e:for(var v,x=g[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value,A=!0,D=!1,C=void 0;try{for(var S,w=Object.keys(f)[Symbol.iterator]();!(A=(S=w.next()).done);A=!0){var F=S.value;if(function(e,t,r,n){var u=!0,a=!1,i=void 0;try{for(var o,s=n[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d=o.value;if(!function(e,t,r,n){if(!dW[e]||!dW[t])return!1;var u=r[e][n],a=r[t][n];return!u&&!a||dW[e].has(u)&&dW[t].has(a)}(e,t,r,d))return!1}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}return!0}(E,F,t,n)){f[F].add(E),f[E]=f[F];continue e}}}catch(e){D=!0,C=e}finally{try{!A&&w.return&&w.return()}finally{if(D)throw C}}f[E]=new Set([E])}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}Object.assign(e,f)}}catch(e){u=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(u)throw a}}dW=e;var _=new Set(Object.keys(e).map(function(t){return e[t]}));i.push([].concat(dq(_))),o=i[i.length-1],s=i[i.length-2]}();var d=new Map,l=1;o.forEach(function(e){return d.set(e,l++)});var c={},f=new Set,p=!0,m=!1,g=void 0;try{for(var y,h=d.entries()[Symbol.iterator]();!(p=(y=h.next()).done);p=!0){var b=y.value,v=dU(b,2),x=v[0],E=v[1];c[E]={};var A=!0,D=!1,C=void 0;try{for(var S,w=n[Symbol.iterator]();!(A=(S=w.next()).done);A=!0){var F=S.value;!function(e,t){var r=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;u.has(s)&&f.add(t)}}catch(e){n=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw a}}}(x,E);var _=void 0,k=!0,T=!1,P=void 0;try{for(var I,B=x[Symbol.iterator]();!(k=(I=B.next()).done)&&!(_=t[I.value][F]);k=!0);}catch(e){T=!0,P=e}finally{try{!k&&B.return&&B.return()}finally{if(T)throw P}}_&&(c[E][F]=d.get(dW[_]))}}catch(e){D=!0,C=e}finally{try{!A&&w.return&&w.return()}finally{if(D)throw C}}}}catch(e){m=!0,g=e}finally{try{!p&&h.return&&h.return()}finally{if(m)throw g}}return e.setTransitionTable(c),e.setAcceptingStateNumbers(f),e},dH=function(){function e(t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._nfa=t}return dV(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,dG(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var t=this._nfa.getTransitionTable(),r=Object.keys(t);this._acceptingStateNumbers=new Set;for(var n=[t[r[0]]["ε*"]],u=this.getAlphabet(),a=this._nfa.getAcceptingStateNumbers(),i={};n.length>0;){var o=n.shift(),s=o.join(",");i[s]={};var d=!0,l=!1,c=void 0;try{for(var f,p=u[Symbol.iterator]();!(d=(f=p.next()).done);d=!0){var m=f.value,g=[];!function(t){var r=!0,n=!1,u=void 0;try{for(var i,o=a[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;if(-1!==t.indexOf(s)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){n=!0,u=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw u}}}(o);var y=!0,h=!1,b=void 0;try{for(var v,x=o[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=t[v.value][m];if(E){var A=!0,D=!1,C=void 0;try{for(var S,w=E[Symbol.iterator]();!(A=(S=w.next()).done);A=!0){var F=S.value;t[F]&&g.push.apply(g,dZ(t[F]["ε*"]))}}catch(e){D=!0,C=e}finally{try{!A&&w.return&&w.return()}finally{if(D)throw C}}}}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}var _=new Set(g),k=[].concat(dZ(_));if(k.length>0){var T=k.join(",");i[s][m]=T,i.hasOwnProperty(T)||n.unshift(k)}}}catch(e){l=!0,c=e}finally{try{!d&&p.return&&p.return()}finally{if(l)throw c}}}return this._transitionTable=this._remapStateNumbers(i)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var n in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var u=e[n],a={};for(var i in u)a[i]=t[u[i]];r[t[n]]=a}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,s=!1,d=void 0;try{for(var l,c=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;this._acceptingStateNumbers.add(t[f])}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}return r}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,r=0,n=this.getTransitionTable();e[r];)if(!(t=n[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),e}(),dK=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),dX=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.accepting;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._transitions=new Map,this.accepting=void 0!==r&&r}return dK(e,[{key:"getTransitions",value:function(){return this._transitions}},{key:"addTransition",value:function(e,t){return this.getTransitionsOnSymbol(e).add(t),this}},{key:"getTransitionsOnSymbol",value:function(e){var t=this._transitions.get(e);return t||(t=new Set,this._transitions.set(e,t)),t}}]),e}(),dJ=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),dY=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),dJ(t,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var r=!0,n=!1,u=void 0;try{for(var a,i=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(r=(a=i.next()).done);r=!0)if(a.value.matches("",t))return!0}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}return!1}var o=e[0],s=e.slice(1),d=this.getTransitionsOnSymbol(o),l=!0,c=!1,f=void 0;try{for(var p,m=d[Symbol.iterator]();!(l=(p=m.next()).done);l=!0)if(p.value.matches(s))return!0}catch(e){c=!0,f=e}finally{try{!l&&m.return&&m.return()}finally{if(c)throw f}}var g=!0,y=!1,h=void 0;try{for(var b,v=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(g=(b=v.next()).done);g=!0)if(b.value.matches(e,t))return!0}catch(e){y=!0,h=e}finally{try{!g&&v.return&&v.return()}finally{if(y)throw h}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol("ε"),r=e._epsilonClosure=new Set;r.add(e);var n=!0,u=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;r.has(s)||(r.add(s),s.getEpsilonClosure().forEach(function(e){return r.add(e)}))}}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}}(),this._epsilonClosure}}]),t}(dX);function dQ(e){var t=new dY,r=new dY({accepting:!0});return new dz(t.addTransition(e,r),r)}var d0={alt:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var u=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d,l=o.value;(d=e).out.accepting=!1,l.out.accepting=!0,d.out.addTransition("ε",l.in),e=new dz(d.in,l.out)}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}return e},char:dQ,e:function(){return dQ("ε")},or:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var u=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d=o.value;e=function(e,t){var r=new dY,n=new dY;return r.addTransition("ε",e.in),r.addTransition("ε",t.in),n.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition("ε",n),t.out.addTransition("ε",n),new dz(r,n)}(e,d)}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}return e},rep:function(e){return e.in.addTransition("ε",e.out),e.out.addTransition("ε",e.in),e},repExplicit:function(e){var t=new dY,r=new dY({accepting:!0});return t.addTransition("ε",e.in),t.addTransition("ε",r),e.out.accepting=!1,e.out.addTransition("ε",r),r.addTransition("ε",e.in),new dz(t,r)},plusRep:function(e){return e.out.addTransition("ε",e.in),e},questionRep:function(e){return e.in.addTransition("ε",e.out),e}},d1=d0.alt,d2=d0.char,d3=d0.or,d4=d0.rep,d5=d0.plusRep,d8=d0.questionRep;function d6(e){if(e&&!d9[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?d9[e.type](e):""}var d9={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return d6(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(d6);return d1.apply(void 0,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t))},Disjunction:function(e){return d3(d6(e.left),d6(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return d4(d6(e.expression));case"+":return d5(d6(e.expression));case"?":return d8(d6(e.expression));default:throw Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw Error("NFA/DFA: Only simple chars are supported yet.");return d2(e.value)},Group:function(e){return d6(e.expression)}},d7=function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=sK.parse(e,{captureLocations:!0})),d6(t)},le=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),lt=function(){function e(t,r){var n=r.flags,u=r.groups,a=r.source;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._re=t,this._groups=u,this.flags=n,this.source=a||t.source,this.dotAll=n.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return le(e,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var r in t.groups={},this._groups){var n=this._groups[r];t.groups[r]=t[n]}return t}}]),e}(),lr=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.length>0?t:Object.keys(dm),n=void 0,u={};return r.forEach(function(t){if(!dm.hasOwnProperty(t))throw Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(dm).join(", "));var r=dm[t];e=(n=dp(e,r)).getAST(),"function"==typeof r.getExtra&&(u[t]=r.getExtra())}),n.setExtra(u),n},ln=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.whitelist,n=void 0===r?[]:r,u=t.blacklist,a=void 0===u?[]:u,i=(n.length>0?n:Array.from(dL.keys())).filter(function(e){return!a.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=sK.parse(e));var s=new df(o),d=void 0;do d=s.toString(),o=dN(s.getAST()),i.forEach(function(e){if(!dL.has(e))throw Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(dL.keys()).join(", "));var t=dL.get(e),r=dp(o,t);r.toString()!==s.toString()&&(r.toString().length<=s.toString().length?s=r:o=dN(s.getAST()))});while(s.toString()!==d);return s};let lu=(e,t)=>{if(t=t||"","string"!=typeof e)throw TypeError(`Expected regexp to be of type \`string\`, got \`${typeof e}\``);if("string"!=typeof t)throw TypeError(`Expected flags to be of type \`string\`, got \`${typeof t}\``);for(let r of sb){let n=r[0],u=r[1];sx(t,u.flags)&&(e=e.replace(RegExp(sv(n),"g"),u.value))}return e},{optimize:la}={parser:sK,fa:{NFA:dz,DFA:dH,builders:d0,toNFA:function(e){return d7(e)},toDFA:function(e){return new dH(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}},TransformResult:df,parse:function(e,t){return sK.parse(""+e,t)},traverse:function(e,t,r){return dl(e,t,r)},transform:function(e,t){return dp(e,t)},generate:function(e){return sD.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return ln(e,{whitelist:t,blacklist:r.blacklist})},compatTranspile:function(e,t){return lr(e,t)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),n=r.getExtra();e=n.namedCapturingGroups?new lt(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:n.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}},{isStringLiteral:li,isNewExpression:lo,isRegexLiteral:ls}=tO,ld="better-regex",ll="better-regex/parse-error";var lc=/*@__PURE__*/Y({create:e=>{let{sortCharacterClasses:t}=e.options[0]||{},r=[];return!1===t&&r.push("charClassClassrangesMerge"),{Literal(e){if(!ls(e))return;let{raw:t,regex:n}=e;if(n.flags.includes("u")||n.flags.includes("v"))return;let u=t;try{u=la(t,void 0,{blacklist:r}).toString()}catch(r){return{node:e,messageId:ll,data:{original:t,error:r.message}}}if(t===u)return;let a={node:e,messageId:ld,data:{original:t,optimized:u}};return"MemberExpression"!==e.parent.type||e.parent.object!==e||e.parent.optional||e.parent.computed||"Identifier"!==e.parent.property.type||"toString"!==e.parent.property.name&&"source"!==e.parent.property.name?Object.assign(a,{fix:t=>t.replaceText(e,u)}):a},NewExpression(e){if(!lo(e,{name:"RegExp",minimumArguments:1}))return;let[t,r]=e.arguments;if(!li(t))return;let n=t.value,u=lu(n,li(r)?r.value:"");if(n!==u)return{node:e,messageId:ld,data:{original:n,optimized:u},fix:e=>e.replaceText(t,rB(u,t.raw.charAt(0)))}}}},meta:{type:"suggestion",docs:{description:"Improve regexes by making them shorter, consistent, and safer.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{sortCharacterClasses:{type:"boolean",default:!0}}}],messages:{[ld]:"{{original}} can be optimized to {{optimized}}.",[ll]:"Problem parsing {{original}}: {{error}}"}}});let{replaceTemplateElement:lf}=ua,{isRegexLiteral:lp,isStringLiteral:lm,isTaggedTemplateLiteral:lg}=tO,ly="escape-case",lh=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,lb=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[a-z])/g,lv=({node:e,original:t,regex:r=lh,fix:n})=>{let u=t.replace(r,e=>e.slice(0,1)+e.slice(1).toUpperCase());if(u!==t)return{node:e,messageId:ly,fix:t=>n?n(t,u):t.replaceText(e,u)}};var lx=/*@__PURE__*/Y({create:e=>{e.on("Literal",e=>{if(lm(e))return lv({node:e,original:e.raw})}),e.on("Literal",e=>{if(lp(e))return lv({node:e,original:e.raw,regex:lb})}),e.on("TemplateElement",e=>{if(!lg(e.parent,["String.raw"]))return lv({node:e,original:e.value.raw,fix:(t,r)=>lf(t,e,r)})})},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase values.",recommended:!0},fixable:"code",messages:{[ly]:"Use uppercase characters for the value of the escape sequence."}}});let{replaceTemplateElement:lE}=ua,{isStringLiteral:lA,isRegexLiteral:lD,isTaggedTemplateLiteral:lC}=tO,lS="no-hex-escape";function lw(e,t,r){let n=r.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(r!==n)return{node:t,messageId:lS,fix:e=>"TemplateElement"===t.type?lE(e,t,n):e.replaceText(t,n)}}var lF=/*@__PURE__*/Y({create:e=>({Literal(t){if(lA(t)||lD(t))return lw(e,t,t.raw)},TemplateElement(t){if(!lC(t.parent,["String.raw"]))return lw(e,t,t.value.raw)}}),meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes.",recommended:!0},fixable:"code",messages:{[lS]:"Use Unicode escapes instead of hexadecimal escapes."}}});let{getPropertyName:l_,ReferenceTracker:lk}=tr,{fixSpaceAroundKeyword:lT}=ua,{isMemberExpression:lP,isMethodCall:lI}=tO,lB=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var lj=/*@__PURE__*/Y({create:function(e){let{sourceCode:t}=e,r=[];e.on("CallExpression",e=>{r.push(e)}),e.on("Program:exit",function*(e){let n=new WeakMap;for(let{node:r,path:u}of new lk(t.getScope(e)).iterateGlobalReferences(Object.fromEntries(lB.map(e=>[e,{[lk.READ]:!0}]))))n.set(r,u);for(let e of r)yield function(e,{sourceCode:t,globalReferences:r}){let n;lI(e,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?n=e.arguments[0]:lI(e,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(n=e.callee.object);let{isGlobalReference:u,constructorName:a,methodName:i}=function(e,{sourceCode:t,globalReferences:r}){if(!e)return;if(r.has(e))return{isGlobalReference:!0,constructorName:"Object",methodName:r.get(e).at(-1)};if(!lP(e,{optional:!1}))return;let n=e.object;if(!(("ArrayExpression"!==n.type||0!==n.elements.length)&&("ObjectExpression"!==n.type||0!==n.properties.length)))return{constructorName:"ArrayExpression"===n.type?"Array":"Object",methodName:l_(e,t.getScope(e))}}(n,{sourceCode:t,globalReferences:r})??{};if(a)return{node:n,messageId:i?"known-method":"unknown-method",data:{constructorName:a,methodName:i},*fix(r){if(u){yield r.replaceText(n,`${a}.prototype.${i}`);return}if(lP(n)){let u=n.object;yield r.replaceText(u,`${a}.prototype`),("ArrayExpression"===u.type||"ObjectExpression"===u.type)&&(yield*lT(r,e,t))}}}}(e,{sourceCode:t,globalReferences:n})})},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance.",recommended:!0},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}});let{getStaticValue:lO}=tr,{isCallOrNewExpression:lR}=tO,lL="missing-message",lN="message-is-empty-string",lM="message-is-not-a-string",l$=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","InternalError","AggregateError"];var lz=/*@__PURE__*/Y({create:e=>{e.on(["CallExpression","NewExpression"],t=>{if(!lR(t,{names:l$,optional:!1}))return;let r=e.sourceCode.getScope(t);if(rQ(r,t.callee))return;let n=t.callee.name,u="AggregateError"===n?1:0,a=t.arguments;if(a.some((e,t)=>t<=u&&"SpreadElement"===e.type))return;let i=a[u];if(!i)return{node:t,messageId:lL,data:{constructorName:n}};if("ArrayExpression"===i.type||"ObjectExpression"===i.type)return{node:i,messageId:lM};let o=lO(i,r);if(!o)return;let{value:s}=o;return"string"!=typeof s?{node:i,messageId:lM}:""===s?{node:i,messageId:lN}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error.",recommended:!0},messages:{[lL]:"Pass a message to the `{{constructorName}}` constructor.",[lN]:"Error message should not be an empty string.",[lM]:"Error message should be a string."}}});let{checkVueTemplate:lU}=ob,{getParenthesizedRange:lq}=tp,{replaceNodeOrTokenAndSpacesBefore:lW,fixSpaceAroundKeyword:lV}=ua,lZ=e=>"instanceof"===e.value&&"Keyword"===e.type,lG="no-instanceof-array";var lH=/*@__PURE__*/Y({create:lU(e=>{let{sourceCode:t}=e;return{BinaryExpression(e){if(!("instanceof"===e.operator&&"Identifier"===e.right.type&&"Array"===e.right.name))return;let{left:r,right:n}=e,u=t,a=u.getTokenAfter(r,lZ);return!a&&t.parserServices.getTemplateBodyTokenStore&&(a=(u=t.parserServices.getTemplateBodyTokenStore()).getTokenAfter(r,lZ)),{node:a,messageId:lG,*fix(i){yield*lV(i,e,t);let o=lq(r,u);yield i.insertTextBeforeRange(o,"Array.isArray("),yield i.insertTextAfterRange(o,")"),yield*lW(a,"",i,t,u),yield*lW(n,"",i,t,u)}}}}}),meta:{type:"suggestion",docs:{description:"Require `Array.isArray()` instead of `instanceof Array`.",recommended:!0},fixable:"code",messages:{[lG]:"Use `Array.isArray()` instead of `instanceof Array`."}}});let{isNewExpression:lK}=tO,lX="prefer-type-error",lJ=new Set(["isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBigInt","isBoolean","isBuffer","isDate","isElement","isError","isFinite","isFunction","isInteger","isLength","isMap","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isPrototypeOf","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isView","isWeakMap","isWeakSet","isWindow","isXMLDoc"]),lY=new Set(["isNaN","isFinite"]),lQ=(e,t,r)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===r&&lJ.has(e.name)||!1===r&&lY.has(e.name)),l0=e=>e.parent&&e.parent.body&&1===e.parent.body.length,l1=(e,t)=>!!lQ(e.property,t,!0)||"MemberExpression"===e.object.type&&l1(e.object,t),l2=(e,t)=>{switch(e.type){case"Identifier":return lQ(e,t,!1);case"MemberExpression":return l1(e,t);case"CallExpression":return l2(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&l2(e.argument);case"BinaryExpression":return"instanceof"===e.operator||l2(e.left,t)||l2(e.right,t);case"LogicalExpression":return l2(e.left,t)&&l2(e.right,t);default:return!1}},l3=e=>"IfStatement"===e.type&&l2(e.test);var l4=/*@__PURE__*/Y({create:()=>({ThrowStatement(e){if(lK(e.argument,{name:"Error"})&&l0(e)&&e.parent.parent&&l3(e.parent.parent)){let t=e.argument.callee;return{node:t,messageId:lX,fix:e=>e.insertTextBefore(t,"Type")}}}}),meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions.",recommended:!0},fixable:"code",messages:{[lX]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}});let{isCallOrNewExpression:l5}=tO,l8="consistentDestructuring",l6="consistentDestructuringSuggest",l9=e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type},l7=(e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1};var ce=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e,r=new Map;return{VariableDeclarator(e){"ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&l9(e.init)&&r.set(t.getText(e.init),{scope:t.getScope(e),variables:t.getDeclaredVariables(e),objectPattern:e.id})},MemberExpression(e){if(e.computed||l5(e.parent)&&e.parent.callee===e||rz(e))return;let n=r.get(t.getText(e.object));if(!n)return;let{scope:u,objectPattern:a}=n,i=t.getScope(e);if(!l7(i,u))return;let o=a.properties.filter(e=>"Property"===e.type&&"Identifier"===e.key.type&&"Identifier"===e.value.type),s=a.properties.at(-1),d=s&&"RestElement"===s.type,l=t.getText(e),c=t.getText(e.property),f=o.find(e=>e.key.name===c);if(!f&&(d||rd(c,[i])!==c))return;if("MemberExpression"===e.parent.type)return{node:e,messageId:l8};let p=f?f.value.name:c;return{node:e,messageId:l8,suggest:[{messageId:l6,data:{expression:l,property:p},*fix(t){let{properties:r}=a,n=r.at(-1);yield t.replaceText(e,p),f||(yield n?t.insertTextAfter(n,`, ${p}`):t.replaceText(a,`{${p}}`))}}]}}}},meta:{type:"suggestion",docs:{description:"Use destructured variables over properties.",recommended:!1},fixable:"code",hasSuggestions:!0,messages:{[l8]:"Use destructured variables over properties.",[l6]:"Replace `{{expression}}` with destructured property `{{property}}`."}}}),ct=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];let cr=["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...ct],{GlobalReferenceTracker:cn}=ie,cu=["BigInt","Boolean","Number","String","Symbol"],{switchCallExpressionToNewExpression:ca,switchNewExpressionToCallExpression:ci}=ua;var co=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e,r=new cn({objects:cu,type:cn.CONSTRUCT,handle:e=>(function({node:e,path:[t]},r){let n={node:e,messageId:"disallow",data:{name:t}};return"String"!==t&&"Boolean"!==t&&"Number"!==t&&(n.fix=function*(t){yield*ci(e,r,t)}),n})(e,t)}),n=new cn({objects:cr,type:cn.CALL,handle:e=>(function({node:e,path:[t]},r){if("Object"===t){let{parent:t}=e;if("BinaryExpression"===t.type&&("==="===t.operator||"!=="===t.operator)&&(t.left===e||t.right===e))return}return{node:e,messageId:"enforce",data:{name:t},fix:t=>ca(e,r,t)}})(e,t)});return{*"Program:exit"(e){let u=t.getScope(e);yield*r.track(u),yield*n.track(u)}}},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.",recommended:!0},fixable:"code",messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`."}}});let{hasSideEffect:cs,isSemicolonToken:cd}=tr,{getCallExpressionTokens:cl,getCallExpressionArgumentsText:cc}=nb,{isNodeMatches:cf}=tC,cp=function(e,t){let{parent:r}=e;for(let n of t.visitorKeys[r.type]||Object.keys(r)){let t=r[n];if(t===e)return;if(Array.isArray(t)){let r=t.indexOf(e);if(-1!==r)return t[r-1]}}},{isMethodCall:cm}=tO,cg="error",cy="suggestion",ch=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&cm(e,{method:"push",optionalCall:!1,optionalMember:!1});var cb=/*@__PURE__*/Y({create:function(e){let{ignore:t}={ignore:[],...e.options[0]},r=["stream","this","this.stream","process.stdin","process.stdout","process.stderr",...t],{sourceCode:n}=e;return{CallExpression(e){if(!ch(e))return;let t=e.callee.object;if(cf(t,r))return;let u=function(e,t){let r=cp(e.parent,t)?.expression;if(ch(r))return r}(e,n);if(!u||!rY(u.callee.object,t))return;let a=e.arguments,i={node:e.callee.property,messageId:cg},o=function*(t){if(a.length>0){let r=cc(n,e),{trailingCommaToken:a,closingParenthesisToken:i}=cl(n,u);yield a?t.insertTextAfter(a,` ${r}`):t.insertTextBefore(i,u.arguments.length>0?`, ${r}`:r)}let r=u.parent,i=e.parent,o=!cd(n.getLastToken(r))&&cd(n.getLastToken(i));yield t.replaceTextRange([r.range[1],i.range[1]],o?";":"")};return a.some(e=>cs(e,n))?i.suggest=[{messageId:cy,fix:o}]:i.fix=o,i}}},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()` into one call.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0}}}],messages:{[cg]:"Do not call `Array#push()` multiple times.",[cy]:"Merge with previous one."}}});let{isStaticRequire:cv,isMethodCall:cx,isLiteral:cE}=tO,cA="no-process-exit",cD=e=>cE(e,"node:worker_threads")||cE(e,"worker_threads");var cC=/*@__PURE__*/Y({create:e=>{let t;if(0===e.sourceCode.lines[0].indexOf("#!"))return{};let r=!1,n=[];e.on("CallExpression",e=>{cv(e)&&cD(e.arguments[0])&&(r=!0)}),e.on("ImportDeclaration",e=>{"Literal"===e.source.type&&cD(e.source)&&(r=!0)}),e.on("CallExpression",e=>{cx(e,{object:"process",methods:["on","once"],minimumArguments:1,optionalCall:!1,optionalMember:!1})&&(t=e)}),e.onExit("CallExpression",e=>{e===t&&(t=void 0)}),e.on("CallExpression",e=>{!t&&cx(e,{object:"process",method:"exit",optionalCall:!1,optionalMember:!1})&&n.push(e)}),e.onExit("Program",function*(){if(!r)for(let e of n)yield{node:e,messageId:cA}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`.",recommended:!0},messages:{[cA]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}});let{isCommaToken:cS}=tr,{isMethodCall:cw,isExpressionStatement:cF}=tO,{getParenthesizedText:c_,isParenthesized:ck,needsSemicolon:cT,shouldAddParenthesesToAwaitExpressionArgument:cP}=nb,cI="no-single-promise-in-promise-methods/error",cB="no-single-promise-in-promise-methods/unwrap",cj="no-single-promise-in-promise-methods/use-promise-resolve",cO=["all","any","race"],cR=e=>cw(e,{object:"Promise",methods:cO,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type&&1===e.arguments[0].elements.length&&e.arguments[0].elements[0]&&"SpreadElement"!==e.arguments[0].elements[0].type,cL=(e,t)=>r=>{let[n]=e.arguments[0].elements,u=c_(n,t);return!ck(n,t)&&cP(n)&&(u=`(${u})`),r.replaceText(e,u)},cN=(e,t)=>r=>{let[n]=e.arguments[0].elements,u=c_(n,t);return ck(n,t)||"Identifier"===n.type||"MemberExpression"===n.type||(u=`(${u})`),cT(t.getTokenBefore(e),t,u)&&(u=`;${u}`),r.replaceText(e,u)},cM=(e,t)=>function*(r){let n=e.callee.property;yield r.replaceText(n,"resolve");let[u]=e.arguments,a=t.getFirstToken(u),[i,o]=t.getLastTokens(u,2);yield r.remove(a),yield r.remove(o),cS(i)&&(yield r.remove(i))};var c$=/*@__PURE__*/Y({create:e=>({CallExpression(t){if(!cR(t))return;let r=t.callee.property.name,n={node:t.arguments[0],messageId:cI,data:{method:r}},{sourceCode:u}=e;return"AwaitExpression"===t.parent.type&&t.parent.argument===t&&("all"!==r||cF(t.parent.parent))?n.fix=cL(t,u):"all"===r||(n.suggest=[{messageId:cB,fix:cN(t,u)},{messageId:cj,fix:cM(t,u)}]),n}}),meta:{type:"suggestion",docs:{description:"Disallow passing single-element arrays to `Promise` methods.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[cI]:"Wrapping single-element array with `Promise.{{method}}()` is unnecessary.",[cB]:"Use the value directly.",[cj]:"Switch to `Promise.resolve(…)`."}}}),cz=function(e,{test:t,expected:r,ruleId:n}){if(t?.(e)||(r=(r=Array.isArray(r)?r:[r]).map(e=>"string"==typeof e?{value:e}:e),!t&&r.some(t=>Object.entries(t).every(([t,r])=>e[t]===r))))return;let u=`'${JSON.stringify({value:e.value,type:e.type})}'`;r=r.map(e=>`'${JSON.stringify(e)}'`).join(" or ");let a=`\`${n}\`: Unexpected token ${u}`,i=`https://github.com/sindresorhus/eslint-plugin-unicorn/issues/new?title=${encodeURIComponent(a)}`;throw Error(`Expected token ${r}, got ${u}.
4
- Please open an issue at ${i}.`)};let{isSemicolonToken:cU}=tr,cq=function(e,t){let{loc:r,body:n}=e,u=t.getTokenBefore(n),{start:a}=r,{end:i}=u.loc;return{start:a,end:i}},{removeSpacesAfter:cW}=ua,cV="no-static-only-class",cZ=({type:e,value:t})=>"Punctuator"===e&&"="===t,cG=e=>"ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e,cH=e=>"PropertyDefinition"===e.type,cK=e=>"MethodDefinition"===e.type;var cX=/*@__PURE__*/Y({create:function(e){e.on(["ClassDeclaration","ClassExpression"],t=>{if(t.superClass||t.decorators&&t.decorators.length>0||"ClassBody"!==t.body.type||0===t.body.body.length||t.body.body.some(e=>!function(e){let{private:t,static:r,declare:n,readonly:u,accessibility:a,decorators:i,key:o}=e;return!(!cH(e)&&!cK(e)||!r||t||"PrivateIdentifier"===o.type||n||u||void 0!==a||Array.isArray(i)&&i.length>0)}(e)))return;let{sourceCode:r}=e;return{node:t,loc:cq(t,r),messageId:cV,fix:function(e,t){let{type:r,id:n,body:u,declare:a,abstract:i,implements:o,parent:s}=e;if(a||i||Array.isArray(o)&&o.length>0||"ClassExpression"===r&&n)return;let d=cG(e);if(!d||!n){for(let e of u.body)if(cH(e)&&(e.typeAnnotation||e.value&&t.getText(e.value).includes("this")))return;return function*(n){let a=t.getFirstToken(e);if(cz(a,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),d||"ClassExpression"===r){if("ClassExpression"===r&&"ReturnStatement"===s.type&&u.loc.start.line!==s.loc.start.line&&t.text.slice(a.range[1],u.range[0]).trim()){yield n.replaceText(a,"{");let e=t.getFirstToken(u);yield n.remove(e)}else yield n.replaceText(a,""),yield cW(a,t,n)}else yield n.replaceText(a,"const"),yield n.insertTextBefore(u,"= "),yield n.insertTextAfter(u,";");for(let e of u.body)yield*function*(e,t,r){let n=t.getFirstToken(e);cz(n,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield r.remove(n),yield cW(n,t,r);let u=cH(e)?t.getLastToken(e):t.getTokenAfter(e),a=cU(u);if(cH(e)){let{key:n,value:i}=e;if(i){let e=t.getTokenAfter(n,cZ);yield r.replaceText(e,":")}else a?yield r.insertTextBefore(u,": undefined"):yield r.insertTextAfter(e,": undefined")}yield a?r.replaceText(u,","):r.insertTextAfter(e,",")}(e,t,n)}}}(t,r)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members.",recommended:!0},fixable:"code",messages:{[cV]:"Use an object instead of a class with only static members."}}});let{isParenthesized:cJ}=tr,{fixSpaceAroundKeyword:cY}=ua,cQ="no-unreadable-array-destructuring",c0=(e,t,r)=>null===e&&null===r[t+1];var c1=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e;return{ArrayPattern(e){let{elements:r,parent:n}=e;if(r.length<3||!r.some((e,t,r)=>c0(e,t,r)))return;let u={node:e,messageId:cQ},a=r.filter(e=>null!==e);if("VariableDeclarator"===n.type&&n.id===e&&null!==n.init&&1===a.length){let[i]=a;"AssignmentPattern"!==i.type&&(u.fix=function*(u){let a=r.indexOf(i),o="RestElement"===i.type,s=o?i.argument:i;yield u.replaceText(e,t.getText(s));let d=o?`.slice(${a})`:`[${a}]`,l=n.init;!cJ(l,t)&&nn(l,t)?(yield u.insertTextBefore(l,"("),yield u.insertTextAfter(n,`)${d}`)):yield u.insertTextAfter(n,d),yield*cY(u,e,t)})}return u}}},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring.",recommended:!0},fixable:"code",messages:{[cQ]:"Array destructuring may not contain consecutive ignored values."}}});let{isCommaToken:c2}=tr,{removeParentheses:c3,fixSpaceAroundKeyword:c4,addParenthesizesToReturnOrThrowExpression:c5}=ua,{isParenthesized:c8,isOnSameLine:c6}=nb,{isNewExpression:c9,isMethodCall:c7,isCallOrNewExpression:fe}=tO,ft="spread-in-list",fr="iterable-to-array",fn="iterable-to-array-in-for-of",fu="iterable-to-array-in-yield-star",fa="clone-array",fi=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",fo={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*fs(e,t,r){let[n,u,a]=r.getFirstTokens(t,3);yield e.remove(n),yield e.remove(u);let[i,o]=r.getLastTokens(t,2);yield e.remove(o),c2(i)&&(yield e.remove(i));let{parent:s}=t;if(("ReturnStatement"===s.type||"ThrowStatement"===s.type)&&s.argument===t&&!c6(n,a)&&!c8(t,r)){yield*c5(e,s,r);return}yield*c4(e,t,r)}var fd=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e;e.on(["ArrayExpression","ObjectExpression"],e=>{if(!("SpreadElement"===e.parent.type&&e.parent.argument===e&&("ObjectExpression"===e.type&&"ObjectExpression"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)||"ArrayExpression"===e.type&&("ArrayExpression"===e.parent.parent.type&&e.parent.parent.elements.includes(e.parent)||fe(e.parent.parent)&&e.parent.parent.arguments.includes(e.parent)))))return;let r=e.parent,n=t.getFirstToken(r),u=r.parent.type;return{node:n,messageId:ft,data:{argumentType:"ArrayExpression"===e.type?"array":"object",parentDescription:fo[u]},*fix(r){let a;yield r.remove(n),yield*c3(e,r,t);let i=t.getFirstToken(e);yield r.remove(i);let[o,s]=t.getLastTokens(e,2);if(yield r.remove(s),c2(o)&&(yield r.remove(o)),"CallExpression"===u||"NewExpression"===u)for(let[n,u]of(a=t.getFirstToken(e),e.elements.map((r,n,u)=>{if(n===u.length-1){let r=t.getLastToken(e,{skip:1});return c2(r)?r:void 0}let i=t.getTokenAfter(r||a,c2);return a=i,i})).entries())e.elements[n]||(yield r.insertTextBefore(u,"undefined"))}}}),e.on("ArrayExpression",e=>{if(!fi(e))return;let{parent:r}=e;if(!("ForOfStatement"===r.type&&r.right===e||"YieldExpression"===r.type&&r.delegate&&r.argument===e||(c9(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||c9(r,{names:ct,minimumArguments:1})||c7(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||c7(r,{objects:["Array",...ct],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||c7(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===e))return;let n="",u=fr;switch(r.type){case"ForOfStatement":u=fn;break;case"YieldExpression":u=fu;break;case"NewExpression":n=`new ${r.callee.name}(…)`;break;case"CallExpression":n=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:e,messageId:u,data:{parentDescription:n},fix:r=>fs(r,e,t)}}),e.on("ArrayExpression",e=>{if(!fi(e))return;let r=e.elements[0].argument;if(!(c7(r,{methods:["concat","copyWithin","filter","flat","flatMap","map","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||c7(r,{method:"split",optionalCall:!1,optionalMember:!1})||c7(r,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===r.type&&c7(r.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||c7(r,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||c9(r,{name:"Array"})))return;let n={node:e,messageId:fa};return c9(r,{name:"Array"})||"CallExpression"===r.type&&"MemberExpression"===r.callee.type&&"Identifier"===r.callee.property.type&&"slice"===r.callee.property.name?n:Object.assign(n,{fix:r=>fs(r,e,t)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread.",recommended:!0},fixable:"code",messages:{[ft]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[fr]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[fn]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[fu]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[fa]:"Unnecessarily cloning an array."}}});let{isColonToken:fl}=tr,{isEmptyNode:fc}=tO,ff=function(e,t){let r=e.test||t.getFirstToken(e),n=t.getTokenAfter(r,fl);return{start:e.loc.start,end:n.loc.end}},fp="no-useless-switch-case/error",fm="no-useless-switch-case/suggestion",fg=e=>e.consequent.every(e=>fc(e));var fy=/*@__PURE__*/Y({create:e=>({*SwitchStatement(t){let{cases:r}=t;if(!(r.length<2)&&null===r.at(-1).test)for(let t=r.length-2;t>=0;t--){let n=r[t];if(!fg(n))break;yield{node:n,loc:ff(n,e.sourceCode),messageId:fp,suggest:[{messageId:fm,fix:e=>e.remove(n)}]}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements.",recommended:!0},hasSuggestions:!0,messages:{[fp]:"Useless case in switch statement.",[fm]:"Remove this case."}}});let{isCommaToken:fh}=tr,{replaceNodeOrTokenAndSpacesBefore:fb}=ua,{isUndefined:fv,isFunction:fx}=tO,fE="no-useless-undefined",fA=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),fD=e=>{let t;return"Identifier"===e.type?t=e.name:"MemberExpression"===e.type&&!1===e.computed&&"Identifier"===e.property.type&&(t=e.property.name),fA.has(t)||"push"===t||"unshift"===t||"includes"===t||"add"===t||"has"===t||"set"===t||"createContext"===t||/^set[A-Z]/.test(t)||"ref"===t},fC=e=>{for(;e;e=e.upper)if("function"===e.type)return e.block},fS=e=>!e.optional&&"MemberExpression"===e.callee.type&&!e.callee.computed&&"Identifier"===e.callee.property.type&&"bind"===e.callee.property.name,fw=e=>/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename);var fF=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e,r=(e,r,n)=>{if(n){let r=fC(t.getScope(e));if(r?.returnType)return}return{node:e,messageId:fE,fix:r}},n={checkArguments:!0,checkArrowFunctionBody:!0,...e.options[0]},u=(e,r)=>fb(e,"",r,t);e.on("Identifier",e=>{if(fv(e)&&"ReturnStatement"===e.parent.type&&e.parent.argument===e)return r(e,t=>u(e,t),!0)}),e.on("Identifier",e=>{if(fv(e)&&"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)return r(e,t=>u(e,t))}),n.checkArrowFunctionBody&&e.on("Identifier",e=>{if(fv(e)&&"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e)return r(e,r=>fb(e," {}",r,t),!0)}),e.on("Identifier",e=>{if(fv(e)&&"VariableDeclarator"===e.parent.type&&e.parent.init===e&&"VariableDeclaration"===e.parent.parent.type&&"const"!==e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent))return r(e,t=>t.removeRange([e.parent.id.range[1],e.range[1]]),!0)}),e.on("Identifier",t=>{if(fv(t)&&"AssignmentPattern"===t.parent.type&&t.parent.right===t)return r(t,function*(r){let n=t.parent,{left:u}=n;yield r.removeRange([u.range[1],t.range[1]]),(u.typeAnnotation||fw(e))&&!u.optional&&fx(n.parent)&&n.parent.params.includes(n)&&(yield u.typeAnnotation?r.insertTextBefore(u.typeAnnotation,"?"):r.insertTextAfter(u,"?"))},!0)}),n.checkArguments&&e.on("CallExpression",e=>{if(fD(e.callee))return;let r=e.arguments;if(fS(e)&&1!==r.length)return;let n=[];for(let e=r.length-1;e>=0;e--){let t=r[e];if(fv(t))n.unshift(t);else break}if(0===n.length)return;let u=n[0],a=n.at(-1);return{messageId:fE,loc:{start:u.loc.start,end:a.loc.end},fix(e){let i=u.range[0],o=a.range[1],s=r[r.length-n.length-1];if(s)i=s.range[1];else{let e=t.getTokenAfter(a);fh(e)&&(o=e.range[1])}return e.removeRange([i,o])}}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean"},checkArrowFunctionBody:{type:"boolean"}}}],messages:{[fE]:"Do not use useless `undefined`."}}});let{isBigIntLiteral:f_}=tO,fk="numeric-separators-style";function fT(e,{minimumDigits:t,groupLength:r},n){let{length:u}=e;if(u<t)return e;let a=[];if(n)for(let t=0;t<u;t+=r){let n=Math.min(t+r,u);a.push(e.slice(t,n))}else for(let t=u;t>0;t-=r){let n=Math.max(t-r,0);a.unshift(e.slice(n,t))}return a.join("_")}let fP={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},fI=({minimumDigits:e,groupLength:t})=>({type:"object",additionalProperties:!1,properties:{onlyIfContainsSeparator:{type:"boolean"},minimumDigits:{type:"integer",minimum:0,default:e},groupLength:{type:"integer",minimum:1,default:t}}});var fB=/*@__PURE__*/Y({create:e=>{let{onlyIfContainsSeparator:t,binary:r,octal:n,hexadecimal:u,number:a}={onlyIfContainsSeparator:!1,...e.options[0]},i={"0b":{onlyIfContainsSeparator:t,...fP.binary,...r},"0o":{onlyIfContainsSeparator:t,...fP.octal,...n},"0x":{onlyIfContainsSeparator:t,...fP.hexadecimal,...u},"":{onlyIfContainsSeparator:t,...fP.number,...a}};return{Literal(e){if(!nt.isNumeric(e)||nt.isLegacyOctal(e))return;let{raw:t}=e,r=t,n="";f_(e)&&(r=t.slice(0,-1),n="n");let u=r.replaceAll("_",""),{prefix:a,data:o}=nt.getPrefix(u),{onlyIfContainsSeparator:s}=i[a.toLowerCase()];if(s&&!t.includes("_"))return;let d=function(e,{prefix:t,data:r},n){let u=n[t.toLowerCase()];if(t)return t+fT(r,u);let{number:a,mark:i,sign:o,power:s}=nt.parseNumber(e);return function(e,t){let{integer:r,dot:n,fractional:u}=nt.parseFloatNumber(e);return fT(r,t)+n+fT(u,t,!0)}(a,u)+i+o+fT(s,n[""])}(u,{prefix:a,data:o},i)+n;if(t!==d)return{node:e,messageId:fk,fix:t=>t.replaceText(e,d)}}}},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(fP).map(([e,t])=>[e,fI(t)])),onlyIfContainsSeparator:{type:"boolean",default:!1}}}],messages:{[fk]:"Invalid group length in numeric value."}}});let{isParenthesized:fj,findVariable:fO}=tr,{extendFixRange:fR,removeMemberExpressionProperty:fL,removeMethodCall:fN,renameVariable:fM}=ua,{isLeftHandSide:f$,singular:fz,getScopes:fU,avoidCapture:fq,getVariableIdentifiers:fW}=nb,{isMethodCall:fV}=tO,fZ="error-zero-index",fG="error-shift",fH="error-pop",fK="error-at-zero",fX="error-at-minus-one",fJ="error-destructuring-declaration",fY="error-destructuring-assignment",fQ="error-variable",f0="suggest-nullish-coalescing-operator",f1="suggest-logical-or-operator",f2=e=>fV(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}),f3=(e,t)=>{if("AssignmentExpression"!==e.type||fj(e,t))return!1;let{left:r}=f5(e),[n]=r.elements,{type:u}="AssignmentPattern"===n.type?n.left:n;return"ObjectExpression"===u||"ObjectPattern"===u},f4=(e,t)=>"LogicalExpression"===e.type&&(e.operator===t||"||"===t&&"??"===e.operator||"??"===t&&("||"===e.operator||"&&"===e.operator))||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type,f5=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*f8(e,t,r){let{left:n}=f5(e),[u]=n.elements,a=t.getText("AssignmentPattern"===u.type?u.left:u);yield r.replaceText(n,a),f3(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}let f6=e=>"AssignmentPattern"===f5(e).left.elements[0].type,f9=(e,t,r,n)=>{let{left:u,right:a}=f5(e),[i]=u.elements,o=i.right,s=t.getText(o);return(fj(o,t)||f4(o,n))&&(s=`(${s})`),r.insertTextAfter(a,` ${n} ${s}`)},f7=(e,t)=>{let r,n;let{property:u}=f5(t).right.callee;return f6(t)?r=[{operator:"??",messageId:f0},{operator:"||",messageId:f1}].map(({messageId:r,operator:n})=>({messageId:r,*fix(r){yield r.replaceText(u,"find"),yield f9(t,e,r,n),yield*f8(t,e,r)}})):n=function*(r){yield r.replaceText(u,"find"),yield*f8(t,e,r)},{fix:n,suggest:r}},pe=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,pt=e=>{let{left:t,right:r}=f5(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};var pr=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e,{checkFromLast:r}={checkFromLast:!0,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&f2(e.object)&&!f$(e))return{node:e.object.callee.property,messageId:fZ,fix:r=>[r.replaceText(e.object.callee.property,"find"),fL(r,e,t)]}}),e.on("CallExpression",e=>{if(fV(e,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&f2(e.callee.object))return{node:e.callee.object.callee.property,messageId:fG,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...fN(r,e,t)]}}),e.on("VariableDeclarator",e=>{if("ArrayPattern"===e.id.type&&1===e.id.elements.length&&e.id.elements[0]&&"RestElement"!==e.id.elements[0].type&&f2(e.init))return{node:e.init.callee.property,messageId:fJ,...f7(t,e)}}),e.on("AssignmentExpression",e=>{if("ArrayPattern"===e.left.type&&1===e.left.elements.length&&e.left.elements[0]&&"RestElement"!==e.left.elements[0].type&&f2(e.right))return{node:e.right.callee.property,messageId:fY,...f7(t,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&f2(e.init)&&"VariableDeclaration"===e.parent.type&&e.parent.declarations.includes(e)&&!("ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent)))return;let r=t.getScope(e),n=fO(r,e.id),u=fW(n).filter(t=>t!==e.id);if(0===u.length)return;let a=[],i=[];for(let e of u)if(pe(e))a.push(e.parent);else{if(!pt(e))return;i.push(e.parent)}let o={node:e.init.callee.property,messageId:fQ};return i.some(e=>f6(e))||(o.fix=function*(u){yield u.replaceText(e.init.callee.property,"find");let o=fz(e.id.name);if(o){let e=fq(o,fU(r));yield*fM(n,e,u),yield*fR(u,t.ast.range)}for(let e of a)yield fL(u,e,t);for(let e of i)yield*f8(e,t,u)}),o}),e.on("CallExpression",e=>{if(fV(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"Literal"===e.arguments[0].type&&"0"===e.arguments[0].raw&&f2(e.callee.object))return{node:e.callee.object.callee.property,messageId:fK,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...fN(r,e,t)]}}),r&&(e.on("CallExpression",e=>{if(fV(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&f2(e.callee.object))return{node:e.callee.object.callee.property,messageId:fH,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fN(r,e,t)]}}),e.on("CallExpression",e=>{if(fV(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"UnaryExpression"===e.arguments[0].type&&"-"===e.arguments[0].operator&&e.arguments[0].prefix&&"Literal"===e.arguments[0].argument.type&&"1"===e.arguments[0].argument.raw&&f2(e.callee.object))return{node:e.callee.object.callee.property,messageId:fX,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...fN(r,e,t)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean",default:!0}}}],messages:{[fQ]:"Prefer `.find(…)` over `.filter(…)`.",[fZ]:"Prefer `.find(…)` over `.filter(…)[0]`.",[fK]:"Prefer `.find(…)` over `.filter(…).at(0)`.",[fG]:"Prefer `.find(…)` over `.filter(…).shift()`.",[fH]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[fX]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[fJ]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[fY]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[f0]:"Replace `.filter(…)` with `.find(…) ?? …`.",[f1]:"Replace `.filter(…)` with `.find(…) || …`."}}});let{isNodeMatches:pn}=tC,{isMethodCall:pu}=tO,{removeMethodCall:pa}=ua,pi="prefer-array-flat-map",po=["React.Children","Children"];var ps=/*@__PURE__*/Y({create:e=>({CallExpression(t){if(!(pu(t,{method:"flat",optionalCall:!1,optionalMember:!1})&&(0===t.arguments.length||1===t.arguments.length&&"Literal"===t.arguments[0].type&&"1"===t.arguments[0].raw)&&pu(t.callee.object,{method:"map",optionalCall:!1,optionalMember:!1})))return;let r=t.callee.object;if(pn(r.callee.object,po))return;let{sourceCode:n}=e,u=r.callee.property;return{node:t,loc:{start:u.loc.start,end:t.loc.end},messageId:pi,*fix(e){yield*pa(e,t,n),yield e.replaceText(u,"flatMap")}}}}),meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`.",recommended:!0},fixable:"code",messages:{[pi]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}});let{getParenthesizedText:pd,isArrayPrototypeProperty:pl,isNodeMatches:pc,isNodeMatchesNameOrPath:pf,isParenthesized:pp,isSameIdentifier:pm,needsSemicolon:pg,shouldAddParenthesesToMemberExpressionObject:py}=nb,{fixSpaceAroundKeyword:ph}=ua,{isMethodCall:pb,isCallExpression:pv}=tO,px="prefer-array-flat",pE=e=>"ArrayExpression"===e.type&&0===e.elements.length,pA={testFunction(e){if(!pb(e,{method:"flatMap",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return!1;let[t]=e.arguments;return"ArrowFunctionExpression"===t.type&&!t.async&&1===t.params.length&&pm(t.params[0],t.body)},getArrayNode:e=>e.callee.object,description:"Array#flatMap()"},pD={testFunction(e){if(!pb(e,{method:"reduce",argumentsLength:2,optionalCall:!1,optionalMember:!1}))return!1;let[t,r]=e.arguments;if(!("ArrowFunctionExpression"===t.type&&!t.async&&2===t.params.length&&pE(r)))return!1;let n=t.body,[u,a]=t.params;return pb(n,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&pm(u,n.callee.object)&&pm(a,n.arguments[0])||"ArrayExpression"===n.type&&2===n.elements.length&&n.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&pm(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,description:"Array#reduce()"},pC={testFunction:e=>pb(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&pE(e.callee.object),getArrayNode(e){let t=e.arguments[0];return"SpreadElement"===t.type?t.argument:t},description:"[].concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[0].type},pS={testFunction(e){if(!(pb(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&pl(e.callee.object,{property:"concat"})))return!1;let[t,r]=e.arguments;return pE(t)&&("call"===e.callee.property.name||"SpreadElement"!==r.type)},getArrayNode(e){let t=e.arguments[1];return"SpreadElement"===t.type?t.argument:t},description:"Array.prototype.concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[1].type&&"call"===e.callee.property.name},pw=["_.flatten","lodash.flatten","underscore.flatten"];var pF=/*@__PURE__*/Y({create:function(e){let{functions:t}={functions:[],...e.options[0]},r=[...t,...pw],n=[pA,pD,pC,pS,{testFunction:e=>pv(e,{argumentsLength:1,optional:!1})&&pc(e.callee,r),getArrayNode:e=>e.arguments[0],description:e=>`${r.find(t=>pf(e.callee,t)).trim()}()`}];return{*CallExpression(t){for(let{testFunction:r,description:u,getArrayNode:a,shouldSwitchToArray:i}of n){if(!r(t))continue;let n=a(t),o={description:"string"==typeof u?u:u(t)},s={node:t,messageId:px,data:o},{sourceCode:d}=e;d.getCommentsInside(t).length===d.getCommentsInside(n).length&&(s.fix=function(e,t,r,n){return"function"==typeof n&&(n=n(e)),function*(u){let a=pd(t,r);n?a=`[${a}]`:!pp(t,r)&&py(t,r)&&(a=`(${a})`),a=`${a}.flat()`,pg(r.getTokenBefore(e),r,a)&&(a=`;${a}`),yield u.replaceText(e,a),yield*ph(u,e,r)}}(t,n,d,i)),yield s}}}},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0}}}],messages:{[px]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}});let{checkVueTemplate:p_}=ob,{isBooleanNode:pk,getParenthesizedRange:pT,isNodeValueNotFunction:pP}=nb,{removeMemberExpressionProperty:pI}=ua,{isLiteral:pB,isUndefined:pj,isMethodCall:pO,isMemberExpression:pR}=tO,pL="some",pN="some-suggestion",pM="filter",p$=e=>"BinaryExpression"===e.parent.type&&e.parent.left===e&&(("!="===e.parent.operator||"=="===e.parent.operator||"==="===e.parent.operator||"!=="===e.parent.operator)&&pj(e.parent.right)||("!="===e.parent.operator||"=="===e.parent.operator)&&pB(e.parent.right,null)),pz=e=>"UnaryExpression"===e.type&&"-"===e.operator&&e.argument&&"Literal"===e.argument.type&&1===e.argument.value,pU=e=>pB(e,0);var pq=/*@__PURE__*/Y({create:p_(e=>{e.on("CallExpression",t=>{if(!pO(t,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let r=p$(t);if(!r&&!pk(t))return;let n=t.callee.property;return{node:n,messageId:pL,data:{method:n.name},suggest:[{messageId:pN,*fix(u){if(yield u.replaceText(n,"some"),!r)return;let a=pT(t,e.sourceCode);yield u.replaceTextRange([a[1],t.parent.range[1]],""),"!="!==t.parent.operator&&"!=="!==t.parent.operator&&(yield u.insertTextBeforeRange(a,"!"))}}]}}),e.on("BinaryExpression",t=>{let{left:r,right:n,operator:u}=t;if(!(pO(r,{methods:["findIndex","findLastIndex"],argumentsLength:1,optionalCall:!1,optionalMember:!1})&&(["!==","!=",">","===","=="].includes(u)&&pz(n)||[">=","<"].includes(u)&&pU(n))))return;let a=r.callee.property;return{node:a,messageId:pL,data:{method:a.name},*fix(n){["===","==","<"].includes(u)&&(yield n.insertTextBefore(t,"!")),yield n.replaceText(a,"some");let[i]=e.sourceCode.getTokenAfter(r,e=>"Punctuator"===e.type&&e.value===u).range,[,o]=t.range;yield n.removeRange([i,o])}}}),e.on("BinaryExpression",t=>{if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&pR(t.left,{property:"length",optional:!1})&&pO(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let r=t.left.object,[n]=r.arguments;if(!n||pP(n))return;let u=r.callee.property;return{node:u,messageId:pM,*fix(r){yield r.replaceText(u,"some");let{sourceCode:n}=e,a=t.left;yield pI(r,a,n),yield r.removeRange([pT(a,n)[1],t.range[1]])}}})}),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.",recommended:!0},fixable:"code",messages:{[pL]:"Prefer `.some(…)` over `.{{method}}(…)`.",[pN]:"Replace `.{{method}}(…)` with `.some(…)`.",[pM]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}});let{isMethodCall:pW}=tO,pV=e=>pW(e,{method:"charCodeAt",optionalCall:!1,optionalMember:!1})?"codePointAt":pW(e,{object:"String",method:"fromCharCode",optionalCall:!1,optionalMember:!1})?"fromCodePoint":void 0;var pZ=/*@__PURE__*/Y({create:()=>({CallExpression(e){let t=pV(e);if(!t)return;let r=e.callee.property,n=r.name;return{node:r,messageId:`error/${n}`,suggest:[{messageId:`suggestion/${t}`,fix:e=>e.replaceText(r,t)}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.",recommended:!0},hasSuggestions:!0,messages:{"error/charCodeAt":"Prefer `String#codePointAt()` over `String#charCodeAt()`.","error/fromCharCode":"Prefer `String.fromCodePoint()` over `String.fromCharCode()`.","suggestion/codePointAt":"Use `String#codePointAt()`.","suggestion/fromCodePoint":"Use `String.fromCodePoint()`."}}});let{findVariable:pG}=tr,{functionTypes:pH}=tO,pK="preferDefaultParameters",pX="preferDefaultParametersSuggest",pJ=(e,t)=>e&&t&&"Identifier"===e.type&&"LogicalExpression"===t.type&&("||"===t.operator||"??"===t.operator)&&"Identifier"===t.left.type&&"Literal"===t.right.type,pY=(e,t)=>{if(!t)return!1;if("CallExpression"===t.type)return!0;for(let r of e.visitorKeys[t.type]){let n=t[r];if(Array.isArray(n)){for(let t of n)if(pY(e,t))return!0}else if(pY(e,n))return!0}return!1},pQ=(e,t,r)=>{for(let n of t.body.body){if(n===r)break;if(pY(e,n))return!0}return!1},p0=(e,t,r)=>!!e&&t[0].identifier!==r||!e&&t.length>1,p1=(e,t)=>{let r=e.at(-1);return t&&t===r},p2=(e,t)=>{if("ArrowFunctionExpression"!==t.type||t.params.length>1)return!1;let[r]=t.params,n=e.getTokenBefore(r),u=e.getTokenAfter(r);return!u||!n||"("!==n.value||")"!==u.value},p3=(e,t,r)=>{let{line:n}=r.loc.start,{column:u}=r.loc.end,a=t.getText(r),i=t.lines[n-1],o=i.trim()===a,s=" "===i[u];return o?e.removeRange([t.getIndexFromLoc({line:n,column:0}),t.getIndexFromLoc({line:n+1,column:0})]):s?e.removeRange([r.range[0],r.range[1]+1]):e.remove(r)};var p4=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e,r=[],n=(e,n,u,a)=>{let i=r.at(-1);if(!i||!pJ(n,u))return;let{name:o}=n,{left:{name:s},right:{raw:d}}=u;if(a&&o!==s)return;let l=pG(t.getScope(e),s);if(!l)return;let{references:c}=l,{params:f}=i,p=f.find(e=>"Identifier"===e.type&&e.name===s);if(pQ(t,i,e)||p0(a,c,n)||!p1(f,p))return;let m=p2(t,i)?`(${o} = ${d})`:`${o} = ${d}`;return{node:e,messageId:pK,suggest:[{messageId:pX,fix:r=>[r.replaceText(p,m),p3(r,t,e)]}]}};e.on(pH,e=>{r.push(e)}),e.onExit(pH,()=>{r.pop()}),e.on("AssignmentExpression",e=>{if("ExpressionStatement"===e.parent.type&&e.parent.expression===e)return n(e.parent,e.left,e.right,!0)}),e.on("VariableDeclarator",e=>{if("VariableDeclaration"===e.parent.type&&e.parent.declarations[0]===e)return n(e.parent,e.id,e.init,!1)})},meta:{type:"suggestion",docs:{description:"Prefer default parameters over reassignment.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[pK]:"Prefer default parameters over reassignment.",[pX]:"Replace reassignment with default parameter."}}});let{isParenthesized:p5,getParenthesizedText:p8}=tp,p6=function(e,{operator:t,property:r}){if(!r)throw Error("`property` is required.");return("LogicalExpression"!==e.type||e.operator!==t)&&("AwaitExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"ArrowFunctionExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type)},p9="prefer-logical-operator-over-ternary/error",p7="prefer-logical-operator-over-ternary/suggestion";function me(e,t,r){if(rY(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return me(e.argument,t.argument,r);case"LogicalExpression":return e.operator===t.operator&&me(e.left,t.left,r)&&me(e.right,t.right,r);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&me(e.argument,t.argument,r);case"UpdateExpression":return!1}return r.getText(e)===r.getText(t)}function mt({sourceCode:e,conditionalExpression:t,left:r,right:n}){return{node:t,messageId:p9,suggest:["??","||"].map(u=>({messageId:p7,data:{operator:u},fix:a=>(function({fixer:e,sourceCode:t,conditionalExpression:r,left:n,right:u,operator:a}){let i=[n,u].map((e,r)=>{let n=p5(e,t),u=n?p8(e,t):t.getText(e);return!n&&p6(e,{operator:a,property:0===r?"left":"right"})&&(u=`(${u})`),u}).join(` ${a} `);return r3(t.getTokenBefore(r),t,i)&&(i=`;${i}`),e.replaceText(r,i)})({fixer:a,sourceCode:e,conditionalExpression:t,left:r,right:n,operator:u})}))}}var mr=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e;return{ConditionalExpression(e){let{test:r,consequent:n,alternate:u}=e;return me(r,n,t)?mt({sourceCode:t,conditionalExpression:e,left:r,right:u}):"UnaryExpression"===r.type&&"!"===r.operator&&r.prefix&&me(r.argument,u,t)?mt({sourceCode:t,conditionalExpression:e,left:r.argument,right:n}):void 0}}},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary.",recommended:!0},hasSuggestions:!0,messages:{[p9]:"Prefer using a logical operator over a ternary.",[p7]:"Switch to `{{operator}}` operator."}}});let{isOpeningParenToken:mn,isClosingParenToken:mu}=tr,ma="with-name",mi="without-name";var mo=/*@__PURE__*/Y({create:e=>({CatchClause(t){let r=t.param;if(!r)return;let{sourceCode:n}=e;if(n.getDeclaredVariables(r.parent).some(e=>e.references.length>0))return;let{type:u,name:a,parent:i}=r;return{node:r,messageId:"Identifier"===u?ma:mi,data:{name:a},*fix(e){let t=n.getTokenBefore(r);cz(t,{test:mn,expected:"(",ruleId:"prefer-optional-catch-binding"});let u=n.getTokenAfter(r);cz(u,{test:mu,expected:")",ruleId:"prefer-optional-catch-binding"}),yield e.remove(t),yield e.remove(r),yield e.remove(u);let[,a]=u.range,[o]=i.body.range,s=n.text.slice(a,o),d=s.length-s.trimStart().length;0!==d&&(yield e.removeRange([a,a+d]))}}}}),meta:{type:"suggestion",docs:{description:"Prefer omitting the `catch` binding parameter.",recommended:!0},fixable:"code",messages:{[ma]:"Remove unused catch binding `{{name}}`.",[mi]:"Remove unused catch binding."}}});let{isParenthesized:ms,getStaticValue:md}=tr,{checkVueTemplate:ml}=ob,{isRegexLiteral:mc,isNewExpression:mf,isMethodCall:mp}=tO,{isBooleanNode:mm,shouldAddParenthesesToMemberExpressionObject:mg}=nb,my="regexp-exec",mh="string-match",mb="suggestion",mv=[{type:my,test:e=>mp(e,{method:"exec",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.arguments[0],methodNode:e.callee.property,regexpNode:e.callee.object}),fix:(e,{methodNode:t})=>e.replaceText(t,"test")},{type:mh,test:e=>mp(e,{method:"match",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.callee.object,methodNode:e.callee.property,regexpNode:e.arguments[0]}),*fix(e,{stringNode:t,methodNode:r,regexpNode:n},u){yield e.replaceText(r,"test");let a=u.getText(t);ms(n,u)||"SequenceExpression"!==t.type||(a=`(${a})`),yield e.replaceText(n,a);let i=u.getText(n);!ms(t,u)&&mg(n,u)&&(i=`(${i})`),yield e.replaceText(t,i)}}],mx=e=>mc(e)||mf(e,{name:"RegExp"}),mE=(e,t)=>{if(mc(e))return!e.regex.flags.includes("g");let r=md(e,t);if(!r)return!1;let{value:n}=r;return"[object RegExp]"===Object.prototype.toString.call(n)&&!n.global};var mA=/*@__PURE__*/Y({create:ml(e=>({*CallExpression(t){if(mm(t))for(let{type:r,test:n,getNodes:u,fix:a}of mv){if(!n(t))continue;let i=u(t),{methodNode:o,regexpNode:s}=i;if("Literal"===s.type&&!s.regex)continue;let d={node:r===my?o:t,messageId:r},{sourceCode:l}=e,c=e=>a(e,i,l);mx(s)||mE(s,l.getScope(s))?d.fix=c:d.suggest=[{messageId:mb,fix:c}],yield d}}})),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[my]:"Prefer `.test(…)` over `.exec(…)`.",[mh]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[mb]:"Switch to `RegExp#test(…)`."}}});let{findVariable:mD}=tr,{getVariableIdentifiers:mC}=nb,{isCallOrNewExpression:mS,isMethodCall:mw}=tO,mF="error",m_="suggestion",mk=["concat","copyWithin","fill","filter","flat","flatMap","map","reverse","slice","sort","splice","toReversed","toSorted","toSpliced","with"],mT=e=>{let{type:t,optional:r,callee:n,arguments:u}=e.parent.parent??{};return"CallExpression"===t&&!r&&"MemberExpression"===n.type&&!n.computed&&!n.optional&&n.object===e&&"Identifier"===n.property.type&&"includes"===n.property.name&&1===u.length&&"SpreadElement"!==u[0].type},mP=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),mI=(e,t)=>{let r=t.parent.parent.parent,{parent:n}=e.parent;for(;n&&n!==r;){if(mP.has(n.type))return!0;n=n.parent}return!1};var mB=/*@__PURE__*/Y({create:e=>({Identifier(t){let{parent:r}=t;if(!("VariableDeclarator"===r.type&&r.id===t&&r.init&&"VariableDeclaration"===r.parent.type&&r.parent.declarations.includes(r)&&!("ExportNamedDeclaration"===r.parent.parent.type&&r.parent.parent.declaration===r.parent)&&("ArrayExpression"===r.init.type||mS(r.init,{name:"Array",optional:!1})||mw(r.init,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||mw(r.init,{methods:mk,optionalCall:!1,optionalMember:!1}))))return;let n=mD(e.sourceCode.getScope(t),t);if(!n)return;let u=mC(n).filter(e=>e!==t);if(0===u.length||u.some(e=>!mT(e))||1===u.length&&u.every(e=>!mI(e,t)))return;let a={node:t,messageId:mF,data:{name:t.name}},i=function*(e){for(let r of(yield e.insertTextBefore(t.parent.init,"new Set("),yield e.insertTextAfter(t.parent.init,")"),u))yield e.replaceText(r.parent.property,"has")};return t.typeAnnotation?a.suggest=[{messageId:m_,fix:i}]:a.fix=i,a}}),meta:{type:"suggestion",docs:{description:"Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[mF]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[m_]:"Switch `{{name}}` to `Set`."}}});let{isStringLiteral:mj,isDirective:mO}=tO,{fixSpaceAroundKeyword:mR}=ua,mL="prefer-string-raw";var mN=/*@__PURE__*/Y({create:e=>{e.on("Literal",t=>{if(!mj(t)||mO(t.parent)||("ImportDeclaration"===t.parent.type||"ExportNamedDeclaration"===t.parent.type||"ExportAllDeclaration"===t.parent.type)&&t.parent.source===t||"Property"===t.parent.type&&!t.parent.computed&&t.parent.key===t||"JSXAttribute"===t.parent.type&&t.parent.value===t||"TSEnumMember"===t.parent.type&&(t.parent.initializer===t||t.parent.id===t))return;let{raw:r}=t;if("\\"===r.at(-2)||!r.includes("\\\\")||r.includes("`")||r.includes("${")||t.loc.start.line!==t.loc.end.line)return;let n=function(e){let t=e.charAt(0);e=e.slice(1,-1);let r="";for(let n=0;n<e.length;n++){let u=e[n];if("\\"===u){let u=e[n+1];if("\\"===u||u===t){r+=u,n++;continue}}r+=u}return r}(r);if(n===t.value)return{node:t,messageId:mL,*fix(r){yield r.replaceText(t,`String.raw\`${n}\``),yield*mR(r,t,e.sourceCode)}}})},meta:{type:"suggestion",docs:{description:"Prefer using the `String.raw` tag to avoid escaping `\\`.",recommended:!0},fixable:"code",messages:{[mL]:"`String.raw` should be used to avoid escaping `\\`."}}});let{hasSideEffect:mM}=tr,m$=function(e,t){let{line:r,column:n}=t.getLocFromIndex(e.range[0]);return t.getLines()[r-1].slice(0,n).match(/\s*$/)[0]},mz="prefer-switch",mU=(e,t)=>e===t||rY(e,t),mq=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),mW=e=>{for(;e.parent;e=e.parent)if(mq.has(e.type))return e},mV=(e,t)=>e.range[0]>=t.range[0]&&e.range[1]<=t.range[1];var mZ=/*@__PURE__*/Y({create:e=>{let t={minimumCases:3,emptyDefaultCase:"no-default-comment",insertBreakInDefaultCase:!1,...e.options[0]},{sourceCode:r}=e,n=new Set,u=[],a=new Set;return{IfStatement(e){n.add(e)},BreakStatement(e){e.label||u.push(e)},*"Program:exit"(){for(let e of n){if(a.has(e))continue;let{discriminant:n,ifStatements:i}=function(e){let t;let r=[];for(;e&&"IfStatement"===e.type;e=e.alternate){let{test:n}=e,u=function(e){let t=[e],r=[];for(;t.length>0;){if("LogicalExpression"===(e=t.pop()).type&&"||"===e.operator){t.push(e.right,e.left);continue}if("BinaryExpression"!==e.type||"==="!==e.operator)return[];r.push(e)}return r}(n);if(0===u.length)break;if(!t){let[{left:e,right:r}]=u;t=[e,r]}let a=function(e,t){for(let{left:r,right:n}of e)if(0===(t=t.filter(e=>mU(e,r)||mU(e,n))).length)break;return t}(u,t);if(0===a.length)break;t=a,r.push({statement:e,compareExpressions:u})}return{ifStatements:r,discriminant:t&&t[0]}}(e);if(!n||i.length<t.minimumCases)continue;for(let{statement:e}of i)a.add(e);let o={loc:{start:e.loc.start,end:e.consequent.loc.start},messageId:mz};mM(n,r)||i.some(({statement:e})=>(function(e,t){for(let r of e){if(!mV(r,t))continue;let e=mW(r);if(!e||mV(t,e))return!0}return!1})(u,e))||(o.fix=function({discriminant:e,ifStatements:t},r,n){let u=r.getText(e);return function*(a){let i=t[0].statement,o=m$(i,r);yield a.insertTextBefore(i,`switch (${u}) {`);let s=t.at(-1).statement;if(s.alternate){let{alternate:e}=s;yield a.insertTextBefore(e,`
1
+ import*as e from"node:path";import*as t from"node:fs";import*as r from"module";import{createRule as n}from"@eslint-sukka/shared";import{AST_NODE_TYPES as u,ASTUtils as a}from"@typescript-eslint/utils";function i(e,t){if("string"==typeof t){let e=t;t=t=>t.type===e}for(;e;){if(t(e))return e;e=e.parent}}function o(e){return e?.type==="Identifier"||e?.type==="PrivateIdentifier"}function s(e){return e?.type==="MemberExpression"}function d(e){return e?.type==="AwaitExpression"}function l(e,t){return!!o(e)&&("function"==typeof t?t(e.name):Array.isArray(t)?t.includes(e.name):e.name===t)}function c(e,t){return e?.type==="Literal"&&(Array.isArray(t)?t.includes(e.value):"string"==typeof e.value&&t instanceof RegExp?t.test(e.value):e.value===t)}function f(e){return!!e&&["ArrowFunctionExpression","FunctionDeclaration","FunctionExpression"].includes(e.type)}function p(e,t){return e?.type==="Identifier"&&t?.type===e.type&&e.name===t.name}function m({name:e,meta:t,create:r,resolveOptions:n}){return t?.docs&&(t.docs.url??=new URL(e,"https://dimensiondev.github.io/eslint-plugin/src/rules/").toString()),Object.freeze({name:e,meta:t,create(e){let t=n?.(...e.options)??e.options[0];return Object.fromEntries(Object.entries(r(e,t)).filter(e=>e[1]))}})}var g,y,h,b,v,x,E,A=m({name:"array/no-unneeded-flat-map",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow `Array#flatMap((x) => x)` when simpler alternatives exist",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple `Array#flatMap()` in array"}},create:e=>({CallExpression(t){var r;if("MemberExpression"!==t.callee.type||!l(t.callee.property,"flatMap")||!(f(r=t.arguments[0])&&1===r.params.length&&"Identifier"===r.params[0].type&&r.body&&(p(r.params[0],r.body)||"BlockStatement"===r.body.type&&1===r.body.body.length&&"ReturnStatement"===r.body.body[0].type&&p(r.params[0],r.body.body[0].argument))))return;let{property:n}=t.callee;e.report({node:t,messageId:"invalid",*fix(e){yield e.replaceText(n,"flat"),yield*t.arguments.map(t=>e.remove(t))}})}})});let D=new Set(["href","pathname","search","hash","origin"]);var C=m({name:"browser/prefer-location-assign",meta:{type:"suggestion",fixable:"code",docs:{description:"Prefer `location.assign(...)` over `location.*`",recommended:"stylistic"},schema:[],messages:{instead:"Use `location.assign(...)` instead of `location.{{name}}`"}},create:e=>({AssignmentExpression(t){let r=function(e,t){if(l(e,t))return e;for(;s(e);){if(l(e.property,t))return e;e=e.object}}(t.left,"location");if(!r)return;let n=S(r.parent);e.report({node:t,messageId:"instead",data:{name:n},fix:function(e,t,r){let n=S(t.parent);if(D.has(n??"href"))return n=>n.replaceText(r,`${e.getText(t)}.assign(${e.getText(r.right)})`)}(e.sourceCode,r,t)})}})});function S(e){if(s(e)&&o(e.property))return e.property.name}var w=m({name:"jsx/no-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow use template-literal in JSX",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow use template-literal in JSX"}},create:e=>({JSXExpressionContainer(t){if("TemplateLiteral"!==t.expression.type||t.parent?.type==="JSXAttribute")return;let{expression:r}=t;e.report({node:t,messageId:"invalid",fix(n){let u=[...r.expressions,...r.quasis];u.sort((e,t)=>e.range[0]-t.range[0]);let a=u.map(t=>"TemplateElement"===t.type?t.value.cooked:"{"+e.sourceCode.getText(t)+"}");return n.replaceText(t,a.join(""))}})}})}),F=m({name:"jsx/no-unneeded-nested",meta:{type:"suggestion",fixable:"code",docs:{description:"Reduce unneeded JSXFragment nested",recommended:"stylistic"},schema:[],messages:{invalid:"Reduce unneeded JSXFragment nested"}},create(e){let t=e.sourceCode;return{JSXFragment(r){if(1!==r.children.length)return;let n=r.children[0];e.report({node:r,messageId:"invalid",*fix(e){"JSXExpressionContainer"===n.type?"JSXEmptyExpression"!==n.expression.type&&(yield e.replaceText(r,t.getText(n.expression))):yield e.replaceText(r,t.getText(n))}})}}}});let _=/^toLocale(?<name>Upper|Lower)Case$/g;var k=m({name:"string/no-locale-case",meta:{type:"problem",fixable:"code",docs:{description:"Disallow use `String#toLocale{Upper,Lower}Case()`",recommended:"recommended"},schema:[],messages:{instead:"Use `.to{{name}}Case(...)` instead of `.toLocale{{name}}Case()`"}},create:e=>({CallExpression(t){if(t.arguments.length>0||!s(t.callee)||!o(t.callee.property))return;let{property:r}=t.callee,n=_.exec(r.name);n&&e.report({node:t,data:{name:n.groups?.name},messageId:"instead",fix:e=>e.replaceText(r,r.name.replaceAll("Locale",""))})}})});function T(e){return JSON.stringify(e)}var P=m({name:"string/no-simple-template-literal",meta:{type:"suggestion",fixable:"code",docs:{description:"Disallow simple template-literal",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow simple template-literal"}},create:e=>({TemplateLiteral(t){var r;let n=(r=e.sourceCode,t.parent?.type!=="TaggedTemplateExpression"&&1===t.quasis.length&&!function({loc:e}){return!!e&&e.start.line!==e.end.line}(t.quasis[0])&&0===t.expressions.length?e=>{let n=T(t.quasis[0].value.cooked),u=i(t,e=>"Property"===e.type&&e.key===t);return u?e.replaceText(u,`${n}: ${r.getText(u.value)}`):e.replaceText(t,n)}:2===t.quasis.length&&t.quasis.every(({value:e})=>""===e.cooked)&&1===t.expressions.length?e=>e.replaceText(t,r.getText(t.expressions[0])):void 0);n&&e.report({node:t,messageId:"invalid",fix:n})}})});let I=["BigInt","Boolean","Function","Number","Object","String","Symbol","Array"];var B=m({name:"type/no-instanceof-wrapper",meta:{type:"problem",fixable:"code",docs:{description:"Disallow `instanceof` for wrapper objects",recommended:"recommended"},schema:[],messages:{primitive:'Unexpected `instanceof` operator. Use `typeof x === "{{typeName}}"` instead',array:"Unexpected `instanceof` operator. Use `Array.isArray` instead"},replacedBy:["unicorn/no-instanceof-array"]},create(e){let t=e.sourceCode,r=t.scopeManager?.scopes[0]??null,n=I.flatMap(e=>{let t=r?.set.get(e);return!t||t.defs.length>0?[]:t.references??[]});return{Program(){for(let{identifier:r}of n){let n=r.parent;if(n?.type==="BinaryExpression"&&"instanceof"===n.operator&&n.right===r){if("Array"===r.name)e.report({node:n,messageId:"array",fix:e=>e.replaceText(n,`Array.isArray(${t.getText(n.left)})`)});else{let u=r.name.toLowerCase();e.report({node:n,messageId:"primitive",data:{typeName:u},fix:e=>e.replaceText(n,`typeof ${t.getText(n.left)} === ${T(u)}`)})}}}}}}});let j=/\P{ASCII}/u;function O(e,t){return{Program(r){for(let n of r.tokens??[]){let r=function(e){switch(e.type){case"String":case"Template":return e.value.slice(1,-1);case"Identifier":if(e.value.startsWith("#"))return e.value.slice(1);return e.value;case"RegularExpression":return e.regex.pattern;case"JSXText":case"JSXIdentifier":return e.value}return!1}(n);!1!==r&&e.test(r)&&t(n,"code")}for(let n of r.comments??[])e.test(n.value)&&t(n,"comment")}}}function R(e,t){switch(e.type){case"String":case"Template":return r=>{let n=e.value.slice(0,1),u=e.value.slice(-1),a=L(e.value.slice(1,-1),t);return r.replaceText(e,`${n}${a}${u}`)};case"JSXText":return r=>{let n=e.value.replace(t,e=>`&#x${N(e.codePointAt(0))};`);return r.replaceText(e,n)};case"RegularExpression":return r=>{let n=new Set(e.regex.flags);n.add("u");let u=new RegExp(L(e.regex.pattern,t),[...n].join(""));return r.replaceText(e,u.toString())}}}function L(e,t){return e.replace(t,e=>{let t=e.codePointAt(0);return t>65535?`\\u{${N(t)}}`:`\\u${N(t)}`})}function N(e){return e.toString(16).padStart(4,"0").toUpperCase()}m({name:"unicode/specific-set",meta:{type:"problem",fixable:"code",docs:{description:"Limit the range of literal characters"},schema:[{type:"object",properties:{pattern:{type:"string"},flags:{type:"string"},only:{type:"string",enum:["code","comment"]}},additionalProperties:!1}],messages:{illegal:"Illegal character detected"}},resolveOptions:e=>({pattern:e?.pattern?new RegExp(e.pattern,e.flags??"u"):j,only:e?.only}),create:(e,{pattern:t,only:r})=>O(t,(n,u)=>{if(r&&r!==u)return;let a=R(n,RegExp(t.source,"gu"));e.report({node:n,messageId:"illegal",fix:a})})});let M=/[\u061C\u202A-\u202E\u2066-\u2069]/;var $=m({name:"unicode/no-bidi",meta:{type:"problem",fixable:"code",docs:{description:"Detect and stop Trojan Source attacks",recommended:"recommended"},schema:[],messages:{detected:"Detected potential trojan source attack with unicode bidi introduced in this {{kind}}: {{text}}."}},create:e=>O(M,(t,r)=>{let n=RegExp(M.source,"gu"),u={kind:r,text:L(t.value,n)},a=R(t,n);e.report({node:t,data:u,messageId:"detected",fix:a})})});let z=function(){let e=[/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u].map(e=>"string"==typeof e?e:e.source).join("");return RegExp(`[${e}]`,"u")}(/\u00AD\u034F\u061C\u17B4\u17B5\uFEFF\uFFFC/,/\u180B-\u180E/,/\u200B-\u200F/,/\u202A-\u202E/,/\u2060-\u206F/,/\uFE00-\uFE0F/,/\uFFF0-\uFFF8/,/\u{1D173}-\u{1D17A}/u,/\u{E0000}-\u{E007F}/u,/\u{E0100}-\u{E01EF}/u);var U=m({name:"unicode/no-invisible",meta:{type:"problem",fixable:"code",docs:{description:"Disallow invisible characters",recommended:"recommended"},schema:[],messages:{illegal:"Illegal character detected"}},create:e=>O(z,t=>{let r=R(t,RegExp(z.source,"gu"));e.report({node:t,messageId:"illegal",fix:r})})}),q=m({name:"no-redundant-variable",meta:{type:"problem",fixable:"code",docs:{description:"Disallow redundant variable",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Redundant Variable"}},create:e=>({BlockStatement({body:t}){var r;let n=t.find(W);if(!n)return;let u=t[t.indexOf(n)-1];u&&"VariableDeclaration"===u.type&&1===u.declarations.length&&u.declarations.some(({init:e,id:t})=>null!==e&&p(n.argument,t))&&e.report({node:n,messageId:"invalid",fix:(r=e.sourceCode,e=>{let{init:t,id:a}=u.declarations[0];if(!(t&&a&&n.argument))return null;let o=!d(t)||i(t,"TryStatement")?t:t.argument,s=(e=>{if(!a.typeAnnotation)return e;let n=r.getText(a.typeAnnotation.typeAnnotation);return`(${e}) as ${d(t)?`Promise<${n}>`:n}`})(r.getText(o));return[e.remove(u),e.replaceText(n.argument,s)]})})}})});function W(e){return"ReturnStatement"===e.type&&o(e.argument)}var V=m({name:"no-single-return",meta:{type:"suggestion",docs:{description:"Disallow single-return",recommended:"stylistic"},schema:[],messages:{invalid:"Disallow Single Return"}},create:e=>({BlockStatement({parent:t,body:r}){if(!f(t))return;let n=function(e,t){let r=t.find(Z);if(!r)return;let n=t.find(e=>"VariableDeclaration"===e.type&&"const"!==e.kind&&e.declarations.some(({id:e})=>p(r.argument,e)));if(n)return e.sourceCode.getDeclaredVariables(n).find(({references:e})=>e.every(e=>e.isWriteOnly()||e.identifier.parent===r))}(e,r);for(let{identifier:t}of n?.references??[])t.parent&&e.report({node:t.parent,messageId:"invalid"})}})});function Z(e){return"ReturnStatement"===e.type&&o(e.argument)}var G=m({name:"prefer-early-return",meta:{type:"problem",fixable:"code",docs:{description:"Prefer early returns over full-body conditional wrapping in function declarations",recommended:"stylistic"},schema:[{type:"object",properties:{maximumStatements:{type:"integer",minimum:0}},additionalProperties:!1}],messages:{prefer:"Prefer an early return to a conditionally-wrapped function body"}},resolveOptions:e=>e?.maximumStatements??1,create:(e,t)=>({BlockStatement:function({body:r,parent:n}){var u;if(!f(n)||!(1===r.length&&function(e,t){if(!("IfStatement"===e.type&&null===e.alternate))return!1;let{consequent:r}=e;return"ExpressionStatement"===r.type&&0===t||"BlockStatement"===r.type&&r.body.length>t}(r[0],t)))return;let a=(u=r[0],function*(t){let r;if("IfStatement"!==u.type)return;let{test:n,consequent:a}=u;yield t.insertTextBefore(n,"!("),yield t.insertTextAfter(n,")"),yield t.replaceText(a,"return;");let i=(r=e.sourceCode.getText(a),"BlockStatement"===a.type?r.slice(1,-1):r);yield t.insertTextAfter(u,i)});e.report({node:r[0],messageId:"prefer",fix:a})}})}),H=m({name:"prefer-fetch",meta:{type:"problem",docs:{description:"Enforce fetch",recommended:"stylistic"},schema:[],messages:{callee:"Should use 'fetch' instead"}},create:e=>({ImportDeclaration(t){let r=t.source.value;("axios"===r||"request"===r)&&e.report({node:t,messageId:"callee"})},NewExpression(t){((function({callee:e}){return l(e,"XMLHttpRequest")})(t)||l(t.callee,"ActiveXObject")&&c(t.arguments[0],/xmlhttp/i))&&e.report({node:t,messageId:"callee"})},CallExpression(t){((function({callee:e}){let t="$http";return l(e,t)||s(e)&&l(e.object,t)})(t)||function({callee:e,parent:t}){let r=["$","jQuery"];return l(e,r)&&s(t)&&l(t.property,"load")||s(e)&&l(e.object,r)&&l(e.property,["ajax","get","post","getJSON","getScript"])}(t)||K(t,"axios")||K(t,"request"))&&e.report({node:t,messageId:"callee"})}})});function K(e,t){return l(e.callee,"require")&&c(e.arguments[0],t)}let X=new Set(["setTimeout","setInterval","requestAnimationFrame","requestIdleCallback"]);var J=m({name:"prefer-timer-id",meta:{type:"problem",docs:{description:"Enforce best practice with timer function",recommended:"recommended"},schema:[],messages:{assign:"Timer id should assign to an identifier or member for cleaning up, `const timer = {{name}}(...);`",fix:"Assign timer id to a variable"},hasSuggestions:!0},create:e=>({CallExpression(t){"Identifier"===t.callee.type&&(!X.has(t.callee.name)||function(e){if(!l(e.callee,"setTimeout"))return!1;let t=e.arguments[1];return!t||c(t,0)}(t)||t.parent?.type==="AssignmentExpression"&&t.parent.right===t||t.parent?.type==="VariableDeclarator"&&t.parent.init===t||e.report({node:t,messageId:"assign",data:{name:t.callee.name},suggest:[{messageId:"fix",fix:e=>e.insertTextBefore(t,"const timer = ")}]}))}})}),Y="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function Q(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function ee(e){if(e.__esModule)return e;var t=e.default;if("function"==typeof t){var r=function e(){return this instanceof e?Reflect.construct(t,arguments,this.constructor):t.apply(this,arguments)};r.prototype=t.prototype}else r={};return Object.defineProperty(r,"__esModule",{value:!0}),Object.keys(e).forEach(function(t){var n=Object.getOwnPropertyDescriptor(e,t);Object.defineProperty(r,t,n.get?n:{enumerable:!0,get:function(){return e[t]}})}),r}var et=/*@__PURE__*/ee(e),er=function(e){let t=et.basename(e,".js");return`https://github.com/sindresorhus/eslint-plugin-unicorn/blob/v55.0.0/docs/rules/${t}.md`},en=/*@__PURE__*/Q(er);let eu={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(eu))Object.freeze(eu[e]);Object.freeze(eu);let ea=new Set(["parent","leadingComments","trailingComments"]);function ei(e){return!ea.has(e)&&"_"!==e[0]}function eo(e,t){let r=t.range[0],n=e,u=!1;do for(let e of(u=!1,n.childScopes)){let t=e.block.range;if(t[0]<=r&&r<t[1]){n=e,u=!0;break}}while(u);return n}function es(e,t){let r="",n=e;for("string"==typeof t?r=t:(r=t.name,n=eo(n,t));null!=n;){let e=n.set.get(r);if(null!=e)return e;n=n.upper}return null}function ed(e){return!this(e)}function el(e){return ed.bind(e)}function ec(e,t){return"Punctuator"===e.type&&e.value===t}function ef(e){return ec(e,"=>")}function ep(e){return ec(e,",")}function em(e){return ec(e,";")}function eg(e){return ec(e,":")}function ey(e){return ec(e,"(")}function eh(e){return ec(e,")")}function eb(e){return ec(e,"[")}function ev(e){return ec(e,"]")}function ex(e){return ec(e,"{")}function eE(e){return ec(e,"}")}function eA(e){return["Block","Line","Shebang"].includes(e.type)}let eD=el(ef),eC=el(ep),eS=el(em),ew=el(eg),eF=el(ey),e_=el(eh),ek=el(eb),eT=el(ev),eP=el(ex),eI=el(eE),eB=el(eA);function ej(e,t){let r=e.parent,n=null,u=null;if("ArrowFunctionExpression"===e.type){let r=t.getTokenBefore(e.body,ef);n=r.loc.start,u=r.loc.end}else n="Property"===r.type||"MethodDefinition"===r.type||"PropertyDefinition"===r.type?r.loc.start:e.loc.start,u=(e.id?t.getTokenAfter(e.id,ey):t.getFirstToken(e,ey)).loc.start;return{start:{...n},end:{...u}}}let eO="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:"undefined"!=typeof window?window:"undefined"!=typeof global?global:{},eR=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"])),eL=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)),eN=new Set([Object.freeze,Object.preventExtensions,Object.seal]),eM=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function e$(e,t){let r=[];for(let n=0;n<e.length;++n){let u=e[n];if(null==u)r.length=n+1;else if("SpreadElement"===u.type){let e=eU(u.argument,t);if(null==e)return null;r.push(...e.value)}else{let e=eU(u,t);if(null==e)return null;r.push(e.value)}}return r}let ez=Object.freeze({ArrayExpression(e,t){let r=e$(e.elements,t);return null!=r?{value:r}:null},AssignmentExpression:(e,t)=>"="===e.operator?eU(e.right,t):null,BinaryExpression(e,t){if("in"===e.operator||"instanceof"===e.operator)return null;let r=eU(e.left,t),n=eU(e.right,t);if(null!=r&&null!=n)switch(e.operator){case"==":return{value:r.value==n.value};case"!=":return{value:r.value!=n.value};case"===":return{value:r.value===n.value};case"!==":return{value:r.value!==n.value};case"<":return{value:r.value<n.value};case"<=":return{value:r.value<=n.value};case">":return{value:r.value>n.value};case">=":return{value:r.value>=n.value};case"<<":return{value:r.value<<n.value};case">>":return{value:r.value>>n.value};case">>>":return{value:r.value>>>n.value};case"+":return{value:r.value+n.value};case"-":return{value:r.value-n.value};case"*":return{value:r.value*n.value};case"/":return{value:r.value/n.value};case"%":return{value:r.value%n.value};case"**":return{value:r.value**n.value};case"|":return{value:r.value|n.value};case"^":return{value:r.value^n.value};case"&":return{value:r.value&n.value}}return null},CallExpression(e,t){let r=e.callee,n=e$(e.arguments,t);if(null!=n){if("MemberExpression"===r.type){if("PrivateIdentifier"===r.property.type)return null;let u=eU(r.object,t);if(null!=u){if(null==u.value&&(u.optional||e.optional))return{value:void 0,optional:!0};let a=eq(r,t);if(null!=a){let e=u.value,t=a.value;if(eL.has(e[t]))return{value:e[t](...n)};if(eN.has(e[t]))return{value:n[0]}}}}else{let u=eU(r,t);if(null!=u){if(null==u.value&&e.optional)return{value:void 0,optional:!0};let t=u.value;if(eL.has(t))return{value:t(...n)};if(eN.has(t))return{value:n[0]}}}}return null},ConditionalExpression(e,t){let r=eU(e.test,t);return null!=r?r.value?eU(e.consequent,t):eU(e.alternate,t):null},ExpressionStatement:(e,t)=>eU(e.expression,t),Identifier(e,t){if(null!=t){let r=es(t,e);if(null!=r&&0===r.defs.length&&eR.has(r.name)&&r.name in eO)return{value:eO[r.name]};if(null!=r&&1===r.defs.length){let e=r.defs[0];if(e.parent&&"Variable"===e.type&&("const"===e.parent.kind||function(e){let t=e.references,r=t.filter(e=>e.init).length,n=t.filter(e=>e.isReadOnly()).length;return 1===r&&n+r===t.length}(r))&&"Identifier"===e.node.id.type)return eU(e.node.init,t)}}return null},Literal:e=>(null!=e.regex||null!=e.bigint)&&null==e.value?null:{value:e.value},LogicalExpression(e,t){let r=eU(e.left,t);if(null!=r){if("||"===e.operator&&!0==!!r.value||"&&"===e.operator&&!1==!!r.value||"??"===e.operator&&null!=r.value)return r;let n=eU(e.right,t);if(null!=n)return n}return null},MemberExpression(e,t){if("PrivateIdentifier"===e.property.type)return null;let r=eU(e.object,t);if(null!=r){if(null==r.value&&(r.optional||e.optional))return{value:void 0,optional:!0};let n=eq(e,t);if(null!=n){if(!function(e,t){let r=function(e,t){let r=e;for(;("object"==typeof r||"function"==typeof r)&&null!==r;){let e=Object.getOwnPropertyDescriptor(r,t);if(e)return e;r=Object.getPrototypeOf(r)}return null}(e,t);return null!=r&&null!=r.get}(r.value,n.value))return{value:r.value[n.value]};for(let[e,t]of eM)if(r.value instanceof e&&t.has(n.value))return{value:r.value[n.value]}}}return null},ChainExpression(e,t){let r=eU(e.expression,t);return null!=r?{value:r.value}:null},NewExpression(e,t){let r=eU(e.callee,t),n=e$(e.arguments,t);if(null!=r&&null!=n){let e=r.value;if(eL.has(e))return{value:new e(...n)}}return null},ObjectExpression(e,t){let r={};for(let n of e.properties)if("Property"===n.type){if("init"!==n.kind)return null;let e=eq(n,t),u=eU(n.value,t);if(null==e||null==u)return null;r[e.value]=u.value}else{if("SpreadElement"!==n.type&&"ExperimentalSpreadProperty"!==n.type)return null;let e=eU(n.argument,t);if(null==e)return null;Object.assign(r,e.value)}return{value:r}},SequenceExpression:(e,t)=>eU(e.expressions[e.expressions.length-1],t),TaggedTemplateExpression(e,t){let r=eU(e.tag,t),n=e$(e.quasi.expressions,t);if(null!=r&&null!=n){let t=r.value,u=e.quasi.quasis.map(e=>e.value.cooked);if(u.raw=e.quasi.quasis.map(e=>e.value.raw),t===String.raw)return{value:t(u,...n)}}return null},TemplateLiteral(e,t){let r=e$(e.expressions,t);if(null!=r){let t=e.quasis[0].value.cooked;for(let n=0;n<r.length;++n)t+=r[n]+e.quasis[n+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 r=eU(e.argument,t);if(null!=r)switch(e.operator){case"-":return{value:-r.value};case"+":return{value:+r.value};case"!":return{value:!r.value};case"~":return{value:~r.value};case"typeof":return{value:typeof r.value}}return null}});function eU(e,t){return null!=e&&Object.hasOwnProperty.call(ez,e.type)?ez[e.type](e,t):null}function eq(e,t){let r="Property"===e.type?e.key:e.property;return e.computed?eU(r,t):"Identifier"===r.type?{value:r.name}:"Literal"===r.type?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function eW(e,t=null){try{return eU(e,t)}catch(e){return null}}function eV(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 r=eW(e,t);return r&&String(r.value)}function eZ(e,t){switch(e.type){case"MemberExpression":if(e.computed)return eV(e.property,t);if("PrivateIdentifier"===e.property.type)break;return e.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":if(e.computed)return eV(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 eG(e,t){let r=e.parent,n=[],u="Property"===r.type&&r.value===e,a="MethodDefinition"===r.type&&r.value===e,i="PropertyDefinition"===r.type&&r.value===e;if((a||i)&&(r.static&&n.push("static"),"PrivateIdentifier"===r.key.type&&n.push("private")),e.async&&n.push("async"),e.generator&&n.push("generator"),u||a){if("constructor"===r.kind)return"constructor";"get"===r.kind?n.push("getter"):"set"===r.kind?n.push("setter"):n.push("method")}else i?n.push("method"):("ArrowFunctionExpression"===e.type&&n.push("arrow"),n.push("function"));if(u||a||i){if("PrivateIdentifier"===r.key.type)n.push(`#${r.key.name}`);else{let e=eZ(r);if(e)n.push(`'${e}'`);else if(t){let e=t.getText(r.key);e.includes("\n")||n.push(`[${e}]`)}}}else e.id?n.push(`'${e.id.name}'`):"VariableDeclarator"===r.type&&r.id&&"Identifier"===r.id.type?n.push(`'${r.id.name}'`):("AssignmentExpression"===r.type||"AssignmentPattern"===r.type)&&r.left&&"Identifier"===r.left.type?n.push(`'${r.left.name}'`):"ExportDefaultDeclaration"===r.type&&r.declaration===e&&n.push("'default'");return n.join(" ")}let eH=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),eK=Object.freeze(new Set(["-","+","!","~"]));function eX(e){return null!==e&&"object"==typeof e&&"string"==typeof e.type}let eJ=Object.freeze(Object.assign(Object.create(null),{$visit(e,t,r){let{type:n}=e;return"function"==typeof this[n]?this[n](e,t,r):this.$visitChildren(e,t,r)},$visitChildren(e,t,r){let{type:n}=e;for(let u of r[n]||Object.keys(e).filter(ei)){let n=e[u];if(Array.isArray(n)){for(let e of n)if(eX(e)&&this.$visit(e,t,r))return!0}else if(eX(n)&&this.$visit(n,t,r))return!0}return!1},ArrowFunctionExpression:()=>!1,AssignmentExpression:()=>!0,AwaitExpression:()=>!0,BinaryExpression(e,t,r){return!!(t.considerImplicitTypeConversion&&eH.has(e.operator))&&("Literal"!==e.left.type||"Literal"!==e.right.type)||this.$visitChildren(e,t,r)},CallExpression:()=>!0,FunctionExpression:()=>!1,ImportExpression:()=>!0,MemberExpression(e,t,r){return!!t.considerGetters||!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.property.type||this.$visitChildren(e,t,r)},MethodDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},NewExpression:()=>!0,Property(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},PropertyDefinition(e,t,r){return!!t.considerImplicitTypeConversion&&!!e.computed&&"Literal"!==e.key.type||this.$visitChildren(e,t,r)},UnaryExpression(e,t,r){return!!("delete"===e.operator||t.considerImplicitTypeConversion&&eK.has(e.operator)&&"Literal"!==e.argument.type)||this.$visitChildren(e,t,r)},UpdateExpression:()=>!0,YieldExpression:()=>!0}));function eY(e,t,{considerGetters:r=!1,considerImplicitTypeConversion:n=!1}={}){return eJ.$visit(e,{considerGetters:r,considerImplicitTypeConversion:n},t.visitorKeys||eu)}function eQ(e,t,r){let n,u,a,i,o;if("number"==typeof e){if(n=0|e,u=t,a=r,!(n>=1))throw TypeError("'times' should be a positive integer.")}else n=1,u=e,a=t;if(null==u||null==u.parent||"CatchClause"===u.parent.type&&u.parent.param===u)return!1;i=o=u;do i=a.getTokenBefore(i),o=a.getTokenAfter(o);while(null!=i&&null!=o&&ey(i)&&eh(o)&&i!==function(e,t){let r=e.parent;switch(r.type){case"CallExpression":case"NewExpression":if(1===r.arguments.length&&r.arguments[0]===e)return t.getTokenAfter(r.callee,ey);return null;case"DoWhileStatement":if(r.test===e)return t.getTokenAfter(r.body,ey);return null;case"IfStatement":case"WhileStatement":if(r.test===e)return t.getFirstToken(r,1);return null;case"ImportExpression":if(r.source===e)return t.getFirstToken(r,1);return null;case"SwitchStatement":if(r.discriminant===e)return t.getFirstToken(r,1);return null;case"WithStatement":if(r.object===e)return t.getFirstToken(r,1);return null;default:return null}}(u,a)&&--n>0);return 0===n}let e0=/\$(?:[$&`']|[1-9][0-9]?)/gu,e1=new WeakMap;class e2{constructor(e,{escaped:t=!1}={}){if(!(e instanceof RegExp))throw TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw Error("'pattern' should contains 'g' flag.");e1.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!t})}*execAll(e){let{pattern:t,escaped:r}=e1.get(this),n=null,u=0;for(t.lastIndex=0;null!=(n=t.exec(e));)(r||!function(e,t){let r=!1;for(let n=t-1;n>=0&&92===e.charCodeAt(n);--n)r=!r;return r}(e,n.index))&&(u=t.lastIndex,yield n,t.lastIndex=u)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,t){return"function"==typeof t?function(e,t,r){let n=[],u=0;for(let a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(String(r(...a,a.index,a.input))),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),t):function(e,t,r){let n=[],u=0,a=null;function i(e){switch(e){case"$$":return"$";case"$&":return a[0];case"$`":return t.slice(0,a.index);case"$'":return t.slice(a.index+a[0].length);default:{let t=e.slice(1);if(t in a)return a[t];return e}}}for(a of e.execAll(t))n.push(t.slice(u,a.index)),n.push(r.replace(e0,i)),u=a.index+a[0].length;return n.push(t.slice(u)),n.join("")}(this,String(e),String(t))}}let e3=/^(?:Import|Export(?:All|Default|Named))Declaration$/u,e4=Function.call.bind(Object.hasOwnProperty),e5=Symbol("read"),e8=Symbol("call"),e6=Symbol("construct"),e9=Symbol("esm"),e7={require:{[e8]:!0}};function te(e){return null==e||0!==e.defs.length||e.references.some(e=>e.isWrite())}let tt=class{constructor(e,{mode:t="strict",globalObjectNames:r=["global","globalThis","self","window"]}={}){this.variableStack=[],this.globalScope=e,this.mode=t,this.globalObjectNames=r.slice(0)}*iterateGlobalReferences(e){for(let t of Object.keys(e)){let r=e[t],n=[t],u=this.globalScope.set.get(t);te(u)||(yield*this._iterateVariableReferences(u,n,r,!0))}for(let t of this.globalObjectNames){let r=[],n=this.globalScope.set.get(t);te(n)||(yield*this._iterateVariableReferences(n,r,e,!1))}}*iterateCjsReferences(e){for(let{node:t}of this.iterateGlobalReferences(e7)){let r=eV(t.arguments[0]);if(null==r||!e4(e,r))continue;let n=e[r],u=[r];n[e5]&&(yield{node:t,path:u,type:e5,info:n[e5]}),yield*this._iteratePropertyReferences(t,u,n)}}*iterateEsmReferences(e){for(let t of this.globalScope.block.body){if(!e3.test(t.type)||null==t.source)continue;let r=t.source.value;if(!e4(e,r))continue;let n=e[r],u=[r];if(n[e5]&&(yield{node:t,path:u,type:e5,info:n[e5]}),"ExportAllDeclaration"===t.type)for(let e of Object.keys(n)){let r=n[e];r[e5]&&(yield{node:t,path:u.concat(e),type:e5,info:r[e5]})}else for(let e of t.specifiers){let t=e4(n,e9),r=this._iterateImportReferences(e,u,t?n:"legacy"===this.mode?{default:n,...n}:{default:n});if(t)yield*r;else for(let e of r)e.path=e.path.filter(tr),(e.path.length>=2||e.type!==e5)&&(yield e)}}}*_iterateVariableReferences(e,t,r,n){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let u of e.references){if(!u.isRead())continue;let e=u.identifier;n&&r[e5]&&(yield{node:e,path:t,type:e5,info:r[e5]}),yield*this._iteratePropertyReferences(e,t,r)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,t,r){let n=e;for(;function(e){let t=e.parent;switch(t&&t.type){case"ConditionalExpression":return t.consequent===e||t.alternate===e;case"LogicalExpression":case"ChainExpression":return!0;case"SequenceExpression":return t.expressions[t.expressions.length-1]===e;default:return!1}}(n);)n=n.parent;let u=n.parent;if("MemberExpression"===u.type){if(u.object===n){let e=eZ(u);if(null==e||!e4(r,e))return;t=t.concat(e);let n=r[e];n[e5]&&(yield{node:u,path:t,type:e5,info:n[e5]}),yield*this._iteratePropertyReferences(u,t,n)}return}if("CallExpression"===u.type){u.callee===n&&r[e8]&&(yield{node:u,path:t,type:e8,info:r[e8]});return}if("NewExpression"===u.type){u.callee===n&&r[e6]&&(yield{node:u,path:t,type:e6,info:r[e6]});return}if("AssignmentExpression"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r),yield*this._iteratePropertyReferences(u,t,r));return}if("AssignmentPattern"===u.type){u.right===n&&(yield*this._iterateLhsReferences(u.left,t,r));return}"VariableDeclarator"===u.type&&u.init===n&&(yield*this._iterateLhsReferences(u.id,t,r))}*_iterateLhsReferences(e,t,r){if("Identifier"===e.type){let n=es(this.globalScope,e);null!=n&&(yield*this._iterateVariableReferences(n,t,r,!1));return}if("ObjectPattern"===e.type){for(let n of e.properties){let e=eZ(n);if(null==e||!e4(r,e))continue;let u=t.concat(e),a=r[e];a[e5]&&(yield{node:n,path:u,type:e5,info:a[e5]}),yield*this._iterateLhsReferences(n.value,u,a)}return}"AssignmentPattern"===e.type&&(yield*this._iterateLhsReferences(e.left,t,r))}*_iterateImportReferences(e,t,r){let n=e.type;if("ImportSpecifier"===n||"ImportDefaultSpecifier"===n){let u="ImportDefaultSpecifier"===n?"default":e.imported.name;if(!e4(r,u))return;t=t.concat(u);let a=r[u];a[e5]&&(yield{node:e,path:t,type:e5,info:a[e5]}),yield*this._iterateVariableReferences(es(this.globalScope,e.local),t,a,!1);return}if("ImportNamespaceSpecifier"===n){yield*this._iterateVariableReferences(es(this.globalScope,e.local),t,r,!1);return}if("ExportSpecifier"===n){let n=e.local.name;if(!e4(r,n))return;t=t.concat(n);let u=r[n];u[e5]&&(yield{node:e,path:t,type:e5,info:u[e5]})}}};function tr(e,t){return!(1===t&&"default"===e)}tt.READ=e5,tt.CALL=e8,tt.CONSTRUCT=e6,tt.ESM=e9;var tn=/*@__PURE__*/ee(/*#__PURE__*/Object.freeze({__proto__:null,CALL:e8,CONSTRUCT:e6,ESM:e9,PatternMatcher:e2,READ:e5,ReferenceTracker:tt,default:{CALL:e8,CONSTRUCT:e6,ESM:e9,findVariable:es,getFunctionHeadLocation:ej,getFunctionNameWithKind:eG,getInnermostScope:eo,getPropertyName:eZ,getStaticValue:eW,getStringIfConstant:eV,hasSideEffect:eY,isArrowToken:ef,isClosingBraceToken:eE,isClosingBracketToken:ev,isClosingParenToken:eh,isColonToken:eg,isCommaToken:ep,isCommentToken:eA,isNotArrowToken:eD,isNotClosingBraceToken:eI,isNotClosingBracketToken:eT,isNotClosingParenToken:e_,isNotColonToken:ew,isNotCommaToken:eC,isNotCommentToken:eB,isNotOpeningBraceToken:eP,isNotOpeningBracketToken:ek,isNotOpeningParenToken:eF,isNotSemicolonToken:eS,isOpeningBraceToken:ex,isOpeningBracketToken:eb,isOpeningParenToken:ey,isParenthesized:eQ,isSemicolonToken:em,PatternMatcher:e2,READ:e5,ReferenceTracker:tt},findVariable:es,getFunctionHeadLocation:ej,getFunctionNameWithKind:eG,getInnermostScope:eo,getPropertyName:eZ,getStaticValue:eW,getStringIfConstant:eV,hasSideEffect:eY,isArrowToken:ef,isClosingBraceToken:eE,isClosingBracketToken:ev,isClosingParenToken:eh,isColonToken:eg,isCommaToken:ep,isCommentToken:eA,isNotArrowToken:eD,isNotClosingBraceToken:eI,isNotClosingBracketToken:eT,isNotClosingParenToken:e_,isNotColonToken:ew,isNotCommaToken:eC,isNotCommentToken:eB,isNotOpeningBraceToken:eP,isNotOpeningBracketToken:ek,isNotOpeningParenToken:eF,isNotSemicolonToken:eS,isOpeningBraceToken:ex,isOpeningBracketToken:eb,isOpeningParenToken:ey,isParenthesized:eQ,isSemicolonToken:em}));let{isParenthesized:tu}=tn,ta="too-deep",ti="should-parenthesized";var to=/*@__PURE__*/Q({create:e=>({ConditionalExpression(t){if([t.test,t.consequent,t.alternate].some(e=>"ConditionalExpression"===e.type))return;let{sourceCode:r}=e,n=r.getAncestors(t).reverse(),u=n.findIndex(e=>"ConditionalExpression"!==e.type);return 1!==u||tu(t,r)?u>1?{node:u>2?n[u-3]:t,messageId:ta}:void 0:{node:t,messageId:ti,fix:e=>[e.insertTextBefore(t,"("),e.insertTextAfter(t,")")]}}}),meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions.",recommended:!0},fixable:"code",messages:{[ta]:"Do not nest ternary expressions.",[ti]:"Nest ternary expression should be parenthesized."}}});let{isParenthesized:ts,isOpeningParenToken:td,isClosingParenToken:tl}=tn;function tc(e,t){let r=0;for(;ts(r+1,e,t);)r++;return r}function tf(e,t){let r=tc(e,t);return 0===r?[]:[...t.getTokensBefore(e,{count:r,filter:td}),...t.getTokensAfter(e,{count:r,filter:tl})]}function tp(e,t){let r=tf(e,t),[n]=(r[0]||e).range,[,u]=(r.at(-1)||e).range;return[n,u]}var tm={isParenthesized:ts,getParenthesizedTimes:tc,getParentheses:tf,getParenthesizedRange:tp,getParenthesizedText:function(e,t){let[r,n]=tp(e,t);return t.text.slice(r,n)}};function tg(e,t){return e?.type==="Literal"&&(null===t?"null"===e.raw:e.value===t)}var ty={isLiteral:tg,isStringLiteral:e=>e?.type==="Literal"&&"string"==typeof e.value,isNumberLiteral:e=>"Literal"===e.type&&"number"==typeof e.value,isBigIntLiteral:e=>"Literal"===e.type&&!!e.bigint,isNullLiteral:e=>tg(e,null),isRegexLiteral:e=>"Literal"===e.type&&!!e.regex};function th(e,t,r){if(!r.includes(e?.type))return!1;"string"==typeof t&&(t={names:[t]}),Array.isArray(t)&&(t={names:t});let{name:n,names:u,argumentsLength:a,minimumArguments:i,maximumArguments:o,allowSpreadElement:s,optional:d}={minimumArguments:0,maximumArguments:Number.POSITIVE_INFINITY,allowSpreadElement:!1,...t};if(n&&(u=[n]),!0===d&&e.optional!==d||!1===d&&e.optional||"number"==typeof a&&e.arguments.length!==a||0!==i&&e.arguments.length<i||Number.isFinite(o)&&e.arguments.length>o)return!1;if(!s){let t=Number.isFinite(o)?o:a;if("number"==typeof t&&e.arguments.some((e,r)=>"SpreadElement"===e.type&&r<t))return!1}return!Array.isArray(u)||!(u.length>0)||"Identifier"===e.callee.type&&!!u.includes(e.callee.name)}var tb={isCallExpression:(e,t)=>th(e,t,["CallExpression"]),isNewExpression:(e,t)=>{if("boolean"==typeof t?.optional)throw TypeError("Cannot check node.optional in `isNewExpression`.");return th(e,t,["NewExpression"])},isCallOrNewExpression:(e,t)=>th(e,t,["CallExpression","NewExpression"])},tv=["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"],tx=function(e,t){if(e?.type!=="MemberExpression")return!1;"string"==typeof t&&(t={properties:[t]}),Array.isArray(t)&&(t={properties:t});let{property:r,properties:n,object:u,objects:a,optional:i,computed:o}={property:"",properties:[],object:"",...t};if(r&&(n=[r]),u&&(a=[u]),!0===i&&e.optional!==i||!1===i&&e.optional)return!1;if(Array.isArray(n)&&n.length>0){if("Identifier"!==e.property.type||!n.includes(e.property.name))return!1;o??=!1}return!(!0===o&&e.computed!==o||!1===o&&e.computed||Array.isArray(a)&&a.length>0&&("Identifier"!==e.object.type||!a.includes(e.object.name)))};let{isCallExpression:tE}=tb,{isStringLiteral:tA}=ty,{isCallExpression:tD}=tb;var tC=e=>tD(e,{name:"require",argumentsLength:1,optional:!1})&&tA(e.arguments[0]);function tS(e,t){let r=t.trim().split(".");for(let t=r.length-1;t>=0;t--){let n=r[t];if(!n)return!1;if(0===t)return"Identifier"===e.type&&e.name===n||"this"===n&&"ThisExpression"===e.type;if("MemberExpression"!==e.type||e.optional||e.computed||"Identifier"!==e.property.type||e.property.name!==n)return!1;e=e.object}}var tw={isNodeMatchesNameOrPath:tS,isNodeMatches:function(e,t){return t.some(t=>tS(e,t))}};let{isNodeMatches:tF}=tw,{isLiteral:t_,isStringLiteral:tk,isNumberLiteral:tT,isBigIntLiteral:tP,isNullLiteral:tI,isRegexLiteral:tB}=ty,{isNewExpression:tj,isCallExpression:tO,isCallOrNewExpression:tR}=tb;var tL={isLiteral:t_,isStringLiteral:tk,isNumberLiteral:tT,isBigIntLiteral:tP,isNullLiteral:tI,isRegexLiteral:tB,isArrowFunctionBody:function(e){return"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e},isCallExpression:tO,isCallOrNewExpression:tR,isDirective:e=>"ExpressionStatement"===e.type&&"string"==typeof e.directive,isEmptyNode:function e(t,r){let{type:n}=t;return"BlockStatement"===n?t.body.every(t=>e(t,r)):!!("EmptyStatement"===n||r?.(t))},isExpressionStatement:function(e){return"ExpressionStatement"===e.type||"ChainExpression"===e.type&&"ExpressionStatement"===e.parent.type},isFunction:function(e){return tv.includes(e.type)},isMemberExpression:tx,isMethodCall:function(e,t){"string"==typeof t&&(t={methods:[t]}),Array.isArray(t)&&(t={methods:t});let{optionalCall:r,optionalMember:n,method:u,methods:a}={method:"",methods:[],...t};return tE(e,{argumentsLength:t.argumentsLength,minimumArguments:t.minimumArguments,maximumArguments:t.maximumArguments,allowSpreadElement:t.allowSpreadElement,optional:r})&&tx(e.callee,{object:t.object,objects:t.objects,computed:t.computed,property:u,properties:a,optional:n})},isNewExpression:tj,isReferenceIdentifier:function(e,t=[]){if("Identifier"!==e.type)return!1;let r=Array.isArray(t)?t:[t];return(!(r.length>0)||!!r.includes(e.name))&&!function(e){let{parent:t}=e;switch(t.type){case"MemberExpression":return!t.computed&&t.property===e;case"FunctionDeclaration":case"FunctionExpression":return t.params.includes(e)||t.id===e;case"ArrowFunctionExpression":return t.params.includes(e);case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":case"TSDeclareFunction":case"TSEnumMember":case"TSTypeAliasDeclaration":return t.id===e;case"PropertyDefinition":case"MethodDefinition":return!t.computed&&t.key===e;case"Property":return!t.computed&&t.key===e&&("ObjectExpression"===t.parent.type||"ObjectPattern"===t.parent.type)&&t.parent.properties.includes(t)||t.value===e&&"ObjectPattern"===t.parent.type&&t.parent.properties.includes(t);case"ArrayPattern":return t.elements.includes(e);case"LabeledStatement":case"ContinueStatement":case"BreakStatement":return t.label===e;case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":return t.local===e;case"ExportAllDeclaration":return t.exported===e;case"ImportSpecifier":return t.local===e||t.imported===e;case"ExportSpecifier":return t.local===e||t.exported===e;case"TSIndexSignature":return t.parameters.includes(e);case"TSTypeParameter":return t.name===e;case"TSMappedType":case"TSPropertySignature":return t.key===e}return!1}(e)},isStaticRequire:tC,isTaggedTemplateLiteral:function(e,t){return"TemplateLiteral"===e.type&&"TaggedTemplateExpression"===e.parent.type&&e.parent.quasi===e&&(!t||tF(e.parent.tag,t))},isUndefined:function(e){return"Identifier"===e.type&&"undefined"===e.name},functionTypes:tv};let{isMemberExpression:tN}=tL;function tM(e,t){let{object:r,property:n,properties:u}={property:"",properties:[],...t};if(!tN(e,{property:n,properties:u,optional:!1}))return;let a=e.object;return tN(a,{object:r,property:"prototype",optional:!1})||"Array"===r&&"ArrayExpression"===a.type&&0===a.elements.length||"Object"===r&&"ObjectExpression"===a.type&&0===a.properties.length}var t$=e=>e?.type==="LogicalExpression"&&("&&"===e.operator||"||"===e.operator);let tz=e=>e?.type==="UnaryExpression"&&"!"===e.operator,tU=e=>tz(e.parent)&&e.parent.argument===e,tq=e=>tW(e.parent)&&e.parent.arguments[0]===e,tW=e=>e?.type==="CallExpression"&&"Identifier"===e.callee.type&&"Boolean"===e.callee.name&&1===e.arguments.length,tV=e=>e?.type==="VExpressionContainer"&&"VAttribute"===e.parent.type&&e.parent.directive&&e.parent.value===e&&"VDirectiveKey"===e.parent.key.type&&"VIdentifier"===e.parent.key.name.type&&("if"===e.parent.key.name.rawName||"else-if"===e.parent.key.name.rawName||"show"===e.parent.key.name.rawName);var tZ={},tG={};Object.defineProperty(tG,"__esModule",{value:!0}),tG.isIdentifierChar=t2,tG.isIdentifierName=function(e){let t=!0;for(let r=0;r<e.length;r++){let n=e.charCodeAt(r);if((64512&n)==55296&&r+1<e.length){let t=e.charCodeAt(++r);(64512&t)==56320&&(n=65536+((1023&n)<<10)+(1023&t))}if(t){if(t=!1,!t1(n))return!1}else if(!t2(n))return!1}return!t},tG.isIdentifierStart=t1;let tH="\xaa\xb5\xba\xc0-\xd6\xd8-\xf6\xf8-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-ᲈᲐ-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-ꟊꟐꟑꟓꟕ-ꟙꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",tK="‌‍\xb7̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛࢘-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‌‍‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",tX=RegExp("["+tH+"]"),tJ=RegExp("["+tH+tK+"]");tH=tK=null;let tY=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,68,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,349,41,7,1,79,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,159,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,264,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,4026,582,8634,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,689,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,43,8,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,757,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],tQ=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,370,1,81,2,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,193,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,84,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,406,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,330,3,10,1,2,0,49,6,4,4,14,9,5351,0,7,14,13835,9,87,9,39,4,60,6,26,9,1014,0,2,54,8,3,82,0,12,1,19628,1,4706,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,983,6,110,6,6,9,4759,9,787719,239];function t0(e,t){let r=65536;for(let n=0,u=t.length;n<u&&!((r+=t[n])>e);n+=2)if((r+=t[n+1])>=e)return!0;return!1}function t1(e){return e<65?36===e:e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tX.test(String.fromCharCode(e)):t0(e,tY)))}function t2(e){return e<48?36===e:e<58||!(e<65)&&(e<=90||(e<97?95===e:e<=122||(e<=65535?e>=170&&tJ.test(String.fromCharCode(e)):t0(e,tY)||t0(e,tQ))))}var t3={};Object.defineProperty(t3,"__esModule",{value:!0}),t3.isKeyword=function(e){return t4.has(e)},t3.isReservedWord=t6,t3.isStrictBindOnlyReservedWord=t7,t3.isStrictBindReservedWord=function(e,t){return t9(e,t)||t7(e)},t3.isStrictReservedWord=t9;let t4=new Set(["break","case","catch","continue","debugger","default","do","else","finally","for","function","if","return","switch","throw","try","var","const","while","with","new","this","super","class","extends","export","import","null","true","false","in","instanceof","typeof","void","delete"]),t5=new Set(["implements","interface","let","package","private","protected","public","static","yield"]),t8=new Set(["eval","arguments"]);function t6(e,t){return t&&"await"===e||"enum"===e}function t9(e,t){return t6(e,t)||t5.has(e)}function t7(e){return t8.has(e)}Object.defineProperty(tZ,"__esModule",{value:!0}),Object.defineProperty(tZ,"isIdentifierChar",{enumerable:!0,get:function(){return g.isIdentifierChar}}),Object.defineProperty(tZ,"isIdentifierName",{enumerable:!0,get:function(){return g.isIdentifierName}}),Object.defineProperty(tZ,"isIdentifierStart",{enumerable:!0,get:function(){return g.isIdentifierStart}}),Object.defineProperty(tZ,"isKeyword",{enumerable:!0,get:function(){return y.isKeyword}}),Object.defineProperty(tZ,"isReservedWord",{enumerable:!0,get:function(){return y.isReservedWord}}),Object.defineProperty(tZ,"isStrictBindOnlyReservedWord",{enumerable:!0,get:function(){return y.isStrictBindOnlyReservedWord}}),Object.defineProperty(tZ,"isStrictBindReservedWord",{enumerable:!0,get:function(){return y.isStrictBindReservedWord}}),Object.defineProperty(tZ,"isStrictReservedWord",{enumerable:!0,get:function(){return y.isStrictReservedWord}}),g=tG,y=t3;let re=e=>[e,...e.childScopes.flatMap(e=>re(e))];var rt=e=>[...new Set(re(e).flatMap(({references:e})=>e))];let{isIdentifierName:rr,isStrictReservedWord:rn,isKeyword:ru}=tZ,ra=function(e,t){for(;t;){let r=t.set.get(e);if(r)return r;t=t.upper}},ri=new Set(["break","case","catch","class","const","continue","debugger","default","delete","do","else","enum","export","extends","false","finally","for","function","if","import","in","instanceof","new","null","return","super","switch","this","throw","true","try","typeof","var","void","while","with","as","implements","interface","let","package","private","protected","public","static","yield","any","boolean","constructor","declare","get","module","require","number","set","string","symbol","type","from","of"]),ro=e=>"string"==typeof e&&!ru(e)&&!rn(e,!0)&&rr(e)&&"arguments"!==e&&!ri.has(e),rs=(e,t)=>rt(t).some(({identifier:t,resolved:r})=>t?.name===e&&!r),rd=(e,t)=>!t.some(t=>ra(e,t)||rs(e,t)),rl=()=>!0;var rc=function(e,t,r=rl){if(ro(e)||ro(e+="_")){for(;!rd(e,t)||!r(e,t);)e+="_";return e}};let rf={},rp=rf.hasOwnProperty,rm=(e,t)=>{for(let r in e)rp.call(e,r)&&t(r,e[r])},rg=(e,t)=>(t&&rm(t,(t,r)=>{e[t]=r}),e),ry=(e,t)=>{let r=e.length,n=-1;for(;++n<r;)t(e[n])},rh=e=>"\\u"+("0000"+e).slice(-4),rb=(e,t)=>{let r=e.toString(16);return t?r:r.toUpperCase()},rv=rf.toString,rx=Array.isArray,rE=e=>"function"==typeof Buffer&&Buffer.isBuffer(e),rA=e=>"[object Object]"==rv.call(e),rD=e=>"string"==typeof e||"[object String]"==rv.call(e),rC=e=>"number"==typeof e||"[object Number]"==rv.call(e),rS=e=>"function"==typeof e,rw=e=>"[object Map]"==rv.call(e),rF=e=>"[object Set]"==rv.call(e),r_={"\\":"\\\\","\b":"\\b","\f":"\\f","\n":"\\n","\r":"\\r"," ":"\\t"},rk=/[\\\b\f\n\r\t]/,rT=/[0-9]/,rP=/[\xA0\u1680\u2000-\u200A\u2028\u2029\u202F\u205F\u3000]/,rI=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^]/g,rB=/([\uD800-\uDBFF][\uDC00-\uDFFF])|([\uD800-\uDFFF])|(['"`])|[^ !#-&\(-\[\]-_a-~]/g,rj=(e,t)=>{let r;let n=()=>{l=d,++t.indentLevel,d=t.indent.repeat(t.indentLevel)},u={escapeEverything:!1,minimal:!1,isScriptContext:!1,quotes:"single",wrap:!1,es6:!1,json:!1,compact:!0,lowercaseHex:!1,numbers:"decimal",indent:" ",indentLevel:0,__inline1__:!1,__inline2__:!1},a=t&&t.json;a&&(u.quotes="double",u.wrap=!0),"single"!=(t=rg(u,t)).quotes&&"double"!=t.quotes&&"backtick"!=t.quotes&&(t.quotes="single");let i="double"==t.quotes?'"':"backtick"==t.quotes?"`":"'",o=t.compact,s=t.lowercaseHex,d=t.indent.repeat(t.indentLevel),l="",c=t.__inline1__,f=t.__inline2__,p=o?"":"\n",m=!0,g="binary"==t.numbers,y="octal"==t.numbers,h="decimal"==t.numbers,b="hexadecimal"==t.numbers;if(a&&e&&rS(e.toJSON)&&(e=e.toJSON()),!rD(e)){if(rw(e))return 0==e.size?"new Map()":(o||(t.__inline1__=!0,t.__inline2__=!1),"new Map("+rj(Array.from(e),t)+")");if(rF(e))return 0==e.size?"new Set()":"new Set("+rj(Array.from(e),t)+")";if(rE(e))return 0==e.length?"Buffer.from([])":"Buffer.from("+rj(Array.from(e),t)+")";if(rx(e))return(r=[],t.wrap=!0,c&&(t.__inline1__=!1,t.__inline2__=!0),f||n(),ry(e,e=>{m=!1,f&&(t.__inline2__=!1),r.push((o||f?"":d)+rj(e,t))}),m)?"[]":f?"["+r.join(", ")+"]":"["+p+r.join(","+p)+p+(o?"":l)+"]";if(rC(e)){if(a)return JSON.stringify(e);if(h)return String(e);if(b){let t=e.toString(16);return s||(t=t.toUpperCase()),"0x"+t}if(g)return"0b"+e.toString(2);if(y)return"0o"+e.toString(8)}else if(rA(e))return(r=[],t.wrap=!0,n(),rm(e,(e,n)=>{m=!1,r.push((o?"":d)+rj(e,t)+":"+(o?"":" ")+rj(n,t))}),m)?"{}":"{"+p+r.join(","+p)+p+(o?"":l)+"}";else return a?JSON.stringify(e)||"null":String(e)}let v=t.escapeEverything?rI:rB;return r=e.replace(v,(e,r,n,u,o,d)=>{if(r){if(t.minimal)return r;let e=r.charCodeAt(0),n=r.charCodeAt(1);return t.es6?"\\u{"+rb((e-55296)*1024+n-56320+65536,s)+"}":rh(rb(e,s))+rh(rb(n,s))}if(n)return rh(rb(n.charCodeAt(0),s));if("\0"==e&&!a&&!rT.test(d.charAt(o+1)))return"\\0";if(u)return u==i||t.escapeEverything?"\\"+u:u;if(rk.test(e))return r_[e];if(t.minimal&&!rP.test(e))return e;let l=rb(e.charCodeAt(0),s);return a||l.length>2?rh(l):"\\x"+("00"+l).slice(-2)}),"`"==i&&(r=r.replace(/\$\{/g,"\\${")),t.isScriptContext&&(r=r.replace(/<\/(script|style)/gi,"<\\/$1").replace(/<!--/g,a?"\\u003C!--":"\\x3C!--")),t.wrap&&(r=i+r+i),r};rj.version="3.0.2";var rO=function(e,t="'"){if("string"!=typeof e)throw TypeError("Unexpected string.");return rj(e,{quotes:'"'===t?"double":"single",wrap:!0,es6:!0,minimal:!0,lowercaseHex:!1})};let{isOpeningParenToken:rR,isCommaToken:rL}=tn;var rN=function(e,t){let r=e.getTokenAfter(t.callee,rR),[n,u]=e.getLastTokens(t,2);return{openingParenthesisToken:r,closingParenthesisToken:u,trailingCommaToken:rL(n)?n:void 0}},rM=({identifiers:e,references:t})=>[...new Set([...e,...t.map(({identifier:e})=>e)])];let r$=e=>"MemberExpression"===e.type||"CallExpression"===e.type,{findVariable:rz}=tn,rU=(e,t)=>{let{references:r=[]}=rz(e,t)||{};return r};var rq=e=>("AssignmentExpression"===e.parent.type||"AssignmentPattern"===e.parent.type)&&e.parent.left===e||"UpdateExpression"===e.parent.type&&e.parent.argument===e||"ArrayPattern"===e.parent.type&&e.parent.elements.includes(e)||"Property"===e.parent.type&&e.parent.value===e&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)||"UnaryExpression"===e.parent.type&&"delete"===e.parent.operator&&e.parent.argument===e;let{isUndefined:rW}=tL,rV=new Set(["ArrayExpression","ArrowFunctionExpression","ClassExpression","FunctionExpression","Literal","ObjectExpression","TemplateLiteral"]),{isUndefined:rZ,isCallExpression:rG,isMethodCall:rH}=tL,rK=new Set(["ArrayExpression","BinaryExpression","ClassExpression","Literal","ObjectExpression","TemplateLiteral","UnaryExpression","UpdateExpression"]),rX=new Set(["AssignmentExpression","AwaitExpression","NewExpression","TaggedTemplateExpression","ThisExpression"]);var rJ=function(e,t){return e.loc.start.line===t.loc.start.line};let{getStaticValue:rY}=tn;function rQ(e){let t;switch(e?.type){case"MemberExpression":t=e.property;break;case"ChainExpression":return rQ(e.expression);case"Property":case"MethodDefinition":t=e.key}if(t){if("Identifier"===t.type&&!e.computed)return t.name;let r=rY(t);if(!r)return;return String(r.value)}}var r0=function e(t,r){if(t.type!==r.type)return"ChainExpression"===t.type?e(t.expression,r):"ChainExpression"===r.type&&e(t,r.expression);switch(t.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return t.name===r.name;case"Literal":return t.regex||r.regex?!!(t.regex&&r.regex&&t.regex.pattern===r.regex.pattern&&t.regex.flags===r.regex.flags):t.bigint||r.bigint?t.bigint===r.bigint:t.value===r.value;case"ChainExpression":return e(t.expression,r.expression);case"MemberExpression":{let n=rQ(t);if(void 0!==n)return e(t.object,r.object)&&n===rQ(r);return t.computed===r.computed&&e(t.object,r.object)&&e(t.property,r.property)}default:return!1}},r1=function(e,t){let r=function(e,t){let r=e.references.filter(e=>e.identifier===t);if(1===r.length)return r[0]}(e,t);return!!r?.resolved&&r.resolved.defs.length>0};let{isExpressionStatement:r2}=tL,r3=new Set(["String","Null","Boolean","Numeric","RegularExpression"]),r4=new Set(["[","(","/","`","+","-","*",",","."]);var r5=function(e,t,r){if(""===r||r&&!r4.has(r.charAt(0))||!e)return!1;let{type:n,value:u,range:a}=e,i=t.getNodeByRangeIndex(a[0]);if("Punctuator"===n){if(";"===u)return!1;if("]"===u)return!0;if(")"===u){switch(i.type){case"IfStatement":if(t.getTokenBefore(i.consequent)===e)return!1;break;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"WhileStatement":case"DoWhileStatement":case"WithStatement":if(i.body&&t.getTokenBefore(i.body)===e)return!1}return!0}}return!!r3.has(n)||("Template"===n?u.endsWith("`"):"ObjectExpression"===i.type||"Identifier"===n&&("of"!==u||"ForOfStatement"!==i.type)&&("await"!==u||"AwaitExpression"!==i.type))};let{isOpeningParenToken:r8,isClosingParenToken:r6}=tn;var r9=function(e,t){if(e.arguments.length>0)return!0;let[r,n]=t.getLastTokens(e,2);return r8(r)&&r6(n)&&e.callee.range[1]<e.range[1]};let{isNumberLiteral:r7,isBigIntLiteral:ne}=tL,nt=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,nr=e=>nt.test(e);var nn={isDecimalIntegerNode:e=>r7(e)&&nr(e.raw),isDecimalInteger:nr,isNumeric:e=>r7(e)||ne(e),isLegacyOctal:e=>r7(e)&&/^0\d+$/.test(e.raw),getPrefix:function(e){let t="",r=e;return/^0[box]/i.test(e)&&(t=e.slice(0,2),r=e.slice(2)),{prefix:t,data:r}},parseNumber:function(e){let{number:t,mark:r="",sign:n="",power:u=""}=e.match(/^(?<number>[\d._]*?)(?:(?<mark>[Ee])(?<sign>[+-])?(?<power>[\d_]+))?$/).groups;return{number:t,mark:r,sign:n,power:u}},parseFloatNumber:function(e){let t=e.split("."),[r,n=""]=t;return{integer:r,dot:2===t.length?".":"",fractional:n}}};let{isDecimalIntegerNode:nu}=nn;var na=function(e,t){switch(e.type){case"Identifier":case"MemberExpression":case"CallExpression":case"ChainExpression":case"TemplateLiteral":case"ThisExpression":case"ArrayExpression":case"FunctionExpression":return!1;case"NewExpression":return!r9(e,t);case"Literal":if(nu(e))return!0;return!1;default:return!0}},ni={exports:{}};h=function(){var e=[],t=[],r={},n={},u={};function a(e){return"string"==typeof e?RegExp("^"+e+"$","i"):e}function i(e,t){return e===t?t:e===e.toLowerCase()?t.toLowerCase():e===e.toUpperCase()?t.toUpperCase():e[0]===e[0].toUpperCase()?t.charAt(0).toUpperCase()+t.substr(1).toLowerCase():t.toLowerCase()}function o(e,t,n){if(!e.length||r.hasOwnProperty(e))return t;for(var u=n.length;u--;){var a=n[u];if(a[0].test(t))return function(e,t){return e.replace(t[0],function(r,n){var u,a,o=(u=t[1],a=arguments,u.replace(/\$(\d{1,2})/g,function(e,t){return a[t]||""}));return""===r?i(e[n-1],o):i(r,o)})}(t,a)}return t}function s(e,t,r){return function(n){var u=n.toLowerCase();return t.hasOwnProperty(u)?i(n,u):e.hasOwnProperty(u)?i(n,e[u]):o(u,n,r)}}function d(e,t,r,n){return function(n){var u=n.toLowerCase();return!!t.hasOwnProperty(u)||!e.hasOwnProperty(u)&&o(u,u,r)===u}}function l(e,t,r){var n=1===t?l.singular(e):l.plural(e);return(r?t+" ":"")+n}return l.plural=s(u,n,e),l.isPlural=d(u,n,e),l.singular=s(n,u,t),l.isSingular=d(n,u,t),l.addPluralRule=function(t,r){e.push([a(t),r])},l.addSingularRule=function(e,r){t.push([a(e),r])},l.addUncountableRule=function(e){if("string"==typeof e){r[e.toLowerCase()]=!0;return}l.addPluralRule(e,"$0"),l.addSingularRule(e,"$0")},l.addIrregularRule=function(e,t){t=t.toLowerCase(),u[e=e.toLowerCase()]=t,n[t]=e},[["I","we"],["me","us"],["he","they"],["she","they"],["them","them"],["myself","ourselves"],["yourself","yourselves"],["itself","themselves"],["herself","themselves"],["himself","themselves"],["themself","themselves"],["is","are"],["was","were"],["has","have"],["this","these"],["that","those"],["echo","echoes"],["dingo","dingoes"],["volcano","volcanoes"],["tornado","tornadoes"],["torpedo","torpedoes"],["genus","genera"],["viscus","viscera"],["stigma","stigmata"],["stoma","stomata"],["dogma","dogmata"],["lemma","lemmata"],["schema","schemata"],["anathema","anathemata"],["ox","oxen"],["axe","axes"],["die","dice"],["yes","yeses"],["foot","feet"],["eave","eaves"],["goose","geese"],["tooth","teeth"],["quiz","quizzes"],["human","humans"],["proof","proofs"],["carve","carves"],["valve","valves"],["looey","looies"],["thief","thieves"],["groove","grooves"],["pickaxe","pickaxes"],["passerby","passersby"]].forEach(function(e){return l.addIrregularRule(e[0],e[1])}),[[/s?$/i,"s"],[/[^\u0000-\u007F]$/i,"$0"],[/([^aeiou]ese)$/i,"$1"],[/(ax|test)is$/i,"$1es"],[/(alias|[^aou]us|t[lm]as|gas|ris)$/i,"$1es"],[/(e[mn]u)s?$/i,"$1s"],[/([^l]ias|[aeiou]las|[ejzr]as|[iu]am)$/i,"$1"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1i"],[/(alumn|alg|vertebr)(?:a|ae)$/i,"$1ae"],[/(seraph|cherub)(?:im)?$/i,"$1im"],[/(her|at|gr)o$/i,"$1oes"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|automat|quor)(?:a|um)$/i,"$1a"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)(?:a|on)$/i,"$1a"],[/sis$/i,"ses"],[/(?:(kni|wi|li)fe|(ar|l|ea|eo|oa|hoo)f)$/i,"$1$2ves"],[/([^aeiouy]|qu)y$/i,"$1ies"],[/([^ch][ieo][ln])ey$/i,"$1ies"],[/(x|ch|ss|sh|zz)$/i,"$1es"],[/(matr|cod|mur|sil|vert|ind|append)(?:ix|ex)$/i,"$1ices"],[/\b((?:tit)?m|l)(?:ice|ouse)$/i,"$1ice"],[/(pe)(?:rson|ople)$/i,"$1ople"],[/(child)(?:ren)?$/i,"$1ren"],[/eaux$/i,"$0"],[/m[ae]n$/i,"men"],["thou","you"]].forEach(function(e){return l.addPluralRule(e[0],e[1])}),[[/s$/i,""],[/(ss)$/i,"$1"],[/(wi|kni|(?:after|half|high|low|mid|non|night|[^\w]|^)li)ves$/i,"$1fe"],[/(ar|(?:wo|[ae])l|[eo][ao])ves$/i,"$1f"],[/ies$/i,"y"],[/\b([pl]|zomb|(?:neck|cross)?t|coll|faer|food|gen|goon|group|lass|talk|goal|cut)ies$/i,"$1ie"],[/\b(mon|smil)ies$/i,"$1ey"],[/\b((?:tit)?m|l)ice$/i,"$1ouse"],[/(seraph|cherub)im$/i,"$1"],[/(x|ch|ss|sh|zz|tto|go|cho|alias|[^aou]us|t[lm]as|gas|(?:her|at|gr)o|[aeiou]ris)(?:es)?$/i,"$1"],[/(analy|diagno|parenthe|progno|synop|the|empha|cri|ne)(?:sis|ses)$/i,"$1sis"],[/(movie|twelve|abuse|e[mn]u)s$/i,"$1"],[/(test)(?:is|es)$/i,"$1is"],[/(alumn|syllab|vir|radi|nucle|fung|cact|stimul|termin|bacill|foc|uter|loc|strat)(?:us|i)$/i,"$1us"],[/(agend|addend|millenni|dat|extrem|bacteri|desiderat|strat|candelabr|errat|ov|symposi|curricul|quor)a$/i,"$1um"],[/(apheli|hyperbat|periheli|asyndet|noumen|phenomen|criteri|organ|prolegomen|hedr|automat)a$/i,"$1on"],[/(alumn|alg|vertebr)ae$/i,"$1a"],[/(cod|mur|sil|vert|ind)ices$/i,"$1ex"],[/(matr|append)ices$/i,"$1ix"],[/(pe)(rson|ople)$/i,"$1rson"],[/(child)ren$/i,"$1"],[/(eau)x?$/i,"$1"],[/men$/i,"man"]].forEach(function(e){return l.addSingularRule(e[0],e[1])}),["adulthood","advice","agenda","aid","aircraft","alcohol","ammo","analytics","anime","athletics","audio","bison","blood","bream","buffalo","butter","carp","cash","chassis","chess","clothing","cod","commerce","cooperation","corps","debris","diabetes","digestion","elk","energy","equipment","excretion","expertise","firmware","flounder","fun","gallows","garbage","graffiti","hardware","headquarters","health","herpes","highjinks","homework","housework","information","jeans","justice","kudos","labour","literature","machinery","mackerel","mail","media","mews","moose","music","mud","manga","news","only","personnel","pike","plankton","pliers","police","pollution","premises","rain","research","rice","salmon","scissors","series","sewage","shambles","shrimp","software","species","staff","swine","tennis","traffic","transportation","trout","tuna","wealth","welfare","whiting","wildebeest","wildlife","you",/pok[eé]mon$/i,/[^aeiou]ese$/i,/deer$/i,/fish$/i,/measles$/i,/o[iu]s$/i,/pox$/i,/sheep$/i].forEach(l.addUncountableRule),l},ni.exports=h();let{singular:no}=ni.exports;var ns=function(e,t,r=0,n=0){let[u,a]=Array.isArray(e)?e:e.range;return{start:t.getLocFromIndex(u+r),end:t.getLocFromIndex(a+n)}};let{isParenthesized:nd,getParenthesizedTimes:nl,getParentheses:nc,getParenthesizedRange:nf,getParenthesizedText:np}=tm,{isArrayPrototypeProperty:nm,isObjectPrototypeProperty:ng}={isArrayPrototypeProperty:(e,t)=>tM(e,{...t,object:"Array"}),isObjectPrototypeProperty:(e,t)=>tM(e,{...t,object:"Object"})},{isNodeMatches:ny,isNodeMatchesNameOrPath:nh}=tw,{isBooleanNode:nb,getBooleanAncestor:nv}={isBooleanNode:function e(t){if(tz(t)||tU(t)||tW(t)||tq(t))return!0;let{parent:r}=t;return!!tV(r)||("IfStatement"===r.type||"ConditionalExpression"===r.type||"WhileStatement"===r.type||"DoWhileStatement"===r.type||"ForStatement"===r.type)&&r.test===t||!!t$(r)&&e(r)},getBooleanAncestor:function(e){let t=!1;for(;;)if(tU(e))t=!t,e=e.parent;else if(tq(e))e=e.parent;else break;return{node:e,isNegative:t}}};var nx={avoidCapture:rc,escapeString:rO,getBooleanAncestor:nv,getCallExpressionArgumentsText:function(e,t){let{openingParenthesisToken:r,closingParenthesisToken:n}=rN(e,t);return e.text.slice(r.range[1],n.range[0])},getCallExpressionTokens:rN,getParentheses:nc,getParenthesizedRange:nf,getParenthesizedText:np,getParenthesizedTimes:nl,getReferences:rt,getScopes:re,getVariableIdentifiers:rM,hasOptionalChainElement:function e(t){return!!r$(t)&&(!!t.optional||"MemberExpression"===t.type&&e(t.object))},isArrayPrototypeProperty:nm,isBooleanNode:nb,isFunctionSelfUsedInside:function(e,t){if(t.block!==e)throw Error('"functionScope" should be the scope of "functionNode".');let{type:r,id:n}=e;return"ArrowFunctionExpression"!==r&&(!!(t.thisFound||rU(t,"arguments").some(({from:e})=>e===t))||!!n&&rU(t,n).length>0)},isLeftHandSide:rq,isLogicalExpression:t$,isMethodNamed:(e,t)=>"CallExpression"===e.type&&"MemberExpression"===e.callee.type&&"Identifier"===e.callee.property.type&&e.callee.property.name===t,isNodeMatches:ny,isNodeMatchesNameOrPath:nh,isNodeValueNotDomNode:e=>rV.has(e.type)||rW(e),isNodeValueNotFunction:e=>rK.has(e.type)||rX.has(e.type)||rZ(e)||rG(e)&&!rH(e,{method:"bind",optionalCall:!1,optionalMember:!1}),isObjectPrototypeProperty:ng,isOnSameLine:rJ,isParenthesized:nd,isSameIdentifier:(e,t)=>"Identifier"===e.type&&"Identifier"===t.type&&e.name===t.name,isSameReference:r0,isShadowed:r1,isValueNotUsable:e=>r2(e.parent),needsSemicolon:r5,shouldAddParenthesesToMemberExpressionObject:na,shouldAddParenthesesToCallExpressionCallee:function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type||"UnaryExpression"===e.type||"UpdateExpression"===e.type||"NewExpression"===e.type},shouldAddParenthesesToAwaitExpressionArgument:function(e){return"SequenceExpression"===e.type||"YieldExpression"===e.type||"ArrowFunctionExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"LogicalExpression"===e.type||"BinaryExpression"===e.type},singular:e=>{let t=no(e);if(t!==e)return t},toLocation:ns,getAncestor:function(e,t){let r=function(e){if("string"==typeof e)return t=>t.type===e}(t);for(;e.parent;e=e.parent)if(r(e))return e}};let{findVariable:nE}=tn,{getAncestor:nA}=nx,{isStaticRequire:nD,isStringLiteral:nC,isMemberExpression:nS}=tL,nw="prefer-event-target",nF=new Set(["@angular/core","eventemitter3"]),n_=e=>"VariableDeclarator"===e.parent.type&&e.parent.id===e&&"VariableDeclaration"===e.parent.parent.type&&"const"===e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent);function nk(e){let t;return!!e&&(nD(e)?[t]=e.arguments:"AwaitExpression"===e.type&&"ImportExpression"===e.argument.type&&({source:t}=e.argument),!!(nC(t)&&nF.has(t.value)))}var nT=/*@__PURE__*/Q({create:e=>({Identifier(t){if(!("EventEmitter"===t.name&&(("ClassDeclaration"===t.parent.type||"ClassExpression"===t.parent.type)&&t.parent.superClass===t||"NewExpression"===t.parent.type&&t.parent.callee===t)))return;let r=e.sourceCode.getScope(t);if(!function(e){if(!e)return!1;let t=nA(e,"ImportDeclaration");return!!(nF.has(t?.source.value)||"Property"===e.parent.type&&e.parent.value===e&&"Identifier"===e.parent.key.type&&"EventEmitter"===e.parent.key.name&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)&&n_(e.parent.parent)&&nk(e.parent.parent.parent.init)||n_(e)&&nS(e.parent.init,{property:"EventEmitter",optional:!1,computed:!1})&&nk(e.parent.init.object))}(nE(r,t)?.defs[0]?.name))return{node:t,messageId:nw}}}),meta:{type:"suggestion",docs:{description:"Prefer `EventTarget` over `EventEmitter`.",recommended:!0},messages:{[nw]:"Prefer `EventTarget` over `EventEmitter`."}}});let nP={8:"Backspace",9:"Tab",12:"Clear",13:"Enter",16:"Shift",17:"Control",18:"Alt",19:"Pause",20:"CapsLock",27:"Escape",32:" ",33:"PageUp",34:"PageDown",35:"End",36:"Home",37:"ArrowLeft",38:"ArrowUp",39:"ArrowRight",40:"ArrowDown",45:"Insert",46:"Delete",112:"F1",113:"F2",114:"F3",115:"F4",116:"F5",117:"F6",118:"F7",119:"F8",120:"F9",121:"F10",122:"F11",123:"F12",144:"NumLock",145:"ScrollLock",186:";",187:"=",188:",",189:"-",190:".",191:"/",219:"[",220:"\\",221:"]",222:"'",224:"Meta"},{isNumberLiteral:nI}=tL,nB="prefer-keyboard-event-key",nj=new Set(["keyCode","charCode","which"]),nO=e=>e?.type==="CallExpression"&&"MemberExpression"===e.callee.type&&"addEventListener"===e.callee.property.name,nR=(e,t)=>{let r=nN(t,"CallExpression",nO),n=r?.arguments[1];switch(n?.type){case"ArrowFunctionExpression":case"FunctionExpression":{let t=e.sourceCode.getDeclaredVariables(n)[0],r=t?.references;return{event:n.params[0],references:r}}default:return{}}},nL=(e,t)=>e?.parent?.type==="MemberExpression"&&e.parent.object===t,nN=(e,t,r=()=>!0)=>{let n=e;for(;n;){if(n.type===t&&r(n))return n;n=n.parent}},nM=(e,t)=>{let r=e;for(;r&&t;)t--,r=r.parent;if(0===t)return r},n$=e=>t=>{let r=nM(e,3);if(!r||"IfStatement"!==r.type)return;let{type:n,operator:u,right:a}=r.test;if(!("BinaryExpression"===n&&("=="===u||"==="===u)&&nI(a)))return;let i=nP[a.value]||String.fromCodePoint(a.value);if(i)return[t.replaceText(e,"key"),t.replaceText(a,rO(i))]},nz=e=>({messageId:nB,data:{name:e.name},node:e,fix:n$(e)});var nU=/*@__PURE__*/Q({create:e=>({Identifier(t){if("keyCode"!==t.name&&"charCode"!==t.name&&"which"!==t.name)return;let{event:r,references:n}=nR(e,t);if(r&&n&&n.some(e=>nL(t,e.identifier)))return nz(t)},Property(t){let r=t.value.name;if(!nj.has(r))return;let{event:n,references:u}=nR(e,t);if(!n)return;let a=nN(t,"VariableDeclarator"),i=a?.init;if(u&&u.some(e=>e.identifier===i))return nz(t.value);if("ObjectPattern"===n.type){for(let e of n.properties)if(e===t)return nz(t.value)}}}),meta:{type:"suggestion",docs:{description:"Prefer `KeyboardEvent#key` over `KeyboardEvent#keyCode`.",recommended:!0},fixable:"code",messages:{[nB]:"Use `.key` instead of `.{{name}}`."}}});let{isMemberExpression:nq}=tL,nW="error",nV="suggestion";var nZ=/*@__PURE__*/Q({create:()=>({MemberExpression(e){if(!nq(e,{property:"innerText"}))return;let t=e.property;return{node:t,messageId:nW,suggest:[{messageId:nV,fix:e=>e.replaceText(t,"textContent")}]}},Identifier(e){if("innerText"===e.name&&"Property"===e.parent.type&&e.parent.key===e&&!e.parent.computed&&"init"===e.parent.kind&&"ObjectPattern"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent))return{node:e,messageId:nW,suggest:[{messageId:nV,fix:t=>t.replaceText(e,e.parent.shorthand?"textContent: innerText":"textContent")}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `.textContent` over `.innerText`.",recommended:!0},hasSuggestions:!0,messages:{[nW]:"Prefer `.textContent` over `.innerText`.",[nV]:"Switch to `.textContent`."}}});let{getParentheses:nG}=tm,{isCommaToken:nH}=tn,{isCommaToken:nK}=tn,{getParentheses:nX}=tm,{getParenthesizedRange:nJ}=tm,{isSemicolonToken:nY}=tn;var nQ=function*(e,t,r){if("ReturnStatement"!==t.type&&"ThrowStatement"!==t.type)return;let n=r.getFirstToken(t);yield e.insertTextAfter(n," (");let u=r.getLastToken(t);if(!nY(u)){yield e.insertTextAfter(t,")");return}yield e.insertTextBefore(u,")")},n0=function(e,t,r){let n=e;"object"==typeof e&&Array.isArray(e.range)&&(n=e.range[1]);let[u]=t.text.slice(n).match(/^\s*/);return r.removeRange([n,n+u.length])};let{isParenthesized:n1}=tm,{getParenthesizedRange:n2}=tm,n3=({type:e,value:t})=>"Keyword"===e&&/^[a-z]*$/.test(t)||"Identifier"===e&&"of"===t||"Identifier"===e&&"await"===t;var n4=function*(e,t,r){let n=n2(t,r),u=r.getTokenBefore({range:n},{includeComments:!0});u&&n[0]===u.range[1]&&n3(u)&&(yield e.insertTextAfter(u," "));let a=r.getTokenAfter({range:n},{includeComments:!0});a&&n[1]===a.range[0]&&n3(a)&&(yield e.insertTextBefore(a," "))};let{isParenthesized:n5}=tm,{getParenthesizedRange:n8}=tm;var n6=function(e,t,r){let[,n]=n8(t.object,r),[,u]=t.range;return e.removeRange([n,u])};let{getParenthesizedRange:n9}=tm;var n7=function*(e,t,r){let n=t.callee;yield n6(e,n,r);let[,u]=n9(n,r),[,a]=t.range;yield e.removeRange([u,a])},ue=e=>"Property"===e.parent.type&&e.parent.shorthand&&e===e.parent.value,ut=(e,t)=>e&&t&&e.range[0]===t.range[0]&&e.range[1]===t.range[1];let ur=e=>"AssignmentPattern"===e.parent.type&&e.parent.left===e&&ue(e.parent),un=e=>{let{type:t,local:r,imported:n}=e.parent;return"ImportSpecifier"===t&&ut(r,n)&&r===e},uu=e=>{let{type:t,local:r,exported:n}=e.parent;return"ExportSpecifier"===t&&ut(r,n)&&r===e};var ua=function(e,t,r){return ue(e)||ur(e)?r.replaceText(e,`${e.name}: ${t}`):un(e)?r.replaceText(e,`${e.name} as ${t}`):uu(e)?r.replaceText(e,`${t} as ${e.name}`):e.typeAnnotation?r.replaceTextRange([e.range[0],e.typeAnnotation.range[0]],`${t}${e.optional?"?":""}`):r.replaceText(e,t)};let{getParentheses:ui}=tm;var uo={extendFixRange:function*(e,t){yield e.insertTextBeforeRange(t,""),yield e.insertTextAfterRange(t,"")},removeParentheses:function*(e,t,r){for(let n of nG(e,r))yield t.remove(n)},appendArgument:function(e,t,r,n){if("CallExpression"!==t.type)throw Error(`Unexpected node "${t.type}".`);let[u,a]=n.getLastTokens(t,2);return t.arguments.length>0&&(r=nH(u)?` ${r},`:`, ${r}`),e.insertTextBefore(a,r)},removeArgument:function(e,t,r){let n=t.parent,u=n.arguments.indexOf(t),a=nX(t,r),i=a[0]||t,o=a.at(-1)||t,[s]=i.range,[,d]=o.range;if(0!==u&&(s=r.getTokenBefore(i).range[0]),1===n.arguments.length){let e=r.getTokenBefore(o);nK(e)&&(d=e[1])}return e.replaceTextRange([s,d],"")},replaceArgument:function(e,t,r,n){return e.replaceTextRange(nJ(t,n),r)},switchNewExpressionToCallExpression:function*(e,t,r){let n=t.getFirstToken(e);yield r.remove(n),yield n0(n,t,r),r9(e,t)||(yield r.insertTextAfter(e,"()")),rJ(n,e.callee)||n1(e,t)||(yield*nQ(r,e.parent,t))},switchCallExpressionToNewExpression:function*(e,t,r){var n;yield*n4(r,e,t),yield r.insertTextBefore(e,"new ");let{callee:u}=e;!n5(u,t)&&"MemberExpression"===(n=u).type&&function(e){let t=e.object,r=e.object.type;for(;"MemberExpression"===r;)r=(t=t.object).type;return"CallExpression"===r}(n)&&(yield r.insertTextBefore(u,"("),yield r.insertTextAfter(u,")"))},removeMemberExpressionProperty:n6,removeMethodCall:n7,replaceTemplateElement:(e,t,r)=>{let{range:[n,u],tail:a}=t;return e.replaceTextRange([n+1,u-(a?1:2)],r)},replaceReferenceIdentifier:ua,renameVariable:(e,t,r)=>rM(e).map(e=>ua(e,t,r)),replaceNodeOrTokenAndSpacesBefore:function* e(t,r,n,u,a=u){for(let r of ui(t,a))yield*e(r,"",n,u,a);let[i,o]=t.range,[s]=u.text.slice(0,i).match(/\s*$/),[d]=s.match(/(?:\r?\n|\r){0,1}/);i-=s.length,yield n.replaceTextRange([i,o],`${d}${r}`)},removeSpacesAfter:n0,fixSpaceAroundKeyword:n4,replaceStringLiteral:function(e,t,r,n,u){let a=t.range[0]+1,i=Number.isInteger(u)?n+a:a,o=Number.isInteger(u)?u+a:t.range[1]-1;return e.replaceTextRange([i,o],r)},addParenthesizesToReturnOrThrowExpression:nQ};let{appendArgument:us}=uo,{isMethodCall:ud}=tL,{isArrayPrototypeProperty:ul}=nx,uc="require-array-join-separator";var uf=/*@__PURE__*/Q({create:e=>({CallExpression(t){if(!(ud(t,{method:"join",argumentsLength:0,optionalCall:!1})||ud(t,{method:"call",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&ul(t.callee.object,{property:"join"})))return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2),a=1===t.arguments.length;return{loc:{start:n.loc[a?"end":"start"],end:u.loc.end},messageId:uc,fix:e=>us(e,t,"','",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the separator argument with `Array#join()`.",recommended:!0},fixable:"code",messages:{[uc]:"Missing the separator argument."}}});let{getStaticValue:up,getPropertyName:um}=tn,{isMethodCall:ug}=tL,uy="no-thenable-object",uh="no-thenable-export",ub="no-thenable-class",uv=(e,t)=>up(e,t.sourceCode.getScope(e))?.value==="then",ux=(e,t)=>{try{return"then"===um(e,t.sourceCode.getScope(e))}catch{}return!1},uE=[{selector:"ObjectExpression",*getNodes(e,t){for(let r of e.properties)"Property"===r.type&&ux(r,t)&&(yield r.key)},messageId:uy},{selectors:["PropertyDefinition","MethodDefinition"],*getNodes(e,t){"then"===um(e,t.sourceCode.getScope(e))&&(yield e.key)},messageId:ub},{selector:"MemberExpression",*getNodes(e,t){"AssignmentExpression"===e.parent.type&&e.parent.left===e&&"then"===um(e,t.sourceCode.getScope(e))&&(yield e.property)},messageId:uy},{selector:"CallExpression",*getNodes(e,t){if(!(ug(e,{objects:["Object","Reflect"],method:"defineProperty",minimumArguments:3,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==e.arguments[0].type))return;let[,r]=e.arguments;uv(r,t)&&(yield r)},messageId:uy},{selector:"CallExpression",*getNodes(e,t){if(ug(e,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"ArrayExpression"===e.arguments[0].type){for(let r of e.arguments[0].elements)if(r?.type==="ArrayExpression"&&r.elements[0]&&"SpreadElement"!==r.elements[0].type){let[e]=r.elements;uv(e,t)&&(yield e)}}},messageId:uy},{selector:"Identifier",*getNodes(e){"then"===e.name&&"ExportSpecifier"===e.parent.type&&e.parent.exported===e&&(yield e)},messageId:uh},{selector:"Identifier",*getNodes(e){"then"===e.name&&("FunctionDeclaration"===e.parent.type||"ClassDeclaration"===e.parent.type)&&e.parent.id===e&&"ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent&&(yield e)},messageId:uh},{selector:"VariableDeclaration",*getNodes(e,t){if("ExportNamedDeclaration"===e.parent.type&&e.parent.declaration===e)for(let r of t.sourceCode.getDeclaredVariables(e))"then"===r.name&&(yield*r.identifiers)},messageId:uh}];var uA=/*@__PURE__*/Q({create:e=>{for(let{selector:t,selectors:r,messageId:n,getNodes:u}of uE)e.on(t??r,function*(t){for(let r of u(t,e))yield{node:r,messageId:n}})},meta:{type:"problem",docs:{description:"Disallow `then` property.",recommended:!0},messages:{[uy]:"Do not add `then` to an object.",[uh]:"Do not export `then`.",[ub]:"Do not add `then` to a class."}}});let{getFunctionHeadLocation:uD}=tn,{isMethodCall:uC}=tL,uS="no-invalid-remove-event-listener";var uw=/*@__PURE__*/Q({create:e=>({CallExpression(t){if(!(uC(t,{method:"removeEventListener",minimumArguments:2,optionalCall:!1,optionalMember:!1})&&"SpreadElement"!==t.arguments[0].type&&("FunctionExpression"===t.arguments[1].type||"ArrowFunctionExpression"===t.arguments[1].type||uC(t.arguments[1],{method:"bind",optionalCall:!1,optionalMember:!1}))))return;let[,r]=t.arguments;return["ArrowFunctionExpression","FunctionExpression"].includes(r.type)?{node:r,loc:uD(r,e.sourceCode),messageId:uS}:{node:r.callee.property,messageId:uS}}}),meta:{type:"problem",docs:{description:"Prevent calling `EventTarget#removeEventListener()` with the result of an expression.",recommended:!0},messages:{[uS]:"The listener argument should be a function reference."}}});let{getFunctionHeadLocation:uF,getFunctionNameWithKind:u_}=tn,{getReferences:uk,isNodeMatches:uT}=nx,{functionTypes:uP}=tL,uI="consistent-function-scoping",uB=(e,t)=>e&&t&&(e===t||e.block===t.block),uj=["useState","useEffect","useContext","useReducer","useCallback","useMemo","useRef","useImperativeHandle","useLayoutEffect","useDebugValue"].flatMap(e=>[e,`React.${e}`]),uO=e=>e.block?.parent?.callee&&uT(e.block.parent.callee,uj),uR=e=>"function"===e.type&&e.block?.type==="ArrowFunctionExpression"&&(e.thisFound||e.childScopes.some(e=>uR(e))),uL=new Set(["FunctionExpression","ArrowFunctionExpression"]),uN=e=>uL.has(e.type)&&"CallExpression"===e.parent.type&&e.parent.callee===e;var uM=/*@__PURE__*/Q({create:e=>{let{checkArrowFunctions:t}={checkArrowFunctions:!0,...e.options[0]},{sourceCode:r}=e,{scopeManager:n}=r,u=[];e.on(uP,()=>{u.push(!1)}),e.on("JSXElement",()=>{u.length>0&&(u[u.length-1]=!0)}),e.onExit(uP,e=>{if(!(u.pop()||"ArrowFunctionExpression"===e.type&&!t||function(e,t){let r=t.acquire(e);if(!r||uR(r))return!0;let n=e.parent;"VariableDeclarator"===n.type&&(n=n.parent),"VariableDeclaration"===n.type&&(n=n.parent),"BlockStatement"===n.type&&(n=n.parent);let u=t.acquire(n);return!!(!u||"global"===u.type||uO(u)||uN(n))||function(e,t,r){let n=e=>e.some(e=>{if(uB(t,e.from))return!0;let{resolved:r}=e,[n]=r.defs;return(n?.type!=="FunctionName"||r.name!==n.name.name)&&uB(t,r.scope)}),u=e=>e.some(e=>uB(t,r.acquire(e.node))),a=n=>n.some(n=>{if(!n.parent||"FunctionDeclaration"!==n.parent.type||r.acquire(n))return!1;let u=r.acquire(n.parent);return!(!u||uB(e,u))&&uB(t,u.upper)});return uk(e).map(({resolved:e})=>e).filter(Boolean).some(e=>n(e.references)||u(e.defs)||a(e.identifiers))}(r,u,t)}(e,n)))return{node:e,loc:uF(e,r),messageId:uI,data:{functionNameWithKind:u_(e,r)}}})},meta:{type:"suggestion",docs:{description:"Move function definitions to the highest possible scope.",recommended:!0},schema:[{type:"object",additionalProperties:!1,properties:{checkArrowFunctions:{type:"boolean",default:!0}}}],messages:{[uI]:"Move {{functionNameWithKind}} to the outer scope."}}});let{getStaticValue:u$}=tn,{isNumberLiteral:uz}=tL,uU=(e,t,r)=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.object.type&&e.object.name===t&&"Identifier"===e.property.type&&r.has(e.property.name),uq=(e,t)=>"CallExpression"===e.type&&!e.optional&&"Identifier"===e.callee.type&&e.callee.name===t,uW=new Set(["E","LN2","LN10","LOG2E","LOG10E","PI","SQRT1_2","SQRT2"]),uV=e=>uU(e,"Math",uW),uZ=new Set(["abs","acos","acosh","asin","asinh","atan","atanh","atan2","cbrt","ceil","clz32","cos","cosh","exp","expm1","floor","fround","hypot","imul","log","log1p","log10","log2","max","min","pow","random","round","sign","sin","sinh","sqrt","tan","tanh","trunc"]),uG=e=>"CallExpression"===e.type&&!e.optional&&uU(e.callee,"Math",uZ),uH=e=>uq(e,"Number"),uK=new Set(["EPSILON","MAX_SAFE_INTEGER","MAX_VALUE","MIN_SAFE_INTEGER","MIN_VALUE","NaN","NEGATIVE_INFINITY","POSITIVE_INFINITY"]),uX=e=>uU(e,"Number",uK),uJ=new Set(["parseFloat","parseInt"]),uY=e=>"CallExpression"===e.type&&!e.optional&&uU(e.callee,"Number",uJ),uQ=e=>uq(e,"parseInt")||uq(e,"parseFloat"),u0=(e,t)=>"number"==typeof u$(e,t)?.value,u1=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,u2=new Set(["-","*","/","%","**","<<",">>","|","^","&"]);var u3=function e(t,r){if(uz(t)||uV(t)||uG(t)||uH(t)||uX(t)||uY(t)||uQ(t)||u1(t))return!0;switch(t.type){case"AssignmentExpression":{let{operator:n}=t;if("="===n&&e(t.right,r))return!0}case"BinaryExpression":{let{operator:n}=t;if("AssignmentExpression"===t.type&&(n=n.slice(0,-1)),"+"===n&&e(t.left,r)&&e(t.right,r)||">>>"===n||u2.has(n)&&(e(t.left,r)||e(t.right,r)))return!0;break}case"UnaryExpression":{let{operator:n}=t;if("+"===n||("-"===n||"~"===n)&&e(t.argument,r))return!0;break}case"UpdateExpression":if(e(t.argument,r))return!0;break;case"ConditionalExpression":{let n=e(t.consequent,r),u=e(t.alternate,r);if(n&&u)return!0;let a=u$(t.test,r);if(null!==a&&(a.value&&n||!a.value&&u))return!0;break}case"SequenceExpression":if(e(t.expressions.at(-1),r))return!0}return u0(t,r)};let{getStaticValue:u4}=tn,{switchNewExpressionToCallExpression:u5}=uo,{isNewExpression:u8}=tL,u6="error",u9="error-unknown",u7="suggestion",ae=(e,t)=>{if(1!==e.length)return"from";let[r]=e;if("SpreadElement"===r.type)return;if("ArrayExpression"===r.type||"TemplateLiteral"===r.type)return"from";if(u3(r,t))return"alloc";let n=u4(r,t);if(n){let{value:e}=n;if("string"==typeof e||Array.isArray(e))return"from"}};function at(e,t,r){return function*(n){yield n.insertTextAfter(e.callee,`.${r}`),yield*u5(e,t,n)}}var ar=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e;return{NewExpression(e){if(!u8(e,{name:"Buffer"}))return;let r=ae(e.arguments,t.getScope(e));return r?{node:e,messageId:u6,data:{method:r},fix:at(e,t,r)}:{node:e,messageId:u9,suggest:["from","alloc"].map(r=>({messageId:u7,data:{replacement:r},fix:at(e,t,r)}))}}}},meta:{type:"problem",docs:{description:"Enforce the use of `Buffer.from()` and `Buffer.alloc()` instead of the deprecated `new Buffer()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[u6]:"`new Buffer()` is deprecated, use `Buffer.{{method}}()` instead.",[u9]:"`new Buffer()` is deprecated, use `Buffer.alloc()` or `Buffer.from()` instead.",[u7]:"Switch to `Buffer.{{replacement}}()`."}}});let{isStringLiteral:an,isMethodCall:au}=tL,aa="no-console-spaces",ai=e=>e.length>1&&" "===e.charAt(0)&&" "!==e.charAt(1),ao=e=>e.length>1&&" "===e.at(-1)&&" "!==e.at(-2);var as=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e,r=(e,r,n)=>{let u="leading"===n?e.range[0]+1:e.range[1]-2,a=[u,u+1];return{loc:ns(a,t),messageId:aa,data:{method:r,position:n},fix:e=>e.removeRange(a)}};return{*CallExpression(e){if(!au(e,{object:"console",methods:["log","debug","info","warn","error"],minimumArguments:1,optionalCall:!1,optionalMember:!1}))return;let n=e.callee.property.name,{arguments:u}=e,{length:a}=u;for(let[e,i]of u.entries()){if(!an(i)&&"TemplateLiteral"!==i.type)continue;let u=t.getText(i).slice(1,-1);0!==e&&ai(u)&&(yield r(i,n,"leading")),e!==a-1&&ao(u)&&(yield r(i,n,"trailing"))}}}},meta:{type:"suggestion",docs:{description:"Do not use leading/trailing space between `console.log` parameters.",recommended:!0},fixable:"code",messages:{[aa]:"Do not use {{position}} space between `console.{{method}}` parameters."}}});let{isEmptyNode:ad,isDirective:al}=tL,ac="no-empty-file",af=e=>ad(e,al),ap=e=>"Line"===e.type&&e.value.startsWith("/"),am=e=>e.some(e=>ap(e));var ag=/*@__PURE__*/Q({create:e=>{let t=e.physicalFilename;if(/\.(?:js|mjs|cjs|jsx|ts|mts|cts|tsx)$/i.test(t))return{Program(t){if(t.body.some(e=>!af(e)))return;let{sourceCode:r}=e;if(!am(r.getAllComments()))return{node:t,messageId:ac}}}},meta:{type:"suggestion",docs:{description:"Disallow empty files.",recommended:!0},messages:{[ac]:"Empty files are not allowed."}}});let{isParenthesized:ay,getParenthesizedRange:ah}=tm,{removeParentheses:ab}=uo,av="no-useless-fallback-in-spread";var ax=/*@__PURE__*/Q({create:e=>({ObjectExpression(t){if(0===t.properties.length&&"LogicalExpression"===t.parent.type&&t.parent.right===t&&("||"===t.parent.operator||"??"===t.parent.operator)&&"SpreadElement"===t.parent.parent.type&&t.parent.parent.argument===t.parent&&"ObjectExpression"===t.parent.parent.parent.type&&t.parent.parent.parent.properties.includes(t.parent.parent))return{node:t,messageId:av,*fix(r){let{sourceCode:n}=e,u=t.parent,{left:a}=u,i=ay(a,n),[,o]=i?ah(a,n):a.range,[,s]=u.range;yield r.removeRange([o,s]),(i||"SequenceExpression"!==a.type)&&(yield*ab(u,r,n))}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless fallback when spreading in object literals.",recommended:!0},fixable:"code",messages:{[av]:"The empty object is useless."}}});let{isMethodCall:aE,isMemberExpression:aA}=tL,{getParenthesizedRange:aD,isSameReference:aC,isLogicalExpression:aS}=nx,aw=e=>"BinaryExpression"===e.type&&"Literal"===e.right.type&&"0"===e.right.raw&&aA(e.left,{property:"length",optional:!1})&&aS(e.parent);var aF=/*@__PURE__*/Q({create:e=>{let t=[],r=new Set,n=new Set,u=new Set,a=new Set;return{BinaryExpression(e){if(aw(e)){let{operator:t}=e;"==="===t?r.add(e):(">"===t||"!=="===t)&&n.add(e)}},CallExpression(e){aE(e,{optionalCall:!1,optionalMember:!1,computed:!1})&&"Identifier"===e.callee.property.type&&("some"===e.callee.property.name?u.add(e):"every"===e.callee.property.name&&a.add(e))},LogicalExpression(e){aS(e)&&t.push(e)},*"Program:exit"(){for(let i of new Set(t.flatMap(e=>(function(e){let{operator:t}=e;return(function e(t){return[t.left,t.right].flatMap(r=>"LogicalExpression"===r.type&&r.operator===t.operator?e(r):[r])})(e).filter((e,i,o)=>(function({node:e,operator:t,siblings:i}){return"||"===t&&r.has(e)&&i.some(t=>a.has(t)&&aC(e.left.object,t.callee.object))||"&&"===t&&n.has(e)&&i.some(t=>u.has(t)&&aC(e.left.object,t.callee.object))})({node:e,operator:t,siblings:[o[i-1],o[i+1]].filter(Boolean)}))})(e))))yield{loc:{start:i.left.property.loc.start,end:i.loc.end},messageId:r.has(i)?"zero":"non-zero",fix(t){let{sourceCode:r}=e,{left:n,right:u}=i.parent,a=aD(n,r),o=aD(u,r),s=[];return n===i?(s[0]=a[0],s[1]=o[0]):(s[0]=a[1],s[1]=o[1]),t.removeRange(s)}}}}},meta:{type:"suggestion",docs:{description:"Disallow useless array length check.",recommended:!0},fixable:"code",messages:{"non-zero":"The non-empty check is useless as `Array#some()` returns `false` for an empty array.",zero:"The empty check is useless as `Array#every()` returns `true` for an empty array."}}});let{getParenthesizedRange:a_}=nx,{isFunction:ak,isMethodCall:aT}=tL;var aP=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e;return{CallExpression(e){if(!(aT(e,{object:"Promise",methods:["resolve","reject"],optionalCall:!1,optionalMember:!1})&&("ArrowFunctionExpression"===e.parent.type&&e.parent.body===e||"ReturnStatement"===e.parent.type&&e.parent.argument===e||"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)))return;let{functionNode:r,isInTryStatement:n}=function(e){let t,r=!1;for(;e;e=e.parent){if(ak(e)){t=e;break}"TryStatement"===e.type&&(r=!0)}return{functionNode:t,isInTryStatement:r}}(e);if(r&&(r.async||function(e){if("CallExpression"===e.parent.type&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&"Identifier"===e.parent.callee.property.type){let{callee:{property:t},arguments:r}=e.parent;if(1===r.length&&("then"===t.name||"catch"===t.name||"finally"===t.name)&&r[0]===e||2===r.length&&"then"===t.name&&(r[0]===e||"SpreadElement"!==r[0].type&&r[1]===e))return!0}return!1}(r)))return function(e,t){let{callee:r,parent:n}=e,u=r.property.name;return{node:r,messageId:u,data:{type:"YieldExpression"===n.type?"yield":"return"},fix:t}}(e,function(e,t,r){if(e.arguments.length>1)return;let{callee:n,parent:u,arguments:[a]}=e;if(a?.type==="SpreadElement")return;let i="reject"===n.property.name,o="YieldExpression"===u.type;if(!i||!t&&(!o||"ExpressionStatement"===u.parent.type))return function(t){let n="ArrowFunctionExpression"===u.type,s=a?r.getText(a):"";if(a?.type==="SequenceExpression"&&(s=`(${s})`),i){if(s||="undefined",s=`throw ${s}`,o)return t.replaceTextRange(a_(u,r),s);if(s+=";",n)return s=`{ ${s} }`,t.replaceTextRange(a_(e,r),s)}else o?s=`yield${s?" ":""}${s}`:"ReturnStatement"===u.type?s=`return${s?" ":""}${s};`:(a?.type==="ObjectExpression"&&(s=`(${s})`),s||="{}");return t.replaceText(n?e:u,s)}}(e,n,t))}}},meta:{type:"suggestion",docs:{description:"Disallow returning/yielding `Promise.resolve/reject()` in async functions or promise callbacks",recommended:!0},fixable:"code",messages:{resolve:"Prefer `{{type}} value` over `{{type}} Promise.resolve(value)`.",reject:"Prefer `throw error` over `{{type}} Promise.reject(error)`."}}});let{isParenthesized:aI}=tn,{isDecimalInteger:aB}=nn,{fixSpaceAroundKeyword:aj}=uo,{isNumberLiteral:aO}=tL,aR="zero-fraction",aL="dangling-dot";var aN=/*@__PURE__*/Q({create:e=>({Literal(t){if(!aO(t))return;let{raw:r}=t,n=r.match(/^(?<before>[\d_]*)(?<dotAndFractions>\.[\d_]*)(?<after>.*)$/);if(!n)return;let{before:u,dotAndFractions:a,after:i}=n.groups,o=(u+a.replaceAll(/[.0_]+$/g,"")||"0")+i;if(o===r)return;let s="."===a,d=t.range[0]+u.length+a.length,l=d-(r.length-o.length),{sourceCode:c}=e;return{loc:ns([l,d],c),messageId:s?aL:aR,*fix(e){let r=o;"MemberExpression"===t.parent.type&&t.parent.object===t&&aB(o)&&!aI(t,c)&&(r=`(${r})`,r5(c.getTokenBefore(t),c,r)&&(r=`;${r}`)),yield e.replaceText(t,r),yield*aj(e,t,c)}}}}),meta:{type:"suggestion",docs:{description:"Disallow number literals with zero fractions or dangling dots.",recommended:!0},fixable:"code",messages:{[aR]:"Don't use a zero fraction in the number.",[aL]:"Don't use a dangling dot in the number."}}});let{isCommaToken:aM,isOpeningBraceToken:a$,isClosingBraceToken:az}=tn,{isStringLiteral:aU}=tL,aq="error",aW="suggestion",aV=Symbol.for("default"),aZ=Symbol("NAMESPACE_SPECIFIER_NAME"),aG=e=>{switch(e.type){case"Identifier":return Symbol.for(e.name);case"Literal":return e.value}},aH=e=>"type"===e.exportKind||"type"===e.parent.exportKind,aK=e=>"type"===e.importKind||"type"===e.parent.importKind;function*aX(e,t,r){switch(e.type){case"ImportSpecifier":case"ExportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":yield*function*(e,t,r){let{parent:n}=e,{specifiers:u}=n;if(1===u.length){yield*aX(n,t,r);return}switch(e.type){case"ImportSpecifier":if(!u.some(t=>t!==e&&t.type===e.type)){let n=r.getTokenAfter(e,az),u=r.getTokenBefore(e,aM);yield t.replaceTextRange([u.range[0],n.range[1]],"");return}case"ExportSpecifier":case"ImportNamespaceSpecifier":case"ImportDefaultSpecifier":{yield t.remove(e);let n=r.getTokenAfter(e);aM(n)&&(yield t.remove(n))}}}(e,t,r);return;case"ImportDeclaration":case"ExportDefaultDeclaration":case"ExportNamedDeclaration":yield t.remove(e)}}function aJ(e,t){let[r]=t.getTokenBefore(e.source,e=>"Identifier"===e.type&&"from"===e.value).range,[,n]=e.range;return t.text.slice(r,n)}var aY=/*@__PURE__*/Q({create:function(e){let{sourceCode:t}=e,{ignoreUsedVariables:r}={ignoreUsedVariables:!1,...e.options[0]},n=new Set,u=[];return{ImportDeclaration(e){e.specifiers.length>0&&n.add(e)},ExportNamedDeclaration(e){aU(e.source)&&u.push(e)},*"Program:exit"(e){for(let a of n){let n=t.getDeclaredVariables(a);if(n.some(e=>1!==e.defs.length||e.defs[0].parent!==a)||(n=n.map(e=>{let r=function(e,t){let r=e.defs[0].node,n={node:r,declaration:r.parent,variable:e,isTypeImport:aK(r)};switch(r.type){case"ImportDefaultSpecifier":return{name:aV,text:"default",...n};case"ImportSpecifier":return{name:aG(r.imported),text:t.getText(r.imported),...n};case"ImportNamespaceSpecifier":return{name:aZ,text:"*",...n}}}(e,t),n=function(e,t){let r=[];for(let{identifier:n}of e.variable.references){let u=function(e,t){let{parent:r}=e;switch(r.type){case"ExportDefaultDeclaration":return{node:r,name:aV,text:"default",isTypeExport:aH(r)};case"ExportSpecifier":return{node:r,name:aG(r.exported),text:t.getText(r.exported),isTypeExport:aH(r)};case"VariableDeclarator":if(r.init===e&&"Identifier"===r.id.type&&!r.id.typeAnnotation&&"VariableDeclaration"===r.parent.type&&"const"===r.parent.kind&&1===r.parent.declarations.length&&r.parent.declarations[0]===r&&"ExportNamedDeclaration"===r.parent.parent.type&&function(e,t){let r=t.getDeclaredVariables(e);if(1!==r.length)return!1;let[{identifiers:n,references:u}]=r;return 1===n.length&&n[0]===e.id&&1===u.length&&u[0].identifier===e.id}(r,t))return{node:r.parent.parent,name:Symbol.for(r.id.name),text:t.getText(r.id)}}}(n,t);u&&(e.name!==aZ||u.name!==aV)&&r.push(u)}return r}(r,t);return{variable:e,imported:r,exports:n}}),r&&n.some(({variable:e,exports:t})=>e.references.length!==t.length)))continue;let i=r&&n.some(({variable:e})=>0===e.references.length);for(let{imported:r,exports:a}of n)for(let n of a){let a={node:n.node,messageId:aq,data:{exported:n.text}},o=function({sourceCode:e,imported:t,exported:r,exportDeclarations:n,program:u}){let a;let i=t.declaration,o=i.source.value,s=t.isTypeImport||r.isTypeExport;return s&&(a=n.find(({source:e,exportKind:t})=>e.value===o&&"type"===t)),a||=n.find(({source:e,exportKind:t})=>e.value===o&&"type"!==t),function*(n){if(t.name===aZ)yield n.insertTextAfter(u,`
2
+ export * as ${r.text} ${aJ(i,e)}`);else{let o=r.name===t.name?r.text:`${t.text} as ${r.text}`;if(s&&(!a||"type"!==a.exportKind)&&(o=`type ${o}`),a){let t=a.specifiers.at(-1);if(t)yield n.insertTextAfter(t,`, ${o}`);else{let t=e.getFirstToken(a,a$);yield n.insertTextAfter(t,o)}}else yield n.insertTextAfter(u,`
3
+ export {${o}} ${aJ(i,e)}`)}1===t.variable.references.length&&(yield*aX(t.node,n,e)),yield*aX(r.node,n,e)}}({sourceCode:t,imported:r,exported:n,exportDeclarations:u,program:e});i?a.suggest=[{messageId:aW,fix:o}]:a.fix=o,yield a}}}}},meta:{type:"suggestion",docs:{description:"Prefer `export…from` when re-exporting.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignoreUsedVariables:{type:"boolean",default:!1}}}],messages:{[aq]:"Use `export…from` to re-export `{{exported}}`.",[aW]:"Switch to `export…from`."}}});let{getFunctionHeadLocation:aQ,getFunctionNameWithKind:a0}=tn,{functionTypes:a1}=tL,a2="prefer-native-coercion-functions",a3=new Set(["String","Number","BigInt","Boolean","Symbol"]),a4=new Set(["every","filter","find","findLast","findIndex","findLastIndex","some"]),a5=(e,t)=>e?.type==="CallExpression"&&!e.optional&&"Identifier"===e.callee.type&&a3.has(e.callee.name)&&e.arguments[0]?.type==="Identifier"&&e.arguments[0].name===t,a8=e=>"ArrowFunctionExpression"===e.type&&"Identifier"===e.body.type&&e.body.name===e.params[0].name||"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&e.body.body[0].argument?.type==="Identifier"&&e.body.body[0].argument.name===e.params[0].name,a6=e=>a8(e)&&"CallExpression"===e.parent.type&&!e.parent.optional&&e.parent.arguments[0]===e&&"MemberExpression"===e.parent.callee.type&&!e.parent.callee.computed&&!e.parent.callee.optional&&"Identifier"===e.parent.callee.property.type&&a4.has(e.parent.callee.property.name);var a9=/*@__PURE__*/Q({create:e=>{e.on(a1,t=>{if(t.async||t.generator||0===t.params.length||"Identifier"!==t.params[0].type||("MethodDefinition"===t.parent.type&&("constructor"===t.parent.kind||"set"===t.parent.kind)||"Property"===t.parent.type&&"set"===t.parent.kind)&&t.parent.value===t)return;let r=function(e){if(a6(e))return{replacementFunction:"Boolean",fix:t=>t.replaceText(e,"Boolean")}}(t)||function(e){let t=function(e){let t=e.params[0].name;return"ArrowFunctionExpression"===e.type&&a5(e.body,t)?e.body:"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&a5(e.body.body[0].argument,t)?e.body.body[0].argument:void 0}(e);if(!t)return;let{name:r}=t.callee,n={replacementFunction:r};return"FunctionDeclaration"===e.type||1!==t.arguments.length||(n.fix=t=>{let n=r;return"Property"===e.parent.type&&e.parent.method&&e.parent.value===e?n=`: ${n}`:"MethodDefinition"===e.parent.type&&(n=` = ${n};`),t.replaceText(e,n)}),n}(t);if(!r)return;let{sourceCode:n}=e,{replacementFunction:u,fix:a}=r;return r={node:t,loc:aQ(t,n),messageId:a2,data:{functionNameWithKind:a0(t,n),replacementFunction:u}},!a||1!==t.params.length||n.getCommentsInside(t).length>0||(r.fix=a),r})},meta:{type:"suggestion",docs:{description:"Prefer using `String`, `Number`, `BigInt`, `Boolean`, and `Symbol` directly.",recommended:!0},fixable:"code",messages:{[a2]:"{{functionNameWithKind}} is equivalent to `{{replacementFunction}}`. Use `{{replacementFunction}}` directly."}}});let{ReferenceTracker:a7}=tn,ie=(e,t)=>{let r={[t]:!0};for(let t of e.split(".").reverse())r={[t]:r};return r},it=class{#e={};#t;#r;constructor({object:e,objects:t=[e],filter:r,handle:n,type:u=a7.READ}){for(let e of t)Object.assign(this.#e,ie(e,u));this.#t=r,this.#r=n}*track(e){for(let t of new a7(e).iterateGlobalReferences(this.#e)){if(this.#t&&!this.#t(t))continue;let e=this.#r(t);e&&(e[Symbol.iterator]?yield*e:yield e)}}createListeners(e){return{"Program:exit":t=>this.track(e.sourceCode.getScope(t))}}};Object.assign(it,{READ:a7.READ,CALL:a7.CALL,CONSTRUCT:a7.CONSTRUCT});var ir={GlobalReferenceTracker:it};let{GlobalReferenceTracker:iu}=ir,ia="no-document-cookie",ii=new iu({object:"document.cookie",filter:({node:e})=>"AssignmentExpression"===e.parent.type&&e.parent.left===e,handle:({node:e})=>({node:e,messageId:ia})});var io=/*@__PURE__*/Q({create:e=>ii.createListeners(e),meta:{type:"problem",docs:{description:"Do not use `document.cookie` directly.",recommended:!0},messages:{[ia]:"Do not use `document.cookie` directly."}}});let is=e=>[`webkit${e}`,`o${e.toLowerCase()}`,e.toLowerCase()];var id=new Set(["click","rightclick","dblclick","auxclick","mousedown","mouseup","mouseover","mouseout","mousemove","mouseenter","mouseleave","mousecancel","selectionchange","selectstart","wheel","keypress","keydown","keyup","blur","focus","deactivate","focusin","focusout","change","reset","select","submit","input","propertychange","dragstart","drag","dragenter","dragover","dragleave","drop","dragend","touchstart","touchmove","touchend","touchcancel","beforeunload","consolemessage","contextmenu","devicechange","devicemotion","deviceorientation","DOMContentLoaded","error","help","load","losecapture","orientationchange","readystatechange","resize","scroll","unload","canplay","canplaythrough","durationchange","emptied","ended","loadeddata","loadedmetadata","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting","sourceopen","sourceended","sourceclosed","abort","update","updatestart","updateend","hashchange","pagehide","pageshow","popstate","copy","paste","cut","beforecopy","beforecut","beforepaste","online","offline","message","connect","install","activate","fetch","foreignfetch","messageerror","statechange","updatefound","controllerchange",...is("AnimationStart"),...is("AnimationEnd"),...is("AnimationIteration"),...is("TransitionEnd"),"pointerdown","pointerup","pointercancel","pointermove","pointerover","pointerout","pointerenter","pointerleave","gotpointercapture","lostpointercapture","MSGestureChange","MSGestureEnd","MSGestureHold","MSGestureStart","MSGestureTap","MSGotPointerCapture","MSInertiaStart","MSLostPointerCapture","MSPointerCancel","MSPointerDown","MSPointerEnter","MSPointerHover","MSPointerLeave","MSPointerMove","MSPointerOut","MSPointerOver","MSPointerUp","text","textinput","textInput","compositionstart","compositionupdate","compositionend","beforeinput","exit","loadabort","loadcommit","loadredirect","loadstart","loadstop","responsive","sizechanged","unresponsive","visibilitychange","storage","DOMSubtreeModified","DOMNodeInserted","DOMNodeRemoved","DOMNodeRemovedFromDocument","DOMNodeInsertedIntoDocument","DOMAttrModified","DOMCharacterDataModified","beforeprint","afterprint","beforeinstallprompt","appinstalled","afterblur","beforeblur","cancel","close","dragexit","encrypted","fullscreenchange","invalid","toggle","search","open","show"]);let{isParenthesized:il}=tn,{isUndefined:ic,isNullLiteral:ip,isStaticRequire:im}=tL,ig="prefer-add-event-listener",iy={beforeunload:"Use `event.preventDefault(); event.returnValue = 'foo'` to trigger the prompt.",message:"Note that there is difference between `SharedWorker#onmessage` and `SharedWorker#addEventListener('message')`.",error:"Note that there is difference between `{window,element}.onerror` and `{window,element}.addEventListener('error')`."},ih=e=>e.property.name,ib=e=>e.slice(2),iv=(e,t,r,n)=>{let u=ib(ih(n)),a=t.getText(n.object);il(n.object,t)&&(a=`(${a})`);let i=t.getText(r.right);il(r.right,t)&&(i=`(${i})`);let o=`${a}.addEventListener('${u}', ${i})`;return e.replaceText(r,o)},ix=(e,t)=>("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&"BlockStatement"===e.body.type&&!t.get(e),iE=e=>ic(e)||ip(e);var iA=/*@__PURE__*/Q({create:e=>{let t,r;let n=new Set((e.options[0]||{}).excludedPackages||["koa","sax"]),u=new WeakMap;return{onCodePathStart(e,t){r={node:t,upper:r,returnsSomething:!1}},onCodePathEnd(){u.set(r.node,r.returnsSomething),r=r.upper},CallExpression(e){im(e)&&!t&&n.has(e.arguments[0].value)&&(t=!0)},Literal(e){"ImportDeclaration"===e.parent.type&&!t&&n.has(e.value)&&(t=!0)},ReturnStatement(e){r.returnsSomething||=!!e.argument},"AssignmentExpression:exit"(r){let n;if(t)return;let{left:a,right:i,operator:o}=r;if("MemberExpression"!==a.type||a.computed)return;let s=ih(a);if(!s||!s.startsWith("on"))return;let d=ib(s);if(!id.has(d))return;let l="addEventListener",c="";return iE(i)?l="removeEventListener":"beforeunload"!==d||ix(i,u)?"message"===d?c=iy.message:"error"===d?c=iy.error:"="===o&&"ExpressionStatement"===r.parent.type&&r.parent.expression===r&&(n=t=>iv(t,e.sourceCode,r,a)):c=iy.beforeunload,{node:a.property,messageId:ig,data:{replacement:l,method:s,extra:c?` ${c}`:""},fix:n}}}},meta:{type:"suggestion",docs:{description:"Prefer `.addEventListener()` and `.removeEventListener()` over `on`-functions.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{excludedPackages:{type:"array",items:{type:"string"},uniqueItems:!0}}}],messages:{[ig]:"Prefer `{{replacement}}` over `{{method}}`.{{extra}}"}}});let{hasSideEffect:iD,isParenthesized:iC,findVariable:iS}=tn,{isMethodCall:iw}=tL,{isSameIdentifier:iF,isFunctionSelfUsedInside:i_}=nx,ik=(e,t)=>"BinaryExpression"===e.type&&"==="===e.operator&&(iF(e.left,t)||iF(e.right,t)),iT=e=>"ArrowFunctionExpression"===e.type&&!e.async&&1===e.params.length&&ik(e.body,e.params[0])||("ArrowFunctionExpression"===e.type||"FunctionExpression"===e.type)&&!e.async&&!e.generator&&1===e.params.length&&"BlockStatement"===e.body.type&&1===e.body.body.length&&"ReturnStatement"===e.body.body[0].type&&ik(e.body.body[0].argument,e.params[0]),iP=({type:e,name:t},r)=>"Identifier"===e&&t===r,iI=function({method:e,replacement:t}){let r=`prefer-${t}-over-${e}/`,n=`${r}error`,u=`${r}suggestion`;return{messages:{[n]:({findIndex:"Use `.indexOf()` instead of `.findIndex()` when looking for the index of an item.",findLastIndex:"Use `.lastIndexOf()` instead of `findLastIndex() when looking for the index of an item.`",some:`Use \`.${t}()\` instead of \`.${e}()\` when checking value existence.`})[e],[u]:`Replace \`.${e}()\` with \`.${t}()\`.`},listen:function(r){let{sourceCode:a}=r,{scopeManager:i}=a;r.on("CallExpression",r=>{let o,s;if(!iw(r,{method:e,argumentsLength:1,optionalCall:!1,optionalMember:!1})||!iT(r.arguments[0]))return;let[d]=r.arguments,l="BinaryExpression"===d.body.type?d.body:d.body.body[0].argument,[c]=d.params,{left:f,right:p}=l,{name:m}=c;if(iP(f,m))o=p,s=f;else{if(!iP(p,m))return;o=f,s=p}let g=i.acquire(d);if(iS(g,c).references.some(({identifier:e})=>e!==s)||i_(d,g))return;let y=r.callee.property,h={node:y,messageId:n,suggest:[]},b=function*(e){let r=a.getText(o);iC(o,a)&&!iC(d,a)&&(r=`(${r})`),yield e.replaceText(y,t),yield e.replaceText(d,r)};return iD(o,a)?h.suggest.push({messageId:u,fix:b}):h.fix=b,h})}}},iB=iI({method:"findIndex",replacement:"indexOf"}),ij=iI({method:"findLastIndex",replacement:"lastIndexOf"});var iO=/*@__PURE__*/Q({create(e){iB.listen(e),ij.listen(e)},meta:{type:"suggestion",docs:{description:"Prefer `Array#{indexOf,lastIndexOf}()` over `Array#{findIndex,findLastIndex}()` when looking for the index of an item.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{...iB.messages,...ij.messages}}});let{isMethodCall:iR}=tL,iL="error";var iN=/*@__PURE__*/Q({create:()=>({CallExpression(e){if(!iR(e,{methods:["readAsText","readAsArrayBuffer"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let t=e.callee.property,r=t.name;return{node:t,messageId:iL,data:{method:r,replacement:"readAsArrayBuffer"===r?"arrayBuffer":"text"}}}}),meta:{type:"suggestion",docs:{description:"Prefer `Blob#arrayBuffer()` over `FileReader#readAsArrayBuffer(…)` and `Blob#text()` over `FileReader#readAsText(…)`.",recommended:!0},messages:{[iL]:"Prefer `Blob#{{replacement}}()` over `FileReader#{{method}}(blob)`."}}});let{isMethodCall:iM,isCallExpression:i$,isNewExpression:iz}=tL,{fixSpaceAroundKeyword:iU}=uo,iq="prefer-date",iW="prefer-date-now-over-methods",iV="prefer-date-now-over-number-data-object",iZ=e=>iz(e,{name:"Date",argumentsLength:0}),iG=(e,t,r)=>({node:e,messageId:iq,*fix(t){yield t.replaceText(e,"Date.now()"),"UnaryExpression"===e.type&&(yield*iU(t,e,r))},...t});var iH=/*@__PURE__*/Q({create:e=>({CallExpression(e){if(iM(e,{methods:["getTime","valueOf"],argumentsLength:0,optionalCall:!1,optionalMember:!1})&&iZ(e.callee.object)){let t=e.callee.property;return iG(e,{node:t,messageId:iW,data:{method:t.name}})}if(i$(e,{names:["Number","BigInt"],argumentsLength:1,optional:!1})&&iZ(e.arguments[0])){let{name:t}=e.callee;return"Number"===t?iG(e,{messageId:iV}):iG(e.arguments[0])}},UnaryExpression(t){if(("+"===t.operator||"-"===t.operator)&&iZ(t.argument))return iG("-"===t.operator?t.argument:t,{},e.sourceCode)},AssignmentExpression(e){if(("-="===e.operator||"*="===e.operator||"/="===e.operator||"%="===e.operator||"**="===e.operator)&&iZ(e.right))return iG(e.right)},*BinaryExpression(e){if("-"===e.operator||"*"===e.operator||"/"===e.operator||"%"===e.operator||"**"===e.operator)for(let t of[e.left,e.right])iZ(t)&&(yield iG(t))}}),meta:{type:"suggestion",docs:{description:"Prefer `Date.now()` to get the number of milliseconds since the Unix Epoch.",recommended:!0},fixable:"code",messages:{[iq]:"Prefer `Date.now()` over `new Date()`.",[iW]:"Prefer `Date.now()` over `Date#{{method}}()`.",[iV]:"Prefer `Date.now()` over `Number(new Date())`."}}});let{isIdentifierName:iK}=tZ,{escapeString:iX,hasOptionalChainElement:iJ,isValueNotUsable:iY}=nx,{isMethodCall:iQ,isStringLiteral:i0,isExpressionStatement:i1}=tL,i2="prefer-dom-node-dataset",i3=e=>e.replaceAll(/-[a-z]/g,e=>e[1].toUpperCase());var i4=/*@__PURE__*/Q({create:e=>({CallExpression(t){if(!((iQ(t,{method:"setAttribute",argumentsLength:2,optionalCall:!1,optionalMember:!1})||iQ(t,{methods:["getAttribute","removeAttribute","hasAttribute"],argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&i0(t.arguments[0])))return;let r=t.callee.property.name;if(("AwaitExpression"!==t.parent.type||t.parent.argument!==t||"getAttribute"!==r)&&t.arguments[0].value.toLowerCase().startsWith("data-"))return{node:t,messageId:i2,data:{method:t.callee.property.name},fix:function(e,t){let r=e.callee.property.name;if(!("setAttribute"===r&&iJ(e.callee))&&("setAttribute"!==r||iY(e))&&("removeAttribute"!==r||i1(e.parent)))return n=>{let[u]=e.arguments,a=i3(u.value.toLowerCase().slice(5)),{sourceCode:i}=t,o="",s=`${i.getText(e.callee.object)}.dataset`;switch(r){case"setAttribute":case"getAttribute":case"removeAttribute":o=iK(a)?`.${a}`:`[${iX(a,u.raw.charAt(0))}]`,o=`${s}${o}`,"setAttribute"===r?o+=` = ${i.getText(e.arguments[1])}`:"removeAttribute"===r&&(o=`delete ${o}`);break;case"hasAttribute":o=`Object.hasOwn(${s}, ${iX(a,u.raw.charAt(0))})`}return n.replaceText(e,o)}}(t,e)}}}),meta:{type:"suggestion",docs:{description:"Prefer using `.dataset` on DOM elements over calling attribute methods.",recommended:!0},fixable:"code",messages:{[i2]:"Prefer `.dataset` over `{{method}}(…)`."}}});let{getParenthesizedText:i5,getParenthesizedRange:i8,isSameReference:i6}=nx,{isLiteral:i9,isMethodCall:i7}=tL,{replaceNodeOrTokenAndSpacesBefore:oe,removeParentheses:ot}=uo,or="prefer-modern-math-apis",on=(e,t)=>"MemberExpression"===e.type&&!e.optional&&!e.computed&&"Identifier"===e.object.type&&"Math"===e.object.name&&"Identifier"===e.property.type&&e.property.name===t,ou=(e,t)=>"CallExpression"===e.type&&!e.optional&&on(e.callee,t)&&1===e.arguments.length&&"SpreadElement"!==e.arguments[0].type;function oa({constantName:e,replacementMethod:t}){let r=`Math.${t}(…)`;return function(n,u){let a,i;if(!("BinaryExpression"===n.type&&"*"===n.operator)||(ou(n.left,"log")&&on(n.right,e)?(a=n.left,i=`Math.log(…) * Math.${e}`):ou(n.right,"log")&&on(n.left,e)&&(a=n.right,i=`Math.${e} * Math.log(…)`),!a))return;let[o]=a.arguments;return{node:n,messageId:or,data:{replacement:r,description:i},fix:e=>e.replaceText(n,`Math.${t}(${i5(o,u.sourceCode)})`)}}}function oi({constantName:e,replacementMethod:t}){let r={messageId:or,data:{replacement:`Math.${t}(…)`,description:`Math.log(…) / Math.${e}`}};return function(n,u){if(!("BinaryExpression"===n.type&&"/"===n.operator&&ou(n.left,"log")&&on(n.right,e)))return;let[a]=n.left.arguments;return{...r,node:n,fix:e=>e.replaceText(n,`Math.${t}(${i5(a,u.sourceCode)})`)}}}let oo=[oa({constantName:"LOG10E",replacementMethod:"log10"}),oa({constantName:"LOG2E",replacementMethod:"log2"}),oi({constantName:"LN10",replacementMethod:"log10"}),oi({constantName:"LN2",replacementMethod:"log2"})],os=e=>"BinaryExpression"===e.type&&"+"===e.operator,od=e=>"BinaryExpression"===e.type&&("*"===e.operator&&i6(e.left,e.right)||"**"===e.operator&&i9(e.right,2)),ol=e=>os(e)?[e.left,e.right].flatMap(e=>ol(e)):[e];var oc=/*@__PURE__*/Q({create:e=>{let t=[];return{CallExpression(t){if(!i7(t,{object:"Math",method:"sqrt",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return;let r=ol(t.arguments[0]);if(r.some(e=>!od(e)))return;let n=1===r.length?"abs":"hypot",u=new Set(1===r.length?[]:r.map(e=>e.parent));return{node:t.callee.property,messageId:or,data:{replacement:`Math.${n}(…)`,description:"Math.sqrt(…)"},*fix(a){let{sourceCode:i}=e;for(let e of(yield a.replaceText(t.callee.property,n),u)){let t=i.getTokenAfter(e.left,e=>"Punctuator"===e.type&&"+"===e.value);yield*oe(t,",",a,i),yield*ot(e,a,i)}for(let e of r)yield a.removeRange([i8(e.left,i)[1],e.range[1]])}}},BinaryExpression(e){t.push(e)},*"Program:exit"(){for(let r of t)for(let t of oo){let n=t(r,e);n&&(yield n)}}}},meta:{type:"suggestion",docs:{description:"Prefer modern `Math` APIs over legacy patterns.",recommended:!0},fixable:"code",messages:{[or]:"Prefer `{{replacement}}` over `{{description}}`."}}}),of=/*@__PURE__*/ee(t);let op=e=>"function"==typeof e?.[Symbol.iterator],om=class extends Error{},og={abort(){throw new om("Fix aborted.")}};function oy(e){return t=>{let r=e(t,og);if(op(r))try{return[...r]}catch(e){if(e instanceof om)return;throw e}return r}}let oh=new Set;function ob(e){if(oh.has(e))return e;let t=t=>{let r={},n=(e,t)=>{r[e]??=[],r[e].push(t)};for(let[r,u]of Object.entries(e(new Proxy(t,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(`${r}:exit`,t)}:Reflect.get(e,t,r)}))??{}))n(r,u);return Object.fromEntries(Object.entries(r).map(([e,r])=>[e,(...e)=>{for(let n of r)!function(e,t){if(e){for(let r of(op(e)||(e=[e]),e))if(r){if(r.fix&&=oy(r.fix),Array.isArray(r.suggest))for(let e of r.suggest)e.fix&&=oy(e.fix),e.data={...r.data,...e.data};t.report(r)}}}(n(...e),t)}]))};return oh.add(t),t}function ov(e){let t=function(e){throw Error('Could not dynamically require "'+e+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}(`../${e}`);return{meta:{schema:[],...t.meta,docs:{...t.meta.docs,url:er(e)}},create:ob(t.create)}}var ox={loadRule:ov,loadRules:function(){return Object.fromEntries(of.readdirSync(et.join(__dirname,".."),{withFileTypes:!0}).filter(e=>e.isFile()).map(e=>{let t=et.basename(e.name,".js");return[t,ov(t)]}))},checkVueTemplate:function(e,t){let{visitScriptBlock:r}={visitScriptBlock:!0,...t};e=ob(e);let n=t=>{let n=e(t),{parserServices:u}=t.sourceCode;return u?.defineTemplateBodyVisitor?r?u.defineTemplateBodyVisitor(n,n):u.defineTemplateBodyVisitor(n):n};return oh.add(n),n}};let{checkVueTemplate:oE}=ox,{isNumberLiteral:oA,isBigIntLiteral:oD}=tL,oC="number-literal-case",oS=e=>{let t=e.toLowerCase();return t.startsWith("0x")&&(t="0x"+t.slice(2).toUpperCase()),t};var ow=/*@__PURE__*/Q({create:oE(()=>({Literal(e){let{raw:t}=e,r=t;if(oA(e)?r=oS(t):oD(e)&&(r=oS(t.slice(0,-1))+"n"),t!==r)return{node:e,messageId:oC,fix:t=>t.replaceText(e,r)}}})),meta:{type:"suggestion",docs:{description:"Enforce proper case for numeric literals.",recommended:!0},fixable:"code",messages:{[oC]:"Invalid number literal casing."}}});let{GlobalReferenceTracker:oF}=ir,{replaceReferenceIdentifier:o_}=uo,{fixSpaceAroundKeyword:ok}=uo,oT="error",oP="suggestion",oI={parseInt:!0,parseFloat:!0,NaN:!0,Infinity:!0,isNaN:!1,isFinite:!1},oB=e=>{let{parent:t}=e;return"UnaryExpression"===t.type&&"-"===t.operator&&t.argument===e};var oj=/*@__PURE__*/Q({create:e=>{let{checkInfinity:t,checkNaN:r}={checkInfinity:!1,checkNaN:!0,...e.options[0]},{sourceCode:n}=e;return new oF({objects:Object.keys(oI).filter(e=>(!!t||"Infinity"!==e)&&(!!r||"NaN"!==e)),handle:e=>(function({node:e,path:[t]},r){let{parent:n}=e,u=t;"Infinity"===t&&(u=oB(e)?"NEGATIVE_INFINITY":"POSITIVE_INFINITY");let a={node:e,messageId:oT,data:{description:t,property:u}};if("NEGATIVE_INFINITY"===u)return a.node=n,a.data.description="-Infinity",a.fix=function*(e){yield e.replaceText(n,"Number.NEGATIVE_INFINITY"),yield*ok(e,n,r)},a;let i=t=>o_(e,`Number.${u}`,t,r);return oI[t]?a.fix=i:a.suggest=[{messageId:oP,fix:i}],a})(e,n),filter:({node:e})=>!rq(e)}).createListeners(e)},meta:{type:"suggestion",docs:{description:"Prefer `Number` static properties over global ones.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkInfinity:{type:"boolean",default:!1},checkNaN:{type:"boolean",default:!0}}}],messages:{[oT]:"Prefer `Number.{{property}}` over `{{description}}`.",[oP]:"Replace `{{description}}` with `Number.{{property}}`."}}});let{getPropertyName:oO}=tn,{isNullLiteral:oR,isMethodCall:oL}=tL,oN="prefer-reflect-apply",oM=(e,t)=>(oR(e)||"ThisExpression"===e.type)&&("ArrayExpression"===t.type||"Identifier"===t.type&&"arguments"===t.name),o$=(e,t,r,n)=>`Reflect.apply(${e.getText(t)}, ${e.getText(r)}, ${e.getText(n)})`,oz=(e,t)=>{if("apply"===oO(e.callee)&&2===e.arguments.length&&oM(e.arguments[0],e.arguments[1]))return r=>r.replaceText(e,o$(t,e.callee.object,e.arguments[0],e.arguments[1]))},oU=(e,t)=>{if("call"===oO(e.callee)&&"apply"===oO(e.callee.object)&&"prototype"===oO(e.callee.object.object)&&e.callee.object.object.object?.type==="Identifier"&&"Function"===e.callee.object.object.object.name&&3===e.arguments.length&&oM(e.arguments[1],e.arguments[2]))return r=>r.replaceText(e,o$(t,e.arguments[0],e.arguments[1],e.arguments[2]))};var oq=/*@__PURE__*/Q({create:e=>({CallExpression(t){if(!oL(t,{optionalCall:!1,optionalMember:!1})||"Literal"===t.callee.object.type||"ArrayExpression"===t.callee.object.type||"ObjectExpression"===t.callee.object.type)return;let{sourceCode:r}=e,n=oz(t,r)||oU(t,r);if(n)return{node:t,messageId:oN,fix:n}}}),meta:{type:"suggestion",docs:{description:"Prefer `Reflect.apply()` over `Function#apply()`.",recommended:!0},fixable:"code",messages:{[oN]:"Prefer `Reflect.apply()` over `Function#apply()`."}}});let{findVariable:oW}=tn,{fixSpaceAroundKeyword:oV}=uo,{isNewExpression:oZ,isMemberExpression:oG}=tL,oH="prefer-set-size",oK=e=>oZ(e,{name:"Set"});var oX=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e;return{MemberExpression(e){if(!oG(e,{property:"length",optional:!1})||"ArrayExpression"!==e.object.type||1!==e.object.elements.length||e.object.elements[0]?.type!=="SpreadElement")return;let r=e.object.elements[0].argument;if(function(e,t){if(oK(e))return!0;if("Identifier"!==e.type)return!1;let r=oW(t,e);if(!r||1!==r.defs.length)return!1;let[n]=r.defs;if("Variable"!==n.type||"const"!==n.kind)return!1;let u=n.node;return"VariableDeclarator"===u.type&&"Identifier"===u.id.type&&oK(n.node.init)}(r,t.getScope(r)))return{node:e.property,messageId:oH,fix:function(e,t){let{object:r,property:n}=t,u=r.elements[0].argument;if(!(e.getCommentsInside(r).length>e.getCommentsInside(u).length))return function*(a){yield a.replaceText(n,"size"),yield a.replaceText(r,e.getText(u)),yield*oV(a,t,e)}}(t,e)}}}},meta:{type:"suggestion",docs:{description:"Prefer using `Set#size` instead of `Array#length`.",recommended:!0},fixable:"code",messages:{[oH]:"Prefer using `Set#size` instead of `Array#length`."}}}),oJ={exports:{}};x=String.fromCodePoint||(b=String.fromCharCode,v=Math.floor,function(){var e,t,r=[],n=-1,u=arguments.length;if(!u)return"";for(var a="";++n<u;){var i=Number(arguments[n]);if(!isFinite(i)||i<0||i>1114111||v(i)!=i)throw RangeError("Invalid code point: "+i);i<=65535?r.push(i):(i-=65536,e=(i>>10)+55296,t=i%1024+56320,r.push(e,t)),(n+1==u||r.length>16384)&&(a+=b.apply(null,r),r.length=0)}return a}),E={parse:function(e,t,r){function n(t){return t.raw=e.substring(t.range[0],t.range[1]),t}function u(e,t){return e.range[0]=t,n(e)}function a(e,t){return n({type:"anchor",kind:e,range:[X-t,X]})}function i(e,t,r,u){return n({type:"value",kind:e,codePoint:t,range:[r,u]})}function o(e,t,r,n){return n=n||0,i(e,t,X-(r.length+n),X)}function s(e){var t,r=e[0],n=r.charCodeAt(0);return K&&1===r.length&&n>=55296&&n<=56319&&(t=y().charCodeAt(0))>=56320&&t<=57343?i("symbol",(n-55296)*1024+t-56320+65536,++X-2,X):i("symbol",n,X-1,X)}function d(e,t,r,u,a){return null==u&&(r=X-1,u=X),n({type:"quantifier",min:e,max:t,greedy:!0,body:null,symbol:a,range:[r,u]})}function l(e,t,r,u){return n({type:"characterClass",kind:e.kind,body:e.body,negative:t,range:[r,u]})}function c(e,t,r,u){return e.codePoint>t.codePoint&&U("invalid range in character class",e.raw+"-"+t.raw,r,u),n({type:"characterClassRange",min:e,max:t,range:[r,u]})}function f(e){return"alternative"===e.type?e.body:[e]}function p(t){t=t||1;var r=e.substring(X,X+t);return X+=t||1,r}function m(e){g(e)||U("character",e)}function g(t){if(e.indexOf(t,X)===X)return p(t.length)}function y(){return e[X]}function h(t){return e.indexOf(t,X)===X}function b(t){return e[X+1]===t}function v(t){var r=e.substring(X).match(t);return r&&(r.range=[],r.range[0]=X,p(r[0].length),r.range[1]=X),r}function E(){var e=[],t=X;for(e.push(A());g("|");)e.push(A());return 1===e.length?e[0]:n({type:"disjunction",body:e,range:[t,X]})}function A(){for(var t,o=[],d=X;t=function(){if(X>=e.length||h("|")||h(")"))return null;var t=g("^")?a("start",1):g("$")?a("end",1):g("\\b")?a("boundary",2):g("\\B")?a("not-boundary",2):D("(?=","lookahead","(?!","negativeLookahead");if(!t){var o=function(){if((t=v(/^[^^$\\.*+?()[\]{}|]/))||!K&&(t=v(/^(?:]|})/)))return s(t);if(g("."))return n({type:"dot",range:[X-1,X]});if(g("\\")){if(!(t=F())){if(!K&&"c"==y())return i("symbol",92,X-1,X);U("atomEscape")}return t}if(t=O())return t;if(r.lookbehind&&(t=D("(?<=","lookbehind","(?<!","negativeLookbehind")))return t;if(r.namedGroups&&g("(?<")){var t,u,a,o,d,l,c=I();m(">");var f=C("normal",c.range[0]-3);return f.name=c,f}else return r.modifiers&&e.indexOf("(?")==X&&":"!=e[X+2]?(a=X,p(2),o=v(/^[sim]+/),g("-")?(u=v(/^[sim]+/))||U("Invalid flags for modifiers group"):o||U("Invalid flags for modifiers group"),((d=(o=o?o[0]:"")+(u=u?u[0]:"")).length>3||function(e){for(var t=0;t<e.length;){if(-1!=e.indexOf(e[t],t+1))return!0;t++}return!1}(d))&&U("flags cannot be duplicated for modifiers group"),m(":"),(l=C("ignore",a)).modifierFlags={enabling:o,disabling:u},l):D("(?:","ignore","(","normal")}();if(!o){var d,l,c=X;(d=S()||!1)&&(X=c,U("Expected atom")),!K&&(l=v(/^{/))?o=s(l):U("Expected atom")}t=o}return(d=S()||!1)?(d.body=f(t),u(d,t.range[0]),d):t}();)o.push(t);return 1===o.length?o[0]:n({type:"alternative",body:o,range:[d,X]})}function D(e,t,r,n){var u=null,a=X;if(g(e))u=t;else{if(!g(r))return!1;u=n}return C(u,a)}function C(e,t){var r=E();r||U("Expected disjunction"),m(")");var u=n({type:"group",behavior:e,body:f(r),range:[t,X]});return"normal"==e&&V&&W++,u}function S(){var e,t,r,n,u=X;return g("*")?e=d(0,void 0,void 0,void 0,"*"):g("+")?e=d(1,void 0,void 0,void 0,"+"):g("?")?e=d(0,1,void 0,void 0,"?"):(n=v(/^\{([0-9]+)\}/))?e=d(t=parseInt(n[1],10),t,n.range[0],n.range[1]):(n=v(/^\{([0-9]+),\}/))?e=d(t=parseInt(n[1],10),void 0,n.range[0],n.range[1]):(n=v(/^\{([0-9]+),([0-9]+)\}/))&&((t=parseInt(n[1],10))>(r=parseInt(n[2],10))&&U("numbers out of order in {} quantifier","",u,X),e=d(t,r,n.range[0],n.range[1])),(t&&!Number.isSafeInteger(t)||r&&!Number.isSafeInteger(r))&&U("iterations outside JS safe integer range in quantifier","",u,X),e&&g("?")&&(e.greedy=!1,e.range[1]+=1),e}function w(e){if(K){var t,r;if("unicodeEscape"==e.kind&&(t=e.codePoint)>=55296&&t<=56319&&h("\\")&&b("u")){var u=X;X++;var a=F(!0);"unicodeEscape"==a.kind&&(r=a.codePoint)>=56320&&r<=57343?(e.range[1]=a.range[1],e.codePoint=(t-55296)*1024+r-56320+65536,e.type="value",e.kind="unicodeCodePointEscape",n(e)):X=u}}return e}function F(e){var t,a,i=X;if(a=function(e){var t,r,a=X;if(t=v(/^(?!0)\d+/)){r=t[0];var i,d=parseInt(t[0],10);return d<=W&&!e?n({type:"reference",matchIndex:parseInt(i=t[0],10),range:[X-1-i.length,X]}):(q.push(d),V?Z=!0:_(a,X),p(-t[0].length),t=v(/^[0-7]{1,3}/))?o("octal",parseInt(t[0],8),t[0],1):u(t=s(v(/^[89]/)),t.range[0]-1)}return!!(t=v(/^[0-7]{1,3}/))&&(("0"!==(r=t[0])&&_(a,X),/^0{1,3}$/.test(r))?o("null",0,"0",r.length):o("octal",parseInt(r,8),r,1))}(e)||function(){if(r.namedGroups&&v(/^k<(?=.*?>)/)){var e=I();return m(">"),n({type:"reference",name:e,range:[e.range[0]-3,X]})}}())return a;if(e){if(g("b"))return o("singleEscape",8,"\\b");if(g("B"))U("\\B not possible inside of CharacterClass","",i);else if(!K&&(a=v(/^c([0-9])/)))return o("controlLetter",a[1]+16,a[1],2);else if(!K&&(a=v(/^c_/)))return o("controlLetter",31,"_",2);if(K&&g("-"))return o("singleEscape",45,"\\-")}return((t=v(/^[dDsSwW]/))?n({type:"characterClassEscape",value:t[0],range:[X-2,X]}):r.unicodePropertyEscape&&K&&(t=v(/^([pP])\{([^\}]+)\}/))?n({type:"unicodePropertyEscape",negative:"P"===t[1],value:t[2],range:[t.range[0]-1,t.range[1]],raw:t[0]}):!!(r.unicodeSet&&H&&g("q{"))&&function(){var e=X-3,t=[];do t.push(function(){for(var e,t=[],r=X;e=M();)t.push(e);return n({type:"classString",characters:t,range:[r,X]})}());while(g("|"));return m("}"),n({type:"classStrings",strings:t,range:[e,X]})}())||T()}function _(e,t){K&&U("Invalid decimal escape in unicode mode",null,e,t)}function k(){var e;return(e=v(/^u([0-9a-fA-F]{4})/))?w(o("unicodeEscape",parseInt(e[1],16),e[1],2)):K&&(e=v(/^u\{([0-9a-fA-F]+)\}/))?o("unicodeCodePointEscape",parseInt(e[1],16),e[1],4):void 0}function T(){var e,t,n,u=X;if(n=v(/^[fnrtv]/)){var a=0;switch(n[0]){case"t":a=9;break;case"n":a=10;break;case"v":a=11;break;case"f":a=12;break;case"r":a=13}return o("singleEscape",a,"\\"+n[0])}return(n=v(/^c([a-zA-Z])/))?o("controlLetter",n[1].charCodeAt(0)%32,n[1],2):(n=v(/^x([0-9a-fA-F]{2})/))?o("hexadecimalEscape",parseInt(n[1],16),n[1],2):(n=k())?((!n||n.codePoint>1114111)&&U("Invalid escape sequence",null,u,X),n):(t=y(),K&&/[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/.test(t)||!K&&"c"!==t?"k"===t&&r.lookbehind?null:o("identifier",(e=p()).charCodeAt(0),e,1):null)}function P(t){var r=y(),n=X;if("\\"===r){p();var u=k();return u&&t(u.codePoint)||U("Invalid escape sequence",null,n,X),x(u.codePoint)}var a=r.charCodeAt(0);if(a>=55296&&a<=56319){var i=(r+=e[X+1]).charCodeAt(1);i>=56320&&i<=57343&&(a=(a-55296)*1024+i-56320+65536)}if(t(a))return p(),a>65535&&p(),r}function I(){var e,t=X,r=P(B);for(r||U("Invalid identifier");e=P(j);)r+=e;return n({type:"identifier",value:r,range:[t,X]})}function B(e){return 36===e||95===e||e>=65&&e<=90||e>=97&&e<=122||e>=128&&/[\$A-Z_a-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309B-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FEF\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7B9\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDF00-\uDF1C\uDF27\uDF30-\uDF45]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDF00-\uDF1A]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE83\uDE86-\uDE89\uDE9D\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDE40-\uDE7F\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0\uDFE1]|\uD821[\uDC00-\uDFF1]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00-\uDD1E\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0]|\uD87E[\uDC00-\uDE1D]/.test(x(e))}function j(e){return B(e)||e>=48&&e<=57||e>=128&&/[0-9_\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u0610-\u061A\u064B-\u0669\u0670\u06D6-\u06DC\u06DF-\u06E4\u06E7\u06E8\u06EA-\u06ED\u06F0-\u06F9\u0711\u0730-\u074A\u07A6-\u07B0\u07C0-\u07C9\u07EB-\u07F3\u07FD\u0816-\u0819\u081B-\u0823\u0825-\u0827\u0829-\u082D\u0859-\u085B\u08D3-\u08E1\u08E3-\u0903\u093A-\u093C\u093E-\u094F\u0951-\u0957\u0962\u0963\u0966-\u096F\u0981-\u0983\u09BC\u09BE-\u09C4\u09C7\u09C8\u09CB-\u09CD\u09D7\u09E2\u09E3\u09E6-\u09EF\u09FE\u0A01-\u0A03\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A66-\u0A71\u0A75\u0A81-\u0A83\u0ABC\u0ABE-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AE2\u0AE3\u0AE6-\u0AEF\u0AFA-\u0AFF\u0B01-\u0B03\u0B3C\u0B3E-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3E-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C62\u0C63\u0C66-\u0C6F\u0C81-\u0C83\u0CBC\u0CBE-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CE2\u0CE3\u0CE6-\u0CEF\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D82\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EB9\u0EBB\u0EBC\u0EC8-\u0ECD\u0ED0-\u0ED9\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E\u0F3F\u0F71-\u0F84\u0F86\u0F87\u0F8D-\u0F97\u0F99-\u0FBC\u0FC6\u102B-\u103E\u1040-\u1049\u1056-\u1059\u105E-\u1060\u1062-\u1064\u1067-\u106D\u1071-\u1074\u1082-\u108D\u108F-\u109D\u135D-\u135F\u1369-\u1371\u1712-\u1714\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1B00-\u1B04\u1B34-\u1B44\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1B82\u1BA1-\u1BAD\u1BB0-\u1BB9\u1BE6-\u1BF3\u1C24-\u1C37\u1C40-\u1C49\u1C50-\u1C59\u1CD0-\u1CD2\u1CD4-\u1CE8\u1CED\u1CF2-\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DF9\u1DFB-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA880\uA881\uA8B4-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F1\uA8FF-\uA909\uA926-\uA92D\uA947-\uA953\uA980-\uA983\uA9B3-\uA9C0\uA9D0-\uA9D9\uA9E5\uA9F0-\uA9F9\uAA29-\uAA36\uAA43\uAA4C\uAA4D\uAA50-\uAA59\uAA7B-\uAA7D\uAAB0\uAAB2-\uAAB4\uAAB7\uAAB8\uAABE\uAABF\uAAC1\uAAEB-\uAAEF\uAAF5\uAAF6\uABE3-\uABEA\uABEC\uABED\uABF0-\uABF9\uFB1E\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFF10-\uFF19\uFF3F]|\uD800[\uDDFD\uDEE0\uDF76-\uDF7A]|\uD801[\uDCA0-\uDCA9]|\uD802[\uDE01-\uDE03\uDE05\uDE06\uDE0C-\uDE0F\uDE38-\uDE3A\uDE3F\uDEE5\uDEE6]|\uD803[\uDD24-\uDD27\uDD30-\uDD39\uDF46-\uDF50]|\uD804[\uDC00-\uDC02\uDC38-\uDC46\uDC66-\uDC6F\uDC7F-\uDC82\uDCB0-\uDCBA\uDCF0-\uDCF9\uDD00-\uDD02\uDD27-\uDD34\uDD36-\uDD3F\uDD45\uDD46\uDD73\uDD80-\uDD82\uDDB3-\uDDC0\uDDC9-\uDDCC\uDDD0-\uDDD9\uDE2C-\uDE37\uDE3E\uDEDF-\uDEEA\uDEF0-\uDEF9\uDF00-\uDF03\uDF3B\uDF3C\uDF3E-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF57\uDF62\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC35-\uDC46\uDC50-\uDC59\uDC5E\uDCB0-\uDCC3\uDCD0-\uDCD9\uDDAF-\uDDB5\uDDB8-\uDDC0\uDDDC\uDDDD\uDE30-\uDE40\uDE50-\uDE59\uDEAB-\uDEB7\uDEC0-\uDEC9\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDC2C-\uDC3A\uDCE0-\uDCE9\uDE01-\uDE0A\uDE33-\uDE39\uDE3B-\uDE3E\uDE47\uDE51-\uDE5B\uDE8A-\uDE99]|\uD807[\uDC2F-\uDC36\uDC38-\uDC3F\uDC50-\uDC59\uDC92-\uDCA7\uDCA9-\uDCB6\uDD31-\uDD36\uDD3A\uDD3C\uDD3D\uDD3F-\uDD45\uDD47\uDD50-\uDD59\uDD8A-\uDD8E\uDD90\uDD91\uDD93-\uDD97\uDDA0-\uDDA9\uDEF3-\uDEF6]|\uD81A[\uDE60-\uDE69\uDEF0-\uDEF4\uDF30-\uDF36\uDF50-\uDF59]|\uD81B[\uDF51-\uDF7E\uDF8F-\uDF92]|\uD82F[\uDC9D\uDC9E]|\uD834[\uDD65-\uDD69\uDD6D-\uDD72\uDD7B-\uDD82\uDD85-\uDD8B\uDDAA-\uDDAD\uDE42-\uDE44]|\uD835[\uDFCE-\uDFFF]|\uD836[\uDE00-\uDE36\uDE3B-\uDE6C\uDE75\uDE84\uDE9B-\uDE9F\uDEA1-\uDEAF]|\uD838[\uDC00-\uDC06\uDC08-\uDC18\uDC1B-\uDC21\uDC23\uDC24\uDC26-\uDC2A]|\uD83A[\uDCD0-\uDCD6\uDD44-\uDD4A\uDD50-\uDD59]|\uDB40[\uDD00-\uDDEF]/.test(x(e))}function O(){var e,t=X;return(e=v(/^\[\^/))?(e=R(),m("]"),l(e,!0,t,X)):g("[")?(e=R(),m("]"),l(e,!1,t,X)):null}function R(){var e,t;return h("]")?{kind:"union",body:[]}:H?function(){var e,t=[],r=N(!0);for(t.push(r),e="classRange"===r.type?"union":h("&")?"intersection":h("-")?"subtraction":"union";!h("]");)"intersection"===e?(m("&"),m("&"),h("&")&&U("&& cannot be followed by &. Wrap it in brackets: &&[&].")):"subtraction"===e&&(m("-"),m("-")),t.push(r=N("union"===e));return{kind:e,body:t}}():((t=L())||U("classAtom"),(e=h("]")?[t]:function e(t){if(h("-")&&!b("]")){r=t.range[0],i=s(g("-")),(a=L())||U("classAtom"),n=X;var r,n,u,a,i,o,d=R();return(d||U("classRanges"),"codePoint"in t&&"codePoint"in a?u=[c(t,a,r,n)]:K?U("invalid character class"):u=[t,i,a],"empty"===d.type)?u:u.concat(d.body)}return(o=L())||U("classAtom"),(u=h("]")?o:e(o))||U("nonEmptyClassRangesNoDash"),[t].concat(u)}(t))||U("nonEmptyClassRanges"),{kind:"union",body:e})}function L(){var e;return g("-")?s("-"):(e=v(/^[^\\\]-]/))?s(e[0]):g("\\")?((e=F(!0))||U("classEscape"),w(e)):void 0}function N(e){var t,r,n=X;if(g("\\")){if(r=F(!0))t=r;else{if(r=z())return r;U("Invalid escape","\\"+y(),n)}}else if(r=$())t=r;else{if(r=O())return r;U("Invalid character",y())}if(e&&h("-")&&!b("-")){if(m("-"),r=M())return c(t,r,n,X);U("Invalid range end",y())}return t}function M(){if(g("\\")){var e,t=X;if(e=z())return e;U("Invalid escape","\\"+y(),t)}return $()}function $(){var e;if(e=v(/^[^()[\]{}/\-\\|]/))return s(e)}function z(){var e;if(g("b"))return o("singleEscape",8,"\\b");if(g("B"))U("\\B not possible inside of ClassContents","",X-2);else if(e=v(/^[&\-!#%,:;<=>@_`~]/))return o("identifier",e[0].codePointAt(0),e[0]);else if(e=T())return e;else return null}function U(t,r,n,u){n=null==n?X:n,u=null==u?n:u;var a=Math.max(0,n-10),i=Math.min(u+10,e.length),o=" "+e.substring(a,i),s=" "+Array(n-a+1).join(" ")+"^";throw SyntaxError(t+" at position "+n+(r?": "+r:"")+"\n"+o+"\n"+s)}r||(r={});var q=[],W=0,V=!0,Z=!1,G=-1!==(t||"").indexOf("u"),H=-1!==(t||"").indexOf("v"),K=G||H,X=0;if(H&&!r.unicodeSet)throw Error('The "v" flag is only supported when the .unicodeSet option is enabled.');if(G&&H)throw Error('The "u" and "v" flags are mutually exclusive.');""===(e=String(e))&&(e="(?:)");var J=E();return(J.range[1]!==e.length&&U("Could not parse entire input - got stuck","",J.range[1]),Z=Z||q.some(function(e){return e<=W}))?(X=0,V=!1,E()):J}},oJ.exports?oJ.exports=E:window.regjsparser=E;var oY=oJ.exports;let{getStaticValue:oQ}=tn,{parse:o0}=oY,{isRegexLiteral:o1,isNewExpression:o2,isMethodCall:o3}=tL,o4="method",o5="pattern",o8=(e,t)=>{if(o1(e))return e.regex.flags.includes("g");if(o2(e,{name:"RegExp"})&&e.arguments[0]?.type!=="SpreadElement"&&e.arguments[1]?.type==="Literal"&&"string"==typeof e.arguments[1].value)return e.arguments[1].value.includes("g");let r=oQ(e,t);if(!r)return!1;let{value:n}=r;return"[object RegExp]"===Object.prototype.toString.call(n)&&n.global};var o6=/*@__PURE__*/Q({create:e=>({CallExpression(t){if(!o3(t,{methods:["replace","replaceAll"],argumentsLength:2,optionalCall:!1,optionalMember:!1}))return;let{arguments:[r],callee:{property:n}}=t;if(!o8(r,e.sourceCode.getScope(r)))return;let u=n.name,a=function(e){let t;if(!o1(e))return;let{pattern:r,flags:n}=e.regex;if("g"!==n.replace("u","").replace("v",""))return;try{t=o0(r,n,{unicodePropertyEscape:n.includes("u"),unicodeSet:n.includes("v"),namedGroups:!0,lookbehind:!0})}catch{return}let u="alternative"===t.type?t.body:[t];if(!u.some(e=>"value"!==e.type))return rO(String.fromCodePoint(...u.map(e=>e.codePoint)))}(r);if("replaceAll"===u){if(!a)return;return{node:r,messageId:o5,data:{replacement:a.length<20?a:"a string literal"},fix:e=>e.replaceText(r,a)}}return{node:n,messageId:o4,*fix(e){yield e.insertTextAfter(n,"All"),a&&(yield e.replaceText(r,a))}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#replaceAll()` over regex searches with the global flag.",recommended:!0},fixable:"code",messages:{[o4]:"Prefer `String#replaceAll()` over `String#replace()`.",[o5]:"This pattern can be replaced with {{replacement}}."}}});let{getStaticValue:o9}=tn,{getParenthesizedText:o7,getParenthesizedRange:se}=tm,{replaceArgument:st}=uo,{isNumberLiteral:sr,isMethodCall:sn}=tL,su=e=>sr(e)?e.value:"UnaryExpression"===e.type&&"-"===e.operator?-su(e.argument):void 0,sa=e=>e?.type==="MemberExpression"&&!1===e.computed&&"Identifier"===e.property.type&&"length"===e.property.name;var si=/*@__PURE__*/Q({create:e=>({CallExpression(t){if(!sn(t,{methods:["substr","substring"]}))return;let r=t.callee.property.name;return{node:t,messageId:r,*fix(n,{abort:u}){if(yield n.replaceText(t.callee.property,"slice"),0!==t.arguments.length){if(t.arguments.length>2||t.arguments.some(e=>"SpreadElement"===e.type))return u();yield*("substr"===r?function*({node:e,fixer:t,context:r,abort:n}){let u=e.arguments,[a,i]=u;if(!i)return;let{sourceCode:o}=r,s=o.getScope(e),d=o9(a,s),l=se(i,o),c=e=>st(t,i,e,o);if(d?.value===0){if(sr(i)||sa(i))return;if("number"==typeof su(i)){yield c(Math.max(0,su(i)));return}yield t.insertTextBeforeRange(l,"Math.max(0, "),yield t.insertTextAfterRange(l,")");return}if(u.every(e=>sr(e))){yield c(a.value+i.value);return}if(u.every(e=>u3(e,s))){let e=o7(a,o);yield t.insertTextBeforeRange(l,`${e} + `);return}return n()}:function*({node:e,fixer:t,context:r,abort:n}){let{sourceCode:u}=r,[a,i]=e.arguments,o=a?su(a):void 0,s=o7(a,u),d=e=>st(t,a,e,u);if(!i){if(sa(a))return;if(void 0!==o){yield d(Math.max(0,o));return}let e=se(a,u);yield t.insertTextBeforeRange(e,"Math.max(0, "),yield t.insertTextAfterRange(e,")");return}let l=su(i),c=o7(i,u),f=e=>st(t,i,e,u);if(void 0!==o&&void 0!==l){let e=[Math.max(0,o),Math.max(0,l)];o>l&&e.reverse(),e[0]!==o&&(yield d(e[0])),e[1]!==l&&(yield f(e[1]));return}if(0===o||0===l){yield d(0),yield f(`Math.max(0, ${0===o?c:s})`);return}return n()})({node:t,fixer:n,context:e,abort:u})}}}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#slice()` over `String#substr()` and `String#substring()`.",recommended:!0},fixable:"code",messages:{substr:"Prefer `String#slice()` over `String#substr()`.",substring:"Prefer `String#slice()` over `String#substring()`."}}});let{isMethodCall:so}=tL,ss="prefer-string-trim-start-end";var sd=/*@__PURE__*/Q({create:()=>({CallExpression(e){if(!so(e,{methods:["trimLeft","trimRight"],argumentsLength:0,optionalCall:!1}))return;let t=e.callee.property,r=t.name,n="trimLeft"===r?"trimStart":"trimEnd";return{node:t,messageId:ss,data:{method:r,replacement:n},fix:e=>e.replaceText(t,n)}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#trimStart()` / `String#trimEnd()` over `String#trimLeft()` / `String#trimRight()`.",recommended:!0},fixable:"code",messages:{[ss]:"Prefer `String#{{replacement}}()` over `String#{{method}}()`."}}});let{isParenthesized:sl,getParenthesizedRange:sc,toLocation:sf}=nx,sp="no-unreadable-iife";var sm=/*@__PURE__*/Q({create:e=>({CallExpression(t){let{sourceCode:r}=e;if("ArrowFunctionExpression"===t.callee.type&&"BlockStatement"!==t.callee.body.type&&sl(t.callee.body,r))return{node:t,loc:sf(sc(t.callee.body,r),r),messageId:sp}}}),meta:{type:"suggestion",docs:{description:"Disallow unreadable IIFEs.",recommended:!0},hasSuggestions:!1,messages:{[sp]:"IIFE with parenthesized arrow function body is considered unreadable."}}});let{switchCallExpressionToNewExpression:sg}=uo,sy="throw-new-error",sh=/^(?:[A-Z][\da-z]*)*Error$/;var sb=/*@__PURE__*/Q({create:e=>({CallExpression(t){let{callee:r}=t;if("Identifier"===r.type&&sh.test(r.name)||"MemberExpression"===r.type&&!r.computed&&"Identifier"===r.property.type&&sh.test(r.property.name))return{node:t,messageId:sy,fix:r=>sg(t,e.sourceCode,r)}}}),meta:{type:"suggestion",docs:{description:"Require `new` when creating an error.",recommended:!0},fixable:"code",messages:{[sy]:"Use `new` when creating an error."}}}),sv=/[|\\{}()[\]^$+*?.]/g,sx=new Map([["[0-9]",{value:"\\d"}],["[^0-9]",{value:"\\D"}],["[a-zA-Z0-9_]",{value:"\\w"}],["[a-zA-Z_0-9]",{value:"\\w"}],["[a-z0-9A-Z_]",{value:"\\w"}],["[a-z0-9_A-Z]",{value:"\\w"}],["[a-z_A-Z0-9]",{value:"\\w"}],["[a-z_0-9A-Z]",{value:"\\w"}],["[A-Za-z0-9_]",{value:"\\w"}],["[A-Za-z_0-9]",{value:"\\w"}],["[A-Z0-9a-z_]",{value:"\\w"}],["[A-Z0-9_a-z]",{value:"\\w"}],["[A-Z_a-z0-9]",{value:"\\w"}],["[A-Z_0-9a-z]",{value:"\\w"}],["[0-9a-zA-Z_]",{value:"\\w"}],["[0-9a-z_A-Z]",{value:"\\w"}],["[0-9A-Za-z_]",{value:"\\w"}],["[0-9A-Z_a-z]",{value:"\\w"}],["[0-9_a-zA-Z]",{value:"\\w"}],["[0-9_A-Za-z]",{value:"\\w"}],["[_a-zA-Z0-9]",{value:"\\w"}],["[_a-z0-9A-Z]",{value:"\\w"}],["[_A-Za-z0-9]",{value:"\\w"}],["[_A-Z0-9a-z]",{value:"\\w"}],["[_0-9a-zA-Z]",{value:"\\w"}],["[_0-9A-Za-z]",{value:"\\w"}],["[a-zA-Z\\d_]",{value:"\\w"}],["[a-zA-Z_\\d]",{value:"\\w"}],["[a-z\\dA-Z_]",{value:"\\w"}],["[a-z\\d_A-Z]",{value:"\\w"}],["[a-z_A-Z\\d]",{value:"\\w"}],["[a-z_\\dA-Z]",{value:"\\w"}],["[A-Za-z\\d_]",{value:"\\w"}],["[A-Za-z_\\d]",{value:"\\w"}],["[A-Z\\da-z_]",{value:"\\w"}],["[A-Z\\d_a-z]",{value:"\\w"}],["[A-Z_a-z\\d]",{value:"\\w"}],["[A-Z_\\da-z]",{value:"\\w"}],["[\\da-zA-Z_]",{value:"\\w"}],["[\\da-z_A-Z]",{value:"\\w"}],["[\\dA-Za-z_]",{value:"\\w"}],["[\\dA-Z_a-z]",{value:"\\w"}],["[\\d_a-zA-Z]",{value:"\\w"}],["[\\d_A-Za-z]",{value:"\\w"}],["[_a-zA-Z\\d]",{value:"\\w"}],["[_a-z\\dA-Z]",{value:"\\w"}],["[_A-Za-z\\d]",{value:"\\w"}],["[_A-Z\\da-z]",{value:"\\w"}],["[_\\da-zA-Z]",{value:"\\w"}],["[_\\dA-Za-z]",{value:"\\w"}],["[^a-zA-Z0-9_]",{value:"\\W"}],["[^a-zA-Z_0-9]",{value:"\\W"}],["[^a-z0-9A-Z_]",{value:"\\W"}],["[^a-z0-9_A-Z]",{value:"\\W"}],["[^a-z_A-Z0-9]",{value:"\\W"}],["[^a-z_0-9A-Z]",{value:"\\W"}],["[^A-Za-z0-9_]",{value:"\\W"}],["[^A-Za-z_0-9]",{value:"\\W"}],["[^A-Z0-9a-z_]",{value:"\\W"}],["[^A-Z0-9_a-z]",{value:"\\W"}],["[^A-Z_a-z0-9]",{value:"\\W"}],["[^A-Z_0-9a-z]",{value:"\\W"}],["[^0-9a-zA-Z_]",{value:"\\W"}],["[^0-9a-z_A-Z]",{value:"\\W"}],["[^0-9A-Za-z_]",{value:"\\W"}],["[^0-9A-Z_a-z]",{value:"\\W"}],["[^0-9_a-zA-Z]",{value:"\\W"}],["[^0-9_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z0-9]",{value:"\\W"}],["[^_a-z0-9A-Z]",{value:"\\W"}],["[^_A-Za-z0-9]",{value:"\\W"}],["[^_A-Z0-9a-z]",{value:"\\W"}],["[^_0-9a-zA-Z]",{value:"\\W"}],["[^_0-9A-Za-z]",{value:"\\W"}],["[^a-zA-Z\\d_]",{value:"\\W"}],["[^a-zA-Z_\\d]",{value:"\\W"}],["[^a-z\\dA-Z_]",{value:"\\W"}],["[^a-z\\d_A-Z]",{value:"\\W"}],["[^a-z_A-Z\\d]",{value:"\\W"}],["[^a-z_\\dA-Z]",{value:"\\W"}],["[^A-Za-z\\d_]",{value:"\\W"}],["[^A-Za-z_\\d]",{value:"\\W"}],["[^A-Z\\da-z_]",{value:"\\W"}],["[^A-Z\\d_a-z]",{value:"\\W"}],["[^A-Z_a-z\\d]",{value:"\\W"}],["[^A-Z_\\da-z]",{value:"\\W"}],["[^\\da-zA-Z_]",{value:"\\W"}],["[^\\da-z_A-Z]",{value:"\\W"}],["[^\\dA-Za-z_]",{value:"\\W"}],["[^\\dA-Z_a-z]",{value:"\\W"}],["[^\\d_a-zA-Z]",{value:"\\W"}],["[^\\d_A-Za-z]",{value:"\\W"}],["[^_a-zA-Z\\d]",{value:"\\W"}],["[^_a-z\\dA-Z]",{value:"\\W"}],["[^_A-Za-z\\d]",{value:"\\W"}],["[^_A-Z\\da-z]",{value:"\\W"}],["[^_\\da-zA-Z]",{value:"\\W"}],["[^_\\dA-Za-z]",{value:"\\W"}],["[a-z0-9_]",{value:"\\w",flags:"i"}],["[a-z_0-9]",{value:"\\w",flags:"i"}],["[0-9a-z_]",{value:"\\w",flags:"i"}],["[0-9_a-z]",{value:"\\w",flags:"i"}],["[_a-z0-9]",{value:"\\w",flags:"i"}],["[_0-9a-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[a-z\\d_]",{value:"\\w",flags:"i"}],["[a-z_\\d]",{value:"\\w",flags:"i"}],["[\\da-z_]",{value:"\\w",flags:"i"}],["[\\d_a-z]",{value:"\\w",flags:"i"}],["[_a-z\\d]",{value:"\\w",flags:"i"}],["[_\\da-z]",{value:"\\w",flags:"i"}],["[^a-z0-9_]",{value:"\\W",flags:"i"}],["[^a-z_0-9]",{value:"\\W",flags:"i"}],["[^0-9a-z_]",{value:"\\W",flags:"i"}],["[^0-9_a-z]",{value:"\\W",flags:"i"}],["[^_a-z0-9]",{value:"\\W",flags:"i"}],["[^_0-9a-z]",{value:"\\W",flags:"i"}],["[^a-z\\d_]",{value:"\\W",flags:"i"}],["[^a-z_\\d]",{value:"\\W",flags:"i"}],["[^\\da-z_]",{value:"\\W",flags:"i"}],["[^\\d_a-z]",{value:"\\W",flags:"i"}],["[^_a-z\\d]",{value:"\\W",flags:"i"}],["[^_\\da-z]",{value:"\\W",flags:"i"}]]);let sE=function(e){if("string"!=typeof e)throw TypeError("Expected a string");return e.replace(sv,"\\$&")},sA=(e,t)=>!t||t.split("").every(t=>e.includes(t));function sD(e){return e?sC[e.type](e):""}var sC={RegExp:function(e){return"/"+sD(e.body)+"/"+e.flags},Alternative:function(e){return(e.expressions||[]).map(sD).join("")},Disjunction:function(e){return sD(e.left)+"|"+sD(e.right)},Group:function(e){var t=sD(e.expression);return e.capturing?e.name?"(?<"+(e.nameRaw||e.name)+">"+t+")":"("+t+")":"(?:"+t+")"},Backreference:function(e){switch(e.kind){case"number":return"\\"+e.reference;case"name":return"\\k<"+(e.referenceRaw||e.reference)+">";default:throw TypeError("Unknown Backreference kind: "+e.kind)}},Assertion:function(e){switch(e.kind){case"^":case"$":case"\\b":case"\\B":return e.kind;case"Lookahead":var t=sD(e.assertion);if(e.negative)return"(?!"+t+")";return"(?="+t+")";case"Lookbehind":var r=sD(e.assertion);if(e.negative)return"(?<!"+r+")";return"(?<="+r+")";default:throw TypeError("Unknown Assertion kind: "+e.kind)}},CharacterClass:function(e){var t=e.expressions.map(sD).join("");return e.negative?"[^"+t+"]":"["+t+"]"},ClassRange:function(e){return sD(e.from)+"-"+sD(e.to)},Repetition:function(e){return""+sD(e.expression)+sD(e.quantifier)},Quantifier:function(e){var t=void 0,r=e.greedy?"":"?";switch(e.kind){case"+":case"?":case"*":t=e.kind;break;case"Range":t=e.from===e.to?"{"+e.from+"}":e.to?"{"+e.from+","+e.to+"}":"{"+e.from+",}";break;default:throw TypeError("Unknown Quantifier kind: "+e.kind)}return""+t+r},Char:function(e){var t=e.value;switch(e.kind){case"simple":if(e.escaped)return"\\"+t;return t;case"hex":case"unicode":case"oct":case"decimal":case"control":case"meta":return t;default:throw TypeError("Unknown Char kind: "+e.kind)}},UnicodeProperty:function(e){return"\\"+(e.negative?"P":"p")+"{"+(e.shorthand||e.binary?"":e.name+"=")+e.value+"}"}},sS={generate:sD},sw={General_Category:"gc",Script:"sc",Script_Extensions:"scx"},sF=sj(sw),s_={ASCII:"ASCII",ASCII_Hex_Digit:"AHex",Alphabetic:"Alpha",Any:"Any",Assigned:"Assigned",Bidi_Control:"Bidi_C",Bidi_Mirrored:"Bidi_M",Case_Ignorable:"CI",Cased:"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:"Dash",Default_Ignorable_Code_Point:"DI",Deprecated:"Dep",Diacritic:"Dia",Emoji:"Emoji",Emoji_Component:"Emoji_Component",Emoji_Modifier:"Emoji_Modifier",Emoji_Modifier_Base:"Emoji_Modifier_Base",Emoji_Presentation:"Emoji_Presentation",Extended_Pictographic:"Extended_Pictographic",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:"Math",Noncharacter_Code_Point:"NChar",Pattern_Syntax:"Pat_Syn",Pattern_White_Space:"Pat_WS",Quotation_Mark:"QMark",Radical:"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"},sk=sj(s_),sT={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"},sP=sj(sT),sI={Adlam:"Adlm",Ahom:"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",Dogra:"Dogr",Duployan:"Dupl",Egyptian_Hieroglyphs:"Egyp",Elbasan:"Elba",Ethiopic:"Ethi",Georgian:"Geor",Glagolitic:"Glag",Gothic:"Goth",Grantha:"Gran",Greek:"Grek",Gujarati:"Gujr",Gunjala_Gondi:"Gong",Gurmukhi:"Guru",Han:"Hani",Hangul:"Hang",Hanifi_Rohingya:"Rohg",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",Makasar:"Maka",Malayalam:"Mlym",Mandaic:"Mand",Manichaean:"Mani",Marchen:"Marc",Medefaidrin:"Medf",Masaram_Gondi:"Gonm",Meetei_Mayek:"Mtei",Mende_Kikakui:"Mend",Meroitic_Cursive:"Merc",Meroitic_Hieroglyphs:"Mero",Miao:"Plrd",Modi:"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_Sogdian:"Sogo",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",Sogdian:"Sogd",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"},sB=sj(sI);function sj(e){var t={};for(var r in e)if(e.hasOwnProperty(r)){var n=e[r];if(Array.isArray(n))for(var u=0;u<n.length;u++)t[n[u]]=r;else t[n]=r}return t}function sO(e){return sT.hasOwnProperty(e)||sP.hasOwnProperty(e)}var sR=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function sL(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var sN=void 0,sM={},s$=void 0,sz=void 0;function sU(e,t){return sM.options.captureLocations?e&&t?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:e||t:null}var sq=[[-1,1,function(e,t){sz=sU(t,t),s$=e}],[0,4,function(e,t,r,n,u,a,i,o){sz=sU(u,o),s$=dt({type:"RegExp",body:t,flags:function(e){var t=new Set,r=!0,n=!1,u=void 0;try{for(var a,i=e[Symbol.iterator]();!(r=(a=i.next()).done);r=!0){var o=a.value;if(t.has(o)||!"gimsuxy".includes(o))throw SyntaxError("Invalid flags: "+e);t.add(o)}}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}return e.split("").sort().join("")}(n)},dr(u,o||i))}],[1,1,function(e,t){sz=sU(t,t),s$=e}],[1,0,function(){sz=null,s$=""}],[2,1,function(e,t){sz=sU(t,t),s$=e}],[2,2,function(e,t,r,n){sz=sU(r,n),s$=e+t}],[3,1,function(e,t){sz=sU(t,t),s$=e}],[4,1,function(e,t){sz=sU(t,t),s$=e}],[4,3,function(e,t,r,n,u,a){sz=sU(n,a);var i=null;u&&(i=dr(n||u,a||u)),s$=dt({type:"Disjunction",left:e,right:r},i)}],[5,1,function(e,t){if(sz=sU(t,t),0===e.length){s$=null;return}s$=1===e.length?dt(e[0],sz):dt({type:"Alternative",expressions:e},sz)}],[6,0,function(){sz=null,s$=[]}],[6,2,function(e,t,r,n){sz=sU(r,n),s$=e.concat(t)}],[7,1,function(e,t){sz=sU(t,t),s$=dt(Object.assign({type:"Assertion"},e),sz)}],[7,2,function(e,t,r,n){sz=sU(r,n),s$=e,t&&(s$=dt({type:"Repetition",expression:e,quantifier:t},sz))}],[8,1,function(e,t){sz=sU(t,t),s$={kind:"^"}}],[8,1,function(e,t){sz=sU(t,t),s$={kind:"$"}}],[8,1,function(e,t){sz=sU(t,t),s$={kind:"\\b"}}],[8,1,function(e,t){sz=sU(t,t),s$={kind:"\\B"}}],[8,3,function(e,t,r,n,u,a){sz=sU(n,a),s$={kind:"Lookahead",assertion:t}}],[8,3,function(e,t,r,n,u,a){sz=sU(n,a),s$={kind:"Lookahead",negative:!0,assertion:t}}],[8,3,function(e,t,r,n,u,a){sz=sU(n,a),s$={kind:"Lookbehind",assertion:t}}],[8,3,function(e,t,r,n,u,a){sz=sU(n,a),s$={kind:"Lookbehind",negative:!0,assertion:t}}],[9,1,function(e,t){sz=sU(t,t),s$=e}],[9,1,function(e,t){sz=sU(t,t),s$=e}],[9,1,function(e,t){sz=sU(t,t),s$=e}],[10,1,function(e,t){s$=s4(e,"simple",sz=sU(t,t))}],[10,1,function(e,t){sz=sU(t,t),(s$=s4(e.slice(1),"simple",sz)).escaped=!0}],[10,1,function(e,t){(s$=s4(e,"unicode",sz=sU(t,t))).isSurrogatePair=!0}],[10,1,function(e,t){s$=s4(e,"unicode",sz=sU(t,t))}],[10,1,function(e,t){s$=function(e,t){var r="P"===e[1],n=e.indexOf("="),u=e.slice(3,-1!==n?n:-1),a=void 0,i=-1===n&&s3.isGeneralCategoryValue(u),o=-1===n&&s3.isBinaryPropertyName(u);if(i)a=u,u="General_Category";else if(o)a=u;else{if(!s3.isValidName(u))throw SyntaxError("Invalid unicode property name: "+u+".");if(a=e.slice(n+1,-1),!s3.isValidValue(u,a))throw SyntaxError("Invalid "+u+" unicode property value: "+a+".")}return dt({type:"UnicodeProperty",name:u,value:a,negative:r,shorthand:i,binary:o,canonicalName:s3.getCanonicalName(u)||u,canonicalValue:s3.getCanonicalValue(a)||a},t)}(e,sz=sU(t,t))}],[10,1,function(e,t){s$=s4(e,"control",sz=sU(t,t))}],[10,1,function(e,t){s$=s4(e,"hex",sz=sU(t,t))}],[10,1,function(e,t){s$=s4(e,"oct",sz=sU(t,t))}],[10,1,function(e,t){var r,n;r=sz=sU(t,t),s$=(n=Number(e.slice(1)))>0&&n<=sY?dt({type:"Backreference",kind:"number",number:n,reference:n},r):s4(e,"decimal",r)}],[10,1,function(e,t){s$=s4(e,"meta",sz=sU(t,t))}],[10,1,function(e,t){s$=s4(e,"meta",sz=sU(t,t))}],[10,1,function(e,t){sz=sU(t,t),s$=function(e,t){var r=e.slice(3,-1),n=de(r);if(sQ.hasOwnProperty(n))return dt({type:"Backreference",kind:"name",number:sQ[n],reference:n,referenceRaw:r},t);var u=null,a=null,i=null,o=null;t&&(u=t.startOffset,a=t.startLine,i=t.endLine,o=t.startColumn);var s=/^[\w$<>]/,d=void 0,l=[s4(e.slice(1,2),"simple",u?{startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=2,endColumn:o+=2}:null)];for(l[0].escaped=!0,e=e.slice(2);e.length>0;){var c=null;(c=e.match(s5))||(c=e.match(s8))?(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:u+=c[0].length,endColumn:o+=c[0].length}),l.push(s4(c[0],"unicode",d)),e=e.slice(c[0].length)):(c=e.match(s))&&(u&&(d={startLine:a,endLine:i,startColumn:o,startOffset:u,endOffset:++u,endColumn:++o}),l.push(s4(c[0],"simple",d)),e=e.slice(1))}return l}(e,t)}],[11,1,function(e,t){sz=sU(t,t),s$=e}],[11,0],[12,1,function(e,t){sz=sU(t,t),s$=e}],[12,2,function(e,t,r,n){sz=sU(r,n),e.greedy=!1,s$=e}],[13,1,function(e,t){s$=dt({type:"Quantifier",kind:e,greedy:!0},sz=sU(t,t))}],[13,1,function(e,t){s$=dt({type:"Quantifier",kind:e,greedy:!0},sz=sU(t,t))}],[13,1,function(e,t){s$=dt({type:"Quantifier",kind:e,greedy:!0},sz=sU(t,t))}],[13,1,function(e,t){sz=sU(t,t);var r=s1(e);s$=dt({type:"Quantifier",kind:"Range",from:r[0],to:r[0],greedy:!0},sz)}],[13,1,function(e,t){sz=sU(t,t),s$=dt({type:"Quantifier",kind:"Range",from:s1(e)[0],greedy:!0},sz)}],[13,1,function(e,t){sz=sU(t,t);var r=s1(e);s$=dt({type:"Quantifier",kind:"Range",from:r[0],to:r[1],greedy:!0},sz)}],[14,1,function(e,t){sz=sU(t,t),s$=e}],[14,1,function(e,t){sz=sU(t,t),s$=e}],[15,3,function(e,t,r,n,u,a){sz=sU(n,a);var i=String(e),o=de(i);if(!sM.options.allowGroupNameDuplicates&&sQ.hasOwnProperty(o))throw SyntaxError('Duplicate of the named group "'+o+'".');sQ[o]=e.groupNumber,s$=dt({type:"Group",capturing:!0,name:o,nameRaw:i,number:e.groupNumber,expression:t},sz)}],[15,3,function(e,t,r,n,u,a){sz=sU(n,a),s$=dt({type:"Group",capturing:!0,number:e.groupNumber,expression:t},sz)}],[16,3,function(e,t,r,n,u,a){s$=dt({type:"Group",capturing:!1,expression:t},sz=sU(n,a))}],[17,3,function(e,t,r,n,u,a){s$=dt({type:"CharacterClass",negative:!0,expressions:t},sz=sU(n,a))}],[17,3,function(e,t,r,n,u,a){s$=dt({type:"CharacterClass",expressions:t},sz=sU(n,a))}],[18,0,function(){sz=null,s$=[]}],[18,1,function(e,t){sz=sU(t,t),s$=e}],[19,1,function(e,t){sz=sU(t,t),s$=[e]}],[19,2,function(e,t,r,n){sz=sU(r,n),s$=[e].concat(t)}],[19,4,function(e,t,r,n,u,a,i,o){sz=sU(u,o),s2(e,r),s$=[dt({type:"ClassRange",from:e,to:r},dr(u,i))],n&&(s$=s$.concat(n))}],[20,1,function(e,t){sz=sU(t,t),s$=e}],[20,2,function(e,t,r,n){sz=sU(r,n),s$=[e].concat(t)}],[20,4,function(e,t,r,n,u,a,i,o){sz=sU(u,o),s2(e,r),s$=[dt({type:"ClassRange",from:e,to:r},dr(u,i))],n&&(s$=s$.concat(n))}],[21,1,function(e,t){s$=s4(e,"simple",sz=sU(t,t))}],[21,1,function(e,t){sz=sU(t,t),s$=e}],[22,1,function(e,t){sz=sU(t,t),s$=e}],[22,1,function(e,t){s$=s4(e,"meta",sz=sU(t,t))}]],sW={SLASH:"23",CHAR:"24",BAR:"25",BOS:"26",EOS:"27",ESC_b:"28",ESC_B:"29",POS_LA_ASSERT:"30",R_PAREN:"31",NEG_LA_ASSERT:"32",POS_LB_ASSERT:"33",NEG_LB_ASSERT:"34",ESC_CHAR:"35",U_CODE_SURROGATE:"36",U_CODE:"37",U_PROP_VALUE_EXP:"38",CTRL_CH:"39",HEX_CODE:"40",OCT_CODE:"41",DEC_CODE:"42",META_CHAR:"43",ANY:"44",NAMED_GROUP_REF:"45",Q_MARK:"46",STAR:"47",PLUS:"48",RANGE_EXACT:"49",RANGE_OPEN:"50",RANGE_CLOSED:"51",NAMED_CAPTURE_GROUP:"52",L_PAREN:"53",NON_CAPTURE_GROUP:"54",NEG_CLASS:"55",R_BRACKET:"56",L_BRACKET:"57",DASH:"58",$:"59"},sV=[{0:1,23:"s2"},{59:"acc"},{3:3,4:4,5:5,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"s7"},{23:"r6",25:"s12"},{23:"r7",25:"r7",31:"r7"},{7:14,8:15,9:16,10:25,14:27,15:42,16:43,17:26,23:"r9",24:"s28",25:"r9",26:"s17",27:"s18",28:"s19",29:"s20",30:"s21",31:"r9",32:"s22",33:"s23",34:"s24",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",52:"s44",53:"s45",54:"s46",55:"s40",57:"s41"},{1:8,2:9,24:"s10",59:"r3"},{59:"r1"},{24:"s11",59:"r2"},{24:"r4",59:"r4"},{24:"r5",59:"r5"},{5:13,6:6,23:"r10",24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r8",25:"r8",31:"r8"},{23:"r11",24:"r11",25:"r11",26:"r11",27:"r11",28:"r11",29:"r11",30:"r11",31:"r11",32:"r11",33:"r11",34:"r11",35:"r11",36:"r11",37:"r11",38:"r11",39:"r11",40:"r11",41:"r11",42:"r11",43:"r11",44:"r11",45:"r11",52:"r11",53:"r11",54:"r11",55:"r11",57:"r11"},{23:"r12",24:"r12",25:"r12",26:"r12",27:"r12",28:"r12",29:"r12",30:"r12",31:"r12",32:"r12",33:"r12",34:"r12",35:"r12",36:"r12",37:"r12",38:"r12",39:"r12",40:"r12",41:"r12",42:"r12",43:"r12",44:"r12",45:"r12",52:"r12",53:"r12",54:"r12",55:"r12",57:"r12"},{11:47,12:48,13:49,23:"r38",24:"r38",25:"r38",26:"r38",27:"r38",28:"r38",29:"r38",30:"r38",31:"r38",32:"r38",33:"r38",34:"r38",35:"r38",36:"r38",37:"r38",38:"r38",39:"r38",40:"r38",41:"r38",42:"r38",43:"r38",44:"r38",45:"r38",46:"s52",47:"s50",48:"s51",49:"s53",50:"s54",51:"s55",52:"r38",53:"r38",54:"r38",55:"r38",57:"r38"},{23:"r14",24:"r14",25:"r14",26:"r14",27:"r14",28:"r14",29:"r14",30:"r14",31:"r14",32:"r14",33:"r14",34:"r14",35:"r14",36:"r14",37:"r14",38:"r14",39:"r14",40:"r14",41:"r14",42:"r14",43:"r14",44:"r14",45:"r14",52:"r14",53:"r14",54:"r14",55:"r14",57:"r14"},{23:"r15",24:"r15",25:"r15",26:"r15",27:"r15",28:"r15",29:"r15",30:"r15",31:"r15",32:"r15",33:"r15",34:"r15",35:"r15",36:"r15",37:"r15",38:"r15",39:"r15",40:"r15",41:"r15",42:"r15",43:"r15",44:"r15",45:"r15",52:"r15",53:"r15",54:"r15",55:"r15",57:"r15"},{23:"r16",24:"r16",25:"r16",26:"r16",27:"r16",28:"r16",29:"r16",30:"r16",31:"r16",32:"r16",33:"r16",34:"r16",35:"r16",36:"r16",37:"r16",38:"r16",39:"r16",40:"r16",41:"r16",42:"r16",43:"r16",44:"r16",45:"r16",52:"r16",53:"r16",54:"r16",55:"r16",57:"r16"},{23:"r17",24:"r17",25:"r17",26:"r17",27:"r17",28:"r17",29:"r17",30:"r17",31:"r17",32:"r17",33:"r17",34:"r17",35:"r17",36:"r17",37:"r17",38:"r17",39:"r17",40:"r17",41:"r17",42:"r17",43:"r17",44:"r17",45:"r17",52:"r17",53:"r17",54:"r17",55:"r17",57:"r17"},{4:57,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:59,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:61,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:63,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r22",24:"r22",25:"r22",26:"r22",27:"r22",28:"r22",29:"r22",30:"r22",31:"r22",32:"r22",33:"r22",34:"r22",35:"r22",36:"r22",37:"r22",38:"r22",39:"r22",40:"r22",41:"r22",42:"r22",43:"r22",44:"r22",45:"r22",46:"r22",47:"r22",48:"r22",49:"r22",50:"r22",51:"r22",52:"r22",53:"r22",54:"r22",55:"r22",57:"r22"},{23:"r23",24:"r23",25:"r23",26:"r23",27:"r23",28:"r23",29:"r23",30:"r23",31:"r23",32:"r23",33:"r23",34:"r23",35:"r23",36:"r23",37:"r23",38:"r23",39:"r23",40:"r23",41:"r23",42:"r23",43:"r23",44:"r23",45:"r23",46:"r23",47:"r23",48:"r23",49:"r23",50:"r23",51:"r23",52:"r23",53:"r23",54:"r23",55:"r23",57:"r23"},{23:"r24",24:"r24",25:"r24",26:"r24",27:"r24",28:"r24",29:"r24",30:"r24",31:"r24",32:"r24",33:"r24",34:"r24",35:"r24",36:"r24",37:"r24",38:"r24",39:"r24",40:"r24",41:"r24",42:"r24",43:"r24",44:"r24",45:"r24",46:"r24",47:"r24",48:"r24",49:"r24",50:"r24",51:"r24",52:"r24",53:"r24",54:"r24",55:"r24",57:"r24"},{23:"r25",24:"r25",25:"r25",26:"r25",27:"r25",28:"r25",29:"r25",30:"r25",31:"r25",32:"r25",33:"r25",34:"r25",35:"r25",36:"r25",37:"r25",38:"r25",39:"r25",40:"r25",41:"r25",42:"r25",43:"r25",44:"r25",45:"r25",46:"r25",47:"r25",48:"r25",49:"r25",50:"r25",51:"r25",52:"r25",53:"r25",54:"r25",55:"r25",56:"r25",57:"r25",58:"r25"},{23:"r26",24:"r26",25:"r26",26:"r26",27:"r26",28:"r26",29:"r26",30:"r26",31:"r26",32:"r26",33:"r26",34:"r26",35:"r26",36:"r26",37:"r26",38:"r26",39:"r26",40:"r26",41:"r26",42:"r26",43:"r26",44:"r26",45:"r26",46:"r26",47:"r26",48:"r26",49:"r26",50:"r26",51:"r26",52:"r26",53:"r26",54:"r26",55:"r26",56:"r26",57:"r26",58:"r26"},{23:"r27",24:"r27",25:"r27",26:"r27",27:"r27",28:"r27",29:"r27",30:"r27",31:"r27",32:"r27",33:"r27",34:"r27",35:"r27",36:"r27",37:"r27",38:"r27",39:"r27",40:"r27",41:"r27",42:"r27",43:"r27",44:"r27",45:"r27",46:"r27",47:"r27",48:"r27",49:"r27",50:"r27",51:"r27",52:"r27",53:"r27",54:"r27",55:"r27",56:"r27",57:"r27",58:"r27"},{23:"r28",24:"r28",25:"r28",26:"r28",27:"r28",28:"r28",29:"r28",30:"r28",31:"r28",32:"r28",33:"r28",34:"r28",35:"r28",36:"r28",37:"r28",38:"r28",39:"r28",40:"r28",41:"r28",42:"r28",43:"r28",44:"r28",45:"r28",46:"r28",47:"r28",48:"r28",49:"r28",50:"r28",51:"r28",52:"r28",53:"r28",54:"r28",55:"r28",56:"r28",57:"r28",58:"r28"},{23:"r29",24:"r29",25:"r29",26:"r29",27:"r29",28:"r29",29:"r29",30:"r29",31:"r29",32:"r29",33:"r29",34:"r29",35:"r29",36:"r29",37:"r29",38:"r29",39:"r29",40:"r29",41:"r29",42:"r29",43:"r29",44:"r29",45:"r29",46:"r29",47:"r29",48:"r29",49:"r29",50:"r29",51:"r29",52:"r29",53:"r29",54:"r29",55:"r29",56:"r29",57:"r29",58:"r29"},{23:"r30",24:"r30",25:"r30",26:"r30",27:"r30",28:"r30",29:"r30",30:"r30",31:"r30",32:"r30",33:"r30",34:"r30",35:"r30",36:"r30",37:"r30",38:"r30",39:"r30",40:"r30",41:"r30",42:"r30",43:"r30",44:"r30",45:"r30",46:"r30",47:"r30",48:"r30",49:"r30",50:"r30",51:"r30",52:"r30",53:"r30",54:"r30",55:"r30",56:"r30",57:"r30",58:"r30"},{23:"r31",24:"r31",25:"r31",26:"r31",27:"r31",28:"r31",29:"r31",30:"r31",31:"r31",32:"r31",33:"r31",34:"r31",35:"r31",36:"r31",37:"r31",38:"r31",39:"r31",40:"r31",41:"r31",42:"r31",43:"r31",44:"r31",45:"r31",46:"r31",47:"r31",48:"r31",49:"r31",50:"r31",51:"r31",52:"r31",53:"r31",54:"r31",55:"r31",56:"r31",57:"r31",58:"r31"},{23:"r32",24:"r32",25:"r32",26:"r32",27:"r32",28:"r32",29:"r32",30:"r32",31:"r32",32:"r32",33:"r32",34:"r32",35:"r32",36:"r32",37:"r32",38:"r32",39:"r32",40:"r32",41:"r32",42:"r32",43:"r32",44:"r32",45:"r32",46:"r32",47:"r32",48:"r32",49:"r32",50:"r32",51:"r32",52:"r32",53:"r32",54:"r32",55:"r32",56:"r32",57:"r32",58:"r32"},{23:"r33",24:"r33",25:"r33",26:"r33",27:"r33",28:"r33",29:"r33",30:"r33",31:"r33",32:"r33",33:"r33",34:"r33",35:"r33",36:"r33",37:"r33",38:"r33",39:"r33",40:"r33",41:"r33",42:"r33",43:"r33",44:"r33",45:"r33",46:"r33",47:"r33",48:"r33",49:"r33",50:"r33",51:"r33",52:"r33",53:"r33",54:"r33",55:"r33",56:"r33",57:"r33",58:"r33"},{23:"r34",24:"r34",25:"r34",26:"r34",27:"r34",28:"r34",29:"r34",30:"r34",31:"r34",32:"r34",33:"r34",34:"r34",35:"r34",36:"r34",37:"r34",38:"r34",39:"r34",40:"r34",41:"r34",42:"r34",43:"r34",44:"r34",45:"r34",46:"r34",47:"r34",48:"r34",49:"r34",50:"r34",51:"r34",52:"r34",53:"r34",54:"r34",55:"r34",56:"r34",57:"r34",58:"r34"},{23:"r35",24:"r35",25:"r35",26:"r35",27:"r35",28:"r35",29:"r35",30:"r35",31:"r35",32:"r35",33:"r35",34:"r35",35:"r35",36:"r35",37:"r35",38:"r35",39:"r35",40:"r35",41:"r35",42:"r35",43:"r35",44:"r35",45:"r35",46:"r35",47:"r35",48:"r35",49:"r35",50:"r35",51:"r35",52:"r35",53:"r35",54:"r35",55:"r35",56:"r35",57:"r35",58:"r35"},{23:"r36",24:"r36",25:"r36",26:"r36",27:"r36",28:"r36",29:"r36",30:"r36",31:"r36",32:"r36",33:"r36",34:"r36",35:"r36",36:"r36",37:"r36",38:"r36",39:"r36",40:"r36",41:"r36",42:"r36",43:"r36",44:"r36",45:"r36",46:"r36",47:"r36",48:"r36",49:"r36",50:"r36",51:"r36",52:"r36",53:"r36",54:"r36",55:"r36",56:"r36",57:"r36",58:"r36"},{10:70,18:65,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{10:70,18:83,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{23:"r47",24:"r47",25:"r47",26:"r47",27:"r47",28:"r47",29:"r47",30:"r47",31:"r47",32:"r47",33:"r47",34:"r47",35:"r47",36:"r47",37:"r47",38:"r47",39:"r47",40:"r47",41:"r47",42:"r47",43:"r47",44:"r47",45:"r47",46:"r47",47:"r47",48:"r47",49:"r47",50:"r47",51:"r47",52:"r47",53:"r47",54:"r47",55:"r47",57:"r47"},{23:"r48",24:"r48",25:"r48",26:"r48",27:"r48",28:"r48",29:"r48",30:"r48",31:"r48",32:"r48",33:"r48",34:"r48",35:"r48",36:"r48",37:"r48",38:"r48",39:"r48",40:"r48",41:"r48",42:"r48",43:"r48",44:"r48",45:"r48",46:"r48",47:"r48",48:"r48",49:"r48",50:"r48",51:"r48",52:"r48",53:"r48",54:"r48",55:"r48",57:"r48"},{4:85,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:87,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{4:89,5:5,6:6,24:"r10",25:"r10",26:"r10",27:"r10",28:"r10",29:"r10",30:"r10",31:"r10",32:"r10",33:"r10",34:"r10",35:"r10",36:"r10",37:"r10",38:"r10",39:"r10",40:"r10",41:"r10",42:"r10",43:"r10",44:"r10",45:"r10",52:"r10",53:"r10",54:"r10",55:"r10",57:"r10"},{23:"r13",24:"r13",25:"r13",26:"r13",27:"r13",28:"r13",29:"r13",30:"r13",31:"r13",32:"r13",33:"r13",34:"r13",35:"r13",36:"r13",37:"r13",38:"r13",39:"r13",40:"r13",41:"r13",42:"r13",43:"r13",44:"r13",45:"r13",52:"r13",53:"r13",54:"r13",55:"r13",57:"r13"},{23:"r37",24:"r37",25:"r37",26:"r37",27:"r37",28:"r37",29:"r37",30:"r37",31:"r37",32:"r37",33:"r37",34:"r37",35:"r37",36:"r37",37:"r37",38:"r37",39:"r37",40:"r37",41:"r37",42:"r37",43:"r37",44:"r37",45:"r37",52:"r37",53:"r37",54:"r37",55:"r37",57:"r37"},{23:"r39",24:"r39",25:"r39",26:"r39",27:"r39",28:"r39",29:"r39",30:"r39",31:"r39",32:"r39",33:"r39",34:"r39",35:"r39",36:"r39",37:"r39",38:"r39",39:"r39",40:"r39",41:"r39",42:"r39",43:"r39",44:"r39",45:"r39",46:"s56",52:"r39",53:"r39",54:"r39",55:"r39",57:"r39"},{23:"r41",24:"r41",25:"r41",26:"r41",27:"r41",28:"r41",29:"r41",30:"r41",31:"r41",32:"r41",33:"r41",34:"r41",35:"r41",36:"r41",37:"r41",38:"r41",39:"r41",40:"r41",41:"r41",42:"r41",43:"r41",44:"r41",45:"r41",46:"r41",52:"r41",53:"r41",54:"r41",55:"r41",57:"r41"},{23:"r42",24:"r42",25:"r42",26:"r42",27:"r42",28:"r42",29:"r42",30:"r42",31:"r42",32:"r42",33:"r42",34:"r42",35:"r42",36:"r42",37:"r42",38:"r42",39:"r42",40:"r42",41:"r42",42:"r42",43:"r42",44:"r42",45:"r42",46:"r42",52:"r42",53:"r42",54:"r42",55:"r42",57:"r42"},{23:"r43",24:"r43",25:"r43",26:"r43",27:"r43",28:"r43",29:"r43",30:"r43",31:"r43",32:"r43",33:"r43",34:"r43",35:"r43",36:"r43",37:"r43",38:"r43",39:"r43",40:"r43",41:"r43",42:"r43",43:"r43",44:"r43",45:"r43",46:"r43",52:"r43",53:"r43",54:"r43",55:"r43",57:"r43"},{23:"r44",24:"r44",25:"r44",26:"r44",27:"r44",28:"r44",29:"r44",30:"r44",31:"r44",32:"r44",33:"r44",34:"r44",35:"r44",36:"r44",37:"r44",38:"r44",39:"r44",40:"r44",41:"r44",42:"r44",43:"r44",44:"r44",45:"r44",46:"r44",52:"r44",53:"r44",54:"r44",55:"r44",57:"r44"},{23:"r45",24:"r45",25:"r45",26:"r45",27:"r45",28:"r45",29:"r45",30:"r45",31:"r45",32:"r45",33:"r45",34:"r45",35:"r45",36:"r45",37:"r45",38:"r45",39:"r45",40:"r45",41:"r45",42:"r45",43:"r45",44:"r45",45:"r45",46:"r45",52:"r45",53:"r45",54:"r45",55:"r45",57:"r45"},{23:"r46",24:"r46",25:"r46",26:"r46",27:"r46",28:"r46",29:"r46",30:"r46",31:"r46",32:"r46",33:"r46",34:"r46",35:"r46",36:"r46",37:"r46",38:"r46",39:"r46",40:"r46",41:"r46",42:"r46",43:"r46",44:"r46",45:"r46",46:"r46",52:"r46",53:"r46",54:"r46",55:"r46",57:"r46"},{23:"r40",24:"r40",25:"r40",26:"r40",27:"r40",28:"r40",29:"r40",30:"r40",31:"r40",32:"r40",33:"r40",34:"r40",35:"r40",36:"r40",37:"r40",38:"r40",39:"r40",40:"r40",41:"r40",42:"r40",43:"r40",44:"r40",45:"r40",52:"r40",53:"r40",54:"r40",55:"r40",57:"r40"},{25:"s12",31:"s58"},{23:"r18",24:"r18",25:"r18",26:"r18",27:"r18",28:"r18",29:"r18",30:"r18",31:"r18",32:"r18",33:"r18",34:"r18",35:"r18",36:"r18",37:"r18",38:"r18",39:"r18",40:"r18",41:"r18",42:"r18",43:"r18",44:"r18",45:"r18",52:"r18",53:"r18",54:"r18",55:"r18",57:"r18"},{25:"s12",31:"s60"},{23:"r19",24:"r19",25:"r19",26:"r19",27:"r19",28:"r19",29:"r19",30:"r19",31:"r19",32:"r19",33:"r19",34:"r19",35:"r19",36:"r19",37:"r19",38:"r19",39:"r19",40:"r19",41:"r19",42:"r19",43:"r19",44:"r19",45:"r19",52:"r19",53:"r19",54:"r19",55:"r19",57:"r19"},{25:"s12",31:"s62"},{23:"r20",24:"r20",25:"r20",26:"r20",27:"r20",28:"r20",29:"r20",30:"r20",31:"r20",32:"r20",33:"r20",34:"r20",35:"r20",36:"r20",37:"r20",38:"r20",39:"r20",40:"r20",41:"r20",42:"r20",43:"r20",44:"r20",45:"r20",52:"r20",53:"r20",54:"r20",55:"r20",57:"r20"},{25:"s12",31:"s64"},{23:"r21",24:"r21",25:"r21",26:"r21",27:"r21",28:"r21",29:"r21",30:"r21",31:"r21",32:"r21",33:"r21",34:"r21",35:"r21",36:"r21",37:"r21",38:"r21",39:"r21",40:"r21",41:"r21",42:"r21",43:"r21",44:"r21",45:"r21",52:"r21",53:"r21",54:"r21",55:"r21",57:"r21"},{56:"s72"},{56:"r55"},{10:70,20:73,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r56",58:"s74"},{24:"r62",28:"r62",35:"r62",36:"r62",37:"r62",38:"r62",39:"r62",40:"r62",41:"r62",42:"r62",43:"r62",44:"r62",45:"r62",56:"r62",58:"r62"},{24:"r63",28:"r63",35:"r63",36:"r63",37:"r63",38:"r63",39:"r63",40:"r63",41:"r63",42:"r63",43:"r63",44:"r63",45:"r63",56:"r63",58:"r63"},{24:"r64",28:"r64",35:"r64",36:"r64",37:"r64",38:"r64",39:"r64",40:"r64",41:"r64",42:"r64",43:"r64",44:"r64",45:"r64",56:"r64",58:"r64"},{24:"r65",28:"r65",35:"r65",36:"r65",37:"r65",38:"r65",39:"r65",40:"r65",41:"r65",42:"r65",43:"r65",44:"r65",45:"r65",56:"r65",58:"r65"},{23:"r52",24:"r52",25:"r52",26:"r52",27:"r52",28:"r52",29:"r52",30:"r52",31:"r52",32:"r52",33:"r52",34:"r52",35:"r52",36:"r52",37:"r52",38:"r52",39:"r52",40:"r52",41:"r52",42:"r52",43:"r52",44:"r52",45:"r52",46:"r52",47:"r52",48:"r52",49:"r52",50:"r52",51:"r52",52:"r52",53:"r52",54:"r52",55:"r52",57:"r52"},{56:"r57"},{10:70,21:77,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{56:"r59"},{10:70,20:79,21:75,22:76,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r63",58:"s80"},{10:70,18:78,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r58"},{56:"r60"},{10:70,21:81,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r62",58:"s68"},{10:70,18:82,19:66,21:67,22:69,24:"s28",28:"s71",35:"s29",36:"s30",37:"s31",38:"s32",39:"s33",40:"s34",41:"s35",42:"s36",43:"s37",44:"s38",45:"s39",56:"r54",58:"s68"},{56:"r61"},{56:"s84"},{23:"r53",24:"r53",25:"r53",26:"r53",27:"r53",28:"r53",29:"r53",30:"r53",31:"r53",32:"r53",33:"r53",34:"r53",35:"r53",36:"r53",37:"r53",38:"r53",39:"r53",40:"r53",41:"r53",42:"r53",43:"r53",44:"r53",45:"r53",46:"r53",47:"r53",48:"r53",49:"r53",50:"r53",51:"r53",52:"r53",53:"r53",54:"r53",55:"r53",57:"r53"},{25:"s12",31:"s86"},{23:"r49",24:"r49",25:"r49",26:"r49",27:"r49",28:"r49",29:"r49",30:"r49",31:"r49",32:"r49",33:"r49",34:"r49",35:"r49",36:"r49",37:"r49",38:"r49",39:"r49",40:"r49",41:"r49",42:"r49",43:"r49",44:"r49",45:"r49",46:"r49",47:"r49",48:"r49",49:"r49",50:"r49",51:"r49",52:"r49",53:"r49",54:"r49",55:"r49",57:"r49"},{25:"s12",31:"s88"},{23:"r50",24:"r50",25:"r50",26:"r50",27:"r50",28:"r50",29:"r50",30:"r50",31:"r50",32:"r50",33:"r50",34:"r50",35:"r50",36:"r50",37:"r50",38:"r50",39:"r50",40:"r50",41:"r50",42:"r50",43:"r50",44:"r50",45:"r50",46:"r50",47:"r50",48:"r50",49:"r50",50:"r50",51:"r50",52:"r50",53:"r50",54:"r50",55:"r50",57:"r50"},{25:"s12",31:"s90"},{23:"r51",24:"r51",25:"r51",26:"r51",27:"r51",28:"r51",29:"r51",30:"r51",31:"r51",32:"r51",33:"r51",34:"r51",35:"r51",36:"r51",37:"r51",38:"r51",39:"r51",40:"r51",41:"r51",42:"r51",43:"r51",44:"r51",45:"r51",46:"r51",47:"r51",48:"r51",49:"r51",50:"r51",51:"r51",52:"r51",53:"r51",54:"r51",55:"r51",57:"r51"}],sZ=[],sG=void 0,sH=[[/^#[^\n]+/,function(){}],[/^\s+/,function(){}],[/^-/,function(){return"DASH"}],[/^\//,function(){return"CHAR"}],[/^#/,function(){return"CHAR"}],[/^\|/,function(){return"CHAR"}],[/^\./,function(){return"CHAR"}],[/^\{/,function(){return"CHAR"}],[/^\{\d+\}/,function(){return"RANGE_EXACT"}],[/^\{\d+,\}/,function(){return"RANGE_OPEN"}],[/^\{\d+,\d+\}/,function(){return"RANGE_CLOSED"}],[/^\\k<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return s9(sN.slice(3,-1),this.getCurrentState()),"NAMED_GROUP_REF"}],[/^\\b/,function(){return"ESC_b"}],[/^\\B/,function(){return"ESC_B"}],[/^\\c[a-zA-Z]/,function(){return"CTRL_CH"}],[/^\\0\d{1,2}/,function(){return"OCT_CODE"}],[/^\\0/,function(){return"DEC_CODE"}],[/^\\\d{1,3}/,function(){return"DEC_CODE"}],[/^\\u[dD][89abAB][0-9a-fA-F]{2}\\u[dD][c-fC-F][0-9a-fA-F]{2}/,function(){return"U_CODE_SURROGATE"}],[/^\\u\{[0-9a-fA-F]{1,}\}/,function(){return"U_CODE"}],[/^\\u[0-9a-fA-F]{4}/,function(){return"U_CODE"}],[/^\\[pP]\{\w+(?:=\w+)?\}/,function(){return"U_PROP_VALUE_EXP"}],[/^\\x[0-9a-fA-F]{2}/,function(){return"HEX_CODE"}],[/^\\[tnrdDsSwWvf]/,function(){return"META_CHAR"}],[/^\\\//,function(){return"ESC_CHAR"}],[/^\\[ #]/,function(){return"ESC_CHAR"}],[/^\\[\^\$\.\*\+\?\(\)\\\[\]\{\}\|\/]/,function(){return"ESC_CHAR"}],[/^\\[^*?+\[()\\|]/,function(){var e=this.getCurrentState();if("u_class"===e&&"\\-"===sN);else if("u"===e||"xu"===e||"u_class"===e)throw SyntaxError("invalid Unicode escape "+sN);return"ESC_CHAR"}],[/^\(/,function(){return"CHAR"}],[/^\)/,function(){return"CHAR"}],[/^\(\?=/,function(){return"POS_LA_ASSERT"}],[/^\(\?!/,function(){return"NEG_LA_ASSERT"}],[/^\(\?<=/,function(){return"POS_LB_ASSERT"}],[/^\(\?<!/,function(){return"NEG_LB_ASSERT"}],[/^\(\?:/,function(){return"NON_CAPTURE_GROUP"}],[/^\(\?<(([\u0041-\u005a\u0061-\u007a\u00aa\u00b5\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0370-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386\u0388-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u05d0-\u05ea\u05ef-\u05f2\u0620-\u064a\u066e-\u066f\u0671-\u06d3\u06d5\u06e5-\u06e6\u06ee-\u06ef\u06fa-\u06fc\u06ff\u0710\u0712-\u072f\u074d-\u07a5\u07b1\u07ca-\u07ea\u07f4-\u07f5\u07fa\u0800-\u0815\u081a\u0824\u0828\u0840-\u0858\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u0904-\u0939\u093d\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bd\u09ce\u09dc-\u09dd\u09df-\u09e1\u09f0-\u09f1\u09fc\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a59-\u0a5c\u0a5e\u0a72-\u0a74\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abd\u0ad0\u0ae0-\u0ae1\u0af9\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3d\u0b5c-\u0b5d\u0b5f-\u0b61\u0b71\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bd0\u0c05-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d\u0c58-\u0c5a\u0c60-\u0c61\u0c80\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbd\u0cde\u0ce0-\u0ce1\u0cf1-\u0cf2\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d3a\u0d3d\u0d4e\u0d54-\u0d56\u0d5f-\u0d61\u0d7a-\u0d7f\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0e01-\u0e30\u0e32-\u0e33\u0e40-\u0e46\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0eb0\u0eb2-\u0eb3\u0ebd\u0ec0-\u0ec4\u0ec6\u0edc-\u0edf\u0f00\u0f40-\u0f47\u0f49-\u0f6c\u0f88-\u0f8c\u1000-\u102a\u103f\u1050-\u1055\u105a-\u105d\u1061\u1065-\u1066\u106e-\u1070\u1075-\u1081\u108e\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176c\u176e-\u1770\u1780-\u17b3\u17d7\u17dc\u1820-\u1878\u1880-\u18a8\u18aa\u18b0-\u18f5\u1900-\u191e\u1950-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u1a00-\u1a16\u1a20-\u1a54\u1aa7\u1b05-\u1b33\u1b45-\u1b4b\u1b83-\u1ba0\u1bae-\u1baf\u1bba-\u1be5\u1c00-\u1c23\u1c4d-\u1c4f\u1c5a-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1ce9-\u1cec\u1cee-\u1cf3\u1cf5-\u1cf6\u1cfa\u1d00-\u1dbf\u1e00-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u2071\u207f\u2090-\u209c\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cee\u2cf2-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d80-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303c\u3041-\u3096\u309b-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua61f\ua62a-\ua62b\ua640-\ua66e\ua67f-\ua69d\ua6a0-\ua6ef\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua801\ua803-\ua805\ua807-\ua80a\ua80c-\ua822\ua840-\ua873\ua882-\ua8b3\ua8f2-\ua8f7\ua8fb\ua8fd-\ua8fe\ua90a-\ua925\ua930-\ua946\ua960-\ua97c\ua984-\ua9b2\ua9cf\ua9e0-\ua9e4\ua9e6-\ua9ef\ua9fa-\ua9fe\uaa00-\uaa28\uaa40-\uaa42\uaa44-\uaa4b\uaa60-\uaa76\uaa7a\uaa7e-\uaaaf\uaab1\uaab5-\uaab6\uaab9-\uaabd\uaac0\uaac2\uaadb-\uaadd\uaae0-\uaaea\uaaf2-\uaaf4\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabe2\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d\ufb1f-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe70-\ufe74\ufe76-\ufefc\uff21-\uff3a\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\ude80-\ude9c\udea0-\uded0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf75\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00\ude10-\ude13\ude15-\ude17\ude19-\ude35\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee4\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd23\udf00-\udf1c\udf27\udf30-\udf45\udfe0-\udff6]|\ud804[\udc03-\udc37\udc83-\udcaf\udcd0-\udce8\udd03-\udd26\udd44\udd50-\udd72\udd76\udd83-\uddb2\uddc1-\uddc4\uddda\udddc\ude00-\ude11\ude13-\ude2b\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udede\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3d\udf50\udf5d-\udf61]|\ud805[\udc00-\udc34\udc47-\udc4a\udc5f\udc80-\udcaf\udcc4-\udcc5\udcc7\udd80-\uddae\uddd8-\udddb\ude00-\ude2f\ude44\ude80-\udeaa\udeb8\udf00-\udf1a]|\ud806[\udc00-\udc2b\udca0-\udcdf\udcff\udda0-\udda7\uddaa-\uddd0\udde1\udde3\ude00\ude0b-\ude32\ude3a\ude50\ude5c-\ude89\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc2e\udc40\udc72-\udc8f\udd00-\udd06\udd08-\udd09\udd0b-\udd30\udd46\udd60-\udd65\udd67-\udd68\udd6a-\udd89\udd98\udee0-\udef2]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\uded0-\udeed\udf00-\udf2f\udf40-\udf43\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf50\udf93-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb]|\ud838[\udd00-\udd2c\udd37-\udd3d\udd4e\udec0-\udeeb]|\ud83a[\udc00-\udcc4\udd00-\udd43\udd4b]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\}))(([\u0030-\u0039\u0041-\u005a\u005f\u0061-\u007a\u00aa\u00b5\u00b7\u00ba\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u02c1\u02c6-\u02d1\u02e0-\u02e4\u02ec\u02ee\u0300-\u0374\u0376-\u0377\u037a-\u037d\u037f\u0386-\u038a\u038c\u038e-\u03a1\u03a3-\u03f5\u03f7-\u0481\u0483-\u0487\u048a-\u052f\u0531-\u0556\u0559\u0560-\u0588\u0591-\u05bd\u05bf\u05c1-\u05c2\u05c4-\u05c5\u05c7\u05d0-\u05ea\u05ef-\u05f2\u0610-\u061a\u0620-\u0669\u066e-\u06d3\u06d5-\u06dc\u06df-\u06e8\u06ea-\u06fc\u06ff\u0710-\u074a\u074d-\u07b1\u07c0-\u07f5\u07fa\u07fd\u0800-\u082d\u0840-\u085b\u0860-\u086a\u08a0-\u08b4\u08b6-\u08bd\u08d3-\u08e1\u08e3-\u0963\u0966-\u096f\u0971-\u0983\u0985-\u098c\u098f-\u0990\u0993-\u09a8\u09aa-\u09b0\u09b2\u09b6-\u09b9\u09bc-\u09c4\u09c7-\u09c8\u09cb-\u09ce\u09d7\u09dc-\u09dd\u09df-\u09e3\u09e6-\u09f1\u09fc\u09fe\u0a01-\u0a03\u0a05-\u0a0a\u0a0f-\u0a10\u0a13-\u0a28\u0a2a-\u0a30\u0a32-\u0a33\u0a35-\u0a36\u0a38-\u0a39\u0a3c\u0a3e-\u0a42\u0a47-\u0a48\u0a4b-\u0a4d\u0a51\u0a59-\u0a5c\u0a5e\u0a66-\u0a75\u0a81-\u0a83\u0a85-\u0a8d\u0a8f-\u0a91\u0a93-\u0aa8\u0aaa-\u0ab0\u0ab2-\u0ab3\u0ab5-\u0ab9\u0abc-\u0ac5\u0ac7-\u0ac9\u0acb-\u0acd\u0ad0\u0ae0-\u0ae3\u0ae6-\u0aef\u0af9-\u0aff\u0b01-\u0b03\u0b05-\u0b0c\u0b0f-\u0b10\u0b13-\u0b28\u0b2a-\u0b30\u0b32-\u0b33\u0b35-\u0b39\u0b3c-\u0b44\u0b47-\u0b48\u0b4b-\u0b4d\u0b56-\u0b57\u0b5c-\u0b5d\u0b5f-\u0b63\u0b66-\u0b6f\u0b71\u0b82-\u0b83\u0b85-\u0b8a\u0b8e-\u0b90\u0b92-\u0b95\u0b99-\u0b9a\u0b9c\u0b9e-\u0b9f\u0ba3-\u0ba4\u0ba8-\u0baa\u0bae-\u0bb9\u0bbe-\u0bc2\u0bc6-\u0bc8\u0bca-\u0bcd\u0bd0\u0bd7\u0be6-\u0bef\u0c00-\u0c0c\u0c0e-\u0c10\u0c12-\u0c28\u0c2a-\u0c39\u0c3d-\u0c44\u0c46-\u0c48\u0c4a-\u0c4d\u0c55-\u0c56\u0c58-\u0c5a\u0c60-\u0c63\u0c66-\u0c6f\u0c80-\u0c83\u0c85-\u0c8c\u0c8e-\u0c90\u0c92-\u0ca8\u0caa-\u0cb3\u0cb5-\u0cb9\u0cbc-\u0cc4\u0cc6-\u0cc8\u0cca-\u0ccd\u0cd5-\u0cd6\u0cde\u0ce0-\u0ce3\u0ce6-\u0cef\u0cf1-\u0cf2\u0d00-\u0d03\u0d05-\u0d0c\u0d0e-\u0d10\u0d12-\u0d44\u0d46-\u0d48\u0d4a-\u0d4e\u0d54-\u0d57\u0d5f-\u0d63\u0d66-\u0d6f\u0d7a-\u0d7f\u0d82-\u0d83\u0d85-\u0d96\u0d9a-\u0db1\u0db3-\u0dbb\u0dbd\u0dc0-\u0dc6\u0dca\u0dcf-\u0dd4\u0dd6\u0dd8-\u0ddf\u0de6-\u0def\u0df2-\u0df3\u0e01-\u0e3a\u0e40-\u0e4e\u0e50-\u0e59\u0e81-\u0e82\u0e84\u0e86-\u0e8a\u0e8c-\u0ea3\u0ea5\u0ea7-\u0ebd\u0ec0-\u0ec4\u0ec6\u0ec8-\u0ecd\u0ed0-\u0ed9\u0edc-\u0edf\u0f00\u0f18-\u0f19\u0f20-\u0f29\u0f35\u0f37\u0f39\u0f3e-\u0f47\u0f49-\u0f6c\u0f71-\u0f84\u0f86-\u0f97\u0f99-\u0fbc\u0fc6\u1000-\u1049\u1050-\u109d\u10a0-\u10c5\u10c7\u10cd\u10d0-\u10fa\u10fc-\u1248\u124a-\u124d\u1250-\u1256\u1258\u125a-\u125d\u1260-\u1288\u128a-\u128d\u1290-\u12b0\u12b2-\u12b5\u12b8-\u12be\u12c0\u12c2-\u12c5\u12c8-\u12d6\u12d8-\u1310\u1312-\u1315\u1318-\u135a\u135d-\u135f\u1369-\u1371\u1380-\u138f\u13a0-\u13f5\u13f8-\u13fd\u1401-\u166c\u166f-\u167f\u1681-\u169a\u16a0-\u16ea\u16ee-\u16f8\u1700-\u170c\u170e-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176c\u176e-\u1770\u1772-\u1773\u1780-\u17d3\u17d7\u17dc-\u17dd\u17e0-\u17e9\u180b-\u180d\u1810-\u1819\u1820-\u1878\u1880-\u18aa\u18b0-\u18f5\u1900-\u191e\u1920-\u192b\u1930-\u193b\u1946-\u196d\u1970-\u1974\u1980-\u19ab\u19b0-\u19c9\u19d0-\u19da\u1a00-\u1a1b\u1a20-\u1a5e\u1a60-\u1a7c\u1a7f-\u1a89\u1a90-\u1a99\u1aa7\u1ab0-\u1abd\u1b00-\u1b4b\u1b50-\u1b59\u1b6b-\u1b73\u1b80-\u1bf3\u1c00-\u1c37\u1c40-\u1c49\u1c4d-\u1c7d\u1c80-\u1c88\u1c90-\u1cba\u1cbd-\u1cbf\u1cd0-\u1cd2\u1cd4-\u1cfa\u1d00-\u1df9\u1dfb-\u1f15\u1f18-\u1f1d\u1f20-\u1f45\u1f48-\u1f4d\u1f50-\u1f57\u1f59\u1f5b\u1f5d\u1f5f-\u1f7d\u1f80-\u1fb4\u1fb6-\u1fbc\u1fbe\u1fc2-\u1fc4\u1fc6-\u1fcc\u1fd0-\u1fd3\u1fd6-\u1fdb\u1fe0-\u1fec\u1ff2-\u1ff4\u1ff6-\u1ffc\u203f-\u2040\u2054\u2071\u207f\u2090-\u209c\u20d0-\u20dc\u20e1\u20e5-\u20f0\u2102\u2107\u210a-\u2113\u2115\u2118-\u211d\u2124\u2126\u2128\u212a-\u2139\u213c-\u213f\u2145-\u2149\u214e\u2160-\u2188\u2c00-\u2c2e\u2c30-\u2c5e\u2c60-\u2ce4\u2ceb-\u2cf3\u2d00-\u2d25\u2d27\u2d2d\u2d30-\u2d67\u2d6f\u2d7f-\u2d96\u2da0-\u2da6\u2da8-\u2dae\u2db0-\u2db6\u2db8-\u2dbe\u2dc0-\u2dc6\u2dc8-\u2dce\u2dd0-\u2dd6\u2dd8-\u2dde\u2de0-\u2dff\u3005-\u3007\u3021-\u302f\u3031-\u3035\u3038-\u303c\u3041-\u3096\u3099-\u309f\u30a1-\u30fa\u30fc-\u30ff\u3105-\u312f\u3131-\u318e\u31a0-\u31ba\u31f0-\u31ff\u3400-\u4db5\u4e00-\u9fef\ua000-\ua48c\ua4d0-\ua4fd\ua500-\ua60c\ua610-\ua62b\ua640-\ua66f\ua674-\ua67d\ua67f-\ua6f1\ua717-\ua71f\ua722-\ua788\ua78b-\ua7bf\ua7c2-\ua7c6\ua7f7-\ua827\ua840-\ua873\ua880-\ua8c5\ua8d0-\ua8d9\ua8e0-\ua8f7\ua8fb\ua8fd-\ua92d\ua930-\ua953\ua960-\ua97c\ua980-\ua9c0\ua9cf-\ua9d9\ua9e0-\ua9fe\uaa00-\uaa36\uaa40-\uaa4d\uaa50-\uaa59\uaa60-\uaa76\uaa7a-\uaac2\uaadb-\uaadd\uaae0-\uaaef\uaaf2-\uaaf6\uab01-\uab06\uab09-\uab0e\uab11-\uab16\uab20-\uab26\uab28-\uab2e\uab30-\uab5a\uab5c-\uab67\uab70-\uabea\uabec-\uabed\uabf0-\uabf9\uac00-\ud7a3\ud7b0-\ud7c6\ud7cb-\ud7fb\uf900-\ufa6d\ufa70-\ufad9\ufb00-\ufb06\ufb13-\ufb17\ufb1d-\ufb28\ufb2a-\ufb36\ufb38-\ufb3c\ufb3e\ufb40-\ufb41\ufb43-\ufb44\ufb46-\ufbb1\ufbd3-\ufd3d\ufd50-\ufd8f\ufd92-\ufdc7\ufdf0-\ufdfb\ufe00-\ufe0f\ufe20-\ufe2f\ufe33-\ufe34\ufe4d-\ufe4f\ufe70-\ufe74\ufe76-\ufefc\uff10-\uff19\uff21-\uff3a\uff3f\uff41-\uff5a\uff66-\uffbe\uffc2-\uffc7\uffca-\uffcf\uffd2-\uffd7\uffda-\uffdc]|\ud800[\udc00-\udc0b\udc0d-\udc26\udc28-\udc3a\udc3c-\udc3d\udc3f-\udc4d\udc50-\udc5d\udc80-\udcfa\udd40-\udd74\uddfd\ude80-\ude9c\udea0-\uded0\udee0\udf00-\udf1f\udf2d-\udf4a\udf50-\udf7a\udf80-\udf9d\udfa0-\udfc3\udfc8-\udfcf\udfd1-\udfd5]|\ud801[\udc00-\udc9d\udca0-\udca9\udcb0-\udcd3\udcd8-\udcfb\udd00-\udd27\udd30-\udd63\ude00-\udf36\udf40-\udf55\udf60-\udf67]|\ud802[\udc00-\udc05\udc08\udc0a-\udc35\udc37-\udc38\udc3c\udc3f-\udc55\udc60-\udc76\udc80-\udc9e\udce0-\udcf2\udcf4-\udcf5\udd00-\udd15\udd20-\udd39\udd80-\uddb7\uddbe-\uddbf\ude00-\ude03\ude05-\ude06\ude0c-\ude13\ude15-\ude17\ude19-\ude35\ude38-\ude3a\ude3f\ude60-\ude7c\ude80-\ude9c\udec0-\udec7\udec9-\udee6\udf00-\udf35\udf40-\udf55\udf60-\udf72\udf80-\udf91]|\ud803[\udc00-\udc48\udc80-\udcb2\udcc0-\udcf2\udd00-\udd27\udd30-\udd39\udf00-\udf1c\udf27\udf30-\udf50\udfe0-\udff6]|\ud804[\udc00-\udc46\udc66-\udc6f\udc7f-\udcba\udcd0-\udce8\udcf0-\udcf9\udd00-\udd34\udd36-\udd3f\udd44-\udd46\udd50-\udd73\udd76\udd80-\uddc4\uddc9-\uddcc\uddd0-\uddda\udddc\ude00-\ude11\ude13-\ude37\ude3e\ude80-\ude86\ude88\ude8a-\ude8d\ude8f-\ude9d\ude9f-\udea8\udeb0-\udeea\udef0-\udef9\udf00-\udf03\udf05-\udf0c\udf0f-\udf10\udf13-\udf28\udf2a-\udf30\udf32-\udf33\udf35-\udf39\udf3b-\udf44\udf47-\udf48\udf4b-\udf4d\udf50\udf57\udf5d-\udf63\udf66-\udf6c\udf70-\udf74]|\ud805[\udc00-\udc4a\udc50-\udc59\udc5e-\udc5f\udc80-\udcc5\udcc7\udcd0-\udcd9\udd80-\uddb5\uddb8-\uddc0\uddd8-\udddd\ude00-\ude40\ude44\ude50-\ude59\ude80-\udeb8\udec0-\udec9\udf00-\udf1a\udf1d-\udf2b\udf30-\udf39]|\ud806[\udc00-\udc3a\udca0-\udce9\udcff\udda0-\udda7\uddaa-\uddd7\uddda-\udde1\udde3-\udde4\ude00-\ude3e\ude47\ude50-\ude99\ude9d\udec0-\udef8]|\ud807[\udc00-\udc08\udc0a-\udc36\udc38-\udc40\udc50-\udc59\udc72-\udc8f\udc92-\udca7\udca9-\udcb6\udd00-\udd06\udd08-\udd09\udd0b-\udd36\udd3a\udd3c-\udd3d\udd3f-\udd47\udd50-\udd59\udd60-\udd65\udd67-\udd68\udd6a-\udd8e\udd90-\udd91\udd93-\udd98\udda0-\udda9\udee0-\udef6]|\ud808[\udc00-\udf99]|\ud809[\udc00-\udc6e\udc80-\udd43]|\ud80c[\udc00-\udfff]|\ud80d[\udc00-\udc2e]|\ud811[\udc00-\ude46]|\ud81a[\udc00-\ude38\ude40-\ude5e\ude60-\ude69\uded0-\udeed\udef0-\udef4\udf00-\udf36\udf40-\udf43\udf50-\udf59\udf63-\udf77\udf7d-\udf8f]|\ud81b[\ude40-\ude7f\udf00-\udf4a\udf4f-\udf87\udf8f-\udf9f\udfe0-\udfe1\udfe3]|\ud81c[\udc00-\udfff]|\ud81d[\udc00-\udfff]|\ud81e[\udc00-\udfff]|\ud81f[\udc00-\udfff]|\ud820[\udc00-\udfff]|\ud821[\udc00-\udff7]|\ud822[\udc00-\udef2]|\ud82c[\udc00-\udd1e\udd50-\udd52\udd64-\udd67\udd70-\udefb]|\ud82f[\udc00-\udc6a\udc70-\udc7c\udc80-\udc88\udc90-\udc99\udc9d-\udc9e]|\ud834[\udd65-\udd69\udd6d-\udd72\udd7b-\udd82\udd85-\udd8b\uddaa-\uddad\ude42-\ude44]|\ud835[\udc00-\udc54\udc56-\udc9c\udc9e-\udc9f\udca2\udca5-\udca6\udca9-\udcac\udcae-\udcb9\udcbb\udcbd-\udcc3\udcc5-\udd05\udd07-\udd0a\udd0d-\udd14\udd16-\udd1c\udd1e-\udd39\udd3b-\udd3e\udd40-\udd44\udd46\udd4a-\udd50\udd52-\udea5\udea8-\udec0\udec2-\udeda\udedc-\udefa\udefc-\udf14\udf16-\udf34\udf36-\udf4e\udf50-\udf6e\udf70-\udf88\udf8a-\udfa8\udfaa-\udfc2\udfc4-\udfcb\udfce-\udfff]|\ud836[\ude00-\ude36\ude3b-\ude6c\ude75\ude84\ude9b-\ude9f\udea1-\udeaf]|\ud838[\udc00-\udc06\udc08-\udc18\udc1b-\udc21\udc23-\udc24\udc26-\udc2a\udd00-\udd2c\udd30-\udd3d\udd40-\udd49\udd4e\udec0-\udef9]|\ud83a[\udc00-\udcc4\udcd0-\udcd6\udd00-\udd4b\udd50-\udd59]|\ud83b[\ude00-\ude03\ude05-\ude1f\ude21-\ude22\ude24\ude27\ude29-\ude32\ude34-\ude37\ude39\ude3b\ude42\ude47\ude49\ude4b\ude4d-\ude4f\ude51-\ude52\ude54\ude57\ude59\ude5b\ude5d\ude5f\ude61-\ude62\ude64\ude67-\ude6a\ude6c-\ude72\ude74-\ude77\ude79-\ude7c\ude7e\ude80-\ude89\ude8b-\ude9b\udea1-\udea3\udea5-\udea9\udeab-\udebb]|\ud840[\udc00-\udfff]|\ud841[\udc00-\udfff]|\ud842[\udc00-\udfff]|\ud843[\udc00-\udfff]|\ud844[\udc00-\udfff]|\ud845[\udc00-\udfff]|\ud846[\udc00-\udfff]|\ud847[\udc00-\udfff]|\ud848[\udc00-\udfff]|\ud849[\udc00-\udfff]|\ud84a[\udc00-\udfff]|\ud84b[\udc00-\udfff]|\ud84c[\udc00-\udfff]|\ud84d[\udc00-\udfff]|\ud84e[\udc00-\udfff]|\ud84f[\udc00-\udfff]|\ud850[\udc00-\udfff]|\ud851[\udc00-\udfff]|\ud852[\udc00-\udfff]|\ud853[\udc00-\udfff]|\ud854[\udc00-\udfff]|\ud855[\udc00-\udfff]|\ud856[\udc00-\udfff]|\ud857[\udc00-\udfff]|\ud858[\udc00-\udfff]|\ud859[\udc00-\udfff]|\ud85a[\udc00-\udfff]|\ud85b[\udc00-\udfff]|\ud85c[\udc00-\udfff]|\ud85d[\udc00-\udfff]|\ud85e[\udc00-\udfff]|\ud85f[\udc00-\udfff]|\ud860[\udc00-\udfff]|\ud861[\udc00-\udfff]|\ud862[\udc00-\udfff]|\ud863[\udc00-\udfff]|\ud864[\udc00-\udfff]|\ud865[\udc00-\udfff]|\ud866[\udc00-\udfff]|\ud867[\udc00-\udfff]|\ud868[\udc00-\udfff]|\ud869[\udc00-\uded6\udf00-\udfff]|\ud86a[\udc00-\udfff]|\ud86b[\udc00-\udfff]|\ud86c[\udc00-\udfff]|\ud86d[\udc00-\udf34\udf40-\udfff]|\ud86e[\udc00-\udc1d\udc20-\udfff]|\ud86f[\udc00-\udfff]|\ud870[\udc00-\udfff]|\ud871[\udc00-\udfff]|\ud872[\udc00-\udfff]|\ud873[\udc00-\udea1\udeb0-\udfff]|\ud874[\udc00-\udfff]|\ud875[\udc00-\udfff]|\ud876[\udc00-\udfff]|\ud877[\udc00-\udfff]|\ud878[\udc00-\udfff]|\ud879[\udc00-\udfff]|\ud87a[\udc00-\udfe0]|\ud87e[\udc00-\ude1d]|\udb40[\udd00-\uddef])|[$_]|(\\u[0-9a-fA-F]{4}|\\u\{[0-9a-fA-F]{1,}\})|[\u200c\u200d])*>/,function(){return s9(sN=sN.slice(3,-1),this.getCurrentState()),"NAMED_CAPTURE_GROUP"}],[/^\(/,function(){return"L_PAREN"}],[/^\)/,function(){return"R_PAREN"}],[/^[*?+[^$]/,function(){return"CHAR"}],[/^\\\]/,function(){return"ESC_CHAR"}],[/^\]/,function(){return this.popState(),"R_BRACKET"}],[/^\^/,function(){return"BOS"}],[/^\$/,function(){return"EOS"}],[/^\*/,function(){return"STAR"}],[/^\?/,function(){return"Q_MARK"}],[/^\+/,function(){return"PLUS"}],[/^\|/,function(){return"BAR"}],[/^\./,function(){return"ANY"}],[/^\//,function(){return"SLASH"}],[/^[^*?+\[()\\|]/,function(){return"CHAR"}],[/^\[\^/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"NEG_CLASS"}],[/^\[/,function(){var e=this.getCurrentState();return this.pushState("u"===e||"xu"===e?"u_class":"class"),"L_BRACKET"}]],sK={INITIAL:[8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u:[8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],xu:[0,1,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],x:[0,1,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,30,31,32,33,34,35,36,37,41,42,43,44,45,46,47,48,49,50,51],u_class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51],class:[2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,20,22,23,24,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41,42,43,44,45,46,47,48,49,50,51]},sX={type:"$",value:""};sG={initString:function(e){return this._string=e,this._cursor=0,this._states=["INITIAL"],this._tokensQueue=[],this._currentLine=1,this._currentColumn=0,this._currentLineBeginOffset=0,this._tokenStartOffset=0,this._tokenEndOffset=0,this._tokenStartLine=1,this._tokenEndLine=1,this._tokenStartColumn=0,this._tokenEndColumn=0,this},getStates:function(){return this._states},getCurrentState:function(){return this._states[this._states.length-1]},pushState:function(e){this._states.push(e)},begin:function(e){this.pushState(e)},popState:function(){return this._states.length>1?this._states.pop():this._states[0]},getNextToken:function(){if(this._tokensQueue.length>0)return this.onToken(this._toToken(this._tokensQueue.shift()));if(!this.hasMoreTokens())return this.onToken(sX);for(var e=this._string.slice(this._cursor),t=sK[this.getCurrentState()],r=0;r<t.length;r++){var n=sH[t[r]],u=this._match(e,n[0]);if(""===e&&""===u&&this._cursor++,null!==u){(sN=u).length;var a=n[1].call(this);if(!a)return this.getNextToken();if(Array.isArray(a)){var i,o=a.slice(1);a=a[0],o.length>0&&(i=this._tokensQueue).unshift.apply(i,sL(o))}return this.onToken(this._toToken(a,sN))}}if(this.isEOF())return this._cursor++,sX;this.throwUnexpectedToken(e[0],this._currentLine,this._currentColumn)},throwUnexpectedToken:function(e,t,r){var n=this._string.split("\n")[t-1],u="";throw n&&(u="\n\n"+n+"\n"+" ".repeat(r)+"^\n"),SyntaxError(u+'Unexpected token: "'+e+'" '+("at "+t)+":"+r+".")},getCursor:function(){return this._cursor},getCurrentLine:function(){return this._currentLine},getCurrentColumn:function(){return this._currentColumn},_captureLocation:function(e){var t=/\n/g;this._tokenStartOffset=this._cursor,this._tokenStartLine=this._currentLine,this._tokenStartColumn=this._tokenStartOffset-this._currentLineBeginOffset;for(var r=void 0;null!==(r=t.exec(e));)this._currentLine++,this._currentLineBeginOffset=this._tokenStartOffset+r.index+1;this._tokenEndOffset=this._cursor+e.length,this._tokenEndLine=this._currentLine,this._tokenEndColumn=this._currentColumn=this._tokenEndOffset-this._currentLineBeginOffset},_toToken:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"";return{type:e,value:t,startOffset:this._tokenStartOffset,endOffset:this._tokenEndOffset,startLine:this._tokenStartLine,endLine:this._tokenEndLine,startColumn:this._tokenStartColumn,endColumn:this._tokenEndColumn}},isEOF:function(){return this._cursor===this._string.length},hasMoreTokens:function(){return this._cursor<=this._string.length},_match:function(e,t){var r=e.match(t);return r?(this._captureLocation(r[0]),this._cursor+=r[0].length,r[0]):null},onToken:function(e){return e}},sM.lexer=sG,sM.tokenizer=sG,sM.options={captureLocations:!0};var sJ={setOptions:function(e){return sM.options=e,this},getOptions:function(){return sM.options},parse:function(e,t){if(!sG)throw Error("Tokenizer instance wasn't specified.");sG.initString(e);var r=sM.options;t&&(sM.options=Object.assign({},sM.options,t)),sJ.onParseBegin(e,sG,sM.options),sZ.length=0,sZ.push(0);var n=sG.getNextToken(),u=null;do{n||(sM.options=r,du());var a=sZ[sZ.length-1],i=sW[n.type];sV[a].hasOwnProperty(i)||(sM.options=r,dn(n));var o=sV[a][i];if("s"===o[0]){var s=null;sM.options.captureLocations&&(s={startOffset:n.startOffset,endOffset:n.endOffset,startLine:n.startLine,endLine:n.endLine,startColumn:n.startColumn,endColumn:n.endColumn}),u=this.onShift(n),sZ.push({symbol:sW[u.type],semanticValue:u.value,loc:s},Number(o.slice(1))),n=sG.getNextToken()}else if("r"===o[0]){var d=sq[o.slice(1)],l="function"==typeof d[2],c=l?[]:null,f=l&&sM.options.captureLocations?[]:null;if(0!==d[1])for(var p=d[1];p-- >0;){sZ.pop();var m=sZ.pop();l&&(c.unshift(m.semanticValue),f&&f.unshift(m.loc))}var g={symbol:d[0]};if(l){sN=u?u.value:null,u&&u.value.length;var y=null!==f?c.concat(f):c;d[2].apply(d,sL(y)),g.semanticValue=s$,f&&(g.loc=sz)}var h=sZ[sZ.length-1],b=d[0];sZ.push(g,sV[h][b])}else if("acc"===o){sZ.pop();var v=sZ.pop();if((1!==sZ.length||0!==sZ[0]||sG.hasMoreTokens())&&(sM.options=r,dn(n)),v.hasOwnProperty("semanticValue"))return sM.options=r,sJ.onParseEnd(v.semanticValue),v.semanticValue;return sJ.onParseEnd(),sM.options=r,!0}}while(sG.hasMoreTokens()||sZ.length>1)},setTokenizer:function(e){return sG=e,sJ},getTokenizer:function(){return sG},onParseBegin:function(e,t,r){},onParseEnd:function(e){},onShift:function(e){return e}},sY=0,sQ={},s0="";function s1(e){var t=e.match(/\d+/g).map(Number);if(Number.isFinite(t[1])&&t[1]<t[0])throw SyntaxError("Numbers out of order in "+e+" quantifier");return t}function s2(e,t){if("control"===e.kind||"control"===t.kind||!isNaN(e.codePoint)&&!isNaN(t.codePoint)&&e.codePoint>t.codePoint)throw SyntaxError("Range "+e.value+"-"+t.value+" out of order in character class")}sJ.onParseBegin=function(e,t){s0=e,sY=0,sQ={};var r=e.lastIndexOf("/"),n=e.slice(r);n.includes("x")&&n.includes("u")?t.pushState("xu"):(n.includes("x")&&t.pushState("x"),n.includes("u")&&t.pushState("u"))},sJ.onShift=function(e){return("L_PAREN"===e.type||"NAMED_CAPTURE_GROUP"===e.type)&&(e.value=new String(e.value),e.value.groupNumber=++sY),e};var s3={isValidName:function(e){return sw.hasOwnProperty(e)||sF.hasOwnProperty(e)||s_.hasOwnProperty(e)||sk.hasOwnProperty(e)},isValidValue:function(e,t){return"General_Category"===e||"gc"==e?sO(t):!!("Script"===e||"Script_Extensions"===e||"sc"===e||"scx"===e)&&(sI.hasOwnProperty(t)||sB.hasOwnProperty(t))},isGeneralCategoryValue:sO,isBinaryPropertyName:function(e){return s_.hasOwnProperty(e)||sk.hasOwnProperty(e)},getCanonicalName:function(e){return sF.hasOwnProperty(e)?sF[e]:sk.hasOwnProperty(e)?sk[e]:null},getCanonicalValue:function(e){return sP.hasOwnProperty(e)?sP[e]:sB.hasOwnProperty(e)?sB[e]:sk.hasOwnProperty(e)?sk[e]:null}};function s4(e,t,r){var n=void 0,u=void 0;switch(t){case"decimal":n=String.fromCodePoint(u=Number(e.slice(1)));break;case"oct":n=String.fromCodePoint(u=parseInt(e.slice(1),8));break;case"hex":case"unicode":if(e.lastIndexOf("\\u")>0){var a=sR(e.split("\\u").slice(1),2),i=a[0],o=a[1];n=String.fromCodePoint(u=((i=parseInt(i,16))-55296)*1024+((o=parseInt(o,16))-56320)+65536)}else{if((u=parseInt(e.slice(2).replace("{",""),16))>1114111)throw SyntaxError("Bad character escape sequence: "+e);n=String.fromCodePoint(u)}break;case"meta":switch(e){case"\\t":u=(n=" ").codePointAt(0);break;case"\\n":u=(n="\n").codePointAt(0);break;case"\\r":u=(n="\r").codePointAt(0);break;case"\\v":u=(n="\v").codePointAt(0);break;case"\\f":u=(n="\f").codePointAt(0);break;case"\\b":u=(n="\b").codePointAt(0);case"\\0":n="\0",u=0;case".":n=".",u=NaN;break;default:u=NaN}break;case"simple":u=(n=e).codePointAt(0)}return dt({type:"Char",value:e,kind:t,symbol:n,codePoint:u},r)}var s5=/^\\u[0-9a-fA-F]{4}/,s8=/^\\u\{[0-9a-fA-F]{1,}\}/,s6=/\\u\{[0-9a-fA-F]{1,}\}/;function s9(e,t){if(s6.test(e)&&!("u"===t||"xu"===t||"u_class"===t))throw SyntaxError('invalid group Unicode name "'+e+'", use `u` flag.');return e}var s7=/\\u(?:([dD][89aAbB][0-9a-fA-F]{2})\\u([dD][c-fC-F][0-9a-fA-F]{2})|([dD][89aAbB][0-9a-fA-F]{2})|([dD][c-fC-F][0-9a-fA-F]{2})|([0-9a-ce-fA-CE-F][0-9a-fA-F]{3}|[dD][0-7][0-9a-fA-F]{2})|\{(0*(?:[0-9a-fA-F]{1,5}|10[0-9a-fA-F]{4}))\})/;function de(e){return e.replace(RegExp(s7,"g"),function(e,t,r,n,u,a,i){return t?String.fromCodePoint(parseInt(t,16),parseInt(r,16)):n?String.fromCodePoint(parseInt(n,16)):u?String.fromCodePoint(parseInt(u,16)):a?String.fromCodePoint(parseInt(a,16)):i?String.fromCodePoint(parseInt(i,16)):e})}function dt(e,t){return sM.options.captureLocations&&(e.loc={source:s0.slice(t.startOffset,t.endOffset),start:{line:t.startLine,column:t.startColumn,offset:t.startOffset},end:{line:t.endLine,column:t.endColumn,offset:t.endOffset}}),e}function dr(e,t){return sM.options.captureLocations?{startOffset:e.startOffset,endOffset:t.endOffset,startLine:e.startLine,endLine:t.endLine,startColumn:e.startColumn,endColumn:t.endColumn}:null}function dn(e){"$"===e.type&&du(),sG.throwUnexpectedToken(e.value,e.startLine,e.startColumn)}function du(){!function(e){throw SyntaxError(e)}("Unexpected end of input.")}var da=sJ.parse.bind(sJ);sJ.parse=function(e,t){return da(""+e,t)},sJ.setOptions({captureLocations:!1});var di=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),ds="expressions",dd="expression",dl=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.node=t,this.parentPath=r,this.parent=r?r.node:null,this.property=n,this.index=u}return di(e,[{key:"_enforceProp",value:function(e){if(!this.node.hasOwnProperty(e))throw Error("Node of type "+this.node.type+" doesn't have \""+e+'" collection.')}},{key:"setChild",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=void 0;return null!=r?(n||(n=ds),this._enforceProp(n),this.node[n][r]=t,u=e.getForNode(t,this,n,r)):(n||(n=dd),this._enforceProp(n),this.node[n]=t,u=e.getForNode(t,this,n,null)),u}},{key:"appendChild",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;t||(t=ds),this._enforceProp(t);var r=this.node[t].length;return this.setChild(e,r,t)}},{key:"insertChildAt",value:function(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:ds;this._enforceProp(n),this.node[n].splice(r,0,t),r<=e.getTraversingIndex()&&e.updateTraversingIndex(1),this._rebuildIndex(this.node,n)}},{key:"remove",value:function(){if(!this.isRemoved()&&(e.registry.delete(this.node),this.node=null,this.parent)){if(null!==this.index){this.parent[this.property].splice(this.index,1),this.index<=e.getTraversingIndex()&&e.updateTraversingIndex(-1),this._rebuildIndex(this.parent,this.property),this.index=null,this.property=null;return}delete this.parent[this.property],this.property=null}}},{key:"_rebuildIndex",value:function(t,r){for(var n=e.getForNode(t),u=0;u<t[r].length;u++)e.getForNode(t[r][u],n,r,u).index=u}},{key:"isRemoved",value:function(){return null===this.node}},{key:"replace",value:function(t){return(e.registry.delete(this.node),this.node=t,this.parent)?(null!==this.index?this.parent[this.property][this.index]=t:this.parent[this.property]=t,e.getForNode(t,this.parentPath,this.property,this.index)):null}},{key:"update",value:function(e){Object.assign(this.node,e)}},{key:"getParent",value:function(){return this.parentPath}},{key:"getChild",value:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;return this.node.expressions?e.getForNode(this.node.expressions[t],this,ds,t):this.node.expression&&0==t?e.getForNode(this.node.expression,this,dd):null}},{key:"hasEqualSource",value:function(e){return JSON.stringify(this.node,dc)===JSON.stringify(e.node,dc)}},{key:"jsonEncode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},t=e.format,r=e.useLoc;return JSON.stringify(this.node,r?null:dc,t)}},{key:"getPreviousSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index-1],e.getForNode(this.parent),this.property,this.index-1):null}},{key:"getNextSibling",value:function(){return this.parent&&null!=this.index?e.getForNode(this.parent[this.property][this.index+1],e.getForNode(this.parent),this.property,this.index+1):null}}],[{key:"getForNode",value:function(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,u=arguments.length>3&&void 0!==arguments[3]?arguments[3]:-1;if(!t)return null;e.registry.has(t)||e.registry.set(t,new e(t,r,n,-1==u?null:u));var a=e.registry.get(t);return null!==r&&(a.parentPath=r,a.parent=a.parentPath.node),null!==n&&(a.property=n),u>=0&&(a.index=u),a}},{key:"initRegistry",value:function(){e.registry||(e.registry=new Map),e.registry.clear()}},{key:"updateTraversingIndex",value:function(t){return e.traversingIndexStack[e.traversingIndexStack.length-1]+=t}},{key:"getTraversingIndex",value:function(){return e.traversingIndexStack[e.traversingIndexStack.length-1]}}]),e}();function dc(e,t){if("loc"!==e)return t}dl.initRegistry(),dl.traversingIndexStack=[];var df=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{asNodes:!1};function n(e,t,r,n){var u=dl.getForNode(t);return dl.getForNode(e,u,r,n)}Array.isArray(t)||(t=[t]),t=t.filter(function(t){return"function"!=typeof t.shouldRun||t.shouldRun(e)}),dl.initRegistry(),t.forEach(function(t){"function"==typeof t.init&&t.init(e)}),function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.pre,n=t.post,u=t.skipProperty;!function e(t,a,i,o){if(t&&"string"==typeof t.type){var s=void 0;if(r&&(s=r(t,a,i,o)),!1!==s){for(var d in a&&a[i]&&(t=isNaN(o)?a[i]:a[i][o]),t)if(t.hasOwnProperty(d)){if(u?u(d,t):"$"===d[0])continue;var l=t[d];if(Array.isArray(l)){var c=0;for(dl.traversingIndexStack.push(c);c<l.length;)e(l[c],t,d,c),c=dl.updateTraversingIndex(1);dl.traversingIndexStack.pop()}else e(l,t,d)}}n&&n(t,a,i,o)}}(e,null)}(e,{pre:function(e,u,a,i){var o=void 0;r.asNodes||(o=n(e,u,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=t[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value;if("function"==typeof p["*"]){if(o){if(!o.isRemoved()){var m=p["*"](o);if(!1===m)return!1}}else p["*"](e,u,a,i)}var g=void 0;if("function"==typeof p[e.type]?g=p[e.type]:"object"==typeof p[e.type]&&"function"==typeof p[e.type].pre&&(g=p[e.type].pre),g){if(o){if(!o.isRemoved()){var y=g.call(p,o);if(!1===y)return!1}}else g.call(p,e,u,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}},post:function(e,u,a,i){if(e){var o=void 0;r.asNodes||(o=n(e,u,a,i));var s=!0,d=!1,l=void 0;try{for(var c,f=t[Symbol.iterator]();!(s=(c=f.next()).done);s=!0){var p=c.value,m=void 0;if("object"==typeof p[e.type]&&"function"==typeof p[e.type].post&&(m=p[e.type].post),m){if(o){if(!o.isRemoved()){var g=m.call(p,o);if(!1===g)return!1}}else m.call(p,e,u,a,i)}}}catch(e){d=!0,l=e}finally{try{!s&&f.return&&f.return()}finally{if(d)throw l}}}},skipProperty:function(e){return"loc"===e}})},dp=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),dm=function(){function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._ast=t,this._source=null,this._string=null,this._regexp=null,this._extra=r}return dp(e,[{key:"getAST",value:function(){return this._ast}},{key:"setExtra",value:function(e){this._extra=e}},{key:"getExtra",value:function(){return this._extra}},{key:"toRegExp",value:function(){return this._regexp||(this._regexp=new RegExp(this.getSource(),this._ast.flags)),this._regexp}},{key:"getSource",value:function(){return this._source||(this._source=sS.generate(this._ast.body)),this._source}},{key:"getFlags",value:function(){return this._ast.flags}},{key:"toString",value:function(){return this._string||(this._string=sS.generate(this._ast)),this._string}}]),e}(),dg=function(e,t){var r=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(r=sJ.parse(e,{captureLocations:!0})),df(r,t),new dm(r)},dy={dotAll:{_hasUFlag:!1,shouldRun:function(e){return!!e.flags.includes("s")&&(e.flags=e.flags.replace("s",""),this._hasUFlag=e.flags.includes("u"),!0)},Char:function(e){var t=e.node;if("meta"===t.kind&&"."===t.value){var r="\\uFFFF",n="￿";this._hasUFlag&&(r="\\u{10FFFF}",n="\uDBFF\uDFFF"),e.replace({type:"CharacterClass",expressions:[{type:"ClassRange",from:{type:"Char",value:"\\0",kind:"decimal",symbol:"\0"},to:{type:"Char",value:r,kind:"unicode",symbol:n}}]})}}},namedCapturingGroups:{_groupNames:{},init:function(){this._groupNames={}},getExtra:function(){return this._groupNames},Group:function(e){var t=e.node;t.name&&(this._groupNames[t.name]=t.number,delete t.name,delete t.nameRaw)},Backreference:function(e){var t=e.node;"name"===t.kind&&(t.kind="number",t.reference=t.number,delete t.referenceRaw)}},xFlag:{RegExp:function(e){var t=e.node;t.flags.includes("x")&&(t.flags=t.flags.replace("x",""))}}},dh=function e(t){if("Disjunction"!==t.type)throw TypeError('Expected "Disjunction" node, got "'+t.type+'"');var r=[];return t.left&&"Disjunction"===t.left.type?r.push.apply(r,(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r})(e(t.left)).concat([t.right])):r.push(t.left,t.right),r},db=function(e){"*"===e.kind?e.kind="+":"+"===e.kind?(e.kind="Range",e.from=2,delete e.to):"?"===e.kind?(e.kind="Range",e.from=1,e.to=2):"Range"===e.kind&&(e.from+=1,e.to&&(e.to+=1))};function dv(e){return e.greedy&&("+"===e.kind||"*"===e.kind||"Range"===e.kind&&!e.to)}function dx(e){var t=void 0,r=void 0;return"*"===e.kind?t=0:"+"===e.kind?t=1:"?"===e.kind?(t=0,r=1):(t=e.from,e.to&&(r=e.to)),{from:t,to:r}}function dE(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var dA=[function(e){return dD(e," ")}].concat(dE(["\\f","\\n","\\r","\\t","\\v"].map(function(e){return function(t){return dC(t,e)}})),dE([160,5760,8232,8233,8239,8287,12288,65279].map(function(e){return function(t){return dS(t,e)}})),[function(e){return"ClassRange"===e.type&&dS(e.from,8192)&&dS(e.to,8202)}]);function dD(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"simple";return"Char"===e.type&&e.value===t&&e.kind===r}function dC(e,t){return dD(e,t,"meta")}function dS(e,t){return"Char"===e.type&&"unicode"===e.kind&&e.codePoint===t}function dw(e,t,r){for(var n=e,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];u&&"Char"===u.type&&"simple"===u.kind&&!u.escaped&&/\d/.test(u.value);)r?n--:n++,u=(r?n>=0:n<t.expressions.length)&&t.expressions[n];return Math.abs(e-n)}function dF(e,t){return e&&"Char"===e.type&&"simple"===e.kind&&!e.escaped&&e.value===t}function d_(e,t){var r=dk(e),n=dk(t);if(r===n){if("ClassRange"===e.type&&"ClassRange"!==t.type)return -1;if("ClassRange"===t.type&&"ClassRange"!==e.type)return 1;if("ClassRange"===e.type&&"ClassRange"===t.type)return dk(e.to)-dk(t.to);if(dT(e)&&dT(t)||dP(e)&&dP(t))return e.value<t.value?-1:1}return r-n}function dk(e){return"Char"===e.type?"-"===e.value||"control"===e.kind?1/0:"meta"===e.kind&&isNaN(e.codePoint)?-1:e.codePoint:e.from.codePoint}function dT(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return"Char"===e.type&&"meta"===e.kind&&(t?e.value===t:/^\\[dws]$/i.test(e.value))}function dP(e){return"Char"===e.type&&"control"===e.kind}function dI(e){return 9===e.codePoint||10===e.codePoint||11===e.codePoint||12===e.codePoint||13===e.codePoint||32===e.codePoint||160===e.codePoint||5760===e.codePoint||e.codePoint>=8192&&e.codePoint<=8202||8232===e.codePoint||8233===e.codePoint||8239===e.codePoint||8287===e.codePoint||12288===e.codePoint||65279===e.codePoint}function dB(e){return e.codePoint>=48&&e.codePoint<=57}function dj(e,t){return dB(e)||e.codePoint>=65&&e.codePoint<=90||e.codePoint>=97&&e.codePoint<=122||"_"===e.value||t&&(383===e.codePoint||8490===e.codePoint)}function dO(e){return e&&"Char"===e.type&&!isNaN(e.codePoint)&&(dj(e,!1)||"unicode"===e.kind||"hex"===e.kind||"oct"===e.kind||"decimal"===e.kind)}var dR={RegExp:function(e,t){e.node.body=t},Group:function(e,t){var r=e.node;r.capturing?r.expression=t:e.replace(t)}};function dL(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}function dN(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var dM=new Map([["charSurrogatePairToSingleUnicode",{shouldRun:function(e){return e.flags.includes("u")},Char:function(e){var t=e.node;"unicode"!==t.kind||!t.isSurrogatePair||isNaN(t.codePoint)||(t.value="\\u{"+t.codePoint.toString(16)+"}",delete t.isSurrogatePair)}}],["charCodeToSimpleChar",{Char:function(e){var t=e.node,r=e.parent;if(!isNaN(t.codePoint)&&"simple"!==t.kind&&("ClassRange"!==r.type||(n=r.from,u=r.to,n.codePoint>=48&&n.codePoint<=57&&u.codePoint>=48&&u.codePoint<=57||n.codePoint>=65&&n.codePoint<=90&&u.codePoint>=65&&u.codePoint<=90||n.codePoint>=97&&n.codePoint<=122&&u.codePoint>=97&&u.codePoint<=122))&&(a=t.codePoint)>=32&&a<=126){var n,u,a,i,o=String.fromCodePoint(t.codePoint),s={type:"Char",kind:"simple",value:o,symbol:o,codePoint:t.codePoint};("ClassRange"===(i=r.type)||"CharacterClass"===i?/[\]\\^-]/.test(o):/[*[()+?^$./\\|{}]/.test(o))&&(s.escaped=!0),e.replace(s)}}}],["charCaseInsensitiveLowerCaseTransform",{_AZClassRanges:null,_hasUFlag:!1,init:function(e){this._AZClassRanges=new Set,this._hasUFlag=e.flags.includes("u")},shouldRun:function(e){return e.flags.includes("i")},Char:function(e){var t,r,n=e.node,u=e.parent;if(!isNaN(n.codePoint)&&(this._hasUFlag||!(n.codePoint>=4096))){if("ClassRange"===u.type){if(!this._AZClassRanges.has(u)&&(t=u.from,r=u.to,!(t.codePoint>=65)||!(t.codePoint<=90)||!(r.codePoint>=65)||!(r.codePoint<=90)))return;this._AZClassRanges.add(u)}var a=n.symbol.toLowerCase();a!==n.symbol&&(n.value=function(e,t){var r=e.codePointAt(0);if("decimal"===t.kind)return"\\"+r;if("oct"===t.kind)return"\\0"+r.toString(8);if("hex"===t.kind)return"\\x"+r.toString(16);if("unicode"===t.kind){if(t.isSurrogatePair){var n={lead:(Math.floor((r-65536)/1024)+55296).toString(16),trail:((r-65536)%1024+56320).toString(16)},u=n.lead,a=n.trail;return"\\u"+"0".repeat(4-u.length)+u+"\\u"+"0".repeat(4-a.length)+a}if(t.value.includes("{"))return"\\u{"+r.toString(16)+"}";var i=r.toString(16);return"\\u"+"0".repeat(4-i.length)+i}return e}(a,n),n.symbol=a,n.codePoint=a.codePointAt(0))}}}],["charClassRemoveDuplicates",{CharacterClass:function(e){for(var t=e.node,r={},n=0;n<t.expressions.length;n++){var u=e.getChild(n),a=u.jsonEncode();r.hasOwnProperty(a)&&(u.remove(),n--),r[a]=!0}}}],["quantifiersMerge",{Repetition:function(e){var t=e.node;if("Alternative"===e.parent.type&&e.index){var r=e.getPreviousSibling();if(r){if("Repetition"===r.node.type){if(!r.getChild().hasEqualSource(e.getChild()))return;var n=dx(r.node.quantifier),u=n.from,a=n.to,i=dx(t.quantifier),o=i.from,s=i.to;if(r.node.quantifier.greedy!==t.quantifier.greedy&&!dv(r.node.quantifier)&&!dv(t.quantifier))return;t.quantifier.kind="Range",t.quantifier.from=u+o,a&&s?t.quantifier.to=a+s:delete t.quantifier.to,(dv(r.node.quantifier)||dv(t.quantifier))&&(t.quantifier.greedy=!0),r.remove()}else{if(!r.hasEqualSource(e.getChild()))return;db(t.quantifier),r.remove()}}}}}],["quantifierRangeToSymbol",{Quantifier:function(e){if("Range"===e.node.kind){var t,r,n;0!==(t=e.node).from||t.to||(t.kind="*",delete t.from),1!==(r=e.node).from||r.to||(r.kind="+",delete r.from),1===(n=e.node).from&&1===n.to&&e.parentPath.replace(e.parentPath.node.expression)}}}],["charClassClassrangesToChars",{ClassRange:function(e){var t=e.node;t.from.codePoint===t.to.codePoint?e.replace(t.from):t.from.codePoint===t.to.codePoint-1&&(e.getParent().insertChildAt(t.to,e.index+1),e.replace(t.from))}}],["charClassToMeta",{_hasIFlag:!1,_hasUFlag:!1,init:function(e){this._hasIFlag=e.flags.includes("i"),this._hasUFlag=e.flags.includes("u")},CharacterClass:function(e){var t,r,n,u,a,i,o,s,d;(function(e){e.node.expressions.forEach(function(t,r){"ClassRange"===t.type&&"0"===t.from.value&&"9"===t.to.value&&e.getChild(r).replace({type:"Char",value:"\\d",kind:"meta"})})})(e),t=this._hasIFlag,r=this._hasUFlag,n=e.node,u=null,a=null,i=null,o=null,s=null,d=null,n.expressions.forEach(function(n,l){dC(n,"\\d")?u=e.getChild(l):"ClassRange"===n.type&&"a"===n.from.value&&"z"===n.to.value?a=e.getChild(l):"ClassRange"===n.type&&"A"===n.from.value&&"Z"===n.to.value?i=e.getChild(l):"Char"===n.type&&"_"===n.value&&"simple"===n.kind?o=e.getChild(l):t&&r&&dS(n,383)?s=e.getChild(l):t&&r&&dS(n,8490)&&(d=e.getChild(l))}),u&&(a&&i||t&&(a||i))&&o&&(!r||!t||s&&d)&&(u.replace({type:"Char",value:"\\w",kind:"meta"}),a&&a.remove(),i&&i.remove(),o.remove(),s&&s.remove(),d&&d.remove()),function(e){var t=e.node;if(!(t.expressions.length<dA.length)&&dA.every(function(e){return t.expressions.some(function(t){return e(t)})})){var r=t.expressions.find(function(e){return dC(e,"\\n")});r.value="\\s",r.symbol=void 0,r.codePoint=NaN,t.expressions.map(function(t,r){return dA.some(function(e){return e(t)})?e.getChild(r):void 0}).filter(Boolean).forEach(function(e){return e.remove()})}}(e)}}],["charClassToSingleChar",{CharacterClass:function(e){var t=e.node;if(1===t.expressions.length&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&"Char"===(r=t.expressions[0]).type&&"\\b"!==r.value){var r,n,u,a,i=t.expressions[0],o=i.value,s=i.kind,d=i.escaped;if(t.negative){if(n=o,!/^\\[dwsDWS]$/.test(n))return;u=o,o=/[dws]/.test(u)?u.toUpperCase():u.toLowerCase()}e.replace({type:"Char",value:o,kind:s,escaped:d||(a=o,/[*[()+?$./{}|]/.test(a))})}}}],["charEscapeUnescape",{_hasXFlag:!1,init:function(e){this._hasXFlag=e.flags.includes("x")},Char:function(e){var t,r,n,u,a=e.node;a.escaped&&(t=this._hasXFlag,r=e.node.value,n=e.index,("CharacterClass"!==(u=e.parent).type&&"ClassRange"!==u.type?"{"===r?function(e,t){if(null==e)return!1;var r=dw(e+1,t),n=e+r+1,u=n<t.expressions.length&&t.expressions[n];if(r){if(dF(u,"}"))return!0;if(dF(u,","))return r=dw(n+1,t),dF(u=(n=n+r+1)<t.expressions.length&&t.expressions[n],"}")}return!1}(n,u):"}"===r?function(e,t){if(null==e)return!1;var r=dw(e-1,t,!0),n=e-r-1,u=n>=0&&t.expressions[n];return!!(r&&dF(u,"{"))||!!dF(u,",")&&(r=dw(n-1,t,!0),u=(n=n-r-1)<t.expressions.length&&t.expressions[n],r&&dF(u,"{"))}(n,u):!!(t&&/[ #]/.test(r))||/[*[()+?^$./\\|]/.test(r):"^"===r?0===n&&!u.negative:"-"===r||/[\]\\]/.test(r))||delete a.escaped)}}],["charClassClassrangesMerge",{_hasIUFlags:!1,init:function(e){this._hasIUFlags=e.flags.includes("i")&&e.flags.includes("u")},CharacterClass:function(e){var t=e.node.expressions,r=[];t.forEach(function(e){dT(e)&&r.push(e.value)}),t.sort(d_);for(var n=0;n<t.length;n++){var u,a=t[n];if(function(e,t,r){for(var n=0;n<t.length;n++)if(function e(t,r,n){return"ClassRange"===t.type?e(t.from,r,n)&&e(t.to,r,n):!!("\\S"===r&&(dT(t,"\\w")||dT(t,"\\d"))||"\\D"===r&&(dT(t,"\\W")||dT(t,"\\s"))||"\\w"===r&&dT(t,"\\d")||"\\W"===r&&dT(t,"\\s"))||!("Char"!==t.type||isNaN(t.codePoint))&&("\\s"===r?dI(t):"\\S"===r?!dI(t):"\\d"===r?dB(t):"\\D"===r?!dB(t):"\\w"===r?dj(t,n):"\\W"===r&&!dj(t,n))}(e,t[n],r))return!0;return!1}(a,r,this._hasIUFlags)||function(e,t){if(t&&"ClassRange"===t.type){if(function e(t,r){return!("Char"===t.type&&isNaN(t.codePoint))&&("ClassRange"===t.type?e(t.from,r)&&e(t.to,r):t.codePoint>=r.from.codePoint&&t.codePoint<=r.to.codePoint)}(e,t))return!0;if(dO(e)&&t.to.codePoint===e.codePoint-1)return t.to=e,!0;if("ClassRange"===e.type&&e.from.codePoint<=t.to.codePoint+1&&e.to.codePoint>=t.from.codePoint-1)return e.from.codePoint<t.from.codePoint&&(t.from=e.from),e.to.codePoint>t.to.codePoint&&(t.to=e.to),!0}return!1}(a,t[n-1])||(u=t[n+1])&&"ClassRange"===u.type&&dO(a)&&u.from.codePoint===a.codePoint+1&&(u.from=a,1))t.splice(n,1),n--;else{var i=function(e,t,r){if(!dO(e))return 0;for(var n=0;t>0;){var u=r[t],a=r[t-1];if(dO(a)&&a.codePoint===u.codePoint-1)n++,t--;else break}return n>1?(r[t]={type:"ClassRange",from:r[t],to:e},n):0}(a,n,t);t.splice(n-i+1,i),n-=i}}}}],["disjunctionRemoveDuplicates",{Disjunction:function(e){var t=e.node,r={},n=dh(t).filter(function(e){var t=e?dl.getForNode(e).jsonEncode():"null";return!r.hasOwnProperty(t)&&(r[t]=e,!0)});e.replace(n.reduce(function(e,t){return{type:"Disjunction",left:e,right:t}}))}}],["groupSingleCharsToCharClass",{Disjunction:function(e){var t=e.node,r=e.parent;if(dR[r.type]){var n=new Map;if(function e(t,r){if(!t)return!1;var n=t.type;if("Disjunction"===n){var u=t.left,a=t.right;return e(u,r)&&e(a,r)}if("Char"===n){if("meta"===t.kind&&"."===t.symbol)return!1;var i=t.value;return r.set(i,t),!0}return"CharacterClass"===n&&!t.negative&&t.expressions.every(function(t){return e(t,r)})}(t,n)&&n.size){var u={type:"CharacterClass",expressions:Array.from(n.keys()).sort().map(function(e){return n.get(e)})};dR[r.type](e.getParent(),u)}}}}],["removeEmptyGroup",{Group:function(e){var t=e.node,r=e.parent,n=e.getChild();t.capturing||n||("Repetition"===r.type?e.getParent().replace(t):"RegExp"!==r.type&&e.remove())}}],["ungroup",{Group:function(e){var t=e.node,r=e.parent,n=e.getChild();if(!t.capturing&&n&&function(e){var t=e.parent,r=e.index;if("Alternative"!==t.type)return!0;var n=t.expressions[r-1];return null==n||("Backreference"!==n.type||"number"!==n.kind)&&("Char"!==n.type||"decimal"!==n.kind)}(e)&&("Disjunction"!==n.node.type||"RegExp"===r.type)&&("Repetition"!==r.type||"Char"===n.node.type||"CharacterClass"===n.node.type)){if("Alternative"===n.node.type){var u=e.getParent();"Alternative"===u.node.type&&u.replace({type:"Alternative",expressions:[].concat(dL(r.expressions.slice(0,e.index)),dL(n.node.expressions),dL(r.expressions.slice(e.index+1)))})}else e.replace(n.node)}}}],["combineRepeatingPatterns",{Alternative:function(e){for(var t=e.node,r=1;r<t.expressions.length;){var n=e.getChild(r);if((r=Math.max(1,function(e,t,r){for(var n=e.node,u=Math.ceil(r/2),a=0;a<u;){var i=r-2*a-1,o=void 0,s=void 0;if(0===a?(o=t,s=e.getChild(i)):(o=dl.getForNode({type:"Alternative",expressions:[].concat(dN(n.expressions.slice(r-a,r)),[t.node])}),s=dl.getForNode({type:"Alternative",expressions:[].concat(dN(n.expressions.slice(i,r-a)))})),o.hasEqualSource(s)){for(var d=0;d<2*a+1;d++)e.getChild(i).remove();return t.replace({type:"Repetition",expression:0===a&&"Repetition"!==o.node.type?o.node:{type:"Group",capturing:!1,expression:o.node},quantifier:{type:"Quantifier",kind:"Range",from:2,to:2,greedy:!0}}),i}a++}return r}(e,n,r)))>=t.expressions.length||(n=e.getChild(r),(r=Math.max(1,function(e,t,r){for(var n=e.node,u=0;u<r;){var a=e.getChild(u);if("Repetition"===a.node.type&&a.node.quantifier.greedy){var i=a.getChild(),o=void 0;if("Group"!==i.node.type||i.node.capturing||(i=i.getChild()),u+1===r?"Group"!==(o=t).node.type||o.node.capturing||(o=o.getChild()):o=dl.getForNode({type:"Alternative",expressions:[].concat(dN(n.expressions.slice(u+1,r+1)))}),i.hasEqualSource(o)){for(var s=u;s<r;s++)e.getChild(u+1).remove();return db(a.node.quantifier),u}}u++}return r}(e,n,r)))>=t.expressions.length))break;n=e.getChild(r),r=Math.max(1,function(e,t,r){var n=e.node;if("Repetition"===t.node.type&&t.node.quantifier.greedy){var u=t.getChild(),a=void 0;"Group"!==u.node.type||u.node.capturing||(u=u.getChild());var i=void 0;if("Alternative"===u.node.type?(i=u.node.expressions.length,a=dl.getForNode({type:"Alternative",expressions:[].concat(dN(n.expressions.slice(r-i,r)))})):(i=1,"Group"!==(a=e.getChild(r-1)).node.type||a.node.capturing||(a=a.getChild())),a.hasEqualSource(u)){for(var o=r-i;o<r;o++)e.getChild(r-i).remove();return db(t.node.quantifier),r-i}}return r}(e,n,r)),r++}}}]]),d$=function e(t){if(null===t||"object"!=typeof t)return t;var r=void 0;for(var n in r=Array.isArray(t)?[]:{},t)r[n]=e(t[n]);return r},dz=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")},dU=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),dq=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this.in=t,this.out=r}return dU(e,[{key:"matches",value:function(e){return this.in.matches(e)}},{key:"getAlphabet",value:function(){if(!this._alphabet){this._alphabet=new Set;var e=this.getTransitionTable();for(var t in e){var r=e[t];for(var n in r)"ε*"!==n&&this._alphabet.add(n)}}return this._alphabet}},{key:"getAcceptingStates",value:function(){return this._acceptingStates||this.getTransitionTable(),this._acceptingStates}},{key:"getAcceptingStateNumbers",value:function(){if(!this._acceptingStateNumbers){this._acceptingStateNumbers=new Set;var e=!0,t=!1,r=void 0;try{for(var n,u=this.getAcceptingStates()[Symbol.iterator]();!(e=(n=u.next()).done);e=!0){var a=n.value;this._acceptingStateNumbers.add(a.number)}}catch(e){t=!0,r=e}finally{try{!e&&u.return&&u.return()}finally{if(t)throw r}}}return this._acceptingStateNumbers}},{key:"getTransitionTable",value:function(){var e=this;if(!this._transitionTable){this._transitionTable={},this._acceptingStates=new Set;var t=new Set,r=new Set;(function n(u){if(!t.has(u)){t.add(u),u.number=t.size,e._transitionTable[u.number]={},u.accepting&&e._acceptingStates.add(u);var a=u.getTransitions(),i=!0,o=!1,s=void 0;try{for(var d,l=a[Symbol.iterator]();!(i=(d=l.next()).done);i=!0){var c=d.value,f=dz(c,2),p=f[0],m=f[1],g=[];r.add(p);var y=!0,h=!1,b=void 0;try{for(var v,x=m[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value;n(E),g.push(E.number)}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}e._transitionTable[u.number][p]=g}}catch(e){o=!0,s=e}finally{try{!i&&l.return&&l.return()}finally{if(o)throw s}}}})(this.in),t.forEach(function(t){delete e._transitionTable[t.number]["ε"],e._transitionTable[t.number]["ε*"]=[].concat(function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t.getEpsilonClosure())).map(function(e){return e.number})})}return this._transitionTable}}]),e}(),dW=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,u=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(n=(i=o.next()).done)&&(r.push(i.value),!t||r.length!==t);n=!0);}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}return r}(e,t);throw TypeError("Invalid attempt to destructure non-iterable instance")};function dV(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var dZ=null,dG=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();function dH(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}var dK=function(e){var t=e.getTransitionTable(),r=Object.keys(t),n=e.getAlphabet(),u=e.getAcceptingStateNumbers();dZ={};var a=new Set;r.forEach(function(e){e=Number(e),u.has(e)?dZ[e]=u:(a.add(e),dZ[e]=a)});var i=[[a,u].filter(function(e){return e.size>0})],o=void 0,s=void 0;for(o=i[i.length-1],s=i[i.length-2];!function(e,t){if(!t||e.length!==t.length)return!1;for(var r=0;r<e.length;r++){var n=e[r],u=t[r];if(n.size!==u.size||[].concat(dV(n)).sort().join(",")!==[].concat(dV(u)).sort().join(","))return!1}return!0}(o,s);)!function(){var e={},r=!0,u=!1,a=void 0;try{for(var d,l=o[Symbol.iterator]();!(r=(d=l.next()).done);r=!0){var c=d.value,f={},p=Array.isArray(c)?c:Array.from(c),m=p[0],g=p.slice(1);f[m]=new Set([m]);var y=!0,h=!1,b=void 0;try{e:for(var v,x=g[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=v.value,A=!0,D=!1,C=void 0;try{for(var S,w=Object.keys(f)[Symbol.iterator]();!(A=(S=w.next()).done);A=!0){var F=S.value;if(function(e,t,r,n){var u=!0,a=!1,i=void 0;try{for(var o,s=n[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d=o.value;if(!function(e,t,r,n){if(!dZ[e]||!dZ[t])return!1;var u=r[e][n],a=r[t][n];return!u&&!a||dZ[e].has(u)&&dZ[t].has(a)}(e,t,r,d))return!1}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}return!0}(E,F,t,n)){f[F].add(E),f[E]=f[F];continue e}}}catch(e){D=!0,C=e}finally{try{!A&&w.return&&w.return()}finally{if(D)throw C}}f[E]=new Set([E])}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}Object.assign(e,f)}}catch(e){u=!0,a=e}finally{try{!r&&l.return&&l.return()}finally{if(u)throw a}}dZ=e;var _=new Set(Object.keys(e).map(function(t){return e[t]}));i.push([].concat(dV(_))),o=i[i.length-1],s=i[i.length-2]}();var d=new Map,l=1;o.forEach(function(e){return d.set(e,l++)});var c={},f=new Set,p=!0,m=!1,g=void 0;try{for(var y,h=d.entries()[Symbol.iterator]();!(p=(y=h.next()).done);p=!0){var b=y.value,v=dW(b,2),x=v[0],E=v[1];c[E]={};var A=!0,D=!1,C=void 0;try{for(var S,w=n[Symbol.iterator]();!(A=(S=w.next()).done);A=!0){var F=S.value;!function(e,t){var r=!0,n=!1,a=void 0;try{for(var i,o=e[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;u.has(s)&&f.add(t)}}catch(e){n=!0,a=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw a}}}(x,E);var _=void 0,k=!0,T=!1,P=void 0;try{for(var I,B=x[Symbol.iterator]();!(k=(I=B.next()).done)&&!(_=t[I.value][F]);k=!0);}catch(e){T=!0,P=e}finally{try{!k&&B.return&&B.return()}finally{if(T)throw P}}_&&(c[E][F]=d.get(dZ[_]))}}catch(e){D=!0,C=e}finally{try{!A&&w.return&&w.return()}finally{if(D)throw C}}}}catch(e){m=!0,g=e}finally{try{!p&&h.return&&h.return()}finally{if(m)throw g}}return e.setTransitionTable(c),e.setAcceptingStateNumbers(f),e},dX=function(){function e(t){!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._nfa=t}return dG(e,[{key:"minimize",value:function(){this.getTransitionTable(),this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._originalTransitionTable=this._transitionTable,dK(this)}},{key:"getAlphabet",value:function(){return this._nfa.getAlphabet()}},{key:"getAcceptingStateNumbers",value:function(){return this._acceptingStateNumbers||this.getTransitionTable(),this._acceptingStateNumbers}},{key:"getOriginaAcceptingStateNumbers",value:function(){return this._originalAcceptingStateNumbers||this.getTransitionTable(),this._originalAcceptingStateNumbers}},{key:"setTransitionTable",value:function(e){this._transitionTable=e}},{key:"setAcceptingStateNumbers",value:function(e){this._acceptingStateNumbers=e}},{key:"getTransitionTable",value:function(){var e=this;if(this._transitionTable)return this._transitionTable;var t=this._nfa.getTransitionTable(),r=Object.keys(t);this._acceptingStateNumbers=new Set;for(var n=[t[r[0]]["ε*"]],u=this.getAlphabet(),a=this._nfa.getAcceptingStateNumbers(),i={};n.length>0;){var o=n.shift(),s=o.join(",");i[s]={};var d=!0,l=!1,c=void 0;try{for(var f,p=u[Symbol.iterator]();!(d=(f=p.next()).done);d=!0){var m=f.value,g=[];!function(t){var r=!0,n=!1,u=void 0;try{for(var i,o=a[Symbol.iterator]();!(r=(i=o.next()).done);r=!0){var s=i.value;if(-1!==t.indexOf(s)){e._acceptingStateNumbers.add(t.join(","));break}}}catch(e){n=!0,u=e}finally{try{!r&&o.return&&o.return()}finally{if(n)throw u}}}(o);var y=!0,h=!1,b=void 0;try{for(var v,x=o[Symbol.iterator]();!(y=(v=x.next()).done);y=!0){var E=t[v.value][m];if(E){var A=!0,D=!1,C=void 0;try{for(var S,w=E[Symbol.iterator]();!(A=(S=w.next()).done);A=!0){var F=S.value;t[F]&&g.push.apply(g,dH(t[F]["ε*"]))}}catch(e){D=!0,C=e}finally{try{!A&&w.return&&w.return()}finally{if(D)throw C}}}}}catch(e){h=!0,b=e}finally{try{!y&&x.return&&x.return()}finally{if(h)throw b}}var _=new Set(g),k=[].concat(dH(_));if(k.length>0){var T=k.join(",");i[s][m]=T,i.hasOwnProperty(T)||n.unshift(k)}}}catch(e){l=!0,c=e}finally{try{!d&&p.return&&p.return()}finally{if(l)throw c}}}return this._transitionTable=this._remapStateNumbers(i)}},{key:"_remapStateNumbers",value:function(e){var t={};this._originalTransitionTable=e;var r={};for(var n in Object.keys(e).forEach(function(e,r){t[e]=r+1}),e){var u=e[n],a={};for(var i in u)a[i]=t[u[i]];r[t[n]]=a}this._originalAcceptingStateNumbers=this._acceptingStateNumbers,this._acceptingStateNumbers=new Set;var o=!0,s=!1,d=void 0;try{for(var l,c=this._originalAcceptingStateNumbers[Symbol.iterator]();!(o=(l=c.next()).done);o=!0){var f=l.value;this._acceptingStateNumbers.add(t[f])}}catch(e){s=!0,d=e}finally{try{!o&&c.return&&c.return()}finally{if(s)throw d}}return r}},{key:"getOriginalTransitionTable",value:function(){return this._originalTransitionTable||this.getTransitionTable(),this._originalTransitionTable}},{key:"matches",value:function(e){for(var t=1,r=0,n=this.getTransitionTable();e[r];)if(!(t=n[t][e[r++]]))return!1;return!!this.getAcceptingStateNumbers().has(t)}}]),e}(),dJ=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),dY=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},r=t.accepting;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._transitions=new Map,this.accepting=void 0!==r&&r}return dJ(e,[{key:"getTransitions",value:function(){return this._transitions}},{key:"addTransition",value:function(e,t){return this.getTransitionsOnSymbol(e).add(t),this}},{key:"getTransitionsOnSymbol",value:function(e){var t=this._transitions.get(e);return t||(t=new Set,this._transitions.set(e,t)),t}}]),e}(),dQ=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),d0=function(e){function t(){return!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,t),function(e,t){if(!e)throw ReferenceError("this hasn't been initialised - super() hasn't been called");return t&&("object"==typeof t||"function"==typeof t)?t:e}(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return!function(e,t){if("function"!=typeof t&&null!==t)throw TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),dQ(t,[{key:"matches",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:new Set;if(t.has(this))return!1;if(t.add(this),0===e.length){if(this.accepting)return!0;var r=!0,n=!1,u=void 0;try{for(var a,i=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(r=(a=i.next()).done);r=!0)if(a.value.matches("",t))return!0}catch(e){n=!0,u=e}finally{try{!r&&i.return&&i.return()}finally{if(n)throw u}}return!1}var o=e[0],s=e.slice(1),d=this.getTransitionsOnSymbol(o),l=!0,c=!1,f=void 0;try{for(var p,m=d[Symbol.iterator]();!(l=(p=m.next()).done);l=!0)if(p.value.matches(s))return!0}catch(e){c=!0,f=e}finally{try{!l&&m.return&&m.return()}finally{if(c)throw f}}var g=!0,y=!1,h=void 0;try{for(var b,v=this.getTransitionsOnSymbol("ε")[Symbol.iterator]();!(g=(b=v.next()).done);g=!0)if(b.value.matches(e,t))return!0}catch(e){y=!0,h=e}finally{try{!g&&v.return&&v.return()}finally{if(y)throw h}}return!1}},{key:"getEpsilonClosure",value:function(){var e=this;return this._epsilonClosure||function(){var t=e.getTransitionsOnSymbol("ε"),r=e._epsilonClosure=new Set;r.add(e);var n=!0,u=!1,a=void 0;try{for(var i,o=t[Symbol.iterator]();!(n=(i=o.next()).done);n=!0){var s=i.value;r.has(s)||(r.add(s),s.getEpsilonClosure().forEach(function(e){return r.add(e)}))}}catch(e){u=!0,a=e}finally{try{!n&&o.return&&o.return()}finally{if(u)throw a}}}(),this._epsilonClosure}}]),t}(dY);function d1(e){var t=new d0,r=new d0({accepting:!0});return new dq(t.addTransition(e,r),r)}var d2={alt:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var u=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d,l=o.value;(d=e).out.accepting=!1,l.out.accepting=!0,d.out.addTransition("ε",l.in),e=new dq(d.in,l.out)}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}return e},char:d1,e:function(){return d1("ε")},or:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];var u=!0,a=!1,i=void 0;try{for(var o,s=r[Symbol.iterator]();!(u=(o=s.next()).done);u=!0){var d=o.value;e=function(e,t){var r=new d0,n=new d0;return r.addTransition("ε",e.in),r.addTransition("ε",t.in),n.accepting=!0,e.out.accepting=!1,t.out.accepting=!1,e.out.addTransition("ε",n),t.out.addTransition("ε",n),new dq(r,n)}(e,d)}}catch(e){a=!0,i=e}finally{try{!u&&s.return&&s.return()}finally{if(a)throw i}}return e},rep:function(e){return e.in.addTransition("ε",e.out),e.out.addTransition("ε",e.in),e},repExplicit:function(e){var t=new d0,r=new d0({accepting:!0});return t.addTransition("ε",e.in),t.addTransition("ε",r),e.out.accepting=!1,e.out.addTransition("ε",r),r.addTransition("ε",e.in),new dq(t,r)},plusRep:function(e){return e.out.addTransition("ε",e.in),e},questionRep:function(e){return e.in.addTransition("ε",e.out),e}},d3=d2.alt,d4=d2.char,d5=d2.or,d8=d2.rep,d6=d2.plusRep,d9=d2.questionRep;function d7(e){if(e&&!le[e.type])throw Error(e.type+" is not supported in NFA/DFA interpreter.");return e?le[e.type](e):""}var le={RegExp:function(e){if(""!==e.flags)throw Error("NFA/DFA: Flags are not supported yet.");return d7(e.body)},Alternative:function(e){var t=(e.expressions||[]).map(d7);return d3.apply(void 0,function(e){if(!Array.isArray(e))return Array.from(e);for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}(t))},Disjunction:function(e){return d5(d7(e.left),d7(e.right))},Repetition:function(e){switch(e.quantifier.kind){case"*":return d8(d7(e.expression));case"+":return d6(d7(e.expression));case"?":return d9(d7(e.expression));default:throw Error("Unknown repeatition: "+e.quantifier.kind+".")}},Char:function(e){if("simple"!==e.kind)throw Error("NFA/DFA: Only simple chars are supported yet.");return d4(e.value)},Group:function(e){return d7(e.expression)}},lt=function(e){var t=e;return e instanceof RegExp&&(e=""+e),"string"==typeof e&&(t=sJ.parse(e,{captureLocations:!0})),d7(t)},lr=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),ln=function(){function e(t,r){var n=r.flags,u=r.groups,a=r.source;!function(e,t){if(!(e instanceof t))throw TypeError("Cannot call a class as a function")}(this,e),this._re=t,this._groups=u,this.flags=n,this.source=a||t.source,this.dotAll=n.includes("s"),this.global=t.global,this.ignoreCase=t.ignoreCase,this.multiline=t.multiline,this.sticky=t.sticky,this.unicode=t.unicode}return lr(e,[{key:"test",value:function(e){return this._re.test(e)}},{key:"compile",value:function(e){return this._re.compile(e)}},{key:"toString",value:function(){return this._toStringResult||(this._toStringResult="/"+this.source+"/"+this.flags),this._toStringResult}},{key:"exec",value:function(e){var t=this._re.exec(e);if(!this._groups||!t)return t;for(var r in t.groups={},this._groups){var n=this._groups[r];t.groups[r]=t[n]}return t}}]),e}(),lu=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=t.length>0?t:Object.keys(dy),n=void 0,u={};return r.forEach(function(t){if(!dy.hasOwnProperty(t))throw Error("Unknown compat-transform: "+t+". Available transforms are: "+Object.keys(dy).join(", "));var r=dy[t];e=(n=dg(e,r)).getAST(),"function"==typeof r.getExtra&&(u[t]=r.getExtra())}),n.setExtra(u),n},la=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=t.whitelist,n=void 0===r?[]:r,u=t.blacklist,a=void 0===u?[]:u,i=(n.length>0?n:Array.from(dM.keys())).filter(function(e){return!a.includes(e)}),o=e;e instanceof RegExp&&(e=""+e),"string"==typeof e&&(o=sJ.parse(e));var s=new dm(o),d=void 0;do d=s.toString(),o=d$(s.getAST()),i.forEach(function(e){if(!dM.has(e))throw Error("Unknown optimization-transform: "+e+". Available transforms are: "+Array.from(dM.keys()).join(", "));var t=dM.get(e),r=dg(o,t);r.toString()!==s.toString()&&(r.toString().length<=s.toString().length?s=r:o=d$(s.getAST()))});while(s.toString()!==d);return s};let li=(e,t)=>{if(t=t||"","string"!=typeof e)throw TypeError(`Expected regexp to be of type \`string\`, got \`${typeof e}\``);if("string"!=typeof t)throw TypeError(`Expected flags to be of type \`string\`, got \`${typeof t}\``);for(let r of sx){let n=r[0],u=r[1];sA(t,u.flags)&&(e=e.replace(RegExp(sE(n),"g"),u.value))}return e},{optimize:lo}={parser:sJ,fa:{NFA:dq,DFA:dX,builders:d2,toNFA:function(e){return lt(e)},toDFA:function(e){return new dX(this.toNFA(e))},test:function(e,t){return this.toDFA(e).matches(t)}},TransformResult:dm,parse:function(e,t){return sJ.parse(""+e,t)},traverse:function(e,t,r){return df(e,t,r)},transform:function(e,t){return dg(e,t)},generate:function(e){return sS.generate(e)},toRegExp:function(e){var t=this.compatTranspile(e);return new RegExp(t.getSource(),t.getFlags())},optimize:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return la(e,{whitelist:t,blacklist:r.blacklist})},compatTranspile:function(e,t){return lu(e,t)},exec:function(e,t){if("string"==typeof e){var r=this.compatTranspile(e),n=r.getExtra();e=n.namedCapturingGroups?new ln(r.toRegExp(),{flags:r.getFlags(),source:r.getSource(),groups:n.namedCapturingGroups}):r.toRegExp()}return e.exec(t)}},{isStringLiteral:ls,isNewExpression:ld,isRegexLiteral:ll}=tL,lc="better-regex",lf="better-regex/parse-error";var lp=/*@__PURE__*/Q({create:e=>{let{sortCharacterClasses:t}=e.options[0]||{},r=[];return!1===t&&r.push("charClassClassrangesMerge"),{Literal(e){if(!ll(e))return;let{raw:t,regex:n}=e;if(n.flags.includes("u")||n.flags.includes("v"))return;let u=t;try{u=lo(t,void 0,{blacklist:r}).toString()}catch(r){return{node:e,messageId:lf,data:{original:t,error:r.message}}}if(t===u)return;let a={node:e,messageId:lc,data:{original:t,optimized:u}};return"MemberExpression"!==e.parent.type||e.parent.object!==e||e.parent.optional||e.parent.computed||"Identifier"!==e.parent.property.type||"toString"!==e.parent.property.name&&"source"!==e.parent.property.name?Object.assign(a,{fix:t=>t.replaceText(e,u)}):a},NewExpression(e){if(!ld(e,{name:"RegExp",minimumArguments:1}))return;let[t,r]=e.arguments;if(!ls(t))return;let n=t.value,u=li(n,ls(r)?r.value:"");if(n!==u)return{node:e,messageId:lc,data:{original:n,optimized:u},fix:e=>e.replaceText(t,rO(u,t.raw.charAt(0)))}}}},meta:{type:"suggestion",docs:{description:"Improve regexes by making them shorter, consistent, and safer.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{sortCharacterClasses:{type:"boolean",default:!0}}}],messages:{[lc]:"{{original}} can be optimized to {{optimized}}.",[lf]:"Problem parsing {{original}}: {{error}}"}}});let{replaceTemplateElement:lm}=uo,{isRegexLiteral:lg,isStringLiteral:ly,isTaggedTemplateLiteral:lh}=tL,lb="escape-case",lv=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+})/g,lx=/(?<=(?:^|[^\\])(?:\\\\)*\\)(?<data>x[\dA-Fa-f]{2}|u[\dA-Fa-f]{4}|u{[\dA-Fa-f]+}|c[a-z])/g,lE=({node:e,original:t,regex:r=lv,fix:n})=>{let u=t.replace(r,e=>e.slice(0,1)+e.slice(1).toUpperCase());if(u!==t)return{node:e,messageId:lb,fix:t=>n?n(t,u):t.replaceText(e,u)}};var lA=/*@__PURE__*/Q({create:e=>{e.on("Literal",e=>{if(ly(e))return lE({node:e,original:e.raw})}),e.on("Literal",e=>{if(lg(e))return lE({node:e,original:e.raw,regex:lx})}),e.on("TemplateElement",e=>{if(!lh(e.parent,["String.raw"]))return lE({node:e,original:e.value.raw,fix:(t,r)=>lm(t,e,r)})})},meta:{type:"suggestion",docs:{description:"Require escape sequences to use uppercase values.",recommended:!0},fixable:"code",messages:{[lb]:"Use uppercase characters for the value of the escape sequence."}}});let{replaceTemplateElement:lD}=uo,{isStringLiteral:lC,isRegexLiteral:lS,isTaggedTemplateLiteral:lw}=tL,lF="no-hex-escape";function l_(e,t,r){let n=r.replaceAll(/(?<=(?:^|[^\\])(?:\\\\)*\\)x/g,"u00");if(r!==n)return{node:t,messageId:lF,fix:e=>"TemplateElement"===t.type?lD(e,t,n):e.replaceText(t,n)}}var lk=/*@__PURE__*/Q({create:e=>({Literal(t){if(lC(t)||lS(t))return l_(e,t,t.raw)},TemplateElement(t){if(!lw(t.parent,["String.raw"]))return l_(e,t,t.value.raw)}}),meta:{type:"suggestion",docs:{description:"Enforce the use of Unicode escapes instead of hexadecimal escapes.",recommended:!0},fixable:"code",messages:{[lF]:"Use Unicode escapes instead of hexadecimal escapes."}}});let{getPropertyName:lT,ReferenceTracker:lP}=tn,{fixSpaceAroundKeyword:lI}=uo,{isMemberExpression:lB,isMethodCall:lj}=tL,lO=["hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"];var lR=/*@__PURE__*/Q({create:function(e){let{sourceCode:t}=e,r=[];e.on("CallExpression",e=>{r.push(e)}),e.on("Program:exit",function*(e){let n=new WeakMap;for(let{node:r,path:u}of new lP(t.getScope(e)).iterateGlobalReferences(Object.fromEntries(lO.map(e=>[e,{[lP.READ]:!0}]))))n.set(r,u);for(let e of r)yield function(e,{sourceCode:t,globalReferences:r}){let n;lj(e,{object:"Reflect",method:"apply",minimumArguments:1,optionalCall:!1,optionalMember:!1})?n=e.arguments[0]:lj(e,{methods:["apply","bind","call"],optionalCall:!1,optionalMember:!1})&&(n=e.callee.object);let{isGlobalReference:u,constructorName:a,methodName:i}=function(e,{sourceCode:t,globalReferences:r}){if(!e)return;if(r.has(e))return{isGlobalReference:!0,constructorName:"Object",methodName:r.get(e).at(-1)};if(!lB(e,{optional:!1}))return;let n=e.object;if(!(("ArrayExpression"!==n.type||0!==n.elements.length)&&("ObjectExpression"!==n.type||0!==n.properties.length)))return{constructorName:"ArrayExpression"===n.type?"Array":"Object",methodName:lT(e,t.getScope(e))}}(n,{sourceCode:t,globalReferences:r})??{};if(a)return{node:n,messageId:i?"known-method":"unknown-method",data:{constructorName:a,methodName:i},*fix(r){if(u){yield r.replaceText(n,`${a}.prototype.${i}`);return}if(lB(n)){let u=n.object;yield r.replaceText(u,`${a}.prototype`),("ArrayExpression"===u.type||"ObjectExpression"===u.type)&&(yield*lI(r,e,t))}}}}(e,{sourceCode:t,globalReferences:n})})},meta:{type:"suggestion",docs:{description:"Prefer borrowing methods from the prototype instead of the instance.",recommended:!0},fixable:"code",messages:{"known-method":"Prefer using `{{constructorName}}.prototype.{{methodName}}`.","unknown-method":"Prefer using method from `{{constructorName}}.prototype`."}}});let{getStaticValue:lL}=tn,{isCallOrNewExpression:lN}=tL,lM="missing-message",l$="message-is-empty-string",lz="message-is-not-a-string",lU=["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","InternalError","AggregateError"];var lq=/*@__PURE__*/Q({create:e=>{e.on(["CallExpression","NewExpression"],t=>{if(!lN(t,{names:lU,optional:!1}))return;let r=e.sourceCode.getScope(t);if(r1(r,t.callee))return;let n=t.callee.name,u="AggregateError"===n?1:0,a=t.arguments;if(a.some((e,t)=>t<=u&&"SpreadElement"===e.type))return;let i=a[u];if(!i)return{node:t,messageId:lM,data:{constructorName:n}};if("ArrayExpression"===i.type||"ObjectExpression"===i.type)return{node:i,messageId:lz};let o=lL(i,r);if(!o)return;let{value:s}=o;return"string"!=typeof s?{node:i,messageId:lz}:""===s?{node:i,messageId:l$}:void 0})},meta:{type:"problem",docs:{description:"Enforce passing a `message` value when creating a built-in error.",recommended:!0},messages:{[lM]:"Pass a message to the `{{constructorName}}` constructor.",[l$]:"Error message should not be an empty string.",[lz]:"Error message should be a string."}}});let{checkVueTemplate:lW}=ox,{getParenthesizedRange:lV}=tm,{replaceNodeOrTokenAndSpacesBefore:lZ,fixSpaceAroundKeyword:lG}=uo,lH=e=>"instanceof"===e.value&&"Keyword"===e.type,lK="no-instanceof-array";var lX=/*@__PURE__*/Q({create:lW(e=>{let{sourceCode:t}=e;return{BinaryExpression(e){if(!("instanceof"===e.operator&&"Identifier"===e.right.type&&"Array"===e.right.name))return;let{left:r,right:n}=e,u=t,a=u.getTokenAfter(r,lH);return!a&&t.parserServices.getTemplateBodyTokenStore&&(a=(u=t.parserServices.getTemplateBodyTokenStore()).getTokenAfter(r,lH)),{node:a,messageId:lK,*fix(i){yield*lG(i,e,t);let o=lV(r,u);yield i.insertTextBeforeRange(o,"Array.isArray("),yield i.insertTextAfterRange(o,")"),yield*lZ(a,"",i,t,u),yield*lZ(n,"",i,t,u)}}}}}),meta:{type:"suggestion",docs:{description:"Require `Array.isArray()` instead of `instanceof Array`.",recommended:!0},fixable:"code",messages:{[lK]:"Use `Array.isArray()` instead of `instanceof Array`."}}});let{isNewExpression:lJ}=tL,lY="prefer-type-error",lQ=new Set(["isArguments","isArray","isArrayBuffer","isArrayLike","isArrayLikeObject","isBigInt","isBoolean","isBuffer","isDate","isElement","isError","isFinite","isFunction","isInteger","isLength","isMap","isNaN","isNative","isNil","isNull","isNumber","isObject","isObjectLike","isPlainObject","isPrototypeOf","isRegExp","isSafeInteger","isSet","isString","isSymbol","isTypedArray","isUndefined","isView","isWeakMap","isWeakSet","isWindow","isXMLDoc"]),l0=new Set(["isNaN","isFinite"]),l1=(e,t,r)=>void 0!==t&&t.arguments.length>0&&"Identifier"===e.type&&(!0===r&&lQ.has(e.name)||!1===r&&l0.has(e.name)),l2=e=>e.parent&&e.parent.body&&1===e.parent.body.length,l3=(e,t)=>!!l1(e.property,t,!0)||"MemberExpression"===e.object.type&&l3(e.object,t),l4=(e,t)=>{switch(e.type){case"Identifier":return l1(e,t,!1);case"MemberExpression":return l3(e,t);case"CallExpression":return l4(e.callee,e);case"UnaryExpression":return"typeof"===e.operator||"!"===e.operator&&l4(e.argument);case"BinaryExpression":return"instanceof"===e.operator||l4(e.left,t)||l4(e.right,t);case"LogicalExpression":return l4(e.left,t)&&l4(e.right,t);default:return!1}},l5=e=>"IfStatement"===e.type&&l4(e.test);var l8=/*@__PURE__*/Q({create:()=>({ThrowStatement(e){if(lJ(e.argument,{name:"Error"})&&l2(e)&&e.parent.parent&&l5(e.parent.parent)){let t=e.argument.callee;return{node:t,messageId:lY,fix:e=>e.insertTextBefore(t,"Type")}}}}),meta:{type:"suggestion",docs:{description:"Enforce throwing `TypeError` in type checking conditions.",recommended:!0},fixable:"code",messages:{[lY]:"`new Error()` is too unspecific for a type check. Use `new TypeError()` instead."}}});let{isCallOrNewExpression:l6}=tL,l9="consistentDestructuring",l7="consistentDestructuringSuggest",ce=e=>{for(;e;){if(e.computed)return!1;if("MemberExpression"!==e.type)break;e=e.object}return"Identifier"===e.type||"ThisExpression"===e.type},ct=(e,t)=>{for(;e;){if(e===t)return!0;e=e.upper}return!1};var cr=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e,r=new Map;return{VariableDeclarator(e){"ObjectPattern"===e.id.type&&e.init&&"Literal"!==e.init.type&&ce(e.init)&&r.set(t.getText(e.init),{scope:t.getScope(e),variables:t.getDeclaredVariables(e),objectPattern:e.id})},MemberExpression(e){if(e.computed||l6(e.parent)&&e.parent.callee===e||rq(e))return;let n=r.get(t.getText(e.object));if(!n)return;let{scope:u,objectPattern:a}=n,i=t.getScope(e);if(!ct(i,u))return;let o=a.properties.filter(e=>"Property"===e.type&&"Identifier"===e.key.type&&"Identifier"===e.value.type),s=a.properties.at(-1),d=s&&"RestElement"===s.type,l=t.getText(e),c=t.getText(e.property),f=o.find(e=>e.key.name===c);if(!f&&(d||rc(c,[i])!==c))return;if("MemberExpression"===e.parent.type)return{node:e,messageId:l9};let p=f?f.value.name:c;return{node:e,messageId:l9,suggest:[{messageId:l7,data:{expression:l,property:p},*fix(t){let{properties:r}=a,n=r.at(-1);yield t.replaceText(e,p),f||(yield n?t.insertTextAfter(n,`, ${p}`):t.replaceText(a,`{${p}}`))}}]}}}},meta:{type:"suggestion",docs:{description:"Use destructured variables over properties.",recommended:!1},fixable:"code",hasSuggestions:!0,messages:{[l9]:"Use destructured variables over properties.",[l7]:"Replace `{{expression}}` with destructured property `{{property}}`."}}}),cn=["Int8Array","Uint8Array","Uint8ClampedArray","Int16Array","Uint16Array","Int32Array","Uint32Array","Float32Array","Float64Array","BigInt64Array","BigUint64Array"];let cu=["Object","Array","ArrayBuffer","DataView","Date","Error","Function","Map","WeakMap","Set","WeakSet","Promise","RegExp","SharedArrayBuffer","Proxy","WeakRef","FinalizationRegistry",...cn],{GlobalReferenceTracker:ca}=ir,ci=["BigInt","Boolean","Number","String","Symbol"],{switchCallExpressionToNewExpression:co,switchNewExpressionToCallExpression:cs}=uo;var cd=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e,r=new ca({objects:ci,type:ca.CONSTRUCT,handle:e=>(function({node:e,path:[t]},r){let n={node:e,messageId:"disallow",data:{name:t}};return"String"!==t&&"Boolean"!==t&&"Number"!==t&&(n.fix=function*(t){yield*cs(e,r,t)}),n})(e,t)}),n=new ca({objects:cu,type:ca.CALL,handle:e=>(function({node:e,path:[t]},r){if("Object"===t){let{parent:t}=e;if("BinaryExpression"===t.type&&("==="===t.operator||"!=="===t.operator)&&(t.left===e||t.right===e))return}return{node:e,messageId:"enforce",data:{name:t},fix:t=>co(e,r,t)}})(e,t)});return{*"Program:exit"(e){let u=t.getScope(e);yield*r.track(u),yield*n.track(u)}}},meta:{type:"suggestion",docs:{description:"Enforce the use of `new` for all builtins, except `String`, `Number`, `Boolean`, `Symbol` and `BigInt`.",recommended:!0},fixable:"code",messages:{enforce:"Use `new {{name}}()` instead of `{{name}}()`.",disallow:"Use `{{name}}()` instead of `new {{name}}()`."}}});let{hasSideEffect:cl,isSemicolonToken:cc}=tn,{getCallExpressionTokens:cf,getCallExpressionArgumentsText:cp}=nx,{isNodeMatches:cm}=tw,cg=function(e,t){let{parent:r}=e;for(let n of t.visitorKeys[r.type]||Object.keys(r)){let t=r[n];if(t===e)return;if(Array.isArray(t)){let r=t.indexOf(e);if(-1!==r)return t[r-1]}}},{isMethodCall:cy}=tL,ch="error",cb="suggestion",cv=e=>e&&"ExpressionStatement"===e.parent.type&&e.parent.expression===e&&cy(e,{method:"push",optionalCall:!1,optionalMember:!1});var cx=/*@__PURE__*/Q({create:function(e){let{ignore:t}={ignore:[],...e.options[0]},r=["stream","this","this.stream","process.stdin","process.stdout","process.stderr",...t],{sourceCode:n}=e;return{CallExpression(e){if(!cv(e))return;let t=e.callee.object;if(cm(t,r))return;let u=function(e,t){let r=cg(e.parent,t)?.expression;if(cv(r))return r}(e,n);if(!u||!r0(u.callee.object,t))return;let a=e.arguments,i={node:e.callee.property,messageId:ch},o=function*(t){if(a.length>0){let r=cp(n,e),{trailingCommaToken:a,closingParenthesisToken:i}=cf(n,u);yield a?t.insertTextAfter(a,` ${r}`):t.insertTextBefore(i,u.arguments.length>0?`, ${r}`:r)}let r=u.parent,i=e.parent,o=!cc(n.getLastToken(r))&&cc(n.getLastToken(i));yield t.replaceTextRange([r.range[1],i.range[1]],o?";":"")};return a.some(e=>cl(e,n))?i.suggest=[{messageId:cb,fix:o}]:i.fix=o,i}}},meta:{type:"suggestion",docs:{description:"Enforce combining multiple `Array#push()` into one call.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",uniqueItems:!0}}}],messages:{[ch]:"Do not call `Array#push()` multiple times.",[cb]:"Merge with previous one."}}});let{isStaticRequire:cE,isMethodCall:cA,isLiteral:cD}=tL,cC="no-process-exit",cS=e=>cD(e,"node:worker_threads")||cD(e,"worker_threads");var cw=/*@__PURE__*/Q({create:e=>{let t;if(0===e.sourceCode.lines[0].indexOf("#!"))return{};let r=!1,n=[];e.on("CallExpression",e=>{cE(e)&&cS(e.arguments[0])&&(r=!0)}),e.on("ImportDeclaration",e=>{"Literal"===e.source.type&&cS(e.source)&&(r=!0)}),e.on("CallExpression",e=>{cA(e,{object:"process",methods:["on","once"],minimumArguments:1,optionalCall:!1,optionalMember:!1})&&(t=e)}),e.onExit("CallExpression",e=>{e===t&&(t=void 0)}),e.on("CallExpression",e=>{!t&&cA(e,{object:"process",method:"exit",optionalCall:!1,optionalMember:!1})&&n.push(e)}),e.onExit("Program",function*(){if(!r)for(let e of n)yield{node:e,messageId:cC}})},meta:{type:"suggestion",docs:{description:"Disallow `process.exit()`.",recommended:!0},messages:{[cC]:"Only use `process.exit()` in CLI apps. Throw an error instead."}}});let{isCommaToken:cF}=tn,{isMethodCall:c_,isExpressionStatement:ck}=tL,{getParenthesizedText:cT,isParenthesized:cP,needsSemicolon:cI,shouldAddParenthesesToAwaitExpressionArgument:cB}=nx,cj="no-single-promise-in-promise-methods/error",cO="no-single-promise-in-promise-methods/unwrap",cR="no-single-promise-in-promise-methods/use-promise-resolve",cL=["all","any","race"],cN=e=>c_(e,{object:"Promise",methods:cL,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type&&1===e.arguments[0].elements.length&&e.arguments[0].elements[0]&&"SpreadElement"!==e.arguments[0].elements[0].type,cM=(e,t)=>r=>{let[n]=e.arguments[0].elements,u=cT(n,t);return!cP(n,t)&&cB(n)&&(u=`(${u})`),r.replaceText(e,u)},c$=(e,t)=>r=>{let[n]=e.arguments[0].elements,u=cT(n,t);return cP(n,t)||"Identifier"===n.type||"MemberExpression"===n.type||(u=`(${u})`),cI(t.getTokenBefore(e),t,u)&&(u=`;${u}`),r.replaceText(e,u)},cz=(e,t)=>function*(r){let n=e.callee.property;yield r.replaceText(n,"resolve");let[u]=e.arguments,a=t.getFirstToken(u),[i,o]=t.getLastTokens(u,2);yield r.remove(a),yield r.remove(o),cF(i)&&(yield r.remove(i))};var cU=/*@__PURE__*/Q({create:e=>({CallExpression(t){if(!cN(t))return;let r=t.callee.property.name,n={node:t.arguments[0],messageId:cj,data:{method:r}},{sourceCode:u}=e;return"AwaitExpression"===t.parent.type&&t.parent.argument===t&&("all"!==r||ck(t.parent.parent))?n.fix=cM(t,u):"all"===r||(n.suggest=[{messageId:cO,fix:c$(t,u)},{messageId:cR,fix:cz(t,u)}]),n}}),meta:{type:"suggestion",docs:{description:"Disallow passing single-element arrays to `Promise` methods.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[cj]:"Wrapping single-element array with `Promise.{{method}}()` is unnecessary.",[cO]:"Use the value directly.",[cR]:"Switch to `Promise.resolve(…)`."}}}),cq=function(e,{test:t,expected:r,ruleId:n}){if(t?.(e)||(r=(r=Array.isArray(r)?r:[r]).map(e=>"string"==typeof e?{value:e}:e),!t&&r.some(t=>Object.entries(t).every(([t,r])=>e[t]===r))))return;let u=`'${JSON.stringify({value:e.value,type:e.type})}'`;r=r.map(e=>`'${JSON.stringify(e)}'`).join(" or ");let a=`\`${n}\`: Unexpected token ${u}`,i=`https://github.com/sindresorhus/eslint-plugin-unicorn/issues/new?title=${encodeURIComponent(a)}`;throw Error(`Expected token ${r}, got ${u}.
4
+ Please open an issue at ${i}.`)};let{isSemicolonToken:cW}=tn,cV=function(e,t){let{loc:r,body:n}=e,u=t.getTokenBefore(n),{start:a}=r,{end:i}=u.loc;return{start:a,end:i}},{removeSpacesAfter:cZ}=uo,cG="no-static-only-class",cH=({type:e,value:t})=>"Punctuator"===e&&"="===t,cK=e=>"ClassDeclaration"===e.type&&"ExportDefaultDeclaration"===e.parent.type&&e.parent.declaration===e,cX=e=>"PropertyDefinition"===e.type,cJ=e=>"MethodDefinition"===e.type;var cY=/*@__PURE__*/Q({create:function(e){e.on(["ClassDeclaration","ClassExpression"],t=>{if(t.superClass||t.decorators&&t.decorators.length>0||"ClassBody"!==t.body.type||0===t.body.body.length||t.body.body.some(e=>!function(e){let{private:t,static:r,declare:n,readonly:u,accessibility:a,decorators:i,key:o}=e;return!(!cX(e)&&!cJ(e)||!r||t||"PrivateIdentifier"===o.type||n||u||void 0!==a||Array.isArray(i)&&i.length>0)}(e)))return;let{sourceCode:r}=e;return{node:t,loc:cV(t,r),messageId:cG,fix:function(e,t){let{type:r,id:n,body:u,declare:a,abstract:i,implements:o,parent:s}=e;if(a||i||Array.isArray(o)&&o.length>0||"ClassExpression"===r&&n)return;let d=cK(e);if(!d||!n){for(let e of u.body)if(cX(e)&&(e.typeAnnotation||e.value&&t.getText(e.value).includes("this")))return;return function*(n){let a=t.getFirstToken(e);if(cq(a,{expected:{type:"Keyword",value:"class"},ruleId:"no-static-only-class"}),d||"ClassExpression"===r){if("ClassExpression"===r&&"ReturnStatement"===s.type&&u.loc.start.line!==s.loc.start.line&&t.text.slice(a.range[1],u.range[0]).trim()){yield n.replaceText(a,"{");let e=t.getFirstToken(u);yield n.remove(e)}else yield n.replaceText(a,""),yield cZ(a,t,n)}else yield n.replaceText(a,"const"),yield n.insertTextBefore(u,"= "),yield n.insertTextAfter(u,";");for(let e of u.body)yield*function*(e,t,r){let n=t.getFirstToken(e);cq(n,{expected:{type:"Keyword",value:"static"},ruleId:"no-static-only-class"}),yield r.remove(n),yield cZ(n,t,r);let u=cX(e)?t.getLastToken(e):t.getTokenAfter(e),a=cW(u);if(cX(e)){let{key:n,value:i}=e;if(i){let e=t.getTokenAfter(n,cH);yield r.replaceText(e,":")}else a?yield r.insertTextBefore(u,": undefined"):yield r.insertTextAfter(e,": undefined")}yield a?r.replaceText(u,","):r.insertTextAfter(e,",")}(e,t,n)}}}(t,r)}})},meta:{type:"suggestion",docs:{description:"Disallow classes that only have static members.",recommended:!0},fixable:"code",messages:{[cG]:"Use an object instead of a class with only static members."}}});let{isParenthesized:cQ}=tn,{fixSpaceAroundKeyword:c0}=uo,c1="no-unreadable-array-destructuring",c2=(e,t,r)=>null===e&&null===r[t+1];var c3=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e;return{ArrayPattern(e){let{elements:r,parent:n}=e;if(r.length<3||!r.some((e,t,r)=>c2(e,t,r)))return;let u={node:e,messageId:c1},a=r.filter(e=>null!==e);if("VariableDeclarator"===n.type&&n.id===e&&null!==n.init&&1===a.length){let[i]=a;"AssignmentPattern"!==i.type&&(u.fix=function*(u){let a=r.indexOf(i),o="RestElement"===i.type,s=o?i.argument:i;yield u.replaceText(e,t.getText(s));let d=o?`.slice(${a})`:`[${a}]`,l=n.init;!cQ(l,t)&&na(l,t)?(yield u.insertTextBefore(l,"("),yield u.insertTextAfter(n,`)${d}`)):yield u.insertTextAfter(n,d),yield*c0(u,e,t)})}return u}}},meta:{type:"suggestion",docs:{description:"Disallow unreadable array destructuring.",recommended:!0},fixable:"code",messages:{[c1]:"Array destructuring may not contain consecutive ignored values."}}});let{isCommaToken:c4}=tn,{removeParentheses:c5,fixSpaceAroundKeyword:c8,addParenthesizesToReturnOrThrowExpression:c6}=uo,{isParenthesized:c9,isOnSameLine:c7}=nx,{isNewExpression:fe,isMethodCall:ft,isCallOrNewExpression:fr}=tL,fn="spread-in-list",fu="iterable-to-array",fa="iterable-to-array-in-for-of",fi="iterable-to-array-in-yield-star",fo="clone-array",fs=e=>"ArrayExpression"===e.type&&1===e.elements.length&&e.elements[0]?.type==="SpreadElement",fd={ArrayExpression:"array literal",ObjectExpression:"object literal",CallExpression:"arguments",NewExpression:"arguments"};function*fl(e,t,r){let[n,u,a]=r.getFirstTokens(t,3);yield e.remove(n),yield e.remove(u);let[i,o]=r.getLastTokens(t,2);yield e.remove(o),c4(i)&&(yield e.remove(i));let{parent:s}=t;if(("ReturnStatement"===s.type||"ThrowStatement"===s.type)&&s.argument===t&&!c7(n,a)&&!c9(t,r)){yield*c6(e,s,r);return}yield*c8(e,t,r)}var fc=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e;e.on(["ArrayExpression","ObjectExpression"],e=>{if(!("SpreadElement"===e.parent.type&&e.parent.argument===e&&("ObjectExpression"===e.type&&"ObjectExpression"===e.parent.parent.type&&e.parent.parent.properties.includes(e.parent)||"ArrayExpression"===e.type&&("ArrayExpression"===e.parent.parent.type&&e.parent.parent.elements.includes(e.parent)||fr(e.parent.parent)&&e.parent.parent.arguments.includes(e.parent)))))return;let r=e.parent,n=t.getFirstToken(r),u=r.parent.type;return{node:n,messageId:fn,data:{argumentType:"ArrayExpression"===e.type?"array":"object",parentDescription:fd[u]},*fix(r){let a;yield r.remove(n),yield*c5(e,r,t);let i=t.getFirstToken(e);yield r.remove(i);let[o,s]=t.getLastTokens(e,2);if(yield r.remove(s),c4(o)&&(yield r.remove(o)),"CallExpression"===u||"NewExpression"===u)for(let[n,u]of(a=t.getFirstToken(e),e.elements.map((r,n,u)=>{if(n===u.length-1){let r=t.getLastToken(e,{skip:1});return c4(r)?r:void 0}let i=t.getTokenAfter(r||a,c4);return a=i,i})).entries())e.elements[n]||(yield r.insertTextBefore(u,"undefined"))}}}),e.on("ArrayExpression",e=>{if(!fs(e))return;let{parent:r}=e;if(!("ForOfStatement"===r.type&&r.right===e||"YieldExpression"===r.type&&r.delegate&&r.argument===e||(fe(r,{names:["Map","WeakMap","Set","WeakSet"],argumentsLength:1})||fe(r,{names:cn,minimumArguments:1})||ft(r,{object:"Promise",methods:["all","allSettled","any","race"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||ft(r,{objects:["Array",...cn],method:"from",argumentsLength:1,optionalCall:!1,optionalMember:!1})||ft(r,{object:"Object",method:"fromEntries",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&r.arguments[0]===e))return;let n="",u=fu;switch(r.type){case"ForOfStatement":u=fa;break;case"YieldExpression":u=fi;break;case"NewExpression":n=`new ${r.callee.name}(…)`;break;case"CallExpression":n=`${r.callee.object.name}.${r.callee.property.name}(…)`}return{node:e,messageId:u,data:{parentDescription:n},fix:r=>fl(r,e,t)}}),e.on("ArrayExpression",e=>{if(!fs(e))return;let r=e.elements[0].argument;if(!(ft(r,{methods:["concat","copyWithin","filter","flat","flatMap","map","slice","splice","toReversed","toSorted","toSpliced","with"],optionalCall:!1,optionalMember:!1})||ft(r,{method:"split",optionalCall:!1,optionalMember:!1})||ft(r,{object:"Object",methods:["keys","values"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||"AwaitExpression"===r.type&&ft(r.argument,{object:"Promise",methods:["all","allSettled"],argumentsLength:1,optionalCall:!1,optionalMember:!1})||ft(r,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||fe(r,{name:"Array"})))return;let n={node:e,messageId:fo};return fe(r,{name:"Array"})||"CallExpression"===r.type&&"MemberExpression"===r.callee.type&&"Identifier"===r.callee.property.type&&"slice"===r.callee.property.name?n:Object.assign(n,{fix:r=>fl(r,e,t)})})},meta:{type:"suggestion",docs:{description:"Disallow unnecessary spread.",recommended:!0},fixable:"code",messages:{[fn]:"Spread an {{argumentType}} literal in {{parentDescription}} is unnecessary.",[fu]:"`{{parentDescription}}` accepts iterable as argument, it's unnecessary to convert to an array.",[fa]:"`for…of` can iterate over iterable, it's unnecessary to convert to an array.",[fi]:"`yield*` can delegate iterable, it's unnecessary to convert to an array.",[fo]:"Unnecessarily cloning an array."}}});let{isColonToken:ff}=tn,{isEmptyNode:fp}=tL,fm=function(e,t){let r=e.test||t.getFirstToken(e),n=t.getTokenAfter(r,ff);return{start:e.loc.start,end:n.loc.end}},fg="no-useless-switch-case/error",fy="no-useless-switch-case/suggestion",fh=e=>e.consequent.every(e=>fp(e));var fb=/*@__PURE__*/Q({create:e=>({*SwitchStatement(t){let{cases:r}=t;if(!(r.length<2)&&null===r.at(-1).test)for(let t=r.length-2;t>=0;t--){let n=r[t];if(!fh(n))break;yield{node:n,loc:fm(n,e.sourceCode),messageId:fg,suggest:[{messageId:fy,fix:e=>e.remove(n)}]}}}}),meta:{type:"suggestion",docs:{description:"Disallow useless case in switch statements.",recommended:!0},hasSuggestions:!0,messages:{[fg]:"Useless case in switch statement.",[fy]:"Remove this case."}}});let{isCommaToken:fv}=tn,{replaceNodeOrTokenAndSpacesBefore:fx}=uo,{isUndefined:fE,isFunction:fA}=tL,fD="no-useless-undefined",fC=new Set(["is","equal","notEqual","strictEqual","notStrictEqual","propertyVal","notPropertyVal","not","include","property","toBe","toHaveBeenCalledWith","toContain","toContainEqual","toEqual","same","notSame","strictSame","strictNotSame"]),fS=e=>{let t;return"Identifier"===e.type?t=e.name:"MemberExpression"===e.type&&!1===e.computed&&"Identifier"===e.property.type&&(t=e.property.name),fC.has(t)||"push"===t||"unshift"===t||"includes"===t||"add"===t||"has"===t||"set"===t||"createContext"===t||/^set[A-Z]/.test(t)||"ref"===t},fw=e=>{for(;e;e=e.upper)if("function"===e.type)return e.block},fF=e=>!e.optional&&"MemberExpression"===e.callee.type&&!e.callee.computed&&"Identifier"===e.callee.property.type&&"bind"===e.callee.property.name,f_=e=>/\.(?:ts|mts|cts|tsx)$/i.test(e.physicalFilename);var fk=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e,r=(e,r,n)=>{if(n){let r=fw(t.getScope(e));if(r?.returnType)return}return{node:e,messageId:fD,fix:r}},n={checkArguments:!0,checkArrowFunctionBody:!0,...e.options[0]},u=(e,r)=>fx(e,"",r,t);e.on("Identifier",e=>{if(fE(e)&&"ReturnStatement"===e.parent.type&&e.parent.argument===e)return r(e,t=>u(e,t),!0)}),e.on("Identifier",e=>{if(fE(e)&&"YieldExpression"===e.parent.type&&!e.parent.delegate&&e.parent.argument===e)return r(e,t=>u(e,t))}),n.checkArrowFunctionBody&&e.on("Identifier",e=>{if(fE(e)&&"ArrowFunctionExpression"===e.parent.type&&e.parent.body===e)return r(e,r=>fx(e," {}",r,t),!0)}),e.on("Identifier",e=>{if(fE(e)&&"VariableDeclarator"===e.parent.type&&e.parent.init===e&&"VariableDeclaration"===e.parent.parent.type&&"const"!==e.parent.parent.kind&&e.parent.parent.declarations.includes(e.parent))return r(e,t=>t.removeRange([e.parent.id.range[1],e.range[1]]),!0)}),e.on("Identifier",t=>{if(fE(t)&&"AssignmentPattern"===t.parent.type&&t.parent.right===t)return r(t,function*(r){let n=t.parent,{left:u}=n;yield r.removeRange([u.range[1],t.range[1]]),(u.typeAnnotation||f_(e))&&!u.optional&&fA(n.parent)&&n.parent.params.includes(n)&&(yield u.typeAnnotation?r.insertTextBefore(u.typeAnnotation,"?"):r.insertTextAfter(u,"?"))},!0)}),n.checkArguments&&e.on("CallExpression",e=>{if(fS(e.callee))return;let r=e.arguments;if(fF(e)&&1!==r.length)return;let n=[];for(let e=r.length-1;e>=0;e--){let t=r[e];if(fE(t))n.unshift(t);else break}if(0===n.length)return;let u=n[0],a=n.at(-1);return{messageId:fD,loc:{start:u.loc.start,end:a.loc.end},fix(e){let i=u.range[0],o=a.range[1],s=r[r.length-n.length-1];if(s)i=s.range[1];else{let e=t.getTokenAfter(a);fv(e)&&(o=e.range[1])}return e.removeRange([i,o])}}})},meta:{type:"suggestion",docs:{description:"Disallow useless `undefined`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{checkArguments:{type:"boolean"},checkArrowFunctionBody:{type:"boolean"}}}],messages:{[fD]:"Do not use useless `undefined`."}}});let{isBigIntLiteral:fT}=tL,fP="numeric-separators-style";function fI(e,{minimumDigits:t,groupLength:r},n){let{length:u}=e;if(u<t)return e;let a=[];if(n)for(let t=0;t<u;t+=r){let n=Math.min(t+r,u);a.push(e.slice(t,n))}else for(let t=u;t>0;t-=r){let n=Math.max(t-r,0);a.unshift(e.slice(n,t))}return a.join("_")}let fB={binary:{minimumDigits:0,groupLength:4},octal:{minimumDigits:0,groupLength:4},hexadecimal:{minimumDigits:0,groupLength:2},number:{minimumDigits:5,groupLength:3}},fj=({minimumDigits:e,groupLength:t})=>({type:"object",additionalProperties:!1,properties:{onlyIfContainsSeparator:{type:"boolean"},minimumDigits:{type:"integer",minimum:0,default:e},groupLength:{type:"integer",minimum:1,default:t}}});var fO=/*@__PURE__*/Q({create:e=>{let{onlyIfContainsSeparator:t,binary:r,octal:n,hexadecimal:u,number:a}={onlyIfContainsSeparator:!1,...e.options[0]},i={"0b":{onlyIfContainsSeparator:t,...fB.binary,...r},"0o":{onlyIfContainsSeparator:t,...fB.octal,...n},"0x":{onlyIfContainsSeparator:t,...fB.hexadecimal,...u},"":{onlyIfContainsSeparator:t,...fB.number,...a}};return{Literal(e){if(!nn.isNumeric(e)||nn.isLegacyOctal(e))return;let{raw:t}=e,r=t,n="";fT(e)&&(r=t.slice(0,-1),n="n");let u=r.replaceAll("_",""),{prefix:a,data:o}=nn.getPrefix(u),{onlyIfContainsSeparator:s}=i[a.toLowerCase()];if(s&&!t.includes("_"))return;let d=function(e,{prefix:t,data:r},n){let u=n[t.toLowerCase()];if(t)return t+fI(r,u);let{number:a,mark:i,sign:o,power:s}=nn.parseNumber(e);return function(e,t){let{integer:r,dot:n,fractional:u}=nn.parseFloatNumber(e);return fI(r,t)+n+fI(u,t,!0)}(a,u)+i+o+fI(s,n[""])}(u,{prefix:a,data:o},i)+n;if(t!==d)return{node:e,messageId:fP,fix:t=>t.replaceText(e,d)}}}},meta:{type:"suggestion",docs:{description:"Enforce the style of numeric separators by correctly grouping digits.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{...Object.fromEntries(Object.entries(fB).map(([e,t])=>[e,fj(t)])),onlyIfContainsSeparator:{type:"boolean",default:!1}}}],messages:{[fP]:"Invalid group length in numeric value."}}});let{isParenthesized:fR,findVariable:fL}=tn,{extendFixRange:fN,removeMemberExpressionProperty:fM,removeMethodCall:f$,renameVariable:fz}=uo,{isLeftHandSide:fU,singular:fq,getScopes:fW,avoidCapture:fV,getVariableIdentifiers:fZ}=nx,{isMethodCall:fG}=tL,fH="error-zero-index",fK="error-shift",fX="error-pop",fJ="error-at-zero",fY="error-at-minus-one",fQ="error-destructuring-declaration",f0="error-destructuring-assignment",f1="error-variable",f2="suggest-nullish-coalescing-operator",f3="suggest-logical-or-operator",f4=e=>fG(e,{method:"filter",minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}),f5=(e,t)=>{if("AssignmentExpression"!==e.type||fR(e,t))return!1;let{left:r}=f6(e),[n]=r.elements,{type:u}="AssignmentPattern"===n.type?n.left:n;return"ObjectExpression"===u||"ObjectPattern"===u},f8=(e,t)=>"LogicalExpression"===e.type&&(e.operator===t||"||"===t&&"??"===e.operator||"??"===t&&("||"===e.operator||"&&"===e.operator))||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type,f6=e=>e?"AssignmentExpression"===e.type?e:"VariableDeclarator"===e.type?{left:e.id,right:e.init}:{}:{};function*f9(e,t,r){let{left:n}=f6(e),[u]=n.elements,a=t.getText("AssignmentPattern"===u.type?u.left:u);yield r.replaceText(n,a),f5(e,t)&&(yield r.insertTextBefore(e,"("),yield r.insertTextAfter(e,")"))}let f7=e=>"AssignmentPattern"===f6(e).left.elements[0].type,pe=(e,t,r,n)=>{let{left:u,right:a}=f6(e),[i]=u.elements,o=i.right,s=t.getText(o);return(fR(o,t)||f8(o,n))&&(s=`(${s})`),r.insertTextAfter(a,` ${n} ${s}`)},pt=(e,t)=>{let r,n;let{property:u}=f6(t).right.callee;return f7(t)?r=[{operator:"??",messageId:f2},{operator:"||",messageId:f3}].map(({messageId:r,operator:n})=>({messageId:r,*fix(r){yield r.replaceText(u,"find"),yield pe(t,e,r,n),yield*f9(t,e,r)}})):n=function*(r){yield r.replaceText(u,"find"),yield*f9(t,e,r)},{fix:n,suggest:r}},pr=e=>"MemberExpression"===e.parent.type&&!0===e.parent.computed&&e.parent.object===e&&"Literal"===e.parent.property.type&&"0"===e.parent.property.raw,pn=e=>{let{left:t,right:r}=f6(e.parent);return t&&r&&r===e&&"ArrayPattern"===t.type&&1===t.elements.length&&t.elements[0]&&"RestElement"!==t.elements[0].type};var pu=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e,{checkFromLast:r}={checkFromLast:!0,...e.options[0]};e.on("MemberExpression",e=>{if(e.computed&&"Literal"===e.property.type&&"0"===e.property.raw&&f4(e.object)&&!fU(e))return{node:e.object.callee.property,messageId:fH,fix:r=>[r.replaceText(e.object.callee.property,"find"),fM(r,e,t)]}}),e.on("CallExpression",e=>{if(fG(e,{method:"shift",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&f4(e.callee.object))return{node:e.callee.object.callee.property,messageId:fK,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...f$(r,e,t)]}}),e.on("VariableDeclarator",e=>{if("ArrayPattern"===e.id.type&&1===e.id.elements.length&&e.id.elements[0]&&"RestElement"!==e.id.elements[0].type&&f4(e.init))return{node:e.init.callee.property,messageId:fQ,...pt(t,e)}}),e.on("AssignmentExpression",e=>{if("ArrayPattern"===e.left.type&&1===e.left.elements.length&&e.left.elements[0]&&"RestElement"!==e.left.elements[0].type&&f4(e.right))return{node:e.right.callee.property,messageId:f0,...pt(t,e)}}),e.on("VariableDeclarator",e=>{if(!("Identifier"===e.id.type&&f4(e.init)&&"VariableDeclaration"===e.parent.type&&e.parent.declarations.includes(e)&&!("ExportNamedDeclaration"===e.parent.parent.type&&e.parent.parent.declaration===e.parent)))return;let r=t.getScope(e),n=fL(r,e.id),u=fZ(n).filter(t=>t!==e.id);if(0===u.length)return;let a=[],i=[];for(let e of u)if(pr(e))a.push(e.parent);else{if(!pn(e))return;i.push(e.parent)}let o={node:e.init.callee.property,messageId:f1};return i.some(e=>f7(e))||(o.fix=function*(u){yield u.replaceText(e.init.callee.property,"find");let o=fq(e.id.name);if(o){let e=fV(o,fW(r));yield*fz(n,e,u),yield*fN(u,t.ast.range)}for(let e of a)yield fM(u,e,t);for(let e of i)yield*f9(e,t,u)}),o}),e.on("CallExpression",e=>{if(fG(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"Literal"===e.arguments[0].type&&"0"===e.arguments[0].raw&&f4(e.callee.object))return{node:e.callee.object.callee.property,messageId:fJ,fix:r=>[r.replaceText(e.callee.object.callee.property,"find"),...f$(r,e,t)]}}),r&&(e.on("CallExpression",e=>{if(fG(e,{method:"pop",argumentsLength:0,optionalCall:!1,optionalMember:!1})&&f4(e.callee.object))return{node:e.callee.object.callee.property,messageId:fX,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...f$(r,e,t)]}}),e.on("CallExpression",e=>{if(fG(e,{method:"at",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&"UnaryExpression"===e.arguments[0].type&&"-"===e.arguments[0].operator&&e.arguments[0].prefix&&"Literal"===e.arguments[0].argument.type&&"1"===e.arguments[0].argument.raw&&f4(e.callee.object))return{node:e.callee.object.callee.property,messageId:fY,fix:r=>[r.replaceText(e.callee.object.callee.property,"findLast"),...f$(r,e,t)]}}))},meta:{type:"suggestion",docs:{description:"Prefer `.find(…)` and `.findLast(…)` over the first or last element from `.filter(…)`.",recommended:!0},fixable:"code",hasSuggestions:!0,schema:[{type:"object",additionalProperties:!1,properties:{checkFromLast:{type:"boolean",default:!0}}}],messages:{[f1]:"Prefer `.find(…)` over `.filter(…)`.",[fH]:"Prefer `.find(…)` over `.filter(…)[0]`.",[fJ]:"Prefer `.find(…)` over `.filter(…).at(0)`.",[fK]:"Prefer `.find(…)` over `.filter(…).shift()`.",[fX]:"Prefer `.findLast(…)` over `.filter(…).pop()`.",[fY]:"Prefer `.findLast(…)` over `.filter(…).at(-1)`.",[fQ]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[f0]:"Prefer `.find(…)` over destructuring `.filter(…)`.",[f2]:"Replace `.filter(…)` with `.find(…) ?? …`.",[f3]:"Replace `.filter(…)` with `.find(…) || …`."}}});let{isNodeMatches:pa}=tw,{isMethodCall:pi}=tL,{removeMethodCall:po}=uo,ps="prefer-array-flat-map",pd=["React.Children","Children"];var pl=/*@__PURE__*/Q({create:e=>({CallExpression(t){if(!(pi(t,{method:"flat",optionalCall:!1,optionalMember:!1})&&(0===t.arguments.length||1===t.arguments.length&&"Literal"===t.arguments[0].type&&"1"===t.arguments[0].raw)&&pi(t.callee.object,{method:"map",optionalCall:!1,optionalMember:!1})))return;let r=t.callee.object;if(pa(r.callee.object,pd))return;let{sourceCode:n}=e,u=r.callee.property;return{node:t,loc:{start:u.loc.start,end:t.loc.end},messageId:ps,*fix(e){yield*po(e,t,n),yield e.replaceText(u,"flatMap")}}}}),meta:{type:"suggestion",docs:{description:"Prefer `.flatMap(…)` over `.map(…).flat()`.",recommended:!0},fixable:"code",messages:{[ps]:"Prefer `.flatMap(…)` over `.map(…).flat()`."}}});let{getParenthesizedText:pc,isArrayPrototypeProperty:pf,isNodeMatches:pp,isNodeMatchesNameOrPath:pm,isParenthesized:pg,isSameIdentifier:py,needsSemicolon:ph,shouldAddParenthesesToMemberExpressionObject:pb}=nx,{fixSpaceAroundKeyword:pv}=uo,{isMethodCall:px,isCallExpression:pE}=tL,pA="prefer-array-flat",pD=e=>"ArrayExpression"===e.type&&0===e.elements.length,pC={testFunction(e){if(!px(e,{method:"flatMap",argumentsLength:1,optionalCall:!1,optionalMember:!1}))return!1;let[t]=e.arguments;return"ArrowFunctionExpression"===t.type&&!t.async&&1===t.params.length&&py(t.params[0],t.body)},getArrayNode:e=>e.callee.object,description:"Array#flatMap()"},pS={testFunction(e){if(!px(e,{method:"reduce",argumentsLength:2,optionalCall:!1,optionalMember:!1}))return!1;let[t,r]=e.arguments;if(!("ArrowFunctionExpression"===t.type&&!t.async&&2===t.params.length&&pD(r)))return!1;let n=t.body,[u,a]=t.params;return px(n,{method:"concat",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&py(u,n.callee.object)&&py(a,n.arguments[0])||"ArrayExpression"===n.type&&2===n.elements.length&&n.elements.every((e,r)=>e?.type==="SpreadElement"&&"Identifier"===e.argument.type&&py(t.params[r],e.argument))},getArrayNode:e=>e.callee.object,description:"Array#reduce()"},pw={testFunction:e=>px(e,{method:"concat",argumentsLength:1,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&pD(e.callee.object),getArrayNode(e){let t=e.arguments[0];return"SpreadElement"===t.type?t.argument:t},description:"[].concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[0].type},pF={testFunction(e){if(!(px(e,{methods:["apply","call"],argumentsLength:2,allowSpreadElement:!0,optionalCall:!1,optionalMember:!1})&&pf(e.callee.object,{property:"concat"})))return!1;let[t,r]=e.arguments;return pD(t)&&("call"===e.callee.property.name||"SpreadElement"!==r.type)},getArrayNode(e){let t=e.arguments[1];return"SpreadElement"===t.type?t.argument:t},description:"Array.prototype.concat()",shouldSwitchToArray:e=>"SpreadElement"!==e.arguments[1].type&&"call"===e.callee.property.name},p_=["_.flatten","lodash.flatten","underscore.flatten"];var pk=/*@__PURE__*/Q({create:function(e){let{functions:t}={functions:[],...e.options[0]},r=[...t,...p_],n=[pC,pS,pw,pF,{testFunction:e=>pE(e,{argumentsLength:1,optional:!1})&&pp(e.callee,r),getArrayNode:e=>e.arguments[0],description:e=>`${r.find(t=>pm(e.callee,t)).trim()}()`}];return{*CallExpression(t){for(let{testFunction:r,description:u,getArrayNode:a,shouldSwitchToArray:i}of n){if(!r(t))continue;let n=a(t),o={description:"string"==typeof u?u:u(t)},s={node:t,messageId:pA,data:o},{sourceCode:d}=e;d.getCommentsInside(t).length===d.getCommentsInside(n).length&&(s.fix=function(e,t,r,n){return"function"==typeof n&&(n=n(e)),function*(u){let a=pc(t,r);n?a=`[${a}]`:!pg(t,r)&&pb(t,r)&&(a=`(${a})`),a=`${a}.flat()`,ph(r.getTokenBefore(e),r,a)&&(a=`;${a}`),yield u.replaceText(e,a),yield*pv(u,e,r)}}(t,n,d,i)),yield s}}}},meta:{type:"suggestion",docs:{description:"Prefer `Array#flat()` over legacy techniques to flatten arrays.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{functions:{type:"array",uniqueItems:!0}}}],messages:{[pA]:"Prefer `Array#flat()` over `{{description}}` to flatten an array."}}});let{checkVueTemplate:pT}=ox,{isBooleanNode:pP,getParenthesizedRange:pI,isNodeValueNotFunction:pB}=nx,{removeMemberExpressionProperty:pj}=uo,{isLiteral:pO,isUndefined:pR,isMethodCall:pL,isMemberExpression:pN}=tL,pM="some",p$="some-suggestion",pz="filter",pU=e=>"BinaryExpression"===e.parent.type&&e.parent.left===e&&(("!="===e.parent.operator||"=="===e.parent.operator||"==="===e.parent.operator||"!=="===e.parent.operator)&&pR(e.parent.right)||("!="===e.parent.operator||"=="===e.parent.operator)&&pO(e.parent.right,null)),pq=e=>"UnaryExpression"===e.type&&"-"===e.operator&&e.argument&&"Literal"===e.argument.type&&1===e.argument.value,pW=e=>pO(e,0);var pV=/*@__PURE__*/Q({create:pT(e=>{e.on("CallExpression",t=>{if(!pL(t,{methods:["find","findLast"],minimumArguments:1,maximumArguments:2,optionalCall:!1,optionalMember:!1}))return;let r=pU(t);if(!r&&!pP(t))return;let n=t.callee.property;return{node:n,messageId:pM,data:{method:n.name},suggest:[{messageId:p$,*fix(u){if(yield u.replaceText(n,"some"),!r)return;let a=pI(t,e.sourceCode);yield u.replaceTextRange([a[1],t.parent.range[1]],""),"!="!==t.parent.operator&&"!=="!==t.parent.operator&&(yield u.insertTextBeforeRange(a,"!"))}}]}}),e.on("BinaryExpression",t=>{let{left:r,right:n,operator:u}=t;if(!(pL(r,{methods:["findIndex","findLastIndex"],argumentsLength:1,optionalCall:!1,optionalMember:!1})&&(["!==","!=",">","===","=="].includes(u)&&pq(n)||[">=","<"].includes(u)&&pW(n))))return;let a=r.callee.property;return{node:a,messageId:pM,data:{method:a.name},*fix(n){["===","==","<"].includes(u)&&(yield n.insertTextBefore(t,"!")),yield n.replaceText(a,"some");let[i]=e.sourceCode.getTokenAfter(r,e=>"Punctuator"===e.type&&e.value===u).range,[,o]=t.range;yield n.removeRange([i,o])}}}),e.on("BinaryExpression",t=>{if(!((">"===t.operator||"!=="===t.operator)&&"Literal"===t.right.type&&"0"===t.right.raw&&pN(t.left,{property:"length",optional:!1})&&pL(t.left.object,{method:"filter",optionalCall:!1,optionalMember:!1})))return;let r=t.left.object,[n]=r.arguments;if(!n||pB(n))return;let u=r.callee.property;return{node:u,messageId:pz,*fix(r){yield r.replaceText(u,"some");let{sourceCode:n}=e,a=t.left;yield pj(r,a,n),yield r.removeRange([pI(a,n)[1],t.range[1]])}}})}),meta:{type:"suggestion",docs:{description:"Prefer `.some(…)` over `.filter(…).length` check and `.{find,findLast,findIndex,findLastIndex}(…)`.",recommended:!0},fixable:"code",messages:{[pM]:"Prefer `.some(…)` over `.{{method}}(…)`.",[p$]:"Replace `.{{method}}(…)` with `.some(…)`.",[pz]:"Prefer `.some(…)` over non-zero length check from `.filter(…)`."},hasSuggestions:!0}});let{isMethodCall:pZ}=tL,pG=e=>pZ(e,{method:"charCodeAt",optionalCall:!1,optionalMember:!1})?"codePointAt":pZ(e,{object:"String",method:"fromCharCode",optionalCall:!1,optionalMember:!1})?"fromCodePoint":void 0;var pH=/*@__PURE__*/Q({create:()=>({CallExpression(e){let t=pG(e);if(!t)return;let r=e.callee.property,n=r.name;return{node:r,messageId:`error/${n}`,suggest:[{messageId:`suggestion/${t}`,fix:e=>e.replaceText(r,t)}]}}}),meta:{type:"suggestion",docs:{description:"Prefer `String#codePointAt(…)` over `String#charCodeAt(…)` and `String.fromCodePoint(…)` over `String.fromCharCode(…)`.",recommended:!0},hasSuggestions:!0,messages:{"error/charCodeAt":"Prefer `String#codePointAt()` over `String#charCodeAt()`.","error/fromCharCode":"Prefer `String.fromCodePoint()` over `String.fromCharCode()`.","suggestion/codePointAt":"Use `String#codePointAt()`.","suggestion/fromCodePoint":"Use `String.fromCodePoint()`."}}});let{findVariable:pK}=tn,{functionTypes:pX}=tL,pJ="preferDefaultParameters",pY="preferDefaultParametersSuggest",pQ=(e,t)=>e&&t&&"Identifier"===e.type&&"LogicalExpression"===t.type&&("||"===t.operator||"??"===t.operator)&&"Identifier"===t.left.type&&"Literal"===t.right.type,p0=(e,t)=>{if(!t)return!1;if("CallExpression"===t.type)return!0;for(let r of e.visitorKeys[t.type]){let n=t[r];if(Array.isArray(n)){for(let t of n)if(p0(e,t))return!0}else if(p0(e,n))return!0}return!1},p1=(e,t,r)=>{for(let n of t.body.body){if(n===r)break;if(p0(e,n))return!0}return!1},p2=(e,t,r)=>!!e&&t[0].identifier!==r||!e&&t.length>1,p3=(e,t)=>{let r=e.at(-1);return t&&t===r},p4=(e,t)=>{if("ArrowFunctionExpression"!==t.type||t.params.length>1)return!1;let[r]=t.params,n=e.getTokenBefore(r),u=e.getTokenAfter(r);return!u||!n||"("!==n.value||")"!==u.value},p5=(e,t,r)=>{let{line:n}=r.loc.start,{column:u}=r.loc.end,a=t.getText(r),i=t.lines[n-1],o=i.trim()===a,s=" "===i[u];return o?e.removeRange([t.getIndexFromLoc({line:n,column:0}),t.getIndexFromLoc({line:n+1,column:0})]):s?e.removeRange([r.range[0],r.range[1]+1]):e.remove(r)};var p8=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e,r=[],n=(e,n,u,a)=>{let i=r.at(-1);if(!i||!pQ(n,u))return;let{name:o}=n,{left:{name:s},right:{raw:d}}=u;if(a&&o!==s)return;let l=pK(t.getScope(e),s);if(!l)return;let{references:c}=l,{params:f}=i,p=f.find(e=>"Identifier"===e.type&&e.name===s);if(p1(t,i,e)||p2(a,c,n)||!p3(f,p))return;let m=p4(t,i)?`(${o} = ${d})`:`${o} = ${d}`;return{node:e,messageId:pJ,suggest:[{messageId:pY,fix:r=>[r.replaceText(p,m),p5(r,t,e)]}]}};e.on(pX,e=>{r.push(e)}),e.onExit(pX,()=>{r.pop()}),e.on("AssignmentExpression",e=>{if("ExpressionStatement"===e.parent.type&&e.parent.expression===e)return n(e.parent,e.left,e.right,!0)}),e.on("VariableDeclarator",e=>{if("VariableDeclaration"===e.parent.type&&e.parent.declarations[0]===e)return n(e.parent,e.id,e.init,!1)})},meta:{type:"suggestion",docs:{description:"Prefer default parameters over reassignment.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[pJ]:"Prefer default parameters over reassignment.",[pY]:"Replace reassignment with default parameter."}}});let{isParenthesized:p6,getParenthesizedText:p9}=tm,p7=function(e,{operator:t,property:r}){if(!r)throw Error("`property` is required.");return("LogicalExpression"!==e.type||e.operator!==t)&&("AwaitExpression"===e.type||"BinaryExpression"===e.type||"LogicalExpression"===e.type||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"ArrowFunctionExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type)},me="prefer-logical-operator-over-ternary/error",mt="prefer-logical-operator-over-ternary/suggestion";function mr(e,t,r){if(r0(e,t))return!0;if(e.type!==t.type)return!1;switch(e.type){case"AwaitExpression":return mr(e.argument,t.argument,r);case"LogicalExpression":return e.operator===t.operator&&mr(e.left,t.left,r)&&mr(e.right,t.right,r);case"UnaryExpression":return e.operator===t.operator&&e.prefix===t.prefix&&mr(e.argument,t.argument,r);case"UpdateExpression":return!1}return r.getText(e)===r.getText(t)}function mn({sourceCode:e,conditionalExpression:t,left:r,right:n}){return{node:t,messageId:me,suggest:["??","||"].map(u=>({messageId:mt,data:{operator:u},fix:a=>(function({fixer:e,sourceCode:t,conditionalExpression:r,left:n,right:u,operator:a}){let i=[n,u].map((e,r)=>{let n=p6(e,t),u=n?p9(e,t):t.getText(e);return!n&&p7(e,{operator:a,property:0===r?"left":"right"})&&(u=`(${u})`),u}).join(` ${a} `);return r5(t.getTokenBefore(r),t,i)&&(i=`;${i}`),e.replaceText(r,i)})({fixer:a,sourceCode:e,conditionalExpression:t,left:r,right:n,operator:u})}))}}var mu=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e;return{ConditionalExpression(e){let{test:r,consequent:n,alternate:u}=e;return mr(r,n,t)?mn({sourceCode:t,conditionalExpression:e,left:r,right:u}):"UnaryExpression"===r.type&&"!"===r.operator&&r.prefix&&mr(r.argument,u,t)?mn({sourceCode:t,conditionalExpression:e,left:r.argument,right:n}):void 0}}},meta:{type:"suggestion",docs:{description:"Prefer using a logical operator over a ternary.",recommended:!0},hasSuggestions:!0,messages:{[me]:"Prefer using a logical operator over a ternary.",[mt]:"Switch to `{{operator}}` operator."}}});let{isOpeningParenToken:ma,isClosingParenToken:mi}=tn,mo="with-name",ms="without-name";var md=/*@__PURE__*/Q({create:e=>({CatchClause(t){let r=t.param;if(!r)return;let{sourceCode:n}=e;if(n.getDeclaredVariables(r.parent).some(e=>e.references.length>0))return;let{type:u,name:a,parent:i}=r;return{node:r,messageId:"Identifier"===u?mo:ms,data:{name:a},*fix(e){let t=n.getTokenBefore(r);cq(t,{test:ma,expected:"(",ruleId:"prefer-optional-catch-binding"});let u=n.getTokenAfter(r);cq(u,{test:mi,expected:")",ruleId:"prefer-optional-catch-binding"}),yield e.remove(t),yield e.remove(r),yield e.remove(u);let[,a]=u.range,[o]=i.body.range,s=n.text.slice(a,o),d=s.length-s.trimStart().length;0!==d&&(yield e.removeRange([a,a+d]))}}}}),meta:{type:"suggestion",docs:{description:"Prefer omitting the `catch` binding parameter.",recommended:!0},fixable:"code",messages:{[mo]:"Remove unused catch binding `{{name}}`.",[ms]:"Remove unused catch binding."}}});let{isParenthesized:ml,getStaticValue:mc}=tn,{checkVueTemplate:mf}=ox,{isRegexLiteral:mp,isNewExpression:mm,isMethodCall:mg}=tL,{isBooleanNode:my,shouldAddParenthesesToMemberExpressionObject:mh}=nx,mb="regexp-exec",mv="string-match",mx="suggestion",mE=[{type:mb,test:e=>mg(e,{method:"exec",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.arguments[0],methodNode:e.callee.property,regexpNode:e.callee.object}),fix:(e,{methodNode:t})=>e.replaceText(t,"test")},{type:mv,test:e=>mg(e,{method:"match",argumentsLength:1,optionalCall:!1,optionalMember:!1}),getNodes:e=>({stringNode:e.callee.object,methodNode:e.callee.property,regexpNode:e.arguments[0]}),*fix(e,{stringNode:t,methodNode:r,regexpNode:n},u){yield e.replaceText(r,"test");let a=u.getText(t);ml(n,u)||"SequenceExpression"!==t.type||(a=`(${a})`),yield e.replaceText(n,a);let i=u.getText(n);!ml(t,u)&&mh(n,u)&&(i=`(${i})`),yield e.replaceText(t,i)}}],mA=e=>mp(e)||mm(e,{name:"RegExp"}),mD=(e,t)=>{if(mp(e))return!e.regex.flags.includes("g");let r=mc(e,t);if(!r)return!1;let{value:n}=r;return"[object RegExp]"===Object.prototype.toString.call(n)&&!n.global};var mC=/*@__PURE__*/Q({create:mf(e=>({*CallExpression(t){if(my(t))for(let{type:r,test:n,getNodes:u,fix:a}of mE){if(!n(t))continue;let i=u(t),{methodNode:o,regexpNode:s}=i;if("Literal"===s.type&&!s.regex)continue;let d={node:r===mb?o:t,messageId:r},{sourceCode:l}=e,c=e=>a(e,i,l);mA(s)||mD(s,l.getScope(s))?d.fix=c:d.suggest=[{messageId:mx,fix:c}],yield d}}})),meta:{type:"suggestion",docs:{description:"Prefer `RegExp#test()` over `String#match()` and `RegExp#exec()`.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[mb]:"Prefer `.test(…)` over `.exec(…)`.",[mv]:"Prefer `RegExp#test(…)` over `String#match(…)`.",[mx]:"Switch to `RegExp#test(…)`."}}});let{findVariable:mS}=tn,{getVariableIdentifiers:mw}=nx,{isCallOrNewExpression:mF,isMethodCall:m_}=tL,mk="error",mT="suggestion",mP=["concat","copyWithin","fill","filter","flat","flatMap","map","reverse","slice","sort","splice","toReversed","toSorted","toSpliced","with"],mI=e=>{let{type:t,optional:r,callee:n,arguments:u}=e.parent.parent??{};return"CallExpression"===t&&!r&&"MemberExpression"===n.type&&!n.computed&&!n.optional&&n.object===e&&"Identifier"===n.property.type&&"includes"===n.property.name&&1===u.length&&"SpreadElement"!==u[0].type},mB=new Set(["ForOfStatement","ForStatement","ForInStatement","WhileStatement","DoWhileStatement","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]),mj=(e,t)=>{let r=t.parent.parent.parent,{parent:n}=e.parent;for(;n&&n!==r;){if(mB.has(n.type))return!0;n=n.parent}return!1};var mO=/*@__PURE__*/Q({create:e=>({Identifier(t){let{parent:r}=t;if(!("VariableDeclarator"===r.type&&r.id===t&&r.init&&"VariableDeclaration"===r.parent.type&&r.parent.declarations.includes(r)&&!("ExportNamedDeclaration"===r.parent.parent.type&&r.parent.parent.declaration===r.parent)&&("ArrayExpression"===r.init.type||mF(r.init,{name:"Array",optional:!1})||m_(r.init,{object:"Array",methods:["from","of"],optionalCall:!1,optionalMember:!1})||m_(r.init,{methods:mP,optionalCall:!1,optionalMember:!1}))))return;let n=mS(e.sourceCode.getScope(t),t);if(!n)return;let u=mw(n).filter(e=>e!==t);if(0===u.length||u.some(e=>!mI(e))||1===u.length&&u.every(e=>!mj(e,t)))return;let a={node:t,messageId:mk,data:{name:t.name}},i=function*(e){for(let r of(yield e.insertTextBefore(t.parent.init,"new Set("),yield e.insertTextAfter(t.parent.init,")"),u))yield e.replaceText(r.parent.property,"has")};return t.typeAnnotation?a.suggest=[{messageId:mT,fix:i}]:a.fix=i,a}}),meta:{type:"suggestion",docs:{description:"Prefer `Set#has()` over `Array#includes()` when checking for existence or non-existence.",recommended:!0},fixable:"code",hasSuggestions:!0,messages:{[mk]:"`{{name}}` should be a `Set`, and use `{{name}}.has()` to check existence or non-existence.",[mT]:"Switch `{{name}}` to `Set`."}}});let{isStringLiteral:mR,isDirective:mL}=tL,{fixSpaceAroundKeyword:mN}=uo,mM="prefer-string-raw";var m$=/*@__PURE__*/Q({create:e=>{e.on("Literal",t=>{if(!mR(t)||mL(t.parent)||("ImportDeclaration"===t.parent.type||"ExportNamedDeclaration"===t.parent.type||"ExportAllDeclaration"===t.parent.type)&&t.parent.source===t||"Property"===t.parent.type&&!t.parent.computed&&t.parent.key===t||"JSXAttribute"===t.parent.type&&t.parent.value===t||"TSEnumMember"===t.parent.type&&(t.parent.initializer===t||t.parent.id===t))return;let{raw:r}=t;if("\\"===r.at(-2)||!r.includes("\\\\")||r.includes("`")||r.includes("${")||t.loc.start.line!==t.loc.end.line)return;let n=function(e){let t=e.charAt(0);e=e.slice(1,-1);let r="";for(let n=0;n<e.length;n++){let u=e[n];if("\\"===u){let u=e[n+1];if("\\"===u||u===t){r+=u,n++;continue}}r+=u}return r}(r);if(n===t.value)return{node:t,messageId:mM,*fix(r){yield r.replaceText(t,`String.raw\`${n}\``),yield*mN(r,t,e.sourceCode)}}})},meta:{type:"suggestion",docs:{description:"Prefer using the `String.raw` tag to avoid escaping `\\`.",recommended:!0},fixable:"code",messages:{[mM]:"`String.raw` should be used to avoid escaping `\\`."}}});let{hasSideEffect:mz}=tn,mU=function(e,t){let{line:r,column:n}=t.getLocFromIndex(e.range[0]);return t.getLines()[r-1].slice(0,n).match(/\s*$/)[0]},mq="prefer-switch",mW=(e,t)=>e===t||r0(e,t),mV=new Set(["WhileStatement","DoWhileStatement","ForStatement","ForOfStatement","ForInStatement","SwitchStatement"]),mZ=e=>{for(;e.parent;e=e.parent)if(mV.has(e.type))return e},mG=(e,t)=>e.range[0]>=t.range[0]&&e.range[1]<=t.range[1];var mH=/*@__PURE__*/Q({create:e=>{let t={minimumCases:3,emptyDefaultCase:"no-default-comment",insertBreakInDefaultCase:!1,...e.options[0]},{sourceCode:r}=e,n=new Set,u=[],a=new Set;return{IfStatement(e){n.add(e)},BreakStatement(e){e.label||u.push(e)},*"Program:exit"(){for(let e of n){if(a.has(e))continue;let{discriminant:n,ifStatements:i}=function(e){let t;let r=[];for(;e&&"IfStatement"===e.type;e=e.alternate){let{test:n}=e,u=function(e){let t=[e],r=[];for(;t.length>0;){if("LogicalExpression"===(e=t.pop()).type&&"||"===e.operator){t.push(e.right,e.left);continue}if("BinaryExpression"!==e.type||"==="!==e.operator)return[];r.push(e)}return r}(n);if(0===u.length)break;if(!t){let[{left:e,right:r}]=u;t=[e,r]}let a=function(e,t){for(let{left:r,right:n}of e)if(0===(t=t.filter(e=>mW(e,r)||mW(e,n))).length)break;return t}(u,t);if(0===a.length)break;t=a,r.push({statement:e,compareExpressions:u})}return{ifStatements:r,discriminant:t&&t[0]}}(e);if(!n||i.length<t.minimumCases)continue;for(let{statement:e}of i)a.add(e);let o={loc:{start:e.loc.start,end:e.consequent.loc.start},messageId:mq};mz(n,r)||i.some(({statement:e})=>(function(e,t){for(let r of e){if(!mG(r,t))continue;let e=mZ(r);if(!e||mG(t,e))return!0}return!1})(u,e))||(o.fix=function({discriminant:e,ifStatements:t},r,n){let u=r.getText(e);return function*(a){let i=t[0].statement,o=mU(i,r);yield a.insertTextBefore(i,`switch (${u}) {`);let s=t.at(-1).statement;if(s.alternate){let{alternate:e}=s;yield a.insertTextBefore(e,`
5
5
  ${o}default: `)}else switch(n.emptyDefaultCase){case"no-default-comment":yield a.insertTextAfter(i,`
6
6
  ${o}// No default`);break;case"do-nothing-comment":yield a.insertTextAfter(i,`
7
7
  ${o}default:
8
8
  ${o}// Do nothing`)}for(let{statement:n,compareExpressions:u}of(yield a.insertTextAfter(i,`
9
- ${o}}`),t)){let{consequent:t,alternate:i,range:s}=n,d=[s[0],t.range[0]];if(i){let[,e]=t.range,[r]=i.range;yield a.replaceTextRange([e,r],"")}for(let{left:n,right:i}of(yield a.replaceTextRange(d,""),u)){let u=mU(n,e)?i:n,s=r.getText(u);yield a.insertTextBefore(t,`
9
+ ${o}}`),t)){let{consequent:t,alternate:i,range:s}=n,d=[s[0],t.range[0]];if(i){let[,e]=t.range,[r]=i.range;yield a.replaceTextRange([e,r],"")}for(let{left:n,right:i}of(yield a.replaceTextRange(d,""),u)){let u=mW(n,e)?i:n,s=r.getText(u);yield a.insertTextBefore(t,`
10
10
  ${o}case ${s}: `)}(function e(t){switch(t.type){case"ReturnStatement":case"ThrowStatement":return!1;case"IfStatement":return!t.alternate||e(t.consequent)||e(t.alternate);case"BlockStatement":{let r=function e(t){let{body:r}=t;for(let t=r.length-1;t>=0;t--){let n=r[t];if("FunctionDeclaration"!==n.type&&"EmptyStatement"!==n.type){if("BlockStatement"===n.type){let t=e(n);if(t)return t;continue}return n}}}(t);return!r||e(r)}default:return!0}})(t)&&(yield*function*(e,t,r,n){if("BlockStatement"===e.type){let u=r.getLastToken(e);yield t.insertTextBefore(u,`
11
11
  ${n}break;
12
12
  ${n}`)}else yield t.insertTextAfter(e,`
13
13
  ${n}break;`)}(t,a,r,o),yield*function*(e,t,r){e&&"BlockStatement"!==e.type&&(yield t.insertTextBefore(e,`{
14
14
  ${r}`),yield t.insertTextAfter(e,`
15
- ${r}}`))}(t,a,o))}}}({discriminant:n,ifStatements:i},r,t)),yield o}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,default:3},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],default:"no-default-comment"}}}],messages:{[mz]:"Use `switch` instead of multiple `else-if`."}}});let{appendArgument:mG}=ua,{isMethodCall:mH}=tO,mK="require-number-to-fixed-digits-argument";var mX=/*@__PURE__*/Y({create:e=>({CallExpression(t){if(!mH(t,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2);return{loc:{start:n.loc.start,end:u.loc.end},messageId:mK,fix:e=>mG(e,t,"0",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:!0},fixable:"code",messages:{[mK]:"Missing the digits argument."}}});let mJ=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0};function mY(e){return(mY="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function mQ(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){d=!0,u=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw u}}return o}}(e,t)||m0(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m0(e,t){if(e){if("string"==typeof e)return m1(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m1(e,t):void 0}}function m1(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m2(e,t){return e(t={exports:{}},t.exports),t.exports}var m3=m2(function(e,t){!function e(t){var r,n,u,a,i,o;function s(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?s(r):r);return n}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function m(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function g(e,t){return(new c).traverse(e,t)}return r={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"},u={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"]},n={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,n,u;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(u=[],e=2,t=this.__leavelist.length;e<t;++e)a(u,this.__leavelist[e].path);return a(u,this.__current.path),u},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.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=u,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,n,u,o,s,d,c,g,y,h,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((u=r.pop())!==v){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(v),n.push(u),this.__state===i||d===i)continue;if(s=(o=u.node).type||u.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(o)}for(g=h.length;(g-=1)>=0;)if(b=o[c=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]&&!m(n,b[y])){if(p(s,h[g]))u=new l(b[y],[c,y],"Property",null);else{if(!f(b[y]))continue;u=new l(b[y],[c,y],null,null)}r.push(u)}}else if(f(b)){if(m(n,b))continue;r.push(new l(b,c,null,null))}}}}else if(u=n.pop(),d=this.__execute(t.leave,u),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,n,u,s,c,m,g,y,h,b,v,x,E;function A(e){var t,n,u,a;if(e.ref.remove()){for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((u=r[t]).ref&&u.ref.parent===a){if(u.ref.key<n)break;--u.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,m=new l(e,null,null,new d(x={root:e},"root")),r.push(m),n.push(m);r.length;)if((m=r.pop())!==v){if(void 0!==(c=this.__execute(t.enter,m))&&c!==a&&c!==i&&c!==o&&(m.ref.replace(c),m.node=c),this.__state!==o&&c!==o||(A(m),m.node=null),this.__state===a||c===a)return x.root;if((u=m.node)&&(r.push(v),n.push(m),this.__state!==i&&c!==i)){if(s=u.type||m.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(u)}for(g=h.length;(g-=1)>=0;)if(b=u[E=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]){if(p(s,h[g]))m=new l(b[y],[E,y],"Property",new d(b,y));else{if(!f(b[y]))continue;m=new l(b[y],[E,y],null,new d(b,y))}r.push(m)}}else f(b)&&r.push(new l(b,E,null,new d(u,E)))}}}else if(m=n.pop(),void 0!==(c=this.__execute(t.leave,m))&&c!==a&&c!==i&&c!==o&&m.ref.replace(c),this.__state!==o&&c!==o||A(m),this.__state===a||c===a)break;return x.root},t.Syntax=r,t.traverse=g,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var u,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(u=s(t[i])).extendedRange=[0,e.range[0]],d.push(u);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,n,u,a;for(n=e.length,u=0;n;)t(e[a=u+(r=n>>>1)])?n=r:(u=a+1,n-=r+1);return u}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,g(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),o=0,g(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=u,t.VisitorOption=n,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),m4=m2(function(e){e.exports&&(e.exports=function(){function e(t,r,n,u){this.message=t,this.expected=r,this.found=n,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+u(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function u(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}return"Expected "+function(e){var t,n,u,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(u=e[t]).type](u);if(a.sort(),a.length>0){for(t=1,n=1;t<a.length;t++)a[t-1]!==a[t]&&(a[n]=a[t],n++);a.length=n}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+u(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,u,a,i,o,s,d,l,c={},f={start:ev},p=ev,m=eg(" ",!1),g=/^[^ [\],():#!=><~+.]/,y=ey([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),h=eg(">",!1),b=eg("~",!1),v=eg("+",!1),x=eg(",",!1),E=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},A=eg("!",!1),D=eg("*",!1),C=eg("#",!1),S=eg("[",!1),w=eg("]",!1),F=/^[><!]/,_=ey([">","<","!"],!1,!1),k=eg("=",!1),T=function(e){return(e||"")+"="},P=/^[><]/,I=ey([">","<"],!1,!1),B=eg(".",!1),j=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},O=eg('"',!1),R=/^[^\\"]/,L=ey(["\\",'"'],!0,!1),N=eg("\\",!1),M={type:"any"},$=function(e,t){return e+t},z=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},U=eg("'",!1),q=/^[^\\']/,W=ey(["\\","'"],!0,!1),V=/^[0-9]/,Z=ey([["0","9"]],!1,!1),G=eg("type(",!1),H=/^[^ )]/,K=ey([" ",")"],!0,!1),X=eg(")",!1),J=/^[imsu]/,Y=ey(["i","m","s","u"],!1,!1),Q=eg("/",!1),ee=/^[^\/]/,et=ey(["/"],!0,!1),er=eg(":not(",!1),en=eg(":matches(",!1),eu=eg(":has(",!1),ea=eg(":first-child",!1),ei=eg(":last-child",!1),eo=eg(":nth-child(",!1),es=eg(":nth-last-child(",!1),ed=eg(":",!1),el=0,ec=[{line:1,column:1}],ef=0,ep=[],em={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function eg(e,t){return{type:"literal",text:e,ignoreCase:t}}function ey(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function eh(e){var r,n=ec[e];if(n)return n;for(r=e-1;!ec[r];)r--;for(n={line:(n=ec[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ec[e]=n,n}function eb(e){el<ef||(el>ef&&(ef=el,ep=[]),ep.push(e))}function ev(){var e,t,r,n,u=32*el+0,a=em[u];return a?(el=a.nextPos,a.result):(e=el,(t=ex())!==c&&(r=eD())!==c&&ex()!==c?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(el=e,e=c),e===c&&(e=el,(t=ex())!==c&&(t=void 0),e=t),em[u]={nextPos:el,result:e},e)}function ex(){var e,r,n=32*el+1,u=em[n];if(u)return el=u.nextPos,u.result;for(e=[],32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(m));r!==c;)e.push(r),32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(m));return em[n]={nextPos:el,result:e},e}function eE(){var e,r,n,u=32*el+2,a=em[u];if(a)return el=a.nextPos,a.result;if(r=[],g.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(y)),n!==c)for(;n!==c;)r.push(n),g.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(y));else r=c;return r!==c&&(r=r.join("")),e=r,em[u]={nextPos:el,result:e},e}function eA(){var e,r,n,u=32*el+3,a=em[u];return a?(el=a.nextPos,a.result):(e=el,(r=ex())!==c?(62===t.charCodeAt(el)?(n=">",el++):(n=c,eb(h)),n!==c&&ex()!==c?e=r="child":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(126===t.charCodeAt(el)?(n="~",el++):(n=c,eb(b)),n!==c&&ex()!==c?e=r="sibling":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(43===t.charCodeAt(el)?(n="+",el++):(n=c,eb(v)),n!==c&&ex()!==c?e=r="adjacent":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(m)),r!==c&&(n=ex())!==c?e=r="descendant":(el=e,e=c)))),em[u]={nextPos:el,result:e},e)}function eD(){var e,r,n,u,a,i,o,s,d=32*el+5,l=em[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eS())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return em[d]={nextPos:el,result:e},e}function eC(){var e,t,r,n,u,a=32*el+6,i=em[a];return i?(el=i.nextPos,i.result):(e=el,(t=eA())===c&&(t=null),t!==c&&(r=eS())!==c?(u=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:u}:u):(el=e,e=c),em[a]={nextPos:el,result:e},e)}function eS(){var e,t,r,n,u,a,i,o=32*el+7,s=em[o];if(s)return el=s.nextPos,s.result;if(e=el,(t=ew())!==c){for(r=[],n=el,(u=eA())!==c&&(a=ew())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eA())!==c&&(a=ew())!==c?n=u=[u,a]:(el=n,n=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(el=e,e=c)}else el=e,e=c;return em[o]={nextPos:el,result:e},e}function ew(){var e,r,n,u,a,i,o,s=32*el+8,d=em[s];if(d)return el=d.nextPos,d.result;if(e=el,33===t.charCodeAt(el)?(r="!",el++):(r=c,eb(A)),r===c&&(r=null),r!==c){if(n=[],(u=eF())!==c)for(;u!==c;)n.push(u),u=eF();else n=c;n!==c?(a=r,o=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(el=e,e=c)}else el=e,e=c;return em[s]={nextPos:el,result:e},e}function eF(){var e,r,n,u,a,i,o,s,d,l,f,p,m,g,y,h,b,v,ec,ef,ep,eg,ey,eh,ev,eA,eS,ew,eF,eP,eI,eB,ej,eO,eR,eL,eN,eM,e$,ez,eU,eq,eW,eV,eZ,eG,eH,eK,eX,eJ,eY,eQ,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta=32*el+9,ti=em[ta];return ti?(el=ti.nextPos,ti.result):((tu=(u=em[n=32*el+10])?(el=u.nextPos,u.result):(42===t.charCodeAt(el)?(r="*",el++):(r=c,eb(D)),r!==c&&(r={type:"wildcard",value:r}),e=r,em[n]={nextPos:el,result:e},e))===c&&(tu=(d=em[s=32*el+11])?(el=d.nextPos,d.result):(a=el,35===t.charCodeAt(el)?(i="#",el++):(i=c,eb(C)),i===c&&(i=null),i!==c&&(o=eE())!==c?a=i={type:"identifier",value:o}:(el=a,a=c),em[s]={nextPos:el,result:a},a))===c&&(tu=(y=em[g=32*el+12])?(el=y.nextPos,y.result):(l=el,91===t.charCodeAt(el)?(f="[",el++):(f=c,eb(S)),f!==c&&ex()!==c&&(p=(ep=em[ef=32*el+16])?(el=ep.nextPos,ep.result):(h=el,(b=e_())!==c&&ex()!==c&&(v=(eA=em[ev=32*el+14])?(el=eA.nextPos,eA.result):(eg=el,33===t.charCodeAt(el)?(ey="!",el++):(ey=c,eb(A)),ey===c&&(ey=null),ey!==c?(61===t.charCodeAt(el)?(eh="=",el++):(eh=c,eb(k)),eh!==c?eg=ey=T(ey):(el=eg,eg=c)):(el=eg,eg=c),em[ev]={nextPos:el,result:eg},eg))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i=32*el+20,o=em[i];if(o)return el=o.nextPos,o.result;if(e=el,"type("===t.substr(el,5)?(r="type(",el+=5):(r=c,eb(G)),r!==c){if(ex()!==c){if(n=[],H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K)),u!==c)for(;u!==c;)n.push(u),H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(X)),a!==c?e=r={type:"type",value:n.join("")}:(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[i]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+22,s=em[o];if(s)return el=s.nextPos,s.result;if(e=el,47===t.charCodeAt(el)?(r="/",el++):(r=c,eb(Q)),r!==c){if(n=[],ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et)),u!==c)for(;u!==c;)n.push(u),ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et));else n=c;n!==c?(47===t.charCodeAt(el)?(u="/",el++):(u=c,eb(Q)),u!==c?((a=function(){var e,r,n=32*el+21,u=em[n];if(u)return el=u.nextPos,u.result;if(e=[],J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Y)),r!==c)for(;r!==c;)e.push(r),J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Y));else e=c;return em[n]={nextPos:el,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(el=e,e=c)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;return em[o]={nextPos:el,result:e},e}()),ec!==c?h=b=j(b,v,ec):(el=h,h=c)):(el=h,h=c),h===c&&(h=el,(b=e_())!==c&&ex()!==c&&(v=(eI=em[eP=32*el+13])?(el=eI.nextPos,eI.result):(eS=el,F.test(t.charAt(el))?(ew=t.charAt(el),el++):(ew=c,eb(_)),ew===c&&(ew=null),ew!==c?(61===t.charCodeAt(el)?(eF="=",el++):(eF=c,eb(k)),eF!==c?eS=ew=T(ew):(el=eS,eS=c)):(el=eS,eS=c),eS===c&&(P.test(t.charAt(el))?(eS=t.charAt(el),el++):(eS=c,eb(I))),em[eP]={nextPos:el,result:eS},eS))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i,o=32*el+17,s=em[o];if(s)return el=s.nextPos,s.result;if(e=el,34===t.charCodeAt(el)?(r='"',el++):(r=c,eb(O)),r!==c){for(n=[],R.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(L)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),R.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(L)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(34===t.charCodeAt(el)?(u='"',el++):(u=c,eb(O)),u!==c?e=r=z(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;if(e===c){if(e=el,39===t.charCodeAt(el)?(r="'",el++):(r=c,eb(U)),r!==c){for(n=[],q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(W)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(W)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(39===t.charCodeAt(el)?(u="'",el++):(u=c,eb(U)),u!==c?e=r=z(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}return em[o]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+18,s=em[o];if(s)return el=s.nextPos,s.result;for(e=el,r=el,n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(B)),u!==c?r=n=[n,u]:(el=r,r=c)):(el=r,r=c),r===c&&(r=null),r!==c){if(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z)),u!==c)for(;u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));else n=c;n!==c?(i=n,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(el=e,e=c)}else el=e,e=c;return em[o]={nextPos:el,result:e},e}())===c&&(ec=(eR=em[eO=32*el+19])?(el=eR.nextPos,eR.result):((ej=eE())!==c&&(ej={type:"literal",value:ej}),eB=ej,em[eO]={nextPos:el,result:eB},eB)),ec!==c?h=b=j(b,v,ec):(el=h,h=c)):(el=h,h=c),h===c&&(h=el,(b=e_())!==c&&(b={type:"attribute",name:b}),h=b)),em[ef]={nextPos:el,result:h},h))!==c&&ex()!==c?(93===t.charCodeAt(el)?(m="]",el++):(m=c,eb(w)),m!==c?l=f=p:(el=l,l=c)):(el=l,l=c),em[g]={nextPos:el,result:l},l))===c&&(tu=function(){var e,r,n,u,a,i,o,s=32*el+23,d=em[s];if(d)return el=d.nextPos,d.result;if(e=el,46===t.charCodeAt(el)?(r=".",el++):(r=c,eb(B)),r!==c){if((n=eE())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);a!==c;)u.push(a),a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);u!==c?e=r={type:"field",name:u.reduce(function(e,t){return e+t[0]+t[1]},n)}:(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[s]={nextPos:el,result:e},e}())===c&&(tu=(eU=em[ez=32*el+24])?(el=eU.nextPos,eU.result):(eL=el,":not("===t.substr(el,5)?(eN=":not(",el+=5):(eN=c,eb(er)),eN!==c&&ex()!==c&&(eM=eD())!==c&&ex()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(X)),e$!==c?eL=eN={type:"not",selectors:eM}:(el=eL,eL=c)):(el=eL,eL=c),em[ez]={nextPos:el,result:eL},eL))===c&&(tu=(eH=em[eG=32*el+25])?(el=eH.nextPos,eH.result):(eq=el,":matches("===t.substr(el,9)?(eW=":matches(",el+=9):(eW=c,eb(en)),eW!==c&&ex()!==c&&(eV=eD())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eZ=")",el++):(eZ=c,eb(X)),eZ!==c?eq=eW={type:"matches",selectors:eV}:(el=eq,eq=c)):(el=eq,eq=c),em[eG]={nextPos:el,result:eq},eq))===c&&(tu=(e0=em[eQ=32*el+26])?(el=e0.nextPos,e0.result):(eK=el,":has("===t.substr(el,5)?(eX=":has(",el+=5):(eX=c,eb(eu)),eX!==c&&ex()!==c&&(eJ=function(){var e,r,n,u,a,i,o,s,d=32*el+4,l=em[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eC())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eC())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eC())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return em[d]={nextPos:el,result:e},e}())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eY=")",el++):(eY=c,eb(X)),eY!==c?eK=eX={type:"has",selectors:eJ}:(el=eK,eK=c)):(el=eK,eK=c),em[eQ]={nextPos:el,result:eK},eK))===c&&(tu=(e4=em[e3=32*el+27])?(el=e4.nextPos,e4.result):(":first-child"===t.substr(el,12)?(e2=":first-child",el+=12):(e2=c,eb(ea)),e2!==c&&(e2=ek(1)),e1=e2,em[e3]={nextPos:el,result:e1},e1))===c&&(tu=(e9=em[e6=32*el+28])?(el=e9.nextPos,e9.result):(":last-child"===t.substr(el,11)?(e8=":last-child",el+=11):(e8=c,eb(ei)),e8!==c&&(e8=eT(1)),e5=e8,em[e6]={nextPos:el,result:e5},e5))===c&&(tu=function(){var e,r,n,u,a,i=32*el+29,o=em[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-child("===t.substr(el,11)?(r=":nth-child(",el+=11):(r=c,eb(eo)),r!==c){if(ex()!==c){if(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z)),u!==c)for(;u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(X)),a!==c?e=r=ek(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[i]={nextPos:el,result:e},e}())===c&&(tu=function(){var e,r,n,u,a,i=32*el+30,o=em[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-last-child("===t.substr(el,16)?(r=":nth-last-child(",el+=16):(r=c,eb(es)),r!==c){if(ex()!==c){if(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z)),u!==c)for(;u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(X)),a!==c?e=r=eT(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[i]={nextPos:el,result:e},e}())===c&&(tu=(tn=em[tr=32*el+31])?(el=tn.nextPos,tn.result):(e7=el,58===t.charCodeAt(el)?(te=":",el++):(te=c,eb(ed)),te!==c&&(tt=eE())!==c?e7=te={type:"class",name:tt}:(el=e7,e7=c),em[tr]={nextPos:el,result:e7},e7)),em[ta]={nextPos:el,result:tu},tu)}function e_(){var e,r,n,u,a,i,o,s=32*el+15,d=em[s];if(d)return el=d.nextPos,d.result;if(e=el,(r=eE())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);u!==c;)n.push(u),u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);n!==c?(o=r,e=r=[].concat.apply([o],n).join("")):(el=e,e=c)}else el=e,e=c;return em[s]={nextPos:el,result:e},e}function ek(e){return{type:"nth-child",index:{type:"literal",value:e}}}function eT(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&el===t.length)return o;throw o!==c&&el<t.length&&eb({type:"end"}),s=ep,d=ef<t.length?t.charAt(ef):null,n=ef,u=ef<t.length?ef+1:ef,a=eh(n),i=eh(u),l={start:{offset:n,line:a.line,column:a.column},end:{offset:u,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function m5(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var m8="function"==typeof WeakMap?new WeakMap:null;function m6(e){if(null==e)return function(){return!0};if(null!=m8){var t=m8.get(e);return null!=t||(t=m9(e),m8.set(e,t)),t}return m9(e)}function m9(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,n){return t===e[n&&n.nodeTypeKey||"type"].toLowerCase()};case"exactNode":return function(e,t){return 0===t.length};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,n,u){for(var a=r,i=u;i<n.length;++i){if(null==a)return!1;var o=a[n[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],n,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var n=e.selectors.map(m6);return function(e,t,r){for(var u=0;u<n.length;++u)if(n[u](e,t,r))return!0;return!1};case"compound":var u=e.selectors.map(m6);return function(e,t,r){for(var n=0;n<u.length;++n)if(!u[n](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(m6);return function(e,t,r){for(var n=0;n<a.length;++n)if(a[n](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(m6);return function(e,t,r){var n=!1,u=[];return m3.traverse(e,{enter:function(e,t){null!=t&&u.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,u,r))return n=!0,void this.break()},leave:function(){u.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),n};case"child":var o=m6(e.left),s=m6(e.right);return function(e,t,r){return!!(t.length>0&&s(e,t,r))&&o(t[0],t.slice(1),r)};case"descendant":var d=m6(e.left),l=m6(e.right);return function(e,t,r){if(l(e,t,r)){for(var n=0,u=t.length;n<u;++n)if(d(t[n],t.slice(n+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=m5(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=m5(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(m5(e,c))};case"type":return function(t){return e.value.value===mY(m5(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(m5(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(m5(e,c))};case"type":return function(t){return e.value.value!==mY(m5(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return m5(t,c)<=e.value.value};case"<":return function(t){return m5(t,c)<e.value.value};case">":return function(t){return m5(t,c)>e.value.value};case">=":return function(t){return m5(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var m=m6(e.left),g=m6(e.right);return function(t,r,n){return g(t,r,n)&&gt(t,m,r,"LEFT_SIDE",n)||e.left.subject&&m(t,r,n)&&gt(t,g,r,"RIGHT_SIDE",n)};case"adjacent":var y=m6(e.left),h=m6(e.right);return function(t,r,n){return h(t,r,n)&&gr(t,y,r,"LEFT_SIDE",n)||e.right.subject&&y(t,r,n)&&gr(t,h,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,v=m6(e.right);return function(e,t,r){return v(e,t,r)&&gn(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=m6(e.right);return function(e,t,r){return E(e,t,r)&&gn(e,t,x,r)};case"class":var A=e.name.toLowerCase();return function(t,r,n){if(n&&n.matchClass)return n.matchClass(e.name,t,r);if(n&&n.nodeTypeKey)return!1;switch(A){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function m7(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:m3.VisitorKeys[n]?m3.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function ge(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===mY(e)&&"string"==typeof e[r]}function gt(e,t,r,n,u){var a=mQ(r,1)[0];if(!a)return!1;for(var i=m7(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===n?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(ge(s[f],u)&&t(s[f],r,u))return!0}}return!1}function gr(e,t,r,n,u){var a=mQ(r,1)[0];if(!a)return!1;for(var i=m7(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===n&&d>0&&ge(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&ge(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function gn(e,t,r,n){if(0===r)return!1;var u=mQ(t,1)[0];if(!u)return!1;for(var a=m7(u,n),i=0;i<a.length;++i){var o=u[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function gu(e,t,r,n){if(t){var u=[],a=m6(t),i=(function e(t,r){if(null==t||"object"!=mY(t))return[];null==r&&(r=t);for(var n=t.subject?[r]:[],u=Object.keys(t),a=0;a<u.length;++a){var i,o=u[a],s=t[o];n.push.apply(n,function(e){if(Array.isArray(e))return m1(e)}(i=e(s,"left"===o?s:r))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||m0(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return n})(t).map(m6);m3.traverse(e,{enter:function(e,t){if(null!=t&&u.unshift(t),a(e,u,n)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,u,n)&&r(e,t,u);for(var d=0,l=u.length;d<l;++d){var c=u.slice(d+1);i[o](u[d],c,n)&&r(u[d],t,c)}}else r(e,t,u)}},leave:function(){u.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function ga(e,t,r){var n=[];return gu(e,t,function(e){n.push(e)},r),n}function gi(e){return m4.parse(e)}function go(e,t,r){return ga(e,gi(t),r)}go.parse=gi,go.match=ga,go.traverse=gu,go.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),m6(t)(e,r,n))},go.query=go;var gs=/*@__PURE__*/Q(/*#__PURE__*/Object.freeze({__proto__:null,default:go}));let gd=e=>{let t=mJ(e);if(0===t)return e;let r=RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},gl=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))},{replaceTemplateElement:gc}=ua,{isMethodCall:gf,isCallExpression:gp,isTaggedTemplateLiteral:gm}=tO,{isNodeMatches:gg}=nb,gy="template-indent",gh=e=>gf(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&gp(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),gb=new Map,gv=e=>(gb.has(e)||gb.set(e,gs.parse(e)),gb.get(e));var gx=/*@__PURE__*/Y({create:e=>{let{sourceCode:t}=e,r={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...e.options[0]};r.comments=r.comments.map(e=>e.toLowerCase());let n=e=>{let n;let u="__PLACEHOLDER__"+Math.random(),a=e.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(u),i=a.match(/\r?\n/);if(!i)return;let o=i[0],s=t.lines[e.loc.start.line-1].match(/^(\s*)\S/),d=s?s[1]:"";n="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):d.startsWith(" ")?" ":" ";let l=gd(a).replaceAll(RegExp(`^${o}|${o}[ ]*$`,"g"),""),c=o+gl(l,1,{indent:d+n})+o+d;if(c!==a)return{node:e,messageId:gy,fix:t=>c.split(u).map((r,n)=>gc(t,e.quasis[n],r))}},u=e=>{if(r.comments.length>0){let n=t.getTokenBefore(e,{includeComments:!0});if(n?.type==="Block"&&r.comments.includes(n.value.trim().toLowerCase()))return!0}if(gh(e)||r.tags.length>0&&gm(e,r.tags)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&gg(e.parent.callee,r.functions))return!0;if(r.selectors.length>0){let n=t.getAncestors(e).reverse();if(r.selectors.some(t=>gs.matches(e,gv(t),n)))return!0}return!1};return{TemplateLiteral(e){if(u(e))return n(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[gy]:"Templates should be properly indented."}}});let{isMethodCall:gE}=tO,{removeSpacesAfter:gA}=ua,gD="no-await-in-promise-methods/error",gC="no-await-in-promise-methods/suggestion",gS=["all","allSettled","any","race"],gw=e=>gE(e,{object:"Promise",methods:gS,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type;var gF=/*@__PURE__*/Y({create:e=>({*CallExpression(t){if(gw(t))for(let r of t.arguments[0].elements)r?.type==="AwaitExpression"&&(yield{node:r,messageId:gD,data:{method:t.callee.property.name},suggest:[{messageId:gC,*fix(t){let{sourceCode:n}=e,u=e.sourceCode.getFirstToken(r);yield t.remove(u),yield gA(u,n,t)}}]})}}),meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:!0},hasSuggestions:!0,messages:{[gD]:"Promise in `Promise.{{method}}()` should not be awaited.",[gC]:"Remove `await`."}}});let{fixSpaceAroundKeyword:g_,addParenthesizesToReturnOrThrowExpression:gk}=ua,{needsSemicolon:gT,isParenthesized:gP,isOnSameLine:gI}=nb,gB="no-negation-in-equality-check/error",gj="no-negation-in-equality-check/suggestion",gO=new Set(["===","!==","==","!="]),gR=e=>"BinaryExpression"===e.type&&gO.has(e.operator),gL=e=>"UnaryExpression"===e.type&&e.prefix&&"!"===e.operator;var gN=/*@__PURE__*/Y({create:e=>({BinaryExpression(t){let{operator:r,left:n}=t;if(!(gR(t)&&gL(n)&&!gL(n.argument)))return;let{sourceCode:u}=e,a=u.getFirstToken(n),i=`${r.startsWith("!")?"=":"!"}${r.slice(1)}`;return{node:a,messageId:gB,suggest:[{messageId:gj,data:{operator:i},*fix(e){yield*g_(e,t,u);let o=u.getTokenAfter(a),{parent:s}=t;"ReturnStatement"!==s.type&&"ThrowStatement"!==s.type||gP(t,u)||gI(u.getFirstToken(s),o)||(yield*gk(e,s,u)),yield e.remove(a),gT(u.getTokenBefore(a),u,o.value)&&(yield e.insertTextAfter(a,";"));let d=u.getTokenAfter(n,e=>"Punctuator"===e.type&&e.value===r);yield e.replaceText(d,i)}}]}}}),meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:!0},hasSuggestions:!0,messages:{[gB]:"Negated expression in not allowed in equality check.",[gj]:"Switch to '{{operator}}' check."}}});let{isMethodCall:gM,isMemberExpression:g$}=tO,{removeArgument:gz}=ua,{isSameReference:gU}=nb,gq="no-length-as-slice-end";var gW=/*@__PURE__*/Y({create:e=>{e.on("CallExpression",t=>{if(!gM(t,{method:"slice",argumentsLength:2,optionalCall:!1}))return;let r=t.arguments[1],n="ChainExpression"===r.type?r.expression:r;if(g$(n,{property:"length",computed:!1})&&gU(t.callee.object,n.object))return{node:n,messageId:gq,fix:t=>gz(t,r,e.sourceCode)}})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:!0},fixable:"code",messages:{[gq]:"Passing `….length` as the `end` argument is unnecessary."}}});let{findVariable:gV}=tr,{renameVariable:gZ}=ua,{isMethodCall:gG}=tO,gH="catch-error-name",gK=e=>("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)&&e.parent.params[0]===e&&(gG(e.parent.parent,{method:"then",argumentsLength:2,optionalCall:!1,optionalMember:!1})||gG(e.parent.parent,{method:"catch",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&e.parent.parent.arguments.at(-1)===e.parent;var gX=/*@__PURE__*/Y({create:e=>{let t={name:"error",ignore:[],...e.options[0]},{name:r}=t,n=t.ignore.map(e=>e instanceof RegExp?e:RegExp(e,"u")),u=e=>e===r||n.some(t=>t.test(e))||e.endsWith(r)||e.endsWith(r.charAt(0).toUpperCase()+r.slice(1));return{Identifier(t){if(!("CatchClause"===t.parent.type&&t.parent.param===t)&&!gK(t))return;let n=t.name;if(u(n)||u(n.replaceAll(/_+$/g,"")))return;let a=gV(e.sourceCode.getScope(t),t);if(!a||"_"===n&&0===a.references.length)return;let i=rd(r,[a.scope,...a.references.map(({from:e})=>e)]),o={node:t,messageId:gH,data:{originalName:n,fixedName:i||r}};return i&&(o.fix=e=>gZ(a,i,e)),o}}},meta:{type:"suggestion",docs:{description:"Enforce a specific parameter name in catch clauses.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{name:{type:"string"},ignore:{type:"array",uniqueItems:!0}}}],messages:{[gH]:"The catch parameter `{{originalName}}` should be named `{{fixedName}}`."}}}),gJ={exports:{}};gJ.exports,function(e,t){var r,n,u,a,i,o,s,d,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,m={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(m,{camelCase:()=>tN,defaultsDeep:()=>t1,kebabCase:()=>t2,lowerFirst:()=>t3,snakeCase:()=>t4,upperFirst:()=>to}),e.exports=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of f(t))p.call(e,u)||u===r||l(e,u,{get:()=>t[u],enumerable:!(n=c(t,u))||n.enumerable});return e})(l({},"__esModule",{value:!0}),m);var g="object"==typeof J&&J&&J.Object===Object&&J,y="object"==typeof self&&self&&self.Object===Object&&self,h=g||y||Function("return this")(),b=h.Symbol,v=Object.prototype,x=v.hasOwnProperty,E=v.toString,A=b?b.toStringTag:void 0,D=function(e){var t=x.call(e,A),r=e[A];try{e[A]=void 0;var n=!0}catch(e){}var u=E.call(e);return n&&(t?e[A]=r:delete e[A]),u},C=Object.prototype.toString,S=b?b.toStringTag:void 0,w=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?D(e):C.call(e)},F=function(e){return null!=e&&"object"==typeof e},_=function(e,t){for(var r=-1,n=null==e?0:e.length,u=Array(n);++r<n;)u[r]=t(e[r],r,e);return u},k=Array.isArray,T=1/0,P=b?b.prototype:void 0,I=P?P.toString:void 0,B=function e(t){if("string"==typeof t)return t;if(k(t))return _(t,e)+"";if("symbol"==typeof t||F(t)&&"[object Symbol]"==w(t))return I?I.call(t):"";var r=t+"";return"0"==r&&1/t==-T?"-0":r},j=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},O=function(e){return e},R=function(e){if(!j(e))return!1;var t=w(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},L=h["__core-js_shared__"],N=(r=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",M=Function.prototype.toString,$=function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""},z=/^\[object .+?Constructor\]$/,U=Object.prototype,q=Function.prototype.toString,W=U.hasOwnProperty,V=RegExp("^"+q.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=function(e,t){var r,n=null==e?void 0:e[t];return j(r=n)&&(!N||!(N in r))&&(R(r)?V:z).test($(r))?n:void 0},G=Object.create,H=function(){function e(){}return function(t){if(!j(t))return{};if(G)return G(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),K=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},X=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},Y=Date.now,Q=function(){try{var e=Z(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ee=(n=Q?function(e,t){return Q(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:O,u=0,a=0,function(){var e=Y(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),et=/^(?:0|[1-9]\d*)$/,er=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&et.test(e))&&e>-1&&e%1==0&&e<t},en=function(e,t,r){"__proto__"==t&&Q?Q(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},eu=function(e,t){return e===t||e!=e&&t!=t},ea=Object.prototype.hasOwnProperty,ei=function(e,t,r){var n=e[t];ea.call(e,t)&&eu(n,r)&&(void 0!==r||t in e)||en(e,t,r)},eo=function(e,t,r,n){var u=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),u?en(r,o,s):ei(r,o,s)}return r},es=Math.max,ed=function(e,t){var r;return ee((r=es(void 0===(r=t)?e.length-1:r,0),function(){for(var t=arguments,n=-1,u=es(t.length-r,0),a=Array(u);++n<u;)a[n]=t[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=t[n];return i[r]=O(a),K(e,this,i)}),e+"")},el=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ec=function(e){return null!=e&&el(e.length)&&!R(e)},ef=function(e,t,r){if(!j(r))return!1;var n=typeof t;return("number"==n?!!(ec(r)&&er(t,r.length)):"string"==n&&t in r)&&eu(r[t],e)},ep=Object.prototype,em=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ep)},eg=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},ey=function(e){return F(e)&&"[object Arguments]"==w(e)},eh=Object.prototype,eb=eh.hasOwnProperty,ev=eh.propertyIsEnumerable,ex=ey(function(){return arguments}())?ey:function(e){return F(e)&&eb.call(e,"callee")&&!ev.call(e,"callee")},eE=t&&!t.nodeType&&t,eA=eE&&e&&!e.nodeType&&e,eD=eA&&eA.exports===eE?h.Buffer:void 0,eC=(eD?eD.isBuffer:void 0)||function(){return!1},eS={};eS["[object Float32Array]"]=eS["[object Float64Array]"]=eS["[object Int8Array]"]=eS["[object Int16Array]"]=eS["[object Int32Array]"]=eS["[object Uint8Array]"]=eS["[object Uint8ClampedArray]"]=eS["[object Uint16Array]"]=eS["[object Uint32Array]"]=!0,eS["[object Arguments]"]=eS["[object Array]"]=eS["[object ArrayBuffer]"]=eS["[object Boolean]"]=eS["[object DataView]"]=eS["[object Date]"]=eS["[object Error]"]=eS["[object Function]"]=eS["[object Map]"]=eS["[object Number]"]=eS["[object Object]"]=eS["[object RegExp]"]=eS["[object Set]"]=eS["[object String]"]=eS["[object WeakMap]"]=!1;var ew=t&&!t.nodeType&&t,eF=ew&&e&&!e.nodeType&&e,e_=eF&&eF.exports===ew&&g.process,ek=function(){try{var e=eF&&eF.require&&eF.require("util").types;if(e)return e;return e_&&e_.binding&&e_.binding("util")}catch(e){}}(),eT=ek&&ek.isTypedArray,eP=eT?function(e){return eT(e)}:function(e){return F(e)&&el(e.length)&&!!eS[w(e)]},eI=Object.prototype.hasOwnProperty,eB=function(e,t){var r=k(e),n=!r&&ex(e),u=!r&&!n&&eC(e),a=!r&&!n&&!u&&eP(e),i=r||n||u||a,o=i?eg(e.length,String):[],s=o.length;for(var d in e)(t||eI.call(e,d))&&!(i&&("length"==d||u&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||er(d,s)))&&o.push(d);return o},ej=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eO=Object.prototype.hasOwnProperty,eR=function(e){if(!j(e))return ej(e);var t=em(e),r=[];for(var n in e)"constructor"==n&&(t||!eO.call(e,n))||r.push(n);return r},eL=function(e){return ec(e)?eB(e,!0):eR(e)},eN=Z(Object,"create"),eM=Object.prototype.hasOwnProperty,e$=Object.prototype.hasOwnProperty;function ez(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ez.prototype.clear=function(){this.__data__=eN?eN(null):{},this.size=0},ez.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ez.prototype.get=function(e){var t=this.__data__;if(eN){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eM.call(t,e)?t[e]:void 0},ez.prototype.has=function(e){var t=this.__data__;return eN?void 0!==t[e]:e$.call(t,e)},ez.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eN&&void 0===t?"__lodash_hash_undefined__":t,this};var eU=function(e,t){for(var r=e.length;r--;)if(eu(e[r][0],t))return r;return -1},eq=Array.prototype.splice;function eW(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eW.prototype.clear=function(){this.__data__=[],this.size=0},eW.prototype.delete=function(e){var t=this.__data__,r=eU(t,e);return!(r<0)&&(r==t.length-1?t.pop():eq.call(t,r,1),--this.size,!0)},eW.prototype.get=function(e){var t=this.__data__,r=eU(t,e);return r<0?void 0:t[r][1]},eW.prototype.has=function(e){return eU(this.__data__,e)>-1},eW.prototype.set=function(e,t){var r=this.__data__,n=eU(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var eV=Z(h,"Map"),eZ=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eG=function(e,t){var r=e.__data__;return eZ(t)?r["string"==typeof t?"string":"hash"]:r.map};function eH(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eH.prototype.clear=function(){this.size=0,this.__data__={hash:new ez,map:new(eV||eW),string:new ez}},eH.prototype.delete=function(e){var t=eG(this,e).delete(e);return this.size-=t?1:0,t},eH.prototype.get=function(e){return eG(this,e).get(e)},eH.prototype.has=function(e){return eG(this,e).has(e)},eH.prototype.set=function(e,t){var r=eG(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var eK=function(e){return null==e?"":B(e)},eX=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eJ=Object.prototype,eY=Function.prototype.toString,eQ=eJ.hasOwnProperty,e0=eY.call(Object),e1=function(e){if(!F(e)||"[object Object]"!=w(e))return!1;var t=eX(e);if(null===t)return!0;var r=eQ.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eY.call(r)==e0},e2=function(e,t,r){var n=-1,u=e.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(u);++n<u;)a[n]=e[n+t];return a},e3=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:e2(e,t,r)},e4=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),e5=function(e){return e4.test(e)},e8="\ud800-\udfff",e6="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",e9="\ud83c[\udffb-\udfff]",e7="[^"+e8+"]",te="(?:\ud83c[\udde6-\uddff]){2}",tt="[\ud800-\udbff][\udc00-\udfff]",tr="(?:"+e6+"|"+e9+")?",tn="[\\ufe0e\\ufe0f]?",tu="(?:\\u200d(?:"+[e7,te,tt].join("|")+")"+tn+tr+")*",ta=RegExp(e9+"(?="+e9+")|(?:"+[e7+e6+"?",e6,te,tt,"["+e8+"]"].join("|")+")"+(tn+tr+tu),"g"),ti=function(e){return function(t){var r,n=e5(t=eK(t))?e5(r=t)?r.match(ta)||[]:r.split(""):void 0,u=n?n[0]:t.charAt(0),a=n?e3(n,1).join(""):t.slice(1);return u[e]()+a}},to=ti("toUpperCase"),ts=function(e,t,r,n){var u=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++u]);++u<a;)r=t(r,e[u],u,e);return r},td=(s={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==s?void 0:s[e]}),tl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tc=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),tf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tm="\ud800-\udfff",tg="\\u2700-\\u27bf",ty="a-z\\xdf-\\xf6\\xf8-\\xff",th="A-Z\\xc0-\\xd6\\xd8-\\xde",tb="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tv="['’]",tx="["+tb+"]",tE="["+ty+"]",tA="[^"+tm+tb+"\\d+"+tg+ty+th+"]",tD="(?:\ud83c[\udde6-\uddff]){2}",tC="[\ud800-\udbff][\udc00-\udfff]",tS="["+th+"]",tw="(?:"+tE+"|"+tA+")",tF="(?:"+tS+"|"+tA+")",t_="(?:"+tv+"(?:d|ll|m|re|s|t|ve))?",tk="(?:"+tv+"(?:D|LL|M|RE|S|T|VE))?",tT="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tP="[\\ufe0e\\ufe0f]?",tI="(?:\\u200d(?:"+["[^"+tm+"]",tD,tC].join("|")+")"+tP+tT+")*",tB="(?:"+["["+tg+"]",tD,tC].join("|")+")"+(tP+tT+tI),tj=RegExp([tS+"?"+tE+"+"+t_+"(?="+[tx,tS,"$"].join("|")+")",tF+"+"+tk+"(?="+[tx,tS+tw,"$"].join("|")+")",tS+"?"+tw+"+"+t_,tS+"+"+tk,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tB].join("|"),"g"),tO=function(e,t,r){if(e=eK(e),void 0===(t=r?void 0:t)){var n;return(n=e,tp.test(n))?e.match(tj)||[]:e.match(tf)||[]}return e.match(t)||[]},tR=RegExp("['’]","g"),tL=function(e){return function(t){var r;return ts(tO(((r=eK(r=t))&&r.replace(tl,td).replace(tc,"")).replace(tR,"")),e,"")}},tN=tL(function(e,t,r){return t=t.toLowerCase(),e+(r?to(eK(t).toLowerCase()):t)});function tM(e){var t=this.__data__=new eW(e);this.size=t.size}tM.prototype.clear=function(){this.__data__=new eW,this.size=0},tM.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tM.prototype.get=function(e){return this.__data__.get(e)},tM.prototype.has=function(e){return this.__data__.has(e)},tM.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eW){var n=r.__data__;if(!eV||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eH(n)}return r.set(e,t),this.size=r.size,this};var t$=t&&!t.nodeType&&t,tz=t$&&e&&!e.nodeType&&e,tU=tz&&tz.exports===t$?h.Buffer:void 0,tq=tU?tU.allocUnsafe:void 0,tW=function(e,t){if(t)return e.slice();var r=e.length,n=tq?tq(r):new e.constructor(r);return e.copy(n),n},tV=h.Uint8Array,tZ=function(e){var t=new e.constructor(e.byteLength);return new tV(t).set(new tV(e)),t},tG=function(e,t){var r=t?tZ(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},tH=function(e,t,r){for(var n=-1,u=Object(e),a=r(e),i=a.length;i--;){var o=a[++n];if(!1===t(u[o],o,u))break}return e},tK=function(e,t,r){(void 0===r||eu(e[t],r))&&(void 0!==r||t in e)||en(e,t,r)},tX=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},tJ=function(e,t,r,n,u,a,i){var o=tX(e,r),s=tX(t,r),d=i.get(s);if(d){tK(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=k(s),p=!f&&eC(s),m=!f&&!p&&eP(s);(l=s,f||p||m)?k(o)?l=o:F(o)&&ec(o)?l=X(o):p?(c=!1,l=tW(s,!0)):m?(c=!1,l=tG(s,!0)):l=[]:e1(s)||ex(s)?(l=o,ex(o))?l=eo(o,eL(o)):(!j(o)||R(o))&&(l="function"!=typeof s.constructor||em(s)?{}:H(eX(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tK(e,r,l)},tY=function e(t,r,n,u,a){t!==r&&tH(r,function(i,o){if(a||(a=new tM),j(i))tJ(t,r,o,n,e,u,a);else{var s=u?u(tX(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tK(t,o,s)}},eL)},tQ=function e(t,r,n,u,a,i){return j(t)&&j(r)&&(i.set(r,t),tY(t,r,void 0,e,i),i.delete(r)),t},t0=(d=function(e,t,r,n){tY(e,t,r,n)},ed(function(e,t){var r=-1,n=t.length,u=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(u=d.length>3&&"function"==typeof u?(n--,u):void 0,a&&ef(t[0],t[1],a)&&(u=n<3?void 0:u,n=1),e=Object(e);++r<n;){var i=t[r];i&&d(e,i,r,u)}return e})),t1=ed(function(e){return e.push(void 0,tQ),K(t0,void 0,e)}),t2=tL(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t3=ti("toLowerCase"),t4=tL(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});/*! Bundled license information:
15
+ ${r}}`))}(t,a,o))}}}({discriminant:n,ifStatements:i},r,t)),yield o}}}},meta:{type:"suggestion",docs:{description:"Prefer `switch` over multiple `else-if`.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{minimumCases:{type:"integer",minimum:2,default:3},emptyDefaultCase:{enum:["no-default-comment","do-nothing-comment","no-default-case"],default:"no-default-comment"}}}],messages:{[mq]:"Use `switch` instead of multiple `else-if`."}}});let{appendArgument:mK}=uo,{isMethodCall:mX}=tL,mJ="require-number-to-fixed-digits-argument";var mY=/*@__PURE__*/Q({create:e=>({CallExpression(t){if(!mX(t,{method:"toFixed",argumentsLength:0,optionalCall:!1,optionalMember:!1})||"NewExpression"===t.callee.object.type)return;let{sourceCode:r}=e,[n,u]=r.getLastTokens(t,2);return{loc:{start:n.loc.start,end:u.loc.end},messageId:mJ,fix:e=>mK(e,t,"0",r)}}}),meta:{type:"suggestion",docs:{description:"Enforce using the digits argument with `Number#toFixed()`.",recommended:!0},fixable:"code",messages:{[mJ]:"Missing the digits argument."}}});let mQ=e=>{let t=e.match(/^[ \t]*(?=\S)/gm);return t?t.reduce((e,t)=>Math.min(e,t.length),1/0):0};function m0(e){return(m0="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function m1(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,u,a,i,o=[],s=!0,d=!1;try{if(a=(r=r.call(e)).next,0===t);else for(;!(s=(n=a.call(r)).done)&&(o.push(n.value),o.length!==t);s=!0);}catch(e){d=!0,u=e}finally{try{if(!s&&null!=r.return&&(i=r.return(),Object(i)!==i))return}finally{if(d)throw u}}return o}}(e,t)||m2(e,t)||function(){throw TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function m2(e,t){if(e){if("string"==typeof e)return m3(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?m3(e,t):void 0}}function m3(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function m4(e,t){return e(t={exports:{}},t.exports),t.exports}var m5=m4(function(e,t){!function e(t){var r,n,u,a,i,o;function s(e){var t,r,n={};for(t in e)e.hasOwnProperty(t)&&(r=e[t],n[t]="object"==typeof r&&null!==r?s(r):r);return n}function d(e,t){this.parent=e,this.key=t}function l(e,t,r,n){this.node=e,this.path=t,this.wrap=r,this.ref=n}function c(){}function f(e){return null!=e&&"object"==typeof e&&"string"==typeof e.type}function p(e,t){return(e===r.ObjectExpression||e===r.ObjectPattern)&&"properties"===t}function m(e,t){for(var r=e.length-1;r>=0;--r)if(e[r].node===t)return!0;return!1}function g(e,t){return(new c).traverse(e,t)}return r={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"},u={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"]},n={Break:a={},Skip:i={},Remove:o={}},d.prototype.replace=function(e){this.parent[this.key]=e},d.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},c.prototype.path=function(){var e,t,r,n,u;function a(e,t){if(Array.isArray(t))for(r=0,n=t.length;r<n;++r)e.push(t[r]);else e.push(t)}if(!this.__current.path)return null;for(u=[],e=2,t=this.__leavelist.length;e<t;++e)a(u,this.__leavelist[e].path);return a(u,this.__current.path),u},c.prototype.type=function(){return this.current().type||this.__current.wrap},c.prototype.parents=function(){var e,t,r;for(r=[],e=1,t=this.__leavelist.length;e<t;++e)r.push(this.__leavelist[e].node);return r},c.prototype.current=function(){return this.__current.node},c.prototype.__execute=function(e,t){var r,n;return n=void 0,r=this.__current,this.__current=t,this.__state=null,e&&(n=e.call(this,t.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=r,n},c.prototype.notify=function(e){this.__state=e},c.prototype.skip=function(){this.notify(i)},c.prototype.break=function(){this.notify(a)},c.prototype.remove=function(){this.notify(o)},c.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=u,t.keys&&(this.__keys=Object.assign(Object.create(this.__keys),t.keys))},c.prototype.traverse=function(e,t){var r,n,u,o,s,d,c,g,y,h,b,v;for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,r.push(new l(e,null,null,null)),n.push(new l(null,null,null,null));r.length;)if((u=r.pop())!==v){if(u.node){if(d=this.__execute(t.enter,u),this.__state===a||d===a)return;if(r.push(v),n.push(u),this.__state===i||d===i)continue;if(s=(o=u.node).type||u.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(o)}for(g=h.length;(g-=1)>=0;)if(b=o[c=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]&&!m(n,b[y])){if(p(s,h[g]))u=new l(b[y],[c,y],"Property",null);else{if(!f(b[y]))continue;u=new l(b[y],[c,y],null,null)}r.push(u)}}else if(f(b)){if(m(n,b))continue;r.push(new l(b,c,null,null))}}}}else if(u=n.pop(),d=this.__execute(t.leave,u),this.__state===a||d===a)return},c.prototype.replace=function(e,t){var r,n,u,s,c,m,g,y,h,b,v,x,E;function A(e){var t,n,u,a;if(e.ref.remove()){for(n=e.ref.key,a=e.ref.parent,t=r.length;t--;)if((u=r[t]).ref&&u.ref.parent===a){if(u.ref.key<n)break;--u.ref.key}}}for(this.__initialize(e,t),v={},r=this.__worklist,n=this.__leavelist,m=new l(e,null,null,new d(x={root:e},"root")),r.push(m),n.push(m);r.length;)if((m=r.pop())!==v){if(void 0!==(c=this.__execute(t.enter,m))&&c!==a&&c!==i&&c!==o&&(m.ref.replace(c),m.node=c),this.__state!==o&&c!==o||(A(m),m.node=null),this.__state===a||c===a)return x.root;if((u=m.node)&&(r.push(v),n.push(m),this.__state!==i&&c!==i)){if(s=u.type||m.wrap,!(h=this.__keys[s])){if(!this.__fallback)throw Error("Unknown node type "+s+".");h=this.__fallback(u)}for(g=h.length;(g-=1)>=0;)if(b=u[E=h[g]]){if(Array.isArray(b)){for(y=b.length;(y-=1)>=0;)if(b[y]){if(p(s,h[g]))m=new l(b[y],[E,y],"Property",new d(b,y));else{if(!f(b[y]))continue;m=new l(b[y],[E,y],null,new d(b,y))}r.push(m)}}else f(b)&&r.push(new l(b,E,null,new d(u,E)))}}}else if(m=n.pop(),void 0!==(c=this.__execute(t.leave,m))&&c!==a&&c!==i&&c!==o&&m.ref.replace(c),this.__state!==o&&c!==o||A(m),this.__state===a||c===a)break;return x.root},t.Syntax=r,t.traverse=g,t.replace=function(e,t){return(new c).replace(e,t)},t.attachComments=function(e,t,r){var u,a,i,o,d=[];if(!e.range)throw Error("attachComments needs range information");if(!r.length){if(t.length){for(i=0,a=t.length;i<a;i+=1)(u=s(t[i])).extendedRange=[0,e.range[0]],d.push(u);e.leadingComments=d}return e}for(i=0,a=t.length;i<a;i+=1)d.push(function(e,t){var r;return r=function(e,t){var r,n,u,a;for(n=e.length,u=0;n;)t(e[a=u+(r=n>>>1)])?n=r:(u=a+1,n-=r+1);return u}(t,function(t){return t.range[0]>e.range[0]}),e.extendedRange=[e.range[0],e.range[1]],r!==t.length&&(e.extendedRange[1]=t[r].range[0]),(r-=1)>=0&&(e.extendedRange[0]=t[r].range[1]),e}(s(t[i]),r));return o=0,g(e,{enter:function(e){for(var t;o<d.length&&!((t=d[o]).extendedRange[1]>e.range[0]);)t.extendedRange[1]===e.range[0]?(e.leadingComments||(e.leadingComments=[]),e.leadingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),o=0,g(e,{leave:function(e){for(var t;o<d.length&&(t=d[o],!(e.range[1]<t.extendedRange[0]));)e.range[1]===t.extendedRange[0]?(e.trailingComments||(e.trailingComments=[]),e.trailingComments.push(t),d.splice(o,1)):o+=1;return o===d.length?n.Break:d[o].extendedRange[0]>e.range[1]?n.Skip:void 0}}),e},t.VisitorKeys=u,t.VisitorOption=n,t.Controller=c,t.cloneEnvironment=function(){return e({})},t}(t)}),m8=m4(function(e){e.exports&&(e.exports=function(){function e(t,r,n,u){this.message=t,this.expected=r,this.found=n,this.location=u,this.name="SyntaxError","function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,e)}return function(e,t){function r(){this.constructor=e}r.prototype=t.prototype,e.prototype=new r}(e,Error),e.buildMessage=function(e,t){var r={literal:function(e){return'"'+u(e.text)+'"'},class:function(e){var t,r="";for(t=0;t<e.parts.length;t++)r+=e.parts[t]instanceof Array?a(e.parts[t][0])+"-"+a(e.parts[t][1]):a(e.parts[t]);return"["+(e.inverted?"^":"")+r+"]"},any:function(e){return"any character"},end:function(e){return"end of input"},other:function(e){return e.description}};function n(e){return e.charCodeAt(0).toString(16).toUpperCase()}function u(e){return e.replace(/\\/g,"\\\\").replace(/"/g,'\\"').replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}function a(e){return e.replace(/\\/g,"\\\\").replace(/\]/g,"\\]").replace(/\^/g,"\\^").replace(/-/g,"\\-").replace(/\0/g,"\\0").replace(/\t/g,"\\t").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/[\x00-\x0F]/g,function(e){return"\\x0"+n(e)}).replace(/[\x10-\x1F\x7F-\x9F]/g,function(e){return"\\x"+n(e)})}return"Expected "+function(e){var t,n,u,a=Array(e.length);for(t=0;t<e.length;t++)a[t]=r[(u=e[t]).type](u);if(a.sort(),a.length>0){for(t=1,n=1;t<a.length;t++)a[t-1]!==a[t]&&(a[n]=a[t],n++);a.length=n}switch(a.length){case 1:return a[0];case 2:return a[0]+" or "+a[1];default:return a.slice(0,-1).join(", ")+", or "+a[a.length-1]}}(e)+" but "+(t?'"'+u(t)+'"':"end of input")+" found."},{SyntaxError:e,parse:function(t,r){r=void 0!==r?r:{};var n,u,a,i,o,s,d,l,c={},f={start:ev},p=ev,m=eg(" ",!1),g=/^[^ [\],():#!=><~+.]/,y=ey([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),h=eg(">",!1),b=eg("~",!1),v=eg("+",!1),x=eg(",",!1),E=function(e,t){return[e].concat(t.map(function(e){return e[3]}))},A=eg("!",!1),D=eg("*",!1),C=eg("#",!1),S=eg("[",!1),w=eg("]",!1),F=/^[><!]/,_=ey([">","<","!"],!1,!1),k=eg("=",!1),T=function(e){return(e||"")+"="},P=/^[><]/,I=ey([">","<"],!1,!1),B=eg(".",!1),j=function(e,t,r){return{type:"attribute",name:e,operator:t,value:r}},O=eg('"',!1),R=/^[^\\"]/,L=ey(["\\",'"'],!0,!1),N=eg("\\",!1),M={type:"any"},$=function(e,t){return e+t},z=function(e){return{type:"literal",value:e.join("").replace(/\\(.)/g,function(e,t){switch(t){case"b":return"\b";case"f":return"\f";case"n":return"\n";case"r":return"\r";case"t":return" ";case"v":return"\v";default:return t}})}},U=eg("'",!1),q=/^[^\\']/,W=ey(["\\","'"],!0,!1),V=/^[0-9]/,Z=ey([["0","9"]],!1,!1),G=eg("type(",!1),H=/^[^ )]/,K=ey([" ",")"],!0,!1),X=eg(")",!1),J=/^[imsu]/,Y=ey(["i","m","s","u"],!1,!1),Q=eg("/",!1),ee=/^[^\/]/,et=ey(["/"],!0,!1),er=eg(":not(",!1),en=eg(":matches(",!1),eu=eg(":has(",!1),ea=eg(":first-child",!1),ei=eg(":last-child",!1),eo=eg(":nth-child(",!1),es=eg(":nth-last-child(",!1),ed=eg(":",!1),el=0,ec=[{line:1,column:1}],ef=0,ep=[],em={};if("startRule"in r){if(!(r.startRule in f))throw Error("Can't start parsing from rule \""+r.startRule+'".');p=f[r.startRule]}function eg(e,t){return{type:"literal",text:e,ignoreCase:t}}function ey(e,t,r){return{type:"class",parts:e,inverted:t,ignoreCase:r}}function eh(e){var r,n=ec[e];if(n)return n;for(r=e-1;!ec[r];)r--;for(n={line:(n=ec[r]).line,column:n.column};r<e;)10===t.charCodeAt(r)?(n.line++,n.column=1):n.column++,r++;return ec[e]=n,n}function eb(e){el<ef||(el>ef&&(ef=el,ep=[]),ep.push(e))}function ev(){var e,t,r,n,u=32*el+0,a=em[u];return a?(el=a.nextPos,a.result):(e=el,(t=ex())!==c&&(r=eD())!==c&&ex()!==c?e=t=1===(n=r).length?n[0]:{type:"matches",selectors:n}:(el=e,e=c),e===c&&(e=el,(t=ex())!==c&&(t=void 0),e=t),em[u]={nextPos:el,result:e},e)}function ex(){var e,r,n=32*el+1,u=em[n];if(u)return el=u.nextPos,u.result;for(e=[],32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(m));r!==c;)e.push(r),32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(m));return em[n]={nextPos:el,result:e},e}function eE(){var e,r,n,u=32*el+2,a=em[u];if(a)return el=a.nextPos,a.result;if(r=[],g.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(y)),n!==c)for(;n!==c;)r.push(n),g.test(t.charAt(el))?(n=t.charAt(el),el++):(n=c,eb(y));else r=c;return r!==c&&(r=r.join("")),e=r,em[u]={nextPos:el,result:e},e}function eA(){var e,r,n,u=32*el+3,a=em[u];return a?(el=a.nextPos,a.result):(e=el,(r=ex())!==c?(62===t.charCodeAt(el)?(n=">",el++):(n=c,eb(h)),n!==c&&ex()!==c?e=r="child":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(126===t.charCodeAt(el)?(n="~",el++):(n=c,eb(b)),n!==c&&ex()!==c?e=r="sibling":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,(r=ex())!==c?(43===t.charCodeAt(el)?(n="+",el++):(n=c,eb(v)),n!==c&&ex()!==c?e=r="adjacent":(el=e,e=c)):(el=e,e=c),e===c&&(e=el,32===t.charCodeAt(el)?(r=" ",el++):(r=c,eb(m)),r!==c&&(n=ex())!==c?e=r="descendant":(el=e,e=c)))),em[u]={nextPos:el,result:e},e)}function eD(){var e,r,n,u,a,i,o,s,d=32*el+5,l=em[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eS())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eS())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return em[d]={nextPos:el,result:e},e}function eC(){var e,t,r,n,u,a=32*el+6,i=em[a];return i?(el=i.nextPos,i.result):(e=el,(t=eA())===c&&(t=null),t!==c&&(r=eS())!==c?(u=r,e=t=(n=t)?{type:n,left:{type:"exactNode"},right:u}:u):(el=e,e=c),em[a]={nextPos:el,result:e},e)}function eS(){var e,t,r,n,u,a,i,o=32*el+7,s=em[o];if(s)return el=s.nextPos,s.result;if(e=el,(t=ew())!==c){for(r=[],n=el,(u=eA())!==c&&(a=ew())!==c?n=u=[u,a]:(el=n,n=c);n!==c;)r.push(n),n=el,(u=eA())!==c&&(a=ew())!==c?n=u=[u,a]:(el=n,n=c);r!==c?(i=t,e=t=r.reduce(function(e,t){return{type:t[0],left:e,right:t[1]}},i)):(el=e,e=c)}else el=e,e=c;return em[o]={nextPos:el,result:e},e}function ew(){var e,r,n,u,a,i,o,s=32*el+8,d=em[s];if(d)return el=d.nextPos,d.result;if(e=el,33===t.charCodeAt(el)?(r="!",el++):(r=c,eb(A)),r===c&&(r=null),r!==c){if(n=[],(u=eF())!==c)for(;u!==c;)n.push(u),u=eF();else n=c;n!==c?(a=r,o=1===(i=n).length?i[0]:{type:"compound",selectors:i},a&&(o.subject=!0),e=r=o):(el=e,e=c)}else el=e,e=c;return em[s]={nextPos:el,result:e},e}function eF(){var e,r,n,u,a,i,o,s,d,l,f,p,m,g,y,h,b,v,ec,ef,ep,eg,ey,eh,ev,eA,eS,ew,eF,eP,eI,eB,ej,eO,eR,eL,eN,eM,e$,ez,eU,eq,eW,eV,eZ,eG,eH,eK,eX,eJ,eY,eQ,e0,e1,e2,e3,e4,e5,e8,e6,e9,e7,te,tt,tr,tn,tu,ta=32*el+9,ti=em[ta];return ti?(el=ti.nextPos,ti.result):((tu=(u=em[n=32*el+10])?(el=u.nextPos,u.result):(42===t.charCodeAt(el)?(r="*",el++):(r=c,eb(D)),r!==c&&(r={type:"wildcard",value:r}),e=r,em[n]={nextPos:el,result:e},e))===c&&(tu=(d=em[s=32*el+11])?(el=d.nextPos,d.result):(a=el,35===t.charCodeAt(el)?(i="#",el++):(i=c,eb(C)),i===c&&(i=null),i!==c&&(o=eE())!==c?a=i={type:"identifier",value:o}:(el=a,a=c),em[s]={nextPos:el,result:a},a))===c&&(tu=(y=em[g=32*el+12])?(el=y.nextPos,y.result):(l=el,91===t.charCodeAt(el)?(f="[",el++):(f=c,eb(S)),f!==c&&ex()!==c&&(p=(ep=em[ef=32*el+16])?(el=ep.nextPos,ep.result):(h=el,(b=e_())!==c&&ex()!==c&&(v=(eA=em[ev=32*el+14])?(el=eA.nextPos,eA.result):(eg=el,33===t.charCodeAt(el)?(ey="!",el++):(ey=c,eb(A)),ey===c&&(ey=null),ey!==c?(61===t.charCodeAt(el)?(eh="=",el++):(eh=c,eb(k)),eh!==c?eg=ey=T(ey):(el=eg,eg=c)):(el=eg,eg=c),em[ev]={nextPos:el,result:eg},eg))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i=32*el+20,o=em[i];if(o)return el=o.nextPos,o.result;if(e=el,"type("===t.substr(el,5)?(r="type(",el+=5):(r=c,eb(G)),r!==c){if(ex()!==c){if(n=[],H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K)),u!==c)for(;u!==c;)n.push(u),H.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(K));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(X)),a!==c?e=r={type:"type",value:n.join("")}:(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[i]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+22,s=em[o];if(s)return el=s.nextPos,s.result;if(e=el,47===t.charCodeAt(el)?(r="/",el++):(r=c,eb(Q)),r!==c){if(n=[],ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et)),u!==c)for(;u!==c;)n.push(u),ee.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(et));else n=c;n!==c?(47===t.charCodeAt(el)?(u="/",el++):(u=c,eb(Q)),u!==c?((a=function(){var e,r,n=32*el+21,u=em[n];if(u)return el=u.nextPos,u.result;if(e=[],J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Y)),r!==c)for(;r!==c;)e.push(r),J.test(t.charAt(el))?(r=t.charAt(el),el++):(r=c,eb(Y));else e=c;return em[n]={nextPos:el,result:e},e}())===c&&(a=null),a!==c?(i=a,e=r={type:"regexp",value:new RegExp(n.join(""),i?i.join(""):"")}):(el=e,e=c)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;return em[o]={nextPos:el,result:e},e}()),ec!==c?h=b=j(b,v,ec):(el=h,h=c)):(el=h,h=c),h===c&&(h=el,(b=e_())!==c&&ex()!==c&&(v=(eI=em[eP=32*el+13])?(el=eI.nextPos,eI.result):(eS=el,F.test(t.charAt(el))?(ew=t.charAt(el),el++):(ew=c,eb(_)),ew===c&&(ew=null),ew!==c?(61===t.charCodeAt(el)?(eF="=",el++):(eF=c,eb(k)),eF!==c?eS=ew=T(ew):(el=eS,eS=c)):(el=eS,eS=c),eS===c&&(P.test(t.charAt(el))?(eS=t.charAt(el),el++):(eS=c,eb(I))),em[eP]={nextPos:el,result:eS},eS))!==c&&ex()!==c?((ec=function(){var e,r,n,u,a,i,o=32*el+17,s=em[o];if(s)return el=s.nextPos,s.result;if(e=el,34===t.charCodeAt(el)?(r='"',el++):(r=c,eb(O)),r!==c){for(n=[],R.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(L)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),R.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(L)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(34===t.charCodeAt(el)?(u='"',el++):(u=c,eb(O)),u!==c?e=r=z(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c;if(e===c){if(e=el,39===t.charCodeAt(el)?(r="'",el++):(r=c,eb(U)),r!==c){for(n=[],q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(W)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));u!==c;)n.push(u),q.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(W)),u===c&&(u=el,92===t.charCodeAt(el)?(a="\\",el++):(a=c,eb(N)),a!==c?(t.length>el?(i=t.charAt(el),el++):(i=c,eb(M)),i!==c?u=a=$(a,i):(el=u,u=c)):(el=u,u=c));n!==c?(39===t.charCodeAt(el)?(u="'",el++):(u=c,eb(U)),u!==c?e=r=z(n):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}return em[o]={nextPos:el,result:e},e}())===c&&(ec=function(){var e,r,n,u,a,i,o=32*el+18,s=em[o];if(s)return el=s.nextPos,s.result;for(e=el,r=el,n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));if(n!==c?(46===t.charCodeAt(el)?(u=".",el++):(u=c,eb(B)),u!==c?r=n=[n,u]:(el=r,r=c)):(el=r,r=c),r===c&&(r=null),r!==c){if(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z)),u!==c)for(;u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));else n=c;n!==c?(i=n,e=r={type:"literal",value:parseFloat(((a=r)?[].concat.apply([],a).join(""):"")+i.join(""))}):(el=e,e=c)}else el=e,e=c;return em[o]={nextPos:el,result:e},e}())===c&&(ec=(eR=em[eO=32*el+19])?(el=eR.nextPos,eR.result):((ej=eE())!==c&&(ej={type:"literal",value:ej}),eB=ej,em[eO]={nextPos:el,result:eB},eB)),ec!==c?h=b=j(b,v,ec):(el=h,h=c)):(el=h,h=c),h===c&&(h=el,(b=e_())!==c&&(b={type:"attribute",name:b}),h=b)),em[ef]={nextPos:el,result:h},h))!==c&&ex()!==c?(93===t.charCodeAt(el)?(m="]",el++):(m=c,eb(w)),m!==c?l=f=p:(el=l,l=c)):(el=l,l=c),em[g]={nextPos:el,result:l},l))===c&&(tu=function(){var e,r,n,u,a,i,o,s=32*el+23,d=em[s];if(d)return el=d.nextPos,d.result;if(e=el,46===t.charCodeAt(el)?(r=".",el++):(r=c,eb(B)),r!==c){if((n=eE())!==c){for(u=[],a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);a!==c;)u.push(a),a=el,46===t.charCodeAt(el)?(i=".",el++):(i=c,eb(B)),i!==c&&(o=eE())!==c?a=i=[i,o]:(el=a,a=c);u!==c?e=r={type:"field",name:u.reduce(function(e,t){return e+t[0]+t[1]},n)}:(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[s]={nextPos:el,result:e},e}())===c&&(tu=(eU=em[ez=32*el+24])?(el=eU.nextPos,eU.result):(eL=el,":not("===t.substr(el,5)?(eN=":not(",el+=5):(eN=c,eb(er)),eN!==c&&ex()!==c&&(eM=eD())!==c&&ex()!==c?(41===t.charCodeAt(el)?(e$=")",el++):(e$=c,eb(X)),e$!==c?eL=eN={type:"not",selectors:eM}:(el=eL,eL=c)):(el=eL,eL=c),em[ez]={nextPos:el,result:eL},eL))===c&&(tu=(eH=em[eG=32*el+25])?(el=eH.nextPos,eH.result):(eq=el,":matches("===t.substr(el,9)?(eW=":matches(",el+=9):(eW=c,eb(en)),eW!==c&&ex()!==c&&(eV=eD())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eZ=")",el++):(eZ=c,eb(X)),eZ!==c?eq=eW={type:"matches",selectors:eV}:(el=eq,eq=c)):(el=eq,eq=c),em[eG]={nextPos:el,result:eq},eq))===c&&(tu=(e0=em[eQ=32*el+26])?(el=e0.nextPos,e0.result):(eK=el,":has("===t.substr(el,5)?(eX=":has(",el+=5):(eX=c,eb(eu)),eX!==c&&ex()!==c&&(eJ=function(){var e,r,n,u,a,i,o,s,d=32*el+4,l=em[d];if(l)return el=l.nextPos,l.result;if(e=el,(r=eC())!==c){for(n=[],u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eC())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);u!==c;)n.push(u),u=el,(a=ex())!==c?(44===t.charCodeAt(el)?(i=",",el++):(i=c,eb(x)),i!==c&&(o=ex())!==c&&(s=eC())!==c?u=a=[a,i,o,s]:(el=u,u=c)):(el=u,u=c);n!==c?e=r=E(r,n):(el=e,e=c)}else el=e,e=c;return em[d]={nextPos:el,result:e},e}())!==c&&ex()!==c?(41===t.charCodeAt(el)?(eY=")",el++):(eY=c,eb(X)),eY!==c?eK=eX={type:"has",selectors:eJ}:(el=eK,eK=c)):(el=eK,eK=c),em[eQ]={nextPos:el,result:eK},eK))===c&&(tu=(e4=em[e3=32*el+27])?(el=e4.nextPos,e4.result):(":first-child"===t.substr(el,12)?(e2=":first-child",el+=12):(e2=c,eb(ea)),e2!==c&&(e2=ek(1)),e1=e2,em[e3]={nextPos:el,result:e1},e1))===c&&(tu=(e9=em[e6=32*el+28])?(el=e9.nextPos,e9.result):(":last-child"===t.substr(el,11)?(e8=":last-child",el+=11):(e8=c,eb(ei)),e8!==c&&(e8=eT(1)),e5=e8,em[e6]={nextPos:el,result:e5},e5))===c&&(tu=function(){var e,r,n,u,a,i=32*el+29,o=em[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-child("===t.substr(el,11)?(r=":nth-child(",el+=11):(r=c,eb(eo)),r!==c){if(ex()!==c){if(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z)),u!==c)for(;u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(X)),a!==c?e=r=ek(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[i]={nextPos:el,result:e},e}())===c&&(tu=function(){var e,r,n,u,a,i=32*el+30,o=em[i];if(o)return el=o.nextPos,o.result;if(e=el,":nth-last-child("===t.substr(el,16)?(r=":nth-last-child(",el+=16):(r=c,eb(es)),r!==c){if(ex()!==c){if(n=[],V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z)),u!==c)for(;u!==c;)n.push(u),V.test(t.charAt(el))?(u=t.charAt(el),el++):(u=c,eb(Z));else n=c;n!==c&&(u=ex())!==c?(41===t.charCodeAt(el)?(a=")",el++):(a=c,eb(X)),a!==c?e=r=eT(parseInt(n.join(""),10)):(el=e,e=c)):(el=e,e=c)}else el=e,e=c}else el=e,e=c;return em[i]={nextPos:el,result:e},e}())===c&&(tu=(tn=em[tr=32*el+31])?(el=tn.nextPos,tn.result):(e7=el,58===t.charCodeAt(el)?(te=":",el++):(te=c,eb(ed)),te!==c&&(tt=eE())!==c?e7=te={type:"class",name:tt}:(el=e7,e7=c),em[tr]={nextPos:el,result:e7},e7)),em[ta]={nextPos:el,result:tu},tu)}function e_(){var e,r,n,u,a,i,o,s=32*el+15,d=em[s];if(d)return el=d.nextPos,d.result;if(e=el,(r=eE())!==c){for(n=[],u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);u!==c;)n.push(u),u=el,46===t.charCodeAt(el)?(a=".",el++):(a=c,eb(B)),a!==c&&(i=eE())!==c?u=a=[a,i]:(el=u,u=c);n!==c?(o=r,e=r=[].concat.apply([o],n).join("")):(el=e,e=c)}else el=e,e=c;return em[s]={nextPos:el,result:e},e}function ek(e){return{type:"nth-child",index:{type:"literal",value:e}}}function eT(e){return{type:"nth-last-child",index:{type:"literal",value:e}}}if((o=p())!==c&&el===t.length)return o;throw o!==c&&el<t.length&&eb({type:"end"}),s=ep,d=ef<t.length?t.charAt(ef):null,n=ef,u=ef<t.length?ef+1:ef,a=eh(n),i=eh(u),l={start:{offset:n,line:a.line,column:a.column},end:{offset:u,line:i.line,column:i.column}},new e(e.buildMessage(s,d),s,d,l)}}}())});function m6(e,t){for(var r=0;r<t.length&&null!=e;++r)e=e[t[r]];return e}var m9="function"==typeof WeakMap?new WeakMap:null;function m7(e){if(null==e)return function(){return!0};if(null!=m9){var t=m9.get(e);return null!=t||(t=ge(e),m9.set(e,t)),t}return ge(e)}function ge(e){switch(e.type){case"wildcard":return function(){return!0};case"identifier":var t=e.value.toLowerCase();return function(e,r,n){return t===e[n&&n.nodeTypeKey||"type"].toLowerCase()};case"exactNode":return function(e,t){return 0===t.length};case"field":var r=e.name.split(".");return function(e,t){return function e(t,r,n,u){for(var a=r,i=u;i<n.length;++i){if(null==a)return!1;var o=a[n[i]];if(Array.isArray(o)){for(var s=0;s<o.length;++s)if(e(t,o[s],n,i+1))return!0;return!1}a=o}return t===a}(e,t[r.length-1],r,0)};case"matches":var n=e.selectors.map(m7);return function(e,t,r){for(var u=0;u<n.length;++u)if(n[u](e,t,r))return!0;return!1};case"compound":var u=e.selectors.map(m7);return function(e,t,r){for(var n=0;n<u.length;++n)if(!u[n](e,t,r))return!1;return!0};case"not":var a=e.selectors.map(m7);return function(e,t,r){for(var n=0;n<a.length;++n)if(a[n](e,t,r))return!1;return!0};case"has":var i=e.selectors.map(m7);return function(e,t,r){var n=!1,u=[];return m5.traverse(e,{enter:function(e,t){null!=t&&u.unshift(t);for(var a=0;a<i.length;++a)if(i[a](e,u,r))return n=!0,void this.break()},leave:function(){u.shift()},keys:r&&r.visitorKeys,fallback:r&&r.fallback||"iteration"}),n};case"child":var o=m7(e.left),s=m7(e.right);return function(e,t,r){return!!(t.length>0&&s(e,t,r))&&o(t[0],t.slice(1),r)};case"descendant":var d=m7(e.left),l=m7(e.right);return function(e,t,r){if(l(e,t,r)){for(var n=0,u=t.length;n<u;++n)if(d(t[n],t.slice(n+1),r))return!0}return!1};case"attribute":var c=e.name.split(".");switch(e.operator){case void 0:return function(e){return null!=m6(e,c)};case"=":switch(e.value.type){case"regexp":return function(t){var r=m6(t,c);return"string"==typeof r&&e.value.value.test(r)};case"literal":var f="".concat(e.value.value);return function(e){return f==="".concat(m6(e,c))};case"type":return function(t){return e.value.value===m0(m6(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"!=":switch(e.value.type){case"regexp":return function(t){return!e.value.value.test(m6(t,c))};case"literal":var p="".concat(e.value.value);return function(e){return p!=="".concat(m6(e,c))};case"type":return function(t){return e.value.value!==m0(m6(t,c))}}throw Error("Unknown selector value type: ".concat(e.value.type));case"<=":return function(t){return m6(t,c)<=e.value.value};case"<":return function(t){return m6(t,c)<e.value.value};case">":return function(t){return m6(t,c)>e.value.value};case">=":return function(t){return m6(t,c)>=e.value.value}}throw Error("Unknown operator: ".concat(e.operator));case"sibling":var m=m7(e.left),g=m7(e.right);return function(t,r,n){return g(t,r,n)&&gn(t,m,r,"LEFT_SIDE",n)||e.left.subject&&m(t,r,n)&&gn(t,g,r,"RIGHT_SIDE",n)};case"adjacent":var y=m7(e.left),h=m7(e.right);return function(t,r,n){return h(t,r,n)&&gu(t,y,r,"LEFT_SIDE",n)||e.right.subject&&y(t,r,n)&&gu(t,h,r,"RIGHT_SIDE",n)};case"nth-child":var b=e.index.value,v=m7(e.right);return function(e,t,r){return v(e,t,r)&&ga(e,t,b,r)};case"nth-last-child":var x=-e.index.value,E=m7(e.right);return function(e,t,r){return E(e,t,r)&&ga(e,t,x,r)};case"class":var A=e.name.toLowerCase();return function(t,r,n){if(n&&n.matchClass)return n.matchClass(e.name,t,r);if(n&&n.nodeTypeKey)return!1;switch(A){case"statement":if("Statement"===t.type.slice(-9))return!0;case"declaration":return"Declaration"===t.type.slice(-11);case"pattern":if("Pattern"===t.type.slice(-7))return!0;case"expression":return"Expression"===t.type.slice(-10)||"Literal"===t.type.slice(-7)||"Identifier"===t.type&&(0===r.length||"MetaProperty"!==r[0].type)||"MetaProperty"===t.type;case"function":return"FunctionDeclaration"===t.type||"FunctionExpression"===t.type||"ArrowFunctionExpression"===t.type}throw Error("Unknown class name: ".concat(e.name))}}throw Error("Unknown selector type: ".concat(e.type))}function gt(e,t){var r=t&&t.nodeTypeKey||"type",n=e[r];return t&&t.visitorKeys&&t.visitorKeys[n]?t.visitorKeys[n]:m5.VisitorKeys[n]?m5.VisitorKeys[n]:t&&"function"==typeof t.fallback?t.fallback(e):Object.keys(e).filter(function(e){return e!==r})}function gr(e,t){var r=t&&t.nodeTypeKey||"type";return null!==e&&"object"===m0(e)&&"string"==typeof e[r]}function gn(e,t,r,n,u){var a=m1(r,1)[0];if(!a)return!1;for(var i=gt(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;var l=void 0,c=void 0;"LEFT_SIDE"===n?(l=0,c=d):(l=d+1,c=s.length);for(var f=l;f<c;++f)if(gr(s[f],u)&&t(s[f],r,u))return!0}}return!1}function gu(e,t,r,n,u){var a=m1(r,1)[0];if(!a)return!1;for(var i=gt(a,u),o=0;o<i.length;++o){var s=a[i[o]];if(Array.isArray(s)){var d=s.indexOf(e);if(d<0)continue;if("LEFT_SIDE"===n&&d>0&&gr(s[d-1],u)&&t(s[d-1],r,u)||"RIGHT_SIDE"===n&&d<s.length-1&&gr(s[d+1],u)&&t(s[d+1],r,u))return!0}}return!1}function ga(e,t,r,n){if(0===r)return!1;var u=m1(t,1)[0];if(!u)return!1;for(var a=gt(u,n),i=0;i<a.length;++i){var o=u[a[i]];if(Array.isArray(o)){var s=r<0?o.length+r:r-1;if(s>=0&&s<o.length&&o[s]===e)return!0}}return!1}function gi(e,t,r,n){if(t){var u=[],a=m7(t),i=(function e(t,r){if(null==t||"object"!=m0(t))return[];null==r&&(r=t);for(var n=t.subject?[r]:[],u=Object.keys(t),a=0;a<u.length;++a){var i,o=u[a],s=t[o];n.push.apply(n,function(e){if(Array.isArray(e))return m3(e)}(i=e(s,"left"===o?s:r))||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(i)||m2(i)||function(){throw TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())}return n})(t).map(m7);m5.traverse(e,{enter:function(e,t){if(null!=t&&u.unshift(t),a(e,u,n)){if(i.length)for(var o=0,s=i.length;o<s;++o){i[o](e,u,n)&&r(e,t,u);for(var d=0,l=u.length;d<l;++d){var c=u.slice(d+1);i[o](u[d],c,n)&&r(u[d],t,c)}}else r(e,t,u)}},leave:function(){u.shift()},keys:n&&n.visitorKeys,fallback:n&&n.fallback||"iteration"})}}function go(e,t,r){var n=[];return gi(e,t,function(e){n.push(e)},r),n}function gs(e){return m8.parse(e)}function gd(e,t,r){return go(e,gs(t),r)}gd.parse=gs,gd.match=go,gd.traverse=gi,gd.matches=function(e,t,r,n){return!t||!!e&&(r||(r=[]),m7(t)(e,r,n))},gd.query=gd;var gl=/*@__PURE__*/ee(/*#__PURE__*/Object.freeze({__proto__:null,default:gd}));let gc=e=>{let t=mQ(e);if(0===t)return e;let r=RegExp(`^[ \\t]{${t}}`,"gm");return e.replace(r,"")},gf=(e,t=1,r)=>{if(r={indent:" ",includeEmptyLines:!1,...r},"string"!=typeof e)throw TypeError(`Expected \`input\` to be a \`string\`, got \`${typeof e}\``);if("number"!=typeof t)throw TypeError(`Expected \`count\` to be a \`number\`, got \`${typeof t}\``);if("string"!=typeof r.indent)throw TypeError(`Expected \`options.indent\` to be a \`string\`, got \`${typeof r.indent}\``);if(0===t)return e;let n=r.includeEmptyLines?/^/gm:/^(?!\s*$)/gm;return e.replace(n,r.indent.repeat(t))},{replaceTemplateElement:gp}=uo,{isMethodCall:gm,isCallExpression:gg,isTaggedTemplateLiteral:gy}=tL,{isNodeMatches:gh}=nx,gb="template-indent",gv=e=>gm(e.parent,{method:"toMatchInlineSnapshot",argumentsLength:1,optionalCall:!1,optionalMember:!1})&&e.parent.arguments[0]===e&&gg(e.parent.callee.object,{name:"expect",argumentsLength:1,optionalCall:!1,optionalMember:!1}),gx=new Map,gE=e=>(gx.has(e)||gx.set(e,gl.parse(e)),gx.get(e));var gA=/*@__PURE__*/Q({create:e=>{let{sourceCode:t}=e,r={tags:["outdent","dedent","gql","sql","html","styled"],functions:["dedent","stripIndent"],selectors:[],comments:["HTML","indent"],...e.options[0]};r.comments=r.comments.map(e=>e.toLowerCase());let n=e=>{let n;let u="__PLACEHOLDER__"+Math.random(),a=e.quasis.map(e=>t.getText(e).slice(1,e.tail?-1:-2)).join(u),i=a.match(/\r?\n/);if(!i)return;let o=i[0],s=t.lines[e.loc.start.line-1].match(/^(\s*)\S/),d=s?s[1]:"";n="string"==typeof r.indent?r.indent:"number"==typeof r.indent?" ".repeat(r.indent):d.startsWith(" ")?" ":" ";let l=gc(a).replaceAll(RegExp(`^${o}|${o}[ ]*$`,"g"),""),c=o+gf(l,1,{indent:d+n})+o+d;if(c!==a)return{node:e,messageId:gb,fix:t=>c.split(u).map((r,n)=>gp(t,e.quasis[n],r))}},u=e=>{if(r.comments.length>0){let n=t.getTokenBefore(e,{includeComments:!0});if(n?.type==="Block"&&r.comments.includes(n.value.trim().toLowerCase()))return!0}if(gv(e)||r.tags.length>0&&gy(e,r.tags)||r.functions.length>0&&"CallExpression"===e.parent.type&&e.parent.arguments.includes(e)&&gh(e.parent.callee,r.functions))return!0;if(r.selectors.length>0){let n=t.getAncestors(e).reverse();if(r.selectors.some(t=>gl.matches(e,gE(t),n)))return!0}return!1};return{TemplateLiteral(e){if(u(e))return n(e)}}},meta:{type:"suggestion",docs:{description:"Fix whitespace-insensitive template indentation.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{indent:{oneOf:[{type:"string",pattern:/^\s+$/.source},{type:"integer",minimum:1}]},tags:{type:"array",uniqueItems:!0,items:{type:"string"}},functions:{type:"array",uniqueItems:!0,items:{type:"string"}},selectors:{type:"array",uniqueItems:!0,items:{type:"string"}},comments:{type:"array",uniqueItems:!0,items:{type:"string"}}}}],messages:{[gb]:"Templates should be properly indented."}}});let{isMethodCall:gD}=tL,{removeSpacesAfter:gC}=uo,gS="no-await-in-promise-methods/error",gw="no-await-in-promise-methods/suggestion",gF=["all","allSettled","any","race"],g_=e=>gD(e,{object:"Promise",methods:gF,optionalMember:!1,optionalCall:!1,argumentsLength:1})&&"ArrayExpression"===e.arguments[0].type;var gk=/*@__PURE__*/Q({create:e=>({*CallExpression(t){if(g_(t))for(let r of t.arguments[0].elements)r?.type==="AwaitExpression"&&(yield{node:r,messageId:gS,data:{method:t.callee.property.name},suggest:[{messageId:gw,*fix(t){let{sourceCode:n}=e,u=e.sourceCode.getFirstToken(r);yield t.remove(u),yield gC(u,n,t)}}]})}}),meta:{type:"suggestion",docs:{description:"Disallow using `await` in `Promise` method parameters.",recommended:!0},hasSuggestions:!0,messages:{[gS]:"Promise in `Promise.{{method}}()` should not be awaited.",[gw]:"Remove `await`."}}});let{fixSpaceAroundKeyword:gT,addParenthesizesToReturnOrThrowExpression:gP}=uo,{needsSemicolon:gI,isParenthesized:gB,isOnSameLine:gj}=nx,gO="no-negation-in-equality-check/error",gR="no-negation-in-equality-check/suggestion",gL=new Set(["===","!==","==","!="]),gN=e=>"BinaryExpression"===e.type&&gL.has(e.operator),gM=e=>"UnaryExpression"===e.type&&e.prefix&&"!"===e.operator;var g$=/*@__PURE__*/Q({create:e=>({BinaryExpression(t){let{operator:r,left:n}=t;if(!(gN(t)&&gM(n)&&!gM(n.argument)))return;let{sourceCode:u}=e,a=u.getFirstToken(n),i=`${r.startsWith("!")?"=":"!"}${r.slice(1)}`;return{node:a,messageId:gO,suggest:[{messageId:gR,data:{operator:i},*fix(e){yield*gT(e,t,u);let o=u.getTokenAfter(a),{parent:s}=t;"ReturnStatement"!==s.type&&"ThrowStatement"!==s.type||gB(t,u)||gj(u.getFirstToken(s),o)||(yield*gP(e,s,u)),yield e.remove(a),gI(u.getTokenBefore(a),u,o.value)&&(yield e.insertTextAfter(a,";"));let d=u.getTokenAfter(n,e=>"Punctuator"===e.type&&e.value===r);yield e.replaceText(d,i)}}]}}}),meta:{type:"problem",docs:{description:"Disallow negated expression in equality check.",recommended:!0},hasSuggestions:!0,messages:{[gO]:"Negated expression in not allowed in equality check.",[gR]:"Switch to '{{operator}}' check."}}});let{isMethodCall:gz,isMemberExpression:gU}=tL,{removeArgument:gq}=uo,{isSameReference:gW}=nx,gV="no-length-as-slice-end";var gZ=/*@__PURE__*/Q({create:e=>{e.on("CallExpression",t=>{if(!gz(t,{method:"slice",argumentsLength:2,optionalCall:!1}))return;let r=t.arguments[1],n="ChainExpression"===r.type?r.expression:r;if(gU(n,{property:"length",computed:!1})&&gW(t.callee.object,n.object))return{node:n,messageId:gV,fix:t=>gq(t,r,e.sourceCode)}})},meta:{type:"suggestion",docs:{description:"Disallow using `.length` as the `end` argument of `{Array,String,TypedArray}#slice()`.",recommended:!0},fixable:"code",messages:{[gV]:"Passing `….length` as the `end` argument is unnecessary."}}});let{findVariable:gG}=tn,{renameVariable:gH}=uo,{isMethodCall:gK}=tL,gX="catch-error-name",gJ=e=>("FunctionExpression"===e.parent.type||"ArrowFunctionExpression"===e.parent.type)&&e.parent.params[0]===e&&(gK(e.parent.parent,{method:"then",argumentsLength:2,optionalCall:!1,optionalMember:!1})||gK(e.parent.parent,{method:"catch",argumentsLength:1,optionalCall:!1,optionalMember:!1}))&&e.parent.parent.arguments.at(-1)===e.parent;var gY=/*@__PURE__*/Q({create:e=>{let t={name:"error",ignore:[],...e.options[0]},{name:r}=t,n=t.ignore.map(e=>e instanceof RegExp?e:RegExp(e,"u")),u=e=>e===r||n.some(t=>t.test(e))||e.endsWith(r)||e.endsWith(r.charAt(0).toUpperCase()+r.slice(1));return{Identifier(t){if(!("CatchClause"===t.parent.type&&t.parent.param===t)&&!gJ(t))return;let n=t.name;if(u(n)||u(n.replaceAll(/_+$/g,"")))return;let a=gG(e.sourceCode.getScope(t),t);if(!a||"_"===n&&0===a.references.length)return;let i=rc(r,[a.scope,...a.references.map(({from:e})=>e)]),o={node:t,messageId:gX,data:{originalName:n,fixedName:i||r}};return i&&(o.fix=e=>gH(a,i,e)),o}}},meta:{type:"suggestion",docs:{description:"Enforce a specific parameter name in catch clauses.",recommended:!0},fixable:"code",schema:[{type:"object",additionalProperties:!1,properties:{name:{type:"string"},ignore:{type:"array",uniqueItems:!0}}}],messages:{[gX]:"The catch parameter `{{originalName}}` should be named `{{fixedName}}`."}}}),gQ={exports:{}};gQ.exports,function(e,t){var r,n,u,a,i,o,s,d,l=Object.defineProperty,c=Object.getOwnPropertyDescriptor,f=Object.getOwnPropertyNames,p=Object.prototype.hasOwnProperty,m={};((e,t)=>{for(var r in t)l(e,r,{get:t[r],enumerable:!0})})(m,{camelCase:()=>tN,defaultsDeep:()=>t1,kebabCase:()=>t2,lowerFirst:()=>t3,snakeCase:()=>t4,upperFirst:()=>to}),e.exports=((e,t,r,n)=>{if(t&&"object"==typeof t||"function"==typeof t)for(let u of f(t))p.call(e,u)||u===r||l(e,u,{get:()=>t[u],enumerable:!(n=c(t,u))||n.enumerable});return e})(l({},"__esModule",{value:!0}),m);var g="object"==typeof Y&&Y&&Y.Object===Object&&Y,y="object"==typeof self&&self&&self.Object===Object&&self,h=g||y||Function("return this")(),b=h.Symbol,v=Object.prototype,x=v.hasOwnProperty,E=v.toString,A=b?b.toStringTag:void 0,D=function(e){var t=x.call(e,A),r=e[A];try{e[A]=void 0;var n=!0}catch(e){}var u=E.call(e);return n&&(t?e[A]=r:delete e[A]),u},C=Object.prototype.toString,S=b?b.toStringTag:void 0,w=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":S&&S in Object(e)?D(e):C.call(e)},F=function(e){return null!=e&&"object"==typeof e},_=function(e,t){for(var r=-1,n=null==e?0:e.length,u=Array(n);++r<n;)u[r]=t(e[r],r,e);return u},k=Array.isArray,T=1/0,P=b?b.prototype:void 0,I=P?P.toString:void 0,B=function e(t){if("string"==typeof t)return t;if(k(t))return _(t,e)+"";if("symbol"==typeof t||F(t)&&"[object Symbol]"==w(t))return I?I.call(t):"";var r=t+"";return"0"==r&&1/t==-T?"-0":r},j=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)},O=function(e){return e},R=function(e){if(!j(e))return!1;var t=w(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t},L=h["__core-js_shared__"],N=(r=/[^.]+$/.exec(L&&L.keys&&L.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"",M=Function.prototype.toString,$=function(e){if(null!=e){try{return M.call(e)}catch(e){}try{return e+""}catch(e){}}return""},z=/^\[object .+?Constructor\]$/,U=Object.prototype,q=Function.prototype.toString,W=U.hasOwnProperty,V=RegExp("^"+q.call(W).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Z=function(e,t){var r,n=null==e?void 0:e[t];return j(r=n)&&(!N||!(N in r))&&(R(r)?V:z).test($(r))?n:void 0},G=Object.create,H=function(){function e(){}return function(t){if(!j(t))return{};if(G)return G(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),K=function(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)},X=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t},J=Date.now,Q=function(){try{var e=Z(Object,"defineProperty");return e({},"",{}),e}catch(e){}}(),ee=(n=Q?function(e,t){return Q(e,"toString",{configurable:!0,enumerable:!1,value:function(){return t},writable:!0})}:O,u=0,a=0,function(){var e=J(),t=16-(e-a);if(a=e,t>0){if(++u>=800)return arguments[0]}else u=0;return n.apply(void 0,arguments)}),et=/^(?:0|[1-9]\d*)$/,er=function(e,t){var r=typeof e;return!!(t=null==t?9007199254740991:t)&&("number"==r||"symbol"!=r&&et.test(e))&&e>-1&&e%1==0&&e<t},en=function(e,t,r){"__proto__"==t&&Q?Q(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r},eu=function(e,t){return e===t||e!=e&&t!=t},ea=Object.prototype.hasOwnProperty,ei=function(e,t,r){var n=e[t];ea.call(e,t)&&eu(n,r)&&(void 0!==r||t in e)||en(e,t,r)},eo=function(e,t,r,n){var u=!r;r||(r={});for(var a=-1,i=t.length;++a<i;){var o=t[a],s=n?n(r[o],e[o],o,r,e):void 0;void 0===s&&(s=e[o]),u?en(r,o,s):ei(r,o,s)}return r},es=Math.max,ed=function(e,t){var r;return ee((r=es(void 0===(r=t)?e.length-1:r,0),function(){for(var t=arguments,n=-1,u=es(t.length-r,0),a=Array(u);++n<u;)a[n]=t[r+n];n=-1;for(var i=Array(r+1);++n<r;)i[n]=t[n];return i[r]=O(a),K(e,this,i)}),e+"")},el=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991},ec=function(e){return null!=e&&el(e.length)&&!R(e)},ef=function(e,t,r){if(!j(r))return!1;var n=typeof t;return("number"==n?!!(ec(r)&&er(t,r.length)):"string"==n&&t in r)&&eu(r[t],e)},ep=Object.prototype,em=function(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||ep)},eg=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n},ey=function(e){return F(e)&&"[object Arguments]"==w(e)},eh=Object.prototype,eb=eh.hasOwnProperty,ev=eh.propertyIsEnumerable,ex=ey(function(){return arguments}())?ey:function(e){return F(e)&&eb.call(e,"callee")&&!ev.call(e,"callee")},eE=t&&!t.nodeType&&t,eA=eE&&e&&!e.nodeType&&e,eD=eA&&eA.exports===eE?h.Buffer:void 0,eC=(eD?eD.isBuffer:void 0)||function(){return!1},eS={};eS["[object Float32Array]"]=eS["[object Float64Array]"]=eS["[object Int8Array]"]=eS["[object Int16Array]"]=eS["[object Int32Array]"]=eS["[object Uint8Array]"]=eS["[object Uint8ClampedArray]"]=eS["[object Uint16Array]"]=eS["[object Uint32Array]"]=!0,eS["[object Arguments]"]=eS["[object Array]"]=eS["[object ArrayBuffer]"]=eS["[object Boolean]"]=eS["[object DataView]"]=eS["[object Date]"]=eS["[object Error]"]=eS["[object Function]"]=eS["[object Map]"]=eS["[object Number]"]=eS["[object Object]"]=eS["[object RegExp]"]=eS["[object Set]"]=eS["[object String]"]=eS["[object WeakMap]"]=!1;var ew=t&&!t.nodeType&&t,eF=ew&&e&&!e.nodeType&&e,e_=eF&&eF.exports===ew&&g.process,ek=function(){try{var e=eF&&eF.require&&eF.require("util").types;if(e)return e;return e_&&e_.binding&&e_.binding("util")}catch(e){}}(),eT=ek&&ek.isTypedArray,eP=eT?function(e){return eT(e)}:function(e){return F(e)&&el(e.length)&&!!eS[w(e)]},eI=Object.prototype.hasOwnProperty,eB=function(e,t){var r=k(e),n=!r&&ex(e),u=!r&&!n&&eC(e),a=!r&&!n&&!u&&eP(e),i=r||n||u||a,o=i?eg(e.length,String):[],s=o.length;for(var d in e)(t||eI.call(e,d))&&!(i&&("length"==d||u&&("offset"==d||"parent"==d)||a&&("buffer"==d||"byteLength"==d||"byteOffset"==d)||er(d,s)))&&o.push(d);return o},ej=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t},eO=Object.prototype.hasOwnProperty,eR=function(e){if(!j(e))return ej(e);var t=em(e),r=[];for(var n in e)"constructor"==n&&(t||!eO.call(e,n))||r.push(n);return r},eL=function(e){return ec(e)?eB(e,!0):eR(e)},eN=Z(Object,"create"),eM=Object.prototype.hasOwnProperty,e$=Object.prototype.hasOwnProperty;function ez(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}ez.prototype.clear=function(){this.__data__=eN?eN(null):{},this.size=0},ez.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},ez.prototype.get=function(e){var t=this.__data__;if(eN){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return eM.call(t,e)?t[e]:void 0},ez.prototype.has=function(e){var t=this.__data__;return eN?void 0!==t[e]:e$.call(t,e)},ez.prototype.set=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=eN&&void 0===t?"__lodash_hash_undefined__":t,this};var eU=function(e,t){for(var r=e.length;r--;)if(eu(e[r][0],t))return r;return -1},eq=Array.prototype.splice;function eW(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eW.prototype.clear=function(){this.__data__=[],this.size=0},eW.prototype.delete=function(e){var t=this.__data__,r=eU(t,e);return!(r<0)&&(r==t.length-1?t.pop():eq.call(t,r,1),--this.size,!0)},eW.prototype.get=function(e){var t=this.__data__,r=eU(t,e);return r<0?void 0:t[r][1]},eW.prototype.has=function(e){return eU(this.__data__,e)>-1},eW.prototype.set=function(e,t){var r=this.__data__,n=eU(r,e);return n<0?(++this.size,r.push([e,t])):r[n][1]=t,this};var eV=Z(h,"Map"),eZ=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e},eG=function(e,t){var r=e.__data__;return eZ(t)?r["string"==typeof t?"string":"hash"]:r.map};function eH(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}eH.prototype.clear=function(){this.size=0,this.__data__={hash:new ez,map:new(eV||eW),string:new ez}},eH.prototype.delete=function(e){var t=eG(this,e).delete(e);return this.size-=t?1:0,t},eH.prototype.get=function(e){return eG(this,e).get(e)},eH.prototype.has=function(e){return eG(this,e).has(e)},eH.prototype.set=function(e,t){var r=eG(this,e),n=r.size;return r.set(e,t),this.size+=r.size==n?0:1,this};var eK=function(e){return null==e?"":B(e)},eX=(i=Object.getPrototypeOf,o=Object,function(e){return i(o(e))}),eJ=Object.prototype,eY=Function.prototype.toString,eQ=eJ.hasOwnProperty,e0=eY.call(Object),e1=function(e){if(!F(e)||"[object Object]"!=w(e))return!1;var t=eX(e);if(null===t)return!0;var r=eQ.call(t,"constructor")&&t.constructor;return"function"==typeof r&&r instanceof r&&eY.call(r)==e0},e2=function(e,t,r){var n=-1,u=e.length;t<0&&(t=-t>u?0:u+t),(r=r>u?u:r)<0&&(r+=u),u=t>r?0:r-t>>>0,t>>>=0;for(var a=Array(u);++n<u;)a[n]=e[n+t];return a},e3=function(e,t,r){var n=e.length;return r=void 0===r?n:r,!t&&r>=n?e:e2(e,t,r)},e4=RegExp("[\\u200d\ud800-\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]"),e5=function(e){return e4.test(e)},e8="\ud800-\udfff",e6="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",e9="\ud83c[\udffb-\udfff]",e7="[^"+e8+"]",te="(?:\ud83c[\udde6-\uddff]){2}",tt="[\ud800-\udbff][\udc00-\udfff]",tr="(?:"+e6+"|"+e9+")?",tn="[\\ufe0e\\ufe0f]?",tu="(?:\\u200d(?:"+[e7,te,tt].join("|")+")"+tn+tr+")*",ta=RegExp(e9+"(?="+e9+")|(?:"+[e7+e6+"?",e6,te,tt,"["+e8+"]"].join("|")+")"+(tn+tr+tu),"g"),ti=function(e){return function(t){var r,n=e5(t=eK(t))?e5(r=t)?r.match(ta)||[]:r.split(""):void 0,u=n?n[0]:t.charAt(0),a=n?e3(n,1).join(""):t.slice(1);return u[e]()+a}},to=ti("toUpperCase"),ts=function(e,t,r,n){var u=-1,a=null==e?0:e.length;for(n&&a&&(r=e[++u]);++u<a;)r=t(r,e[u],u,e);return r},td=(s={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",Ç:"C",ç:"c",Ð:"D",ð:"d",È:"E",É:"E",Ê:"E",Ë:"E",è:"e",é:"e",ê:"e",ë:"e",Ì:"I",Í:"I",Î:"I",Ï:"I",ì:"i",í:"i",î:"i",ï:"i",Ñ:"N",ñ:"n",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ù:"U",Ú:"U",Û:"U",Ü:"U",ù:"u",ú:"u",û:"u",ü:"u",Ý:"Y",ý:"y",ÿ:"y",Æ:"Ae",æ:"ae",Þ:"Th",þ:"th",ß:"ss",Ā:"A",Ă:"A",Ą:"A",ā:"a",ă:"a",ą:"a",Ć:"C",Ĉ:"C",Ċ:"C",Č:"C",ć:"c",ĉ:"c",ċ:"c",č:"c",Ď:"D",Đ:"D",ď:"d",đ:"d",Ē:"E",Ĕ:"E",Ė:"E",Ę:"E",Ě:"E",ē:"e",ĕ:"e",ė:"e",ę:"e",ě:"e",Ĝ:"G",Ğ:"G",Ġ:"G",Ģ:"G",ĝ:"g",ğ:"g",ġ:"g",ģ:"g",Ĥ:"H",Ħ:"H",ĥ:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Į:"I",İ:"I",ĩ:"i",ī:"i",ĭ:"i",į:"i",ı:"i",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",ĸ:"k",Ĺ:"L",Ļ:"L",Ľ:"L",Ŀ:"L",Ł:"L",ĺ:"l",ļ:"l",ľ:"l",ŀ:"l",ł:"l",Ń:"N",Ņ:"N",Ň:"N",Ŋ:"N",ń:"n",ņ:"n",ň:"n",ŋ:"n",Ō:"O",Ŏ:"O",Ő:"O",ō:"o",ŏ:"o",ő:"o",Ŕ:"R",Ŗ:"R",Ř:"R",ŕ:"r",ŗ:"r",ř:"r",Ś:"S",Ŝ:"S",Ş:"S",Š:"S",ś:"s",ŝ:"s",ş:"s",š:"s",Ţ:"T",Ť:"T",Ŧ:"T",ţ:"t",ť:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Ů:"U",Ű:"U",Ų:"U",ũ:"u",ū:"u",ŭ:"u",ů:"u",ű:"u",ų:"u",Ŵ:"W",ŵ:"w",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Ź:"Z",Ż:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Œ:"Oe",œ:"oe",ʼn:"'n",ſ:"s"},function(e){return null==s?void 0:s[e]}),tl=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,tc=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g"),tf=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,tp=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,tm="\ud800-\udfff",tg="\\u2700-\\u27bf",ty="a-z\\xdf-\\xf6\\xf8-\\xff",th="A-Z\\xc0-\\xd6\\xd8-\\xde",tb="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",tv="['’]",tx="["+tb+"]",tE="["+ty+"]",tA="[^"+tm+tb+"\\d+"+tg+ty+th+"]",tD="(?:\ud83c[\udde6-\uddff]){2}",tC="[\ud800-\udbff][\udc00-\udfff]",tS="["+th+"]",tw="(?:"+tE+"|"+tA+")",tF="(?:"+tS+"|"+tA+")",t_="(?:"+tv+"(?:d|ll|m|re|s|t|ve))?",tk="(?:"+tv+"(?:D|LL|M|RE|S|T|VE))?",tT="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\ud83c[\udffb-\udfff])?",tP="[\\ufe0e\\ufe0f]?",tI="(?:\\u200d(?:"+["[^"+tm+"]",tD,tC].join("|")+")"+tP+tT+")*",tB="(?:"+["["+tg+"]",tD,tC].join("|")+")"+(tP+tT+tI),tj=RegExp([tS+"?"+tE+"+"+t_+"(?="+[tx,tS,"$"].join("|")+")",tF+"+"+tk+"(?="+[tx,tS+tw,"$"].join("|")+")",tS+"?"+tw+"+"+t_,tS+"+"+tk,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])","\\d+",tB].join("|"),"g"),tO=function(e,t,r){if(e=eK(e),void 0===(t=r?void 0:t)){var n;return(n=e,tp.test(n))?e.match(tj)||[]:e.match(tf)||[]}return e.match(t)||[]},tR=RegExp("['’]","g"),tL=function(e){return function(t){var r;return ts(tO(((r=eK(r=t))&&r.replace(tl,td).replace(tc,"")).replace(tR,"")),e,"")}},tN=tL(function(e,t,r){return t=t.toLowerCase(),e+(r?to(eK(t).toLowerCase()):t)});function tM(e){var t=this.__data__=new eW(e);this.size=t.size}tM.prototype.clear=function(){this.__data__=new eW,this.size=0},tM.prototype.delete=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r},tM.prototype.get=function(e){return this.__data__.get(e)},tM.prototype.has=function(e){return this.__data__.has(e)},tM.prototype.set=function(e,t){var r=this.__data__;if(r instanceof eW){var n=r.__data__;if(!eV||n.length<199)return n.push([e,t]),this.size=++r.size,this;r=this.__data__=new eH(n)}return r.set(e,t),this.size=r.size,this};var t$=t&&!t.nodeType&&t,tz=t$&&e&&!e.nodeType&&e,tU=tz&&tz.exports===t$?h.Buffer:void 0,tq=tU?tU.allocUnsafe:void 0,tW=function(e,t){if(t)return e.slice();var r=e.length,n=tq?tq(r):new e.constructor(r);return e.copy(n),n},tV=h.Uint8Array,tZ=function(e){var t=new e.constructor(e.byteLength);return new tV(t).set(new tV(e)),t},tG=function(e,t){var r=t?tZ(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)},tH=function(e,t,r){for(var n=-1,u=Object(e),a=r(e),i=a.length;i--;){var o=a[++n];if(!1===t(u[o],o,u))break}return e},tK=function(e,t,r){(void 0===r||eu(e[t],r))&&(void 0!==r||t in e)||en(e,t,r)},tX=function(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]},tJ=function(e,t,r,n,u,a,i){var o=tX(e,r),s=tX(t,r),d=i.get(s);if(d){tK(e,r,d);return}var l=a?a(o,s,r+"",e,t,i):void 0,c=void 0===l;if(c){var f=k(s),p=!f&&eC(s),m=!f&&!p&&eP(s);(l=s,f||p||m)?k(o)?l=o:F(o)&&ec(o)?l=X(o):p?(c=!1,l=tW(s,!0)):m?(c=!1,l=tG(s,!0)):l=[]:e1(s)||ex(s)?(l=o,ex(o))?l=eo(o,eL(o)):(!j(o)||R(o))&&(l="function"!=typeof s.constructor||em(s)?{}:H(eX(s))):c=!1}c&&(i.set(s,l),u(l,s,n,a,i),i.delete(s)),tK(e,r,l)},tY=function e(t,r,n,u,a){t!==r&&tH(r,function(i,o){if(a||(a=new tM),j(i))tJ(t,r,o,n,e,u,a);else{var s=u?u(tX(t,o),i,o+"",t,r,a):void 0;void 0===s&&(s=i),tK(t,o,s)}},eL)},tQ=function e(t,r,n,u,a,i){return j(t)&&j(r)&&(i.set(r,t),tY(t,r,void 0,e,i),i.delete(r)),t},t0=(d=function(e,t,r,n){tY(e,t,r,n)},ed(function(e,t){var r=-1,n=t.length,u=n>1?t[n-1]:void 0,a=n>2?t[2]:void 0;for(u=d.length>3&&"function"==typeof u?(n--,u):void 0,a&&ef(t[0],t[1],a)&&(u=n<3?void 0:u,n=1),e=Object(e);++r<n;){var i=t[r];i&&d(e,i,r,u)}return e})),t1=ed(function(e){return e.push(void 0,tQ),K(t0,void 0,e)}),t2=tL(function(e,t,r){return e+(r?"-":"")+t.toLowerCase()}),t3=ti("toLowerCase"),t4=tL(function(e,t,r){return e+(r?"_":"")+t.toLowerCase()});/*! Bundled license information:
16
16
 
17
17
  lodash-es/lodash.js:
18
18
  (**
@@ -24,9 +24,9 @@ ${r}}`))}(t,a,o))}}}({discriminant:n,ifStatements:i},r,t)),yield o}}}},meta:{typ
24
24
  * Based on Underscore.js 1.8.3 <http://underscorejs.org/LICENSE>
25
25
  * Copyright Jeremy Ashkenas, DocumentCloud and Investigative Reporters & Editors
26
26
  *)
27
- */}(gJ,gJ.exports);let{upperFirst:gY}=gJ.exports,gQ="invalidExport",g0=/^(?:[A-Z][\da-z]*)*Error$/,g1=e=>gY(e).replace(/(?:error|)$/i,"Error"),g2=e=>`
27
+ */}(gQ,gQ.exports);let{upperFirst:g0}=gQ.exports,g1="invalidExport",g2=/^(?:[A-Z][\da-z]*)*Error$/,g3=e=>g0(e).replace(/(?:error|)$/i,"Error"),g4=e=>`
28
28
  constructor() {
29
29
  super();
30
30
  this.name = '${e}';
31
31
  }
32
- `,g3=e=>{if(!e.superClass)return!1;let{name:t,type:r,property:n}=e.superClass;return"MemberExpression"===r&&({name:t}=n),g0.test(t)},g4=e=>"ExpressionStatement"===e.type&&"CallExpression"===e.expression.type&&"Super"===e.expression.callee.type,g5=(e,t)=>{if("ExpressionStatement"!==e.type||"AssignmentExpression"!==e.expression.type)return!1;let r=e.expression.left;return!!r.object&&"ThisExpression"===r.object.type&&r.property.name===t},g8=(e,t)=>"PropertyDefinition"===e.type&&!e.computed&&"Identifier"===e.key.type&&e.key.name===t;function*g6(e,t){if(!g3(t)||null===t.id)return;let{name:r}=t.id,n=g1(r);r!==n&&(yield{node:t.id,message:`Invalid class name, use \`${n}\`.`});let{body:u,range:a}=t.body,i=u.find(e=>"constructor"===e.kind);if(!i){yield{node:t,message:"Add a constructor to your error.",fix:e=>e.insertTextAfterRange([a[0],a[0]+1],g2(r))};return}let o=i.value.body;if(!o)return;let s=o.body,d=s.find(e=>g4(e)),l=s.findIndex(e=>g5(e,"message"));if(d){if(-1!==l){let e=s[l];yield{node:d,message:"Pass the error message to `super()` instead of setting `this.message`.",*fix(t){if(0===d.expression.arguments.length){let r=e.expression.right;yield t.insertTextAfterRange([d.range[0],d.range[0]+6],r.raw||r.name)}yield t.removeRange([0===l?o.range[0]:s[l-1].range[1],e.range[1]])}}}}else yield{node:o,message:"Missing call to `super()` in constructor."};let c=s.find(e=>g5(e,"name"));if(c)c.expression.right.value!==r&&(yield{node:c?.expression.right??o,message:`The \`name\` property should be set to \`${r}\`.`});else{let e=u.find(e=>g8(e,"name"));e?.value&&e.value.value===r||(yield{node:e?.value??o,message:`The \`name\` property should be set to \`${r}\`.`})}}let g9=(e,t)=>{let r=t.left.property.name,n=t.right;if("ClassExpression"!==n.type||!g3(n)||!n.id)return;let u=n.id.name;if(r!==u)return{node:t.left.property,messageId:gQ,fix:e=>e.replaceText(t.left.property,u)}};var g7=/*@__PURE__*/Y({create:e=>{e.on("ClassDeclaration",t=>g6(e,t)),e.on("AssignmentExpression",t=>{if("ClassExpression"===t.right.type)return g6(e,t.right)}),e.on("AssignmentExpression",t=>{if("MemberExpression"===t.left.type&&"Identifier"===t.left.object.type&&"exports"===t.left.object.name)return g9(e,t)})},meta:{type:"problem",docs:{description:"Enforce correct `Error` subclassing.",recommended:!1},fixable:"code",messages:{[gQ]:"Exported error name should match error class"}}});let{isParenthesized:ye,isNotSemicolonToken:yt}=tr,{needsSemicolon:yr}=nb,{removeSpacesAfter:yn}=ua,yu="no-lonely-if",ya=e=>"IfStatement"===e.type&&!e.alternate,yi=e=>"LogicalExpression"===e.type&&("||"===e.operator||"??"===e.operator)||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type;function yo(e,t){let r={};r.ifToken=t.getFirstToken(e),r.openingParenthesisToken=t.getFirstToken(e,1);let{consequent:n}=e;return r.closingParenthesisToken=t.getTokenBefore(n),"BlockStatement"===n.type&&(r.openingBraceToken=t.getFirstToken(n),r.closingBraceToken=t.getLastToken(n)),r}var ys=/*@__PURE__*/Y({create:e=>({IfStatement(t){var r;if(ya(t)&&("BlockStatement"===t.parent.type&&1===t.parent.body.length&&t.parent.body[0]===t&&ya(t.parent.parent)&&t.parent.parent.consequent===t.parent||ya(t.parent)&&t.parent.consequent===t))return{node:t,messageId:yu,fix:(r=e.sourceCode,function*(e){let n=("BlockStatement"===t.parent.type?t.parent:t).parent,u={...n,...yo(n,r)},a={...t,...yo(t,r)};if(yield e.remove(a.ifToken),yield yn(a.ifToken,r,e),u.openingBraceToken){yield e.remove(u.openingBraceToken),yield yn(u.openingBraceToken,r,e),yield e.remove(u.closingBraceToken);let t=r.getTokenBefore(u.closingBraceToken,{includeComments:!0});yield yn(t,r,e)}for(let{test:t,openingParenthesisToken:n,closingParenthesisToken:i}of(yield e.insertTextBefore(u.openingParenthesisToken,"("),yield e.insertTextAfter(a.closingParenthesisToken,`)${"EmptyStatement"===a.consequent.type?"":" "}`),yield e.insertTextAfter(u.closingParenthesisToken," && "),[u,a]))(ye(t,r)||!yi(t))&&(yield e.remove(n),yield e.remove(i)),yield yn(i,r,e);if("BlockStatement"!==a.consequent.type){let t=r.getLastToken(a.consequent);if(yt(t)){let n=r.getTokenAfter(u);n&&yr(t,r,n.value)&&(yield e.insertTextBefore(n,";"))}}})}}}),meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `if` blocks without `else`.",recommended:!0},fixable:"code",messages:{[yu]:"Unexpected `if` as the only statement in a `if` block without `else`."}}});let{isMethodCall:yd,isNumberLiteral:yl}=tO,{getCallExpressionTokens:yc}=nb,yf="no-magic-array-flat-depth";var yp=/*@__PURE__*/Y({create:e=>({CallExpression(t){if(!yd(t,{method:"flat",argumentsLength:1,optionalCall:!1}))return;let[r]=t.arguments;if(!yl(r)||1===r.value)return;let{sourceCode:n}=e,{openingParenthesisToken:u,closingParenthesisToken:a}=yc(n,t);if(!n.commentsExistBetween(u,a))return{node:r,messageId:yf}}}),meta:{type:"suggestion",docs:{description:"Disallow a magic number as the `depth` argument in `Array#flat(…).`",recommended:!0},messages:{[yf]:"Magic number as depth is not allowed."}}});let{removeParentheses:ym,fixSpaceAroundKeyword:yg,addParenthesizesToReturnOrThrowExpression:yy}=ua,{getParenthesizedRange:yh,isParenthesized:yb}=tp,yv="no-negated-condition";var yx=/*@__PURE__*/Y({create:e=>{e.on(["IfStatement","ConditionalExpression"],t=>{if("IfStatement"===t.type&&(!t.alternate||"IfStatement"===t.alternate.type))return;let{test:r}=t;if(!(("UnaryExpression"!==r.type||"!"!==r.operator)&&("BinaryExpression"!==r.type||"!="!==r.operator&&"!=="!==r.operator)))return{node:r,messageId:yv,*fix(n){let{sourceCode:u}=e;if(yield*function*(e,t,r){let{test:n}=t;if("UnaryExpression"===n.type){let u=r.getFirstToken(n);"IfStatement"===t.type&&(yield*ym(n.argument,e,r)),yield e.remove(u);return}let u=r.getTokenAfter(n.left,e=>"Punctuator"===e.type&&e.value===n.operator);yield e.replaceText(u,"="+u.value.slice(1))}(n,t,u),yield*function*(e,t,r){let n="IfStatement"===t.type,[u,a]=[t.consequent,t.alternate].map(e=>{let t=yh(e,r),u=r.text.slice(...t);return n&&"BlockStatement"!==e.type&&(u=`{${u}}`),{range:t,text:u}});u.text!==a.text&&(yield e.replaceTextRange(u.range,a.text),yield e.replaceTextRange(a.range,u.text))}(n,t,u),"ConditionalExpression"!==t.type||"UnaryExpression"!==r.type)return;yield*yg(n,t,u);let{parent:a}=t,[i,o]=u.getFirstTokens(r,2);if(("ReturnStatement"===a.type||"ThrowStatement"===a.type)&&a.argument===t&&!rK(i,o)&&!yb(t,u)&&!yb(r,u)){yield*yy(n,a,u);return}r3(u.getTokenBefore(t),u,o.value)&&(yield n.insertTextBefore(t,";"))}}})},meta:{type:"suggestion",docs:{description:"Disallow negated conditions.",recommended:!0},fixable:"code",messages:{[yv]:"Unexpected negated condition."}}});let{isFunction:yE}=tO,yA="identifier",yD="non-identifier";var yC=/*@__PURE__*/Y({create:()=>({AssignmentPattern(e){if(!("ObjectExpression"===e.right.type&&e.right.properties.length>0&&yE(e.parent)&&e.parent.params.includes(e)))return;let{left:t,right:r}=e;return"Identifier"===t.type?{node:t,messageId:yA,data:{parameter:t.name}}:{node:r,messageId:yD}}}),meta:{type:"problem",docs:{description:"Disallow the use of objects as default parameters.",recommended:!0},messages:{[yA]:"Do not use an object literal as default for parameter `{{parameter}}`.",[yD]:"Do not use an object literal as default."}}});let{getParenthesizedRange:yS}=tp,{isNumberLiteral:yw}=tO,yF=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,y_=e=>yw(e)&&e.value>0,{getNegativeIndexLengthNode:yk,removeLengthNode:yT}={getNegativeIndexLengthNode:function e(t,r){if(!t)return;let{type:n,operator:u,left:a,right:i}=t;return"BinaryExpression"===n&&"-"===u&&y_(i)?yF(a)&&rY(a.object,r)?a:e(a,r):void 0},removeLengthNode:function(e,t,r){let[n,u]=yS(e,r);return t.removeRange([n,u+r.text.slice(u).match(/\S|$/).index])}},{isLiteral:yP}=tO,yI="prefer-negative-index",yB=new Map([["slice",{argumentsIndexes:[0,1],supportObjects:new Set(["Array","String","ArrayBuffer",...ct])}],["subarray",{argumentsIndexes:[0,1],supportObjects:new Set(ct)}],["splice",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["toSpliced",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["at",{argumentsIndexes:[0],supportObjects:new Set(["Array","String",...ct])}],["with",{argumentsIndexes:[0],supportObjects:new Set(["Array",...ct])}]]),yj=e=>{let{type:t,property:r}=e;if("MemberExpression"===t&&"Identifier"===r.type)return r.name};var yO=/*@__PURE__*/Y({create:e=>({CallExpression(t){if("MemberExpression"!==t.callee.type)return;let r=function(e){let{callee:t,arguments:r}=e,n=t.property.name,u=t.object,a=r;if(yB.has(n))return{method:n,target:u,argumentsNodes:a};if("call"!==n&&"apply"!==n)return;let i="apply"===n;if(n=yj(t.object),!yB.has(n))return;let{supportObjects:o}=yB.get(n),s=t.object.object;if("ArrayExpression"===s.type&&0===s.elements.length||"slice"===n&&yP(s,"")||"prototype"===yj(s)&&"Identifier"===s.object.type&&o.has(s.object.name)){if([u]=r,i){let[,e]=r;if(!e||"ArrayExpression"!==e.type)return;a=e.elements}else a=r.slice(1);return{method:n,target:u,argumentsNodes:a}}}(t);if(!r)return;let{method:n,target:u,argumentsNodes:a}=r,{argumentsIndexes:i}=yB.get(n),o=i.map(e=>yk(a[e],u)).filter(Boolean);if(0!==o.length)return{node:t,messageId:yI,data:{method:n},*fix(t){let{sourceCode:r}=e;for(let e of o)yield yT(e,t,r)}}}}),meta:{type:"suggestion",docs:{description:"Prefer negative index over `.length - index` when possible.",recommended:!0},fixable:"code",messages:{[yI]:"Prefer negative index over length minus index for `{{method}}`."}}});let yR=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),yL=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),yN=Symbol("rule-id-no-match");function yM(e){let t=e;for(;!u.isFunction(t)&&t.type!==n.Program;){if(t.parent.type===n.TryStatement&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}var y$={rules:{"array/no-unneeded-flat-map":E,"browser/prefer-location-assign":D,"jsx/no-template-literal":S,"jsx/no-unneeded-nested":w,"string/no-locale-case":_,"string/no-simple-template-literal":T,"type/no-instanceof-wrapper":I,"unicode/no-bidi":M,"unicode/no-invisible":z,"ban-eslint-disable":r({name:"ban-eslint-disable",meta:{type:"problem",docs:{description:"Ban `eslint-disable` comment directive"},schema:[{oneOf:[{type:"boolean"},{type:"string",enum:["allow-with-description"]}]}],messages:{"do-not-use":"Do not use `{{directive}}`","require-description":"Include a description after the `{{directive}}` directive to explain why the `{{directive}}` is necessary.","require-specific-rule":"Enforce specifying rules to disable in `eslint-disable` comments. If you want to disable ESLint on a file altogether, you should ignore it through ESLint configuration."}},create:(e,t="allow-with-description")=>!1===t?{}:{Program(r){if(r.comments&&0!==r.comments.length)for(let n of r.comments){let r=function(e){let t=yR.exec(e);return t?.groups?.directive}(n.value);if(r&&!("allow-with-description"===t&&n.value.includes("--"))){let u="allow-with-description"===t?"require-description":"do-not-use";e.report({node:n,data:{directive:r},messageId:u})}let u=function(e){let t=yL.exec(e.trim());return t?t.groups?.ruleId:yN}(n.value);u===yN||u||e.report({node:n,messageId:"require-specific-rule"})}}}}),"no-redundant-variable":U,"no-single-return":W,"prefer-early-return":Z,"prefer-fetch":G,"prefer-timer-id":X,"import-dedupe":r({name:"import-dedupe",meta:{type:"problem",docs:{description:"Fix duplication in imports"},fixable:"code",schema:[],messages:{"import-dedupe":"Expect no duplication in imports"}},create:e=>({ImportDeclaration(t){if(t.specifiers.length<=1)return;let r=new Set;t.specifiers.forEach(n=>{let u=n.local.name;r.has(u)&&e.report({node:t,loc:{start:n.loc.end,end:n.loc.start},messageId:"import-dedupe",fix(t){let r=n.range[0],u=n.range[1];return","===e.sourceCode.text[u]&&(u+=1),t.removeRange([r,u])}}),r.add(u)})}})}),"no-return-await":r({name:"no-return-await",meta:{type:"suggestion",hasSuggestions:!0,docs:{description:"Disallows unnecessary `return await`"},fixable:void 0,deprecated:!1,schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create:e=>({AwaitExpression(t){(function e(t){return t.parent?.type===n.ArrowFunctionExpression||(t.parent?.type===n.ReturnStatement?!yM(t.parent):(t.parent?.type===n.ConditionalExpression&&(t===t.parent.consequent||t===t.parent.alternate)||t.parent?.type===n.LogicalExpression&&t===t.parent.right||t.parent?.type===n.SequenceExpression&&t===t.parent.expressions.at(-1))&&e(t.parent))})(t)&&!yM(t)&&e.report({node:e.sourceCode.getFirstToken(t),loc:t.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(r){let n=e.sourceCode,[u,a]=n.getFirstTokens(t,2);if(u.loc.start.line!==a.loc.start.line)return null;let[i,o]=u.range,s=n.text[o];return r.removeRange([i,o+(" "===s?1:0)])}}]})}})}),...Object.fromEntries(Object.entries({"unicorn/better-regex":lc,"unicorn/catch-error-name":gX,"unicorn/custom-error-definition":g7,"unicorn/no-nested-ternary":ti,"unicorn/prefer-event-target":n_,"unicorn/prefer-keyboard-event-key":n$,"unicorn/prefer-text-content":nW,"unicorn/require-array-join-separator":ul,"unicorn/no-thenable":ux,"unicorn/no-invalid-remove-event-listener":uC,"unicorn/consistent-function-scoping":uL,"unicorn/no-new-buffer":ae,"unicorn/no-console-spaces":ai,"unicorn/no-empty-file":ap,"unicorn/no-useless-fallback-in-spread":ab,"unicorn/no-useless-length-check":aS,"unicorn/no-useless-promise-resolve-reject":ak,"unicorn/no-zero-fractions":aR,"unicorn/prefer-export-from":aX,"unicorn/prefer-native-coercion-functions":a8,"unicorn/no-document-cookie":ia,"unicorn/prefer-add-event-listener":ix,"unicorn/prefer-array-index-of":iB,"unicorn/prefer-blob-reading-methods":iR,"unicorn/prefer-date-now":iZ,"unicorn/prefer-dom-node-dataset":i2,"unicorn/prefer-modern-math-apis":od,"unicorn/number-literal-case":oC,"unicorn/prefer-number-properties":oI,"unicorn/prefer-reflect-apply":oz,"unicorn/prefer-set-size":oH,"unicorn/prefer-string-replace-all":o5,"unicorn/prefer-string-slice":su,"unicorn/prefer-string-trim-start-end":so,"unicorn/no-unreadable-iife":sf,"unicorn/throw-new-error":sy,"unicorn/escape-case":lx,"unicorn/no-hex-escape":lF,"unicorn/prefer-prototype-methods":lj,"unicorn/error-message":lz,"unicorn/no-instanceof-array":lH,"unicorn/prefer-type-error":l4,"unicorn/consistent-destructuring":ce,"unicorn/new-for-builtins":co,"unicorn/no-array-push-push":cb,"unicorn/no-process-exit":cC,"unicorn/no-static-only-class":cX,"unicorn/no-unreadable-array-destructuring":c1,"unicorn/no-useless-spread":fd,"unicorn/no-useless-switch-case":fy,"unicorn/no-useless-undefined":fF,"unicorn/numeric-separators-style":fB,"unicorn/prefer-array-find":pr,"unicorn/prefer-array-flat-map":ps,"unicorn/prefer-array-flat":pF,"unicorn/prefer-array-some":pq,"unicorn/prefer-code-point":pZ,"unicorn/prefer-default-parameters":p4,"unicorn/prefer-logical-operator-over-ternary":mr,"unicorn/prefer-optional-catch-binding":mo,"unicorn/prefer-regexp-test":mA,"unicorn/prefer-set-has":mB,"unicorn/prefer-string-raw":mN,"unicorn/prefer-switch":mZ,"unicorn/require-number-to-fixed-digits-argument":mX,"unicorn/template-indent":gx,"unicorn/no-single-promise-in-promise-methods":c$,"unicorn/no-await-in-promise-methods":gF,"unicorn/no-negation-in-equality-check":gN,"unicorn/no-length-as-slice-end":gW,"unicorn/no-lonely-if":ys,"unicorn/no-magic-array-flat-depth":yp,"unicorn/no-negated-condition":yx,"unicorn/no-object-as-default-parameter":yC,"unicorn/prefer-negative-index":yO}).map(([e,t])=>{var r;return[e,{...t,meta:{schema:[],...t.meta,docs:{description:"",...t.meta.docs,url:er(e)}},create:(r=t.create,e=>{let t={},n=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,u]of Object.entries(r(new Proxy(e,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(`${r}:exit`,t)}:Reflect.get(e,t,r)}),void 0)??{}))n(t,u);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let n of r)!function(e,t){if(e){for(let r of(yz(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=yW(r.fix)),yz(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=yW(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(n(...t),e)}]))})}]}))}};let yz=e=>!!e&&Symbol.iterator in e;class yU extends Error{constructor(e,t){super(e,t),this.name="FixAbortError"}}let yq={abort(){throw new yU("Fix aborted.")}};function yW(e){return t=>{let r=e(t,yq);if(yz(r))try{return[...r]}catch(e){if(e instanceof yU)return;throw e}return r}}export{y$ as default};
32
+ `,g5=e=>{if(!e.superClass)return!1;let{name:t,type:r,property:n}=e.superClass;return"MemberExpression"===r&&({name:t}=n),g2.test(t)},g8=e=>"ExpressionStatement"===e.type&&"CallExpression"===e.expression.type&&"Super"===e.expression.callee.type,g6=(e,t)=>{if("ExpressionStatement"!==e.type||"AssignmentExpression"!==e.expression.type)return!1;let r=e.expression.left;return!!r.object&&"ThisExpression"===r.object.type&&r.property.name===t},g9=(e,t)=>"PropertyDefinition"===e.type&&!e.computed&&"Identifier"===e.key.type&&e.key.name===t;function*g7(e,t){if(!g5(t)||null===t.id)return;let{name:r}=t.id,n=g3(r);r!==n&&(yield{node:t.id,message:`Invalid class name, use \`${n}\`.`});let{body:u,range:a}=t.body,i=u.find(e=>"constructor"===e.kind);if(!i){yield{node:t,message:"Add a constructor to your error.",fix:e=>e.insertTextAfterRange([a[0],a[0]+1],g4(r))};return}let o=i.value.body;if(!o)return;let s=o.body,d=s.find(e=>g8(e)),l=s.findIndex(e=>g6(e,"message"));if(d){if(-1!==l){let e=s[l];yield{node:d,message:"Pass the error message to `super()` instead of setting `this.message`.",*fix(t){if(0===d.expression.arguments.length){let r=e.expression.right;yield t.insertTextAfterRange([d.range[0],d.range[0]+6],r.raw||r.name)}yield t.removeRange([0===l?o.range[0]:s[l-1].range[1],e.range[1]])}}}}else yield{node:o,message:"Missing call to `super()` in constructor."};let c=s.find(e=>g6(e,"name"));if(c)c.expression.right.value!==r&&(yield{node:c?.expression.right??o,message:`The \`name\` property should be set to \`${r}\`.`});else{let e=u.find(e=>g9(e,"name"));e?.value&&e.value.value===r||(yield{node:e?.value??o,message:`The \`name\` property should be set to \`${r}\`.`})}}let ye=(e,t)=>{let r=t.left.property.name,n=t.right;if("ClassExpression"!==n.type||!g5(n)||!n.id)return;let u=n.id.name;if(r!==u)return{node:t.left.property,messageId:g1,fix:e=>e.replaceText(t.left.property,u)}};var yt=/*@__PURE__*/Q({create:e=>{e.on("ClassDeclaration",t=>g7(e,t)),e.on("AssignmentExpression",t=>{if("ClassExpression"===t.right.type)return g7(e,t.right)}),e.on("AssignmentExpression",t=>{if("MemberExpression"===t.left.type&&"Identifier"===t.left.object.type&&"exports"===t.left.object.name)return ye(e,t)})},meta:{type:"problem",docs:{description:"Enforce correct `Error` subclassing.",recommended:!1},fixable:"code",messages:{[g1]:"Exported error name should match error class"}}});let{isParenthesized:yr,isNotSemicolonToken:yn}=tn,{needsSemicolon:yu}=nx,{removeSpacesAfter:ya}=uo,yi="no-lonely-if",yo=e=>"IfStatement"===e.type&&!e.alternate,ys=e=>"LogicalExpression"===e.type&&("||"===e.operator||"??"===e.operator)||"ConditionalExpression"===e.type||"AssignmentExpression"===e.type||"YieldExpression"===e.type||"SequenceExpression"===e.type;function yd(e,t){let r={};r.ifToken=t.getFirstToken(e),r.openingParenthesisToken=t.getFirstToken(e,1);let{consequent:n}=e;return r.closingParenthesisToken=t.getTokenBefore(n),"BlockStatement"===n.type&&(r.openingBraceToken=t.getFirstToken(n),r.closingBraceToken=t.getLastToken(n)),r}var yl=/*@__PURE__*/Q({create:e=>({IfStatement(t){var r;if(yo(t)&&("BlockStatement"===t.parent.type&&1===t.parent.body.length&&t.parent.body[0]===t&&yo(t.parent.parent)&&t.parent.parent.consequent===t.parent||yo(t.parent)&&t.parent.consequent===t))return{node:t,messageId:yi,fix:(r=e.sourceCode,function*(e){let n=("BlockStatement"===t.parent.type?t.parent:t).parent,u={...n,...yd(n,r)},a={...t,...yd(t,r)};if(yield e.remove(a.ifToken),yield ya(a.ifToken,r,e),u.openingBraceToken){yield e.remove(u.openingBraceToken),yield ya(u.openingBraceToken,r,e),yield e.remove(u.closingBraceToken);let t=r.getTokenBefore(u.closingBraceToken,{includeComments:!0});yield ya(t,r,e)}for(let{test:t,openingParenthesisToken:n,closingParenthesisToken:i}of(yield e.insertTextBefore(u.openingParenthesisToken,"("),yield e.insertTextAfter(a.closingParenthesisToken,`)${"EmptyStatement"===a.consequent.type?"":" "}`),yield e.insertTextAfter(u.closingParenthesisToken," && "),[u,a]))(yr(t,r)||!ys(t))&&(yield e.remove(n),yield e.remove(i)),yield ya(i,r,e);if("BlockStatement"!==a.consequent.type){let t=r.getLastToken(a.consequent);if(yn(t)){let n=r.getTokenAfter(u);n&&yu(t,r,n.value)&&(yield e.insertTextBefore(n,";"))}}})}}}),meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `if` blocks without `else`.",recommended:!0},fixable:"code",messages:{[yi]:"Unexpected `if` as the only statement in a `if` block without `else`."}}});let{isMethodCall:yc,isNumberLiteral:yf}=tL,{getCallExpressionTokens:yp}=nx,ym="no-magic-array-flat-depth";var yg=/*@__PURE__*/Q({create:e=>({CallExpression(t){if(!yc(t,{method:"flat",argumentsLength:1,optionalCall:!1}))return;let[r]=t.arguments;if(!yf(r)||1===r.value)return;let{sourceCode:n}=e,{openingParenthesisToken:u,closingParenthesisToken:a}=yp(n,t);if(!n.commentsExistBetween(u,a))return{node:r,messageId:ym}}}),meta:{type:"suggestion",docs:{description:"Disallow a magic number as the `depth` argument in `Array#flat(…).`",recommended:!0},messages:{[ym]:"Magic number as depth is not allowed."}}});let{removeParentheses:yy,fixSpaceAroundKeyword:yh,addParenthesizesToReturnOrThrowExpression:yb}=uo,{getParenthesizedRange:yv,isParenthesized:yx}=tm,yE="no-negated-condition";var yA=/*@__PURE__*/Q({create:e=>{e.on(["IfStatement","ConditionalExpression"],t=>{if("IfStatement"===t.type&&(!t.alternate||"IfStatement"===t.alternate.type))return;let{test:r}=t;if(!(("UnaryExpression"!==r.type||"!"!==r.operator)&&("BinaryExpression"!==r.type||"!="!==r.operator&&"!=="!==r.operator)))return{node:r,messageId:yE,*fix(n){let{sourceCode:u}=e;if(yield*function*(e,t,r){let{test:n}=t;if("UnaryExpression"===n.type){let u=r.getFirstToken(n);"IfStatement"===t.type&&(yield*yy(n.argument,e,r)),yield e.remove(u);return}let u=r.getTokenAfter(n.left,e=>"Punctuator"===e.type&&e.value===n.operator);yield e.replaceText(u,"="+u.value.slice(1))}(n,t,u),yield*function*(e,t,r){let n="IfStatement"===t.type,[u,a]=[t.consequent,t.alternate].map(e=>{let t=yv(e,r),u=r.text.slice(...t);return n&&"BlockStatement"!==e.type&&(u=`{${u}}`),{range:t,text:u}});u.text!==a.text&&(yield e.replaceTextRange(u.range,a.text),yield e.replaceTextRange(a.range,u.text))}(n,t,u),"ConditionalExpression"!==t.type||"UnaryExpression"!==r.type)return;yield*yh(n,t,u);let{parent:a}=t,[i,o]=u.getFirstTokens(r,2);if(("ReturnStatement"===a.type||"ThrowStatement"===a.type)&&a.argument===t&&!rJ(i,o)&&!yx(t,u)&&!yx(r,u)){yield*yb(n,a,u);return}r5(u.getTokenBefore(t),u,o.value)&&(yield n.insertTextBefore(t,";"))}}})},meta:{type:"suggestion",docs:{description:"Disallow negated conditions.",recommended:!0},fixable:"code",messages:{[yE]:"Unexpected negated condition."}}});let{isFunction:yD}=tL,yC="identifier",yS="non-identifier";var yw=/*@__PURE__*/Q({create:()=>({AssignmentPattern(e){if(!("ObjectExpression"===e.right.type&&e.right.properties.length>0&&yD(e.parent)&&e.parent.params.includes(e)))return;let{left:t,right:r}=e;return"Identifier"===t.type?{node:t,messageId:yC,data:{parameter:t.name}}:{node:r,messageId:yS}}}),meta:{type:"problem",docs:{description:"Disallow the use of objects as default parameters.",recommended:!0},messages:{[yC]:"Do not use an object literal as default for parameter `{{parameter}}`.",[yS]:"Do not use an object literal as default."}}});let{getParenthesizedRange:yF}=tm,{isNumberLiteral:y_}=tL,yk=e=>"MemberExpression"===e.type&&!e.computed&&!e.optional&&"Identifier"===e.property.type&&"length"===e.property.name,yT=e=>y_(e)&&e.value>0,{getNegativeIndexLengthNode:yP,removeLengthNode:yI}={getNegativeIndexLengthNode:function e(t,r){if(!t)return;let{type:n,operator:u,left:a,right:i}=t;return"BinaryExpression"===n&&"-"===u&&yT(i)?yk(a)&&r0(a.object,r)?a:e(a,r):void 0},removeLengthNode:function(e,t,r){let[n,u]=yF(e,r);return t.removeRange([n,u+r.text.slice(u).match(/\S|$/).index])}},{isLiteral:yB}=tL,yj="prefer-negative-index",yO=new Map([["slice",{argumentsIndexes:[0,1],supportObjects:new Set(["Array","String","ArrayBuffer",...cn])}],["subarray",{argumentsIndexes:[0,1],supportObjects:new Set(cn)}],["splice",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["toSpliced",{argumentsIndexes:[0],supportObjects:new Set(["Array"])}],["at",{argumentsIndexes:[0],supportObjects:new Set(["Array","String",...cn])}],["with",{argumentsIndexes:[0],supportObjects:new Set(["Array",...cn])}]]),yR=e=>{let{type:t,property:r}=e;if("MemberExpression"===t&&"Identifier"===r.type)return r.name};var yL=/*@__PURE__*/Q({create:e=>({CallExpression(t){if("MemberExpression"!==t.callee.type)return;let r=function(e){let{callee:t,arguments:r}=e,n=t.property.name,u=t.object,a=r;if(yO.has(n))return{method:n,target:u,argumentsNodes:a};if("call"!==n&&"apply"!==n)return;let i="apply"===n;if(n=yR(t.object),!yO.has(n))return;let{supportObjects:o}=yO.get(n),s=t.object.object;if("ArrayExpression"===s.type&&0===s.elements.length||"slice"===n&&yB(s,"")||"prototype"===yR(s)&&"Identifier"===s.object.type&&o.has(s.object.name)){if([u]=r,i){let[,e]=r;if(!e||"ArrayExpression"!==e.type)return;a=e.elements}else a=r.slice(1);return{method:n,target:u,argumentsNodes:a}}}(t);if(!r)return;let{method:n,target:u,argumentsNodes:a}=r,{argumentsIndexes:i}=yO.get(n),o=i.map(e=>yP(a[e],u)).filter(Boolean);if(0!==o.length)return{node:t,messageId:yj,data:{method:n},*fix(t){let{sourceCode:r}=e;for(let e of o)yield yI(e,t,r)}}}}),meta:{type:"suggestion",docs:{description:"Prefer negative index over `.length - index` when possible.",recommended:!0},fixable:"code",messages:{[yj]:"Prefer negative index over length minus index for `{{method}}`."}}});let{builtinModules:yN}=/*@__PURE__*/ee(r),yM=["sys"],y$=new Set((yN||(process.binding?Object.keys(process.binding("natives")):[])||[]).filter(e=>!/^_|^(internal|v8|node-inspect)\/|\//.test(e)&&!yM.includes(e)).sort()),yz="node:",yU=e=>{if("string"!=typeof e)throw TypeError("Expected a string");e.startsWith(yz)&&(e=e.slice(yz.length));let t=e.indexOf("/");return -1!==t&&t!==e.length-1&&(e=e.slice(0,t)),y$.has(e)},{replaceStringLiteral:yq}=uo,yW="prefer-node-protocol";var yV=/*@__PURE__*/Q({create:()=>({Literal(e){if(!(("ImportDeclaration"===e.parent.type||"ExportNamedDeclaration"===e.parent.type||"ImportExpression"===e.parent.type)&&e.parent.source===e||tC(e.parent)&&e.parent.arguments[0]===e))return;let{value:t}=e;if(!("string"!=typeof t||t.startsWith("node:")||/^bun(?::|$)/.test(t))&&yU(t))return{node:e,messageId:yW,data:{moduleName:t},fix:t=>yq(t,e,"node:",0,0)}}}),meta:{type:"suggestion",docs:{description:"Prefer using the `node:` protocol when importing Node.js builtin modules.",recommended:!0},fixable:"code",messages:{[yW]:"Prefer `node:{{moduleName}}` over `{{moduleName}}`."}}});let yZ=RegExp("^\\s*(?<directive>eslint-disable(?:-(?:next-)?line)?)"),yG=RegExp("^eslint-disable(?:-next-line|-line)?(?<ruleId>$|(?:\\s+(?:@(?:[\\w-]+\\/){1,2})?[\\w-]+)?)"),yH=Symbol("rule-id-no-match");function yK(e){let t=e;for(;!a.isFunction(t)&&t.type!==u.Program;){if(t.parent.type===u.TryStatement&&(t===t.parent.block||t===t.parent.handler&&t.parent.finalizer))return!0;t=t.parent}return!1}var yX={rules:{"array/no-unneeded-flat-map":A,"browser/prefer-location-assign":C,"jsx/no-template-literal":w,"jsx/no-unneeded-nested":F,"string/no-locale-case":k,"string/no-simple-template-literal":P,"type/no-instanceof-wrapper":B,"unicode/no-bidi":$,"unicode/no-invisible":U,"ban-eslint-disable":n({name:"ban-eslint-disable",meta:{type:"problem",docs:{description:"Ban `eslint-disable` comment directive"},schema:[{oneOf:[{type:"boolean"},{type:"string",enum:["allow-with-description"]}]}],messages:{"do-not-use":"Do not use `{{directive}}`","require-description":"Include a description after the `{{directive}}` directive to explain why the `{{directive}}` is necessary.","require-specific-rule":"Enforce specifying rules to disable in `eslint-disable` comments. If you want to disable ESLint on a file altogether, you should ignore it through ESLint configuration."}},create:(e,t="allow-with-description")=>!1===t?{}:{Program(r){if(r.comments&&0!==r.comments.length)for(let n of r.comments){let r=function(e){let t=yZ.exec(e);return t?.groups?.directive}(n.value);if(r&&!("allow-with-description"===t&&n.value.includes("--"))){let u="allow-with-description"===t?"require-description":"do-not-use";e.report({node:n,data:{directive:r},messageId:u})}let u=function(e){let t=yG.exec(e.trim());return t?t.groups?.ruleId:yH}(n.value);u===yH||u||e.report({node:n,messageId:"require-specific-rule"})}}}}),"no-redundant-variable":q,"no-single-return":V,"prefer-early-return":G,"prefer-fetch":H,"prefer-timer-id":J,"import-dedupe":n({name:"import-dedupe",meta:{type:"problem",docs:{description:"Fix duplication in imports"},fixable:"code",schema:[],messages:{"import-dedupe":"Expect no duplication in imports"}},create:e=>({ImportDeclaration(t){if(t.specifiers.length<=1)return;let r=new Set;t.specifiers.forEach(n=>{let u=n.local.name;r.has(u)&&e.report({node:t,loc:{start:n.loc.end,end:n.loc.start},messageId:"import-dedupe",fix(t){let r=n.range[0],u=n.range[1];return","===e.sourceCode.text[u]&&(u+=1),t.removeRange([r,u])}}),r.add(u)})}})}),"no-return-await":n({name:"no-return-await",meta:{type:"suggestion",hasSuggestions:!0,docs:{description:"Disallows unnecessary `return await`"},fixable:void 0,deprecated:!1,schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create:e=>({AwaitExpression(t){(function e(t){return t.parent?.type===u.ArrowFunctionExpression||(t.parent?.type===u.ReturnStatement?!yK(t.parent):(t.parent?.type===u.ConditionalExpression&&(t===t.parent.consequent||t===t.parent.alternate)||t.parent?.type===u.LogicalExpression&&t===t.parent.right||t.parent?.type===u.SequenceExpression&&t===t.parent.expressions.at(-1))&&e(t.parent))})(t)&&!yK(t)&&e.report({node:e.sourceCode.getFirstToken(t),loc:t.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(r){let n=e.sourceCode,[u,a]=n.getFirstTokens(t,2);if(u.loc.start.line!==a.loc.start.line)return null;let[i,o]=u.range,s=n.text[o];return r.removeRange([i,o+(" "===s?1:0)])}}]})}})}),...Object.fromEntries(Object.entries({"unicorn/better-regex":lp,"unicorn/catch-error-name":gY,"unicorn/custom-error-definition":yt,"unicorn/no-nested-ternary":to,"unicorn/prefer-event-target":nT,"unicorn/prefer-keyboard-event-key":nU,"unicorn/prefer-text-content":nZ,"unicorn/require-array-join-separator":uf,"unicorn/no-thenable":uA,"unicorn/no-invalid-remove-event-listener":uw,"unicorn/consistent-function-scoping":uM,"unicorn/no-new-buffer":ar,"unicorn/no-console-spaces":as,"unicorn/no-empty-file":ag,"unicorn/no-useless-fallback-in-spread":ax,"unicorn/no-useless-length-check":aF,"unicorn/no-useless-promise-resolve-reject":aP,"unicorn/no-zero-fractions":aN,"unicorn/prefer-export-from":aY,"unicorn/prefer-native-coercion-functions":a9,"unicorn/no-document-cookie":io,"unicorn/prefer-add-event-listener":iA,"unicorn/prefer-array-index-of":iO,"unicorn/prefer-blob-reading-methods":iN,"unicorn/prefer-date-now":iH,"unicorn/prefer-dom-node-dataset":i4,"unicorn/prefer-modern-math-apis":oc,"unicorn/number-literal-case":ow,"unicorn/prefer-number-properties":oj,"unicorn/prefer-reflect-apply":oq,"unicorn/prefer-set-size":oX,"unicorn/prefer-string-replace-all":o6,"unicorn/prefer-string-slice":si,"unicorn/prefer-string-trim-start-end":sd,"unicorn/no-unreadable-iife":sm,"unicorn/throw-new-error":sb,"unicorn/escape-case":lA,"unicorn/no-hex-escape":lk,"unicorn/prefer-prototype-methods":lR,"unicorn/error-message":lq,"unicorn/no-instanceof-array":lX,"unicorn/prefer-type-error":l8,"unicorn/consistent-destructuring":cr,"unicorn/new-for-builtins":cd,"unicorn/no-array-push-push":cx,"unicorn/no-process-exit":cw,"unicorn/no-static-only-class":cY,"unicorn/no-unreadable-array-destructuring":c3,"unicorn/no-useless-spread":fc,"unicorn/no-useless-switch-case":fb,"unicorn/no-useless-undefined":fk,"unicorn/numeric-separators-style":fO,"unicorn/prefer-array-find":pu,"unicorn/prefer-array-flat-map":pl,"unicorn/prefer-array-flat":pk,"unicorn/prefer-array-some":pV,"unicorn/prefer-code-point":pH,"unicorn/prefer-default-parameters":p8,"unicorn/prefer-logical-operator-over-ternary":mu,"unicorn/prefer-optional-catch-binding":md,"unicorn/prefer-regexp-test":mC,"unicorn/prefer-set-has":mO,"unicorn/prefer-string-raw":m$,"unicorn/prefer-switch":mH,"unicorn/require-number-to-fixed-digits-argument":mY,"unicorn/template-indent":gA,"unicorn/no-single-promise-in-promise-methods":cU,"unicorn/no-await-in-promise-methods":gk,"unicorn/no-negation-in-equality-check":g$,"unicorn/no-length-as-slice-end":gZ,"unicorn/no-lonely-if":yl,"unicorn/no-magic-array-flat-depth":yg,"unicorn/no-negated-condition":yA,"unicorn/no-object-as-default-parameter":yw,"unicorn/prefer-negative-index":yL,"unicorn/prefer-node-protocol":yV}).map(([e,t])=>{var r;return[e,{...t,meta:{schema:[],...t.meta,docs:{description:"",...t.meta.docs,url:en(e)}},create:(r=t.create,e=>{let t={},n=(e,r)=>{t[e]??(t[e]=[]),t[e].push(r)};for(let[t,u]of Object.entries(r(new Proxy(e,{get:(e,t,r)=>"on"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(r,t)}:"onExit"===t?(e,t)=>{for(let r of Array.isArray(e)?e:[e])n(`${r}:exit`,t)}:Reflect.get(e,t,r)}),void 0)??{}))n(t,u);return Object.fromEntries(Object.entries(t).map(([t,r])=>[t,(...t)=>{for(let n of r)!function(e,t){if(e){for(let r of(yJ(e)||(e=[e]),e))if(r){if(r.fix&&(r.fix=y0(r.fix)),yJ(r.suggest))for(let e of r.suggest)e.fix&&(e.fix=y0(e.fix)),e.data={...r.data,...e.data};t.report(r)}}}(n(...t),e)}]))})}]}))}};let yJ=e=>!!e&&Symbol.iterator in e;class yY extends Error{constructor(e,t){super(e,t),this.name="FixAbortError"}}let yQ={abort(){throw new yY("Fix aborted.")}};function y0(e){return t=>{let r=e(t,yQ);if(yJ(r))try{return[...r]}catch(e){if(e instanceof yY)return;throw e}return r}}export{yX as default};