allyward 0.0.0 → 1.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,126 @@
1
+ import { createRequire as __createRequire } from 'module'; const require = __createRequire(import.meta.url);
2
+ import{a as xu}from"./chunk-GMYSZQLH.mjs";import{a as Ti,c as B,h as rd}from"./chunk-7UDH5BXX.mjs";var Eu=B(nd=>{(function t(e){"use strict";var r,s,n,i,o,a;function l(E){var k={},T,w;for(T in E)E.hasOwnProperty(T)&&(w=E[T],typeof w=="object"&&w!==null?k[T]=l(w):k[T]=w);return k}function u(E,k){var T,w,R,j;for(w=E.length,R=0;w;)T=w>>>1,j=R+T,k(E[j])?w=T:(R=j+1,w-=T+1);return R}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"},n={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"]},i={},o={},a={},s={Break:i,Skip:o,Remove:a};function c(E,k){this.parent=E,this.key=k}c.prototype.replace=function(k){this.parent[this.key]=k},c.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function p(E,k,T,w){this.node=E,this.path=k,this.wrap=T,this.ref=w}function h(){}h.prototype.path=function(){var k,T,w,R,j,$;function M(N,b){if(Array.isArray(b))for(w=0,R=b.length;w<R;++w)N.push(b[w]);else N.push(b)}if(!this.__current.path)return null;for(j=[],k=2,T=this.__leavelist.length;k<T;++k)$=this.__leavelist[k],M(j,$.path);return M(j,this.__current.path),j},h.prototype.type=function(){var E=this.current();return E.type||this.__current.wrap},h.prototype.parents=function(){var k,T,w;for(w=[],k=1,T=this.__leavelist.length;k<T;++k)w.push(this.__leavelist[k].node);return w},h.prototype.current=function(){return this.__current.node},h.prototype.__execute=function(k,T){var w,R;return R=void 0,w=this.__current,this.__current=T,this.__state=null,k&&(R=k.call(this,T.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=w,R},h.prototype.notify=function(k){this.__state=k},h.prototype.skip=function(){this.notify(o)},h.prototype.break=function(){this.notify(i)},h.prototype.remove=function(){this.notify(a)},h.prototype.__initialize=function(E,k){this.visitor=k,this.root=E,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,k.fallback==="iteration"?this.__fallback=Object.keys:typeof k.fallback=="function"&&(this.__fallback=k.fallback),this.__keys=n,k.keys&&(this.__keys=Object.assign(Object.create(this.__keys),k.keys))};function f(E){return E==null?!1:typeof E=="object"&&typeof E.type=="string"}function d(E,k){return(E===r.ObjectExpression||E===r.ObjectPattern)&&k==="properties"}function g(E,k){for(var T=E.length-1;T>=0;--T)if(E[T].node===k)return!0;return!1}h.prototype.traverse=function(k,T){var w,R,j,$,M,N,b,C,P,F,I,U;for(this.__initialize(k,T),U={},w=this.__worklist,R=this.__leavelist,w.push(new p(k,null,null,null)),R.push(new p(null,null,null,null));w.length;){if(j=w.pop(),j===U){if(j=R.pop(),N=this.__execute(T.leave,j),this.__state===i||N===i)return;continue}if(j.node){if(N=this.__execute(T.enter,j),this.__state===i||N===i)return;if(w.push(U),R.push(j),this.__state===o||N===o)continue;if($=j.node,M=$.type||j.wrap,F=this.__keys[M],!F)if(this.__fallback)F=this.__fallback($);else throw new Error("Unknown node type "+M+".");for(C=F.length;(C-=1)>=0;)if(b=F[C],I=$[b],!!I){if(Array.isArray(I)){for(P=I.length;(P-=1)>=0;)if(I[P]&&!g(R,I[P])){if(d(M,F[C]))j=new p(I[P],[b,P],"Property",null);else if(f(I[P]))j=new p(I[P],[b,P],null,null);else continue;w.push(j)}}else if(f(I)){if(g(R,I))continue;w.push(new p(I,b,null,null))}}}}},h.prototype.replace=function(k,T){var w,R,j,$,M,N,b,C,P,F,I,U,z;function W(re){var ue,be,te,pe;if(re.ref.remove()){for(be=re.ref.key,pe=re.ref.parent,ue=w.length;ue--;)if(te=w[ue],te.ref&&te.ref.parent===pe){if(te.ref.key<be)break;--te.ref.key}}}for(this.__initialize(k,T),I={},w=this.__worklist,R=this.__leavelist,U={root:k},N=new p(k,null,null,new c(U,"root")),w.push(N),R.push(N);w.length;){if(N=w.pop(),N===I){if(N=R.pop(),M=this.__execute(T.leave,N),M!==void 0&&M!==i&&M!==o&&M!==a&&N.ref.replace(M),(this.__state===a||M===a)&&W(N),this.__state===i||M===i)return U.root;continue}if(M=this.__execute(T.enter,N),M!==void 0&&M!==i&&M!==o&&M!==a&&(N.ref.replace(M),N.node=M),(this.__state===a||M===a)&&(W(N),N.node=null),this.__state===i||M===i)return U.root;if(j=N.node,!!j&&(w.push(I),R.push(N),!(this.__state===o||M===o))){if($=j.type||N.wrap,P=this.__keys[$],!P)if(this.__fallback)P=this.__fallback(j);else throw new Error("Unknown node type "+$+".");for(b=P.length;(b-=1)>=0;)if(z=P[b],F=j[z],!!F)if(Array.isArray(F)){for(C=F.length;(C-=1)>=0;)if(F[C]){if(d($,P[b]))N=new p(F[C],[z,C],"Property",new c(F,C));else if(f(F[C]))N=new p(F[C],[z,C],null,new c(F,C));else continue;w.push(N)}}else f(F)&&w.push(new p(F,z,null,new c(j,z)))}}return U.root};function y(E,k){var T=new h;return T.traverse(E,k)}function v(E,k){var T=new h;return T.replace(E,k)}function S(E,k){var T;return T=u(k,function(R){return R.range[0]>E.range[0]}),E.extendedRange=[E.range[0],E.range[1]],T!==k.length&&(E.extendedRange[1]=k[T].range[0]),T-=1,T>=0&&(E.extendedRange[0]=k[T].range[1]),E}function A(E,k,T){var w=[],R,j,$,M;if(!E.range)throw new Error("attachComments needs range information");if(!T.length){if(k.length){for($=0,j=k.length;$<j;$+=1)R=l(k[$]),R.extendedRange=[0,E.range[0]],w.push(R);E.leadingComments=w}return E}for($=0,j=k.length;$<j;$+=1)w.push(S(l(k[$]),T));return M=0,y(E,{enter:function(N){for(var b;M<w.length&&(b=w[M],!(b.extendedRange[1]>N.range[0]));)b.extendedRange[1]===N.range[0]?(N.leadingComments||(N.leadingComments=[]),N.leadingComments.push(b),w.splice(M,1)):M+=1;if(M===w.length)return s.Break;if(w[M].extendedRange[0]>N.range[1])return s.Skip}}),M=0,y(E,{leave:function(N){for(var b;M<w.length&&(b=w[M],!(N.range[1]<b.extendedRange[0]));)N.range[1]===b.extendedRange[0]?(N.trailingComments||(N.trailingComments=[]),N.trailingComments.push(b),w.splice(M,1)):M+=1;if(M===w.length)return s.Break;if(w[M].extendedRange[0]>N.range[1])return s.Skip}}),E}return e.Syntax=r,e.traverse=y,e.replace=v,e.attachComments=A,e.VisitorKeys=n,e.VisitorOption=s,e.Controller=h,e.cloneEnvironment=function(){return t({})},e})(nd)});var sd=B((uY,CR)=>{CR.exports={name:"esrecurse",description:"ECMAScript AST recursive visitor",homepage:"https://github.com/estools/esrecurse",main:"esrecurse.js",version:"4.3.0",engines:{node:">=4.0"},maintainers:[{name:"Yusuke Suzuki",email:"utatane.tea@gmail.com",web:"https://github.com/Constellation"}],repository:{type:"git",url:"https://github.com/estools/esrecurse.git"},dependencies:{estraverse:"^5.2.0"},devDependencies:{"babel-cli":"^6.24.1","babel-eslint":"^7.2.3","babel-preset-es2015":"^6.24.1","babel-register":"^6.24.1",chai:"^4.0.2",esprima:"^4.0.0",gulp:"^3.9.0","gulp-bump":"^2.7.0","gulp-eslint":"^4.0.0","gulp-filter":"^5.0.0","gulp-git":"^2.4.1","gulp-mocha":"^4.3.1","gulp-tag-version":"^1.2.1",jsdoc:"^3.3.0-alpha10",minimist:"^1.1.0"},license:"BSD-2-Clause",scripts:{test:"gulp travis","unit-test":"gulp test",lint:"gulp lint"},babel:{presets:["es2015"]}}});var id=B(ja=>{(function(){"use strict";var t=Eu();function e(n){return n==null?!1:typeof n=="object"&&typeof n.type=="string"}function r(n,i){return(n===t.Syntax.ObjectExpression||n===t.Syntax.ObjectPattern)&&i==="properties"}function s(n,i){i=i||{},this.__visitor=n||this,this.__childVisitorKeys=i.childVisitorKeys?Object.assign({},t.VisitorKeys,i.childVisitorKeys):t.VisitorKeys,i.fallback==="iteration"?this.__fallback=Object.keys:typeof i.fallback=="function"&&(this.__fallback=i.fallback)}s.prototype.visitChildren=function(n){var i,o,a,l,u,c,p;if(n!=null){if(i=n.type||t.Syntax.Property,o=this.__childVisitorKeys[i],!o)if(this.__fallback)o=this.__fallback(n);else throw new Error("Unknown node type "+i+".");for(a=0,l=o.length;a<l;++a)if(p=n[o[a]],p)if(Array.isArray(p))for(u=0,c=p.length;u<c;++u)p[u]&&(e(p[u])||r(i,o[a]))&&this.visit(p[u]);else e(p)&&this.visit(p)}},s.prototype.visit=function(n){var i;if(n!=null){if(i=n.type||t.Syntax.Property,this.__visitor[i]){this.__visitor[i].call(this,n);return}this.visitChildren(n)}},ja.version=sd().version,ja.Visitor=s,ja.visit=function(n,i,o){var a=new s(i,o);a.visit(n)}})()});var Lu=B(_r=>{"use strict";var Bu=Eu(),Ou=id();function _s(t,e="Assertion failed."){if(!t)throw new Error(e)}var ad=1,od=2,wR=ad|od,Zt=class t{constructor(e,r,s,n,i,o,a){this.identifier=e,this.from=r,this.tainted=!1,this.resolved=null,this.flag=s,this.isWrite()&&(this.writeExpr=n,this.partial=o,this.init=a),this.__maybeImplicitGlobal=i}isStatic(){return!this.tainted&&!!this.resolved&&this.resolved.scope.isStatic()}isWrite(){return!!(this.flag&t.WRITE)}isRead(){return!!(this.flag&t.READ)}isReadOnly(){return this.flag===t.READ}isWriteOnly(){return this.flag===t.WRITE}isReadWrite(){return this.flag===t.RW}};Zt.READ=ad;Zt.WRITE=od;Zt.RW=wR;var _t=class{constructor(e,r){this.name=e,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=r}};_t.CatchClause="CatchClause";_t.Parameter="Parameter";_t.FunctionName="FunctionName";_t.ClassName="ClassName";_t.Variable="Variable";_t.ImportBinding="ImportBinding";_t.ImplicitGlobalVariable="ImplicitGlobalVariable";var Er=class{constructor(e,r,s,n,i,o){this.type=e,this.name=r,this.node=s,this.parent=n,this.index=i,this.kind=o}},Ma=class extends Er{constructor(e,r,s,n){super(_t.Parameter,e,r,null,s,null),this.rest=n}},{Syntax:Jr}=Bu;function AR(t,e,r){let s;if(t.upper&&t.upper.isStrict||r||t.type==="class"||t.type==="module")return!0;if(t.type==="block"||t.type==="switch")return!1;if(t.type==="function"){if(e.type===Jr.ArrowFunctionExpression&&e.body.type!==Jr.BlockStatement||(e.type===Jr.Program?s=e:s=e.body,!s))return!1}else if(t.type==="global")s=e;else return!1;for(let n=0,i=s.body.length;n<i;++n){let o=s.body[n];if(typeof o.directive!="string")break;if(o.directive==="use strict")return!0}return!1}function kR(t,e){t.scopes.push(e);let r=t.__nodeToScope.get(e.block);r?r.push(e):t.__nodeToScope.set(e.block,[e])}var er=class{constructor(e,r,s,n,i){this.type=r,this.set=new Map,this.taints=new Map,this.dynamic=this.type==="global"||this.type==="with",this.block=n,this.through=[],this.variables=[],this.references=[],this.variableScope=this.type==="global"||this.type==="module"||this.type==="function"||this.type==="class-field-initializer"||this.type==="class-static-block"?this:s.variableScope,this.functionExpressionScope=!1,this.directCallToEvalScope=!1,this.thisFound=!1,this.__left=[],this.upper=s,this.isStrict=e.isStrictModeSupported()?AR(this,n,i):!1,this.childScopes=[],this.upper&&this.upper.childScopes.push(this),this.__declaredVariables=e.__declaredVariables,kR(e,this)}__shouldStaticallyClose(e){return!this.dynamic||e.__isOptimistic()||this.type==="global"}__staticCloseRef(e){this.__resolve(e)||this.__delegateToUpperScope(e)}__dynamicCloseRef(e){let r=this;do r.through.push(e),r=r.upper;while(r)}__close(e){let r;this.__shouldStaticallyClose(e)?r=this.__staticCloseRef:r=this.__dynamicCloseRef;for(let s=0,n=this.__left.length;s<n;++s){let i=this.__left[s];r.call(this,i)}return this.__left=null,this.upper}__isValidResolution(e,r){return!0}__resolve(e){let r=e.identifier.name;if(!this.set.has(r))return!1;let s=this.set.get(r);return this.__isValidResolution(e,s)?(s.references.push(e),s.stack=s.stack&&e.from.variableScope===this.variableScope,e.tainted&&(s.tainted=!0,this.taints.set(s.name,!0)),e.resolved=s,!0):!1}__delegateToUpperScope(e){this.upper&&this.upper.__left.push(e),this.through.push(e)}__addDeclaredVariablesOfNode(e,r){if(r==null)return;let s=this.__declaredVariables.get(r);s==null&&(s=[],this.__declaredVariables.set(r,s)),s.includes(e)||s.push(e)}__defineGeneric(e,r,s,n,i){let o;o=r.get(e),o||(o=new _t(e,this),r.set(e,o),s.push(o)),i&&(o.defs.push(i),this.__addDeclaredVariablesOfNode(o,i.node),this.__addDeclaredVariablesOfNode(o,i.parent)),n&&o.identifiers.push(n)}__define(e,r){e&&e.type===Jr.Identifier&&this.__defineGeneric(e.name,this.set,this.variables,e,r)}__referencing(e,r,s,n,i,o){if(!e||e.type!==Jr.Identifier&&e.type!=="JSXIdentifier"||e.name==="super")return;let a=new Zt(e,this,r||Zt.READ,s,n,!!i,!!o);this.references.push(a),this.__left.push(a)}__detectEval(){let e=this;this.directCallToEvalScope=!0;do e.dynamic=!0,e=e.upper;while(e)}__detectThis(){this.thisFound=!0}__isClosed(){return this.__left===null}resolve(e){let r,s,n;for(_s(this.__isClosed(),"Scope should be closed."),_s(e.type===Jr.Identifier,"Target should be identifier."),s=0,n=this.references.length;s<n;++s)if(r=this.references[s],r.identifier===e)return r;return null}isStatic(){return!this.dynamic}isArgumentsMaterialized(){return!0}isThisMaterialized(){return!0}isUsedName(e){if(this.set.has(e))return!0;for(let r=0,s=this.through.length;r<s;++r)if(this.through[r].identifier.name===e)return!0;return!1}},qa=class extends er{constructor(e,r){super(e,"global",null,r,!1),this.implicit={set:new Map,variables:[],left:[]}}__close(e){let r=[];for(let s=0,n=this.__left.length;s<n;++s){let i=this.__left[s];i.__maybeImplicitGlobal&&!this.set.has(i.identifier.name)&&r.push(i.__maybeImplicitGlobal)}for(let s=0,n=r.length;s<n;++s){let i=r[s];this.__defineImplicit(i.pattern,new Er(_t.ImplicitGlobalVariable,i.pattern,i.node,null,null,null))}return super.__close(e),this.implicit.left=[...this.through],null}__defineImplicit(e,r){e&&e.type===Jr.Identifier&&this.__defineGeneric(e.name,this.implicit.set,this.implicit.variables,e,r)}__addVariables(e){for(let s of e)this.__defineGeneric(s,this.set,this.variables,null,null);let r=new Set(e);this.through=this.through.filter(s=>{let n=s.identifier.name;if(r.has(n)){let i=this.set.get(n);return s.resolved=i,i.references.push(s),!1}return!0}),this.implicit.variables=this.implicit.variables.filter(s=>{let n=s.name;return r.has(n)?(this.implicit.set.delete(n),!1):!0}),this.implicit.left=this.implicit.left.filter(s=>!r.has(s.identifier.name))}},bu=class extends er{constructor(e,r,s){super(e,"module",r,s,!1)}},vu=class extends er{constructor(e,r,s){super(e,"function-expression-name",r,s,!1),this.__define(s.id,new Er(_t.FunctionName,s.id,s,null,null,null)),this.functionExpressionScope=!0}},Su=class extends er{constructor(e,r,s){super(e,"catch",r,s,!1)}},Cu=class extends er{constructor(e,r,s){super(e,"with",r,s,!1)}__close(e){if(this.__shouldStaticallyClose(e))return super.__close(e);for(let r=0,s=this.__left.length;r<s;++r){let n=this.__left[r];n.tainted=!0,this.__delegateToUpperScope(n)}return this.__left=null,this.upper}},wu=class extends er{constructor(e,r,s){super(e,"block",r,s,!1)}},Au=class extends er{constructor(e,r,s){super(e,"switch",r,s,!1)}},ku=class extends er{constructor(e,r,s,n){super(e,"function",r,s,n),this.block.type!==Jr.ArrowFunctionExpression&&this.__defineArguments()}isArgumentsMaterialized(){if(this.block.type===Jr.ArrowFunctionExpression)return!1;if(!this.isStatic())return!0;let e=this.set.get("arguments");return _s(e,"Always have arguments variable."),e.tainted||e.references.length!==0}isThisMaterialized(){return this.isStatic()?this.thisFound:!0}__defineArguments(){this.__defineGeneric("arguments",this.set,this.variables,null,null),this.taints.set("arguments",!0)}__isValidResolution(e,r){if(this.block.type==="Program")return!0;let s=this.block.body.range[0];return!(r.scope===this&&e.identifier.range[0]<s&&r.defs.every(n=>n.name.range[0]>=s))}},Tu=class extends er{constructor(e,r,s){super(e,"for",r,s,!1)}},Du=class extends er{constructor(e,r,s){super(e,"class",r,s,!1)}},Iu=class extends er{constructor(e,r,s){super(e,"class-field-initializer",r,s,!0)}},Pu=class extends er{constructor(e,r,s){super(e,"class-static-block",r,s,!0)}},Ua=class{constructor(e){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=e,this.__declaredVariables=new WeakMap}__isOptimistic(){return this.__options.optimistic}__ignoreEval(){return this.__options.ignoreEval}__isJSXEnabled(){return this.__options.jsx===!0}isGlobalReturn(){return this.__options.nodejsScope||this.__options.sourceType==="commonjs"}isModule(){return this.__options.sourceType==="module"}isImpliedStrict(){return!!this.__options.impliedStrict}isStrictModeSupported(){return this.__options.ecmaVersion>=5}__get(e){return this.__nodeToScope.get(e)}getDeclaredVariables(e){return this.__declaredVariables.get(e)||[]}acquire(e,r){function s(i){return!(i.type==="function"&&i.functionExpressionScope)}let n=this.__get(e);if(!n||n.length===0)return null;if(n.length===1)return n[0];if(r)for(let i=n.length-1;i>=0;--i){let o=n[i];if(s(o))return o}else for(let i=0,o=n.length;i<o;++i){let a=n[i];if(s(a))return a}return null}acquireAll(e){return this.__get(e)}release(e,r){let s=this.__get(e);if(s&&s.length){let n=s[0].upper;return n?this.acquire(n.block,r):null}return null}addGlobals(e){this.globalScope.__addVariables(e)}attach(){}detach(){}__nestScope(e){return e instanceof qa&&(_s(this.__currentScope===null),this.globalScope=e),this.__currentScope=e,e}__nestGlobalScope(e){return this.__nestScope(new qa(this,e))}__nestBlockScope(e){return this.__nestScope(new wu(this,this.__currentScope,e))}__nestFunctionScope(e,r){return this.__nestScope(new ku(this,this.__currentScope,e,r))}__nestForScope(e){return this.__nestScope(new Tu(this,this.__currentScope,e))}__nestCatchScope(e){return this.__nestScope(new Su(this,this.__currentScope,e))}__nestWithScope(e){return this.__nestScope(new Cu(this,this.__currentScope,e))}__nestClassScope(e){return this.__nestScope(new Du(this,this.__currentScope,e))}__nestClassFieldInitializerScope(e){return this.__nestScope(new Iu(this,this.__currentScope,e))}__nestClassStaticBlockScope(e){return this.__nestScope(new Pu(this,this.__currentScope,e))}__nestSwitchScope(e){return this.__nestScope(new Au(this,this.__currentScope,e))}__nestModuleScope(e){return this.__nestScope(new bu(this,this.__currentScope,e))}__nestFunctionExpressionNameScope(e){return this.__nestScope(new vu(this,this.__currentScope,e))}__isES6(){return this.__options.ecmaVersion>=6}},{Syntax:Fs}=Bu;function TR(t){return t.at(-1)||null}var Bs=class extends Ou.Visitor{static isPattern(e){let r=e.type;return r===Fs.Identifier||r===Fs.ObjectPattern||r===Fs.ArrayPattern||r===Fs.SpreadElement||r===Fs.RestElement||r===Fs.AssignmentPattern}constructor(e,r,s){super(null,e),this.rootPattern=r,this.callback=s,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(e){let r=TR(this.restElements);this.callback(e,{topLevel:e===this.rootPattern,rest:r!=null&&r.argument===e,assignments:this.assignments})}Property(e){e.computed&&this.rightHandNodes.push(e.key),this.visit(e.value)}ArrayPattern(e){for(let r=0,s=e.elements.length;r<s;++r){let n=e.elements[r];this.visit(n)}}AssignmentPattern(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}RestElement(e){this.restElements.push(e),this.visit(e.argument),this.restElements.pop()}MemberExpression(e){e.computed&&this.rightHandNodes.push(e.property),this.rightHandNodes.push(e.object)}SpreadElement(e){this.visit(e.argument)}ArrayExpression(e){e.elements.forEach(this.visit,this)}AssignmentExpression(e){this.assignments.push(e),this.visit(e.left),this.rightHandNodes.push(e.right),this.assignments.pop()}CallExpression(e){e.arguments.forEach(r=>{this.rightHandNodes.push(r)}),this.visit(e.callee)}},{Syntax:Hr}=Bu;function DR(t,e,r,s){let n=new Bs(t,e,s);n.visit(e),r!=null&&n.rightHandNodes.forEach(r.visit,r)}var Fu=class extends Ou.Visitor{constructor(e,r){super(null,r.options),this.declaration=e,this.referencer=r}visitImport(e,r){this.referencer.visitPattern(e,s=>{this.referencer.currentScope().__define(s,new Er(_t.ImportBinding,s,r,this.declaration,null,null))})}ImportNamespaceSpecifier(e){let r=e.local||e.id;r&&this.visitImport(r,e)}ImportDefaultSpecifier(e){let r=e.local||e.id;this.visitImport(r,e)}ImportSpecifier(e){let r=e.local||e.id;e.name?this.visitImport(e.name,e):this.visitImport(r,e)}},$a=class extends Ou.Visitor{constructor(e,r){super(null,e),this.options=e,this.scopeManager=r,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close(e){for(;this.currentScope()&&e===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition(e){let r=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=e,r}popInnerMethodDefinition(e){this.isInnerMethodDefinition=e}referencingDefaultValue(e,r,s,n){let i=this.currentScope();r.forEach(o=>{i.__referencing(e,Zt.WRITE,o.right,s,e!==o.left,n)})}visitPattern(e,r,s){let n=r,i=s;typeof r=="function"&&(i=r,n={processRightHandNodes:!1}),DR(this.options,e,n.processRightHandNodes?this:null,i)}visitFunction(e){let r,s;e.type===Hr.FunctionDeclaration&&this.currentScope().__define(e.id,new Er(_t.FunctionName,e.id,e,null,null,null)),e.type===Hr.FunctionExpression&&e.id&&this.scopeManager.__nestFunctionExpressionNameScope(e),this.scopeManager.__nestFunctionScope(e,this.isInnerMethodDefinition);let n=this;function i(o,a){n.currentScope().__define(o,new Ma(o,e,r,a.rest)),n.referencingDefaultValue(o,a.assignments,null,!0)}for(r=0,s=e.params.length;r<s;++r)this.visitPattern(e.params[r],{processRightHandNodes:!0},i);e.rest&&this.visitPattern({type:"RestElement",argument:e.rest},o=>{this.currentScope().__define(o,new Ma(o,e,e.params.length,!0))}),e.body&&(e.body.type===Hr.BlockStatement?this.visitChildren(e.body):this.visit(e.body)),this.close(e)}visitClass(e){e.type===Hr.ClassDeclaration&&this.currentScope().__define(e.id,new Er(_t.ClassName,e.id,e,null,null,null)),this.scopeManager.__nestClassScope(e),e.id&&this.currentScope().__define(e.id,new Er(_t.ClassName,e.id,e)),this.visit(e.superClass),this.visit(e.body),this.close(e)}visitProperty(e){let r;e.computed&&this.visit(e.key);let s=e.type===Hr.MethodDefinition;s&&(r=this.pushInnerMethodDefinition(!0)),this.visit(e.value),s&&this.popInnerMethodDefinition(r)}visitForIn(e){e.left.type===Hr.VariableDeclaration&&e.left.kind!=="var"&&this.scopeManager.__nestForScope(e),e.left.type===Hr.VariableDeclaration?(this.visit(e.left),this.visitPattern(e.left.declarations[0].id,r=>{this.currentScope().__referencing(r,Zt.WRITE,e.right,null,!0,!0)})):this.visitPattern(e.left,{processRightHandNodes:!0},(r,s)=>{let n=null;this.currentScope().isStrict||(n={pattern:r,node:e}),this.referencingDefaultValue(r,s.assignments,n,!1),this.currentScope().__referencing(r,Zt.WRITE,e.right,n,!0,!1)}),this.visit(e.right),this.visit(e.body),this.close(e)}visitVariableDeclaration(e,r,s,n){let i=s.declarations[n],o=i.init;this.visitPattern(i.id,{processRightHandNodes:!0},(a,l)=>{e.__define(a,new Er(r,a,i,s,n,s.kind)),this.referencingDefaultValue(a,l.assignments,null,!0),o&&this.currentScope().__referencing(a,Zt.WRITE,o,null,!l.topLevel,!0)})}AssignmentExpression(e){Bs.isPattern(e.left)?e.operator==="="?this.visitPattern(e.left,{processRightHandNodes:!0},(r,s)=>{let n=null;this.currentScope().isStrict||(n={pattern:r,node:e}),this.referencingDefaultValue(r,s.assignments,n,!1),this.currentScope().__referencing(r,Zt.WRITE,e.right,n,!s.topLevel,!1)}):this.currentScope().__referencing(e.left,Zt.RW,e.right):this.visit(e.left),this.visit(e.right)}CatchClause(e){this.scopeManager.__nestCatchScope(e),this.visitPattern(e.param,{processRightHandNodes:!0},(r,s)=>{this.currentScope().__define(r,new Er(_t.CatchClause,r,e,null,null,null)),this.referencingDefaultValue(r,s.assignments,null,!0)}),this.visit(e.body),this.close(e)}Program(e){this.scopeManager.__nestGlobalScope(e),this.scopeManager.isGlobalReturn()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope(e,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope(e),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren(e),this.close(e)}Identifier(e){this.currentScope().__referencing(e)}PrivateIdentifier(){}UpdateExpression(e){Bs.isPattern(e.argument)?this.currentScope().__referencing(e.argument,Zt.RW,null):this.visitChildren(e)}MemberExpression(e){this.visit(e.object),e.computed&&this.visit(e.property)}Property(e){this.visitProperty(e)}PropertyDefinition(e){let{computed:r,key:s,value:n}=e;r&&this.visit(s),n&&(this.scopeManager.__nestClassFieldInitializerScope(n),this.visit(n),this.close(n))}StaticBlock(e){this.scopeManager.__nestClassStaticBlockScope(e),this.visitChildren(e),this.close(e)}MethodDefinition(e){this.visitProperty(e)}BreakStatement(){}ContinueStatement(){}LabeledStatement(e){this.visit(e.body)}ForStatement(e){e.init&&e.init.type===Hr.VariableDeclaration&&e.init.kind!=="var"&&this.scopeManager.__nestForScope(e),this.visitChildren(e),this.close(e)}ClassExpression(e){this.visitClass(e)}ClassDeclaration(e){this.visitClass(e)}CallExpression(e){!this.scopeManager.__ignoreEval()&&e.callee.type===Hr.Identifier&&e.callee.name==="eval"&&this.currentScope().variableScope.__detectEval(),this.visitChildren(e)}BlockStatement(e){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope(e),this.visitChildren(e),this.close(e)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(e){this.visit(e.object),this.scopeManager.__nestWithScope(e),this.visit(e.body),this.close(e)}VariableDeclaration(e){let r=e.kind==="var"?this.currentScope().variableScope:this.currentScope();for(let s=0,n=e.declarations.length;s<n;++s){let i=e.declarations[s];this.visitVariableDeclaration(r,_t.Variable,e,s),i.init&&this.visit(i.init)}}SwitchStatement(e){this.visit(e.discriminant),this.scopeManager.__isES6()&&this.scopeManager.__nestSwitchScope(e);for(let r=0,s=e.cases.length;r<s;++r)this.visit(e.cases[r]);this.close(e)}FunctionDeclaration(e){this.visitFunction(e)}FunctionExpression(e){this.visitFunction(e)}ForOfStatement(e){this.visitForIn(e)}ForInStatement(e){this.visitForIn(e)}ArrowFunctionExpression(e){this.visitFunction(e)}ImportDeclaration(e){_s(this.scopeManager.__isES6()&&this.scopeManager.isModule(),"ImportDeclaration should appear when the mode is ES6 and in the module context."),new Fu(e,this).visit(e)}visitExportDeclaration(e){if(!e.source){if(e.declaration){this.visit(e.declaration);return}this.visitChildren(e)}}ExportDeclaration(e){this.visitExportDeclaration(e)}ExportAllDeclaration(e){this.visitExportDeclaration(e)}ExportDefaultDeclaration(e){this.visitExportDeclaration(e)}ExportNamedDeclaration(e){this.visitExportDeclaration(e)}ExportSpecifier(e){let r=e.id||e.local;this.visit(r)}MetaProperty(){}JSXIdentifier(e){this.scopeManager.__isJSXEnabled()&&e.name!=="this"&&this.currentScope().__referencing(e)}JSXMemberExpression(e){this.visit(e.object)}JSXElement(e){this.scopeManager.__isJSXEnabled()?(this.visit(e.openingElement),e.children.forEach(this.visit,this)):this.visitChildren(e)}JSXOpeningElement(e){if(this.scopeManager.__isJSXEnabled()){let r=e.name;(r.type==="JSXIdentifier"&&r.name[0].toUpperCase()===r.name[0]||r.type==="JSXMemberExpression")&&this.visit(r)}e.attributes.forEach(this.visit,this)}JSXAttribute(e){e.value&&this.visit(e.value)}JSXExpressionContainer(e){this.visit(e.expression)}JSXNamespacedName(e){this.visit(e.namespace),this.visit(e.name)}};function IR(){return{optimistic:!1,nodejsScope:!1,impliedStrict:!1,sourceType:"script",ecmaVersion:5,childVisitorKeys:null,fallback:"iteration"}}function _u(t,e){function r(s){return typeof s=="object"&&s instanceof Object&&!(s instanceof Array)&&!(s instanceof RegExp)}for(let s in e)if(Object.hasOwn(e,s)){let n=e[s];r(n)?r(t[s])?_u(t[s],n):t[s]=_u({},n):t[s]=n}return t}function PR(t,e){let r=_u(IR(),e),s=new Ua(r);return new $a(r,s).visit(t),_s(s.__currentScope===null,"currentScope should be null."),s}var FR="9.1.2";_r.Definition=Er;_r.PatternVisitor=Bs;_r.Reference=Zt;_r.Referencer=$a;_r.Scope=er;_r.ScopeManager=Ua;_r.Variable=_t;_r.analyze=PR;_r.version=FR});var Mn=B(Va=>{"use strict";var Di={ArrayExpression:["elements"],ArrayPattern:["elements"],ArrowFunctionExpression:["params","body"],AssignmentExpression:["left","right"],AssignmentPattern:["left","right"],AwaitExpression:["argument"],BinaryExpression:["left","right"],BlockStatement:["body"],BreakStatement:["label"],CallExpression:["callee","arguments"],CatchClause:["param","body"],ChainExpression:["expression"],ClassBody:["body"],ClassDeclaration:["id","superClass","body"],ClassExpression:["id","superClass","body"],ConditionalExpression:["test","consequent","alternate"],ContinueStatement:["label"],DebuggerStatement:[],DoWhileStatement:["body","test"],EmptyStatement:[],ExperimentalRestProperty:["argument"],ExperimentalSpreadProperty:["argument"],ExportAllDeclaration:["exported","source","attributes"],ExportDefaultDeclaration:["declaration"],ExportNamedDeclaration:["declaration","specifiers","source","attributes"],ExportSpecifier:["local","exported"],ExpressionStatement:["expression"],ForInStatement:["left","right","body"],ForOfStatement:["left","right","body"],ForStatement:["init","test","update","body"],FunctionDeclaration:["id","params","body"],FunctionExpression:["id","params","body"],Identifier:[],IfStatement:["test","consequent","alternate"],ImportAttribute:["key","value"],ImportDeclaration:["specifiers","source","attributes"],ImportDefaultSpecifier:["local"],ImportExpression:["source","options"],ImportNamespaceSpecifier:["local"],ImportSpecifier:["imported","local"],JSXAttribute:["name","value"],JSXClosingElement:["name"],JSXClosingFragment:[],JSXElement:["openingElement","children","closingElement"],JSXEmptyExpression:[],JSXExpressionContainer:["expression"],JSXFragment:["openingFragment","children","closingFragment"],JSXIdentifier:[],JSXMemberExpression:["object","property"],JSXNamespacedName:["namespace","name"],JSXOpeningElement:["name","attributes"],JSXOpeningFragment:[],JSXSpreadAttribute:["argument"],JSXSpreadChild:["expression"],JSXText:[],LabeledStatement:["label","body"],Literal:[],LogicalExpression:["left","right"],MemberExpression:["object","property"],MetaProperty:["meta","property"],MethodDefinition:["key","value"],NewExpression:["callee","arguments"],ObjectExpression:["properties"],ObjectPattern:["properties"],PrivateIdentifier:[],Program:["body"],Property:["key","value"],PropertyDefinition:["key","value"],RestElement:["argument"],ReturnStatement:["argument"],SequenceExpression:["expressions"],SpreadElement:["argument"],StaticBlock:["body"],Super:[],SwitchCase:["test","consequent"],SwitchStatement:["discriminant","cases"],TaggedTemplateExpression:["tag","quasi"],TemplateElement:[],TemplateLiteral:["quasis","expressions"],ThisExpression:[],ThrowStatement:["argument"],TryStatement:["block","handler","finalizer"],UnaryExpression:["argument"],UpdateExpression:["argument"],VariableDeclaration:["declarations"],VariableDeclarator:["id","init"],WhileStatement:["test","body"],WithStatement:["object","body"],YieldExpression:["argument"]},_R=Object.keys(Di);for(let t of _R)Object.freeze(Di[t]);Object.freeze(Di);var BR=new Set(["parent","leadingComments","trailingComments"]);function OR(t){return!BR.has(t)&&t[0]!=="_"}function LR(t){return Object.keys(t).filter(OR)}function NR(t){let e=Object.assign({},Di);for(let r of Object.keys(t))if(Object.hasOwn(e,r)){let s=new Set(t[r]);for(let n of e[r])s.add(n);e[r]=Object.freeze(Array.from(s))}else e[r]=Object.freeze(Array.from(t[r]));return Object.freeze(e)}Va.KEYS=Di;Va.getKeys=LR;Va.unionWith=NR});var ld=B((hY,RR)=>{RR.exports={name:"eslint",version:"10.15.0",author:"Nicholas C. Zakas <nicholas+npm@nczconsulting.com>",description:"An AST-based pattern checker for JavaScript.",type:"commonjs",bin:{eslint:"./bin/eslint.js"},main:"./lib/api.js",types:"./lib/types/index.d.ts",exports:{".":{types:"./lib/types/index.d.ts",default:"./lib/api.js"},"./config":{types:"./lib/types/config-api.d.ts",default:"./lib/config-api.js"},"./package.json":"./package.json","./use-at-your-own-risk":{types:"./lib/types/use-at-your-own-risk.d.ts",default:"./lib/unsupported-api.js"},"./rules":{types:"./lib/types/rules.d.ts"},"./universal":{types:"./lib/types/universal.d.ts",default:"./lib/universal.js"}},typesVersions:{"*":{"use-at-your-own-risk":["./lib/types/use-at-your-own-risk.d.ts"],rules:["./lib/types/rules.d.ts"],universal:["./lib/types/universal.d.ts"],config:["./lib/types/config-api.d.ts"]}},scripts:{"build:docs:update-links":"node tools/fetch-docs-links.js","build:site":"node Makefile.js gensite","build:webpack":"node Makefile.js webpack","build:readme":"node tools/update-readme.js","build:rules-index":"node Makefile.js generateRuleIndexPage",fmt:"prettier --write .","fmt:check":"prettier --check .",lint:"node Makefile.js lint","lint:docs:js":"node Makefile.js lintDocsJS","lint:docs:rule-examples":"node Makefile.js checkRuleExamples","lint:unused":"knip","lint:fix":"node Makefile.js lint -- fix","lint:fix:docs:js":"node Makefile.js lintDocsJS -- fix","lint:rule-types":"node tools/update-rule-type-headers.js --check","lint:types":"attw --pack","release:generate:alpha":"node Makefile.js generatePrerelease -- alpha","release:generate:beta":"node Makefile.js generatePrerelease -- beta","release:generate:latest":"node Makefile.js generateRelease -- latest","release:generate:maintenance":"node Makefile.js generateRelease -- maintenance","release:generate:rc":"node Makefile.js generatePrerelease -- rc","release:publish":"node Makefile.js publishRelease",test:"node Makefile.js test","test:browser":"node Makefile.js cypress","test:cli":"mocha","test:ecosystem":"node tools/test-ecosystem/index.mjs","test:ecosystem:update":"node tools/test-ecosystem/update.mjs","test:emfile":"node tools/check-emfile-handling.js","test:fuzz":"node Makefile.js fuzz","test:performance":"node Makefile.js perf","test:pnpm":"cd tests/pnpm && node check.js && pnpm install && pnpm exec tsc","test:types":"tsc -p tests/lib/types/tsconfig.json && npm run test:types --workspaces --if-present","test:types:5.3":"npx -p typescript@5.3 -y -- tsc -p tsconfig.types-legacy.json","test:types:5.x":"npx -p typescript@5.x -y -- tsc -p tsconfig.types.json","test:types:7.x":"npx -p @typescript/native-preview@latest -y -- tsgo -p tsconfig.types.json","test:types:all":"npm run test:types && npm run test:types:5.3 && npm run test:types:5.x && npm run test:types:7.x"},allowScripts:{"core-js":!1,cypress:!1,re2:!0,yorkie:!0},workspaces:["packages/*"],gitHooks:{"pre-commit":"lint-staged"},"lint-staged":{"*.{js,json,jsonc,json5,yml,yaml}":["eslint --fix","prettier --write"],"docs/src/**/*.md":["markdownlint-cli2 --fix","prettier --write"],"!({{*.,**/*.}{js,json,jsonc,json5,yml,yaml},docs/src/**/*.md})":"prettier --write --ignore-unknown","lib/rules/*.js":["node tools/update-eslint-all.js","node tools/update-eslint-recommended.js","node tools/update-rule-type-headers.js","git add packages/js/src/configs/*.js lib/types/rules.d.ts"],"docs/src/rules/*.md":["node tools/check-rule-examples.js","node tools/fetch-docs-links.js","git add docs/src/_data/further_reading_links.json"],"docs/**/*.svg":"npx -y svgo -r --multipass"},files:["LICENSE","README.md","bin","conf","lib","messages"],repository:"eslint/eslint",funding:"https://eslint.org/donate",homepage:"https://eslint.org",bugs:"https://github.com/eslint/eslint/issues/",dependencies:{"@eslint-community/eslint-utils":"^4.8.0","@eslint-community/regexpp":"^4.12.2","@eslint/config-array":"^0.23.6","@eslint/config-helpers":"^0.7.0","@eslint/core":"^1.2.1","@eslint/plugin-kit":"^0.7.3","@humanfs/node":"^0.16.8","@humanwhocodes/module-importer":"^1.0.1","@humanwhocodes/retry":"^0.4.2","@types/estree":"^1.0.6",ajv:"^6.14.0","cross-spawn":"^7.0.6",debug:"^4.3.2","escape-string-regexp":"^4.0.0","eslint-scope":"^9.1.2","eslint-visitor-keys":"^5.0.1",espree:"^11.2.0",esquery:"^1.7.0",esutils:"^2.0.2","fast-deep-equal":"^3.1.3","file-entry-cache":"11.1.5 || >11.1.6 <12","find-up":"^5.0.0","glob-parent":"^6.0.2",ignore:"^5.2.0",imurmurhash:"^0.1.4","is-glob":"^4.0.0","json-stable-stringify-without-jsonify":"^1.0.1",minimatch:"^11.0.5","natural-compare":"^1.4.0",optionator:"^0.9.3"},devDependencies:{"@arethetypeswrong/cli":"^0.18.3","@babel/core":"^7.4.3","@babel/preset-env":"^7.4.3","@cypress/webpack-preprocessor":"^6.0.2","@eslint/eslintrc":"^3.3.7","@eslint/json":"^2.1.1","@types/esquery":"^1.5.4","@types/node":"^22.13.14","@typescript-eslint/parser":"^8.58.2","babel-loader":"^8.0.5",c8:"^11.0.0",chai:"^4.0.1",cheerio:"^0.22.0","common-tags":"^1.8.0","core-js":"^3.1.3",cypress:"^14.1.0",ejs:"^3.0.2",eslint:"file:.","eslint-config-eslint":"file:packages/eslint-config-eslint","eslint-plugin-eslint-plugin":"^7.3.2","eslint-plugin-expect-type":"^0.7.0","eslint-plugin-yml":"^1.14.0","eslint-release":"^3.3.0","eslint-rule-extender":"^0.0.1",eslump:"^3.0.0",esprima:"^4.0.1",glob:"^10.0.0",globals:"^16.2.0","gray-matter":"^4.0.3",jiti:"^2.6.1",knip:"^6.13.1","lint-staged":"^11.0.0","markdown-it":"^14.2.0","markdown-it-container":"^4.0.0","markdownlint-cli2":"^0.22.0",marked:"^4.0.8",metascraper:"^5.25.7","metascraper-description":"^5.25.7","metascraper-image":"^5.29.3","metascraper-logo":"^5.25.7","metascraper-logo-favicon":"^5.25.7","metascraper-title":"^5.25.7",mocha:"^11.7.1","node-polyfill-webpack-plugin":"^1.0.3","npm-license":"^0.3.3",prettier:"3.9.10",progress:"^2.0.3",proxyquire:"^2.0.1","regenerator-runtime":"^0.14.0",semver:"^7.5.3",shelljs:"^0.10.0",sinon:"^11.0.0",typescript:"^6.0.3",webpack:"^5.109.2","webpack-cli":"^4.5.0",yorkie:"^2.0.0"},peerDependencies:{jiti:"*"},peerDependenciesMeta:{jiti:{optional:!0}},keywords:["ast","lint","javascript","ecmascript","espree"],license:"MIT",engines:{node:"^20.19.0 || ^22.13.0 || >=24"}}});var cd=B((mY,ud)=>{var Os=1e3,Ls=Os*60,Ns=Ls*60,qn=Ns*24,jR=qn*7,MR=qn*365.25;ud.exports=function(t,e){e=e||{};var r=typeof t;if(r==="string"&&t.length>0)return qR(t);if(r==="number"&&isFinite(t))return e.long?$R(t):UR(t);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(t))};function qR(t){if(t=String(t),!(t.length>100)){var e=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(t);if(e){var r=parseFloat(e[1]),s=(e[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return r*MR;case"weeks":case"week":case"w":return r*jR;case"days":case"day":case"d":return r*qn;case"hours":case"hour":case"hrs":case"hr":case"h":return r*Ns;case"minutes":case"minute":case"mins":case"min":case"m":return r*Ls;case"seconds":case"second":case"secs":case"sec":case"s":return r*Os;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return r;default:return}}}}function UR(t){var e=Math.abs(t);return e>=qn?Math.round(t/qn)+"d":e>=Ns?Math.round(t/Ns)+"h":e>=Ls?Math.round(t/Ls)+"m":e>=Os?Math.round(t/Os)+"s":t+"ms"}function $R(t){var e=Math.abs(t);return e>=qn?Wa(t,e,qn,"day"):e>=Ns?Wa(t,e,Ns,"hour"):e>=Ls?Wa(t,e,Ls,"minute"):e>=Os?Wa(t,e,Os,"second"):t+" ms"}function Wa(t,e,r,s){var n=e>=r*1.5;return Math.round(t/r)+" "+s+(n?"s":"")}});var Nu=B((dY,pd)=>{function VR(t){r.debug=r,r.default=r,r.coerce=l,r.disable=o,r.enable=n,r.enabled=a,r.humanize=cd(),r.destroy=u,Object.keys(t).forEach(c=>{r[c]=t[c]}),r.names=[],r.skips=[],r.formatters={};function e(c){let p=0;for(let h=0;h<c.length;h++)p=(p<<5)-p+c.charCodeAt(h),p|=0;return r.colors[Math.abs(p)%r.colors.length]}r.selectColor=e;function r(c){let p,h=null,f,d;function g(...y){if(!g.enabled)return;let v=g,S=Number(new Date),A=S-(p||S);v.diff=A,v.prev=p,v.curr=S,p=S,y[0]=r.coerce(y[0]),typeof y[0]!="string"&&y.unshift("%O");let E=0;y[0]=y[0].replace(/%([a-zA-Z%])/g,(T,w)=>{if(T==="%%")return"%";E++;let R=r.formatters[w];if(typeof R=="function"){let j=y[E];T=R.call(v,j),y.splice(E,1),E--}return T}),r.formatArgs.call(v,y),(v.log||r.log).apply(v,y)}return g.namespace=c,g.useColors=r.useColors(),g.color=r.selectColor(c),g.extend=s,g.destroy=r.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>h!==null?h:(f!==r.namespaces&&(f=r.namespaces,d=r.enabled(c)),d),set:y=>{h=y}}),typeof r.init=="function"&&r.init(g),g}function s(c,p){let h=r(this.namespace+(typeof p>"u"?":":p)+c);return h.log=this.log,h}function n(c){r.save(c),r.namespaces=c,r.names=[],r.skips=[];let p=(typeof c=="string"?c:"").trim().replace(/\s+/g,",").split(",").filter(Boolean);for(let h of p)h[0]==="-"?r.skips.push(h.slice(1)):r.names.push(h)}function i(c,p){let h=0,f=0,d=-1,g=0;for(;h<c.length;)if(f<p.length&&(p[f]===c[h]||p[f]==="*"))p[f]==="*"?(d=f,g=h,f++):(h++,f++);else if(d!==-1)f=d+1,g++,h=g;else return!1;for(;f<p.length&&p[f]==="*";)f++;return f===p.length}function o(){let c=[...r.names,...r.skips.map(p=>"-"+p)].join(",");return r.enable(""),c}function a(c){for(let p of r.skips)if(i(c,p))return!1;for(let p of r.names)if(i(c,p))return!0;return!1}function l(c){return c instanceof Error?c.stack||c.message:c}function u(){console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.")}return r.enable(r.load()),r}pd.exports=VR});var fd=B((rr,za)=>{rr.formatArgs=zR;rr.save=GR;rr.load=KR;rr.useColors=WR;rr.storage=HR();rr.destroy=(()=>{let t=!1;return()=>{t||(t=!0,console.warn("Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`."))}})();rr.colors=["#0000CC","#0000FF","#0033CC","#0033FF","#0066CC","#0066FF","#0099CC","#0099FF","#00CC00","#00CC33","#00CC66","#00CC99","#00CCCC","#00CCFF","#3300CC","#3300FF","#3333CC","#3333FF","#3366CC","#3366FF","#3399CC","#3399FF","#33CC00","#33CC33","#33CC66","#33CC99","#33CCCC","#33CCFF","#6600CC","#6600FF","#6633CC","#6633FF","#66CC00","#66CC33","#9900CC","#9900FF","#9933CC","#9933FF","#99CC00","#99CC33","#CC0000","#CC0033","#CC0066","#CC0099","#CC00CC","#CC00FF","#CC3300","#CC3333","#CC3366","#CC3399","#CC33CC","#CC33FF","#CC6600","#CC6633","#CC9900","#CC9933","#CCCC00","#CCCC33","#FF0000","#FF0033","#FF0066","#FF0099","#FF00CC","#FF00FF","#FF3300","#FF3333","#FF3366","#FF3399","#FF33CC","#FF33FF","#FF6600","#FF6633","#FF9900","#FF9933","#FFCC00","#FFCC33"];function WR(){if(typeof window<"u"&&window.process&&(window.process.type==="renderer"||window.process.__nwjs))return!0;if(typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/(edge|trident)\/(\d+)/))return!1;let t;return typeof document<"u"&&document.documentElement&&document.documentElement.style&&document.documentElement.style.WebkitAppearance||typeof window<"u"&&window.console&&(window.console.firebug||window.console.exception&&window.console.table)||typeof navigator<"u"&&navigator.userAgent&&(t=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(t[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function zR(t){if(t[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+t[0]+(this.useColors?"%c ":" ")+"+"+za.exports.humanize(this.diff),!this.useColors)return;let e="color: "+this.color;t.splice(1,0,e,"color: inherit");let r=0,s=0;t[0].replace(/%[a-zA-Z%]/g,n=>{n!=="%%"&&(r++,n==="%c"&&(s=r))}),t.splice(s,0,e)}rr.log=console.debug||console.log||(()=>{});function GR(t){try{t?rr.storage.setItem("debug",t):rr.storage.removeItem("debug")}catch{}}function KR(){let t;try{t=rr.storage.getItem("debug")||rr.storage.getItem("DEBUG")}catch{}return!t&&typeof process<"u"&&"env"in process&&(t=process.env.DEBUG),t}function HR(){try{return localStorage}catch{}}za.exports=Nu()(rr);var{formatters:JR}=za.exports;JR.j=function(t){try{return JSON.stringify(t)}catch(e){return"[UnexpectedJSONParseError]: "+e.message}}});var md=B((jt,Ka)=>{var XR=Ti("tty"),Ga=Ti("util");jt.init=n3;jt.log=e3;jt.formatArgs=YR;jt.save=t3;jt.load=r3;jt.useColors=QR;jt.destroy=Ga.deprecate(()=>{},"Instance method `debug.destroy()` is deprecated and no longer does anything. It will be removed in the next major version of `debug`.");jt.colors=[6,2,3,4,5,1];try{let t=Ti("supports-color");t&&(t.stderr||t).level>=2&&(jt.colors=[20,21,26,27,32,33,38,39,40,41,42,43,44,45,56,57,62,63,68,69,74,75,76,77,78,79,80,81,92,93,98,99,112,113,128,129,134,135,148,149,160,161,162,163,164,165,166,167,168,169,170,171,172,173,178,179,184,185,196,197,198,199,200,201,202,203,204,205,206,207,208,209,214,215,220,221])}catch{}jt.inspectOpts=Object.keys(process.env).filter(t=>/^debug_/i.test(t)).reduce((t,e)=>{let r=e.substring(6).toLowerCase().replace(/_([a-z])/g,(n,i)=>i.toUpperCase()),s=process.env[e];return/^(yes|on|true|enabled)$/i.test(s)?s=!0:/^(no|off|false|disabled)$/i.test(s)?s=!1:s==="null"?s=null:s=Number(s),t[r]=s,t},{});function QR(){return"colors"in jt.inspectOpts?!!jt.inspectOpts.colors:XR.isatty(process.stderr.fd)}function YR(t){let{namespace:e,useColors:r}=this;if(r){let s=this.color,n="\x1B[3"+(s<8?s:"8;5;"+s),i=` ${n};1m${e} \x1B[0m`;t[0]=i+t[0].split(`
3
+ `).join(`
4
+ `+i),t.push(n+"m+"+Ka.exports.humanize(this.diff)+"\x1B[0m")}else t[0]=ZR()+e+" "+t[0]}function ZR(){return jt.inspectOpts.hideDate?"":new Date().toISOString()+" "}function e3(...t){return process.stderr.write(Ga.formatWithOptions(jt.inspectOpts,...t)+`
5
+ `)}function t3(t){t?process.env.DEBUG=t:delete process.env.DEBUG}function r3(){return process.env.DEBUG}function n3(t){t.inspectOpts={};let e=Object.keys(jt.inspectOpts);for(let r=0;r<e.length;r++)t.inspectOpts[e[r]]=jt.inspectOpts[e[r]]}Ka.exports=Nu()(jt);var{formatters:hd}=Ka.exports;hd.o=function(t){return this.inspectOpts.colors=this.useColors,Ga.inspect(t,this.inspectOpts).split(`
6
+ `).map(e=>e.trim()).join(" ")};hd.O=function(t){return this.inspectOpts.colors=this.useColors,Ga.inspect(t,this.inspectOpts)}});var mn=B((gY,Ru)=>{typeof process>"u"||process.type==="renderer"||process.browser===!0||process.__nwjs?Ru.exports=fd():Ru.exports=md()});var Ja=B((yY,gd)=>{"use strict";var Ha=Mn(),s3=mn()("eslint:traverser");function dd(){}function i3(t){return t!==null&&typeof t=="object"&&typeof t.type=="string"}function a3(t,e){let r=t[e.type];return r||(r=Ha.getKeys(e),s3('Unknown node type "%s": Estimated visitor keys %j',e.type,r)),r}var ju=class t{constructor(){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=null,this._enter=null,this._leave=null}current(){return this._current}parents(){return this._parents.slice(0)}break(){this._broken=!0}skip(){this._skipped=!0}traverse(e,r){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=r.visitorKeys||Ha.KEYS,this._enter=r.enter||dd,this._leave=r.leave||dd,this._traverse(e,null)}_traverse(e,r){if(i3(e)){if(this._current=e,this._skipped=!1,this._enter(e,r),!this._skipped&&!this._broken){let s=a3(this._visitorKeys,e);if(s.length>=1){this._parents.push(e);for(let n=0;n<s.length&&!this._broken;++n){let i=e[s[n]];if(Array.isArray(i))for(let o=0;o<i.length&&!this._broken;++o)this._traverse(i[o],e);else this._traverse(i,e)}this._parents.pop()}}this._broken||this._leave(e,r),this._current=r}}static getKeys(e){return Ha.getKeys(e)}static traverse(e,r){new t().traverse(e,r)}static get DEFAULT_VISITOR_KEYS(){return Ha.KEYS}};gd.exports=ju});var yd=B(Pi=>{"use strict";Object.defineProperty(Pi,"__esModule",{value:!0});var Ii={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"]},o3=Object.keys(Ii);for(let t of o3)Object.freeze(Ii[t]);Object.freeze(Ii);var l3=new Set(["parent","leadingComments","trailingComments"]);function u3(t){return!l3.has(t)&&t[0]!=="_"}function c3(t){return Object.keys(t).filter(u3)}function p3(t){let e=Object.assign({},Ii);for(let r of Object.keys(t))if(Object.prototype.hasOwnProperty.call(e,r)){let s=new Set(t[r]);for(let n of e[r])s.add(n);e[r]=Object.freeze(Array.from(s))}else e[r]=Object.freeze(Array.from(t[r]));return Object.freeze(e)}Pi.KEYS=Ii;Pi.getKeys=c3;Pi.unionWith=p3});var Ht=B(Ye=>{"use strict";Object.defineProperty(Ye,"__esModule",{value:!0});var wd=yd();function qu(t,e){let r=e.range[0],s=t,n=!1;do{n=!1;for(let i of s.childScopes){let o=i.block.range;if(o[0]<=r&&r<o[1]){s=i,n=!0;break}}}while(n);return s}function Rs(t,e){let r="",s=t;for(typeof e=="string"?r=e:(r=e.name,s=qu(s,e));s!=null;){let n=s.set.get(r);if(n!=null)return n;s=s.upper}return null}function Sr(t){return e=>!t(e)}function Br(t,e){return t.type==="Punctuator"&&t.value===e}function Ya(t){return Br(t,"=>")}function Uu(t){return Br(t,",")}function $u(t){return Br(t,";")}function Vu(t){return Br(t,":")}function dn(t){return Br(t,"(")}function Za(t){return Br(t,")")}function Wu(t){return Br(t,"[")}function zu(t){return Br(t,"]")}function Gu(t){return Br(t,"{")}function Ku(t){return Br(t,"}")}function Hu(t){return["Block","Line","Shebang"].includes(t.type)}var Ad=Sr(Ya),kd=Sr(Uu),Td=Sr($u),Dd=Sr(Vu),Id=Sr(dn),Pd=Sr(Za),Fd=Sr(Wu),_d=Sr(zu),Bd=Sr(Gu),Od=Sr(Ku),Ld=Sr(Hu);function xd(t,e){return t.id?e.getTokenAfter(t.id,dn):e.getFirstToken(t,dn)}function Nd(t,e){let r=t.parent,s=null,n=null;if(t.type==="ArrowFunctionExpression"){let i=e.getTokenBefore(t.body,Ya);s=i.loc.start,n=i.loc.end}else r&&(r.type==="Property"||r.type==="MethodDefinition"||r.type==="PropertyDefinition")?(s=r.loc.start,n=xd(t,e).loc.start):(s=t.loc.start,n=xd(t,e).loc.start);return{start:{...s},end:{...n}}}var Rd=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof global<"u"?global:{},f3=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"])),Mu=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,typeof BigInt=="function"?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(t=>t!=="random").map(t=>Math[t]).filter(t=>typeof t=="function"),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(t=>typeof t=="function")),Ed=new Set([Object.freeze,Object.preventExtensions,Object.seal]),h3=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function m3(t,e){let r=t;for(;(typeof r=="object"||typeof r=="function")&&r!==null;){let s=Object.getOwnPropertyDescriptor(r,e);if(s)return s;r=Object.getPrototypeOf(r)}return null}function d3(t,e){let r=m3(t,e);return r!=null&&r.get!=null}function Fi(t,e){let r=[];for(let s=0;s<t.length;++s){let n=t[s];if(n==null)r.length=s+1;else if(n.type==="SpreadElement"){let i=dt(n.argument,e);if(i==null)return null;r.push(...i.value)}else{let i=dt(n,e);if(i==null)return null;r.push(i.value)}}return r}function g3(t){return t!=null&&t.defs.length===0&&f3.has(t.name)&&t.name in Rd}function y3(t){if(t.defs.length!==1)return!1;let e=t.defs[0];return!!(e.parent&&e.type==="Variable"&&(e.parent.kind==="const"||x3(t)))}function x3(t){let e=t.references,r=e.filter(n=>n.init).length,s=e.filter(n=>n.isReadOnly()).length;return r===1&&s+r===e.length}function E3(t,e){for(let s of t.references){let n=s.identifier;for(;n&&n.parent&&n.parent.type==="MemberExpression";)n=n.parent;if(!(!n||!n.parent)){if(n.parent.type==="AssignmentExpression"&&n.parent.left===n||n.parent.type==="UpdateExpression"&&n.parent.argument===n)return!0;if(n.parent.type==="CallExpression"&&n.parent.callee===n&&n.type==="MemberExpression"){let i=Xa(n,e);if(r(i))return!0}}}return!1;function r(s){if(s==null||s.value==null)return!1;let n=s.value;return n==="copyWithin"||n==="fill"||n==="pop"||n==="push"||n==="reverse"||n==="shift"||n==="sort"||n==="splice"||n==="unshift"}}var bd=Object.freeze({ArrayExpression(t,e){let r=Fi(t.elements,e);return r!=null?{value:r}:null},AssignmentExpression(t,e){return t.operator==="="?dt(t.right,e):null},BinaryExpression(t,e){if(t.operator==="in"||t.operator==="instanceof")return null;let r=dt(t.left,e),s=dt(t.right,e);if(r!=null&&s!=null)switch(t.operator){case"==":return{value:r.value==s.value};case"!=":return{value:r.value!=s.value};case"===":return{value:r.value===s.value};case"!==":return{value:r.value!==s.value};case"<":return{value:r.value<s.value};case"<=":return{value:r.value<=s.value};case">":return{value:r.value>s.value};case">=":return{value:r.value>=s.value};case"<<":return{value:r.value<<s.value};case">>":return{value:r.value>>s.value};case">>>":return{value:r.value>>>s.value};case"+":return{value:r.value+s.value};case"-":return{value:r.value-s.value};case"*":return{value:r.value*s.value};case"/":return{value:r.value/s.value};case"%":return{value:r.value%s.value};case"**":return{value:r.value**s.value};case"|":return{value:r.value|s.value};case"^":return{value:r.value^s.value};case"&":return{value:r.value&s.value}}return null},CallExpression(t,e){let r=t.callee,s=Fi(t.arguments,e);if(s!=null)if(r.type==="MemberExpression"){if(r.property.type==="PrivateIdentifier")return null;let n=dt(r.object,e);if(n!=null){if(n.value==null&&(n.optional||t.optional))return{value:void 0,optional:!0};let i=Xa(r,e);if(i!=null){let o=n.value,a=i.value;if(Mu.has(o[a]))return{value:o[a](...s)};if(Ed.has(o[a]))return{value:s[0]}}}}else{let n=dt(r,e);if(n!=null){if(n.value==null&&t.optional)return{value:void 0,optional:!0};let i=n.value;if(Mu.has(i))return{value:i(...s)};if(Ed.has(i))return{value:s[0]}}}return null},ConditionalExpression(t,e){let r=dt(t.test,e);return r!=null?r.value?dt(t.consequent,e):dt(t.alternate,e):null},ExpressionStatement(t,e){return dt(t.expression,e)},Identifier(t,e){if(e!=null){let r=Rs(e,t);if(r!=null){if(g3(r))return{value:Rd[r.name]};if(y3(r)){let s=r.defs[0];if(s.node.id.type==="Identifier"){let n=dt(s.node.init,e);return n&&typeof n.value=="object"&&n.value!==null&&E3(r,e)?null:n}}}}return null},Literal(t){let e=t;return(e.regex!=null||e.bigint!=null)&&e.value==null?null:{value:e.value}},LogicalExpression(t,e){let r=dt(t.left,e);if(r!=null){if(t.operator==="||"&&r.value||t.operator==="&&"&&!r.value||t.operator==="??"&&r.value!=null)return r;let s=dt(t.right,e);if(s!=null)return s}return null},MemberExpression(t,e){if(t.property.type==="PrivateIdentifier")return null;let r=dt(t.object,e);if(r!=null){if(r.value==null&&(r.optional||t.optional))return{value:void 0,optional:!0};let s=Xa(t,e);if(s!=null){if(!d3(r.value,s.value))return{value:r.value[s.value]};for(let[n,i]of h3)if(r.value instanceof n&&i.has(s.value))return{value:r.value[s.value]}}}return null},ChainExpression(t,e){let r=dt(t.expression,e);return r!=null?{value:r.value}:null},NewExpression(t,e){let r=dt(t.callee,e),s=Fi(t.arguments,e);if(r!=null&&s!=null){let n=r.value;if(Mu.has(n))return{value:new n(...s)}}return null},ObjectExpression(t,e){let r={};for(let s of t.properties)if(s.type==="Property"){if(s.kind!=="init")return null;let n=Xa(s,e),i=dt(s.value,e);if(n==null||i==null)return null;r[n.value]=i.value}else if(s.type==="SpreadElement"||s.type==="ExperimentalSpreadProperty"){let n=dt(s.argument,e);if(n==null)return null;Object.assign(r,n.value)}else return null;return{value:r}},SequenceExpression(t,e){let r=t.expressions[t.expressions.length-1];return dt(r,e)},TaggedTemplateExpression(t,e){let r=dt(t.tag,e),s=Fi(t.quasi.expressions,e);if(r!=null&&s!=null){let n=r.value,i=t.quasi.quasis.map(o=>o.value.cooked);if(i.raw=t.quasi.quasis.map(o=>o.value.raw),n===String.raw)return{value:n(i,...s)}}return null},TemplateLiteral(t,e){let r=Fi(t.expressions,e);if(r!=null){let s=t.quasis[0].value.cooked;for(let n=0;n<r.length;++n)s+=r[n],s+=t.quasis[n+1].value.cooked;return{value:s}}return null},UnaryExpression(t,e){if(t.operator==="delete")return null;if(t.operator==="void")return{value:void 0};let r=dt(t.argument,e);if(r!=null)switch(t.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},TSAsExpression(t,e){return dt(t.expression,e)},TSSatisfiesExpression(t,e){return dt(t.expression,e)},TSTypeAssertion(t,e){return dt(t.expression,e)},TSNonNullExpression(t,e){return dt(t.expression,e)},TSInstantiationExpression(t,e){return dt(t.expression,e)}});function dt(t,e){return t!=null&&Object.hasOwnProperty.call(bd,t.type)?bd[t.type](t,e):null}function Xa(t,e){let r=t.type==="Property"?t.key:t.property;return t.computed?dt(r,e):r.type==="Identifier"?{value:r.name}:r.type==="Literal"?r.bigint?{value:r.bigint}:{value:String(r.value)}:null}function Ju(t,e=null){try{return dt(t,e)}catch{return null}}function _i(t,e=null){if(t&&t.type==="Literal"&&t.value===null){let s=t;if(s.regex)return`/${s.regex.pattern}/${s.regex.flags}`;if(s.bigint)return s.bigint}let r=Ju(t,e);if(r)try{return String(r.value)}catch{}return null}function Bi(t,e){switch(t.type){case"MemberExpression":return t.computed?_i(t.property,e):t.property.type==="PrivateIdentifier"?null:t.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":return t.computed?_i(t.key,e):t.key.type==="Literal"?String(t.key.value):t.key.type==="PrivateIdentifier"?null:t.key.name}return null}function jd(t,e){let r=t.parent;if(!r)return"";let s=[],n=r.type==="Property"&&r.value===t,i=r.type==="MethodDefinition"&&r.value===t,o=r.type==="PropertyDefinition"&&r.value===t;if((i||o)&&(r.static&&s.push("static"),r.key.type==="PrivateIdentifier"&&s.push("private")),t.async&&s.push("async"),t.generator&&s.push("generator"),n||i){if(r.kind==="constructor")return"constructor";r.kind==="get"?s.push("getter"):r.kind==="set"?s.push("setter"):s.push("method")}else o?s.push("method"):(t.type==="ArrowFunctionExpression"&&s.push("arrow"),s.push("function"));if(n||i||o)if(r.key.type==="PrivateIdentifier")s.push(`#${r.key.name}`);else{let a=Bi(r);if(a)s.push(`'${a}'`);else if(e){let l=e.getText(r.key);l.includes(`
7
+ `)||s.push(`[${l}]`)}}else b3(t)?s.push(`'${t.id.name}'`):r.type==="VariableDeclarator"&&r.id&&r.id.type==="Identifier"?s.push(`'${r.id.name}'`):(r.type==="AssignmentExpression"||r.type==="AssignmentPattern")&&r.left&&r.left.type==="Identifier"?s.push(`'${r.left.name}'`):r.type==="ExportDefaultDeclaration"&&r.declaration===t&&s.push("'default'");return s.join(" ")}function b3(t){return!!t.id}var v3=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),S3=Object.freeze(new Set(["-","+","!","~"]));function vd(t){return t!==null&&typeof t=="object"&&typeof t.type=="string"}var C3=Object.freeze(Object.assign(Object.create(null),{$visit(t,e,r){let{type:s}=t;return typeof this[s]=="function"?this[s](t,e,r):this.$visitChildren(t,e,r)},$visitChildren(t,e,r){let{type:s}=t;for(let n of r[s]||wd.getKeys(t)){let i=t[n];if(Array.isArray(i)){for(let o of i)if(vd(o)&&this.$visit(o,e,r))return!0}else if(vd(i)&&this.$visit(i,e,r))return!0}return!1},ArrowFunctionExpression(){return!1},AssignmentExpression(){return!0},AwaitExpression(){return!0},BinaryExpression(t,e,r){return e.considerImplicitTypeConversion&&v3.has(t.operator)&&(t.left.type!=="Literal"||t.right.type!=="Literal")?!0:this.$visitChildren(t,e,r)},CallExpression(){return!0},FunctionExpression(){return!1},ImportExpression(){return!0},MemberExpression(t,e,r){return e.considerGetters||e.considerImplicitTypeConversion&&t.computed&&t.property.type!=="Literal"?!0:this.$visitChildren(t,e,r)},MethodDefinition(t,e,r){return e.considerImplicitTypeConversion&&t.computed&&t.key.type!=="Literal"?!0:this.$visitChildren(t,e,r)},NewExpression(){return!0},Property(t,e,r){return e.considerImplicitTypeConversion&&t.computed&&t.key.type!=="Literal"?!0:this.$visitChildren(t,e,r)},PropertyDefinition(t,e,r){return e.considerImplicitTypeConversion&&t.computed&&t.key.type!=="Literal"?!0:this.$visitChildren(t,e,r)},UnaryExpression(t,e,r){return t.operator==="delete"||e.considerImplicitTypeConversion&&S3.has(t.operator)&&t.argument.type!=="Literal"?!0:this.$visitChildren(t,e,r)},UpdateExpression(){return!0},YieldExpression(){return!0}}));function Md(t,e,r={}){let{considerGetters:s=!1,considerImplicitTypeConversion:n=!1}=r;return C3.$visit(t,{considerGetters:s,considerImplicitTypeConversion:n},e.visitorKeys||wd.KEYS)}function w3(t,e){let r=t.parent;if(!r)return null;switch(r.type){case"CallExpression":case"NewExpression":return r.arguments.length===1&&r.arguments[0]===t?e.getTokenAfter(r.typeArguments||r.typeParameters||r.callee,dn):null;case"DoWhileStatement":return r.test===t?e.getTokenAfter(r.body,dn):null;case"IfStatement":case"WhileStatement":return r.test===t?e.getFirstToken(r,1):null;case"ImportExpression":return r.source===t?e.getFirstToken(r,1):null;case"SwitchStatement":return r.discriminant===t?e.getFirstToken(r,1):null;case"WithStatement":return r.object===t?e.getFirstToken(r,1):null;default:return null}}function qd(t,e,r){let s,n,i,o,a;if(typeof t=="number"){if(s=t|0,n=e,i=r,!(s>=1))throw new TypeError("'times' should be a positive integer.")}else s=1,n=t,i=e;if(n==null||n.parent==null||n.parent.type==="CatchClause"&&n.parent.param===n)return!1;o=a=n;do o=i.getTokenBefore(o),a=i.getTokenAfter(a);while(o!=null&&a!=null&&dn(o)&&Za(a)&&o!==w3(n,i)&&--s>0);return s===0}var A3=/\$(?:[$&`']|[1-9][0-9]?)/gu,Sd=new WeakMap;function k3(t,e){let r=!1;for(let s=e-1;s>=0&&t.charCodeAt(s)===92;--s)r=!r;return r}function T3(t,e,r){let s=[],n=0;function i(o,a){switch(o){case"$$":return"$";case"$&":return a[0];case"$`":return e.slice(0,a.index);case"$'":return e.slice(a.index+a[0].length);default:{let l=o.slice(1);return l in a?a[l]:o}}}for(let o of t.execAll(e))s.push(e.slice(n,o.index)),s.push(r.replace(A3,a=>i(a,o))),n=o.index+o[0].length;return s.push(e.slice(n)),s.join("")}function D3(t,e,r){let s=[],n=0;for(let i of t.execAll(e))s.push(e.slice(n,i.index)),s.push(String(r(...i,i.index,i.input))),n=i.index+i[0].length;return s.push(e.slice(n)),s.join("")}var Qa=class{constructor(e,r={}){let{escaped:s=!1}=r;if(!(e instanceof RegExp))throw new TypeError("'pattern' should be a RegExp instance.");if(!e.flags.includes("g"))throw new Error("'pattern' should contains 'g' flag.");Sd.set(this,{pattern:new RegExp(e.source,e.flags),escaped:!!s})}*execAll(e){let{pattern:r,escaped:s}=Sd.get(this),n=null,i=0;for(r.lastIndex=0;(n=r.exec(e))!=null;)(s||!k3(e,n.index))&&(i=r.lastIndex,yield n,r.lastIndex=i)}test(e){return!this.execAll(e).next().done}[Symbol.replace](e,r){return typeof r=="function"?D3(this,String(e),r):T3(this,String(e),String(r))}},I3=/^(?:Import|Export(?:All|Default|Named))Declaration$/u;function P3(t){return I3.test(t.type)&&t.source!=null}var Un=Function.call.bind(Object.hasOwnProperty),gt=Symbol("read"),$n=Symbol("call"),js=Symbol("construct"),eo=Symbol("esm"),F3={require:{[$n]:!0}};function Cd(t){return t==null||t.defs.length!==0||t.references.some(e=>e.isWrite())}function _3(t){let e=t.parent;if(e)switch(e.type){case"ConditionalExpression":return e.consequent===t||e.alternate===t;case"LogicalExpression":return!0;case"SequenceExpression":return e.expressions[e.expressions.length-1]===t;case"ChainExpression":return!0;case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":case"TSInstantiationExpression":return!0;default:return!1}return!1}var gn=class{constructor(e,r={}){let{mode:s="strict",globalObjectNames:n=["global","globalThis","self","window"]}=r;this.variableStack=[],this.globalScope=e,this.mode=s,this.globalObjectNames=n.slice(0)}*iterateGlobalReferences(e){for(let r of Object.keys(e)){let s=e[r],n=[r],i=this.globalScope.set.get(r);Cd(i)||(yield*this._iterateVariableReferences(i,n,s,!0))}for(let r of this.globalObjectNames){let s=[],n=this.globalScope.set.get(r);Cd(n)||(yield*this._iterateVariableReferences(n,s,e,!1))}}*iterateCjsReferences(e){for(let{node:r}of this.iterateGlobalReferences(F3)){let s=_i(r.arguments[0]);if(s==null||!Un(e,s))continue;let n=e[s],i=[s];n[gt]&&(yield{node:r,path:i,type:gt,info:n[gt]}),yield*this._iteratePropertyReferences(r,i,n)}}*iterateEsmReferences(e){let r=this.globalScope.block;for(let s of r.body){if(!P3(s))continue;let n=s.source.value;if(!Un(e,n))continue;let i=e[n],o=[n];if(i[gt]&&(yield{node:s,path:o,type:gt,info:i[gt]}),s.type==="ExportAllDeclaration")for(let a of Object.keys(i)){let l=i[a];l[gt]&&(yield{node:s,path:o.concat(a),type:gt,info:l[gt]})}else for(let a of s.specifiers){let l=Un(i,eo),u=this._iterateImportReferences(a,o,l?i:this.mode==="legacy"?{default:i,...i}:{default:i});if(l)yield*u;else for(let c of u)c.path=c.path.filter(B3),(c.path.length>=2||c.type!==gt)&&(yield c)}}}*iteratePropertyReferences(e,r){yield*this._iteratePropertyReferences(e,[],r)}*_iterateVariableReferences(e,r,s,n){if(!this.variableStack.includes(e)){this.variableStack.push(e);try{for(let i of e.references){if(!i.isRead())continue;let o=i.identifier;n&&s[gt]&&(yield{node:o,path:r,type:gt,info:s[gt]}),yield*this._iteratePropertyReferences(o,r,s)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(e,r,s){let n=e;for(;_3(n);)n=n.parent;let i=n.parent;if(i){if(i.type==="MemberExpression"){if(i.object===n){let o=Bi(i);if(o==null||!Un(s,o))return;r=r.concat(o);let a=s[o];a[gt]&&(yield{node:i,path:r,type:gt,info:a[gt]}),yield*this._iteratePropertyReferences(i,r,a)}return}if(i.type==="CallExpression"){i.callee===n&&s[$n]&&(yield{node:i,path:r,type:$n,info:s[$n]});return}if(i.type==="NewExpression"){i.callee===n&&s[js]&&(yield{node:i,path:r,type:js,info:s[js]});return}if(i.type==="AssignmentExpression"){i.right===n&&(yield*this._iterateLhsReferences(i.left,r,s),yield*this._iteratePropertyReferences(i,r,s));return}if(i.type==="AssignmentPattern"){i.right===n&&(yield*this._iterateLhsReferences(i.left,r,s));return}i.type==="VariableDeclarator"&&i.init===n&&(yield*this._iterateLhsReferences(i.id,r,s))}}*_iterateLhsReferences(e,r,s){if(e.type==="Identifier"){let n=Rs(this.globalScope,e);n!=null&&(yield*this._iterateVariableReferences(n,r,s,!1));return}if(e.type==="ObjectPattern"){for(let n of e.properties){let i=Bi(n);if(i==null||!Un(s,i))continue;let o=r.concat(i),a=s[i];a[gt]&&(yield{node:n,path:o,type:gt,info:a[gt]}),yield*this._iterateLhsReferences(n.value,o,a)}return}e.type==="AssignmentPattern"&&(yield*this._iterateLhsReferences(e.left,r,s))}*_iterateImportReferences(e,r,s){let n=e.type;if(n==="ImportSpecifier"||n==="ImportDefaultSpecifier"){let i=n==="ImportDefaultSpecifier"?"default":e.imported.type==="Identifier"?e.imported.name:e.imported.value;if(!Un(s,i))return;r=r.concat(i);let o=s[i];o[gt]&&(yield{node:e,path:r,type:gt,info:o[gt]}),yield*this._iterateVariableReferences(Rs(this.globalScope,e.local),r,o,!1);return}if(n==="ImportNamespaceSpecifier"){yield*this._iterateVariableReferences(Rs(this.globalScope,e.local),r,s,!1);return}if(n==="ExportSpecifier"){let i=e.local.type==="Identifier"?e.local.name:e.local.value;if(!Un(s,i))return;r=r.concat(i);let o=s[i];o[gt]&&(yield{node:e,path:r,type:gt,info:o[gt]})}}};gn.READ=gt;gn.CALL=$n;gn.CONSTRUCT=js;gn.ESM=eo;function B3(t,e){return!(e===1&&t==="default")}var O3={CALL:$n,CONSTRUCT:js,ESM:eo,findVariable:Rs,getFunctionHeadLocation:Nd,getFunctionNameWithKind:jd,getInnermostScope:qu,getPropertyName:Bi,getStaticValue:Ju,getStringIfConstant:_i,hasSideEffect:Md,isArrowToken:Ya,isClosingBraceToken:Ku,isClosingBracketToken:zu,isClosingParenToken:Za,isColonToken:Vu,isCommaToken:Uu,isCommentToken:Hu,isNotArrowToken:Ad,isNotClosingBraceToken:Od,isNotClosingBracketToken:_d,isNotClosingParenToken:Pd,isNotColonToken:Dd,isNotCommaToken:kd,isNotCommentToken:Ld,isNotOpeningBraceToken:Bd,isNotOpeningBracketToken:Fd,isNotOpeningParenToken:Id,isNotSemicolonToken:Td,isOpeningBraceToken:Gu,isOpeningBracketToken:Wu,isOpeningParenToken:dn,isParenthesized:qd,isSemicolonToken:$u,PatternMatcher:Qa,READ:gt,ReferenceTracker:gn};Ye.CALL=$n;Ye.CONSTRUCT=js;Ye.ESM=eo;Ye.PatternMatcher=Qa;Ye.READ=gt;Ye.ReferenceTracker=gn;Ye.default=O3;Ye.findVariable=Rs;Ye.getFunctionHeadLocation=Nd;Ye.getFunctionNameWithKind=jd;Ye.getInnermostScope=qu;Ye.getPropertyName=Bi;Ye.getStaticValue=Ju;Ye.getStringIfConstant=_i;Ye.hasSideEffect=Md;Ye.isArrowToken=Ya;Ye.isClosingBraceToken=Ku;Ye.isClosingBracketToken=zu;Ye.isClosingParenToken=Za;Ye.isColonToken=Vu;Ye.isCommaToken=Uu;Ye.isCommentToken=Hu;Ye.isNotArrowToken=Ad;Ye.isNotClosingBraceToken=Od;Ye.isNotClosingBracketToken=_d;Ye.isNotClosingParenToken=Pd;Ye.isNotColonToken=Dd;Ye.isNotCommaToken=kd;Ye.isNotCommentToken=Ld;Ye.isNotOpeningBraceToken=Bd;Ye.isNotOpeningBracketToken=Fd;Ye.isNotOpeningParenToken=Id;Ye.isNotSemicolonToken=Td;Ye.isOpeningBraceToken=Gu;Ye.isOpeningBracketToken=Wu;Ye.isOpeningParenToken=dn;Ye.isParenthesized=qd;Ye.isSemicolonToken=$u});var Oi=B((bY,Ud)=>{"use strict";function L3(t,e="Assertion failed."){if(!t)throw new Error(e)}Ud.exports=L3});var Ms=B((SY,$d)=>{"use strict";$d.exports=class{constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){let e=[];for(;this.moveNext();)e.push(this.current);return e}moveNext(){throw new Error("Not implemented.")}}});var qs=B((CY,Vd)=>{"use strict";function N3(t,e){for(let r=0,s=t.length-1;r<=s;){let n=(r+s)/2|0,o=t[n].range[0];if(e<=o){if(n===r)return n;s=n}else r=n+1}return t.length}function R3(t,e,r){if(r===-1)return 0;if(r in e)return e[r];if(r-1 in e){let s=e[r-1],n=t[s];return n?n.range[0]>=r?s:s+1:t.length}return r===0?0:t.length}function j3(t,e,r){if(r===-1)return t.length-1;if(r in e)return e[r]-1;if(r-1 in e){let s=e[r-1],n=t[s];return n?n.range[1]>r?s-1:s:t.length-1}return r===0?-1:t.length-1}Vd.exports={search:N3,getFirstIndex:R3,getLastIndex:j3}});var Gd=B((AY,zd)=>{"use strict";var M3=Ms(),Wd=qs();zd.exports=class extends M3{constructor(e,r,s,n,i){super(),this.tokens=e,this.comments=r,this.tokenIndex=Wd.getLastIndex(e,s,i),this.commentIndex=Wd.search(r,i)-1,this.border=n}moveNext(){let e=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,r=this.commentIndex>=0?this.comments[this.commentIndex]:null;return e&&(!r||e.range[1]>r.range[1])?(this.current=e,this.tokenIndex-=1):r?(this.current=r,this.commentIndex-=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[0]>=this.border)}}});var Hd=B((TY,Kd)=>{"use strict";var q3=Ms(),{getLastIndex:U3,getFirstIndex:$3}=qs();Kd.exports=class extends q3{constructor(e,r,s,n,i){super(),this.tokens=e,this.index=U3(e,s,i),this.indexEnd=$3(e,s,n)}moveNext(){return this.index>=this.indexEnd?(this.current=this.tokens[this.index],this.index-=1,!0):!1}getOneToken(){return this.index>=this.indexEnd?this.tokens[this.index]:null}}});var to=B((IY,Jd)=>{"use strict";var V3=Ms();Jd.exports=class extends V3{constructor(e){super(),this.cursor=e}moveNext(){let e=this.cursor.moveNext();return this.current=this.cursor.current,e}}});var Qd=B((FY,Xd)=>{"use strict";var W3=to();Xd.exports=class extends W3{constructor(e,r){super(e),this.predicate=r}moveNext(){let e=this.predicate;for(;super.moveNext();)if(e(this.current))return!0;return!1}}});var Zd=B((BY,Yd)=>{"use strict";var z3=Ms(),{getFirstIndex:G3,search:K3}=qs();Yd.exports=class extends z3{constructor(e,r,s,n,i){super(),this.tokens=e,this.comments=r,this.tokenIndex=G3(e,s,n),this.commentIndex=K3(r,n),this.border=i}moveNext(){let e=this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex]:null,r=this.commentIndex<this.comments.length?this.comments[this.commentIndex]:null;return e&&(!r||e.range[0]<r.range[0])?(this.current=e,this.tokenIndex+=1):r?(this.current=r,this.commentIndex+=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[1]<=this.border)}}});var ro=B((LY,eg)=>{"use strict";var H3=Ms(),{getFirstIndex:J3,getLastIndex:X3}=qs();eg.exports=class extends H3{constructor(e,r,s,n,i){super(),this.tokens=e,this.index=J3(e,s,n),this.indexEnd=X3(e,s,i)}moveNext(){return this.index<=this.indexEnd?(this.current=this.tokens[this.index],this.index+=1,!0):!1}getOneToken(){return this.index<=this.indexEnd?this.tokens[this.index]:null}getAllTokens(){return this.tokens.slice(this.index,this.indexEnd+1)}}});var rg=B((RY,tg)=>{"use strict";var Q3=to();tg.exports=class extends Q3{constructor(e,r){super(e),this.count=r}moveNext(){return this.count>0?(this.count-=1,super.moveNext()):!1}}});var sg=B((MY,ng)=>{"use strict";var Y3=to();ng.exports=class extends Y3{constructor(e,r){super(e),this.count=r}moveNext(){for(;this.count>0;)if(this.count-=1,!super.moveNext())return!1;return super.moveNext()}}});var ag=B((qY,ig)=>{"use strict";var Z3=Gd(),ej=Hd(),tj=Qd(),rj=Zd(),nj=ro(),sj=rg(),ij=sg(),no=class{constructor(e,r){this.TokenCursor=e,this.TokenCommentCursor=r}createBaseCursor(e,r,s,n,i,o){let a=o?this.TokenCommentCursor:this.TokenCursor;return new a(e,r,s,n,i)}createCursor(e,r,s,n,i,o,a,l,u){let c=this.createBaseCursor(e,r,s,n,i,o);return a&&(c=new tj(c,a)),l>=1&&(c=new ij(c,l)),u>=0&&(c=new sj(c,u)),c}};ig.exports={forward:new no(nj,rj),backward:new no(ej,Z3)}});var lg=B(($Y,og)=>{"use strict";var aj=ro();og.exports=class extends aj{constructor(e,r,s,n,i,o,a){super(e,r,s,n,i),this.index=Math.max(0,this.index-o),this.indexEnd=Math.min(e.length-1,this.indexEnd+a)}}});var hg=B((WY,fg)=>{"use strict";var{isCommentToken:pg}=Ht(),so=Oi(),Yt=ag(),oj=ro(),lj=lg(),uj=qs(),Mt=Symbol("tokens"),It=Symbol("comments"),qt=Symbol("indexMap");function cj(t,e){let r=Object.create(null),s=0,n=0,i,o;for(;s<t.length||n<e.length;){for(i=n<e.length?e[n].range[0]:Number.MAX_SAFE_INTEGER;s<t.length&&(o=t[s].range)[0]<i;)r[o[0]]=s,r[o[1]-1]=s,s+=1;for(i=s<t.length?t[s].range[0]:Number.MAX_SAFE_INTEGER;n<e.length&&(o=e[n].range)[0]<i;)r[o[0]]=s,r[o[1]-1]=s,n+=1}return r}function Us(t,e,r,s,n,i,o){let a=!1,l=0,u=null;return typeof o=="number"?l=o|0:typeof o=="function"?u=o:o&&(a=!!o.includeComments,l=o.skip|0,u=o.filter||null),so(l>=0,"options.skip should be zero or a positive integer."),so(!u||typeof u=="function","options.filter should be a function."),t.createCursor(e,r,s,n,i,a,u,l,-1)}function Xr(t,e,r,s,n,i,o){let a=!1,l=0,u=!1,c=null;return typeof o=="number"?(l=o|0,u=!0):typeof o=="function"?c=o:o&&(a=!!o.includeComments,l=o.count|0,u=typeof o.count=="number",c=o.filter||null),so(l>=0,"options.count should be zero or a positive integer."),so(!c||typeof c=="function","options.filter should be a function."),t.createCursor(e,r,s,n,i,a,c,0,u?l:-1)}function ug(t,e,r,s,n,i,o){return typeof i>"u"&&typeof o>"u"?new oj(t,e,r,s,n):typeof i=="number"||typeof i>"u"?new lj(t,e,r,s,n,i|0,o|0):Xr(Yt.forward,t,e,r,s,n,i)}function cg(t){let e=[],r=t.getOneToken();for(;r&&pg(r);)e.push(r),r=t.getOneToken();return e}fg.exports=class{constructor(e,r){this[Mt]=e,this[It]=r,this[qt]=cj(e,r)}getTokenByRangeStart(e,r){let s=r&&r.includeComments,n=Yt.forward.createBaseCursor(this[Mt],this[It],this[qt],e,-1,s).getOneToken();return n&&n.range[0]===e?n:null}getFirstToken(e,r){return Us(Yt.forward,this[Mt],this[It],this[qt],e.range[0],e.range[1],r).getOneToken()}getLastToken(e,r){return Us(Yt.backward,this[Mt],this[It],this[qt],e.range[0],e.range[1],r).getOneToken()}getTokenBefore(e,r){return Us(Yt.backward,this[Mt],this[It],this[qt],-1,e.range[0],r).getOneToken()}getTokenAfter(e,r){return Us(Yt.forward,this[Mt],this[It],this[qt],e.range[1],-1,r).getOneToken()}getFirstTokenBetween(e,r,s){return Us(Yt.forward,this[Mt],this[It],this[qt],e.range[1],r.range[0],s).getOneToken()}getLastTokenBetween(e,r,s){return Us(Yt.backward,this[Mt],this[It],this[qt],e.range[1],r.range[0],s).getOneToken()}getFirstTokens(e,r){return Xr(Yt.forward,this[Mt],this[It],this[qt],e.range[0],e.range[1],r).getAllTokens()}getLastTokens(e,r){return Xr(Yt.backward,this[Mt],this[It],this[qt],e.range[0],e.range[1],r).getAllTokens().reverse()}getTokensBefore(e,r){return Xr(Yt.backward,this[Mt],this[It],this[qt],-1,e.range[0],r).getAllTokens().reverse()}getTokensAfter(e,r){return Xr(Yt.forward,this[Mt],this[It],this[qt],e.range[1],-1,r).getAllTokens()}getFirstTokensBetween(e,r,s){return Xr(Yt.forward,this[Mt],this[It],this[qt],e.range[1],r.range[0],s).getAllTokens()}getLastTokensBetween(e,r,s){return Xr(Yt.backward,this[Mt],this[It],this[qt],e.range[1],r.range[0],s).getAllTokens().reverse()}getTokens(e,r,s){return ug(this[Mt],this[It],this[qt],e.range[0],e.range[1],r,s).getAllTokens()}getTokensBetween(e,r,s){return ug(this[Mt],this[It],this[qt],e.range[1],r.range[0],s,s).getAllTokens()}commentsExistBetween(e,r){let s=uj.search(this[It],e.range[1]);return s<this[It].length&&this[It][s].range[1]<=r.range[0]}getCommentsBefore(e){let r=Xr(Yt.backward,this[Mt],this[It],this[qt],-1,e.range[0],{includeComments:!0});return cg(r).reverse()}getCommentsAfter(e){let r=Xr(Yt.forward,this[Mt],this[It],this[qt],e.range[1],-1,{includeComments:!0});return cg(r)}getCommentsInside(e){return this.getTokens(e,{includeComments:!0,filter:pg})}}});var Li=B((zY,dg)=>{"use strict";var pj=/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,mg=/\r\n|[\r\n\u2028\u2029]/u,fj=/^#!([^\r\n\u2028\u2029]*)/u;function hj(){return new RegExp(mg.source,"gu")}dg.exports={breakableTypePattern:pj,lineBreakPattern:mg,createGlobalLinebreakMatcher:hj,shebangPattern:fj}});var Xu=B((GY,Ig)=>{"use strict";var mj={exports:!0,global:!1,module:!1,require:!1},gg={Array:!1,Boolean:!1,constructor:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,propertyIsEnumerable:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1},yg={...gg,JSON:!1},xg={...yg,ArrayBuffer:!1,DataView:!1,Float32Array:!1,Float64Array:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,Map:!1,Promise:!1,Proxy:!1,Reflect:!1,Set:!1,Symbol:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,WeakMap:!1,WeakSet:!1},Eg={...xg},bg={...Eg,Atomics:!1,SharedArrayBuffer:!1},vg={...bg},Sg={...vg},Cg={...Sg,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},wg={...Cg,AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1},Ag={...wg},kg={...Ag},Tg={...kg},Dg={...Tg,Float16Array:!1,Iterator:!1},dj={...Dg,AsyncDisposableStack:!1,DisposableStack:!1,SuppressedError:!1,Temporal:!1};Ig.exports={commonjs:mj,es3:gg,es5:yg,es2015:xg,es2016:Eg,es2017:bg,es2018:vg,es2019:Sg,es2020:Cg,es2021:wg,es2022:Ag,es2023:kg,es2024:Tg,es2025:Dg,es2026:dj}});var Qu=B((KY,Pg)=>{"use strict";var gj=/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u;Pg.exports={directivesPattern:gj}});var Yu=B((HY,Fg)=>{"use strict";var yn=mn()("eslint:code-path");function yj(t){return t.id+(t.reachable?"":"!")}function io(t,e){let r=e?`:${e}`:"";switch(t.type){case"Identifier":return`${t.type}${r} (${t.name})`;case"Literal":return`${t.type}${r} (${t.value})`;default:return`${t.type}${r}`}}function xj(t){return t.replace(/\\/gu,String.raw`\\`).replace(/"/gu,String.raw`\"`)}Fg.exports={enabled:yn.enabled,dump:yn,dumpState:yn.enabled?function(t,e,r){for(let s=0;s<e.currentSegments.length;++s){let n=e.currentSegments[s].internal;if(r){let i=n.nodes.length-1;i>=0&&n.nodes[i]===io(t,"enter")?n.nodes[i]=io(t,void 0):n.nodes.push(io(t,"exit"))}else n.nodes.push(io(t,"enter"))}yn("%s) %s%s",e.currentSegments.map(yj).join(","),t.type,r?":exit":"")}:yn,dumpDot:yn.enabled?function(t){let e=`
8
+ digraph {
9
+ node[shape=box,style="rounded,filled",fillcolor=white];
10
+ initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
11
+ `;t.returnedSegments.length>0&&(e+=`final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
12
+ `),t.thrownSegments.length>0&&(e+=`thrown[label="\u2718",shape=circle,width=0.3,height=0.3,fixedsize=true];
13
+ `);let r=Object.create(null),s=this.makeDotArrows(t,r);for(let n in r){let i=r[n];e+=`${n}[`,i.reachable?e+='label="':e+='style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\\n',i.internal.nodes.length>0?e+=i.internal.nodes.map(xj).join("\\n"):e+="????",e+=`"];
14
+ `}e+=`${s}
15
+ `,e+="}",yn("DOT",e)}:yn,makeDotArrows(t,e){let r=[[t.initialSegment,0]],s=e||Object.create(null),n=t.initialSegment.id,i=`initial->${t.initialSegment.id}`;for(;r.length>0;){let o=r.pop(),a=o[0],l=o[1];if(s[a.id]&&l===0)continue;s[a.id]=a;let u=a.allNextSegments[l];u&&(n===a.id?i+=`->${u.id}`:i+=`;
16
+ ${a.id}->${u.id}`,n=u.id,r.unshift([a,1+l]),r.push([u,0]))}return t.returnedSegments.forEach(o=>{n===o.id?i+="->final":i+=`;
17
+ ${o.id}->final`,n=null}),t.thrownSegments.forEach(o=>{n===o.id?i+="->thrown":i+=`;
18
+ ${o.id}->thrown`,n=null}),`${i};`}}});var ao=B((JY,_g)=>{"use strict";var Ej=Yu();function Zu(t){return t.reachable}var ec=class t{constructor(e,r,s){this.id=e,this.nextSegments=[],this.prevSegments=r.filter(Zu),this.allNextSegments=[],this.allPrevSegments=r,this.reachable=s,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),Ej.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(e){return this.internal.loopedPrevSegments.includes(e)}static newRoot(e){return new t(e,[],!0)}static newNext(e,r){return new t(e,t.flattenUnusedSegments(r),r.some(Zu))}static newUnreachable(e,r){let s=new t(e,t.flattenUnusedSegments(r),!1);return t.markUsed(s),s}static newDisconnected(e,r){return new t(e,[],r.some(Zu))}static markUsed(e){if(e.internal.used)return;e.internal.used=!0;let r;if(e.reachable)for(r=0;r<e.allPrevSegments.length;++r){let s=e.allPrevSegments[r];s.allNextSegments.push(e),s.nextSegments.push(e)}else for(r=0;r<e.allPrevSegments.length;++r)e.allPrevSegments[r].allNextSegments.push(e)}static markPrevSegmentAsLooped(e,r){e.internal.loopedPrevSegments.push(r)}static flattenUnusedSegments(e){let r=new Set;for(let s=0;s<e.length;++s){let n=e[s];if(!r.has(n))if(n.internal.used)r.add(n);else for(let i=0;i<n.allPrevSegments.length;++i){let o=n.allPrevSegments[i];r.has(o)||r.add(o)}}return[...r]}};_g.exports=ec});var Lg=B((XY,Og)=>{"use strict";var tc=Oi(),Ni=ao();function bj(t){return t.reachable}function rc(t,e,r,s){let n=t.segmentsList,i=e>=0?e:n.length+e,o=r>=0?r:n.length+r,a=[];for(let l=0;l<t.count;++l){let u=[];for(let c=i;c<=o;++c)u.push(n[c][l]);a.push(s(t.idGenerator.next(),u))}return a}function Bg(t,e){let r=e;for(;r.length>t.count;){let s=[];for(let n=0,i=Math.floor(r.length/2);n<i;++n)s.push(Ni.newNext(t.idGenerator.next(),[r[n],r[n+i]]));r=s}return r}var nc=class t{constructor(e,r,s){this.idGenerator=e,this.upper=r,this.count=s,this.segmentsList=[]}get head(){let e=this.segmentsList;return e.length===0?[]:e.at(-1)}get empty(){return this.segmentsList.length===0}get reachable(){let e=this.head;return e.length>0&&e.some(bj)}makeNext(e,r){return rc(this,e,r,Ni.newNext)}makeUnreachable(e,r){return rc(this,e,r,Ni.newUnreachable)}makeDisconnected(e,r){return rc(this,e,r,Ni.newDisconnected)}add(e){tc(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.push(Bg(this,e))}replaceHead(e){tc(e.length>=this.count,`${e.length} >= ${this.count}`),this.segmentsList.splice(-1,1,Bg(this,e))}addAll(e){tc(e.count===this.count),this.segmentsList.push(...e.segmentsList)}clear(){this.segmentsList=[]}static newRoot(e){let r=new t(e,null,1);return r.add([Ni.newRoot(e.next())]),r}static newEmpty(e,r){return new t(e.idGenerator,e,(r?2:1)*e.count)}};Og.exports=nc});var Mg=B((QY,jg)=>{"use strict";var uo=ao(),cr=Lg(),ic=class{constructor(e,r,s,n){this.upper=e,this.breakable=r,this.label=s,this.brokenForkContext=cr.newEmpty(n)}},ac=class{constructor(e){this.upper=e,this.choiceContextCount=0}},oc=class{constructor(e,r,s,n){this.upper=e,this.kind=r,this.isForkingAsResult=s,this.trueForkContext=cr.newEmpty(n),this.falseForkContext=cr.newEmpty(n),this.nullishForkContext=cr.newEmpty(n),this.processed=!1}},Wn=class{constructor(e,r,s,n){this.upper=e,this.type=r,this.label=s,this.brokenForkContext=n.brokenForkContext}},lc=class extends Wn{constructor(e,r,s){super(e,"WhileStatement",r,s),this.test=void 0,this.continueDestSegments=null}},uc=class extends Wn{constructor(e,r,s,n){super(e,"DoWhileStatement",r,s),this.test=void 0,this.entrySegments=null,this.continueForkContext=cr.newEmpty(n)}},cc=class extends Wn{constructor(e,r,s){super(e,"ForStatement",r,s),this.test=void 0,this.endOfInitSegments=null,this.testSegments=null,this.endOfTestSegments=null,this.updateSegments=null,this.endOfUpdateSegments=null,this.continueDestSegments=null}},pc=class extends Wn{constructor(e,r,s){super(e,"ForInStatement",r,s),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}},fc=class extends Wn{constructor(e,r,s){super(e,"ForOfStatement",r,s),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}},hc=class{constructor(e,r){this.upper=e,this.hasCase=r,this.defaultSegments=null,this.defaultBodySegments=null,this.foundEmptyDefault=!1,this.lastIsDefault=!1,this.forkCount=0}},mc=class{constructor(e,r,s){this.upper=e,this.hasFinalizer=r,this.position="try",this.returnedForkContext=r?cr.newEmpty(s):null,this.thrownForkContext=cr.newEmpty(s),this.lastOfTryIsReachable=!1,this.lastOfCatchIsReachable=!1}};function Ng(t,e,r,s){for(let n=0;n<s.length;++n){let i=s[n];t.push(i),e.includes(i)||r.push(i)}}function vj(t,e){if(!e)return t.loopContext;let r=t.loopContext;for(;r;){if(r.label===e)return r;r=r.upper}return null}function Sj(t,e){let r=t.breakContext;for(;r;){if(e?r.label===e:r.breakable)return r;r=r.upper}return null}function sc(t){let e=t.tryContext;for(;e;){if(e.hasFinalizer&&e.position!=="finally")return e;e=e.upper}return t}function oo(t){let e=t.tryContext;for(;e;){if(e.position==="try"||e.hasFinalizer&&e.position==="catch")return e;e=e.upper}return t}function lo(t,e){t.splice(t.indexOf(e),1)}function Cj(t,e){for(let r=0;r<t.length;++r){let s=t[r],n=e[r];lo(s.nextSegments,n),lo(s.allNextSegments,n),lo(n.prevSegments,s),lo(n.allPrevSegments,s)}}function Vn(t,e,r){let s=uo.flattenUnusedSegments(e),n=uo.flattenUnusedSegments(r),i=Math.min(s.length,n.length);for(let o=0;o<i;++o){let a=s[o],l=n[o];l.reachable&&a.nextSegments.push(l),a.reachable&&l.prevSegments.push(a),a.allNextSegments.push(l),l.allPrevSegments.push(a),l.allPrevSegments.length>=2&&uo.markPrevSegmentAsLooped(l,a),t.notifyLooped(a,l)}}function Rg(t,e,r){e.processed||(e.trueForkContext.add(r),e.falseForkContext.add(r),e.nullishForkContext.add(r)),t.test!==!0&&t.brokenForkContext.addAll(e.falseForkContext),t.endOfTestSegments=e.trueForkContext.makeNext(0,-1)}var dc=class{constructor(e,r){this.idGenerator=e,this.notifyLooped=r,this.forkContext=cr.newRoot(e),this.choiceContext=null,this.switchContext=null,this.tryContext=null,this.loopContext=null,this.breakContext=null,this.chainContext=null,this.currentSegments=[],this.initialSegment=this.forkContext.head[0],this.finalSegments=[],this.returnedForkContext=[],this.thrownForkContext=[];let s=this.finalSegments,n=this.returnedForkContext,i=this.thrownForkContext;n.add=Ng.bind(null,n,i,s),i.add=Ng.bind(null,i,n,s)}get headSegments(){return this.forkContext.head}get parentForkContext(){let e=this.forkContext;return e&&e.upper}pushForkContext(e){return this.forkContext=cr.newEmpty(this.forkContext,e),this.forkContext}popForkContext(){let e=this.forkContext;return this.forkContext=e.upper,this.forkContext.replaceHead(e.makeNext(0,-1)),e}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(e,r){this.choiceContext=new oc(this.choiceContext,e,r,this.forkContext)}popChoiceContext(){let e=this.choiceContext,r=this.forkContext,s=r.head;switch(this.choiceContext=e.upper,e.kind){case"&&":case"||":case"??":if(e.processed||(e.trueForkContext.add(s),e.falseForkContext.add(s),e.nullishForkContext.add(s)),e.isForkingAsResult){let i=this.choiceContext;return i.trueForkContext.addAll(e.trueForkContext),i.falseForkContext.addAll(e.falseForkContext),i.nullishForkContext.addAll(e.nullishForkContext),i.processed=!0,e}break;case"test":e.processed?(e.falseForkContext.clear(),e.falseForkContext.add(s)):(e.trueForkContext.clear(),e.trueForkContext.add(s));break;case"loop":return e;default:throw new Error("unreachable")}let n=e.trueForkContext;return n.addAll(e.falseForkContext),r.replaceHead(n.makeNext(0,-1)),e}makeLogicalRight(){let e=this.choiceContext,r=this.forkContext;if(e.processed){let s;switch(e.kind){case"&&":s=e.trueForkContext;break;case"||":s=e.falseForkContext;break;case"??":s=e.nullishForkContext;break;default:throw new Error("unreachable")}r.replaceHead(s.makeNext(0,-1)),s.clear(),e.processed=!1}else{switch(e.kind){case"&&":e.falseForkContext.add(r.head),e.nullishForkContext.add(r.head);break;case"||":e.trueForkContext.add(r.head);break;case"??":e.trueForkContext.add(r.head),e.falseForkContext.add(r.head);break;default:throw new Error("unreachable")}r.replaceHead(r.makeNext(-1,-1))}}makeIfConsequent(){let e=this.choiceContext,r=this.forkContext;e.processed||(e.trueForkContext.add(r.head),e.falseForkContext.add(r.head),e.nullishForkContext.add(r.head)),e.processed=!1,r.replaceHead(e.trueForkContext.makeNext(0,-1))}makeIfAlternate(){let e=this.choiceContext,r=this.forkContext;e.trueForkContext.clear(),e.trueForkContext.add(r.head),e.processed=!0,r.replaceHead(e.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext=new ac(this.chainContext)}popChainContext(){let e=this.chainContext;this.chainContext=e.upper;for(let r=e.choiceContextCount;r>0;--r)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.choiceContextCount+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(e,r){this.switchContext=new hc(this.switchContext,e),this.pushBreakContext(!0,r)}popSwitchContext(){let e=this.switchContext;this.switchContext=e.upper;let r=this.forkContext,s=this.popBreakContext().brokenForkContext;if(e.forkCount===0){s.empty||(s.add(r.makeNext(-1,-1)),r.replaceHead(s.makeNext(0,-1)));return}let n=r.head;this.forkBypassPath();let i=r.head;s.add(n),e.lastIsDefault||(e.defaultBodySegments?(Cj(e.defaultSegments,e.defaultBodySegments),Vn(this,i,e.defaultBodySegments)):s.add(i));for(let o=0;o<e.forkCount;++o)this.forkContext=this.forkContext.upper;this.forkContext.replaceHead(s.makeNext(0,-1))}makeSwitchCaseBody(e,r){let s=this.switchContext;if(!s.hasCase)return;let n=this.forkContext,i=this.pushForkContext();i.add(n.makeNext(0,-1)),r?(s.defaultSegments=n.head,e?s.foundEmptyDefault=!0:s.defaultBodySegments=i.head):!e&&s.foundEmptyDefault&&(s.foundEmptyDefault=!1,s.defaultBodySegments=i.head),s.lastIsDefault=r,s.forkCount+=1}pushTryContext(e){this.tryContext=new mc(this.tryContext,e,this.forkContext)}popTryContext(){let e=this.tryContext;if(this.tryContext=e.upper,e.position==="catch"){this.popForkContext();return}let r=e.returnedForkContext,s=e.thrownForkContext;if(r.empty&&s.empty)return;let n=this.forkContext.head;this.forkContext=this.forkContext.upper;let i=n.slice(0,n.length/2|0),o=n.slice(n.length/2|0);r.empty||sc(this).returnedForkContext.add(o),s.empty||oo(this).thrownForkContext.add(o),this.forkContext.replaceHead(i),!e.lastOfTryIsReachable&&!e.lastOfCatchIsReachable&&this.forkContext.makeUnreachable()}makeCatchBlock(){let e=this.tryContext,r=this.forkContext,s=e.thrownForkContext;e.position="catch",e.thrownForkContext=cr.newEmpty(r),e.lastOfTryIsReachable=r.reachable,s.add(r.head);let n=s.makeNext(0,-1);this.pushForkContext(),this.forkBypassPath(),this.forkContext.add(n)}makeFinallyBlock(){let e=this.tryContext,r=this.forkContext,s=e.returnedForkContext,n=e.thrownForkContext,i=r.head;if(e.position==="catch"?(this.popForkContext(),r=this.forkContext,e.lastOfCatchIsReachable=r.reachable):e.lastOfTryIsReachable=r.reachable,e.position="finally",s.empty&&n.empty)return;let o=r.makeNext(-1,-1);for(let a=0;a<r.count;++a){let l=[i[a]];for(let u=0;u<s.segmentsList.length;++u)l.push(s.segmentsList[u][a]);for(let u=0;u<n.segmentsList.length;++u)l.push(n.segmentsList[u][a]);o.push(uo.newNext(this.idGenerator.next(),l))}this.pushForkContext(!0),this.forkContext.add(o)}makeYield(){let e=this.forkContext,r=e.head;e.reachable&&(sc(this).returnedForkContext.add(r),oo(this).thrownForkContext.add(r),e.replaceHead(e.makeNext(-1,-1)))}makeFirstThrowablePathInTryOrCatchBlock(){let e=this.forkContext;if(!e.reachable)return;let r=oo(this);r===this||!r.thrownForkContext.empty||r.position!=="try"&&(r.position!=="catch"||!r.hasFinalizer)||(r.thrownForkContext.add(e.head),e.replaceHead(e.makeNext(-1,-1)))}pushLoopContext(e,r){let s=this.forkContext,n=this.pushBreakContext(!0,r);switch(e){case"WhileStatement":this.pushChoiceContext("loop",!1),this.loopContext=new lc(this.loopContext,r,n);break;case"DoWhileStatement":this.pushChoiceContext("loop",!1),this.loopContext=new uc(this.loopContext,r,n,s);break;case"ForStatement":this.pushChoiceContext("loop",!1),this.loopContext=new cc(this.loopContext,r,n);break;case"ForInStatement":this.loopContext=new pc(this.loopContext,r,n);break;case"ForOfStatement":this.loopContext=new fc(this.loopContext,r,n);break;default:throw new Error(`unknown type: "${e}"`)}}popLoopContext(){let e=this.loopContext;this.loopContext=e.upper;let r=this.forkContext,s=this.popBreakContext().brokenForkContext;switch(e.type){case"WhileStatement":case"ForStatement":this.popChoiceContext(),Vn(this,r.head,e.continueDestSegments);break;case"DoWhileStatement":{let n=this.popChoiceContext();n.processed||(n.trueForkContext.add(r.head),n.falseForkContext.add(r.head)),e.test!==!0&&s.addAll(n.falseForkContext);let i=n.trueForkContext.segmentsList;for(let o=0;o<i.length;++o)Vn(this,i[o],e.entrySegments);break}case"ForInStatement":case"ForOfStatement":s.add(r.head),Vn(this,r.head,e.leftSegments);break;default:throw new Error("unreachable")}s.empty?r.replaceHead(r.makeUnreachable(-1,-1)):r.replaceHead(s.makeNext(0,-1))}makeWhileTest(e){let r=this.loopContext,s=this.forkContext,n=s.makeNext(0,-1);r.test=e,r.continueDestSegments=n,s.replaceHead(n)}makeWhileBody(){let e=this.loopContext,r=this.choiceContext,s=this.forkContext;r.processed||(r.trueForkContext.add(s.head),r.falseForkContext.add(s.head)),e.test!==!0&&e.brokenForkContext.addAll(r.falseForkContext),s.replaceHead(r.trueForkContext.makeNext(0,-1))}makeDoWhileBody(){let e=this.loopContext,r=this.forkContext,s=r.makeNext(-1,-1);e.entrySegments=s,r.replaceHead(s)}makeDoWhileTest(e){let r=this.loopContext,s=this.forkContext;if(r.test=e,!r.continueForkContext.empty){r.continueForkContext.add(s.head);let n=r.continueForkContext.makeNext(0,-1);s.replaceHead(n)}}makeForTest(e){let r=this.loopContext,s=this.forkContext,n=s.head,i=s.makeNext(-1,-1);r.test=e,r.endOfInitSegments=n,r.continueDestSegments=r.testSegments=i,s.replaceHead(i)}makeForUpdate(){let e=this.loopContext,r=this.choiceContext,s=this.forkContext;e.testSegments?Rg(e,r,s.head):e.endOfInitSegments=s.head;let n=s.makeDisconnected(-1,-1);e.continueDestSegments=e.updateSegments=n,s.replaceHead(n)}makeForBody(){let e=this.loopContext,r=this.choiceContext,s=this.forkContext;e.updateSegments?(e.endOfUpdateSegments=s.head,e.testSegments&&Vn(this,e.endOfUpdateSegments,e.testSegments)):e.testSegments?Rg(e,r,s.head):e.endOfInitSegments=s.head;let n=e.endOfTestSegments;if(!n){let i=cr.newEmpty(s);i.add(e.endOfInitSegments),e.endOfUpdateSegments&&i.add(e.endOfUpdateSegments),n=i.makeNext(0,-1)}e.continueDestSegments=e.continueDestSegments||n,s.replaceHead(n)}makeForInOfLeft(){let e=this.loopContext,r=this.forkContext,s=r.makeDisconnected(-1,-1);e.prevSegments=r.head,e.leftSegments=e.continueDestSegments=s,r.replaceHead(s)}makeForInOfRight(){let e=this.loopContext,r=this.forkContext,s=cr.newEmpty(r);s.add(e.prevSegments);let n=s.makeNext(-1,-1);e.endOfLeftSegments=r.head,r.replaceHead(n)}makeForInOfBody(){let e=this.loopContext,r=this.forkContext,s=cr.newEmpty(r);s.add(e.endOfLeftSegments);let n=s.makeNext(-1,-1);Vn(this,r.head,e.leftSegments),e.brokenForkContext.add(r.head),r.replaceHead(n)}pushBreakContext(e,r){return this.breakContext=new ic(this.breakContext,e,r,this.forkContext),this.breakContext}popBreakContext(){let e=this.breakContext,r=this.forkContext;if(this.breakContext=e.upper,!e.breakable){let s=e.brokenForkContext;s.empty||(s.add(r.head),r.replaceHead(s.makeNext(0,-1)))}return e}makeBreak(e){let r=this.forkContext;if(!r.reachable)return;let s=Sj(this,e);s&&s.brokenForkContext.add(r.head),r.replaceHead(r.makeUnreachable(-1,-1))}makeContinue(e){let r=this.forkContext;if(!r.reachable)return;let s=vj(this,e);s&&(s.continueDestSegments?(Vn(this,r.head,s.continueDestSegments),(s.type==="ForInStatement"||s.type==="ForOfStatement")&&s.brokenForkContext.add(r.head)):s.continueForkContext.add(r.head)),r.replaceHead(r.makeUnreachable(-1,-1))}makeReturn(){let e=this.forkContext;e.reachable&&(sc(this).returnedForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeThrow(){let e=this.forkContext;e.reachable&&(oo(this).thrownForkContext.add(e.head),e.replaceHead(e.makeUnreachable(-1,-1)))}makeFinal(){let e=this.currentSegments;e.length>0&&e[0].reachable&&this.returnedForkContext.add(e)}};jg.exports=dc});var yc=B((YY,qg)=>{"use strict";var gc=class{constructor(e){this.prefix=String(e),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}};qg.exports=gc});var $g=B((ZY,Ug)=>{"use strict";var wj=Mg(),Aj=yc(),xc=class{constructor({id:e,origin:r,upper:s,onLooped:n}){this.id=e,this.origin=r,this.upper=s,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new wj(new Aj(`${e}_`),n)}),s&&s.childCodePaths.push(this)}static getState(e){return e.internal}get initialSegment(){return this.internal.initialSegment}get finalSegments(){return this.internal.finalSegments}get returnedSegments(){return this.internal.returnedForkContext}get thrownSegments(){return this.internal.thrownForkContext}traverseSegments(e,r){let s,n;typeof e=="function"?(n=e,s={}):(s=e||{},n=r);let i=s.first||this.internal.initialSegment,o=s.last,a,l,u,c=null,p=new Set,h=[[i,0]],f=new Set,d=!1,g={skip(){f.add(c)},break(){d=!0}};function y(S){return p.has(S)||c.isLoopedPrevSegment(S)}function v(S){return f.has(S)||c.isLoopedPrevSegment(S)}for(;h.length>0;){if(a=h.at(-1),c=a[0],l=a[1],l===0){if(p.has(c)){h.pop();continue}if(c!==i&&c.prevSegments.length>0&&!c.prevSegments.every(y)){h.pop();continue}if(p.add(c),f.size>0&&c.prevSegments.length>0&&c.prevSegments.every(v))f.add(c);else if(n.call(this,c,g),c===o&&g.skip(),d)break}u=c.nextSegments.length-1,l<u?(a[1]+=1,h.push([c.nextSegments[l],0])):l===u?(a[0]=c.nextSegments[l],a[1]=0):h.pop()}}};Ug.exports=xc});var Hg=B((eZ,Kg)=>{"use strict";var Ec=Oi(),{breakableTypePattern:zg}=Li(),Or=$g(),kj=ao(),Tj=yc(),Cr=Yu();function Dj(t){return!!t.test}function Gg(t){let e=t.parent;return e&&e.type==="PropertyDefinition"&&e.value===t}function co(t){return t==="&&"||t==="||"||t==="??"}function po(t){return t==="&&="||t==="||="||t==="??="}function Vg(t){return t.parent.type==="LabeledStatement"?t.parent.label.name:null}function Wg(t){let e=t.parent;switch(e.type){case"ConditionalExpression":case"IfStatement":case"WhileStatement":case"DoWhileStatement":case"ForStatement":return e.test===t;case"LogicalExpression":return co(e.operator);case"AssignmentExpression":return po(e.operator);default:return!1}}function bc(t){if(t.type==="Literal")return!!t.value}function Ij(t){let e=t.parent;switch(e.type){case"LabeledStatement":case"BreakStatement":case"ContinueStatement":case"ArrayPattern":case"RestElement":case"ImportSpecifier":case"ImportDefaultSpecifier":case"ImportNamespaceSpecifier":case"CatchClause":return!1;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"ClassDeclaration":case"ClassExpression":case"VariableDeclarator":return e.id!==t;case"Property":case"PropertyDefinition":case"MethodDefinition":return e.key!==t||e.computed||e.shorthand;case"AssignmentPattern":return e.key!==t;default:return!0}}function zn(t,e){let r=t.codePath,s=Or.getState(r),n=s.currentSegments,i=s.headSegments,o=Math.max(n.length,i.length),a,l,u;for(a=0;a<o;++a)if(l=n[a],u=i[a],l!==u&&l){let c=l.reachable?"onCodePathSegmentEnd":"onUnreachableCodePathSegmentEnd";Cr.dump("%s %s",c,l.id),t.emit(c,[l,e])}for(s.currentSegments=i,a=0;a<o;++a)if(l=n[a],u=i[a],l!==u&&u){let c=u.reachable?"onCodePathSegmentStart":"onUnreachableCodePathSegmentStart";Cr.dump("%s %s",c,u.id),kj.markUsed(u),t.emit(c,[u,e])}}function Pj(t,e){let r=Or.getState(t.codePath),s=r.currentSegments;for(let n=0;n<s.length;++n){let i=s[n],o=i.reachable?"onCodePathSegmentEnd":"onUnreachableCodePathSegmentEnd";Cr.dump("%s %s",o,i.id),t.emit(o,[i,e])}r.currentSegments=[]}function Fj(t,e){let r=t.codePath,s=Or.getState(r),n=e.parent;switch(n.type){case"CallExpression":n.optional===!0&&n.arguments.length>=1&&n.arguments[0]===e&&s.makeOptionalRight();break;case"MemberExpression":n.optional===!0&&n.property===e&&s.makeOptionalRight();break;case"LogicalExpression":n.right===e&&co(n.operator)&&s.makeLogicalRight();break;case"AssignmentExpression":n.right===e&&po(n.operator)&&s.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":n.consequent===e?s.makeIfConsequent():n.alternate===e&&s.makeIfAlternate();break;case"SwitchCase":n.consequent[0]===e&&s.makeSwitchCaseBody(!1,!n.test);break;case"TryStatement":n.handler===e?s.makeCatchBlock():n.finalizer===e&&s.makeFinallyBlock();break;case"WhileStatement":n.test===e?s.makeWhileTest(bc(e)):(Ec(n.body===e),s.makeWhileBody());break;case"DoWhileStatement":n.body===e?s.makeDoWhileBody():(Ec(n.test===e),s.makeDoWhileTest(bc(e)));break;case"ForStatement":n.test===e?s.makeForTest(bc(e)):n.update===e?s.makeForUpdate():n.body===e&&s.makeForBody();break;case"ForInStatement":case"ForOfStatement":n.left===e?s.makeForInOfLeft():n.right===e?s.makeForInOfRight():(Ec(n.body===e),s.makeForInOfBody());break;case"AssignmentPattern":n.right===e&&(s.pushForkContext(),s.forkBypassPath(),s.forkPath());break;default:break}}function _j(t,e){let r=t.codePath,s=r&&Or.getState(r),n=e.parent;function i(o){r&&(zn(t,e),Cr.dumpState(e,s,!1)),r=t.codePath=new Or({id:t.idGenerator.next(),origin:o,upper:r,onLooped:t.onLooped}),s=Or.getState(r),Cr.dump("onCodePathStart %s",r.id),t.emit("onCodePathStart",[r,e])}switch(Gg(e)&&i("class-field-initializer"),e.type){case"Program":i("program");break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":i("function");break;case"StaticBlock":i("class-static-block");break;case"ChainExpression":s.pushChainContext();break;case"CallExpression":e.optional===!0&&s.makeOptionalNode();break;case"MemberExpression":e.optional===!0&&s.makeOptionalNode();break;case"LogicalExpression":co(e.operator)&&s.pushChoiceContext(e.operator,Wg(e));break;case"AssignmentExpression":po(e.operator)&&s.pushChoiceContext(e.operator.slice(0,-1),Wg(e));break;case"ConditionalExpression":case"IfStatement":s.pushChoiceContext("test",!1);break;case"SwitchStatement":s.pushSwitchContext(e.cases.some(Dj),Vg(e));break;case"TryStatement":s.pushTryContext(!!e.finalizer);break;case"SwitchCase":n.discriminant!==e&&n.cases[0]!==e&&s.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":s.pushLoopContext(e.type,Vg(e));break;case"LabeledStatement":zg.test(e.body.type)||s.pushBreakContext(!1,e.label.name);break;default:break}zn(t,e),Cr.dumpState(e,s,!1)}function Bj(t,e){let r=t.codePath,s=Or.getState(r),n=!1;switch(e.type){case"ChainExpression":s.popChainContext();break;case"IfStatement":case"ConditionalExpression":s.popChoiceContext();break;case"LogicalExpression":co(e.operator)&&s.popChoiceContext();break;case"AssignmentExpression":po(e.operator)&&s.popChoiceContext();break;case"SwitchStatement":s.popSwitchContext();break;case"SwitchCase":e.consequent.length===0&&s.makeSwitchCaseBody(!0,!e.test),s.forkContext.reachable&&(n=!0);break;case"TryStatement":s.popTryContext();break;case"BreakStatement":zn(t,e),s.makeBreak(e.label&&e.label.name),n=!0;break;case"ContinueStatement":zn(t,e),s.makeContinue(e.label&&e.label.name),n=!0;break;case"ReturnStatement":zn(t,e),s.makeReturn(),n=!0;break;case"ThrowStatement":zn(t,e),s.makeThrow(),n=!0;break;case"Identifier":Ij(e)&&(s.makeFirstThrowablePathInTryOrCatchBlock(),n=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":s.makeFirstThrowablePathInTryOrCatchBlock();break;case"YieldExpression":s.makeYield();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":s.popLoopContext();break;case"AssignmentPattern":s.popForkContext();break;case"LabeledStatement":zg.test(e.body.type)||s.popBreakContext();break;default:break}n||zn(t,e),Cr.dumpState(e,s,!0)}function Oj(t,e){function r(){let s=t.codePath;Or.getState(s).makeFinal(),Pj(t,e),Cr.dump("onCodePathEnd %s",s.id),t.emit("onCodePathEnd",[s,e]),Cr.dumpDot(s),s=t.codePath=t.codePath.upper,s&&Cr.dumpState(e,Or.getState(s),!0)}switch(e.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"StaticBlock":{r();break}case"CallExpression":e.optional===!0&&e.arguments.length===0&&Or.getState(t.codePath).makeOptionalRight();break;default:break}Gg(e)&&r()}var vc=class{constructor(e){this.original=e,this.emit=e.emit,this.codePath=null,this.idGenerator=new Tj("s"),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(e){this.currentNode=e,e.parent&&Fj(this,e),_j(this,e),this.original.enterNode(e),this.currentNode=null}leaveNode(e){this.currentNode=e,Bj(this,e),this.original.leaveNode(e),Oj(this,e),this.currentNode=null}onLooped(e,r){e.reachable&&r.reachable&&(Cr.dump("onCodePathSegmentLoop %s -> %s",e.id,r.id),this.emit("onCodePathSegmentLoop",[e,r,this.currentNode]))}};Kg.exports=vc});var ry=B((tZ,ty)=>{var Jg,Xg,Qg,Yg,Zg,ey,Lj={}.toString;Jg=fo(function(t,e){return t.apply(null,e)});Xg=function(t){return fo(t)};Qg=fo(function(t,e,r){return t(r,e)});Yg=function(t){return(function(e){return function(){return t(e(e)).apply(null,arguments)}})(function(e){return function(){return t(e(e)).apply(null,arguments)}})};Zg=fo(function(t,e,r,s){return t(e(r),e(s))});ey=function(t){var e;return e={},function(){var r,s,n,i,o,a;for(s=[],n=0,i=arguments.length;n<i;++n)s.push(arguments[n]);return r=s,o=(function(){var l,u,c,p=[];for(l=0,c=(u=r).length;l<c;++l)a=u[l],p.push(a+Lj.call(a).slice(8,-1));return p})().join(""),e[o]=o in e?e[o]:t.apply(null,r)}};ty.exports={curry:Xg,flip:Qg,fix:Yg,apply:Jg,over:Zg,memoize:ey};function fo(t,e){var r,s=function(n){return t.length>1?function(){var i=n?n.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?s.call(r,i):t.apply(r,i)}:t};return s()}});var c0=B((rZ,u0)=>{var ny,sy,iy,ay,oy,ly,uy,cy,py,fy,hy,my,dy,gy,yy,xy,Ey,Cc,by,vy,Sy,wc,Cy,wy,Ay,ky,Sc,Ty,Dy,Iy,Py,Fy,_y,By,Oy,Ly,Ny,Ry,jy,My,qy,Uy,$y,Vy,Wy,zy,Gy,Ri,Ky,Hy,Jy,Xy,Qy,Yy,Ac,kc,Zy,Tc,Dc,Ic,e0,t0,r0,n0,s0,i0,Pc,a0,o0,l0,Nj={}.toString;ny=Je(function(t,e){var r,s,n;for(r=0,s=e.length;r<s;++r)n=e[r],t(n);return e});sy=Je(function(t,e){var r,s,n,i=[];for(r=0,s=e.length;r<s;++r)n=e[r],i.push(t(n));return i});iy=function(t){var e,r,s,n=[];for(e=0,r=t.length;e<r;++e)s=t[e],s&&n.push(s);return n};ay=Je(function(t,e){var r,s,n,i=[];for(r=0,s=e.length;r<s;++r)n=e[r],t(n)&&i.push(n);return i});oy=Je(function(t,e){var r,s,n,i=[];for(r=0,s=e.length;r<s;++r)n=e[r],t(n)||i.push(n);return i});ly=Je(function(t,e){var r,s;return r=Pc(t,e),s=e.slice(),r!=null&&s.splice(r,1),s});uy=Je(function(t,e){var r,s,n,i,o;for(r=[],s=[],n=0,i=e.length;n<i;++n)o=e[n],(t(o)?r:s).push(o);return[r,s]});cy=Je(function(t,e){var r,s,n;for(r=0,s=e.length;r<s;++r)if(n=e[r],t(n))return n});py=fy=function(t){return t[0]};hy=function(t){if(t.length)return t.slice(1)};my=function(t){return t[t.length-1]};dy=function(t){if(t.length)return t.slice(0,-1)};gy=function(t){return!t.length};yy=function(t){return t.concat().reverse()};xy=function(t){var e,r,s,n;for(e=[],r=0,s=t.length;r<s;++r)n=t[r],ji(n,e)||e.push(n);return e};Ey=Je(function(t,e){var r,s,n,i,o,a=[];for(r=[],s=0,n=e.length;s<n;++s)i=e[s],o=t(i),!ji(o,r)&&(r.push(o),a.push(i));return a});Cc=by=Je(function(t,e,r){var s,n,i;for(s=0,n=r.length;s<n;++s)i=r[s],e=t(e,i);return e});vy=Sy=Je(function(t,e){return Cc(t,e[0],e.slice(1))});wc=Je(function(t,e,r){var s,n;for(s=r.length-1;s>=0;--s)n=r[s],e=t(n,e);return e});Cy=Je(function(t,e){return wc(t,e[e.length-1],e.slice(0,-1))});wy=Je(function(t,e){var r,s,n;for(r=[],s=e;(n=t(s))!=null;)r.push(n[0]),s=n[1];return r});Ay=function(t){return[].concat.apply([],t)};ky=Je(function(t,e){var r;return[].concat.apply([],(function(){var s,n,i,o=[];for(s=0,i=(n=e).length;s<i;++s)r=n[s],o.push(t(r));return o})())});Sc=function(t){var e;return[].concat.apply([],(function(){var r,s,n,i=[];for(r=0,n=(s=t).length;r<n;++r)e=s[r],Nj.call(e).slice(8,-1)==="Array"?i.push(Sc(e)):i.push(e);return i})())};Ty=function(t){var e,r,s,n,i,o,a,l,u,c;for(r=[],s=1,n=arguments.length;s<n;++s)r.push(arguments[s]);e=r,i=[];e:for(s=0,o=t.length;s<o;++s){for(a=t[s],l=0,u=e.length;l<u;++l)if(c=e[l],ji(a,c))continue e;i.push(a)}return i};Dy=function(t){var e,r,s,n,i,o,a,l,u,c;for(r=[],s=1,n=arguments.length;s<n;++s)r.push(arguments[s]);e=r,i=[];e:for(s=0,o=t.length;s<o;++s){for(a=t[s],l=0,u=e.length;l<u;++l)if(c=e[l],!ji(a,c))continue e;i.push(a)}return i};Iy=function(){var t,e,r,s,n,i,o,a,l,u;for(e=[],r=0,s=arguments.length;r<s;++r)e.push(arguments[r]);for(t=e,n=[],r=0,i=t.length;r<i;++r)for(o=t[r],a=0,l=o.length;a<l;++a)u=o[a],ji(u,n)||n.push(u);return n};Py=Je(function(t,e){var r,s,n,i,o;for(r={},s=0,n=e.length;s<n;++s)i=e[s],o=t(i),o in r?r[o]+=1:r[o]=1;return r});Fy=Je(function(t,e){var r,s,n,i,o;for(r={},s=0,n=e.length;s<n;++s)i=e[s],o=t(i),o in r?r[o].push(i):r[o]=[i];return r});_y=function(t){var e,r,s;for(e=0,r=t.length;e<r;++e)if(s=t[e],!s)return!1;return!0};By=function(t){var e,r,s;for(e=0,r=t.length;e<r;++e)if(s=t[e],s)return!0;return!1};Oy=Je(function(t,e){var r,s,n;for(r=0,s=e.length;r<s;++r)if(n=e[r],t(n))return!0;return!1});Ly=Je(function(t,e){var r,s,n;for(r=0,s=e.length;r<s;++r)if(n=e[r],!t(n))return!1;return!0});Ny=function(t){return t.concat().sort(function(e,r){return e>r?1:e<r?-1:0})};Ry=Je(function(t,e){return e.concat().sort(t)});jy=Je(function(t,e){return e.concat().sort(function(r,s){return t(r)>t(s)?1:t(r)<t(s)?-1:0})});My=function(t){var e,r,s,n;for(e=0,r=0,s=t.length;r<s;++r)n=t[r],e+=n;return e};qy=function(t){var e,r,s,n;for(e=1,r=0,s=t.length;r<s;++r)n=t[r],e*=n;return e};Uy=$y=function(t){var e,r,s,n;for(e=0,r=0,s=t.length;r<s;++r)n=t[r],e+=n;return e/t.length};Vy=function(t){var e,r,s,n,i;for(e=t[0],r=0,n=(s=t.slice(1)).length;r<n;++r)i=s[r],i>e&&(e=i);return e};Wy=function(t){var e,r,s,n,i;for(e=t[0],r=0,n=(s=t.slice(1)).length;r<n;++r)i=s[r],i<e&&(e=i);return e};zy=Je(function(t,e){var r,s,n,i,o;for(r=e[0],s=0,i=(n=e.slice(1)).length;s<i;++s)o=n[s],t(o)>t(r)&&(r=o);return r});Gy=Je(function(t,e){var r,s,n,i,o;for(r=e[0],s=0,i=(n=e.slice(1)).length;s<i;++s)o=n[s],t(o)<t(r)&&(r=o);return r});Ri=Ky=Je(function(t,e,r){var s,n;return s=e,[e].concat((function(){var i,o,a,l=[];for(i=0,a=(o=r).length;i<a;++i)n=o[i],l.push(s=t(s,n));return l})())});Hy=Jy=Je(function(t,e){if(e.length)return Ri(t,e[0],e.slice(1))});Xy=Je(function(t,e,r){return r=r.concat().reverse(),Ri(t,e,r).reverse()});Qy=Je(function(t,e){if(e.length)return e=e.concat().reverse(),Ri(t,e[0],e.slice(1)).reverse()});Yy=Je(function(t,e,r){return r.slice(t,e)});Ac=Je(function(t,e){return t<=0?e.slice(0,0):e.slice(0,t)});kc=Je(function(t,e){return t<=0?e:e.slice(t)});Zy=Je(function(t,e){return[Ac(t,e),kc(t,e)]});Tc=Je(function(t,e){var r,s;if(r=e.length,!r)return e;for(s=0;s<r&&t(e[s]);)s+=1;return e.slice(0,s)});Dc=Je(function(t,e){var r,s;if(r=e.length,!r)return e;for(s=0;s<r&&t(e[s]);)s+=1;return e.slice(s)});Ic=Je(function(t,e){return[Tc(t,e),Dc(t,e)]});e0=Je(function(t,e){return Ic(Rj(t,jj),e)});t0=Je(function(t,e){var r,s,n,i,o,a;for(r=[],s=e.length,n=0,i=t.length;n<i&&(o=n,a=t[n],o!==s);++n)r.push([a,e[o]]);return r});r0=Je(function(t,e,r){var s,n,i,o,a,l;for(s=[],n=r.length,i=0,o=e.length;i<o&&(a=i,l=e[i],a!==n);++i)s.push(t(l,r[a]));return s});n0=function(){var t,e,r,s,n,i,o,a,l,u,c,p=[];for(e=[],r=0,s=arguments.length;r<s;++r)e.push(arguments[r]);for(t=e,n=void 0,r=0,i=t.length;r<i;++r)o=t[r],n<=(a=o.length)||(n=a);for(r=0;r<n;++r){for(l=r,u=[],c=0,i=t.length;c<i;++c)o=t[c],u.push(o[l]);p.push(u)}return p};s0=function(t){var e,r,s,n,i,o,a,l,u,c=[];for(r=[],s=1,n=arguments.length;s<n;++s)r.push(arguments[s]);for(e=r,i=void 0,s=0,o=e.length;s<o;++s)a=e[s],i<=(l=a.length)||(i=l);for(s=0;s<i;++s)u=s,c.push(t.apply(null,p()));return c;function p(){var h,f,d,g=[];for(h=0,d=(f=e).length;h<d;++h)a=f[h],g.push(a[u]);return g}};i0=Je(function(t,e){return t<0?e[e.length+t]:e[t]});Pc=Je(function(t,e){var r,s,n,i;for(r=0,s=e.length;r<s;++r)if(n=r,i=e[r],i===t)return n});a0=Je(function(t,e){var r,s,n,i,o=[];for(r=0,s=e.length;r<s;++r)n=r,i=e[r],i===t&&o.push(n);return o});o0=Je(function(t,e){var r,s,n,i;for(r=0,s=e.length;r<s;++r)if(n=r,i=e[r],t(i))return n});l0=Je(function(t,e){var r,s,n,i,o=[];for(r=0,s=e.length;r<s;++r)n=r,i=e[r],t(i)&&o.push(n);return o});u0.exports={each:ny,map:sy,filter:ay,compact:iy,reject:oy,remove:ly,partition:uy,find:cy,head:py,first:fy,tail:hy,last:my,initial:dy,empty:gy,reverse:yy,difference:Ty,intersection:Dy,union:Iy,countBy:Py,groupBy:Fy,fold:Cc,fold1:vy,foldl:by,foldl1:Sy,foldr:wc,foldr1:Cy,unfoldr:wy,andList:_y,orList:By,any:Oy,all:Ly,unique:xy,uniqueBy:Ey,sort:Ny,sortWith:Ry,sortBy:jy,sum:My,product:qy,mean:Uy,average:$y,concat:Ay,concatMap:ky,flatten:Sc,maximum:Vy,minimum:Wy,maximumBy:zy,minimumBy:Gy,scan:Ri,scan1:Hy,scanl:Ky,scanl1:Jy,scanr:Xy,scanr1:Qy,slice:Yy,take:Ac,drop:kc,splitAt:Zy,takeWhile:Tc,dropWhile:Dc,span:Ic,breakList:e0,zip:t0,zipWith:r0,zipAll:n0,zipAllWith:s0,at:i0,elemIndex:Pc,elemIndices:a0,findIndex:o0,findIndices:l0};function Je(t,e){var r,s=function(n){return t.length>1?function(){var i=n?n.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?s.call(r,i):t.apply(r,i)}:t};return s()}function ji(t,e){for(var r=-1,s=e.length>>>0;++r<s;)if(t===e[r])return!0;return!1}function Rj(){var t=arguments;return function(){var e,r;for(r=t[0].apply(this,arguments),e=1;e<t.length;++e)r=t[e](r);return r}}function jj(t){return!t}});var k0=B((nZ,A0)=>{var p0,f0,h0,m0,d0,g0,y0,x0,E0,b0,v0,S0,C0,w0;p0=function(t){var e,r,s=[];for(e in t)r=t[e],s.push(r);return s};f0=function(t){var e,r=[];for(e in t)r.push(e);return r};h0=function(t){var e,r,s,n={};for(e=0,r=t.length;e<r;++e)s=t[e],n[s[0]]=s[1];return n};m0=function(t){var e,r,s=[];for(e in t)r=t[e],s.push([e,r]);return s};d0=Gn(function(t,e){var r,s,n,i,o={};for(r=0,s=t.length;r<s;++r)n=r,i=t[r],o[i]=e[n];return o});g0=function(t){var e,r,s,n;e=[],r=[];for(s in t)n=t[s],e.push(s),r.push(n);return[e,r]};y0=function(t){var e;for(e in t)return!1;return!0};x0=Gn(function(t,e){var r,s;for(r in e)s=e[r],t(s);return e});E0=Gn(function(t,e){var r,s,n={};for(r in e)s=e[r],n[r]=t(s);return n});b0=function(t){var e,r,s={};for(e in t)r=t[e],r&&(s[e]=r);return s};v0=Gn(function(t,e){var r,s,n={};for(r in e)s=e[r],t(s)&&(n[r]=s);return n});S0=Gn(function(t,e){var r,s,n={};for(r in e)s=e[r],t(s)||(n[r]=s);return n});C0=Gn(function(t,e){var r,s,n,i;r={},s={};for(n in e)i=e[n],(t(i)?r:s)[n]=i;return[r,s]});w0=Gn(function(t,e){var r,s;for(r in e)if(s=e[r],t(s))return s});A0.exports={values:p0,keys:f0,pairsToObj:h0,objToPairs:m0,listsToObj:d0,objToLists:g0,empty:y0,each:x0,map:E0,filter:v0,compact:b0,reject:S0,partition:C0,find:w0};function Gn(t,e){var r,s=function(n){return t.length>1?function(){var i=n?n.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?s.call(r,i):t.apply(r,i)}:t};return s()}});var U0=B((sZ,q0)=>{var T0,D0,I0,P0,F0,_0,B0,O0,L0,N0,R0,j0,M0;T0=Fc(function(t,e){return e.split(t)});D0=Fc(function(t,e){return e.join(t)});I0=function(t){return t.length?t.split(`
19
+ `):[]};P0=function(t){return t.join(`
20
+ `)};F0=function(t){return t.length?t.split(/[ ]+/):[]};_0=function(t){return t.join(" ")};B0=function(t){return t.split("")};O0=function(t){return t.join("")};L0=function(t){return t.split("").reverse().join("")};N0=Fc(function(t,e){var r,s;for(r="",s=0;s<t;++s)r+=e;return r});R0=function(t){return t.charAt(0).toUpperCase()+t.slice(1)};j0=function(t){return t.replace(/[-_]+(.)?/g,function(e,r){return(r??"").toUpperCase()})};M0=function(t){return t.replace(/([^-A-Z])([A-Z]+)/g,function(e,r,s){return r+"-"+(s.length>1?s:s.toLowerCase())}).replace(/^([A-Z]+)/,function(e,r){return r.length>1?r+"-":r.toLowerCase()})};q0.exports={split:T0,join:D0,lines:I0,unlines:P0,words:F0,unwords:_0,chars:B0,unchars:O0,reverse:L0,repeat:N0,capitalize:R0,camelize:j0,dasherize:M0};function Fc(t,e){var r,s=function(n){return t.length>1?function(){var i=n?n.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?s.call(r,i):t.apply(r,i)}:t};return s()}});var Ex=B((iZ,xx)=>{var $0,V0,W0,z0,G0,K0,H0,J0,X0,Q0,_c,Y0,Z0,ex,tx,rx,nx,sx,ix,ax,ox,lx,ux,cx,px,fx,hx,mx,dx,gx,Bc,yx;$0=Lr(function(t,e){return t>e?t:e});V0=Lr(function(t,e){return t<e?t:e});W0=function(t){return-t};z0=Math.abs;G0=function(t){return t<0?-1:t>0?1:0};K0=Lr(function(t,e){return~~(t/e)});H0=Lr(function(t,e){return t%e});J0=Lr(function(t,e){return Math.floor(t/e)});X0=Lr(function(t,e){var r;return(t%(r=e)+r)%r});Q0=(function(t){return 1/t});_c=Math.PI;Y0=_c*2;Z0=Math.exp;ex=Math.sqrt;tx=Math.log;rx=Lr(function(t,e){return Math.pow(t,e)});nx=Math.sin;sx=Math.tan;ix=Math.cos;ax=Math.asin;ox=Math.acos;lx=Math.atan;ux=Lr(function(t,e){return Math.atan2(t,e)});cx=function(t){return~~t};px=Math.round;fx=Math.ceil;hx=Math.floor;mx=function(t){return t!==t};dx=function(t){return t%2===0};gx=function(t){return t%2!==0};Bc=Lr(function(t,e){var r;for(t=Math.abs(t),e=Math.abs(e);e!==0;)r=t%e,t=e,e=r;return t});yx=Lr(function(t,e){return Math.abs(Math.floor(t/Bc(t,e)*e))});xx.exports={max:$0,min:V0,negate:W0,abs:z0,signum:G0,quot:K0,rem:H0,div:J0,mod:X0,recip:Q0,pi:_c,tau:Y0,exp:Z0,sqrt:ex,ln:tx,pow:rx,sin:nx,tan:sx,cos:ix,acos:ox,asin:ax,atan:lx,atan2:ux,truncate:cx,round:px,ceiling:fx,floor:hx,isItNaN:mx,even:dx,odd:gx,gcd:Bc,lcm:yx};function Lr(t,e){var r,s=function(n){return t.length>1?function(){var i=n?n.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?s.call(r,i):t.apply(r,i)}:t};return s()}});var Oc=B((aZ,wx)=>{var Kn,we,xn,St,st,bx,vx,Sx,le,Mj={}.toString;Kn=ry();we=c0();xn=k0();St=U0();st=Ex();bx=function(t){return t};vx=Cx(function(t,e){return Mj.call(e).slice(8,-1)===t});Sx=Cx(function(t,e){var r,s=[];for(r=0;r<t;++r)s.push(e);return s});St.empty=we.empty;St.slice=we.slice;St.take=we.take;St.drop=we.drop;St.splitAt=we.splitAt;St.takeWhile=we.takeWhile;St.dropWhile=we.dropWhile;St.span=we.span;St.breakStr=we.breakList;le={Func:Kn,List:we,Obj:xn,Str:St,Num:st,id:bx,isType:vx,replicate:Sx};le.each=we.each;le.map=we.map;le.filter=we.filter;le.compact=we.compact;le.reject=we.reject;le.partition=we.partition;le.find=we.find;le.head=we.head;le.first=we.first;le.tail=we.tail;le.last=we.last;le.initial=we.initial;le.empty=we.empty;le.reverse=we.reverse;le.difference=we.difference;le.intersection=we.intersection;le.union=we.union;le.countBy=we.countBy;le.groupBy=we.groupBy;le.fold=we.fold;le.foldl=we.foldl;le.fold1=we.fold1;le.foldl1=we.foldl1;le.foldr=we.foldr;le.foldr1=we.foldr1;le.unfoldr=we.unfoldr;le.andList=we.andList;le.orList=we.orList;le.any=we.any;le.all=we.all;le.unique=we.unique;le.uniqueBy=we.uniqueBy;le.sort=we.sort;le.sortWith=we.sortWith;le.sortBy=we.sortBy;le.sum=we.sum;le.product=we.product;le.mean=we.mean;le.average=we.average;le.concat=we.concat;le.concatMap=we.concatMap;le.flatten=we.flatten;le.maximum=we.maximum;le.minimum=we.minimum;le.maximumBy=we.maximumBy;le.minimumBy=we.minimumBy;le.scan=we.scan;le.scanl=we.scanl;le.scan1=we.scan1;le.scanl1=we.scanl1;le.scanr=we.scanr;le.scanr1=we.scanr1;le.slice=we.slice;le.take=we.take;le.drop=we.drop;le.splitAt=we.splitAt;le.takeWhile=we.takeWhile;le.dropWhile=we.dropWhile;le.span=we.span;le.breakList=we.breakList;le.zip=we.zip;le.zipWith=we.zipWith;le.zipAll=we.zipAll;le.zipAllWith=we.zipAllWith;le.at=we.at;le.elemIndex=we.elemIndex;le.elemIndices=we.elemIndices;le.findIndex=we.findIndex;le.findIndices=we.findIndices;le.apply=Kn.apply;le.curry=Kn.curry;le.flip=Kn.flip;le.fix=Kn.fix;le.over=Kn.over;le.split=St.split;le.join=St.join;le.lines=St.lines;le.unlines=St.unlines;le.words=St.words;le.unwords=St.unwords;le.chars=St.chars;le.unchars=St.unchars;le.repeat=St.repeat;le.capitalize=St.capitalize;le.camelize=St.camelize;le.dasherize=St.dasherize;le.values=xn.values;le.keys=xn.keys;le.pairsToObj=xn.pairsToObj;le.objToPairs=xn.objToPairs;le.listsToObj=xn.listsToObj;le.objToLists=xn.objToLists;le.max=st.max;le.min=st.min;le.negate=st.negate;le.abs=st.abs;le.signum=st.signum;le.quot=st.quot;le.rem=st.rem;le.div=st.div;le.mod=st.mod;le.recip=st.recip;le.pi=st.pi;le.tau=st.tau;le.exp=st.exp;le.sqrt=st.sqrt;le.ln=st.ln;le.pow=st.pow;le.sin=st.sin;le.tan=st.tan;le.cos=st.cos;le.acos=st.acos;le.asin=st.asin;le.atan=st.atan;le.atan2=st.atan2;le.truncate=st.truncate;le.round=st.round;le.ceiling=st.ceiling;le.floor=st.floor;le.isItNaN=st.isItNaN;le.even=st.even;le.odd=st.odd;le.gcd=st.gcd;le.lcm=st.lcm;le.VERSION="1.2.1";wx.exports=le;function Cx(t,e){var r,s=function(n){return t.length>1?function(){var i=n?n.concat():[];return r=e?r||this:this,i.push.apply(i,arguments)<t.length&&arguments.length?s.call(r,i):t.apply(r,i)}:t};return s()}});var Tx=B((Ax,kx)=>{(function(){var t,e,r;t=Oc().reject;function s(f,d){if(f[0]===d)return f.shift();throw new Error("Expected '"+d+"', but got '"+f[0]+"' instead in "+JSON.stringify(f)+".")}function n(f,d){if(f[0]===d)return f.shift()}function i(f,d,g){var y,v,S,A;for(y=d[0],v=d[1],g&&s(f,y),S=[],A=","+(g?v:"");f.length&&g&&f[0]!==v;)S.push(c(f,A)),n(f,",");return g&&s(f,v),S}function o(f,d){return i(f,["[","]"],d)}function a(f,d){return i(f,["(",")"],d)}function l(f,d){var g,y,v;for(d&&s(f,"{"),g={},y=","+(d?"}":"");f.length&&(!d||f[0]!=="}");)v=u(f,":"),s(f,":"),g[v]=c(f,y),n(f,",");return d&&s(f,"}"),g}function u(f,d){var g;for(d==null&&(d=""),g="";f.length&&d.indexOf(f[0])===-1;)g+=f.shift();return g}function c(f,d){switch(f[0]){case"[":return o(f,!0);case"(":return a(f,!0);case"{":return l(f,!0);default:return u(f,d)}}function p(f,d,g){var y,v,S,A,E,k,T,w;return y=d[0],v=y.type,S=y.structure,A=f.concat(),!g.explicit&&d.length===1&&(!v&&S||v==="Array"||v==="Object")?(E=S==="array"||v==="Array"?o(f,f[0]==="["):S==="tuple"?a(f,f[0]==="("):l(f,f[0]==="{"),k=f.length?c(S==="array"||v==="Array"?(T=A,T.unshift("["),T.push("]"),T):(w=A,w.unshift("("),w.push(")"),w)):E):k=c(f),k}e=/\[\]\(\)}{:,/.source,r=RegExp(`("(?:\\\\"|[^"])*")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|([`+e+"])|([^\\s"+e+"](?:\\s*[^\\s"+e+"]+)*)|\\s*"),kx.exports=function(f,d,g){var y,v;if(g==null&&(g={}),!g.explicit&&f.length===1&&f[0].type==="String")return d;if(y=t(h,d.split(r)),v=p(y,f,g),!v)throw new Error("Error parsing '"+d+"'.");return v};function h(f){return!f}}).call(Ax)});var Px=B((Dx,Ix)=>{(function(){var t,e;t=/[\$\w]+/;function r(d){var g;if(g=d[0],g==null)throw new Error("Unexpected end of input.");return g}function s(d){var g;if(g=r(d),!t.test(g))throw new Error("Expected text, got '"+g+"' instead.");return d.shift()}function n(d,g){var y;if(y=r(d),y!==g)throw new Error("Expected '"+g+"', got '"+y+"' instead.");return d.shift()}function i(d,g){var y;return y=d[0],y===g?d.shift():null}function o(d){var g;if(n(d,"["),r(d)==="]")throw new Error("Must specify type of Array - eg. [Type], got [] instead.");return g=h(d),n(d,"]"),{structure:"array",of:g}}function a(d){var g;if(g=[],n(d,"("),r(d)===")")throw new Error("Tuple must be of at least length 1 - eg. (Type), got () instead.");for(;g.push(h(d)),i(d,","),r(d)!==")";);return n(d,")"),{structure:"tuple",of:g}}function l(d){var g,y,v,S,A;for(g={},n(d,"{"),y=!1;;){if(i(d,"...")){y=!0;break}if(v=u(d),S=v[0],A=v[1],g[S]=A,i(d,","),r(d)==="}")break}return n(d,"}"),{structure:"fields",of:g,subset:y}}function u(d){var g,y;return g=s(d),n(d,":"),y=h(d),[g,y]}function c(d){switch(d[0]){case"[":return o(d);case"(":return a(d);case"{":return l(d)}}function p(d){var g,y,v,S;if(g=r(d),y=g==="*",y||t.test(g))return v=y?n(d,"*"):s(d),S=c(d),S?(S.type=v,S):{type:v};if(S=c(d),!S)throw new Error("Unexpected character: "+g);return S}function h(d){var g,y,v,S,A,E;if(r(d)==="::")throw new Error("No comment before comment separator '::' found.");for(g=d[1],g!=null&&g==="::"&&(d.shift(),d.shift()),y=[],v={},r(d)==="Maybe"&&(d.shift(),y=[{type:"Undefined"},{type:"Null"}],v={Undefined:!0,Null:!0});S=p(d),A=S.type,E=S.structure,v[A]||y.push(S),E==null&&(v[A]=!0),!!i(d,"|"););return y}e=RegExp("\\.\\.\\.|::|->|"+t.source+"|\\S","g"),Ix.exports=function(d){var g,y;if(!d.length)throw new Error("No type specified.");if(g=d.match(e)||[],f("->",g))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return h(g)}catch(v){throw y=v,new Error(y.message+" - Remaining tokens: "+JSON.stringify(g)+" - Initial input: '"+d+"'")}};function f(d,g){for(var y=-1,v=g.length>>>0;++y<v;)if(d===g[y])return!0;return!1}}).call(Dx)});var Bx=B((Fx,_x)=>{(function(){var t,e,r,s,n,i,o={}.toString;t=Oc(),e=t.any,r=t.all,s=t.isItNaN,n={Number:{typeOf:"Number",validate:function(f){return!s(f)}},NaN:{typeOf:"Number",validate:s},Int:{typeOf:"Number",validate:function(f){return!s(f)&&f%1===0}},Float:{typeOf:"Number",validate:function(f){return!s(f)}},Date:{typeOf:"Date",validate:function(f){return!s(f.getTime())}}},i={array:"Array",tuple:"Array"};function a(f,d,g){return r(function(y){return h(y,d.of,g)},f)}function l(f,d,g){var y,v,S,A,E;for(y=0,v=0,A=(S=d.of).length;v<A;++v){if(E=S[v],!h(f[y],E,g))return!1;y++}return f.length<=y}function u(f,d,g){var y,v,S,A,E,k,T;y={},v=0;for(S in f)y[S]=!0,v++;A=0;for(E in k=d.of){if(T=k[E],!h(f[E],T,g))return!1;y[E]&&A++}return d.subset||v===A}function c(f,d,g){if(!(f instanceof Object))return!1;switch(d.structure){case"fields":return u(f,d,g);case"array":return a(f,d,g);case"tuple":return l(f,d,g)}}function p(f,d,g){var y,v,S,A;if(y=d.type,v=d.structure,y)return y==="*"?!0:(S=g.customTypes[y]||n[y],S?(S.typeOf===void 0||S.typeOf===o.call(f).slice(8,-1))&&S.validate(f):y===o.call(f).slice(8,-1)&&(!v||c(f,d,g)));if(v)return(A=i[v])&&A!==o.call(f).slice(8,-1)?!1:c(f,d,g);throw new Error("No type defined. Input: "+f+".")}function h(f,d,g){if(o.call(d).slice(8,-1)!=="Array")throw new Error("Types must be in an array. Input: "+f+".");return e(function(y){return p(f,y,g)},d)}_x.exports=function(f,d,g){return g==null&&(g={}),g.customTypes==null&&(g.customTypes={}),h(d,f,g)}}).call(Fx)});var Lc=B((Ox,Lx)=>{(function(){var t,e,r,s;t="0.4.0",e=Px(),r=Bx(),s=function(n,i,o){return r(e(n),i,o)},Lx.exports={VERSION:t,typeCheck:s,parsedTypeCheck:r,parseType:e}}).call(Ox)});var jx=B((Nx,Rx)=>{(function(){var t,e,r={}.toString;t=Lc().parsedTypeCheck,e={"*":function(l,u){switch(r.call(l).slice(8,-1)){case"Array":return o(l,{type:"Array"},u);case"Object":return o(l,{type:"Object"},u);default:return{type:"Just",value:a(l,[{type:"Undefined"},{type:"Null"},{type:"NaN"},{type:"Boolean"},{type:"Number"},{type:"Date"},{type:"RegExp"},{type:"Array"},{type:"Object"},{type:"String"}],(u.explicit=!0,u))}}},Undefined:function(l){return l==="undefined"||l===void 0?{type:"Just",value:void 0}:{type:"Nothing"}},Null:function(l){return l==="null"?{type:"Just",value:null}:{type:"Nothing"}},NaN:function(l){return l==="NaN"?{type:"Just",value:NaN}:{type:"Nothing"}},Boolean:function(l){return l==="true"?{type:"Just",value:!0}:l==="false"?{type:"Just",value:!1}:{type:"Nothing"}},Number:function(l){return{type:"Just",value:+l}},Int:function(l){return{type:"Just",value:+l}},Float:function(l){return{type:"Just",value:+l}},Date:function(l,u){var c;return(c=/^\#([\s\S]*)\#$/.exec(l))?{type:"Just",value:new Date(+c[1]||c[1])}:u.explicit?{type:"Nothing"}:{type:"Just",value:new Date(+l||l)}},RegExp:function(l,u){var c;return(c=/^\/([\s\S]*)\/([gimy]*)$/.exec(l))?{type:"Just",value:new RegExp(c[1],c[2])}:u.explicit?{type:"Nothing"}:{type:"Just",value:new RegExp(l)}},Array:function(l,u){return s(l,{of:[{type:"*"}]},u)},Object:function(l,u){return i(l,{of:{}},u)},String:function(l){var u,c;return r.call(l).slice(8,-1)!=="String"?{type:"Nothing"}:(u=function(p,h){return p.replace(/\\([^u]|u[0-9a-fA-F]{4})/g,function(f,d){switch(d[0]){case h:return h;case"\\":return"\\";case"b":return"\b";case"f":return"\f";case"n":return`
21
+ `;case"r":return"\r";case"t":return" ";case"u":return JSON.parse('"'+f+'"');default:return d}})},(c=l.match(/^'([\s\S]*)'$/))?{type:"Just",value:u(c[1],"'")}:(c=l.match(/^"([\s\S]*)"$/))?{type:"Just",value:u(c[1],'"')}:{type:"Just",value:l})}};function s(l,u,c){var p,h;return r.call(l).slice(8,-1)!=="Array"?{type:"Nothing"}:(p=u.of,{type:"Just",value:(function(){var f,d,g,y=[];for(f=0,g=(d=l).length;f<g;++f)h=d[f],y.push(a(h,p,c));return y})()})}function n(l,u,c){var p,h,f,d,g,y,v;if(r.call(l).slice(8,-1)!=="Array")return{type:"Nothing"};for(p=[],h=0,f=0,g=(d=u.of).length;f<g;++f)y=d[f],v=a(l[h],y,c),r.call(v).slice(8,-1)!=="Undefined"&&p.push(v),h++;return l.length<=h?{type:"Just",value:p}:{type:"Nothing"}}function i(l,u,c){var p,h,f;return r.call(l).slice(8,-1)!=="Object"?{type:"Nothing"}:(p=u.of,{type:"Just",value:(function(){var d,g={};for(h in d=l)f=d[h],g[a(h,[{type:"String"}],c)]=a(f,p[h]||[{type:"*"}],c);return g})()})}function o(l,u,c){var p,h,f,d;if(p=u.type,h=u.structure,p){if(f=((d=c.customTypes[p])!=null?d.cast:void 0)||e[p],!f)throw new Error("Type not defined: "+p+".");return f(l,c,a)}else switch(h){case"array":return s(l,u,c);case"tuple":return n(l,u,c);case"fields":return i(l,u,c)}}function a(l,u,c){var p,h,f,d,g,y;for(p=0,h=u.length;p<h;++p)if(f=u[p],d=o(l,f,c),g=d.type,y=d.value,g!=="Nothing"&&t([f],y,{customTypes:c.customTypes}))return y;throw new Error("Value "+JSON.stringify(l)+" does not type check against "+JSON.stringify(u)+".")}Rx.exports=function(l,u,c){return!c.explicit&&u.length===1&&u[0].type==="String"?l:a(l,u,c)}}).call(Nx)});var Ux=B((Mx,qx)=>{(function(){var t,e,r,s,n,i;t=Tx(),e=jx(),r=Lc().parseType,s="0.4.1",n=function(o,a,l){return l==null&&(l={}),l.explicit==null&&(l.explicit=!1),l.customTypes==null&&(l.customTypes={}),e(t(o,a,l),o,l)},i=function(o,a,l){return n(r(o),a,l)},qx.exports={VERSION:s,parse:i,parsedTypeParse:n}}).call(Mx)});var $c=B($s=>{"use strict";var qj=Ux(),Uj=/^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u,$j=new Set([0,1,2,"off","warn","error"]);function Vj(t){let e=Array.isArray(t)?t[0]:t;return $j.has(e)}function Wj(t){return Object.values(t).every(Vj)}var Nc=class{label="";value="";justification="";constructor(e,r,s){this.label=e,this.value=r,this.justification=s}},Rc=class{parseStringConfig(e){let r=Object.create(null);return e.trim().replace(/(?<!\s)\s*([:,])\s*/gu,"$1").split(/\s|,+/u).forEach(n=>{if(!n)return;let[i,o=null]=n.split(":");r[i]=o}),r}parseJSONLikeConfig(e){try{let s=qj.parse("Object",e)||{};if(Wj(s))return{ok:!0,config:s}}catch{}let r=e.replace(/(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):/gu,'"$1":').replace(/([\]0-9])\s+(?=")/u,"$1,");try{return{ok:!0,config:JSON.parse(`{${r}}`)}}catch(s){let n=s instanceof Error?s.message:String(s);return{ok:!1,error:{message:`Failed to parse JSON from '${r}': ${n}`}}}}parseListConfig(e){let r=Object.create(null);return e.split(",").forEach(s=>{let n=s.trim().replace(/^(?<quote>['"]?)(?<ruleId>.*)\k<quote>$/su,"$<ruleId>");n&&(r[n]=!0)}),r}#e(e){let r=/\s-{2,}\s/u.exec(e);if(!r)return{directivePart:e.trim(),justificationPart:""};let s=e.slice(0,r.index).trim(),n=e.slice(r.index+r[0].length).trim();return{directivePart:s,justificationPart:n}}parseDirective(e){let{directivePart:r,justificationPart:s}=this.#e(e),n=Uj.exec(r);if(!n)return;let i=n[1],o=r.slice(n.index+i.length);return new Nc(i,o.trim(),s)}};function zj(t){return"loc"in t}function Gj(t){return"position"in t}function Kj(t){return"range"in t}function Hj(t){return"position"in t}function Jj(t,e){let r=0,s=t.length-1;for(;r<s;){let n=(r+s)/2|0;e<t[n]?s=n:r=n+1}return r}var jc=class{type="visit";kind=1;target;phase;args;constructor({target:e,phase:r,args:s}){this.target=e,this.phase=r,this.args=s}},Mc=class{type="call";kind=2;target;args;constructor({target:e,args:r}){this.target=e,this.args=r}},qc=class{type;node;value;justification;constructor({type:e,node:r,value:s,justification:n}){this.type=e,this.node=r,this.value=s,this.justification=n}},Uc=class{#e=[];#t=[0];#r;ast;text;constructor({text:e,ast:r,lineEndingPattern:s=/\r?\n/u}){this.ast=r,this.text=e,this.#r=new RegExp(s.source,s.flags.replace(/[gy]/gu,""))}#n(e){let r=this.#r.exec(e);return r?(this.#e.push(e.slice(0,r.index)),this.#t.push((this.#t.at(-1)??0)+r.index+r[0].length),!0):!1}#s(){if(this.#e.length!==this.#t.length){for(;this.#n(this.text.slice(this.#t.at(-1))););this.#e.push(this.text.slice(this.#t.at(-1))),Object.freeze(this.#e)}}#a(e){if(!(e<=(this.#t.at(-1)??0)))for(;e>(this.#t.at(-1)??0)&&this.#n(this.text.slice(this.#t.at(-1))););}#i(e,r){let s=e.line-r+1,n=this.#t.length-1,i=s-n;if(!(i<=0))for(;i>0&&this.#n(this.text.slice(this.#t.at(-1)));)i-=1}getLoc(e){if(zj(e))return e.loc;if(Gj(e))return e.position;throw new Error("Custom getLoc() method must be implemented in the subclass.")}getLocFromIndex(e){if(typeof e!="number")throw new TypeError("Expected `index` to be a number.");if(e<0||e>this.text.length)throw new RangeError(`Index out of range (requested index ${e}, but source text has length ${this.text.length}).`);let{start:{line:r,column:s},end:{line:n,column:i}}=this.getLoc(this.ast);if(e===0)return{line:r,column:s};if(e===this.text.length)return{line:n,column:i};this.#a(e);let o=(e>=(this.#t.at(-1)??0)?this.#t.length:Jj(this.#t,e))-1+r;return{line:o,column:e-this.#t[o-r]+s}}getIndexFromLoc(e){if(e===null||typeof e!="object"||typeof e.line!="number"||typeof e.column!="number")throw new TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");let{start:{line:r,column:s},end:{line:n,column:i}}=this.getLoc(this.ast);if(e.line<r||n<e.line)throw new RangeError(`Line number out of range (line ${e.line} requested). Valid range: ${r}-${n}`);if(e.line===r&&e.column===s)return 0;if(e.line===n&&e.column===i)return this.text.length;this.#i(e,r);let o=e.line===n,a=this.#t[e.line-r],l=o?this.text.length:this.#t[e.line-r+1],u=a+e.column-s;if(e.column<s||o&&u>l||!o&&u>=l)throw new RangeError(`Column number out of range (column ${e.column} requested). Valid range for line ${e.line}: ${s}-${l-a+s+(o?0:-1)}`);return u}getRange(e){if(Kj(e))return e.range;if(Hj(e))return[e.position.start.offset,e.position.end.offset];throw new Error("Custom getRange() method must be implemented in the subclass.")}getParent(e){throw new Error("Not implemented.")}getAncestors(e){if(!e)throw new TypeError("Missing required argument: node.");let r=[];for(let s=this.getParent(e);s;s=this.getParent(s))r.push(s);return r.reverse()}getText(e,r,s){if(e){let n=this.getRange(e);return this.text.slice(Math.max(n[0]-(r||0),0),n[1]+(s||0))}return this.text}get lines(){return this.#s(),this.#e}traverse(){throw new Error("Not implemented.")}};$s.CallMethodStep=Mc;$s.ConfigCommentParser=Rc;$s.Directive=qc;$s.TextSourceCodeBase=Uc;$s.VisitNodeStep=jc});var Kx=B((lZ,Gx)=>{"use strict";var Xj=hg(),Vc=Li(),Wc=Ja(),Mi=Xu(),{directivesPattern:Qj}=Qu(),Yj=Hg(),{ConfigCommentParser:Zj,VisitNodeStep:$x,CallMethodStep:eM,Directive:tM}=$c(),Vs=new Zj;function rM(t){if(!t)throw new TypeError(`Unexpected empty AST. (${t})`);if(!t.tokens)throw new TypeError("AST is missing the tokens array.");if(!t.comments)throw new TypeError("AST is missing the comments array.");if(!t.loc)throw new TypeError("AST is missing location information.");if(!t.range)throw new TypeError("AST is missing range information")}function nM(t){switch(t){case 3:return Mi.es3;case 5:return Mi.es5;default:return t<2015?Mi[`es${t+2009}`]:Mi[`es${t}`]}}function sM(t,e){let r=[],s=0,n=0;for(;s<t.length||n<e.length;)n>=e.length||s<t.length&&t[s].range[0]<e[n].range[0]?r.push(t[s++]):r.push(e[n++]);return r}function Vx(t){switch(t){case"off":return"off";case!0:case"true":case"writeable":case"writable":return"writable";case null:case!1:case"false":case"readable":case"readonly":return"readonly";default:throw new Error(`'${t}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}function iM(t,e){return t.range[0]<=e.range[0]&&t.range[1]>=e.range[0]||e.range[0]<=t.range[0]&&e.range[1]>=t.range[0]}function aM(t,e){let r=0,s=t.length;for(;r<s;){let n=(r+s)/2|0;e<t[n]?s=n:r=n+1}return r}var Wx=new WeakMap,zx=new WeakMap;function oM(t){let e=zx.get(t);return e||(e=Object.keys(t).filter(r=>t[r]!=="off"),zx.set(t,e)),e}function lM(t,e=Object.create(null),r=Object.create(null)){let s=e,n;if(Object.keys(r).length===0)n=oM(e);else{s={__proto__:null,...e};for(let[o,a]of Object.entries(r))s[o]=a.value;n=Object.keys(s).filter(o=>s[o]!=="off")}t.addGlobals(n);let i=t.scopes[0];for(let o of n){let a=i.set.get(o);a.eslintImplicitGlobalSetting=e[o],a.eslintExplicitGlobal=!!r[o],a.eslintExplicitGlobalComments=r[o]?.comments,a.writeable=s[o]==="writable"}}function uM(t,e){Object.keys(e).forEach(r=>{let s=t.set.get(r);s&&(s.eslintUsed=!0,s.eslintExported=!0)})}var Nr=Symbol("caches"),zc=class extends Xj{#e;constructor(e,r){let s,n,i,o,a,l;typeof e=="string"?(s=e,i=r,n=!1):typeof e=="object"&&e!==null&&(s=e.text,i=e.ast,n=e.hasBOM,o=e.parserServices,a=e.scopeManager,l=e.visitorKeys),rM(i),super(i.tokens,i.comments),this[Nr]=new Map([["scopes",new WeakMap],["vars",new Map],["configNodes",void 0],["isGlobalReference",new WeakMap]]),this.isESTree=i.type==="Program";let u=s.charCodeAt(0)===65279;this.hasBOM=u||!!n,this.text=u?s.slice(1):s,this.ast=i,this.parserServices=o||{},this.scopeManager=a||null,this.visitorKeys=l||Wc.DEFAULT_VISITOR_KEYS;let c=this.text.match(Vc.shebangPattern);c&&i.comments.length&&i.comments[0].value===c[1]&&(i.comments[0].type="Shebang"),this.tokensAndComments=sM(i.tokens,i.comments),this.lines=[],this.lineStartIndices=[0];let h=Vc.createGlobalLinebreakMatcher(),f;for(;f=h.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),f.index)),this.lineStartIndices.push(f.index+f[0].length);this.lines.push(this.text.slice(this.lineStartIndices.at(-1))),Object.freeze(this),Object.freeze(this.lines)}static splitLines(e){return e.split(Vc.createGlobalLinebreakMatcher())}getText(e,r,s){return e?this.text.slice(Math.max(e.range[0]-(r||0),0),e.range[1]+(s||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getNodeByRangeIndex(e){let r=null;return Wc.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(s){s.range[0]<=e&&e<s.range[1]?r=s:this.skip()},leave(s){s===r&&this.break()}}),r}isSpaceBetween(e,r){if(iM(e,r))return!1;let[s,n]=e.range[1]<=r.range[0]?[e,r]:[r,e],i=this.getLastToken(s)||s,o=this.getFirstToken(n)||n,a=i;for(;a!==o;){let l=this.getTokenAfter(a,{includeComments:!0});if(a.range[1]!==l.range[0])return!0;a=l}return!1}getLocFromIndex(e){if(typeof e!="number")throw new TypeError("Expected `index` to be a number.");if(e<0||e>this.text.length)throw new RangeError(`Index out of range (requested index ${e}, but source text has length ${this.text.length}).`);if(e===this.text.length)return{line:this.lines.length,column:this.lines.at(-1).length};let r=e>=this.lineStartIndices.at(-1)?this.lineStartIndices.length:aM(this.lineStartIndices,e);return{line:r,column:e-this.lineStartIndices[r-1]}}getIndexFromLoc(e){if(e===null||typeof e!="object"||typeof e.line!="number"||typeof e.column!="number")throw new TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");if(e.line<=0)throw new RangeError(`Line number out of range (line ${e.line} requested). Line numbers should be 1-based.`);if(e.line>this.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${e.line} requested, but only ${this.lineStartIndices.length} lines present).`);if(e.column<0)throw new RangeError(`Invalid column number (column ${e.column} requested).`);let r=this.lineStartIndices[e.line-1],s=e.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[e.line],n=r+e.column;if(e.line===this.lineStartIndices.length&&n>s||e.line<this.lineStartIndices.length&&n>=s)throw new RangeError(`Column number out of range (column ${e.column} requested, but the length of line ${e.line} is ${s-r}).`);return n}getScope(e){if(!e)throw new TypeError("Missing required argument: node.");let r=this[Nr].get("scopes"),s=r.get(e);if(s)return s;let n=e.type!=="Program";for(let i=e;i;i=i.parent){let o=this.scopeManager.acquire(i,n);if(o)return o.type==="function-expression-name"?(r.set(e,o.childScopes[0]),o.childScopes[0]):(r.set(e,o),o)}return r.set(e,this.scopeManager.scopes[0]),this.scopeManager.scopes[0]}getDeclaredVariables(e){return this.scopeManager.getDeclaredVariables(e)}getAncestors(e){if(!e)throw new TypeError("Missing required argument: node.");let r=[];for(let s=e.parent;s;s=s.parent)r.push(s);return r.reverse()}isGlobalReference(e){if(!e)throw new TypeError("Missing required argument: node.");let r=this[Nr].get("isGlobalReference");if(r.has(e))return r.get(e);if(e.type!=="Identifier")return r.set(e,!1),!1;let s=this.scopeManager.scopes[0].set.get(e.name);if(!s||s.defs.length>0)return r.set(e,!1),!1;let n=s.references.some(({identifier:i})=>i===e);return r.set(e,n),n}getLoc(e){return e.loc}getRange(e){return e.range}markVariableAsUsed(e,r=this.ast){let s=this.getScope(r),n=s;s.type==="global"&&s.childScopes.length>0&&s.childScopes[0].block===this.ast&&(n=s.childScopes[0]);for(let i=n;i;i=i.upper){let o=i.variables.find(a=>a.name===e);if(o)return o.eslintUsed=!0,!0}return!1}getInlineConfigNodes(){let e=this[Nr].get("configNodes");return e||(e=this.ast.comments.filter(r=>{if(r.type==="Shebang")return!1;let s=Vs.parseDirective(r.value);return!s||!Qj.test(s.label)?!1:r.type!=="Line"||!!/^eslint-disable-(?:next-)?line$/u.test(s.label)}),this[Nr].set("configNodes",e),e)}getDisableDirectives(){let e=this[Nr].get("disableDirectives");if(e)return e;let r=[],s=[];this.getInlineConfigNodes().forEach(i=>{let{label:o,value:a,justification:l}=Vs.parseDirective(i.value),u=/^eslint-disable-(?:next-)?line$/u.test(o);if(!(i.type==="Line"&&!u)){if(o==="eslint-disable-line"&&i.loc.start.line!==i.loc.end.line){let c=`${o} comment should not span multiple lines.`;r.push({ruleId:null,message:c,loc:i.loc});return}switch(o){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{let c=o.slice(7);s.push(new tM({type:c,node:i,value:a,justification:l}))}}}});let n={problems:r,directives:s};return this[Nr].set("disableDirectives",n),n}applyLanguageOptions(e){let r=Wx.get(e);if(!r){r=Object.assign(Object.create(null),nM(e.ecmaVersion),e.sourceType==="commonjs"?Mi.commonjs:void 0,e.globals);for(let[n,i]of Object.entries(r))r[n]=Vx(i);Wx.set(e,r)}this[Nr].get("vars").set("configGlobals",r)}applyInlineConfig(){let e=[],r=[],s=Object.create(null),n=Object.create(null);this.getInlineConfigNodes().forEach(o=>{let{label:a,value:l}=Vs.parseDirective(o.value);switch(a){case"exported":Object.assign(s,Vs.parseListConfig(l));break;case"globals":case"global":for(let[u,c]of Object.entries(Vs.parseStringConfig(l))){let p;try{p=Vx(c)}catch(h){e.push({ruleId:null,loc:o.loc,message:h.message});continue}n[u]?(n[u].comments.push(o),n[u].value=p):n[u]={comments:[o],value:p}}break;case"eslint":{let u=Vs.parseJSONLikeConfig(l);u.ok?r.push({config:{rules:u.config},loc:o.loc}):e.push({ruleId:null,loc:o.loc,message:u.error.message});break}case"eslint-env":{e.push({ruleId:null,loc:o.loc,message:"/* eslint-env */ comments are no longer supported."});break}}});let i=this[Nr].get("vars");return i.set("inlineGlobals",n),i.set("exportedVariables",s),{configs:r,problems:e}}finalize(){let e=this[Nr].get("vars"),r=e.get("configGlobals"),s=e.get("inlineGlobals"),n=e.get("exportedVariables"),i=this.scopeManager.scopes[0];lM(this.scopeManager,r,s),n&&uM(i,n)}traverse(){if(this.#e)return this.#e;let e=this.#e=[],r={enterNode(s){e.push(new $x({target:s,phase:1,args:[s]}))},leaveNode(s){e.push(new $x({target:s,phase:2,args:[s]}))},emit(s,n){e.push(new eM({target:s,args:n}))}};return this.isESTree&&(r=new Yj(r)),Wc.traverse(this.ast,{enter(s,n){s.parent=n,r.enterNode(s)},leave(s){r.leaveNode(s)},visitorKeys:this.visitorKeys}),e}};Gx.exports=zc});var Gc=B((uZ,Hx)=>{"use strict";var cM=Kx();Hx.exports={SourceCode:cM}});var qi=B((cZ,Jx)=>{"use strict";Jx.exports=t=>{if(typeof t!="string")throw new TypeError("Expected a string");return t.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}});var Kc=B((pZ,Yx)=>{"use strict";function Xx(t){return typeof t=="object"&&t!==null&&!Array.isArray(t)}function Qx(t,e){if(e===void 0)return t;if(!Xx(t)||!Xx(e))return e;let r={...t,...e};for(let s of Object.keys(e))Object.prototype.propertyIsEnumerable.call(t,s)&&(r[s]=Qx(t[s],e[s]));return r}function pM(t,e){return!t||!e?e||t||[]:[...t.map((r,s)=>Qx(r,s<e.length?e[s]:void 0)),...e.slice(t.length)]}Yx.exports={deepMergeArrays:pM}});var Hc=B((fZ,Zx)=>{"use strict";function fM(t){if([2,"2","error"].includes(t))return"error";if([1,"1","warn"].includes(t))return"warn";if([0,"0","off"].includes(t))return"off";throw new Error(`Invalid severity value: ${t}`)}function hM(t){if([2,"2","error"].includes(t))return 2;if([1,"1","warn"].includes(t))return 1;if([0,"0","off"].includes(t))return 0;throw new Error(`Invalid severity value: ${t}`)}Zx.exports={normalizeSeverityToString:fM,normalizeSeverityToNumber:hM}});var ho=B((hZ,aE)=>{"use strict";var{normalizeSeverityToNumber:eE}=Hc(),tE=new Map([[0,0],["off",0],[1,1],["warn",1],[2,2],["error",2]]);function rE(t){return typeof t=="object"&&t!==null}function Xc(t){return rE(t)&&!Array.isArray(t)}function mM(t){return typeof t>"u"}function rp(t,e,r=new Map){let s=r.get(t);if(s){let i=s.get(e);if(i)return i}else s=new Map,r.set(t,s);let n={...t,...e};delete n.__proto__,s.set(e,n);for(let i of Object.keys(e)){if(i==="__proto__"||!Object.prototype.propertyIsEnumerable.call(t,i))continue;let o=t[i],a=e[i];Xc(o)&&Xc(a)?n[i]=rp(o,a,r):mM(a)&&(n[i]=o)}return n}function Jc(t){let e=Array.isArray(t)?t.slice(0):[t];return e[0]=tE.get(e[0]),structuredClone(e)}function nE(t){for(let e of Object.keys(t))if(typeof t[e]=="function")return!0;return!1}var Qc=class extends Error{constructor(e,r){super(`Key "${e}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-options",this.messageData={ruleId:e,value:r}}};function dM(t,e){if(typeof e!="string"&&typeof e!="number"&&!Array.isArray(e))throw new Qc(t,e)}var Yc=class extends Error{constructor(e,r){super(`Key "${e}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-severity",this.messageData={ruleId:e,value:r}}};function Zc(t,e){if(typeof tE.get(e)>"u")throw new Yc(t,e)}function sE(t,e){if(!/[\w\-@$]+(?:\/[\w\-$]+)+$/iu.test(t))throw new TypeError(`Expected string in the form "pluginName/${e}" but found "${t}".`)}function gM(t){if(!rE(t))throw new TypeError("Expected an object.")}var ep=class extends Error{constructor(e){super("This appears to be in eslintrc format rather than flat config format."),this.messageTemplate="eslintrc-incompat",this.messageData={key:e}}},tp=class extends Error{constructor(e){super("This appears to be in eslintrc format (array of strings) rather than flat config format (object)."),this.messageTemplate="eslintrc-plugins",this.messageData={plugins:e}}},yM={merge:"replace",validate:"boolean"},iE=new Set(["error","warn","off",2,1,0]),xM={merge(t,e){let r=e===void 0?t:e;return typeof r=="boolean"?r?"warn":"off":eE(r)},validate(t){if(!(iE.has(t)||typeof t=="boolean"))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.')}},EM={merge(t,e){return eE(e===void 0?t:e)},validate(t){if(!iE.has(t))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, or 2.')}},bM={merge(t={},e={}){return rp(t,e)},validate:"object"},vM={merge(t={},e={}){let r=rp(t,e);for(let[s,n]of Object.entries(r))if(Xc(n)){if(nE(n)){r[s]=e[s]??t[s];continue}r[s]={...r[s]};continue}return r},validate:"object"},SM={merge:"replace",validate(t){sE(t,"languageName")}},CM={merge(t={},e={}){let r=new Set([...Object.keys(t),...Object.keys(e)]),s={};for(let n of r)if(n!=="__proto__"){if(n in t&&n in e&&t[n]!==e[n])throw new TypeError(`Cannot redefine plugin "${n}".`);s[n]=e[n]||t[n]}return s},validate(t){if(t===null||typeof t!="object")throw new TypeError("Expected an object.");if(Array.isArray(t))throw new tp(t);for(let e of Object.keys(t))if(e!=="__proto__"&&(t[e]===null||typeof t[e]!="object"))throw new TypeError(`Key "${e}": Expected an object.`)}},wM={merge:"replace",validate(t){if(typeof t=="string")sE(t,"processorName");else if(t&&typeof t=="object"){if(typeof t.preprocess!="function"||typeof t.postprocess!="function")throw new TypeError("Object must have a preprocess() and a postprocess() method.")}else throw new TypeError("Expected an object or a string.")}},AM={merge(t={},e={}){let r={...t,...e};for(let s of Object.keys(r))try{if(s==="__proto__"){delete r.__proto__;continue}if(r[s]=Jc(r[s]),!(s in t)||!(s in e))continue;let n=Jc(t[s]),i=Jc(e[s]);if(i.length===1){r[s]=[i[0],...n.slice(1)];continue}}catch(n){throw new Error(`Key "${s}": ${n.message}`,{cause:n})}return r},validate(t){gM(t);for(let e of Object.keys(t)){if(e==="__proto__")continue;let r=t[e];dM(e,r),Array.isArray(r)?Zc(e,r[0]):Zc(e,r)}}};function kM(t){return{merge:"replace",validate(){throw new ep(t)}}}var TM=["env","extends","globals","ignorePatterns","noInlineConfig","overrides","parser","parserOptions","reportUnusedDisableDirectives","root"],DM={...Object.fromEntries(TM.map(t=>[t,kM(t)])),settings:bM,linterOptions:{schema:{noInlineConfig:yM,reportUnusedDisableDirectives:xM,reportUnusedInlineConfigs:EM}},language:SM,languageOptions:vM,processor:wM,plugins:CM,rules:AM};aE.exports={flatConfigSchema:DM,hasMethod:nE,assertIsRuleSeverity:Zc}});var hE=B(kt=>{"use strict";function Rr(t){if(typeof t!="string")throw new TypeError(`Path must be a string, received "${JSON.stringify(t)}"`)}function IM(t,e){if(e.length>=t.length)return t;let r=t.length-e.length;for(let s=e.length-1;s>=0;--s)if(t.charCodeAt(r+s)!==e.charCodeAt(s))return t;return t.slice(0,-e.length)}function PM(t,e,r=0){let s=!1,n=t.length;for(let i=t.length-1;i>=r;--i)if(e(t.charCodeAt(i))){if(s){r=i+1;break}}else s||(s=!0,n=i+1);return t.slice(r,n)}function FM(t,e){if(Rr(t),t.length===0)return t;if(typeof e!="string")throw new TypeError(`Suffix must be a string, received "${JSON.stringify(e)}"`)}function _M(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function Ws(t){return t=_M(t),decodeURIComponent(t.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function ip(t,e){if(t.length<=1)return t;let r=t.length;for(let s=t.length-1;s>0&&e(t.charCodeAt(s));s--)r=s;return t.slice(0,r)}var Ui=46,oE=47;function At(t){return t===oE}function BM(t,e=""){t instanceof URL&&(t=Ws(t)),FM(t,e);let r=PM(t,At),s=ip(r,At);return e?IM(s,e):s}var OM=":",ap="/",lE=/\/+/;function LM(t){if(Rr(t),t.length===0)return"."}function NM(t){t instanceof URL&&(t=Ws(t)),LM(t);let e=-1,r=!1;for(let s=t.length-1;s>=1;--s)if(At(t.charCodeAt(s))){if(r){e=s;break}}else r=!0;return e===-1?At(t.charCodeAt(0))?"/":".":ip(t.slice(0,e),At)}function RM(t){t instanceof URL&&(t=Ws(t)),Rr(t);let e=-1,r=0,s=-1,n=!0,i=0;for(let o=t.length-1;o>=0;--o){let a=t.charCodeAt(o);if(At(a)){if(!n){r=o+1;break}continue}s===-1&&(n=!1,s=o+1),a===Ui?e===-1?e=o:i!==1&&(i=1):e!==-1&&(i=-1)}return e===-1||s===-1||i===0||i===1&&e===s-1&&e===r+1?"":t.slice(e,s)}function jM(t,e){let r=e.dir||e.root,s=e.base||(e.name??"")+(e.ext??"");return r?s===t?r:r===e.root?r+s:r+t+s:s}function MM(t){if(t===null||typeof t!="object")throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof t}"`)}function qM(t){return MM(t),jM("/",t)}function uE(t){return Rr(t),t.length>0&&At(t.charCodeAt(0))}function UM(t){if(Rr(t),t.length===0)return"."}function cE(t,e,r,s){let n="",i=0,o=-1,a=0,l;for(let u=0;u<=t.length;++u){if(u<t.length)l=t.charCodeAt(u);else{if(s(l))break;l=oE}if(s(l)){if(!(o===u-1||a===1))if(o!==u-1&&a===2){if(n.length<2||i!==2||n.charCodeAt(n.length-1)!==Ui||n.charCodeAt(n.length-2)!==Ui){if(n.length>2){let c=n.lastIndexOf(r);c===-1?(n="",i=0):(n=n.slice(0,c),i=n.length-1-n.lastIndexOf(r)),o=u,a=0;continue}else if(n.length===2||n.length===1){n="",i=0,o=u,a=0;continue}}e&&(n.length>0?n+=`${r}..`:n="..",i=2)}else n.length>0?n+=r+t.slice(o+1,u):n=t.slice(o+1,u),i=u-o-1;o=u,a=0}else l===Ui&&a!==-1?++a:a=-1}return n}function mo(t){t instanceof URL&&(t=Ws(t)),UM(t);let e=At(t.charCodeAt(0)),r=At(t.charCodeAt(t.length-1));return t=cE(t,!e,"/",At),t.length===0&&!e&&(t="."),t.length>0&&r&&(t+="/"),e?`/${t}`:t}function pE(t,...e){if(t===void 0)return".";t instanceof URL&&(t=Ws(t)),e=t?[t,...e]:e,e.forEach(s=>Rr(s));let r=e.filter(s=>s.length>0).join("/");return r===""?".":mo(r)}function $M(t){Rr(t);let e={root:"",dir:"",base:"",ext:"",name:""};if(t.length===0)return e;let r=At(t.charCodeAt(0)),s;r?(e.root="/",s=1):s=0;let n=-1,i=0,o=-1,a=!0,l=t.length-1,u=0;for(;l>=s;--l){let c=t.charCodeAt(l);if(At(c)){if(!a){i=l+1;break}continue}o===-1&&(a=!1,o=l+1),c===Ui?n===-1?n=l:u!==1&&(u=1):n!==-1&&(u=-1)}return n===-1||o===-1||u===0||u===1&&n===o-1&&n===i+1?(o!==-1&&(i===0&&r?e.base=e.name=t.slice(1,o):e.base=e.name=t.slice(i,o)),e.base=e.base||"/"):(i===0&&r?(e.name=t.slice(1,n),e.base=t.slice(1,o)):(e.name=t.slice(i,n),e.base=t.slice(i,o)),e.ext=t.slice(n,o)),i>0?e.dir=ip(t.slice(0,i-1),At):r&&(e.dir="/"),e}function VM(t){let e=globalThis,r=e.process?.cwd??e.Deno?.cwd;if(typeof r!="function")throw new TypeError(t);return r()}function sp(...t){let e="",r=!1;for(let s=t.length-1;s>=-1&&!r;s--){let n;s>=0?n=t[s]:n=VM("Resolved a relative path without a current working directory (CWD)"),Rr(n),n.length!==0&&(e=`${n}/${e}`,r=At(n.charCodeAt(0)))}return e=cE(e,!r,"/",At),r?e.length>0?`/${e}`:"/":e.length>0?e:"."}function WM(t,e){if(Rr(t),Rr(e),t===e)return""}function zM(t,e){if(WM(t,e),t=sp(t),e=sp(e),t===e)return"";let r=1,s=t.length;for(;r<s&&At(t.charCodeAt(r));++r);let n=s-r,i=1,o=e.length;for(;i<o&&At(e.charCodeAt(i));++i);let a=o-i,l=n<a?n:a,u=-1,c=0;for(;c<=l;++c){if(c===l){if(a>l){if(At(e.charCodeAt(i+c)))return e.slice(i+c+1);if(c===0)return e.slice(i+c)}else n>l&&(At(t.charCodeAt(r+c))?u=c:c===0&&(u=0));break}let h=t.charCodeAt(r+c),f=e.charCodeAt(i+c);if(h!==f)break;At(h)&&(u=c)}let p="";for(c=r+u+1;c<=s;++c)(c===s||At(t.charCodeAt(c)))&&(p.length===0?p+="..":p+="/..");return p.length>0?p+e.slice(i+u):(i+=u,At(e.charCodeAt(i))&&++i,e.slice(i))}var GM={" ":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D"," ":"%20"};function KM(t){return t.replaceAll(/[\s]/g,e=>GM[e]??e)}function HM(t){if(!uE(t))throw new TypeError(`Path must be absolute: received "${t}"`);let e=new URL("file:///");return e.pathname=KM(t.replace(/^\/+/,"/").replace(/%/g,"%25").replace(/\\/g,"%5C")),e}function JM(t){return t}function XM(t,e){let[r="",...s]=t,n=r.split(e),i=n.length,o="";for(let a of s){let l=a.split(e);l.length<=i&&(i=l.length,o="");for(let u=0;u<i;u++)if(l[u]!==n[u]){i=u,o=u===0?"":e;break}}return n.slice(0,i).join(e)+o}function QM(t){return XM(t,ap)}var np=["!","$","(",")","*","+",".","=","?","[","\\","^","{","|"],YM=["-","\\","]"];function ZM(t,e,{extended:r=!0,globstar:s=!0,caseInsensitive:n=!1}={}){if(e==="")return/(?!)/;let i=e.length;for(;i>1&&t.seps.includes(e[i-1]);i--);e=e.slice(0,i);let o="";for(let a=0;a<e.length;){let l="",u=[],c=!1,p=!1,h=!1,f=a;for(;f<e.length&&!(t.seps.includes(e[f])&&u.length===0);f++){if(p){p=!1,l+=(c?YM:np).includes(e[f])?`\\${e[f]}`:e[f];continue}if(e[f]===t.escapePrefix){p=!0;continue}if(e[f]==="[")if(c){if(e[f+1]===":"){let d=f+1,g="";for(;e[d+1]!==void 0&&e[d+1]!==":";)g+=e[d+1],d++;if(e[d+1]===":"&&e[d+2]==="]"){f=d+2,g==="alnum"?l+="\\dA-Za-z":g==="alpha"?l+="A-Za-z":g==="ascii"?l+="\0-\x7F":g==="blank"?l+=" ":g==="cntrl"?l+="\0-\x7F":g==="digit"?l+="\\d":g==="graph"?l+="!-~":g==="lower"?l+="a-z":g==="print"?l+=" -~":g==="punct"?l+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_\u2018{|}~`:g==="space"?l+="\\s\v":g==="upper"?l+="A-Z":g==="word"?l+="\\w":g==="xdigit"&&(l+="\\dA-Fa-f");continue}}}else{c=!0,l+="[",e[f+1]==="!"?(f++,l+="^"):e[f+1]==="^"&&(f++,l+="\\^");continue}if(e[f]==="]"&&c){c=!1,l+="]";continue}if(c){l+=e[f];continue}if(e[f]===")"&&u.length>0&&u[u.length-1]!=="BRACE"){l+=")";let d=u.pop();d==="!"?l+=t.wildcard:d!=="@"&&(l+=d);continue}if(e[f]==="|"&&u.length>0&&u[u.length-1]!=="BRACE"){l+="|";continue}if(e[f]==="+"&&r&&e[f+1]==="("){f++,u.push("+"),l+="(?:";continue}if(e[f]==="@"&&r&&e[f+1]==="("){f++,u.push("@"),l+="(?:";continue}if(e[f]==="?"){r&&e[f+1]==="("?(f++,u.push("?"),l+="(?:"):l+=".";continue}if(e[f]==="!"&&r&&e[f+1]==="("){f++,u.push("!"),l+="(?!";continue}if(e[f]==="{"){u.push("BRACE"),l+="(?:";continue}if(e[f]==="}"&&u[u.length-1]==="BRACE"){u.pop(),l+=")";continue}if(e[f]===","&&u[u.length-1]==="BRACE"){l+="|";continue}if(e[f]==="*"){if(r&&e[f+1]==="(")f++,u.push("*"),l+="(?:";else{let d=e[f-1],g=1;for(;e[f+1]==="*";)f++,g++;let y=e[f+1];s&&g===2&&[...t.seps,void 0].includes(d)&&[...t.seps,void 0].includes(y)?(l+=t.globstar,h=!0):l+=t.wildcard}continue}l+=np.includes(e[f])?`\\${e[f]}`:e[f]}if(u.length>0||c||p){l="";for(let d of e.slice(a,f))l+=np.includes(d)?`\\${d}`:d,h=!1}for(o+=l,h||(o+=f<e.length?t.sep:t.sepMaybe,h=!0);t.seps.includes(e[f]);)f++;a=f}return o=`^${o}$`,new RegExp(o,n?"i":"")}var eq={sep:"/+",sepMaybe:"/*",seps:["/"],globstar:"(?:[^/]*(?:/|$)+)*",wildcard:"[^/]*",escapePrefix:"\\"};function tq(t,e={}){return ZM(eq,t,e)}function rq(t){let e={"{":"}","(":")","[":"]"},r=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\)|@\([^)]+\))/;if(t==="")return!1;let s;for(;s=r.exec(t);){if(s[2])return!0;let n=s.index+s[0].length,i=s[1],o=i?e[i]:null;if(i&&o){let a=t.indexOf(o,n);a!==-1&&(n=a+1)}t=t.slice(n)}return!1}function fE(t,e={}){let{globstar:r=!1}=e;if(t.match(/\0/g))throw new Error(`Glob contains invalid characters: "${t}"`);if(!r)return mo(t);let s=lE.source,n=new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`,"g");return mo(t.replace(n,"\0")).replace(/\0/g,"..")}function nq(t,e={}){let{globstar:r=!1}=e;if(!r||t.length===0)return pE(...t);let s;for(let n of t){let i=n;i.length>0&&(s?s+=`${ap}${i}`:s=i)}return s?fE(s,{globstar:r}):"."}kt.DELIMITER=OM;kt.SEPARATOR=ap;kt.SEPARATOR_PATTERN=lE;kt.basename=BM;kt.common=QM;kt.dirname=NM;kt.extname=RM;kt.format=qM;kt.fromFileUrl=Ws;kt.globToRegExp=tq;kt.isAbsolute=uE;kt.isGlob=rq;kt.join=pE;kt.joinGlobs=nq;kt.normalize=mo;kt.normalizeGlob=fE;kt.parse=$M;kt.relative=zM;kt.resolve=sp;kt.toFileUrl=HM;kt.toNamespacedPath=JM});var vE=B(Tt=>{"use strict";function jr(t){if(typeof t!="string")throw new TypeError(`Path must be a string, received "${JSON.stringify(t)}"`)}function sq(t,e){if(e.length>=t.length)return t;let r=t.length-e.length;for(let s=e.length-1;s>=0;--s)if(t.charCodeAt(r+s)!==e.charCodeAt(s))return t;return t.slice(0,-e.length)}function iq(t,e,r=0){let s=!1,n=t.length;for(let i=t.length-1;i>=r;--i)if(e(t.charCodeAt(i))){if(s){r=i+1;break}}else s||(s=!0,n=i+1);return t.slice(r,n)}function aq(t,e){if(jr(t),t.length===0)return t;if(typeof e!="string")throw new TypeError(`Suffix must be a string, received "${JSON.stringify(e)}"`)}var oq=65,lq=97,uq=90,cq=122,zs=46,lp=47,pr=92,En=58,pq=63;function dE(t,e){if(t.length<=1)return t;let r=t.length;for(let s=t.length-1;s>0&&e(t.charCodeAt(s));s--)r=s;return t.slice(0,r)}function fq(t){return t===lp}function He(t){return t===lp||t===pr}function bn(t){return t>=lq&&t<=cq||t>=oq&&t<=uq}function hq(t){if(t=t instanceof URL?t:new URL(t),t.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${t.protocol}"`);return t}function Gs(t){t=hq(t);let e=decodeURIComponent(t.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return t.hostname!==""&&(e=`\\\\${t.hostname}${e}`),e}function mq(t,e=""){t instanceof URL&&(t=Gs(t)),aq(t,e);let r=0;if(t.length>=2){let i=t.charCodeAt(0);bn(i)&&t.charCodeAt(1)===En&&(r=2)}let s=iq(t,He,r),n=dE(s,He);return e?sq(n,e):n}var dq=";",up="\\",gE=/[\\/]+/;function gq(t){if(jr(t),t.length===0)return"."}function yq(t){t instanceof URL&&(t=Gs(t)),gq(t);let e=t.length,r=-1,s=-1,n=!0,i=0,o=t.charCodeAt(0);if(e>1)if(He(o)){if(r=i=1,He(t.charCodeAt(1))){let a=2,l=a;for(;a<e&&!He(t.charCodeAt(a));++a);if(a<e&&a!==l){for(l=a;a<e&&He(t.charCodeAt(a));++a);if(a<e&&a!==l){for(l=a;a<e&&!He(t.charCodeAt(a));++a);if(a===e)return t;a!==l&&(r=i=a+1)}}}}else bn(o)&&t.charCodeAt(1)===En&&(r=i=2,e>2&&He(t.charCodeAt(2))&&(r=i=3));else if(He(o))return t;for(let a=e-1;a>=i;--a)if(He(t.charCodeAt(a))){if(!n){s=a;break}}else n=!1;if(s===-1){if(r===-1)return".";s=r}return dE(t.slice(0,s),fq)}function xq(t){t instanceof URL&&(t=Gs(t)),jr(t);let e=0,r=-1,s=0,n=-1,i=!0,o=0;t.length>=2&&t.charCodeAt(1)===En&&bn(t.charCodeAt(0))&&(e=s=2);for(let a=t.length-1;a>=e;--a){let l=t.charCodeAt(a);if(He(l)){if(!i){s=a+1;break}continue}n===-1&&(i=!1,n=a+1),l===zs?r===-1?r=a:o!==1&&(o=1):r!==-1&&(o=-1)}return r===-1||n===-1||o===0||o===1&&r===n-1&&r===s+1?"":t.slice(r,n)}function Eq(t,e){let r=e.dir||e.root,s=e.base||(e.name??"")+(e.ext??"");return r?s===t?r:r===e.root?r+s:r+t+s:s}function bq(t){if(t===null||typeof t!="object")throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof t}"`)}function vq(t){return bq(t),Eq("\\",t)}function yE(t){jr(t);let e=t.length;if(e===0)return!1;let r=t.charCodeAt(0);return He(r)?!0:!!(bn(r)&&e>2&&t.charCodeAt(1)===En&&He(t.charCodeAt(2)))}function Sq(t){if(jr(t),t.length===0)return"."}function xE(t,e,r,s){let n="",i=0,o=-1,a=0,l;for(let u=0;u<=t.length;++u){if(u<t.length)l=t.charCodeAt(u);else{if(s(l))break;l=lp}if(s(l)){if(!(o===u-1||a===1))if(o!==u-1&&a===2){if(n.length<2||i!==2||n.charCodeAt(n.length-1)!==zs||n.charCodeAt(n.length-2)!==zs){if(n.length>2){let c=n.lastIndexOf(r);c===-1?(n="",i=0):(n=n.slice(0,c),i=n.length-1-n.lastIndexOf(r)),o=u,a=0;continue}else if(n.length===2||n.length===1){n="",i=0,o=u,a=0;continue}}e&&(n.length>0?n+=`${r}..`:n="..",i=2)}else n.length>0?n+=r+t.slice(o+1,u):n=t.slice(o+1,u),i=u-o-1;o=u,a=0}else l===zs&&a!==-1?++a:a=-1}return n}function go(t){t instanceof URL&&(t=Gs(t)),Sq(t);let e=t.length,r=0,s,n=!1,i=t.charCodeAt(0);if(e>1)if(He(i))if(n=!0,He(t.charCodeAt(1))){let a=2,l=a;for(;a<e&&!He(t.charCodeAt(a));++a);if(a<e&&a!==l){let u=t.slice(l,a);for(l=a;a<e&&He(t.charCodeAt(a));++a);if(a<e&&a!==l){for(l=a;a<e&&!He(t.charCodeAt(a));++a);if(a===e)return`\\\\${u}\\${t.slice(l)}\\`;a!==l&&(s=`\\\\${u}\\${t.slice(l,a)}`,r=a)}}}else r=1;else bn(i)&&t.charCodeAt(1)===En&&(s=t.slice(0,2),r=2,e>2&&He(t.charCodeAt(2))&&(n=!0,r=3));else if(He(i))return"\\";let o;return r<e?o=xE(t.slice(r),!n,"\\",He):o="",o.length===0&&!n&&(o="."),o.length>0&&He(t.charCodeAt(e-1))&&(o+="\\"),s===void 0?n?o.length>0?`\\${o}`:"\\":o:n?o.length>0?`${s}\\${o}`:`${s}\\`:s+o}function EE(t,...e){if(t instanceof URL&&(t=Gs(t)),e=t?[t,...e]:e,e.forEach(o=>jr(o)),e=e.filter(o=>o.length>0),e.length===0)return".";let r=!0,s=0,n=e[0];if(He(n.charCodeAt(0))){++s;let o=n.length;o>1&&He(n.charCodeAt(1))&&(++s,o>2&&(He(n.charCodeAt(2))?++s:r=!1))}let i=e.join("\\");if(r){for(;s<i.length&&He(i.charCodeAt(s));++s);s>=2&&(i=`\\${i.slice(s)}`)}return go(i)}function Cq(t){jr(t);let e={root:"",dir:"",base:"",ext:"",name:""},r=t.length;if(r===0)return e;let s=0,n=t.charCodeAt(0);if(r>1){if(He(n)){if(s=1,He(t.charCodeAt(1))){let p=2,h=p;for(;p<r&&!He(t.charCodeAt(p));++p);if(p<r&&p!==h){for(h=p;p<r&&He(t.charCodeAt(p));++p);if(p<r&&p!==h){for(h=p;p<r&&!He(t.charCodeAt(p));++p);p===r?s=p:p!==h&&(s=p+1)}}}}else if(bn(n)&&t.charCodeAt(1)===En)if(s=2,r>2){if(He(t.charCodeAt(2))){if(r===3)return e.root=e.dir=t,e.base="\\",e;s=3}}else return e.root=e.dir=t,e}else if(He(n))return e.root=e.dir=t,e.base="\\",e;s>0&&(e.root=t.slice(0,s));let i=-1,o=s,a=-1,l=!0,u=t.length-1,c=0;for(;u>=s;--u){if(n=t.charCodeAt(u),He(n)){if(!l){o=u+1;break}continue}a===-1&&(l=!1,a=u+1),n===zs?i===-1?i=u:c!==1&&(c=1):i!==-1&&(c=-1)}return i===-1||a===-1||c===0||c===1&&i===a-1&&i===o+1?a!==-1&&(e.base=e.name=t.slice(o,a)):(e.name=t.slice(o,i),e.base=t.slice(o,a),e.ext=t.slice(i,a)),e.base=e.base||"\\",o>0&&o!==s?e.dir=t.slice(0,o-1):e.dir=e.root,e}function mE(t){let e=globalThis,r=e.process?.cwd??e.Deno?.cwd;if(typeof r!="function")throw new TypeError(t);return r()}function yo(...t){let e="",r="",s=!1;for(let n=t.length-1;n>=-1;n--){let i;n>=0?i=t[n]:e?(i=mE("Resolved a relative path without a current working directory (CWD)"),(i===void 0||i.slice(0,3).toLowerCase()!==`${e.toLowerCase()}\\`)&&(i=`${e}\\`)):i=mE("Resolved a drive-letter-less path without a current working directory (CWD)"),jr(i);let o=i.length;if(o===0)continue;let a=0,l="",u=!1,c=i.charCodeAt(0);if(o>1)if(He(c))if(u=!0,He(i.charCodeAt(1))){let p=2,h=p;for(;p<o&&!He(i.charCodeAt(p));++p);if(p<o&&p!==h){let f=i.slice(h,p);for(h=p;p<o&&He(i.charCodeAt(p));++p);if(p<o&&p!==h){for(h=p;p<o&&!He(i.charCodeAt(p));++p);p===o?(l=`\\\\${f}\\${i.slice(h)}`,a=p):p!==h&&(l=`\\\\${f}\\${i.slice(h,p)}`,a=p)}}}else a=1;else bn(c)&&i.charCodeAt(1)===En&&(l=i.slice(0,2),a=2,o>2&&He(i.charCodeAt(2))&&(u=!0,a=3));else He(c)&&(a=1,u=!0);if(!(l.length>0&&e.length>0&&l.toLowerCase()!==e.toLowerCase())&&(e.length===0&&l.length>0&&(e=l),s||(r=`${i.slice(a)}\\${r}`,s=u),s&&e.length>0))break}return r=xE(r,!s,"\\",He),e+(s?"\\":"")+r||"."}function wq(t,e){if(jr(t),jr(e),t===e)return""}function Aq(t,e){wq(t,e);let r=yo(t),s=yo(e);if(r===s||(t=r.toLowerCase(),e=s.toLowerCase(),t===e))return"";let n=0,i=t.length;for(;n<i&&t.charCodeAt(n)===pr;++n);for(;i-1>n&&t.charCodeAt(i-1)===pr;--i);let o=i-n,a=0,l=e.length;for(;a<l&&e.charCodeAt(a)===pr;++a);for(;l-1>a&&e.charCodeAt(l-1)===pr;--l);let u=l-a,c=o<u?o:u,p=-1,h=0;for(;h<=c;++h){if(h===c){if(u>c){if(e.charCodeAt(a+h)===pr)return s.slice(a+h+1);if(h===2)return s.slice(a+h)}o>c&&(t.charCodeAt(n+h)===pr?p=h:h===2&&(p=3));break}let d=t.charCodeAt(n+h),g=e.charCodeAt(a+h);if(d!==g)break;d===pr&&(p=h)}if(h!==c&&p===-1)return s;let f="";for(p===-1&&(p=0),h=n+p+1;h<=i;++h)(h===i||t.charCodeAt(h)===pr)&&(f.length===0?f+="..":f+="\\..");return f.length>0?f+s.slice(a+p,l):(a+=p,s.charCodeAt(a)===pr&&++a,s.slice(a,l))}var kq={" ":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D"," ":"%20"};function Tq(t){return t.replaceAll(/[\s]/g,e=>kq[e]??e)}function Dq(t){if(!yE(t))throw new TypeError(`Path must be absolute: received "${t}"`);let[,e,r]=t.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/),s=new URL("file:///");if(s.pathname=Tq(r.replace(/%/g,"%25")),e!==void 0&&e!=="localhost"&&(s.hostname=e,!s.hostname))throw new TypeError(`Invalid hostname: "${s.hostname}"`);return s}function Iq(t){if(typeof t!="string")return t;if(t.length===0)return"";let e=yo(t);if(e.length>=3){if(e.charCodeAt(0)===pr){if(e.charCodeAt(1)===pr){let r=e.charCodeAt(2);if(r!==pq&&r!==zs)return`\\\\?\\UNC\\${e.slice(2)}`}}else if(bn(e.charCodeAt(0))&&e.charCodeAt(1)===En&&e.charCodeAt(2)===pr)return`\\\\?\\${e}`}return t}function Pq(t,e){let[r="",...s]=t,n=r.split(e),i=n.length,o="";for(let a of s){let l=a.split(e);l.length<=i&&(i=l.length,o="");for(let u=0;u<i;u++)if(l[u]!==n[u]){i=u,o=u===0?"":e;break}}return n.slice(0,i).join(e)+o}function Fq(t){return Pq(t,up)}var op=["!","$","(",")","*","+",".","=","?","[","\\","^","{","|"],_q=["-","\\","]"];function Bq(t,e,{extended:r=!0,globstar:s=!0,caseInsensitive:n=!1}={}){if(e==="")return/(?!)/;let i=e.length;for(;i>1&&t.seps.includes(e[i-1]);i--);e=e.slice(0,i);let o="";for(let a=0;a<e.length;){let l="",u=[],c=!1,p=!1,h=!1,f=a;for(;f<e.length&&!(t.seps.includes(e[f])&&u.length===0);f++){if(p){p=!1,l+=(c?_q:op).includes(e[f])?`\\${e[f]}`:e[f];continue}if(e[f]===t.escapePrefix){p=!0;continue}if(e[f]==="[")if(c){if(e[f+1]===":"){let d=f+1,g="";for(;e[d+1]!==void 0&&e[d+1]!==":";)g+=e[d+1],d++;if(e[d+1]===":"&&e[d+2]==="]"){f=d+2,g==="alnum"?l+="\\dA-Za-z":g==="alpha"?l+="A-Za-z":g==="ascii"?l+="\0-\x7F":g==="blank"?l+=" ":g==="cntrl"?l+="\0-\x7F":g==="digit"?l+="\\d":g==="graph"?l+="!-~":g==="lower"?l+="a-z":g==="print"?l+=" -~":g==="punct"?l+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_\u2018{|}~`:g==="space"?l+="\\s\v":g==="upper"?l+="A-Z":g==="word"?l+="\\w":g==="xdigit"&&(l+="\\dA-Fa-f");continue}}}else{c=!0,l+="[",e[f+1]==="!"?(f++,l+="^"):e[f+1]==="^"&&(f++,l+="\\^");continue}if(e[f]==="]"&&c){c=!1,l+="]";continue}if(c){l+=e[f];continue}if(e[f]===")"&&u.length>0&&u[u.length-1]!=="BRACE"){l+=")";let d=u.pop();d==="!"?l+=t.wildcard:d!=="@"&&(l+=d);continue}if(e[f]==="|"&&u.length>0&&u[u.length-1]!=="BRACE"){l+="|";continue}if(e[f]==="+"&&r&&e[f+1]==="("){f++,u.push("+"),l+="(?:";continue}if(e[f]==="@"&&r&&e[f+1]==="("){f++,u.push("@"),l+="(?:";continue}if(e[f]==="?"){r&&e[f+1]==="("?(f++,u.push("?"),l+="(?:"):l+=".";continue}if(e[f]==="!"&&r&&e[f+1]==="("){f++,u.push("!"),l+="(?!";continue}if(e[f]==="{"){u.push("BRACE"),l+="(?:";continue}if(e[f]==="}"&&u[u.length-1]==="BRACE"){u.pop(),l+=")";continue}if(e[f]===","&&u[u.length-1]==="BRACE"){l+="|";continue}if(e[f]==="*"){if(r&&e[f+1]==="(")f++,u.push("*"),l+="(?:";else{let d=e[f-1],g=1;for(;e[f+1]==="*";)f++,g++;let y=e[f+1];s&&g===2&&[...t.seps,void 0].includes(d)&&[...t.seps,void 0].includes(y)?(l+=t.globstar,h=!0):l+=t.wildcard}continue}l+=op.includes(e[f])?`\\${e[f]}`:e[f]}if(u.length>0||c||p){l="";for(let d of e.slice(a,f))l+=op.includes(d)?`\\${d}`:d,h=!1}for(o+=l,h||(o+=f<e.length?t.sep:t.sepMaybe,h=!0);t.seps.includes(e[f]);)f++;a=f}return o=`^${o}$`,new RegExp(o,n?"i":"")}var Oq={sep:"(?:\\\\|/)+",sepMaybe:"(?:\\\\|/)*",seps:["\\","/"],globstar:"(?:[^\\\\/]*(?:\\\\|/|$)+)*",wildcard:"[^\\\\/]*",escapePrefix:"`"};function Lq(t,e={}){return Bq(Oq,t,e)}function Nq(t){let e={"{":"}","(":")","[":"]"},r=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\)|@\([^)]+\))/;if(t==="")return!1;let s;for(;s=r.exec(t);){if(s[2])return!0;let n=s.index+s[0].length,i=s[1],o=i?e[i]:null;if(i&&o){let a=t.indexOf(o,n);a!==-1&&(n=a+1)}t=t.slice(n)}return!1}function bE(t,e={}){let{globstar:r=!1}=e;if(t.match(/\0/g))throw new Error(`Glob contains invalid characters: "${t}"`);if(!r)return go(t);let s=gE.source,n=new RegExp(`(?<=(${s}|^)\\*\\*${s})\\.\\.(?=${s}|$)`,"g");return go(t.replace(n,"\0")).replace(/\0/g,"..")}function Rq(t,e={}){let{globstar:r=!1}=e;if(!r||t.length===0)return EE(...t);let s;for(let n of t){let i=n;i.length>0&&(s?s+=`${up}${i}`:s=i)}return s?bE(s,{globstar:r}):"."}Tt.DELIMITER=dq;Tt.SEPARATOR=up;Tt.SEPARATOR_PATTERN=gE;Tt.basename=mq;Tt.common=Fq;Tt.dirname=yq;Tt.extname=xq;Tt.format=vq;Tt.fromFileUrl=Gs;Tt.globToRegExp=Lq;Tt.isAbsolute=yE;Tt.isGlob=Nq;Tt.join=EE;Tt.joinGlobs=Rq;Tt.normalize=go;Tt.normalizeGlob=bE;Tt.parse=Cq;Tt.relative=Aq;Tt.resolve=yo;Tt.toFileUrl=Dq;Tt.toNamespacedPath=Iq});var CE=B(Hn=>{"use strict";Object.defineProperty(Hn,"__esModule",{value:!0});Hn.range=Hn.balanced=void 0;var jq=(t,e,r)=>{let s=t instanceof RegExp?SE(t,r):t,n=e instanceof RegExp?SE(e,r):e,i=s!==null&&n!=null&&(0,Hn.range)(s,n,r);return i&&{start:i[0],end:i[1],pre:r.slice(0,i[0]),body:r.slice(i[0]+s.length,i[1]),post:r.slice(i[1]+n.length)}};Hn.balanced=jq;var SE=(t,e)=>{let r=e.match(t);return r?r[0]:null},Mq=(t,e,r)=>{let s,n,i,o,a,l=r.indexOf(t),u=r.indexOf(e,l+1),c=l;if(l>=0&&u>0){if(t===e)return[l,u];for(s=[],i=r.length;c>=0&&!a;){if(c===l)s.push(c),l=r.indexOf(t,c+1);else if(s.length===1){let p=s.pop();p!==void 0&&(a=[p,u])}else n=s.pop(),n!==void 0&&n<i&&(i=n,o=u),u=r.indexOf(e,c+1);c=l<u&&l>=0?l:u}s.length&&o!==void 0&&(a=[i,o])}return a};Hn.range=Mq});var IE=B(Ut=>{"use strict";Object.defineProperty(Ut,"__esModule",{value:!0});Ut.EXPANSION_MAX_STEPS=Ut.EXPANSION_MAX_REWRITES=Ut.EXPANSION_MAX_DEPTH=Ut.EXPANSION_MAX_LENGTH=Ut.EXPANSION_MAX=void 0;Ut.expand=n6;var qq=CE(),wE="\0SLASH"+Math.random().toFixed(16)+"\0",AE="\0OPEN"+Math.random().toFixed(16)+"\0",xo="\0CLOSE"+Math.random().toFixed(16)+"\0",kE="\0COMMA"+Math.random().toFixed(16)+"\0",TE="\0PERIOD"+Math.random().toFixed(16)+"\0",Uq=new RegExp(wE,"g"),$q=new RegExp(AE,"g"),Vq=new RegExp(xo,"g"),Wq=new RegExp(kE,"g"),zq=new RegExp(TE,"g"),Gq=/\\\\/g,Kq=/\\{/g,Hq=/\\}/g,Jq=/\\,/g,Xq=/\\\./g;Ut.EXPANSION_MAX=1e5;Ut.EXPANSION_MAX_LENGTH=4e6;Ut.EXPANSION_MAX_DEPTH=1e3;Ut.EXPANSION_MAX_REWRITES=1e3;Ut.EXPANSION_MAX_STEPS=2e7;var Qq=16;function cp(t){return isNaN(t)?t.charCodeAt(0):parseInt(t,10)}function Yq(t){return t.replace(Gq,wE).replace(Kq,AE).replace(Hq,xo).replace(Jq,kE).replace(Xq,TE)}function Zq(t){return t.replace(Uq,"\\").replace($q,"{").replace(Vq,"}").replace(Wq,",").replace(zq,".")}function pp(t,e){for(let r=0;r<e.length;r++)t.push(e[r])}function DE(t,e,r){if(r.remaining<0)return;let s=(0,qq.range)("{","}",e),n=s!==void 0&&e.indexOf("{")<s[0];if(r.remaining-=s&&!n?s[1]+1:t.length,!(!s||r.remaining<0))return{end:s[1],pre:t.slice(0,s[0]),body:t.slice(s[0]+1,s[1]),post:t.slice(s[1]+1),unmatched:n}}function e6(t,e){e.remaining-=t.length;let r=[];for(let i=0;i<t.length;i++){let o=t.charCodeAt(i);o===123?r.push(i):o===125&&r.length&&r.pop()}let s="",n=0;for(let i=0;i<r.length;i++){let o=r[i];s+=t.slice(n,o)+"\0",n=o+1}return s+t.slice(n)}function t6(t,e){if(e.remaining-=t.length,e.remaining<0)return!1;let r=!1;for(let s=t.length-1;s>=0;s--){let n=t.charCodeAt(s);if(n===125)r=!0;else if(n===10||n===13||n===8232||n===8233)r=!1;else if(n===44&&r&&t.charCodeAt(s+1)!==44)return!0}return!1}function r6(t,e){let r=[],s="";for(;;){let n=DE(t,t,e);if(e.remaining<0)return;if(!n){let u=t.split(",");return u[0]=s+u[0],pp(r,u),r}let{pre:i,body:o,post:a}=n,l=i.split(",");if(l[0]=s+l[0],l[l.length-1]+="{"+o+"}",!a.length)return pp(r,l),r;s=l.pop(),pp(r,l),t=a}}function $i(t,e){return t===void 0||isNaN(t)?e:t}function n6(t,e={}){if(!t)return[];let r=$i(e.max,Ut.EXPANSION_MAX),s=$i(e.maxLength,Ut.EXPANSION_MAX_LENGTH),n=$i(e.maxDepth,Ut.EXPANSION_MAX_DEPTH),i=$i(e.maxRewrites,Ut.EXPANSION_MAX_REWRITES),o=$i(e.maxSteps,Ut.EXPANSION_MAX_STEPS);return t.slice(0,2)==="{}"&&(t="\\{\\}"+t.slice(2)),fp(Yq(t),r,s,n,0,i,{remaining:o},!0).map(Zq)}function s6(t){return"{"+t+"}"}function i6(t){return/^-?0\d/.test(t)}function a6(t,e){return t<=e}function o6(t,e){return t>=e}function Vi(t,e,r,s,n,i,o){let a=[],l=0,u;e:for(let c=0;c<t.length;c++){let p=t[c]+e,h=r;i&&!p&&(u||(u=r.filter(f=>f)),h=u);for(let f=0;f<h.length;f++){if(a.length>=s)break e;let d=p+h[f];if(l+d.length>n)break e;a.push(d),l+=d.length}}return o.remaining-=a.length,a}function l6(t,e,r,s,n){let i=t.split(/\.\./),o=[];if(i[0]===void 0||i[1]===void 0)return o;let a=cp(i[0]),l=cp(i[1]),u=Math.max(i[0].length,i[1].length),c=i.length===3&&i[2]!==void 0?Math.max(Math.abs(cp(i[2])),1):1,p=a6;l<a&&(c*=-1,p=o6);let f=i.some(i6),d=f?u:1,g=0;for(let y=a;p(y,l)&&o.length<r;y+=c){if(n.remaining-=d,n.remaining<0)return;let v;if(e)v=String.fromCharCode(y),v==="\\"&&(v="");else if(v=String(y),f){let S=u-v.length;if(S>0){let A=new Array(S+1).join("0");y<0?v="-"+A+v.slice(1):v=A+v}}if(g+v.length>s)break;o.push(v),g+=v.length}return o}function fp(t,e,r,s,n,i,o,a){if(o.remaining-=Qq,n>s)return[t];let l=[""],u=0,c=!1,p=!0,h=t;for(;;){let f=DE(t,h,o);if(!f)return Vi(l,t,[""],e,r,c,o);f.unmatched&&(h=e6(h,o));let d=f.pre,g=()=>Vi(l,d+"{"+f.body+"}"+f.post,[""],e,r,c,o);if(/\$$/.test(d)){if(l=Vi(l,d+"{"+f.body+"}",[""],e,r,c&&!f.post.length,o),p=!1,!f.post.length)break;t=f.post,h=h.slice(f.end+1);continue}let y=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(f.body),v=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(f.body),S=y||v,A=f.body.indexOf(",")>=0;if(!S&&!A){if(u<i&&t6(f.post,o)){u++,t=f.pre+"{"+f.body+xo+f.post,h=h.slice(0,f.end)+xo+h.slice(f.end+1),a=!0;continue}return g()}p&&(c=a&&!S,p=!1);let E;if(S){if(E=l6(f.body,v,e,r,o),!E)return g()}else{let T=r6(f.body,o);if(!T)return g();if(T.length===1&&T[0]!==void 0){if(T=fp(T[0],e,r,s,n+1,i,o,!1).map(s6),o.remaining<0)return g();if(T.length===1){let j=Vi(l,d+T[0],[""],e,r,c&&!f.post.length,o);if(o.remaining<0)return g();if(l=j,!f.post.length)break;t=f.post,h=h.slice(f.end+1);continue}}let w=c&&!f.post.length&&!d;for(let j=0;w&&j<l.length;j++)l[j]&&(w=!1);E=[];let R=0;e:for(let j=0;j<T.length;j++){let $=fp(T[j],e,r,s,n+1,i,o,!1);if(o.remaining<0)return g();for(let M=0;M<$.length;M++){let N=$[M];if(!(w&&!N)){if(E.length>=e||R+N.length>r)break e;E.push(N),R+=N.length}}}}let k=Vi(l,d,E,e,r,c&&!f.post.length,o);if(o.remaining<0)return g();if(l=k,!f.post.length)break;t=f.post,h=h.slice(f.end+1)}return l}});var FE=B(Eo=>{"use strict";Object.defineProperty(Eo,"__esModule",{value:!0});Eo.numericRange=void 0;var mp=(t,e)=>t===e?{t:"lit",ch:String(t)}:{t:"class",re:new RegExp(`^[${t}-${e}]$`)},hp=(t,e)=>e.map(r=>[mp(t,t),...r]),Wi=(t,e)=>{if(!t)return[[]];let r=+t[0],s=+e[0],n=t.slice(1),i=e.slice(1);if(r===s)return hp(r,Wi(n,i));let o="0".repeat(n.length),a="9".repeat(n.length),l=[];n!==o&&l.push(...hp(r++,Wi(n,a)));let u=i===a?[]:hp(s--,Wi(o,i));return r<=s&&l.push([mp(r,s),...Array.from(n,()=>mp(0,9))]),l.push(...u),l},PE=(t,e,r)=>{if(r)return Wi(String(t).padStart(r,"0"),String(e).padStart(r,"0"));let s=[];for(let n=String(t).length;n<=String(e).length;n++){let i=Math.max(t,n===1?0:10**(n-1)),o=Math.min(e,10**n-1);s.push(...Wi(String(i),String(o)))}return s},u6=(t,e)=>{let r=Number(t),s=Number(e);if(!Number.isSafeInteger(r)||!Number.isSafeInteger(s))return;r>s&&([r,s]=[s,r]);let i=/^-?0\d/.test(t)||/^-?0\d/.test(e)?Math.max(t.length,e.length):0,o=[];if(r<0){let a=PE(Math.max(-s,1),-r,i&&i-1);o.push(...a.map(l=>[{t:"lit",ch:"-"},...l]))}return s>=0&&o.push(...PE(Math.max(r,0),s,i)),o};Eo.numericRange=u6});var _E=B(bo=>{"use strict";Object.defineProperty(bo,"__esModule",{value:!0});bo.parseClass=void 0;var c6={"[:alnum:]":["\\p{L}\\p{Nl}\\p{Nd}"],"[:alpha:]":["\\p{L}\\p{Nl}"],"[:ascii:]":["\\x00-\\x7f"],"[:blank:]":["\\p{Zs}\\t"],"[:cntrl:]":["\\p{Cc}"],"[:digit:]":["\\p{Nd}"],"[:graph:]":["\\p{Z}\\p{C}",!0],"[:lower:]":["\\p{Ll}"],"[:print:]":["\\p{C}",!0],"[:punct:]":["\\p{P}\\p{S}"],"[:space:]":["\\p{Z}\\t\\r\\n\\v\\f"],"[:upper:]":["\\p{Lu}"],"[:word:]":["\\p{L}\\p{Nl}\\p{Nd}\\p{Pc}"],"[:xdigit:]":["A-Fa-f0-9"]},zi=t=>t.replace(/[[\]\\-]/g,"\\$&"),dp=/$./,p6=(t,e,r=!1,s)=>{let n=v=>{let S=s?v.normalize(s):v;return[...S].length===1?S:v},i=e;if(t.charAt(i)!=="[")throw new Error("not in a brace expression");let o=[],a=[],l=i+1,u=!1,c=!1,p=!1,h=i,f="";e:for(;l<t.length;){let v=String.fromCodePoint(t.codePointAt(l));if((v==="!"||v==="^")&&l===i+1){p=!0,l++;continue}if(v==="]"&&u&&!c){h=l+1;break}if(u=!0,v==="\\"&&!c){c=!0,l++;continue}if(v==="["&&!c){for(let[A,[E,k]]of Object.entries(c6))if(t.startsWith(A,l)){if(f)return[dp,t.length-i];l+=A.length,k?a.push(E):o.push(E);continue e}}c=!1;let S=n(v);if(f){S.codePointAt(0)>f.codePointAt(0)?o.push(zi(f)+"-"+zi(S)):S===f&&o.push(zi(S)),f="",l+=v.length;continue}if(t.startsWith("-]",l+v.length)){o.push(zi(S+"-")),l+=v.length+1;continue}if(t.startsWith("-",l+v.length)){f=S,l+=v.length+1;continue}o.push(zi(S)),l+=v.length}if(h<l)return[dp,0];if(!o.length&&!a.length)return[dp,t.length-i];let d="["+(p?"^":"")+o.join("")+"]",g="["+(p?"":"^")+a.join("")+"]",y="^"+(o.length&&a.length?"("+d+"|"+g+")":o.length?d:g);return[new RegExp(y,r?"iu":"u"),h-i]};bo.parseClass=p6});var VE=B(Co=>{"use strict";Object.defineProperty(Co,"__esModule",{value:!0});Co.Matcher=void 0;var f6=FE(),h6=_E(),gp={t:"match",id:0},m6="!?+*@",Jn=t=>({t:"lit",ch:t}),d6=t=>t.replace(/[\\^$.*+?()[\]{}|/]/g,"\\$&"),NE=t=>new RegExp(`^${d6(t)}$`,"iu"),vo=new Map,RE=t=>{let e=vo.get(t);return e||(e=NE(t),vo.size>=1e3&&vo.clear(),vo.set(t,e)),e},bp=(t,e)=>{if(e===t.ch)return!0;if(!t.re)return!1;let r=e.charCodeAt(0);if(r>=128)return t.re.test(e);let s=t.ascii??=new Uint8Array(128);return s[r]||=t.re.test(e)?1:2,s[r]===1},g6=(t,e,r,s,n)=>{let i=[];for(let o=0;o<t.length;){let a=String.fromCodePoint(t.codePointAt(o));if(n){let l=a==="\\"&&t.startsWith(n,o+1)?1:0;if(l||a===n){let u=o+l+n.length,c=t.indexOf(n,u),p=/^(-?\d+)\.\.(-?\d+)$/.exec(t.slice(u,c)),h=c!==-1&&p&&(0,f6.numericRange)(p[1],p[2]);if(h){i.push({t:"ext",type:"@",alts:h}),o=c+n.length;continue}}}if(a==="\\"){let l=t.codePointAt(o+1),u=l===void 0?a:String.fromCodePoint(l);i.push(Jn(u)),o+=1+u.length;continue}if(a==="["){let[l,u]=(0,h6.parseClass)(t,o,e,s);if(u){i.push({t:"class",re:l}),o+=u;continue}}if(!r&&m6.includes(a)&&t[o+1]==="("){i.push({t:"open",type:a}),o+=2;continue}i.push(!r&&a==="|"?{t:"bar"}:!r&&a===")"?{t:"close"}:a==="*"?{t:"star"}:a==="?"?{t:"any"}:Jn(a)),o+=a.length}return i},y6=t=>{let e=new Map,r=[];return t.forEach((s,n)=>{s.t==="open"?r.push(n):s.t==="close"&&r.length&&e.set(r.pop(),n)}),e},jE=(t,e,r,s,n)=>{let i=[],o=[i];for(let a=r;a<s;a++){let l=t[a],u=e.get(a);if(l.t==="open"&&u!==void 0){let c=jE(t,e,a+1,u,!1);i.push({t:"ext",type:l.type,alts:c}),a=u}else l.t==="bar"&&!n?o.push(i=[]):l.t==="open"?i.push(Jn(l.type),Jn("(")):l.t==="bar"?i.push(Jn("|")):l.t==="close"?i.push(Jn(")")):i.push(l)}return o},ME=(t,e)=>{let r=[],s="",n=()=>{for(let i of s.normalize(e))r.push(Jn(i));s=""};for(let i of t){if(i.t==="lit"){s+=i.ch;continue}n(),r.push(i.t==="ext"?{...i,alts:i.alts.map(o=>ME(o,e))}:i)}return n(),r},x6=(t,e)=>{let r=1,s=a=>({t:"split",id:r++,out:a}),n=(a,l)=>a.reduceRight((u,c)=>i(c,u),l),i=(a,l)=>{switch(a.t){case"lit":let h=e?RE(a.ch):void 0;return{t:"lit",id:r++,ch:a.ch,re:h,next:l};case"any":case"star":return{t:a.t,id:r++,next:l};case"class":return{t:"class",id:r++,re:a.re,next:l}}let u=h=>a.alts.map(f=>n(f,h));switch(a.type){case"@":return s(u(l));case"?":return s([l,...u(l)]);case"!":return{t:"neg",id:r++,sub:s(u(gp)),next:l}}let c=s([]),p=s(u(c));return c.out.push(l,p),a.type==="*"?c:p};return[n(t,gp),r]},E6=t=>{let e=[],r=new Set,s=i=>i.t==="match"?"match":String(i.id),n=(i,o)=>{if(i.t==="match"||r.has(i))return;r.add(i);let a=l=>e.push(`${o}${i.id}: ${l}`);switch(i.t){case"split":a(`split -> ${i.out.map(s).join(", ")}`);for(let l of i.out)n(l,o);return;case"neg":return a(`!(${s(i.sub)}) -> ${s(i.next)}`),n(i.sub,o+" "),n(i.next,o);case"lit":a(`${JSON.stringify(i.ch)} -> ${s(i.next)}`);break;case"class":a(`${i.re} -> ${s(i.next)}`);break;default:a(`${i.t==="any"?"?":"*"} -> ${s(i.next)}`)}n(i.next,o)};return n(t,""),[`start -> ${s(t)}`,...e].join(`
22
+ `)},yp=class{gen;threads=[];match=!1;runs=[];ids=[];constructor(e){this.gen=e}get dead(){return!this.threads.length&&!this.match&&!this.runs.length}},qE=(t,e)=>t.ids.length!==e.ids.length||t.runs.length!==e.runs.length||t.ids.some((r,s)=>r!==e.ids[s])?!1:t.runs.every(r=>e.runs.some(s=>s.neg===r.neg&&qE(s.state,r.state))),BE=t=>({has:new Float64Array(t),seen:new Float64Array(t),gen:0}),Gi=class{dots;dotStart;#e;constructor(e,r,s){this.dots=e,this.dotStart=r,this.#e=s}state(){return new yp(++this.#e.gen)}done(e){return e.ids=e.threads.map(r=>r.id).sort((r,s)=>r-s),e.match&&e.ids.unshift(gp.id),e}#t(e,r){let{seen:s}=this.#e;return s[r.id]===e.gen?!1:(s[r.id]=e.gen,!0)}#r(e,r){let{has:s}=this.#e;return s[r.id]===e.gen?!1:(s[r.id]=e.gen,e.threads.push(r),!0)}restricted(e,r){return r&&(this.dots||this.dotStart&&e===0)}add(e,r,s,n){switch(r.t){case"split":if(!this.#t(e,r))return;for(let o of r.out)this.add(e,o,s,n);return;case"neg":if(!this.#t(e,r))return;let i=this.state();return this.add(i,r.sub,s,!1),this.done(i),this.addRun(e,{t:"run",neg:r,state:i},s,n);case"star":if(this.restricted(s,n))return;this.#r(e,r)&&this.add(e,r.next,s,n);return;case"match":e.match=!0;return;default:this.#r(e,r)}}addRun(e,r,s,n){for(let i of e.runs)if(i.neg===r.neg&&qE(i.state,r.state))return;e.runs.push(r),r.state.match||this.add(e,r.neg.next,s,n)}step(e,r,s,n){let i=this.state();for(let o of e.threads)switch(o.t){case"lit":bp(o,r)&&this.add(i,o.next,s+1,n);break;case"any":this.restricted(s,n)||this.add(i,o.next,s+1,n);break;case"class":!this.restricted(s,n)&&o.re.test(r)&&this.add(i,o.next,s+1,n);break;case"star":this.restricted(s,n)||this.add(i,o,s+1,n)}if(!this.restricted(s,n))for(let o of e.runs){if(o.state.dead){this.addRun(i,o,s+1,n);continue}let a=this.step(o.state,r,s,!1);this.addRun(i,{t:"run",neg:o.neg,state:a},s+1,n)}return this.done(i)}},UE=t=>{let e=t.ids.join();if(!t.runs.length)return e;let r=t.runs.map(s=>`${s.neg.id}(${UE(s.state)})`);return`${e}|${r.sort().join("|")}`},b6=1<<18,xp=class{#e;#t=new Map;#r=0;#n;#s;#a;#i;constructor(e,r){this.#e=e,this.#a=new Gi(!1,!1,r),this.#i=new Gi(!1,!0,r)}#l(e){return{state:e,match:e.match,dead:e.dead,next:new Map}}#u(e){let r=UE(e),s=this.#t.get(r);if(s)return s;this.#r>b6&&this.#f();let n=this.#l(e);return this.#t.set(r,n),this.#r+=r.length+1,n}#f(){this.#t.clear(),this.#r=0,this.#n=void 0,this.#s=void 0}start(e){if(e){if(this.#s)return this.#s;let s=this.#i.state();return this.#i.add(s,this.#e,0,!0),this.#s=this.#l(this.#i.done(s))}if(this.#n)return this.#n;let r=this.#a.state();return this.#a.add(r,this.#e,0,!0),this.#n=this.#u(this.#a.done(r))}next(e,r){let s=r.charCodeAt(0),n=s<128?void 0:e.next.get(r);if(n)return n;let i=e===this.#s?this.#u(this.#i.step(e.state,r,0,!0)):this.#u(this.#a.step(e.state,r,1,!0));return s<128?(e.ascii||(e.ascii=new Array(128),this.#r+=128),e.ascii[s]=i):e.next.set(r,i),this.#r++,i}},v6=t=>{let e=[];for(let r=t;r.t!=="match";r=r.next){if(r.t==="split"||r.t==="neg")return;e.push(r)}return e},S6=(t,e,r,s)=>{let n=0,i=r,o=-1,a=0;for(;i<s;){let l=t[n];if(l?.t==="star"){o=n++,a=i;continue}let u=e[i];if(l&&(l.t==="any"||l.t==="lit"&&bp(l,u)||l.t==="class"&&l.re.test(u))){n++,i++;continue}if(o===-1)return!1;n=o+1,i=++a}for(;t[n]?.t==="star";)n++;return n===t.length},$E=t=>{let e=0,r=0;for(let s of t){let[n,i]=C6(s);e+=n,r+=i}return[e,r]},C6=t=>{if(t.t==="star")return[0,1/0];if(t.t!=="ext")return[1,1];if(t.type==="!")return[0,1/0];let e=t.alts.map($E),r=Math.min(...e.map(i=>i[0])),s=Math.max(...e.map(i=>i[1])),n=s===0?0:1/0;return t.type==="@"?[r,s]:t.type==="?"?[0,s]:t.type==="*"?[0,n]:[r,n]},OE=(t,e,r)=>{for(let s=0;s<t.length;s++)if(!bp(t[s],e[r+s]))return!1;return!0},w6=/[/\ud800-\udfff]/,A6=/[\ud800-\udfff]/,So=t=>A6.test(t)?[...t]:t,LE=t=>{if(t.includes("/"))throw new Error("can only match a single path portion, got: "+t)},Ep=class{pattern;options;#e;#t;#r;#n;#s;#a=!1;#i;#l;#u=!1;#f=0;#d=1/0;#c=[];#o=[];#h;#g;#x=!1;#E;#p;constructor(e,r={}){if(e.includes("/"))throw new Error("can only match a single path portion, got pattern: "+e);this.pattern=e,this.options=r;let{nocase:s=!1,noext:n=!1,normalize:i}=r;this.#p=i===!0?"NFC":i||void 0;let o=/^[?*+@]\(\)$/.test(e),a=g6(e,s,n||o,this.#p,r.rangeMark),[l]=jE(a,y6(a),0,a.length,!0);this.#p&&(l=ME(l,this.#p));let[u,c]=x6(l,s);if(this.#e=u,this.#t=c,l.every(p=>p.t==="lit"))this.#s=l.map(p=>p.ch).join(""),this.#a=s;else{let p=d=>d.t!=="lit"?void 0:s?{ch:d.ch,re:RE(d.ch)}:{ch:d.ch};for(let d of l){let g=p(d);if(!g)break;this.#c.push(g)}for(let d=l.length-1;d>=0;d--){let g=p(l[d]);if(!g)break;this.#o.unshift(g)}this.#x=!!(this.#c.length||this.#o.length),s||(this.#h=this.#c.map(d=>d.ch).join(""),this.#g=this.#o.map(d=>d.ch).join("")),this.#l=v6(this.#e)?.slice(this.#c.length,-this.#o.length||void 0),this.#u=!!this.#l?.every(d=>d.t==="star"||d.t==="any");let[h,f]=$E(l);this.#f=h,this.#d=f}}test(e){return this.#p?(LE(e),this.#m(e.normalize(this.#p))):w6.test(e)?(LE(e),this.#m(e,[...e])):this.#m(e,e)}testUnchecked(e){return this.#m(this.#p?e.normalize(this.#p):e)}#m(e,r){if(this.#s!==void 0)return this.#a?(this.#i??=NE(this.#s)).test(e):e===this.#s;let s=this.#f,n=this.#d;if(r===void 0){let c=e.length,p=c+1>>1;if(c<s||p>n)return!1;(p<s||c>n)&&(r=So(e))}if(r!==void 0&&(r.length<s||r.length>n))return!1;let i=this.#c.length;if(this.#x)if(this.#h!==void 0&&this.#g!==void 0){if(!e.startsWith(this.#h)||!e.endsWith(this.#g))return!1}else{r??=So(e);let c=r.length-this.#o.length;if(!OE(this.#c,r,0)||!OE(this.#o,r,c))return!1}let o=!this.options.dot&&e.startsWith(".");if(this.#l){if(e==="."||e===".."||o&&!i)return!1;if(this.#u)return!0;r??=So(e);let c=r.length-this.#o.length;return S6(this.#l,r,i,c)}if(r??=So(e),e==="."||e===".."){this.#r??=BE(this.#t);let c=this.#n??=new Gi(!0,!1,this.#r),p=c.state();c.add(p,this.#e,0,!0);let h=c.done(p);for(let f=0;f<r.length;f++)h=c.step(h,r[f],f,!0);return h.match}this.#r??=BE(this.#t);let a=this.#E??=new xp(this.#e,this.#r),l=a.start(o),u=r===e;for(let c=0;c<r.length;c++){if(l.dead)return!1;let p=u?e.charCodeAt(c):r[c].charCodeAt(0);l=l.ascii?.[p]??a.next(l,r[c])}return l.match}toString(){return E6(this.#e)}};Co.Matcher=Ep});var WE=B(wo=>{"use strict";Object.defineProperty(wo,"__esModule",{value:!0});wo.assertValidPattern=void 0;var k6=1024*64,T6=t=>{if(typeof t!="string")throw new TypeError("invalid pattern");if(t.length>k6)throw new TypeError("pattern is too long")};wo.assertValidPattern=T6});var vp=B(Ao=>{"use strict";Object.defineProperty(Ao,"__esModule",{value:!0});Ao.escape=void 0;var D6=(t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!1}={})=>{let s=r?e?t.replace(/[?*()[\]{}]/g,"[$&]"):t.replace(/[?*()[\]\\{}]/g,"\\$&"):e?t.replace(/[?*()[\]]/g,"[$&]"):t.replace(/[?*()[\]\\]/g,"\\$&"),n=s.charAt(0);return n==="#"?(e?"[#]":"\\#")+s.slice(1):n==="!"?(e?"@(!)":"\\!")+s.slice(1):s};Ao.escape=D6});var Sp=B(Ki=>{"use strict";Object.defineProperty(Ki,"__esModule",{value:!0});Ki.unescape=void 0;var I6=(t,{windowsPathsNoEscape:e=!1,magicalBraces:r=!0}={})=>e&&t.startsWith("@(!)")?"!"+(0,Ki.unescape)(t.slice(4),{windowsPathsNoEscape:e,magicalBraces:r}):r?e?t.replace(/\[([^/\\])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\])\]/g,"$1$2").replace(/\\([^/])/g,"$1"):e?t.replace(/\[([^/\\{}])\]/g,"$1"):t.replace(/((?!\\).|^)\[([^/\\{}])\]/g,"$1$2").replace(/\\([^/{}])/g,"$1");Ki.unescape=I6});var ib=B(Ne=>{"use strict";Object.defineProperty(Ne,"__esModule",{value:!0});Ne.unescape=Ne.escape=Ne.Minimatch=Ne.match=Ne.braceExpand=Ne.defaults=Ne.filter=Ne.GLOBSTAR=Ne.sep=Ne.minimatch=void 0;var P6=IE(),zE=VE(),Do=WE(),F6=vp(),_6=Sp(),YE=1e5,ZE=200,Fp="allowWindowsEscape",B6=(t,e,r)=>((0,Do.assertValidPattern)(e),!r?.nocomment&&e.charAt(0)==="#"?!1:tb(e,r).match(t));Ne.minimatch=B6;var Hi=new Map,GE=new Map,Cp=0,wp=0,O6=256,L6=32768,eb=4096,N6=t=>{let e=t.pattern.length;for(let r of t.globSet)if(e+=r.length+1,e>eb)break;return e},R6=t=>t===void 0?0:t?2:1,j6=new Map(Object.keys({nobrace:0,nocomment:0,nonegate:0,noglobstar:0,noext:0,nonull:0,partial:0,dot:0,nocase:0,nocaseMagicOnly:0,magicalBraces:0,matchBase:0,flipNegate:0,preserveMultipleSlashes:0,windowsNoMagicRoot:0}).map((t,e)=>[t,24*3**e])),M6=t=>{let e=0,r=!1;for(let s in t){let n=t[s];switch(s){case"windowsPathsNoEscape":n&&(r=!0);break;case Fp:n===!1&&(r=!0);break;case"platform":{let i=n||Io;if(i===Io)break;if(i==="darwin")e+=3;else if(i==="win32")e+=6;else if(i==="linux")e+=9;else return JSON.stringify(t);break}case"optimizationLevel":if(n===void 0)break;e+=n>=2?1:n>=1?0:2;break;case"braceExpandMax":if(n!==void 0&&n!==YE)return JSON.stringify(t);break;case"maxGlobstarRecursion":if(n!==void 0&&n!==ZE)return JSON.stringify(t);break;case"normalize":if(n!==void 0)return JSON.stringify(t);break;default:e+=(j6.get(s)??0)*R6(n)}}return r?e+12:e},q6=t=>{let e={};for(let r in t)e[r]=t[r];return e},tb=(t,e)=>{let r=e?M6(e):0,s=Hi.get(r)?.get(t);if(s)return s;s=GE.get(r)?.get(t)??new Ks(t,q6(e));let n=N6(s);if(n>eb)return s;(Cp>=O6||wp+n>L6)&&(GE=Hi,Hi=new Map,Cp=0,wp=0);let i=Hi.get(r);return i||Hi.set(r,i=new Map),i.set(t,s),Cp++,wp+=n,s},Io=typeof process=="object"&&process?process.env?.__MINIMATCH_TESTING_PLATFORM__||process.platform:"posix",KE={win32:{sep:"\\"},posix:{sep:"/"}};Ne.sep=Io==="win32"?KE.win32.sep:KE.posix.sep;Ne.minimatch.sep=Ne.sep;Ne.GLOBSTAR=Symbol("globstar **");Ne.minimatch.GLOBSTAR=Ne.GLOBSTAR;var U6=(t,e)=>{let r;return s=>(r??=tb(t,e)).match(s)};Ne.filter=U6;Ne.minimatch.filter=Ne.filter;var Qr=(t,e={})=>Object.assign({},t,e),$6=t=>{if(!t||typeof t!="object"||!Object.keys(t).length)return Ne.minimatch;let e=Ne.minimatch;return Object.assign((s,n,i={})=>e(s,n,Qr(t,i)),{Minimatch:class extends e.Minimatch{constructor(n,i={}){super(n,Qr(t,i))}static defaults(n){return e.defaults(Qr(t,n)).Minimatch}},unescape:(s,n={})=>e.unescape(s,Qr(t,n)),escape:(s,n={})=>e.escape(s,Qr(t,n)),filter:(s,n={})=>e.filter(s,Qr(t,n)),defaults:s=>e.defaults(Qr(t,s)),braceExpand:(s,n={})=>e.braceExpand(s,Qr(t,n)),match:(s,n,i={})=>e.match(s,n,Qr(t,i)),sep:e.sep,GLOBSTAR:Ne.GLOBSTAR})};Ne.defaults=$6;Ne.minimatch.defaults=Ne.defaults;var V6=(t,e={})=>{if((0,Do.assertValidPattern)(t),e.nobrace||!/\{(?:(?!\{).)*\}/.test(t))return[t];let r=t.replace(/\\\\/g,"\\\\\\\\");return(e.windowsPathsNoEscape||e[Fp]===!1)&&(r=r.replace(/\[([{}])\]/g,"[\\$1]")),(0,P6.expand)(r,{max:e.braceExpandMax})};Ne.braceExpand=V6;Ne.minimatch.braceExpand=Ne.braceExpand;var W6=100,z6=/(?<![\\$])\{(-?\d+)\.\.(-?\d+)\}/g,G6=(t,e,r={})=>{let s=new Ks(e,r);return t=t.filter(n=>s.match(n)),s.options.nonull&&!t.length&&t.push(e),t};Ne.match=G6;Ne.minimatch.match=Ne.match;var HE=/[?*]|[+@!]\(.*?\)|\[|\]/,rb=(t,e)=>{let r=e+1;(t.charAt(r)==="!"||t.charAt(r)==="^")&&r++;let s=!1;for(;r<t.length;r++){let n=t.charAt(r);if(n==="]"&&s)return r;s=!0,n==="\\"&&r++}return-1},K6=(t,e)=>{if(!e&&(t==="+()"||t==="@()"))return t;let r="";for(let s=0;s<t.length;s++){let n=t.charAt(s);if(n==="\\")r+=t.charAt(++s)||n;else{if(n==="*"||n==="?")return;if(n==="["){let i=rb(t,s);if(i===-1){r+=n;continue}let o=t.slice(s+1,i);if(o.startsWith("\\")&&(o=o.slice(1)),[...o].length!==1||"!^".includes(t.charAt(s+1)))return;r+=o,s=i}else{if(!e&&"+@!".includes(n)&&t.charAt(s+1)==="("&&t.includes(")",s+2))return;r+=n}}}return r},nb=256,sb=t=>{let e=0;for(let r=0;r<t.length-1;r++){let s=t.charAt(r);s==="\\"?r++:"+@!?*".includes(s)&&t.charAt(r+1)==="("&&(e++,r++)}return e},H6=t=>{if(sb(t)>nb)throw new TypeError("pattern has too many extglobs")},J6=t=>{if(/^[?*+@]\(\)$/.test(t)||t.includes("[:"))return!1;let e=0;for(let r=0;r<t.length;r++){let s=t.charAt(r);if(s==="\\"){if(++r===t.length)return!1}else if(s==="["){let n=rb(t,r);n!==-1&&(r=n)}else if("+@!?*".includes(s)&&t.charAt(r+1)==="(")e++,r++;else if(s===")"){if(!e--)return!1}else if(s==="|"&&!e)return!1}return!e},Ap,JE,vn=(t,e)=>typeof t=="string"?e===t:e!==""&&t.testUnchecked(e),XE=(t,e,r,s,n)=>vn(t,e)?r:s!==void 0&&vn(t,s)?n:-1,Ip=t=>t==="."||t==="..",kp=t=>typeof t=="string"&&/^[a-z]:$/i.test(t),To=t=>typeof t=="string"&&/^unc$/i.test(t),Tp=t=>{if(t[0]!==""||t[1]!=="")return-1;let e=t[2]!=="?"?2:To(t[3])?4:-1,r=t[e],s=t[e+1];return e!==-1&&r!==void 0&&r!==""&&r!==Ne.GLOBSTAR&&s!==void 0&&s!==""&&s!==Ne.GLOBSTAR?e:-1},ko=(t,e)=>!Ip(t)&&(e||!t.startsWith(".")),Ji=(t,e,r,s,n)=>{for(let i=e;i<r;){if(t.charCodeAt(i)===46){if(!s)return!0;let a=t.charCodeAt(i+1)===46?i+2:i+1;if(a>=r||Po(t.charCodeAt(a),n))return!0}let o=Pp(t,i,n);if(o===-1)return!1;for(i=o+1;i<r&&Po(t.charCodeAt(i),n);)i++}return!1},Po=(t,e)=>e==="/"?t===47:e==="\\"?t===92:t===47||t===92,Pp=(t,e,r)=>{if(r!=="both")return t.indexOf(r,e);let s=t.indexOf("/",e),n=t.indexOf("\\",e);return s===-1?n:n===-1?s:Math.min(s,n)},QE=(t,e,r)=>r!=="both"?t.lastIndexOf(r,e):Math.max(t.lastIndexOf("/",e),t.lastIndexOf("\\",e)),Dp={},Ks=class{options;set;pattern;windowsPathsNoEscape;nonegate;negate;comment;empty;preserveMultipleSlashes;partial;globSet;globParts;nocase;isWindows;platform;windowsNoMagicRoot;maxGlobstarRecursion;#e;#t;#r;#n;#s=[];#a=[];#i=[];#l=new Map;#u=!1;#f;#d=new WeakMap;constructor(e,r={}){(0,Do.assertValidPattern)(e),r=r||{},this.options=r,this.maxGlobstarRecursion=r.maxGlobstarRecursion??ZE,this.pattern=e,this.platform=r.platform||Io,this.isWindows=this.platform==="win32",this.windowsPathsNoEscape=!!r.windowsPathsNoEscape||r[Fp]===!1,this.windowsPathsNoEscape&&(this.pattern=this.pattern.replace(/\\/g,"/")),this.preserveMultipleSlashes=!!r.preserveMultipleSlashes,this.negate=!1,this.nonegate=!!r.nonegate,this.comment=!1,this.empty=!1,this.partial=!!r.partial,this.nocase=!!this.options.nocase,this.windowsNoMagicRoot=r.windowsNoMagicRoot!==void 0?r.windowsNoMagicRoot:!!(this.isWindows&&this.nocase),this.globSet=[],this.globParts=[],this.set=[],this.#e=!this.preserveMultipleSlashes,this.#r=(r.optimizationLevel??1)>=2;let s=r.normalize;this.#n=s===!0?"NFC":s||void 0,this.make();let n=this.set.map(i=>this.#o(i));this.#i=this.set.map((i,o)=>this.#e&&i.length-1>n[o]),this.#s=this.set.map((i,o)=>{let a=this.#i[o]?i.length-1:i.length,l=i.slice(n[o]+1,a).filter(u=>typeof u=="string"&&!!u);return[...new Set(l)]}),this.#t=this.#s.some(i=>i.length),this.#a=this.set.map((i,o)=>{let[a,l,u]=i;if(this.#i[o]&&i.length===2&&a===Ne.GLOBSTAR&&l!==Ne.GLOBSTAR)return"tail";if(this.#i[o]&&r.matchBase&&i.length===1&&a!==Ne.GLOBSTAR&&a!=="")return"base";if(!(!this.#e||n[o]!==-1)){if(i.length===3&&a===Ne.GLOBSTAR&&u===Ne.GLOBSTAR&&l!==Ne.GLOBSTAR&&l!==""&&this.maxGlobstarRecursion>0)return"mid";if(i.length===2&&l===Ne.GLOBSTAR&&a!==Ne.GLOBSTAR&&a!=="")return"head"}})}#c(e){return this.#n?e.normalize(this.#n):e}#o(e){if(!this.isWindows)return-1;if(kp(e[0]))return 0;if(e[0]===""&&e[1]===""&&e[2]==="?"&&kp(e[3]))return 3;let s=Tp(e);return s===-1?-1:s+1}hasMagic(){if(this.options.magicalBraces&&this.set.length>1)return!0;for(let e of this.set)for(let r of e)if(typeof r!="string")return!0;return!1}make(){let e=this.pattern,r=this.options;if(!r.nocomment&&e.charAt(0)==="#"){this.comment=!0;return}if(!e){this.empty=!0;return}this.parseNegate(),this.globSet=[...new Set(this.#k())];let s=this.globSet.map(i=>this.#S(i));this.globParts=this.preprocess(s),this.#u=!0;let n=this.globParts.map((i,o,a)=>{if(this.isWindows&&this.windowsNoMagicRoot){let l=i[2]==="?"&&To(i[3])?6:4,u=i[0]===""&&i[1]===""&&(i[2]==="?"||!HE.test(i[2]))&&i.slice(3,l).every(p=>!HE.test(p)),c=/^[a-z]:/i.test(i[0]);if(u)return[...i.slice(0,l).map(p=>this.#c(p)),...i.slice(l).map(p=>this.parse(p))];if(c)return[this.#c(i[0]),...i.slice(1).map(p=>this.parse(p))]}return i.map(l=>this.parse(l))});if(this.set=n.filter(i=>i.indexOf(!1)===-1),this.isWindows)for(let i=0;i<this.set.length;i++){let o=this.set[i];o[0]===""&&o[1]===""&&this.globParts[i][2]==="?"&&(kp(o[3])||To(this.globParts[i][3]))&&(To(this.globParts[i][3])&&(o[3]="UNC"),o[2]="?")}r.noext||this.mergeRows(),this.#u=!1,this.set.forEach((i,o)=>{for(let a=0;a<i.length;a++)i[a]===Dp&&(i[a]=this.parse(this.globParts[o][a]))})}mergeRows(){let e=!0;for(;e;){if(e=!1,this.set.length<2)return;let r=this.#h(),s=Math.max(0,...this.set.map(n=>n.length));for(let n=0;n<s;n++){let i=new Map,o=this.set.length+1;this.set.forEach((l,u)=>{if(!(l[n]instanceof zE.Matcher||l[n]===Dp)||!J6(this.globParts[u][n]))return;let{pre:c,suf:p}=r[u],h=c[n]*o+p[n+1],f=i.get(h);f?f.push(u):i.set(h,[u])});let a=new Set;for(let l of i.values()){if(l.length<2)continue;let[u,...c]=l,h=`@(${l.map(f=>this.globParts[f][n]).join("|")})`;if(!(sb(h)>nb)){this.globParts[u][n]=h,this.set[u][n]=this.parse(h);for(let f of c)a.add(f)}}if(a.size){if(e=!0,this.set=this.set.filter((l,u)=>!a.has(u)),this.globParts=this.globParts.filter((l,u)=>!a.has(u)),this.set.length<2)return;r=this.#h()}}}}#h(){let e=new Map,r=this.globParts.map(o=>o.map(a=>{let l=e.get(a);return l===void 0&&e.set(a,l=e.size),l})),s=e.size,n=Math.max(0,...r.map(o=>o.length)),i=r.map(o=>({pre:[0],suf:new Array(o.length+1).fill(0)}));for(let o=0;o<n;o++){let a=new Map;r.forEach((l,u)=>{if(o>=l.length)return;let{pre:c}=i[u],p=c[o]*s+l[o],h=a.get(p);h===void 0&&a.set(p,h=a.size+1),c.push(h)})}for(let o=n-1;o>=0;o--){let a=new Map;r.forEach((l,u)=>{if(o>=l.length)return;let{suf:c}=i[u],p=c[o+1]*s+l[o],h=a.get(p);h===void 0&&a.set(p,h=a.size+1),c[o]=h})}return i}preprocess(e){if(this.options.noglobstar)for(let s of e)for(let n=0;n<s.length;n++)s[n]==="**"&&(s[n]="*");let{optimizationLevel:r=1}=this.options;return r>=2?(e=this.firstPhasePreProcess(e),e=this.secondPhasePreProcess(e)):r>=1?e=this.levelOneOptimize(e):e=this.adjascentGlobstarOptimize(e),e}adjascentGlobstarOptimize(e){return e.map(r=>{let s=-1;for(;(s=r.indexOf("**",s+1))!==-1;){let n=s;for(;r[n+1]==="**";)n++;n!==s&&r.splice(s,n-s)}return r})}levelOneOptimize(e){return e.map(r=>{let s=this.#o(r)+1;return r=r.reduce((n,i)=>{let o=n[n.length-1];return i==="**"&&o==="**"?n:i===".."&&n.length>s&&o&&o!==".."&&o!=="."&&o!=="**"?(n.pop(),n):(n.push(i),n)},[]),r.length===0?[""]:r})}#g(e){let r=!this.isWindows||!e.includes("\\")?"/":e.includes("/")?"both":"\\",s=this.#e?0:-1,n="",i=0,o,a=0,l=!!this.options.dot;e:for(let u=0;u<this.set.length;u++){let c=this.set[u],p=c[c.length-1],h=s!==-1&&this.#i[u]&&p!==Ne.GLOBSTAR;if(h&&s===0){let g=QE(e,e.length,r);if(i=g+1,n=e.slice(i),n===""&&g>=0){let v=g;for(;v>0&&Po(e.charCodeAt(v-1),r);)v--;a=v===0?0:QE(e,v-1,r)+1,o=e.slice(a,v)}let y=this.#r&&(Ip(n)||n===""&&o!==void 0&&Ip(o));s=y?-1:1,h=!y}let f=-1;if(h&&typeof p=="string"&&(f=XE(p,n,i,o,a),f===-1))continue;if(this.#t){for(let g of this.#s[u])if(!e.includes(g))continue e}if(h&&typeof p=="object"&&(f=XE(p,n,i,o,a),f===-1))continue;let d=this.#a[u];if(d==="base"&&h)return"yes";if(d==="tail"&&h){if(this.#r&&Ji(e,0,f,!0,r))return"maybe";if(!Ji(e,0,f,l,r))return"yes";continue}if(d==="mid"||d==="head"){let g=this.#E(e,c,d==="head",l,r);if(g!=="no")return g;continue}return"maybe"}return"no"}#x(e,r,s){let n=!!this.options.dot,i=e.length;if(s==="head"){if(i<2||!vn(r[0],e[0]))return!1;for(let a=1;a<i;a++)if(!ko(e[a],n))return!1;return!0}let o=r[1];if(s==="tail"){let a=i-1;if(!vn(o,e[a])&&(e[a]!==""||i===1||!vn(o,e[--a])))return!1;for(let l=0;l<a;l++)if(!ko(e[l],n))return!1;return!0}for(let a=0;a<i;a++){if(vn(o,e[a])&&a+1<i){let l=a+1;for(;l<i&&ko(e[l],n);)l++;if(l===i)return!0}if(!ko(e[a],n))return!1}return!1}#E(e,r,s,n,i){if(this.#r&&Ji(e,0,e.length,!0,i))return"maybe";let o=r[s?0:1],a=0;for(let l=Pp(e,a,i);l!==-1;l=Pp(e,a,i)){let u=l+1;for(;u<e.length&&Po(e.charCodeAt(u),i);)u++;if((typeof o=="string"?l-a===o.length&&e.startsWith(o,a):l>a&&o.testUnchecked(e.slice(a,l)))&&!Ji(e,u,e.length,n,i))return"yes";if(s||Ji(e,a,u,n,i))return"no";a=u}return"no"}#p(e){let r=Ap;return r?.f===e&&r.isWindows===this.isWindows&&r.preserveMultipleSlashes===this.preserveMultipleSlashes&&r.normalize===this.#n?r:void 0}#m(e){let{isWindows:r,preserveMultipleSlashes:s}=this,n=this.#S(r?e.split("\\").join("/"):e),i=this.#n;return i&&(n=n.map(o=>o.normalize(i))),Ap={f:e,isWindows:r,preserveMultipleSlashes:s,normalize:i,parts:n},Ap}#C(e){let r=[...e],s=!1;do{if(s=!1,!this.preserveMultipleSlashes){for(let o=1;o<r.length-1;o++){let a=r[o];o===1&&a===""&&r[0]===""||(a==="."||a==="")&&(s=!0,r.splice(o,1),o--)}r[0]==="."&&r.length===2&&(r[1]==="."||r[1]==="")&&(s=!0,r.pop())}let n=this.#o(r)+1,i=n;for(;(i=r.indexOf("..",i+1))!==-1;){let o=r[i-1];o&&o!=="."&&o!==".."&&o!=="**"&&(s=!0,r.splice(i-1,2),i=Math.max(i-2,n))}}while(s);return r.length===0?[""]:r}firstPhasePreProcess(e){let{braceExpandMax:r=YE}=this.options,s=0,n=1e6,i=!1;do{i=!1;for(let o of e){let a=-1;for(;(a=o.indexOf("**",a+1))!==-1;){let c=a;for(;o[c+1]==="**";)c++;c>a&&o.splice(a+1,c-a);let p=o[a+1],h=o[a+2],f=o[a+3];if(p!==".."||!h||h==="."||h===".."||!f||f==="."||f==="..")continue;let d=o.length-1;if(e.length>=r||s+d>n)throw new RangeError("optimizationLevel 2: too many patterns from '**/..'");i=!0,o.splice(a,1);let g=o.slice(0);g[a]="**",s+=d,e.push(g),a--}if(!this.preserveMultipleSlashes){for(let c=1;c<o.length-1;c++){let p=o[c];c===1&&p===""&&o[0]===""||(p==="."||p==="")&&(i=!0,o.splice(c,1),c--)}o[0]==="."&&o.length===2&&(o[1]==="."||o[1]==="")&&(i=!0,o.pop())}let l=this.#o(o)+1,u=l;for(;(u=o.indexOf("..",u+1))!==-1;){let c=o[u-1];if(c&&c!=="."&&c!==".."&&c!=="**"){i=!0;let h=u===1&&o[u+1]==="**"?["."]:[];o.splice(u-1,2,...h),o.length===0&&o.push(""),u=Math.max(u-2,l)}}}}while(i);return e}secondPhasePreProcess(e){let r=new Set,s=e.filter(o=>{let a=o.join("/");return r.has(a)?!1:(r.add(a),!0)}),n=new Map;for(let o of s){let a=[];for(let l=0;l<o.length;l++)o[l]==="*"&&a.push(l);a.length&&n.set(a.join(","),a)}if(!n.size||s.length*n.size>1e5)return s;let{dot:i}=this.options;return s.filter(o=>{for(let a of n.values()){if(a[a.length-1]>=o.length)continue;let l=[...o],u=!0,c=!1;for(let p of a){let h=o[p];if(h!=="*"){if(!h||h==="**"||!i&&h.startsWith(".")){u=!1;break}l[p]="*",c=!0}}if(u&&c&&r.has(l.join("/")))return!1}return!0})}parseNegate(){if(this.nonegate)return;let e=this.pattern,r=!1,s=0;for(let n=0;n<e.length&&e.charAt(n)==="!";n++)r=!r,s++;s&&(this.pattern=e.slice(s)),this.negate=r}#b(e,r,s,n){let i=0,o=0,a=this.isWindows?Tp(r):-1,l=a===-1?-1:Tp(s);if(l!==-1){let u=s[l],c=s[l+1];typeof u!="string"||typeof c!="string"?(i=a,o=l):r[a].toLowerCase()===u.toLowerCase()&&r[a+1].toLowerCase()===c.toLowerCase()&&(i=a+2,o=l+2)}else if(this.isWindows){let u=typeof e[0]=="string"&&/^[a-z]:$/i.test(e[0]),c=!u&&e[0]===""&&e[1]===""&&e[2]==="?"&&/^[a-z]:$/i.test(e[3]),p=typeof s[0]=="string"&&/^[a-z]:$/i.test(s[0]),h=!p&&s[0]===""&&s[1]===""&&s[2]==="?"&&typeof s[3]=="string"&&/^[a-z]:$/i.test(s[3]),f=c?3:u?0:void 0,d=h?3:p?0:void 0;if(typeof f=="number"&&typeof d=="number"){let[g,y]=[e[f],s[d]];g.toLowerCase()===y.toLowerCase()&&(o=d+1,i=f+1)}}return e=r,s.includes(Ne.GLOBSTAR)?this.#w(e,s,n,i,o):this.#y(e,s,n,i,o)}#w(e,r,s,n,i){let{head:o,body:a,tail:l,segments:u}=this.#A(r,s,i);if(o.length){let p=n+o.length;if(!this.#y(e,o,s,n,0,p))return!1;n+=o.length,i+=o.length}let c=0;if(l.length){if(l.length+n>e.length)return!1;let p=e.length-l.length;if(this.#y(e,l,s,p,0))c=l.length;else{if(e[e.length-1]!==""||n+l.length===e.length||(p--,!this.#y(e,l,s,p,0)))return!1;c=l.length+1}}if(!a.length){let p=!!c;for(let h=n;h<e.length-c;h++){let f=String(e[h]);if(p=!0,f==="."||f===".."||!this.options.dot&&f.startsWith("."))return!1}return s||p}return!!this.#v(e,u,e.length-c,n,0,s,0,!!c,new Set)}#A(e,r,s){let n=this.#d.get(e);n||(n=[],this.#d.set(e,n));let i=s*2+(r?1:0),o=n[i];if(o)return o;let a=e.indexOf(Ne.GLOBSTAR,s),l=e.lastIndexOf(Ne.GLOBSTAR),u=e.slice(s,a),c=e.slice(a+1,r?void 0:l),p=r?[]:e.slice(l+1),h=[[[],0]],f=h[0],d=0,g=[0];for(let v of c)v===Ne.GLOBSTAR?(g.push(d),f=[[],0],h.push(f)):(f[0].push(v),d++);h.forEach((v,S)=>{v[1]=d-g[S]});let y={head:u,body:c,tail:p,segments:h};return n[i]=y,y}#v(e,r,s,n,i,o,a,l,u){let c=r[i];if(!c){if(o)return n>=s||n===s-1&&e[n]==="";for(let d=n;d<s;d++){l=!0;let g=e[d];if(g==="."||g===".."||!this.options.dot&&g.startsWith("."))return!1}return l}let[p,h]=c,f=o?s:s-h;for(;n<=f;){let d=i*(e.length+1)+n;if(u.has(d))return!1;if(u.add(d),this.#y(e,p,o,n,0,n+p.length)&&a<this.maxGlobstarRecursion){let v=this.#v(e,r,s,n+p.length,i+1,o,a+1,l,u);if(v!==!1)return v}if(n===f)break;let y=e[n];if(y==="."||y===".."||!this.options.dot&&y.startsWith("."))return!1;n++}return o||null}#y(e,r,s,n,i,o=e.length){let a,l,u,c;for(a=n,l=i,c=Math.min(o,e.length),u=r.length;a<c&&l<u;a++,l++){let p=r[l],h=e[a];if(p===!1||p===Ne.GLOBSTAR||!vn(p,h))return!1}if(a===c&&l===u)return!0;if(a===c)return s;if(l===u)return a===c-1&&e[a]==="";throw new Error("wtf?")}braceExpand(){return(0,Ne.braceExpand)(this.pattern,this.options)}#k(){let{pattern:e}=this;if(this.options.nobrace)return this.braceExpand();let r=57344;for(;e.includes(String.fromCharCode(r));)if(++r>63743)return this.braceExpand();let s=String.fromCharCode(r),n=!1,i=e.replace(z6,(a,l,u)=>{let c=Number(l),p=Number(u);return!Number.isSafeInteger(c)||!Number.isSafeInteger(p)||Math.abs(c-p)+1<W6?a:(n=!0,`${s}${l}..${u}${s}`)});if(!n)return this.braceExpand();let o=(0,Ne.braceExpand)(i,this.options);for(let a of o)for(let l of a.split("/")){let u=l.indexOf("[");if(u!==-1&&u<l.lastIndexOf(s))return this.braceExpand()}return this.#f=s,o}parse(e){(0,Do.assertValidPattern)(e);let r=this.options;if(e==="**")return Ne.GLOBSTAR;if(e==="")return"";let{nocase:s,nocaseMagicOnly:n,noext:i=!1,dot:o,normalize:a}=r,l=this.#f,u=l&&e.includes(l)?void 0:K6(e,i);if(u!==void 0&&!(s&&!n&&e.toUpperCase()!==e.toLowerCase()))return this.#c(u);if(this.#u)return Dp;let c=this.#l.get(e);return c||(i||H6(e),c=new zE.Matcher(e,{nocase:s,noext:i,dot:o,normalize:a,...l&&{rangeMark:l}}),this.#l.set(e,c)),c}#S(e){return this.preserveMultipleSlashes?e.split("/"):this.isWindows&&/^\/\/[^/]+/.test(e)?["",...e.split(/\/+/)]:e.split(/\/+/)}match(e,r=this.partial){if(this.comment)return!1;if(this.empty)return e==="";if(e==="/"&&r)return!0;let s=this.options,n=this.#p(e);if(!n){if(!r&&!this.#n&&(this.#e||this.#t)&&JE!==e){JE=e;let u=this.#g(e);if(u==="no")return s.flipNegate?!1:this.negate;if(u==="yes")return s.flipNegate?!0:!this.negate}n=this.#m(e)}let i=n.parts,o=this.#r?n.resolved??=this.#C(i):i,a=this.set,l=i[i.length-1];if(!l)for(let u=i.length-2;!l&&u>=0;u--)l=i[u];for(let u=0;u<a.length;u++){let c=a[u],p=r?void 0:this.#a[u];if(p==="base"?vn(c[0],l):p?this.#x(o,c,p):s.matchBase&&c.length===1?this.#b([l],[l],c,r):this.#b(i,o,c,r))return s.flipNegate?!0:!this.negate}return s.flipNegate?!1:this.negate}static defaults(e){return Ne.minimatch.defaults(e).Minimatch}};Ne.Minimatch=Ks;var X6=vp();Object.defineProperty(Ne,"escape",{enumerable:!0,get:function(){return X6.escape}});var Q6=Sp();Object.defineProperty(Ne,"unescape",{enumerable:!0,get:function(){return Q6.unescape}});Ne.minimatch.Minimatch=Ks;Ne.minimatch.escape=F6.escape;Ne.minimatch.unescape=_6.unescape});var ab=B(_o=>{"use strict";var Xi=class{static overwrite(e,r){return r}static replace(e,r){return typeof r<"u"?r:e}static assign(e,r){return Object.assign({},e,r)}},Hs=class{static array(e){if(!Array.isArray(e))throw new TypeError("Expected an array.")}static boolean(e){if(typeof e!="boolean")throw new TypeError("Expected a boolean.")}static number(e){if(typeof e!="number")throw new TypeError("Expected a number.")}static object(e){if(!e||typeof e!="object")throw new TypeError("Expected an object.")}static"object?"(e){if(typeof e!="object")throw new TypeError("Expected an object or null.")}static string(e){if(typeof e!="string")throw new TypeError("Expected a string.")}static"string!"(e){if(typeof e!="string"||e.length===0)throw new TypeError("Expected a non-empty string.")}};function Y6(t,e){let r=!1;if(e.schema)if(typeof e.schema=="object")r=!0;else throw new TypeError("Schema must be an object.");if(typeof e.merge=="string"){if(!(e.merge in Xi))throw new TypeError(`Definition for key "${t}" missing valid merge strategy.`)}else if(!r&&typeof e.merge!="function")throw new TypeError(`Definition for key "${t}" must have a merge property.`);if(typeof e.validate=="string"){if(!(e.validate in Hs))throw new TypeError(`Definition for key "${t}" missing valid validation strategy.`)}else if(!r&&typeof e.validate!="function")throw new TypeError(`Definition for key "${t}" must have a validate() method.`)}var _p=class extends Error{constructor(e){super(`Unexpected key "${e}" found.`)}},Bp=class extends Error{constructor(e){super(`Missing required key "${e}".`)}},Op=class extends Error{constructor(e,r){super(`Key "${e}" requires keys "${r.join('", "')}".`)}},Fo=class extends Error{constructor(e,r){super(`Key "${e}": ${r.message}`,{cause:r});for(let s of Object.keys(r))s in this||(this[s]=r[s])}},Lp=class t{#e=new Map;#t=new Map;constructor(e){if(!e)throw new Error("Schema definitions missing.");for(let r of Object.keys(e)){let s=e[r];Y6(r,s);let n=s;if(typeof n.schema=="object"){let i=new t(n.schema);n={...n,merge(o={},a={}){return i.merge(o,a)},validate(o){Hs.object(o),i.validate(o)}}}typeof n.merge=="string"&&(n={...n,merge:Xi[n.merge]}),typeof n.validate=="string"&&(n={...n,validate:Hs[n.validate]}),this.#e.set(r,n),n.required&&this.#t.set(r,n)}}hasKey(e){return this.#e.has(e)}merge(...e){if(e.length<2)throw new TypeError("merge() requires at least two arguments.");if(e.some(r=>r===null||typeof r!="object"))throw new TypeError("All arguments must be objects.");return e.reduce((r,s)=>{this.validate(s);for(let[n,i]of this.#e)try{if(n in r||n in s){let a=i.merge.call(this,r[n],s[n]);a!==void 0&&(r[n]=a)}}catch(o){throw new Fo(n,o)}return r},{})}validate(e){for(let r of Object.keys(e)){if(!this.hasKey(r))throw new _p(r);let s=this.#e.get(r);if(Array.isArray(s.requires)&&!s.requires.every(n=>n in e))throw new Op(r,s.requires);try{s.validate.call(s,e[r])}catch(n){throw new Fo(r,n)}}for(let[r]of this.#t)if(!(r in e))throw new Bp(r)}};_o.MergeStrategy=Xi;_o.ObjectSchema=Lp;_o.ValidationStrategy=Hs});var zp=B(qo=>{"use strict";var Z6=hE(),e9=vE(),t9=ib(),r9=mn(),Vp=ab();function yb(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if(r!=="default"){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var jo=yb(Z6),n9=yb(e9),Np={required:!1,merge(){},validate(){}},s9=Object.freeze({name:{required:!1,merge(){},validate(t){if(typeof t!="string")throw new TypeError("Property must be a string.")}},basePath:Np,files:Np,ignores:Np});function i9(t){if(!Array.isArray(t))throw new TypeError("Expected value to be an array.")}function ob(t){if(i9(t),t.some(e=>typeof e!="string"&&typeof e!="function"))throw new TypeError("Expected array to only contain strings and functions.")}function a9(t){if(!Array.isArray(t)||t.length===0)throw new TypeError("Expected value to be a non-empty array.")}var o9=Object.freeze({basePath:{required:!1,merge(){},validate(t){if(typeof t!="string")throw new TypeError("Expected value to be a string.")}},files:{required:!1,merge(){},validate(t){a9(t),t.forEach(e=>{if(Array.isArray(e))ob(e);else if(typeof e!="string"&&typeof e!="function")throw new TypeError("Items must be a string, a function, or an array of strings and functions.")})}},ignores:{required:!1,merge(){},validate:ob}}),fr=r9("@eslint/config-array"),l9=new Map,u9=new Map,c9={dot:!0},p9={dot:!0,flipNegate:!0},lb=33,Sn=47,f9=/^[\w.-]+$/u,h9=/^\*([\w.-]+)$/u,m9=new Set(["array","function"]),d9=new Set(["name","basePath"]),g9=new Vp.ObjectSchema(o9),ub=Object.freeze({status:"external"}),Bo=Object.freeze({status:"ignored"}),cb=Object.freeze({status:"unconfigured"}),Lo=/^\.\.(?:\/|$)/u,pb=/\/\/|\/\.{1,2}(?:\/|$)/u,fb=/^\*$|^!|\/\*{1,2}$/u,hb=new WeakMap,Xs=class extends Error{constructor(e,r,{cause:s,message:n}){let i=n||s.message;if(super(`Config ${e}: ${i}`,{cause:s}),s)for(let o of Object.keys(s))o in this||(this[o]=s[o]);this.name="ConfigError",this.index=r}};function No(t){return t&&typeof t.name=="string"&&t.name?`"${t.name}"`:"(unnamed)"}function xb(t,e,r){let s=No(t);throw new Xs(s,e,{cause:r})}function Mo(t){return typeof t=="string"}function mb(t,e){if(t===null)throw new Xs(No(t),e,{message:"Unexpected null config."});if(t===void 0)throw new Xs(No(t),e,{message:"Unexpected undefined config."});if(typeof t!="object")throw new Xs(No(t),e,{message:"Unexpected non-object config."});let r={};"basePath"in t&&(r.basePath=t.basePath),"files"in t&&(r.files=t.files),"ignores"in t&&(r.ignores=t.ignores);try{g9.validate(r)}catch(s){xb(t,e,s)}}function y9(t){let e={matcher:t,prefix:null,suffix:null};if(t.negate||t.comment||t.empty||t.pattern.includes(".."))return e;let r=t.pattern.split("/");if(r.length>1&&r.at(-1)===""&&r.pop(),r.includes("."))return e;let s="",n=0;for(;n<r.length&&f9.test(r[n]);)s+=`${r[n]}/`,n++;if(s!==""&&(e.prefix=s),n<r.length){let i=h9.exec(r.at(-1));i&&(e.suffix=i[1])}return e}function x9(t,e){let{prefix:r,suffix:s}=t;return r!==null&&!e.startsWith(r)&&(e.length!==r.length-1||!r.startsWith(e))?!1:s!==null&&!e.endsWith(s)?e.charCodeAt(e.length-1)===Sn&&e.endsWith(s,e.length-1):!0}function Up(t,e,r=!1){let s=r?u9:l9,n=s.get(e);return n===void 0&&(n=y9(new t9.Minimatch(e,r?p9:c9)),s.set(e,n)),x9(n,t)?n.matcher.match(t):!1}function Rp(t){if(Mo(t)){if(t.startsWith("./"))return t.slice(2);if(t.startsWith("!./"))return`!${t.slice(3)}`}return t}function jp(t){return Mo(t)&&(t.startsWith("./")||t.startsWith("!./"))}function Eb(t,e,r){if(!t)return t;let s=typeof t.basePath=="string",n=!1;if(s&&(n=!0),!n&&Array.isArray(t.files)&&(n=t.files.some(o=>Array.isArray(o)?o.some(jp):jp(o))),!n&&Array.isArray(t.ignores)&&(n=t.ignores.some(jp)),!n)return t;let i={...t};return s&&(r.isAbsolute(t.basePath)?i.basePath=r.toNamespacedPath(t.basePath):i.basePath=r.resolve(e,t.basePath)),Array.isArray(i.files)&&(i.files=i.files.map(o=>Array.isArray(o)?o.map(Rp):Rp(o))),Array.isArray(i.ignores)&&(i.ignores=i.ignores.map(Rp)),i}async function E9(t,e,r,s,n){let i=r.includes("function"),o=r.includes("array");async function*a(c){for(let p of c){if(typeof p=="function"){if(!i)throw new TypeError("Unexpected function.");p=p(e),p.then&&(p=await p)}if(Array.isArray(p)){if(!o)throw new TypeError("Unexpected array.");yield*a(p)}else{if(typeof p=="function")throw new TypeError("A config function can only return an object or array.");yield p}}}let l=a(t),u=[];for await(let c of l)u.push(Eb(c,s,n));return u}function b9(t,e,r,s,n){let i=r.includes("function"),o=r.includes("array");function*a(u){for(let c of u){if(typeof c=="function"){if(!i)throw new TypeError("Unexpected function.");if(c=c(e),c.then)throw new TypeError("Async config functions are not supported.")}if(Array.isArray(c)){if(!o)throw new TypeError("Unexpected array.");yield*a(c)}else{if(typeof c=="function")throw new TypeError("A config function can only return an object or array.");yield c}}}let l=[];for(let u of a(t))l.push(Eb(u,s,n));return l}function v9(t,e){let r=t.length,s=e.length,n=r<s?r:s,i=0,o=1;for(;o<n;o++){let l=t.charCodeAt(o);if(l!==e.charCodeAt(o))break;l===Sn&&(i=o)}o===s&&t.charCodeAt(o)===Sn&&(i=o);let a="..";for(let l=i+1;l<r;l++)t.charCodeAt(l)===Sn&&(a+="/..");return i+1<s?`${a}/${e.slice(i+1)}`:a}function S9(t,e){if(t.charCodeAt(0)!==Sn||pb.test(t))return;let r=t.length;if(r>1&&t.charCodeAt(r-1)===Sn&&r--,e==="/")return t.slice(1,r);let s=e.length;if(!(e.charCodeAt(s-1)===Sn||pb.test(e))){if(t.startsWith(e)){if(r===s)return"";if(t.charCodeAt(s)===Sn)return t.slice(s+1,r)}return v9(e,r===t.length?t:t.slice(0,r))}}function Ro(t,e,r){if(r===jo){let o=S9(t,e);if(o!==void 0)return o}let s=r.resolve(e,t),n=r.toNamespacedPath(s);return r.relative(e,n).replaceAll(r.SEPARATOR,"/")}function Wp(t,e,r,s){let n=s;for(let i=0;i<t.length;i++){let o=t[i];if(!n){typeof o=="function"?n=o(e):o.charCodeAt(0)!==lb?n=Up(r,o):n=!1;continue}typeof o=="string"&&o.charCodeAt(0)===lb&&(n=!Up(r,o,!0))}return n}function db(t,e,r,{basePath:s,path:n}={}){let i=!1,o=null;for(let a of t){let l=r;if(a.basePath){if(o===null&&(o=n===jo?`${s==="/"?"":s}/${r}`:n.resolve(s,r)),l=Ro(o,a.basePath,n),l===""||Lo.test(l))continue;r.endsWith("/")&&(l+="/")}i=Wp(a.ignores,e,l,i)}return i}function gb(t,e,r){if(Mo(r))return Up(e,r);if(typeof r=="function")return r(t);throw new TypeError(`Unexpected matcher type ${r}.`)}function Mp(t,e,r,s){let n=!1;for(let i=0;i<r.length;i++){let o=r[i];if(Array.isArray(o)){let a=!0;for(let l=0;l<o.length;l++)if(!gb(t,e,o[l])){a=!1;break}if(a){n=!0;break}}else if(gb(t,e,o)){n=!0;break}}return n&&s&&(n=!Wp(s,t,e,!1)),n}function C9(t){let e={isGlobalIgnores:!1,universalFiles:null,nonUniversalFiles:null};if(t.files){let r=[],s=[];for(let n of t.files)Array.isArray(n)?n.every(i=>fb.test(i))?r.push(n):s.push(n):fb.test(n)?r.push(n):s.push(n);e.universalFiles=r,e.nonUniversalFiles=s}else if(t.ignores){let r=0;for(let s of Object.keys(t))d9.has(s)||r++;e.isGlobalIgnores=r===1}return e}function qp(t){let e=hb.get(t);return e===void 0&&(e=C9(t),hb.set(t,e)),e}function Oo(t){if(!t.isNormalized())throw new Error("ConfigArray must be normalized to perform this operation.")}function w9(t){if(!Array.isArray(t))throw new TypeError("extraConfigTypes must be an array.");if(t.length>2)throw new TypeError("extraConfigTypes must contain at most two items.");for(let e of t)if(!m9.has(e))throw new TypeError(`Unexpected config type "${e}" in extraConfigTypes. Expected one of: "array", "function".`)}function A9(t){if(t.startsWith("/"))return jo;if(/^(?:[A-Za-z]:[/\\]|[/\\]{2})/u.test(t))return n9;throw new Error(`Expected an absolute path but received "${t}"`)}var nr={isNormalized:Symbol("isNormalized"),configCache:Symbol("configCache"),schema:Symbol("schema"),finalizeConfig:Symbol("finalizeConfig"),preprocessConfig:Symbol("preprocessConfig")},Js=new WeakMap,$p=class extends Array{#e;#t;constructor(e,{basePath:r="/",normalized:s=!1,schema:n,extraConfigTypes:i=[]}={}){if(super(),this[nr.isNormalized]=s,this[nr.schema]=new Vp.ObjectSchema(Object.assign({},n,s9)),!Mo(r)||!r)throw new TypeError("basePath must be a non-empty string");this.basePath=r,w9(i),this.extraConfigTypes=[...i],Object.freeze(this.extraConfigTypes),this[nr.configCache]=new Map,Js.set(this,{explicitMatches:new Map,directoryMatches:new Map,files:void 0,ignores:void 0}),Array.isArray(e)?this.push(...e):this.push(e),this.#t=A9(r),this.#e=this.#t.toNamespacedPath(r)}static get[Symbol.species](){return Array}get files(){Oo(this);let e=Js.get(this);if(e.files)return e.files;let r=[];for(let s of this)s.files&&s.files.forEach(n=>{r.push(n)});return e.files=r,Js.set(this,e),r}get ignores(){Oo(this);let e=Js.get(this);if(e.ignores)return e.ignores;let r=[];for(let s of this)s.ignores&&qp(s).isGlobalIgnores&&r.push(s);return e.ignores=r,Js.set(this,e),r}isNormalized(){return this[nr.isNormalized]}async normalize(e={}){if(!this.isNormalized()){let r=await E9(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...r.map(this[nr.preprocessConfig].bind(this))),this.forEach(mb),this[nr.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(e={}){if(!this.isNormalized()){let r=b9(this,e,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...r.map(this[nr.preprocessConfig].bind(this))),this.forEach(mb),this[nr.isNormalized]=!0,Object.freeze(this)}return this}[nr.finalizeConfig](e){return e}[nr.preprocessConfig](e){return e}getConfigWithStatus(e){Oo(this);let r=this[nr.configCache],s=r.get(e);if(s)return s;let n=Ro(e,this.#e,this.#t);if(Lo.test(n))return fr("No config for file %s outside of base path",e),r.set(e,ub),ub;if(this.isDirectoryIgnored(this.#t.dirname(e)))return fr("Ignoring %s based on directory pattern",e),r.set(e,Bo),Bo;if(db(this.ignores,e,n,{basePath:this.#e,path:this.#t}))return fr("Ignoring %s based on file pattern",e),r.set(e,Bo),Bo;let i=[],o=!1,a=null;for(let p=0;p<this.length;p++){let h=this[p],f=n;if(h.basePath&&(a===null&&(a=this.#t===jo?`${this.#e==="/"?"":this.#e}/${n}`:this.#t.resolve(this.#e,e)),f=Ro(a,h.basePath,this.#t),Lo.test(f))){fr("Skipped config found for %s (based on config's base path: %s)",e,h.basePath);continue}if(!h.files){if(!h.ignores){fr("Universal config found for %s",e),i.push(p);continue}if(qp(h).isGlobalIgnores){fr("Skipped config found for %s (global ignores)",e);continue}if(Wp(h.ignores,e,f,!1)){fr("Skipped config found for %s (based on ignores: %s)",e,h.ignores);continue}fr("Matching config found for %s (based on ignores: %s)",e,h.ignores),i.push(p);continue}let{universalFiles:d,nonUniversalFiles:g}=qp(h);if(d.length){if(fr("Universal files patterns found. Checking carefully."),g.length&&Mp(e,f,g,h.ignores)){fr("Matching config found for %s",e),i.push(p),o=!0;continue}if(Mp(e,f,d,h.ignores)){fr("Matching config found for %s",e),i.push(p);continue}continue}Mp(e,f,h.files,h.ignores)&&(fr("Matching config found for %s",e),i.push(p),o=!0)}if(!o)return fr("No matching configs found for %s",e),r.set(e,cb),cb;let l=i.toString(),u=r.get(l);if(u)return r.set(e,u),u;let c=i.reduce((p,h)=>{try{return this[nr.schema].merge(p,this[h])}catch(f){xb(this[h],h,f)}},{});return c=this[nr.finalizeConfig](c),u=Object.freeze({config:c,status:"matched"}),r.set(e,u),r.set(l,u),u}getConfig(e){return this.getConfigWithStatus(e).config}getConfigStatus(e){return this.getConfigWithStatus(e).status}isIgnored(e){return this.isFileIgnored(e)}isFileIgnored(e){return this.getConfigStatus(e)==="ignored"}isDirectoryIgnored(e){Oo(this);let r=Ro(e,this.#e,this.#t);if(r==="")return!1;if(Lo.test(r))return!0;let s=Js.get(this).directoryMatches;if(s.has(r))return s.get(r);let n=r.split("/"),i=n.length,o=0,a="",l;do a+=`${n[o++]}/`,l=s.get(a),l===void 0&&(l=db(this.ignores,this.#t.join(this.basePath,a),a,{basePath:this.#e,path:this.#t}),s.set(a,l));while(!l&&o<i);return s.set(r,l),l}};Object.defineProperty(qo,"ObjectSchema",{enumerable:!0,get:function(){return Vp.ObjectSchema}});qo.ConfigArray=$p;qo.ConfigArraySymbol=nr});var Gp=B((DZ,k9)=>{k9.exports={rules:{"generator-star":["generator-star-spacing"],"global-strict":["strict"],"no-arrow-condition":["no-confusing-arrow","no-constant-condition"],"no-comma-dangle":["comma-dangle"],"no-empty-class":["no-empty-character-class"],"no-empty-label":["no-labels"],"no-extra-strict":["strict"],"no-reserved-keys":["quote-props"],"no-space-before-semi":["semi-spacing"],"no-wrap-func":["no-extra-parens"],"space-after-function-name":["space-before-function-paren"],"space-after-keywords":["keyword-spacing"],"space-before-function-parentheses":["space-before-function-paren"],"space-before-keywords":["keyword-spacing"],"space-in-brackets":["object-curly-spacing","array-bracket-spacing","computed-property-spacing"],"space-return-throw-case":["keyword-spacing"],"space-unary-word-ops":["space-unary-ops"],"spaced-line-comment":["spaced-comment"]}}});var vb=B((Uo,bb)=>{(function(t,e){typeof Uo=="object"&&typeof bb<"u"?e(Uo):typeof define=="function"&&define.amd?define(["exports"],e):e(t.URI=t.URI||{})})(Uo,(function(t){"use strict";function e(){for(var H=arguments.length,q=Array(H),J=0;J<H;J++)q[J]=arguments[J];if(q.length>1){q[0]=q[0].slice(0,-1);for(var ee=q.length-1,ne=1;ne<ee;++ne)q[ne]=q[ne].slice(1,-1);return q[ee]=q[ee].slice(1),q.join("")}else return q[0]}function r(H){return"(?:"+H+")"}function s(H){return H===void 0?"undefined":H===null?"null":Object.prototype.toString.call(H).split(" ").pop().split("]").shift().toLowerCase()}function n(H){return H.toUpperCase()}function i(H){return H!=null?H instanceof Array?H:typeof H.length!="number"||H.split||H.setInterval||H.call?[H]:Array.prototype.slice.call(H):[]}function o(H,q){var J=H;if(q)for(var ee in q)J[ee]=q[ee];return J}function a(H){var q="[A-Za-z]",J="[\\x0D]",ee="[0-9]",ne="[\\x22]",ke=e(ee,"[A-Fa-f]"),oe="[\\x0A]",Ze="[\\x20]",De=r(r("%[EFef]"+ke+"%"+ke+ke+"%"+ke+ke)+"|"+r("%[89A-Fa-f]"+ke+"%"+ke+ke)+"|"+r("%"+ke+ke)),ot="[\\:\\/\\?\\#\\[\\]\\@]",Qe="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",pt=e(ot,Qe),Et=H?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",lt=H?"[\\uE000-\\uF8FF]":"[]",et=e(q,ee,"[\\-\\.\\_\\~]",Et),mt=r(q+e(q,ee,"[\\+\\-\\.]")+"*"),rt=r(r(De+"|"+e(et,Qe,"[\\:]"))+"*"),lr=r(r("25[0-5]")+"|"+r("2[0-4]"+ee)+"|"+r("1"+ee+ee)+"|"+r("[1-9]"+ee)+"|"+ee),Ft=r(r("25[0-5]")+"|"+r("2[0-4]"+ee)+"|"+r("1"+ee+ee)+"|"+r("0?[1-9]"+ee)+"|0?0?"+ee),Wt=r(Ft+"\\."+Ft+"\\."+Ft+"\\."+Ft),at=r(ke+"{1,4}"),Rt=r(r(at+"\\:"+at)+"|"+Wt),Q=r(r(at+"\\:")+"{6}"+Rt),ce=r("\\:\\:"+r(at+"\\:")+"{5}"+Rt),ge=r(r(at)+"?\\:\\:"+r(at+"\\:")+"{4}"+Rt),G=r(r(r(at+"\\:")+"{0,1}"+at)+"?\\:\\:"+r(at+"\\:")+"{3}"+Rt),se=r(r(r(at+"\\:")+"{0,2}"+at)+"?\\:\\:"+r(at+"\\:")+"{2}"+Rt),Ee=r(r(r(at+"\\:")+"{0,3}"+at)+"?\\:\\:"+at+"\\:"+Rt),Se=r(r(r(at+"\\:")+"{0,4}"+at)+"?\\:\\:"+Rt),_e=r(r(r(at+"\\:")+"{0,5}"+at)+"?\\:\\:"+at),Le=r(r(r(at+"\\:")+"{0,6}"+at)+"?\\:\\:"),Oe=r([Q,ce,ge,G,se,Ee,Se,_e,Le].join("|")),ct=r(r(et+"|"+De)+"+"),Nt=r(Oe+"\\%25"+ct),tt=r(Oe+r("\\%25|\\%(?!"+ke+"{2})")+ct),Xt=r("[vV]"+ke+"+\\."+e(et,Qe,"[\\:]")+"+"),bt=r("\\["+r(tt+"|"+Oe+"|"+Xt)+"\\]"),ye=r(r(De+"|"+e(et,Qe))+"*"),Ie=r(bt+"|"+Wt+"(?!"+ye+")|"+ye),Me=r(ee+"*"),me=r(r(rt+"@")+"?"+Ie+r("\\:"+Me)+"?"),qe=r(De+"|"+e(et,Qe,"[\\:\\@]")),ft=r(qe+"*"),zt=r(qe+"+"),Gt=r(r(De+"|"+e(et,Qe,"[\\@]"))+"+"),wt=r(r("\\/"+ft)+"*"),Kt=r("\\/"+r(zt+wt)+"?"),Gr=r(Gt+wt),ur=r(zt+wt),Ge="(?!"+qe+")",td=r(wt+"|"+Kt+"|"+Gr+"|"+ur+"|"+Ge),Kr=r(r(qe+"|"+e("[\\/\\?]",lt))+"*"),hn=r(r(qe+"|[\\/\\?]")+"*"),Ai=r(r("\\/\\/"+me+wt)+"|"+Kt+"|"+ur+"|"+Ge),du=r(mt+"\\:"+Ai+r("\\?"+Kr)+"?"+r("\\#"+hn)+"?"),gu=r(r("\\/\\/"+me+wt)+"|"+Kt+"|"+Gr+"|"+Ge),yu=r(gu+r("\\?"+Kr)+"?"+r("\\#"+hn)+"?"),m=r(du+"|"+yu),x=r(mt+"\\:"+Ai+r("\\?"+Kr)+"?"),D="^("+mt+")\\:"+r(r("\\/\\/("+r("("+rt+")@")+"?("+Ie+")"+r("\\:("+Me+")")+"?)")+"?("+wt+"|"+Kt+"|"+ur+"|"+Ge+")")+r("\\?("+Kr+")")+"?"+r("\\#("+hn+")")+"?$",L="^(){0}"+r(r("\\/\\/("+r("("+rt+")@")+"?("+Ie+")"+r("\\:("+Me+")")+"?)")+"?("+wt+"|"+Kt+"|"+Gr+"|"+Ge+")")+r("\\?("+Kr+")")+"?"+r("\\#("+hn+")")+"?$",V="^("+mt+")\\:"+r(r("\\/\\/("+r("("+rt+")@")+"?("+Ie+")"+r("\\:("+Me+")")+"?)")+"?("+wt+"|"+Kt+"|"+ur+"|"+Ge+")")+r("\\?("+Kr+")")+"?$",Y="^"+r("\\#("+hn+")")+"?$",Z="^"+r("("+rt+")@")+"?("+Ie+")"+r("\\:("+Me+")")+"?$";return{NOT_SCHEME:new RegExp(e("[^]",q,ee,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(e("[^\\%\\:]",et,Qe),"g"),NOT_HOST:new RegExp(e("[^\\%\\[\\]\\:]",et,Qe),"g"),NOT_PATH:new RegExp(e("[^\\%\\/\\:\\@]",et,Qe),"g"),NOT_PATH_NOSCHEME:new RegExp(e("[^\\%\\/\\@]",et,Qe),"g"),NOT_QUERY:new RegExp(e("[^\\%]",et,Qe,"[\\:\\@\\/\\?]",lt),"g"),NOT_FRAGMENT:new RegExp(e("[^\\%]",et,Qe,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(e("[^]",et,Qe),"g"),UNRESERVED:new RegExp(et,"g"),OTHER_CHARS:new RegExp(e("[^\\%]",et,pt),"g"),PCT_ENCODED:new RegExp(De,"g"),IPV4ADDRESS:new RegExp("^("+Wt+")$"),IPV6ADDRESS:new RegExp("^\\[?("+Oe+")"+r(r("\\%25|\\%(?!"+ke+"{2})")+"("+ct+")")+"?\\]?$")}}var l=a(!1),u=a(!0),c=(function(){function H(q,J){var ee=[],ne=!0,ke=!1,oe=void 0;try{for(var Ze=q[Symbol.iterator](),De;!(ne=(De=Ze.next()).done)&&(ee.push(De.value),!(J&&ee.length===J));ne=!0);}catch(ot){ke=!0,oe=ot}finally{try{!ne&&Ze.return&&Ze.return()}finally{if(ke)throw oe}}return ee}return function(q,J){if(Array.isArray(q))return q;if(Symbol.iterator in Object(q))return H(q,J);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),p=function(H){if(Array.isArray(H)){for(var q=0,J=Array(H.length);q<H.length;q++)J[q]=H[q];return J}else return Array.from(H)},h=2147483647,f=36,d=1,g=26,y=38,v=700,S=72,A=128,E="-",k=/^xn--/,T=/[^\0-\x7E]/,w=/[\x2E\u3002\uFF0E\uFF61]/g,R={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},j=f-d,$=Math.floor,M=String.fromCharCode;function N(H){throw new RangeError(R[H])}function b(H,q){for(var J=[],ee=H.length;ee--;)J[ee]=q(H[ee]);return J}function C(H,q){var J=H.split("@"),ee="";J.length>1&&(ee=J[0]+"@",H=J[1]),H=H.replace(w,".");var ne=H.split("."),ke=b(ne,q).join(".");return ee+ke}function P(H){for(var q=[],J=0,ee=H.length;J<ee;){var ne=H.charCodeAt(J++);if(ne>=55296&&ne<=56319&&J<ee){var ke=H.charCodeAt(J++);(ke&64512)==56320?q.push(((ne&1023)<<10)+(ke&1023)+65536):(q.push(ne),J--)}else q.push(ne)}return q}var F=function(q){return String.fromCodePoint.apply(String,p(q))},I=function(q){return q-48<10?q-22:q-65<26?q-65:q-97<26?q-97:f},U=function(q,J){return q+22+75*(q<26)-((J!=0)<<5)},z=function(q,J,ee){var ne=0;for(q=ee?$(q/v):q>>1,q+=$(q/J);q>j*g>>1;ne+=f)q=$(q/j);return $(ne+(j+1)*q/(q+y))},W=function(q){var J=[],ee=q.length,ne=0,ke=A,oe=S,Ze=q.lastIndexOf(E);Ze<0&&(Ze=0);for(var De=0;De<Ze;++De)q.charCodeAt(De)>=128&&N("not-basic"),J.push(q.charCodeAt(De));for(var ot=Ze>0?Ze+1:0;ot<ee;){for(var Qe=ne,pt=1,Et=f;;Et+=f){ot>=ee&&N("invalid-input");var lt=I(q.charCodeAt(ot++));(lt>=f||lt>$((h-ne)/pt))&&N("overflow"),ne+=lt*pt;var et=Et<=oe?d:Et>=oe+g?g:Et-oe;if(lt<et)break;var mt=f-et;pt>$(h/mt)&&N("overflow"),pt*=mt}var rt=J.length+1;oe=z(ne-Qe,rt,Qe==0),$(ne/rt)>h-ke&&N("overflow"),ke+=$(ne/rt),ne%=rt,J.splice(ne++,0,ke)}return String.fromCodePoint.apply(String,J)},re=function(q){var J=[];q=P(q);var ee=q.length,ne=A,ke=0,oe=S,Ze=!0,De=!1,ot=void 0;try{for(var Qe=q[Symbol.iterator](),pt;!(Ze=(pt=Qe.next()).done);Ze=!0){var Et=pt.value;Et<128&&J.push(M(Et))}}catch(tt){De=!0,ot=tt}finally{try{!Ze&&Qe.return&&Qe.return()}finally{if(De)throw ot}}var lt=J.length,et=lt;for(lt&&J.push(E);et<ee;){var mt=h,rt=!0,lr=!1,Ft=void 0;try{for(var Wt=q[Symbol.iterator](),at;!(rt=(at=Wt.next()).done);rt=!0){var Rt=at.value;Rt>=ne&&Rt<mt&&(mt=Rt)}}catch(tt){lr=!0,Ft=tt}finally{try{!rt&&Wt.return&&Wt.return()}finally{if(lr)throw Ft}}var Q=et+1;mt-ne>$((h-ke)/Q)&&N("overflow"),ke+=(mt-ne)*Q,ne=mt;var ce=!0,ge=!1,G=void 0;try{for(var se=q[Symbol.iterator](),Ee;!(ce=(Ee=se.next()).done);ce=!0){var Se=Ee.value;if(Se<ne&&++ke>h&&N("overflow"),Se==ne){for(var _e=ke,Le=f;;Le+=f){var Oe=Le<=oe?d:Le>=oe+g?g:Le-oe;if(_e<Oe)break;var ct=_e-Oe,Nt=f-Oe;J.push(M(U(Oe+ct%Nt,0))),_e=$(ct/Nt)}J.push(M(U(_e,0))),oe=z(ke,Q,et==lt),ke=0,++et}}}catch(tt){ge=!0,G=tt}finally{try{!ce&&se.return&&se.return()}finally{if(ge)throw G}}++ke,++ne}return J.join("")},ue=function(q){return C(q,function(J){return k.test(J)?W(J.slice(4).toLowerCase()):J})},be=function(q){return C(q,function(J){return T.test(J)?"xn--"+re(J):J})},te={version:"2.1.0",ucs2:{decode:P,encode:F},decode:W,encode:re,toASCII:be,toUnicode:ue},pe={};function ve(H){var q=H.charCodeAt(0),J=void 0;return q<16?J="%0"+q.toString(16).toUpperCase():q<128?J="%"+q.toString(16).toUpperCase():q<2048?J="%"+(q>>6|192).toString(16).toUpperCase()+"%"+(q&63|128).toString(16).toUpperCase():J="%"+(q>>12|224).toString(16).toUpperCase()+"%"+(q>>6&63|128).toString(16).toUpperCase()+"%"+(q&63|128).toString(16).toUpperCase(),J}function Ae(H){for(var q="",J=0,ee=H.length;J<ee;){var ne=parseInt(H.substr(J+1,2),16);if(ne<128)q+=String.fromCharCode(ne),J+=3;else if(ne>=194&&ne<224){if(ee-J>=6){var ke=parseInt(H.substr(J+4,2),16);q+=String.fromCharCode((ne&31)<<6|ke&63)}else q+=H.substr(J,6);J+=6}else if(ne>=224){if(ee-J>=9){var oe=parseInt(H.substr(J+4,2),16),Ze=parseInt(H.substr(J+7,2),16);q+=String.fromCharCode((ne&15)<<12|(oe&63)<<6|Ze&63)}else q+=H.substr(J,9);J+=9}else q+=H.substr(J,3),J+=3}return q}function ie(H,q){function J(ee){var ne=Ae(ee);return ne.match(q.UNRESERVED)?ne:ee}return H.scheme&&(H.scheme=String(H.scheme).replace(q.PCT_ENCODED,J).toLowerCase().replace(q.NOT_SCHEME,"")),H.userinfo!==void 0&&(H.userinfo=String(H.userinfo).replace(q.PCT_ENCODED,J).replace(q.NOT_USERINFO,ve).replace(q.PCT_ENCODED,n)),H.host!==void 0&&(H.host=String(H.host).replace(q.PCT_ENCODED,J).toLowerCase().replace(q.NOT_HOST,ve).replace(q.PCT_ENCODED,n)),H.path!==void 0&&(H.path=String(H.path).replace(q.PCT_ENCODED,J).replace(H.scheme?q.NOT_PATH:q.NOT_PATH_NOSCHEME,ve).replace(q.PCT_ENCODED,n)),H.query!==void 0&&(H.query=String(H.query).replace(q.PCT_ENCODED,J).replace(q.NOT_QUERY,ve).replace(q.PCT_ENCODED,n)),H.fragment!==void 0&&(H.fragment=String(H.fragment).replace(q.PCT_ENCODED,J).replace(q.NOT_FRAGMENT,ve).replace(q.PCT_ENCODED,n)),H}function xe(H){return H.replace(/^0*(.*)/,"$1")||"0"}function ae(H,q){var J=H.match(q.IPV4ADDRESS)||[],ee=c(J,2),ne=ee[1];return ne?ne.split(".").map(xe).join("."):H}function fe(H,q){var J=H.match(q.IPV6ADDRESS)||[],ee=c(J,3),ne=ee[1],ke=ee[2];if(ne){for(var oe=ne.toLowerCase().split("::").reverse(),Ze=c(oe,2),De=Ze[0],ot=Ze[1],Qe=ot?ot.split(":").map(xe):[],pt=De.split(":").map(xe),Et=q.IPV4ADDRESS.test(pt[pt.length-1]),lt=Et?7:8,et=pt.length-lt,mt=Array(lt),rt=0;rt<lt;++rt)mt[rt]=Qe[rt]||pt[et+rt]||"";Et&&(mt[lt-1]=ae(mt[lt-1],q));var lr=mt.reduce(function(Q,ce,ge){if(!ce||ce==="0"){var G=Q[Q.length-1];G&&G.index+G.length===ge?G.length++:Q.push({index:ge,length:1})}return Q},[]),Ft=lr.sort(function(Q,ce){return ce.length-Q.length})[0],Wt=void 0;if(Ft&&Ft.length>1){var at=mt.slice(0,Ft.index),Rt=mt.slice(Ft.index+Ft.length);Wt=at.join(":")+"::"+Rt.join(":")}else Wt=mt.join(":");return ke&&(Wt+="%"+ke),Wt}else return H}var Be=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Re="".match(/(){0}/)[1]===void 0;function Pe(H){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J={},ee=q.iri!==!1?u:l;q.reference==="suffix"&&(H=(q.scheme?q.scheme+":":"")+"//"+H);var ne=H.match(Be);if(ne){Re?(J.scheme=ne[1],J.userinfo=ne[3],J.host=ne[4],J.port=parseInt(ne[5],10),J.path=ne[6]||"",J.query=ne[7],J.fragment=ne[8],isNaN(J.port)&&(J.port=ne[5])):(J.scheme=ne[1]||void 0,J.userinfo=H.indexOf("@")!==-1?ne[3]:void 0,J.host=H.indexOf("//")!==-1?ne[4]:void 0,J.port=parseInt(ne[5],10),J.path=ne[6]||"",J.query=H.indexOf("?")!==-1?ne[7]:void 0,J.fragment=H.indexOf("#")!==-1?ne[8]:void 0,isNaN(J.port)&&(J.port=H.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?ne[4]:void 0)),J.host&&(J.host=fe(ae(J.host,ee),ee)),J.scheme===void 0&&J.userinfo===void 0&&J.host===void 0&&J.port===void 0&&!J.path&&J.query===void 0?J.reference="same-document":J.scheme===void 0?J.reference="relative":J.fragment===void 0?J.reference="absolute":J.reference="uri",q.reference&&q.reference!=="suffix"&&q.reference!==J.reference&&(J.error=J.error||"URI is not a "+q.reference+" reference.");var ke=pe[(q.scheme||J.scheme||"").toLowerCase()];if(!q.unicodeSupport&&(!ke||!ke.unicodeSupport)){if(J.host&&(q.domainHost||ke&&ke.domainHost))try{J.host=te.toASCII(J.host.replace(ee.PCT_ENCODED,Ae).toLowerCase())}catch(oe){J.error=J.error||"Host's domain name can not be converted to ASCII via punycode: "+oe}ie(J,l)}else ie(J,ee);ke&&ke.parse&&ke.parse(J,q)}else J.error=J.error||"URI can not be parsed.";return J}function je(H,q){var J=q.iri!==!1?u:l,ee=[];return H.userinfo!==void 0&&(ee.push(H.userinfo),ee.push("@")),H.host!==void 0&&ee.push(fe(ae(String(H.host),J),J).replace(J.IPV6ADDRESS,function(ne,ke,oe){return"["+ke+(oe?"%25"+oe:"")+"]"})),(typeof H.port=="number"||typeof H.port=="string")&&(ee.push(":"),ee.push(String(H.port))),ee.length?ee.join(""):void 0}var ze=/^\.\.?\//,O=/^\/\.(\/|$)/,K=/^\/\.\.(\/|$)/,he=/^\/?(?:.|\n)*?(?=\/|$)/;function Fe(H){for(var q=[];H.length;)if(H.match(ze))H=H.replace(ze,"");else if(H.match(O))H=H.replace(O,"/");else if(H.match(K))H=H.replace(K,"/"),q.pop();else if(H==="."||H==="..")H="";else{var J=H.match(he);if(J){var ee=J[0];H=H.slice(ee.length),q.push(ee)}else throw new Error("Unexpected dot segment condition")}return q.join("")}function Ue(H){var q=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},J=q.iri?u:l,ee=[],ne=pe[(q.scheme||H.scheme||"").toLowerCase()];if(ne&&ne.serialize&&ne.serialize(H,q),H.host&&!J.IPV6ADDRESS.test(H.host)){if(q.domainHost||ne&&ne.domainHost)try{H.host=q.iri?te.toUnicode(H.host):te.toASCII(H.host.replace(J.PCT_ENCODED,Ae).toLowerCase())}catch(Ze){H.error=H.error||"Host's domain name can not be converted to "+(q.iri?"Unicode":"ASCII")+" via punycode: "+Ze}}ie(H,J),q.reference!=="suffix"&&H.scheme&&(ee.push(H.scheme),ee.push(":"));var ke=je(H,q);if(ke!==void 0&&(q.reference!=="suffix"&&ee.push("//"),ee.push(ke),H.path&&H.path.charAt(0)!=="/"&&ee.push("/")),H.path!==void 0){var oe=H.path;!q.absolutePath&&(!ne||!ne.absolutePath)&&(oe=Fe(oe)),ke===void 0&&(oe=oe.replace(/^\/\//,"/%2F")),ee.push(oe)}return H.query!==void 0&&(ee.push("?"),ee.push(H.query)),H.fragment!==void 0&&(ee.push("#"),ee.push(H.fragment)),ee.join("")}function We(H,q){var J=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},ee=arguments[3],ne={};return ee||(H=Pe(Ue(H,J),J),q=Pe(Ue(q,J),J)),J=J||{},!J.tolerant&&q.scheme?(ne.scheme=q.scheme,ne.userinfo=q.userinfo,ne.host=q.host,ne.port=q.port,ne.path=Fe(q.path||""),ne.query=q.query):(q.userinfo!==void 0||q.host!==void 0||q.port!==void 0?(ne.userinfo=q.userinfo,ne.host=q.host,ne.port=q.port,ne.path=Fe(q.path||""),ne.query=q.query):(q.path?(q.path.charAt(0)==="/"?ne.path=Fe(q.path):((H.userinfo!==void 0||H.host!==void 0||H.port!==void 0)&&!H.path?ne.path="/"+q.path:H.path?ne.path=H.path.slice(0,H.path.lastIndexOf("/")+1)+q.path:ne.path=q.path,ne.path=Fe(ne.path)),ne.query=q.query):(ne.path=H.path,q.query!==void 0?ne.query=q.query:ne.query=H.query),ne.userinfo=H.userinfo,ne.host=H.host,ne.port=H.port),ne.scheme=H.scheme),ne.fragment=q.fragment,ne}function xt(H,q,J){var ee=o({scheme:"null"},J);return Ue(We(Pe(H,ee),Pe(q,ee),ee,!0),ee)}function Ct(H,q){return typeof H=="string"?H=Ue(Pe(H,q),q):s(H)==="object"&&(H=Pe(Ue(H,q),q)),H}function Pr(H,q,J){return typeof H=="string"?H=Ue(Pe(H,J),J):s(H)==="object"&&(H=Ue(H,J)),typeof q=="string"?q=Ue(Pe(q,J),J):s(q)==="object"&&(q=Ue(q,J)),H===q}function ht(H,q){return H&&H.toString().replace(!q||!q.iri?l.ESCAPE:u.ESCAPE,ve)}function it(H,q){return H&&H.toString().replace(!q||!q.iri?l.PCT_ENCODED:u.PCT_ENCODED,Ae)}var ut={scheme:"http",domainHost:!0,parse:function(q,J){return q.host||(q.error=q.error||"HTTP URIs must have a host."),q},serialize:function(q,J){var ee=String(q.scheme).toLowerCase()==="https";return(q.port===(ee?443:80)||q.port==="")&&(q.port=void 0),q.path||(q.path="/"),q}},Cs={scheme:"https",domainHost:ut.domainHost,parse:ut.parse,serialize:ut.serialize};function Nn(H){return typeof H.secure=="boolean"?H.secure:String(H.scheme).toLowerCase()==="wss"}var or={scheme:"ws",domainHost:!0,parse:function(q,J){var ee=q;return ee.secure=Nn(ee),ee.resourceName=(ee.path||"/")+(ee.query?"?"+ee.query:""),ee.path=void 0,ee.query=void 0,ee},serialize:function(q,J){if((q.port===(Nn(q)?443:80)||q.port==="")&&(q.port=void 0),typeof q.secure=="boolean"&&(q.scheme=q.secure?"wss":"ws",q.secure=void 0),q.resourceName){var ee=q.resourceName.split("?"),ne=c(ee,2),ke=ne[0],oe=ne[1];q.path=ke&&ke!=="/"?ke:void 0,q.query=oe,q.resourceName=void 0}return q.fragment=void 0,q}},Te={scheme:"wss",domainHost:or.domainHost,parse:or.parse,serialize:or.serialize},ln={},ws=!0,Rn="[A-Za-z0-9\\-\\.\\_\\~"+(ws?"\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF":"")+"]",Ot="[0-9A-Fa-f]",un=r(r("%[EFef]"+Ot+"%"+Ot+Ot+"%"+Ot+Ot)+"|"+r("%[89A-Fa-f]"+Ot+"%"+Ot+Ot)+"|"+r("%"+Ot+Ot)),jn="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",As="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",cn=e(As,'[\\"\\\\]'),Jt="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Vt=new RegExp(Rn,"g"),nt=new RegExp(un,"g"),Fr=new RegExp(e("[^]",jn,"[\\.]",'[\\"]',cn),"g"),$e=new RegExp(e("[^]",Rn,Jt),"g"),ks=$e;function zr(H){var q=Ae(H);return q.match(Vt)?q:H}var Ts={scheme:"mailto",parse:function(q,J){var ee=q,ne=ee.to=ee.path?ee.path.split(","):[];if(ee.path=void 0,ee.query){for(var ke=!1,oe={},Ze=ee.query.split("&"),De=0,ot=Ze.length;De<ot;++De){var Qe=Ze[De].split("=");switch(Qe[0]){case"to":for(var pt=Qe[1].split(","),Et=0,lt=pt.length;Et<lt;++Et)ne.push(pt[Et]);break;case"subject":ee.subject=it(Qe[1],J);break;case"body":ee.body=it(Qe[1],J);break;default:ke=!0,oe[it(Qe[0],J)]=it(Qe[1],J);break}}ke&&(ee.headers=oe)}ee.query=void 0;for(var et=0,mt=ne.length;et<mt;++et){var rt=ne[et].split("@");if(rt[0]=it(rt[0]),J.unicodeSupport)rt[1]=it(rt[1],J).toLowerCase();else try{rt[1]=te.toASCII(it(rt[1],J).toLowerCase())}catch(lr){ee.error=ee.error||"Email address's domain name can not be converted to ASCII via punycode: "+lr}ne[et]=rt.join("@")}return ee},serialize:function(q,J){var ee=q,ne=i(q.to);if(ne){for(var ke=0,oe=ne.length;ke<oe;++ke){var Ze=String(ne[ke]),De=Ze.lastIndexOf("@"),ot=Ze.slice(0,De).replace(nt,zr).replace(nt,n).replace(Fr,ve),Qe=Ze.slice(De+1);try{Qe=J.iri?te.toUnicode(Qe):te.toASCII(it(Qe,J).toLowerCase())}catch(et){ee.error=ee.error||"Email address's domain name can not be converted to "+(J.iri?"Unicode":"ASCII")+" via punycode: "+et}ne[ke]=ot+"@"+Qe}ee.path=ne.join(",")}var pt=q.headers=q.headers||{};q.subject&&(pt.subject=q.subject),q.body&&(pt.body=q.body);var Et=[];for(var lt in pt)pt[lt]!==ln[lt]&&Et.push(lt.replace(nt,zr).replace(nt,n).replace($e,ve)+"="+pt[lt].replace(nt,zr).replace(nt,n).replace(ks,ve));return Et.length&&(ee.query=Et.join("&")),ee}},pn=/^([^\:]+)\:(.*)/,_={scheme:"urn",parse:function(q,J){var ee=q.path&&q.path.match(pn),ne=q;if(ee){var ke=J.scheme||ne.scheme||"urn",oe=ee[1].toLowerCase(),Ze=ee[2],De=ke+":"+(J.nid||oe),ot=pe[De];ne.nid=oe,ne.nss=Ze,ne.path=void 0,ot&&(ne=ot.parse(ne,J))}else ne.error=ne.error||"URN can not be parsed.";return ne},serialize:function(q,J){var ee=J.scheme||q.scheme||"urn",ne=q.nid,ke=ee+":"+(J.nid||ne),oe=pe[ke];oe&&(q=oe.serialize(q,J));var Ze=q,De=q.nss;return Ze.path=(ne||J.nid)+":"+De,Ze}},fn=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,Lt={scheme:"urn:uuid",parse:function(q,J){var ee=q;return ee.uuid=ee.nss,ee.nss=void 0,!J.tolerant&&(!ee.uuid||!ee.uuid.match(fn))&&(ee.error=ee.error||"UUID is not valid."),ee},serialize:function(q,J){var ee=q;return ee.nss=(q.uuid||"").toLowerCase(),ee}};pe[ut.scheme]=ut,pe[Cs.scheme]=Cs,pe[or.scheme]=or,pe[Te.scheme]=Te,pe[Ts.scheme]=Ts,pe[_.scheme]=_,pe[Lt.scheme]=Lt,t.SCHEMES=pe,t.pctEncChar=ve,t.pctDecChars=Ae,t.parse=Pe,t.removeDotSegments=Fe,t.serialize=Ue,t.resolveComponents=We,t.resolve=xt,t.normalize=Ct,t.equal=Pr,t.escapeComponent=ht,t.unescapeComponent=it,Object.defineProperty(t,"__esModule",{value:!0})}))});var Cb=B((IZ,Sb)=>{"use strict";Sb.exports=function(e){for(var r=0,s=e.length,n=0,i;n<s;)r++,i=e.charCodeAt(n++),i>=55296&&i<=56319&&n<s&&(i=e.charCodeAt(n),(i&64512)==56320&&n++);return r}});var Xn=B((PZ,kb)=>{"use strict";kb.exports={copy:T9,checkDataType:Kp,checkDataTypes:D9,coerceToTypes:I9,toHash:Jp,getProperty:Xp,escapeQuotes:Qp,equal:xu(),ucs2length:Cb(),varOccurences:_9,varReplace:B9,schemaHasRules:O9,schemaHasRulesExcept:L9,schemaUnknownRules:N9,toQuotedString:Hp,getPathExpr:R9,getPath:j9,getData:U9,unescapeFragment:$9,unescapeJsonPointer:Zp,escapeFragment:V9,escapeJsonPointer:Yp};function T9(t,e){e=e||{};for(var r in t)e[r]=t[r];return e}function Kp(t,e,r,s){var n=s?" !== ":" === ",i=s?" || ":" && ",o=s?"!":"",a=s?"":"!";switch(t){case"null":return e+n+"null";case"array":return o+"Array.isArray("+e+")";case"object":return"("+o+e+i+"typeof "+e+n+'"object"'+i+a+"Array.isArray("+e+"))";case"integer":return"(typeof "+e+n+'"number"'+i+a+"("+e+" % 1)"+i+e+n+e+(r?i+o+"isFinite("+e+")":"")+")";case"number":return"(typeof "+e+n+'"'+t+'"'+(r?i+o+"isFinite("+e+")":"")+")";default:return"typeof "+e+n+'"'+t+'"'}}function D9(t,e,r){switch(t.length){case 1:return Kp(t[0],e,r,!0);default:var s="",n=Jp(t);n.array&&n.object&&(s=n.null?"(":"(!"+e+" || ",s+="typeof "+e+' !== "object")',delete n.null,delete n.array,delete n.object),n.number&&delete n.integer;for(var i in n)s+=(s?" && ":"")+Kp(i,e,r,!0);return s}}var wb=Jp(["string","number","integer","boolean","null"]);function I9(t,e){if(Array.isArray(e)){for(var r=[],s=0;s<e.length;s++){var n=e[s];(wb[n]||t==="array"&&n==="array")&&(r[r.length]=n)}if(r.length)return r}else{if(wb[e])return[e];if(t==="array"&&e==="array")return["array"]}}function Jp(t){for(var e={},r=0;r<t.length;r++)e[t[r]]=!0;return e}var P9=/^[a-z$_][a-z$_0-9]*$/i,F9=/'|\\/g;function Xp(t){return typeof t=="number"?"["+t+"]":P9.test(t)?"."+t:"['"+Qp(t)+"']"}function Qp(t){return t.replace(F9,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function _9(t,e){e+="[^0-9]";var r=t.match(new RegExp(e,"g"));return r?r.length:0}function B9(t,e,r){return e+="([^0-9])",r=r.replace(/\$/g,"$$$$"),t.replace(new RegExp(e,"g"),r+"$1")}function O9(t,e){if(typeof t=="boolean")return!t;for(var r in t)if(e[r])return!0}function L9(t,e,r){if(typeof t=="boolean")return!t&&r!="not";for(var s in t)if(s!=r&&e[s])return!0}function N9(t,e){if(typeof t!="boolean"){for(var r in t)if(!e[r])return r}}function Hp(t){return"'"+Qp(t)+"'"}function R9(t,e,r,s){var n=r?"'/' + "+e+(s?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):s?"'[' + "+e+" + ']'":"'[\\'' + "+e+" + '\\']'";return Ab(t,n)}function j9(t,e,r){var s=Hp(r?"/"+Yp(e):Xp(e));return Ab(t,s)}var M9=/^\/(?:[^~]|~0|~1)*$/,q9=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function U9(t,e,r){var s,n,i,o;if(t==="")return"rootData";if(t[0]=="/"){if(!M9.test(t))throw new Error("Invalid JSON-pointer: "+t);n=t,i="rootData"}else{if(o=t.match(q9),!o)throw new Error("Invalid JSON-pointer: "+t);if(s=+o[1],n=o[2],n=="#"){if(s>=e)throw new Error("Cannot access property/index "+s+" levels up, current level is "+e);return r[e-s]}if(s>e)throw new Error("Cannot access data "+s+" levels up, current level is "+e);if(i="data"+(e-s||""),!n)return i}for(var a=i,l=n.split("/"),u=0;u<l.length;u++){var c=l[u];c&&(i+=Xp(Zp(c)),a+=" && "+i)}return a}function Ab(t,e){return t=='""'?e:(t+" + "+e).replace(/([^\\])' \+ '/g,"$1")}function $9(t){return Zp(decodeURIComponent(t))}function V9(t){return encodeURIComponent(Yp(t))}function Yp(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}function Zp(t){return t.replace(/~1/g,"/").replace(/~0/g,"~")}});var ef=B((FZ,Tb)=>{"use strict";var W9=Xn();Tb.exports=z9;function z9(t){W9.copy(t,this)}});var Ib=B((_Z,Db)=>{"use strict";var Cn=Db.exports=function(t,e,r){typeof e=="function"&&(r=e,e={}),r=e.cb||r;var s=typeof r=="function"?r:r.pre||function(){},n=r.post||function(){};$o(e,s,n,t,"",t)};Cn.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0};Cn.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0};Cn.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0};Cn.skipKeywords={default:!0,enum:!0,const:!0,required:!0,maximum:!0,minimum:!0,exclusiveMaximum:!0,exclusiveMinimum:!0,multipleOf:!0,maxLength:!0,minLength:!0,pattern:!0,format:!0,maxItems:!0,minItems:!0,uniqueItems:!0,maxProperties:!0,minProperties:!0};function $o(t,e,r,s,n,i,o,a,l,u){if(s&&typeof s=="object"&&!Array.isArray(s)){e(s,n,i,o,a,l,u);for(var c in s){var p=s[c];if(Array.isArray(p)){if(c in Cn.arrayKeywords)for(var h=0;h<p.length;h++)$o(t,e,r,p[h],n+"/"+c+"/"+h,i,n,c,s,h)}else if(c in Cn.propsKeywords){if(p&&typeof p=="object")for(var f in p)$o(t,e,r,p[f],n+"/"+c+"/"+G9(f),i,n,c,s,f)}else(c in Cn.keywords||t.allKeys&&!(c in Cn.skipKeywords))&&$o(t,e,r,p,n+"/"+c,i,n,c,s)}r(s,n,i,o,a,l,u)}}function G9(t){return t.replace(/~/g,"~0").replace(/\//g,"~1")}});var Ho=B((BZ,Bb)=>{"use strict";var Qi=vb(),Pb=xu(),Go=Xn(),Vo=ef(),K9=Ib();Bb.exports=An;An.normalizeId=wn;An.fullPath=Wo;An.url=zo;An.ids=Y9;An.inlineRef=tf;An.schema=Ko;function An(t,e,r){var s=this._refs[r];if(typeof s=="string")if(this._refs[s])s=this._refs[s];else return An.call(this,t,e,s);if(s=s||this._schemas[r],s instanceof Vo)return tf(s.schema,this._opts.inlineRefs)?s.schema:s.validate||this._compile(s);var n=Ko.call(this,e,r),i,o,a;return n&&(i=n.schema,e=n.root,a=n.baseId),i instanceof Vo?o=i.validate||t.call(this,i.schema,e,void 0,a):i!==void 0&&(o=tf(i,this._opts.inlineRefs)?i:t.call(this,i,e,void 0,a)),o}function Ko(t,e){var r=Qi.parse(e),s=_b(r),n=Wo(this._getId(t.schema));if(Object.keys(t.schema).length===0||s!==n){var i=wn(s),o=this._refs[i];if(typeof o=="string")return H9.call(this,t,o,r);if(o instanceof Vo)o.validate||this._compile(o),t=o;else if(o=this._schemas[i],o instanceof Vo){if(o.validate||this._compile(o),i==wn(e))return{schema:o,root:t,baseId:n};t=o}else return;if(!t.schema)return;n=Wo(this._getId(t.schema))}return Fb.call(this,r,n,t.schema,t)}function H9(t,e,r){var s=Ko.call(this,t,e);if(s){var n=s.schema,i=s.baseId;t=s.root;var o=this._getId(n);return o&&(i=zo(i,o)),Fb.call(this,r,i,n,t)}}var J9=Go.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function Fb(t,e,r,s){if(t.fragment=t.fragment||"",t.fragment.slice(0,1)=="/"){for(var n=t.fragment.split("/"),i=1;i<n.length;i++){var o=n[i];if(o){if(o=Go.unescapeFragment(o),r=r[o],r===void 0)break;var a;if(!J9[o]&&(a=this._getId(r),a&&(e=zo(e,a)),r.$ref)){var l=zo(e,r.$ref),u=Ko.call(this,s,l);u&&(r=u.schema,s=u.root,e=u.baseId)}}}if(r!==void 0&&r!==s.schema)return{schema:r,root:s,baseId:e}}}var X9=Go.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function tf(t,e){if(e===!1)return!1;if(e===void 0||e===!0)return rf(t);if(e)return nf(t)<=e}function rf(t){var e;if(Array.isArray(t)){for(var r=0;r<t.length;r++)if(e=t[r],typeof e=="object"&&!rf(e))return!1}else for(var s in t)if(s=="$ref"||(e=t[s],typeof e=="object"&&!rf(e)))return!1;return!0}function nf(t){var e=0,r;if(Array.isArray(t)){for(var s=0;s<t.length;s++)if(r=t[s],typeof r=="object"&&(e+=nf(r)),e==1/0)return 1/0}else for(var n in t){if(n=="$ref")return 1/0;if(X9[n])e++;else if(r=t[n],typeof r=="object"&&(e+=nf(r)+1),e==1/0)return 1/0}return e}function Wo(t,e){e!==!1&&(t=wn(t));var r=Qi.parse(t);return _b(r)}function _b(t){return Qi.serialize(t).split("#")[0]+"#"}var Q9=/#\/?$/;function wn(t){return t?t.replace(Q9,""):""}function zo(t,e){return e=wn(e),Qi.resolve(t,e)}function Y9(t){var e=wn(this._getId(t)),r={"":e},s={"":Wo(e,!1)},n={},i=this;return K9(t,{allKeys:!0},function(o,a,l,u,c,p,h){if(a!==""){var f=i._getId(o),d=r[u],g=s[u]+"/"+c;if(h!==void 0&&(g+="/"+(typeof h=="number"?h:Go.escapeFragment(h))),typeof f=="string"){f=d=wn(d?Qi.resolve(d,f):f);var y=i._refs[f];if(typeof y=="string"&&(y=i._refs[y]),y&&y.schema){if(!Pb(o,y.schema))throw new Error('id "'+f+'" resolves to more than one schema')}else if(f!=wn(g))if(f[0]=="#"){if(n[f]&&!Pb(o,n[f]))throw new Error('id "'+f+'" resolves to more than one schema');n[f]=o}else i._refs[f]=g}r[a]=d,s[a]=g}}),n}});var Jo=B((OZ,Lb)=>{"use strict";var sf=Ho();Lb.exports={Validation:Ob(Z9),MissingRef:Ob(af)};function Z9(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}af.message=function(t,e){return"can't resolve reference "+e+" from id "+t};function af(t,e,r){this.message=r||af.message(t,e),this.missingRef=sf.url(t,e),this.missingSchema=sf.normalizeId(sf.fullPath(this.missingRef))}function Ob(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}});var of=B((LZ,Nb)=>{"use strict";Nb.exports=function(t,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var r=typeof e.cycles=="boolean"?e.cycles:!1,s=e.cmp&&(function(i){return function(o){return function(a,l){var u={key:a,value:o[a]},c={key:l,value:o[l]};return i(u,c)}}})(e.cmp),n=[];return(function i(o){if(o&&o.toJSON&&typeof o.toJSON=="function"&&(o=o.toJSON()),o!==void 0){if(typeof o=="number")return isFinite(o)?""+o:"null";if(typeof o!="object")return JSON.stringify(o);var a,l;if(Array.isArray(o)){for(l="[",a=0;a<o.length;a++)a&&(l+=","),l+=i(o[a])||"null";return l+"]"}if(o===null)return"null";if(n.indexOf(o)!==-1){if(r)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var u=n.push(o)-1,c=Object.keys(o).sort(s&&s(o));for(l="",a=0;a<c.length;a++){var p=c[a],h=i(o[p]);h&&(l&&(l+=","),l+=JSON.stringify(p)+":"+h)}return n.splice(u,1),"{"+l+"}"}})(t)}});var lf=B((NZ,Rb)=>{"use strict";Rb.exports=function(e,r,s){var n="",i=e.schema.$async===!0,o=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),a=e.self._getId(e.schema);if(e.opts.strictKeywords){var l=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(l){var u="unknown keyword: "+l;if(e.opts.strictKeywords==="log")e.logger.warn(u);else throw new Error(u)}}if(e.isTop&&(n+=" var validate = ",i&&(e.async=!0,n+="async "),n+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",a&&(e.opts.sourceCode||e.opts.processCode)&&(n+=" "+("/*# sourceURL="+a+" */")+" ")),typeof e.schema=="boolean"||!(o||e.schema.$ref)){var r="false schema",c=e.level,p=e.dataLevel,h=e.schema[r],f=e.schemaPath+e.util.getProperty(r),d=e.errSchemaPath+"/"+r,k=!e.opts.allErrors,R,g="data"+(p||""),E="valid"+c;if(e.schema===!1){e.isTop?k=!0:n+=" var "+E+" = false; ";var y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(R||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'boolean schema is false' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),n+=" } "):n+=" {} ";var v=n;n=y.pop(),!e.compositeRule&&k?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?i?n+=" return data; ":n+=" validate.errors = null; return true; ":n+=" var "+E+" = true; ";return e.isTop&&(n+=" }; return validate; "),n}if(e.isTop){var S=e.isTop,c=e.level=0,p=e.dataLevel=0,g="data";if(e.rootId=e.resolve.fullPath(e.self._getId(e.root.schema)),e.baseId=e.baseId||e.rootId,delete e.isTop,e.dataPathArr=[""],e.schema.default!==void 0&&e.opts.useDefaults&&e.opts.strictDefaults){var A="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(A);else throw new Error(A)}n+=" var vErrors = null; ",n+=" var errors = 0; ",n+=" if (rootData === undefined) rootData = data; "}else{var c=e.level,p=e.dataLevel,g="data"+(p||"");if(a&&(e.baseId=e.resolve.url(e.baseId,a)),i&&!e.async)throw new Error("async schema in sync schema");n+=" var errs_"+c+" = errors;"}var E="valid"+c,k=!e.opts.allErrors,T="",w="",R,j=e.schema.type,$=Array.isArray(j);if(j&&e.opts.nullable&&e.schema.nullable===!0&&($?j.indexOf("null")==-1&&(j=j.concat("null")):j!="null"&&(j=[j,"null"],$=!0)),$&&j.length==1&&(j=j[0],$=!1),e.schema.$ref&&o){if(e.opts.extendRefs=="fail")throw new Error('$ref: validation keywords used in schema at path "'+e.errSchemaPath+'" (see option extendRefs)');e.opts.extendRefs!==!0&&(o=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(n+=" "+e.RULES.all.$comment.code(e,"$comment")),j){if(e.opts.coerceTypes)var M=e.util.coerceToTypes(e.opts.coerceTypes,j);var N=e.RULES.types[j];if(M||$||N===!0||N&&!he(N)){var f=e.schemaPath+".type",d=e.errSchemaPath+"/type",f=e.schemaPath+".type",d=e.errSchemaPath+"/type",b=$?"checkDataTypes":"checkDataType";if(n+=" if ("+e.util[b](j,g,e.opts.strictNumbers,!0)+") { ",M){var C="dataType"+c,P="coerced"+c;n+=" var "+C+" = typeof "+g+"; var "+P+" = undefined; ",e.opts.coerceTypes=="array"&&(n+=" if ("+C+" == 'object' && Array.isArray("+g+") && "+g+".length == 1) { "+g+" = "+g+"[0]; "+C+" = typeof "+g+"; if ("+e.util.checkDataType(e.schema.type,g,e.opts.strictNumbers)+") "+P+" = "+g+"; } "),n+=" if ("+P+" !== undefined) ; ";var F=M;if(F)for(var I,U=-1,z=F.length-1;U<z;)I=F[U+=1],I=="string"?n+=" else if ("+C+" == 'number' || "+C+" == 'boolean') "+P+" = '' + "+g+"; else if ("+g+" === null) "+P+" = ''; ":I=="number"||I=="integer"?(n+=" else if ("+C+" == 'boolean' || "+g+" === null || ("+C+" == 'string' && "+g+" && "+g+" == +"+g+" ",I=="integer"&&(n+=" && !("+g+" % 1)"),n+=")) "+P+" = +"+g+"; "):I=="boolean"?n+=" else if ("+g+" === 'false' || "+g+" === 0 || "+g+" === null) "+P+" = false; else if ("+g+" === 'true' || "+g+" === 1) "+P+" = true; ":I=="null"?n+=" else if ("+g+" === '' || "+g+" === 0 || "+g+" === false) "+P+" = null; ":e.opts.coerceTypes=="array"&&I=="array"&&(n+=" else if ("+C+" == 'string' || "+C+" == 'number' || "+C+" == 'boolean' || "+g+" == null) "+P+" = ["+g+"]; ");n+=" else { ";var y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(R||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",$?n+=""+j.join(","):n+=""+j,n+="' } ",e.opts.messages!==!1&&(n+=" , message: 'should be ",$?n+=""+j.join(","):n+=""+j,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),n+=" } "):n+=" {} ";var v=n;n=y.pop(),!e.compositeRule&&k?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } if ("+P+" !== undefined) { ";var W=p?"data"+(p-1||""):"parentData",re=p?e.dataPathArr[p]:"parentDataProperty";n+=" "+g+" = "+P+"; ",p||(n+="if ("+W+" !== undefined)"),n+=" "+W+"["+re+"] = "+P+"; } "}else{var y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(R||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",$?n+=""+j.join(","):n+=""+j,n+="' } ",e.opts.messages!==!1&&(n+=" , message: 'should be ",$?n+=""+j.join(","):n+=""+j,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),n+=" } "):n+=" {} ";var v=n;n=y.pop(),!e.compositeRule&&k?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}n+=" } "}}if(e.schema.$ref&&!o)n+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",k&&(n+=" } if (errors === ",S?n+="0":n+="errs_"+c,n+=") { ",w+="}");else{var ue=e.RULES;if(ue){for(var N,be=-1,te=ue.length-1;be<te;)if(N=ue[be+=1],he(N)){if(N.type&&(n+=" if ("+e.util.checkDataType(N.type,g,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(N.type=="object"&&e.schema.properties){var h=e.schema.properties,pe=Object.keys(h),ve=pe;if(ve)for(var Ae,ie=-1,xe=ve.length-1;ie<xe;){Ae=ve[ie+=1];var ae=h[Ae];if(ae.default!==void 0){var fe=g+e.util.getProperty(Ae);if(e.compositeRule){if(e.opts.strictDefaults){var A="default is ignored for: "+fe;if(e.opts.strictDefaults==="log")e.logger.warn(A);else throw new Error(A)}}else n+=" if ("+fe+" === undefined ",e.opts.useDefaults=="empty"&&(n+=" || "+fe+" === null || "+fe+" === '' "),n+=" ) "+fe+" = ",e.opts.useDefaults=="shared"?n+=" "+e.useDefault(ae.default)+" ":n+=" "+JSON.stringify(ae.default)+" ",n+="; "}}}else if(N.type=="array"&&Array.isArray(e.schema.items)){var Be=e.schema.items;if(Be){for(var ae,U=-1,Re=Be.length-1;U<Re;)if(ae=Be[U+=1],ae.default!==void 0){var fe=g+"["+U+"]";if(e.compositeRule){if(e.opts.strictDefaults){var A="default is ignored for: "+fe;if(e.opts.strictDefaults==="log")e.logger.warn(A);else throw new Error(A)}}else n+=" if ("+fe+" === undefined ",e.opts.useDefaults=="empty"&&(n+=" || "+fe+" === null || "+fe+" === '' "),n+=" ) "+fe+" = ",e.opts.useDefaults=="shared"?n+=" "+e.useDefault(ae.default)+" ":n+=" "+JSON.stringify(ae.default)+" ",n+="; "}}}}var Pe=N.rules;if(Pe){for(var je,ze=-1,O=Pe.length-1;ze<O;)if(je=Pe[ze+=1],Fe(je)){var K=je.code(e,je.keyword,N.type);K&&(n+=" "+K+" ",k&&(T+="}"))}}if(k&&(n+=" "+T+" ",T=""),N.type&&(n+=" } ",j&&j===N.type&&!M)){n+=" else { ";var f=e.schemaPath+".type",d=e.errSchemaPath+"/type",y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(R||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(d)+" , params: { type: '",$?n+=""+j.join(","):n+=""+j,n+="' } ",e.opts.messages!==!1&&(n+=" , message: 'should be ",$?n+=""+j.join(","):n+=""+j,n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+f+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+g+" "),n+=" } "):n+=" {} ";var v=n;n=y.pop(),!e.compositeRule&&k?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } "}k&&(n+=" if (errors === ",S?n+="0":n+="errs_"+c,n+=") { ",w+="}")}}}k&&(n+=" "+w+" "),S?(i?(n+=" if (errors === 0) return data; ",n+=" else throw new ValidationError(vErrors); "):(n+=" validate.errors = vErrors; ",n+=" return errors === 0; "),n+=" }; return validate;"):n+=" var "+E+" = errors === errs_"+c+";";function he(We){for(var xt=We.rules,Ct=0;Ct<xt.length;Ct++)if(Fe(xt[Ct]))return!0}function Fe(We){return e.schema[We.keyword]!==void 0||We.implements&&Ue(We)}function Ue(We){for(var xt=We.implements,Ct=0;Ct<xt.length;Ct++)if(e.schema[xt[Ct]]!==void 0)return!0}return n}});var $b=B((RZ,Ub)=>{"use strict";var Xo=Ho(),Yo=Xn(),Mb=Jo(),e8=of(),jb=lf(),t8=Yo.ucs2length,r8=xu(),n8=Mb.Validation;Ub.exports=uf;function uf(t,e,r,s){var n=this,i=this._opts,o=[void 0],a={},l=[],u={},c=[],p={},h=[];function f(C,P){var F=i.regExp?"regExp":"new RegExp";return"var pattern"+C+" = "+F+"("+Yo.toQuotedString(P[C])+");"}e=e||{schema:t,refVal:o,refs:a};var d=s8.call(this,t,e,s),g=this._compilations[d.index];if(d.compiling)return g.callValidate=E;var y=this._formats,v=this.RULES;try{var S=k(t,e,r,s);g.validate=S;var A=g.callValidate;return A&&(A.schema=S.schema,A.errors=null,A.refs=S.refs,A.refVal=S.refVal,A.root=S.root,A.$async=S.$async,i.sourceCode&&(A.source=S.source)),S}finally{i8.call(this,t,e,s)}function E(){var C=g.validate,P=C.apply(this,arguments);return E.errors=C.errors,P}function k(C,P,F,I){var U=!P||P&&P.schema==C;if(P.schema!=e.schema)return uf.call(n,C,P,F,I);var z=C.$async===!0,W=jb({isTop:!0,schema:C,isRoot:U,baseId:I,root:P,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:Mb.MissingRef,RULES:v,validate:jb,util:Yo,resolve:Xo,resolveRef:T,usePattern:M,useDefault:N,useCustomRule:b,opts:i,formats:y,logger:n.logger,self:n});W=Qo(o,o8)+Qo(l,f)+Qo(c,a8)+Qo(h,l8)+W,i.processCode&&(W=i.processCode(W,C));var re;try{var ue=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError","regExp",W);re=ue(n,v,y,e,o,c,h,r8,t8,n8,i.regExp),o[0]=re}catch(be){throw n.logger.error("Error compiling schema, function code:",W),be}return re.schema=C,re.errors=null,re.refs=a,re.refVal=o,re.root=U?re:P,z&&(re.$async=!0),i.sourceCode===!0&&(re.source={code:W,patterns:l,defaults:c}),re}function T(C,P,F){P=Xo.url(C,P);var I=a[P],U,z;if(I!==void 0)return U=o[I],z="refVal["+I+"]",$(U,z);if(!F&&e.refs){var W=e.refs[P];if(W!==void 0)return U=e.refVal[W],z=w(P,U),$(U,z)}z=w(P);var re=Xo.call(n,k,e,P);if(re===void 0){var ue=r&&r[P];ue&&(re=Xo.inlineRef(ue,i.inlineRefs)?ue:uf.call(n,ue,e,r,C))}if(re===void 0)R(P);else return j(P,re),$(re,z)}function w(C,P){var F=o.length;return o[F]=P,a[C]=F,"refVal"+F}function R(C){delete a[C]}function j(C,P){var F=a[C];o[F]=P}function $(C,P){return typeof C=="object"||typeof C=="boolean"?{code:P,schema:C,inline:!0}:{code:P,$async:C&&!!C.$async}}function M(C){var P=u[C];return P===void 0&&(P=u[C]=l.length,l[P]=C),"pattern"+P}function N(C){switch(typeof C){case"boolean":case"number":return""+C;case"string":return Yo.toQuotedString(C);case"object":if(C===null)return"null";var P=e8(C),F=p[P];return F===void 0&&(F=p[P]=c.length,c[F]=C),"default"+F}}function b(C,P,F,I){if(n._opts.validateSchema!==!1){var U=C.definition.dependencies;if(U&&!U.every(function(Ae){return Object.prototype.hasOwnProperty.call(F,Ae)}))throw new Error("parent schema must have all required keywords: "+U.join(","));var z=C.definition.validateSchema;if(z){var W=z(P);if(!W){var re="keyword schema is invalid: "+n.errorsText(z.errors);if(n._opts.validateSchema=="log")n.logger.error(re);else throw new Error(re)}}}var ue=C.definition.compile,be=C.definition.inline,te=C.definition.macro,pe;if(ue)pe=ue.call(n,P,F,I);else if(te)pe=te.call(n,P,F,I),i.validateSchema!==!1&&n.validateSchema(pe,!0);else if(be)pe=be.call(n,I,C.keyword,P,F);else if(pe=C.definition.validate,!pe)return;if(pe===void 0)throw new Error('custom keyword "'+C.keyword+'"failed to compile');var ve=h.length;return h[ve]=pe,{code:"customRule"+ve,validate:pe}}}function s8(t,e,r){var s=qb.call(this,t,e,r);return s>=0?{index:s,compiling:!0}:(s=this._compilations.length,this._compilations[s]={schema:t,root:e,baseId:r},{index:s,compiling:!1})}function i8(t,e,r){var s=qb.call(this,t,e,r);s>=0&&this._compilations.splice(s,1)}function qb(t,e,r){for(var s=0;s<this._compilations.length;s++){var n=this._compilations[s];if(n.schema==t&&n.root==e&&n.baseId==r)return s}return-1}function a8(t){return"var default"+t+" = defaults["+t+"];"}function o8(t,e){return e[t]===void 0?"":"var refVal"+t+" = refVal["+t+"];"}function l8(t){return"var customRule"+t+" = customRules["+t+"];"}function Qo(t,e){if(!t.length)return"";for(var r="",s=0;s<t.length;s++)r+=e(s,t);return r}});var Wb=B((jZ,Vb)=>{"use strict";var Zo=Vb.exports=function(){this._cache={}};Zo.prototype.put=function(e,r){this._cache[e]=r};Zo.prototype.get=function(e){return this._cache[e]};Zo.prototype.del=function(e){delete this._cache[e]};Zo.prototype.clear=function(){this._cache={}}});var rv=B((MZ,tv)=>{"use strict";var u8=Xn(),c8=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,p8=[0,31,28,31,30,31,30,31,31,30,31,30,31],f8=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,zb=/^(?=.{1,253}\.?$)[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[-0-9a-z]{0,61}[0-9a-z])?)*\.?$/i,h8=/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'()*+,;=:@]|%[0-9a-f]{2})*)*)(?:\?(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,m8=/^(?:[a-z][a-z0-9+\-.]*:)?(?:\/?\/(?:(?:[a-z0-9\-._~!$&'()*+,;=:]|%[0-9a-f]{2})*@)?(?:\[(?:(?:(?:(?:[0-9a-f]{1,4}:){6}|::(?:[0-9a-f]{1,4}:){5}|(?:[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){4}|(?:(?:[0-9a-f]{1,4}:){0,1}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){3}|(?:(?:[0-9a-f]{1,4}:){0,2}[0-9a-f]{1,4})?::(?:[0-9a-f]{1,4}:){2}|(?:(?:[0-9a-f]{1,4}:){0,3}[0-9a-f]{1,4})?::[0-9a-f]{1,4}:|(?:(?:[0-9a-f]{1,4}:){0,4}[0-9a-f]{1,4})?::)(?:[0-9a-f]{1,4}:[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?))|(?:(?:[0-9a-f]{1,4}:){0,5}[0-9a-f]{1,4})?::[0-9a-f]{1,4}|(?:(?:[0-9a-f]{1,4}:){0,6}[0-9a-f]{1,4})?::)|[Vv][0-9a-f]+\.[a-z0-9\-._~!$&'()*+,;=:]+)\]|(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)|(?:[a-z0-9\-._~!$&'"()*+,;=]|%[0-9a-f]{2})*)(?::\d*)?(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*|\/(?:(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?|(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})+(?:\/(?:[a-z0-9\-._~!$&'"()*+,;=:@]|%[0-9a-f]{2})*)*)?(?:\?(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?(?:#(?:[a-z0-9\-._~!$&'"()*+,;=:@/?]|%[0-9a-f]{2})*)?$/i,Gb=/^(?:(?:[^\x00-\x20"'<>%\\^`{|}]|%[0-9a-f]{2})|\{[+#./;?&=,!@|]?(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?(?:,(?:[a-z0-9_]|%[0-9a-f]{2})+(?::[1-9][0-9]{0,3}|\*)?)*\})*$/i,Kb=/^(?:(?:http[s\u017F]?|ftp):\/\/)(?:(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+(?::(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?@)?(?:(?!10(?:\.[0-9]{1,3}){3})(?!127(?:\.[0-9]{1,3}){3})(?!169\.254(?:\.[0-9]{1,3}){2})(?!192\.168(?:\.[0-9]{1,3}){2})(?!172\.(?:1[6-9]|2[0-9]|3[01])(?:\.[0-9]{1,3}){2})(?:[1-9][0-9]?|1[0-9][0-9]|2[01][0-9]|22[0-3])(?:\.(?:1?[0-9]{1,2}|2[0-4][0-9]|25[0-5])){2}(?:\.(?:[1-9][0-9]?|1[0-9][0-9]|2[0-4][0-9]|25[0-4]))|(?:(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)(?:\.(?:(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+-)*(?:[0-9a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])+)*(?:\.(?:(?:[a-z\xA1-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF]){2,})))(?::[0-9]{2,5})?(?:\/(?:[\0-\x08\x0E-\x1F!-\x9F\xA1-\u167F\u1681-\u1FFF\u200B-\u2027\u202A-\u202E\u2030-\u205E\u2060-\u2FFF\u3001-\uD7FF\uE000-\uFEFE\uFF00-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])*)?$/i,Hb=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,Jb=/^(?:\/(?:[^~/]|~0|~1)*)*$/,Xb=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,Qb=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;tv.exports=el;function el(t){return t=t=="full"?"full":"fast",u8.copy(el[t],Object.create(null))}el.fast={date:/^\d\d\d\d-[0-1]\d-[0-3]\d$/,time:/^(?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)?$/i,"date-time":/^\d\d\d\d-[0-1]\d-[0-3]\d[t\s](?:[0-2]\d:[0-5]\d:[0-5]\d|23:59:60)(?:\.\d+)?(?:z|[+-]\d\d(?::?\d\d)?)$/i,uri:/^(?:[a-z][a-z0-9+\-.]*:)(?:\/?\/)?[^\s]*$/i,"uri-reference":/^(?:(?:[a-z][a-z0-9+\-.]*:)?\/?\/)?(?:[^\\\s#][^\s#]*)?(?:#[^\\\s]*)?$/i,"uri-template":Gb,url:Kb,email:/^[a-z0-9.!#$%&'*+/=?^_`{|}~-]+@[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?(?:\.[a-z0-9](?:[a-z0-9-]{0,61}[a-z0-9])?)*$/i,hostname:zb,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ev,uuid:Hb,"json-pointer":Jb,"json-pointer-uri-fragment":Xb,"relative-json-pointer":Qb};el.full={date:Yb,time:Zb,"date-time":y8,uri:E8,"uri-reference":m8,"uri-template":Gb,url:Kb,email:/^[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?$/i,hostname:zb,ipv4:/^(?:(?:25[0-5]|2[0-4]\d|[01]?\d\d?)\.){3}(?:25[0-5]|2[0-4]\d|[01]?\d\d?)$/,ipv6:/^\s*(?:(?:(?:[0-9a-f]{1,4}:){7}(?:[0-9a-f]{1,4}|:))|(?:(?:[0-9a-f]{1,4}:){6}(?::[0-9a-f]{1,4}|(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){5}(?:(?:(?::[0-9a-f]{1,4}){1,2})|:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3})|:))|(?:(?:[0-9a-f]{1,4}:){4}(?:(?:(?::[0-9a-f]{1,4}){1,3})|(?:(?::[0-9a-f]{1,4})?:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){3}(?:(?:(?::[0-9a-f]{1,4}){1,4})|(?:(?::[0-9a-f]{1,4}){0,2}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){2}(?:(?:(?::[0-9a-f]{1,4}){1,5})|(?:(?::[0-9a-f]{1,4}){0,3}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?:(?:[0-9a-f]{1,4}:){1}(?:(?:(?::[0-9a-f]{1,4}){1,6})|(?:(?::[0-9a-f]{1,4}){0,4}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:))|(?::(?:(?:(?::[0-9a-f]{1,4}){1,7})|(?:(?::[0-9a-f]{1,4}){0,5}:(?:(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)(?:\.(?:25[0-5]|2[0-4]\d|1\d\d|[1-9]?\d)){3}))|:)))(?:%.+)?\s*$/i,regex:ev,uuid:Hb,"json-pointer":Jb,"json-pointer-uri-fragment":Xb,"relative-json-pointer":Qb};function d8(t){return t%4===0&&(t%100!==0||t%400===0)}function Yb(t){var e=t.match(c8);if(!e)return!1;var r=+e[1],s=+e[2],n=+e[3];return s>=1&&s<=12&&n>=1&&n<=(s==2&&d8(r)?29:p8[s])}function Zb(t,e){var r=t.match(f8);if(!r)return!1;var s=r[1],n=r[2],i=r[3],o=r[5];return(s<=23&&n<=59&&i<=59||s==23&&n==59&&i==60)&&(!e||o)}var g8=/t|\s/i;function y8(t){var e=t.split(g8);return e.length==2&&Yb(e[0])&&Zb(e[1],!0)}var x8=/\/|:/;function E8(t){return x8.test(t)&&h8.test(t)}var b8=/[^\\]\\Z/;function ev(t){if(b8.test(t))return!1;try{return new RegExp(t),!0}catch{return!1}}});var sv=B((qZ,nv)=>{"use strict";nv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.errSchemaPath+"/"+r,u=!e.opts.allErrors,c="data"+(o||""),p="valid"+i,h,f;if(a=="#"||a=="#/")e.isRoot?(h=e.async,f="validate"):(h=e.root.schema.$async===!0,f="root.refVal[0]");else{var d=e.resolveRef(e.baseId,a,e.isRoot);if(d===void 0){var g=e.MissingRefError.message(e.baseId,a);if(e.opts.missingRefs=="fail"){e.logger.error(g);var y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(l)+" , params: { ref: '"+e.util.escapeQuotes(a)+"' } ",e.opts.messages!==!1&&(n+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(a)+"' "),e.opts.verbose&&(n+=" , schema: "+e.util.toQuotedString(a)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),n+=" } "):n+=" {} ";var v=n;n=y.pop(),!e.compositeRule&&u?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u&&(n+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(g),u&&(n+=" if (true) { ");else throw new e.MissingRefError(e.baseId,a,g)}else if(d.inline){var S=e.util.copy(e);S.level++;var A="valid"+S.level;S.schema=d.schema,S.schemaPath="",S.errSchemaPath=a;var E=e.validate(S).replace(/validate\.schema/g,d.code);n+=" "+E+" ",u&&(n+=" if ("+A+") { ")}else h=d.$async===!0||e.async&&d.$async!==!1,f=d.code}if(f){var y=y||[];y.push(n),n="",e.opts.passContext?n+=" "+f+".call(this, ":n+=" "+f+"( ",n+=" "+c+", (dataPath || '')",e.errorPath!='""'&&(n+=" + "+e.errorPath);var k=o?"data"+(o-1||""):"parentData",T=o?e.dataPathArr[o]:"parentDataProperty";n+=" , "+k+" , "+T+", rootData) ";var w=n;if(n=y.pop(),h){if(!e.async)throw new Error("async schema referenced by sync schema");u&&(n+=" var "+p+"; "),n+=" try { await "+w+"; ",u&&(n+=" "+p+" = true; "),n+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",u&&(n+=" "+p+" = false; "),n+=" } ",u&&(n+=" if ("+p+") { ")}else n+=" if (!"+w+") { if (vErrors === null) vErrors = "+f+".errors; else vErrors = vErrors.concat("+f+".errors); errors = vErrors.length; } ",u&&(n+=" else { ")}return n}});var av=B((UZ,iv)=>{"use strict";iv.exports=function(e,r,s){var n=" ",i=e.schema[r],o=e.schemaPath+e.util.getProperty(r),a=e.errSchemaPath+"/"+r,l=!e.opts.allErrors,u=e.util.copy(e),c="";u.level++;var p="valid"+u.level,h=u.baseId,f=!0,d=i;if(d)for(var g,y=-1,v=d.length-1;y<v;)g=d[y+=1],(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all))&&(f=!1,u.schema=g,u.schemaPath=o+"["+y+"]",u.errSchemaPath=a+"/"+y,n+=" "+e.validate(u)+" ",u.baseId=h,l&&(n+=" if ("+p+") { ",c+="}"));return l&&(f?n+=" if (true) { ":n+=" "+c.slice(0,-1)+" "),n}});var lv=B(($Z,ov)=>{"use strict";ov.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),g="";d.level++;var y="valid"+d.level,v=a.every(function(R){return e.opts.strictKeywords?typeof R=="object"&&Object.keys(R).length>0||R===!1:e.util.schemaHasRules(R,e.RULES.all)});if(v){var S=d.baseId;n+=" var "+f+" = errors; var "+h+" = false; ";var A=e.compositeRule;e.compositeRule=d.compositeRule=!0;var E=a;if(E)for(var k,T=-1,w=E.length-1;T<w;)k=E[T+=1],d.schema=k,d.schemaPath=l+"["+T+"]",d.errSchemaPath=u+"/"+T,n+=" "+e.validate(d)+" ",d.baseId=S,n+=" "+h+" = "+h+" || "+y+"; if (!"+h+") { ",g+="}";e.compositeRule=d.compositeRule=A,n+=" "+g+" if (!"+h+") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else c&&(n+=" if (true) { ");return n}});var cv=B((VZ,uv)=>{"use strict";uv.exports=function(e,r,s){var n=" ",i=e.schema[r],o=e.errSchemaPath+"/"+r,a=!e.opts.allErrors,l=e.util.toQuotedString(i);return e.opts.$comment===!0?n+=" console.log("+l+");":typeof e.opts.$comment=="function"&&(n+=" self._opts.$comment("+l+", "+e.util.toQuotedString(o)+", validate.root.schema);"),n}});var fv=B((WZ,pv)=>{"use strict";pv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="valid"+i,f=e.opts.$data&&a&&a.$data,d;f?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",d="schema"+i):d=a,f||(n+=" var schema"+i+" = validate.schema"+l+";"),n+="var "+h+" = equal("+p+", schema"+i+"); if (!"+h+") { ";var g=g||[];g.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValue: schema"+i+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be equal to constant' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var y=n;return n=g.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+y+"]); ":n+=" validate.errors = ["+y+"]; return false; ":n+=" var err = "+y+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}});var mv=B((zZ,hv)=>{"use strict";hv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),g="";d.level++;var y="valid"+d.level,v="i"+i,S=d.dataLevel=e.dataLevel+1,A="data"+S,E=e.baseId,k=e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all);if(n+="var "+f+" = errors;var "+h+";",k){var T=e.compositeRule;e.compositeRule=d.compositeRule=!0,d.schema=a,d.schemaPath=l,d.errSchemaPath=u,n+=" var "+y+" = false; for (var "+v+" = 0; "+v+" < "+p+".length; "+v+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var w=p+"["+v+"]";d.dataPathArr[S]=v;var R=e.validate(d);d.baseId=E,e.util.varOccurences(R,A)<2?n+=" "+e.util.varReplace(R,A,w)+" ":n+=" var "+A+" = "+w+"; "+R+" ",n+=" if ("+y+") break; } ",e.compositeRule=d.compositeRule=T,n+=" "+g+" if (!"+y+") {"}else n+=" if ("+p+".length == 0) {";var j=j||[];j.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should contain a valid item' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var $=n;return n=j.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+$+"]); ":n+=" validate.errors = ["+$+"]; return false; ":n+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { ",k&&(n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } "),e.opts.allErrors&&(n+=" } "),n}});var gv=B((GZ,dv)=>{"use strict";dv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var g="valid"+f.level,y={},v={},S=e.opts.ownProperties;for(T in a)if(T!="__proto__"){var A=a[T],E=Array.isArray(A)?v:y;E[T]=A}n+="var "+h+" = errors;";var k=e.errorPath;n+="var missing"+i+";";for(var T in v)if(E=v[T],E.length){if(n+=" if ( "+p+e.util.getProperty(T)+" !== undefined ",S&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(T)+"') "),c){n+=" && ( ";var w=E;if(w)for(var R,j=-1,$=w.length-1;j<$;){R=w[j+=1],j&&(n+=" || ");var M=e.util.getProperty(R),N=p+M;n+=" ( ( "+N+" === undefined ",S&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(R)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?R:M)+") ) "}n+=")) { ";var b="missing"+i,C="' + "+b+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(k,b,!0):k+" + "+b);var P=P||[];P.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(T)+"', missingProperty: '"+C+"', depsCount: "+E.length+", deps: '"+e.util.escapeQuotes(E.length==1?E[0]:E.join(", "))+"' } ",e.opts.messages!==!1&&(n+=" , message: 'should have ",E.length==1?n+="property "+e.util.escapeQuotes(E[0]):n+="properties "+e.util.escapeQuotes(E.join(", ")),n+=" when property "+e.util.escapeQuotes(T)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var F=n;n=P.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+F+"]); ":n+=" validate.errors = ["+F+"]; return false; ":n+=" var err = "+F+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{n+=" ) { ";var I=E;if(I)for(var R,U=-1,z=I.length-1;U<z;){R=I[U+=1];var M=e.util.getProperty(R),C=e.util.escapeQuotes(R),N=p+M;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(k,R,e.opts.jsonPointers)),n+=" if ( "+N+" === undefined ",S&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(R)+"') "),n+=") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { property: '"+e.util.escapeQuotes(T)+"', missingProperty: '"+C+"', depsCount: "+E.length+", deps: '"+e.util.escapeQuotes(E.length==1?E[0]:E.join(", "))+"' } ",e.opts.messages!==!1&&(n+=" , message: 'should have ",E.length==1?n+="property "+e.util.escapeQuotes(E[0]):n+="properties "+e.util.escapeQuotes(E.join(", ")),n+=" when property "+e.util.escapeQuotes(T)+" is present' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}n+=" } ",c&&(d+="}",n+=" else { ")}e.errorPath=k;var W=f.baseId;for(var T in y){var A=y[T];(e.opts.strictKeywords?typeof A=="object"&&Object.keys(A).length>0||A===!1:e.util.schemaHasRules(A,e.RULES.all))&&(n+=" "+g+" = true; if ( "+p+e.util.getProperty(T)+" !== undefined ",S&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(T)+"') "),n+=") { ",f.schema=A,f.schemaPath=l+e.util.getProperty(T),f.errSchemaPath=u+"/"+e.util.escapeFragment(T),n+=" "+e.validate(f)+" ",f.baseId=W,n+=" } ",c&&(n+=" if ("+g+") { ",d+="}"))}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}});var xv=B((KZ,yv)=>{"use strict";yv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="valid"+i,f=e.opts.$data&&a&&a.$data,d;f?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",d="schema"+i):d=a;var g="i"+i,y="schema"+i;f||(n+=" var "+y+" = validate.schema"+l+";"),n+="var "+h+";",f&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=""+h+" = false;for (var "+g+"=0; "+g+"<"+y+".length; "+g+"++) if (equal("+p+", "+y+"["+g+"])) { "+h+" = true; break; }",f&&(n+=" } "),n+=" if (!"+h+") { ";var v=v||[];v.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { allowedValues: schema"+i+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var S=n;return n=v.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" }",c&&(n+=" else { "),n}});var bv=B((HZ,Ev)=>{"use strict";Ev.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||"");if(e.opts.format===!1)return c&&(n+=" if (true) { "),n;var h=e.opts.$data&&a&&a.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+i):f=a;var d=e.opts.unknownFormats,g=Array.isArray(d);if(h){var y="format"+i,v="isObject"+i,S="formatType"+i;n+=" var "+y+" = formats["+f+"]; var "+v+" = typeof "+y+" == 'object' && !("+y+" instanceof RegExp) && "+y+".validate; var "+S+" = "+v+" && "+y+".type || 'string'; if ("+v+") { ",e.async&&(n+=" var async"+i+" = "+y+".async; "),n+=" "+y+" = "+y+".validate; } if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'string') || "),n+=" (",d!="ignore"&&(n+=" ("+f+" && !"+y+" ",g&&(n+=" && self._opts.unknownFormats.indexOf("+f+") == -1 "),n+=") || "),n+=" ("+y+" && "+S+" == '"+s+"' && !(typeof "+y+" == 'function' ? ",e.async?n+=" (async"+i+" ? await "+y+"("+p+") : "+y+"("+p+")) ":n+=" "+y+"("+p+") ",n+=" : "+y+".test("+p+"))))) {"}else{var y=e.formats[a];if(!y){if(d=="ignore")return e.logger.warn('unknown format "'+a+'" ignored in schema at path "'+e.errSchemaPath+'"'),c&&(n+=" if (true) { "),n;if(g&&d.indexOf(a)>=0)return c&&(n+=" if (true) { "),n;throw new Error('unknown format "'+a+'" is used in schema at path "'+e.errSchemaPath+'"')}var v=typeof y=="object"&&!(y instanceof RegExp)&&y.validate,S=v&&y.type||"string";if(v){var A=y.async===!0;y=y.validate}if(S!=s)return c&&(n+=" if (true) { "),n;if(A){if(!e.async)throw new Error("async format in sync schema");var E="formats"+e.util.getProperty(a)+".validate";n+=" if (!(await "+E+"("+p+"))) { "}else{n+=" if (! ";var E="formats"+e.util.getProperty(a);v&&(E+=".validate"),typeof y=="function"?n+=" "+E+"("+p+") ":n+=" "+E+".test("+p+") ",n+=") { "}}var k=k||[];k.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { format: ",h?n+=""+f:n+=""+e.util.toQuotedString(a),n+=" } ",e.opts.messages!==!1&&(n+=` , message: 'should match format "`,h?n+="' + "+f+" + '":n+=""+e.util.escapeQuotes(a),n+=`"' `),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+l:n+=""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var T=n;return n=k.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+T+"]); ":n+=" validate.errors = ["+T+"]; return false; ":n+=" var err = "+T+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}});var Sv=B((JZ,vv)=>{"use strict";vv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e);d.level++;var g="valid"+d.level,y=e.schema.then,v=e.schema.else,S=y!==void 0&&(e.opts.strictKeywords?typeof y=="object"&&Object.keys(y).length>0||y===!1:e.util.schemaHasRules(y,e.RULES.all)),A=v!==void 0&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all)),E=d.baseId;if(S||A){var k;d.createErrors=!1,d.schema=a,d.schemaPath=l,d.errSchemaPath=u,n+=" var "+f+" = errors; var "+h+" = true; ";var T=e.compositeRule;e.compositeRule=d.compositeRule=!0,n+=" "+e.validate(d)+" ",d.baseId=E,d.createErrors=!0,n+=" errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; } ",e.compositeRule=d.compositeRule=T,S?(n+=" if ("+g+") { ",d.schema=e.schema.then,d.schemaPath=e.schemaPath+".then",d.errSchemaPath=e.errSchemaPath+"/then",n+=" "+e.validate(d)+" ",d.baseId=E,n+=" "+h+" = "+g+"; ",S&&A?(k="ifClause"+i,n+=" var "+k+" = 'then'; "):k="'then'",n+=" } ",A&&(n+=" else { ")):n+=" if (!"+g+") { ",A&&(d.schema=e.schema.else,d.schemaPath=e.schemaPath+".else",d.errSchemaPath=e.errSchemaPath+"/else",n+=" "+e.validate(d)+" ",d.baseId=E,n+=" "+h+" = "+g+"; ",S&&A?(k="ifClause"+i,n+=" var "+k+" = 'else'; "):k="'else'",n+=" } "),n+=" if (!"+h+") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { failingKeyword: "+k+" } ",e.opts.messages!==!1&&(n+=` , message: 'should match "' + `+k+` + '" schema' `),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}});var wv=B((XZ,Cv)=>{"use strict";Cv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),g="";d.level++;var y="valid"+d.level,v="i"+i,S=d.dataLevel=e.dataLevel+1,A="data"+S,E=e.baseId;if(n+="var "+f+" = errors;var "+h+";",Array.isArray(a)){var k=e.schema.additionalItems;if(k===!1){n+=" "+h+" = "+p+".length <= "+a.length+"; ";var T=u;u=e.errSchemaPath+"/additionalItems",n+=" if (!"+h+") { ";var w=w||[];w.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+a.length+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have more than "+a.length+" items' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var R=n;n=w.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+R+"]); ":n+=" validate.errors = ["+R+"]; return false; ":n+=" var err = "+R+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",u=T,c&&(g+="}",n+=" else { ")}var j=a;if(j){for(var $,M=-1,N=j.length-1;M<N;)if($=j[M+=1],e.opts.strictKeywords?typeof $=="object"&&Object.keys($).length>0||$===!1:e.util.schemaHasRules($,e.RULES.all)){n+=" "+y+" = true; if ("+p+".length > "+M+") { ";var b=p+"["+M+"]";d.schema=$,d.schemaPath=l+"["+M+"]",d.errSchemaPath=u+"/"+M,d.errorPath=e.util.getPathExpr(e.errorPath,M,e.opts.jsonPointers,!0),d.dataPathArr[S]=M;var C=e.validate(d);d.baseId=E,e.util.varOccurences(C,A)<2?n+=" "+e.util.varReplace(C,A,b)+" ":n+=" var "+A+" = "+b+"; "+C+" ",n+=" } ",c&&(n+=" if ("+y+") { ",g+="}")}}if(typeof k=="object"&&(e.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:e.util.schemaHasRules(k,e.RULES.all))){d.schema=k,d.schemaPath=e.schemaPath+".additionalItems",d.errSchemaPath=e.errSchemaPath+"/additionalItems",n+=" "+y+" = true; if ("+p+".length > "+a.length+") { for (var "+v+" = "+a.length+"; "+v+" < "+p+".length; "+v+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var b=p+"["+v+"]";d.dataPathArr[S]=v;var C=e.validate(d);d.baseId=E,e.util.varOccurences(C,A)<2?n+=" "+e.util.varReplace(C,A,b)+" ":n+=" var "+A+" = "+b+"; "+C+" ",c&&(n+=" if (!"+y+") break; "),n+=" } } ",c&&(n+=" if ("+y+") { ",g+="}")}}else if(e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all)){d.schema=a,d.schemaPath=l,d.errSchemaPath=u,n+=" for (var "+v+" = 0; "+v+" < "+p+".length; "+v+"++) { ",d.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var b=p+"["+v+"]";d.dataPathArr[S]=v;var C=e.validate(d);d.baseId=E,e.util.varOccurences(C,A)<2?n+=" "+e.util.varReplace(C,A,b)+" ":n+=" var "+A+" = "+b+"; "+C+" ",c&&(n+=" if (!"+y+") break; "),n+=" }"}return c&&(n+=" "+g+" if ("+f+" == errors) {"),n}});var cf=B((QZ,Av)=>{"use strict";Av.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,E,p="data"+(o||""),h=e.opts.$data&&a&&a.$data,f;h?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+i):f=a;var d=r=="maximum",g=d?"exclusiveMaximum":"exclusiveMinimum",y=e.schema[g],v=e.opts.$data&&y&&y.$data,S=d?"<":">",A=d?">":"<",E=void 0;if(!(h||typeof a=="number"||a===void 0))throw new Error(r+" must be number");if(!(v||y===void 0||typeof y=="number"||typeof y=="boolean"))throw new Error(g+" must be number or boolean");if(v){var k=e.util.getData(y.$data,o,e.dataPathArr),T="exclusive"+i,w="exclType"+i,R="exclIsNumber"+i,j="op"+i,$="' + "+j+" + '";n+=" var schemaExcl"+i+" = "+k+"; ",k="schemaExcl"+i,n+=" var "+T+"; var "+w+" = typeof "+k+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var E=g,M=M||[];M.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(E||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: '"+g+" should be boolean' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var N=n;n=M.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+N+"]); ":n+=" validate.errors = ["+N+"]; return false; ":n+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+w+" == 'number' ? ( ("+T+" = "+f+" === undefined || "+k+" "+S+"= "+f+") ? "+p+" "+A+"= "+k+" : "+p+" "+A+" "+f+" ) : ( ("+T+" = "+k+" === true) ? "+p+" "+A+"= "+f+" : "+p+" "+A+" "+f+" ) || "+p+" !== "+p+") { var op"+i+" = "+T+" ? '"+S+"' : '"+S+"='; ",a===void 0&&(E=g,u=e.errSchemaPath+"/"+g,f=k,h=v)}else{var R=typeof y=="number",$=S;if(R&&h){var j="'"+$+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" ( "+f+" === undefined || "+y+" "+S+"= "+f+" ? "+p+" "+A+"= "+y+" : "+p+" "+A+" "+f+" ) || "+p+" !== "+p+") { "}else{R&&a===void 0?(T=!0,E=g,u=e.errSchemaPath+"/"+g,f=y,A+="="):(R&&(f=Math[d?"min":"max"](y,a)),y===(R?f:!0)?(T=!0,E=g,u=e.errSchemaPath+"/"+g,A+="="):(T=!1,$+="="));var j="'"+$+"'";n+=" if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+" "+A+" "+f+" || "+p+" !== "+p+") { "}}E=E||r;var M=M||[];M.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(E||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { comparison: "+j+", limit: "+f+", exclusive: "+T+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be "+$+" ",h?n+="' + "+f:n+=""+f+"'"),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+l:n+=""+a,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var N=n;return n=M.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+N+"]); ":n+=" validate.errors = ["+N+"]; return false; ":n+=" var err = "+N+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { "),n}});var pf=B((YZ,kv)=>{"use strict";kv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,g,p="data"+(o||""),h=e.opts.$data&&a&&a.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+i):f=a,!(h||typeof a=="number"))throw new Error(r+" must be number");var d=r=="maxItems"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" "+p+".length "+d+" "+f+") { ";var g=r,y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(g||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",r=="maxItems"?n+="more":n+="fewer",n+=" than ",h?n+="' + "+f+" + '":n+=""+a,n+=" items' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+l:n+=""+a,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var v=n;return n=y.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}});var ff=B((ZZ,Tv)=>{"use strict";Tv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,g,p="data"+(o||""),h=e.opts.$data&&a&&a.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+i):f=a,!(h||typeof a=="number"))throw new Error(r+" must be number");var d=r=="maxLength"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),e.opts.unicode===!1?n+=" "+p+".length ":n+=" ucs2length("+p+") ",n+=" "+d+" "+f+") { ";var g=r,y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(g||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be ",r=="maxLength"?n+="longer":n+="shorter",n+=" than ",h?n+="' + "+f+" + '":n+=""+a,n+=" characters' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+l:n+=""+a,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var v=n;return n=y.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}});var hf=B((eee,Dv)=>{"use strict";Dv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,g,p="data"+(o||""),h=e.opts.$data&&a&&a.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+i):f=a,!(h||typeof a=="number"))throw new Error(r+" must be number");var d=r=="maxProperties"?">":"<";n+="if ( ",h&&(n+=" ("+f+" !== undefined && typeof "+f+" != 'number') || "),n+=" Object.keys("+p+").length "+d+" "+f+") { ";var g=r,y=y||[];y.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(g||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { limit: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have ",r=="maxProperties"?n+="more":n+="fewer",n+=" than ",h?n+="' + "+f+" + '":n+=""+a,n+=" properties' "),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+l:n+=""+a,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var v=n;return n=y.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+v+"]); ":n+=" validate.errors = ["+v+"]; return false; ":n+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}});var Pv=B((tee,Iv)=>{"use strict";Iv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h=e.opts.$data&&a&&a.$data,f;if(h?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",f="schema"+i):f=a,!(h||typeof a=="number"))throw new Error(r+" must be number");n+="var division"+i+";if (",h&&(n+=" "+f+" !== undefined && ( typeof "+f+" != 'number' || "),n+=" (division"+i+" = "+p+" / "+f+", ",e.opts.multipleOfPrecision?n+=" Math.abs(Math.round(division"+i+") - division"+i+") > 1e-"+e.opts.multipleOfPrecision+" ":n+=" division"+i+" !== parseInt(division"+i+") ",n+=" ) ",h&&(n+=" ) "),n+=" ) { ";var d=d||[];d.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { multipleOf: "+f+" } ",e.opts.messages!==!1&&(n+=" , message: 'should be multiple of ",h?n+="' + "+f:n+=""+f+"'"),e.opts.verbose&&(n+=" , schema: ",h?n+="validate.schema"+l:n+=""+a,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var g=n;return n=d.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+g+"]); ":n+=" validate.errors = ["+g+"]; return false; ":n+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}});var _v=B((ree,Fv)=>{"use strict";Fv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="errs__"+i,f=e.util.copy(e);f.level++;var d="valid"+f.level;if(e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all)){f.schema=a,f.schemaPath=l,f.errSchemaPath=u,n+=" var "+h+" = errors; ";var g=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.createErrors=!1;var y;f.opts.allErrors&&(y=f.opts.allErrors,f.opts.allErrors=!1),n+=" "+e.validate(f)+" ",f.createErrors=!0,y&&(f.opts.allErrors=y),e.compositeRule=f.compositeRule=g,n+=" if ("+d+") { ";var v=v||[];v.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var S=n;n=v.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { errors = "+h+"; if (vErrors !== null) { if ("+h+") vErrors.length = "+h+"; else vErrors = null; } ",e.opts.allErrors&&(n+=" } ")}else n+=" var err = ",e.createErrors!==!1?(n+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: {} ",e.opts.messages!==!1&&(n+=" , message: 'should NOT be valid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",c&&(n+=" if (false) { ");return n}});var Ov=B((nee,Bv)=>{"use strict";Bv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="valid"+i,f="errs__"+i,d=e.util.copy(e),g="";d.level++;var y="valid"+d.level,v=d.baseId,S="prevValid"+i,A="passingSchemas"+i;n+="var "+f+" = errors , "+S+" = false , "+h+" = false , "+A+" = null; ";var E=e.compositeRule;e.compositeRule=d.compositeRule=!0;var k=a;if(k)for(var T,w=-1,R=k.length-1;w<R;)T=k[w+=1],(e.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all))?(d.schema=T,d.schemaPath=l+"["+w+"]",d.errSchemaPath=u+"/"+w,n+=" "+e.validate(d)+" ",d.baseId=v):n+=" var "+y+" = true; ",w&&(n+=" if ("+y+" && "+S+") { "+h+" = false; "+A+" = ["+A+", "+w+"]; } else { ",g+="}"),n+=" if ("+y+") { "+h+" = "+S+" = true; "+A+" = "+w+"; }";return e.compositeRule=d.compositeRule=E,n+=""+g+"if (!"+h+") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { passingSchemas: "+A+" } ",e.opts.messages!==!1&&(n+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),n+="} else { errors = "+f+"; if (vErrors !== null) { if ("+f+") vErrors.length = "+f+"; else vErrors = null; }",e.opts.allErrors&&(n+=" } "),n}});var Nv=B((see,Lv)=>{"use strict";Lv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="valid"+i,f=e.opts.$data&&a&&a.$data,d;f?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",d="schema"+i):d=a;var g=e.opts.regExp?"regExp":"new RegExp";if(f)n+=" var "+h+" = true; try { "+h+" = "+g+"("+d+").test("+p+"); } catch(e) { "+h+" = false; } if ( ",f&&(n+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),n+=" !"+h+") {";else{var y=e.usePattern(a);n+=" if ( ",f&&(n+=" ("+d+" !== undefined && typeof "+d+" != 'string') || "),n+=" !"+y+".test("+p+") ) {"}var v=v||[];v.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { pattern: ",f?n+=""+d:n+=""+e.util.toQuotedString(a),n+=" } ",e.opts.messages!==!1&&(n+=` , message: 'should match pattern "`,f?n+="' + "+d+" + '":n+=""+e.util.escapeQuotes(a),n+=`"' `),e.opts.verbose&&(n+=" , schema: ",f?n+="validate.schema"+l:n+=""+e.util.toQuotedString(a),n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var S=n;return n=v.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+S+"]); ":n+=" validate.errors = ["+S+"]; return false; ":n+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+="} ",c&&(n+=" else { "),n}});var jv=B((iee,Rv)=>{"use strict";Rv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var g="valid"+f.level,y="key"+i,v="idx"+i,S=f.dataLevel=e.dataLevel+1,A="data"+S,E="dataProperties"+i,k=Object.keys(a||{}).filter(U),T=e.schema.patternProperties||{},w=Object.keys(T).filter(U),R=e.schema.additionalProperties,j=k.length||w.length,$=R===!1,M=typeof R=="object"&&Object.keys(R).length,N=e.opts.removeAdditional,b=$||M||N,C=e.opts.ownProperties,P=e.baseId,F=e.schema.required;if(F&&!(e.opts.$data&&F.$data)&&F.length<e.opts.loopRequired)var I=e.util.toHash(F);function U(it){return it!=="__proto__"}if(n+="var "+h+" = errors;var "+g+" = true;",C&&(n+=" var "+E+" = undefined;"),b){if(C?n+=" "+E+" = "+E+" || Object.keys("+p+"); for (var "+v+"=0; "+v+"<"+E+".length; "+v+"++) { var "+y+" = "+E+"["+v+"]; ":n+=" for (var "+y+" in "+p+") { ",j){if(n+=" var isAdditional"+i+" = !(false ",k.length)if(k.length>8)n+=" || validate.schema"+l+".hasOwnProperty("+y+") ";else{var z=k;if(z)for(var W,re=-1,ue=z.length-1;re<ue;)W=z[re+=1],n+=" || "+y+" == "+e.util.toQuotedString(W)+" "}if(w.length){var be=w;if(be)for(var te,pe=-1,ve=be.length-1;pe<ve;)te=be[pe+=1],n+=" || "+e.usePattern(te)+".test("+y+") "}n+=" ); if (isAdditional"+i+") { "}if(N=="all")n+=" delete "+p+"["+y+"]; ";else{var Ae=e.errorPath,ie="' + "+y+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers)),$)if(N)n+=" delete "+p+"["+y+"]; ";else{n+=" "+g+" = false; ";var xe=u;u=e.errSchemaPath+"/additionalProperties";var ae=ae||[];ae.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { additionalProperty: '"+ie+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is an invalid additional property":n+="should NOT have additional properties",n+="' "),e.opts.verbose&&(n+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var fe=n;n=ae.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+fe+"]); ":n+=" validate.errors = ["+fe+"]; return false; ":n+=" var err = "+fe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=xe,c&&(n+=" break; ")}else if(M)if(N=="failing"){n+=" var "+h+" = errors; ";var Be=e.compositeRule;e.compositeRule=f.compositeRule=!0,f.schema=R,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Re=p+"["+y+"]";f.dataPathArr[S]=y;var Pe=e.validate(f);f.baseId=P,e.util.varOccurences(Pe,A)<2?n+=" "+e.util.varReplace(Pe,A,Re)+" ":n+=" var "+A+" = "+Re+"; "+Pe+" ",n+=" if (!"+g+") { errors = "+h+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+p+"["+y+"]; } ",e.compositeRule=f.compositeRule=Be}else{f.schema=R,f.schemaPath=e.schemaPath+".additionalProperties",f.errSchemaPath=e.errSchemaPath+"/additionalProperties",f.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Re=p+"["+y+"]";f.dataPathArr[S]=y;var Pe=e.validate(f);f.baseId=P,e.util.varOccurences(Pe,A)<2?n+=" "+e.util.varReplace(Pe,A,Re)+" ":n+=" var "+A+" = "+Re+"; "+Pe+" ",c&&(n+=" if (!"+g+") break; ")}e.errorPath=Ae}j&&(n+=" } "),n+=" } ",c&&(n+=" if ("+g+") { ",d+="}")}var je=e.opts.useDefaults&&!e.compositeRule;if(k.length){var ze=k;if(ze)for(var W,O=-1,K=ze.length-1;O<K;){W=ze[O+=1];var he=a[W];if(e.opts.strictKeywords?typeof he=="object"&&Object.keys(he).length>0||he===!1:e.util.schemaHasRules(he,e.RULES.all)){var Fe=e.util.getProperty(W),Re=p+Fe,Ue=je&&he.default!==void 0;f.schema=he,f.schemaPath=l+Fe,f.errSchemaPath=u+"/"+e.util.escapeFragment(W),f.errorPath=e.util.getPath(e.errorPath,W,e.opts.jsonPointers),f.dataPathArr[S]=e.util.toQuotedString(W);var Pe=e.validate(f);if(f.baseId=P,e.util.varOccurences(Pe,A)<2){Pe=e.util.varReplace(Pe,A,Re);var We=Re}else{var We=A;n+=" var "+A+" = "+Re+"; "}if(Ue)n+=" "+Pe+" ";else{if(I&&I[W]){n+=" if ( "+We+" === undefined ",C&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(W)+"') "),n+=") { "+g+" = false; ";var Ae=e.errorPath,xe=u,xt=e.util.escapeQuotes(W);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(Ae,W,e.opts.jsonPointers)),u=e.errSchemaPath+"/required";var ae=ae||[];ae.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+xt+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+xt+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var fe=n;n=ae.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+fe+"]); ":n+=" validate.errors = ["+fe+"]; return false; ":n+=" var err = "+fe+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",u=xe,e.errorPath=Ae,n+=" } else { "}else c?(n+=" if ( "+We+" === undefined ",C&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(W)+"') "),n+=") { "+g+" = true; } else { "):(n+=" if ("+We+" !== undefined ",C&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(W)+"') "),n+=" ) { ");n+=" "+Pe+" } "}}c&&(n+=" if ("+g+") { ",d+="}")}}if(w.length){var Ct=w;if(Ct)for(var te,Pr=-1,ht=Ct.length-1;Pr<ht;){te=Ct[Pr+=1];var he=T[te];if(e.opts.strictKeywords?typeof he=="object"&&Object.keys(he).length>0||he===!1:e.util.schemaHasRules(he,e.RULES.all)){f.schema=he,f.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(te),f.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(te),C?n+=" "+E+" = "+E+" || Object.keys("+p+"); for (var "+v+"=0; "+v+"<"+E+".length; "+v+"++) { var "+y+" = "+E+"["+v+"]; ":n+=" for (var "+y+" in "+p+") { ",n+=" if ("+e.usePattern(te)+".test("+y+")) { ",f.errorPath=e.util.getPathExpr(e.errorPath,y,e.opts.jsonPointers);var Re=p+"["+y+"]";f.dataPathArr[S]=y;var Pe=e.validate(f);f.baseId=P,e.util.varOccurences(Pe,A)<2?n+=" "+e.util.varReplace(Pe,A,Re)+" ":n+=" var "+A+" = "+Re+"; "+Pe+" ",c&&(n+=" if (!"+g+") break; "),n+=" } ",c&&(n+=" else "+g+" = true; "),n+=" } ",c&&(n+=" if ("+g+") { ",d+="}")}}}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}});var qv=B((aee,Mv)=>{"use strict";Mv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="errs__"+i,f=e.util.copy(e),d="";f.level++;var g="valid"+f.level;if(n+="var "+h+" = errors;",e.opts.strictKeywords?typeof a=="object"&&Object.keys(a).length>0||a===!1:e.util.schemaHasRules(a,e.RULES.all)){f.schema=a,f.schemaPath=l,f.errSchemaPath=u;var y="key"+i,v="idx"+i,S="i"+i,A="' + "+y+" + '",E=f.dataLevel=e.dataLevel+1,k="data"+E,T="dataProperties"+i,w=e.opts.ownProperties,R=e.baseId;w&&(n+=" var "+T+" = undefined; "),w?n+=" "+T+" = "+T+" || Object.keys("+p+"); for (var "+v+"=0; "+v+"<"+T+".length; "+v+"++) { var "+y+" = "+T+"["+v+"]; ":n+=" for (var "+y+" in "+p+") { ",n+=" var startErrs"+i+" = errors; ";var j=y,$=e.compositeRule;e.compositeRule=f.compositeRule=!0;var M=e.validate(f);f.baseId=R,e.util.varOccurences(M,k)<2?n+=" "+e.util.varReplace(M,k,j)+" ":n+=" var "+k+" = "+j+"; "+M+" ",e.compositeRule=f.compositeRule=$,n+=" if (!"+g+") { for (var "+S+"=startErrs"+i+"; "+S+"<errors; "+S+"++) { vErrors["+S+"].propertyName = "+y+"; } var err = ",e.createErrors!==!1?(n+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { propertyName: '"+A+"' } ",e.opts.messages!==!1&&(n+=" , message: 'property name \\'"+A+"\\' is invalid' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; "),c&&(n+=" break; "),n+=" } }"}return c&&(n+=" "+d+" if ("+h+" == errors) {"),n}});var $v=B((oee,Uv)=>{"use strict";Uv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="valid"+i,f=e.opts.$data&&a&&a.$data,d;f?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",d="schema"+i):d=a;var g="schema"+i;if(!f)if(a.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var y=[],v=a;if(v)for(var S,A=-1,E=v.length-1;A<E;){S=v[A+=1];var k=e.schema.properties[S];k&&(e.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:e.util.schemaHasRules(k,e.RULES.all))||(y[y.length]=S)}}else var y=a;if(f||y.length){var T=e.errorPath,w=f||y.length>=e.opts.loopRequired,R=e.opts.ownProperties;if(c)if(n+=" var missing"+i+"; ",w){f||(n+=" var "+g+" = validate.schema"+l+"; ");var j="i"+i,$="schema"+i+"["+j+"]",M="' + "+$+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(T,$,e.opts.jsonPointers)),n+=" var "+h+" = true; ",f&&(n+=" if (schema"+i+" === undefined) "+h+" = true; else if (!Array.isArray(schema"+i+")) "+h+" = false; else {"),n+=" for (var "+j+" = 0; "+j+" < "+g+".length; "+j+"++) { "+h+" = "+p+"["+g+"["+j+"]] !== undefined ",R&&(n+=" && Object.prototype.hasOwnProperty.call("+p+", "+g+"["+j+"]) "),n+="; if (!"+h+") break; } ",f&&(n+=" } "),n+=" if (!"+h+") { ";var N=N||[];N.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+M+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+M+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var b=n;n=N.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+b+"]); ":n+=" validate.errors = ["+b+"]; return false; ":n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else{n+=" if ( ";var C=y;if(C)for(var P,j=-1,F=C.length-1;j<F;){P=C[j+=1],j&&(n+=" || ");var I=e.util.getProperty(P),U=p+I;n+=" ( ( "+U+" === undefined ",R&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(P)+"') "),n+=") && (missing"+i+" = "+e.util.toQuotedString(e.opts.jsonPointers?P:I)+") ) "}n+=") { ";var $="missing"+i,M="' + "+$+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(T,$,!0):T+" + "+$);var N=N||[];N.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+M+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+M+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var b=n;n=N.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+b+"]); ":n+=" validate.errors = ["+b+"]; return false; ":n+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } else { "}else if(w){f||(n+=" var "+g+" = validate.schema"+l+"; ");var j="i"+i,$="schema"+i+"["+j+"]",M="' + "+$+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(T,$,e.opts.jsonPointers)),f&&(n+=" if ("+g+" && !Array.isArray("+g+")) { var err = ",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+M+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+M+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+g+" !== undefined) { "),n+=" for (var "+j+" = 0; "+j+" < "+g+".length; "+j+"++) { if ("+p+"["+g+"["+j+"]] === undefined ",R&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", "+g+"["+j+"]) "),n+=") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+M+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+M+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",f&&(n+=" } ")}else{var z=y;if(z)for(var P,W=-1,re=z.length-1;W<re;){P=z[W+=1];var I=e.util.getProperty(P),M=e.util.escapeQuotes(P),U=p+I;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(T,P,e.opts.jsonPointers)),n+=" if ( "+U+" === undefined ",R&&(n+=" || ! Object.prototype.hasOwnProperty.call("+p+", '"+e.util.escapeQuotes(P)+"') "),n+=") { var err = ",e.createErrors!==!1?(n+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { missingProperty: '"+M+"' } ",e.opts.messages!==!1&&(n+=" , message: '",e.opts._errorDataPathProperty?n+="is a required property":n+="should have required property \\'"+M+"\\'",n+="' "),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=T}else c&&(n+=" if (true) {");return n}});var Wv=B((lee,Vv)=>{"use strict";Vv.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p="data"+(o||""),h="valid"+i,f=e.opts.$data&&a&&a.$data,d;if(f?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",d="schema"+i):d=a,(a||f)&&e.opts.uniqueItems!==!1){f&&(n+=" var "+h+"; if ("+d+" === false || "+d+" === undefined) "+h+" = true; else if (typeof "+d+" != 'boolean') "+h+" = false; else { "),n+=" var i = "+p+".length , "+h+" = true , j; if (i > 1) { ";var g=e.schema.items&&e.schema.items.type,y=Array.isArray(g);if(!g||g=="object"||g=="array"||y&&(g.indexOf("object")>=0||g.indexOf("array")>=0))n+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+p+"[i], "+p+"[j])) { "+h+" = false; break outer; } } } ";else{n+=" var itemIndices = {}, item; for (;i--;) { var item = "+p+"[i]; ";var v="checkDataType"+(y?"s":"");n+=" if ("+e.util[v](g,"item",e.opts.strictNumbers,!0)+") continue; ",y&&(n+=` if (typeof item == 'string') item = '"' + item; `),n+=" if (typeof itemIndices[item] == 'number') { "+h+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}n+=" } ",f&&(n+=" } "),n+=" if (!"+h+") { ";var S=S||[];S.push(n),n="",e.createErrors!==!1?(n+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(n+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(n+=" , schema: ",f?n+="validate.schema"+l:n+=""+a,n+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+p+" "),n+=" } "):n+=" {} ";var A=n;n=S.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+A+"]); ":n+=" validate.errors = ["+A+"]; return false; ":n+=" var err = "+A+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",n+=" } ",c&&(n+=" else { ")}else c&&(n+=" if (true) { ");return n}});var Gv=B((uee,zv)=>{"use strict";zv.exports={$ref:sv(),allOf:av(),anyOf:lv(),$comment:cv(),const:fv(),contains:mv(),dependencies:gv(),enum:xv(),format:bv(),if:Sv(),items:wv(),maximum:cf(),minimum:cf(),maxItems:pf(),minItems:pf(),maxLength:ff(),minLength:ff(),maxProperties:hf(),minProperties:hf(),multipleOf:Pv(),not:_v(),oneOf:Ov(),pattern:Nv(),properties:jv(),propertyNames:qv(),required:$v(),uniqueItems:Wv(),validate:lf()}});var Jv=B((cee,Hv)=>{"use strict";var Kv=Gv(),mf=Xn().toHash;Hv.exports=function(){var e=[{type:"number",rules:[{maximum:["exclusiveMaximum"]},{minimum:["exclusiveMinimum"]},"multipleOf","format"]},{type:"string",rules:["maxLength","minLength","pattern","format"]},{type:"array",rules:["maxItems","minItems","items","contains","uniqueItems"]},{type:"object",rules:["maxProperties","minProperties","required","dependencies","propertyNames",{properties:["additionalProperties","patternProperties"]}]},{rules:["$ref","const","enum","not","anyOf","oneOf","allOf","if"]}],r=["type","$comment"],s=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],n=["number","integer","string","array","object","boolean","null"];return e.all=mf(r),e.types=mf(n),e.forEach(function(i){i.rules=i.rules.map(function(o){var a;if(typeof o=="object"){var l=Object.keys(o)[0];a=o[l],o=l,a.forEach(function(c){r.push(c),e.all[c]=!0})}r.push(o);var u=e.all[o]={keyword:o,code:Kv[o],implements:a};return u}),e.all.$comment={keyword:"$comment",code:Kv.$comment},i.type&&(e.types[i.type]=i)}),e.keywords=mf(r.concat(s)),e.custom={},e}});var Yv=B((pee,Qv)=>{"use strict";var Xv=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];Qv.exports=function(t,e){for(var r=0;r<e.length;r++){t=JSON.parse(JSON.stringify(t));var s=e[r].split("/"),n=t,i;for(i=1;i<s.length;i++)n=n[s[i]];for(i=0;i<Xv.length;i++){var o=Xv[i],a=n[o];a&&(n[o]={anyOf:[a,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return t}});var tS=B((fee,eS)=>{"use strict";var v8=Jo().MissingRef;eS.exports=Zv;function Zv(t,e,r){var s=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof e=="function"&&(r=e,e=void 0);var n=i(t).then(function(){var a=s._addSchema(t,void 0,e);return a.validate||o(a)});return r&&n.then(function(a){r(null,a)},r),n;function i(a){var l=a.$schema;return l&&!s.getSchema(l)?Zv.call(s,{$ref:l},!0):Promise.resolve()}function o(a){try{return s._compile(a)}catch(u){if(u instanceof v8)return l(u);throw u}function l(u){var c=u.missingSchema;if(f(c))throw new Error("Schema "+c+" is loaded but "+u.missingRef+" cannot be resolved");var p=s._loadingSchemas[c];return p||(p=s._loadingSchemas[c]=s._opts.loadSchema(c),p.then(h,h)),p.then(function(d){if(!f(c))return i(d).then(function(){f(c)||s.addSchema(d,c,void 0,e)})}).then(function(){return o(a)});function h(){delete s._loadingSchemas[c]}function f(d){return s._refs[d]||s._schemas[d]}}}}});var nS=B((hee,rS)=>{"use strict";rS.exports=function(e,r,s){var n=" ",i=e.level,o=e.dataLevel,a=e.schema[r],l=e.schemaPath+e.util.getProperty(r),u=e.errSchemaPath+"/"+r,c=!e.opts.allErrors,p,h="data"+(o||""),f="valid"+i,d="errs__"+i,g=e.opts.$data&&a&&a.$data,y;g?(n+=" var schema"+i+" = "+e.util.getData(a.$data,o,e.dataPathArr)+"; ",y="schema"+i):y=a;var v=this,S="definition"+i,A=v.definition,E="",k,T,w,R,j;if(g&&A.$data){j="keywordValidate"+i;var $=A.validateSchema;n+=" var "+S+" = RULES.custom['"+r+"'].definition; var "+j+" = "+S+".validate;"}else{if(R=e.useCustomRule(v,a,e.schema,e),!R)return;y="validate.schema"+l,j=R.code,k=A.compile,T=A.inline,w=A.macro}var M=j+".errors",N="i"+i,b="ruleErr"+i,C=A.async;if(C&&!e.async)throw new Error("async keyword in sync schema");if(T||w||(n+=""+M+" = null;"),n+="var "+d+" = errors;var "+f+";",g&&A.$data&&(E+="}",n+=" if ("+y+" === undefined) { "+f+" = true; } else { ",$&&(E+="}",n+=" "+f+" = "+S+".validateSchema("+y+"); if ("+f+") { ")),T)A.statements?n+=" "+R.validate+" ":n+=" "+f+" = "+R.validate+"; ";else if(w){var P=e.util.copy(e),E="";P.level++;var F="valid"+P.level;P.schema=R.validate,P.schemaPath="";var I=e.compositeRule;e.compositeRule=P.compositeRule=!0;var U=e.validate(P).replace(/validate\.schema/g,j);e.compositeRule=P.compositeRule=I,n+=" "+U}else{var z=z||[];z.push(n),n="",n+=" "+j+".call( ",e.opts.passContext?n+="this":n+="self",k||A.schema===!1?n+=" , "+h+" ":n+=" , "+y+" , "+h+" , validate.schema"+e.schemaPath+" ",n+=" , (dataPath || '')",e.errorPath!='""'&&(n+=" + "+e.errorPath);var W=o?"data"+(o-1||""):"parentData",re=o?e.dataPathArr[o]:"parentDataProperty";n+=" , "+W+" , "+re+" , rootData ) ";var ue=n;n=z.pop(),A.errors===!1?(n+=" "+f+" = ",C&&(n+="await "),n+=""+ue+"; "):C?(M="customErrors"+i,n+=" var "+M+" = null; try { "+f+" = await "+ue+"; } catch (e) { "+f+" = false; if (e instanceof ValidationError) "+M+" = e.errors; else throw e; } "):n+=" "+M+" = null; "+f+" = "+ue+"; "}if(A.modifying&&(n+=" if ("+W+") "+h+" = "+W+"["+re+"];"),n+=""+E,A.valid)c&&(n+=" if (true) { ");else{n+=" if ( ",A.valid===void 0?(n+=" !",w?n+=""+F:n+=""+f):n+=" "+!A.valid+" ",n+=") { ",p=v.keyword;var z=z||[];z.push(n),n="";var z=z||[];z.push(n),n="",e.createErrors!==!1?(n+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(n+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),n+=" } "):n+=" {} ";var be=n;n=z.pop(),!e.compositeRule&&c?e.async?n+=" throw new ValidationError(["+be+"]); ":n+=" validate.errors = ["+be+"]; return false; ":n+=" var err = "+be+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var te=n;n=z.pop(),T?A.errors?A.errors!="full"&&(n+=" for (var "+N+"="+d+"; "+N+"<errors; "+N+"++) { var "+b+" = vErrors["+N+"]; if ("+b+".dataPath === undefined) "+b+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+b+".schemaPath === undefined) { "+b+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(n+=" "+b+".schema = "+y+"; "+b+".data = "+h+"; "),n+=" } "):A.errors===!1?n+=" "+te+" ":(n+=" if ("+d+" == errors) { "+te+" } else { for (var "+N+"="+d+"; "+N+"<errors; "+N+"++) { var "+b+" = vErrors["+N+"]; if ("+b+".dataPath === undefined) "+b+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+b+".schemaPath === undefined) { "+b+'.schemaPath = "'+u+'"; } ',e.opts.verbose&&(n+=" "+b+".schema = "+y+"; "+b+".data = "+h+"; "),n+=" } } "):w?(n+=" var err = ",e.createErrors!==!1?(n+=" { keyword: '"+(p||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(u)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(n+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(n+=" , schema: validate.schema"+l+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),n+=" } "):n+=" {} ",n+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&c&&(e.async?n+=" throw new ValidationError(vErrors); ":n+=" validate.errors = vErrors; return false; ")):A.errors===!1?n+=" "+te+" ":(n+=" if (Array.isArray("+M+")) { if (vErrors === null) vErrors = "+M+"; else vErrors = vErrors.concat("+M+"); errors = vErrors.length; for (var "+N+"="+d+"; "+N+"<errors; "+N+"++) { var "+b+" = vErrors["+N+"]; if ("+b+".dataPath === undefined) "+b+".dataPath = (dataPath || '') + "+e.errorPath+"; "+b+'.schemaPath = "'+u+'"; ',e.opts.verbose&&(n+=" "+b+".schema = "+y+"; "+b+".data = "+h+"; "),n+=" } } else { "+te+" } "),n+=" } ",c&&(n+=" else { ")}return n}});var df=B((mee,S8)=>{S8.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"http://json-schema.org/draft-07/schema#",title:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},nonNegativeInteger:{type:"integer",minimum:0},nonNegativeIntegerDefault0:{allOf:[{$ref:"#/definitions/nonNegativeInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},uniqueItems:!0,default:[]}},type:["object","boolean"],properties:{$id:{type:"string",format:"uri-reference"},$schema:{type:"string",format:"uri"},$ref:{type:"string",format:"uri-reference"},$comment:{type:"string"},title:{type:"string"},description:{type:"string"},default:!0,readOnly:{type:"boolean",default:!1},examples:{type:"array",items:!0},multipleOf:{type:"number",exclusiveMinimum:0},maximum:{type:"number"},exclusiveMaximum:{type:"number"},minimum:{type:"number"},exclusiveMinimum:{type:"number"},maxLength:{$ref:"#/definitions/nonNegativeInteger"},minLength:{$ref:"#/definitions/nonNegativeIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{$ref:"#"},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:!0},maxItems:{$ref:"#/definitions/nonNegativeInteger"},minItems:{$ref:"#/definitions/nonNegativeIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},contains:{$ref:"#"},maxProperties:{$ref:"#/definitions/nonNegativeInteger"},minProperties:{$ref:"#/definitions/nonNegativeIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{$ref:"#"},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},propertyNames:{format:"regex"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},propertyNames:{$ref:"#"},const:!0,enum:{type:"array",items:!0,minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},contentMediaType:{type:"string"},contentEncoding:{type:"string"},if:{$ref:"#"},then:{$ref:"#"},else:{$ref:"#"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},default:!0}});var aS=B((dee,iS)=>{"use strict";var sS=df();iS.exports={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:sS.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:sS.properties.type,schema:{type:"boolean"},statements:{type:"boolean"},dependencies:{type:"array",items:{type:"string"}},metaSchema:{type:"object"},modifying:{type:"boolean"},valid:{type:"boolean"},$data:{type:"boolean"},async:{type:"boolean"},errors:{anyOf:[{type:"boolean"},{const:"full"}]}}}});var lS=B((gee,oS)=>{"use strict";var C8=/^[a-z_$][a-z0-9_$-]*$/i,w8=nS(),A8=aS();oS.exports={add:k8,get:T8,remove:D8,validate:gf};function k8(t,e){var r=this.RULES;if(r.keywords[t])throw new Error("Keyword "+t+" is already defined");if(!C8.test(t))throw new Error("Keyword "+t+" is not a valid identifier");if(e){this.validateKeyword(e,!0);var s=e.type;if(Array.isArray(s))for(var n=0;n<s.length;n++)o(t,s[n],e);else o(t,s,e);var i=e.metaSchema;i&&(e.$data&&this._opts.$data&&(i={anyOf:[i,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),e.validateSchema=this.compile(i,!0))}r.keywords[t]=r.all[t]=!0;function o(a,l,u){for(var c,p=0;p<r.length;p++){var h=r[p];if(h.type==l){c=h;break}}c||(c={type:l,rules:[]},r.push(c));var f={keyword:a,definition:u,custom:!0,code:w8,implements:u.implements};c.rules.push(f),r.custom[a]=f}return this}function T8(t){var e=this.RULES.custom[t];return e?e.definition:this.RULES.keywords[t]||!1}function D8(t){var e=this.RULES;delete e.keywords[t],delete e.all[t],delete e.custom[t];for(var r=0;r<e.length;r++)for(var s=e[r].rules,n=0;n<s.length;n++)if(s[n].keyword==t){s.splice(n,1);break}return this}function gf(t,e){gf.errors=null;var r=this._validateKeyword=this._validateKeyword||this.compile(A8,!0);if(r(t))return!0;if(gf.errors=r.errors,e)throw new Error("custom keyword definition is invalid: "+this.errorsText(r.errors));return!1}});var uS=B((yee,I8)=>{I8.exports={$schema:"http://json-schema.org/draft-07/schema#",$id:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",description:"Meta-schema for $data reference (JSON Schema extension proposal)",type:"object",required:["$data"],properties:{$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},additionalProperties:!1}});var ES=B((xee,xS)=>{"use strict";var pS=$b(),Qn=Ho(),P8=Wb(),fS=ef(),F8=of(),_8=rv(),B8=Jv(),hS=Yv(),mS=Xn();xS.exports=Dt;Dt.prototype.validate=L8;Dt.prototype.compile=N8;Dt.prototype.addSchema=R8;Dt.prototype.addMetaSchema=j8;Dt.prototype.validateSchema=M8;Dt.prototype.getSchema=U8;Dt.prototype.removeSchema=V8;Dt.prototype.addFormat=Q8;Dt.prototype.errorsText=X8;Dt.prototype._addSchema=W8;Dt.prototype._compile=z8;Dt.prototype.compileAsync=tS();var nl=lS();Dt.prototype.addKeyword=nl.add;Dt.prototype.getKeyword=nl.get;Dt.prototype.removeKeyword=nl.remove;Dt.prototype.validateKeyword=nl.validate;var dS=Jo();Dt.ValidationError=dS.Validation;Dt.MissingRefError=dS.MissingRef;Dt.$dataMetaSchema=hS;var rl="http://json-schema.org/draft-07/schema",cS=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],O8=["/properties"];function Dt(t){if(!(this instanceof Dt))return new Dt(t);t=this._opts=mS.copy(t)||{},nU(this),this._schemas={},this._refs={},this._fragments={},this._formats=_8(t.format),this._cache=t.cache||new P8,this._loadingSchemas={},this._compilations=[],this.RULES=B8(),this._getId=G8(t),t.loopRequired=t.loopRequired||1/0,t.errorDataPath=="property"&&(t._errorDataPathProperty=!0),t.serialize===void 0&&(t.serialize=F8),this._metaOpts=rU(this),t.formats&&eU(this),t.keywords&&tU(this),Y8(this),typeof t.meta=="object"&&this.addMetaSchema(t.meta),t.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),Z8(this)}function L8(t,e){var r;if(typeof t=="string"){if(r=this.getSchema(t),!r)throw new Error('no schema with key or ref "'+t+'"')}else{var s=this._addSchema(t);r=s.validate||this._compile(s)}var n=r(e);return r.$async!==!0&&(this.errors=r.errors),n}function N8(t,e){var r=this._addSchema(t,void 0,e);return r.validate||this._compile(r)}function R8(t,e,r,s){if(Array.isArray(t)){for(var n=0;n<t.length;n++)this.addSchema(t[n],void 0,r,s);return this}var i=this._getId(t);if(i!==void 0&&typeof i!="string")throw new Error("schema id must be string");return e=Qn.normalizeId(e||i),yS(this,e),this._schemas[e]=this._addSchema(t,r,s,!0),this}function j8(t,e,r){return this.addSchema(t,e,r,!0),this}function M8(t,e){var r=t.$schema;if(r!==void 0&&typeof r!="string")throw new Error("$schema must be a string");if(r=r||this._opts.defaultMeta||q8(this),!r)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var s=this.validate(r,t);if(!s&&e){var n="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(n);else throw new Error(n)}return s}function q8(t){var e=t._opts.meta;return t._opts.defaultMeta=typeof e=="object"?t._getId(e)||e:t.getSchema(rl)?rl:void 0,t._opts.defaultMeta}function U8(t){var e=gS(this,t);switch(typeof e){case"object":return e.validate||this._compile(e);case"string":return this.getSchema(e);case"undefined":return $8(this,t)}}function $8(t,e){var r=Qn.schema.call(t,{schema:{}},e);if(r){var s=r.schema,n=r.root,i=r.baseId,o=pS.call(t,s,n,void 0,i);return t._fragments[e]=new fS({ref:e,fragment:!0,schema:s,root:n,baseId:i,validate:o}),o}}function gS(t,e){return e=Qn.normalizeId(e),t._schemas[e]||t._refs[e]||t._fragments[e]}function V8(t){if(t instanceof RegExp)return tl(this,this._schemas,t),tl(this,this._refs,t),this;switch(typeof t){case"undefined":return tl(this,this._schemas),tl(this,this._refs),this._cache.clear(),this;case"string":var e=gS(this,t);return e&&this._cache.del(e.cacheKey),delete this._schemas[t],delete this._refs[t],this;case"object":var r=this._opts.serialize,s=r?r(t):t;this._cache.del(s);var n=this._getId(t);n&&(n=Qn.normalizeId(n),delete this._schemas[n],delete this._refs[n])}return this}function tl(t,e,r){for(var s in e){var n=e[s];!n.meta&&(!r||r.test(s))&&(t._cache.del(n.cacheKey),delete e[s])}}function W8(t,e,r,s){if(typeof t!="object"&&typeof t!="boolean")throw new Error("schema should be object or boolean");var n=this._opts.serialize,i=n?n(t):t,o=this._cache.get(i);if(o)return o;s=s||this._opts.addUsedSchema!==!1;var a=Qn.normalizeId(this._getId(t));a&&s&&yS(this,a);var l=this._opts.validateSchema!==!1&&!e,u;l&&!(u=a&&a==Qn.normalizeId(t.$schema))&&this.validateSchema(t,!0);var c=Qn.ids.call(this,t),p=new fS({id:a,schema:t,localRefs:c,cacheKey:i,meta:r});return a[0]!="#"&&s&&(this._refs[a]=p),this._cache.put(i,p),l&&u&&this.validateSchema(t,!0),p}function z8(t,e){if(t.compiling)return t.validate=n,n.schema=t.schema,n.errors=null,n.root=e||n,t.schema.$async===!0&&(n.$async=!0),n;t.compiling=!0;var r;t.meta&&(r=this._opts,this._opts=this._metaOpts);var s;try{s=pS.call(this,t.schema,e,t.localRefs)}catch(i){throw delete t.validate,i}finally{t.compiling=!1,t.meta&&(this._opts=r)}return t.validate=s,t.refs=s.refs,t.refVal=s.refVal,t.root=s.root,s;function n(){var i=t.validate,o=i.apply(this,arguments);return n.errors=i.errors,o}}function G8(t){switch(t.schemaId){case"auto":return J8;case"id":return K8;default:return H8}}function K8(t){return t.$id&&this.logger.warn("schema $id ignored",t.$id),t.id}function H8(t){return t.id&&this.logger.warn("schema id ignored",t.id),t.$id}function J8(t){if(t.$id&&t.id&&t.$id!=t.id)throw new Error("schema $id is different from id");return t.$id||t.id}function X8(t,e){if(t=t||this.errors,!t)return"No errors";e=e||{};for(var r=e.separator===void 0?", ":e.separator,s=e.dataVar===void 0?"data":e.dataVar,n="",i=0;i<t.length;i++){var o=t[i];o&&(n+=s+o.dataPath+" "+o.message+r)}return n.slice(0,-r.length)}function Q8(t,e){return typeof e=="string"&&(e=new RegExp(e)),this._formats[t]=e,this}function Y8(t){var e;if(t._opts.$data&&(e=uS(),t.addMetaSchema(e,e.$id,!0)),t._opts.meta!==!1){var r=df();t._opts.$data&&(r=hS(r,O8)),t.addMetaSchema(r,rl,!0),t._refs["http://json-schema.org/schema"]=rl}}function Z8(t){var e=t._opts.schemas;if(e)if(Array.isArray(e))t.addSchema(e);else for(var r in e)t.addSchema(e[r],r)}function eU(t){for(var e in t._opts.formats){var r=t._opts.formats[e];t.addFormat(e,r)}}function tU(t){for(var e in t._opts.keywords){var r=t._opts.keywords[e];t.addKeyword(e,r)}}function yS(t,e){if(t._schemas[e]||t._refs[e])throw new Error('schema with key or id "'+e+'" already exists')}function rU(t){for(var e=mS.copy(t._opts),r=0;r<cS.length;r++)delete e[cS[r]];return e}function nU(t){var e=t._opts.logger;if(e===!1)t.logger={log:yf,warn:yf,error:yf};else{if(e===void 0&&(e=console),!(typeof e=="object"&&e.log&&e.warn&&e.error))throw new Error("logger must implement log, warn and error methods");t.logger=e}}function yf(){}});var bS=B((Eee,sU)=>{sU.exports={id:"http://json-schema.org/draft-04/schema#",$schema:"http://json-schema.org/draft-04/schema#",description:"Core schema meta-schema",definitions:{schemaArray:{type:"array",minItems:1,items:{$ref:"#"}},positiveInteger:{type:"integer",minimum:0},positiveIntegerDefault0:{allOf:[{$ref:"#/definitions/positiveInteger"},{default:0}]},simpleTypes:{enum:["array","boolean","integer","null","number","object","string"]},stringArray:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},type:"object",properties:{id:{type:"string"},$schema:{type:"string"},title:{type:"string"},description:{type:"string"},default:{},multipleOf:{type:"number",minimum:0,exclusiveMinimum:!0},maximum:{type:"number"},exclusiveMaximum:{type:"boolean",default:!1},minimum:{type:"number"},exclusiveMinimum:{type:"boolean",default:!1},maxLength:{$ref:"#/definitions/positiveInteger"},minLength:{$ref:"#/definitions/positiveIntegerDefault0"},pattern:{type:"string",format:"regex"},additionalItems:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},items:{anyOf:[{$ref:"#"},{$ref:"#/definitions/schemaArray"}],default:{}},maxItems:{$ref:"#/definitions/positiveInteger"},minItems:{$ref:"#/definitions/positiveIntegerDefault0"},uniqueItems:{type:"boolean",default:!1},maxProperties:{$ref:"#/definitions/positiveInteger"},minProperties:{$ref:"#/definitions/positiveIntegerDefault0"},required:{$ref:"#/definitions/stringArray"},additionalProperties:{anyOf:[{type:"boolean"},{$ref:"#"}],default:{}},definitions:{type:"object",additionalProperties:{$ref:"#"},default:{}},properties:{type:"object",additionalProperties:{$ref:"#"},default:{}},patternProperties:{type:"object",additionalProperties:{$ref:"#"},default:{}},dependencies:{type:"object",additionalProperties:{anyOf:[{$ref:"#"},{$ref:"#/definitions/stringArray"}]}},enum:{type:"array",minItems:1,uniqueItems:!0},type:{anyOf:[{$ref:"#/definitions/simpleTypes"},{type:"array",items:{$ref:"#/definitions/simpleTypes"},minItems:1,uniqueItems:!0}]},format:{type:"string"},allOf:{$ref:"#/definitions/schemaArray"},anyOf:{$ref:"#/definitions/schemaArray"},oneOf:{$ref:"#/definitions/schemaArray"},not:{$ref:"#"}},dependencies:{exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},default:{}}});var CS=B((bee,SS)=>{"use strict";var iU=ES(),vS=bS();SS.exports=(t={})=>{let e=new iU({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...t});return e.addMetaSchema(vS),e._opts.defaultMeta=vS.id,e}});var il=B((vee,DS)=>{"use strict";var{deepMergeArrays:aU}=Kc(),{flatConfigSchema:wS,hasMethod:oU}=ho(),{ObjectSchema:lU}=zp(),uU=Gp(),xf=Object.freeze({type:"array",minItems:0,maxItems:0}),sl=new Map([[0,0],[1,1],[2,2],["off",0],["warn",1],["error",2]]),Ef=new WeakMap,bf;function cU(){return bf||(bf=CS()()),bf}function pU({pluginName:t,ruleName:e},r){let s=t==="@"?e:`${t}/${e}`,n=`Key "rules": Key "${s}"`,i=`${n}: Could not find plugin "${t}" in configuration.`,o=i;if(r.plugins&&r.plugins[t]){let l=uU.rules[e];if(t==="@"&&l)i=`${n}: Rule "${e}" was removed and replaced by "${l}".`;else{i=`${n}: Could not find "${e}" in plugin "${t}".`;for(let[u,c]of Object.entries(r.plugins))if(c.rules&&c.rules[e]){i+=` Did you mean "${u}/${e}"?`;break}}}let a=new TypeError(i);throw i===o&&(a.messageTemplate="config-plugin-missing",a.messageData={pluginName:t,ruleId:s}),a}var Sf=class extends Error{constructor(e,r){super(`Error while processing options validation schema of rule '${e}': ${r.message}`,{cause:r}),this.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"}};function AS(t){let e,r;return t.includes("/")?(t.startsWith("@")?e=t.slice(0,t.lastIndexOf("/")):e=t.slice(0,t.indexOf("/")),r=t.slice(e.length+1)):(e="@",r=t),{pluginName:e,ruleName:r}}function fU(t,e){let{pluginName:r,ruleName:s}=AS(t);return e.plugins?.[r]?.rules?.[s]}function kS(t){if(!t.meta)return{...xf};let e=t.meta.schema;if(typeof e>"u")return{...xf};if(e===!1)return null;if(typeof e!="object"||e===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(e)?e.length?{type:"array",items:e,minItems:0,maxItems:e.length}:{...xf}:e}function Yi(t){let e=t.split("/");return{objectName:e.pop(),pluginName:e.join("/")}}function hU(t){return t.startsWith("@/")?`js/${t.slice(2)}`:t}function mU(t,e,r){if(!t)return!0;let{objectName:s}=Yi(e);for(let n of t){if(typeof n!="string")continue;if(n==="*"||n===e)return!0;let{pluginName:i,objectName:o}=Yi(n);if(o==="*"){if(r.includes(i))return!0}else if(r.includes(i)&&o===s)return!0}return!1}function Cf(t){let e=t.name;if(!e&&(!t.meta||(e=t.meta.name,!e)))return null;let r=t.version;return r||(r=t.meta&&t.meta.version),r?`${e}@${r}`:e}function vf(t,e,r){if(typeof t=="function"){let s=new TypeError(`Cannot serialize key "${e}" in "${r}": Function values are not supported.`);throw s.messageTemplate="config-serialize-function",s.messageData={key:e,objectKey:r},s}}function TS(t,e="languageOptions"){if(typeof t.toJSON=="function"){let s=t.toJSON();return vf(s,"toJSON",e),s}let r={};for(let[s,n]of Object.entries(t)){if(n){if(typeof n=="object"){let i=Cf(n);typeof n.toJSON=="function"?(r[s]=n.toJSON(),vf(r[s],s,e)):i&&oU(n)?r[s]=i:r[s]=TS(n,s);continue}vf(n,s,e)}r[s]=n}return r}function dU(t,e){if(!Ef.has(t))try{let r=kS(t);r&&Ef.set(t,cU().compile(r))}catch(r){throw new Sf(e,r)}return Ef.get(t)}var wf=class{#e;#t;#r=new Map;constructor(e){let{plugins:r,language:s,languageOptions:n,processor:i,...o}=e;if(new lU(wS).validate(e),Object.assign(this,o),!s)throw new TypeError("Key 'language' is required.");this.plugins=r,this.language=s;let{pluginName:l,objectName:u}=Yi(s);if(this.#e=s,!r||!r[l]||!r[l].languages||!r[l].languages[u])throw new TypeError(`Key "language": Could not find "${u}" in plugin "${l}".`);this.language=r[l].languages[u],this.language.defaultLanguageOptions??n?this.languageOptions=wS.languageOptions.merge(this.language.defaultLanguageOptions,n):this.languageOptions={};try{this.language.validateLanguageOptions(this.languageOptions)}catch(c){throw new TypeError(`Key "languageOptions": ${c.message}`,{cause:c})}if(this.language.normalizeLanguageOptions&&(this.languageOptions=this.language.normalizeLanguageOptions(this.languageOptions)),i)if(this.processor=i,typeof i=="string"){let{pluginName:c,objectName:p}=Yi(i);if(this.#t=i,!r||!r[c]||!r[c].processors||!r[c].processors[p])throw new TypeError(`Key "processor": Could not find "${p}" in plugin "${c}".`);this.processor=r[c].processors[p]}else if(typeof i=="object")this.#t=Cf(i),this.processor=i;else throw new TypeError("Key 'processor' must be a string or an object.");this.rules&&(this.#n(),this.validateRulesConfig(this.rules))}toJSON(){if(this.processor&&!this.#t)throw new Error("Could not serialize processor object (missing 'meta' object).");if(!this.#e)throw new Error("Could not serialize language object (missing 'meta' object).");return{...this,plugins:Object.entries(this.plugins).map(([e,r])=>{let s=Cf(r);return s?`${e}:${s}`:e}),language:this.#e,languageOptions:TS(this.languageOptions),processor:this.#t}}getRuleDefinition(e){if(this.#r.has(e))return this.#r.get(e);let r=fU(e,this);return this.#r.set(e,r),r}#n(){for(let[e,r]of Object.entries(this.rules)){let s=Array.isArray(r)?r:[r];s[0]=sl.get(s[0]);let n=this.getRuleDefinition(e),i=s.slice(1),o=aU(n?.meta?.defaultOptions,i);o.length&&(s=[s[0],...o]),this.rules[e]=s}}validateRulesConfig(e){if(!e)throw new TypeError("Config is required for validation.");let r=hU(this.#e),{pluginName:s}=Yi(r),n=this.plugins[s]??(s==="js"?this.plugins["@"]:void 0),i=n?.meta?.namespace?[s,n.meta.namespace]:[s],o=[];for(let[a,l]of Object.entries(e)){if(a==="__proto__"||l[0]===0)continue;let u=this.getRuleDefinition(a);if(u||pU(AS(a),this),u.meta?.languages!==void 0){if(!Array.isArray(u.meta.languages))throw new TypeError(`Key "rules": Key "${a}": Key "meta": Key "languages": Expected an array.`);for(let p of u.meta.languages)if(typeof p!="string")throw new TypeError(`Key "rules": Key "${a}": Key "meta": Key "languages": Expected each element to be a string.`)}mU(u.meta?.languages,r,i)||o.push(a);let c=dU(u,a);if(c&&(c(l.slice(1)),c.errors))throw new Error(`Key "rules": Key "${a}":
23
+ ${c.errors.map(p=>{if(p.keyword==="additionalProperties"&&p.schema===!1&&typeof p.parentSchema?.properties=="object"&&typeof p.params?.additionalProperty=="string"){let h=Object.keys(p.parentSchema.properties).map(f=>`"${f}"`);return` Value ${JSON.stringify(p.data)} ${p.message}.
24
+ Unexpected property "${p.params.additionalProperty}". Expected properties: ${h.join(", ")}.
25
+ `}return` Value ${JSON.stringify(p.data)} ${p.message}.
26
+ `}).join("")}`)}if(o.length>0){let a=new TypeError(`Key "rules": The following rules do not support the language "${r}":
27
+ ${o.map(l=>` - "${l}"`).join(`
28
+ `)}`);throw a.messageTemplate="rule-unsupported-language",a.messageData={ruleIds:o,language:r},a}}static getRuleOptionsSchema(e){return kS(e)}static getRuleNumericSeverity(e){let r=Array.isArray(e)?e[0]:e;return sl.has(r)?sl.get(r):typeof r=="string"?sl.get(r.toLowerCase())??0:0}};DS.exports={Config:wf}});var _S=B((See,FS)=>{"use strict";var gU=qi(),{Config:yU}=il();function al(t,e){return t.line-e.line||t.column-e.column}function xU(t){let e=new Map;for(let r of t){let{unprocessedDirective:{parentDirective:s}}=r;e.has(s)?e.get(s).push(r):e.set(s,[r])}return[...e.values()]}function EU(t,e,r){let s=e.value.trim(),n=r.text.indexOf(s,r.getRange(e.node)[0]);return t.map(i=>{let{ruleId:o}=i,l=new RegExp(String.raw`(?:^|\s*,\s*)(?<quote>['"]?)${gU(o)}\k<quote>(?:\s*,\s*|$)`,"u").exec(s),u=l[0],c=n+l.index,p=c+u.length,h=u.indexOf(","),f=u.lastIndexOf(","),d,g;return h!==f?(d=c+h,g=c+f):(d=c,g=p),{description:`'${o}'`,fix:{range:[d,g],text:""},unprocessedDirective:i.unprocessedDirective}})}function bU(t,e,r){let s=r.getRange(e),n=t.filter(i=>i.ruleId).map(i=>`'${i.ruleId}'`);return{description:n.length<=2?n.join(" or "):`${n.slice(0,n.length-1).join(", ")}, or ${n.at(-1)}`,fix:{range:s,text:" "},unprocessedDirective:t[0].unprocessedDirective}}function IS(t,e){return xU(t).flatMap(s=>{let{parentDirective:n}=s[0].unprocessedDirective,i=new Set(n.ruleIds);for(let o of s)i.delete(o.ruleId);return i.size?EU(s,n,e):[bU(s,n.node,e)]})}function vU(t){let e=new Map,r=new Set;for(let s=t.length-1;s>=0;s--){let n=t[s];if(n.type==="disable"){if(e.size===0)continue;if(n.ruleId===null){for(let i of e.values())r.add(i);e.clear()}else{let i=e.get(n.ruleId);if(i)r.add(i);else{let o=e.get(null);o&&r.add(o)}}}else n.type==="enable"&&(n.ruleId===null?(e.clear(),e.set(null,n)):e.set(n.ruleId,n))}return r}function PS(t){if(t.directives.length===0)return{problems:t.problems.slice(),unusedDirectives:[]};let e=[],r=new Set,{sourceCode:s}=t;for(let c of t.problems){let p=[],h=0;for(;h<t.directives.length&&al(t.directives[h],c)<=0;){let f=t.directives[h++];if(f.ruleId===null||f.ruleId===c.ruleId)switch(f.type){case"disable":p.push(f);break;case"enable":p=[];break}}if(p.length>0){let f=p.map(d=>({kind:"directive",justification:d.unprocessedDirective.justification}));c.suppressions?c.suppressions=c.suppressions.concat(f):(c.suppressions=f,r.add(p.at(-1)))}e.push(c)}let n=t.directives.filter(c=>c.type==="disable"&&!r.has(c)&&!t.rulesToIgnore.has(c.ruleId)),i=new Set(t.directives.filter(c=>c.unprocessedDirective.type==="enable"&&!t.rulesToIgnore.has(c.ruleId)));if(i.size>0)for(let c of vU(t.directives))i.delete(c);let o=IS(n,s).concat(IS(i,s)),a=t.language.columnStart===1?0:1,l=t.language.lineStart===1?0:1,u=o.map(({description:c,fix:p,unprocessedDirective:h})=>{let{parentDirective:f,type:d,line:g,column:y}=h,v;d==="enable"?v=c?`Unused eslint-enable directive (no matching eslint-disable directives were found for ${c}).`:"Unused eslint-enable directive (no matching eslint-disable directives were found).":v=c?`Unused eslint-disable directive (no problems were reported from ${c}).`:"Unused eslint-disable directive (no problems were reported).";let S=s.getLoc(f.node);return{ruleId:null,message:v,line:d==="disable-next-line"?S.start.line+l:g,column:d==="disable-next-line"?S.start.column+a:y,severity:t.reportUnusedDisableDirectives==="warn"?1:2,...t.disableFixes?{}:{fix:p}}});return{problems:e,unusedDirectives:u}}FS.exports=({language:t,sourceCode:e,directives:r,disableFixes:s,problems:n,configuredRules:i,ruleFilter:o,reportUnusedDisableDirectives:a="off"})=>{let l=r.filter(f=>f.type==="disable"||f.type==="enable").map(f=>Object.assign({},f,{unprocessedDirective:f})).sort(al),u=r.flatMap(f=>{switch(f.type){case"disable":case"enable":return[];case"disable-line":return[{type:"disable",line:f.line,column:1,ruleId:f.ruleId,unprocessedDirective:f},{type:"enable",line:f.line+1,column:0,ruleId:f.ruleId,unprocessedDirective:f}];case"disable-next-line":return[{type:"disable",line:f.line+1,column:1,ruleId:f.ruleId,unprocessedDirective:f},{type:"enable",line:f.line+2,column:0,ruleId:f.ruleId,unprocessedDirective:f}];default:throw new TypeError(`Unrecognized directive type '${f.type}'`)}}).sort(al),c=i&&o?new Set(Object.keys(i).filter(f=>{let d=yU.getRuleNumericSeverity(i[f]);return d===0?!1:!o({severity:d,ruleId:f})})):new Set;c.size>0&&c.add(null);let p=PS({language:t,sourceCode:e,problems:n,directives:l,disableFixes:s,reportUnusedDisableDirectives:a,rulesToIgnore:c}),h=PS({language:t,sourceCode:e,problems:p.problems,directives:u,disableFixes:s,reportUnusedDisableDirectives:a,rulesToIgnore:c});return a!=="off"?h.problems.concat(p.unusedDirectives).concat(h.unusedDirectives).sort(al):h.problems}});var LS=B((Cee,OS)=>{"use strict";var ol=mn()("eslint:source-code-fixer"),Af="\uFEFF";function SU(t,e){return t.fix.range[0]-e.fix.range[0]||t.fix.range[1]-e.fix.range[1]}function CU(t,e){return t.line-e.line||t.column-e.column}function BS(){Object.freeze(this)}BS.applyFixes=function(t,e,r){if(ol("Applying fixes"),r===!1)return ol("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:e,output:t};let s=[],n=[],i=t.startsWith(Af)?Af:"",o=i?t.slice(1):t,a=Number.NEGATIVE_INFINITY,l=i;function u(c){let p=c.fix,h=p.range[0],f=p.range[1];return a>=h||h>f?(s.push(c),!1):((h<0&&f>=0||h===0&&p.text.startsWith(Af))&&(l=""),l+=o.slice(Math.max(0,a),Math.max(0,h)),l+=p.text,a=f,!0)}if(e.forEach(c=>{Object.hasOwn(c,"fix")&&c.fix?n.push(c):s.push(c)}),n.length){ol("Found fixes to apply");let c=!1;for(let p of n.sort(SU))typeof r!="function"||r(p)?(u(p),c=!0):s.push(p);return l+=o.slice(Math.max(0,a)),{fixed:c,messages:s.sort(CU),output:l}}return ol("No fixes to apply"),{fixed:!1,messages:e,output:i+o}};OS.exports=BS});var MS=B((wee,jS)=>{"use strict";var wU=Object.freeze([]),Tf=new WeakMap;function AU(t){return Tf.get(t)}function kU(t,e){Tf.set(t,e)}function RS(t,e){t!==null&&(typeof t=="object"||typeof t=="function")&&(t.ruleId=e)}function NS(t,e){let r=Tf.get(e);r!==void 0&&RS(t,r)}var kf=class{#e=new Map;add(e,r){let s=this.#e.get(e);s?s.push(r):this.#e.set(e,[r])}get(e){return this.#e.get(e)??wU}forEachName(e){this.#e.forEach((r,s)=>{e(s)})}callSync(e,...r){let s=this.#e.get(e);if(s){if(r.length===1){let n=r[0];for(let i=0;i<s.length;i++){let o=s[i];try{o(n)}catch(a){throw NS(a,o),a}}return}for(let n=0;n<s.length;n++){let i=s[n];try{i(...r)}catch(o){throw NS(o,i),o}}}}};jS.exports={SourceCodeVisitor:kf,getListenerRuleId:AU,setListenerRuleId:kU,attachRuleId:RS}});var Df=B((Aee,qS)=>{"use strict";function TU(){return process.hrtime()}function DU(t){let e=process.hrtime(t);return e[0]*1e3+e[1]/1e6}qS.exports={startTime:TU,endTime:DU}});var zS=B((kee,WS)=>{"use strict";var{startTime:IU,endTime:PU}=Df();function FU(t,e,r){return t+new Array(e-t.length+1).join(r||" ")}function US(t,e,r){return new Array(e-t.length+1).join(r||" ")+t}var If=!!process.env.TIMING,_U=["Rule","Time (ms)","Relative"],$S=[FU,US,US];function VS(){if(typeof process.env.TIMING!="string")return 10;if(process.env.TIMING.toLowerCase()==="all")return Number.POSITIVE_INFINITY;let e=Number.parseInt(process.env.TIMING,10);return e>10?e:10}function BU(t){let e=0,r=Object.keys(t).map(i=>{let o=t[i];return e+=o,[i,o]}).sort((i,o)=>o[1]-i[1]).slice(0,VS());r.forEach(i=>{i.push(`${(i[1]*100/e).toFixed(1)}%`),i[1]=i[1].toFixed(3)}),r.unshift(_U);let s=[];r.forEach(i=>{let o=i.length;for(let a=0;a<o;a++){let l=i[a].length;(!s[a]||l>s[a])&&(s[a]=l)}});let n=r.map(i=>i.map((o,a)=>$S[a](o,s[a])).join(" | "));n.splice(1,0,s.map((i,o)=>{let a=o!==0&&o!==s.length-1?2:1;return $S[o](":",i+a,"-")}).join("|")),console.log(n.join(`
29
+ `))}WS.exports=(function(){let t=Object.create(null),e=!0;function r(o,a,l){return function(...u){let c=IU(),p=a(...u),h=PU(c);return If&&(typeof t[o]>"u"&&(t[o]=0),t[o]+=h),l?{result:p,tdiff:h}:p}}function s(){return{...t}}function n(o){for(let[a,l]of Object.entries(o))typeof t[a]>"u"&&(t[a]=0),t[a]+=l}function i(){e=!1}return If&&process.on("exit",()=>{e&&Object.keys(t).length>0&&BU(t)}),{time:r,enabled:If,getListSize:VS,getData:s,mergeData:n,disableDisplay:i}})()});var HS=B((Tee,KS)=>{"use strict";var GS=mn()("eslint:rules"),Zi=class t extends Map{constructor(e){let r=e.length;super(GS.enabled?e.map(([s,n])=>{let i=null;return[s,()=>(i||(GS("Loading rule %o (remaining=%d)",s,--r),i=n()),i)]}):e),Object.defineProperty(t.prototype,"set",{configurable:!0,value:void 0})}get(e){let r=super.get(e);return r&&r()}*values(){for(let e of super.values())yield e()}*entries(){for(let[e,r]of super.entries())yield[e,r()]}forEach(e,r){for(let[s,n]of super.entries())e.call(r,n(),s,this)}};Object.defineProperties(Zi.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:Zi.prototype.entries}});KS.exports={LazyLoadingRuleMap:Zi}});var XS=B((Dee,JS)=>{(function(){"use strict";function t(o){if(o==null)return!1;switch(o.type){case"ArrayExpression":case"AssignmentExpression":case"BinaryExpression":case"CallExpression":case"ConditionalExpression":case"FunctionExpression":case"Identifier":case"Literal":case"LogicalExpression":case"MemberExpression":case"NewExpression":case"ObjectExpression":case"SequenceExpression":case"ThisExpression":case"UnaryExpression":case"UpdateExpression":return!0}return!1}function e(o){if(o==null)return!1;switch(o.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function r(o){if(o==null)return!1;switch(o.type){case"BlockStatement":case"BreakStatement":case"ContinueStatement":case"DebuggerStatement":case"DoWhileStatement":case"EmptyStatement":case"ExpressionStatement":case"ForInStatement":case"ForStatement":case"IfStatement":case"LabeledStatement":case"ReturnStatement":case"SwitchStatement":case"ThrowStatement":case"TryStatement":case"VariableDeclaration":case"WhileStatement":case"WithStatement":return!0}return!1}function s(o){return r(o)||o!=null&&o.type==="FunctionDeclaration"}function n(o){switch(o.type){case"IfStatement":return o.alternate!=null?o.alternate:o.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return o.body}return null}function i(o){var a;if(o.type!=="IfStatement"||o.alternate==null)return!1;a=o.consequent;do{if(a.type==="IfStatement"&&a.alternate==null)return!0;a=n(a)}while(a);return!1}JS.exports={isExpression:t,isStatement:r,isIterationStatement:e,isSourceElement:s,isProblematicIfStatement:i,trailingStatement:n}})()});var Pf=B((Iee,QS)=>{(function(){"use strict";var t,e,r,s,n,i;e={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/,NonAsciiIdentifierPart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0300-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u0483-\u0487\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1714\u1720-\u1734\u1740-\u1753\u1760-\u176C\u176E-\u1770\u1772\u1773\u1780-\u17D3\u17D7\u17DC\u17DD\u17E0-\u17E9\u180B-\u180D\u1810-\u1819\u1820-\u1877\u1880-\u18AA\u18B0-\u18F5\u1900-\u191E\u1920-\u192B\u1930-\u193B\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19D9\u1A00-\u1A1B\u1A20-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AA7\u1AB0-\u1ABD\u1B00-\u1B4B\u1B50-\u1B59\u1B6B-\u1B73\u1B80-\u1BF3\u1C00-\u1C37\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C88\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\u2C2E\u2C30-\u2C5E\u2C60-\u2CE4\u2CEB-\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D7F-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2DE0-\u2DFF\u2E2F\u3005-\u3007\u3021-\u302F\u3031-\u3035\u3038-\u303C\u3041-\u3096\u3099\u309A\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]/},t={NonAsciiIdentifierStart:/[\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0561-\u0587\u05D0-\u05EA\u05F0-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u08A0-\u08B4\u08B6-\u08BD\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u170C\u170E-\u1711\u1720-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1877\u1880-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4B\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C88\u1CE9-\u1CEC\u1CEE-\u1CF1\u1CF5\u1CF6\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD40-\uDD74\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF30-\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-\uDE33\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2]|\uD804[\uDC03-\uDC37\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\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-\uDF19]|\uD806[\uDCA0-\uDCDF\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2E]|\uD811[\uDC00-\uDE46]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDF00-\uDF44\uDF50\uDF93-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\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]|\uD87E[\uDC00-\uDE1D]/,NonAsciiIdentifierPart:/[\xAA\xB5\xB7\xBA\xC0-\xD6\xD8-\xF6\xF8-\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\u0561-\u0587\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7\u05D0-\u05EA\u05F0-\u05F2\u0610-\u061A\u0620-\u0669\u066E-\u06D3\u06D5-\u06DC\u06DF-\u06E8\u06EA-\u06FC\u06FF\u0710-\u074A\u074D-\u07B1\u07C0-\u07F5\u07FA\u0800-\u082D\u0840-\u085B\u08A0-\u08B4\u08B6-\u08BD\u08D4-\u08E1\u08E3-\u0963\u0966-\u096F\u0971-\u0983\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BC-\u09C4\u09C7\u09C8\u09CB-\u09CE\u09D7\u09DC\u09DD\u09DF-\u09E3\u09E6-\u09F1\u0A01-\u0A03\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A3C\u0A3E-\u0A42\u0A47\u0A48\u0A4B-\u0A4D\u0A51\u0A59-\u0A5C\u0A5E\u0A66-\u0A75\u0A81-\u0A83\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABC-\u0AC5\u0AC7-\u0AC9\u0ACB-\u0ACD\u0AD0\u0AE0-\u0AE3\u0AE6-\u0AEF\u0AF9\u0B01-\u0B03\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3C-\u0B44\u0B47\u0B48\u0B4B-\u0B4D\u0B56\u0B57\u0B5C\u0B5D\u0B5F-\u0B63\u0B66-\u0B6F\u0B71\u0B82\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD0\u0BD7\u0BE6-\u0BEF\u0C00-\u0C03\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D-\u0C44\u0C46-\u0C48\u0C4A-\u0C4D\u0C55\u0C56\u0C58-\u0C5A\u0C60-\u0C63\u0C66-\u0C6F\u0C80-\u0C83\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBC-\u0CC4\u0CC6-\u0CC8\u0CCA-\u0CCD\u0CD5\u0CD6\u0CDE\u0CE0-\u0CE3\u0CE6-\u0CEF\u0CF1\u0CF2\u0D01-\u0D03\u0D05-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D-\u0D44\u0D46-\u0D48\u0D4A-\u0D4E\u0D54-\u0D57\u0D5F-\u0D63\u0D66-\u0D6F\u0D7A-\u0D7F\u0D82\u0D83\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E01-\u0E3A\u0E40-\u0E4E\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E87\u0E88\u0E8A\u0E8D\u0E94-\u0E97\u0E99-\u0E9F\u0EA1-\u0EA3\u0EA5\u0EA7\u0EAA\u0EAB\u0EAD-\u0EB9\u0EBB-\u0EBD\u0EC0-\u0EC4\u0EC6\u0EC8-\u0ECD\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F18\u0F19\u0F20-\u0F29\u0F35\u0F37\u0F39\u0F3E-\u0F47\u0F49-\u0F6C\u0F71-\u0F84\u0F86-\u0F97\u0F99-\u0FBC\u0FC6\u1000-\u1049\u1050-\u109D\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u135D-\u135F\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-\u1877\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\u1CD0-\u1CD2\u1CD4-\u1CF6\u1CF8\u1CF9\u1D00-\u1DF5\u1DFB-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u200C\u200D\u203F\u2040\u2054\u2071\u207F\u2090-\u209C\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2102\u2107\u210A-\u2113\u2115\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-\u312D\u3131-\u318E\u31A0-\u31BA\u31F0-\u31FF\u3400-\u4DB5\u4E00-\u9FD5\uA000-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66F\uA674-\uA67D\uA67F-\uA6F1\uA717-\uA71F\uA722-\uA788\uA78B-\uA7AE\uA7B0-\uA7B7\uA7F7-\uA827\uA840-\uA873\uA880-\uA8C5\uA8D0-\uA8D9\uA8E0-\uA8F7\uA8FB\uA8FD\uA900-\uA92D\uA930-\uA953\uA960-\uA97C\uA980-\uA9C0\uA9CF-\uA9D9\uA9E0-\uA9FE\uAA00-\uAA36\uAA40-\uAA4D\uAA50-\uAA59\uAA60-\uAA76\uAA7A-\uAAC2\uAADB-\uAADD\uAAE0-\uAAEF\uAAF2-\uAAF6\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB65\uAB70-\uABEA\uABEC\uABED\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE00-\uFE0F\uFE20-\uFE2F\uFE33\uFE34\uFE4D-\uFE4F\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF3F\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\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\uDF30-\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-\uDE33\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]|\uD804[\uDC00-\uDC46\uDC66-\uDC6F\uDC7F-\uDCBA\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD00-\uDD34\uDD36-\uDD3F\uDD50-\uDD73\uDD76\uDD80-\uDDC4\uDDCA-\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\uDF3C-\uDF44\uDF47\uDF48\uDF4B-\uDF4D\uDF50\uDF57\uDF5D-\uDF63\uDF66-\uDF6C\uDF70-\uDF74]|\uD805[\uDC00-\uDC4A\uDC50-\uDC59\uDC80-\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDB5\uDDB8-\uDDC0\uDDD8-\uDDDD\uDE00-\uDE40\uDE44\uDE50-\uDE59\uDE80-\uDEB7\uDEC0-\uDEC9\uDF00-\uDF19\uDF1D-\uDF2B\uDF30-\uDF39]|\uD806[\uDCA0-\uDCE9\uDCFF\uDEC0-\uDEF8]|\uD807[\uDC00-\uDC08\uDC0A-\uDC36\uDC38-\uDC40\uDC50-\uDC59\uDC72-\uDC8F\uDC92-\uDCA7\uDCA9-\uDCB6]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|[\uD80C\uD81C-\uD820\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872][\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[\uDF00-\uDF44\uDF50-\uDF7E\uDF8F-\uDF9F\uDFE0]|\uD821[\uDC00-\uDFEC]|\uD822[\uDC00-\uDEF2]|\uD82C[\uDC00\uDC01]|\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]|\uD83A[\uDC00-\uDCC4\uDCD0-\uDCD6\uDD00-\uDD4A\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]|\uD869[\uDC00-\uDED6\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF34\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1]|\uD87E[\uDC00-\uDE1D]|\uDB40[\uDD00-\uDDEF]/};function o(y){return 48<=y&&y<=57}function a(y){return 48<=y&&y<=57||97<=y&&y<=102||65<=y&&y<=70}function l(y){return y>=48&&y<=55}r=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function u(y){return y===32||y===9||y===11||y===12||y===160||y>=5760&&r.indexOf(y)>=0}function c(y){return y===10||y===13||y===8232||y===8233}function p(y){if(y<=65535)return String.fromCharCode(y);var v=String.fromCharCode(Math.floor((y-65536)/1024)+55296),S=String.fromCharCode((y-65536)%1024+56320);return v+S}for(s=new Array(128),i=0;i<128;++i)s[i]=i>=97&&i<=122||i>=65&&i<=90||i===36||i===95;for(n=new Array(128),i=0;i<128;++i)n[i]=i>=97&&i<=122||i>=65&&i<=90||i>=48&&i<=57||i===36||i===95;function h(y){return y<128?s[y]:e.NonAsciiIdentifierStart.test(p(y))}function f(y){return y<128?n[y]:e.NonAsciiIdentifierPart.test(p(y))}function d(y){return y<128?s[y]:t.NonAsciiIdentifierStart.test(p(y))}function g(y){return y<128?n[y]:t.NonAsciiIdentifierPart.test(p(y))}QS.exports={isDecimalDigit:o,isHexDigit:a,isOctalDigit:l,isWhiteSpace:u,isLineTerminator:c,isIdentifierStartES5:h,isIdentifierPartES5:f,isIdentifierStartES6:d,isIdentifierPartES6:g}})()});var ZS=B((Pee,YS)=>{(function(){"use strict";var t=Pf();function e(h){switch(h){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function r(h,f){return!f&&h==="yield"?!1:s(h,f)}function s(h,f){if(f&&e(h))return!0;switch(h.length){case 2:return h==="if"||h==="in"||h==="do";case 3:return h==="var"||h==="for"||h==="new"||h==="try";case 4:return h==="this"||h==="else"||h==="case"||h==="void"||h==="with"||h==="enum";case 5:return h==="while"||h==="break"||h==="catch"||h==="throw"||h==="const"||h==="yield"||h==="class"||h==="super";case 6:return h==="return"||h==="typeof"||h==="delete"||h==="switch"||h==="export"||h==="import";case 7:return h==="default"||h==="finally"||h==="extends";case 8:return h==="function"||h==="continue"||h==="debugger";case 10:return h==="instanceof";default:return!1}}function n(h,f){return h==="null"||h==="true"||h==="false"||r(h,f)}function i(h,f){return h==="null"||h==="true"||h==="false"||s(h,f)}function o(h){return h==="eval"||h==="arguments"}function a(h){var f,d,g;if(h.length===0||(g=h.charCodeAt(0),!t.isIdentifierStartES5(g)))return!1;for(f=1,d=h.length;f<d;++f)if(g=h.charCodeAt(f),!t.isIdentifierPartES5(g))return!1;return!0}function l(h,f){return(h-55296)*1024+(f-56320)+65536}function u(h){var f,d,g,y,v;if(h.length===0)return!1;for(v=t.isIdentifierStartES6,f=0,d=h.length;f<d;++f){if(g=h.charCodeAt(f),55296<=g&&g<=56319){if(++f,f>=d||(y=h.charCodeAt(f),!(56320<=y&&y<=57343)))return!1;g=l(g,y)}if(!v(g))return!1;v=t.isIdentifierPartES6}return!0}function c(h,f){return a(h)&&!n(h,f)}function p(h,f){return u(h)&&!i(h,f)}YS.exports={isKeywordES5:r,isKeywordES6:s,isReservedWordES5:n,isReservedWordES6:i,isRestrictedWord:o,isIdentifierNameES5:a,isIdentifierNameES6:u,isIdentifierES5:c,isIdentifierES6:p}})()});var Ff=B(ll=>{(function(){"use strict";ll.ast=XS(),ll.code=Pf(),ll.keyword=ZS()})()});var cl=B((ul,eC)=>{(function(t,e){typeof ul=="object"&&typeof eC<"u"?e(ul):typeof define=="function"&&define.amd?define(["exports"],e):(t=typeof globalThis<"u"?globalThis:t||self,e(t.acorn={}))})(ul,(function(t){"use strict";var e=[509,0,227,0,150,4,294,9,1368,2,2,1,6,3,41,2,5,0,166,1,574,3,9,9,7,9,32,4,318,1,31,4,33,15,71,10,50,3,123,2,54,14,32,10,3,1,11,3,46,10,8,0,46,9,7,2,37,13,2,9,6,1,45,0,13,2,49,13,9,3,2,11,83,11,7,0,3,0,158,11,6,9,7,3,56,1,2,6,3,1,3,2,10,0,11,1,3,6,4,4,68,8,2,0,3,0,2,3,2,4,2,0,15,1,83,17,10,9,5,0,82,19,13,9,214,6,3,8,28,1,83,16,16,9,82,12,9,9,7,19,58,14,5,9,243,14,166,9,71,5,2,1,3,3,2,0,2,1,13,9,120,6,3,6,4,0,29,9,41,6,2,3,9,0,10,10,47,15,199,7,137,9,54,7,2,7,17,9,57,21,2,13,123,5,4,0,2,1,2,6,2,0,9,9,49,4,2,1,2,4,9,9,55,9,7,0,259,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,481,1,61,4,4,5,9,7,3,6,31,3,149,2,12,2,9,1,3,0,33,1,1357,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,233,0,3,0,8,1,6,0,475,6,110,6,6,9,4759,9,787719,239],r=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,13,65,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,7,25,39,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,5,18,21,18,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,18,0,182,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,24,43,22,0,239,18,16,0,2,12,2,33,125,0,80,921,103,111,6,206,13,310,2314,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,33,24,3,24,45,74,6,0,67,12,65,1,2,0,15,4,10,7386,37,33,96,114,14,913,15,50,7710,3,2,6,2,1,2,296,10,0,30,2,3,0,15,4,8,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,340,2,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,129,15,6,55,50,49,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,208,30,2,2,2,1,2,6,3,4,10,1,225,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4382,2,5773,3,7472,16,621,2467,541,1507,4938,6,8489,39815,11327],s="\u200C\u200D\xB7\u0300-\u036F\u0387\u0483-\u0487\u0591-\u05BD\u05BF\u05C1\u05C2\u05C4\u05C5\u05C7-\u05C9\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\u0897-\u089F\u08CA-\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\u0B53-\u0B57\u0B62\u0B63\u0B66-\u0B6F\u0B82\u0BBE-\u0BC2\u0BC6-\u0BC8\u0BCA-\u0BCD\u0BD7\u0BE6-\u0BEF\u0C00-\u0C04\u0C3C\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\u0CF3\u0D00-\u0D03\u0D3B\u0D3C\u0D3E-\u0D44\u0D46-\u0D48\u0D4A-\u0D4D\u0D57\u0D62\u0D63\u0D66-\u0D6F\u0D81-\u0D83\u0DCA\u0DCF-\u0DD4\u0DD6\u0DD8-\u0DDF\u0DE6-\u0DEF\u0DF2\u0DF3\u0E31\u0E34-\u0E3A\u0E47-\u0E4E\u0E50-\u0E59\u0EB1\u0EB4-\u0EBC\u0EC8-\u0ECE\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-\u1715\u1732-\u1734\u1752\u1753\u1772\u1773\u17B4-\u17D3\u17DD\u17E0-\u17E9\u180B-\u180D\u180F-\u1819\u18A9\u1920-\u192B\u1930-\u193B\u1946-\u194F\u19D0-\u19DA\u1A17-\u1A1B\u1A55-\u1A5E\u1A60-\u1A7C\u1A7F-\u1A89\u1A90-\u1A99\u1AB0-\u1ABD\u1ABF-\u1AF0\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\u1CF4\u1CF7-\u1CF9\u1DC0-\u1DFF\u200C\u200D\u203F\u2040\u2054\u20D0-\u20DC\u20E1\u20E5-\u20F0\u2CEF-\u2CF1\u2D7F\u2DE0-\u2DFF\u302A-\u302F\u3099\u309A\u30FB\uA620-\uA629\uA66F\uA674-\uA67D\uA69E\uA69F\uA6F0\uA6F1\uA802\uA806\uA80B\uA823-\uA827\uA82C\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\uFF65",n="\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\u0558\u0559\u0560-\u0588\u058B\u058C\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\u0870-\u0887\u0889-\u088F\u08A0-\u08C9\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\u0C5C\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDC-\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\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-\u1711\u171F-\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-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\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\u208F-\u209F\u2102\u2107\u210A-\u2113\u2115\u2118-\u211D\u2124\u2126\u2128\u212A-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2160-\u2188\u2C00-\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-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7DD\uA7E2\uA7F1-\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-\uAB69\uAB6C\uAB6D\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",i={3:"abstract boolean byte char class double enum export extends final float goto implements import int interface long native package private protected public short static super synchronized throws transient volatile",5:"class enum extends super const export import",6:"enum",strict:"implements interface let package private protected public static yield",strictBind:"eval arguments"},o="break case catch continue debugger default do else finally for function if return switch throw try var while with null true false instanceof typeof void delete new in this",a={5:o,"5module":o+" export import",6:o+" const class extends export import super"},l=/^in(stanceof)?$/,u=new RegExp("["+n+"]"),c=new RegExp("["+n+s+"]");function p(m,x){for(var D=65536,L=0;L<x.length;L+=2){if(D+=x[L],D>m)return!1;if(D+=x[L+1],D>=m)return!0}return!1}function h(m,x){return m<65?m===36:m<91?!0:m<97?m===95:m<123?!0:m<=65535?m>=170&&u.test(String.fromCharCode(m)):x===!1?!1:p(m,r)}function f(m,x){return m<48?m===36:m<58?!0:m<65?!1:m<91?!0:m<97?m===95:m<123?!0:m<=65535?m>=170&&c.test(String.fromCharCode(m)):x===!1?!1:p(m,r)||p(m,e)}var d=function(x,D){D===void 0&&(D={}),this.label=x,this.keyword=D.keyword,this.beforeExpr=!!D.beforeExpr,this.startsExpr=!!D.startsExpr,this.isLoop=!!D.isLoop,this.isAssign=!!D.isAssign,this.prefix=!!D.prefix,this.postfix=!!D.postfix,this.binop=D.binop||null,this.updateContext=null};function g(m,x){return new d(m,{beforeExpr:!0,binop:x})}var y={beforeExpr:!0},v={startsExpr:!0},S={};function A(m,x){return x===void 0&&(x={}),x.keyword=m,S[m]=new d(m,x)}var E={num:new d("num",v),regexp:new d("regexp",v),string:new d("string",v),name:new d("name",v),privateId:new d("privateId",v),eof:new d("eof"),bracketL:new d("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new d("]"),braceL:new d("{",{beforeExpr:!0,startsExpr:!0}),braceR:new d("}"),parenL:new d("(",{beforeExpr:!0,startsExpr:!0}),parenR:new d(")"),comma:new d(",",y),semi:new d(";",y),colon:new d(":",y),dot:new d("."),question:new d("?",y),questionDot:new d("?."),arrow:new d("=>",y),template:new d("template"),invalidTemplate:new d("invalidTemplate"),ellipsis:new d("...",y),backQuote:new d("`",v),dollarBraceL:new d("${",{beforeExpr:!0,startsExpr:!0}),eq:new d("=",{beforeExpr:!0,isAssign:!0}),assign:new d("_=",{beforeExpr:!0,isAssign:!0}),incDec:new d("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new d("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:g("||",1),logicalAND:g("&&",2),bitwiseOR:g("|",3),bitwiseXOR:g("^",4),bitwiseAND:g("&",5),equality:g("==/!=/===/!==",6),relational:g("</>/<=/>=",7),bitShift:g("<</>>/>>>",8),plusMin:new d("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:g("%",10),star:g("*",10),slash:g("/",10),starstar:new d("**",{beforeExpr:!0}),coalesce:g("??",1),_break:A("break"),_case:A("case",y),_catch:A("catch"),_continue:A("continue"),_debugger:A("debugger"),_default:A("default",y),_do:A("do",{isLoop:!0,beforeExpr:!0}),_else:A("else",y),_finally:A("finally"),_for:A("for",{isLoop:!0}),_function:A("function",v),_if:A("if"),_return:A("return",y),_switch:A("switch"),_throw:A("throw",y),_try:A("try"),_var:A("var"),_const:A("const"),_while:A("while",{isLoop:!0}),_with:A("with"),_new:A("new",{beforeExpr:!0,startsExpr:!0}),_this:A("this",v),_super:A("super",v),_class:A("class",v),_extends:A("extends",y),_export:A("export"),_import:A("import",v),_null:A("null",v),_true:A("true",v),_false:A("false",v),_in:A("in",{beforeExpr:!0,binop:7}),_instanceof:A("instanceof",{beforeExpr:!0,binop:7}),_typeof:A("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:A("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:A("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},k=/\r\n?|\n|\u2028|\u2029/,T=new RegExp(k.source,"g");function w(m){return m===10||m===13||m===8232||m===8233}function R(m,x,D){D===void 0&&(D=m.length);for(var L=x;L<D;L++){var V=m.charCodeAt(L);if(w(V))return L<D-1&&V===13&&m.charCodeAt(L+1)===10?L+2:L+1}return-1}var j=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,$=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,M=Object.prototype,N=M.hasOwnProperty,b=M.toString,C=Object.hasOwn||(function(m,x){return N.call(m,x)}),P=Array.isArray||(function(m){return b.call(m)==="[object Array]"}),F=Object.create(null);function I(m){return F[m]||(F[m]=new RegExp("^(?:"+m.replace(/ /g,"|")+")$"))}function U(m){return m<=65535?String.fromCharCode(m):(m-=65536,String.fromCharCode((m>>10)+55296,(m&1023)+56320))}var z=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,W=function(x,D){this.line=x,this.column=D};W.prototype.offset=function(x){return new W(this.line,this.column+x)};var re=function(x,D,L){this.start=D,this.end=L,x.sourceFile!==null&&(this.source=x.sourceFile)};function ue(m,x){for(var D=1,L=0;;){var V=R(m,L,x);if(V<0)return new W(D,x-L);++D,L=V}}var be={ecmaVersion:null,sourceType:"script",strict:!1,onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,startLocation:null,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},te=!1;function pe(m){var x={};for(var D in be)x[D]=m&&C(m,D)?m[D]:be[D];if(x.ecmaVersion==="latest"?x.ecmaVersion=1e8:x.ecmaVersion==null?(!te&&typeof console=="object"&&console.warn&&(te=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
30
+ Defaulting to 2020, but this will stop working in the future.`)),x.ecmaVersion=11):x.ecmaVersion>=2015&&(x.ecmaVersion-=2009),x.allowReserved==null&&(x.allowReserved=x.ecmaVersion<5),(!m||m.allowHashBang==null)&&(x.allowHashBang=x.ecmaVersion>=14),P(x.onToken)){var L=x.onToken;x.onToken=function(V){return L.push(V)}}if(P(x.onComment)&&(x.onComment=ve(x,x.onComment)),x.sourceType==="commonjs"&&x.allowAwaitOutsideFunction)throw new Error("Cannot use allowAwaitOutsideFunction with sourceType: commonjs");return x}function ve(m,x){return function(D,L,V,Y,Z,de){var Ce={type:D?"Block":"Line",value:L,start:V,end:Y};m.locations&&(Ce.loc=new re(this,Z,de)),m.ranges&&(Ce.range=[V,Y]),x.push(Ce)}}var Ae=1,ie=2,xe=4,ae=8,fe=16,Be=32,Re=64,Pe=128,je=256,ze=512,O=1024,K=Ae|ie|je;function he(m,x){return ie|(m?xe:0)|(x?ae:0)}var Fe=0,Ue=1,We=2,xt=3,Ct=4,Pr=5,ht=function(x,D,L){this.options=x=pe(x),this.sourceFile=x.sourceFile,this.keywords=I(a[x.ecmaVersion>=6?6:x.sourceType==="module"?"5module":5]);var V="";x.allowReserved!==!0&&(V=i[x.ecmaVersion>=6?6:x.ecmaVersion===5?5:3],x.sourceType==="module"&&(V+=" await")),this.reservedWords=I(V);var Y=(V?V+" ":"")+i.strict;this.reservedWordsStrict=I(Y),this.reservedWordsStrictBind=I(Y+" "+i.strictBind),this.input=String(D),this.containsEsc=!1,this.pos=L||0,this.curLine=1,x.startLocation?(this.lineStart=this.pos-x.startLocation.column,this.curLine=x.startLocation.line):L?(this.lineStart=this.input.lastIndexOf(`
31
+ `,L-1)+1,this.options.locations&&(this.curLine=this.input.slice(0,this.lineStart).split(k).length)):this.lineStart=0,this.type=E.eof,this.value=null,this.start=this.end=this.pos,this.startLoc=this.endLoc=this.curPosition(),this.lastTokEndLoc=this.lastTokStartLoc=null,this.lastTokStart=this.lastTokEnd=this.pos,this.context=this.initialContext(),this.exprAllowed=!0,this.inModule=x.sourceType==="module",this.strict=this.inModule||x.strict===!0||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&x.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(this.options.sourceType==="commonjs"?ie:Ae),this.regexpState=null,this.privateNameStack=[]},it={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowReturn:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},allowUsing:{configurable:!0},inClassStaticBlock:{configurable:!0}};ht.prototype.parse=function(){var x=this,D=this.options.program||this.startNode();return this.nextToken(),this.catchStackOverflow(function(){return x.parseTopLevel(D)})},it.inFunction.get=function(){return(this.currentVarScope().flags&ie)>0},it.inGenerator.get=function(){return(this.currentVarScope().flags&ae)>0},it.inAsync.get=function(){return(this.currentVarScope().flags&xe)>0},it.canAwait.get=function(){for(var m=this.scopeStack.length-1;m>=0;m--){var x=this.scopeStack[m],D=x.flags;if(D&(je|ze))return!1;if(D&ie)return(D&xe)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},it.allowReturn.get=function(){return!!(this.inFunction||this.options.allowReturnOutsideFunction&&this.currentVarScope().flags&Ae)},it.allowSuper.get=function(){var m=this.currentThisScope(),x=m.flags;return(x&Re)>0||this.options.allowSuperOutsideMethod},it.allowDirectSuper.get=function(){return(this.currentThisScope().flags&Pe)>0},it.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},it.allowNewDotTarget.get=function(){for(var m=this.scopeStack.length-1;m>=0;m--){var x=this.scopeStack[m],D=x.flags;if(D&(je|ze)||D&ie&&!(D&fe))return!0}return!1},it.allowUsing.get=function(){var m=this.currentScope(),x=m.flags;return!(x&O||!this.inModule&&x&Ae)},it.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&je)>0},ht.extend=function(){for(var x=[],D=arguments.length;D--;)x[D]=arguments[D];for(var L=this,V=0;V<x.length;V++)L=x[V](L);return L},ht.parse=function(x,D){return new this(D,x).parse()},ht.parseExpressionAt=function(x,D,L){var V=new this(L,x,D);return V.nextToken(),V.parseExpression()},ht.tokenizer=function(x,D){return new this(D,x)},Object.defineProperties(ht.prototype,it);var ut=ht.prototype,Cs=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;ut.strictDirective=function(m){if(this.options.ecmaVersion<5)return!1;for(;;){$.lastIndex=m,m+=$.exec(this.input)[0].length;var x=Cs.exec(this.input.slice(m));if(!x)return!1;if((x[1]||x[2])==="use strict"){$.lastIndex=m+x[0].length;var D=$.exec(this.input),L=D.index+D[0].length,V=this.input.charAt(L);return V===";"||V==="}"||k.test(D[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(V)||V==="!"&&this.input.charAt(L+1)==="="||V==="i"&&Nn(this,L))}m+=x[0].length,$.lastIndex=m,m+=$.exec(this.input)[0].length,this.input[m]===";"&&m++}};function Nn(m,x){for(var D=x+1,L=Math.min(m.input.length,x+11);D<L;){var V=m.fullCharCodeAt(D);if(!f(V,!0))break;D+=V<=65535?1:2}return D===x+2&&m.input.slice(x,D)==="in"||D===x+10&&m.input.slice(x,D)==="instanceof"}ut.eat=function(m){return this.type===m?(this.next(),!0):!1},ut.isContextual=function(m){return this.type===E.name&&this.value===m&&!this.containsEsc},ut.eatContextual=function(m){return this.isContextual(m)?(this.next(),!0):!1},ut.catchStackOverflow=function(m){try{return m()}catch(x){if(x instanceof Error&&(/\bstack\b.*\b(exceeded|overflow)\b/i.test(x.message)||/\btoo much recursion\b/i.test(x.message)))this.raise(this.start,"Not enough stack space to parse input");else throw x}},ut.expectContextual=function(m){this.eatContextual(m)||this.unexpected()},ut.canInsertSemicolon=function(){return this.type===E.eof||this.type===E.braceR||k.test(this.input.slice(this.lastTokEnd,this.start))},ut.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},ut.semicolon=function(){!this.eat(E.semi)&&!this.insertSemicolon()&&this.unexpected()},ut.afterTrailingComma=function(m,x){if(this.type===m)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),x||this.next(),!0},ut.expect=function(m){this.eat(m)||this.unexpected()},ut.unexpected=function(m){this.raise(m??this.start,"Unexpected token")};var or=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};ut.checkPatternErrors=function(m,x){if(m){m.trailingComma>-1&&this.raiseRecoverable(m.trailingComma,"Comma is not permitted after the rest element");var D=x?m.parenthesizedAssign:m.parenthesizedBind;D>-1&&this.raiseRecoverable(D,x?"Assigning to rvalue":"Parenthesized pattern")}},ut.checkExpressionErrors=function(m,x){if(!m)return!1;var D=m.shorthandAssign,L=m.doubleProto;if(!x)return D>=0||L>=0;D>=0&&this.raise(D,"Shorthand property assignments are valid only in destructuring patterns"),L>=0&&this.raiseRecoverable(L,"Redefinition of __proto__ property")},ut.checkYieldAwaitInDefaultParams=function(){this.yieldPos&&(!this.awaitPos||this.yieldPos<this.awaitPos)&&this.raise(this.yieldPos,"Yield expression cannot be a default value"),this.awaitPos&&this.raise(this.awaitPos,"Await expression cannot be a default value")},ut.isSimpleAssignTarget=function(m){return m.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(m.expression):m.type==="Identifier"||m.type==="MemberExpression"};var Te=ht.prototype;Te.parseTopLevel=function(m){var x=Object.create(null);for(m.body||(m.body=[]);this.type!==E.eof;){var D=this.parseStatement(null,!0,x);m.body.push(D)}if(this.inModule)for(var L=0,V=Object.keys(this.undefinedExports);L<V.length;L+=1){var Y=V[L];this.raiseRecoverable(this.undefinedExports[Y].start,"Export '"+Y+"' is not defined")}return this.adaptDirectivePrologue(m.body),this.next(),m.sourceType=this.options.sourceType==="commonjs"?"script":this.options.sourceType,this.finishNode(m,"Program")};var ln={kind:"loop"},ws={kind:"switch"};Te.isLet=function(m){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;$.lastIndex=this.pos;var x=$.exec(this.input),D=this.pos+x[0].length,L=this.fullCharCodeAt(D);if(L===91||L===92)return!0;if(m)return!1;if(L===123)return!0;if(h(L)){var V=D;do D+=L<=65535?1:2;while(f(L=this.fullCharCodeAt(D)));if(L===92)return!0;var Y=this.input.slice(V,D);if(!l.test(Y))return!0}return!1},Te.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;$.lastIndex=this.pos;var m=$.exec(this.input),x=this.pos+m[0].length,D;return!k.test(this.input.slice(this.pos,x))&&this.input.slice(x,x+8)==="function"&&(x+8===this.input.length||!(f(D=this.fullCharCodeAt(x+8))||D===92))},Te.isUsingKeyword=function(m,x){if(this.options.ecmaVersion<17||!this.isContextual(m?"await":"using"))return!1;$.lastIndex=this.pos;var D=$.exec(this.input),L=this.pos+D[0].length;if(k.test(this.input.slice(this.pos,L)))return!1;if(m){var V=L+5,Y;if(this.input.slice(L,V)!=="using"||V===this.input.length||f(Y=this.fullCharCodeAt(V))||Y===92)return!1;$.lastIndex=V;var Z=$.exec(this.input);if(L=V+Z[0].length,Z&&k.test(this.input.slice(V,L)))return!1}var de=this.fullCharCodeAt(L);if(!h(de)&&de!==92)return!1;var Ce=L;do L+=de<=65535?1:2;while(f(de=this.fullCharCodeAt(L)));if(de===92)return!0;var Ve=this.input.slice(Ce,L);if(l.test(Ve))return!1;if(x&&!m&&Ve==="of"){$.lastIndex=L;var Ke=$.exec(this.input);if(L=L+Ke[0].length,this.input.charCodeAt(L)!==61||(de=this.input.charCodeAt(L+1))===61||de===62)return!1}return!0},Te.isAwaitUsing=function(m){return this.isUsingKeyword(!0,m)},Te.isUsing=function(m){return this.isUsingKeyword(!1,m)},Te.parseStatement=function(m,x,D){var L=this.type,V=this.startNode(),Y;switch(this.isLet(m)&&(L=E._var,Y="let"),L){case E._break:case E._continue:return this.parseBreakContinueStatement(V,L.keyword);case E._debugger:return this.parseDebuggerStatement(V);case E._do:return this.parseDoStatement(V);case E._for:return this.parseForStatement(V);case E._function:return m&&(this.strict||m!=="if"&&m!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(V,!1,!m);case E._class:return m&&this.unexpected(),this.parseClass(V,!0);case E._if:return this.parseIfStatement(V);case E._return:return this.parseReturnStatement(V);case E._switch:return this.parseSwitchStatement(V);case E._throw:return this.parseThrowStatement(V);case E._try:return this.parseTryStatement(V);case E._const:case E._var:return Y=Y||this.value,m&&Y!=="var"&&this.unexpected(),this.parseVarStatement(V,Y);case E._while:return this.parseWhileStatement(V);case E._with:return this.parseWithStatement(V);case E.braceL:return this.parseBlock(!0,V);case E.semi:return this.parseEmptyStatement(V);case E._export:case E._import:if(this.options.ecmaVersion>10&&L===E._import){$.lastIndex=this.pos;var Z=$.exec(this.input),de=this.pos+Z[0].length,Ce=this.input.charCodeAt(de);if(Ce===40||Ce===46)return this.parseExpressionStatement(V,this.parseExpression())}return this.options.allowImportExportEverywhere||(x||this.raise(this.start,"'import' and 'export' may only appear at the top level"),this.inModule||this.raise(this.start,"'import' and 'export' may appear only with 'sourceType: module'")),L===E._import?this.parseImport(V):this.parseExport(V,D);default:if(this.isAsyncFunction())return m&&this.unexpected(),this.next(),this.parseFunctionStatement(V,!0,!m);var Ve=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(Ve)return this.allowUsing||this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script` or in the bare case statement"),m&&this.raise(this.start,"Using declaration is not allowed in single-statement positions"),Ve==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(V,!1,Ve),this.semicolon(),this.finishNode(V,"VariableDeclaration");var Ke=this.value,vt=this.parseExpression();return L===E.name&&vt.type==="Identifier"&&this.eat(E.colon)?this.parseLabeledStatement(V,Ke,vt,m):this.parseExpressionStatement(V,vt)}},Te.parseBreakContinueStatement=function(m,x){var D=x==="break";this.next(),this.eat(E.semi)||this.insertSemicolon()?m.label=null:this.type!==E.name?this.unexpected():(m.label=this.parseIdent(),this.semicolon());for(var L=0;L<this.labels.length;++L){var V=this.labels[L];if((m.label==null||V.name===m.label.name)&&(V.kind!=null&&(D||V.kind==="loop")||m.label&&D))break}return L===this.labels.length&&this.raise(m.start,"Unsyntactic "+x),this.finishNode(m,D?"BreakStatement":"ContinueStatement")},Te.parseDebuggerStatement=function(m){return this.next(),this.semicolon(),this.finishNode(m,"DebuggerStatement")},Te.parseDoStatement=function(m){return this.next(),this.labels.push(ln),m.body=this.parseStatement("do"),this.labels.pop(),this.expect(E._while),m.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(E.semi):this.semicolon(),this.finishNode(m,"DoWhileStatement")},Te.parseForStatement=function(m){this.next();var x=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(ln),this.enterScope(0),this.expect(E.parenL),this.type===E.semi)return x>-1&&this.unexpected(x),this.parseFor(m,null);var D=this.isLet();if(this.type===E._var||this.type===E._const||D){var L=this.startNode(),V=D?"let":this.value;return this.next(),this.parseVar(L,!0,V),this.finishNode(L,"VariableDeclaration"),this.parseForAfterInit(m,L,x)}var Y=this.isContextual("let"),Z=!1,de=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(de){var Ce=this.startNode();return this.next(),de==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.parseVar(Ce,!0,de),this.finishNode(Ce,"VariableDeclaration"),this.parseForAfterInit(m,Ce,x)}var Ve=this.containsEsc,Ke=new or,vt=this.start,Qt=x>-1?this.parseExprSubscripts(Ke,"await"):this.parseExpression(!0,Ke);return this.type===E._in||(Z=this.options.ecmaVersion>=6&&this.isContextual("of"))?(x>-1?(this.type===E._in&&this.unexpected(x),m.await=!0):Z&&this.options.ecmaVersion>=8&&(Qt.start===vt&&!Ve&&Qt.type==="Identifier"&&Qt.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(m.await=!1)),Y&&Z&&this.raise(Qt.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Qt,!1,Ke),this.checkLValPattern(Qt),this.parseForIn(m,Qt)):(this.checkExpressionErrors(Ke,!0),x>-1&&this.unexpected(x),this.parseFor(m,Qt))},Te.parseForAfterInit=function(m,x,D){return(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&x.declarations.length===1?(this.type===E._in?((x.kind==="using"||x.kind==="await using")&&!x.declarations[0].init&&this.raise(this.start,"Using declaration is not allowed in for-in loops"),this.options.ecmaVersion>=9&&D>-1&&this.unexpected(D)):this.options.ecmaVersion>=9&&(m.await=D>-1),this.parseForIn(m,x)):(D>-1&&this.unexpected(D),this.parseFor(m,x))},Te.parseFunctionStatement=function(m,x,D){return this.next(),this.parseFunction(m,Ot|(D?0:un),!1,x)},Te.parseIfStatement=function(m){return this.next(),m.test=this.parseParenExpression(),m.consequent=this.parseStatement("if"),m.alternate=this.eat(E._else)?this.parseStatement("if"):null,this.finishNode(m,"IfStatement")},Te.parseReturnStatement=function(m){return this.allowReturn||this.raise(this.start,"'return' outside of function"),this.next(),this.eat(E.semi)||this.insertSemicolon()?m.argument=null:(m.argument=this.parseExpression(),this.semicolon()),this.finishNode(m,"ReturnStatement")},Te.parseSwitchStatement=function(m){this.next(),m.discriminant=this.parseParenExpression(),m.cases=[],this.expect(E.braceL),this.labels.push(ws),this.enterScope(O);for(var x,D=!1;this.type!==E.braceR;)if(this.type===E._case||this.type===E._default){var L=this.type===E._case;x&&this.finishNode(x,"SwitchCase"),m.cases.push(x=this.startNode()),x.consequent=[],this.next(),L?x.test=this.parseExpression():(D&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),D=!0,x.test=null),this.expect(E.colon)}else x||this.unexpected(),x.consequent.push(this.parseStatement(null));return this.exitScope(),x&&this.finishNode(x,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(m,"SwitchStatement")},Te.parseThrowStatement=function(m){return this.next(),k.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),m.argument=this.parseExpression(),this.semicolon(),this.finishNode(m,"ThrowStatement")};var Rn=[];Te.parseCatchClauseParam=function(){var m=this.parseBindingAtom(),x=m.type==="Identifier";return this.enterScope(x?Be:0),this.checkLValPattern(m,x?Ct:We),this.expect(E.parenR),m},Te.parseTryStatement=function(m){if(this.next(),m.block=this.parseBlock(),m.handler=null,this.type===E._catch){var x=this.startNode();this.next(),this.eat(E.parenL)?x.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),x.param=null,this.enterScope(0)),x.body=this.parseBlock(!1),this.exitScope(),m.handler=this.finishNode(x,"CatchClause")}return m.finalizer=this.eat(E._finally)?this.parseBlock():null,!m.handler&&!m.finalizer&&this.raise(m.start,"Missing catch or finally clause"),this.finishNode(m,"TryStatement")},Te.parseVarStatement=function(m,x,D){return this.next(),this.parseVar(m,!1,x,D),this.semicolon(),this.finishNode(m,"VariableDeclaration")},Te.parseWhileStatement=function(m){return this.next(),m.test=this.parseParenExpression(),this.labels.push(ln),m.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(m,"WhileStatement")},Te.parseWithStatement=function(m){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),m.object=this.parseParenExpression(),m.body=this.parseStatement("with"),this.finishNode(m,"WithStatement")},Te.parseEmptyStatement=function(m){return this.next(),this.finishNode(m,"EmptyStatement")},Te.parseLabeledStatement=function(m,x,D,L){for(var V=0,Y=this.labels;V<Y.length;V+=1){var Z=Y[V];Z.name===x&&this.raise(D.start,"Label '"+x+"' is already declared")}for(var de=this.type.isLoop?"loop":this.type===E._switch?"switch":null,Ce=this.labels.length-1;Ce>=0;Ce--){var Ve=this.labels[Ce];if(Ve.statementStart===m.start)Ve.statementStart=this.start,Ve.kind=de;else break}return this.labels.push({name:x,kind:de,statementStart:this.start}),m.body=this.parseStatement(L?L.indexOf("label")===-1?L+"label":L:"label"),this.labels.pop(),m.label=D,this.finishNode(m,"LabeledStatement")},Te.parseExpressionStatement=function(m,x){return m.expression=x,this.semicolon(),this.finishNode(m,"ExpressionStatement")},Te.parseBlock=function(m,x,D){for(m===void 0&&(m=!0),x===void 0&&(x=this.startNode()),x.body=[],this.expect(E.braceL),m&&this.enterScope(0);this.type!==E.braceR;){var L=this.parseStatement(null);x.body.push(L)}return D&&(this.strict=!1),this.next(),m&&this.exitScope(),this.finishNode(x,"BlockStatement")},Te.parseFor=function(m,x){return m.init=x,this.expect(E.semi),m.test=this.type===E.semi?null:this.parseExpression(),this.expect(E.semi),m.update=this.type===E.parenR?null:this.parseExpression(),this.expect(E.parenR),m.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(m,"ForStatement")},Te.parseForIn=function(m,x){var D=this.type===E._in;return this.next(),x.type==="VariableDeclaration"&&x.declarations[0].init!=null&&(!D||this.options.ecmaVersion<8||this.strict||x.kind!=="var"||x.declarations[0].id.type!=="Identifier")&&this.raise(x.start,(D?"for-in":"for-of")+" loop variable declaration may not have an initializer"),m.left=x,m.right=D?this.parseExpression():this.parseMaybeAssign(),this.expect(E.parenR),m.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(m,D?"ForInStatement":"ForOfStatement")},Te.parseVar=function(m,x,D,L){for(m.declarations=[],m.kind=D;;){var V=this.startNode();if(this.parseVarId(V,D),this.eat(E.eq)?V.init=this.parseMaybeAssign(x):!L&&D==="const"&&!(this.type===E._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!L&&(D==="using"||D==="await using")&&this.options.ecmaVersion>=17&&this.type!==E._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+D+" declaration"):!L&&V.id.type!=="Identifier"&&!(x&&(this.type===E._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):V.init=null,m.declarations.push(this.finishNode(V,"VariableDeclarator")),!this.eat(E.comma))break}return m},Te.parseVarId=function(m,x){m.id=x==="using"||x==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(m.id,x==="var"?Ue:We,!1)};var Ot=1,un=2,jn=4;Te.parseFunction=function(m,x,D,L,V){this.initFunction(m),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!L)&&(this.type===E.star&&x&un&&this.unexpected(),m.generator=this.eat(E.star)),this.options.ecmaVersion>=8&&(m.async=!!L),x&Ot&&(m.id=x&jn&&this.type!==E.name?null:this.parseIdent(),m.id&&!(x&un)&&this.checkLValSimple(m.id,this.strict||m.generator||m.async?this.treatFunctionsAsVar?Ue:We:xt));var Y=this.yieldPos,Z=this.awaitPos,de=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(he(m.async,m.generator)),x&Ot||(m.id=this.type===E.name?this.parseIdent():null),this.parseFunctionParams(m),this.parseFunctionBody(m,D,!1,V),this.yieldPos=Y,this.awaitPos=Z,this.awaitIdentPos=de,this.finishNode(m,x&Ot?"FunctionDeclaration":"FunctionExpression")},Te.parseFunctionParams=function(m){this.expect(E.parenL),m.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},Te.parseClass=function(m,x){this.next();var D=this.strict;this.strict=!0,this.parseClassId(m,x),this.parseClassSuper(m);var L=this.enterClassBody(),V=this.startNode(),Y=!1;for(V.body=[],this.expect(E.braceL);this.type!==E.braceR;){var Z=this.parseClassElement(m.superClass!==null);Z&&(V.body.push(Z),Z.type==="MethodDefinition"&&Z.kind==="constructor"?(Y&&this.raiseRecoverable(Z.start,"Duplicate constructor in the same class"),Y=!0):Z.key&&Z.key.type==="PrivateIdentifier"&&As(L,Z)&&this.raiseRecoverable(Z.key.start,"Identifier '#"+Z.key.name+"' has already been declared"))}return this.strict=D,this.next(),m.body=this.finishNode(V,"ClassBody"),this.exitClassBody(),this.finishNode(m,x?"ClassDeclaration":"ClassExpression")},Te.parseClassElement=function(m){if(this.eat(E.semi))return null;var x=this.options.ecmaVersion,D=this.startNode(),L="",V=!1,Y=!1,Z="method",de=!1;if(this.eatContextual("static")){if(x>=13&&this.eat(E.braceL))return this.parseClassStaticBlock(D),D;this.isClassElementNameStart()||this.type===E.star?de=!0:L="static"}if(D.static=de,!L&&x>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===E.star)&&!this.canInsertSemicolon()?Y=!0:L="async"),!L&&(x>=9||!Y)&&this.eat(E.star)&&(V=!0),!L&&!Y&&!V){var Ce=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Z=Ce:L=Ce)}if(L?(D.computed=!1,D.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),D.key.name=L,this.finishNode(D.key,"Identifier")):this.parseClassElementName(D),x<13||this.type===E.parenL||Z!=="method"||V||Y){var Ve=!D.static&&cn(D,"constructor"),Ke=Ve&&m;Ve&&Z!=="method"&&this.raise(D.key.start,"Constructor can't have get/set modifier"),D.kind=Ve?"constructor":Z,this.parseClassMethod(D,V,Y,Ke)}else this.parseClassField(D);return D},Te.isClassElementNameStart=function(){return this.type===E.name||this.type===E.privateId||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword},Te.parseClassElementName=function(m){this.type===E.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),m.computed=!1,m.key=this.parsePrivateIdent()):this.parsePropertyName(m)},Te.parseClassMethod=function(m,x,D,L){var V=m.key;m.kind==="constructor"?(x&&this.raise(V.start,"Constructor can't be a generator"),D&&this.raise(V.start,"Constructor can't be an async method")):m.static&&cn(m,"prototype")&&this.raise(V.start,"Classes may not have a static property named prototype");var Y=m.value=this.parseMethod(x,D,L);return m.kind==="get"&&Y.params.length!==0&&this.raiseRecoverable(Y.start,"getter should have no params"),m.kind==="set"&&Y.params.length!==1&&this.raiseRecoverable(Y.start,"setter should have exactly one param"),m.kind==="set"&&Y.params[0].type==="RestElement"&&this.raiseRecoverable(Y.params[0].start,"Setter cannot use rest params"),this.finishNode(m,"MethodDefinition")},Te.parseClassField=function(m){return cn(m,"constructor")?this.raise(m.key.start,"Classes can't have a field named 'constructor'"):m.static&&cn(m,"prototype")&&this.raise(m.key.start,"Classes can't have a static field named 'prototype'"),this.eat(E.eq)?(this.enterScope(ze|Re),m.value=this.parseMaybeAssign(),this.exitScope()):m.value=null,this.semicolon(),this.finishNode(m,"PropertyDefinition")},Te.parseClassStaticBlock=function(m){m.body=[];var x=this.labels;for(this.labels=[],this.enterScope(je|Re);this.type!==E.braceR;){var D=this.parseStatement(null);m.body.push(D)}return this.next(),this.exitScope(),this.labels=x,this.finishNode(m,"StaticBlock")},Te.parseClassId=function(m,x){this.type===E.name?(m.id=this.parseIdent(),x&&this.checkLValSimple(m.id,We,!1)):(x===!0&&this.unexpected(),m.id=null)},Te.parseClassSuper=function(m){m.superClass=this.eat(E._extends)?this.parseExprSubscripts(null,!1):null},Te.enterClassBody=function(){var m={declared:Object.create(null),used:[]};return this.privateNameStack.push(m),m.declared},Te.exitClassBody=function(){var m=this.privateNameStack.pop(),x=m.declared,D=m.used;if(this.options.checkPrivateFields)for(var L=this.privateNameStack.length,V=L===0?null:this.privateNameStack[L-1],Y=0;Y<D.length;++Y){var Z=D[Y];C(x,Z.name)||(V?V.used.push(Z):this.raiseRecoverable(Z.start,"Private field '#"+Z.name+"' must be declared in an enclosing class"))}};function As(m,x){var D=x.key.name,L=m[D],V="true";return x.type==="MethodDefinition"&&(x.kind==="get"||x.kind==="set")&&(V=(x.static?"s":"i")+x.kind),L==="iget"&&V==="iset"||L==="iset"&&V==="iget"||L==="sget"&&V==="sset"||L==="sset"&&V==="sget"?(m[D]="true",!1):L?!0:(m[D]=V,!1)}function cn(m,x){var D=m.computed,L=m.key;return!D&&(L.type==="Identifier"&&L.name===x||L.type==="Literal"&&L.value===x)}Te.parseExportAllDeclaration=function(m,x){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(m.exported=this.parseModuleExportName(),this.checkExport(x,m.exported,this.lastTokStart)):m.exported=null),this.expectContextual("from"),this.type!==E.string&&this.unexpected(),m.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(m.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(m,"ExportAllDeclaration")},Te.parseExport=function(m,x){if(this.next(),this.eat(E.star))return this.parseExportAllDeclaration(m,x);if(this.eat(E._default))return this.checkExport(x,"default",this.lastTokStart),m.declaration=this.parseExportDefaultDeclaration(),this.finishNode(m,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())m.declaration=this.parseExportDeclaration(m),m.declaration.type==="VariableDeclaration"?this.checkVariableExport(x,m.declaration.declarations):this.checkExport(x,m.declaration.id,m.declaration.id.start),m.specifiers=[],m.source=null,this.options.ecmaVersion>=16&&(m.attributes=[]);else{if(m.declaration=null,m.specifiers=this.parseExportSpecifiers(x),this.eatContextual("from"))this.type!==E.string&&this.unexpected(),m.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(m.attributes=this.parseWithClause());else{for(var D=0,L=m.specifiers;D<L.length;D+=1){var V=L[D];this.checkUnreserved(V.local),this.checkLocalExport(V.local),V.local.type==="Literal"&&this.raise(V.local.start,"A string literal cannot be used as an exported binding without `from`.")}m.source=null,this.options.ecmaVersion>=16&&(m.attributes=[])}this.semicolon()}return this.finishNode(m,"ExportNamedDeclaration")},Te.parseExportDeclaration=function(m){return this.parseStatement(null)},Te.parseExportDefaultDeclaration=function(){var m;if(this.type===E._function||(m=this.isAsyncFunction())){var x=this.startNode();return this.next(),m&&this.next(),this.parseFunction(x,Ot|jn,!1,m)}else if(this.type===E._class){var D=this.startNode();return this.parseClass(D,"nullableID")}else{var L=this.parseMaybeAssign();return this.semicolon(),L}},Te.checkExport=function(m,x,D){m&&(typeof x!="string"&&(x=x.type==="Identifier"?x.name:x.value),C(m,x)&&this.raiseRecoverable(D,"Duplicate export '"+x+"'"),m[x]=!0)},Te.checkPatternExport=function(m,x){var D=x.type;if(D==="Identifier")this.checkExport(m,x,x.start);else if(D==="ObjectPattern")for(var L=0,V=x.properties;L<V.length;L+=1){var Y=V[L];this.checkPatternExport(m,Y)}else if(D==="ArrayPattern")for(var Z=0,de=x.elements;Z<de.length;Z+=1){var Ce=de[Z];Ce&&this.checkPatternExport(m,Ce)}else D==="Property"?this.checkPatternExport(m,x.value):D==="AssignmentPattern"?this.checkPatternExport(m,x.left):D==="RestElement"&&this.checkPatternExport(m,x.argument)},Te.checkVariableExport=function(m,x){if(m)for(var D=0,L=x;D<L.length;D+=1){var V=L[D];this.checkPatternExport(m,V.id)}},Te.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},Te.parseExportSpecifier=function(m){var x=this.startNode();return x.local=this.parseModuleExportName(),x.exported=this.eatContextual("as")?this.parseModuleExportName():x.local,this.checkExport(m,x.exported,x.exported.start),this.finishNode(x,"ExportSpecifier")},Te.parseExportSpecifiers=function(m){var x=[],D=!0;for(this.expect(E.braceL);!this.eat(E.braceR);){if(D)D=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;x.push(this.parseExportSpecifier(m))}return x},Te.parseImport=function(m){return this.next(),this.type===E.string?(m.specifiers=Rn,m.source=this.parseExprAtom()):(m.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),m.source=this.type===E.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(m.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(m,"ImportDeclaration")},Te.parseImportSpecifier=function(){var m=this.startNode();return m.imported=this.parseModuleExportName(),this.eatContextual("as")?m.local=this.parseIdent():(this.checkUnreserved(m.imported),m.local=m.imported),this.checkLValSimple(m.local,We),this.finishNode(m,"ImportSpecifier")},Te.parseImportDefaultSpecifier=function(){var m=this.startNode();return m.local=this.parseIdent(),this.checkLValSimple(m.local,We),this.finishNode(m,"ImportDefaultSpecifier")},Te.parseImportNamespaceSpecifier=function(){var m=this.startNode();return this.next(),this.expectContextual("as"),m.local=this.parseIdent(),this.checkLValSimple(m.local,We),this.finishNode(m,"ImportNamespaceSpecifier")},Te.parseImportSpecifiers=function(){var m=[],x=!0;if(this.type===E.name&&(m.push(this.parseImportDefaultSpecifier()),!this.eat(E.comma)))return m;if(this.type===E.star)return m.push(this.parseImportNamespaceSpecifier()),m;for(this.expect(E.braceL);!this.eat(E.braceR);){if(x)x=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;m.push(this.parseImportSpecifier())}return m},Te.parseWithClause=function(){var m=[];if(!this.eat(E._with))return m;this.expect(E.braceL);for(var x={},D=!0;!this.eat(E.braceR);){if(D)D=!1;else if(this.expect(E.comma),this.afterTrailingComma(E.braceR))break;var L=this.parseImportAttribute(),V=L.key.type==="Identifier"?L.key.name:L.key.value;C(x,V)&&this.raiseRecoverable(L.key.start,"Duplicate attribute key '"+V+"'"),x[V]=!0,m.push(L)}return m},Te.parseImportAttribute=function(){var m=this.startNode();return m.key=this.type===E.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(E.colon),this.type!==E.string&&this.unexpected(),m.value=this.parseExprAtom(),this.finishNode(m,"ImportAttribute")},Te.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===E.string){var m=this.parseLiteral(this.value);return z.test(m.value)&&this.raise(m.start,"An export name cannot include a lone surrogate."),m}return this.parseIdent(!0)},Te.adaptDirectivePrologue=function(m){for(var x=0;x<m.length&&this.isDirectiveCandidate(m[x]);++x)m[x].directive=m[x].expression.raw.slice(1,-1)},Te.isDirectiveCandidate=function(m){return this.options.ecmaVersion>=5&&m.type==="ExpressionStatement"&&m.expression.type==="Literal"&&typeof m.expression.value=="string"&&(this.input[m.start]==='"'||this.input[m.start]==="'")};var Jt=ht.prototype;Jt.toAssignable=function(m,x,D){if(this.options.ecmaVersion>=6&&m)switch(m.type){case"Identifier":this.inAsync&&m.name==="await"&&this.raise(m.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":m.type="ObjectPattern",D&&this.checkPatternErrors(D,!0);for(var L=0,V=m.properties;L<V.length;L+=1){var Y=V[L];this.toAssignable(Y,x),Y.type==="RestElement"&&(Y.argument.type==="ArrayPattern"||Y.argument.type==="ObjectPattern")&&this.raise(Y.argument.start,"Unexpected token")}break;case"Property":m.kind!=="init"&&this.raise(m.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(m.value,x);break;case"ArrayExpression":m.type="ArrayPattern",D&&this.checkPatternErrors(D,!0),this.toAssignableList(m.elements,x);break;case"SpreadElement":m.type="RestElement",this.toAssignable(m.argument,x),m.argument.type==="AssignmentPattern"&&this.raise(m.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":m.operator!=="="&&this.raise(m.left.end,"Only '=' operator can be used for specifying default value."),m.type="AssignmentPattern",delete m.operator,this.toAssignable(m.left,x);break;case"ParenthesizedExpression":this.toAssignable(m.expression,x,D);break;case"ChainExpression":this.raiseRecoverable(m.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!x)break;default:this.raise(m.start,"Assigning to rvalue")}else D&&this.checkPatternErrors(D,!0);return m},Jt.toAssignableList=function(m,x){for(var D=m.length,L=0;L<D;L++){var V=m[L];V&&this.toAssignable(V,x)}if(D){var Y=m[D-1];this.options.ecmaVersion===6&&x&&Y&&Y.type==="RestElement"&&Y.argument.type!=="Identifier"&&this.unexpected(Y.argument.start)}return m},Jt.parseSpread=function(m){var x=this.startNode();return this.next(),x.argument=this.parseMaybeAssign(!1,m),this.finishNode(x,"SpreadElement")},Jt.parseRestBinding=function(){var m=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==E.name&&this.unexpected(),m.argument=this.parseBindingAtom(),this.finishNode(m,"RestElement")},Jt.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case E.bracketL:var m=this.startNode();return this.next(),m.elements=this.parseBindingList(E.bracketR,!0,!0),this.finishNode(m,"ArrayPattern");case E.braceL:return this.parseObj(!0)}return this.parseIdent()},Jt.parseBindingList=function(m,x,D,L){for(var V=[],Y=!0;!this.eat(m);)if(Y?Y=!1:this.expect(E.comma),x&&this.type===E.comma)V.push(null);else{if(D&&this.afterTrailingComma(m))break;if(this.type===E.ellipsis){var Z=this.parseRestBinding();this.parseBindingListItem(Z),V.push(Z),this.type===E.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(m);break}else V.push(this.parseAssignableListItem(L))}return V},Jt.parseAssignableListItem=function(m){var x=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(x),x},Jt.parseBindingListItem=function(m){return m},Jt.parseMaybeDefault=function(m,x,D){if(D=D||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(E.eq))return D;var L=this.startNodeAt(m,x);return L.left=D,L.right=this.parseMaybeAssign(),this.finishNode(L,"AssignmentPattern")},Jt.checkLValSimple=function(m,x,D){x===void 0&&(x=Fe);var L=x!==Fe;switch(m.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(m.name)&&this.raiseRecoverable(m.start,(L?"Binding ":"Assigning to ")+m.name+" in strict mode"),L&&(x===We&&m.name==="let"&&this.raiseRecoverable(m.start,"let is disallowed as a lexically bound name"),D&&(C(D,m.name)&&this.raiseRecoverable(m.start,"Argument name clash"),D[m.name]=!0),x!==Pr&&this.declareName(m.name,x,m.start));break;case"ChainExpression":this.raiseRecoverable(m.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":L&&this.raiseRecoverable(m.start,"Binding member expression");break;case"ParenthesizedExpression":return L&&this.raiseRecoverable(m.start,"Binding parenthesized expression"),this.checkLValSimple(m.expression,x,D);default:this.raise(m.start,(L?"Binding":"Assigning to")+" rvalue")}},Jt.checkLValPattern=function(m,x,D){switch(x===void 0&&(x=Fe),m.type){case"ObjectPattern":for(var L=0,V=m.properties;L<V.length;L+=1){var Y=V[L];this.checkLValInnerPattern(Y,x,D)}break;case"ArrayPattern":for(var Z=0,de=m.elements;Z<de.length;Z+=1){var Ce=de[Z];Ce&&this.checkLValInnerPattern(Ce,x,D)}break;default:this.checkLValSimple(m,x,D)}},Jt.checkLValInnerPattern=function(m,x,D){switch(x===void 0&&(x=Fe),m.type){case"Property":this.checkLValInnerPattern(m.value,x,D);break;case"AssignmentPattern":this.checkLValPattern(m.left,x,D);break;case"RestElement":this.checkLValPattern(m.argument,x,D);break;default:this.checkLValPattern(m,x,D)}};var Vt=function(x,D,L,V,Y){this.token=x,this.isExpr=!!D,this.preserveSpace=!!L,this.override=V,this.generator=!!Y},nt={b_stat:new Vt("{",!1),b_expr:new Vt("{",!0),b_tmpl:new Vt("${",!1),p_stat:new Vt("(",!1),p_expr:new Vt("(",!0),q_tmpl:new Vt("`",!0,!0,function(m){return m.tryReadTemplateToken()}),f_stat:new Vt("function",!1),f_expr:new Vt("function",!0),f_expr_gen:new Vt("function",!0,!1,null,!0),f_gen:new Vt("function",!1,!1,null,!0)},Fr=ht.prototype;Fr.initialContext=function(){return[nt.b_stat]},Fr.curContext=function(){return this.context[this.context.length-1]},Fr.braceIsBlock=function(m){var x=this.curContext();return x===nt.f_expr||x===nt.f_stat?!0:m===E.colon&&(x===nt.b_stat||x===nt.b_expr)?!x.isExpr:m===E._return||m===E.name&&this.exprAllowed?k.test(this.input.slice(this.lastTokEnd,this.start)):m===E._else||m===E.semi||m===E.eof||m===E.parenR||m===E.arrow?!0:m===E.braceL?x===nt.b_stat:m===E._var||m===E._const||m===E.name?!1:!this.exprAllowed},Fr.inGeneratorContext=function(){for(var m=this.context.length-1;m>=1;m--){var x=this.context[m];if(x.token==="function")return x.generator}return!1},Fr.updateContext=function(m){var x,D=this.type;D.keyword&&m===E.dot?this.exprAllowed=!1:(x=D.updateContext)?x.call(this,m):this.exprAllowed=D.beforeExpr},Fr.overrideContext=function(m){this.curContext()!==m&&(this.context[this.context.length-1]=m)},E.parenR.updateContext=E.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var m=this.context.pop();m===nt.b_stat&&this.curContext().token==="function"&&(m=this.context.pop()),this.exprAllowed=!m.isExpr},E.braceL.updateContext=function(m){this.context.push(this.braceIsBlock(m)?nt.b_stat:nt.b_expr),this.exprAllowed=!0},E.dollarBraceL.updateContext=function(){this.context.push(nt.b_tmpl),this.exprAllowed=!0},E.parenL.updateContext=function(m){var x=m===E._if||m===E._for||m===E._with||m===E._while;this.context.push(x?nt.p_stat:nt.p_expr),this.exprAllowed=!0},E.incDec.updateContext=function(){},E._function.updateContext=E._class.updateContext=function(m){m.beforeExpr&&m!==E._else&&!(m===E.semi&&this.curContext()!==nt.p_stat)&&!(m===E._return&&k.test(this.input.slice(this.lastTokEnd,this.start)))&&!((m===E.colon||m===E.braceL)&&this.curContext()===nt.b_stat)?this.context.push(nt.f_expr):this.context.push(nt.f_stat),this.exprAllowed=!1},E.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},E.backQuote.updateContext=function(){this.curContext()===nt.q_tmpl?this.context.pop():this.context.push(nt.q_tmpl),this.exprAllowed=!1},E.star.updateContext=function(m){if(m===E._function){var x=this.context.length-1;this.context[x]===nt.f_expr?this.context[x]=nt.f_expr_gen:this.context[x]=nt.f_gen}this.exprAllowed=!0},E.name.updateContext=function(m){var x=!1;this.options.ecmaVersion>=6&&m!==E.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(x=!0),this.exprAllowed=x};var $e=ht.prototype;$e.checkPropClash=function(m,x,D){if(!(this.options.ecmaVersion>=9&&m.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(m.computed||m.method||m.shorthand))){var L=m.key,V;switch(L.type){case"Identifier":V=L.name;break;case"Literal":V=String(L.value);break;default:return}var Y=m.kind;if(this.options.ecmaVersion>=6){V==="__proto__"&&Y==="init"&&(x.proto&&(D?D.doubleProto<0&&(D.doubleProto=L.start):this.raiseRecoverable(L.start,"Redefinition of __proto__ property")),x.proto=!0);return}V="$"+V;var Z=x[V];if(Z){var de;Y==="init"?de=this.strict&&Z.init||Z.get||Z.set:de=Z.init||Z[Y],de&&this.raiseRecoverable(L.start,"Redefinition of property")}else Z=x[V]={init:!1,get:!1,set:!1};Z[Y]=!0}},$e.parseExpression=function(m,x){var D=this;return this.catchStackOverflow(function(){var L=D.start,V=D.startLoc,Y=D.parseMaybeAssign(m,x);if(D.type===E.comma){var Z=D.startNodeAt(L,V);for(Z.expressions=[Y];D.eat(E.comma);)Z.expressions.push(D.parseMaybeAssign(m,x));return D.finishNode(Z,"SequenceExpression")}return Y})},$e.parseMaybeAssign=function(m,x,D){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(m);this.exprAllowed=!1}var L=!1,V=-1,Y=-1,Z=-1;x?(V=x.parenthesizedAssign,Y=x.trailingComma,Z=x.doubleProto,x.parenthesizedAssign=x.trailingComma=-1):(x=new or,L=!0);var de=this.start,Ce=this.startLoc;(this.type===E.parenL||this.type===E.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=m==="await");var Ve=this.parseMaybeConditional(m,x);if(D&&(Ve=D.call(this,Ve,de,Ce)),this.type.isAssign){var Ke=this.startNodeAt(de,Ce);return Ke.operator=this.value,this.type===E.eq&&(Ve=this.toAssignable(Ve,!1,x)),L||(x.parenthesizedAssign=x.trailingComma=-1,x.shorthandAssign>=Ve.start&&(x.shorthandAssign=-1),x.doubleProto>=Ve.start&&(x.doubleProto=-1)),this.type===E.eq?this.checkLValPattern(Ve):this.checkLValSimple(Ve),Ke.left=Ve,this.next(),Ke.right=this.parseMaybeAssign(m),Z>-1&&(x.doubleProto=Z),this.finishNode(Ke,"AssignmentExpression")}else L&&this.checkExpressionErrors(x,!0);return V>-1&&(x.parenthesizedAssign=V),Y>-1&&(x.trailingComma=Y),Ve},$e.parseMaybeConditional=function(m,x){var D=this.start,L=this.startLoc,V=this.parseExprOps(m,x);if(this.checkExpressionErrors(x))return V;if(!(V.type==="ArrowFunctionExpression"&&V.start===D)&&this.eat(E.question)){var Y=this.startNodeAt(D,L);return Y.test=V,Y.consequent=this.parseMaybeAssign(),this.expect(E.colon),Y.alternate=this.parseMaybeAssign(m),this.finishNode(Y,"ConditionalExpression")}return V},$e.parseExprOps=function(m,x){var D=this.start,L=this.startLoc,V=this.parseMaybeUnary(x,!1,!1,m);return this.checkExpressionErrors(x)||V.start===D&&V.type==="ArrowFunctionExpression"?V:this.parseExprOp(V,D,L,-1,m)},$e.parseExprOp=function(m,x,D,L,V){var Y=this.type.binop;if(Y!=null&&(!V||this.type!==E._in)&&Y>L){var Z=this.type===E.logicalOR||this.type===E.logicalAND,de=this.type===E.coalesce;de&&(Y=E.logicalAND.binop);var Ce=this.value;this.next();var Ve=this.start,Ke=this.startLoc,vt=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,V),Ve,Ke,Y,V),Qt=this.buildBinary(x,D,m,vt,Ce,Z||de);return(Z&&this.type===E.coalesce||de&&(this.type===E.logicalOR||this.type===E.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Qt,x,D,L,V)}return m},$e.buildBinary=function(m,x,D,L,V,Y){L.type==="PrivateIdentifier"&&this.raise(L.start,"Private identifier can only be left side of binary expression");var Z=this.startNodeAt(m,x);return Z.left=D,Z.operator=V,Z.right=L,this.finishNode(Z,Y?"LogicalExpression":"BinaryExpression")},$e.parseMaybeUnary=function(m,x,D,L){var V=this.start,Y=this.startLoc,Z;if(this.isContextual("await")&&this.canAwait)Z=this.parseAwait(L),x=!0;else if(this.type.prefix){var de=this.startNode(),Ce=this.type===E.incDec;de.operator=this.value,de.prefix=!0,this.next(),de.argument=this.parseMaybeUnary(null,!0,Ce,L),this.checkExpressionErrors(m,!0),Ce?this.checkLValSimple(de.argument):this.strict&&de.operator==="delete"&&ks(de.argument)?this.raiseRecoverable(de.start,"Deleting local variable in strict mode"):de.operator==="delete"&&zr(de.argument)?this.raiseRecoverable(de.start,"Private fields can not be deleted"):x=!0,Z=this.finishNode(de,Ce?"UpdateExpression":"UnaryExpression")}else if(!x&&this.type===E.privateId)(L||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),Z=this.parsePrivateIdent(),this.type!==E._in&&this.unexpected();else{if(Z=this.parseExprSubscripts(m,L),this.checkExpressionErrors(m))return Z;for(;this.type.postfix&&!this.canInsertSemicolon();){var Ve=this.startNodeAt(V,Y);Ve.operator=this.value,Ve.prefix=!1,Ve.argument=Z,this.checkLValSimple(Z),this.next(),Z=this.finishNode(Ve,"UpdateExpression")}}if(!D&&!(Z.type==="ArrowFunctionExpression"&&Z.start===V)&&this.eat(E.starstar))if(x)this.unexpected(this.lastTokStart);else return this.buildBinary(V,Y,Z,this.parseMaybeUnary(null,!1,!1,L),"**",!1);else return Z};function ks(m){return m.type==="Identifier"||m.type==="ParenthesizedExpression"&&ks(m.expression)}function zr(m){return m.type==="MemberExpression"&&m.property.type==="PrivateIdentifier"||m.type==="ChainExpression"&&zr(m.expression)||m.type==="ParenthesizedExpression"&&zr(m.expression)}$e.parseExprSubscripts=function(m,x){var D=this.start,L=this.startLoc,V=-1,Y=-1;m&&(V=m.doubleProto,Y=m.shorthandAssign,m.doubleProto=m.shorthandAssign=-1);var Z=this.parseExprAtom(m,x);if(Z.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return Z;var de=this.parseSubscripts(Z,D,L,!1,x);return m&&(de.end>Z.end&&(this.checkExpressionErrors(m,!0),m.parenthesizedAssign>=de.start&&(m.parenthesizedAssign=-1),m.parenthesizedBind>=de.start&&(m.parenthesizedBind=-1),m.trailingComma>=de.start&&(m.trailingComma=-1)),V>-1&&(m.doubleProto=V),Y>-1&&(m.shorthandAssign=Y)),de},$e.parseSubscripts=function(m,x,D,L,V){for(var Y=this.options.ecmaVersion>=8&&m.type==="Identifier"&&m.name==="async"&&this.lastTokEnd===m.end&&!this.canInsertSemicolon()&&m.end-m.start===5&&this.potentialArrowAt===m.start,Z=!1;;){var de=this.parseSubscript(m,x,D,L,Y,Z,V);if(de.optional&&(Z=!0),de.end===m.end||de.type==="ArrowFunctionExpression"){if(Z){var Ce=this.startNodeAt(x,D);Ce.expression=de,de=this.finishNode(Ce,"ChainExpression")}return de}m=de,Y=!1}},$e.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(E.arrow)},$e.parseSubscriptAsyncArrow=function(m,x,D,L){return this.parseArrowExpression(this.startNodeAt(m,x),D,!0,L)},$e.parseSubscript=function(m,x,D,L,V,Y,Z){var de=this.options.ecmaVersion>=11,Ce=de&&this.eat(E.questionDot);L&&Ce&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var Ve=this.eat(E.bracketL);if(Ve||Ce&&this.type!==E.parenL&&this.type!==E.backQuote||this.eat(E.dot)){var Ke=this.startNodeAt(x,D);Ke.object=m,Ve?(Ke.property=this.parseExpression(),this.expect(E.bracketR)):this.type===E.privateId&&m.type!=="Super"?Ke.property=this.parsePrivateIdent():Ke.property=this.parseIdent(this.options.allowReserved!=="never"),Ke.computed=!!Ve,de&&(Ke.optional=Ce),m=this.finishNode(Ke,"MemberExpression")}else if(!L&&this.eat(E.parenL)){var vt=new or,Qt=this.yieldPos,ki=this.awaitPos,Ds=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Ra=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1,vt);if(V&&!Ce&&this.shouldParseAsyncArrow())return this.checkPatternErrors(vt,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Qt,this.awaitPos=ki,this.awaitIdentPos=Ds,this.parseSubscriptAsyncArrow(x,D,Ra,Z);this.checkExpressionErrors(vt,!0),this.yieldPos=Qt||this.yieldPos,this.awaitPos=ki||this.awaitPos,this.awaitIdentPos=Ds||this.awaitIdentPos;var Is=this.startNodeAt(x,D);Is.callee=m,Is.arguments=Ra,de&&(Is.optional=Ce),m=this.finishNode(Is,"CallExpression")}else if(this.type===E.backQuote){(Ce||Y)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var Ps=this.startNodeAt(x,D);Ps.tag=m,Ps.quasi=this.parseTemplate({isTagged:!0}),m=this.finishNode(Ps,"TaggedTemplateExpression")}return m},$e.parseExprAtom=function(m,x,D){this.type===E.slash&&this.readRegexp();var L,V=this.potentialArrowAt===this.start;switch(this.type){case E._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),L=this.startNode(),this.next(),this.type===E.parenL&&!this.allowDirectSuper&&this.raise(L.start,"super() call outside constructor of a subclass"),this.type!==E.dot&&this.type!==E.bracketL&&this.type!==E.parenL&&this.unexpected(),this.finishNode(L,"Super");case E._this:return L=this.startNode(),this.next(),this.finishNode(L,"ThisExpression");case E.name:var Y=this.start,Z=this.startLoc,de=this.containsEsc,Ce=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!de&&Ce.name==="async"&&!this.canInsertSemicolon()&&this.eat(E._function))return this.overrideContext(nt.f_expr),this.parseFunction(this.startNodeAt(Y,Z),0,!1,!0,x);if(V&&!this.canInsertSemicolon()){if(this.eat(E.arrow))return this.parseArrowExpression(this.startNodeAt(Y,Z),[Ce],!1,x);if(this.options.ecmaVersion>=8&&Ce.name==="async"&&this.type===E.name&&!de&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return Ce=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(E.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(Y,Z),[Ce],!0,x)}return Ce;case E.regexp:var Ve=this.value;return L=this.parseLiteral(Ve.value),L.regex={pattern:Ve.pattern,flags:Ve.flags},L;case E.num:case E.string:return this.parseLiteral(this.value);case E._null:case E._true:case E._false:return L=this.startNode(),L.value=this.type===E._null?null:this.type===E._true,L.raw=this.type.keyword,this.next(),this.finishNode(L,"Literal");case E.parenL:var Ke=this.start,vt=this.parseParenAndDistinguishExpression(V,x);return m&&(m.parenthesizedAssign<0&&!this.isSimpleAssignTarget(vt)&&(m.parenthesizedAssign=Ke),m.parenthesizedBind<0&&(m.parenthesizedBind=Ke)),vt;case E.bracketL:return L=this.startNode(),this.next(),L.elements=this.parseExprList(E.bracketR,!0,!0,m),this.finishNode(L,"ArrayExpression");case E.braceL:return this.overrideContext(nt.b_expr),this.parseObj(!1,m);case E._function:return L=this.startNode(),this.next(),this.parseFunction(L,0);case E._class:return this.parseClass(this.startNode(),!1);case E._new:return this.parseNew();case E.backQuote:return this.parseTemplate();case E._import:return this.options.ecmaVersion>=11?this.parseExprImport(D):this.unexpected();default:return this.parseExprAtomDefault()}},$e.parseExprAtomDefault=function(){this.unexpected()},$e.parseExprImport=function(m){var x=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===E.parenL&&!m)return this.parseDynamicImport(x);if(this.type===E.dot){var D=this.startNodeAt(x.start,x.loc&&x.loc.start);return D.name="import",x.meta=this.finishNode(D,"Identifier"),this.parseImportMeta(x)}else this.unexpected()},$e.parseDynamicImport=function(m){if(this.next(),m.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(E.parenR)?m.options=null:(this.expect(E.comma),this.afterTrailingComma(E.parenR)?m.options=null:(m.options=this.parseMaybeAssign(),this.eat(E.parenR)||(this.expect(E.comma),this.afterTrailingComma(E.parenR)||this.unexpected())));else if(!this.eat(E.parenR)){var x=this.start;this.eat(E.comma)&&this.eat(E.parenR)?this.raiseRecoverable(x,"Trailing comma is not allowed in import()"):this.unexpected(x)}return this.finishNode(m,"ImportExpression")},$e.parseImportMeta=function(m){this.next();var x=this.containsEsc;return m.property=this.parseIdent(!0),m.property.name!=="meta"&&this.raiseRecoverable(m.property.start,"The only valid meta property for import is 'import.meta'"),x&&this.raiseRecoverable(m.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(m.start,"Cannot use 'import.meta' outside a module"),this.finishNode(m,"MetaProperty")},$e.parseLiteral=function(m){var x=this.startNode();return x.value=m,x.raw=this.input.slice(this.start,this.end),x.raw.charCodeAt(x.raw.length-1)===110&&(x.bigint=x.value!=null?x.value.toString():x.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(x,"Literal")},$e.parseParenExpression=function(){this.expect(E.parenL);var m=this.parseExpression();return this.expect(E.parenR),m},$e.shouldParseArrow=function(m){return!this.canInsertSemicolon()},$e.parseParenAndDistinguishExpression=function(m,x){var D=this.start,L=this.startLoc,V,Y=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Z=this.start,de=this.startLoc,Ce=[],Ve=!0,Ke=!1,vt=new or,Qt=this.yieldPos,ki=this.awaitPos,Ds;for(this.yieldPos=0,this.awaitPos=0;this.type!==E.parenR;)if(Ve?Ve=!1:this.expect(E.comma),Y&&this.afterTrailingComma(E.parenR,!0)){Ke=!0;break}else if(this.type===E.ellipsis){Ds=this.start,Ce.push(this.parseParenItem(this.parseRestBinding())),this.type===E.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else Ce.push(this.parseMaybeAssign(!1,vt,this.parseParenItem));var Ra=this.lastTokEnd,Is=this.lastTokEndLoc;if(this.expect(E.parenR),m&&this.shouldParseArrow(Ce)&&this.eat(E.arrow))return this.checkPatternErrors(vt,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Qt,this.awaitPos=ki,this.parseParenArrowList(D,L,Ce,x);(!Ce.length||Ke)&&this.unexpected(this.lastTokStart),Ds&&this.unexpected(Ds),this.checkExpressionErrors(vt,!0),this.yieldPos=Qt||this.yieldPos,this.awaitPos=ki||this.awaitPos,Ce.length>1?(V=this.startNodeAt(Z,de),V.expressions=Ce,this.finishNodeAt(V,"SequenceExpression",Ra,Is)):V=Ce[0]}else V=this.parseParenExpression();if(this.options.preserveParens){var Ps=this.startNodeAt(D,L);return Ps.expression=V,this.finishNode(Ps,"ParenthesizedExpression")}else return V},$e.parseParenItem=function(m){return m},$e.parseParenArrowList=function(m,x,D,L){return this.parseArrowExpression(this.startNodeAt(m,x),D,!1,L)};var Ts=[];$e.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var m=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===E.dot){var x=this.startNodeAt(m.start,m.loc&&m.loc.start);x.name="new",m.meta=this.finishNode(x,"Identifier"),this.next();var D=this.containsEsc;return m.property=this.parseIdent(!0),m.property.name!=="target"&&this.raiseRecoverable(m.property.start,"The only valid meta property for new is 'new.target'"),D&&this.raiseRecoverable(m.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(m.start,"'new.target' can only be used in functions and class static block"),this.finishNode(m,"MetaProperty")}var L=this.start,V=this.startLoc;return m.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),L,V,!0,!1),m.callee.type==="Super"&&this.raiseRecoverable(L,"Invalid use of 'super'"),this.eat(E.parenL)?m.arguments=this.parseExprList(E.parenR,this.options.ecmaVersion>=8,!1):m.arguments=Ts,this.finishNode(m,"NewExpression")},$e.parseTemplateElement=function(m){var x=m.isTagged,D=this.startNode();return this.type===E.invalidTemplate?(x||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),D.value={raw:this.value.replace(/\r\n?/g,`
32
+ `),cooked:null}):D.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
33
+ `),cooked:this.value},this.next(),D.tail=this.type===E.backQuote,this.finishNode(D,"TemplateElement")},$e.parseTemplate=function(m){m===void 0&&(m={});var x=m.isTagged;x===void 0&&(x=!1);var D=this.startNode();this.next(),D.expressions=[];var L=this.parseTemplateElement({isTagged:x});for(D.quasis=[L];!L.tail;)this.type===E.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(E.dollarBraceL),D.expressions.push(this.parseExpression()),this.expect(E.braceR),D.quasis.push(L=this.parseTemplateElement({isTagged:x}));return this.next(),this.finishNode(D,"TemplateLiteral")},$e.isAsyncProp=function(m){return!m.computed&&m.key.type==="Identifier"&&m.key.name==="async"&&(this.type===E.name||this.type===E.num||this.type===E.string||this.type===E.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===E.star)&&!k.test(this.input.slice(this.lastTokEnd,this.start))},$e.parseObj=function(m,x){var D=this.startNode(),L=!0,V={};for(D.properties=[],this.next();!this.eat(E.braceR);){if(L)L=!1;else if(this.expect(E.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(E.braceR))break;var Y=this.parseProperty(m,x);m||this.checkPropClash(Y,V,x),D.properties.push(Y)}return this.finishNode(D,m?"ObjectPattern":"ObjectExpression")},$e.parseProperty=function(m,x){var D=this.startNode(),L,V,Y,Z;if(this.options.ecmaVersion>=9&&this.eat(E.ellipsis))return m?(D.argument=this.parseIdent(!1),this.type===E.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(D,"RestElement")):(D.argument=this.parseMaybeAssign(!1,x),this.type===E.comma&&x&&x.trailingComma<0&&(x.trailingComma=this.start),this.finishNode(D,"SpreadElement"));this.options.ecmaVersion>=6&&(D.method=!1,D.shorthand=!1,(m||x)&&(Y=this.start,Z=this.startLoc),m||(L=this.eat(E.star)));var de=this.containsEsc;return this.parsePropertyName(D),!m&&!de&&this.options.ecmaVersion>=8&&!L&&this.isAsyncProp(D)?(V=!0,L=this.options.ecmaVersion>=9&&this.eat(E.star),this.parsePropertyName(D)):V=!1,this.parsePropertyValue(D,m,L,V,Y,Z,x,de),this.finishNode(D,"Property")},$e.parseGetterSetter=function(m){var x=m.key.name;this.parsePropertyName(m),m.value=this.parseMethod(!1),m.kind=x;var D=m.kind==="get"?0:1;if(m.value.params.length!==D){var L=m.value.start;m.kind==="get"?this.raiseRecoverable(L,"getter should have no params"):this.raiseRecoverable(L,"setter should have exactly one param")}else m.kind==="set"&&m.value.params[0].type==="RestElement"&&this.raiseRecoverable(m.value.params[0].start,"Setter cannot use rest params")},$e.parsePropertyValue=function(m,x,D,L,V,Y,Z,de){(D||L)&&this.type===E.colon&&this.unexpected(),this.eat(E.colon)?(m.value=x?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Z),m.kind="init"):this.options.ecmaVersion>=6&&this.type===E.parenL?(x&&this.unexpected(),m.method=!0,m.value=this.parseMethod(D,L),m.kind="init"):!x&&!de&&this.options.ecmaVersion>=5&&!m.computed&&m.key.type==="Identifier"&&(m.key.name==="get"||m.key.name==="set")&&this.type!==E.comma&&this.type!==E.braceR&&this.type!==E.eq?((D||L)&&this.unexpected(),this.parseGetterSetter(m)):this.options.ecmaVersion>=6&&!m.computed&&m.key.type==="Identifier"?((D||L)&&this.unexpected(),this.checkUnreserved(m.key),m.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=V),x?m.value=this.parseMaybeDefault(V,Y,this.copyNode(m.key)):this.type===E.eq&&Z?(Z.shorthandAssign<0&&(Z.shorthandAssign=this.start),m.value=this.parseMaybeDefault(V,Y,this.copyNode(m.key))):m.value=this.copyNode(m.key),m.kind="init",m.shorthand=!0):this.unexpected()},$e.parsePropertyName=function(m){if(this.options.ecmaVersion>=6){if(this.eat(E.bracketL))return m.computed=!0,m.key=this.parseMaybeAssign(),this.expect(E.bracketR),m.key;m.computed=!1}return m.key=this.type===E.num||this.type===E.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},$e.initFunction=function(m){m.id=null,this.options.ecmaVersion>=6&&(m.generator=m.expression=!1),this.options.ecmaVersion>=8&&(m.async=!1)},$e.parseMethod=function(m,x,D){var L=this.startNode(),V=this.yieldPos,Y=this.awaitPos,Z=this.awaitIdentPos;return this.initFunction(L),this.options.ecmaVersion>=6&&(L.generator=m),this.options.ecmaVersion>=8&&(L.async=!!x),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(he(x,L.generator)|Re|(D?Pe:0)),this.expect(E.parenL),L.params=this.parseBindingList(E.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(L,!1,!0,!1),this.yieldPos=V,this.awaitPos=Y,this.awaitIdentPos=Z,this.finishNode(L,"FunctionExpression")},$e.parseArrowExpression=function(m,x,D,L){var V=this.yieldPos,Y=this.awaitPos,Z=this.awaitIdentPos;return this.enterScope(he(D,!1)|fe),this.initFunction(m),this.options.ecmaVersion>=8&&(m.async=!!D),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,m.params=this.toAssignableList(x,!0),this.parseFunctionBody(m,!0,!1,L),this.yieldPos=V,this.awaitPos=Y,this.awaitIdentPos=Z,this.finishNode(m,"ArrowFunctionExpression")},$e.parseFunctionBody=function(m,x,D,L){var V=x&&this.type!==E.braceL,Y=this.strict,Z=!1;if(V)m.body=this.parseMaybeAssign(L),m.expression=!0,this.checkParams(m,!1);else{var de=this.options.ecmaVersion>=7&&!this.isSimpleParamList(m.params);(!Y||de)&&(Z=this.strictDirective(this.end),Z&&de&&this.raiseRecoverable(m.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var Ce=this.labels;this.labels=[],Z&&(this.strict=!0),this.checkParams(m,!Y&&!Z&&!x&&!D&&this.isSimpleParamList(m.params)),this.strict&&m.id&&this.checkLValSimple(m.id,Pr),m.body=this.parseBlock(!1,void 0,Z&&!Y),m.expression=!1,this.adaptDirectivePrologue(m.body.body),this.labels=Ce}this.exitScope()},$e.isSimpleParamList=function(m){for(var x=0,D=m;x<D.length;x+=1){var L=D[x];if(L.type!=="Identifier")return!1}return!0},$e.checkParams=function(m,x){for(var D=Object.create(null),L=0,V=m.params;L<V.length;L+=1){var Y=V[L];this.checkLValInnerPattern(Y,Ue,x?null:D)}},$e.parseExprList=function(m,x,D,L){for(var V=[],Y=!0;!this.eat(m);){if(Y)Y=!1;else if(this.expect(E.comma),x&&this.afterTrailingComma(m))break;var Z=void 0;D&&this.type===E.comma?Z=null:this.type===E.ellipsis?(Z=this.parseSpread(L),L&&this.type===E.comma&&L.trailingComma<0&&(L.trailingComma=this.start)):Z=this.parseMaybeAssign(!1,L),V.push(Z)}return V},$e.checkUnreserved=function(m){var x=m.start,D=m.end,L=m.name;if(this.inGenerator&&L==="yield"&&this.raiseRecoverable(x,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&L==="await"&&this.raiseRecoverable(x,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&K)&&L==="arguments"&&this.raiseRecoverable(x,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(L==="arguments"||L==="await")&&this.raise(x,"Cannot use "+L+" in class static initialization block"),this.keywords.test(L)&&this.raise(x,"Unexpected keyword '"+L+"'"),!(this.options.ecmaVersion<6&&this.input.slice(x,D).indexOf("\\")!==-1)){var V=this.strict?this.reservedWordsStrict:this.reservedWords;V.test(L)&&(!this.inAsync&&L==="await"&&this.raiseRecoverable(x,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(x,"The keyword '"+L+"' is reserved"))}},$e.parseIdent=function(m){var x=this.parseIdentNode();return this.next(!!m),this.finishNode(x,"Identifier"),m||(this.checkUnreserved(x),x.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=x.start)),x},$e.parseIdentNode=function(){var m=this.startNode();return this.type===E.name?m.name=this.value:this.type.keyword?(m.name=this.type.keyword,(m.name==="class"||m.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=E.name):this.unexpected(),m},$e.parsePrivateIdent=function(){var m=this.startNode();return this.type===E.privateId?m.name=this.value:this.unexpected(),this.next(),this.finishNode(m,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(m.start,"Private field '#"+m.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(m)),m},$e.parseYield=function(m){this.yieldPos||(this.yieldPos=this.start);var x=this.startNode();return this.next(),this.type===E.semi||this.canInsertSemicolon()||this.type!==E.star&&!this.type.startsExpr?(x.delegate=!1,x.argument=null):(x.delegate=this.eat(E.star),x.argument=this.parseMaybeAssign(m)),this.finishNode(x,"YieldExpression")},$e.parseAwait=function(m){this.awaitPos||(this.awaitPos=this.start);var x=this.startNode();return this.next(),x.argument=this.parseMaybeUnary(null,!0,!1,m),this.finishNode(x,"AwaitExpression")};var pn=ht.prototype;pn.raise=function(m,x){var D=ue(this.input,m);x+=" ("+D.line+":"+D.column+")",this.sourceFile&&(x+=" in "+this.sourceFile);var L=new SyntaxError(x);throw L.pos=m,L.loc=D,L.raisedAt=this.pos,L},pn.raiseRecoverable=pn.raise,pn.curPosition=function(){if(this.options.locations)return new W(this.curLine,this.pos-this.lineStart)};var _=ht.prototype,fn=function(x){this.flags=x,this.var=[],this.lexical=[],this.functions=[]};_.enterScope=function(m){this.scopeStack.push(new fn(m))},_.exitScope=function(){this.scopeStack.pop()},_.treatFunctionsAsVarInScope=function(m){return m.flags&ie||!this.inModule&&m.flags&Ae},_.declareName=function(m,x,D){var L=!1;if(x===We){var V=this.currentScope();L=V.lexical.indexOf(m)>-1||V.functions.indexOf(m)>-1||V.var.indexOf(m)>-1,V.lexical.push(m),this.inModule&&V.flags&Ae&&delete this.undefinedExports[m]}else if(x===Ct){var Y=this.currentScope();Y.lexical.push(m)}else if(x===xt){var Z=this.currentScope();this.treatFunctionsAsVar?L=Z.lexical.indexOf(m)>-1:L=Z.lexical.indexOf(m)>-1||Z.var.indexOf(m)>-1,Z.functions.push(m)}else for(var de=this.scopeStack.length-1;de>=0;--de){var Ce=this.scopeStack[de];if(Ce.lexical.indexOf(m)>-1&&!(Ce.flags&Be&&Ce.lexical[0]===m)||!this.treatFunctionsAsVarInScope(Ce)&&Ce.functions.indexOf(m)>-1){L=!0;break}if(Ce.var.push(m),this.inModule&&Ce.flags&Ae&&delete this.undefinedExports[m],Ce.flags&K)break}L&&this.raiseRecoverable(D,"Identifier '"+m+"' has already been declared")},_.checkLocalExport=function(m){this.scopeStack[0].lexical.indexOf(m.name)===-1&&this.scopeStack[0].var.indexOf(m.name)===-1&&(this.undefinedExports[m.name]=m)},_.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},_.currentVarScope=function(){for(var m=this.scopeStack.length-1;;m--){var x=this.scopeStack[m];if(x.flags&(K|ze|je))return x}},_.currentThisScope=function(){for(var m=this.scopeStack.length-1;;m--){var x=this.scopeStack[m];if(x.flags&(K|ze|je)&&!(x.flags&fe))return x}};var Lt=function(x,D,L){this.type="",this.start=D,this.end=0,x.options.locations&&(this.loc=new re(x,L)),x.options.directSourceFile&&(this.sourceFile=x.options.directSourceFile),x.options.ranges&&(this.range=[D,0])},H=ht.prototype;H.startNode=function(){return new Lt(this,this.start,this.startLoc)},H.startNodeAt=function(m,x){return new Lt(this,m,x)};function q(m,x,D,L){return m.type=x,m.end=D,this.options.locations&&(m.loc.end=L),this.options.ranges&&(m.range[1]=D),m}H.finishNode=function(m,x){return q.call(this,m,x,this.lastTokEnd,this.lastTokEndLoc)},H.finishNodeAt=function(m,x,D,L){return q.call(this,m,x,D,L)},H.copyNode=function(m){var x=new Lt(this,m.start,this.startLoc);for(var D in m)x[D]=m[D];return x};var J="Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz",ee="ASCII ASCII_Hex_Digit AHex Alphabetic Alpha Any Assigned Bidi_Control Bidi_C Bidi_Mirrored Bidi_M Case_Ignorable CI Cased Changes_When_Casefolded CWCF Changes_When_Casemapped CWCM Changes_When_Lowercased CWL Changes_When_NFKC_Casefolded CWKCF Changes_When_Titlecased CWT Changes_When_Uppercased CWU Dash Default_Ignorable_Code_Point DI Deprecated Dep Diacritic Dia Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Extender Ext Grapheme_Base Gr_Base Grapheme_Extend Gr_Ext Hex_Digit Hex IDS_Binary_Operator IDSB IDS_Trinary_Operator IDST ID_Continue IDC ID_Start IDS Ideographic Ideo Join_Control Join_C Logical_Order_Exception LOE Lowercase Lower Math Noncharacter_Code_Point NChar Pattern_Syntax Pat_Syn Pattern_White_Space Pat_WS Quotation_Mark QMark Radical Regional_Indicator RI Sentence_Terminal STerm Soft_Dotted SD Terminal_Punctuation Term Unified_Ideograph UIdeo Uppercase Upper Variation_Selector VS White_Space space XID_Continue XIDC XID_Start XIDS",ne=ee+" Extended_Pictographic",ke=ne,oe=ke+" EBase EComp EMod EPres ExtPict",Ze=oe,De=Ze,ot={9:ee,10:ne,11:ke,12:oe,13:Ze,14:De},Qe="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",pt={9:"",10:"",11:"",12:"",13:"",14:Qe},Et="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",lt="Adlam Adlm Ahom Anatolian_Hieroglyphs Hluw Arabic Arab Armenian Armn Avestan Avst Balinese Bali Bamum Bamu Bassa_Vah Bass Batak Batk Bengali Beng Bhaiksuki Bhks Bopomofo Bopo Brahmi Brah Braille Brai Buginese Bugi Buhid Buhd Canadian_Aboriginal Cans Carian Cari Caucasian_Albanian Aghb Chakma Cakm Cham Cham Cherokee Cher Common Zyyy Coptic Copt Qaac Cuneiform Xsux Cypriot Cprt Cyrillic Cyrl Deseret Dsrt Devanagari Deva Duployan Dupl Egyptian_Hieroglyphs Egyp Elbasan Elba Ethiopic Ethi Georgian Geor Glagolitic Glag Gothic Goth Grantha Gran Greek Grek Gujarati Gujr Gurmukhi Guru Han Hani Hangul Hang Hanunoo Hano Hatran Hatr Hebrew Hebr Hiragana Hira Imperial_Aramaic Armi Inherited Zinh Qaai Inscriptional_Pahlavi Phli Inscriptional_Parthian Prti Javanese Java Kaithi Kthi Kannada Knda Katakana Kana Kayah_Li Kali Kharoshthi Khar Khmer Khmr Khojki Khoj Khudawadi Sind Lao Laoo Latin Latn Lepcha Lepc Limbu Limb Linear_A Lina Linear_B Linb Lisu Lisu Lycian Lyci Lydian Lydi Mahajani Mahj Malayalam Mlym Mandaic Mand Manichaean Mani Marchen Marc Masaram_Gondi Gonm Meetei_Mayek Mtei Mende_Kikakui Mend Meroitic_Cursive Merc Meroitic_Hieroglyphs Mero Miao Plrd Modi Mongolian Mong Mro Mroo Multani Mult Myanmar Mymr Nabataean Nbat New_Tai_Lue Talu Newa Newa Nko Nkoo Nushu Nshu Ogham Ogam Ol_Chiki Olck Old_Hungarian Hung Old_Italic Ital Old_North_Arabian Narb Old_Permic Perm Old_Persian Xpeo Old_South_Arabian Sarb Old_Turkic Orkh Oriya Orya Osage Osge Osmanya Osma Pahawh_Hmong Hmng Palmyrene Palm Pau_Cin_Hau Pauc Phags_Pa Phag Phoenician Phnx Psalter_Pahlavi Phlp Rejang Rjng Runic Runr Samaritan Samr Saurashtra Saur Sharada Shrd Shavian Shaw Siddham Sidd SignWriting Sgnw Sinhala Sinh Sora_Sompeng Sora Soyombo Soyo Sundanese Sund Syloti_Nagri Sylo Syriac Syrc Tagalog Tglg Tagbanwa Tagb Tai_Le Tale Tai_Tham Lana Tai_Viet Tavt Takri Takr Tamil Taml Tangut Tang Telugu Telu Thaana Thaa Thai Thai Tibetan Tibt Tifinagh Tfng Tirhuta Tirh Ugaritic Ugar Vai Vaii Warang_Citi Wara Yi Yiii Zanabazar_Square Zanb",et=lt+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",mt=et+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",rt=mt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",lr=rt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Ft=lr+" "+J,Wt={9:lt,10:et,11:mt,12:rt,13:lr,14:Ft},at={};function Rt(m){var x=at[m]={binary:I(ot[m]+" "+Et),binaryOfStrings:I(pt[m]),nonBinary:{General_Category:I(Et),Script:I(Wt[m])}};x.nonBinary.Script_Extensions=x.nonBinary.Script,x.nonBinary.gc=x.nonBinary.General_Category,x.nonBinary.sc=x.nonBinary.Script,x.nonBinary.scx=x.nonBinary.Script_Extensions}for(var Q=0,ce=[9,10,11,12,13,14];Q<ce.length;Q+=1){var ge=ce[Q];Rt(ge)}var G=ht.prototype,se=function(x,D){this.parent=x,this.base=D||this};se.prototype.separatedFrom=function(x){for(var D=this;D;D=D.parent)for(var L=x;L;L=L.parent)if(D.base===L.base&&D!==L)return!0;return!1},se.prototype.sibling=function(){return new se(this.parent,this.base)};var Ee=function(x){this.parser=x,this.validFlags="gim"+(x.options.ecmaVersion>=6?"uy":"")+(x.options.ecmaVersion>=9?"s":"")+(x.options.ecmaVersion>=13?"d":"")+(x.options.ecmaVersion>=15?"v":""),this.unicodeProperties=at[x.options.ecmaVersion>=14?14:x.options.ecmaVersion],this.source="",this.flags="",this.start=0,this.switchU=!1,this.switchV=!1,this.switchN=!1,this.pos=0,this.lastIntValue=0,this.lastStringValue="",this.lastAssertionIsQuantifiable=!1,this.numCapturingParens=0,this.maxBackReference=0,this.groupNames=Object.create(null),this.backReferenceNames=[],this.branchID=null};Ee.prototype.reset=function(x,D,L){var V=L.indexOf("v")!==-1,Y=L.indexOf("u")!==-1;this.start=x|0,this.source=D+"",this.flags=L,V&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=Y&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=Y&&this.parser.options.ecmaVersion>=9)},Ee.prototype.raise=function(x){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+x)},Ee.prototype.at=function(x,D){D===void 0&&(D=!1);var L=this.source,V=L.length;if(x>=V)return-1;var Y=L.charCodeAt(x);if(!(D||this.switchU)||Y<=55295||Y>=57344||x+1>=V)return Y;var Z=L.charCodeAt(x+1);return Z>=56320&&Z<=57343?(Y<<10)+Z-56613888:Y},Ee.prototype.nextIndex=function(x,D){D===void 0&&(D=!1);var L=this.source,V=L.length;if(x>=V)return V;var Y=L.charCodeAt(x),Z;return!(D||this.switchU)||Y<=55295||Y>=57344||x+1>=V||(Z=L.charCodeAt(x+1))<56320||Z>57343?x+1:x+2},Ee.prototype.current=function(x){return x===void 0&&(x=!1),this.at(this.pos,x)},Ee.prototype.lookahead=function(x){return x===void 0&&(x=!1),this.at(this.nextIndex(this.pos,x),x)},Ee.prototype.advance=function(x){x===void 0&&(x=!1),this.pos=this.nextIndex(this.pos,x)},Ee.prototype.eat=function(x,D){return D===void 0&&(D=!1),this.current(D)===x?(this.advance(D),!0):!1},Ee.prototype.eatChars=function(x,D){D===void 0&&(D=!1);for(var L=this.pos,V=0,Y=x;V<Y.length;V+=1){var Z=Y[V],de=this.at(L,D);if(de===-1||de!==Z)return!1;L=this.nextIndex(L,D)}return this.pos=L,!0},G.validateRegExpFlags=function(m){for(var x=m.validFlags,D=m.flags,L=!1,V=!1,Y=0;Y<D.length;Y++){var Z=D.charAt(Y);x.indexOf(Z)===-1&&this.raise(m.start,"Invalid regular expression flag"),D.indexOf(Z,Y+1)>-1&&this.raise(m.start,"Duplicate regular expression flag"),Z==="u"&&(L=!0),Z==="v"&&(V=!0)}this.options.ecmaVersion>=15&&L&&V&&this.raise(m.start,"Invalid regular expression flag")};function Se(m){for(var x in m)return!0;return!1}G.validateRegExpPattern=function(m){this.regexp_pattern(m),!m.switchN&&this.options.ecmaVersion>=9&&Se(m.groupNames)&&(m.switchN=!0,this.regexp_pattern(m))},G.regexp_pattern=function(m){m.pos=0,m.lastIntValue=0,m.lastStringValue="",m.lastAssertionIsQuantifiable=!1,m.numCapturingParens=0,m.maxBackReference=0,m.groupNames=Object.create(null),m.backReferenceNames.length=0,m.branchID=null,this.regexp_disjunction(m),m.pos!==m.source.length&&(m.eat(41)&&m.raise("Unmatched ')'"),(m.eat(93)||m.eat(125))&&m.raise("Lone quantifier brackets")),m.maxBackReference>m.numCapturingParens&&m.raise("Invalid escape");for(var x=0,D=m.backReferenceNames;x<D.length;x+=1){var L=D[x];m.groupNames[L]||m.raise("Invalid named capture referenced")}},G.regexp_disjunction=function(m){var x=this.options.ecmaVersion>=16;for(x&&(m.branchID=new se(m.branchID,null)),this.regexp_alternative(m);m.eat(124);)x&&(m.branchID=m.branchID.sibling()),this.regexp_alternative(m);x&&(m.branchID=m.branchID.parent),this.regexp_eatQuantifier(m,!0)&&m.raise("Nothing to repeat"),m.eat(123)&&m.raise("Lone quantifier brackets")},G.regexp_alternative=function(m){for(;m.pos<m.source.length&&this.regexp_eatTerm(m););},G.regexp_eatTerm=function(m){return this.regexp_eatAssertion(m)?(m.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(m)&&m.switchU&&m.raise("Invalid quantifier"),!0):(m.switchU?this.regexp_eatAtom(m):this.regexp_eatExtendedAtom(m))?(this.regexp_eatQuantifier(m),!0):!1},G.regexp_eatAssertion=function(m){var x=m.pos;if(m.lastAssertionIsQuantifiable=!1,m.eat(94)||m.eat(36))return!0;if(m.eat(92)){if(m.eat(66)||m.eat(98))return!0;m.pos=x}if(m.eat(40)&&m.eat(63)){var D=!1;if(this.options.ecmaVersion>=9&&(D=m.eat(60)),m.eat(61)||m.eat(33))return this.regexp_disjunction(m),m.eat(41)||m.raise("Unterminated group"),m.lastAssertionIsQuantifiable=!D,!0}return m.pos=x,!1},G.regexp_eatQuantifier=function(m,x){return x===void 0&&(x=!1),this.regexp_eatQuantifierPrefix(m,x)?(m.eat(63),!0):!1},G.regexp_eatQuantifierPrefix=function(m,x){return m.eat(42)||m.eat(43)||m.eat(63)||this.regexp_eatBracedQuantifier(m,x)},G.regexp_eatBracedQuantifier=function(m,x){var D=m.pos;if(m.eat(123)){var L=0,V=-1;if(this.regexp_eatDecimalDigits(m)&&(L=m.lastIntValue,m.eat(44)&&this.regexp_eatDecimalDigits(m)&&(V=m.lastIntValue),m.eat(125)))return V!==-1&&V<L&&!x&&m.raise("numbers out of order in {} quantifier"),!0;m.switchU&&!x&&m.raise("Incomplete quantifier"),m.pos=D}return!1},G.regexp_eatAtom=function(m){return this.regexp_eatPatternCharacters(m)||m.eat(46)||this.regexp_eatReverseSolidusAtomEscape(m)||this.regexp_eatCharacterClass(m)||this.regexp_eatUncapturingGroup(m)||this.regexp_eatCapturingGroup(m)},G.regexp_eatReverseSolidusAtomEscape=function(m){var x=m.pos;if(m.eat(92)){if(this.regexp_eatAtomEscape(m))return!0;m.pos=x}return!1},G.regexp_eatUncapturingGroup=function(m){var x=m.pos;if(m.eat(40)){if(m.eat(63)){if(this.options.ecmaVersion>=16){var D=this.regexp_eatModifiers(m),L=m.eat(45);if(D||L){for(var V=0;V<D.length;V++){var Y=D.charAt(V);D.indexOf(Y,V+1)>-1&&m.raise("Duplicate regular expression modifiers")}if(L){var Z=this.regexp_eatModifiers(m);!D&&!Z&&m.current()===58&&m.raise("Invalid regular expression modifiers");for(var de=0;de<Z.length;de++){var Ce=Z.charAt(de);(Z.indexOf(Ce,de+1)>-1||D.indexOf(Ce)>-1)&&m.raise("Duplicate regular expression modifiers")}}}}if(m.eat(58)){if(this.regexp_disjunction(m),m.eat(41))return!0;m.raise("Unterminated group")}}m.pos=x}return!1},G.regexp_eatCapturingGroup=function(m){if(m.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(m):m.current()===63&&m.raise("Invalid group"),this.regexp_disjunction(m),m.eat(41))return m.numCapturingParens+=1,!0;m.raise("Unterminated group")}return!1},G.regexp_eatModifiers=function(m){for(var x="",D=0;(D=m.current())!==-1&&_e(D);)x+=U(D),m.advance();return x};function _e(m){return m===105||m===109||m===115}G.regexp_eatExtendedAtom=function(m){return m.eat(46)||this.regexp_eatReverseSolidusAtomEscape(m)||this.regexp_eatCharacterClass(m)||this.regexp_eatUncapturingGroup(m)||this.regexp_eatCapturingGroup(m)||this.regexp_eatInvalidBracedQuantifier(m)||this.regexp_eatExtendedPatternCharacter(m)},G.regexp_eatInvalidBracedQuantifier=function(m){return this.regexp_eatBracedQuantifier(m,!0)&&m.raise("Nothing to repeat"),!1},G.regexp_eatSyntaxCharacter=function(m){var x=m.current();return Le(x)?(m.lastIntValue=x,m.advance(),!0):!1};function Le(m){return m===36||m>=40&&m<=43||m===46||m===63||m>=91&&m<=94||m>=123&&m<=125}G.regexp_eatPatternCharacters=function(m){for(var x=m.pos,D=0;(D=m.current())!==-1&&!Le(D);)m.advance();return m.pos!==x},G.regexp_eatExtendedPatternCharacter=function(m){var x=m.current();return x!==-1&&x!==36&&!(x>=40&&x<=43)&&x!==46&&x!==63&&x!==91&&x!==94&&x!==124?(m.advance(),!0):!1},G.regexp_groupSpecifier=function(m){if(m.eat(63)){this.regexp_eatGroupName(m)||m.raise("Invalid group");var x=this.options.ecmaVersion>=16,D=m.groupNames[m.lastStringValue];if(D)if(x)for(var L=0,V=D;L<V.length;L+=1){var Y=V[L];Y.separatedFrom(m.branchID)||m.raise("Duplicate capture group name")}else m.raise("Duplicate capture group name");x?(D||(m.groupNames[m.lastStringValue]=[])).push(m.branchID):m.groupNames[m.lastStringValue]=!0}},G.regexp_eatGroupName=function(m){if(m.lastStringValue="",m.eat(60)){if(this.regexp_eatRegExpIdentifierName(m)&&m.eat(62))return!0;m.raise("Invalid capture group name")}return!1},G.regexp_eatRegExpIdentifierName=function(m){if(m.lastStringValue="",this.regexp_eatRegExpIdentifierStart(m)){for(m.lastStringValue+=U(m.lastIntValue);this.regexp_eatRegExpIdentifierPart(m);)m.lastStringValue+=U(m.lastIntValue);return!0}return!1},G.regexp_eatRegExpIdentifierStart=function(m){var x=m.pos,D=this.options.ecmaVersion>=11,L=m.current(D);return m.advance(D),L===92&&this.regexp_eatRegExpUnicodeEscapeSequence(m,D)&&(L=m.lastIntValue),Oe(L)?(m.lastIntValue=L,!0):(m.pos=x,!1)};function Oe(m){return h(m,!0)||m===36||m===95}G.regexp_eatRegExpIdentifierPart=function(m){var x=m.pos,D=this.options.ecmaVersion>=11,L=m.current(D);return m.advance(D),L===92&&this.regexp_eatRegExpUnicodeEscapeSequence(m,D)&&(L=m.lastIntValue),ct(L)?(m.lastIntValue=L,!0):(m.pos=x,!1)};function ct(m){return f(m,!0)||m===36||m===95||m===8204||m===8205}G.regexp_eatAtomEscape=function(m){return this.regexp_eatBackReference(m)||this.regexp_eatCharacterClassEscape(m)||this.regexp_eatCharacterEscape(m)||m.switchN&&this.regexp_eatKGroupName(m)?!0:(m.switchU&&(m.current()===99&&m.raise("Invalid unicode escape"),m.raise("Invalid escape")),!1)},G.regexp_eatBackReference=function(m){var x=m.pos;if(this.regexp_eatDecimalEscape(m)){var D=m.lastIntValue;if(m.switchU)return D>m.maxBackReference&&(m.maxBackReference=D),!0;if(D<=m.numCapturingParens)return!0;m.pos=x}return!1},G.regexp_eatKGroupName=function(m){if(m.eat(107)){if(this.regexp_eatGroupName(m))return m.backReferenceNames.push(m.lastStringValue),!0;m.raise("Invalid named reference")}return!1},G.regexp_eatCharacterEscape=function(m){return this.regexp_eatControlEscape(m)||this.regexp_eatCControlLetter(m)||this.regexp_eatZero(m)||this.regexp_eatHexEscapeSequence(m)||this.regexp_eatRegExpUnicodeEscapeSequence(m,!1)||!m.switchU&&this.regexp_eatLegacyOctalEscapeSequence(m)||this.regexp_eatIdentityEscape(m)},G.regexp_eatCControlLetter=function(m){var x=m.pos;if(m.eat(99)){if(this.regexp_eatControlLetter(m))return!0;m.pos=x}return!1},G.regexp_eatZero=function(m){return m.current()===48&&!Gt(m.lookahead())?(m.lastIntValue=0,m.advance(),!0):!1},G.regexp_eatControlEscape=function(m){var x=m.current();return x===116?(m.lastIntValue=9,m.advance(),!0):x===110?(m.lastIntValue=10,m.advance(),!0):x===118?(m.lastIntValue=11,m.advance(),!0):x===102?(m.lastIntValue=12,m.advance(),!0):x===114?(m.lastIntValue=13,m.advance(),!0):!1},G.regexp_eatControlLetter=function(m){var x=m.current();return Nt(x)?(m.lastIntValue=x%32,m.advance(),!0):!1};function Nt(m){return m>=65&&m<=90||m>=97&&m<=122}G.regexp_eatRegExpUnicodeEscapeSequence=function(m,x){x===void 0&&(x=!1);var D=m.pos,L=x||m.switchU;if(m.eat(117)){if(this.regexp_eatFixedHexDigits(m,4)){var V=m.lastIntValue;if(L&&V>=55296&&V<=56319){var Y=m.pos;if(m.eat(92)&&m.eat(117)&&this.regexp_eatFixedHexDigits(m,4)){var Z=m.lastIntValue;if(Z>=56320&&Z<=57343)return m.lastIntValue=(V-55296)*1024+(Z-56320)+65536,!0}m.pos=Y,m.lastIntValue=V}return!0}if(L&&m.eat(123)&&this.regexp_eatHexDigits(m)&&m.eat(125)&&tt(m.lastIntValue))return!0;L&&m.raise("Invalid unicode escape"),m.pos=D}return!1};function tt(m){return m>=0&&m<=1114111}G.regexp_eatIdentityEscape=function(m){if(m.switchU)return this.regexp_eatSyntaxCharacter(m)?!0:m.eat(47)?(m.lastIntValue=47,!0):!1;var x=m.current();return x!==99&&(!m.switchN||x!==107)?(m.lastIntValue=x,m.advance(),!0):!1},G.regexp_eatDecimalEscape=function(m){m.lastIntValue=0;var x=m.current();if(x>=49&&x<=57){do m.lastIntValue=10*m.lastIntValue+(x-48),m.advance();while((x=m.current())>=48&&x<=57);return!0}return!1};var Xt=0,bt=1,ye=2;G.regexp_eatCharacterClassEscape=function(m){var x=m.current();if(Ie(x))return m.lastIntValue=-1,m.advance(),bt;var D=!1;if(m.switchU&&this.options.ecmaVersion>=9&&((D=x===80)||x===112)){m.lastIntValue=-1,m.advance();var L;if(m.eat(123)&&(L=this.regexp_eatUnicodePropertyValueExpression(m))&&m.eat(125))return D&&L===ye&&m.raise("Invalid property name"),L;m.raise("Invalid property name")}return Xt};function Ie(m){return m===100||m===68||m===115||m===83||m===119||m===87}G.regexp_eatUnicodePropertyValueExpression=function(m){var x=m.pos;if(this.regexp_eatUnicodePropertyName(m)&&m.eat(61)){var D=m.lastStringValue;if(this.regexp_eatUnicodePropertyValue(m)){var L=m.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(m,D,L),bt}}if(m.pos=x,this.regexp_eatLoneUnicodePropertyNameOrValue(m)){var V=m.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(m,V)}return Xt},G.regexp_validateUnicodePropertyNameAndValue=function(m,x,D){C(m.unicodeProperties.nonBinary,x)||m.raise("Invalid property name"),m.unicodeProperties.nonBinary[x].test(D)||m.raise("Invalid property value")},G.regexp_validateUnicodePropertyNameOrValue=function(m,x){if(m.unicodeProperties.binary.test(x))return bt;if(m.switchV&&m.unicodeProperties.binaryOfStrings.test(x))return ye;m.raise("Invalid property name")},G.regexp_eatUnicodePropertyName=function(m){var x=0;for(m.lastStringValue="";Me(x=m.current());)m.lastStringValue+=U(x),m.advance();return m.lastStringValue!==""};function Me(m){return Nt(m)||m===95}G.regexp_eatUnicodePropertyValue=function(m){var x=0;for(m.lastStringValue="";me(x=m.current());)m.lastStringValue+=U(x),m.advance();return m.lastStringValue!==""};function me(m){return Me(m)||Gt(m)}G.regexp_eatLoneUnicodePropertyNameOrValue=function(m){return this.regexp_eatUnicodePropertyValue(m)},G.regexp_eatCharacterClass=function(m){if(m.eat(91)){var x=m.eat(94),D=this.regexp_classContents(m);return m.eat(93)||m.raise("Unterminated character class"),x&&D===ye&&m.raise("Negated character class may contain strings"),!0}return!1},G.regexp_classContents=function(m){return m.current()===93?bt:m.switchV?this.regexp_classSetExpression(m):(this.regexp_nonEmptyClassRanges(m),bt)},G.regexp_nonEmptyClassRanges=function(m){for(;this.regexp_eatClassAtom(m);){var x=m.lastIntValue;if(m.eat(45)&&this.regexp_eatClassAtom(m)){var D=m.lastIntValue;m.switchU&&(x===-1||D===-1)&&m.raise("Invalid character class"),x!==-1&&D!==-1&&x>D&&m.raise("Range out of order in character class")}}},G.regexp_eatClassAtom=function(m){var x=m.pos;if(m.eat(92)){if(this.regexp_eatClassEscape(m))return!0;if(m.switchU){var D=m.current();(D===99||Gr(D))&&m.raise("Invalid class escape"),m.raise("Invalid escape")}m.pos=x}var L=m.current();return L!==93?(m.lastIntValue=L,m.advance(),!0):!1},G.regexp_eatClassEscape=function(m){var x=m.pos;if(m.eat(98))return m.lastIntValue=8,!0;if(m.switchU&&m.eat(45))return m.lastIntValue=45,!0;if(!m.switchU&&m.eat(99)){if(this.regexp_eatClassControlLetter(m))return!0;m.pos=x}return this.regexp_eatCharacterClassEscape(m)||this.regexp_eatCharacterEscape(m)},G.regexp_classSetExpression=function(m){var x=bt,D;if(!this.regexp_eatClassSetRange(m))if(D=this.regexp_eatClassSetOperand(m)){D===ye&&(x=ye);for(var L=m.pos;m.eatChars([38,38]);){if(m.current()!==38&&(D=this.regexp_eatClassSetOperand(m))){D!==ye&&(x=bt);continue}m.raise("Invalid character in character class")}if(L!==m.pos)return x;for(;m.eatChars([45,45]);)this.regexp_eatClassSetOperand(m)||m.raise("Invalid character in character class");if(L!==m.pos)return x}else m.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(m)){if(D=this.regexp_eatClassSetOperand(m),!D)return x;D===ye&&(x=ye)}},G.regexp_eatClassSetRange=function(m){var x=m.pos;if(this.regexp_eatClassSetCharacter(m)){var D=m.lastIntValue;if(m.eat(45)&&this.regexp_eatClassSetCharacter(m)){var L=m.lastIntValue;return D!==-1&&L!==-1&&D>L&&m.raise("Range out of order in character class"),!0}m.pos=x}return!1},G.regexp_eatClassSetOperand=function(m){return this.regexp_eatClassSetCharacter(m)?bt:this.regexp_eatClassStringDisjunction(m)||this.regexp_eatNestedClass(m)},G.regexp_eatNestedClass=function(m){var x=m.pos;if(m.eat(91)){var D=m.eat(94),L=this.regexp_classContents(m);if(m.eat(93))return D&&L===ye&&m.raise("Negated character class may contain strings"),L;m.pos=x}if(m.eat(92)){var V=this.regexp_eatCharacterClassEscape(m);if(V)return V;m.pos=x}return null},G.regexp_eatClassStringDisjunction=function(m){var x=m.pos;if(m.eatChars([92,113])){if(m.eat(123)){var D=this.regexp_classStringDisjunctionContents(m);if(m.eat(125))return D}else m.raise("Invalid escape");m.pos=x}return null},G.regexp_classStringDisjunctionContents=function(m){for(var x=this.regexp_classString(m);m.eat(124);)this.regexp_classString(m)===ye&&(x=ye);return x},G.regexp_classString=function(m){for(var x=0;this.regexp_eatClassSetCharacter(m);)x++;return x===1?bt:ye},G.regexp_eatClassSetCharacter=function(m){var x=m.pos;if(m.eat(92))return this.regexp_eatCharacterEscape(m)||this.regexp_eatClassSetReservedPunctuator(m)?!0:m.eat(98)?(m.lastIntValue=8,!0):(m.pos=x,!1);var D=m.current();return D<0||D===m.lookahead()&&qe(D)||ft(D)?!1:(m.advance(),m.lastIntValue=D,!0)};function qe(m){return m===33||m>=35&&m<=38||m>=42&&m<=44||m===46||m>=58&&m<=64||m===94||m===96||m===126}function ft(m){return m===40||m===41||m===45||m===47||m>=91&&m<=93||m>=123&&m<=125}G.regexp_eatClassSetReservedPunctuator=function(m){var x=m.current();return zt(x)?(m.lastIntValue=x,m.advance(),!0):!1};function zt(m){return m===33||m===35||m===37||m===38||m===44||m===45||m>=58&&m<=62||m===64||m===96||m===126}G.regexp_eatClassControlLetter=function(m){var x=m.current();return Gt(x)||x===95?(m.lastIntValue=x%32,m.advance(),!0):!1},G.regexp_eatHexEscapeSequence=function(m){var x=m.pos;if(m.eat(120)){if(this.regexp_eatFixedHexDigits(m,2))return!0;m.switchU&&m.raise("Invalid escape"),m.pos=x}return!1},G.regexp_eatDecimalDigits=function(m){var x=m.pos,D=0;for(m.lastIntValue=0;Gt(D=m.current());)m.lastIntValue=10*m.lastIntValue+(D-48),m.advance();return m.pos!==x};function Gt(m){return m>=48&&m<=57}G.regexp_eatHexDigits=function(m){var x=m.pos,D=0;for(m.lastIntValue=0;wt(D=m.current());)m.lastIntValue=16*m.lastIntValue+Kt(D),m.advance();return m.pos!==x};function wt(m){return m>=48&&m<=57||m>=65&&m<=70||m>=97&&m<=102}function Kt(m){return m>=65&&m<=70?10+(m-65):m>=97&&m<=102?10+(m-97):m-48}G.regexp_eatLegacyOctalEscapeSequence=function(m){if(this.regexp_eatOctalDigit(m)){var x=m.lastIntValue;if(this.regexp_eatOctalDigit(m)){var D=m.lastIntValue;x<=3&&this.regexp_eatOctalDigit(m)?m.lastIntValue=x*64+D*8+m.lastIntValue:m.lastIntValue=x*8+D}else m.lastIntValue=x;return!0}return!1},G.regexp_eatOctalDigit=function(m){var x=m.current();return Gr(x)?(m.lastIntValue=x-48,m.advance(),!0):(m.lastIntValue=0,!1)};function Gr(m){return m>=48&&m<=55}G.regexp_eatFixedHexDigits=function(m,x){var D=m.pos;m.lastIntValue=0;for(var L=0;L<x;++L){var V=m.current();if(!wt(V))return m.pos=D,!1;m.lastIntValue=16*m.lastIntValue+Kt(V),m.advance()}return!0};var ur=function(x){this.type=x.type,this.value=x.value,this.start=x.start,this.end=x.end,x.options.locations&&(this.loc=new re(x,x.startLoc,x.endLoc)),x.options.ranges&&(this.range=[x.start,x.end])},Ge=ht.prototype;Ge.next=function(m){!m&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new ur(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Ge.getToken=function(){return this.next(),new ur(this)},typeof Symbol<"u"&&(Ge[Symbol.iterator]=function(){var m=this;return{next:function(){var x=m.getToken();return{done:x.type===E.eof,value:x}}}}),Ge.nextToken=function(){var m=this.curContext();if((!m||!m.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(E.eof);if(m.override)return m.override(this);this.readToken(this.fullCharCodeAtPos())},Ge.readToken=function(m){return h(m,this.options.ecmaVersion>=6)||m===92?this.readWord():this.getTokenFromCode(m)},Ge.fullCharCodeAt=function(m){var x=this.input.charCodeAt(m);if(x<=55295||x>=56320)return x;var D=this.input.charCodeAt(m+1);return D<=56319||D>=57344?x:(x<<10)+D-56613888},Ge.fullCharCodeAtPos=function(){return this.fullCharCodeAt(this.pos)},Ge.skipBlockComment=function(){var m=this.options.onComment&&this.curPosition(),x=this.pos,D=this.input.indexOf("*/",this.pos+=2);if(D===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=D+2,this.options.locations)for(var L=void 0,V=x;(L=R(this.input,V,this.pos))>-1;)++this.curLine,V=this.lineStart=L;this.options.onComment&&this.options.onComment(!0,this.input.slice(x+2,D),x,this.pos,m,this.curPosition())},Ge.skipLineComment=function(m){for(var x=this.pos,D=this.options.onComment&&this.curPosition(),L=this.input.charCodeAt(this.pos+=m);this.pos<this.input.length&&!w(L);)L=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(x+m,this.pos),x,this.pos,D,this.curPosition())},Ge.skipSpace=function(){e:for(;this.pos<this.input.length;){var m=this.input.charCodeAt(this.pos);switch(m){case 32:case 160:++this.pos;break;case 13:this.input.charCodeAt(this.pos+1)===10&&++this.pos;case 10:case 8232:case 8233:++this.pos,this.options.locations&&(++this.curLine,this.lineStart=this.pos);break;case 47:switch(this.input.charCodeAt(this.pos+1)){case 42:this.skipBlockComment();break;case 47:this.skipLineComment(2);break;default:break e}break;default:if(m>8&&m<14||m>=5760&&j.test(String.fromCharCode(m)))++this.pos;else break e}}},Ge.finishToken=function(m,x){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var D=this.type;this.type=m,this.value=x,this.updateContext(D)},Ge.readToken_dot=function(){var m=this.input.charCodeAt(this.pos+1);if(m>=48&&m<=57)return this.readNumber(!0);var x=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&m===46&&x===46?(this.pos+=3,this.finishToken(E.ellipsis)):(++this.pos,this.finishToken(E.dot))},Ge.readToken_slash=function(){var m=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):m===61?this.finishOp(E.assign,2):this.finishOp(E.slash,1)},Ge.readToken_mult_modulo_exp=function(m){var x=this.input.charCodeAt(this.pos+1),D=1,L=m===42?E.star:E.modulo;return this.options.ecmaVersion>=7&&m===42&&x===42&&(++D,L=E.starstar,x=this.input.charCodeAt(this.pos+2)),x===61?this.finishOp(E.assign,D+1):this.finishOp(L,D)},Ge.readToken_pipe_amp=function(m){var x=this.input.charCodeAt(this.pos+1);if(x===m){if(this.options.ecmaVersion>=12){var D=this.input.charCodeAt(this.pos+2);if(D===61)return this.finishOp(E.assign,3)}return this.finishOp(m===124?E.logicalOR:E.logicalAND,2)}return x===61?this.finishOp(E.assign,2):this.finishOp(m===124?E.bitwiseOR:E.bitwiseAND,1)},Ge.readToken_caret=function(){var m=this.input.charCodeAt(this.pos+1);return m===61?this.finishOp(E.assign,2):this.finishOp(E.bitwiseXOR,1)},Ge.readToken_plus_min=function(m){var x=this.input.charCodeAt(this.pos+1);return x===m?x===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||k.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(E.incDec,2):x===61?this.finishOp(E.assign,2):this.finishOp(E.plusMin,1)},Ge.readToken_lt_gt=function(m){var x=this.input.charCodeAt(this.pos+1),D=1;return x===m?(D=m===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+D)===61?this.finishOp(E.assign,D+1):this.finishOp(E.bitShift,D)):x===33&&m===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(x===61&&(D=2),this.finishOp(E.relational,D))},Ge.readToken_eq_excl=function(m){var x=this.input.charCodeAt(this.pos+1);return x===61?this.finishOp(E.equality,this.input.charCodeAt(this.pos+2)===61?3:2):m===61&&x===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(E.arrow)):this.finishOp(m===61?E.eq:E.prefix,1)},Ge.readToken_question=function(){var m=this.options.ecmaVersion;if(m>=11){var x=this.input.charCodeAt(this.pos+1);if(x===46){var D=this.input.charCodeAt(this.pos+2);if(D<48||D>57)return this.finishOp(E.questionDot,2)}if(x===63){if(m>=12){var L=this.input.charCodeAt(this.pos+2);if(L===61)return this.finishOp(E.assign,3)}return this.finishOp(E.coalesce,2)}}return this.finishOp(E.question,1)},Ge.readToken_numberSign=function(){var m=this.options.ecmaVersion,x=35;if(m>=13&&(++this.pos,x=this.fullCharCodeAtPos(),h(x,!0)||x===92))return this.finishToken(E.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+U(x)+"'")},Ge.getTokenFromCode=function(m){switch(m){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(E.parenL);case 41:return++this.pos,this.finishToken(E.parenR);case 59:return++this.pos,this.finishToken(E.semi);case 44:return++this.pos,this.finishToken(E.comma);case 91:return++this.pos,this.finishToken(E.bracketL);case 93:return++this.pos,this.finishToken(E.bracketR);case 123:return++this.pos,this.finishToken(E.braceL);case 125:return++this.pos,this.finishToken(E.braceR);case 58:return++this.pos,this.finishToken(E.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(E.backQuote);case 48:var x=this.input.charCodeAt(this.pos+1);if(x===120||x===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(x===111||x===79)return this.readRadixNumber(8);if(x===98||x===66)return this.readRadixNumber(2)}case 49:case 50:case 51:case 52:case 53:case 54:case 55:case 56:case 57:return this.readNumber(!1);case 34:case 39:return this.readString(m);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(m);case 124:case 38:return this.readToken_pipe_amp(m);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(m);case 60:case 62:return this.readToken_lt_gt(m);case 61:case 33:return this.readToken_eq_excl(m);case 63:return this.readToken_question();case 126:return this.finishOp(E.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+U(m)+"'")},Ge.finishOp=function(m,x){var D=this.input.slice(this.pos,this.pos+x);return this.pos+=x,this.finishToken(m,D)},Ge.readRegexp=function(){for(var m,x,D=this.pos;;){this.pos>=this.input.length&&this.raise(D,"Unterminated regular expression");var L=this.input.charAt(this.pos);if(k.test(L)&&this.raise(D,"Unterminated regular expression"),m)m=!1;else{if(L==="[")x=!0;else if(L==="]"&&x)x=!1;else if(L==="/"&&!x)break;m=L==="\\"}++this.pos}var V=this.input.slice(D,this.pos);++this.pos;var Y=this.pos,Z=this.readWord1();this.containsEsc&&this.unexpected(Y);var de=this.regexpState||(this.regexpState=new Ee(this));de.reset(D,V,Z),this.validateRegExpFlags(de),this.validateRegExpPattern(de);var Ce=null;try{Ce=new RegExp(V,Z)}catch{}return this.finishToken(E.regexp,{pattern:V,flags:Z,value:Ce})},Ge.readInt=function(m,x,D){for(var L=this.options.ecmaVersion>=12&&x===void 0,V=D&&this.input.charCodeAt(this.pos)===48,Y=this.pos,Z=0,de=0,Ce=0,Ve=x??1/0;Ce<Ve;++Ce,++this.pos){var Ke=this.input.charCodeAt(this.pos),vt=void 0;if(L&&Ke===95){V&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),de===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),Ce===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),de=Ke;continue}if(Ke>=97?vt=Ke-97+10:Ke>=65?vt=Ke-65+10:Ke>=48&&Ke<=57?vt=Ke-48:vt=1/0,vt>=m)break;de=Ke,Z=Z*m+vt}return L&&de===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===Y||x!=null&&this.pos-Y!==x?null:Z};function td(m,x){return x?parseInt(m,8):parseFloat(m.replace(/_/g,""))}function Kr(m){return typeof BigInt!="function"?null:BigInt(m.replace(/_/g,""))}Ge.readRadixNumber=function(m){var x=this.pos;this.pos+=2;var D=this.readInt(m);return D==null&&this.raise(this.start+2,"Expected number in radix "+m),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(D=Kr(this.input.slice(x,this.pos)),++this.pos):h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,D)},Ge.readNumber=function(m){var x=this.pos;!m&&this.readInt(10,void 0,!0)===null&&this.raise(x,"Invalid number");var D=this.pos-x>=2&&this.input.charCodeAt(x)===48;D&&this.strict&&this.raise(x,"Invalid number");var L=this.input.charCodeAt(this.pos);if(!D&&!m&&this.options.ecmaVersion>=11&&L===110){var V=Kr(this.input.slice(x,this.pos));return++this.pos,h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(E.num,V)}D&&/[89]/.test(this.input.slice(x,this.pos))&&(D=!1),L===46&&!D&&(++this.pos,this.readInt(10),L=this.input.charCodeAt(this.pos)),(L===69||L===101)&&!D&&(L=this.input.charCodeAt(++this.pos),(L===43||L===45)&&++this.pos,this.readInt(10)===null&&this.raise(x,"Invalid number")),h(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Y=td(this.input.slice(x,this.pos),D);return this.finishToken(E.num,Y)},Ge.readCodePoint=function(){var m=this.input.charCodeAt(this.pos),x;if(m===123){this.options.ecmaVersion<6&&this.unexpected();var D=++this.pos;x=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,x>1114111&&this.invalidStringToken(D,"Code point out of bounds")}else x=this.readHexChar(4);return x},Ge.readString=function(m){for(var x="",D=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var L=this.input.charCodeAt(this.pos);if(L===m)break;L===92?(x+=this.input.slice(D,this.pos),x+=this.readEscapedChar(!1),D=this.pos):L===8232||L===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(w(L)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return x+=this.input.slice(D,this.pos++),this.finishToken(E.string,x)};var hn={};Ge.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(m){if(m===hn)this.readInvalidTemplateToken();else throw m}this.inTemplateElement=!1},Ge.invalidStringToken=function(m,x){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw hn;this.raise(m,x)},Ge.readTmplToken=function(){for(var m="",x=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var D=this.input.charCodeAt(this.pos);if(D===96||D===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===E.template||this.type===E.invalidTemplate)?D===36?(this.pos+=2,this.finishToken(E.dollarBraceL)):(++this.pos,this.finishToken(E.backQuote)):(m+=this.input.slice(x,this.pos),this.finishToken(E.template,m));if(D===92)m+=this.input.slice(x,this.pos),m+=this.readEscapedChar(!0),x=this.pos;else if(w(D)){switch(m+=this.input.slice(x,this.pos),++this.pos,D){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:m+=`
34
+ `;break;default:m+=String.fromCharCode(D);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),x=this.pos}else++this.pos}},Ge.readInvalidTemplateToken=function(){for(;this.pos<this.input.length;this.pos++)switch(this.input[this.pos]){case"\\":++this.pos;break;case"$":if(this.input[this.pos+1]!=="{")break;case"`":return this.finishToken(E.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
35
+ `&&++this.pos;case`
36
+ `:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},Ge.readEscapedChar=function(m){var x=this.input.charCodeAt(++this.pos);switch(++this.pos,x){case 110:return`
37
+ `;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return U(this.readCodePoint());case 116:return" ";case 98:return"\b";case 118:return"\v";case 102:return"\f";case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:return this.options.locations&&(this.lineStart=this.pos,++this.curLine),"";case 56:case 57:if(this.strict&&this.invalidStringToken(this.pos-1,"Invalid escape sequence"),m){var D=this.pos-1;this.invalidStringToken(D,"Invalid escape sequence in template string")}default:if(x>=48&&x<=55){var L=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],V=parseInt(L,8);return V>255&&(L=L.slice(0,-1),V=parseInt(L,8)),this.pos+=L.length-1,x=this.input.charCodeAt(this.pos),(L!=="0"||x===56||x===57)&&(this.strict||m)&&this.invalidStringToken(this.pos-1-L.length,m?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(V)}return w(x)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(x)}},Ge.readHexChar=function(m){var x=this.pos,D=this.readInt(16,m);return D===null&&this.invalidStringToken(x,"Bad character escape sequence"),D},Ge.readWord1=function(){this.containsEsc=!1;for(var m="",x=!0,D=this.pos,L=this.options.ecmaVersion>=6;this.pos<this.input.length;){var V=this.fullCharCodeAtPos();if(f(V,L))this.pos+=V<=65535?1:2;else if(V===92){this.containsEsc=!0,m+=this.input.slice(D,this.pos);var Y=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var Z=this.readCodePoint();(x?h:f)(Z,L)||this.invalidStringToken(Y,"Invalid Unicode escape"),m+=U(Z),D=this.pos}else break;x=!1}return m+this.input.slice(D,this.pos)},Ge.readWord=function(){var m=this.readWord1(),x=E.name;return this.keywords.test(m)&&(x=S[m]),this.finishToken(x,m)};var Ai="8.19.0";ht.acorn={Parser:ht,version:Ai,defaultOptions:be,Position:W,SourceLocation:re,getLineInfo:ue,Node:Lt,TokenType:d,tokTypes:E,keywordTypes:S,TokContext:Vt,tokContexts:nt,isIdentifierChar:f,isIdentifierStart:h,Token:ur,isNewLine:w,lineBreak:k,lineBreakG:T,nonASCIIwhitespace:j};function du(m,x){return ht.parse(m,x)}function gu(m,x,D){return ht.parseExpressionAt(m,x,D)}function yu(m,x){return ht.tokenizer(m,x)}t.Node=Lt,t.Parser=ht,t.Position=W,t.SourceLocation=re,t.TokContext=Vt,t.Token=ur,t.TokenType=d,t.defaultOptions=be,t.getLineInfo=ue,t.isIdentifierChar=f,t.isIdentifierStart=h,t.isNewLine=w,t.keywordTypes=S,t.lineBreak=k,t.lineBreakG=T,t.nonASCIIwhitespace=j,t.parse=du,t.parseExpressionAt=gu,t.tokContexts=nt,t.tokTypes=E,t.tokenizer=yu,t.version=Ai}))});var rC=B((_ee,tC)=>{tC.exports={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:"\xA0",iexcl:"\xA1",cent:"\xA2",pound:"\xA3",curren:"\xA4",yen:"\xA5",brvbar:"\xA6",sect:"\xA7",uml:"\xA8",copy:"\xA9",ordf:"\xAA",laquo:"\xAB",not:"\xAC",shy:"\xAD",reg:"\xAE",macr:"\xAF",deg:"\xB0",plusmn:"\xB1",sup2:"\xB2",sup3:"\xB3",acute:"\xB4",micro:"\xB5",para:"\xB6",middot:"\xB7",cedil:"\xB8",sup1:"\xB9",ordm:"\xBA",raquo:"\xBB",frac14:"\xBC",frac12:"\xBD",frac34:"\xBE",iquest:"\xBF",Agrave:"\xC0",Aacute:"\xC1",Acirc:"\xC2",Atilde:"\xC3",Auml:"\xC4",Aring:"\xC5",AElig:"\xC6",Ccedil:"\xC7",Egrave:"\xC8",Eacute:"\xC9",Ecirc:"\xCA",Euml:"\xCB",Igrave:"\xCC",Iacute:"\xCD",Icirc:"\xCE",Iuml:"\xCF",ETH:"\xD0",Ntilde:"\xD1",Ograve:"\xD2",Oacute:"\xD3",Ocirc:"\xD4",Otilde:"\xD5",Ouml:"\xD6",times:"\xD7",Oslash:"\xD8",Ugrave:"\xD9",Uacute:"\xDA",Ucirc:"\xDB",Uuml:"\xDC",Yacute:"\xDD",THORN:"\xDE",szlig:"\xDF",agrave:"\xE0",aacute:"\xE1",acirc:"\xE2",atilde:"\xE3",auml:"\xE4",aring:"\xE5",aelig:"\xE6",ccedil:"\xE7",egrave:"\xE8",eacute:"\xE9",ecirc:"\xEA",euml:"\xEB",igrave:"\xEC",iacute:"\xED",icirc:"\xEE",iuml:"\xEF",eth:"\xF0",ntilde:"\xF1",ograve:"\xF2",oacute:"\xF3",ocirc:"\xF4",otilde:"\xF5",ouml:"\xF6",divide:"\xF7",oslash:"\xF8",ugrave:"\xF9",uacute:"\xFA",ucirc:"\xFB",uuml:"\xFC",yacute:"\xFD",thorn:"\xFE",yuml:"\xFF",OElig:"\u0152",oelig:"\u0153",Scaron:"\u0160",scaron:"\u0161",Yuml:"\u0178",fnof:"\u0192",circ:"\u02C6",tilde:"\u02DC",Alpha:"\u0391",Beta:"\u0392",Gamma:"\u0393",Delta:"\u0394",Epsilon:"\u0395",Zeta:"\u0396",Eta:"\u0397",Theta:"\u0398",Iota:"\u0399",Kappa:"\u039A",Lambda:"\u039B",Mu:"\u039C",Nu:"\u039D",Xi:"\u039E",Omicron:"\u039F",Pi:"\u03A0",Rho:"\u03A1",Sigma:"\u03A3",Tau:"\u03A4",Upsilon:"\u03A5",Phi:"\u03A6",Chi:"\u03A7",Psi:"\u03A8",Omega:"\u03A9",alpha:"\u03B1",beta:"\u03B2",gamma:"\u03B3",delta:"\u03B4",epsilon:"\u03B5",zeta:"\u03B6",eta:"\u03B7",theta:"\u03B8",iota:"\u03B9",kappa:"\u03BA",lambda:"\u03BB",mu:"\u03BC",nu:"\u03BD",xi:"\u03BE",omicron:"\u03BF",pi:"\u03C0",rho:"\u03C1",sigmaf:"\u03C2",sigma:"\u03C3",tau:"\u03C4",upsilon:"\u03C5",phi:"\u03C6",chi:"\u03C7",psi:"\u03C8",omega:"\u03C9",thetasym:"\u03D1",upsih:"\u03D2",piv:"\u03D6",ensp:"\u2002",emsp:"\u2003",thinsp:"\u2009",zwnj:"\u200C",zwj:"\u200D",lrm:"\u200E",rlm:"\u200F",ndash:"\u2013",mdash:"\u2014",lsquo:"\u2018",rsquo:"\u2019",sbquo:"\u201A",ldquo:"\u201C",rdquo:"\u201D",bdquo:"\u201E",dagger:"\u2020",Dagger:"\u2021",bull:"\u2022",hellip:"\u2026",permil:"\u2030",prime:"\u2032",Prime:"\u2033",lsaquo:"\u2039",rsaquo:"\u203A",oline:"\u203E",frasl:"\u2044",euro:"\u20AC",image:"\u2111",weierp:"\u2118",real:"\u211C",trade:"\u2122",alefsym:"\u2135",larr:"\u2190",uarr:"\u2191",rarr:"\u2192",darr:"\u2193",harr:"\u2194",crarr:"\u21B5",lArr:"\u21D0",uArr:"\u21D1",rArr:"\u21D2",dArr:"\u21D3",hArr:"\u21D4",forall:"\u2200",part:"\u2202",exist:"\u2203",empty:"\u2205",nabla:"\u2207",isin:"\u2208",notin:"\u2209",ni:"\u220B",prod:"\u220F",sum:"\u2211",minus:"\u2212",lowast:"\u2217",radic:"\u221A",prop:"\u221D",infin:"\u221E",ang:"\u2220",and:"\u2227",or:"\u2228",cap:"\u2229",cup:"\u222A",int:"\u222B",there4:"\u2234",sim:"\u223C",cong:"\u2245",asymp:"\u2248",ne:"\u2260",equiv:"\u2261",le:"\u2264",ge:"\u2265",sub:"\u2282",sup:"\u2283",nsub:"\u2284",sube:"\u2286",supe:"\u2287",oplus:"\u2295",otimes:"\u2297",perp:"\u22A5",sdot:"\u22C5",lceil:"\u2308",rceil:"\u2309",lfloor:"\u230A",rfloor:"\u230B",lang:"\u2329",rang:"\u232A",loz:"\u25CA",spades:"\u2660",clubs:"\u2663",hearts:"\u2665",diams:"\u2666"}});var iC=B((Bee,_f)=>{"use strict";var OU=rC(),LU=/^[\da-fA-F]+$/,NU=/^\d+$/,nC=new WeakMap;function sC(t){t=t.Parser.acorn||t;let e=nC.get(t);if(!e){let r=t.tokTypes,s=t.TokContext,n=t.TokenType,i=new s("<tag",!1),o=new s("</tag",!1),a=new s("<tag>...</tag>",!0,!0),l={tc_oTag:i,tc_cTag:o,tc_expr:a},u={jsxName:new n("jsxName"),jsxText:new n("jsxText",{beforeExpr:!0}),jsxTagStart:new n("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new n("jsxTagEnd")};u.jsxTagStart.updateContext=function(){this.context.push(a),this.context.push(i),this.exprAllowed=!1},u.jsxTagEnd.updateContext=function(c){let p=this.context.pop();p===i&&c===r.slash||p===o?(this.context.pop(),this.exprAllowed=this.curContext()===a):this.exprAllowed=!0},e={tokContexts:l,tokTypes:u},nC.set(t,e)}return e}function ea(t){if(!t)return t;if(t.type==="JSXIdentifier")return t.name;if(t.type==="JSXNamespacedName")return t.namespace.name+":"+t.name.name;if(t.type==="JSXMemberExpression")return ea(t.object)+"."+ea(t.property)}_f.exports=function(t){return t=t||{},function(e){return RU({allowNamespaces:t.allowNamespaces!==!1,allowNamespacedObjects:!!t.allowNamespacedObjects},e)}};Object.defineProperty(_f.exports,"tokTypes",{get:function(){return sC(cl()).tokTypes},configurable:!0,enumerable:!0});function RU(t,e){let r=e.acorn||cl(),s=sC(r),n=r.tokTypes,i=s.tokTypes,o=r.tokContexts,a=s.tokContexts.tc_oTag,l=s.tokContexts.tc_cTag,u=s.tokContexts.tc_expr,c=r.isNewLine,p=r.isIdentifierStart,h=r.isIdentifierChar;return class extends e{static get acornJsx(){return s}jsx_readToken(){let f="",d=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let g=this.input.charCodeAt(this.pos);switch(g){case 60:case 123:return this.pos===this.start?g===60&&this.exprAllowed?(++this.pos,this.finishToken(i.jsxTagStart)):this.getTokenFromCode(g):(f+=this.input.slice(d,this.pos),this.finishToken(i.jsxText,f));case 38:f+=this.input.slice(d,this.pos),f+=this.jsx_readEntity(),d=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(g===62?"&gt;":"&rbrace;")+'` or `{"'+this.input[this.pos]+'"}`?');default:c(g)?(f+=this.input.slice(d,this.pos),f+=this.jsx_readNewLine(!0),d=this.pos):++this.pos}}}jsx_readNewLine(f){let d=this.input.charCodeAt(this.pos),g;return++this.pos,d===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,g=f?`
38
+ `:`\r
39
+ `):g=String.fromCharCode(d),this.options.locations&&(++this.curLine,this.lineStart=this.pos),g}jsx_readString(f){let d="",g=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let y=this.input.charCodeAt(this.pos);if(y===f)break;y===38?(d+=this.input.slice(g,this.pos),d+=this.jsx_readEntity(),g=this.pos):c(y)?(d+=this.input.slice(g,this.pos),d+=this.jsx_readNewLine(!1),g=this.pos):++this.pos}return d+=this.input.slice(g,this.pos++),this.finishToken(n.string,d)}jsx_readEntity(){let f="",d=0,g,y=this.input[this.pos];y!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let v=++this.pos;for(;this.pos<this.input.length&&d++<10;){if(y=this.input[this.pos++],y===";"){f[0]==="#"?f[1]==="x"?(f=f.substr(2),LU.test(f)&&(g=String.fromCharCode(parseInt(f,16)))):(f=f.substr(1),NU.test(f)&&(g=String.fromCharCode(parseInt(f,10)))):g=OU[f];break}f+=y}return g||(this.pos=v,"&")}jsx_readWord(){let f,d=this.pos;do f=this.input.charCodeAt(++this.pos);while(h(f)||f===45);return this.finishToken(i.jsxName,this.input.slice(d,this.pos))}jsx_parseIdentifier(){let f=this.startNode();return this.type===i.jsxName?f.name=this.value:this.type.keyword?f.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(f,"JSXIdentifier")}jsx_parseNamespacedName(){let f=this.start,d=this.startLoc,g=this.jsx_parseIdentifier();if(!t.allowNamespaces||!this.eat(n.colon))return g;var y=this.startNodeAt(f,d);return y.namespace=g,y.name=this.jsx_parseIdentifier(),this.finishNode(y,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===i.jsxTagEnd)return"";let f=this.start,d=this.startLoc,g=this.jsx_parseNamespacedName();for(this.type===n.dot&&g.type==="JSXNamespacedName"&&!t.allowNamespacedObjects&&this.unexpected();this.eat(n.dot);){let y=this.startNodeAt(f,d);y.object=g,y.property=this.jsx_parseIdentifier(),g=this.finishNode(y,"JSXMemberExpression")}return g}jsx_parseAttributeValue(){switch(this.type){case n.braceL:let f=this.jsx_parseExpressionContainer();return f.expression.type==="JSXEmptyExpression"&&this.raise(f.start,"JSX attributes must only be assigned a non-empty expression"),f;case i.jsxTagStart:case n.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let f=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(f,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let f=this.startNode();return this.next(),f.expression=this.type===n.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(n.braceR),this.finishNode(f,"JSXExpressionContainer")}jsx_parseAttribute(){let f=this.startNode();return this.eat(n.braceL)?(this.expect(n.ellipsis),f.argument=this.parseMaybeAssign(),this.expect(n.braceR),this.finishNode(f,"JSXSpreadAttribute")):(f.name=this.jsx_parseNamespacedName(),f.value=this.eat(n.eq)?this.jsx_parseAttributeValue():null,this.finishNode(f,"JSXAttribute"))}jsx_parseOpeningElementAt(f,d){let g=this.startNodeAt(f,d);g.attributes=[];let y=this.jsx_parseElementName();for(y&&(g.name=y);this.type!==n.slash&&this.type!==i.jsxTagEnd;)g.attributes.push(this.jsx_parseAttribute());return g.selfClosing=this.eat(n.slash),this.expect(i.jsxTagEnd),this.finishNode(g,y?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(f,d){let g=this.startNodeAt(f,d),y=this.jsx_parseElementName();return y&&(g.name=y),this.expect(i.jsxTagEnd),this.finishNode(g,y?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(f,d){let g=this.startNodeAt(f,d),y=[],v=this.jsx_parseOpeningElementAt(f,d),S=null;if(!v.selfClosing){e:for(;;)switch(this.type){case i.jsxTagStart:if(f=this.start,d=this.startLoc,this.next(),this.eat(n.slash)){S=this.jsx_parseClosingElementAt(f,d);break e}y.push(this.jsx_parseElementAt(f,d));break;case i.jsxText:y.push(this.parseExprAtom());break;case n.braceL:y.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}ea(S.name)!==ea(v.name)&&this.raise(S.start,"Expected corresponding JSX closing tag for <"+ea(v.name)+">")}let A=v.name?"Element":"Fragment";return g["opening"+A]=v,g["closing"+A]=S,g.children=y,this.type===n.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(g,"JSX"+A)}jsx_parseText(){let f=this.parseLiteral(this.value);return f.type="JSXText",f}jsx_parseElement(){let f=this.start,d=this.startLoc;return this.next(),this.jsx_parseElementAt(f,d)}parseExprAtom(f){return this.type===i.jsxText?this.jsx_parseText():this.type===i.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(f)}readToken(f){let d=this.curContext();if(d===u)return this.jsx_readToken();if(d===a||d===l){if(p(f))return this.jsx_readWord();if(f==62)return++this.pos,this.finishToken(i.jsxTagEnd);if((f===34||f===39)&&d==a)return this.jsx_readString(f)}return f===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(i.jsxTagStart)):super.readToken(f)}updateContext(f){if(this.type==n.braceL){var d=this.curContext();d==a?this.context.push(o.b_expr):d==u?this.context.push(o.b_tmpl):super.updateContext(f),this.exprAllowed=!0}else if(this.type===n.slash&&f===i.jsxTagStart)this.context.length-=2,this.context.push(l),this.exprAllowed=!1;else return super.updateContext(f)}}}});var pl=B(Yr=>{"use strict";var jU=cl(),MU=iC(),Of=Mn();function qU(t){var e=Object.create(null);return t&&Object.keys(t).forEach(function(r){if(r!=="default"){var s=Object.getOwnPropertyDescriptor(t,r);Object.defineProperty(e,r,s.get?s:{enumerable:!0,get:function(){return t[r]}})}}),e.default=t,Object.freeze(e)}var aC=qU(jU),tr={Boolean:"Boolean",EOF:"<end>",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function UU(t,e){let r=t[0],s=t.at(-1),n={type:tr.Template,value:e.slice(r.start,s.end)};return r.loc&&(n.loc={start:r.loc.start,end:s.loc.end}),r.range&&(n.start=r.range[0],n.end=s.range[1],n.range=[n.start,n.end]),n}var Lf=class{constructor(e,r){this._acornTokTypes=e,this._tokens=[],this._curlyBrace=null,this._code=r}translate(e,r){let s=e.type,n=this._acornTokTypes,i=e,o=i;if(s===n.name)o.type=tr.Identifier,"value"in e&&e.value==="static"&&(o.type=tr.Keyword),r.ecmaVersion>5&&"value"in e&&(e.value==="yield"||e.value==="let")&&(o.type=tr.Keyword);else if(s===n.privateId)o.type=tr.PrivateIdentifier;else if(s===n.semi||s===n.comma||s===n.parenL||s===n.parenR||s===n.braceL||s===n.braceR||s===n.dot||s===n.bracketL||s===n.colon||s===n.question||s===n.bracketR||s===n.ellipsis||s===n.arrow||s===n.jsxTagStart||s===n.incDec||s===n.starstar||s===n.jsxTagEnd||s===n.prefix||s===n.questionDot||"binop"in s&&s.binop&&!s.keyword||"isAssign"in s&&s.isAssign)o.type=tr.Punctuator,o.value=this._code.slice(e.start,e.end);else if(s===n.jsxName)o.type=tr.JSXIdentifier;else if(s.label==="jsxText"||s===n.jsxAttrValueToken)o.type=tr.JSXText;else if(s.keyword)s.keyword==="true"||s.keyword==="false"?o.type=tr.Boolean:s.keyword==="null"?o.type=tr.Null:o.type=tr.Keyword;else if(s===n.num)o.type=tr.Numeric,o.value=this._code.slice(e.start,e.end);else if(s===n.string)r.jsxAttrValueToken?(r.jsxAttrValueToken=!1,o.type=tr.JSXText):o.type=tr.String,o.value=this._code.slice(e.start,e.end);else if(s===n.regexp){o.type=tr.RegularExpression;let a="value"in e&&e.value;o.regex={flags:a.flags,pattern:a.pattern},o.value=`/${a.pattern}/${a.flags}`}return o}onToken(e,r){let s=this._acornTokTypes,n=r.tokens,i=this._tokens,o=()=>{n.push(UU(this._tokens,this._code)),this._tokens=[]};if(e.type===s.eof){this._curlyBrace&&n.push(this.translate(this._curlyBrace,r));return}if(e.type===s.backQuote){this._curlyBrace&&(n.push(this.translate(this._curlyBrace,r)),this._curlyBrace=null),i.push(e),i.length>1&&o();return}if(e.type===s.dollarBraceL){i.push(e),o();return}if(e.type===s.braceR){this._curlyBrace&&n.push(this.translate(this._curlyBrace,r)),this._curlyBrace=e;return}if(e.type===s.template||e.type===s.invalidTemplate){this._curlyBrace&&(i.push(this._curlyBrace),this._curlyBrace=null),i.push(e);return}this._curlyBrace&&(n.push(this.translate(this._curlyBrace,r)),this._curlyBrace=null),n.push(this.translate(e,r))}},Nf=[3,5,6,7,8,9,10,11,12,13,14,15,16,17],$U=Nf.at(-1);function lC(){return $U}function VU(){return[...Nf]}function WU(t=5){let e=t==="latest"?lC():t;if(typeof e!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof t} instead.`);if(e>=2015&&(e-=2009),!Nf.includes(e))throw new Error("Invalid ecmaVersion.");return e}function zU(t="script"){if(t==="script"||t==="module"||t==="commonjs")return t;throw new Error("Invalid sourceType.")}function GU(t){let e=WU(t.ecmaVersion),r=zU(t.sourceType),s=t.range===!0,n=t.loc===!0;if(e!==3&&t.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof t.allowReserved<"u"&&typeof t.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");let i=e===3?t.allowReserved||"never":!1,o=t.ecmaFeatures||{},a=t.sourceType==="commonjs"||!!o.globalReturn;if(r==="module"&&e<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},t,{ecmaVersion:e,sourceType:r,ranges:s,locations:n,allowReserved:i,allowReturnOutsideFunction:a})}var Yn=Symbol("espree's internal state"),Bf=Symbol("espree's esprimaFinishNode");function KU(t,e,r,s,n,i,o){let a;t?a="Block":o.slice(r,r+2)==="#!"?a="Hashbang":a="Line";let l={type:a,value:e};return typeof r=="number"&&(l.start=r,l.end=s,l.range=[r,s]),typeof n=="object"&&(l.loc={start:n,end:i}),l}var oC=()=>t=>{let e=Object.assign({},t.acorn.tokTypes);return t.acornJsx&&Object.assign(e,t.acornJsx.tokTypes),class extends t{constructor(s,n){(typeof s!="object"||s===null)&&(s={}),typeof n!="string"&&!(n instanceof String)&&(n=String(n));let i=s.sourceType,o=GU(s),a=o.ecmaFeatures||{},l=o.tokens===!0?new Lf(e,n):null,u={originalSourceType:i||o.sourceType,tokens:l?[]:null,comments:o.comment===!0?[]:null,impliedStrict:a.impliedStrict===!0&&o.ecmaVersion>=5,ecmaVersion:o.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:o.ecmaVersion,sourceType:o.sourceType,ranges:o.ranges,locations:o.locations,allowReserved:o.allowReserved,allowReturnOutsideFunction:o.allowReturnOutsideFunction,onToken(c){l&&l.onToken(c,u),c.type!==e.eof&&(u.lastToken=c)},onComment(c,p,h,f,d,g){if(u.comments){let y=KU(c,p,h,f,d,g,n);u.comments.push(y)}}},n),this[Yn]=u}tokenize(){do this.next();while(this.type!==e.eof);this.next();let s=this[Yn],n=s.tokens;return s.comments&&(n.comments=s.comments),n}finishNode(s,n){let i=super.finishNode(s,n);return this[Bf](i)}finishNodeAt(s,n,i,o){let a=super.finishNodeAt(s,n,i,o);return this[Bf](a)}parse(){let s=this[Yn],i=super.parse();return i.sourceType=s.originalSourceType,s.comments&&(i.comments=s.comments),s.tokens&&(i.tokens=s.tokens),this[Yn].templateElements.forEach(o=>{let l=o.tail?1:2;o.start+=-1,o.end+=l,o.range&&(o.range[0]+=-1,o.range[1]+=l),o.loc&&(o.loc.start.column+=-1,o.loc.end.column+=l)}),i}parseTopLevel(s){return this[Yn].impliedStrict&&(this.strict=!0),super.parseTopLevel(s)}raise(s,n){let i=t.acorn.getLineInfo(this.input,s),o=new SyntaxError(n);throw o.index=s,o.lineNumber=i.line,o.column=i.column+1,o}raiseRecoverable(s,n){this.raise(s,n)}unexpected(s){let n="Unexpected token";if(s!=null){if(this.pos=s,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
40
+ `,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(n+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,n)}jsx_readString(s){let n=super.jsx_readString(s);return this.type===e.string&&(this[Yn].jsxAttrValueToken=!0),n}[Bf](s){return s.type==="TemplateElement"&&this[Yn].templateElements.push(s),s.type.includes("Function")&&!("generator"in s)&&(s.generator=!1),s}}},uC={_regular:null,_jsx:null,get regular(){if(this._regular===null){let t=oC();this._regular=aC.Parser.extend(t)}return this._regular},get jsx(){if(this._jsx===null){let t=oC(),e=MU();this._jsx=aC.Parser.extend(e,t)}return this._jsx},get(t){return!!(t&&t.ecmaFeatures&&t.ecmaFeatures.jsx)?this.jsx:this.regular}};function HU(t,e){let r=uC.get(e);return(!e||e.tokens!==!0)&&(e=Object.assign({},e,{tokens:!0})),new r(e,t).tokenize()}function JU(t,e){let r=uC.get(e);return new r(e,t).parse()}var XU="11.2.0",QU="espree",YU=(function(){let t,e={};typeof Object.create=="function"&&(e=Object.create(null));for(t in Of.KEYS)Object.hasOwn(Of.KEYS,t)&&(e[t]=t);return typeof Object.freeze=="function"&&Object.freeze(e),e})(),ZU=lC(),e$=VU();Object.defineProperty(Yr,"VisitorKeys",{enumerable:!0,get:function(){return Of.KEYS}});Yr.Syntax=YU;Yr.latestEcmaVersion=ZU;Yr.name=QU;Yr.parse=JU;Yr.supportedEcmaVersions=e$;Yr.tokenize=HU;Yr.version=XU});var Rf=B((Ree,cC)=>{"use strict";cC.exports={LATEST_ECMA_VERSION:2026}});var X=B((jee,br)=>{"use strict";var{KEYS:t$}=Mn(),r$=Ff(),jf=pl(),n$=qi(),{breakableTypePattern:s$,createGlobalLinebreakMatcher:i$,lineBreakPattern:a$,shebangPattern:o$}=Li(),l$=Xu(),{LATEST_ECMA_VERSION:u$}=Rf(),AC=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,c$=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,p$=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u,f$=/Array$/u,h$=/^(?:bind|call|apply)$/u,pC=/^[\s*]*@this/mu,m$=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,d$=/^(?:eslint[- ]|(?:globals?|exported) )/u,g$=new Set([`\r
41
+ `,"\r",`
42
+ `,"\u2028","\u2029"]),y$=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),x$=new Set(["let","const","using","await using"]),fC=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,E$=/^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su,b$=new Set(["&&=","||=","??="]),v$=l$[`es${u$}`];function S$(t,e,r){let s=t.identifier,n=e===0||r[e-1].identifier!==s;return s&&t.init===!1&&t.isWrite()&&n}function Uf(t){let[e]=t;return e!==e.toLocaleLowerCase()}function hC(t){return t.id&&Uf(t.id.name)}function mC(t){for(let e=t;e;e=e.parent)if(AC.test(e.type))return e;return null}function dl(t){return!!(t&&AC.test(t.type))}function kC(t){return!!(t&&c$.test(t.type))}function C$(t){for(let e=t;e&&!dl(e);e=e.parent)if(kC(e))return!0;return!1}function Jf(t){return t.type==="Literal"&&t.value===null&&!t.regex&&!t.bigint}function ta(t){return Jf(t)||t.type==="Identifier"&&t.name==="undefined"||t.type==="UnaryExpression"&&t.operator==="void"}function fl(t){return t.parent.type==="CallExpression"&&t.parent.callee===t}function TC(t){switch(t.type){case"Literal":if(t.value===null){if(Jf(t))return String(t.value);if(t.regex)return`/${t.regex.pattern}/${t.regex.flags}`;if(t.bigint)return t.bigint}else return String(t.value);break;case"TemplateLiteral":if(t.expressions.length===0&&t.quasis.length===1)return t.quasis[0].value.cooked;break}return null}function es(t){let e;switch(t&&t.type){case"ChainExpression":return es(t.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":case"TSPropertySignature":case"TSMethodSignature":e=t.key;break;case"MemberExpression":e=t.property;break}return e?e.type==="Identifier"&&!t.computed?e.name:TC(e):null}function Xf(t){return t&&t.type==="ChainExpression"?t.expression:t}function ra(t){let e=t;for(;e.type==="TSAsExpression"||e.type==="TSSatisfiesExpression"||e.type==="TSTypeAssertion"||e.type==="TSNonNullExpression";)e=e.expression;return e}function dC(t){let e=t;for(;(e.parent.type==="TSAsExpression"||e.parent.type==="TSSatisfiesExpression"||e.parent.type==="TSTypeAssertion"||e.parent.type==="TSNonNullExpression"||e.parent.type==="TSInstantiationExpression")&&e.parent.expression===e;)e=e.parent;return e}function DC(t,e){return typeof e=="string"?t===e:e.test(t)}function IC(t,e){return t.type==="Identifier"&&DC(t.name,e)}function ts(t,e,r){let s=Xf(t);if(s.type!=="MemberExpression"||e&&!IC(s.object,e))return!1;if(r){let n=es(s);if(typeof n!="string"||!DC(n,r))return!1}return!0}function PC(t,e){return t.regex||e.regex?!!(t.regex&&e.regex&&t.regex.pattern===e.regex.pattern&&t.regex.flags===e.regex.flags):t.bigint||e.bigint?t.bigint===e.bigint:t.value===e.value}function Zn(t,e,r=!1){if(t.type!==e.type)return t.type==="ChainExpression"?Zn(t.expression,e,r):e.type==="ChainExpression"?Zn(t,e.expression,r):!1;switch(t.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return t.name===e.name;case"Literal":return PC(t,e);case"ChainExpression":return Zn(t.expression,e.expression,r);case"MemberExpression":{if(!r){let s=es(t);if(s!==null)return Zn(t.object,e.object,r)&&s===es(e)}return t.computed===e.computed&&Zn(t.object,e.object,r)&&Zn(t.property,e.property,r)}default:return!1}}function w$(t){return ts(t,"Reflect","apply")}function gC(t){return ts(t,f$,"from")}function yC(t){return ts(t,"Array","fromAsync")}function A$(t){return ts(t,null,p$)}function hl(t,e,r,s,n){let i=t.parent;return i.type==="CallExpression"&&i.arguments[n]===t&&ts(i.callee,r,s)&&e.isGlobalReference(Xf(i.callee).object)}function k$(t,e){if(hl(t,e,"Object","defineProperty",2)||hl(t,e,"Reflect","defineProperty",2))return!0;let r=t.parent;if(r.type==="Property"&&r.value===t){let s=r.parent;if(s.type==="ObjectExpression"&&(hl(s,e,"Object","create",1)||hl(s,e,"Object","defineProperties",1)))return!0}return!1}function wr(t){return e=>!t(e)}function T$(t,e){let r=t.getTokenBefore(e),s=t.getTokenAfter(e);return!!(r&&s)&&r.value==="("&&r.range[1]<=e.range[0]&&s.value===")"&&s.range[0]>=e.range[1]}function D$(t){return t.value==="="&&t.type==="Punctuator"}function Mf(t){return t.value==="=>"&&t.type==="Punctuator"}function xC(t){return t.value===","&&t.type==="Punctuator"}function EC(t){return t.value==="."&&t.type==="Punctuator"}function bC(t){return t.value==="?."&&t.type==="Punctuator"}function vC(t){return t.value===";"&&t.type==="Punctuator"}function $f(t){return t.value===":"&&t.type==="Punctuator"}function na(t){return t.value==="("&&t.type==="Punctuator"}function Vf(t){return t.value===")"&&t.type==="Punctuator"}function SC(t){return t.value==="["&&t.type==="Punctuator"}function Wf(t){return t.value==="]"&&t.type==="Punctuator"}function CC(t){return t.value==="{"&&t.type==="Punctuator"}function zf(t){return t.value==="}"&&t.type==="Punctuator"}function I$(t){return t.type==="Line"||t.type==="Block"||t.type==="Shebang"}function P$(t){return t.type==="Keyword"}function F$(t){return t.type==="ExportDefaultDeclaration"||t.type==="ExportNamedDeclaration"||t.type==="ExportAllDeclaration"}function ml(t,e){let r=e.getTokenBefore(t,{includeComments:!0});return r&&r.type==="Block"&&r.value.charAt(0)==="*"&&t.loc.start.line-r.loc.end.line<=1?r:null}function _$(t,e){let r=t.parent;switch(t.type){case"ClassDeclaration":case"FunctionDeclaration":return ml(F$(r)?r:t,e);case"ClassExpression":return ml(r.parent,e);case"ArrowFunctionExpression":case"FunctionExpression":if(r.type!=="CallExpression"&&r.type!=="NewExpression"){for(;!e.getCommentsBefore(r).length&&!/Function/u.test(r.type)&&r.type!=="MethodDefinition"&&r.type!=="Property"&&(r=r.parent,!!r););if(r&&r.type!=="FunctionDeclaration"&&r.type!=="Program")return ml(r,e)}return ml(t,e);default:return null}}function B$(t,e){let r=_$(t,e);return r&&pC.test(r.value)?!0:e.getCommentsBefore(t).some(s=>pC.test(s.value))}function qf(t,e){if(t.type==="ArrowFunctionExpression"&&t.params.length===1){let r=e.getFirstToken(t.params[0]),s=e.getTokenBefore(r);return na(s)?s:r}return t.id?e.getTokenAfter(t.id,na):e.getFirstToken(t,na)}function O$(t,e,r){let s=r.getTokens(t),n=r.getTokens(e);if(s.length!==n.length)return!1;for(let i=0;i<s.length;++i)if(s[i].type!==n[i].type||s[i].value!==n[i].value)return!1;return!0}function Gf(t){return t.type==="LogicalExpression"&&(t.operator==="&&"||t.operator==="||")}function Kf(t){return t.type==="LogicalExpression"&&t.operator==="??"}function L$(t,e){return Gf(t)&&Kf(e)||Kf(t)&&Gf(e)}function N$(t){return b$.has(t)}function R$(t,e){return t.test?e.getTokenAfter(t.test,$f):e.getFirstToken(t,1)}function j$(t){return t.type==="Identifier"?t.name:t.value}function wC(t){return t.value===null?t.raw==="null"?!1:typeof t.regex=="object"?!0:null:!!t.value}function Qs(t,e){switch(t.type){case"Literal":return e==="||"&&wC(t)===!0||e==="&&"&&wC(t)===!1;case"UnaryExpression":return e==="&&"&&t.operator==="void";case"LogicalExpression":return e===t.operator&&(Qs(t.left,e)||Qs(t.right,e));case"AssignmentExpression":return["||=","&&="].includes(t.operator)&&e===t.operator.slice(0,-1)&&Qs(t.right,e)}return!1}function Hf(t,e){let r=t.references.find(s=>s.identifier===e);return!!(r&&r.resolved&&r.resolved.scope.type==="global"&&r.resolved.defs.length===0)}function hr(t,e,r){if(!e)return!0;switch(e.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"ClassExpression":case"ObjectExpression":return!0;case"TemplateLiteral":return r&&e.quasis.some(s=>s.value.cooked.length)||e.expressions.every(s=>hr(t,s,!1));case"ArrayExpression":return r?!0:e.elements.every(s=>hr(t,s,!1));case"UnaryExpression":return e.operator==="void"||e.operator==="typeof"&&r?!0:e.operator==="!"?hr(t,e.argument,!0):hr(t,e.argument,!1);case"BinaryExpression":return hr(t,e.left,!1)&&hr(t,e.right,!1)&&e.operator!=="in";case"LogicalExpression":{let s=hr(t,e.left,r),n=hr(t,e.right,r),i=s&&Qs(e.left,e.operator),o=r&&n&&Qs(e.right,e.operator);return s&&n||i||o}case"NewExpression":return r;case"AssignmentExpression":return e.operator==="="?hr(t,e.right,r):["||=","&&="].includes(e.operator)&&r?Qs(e.right,e.operator.slice(0,-1)):!1;case"SequenceExpression":return hr(t,e.expressions.at(-1),r);case"SpreadElement":return hr(t,e.argument,r);case"CallExpression":return e.callee.type==="Identifier"&&e.callee.name==="Boolean"&&(e.arguments.length===0||hr(t,e.arguments[0],!0))?Hf(t,e.callee):!1;case"Identifier":return e.name==="undefined"&&Hf(t,e)}return!1}function M$(t){if(t.type!=="ExpressionStatement")return!1;let e=t.parent;return e.type==="Program"||e.type==="TSModuleBlock"||e.type==="BlockStatement"&&dl(e.parent)}function q$(t){return t.type==="ExpressionStatement"&&typeof t.directive=="string"}function U$(t){let e=t.range[0],r=t;for(;(r=r.parent)&&r.range[0]===e;)if(r.type==="ExpressionStatement")return!0;return!1}function $$(t){return t.type==="Punctuator"&&(t.value==="["||t.value==="*")||(t.type==="Identifier"||t.type==="Keyword")&&(t.value==="in"||t.value==="instanceof")}var FC;{let a=function(l){for(let u=l;;){let{parent:c}=u;if(!c)break;if(o.has(c.type)&&u===c.typeAnnotation)return!0;u=c}return!1},t=new Set(["BreakStatement","ContinueStatement"]),e=new Set(["ExportAllDeclaration","ExportNamedDeclaration","ImportDeclaration"]),r=new Set(["Identifier","Keyword"]),s={__proto__:null,break:"BreakStatement",continue:"ContinueStatement",debugger:"DebuggerStatement",do:"DoWhileStatement",else:"IfStatement",return:"ReturnStatement",yield:"YieldExpression"},n=new Set([":",";","{","=>","++","--"]),i=new Set(["DoWhileStatement","ForInStatement","ForOfStatement","ForStatement","IfStatement","WhileStatement","WithStatement"]),o=new Set(["TSAsExpression","TSSatisfiesExpression","TSTypeAliasDeclaration","TSTypeAnnotation"]);FC=function(l,u){let c=l.getTokenBefore(u);if(!c||c.type==="Punctuator"&&n.has(c.value))return!1;let p=l.getNodeByRangeIndex(c.range[0]);if(p.parent.type==="PropertyDefinition"&&p.parent.key===p||p.type==="PropertyDefinition"&&Wf(c)||p.type==="TSDeclareFunction"||p.parent.type==="TSImportEqualsDeclaration"||p.parent.parent?.type==="TSImportEqualsDeclaration"||o.has(p.type)||a(p))return!1;if(Vf(c))return!i.has(p.type);if(zf(c))return p.type==="BlockStatement"&&p.parent.type==="FunctionExpression"&&p.parent.parent.type!=="MethodDefinition"||p.type==="ClassBody"&&p.parent.type==="ClassExpression"||p.type==="ObjectExpression";if(r.has(c.type)){if(p.parent.type==="VariableDeclarator"&&!p.parent.init||t.has(p.parent.type))return!1;let h=c.value,f=s[h];return p.type!==f}return c.type==="String"?!e.has(p.parent.type):!0}}function _C(t){let{parent:e}=t;if(e.type==="ImportAttribute"&&e.key===t)return!0;if(e.type==="Property"&&!e.computed&&(e.key===t||e.value===t&&e.shorthand&&!e.method)&&e.parent.type==="ObjectExpression"){let r=e.parent,s=r.parent;if(s.type==="ImportExpression"&&s.options===r)return!0;if(s.type==="Property"&&s.value===r)return _C(s.key)}return!1}br.exports={COMMENTS_IGNORE_PATTERN:m$,LINEBREAKS:g$,LINEBREAK_MATCHER:a$,SHEBANG_MATCHER:o$,STATEMENT_LIST_PARENTS:y$,ECMASCRIPT_GLOBALS:v$,isTokenOnSameLine(t,e){return t.loc.end.line===e.loc.start.line},isNullOrUndefined:ta,isCallee:fl,isES5Constructor:hC,getUpperFunction:mC,isFunction:dl,isLoop:kC,isInLoop:C$,isArrayFromMethod:gC,isArrayFromAsyncMethod:yC,isPropertyDescriptor:k$,isParenthesised:T$,createGlobalLinebreakMatcher:i$,equalTokens:O$,isArrowToken:Mf,isClosingBraceToken:zf,isClosingBracketToken:Wf,isClosingParenToken:Vf,isColonToken:$f,isCommaToken:xC,isCommentToken:I$,isDotToken:EC,isQuestionDotToken:bC,isKeywordToken:P$,isNotClosingBraceToken:wr(zf),isNotClosingBracketToken:wr(Wf),isNotClosingParenToken:wr(Vf),isNotColonToken:wr($f),isNotCommaToken:wr(xC),isNotDotToken:wr(EC),isNotQuestionDotToken:wr(bC),isNotOpeningBraceToken:wr(CC),isNotOpeningBracketToken:wr(SC),isNotOpeningParenToken:wr(na),isNotSemicolonToken:wr(vC),isOpeningBraceToken:CC,isOpeningBracketToken:SC,isOpeningParenToken:na,isSemicolonToken:vC,isEqToken:D$,isStringLiteral(t){return t.type==="Literal"&&typeof t.value=="string"||t.type==="TemplateLiteral"},isBreakableStatement(t){return s$.test(t.type)},getModifyingReferences(t){return t.filter(S$)},isSurroundedBy(t,e){return t[0]===e&&t.at(-1)===e},isDirectiveComment(t){let e=t.value.trim();return t.type==="Line"&&e.startsWith("eslint-")||t.type==="Block"&&d$.test(e)},getTrailingStatement:r$.ast.trailingStatement,getVariableByName(t,e){let r=t;for(;r;){let s=r.set.get(e);if(s)return s;r=r.upper}return null},isDefaultThisBinding(t,e,{capIsConstructor:r=!0}={}){if(t.parent.type==="PropertyDefinition"&&t.parent.value===t||t.type==="StaticBlock"||(t.type==="FunctionDeclaration"||t.type==="FunctionExpression")&&t.params.some(i=>i.type==="Identifier"&&i.name==="this")||r&&hC(t)||B$(t,e))return!1;let s=t.id===null,n=t;for(;n;){let i=n.parent;switch(i.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":case"TSInstantiationExpression":n=i;break;case"ReturnStatement":{let o=mC(i);if(o===null)return!0;let a=dC(o);if(!fl(a))return!0;n=a.parent;break}case"ArrowFunctionExpression":{if(n!==i.body)return!0;let o=dC(i);if(!fl(o))return!0;n=o.parent;break}case"Property":case"PropertyDefinition":case"MethodDefinition":return i.value!==n;case"AssignmentExpression":case"AssignmentPattern":{let o=ra(i.left);return!(o.type==="MemberExpression"||r&&s&&o.type==="Identifier"&&Uf(o.name))}case"VariableDeclarator":return!(r&&s&&i.init===n&&i.id.type==="Identifier"&&Uf(i.id.name));case"MemberExpression":if(i.object===n&&ts(i,null,h$)){let o=i.parent.type==="ChainExpression"?i.parent:i;return!(fl(o)&&o.parent.arguments.length>=1&&!ta(ra(o.parent.arguments[0])))}return!0;case"CallExpression":return w$(i.callee)?i.arguments.length!==3||i.arguments[0]!==n||ta(ra(i.arguments[1])):gC(i.callee)||yC(i.callee)?i.arguments.length!==3||i.arguments[1]!==n||ta(ra(i.arguments[2])):A$(i.callee)?i.arguments.length!==2||i.arguments[0]!==n||ta(ra(i.arguments[1])):!0;default:return!0}}return!0},getPrecedence(t){switch(t.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(t.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(t.operator){case"|":return 6;case"^":return 7;case"&":return 8;case"==":case"!=":case"===":case"!==":return 9;case"<":case"<=":case">":case">=":case"in":case"instanceof":return 10;case"<<":case">>":case">>>":return 11;case"+":case"-":return 12;case"*":case"/":case"%":return 13;case"**":return 15}case"UnaryExpression":case"AwaitExpression":return 16;case"UpdateExpression":return 17;case"CallExpression":case"ChainExpression":case"ImportExpression":return 18;case"NewExpression":return 19;default:return t.type in t$?20:-1}},isEmptyBlock(t){return!!(t&&t.type==="BlockStatement"&&t.body.length===0)},isEmptyFunction(t){return dl(t)&&br.exports.isEmptyBlock(t.body)},getDirectivePrologue(t){let e=[];if(t.type==="Program"||t.type==="FunctionDeclaration"||t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression"&&t.body.type==="BlockStatement"){let r=t.type==="Program"?t.body:t.body.body;for(let s of r)if(s.type==="ExpressionStatement"&&s.expression.type==="Literal")e.push(s);else break}return e},isDecimalInteger(t){return t.type==="Literal"&&typeof t.value=="number"&&fC.test(t.raw)},isDecimalIntegerNumericToken(t){return t.type==="Numeric"&&fC.test(t.value)},getFunctionNameWithKind(t){let e=t.parent,r=[];if((e.type==="MethodDefinition"||e.type==="PropertyDefinition"||t.type==="TSPropertySignature"||t.type==="TSMethodSignature")&&(e.static&&r.push("static"),!e.computed&&e.key?.type==="PrivateIdentifier"&&r.push("private")),t.async&&r.push("async"),t.generator&&r.push("generator"),e.type==="Property"||e.type==="MethodDefinition"){if(e.kind==="constructor")return"constructor";e.kind==="get"?r.push("getter"):e.kind==="set"?r.push("setter"):r.push("method")}else t.type==="TSMethodSignature"?t.kind==="get"?r.push("getter"):t.kind==="set"?r.push("setter"):r.push("method"):e.type==="PropertyDefinition"?r.push("method"):(t.type==="ArrowFunctionExpression"&&r.push("arrow"),r.push("function"));if(e.type==="Property"||e.type==="MethodDefinition"||e.type==="PropertyDefinition")if(!e.computed&&e.key.type==="PrivateIdentifier")r.push(`#${e.key.name}`);else{let s=es(e);s!==null?r.push(`'${s}'`):t.id&&r.push(`'${t.id.name}'`)}else t.type==="TSMethodSignature"?r.push(`'${es(t)}'`):t.id&&r.push(`'${t.id.name}'`);return r.join(" ")},getFunctionHeadLoc(t,e){let r=t.parent,s,n;if(r.type==="Property"||r.type==="MethodDefinition"||r.type==="PropertyDefinition"||r.type==="TSPropertySignature"||r.type==="TSMethodSignature")s=r.loc.start,n=qf(t,e).loc.start;else if(t.type==="ArrowFunctionExpression"){let i=e.getTokenBefore(t.body,Mf);s=i.loc.start,n=i.loc.end}else if(t.type==="TSFunctionType"){let i=e.getTokenBefore(t.returnType.typeAnnotation,Mf);s=i.loc.start,n=i.loc.end}else s=t.loc.start,n=qf(t,e).loc.start;return{start:Object.assign({},s),end:Object.assign({},n)}},getNextLocation(t,{line:e,column:r}){return r<t.lines[e-1].length?{line:e,column:r+1}:e<t.lines.length?{line:e+1,column:0}:null},getParenthesisedText(t,e){let r=t.getFirstToken(e),s=t.getLastToken(e);for(;t.getTokenBefore(r)&&t.getTokenBefore(r).type==="Punctuator"&&t.getTokenBefore(r).value==="("&&t.getTokenAfter(s)&&t.getTokenAfter(s).type==="Punctuator"&&t.getTokenAfter(s).value===")";)r=t.getTokenBefore(r),s=t.getTokenAfter(s);return t.getText().slice(r.range[0],s.range[1])},couldBeError(t){switch(t.type){case"Identifier":case"CallExpression":case"NewExpression":case"MemberExpression":case"TaggedTemplateExpression":case"YieldExpression":case"AwaitExpression":case"ChainExpression":return!0;case"AssignmentExpression":return["=","&&="].includes(t.operator)?br.exports.couldBeError(t.right):["||=","??="].includes(t.operator)?br.exports.couldBeError(t.left)||br.exports.couldBeError(t.right):!1;case"SequenceExpression":{let e=t.expressions;return e.length!==0&&br.exports.couldBeError(e.at(-1))}case"LogicalExpression":return t.operator==="&&"?br.exports.couldBeError(t.right):br.exports.couldBeError(t.left)||br.exports.couldBeError(t.right);case"ConditionalExpression":return br.exports.couldBeError(t.consequent)||br.exports.couldBeError(t.alternate);default:return!1}},isNumericLiteral(t){return t.type==="Literal"&&(typeof t.value=="number"||!!t.bigint)},canTokensBeAdjacent(t,e){let r={ecmaVersion:jf.latestEcmaVersion,comment:!0,range:!0},s;if(typeof t=="string"){let i;try{i=jf.tokenize(t,r)}catch{return!1}let o=i.comments;if(s=i.at(-1),o.length){let a=o.at(-1);(!s||a.range[0]>s.range[0])&&(s=a)}}else s=t;if(s.type==="Shebang"||s.type==="Hashbang")return!1;let n;if(typeof e=="string"){let i;try{i=jf.tokenize(e,r)}catch{return!1}let o=i.comments;if(n=i[0],o.length){let a=o[0];(!n||a.range[0]<n.range[0])&&(n=a)}}else n=e;if(s.type==="Punctuator"||n.type==="Punctuator"){if(s.type==="Punctuator"&&n.type==="Punctuator"){let i=new Set(["+","++"]),o=new Set(["-","--"]);return!(i.has(s.value)&&i.has(n.value)||o.has(s.value)&&o.has(n.value))}return s.type==="Punctuator"&&s.value==="/"?!["Block","Line","RegularExpression"].includes(n.type):!0}return!!(s.type==="String"||n.type==="String"||s.type==="Template"||n.type==="Template"||s.type!=="Numeric"&&n.type==="Numeric"&&n.value.startsWith(".")||s.type==="Block"||n.type==="Block"||n.type==="Line"||n.type==="PrivateIdentifier")},getNameLocationInGlobalDirectiveComment(t,e,r){let s=new RegExp(`[\\s,]${n$(r)}(?:$|[\\s,:])`,"gu");s.lastIndex=e.value.indexOf("global")+6;let n=s.exec(e.value),i=t.getLocFromIndex(e.range[0]+2+(n?n.index+1:0)),o={line:i.line,column:i.column+(n?r.length:1)};return{start:i,end:o}},hasOctalOrNonOctalDecimalEscapeSequence(t){return E$.test(t)},isStaticTemplateLiteral(t){return t.type==="TemplateLiteral"&&t.expressions.length===0},areBracesNecessary(t,e){function r(a){return a.type==="VariableDeclaration"?x$.has(a.kind):a.type==="FunctionDeclaration"||a.type==="ClassDeclaration"}function s(a){return a.value==="else"&&a.type==="Keyword"}function n(a){let l=e.getTokenAfter(a);return!!l&&s(l)}function i(a){switch(a.type){case"IfStatement":return a.alternate?i(a.alternate):!0;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WithStatement":case"WhileStatement":return i(a.body);default:return!1}}let o=t.body[0];return r(o)||i(o)&&n(t)},isReferenceToGlobalVariable:Hf,isLogicalExpression:Gf,isCoalesceExpression:Kf,isMixedLogicalAndCoalesceExpressions:L$,isNullLiteral:Jf,getStaticStringValue:TC,getStaticPropertyName:es,skipChainExpression:Xf,isSpecificId:IC,isSpecificMemberAccess:ts,equalLiteralValue:PC,isSameReference:Zn,isLogicalAssignmentOperator:N$,getSwitchCaseColonToken:R$,getModuleExportName:j$,isConstant:hr,isTopLevelExpressionStatement:M$,isDirective:q$,isStartOfExpressionStatement:U$,canContinueExpressionInClassBody:$$,needsPrecedingSemicolon:FC,isImportAttributeKey:_C,getOpeningParenOfParams:qf}});var OC=B((Mee,BC)=>{"use strict";var Zr=X();function V$(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let s=t[r],n=e[r];if(s.type!==n.type||s.value!==n.value)return!1}return!0}function W$(t,e){return typeof t=="string"&&typeof e=="string"?t===e:Array.isArray(t)&&Array.isArray(e)?V$(t,e):!1}function z$(t){return t.kind==="get"||t.kind==="set"}BC.exports={meta:{type:"suggestion",defaultOptions:[{enforceForTSTypes:!1,enforceForClassMembers:!0,getWithoutSet:!1,setWithoutGet:!0}],docs:{description:"Enforce getter and setter pairs in objects and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/accessor-pairs"},schema:[{type:"object",properties:{getWithoutSet:{type:"boolean"},setWithoutGet:{type:"boolean"},enforceForClassMembers:{type:"boolean"},enforceForTSTypes:{type:"boolean"}},additionalProperties:!1}],messages:{missingGetterInPropertyDescriptor:"Getter is not present in property descriptor.",missingSetterInPropertyDescriptor:"Setter is not present in property descriptor.",missingGetterInObjectLiteral:"Getter is not present for {{ name }}.",missingSetterInObjectLiteral:"Setter is not present for {{ name }}.",missingGetterInClass:"Getter is not present for class {{ name }}.",missingSetterInClass:"Setter is not present for class {{ name }}.",missingGetterInType:"Getter is not present for type {{ name }}.",missingSetterInType:"Setter is not present for type {{ name }}."}},create(t){let[{getWithoutSet:e,setWithoutGet:r,enforceForClassMembers:s,enforceForTSTypes:n}]=t.options,i=t.sourceCode;function o(g,y){g.type==="Property"?t.report({node:g,messageId:`${y}InObjectLiteral`,loc:Zr.getFunctionHeadLoc(g.value,i),data:{name:Zr.getFunctionNameWithKind(g.value)}}):g.type==="MethodDefinition"?t.report({node:g,messageId:`${y}InClass`,loc:Zr.getFunctionHeadLoc(g.value,i),data:{name:Zr.getFunctionNameWithKind(g.value)}}):g.type==="TSMethodSignature"?t.report({node:g,messageId:`${y}InType`,loc:Zr.getFunctionHeadLoc(g,i),data:{name:Zr.getFunctionNameWithKind(g)}}):t.report({node:g,messageId:`${y}InPropertyDescriptor`})}function a(g,y){for(let v of g)o(v,y)}function l(g){let y=[],v=!1;for(let S=0;S<g.length;S++){let A=g[S];if(z$(A)){let E=Zr.getStaticPropertyName(A),k=E!==null?E:i.getTokens(A.key);for(let T=0;T<y.length;T++){let w=y[T];if(W$(w.key,k)){w.getters.push(...A.kind==="get"?[A]:[]),w.setters.push(...A.kind==="set"?[A]:[]),v=!0;break}}v||y.push({key:k,getters:A.kind==="get"?[A]:[],setters:A.kind==="set"?[A]:[]}),v=!1}}for(let{getters:S,setters:A}of y)r&&A.length&&!S.length&&a(A,"missingGetter"),e&&S.length&&!A.length&&a(S,"missingSetter")}function u(g){l(g.properties.filter(y=>y.type==="Property"))}function c(g){let y=new Set(g.properties.filter(A=>A.type==="Property"&&A.kind==="init").map(A=>Zr.getStaticPropertyName(A))),v=y.has("get"),S=y.has("set");r&&S&&!v&&o(g,"missingGetter"),e&&v&&!S&&o(g,"missingSetter")}function p(g){u(g),Zr.isPropertyDescriptor(g,i)&&c(g)}function h(g){let y=g.body.filter(v=>v.type==="MethodDefinition");l(y.filter(v=>v.static)),l(y.filter(v=>!v.static))}function f(g){let v=(g.type==="TSTypeLiteral"?g.members:g.body).filter(S=>S.type==="TSMethodSignature");l(v)}let d={};return(r||e)&&(d.ObjectExpression=p,s&&(d.ClassBody=h),n&&(d["TSTypeLiteral, TSInterfaceBody"]=f)),d}}});var NC=B((qee,LC)=>{"use strict";var Ys=X();LC.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"array-bracket-newline",url:"https://eslint.style/rules/array-bracket-newline"}}]},type:"layout",docs:{description:"Enforce linebreaks after opening and before closing array brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-bracket-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}],messages:{unexpectedOpeningLinebreak:"There should be no linebreak after '['.",unexpectedClosingLinebreak:"There should be no linebreak before ']'.",missingOpeningLinebreak:"A linebreak is required after '['.",missingClosingLinebreak:"A linebreak is required before ']'."}},create(t){let e=t.sourceCode;function r(u){let c=!1,p=!1,h;return u?u==="consistent"?(c=!0,h=Number.POSITIVE_INFINITY):u==="always"||u.minItems===0?h=0:u==="never"?h=Number.POSITIVE_INFINITY:(p=!!u.multiline,h=u.minItems||Number.POSITIVE_INFINITY):(c=!1,p=!0,h=Number.POSITIVE_INFINITY),{consistent:c,multiline:p,minItems:h}}function s(u){let c=r(u);return{ArrayExpression:c,ArrayPattern:c}}function n(u,c){t.report({node:u,loc:c.loc,messageId:"unexpectedOpeningLinebreak",fix(p){let h=e.getTokenAfter(c,{includeComments:!0});return Ys.isCommentToken(h)?null:p.removeRange([c.range[1],h.range[0]])}})}function i(u,c){t.report({node:u,loc:c.loc,messageId:"unexpectedClosingLinebreak",fix(p){let h=e.getTokenBefore(c,{includeComments:!0});return Ys.isCommentToken(h)?null:p.removeRange([h.range[1],c.range[0]])}})}function o(u,c){t.report({node:u,loc:c.loc,messageId:"missingOpeningLinebreak",fix(p){return p.insertTextAfter(c,`
43
+ `)}})}function a(u,c){t.report({node:u,loc:c.loc,messageId:"missingClosingLinebreak",fix(p){return p.insertTextBefore(c,`
44
+ `)}})}function l(u){let c=u.elements,h=s(t.options[0])[u.type],f=e.getFirstToken(u),d=e.getLastToken(u),g=e.getTokenAfter(f,{includeComments:!0}),y=e.getTokenBefore(d,{includeComments:!0}),v=e.getTokenAfter(f),S=e.getTokenBefore(d);c.length>=h.minItems||h.multiline&&c.length>0&&g.loc.start.line!==y.loc.end.line||c.length===0&&g.type==="Block"&&g.loc.start.line!==y.loc.end.line&&g===y||h.consistent&&f.loc.end.line!==v.loc.start.line?(Ys.isTokenOnSameLine(f,v)&&o(u,f),Ys.isTokenOnSameLine(S,d)&&a(u,d)):(Ys.isTokenOnSameLine(f,v)||n(u,f),Ys.isTokenOnSameLine(S,d)||i(u,d))}return{ArrayPattern:l,ArrayExpression:l}}}});var MC=B((Uee,jC)=>{"use strict";var RC=X();jC.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"array-bracket-spacing",url:"https://eslint.style/rules/array-bracket-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside array brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-bracket-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{singleValue:{type:"boolean"},objectsInArrays:{type:"boolean"},arraysInArrays:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'."}},create(t){let e=t.options[0]==="always",r=t.sourceCode;function s(h){return t.options[1]?t.options[1][h]===!e:!1}let n={spaced:e,singleElementException:s("singleValue"),objectsInArraysException:s("objectsInArrays"),arraysInArraysException:s("arraysInArrays")};function i(h,f){let d=r.getTokenAfter(f);t.report({node:h,loc:{start:f.loc.end,end:d.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:f.value},fix(g){return g.removeRange([f.range[1],d.range[0]])}})}function o(h,f){let d=r.getTokenBefore(f);t.report({node:h,loc:{start:d.loc.end,end:f.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:f.value},fix(g){return g.removeRange([d.range[1],f.range[0]])}})}function a(h,f){t.report({node:h,loc:f.loc,messageId:"missingSpaceAfter",data:{tokenValue:f.value},fix(d){return d.insertTextAfter(f," ")}})}function l(h,f){t.report({node:h,loc:f.loc,messageId:"missingSpaceBefore",data:{tokenValue:f.value},fix(d){return d.insertTextBefore(f," ")}})}function u(h){return h&&(h.type==="ObjectExpression"||h.type==="ObjectPattern")}function c(h){return h&&(h.type==="ArrayExpression"||h.type==="ArrayPattern")}function p(h){if(n.spaced&&h.elements.length===0)return;let f=r.getFirstToken(h),d=r.getFirstToken(h,1),g=h.typeAnnotation?r.getTokenBefore(h.typeAnnotation):r.getLastToken(h),y=r.getTokenBefore(g),v=h.elements[0],S=h.elements.at(-1),A=n.objectsInArraysException&&u(v)||n.arraysInArraysException&&c(v)||n.singleElementException&&h.elements.length===1?!n.spaced:n.spaced,E=n.objectsInArraysException&&u(S)||n.arraysInArraysException&&c(S)||n.singleElementException&&h.elements.length===1?!n.spaced:n.spaced;RC.isTokenOnSameLine(f,d)&&(A&&!r.isSpaceBetween(f,d)&&a(h,f),!A&&r.isSpaceBetween(f,d)&&i(h,f)),f!==y&&RC.isTokenOnSameLine(y,g)&&(E&&!r.isSpaceBetween(y,g)&&l(h,g),!E&&r.isSpaceBetween(y,g)&&o(h,g))}return{ArrayPattern:p,ArrayExpression:p}}}});var kn=B(($ee,qC)=>{"use strict";function G$(t){for(let e of t)if(e.reachable)return!0;return!1}qC.exports={isAnySegmentReachable:G$}});var GC=B((Vee,zC)=>{"use strict";var sr=X(),{isAnySegmentReachable:K$}=kn(),H$=/^(?:Arrow)?FunctionExpression$/u,J$=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u;function X$(t){return sr.isSpecificMemberAccess(t,null,J$)}function UC(t){return["from","fromAsync","of","isArray"].includes(t)?"Array.".concat(t):"Array.prototype.".concat(t)}function Q$(t){if(t.generator)return null;let e=t;for(;e;){let r=e.parent;switch(r.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":e=r;break;case"ReturnStatement":{let s=sr.getUpperFunction(r);if(s===null||!sr.isCallee(s))return null;e=s.parent;break}case"CallExpression":if(!t.async){if(sr.isArrayFromMethod(r.callee)&&r.arguments.length>=2&&r.arguments[1]===e)return"from";if(X$(r.callee)&&r.arguments.length>=1&&r.arguments[0]===e)return sr.getStaticPropertyName(r.callee)}return sr.isArrayFromAsyncMethod(r.callee)&&r.arguments.length>=2&&r.arguments[1]===e?"fromAsync":null;default:return null}}return null}function $C(t){return t.type==="UnaryExpression"&&t.operator==="void"}function VC(t,e,r){let s=sr.getPrecedence(e)<sr.getPrecedence({type:"UnaryExpression",operator:"void"})&&!sr.isParenthesised(t,e),n=t.getTokenBefore(e,e.parent.type==="ArrowFunctionExpression"?sr.isArrowToken:a=>a.type==="Keyword"&&a.value==="return"),i=t.getTokenAfter(n),o=n.value==="return"&&n.range[1]===i.range[0];return[r.insertTextBefore(i,`${o?" ":""}void ${s?"(":""}`),r.insertTextAfter(e,s?")":"")]}function WC(t,e,r){let s=t.getTokenBefore(e.body,sr.isArrowToken),n=t.getTokenAfter(s),i=t.getLastToken(e);return[r.insertTextBefore(n,"{"),r.insertTextAfter(i,"}")]}zC.exports={meta:{type:"problem",defaultOptions:[{allowImplicit:!1,checkForEach:!1,allowVoid:!1}],docs:{description:"Enforce `return` statements in callbacks of array methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-callback-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowImplicit:{type:"boolean"},checkForEach:{type:"boolean"},allowVoid:{type:"boolean"}},additionalProperties:!1}],messages:{expectedAtEnd:"{{arrayMethodName}}() expects a value to be returned at the end of {{name}}.",expectedInside:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedReturnValue:"{{arrayMethodName}}() expects a return value from {{name}}.",expectedNoReturnValue:"{{arrayMethodName}}() expects no useless return value from {{name}}.",wrapBraces:"Wrap the expression in `{}`.",prependVoid:"Prepend `void` to the expression."}},create(t){let[e]=t.options,r=t.sourceCode,s={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function n(i){if(!s.shouldCheck)return;let o={messageId:"",suggest:[]};if(s.arrayMethodName==="forEach"){if(e.checkForEach&&i.type==="ArrowFunctionExpression"&&i.expression)if(e.allowVoid){if($C(i.body))return;o.messageId="expectedNoReturnValue",o.suggest=[{messageId:"wrapBraces",fix(a){return WC(r,i,a)}},{messageId:"prependVoid",fix(a){return VC(r,i.body,a)}}]}else o.messageId="expectedNoReturnValue",o.suggest=[{messageId:"wrapBraces",fix(a){return WC(r,i,a)}}]}else i.body.type==="BlockStatement"&&K$(s.currentSegments)&&(o.messageId=s.hasReturn?"expectedAtEnd":"expectedInside");if(o.messageId){let a=sr.getFunctionNameWithKind(i);t.report({node:i,loc:sr.getFunctionHeadLoc(i,r),messageId:o.messageId,data:{name:a,arrayMethodName:UC(s.arrayMethodName)},suggest:o.suggest.length!==0?o.suggest:null})}}return{onCodePathStart(i,o){let a=null;H$.test(o.type)&&(a=Q$(o)),s={arrayMethodName:a,upper:s,codePath:i,hasReturn:!1,shouldCheck:!!a,node:o,currentSegments:new Set}},onCodePathEnd(){s=s.upper},onUnreachableCodePathSegmentStart(i){s.currentSegments.add(i)},onUnreachableCodePathSegmentEnd(i){s.currentSegments.delete(i)},onCodePathSegmentStart(i){s.currentSegments.add(i)},onCodePathSegmentEnd(i){s.currentSegments.delete(i)},ReturnStatement(i){if(!s.shouldCheck)return;s.hasReturn=!0;let o={messageId:"",suggest:[]};if(s.arrayMethodName==="forEach"){if(e.checkForEach&&i.argument)if(e.allowVoid){if($C(i.argument))return;o.messageId="expectedNoReturnValue",o.suggest=[{messageId:"prependVoid",fix(a){return VC(r,i.argument,a)}}]}else o.messageId="expectedNoReturnValue"}else!e.allowImplicit&&!i.argument&&(o.messageId="expectedReturnValue");o.messageId&&t.report({node:i,messageId:o.messageId,data:{name:sr.getFunctionNameWithKind(s.node),arrayMethodName:UC(s.arrayMethodName)},suggest:o.suggest.length!==0?o.suggest:null})},"FunctionExpression:exit":n,"ArrowFunctionExpression:exit":n}}}});var HC=B((Wee,KC)=>{"use strict";var Tn=X();KC.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"array-element-newline",url:"https://eslint.style/rules/array-element-newline"}}]},type:"layout",docs:{description:"Enforce line breaks after each array element",recommended:!1,url:"https://eslint.org/docs/latest/rules/array-element-newline"},fixable:"whitespace",schema:{definitions:{basicConfig:{oneOf:[{enum:["always","never","consistent"]},{type:"object",properties:{multiline:{type:"boolean"},minItems:{type:["integer","null"],minimum:0}},additionalProperties:!1}]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/basicConfig"},{type:"object",properties:{ArrayExpression:{$ref:"#/definitions/basicConfig"},ArrayPattern:{$ref:"#/definitions/basicConfig"}},additionalProperties:!1,minProperties:1}]}]},messages:{unexpectedLineBreak:"There should be no linebreak here.",missingLineBreak:"There should be a linebreak after this element."}},create(t){let e=t.sourceCode;function r(a){let l=!1,u=!1,c,p=a||"always";return!p||p==="always"||p.minItems===0?c=0:p==="never"?c=Number.POSITIVE_INFINITY:p==="consistent"?(l=!0,c=Number.POSITIVE_INFINITY):(u=!!p.multiline,c=p.minItems||Number.POSITIVE_INFINITY),{consistent:l,multiline:u,minItems:c}}function s(a){if(a&&(a.ArrayExpression||a.ArrayPattern)){let u,c;return a.ArrayExpression&&(u=r(a.ArrayExpression)),a.ArrayPattern&&(c=r(a.ArrayPattern)),{ArrayExpression:u,ArrayPattern:c}}let l=r(a);return{ArrayExpression:l,ArrayPattern:l}}function n(a){let l=e.getTokenBefore(a,{includeComments:!0});t.report({loc:{start:l.loc.end,end:a.loc.start},messageId:"unexpectedLineBreak",fix(u){if(Tn.isCommentToken(l))return null;if(!Tn.isTokenOnSameLine(l,a))return u.replaceTextRange([l.range[1],a.range[0]]," ");let c=e.getTokenBefore(l,{includeComments:!0});return Tn.isCommentToken(c)?null:u.replaceTextRange([c.range[1],l.range[0]],"")}})}function i(a){let l=e.getTokenBefore(a,{includeComments:!0});t.report({loc:{start:l.loc.end,end:a.loc.start},messageId:"missingLineBreak",fix(u){return u.replaceTextRange([l.range[1],a.range[0]],`
45
+ `)}})}function o(a){let l=a.elements,c=s(t.options[0])[a.type];if(!c)return;let p=!1;c.multiline&&(p=l.filter(d=>d!==null).some(d=>d.loc.start.line!==d.loc.end.line));let h=0;for(let d=0;d<a.elements.length;d++){let g=a.elements[d],y=l[d-1];if(d===0||g===null||y===null)continue;let v=e.getFirstTokenBetween(y,g,Tn.isCommaToken),S=e.getTokenBefore(v),A=e.getTokenAfter(v);Tn.isTokenOnSameLine(S,A)||h++}let f=l.length>=c.minItems||c.multiline&&p||c.consistent&&h>0&&h<a.elements.length;l.forEach((d,g)=>{let y=l[g-1];if(g===0||d===null||y===null)return;let v=e.getFirstTokenBetween(y,d,Tn.isCommaToken),S=e.getTokenBefore(v),A=e.getTokenAfter(v);f?Tn.isTokenOnSameLine(S,A)&&i(A):Tn.isTokenOnSameLine(S,A)||n(A)})}return{ArrayPattern:o,ArrayExpression:o}}}});var XC=B((zee,JC)=>{"use strict";var en=X();JC.exports={meta:{type:"suggestion",defaultOptions:["as-needed"],docs:{description:"Require braces around arrow function bodies",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/arrow-body-style"},schema:{anyOf:[{type:"array",items:[{enum:["always","never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["as-needed"]},{type:"object",properties:{requireReturnForObjectLiteral:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{unexpectedOtherBlock:"Unexpected block statement surrounding arrow body.",unexpectedEmptyBlock:"Unexpected block statement surrounding arrow body; put a value of `undefined` immediately after the `=>`.",unexpectedObjectBlock:"Unexpected block statement surrounding arrow body; parenthesize the returned value and move it immediately after the `=>`.",unexpectedSingleBlock:"Unexpected block statement surrounding arrow body; move the returned value immediately after the `=>`.",expectedBlock:"Expected block statement surrounding arrow body."}},create(t){let e=t.options,r=e[0]==="always",s=e[0]==="as-needed",n=e[0]==="never",i=e[1]&&e[1].requireReturnForObjectLiteral,o=t.sourceCode,a=null;function l(h){return h&&h.type==="Punctuator"&&/^[([/`+-]/u.test(h.value)}function u(h){let f=h;for(;!en.isParenthesised(o,f);)f=f.parent;return o.getTokenAfter(f)}function c(h){return h&&h.parent?h.parent.type==="ForStatement"&&h.parent.init===h?!0:c(h.parent):!1}function p(h){let f=h.body;if(f.type==="BlockStatement"){let d=f.body;if(d.length!==1&&!n||s&&i&&d[0].type==="ReturnStatement"&&d[0].argument&&d[0].argument.type==="ObjectExpression")return;if(n||s&&d[0].type==="ReturnStatement"){let g;d.length===0?g="unexpectedEmptyBlock":d.length>1||d[0].type!=="ReturnStatement"?g="unexpectedOtherBlock":d[0].argument===null?g="unexpectedSingleBlock":en.isOpeningBraceToken(o.getFirstToken(d[0],{skip:1}))?g="unexpectedObjectBlock":g="unexpectedSingleBlock",t.report({node:h,loc:f.loc,messageId:g,fix(y){let v=[];if(d.length!==1||d[0].type!=="ReturnStatement"||!d[0].argument||l(o.getTokenAfter(f)))return v;let S=o.getFirstToken(f),A=o.getLastToken(f),E=o.getFirstToken(d[0],1),k=o.getLastToken(d[0]);return o.commentsExistBetween(S,E)||o.commentsExistBetween(k,A)?v.push(y.remove(S),y.remove(A),y.remove(o.getTokenAfter(S))):v.push(y.removeRange([S.range[0],E.range[0]]),y.removeRange([k.range[1],A.range[1]])),(en.isOpeningBraceToken(E)||d[0].argument.type==="SequenceExpression"||a.hasInOperator&&c(h))&&(en.isParenthesised(o,d[0].argument)||v.push(y.insertTextBefore(E,"("),y.insertTextAfter(k,")"))),en.isSemicolonToken(k)&&v.push(y.remove(k)),v}})}}else(r||s&&i&&f.type==="ObjectExpression")&&t.report({node:h,loc:f.loc,messageId:"expectedBlock",fix(d){let g=[],y=o.getTokenBefore(f,en.isArrowToken),[v,S]=o.getTokensAfter(y,{count:2}),A=o.getLastToken(h),E=null;if(en.isOpeningParenToken(v)&&en.isOpeningBraceToken(S)){let k=o.getNodeByRangeIndex(S.range[0]);k.type==="ObjectExpression"&&(E=k)}if(E){let k=v,T=S;en.isTokenOnSameLine(k,T)?g.push(d.replaceText(k,"{return ")):g.push(d.replaceText(k,"{"),d.insertTextBefore(T,"return ")),g.push(d.remove(u(E))),g.push(d.insertTextAfter(A,"}"))}else g.push(d.insertTextBefore(v,"{return ")),g.push(d.insertTextAfter(A,"}"));return g}})}return{"BinaryExpression[operator='in']"(){let h=a;for(;h;)h.hasInOperator=!0,h=h.upper},ArrowFunctionExpression(){a={upper:a,hasInOperator:!1}},"ArrowFunctionExpression:exit"(h){p(h),a=a.upper}}}}});var YC=B((Gee,QC)=>{"use strict";var Qf=X();function Y$(t){return t.body.type==="BlockStatement"}QC.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"arrow-parens",url:"https://eslint.style/rules/arrow-parens"}}]},type:"layout",docs:{description:"Require parentheses around arrow function arguments",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-parens"},fixable:"code",schema:[{enum:["always","as-needed"]},{type:"object",properties:{requireForBlockBody:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedParens:"Unexpected parentheses around single function argument.",expectedParens:"Expected parentheses around arrow function argument.",unexpectedParensInline:"Unexpected parentheses around single function argument having a body with no curly braces.",expectedParensBlock:"Expected parentheses around arrow function argument having a body with curly braces."}},create(t){let e=t.options[0]==="as-needed",r=e&&t.options[1]&&t.options[1].requireForBlockBody===!0,s=t.sourceCode;function n(l){let u=s.getTokenBefore(l.params[0]);return u&&Qf.isOpeningParenToken(u)&&l.range[0]<=u.range[0]?u:null}function i(l){return s.getTokenAfter(l.params[0],Qf.isClosingParenToken)}function o(l,u){return s.commentsExistBetween(u,i(l))}function a(l,u){let c=l.async?1:0;return s.getFirstToken(l,{skip:c})!==u}return{"ArrowFunctionExpression[params.length=1]"(l){let u=!e||r&&Y$(l),c=n(l),p=c!==null,[h]=l.params;u&&!p&&t.report({node:l,messageId:r?"expectedParensBlock":"expectedParens",loc:h.loc,*fix(f){yield f.insertTextBefore(h,"("),yield f.insertTextAfter(h,")")}}),!u&&p&&h.type==="Identifier"&&!h.typeAnnotation&&!l.returnType&&!o(l,c)&&!a(l,c)&&t.report({node:l,messageId:r?"unexpectedParensInline":"unexpectedParens",loc:h.loc,*fix(f){let d=s.getTokenBefore(c),g=i(l);d&&d.range[1]===c.range[0]&&!Qf.canTokensBeAdjacent(d,s.getFirstToken(h))&&(yield f.insertTextBefore(c," ")),yield f.removeRange([c.range[0],h.range[0]]),yield f.removeRange([h.range[1],g.range[1]])}})}}}}});var e1=B((Kee,ZC)=>{"use strict";var Z$=X();ZC.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"arrow-spacing",url:"https://eslint.style/rules/arrow-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after the arrow in arrow functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/arrow-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{expectedBefore:"Missing space before =>.",unexpectedBefore:"Unexpected space before =>.",expectedAfter:"Missing space after =>.",unexpectedAfter:"Unexpected space after =>."}},create(t){let e=Object.assign({},t.options[0]);e.before=e.before!==!1,e.after=e.after!==!1;let r=t.sourceCode;function s(o){let a=r.getTokenBefore(o.body,Z$.isArrowToken);return{before:r.getTokenBefore(a),arrow:a,after:r.getTokenAfter(a)}}function n(o){let a=o.arrow.range[0]-o.before.range[1],l=o.after.range[0]-o.arrow.range[1];return{before:a,after:l}}function i(o){let a=s(o),l=n(a);e.before?l.before===0&&t.report({node:a.before,messageId:"expectedBefore",fix(u){return u.insertTextBefore(a.arrow," ")}}):l.before>0&&t.report({node:a.before,messageId:"unexpectedBefore",fix(u){return u.removeRange([a.before.range[1],a.arrow.range[0]])}}),e.after?l.after===0&&t.report({node:a.after,messageId:"expectedAfter",fix(u){return u.insertTextAfter(a.arrow," ")}}):l.after>0&&t.report({node:a.after,messageId:"unexpectedAfter",fix(u){return u.removeRange([a.arrow.range[1],a.after.range[0]])}})}return{ArrowFunctionExpression:i}}}});var r1=B((Hee,t1)=>{"use strict";t1.exports={meta:{type:"suggestion",docs:{description:"Enforce the use of variables within the scope they are defined",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-scoped-var"},schema:[],messages:{outOfScope:"'{{name}}' declared on line {{definitionLine}} column {{definitionColumn}} is used outside of binding context."}},create(t){let e=[],r=t.sourceCode;function s(a){e.push(a.range)}function n(){e.pop()}function i(a,l){let u=a.identifier,c=l.name.loc.start;t.report({node:u,messageId:"outOfScope",data:{name:u.name,definitionLine:c.line,definitionColumn:c.column+1}})}function o(a){if(a.kind!=="var")return;let l=e.at(-1);function u(p){let h=p.identifier.range;return h[0]<l[0]||h[1]>l[1]}let c=r.getDeclaredVariables(a);for(let p=0;p<c.length;++p)c[p].references.filter(u).forEach(h=>i(h,c[p].defs.find(f=>f.parent===a)))}return{Program(a){e=[a.range]},BlockStatement:s,"BlockStatement:exit":n,ForStatement:s,"ForStatement:exit":n,ForInStatement:s,"ForInStatement:exit":n,ForOfStatement:s,"ForOfStatement:exit":n,SwitchStatement:s,"SwitchStatement:exit":n,CatchClause:s,"CatchClause:exit":n,StaticBlock:s,"StaticBlock:exit":n,VariableDeclaration:o}}}});var s1=B((Jee,n1)=>{"use strict";var e5=X();n1.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"block-spacing",url:"https://eslint.style/rules/block-spacing"}}]},type:"layout",docs:{description:"Disallow or enforce spaces inside of blocks after opening block and before closing block",recommended:!1,url:"https://eslint.org/docs/latest/rules/block-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{missing:"Requires a space {{location}} '{{token}}'.",extra:"Unexpected space(s) {{location}} '{{token}}'."}},create(t){let e=t.options[0]!=="never",r=e?"missing":"extra",s=t.sourceCode;function n(a){return a.type==="SwitchStatement"?a.cases.length>0?s.getTokenBefore(a.cases[0]):s.getLastToken(a,1):a.type==="StaticBlock"?s.getFirstToken(a,{skip:1}):s.getFirstToken(a)}function i(a,l){return!e5.isTokenOnSameLine(a,l)||s.isSpaceBetween(a,l)===e}function o(a){let l=n(a),u=s.getLastToken(a),c=s.getTokenAfter(l,{includeComments:!0}),p=s.getTokenBefore(u,{includeComments:!0});if(!(l.type!=="Punctuator"||l.value!=="{"||u.type!=="Punctuator"||u.value!=="}"||c===u)&&!(!e&&c.type==="Line")){if(!i(l,c)){let h=l.loc;r==="extra"&&(h={start:l.loc.end,end:c.loc.start}),t.report({node:a,loc:h,messageId:r,data:{location:"after",token:l.value},fix(f){return e?f.insertTextBefore(c," "):f.removeRange([l.range[1],c.range[0]])}})}if(!i(p,u)){let h=u.loc;r==="extra"&&(h={start:p.loc.end,end:u.loc.start}),t.report({node:a,loc:h,messageId:r,data:{location:"before",token:u.value},fix(f){return e?f.insertTextAfter(p," "):f.removeRange([p.range[1],u.range[0]])}})}}}return{BlockStatement:o,StaticBlock:o,SwitchStatement:o}}}});var a1=B((Xee,i1)=>{"use strict";var Dn=X();i1.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"brace-style",url:"https://eslint.style/rules/brace-style"}}]},type:"layout",docs:{description:"Enforce consistent brace style for blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/brace-style"},schema:[{enum:["1tbs","stroustrup","allman"]},{type:"object",properties:{allowSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{nextLineOpen:"Opening curly brace does not appear on the same line as controlling statement.",sameLineOpen:"Opening curly brace appears on the same line as controlling statement.",blockSameLine:"Statement inside of curly braces should be on next line.",nextLineClose:"Closing curly brace does not appear on the same line as the subsequent block.",singleLineClose:"Closing curly brace should be on the same line as opening curly brace or on the line after the previous block.",sameLineClose:"Closing curly brace appears on the same line as the subsequent block."}},create(t){let e=t.options[0]||"1tbs",r=t.options[1]||{},s=t.sourceCode;function n(a,l){let u=[a.range[1],l.range[0]];return s.text.slice(u[0],u[1]).trim()?null:p=>p.replaceTextRange(u," ")}function i(a,l){let u=s.getTokenBefore(a),c=s.getTokenAfter(a),p=s.getTokenBefore(l),h=r.allowSingleLine&&Dn.isTokenOnSameLine(a,l);e!=="allman"&&!Dn.isTokenOnSameLine(u,a)&&t.report({node:a,messageId:"nextLineOpen",fix:n(u,a)}),e==="allman"&&Dn.isTokenOnSameLine(u,a)&&!h&&t.report({node:a,messageId:"sameLineOpen",fix:f=>f.insertTextBefore(a,`
46
+ `)}),Dn.isTokenOnSameLine(a,c)&&c!==l&&!h&&t.report({node:a,messageId:"blockSameLine",fix:f=>f.insertTextAfter(a,`
47
+ `)}),p!==a&&!h&&Dn.isTokenOnSameLine(p,l)&&t.report({node:l,messageId:"singleLineClose",fix:f=>f.insertTextBefore(l,`
48
+ `)})}function o(a){let l=s.getTokenAfter(a);e==="1tbs"&&!Dn.isTokenOnSameLine(a,l)&&t.report({node:a,messageId:"nextLineClose",fix:n(a,l)}),e!=="1tbs"&&Dn.isTokenOnSameLine(a,l)&&t.report({node:a,messageId:"sameLineClose",fix:u=>u.insertTextAfter(a,`
49
+ `)})}return{BlockStatement(a){Dn.STATEMENT_LIST_PARENTS.has(a.parent.type)||i(s.getFirstToken(a),s.getLastToken(a))},StaticBlock(a){i(s.getFirstToken(a,{skip:1}),s.getLastToken(a))},ClassBody(a){i(s.getFirstToken(a),s.getLastToken(a))},SwitchStatement(a){let l=s.getLastToken(a),u=s.getTokenBefore(a.cases.length?a.cases[0]:l);i(u,l)},IfStatement(a){a.consequent.type==="BlockStatement"&&a.alternate&&o(s.getLastToken(a.consequent))},TryStatement(a){o(s.getLastToken(a.block)),a.handler&&a.finalizer&&o(s.getLastToken(a.handler.body))}}}}});var l1=B((Qee,o1)=>{"use strict";o1.exports={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:"11.0.0",replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"callback-return",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/callback-return.md"}}]},type:"suggestion",docs:{description:"Require `return` statements after callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/callback-return"},schema:[{type:"array",items:{type:"string"}}],messages:{missingReturn:"Expected return with your callback function."}},create(t){let e=t.options[0]||["callback","cb","next"],r=t.sourceCode;function s(a,l){return a.parent?l.includes(a.parent.type)?a.parent:s(a.parent,l):null}function n(a){if(a.type==="Identifier")return!0;if(a.type==="MemberExpression"){if(a.object.type==="Identifier")return!0;if(a.object.type==="MemberExpression")return n(a.object)}return!1}function i(a){return n(a.callee)&&e.includes(r.getText(a.callee))}function o(a,l){return!l||l.type!=="ExpressionStatement"?!1:l.expression===a||(l.expression.type==="BinaryExpression"||l.expression.type==="LogicalExpression")&&l.expression.right===a}return{CallExpression(a){if(!i(a))return;let l=s(a,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if(l.type!=="ReturnStatement"&&l.type!=="ArrowFunctionExpression"){if(l.type==="BlockStatement"){let u=l.body.at(-1);if(o(a,u)){let c=l.parent.type;if(c==="FunctionExpression"||c==="FunctionDeclaration"||c==="ArrowFunctionExpression")return}if(u.type==="ReturnStatement"&&o(a,l.body.at(-2)))return}s(a,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&t.report({node:a,messageId:"missingReturn"})}}}}}});var c1=B((Yee,u1)=>{"use strict";var gl=X();u1.exports={meta:{type:"suggestion",defaultOptions:[{allow:[],ignoreDestructuring:!1,ignoreGlobals:!1,ignoreImports:!1,properties:"always"}],docs:{description:"Enforce camelcase naming convention",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/camelcase"},schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean"},ignoreImports:{type:"boolean"},ignoreGlobals:{type:"boolean"},properties:{enum:["always","never"]},allow:{type:"array",items:{type:"string"},minItems:0,uniqueItems:!0}},additionalProperties:!1}],messages:{notCamelCase:"Identifier '{{name}}' is not in camel case.",notCamelCasePrivate:"#{{name}} is not in camel case."}},create(t){let[{allow:e,ignoreDestructuring:r,ignoreGlobals:s,ignoreImports:n,properties:i}]=t.options,o=t.sourceCode,a=new Set;function l(g){let y=g.replace(/^_+|_+$/gu,"");return y.includes("_")&&y!==y.toUpperCase()}function u(g){return e.some(y=>g===y||g.match(new RegExp(y,"u")))}function c(g){return!l(g)||u(g)}function p(g){let y=g.parent;switch(y.type){case"AssignmentExpression":case"AssignmentPattern":return y.left===g;case"Property":return y.parent.type==="ObjectPattern"&&y.value===g;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function h(g){let y=g.name,v=g.parent.type==="AssignmentPattern"?g.parent:g,S=v.parent;switch(S.type){case"Property":return(S.parent.type==="ObjectPattern"||S.parent.type==="ObjectExpression")&&S.value===v&&!S.computed&&S.key.type==="Identifier"&&S.key.name===y;case"ImportSpecifier":return S.local===g&&gl.getModuleExportName(S.imported)===y;default:return!1}}function f(g){a.has(g.range[0])||(a.add(g.range[0]),t.report({node:g,messageId:g.type==="PrivateIdentifier"?"notCamelCasePrivate":"notCamelCase",data:{name:g.name}}))}function d(g){g.parent.type==="CallExpression"||g.parent.type==="NewExpression"||g.parent.type==="AssignmentPattern"&&g.parent.right===g||r&&h(g)||gl.isImportAttributeKey(g)||f(g)}return{Program(g){let y=o.getScope(g);if(!s){for(let v of y.variables)if(!(v.identifiers.length>0||c(v.name)))for(let S of v.references)d(S.identifier)}for(let v of y.through){let S=v.identifier;c(S.name)||gl.isImportAttributeKey(S)||d(S)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](g){for(let y of o.getDeclaredVariables(g)){if(c(y.name))continue;let v=y.identifiers[0];r&&h(v)||f(v);for(let S of y.references)S.init||d(S.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](g){i==="never"||gl.isImportAttributeKey(g)||c(g.name)||f(g)},"MemberExpression[computed!=true] > Identifier.property"(g){i==="never"||!p(g.parent)||c(g.name)||f(g)},ImportDeclaration(g){for(let y of o.getDeclaredVariables(g)){if(c(y.name))continue;let v=y.identifiers[0];n&&h(v)||f(v);for(let S of y.references)d(S.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](g){c(g.name)||f(g)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](g){c(g.name)||f(g)}}}}});var Yf=B((Zee,f1)=>{"use strict";var p1=new RegExp("\\p{L}","u");function t5(t){return p1.test(t)}f1.exports={LETTER_PATTERN:p1,containsLetter:t5}});var d1=B((ete,m1)=>{"use strict";var r5=X(),{LETTER_PATTERN:n5,containsLetter:s5}=Yf(),i5=r5.COMMENTS_IGNORE_PATTERN,a5=/\s/gu,o5=/^\s*[^:/?#\s]+:\/\/[^?#]/u,Zf={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},l5={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function h1(t,e){return Object.assign({},l5,t[e]||t)}function u5(t={}){return{Line:h1(t,"line"),Block:h1(t,"block")}}function c5(t){Object.keys(t).forEach(e=>{let r=t[e].ignorePattern;if(r){let s=RegExp(`^\\s*(?:${r})`,"u");t[e].ignorePatternRegExp=s}})}m1.exports={meta:{type:"suggestion",docs:{description:"Enforce or disallow capitalization of the first letter of a comment",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/capitalized-comments"},fixable:"code",schema:[{enum:["always","never"]},{oneOf:[Zf,{type:"object",properties:{line:Zf,block:Zf},additionalProperties:!1}]}],defaultOptions:["always"],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(t){let e=t.options[0],r=u5(t.options[1]),s=t.sourceCode;c5(r);function n(l){let u=s.getTokenBefore(l,{includeComments:!0}),c=s.getTokenAfter(l,{includeComments:!0});return!!(u&&c&&l.loc.start.line===u.loc.end.line&&l.loc.end.line===c.loc.start.line)}function i(l){let u=s.getTokenBefore(l,{includeComments:!0});return!!(u&&["Block","Line"].includes(u.type))}function o(l,u){if(i5.test(l.value))return!0;let c=l.value.replace(/\*/gu,"");if(u.ignorePatternRegExp&&u.ignorePatternRegExp.test(c)||u.ignoreInlineComments&&n(l)||u.ignoreConsecutiveComments&&i(l)||o5.test(c))return!0;let p=c.replace(a5,"");if(p.length===0)return!0;let[h]=p;if(!s5(h))return!0;let f=h!==h.toLocaleLowerCase(),d=h!==h.toLocaleUpperCase();return!(e==="always"&&d||e==="never"&&f)}function a(l){let u=r[l.type];if(!o(l,u)){let p=e==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";t.report({node:null,loc:l.loc,messageId:p,fix(h){let f=l.value.match(n5),d=f[0],g=l.range[0]+f.index+2;return h.replaceTextRange([g,g+d.length],e==="always"?d.toLocaleUpperCase():d.toLocaleLowerCase())}})}}return{Program(){s.getAllComments().filter(u=>u.type!=="Shebang").forEach(a)}}}}});var y1=B((tte,g1)=>{"use strict";var eh=X();g1.exports={meta:{type:"suggestion",defaultOptions:[{enforceForClassFields:!0,exceptMethods:[],ignoreOverrideMethods:!1}],docs:{description:"Enforce that class methods utilize `this`",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/class-methods-use-this"},schema:[{type:"object",properties:{exceptMethods:{type:"array",items:{type:"string"}},enforceForClassFields:{type:"boolean"},ignoreOverrideMethods:{type:"boolean"},ignoreClassesWithImplements:{enum:["all","public-fields"]}},additionalProperties:!1}],messages:{missingThis:"Expected 'this' to be used by class {{name}}."}},create(t){let[e]=t.options,{enforceForClassFields:r,ignoreOverrideMethods:s,ignoreClassesWithImplements:n}=e,i=new Set(e.exceptMethods),o=[];function a(){o.push(!1)}function l(){return o.pop()}function u(){a()}function c(g){switch(g.type){case"MethodDefinition":return!g.static&&g.kind!=="constructor";case"AccessorProperty":case"PropertyDefinition":return!g.static&&r;default:return!1}}function p(g){let y=g.parent.parent;return(y?.type==="ClassDeclaration"||y?.type==="ClassExpression")&&y.implements?.length>0}function h(g){if(c(g)){if(s&&g.override||n&&p(g)&&(n==="all"||n==="public-fields"&&g.key.type!=="PrivateIdentifier"&&(!g.accessibility||g.accessibility==="public")))return!1;if(g.computed)return!0;let y=g.key.type==="PrivateIdentifier"?"#":"",v=g.key.type==="Literal"?eh.getStaticStringValue(g.key):g.key.name||"";return!i.has(y+v)}return!1}function f(g){let y=l();h(g.parent)&&!y&&t.report({node:g,loc:eh.getFunctionHeadLoc(g,t.sourceCode),messageId:"missingThis",data:{name:eh.getFunctionNameWithKind(g)}})}function d(){o.length&&(o[o.length-1]=!0)}return{FunctionDeclaration:u,"FunctionDeclaration:exit":f,FunctionExpression:u,"FunctionExpression:exit":f,"AccessorProperty > *.key:exit":a,"AccessorProperty:exit":l,"PropertyDefinition > *.key:exit":a,"PropertyDefinition:exit":l,StaticBlock:a,"StaticBlock:exit":l,ThisExpression:d,Super:d,...r&&{"AccessorProperty > ArrowFunctionExpression.value":u,"AccessorProperty > ArrowFunctionExpression.value:exit":f,"PropertyDefinition > ArrowFunctionExpression.value":u,"PropertyDefinition > ArrowFunctionExpression.value:exit":f}}}}});var E1=B((rte,x1)=>{"use strict";var th=X(),Zs=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});function p5(t){return!(t.type==="RestElement"||t.type==="RestProperty"||t.type==="ExperimentalRestProperty")}function f5(t,e){return typeof t=="string"?{arrays:t,objects:t,imports:t,exports:t,functions:e<2017?"ignore":t}:typeof t=="object"&&t!==null?{arrays:t.arrays||Zs.arrays,objects:t.objects||Zs.objects,imports:t.imports||Zs.imports,exports:t.exports||Zs.exports,functions:t.functions||Zs.functions}:Zs}x1.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-dangle",url:"https://eslint.style/rules/comma-dangle"}}]},type:"layout",docs:{description:"Require or disallow trailing commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-dangle"},fixable:"code",schema:{definitions:{value:{enum:["always-multiline","always","never","only-multiline"]},valueWithIgnore:{enum:["always-multiline","always","ignore","never","only-multiline"]}},type:"array",items:[{oneOf:[{$ref:"#/definitions/value"},{type:"object",properties:{arrays:{$ref:"#/definitions/valueWithIgnore"},objects:{$ref:"#/definitions/valueWithIgnore"},imports:{$ref:"#/definitions/valueWithIgnore"},exports:{$ref:"#/definitions/valueWithIgnore"},functions:{$ref:"#/definitions/valueWithIgnore"}},additionalProperties:!1}]}],additionalItems:!1},messages:{unexpected:"Unexpected trailing comma.",missing:"Missing trailing comma."}},create(t){let e=f5(t.options[0],t.languageOptions.ecmaVersion),r=t.sourceCode;function s(p){function h(f){return f.at(-1)}switch(p.type){case"ObjectExpression":case"ObjectPattern":return h(p.properties);case"ArrayExpression":case"ArrayPattern":return h(p.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return h(p.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return h(p.params);case"CallExpression":case"NewExpression":return h(p.arguments);default:return null}}function n(p,h){switch(p.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return r.getLastToken(p,1);default:{let f=r.getTokenAfter(h);return th.isCommaToken(f)?f:r.getLastToken(h)}}}function i(p){let h=s(p);if(!h)return!1;let f=n(p,h);return r.getTokenAfter(f).loc.end.line!==f.loc.end.line}function o(p){let h=s(p);if(!h||p.type==="ImportDeclaration"&&h.type!=="ImportSpecifier")return;let f=n(p,h);th.isCommaToken(f)&&t.report({node:h,loc:f.loc,messageId:"unexpected",*fix(d){yield d.remove(f),yield d.insertTextBefore(r.getTokenBefore(f),""),yield d.insertTextAfter(r.getTokenAfter(f),"")}})}function a(p){let h=s(p);if(!h||p.type==="ImportDeclaration"&&h.type!=="ImportSpecifier")return;if(!p5(h)){o(p);return}let f=n(p,h);f.value!==","&&t.report({node:h,loc:{start:f.loc.end,end:th.getNextLocation(r,f.loc.end)},messageId:"missing",*fix(d){yield d.insertTextAfter(f,","),yield d.insertTextBefore(f,""),yield d.insertTextAfter(r.getTokenAfter(f),"")}})}function l(p){i(p)?a(p):o(p)}function u(p){i(p)||o(p)}let c={always:a,"always-multiline":l,"only-multiline":u,never:o,ignore(){}};return{ObjectExpression:c[e.objects],ObjectPattern:c[e.objects],ArrayExpression:c[e.arrays],ArrayPattern:c[e.arrays],ImportDeclaration:c[e.imports],ExportNamedDeclaration:c[e.exports],FunctionDeclaration:c[e.functions],FunctionExpression:c[e.functions],ArrowFunctionExpression:c[e.functions],CallExpression:c[e.functions],NewExpression:c[e.functions]}}}});var v1=B((nte,b1)=>{"use strict";var tn=X();b1.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-spacing",url:"https://eslint.style/rules/comma-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after commas",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{missing:"A space is required {{loc}} ','.",unexpected:"There should be no space {{loc}} ','."}},create(t){let e=t.sourceCode,r=e.tokensAndComments,s={before:t.options[0]?t.options[0].before:!1,after:t.options[0]?t.options[0].after:!0},n=[];function i(a,l,u){t.report({node:a,fix(c){if(s[l])return l==="before"?c.insertTextBefore(a," "):c.insertTextAfter(a," ");let p,h,f="";return l==="before"?(p=u.range[1],h=a.range[0]):(p=a.range[1],h=u.range[0]),c.replaceTextRange([p,h],f)},messageId:s[l]?"missing":"unexpected",data:{loc:l}})}function o(a){let l=e.getFirstToken(a);a.elements.forEach(u=>{let c;u===null?(c=e.getTokenAfter(l),tn.isCommaToken(c)&&n.push(c)):c=e.getTokenAfter(u),l=c})}return{"Program:exit"(){r.forEach((a,l)=>{if(!tn.isCommaToken(a))return;let u=r[l-1],c=r[l+1];u&&!tn.isCommaToken(u)&&!n.includes(a)&&tn.isTokenOnSameLine(u,a)&&s.before!==e.isSpaceBetween(u,a)&&i(a,"before",u),c&&!tn.isCommaToken(c)&&!tn.isClosingParenToken(c)&&!tn.isClosingBracketToken(c)&&!tn.isClosingBraceToken(c)&&!(!s.after&&c.type==="Line")&&tn.isTokenOnSameLine(a,c)&&s.after!==e.isSpaceBetween(a,c)&&i(a,"after",c)})},ArrayExpression:o,ArrayPattern:o}}}});var C1=B((ste,S1)=>{"use strict";var Ar=X();S1.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"comma-style",url:"https://eslint.style/rules/comma-style"}}]},type:"layout",docs:{description:"Enforce consistent comma style",recommended:!1,url:"https://eslint.org/docs/latest/rules/comma-style"},fixable:"code",schema:[{enum:["first","last"]},{type:"object",properties:{exceptions:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedLineBeforeAndAfterComma:"Bad line breaking before and after ','.",expectedCommaFirst:"',' should be placed first.",expectedCommaLast:"',' should be placed last."}},create(t){let e=t.options[0]||"last",r=t.sourceCode,s={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(t.options.length===2&&Object.hasOwn(t.options[1],"exceptions")){let u=Object.keys(t.options[1].exceptions);for(let c=0;c<u.length;c++)s[u[c]]=t.options[1].exceptions[u[c]]}function n(u,c){switch(u){case"between":return`,${c.replace(Ar.LINEBREAK_MATCHER,"")}`;case"first":return`${c},`;case"last":return`,${c}`;default:return""}}function i(u,c,p,h){let f=r.text.slice(c.range[1],p.range[0])+r.text.slice(p.range[1],h.range[0]),d=[c.range[1],h.range[0]];return function(g){return g.replaceTextRange(d,n(u,f))}}function o(u,c,p,h){if(!(Ar.isTokenOnSameLine(c,p)&&Ar.isTokenOnSameLine(u,c)))if(!Ar.isTokenOnSameLine(c,p)&&!Ar.isTokenOnSameLine(u,c)){let f=r.getCommentsAfter(c)[0],d=f&&f.type==="Block"&&Ar.isTokenOnSameLine(c,f)?e:"between";t.report({node:h,loc:c.loc,messageId:"unexpectedLineBeforeAndAfterComma",fix:i(d,u,c,p)})}else e==="first"&&!Ar.isTokenOnSameLine(c,p)?t.report({node:h,loc:c.loc,messageId:"expectedCommaFirst",fix:i(e,u,c,p)}):e==="last"&&Ar.isTokenOnSameLine(c,p)&&t.report({node:h,loc:c.loc,messageId:"expectedCommaLast",fix:i(e,u,c,p)})}function a(u,c){let p=u[c],h=u.type==="ArrayExpression"||u.type==="ArrayPattern";if(p.length>1||h){let f=r.getFirstToken(u);if(p.forEach(d=>{let g=d?r.getTokenBefore(d):f,y=d?r.getFirstToken(d):r.getTokenAfter(g),v=d||y;if(Ar.isCommaToken(g)&&o(f,g,y,v),d){let S=r.getTokenAfter(d,Ar.isNotClosingParenToken);f=S?r.getTokenBefore(S):r.ast.tokens.at(-1)}else f=y}),h){let d=r.getLastToken(u),g=r.getTokenBefore(d);Ar.isCommaToken(g)&&o(r.getTokenBefore(g),g,d,d)}}}let l={};return s.VariableDeclaration||(l.VariableDeclaration=function(u){a(u,"declarations")}),s.ObjectExpression||(l.ObjectExpression=function(u){a(u,"properties")}),s.ObjectPattern||(l.ObjectPattern=function(u){a(u,"properties")}),s.ArrayExpression||(l.ArrayExpression=function(u){a(u,"elements")}),s.ArrayPattern||(l.ArrayPattern=function(u){a(u,"elements")}),s.FunctionDeclaration||(l.FunctionDeclaration=function(u){a(u,"params")}),s.FunctionExpression||(l.FunctionExpression=function(u){a(u,"params")}),s.ArrowFunctionExpression||(l.ArrowFunctionExpression=function(u){a(u,"params")}),s.CallExpression||(l.CallExpression=function(u){a(u,"arguments")}),s.ImportDeclaration||(l.ImportDeclaration=function(u){a(u,"specifiers")}),s.NewExpression||(l.NewExpression=function(u){a(u,"arguments")}),l}}});var In=B((ite,A1)=>{"use strict";var h5=/^[\u0000-\u007f]*$/u,w1;function m5(t){return t.length<=1?t.toUpperCase():t[0].toUpperCase()+t.slice(1)}function d5(t){if(h5.test(t))return t.length;w1??=new Intl.Segmenter("en-US");let e=0;for(let r of w1.segment(t))e++;return e}A1.exports={upperCaseFirst:m5,getGraphemeCount:d5}});var D1=B((ate,T1)=>{"use strict";var rh=X(),{upperCaseFirst:g5}=In(),k1=20;T1.exports={meta:{type:"suggestion",defaultOptions:[k1],docs:{description:"Enforce a maximum cyclomatic complexity allowed in a program",recommended:!1,url:"https://eslint.org/docs/latest/rules/complexity"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0},variant:{enum:["classic","modified"]}},additionalProperties:!1}]}],messages:{complex:"{{name}} has a complexity of {{complexity}}. Maximum allowed is {{max}}."}},create(t){let e=t.sourceCode,r=t.options[0],s=k1,n="classic";typeof r=="object"?((Object.hasOwn(r,"maximum")||Object.hasOwn(r,"max"))&&(s=r.maximum||r.max),Object.hasOwn(r,"variant")&&(n=r.variant)):typeof r=="number"&&(s=r);let i=n==="modified",o=[];function a(){o[o.length-1]++}return{onCodePathStart(){o.push(1)},CatchClause:a,ConditionalExpression:a,LogicalExpression:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,IfStatement:a,WhileStatement:a,DoWhileStatement:a,AssignmentPattern:a,"SwitchCase[test]":()=>i||a(),SwitchStatement:()=>i&&a(),AssignmentExpression(l){rh.isLogicalAssignmentOperator(l.operator)&&a()},MemberExpression(l){l.optional===!0&&a()},CallExpression(l){l.optional===!0&&a()},onCodePathEnd(l,u){let c=o.pop();if(!(l.origin!=="function"&&l.origin!=="class-field-initializer"&&l.origin!=="class-static-block")&&c>s){let p,h=u.loc;l.origin==="class-field-initializer"?p="class field initializer":l.origin==="class-static-block"?(p="class static block",h=e.getFirstToken(u).loc):(p=rh.getFunctionNameWithKind(u),h=rh.getFunctionHeadLoc(u,e)),t.report({node:u,loc:h,messageId:"complex",data:{name:g5(p),complexity:c,max:s}})}}}}}});var P1=B((ote,I1)=>{"use strict";var ei=X();I1.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"computed-property-spacing",url:"https://eslint.style/rules/computed-property-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside computed property brackets",recommended:!1,url:"https://eslint.org/docs/latest/rules/computed-property-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{enforceForClassMembers:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedSpaceBefore:"There should be no space before '{{tokenValue}}'.",unexpectedSpaceAfter:"There should be no space after '{{tokenValue}}'.",missingSpaceBefore:"A space is required before '{{tokenValue}}'.",missingSpaceAfter:"A space is required after '{{tokenValue}}'."}},create(t){let e=t.sourceCode,r=t.options[0]==="always",s=!t.options[1]||t.options[1].enforceForClassMembers;function n(c,p,h){t.report({node:c,loc:{start:p.loc.end,end:h.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:p.value},fix(f){return f.removeRange([p.range[1],h.range[0]])}})}function i(c,p,h){t.report({node:c,loc:{start:h.loc.end,end:p.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:p.value},fix(f){return f.removeRange([h.range[1],p.range[0]])}})}function o(c,p){t.report({node:c,loc:p.loc,messageId:"missingSpaceAfter",data:{tokenValue:p.value},fix(h){return h.insertTextAfter(p," ")}})}function a(c,p){t.report({node:c,loc:p.loc,messageId:"missingSpaceBefore",data:{tokenValue:p.value},fix(h){return h.insertTextBefore(p," ")}})}function l(c){return function(p){if(!p.computed)return;let h=p[c],f=e.getTokenBefore(h,ei.isOpeningBracketToken),d=e.getTokenAfter(f,{includeComments:!0}),g=e.getTokenAfter(h,ei.isClosingBracketToken),y=e.getTokenBefore(g,{includeComments:!0});ei.isTokenOnSameLine(f,d)&&(r?!e.isSpaceBetween(f,d)&&ei.isTokenOnSameLine(f,d)&&o(p,f):e.isSpaceBetween(f,d)&&n(p,f,d)),ei.isTokenOnSameLine(y,g)&&(r?!e.isSpaceBetween(y,g)&&ei.isTokenOnSameLine(y,g)&&a(p,g):e.isSpaceBetween(y,g)&&i(p,g,y))}}let u={Property:l("key"),MemberExpression:l("property")};return s&&(u.MethodDefinition=u.PropertyDefinition=u.Property),u}}});var _1=B((lte,F1)=>{"use strict";var sa=X(),{upperCaseFirst:y5}=In(),{isAnySegmentReachable:x5}=kn();function E5(t){return t.type==="FunctionExpression"&&t.parent&&t.parent.type==="MethodDefinition"&&t.parent.kind==="constructor"}F1.exports={meta:{type:"suggestion",docs:{description:"Require `return` statements to either always or never specify values",recommended:!1,url:"https://eslint.org/docs/latest/rules/consistent-return"},schema:[{type:"object",properties:{treatUndefinedAsUnspecified:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{treatUndefinedAsUnspecified:!1}],messages:{missingReturn:"Expected to return a value at the end of {{name}}.",missingReturnValue:"{{name}} expected a return value.",unexpectedReturnValue:"{{name}} expected no return value."}},create(t){let[{treatUndefinedAsUnspecified:e}]=t.options,r=null;function s(n){let i,o;!r.hasReturnValue||!x5(r.currentSegments)||sa.isES5Constructor(n)||E5(n)||(n.type==="Program"?(i={line:1,column:0},o="program"):n.type==="ArrowFunctionExpression"?i=t.sourceCode.getTokenBefore(n.body,sa.isArrowToken).loc:n.parent.type==="MethodDefinition"||n.parent.type==="Property"&&n.parent.method?i=n.parent.key.loc:i=(n.id||t.sourceCode.getFirstToken(n)).loc,o||(o=sa.getFunctionNameWithKind(n)),t.report({node:n,loc:i,messageId:"missingReturn",data:{name:o}}))}return{onCodePathStart(n,i){r={upper:r,codePath:n,hasReturn:!1,hasReturnValue:!1,messageId:"",node:i,currentSegments:new Set}},onCodePathEnd(){r=r.upper},onUnreachableCodePathSegmentStart(n){r.currentSegments.add(n)},onUnreachableCodePathSegmentEnd(n){r.currentSegments.delete(n)},onCodePathSegmentStart(n){r.currentSegments.add(n)},onCodePathSegmentEnd(n){r.currentSegments.delete(n)},ReturnStatement(n){let i=n.argument,o=!!i;e&&o&&(o=!sa.isSpecificId(i,"undefined")&&i.operator!=="void"),r.hasReturn?r.hasReturnValue!==o&&t.report({node:n,messageId:r.messageId,data:r.data}):(r.hasReturn=!0,r.hasReturnValue=o,r.messageId=o?"missingReturnValue":"unexpectedReturnValue",r.data={name:r.node.type==="Program"?"Program":y5(sa.getFunctionNameWithKind(r.node))})},"Program:exit":s,"FunctionDeclaration:exit":s,"FunctionExpression:exit":s,"ArrowFunctionExpression:exit":s}}}});var O1=B((ute,B1)=>{"use strict";B1.exports={meta:{type:"suggestion",docs:{description:"Enforce consistent naming when capturing the current execution context",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/consistent-this"},schema:{type:"array",items:{type:"string",minLength:1},uniqueItems:!0},defaultOptions:["that"],messages:{aliasNotAssignedToThis:"Designated alias '{{name}}' is not assigned to 'this'.",unexpectedAlias:"Unexpected alias '{{name}}' for 'this'."}},create(t){let e=t.options,r=t.sourceCode;function s(a,l){t.report({node:a,messageId:"aliasNotAssignedToThis",data:{name:l}})}function n(a,l,u){let c=u.type==="ThisExpression";e.includes(l)?(!c||a.operator&&a.operator!=="=")&&s(a,l):c&&t.report({node:a,messageId:"unexpectedAlias",data:{name:l}})}function i(a,l){let u=l.set.get(a);u&&(u.defs.some(c=>c.node.type==="VariableDeclarator"&&c.node.init!==null)||u.references.some(c=>{let p=c.writeExpr;return c.from===l&&p&&p.type==="ThisExpression"&&p.parent.operator==="="})||u.defs.map(c=>c.node).forEach(c=>{s(c,a)}))}function o(a){let l=r.getScope(a),u=a.type==="Program"&&a.sourceType==="module"?l.childScopes[0]:null;e.forEach(c=>{i(c,l),u&&i(c,u)})}return{"Program:exit":o,"FunctionExpression:exit":o,"FunctionDeclaration:exit":o,VariableDeclarator(a){let l=a.id,u=l.type==="ArrayPattern"||l.type==="ObjectPattern";a.init!==null&&!u&&n(a,l.name,a.init)},AssignmentExpression(a){a.left.type==="Identifier"&&n(a,a.left.name,a.right)}}}}});var N1=B((cte,L1)=>{"use strict";function b5(t){return t.type==="FunctionExpression"&&t.parent.type==="MethodDefinition"&&t.parent.kind==="constructor"}function Mr(t){if(!t)return!1;switch(t.type){case"ClassExpression":case"FunctionExpression":case"ThisExpression":case"MemberExpression":case"CallExpression":case"NewExpression":case"ChainExpression":case"YieldExpression":case"TaggedTemplateExpression":case"MetaProperty":return!0;case"Identifier":return t.name!=="undefined";case"AssignmentExpression":return["=","&&="].includes(t.operator)?Mr(t.right):["||=","??="].includes(t.operator)?Mr(t.left)||Mr(t.right):!1;case"LogicalExpression":return t.operator==="&&"?Mr(t.right):Mr(t.left)||Mr(t.right);case"ConditionalExpression":return Mr(t.alternate)||Mr(t.consequent);case"SequenceExpression":{let e=t.expressions.at(-1);return Mr(e)}default:return!1}}var nh=class{calledInEveryPaths=!1;calledInSomePaths=!1;validNodes=[]};L1.exports={meta:{type:"problem",docs:{description:"Require `super()` calls in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/constructor-super"},schema:[],messages:{missingSome:"Lacked a call of 'super()' in some code paths.",missingAll:"Expected to call 'super()'.",duplicate:"Unexpected duplicate 'super()'.",badSuper:"Unexpected 'super()' because 'super' is not a constructor."}},create(t){let e=null,r=Object.create(null);function s(o){return o.reachable&&r[o.id].calledInSomePaths}function n(o){return!!r[o.id]}function i(o){return o.reachable&&r[o.id].calledInEveryPaths}return{onCodePathStart(o,a){if(b5(a)){let u=a.parent.parent.parent.superClass;e={upper:e,isConstructor:!0,hasExtends:!!u,superIsConstructor:Mr(u),codePath:o,currentSegments:new Set}}else e={upper:e,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:o,currentSegments:new Set}},onCodePathEnd(o,a){let l=e.hasExtends;if(e=e.upper,!l)return;let u=o.returnedSegments,c=u.every(i),p=u.some(s);c||t.report({messageId:p?"missingSome":"missingAll",node:a.parent})},onCodePathSegmentStart(o,a){if(e.currentSegments.add(o),!(e.isConstructor&&e.hasExtends))return;let l=r[o.id]=new nh,u=o.prevSegments.filter(n);u.length>0&&(l.calledInSomePaths=u.some(s),l.calledInEveryPaths=u.every(i)),a.parent&&a.parent.type==="ForStatement"&&a.parent.update===a&&(l.calledInEveryPaths=!0)},onUnreachableCodePathSegmentStart(o){e.currentSegments.add(o)},onUnreachableCodePathSegmentEnd(o){e.currentSegments.delete(o)},onCodePathSegmentEnd(o){e.currentSegments.delete(o)},onCodePathSegmentLoop(o,a){e.isConstructor&&e.hasExtends&&e.codePath.traverseSegments({first:a,last:o},(l,u)=>{let c=r[l.id];if(!c){u.skip();return}let p=l.prevSegments.filter(n),h=p.some(s),f=p.every(i);if(c.calledInSomePaths||=h,c.calledInEveryPaths||=f,h){let d=c.validNodes;c.validNodes=[];for(let g=0;g<d.length;++g){let y=d[g];t.report({messageId:"duplicate",node:y})}}})},"CallExpression:exit"(o){if(!(e.isConstructor&&e.hasExtends)||o.callee.type!=="Super")return;let a=e.currentSegments,l=!1,u=null;for(let c of a)c.reachable&&(u=r[c.id],l=l||u.calledInSomePaths,u.calledInSomePaths=u.calledInEveryPaths=!0);u&&(l?t.report({messageId:"duplicate",node:o}):e.superIsConstructor?u.validNodes.push(o):t.report({messageId:"badSuper",node:o}))},ReturnStatement(o){if(!(e.isConstructor&&e.hasExtends)||!o.argument)return;let a=e.currentSegments;for(let l of a)if(l.reachable){let u=r[l.id];u.calledInSomePaths=u.calledInEveryPaths=!0}}}}}});var j1=B((pte,R1)=>{"use strict";var ia=X();R1.exports={meta:{type:"suggestion",docs:{description:"Enforce consistent brace style for all control statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/curly"},schema:{anyOf:[{type:"array",items:[{enum:["all"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["multi","multi-line","multi-or-nest"]},{enum:["consistent"]}],minItems:0,maxItems:2}]},defaultOptions:["all"],fixable:"code",messages:{missingCurlyAfter:"Expected { after '{{name}}'.",missingCurlyAfterCondition:"Expected { after '{{name}}' condition.",unexpectedCurlyAfter:"Unnecessary { after '{{name}}'.",unexpectedCurlyAfterCondition:"Unnecessary { after '{{name}}' condition."}},create(t){let e=t.options[0]==="multi",r=t.options[0]==="multi-line",s=t.options[0]==="multi-or-nest",n=t.options[1]==="consistent",i=t.sourceCode;function o(p){let h=i.getTokenBefore(p),f=i.getLastToken(p),d=ia.isSemicolonToken(f)?i.getTokenBefore(f):f;return h.loc.start.line===d.loc.end.line}function a(p){if(p.type==="EmptyStatement")return!0;let h=i.getFirstToken(p),f=i.getLastToken(p),d=ia.isSemicolonToken(f)?i.getTokenBefore(f):f;return h.loc.start.line===d.loc.end.line}function l(p){let h=i.getTokenBefore(p),f=i.getTokenAfter(p),d=i.getNodeByRangeIndex(h.range[0]);return ia.isSemicolonToken(h)||!f||d.type==="BlockStatement"&&d.parent.type!=="FunctionExpression"&&d.parent.type!=="ArrowFunctionExpression"?!1:!!(h.loc.end.line===f.loc.start.line||/^[([/`+-]/u.test(f.value)||h.type==="Punctuator"&&(h.value==="++"||h.value==="--"))}function u(p,h,f,d){let g=h.type==="BlockStatement",y=null;if(g&&(h.body.length!==1||ia.areBracesNecessary(h,i)))y=!0;else if(e)y=!1;else if(r)o(h)||(y=!0);else if(s)if(g){let v=h.body[0],S=i.getCommentsBefore(v);y=!a(v)||S.length>0}else y=!a(h);else y=!0;return{actual:g,expected:y,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?t.report({node:p,loc:h.loc,messageId:d&&d.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:f},fix:v=>v.replaceText(h,`{${i.getText(h)}}`)}):t.report({node:p,loc:h.loc,messageId:d&&d.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:f},fix(v){let S=i.getTokenBefore(h),A=S.range[1]===h.range[0]&&!ia.canTokensBeAdjacent(S,i.getFirstToken(h,{skip:1})),E=i.getFirstToken(h),k=i.getLastToken(h),T=i.getTokenBefore(k);if(l(k))return null;let w=i.getText().slice(E.range[1],T.range[0])+i.getText(T)+i.getText().slice(T.range[1],k.range[0]);return v.replaceText(h,(A?" ":"")+w)}}))}}}function c(p){let h=[];for(let f=p;f;f=f.alternate)if(h.push(u(f,f.consequent,"if",{condition:!0})),f.alternate&&f.alternate.type!=="IfStatement"){h.push(u(f,f.alternate,"else"));break}if(n){let f=h.some(d=>d.expected!==null?d.expected:d.actual);h.forEach(d=>{d.expected=f})}return h}return{IfStatement(p){let h=p.parent;h.type==="IfStatement"&&h.alternate===p||c(p).forEach(d=>{d.check()})},WhileStatement(p){u(p,p.body,"while",{condition:!0}).check()},DoWhileStatement(p){u(p,p.body,"do").check()},ForStatement(p){u(p,p.body,"for",{condition:!0}).check()},ForInStatement(p){u(p,p.body,"for-in").check()},ForOfStatement(p){u(p,p.body,"for-of").check()}}}}});var q1=B((fte,M1)=>{"use strict";var{isClosingParenToken:v5}=X(),S5=/^no default$/iu;M1.exports={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Require `default` cases in `switch` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case"},schema:[{type:"object",properties:{commentPattern:{type:"string"}},additionalProperties:!1}],messages:{missingDefaultCase:"Expected a default case."}},create(t){let[e]=t.options,r=e.commentPattern?new RegExp(e.commentPattern,"u"):S5,s=t.sourceCode;function n(i){return i.at(-1)}return{SwitchStatement(i){if(!i.cases.length)return;if(!i.cases.some(a=>a.test===null)){let a,l=n(i.cases),u=s.getCommentsAfter(l);u.length&&(a=n(u)),(!a||!r.test(a.value.trim()))&&t.report({node:i,loc:{start:i.loc.start,end:s.getTokenBefore(i.cases[0],v5).loc.end},messageId:"missingDefaultCase"})}}}}}});var $1=B((hte,U1)=>{"use strict";U1.exports={meta:{type:"suggestion",docs:{description:"Enforce `default` clauses in `switch` statements to be last",recommended:!1,url:"https://eslint.org/docs/latest/rules/default-case-last"},schema:[],messages:{notLast:"Default clause should be the last clause."}},create(t){return{SwitchStatement(e){let r=e.cases,s=r.findIndex(n=>n.test===null);if(s!==-1&&s!==r.length-1){let n=r[s];t.report({node:n,messageId:"notLast"})}}}}}});var W1=B((mte,V1)=>{"use strict";function C5(t){return!(t.type==="AssignmentPattern"||t.type==="RestElement"||t.optional)}V1.exports={meta:{type:"suggestion",docs:{description:"Enforce default parameters to be last",dialects:["JavaScript","TypeScript"],recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(t){function e(r){let s=!1;for(let n=r.params.length-1;n>=0;n-=1){let i=r.params[n],o=i.type==="TSParameterProperty"?i.parameter:i;if(C5(o)){s=!0;continue}s&&t.report({node:i,messageId:"shouldBeLast"})}}return{FunctionDeclaration:e,FunctionExpression:e,ArrowFunctionExpression:e}}}});var G1=B((dte,z1)=>{"use strict";var sh=X();z1.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"dot-location",url:"https://eslint.style/rules/dot-location"}}]},type:"layout",docs:{description:"Enforce consistent newlines before and after dots",recommended:!1,url:"https://eslint.org/docs/latest/rules/dot-location"},schema:[{enum:["object","property"]}],fixable:"code",messages:{expectedDotAfterObject:"Expected dot to be on same line as object.",expectedDotBeforeProperty:"Expected dot to be on same line as property."}},create(t){let e=t.options[0],r=e==="object"||!e,s=t.sourceCode;function n(o){let a=o.property,l=s.getTokenBefore(a);if(r){let u=s.getTokenBefore(l);sh.isTokenOnSameLine(u,l)||t.report({node:o,loc:l.loc,messageId:"expectedDotAfterObject",*fix(c){l.value.startsWith(".")&&sh.isDecimalIntegerNumericToken(u)?yield c.insertTextAfter(u,` ${l.value}`):yield c.insertTextAfter(u,l.value),yield c.remove(l)}})}else sh.isTokenOnSameLine(l,a)||t.report({node:o,loc:l.loc,messageId:"expectedDotBeforeProperty",*fix(u){yield u.remove(l),yield u.insertTextBefore(a,l.value)}})}function i(o){o.computed||n(o)}return{MemberExpression:i}}}});var yl=B((gte,K1)=>{"use strict";K1.exports=["abstract","boolean","break","byte","case","catch","char","class","const","continue","debugger","default","delete","do","double","else","enum","export","extends","false","final","finally","float","for","function","goto","if","implements","import","in","instanceof","int","interface","long","native","new","null","package","private","protected","public","return","short","static","super","switch","synchronized","this","throw","throws","transient","true","try","typeof","var","void","volatile","while","with"]});var X1=B((yte,J1)=>{"use strict";var aa=X(),H1=yl(),w5=/^[a-zA-Z_$][\w$]*$/u,A5=new Set(["string","boolean"]);J1.exports={meta:{type:"suggestion",defaultOptions:[{allowKeywords:!0,allowPattern:""}],docs:{description:"Enforce dot notation whenever possible",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/dot-notation"},schema:[{type:"object",properties:{allowKeywords:{type:"boolean"},allowPattern:{type:"string"}},additionalProperties:!1}],fixable:"code",messages:{useDot:"[{{key}}] is better written in dot notation.",useBrackets:".{{key}} is a syntax error."}},create(t){let[e]=t.options,r=e.allowKeywords,s=t.sourceCode,n;e.allowPattern&&(n=new RegExp(e.allowPattern,"u"));function i(o,a){if(w5.test(a)&&(r||!H1.includes(String(a)))&&!(n&&n.test(a))){let l=o.property.type==="Literal"?JSON.stringify(a):`\`${a}\``;t.report({node:o.property,messageId:"useDot",data:{key:l},*fix(u){let c=s.getTokenAfter(o.object,aa.isOpeningBracketToken),p=s.getLastToken(o),h=s.getTokenAfter(o);s.commentsExistBetween(c,p)||(o.optional||(yield u.insertTextBefore(c,aa.isDecimalInteger(o.object)?" .":".")),yield u.replaceTextRange([c.range[0],p.range[1]],String(a)),h&&p.range[1]===h.range[0]&&!aa.canTokensBeAdjacent(String(a),h)&&(yield u.insertTextAfter(o," ")))}})}}return{MemberExpression(o){o.computed&&o.property.type==="Literal"&&(A5.has(typeof o.property.value)||aa.isNullLiteral(o.property))&&i(o,o.property.value),o.computed&&aa.isStaticTemplateLiteral(o.property)&&i(o,o.property.quasis[0].value.cooked),!r&&!o.computed&&o.property.type==="Identifier"&&H1.includes(String(o.property.name))&&t.report({node:o.property,messageId:"useBrackets",data:{key:o.property.name},*fix(a){let l=s.getTokenBefore(o.property);o.object.type==="Identifier"&&o.object.name==="let"&&!o.optional||s.commentsExistBetween(l,o.property)||(o.optional||(yield a.remove(l)),yield a.replaceText(o.property,`["${o.property.name}"]`))}})}}}}});var Y1=B((xte,Q1)=>{"use strict";Q1.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"eol-last",url:"https://eslint.style/rules/eol-last"}}]},type:"layout",docs:{description:"Require or disallow newline at the end of files",recommended:!1,url:"https://eslint.org/docs/latest/rules/eol-last"},fixable:"whitespace",schema:[{enum:["always","never","unix","windows"]}],messages:{missing:"Newline required at end of file but not found.",unexpected:"Newline not allowed at end of file."}},create(t){return{Program:function(r){let s=t.sourceCode,n=s.getText(),i=s.lines.at(-1),o={column:i.length,line:s.lines.length},a=`
50
+ `,l=`\r${a}`,u=n.endsWith(a);if(!n.length)return;let c=t.options[0]||"always",p=!1;if(c==="unix"&&(c="always"),c==="windows"&&(c="always",p=!0),c==="always"&&!u)t.report({node:r,loc:o,messageId:"missing",fix(h){return h.insertTextAfterRange([0,n.length],p?l:a)}});else if(c==="never"&&u){let h=s.lines.at(-2);t.report({node:r,loc:{start:{line:s.lines.length-1,column:h.length},end:{line:s.lines.length,column:0}},messageId:"unexpected",fix(f){let d=/(?:\r?\n)+$/u,g=d.exec(s.text),y=g.index,v=s.text.length;return f.replaceTextRange([y,v],"")}})}}}}}});var ew=B((Ete,Z1)=>{"use strict";var ih=X();Z1.exports={meta:{type:"suggestion",hasSuggestions:!0,docs:{description:"Require the use of `===` and `!==`",recommended:!1,url:"https://eslint.org/docs/latest/rules/eqeqeq"},schema:{anyOf:[{type:"array",items:[{enum:["always"]},{type:"object",properties:{null:{enum:["always","never","ignore"]}},additionalProperties:!1}],additionalItems:!1},{type:"array",items:[{enum:["smart","allow-null"]}],additionalItems:!1}]},defaultOptions:["always"],fixable:"code",messages:{unexpected:"Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'.",replaceOperator:"Use '{{expectedOperator}}' instead of '{{actualOperator}}'."}},create(t){let e=t.options[0],r=t.options[1]||{},s=t.sourceCode,n=e==="always"?r.null||"always":"ignore",i=n==="always",o=n==="never";function a(f){return f.type==="UnaryExpression"&&f.operator==="typeof"}function l(f){return a(f.left)||a(f.right)}function u(f){return f.type==="Literal"?typeof f.value:ih.isStaticTemplateLiteral(f)?"string":null}function c(f){let d=u(f.left);return d!==null&&d===u(f.right)}function p(f){return ih.isNullLiteral(f.right)||ih.isNullLiteral(f.left)}function h(f,d){let g=s.getFirstTokenBetween(f.left,f.right,v=>v.value===f.operator),y={node:f,loc:g.loc,messageId:"unexpected",data:{expectedOperator:d,actualOperator:f.operator}};l(f)||c(f)?t.report({...y,fix(v){return v.replaceText(g,d)}}):t.report({...y,suggest:[{messageId:"replaceOperator",data:{expectedOperator:d,actualOperator:f.operator},fix:v=>v.replaceText(g,d)}]})}return{BinaryExpression(f){let d=p(f);if(f.operator!=="=="&&f.operator!=="!="){o&&d&&(f.operator==="==="||f.operator==="!==")&&h(f,f.operator.slice(0,-1));return}e==="smart"&&(l(f)||c(f)||d)||!i&&d||h(f,`${f.operator}=`)}}}}});var rw=B((bte,tw)=>{"use strict";var{getStaticValue:k5}=Ht();tw.exports={meta:{type:"problem",docs:{description:"Enforce `for` loop update clause moving the counter in the right direction",recommended:!0,url:"https://eslint.org/docs/latest/rules/for-direction"},fixable:null,schema:[],messages:{incorrectDirection:"The update clause in this loop moves the variable in the wrong direction."}},create(t){let{sourceCode:e}=t;function r(l){t.report({loc:{start:l.loc.start,end:e.getTokenBefore(l.body).loc.end},messageId:"incorrectDirection"})}function s(l,u){let c=k5(l.right,e.getScope(l));if(c&&["bigint","boolean","number"].includes(typeof c.value)){let p=Math.sign(Number(c.value))||0;return u*p}return 0}function n(l,u){if(l.argument.type==="Identifier"&&l.argument.name===u){if(l.operator==="++")return 1;if(l.operator==="--")return-1}return 0}function i(l,u){if(l.left.name===u){if(l.operator==="+=")return s(l,1);if(l.operator==="-=")return s(l,-1)}return 0}function o(l,u){return l.type==="SequenceExpression"?l.expressions.flatMap(c=>o(c,u)):l.type==="UpdateExpression"&&l.argument.type==="Identifier"&&l.argument.name===u?[l]:l.type==="AssignmentExpression"&&l.left.type==="Identifier"&&l.left.name===u?[l]:[]}function a(l,u){return l.type==="UpdateExpression"?n(l,u):l.type==="AssignmentExpression"?i(l,u):0}return{ForStatement(l){if(l.test&&l.test.type==="BinaryExpression"&&l.update)for(let u of["left","right"]){if(l.test[u].type!=="Identifier")continue;let c=l.test[u].name,p=l.test.operator,h=l.update,f;if(p==="<"||p==="<=")f=u==="left"?-1:1;else if(p===">"||p===">=")f=u==="left"?1:-1;else return;let d=o(h,c);d.length===1&&a(d[0],c)===f&&r(l)}}}}}});var sw=B((vte,nw)=>{"use strict";var ah=X();nw.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-call-spacing",url:"https://eslint.style/rules/function-call-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing between function identifiers and their invocations",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-call-spacing"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["never"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always"]},{type:"object",properties:{allowNewlines:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpectedWhitespace:"Unexpected whitespace between function name and paren.",unexpectedNewline:"Unexpected newline between function name and paren.",missing:"Missing space between function name and paren."}},create(t){let e=t.options[0]!=="always",r=!e&&t.options[1]&&t.options[1].allowNewlines,s=t.sourceCode,n=s.getText();function i(o,a,l){let u=n.slice(a.range[1],l.range[0]).replace(/\/\*.*?\*\//gu,""),c=/\s/u.test(u),p=c&&ah.LINEBREAK_MATCHER.test(u);e&&c?t.report({node:o,loc:{start:a.loc.end,end:{line:l.loc.start.line,column:l.loc.start.column-1}},messageId:"unexpectedWhitespace",fix(h){return s.commentsExistBetween(a,l)?null:o.optional?h.replaceTextRange([a.range[1],l.range[0]],"?."):p?null:h.removeRange([a.range[1],l.range[0]])}}):!e&&!c?t.report({node:o,loc:{start:{line:a.loc.end.line,column:a.loc.end.column-1},end:l.loc.start},messageId:"missing",fix(h){return o.optional?null:h.insertTextBefore(l," ")}}):!e&&!r&&p&&t.report({node:o,loc:{start:a.loc.end,end:l.loc.start},messageId:"unexpectedNewline",fix(h){if(!o.optional||s.commentsExistBetween(a,l))return null;let f=[a.range[1],l.range[0]],d=s.getTokenAfter(a);return d.range[0]===a.range[1]?h.replaceTextRange(f,"?. "):d.range[1]===l.range[0]?h.replaceTextRange(f," ?."):h.replaceTextRange(f," ?. ")}})}return{"CallExpression, NewExpression"(o){let a=s.getLastToken(o),l=s.getLastToken(o.callee),u=s.getFirstTokenBetween(l,a,ah.isOpeningParenToken),c=u&&s.getTokenBefore(u,ah.isNotQuestionDotToken);u&&u.range[1]<o.range[1]&&i(o,c,u)},ImportExpression(o){let a=s.getFirstToken(o),l=s.getTokenAfter(a);i(o,a,l)}}}}});var pw=B((Ste,cw)=>{"use strict";var iw=X(),aw=Ff();function T5(t){return t.type==="MemberExpression"&&t.object.type==="Identifier"&&t.object.name==="module"&&(t.property.type==="Identifier"&&t.property.name==="exports"||t.property.type==="Literal"&&t.property.value==="exports")}function oh(t,e){return e>=2015?aw.keyword.isIdentifierES6(t):aw.keyword.isIdentifierES5(t)}function uw(t){return t.type==="Literal"&&typeof t.value=="string"}function ow(t,e){return t.key.type==="Identifier"&&!t.computed?t.key.name:uw(t.key)&&oh(t.key.value,e)?t.key.value:null}var D5={enum:["always","never"]},lw={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};cw.exports={meta:{type:"suggestion",docs:{description:"Require function names to match the name of the variable or property to which they are assigned",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/func-name-matching"},schema:{anyOf:[{type:"array",additionalItems:!1,items:[D5,lw]},{type:"array",additionalItems:!1,items:[lw]}]},defaultOptions:["always"],messages:{matchProperty:"Function name `{{funcName}}` should match property name `{{name}}`.",matchVariable:"Function name `{{funcName}}` should match variable name `{{name}}`.",notMatchProperty:"Function name `{{funcName}}` should not match property name `{{name}}`.",notMatchVariable:"Function name `{{funcName}}` should not match variable name `{{name}}`."}},create(t){let e=(typeof t.options[0]=="object"?t.options[0]:t.options[1])||{},r=typeof t.options[0]=="string"?t.options[0]:"always",s=e.considerPropertyDescriptor,n=e.includeCommonJSModuleExports,i=t.languageOptions.ecmaVersion,o=t.sourceCode;function a(u,c){return r==="always"&&u!==c||r==="never"&&u===c}function l(u,c,p,h){let f;r==="always"&&h?f="matchProperty":r==="always"?f="matchVariable":h?f="notMatchProperty":f="notMatchVariable",t.report({node:u,messageId:f,data:{name:c,funcName:p}})}return{VariableDeclarator(u){!u.init||u.init.type!=="FunctionExpression"||u.id.type!=="Identifier"||u.init.id&&a(u.id.name,u.init.id.name)&&l(u,u.id.name,u.init.id.name,!1)},AssignmentExpression(u){if(u.right.type!=="FunctionExpression"||u.left.computed&&u.left.property.type!=="Literal"||!n&&T5(u.left)||u.left.type!=="Identifier"&&u.left.type!=="MemberExpression")return;let c=u.left.type==="MemberExpression",p=c?iw.getStaticPropertyName(u.left):u.left.name;u.right.id&&p&&oh(p)&&a(p,u.right.id.name)&&l(u,p,u.right.id.name,c)},"Property, PropertyDefinition[value]"(u){if(!(u.value.type==="FunctionExpression"&&u.value.id))return;let c=u.value.id.name,p=ow(u,i);if(s&&p==="value"&&u.parent.type==="ObjectExpression"&&iw.isPropertyDescriptor(u.parent,o)){let h=u.parent.parent;if(h.type==="CallExpression"){let f=h.arguments[1];p=uw(f)&&oh(f.value,i)?f.value:null}else p=ow(h,i)}p!==null&&a(p,c)&&l(u,p,c,!0)}}}}});var hw=B((Cte,fw)=>{"use strict";var rs=X();function I5(t){return t&&t.defs[0].type==="FunctionName"}fw.exports={meta:{type:"suggestion",defaultOptions:["always",{}],docs:{description:"Require or disallow named `function` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/func-names"},schema:{definitions:{value:{enum:["always","as-needed","never"]}},type:"array",items:[{$ref:"#/definitions/value"},{type:"object",properties:{generators:{$ref:"#/definitions/value"}},additionalProperties:!1}],additionalItems:!1},messages:{unnamed:"Unexpected unnamed {{name}}.",named:"Unexpected named {{name}}."}},create(t){let e=t.sourceCode;function r(l){return l.generator&&t.options[1].generators?t.options[1].generators:t.options[0]}function s(l){let u=l.parent;return u.type==="MethodDefinition"||u.type==="Property"&&(u.method||u.kind==="get"||u.kind==="set")}function n(l){let u=l.parent;return s(l)||u.type==="VariableDeclarator"&&u.id.type==="Identifier"&&u.init===l||u.type==="Property"&&u.value===l&&!(!u.computed&&rs.getStaticPropertyName(u)==="__proto__")||u.type==="PropertyDefinition"&&u.value===l||u.type==="AssignmentExpression"&&u.left.type==="Identifier"&&!rs.isParenthesised(e,u.left)&&["=","&&=","||=","??="].includes(u.operator)&&u.right===l||u.type==="AssignmentPattern"&&u.left.type==="Identifier"&&!rs.isParenthesised(e,u.left)&&u.right===l}function i(l){t.report({node:l,messageId:"unnamed",loc:rs.getFunctionHeadLoc(l,e),data:{name:rs.getFunctionNameWithKind(l)}})}function o(l){t.report({node:l,messageId:"named",loc:rs.getFunctionHeadLoc(l,e),data:{name:rs.getFunctionNameWithKind(l)}})}function a(l){let u=e.getDeclaredVariables(l)[0];if(I5(u)&&u.references.length>0)return;let c=!!(l.id&&l.id.name),p=r(l);p==="never"?c&&l.type!=="FunctionDeclaration"&&o(l):p==="as-needed"?!c&&!n(l)&&i(l):!c&&!s(l)&&i(l)}return{"FunctionExpression:exit":a,"ExportDefaultDeclaration > FunctionDeclaration":a}}}});var dw=B((wte,mw)=>{"use strict";mw.exports={meta:{type:"suggestion",defaultOptions:["expression",{allowArrowFunctions:!1,allowTypeAnnotation:!1,overrides:{}}],docs:{description:"Enforce the consistent use of either `function` declarations or expressions assigned to variables",dialects:["JavaScript","TypeScript"],recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/func-style"},schema:[{enum:["declaration","expression"]},{type:"object",properties:{allowArrowFunctions:{type:"boolean"},allowTypeAnnotation:{type:"boolean"},overrides:{type:"object",properties:{namedExports:{enum:["declaration","expression","ignore"]}},additionalProperties:!1}},additionalProperties:!1}],messages:{expression:"Expected a function expression.",declaration:"Expected a function declaration."}},create(t){let[e,{allowArrowFunctions:r,allowTypeAnnotation:s,overrides:n}]=t.options,i=e==="declaration",{namedExports:o}=n,a=[];function l(c){let p=c.id.name;return c.parent.type==="ExportNamedDeclaration"?c.parent.parent.body.some(h=>h.type==="ExportNamedDeclaration"&&h.declaration?.type==="TSDeclareFunction"&&h.declaration.id.name===p):c.parent.type==="SwitchCase"?c.parent.parent.cases.some(h=>h.consequent.some(f=>f.type==="TSDeclareFunction"&&f.id.name===p)):Array.isArray(c.parent.body)&&c.parent.body.some(h=>h.type==="TSDeclareFunction"&&h.id.name===p)}let u={FunctionDeclaration(c){a.push(!1),!i&&c.parent.type!=="ExportDefaultDeclaration"&&(typeof o>"u"||c.parent.type!=="ExportNamedDeclaration")&&!l(c)&&t.report({node:c,messageId:"expression"}),c.parent.type==="ExportNamedDeclaration"&&o==="expression"&&!l(c)&&t.report({node:c,messageId:"expression"})},"FunctionDeclaration:exit"(){a.pop()},FunctionExpression(c){a.push(!1),i&&c.parent.type==="VariableDeclarator"&&(typeof o>"u"||c.parent.parent.parent.type!=="ExportNamedDeclaration")&&!(s&&c.parent.id.typeAnnotation)&&t.report({node:c.parent,messageId:"declaration"}),c.parent.type==="VariableDeclarator"&&c.parent.parent.parent.type==="ExportNamedDeclaration"&&o==="declaration"&&!(s&&c.parent.id.typeAnnotation)&&t.report({node:c.parent,messageId:"declaration"})},"FunctionExpression:exit"(){a.pop()},"ThisExpression, Super"(){a.length>0&&(a[a.length-1]=!0)}};return r||(u.ArrowFunctionExpression=function(){a.push(!1)},u["ArrowFunctionExpression:exit"]=function(c){!a.pop()&&c.parent.type==="VariableDeclarator"&&(i&&(typeof o>"u"||c.parent.parent.parent.type!=="ExportNamedDeclaration")&&!(s&&c.parent.id.typeAnnotation)&&t.report({node:c.parent,messageId:"declaration"}),c.parent.parent.parent.type==="ExportNamedDeclaration"&&o==="declaration"&&!(s&&c.parent.id.typeAnnotation)&&t.report({node:c.parent,messageId:"declaration"}))}),u}}});var yw=B((Ate,gw)=>{"use strict";gw.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-call-argument-newline",url:"https://eslint.style/rules/function-call-argument-newline"}}]},type:"layout",docs:{description:"Enforce line breaks between arguments of a function call",recommended:!1,url:"https://eslint.org/docs/latest/rules/function-call-argument-newline"},fixable:"whitespace",schema:[{enum:["always","never","consistent"]}],messages:{unexpectedLineBreak:"There should be no line break here.",missingLineBreak:"There should be a line break after this argument."}},create(t){let e=t.sourceCode,r={unexpected:{messageId:"unexpectedLineBreak",check:(i,o)=>i.loc.end.line!==o.loc.start.line,createFix:(i,o)=>a=>a.replaceTextRange([o.range[1],i.range[0]]," ")},missing:{messageId:"missingLineBreak",check:(i,o)=>i.loc.end.line===o.loc.start.line,createFix:(i,o)=>a=>a.replaceTextRange([o.range[1],i.range[0]],`
51
+ `)}};function s(i,o){for(let a=1;a<i.arguments.length;a++){let l=e.getLastToken(i.arguments[a-1]),u=e.getFirstToken(i.arguments[a]);if(o.check(l,u)){let c=e.getTokenBefore(u,{includeComments:!0}),p=c.type==="Line";t.report({node:i,loc:{start:c.loc.end,end:u.loc.start},messageId:o.messageId,fix:p?null:o.createFix(u,c)})}}}function n(i){if(i.arguments.length<2)return;let o=t.options[0]||"always";if(o==="never")s(i,r.unexpected);else if(o==="always")s(i,r.missing);else if(o==="consistent"){let a=e.getLastToken(i.arguments[0]),l=e.getFirstToken(i.arguments[1]);a.loc.end.line===l.loc.start.line?s(i,r.unexpected):s(i,r.missing)}}return{CallExpression:n,NewExpression:n}}}});var Ew=B((kte,xw)=>{"use strict";var kr=X();xw.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-paren-newline",url:"https://eslint.style/rules/function-paren-newline"}}]},type:"layout",docs:{description:"Enforce consistent line breaks inside function parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/function-paren-newline"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never","consistent","multiline","multiline-arguments"]},{type:"object",properties:{minItems:{type:"integer",minimum:0}},additionalProperties:!1}]}],messages:{expectedBefore:"Expected newline before ')'.",expectedAfter:"Expected newline after '('.",expectedBetween:"Expected newline between arguments/params.",unexpectedBefore:"Unexpected newline before ')'.",unexpectedAfter:"Unexpected newline after '('."}},create(t){let e=t.sourceCode,r=t.options[0]||"multiline",s=r==="multiline",n=r==="multiline-arguments",i=r==="consistent",o;typeof r=="object"?o=r.minItems:r==="always"?o=0:r==="never"?o=1/0:o=null;function a(p,h){return n&&p.length===1?h:s||n?p.some((f,d)=>d!==p.length-1&&f.loc.end.line!==p[d+1].loc.start.line):i?h:p.length>=o}function l(p,h){let f=p.leftParen,d=p.rightParen,g=e.getTokenAfter(f),y=e.getTokenBefore(d),v=!kr.isTokenOnSameLine(f,g),S=!kr.isTokenOnSameLine(y,d),A=a(h,v);v&&!A?t.report({node:f,messageId:"unexpectedAfter",fix(E){return e.getText().slice(f.range[1],g.range[0]).trim()?null:E.removeRange([f.range[1],g.range[0]])}}):!v&&A&&t.report({node:f,messageId:"expectedAfter",fix:E=>E.insertTextAfter(f,`
52
+ `)}),S&&!A?t.report({node:d,messageId:"unexpectedBefore",fix(E){return e.getText().slice(y.range[1],d.range[0]).trim()?null:E.removeRange([y.range[1],d.range[0]])}}):!S&&A&&t.report({node:d,messageId:"expectedBefore",fix:E=>E.insertTextBefore(d,`
53
+ `)})}function u(p,h){let f=p.leftParen,d=e.getTokenAfter(f),g=!kr.isTokenOnSameLine(f,d),y=a(h,g);for(let v=0;v<=h.length-2;v++){let S=h[v],A=h[v+1];!(S.loc.end.line!==A.loc.start.line)&&y&&t.report({node:S,messageId:"expectedBetween",fix:k=>k.insertTextBefore(A,`
54
+ `)})}}function c(p){switch(p.type){case"NewExpression":if(!p.arguments.length&&!(kr.isOpeningParenToken(e.getLastToken(p,{skip:1}))&&kr.isClosingParenToken(e.getLastToken(p))&&p.callee.range[1]<p.range[1]))return null;case"CallExpression":return{leftParen:e.getTokenAfter(p.callee,kr.isOpeningParenToken),rightParen:e.getLastToken(p)};case"FunctionDeclaration":case"FunctionExpression":{let h=e.getFirstToken(p,kr.isOpeningParenToken),f=p.params.length?e.getTokenAfter(p.params.at(-1),kr.isClosingParenToken):e.getTokenAfter(h);return{leftParen:h,rightParen:f}}case"ArrowFunctionExpression":{let h=e.getFirstToken(p,{skip:p.async?1:0});if(!kr.isOpeningParenToken(h))return null;let f=p.params.length?e.getTokenAfter(p.params.at(-1),kr.isClosingParenToken):e.getTokenAfter(h);return{leftParen:h,rightParen:f}}case"ImportExpression":{let h=e.getFirstToken(p,1),f=e.getLastToken(p);return{leftParen:h,rightParen:f}}default:throw new TypeError(`unexpected node with type ${p.type}`)}}return{[["ArrowFunctionExpression","CallExpression","FunctionDeclaration","FunctionExpression","ImportExpression","NewExpression"]](p){let h=c(p),f;p.type==="ImportExpression"?f=[p.source]:kr.isFunction(p)?f=p.params:f=p.arguments,h&&(l(h,f),n&&u(h,f))}}}}});var vw=B((Tte,bw)=>{"use strict";var lh={oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]};bw.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"generator-star-spacing",url:"https://eslint.style/rules/generator-star-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing around `*` operators in generator functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/generator-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"},named:lh,anonymous:lh,method:lh},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(t){let e={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function r(c,p){return c?typeof c=="string"?e[c]:Object.assign({},p,c):p}let s=(function(c){let p=r(c,e.before);return{named:r(c.named,p),anonymous:r(c.anonymous,p),method:r(c.method,p)}})(t.options[0]||{}),n=t.sourceCode;function i(c){return c.value==="*"&&c.type==="Punctuator"}function o(c){return n.getFirstToken(c.parent.method||c.parent.type==="MethodDefinition"?c.parent:c,i)}function a(c){return c[0].toUpperCase()+c.slice(1)}function l(c,p,h,f){if(!!(f.range[0]-h.range[1])!==s[c][p]){let d=h.value==="*",g=s[c][p],y=d?h:f,v=`${g?"missing":"unexpected"}${a(p)}`;t.report({node:y,messageId:v,fix(S){return g?d?S.insertTextAfter(y," "):S.insertTextBefore(y," "):S.removeRange([h.range[1],f.range[0]])}})}}function u(c){if(!c.generator)return;let p=o(c),h=n.getTokenBefore(p),f=n.getTokenAfter(p),d="named";c.parent.type==="MethodDefinition"||c.parent.type==="Property"&&c.parent.method?d="method":c.id||(d="anonymous"),d==="method"&&p===n.getFirstToken(c.parent)||l(d,"before",h,p),l(d,"after",p,f)}return{FunctionDeclaration:u,FunctionExpression:u}}}});var Cw=B((Dte,Sw)=>{"use strict";var oa=X(),{isAnySegmentReachable:P5}=kn(),F5=/^(?:Arrow)?FunctionExpression$/u;Sw.exports={meta:{type:"problem",defaultOptions:[{allowImplicit:!1}],docs:{description:"Enforce `return` statements in getters",recommended:!0,url:"https://eslint.org/docs/latest/rules/getter-return"},fixable:null,schema:[{type:"object",properties:{allowImplicit:{type:"boolean"}},additionalProperties:!1}],messages:{expected:"Expected to return a value in {{name}}.",expectedAlways:"Expected {{name}} to always return a value."}},create(t){let[{allowImplicit:e}]=t.options,r=t.sourceCode,s={upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null,currentSegments:[]};function n(o){s.shouldCheck&&P5(s.currentSegments)&&t.report({node:o,loc:oa.getFunctionHeadLoc(o,r),messageId:s.hasReturn?"expectedAlways":"expected",data:{name:oa.getFunctionNameWithKind(s.node)}})}function i(o){let a=o.parent;return!!(F5.test(o.type)&&o.body.type==="BlockStatement"&&(a.kind==="get"||a.type==="Property"&&oa.getStaticPropertyName(a)==="get"&&a.parent.type==="ObjectExpression"&&oa.isPropertyDescriptor(a.parent,r)))}return{onCodePathStart(o,a){s={upper:s,codePath:o,hasReturn:!1,shouldCheck:i(a),node:a,currentSegments:new Set}},onCodePathEnd(){s=s.upper},onUnreachableCodePathSegmentStart(o){s.currentSegments.add(o)},onUnreachableCodePathSegmentEnd(o){s.currentSegments.delete(o)},onCodePathSegmentStart(o){s.currentSegments.add(o)},onCodePathSegmentEnd(o){s.currentSegments.delete(o)},ReturnStatement(o){s.shouldCheck&&(s.hasReturn=!0,!e&&!o.argument&&t.report({node:o,messageId:"expected",data:{name:oa.getFunctionNameWithKind(s.node)}}))},"FunctionExpression:exit":n,"ArrowFunctionExpression:exit":n}}}});var Aw=B((Ite,ww)=>{"use strict";var _5=new Set(["AssignmentExpression","VariableDeclarator","MemberExpression","ExpressionStatement","CallExpression","ConditionalExpression","Program","VariableDeclaration","ChainExpression"]);function B5(t,e){let r=t.references.filter(s=>s.identifier.range[0]===e.range[0]&&s.identifier.range[1]===e.range[1]);return r.length===1?r[0]:null}function O5(t,e){let r=B5(t,e);return r&&r.resolved&&r.resolved.defs.length>0}ww.exports={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:"11.0.0",replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"global-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/global-require.md"}}]},type:"suggestion",docs:{description:"Require `require()` calls to be placed at top-level module scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/global-require"},schema:[],messages:{unexpected:"Unexpected require()."}},create(t){let e=t.sourceCode;return{CallExpression(r){let s=e.getScope(r);r.callee.name==="require"&&!O5(s,r.callee)&&(e.getAncestors(r).every(i=>_5.has(i.type))||t.report({node:r,messageId:"unexpected"}))}}}}});var Tw=B((Pte,kw)=>{"use strict";var xl=X();function L5(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;r++){let s=t[r],n=e[r];if(s.type!==n.type||s.value!==n.value)return!1}return!0}function N5(t,e){return typeof t=="string"&&typeof e=="string"?t===e:Array.isArray(t)&&Array.isArray(e)?L5(t,e):!1}function R5(t){return t.kind==="get"||t.kind==="set"}kw.exports={meta:{type:"suggestion",defaultOptions:["anyOrder",{enforceForTSTypes:!1}],docs:{description:"Require grouped accessor pairs in object literals and classes",recommended:!1,url:"https://eslint.org/docs/latest/rules/grouped-accessor-pairs"},schema:[{enum:["anyOrder","getBeforeSet","setBeforeGet"]},{type:"object",properties:{enforceForTSTypes:{type:"boolean"}},additionalProperties:!1}],messages:{notGrouped:"Accessor pair {{ formerName }} and {{ latterName }} should be grouped.",invalidOrder:"Expected {{ latterName }} to be before {{ formerName }}."}},create(t){let[e,{enforceForTSTypes:r}]=t.options,{sourceCode:s}=t;function n(o,a,l){t.report({node:l,messageId:o,loc:xl.getFunctionHeadLoc(l.type!=="TSMethodSignature"?l.value:l,s),data:{formerName:xl.getFunctionNameWithKind(a.type!=="TSMethodSignature"?a.value:a),latterName:xl.getFunctionNameWithKind(l.type!=="TSMethodSignature"?l.value:l)}})}function i(o,a){let l=[],u=!1;for(let c=0;c<o.length;c++){let p=o[c];if(a(p)&&R5(p)){let h=xl.getStaticPropertyName(p),f=h!==null?h:s.getTokens(p.key);for(let d=0;d<l.length;d++){let g=l[d];if(N5(g.key,f)){g.getters.push(...p.kind==="get"?[p]:[]),g.setters.push(...p.kind==="set"?[p]:[]),u=!0;break}}u||l.push({key:f,getters:p.kind==="get"?[p]:[],setters:p.kind==="set"?[p]:[]}),u=!1}}for(let{getters:c,setters:p}of l)if(c.length===1&&p.length===1){let[h]=c,[f]=p,d=o.indexOf(h),g=o.indexOf(f),y=d<g?h:f,v=d<g?f:h;Math.abs(d-g)>1?n("notGrouped",y,v):(e==="getBeforeSet"&&d>g||e==="setBeforeGet"&&d<g)&&n("invalidOrder",y,v)}}return{ObjectExpression(o){i(o.properties,a=>a.type==="Property")},ClassBody(o){i(o.body,a=>a.type==="MethodDefinition"&&!a.static),i(o.body,a=>a.type==="MethodDefinition"&&a.static)},"TSTypeLiteral, TSInterfaceBody"(o){r&&i(o.type==="TSTypeLiteral"?o.members:o.body,a=>a.type==="TSMethodSignature")}}}}});var Iw=B((Fte,Dw)=>{"use strict";Dw.exports={meta:{type:"suggestion",docs:{description:"Require `for-in` loops to include an `if` statement",recommended:!1,url:"https://eslint.org/docs/latest/rules/guard-for-in"},schema:[],messages:{wrap:"The body of a for-in should be wrapped in an if statement to filter unwanted properties from the prototype."}},create(t){return{ForInStatement(e){let r=e.body;if(r.type!=="EmptyStatement"&&r.type!=="IfStatement"&&!(r.type==="BlockStatement"&&r.body.length===0)&&!(r.type==="BlockStatement"&&r.body.length===1&&r.body[0].type==="IfStatement")){if(r.type==="BlockStatement"&&r.body.length>=1&&r.body[0].type==="IfStatement"){let s=r.body[0];if(s.consequent.type==="ContinueStatement"||s.consequent.type==="BlockStatement"&&s.consequent.body.length===1&&s.consequent.body[0].type==="ContinueStatement")return}t.report({node:e,messageId:"wrap"})}}}}}});var Fw=B((_te,Pw)=>{"use strict";Pw.exports={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:"11.0.0",replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"handle-callback-err",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/handle-callback-err.md"}}]},type:"suggestion",docs:{description:"Require error handling in callbacks",recommended:!1,url:"https://eslint.org/docs/latest/rules/handle-callback-err"},schema:[{type:"string"}],messages:{expected:"Expected error to be handled."}},create(t){let e=t.options[0]||"err",r=t.sourceCode;function s(a){return a[0]==="^"}function n(a){return s(e)?new RegExp(e,"u").test(a):a===e}function i(a){return a.variables.filter(l=>l.defs[0]&&l.defs[0].type==="Parameter")}function o(a){let l=r.getScope(a),u=i(l),c=u[0];c&&n(c.name)&&c.references.length===0&&t.report({node:a,messageId:"expected"})}return{FunctionDeclaration:o,FunctionExpression:o,ArrowFunctionExpression:o}}}});var Bw=B((Bte,_w)=>{"use strict";function j5(t){let e=t.parent;return e.type==="AssignmentExpression"&&e.left===t||e.type==="ArrayPattern"||e.type==="RestElement"||e.type==="Property"&&e.value===t&&e.parent.type==="ObjectPattern"||e.type==="AssignmentPattern"&&e.left===t}function M5(t){let e=t.parent;return e.type==="ImportSpecifier"&&e.imported!==e.local&&e.imported===t||e.type==="ExportSpecifier"&&e.parent.source&&e.local!==e.exported&&e.local===t}function q5(t){let e=t.parent;return!e.computed&&e.type==="Property"&&e.parent.type==="ObjectPattern"&&e.value!==t&&e.key===t}function U5(t){let e=t.parent;return e.type==="Property"&&e.parent.type==="ObjectExpression"&&e.shorthand}_w.exports={meta:{deprecated:{message:"The rule was renamed.",url:"https://eslint.org/blog/2020/07/eslint-v7.5.0-released/#deprecating-id-blacklist",deprecatedSince:"7.5.0",availableUntil:"11.0.0",replacedBy:[{rule:{name:"id-denylist",url:"https://eslint.org/docs/rules/id-denylist"}}]},type:"suggestion",docs:{description:"Disallow specified identifiers",recommended:!1,url:"https://eslint.org/docs/latest/rules/id-blacklist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted."}},create(t){let e=new Set(t.options),r=new Set,s=t.sourceCode,n;function i(u){return e.has(u)}function o(u){let c=n.set.get(u.name);return c&&c.defs.length===0&&c.references.some(p=>p.identifier===u)}function a(u){let c=u.parent;return c.type==="MemberExpression"&&c.property===u&&!c.computed?j5(c):c.type!=="CallExpression"&&c.type!=="NewExpression"&&!M5(u)&&!q5(u)&&!(o(u)&&!U5(u))}function l(u){r.has(u.range.toString())||(t.report({node:u,messageId:"restricted",data:{name:u.name}}),r.add(u.range.toString()))}return{Program(u){n=s.getScope(u)},Identifier(u){i(u.name)&&a(u)&&l(u)}}}}});var Lw=B((Ote,Ow)=>{"use strict";var $5=X();function V5(t){let e=t.parent;return e.type==="AssignmentExpression"&&e.left===t||e.type==="ArrayPattern"||e.type==="RestElement"||e.type==="Property"&&e.value===t&&e.parent.type==="ObjectPattern"||e.type==="AssignmentPattern"&&e.left===t}function W5(t){let e=t.parent;return e.type==="ImportSpecifier"&&e.imported!==e.local&&e.imported===t||e.type==="ExportSpecifier"&&e.parent.source&&e.local!==e.exported&&e.local===t}function z5(t){let e=t.parent;return!e.computed&&e.type==="Property"&&e.parent.type==="ObjectPattern"&&e.key===t}Ow.exports={meta:{type:"suggestion",defaultOptions:[],docs:{description:"Disallow specified identifiers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-denylist"},schema:{type:"array",items:{type:"string"},uniqueItems:!0},messages:{restricted:"Identifier '{{name}}' is restricted.",restrictedPrivate:"Identifier '#{{name}}' is restricted."}},create(t){let e=new Set(t.options),r=new Set,s=t.sourceCode,n;function i(u){return e.has(u)}function o(u){let c=n.set.get(u.name);return c&&c.defs.length===0&&c.references.some(p=>p.identifier===u)}function a(u){if($5.isImportAttributeKey(u))return!1;let c=u.parent;return c.type==="MetaProperty"?!1:c.type==="MemberExpression"&&c.property===u&&!c.computed?V5(c):c.type!=="CallExpression"&&c.type!=="NewExpression"&&!W5(u)&&!z5(u)&&!o(u)}function l(u){if(!r.has(u.range.toString())){let c=u.type==="PrivateIdentifier";t.report({node:u,messageId:c?"restrictedPrivate":"restricted",data:{name:u.name}}),r.add(u.range.toString())}}return{Program(u){n=s.getScope(u)},[["Identifier","PrivateIdentifier"]](u){i(u.name)&&a(u)&&l(u)}}}}});var jw=B((Lte,Rw)=>{"use strict";var{getGraphemeCount:G5}=In(),{getModuleExportName:Nw,isImportAttributeKey:K5}=X();Rw.exports={meta:{type:"suggestion",defaultOptions:[{exceptionPatterns:[],exceptions:[],min:2,properties:"always"}],docs:{description:"Enforce minimum and maximum identifier lengths",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-length"},schema:[{type:"object",properties:{min:{type:"integer"},max:{type:"integer"},exceptions:{type:"array",uniqueItems:!0,items:{type:"string"}},exceptionPatterns:{type:"array",uniqueItems:!0,items:{type:"string"}},properties:{enum:["always","never"]}},additionalProperties:!1}],messages:{tooShort:"Identifier name '{{name}}' is too short (< {{min}}).",tooShortPrivate:"Identifier name '#{{name}}' is too short (< {{min}}).",tooLong:"Identifier name '{{name}}' is too long (> {{max}}).",tooLongPrivate:"Identifier name '#{{name}}' is too long (> {{max}})."}},create(t){let[e]=t.options,{max:r=1/0,min:s}=e,n=e.properties!=="never",i=new Set(e.exceptions),o=e.exceptionPatterns.map(c=>new RegExp(c,"u")),a=new Set;function l(c){return o.some(p=>p.test(c))}let u={MemberExpression:n&&function(c){return!c.computed&&(c.parent.left===c&&c.parent.type==="AssignmentExpression"||c.parent.type==="Property"&&c.parent.value===c&&c.parent.parent.type==="ObjectPattern"&&c.parent.parent.parent.left===c.parent.parent)},AssignmentPattern(c,p){return c.left===p},VariableDeclarator(c,p){return c.id===p},Property(c,p){if(c.parent.type==="ObjectPattern"){let h=c.value.name===c.key.name;return!h&&c.value===p||h&&c.key===p&&n}return n&&!K5(p)&&!c.computed&&c.key.name===p.name},ImportSpecifier(c,p){return c.local===p&&Nw(c.imported)!==Nw(c.local)},ImportDefaultSpecifier:!0,ImportNamespaceSpecifier:!0,RestElement:!0,FunctionExpression:!0,ArrowFunctionExpression:!0,ClassDeclaration:!0,FunctionDeclaration:!0,MethodDefinition:!0,PropertyDefinition:!0,CatchClause:!0,ArrayPattern:!0};return{[["Identifier","PrivateIdentifier"]](c){let p=c.name,h=c.parent,f=G5(p),d=f<s,g=f>r;if(!(d||g)||i.has(p)||l(p))return;let y=u[h.type];if(y&&!a.has(c.range.toString())&&(y===!0||y(h,c))){a.add(c.range.toString());let v=d?"tooShort":"tooLong";c.type==="PrivateIdentifier"&&(v+="Private"),t.report({node:c,messageId:v,data:{name:p,min:s,max:r}})}}}}}});var qw=B((Nte,Mw)=>{"use strict";var H5=X();Mw.exports={meta:{type:"suggestion",defaultOptions:["^.+$",{classFields:!1,ignoreDestructuring:!1,onlyDeclarations:!1,properties:!1}],docs:{description:"Require identifiers to match a specified regular expression",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/id-match"},schema:[{type:"string"},{type:"object",properties:{properties:{type:"boolean"},classFields:{type:"boolean"},onlyDeclarations:{type:"boolean"},ignoreDestructuring:{type:"boolean"}},additionalProperties:!1}],messages:{notMatch:"Identifier '{{name}}' does not match the pattern '{{pattern}}'.",notMatchPrivate:"Identifier '#{{name}}' does not match the pattern '{{pattern}}'."}},create(t){let[e,{classFields:r,ignoreDestructuring:s,onlyDeclarations:n,properties:i}]=t.options,o=new RegExp(e,"u"),a=t.sourceCode,l,u=new Set,c=new Set(["CallExpression","NewExpression"]),p=new Set(["FunctionDeclaration","VariableDeclarator"]),h=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function f(S){let A=l.set.get(S.name);return A&&A.defs.length===0&&A.references.some(E=>E.identifier===S)}function d(S){return!o.test(S)}function g(S){let{parent:A}=S;for(;A;){if(A.type==="ObjectPattern")return!0;A=A.parent}return!1}function y(S,A){return(!n||p.has(S.type))&&!c.has(S.type)&&d(A)}function v(S){if(!u.has(S.range.toString())){let A=S.type==="PrivateIdentifier"?"notMatchPrivate":"notMatch";t.report({node:S,messageId:A,data:{name:S.name,pattern:e}}),u.add(S.range.toString())}}return{Program(S){l=a.getScope(S)},Identifier(S){let A=S.name,E=S.parent,k=E.type==="MemberExpression"?E.parent:E;if(!(f(S)||H5.isImportAttributeKey(S)||E.type==="MetaProperty"))if(E.type==="MemberExpression"){if(!i)return;E.object.type==="Identifier"&&E.object.name===A||k.type==="AssignmentExpression"&&k.left.type==="MemberExpression"&&k.left.property.name===S.name?d(A)&&v(S):k.type==="AssignmentExpression"&&k.right.type!=="MemberExpression"&&d(A)&&v(S)}else if(E.type==="Property"&&E.parent.type==="ObjectExpression"&&E.key===S&&!E.computed)i&&d(A)&&v(S);else if(E.type==="Property"||E.type==="AssignmentPattern"){if(E.parent&&E.parent.type==="ObjectPattern"){!s&&E.shorthand&&E.value.left&&d(A)&&v(S);let T=E.key.name===E.value.name;if(!T&&E.key===S)return;E.value.name&&d(A)&&!(T&&s)&&v(S)}if(!i&&!E.computed||s&&g(S))return;E.right!==S&&y(k,A)&&v(S)}else h.has(E.type)?E.local&&E.local.name===S.name&&d(A)&&v(S):E.type==="PropertyDefinition"?r&&d(A)&&v(S):y(k,A)&&v(S)},PrivateIdentifier(S){S.parent.type==="PropertyDefinition"&&!r||d(S.name)&&v(S)}}}}});var $w=B((Rte,Uw)=>{"use strict";var{isCommentToken:J5,isNotOpeningParenToken:X5}=X();Uw.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"implicit-arrow-linebreak",url:"https://eslint.style/rules/implicit-arrow-linebreak"}}]},type:"layout",docs:{description:"Enforce the location of arrow function bodies",recommended:!1,url:"https://eslint.org/docs/latest/rules/implicit-arrow-linebreak"},fixable:"whitespace",schema:[{enum:["beside","below"]}],messages:{expected:"Expected a linebreak before this expression.",unexpected:"Expected no linebreak before this expression."}},create(t){let e=t.sourceCode,r=t.options[0]||"beside";function s(n){if(n.body.type==="BlockStatement")return;let i=e.getTokenBefore(n.body,X5),o=e.getTokenAfter(i);i.loc.end.line===o.loc.start.line&&r==="below"?t.report({node:o,messageId:"expected",fix:a=>a.insertTextBefore(o,`
55
+ `)}):i.loc.end.line!==o.loc.start.line&&r==="beside"&&t.report({node:o,messageId:"unexpected",fix(a){return e.getFirstTokenBetween(i,o,{includeComments:!0,filter:J5})?null:a.replaceTextRange([i.range[1],o.range[0]]," ")}})}return{ArrowFunctionExpression:n=>s(n)}}}});var Ww=B((jte,Vw)=>{"use strict";var Xe=X(),Q5=new Set(["AssignmentExpression","AssignmentPattern","ArrayExpression","ArrayPattern","ArrowFunctionExpression","AwaitExpression","BlockStatement","BinaryExpression","BreakStatement","CallExpression","CatchClause","ChainExpression","ClassBody","ClassDeclaration","ClassExpression","ConditionalExpression","ContinueStatement","DoWhileStatement","DebuggerStatement","EmptyStatement","ExperimentalRestProperty","ExperimentalSpreadProperty","ExpressionStatement","ForStatement","ForInStatement","ForOfStatement","FunctionDeclaration","FunctionExpression","Identifier","IfStatement","Literal","LabeledStatement","LogicalExpression","MemberExpression","MetaProperty","MethodDefinition","NewExpression","ObjectExpression","ObjectPattern","PrivateIdentifier","Program","Property","PropertyDefinition","RestElement","ReturnStatement","SequenceExpression","SpreadElement","StaticBlock","Super","SwitchCase","SwitchStatement","TaggedTemplateExpression","TemplateElement","TemplateLiteral","ThisExpression","ThrowStatement","TryStatement","UnaryExpression","UpdateExpression","VariableDeclaration","VariableDeclarator","WhileStatement","WithStatement","YieldExpression","JSXFragment","JSXOpeningFragment","JSXClosingFragment","JSXIdentifier","JSXNamespacedName","JSXMemberExpression","JSXEmptyExpression","JSXExpressionContainer","JSXElement","JSXClosingElement","JSXOpeningElement","JSXAttribute","JSXSpreadAttribute","JSXText","ExportDefaultDeclaration","ExportNamedDeclaration","ExportAllDeclaration","ExportSpecifier","ImportDeclaration","ImportSpecifier","ImportDefaultSpecifier","ImportNamespaceSpecifier","ImportExpression"]),uh=class{constructor(e){this._values=Array(e+1)}insert(e,r){this._values[e]=r}findLastNotAfter(e){let r=this._values;for(let s=e;s>=0;s--){let n=r[s];if(n)return n}}deleteRange(e,r){this._values.fill(void 0,e,r)}},ch=class{constructor(e){this.sourceCode=e,this.firstTokensByLineNumber=new Map;let r=e.tokensAndComments;for(let s=0;s<r.length;s++){let n=r[s];this.firstTokensByLineNumber.has(n.loc.start.line)||this.firstTokensByLineNumber.set(n.loc.start.line,n),!this.firstTokensByLineNumber.has(n.loc.end.line)&&e.text.slice(n.range[1]-n.loc.end.column,n.range[1]).trim()&&this.firstTokensByLineNumber.set(n.loc.end.line,n)}}getFirstTokenOfLine(e){return this.firstTokensByLineNumber.get(e.loc.start.line)}isFirstTokenOfLine(e){return this.getFirstTokenOfLine(e)===e}getTokenIndent(e){return this.sourceCode.text.slice(e.range[0]-e.loc.start.column,e.range[0])}},ph=class{constructor(e,r,s,n){this._tokenInfo=e,this._indentSize=r,this._indentType=s,this._indexMap=new uh(n),this._indexMap.insert(0,{offset:0,from:null,force:!1}),this._lockedFirstTokens=new WeakMap,this._desiredIndentCache=new WeakMap,this._ignoredTokens=new WeakSet}_getOffsetDescriptor(e){return this._indexMap.findLastNotAfter(e.range[0])}matchOffsetOf(e,r){this._lockedFirstTokens.set(r,e)}setDesiredOffset(e,r,s){return this.setDesiredOffsets(e.range,r,s)}setDesiredOffsets(e,r,s,n){let i={offset:s,from:r,force:n},o=this._indexMap.findLastNotAfter(e[1]),a=r&&r.range[0]>=e[0]&&r.range[1]<=e[1],l=a&&this._getOffsetDescriptor(r);this._indexMap.deleteRange(e[0]+1,e[1]),this._indexMap.insert(e[0],i),a&&(this._indexMap.insert(r.range[0],l),this._indexMap.insert(r.range[1],i)),this._indexMap.insert(e[1],o)}getDesiredIndent(e){if(!this._desiredIndentCache.has(e))if(this._ignoredTokens.has(e))this._desiredIndentCache.set(e,this._tokenInfo.getTokenIndent(e));else if(this._lockedFirstTokens.has(e)){let r=this._lockedFirstTokens.get(e);this._desiredIndentCache.set(e,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(r))+this._indentType.repeat(r.loc.start.column-this._tokenInfo.getFirstTokenOfLine(r).loc.start.column))}else{let r=this._getOffsetDescriptor(e),s=r.from&&r.from.loc.start.line===e.loc.start.line&&!/^\s*?\n/u.test(e.value)&&!r.force?0:r.offset*this._indentSize;this._desiredIndentCache.set(e,(r.from?this.getDesiredIndent(r.from):"")+this._indentType.repeat(s))}return this._desiredIndentCache.get(e)}ignoreToken(e){this._tokenInfo.isFirstTokenOfLine(e)&&this._ignoredTokens.add(e)}getFirstDependency(e){return this._getOffsetDescriptor(e).from}},qr={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};Vw.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"indent",url:"https://eslint.style/rules/indent"}}]},type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent"},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0,default:0},VariableDeclarator:{oneOf:[qr,{type:"object",properties:{var:qr,let:qr,const:qr},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:qr,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:qr,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:qr},additionalProperties:!1},ArrayExpression:qr,ObjectExpression:qr,ImportDeclaration:qr,flatTernaryExpressions:{type:"boolean",default:!1},offsetTernaryExpressions:{type:"boolean",default:!1},ignoredNodes:{type:"array",items:{type:"string",not:{pattern:":exit$"}}},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{wrongIndentation:"Expected indentation of {{expected}} but found {{actual}}."}},create(t){let n="space",i=4,o={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:1,FunctionDeclaration:{parameters:1,body:1},FunctionExpression:{parameters:1,body:1},StaticBlock:{body:1},CallExpression:{arguments:1},MemberExpression:1,ArrayExpression:1,ObjectExpression:1,ImportDeclaration:1,flatTernaryExpressions:!1,ignoredNodes:[],ignoreComments:!1};t.options.length&&(t.options[0]==="tab"?(i=1,n="tab"):(i=t.options[0],n="space"),t.options[1]&&(Object.assign(o,t.options[1]),(typeof o.VariableDeclarator=="number"||o.VariableDeclarator==="first")&&(o.VariableDeclarator={var:o.VariableDeclarator,let:o.VariableDeclarator,const:o.VariableDeclarator})));let a=t.sourceCode,l=new ch(a),u=new ph(l,i,n==="space"?" ":" ",a.text.length),c=new WeakSet;function p(C,P,F){let I=`${C} ${n}${C===1?"":"s"}`,U=`space${P===1?"":"s"}`,z=`tab${F===1?"":"s"}`,W;return P>0?W=n==="space"?P:`${P} ${U}`:F>0?W=n==="tab"?F:`${F} ${z}`:W="0",{expected:I,actual:W}}function h(C,P){let F=Array.from(l.getTokenIndent(C)),I=F.filter(z=>z===" ").length,U=F.filter(z=>z===" ").length;t.report({node:C,messageId:"wrongIndentation",data:p(P.length,I,U),loc:{start:{line:C.loc.start.line,column:0},end:{line:C.loc.start.line,column:C.loc.start.column}},fix(z){let W=[C.range[0]-C.loc.start.column,C.range[0]],re=P;return z.replaceTextRange(W,re)}})}function f(C,P){let F=l.getTokenIndent(C);return F===P||F.includes(" ")&&F.includes(" ")}function d(C){if(!C.parent||C.parent.type!=="CallExpression"||C.parent.callee!==C)return!1;let P=C.parent&&C.parent.parent;for(;P.type==="UnaryExpression"&&["!","~","+","-"].includes(P.operator)||P.type==="AssignmentExpression"||P.type==="LogicalExpression"||P.type==="SequenceExpression"||P.type==="VariableDeclarator";)P=P.parent;return(P.type==="ExpressionStatement"||P.type==="VariableDeclaration")&&P.parent.type==="Program"}function g(C){let F=C.match(/\s*$/u)[0].match(Xe.createGlobalLinebreakMatcher());return F===null?0:F.length}function y(C,P,F,I){function U(z){let W=a.getTokenBefore(z);for(;Xe.isOpeningParenToken(W)&&W!==P;)W=a.getTokenBefore(W);return a.getTokenAfter(W)}u.setDesiredOffsets([P.range[1],F.range[0]],P,typeof I=="number"?I:1),u.setDesiredOffset(F,P,0),!(I==="first"&&C.length&&!C[0])&&C.forEach((z,W)=>{if(z&&(I==="off"&&u.ignoreToken(U(z)),W!==0))if(I==="first"&&l.isFirstTokenOfLine(U(z)))u.matchOffsetOf(U(C[0]),U(z));else{let re=C[W-1],ue=re&&U(re),be=re&&a.getLastToken(re);re&&be.loc.end.line-g(be.value)>P.loc.end.line&&u.setDesiredOffsets([re.range[1],z.range[1]],ue,0)}})}function v(C){if(C.type!=="BlockStatement"){let P=a.getTokenBefore(C,Xe.isNotOpeningParenToken),F=a.getFirstToken(C),I=a.getLastToken(C);for(;Xe.isOpeningParenToken(a.getTokenBefore(F))&&Xe.isClosingParenToken(a.getTokenAfter(I));)F=a.getTokenBefore(F),I=a.getTokenAfter(I);u.setDesiredOffsets([F.range[0],I.range[1]],P,1)}}function S(C){let P;C.arguments.length?P=a.getFirstTokenBetween(C.callee,C.arguments[0],Xe.isOpeningParenToken):P=a.getLastToken(C,1);let F=a.getLastToken(C);if(c.add(P),c.add(F),C.optional){let z=a.getTokenAfter(C.callee,Xe.isQuestionDotToken),W=a.getTokensBetween(C.callee,z,{filter:Xe.isClosingParenToken}).length,re=W?a.getTokenBefore(C.callee,{skip:W-1}):a.getFirstToken(C.callee),ue=a.getTokenBefore(z),be=ue.loc.end.line===P.loc.start.line?ue:re;u.setDesiredOffset(z,be,1)}let I=C.callee.type==="TaggedTemplateExpression"?a.getFirstToken(C.callee.quasi):P,U=a.getTokenBefore(I);u.setDesiredOffset(P,U,0),y(C.arguments,P,F,o.CallExpression.arguments)}function A(C){let P=[],F=[];for(let I=0;I<C.length;I++){let U=C[I];Xe.isOpeningParenToken(U)?P.push(U):Xe.isClosingParenToken(U)&&F.push({left:P.pop(),right:U})}for(let I=F.length-1;I>=0;I--){let U=F[I].left,z=F[I].right;if(!c.has(U)&&!c.has(z)){let W=new Set(a.getTokensBetween(U,z));W.forEach(re=>{W.has(u.getFirstDependency(re))||u.setDesiredOffset(re,U,1)})}u.setDesiredOffset(z,U,0)}}function E(C){let P=new Set(a.getTokens(C,{includeComments:!0}));P.forEach(F=>{if(!P.has(u.getFirstDependency(F))){let I=l.getFirstTokenOfLine(F);F===I?u.ignoreToken(F):u.setDesiredOffset(F,I,0)}})}function k(C,P){let F=P;for(;F.parent&&!F.parent.type.endsWith("Statement")&&!F.parent.type.endsWith("Declaration");)F=F.parent;return F=F.parent,!F||F.loc.start.line===C.loc.start.line}function T(C,P){let F=C.loc.end.line,I=P.loc.start.line;if(F===I||F===I-1)return!1;for(let U=F+1;U<I;++U)if(!l.firstTokensByLineNumber.has(U))return!0;return!1}let w=new Set,R={"ArrayExpression, ArrayPattern"(C){let P=a.getFirstToken(C),F=a.getTokenAfter([...C.elements].reverse().find(I=>I)||P,Xe.isClosingBracketToken);y(C.elements,P,F,o.ArrayExpression)},"ObjectExpression, ObjectPattern"(C){let P=a.getFirstToken(C),F=a.getTokenAfter(C.properties.length?C.properties.at(-1):P,Xe.isClosingBraceToken);y(C.properties,P,F,o.ObjectExpression)},ArrowFunctionExpression(C){let P=a.getFirstToken(C,{skip:C.async?1:0});if(Xe.isOpeningParenToken(P)){let F=P,I=a.getTokenBefore(C.body,Xe.isClosingParenToken);c.add(F),c.add(I),y(C.params,F,I,o.FunctionExpression.parameters)}v(C.body)},AssignmentExpression(C){let P=a.getFirstTokenBetween(C.left,C.right,F=>F.value===C.operator);u.setDesiredOffsets([P.range[0],C.range[1]],a.getLastToken(C.left),1),u.ignoreToken(P),u.ignoreToken(a.getTokenAfter(P))},"BinaryExpression, LogicalExpression"(C){let P=a.getFirstTokenBetween(C.left,C.right,I=>I.value===C.operator),F=a.getTokenAfter(P);u.ignoreToken(P),u.ignoreToken(F),u.setDesiredOffset(F,P,0)},"BlockStatement, ClassBody"(C){let P;C.parent&&d(C.parent)?P=o.outerIIFEBody:C.parent&&(C.parent.type==="FunctionExpression"||C.parent.type==="ArrowFunctionExpression")?P=o.FunctionExpression.body:C.parent&&C.parent.type==="FunctionDeclaration"?P=o.FunctionDeclaration.body:P=1,Xe.STATEMENT_LIST_PARENTS.has(C.parent.type)||u.setDesiredOffset(a.getFirstToken(C),a.getFirstToken(C.parent),0),y(C.body,a.getFirstToken(C),a.getLastToken(C),P)},CallExpression:S,"ClassDeclaration[superClass], ClassExpression[superClass]"(C){let P=a.getFirstToken(C),F=a.getTokenBefore(C.superClass,Xe.isNotOpeningParenToken);u.setDesiredOffsets([F.range[0],C.body.range[0]],P,1)},ConditionalExpression(C){let P=a.getFirstToken(C);if(!o.flatTernaryExpressions||!Xe.isTokenOnSameLine(C.test,C.consequent)||k(P,C)){let F=a.getFirstTokenBetween(C.test,C.consequent,re=>re.type==="Punctuator"&&re.value==="?"),I=a.getFirstTokenBetween(C.consequent,C.alternate,re=>re.type==="Punctuator"&&re.value===":"),U=a.getTokenAfter(F),z=a.getTokenBefore(I),W=a.getTokenAfter(I);u.setDesiredOffset(F,P,1),u.setDesiredOffset(I,P,1),u.setDesiredOffset(U,P,U.type==="Punctuator"&&o.offsetTernaryExpressions?2:1),z.loc.end.line===W.loc.start.line?u.setDesiredOffset(W,U,0):u.setDesiredOffset(W,P,W.type==="Punctuator"&&o.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":C=>v(C.body),ExportNamedDeclaration(C){if(C.declaration===null){let P=a.getLastToken(C,Xe.isClosingBraceToken);y(C.specifiers,a.getFirstToken(C,{skip:1}),P,1),C.source&&u.setDesiredOffsets([P.range[1],C.range[1]],a.getFirstToken(C),1)}},ForStatement(C){let P=a.getFirstToken(C,1);C.init&&u.setDesiredOffsets(C.init.range,P,1),C.test&&u.setDesiredOffsets(C.test.range,P,1),C.update&&u.setDesiredOffsets(C.update.range,P,1),v(C.body)},"FunctionDeclaration, FunctionExpression"(C){let P=a.getTokenBefore(C.body),F=a.getTokenBefore(C.params.length?C.params[0]:P);c.add(F),c.add(P),y(C.params,F,P,o[C.type].parameters)},IfStatement(C){v(C.consequent),C.alternate&&v(C.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(C){let P;C.type==="IfStatement"?(P=[C.consequent],C.alternate&&P.push(C.alternate)):P=[C.body];for(let F of P){let I=a.getLastToken(F);if(Xe.isSemicolonToken(I)){let U=a.getTokenBefore(I),z=a.getTokenAfter(I);!Xe.isTokenOnSameLine(U,I)&&z&&Xe.isTokenOnSameLine(I,z)&&u.setDesiredOffset(I,a.getFirstToken(C),0)}}},ImportDeclaration(C){if(C.specifiers.some(U=>U.type==="ImportSpecifier")){let U=a.getFirstToken(C,Xe.isOpeningBraceToken),z=a.getLastToken(C,Xe.isClosingBraceToken);y(C.specifiers.filter(W=>W.type==="ImportSpecifier"),U,z,o.ImportDeclaration)}let P=a.getLastToken(C,U=>U.type==="Identifier"&&U.value==="from"),F=a.getLastToken(C,U=>U.type==="String"),I=a.getLastToken(C,U=>U.type==="Punctuator"&&U.value===";");if(P){let U=I&&I.range[1]===F.range[1]?C.range[1]:F.range[1];u.setDesiredOffsets([P.range[0],U],a.getFirstToken(C),1)}},ImportExpression(C){let P=a.getFirstToken(C,1),F=a.getLastToken(C);c.add(P),c.add(F),u.setDesiredOffset(P,a.getTokenBefore(P),0),y([C.source],P,F,o.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(C){let P=C.type==="MetaProperty"?C.meta:C.object,F=a.getFirstTokenBetween(P,C.property,Xe.isNotClosingParenToken),I=a.getTokenAfter(F),U=a.getTokensBetween(P,C.property,{filter:Xe.isClosingParenToken}).length,z=U?a.getTokenBefore(P,{skip:U-1}):a.getFirstToken(P),W=a.getTokenBefore(F),re=C.computed?F:I;C.computed&&(u.setDesiredOffset(a.getLastToken(C),F,0),u.setDesiredOffsets(C.property.range,F,1));let ue=W.loc.end.line===re.loc.start.line?W:z;typeof o.MemberExpression=="number"?(u.setDesiredOffset(F,ue,o.MemberExpression),u.setDesiredOffset(I,C.computed?F:ue,o.MemberExpression)):(u.ignoreToken(F),u.ignoreToken(I),u.setDesiredOffset(F,ue,0),u.setDesiredOffset(I,F,0))},NewExpression(C){(C.arguments.length>0||Xe.isClosingParenToken(a.getLastToken(C))&&Xe.isOpeningParenToken(a.getLastToken(C,1)))&&S(C)},Property(C){if(!C.shorthand&&!C.method&&C.kind==="init"){let P=a.getFirstTokenBetween(C.key,C.value,Xe.isColonToken);u.ignoreToken(a.getTokenAfter(P))}},PropertyDefinition(C){let P=a.getFirstToken(C),F=a.getLastToken(C),I;if(C.computed){let U=a.getTokenBefore(C.key,Xe.isOpeningBracketToken),z=I=a.getTokenAfter(C.key,Xe.isClosingBracketToken),W=[U.range[1],z.range[0]];U!==P&&u.setDesiredOffset(U,P,0),u.setDesiredOffsets(W,U,1),u.setDesiredOffset(z,U,0)}else{let U=I=a.getFirstToken(C.key);U!==P&&u.setDesiredOffset(U,P,1)}if(C.value){let U=a.getTokenBefore(C.value,Xe.isEqToken),z=a.getTokenAfter(U);u.setDesiredOffset(U,I,1),u.setDesiredOffset(z,U,1),Xe.isSemicolonToken(F)&&u.setDesiredOffset(F,U,1)}else Xe.isSemicolonToken(F)&&u.setDesiredOffset(F,I,1)},StaticBlock(C){let P=a.getFirstToken(C,{skip:1}),F=a.getLastToken(C);y(C.body,P,F,o.StaticBlock.body)},SwitchStatement(C){let P=a.getTokenAfter(C.discriminant,Xe.isOpeningBraceToken),F=a.getLastToken(C);u.setDesiredOffsets([P.range[1],F.range[0]],P,o.SwitchCase),C.cases.length&&a.getTokensBetween(C.cases.at(-1),F,{includeComments:!0,filter:Xe.isCommentToken}).forEach(I=>u.ignoreToken(I))},SwitchCase(C){if(!(C.consequent.length===1&&C.consequent[0].type==="BlockStatement")){let P=a.getFirstToken(C),F=a.getTokenAfter(C);u.setDesiredOffsets([P.range[1],F.range[0]],P,1)}},TemplateLiteral(C){C.expressions.forEach((P,F)=>{let I=C.quasis[F],U=C.quasis[F+1],z=I.loc.start.line===I.loc.end.line?a.getFirstToken(I):null;u.setDesiredOffsets([I.range[1],U.range[0]],z,1),u.setDesiredOffset(a.getFirstToken(U),z,0)})},VariableDeclaration(C){let P=Object.hasOwn(o.VariableDeclarator,C.kind)?o.VariableDeclarator[C.kind]:1,F=a.getFirstToken(C),I=a.getLastToken(C);if(o.VariableDeclarator[C.kind]==="first"){if(C.declarations.length>1){y(C.declarations,F,I,"first");return}P=1}C.declarations.at(-1).loc.start.line>C.loc.start.line?u.setDesiredOffsets(C.range,F,P,!0):u.setDesiredOffsets(C.range,F,P),Xe.isSemicolonToken(I)&&u.ignoreToken(I)},VariableDeclarator(C){if(C.init){let P=a.getTokenBefore(C.init,Xe.isNotOpeningParenToken),F=a.getTokenAfter(P);u.ignoreToken(P),u.ignoreToken(F),u.setDesiredOffsets([F.range[0],C.range[1]],P,1),u.setDesiredOffset(P,a.getLastToken(C.id),0)}},"JSXAttribute[value]"(C){let P=a.getFirstTokenBetween(C.name,C.value,F=>F.type==="Punctuator"&&F.value==="=");u.setDesiredOffsets([P.range[0],C.value.range[1]],a.getFirstToken(C.name),1)},JSXElement(C){C.closingElement&&y(C.children,a.getFirstToken(C.openingElement),a.getFirstToken(C.closingElement),1)},JSXOpeningElement(C){let P=a.getFirstToken(C),F;C.selfClosing?(F=a.getLastToken(C,{skip:1}),u.setDesiredOffset(a.getLastToken(C),F,0)):F=a.getLastToken(C),u.setDesiredOffsets(C.name.range,a.getFirstToken(C)),y(C.attributes,P,F,1)},JSXClosingElement(C){let P=a.getFirstToken(C);u.setDesiredOffsets(C.name.range,P,1)},JSXFragment(C){let P=a.getFirstToken(C.openingFragment),F=a.getFirstToken(C.closingFragment);y(C.children,P,F,1)},JSXOpeningFragment(C){let P=a.getFirstToken(C),F=a.getLastToken(C);u.setDesiredOffsets(C.range,P,1),u.matchOffsetOf(P,F)},JSXClosingFragment(C){let P=a.getFirstToken(C),F=a.getLastToken(C,{skip:1}),I=a.getLastToken(C),U=Xe.isTokenOnSameLine(F,I)?F:I;u.setDesiredOffsets(C.range,P,1),u.matchOffsetOf(P,U)},JSXExpressionContainer(C){let P=a.getFirstToken(C),F=a.getLastToken(C);u.setDesiredOffsets([P.range[1],F.range[0]],P,1)},JSXSpreadAttribute(C){let P=a.getFirstToken(C),F=a.getLastToken(C);u.setDesiredOffsets([P.range[1],F.range[0]],P,1)},"*"(C){let P=a.getFirstToken(C);P&&!w.has(P)&&u.setDesiredOffsets(C.range,P,0)}},j=[],$={};for(let[C,P]of Object.entries(R))$[C]=F=>j.push({listener:P,node:F});let M=new Set;function N(C){M.add(C),w.add(a.getFirstToken(C))}let b=o.ignoredNodes.reduce((C,P)=>Object.assign(C,{[P]:N}),{});return Object.assign($,b,{"*:exit"(C){Q5.has(C.type)||N(C)},"Program:exit"(){o.ignoreComments&&a.getAllComments().forEach(P=>u.ignoreToken(P));for(let P=0;P<j.length;P++){let F=j[P];M.has(F.node)||F.listener(F.node)}M.forEach(E),A(a.ast.tokens);let C=new WeakMap;for(let P=0;P<a.ast.comments.length;P++){let F=a.ast.comments[P],I=a.getTokenBefore(F,{includeComments:!0}),U=C.has(I)?C.get(I):I;C.set(F,U)}for(let P=1;P<a.lines.length+1;P++){if(!l.firstTokensByLineNumber.has(P))continue;let F=l.firstTokensByLineNumber.get(P);if(F.loc.start.line===P){if(Xe.isCommentToken(F)){let I=C.get(F),U=I?a.getTokenAfter(I):a.ast.tokens[0],z=I&&!T(I,F),W=U&&!T(F,U);if(U&&Xe.isSemicolonToken(U)&&!Xe.isTokenOnSameLine(F,U)&&u.setDesiredOffset(F,U,0),z&&f(F,u.getDesiredIndent(I))||W&&f(F,u.getDesiredIndent(U)))continue}f(F,u.getDesiredIndent(F))||h(F,u.getDesiredIndent(F))}}}})}}});var Gw=B((Mte,zw)=>{"use strict";var Y5=X();zw.exports={meta:{type:"layout",docs:{description:"Enforce consistent indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/indent-legacy"},deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"4.0.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"indent",url:"https://eslint.style/rules/indent"}}]},fixable:"whitespace",schema:[{oneOf:[{enum:["tab"]},{type:"integer",minimum:0}]},{type:"object",properties:{SwitchCase:{type:"integer",minimum:0},VariableDeclarator:{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{var:{type:"integer",minimum:0},let:{type:"integer",minimum:0},const:{type:"integer",minimum:0}}}]},outerIIFEBody:{type:"integer",minimum:0},MemberExpression:{type:"integer",minimum:0},FunctionDeclaration:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},FunctionExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},body:{type:"integer",minimum:0}}},CallExpression:{type:"object",properties:{parameters:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}}},ArrayExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]},ObjectExpression:{oneOf:[{type:"integer",minimum:0},{enum:["first"]}]}},additionalProperties:!1}],messages:{expected:"Expected indentation of {{expected}} but found {{actual}}."}},create(t){let n="space",i=4,o={SwitchCase:0,VariableDeclarator:{var:1,let:1,const:1},outerIIFEBody:null,FunctionDeclaration:{parameters:null,body:1},FunctionExpression:{parameters:null,body:1},CallExpression:{arguments:null},ArrayExpression:1,ObjectExpression:1},a=t.sourceCode;if(t.options.length&&(t.options[0]==="tab"?(i=1,n="tab"):typeof t.options[0]=="number"&&(i=t.options[0],n="space"),t.options[1])){let I=t.options[1];o.SwitchCase=I.SwitchCase||0;let U=I.VariableDeclarator;typeof U=="number"?o.VariableDeclarator={var:U,let:U,const:U}:typeof U=="object"&&Object.assign(o.VariableDeclarator,U),typeof I.outerIIFEBody=="number"&&(o.outerIIFEBody=I.outerIIFEBody),typeof I.MemberExpression=="number"&&(o.MemberExpression=I.MemberExpression),typeof I.FunctionDeclaration=="object"&&Object.assign(o.FunctionDeclaration,I.FunctionDeclaration),typeof I.FunctionExpression=="object"&&Object.assign(o.FunctionExpression,I.FunctionExpression),typeof I.CallExpression=="object"&&Object.assign(o.CallExpression,I.CallExpression),(typeof I.ArrayExpression=="number"||typeof I.ArrayExpression=="string")&&(o.ArrayExpression=I.ArrayExpression),(typeof I.ObjectExpression=="number"||typeof I.ObjectExpression=="string")&&(o.ObjectExpression=I.ObjectExpression)}let l={};function u(I,U,z){let W=`${I} ${n}${I===1?"":"s"}`,re=`space${U===1?"":"s"}`,ue=`tab${z===1?"":"s"}`,be;return U>0&&z>0?be=`${U} ${re} and ${z} ${ue}`:U>0?be=n==="space"?U:`${U} ${re}`:z>0?be=n==="tab"?z:`${z} ${ue}`:be="0",{expected:W,actual:be}}function c(I,U,z,W,re,ue){if(z&&W)return;let be=(n==="space"?" ":" ").repeat(U),te=ue?[I.range[1]-I.loc.end.column,I.range[1]-I.loc.end.column+z+W]:[I.range[0]-I.loc.start.column,I.range[0]-I.loc.start.column+z+W];t.report({node:I,loc:re,messageId:"expected",data:u(U,z,W),fix:pe=>pe.replaceTextRange(te,be)})}function p(I,U){let z=U?a.getLastToken(I):a.getFirstToken(I),W=a.getText(z,z.loc.start.column).split(""),re=W.slice(0,W.findIndex(te=>te!==" "&&te!==" ")),ue=re.filter(te=>te===" ").length,be=re.filter(te=>te===" ").length;return{space:ue,tab:be,goodChar:n==="space"?ue:be,badChar:n==="space"?be:ue}}function h(I,U){let z=U===!0?a.getLastToken(I,1):a.getTokenBefore(I),W=U===!0?I.loc.end.line:I.loc.start.line,re=z?z.loc.end.line:-1;return W!==re}function f(I,U){let z=p(I,!1);if(I.type!=="ArrayExpression"&&I.type!=="ObjectExpression"&&(z.goodChar!==U||z.badChar!==0)&&h(I)&&c(I,U,z.space,z.tab),I.type==="IfStatement"&&I.alternate){let W=a.getTokenBefore(I.alternate);f(W,U),h(I.alternate)||f(I.alternate,U)}if(I.type==="TryStatement"&&I.handler){let W=a.getFirstToken(I.handler);f(W,U)}if(I.type==="TryStatement"&&I.finalizer){let W=a.getTokenBefore(I.finalizer);f(W,U)}if(I.type==="DoWhileStatement"){let W=a.getTokenAfter(I.body);f(W,U)}}function d(I,U){I.forEach(z=>f(z,U))}function g(I,U){let z=a.getLastToken(I),W=p(z,!0);(W.goodChar!==U||W.badChar!==0)&&h(I,!0)&&c(I,U,W.space,W.tab,{line:z.loc.start.line,column:z.loc.start.column},!0)}function y(I,U){let z=a.getLastToken(I,Y5.isClosingParenToken);if(a.getText(z,z.loc.start.column).slice(0,-1).trim())return;let re=p(z,!0);re.goodChar!==U&&c(I,U,re.space,re.tab,{line:z.loc.start.line,column:z.loc.start.column},!0)}function v(I,U){let z=p(I,!1);(z.goodChar!==U||z.badChar!==0)&&h(I)&&c(I,U,z.space,z.tab,{line:I.loc.start.line,column:I.loc.start.column})}function S(I,U,z){let W=I.parent,re=new Set(z||["Program"]);for(;W.type!==U&&!re.has(W.type)&&W.type!=="Program";)W=W.parent;return W.type===U?W:null}function A(I){return S(I,"VariableDeclarator")}function E(I,U){return U&&U.parent.loc.start.line===I.loc.start.line&&U.parent.declarations.length>1}function k(I){let U=I.parent;return U.arguments.length>=2&&U.arguments[1]===I?U.arguments[0].loc.end.line>U.arguments[0].loc.start.line:!1}function T(I){let U=I.parent,z=U.parent;if(U.type!=="CallExpression"||U.callee!==I)return!1;for(;z.type==="UnaryExpression"&&(z.operator==="!"||z.operator==="~"||z.operator==="+"||z.operator==="-")||z.type==="AssignmentExpression"||z.type==="LogicalExpression"||z.type==="SequenceExpression"||z.type==="VariableDeclarator";)z=z.parent;return(z.type==="ExpressionStatement"||z.type==="VariableDeclaration")&&z.parent&&z.parent.type==="Program"}function w(I){let U=I.parent,z;if(U.parent&&(U.parent.type==="Property"||U.parent.type==="ArrayExpression")?z=p(U,!1).goodChar:z=p(U).goodChar,U.parent.type==="CallExpression"){let ue=U.parent;U.type!=="FunctionExpression"&&U.type!=="ArrowFunctionExpression"?ue&&ue.loc.start.line<I.loc.start.line&&(z=p(ue).goodChar):k(U)&&ue.callee.loc.start.line===ue.callee.loc.end.line&&!h(U)&&(z=p(ue).goodChar)}let W=i;o.outerIIFEBody!==null&&T(U)?W=o.outerIIFEBody*i:U.type==="FunctionExpression"?W=o.FunctionExpression.body*i:U.type==="FunctionDeclaration"&&(W=o.FunctionDeclaration.body*i),z+=W;let re=A(I);re&&E(I,re)&&(z+=i*o.VariableDeclarator[re.parent.kind]),I.body.length>0&&d(I.body,z),g(I,z-W)}function R(I){let U=a.getLastToken(I),z=I.loc.start.line,W=U.loc.end.line;return z===W}function j(I){if(R(I))return;let U=I.type==="ArrayExpression"?I.elements:I.properties;U=U.filter(ue=>ue!==null);let z,W,re=A(I);if(h(I)){let ue=I.parent;if(z=p(ue).goodChar,(!re||re.loc.start.line!==I.loc.start.line)&&(ue.type!=="VariableDeclarator"||re===re.parent.declarations[0]))if(ue.type==="VariableDeclarator"&&re.loc.start.line===ue.loc.start.line)z+=i*o.VariableDeclarator[re.parent.kind];else if(ue.type==="ObjectExpression"||ue.type==="ArrayExpression"){let be=I.parent.type==="ObjectExpression"?I.parent.properties:I.parent.elements;be[0]&&be[0].loc.start.line===ue.loc.start.line&&be[0].loc.end.line!==ue.loc.start.line||(typeof o[ue.type]=="number"?z+=o[ue.type]*i:z=be[0].loc.start.column)}else ue.type==="CallExpression"||ue.type==="NewExpression"?typeof o.CallExpression.arguments=="number"?z+=o.CallExpression.arguments*i:o.CallExpression.arguments==="first"?ue.arguments.includes(I)&&(z=ue.arguments[0].loc.start.column):z+=i:(ue.type==="LogicalExpression"||ue.type==="ArrowFunctionExpression")&&(z+=i);v(I,z)}else z=p(I).goodChar;o[I.type]==="first"?W=U.length?U[0].loc.start.column:0:W=z+i*o[I.type],E(I,re)&&(W+=i*o.VariableDeclarator[re.parent.kind]),d(U,W),!(U.length>0&&U.at(-1).loc.end.line===I.loc.end.line)&&g(I,z+(E(I,re)?o.VariableDeclarator[re.parent.kind]*i:0))}function $(I){return I.type==="BlockStatement"||I.type==="ClassBody"||I.body&&I.body.type==="BlockStatement"||I.consequent&&I.consequent.type==="BlockStatement"}function M(I){if(R(I))return;if(I.parent&&(I.parent.type==="FunctionExpression"||I.parent.type==="FunctionDeclaration"||I.parent.type==="ArrowFunctionExpression")){w(I);return}let U,z,W=["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"];I.parent&&W.includes(I.parent.type)&&$(I)?U=p(I.parent).goodChar:I.parent&&I.parent.type==="CatchClause"?U=p(I.parent.parent).goodChar:U=p(I).goodChar,I.type==="IfStatement"&&I.consequent.type!=="BlockStatement"?z=[I.consequent]:Array.isArray(I.body)?z=I.body:z=[I.body],z.length>0&&d(z,U+i),I.type==="BlockStatement"&&g(I,U)}function N(I){return I.declarations.reduce((U,z)=>{let W=U.at(-1);return(z.loc.start.line!==I.loc.start.line&&!W||W&&W.loc.start.line!==z.loc.start.line)&&U.push(z),U},[])}function b(I){let U=N(I),z=p(I).goodChar,W=U.at(-1),re=z+i*o.VariableDeclarator[I.kind];if(d(U,re),a.getLastToken(I).loc.end.line<=W.loc.end.line)return;let ue=a.getTokenBefore(W);ue.value===","?g(I,p(ue).goodChar):g(I,re-i)}function C(I){I.body.type!=="BlockStatement"&&M(I)}function P(I,U){let z=I.type==="SwitchStatement"?I:I.parent,W=typeof U>"u"?p(z).goodChar:U,re;return l[z.loc.start.line]?l[z.loc.start.line]:(z.cases.length>0&&o.SwitchCase===0?re=W:re=W+i*o.SwitchCase,l[z.loc.start.line]=re,re)}function F(I){let U=/^return\s*\(\s*\)/u,z=a.getText(I).replace(a.getText(I.argument),"");return U.test(z)}return{Program(I){I.body.length>0&&d(I.body,p(I).goodChar)},ClassBody:M,BlockStatement:M,WhileStatement:C,ForStatement:C,ForInStatement:C,ForOfStatement:C,DoWhileStatement:C,IfStatement(I){I.consequent.type!=="BlockStatement"&&I.consequent.loc.start.line>I.loc.start.line&&M(I)},VariableDeclaration(I){I.declarations.at(-1).loc.start.line>I.declarations[0].loc.start.line&&b(I)},ObjectExpression(I){j(I)},ArrayExpression(I){j(I)},MemberExpression(I){if(typeof o.MemberExpression>"u"||R(I)||S(I,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||S(I,"AssignmentExpression",["FunctionExpression"]))return;let U=p(I).goodChar+i*o.MemberExpression,z=[I.property],W=a.getTokenBefore(I.property);W.type==="Punctuator"&&W.value==="."&&z.push(W),d(z,U)},SwitchStatement(I){let U=p(I).goodChar,z=P(I,U);d(I.cases,z),g(I,U)},SwitchCase(I){if(R(I))return;let U=P(I);d(I.consequent,U+i)},FunctionDeclaration(I){R(I)||(o.FunctionDeclaration.parameters==="first"&&I.params.length?d(I.params.slice(1),I.params[0].loc.start.column):o.FunctionDeclaration.parameters!==null&&d(I.params,p(I).goodChar+i*o.FunctionDeclaration.parameters))},FunctionExpression(I){R(I)||(o.FunctionExpression.parameters==="first"&&I.params.length?d(I.params.slice(1),I.params[0].loc.start.column):o.FunctionExpression.parameters!==null&&d(I.params,p(I).goodChar+i*o.FunctionExpression.parameters))},ReturnStatement(I){if(R(I))return;let U=p(I).goodChar;F(I)?y(I,U):f(I,U)},CallExpression(I){R(I)||(o.CallExpression.arguments==="first"&&I.arguments.length?d(I.arguments.slice(1),I.arguments[0].loc.start.column):o.CallExpression.arguments!==null&&d(I.arguments,p(I).goodChar+i*o.CallExpression.arguments))}}}}});var Jw=B((qte,Hw)=>{"use strict";var Z5=new Set(["const","using","await using"]);function Kw(t){return t.type==="ForInStatement"||t.type==="ForOfStatement"||t.type==="ForStatement"}function e4(t){let e=t.parent,r=e.parent;return Kw(r)?r.type==="ForStatement"?r.init===e:r.left===e:!!t.init}Hw.exports={meta:{type:"suggestion",docs:{description:"Require or disallow initialization in variable declarations",dialects:["JavaScript","TypeScript"],recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/init-declarations"},schema:{anyOf:[{type:"array",items:[{enum:["always"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["never"]},{type:"object",properties:{ignoreForLoopInit:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},defaultOptions:["always"],messages:{initialized:"Variable '{{idName}}' should be initialized on declaration.",notInitialized:"Variable '{{idName}}' should not be initialized on declaration."}},create(t){let e=t.options[0],r=t.options[1]||{},s=!1;return{TSModuleDeclaration(n){n.declare&&(s=!0)},"TSModuleDeclaration:exit"(n){n.declare&&(s=!1)},"VariableDeclaration:exit"(n){let i=n.kind,o=n.declarations;if(!(n.declare||s))for(let a=0;a<o.length;++a){let l=o[a],u=l.id,c=e4(l),p=r.ignoreForLoopInit&&Kw(n.parent),h="";e==="always"&&!c?h="initialized":e==="never"&&!Z5.has(i)&&c&&!p&&(h="notInitialized"),u.type==="Identifier"&&h&&t.report({node:l,messageId:h,data:{idName:u.name}})}}}}}});var Yw=B((Ute,Qw)=>{"use strict";var Xw=X(),t4={"prefer-double":{quote:'"',description:"singlequote",convert(t){return t.replace(/'/gu,'"')}},"prefer-single":{quote:"'",description:"doublequote",convert(t){return t.replace(/"/gu,"'")}}};Qw.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"jsx-quotes",url:"https://eslint.style/rules/jsx-quotes"}}]},type:"layout",docs:{description:"Enforce the consistent use of either double or single quotes in JSX attributes",recommended:!1,url:"https://eslint.org/docs/latest/rules/jsx-quotes"},fixable:"whitespace",schema:[{enum:["prefer-single","prefer-double"]}],messages:{unexpected:"Unexpected usage of {{description}}."}},create(t){let e=t.options[0]||"prefer-double",r=t4[e];function s(n){return n.value.includes(r.quote)||Xw.isSurroundedBy(n.raw,r.quote)}return{JSXAttribute(n){let i=n.value;i&&Xw.isStringLiteral(i)&&!s(i)&&t.report({node:i,messageId:"unexpected",data:{description:r.description},fix(o){return o.replaceText(i,r.convert(i.raw))}})}}}}});var tA=B(($te,eA)=>{"use strict";var fh=X(),{getGraphemeCount:r4}=In();function n4(t){return fh.LINEBREAK_MATCHER.test(t)}function El(t){return t.at(-1)}function Zw(t){return t.loc.end.line===t.loc.start.line}function s4(t){let[e]=t,r=El(t);return e.loc.start.line===r.loc.end.line}function la(t,e){return t.mode=e.mode||"strict",typeof e.beforeColon<"u"?t.beforeColon=+e.beforeColon:t.beforeColon=0,typeof e.afterColon<"u"?t.afterColon=+e.afterColon:t.afterColon=1,typeof e.align<"u"&&(typeof e.align=="object"?t.align=e.align:t.align={on:e.align,mode:t.mode,beforeColon:t.beforeColon,afterColon:t.afterColon}),t}function i4(t,e){return typeof e.align=="object"?(t.align=la({},e.align),t.align.on=e.align.on||"colon",t.align.mode=e.align.mode||"strict",t.multiLine=la({},e.multiLine||e),t.singleLine=la({},e.singleLine||e)):(t.multiLine=la({},e.multiLine||e),t.singleLine=la({},e.singleLine||e),t.multiLine.align&&(t.align={on:t.multiLine.align.on,mode:t.multiLine.align.mode||t.multiLine.mode,beforeColon:t.multiLine.align.beforeColon,afterColon:t.multiLine.align.afterColon})),t}eA.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"key-spacing",url:"https://eslint.style/rules/key-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing between keys and values in object literal properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/key-spacing"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{align:{anyOf:[{enum:["colon","value"]},{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}]},mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{singleLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},multiLine:{type:"object",properties:{mode:{enum:["strict","minimum"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1},align:{type:"object",properties:{mode:{enum:["strict","minimum"]},on:{enum:["colon","value"]},beforeColon:{type:"boolean"},afterColon:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],messages:{extraKey:"Extra space after {{computed}}key '{{key}}'.",extraValue:"Extra space before value for {{computed}}key '{{key}}'.",missingKey:"Missing space after {{computed}}key '{{key}}'.",missingValue:"Missing space before value for {{computed}}key '{{key}}'."}},create(t){let e=t.options[0]||{},r=i4({},e),s=r.multiLine,n=r.singleLine,i=r.align||null,o=t.sourceCode;function a(k){return!(k.method||k.shorthand||k.kind!=="init"||k.type!=="Property")}function l(k){return o.getTokenAfter(k,fh.isColonToken)}function u(k){let T=l(k);return o.getTokenBefore(T)}function c(k){let T=l(k);return o.getTokenAfter(T)}function p(k,T){let w=k.loc.start.line,R=(a(T)?c(T.key):T).loc.start.line;if(R-w<=1)return!0;let j=o.getCommentsBefore(T);if(j.length&&j[0].loc.start.line-w<=1&&R-El(j).loc.end.line<=1){for(let $=1;$<j.length;$++)if(j[$].loc.start.line-j[$-1].loc.end.line>1)return!1;return!0}return!1}function h(k){let T=k.key;return k.computed?o.getText().slice(T.range[0],T.range[1]):fh.getStaticPropertyName(k)}function f(k,T,w,R,j){let $=w.length-R;if(($&&j==="strict"||$<0&&j==="minimum"||$>0&&!R&&j==="minimum")&&!(R&&n4(w))){let M=l(k.key),N=o.getTokenBefore(M,{includeComments:!0}),b=o.getTokenAfter(M,{includeComments:!0}),C=T==="key",P=$>0,F=Math.abs($),I=Array(F+1).join(" "),U=C?N.loc.end:M.loc.start,z=C?M.loc.start:b.loc.start,W=C?N.loc:b.loc,re=P?{start:U,end:z}:W,ue;if(P){let te;C?te=[N.range[1],N.range[1]+F]:te=[b.range[0]-F,b.range[0]],ue=function(pe){return pe.removeRange(te)}}else C?ue=function(te){return te.insertTextAfter(N,I)}:ue=function(te){return te.insertTextBefore(b,I)};let be;P?be=T==="key"?"extraKey":"extraValue":be=T==="key"?"missingKey":"missingValue",t.report({node:k[T],loc:re,messageId:be,data:{computed:k.computed?"computed ":"",key:h(k)},fix:ue})}}function d(k){let T=o.getFirstToken(k),w=u(k.key);return r4(o.getText().slice(T.range[0],w.range[1]))}function g(k){let T=/(\s*):(\s*)/u.exec(o.getText().slice(k.key.range[1],k.value.range[0]));return T?{beforeColon:T[1],afterColon:T[2]}:null}function y(k){return k.properties.length===1?[k.properties]:k.properties.reduce((T,w)=>{let R=El(T),j=El(R);return!j||p(j,w)?R.push(w):T.push([w]),T},[[]])}function v(k){let T=k.length,w=k.map(d),R=i.on,j=Math.max(...w),$,M,N;i&&T>1?($=i.beforeColon,M=i.afterColon,N=i.mode):($=s.beforeColon,M=s.afterColon,N=i.mode),j+=R==="colon"?$:M;for(let b=0;b<T;b++){let C=k[b],P=g(C);if(P){let F=w[b];R==="value"?(f(C,"key",P.beforeColon,$,N),f(C,"value",P.afterColon,j-F,N)):(f(C,"key",P.beforeColon,j-F,N),f(C,"value",P.afterColon,M,N))}}}function S(k,T){let w=g(k);w&&(f(k,"key",w.beforeColon,T.beforeColon,T.mode),f(k,"value",w.afterColon,T.afterColon,T.mode))}function A(k,T){let w=k.length;for(let R=0;R<w;R++)S(k[R],T)}function E(k){y(k).forEach(T=>{let w=T.filter(a);w.length>0&&s4(w)?A(w,s):v(w)})}return i?{ObjectExpression(k){Zw(k)?A(k.properties.filter(a),n):E(k)}}:{Property(k){S(k,Zw(k.parent)?n:s)}}}}});var iA=B((Vte,sA)=>{"use strict";var Pn=X(),a4=yl(),o4=/^[)\]}>]$/u,l4=/^(?:[([{<~!]|\+\+?|--?)$/u,ti=/^[)\]}>*]$/u,bl=/^[{*]$/u,u4=/\$\{$/u,c4=/^\}/u,vl=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,Fn=a4.concat(["as","async","await","from","get","let","of","set","yield"]);(function(){Fn.sort();for(let t=1;t<Fn.length;++t)if(Fn[t]===Fn[t-1])throw new Error(`Duplication was found in the keyword list: ${Fn[t]}`)})();function rA(t){return t.type==="Template"&&u4.test(t.value)}function nA(t){return t.type==="Template"&&c4.test(t.value)}sA.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"keyword-spacing",url:"https://eslint.style/rules/keyword-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after keywords",recommended:!1,url:"https://eslint.org/docs/latest/rules/keyword-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!0},after:{type:"boolean",default:!0},overrides:{type:"object",properties:Fn.reduce((t,e)=>(t[e]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},t),{}),additionalProperties:!1}},additionalProperties:!1}],messages:{expectedBefore:'Expected space(s) before "{{value}}".',expectedAfter:'Expected space(s) after "{{value}}".',unexpectedBefore:'Unexpected space(s) before "{{value}}".',unexpectedAfter:'Unexpected space(s) after "{{value}}".'}},create(t){let e=t.sourceCode,r=new WeakSet;function s(N,b){let C=e.getTokenBefore(N);C&&(vl.test(C.type)||b.test(C.value))&&!rA(C)&&!r.has(C)&&Pn.isTokenOnSameLine(C,N)&&!e.isSpaceBetween(C,N)&&t.report({loc:N.loc,messageId:"expectedBefore",data:N,fix(P){return P.insertTextBefore(N," ")}})}function n(N,b){let C=e.getTokenBefore(N);C&&(vl.test(C.type)||b.test(C.value))&&!rA(C)&&!r.has(C)&&Pn.isTokenOnSameLine(C,N)&&e.isSpaceBetween(C,N)&&t.report({loc:{start:C.loc.end,end:N.loc.start},messageId:"unexpectedBefore",data:N,fix(P){return P.removeRange([C.range[1],N.range[0]])}})}function i(N,b){let C=e.getTokenAfter(N);C&&(vl.test(C.type)||b.test(C.value))&&!nA(C)&&!r.has(C)&&Pn.isTokenOnSameLine(N,C)&&!e.isSpaceBetween(N,C)&&t.report({loc:N.loc,messageId:"expectedAfter",data:N,fix(P){return P.insertTextAfter(N," ")}})}function o(N,b){let C=e.getTokenAfter(N);C&&(vl.test(C.type)||b.test(C.value))&&!nA(C)&&!r.has(C)&&Pn.isTokenOnSameLine(N,C)&&e.isSpaceBetween(N,C)&&t.report({loc:{start:N.loc.end,end:C.loc.start},messageId:"unexpectedAfter",data:N,fix(P){return P.removeRange([N.range[1],C.range[0]])}})}function a(N={}){let b=N.before!==!1,C=N.after!==!1,P={before:b?s:n,after:C?i:o},F=N&&N.overrides||{},I=Object.create(null);for(let U=0;U<Fn.length;++U){let z=Fn[U],W=F[z];if(W){let re="before"in W?W.before:b,ue="after"in W?W.after:C;I[z]={before:re?s:n,after:ue?i:o}}else I[z]=P}return I}let l=a(t.options[0]);function u(N,b){l[N.value].before(N,b||o4)}function c(N,b){l[N.value].after(N,b||l4)}function p(N){u(N),c(N)}function h(N){let b=N&&e.getFirstToken(N);b&&b.type==="Keyword"&&p(b)}function f(N){let b=N&&e.getFirstToken(N);b&&b.type==="Keyword"&&u(b)}function d(N){if(N){let b=e.getTokenBefore(N,Pn.isKeywordToken);p(b)}}function g(N){let b=N&&e.getFirstToken(N);b&&(b.type==="Keyword"&&b.value==="function"||b.value==="async")&&u(b)}function y(N){h(N),d(N.superClass)}function v(N){h(N),d(N.alternate)}function S(N){h(N),h(N.handler),d(N.finalizer)}function A(N){h(N),d(N.test)}function E(N){h(N);let b=e.getTokenBefore(N.right,Pn.isNotOpeningParenToken);e.getTokenBefore(b).type!=="PrivateIdentifier"&&u(b),c(b)}function k(N){N.await?(u(e.getFirstToken(N,0)),c(e.getFirstToken(N,1))):h(N);let b=e.getTokenBefore(N.right,Pn.isNotOpeningParenToken);e.getTokenBefore(b).type!=="PrivateIdentifier"&&u(b),c(b)}function T(N){let b=e.getFirstToken(N);if(u(b,ti),c(b,bl),N.type==="ExportDefaultDeclaration"&&p(e.getTokenAfter(b)),N.type==="ExportAllDeclaration"&&N.exported){let C=e.getTokenBefore(N.exported);u(C,ti),c(C,bl)}if(N.source){let C=e.getTokenBefore(N.source);u(C,ti),c(C,bl)}}function w(N){if(N.imported.range[0]!==N.local.range[0]){let b=e.getTokenBefore(N.local);u(b,ti)}}function R(N){if(N.local.range[0]!==N.exported.range[0]){let b=e.getTokenBefore(N.exported);u(b,ti),c(b,bl)}}function j(N){let b=e.getFirstToken(N,1);u(b,ti)}function $(N){if(N.static&&h(N),N.kind==="get"||N.kind==="set"||(N.method||N.type==="MethodDefinition")&&N.value.async){let b=e.getTokenBefore(N.key,C=>{switch(C.value){case"get":case"set":case"async":return!0;default:return!1}});if(!b)throw new Error("Failed to find token get, set, or async beside method name");p(b)}}function M(N){u(e.getFirstToken(N))}return{DebuggerStatement:h,WithStatement:h,BreakStatement:h,ContinueStatement:h,ReturnStatement:h,ThrowStatement:h,TryStatement:S,IfStatement:v,SwitchStatement:h,SwitchCase:h,DoWhileStatement:A,ForInStatement:E,ForOfStatement:k,ForStatement:h,WhileStatement:h,ClassDeclaration:y,ExportNamedDeclaration:T,ExportDefaultDeclaration:T,ExportAllDeclaration:T,FunctionDeclaration:g,ImportDeclaration:T,VariableDeclaration:h,ArrowFunctionExpression:g,AwaitExpression:M,ClassExpression:y,FunctionExpression:g,NewExpression:f,Super:f,ThisExpression:f,UnaryExpression:f,YieldExpression:f,ImportSpecifier:w,ExportSpecifier:R,ImportNamespaceSpecifier:j,MethodDefinition:$,PropertyDefinition:$,StaticBlock:h,Property:$,"BinaryExpression[operator='>']"(N){let b=e.getTokenBefore(N.right,Pn.isNotOpeningParenToken);r.add(b)}}}}});var oA=B((Wte,aA)=>{"use strict";var p4=X();aA.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"9.3.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"line-comment-position",url:"https://eslint.style/rules/line-comment-position"}}]},type:"layout",docs:{description:"Enforce position of line comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/line-comment-position"},schema:[{oneOf:[{enum:["above","beside"]},{type:"object",properties:{position:{enum:["above","beside"]},ignorePattern:{type:"string"},applyDefaultPatterns:{type:"boolean"},applyDefaultIgnorePatterns:{type:"boolean"}},additionalProperties:!1}]}],messages:{above:"Expected comment to be above code.",beside:"Expected comment to be beside code."}},create(t){let e=t.options[0],r,s,n=!0;!e||typeof e=="string"?r=!e||e==="above":(r=!e.position||e.position==="above",s=e.ignorePattern,Object.hasOwn(e,"applyDefaultIgnorePatterns")?n=e.applyDefaultIgnorePatterns:n=e.applyDefaultPatterns!==!1);let i=p4.COMMENTS_IGNORE_PATTERN,o=/^\s*falls?\s?through/u,a=new RegExp(s,"u"),l=t.sourceCode;return{Program(){l.getAllComments().filter(c=>c.type==="Line").forEach(c=>{if(n&&(i.test(c.value)||o.test(c.value))||s&&a.test(c.value))return;let p=l.getTokenBefore(c,{includeComments:!0}),h=p&&p.loc.end.line===c.loc.start.line;r?h&&t.report({node:c,messageId:"above"}):h||t.report({node:c,messageId:"beside"})})}}}}});var uA=B((zte,lA)=>{"use strict";var f4=X();lA.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"linebreak-style",url:"https://eslint.style/rules/linebreak-style"}}]},type:"layout",docs:{description:"Enforce consistent linebreak style",recommended:!1,url:"https://eslint.org/docs/latest/rules/linebreak-style"},fixable:"whitespace",schema:[{enum:["unix","windows"]}],messages:{expectedLF:"Expected linebreaks to be 'LF' but found 'CRLF'.",expectedCRLF:"Expected linebreaks to be 'CRLF' but found 'LF'."}},create(t){let e=t.sourceCode;function r(s,n){return function(i){return i.replaceTextRange(s,n)}}return{Program:function(n){let i=t.options[0]||"unix",o=i==="unix",a=o?`
56
+ `:`\r
57
+ `,l=e.getText(),u=f4.createGlobalLinebreakMatcher(),c,p=0;for(;(c=u.exec(l))!==null;){if(p++,c[0]===a)continue;let h=c.index,f=[h,h+c[0].length];t.report({node:n,loc:{start:{line:p,column:e.lines[p-1].length},end:{line:p+1,column:0}},messageId:o?"expectedLF":"expectedCRLF",fix:r(f,a)})}}}}}});var pA=B((Gte,cA)=>{"use strict";var Ur=X();function h4(t){return t.map((r,s)=>({code:r.trim(),num:s+1})).filter(r=>!r.code).map(r=>r.num)}function m4(t){let e=[];return t.forEach(r=>{let s=r.loc.start.line,n=r.loc.end.line;e.push(s,n)}),e}cA.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"lines-around-comment",url:"https://eslint.style/rules/lines-around-comment"}}]},type:"layout",docs:{description:"Require empty lines around comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-around-comment"},fixable:"whitespace",schema:[{type:"object",properties:{beforeBlockComment:{type:"boolean",default:!0},afterBlockComment:{type:"boolean",default:!1},beforeLineComment:{type:"boolean",default:!1},afterLineComment:{type:"boolean",default:!1},allowBlockStart:{type:"boolean",default:!1},allowBlockEnd:{type:"boolean",default:!1},allowClassStart:{type:"boolean"},allowClassEnd:{type:"boolean"},allowObjectStart:{type:"boolean"},allowObjectEnd:{type:"boolean"},allowArrayStart:{type:"boolean"},allowArrayEnd:{type:"boolean"},ignorePattern:{type:"string"},applyDefaultIgnorePatterns:{type:"boolean"},afterHashbangComment:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{after:"Expected line after comment.",before:"Expected line before comment."}},create(t){let e=Object.assign({},t.options[0]),r=e.ignorePattern,s=Ur.COMMENTS_IGNORE_PATTERN,n=new RegExp(r,"u"),i=e.applyDefaultIgnorePatterns!==!1;e.beforeBlockComment=typeof e.beforeBlockComment<"u"?e.beforeBlockComment:!0;let o=t.sourceCode,a=o.lines,l=a.length+1,u=o.getAllComments(),c=m4(u),p=h4(a),h=new Set(c.concat(p));function f(M){let N=M;do N=o.getTokenBefore(N,{includeComments:!0});while(N&&Ur.isCommentToken(N));if(N&&Ur.isTokenOnSameLine(N,M))return!0;N=M;do N=o.getTokenAfter(N,{includeComments:!0});while(N&&Ur.isCommentToken(N));return!!(N&&Ur.isTokenOnSameLine(M,N))}function d(M,N){return M.type===N||M.body&&M.body.type===N||M.consequent&&M.consequent.type===N}function g(M){let N=o.getNodeByRangeIndex(M.range[0]);if(N&&N.type==="StaticBlock"){let b=o.getFirstToken(N,{skip:1});return M.range[0]>=b.range[0]?N:null}return N}function y(M,N){let b=g(M);if(b&&d(b,N)){let C=b;return b.type==="StaticBlock"?C=o.getFirstToken(b,{skip:1}):b.type==="SwitchStatement"&&(C=o.getTokenAfter(b.discriminant,{filter:Ur.isOpeningBraceToken})),M.loc.start.line-C.loc.start.line===1}return!1}function v(M,N){let b=g(M);return!!b&&d(b,N)&&b.loc.end.line-M.loc.end.line===1}function S(M){return y(M,"ClassBody")||y(M,"BlockStatement")||y(M,"StaticBlock")||y(M,"SwitchCase")||y(M,"SwitchStatement")}function A(M){return v(M,"ClassBody")||v(M,"BlockStatement")||v(M,"StaticBlock")||v(M,"SwitchCase")||v(M,"SwitchStatement")}function E(M){return y(M,"ClassBody")}function k(M){return v(M,"ClassBody")}function T(M){return y(M,"ObjectExpression")||y(M,"ObjectPattern")}function w(M){return v(M,"ObjectExpression")||v(M,"ObjectPattern")}function R(M){return y(M,"ArrayExpression")||y(M,"ArrayPattern")}function j(M){return v(M,"ArrayExpression")||v(M,"ArrayPattern")}function $(M,N){if(i&&s.test(M.value)||r&&n.test(M.value))return;let b=N.after,C=N.before,P=M.loc.start.line-1,F=M.loc.end.line+1,I=f(M),U=e.allowBlockStart&&S(M)&&!(e.allowClassStart===!1&&E(M)),z=e.allowBlockEnd&&A(M)&&!(e.allowClassEnd===!1&&k(M)),W=e.allowClassStart&&E(M),re=e.allowClassEnd&&k(M),ue=e.allowObjectStart&&T(M),be=e.allowObjectEnd&&w(M),te=e.allowArrayStart&&R(M),pe=e.allowArrayEnd&&j(M),ve=U||W||ue||te,Ae=z||re||be||pe;if(P<1&&(C=!1),F>=l&&(b=!1),I)return;let ie=o.getTokenBefore(M,{includeComments:!0}),xe=o.getTokenAfter(M,{includeComments:!0});if(!ve&&C&&!h.has(P)&&!(Ur.isCommentToken(ie)&&Ur.isTokenOnSameLine(ie,M))){let ae=M.range[0]-M.loc.start.column,fe=[ae,ae];t.report({node:M,messageId:"before",fix(Be){return Be.insertTextBeforeRange(fe,`
58
+ `)}})}!Ae&&b&&!h.has(F)&&!(Ur.isCommentToken(xe)&&Ur.isTokenOnSameLine(M,xe))&&t.report({node:M,messageId:"after",fix(ae){return ae.insertTextAfter(M,`
59
+ `)}})}return{Program(){u.forEach(M=>{M.type==="Line"?(e.beforeLineComment||e.afterLineComment)&&$(M,{after:e.afterLineComment,before:e.beforeLineComment}):M.type==="Block"?(e.beforeBlockComment||e.afterBlockComment)&&$(M,{after:e.afterBlockComment,before:e.beforeBlockComment}):M.type==="Shebang"&&e.afterHashbangComment&&$(M,{after:e.afterHashbangComment,before:!1})})}}}}});var mA=B((Kte,hA)=>{"use strict";var fA=X();hA.exports={meta:{type:"layout",docs:{description:"Require or disallow newlines around directives",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-around-directive"},schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{before:{enum:["always","never"]},after:{enum:["always","never"]}},additionalProperties:!1,minProperties:2}]}],fixable:"whitespace",messages:{expected:'Expected newline {{location}} "{{value}}" directive.',unexpected:'Unexpected newline {{location}} "{{value}}" directive.'},deprecated:{message:"The rule was replaced with a more general rule.",url:"https://eslint.org/blog/2017/06/eslint-v4.0.0-released/",deprecatedSince:"4.0.0",availableUntil:"11.0.0",replacedBy:[{message:"The new rule moved to a plugin.",url:"https://eslint.org/docs/latest/rules/padding-line-between-statements#examples",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"padding-line-between-statements",url:"https://eslint.style/rules/padding-line-between-statements"}}]}},create(t){let e=t.sourceCode,r=t.options[0]||"always",s=typeof r=="string"?r:r.before,n=typeof r=="string"?r:r.after;function i(c){let p=e.getTokenBefore(c,{includeComments:!0}),h=p?p.loc.end.line:0;return c.loc.start.line-h>=2}function o(c){let p=e.getLastToken(c),h=e.getTokenBefore(p);return fA.isSemicolonToken(p)&&p.loc.start.line>h.loc.end.line?h:p}function a(c){let p=o(c);return e.getTokenAfter(p,{includeComments:!0}).loc.start.line-p.loc.end.line>=2}function l(c,p,h){t.report({node:c,messageId:h?"expected":"unexpected",data:{value:c.expression.value,location:p},fix(f){let d=o(c);return h?p==="before"?f.insertTextBefore(c,`
60
+ `):f.insertTextAfter(d,`
61
+ `):f.removeRange(p==="before"?[c.range[0]-1,c.range[0]]:[d.range[1],d.range[1]+1])}})}function u(c){let p=fA.getDirectivePrologue(c);if(!p.length)return;let h=p[0],f=e.getCommentsBefore(h);f.length?(s==="always"&&!i(h)&&l(h,"before",!0),s==="never"&&i(h)&&l(h,"before",!1)):c.type==="Program"&&s==="never"&&!f.length&&i(h)&&l(h,"before",!1);let d=p.at(-1),g=c.type==="Program"?c.body:c.body.body;d===g.at(-1)&&!d.trailingComments||(n==="always"&&!a(d)&&l(d,"after",!0),n==="never"&&a(d)&&l(d,"after",!1))}return{Program:u,FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression:u}}}});var gA=B((Hte,dA)=>{"use strict";var Sl=X(),d4={"*":{test:()=>!0},field:{test:t=>t.type==="PropertyDefinition"},method:{test:t=>t.type==="MethodDefinition"}};dA.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"lines-between-class-members",url:"https://eslint.style/rules/lines-between-class-members"}}]},type:"layout",docs:{description:"Require or disallow an empty line between class members",recommended:!1,url:"https://eslint.org/docs/latest/rules/lines-between-class-members"},fixable:"whitespace",schema:[{anyOf:[{type:"object",properties:{enforce:{type:"array",items:{type:"object",properties:{blankLine:{enum:["always","never"]},prev:{enum:["method","field","*"]},next:{enum:["method","field","*"]}},additionalProperties:!1,required:["blankLine","prev","next"]},minItems:1}},additionalProperties:!1,required:["enforce"]},{enum:["always","never"]}]},{type:"object",properties:{exceptAfterSingleLine:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{never:"Unexpected blank line between class members.",always:"Expected blank line between class members."}},create(t){let e=[];e[0]=t.options[0]||"always",e[1]=t.options[1]||{exceptAfterSingleLine:!1};let r=typeof e[0]=="object"?e[0].enforce:[{blankLine:e[0],prev:"*",next:"*"}],s=t.sourceCode;function n(c,p){let h=s.getLastToken(c),f=s.getTokenBefore(h),d=s.getFirstToken(p);return Sl.isSemicolonToken(h)&&!Sl.isTokenOnSameLine(f,h)&&Sl.isTokenOnSameLine(h,d)?{curLast:f,nextFirst:h}:{curLast:h,nextFirst:d}}function i(c,p,h){let f=s.getTokenAfter(c,{includeComments:!0});return f!==p&&f.loc.start.line-c.loc.end.line<=h?i(f,p,h):c}function o(c,p,h){let f=s.getTokenBefore(c,{includeComments:!0});return f!==p&&c.loc.start.line-f.loc.end.line<=h?o(f,p,h):c}function a(c,p){return s.getTokensBetween(c,p,{includeComments:!0}).length!==0}function l(c,p){return d4[p].test(c)}function u(c,p){for(let h=r.length-1;h>=0;--h){let f=r[h];if(l(c,f.prev)&&l(p,f.next))return f.blankLine}return null}return{ClassBody(c){let p=c.body;for(let h=0;h<p.length-1;h++){let f=s.getFirstToken(p[h]),{curLast:d,nextFirst:g}=n(p[h],p[h+1]),v=!!Sl.isTokenOnSameLine(f,d)&&e[1].exceptAfterSingleLine,S=i(d,g,1),A=o(g,d,1),E=A.loc.start.line-S.loc.end.line>1,k=a(S,A),T=i(d,g,0),w=u(p[h],p[h+1]);w==="never"&&E?t.report({node:p[h+1],messageId:"never",fix(R){return k?null:R.replaceTextRange([S.range[1],A.range[0]],`
62
+ `)}}):w==="always"&&!v&&!E&&t.report({node:p[h+1],messageId:"always",fix(R){return k?null:R.insertTextAfter(T,`
63
+ `)}})}}}}}});var xA=B((Jte,yA)=>{"use strict";var $t=X(),g4=new Set(["Identifier","Super","ThisExpression"]);function hh(t,e){return t.type==="Identifier"&&t.name==="undefined"?$t.isReferenceToGlobalVariable(e,t):t.type==="UnaryExpression"&&t.operator==="void"&&t.argument.type==="Literal"&&t.argument.value===0}function $r(t){return t.type==="Identifier"&&t.name!=="undefined"||t.type==="MemberExpression"}function y4(t,e){if(t.type!=="BinaryExpression"||t.operator!=="==")return!1;let r=$r(t.left)?"left":"right",s=r==="left"?"right":"left";return $r(t[r])&&($t.isNullLiteral(t[s])||hh(t[s],e))}function x4(t){return t.type==="LogicalExpression"&&t.operator==="||"&&t.left.type==="BinaryExpression"&&t.left.operator==="==="&&t.right.type==="BinaryExpression"&&t.right.operator==="==="}function E4(t,e){if(!x4(t))return!1;let r=$r(t.left.left)?"left":"right",s=r==="left"?"right":"left",n=$r(t.right.left)?"left":"right",i=n==="left"?"right":"left";return $t.isSameReference(t.left[r],t.right[n])&&($t.isNullLiteral(t.left[s])&&hh(t.right[i],e)||hh(t.left[s],e)&&$t.isNullLiteral(t.right[i]))}function b4(t,e){return t.type==="CallExpression"&&t.callee.name==="Boolean"&&t.arguments.length===1&&$t.isReferenceToGlobalVariable(e,t.callee)}function v4(t,e){let r=t.type==="UnaryExpression"&&t.operator==="!",s=r?t.argument:t;switch(!0){case $r(s):return{reference:s,operator:r?"||":"&&"};case(s.type==="UnaryExpression"&&s.operator==="!"&&$r(s.argument)):return{reference:s.argument,operator:"&&"};case(b4(s,e)&&$r(s.arguments[0])):return{reference:s.arguments[0],operator:r?"||":"&&"};case y4(t,e):return{reference:$r(t.left)?t.left:t.right,operator:"??"};case E4(t,e):return{reference:$r(t.left.left)?t.left.left:t.left.right,operator:"??"};default:return null}}function mh(t){return t.type==="Program"?!1:t.parent.type==="WithStatement"&&t.parent.body===t?!0:mh(t.parent)}function S4(t,e){let r=e.left;for(;r.type==="LogicalExpression"&&r.operator===e.operator;){if($t.isParenthesised(t,r))return r;r=r.left}return r}yA.exports={meta:{type:"suggestion",docs:{description:"Require or disallow logical assignment operator shorthand",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/logical-assignment-operators"},schema:{type:"array",oneOf:[{items:[{const:"always"},{type:"object",properties:{enforceForIfStatements:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2},{items:[{const:"never"}],minItems:1,maxItems:1}]},defaultOptions:["always"],fixable:"code",hasSuggestions:!0,messages:{assignment:"Assignment (=) can be replaced with operator assignment ({{operator}}).",useLogicalOperator:"Convert this assignment to use the operator {{ operator }}.",logical:"Logical expression can be replaced with an assignment ({{ operator }}).",convertLogical:"Replace this logical expression with an assignment with the operator {{ operator }}.",if:"'if' statement can be replaced with a logical operator assignment with operator {{ operator }}.",convertIf:"Replace this 'if' statement with a logical assignment with operator {{ operator }}.",unexpected:"Unexpected logical operator assignment ({{operator}}) shorthand.",separate:"Separate the logical assignment into an assignment with a logical operator."}},create(t){let e=t.options[0],r=e==="always"&&t.options.length>1&&t.options[1].enforceForIfStatements,s=t.sourceCode,n=s.getScope(s.ast).isStrict;function i(u){return u.type==="Identifier"&&(n||!mh(u))}function o(u){return!n&&mh(u)?u.type==="Identifier":u.type==="MemberExpression"&&g4.has(u.object.type)&&(!u.computed||u.property.type!=="MemberExpression"&&u.property.type!=="ChainExpression")}function a(u,c,p){return p?{...u,fix:c.fix}:{...u,suggest:[c]}}function l(u){return s.getFirstTokenBetween(u.left,u.right,c=>c.value===u.operator)}return e==="never"?{AssignmentExpression(u){if(!$t.isLogicalAssignmentOperator(u.operator))return;let c={messageId:"unexpected",node:u,data:{operator:u.operator}},p={messageId:"separate",*fix(h){if(s.getCommentsInside(u).length>0)return;let f=l(u);yield h.replaceText(f,"=");let d=s.getText(u.left),g=u.operator.slice(0,-1);yield h.insertTextAfter(f,` ${d} ${g}`);let y=$t.getPrecedence(u.right)<=$t.getPrecedence({type:"LogicalExpression",operator:g}),v=u.operator==="??="&&$t.isLogicalExpression(u.right);!$t.isParenthesised(s,u.right)&&(y||v)&&(yield h.insertTextBefore(u.right,"("),yield h.insertTextAfter(u.right,")"))}};t.report(a(c,p,i(u.left)))}}:{"AssignmentExpression[operator='='][right.type='LogicalExpression']"(u){let c=S4(s,u.right);if(!$t.isSameReference(u.left,c))return;let p={messageId:"assignment",node:u,data:{operator:`${u.right.operator}=`}},h={messageId:"useLogicalOperator",data:{operator:`${u.right.operator}=`},*fix(f){if(s.getCommentsInside(u).length>0)return;let d=l(u);yield f.insertTextBefore(d,u.right.operator);let g=l(c.parent),y=s.getTokenAfter(g);yield f.removeRange([c.parent.range[0],y.range[0]])}};t.report(a(p,h,i(u.left)))},'LogicalExpression[right.type="AssignmentExpression"][right.operator="="]'(u){if($r(u.left)&&$t.isSameReference(u.left,u.right.left)){let c={messageId:"logical",node:u,data:{operator:`${u.operator}=`}},p={messageId:"convertLogical",data:{operator:`${u.operator}=`},*fix(f){if(s.getCommentsInside(u).length>0)return;let d=$t.getPrecedence(u.parent),g=u.parent.type!=="ExpressionStatement"&&(d===-1||$t.getPrecedence({type:"AssignmentExpression"})<d);!$t.isParenthesised(s,u)&&g&&(yield f.insertTextBefore(u,"("),yield f.insertTextAfter(u,")")),yield f.removeRange([u.range[0],u.right.range[0]]),yield f.removeRange([u.right.range[1],u.range[1]]);let y=l(u.right);yield f.insertTextBefore(y,u.operator)}},h=i(u.left)||o(u.left);t.report(a(c,p,h))}},"IfStatement[alternate=null]"(u){if(!r)return;let c=u.consequent.type==="BlockStatement";if(c&&u.consequent.body.length!==1)return;let p=c?u.consequent.body[0]:u.consequent,h=s.getScope(u),f=v4(u.test,h);if(p.type==="ExpressionStatement"&&p.expression.type==="AssignmentExpression"&&p.expression.operator==="="&&f!==null&&$t.isSameReference(f.reference,p.expression.left)){let d={messageId:"if",node:u,data:{operator:`${f.operator}=`}},g={messageId:"convertIf",data:{operator:`${f.operator}=`},*fix(v){if(s.getCommentsInside(u).length>0)return;let S=s.getFirstToken(p),A=s.getTokenBefore(u);if(A!==null&&A.value!==";"&&A.value!=="{"&&S.type!=="Identifier"&&S.type!=="Keyword")return;let E=l(p.expression);yield v.insertTextBefore(E,f.operator),yield v.removeRange([u.range[0],p.range[0]]),yield v.removeRange([p.range[1],u.range[1]]);let k=s.getTokenAfter(p.expression);c&&k!==null&&k.value!==";"&&(yield v.insertTextAfter(u,";"))}},y=i(f.reference)||u.test.type!=="LogicalExpression"&&o(f.reference);t.report(a(d,g,y))}}}}}});var bA=B((Xte,EA)=>{"use strict";EA.exports={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of classes per file",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-classes-per-file"},schema:[{oneOf:[{type:"integer",minimum:1},{type:"object",properties:{ignoreExpressions:{type:"boolean"},max:{type:"integer",minimum:1}},additionalProperties:!1}]}],defaultOptions:[1],messages:{maximumExceeded:"File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}."}},create(t){let e=t.options[0],[r,s]=typeof e=="number"?[!1,e]:[e.ignoreExpressions,e.max||1],n=0;return{Program(){n=0},"Program:exit"(i){n>s&&t.report({node:i,loc:{start:i.body[0].loc.start,end:i.body.at(-1).loc.end},messageId:"maximumExceeded",data:{classCount:n,max:s}})},ClassDeclaration(){n++},ClassExpression(){r||n++}}}}});var SA=B((Qte,vA)=>{"use strict";vA.exports={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that blocks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-depth"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]}],defaultOptions:[4],messages:{tooDeeply:"Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}."}},create(t){let e=t.sourceCode,r=[],s=t.options[0],n=4;typeof s=="object"&&(Object.hasOwn(s,"maximum")||Object.hasOwn(s,"max"))&&(n=s.maximum||s.max),typeof s=="number"&&(n=s);function i(){r.push(0)}function o(){r.pop()}function a(c){let p=++r[r.length-1];p>n&&t.report({node:c,loc:e.getFirstToken(c).loc,messageId:"tooDeeply",data:{depth:p,maxDepth:n}})}function l(){r[r.length-1]--}function u(c){return c.parent.type==="IfStatement"&&c.parent.alternate===c}return{Program:i,FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression:i,StaticBlock:i,IfStatement(c){u(c)||a(c)},SwitchStatement:a,TryStatement:a,DoWhileStatement:a,WhileStatement:a,WithStatement:a,ForStatement:a,ForInStatement:a,ForOfStatement:a,"IfStatement:exit"(c){u(c)||l()},"SwitchStatement:exit":l,"TryStatement:exit":l,"DoWhileStatement:exit":l,"WhileStatement:exit":l,"WithStatement:exit":l,"ForStatement:exit":l,"ForInStatement:exit":l,"ForOfStatement:exit":l,"FunctionDeclaration:exit":o,"FunctionExpression:exit":o,"ArrowFunctionExpression:exit":o,"StaticBlock:exit":o,"Program:exit":o}}}});var kA=B((Yte,AA)=>{"use strict";var wA={type:"object",properties:{code:{type:"integer",minimum:0},comments:{type:"integer",minimum:0},tabWidth:{type:"integer",minimum:0},ignorePattern:{type:"string"},ignoreComments:{type:"boolean"},ignoreStrings:{type:"boolean"},ignoreUrls:{type:"boolean"},ignoreTemplateLiterals:{type:"boolean"},ignoreRegExpLiterals:{type:"boolean"},ignoreTrailingComments:{type:"boolean"}},additionalProperties:!1},CA={anyOf:[wA,{type:"integer",minimum:0}]};AA.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"max-len",url:"https://eslint.style/rules/max-len"}}]},type:"layout",docs:{description:"Enforce a maximum line length",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-len"},schema:[CA,CA,wA],messages:{max:"This line has a length of {{lineLength}}. Maximum allowed is {{maxLength}}.",maxComment:"This line has a comment length of {{lineLength}}. Maximum allowed is {{maxCommentLength}}."}},create(t){let e=/[^:/?#]:\/\/[^?#]/u,r=t.sourceCode;function s($,M){let N=0;return $.replace(/\t/gu,(b,C)=>{let P=C+N,F=M?P%M:0,I=M-F;N+=I-1}),Array.from($).length+N}let n=Object.assign({},t.options.at(-1));typeof t.options[0]=="number"&&(n.code=t.options[0]),typeof t.options[1]=="number"&&(n.tabWidth=t.options[1]);let i=typeof n.code=="number"?n.code:80,o=typeof n.tabWidth=="number"?n.tabWidth:4,a=!!n.ignoreComments,l=!!n.ignoreStrings,u=!!n.ignoreTemplateLiterals,c=!!n.ignoreRegExpLiterals,p=!!n.ignoreTrailingComments||!!n.ignoreComments,h=!!n.ignoreUrls,f=n.comments,d=n.ignorePattern||null;d&&(d=new RegExp(d,"u"));function g($,M,N){return N&&N.loc.start.line===M&&M<=N.loc.end.line&&(N.loc.end.line>M||N.loc.end.column===$.length)}function y($,M,N){let b=N.loc.start,C=N.loc.end,P=!$.slice(0,N.loc.start.column).trim();return N&&(b.line<M||b.line===M&&P)&&(C.line>M||C.line===M&&C.column===$.length)}function v($){if(!$||!$.parent||$.type!=="JSXEmptyExpression"||$.parent.type!=="JSXExpressionContainer")return!1;let M=$.parent;return M.loc.start.line===M.loc.end.line}function S($,M){return $.slice(0,M.loc.start.column).replace(/\s+$/u,"")}function A($,M,N){Array.isArray($[M])||($[M]=[]),$[M].push(N)}function E(){return r.ast.tokens.filter($=>$.type==="String"||$.type==="JSXText"&&r.getNodeByRangeIndex($.range[0]-1).type==="JSXAttribute")}function k(){return r.ast.tokens.filter($=>$.type==="Template")}function T(){return r.ast.tokens.filter($=>$.type==="RegularExpression")}function w($){let M={};for(let N=0;N<$.length;N++){let b=$[N];for(let C=b.loc.start.line;C<=b.loc.end.line;++C)A(M,C,b)}return M}function R(){let $=[];return r.getAllComments().forEach(M=>{let N=r.getNodeByRangeIndex(M.range[0]);v(N)?$.at(-1)!==N.parent&&$.push(N.parent):$.push(M)}),$}function j($){let M=r.lines,N=a||f||p?R():[],b=0,C=E(),P=w(C),F=k(),I=w(F),U=T(),z=w(U);M.forEach((W,re)=>{let ue=re+1,be=!1,te;if(b<N.length){let ie;do ie=N[++b];while(ie&&ie.loc.start.line<=ue);if(ie=N[--b],y(W,ue,ie))be=!0,te=W;else if(p&&g(W,ue,ie)){te=S(W,ie);let xe=b;for(;g(te,ue,N[--xe]);)te=S(te,N[xe])}else te=W}else te=W;if(d&&d.test(te)||h&&e.test(te)||l&&P[ue]||u&&I[ue]||c&&z[ue])return;let pe=s(te,o),ve=be&&f;if(be&&a)return;let Ae={start:{line:ue,column:0},end:{line:ue,column:te.length}};ve?pe>f&&t.report({node:$,loc:Ae,messageId:"maxComment",data:{lineLength:pe,maxCommentLength:f}}):pe>i&&t.report({node:$,loc:Ae,messageId:"max",data:{lineLength:pe,maxLength:i}})})}return{Program:j}}}});var IA=B((Zte,DA)=>{"use strict";var TA=X();function C4(t,e){return[...Array(e-t).keys()].map(r=>r+t)}DA.exports={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines per file",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-lines"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"}},additionalProperties:!1}]}],defaultOptions:[300],messages:{exceed:"File has too many lines ({{actual}}). Maximum allowed is {{max}}."}},create(t){let e=t.options[0],r=300;typeof e=="object"&&Object.hasOwn(e,"max")?r=e.max:typeof e=="number"&&(r=e);let s=e&&e.skipComments,n=e&&e.skipBlankLines,i=t.sourceCode;function o(l){return l&&(l.type==="Block"||l.type==="Line")}function a(l){let u=l.loc.start.line,c=l.loc.end.line,p;p=l;do p=i.getTokenBefore(p,{includeComments:!0});while(o(p));p&&TA.isTokenOnSameLine(p,l)&&(u+=1),p=l;do p=i.getTokenAfter(p,{includeComments:!0});while(o(p));return p&&TA.isTokenOnSameLine(l,p)&&(c-=1),u<=c?C4(u,c+1):[]}return{"Program:exit"(){let l=i.lines.map((u,c)=>({lineNumber:c+1,text:u}));if(l.length>1&&l.at(-1).text===""&&l.pop(),n&&(l=l.filter(u=>u.text.trim()!=="")),s){let u=i.getAllComments(),c=new Set(u.flatMap(a));l=l.filter(p=>!c.has(p.lineNumber))}if(l.length>r){let u={start:{line:l[r].lineNumber,column:0},end:{line:i.lines.length,column:i.lines.at(-1).length}};t.report({loc:u,messageId:"exceed",data:{max:r,actual:l.length}})}}}}}});var FA=B((ere,PA)=>{"use strict";var Cl=X(),{upperCaseFirst:w4}=In(),A4={type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"},IIFEs:{type:"boolean"}},additionalProperties:!1},k4={oneOf:[A4,{type:"integer",minimum:1}]};function T4(t){let e=new Set;for(let r of t.getAllComments()){let s=t.getTokenBefore(r),n=t.getTokenAfter(r),i=r.loc.start.line,o=r.loc.end.line;s&&Cl.isTokenOnSameLine(s,r)&&i++,n&&Cl.isTokenOnSameLine(r,n)&&o--;for(let a=i;a<=o;a++)e.add(a)}return e}PA.exports={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of lines of code in a function",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-lines-per-function"},schema:[k4],defaultOptions:[50],messages:{exceed:"{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}."}},create(t){let e=t.sourceCode,r=e.lines,s=t.options[0],n=50,i=!1,o=!1,a=!1;typeof s=="object"?(n=typeof s.max=="number"?s.max:50,i=!!s.skipComments,o=!!s.skipBlankLines,a=!!s.IIFEs):typeof s=="number"&&(n=s);let l=i?T4(e):null;function u(h){return(h.type==="FunctionExpression"||h.type==="ArrowFunctionExpression")&&h.parent&&h.parent.type==="CallExpression"&&h.parent.callee===h}function c(h){return!h.parent||h!==h.parent.value?!1:h.parent.type==="MethodDefinition"?!0:h.parent.type==="Property"?h.parent.method===!0||h.parent.kind==="get"||h.parent.kind==="set":!1}function p(h){let f=c(h)?h.parent:h;if(!a&&u(f))return;let d=0;for(let g=f.loc.start.line-1;g<f.loc.end.line;++g)i&&l.has(g+1)||o&&/^\s*$/u.test(r[g])||d++;if(d>n){let g=w4(Cl.getFunctionNameWithKind(h));t.report({node:f,loc:Cl.getFunctionHeadLoc(h,e),messageId:"exceed",data:{name:g,lineCount:d,maxLines:n}})}}return{FunctionDeclaration:p,FunctionExpression:p,ArrowFunctionExpression:p}}}});var BA=B((tre,_A)=>{"use strict";var D4=X();_A.exports={meta:{type:"suggestion",docs:{description:"Enforce a maximum depth that callbacks can be nested",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-nested-callbacks"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0},checkConstructorCallCallbacks:{type:"boolean"}},additionalProperties:!1}]}],defaultOptions:[10],messages:{exceed:"Too many nested callbacks ({{num}}). Maximum allowed is {{max}}."}},create(t){let e=t.sourceCode,r=t.options[0],s=10;typeof r=="object"&&(Object.hasOwn(r,"maximum")||Object.hasOwn(r,"max"))?s=r.maximum||r.max:typeof r=="number"&&(s=r);let n=[];function i(a){let l=a.parent;if(!(l.type!=="CallExpression"&&!(r.checkConstructorCallCallbacks&&l.type==="NewExpression")||l.callee===a)&&(n.push(a),n.length>s)){let u={num:n.length,max:s};t.report({node:a,loc:D4.getFunctionHeadLoc(a,e),messageId:"exceed",data:u})}}function o(a){n.at(-1)===a&&n.pop()}return{ArrowFunctionExpression:i,"ArrowFunctionExpression:exit":o,FunctionExpression:i,"FunctionExpression:exit":o}}}});var NA=B((rre,LA)=>{"use strict";var OA=X(),{upperCaseFirst:I4}=In();LA.exports={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of parameters in function definitions",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/max-params"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0},countVoidThis:{type:"boolean",description:"Whether to count a `this` declaration when the type is `void`."},countThis:{enum:["never","except-void","always"],description:"Whether to count a `this` declaration."}},additionalProperties:!1,not:{required:["countVoidThis","countThis"]}}]}],defaultOptions:[3],messages:{exceed:"{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}."}},create(t){let e=t.sourceCode,r=t.options[0],s=3,n="except-void";typeof r=="object"&&((Object.hasOwn(r,"maximum")||Object.hasOwn(r,"max"))&&(s=r.maximum||r.max),n=r.countThis,!n&&Object.hasOwn(r,"countVoidThis")&&(n=r.countVoidThis?"always":"except-void"),n||="except-void"),typeof r=="number"&&(s=r);function i(o){let a=o.params.length>0&&o.params[0].type==="Identifier"&&o.params[0].name==="this"?o.params[0]:null,l=o.params.length;a&&(n==="never"||n==="except-void"&&a.typeAnnotation?.typeAnnotation.type==="TSVoidKeyword")&&(l=o.params.length-1),l>s&&t.report({loc:OA.getFunctionHeadLoc(o,e),node:o,messageId:"exceed",data:{name:I4(OA.getFunctionNameWithKind(o)),count:l,max:s}})}return{FunctionDeclaration:i,ArrowFunctionExpression:i,FunctionExpression:i,TSDeclareFunction:i,TSFunctionType:i}}}});var MA=B((nre,jA)=>{"use strict";var RA=X(),{upperCaseFirst:P4}=In();jA.exports={meta:{type:"suggestion",docs:{description:"Enforce a maximum number of statements allowed in function blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-statements"},schema:[{oneOf:[{type:"integer",minimum:0},{type:"object",properties:{maximum:{type:"integer",minimum:0},max:{type:"integer",minimum:0}},additionalProperties:!1}]},{type:"object",properties:{ignoreTopLevelFunctions:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[10],messages:{exceed:"{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}."}},create(t){let e=[],r=t.options[0],s=t.options[1]&&t.options[1].ignoreTopLevelFunctions||!1,n=[],i=10;typeof r=="object"&&(Object.hasOwn(r,"maximum")||Object.hasOwn(r,"max"))?i=r.maximum||r.max:typeof r=="number"&&(i=r);function o(c,p,h){if(p>h){let f=P4(RA.getFunctionNameWithKind(c));t.report({node:c,loc:RA.getFunctionHeadLoc(c,t.sourceCode),messageId:"exceed",data:{name:f,count:p,max:h}})}}function a(){e.push(0)}function l(c){let p=e.pop();c.type!=="StaticBlock"&&(s&&e.length===0?n.push({node:c,count:p}):o(c,p,i))}function u(c){e[e.length-1]+=c.body.length}return{FunctionDeclaration:a,FunctionExpression:a,ArrowFunctionExpression:a,StaticBlock:a,BlockStatement:u,"FunctionDeclaration:exit":l,"FunctionExpression:exit":l,"ArrowFunctionExpression:exit":l,"StaticBlock:exit":l,"Program:exit"(){n.length!==1&&n.forEach(c=>{let p=c.count,h=c.node;o(h,p,i)})}}}}});var UA=B((sre,qA)=>{"use strict";var F4=X();qA.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"max-statements-per-line",url:"https://eslint.style/rules/max-statements-per-line"}}]},type:"layout",docs:{description:"Enforce a maximum number of statements allowed per line",recommended:!1,url:"https://eslint.org/docs/latest/rules/max-statements-per-line"},schema:[{type:"object",properties:{max:{type:"integer",minimum:1,default:1}},additionalProperties:!1}],messages:{exceed:"This line has {{numberOfStatementsOnThisLine}} {{statements}}. Maximum allowed is {{maxStatementsPerLine}}."}},create(t){let e=t.sourceCode,r=t.options[0]||{},s=typeof r.max<"u"?r.max:1,n=0,i=0,o,a=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function l(){o&&t.report({node:o,messageId:"exceed",data:{numberOfStatementsOnThisLine:i,maxStatementsPerLine:s,statements:i===1?"statement":"statements"}}),o=null}function u(h){return e.getLastToken(h,F4.isNotSemicolonToken)}function c(h){let f=h.loc.start.line;a.test(h.parent.type)&&h.parent.alternate!==h||(f===n?i+=1:(l(),i=1,n=f),i===s+1&&(o=o||h))}function p(h){let f=u(h).loc.end.line;f!==n&&(l(),i=1,n=f)}return{BreakStatement:c,ClassDeclaration:c,ContinueStatement:c,DebuggerStatement:c,DoWhileStatement:c,ExpressionStatement:c,ForInStatement:c,ForOfStatement:c,ForStatement:c,FunctionDeclaration:c,IfStatement:c,ImportDeclaration:c,LabeledStatement:c,ReturnStatement:c,SwitchStatement:c,ThrowStatement:c,TryStatement:c,VariableDeclaration:c,WhileStatement:c,WithStatement:c,ExportNamedDeclaration:c,ExportDefaultDeclaration:c,ExportAllDeclaration:c,"BreakStatement:exit":p,"ClassDeclaration:exit":p,"ContinueStatement:exit":p,"DebuggerStatement:exit":p,"DoWhileStatement:exit":p,"ExpressionStatement:exit":p,"ForInStatement:exit":p,"ForOfStatement:exit":p,"ForStatement:exit":p,"FunctionDeclaration:exit":p,"IfStatement:exit":p,"ImportDeclaration:exit":p,"LabeledStatement:exit":p,"ReturnStatement:exit":p,"SwitchStatement:exit":p,"ThrowStatement:exit":p,"TryStatement:exit":p,"VariableDeclaration:exit":p,"WhileStatement:exit":p,"WithStatement:exit":p,"ExportNamedDeclaration:exit":p,"ExportDefaultDeclaration:exit":p,"ExportAllDeclaration:exit":p,"Program:exit":l}}}});var VA=B((ire,$A)=>{"use strict";var ri=X();$A.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"9.3.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"multiline-comment-style",url:"https://eslint.style/rules/multiline-comment-style"}}]},type:"suggestion",docs:{description:"Enforce a particular style for multiline comments",recommended:!1,url:"https://eslint.org/docs/latest/rules/multiline-comment-style"},fixable:"whitespace",schema:{anyOf:[{type:"array",items:[{enum:["starred-block","bare-block"]}],additionalItems:!1},{type:"array",items:[{enum:["separate-lines"]},{type:"object",properties:{checkJSDoc:{type:"boolean"}},additionalProperties:!1}],additionalItems:!1}]},messages:{expectedBlock:"Expected a block comment instead of consecutive line comments.",expectedBareBlock:"Expected a block comment without padding stars.",startNewline:"Expected a linebreak after '/*'.",endNewline:"Expected a linebreak before '*/'.",missingStar:"Expected a '*' at the start of this line.",alignment:"Expected this line to be aligned with the start of the comment.",expectedLines:"Expected multiple line comments instead of a block comment."}},create(t){let e=t.sourceCode,r=t.options[0]||"starred-block",n=!!(t.options[1]||{}).checkJSDoc;function i(v){return/^\s*\*/u.test(v)}function o([v]){if(v.type!=="Block")return!1;let S=v.value.split(ri.LINEBREAK_MATCHER);return S.length>0&&S.every((A,E)=>(E===0||E===S.length-1?/^\s*$/u:/^\s*\*/u).test(A))}function a([v]){if(v.type!=="Block")return!1;let S=v.value.split(ri.LINEBREAK_MATCHER);return/^\*\s*$/u.test(S[0])&&S.slice(1,-1).every(A=>/^\s* /u.test(A))&&/^\s*$/u.test(S.at(-1))}function l(v){let S=v.map(({value:A})=>A).filter(A=>A.trim().length).every(A=>A.startsWith(" "));return v.map(({value:A})=>S?A.replace(/^ /u,""):A)}function u(v){let S=v.value.split(ri.LINEBREAK_MATCHER).filter((E,k,T)=>!(k===0||k===T.length-1)).map(E=>E.replace(/^\s*$/u,"")),A=S.map(E=>E.replace(/\s*\*/u,"")).filter(E=>E.trim().length).every(E=>E.startsWith(" "));return S.map(E=>E.replace(A?/\s*\* ?/u:/\s*\*/u,""))}function c(v){let S=v.value.split(ri.LINEBREAK_MATCHER).map(k=>k.replace(/^\s*$/u,"")),A=`${e.text.slice(v.range[0]-v.loc.start.column,v.range[0])} `,E="";for(let[k,T]of S.entries()){if(!T.trim().length||k===0)continue;let[,w]=T.match(/^(\s*\*?\s*)/u);if(w.length<A.length){let R=A.slice(w.length-A.length);R.length>E.length&&(E=R)}}return S.map(k=>{let T=k.match(/^(\s*\*?\s*)(.*)/u),[,w,R]=T;return w.length>A.length?`${w.slice(A.length-(E.length+w.length))}${R}`:w.length<A.length?`${w.slice(A.length)}${R}`:R})}function p(v){let[S]=v;return S.type==="Line"?l(v):o(v)?u(S):c(S)}function h(v){return e.text.slice(v.range[0]-v.loc.start.column,v.range[0])}function f(v,S){let A=h(v);return`/*
64
+ ${S.map(E=>`${A} * ${E}`).join(`
65
+ `)}
66
+ ${A} */`}function d(v,S){return S.map(A=>`// ${A}`).join(`
67
+ ${h(v)}`)}function g(v,S){return`/* ${S.join(`
68
+ ${h(v)} `)} */`}let y={"starred-block"(v){let[S]=v,A=p(v);if(!A.some(E=>E.includes("*/")))if(v.length>1)t.report({loc:{start:S.loc.start,end:v.at(-1).loc.end},messageId:"expectedBlock",fix(E){let k=[S.range[0],v.at(-1).range[1]];return A.some(T=>T.startsWith("/"))?null:E.replaceTextRange(k,f(S,A))}});else{let E=S.value.split(ri.LINEBREAK_MATCHER),T=`${h(S)} *`;if(!/^\*?\s*$/u.test(E[0])){let w=S.value.startsWith("*")?S.range[0]+1:S.range[0];t.report({loc:{start:S.loc.start,end:{line:S.loc.start.line,column:S.loc.start.column+2}},messageId:"startNewline",fix:R=>R.insertTextAfterRange([w,w+2],`
69
+ ${T}`)})}/^\s*$/u.test(E.at(-1))||t.report({loc:{start:{line:S.loc.end.line,column:S.loc.end.column-2},end:S.loc.end},messageId:"endNewline",fix:w=>w.replaceTextRange([S.range[1]-2,S.range[1]],`
70
+ ${T}/`)});for(let w=S.loc.start.line+1;w<=S.loc.end.line;w++){let R=e.lines[w-1],j=i(R)?"alignment":"missingStar";R.startsWith(T)||t.report({loc:{start:{line:w,column:0},end:{line:w,column:R.length}},messageId:j,fix($){let M=e.getIndexFromLoc({line:w,column:0});if(j==="alignment"){let[,P=""]=R.match(/^(\s*\*)/u)||[],F=M+P.length;return $.replaceTextRange([M,F],T)}let[,N=""]=R.match(/^(\s*)/u)||[],b=M+N.length,C;for(let[P,F]of E.entries()){if(!/\S+/u.test(F))continue;let I=e.lines[S.loc.start.line-1+P],[,U="",z=""]=I.match(/^(\s*(?:\/?\*)?(\s*))/u)||[];C=`${N.slice(U.length)}${z}`,/^\s*\//u.test(R)&&C.length===0&&(C+=" ");break}return $.replaceTextRange([M,b],`${T}${C}`)}})}}},"separate-lines"(v){let[S]=v,A=a(v);if(S.type!=="Block"||!n&&A)return;let E=p(v);A&&(E=E.slice(1,E.length-1));let k=e.getTokenAfter(S,{includeComments:!0});k&&S.loc.end.line===k.loc.start.line||t.report({loc:{start:S.loc.start,end:{line:S.loc.start.line,column:S.loc.start.column+2}},messageId:"expectedLines",fix(T){return T.replaceText(S,d(S,E))}})},"bare-block"(v){if(a(v))return;let[S]=v,A=p(v);S.type==="Line"&&A.length>1&&!A.some(E=>E.includes("*/"))&&t.report({loc:{start:S.loc.start,end:v.at(-1).loc.end},messageId:"expectedBlock",fix(E){return E.replaceTextRange([S.range[0],v.at(-1).range[1]],g(S,A))}}),o(v)&&t.report({loc:{start:S.loc.start,end:{line:S.loc.start.line,column:S.loc.start.column+2}},messageId:"expectedBareBlock",fix(E){return E.replaceText(S,g(S,A))}})}};return{Program(){return e.getAllComments().filter(v=>v.type!=="Shebang").filter(v=>!ri.COMMENTS_IGNORE_PATTERN.test(v.value)).filter(v=>{let S=e.getTokenBefore(v,{includeComments:!0});return!S||S.loc.end.line<v.loc.start.line}).reduce((v,S,A,E)=>{let k=e.getTokenBefore(S,{includeComments:!0});return S.type==="Line"&&A&&E[A-1].type==="Line"&&k&&k.loc.end.line===S.loc.start.line-1&&k===E[A-1]?v.at(-1).push(S):v.push([S]),v},[]).filter(v=>!(v.length===1&&v[0].loc.start.line===v[0].loc.end.line)).forEach(y[r])}}}}});var zA=B((are,WA)=>{"use strict";var _n=X();WA.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"multiline-ternary",url:"https://eslint.style/rules/multiline-ternary"}}]},type:"layout",docs:{description:"Enforce newlines between operands of ternary expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/multiline-ternary"},schema:[{enum:["always","always-multiline","never"]}],messages:{expectedTestCons:"Expected newline between test and consequent of ternary expression.",expectedConsAlt:"Expected newline between consequent and alternate of ternary expression.",unexpectedTestCons:"Unexpected newline between test and consequent of ternary expression.",unexpectedConsAlt:"Unexpected newline between consequent and alternate of ternary expression."},fixable:"whitespace"},create(t){let e=t.sourceCode,r=t.options[0],s=r!=="never",n=r==="always-multiline";return{ConditionalExpression(i){let o=e.getTokenAfter(i.test,_n.isNotClosingParenToken),a=e.getTokenAfter(i.consequent,_n.isNotClosingParenToken),l=e.getFirstToken(i),u=e.getTokenBefore(o),c=e.getTokenAfter(o),p=e.getTokenBefore(a),h=e.getTokenAfter(a),f=_n.isTokenOnSameLine(u,c),d=_n.isTokenOnSameLine(p,h),g=!!e.getCommentsInside(i).length;if(!s)f||t.report({node:i.test,loc:{start:l.loc.start,end:u.loc.end},messageId:"unexpectedTestCons",fix(y){if(g)return null;let v=[],S=_n.isTokenOnSameLine(u,o),A=_n.isTokenOnSameLine(o,c);return S||v.push(y.removeRange([u.range[1],o.range[0]])),A||v.push(y.removeRange([o.range[1],c.range[0]])),v}}),d||t.report({node:i.consequent,loc:{start:c.loc.start,end:p.loc.end},messageId:"unexpectedConsAlt",fix(y){if(g)return null;let v=[],S=_n.isTokenOnSameLine(p,a),A=_n.isTokenOnSameLine(a,h);return S||v.push(y.removeRange([p.range[1],a.range[0]])),A||v.push(y.removeRange([a.range[1],h.range[0]])),v}});else{if(n&&i.loc.start.line===i.loc.end.line)return;f&&t.report({node:i.test,loc:{start:l.loc.start,end:u.loc.end},messageId:"expectedTestCons",fix:y=>g?null:y.replaceTextRange([u.range[1],o.range[0]],`
71
+ `)}),d&&t.report({node:i.consequent,loc:{start:c.loc.start,end:p.loc.end},messageId:"expectedConsAlt",fix:y=>g?null:y.replaceTextRange([p.range[1],a.range[0]],`
72
+ `)})}}}}}});var KA=B((ore,GA)=>{"use strict";var ua=X(),_4=new Set(["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol","BigInt"]),B4=new Set(["global","globalThis","self","window"]);GA.exports={meta:{type:"suggestion",docs:{description:"Require constructor names to begin with a capital letter",recommended:!1,url:"https://eslint.org/docs/latest/rules/new-cap"},schema:[{type:"object",properties:{newIsCap:{type:"boolean"},capIsNew:{type:"boolean"},newIsCapExceptions:{type:"array",items:{type:"string"}},newIsCapExceptionPattern:{type:"string"},capIsNewExceptions:{type:"array",items:{type:"string"}},capIsNewExceptionPattern:{type:"string"},properties:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{capIsNew:!0,capIsNewExceptions:[],newIsCap:!0,newIsCapExceptions:[],properties:!0}],messages:{upper:"A function with a name starting with an uppercase letter should only be used as a constructor.",lower:"A constructor name should not start with a lowercase letter."}},create(t){let[e]=t.options,r=!e.properties,s=new Set(e.newIsCapExceptions),n=e.newIsCapExceptionPattern?new RegExp(e.newIsCapExceptionPattern,"u"):null,i=new Set(e.capIsNewExceptions),o=e.capIsNewExceptionPattern?new RegExp(e.capIsNewExceptionPattern,"u"):null,a={},l=t.sourceCode;function u(g){return g.callee.type==="Identifier"?g.callee.name:ua.getStaticPropertyName(g.callee)||""}function c(g){let[y]=g,v=y.toLowerCase(),S=y.toUpperCase();return v===S?"non-alpha":y===v?"lower":"upper"}function p(g){return g.type==="Identifier"&&B4.has(g.name)&&l.isGlobalReference(g)}function h(g,y){let v=ua.skipChainExpression(g);return v.type==="MemberExpression"?ua.getStaticPropertyName(v)===y&&p(v.object):v.type==="Identifier"&&v.name===y&&l.isGlobalReference(v)}function f(g,y,v,S){let A=l.getText(y.callee);if(g.has(v)||g.has(A)||S&&S.test(A))return!0;let E=ua.skipChainExpression(y.callee);if(E.type==="MemberExpression"){if(r)return!0;if(v==="UTC")return h(E.object,"Date")}return!1}function d(g,y){let v=ua.skipChainExpression(g.callee);v.type==="MemberExpression"&&(v=v.property),t.report({node:g,loc:v.loc,messageId:y})}return e.newIsCap&&(a.NewExpression=function(g){let y=u(g);y&&(c(y)!=="lower"||f(s,g,y,n)||d(g,"lower"))}),e.capIsNew&&(a.CallExpression=function(g){let y=u(g);y&&(c(y)!=="upper"||f(i,g,y,o)||_4.has(y)&&h(g.callee,y)||d(g,"upper"))}),a}}});var XA=B((lre,JA)=>{"use strict";var HA=X();JA.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"new-parens",url:"https://eslint.style/rules/new-parens"}}]},type:"layout",docs:{description:"Enforce or disallow parentheses when invoking a constructor with no arguments",recommended:!1,url:"https://eslint.org/docs/latest/rules/new-parens"},fixable:"code",schema:[{enum:["always","never"]}],messages:{missing:"Missing '()' invoking a constructor.",unnecessary:"Unnecessary '()' invoking a constructor with no arguments."}},create(t){let r=t.options[0]!=="never",s=t.sourceCode;return{NewExpression(n){if(n.arguments.length!==0)return;let i=s.getLastToken(n),a=i&&HA.isClosingParenToken(i)&&HA.isOpeningParenToken(s.getTokenBefore(i))&&n.callee.range[1]<n.range[1];r?a||t.report({node:n,messageId:"missing",fix:l=>l.insertTextAfter(n,"()")}):a&&t.report({node:n,messageId:"unnecessary",fix:l=>[l.remove(s.getTokenBefore(i)),l.remove(i),l.insertTextBefore(n,"("),l.insertTextAfter(n,")")]})}}}}});var YA=B((ure,QA)=>{"use strict";var O4=X();QA.exports={meta:{type:"layout",docs:{description:"Require or disallow an empty line after variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-after-var"},schema:[{enum:["never","always"]}],fixable:"whitespace",messages:{expected:"Expected blank line after variable declarations.",unexpected:"Unexpected blank line after variable declarations."},deprecated:{message:"The rule was replaced with a more general rule.",url:"https://eslint.org/blog/2017/06/eslint-v4.0.0-released/",deprecatedSince:"4.0.0",availableUntil:"11.0.0",replacedBy:[{message:"The new rule moved to a plugin.",url:"https://eslint.org/docs/latest/rules/padding-line-between-statements#examples",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"padding-line-between-statements",url:"https://eslint.style/rules/padding-line-between-statements"}}]}},create(t){let e=t.sourceCode,r=t.options[0]==="never"?"never":"always",s=e.getAllComments().reduce((h,f)=>(h[f.loc.start.line]=f.loc.end.line,h),{});function n(h){let f=e.getLastToken(h);if(f.type==="Punctuator"&&f.value===";"){let d=e.getTokenBefore(f);if(d.loc.end.line!==f.loc.start.line)return d}return f}function i(h){return h==="var"||h==="let"||h==="const"}function o(h){return h==="ForStatement"||h==="ForInStatement"||h==="ForOfStatement"}function a(h){return h==="ExportNamedDeclaration"||h==="ExportSpecifier"||h==="ExportDefaultDeclaration"||h==="ExportAllDeclaration"}function l(h){let f=e.getTokenAfter(h);return!f||f.type==="Punctuator"&&f.value==="}"}function u(h){let f=s[h];return s[f+1]?u(f+1):f}function c(h,f){return h.loc.start.line>u(f)+1}function p(h){let f=n(h),d=f===e.getLastToken(h)?e.getTokenAfter(h):e.getLastToken(h),g=f.loc.end.line+1;if(!d||o(h.parent.type)||a(h.parent.type)||d.type==="Keyword"&&i(d.value)||l(h))return;let y=d.loc.start.line>g,v=typeof s[g]<"u";r==="never"&&y&&!v&&t.report({node:h,messageId:"unexpected",fix(S){let A=e.getText().slice(f.range[1],d.range[0]).split(O4.LINEBREAK_MATCHER);return S.replaceTextRange([f.range[1],d.range[0]],`${A.slice(0,-1).join("")}
73
+ ${A.at(-1)}`)}}),r==="always"&&(!y||v&&!c(d,g))&&t.report({node:h,messageId:"expected",fix(S){return(y?u(g):f.loc.end.line)===d.loc.start.line?S.insertTextBefore(d,`
74
+
75
+ `):S.insertTextBeforeRange([d.range[0]-d.loc.start.column,d.range[1]],`
76
+ `)}})}return{VariableDeclaration:p}}}});var ek=B((cre,ZA)=>{"use strict";ZA.exports={meta:{type:"layout",docs:{description:"Require an empty line before `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-before-return"},fixable:"whitespace",schema:[],messages:{expected:"Expected newline before return statement."},deprecated:{message:"The rule was replaced with a more general rule.",url:"https://eslint.org/blog/2017/06/eslint-v4.0.0-released/",deprecatedSince:"4.0.0",availableUntil:"11.0.0",replacedBy:[{message:"The new rule moved to a plugin.",url:"https://eslint.org/docs/latest/rules/padding-line-between-statements#examples",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"padding-line-between-statements",url:"https://eslint.style/rules/padding-line-between-statements"}}]}},create(t){let e=t.sourceCode;function r(l,u){let c=e.getTokenBefore(l);return u.includes(c.value)}function s(l){let u=l.parent.type;return l.parent.body?Array.isArray(l.parent.body)?l.parent.body[0]===l:l.parent.body===l:u==="IfStatement"?r(l,["else",")"]):u==="DoWhileStatement"?r(l,["do"]):u==="SwitchCase"?r(l,[":"]):r(l,[")"])}function n(l,u){let c=e.getCommentsBefore(l),p=0;return c.length&&c.forEach(h=>{p++,h.type==="Block"&&(p+=h.loc.end.line-h.loc.start.line),h.loc.start.line===u&&p--,h.loc.end.line===l.loc.start.line&&p--}),p}function i(l){let u=e.getTokenBefore(l),c;return u?c=u.loc.end.line:c=0,c}function o(l){let u=l.loc.start.line,c=i(l),p=n(l,c);return u-c-p>1}function a(l){let u=e.getCommentsBefore(l),c=u.at(-1),p=e.getTokenBefore(l);return u.length===0||c.loc.end.line===p.loc.end.line&&c.loc.end.line!==l.loc.start.line}return{ReturnStatement(l){!s(l)&&!o(l)&&t.report({node:l,messageId:"expected",fix(u){if(a(l)){let c=e.getTokenBefore(l),p=l.loc.start.line===c.loc.end.line?`
77
+
78
+ `:`
79
+ `;return u.insertTextBefore(l,p)}return null}})}}}}});var rk=B((pre,tk)=>{"use strict";var ns=X();tk.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"newline-per-chained-call",url:"https://eslint.style/rules/newline-per-chained-call"}}]},type:"layout",docs:{description:"Require a newline after each call in a method chain",recommended:!1,url:"https://eslint.org/docs/latest/rules/newline-per-chained-call"},fixable:"whitespace",schema:[{type:"object",properties:{ignoreChainWithDepth:{type:"integer",minimum:1,maximum:10,default:2}},additionalProperties:!1}],messages:{expected:"Expected line break before `{{callee}}`."}},create(t){let e=t.options[0]||{},r=e.ignoreChainWithDepth||2,s=t.sourceCode;function n(o){return o.computed?o.optional?"?.[":"[":o.optional?"?.":"."}function i(o){let a=n(o),l=s.getText(o.property).split(ns.LINEBREAK_MATCHER),u=o.computed&&l.length===1?"]":"";return a+l[0]+u}return{"CallExpression:exit"(o){let a=ns.skipChainExpression(o.callee);if(a.type!=="MemberExpression")return;let l=ns.skipChainExpression(a.object),u=1;for(;l&&l.callee;)u+=1,l=ns.skipChainExpression(ns.skipChainExpression(l.callee).object);if(u>r&&ns.isTokenOnSameLine(a.object,a.property)){let c=s.getTokenAfter(a.object,ns.isNotClosingParenToken);t.report({node:a.property,loc:{start:c.loc.start,end:a.loc.end},messageId:"expected",data:{callee:i(a)},fix(p){return p.insertTextBefore(c,`
80
+ `)}})}}}}}});var ak=B((fre,ik)=>{"use strict";var{getStaticPropertyName:L4,getVariableByName:N4,skipChainExpression:R4}=X();function nk(t){return/^(?:alert|confirm|prompt)$/u.test(t)}function j4(t,e){let r=t.references.filter(s=>s.identifier.range[0]===e.range[0]&&s.identifier.range[1]===e.range[1]);return r.length===1?r[0]:null}function sk(t,e){let r=j4(t,e);return r&&r.resolved&&r.resolved.defs.length>0}function M4(t,e){return t.type==="global"&&e.type==="ThisExpression"?!0:e.type==="Identifier"&&(e.name==="window"||e.name==="globalThis"&&N4(t,"globalThis"))?!sk(t,e):!1}ik.exports={meta:{type:"suggestion",docs:{description:"Disallow the use of `alert`, `confirm`, and `prompt`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-alert"},schema:[],messages:{unexpected:"Unexpected {{name}}."}},create(t){let e=t.sourceCode;return{CallExpression(r){let s=R4(r.callee),n=e.getScope(r);if(s.type==="Identifier"){let i=s.name;!sk(n,s)&&nk(s.name)&&t.report({node:r,messageId:"unexpected",data:{name:i}})}else if(s.type==="MemberExpression"&&M4(n,s.object)){let i=L4(s);nk(i)&&t.report({node:r,messageId:"unexpected",data:{name:i}})}}}}}});var uk=B((hre,lk)=>{"use strict";var{getVariableByName:q4,isClosingParenToken:U4,isOpeningParenToken:ok,isStartOfExpressionStatement:$4,needsPrecedingSemicolon:V4}=X();lk.exports={meta:{type:"suggestion",docs:{description:"Disallow `Array` constructors",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-array-constructor"},fixable:"code",hasSuggestions:!0,schema:[],messages:{preferLiteral:"The array literal notation [] is preferable.",useLiteral:"Replace with an array literal.",useLiteralAfterSemicolon:"Replace with an array literal, add preceding semicolon."}},create(t){let e=t.sourceCode;function r(i){let o=e.getFirstToken(i),a=e.getLastToken(i),l=e.getLastToken(i.callee);for(;l!==a&&!ok(l);)l=e.getTokenAfter(l);return e.commentsExistBetween(o,l)}function s(i){let o=e.getLastToken(i);if(!U4(o))return"";let a=i.callee;do if(a=e.getTokenAfter(a),!a||a===o)return"";while(!ok(a));return e.text.slice(a.range[1],o.range[0])}function n(i){if(i.callee.type!=="Identifier"||i.callee.name!=="Array"||i.typeArguments||i.arguments.length===1&&i.arguments[0].type!=="SpreadElement")return;let o=q4(e.getScope(i),"Array");if(o&&o.identifiers.length===0){let a=s(i),l,u,c=i.arguments.reduce((h,f)=>f.type!=="SpreadElement"?h+1:h,0),p=i.optional||i.arguments.length>0&&c<2||r(i);$4(i)&&V4(e,i)?(l=`;[${a}]`,u="useLiteralAfterSemicolon"):(l=`[${a}]`,u="useLiteral"),t.report({node:i,messageId:"preferLiteral",fix(h){return p?null:h.replaceText(i,l)},suggest:[{messageId:u,fix(h){return p?h.replaceText(i,l):null}}]})}}return{CallExpression:n,NewExpression:n}}}});var pk=B((mre,ck)=>{"use strict";ck.exports={meta:{type:"problem",docs:{description:"Disallow using an async function as a Promise executor",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-async-promise-executor"},fixable:null,schema:[],messages:{async:"Promise executor functions should not be async."}},create(t){let e=t.sourceCode;return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(r){e.isGlobalReference(r.callee)&&t.report({node:e.getFirstToken(r.arguments[0],s=>s.value==="async"),messageId:"async"})}}}}});var hk=B((dre,fk)=>{"use strict";function W4(t){let e=t.type;return e==="FunctionDeclaration"||e==="FunctionExpression"||e==="ArrowFunctionExpression"||e==="ForOfStatement"&&t.await===!0}function z4(t,e){switch(e.type){case"ForStatement":return t===e.test||t===e.update||t===e.body;case"ForOfStatement":case"ForInStatement":return t===e.body||t===e.left&&t.kind==="await using";case"WhileStatement":case"DoWhileStatement":return t===e.test||t===e.body;default:return!1}}fk.exports={meta:{type:"problem",docs:{description:"Disallow `await` inside of loops",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-await-in-loop"},schema:[],messages:{unexpectedAwait:"Unexpected `await` inside a loop."}},create(t){function e(r){if(r.type==="VariableDeclaration"&&r.kind!=="await using"||r.type==="ForOfStatement"&&!r.await)return;let s=r,n=s.parent;for(;n&&!W4(n);){if(z4(s,n)){t.report({node:r,messageId:"unexpectedAwait"});return}s=n,n=n.parent}}return{AwaitExpression:e,ForOfStatement:e,VariableDeclaration:e}}}});var gk=B((gre,dk)=>{"use strict";var mk=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];dk.exports={meta:{type:"suggestion",defaultOptions:[{allow:[],int32Hint:!1}],docs:{description:"Disallow bitwise operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-bitwise"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:mk},uniqueItems:!0},int32Hint:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(t){let[{allow:e,int32Hint:r}]=t.options;function s(l){t.report({node:l,messageId:"unexpected",data:{operator:l.operator}})}function n(l){return mk.includes(l.operator)}function i(l){return e.includes(l.operator)}function o(l){return r&&l.operator==="|"&&l.right&&l.right.type==="Literal"&&l.right.value===0}function a(l){n(l)&&!i(l)&&!o(l)&&s(l)}return{AssignmentExpression:a,BinaryExpression:a,UnaryExpression:a}}}});var xk=B((yre,yk)=>{"use strict";yk.exports={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:"11.0.0",replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-deprecated-api",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-deprecated-api.md"}}]},type:"problem",docs:{description:"Disallow use of the `Buffer()` constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-buffer-constructor"},schema:[],messages:{deprecated:"{{expr}} is deprecated. Use Buffer.from(), Buffer.alloc(), or Buffer.allocUnsafe() instead."}},create(t){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(e){t.report({node:e,messageId:"deprecated",data:{expr:e.type==="CallExpression"?"Buffer()":"new Buffer()"}})}}}}});var bk=B((xre,Ek)=>{"use strict";Ek.exports={meta:{type:"suggestion",docs:{description:"Disallow the use of `arguments.caller` or `arguments.callee`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-caller"},schema:[],messages:{unexpected:"Avoid arguments.{{prop}}."}},create(t){return{MemberExpression(e){let r=e.object.name,s=e.property.name;r==="arguments"&&!e.computed&&s&&s.match(/^calle[er]$/u)&&t.report({node:e,messageId:"unexpected",data:{prop:s}})}}}}});var Sk=B((Ere,vk)=>{"use strict";vk.exports={meta:{type:"suggestion",docs:{description:"Disallow lexical declarations in case clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-case-declarations"},hasSuggestions:!0,schema:[],messages:{addBrackets:"Add {} brackets around the case block.",unexpected:"Unexpected lexical declaration in case block."}},create(t){function e(r){switch(r.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return r.kind!=="var";default:return!1}}return{SwitchCase(r){for(let s=0;s<r.consequent.length;s++){let n=r.consequent[s];e(n)&&t.report({node:n,messageId:"unexpected",suggest:[{messageId:"addBrackets",fix:i=>[i.insertTextBefore(r.consequent[0],"{ "),i.insertTextAfter(r.consequent.at(-1)," }")]}]})}}}}}});var wk=B((bre,Ck)=>{"use strict";var G4=X();Ck.exports={meta:{type:"suggestion",docs:{description:"Disallow `catch` clause parameters from shadowing variables in the outer scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-catch-shadow"},deprecated:{message:"This rule was renamed.",url:"https://eslint.org/blog/2018/07/eslint-v5.1.0-released/",deprecatedSince:"5.1.0",availableUntil:"11.0.0",replacedBy:[{rule:{name:"no-shadow",url:"https://eslint.org/docs/rules/no-shadow"}}]},schema:[],messages:{mutable:"Value of '{{name}}' may be overwritten in IE 8 and earlier."}},create(t){let e=t.sourceCode;function r(s,n){return G4.getVariableByName(s,n)!==null}return{"CatchClause[param!=null]"(s){let n=e.getScope(s);n.block===s&&(n=n.upper),r(n,s.param.name)&&t.report({node:s,messageId:"mutable",data:{name:s.param.name}})}}}}});var kk=B((vre,Ak)=>{"use strict";var K4=X();Ak.exports={meta:{type:"problem",docs:{description:"Disallow reassigning class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-class-assign"},schema:[],messages:{class:"'{{name}}' is a class."}},create(t){let e=t.sourceCode;function r(n){K4.getModifyingReferences(n.references).forEach(i=>{t.report({node:i.identifier,messageId:"class",data:{name:i.identifier.name}})})}function s(n){e.getDeclaredVariables(n).forEach(r)}return{ClassDeclaration:s,ClassExpression:s}}}});var Dk=B((Sre,Tk)=>{"use strict";var{getVariableByName:H4}=X();Tk.exports={meta:{type:"problem",docs:{description:"Disallow comparing against `-0`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-compare-neg-zero"},fixable:null,hasSuggestions:!0,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0.",suggestRemoveMinus:"Replace '-0' with '0' (keeps the current comparison behavior).",suggestObjectIs:"Replace with 'Object.is()' (changes the comparison to distinguish -0 from +0).",suggestNotObjectIs:"Replace with '!Object.is()' (changes the comparison to distinguish -0 from +0)."}},create(t){let e=t.sourceCode;function r(i){return i.type==="UnaryExpression"&&i.operator==="-"&&i.argument.type==="Literal"&&i.argument.value===0}function s(i){let o=e.getText(i);return i.type==="SequenceExpression"?`(${o})`:o}let n=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(i){if(!n.has(i.operator))return;let o=r(i.left),a=r(i.right);!o&&!a||t.report({node:i,messageId:"unexpected",data:{operator:i.operator},suggest:[{messageId:"suggestRemoveMinus",*fix(l){o&&(yield l.replaceText(i.left,"0")),a&&(yield l.replaceText(i.right,"0"))}},{messageId:i.operator==="==="?"suggestObjectIs":"suggestNotObjectIs",fix(l){if(i.operator!=="==="&&i.operator!=="!=="||e.getCommentsInside(i).length>0)return null;let u=H4(e.getScope(i),"Object");if(!u||u.identifiers.length>0)return null;let c=i.operator==="==="?"":"!";return l.replaceText(i,`${c}Object.is(${s(i.left)}, ${s(i.right)})`)}}]})}}}}});var Pk=B((Cre,Ik)=>{"use strict";var ca=X(),J4=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),X4={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};Ik.exports={meta:{type:"problem",defaultOptions:["except-parens"],docs:{description:"Disallow assignment operators in conditional expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-cond-assign"},schema:[{enum:["except-parens","always"]}],messages:{unexpected:"Unexpected assignment within {{type}}.",missing:"Expected a conditional expression and instead saw an assignment."}},create(t){let[e]=t.options,r=t.sourceCode;function s(l){return l.parent&&J4.has(l.parent.type)&&l===l.parent.test}function n(l){let u=l;do if(s(u))return u.parent;while((u=u.parent)&&!ca.isFunction(u));return null}function i(l){let u=r.getTokenBefore(l,1),c=r.getTokenAfter(l,1);return ca.isParenthesised(r,l)&&u&&ca.isOpeningParenToken(u)&&u.range[1]<=l.range[0]&&ca.isClosingParenToken(c)&&c.range[0]>=l.range[1]}function o(l){l.test&&l.test.type==="AssignmentExpression"&&(l.type==="ForStatement"?!ca.isParenthesised(r,l.test):!i(l.test))&&t.report({node:l.test,messageId:"missing"})}function a(l){let u=n(l);u&&t.report({node:l,messageId:"unexpected",data:{type:X4[u.type]||u.type}})}return e==="always"?{AssignmentExpression:a}:{DoWhileStatement:o,ForStatement:o,IfStatement:o,WhileStatement:o,ConditionalExpression:o}}}});var _k=B((wre,Fk)=>{"use strict";var Q4=X();function Y4(t){return t&&t.type==="ConditionalExpression"}Fk.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-confusing-arrow",url:"https://eslint.style/rules/no-confusing-arrow"}}]},type:"suggestion",docs:{description:"Disallow arrow functions where they could be confused with comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-confusing-arrow"},fixable:"code",schema:[{type:"object",properties:{allowParens:{type:"boolean",default:!0},onlyOneSimpleParam:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{confusing:"Arrow function used ambiguously with a conditional expression."}},create(t){let e=t.options[0]||{},r=e.allowParens||e.allowParens===void 0,s=e.onlyOneSimpleParam,n=t.sourceCode;function i(o){let a=o.body;Y4(a)&&!(r&&Q4.isParenthesised(n,a))&&!(s&&!(o.params.length===1&&o.params[0].type==="Identifier"))&&t.report({node:o,messageId:"confusing",fix(l){return r&&l.replaceText(o.body,`(${n.getText(o.body)})`)}})}return{ArrowFunctionExpression:i}}}});var Ok=B((Are,Bk)=>{"use strict";var dh=X();Bk.exports={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow the use of `console`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-console"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],hasSuggestions:!0,messages:{unexpected:"Unexpected console statement.",limited:"Unexpected console statement. Only these console methods are allowed: {{ allowed }}.",removeConsole:"Remove the console.{{ propertyName }}().",removeMethodCall:"Remove the console method call."}},create(t){let[{allow:e=[]}]=t.options,r=t.sourceCode;function s(u){let c=u.identifier;return c&&c.name==="console"}function n(u){let c=dh.getStaticPropertyName(u);return c&&e.includes(c)}function i(u){let c=u.identifier,p=c.parent;return p.type==="MemberExpression"&&p.object===c&&!n(p)}function o(u){let c=/^[:;{]$/u,p=/^[-[(/+`]/u,h=r.getTokenBefore(u),f=r.getTokenAfter(u);return!!f&&p.test(f.value)&&f.value!=="++"&&f.value!=="--"&&!!h&&!c.test(h.value)}function a(u){return u.parent.type==="CallExpression"&&u.parent.callee===u&&u.parent.parent.type==="ExpressionStatement"&&dh.STATEMENT_LIST_PARENTS.has(u.parent.parent.parent.type)&&!o(u.parent.parent)}function l(u){let c=u.identifier.parent,p=[];if(a(c)){let h={fix(f){return f.remove(c.parent.parent)}};c.computed?h.messageId="removeMethodCall":(h.messageId="removeConsole",h.data={propertyName:c.property.name}),p.push(h)}t.report({node:c,loc:c.loc,messageId:e.length?"limited":"unexpected",data:{allowed:e.join(", ")},suggest:p})}return{"Program:exit"(u){let c=r.getScope(u),p=dh.getVariableByName(c,"console"),h=p&&p.defs.length>0,f=p?p.references:c.through.filter(s);h||f.filter(i).forEach(l)}}}}});var Nk=B((kre,Lk)=>{"use strict";var Z4=X(),eV=new Set(["const","using","await using"]);Lk.exports={meta:{type:"problem",docs:{description:"Disallow reassigning `const`, `using`, and `await using` variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-const-assign"},schema:[],messages:{const:"'{{name}}' is constant."}},create(t){let e=t.sourceCode;function r(s){Z4.getModifyingReferences(s.references).forEach(n=>{t.report({node:n.identifier,messageId:"const",data:{name:n.identifier.name}})})}return{VariableDeclaration(s){eV.has(s.kind)&&e.getDeclaredVariables(s).forEach(r)}}}}});var $k=B((Tre,Uk)=>{"use strict";var{isNullLiteral:tV,isConstant:ss,isReferenceToGlobalVariable:Tr,isLogicalAssignmentOperator:qk,ECMASCRIPT_GLOBALS:rV}=X(),nV=new Set(["+","-","*","/","%","|","^","&","**","<<",">>",">>>"]),sV=new Set(["<","<=",">",">="]);function gh(t,e){return tV(e)||e.type==="Identifier"&&e.name==="undefined"&&Tr(t,e)||e.type==="UnaryExpression"&&e.operator==="void"}function ni(t,e,r){if(r&&gh(t,e))return!1;switch(e.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"Literal":case"TemplateLiteral":case"UpdateExpression":case"BinaryExpression":return!0;case"CallExpression":{if(e.callee.type!=="Identifier")return!1;let s=e.callee.name;return(s==="Boolean"||s==="String"||s==="Number"||s==="Symbol"||s==="BigInt")&&Tr(t,e.callee)}case"LogicalExpression":return e.operator==="??"&&ni(t,e.right,!0);case"AssignmentExpression":return e.operator==="="?ni(t,e.right,r):!qk(e.operator);case"UnaryExpression":return!0;case"SequenceExpression":{let s=e.expressions.at(-1);return ni(t,s,r)}case"Identifier":return e.name==="undefined"&&Tr(t,e);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function Rk(t,e){switch(e.type){case"Literal":return typeof e.value=="boolean";case"CallExpression":return e.callee.type==="Identifier"&&e.callee.name==="Boolean"&&Tr(t,e.callee)&&(e.arguments.length===0||ss(t,e.arguments[0],!0));case"UnaryExpression":return e.operator==="!"&&ss(t,e.argument,!0);default:return!1}}function yh(t,e){switch(e.type){case"ObjectExpression":case"ClassExpression":return!0;case"ArrayExpression":{let r=e.elements.filter(s=>s!==null&&s.type!=="SpreadElement");return e.elements.length===0||r.length>1}case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"UnaryExpression":return e.operator==="void"||e.operator==="typeof"?!0:e.operator==="!"?ss(t,e.argument,!0):!1;case"NewExpression":return!1;case"CallExpression":return e.callee.type==="Identifier"&&e.callee.name==="Boolean"&&Tr(t,e.callee)?e.arguments.length===0||ss(t,e.arguments[0],!0):!1;case"Literal":return!0;case"Identifier":return e.name==="undefined"&&Tr(t,e);case"TemplateLiteral":return e.expressions.length===0;case"AssignmentExpression":return e.operator==="="?yh(t,e.right):!1;case"SequenceExpression":{let r=e.expressions.at(-1);return yh(t,r)}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function xh(t,e){switch(e.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"TemplateLiteral":case"Literal":case"UpdateExpression":return!0;case"BinaryExpression":return nV.has(e.operator);case"UnaryExpression":return e.operator==="delete"?!1:e.operator==="!"?ss(t,e.argument,!0):!0;case"SequenceExpression":{let r=e.expressions.at(-1);return xh(t,r)}case"Identifier":return e.name==="undefined"&&Tr(t,e);case"AssignmentExpression":return e.operator==="="?xh(t,e.right):!qk(e.operator);case"CallExpression":{if(e.callee.type!=="Identifier")return!1;let r=e.callee.name;return(r==="String"||r==="Number"||r==="BigInt"||r==="Symbol")&&Tr(t,e.callee)?!0:r==="Boolean"&&Tr(t,e.callee)?e.arguments.length===0||ss(t,e.arguments[0],!0):!1}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function Bn(t,e){switch(e.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":return!0;case"NewExpression":return e.callee.type!=="Identifier"?!1:Object.hasOwn(rV,e.callee.name)&&Tr(t,e.callee);case"Literal":return typeof e.regex=="object";case"SequenceExpression":{let r=e.expressions.at(-1);return Bn(t,r)}case"AssignmentExpression":return e.operator==="="?Bn(t,e.right):!1;case"ConditionalExpression":return Bn(t,e.consequent)&&Bn(t,e.alternate);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function jk(t,e,r,s){if(s==="=="||s==="!="){if(gh(t,e)&&ni(t,r,!1)||Rk(t,e)&&yh(t,r))return r}else if((s==="==="||s==="!==")&&(gh(t,e)&&ni(t,r,!1)||Rk(t,e)&&xh(t,r)))return r;return null}function Mk(t,e){switch(e.type){case"Literal":return!0;case"UnaryExpression":return["-","+","~"].includes(e.operator)&&e.argument.type==="Literal";case"Identifier":return e.name==="undefined"&&Tr(t,e);case"TemplateLiteral":return e.expressions.length===0;default:return!1}}Uk.exports={meta:{type:"problem",docs:{description:"Disallow expressions where the operation doesn't affect the value",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-binary-expression"},defaultOptions:[{checkRelationalComparisons:!1}],schema:[{type:"object",properties:{checkRelationalComparisons:{type:"boolean"}},additionalProperties:!1}],messages:{constantBinaryOperand:"Unexpected constant binary expression. Compares constantly with the {{otherSide}}-hand side of the `{{operator}}`.",constantShortCircuit:"Unexpected constant {{property}} on the left-hand side of a `{{operator}}` expression.",alwaysNew:"Unexpected comparison to newly constructed object. These two values can never be equal.",bothAlwaysNew:"Unexpected comparison of two newly constructed objects. These two values can never be equal.",constantRelationalComparison:"Unexpected constant relational comparison. Both sides of the `{{operator}}` are literal values."}},create(t){let e=t.sourceCode,{checkRelationalComparisons:r}=t.options[0];return{LogicalExpression(s){let{operator:n,left:i}=s,o=e.getScope(s);(n==="&&"||n==="||")&&ss(o,i,!0)?t.report({node:i,messageId:"constantShortCircuit",data:{property:"truthiness",operator:n}}):n==="??"&&ni(o,i,!1)&&t.report({node:i,messageId:"constantShortCircuit",data:{property:"nullishness",operator:n}})},BinaryExpression(s){let n=e.getScope(s),{right:i,left:o,operator:a}=s,l=jk(n,o,i,a),u=jk(n,i,o,a);l?t.report({node:l,messageId:"constantBinaryOperand",data:{operator:a,otherSide:"left"}}):u?t.report({node:u,messageId:"constantBinaryOperand",data:{operator:a,otherSide:"right"}}):a==="==="||a==="!=="?Bn(n,o)?t.report({node:o,messageId:"alwaysNew"}):Bn(n,i)&&t.report({node:i,messageId:"alwaysNew"}):a==="=="||a==="!="?Bn(n,o)&&Bn(n,i)&&t.report({node:o,messageId:"bothAlwaysNew"}):r&&sV.has(a)&&Mk(n,o)&&Mk(n,i)&&t.report({node:s,messageId:"constantRelationalComparison",data:{operator:a}})}}}}});var zk=B((Dre,Wk)=>{"use strict";var{isConstant:Vk}=X();Wk.exports={meta:{type:"problem",defaultOptions:[{checkLoops:"allExceptWhileTrue"}],docs:{description:"Disallow constant expressions in conditions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-constant-condition"},schema:[{type:"object",properties:{checkLoops:{enum:["all","allExceptWhileTrue","none",!0,!1]}},additionalProperties:!1}],messages:{unexpected:"Unexpected constant condition."}},create(t){let e=[],r=t.sourceCode,[{checkLoops:s}]=t.options;s===!0?s="all":s===!1&&(s="none");let n=new Set;function i(p){p.test&&Vk(r.getScope(p),p.test,!0)&&n.add(p)}function o(p){n.has(p)&&(n.delete(p),t.report({node:p.test,messageId:"unexpected"}))}function a(p){p.test&&Vk(r.getScope(p),p.test,!0)&&t.report({node:p.test,messageId:"unexpected"})}function l(){e.push(n),n=new Set}function u(){n=e.pop()}function c(p){(s==="all"||s==="allExceptWhileTrue")&&i(p)}return{ConditionalExpression:a,IfStatement:a,WhileStatement(p){p.test.type==="Literal"&&p.test.value===!0&&s==="allExceptWhileTrue"||c(p)},"WhileStatement:exit":o,DoWhileStatement:c,"DoWhileStatement:exit":o,ForStatement:c,"ForStatement > .test":p=>c(p.parent),"ForStatement:exit":o,FunctionDeclaration:l,"FunctionDeclaration:exit":u,FunctionExpression:l,"FunctionExpression:exit":u,YieldExpression:()=>n.clear()}}}});var Kk=B((Ire,Gk)=>{"use strict";Gk.exports={meta:{type:"problem",docs:{description:"Disallow returning value from constructor",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-constructor-return"},schema:[],fixable:null,messages:{unexpected:"Unexpected return statement in constructor."}},create(t){let e=[];return{onCodePathStart(r,s){e.push(s)},onCodePathEnd(){e.pop()},ReturnStatement(r){let s=e.at(-1);s.parent&&s.parent.type==="MethodDefinition"&&s.parent.kind==="constructor"&&r.argument&&t.report({node:r,messageId:"unexpected"})}}}}});var Jk=B((Pre,Hk)=>{"use strict";Hk.exports={meta:{type:"suggestion",docs:{description:"Disallow `continue` statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-continue"},schema:[],messages:{unexpected:"Unexpected use of continue statement."}},create(t){return{ContinueStatement(e){t.report({node:e,messageId:"unexpected"})}}}}});var Ir=B(nn=>{"use strict";Object.defineProperty(nn,"__esModule",{value:!0});var iV=Object.freeze({__proto__:null}),nT=2025,wl,Al;function aV(t){return t<65?!1:t<91?!0:t<97?!1:t<123?!0:iT(t)}function sT(t){return t<48?!1:t<58?!0:t<65?!1:t<91||t===95?!0:t<97?!1:t<123?!0:iT(t)||oV(t)}function iT(t){return aT(t,wl??(wl=lV()))}function oV(t){return aT(t,Al??(Al=uV()))}function lV(){return oT("4q 0 b 0 5 0 6 m 2 u 2 cp 5 b f 4 8 0 2 0 3m 4 2 1 3 3 2 0 7 0 2 2 2 0 2 j 2 2a 2 3u 9 4l 2 11 2 1 7 14 3 1 1w q 5 3 1a 16 10 1 2 2q 2 0 g 1 8 1 b 2 3 0 h 0 2 t u 2g c 0 p w a 1 5 0 6 l 5 0 a 0 4 0 o o 8 a 6 n 2 6 h 15 1n 1h 4 0 j 0 8 9 g f 5 7 3 1 3 l 2 6 2 0 4 3 4 0 h 0 e 1 2 2 f 1 b 0 9 5 5 1 3 l 2 6 2 1 2 1 2 1 w 3 2 0 k 2 h 8 2 2 2 l 2 6 2 1 2 4 4 0 j 0 g 1 o 0 c 7 3 1 3 l 2 6 2 1 2 4 4 0 v 1 2 2 g 0 i 0 2 5 4 2 2 3 4 1 2 0 2 1 4 1 4 2 4 b n 0 1h 7 2 2 2 m 2 f 4 0 r 2 2 1 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 v 2 2 1 g 1 i 8 2 2 2 14 3 0 h 0 6 2 9 2 p 5 6 h 4 n 2 8 2 0 3 6 1n 1b 2 1 d 6 1n 1 2 0 2 4 2 n 2 0 2 9 2 1 a 0 3 4 2 0 m 3 x 0 1s 7 2 z s 4 38 16 l 0 h 5 5 3 4 0 4 1 8 2 5 c d 0 i 11 2 0 6 0 3 16 2 98 2 3 3 6 2 0 2 3 3 14 2 3 3 w 2 3 3 6 2 0 2 3 3 e 2 1k 2 3 3 1u 12 f h 2d 3 5 4 h7 3 g 2 p 6 22 4 a 8 h e i f h f c 2 2 g 1f 10 0 5 0 1w 2g 8 14 2 0 6 1x b u 1e t 3 4 c 17 5 p 1j m a 1g 2b 0 2m 1a i 7 1j t e 1 b 17 r z 16 2 b z 3 a 6 16 3 2 16 3 2 5 2 1 4 0 6 5b 1t 7p 3 5 3 11 3 5 3 7 2 0 2 0 2 0 2 u 3 1g 2 6 2 0 4 2 2 6 4 3 3 5 5 c 6 2 2 6 39 0 e 0 g g 2r 0 5 0 3 9 2 0 3 5 7 0 2 0 2 0 2 f 3 3 6 4 5 0 i 14 22g 6c 7 3 4 1 d 11 2 0 6 0 3 1j 8 0 h m a 6 2 6 2 6 2 6 2 6 2 6 2 6 2 6 fb 2 q 8 8 4 3 4 5 2d 5 4 2 2h 2 3 6 16 2 2l i v 1d f e9 533 1t h3g 1w 19 3 7g 4 f b 1 l 1a h u 3 27 14 8 3 2u 3 2a 5 0 f g 2 2 2 3 2 m u 1f f 1d 1r 5 4 0 2 1 c r b m q s 8 1a t 0 h 4 2 9 b 4 2 14 o 2 2 7 l m 4 0 4 1d 2 0 4 1 3 4 3 0 2 0 p 2 3 a 8 2 d 5 3 5 3 5 a 6 2 6 2 16 2 d 3 1 3 36 u 8mb d m 5 1c 6it a5 3 2x 13 6 d 4 6 0 2 9 2 c 2 4 2 0 2 1 2 1 2 2z y a2 j 1r 3 1h 15 b 39 4 2 3q 11 p 7 p c 2g 4 5 3 5 3 5 3 2 10 b 2 p 2 i 2 1 2 e 3 d z 3e 1y 1g 7g s 4 1c 1c v e t 6 11 b t 3 z 5 7 2 4 17 4d j z 5 z 5 13 9 1f d a 2 e 2 6 2 1 2 a 2 e 2 6 2 1 4 1f d 8m a l b 7 p 5 2 15 2 d 1t 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 7 p 13 1j 7 1 1t 0 g 3 2 2 2 s 17 s 4 s 10 7 2 r s 1h b l b i e h 33 20 1k 1e e 1e e z 13 r a m 6z 15 7 1 h 5 i l i s b 0 9 l 17 h 1b k s m d 1g 1m 1 3 0 e 18 x o r z u 0 3 0 9 y 4 0 d 1b f 3 m 0 2 0 10 h 2 o k 1 1s 6 2 0 2 3 2 e 2 9 8 1a 13 7 3 1 3 l 2 6 2 1 2 4 4 0 j 0 d 4 v 9 2 0 3 0 2 11 2 0 q 0 2 0 19 1g j 3 l 2 v 1b l 1 2 0 55 1a 16 3 11 1b l 0 1o 16 e 0 20 q 12 6 56 17 39 1r w 7 3 0 3 7 2 1 2 n g 0 2 0 2n 7 3 12 h 0 2 0 t 0 b 13 8 0 m 0 c 19 k 0 j 20 i 0 52 w w 8 2 10 i 0 1e t 35 6 2 1 2 11 m 0 q 5 2 1 2 v f 0 o 17 m 0 6n i g 0 2 c 2 x 3h 0 28 pl 2v 33 6 5q d 8m 1sa 2o g tr i 5 q 32y 6 g6 5a2 t 1cz fs 8 u i 26 i t j 1b h 3 w k 6 i c1 18 5w 1r x o 3 o 19 22 6 0 1v c 1t 1 2 0 f 4 a 5p6 11 x 2o 36 e pd f 1e 5y6 3 2 6 2 1 2 88 a 0 u 2 3 0 f 4 8 az 1s5 2y 6 c 4 8 8 9 4mf 2c 2 1y 2 1 3 0 3 1 3 3 2 b 2 0 2 6 2 1s 2 3 3 7 2 6 2 r 2 3 2 4 2 0 4 6 2 9g 2 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 3l f 6 1j 1e 1d 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 5s u 2 2 2 1 2 6 3 4 a 1 69 6 2 3 2 1 2 e 2 5g 1o 1v 8 0 xh 3 2 q 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 g 6 2 2 4 2 g 3et wyn x 3dq 2 4gd 3 5rk g h9 1wj f1 15v 3t6 6 6jt upz 8qn")}function uV(){return oT("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 2 1z a 1d u 7 0 2u 6 3 5 3 1 2 3 3 9 o 0 v q 2k a g 9 y 8 a 0 p 3 2 8 2 2 2 4 18 2 1o 8 17 n 2 w 1j 2 2 h 2 6 b 1 3 9 i 2 1l 0 2 6 3 1 3 2 a 0 b 1 3 9 f 0 3 2 1l 0 2 4 5 1 3 2 4 0 l b 4 0 c 2 1l 0 2 7 2 2 2 2 l 1 3 9 b 5 2 2 1l 0 2 6 3 1 3 2 6 4 b 1 3 9 j 0 1o 4 4 2 2 3 a 0 f 9 h 4 1k 0 2 6 2 2 2 3 8 1 c 1 3 9 i 2 1l 0 2 6 2 2 2 3 8 1 c 1 3 9 4 0 d 3 1k 1 2 6 2 2 2 3 a 0 b 1 3 9 i 2 1z 0 5 5 2 0 2 7 7 9 3 1 1q 0 3 6 d 7 2 9 2g 0 3 8 c 6 2 9 1r 1 7 9 c 0 2 0 2 0 5 1 1e j 2 1 6 a 2 z a 0 2t j 2 9 d 3 5 2 2 2 3 6 4 3 e b 2 e jk 2 a 8 pt 3 t 2 u 1 v 1 1t v a 0 3 9 y 2 2 a 40 0 3b b 5 b b 9 3l a 1p 4 1m 9 2 s 3 a 7 9 n d 2 1d g 4 1c g c 9 i 8 d 2 v c 3 9 19 d 1d j 9 9 7 9 3b 2 2 k 5 0 7 0 3 2 5j 1r el 1 1e 1 k 0 3g c 5 0 4 b 2db 2 3y 0 2p v ff 5 2y 1 2p 0 n51 9 1y 0 5 9 x 1 29 1 7l 0 4 0 5 0 o 4 5 0 2c 1 1f h b 9 7 h e a t 7 q c 19 3 1c d g 9 c 0 b 9 1c d d 0 9 1 3 9 y 2 1f 0 2 2 3 1 6 1 2 0 16 4 6 1 6l 7 2 1 3 9 fmt 0 ki f h f 4 1 p 2 5d 9 12 0 12 0 ig 0 6b 0 46 4 86 9 120 2 2 1 6 3 15 2 5 0 4m 1 fy 3 9 9 7 9 w 4 8u 1 v 4 x f 1z a 1e 3 3f 2 1i e w a 3 1 b 3 1a a 8 0 1a 9 7 2 11 d 2 9 6 1 19 0 d 2 1d d 9 3 2 b 2b b 7 0 3 0 4e b 6 9 7 3 1k 1 2 6 3 1 3 2 a 0 b 1 3 6 4 4 1w 8 2 0 3 0 2 3 2 4 2 0 f 1 2b h a 9 5 0 2a j d 9 5y 6 3 8 s 1 2b g g 9 2a c 9 9 7 j 1m e 5 9 6r e 4m 9 1z 5 2 1 3 3 2 0 2 1 d 9 3c 6 3 6 4 0 t 9 15 6 2 3 9 0 a a 1b f 5j 7 3t 9 1i 7 2 7 h 9 1l l 2 d 3f 5 4 0 2 1 2 6 2 0 9 9 1d 4 2 1 2 4 9 9 1j 9 7 0 77 3 a 1 2 0 1d 6 4 4 e a 44m 0 7 e 8uh r 1t3 9 2f 9 13 4 1o 6 q 9 ev 9 d2 0 2 1i 8 3 2a 0 c 1 f58 1 382 9 ef 19 3 m dd 1 1p 4 4 5 9 7 3 6 v 3 45 2 c 2 9 1 3 0 x 1 11p 1d e9 1i 5 1d 9 0 f 0 n 4 2 e 11t 6 2 g 3 6 2 1 2 4 2t 0 4h 6 a 9 9x 0 1q d dv d 6t 1 2 9 6h 0 3 0 8 1 6 0 d7 6 32 6 6 9 3o7 9 gvt3 6n")}function aT(t,e){let r=0,s=e.length/2|0,n=0,i=0,o=0;for(;r<s;)if(n=(r+s)/2|0,i=e[2*n],o=e[2*n+1],t<i)s=n;else if(t>o)r=n+1;else return!0;return!1}function oT(t){let e=0;return t.split(" ").map(r=>e+=parseInt(r,36)|0)}var oi=class{constructor(e,r,s,n,i,o,a,l,u){this._raw2018=e,this._raw2019=r,this._raw2020=s,this._raw2021=n,this._raw2022=i,this._raw2023=o,this._raw2024=a,this._raw2025=l,this._raw2026=u}get es2018(){var e;return(e=this._set2018)!==null&&e!==void 0?e:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var e;return(e=this._set2019)!==null&&e!==void 0?e:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var e;return(e=this._set2020)!==null&&e!==void 0?e:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var e;return(e=this._set2021)!==null&&e!==void 0?e:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var e;return(e=this._set2022)!==null&&e!==void 0?e:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var e;return(e=this._set2023)!==null&&e!==void 0?e:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var e;return(e=this._set2024)!==null&&e!==void 0?e:this._set2024=new Set(this._raw2024.split(" "))}get es2025(){var e;return(e=this._set2025)!==null&&e!==void 0?e:this._set2025=new Set(this._raw2025.split(" "))}get es2026(){var e;return(e=this._set2026)!==null&&e!==void 0?e:this._set2026=new Set(this._raw2026.split(" "))}},cV=new Set(["General_Category","gc"]),pV=new Set(["Script","Script_Extensions","sc","scx"]),fV=new oi("C Cased_Letter Cc Cf Close_Punctuation Cn Co Combining_Mark Connector_Punctuation Control Cs Currency_Symbol Dash_Punctuation Decimal_Number Enclosing_Mark Final_Punctuation Format Initial_Punctuation L LC Letter Letter_Number Line_Separator Ll Lm Lo Lowercase_Letter Lt Lu M Mark Math_Symbol Mc Me Mn Modifier_Letter Modifier_Symbol N Nd Nl No Nonspacing_Mark Number Open_Punctuation Other Other_Letter Other_Number Other_Punctuation Other_Symbol P Paragraph_Separator Pc Pd Pe Pf Pi Po Private_Use Ps Punctuation S Sc Separator Sk Sm So Space_Separator Spacing_Mark Surrogate Symbol Titlecase_Letter Unassigned Uppercase_Letter Z Zl Zp Zs cntrl digit punct","","","","","","","",""),si=new oi("Adlam Adlm Aghb Ahom Anatolian_Hieroglyphs Arab Arabic Armenian Armi Armn Avestan Avst Bali Balinese Bamu Bamum Bass Bassa_Vah Batak Batk Beng Bengali Bhaiksuki Bhks Bopo Bopomofo Brah Brahmi Brai Braille Bugi Buginese Buhd Buhid Cakm Canadian_Aboriginal Cans Cari Carian Caucasian_Albanian Chakma Cham Cher Cherokee Common Copt Coptic Cprt Cuneiform Cypriot Cyrillic Cyrl Deseret Deva Devanagari Dsrt Dupl Duployan Egyp Egyptian_Hieroglyphs Elba Elbasan Ethi Ethiopic Geor Georgian Glag Glagolitic Gonm Goth Gothic Gran Grantha Greek Grek Gujarati Gujr Gurmukhi Guru Han Hang Hangul Hani Hano Hanunoo Hatr Hatran Hebr Hebrew Hira Hiragana Hluw Hmng Hung Imperial_Aramaic Inherited Inscriptional_Pahlavi Inscriptional_Parthian Ital Java Javanese Kaithi Kali Kana Kannada Katakana Kayah_Li Khar Kharoshthi Khmer Khmr Khoj Khojki Khudawadi Knda Kthi Lana Lao Laoo Latin Latn Lepc Lepcha Limb Limbu Lina Linb Linear_A Linear_B Lisu Lyci Lycian Lydi Lydian Mahajani Mahj Malayalam Mand Mandaic Mani Manichaean Marc Marchen Masaram_Gondi Meetei_Mayek Mend Mende_Kikakui Merc Mero Meroitic_Cursive Meroitic_Hieroglyphs Miao Mlym Modi Mong Mongolian Mro Mroo Mtei Mult Multani Myanmar Mymr Nabataean Narb Nbat New_Tai_Lue Newa Nko Nkoo Nshu Nushu Ogam Ogham Ol_Chiki Olck Old_Hungarian Old_Italic Old_North_Arabian Old_Permic Old_Persian Old_South_Arabian Old_Turkic Oriya Orkh Orya Osage Osge Osma Osmanya Pahawh_Hmong Palm Palmyrene Pau_Cin_Hau Pauc Perm Phag Phags_Pa Phli Phlp Phnx Phoenician Plrd Prti Psalter_Pahlavi Qaac Qaai Rejang Rjng Runic Runr Samaritan Samr Sarb Saur Saurashtra Sgnw Sharada Shavian Shaw Shrd Sidd Siddham SignWriting Sind Sinh Sinhala Sora Sora_Sompeng Soyo Soyombo Sund Sundanese Sylo Syloti_Nagri Syrc Syriac Tagalog Tagb Tagbanwa Tai_Le Tai_Tham Tai_Viet Takr Takri Tale Talu Tamil Taml Tang Tangut Tavt Telu Telugu Tfng Tglg Thaa Thaana Thai Tibetan Tibt Tifinagh Tirh Tirhuta Ugar Ugaritic Vai Vaii Wara Warang_Citi Xpeo Xsux Yi Yiii Zanabazar_Square Zanb Zinh Zyyy","Dogr Dogra Gong Gunjala_Gondi Hanifi_Rohingya Maka Makasar Medefaidrin Medf Old_Sogdian Rohg Sogd Sogdian Sogo","Elym Elymaic Hmnp Nand Nandinagari Nyiakeng_Puachue_Hmong Wancho Wcho","Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi","Cpmn Cypro_Minoan Old_Uyghur Ougr Tangsa Tnsa Toto Vith Vithkuqi","Berf Beria_Erfe Gara Garay Gukh Gurung_Khema Hrkt Jurc Jurchen Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Pcun Proto_Cuneiform Seal Sidetic Sidt Sunu Sunuwar Tai_Yo Tayo Todhri Todr Tolong_Siki Tols Tulu_Tigalari Tutg Unknown Zzzz","","",""),Eh=new oi("AHex ASCII ASCII_Hex_Digit Alpha Alphabetic Any Assigned Bidi_C Bidi_Control Bidi_M Bidi_Mirrored CI CWCF CWCM CWKCF CWL CWT CWU Case_Ignorable Cased Changes_When_Casefolded Changes_When_Casemapped Changes_When_Lowercased Changes_When_NFKC_Casefolded Changes_When_Titlecased Changes_When_Uppercased DI Dash Default_Ignorable_Code_Point Dep Deprecated Dia Diacritic Emoji Emoji_Component Emoji_Modifier Emoji_Modifier_Base Emoji_Presentation Ext Extender Gr_Base Gr_Ext Grapheme_Base Grapheme_Extend Hex Hex_Digit IDC IDS IDSB IDST IDS_Binary_Operator IDS_Trinary_Operator ID_Continue ID_Start Ideo Ideographic Join_C Join_Control LOE Logical_Order_Exception Lower Lowercase Math NChar Noncharacter_Code_Point Pat_Syn Pat_WS Pattern_Syntax Pattern_White_Space QMark Quotation_Mark RI Radical Regional_Indicator SD STerm Sentence_Terminal Soft_Dotted Term Terminal_Punctuation UIdeo Unified_Ideograph Upper Uppercase VS Variation_Selector White_Space XIDC XIDS XID_Continue XID_Start space","Extended_Pictographic","","EBase EComp EMod EPres ExtPict","","","","",""),hV=new oi("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","","");function Xk(t,e,r){return cV.has(e)?t>=2018&&fV.es2018.has(r):pV.has(e)?t>=2018&&si.es2018.has(r)||t>=2019&&si.es2019.has(r)||t>=2020&&si.es2020.has(r)||t>=2021&&si.es2021.has(r)||t>=2022&&si.es2022.has(r)||t>=2023&&si.es2023.has(r):!1}function mV(t,e){return t>=2018&&Eh.es2018.has(e)||t>=2019&&Eh.es2019.has(e)||t>=2021&&Eh.es2021.has(e)}function dV(t,e){return t>=2024&&hV.es2024.has(e)}var Qk=8,gV=9,lT=10,yV=11,xV=12,uT=13,Il=33,cT=35,li=36,pT=37,is=38,as=40,os=41,fa=42,Pl=43,_h=44,mr=45,Fl=46,pa=47,On=48,EV=49,bV=55,_l=57,Bl=58,fT=59,ha=60,ma=61,Bh=62,Dr=63,hT=64,Ol=65,vV=66,SV=68,mT=70,CV=80,wV=83,AV=87,kV=90,Oh=95,Ll=97,bh=98,ii=99,Ah=100,Lh=102,dT=103,Nh=105,Yk=107,Rh=109,TV=110,DV=112,IV=113,PV=114,Nl=115,FV=116,Tl=117,kh=118,_V=119,BV=120,gT=121,OV=122,ls=91,Pt=92,rn=93,ai=94,yT=96,us=123,da=124,cs=125,xT=126,LV=8204,NV=8205,RV=8232,jV=8233,MV=0,qV=1114111;function ET(t){return t>=Ol&&t<=kV||t>=Ll&&t<=OV}function Dl(t){return t>=On&&t<=_l}function UV(t){return t>=On&&t<=bV}function Zk(t){return t>=On&&t<=_l||t>=Ol&&t<=mT||t>=Ll&&t<=Lh}function $V(t){return t===lT||t===uT||t===RV||t===jV}function VV(t){return t>=MV&&t<=qV}function vh(t){return t>=Ll&&t<=Lh?t-Ll+10:t>=Ol&&t<=mT?t-Ol+10:t-On}function Sh(t){return t>=55296&&t<=56319}function Ch(t){return t>=56320&&t<=57343}function wh(t,e){return(t-55296)*1024+(e-56320)+65536}var Th=class{constructor(){this.groupName=new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(e){return this.groupName.has(e)}hasInScope(e){return this.hasInPattern(e)}addToScope(e){this.groupName.add(e)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}},Rl=class t{constructor(e,r){this.parent=e,this.base=r??this}separatedFrom(e){var r,s;return this.base===e.base&&this!==e||e.parent&&this.separatedFrom(e.parent)?!0:(s=(r=this.parent)===null||r===void 0?void 0:r.separatedFrom(e))!==null&&s!==void 0?s:!1}child(){return new t(this,null)}sibling(){return new t(this.parent,this.base)}},Dh=class{constructor(){this.branchID=new Rl(null,null),this.groupNames=new Map}clear(){this.branchID=new Rl(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(e){e!==0&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(e){return this.groupNames.has(e)}hasInScope(e){let r=this.groupNames.get(e);if(!r)return!1;for(let s of r)if(!s.separatedFrom(this.branchID))return!0;return!1}addToScope(e){let r=this.groupNames.get(e);if(r){r.push(this.branchID);return}this.groupNames.set(e,[this.branchID])}},eT={at(t,e,r){return r<e?t.charCodeAt(r):-1},width(t){return 1}},WV={at(t,e,r){return r<e?t.codePointAt(r):-1},width(t){return t>65535?2:1}},Ih=class{constructor(){this._impl=eT,this._s="",this._i=0,this._end=0,this._cp1=-1,this._w1=1,this._cp2=-1,this._w2=1,this._cp3=-1,this._w3=1,this._cp4=-1}get source(){return this._s}get index(){return this._i}get currentCodePoint(){return this._cp1}get nextCodePoint(){return this._cp2}get nextCodePoint2(){return this._cp3}get nextCodePoint3(){return this._cp4}reset(e,r,s,n){this._impl=n?WV:eT,this._s=e,this._end=s,this.rewind(r)}rewind(e){let r=this._impl;this._i=e,this._cp1=r.at(this._s,this._end,e),this._w1=r.width(this._cp1),this._cp2=r.at(this._s,this._end,e+this._w1),this._w2=r.width(this._cp2),this._cp3=r.at(this._s,this._end,e+this._w1+this._w2),this._w3=r.width(this._cp3),this._cp4=r.at(this._s,this._end,e+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){let e=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=e.width(this._cp2),this._cp3=this._cp4,this._w3=e.width(this._cp3),this._cp4=e.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(e){return this._cp1===e?(this.advance(),!0):!1}eat2(e,r){return this._cp1===e&&this._cp2===r?(this.advance(),this.advance(),!0):!1}eat3(e,r,s){return this._cp1===e&&this._cp2===r&&this._cp3===s?(this.advance(),this.advance(),this.advance(),!0):!1}},jl=class extends SyntaxError{constructor(e,r){super(e),this.index=r}};function zV(t,e,r,s){let n="";if(t.kind==="literal"){let i=t.source.slice(t.start,t.end);i&&(n=`: ${i}`)}else if(t.kind==="pattern"){let i=t.source.slice(t.start,t.end),o=`${e.unicode?"u":""}${e.unicodeSets?"v":""}`;n=`: /${i}/${o}`}return new jl(`Invalid regular expression${n}: ${s}`,r)}var GV=new Set([ai,li,Pt,Fl,fa,Pl,Dr,as,os,ls,rn,us,cs,da]),KV=new Set([is,Il,cT,li,pT,fa,Pl,_h,Fl,Bl,fT,ha,ma,Bh,Dr,hT,ai,yT,xT]),HV=new Set([as,os,ls,rn,us,cs,pa,mr,Pt,da]),JV=new Set([is,mr,Il,cT,pT,_h,Bl,fT,ha,ma,Bh,hT,yT,xT]),bT={global:dT,ignoreCase:Nh,multiline:Rh,unicode:Tl,sticky:gT,dotAll:Nl,hasIndices:Ah,unicodeSets:kh},XV=Object.fromEntries(Object.entries(bT).map(([t,e])=>[e,t]));function tT(t){return GV.has(t)}function rT(t){return KV.has(t)}function QV(t){return HV.has(t)}function YV(t){return JV.has(t)}function ZV(t){return aV(t)||t===li||t===Oh}function e7(t){return sT(t)||t===li||t===LV||t===NV}function vT(t){return ET(t)||t===Oh}function t7(t){return vT(t)||Dl(t)}function r7(t){return t===Nh||t===Rh||t===Nl}var ga=class{constructor(e){this._reader=new Ih,this._unicodeMode=!1,this._unicodeSetsMode=!1,this._nFlag=!1,this._lastIntValue=0,this._lastRange={min:0,max:Number.POSITIVE_INFINITY},this._lastStrValue="",this._lastAssertionIsQuantifiable=!1,this._numCapturingParens=0,this._backreferenceNames=new Set,this._srcCtx=null,this._options=e??{},this._groupSpecifiers=this.ecmaVersion>=2025?new Dh:new Th}validateLiteral(e,r=0,s=e.length){if(this._srcCtx={source:e,start:r,end:s,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(e,r,s),this.onLiteralEnter(r),this.eat(pa)&&this.eatRegExpBody()&&this.eat(pa)){let n=this.index,i=e.includes("u",n),o=e.includes("v",n);this.validateFlagsInternal(e,n,s),this.validatePatternInternal(e,r+1,n-1,{unicode:i,unicodeSets:o})}else if(r>=s)this.raise("Empty");else{let n=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${n}'`)}this.onLiteralLeave(r,s)}validateFlags(e,r=0,s=e.length){this._srcCtx={source:e,start:r,end:s,kind:"flags"},this.validateFlagsInternal(e,r,s)}validatePattern(e,r=0,s=e.length,n=void 0){this._srcCtx={source:e,start:r,end:s,kind:"pattern"},this.validatePatternInternal(e,r,s,n)}validatePatternInternal(e,r=0,s=e.length,n=void 0){let i=this._parseFlagsOptionToMode(n,s);this._unicodeMode=i.unicodeMode,this._nFlag=i.nFlag,this._unicodeSetsMode=i.unicodeSetsMode,this.reset(e,r,s),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&!this._groupSpecifiers.isEmpty()&&(this._nFlag=!0,this.rewind(r),this.consumePattern())}validateFlagsInternal(e,r,s){let n=this.parseFlags(e,r,s);this.onRegExpFlags(r,s,n)}_parseFlagsOptionToMode(e,r){let s=!1,n=!1;e&&this.ecmaVersion>=2015&&(typeof e=="object"?(s=!!e.unicode,this.ecmaVersion>=2024&&(n=!!e.unicodeSets)):s=e),s&&n&&this.raise("Invalid regular expression flags",{index:r+1,unicode:s,unicodeSets:n});let i=s||n,o=s&&this.ecmaVersion>=2018||n||!!(this._options.strict&&this.ecmaVersion>=2023);return{unicodeMode:i,nFlag:o,unicodeSetsMode:n}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var e;return(e=this._options.ecmaVersion)!==null&&e!==void 0?e:nT}onLiteralEnter(e){this._options.onLiteralEnter&&this._options.onLiteralEnter(e)}onLiteralLeave(e,r){this._options.onLiteralLeave&&this._options.onLiteralLeave(e,r)}onRegExpFlags(e,r,s){this._options.onRegExpFlags&&this._options.onRegExpFlags(e,r,s),this._options.onFlags&&this._options.onFlags(e,r,s.global,s.ignoreCase,s.multiline,s.unicode,s.sticky,s.dotAll,s.hasIndices)}onPatternEnter(e){this._options.onPatternEnter&&this._options.onPatternEnter(e)}onPatternLeave(e,r){this._options.onPatternLeave&&this._options.onPatternLeave(e,r)}onDisjunctionEnter(e){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(e)}onDisjunctionLeave(e,r){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(e,r)}onAlternativeEnter(e,r){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(e,r)}onAlternativeLeave(e,r,s){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(e,r,s)}onGroupEnter(e){this._options.onGroupEnter&&this._options.onGroupEnter(e)}onGroupLeave(e,r){this._options.onGroupLeave&&this._options.onGroupLeave(e,r)}onModifiersEnter(e){this._options.onModifiersEnter&&this._options.onModifiersEnter(e)}onModifiersLeave(e,r){this._options.onModifiersLeave&&this._options.onModifiersLeave(e,r)}onAddModifiers(e,r,s){this._options.onAddModifiers&&this._options.onAddModifiers(e,r,s)}onRemoveModifiers(e,r,s){this._options.onRemoveModifiers&&this._options.onRemoveModifiers(e,r,s)}onCapturingGroupEnter(e,r){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(e,r)}onCapturingGroupLeave(e,r,s){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(e,r,s)}onQuantifier(e,r,s,n,i){this._options.onQuantifier&&this._options.onQuantifier(e,r,s,n,i)}onLookaroundAssertionEnter(e,r,s){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(e,r,s)}onLookaroundAssertionLeave(e,r,s,n){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(e,r,s,n)}onEdgeAssertion(e,r,s){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(e,r,s)}onWordBoundaryAssertion(e,r,s,n){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(e,r,s,n)}onAnyCharacterSet(e,r,s){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(e,r,s)}onEscapeCharacterSet(e,r,s,n){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(e,r,s,n)}onUnicodePropertyCharacterSet(e,r,s,n,i,o,a){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(e,r,s,n,i,o,a)}onCharacter(e,r,s){this._options.onCharacter&&this._options.onCharacter(e,r,s)}onBackreference(e,r,s){this._options.onBackreference&&this._options.onBackreference(e,r,s)}onCharacterClassEnter(e,r,s){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(e,r,s)}onCharacterClassLeave(e,r,s){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(e,r,s)}onCharacterClassRange(e,r,s,n){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(e,r,s,n)}onClassIntersection(e,r){this._options.onClassIntersection&&this._options.onClassIntersection(e,r)}onClassSubtraction(e,r){this._options.onClassSubtraction&&this._options.onClassSubtraction(e,r)}onClassStringDisjunctionEnter(e){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(e)}onClassStringDisjunctionLeave(e,r){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(e,r)}onStringAlternativeEnter(e,r){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(e,r)}onStringAlternativeLeave(e,r,s){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(e,r,s)}get index(){return this._reader.index}get currentCodePoint(){return this._reader.currentCodePoint}get nextCodePoint(){return this._reader.nextCodePoint}get nextCodePoint2(){return this._reader.nextCodePoint2}get nextCodePoint3(){return this._reader.nextCodePoint3}reset(e,r,s){this._reader.reset(e,r,s,this._unicodeMode)}rewind(e){this._reader.rewind(e)}advance(){this._reader.advance()}eat(e){return this._reader.eat(e)}eat2(e,r){return this._reader.eat2(e,r)}eat3(e,r,s){return this._reader.eat3(e,r,s)}raise(e,r){var s,n,i;throw zV(this._srcCtx,{unicode:(s=r?.unicode)!==null&&s!==void 0?s:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:(n=r?.unicodeSets)!==null&&n!==void 0?n:this._unicodeSetsMode},(i=r?.index)!==null&&i!==void 0?i:this.index,e)}eatRegExpBody(){let e=this.index,r=!1,s=!1;for(;;){let n=this.currentCodePoint;if(n===-1||$V(n)){let i=r?"character class":"regular expression";this.raise(`Unterminated ${i}`)}if(s)s=!1;else if(n===Pt)s=!0;else if(n===ls)r=!0;else if(n===rn)r=!1;else if(n===pa&&!r||n===fa&&this.index===e)break;this.advance()}return this.index!==e}consumePattern(){let e=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(e),this.consumeDisjunction();let r=this.currentCodePoint;if(this.currentCodePoint!==-1){r===os&&this.raise("Unmatched ')'"),r===Pt&&this.raise("\\ at end of pattern"),(r===rn||r===cs)&&this.raise("Lone quantifier brackets");let s=String.fromCodePoint(r);this.raise(`Unexpected character '${s}'`)}for(let s of this._backreferenceNames)this._groupSpecifiers.hasInPattern(s)||this.raise("Invalid named capture referenced");this.onPatternLeave(e,this.index)}countCapturingParens(){let e=this.index,r=!1,s=!1,n=0,i=0;for(;(i=this.currentCodePoint)!==-1;)s?s=!1:i===Pt?s=!0:i===ls?r=!0:i===rn?r=!1:i===as&&!r&&(this.nextCodePoint!==Dr||this.nextCodePoint2===ha&&this.nextCodePoint3!==ma&&this.nextCodePoint3!==Il)&&(n+=1),this.advance();return this.rewind(e),n}consumeDisjunction(){let e=this.index,r=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(e);do this.consumeAlternative(r++);while(this.eat(da));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(us)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(e,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(e){let r=this.index;for(this._groupSpecifiers.enterAlternative(e),this.onAlternativeEnter(r,e);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(r,this.index,e)}consumeTerm(){return this._unicodeMode||this.strict?this.consumeAssertion()||this.consumeAtom()&&this.consumeOptionalQuantifier():this.consumeAssertion()&&(!this._lastAssertionIsQuantifiable||this.consumeOptionalQuantifier())||this.consumeExtendedAtom()&&this.consumeOptionalQuantifier()}consumeOptionalQuantifier(){return this.consumeQuantifier(),!0}consumeAssertion(){let e=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(ai))return this.onEdgeAssertion(e,this.index,"start"),!0;if(this.eat(li))return this.onEdgeAssertion(e,this.index,"end"),!0;if(this.eat2(Pt,vV))return this.onWordBoundaryAssertion(e,this.index,"word",!0),!0;if(this.eat2(Pt,bh))return this.onWordBoundaryAssertion(e,this.index,"word",!1),!0;if(this.eat2(as,Dr)){let r=this.ecmaVersion>=2018&&this.eat(ha),s=!1;if(this.eat(ma)||(s=this.eat(Il))){let n=r?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(e,n,s),this.consumeDisjunction(),this.eat(os)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!r&&!this.strict,this.onLookaroundAssertionLeave(e,this.index,n,s),!0}this.rewind(e)}return!1}consumeQuantifier(e=!1){let r=this.index,s=0,n=0,i=!1;if(this.eat(fa))s=0,n=Number.POSITIVE_INFINITY;else if(this.eat(Pl))s=1,n=Number.POSITIVE_INFINITY;else if(this.eat(Dr))s=0,n=1;else if(this.eatBracedQuantifier(e))({min:s,max:n}=this._lastRange);else return!1;return i=!this.eat(Dr),e||this.onQuantifier(r,this.index,s,n,i),!0}eatBracedQuantifier(e){let r=this.index;if(this.eat(us)){if(this.eatDecimalDigits()){let s=this._lastIntValue,n=s;if(this.eat(_h)&&(n=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(cs))return!e&&n<s&&this.raise("numbers out of order in {} quantifier"),this._lastRange={min:s,max:n},!0}!e&&(this._unicodeMode||this.strict)&&this.raise("Incomplete quantifier"),this.rewind(r)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()}consumeDot(){return this.eat(Fl)?(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0):!1}consumeReverseSolidusAtomEscape(){let e=this.index;if(this.eat(Pt)){if(this.consumeAtomEscape())return!0;this.rewind(e)}return!1}consumeUncapturingGroup(){let e=this.index;return this.eat2(as,Dr)?(this.onGroupEnter(e),this.ecmaVersion>=2025&&this.consumeModifiers(),this.eat(Bl)||(this.rewind(e+1),this.raise("Invalid group")),this.consumeDisjunction(),this.eat(os)||this.raise("Unterminated group"),this.onGroupLeave(e,this.index),!0):!1}consumeModifiers(){let e=this.index,r=this.eatModifiers(),s=this.index,n=this.eat(mr);if(!r&&!n)return!1;this.onModifiersEnter(e);let i=this.parseModifiers(e,s);if(this.onAddModifiers(e,s,i),n){let o=this.index;!this.eatModifiers()&&!r&&this.currentCodePoint===Bl&&this.raise("Invalid empty flags");let a=this.parseModifiers(o,this.index);for(let[l]of Object.entries(a).filter(([,u])=>u))i[l]&&this.raise(`Duplicated flag '${String.fromCodePoint(bT[l])}'`);this.onRemoveModifiers(o,this.index,a)}return this.onModifiersLeave(e,this.index),!0}consumeCapturingGroup(){let e=this.index;if(this.eat(as)){let r=null;if(this.ecmaVersion>=2018){if(this.consumeGroupSpecifier())r=this._lastStrValue;else if(this.currentCodePoint===Dr)return this.rewind(e),!1}else if(this.currentCodePoint===Dr)return this.rewind(e),!1;return this.onCapturingGroupEnter(e,r),this.consumeDisjunction(),this.eat(os)||this.raise("Unterminated group"),this.onCapturingGroupLeave(e,this.index,r),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){let e=this.index;return this.currentCodePoint===Pt&&this.nextCodePoint===ii?(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,Pt),!0):!1}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){let e=this.index,r=this.currentCodePoint;return r!==-1&&!tT(r)?(this.advance(),this.onCharacter(e,this.index,r),!0):!1}consumeExtendedPatternCharacter(){let e=this.index,r=this.currentCodePoint;return r!==-1&&r!==ai&&r!==li&&r!==Pt&&r!==Fl&&r!==fa&&r!==Pl&&r!==Dr&&r!==as&&r!==os&&r!==ls&&r!==da?(this.advance(),this.onCharacter(e,this.index,r),!0):!1}consumeGroupSpecifier(){let e=this.index;if(this.eat(Dr)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.rewind(e)}return!1}consumeAtomEscape(){return this.consumeBackreference()||this.consumeCharacterClassEscape()||this.consumeCharacterEscape()||this._nFlag&&this.consumeKGroupName()?!0:((this.strict||this._unicodeMode)&&this.raise("Invalid escape"),!1)}consumeBackreference(){let e=this.index;if(this.eatDecimalEscape()){let r=this._lastIntValue;if(r<=this._numCapturingParens)return this.onBackreference(e-1,this.index,r),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeCharacterClassEscape(){var e;let r=this.index;if(this.eat(Ah))return this._lastIntValue=-1,this.onEscapeCharacterSet(r-1,this.index,"digit",!1),{};if(this.eat(SV))return this._lastIntValue=-1,this.onEscapeCharacterSet(r-1,this.index,"digit",!0),{};if(this.eat(Nl))return this._lastIntValue=-1,this.onEscapeCharacterSet(r-1,this.index,"space",!1),{};if(this.eat(wV))return this._lastIntValue=-1,this.onEscapeCharacterSet(r-1,this.index,"space",!0),{};if(this.eat(_V))return this._lastIntValue=-1,this.onEscapeCharacterSet(r-1,this.index,"word",!1),{};if(this.eat(AV))return this._lastIntValue=-1,this.onEscapeCharacterSet(r-1,this.index,"word",!0),{};let s=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(DV)||(s=this.eat(CV)))){this._lastIntValue=-1;let n=null;if(this.eat(us)&&(n=this.eatUnicodePropertyValueExpression())&&this.eat(cs))return s&&n.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(r-1,this.index,"property",n.key,n.value,s,(e=n.strings)!==null&&e!==void 0?e:!1),{mayContainStrings:n.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){let e=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(e-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){let e=this.index;if(this.eat(Yk)){if(this.eatGroupName()){let r=this._lastStrValue;return this._backreferenceNames.add(r),this.onBackreference(e-1,this.index,r),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){let e=this.index;if(this.eat(ls)){let r=this.eat(ai);this.onCharacterClassEnter(e,r,this._unicodeSetsMode);let s=this.consumeClassContents();return this.eat(rn)||(this.currentCodePoint===-1&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),r&&s.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,r),s}return null}consumeClassContents(){if(this._unicodeSetsMode)return this.currentCodePoint===rn?{}:this.consumeClassSetExpression();let e=this.strict||this._unicodeMode;for(;;){let r=this.index;if(!this.consumeClassAtom())break;let s=this._lastIntValue;if(!this.eat(mr))continue;if(this.onCharacter(this.index-1,this.index,mr),!this.consumeClassAtom())break;let n=this._lastIntValue;if(s===-1||n===-1){e&&this.raise("Invalid character class");continue}s>n&&this.raise("Range out of order in character class"),this.onCharacterClassRange(r,this.index,s,n)}return{}}consumeClassAtom(){let e=this.index,r=this.currentCodePoint;if(r!==-1&&r!==Pt&&r!==rn)return this.advance(),this._lastIntValue=r,this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(Pt)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===ii)return this._lastIntValue=Pt,this.onCharacter(e,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(e)}return!1}consumeClassEscape(){let e=this.index;if(this.eat(bh))return this._lastIntValue=Qk,this.onCharacter(e-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(mr))return this._lastIntValue=mr,this.onCharacter(e-1,this.index,this._lastIntValue),!0;let r=0;return!this.strict&&!this._unicodeMode&&this.currentCodePoint===ii&&(Dl(r=this.nextCodePoint)||r===Oh)?(this.advance(),this.advance(),this._lastIntValue=r%32,this.onCharacter(e-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){let e=this.index,r=!1,s=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(e))return this.consumeClassUnionRight({}),{};r=!1}else if(s=this.consumeClassSetOperand())r=s.mayContainStrings;else{let n=this.currentCodePoint;n===Pt&&(this.advance(),this.raise("Invalid escape")),n===this.nextCodePoint&&rT(n)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2(is,is)){for(;this.currentCodePoint!==is&&(s=this.consumeClassSetOperand());)if(this.onClassIntersection(e,this.index),s.mayContainStrings||(r=!1),!this.eat2(is,is))return{mayContainStrings:r};this.raise("Invalid character in character class")}if(this.eat2(mr,mr)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(e,this.index),!this.eat2(mr,mr))return{mayContainStrings:r};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:r})}consumeClassUnionRight(e){let r=e.mayContainStrings;for(;;){let s=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(s);continue}let n=this.consumeClassSetOperand();if(n){n.mayContainStrings&&(r=!0);continue}break}return{mayContainStrings:r}}consumeClassSetRangeFromOperator(e){let r=this.index,s=this._lastIntValue;if(this.eat(mr)){if(this.consumeClassSetCharacter()){let n=this._lastIntValue;return(s===-1||n===-1)&&this.raise("Invalid character class"),s>n&&this.raise("Range out of order in character class"),this.onCharacterClassRange(e,this.index,s,n),!0}this.rewind(r)}return!1}consumeClassSetOperand(){let e=null;return(e=this.consumeNestedClass())||(e=this.consumeClassStringDisjunction())?e:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){let e=this.index;if(this.eat(ls)){let r=this.eat(ai);this.onCharacterClassEnter(e,r,!0);let s=this.consumeClassContents();return this.eat(rn)||this.raise("Unterminated character class"),r&&s.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(e,this.index,r),s}if(this.eat(Pt)){let r=this.consumeCharacterClassEscape();if(r)return r;this.rewind(e)}return null}consumeClassStringDisjunction(){let e=this.index;if(this.eat3(Pt,IV,us)){this.onClassStringDisjunctionEnter(e);let r=0,s=!1;do this.consumeClassString(r++).mayContainStrings&&(s=!0);while(this.eat(da));if(this.eat(cs))return this.onClassStringDisjunctionLeave(e,this.index),{mayContainStrings:s};this.raise("Unterminated class string disjunction")}return null}consumeClassString(e){let r=this.index,s=0;for(this.onStringAlternativeEnter(r,e);this.currentCodePoint!==-1&&this.consumeClassSetCharacter();)s++;return this.onStringAlternativeLeave(r,this.index,e),{mayContainStrings:s!==1}}consumeClassSetCharacter(){let e=this.index,r=this.currentCodePoint;if((r!==this.nextCodePoint||!rT(r))&&r!==-1&&!QV(r))return this._lastIntValue=r,this.advance(),this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(Pt)){if(this.consumeCharacterEscape())return!0;if(YV(this.currentCodePoint))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(e,this.index,this._lastIntValue),!0;if(this.eat(bh))return this._lastIntValue=Qk,this.onCharacter(e,this.index,this._lastIntValue),!0;this.rewind(e)}return!1}eatGroupName(){if(this.eat(ha)){if(this.eatRegExpIdentifierName()&&this.eat(Bh))return!0;this.raise("Invalid capture group name")}return!1}eatRegExpIdentifierName(){if(this.eatRegExpIdentifierStart()){for(this._lastStrValue=String.fromCodePoint(this._lastIntValue);this.eatRegExpIdentifierPart();)this._lastStrValue+=String.fromCodePoint(this._lastIntValue);return!0}return!1}eatRegExpIdentifierStart(){let e=this.index,r=!this._unicodeMode&&this.ecmaVersion>=2020,s=this.currentCodePoint;return this.advance(),s===Pt&&this.eatRegExpUnicodeEscapeSequence(r)?s=this._lastIntValue:r&&Sh(s)&&Ch(this.currentCodePoint)&&(s=wh(s,this.currentCodePoint),this.advance()),ZV(s)?(this._lastIntValue=s,!0):(this.index!==e&&this.rewind(e),!1)}eatRegExpIdentifierPart(){let e=this.index,r=!this._unicodeMode&&this.ecmaVersion>=2020,s=this.currentCodePoint;return this.advance(),s===Pt&&this.eatRegExpUnicodeEscapeSequence(r)?s=this._lastIntValue:r&&Sh(s)&&Ch(this.currentCodePoint)&&(s=wh(s,this.currentCodePoint),this.advance()),e7(s)?(this._lastIntValue=s,!0):(this.index!==e&&this.rewind(e),!1)}eatCControlLetter(){let e=this.index;if(this.eat(ii)){if(this.eatControlLetter())return!0;this.rewind(e)}return!1}eatZero(){return this.currentCodePoint===On&&!Dl(this.nextCodePoint)?(this._lastIntValue=0,this.advance(),!0):!1}eatControlEscape(){return this.eat(Lh)?(this._lastIntValue=xV,!0):this.eat(TV)?(this._lastIntValue=lT,!0):this.eat(PV)?(this._lastIntValue=uT,!0):this.eat(FV)?(this._lastIntValue=gV,!0):this.eat(kh)?(this._lastIntValue=yV,!0):!1}eatControlLetter(){let e=this.currentCodePoint;return ET(e)?(this.advance(),this._lastIntValue=e%32,!0):!1}eatRegExpUnicodeEscapeSequence(e=!1){let r=this.index,s=e||this._unicodeMode;if(this.eat(Tl)){if(s&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||s&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||s)&&this.raise("Invalid unicode escape"),this.rewind(r)}return!1}eatRegExpUnicodeSurrogatePairEscape(){let e=this.index;if(this.eatFixedHexDigits(4)){let r=this._lastIntValue;if(Sh(r)&&this.eat(Pt)&&this.eat(Tl)&&this.eatFixedHexDigits(4)){let s=this._lastIntValue;if(Ch(s))return this._lastIntValue=wh(r,s),!0}this.rewind(e)}return!1}eatRegExpUnicodeCodePointEscape(){let e=this.index;return this.eat(us)&&this.eatHexDigits()&&this.eat(cs)&&VV(this._lastIntValue)?!0:(this.rewind(e),!1)}eatIdentityEscape(){let e=this.currentCodePoint;return this.isValidIdentityEscape(e)?(this._lastIntValue=e,this.advance(),!0):!1}isValidIdentityEscape(e){return e===-1?!1:this._unicodeMode?tT(e)||e===pa:this.strict?!sT(e):this._nFlag?!(e===ii||e===Yk):e!==ii}eatDecimalEscape(){this._lastIntValue=0;let e=this.currentCodePoint;if(e>=EV&&e<=_l){do this._lastIntValue=10*this._lastIntValue+(e-On),this.advance();while((e=this.currentCodePoint)>=On&&e<=_l);return!0}return!1}eatUnicodePropertyValueExpression(){let e=this.index;if(this.eatUnicodePropertyName()&&this.eat(ma)){let r=this._lastStrValue;if(this.eatUnicodePropertyValue()){let s=this._lastStrValue;if(Xk(this.ecmaVersion,r,s))return{key:r,value:s||null};this.raise("Invalid property name")}}if(this.rewind(e),this.eatLoneUnicodePropertyNameOrValue()){let r=this._lastStrValue;if(Xk(this.ecmaVersion,"General_Category",r))return{key:"General_Category",value:r||null};if(mV(this.ecmaVersion,r))return{key:r,value:null};if(this._unicodeSetsMode&&dV(this.ecmaVersion,r))return{key:r,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";vT(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatUnicodePropertyValue(){for(this._lastStrValue="";t7(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){let e=this.index;if(this.eat(BV)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(e)}return!1}eatDecimalDigits(){let e=this.index;for(this._lastIntValue=0;Dl(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+vh(this.currentCodePoint),this.advance();return this.index!==e}eatHexDigits(){let e=this.index;for(this._lastIntValue=0;Zk(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+vh(this.currentCodePoint),this.advance();return this.index!==e}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){let e=this._lastIntValue;if(this.eatOctalDigit()){let r=this._lastIntValue;e<=3&&this.eatOctalDigit()?this._lastIntValue=e*64+r*8+this._lastIntValue:this._lastIntValue=e*8+r}else this._lastIntValue=e;return!0}return!1}eatOctalDigit(){let e=this.currentCodePoint;return UV(e)?(this.advance(),this._lastIntValue=e-On,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(e){let r=this.index;this._lastIntValue=0;for(let s=0;s<e;++s){let n=this.currentCodePoint;if(!Zk(n))return this.rewind(r),!1;this._lastIntValue=16*this._lastIntValue+vh(n),this.advance()}return!0}eatModifiers(){let e=!1;for(;r7(this.currentCodePoint);)this.advance(),e=!0;return e}parseModifiers(e,r){let{ignoreCase:s,multiline:n,dotAll:i}=this.parseFlags(this._reader.source,e,r);return{ignoreCase:s,multiline:n,dotAll:i}}parseFlags(e,r,s){let n={global:!1,ignoreCase:!1,multiline:!1,unicode:!1,sticky:!1,dotAll:!1,hasIndices:!1,unicodeSets:!1},i=new Set;i.add(dT),i.add(Nh),i.add(Rh),this.ecmaVersion>=2015&&(i.add(Tl),i.add(gT),this.ecmaVersion>=2018&&(i.add(Nl),this.ecmaVersion>=2022&&(i.add(Ah),this.ecmaVersion>=2024&&i.add(kh))));for(let o=r;o<s;++o){let a=e.charCodeAt(o);if(i.has(a)){let l=XV[a];n[l]&&this.raise(`Duplicated flag '${e[o]}'`,{index:r}),n[l]=!0}else this.raise(`Invalid flag '${e[o]}'`,{index:r})}return n}},n7={},s7={},i7={};function kl(t){return t.type==="Character"||t.type==="CharacterSet"||t.type==="CharacterClass"||t.type==="ExpressionCharacterClass"||t.type==="ClassStringDisjunction"}var Ph=class{constructor(e){var r;this._node=n7,this._expressionBufferMap=new Map,this._flags=s7,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=!!e?.strict,this.ecmaVersion=(r=e?.ecmaVersion)!==null&&r!==void 0?r:nT}get pattern(){if(this._node.type!=="Pattern")throw new Error("UnknownError");return this._node}get flags(){if(this._flags.type!=="Flags")throw new Error("UnknownError");return this._flags}onRegExpFlags(e,r,{global:s,ignoreCase:n,multiline:i,unicode:o,sticky:a,dotAll:l,hasIndices:u,unicodeSets:c}){this._flags={type:"Flags",parent:null,start:e,end:r,raw:this.source.slice(e,r),global:s,ignoreCase:n,multiline:i,unicode:o,sticky:a,dotAll:l,hasIndices:u,unicodeSets:c}}onPatternEnter(e){this._node={type:"Pattern",parent:null,start:e,end:e,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(e,r){this._node.end=r,this._node.raw=this.source.slice(e,r);for(let s of this._backreferences){let n=s.ref,i=typeof n=="number"?[this._capturingGroups[n-1]]:this._capturingGroups.filter(o=>o.name===n);if(i.length===1){let o=i[0];s.ambiguous=!1,s.resolved=o}else s.ambiguous=!0,s.resolved=i;for(let o of i)o.references.push(s)}}onAlternativeEnter(e){let r=this._node;if(r.type!=="Assertion"&&r.type!=="CapturingGroup"&&r.type!=="Group"&&r.type!=="Pattern")throw new Error("UnknownError");this._node={type:"Alternative",parent:r,start:e,end:e,raw:"",elements:[]},r.alternatives.push(this._node)}onAlternativeLeave(e,r){let s=this._node;if(s.type!=="Alternative")throw new Error("UnknownError");s.end=r,s.raw=this.source.slice(e,r),this._node=s.parent}onGroupEnter(e){let r=this._node;if(r.type!=="Alternative")throw new Error("UnknownError");let s={type:"Group",parent:r,start:e,end:e,raw:"",modifiers:null,alternatives:[]};this._node=s,r.elements.push(this._node)}onGroupLeave(e,r){let s=this._node;if(s.type!=="Group"||s.parent.type!=="Alternative")throw new Error("UnknownError");s.end=r,s.raw=this.source.slice(e,r),this._node=s.parent}onModifiersEnter(e){let r=this._node;if(r.type!=="Group")throw new Error("UnknownError");this._node={type:"Modifiers",parent:r,start:e,end:e,raw:"",add:null,remove:null},r.modifiers=this._node}onModifiersLeave(e,r){let s=this._node;if(s.type!=="Modifiers"||s.parent.type!=="Group")throw new Error("UnknownError");s.end=r,s.raw=this.source.slice(e,r),this._node=s.parent}onAddModifiers(e,r,{ignoreCase:s,multiline:n,dotAll:i}){let o=this._node;if(o.type!=="Modifiers")throw new Error("UnknownError");o.add={type:"ModifierFlags",parent:o,start:e,end:r,raw:this.source.slice(e,r),ignoreCase:s,multiline:n,dotAll:i}}onRemoveModifiers(e,r,{ignoreCase:s,multiline:n,dotAll:i}){let o=this._node;if(o.type!=="Modifiers")throw new Error("UnknownError");o.remove={type:"ModifierFlags",parent:o,start:e,end:r,raw:this.source.slice(e,r),ignoreCase:s,multiline:n,dotAll:i}}onCapturingGroupEnter(e,r){let s=this._node;if(s.type!=="Alternative")throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:s,start:e,end:e,raw:"",name:r,alternatives:[],references:[]},s.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(e,r){let s=this._node;if(s.type!=="CapturingGroup"||s.parent.type!=="Alternative")throw new Error("UnknownError");s.end=r,s.raw=this.source.slice(e,r),this._node=s.parent}onQuantifier(e,r,s,n,i){let o=this._node;if(o.type!=="Alternative")throw new Error("UnknownError");let a=o.elements.pop();if(a==null||a.type==="Quantifier"||a.type==="Assertion"&&a.kind!=="lookahead")throw new Error("UnknownError");let l={type:"Quantifier",parent:o,start:a.start,end:r,raw:this.source.slice(a.start,r),min:s,max:n,greedy:i,element:a};o.elements.push(l),a.parent=l}onLookaroundAssertionEnter(e,r,s){let n=this._node;if(n.type!=="Alternative")throw new Error("UnknownError");let i=this._node={type:"Assertion",parent:n,start:e,end:e,raw:"",kind:r,negate:s,alternatives:[]};n.elements.push(i)}onLookaroundAssertionLeave(e,r){let s=this._node;if(s.type!=="Assertion"||s.parent.type!=="Alternative")throw new Error("UnknownError");s.end=r,s.raw=this.source.slice(e,r),this._node=s.parent}onEdgeAssertion(e,r,s){let n=this._node;if(n.type!=="Alternative")throw new Error("UnknownError");n.elements.push({type:"Assertion",parent:n,start:e,end:r,raw:this.source.slice(e,r),kind:s})}onWordBoundaryAssertion(e,r,s,n){let i=this._node;if(i.type!=="Alternative")throw new Error("UnknownError");i.elements.push({type:"Assertion",parent:i,start:e,end:r,raw:this.source.slice(e,r),kind:s,negate:n})}onAnyCharacterSet(e,r,s){let n=this._node;if(n.type!=="Alternative")throw new Error("UnknownError");n.elements.push({type:"CharacterSet",parent:n,start:e,end:r,raw:this.source.slice(e,r),kind:s})}onEscapeCharacterSet(e,r,s,n){let i=this._node;if(i.type!=="Alternative"&&i.type!=="CharacterClass")throw new Error("UnknownError");i.elements.push({type:"CharacterSet",parent:i,start:e,end:r,raw:this.source.slice(e,r),kind:s,negate:n})}onUnicodePropertyCharacterSet(e,r,s,n,i,o,a){let l=this._node;if(l.type!=="Alternative"&&l.type!=="CharacterClass")throw new Error("UnknownError");let u={type:"CharacterSet",parent:null,start:e,end:r,raw:this.source.slice(e,r),kind:s,strings:null,key:n};if(a){if(l.type==="CharacterClass"&&!l.unicodeSets||o||i!==null)throw new Error("UnknownError");l.elements.push(Object.assign(Object.assign({},u),{parent:l,strings:a,value:i,negate:o}))}else l.elements.push(Object.assign(Object.assign({},u),{parent:l,strings:a,value:i,negate:o}))}onCharacter(e,r,s){let n=this._node;if(n.type!=="Alternative"&&n.type!=="CharacterClass"&&n.type!=="StringAlternative")throw new Error("UnknownError");n.elements.push({type:"Character",parent:n,start:e,end:r,raw:this.source.slice(e,r),value:s})}onBackreference(e,r,s){let n=this._node;if(n.type!=="Alternative")throw new Error("UnknownError");let i={type:"Backreference",parent:n,start:e,end:r,raw:this.source.slice(e,r),ref:s,ambiguous:!1,resolved:i7};n.elements.push(i),this._backreferences.push(i)}onCharacterClassEnter(e,r,s){let n=this._node,i={type:"CharacterClass",parent:n,start:e,end:e,raw:"",unicodeSets:s,negate:r,elements:[]};if(n.type==="Alternative"){let o=Object.assign(Object.assign({},i),{parent:n});this._node=o,n.elements.push(o)}else if(n.type==="CharacterClass"&&n.unicodeSets&&s){let o=Object.assign(Object.assign({},i),{parent:n,unicodeSets:s});this._node=o,n.elements.push(o)}else throw new Error("UnknownError")}onCharacterClassLeave(e,r){let s=this._node;if(s.type!=="CharacterClass"||s.parent.type!=="Alternative"&&s.parent.type!=="CharacterClass")throw new Error("UnknownError");let n=s.parent;s.end=r,s.raw=this.source.slice(e,r),this._node=n;let i=this._expressionBufferMap.get(s);if(!i)return;if(s.elements.length>0)throw new Error("UnknownError");this._expressionBufferMap.delete(s);let o={type:"ExpressionCharacterClass",parent:n,start:s.start,end:s.end,raw:s.raw,negate:s.negate,expression:i};if(i.parent=o,s!==n.elements.pop())throw new Error("UnknownError");n.elements.push(o)}onCharacterClassRange(e,r){let s=this._node;if(s.type!=="CharacterClass")throw new Error("UnknownError");let n=s.elements,i=n.pop();if(!i||i.type!=="Character")throw new Error("UnknownError");if(!s.unicodeSets){let l=n.pop();if(!l||l.type!=="Character"||l.value!==mr)throw new Error("UnknownError")}let o=n.pop();if(!o||o.type!=="Character")throw new Error("UnknownError");let a={type:"CharacterClassRange",parent:s,start:e,end:r,raw:this.source.slice(e,r),min:o,max:i};o.parent=a,i.parent=a,n.push(a)}onClassIntersection(e,r){var s;let n=this._node;if(n.type!=="CharacterClass"||!n.unicodeSets)throw new Error("UnknownError");let i=n.elements.pop(),o=(s=this._expressionBufferMap.get(n))!==null&&s!==void 0?s:n.elements.pop();if(!o||!i||o.type==="ClassSubtraction"||o.type!=="ClassIntersection"&&!kl(o)||!kl(i))throw new Error("UnknownError");let a={type:"ClassIntersection",parent:n,start:e,end:r,raw:this.source.slice(e,r),left:o,right:i};o.parent=a,i.parent=a,this._expressionBufferMap.set(n,a)}onClassSubtraction(e,r){var s;let n=this._node;if(n.type!=="CharacterClass"||!n.unicodeSets)throw new Error("UnknownError");let i=n.elements.pop(),o=(s=this._expressionBufferMap.get(n))!==null&&s!==void 0?s:n.elements.pop();if(!o||!i||o.type==="ClassIntersection"||o.type!=="ClassSubtraction"&&!kl(o)||!kl(i))throw new Error("UnknownError");let a={type:"ClassSubtraction",parent:n,start:e,end:r,raw:this.source.slice(e,r),left:o,right:i};o.parent=a,i.parent=a,this._expressionBufferMap.set(n,a)}onClassStringDisjunctionEnter(e){let r=this._node;if(r.type!=="CharacterClass"||!r.unicodeSets)throw new Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:r,start:e,end:e,raw:"",alternatives:[]},r.elements.push(this._node)}onClassStringDisjunctionLeave(e,r){let s=this._node;if(s.type!=="ClassStringDisjunction"||s.parent.type!=="CharacterClass")throw new Error("UnknownError");s.end=r,s.raw=this.source.slice(e,r),this._node=s.parent}onStringAlternativeEnter(e){let r=this._node;if(r.type!=="ClassStringDisjunction")throw new Error("UnknownError");this._node={type:"StringAlternative",parent:r,start:e,end:e,raw:"",elements:[]},r.alternatives.push(this._node)}onStringAlternativeLeave(e,r){let s=this._node;if(s.type!=="StringAlternative")throw new Error("UnknownError");s.end=r,s.raw=this.source.slice(e,r),this._node=s.parent}},Ml=class{constructor(e){this._state=new Ph(e),this._validator=new ga(this._state)}parseLiteral(e,r=0,s=e.length){this._state.source=e,this._validator.validateLiteral(e,r,s);let n=this._state.pattern,i=this._state.flags,o={type:"RegExpLiteral",parent:null,start:r,end:s,raw:e,pattern:n,flags:i};return n.parent=o,i.parent=o,o}parseFlags(e,r=0,s=e.length){return this._state.source=e,this._validator.validateFlags(e,r,s),this._state.flags}parsePattern(e,r=0,s=e.length,n=void 0){return this._state.source=e,this._validator.validatePattern(e,r,s,n),this._state.pattern}},Fh=class{constructor(e){this._handlers=e}visit(e){switch(e.type){case"Alternative":this.visitAlternative(e);break;case"Assertion":this.visitAssertion(e);break;case"Backreference":this.visitBackreference(e);break;case"CapturingGroup":this.visitCapturingGroup(e);break;case"Character":this.visitCharacter(e);break;case"CharacterClass":this.visitCharacterClass(e);break;case"CharacterClassRange":this.visitCharacterClassRange(e);break;case"CharacterSet":this.visitCharacterSet(e);break;case"ClassIntersection":this.visitClassIntersection(e);break;case"ClassStringDisjunction":this.visitClassStringDisjunction(e);break;case"ClassSubtraction":this.visitClassSubtraction(e);break;case"ExpressionCharacterClass":this.visitExpressionCharacterClass(e);break;case"Flags":this.visitFlags(e);break;case"Group":this.visitGroup(e);break;case"Modifiers":this.visitModifiers(e);break;case"ModifierFlags":this.visitModifierFlags(e);break;case"Pattern":this.visitPattern(e);break;case"Quantifier":this.visitQuantifier(e);break;case"RegExpLiteral":this.visitRegExpLiteral(e);break;case"StringAlternative":this.visitStringAlternative(e);break;default:throw new Error(`Unknown type: ${e.type}`)}}visitAlternative(e){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(e),e.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(e)}visitAssertion(e){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(e),(e.kind==="lookahead"||e.kind==="lookbehind")&&e.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(e)}visitBackreference(e){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(e),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(e)}visitCapturingGroup(e){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(e)}visitCharacter(e){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(e),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(e)}visitCharacterClass(e){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(e),e.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(e)}visitCharacterClassRange(e){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(e),this.visitCharacter(e.min),this.visitCharacter(e.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(e)}visitCharacterSet(e){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(e),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(e)}visitClassIntersection(e){this._handlers.onClassIntersectionEnter&&this._handlers.onClassIntersectionEnter(e),this.visit(e.left),this.visit(e.right),this._handlers.onClassIntersectionLeave&&this._handlers.onClassIntersectionLeave(e)}visitClassStringDisjunction(e){this._handlers.onClassStringDisjunctionEnter&&this._handlers.onClassStringDisjunctionEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onClassStringDisjunctionLeave&&this._handlers.onClassStringDisjunctionLeave(e)}visitClassSubtraction(e){this._handlers.onClassSubtractionEnter&&this._handlers.onClassSubtractionEnter(e),this.visit(e.left),this.visit(e.right),this._handlers.onClassSubtractionLeave&&this._handlers.onClassSubtractionLeave(e)}visitExpressionCharacterClass(e){this._handlers.onExpressionCharacterClassEnter&&this._handlers.onExpressionCharacterClassEnter(e),this.visit(e.expression),this._handlers.onExpressionCharacterClassLeave&&this._handlers.onExpressionCharacterClassLeave(e)}visitFlags(e){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(e),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(e)}visitGroup(e){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(e),e.modifiers&&this.visit(e.modifiers),e.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(e)}visitModifiers(e){this._handlers.onModifiersEnter&&this._handlers.onModifiersEnter(e),e.add&&this.visit(e.add),e.remove&&this.visit(e.remove),this._handlers.onModifiersLeave&&this._handlers.onModifiersLeave(e)}visitModifierFlags(e){this._handlers.onModifierFlagsEnter&&this._handlers.onModifierFlagsEnter(e),this._handlers.onModifierFlagsLeave&&this._handlers.onModifierFlagsLeave(e)}visitPattern(e){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(e),e.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(e)}visitQuantifier(e){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(e),this.visit(e.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(e)}visitRegExpLiteral(e){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(e),this.visitPattern(e.pattern),this.visitFlags(e.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(e)}visitStringAlternative(e){this._handlers.onStringAlternativeEnter&&this._handlers.onStringAlternativeEnter(e),e.elements.forEach(this.visit,this),this._handlers.onStringAlternativeLeave&&this._handlers.onStringAlternativeLeave(e)}};function a7(t,e){return new Ml(e).parseLiteral(String(t))}function o7(t,e){new ga(e).validateLiteral(t)}function l7(t,e){new Fh(e).visit(t)}nn.AST=iV;nn.RegExpParser=Ml;nn.RegExpSyntaxError=jl;nn.RegExpValidator=ga;nn.parseRegExpLiteral=a7;nn.validateRegExpLiteral=o7;nn.visitRegExpAST=l7});var CT=B((_re,ST)=>{"use strict";var u7=Ir().RegExpValidator,c7=new class{constructor(){this._source="",this._controlChars=[],this._validator=new u7(this)}onPatternEnter(){this._controlChars=[]}onCharacter(t,e,r){r>=0&&r<=31&&(this._source.codePointAt(t)===r||this._source.slice(t,e).startsWith("\\x")||this._source.slice(t,e).startsWith("\\u"))&&this._controlChars.push(`\\x${`0${r.toString(16)}`.slice(-2)}`)}collectControlChars(t,e){let r=typeof e=="string"&&e.includes("u"),s=typeof e=="string"&&e.includes("v");this._controlChars=[],this._source=t;try{this._validator.validatePattern(t,void 0,void 0,{unicode:r,unicodeSets:s})}catch{}return this._controlChars}};ST.exports={meta:{type:"problem",docs:{description:"Disallow control characters in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-control-regex"},schema:[],messages:{unexpected:"Unexpected control character(s) in regular expression: {{controlChars}}."}},create(t){let e=t.sourceCode;function r(s){if(s.regex)return s.regex;if(typeof s.value=="string"&&(s.parent.type==="NewExpression"||s.parent.type==="CallExpression")&&s.parent.callee.type==="Identifier"&&s.parent.callee.name==="RegExp"&&e.isGlobalReference(s.parent.callee)&&s.parent.arguments[0]===s){let n=s.value,i=s.parent.arguments.length>1&&s.parent.arguments[1].type==="Literal"&&typeof s.parent.arguments[1].value=="string"?s.parent.arguments[1].value:null;return{pattern:n,flags:i}}return null}return{Literal(s){let n=r(s);if(n){let{pattern:i,flags:o}=n,a=c7.collectControlChars(i,o);a.length>0&&t.report({node:s,messageId:"unexpected",data:{controlChars:a.join(", ")}})}}}}}});var AT=B((Ore,wT)=>{"use strict";wT.exports={meta:{type:"problem",docs:{description:"Disallow the use of `debugger`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-debugger"},fixable:null,schema:[],messages:{unexpected:"Unexpected 'debugger' statement."}},create(t){return{DebuggerStatement(e){t.report({node:e,messageId:"unexpected"})}}}}});var TT=B((Lre,kT)=>{"use strict";kT.exports={meta:{type:"suggestion",docs:{description:"Disallow deleting variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-delete-var"},schema:[],messages:{unexpected:"Variables should not be deleted."}},create(t){return{UnaryExpression(e){e.operator==="delete"&&e.argument.type==="Identifier"&&t.report({node:e,messageId:"unexpected"})}}}}});var IT=B((Nre,DT)=>{"use strict";DT.exports={meta:{type:"suggestion",docs:{description:"Disallow equal signs explicitly at the beginning of regular expressions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-div-regex"},fixable:"code",schema:[],messages:{unexpected:"A regular expression literal can be confused with '/='."}},create(t){let e=t.sourceCode;return{Literal(r){let s=e.getFirstToken(r);s.type==="RegularExpression"&&s.value[1]==="="&&t.report({node:r,messageId:"unexpected",fix(n){return n.replaceTextRange([s.range[0]+1,s.range[0]+2],"[=]")}})}}}}});var FT=B((Rre,PT)=>{"use strict";var p7=X();PT.exports={meta:{type:"problem",docs:{description:"Disallow duplicate arguments in `function` definitions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-args"},schema:[],messages:{unexpected:"Duplicate param '{{name}}'."}},create(t){let e=t.sourceCode;function r(n){return n.type==="Parameter"}function s(n){let i=e.getDeclaredVariables(n);for(let o=0;o<i.length;++o){let a=i[o],l=a.defs.filter(r),u={start:p7.getOpeningParenOfParams(n,e).loc.start,end:e.getTokenBefore(n.body).loc.end};l.length>=2&&t.report({loc:u,messageId:"unexpected",data:{name:a.name}})}}return{FunctionDeclaration:s,FunctionExpression:s}}}});var BT=B((jre,_T)=>{"use strict";var f7=X();_T.exports={meta:{type:"problem",docs:{description:"Disallow duplicate class members",dialects:["JavaScript","TypeScript"],recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(t){let e=[];function r(s,n){let i=e.at(-1),o=`$${s}`;return i[o]||(i[o]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),i[o][n?"static":"nonStatic"]}return{Program(){e=[]},ClassBody(){e.push(Object.create(null))},"ClassBody:exit"(){e.pop()},"MethodDefinition, PropertyDefinition"(s){if(s.value&&s.value.type==="TSEmptyBodyFunctionExpression")return;let n=f7.getStaticPropertyName(s),i=s.type==="MethodDefinition"?s.kind:"field";if(n===null||i==="constructor")return;let o=r(n,s.static),a;i==="get"?(a=o.init||o.get,o.get=!0):i==="set"?(a=o.init||o.set,o.set=!0):(a=o.init||o.get||o.set,o.init=!0),a&&t.report({loc:s.key.loc,messageId:"unexpected",data:{name:n}})}}}}});var NT=B((Mre,LT)=>{"use strict";var h7=X();function m7(t,e,r){return e.every(s=>r.some(n=>t(s,n)))}function ql(t,e){return e.type==="LogicalExpression"&&e.operator===t?[...ql(t,e.left),...ql(t,e.right)]:[e]}var OT=ql.bind(null,"||"),jh=ql.bind(null,"&&");LT.exports={meta:{type:"problem",docs:{description:"Disallow duplicate conditions in if-else-if chains",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-else-if"},schema:[],messages:{unexpected:"This branch can never execute. Its condition is a duplicate or covered by previous conditions in the if-else-if chain."}},create(t){let e=t.sourceCode;function r(n,i){return n.type!==i.type?!1:n.type==="LogicalExpression"&&(n.operator==="||"||n.operator==="&&")&&n.operator===i.operator?r(n.left,i.left)&&r(n.right,i.right)||r(n.left,i.right)&&r(n.right,i.left):h7.equalTokens(n,i,e)}let s=m7.bind(null,r);return{IfStatement(n){let i=n.test,o=i.type==="LogicalExpression"&&i.operator==="&&"?[i,...jh(i)]:[i],a=n,l=o.map(u=>OT(u).map(jh));for(;a.parent&&a.parent.type==="IfStatement"&&a.parent.alternate===a;){a=a.parent;let u=OT(a.test).map(jh);if(l=l.map(c=>c.filter(p=>!u.some(h=>s(h,p)))),l.some(c=>c.length===0)){t.report({node:i,messageId:"unexpected"});break}}}}}}});var UT=B((qre,qT)=>{"use strict";var MT=X(),RT=/^(?:init|get)$/u,jT=/^(?:init|set)$/u,Mh=class{constructor(e,r){this.upper=e,this.node=r,this.properties=new Map}getPropertyInfo(e){let r=MT.getStaticPropertyName(e);return this.properties.has(r)||this.properties.set(r,{get:!1,set:!1}),this.properties.get(r)}isPropertyDefined(e){let r=this.getPropertyInfo(e);return RT.test(e.kind)&&r.get||jT.test(e.kind)&&r.set}defineProperty(e){let r=this.getPropertyInfo(e);RT.test(e.kind)&&(r.get=!0),jT.test(e.kind)&&(r.set=!0)}};qT.exports={meta:{type:"problem",docs:{description:"Disallow duplicate keys in object literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-keys"},schema:[],messages:{unexpected:"Duplicate key '{{name}}'."}},create(t){let e=null;return{ObjectExpression(r){e=new Mh(e,r)},"ObjectExpression:exit"(){e=e.upper},Property(r){let s=MT.getStaticPropertyName(r);r.parent.type==="ObjectExpression"&&s!==null&&(s==="__proto__"&&r.kind==="init"&&!r.computed&&!r.shorthand&&!r.method||(e.isPropertyDefined(r)&&t.report({node:e.node,loc:r.key.loc,messageId:"unexpected",data:{name:s}}),e.defineProperty(r)))}}}}});var VT=B((Ure,$T)=>{"use strict";var d7=X();$T.exports={meta:{type:"problem",docs:{description:"Disallow duplicate case labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-duplicate-case"},schema:[],messages:{unexpected:"Duplicate case label."}},create(t){let e=t.sourceCode;function r(s,n){return s.type!==n.type?!1:d7.equalTokens(s,n,e)}return{SwitchStatement(s){let n=[];for(let i of s.cases)if(i.test){let o=i.test;n.some(a=>r(a,o))?t.report({node:i,messageId:"unexpected"}):n.push(o)}}}}}});var HT=B(($re,KT)=>{"use strict";var g7=["ImportSpecifier","ExportSpecifier"],y7=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function Ln(t,e){return(e==="named"?g7:y7).includes(t)}function WT(t){if(t.specifiers&&t.specifiers.length>0){let e=t.specifiers,r=e.findIndex(({type:n})=>Ln(n,"named")||Ln(n,"namespace")),s=r>-1?r:0;return e[s].type}return t.type==="ExportAllDeclaration"?t.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function x7(t,e){let r=WT(t),s=WT(e);if((t.importKind==="type"||t.exportKind==="type")&&(e.importKind==="type"||e.exportKind==="type")){let n=r==="ImportDefaultSpecifier",i=s==="ImportDefaultSpecifier",o=Ln(r,"named"),a=Ln(s,"named");if(n&&a||i&&o)return!1}return!(r==="ExportAll"&&s!=="ExportAll"&&s!=="SideEffectImport"||r!=="ExportAll"&&r!=="SideEffectImport"&&s==="ExportAll"||Ln(r,"namespace")&&Ln(s,"named")||Ln(s,"namespace")&&Ln(r,"named"))}function Ul(t,e,r){let s=0;for(;s<e.length;){let n=e[s];if(r){let i=t.importKind==="type"||t.exportKind==="type",o=n.importKind==="type"||n.exportKind==="type";if(i!==o){s++;continue}}if(x7(t,n))return!0;s++}return!1}function zT(t,e){return t.filter(({declarationType:r})=>r===e).map(({node:r})=>r)}function GT(t){return t&&t.source&&t.source.value?t.source.value.trim():""}function E7(t,e,r,s,n,i){let o=GT(e);if(r.has(o)){let a=r.get(o),l=[],u=zT(a,"import"),c;n&&(c=zT(a,"export")),s==="import"?(Ul(e,u,i)&&l.push("import"),n&&Ul(e,c,i)&&l.push("importAs")):s==="export"&&(Ul(e,c,i)&&l.push("export"),Ul(e,u,i)&&l.push("exportAs")),l.forEach(p=>t.report({node:e,messageId:p,data:{module:o}}))}}function qh(t,e,r,s,n){return function(i){let o=GT(i);if(o){E7(t,i,e,r,s,n);let a={node:i,declarationType:r},l=[a];e.has(o)&&(l=[...e.get(o),a]),e.set(o,l)}}}KT.exports={meta:{type:"problem",defaultOptions:[{includeExports:!1,allowSeparateTypeImports:!1}],docs:{description:"Disallow duplicate module imports",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-duplicate-imports"},schema:[{type:"object",properties:{includeExports:{type:"boolean"},allowSeparateTypeImports:{type:"boolean"}},additionalProperties:!1}],messages:{import:"'{{module}}' import is duplicated.",importAs:"'{{module}}' import is duplicated as export.",export:"'{{module}}' export is duplicated.",exportAs:"'{{module}}' export is duplicated as import."}},create(t){let[{includeExports:e,allowSeparateTypeImports:r}]=t.options,s=new Map,n={ImportDeclaration:qh(t,s,"import",e,r)};return e&&(n.ExportNamedDeclaration=qh(t,s,"export",e,r),n.ExportAllDeclaration=qh(t,s,"export",e,r)),n}}});var ps=B((Vre,JT)=>{"use strict";var b7=X(),Uh=class{constructor(e,r){this.fixer=e,this.sourceCode=r,this.retainedRange=null}retainRange(e){return this.retainedRange=e,this}retainEnclosingFunction(e){let r=b7.getUpperFunction(e);return this.retainRange(r?r.range:this.sourceCode.ast.range)}retainSurroundingTokens(e){let r=this.sourceCode.getTokenBefore(e)||e,s=this.sourceCode.getTokenAfter(e)||e;return this.retainRange([r.range[0],s.range[1]])}replaceTextRange(e,r){let s;return this.retainedRange?s=[Math.min(this.retainedRange[0],e[0]),Math.max(this.retainedRange[1],e[1])]:s=e,this.fixer.replaceTextRange(s,this.sourceCode.text.slice(s[0],e[0])+r+this.sourceCode.text.slice(e[1],s[1]))}remove(e){return this.replaceTextRange(e.range,"")}};JT.exports=Uh});var YT=B((Wre,QT)=>{"use strict";var XT=X(),v7=ps();QT.exports={meta:{type:"suggestion",defaultOptions:[{allowElseIf:!0}],docs:{description:"Disallow `else` blocks after `return` statements in `if` statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-else-return"},schema:[{type:"object",properties:{allowElseIf:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unexpected:"Unnecessary 'else' after 'return'."}},create(t){let[{allowElseIf:e}]=t.options,r=t.sourceCode;function s(d,g){if(d.length===0)return!0;let y=g.variableScope;if(g.variables.filter(({defs:A})=>A.length>0).some(({name:A})=>d.includes(A))||g!==y&&g.upper.type==="catch"&&g.upper.variables.some(({name:A})=>d.includes(A))||g.variables.filter(({defs:A,references:E})=>A.length===0&&E.length>0).some(({name:A})=>d.includes(A))||g.through.some(A=>d.includes(A.identifier.name)))return!1;if(g!==y){let A=g.block.range;if(y.variables.filter(({name:k})=>d.includes(k)).some(k=>k.defs.some(({node:{range:T}})=>A[0]<=T[0]&&T[1]<=A[1])))return!1}return!0}function n(d,g){if(d.type==="FunctionDeclaration")return!1;if(d.type!=="BlockStatement")return!0;let y=g.childScopes.find(({block:S})=>S===d);if(!y)return!0;let v=y.variables.map(({name:S})=>S);return s(v,g)}function i(d){let g=r.getScope(d.parent);t.report({node:d,messageId:"unexpected",fix(y){if(!n(d,g))return null;let v=r.getFirstToken(d),S=r.getTokenBefore(v),A=r.getText(d),E=r.getTokenBefore(S),k,T;v.type==="Punctuator"&&v.value==="{"?T=r.getTokenAfter(v):T=v;let w=d.parent.consequent.type!=="BlockStatement"&&E.value!==";",R=/^[([/+`-]/u.test(T.value);if(w&&R)return null;let j=r.getLastToken(d),$=r.getTokenBefore(j);if($.value!==";"){let M=r.getTokenAfter(j),N=M&&/^[([/+`-]/u.test(M.value),b=M&&M.loc.start.line===$.loc.start.line;if(N||b&&M.value!=="}")return null}return v.type==="Punctuator"&&v.value==="{"?k=A.slice(1,-1):k=A,new v7(y,r).retainEnclosingFunction(d).replaceTextRange([S.range[0],d.range[1]],k)}})}function o(d){return d.type==="ReturnStatement"}function a(d){if(d.type==="BlockStatement"){let g=d.body,y=g.at(-1);return y&&o(y)}return o(d)}function l(d){return d.alternate&&d.consequent}function u(d){return d.type==="IfStatement"&&l(d)&&a(d.alternate)&&a(d.consequent)}function c(d){return o(d)||u(d)}function p(d){return d.type==="BlockStatement"?d.body.some(c):c(d)}function h(d){let g=d.parent;if(!XT.STATEMENT_LIST_PARENTS.has(g.type))return;let y=[],v;for(let S=d;S.type==="IfStatement";S=S.alternate){if(!S.alternate)return;y.push(S.consequent),v=S.alternate}y.every(p)&&i(v)}function f(d){let g=d.parent;if(!XT.STATEMENT_LIST_PARENTS.has(g.type))return;let y=d.alternate;y&&p(d.consequent)&&i(y)}return{"IfStatement:exit":e?h:f}}}});var tD=B((zre,eD)=>{"use strict";var ZT=X();eD.exports={meta:{hasSuggestions:!0,type:"suggestion",defaultOptions:[{allowEmptyCatch:!1}],docs:{description:"Disallow empty block statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty"},schema:[{type:"object",properties:{allowEmptyCatch:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Empty {{type}} statement.",suggestComment:"Add comment inside empty {{type}} statement."}},create(t){let[{allowEmptyCatch:e}]=t.options,r=t.sourceCode;return{BlockStatement(s){s.body.length===0&&(ZT.isFunction(s.parent)||e&&s.parent.type==="CatchClause"||r.getCommentsInside(s).length>0||t.report({node:s,messageId:"unexpected",data:{type:"block"},suggest:[{messageId:"suggestComment",data:{type:"block"},fix(n){let i=[s.range[0]+1,s.range[1]-1];return n.replaceTextRange(i," /* empty */ ")}}]}))},SwitchStatement(s){if(typeof s.cases>"u"||s.cases.length===0){let n=r.getTokenAfter(s.discriminant,ZT.isOpeningBraceToken),i=r.getLastToken(s);if(r.commentsExistBetween(n,i))return;t.report({node:s,loc:{start:n.loc.start,end:i.loc.end},messageId:"unexpected",data:{type:"switch"},suggest:[{messageId:"suggestComment",data:{type:"switch"},fix(o){let a=[n.range[1],i.range[0]];return o.replaceTextRange(a," /* empty */ ")}}]})}}}}}});var nD=B((Gre,rD)=>{"use strict";var{RegExpParser:S7,visitRegExpAST:C7}=Ir(),w7=new S7,A7=/\[\]/u;rD.exports={meta:{type:"problem",docs:{description:"Disallow empty character classes in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-character-class"},schema:[],messages:{unexpected:"Empty class."}},create(t){return{"Literal[regex]"(e){let{pattern:r,flags:s}=e.regex;if(!A7.test(r))return;let n;try{n=w7.parsePattern(r,0,r.length,{unicode:s.includes("u"),unicodeSets:s.includes("v")})}catch{return}C7(n,{onCharacterClassEnter(i){!i.negate&&i.elements.length===0&&t.report({node:e,messageId:"unexpected"})}})}}}}});var aD=B((Kre,iD)=>{"use strict";var sD=X(),k7=Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods","privateConstructors","protectedConstructors","decoratedFunctions","overrideMethods"]);function T7(t){let e=t.parent,r;if(t.type==="ArrowFunctionExpression")return"arrowFunctions";if(e.type==="Property"){if(e.kind==="get")return"getters";if(e.kind==="set")return"setters";r=e.method?"methods":"functions"}else if(e.type==="MethodDefinition"){if(e.kind==="get")return"getters";if(e.kind==="set")return"setters";if(e.kind==="constructor")return"constructors";r="methods"}else r="functions";let s;if(t.generator)s="generator";else if(t.async)s="async";else return r;return s+r[0].toUpperCase()+r.slice(1)}function D7(t){return t.params.some(e=>e.type==="TSParameterProperty")}iD.exports={meta:{hasSuggestions:!0,type:"suggestion",defaultOptions:[{allow:[]}],docs:{description:"Disallow empty functions",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:k7},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}.",suggestComment:"Add comment inside empty {{name}}."}},create(t){let[{allow:e}]=t.options,r=t.sourceCode;function s(i){let o=T7(i);return!!(e.includes(o)||o==="constructors"&&(i.parent.accessibility==="private"&&e.includes("privateConstructors")||i.parent.accessibility==="protected"&&e.includes("protectedConstructors")||D7(i))||/(?:g|s)etters|methods$/iu.test(o)&&(i.parent.decorators?.length&&e.includes("decoratedFunctions")||i.parent.override&&e.includes("overrideMethods")))}function n(i){let o=sD.getFunctionNameWithKind(i),a=r.getTokens(i.body,{includeComments:!0,filter:sD.isCommentToken});!s(i)&&i.body.type==="BlockStatement"&&i.body.body.length===0&&a.length===0&&t.report({node:i,loc:i.body.loc,messageId:"unexpected",data:{name:o},suggest:[{messageId:"suggestComment",data:{name:o},fix(l){let u=[i.body.range[0]+1,i.body.range[1]-1];return l.replaceTextRange(u," /* empty */ ")}}]})}return{ArrowFunctionExpression:n,FunctionDeclaration:n,FunctionExpression:n}}}});var uD=B((Hre,lD)=>{"use strict";var oD=X();lD.exports={meta:{type:"problem",defaultOptions:[{allowObjectPatternsAsParameters:!1}],docs:{description:"Disallow empty destructuring patterns",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-pattern"},schema:[{type:"object",properties:{allowObjectPatternsAsParameters:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{type}} pattern."}},create(t){let[{allowObjectPatternsAsParameters:e}]=t.options;return{ObjectPattern(r){r.properties.length>0||e&&(oD.isFunction(r.parent)||r.parent.type==="AssignmentPattern"&&oD.isFunction(r.parent.parent)&&r.parent.right.type==="ObjectExpression"&&r.parent.right.properties.length===0)||t.report({node:r,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(r){r.elements.length===0&&t.report({node:r,messageId:"unexpected",data:{type:"array"}})}}}}});var pD=B((Jre,cD)=>{"use strict";cD.exports={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow empty static blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-empty-static-block"},schema:[],messages:{unexpected:"Unexpected empty static block.",suggestComment:"Add comment inside empty static block."}},create(t){let e=t.sourceCode;return{StaticBlock(r){if(r.body.length===0){let s=e.getFirstToken(r,{skip:1}),n=e.getLastToken(r);e.getCommentsBefore(n).length===0&&t.report({loc:{start:s.loc.start,end:n.loc.end},messageId:"unexpected",suggest:[{messageId:"suggestComment",fix(i){let o=[s.range[1],n.range[0]];return i.replaceTextRange(o," /* empty */ ")}}]})}}}}}});var hD=B((Xre,fD)=>{"use strict";fD.exports={meta:{type:"suggestion",docs:{description:"Disallow `null` comparisons without type-checking operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eq-null"},schema:[],messages:{unexpected:"Use '===' to compare with null."}},create(t){return{BinaryExpression(e){let r=e.operator==="=="||e.operator==="!=";(e.right.type==="Literal"&&e.right.raw==="null"&&r||e.left.type==="Literal"&&e.left.raw==="null"&&r)&&t.report({node:e,messageId:"unexpected"})}}}}});var gD=B((Qre,dD)=>{"use strict";var fs=X(),mD=Object.freeze(["global","window","globalThis"]);function $h(t,e){return fs.isSpecificMemberAccess(t,null,e)}dD.exports={meta:{type:"suggestion",defaultOptions:[{allowIndirect:!1}],docs:{description:"Disallow the use of `eval()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-eval"},schema:[{type:"object",properties:{allowIndirect:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"`eval` can be harmful."}},create(t){let[{allowIndirect:e}]=t.options,r=t.sourceCode,s=null;function n(u){let c=r.getScope(u).isStrict;s={upper:s,node:u,strict:c,isTopLevelOfScript:!1,defaultThis:!1,initialized:c}}function i(){s=s.upper}function o(u){let c=u.parent,p=u.type==="MemberExpression"?u.property:u,h=c.type==="CallExpression"&&c.callee===u?c:u;t.report({node:h,loc:p.loc,messageId:"unexpected"})}function a(u){for(let c=0;c<mD.length;++c){let p=mD[c],h=fs.getVariableByName(u,p);if(!h)continue;let f=h.references;for(let d=0;d<f.length;++d){let y=f[d].identifier.parent;for(;$h(y,p);)y=y.parent;$h(y,"eval")&&o(y)}}}function l(u){let c=fs.getVariableByName(u,"eval");if(!c)return;let p=c.references;for(let h=0;h<p.length;++h){let d=p[h].identifier;d.name==="eval"&&!fs.isCallee(d)&&o(d)}}return e?{"CallExpression:exit"(u){let c=u.callee;!u.optional&&fs.isSpecificId(c,"eval")&&o(c)}}:{"CallExpression:exit"(u){let c=u.callee;fs.isSpecificId(c,"eval")&&o(c)},Program(u){let c=r.getScope(u),p=t.languageOptions.parserOptions.ecmaFeatures||{},h=c.isStrict||u.sourceType==="module"||p.globalReturn&&c.childScopes[0].isStrict,f=u.sourceType!=="module"&&!p.globalReturn;s={upper:null,node:u,strict:h,isTopLevelOfScript:f,defaultThis:!0,initialized:!0}},"Program:exit"(u){let c=r.getScope(u);i(),l(c),a(c)},FunctionDeclaration:n,"FunctionDeclaration:exit":i,FunctionExpression:n,"FunctionExpression:exit":i,"PropertyDefinition > *.value":n,"PropertyDefinition > *.value:exit":i,StaticBlock:n,"StaticBlock:exit":i,ThisExpression(u){$h(u.parent,"eval")&&(s.initialized||(s.initialized=!0,s.defaultThis=fs.isDefaultThisBinding(s.node,r)),(s.isTopLevelOfScript||!s.strict&&s.defaultThis)&&o(u.parent))}}}}});var xD=B((Yre,yD)=>{"use strict";var I7=X();yD.exports={meta:{type:"problem",docs:{description:"Disallow reassigning exceptions in `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-ex-assign"},schema:[],messages:{unexpected:"Do not assign to the exception parameter."}},create(t){let e=t.sourceCode;function r(s){I7.getModifyingReferences(s.references).forEach(n=>{t.report({node:n.identifier,messageId:"unexpected"})})}return{CatchClause(s){e.getDeclaredVariables(s).forEach(r)}}}}});var bD=B((Zre,ED)=>{"use strict";var Vh=X();ED.exports={meta:{type:"suggestion",defaultOptions:[{exceptions:[]}],docs:{description:"Disallow extending native types",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extend-native"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"{{builtin}} prototype is read only, properties should not be added."}},create(t){let e=t.sourceCode,r=new Set(t.options[0].exceptions),s=new Set(Object.keys(Vh.ECMASCRIPT_GLOBALS).filter(u=>u[0].toUpperCase()===u[0]).filter(u=>!r.has(u)));function n(u,c){t.report({node:u,messageId:"unexpected",data:{builtin:c}})}function i(u){return!!(u&&u.parent&&u.parent.type==="MemberExpression"&&u.parent.object===u&&Vh.getStaticPropertyName(u.parent)==="prototype")}function o(u){return u.parent.type==="MemberExpression"&&u.parent.object===u&&u.parent.parent.type==="AssignmentExpression"&&u.parent.parent.left===u.parent}function a(u){return u.parent.type==="CallExpression"&&u.parent.arguments[0]===u&&Vh.isSpecificMemberAccess(u.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}function l(u){if(!i(u))return;let c=u.parent.parent.type==="ChainExpression"?u.parent.parent:u.parent;o(c)?n(c.parent.parent,u.name):a(c)&&n(c.parent,u.name)}return{"Program:exit"(u){let c=e.getScope(u);s.forEach(p=>{let h=c.set.get(p);h&&h.references&&h.references.map(f=>f.identifier).forEach(l)})}}}}});var SD=B((ene,vD)=>{"use strict";var Wh=X(),P7=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);vD.exports={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.bind()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-bind"},schema:[],fixable:"code",messages:{unexpected:"The function binding is unnecessary."}},create(t){let e=t.sourceCode,r=null;function s(c){return P7.has(c.type)}function n(c){let p=c.parent,h=p.parent.type==="ChainExpression"?p.parent.parent:p.parent;t.report({node:h,messageId:"unexpected",loc:p.property.loc,fix(f){if(!s(h.arguments[0]))return null;let d=[[e.getTokenAfter(p.object,Wh.isNotClosingParenToken),e.getLastToken(p)],[e.getTokenAfter(p,Wh.isNotClosingParenToken),e.getLastToken(h)]],g=d[0][0],y=d[1][1];return e.commentsExistBetween(g,y)?null:d.map(([v,S])=>f.removeRange([v.range[0],S.range[1]]))}})}function i(c){if(!Wh.isSpecificMemberAccess(c.parent,null,"bind"))return!1;let p=c.parent.parent.type==="ChainExpression"?c.parent.parent:c.parent;return p.parent.type==="CallExpression"&&p.parent.callee===p&&p.parent.arguments.length===1&&p.parent.arguments[0].type!=="SpreadElement"}function o(c){r={isBound:i(c),thisFound:!1,upper:r}}function a(c){r.isBound&&!r.thisFound&&n(c),r=r.upper}function l(c){i(c)&&n(c)}function u(){r&&(r.thisFound=!0)}return{"ArrowFunctionExpression:exit":l,FunctionDeclaration:o,"FunctionDeclaration:exit":a,FunctionExpression:o,"FunctionExpression:exit":a,"PropertyDefinition > *.key:exit":o,"PropertyDefinition:exit":a,StaticBlock:o,"StaticBlock:exit":a,ThisExpression:u}}}});var wD=B((tne,CD)=>{"use strict";var $l=X(),F7=Ht(),Vr=$l.getPrecedence;CD.exports={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow unnecessary boolean casts",recommended:!0,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-extra-boolean-cast"},schema:[{anyOf:[{type:"object",properties:{enforceForInnerExpressions:{type:"boolean"}},additionalProperties:!1},{type:"object",properties:{enforceForLogicalOperands:{type:"boolean"}},additionalProperties:!1}]}],fixable:"code",messages:{unexpectedCall:"Redundant Boolean call.",unexpectedNegation:"Redundant double negation."}},create(t){let e=t.sourceCode,[{enforceForLogicalOperands:r,enforceForInnerExpressions:s}]=t.options,n=new Set(["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"]);function i(p){return(p.type==="CallExpression"||p.type==="NewExpression")&&p.callee.type==="Identifier"&&p.callee.name==="Boolean"&&e.isGlobalReference(p.callee)}function o(p){return i(p.parent)&&p===p.parent.arguments[0]||n.has(p.parent.type)&&p===p.parent.test||p.parent.type==="UnaryExpression"&&p.parent.operator==="!"}function a(p){return p.parent.type==="ChainExpression"||(r||s)&&p.parent.type==="LogicalExpression"&&(p.parent.operator==="||"||p.parent.operator==="&&"||s&&p.parent.operator==="??"&&p.parent.right===p)||s&&(p.parent.type==="ConditionalExpression"&&(p.parent.consequent===p||p.parent.alternate===p)||p.parent.type==="SequenceExpression"&&p.parent.expressions.at(-1)===p)?a(p.parent):o(p)}function l(p){return!!e.getCommentsInside(p).length}function u(p){return F7.isParenthesized(1,p,e)}function c(p,h){if(p.parent.type==="ChainExpression")return c(p.parent,h);if(u(p))return!1;let f=p.parent;switch(f.type){case"CallExpression":case"NewExpression":return h.type==="SequenceExpression";case"IfStatement":case"DoWhileStatement":case"WhileStatement":case"ForStatement":case"SequenceExpression":return!1;case"ConditionalExpression":if(p===f.test)return Vr(h)<=Vr(f);if(p===f.consequent||p===f.alternate)return Vr(h)<Vr({type:"AssignmentExpression"});throw new Error("Ternary child must be test, consequent, or alternate.");case"UnaryExpression":return Vr(h)<Vr(f);case"LogicalExpression":return $l.isMixedLogicalAndCoalesceExpressions(h,f)?!0:p===f.left?Vr(h)<Vr(f):Vr(h)<=Vr(f);default:throw new Error(`Unexpected parent type: ${f.type}`)}}return{UnaryExpression(p){let h=p.parent;p.operator!=="!"||h.type!=="UnaryExpression"||h.operator!=="!"||a(h)&&t.report({node:h,messageId:"unexpectedNegation",fix(f){if(l(h))return null;if(c(h,p.argument))return f.replaceText(h,`(${e.getText(p.argument)})`);let d="",g=e.getTokenBefore(h),y=e.getFirstToken(p.argument);return g&&g.range[1]===h.range[0]&&!$l.canTokensBeAdjacent(g,y)&&(d=" "),f.replaceText(h,d+e.getText(p.argument))}})},CallExpression(p){p.callee.type!=="Identifier"||p.callee.name!=="Boolean"||!e.isGlobalReference(p.callee)||a(p)&&t.report({node:p,messageId:"unexpectedCall",fix(h){let f=p.parent;if(p.arguments.length===0){if(f.type==="UnaryExpression"&&f.operator==="!"){if(l(f))return null;let d="true",g="",y=e.getTokenBefore(f);return y&&y.range[1]===f.range[0]&&!$l.canTokensBeAdjacent(y,d)&&(g=" "),h.replaceText(f,g+d)}return l(p)?null:h.replaceText(p,"false")}if(p.arguments.length===1){let d=p.arguments[0];return d.type==="SpreadElement"||l(p)?null:c(p,d)?h.replaceText(p,`(${e.getText(d)})`):h.replaceText(p,e.getText(d))}return null}})}}}}});var TD=B((rne,kD)=>{"use strict";var AD=X();kD.exports={meta:{type:"suggestion",docs:{description:"Disallow unnecessary labels",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-extra-label"},schema:[],fixable:"code",messages:{unexpected:"This label '{{name}}' is unnecessary."}},create(t){let e=t.sourceCode,r=null;function s(l){r={label:l.parent.type==="LabeledStatement"?l.parent.label:null,breakable:!0,upper:r}}function n(){r=r.upper}function i(l){AD.isBreakableStatement(l.body)||(r={label:l.label,breakable:!1,upper:r})}function o(l){AD.isBreakableStatement(l.body)||(r=r.upper)}function a(l){if(!l.label)return;let u=l.label;for(let c=r;c!==null;c=c.upper)if(c.breakable||c.label&&c.label.name===u.name){c.breakable&&c.label&&c.label.name===u.name&&t.report({node:u,messageId:"unexpected",data:u,fix(p){let h=e.getFirstToken(l);return e.commentsExistBetween(h,u)?null:p.removeRange([h.range[1],u.range[1]])}});return}}return{WhileStatement:s,"WhileStatement:exit":n,DoWhileStatement:s,"DoWhileStatement:exit":n,ForStatement:s,"ForStatement:exit":n,ForInStatement:s,"ForInStatement:exit":n,ForOfStatement:s,"ForOfStatement:exit":n,SwitchStatement:s,"SwitchStatement:exit":n,LabeledStatement:i,"LabeledStatement:exit":o,BreakStatement:a,ContinueStatement:a}}}});var PD=B((nne,ID)=>{"use strict";var{isParenthesized:DD}=Ht(),yt=X();ID.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-extra-parens",url:"https://eslint.style/rules/no-extra-parens"}}]},type:"layout",docs:{description:"Disallow unnecessary parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-parens"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["functions"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["all"]},{type:"object",properties:{conditionalAssign:{type:"boolean"},ternaryOperandBinaryExpressions:{type:"boolean"},nestedBinaryExpressions:{type:"boolean"},returnAssign:{type:"boolean"},ignoreJSX:{enum:["none","all","single-line","multi-line"]},enforceForArrowConditionals:{type:"boolean"},enforceForSequenceExpressions:{type:"boolean"},enforceForNewInMemberExpressions:{type:"boolean"},enforceForFunctionPrototypeMethods:{type:"boolean"},allowParensAfterCommentPattern:{type:"string"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{unexpected:"Unnecessary parentheses around expression."}},create(t){let e=t.sourceCode,r=new WeakSet,s=yt.getPrecedence,n=t.options[0]!=="functions",i=n&&t.options[1]&&t.options[1].conditionalAssign===!1,o=n&&t.options[1]&&t.options[1].ternaryOperandBinaryExpressions===!1,a=n&&t.options[1]&&t.options[1].nestedBinaryExpressions===!1,l=n&&t.options[1]&&t.options[1].returnAssign===!1,u=n&&t.options[1]&&t.options[1].ignoreJSX,c=n&&t.options[1]&&t.options[1].enforceForArrowConditionals===!1,p=n&&t.options[1]&&t.options[1].enforceForSequenceExpressions===!1,h=n&&t.options[1]&&t.options[1].enforceForNewInMemberExpressions===!1,f=n&&t.options[1]&&t.options[1].enforceForFunctionPrototypeMethods===!1,d=n&&t.options[1]&&t.options[1].allowParensAfterCommentPattern,g=s({type:"AssignmentExpression"}),y=s({type:"UpdateExpression"}),v;function S(O){let K=yt.skipChainExpression(O);if(K.type!=="CallExpression")return!1;let he=yt.skipChainExpression(K.callee);return he.type==="MemberExpression"&&he.object.type==="FunctionExpression"&&["call","apply"].includes(yt.getStaticPropertyName(he))}function A(O){if(O.type==="JSXElement"||O.type==="JSXFragment"){let K=O.loc.start.line===O.loc.end.line;switch(u){case"all":return!1;case"multi-line":return K;case"single-line":return!K;case"none":break}}return O.type==="SequenceExpression"&&p||S(O)&&f?!1:n||O.type==="FunctionExpression"||O.type==="ArrowFunctionExpression"}function E(O){return DD(1,O,e)}function k(O){return DD(2,O,e)}function T(O){return A(O)&&E(O)}function w(O){return A(O)&&k(O)}function R(O,K){return!!(A(O)&&E(O)&&(s(O)>=K||k(O)))}function j(O){return i&&O.test.type==="AssignmentExpression"}function $(O){for(let K=O;K;K=K.parent)if(K.type==="ReturnStatement"||K.type==="ArrowFunctionExpression"&&K.body.type!=="BlockStatement")return!0;return!1}function M(O){let K=e.getLastToken(O),he=e.getTokenBefore(K);return O.arguments.length>0||yt.isOpeningParenToken(he)&&yt.isClosingParenToken(K)&&O.callee.range[1]<O.range[1]}function N(O){return!!(O.type==="AssignmentExpression"||O.type==="ConditionalExpression"&&(O.consequent.type==="AssignmentExpression"||O.alternate.type==="AssignmentExpression")||O.left&&O.left.type==="AssignmentExpression"||O.right&&O.right.type==="AssignmentExpression")}function b(O){return!l||!$(O)?!1:O.type==="ReturnStatement"?O.argument&&N(O.argument):O.type==="ArrowFunctionExpression"&&O.body.type!=="BlockStatement"?N(O.body):N(O)}function C(O,K){return O.loc.end.line===K.loc.start.line?T(K):w(K)}function P(O){let K=e.getTokenBefore(O),he=e.getTokenBefore(K,{includeComments:!0}),Fe=e.getTokenAfter(K,{includeComments:!0});return he&&he.range[1]===K.range[0]&&K.range[1]===Fe.range[0]&&!yt.canTokensBeAdjacent(he,Fe)}function F(O){let K=e.getTokensAfter(O,{count:2}),he=K[0],Fe=K[1],Ue=e.getLastToken(O);return he&&Fe&&!e.isSpaceBetween(he,Fe)&&!yt.canTokensBeAdjacent(Ue,Fe)}function I(O){let K=yt.skipChainExpression(O);return K.type==="CallExpression"&&K.callee.type==="FunctionExpression"}function U(O){return O&&(O.type==="Identifier"||O.type==="MemberExpression")}function z(O){return O.type!=="Literal"||typeof O.value!="string"||k(O)?!0:!yt.isTopLevelExpressionStatement(O.parent)}function W(O){let K=e.getTokenBefore(O),he=e.getTokenAfter(O);if(!k(O)){if(r.has(e.getFirstToken(O))||I(O)&&!E(O.callee))return;if(d){let Ue=e.getCommentsBefore(K),We=Ue.length,xt=new RegExp(d,"u");if(We>0&&xt.test(Ue[We-1].value))return}}function Fe(){t.report({node:O,loc:K.loc,messageId:"unexpected",fix:z(O)?Ue=>{let We=e.text.slice(K.range[1],he.range[0]);return Ue.replaceTextRange([K.range[0],he.range[1]],(P(O)?" ":"")+We+(F(O)?" ":""))}:null})}if(v){v.reports.push({node:O,finishReport:Fe});return}Fe()}function re(O){R(O.argument,s(O))&&W(O.argument)}function ue(O){let K=O.object,he=O.object.type;for(;he==="MemberExpression";)K=K.object,he=K.type;return he==="CallExpression"}function be(O){let K=O.callee;R(K,s(O))&&(w(K)||!(I(O)||K.type==="NewExpression"&&!M(K)&&!(O.type==="NewExpression"&&!M(O))||O.type==="NewExpression"&&K.type==="MemberExpression"&&ue(K)||!O.optional&&K.type==="ChainExpression"))&&W(O.callee),O.arguments.filter(he=>R(he,g)).forEach(W)}function te(O){let K=s(O),he=s(O.left),Fe=s(O.right),Ue=O.operator==="**",We=a&&(O.left.type==="BinaryExpression"||O.left.type==="LogicalExpression"),xt=a&&(O.right.type==="BinaryExpression"||O.right.type==="LogicalExpression");!We&&T(O.left)&&(!(["AwaitExpression","UnaryExpression"].includes(O.left.type)&&Ue)&&!yt.isMixedLogicalAndCoalesceExpressions(O.left,O)&&(he>K||he===K&&!Ue)||k(O.left))&&W(O.left),!xt&&T(O.right)&&(!yt.isMixedLogicalAndCoalesceExpressions(O.right,O)&&(Fe>K||Fe===K&&Ue)||k(O.right))&&W(O.right)}function pe(O){if(!O.superClass)return;(s(O.superClass)>y?T(O.superClass):w(O.superClass))&&W(O.superClass)}function ve(O){R(O.argument,g)&&W(O.argument)}function Ae(O){let K=E(O)?e.getTokenBefore(O):e.getFirstToken(O),he=e.getTokenAfter(K,yt.isNotOpeningParenToken),Fe=he?e.getTokenAfter(he):null,Ue=he?e.getTokenAfter(he,yt.isNotClosingParenToken):null;yt.isOpeningParenToken(K)&&(yt.isOpeningBraceToken(he)||he.type==="Keyword"&&(he.value==="function"||he.value==="class"||he.value==="let"&&Ue&&(yt.isOpeningBracketToken(Ue)||Ue.type==="Identifier"))||he&&he.type==="Identifier"&&he.value==="async"&&Fe&&Fe.type==="Keyword"&&Fe.value==="function")&&r.add(he),(O.parent.type==="ExportDefaultDeclaration"?R(O,g):T(O))&&W(O)}function ie(O,K){let he=[O],Fe=O;for(;Fe!==K;){if(Fe=Fe.parent,Fe===null)throw new Error("Nodes are not in the ancestor-descendant relationship.");he.push(Fe)}return he}function xe(O,K){return ie(K,O).reverse()}function ae(O,K){switch(O.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return O.params.includes(K);case"CallExpression":case"NewExpression":return O.arguments.includes(K);case"MemberExpression":return O.computed&&O.property===K;case"ConditionalExpression":return O.consequent===K;default:return!1}}function fe(){v={upper:v,inExpressionNodes:[],reports:[]}}function Be(){let{upper:O,inExpressionNodes:K,reports:he}=v;O?(O.inExpressionNodes.push(...K),O.reports.push(...he)):he.forEach(({finishReport:Fe})=>Fe()),v=O}function Re(O){return v.reports.some(K=>K.node===O)}function Pe(O){v.reports=v.reports.filter(K=>K.node!==O)}function je(O){return O.type==="MemberExpression"?O.parent.type==="NewExpression"&&O.parent.callee===O?!0:O.parent.object===O&&je(O.parent):!1}function ze({left:O,operator:K,right:he}){if(O.type==="Identifier"&&["=","&&=","||=","??="].includes(K)){let Fe=he.type;if(Fe==="ArrowFunctionExpression"||(Fe==="FunctionExpression"||Fe==="ClassExpression")&&!he.id)return!0}return!1}return{ArrayExpression(O){O.elements.filter(K=>K&&R(K,g)).forEach(W)},ArrayPattern(O){O.elements.filter(K=>U(K)&&T(K)).forEach(W)},ArrowFunctionExpression(O){if(!b(O)&&!(O.body.type==="ConditionalExpression"&&c)&&O.body.type!=="BlockStatement"){let K=e.getFirstToken(O.body,yt.isNotOpeningParenToken),he=e.getTokenBefore(K);yt.isOpeningParenToken(he)&&yt.isOpeningBraceToken(K)&&r.add(K),R(O.body,g)&&W(O.body)}},AssignmentExpression(O){U(O.left)&&T(O.left)&&(!ze(O)||k(O.left))&&W(O.left),!b(O)&&R(O.right,s(O))&&W(O.right)},BinaryExpression(O){v&&O.operator==="in"&&v.inExpressionNodes.push(O),te(O)},CallExpression:be,ConditionalExpression(O){if(b(O))return;let K=new Set(["BinaryExpression","LogicalExpression"]);!(o&&K.has(O.test.type))&&!j(O)&&R(O.test,s({type:"LogicalExpression",operator:"||"}))&&W(O.test),!(o&&K.has(O.consequent.type))&&R(O.consequent,g)&&W(O.consequent),!(o&&K.has(O.alternate.type))&&R(O.alternate,g)&&W(O.alternate)},DoWhileStatement(O){T(O.test)&&!j(O)&&W(O.test)},ExportDefaultDeclaration:O=>Ae(O.declaration),ExpressionStatement:O=>Ae(O.expression),ForInStatement(O){if(O.left.type!=="VariableDeclaration"){let K=e.getFirstToken(O.left,yt.isNotOpeningParenToken);K.value==="let"&&yt.isOpeningBracketToken(e.getTokenAfter(K,yt.isNotClosingParenToken))&&r.add(K)}T(O.left)&&W(O.left),T(O.right)&&W(O.right)},ForOfStatement(O){if(O.left.type!=="VariableDeclaration"){let K=e.getFirstToken(O.left,yt.isNotOpeningParenToken);K.value==="let"&&r.add(K)}T(O.left)&&W(O.left),R(O.right,g)&&W(O.right)},ForStatement(O){if(O.test&&T(O.test)&&!j(O)&&W(O.test),O.update&&T(O.update)&&W(O.update),O.init){if(O.init.type!=="VariableDeclaration"){let K=e.getFirstToken(O.init,yt.isNotOpeningParenToken);K.value==="let"&&yt.isOpeningBracketToken(e.getTokenAfter(K,yt.isNotClosingParenToken))&&r.add(K)}fe(),T(O.init)&&W(O.init)}},"ForStatement > *.init:exit"(O){v.reports.length&&v.inExpressionNodes.forEach(K=>{let he=xe(O,K),Fe;for(let Ue=0;Ue<he.length;Ue++){let We=he[Ue];if(Ue<he.length-1){let xt=he[Ue+1];if(ae(We,xt))return}if(E(We))if(Re(We)){if(k(We))return;Fe||(Fe=We)}else return}Pe(Fe)}),Be()},IfStatement(O){T(O.test)&&!j(O)&&W(O.test)},ImportExpression(O){let{source:K}=O;K.type==="SequenceExpression"?w(K)&&W(K):T(K)&&W(K)},LogicalExpression:te,MemberExpression(O){let he=je(O)&&ue(O)?w(O.object):T(O.object)&&!(S(O.parent)&&O.parent.callee===O&&f);he&&s(O.object)>=s(O)&&(O.computed||!(yt.isDecimalInteger(O.object)||O.object.type==="Literal"&&O.object.regex))&&W(O.object),he&&O.object.type==="CallExpression"&&W(O.object),he&&!h&&O.object.type==="NewExpression"&&M(O.object)&&W(O.object),he&&O.optional&&O.object.type==="ChainExpression"&&W(O.object),O.computed&&T(O.property)&&W(O.property)},"MethodDefinition[computed=true]"(O){R(O.key,g)&&W(O.key)},NewExpression:be,ObjectExpression(O){O.properties.filter(K=>K.value&&R(K.value,g)).forEach(K=>W(K.value))},ObjectPattern(O){O.properties.filter(K=>{let he=K.value;return U(he)&&T(he)}).forEach(K=>W(K.value))},Property(O){if(O.computed){let{key:K}=O;K&&R(K,g)&&W(K)}},PropertyDefinition(O){O.computed&&R(O.key,g)&&W(O.key),O.value&&R(O.value,g)&&W(O.value)},RestElement(O){let K=O.argument;U(K)&&T(K)&&W(K)},ReturnStatement(O){let K=e.getFirstToken(O);b(O)||O.argument&&C(K,O.argument)&&!(O.argument.type==="Literal"&&O.argument.regex)&&W(O.argument)},SequenceExpression(O){let K=s(O);O.expressions.filter(he=>R(he,K)).forEach(W)},SwitchCase(O){O.test&&T(O.test)&&W(O.test)},SwitchStatement(O){T(O.discriminant)&&W(O.discriminant)},ThrowStatement(O){let K=e.getFirstToken(O);C(K,O.argument)&&W(O.argument)},UnaryExpression:re,UpdateExpression(O){if(O.prefix)re(O);else{let{argument:K}=O,he=e.getLastToken(O);K.loc.end.line===he.loc.start.line?re(O):w(K)&&W(K)}},AwaitExpression:re,VariableDeclarator(O){O.init&&R(O.init,g)&&!(O.init.type==="Literal"&&O.init.regex)&&W(O.init)},WhileStatement(O){T(O.test)&&!j(O)&&W(O.test)},WithStatement(O){T(O.object)&&W(O.object)},YieldExpression(O){if(O.argument){let K=e.getFirstToken(O);(s(O.argument)>=s(O)&&C(K,O.argument)||w(O.argument))&&W(O.argument)}},ClassDeclaration:pe,ClassExpression:pe,SpreadElement:ve,SpreadProperty:ve,ExperimentalSpreadProperty:ve,TemplateLiteral(O){O.expressions.filter(K=>K&&T(K)).forEach(W)},AssignmentPattern(O){let{left:K,right:he}=O;U(K)&&T(K)&&W(K),he&&R(he,g)&&W(he)}}}}});var _D=B((sne,FD)=>{"use strict";var _7=ps(),zh=X();FD.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-extra-semi",url:"https://eslint.style/rules/no-extra-semi"}}]},type:"suggestion",docs:{description:"Disallow unnecessary semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-extra-semi"},fixable:"code",schema:[],messages:{unexpected:"Unnecessary semicolon."}},create(t){let e=t.sourceCode;function r(i){let o=e.getTokenAfter(i);if(!o||o.type!=="String")return!0;let a=e.getNodeByRangeIndex(o.range[0]);return!zh.isTopLevelExpressionStatement(a.parent)}function s(i){t.report({node:i,messageId:"unexpected",fix:r(i)?o=>new _7(o,t.sourceCode).retainSurroundingTokens(i).remove(i):null})}function n(i){for(let o=i;o.type==="Punctuator"&&!zh.isClosingBraceToken(o);o=e.getTokenAfter(o))zh.isSemicolonToken(o)&&s(o)}return{EmptyStatement(i){let o=i.parent;["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].includes(o.type)||s(i)},ClassBody(i){n(e.getFirstToken(i,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(i){n(e.getTokenAfter(i))}}}}});var LD=B((ine,OD)=>{"use strict";var{directivesPattern:B7}=Qu(),{isAnySegmentReachable:O7}=kn(),L7=/falls?\s?through/iu;function BD(t,e){return e.test(t)&&!B7.test(t.trim())}function N7(t,e,r,s){let n=r.sourceCode;if(t.consequent.length===1&&t.consequent[0].type==="BlockStatement"){let o=n.getLastToken(t.consequent[0]),a=n.getCommentsBefore(o).pop();if(a&&BD(a.value,s))return a}let i=n.getCommentsBefore(e).pop();return i&&BD(i.value,s)?i:null}function R7(t,e){return e.loc.start.line>t.loc.end.line+1}OD.exports={meta:{type:"problem",defaultOptions:[{allowEmptyCase:!1,reportUnusedFallthroughComment:!1}],docs:{description:"Disallow fallthrough of `case` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-fallthrough"},schema:[{type:"object",properties:{commentPattern:{type:"string"},allowEmptyCase:{type:"boolean"},reportUnusedFallthroughComment:{type:"boolean"}},additionalProperties:!1}],messages:{unusedFallthroughComment:"Found a comment that would permit fallthrough, but case cannot fall through.",case:"Expected a 'break' statement before 'case'.",default:"Expected a 'break' statement before 'default'."}},create(t){let e=[],r=new Set,s=t.sourceCode,[{allowEmptyCase:n,commentPattern:i,reportUnusedFallthroughComment:o}]=t.options,a=i?new RegExp(i,"u"):L7,l=null;return{onCodePathStart(){e.push(r),r=new Set},onCodePathEnd(){r=e.pop()},onUnreachableCodePathSegmentStart(u){r.add(u)},onUnreachableCodePathSegmentEnd(u){r.delete(u)},onCodePathSegmentStart(u){r.add(u)},onCodePathSegmentEnd(u){r.delete(u)},SwitchCase(u){if(l&&l.node.parent===u.parent){let c=N7(l.node,u,t,a);l.isFallthrough&&!c?t.report({messageId:u.test?"case":"default",node:u}):o&&!l.isSwitchExitReachable&&c&&t.report({messageId:"unusedFallthroughComment",node:c})}l=null},"SwitchCase:exit"(u){let c=s.getTokenAfter(u),p=O7(r),h=p&&(u.consequent.length>0||!n&&R7(u,c))&&u.parent.cases.at(-1)!==u;l={node:u,isSwitchExitReachable:p,isFallthrough:h}}}}}});var RD=B((ane,ND)=>{"use strict";var j7=X();ND.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-floating-decimal",url:"https://eslint.style/rules/no-floating-decimal"}}]},type:"suggestion",docs:{description:"Disallow leading or trailing decimal points in numeric literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-floating-decimal"},schema:[],fixable:"code",messages:{leading:"A leading decimal point can be confused with a dot.",trailing:"A trailing decimal point can be confused with a dot."}},create(t){let e=t.sourceCode;return{Literal(r){typeof r.value=="number"&&(r.raw.startsWith(".")&&t.report({node:r,messageId:"leading",fix(s){let n=e.getTokenBefore(r),i=n&&n.range[1]===r.range[0]&&!j7.canTokensBeAdjacent(n,`0${r.raw}`);return s.insertTextBefore(r,i?" 0":"0")}}),r.raw.indexOf(".")===r.raw.length-1&&t.report({node:r,messageId:"trailing",fix:s=>s.insertTextAfter(r,"0")}))}}}}});var MD=B((one,jD)=>{"use strict";var M7=X();jD.exports={meta:{type:"problem",docs:{description:"Disallow reassigning `function` declarations",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-func-assign"},schema:[],messages:{isAFunction:"'{{name}}' is a function."}},create(t){let e=t.sourceCode;function r(i){M7.getModifyingReferences(i).forEach(o=>{t.report({node:o.identifier,messageId:"isAFunction",data:{name:o.identifier.name}})})}function s(i){i.defs[0].type==="FunctionName"&&r(i.references)}function n(i){e.getDeclaredVariables(i).forEach(s)}return{FunctionDeclaration:n,FunctionExpression:n}}}});var UD=B((lne,qD)=>{"use strict";qD.exports={meta:{type:"suggestion",defaultOptions:[{exceptions:[]}],docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-global-assign"},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{globalShouldNotBeModified:"Read-only global '{{name}}' should not be modified."}},create(t){let e=t.sourceCode,[{exceptions:r}]=t.options;function s(i,o,a){let l=i.identifier;i.init===!1&&i.isWrite()&&(o===0||a[o-1].identifier!==l)&&t.report({node:l,messageId:"globalShouldNotBeModified",data:{name:l.name}})}function n(i){i.writeable===!1&&!r.includes(i.name)&&i.references.forEach(s)}return{Program(i){e.getScope(i).variables.forEach(n)}}}}});var WD=B((une,VD)=>{"use strict";var hs=X(),q7=/^(?:i|lastI)ndexOf$/u,U7=["~","!!","+","- -","-","*"];function $7(t){return t.operator==="!"&&t.argument.type==="UnaryExpression"&&t.argument.operator==="!"}function V7(t){if(t.operator!=="~")return!1;let e=hs.skipChainExpression(t.argument);return e.type==="CallExpression"&&hs.isSpecificMemberAccess(e.callee,null,q7)}function W7(t){return t.operator==="*"&&(t.left.type==="Literal"&&t.left.value===1||t.right.type==="Literal"&&t.right.value===1)}function z7(t,e){return t.type==="BinaryExpression"&&t.operator==="*"&&t.right.type==="Literal"&&t.right.value===1&&t.parent.type==="BinaryExpression"&&t.parent.operator==="/"&&t.parent.left===t&&!hs.isParenthesised(e,t)}function ya(t){return t.type==="Literal"&&typeof t.value=="number"||t.type==="CallExpression"&&(t.callee.name==="Number"||t.callee.name==="parseInt"||t.callee.name==="parseFloat")}function G7(t){let e=t.left,r=t.right;return r.type!=="BinaryExpression"&&!ya(r)?r:e.type!=="BinaryExpression"&&!ya(e)?e:null}function Gh(t){return hs.isStringLiteral(t)||t.type==="CallExpression"&&t.callee.type==="Identifier"&&t.callee.name==="String"}function Vl(t){return hs.isStringLiteral(t)&&(t.value===""||t.type==="TemplateLiteral"&&t.quasis.length===1&&t.quasis[0].value.cooked==="")}function K7(t){return t.operator==="+"&&(Vl(t.left)&&!Gh(t.right)||Vl(t.right)&&!Gh(t.left))}function H7(t){return t.operator==="+="&&Vl(t.right)}function $D(t){return Vl(t.left)?t.right:t.left}VD.exports={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow shorthand type conversions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-implicit-coercion"},fixable:"code",schema:[{type:"object",properties:{boolean:{type:"boolean"},number:{type:"boolean"},string:{type:"boolean"},disallowTemplateShorthand:{type:"boolean"},allow:{type:"array",items:{enum:U7},uniqueItems:!0}},additionalProperties:!1}],defaultOptions:[{allow:[],boolean:!0,disallowTemplateShorthand:!1,number:!0,string:!0}],messages:{implicitCoercion:"Unexpected implicit coercion encountered. Use `{{recommendation}}` instead.",useRecommendation:"Use `{{recommendation}}` instead."}},create(t){let[e]=t.options,r=t.sourceCode;function s(i){let o=r.getText(i);return i.type==="SequenceExpression"?`(${o})`:o}function n(i,o,a,l){function u(c){let p=r.getTokenBefore(i);return p?.range[1]===i.range[0]&&!hs.canTokensBeAdjacent(p,o)?c.replaceText(i,` ${o}`):c.replaceText(i,o)}t.report({node:i,messageId:"implicitCoercion",data:{recommendation:o},fix(c){return l?u(c):null},suggest:[{messageId:"useRecommendation",data:{recommendation:o},fix(c){return l||!a?null:u(c)}}]})}return{UnaryExpression(i){let o;if(o=e.allow.includes("!!"),!o&&e.boolean&&$7(i)){let a=`Boolean(${s(i.argument.argument)})`,u=hs.getVariableByName(r.getScope(i),"Boolean")?.identifiers.length===0;n(i,a,!0,u)}if(o=e.allow.includes("~"),!o&&e.boolean&&V7(i)){let a=i.argument.type==="ChainExpression"?">= 0":"!== -1",l=`${r.getText(i.argument)} ${a}`;n(i,l,!1,!1)}if(o=e.allow.includes("+"),!o&&e.number&&i.operator==="+"&&!ya(i.argument)){let a=`Number(${s(i.argument)})`;n(i,a,!0,!1)}if(o=e.allow.includes("- -"),!o&&e.number&&i.operator==="-"&&i.argument.type==="UnaryExpression"&&i.argument.operator==="-"&&!ya(i.argument.argument)){let a=`Number(${s(i.argument.argument)})`;n(i,a,!0,!1)}},"BinaryExpression:exit"(i){let o;o=e.allow.includes("*");let a=!o&&e.number&&W7(i)&&!z7(i,r)&&G7(i);if(a){let l=`Number(${s(a)})`;n(i,l,!0,!1)}if(o=e.allow.includes("-"),!o&&e.number&&i.operator==="-"&&i.right.type==="Literal"&&i.right.value===0&&!ya(i.left)){let l=`Number(${s(i.left)})`;n(i,l,!0,!1)}if(o=e.allow.includes("+"),!o&&e.string&&K7(i)){let l=`String(${s($D(i))})`;n(i,l,!0,!1)}},AssignmentExpression(i){if(!e.allow.includes("+")&&e.string&&H7(i)){let a=r.getText($D(i)),l=`${a} = String(${a})`;n(i,l,!0,!1)}},TemplateLiteral(i){if(!e.disallowTemplateShorthand||i.parent.type==="TaggedTemplateExpression"||i.expressions.length!==1||i.quasis[0].value.cooked!==""||i.quasis[1].value.cooked!==""||Gh(i.expressions[0]))return;let o=`String(${s(i.expressions[0])})`;n(i,o,!0,!1)}}}}});var GD=B((cne,zD)=>{"use strict";var J7=new Set(["AssignmentExpression","ForInStatement","ForOfStatement"]);zD.exports={meta:{type:"suggestion",defaultOptions:[{lexicalBindings:!1}],docs:{description:"Disallow declarations in the global scope",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implicit-globals"},schema:[{type:"object",properties:{lexicalBindings:{type:"boolean"}},additionalProperties:!1}],messages:{globalNonLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in an IIFE for a local variable, assign as global property for a global variable.",globalLexicalBinding:"Unexpected {{kind}} declaration in the global scope, wrap in a block or in an IIFE.",globalVariableLeak:"Global variable leak, declare the variable if it is intended to be local.",assignmentToReadonlyGlobal:"Unexpected assignment to read-only global variable.",redeclarationOfReadonlyGlobal:"Unexpected redeclaration of read-only global variable."}},create(t){let[{lexicalBindings:e}]=t.options,r=t.sourceCode;function s(n,i,o){t.report({node:n,messageId:i,data:{kind:o}})}return{Program(n){let i=r.getScope(n);i.variables.forEach(o=>{let a=o.writeable===!1;o.writeable!==!0&&(o.eslintExported||(o.defs.forEach(u=>{let c=u.node;(u.type==="FunctionName"||u.type==="Variable"&&u.parent.kind==="var")&&(a?s(c,"redeclarationOfReadonlyGlobal"):s(c,"globalNonLexicalBinding",u.type==="FunctionName"?"function":`'${u.parent.kind}'`)),e&&(u.type==="ClassName"||u.type==="Variable"&&(u.parent.kind==="let"||u.parent.kind==="const"))&&(a?s(c,"redeclarationOfReadonlyGlobal"):s(c,"globalLexicalBinding",u.type==="ClassName"?"class":`'${u.parent.kind}'`))}),a&&o.defs.length===0&&o.references.forEach(u=>{if(u.isWrite()&&!u.isRead()){let c=u.identifier.parent;for(;c&&!J7.has(c.type);)c=c.parent;s(c??u.identifier,"assignmentToReadonlyGlobal")}})))}),i.implicit.variables.forEach(o=>{o.defs.forEach(a=>{s(a.node,"globalVariableLeak")})})}}}}});var HD=B((pne,KD)=>{"use strict";var xa=X(),{getStaticValue:X7}=Ht();KD.exports={meta:{type:"suggestion",docs:{description:"Disallow the use of `eval()`-like methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-implied-eval"},schema:[],messages:{impliedEval:"Implied eval. Consider passing a function instead of a string.",execScript:"Implied eval. Do not use execScript()."}},create(t){let e=Object.freeze(["global","window","globalThis","self"]),r=/^(?:set(?:Interval|Timeout)|execScript)$/u,s=t.sourceCode;function n(a){return a.type==="Literal"&&typeof a.value=="string"||a.type==="TemplateLiteral"?!0:a.type==="BinaryExpression"&&a.operator==="+"?n(a.left)||n(a.right):!1}function i(a){let[l]=a.arguments;if(l){let u=X7(l,s.getScope(a));if(u&&typeof u.value=="string"||n(l)){let f=(a.callee.type==="Identifier"?a.callee.name:xa.getStaticPropertyName(a.callee))==="execScript";t.report({node:a,messageId:f?"execScript":"impliedEval"})}}}function o(a){let{references:l,name:u}=a;l.forEach(c=>{let h=c.identifier.parent;for(;xa.isSpecificMemberAccess(h,null,u);)h=h.parent;if(xa.isSpecificMemberAccess(h,null,r)){let f=h.parent.type==="ChainExpression"?h.parent:h,d=f.parent;d.type==="CallExpression"&&d.callee===f&&i(d)}})}return{CallExpression(a){xa.isSpecificId(a.callee,r)&&s.isGlobalReference(a.callee)&&i(a)},"Program:exit"(a){let l=s.getScope(a);e.map(u=>xa.getVariableByName(l,u)).filter(u=>!!u&&u.defs.length===0).forEach(o)}}}}});var YD=B((fne,QD)=>{"use strict";var{findVariable:Q7}=Ht(),Kh=X(),JD={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function Y7(t){let{parent:e}=t;return e.type==="AssignmentExpression"&&e.left===t||e.type==="ArrayPattern"||e.type==="Property"&&e.value===t&&e.parent.type==="ObjectPattern"||e.type==="RestElement"||e.type==="AssignmentPattern"&&e.left===t}function Z7(t){let e=t.parent.type==="ChainExpression"?t.parent:t,{parent:r}=e;return r.type==="UpdateExpression"&&r.argument===e||r.type==="UnaryExpression"&&r.operator==="delete"&&r.argument===e}function eW(t){let{parent:e}=t;return e.type==="ForInStatement"&&e.left===t||e.type==="ForOfStatement"&&e.left===t}function tW(t,e){let{parent:r}=t;if(r.type!=="CallExpression"||r.arguments[0]!==t)return!1;let s=Kh.skipChainExpression(r.callee);if(!Kh.isSpecificMemberAccess(s,"Object",JD.Object)&&!Kh.isSpecificMemberAccess(s,"Reflect",JD.Reflect))return!1;let n=Q7(e,s.object);return n!==null&&n.scope.type==="global"}function rW(t,e){let{parent:r}=t;return r.type==="MemberExpression"&&r.object===t&&(Y7(r)||Z7(r)||eW(r))||tW(t,e)}function XD(t){let e=t.parent;for(;e&&e.type!=="AssignmentExpression"&&e.type!=="UpdateExpression"&&e.type!=="UnaryExpression"&&e.type!=="CallExpression"&&e.type!=="ForInStatement"&&e.type!=="ForOfStatement";)e=e.parent;return e||t}QD.exports={meta:{type:"problem",docs:{description:"Disallow assigning to imported bindings",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-import-assign"},schema:[],messages:{readonly:"'{{name}}' is read-only.",readonlyMember:"The members of '{{name}}' are read-only."}},create(t){let e=t.sourceCode;return{ImportDeclaration(r){let s=e.getScope(r);for(let n of e.getDeclaredVariables(r)){let i=n.defs.some(a=>a.node.type==="ImportNamespaceSpecifier"),o=null;for(let a of n.references){let l=a.identifier;l!==o&&(o=l,a.isWrite()?t.report({node:XD(l),messageId:"readonly",data:{name:l.name}}):i&&rW(l,s)&&t.report({node:XD(l),messageId:"readonlyMember",data:{name:l.name}}))}}}}}}});var eI=B((hne,ZD)=>{"use strict";var nW=X();ZD.exports={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Disallow inline comments after code",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-inline-comments"},schema:[{type:"object",properties:{ignorePattern:{type:"string"}},additionalProperties:!1}],messages:{unexpectedInlineComment:"Unexpected comment inline with code."}},create(t){let e=t.sourceCode,[{ignorePattern:r}]=t.options,s=r&&new RegExp(r,"u");function n(i){let o=String(e.lines[i.loc.start.line-1]),a=String(e.lines[i.loc.end.line-1]),l=o.slice(0,i.loc.start.column).trim(),u=a.slice(i.loc.end.column).trim(),c=!l,p=!u;if(!(c&&p)&&!(s&&s.test(i.value))){if((c||l==="{")&&(p||u==="}")){let h=e.getNodeByRangeIndex(i.range[0]);if(h&&h.type==="JSXEmptyExpression")return}nW.isDirectiveComment(i)||t.report({node:i,messageId:"unexpectedInlineComment"})}}return{Program(){e.getAllComments().filter(i=>i.type!=="Shebang").forEach(n)}}}}});var rI=B((mne,tI)=>{"use strict";var sW=X(),iW=new Set(["Program","StaticBlock","ExportNamedDeclaration","ExportDefaultDeclaration"]),aW=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function oW(t){let{parent:e}=t;for(;e;){if(e.type==="StaticBlock")return"class static block body";if(sW.isFunction(e))return"function body";({parent:e}=e)}return"program"}tI.exports={meta:{type:"problem",defaultOptions:["functions",{blockScopedFunctions:"allow"}],docs:{description:"Disallow variable or `function` declarations in nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-inner-declarations"},schema:[{enum:["functions","both"]},{type:"object",properties:{blockScopedFunctions:{enum:["allow","disallow"]}},additionalProperties:!1}],messages:{moveDeclToRoot:"Move {{type}} declaration to {{body}} root."}},create(t){let e=t.options[0]==="both",{blockScopedFunctions:r}=t.options[1],s=t.sourceCode,n=t.languageOptions.ecmaVersion;function i(o){let a=o.parent;a.type==="BlockStatement"&&aW.has(a.parent.type)||iW.has(a.type)||t.report({node:o,messageId:"moveDeclToRoot",data:{type:o.type==="FunctionDeclaration"?"function":"variable",body:oW(o)}})}return{FunctionDeclaration(o){let a=s.getScope(o).upper.isStrict;r==="allow"&&n>=2015&&a||i(o)},VariableDeclaration(o){e&&o.kind==="var"&&i(o)}}}}});var iI=B((dne,sI)=>{"use strict";var lW=Ir().RegExpValidator,uW=new lW,Hh="dgimsuvy",nI=void 0;sI.exports={meta:{type:"problem",defaultOptions:[{}],docs:{description:"Disallow invalid regular expression strings in `RegExp` constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-invalid-regexp"},schema:[{type:"object",properties:{allowConstructorFlags:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(t){let e=t.sourceCode,[{allowConstructorFlags:r}]=t.options,s=[];if(r){let u=r.join("").replace(new RegExp(`[${Hh}]`,"gu"),"");u&&(s=[...new Set(u)])}function n(u,c){t.report({node:u,messageId:"regexMessage",data:{message:c}})}function i(u){return u&&u.type==="Literal"&&typeof u.value=="string"}function o(u){return u.arguments.length<2?"":i(u.arguments[1])?u.arguments[1].value:null}function a(u,c){try{return uW.validatePattern(u,nI,nI,c),null}catch(p){return p.message}}function l(u,c,p){let h=[];if(typeof c=="string")for(let f of c)p.includes(f)&&h.push(f);return u&&u.includes("u")&&u.includes("v")?"Regex 'u' and 'v' flags cannot be used together":h.length>0?`Duplicate flags ('${h.join("")}') supplied to RegExp constructor`:c?`Invalid flags supplied to RegExp constructor '${c}'`:null}return{"CallExpression, NewExpression"(u){if(u.callee.type!=="Identifier"||u.callee.name!=="RegExp"||!e.isGlobalReference(u.callee))return;let c=o(u),p=c,h=s.length>0?Hh.split("").concat(s):Hh.split("");c&&h.forEach(g=>{p=p.replace(g,"")});let f=l(c,p,h);if(f){n(u,f);return}if(!i(u.arguments[0]))return;let d=u.arguments[0].value;f=c===null?a(d,{unicode:!0,unicodeSets:!1})&&a(d,{unicode:!1,unicodeSets:!0})&&a(d,{unicode:!1,unicodeSets:!1}):a(d,{unicode:c.includes("u"),unicodeSets:c.includes("v")}),f&&n(u,f)}}}}});var lI=B((gne,oI)=>{"use strict";var cW=X();function aI(t,e){return t.origin==="function"&&e.type==="ArrowFunctionExpression"}oI.exports={meta:{type:"suggestion",defaultOptions:[{capIsConstructor:!0}],docs:{description:"Disallow use of `this` in contexts where the value of `this` is `undefined`",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-invalid-this"},schema:[{type:"object",properties:{capIsConstructor:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedThis:"Unexpected 'this'."}},create(t){let[{capIsConstructor:e}]=t.options,r=[],s=t.sourceCode;return r.getCurrent=function(){let n=this.at(-1);return n.init||(n.init=!0,n.valid=!cW.isDefaultThisBinding(n.node,s,{capIsConstructor:e})),n},{onCodePathStart(n,i){if(!aI(n,i)){if(n.origin==="program"){let o=s.getScope(i),a=t.languageOptions.parserOptions.ecmaFeatures||{};r.push({init:!0,node:i,valid:!(i.sourceType==="module"||a.globalReturn&&o.childScopes[0].isStrict)});return}r.push({init:!s.getScope(i).isStrict,node:i,valid:!0})}},onCodePathEnd(n,i){aI(n,i)||r.pop()},"AccessorProperty > *.value"(n){r.push({init:!0,node:n,valid:!0})},"AccessorProperty > *.value:exit"(){r.pop()},ThisExpression(n){if(n.parent.type==="AccessorProperty"&&n.parent.value===n)return;let i=r.getCurrent();i&&!i.valid&&t.report({node:n,messageId:"unexpectedThis"})}}}}});var cI=B((yne,uI)=>{"use strict";var pW=X(),Ea=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000\u2028\u2029]/u,fW=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/gu,hW=/[\u2028\u2029]/gu,mW=pW.createGlobalLinebreakMatcher();uI.exports={meta:{type:"problem",defaultOptions:[{skipComments:!1,skipJSXText:!1,skipRegExps:!1,skipStrings:!0,skipTemplates:!1}],docs:{description:"Disallow irregular whitespace",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-irregular-whitespace"},schema:[{type:"object",properties:{skipComments:{type:"boolean"},skipStrings:{type:"boolean"},skipTemplates:{type:"boolean"},skipRegExps:{type:"boolean"},skipJSXText:{type:"boolean"}},additionalProperties:!1}],messages:{noIrregularWhitespace:"Irregular whitespace not allowed."}},create(t){let[{skipComments:e,skipStrings:r,skipRegExps:s,skipTemplates:n,skipJSXText:i}]=t.options,o=t.sourceCode,a=o.getAllComments(),l=[];function u(S){let A=S.loc.start,E=S.loc.end;l=l.filter(({loc:{start:k}})=>k.line<A.line||k.line===A.line&&k.column<A.column||k.line===E.line&&k.column>=E.column||k.line>E.line)}function c(S){let A=r&&typeof S.value=="string",E=s&&!!S.regex;(A||E)&&Ea.test(S.raw)&&u(S)}function p(S){typeof S.value.raw=="string"&&Ea.test(S.value.raw)&&u(S)}function h(S){Ea.test(S.value)&&u(S)}function f(S){Ea.test(S.raw)&&u(S)}function d(S){o.lines.forEach((E,k)=>{let T=k+1,w;for(;(w=fW.exec(E))!==null;)l.push({node:S,messageId:"noIrregularWhitespace",loc:{start:{line:T,column:w.index},end:{line:T,column:w.index+w[0].length}}})})}function g(S){let A=o.getText(),E=o.lines,k=A.match(mW),T=-1,w;for(;(w=hW.exec(A))!==null;){let R=k.indexOf(w[0],T+1)||0;l.push({node:S,messageId:"noIrregularWhitespace",loc:{start:{line:R+1,column:E[R].length},end:{line:R+2,column:0}}}),T=R}}function y(){}let v={};return Ea.test(o.getText())?(v.Program=function(S){d(S),g(S)},v.Literal=c,v.TemplateElement=n?p:y,v.JSXText=i?f:y,v["Program:exit"]=function(){e&&a.forEach(h),l.forEach(S=>t.report(S))}):v.Program=y,v}}});var fI=B((xne,pI)=>{"use strict";var{getStaticPropertyName:dW}=X();pI.exports={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__iterator__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-iterator"},schema:[],messages:{noIterator:"Reserved name '__iterator__'."}},create(t){return{MemberExpression(e){dW(e)==="__iterator__"&&t.report({node:e,messageId:"noIterator"})}}}}});var mI=B((Ene,hI)=>{"use strict";var gW=X();hI.exports={meta:{type:"suggestion",docs:{description:"Disallow labels that share a name with a variable",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-label-var"},schema:[],messages:{identifierClashWithLabel:"Found identifier with same name as label."}},create(t){let e=t.sourceCode;function r(s,n){return gW.getVariableByName(s,n)!==null}return{LabeledStatement(s){let n=e.getScope(s);r(n,s.label.name)&&t.report({node:s,messageId:"identifierClashWithLabel"})}}}}});var gI=B((bne,dI)=>{"use strict";var yW=X();dI.exports={meta:{type:"suggestion",defaultOptions:[{allowLoop:!1,allowSwitch:!1}],docs:{description:"Disallow labeled statements",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-labels"},schema:[{type:"object",properties:{allowLoop:{type:"boolean"},allowSwitch:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedLabel:"Unexpected labeled statement.",unexpectedLabelInBreak:"Unexpected label in break statement.",unexpectedLabelInContinue:"Unexpected label in continue statement."}},create(t){let[{allowLoop:e,allowSwitch:r}]=t.options,s=null;function n(a){return yW.isLoop(a)?"loop":a.type==="SwitchStatement"?"switch":"other"}function i(a){switch(a){case"loop":return e;case"switch":return r;default:return!1}}function o(a){let l=s;for(;l;){if(l.label===a)return l.kind;l=l.upper}return"other"}return{LabeledStatement(a){s={label:a.label.name,kind:n(a.body),upper:s}},"LabeledStatement:exit"(a){i(s.kind)||t.report({node:a,messageId:"unexpectedLabel"}),s=s.upper},BreakStatement(a){a.label&&!i(o(a.label.name))&&t.report({node:a,messageId:"unexpectedLabelInBreak"})},ContinueStatement(a){a.label&&!i(o(a.label.name))&&t.report({node:a,messageId:"unexpectedLabelInContinue"})}}}}});var xI=B((vne,yI)=>{"use strict";yI.exports={meta:{type:"suggestion",docs:{description:"Disallow unnecessary nested blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-lone-blocks"},schema:[],messages:{redundantBlock:"Block is redundant.",redundantNestedBlock:"Nested block is redundant."}},create(t){let e=[],r,s=t.sourceCode;function n(a){let l=a.parent.type==="BlockStatement"||a.parent.type==="StaticBlock"?"redundantNestedBlock":"redundantBlock";t.report({node:a,messageId:l})}function i(a){return a.parent.type==="BlockStatement"||a.parent.type==="StaticBlock"||a.parent.type==="Program"||a.parent.type==="SwitchCase"&&!(a.parent.consequent[0]===a&&a.parent.consequent.length===1)}function o(a){if(e.length===0)return;let l=a.parent;e.at(-1)===l&&e.pop()}return r={BlockStatement(a){i(a)&&n(a)}},t.languageOptions.ecmaVersion>=2015&&(r={BlockStatement(a){i(a)&&e.push(a)},"BlockStatement:exit"(a){e.length>0&&e.at(-1)===a?(e.pop(),n(a)):(a.parent.type==="BlockStatement"||a.parent.type==="StaticBlock")&&a.parent.body.length===1&&n(a)}},r.VariableDeclaration=function(a){a.kind!=="var"&&o(a)},r.FunctionDeclaration=function(a){s.getScope(a).isStrict&&o(a)},r.ClassDeclaration=o),r}}});var bI=B((Sne,EI)=>{"use strict";var xW=X();EI.exports={meta:{type:"suggestion",docs:{description:"Disallow `if` statements as the only statement in `else` blocks",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-lonely-if"},schema:[],fixable:"code",messages:{unexpectedLonelyIf:"Unexpected if as the only statement in an else block."}},create(t){let e=t.sourceCode;return{IfStatement(r){let s=r.parent,n=s.parent;s&&s.type==="BlockStatement"&&s.body.length===1&&!xW.areBracesNecessary(s,e)&&n&&n.type==="IfStatement"&&s===n.alternate&&t.report({node:r,messageId:"unexpectedLonelyIf",fix(i){let o=e.getFirstToken(s),a=e.getLastToken(s),l=e.getTokenBefore(o),u=e.getTokenAfter(a),c=e.getLastToken(r.consequent),p=e.getText();return p.slice(o.range[1],r.range[0]).trim()||p.slice(r.range[1],a.range[0]).trim()||r.consequent.type!=="BlockStatement"&&c.value!==";"&&u&&(r.consequent.loc.end.line===u.loc.start.line||/^[([/+`-]/u.test(u.value)||c.value==="++"||c.value==="--")?null:i.replaceTextRange([o.range[0],a.range[1]],(l.range[1]===o.range[0]?" ":"")+e.getText(r))}})}}}}});var SI=B((Cne,vI)=>{"use strict";var EW=new Set(["const","using","await using"]);function bW(t){return(t.type==="FunctionExpression"||t.type==="ArrowFunctionExpression")&&t.parent&&t.parent.type==="CallExpression"&&t.parent.callee===t}vI.exports={meta:{type:"suggestion",docs:{description:"Disallow function declarations that contain unsafe references inside loop statements",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-loop-func"},schema:[],messages:{unsafeRefs:"Function declared in a loop contains unsafe references to variable(s) {{ varNames }}."}},create(t){let e=new Set,r=t.sourceCode;function s(a){for(let l=a;l.parent;l=l.parent){let u=l.parent;switch(u.type){case"WhileStatement":case"DoWhileStatement":return u;case"ForStatement":if(u.init!==l)return u;break;case"ForInStatement":case"ForOfStatement":if(u.right!==l)return u;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":if(e.has(u))break;return null;default:break}}return null}function n(a,l){let u=l?l.range[1]:0,c=a,p=a;for(;p&&p.range[0]>=u;)c=p,p=s(p);return c}function i(a,l){let u=l.resolved,c=u&&u.defs[0],p=c&&c.parent,h=p&&p.type==="VariableDeclaration"?p.kind:"";if(EW.has(h)||h==="let"&&p.range[0]>a.range[0]&&p.range[1]<a.range[1])return!0;let f=n(a,h==="let"?p:null).range[0];function d(g){let y=g.identifier;return!g.isWrite()||u.scope.variableScope===g.from.variableScope&&y.range[0]<f}return!!u&&u.references.every(d)}function o(a){let l=s(a);if(!l)return;let u=r.getScope(a).through;if(!(a.async||a.generator)&&bW(a)&&!(a.type==="FunctionExpression"&&a.id?u.some(f=>f.identifier.name===a.id.name):!1)){e.add(a);return}let c=[...new Set(u.filter(p=>p.resolved&&!i(l,p)).map(p=>p.identifier.name))];c.length>0&&t.report({node:a,messageId:"unsafeRefs",data:{varNames:`'${c.join("', '")}'`}})}return{ArrowFunctionExpression:o,FunctionExpression:o,FunctionDeclaration:o}}}});var kI=B((wne,AI)=>{"use strict";var ui=class{coefficient;magnitude;constructor(e,r){this.coefficient=e,this.magnitude=r}toString(){return`${this.coefficient[0]}${this.coefficient.length>1?`.${this.coefficient.slice(1)}`:""}e${this.magnitude}`}};function vW(t){return typeof t.value=="number"}function wI(t){return t.raw.replace(/_/gu,"")}function SW(t){return["0x","0X","0b","0B","0o","0O"].every(r=>!t.raw.startsWith(r))&&!/^0[0-7]+$/u.test(t.raw)}function CW(t){let e=wI(t).toUpperCase(),r;return e.startsWith("0B")?r=2:e.startsWith("0X")?r=16:r=8,!e.endsWith(t.value.toString(r).toUpperCase())}function Jh(t){for(let e=0;e<t.length;e++)if(t[e]!=="0")return t.slice(e);return t}function wW(t){for(let e=t.length-1;e>=0;e--)if(t[e]!=="0")return t.slice(0,e+1);return t}function AW(t){let e=Jh(t),r=wW(e);return new ui(r,e.length-1)}function kW(t){let e=Jh(t),r=e.indexOf(".");switch(r){case 0:{let s=Jh(e.slice(1));return new ui(s,s.length-e.length)}case-1:return new ui(e,e.length-1);default:return new ui(e.replace(".",""),r-1)}}function CI(t,e){let r=t.split("e"),s=r[0],n=e||t.includes(".")?kW(s):AW(s);return r.length>1&&(n.magnitude+=parseInt(r[1],10)),n}function TW(t){let e=wI(t).toLowerCase().replace(/\.(?=e|$)/u,""),r=CI(e,!1);if(t.value===0)return!/^0+$/u.test(r.coefficient);let s=r.coefficient.length;if(s>100)return!0;let n=t.value.toPrecision(s),i=CI(n,!0);return r.magnitude!==i.magnitude||r.coefficient!==i.coefficient}function DW(t){return SW(t)?TW(t):CW(t)}AI.exports={meta:{type:"problem",docs:{description:"Disallow literal numbers that lose precision",dialects:["JavaScript","TypeScript"],recommended:!0,url:"https://eslint.org/docs/latest/rules/no-loss-of-precision"},schema:[],messages:{noLossOfPrecision:"This number literal will lose precision at runtime."}},create(t){return{Literal(e){vW(e)&&DW(e)&&t.report({messageId:"noLossOfPrecision",node:e})}}}}});var DI=B((Ane,TI)=>{"use strict";var Xh=X(),IW=2**32-1;function PW(t){return typeof t=="string"?BigInt(t.slice(0,-1)):t}function FW(t){return t.parent.type==="TSEnumMember"}function _W(t){let e=t.parent;for(;e.parent.type==="TSUnionType";)e=e.parent;return e.parent.type==="TSTypeAliasDeclaration"}function BW(t){return!!(t.parent?.type==="PropertyDefinition"&&t.parent.readonly)}function OW(t){let e=t.parent;for(;e.parent.type==="TSUnionType"||e.parent.type==="TSIntersectionType";)e=e.parent;return e.parent.type==="TSIndexedAccessType"}TI.exports={meta:{type:"suggestion",docs:{description:"Disallow magic numbers",dialects:["JavaScript","TypeScript"],recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-magic-numbers"},schema:[{type:"object",properties:{detectObjects:{type:"boolean"},enforceConst:{type:"boolean"},ignore:{type:"array",items:{anyOf:[{type:"number"},{type:"string",pattern:"^[+-]?(?:0|[1-9][0-9]*)n$"}]},uniqueItems:!0},ignoreArrayIndexes:{type:"boolean"},ignoreDefaultValues:{type:"boolean"},ignoreClassFieldInitialValues:{type:"boolean"},ignoreEnums:{type:"boolean"},ignoreNumericLiteralTypes:{type:"boolean"},ignoreReadonlyClassProperties:{type:"boolean"},ignoreTypeIndexes:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{detectObjects:!1,enforceConst:!1,ignore:[],ignoreArrayIndexes:!1,ignoreDefaultValues:!1,ignoreClassFieldInitialValues:!1,ignoreEnums:!1,ignoreNumericLiteralTypes:!1,ignoreReadonlyClassProperties:!1,ignoreTypeIndexes:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(t){let{detectObjects:e,enforceConst:r,ignore:s,ignoreArrayIndexes:n,ignoreDefaultValues:i,ignoreClassFieldInitialValues:o,ignoreEnums:a,ignoreNumericLiteralTypes:l,ignoreReadonlyClassProperties:u,ignoreTypeIndexes:c}=t.options[0],p=new Set(s.map(PW)),h=e?[]:["ObjectExpression","Property","AssignmentExpression"];function f(A){return p.has(A)}function d(A){let E=A.parent;return E.type==="AssignmentPattern"&&E.right===A}function g(A){let E=A.parent;return E.type==="PropertyDefinition"&&E.value===A}function y(A){let E=A.parent;return E.type==="CallExpression"&&A===E.arguments[1]&&(Xh.isSpecificId(E.callee,"parseInt")||Xh.isSpecificMemberAccess(E.callee,"Number","parseInt"))}function v(A){return A.parent.type.indexOf("JSX")===0}function S(A,E){let k=A.parent;return k.type==="MemberExpression"&&k.property===A&&(Number.isInteger(E)||typeof E=="bigint")&&E>=0&&E<IW}return{Literal(A){if(!Xh.isNumericLiteral(A))return;let E,k,T;A.parent.type==="UnaryExpression"&&["-","+"].includes(A.parent.operator)?(E=A.parent,k=A.parent.operator==="-"?-A.value:A.value,T=`${A.parent.operator}${A.raw}`):(E=A,k=A.value,T=A.raw);let w=E.parent;f(k)||i&&d(E)||o&&g(E)||a&&FW(E)||l&&_W(E)||c&&OW(E)||u&&BW(E)||y(E)||v(E)||n&&S(E,k)||(w.type==="VariableDeclarator"?r&&w.parent.kind!=="const"&&t.report({node:E,messageId:"useConst"}):(!h.includes(w.type)||w.type==="AssignmentExpression"&&w.left.type==="Identifier")&&t.report({node:E,messageId:"noMagic",data:{raw:T}}))}}}}});var PI=B((kne,II)=>{"use strict";II.exports=function(e){return new RegExp("^\\p{M}$","u").test(String.fromCodePoint(e))}});var _I=B((Tne,FI)=>{"use strict";FI.exports=function(e){return e>=127995&&e<=127999}});var OI=B((Dne,BI)=>{"use strict";BI.exports=function(e){return e>=127462&&e<=127487}});var NI=B((Ine,LI)=>{"use strict";LI.exports=function(e,r){return e>=55296&&e<56320&&r>=56320&&r<57344}});var jI=B((Pne,RI)=>{"use strict";var LW=PI(),NW=_I(),RW=OI(),jW=NI();RI.exports={isCombiningCharacter:LW,isEmojiModifier:NW,isRegionalIndicatorSymbol:RW,isSurrogatePair:jW}});var Wl=B((Fne,qI)=>{"use strict";var{RegExpValidator:MW}=Ir(),MI=2025;function qW(t,e,r="u"){if(r==="u"&&t<=5||r==="v"&&t<=2023)return!1;let s=new MW({ecmaVersion:Math.min(t,MI)});try{s.validatePattern(e,void 0,void 0,r==="u"?{unicode:!0}:{unicodeSets:!0})}catch{return!1}return!0}qI.exports={isValidWithUnicodeFlag:qW,REGEXPP_LATEST_ECMA_VERSION:MI}});var zI=B((_ne,WI)=>{"use strict";var ms=class{constructor(e,r){this.start=e,this.source=r}get end(){return this.start+this.length}get length(){return this.source.length}},zl=class{constructor(e){this.source=e,this.pos=0}advance(e){this.pos+=e}read(e=0,r=1){let s=e+this.pos;return this.source.slice(s,s+r)}},UW={__proto__:null,b:"\b",f:"\f",n:`
81
+ `,r:"\r",t:" ",v:"\v"};function $I(t,e){let r=t.read(0,e),s=parseInt(r,16);return t.advance(e),String.fromCharCode(s)}function $W(t){let e=/\{(?<hexDigits>[\dA-F]+)\}/iuy;e.lastIndex=t.pos;let r=e.exec(t.source);if(r){let s=parseInt(r.groups.hexDigits,16);return t.pos=e.lastIndex,String.fromCodePoint(s)}return $I(t,4)}function UI(t,e){let[r]=t.read(-1,e).match(/^[0-7]+/u);t.advance(r.length-1);let s=parseInt(r,8);return String.fromCharCode(s)}function VW(t){let e=t.read(1);t.advance(2);let r=UW[e];if(r)return r;switch(e){case"x":return $I(t,2);case"u":return $W(t);case"\r":t.read()===`
82
+ `&&t.advance(1);case`
83
+ `:case"\u2028":case"\u2029":return"";case"0":case"1":case"2":case"3":return UI(t,3);case"4":case"5":case"6":case"7":return UI(t,2);default:return e}}function*VI(t){let e=t.pos,r=VW(t),s=t.pos,n=t.source.slice(e,s);switch(r.length){case 0:break;case 1:yield new ms(e,n);break;default:yield new ms(e,n),yield new ms(e,n);break}}function WW(t){let e=new zl(t),r=e.read();e.advance(1);let s=[];for(;;){let n=e.read();if(n===r)break;n==="\\"?s.push(...VI(e)):(s.push(new ms(e.pos,n)),e.advance(1))}return s}function zW(t){let e=new zl(t);e.advance(1);let r=[];for(;;){let s=e.read();if(s==="`"||s==="$"&&e.read(1)==="{")break;if(s==="\\")r.push(...VI(e));else{let n;s==="\r"&&e.read(1)===`
84
+ `?n=`\r
85
+ `:n=s,r.push(new ms(e.pos,n)),e.advance(n.length)}}return r}WI.exports={parseStringLiteral:WW,parseTemplateToken:zW}});var nP=B((Bne,rP)=>{"use strict";var{CALL:GW,CONSTRUCT:KW,ReferenceTracker:HW,getStaticValue:JW,getStringIfConstant:XW}=Ht(),{RegExpParser:QW,visitRegExpAST:YW}=Ir(),{isCombiningCharacter:GI,isEmojiModifier:KI,isRegionalIndicatorSymbol:HI,isSurrogatePair:JI}=jI(),Qh=X(),{isValidWithUnicodeFlag:XI}=Wl(),{parseStringLiteral:QI,parseTemplateToken:YI}=zI();function*ZW(t){let e=[];for(let r of t)switch(r.type){case"Character":e.push(r);break;case"CharacterClassRange":e.push(r.min),yield e,e=[r.max];break;case"CharacterSet":case"CharacterClass":case"ClassStringDisjunction":case"ExpressionCharacterClass":e.length>0&&(yield e,e=[]);break}e.length>0&&(yield e)}function Gl(t){return/^\\u\{[\da-f]+\}$/iu.test(t.raw)}var eP={*surrogatePairWithoutUFlag(t){for(let[e,r]of t.entries()){let s=t[e-1];s&&r&&JI(s.value,r.value)&&!Gl(s)&&!Gl(r)&&(yield[s,r])}},*surrogatePair(t){for(let[e,r]of t.entries()){let s=t[e-1];s&&r&&JI(s.value,r.value)&&(Gl(s)||Gl(r))&&(yield[s,r])}},*combiningClass(t,e){for(let[r,s]of t.entries()){let n=e[r-1];n&&s&&GI(s.value)&&!GI(n.value)&&(yield[n,s])}},*emojiModifier(t){for(let[e,r]of t.entries()){let s=t[e-1];s&&r&&KI(r.value)&&!KI(s.value)&&(yield[s,r])}},*regionalIndicatorSymbol(t){for(let[e,r]of t.entries()){let s=t[e-1];s&&r&&HI(r.value)&&HI(s.value)&&(yield[s,r])}},*zwj(t){let e=null;for(let[r,s]of t.entries()){let n=t[r-1],i=t[r+1];n&&s&&i&&s.value===8205&&n.value!==8205&&i.value!==8205&&(e?e.at(-1)===n?e.push(s,i):(yield e,e=t.slice(r-1,r+2)):e=t.slice(r-1,r+2))}e&&(yield e)}},ez=Object.keys(eP);function tz(t,e){if(!t)return null;if(t.type==="Literal"&&t.regex)return{regex:t.regex};let r=JW(t,e);return r?.value instanceof RegExp?null:r}function tP(t,e){return e.startsWith("\\")?/(?<=^\\+).$/su.exec(e)?.[0]!==String.fromCodePoint(t.value):!1}function ZI(t,e,r){let s=t.start,n=t.end-1,i=r[s].start,o=r[n].end,a=e.slice(i,o);return tP(t,a)}rP.exports={meta:{type:"problem",defaultOptions:[{allowEscape:!1}],docs:{description:"Disallow characters which are made with multiple code points in character class syntax",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-misleading-character-class"},hasSuggestions:!0,schema:[{type:"object",properties:{allowEscape:{type:"boolean"}},additionalProperties:!1}],messages:{surrogatePairWithoutUFlag:"Unexpected surrogate pair in character class. Use 'u' flag.",surrogatePair:"Unexpected surrogate pair in character class.",combiningClass:"Unexpected combined character in character class.",emojiModifier:"Unexpected modified Emoji in character class.",regionalIndicatorSymbol:"Unexpected national flag in character class.",zwj:"Unexpected joined character sequence in character class.",suggestUnicodeFlag:"Add unicode 'u' flag to regex."}},create(t){let[{allowEscape:e}]=t.options,r=t.sourceCode,s=new QW,n=new Set;function i(o,a,l,u){let c;try{c=s.parsePattern(a,0,a.length,{unicode:l.includes("u"),unicodeSets:l.includes("v")})}catch{return}let p=null;function h(g){if(o.type==="Literal"&&o.regex)return tP(g,g.raw);if(o.type==="Literal"&&typeof o.value=="string"){let y=o.raw;return p??=QI(y),ZI(g,y,p)}if(Qh.isStaticTemplateLiteral(o)){let y=r.getText(o);return p??=YI(y),ZI(g,y,p)}return!1}let f=new Map;YW(c,{onCharacterClassEnter(g){for(let y of ZW(g.elements)){let v;e?v=y.map(S=>h(S)?null:S):v=y;for(let S of ez){let A=eP[S](v,y);f.has(S)?f.get(S).push(...A):f.set(S,[...A])}}}});function d(g){return!Qh.isStaticTemplateLiteral(o)&&o.type!=="Literal"?g.length?[o.loc]:[]:g.map(y=>{let v=y[0].start,S=y.at(-1).end-1,A,E;if(o.type==="TemplateLiteral"){let k=r.getText(o),T=o.range[0];p??=YI(k),A=T+p[v].start,E=T+p[S].end}else if(typeof o.value=="string"){let k=o.raw,T=o.range[0];p??=QI(k),A=T+p[v].start,E=T+p[S].end}else{let k=o.range[0]+1;A=k+v,E=k+S+1}return{start:r.getLocFromIndex(A),end:r.getLocFromIndex(E)}})}for(let[g,y]of f){let v;g==="surrogatePairWithoutUFlag"&&(v=[{messageId:"suggestUnicodeFlag",fix:u}]);let S=d(y);for(let A of S)t.report({node:o,loc:A,messageId:g,suggest:v})}}return{"Literal[regex]"(o){n.has(o)||i(o,o.regex.pattern,o.regex.flags,a=>XI(t.languageOptions.ecmaVersion,o.regex.pattern)?a.insertTextAfter(o,"u"):null)},Program(o){let a=r.getScope(o),l=new HW(a);for(let{node:u}of l.iterateGlobalReferences({RegExp:{[GW]:!0,[KW]:!0}})){let c,p,[h,f]=u.arguments,d=tz(h,a);if(d){if(f)d.regex?(c=d.regex.pattern,n.add(h)):c=String(d.value),p=XW(f,a);else{if(d.regex)continue;c=String(d.value),p=""}typeof p=="string"&&i(h,c,p,g=>{if(!XI(t.languageOptions.ecmaVersion,c))return null;if(u.arguments.length===1){let y=r.getLastToken(u,{skip:1});return g.insertTextAfter(y,Qh.isCommaToken(y)?' "u",':', "u"')}if(f.type==="Literal"&&typeof f.value=="string"||f.type==="TemplateLiteral"){let y=[f.range[0],f.range[1]-1];return g.insertTextAfterRange(y,"u")}return null})}}}}}}});var cP=B((One,uP)=>{"use strict";var Kl=X(),sP=["+","-","*","/","%","**"],iP=["&","|","^","~","<<",">>",">>>"],aP=["==","!=","===","!==",">",">=","<","<="],oP=["&&","||"],lP=["in","instanceof"],rz=["?:"],nz=["??"],sz=[].concat(sP,iP,aP,oP,lP,rz,nz),iz=[sP,iP,aP,oP,lP],az=/^(?:Binary|Logical|Conditional)Expression$/u;function oz(t={}){let r=t.groups&&t.groups.length>0?t.groups:iz,s=t.allowSamePrecedence!==!1;return{groups:r,allowSamePrecedence:s}}function lz(t,e,r){return t.some(s=>s.includes(e)&&s.includes(r))}function Yh(t){return t.type==="ConditionalExpression"?t.test:t.left}uP.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-mixed-operators",url:"https://eslint.style/rules/no-mixed-operators"}}]},type:"suggestion",docs:{description:"Disallow mixed binary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-operators"},schema:[{type:"object",properties:{groups:{type:"array",items:{type:"array",items:{enum:sz},minItems:2,uniqueItems:!0},uniqueItems:!0},allowSamePrecedence:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedMixedOperator:"Unexpected mix of '{{leftOperator}}' and '{{rightOperator}}'. Use parentheses to clarify the intended order of operations."}},create(t){let e=t.sourceCode,r=oz(t.options[0]);function s(l){let u=l,c=l.parent;return!lz(r.groups,u.operator,c.type==="ConditionalExpression"?"?:":c.operator)||r.allowSamePrecedence&&Kl.getPrecedence(u)===Kl.getPrecedence(c)}function n(l){return l.operator!==l.parent.operator&&!Kl.isParenthesised(e,l)}function i(l){return e.getTokenAfter(Yh(l),Kl.isNotClosingParenToken)}function o(l){let u=l.parent,c=Yh(u)===l?l:u,p=Yh(u)!==l?l:u,h={leftOperator:c.operator||"?:",rightOperator:p.operator||"?:"};t.report({node:c,loc:i(c).loc,messageId:"unexpectedMixedOperator",data:h}),t.report({node:p,loc:i(p).loc,messageId:"unexpectedMixedOperator",data:h})}function a(l){az.test(l.parent.type)&&n(l)&&!s(l)&&o(l)}return{BinaryExpression:a,LogicalExpression:a}}}});var fP=B((Lne,pP)=>{"use strict";pP.exports={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:"11.0.0",replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-mixed-requires",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-mixed-requires.md"}}]},type:"suggestion",docs:{description:"Disallow `require` calls to be mixed with regular variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-requires"},schema:[{oneOf:[{type:"boolean"},{type:"object",properties:{grouping:{type:"boolean"},allowCall:{type:"boolean"}},additionalProperties:!1}]}],messages:{noMixRequire:"Do not mix 'require' and other declarations.",noMixCoreModuleFileComputed:"Do not mix core, module, file and computed requires."}},create(t){let e=t.options[0],r=!1,s=!1;typeof e=="object"?(r=e.grouping,s=e.allowCall):r=!!e;function n(){return["assert","buffer","child_process","cluster","crypto","dgram","dns","domain","events","fs","http","https","net","os","path","punycode","querystring","readline","repl","smalloc","stream","string_decoder","tls","tty","url","util","v8","vm","zlib"]}let i=n(),o="require",a="uninitialized",l="other",u="core",c="file",p="module",h="computed";function f(v){return v?v.type==="CallExpression"&&v.callee.type==="Identifier"&&v.callee.name==="require"?o:s&&v.type==="CallExpression"&&v.callee.type==="CallExpression"?f(v.callee):v.type==="MemberExpression"?f(v.object):l:a}function d(v){if(v.type==="MemberExpression")return d(v.object);if(v.arguments.length===0)return h;let S=v.arguments[0];return S.type!=="Literal"||typeof S.value!="string"?h:i.includes(S.value)?u:/^\.{0,2}\//u.test(S.value)?c:p}function g(v){let S={};return v.forEach(A=>{let E=f(A.init);S[E]=!0}),!!(S[o]&&(S[a]||S[l]))}function y(v){let S={};return v.forEach(A=>{f(A.init)===o&&(S[d(A.init)]=!0)}),Object.keys(S).length<=1}return{VariableDeclaration(v){g(v.declarations)?t.report({node:v,messageId:"noMixRequire"}):r&&!y(v.declarations)&&t.report({node:v,messageId:"noMixCoreModuleFileComputed"})}}}}});var mP=B((Nne,hP)=>{"use strict";hP.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-mixed-spaces-and-tabs",url:"https://eslint.style/rules/no-mixed-spaces-and-tabs"}}]},type:"layout",docs:{description:"Disallow mixed spaces and tabs for indentation",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-mixed-spaces-and-tabs"},schema:[{enum:["smart-tabs",!0,!1]}],messages:{mixedSpacesAndTabs:"Mixed spaces and tabs."}},create(t){let e=t.sourceCode,r;switch(t.options[0]){case!0:case"smart-tabs":r=!0;break;default:r=!1}return{"Program:exit"(s){let n=e.lines,i=e.getAllComments(),o=new Set;i.forEach(l=>{for(let u=l.loc.start.line+1;u<=l.loc.end.line;u++)o.add(u)});let a=/^(?=( +|\t+))\1(?:\t| )/u;r&&(a=/^(?=(\t*))\1(?=( +))\2\t/u),n.forEach((l,u)=>{let c=a.exec(l);if(c){let p=u+1,h={start:{line:p,column:c[0].length-2},end:{line:p,column:c[0].length}};if(!o.has(p)){let f=e.getNodeByRangeIndex(e.getIndexFromLoc(h.start));f&&["Literal","TemplateElement"].includes(f.type)||t.report({node:s,loc:h,messageId:"mixedSpacesAndTabs"})}}})}}}}});var gP=B((Rne,dP)=>{"use strict";dP.exports={meta:{type:"suggestion",defaultOptions:[{ignoreNonDeclaration:!1}],docs:{description:"Disallow use of chained assignment expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-assign"},schema:[{type:"object",properties:{ignoreNonDeclaration:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedChain:"Unexpected chained assignment."}},create(t){let[{ignoreNonDeclaration:e}]=t.options,r=["VariableDeclarator > AssignmentExpression.init","PropertyDefinition > AssignmentExpression.value"];return e||r.push("AssignmentExpression > AssignmentExpression.right"),{[r](s){t.report({node:s,messageId:"unexpectedChain"})}}}}});var xP=B((jne,yP)=>{"use strict";var uz=X();yP.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-multi-spaces",url:"https://eslint.style/rules/no-multi-spaces"}}]},type:"layout",docs:{description:"Disallow multiple spaces",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multi-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{exceptions:{type:"object",patternProperties:{"^([A-Z][a-z]*)+$":{type:"boolean"}},additionalProperties:!1},ignoreEOLComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{multipleSpaces:"Multiple spaces found before '{{displayValue}}'."}},create(t){let e=t.sourceCode,r=t.options[0]||{},s=r.ignoreEOLComments,n=Object.assign({Property:!0},r.exceptions),i=Object.keys(n).some(a=>n[a]);function o(a){let l=a.value.split(`
86
+ `),u=l[0],c=`${u.slice(0,12)}...`;return l.length===1&&u.length<=12?u:c}return{Program(){e.tokensAndComments.forEach((a,l,u)=>{if(l===u.length-1)return;let c=u[l+1];if(!e.text.slice(a.range[1],c.range[0]).includes(" ")||a.loc.end.line<c.loc.start.line||s&&uz.isCommentToken(c)&&(l===u.length-2||c.loc.end.line<u[l+2].loc.start.line))return;if(i){let h=e.getNodeByRangeIndex(c.range[0]-1);if(h&&n[h.type])return}let p;c.type==="Block"?p=`/*${o(c)}*/`:c.type==="Line"?p=`//${o(c)}`:p=c.value,t.report({node:c,loc:{start:a.loc.end,end:c.loc.start},messageId:"multipleSpaces",data:{displayValue:p},fix:h=>h.replaceTextRange([a.range[1],c.range[0]]," ")})})}}}}});var bP=B((Mne,EP)=>{"use strict";var cz=X();EP.exports={meta:{type:"suggestion",docs:{description:"Disallow multiline strings",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-multi-str"},schema:[],messages:{multilineString:"Multiline support is limited to browsers supporting ES5 only."}},create(t){function e(r){return r.type.indexOf("JSX")===0}return{Literal(r){cz.LINEBREAK_MATCHER.test(r.raw)&&!e(r.parent)&&t.report({node:r,messageId:"multilineString"})}}}}});var SP=B((qne,vP)=>{"use strict";vP.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-multiple-empty-lines",url:"https://eslint.style/rules/no-multiple-empty-lines"}}]},type:"layout",docs:{description:"Disallow multiple empty lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-multiple-empty-lines"},fixable:"whitespace",schema:[{type:"object",properties:{max:{type:"integer",minimum:0},maxEOF:{type:"integer",minimum:0},maxBOF:{type:"integer",minimum:0}},required:["max"],additionalProperties:!1}],messages:{blankBeginningOfFile:"Too many blank lines at the beginning of file. Max of {{max}} allowed.",blankEndOfFile:"Too many blank lines at the end of file. Max of {{max}} allowed.",consecutiveBlank:"More than {{max}} blank {{pluralizedLines}} not allowed."}},create(t){let e=2,r=e,s=e;t.options.length&&(e=t.options[0].max,r=typeof t.options[0].maxEOF<"u"?t.options[0].maxEOF:e,s=typeof t.options[0].maxBOF<"u"?t.options[0].maxBOF:e);let n=t.sourceCode,i=n.lines.at(-1)===""?n.lines.slice(0,-1):n.lines,o=new Set;return{TemplateLiteral(a){a.quasis.forEach(l=>{for(let u=l.loc.start.line;u<l.loc.end.line;u++)o.add(u)})},"Program:exit"(a){return i.reduce((l,u,c)=>((u.trim()||o.has(c+1))&&l.push(c+1),l),[]).concat(i.length+1).reduce((l,u)=>{let c,p;return l===0?(c="blankBeginningOfFile",p=s):u===i.length+1?(c="blankEndOfFile",p=r):(c="consecutiveBlank",p=e),u-l-1>p&&t.report({node:a,loc:{start:{line:l+p+1,column:0},end:{line:u,column:0}},messageId:c,data:{max:p,pluralizedLines:p===1?"line":"lines"},fix(h){let f=n.getIndexFromLoc({line:l+1,column:0}),d=u-p,g=d<=i.length?n.getIndexFromLoc({line:d,column:0}):n.text.length;return h.removeRange([f,g])}}),u},0)}}}}});var wP=B((Une,CP)=>{"use strict";CP.exports={meta:{type:"suggestion",docs:{description:"Disallow assignments to native objects or read-only global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-native-reassign"},deprecated:{message:"Renamed rule.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:"11.0.0",replacedBy:[{rule:{name:"no-global-assign",url:"https://eslint.org/docs/rules/no-global-assign"}}]},schema:[{type:"object",properties:{exceptions:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}],messages:{nativeReassign:"Read-only global '{{name}}' should not be modified."}},create(t){let e=t.options[0],r=e&&e.exceptions||[],s=t.sourceCode;function n(o,a,l){let u=o.identifier;o.init===!1&&o.isWrite()&&(a===0||l[a-1].identifier!==u)&&t.report({node:u,messageId:"nativeReassign",data:u})}function i(o){o.writeable===!1&&!r.includes(o.name)&&o.references.forEach(n)}return{Program(o){s.getScope(o).variables.forEach(i)}}}}});var kP=B(($ne,AP)=>{"use strict";AP.exports={meta:{type:"suggestion",docs:{description:"Disallow negated conditions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-negated-condition"},schema:[],messages:{unexpectedNegated:"Unexpected negated condition."}},create(t){function e(i){return i.alternate&&i.alternate.type!=="IfStatement"}function r(i){return i.type==="UnaryExpression"&&i.operator==="!"}function s(i){return i.type==="BinaryExpression"&&(i.operator==="!="||i.operator==="!==")}function n(i){return r(i.test)||s(i.test)}return{IfStatement(i){e(i)&&n(i)&&t.report({node:i,messageId:"unexpectedNegated"})},ConditionalExpression(i){n(i)&&t.report({node:i,messageId:"unexpectedNegated"})}}}}});var DP=B((Vne,TP)=>{"use strict";TP.exports={meta:{type:"problem",docs:{description:"Disallow negating the left operand in `in` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-negated-in-lhs"},deprecated:{message:"Renamed rule.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:"11.0.0",replacedBy:[{rule:{name:"no-unsafe-negation",url:"https://eslint.org/docs/rules/no-unsafe-negation"}}]},schema:[],messages:{negatedLHS:"The 'in' expression's left operand is negated."}},create(t){return{BinaryExpression(e){e.operator==="in"&&e.left.type==="UnaryExpression"&&e.left.operator==="!"&&t.report({node:e,messageId:"negatedLHS"})}}}}});var PP=B((Wne,IP)=>{"use strict";IP.exports={meta:{type:"suggestion",docs:{description:"Disallow nested ternary expressions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-nested-ternary"},schema:[],messages:{noNestedTernary:"Do not nest ternary expressions."}},create(t){return{ConditionalExpression(e){(e.alternate.type==="ConditionalExpression"||e.consequent.type==="ConditionalExpression")&&t.report({node:e,messageId:"noNestedTernary"})}}}}});var _P=B((zne,FP)=>{"use strict";FP.exports={meta:{type:"suggestion",docs:{description:"Disallow `new` operators outside of assignments or comparisons",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new"},schema:[],messages:{noNewStatement:"Do not use 'new' for side effects."}},create(t){return{"ExpressionStatement > NewExpression"(e){t.report({node:e.parent,messageId:"noNewStatement"})}}}}});var OP=B((Gne,BP)=>{"use strict";var pz=X(),fz=new Set(["apply","bind","call"]);BP.exports={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `Function` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-func"},schema:[],messages:{noFunctionConstructor:"The Function constructor is eval."}},create(t){let e=t.sourceCode;return{"Program:exit"(r){let n=e.getScope(r).set.get("Function");n&&n.defs.length===0&&n.references.forEach(i=>{let o=i.identifier,{parent:a}=o,l;if(a){if(o===a.callee&&(a.type==="NewExpression"||a.type==="CallExpression"))l=a;else if(a.type==="MemberExpression"&&o===a.object&&fz.has(pz.getStaticPropertyName(a))){let u=a.parent.type==="ChainExpression"?a.parent:a;u.parent.type==="CallExpression"&&u.parent.callee===u&&(l=u.parent)}}l&&t.report({node:l,messageId:"noFunctionConstructor"})})}}}}});var NP=B((Kne,LP)=>{"use strict";var hz=["Symbol","BigInt"];LP.exports={meta:{type:"problem",docs:{description:"Disallow `new` operators with global non-constructor functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"},schema:[],messages:{noNewNonconstructor:"`{{name}}` cannot be called as a constructor."}},create(t){let e=t.sourceCode;return{"Program:exit"(r){let s=e.getScope(r);for(let n of hz){let i=s.set.get(n);i&&i.defs.length===0&&i.references.forEach(o=>{let a=o.identifier,l=a.parent;l&&l.type==="NewExpression"&&l.callee===a&&t.report({node:a,messageId:"noNewNonconstructor",data:{name:n}})})}}}}}});var jP=B((Hne,RP)=>{"use strict";var mz=X();RP.exports={meta:{type:"suggestion",docs:{description:"Disallow `Object` constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-object"},deprecated:{message:"The new rule flags more situations where object literal syntax can be used, and it does not report a problem when the `Object` constructor is invoked with an argument.",url:"https://eslint.org/blog/2023/09/eslint-v8.50.0-released/",deprecatedSince:"8.50.0",availableUntil:"11.0.0",replacedBy:[{rule:{name:"no-object-constructor",url:"https://eslint.org/docs/rules/no-object-constructor"}}]},schema:[],messages:{preferLiteral:"The object literal notation {} is preferable."}},create(t){let e=t.sourceCode;return{NewExpression(r){let s=mz.getVariableByName(e.getScope(r),r.callee.name);s&&s.identifiers.length>0||r.callee.name==="Object"&&t.report({node:r,messageId:"preferLiteral"})}}}}});var qP=B((Jne,MP)=>{"use strict";MP.exports={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:"11.0.0",replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-new-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-new-require.md"}}]},type:"suggestion",docs:{description:"Disallow `new` operators with calls to `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-require"},schema:[],messages:{noNewRequire:"Unexpected use of new with require."}},create(t){return{NewExpression(e){e.callee.type==="Identifier"&&e.callee.name==="require"&&t.report({node:e,messageId:"noNewRequire"})}}}}});var $P=B((Xne,UP)=>{"use strict";UP.exports={meta:{type:"problem",docs:{description:"Disallow `new` operators with the `Symbol` object",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-symbol"},deprecated:{message:"The rule was replaced with a more general rule.",url:"https://eslint.org/docs/latest/use/migrate-to-9.0.0#eslint-recommended",deprecatedSince:"9.0.0",availableUntil:"11.0.0",replacedBy:[{rule:{name:"no-new-native-nonconstructor",url:"https://eslint.org/docs/latest/rules/no-new-native-nonconstructor"}}]},schema:[],messages:{noNewSymbol:"`Symbol` cannot be called as a constructor."}},create(t){let e=t.sourceCode;return{"Program:exit"(r){let n=e.getScope(r).set.get("Symbol");n&&n.defs.length===0&&n.references.forEach(i=>{let o=i.identifier,a=o.parent;a&&a.type==="NewExpression"&&a.callee===o&&t.report({node:o,messageId:"noNewSymbol"})})}}}}});var WP=B((Qne,VP)=>{"use strict";var{getVariableByName:dz}=X();VP.exports={meta:{type:"suggestion",docs:{description:"Disallow `new` operators with the `String`, `Number`, and `Boolean` objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-new-wrappers"},schema:[],messages:{noConstructor:"Do not use {{fn}} as a constructor."}},create(t){let{sourceCode:e}=t;return{NewExpression(r){let s=["String","Number","Boolean"],{name:n}=r.callee;if(s.includes(n)){let i=dz(e.getScope(r),n);i&&i.identifiers.length===0&&t.report({node:r,messageId:"noConstructor",data:{fn:n}})}}}}}});var KP=B((Yne,GP)=>{"use strict";var gz=/\\[89]/u;function zP(t){return`\\u${t.charCodeAt(0).toString(16).padStart(4,"0")}`}GP.exports={meta:{type:"suggestion",docs:{description:"Disallow `\\8` and `\\9` escape sequences in string literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-nonoctal-decimal-escape"},hasSuggestions:!0,schema:[],messages:{decimalEscape:"Don't use '{{decimalEscape}}' escape sequence.",refactor:"Replace '{{original}}' with '{{replacement}}'. This maintains the current functionality.",escapeBackslash:"Replace '{{original}}' with '{{replacement}}' to include the actual backslash character."}},create(t){let e=t.sourceCode;function r(s,n,i){return{messageId:s,data:{original:e.getText().slice(...n),replacement:i},fix(o){return o.replaceTextRange(n,i)}}}return{Literal(s){if(typeof s.value!="string"||!gz.test(s.raw))return;let n=/(?:[^\\]|(?<previousEscape>\\.))*?(?<decimalEscape>\\[89])/suy,i;for(;i=n.exec(s.raw);){let{previousEscape:o,decimalEscape:a}=i.groups,l=s.range[0]+i.index+i[0].length,u=l-a.length,c=[u,l],p=[];o==="\\0"?p.push(r("refactor",[u-o.length,l],`${zP("\0")}${a[1]}`),r("refactor",c,zP(a[1]))):p.push(r("refactor",c,a[1])),p.push(r("escapeBackslash",c,`\\${a}`)),t.report({node:s,loc:{start:e.getLocFromIndex(u),end:e.getLocFromIndex(l)},messageId:"decimalEscape",data:{decimalEscape:a},suggest:p})}}}}}});var XP=B((Zne,JP)=>{"use strict";var{CALL:yz,CONSTRUCT:xz,ReferenceTracker:Ez}=Ht(),bz=X().getStaticPropertyName,vz=["Atomics","JSON","Math","Reflect","Intl","Temporal","globalThis"];function HP(t){return t.type==="ChainExpression"?HP(t.expression):t.type==="MemberExpression"?bz(t):t.name}JP.exports={meta:{type:"problem",docs:{description:"Disallow calling global object properties as functions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-obj-calls"},schema:[],messages:{unexpectedCall:"'{{name}}' is not a function.",unexpectedRefCall:"'{{name}}' is reference to '{{ref}}', which is not a function."}},create(t){let e=t.sourceCode;return{Program(r){let s=e.getScope(r),n=new Ez(s),i={};for(let o of vz)i[o]={[yz]:!0,[xz]:!0};for(let{node:o,path:a}of n.iterateGlobalReferences(i)){let l=HP(o.callee),u=a[0],c=l===u?"unexpectedCall":"unexpectedRefCall";t.report({node:o,messageId:c,data:{name:l,ref:u}})}}}}}});var YP=B((ese,QP)=>{"use strict";var{getVariableByName:Sz,isArrowToken:Cz,isStartOfExpressionStatement:wz,needsPrecedingSemicolon:Az}=X();QP.exports={meta:{type:"suggestion",docs:{description:"Disallow calls to the `Object` constructor without an argument",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-object-constructor"},hasSuggestions:!0,schema:[],messages:{preferLiteral:"The object literal notation {} is preferable.",useLiteral:"Replace with '{{replacement}}'.",useLiteralAfterSemicolon:"Replace with '{{replacement}}', add preceding semicolon."}},create(t){let e=t.sourceCode;function r(n){if(wz(n))return!0;let i=e.getTokenBefore(n);return!!(i&&Cz(i))}function s(n){if(n.callee.type!=="Identifier"||n.callee.name!=="Object"||n.arguments.length)return;let i=Sz(e.getScope(n),"Object");if(i&&i.identifiers.length===0){let o,a,l="useLiteral";r(n)?(o="({})",Az(e,n)?(a=";({})",l="useLiteralAfterSemicolon"):a="({})"):o=a="{}",t.report({node:n,messageId:"preferLiteral",suggest:[{messageId:l,data:{replacement:o},fix:u=>u.replaceText(n,a)}]})}}return{CallExpression:s,NewExpression:s}}}});var eF=B((tse,ZP)=>{"use strict";ZP.exports={meta:{type:"suggestion",docs:{description:"Disallow octal literals",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-octal"},schema:[],messages:{noOctal:"Octal literals should not be used."}},create(t){return{Literal(e){typeof e.value=="number"&&/^0\d/u.test(e.raw)&&t.report({node:e,messageId:"noOctal"})}}}}});var rF=B((rse,tF)=>{"use strict";tF.exports={meta:{type:"suggestion",docs:{description:"Disallow octal escape sequences in string literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-octal-escape"},schema:[],messages:{octalEscapeSequence:"Don't use octal: '\\{{sequence}}'. Use '\\u....' instead."}},create(t){return{Literal(e){if(typeof e.value!="string")return;let r=e.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);r&&t.report({node:e,messageId:"octalEscapeSequence",data:{sequence:r[1]}})}}}}});var sF=B((nse,nF)=>{"use strict";var kz=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;nF.exports={meta:{type:"suggestion",docs:{description:"Disallow reassigning function parameters",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-param-reassign"},schema:[{oneOf:[{type:"object",properties:{props:{enum:[!1]}},additionalProperties:!1},{type:"object",properties:{props:{enum:[!0]},ignorePropertyModificationsFor:{type:"array",items:{type:"string"},uniqueItems:!0},ignorePropertyModificationsForRegex:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]}],messages:{assignmentToFunctionParam:"Assignment to function parameter '{{name}}'.",assignmentToFunctionParamProp:"Assignment to property of function parameter '{{name}}'."}},create(t){let e=t.options[0]&&t.options[0].props,r=t.options[0]&&t.options[0].ignorePropertyModificationsFor||[],s=t.options[0]&&t.options[0].ignorePropertyModificationsForRegex||[],n=t.sourceCode;function i(c){let p=c.identifier,h=p.parent;for(;h&&(!kz.test(h.type)||h.type==="ForInStatement"||h.type==="ForOfStatement");){switch(h.type){case"AssignmentExpression":return h.left===p;case"UpdateExpression":return!0;case"UnaryExpression":if(h.operator==="delete")return!0;break;case"ForInStatement":case"ForOfStatement":return h.left===p;case"CallExpression":if(h.callee!==p)return!1;break;case"MemberExpression":if(h.property===p)return!1;break;case"Property":if(h.key===p)return!1;break;case"ConditionalExpression":if(h.test===p)return!1;break}p=h,h=p.parent}return!1}function o(c){return r.includes(c)||s.some(p=>new RegExp(p,"u").test(c))}function a(c,p,h){let f=c.identifier;f&&!c.init&&(p===0||h[p-1].identifier!==f)&&(c.isWrite()?t.report({node:f,messageId:"assignmentToFunctionParam",data:{name:f.name}}):e&&i(c)&&!o(f.name)&&t.report({node:f,messageId:"assignmentToFunctionParamProp",data:{name:f.name}}))}function l(c){c.defs[0].type==="Parameter"&&c.references.forEach(a)}function u(c){n.getDeclaredVariables(c).forEach(l)}return{"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u}}}});var aF=B((sse,iF)=>{"use strict";iF.exports={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:"11.0.0",replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-path-concat",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-path-concat.md"}}]},type:"suggestion",docs:{description:"Disallow string concatenation with `__dirname` and `__filename`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-path-concat"},schema:[],messages:{usePathFunctions:"Use path.join() or path.resolve() instead of + to create paths."}},create(t){let e=/^__(?:dir|file)name$/u;return{BinaryExpression(r){let s=r.left,n=r.right;r.operator==="+"&&(s.type==="Identifier"&&e.test(s.name)||n.type==="Identifier"&&e.test(n.name))&&t.report({node:r,messageId:"usePathFunctions"})}}}}});var uF=B((ise,lF)=>{"use strict";function Tz(t){let e=t.parent;return e.type==="ForStatement"&&e.update===t}function oF(t){let e=t.parent;return e.type==="SequenceExpression"?oF(e):Tz(t)}lF.exports={meta:{type:"suggestion",defaultOptions:[{allowForLoopAfterthoughts:!1}],docs:{description:"Disallow the unary operators `++` and `--`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-plusplus"},schema:[{type:"object",properties:{allowForLoopAfterthoughts:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedUnaryOp:"Unary operator '{{operator}}' used."}},create(t){let[{allowForLoopAfterthoughts:e}]=t.options;return{UpdateExpression(r){e&&oF(r)||t.report({node:r,messageId:"unexpectedUnaryOp",data:{operator:r.operator}})}}}}});var pF=B((ase,cF)=>{"use strict";cF.exports={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:"11.0.0",replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-process-env",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-env.md"}}]},type:"suggestion",docs:{description:"Disallow the use of `process.env`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-env"},schema:[],messages:{unexpectedProcessEnv:"Unexpected use of process.env."}},create(t){return{MemberExpression(e){let r=e.object.name,s=e.property.name;r==="process"&&!e.computed&&s&&s==="env"&&t.report({node:e,messageId:"unexpectedProcessEnv"})}}}}});var hF=B((ose,fF)=>{"use strict";fF.exports={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:"11.0.0",replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-process-exit",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-process-exit.md"}}]},type:"suggestion",docs:{description:"Disallow the use of `process.exit()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-process-exit"},schema:[],messages:{noProcessExit:"Don't use process.exit(); throw an error instead."}},create(t){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(e){t.report({node:e.parent,messageId:"noProcessExit"})}}}}});var yF=B((lse,gF)=>{"use strict";var ba=X(),Dz=new Set(["ArrowFunctionExpression","FunctionExpression"]);function Iz(t,e){let r=t.parent;return r.type==="NewExpression"&&r.arguments[0]===t&&r.callee.type==="Identifier"&&r.callee.name==="Promise"&&e.isGlobalReference(r.callee)}function mF(t){return t.type==="UnaryExpression"&&t.operator==="void"}function dF(t,e,r){let s=ba.getPrecedence(e)<ba.getPrecedence({type:"UnaryExpression",operator:"void"})&&!ba.isParenthesised(t,e),n=t.getTokenBefore(e,e.parent.type==="ArrowFunctionExpression"?ba.isArrowToken:a=>a.type==="Keyword"&&a.value==="return"),i=t.getTokenAfter(n),o=n.value==="return"&&n.range[1]===i.range[0];return[r.insertTextBefore(i,`${o?" ":""}void ${s?"(":""}`),r.insertTextAfter(e,s?")":"")]}function Pz(t,e,r){let s=t.getTokenBefore(e.body,ba.isArrowToken),n=t.getTokenAfter(s),i=t.getLastToken(e);return[r.insertTextBefore(n,"{"),r.insertTextAfter(i,"}")]}gF.exports={meta:{type:"problem",defaultOptions:[{allowVoid:!1}],docs:{description:"Disallow returning values from Promise executor functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-promise-executor-return"},hasSuggestions:!0,schema:[{type:"object",properties:{allowVoid:{type:"boolean"}},additionalProperties:!1}],messages:{returnsValue:"Return values from promise executor functions cannot be read.",prependVoid:"Prepend `void` to the expression.",wrapBraces:"Wrap the expression in `{}`."}},create(t){let e=null,r=t.sourceCode,[{allowVoid:s}]=t.options;return{onCodePathStart(n,i){if(e={upper:e,shouldCheck:Dz.has(i.type)&&Iz(i,r)},e.shouldCheck&&i.type==="ArrowFunctionExpression"&&i.expression&&!(s&&mF(i.body))){let o=[];s&&o.push({messageId:"prependVoid",fix(a){return dF(r,i.body,a)}}),(i.body.type==="FunctionExpression"||i.body.type==="ClassExpression")&&!i.body.id||o.push({messageId:"wrapBraces",fix(a){return Pz(r,i,a)}}),t.report({node:i.body,messageId:"returnsValue",suggest:o})}},onCodePathEnd(){e=e.upper},ReturnStatement(n){if(e.shouldCheck&&n.argument){if(!s){t.report({node:n,messageId:"returnsValue"});return}mF(n.argument)||t.report({node:n,messageId:"returnsValue",suggest:[{messageId:"prependVoid",fix(i){return dF(r,n.argument,i)}}]})}}}}}});var EF=B((use,xF)=>{"use strict";var{getStaticPropertyName:Fz}=X();xF.exports={meta:{type:"suggestion",docs:{description:"Disallow the use of the `__proto__` property",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-proto"},schema:[],messages:{unexpectedProto:"The '__proto__' property is deprecated."}},create(t){return{MemberExpression(e){Fz(e)==="__proto__"&&t.report({node:e,messageId:"unexpectedProto"})}}}}});var SF=B((cse,vF)=>{"use strict";var ci=X();function bF(t){let e;if(t.type==="MemberExpression")e=t.object;else if(t.type==="CallExpression")e=t.callee;else return!1;return t.optional?!0:bF(e)}vF.exports={meta:{type:"problem",docs:{description:"Disallow calling some `Object.prototype` methods directly on objects",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-prototype-builtins"},hasSuggestions:!0,schema:[],messages:{prototypeBuildIn:"Do not access Object.prototype method '{{prop}}' from target object.",callObjectPrototype:"Call Object.prototype.{{prop}} explicitly."}},create(t){let e=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"]);function r(s){let n=ci.skipChainExpression(s.callee);if(n.type!=="MemberExpression")return;let i=ci.getStaticPropertyName(n);i!==null&&e.has(i)&&t.report({messageId:"prototypeBuildIn",loc:n.property.loc,data:{prop:i},node:s,suggest:[{messageId:"callObjectPrototype",data:{prop:i},fix(o){let a=t.sourceCode;if(bF(s)||s.callee.type==="ChainExpression"||n.object.type==="Super")return null;let l=ci.getVariableByName(a.getScope(s),"Object");if(!l||l.scope.type!=="global"||l.defs.length>0)return null;let u=a.getText(n.object);ci.getPrecedence(n.object)<=ci.getPrecedence({type:"SequenceExpression"})&&(u=`(${u})`);let c=a.getTokenAfter(s.callee,ci.isOpeningParenToken),h=s.arguments.length===0?"":", ";return[o.replaceText(n,`Object.prototype.${i}.call`),o.insertTextAfter(c,u+h)]}}]})}return{CallExpression:r}}}});var wF=B((pse,CF)=>{"use strict";var _z=X();CF.exports={meta:{type:"suggestion",defaultOptions:[{builtinGlobals:!0}],docs:{description:"Disallow variable redeclaration",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-redeclare"},messages:{redeclared:"'{{id}}' is already defined.",redeclaredAsBuiltin:"'{{id}}' is already defined as a built-in global variable.",redeclaredBySyntax:"'{{id}}' is already defined by a variable declaration."},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean"}},additionalProperties:!1}]},create(t){let[{builtinGlobals:e}]=t.options,r=t.sourceCode;function s(o){let a=e&&(o.eslintImplicitGlobalSetting==="readonly"||o.eslintImplicitGlobalSetting==="writable");if((a?1:0)+o.identifiers.length+(o.eslintExplicitGlobalComments?.length??0)<2)return null;let u=a?[{type:"builtin"}]:[];for(let c of o.identifiers)u.push({type:"syntax",node:c,loc:c.loc});if(o.eslintExplicitGlobalComments)for(let c of o.eslintExplicitGlobalComments)u.push({type:"comment",node:c,loc:_z.getNameLocationInGlobalDirectiveComment(r,c,o.name)});return u}function n(o){for(let a of o.variables){let l=s(a);if(!l)continue;let[u,...c]=l,p=u.type==="builtin"?"redeclaredAsBuiltin":"redeclaredBySyntax",h={id:a.name};for(let{type:f,node:d,loc:g}of c){let y=f===u.type?"redeclared":p;t.report({node:d,loc:g,messageId:y,data:h})}}}function i(o){let a=r.getScope(o);a.block===o&&n(a)}return{Program(o){let a=r.getScope(o);n(a),a.type==="global"&&a.childScopes[0]&&a.block===a.childScopes[0].block&&n(a.childScopes[0])},FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression:i,StaticBlock:i,BlockStatement:i,ForStatement:i,ForInStatement:i,ForOfStatement:i,SwitchStatement:i}}}});var DF=B((fse,TF)=>{"use strict";var Bz=X(),kF=Ir(),Oz=new kF.RegExpParser,Lz=/ {2}/u;function AF(t){return t&&t.type==="Literal"&&typeof t.value=="string"}TF.exports={meta:{type:"suggestion",docs:{description:"Disallow multiple spaces in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-regex-spaces"},schema:[],fixable:"code",messages:{multipleSpaces:"Spaces are hard to count. Use {{{length}}}."}},create(t){let e=t.sourceCode;function r(i,o,a,l,u){if(!Lz.test(a))return;let c=[],p;try{p=Oz.parsePattern(o,0,o.length,{unicode:u.includes("u"),unicodeSets:u.includes("v")})}catch{return}kF.visitRegExpAST(p,{onCharacterClassEnter(d){c.push(d)}});let h=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu,f;for(;f=h.exec(o);){let{1:{length:d},index:g}=f;if(c.every(({start:y,end:v})=>g<y||v<=g)){t.report({node:i,messageId:"multipleSpaces",data:{length:d},fix(y){return o!==a?null:y.replaceTextRange([l+g,l+g+d],` {${d}}`)}});return}}}function s(i){if(i.regex){let o=i.regex.pattern,a=i.raw.slice(1,i.raw.lastIndexOf("/")),l=i.range[0]+1,u=i.regex.flags;r(i,o,a,l,u)}}function n(i){let o=e.getScope(i),a=Bz.getVariableByName(o,"RegExp"),l=a&&a.defs.length>0,u=i.arguments[0];if(i.callee.type==="Identifier"&&i.callee.name==="RegExp"&&AF(u)&&!l){let c=u.value,p=u.raw.slice(1,-1),h=u.range[0]+1,f;if(i.arguments.length<2)f="";else{let d=i.arguments[1];if(AF(d))f=d.value;else return}r(i,c,p,h,f)}}return{Literal:s,CallExpression:n,NewExpression:n}}}});var FF=B((hse,PF)=>{"use strict";var IF=X();PF.exports={meta:{type:"suggestion",docs:{description:"Disallow specified names in exports",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-exports"},schema:[{anyOf:[{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string"},uniqueItems:!0},restrictedNamedExportsPattern:{type:"string"}},additionalProperties:!1},{type:"object",properties:{restrictedNamedExports:{type:"array",items:{type:"string",pattern:"^(?!default$)"},uniqueItems:!0},restrictedNamedExportsPattern:{type:"string"},restrictDefaultExports:{type:"object",properties:{direct:{type:"boolean"},named:{type:"boolean"},defaultFrom:{type:"boolean"},namedFrom:{type:"boolean"},namespaceFrom:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1}]}],defaultOptions:[{}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name.",restrictedDefault:"Exporting 'default' is restricted."}},create(t){let{restrictedNamedExports:e,restrictedNamedExportsPattern:r,restrictDefaultExports:s}=t.options[0],n=new Set(e),i=t.sourceCode;function o(a){let l=IF.getModuleExportName(a),u=!1;if(r&&l!=="default"&&(u=new RegExp(r,"u").test(l)),u||n.has(l)){t.report({node:a,messageId:"restrictedNamed",data:{name:l}});return}if(l==="default")if(a.parent.type==="ExportAllDeclaration")s&&s.namespaceFrom&&t.report({node:a,messageId:"restrictedDefault"});else{let c=!!a.parent.parent.source,p=IF.getModuleExportName(a.parent.local);if(!c&&s&&s.named){t.report({node:a,messageId:"restrictedDefault"});return}c&&s&&(p==="default"&&s.defaultFrom||p!=="default"&&s.namedFrom)&&t.report({node:a,messageId:"restrictedDefault"})}}return{ExportAllDeclaration(a){a.exported&&o(a.exported)},ExportDefaultDeclaration(a){s&&s.direct&&t.report({node:a,messageId:"restrictedDefault"})},ExportNamedDeclaration(a){let l=a.declaration;l?l.type==="FunctionDeclaration"||l.type==="ClassDeclaration"?o(l.id):l.type==="VariableDeclaration"&&i.getDeclaredVariables(l).map(u=>u.defs.find(c=>c.parent===l)).map(u=>u.name).forEach(o):a.specifiers.map(u=>u.exported).forEach(o)}}}}});var OF=B((mse,BF)=>{"use strict";var Zh=X(),Nz=new Set(["TSTypeReference","TSInterfaceHeritage","TSClassImplements","TSTypeQuery","TSQualifiedName"]),Rz=new Set(["globalThis","self","window"]),_F={type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string"}},required:["name"],additionalProperties:!1}]},uniqueItems:!0,minItems:0};BF.exports={meta:{type:"suggestion",docs:{description:"Disallow specified global variables",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-globals"},schema:{anyOf:[_F,{type:"array",items:[{type:"object",properties:{globals:_F,checkGlobalObject:{type:"boolean"},globalObjects:{type:"array",items:{type:"string"},uniqueItems:!0}},required:["globals"],additionalProperties:!1}],additionalItems:!1}]},messages:{defaultMessage:"Unexpected use of '{{name}}'.",customMessage:"Unexpected use of '{{name}}'. {{customMessage}}"}},create(t){let{sourceCode:e,options:r}=t,s=typeof r[0]=="object"&&Object.hasOwn(r[0],"globals"),n=s?r[0].globals:r,i=s?r[0].checkGlobalObject:!1,o=s?r[0].globalObjects||[]:[],a=new Set([...Rz,...o]);if(n.length===0)return{};let l=n.reduce((h,f)=>(typeof f=="string"?h[f]=null:h[f.name]=f.message,h),{});function u(h){let f=h.identifier.name,d=l[f],g=d?"customMessage":"defaultMessage";t.report({node:h.identifier,messageId:g,data:{name:f,customMessage:d}})}function c(h){return Object.hasOwn(l,h)}function p(h){let f=h.identifier.parent;return Nz.has(f.type)}return{Program(h){let f=e.getScope(h);f.variables.forEach(d=>{!d.defs.length&&c(d.name)&&d.references.forEach(g=>{p(g)||u(g)})}),f.through.forEach(d=>{c(d.identifier.name)&&!p(d)&&u(d)})},"Program:exit"(h){if(!i)return;let f=e.getScope(h);a.forEach(d=>{let g=Zh.getVariableByName(f,d);g&&g.references.forEach(y=>{let S=y.identifier.parent;for(;Zh.isSpecificMemberAccess(S,null,d);)S=S.parent;if(S.type!=="MemberExpression")return;let A=Zh.getStaticPropertyName(S);if(A&&c(A)){let E=l[A],k=E?"customMessage":"defaultMessage";t.report({node:S.property,messageId:k,data:{name:A,customMessage:E}})}})})}}}}});var am=B((dse,$F)=>{function LF(t){return Array.isArray(t)?t:[t]}var rm="",NF=" ",em="\\",jz=/^\s+$/,Mz=/(?:[^\\]|^)\\$/,qz=/^\\!/,Uz=/^\\#/,$z=/\r?\n/g,Vz=/^\.*\/|^\.+$/,tm="/",MF="node-ignore";typeof Symbol<"u"&&(MF=Symbol.for("node-ignore"));var RF=MF,Wz=(t,e,r)=>Object.defineProperty(t,e,{value:r}),zz=/([0-z])-([0-z])/g,qF=()=>!1,Gz=t=>t.replace(zz,(e,r,s)=>r.charCodeAt(0)<=s.charCodeAt(0)?e:rm),Kz=t=>{let{length:e}=t;return t.slice(0,e-e%2)},Hz=[[/^\uFEFF/,()=>rm],[/((?:\\\\)*?)(\\?\s+)$/,(t,e,r)=>e+(r.indexOf("\\")===0?NF:rm)],[/(\\+?)\s/g,(t,e)=>{let{length:r}=e;return e.slice(0,r-r%2)+NF}],[/[\\$.|*+(){^]/g,t=>`\\${t}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,(t,e,r)=>e+6<r.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,(t,e,r)=>{let s=r.replace(/\\\*/g,"[^\\/]*");return e+s}],[/\\\\\\(?=[$.|*+(){^])/g,()=>em],[/\\\\/g,()=>em],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,(t,e,r,s,n)=>e===em?`\\[${r}${Kz(s)}${n}`:n==="]"&&s.length%2===0?`[${Gz(r)}${s}]`:"[]"],[/(?:[^*])$/,t=>/\/$/.test(t)?`${t}$`:`${t}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,(t,e)=>`${e?`${e}[^/]+`:"[^/]*"}(?=$|\\/$)`]],jF=Object.create(null),Jz=(t,e)=>{let r=jF[t];return r||(r=Hz.reduce((s,[n,i])=>s.replace(n,i.bind(t)),t),jF[t]=r),e?new RegExp(r,"i"):new RegExp(r)},im=t=>typeof t=="string",Xz=t=>t&&im(t)&&!jz.test(t)&&!Mz.test(t)&&t.indexOf("#")!==0,Qz=t=>t.split($z),nm=class{constructor(e,r,s,n){this.origin=e,this.pattern=r,this.negative=s,this.regex=n}},Yz=(t,e)=>{let r=t,s=!1;t.indexOf("!")===0&&(s=!0,t=t.substr(1)),t=t.replace(qz,"!").replace(Uz,"#");let n=Jz(t,e);return new nm(r,t,s,n)},Zz=(t,e)=>{throw new e(t)},sn=(t,e,r)=>im(t)?t?sn.isNotRelative(t)?r(`path should be a \`path.relative()\`d string, but got "${e}"`,RangeError):!0:r("path must not be empty",TypeError):r(`path must be a string, but got \`${e}\``,TypeError),UF=t=>Vz.test(t);sn.isNotRelative=UF;sn.convert=t=>t;var sm=class{constructor({ignorecase:e=!0,ignoreCase:r=e,allowRelativePaths:s=!1}={}){Wz(this,RF,!0),this._rules=[],this._ignoreCase=r,this._allowRelativePaths=s,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(e){if(e&&e[RF]){this._rules=this._rules.concat(e._rules),this._added=!0;return}if(Xz(e)){let r=Yz(e,this._ignoreCase);this._added=!0,this._rules.push(r)}}add(e){return this._added=!1,LF(im(e)?Qz(e):e).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(e){return this.add(e)}_testOne(e,r){let s=!1,n=!1;return this._rules.forEach(i=>{let{negative:o}=i;if(n===o&&s!==n||o&&!s&&!n&&!r)return;i.regex.test(e)&&(s=!o,n=o)}),{ignored:s,unignored:n}}_test(e,r,s,n){let i=e&&sn.convert(e);return sn(i,e,this._allowRelativePaths?qF:Zz),this._t(i,r,s,n)}_t(e,r,s,n){if(e in r)return r[e];if(n||(n=e.split(tm)),n.pop(),!n.length)return r[e]=this._testOne(e,s);let i=this._t(n.join(tm)+tm,r,s,n);return r[e]=i.ignored?i:this._testOne(e,s)}ignores(e){return this._test(e,this._ignoreCache,!1).ignored}createFilter(){return e=>!this.ignores(e)}filter(e){return LF(e).filter(this.createFilter())}test(e){return this._test(e,this._testCache,!0)}},Hl=t=>new sm(t),eG=t=>sn(t&&sn.convert(t),t,qF);Hl.isPathValid=eG;Hl.default=Hl;$F.exports=Hl;if(typeof process<"u"&&(process.env&&process.env.IGNORE_TEST_WIN32||process.platform==="win32")){let t=r=>/^\\\\\?\\/.test(r)||/["<>|\u0000-\u001F]+/u.test(r)?r:r.replace(/\\/g,"/");sn.convert=t;let e=/^[a-z]:\//i;sn.isNotRelative=r=>e.test(r)||UF(r)}});var GF=B((gse,zF)=>{"use strict";var VF=X();function pi(t){return new Intl.ListFormat("en-US").format(t.map(e=>`'${e}'`))}function fi(t){return t.length===1?"is":"are"}var tG=am(),WF={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1},importNames:{type:"array",items:{type:"string"}},allowImportNames:{type:"array",items:{type:"string"}},allowTypeImports:{type:"boolean",description:"Whether to allow type-only imports for a path."}},additionalProperties:!1,required:["name"],not:{required:["importNames","allowImportNames"]}}]},uniqueItems:!0},rG={anyOf:[{type:"array",items:{type:"string"},uniqueItems:!0},{type:"array",items:{type:"object",properties:{importNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},allowImportNames:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},group:{type:"array",items:{type:"string"},minItems:1,uniqueItems:!0},regex:{type:"string"},importNamePattern:{type:"string"},allowImportNamePattern:{type:"string"},message:{type:"string",minLength:1},caseSensitive:{type:"boolean"},allowTypeImports:{type:"boolean",description:"Whether to allow type-only imports for a pattern."}},additionalProperties:!1,not:{anyOf:[{required:["importNames","allowImportNames"]},{required:["importNamePattern","allowImportNamePattern"]},{required:["importNames","allowImportNamePattern"]},{required:["importNamePattern","allowImportNames"]},{required:["allowImportNames","allowImportNamePattern"]}]},oneOf:[{required:["group"]},{required:["regex"]}]},uniqueItems:!0}]};zF.exports={meta:{type:"suggestion",docs:{description:"Disallow specified modules when loaded by `import`",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-imports"},messages:{path:"'{{importSource}}' import is restricted from being used.",pathWithCustomMessage:"'{{importSource}}' import is restricted from being used. {{customMessage}}",patterns:"'{{importSource}}' import is restricted from being used by a pattern.",patternWithCustomMessage:"'{{importSource}}' import is restricted from being used by a pattern. {{customMessage}}",patternAndImportName:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern.",patternAndImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted from being used by a pattern. {{customMessage}}",patternAndEverything:"* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted from being used by a pattern.",patternAndEverythingWithRegexImportName:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used.",patternAndEverythingWithCustomMessage:"* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted from being used by a pattern. {{customMessage}}",patternAndEverythingWithRegexImportNameAndCustomMessage:"* import is invalid because import name matching '{{importNames}}' pattern from '{{importSource}}' is restricted from being used. {{customMessage}}",everything:"* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted.",everythingWithCustomMessage:"* import is invalid because {{importNames}} from '{{importSource}}' {{isOrAre}} restricted. {{customMessage}}",importName:"'{{importName}}' import from '{{importSource}}' is restricted.",importNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted. {{customMessage}}",allowedImportName:"'{{importName}}' import from '{{importSource}}' is restricted because only {{allowedImportNames}} {{isOrAre}} allowed.",allowedImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only {{allowedImportNames}} {{isOrAre}} allowed. {{customMessage}}",everythingWithAllowImportNames:"* import is invalid because only {{allowedImportNames}} from '{{importSource}}' {{isOrAre}} allowed.",everythingWithAllowImportNamesAndCustomMessage:"* import is invalid because only {{allowedImportNames}} from '{{importSource}}' {{isOrAre}} allowed. {{customMessage}}",allowedImportNamePattern:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'.",allowedImportNamePatternWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only imports that match the pattern '{{allowedImportNamePattern}}' are allowed from '{{importSource}}'. {{customMessage}}",everythingWithAllowedImportNamePattern:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed.",everythingWithAllowedImportNamePatternWithCustomMessage:"* import is invalid because only imports that match the pattern '{{allowedImportNamePattern}}' from '{{importSource}}' are allowed. {{customMessage}}"},schema:{anyOf:[WF,{type:"array",items:[{type:"object",properties:{paths:WF,patterns:rG},additionalProperties:!1}],additionalItems:!1}]}},create(t){let e=t.sourceCode,r=Array.isArray(t.options)?t.options:[],s=typeof r[0]=="object"&&(Object.hasOwn(r[0],"paths")||Object.hasOwn(r[0],"patterns")),n=(s?r[0].paths:t.options)||[],i=n.reduce((g,y)=>{let v=typeof y=="string"?y:y.name;return g[v]||(g[v]=[]),typeof y=="string"?g[v].push({}):g[v].push({message:y.message,importNames:y.importNames,allowImportNames:y.allowImportNames,allowTypeImports:y.allowTypeImports}),g},Object.create(null)),o=(s?r[0].patterns:[])||[];o.length>0&&typeof o[0]=="string"&&(o=[{group:o}]);let a=o.map(({group:g,regex:y,message:v,caseSensitive:S,importNames:A,importNamePattern:E,allowImportNames:k,allowImportNamePattern:T,allowTypeImports:w})=>({...g?{matcher:tG({allowRelativePaths:!0,ignorecase:!S}).add(g)}:{},...typeof y=="string"?{regexMatcher:new RegExp(y,S?"u":"iu")}:{},customMessage:v,importNames:A,importNamePattern:E,allowImportNames:k,allowImportNamePattern:T,allowTypeImports:w}));if(Object.keys(n).length===0&&a.length===0)return{};function l(g){return g.importKind==="type"||g.specifiers?.length>0&&g.specifiers.every(y=>y.importKind==="type")}function u(g){return g.importKind==="type"||g.exportKind==="type"}function c(g){return g.exportKind==="type"||g.specifiers?.length>0&&g.specifiers.every(y=>y.exportKind==="type")}function p(g,y,v){Object.hasOwn(i,g)&&i[g].forEach(S=>{let A=S.message,E=S.importNames,k=S.allowImportNames,T=S.allowTypeImports;if(!(T&&(v.type==="ImportDeclaration"||v.type==="TSImportEqualsDeclaration")&&l(v))&&!(T&&(v.type==="ExportNamedDeclaration"||v.type==="ExportAllDeclaration")&&c(v))){if(!E&&!k){t.report({node:v,messageId:A?"pathWithCustomMessage":"path",data:{importSource:g,customMessage:A}});return}y.forEach((w,R)=>{if(R==="*"){let[j]=w;E?t.report({node:v,messageId:A?"everythingWithCustomMessage":"everything",loc:j.loc,data:{importSource:g,importNames:pi(E),isOrAre:fi(E),customMessage:A}}):k&&t.report({node:v,messageId:A?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:j.loc,data:{importSource:g,allowedImportNames:pi(k),isOrAre:fi(k),customMessage:A}});return}E&&E.includes(R)&&w.forEach(j=>{T&&u(j.specifier)||t.report({node:v,messageId:A?"importNameWithCustomMessage":"importName",loc:j.loc,data:{importSource:g,customMessage:A,importName:R}})}),k&&!k.includes(R)&&w.forEach(j=>{T&&u(j.specifier)||t.report({node:v,loc:j.loc,messageId:A?"allowedImportNameWithCustomMessage":"allowedImportName",data:{importSource:g,customMessage:A,importName:R,allowedImportNames:pi(k),isOrAre:fi(k)}})})})}})}function h(g,y,v,S){if(y.allowTypeImports&&(g.type==="ImportDeclaration"||g.type==="TSImportEqualsDeclaration")&&l(g)||y.allowTypeImports&&(g.type==="ExportNamedDeclaration"||g.type==="ExportAllDeclaration")&&c(g))return;let A=y.customMessage,E=y.importNames,k=y.importNamePattern?new RegExp(y.importNamePattern,"u"):null,T=y.allowImportNames,w=y.allowImportNamePattern?new RegExp(y.allowImportNamePattern,"u"):null;if(!E&&!T&&!k&&!w){t.report({node:g,messageId:A?"patternWithCustomMessage":"patterns",data:{importSource:S,customMessage:A}});return}v.forEach((R,j)=>{if(j==="*"){let[$]=R;E?t.report({node:g,messageId:A?"patternAndEverythingWithCustomMessage":"patternAndEverything",loc:$.loc,data:{importSource:S,importNames:pi(E),isOrAre:fi(E),customMessage:A}}):T?t.report({node:g,messageId:A?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:$.loc,data:{importSource:S,allowedImportNames:pi(T),isOrAre:fi(T),customMessage:A}}):w?t.report({node:g,messageId:A?"everythingWithAllowedImportNamePatternWithCustomMessage":"everythingWithAllowedImportNamePattern",loc:$.loc,data:{importSource:S,allowedImportNamePattern:w,customMessage:A}}):t.report({node:g,messageId:A?"patternAndEverythingWithRegexImportNameAndCustomMessage":"patternAndEverythingWithRegexImportName",loc:$.loc,data:{importSource:S,importNames:k,customMessage:A}});return}(E&&E.includes(j)||k&&k.test(j))&&R.forEach($=>{y.allowTypeImports&&u($.specifier)||t.report({node:g,messageId:A?"patternAndImportNameWithCustomMessage":"patternAndImportName",loc:$.loc,data:{importSource:S,customMessage:A,importName:j}})}),T&&!T.includes(j)?R.forEach($=>{y.allowTypeImports&&u($.specifier)||t.report({node:g,messageId:A?"allowedImportNameWithCustomMessage":"allowedImportName",loc:$.loc,data:{importSource:S,customMessage:A,importName:j,allowedImportNames:pi(T),isOrAre:fi(T)}})}):w&&!w.test(j)&&R.forEach($=>{y.allowTypeImports&&u($.specifier)||t.report({node:g,messageId:A?"allowedImportNamePatternWithCustomMessage":"allowedImportNamePattern",loc:$.loc,data:{importSource:S,customMessage:A,importName:j,allowedImportNamePattern:w}})})})}function f(g,y){return y.regexMatcher?y.regexMatcher.test(g):y.matcher.ignores(g)}function d(g){let y=g.source.value.trim(),v=new Map;if(g.type==="ExportAllDeclaration"){let S=e.getFirstToken(g,1);v.set("*",[{loc:S.loc}])}else if(g.specifiers)for(let S of g.specifiers){let A,E={loc:S.loc,specifier:S};S.type==="ImportDefaultSpecifier"?A="default":S.type==="ImportNamespaceSpecifier"?A="*":S.imported?A=VF.getModuleExportName(S.imported):S.local&&(A=VF.getModuleExportName(S.local)),typeof A=="string"&&(v.has(A)?v.get(A).push(E):v.set(A,[E]))}p(y,v,g),a.forEach(S=>{f(y,S)&&h(g,S,v,y)})}return{ImportDeclaration:d,ExportNamedDeclaration(g){g.source&&d(g)},ExportAllDeclaration:d,TSImportEqualsDeclaration(g){if(g.moduleReference.type==="TSExternalModuleReference"){let y=g.moduleReference.expression.value,v=new Map;p(y,v,g),a.forEach(S=>{f(y,S)&&h(g,S,v,y)})}}}}}});var JF=B((yse,HF)=>{"use strict";var nG=X(),sG=am(),iG={type:"array",items:{type:"string"},uniqueItems:!0},KF={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};HF.exports={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:"11.0.0",replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-restricted-require",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-restricted-require.md"}}]},type:"suggestion",docs:{description:"Disallow specified modules when loaded by `require`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-modules"},schema:{anyOf:[KF,{type:"array",items:{type:"object",properties:{paths:KF,patterns:iG},additionalProperties:!1},additionalItems:!1}]},messages:{defaultMessage:"'{{name}}' module is restricted from being used.",customMessage:"'{{name}}' module is restricted from being used. {{customMessage}}",patternMessage:"'{{name}}' module is restricted from being used by a pattern."}},create(t){let e=Array.isArray(t.options)?t.options:[],r=typeof e[0]=="object"&&(Object.hasOwn(e[0],"paths")||Object.hasOwn(e[0],"patterns")),s=(r?e[0].paths:t.options)||[],n=(r?e[0].patterns:[])||[],i=s.reduce((h,f)=>(typeof f=="string"?h[f]=null:h[f.name]=f.message,h),{});if(Object.keys(s).length===0&&n.length===0)return{};let o=sG({allowRelativePaths:!0}).add(n);function a(h){return h&&h.type==="Literal"&&typeof h.value=="string"}function l(h){return h.callee.type==="Identifier"&&h.callee.name==="require"}function u(h){return a(h)?h.value.trim():nG.isStaticTemplateLiteral(h)?h.quasis[0].value.cooked.trim():null}function c(h,f){let d=i[f],g=d?"customMessage":"defaultMessage";t.report({node:h,messageId:g,data:{name:f,customMessage:d}})}function p(h){return Object.hasOwn(i,h)}return{CallExpression(h){if(l(h)&&h.arguments.length){let f=u(h.arguments[0]);f&&(p(f)&&c(h,f),n.length>0&&o.ignores(f)&&t.report({node:h,messageId:"patternMessage",data:{name:f}}))}}}}}});var YF=B((xse,QF)=>{"use strict";var XF=X();QF.exports={meta:{type:"suggestion",docs:{description:"Disallow certain properties on certain objects",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-properties"},schema:{type:"array",items:{type:"object",properties:{object:{type:"string"},property:{type:"string"},allowObjects:{type:"array",items:{type:"string"},uniqueItems:!0},allowProperties:{type:"array",items:{type:"string"},uniqueItems:!0},message:{type:"string"}},anyOf:[{required:["object"]},{required:["property"]}],not:{anyOf:[{required:["allowObjects","object"]},{required:["allowProperties","property"]}]},additionalProperties:!1},uniqueItems:!0},defaultOptions:[],messages:{restrictedObjectProperty:"'{{objectName}}.{{propertyName}}' is restricted from being used.{{allowedPropertiesMessage}}{{message}}",restrictedProperty:"'{{propertyName}}' is restricted from being used.{{allowedObjectsMessage}}{{message}}"}},create(t){let e=t.options;if(e.length===0)return{};let r=new Map,s=new Map,n=new Map;e.forEach(a=>{let l=a.object,u=a.property;typeof l>"u"?n.set(u,{allowObjects:a.allowObjects,message:a.message}):typeof u>"u"?s.set(l,{allowProperties:a.allowProperties,message:a.message}):(r.has(l)||r.set(l,new Map),r.get(l).set(u,{message:a.message}))});function i(a,l){return l?l.includes(a):!1}function o(a,l,u){if(u===null)return;let c=r.get(l),p=c?c.get(u):s.get(l),h=n.get(u);if(p&&!i(u,p.allowProperties)){let f=p.message?` ${p.message}`:"",d=p.allowProperties?` Only these properties are allowed: ${p.allowProperties.join(", ")}.`:"";t.report({node:a,messageId:"restrictedObjectProperty",data:{objectName:l,propertyName:u,message:f,allowedPropertiesMessage:d}})}else if(h&&!i(l,h.allowObjects)){let f=h.message?` ${h.message}`:"",d=h.allowObjects?` Property '${u}' is only allowed on these objects: ${h.allowObjects.join(", ")}.`:"";t.report({node:a,messageId:"restrictedProperty",data:{propertyName:u,message:f,allowedObjectsMessage:d}})}}return{MemberExpression(a){o(a,a.object&&a.object.name,XF.getStaticPropertyName(a))},ObjectPattern(a){let l=null;a.parent.type==="VariableDeclarator"?a.parent.init&&a.parent.init.type==="Identifier"&&(l=a.parent.init.name):(a.parent.type==="AssignmentExpression"||a.parent.type==="AssignmentPattern")&&a.parent.right.type==="Identifier"&&(l=a.parent.right.name),a.properties.forEach(u=>{o(a,l,XF.getStaticPropertyName(u))})}}}}});var e_=B((Ese,ZF)=>{"use strict";ZF.exports={meta:{type:"suggestion",docs:{description:"Disallow specified syntax",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-syntax"},schema:{type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{selector:{type:"string"},message:{type:"string"}},required:["selector"],additionalProperties:!1}]},uniqueItems:!0,minItems:0},defaultOptions:[],messages:{restrictedSyntax:"{{message}}"}},create(t){return t.options.reduce((e,r)=>{let s=typeof r=="string",n=!s&&!!r.message,i=s?r:r.selector,o=n?r.message:`Using '${i}' is not allowed.`;return Object.assign(e,{[i](a){t.report({node:a,messageId:"restrictedSyntax",data:{message:o}})}})},{})}}});var r_=B((bse,t_)=>{"use strict";var aG=X(),oG=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;t_.exports={meta:{type:"suggestion",defaultOptions:["except-parens"],docs:{description:"Disallow assignment operators in `return` statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-assign"},schema:[{enum:["except-parens","always"]}],messages:{returnAssignment:"Return statement should not contain assignment.",arrowAssignment:"Arrow function should not return assignment."}},create(t){let e=t.options[0]!=="except-parens",r=t.sourceCode;return{AssignmentExpression(s){if(!e&&aG.isParenthesised(r,s))return;let n=s,i=n.parent;for(;i&&!oG.test(i.type);)n=i,i=i.parent;i&&i.type==="ReturnStatement"?t.report({node:i,messageId:"returnAssignment"}):i&&i.type==="ArrowFunctionExpression"&&i.body===n&&t.report({node:i,messageId:"arrowAssignment"})}}}}});var s_=B((vse,n_)=>{"use strict";var lG=X();n_.exports={meta:{hasSuggestions:!0,type:"suggestion",docs:{description:"Disallow unnecessary `return await`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-return-await"},fixable:null,deprecated:{message:"The original assumption of the rule no longer holds true because of engine optimization.",deprecatedSince:"8.46.0",availableUntil:null,replacedBy:[]},schema:[],messages:{removeAwait:"Remove redundant `await`.",redundantUseOfAwait:"Redundant use of `await` on a return value."}},create(t){function e(n){t.report({node:t.sourceCode.getFirstToken(n),loc:n.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(i){let o=t.sourceCode,[a,l]=o.getFirstTokens(n,2);if(!(a.loc.start.line===l.loc.start.line))return null;let[c,p]=a.range,f=o.text[p]===" "?1:0,d=[c,p+f];return i.removeRange(d)}}]})}function r(n){let i=n;for(;!lG.isFunction(i)&&i.type!=="Program";){if(i.parent.type==="TryStatement"&&(i===i.parent.block||i===i.parent.handler&&i.parent.finalizer))return!0;i=i.parent}return!1}function s(n){return n.parent.type==="ArrowFunctionExpression"?!0:n.parent.type==="ReturnStatement"?!r(n.parent):n.parent.type==="ConditionalExpression"&&(n===n.parent.consequent||n===n.parent.alternate)||n.parent.type==="LogicalExpression"&&n===n.parent.right||n.parent.type==="SequenceExpression"&&n===n.parent.expressions.at(-1)?s(n.parent):!1}return{AwaitExpression(n){s(n)&&!r(n)&&e(n)}}}}});var a_=B((Sse,i_)=>{"use strict";var uG=X();i_.exports={meta:{type:"suggestion",docs:{description:"Disallow `javascript:` URLs",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-script-url"},schema:[],messages:{unexpectedScriptURL:"Script URL is a form of eval."}},create(t){function e(r){let s=uG.getStaticStringValue(r);typeof s=="string"&&s.toLowerCase().indexOf("javascript:")===0&&t.report({node:r,messageId:"unexpectedScriptURL"})}return{Literal(r){r.value&&typeof r.value=="string"&&e(r)},TemplateLiteral(r){r.parent&&r.parent.type==="TaggedTemplateExpression"||e(r)}}}}});var l_=B((Cse,o_)=>{"use strict";var va=X(),cG=/\s+/gu;function Sa(t,e,r,s){if(!(!t||!e))if(t.type==="Identifier"&&e.type==="Identifier"&&t.name===e.name)s(e);else if(t.type==="ArrayPattern"&&e.type==="ArrayExpression"){let n=Math.min(t.elements.length,e.elements.length);for(let i=0;i<n;++i){let o=t.elements[i],a=e.elements[i];if(o&&o.type==="RestElement"&&i<e.elements.length-1||(Sa(o,a,r,s),a&&a.type==="SpreadElement"))break}}else if(t.type==="RestElement"&&e.type==="SpreadElement")Sa(t.argument,e.argument,r,s);else if(t.type==="ObjectPattern"&&e.type==="ObjectExpression"&&e.properties.length>=1){let n=0;for(let i=e.properties.length-1;i>=0;--i){let o=e.properties[i].type;if(o==="SpreadElement"||o==="ExperimentalSpreadProperty"){n=i+1;break}}for(let i=0;i<t.properties.length;++i)for(let o=n;o<e.properties.length;++o)Sa(t.properties[i],e.properties[o],r,s)}else if(t.type==="Property"&&e.type==="Property"&&e.kind==="init"&&!e.method){let n=va.getStaticPropertyName(t);n!==null&&n===va.getStaticPropertyName(e)&&Sa(t.value,e.value,r,s)}else r&&va.skipChainExpression(t).type==="MemberExpression"&&va.skipChainExpression(e).type==="MemberExpression"&&va.isSameReference(t,e)&&s(e)}o_.exports={meta:{type:"problem",defaultOptions:[{props:!0}],docs:{description:"Disallow assignments where both sides are exactly the same",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-self-assign"},schema:[{type:"object",properties:{props:{type:"boolean"}},additionalProperties:!1}],messages:{selfAssignment:"'{{name}}' is assigned to itself."}},create(t){let e=t.sourceCode,[{props:r}]=t.options;function s(n){t.report({node:n,messageId:"selfAssignment",data:{name:e.getText(n).replace(cG,"")}})}return{AssignmentExpression(n){["=","&&=","||=","??="].includes(n.operator)&&Sa(n.left,n.right,r,s)}}}}});var c_=B((wse,u_)=>{"use strict";u_.exports={meta:{type:"problem",docs:{description:"Disallow comparisons where both sides are exactly the same",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-self-compare"},schema:[],messages:{comparingToSelf:"Comparing to itself is potentially pointless."}},create(t){let e=t.sourceCode;function r(s,n){let i=e.getTokens(s),o=e.getTokens(n);return i.length===o.length&&i.every((a,l)=>a.type===o[l].type&&a.value===o[l].value)}return{BinaryExpression(s){new Set(["===","==","!==","!=",">","<",">=","<="]).has(s.operator)&&r(s.left,s.right)&&t.report({node:s,messageId:"comparingToSelf"})}}}}});var f_=B((Ase,p_)=>{"use strict";var Jl=X();p_.exports={meta:{type:"suggestion",docs:{description:"Disallow comma operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sequences"},schema:[{type:"object",properties:{allowInParentheses:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowInParentheses:!0}],messages:{unexpectedCommaExpression:"Unexpected use of comma operator."}},create(t){let[{allowInParentheses:e}]=t.options,r=t.sourceCode,s={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function n(a){return a.parent&&s[a.parent.type]&&a===a.parent[s[a.parent.type]]}function i(a){return Jl.isParenthesised(r,a)}function o(a){let l=r.getTokenBefore(a,1),u=r.getTokenAfter(a,1);return i(a)&&l&&u&&Jl.isOpeningParenToken(l)&&l.range[1]<=a.range[0]&&Jl.isClosingParenToken(u)&&u.range[0]>=a.range[1]}return{SequenceExpression(a){if(a.parent.type==="ForStatement"&&(a===a.parent.init||a===a.parent.update))return;if(e){if(n(a)){if(o(a))return}else if(i(a))return}let l=r.getTokenAfter(a.expressions[0],Jl.isCommaToken);t.report({node:a,loc:l.loc,messageId:"unexpectedCommaExpression"})}}}}});var d_=B((kse,m_)=>{"use strict";var h_=X();function pG(t,e){let r=t.parent;return!!((r.type==="Property"||r.type==="MethodDefinition")&&r.kind==="set"&&r.value===t||r.type==="Property"&&r.value===t&&h_.getStaticPropertyName(r)==="set"&&r.parent.type==="ObjectExpression"&&h_.isPropertyDescriptor(r.parent,e))}m_.exports={meta:{type:"problem",docs:{description:"Disallow returning values from setters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-setter-return"},schema:[],messages:{returnsValue:"Setter cannot return a value."}},create(t){let e=null,r=t.sourceCode;function s(o){e={upper:e,isSetter:pG(o,r)}}function n(){e=e.upper}function i(o){t.report({node:o,messageId:"returnsValue"})}return{FunctionDeclaration:s,FunctionExpression:s,ArrowFunctionExpression(o){s(o),e.isSetter&&o.expression&&i(o.body)},"FunctionDeclaration:exit":n,"FunctionExpression:exit":n,"ArrowFunctionExpression:exit":n,ReturnStatement(o){e&&e.isSetter&&o.argument&&i(o)}}}}});var x_=B((Tse,y_)=>{"use strict";var fG=X(),hG=new Set(["ArrowFunctionExpression","FunctionExpression"]),mG=new Set(["CallExpression"]),dG=/^For(?:In|Of)Statement$/u,gG=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,g_=new Set(["TSInterfaceDeclaration","TSTypeAliasDeclaration"]),yG=new Set(["TSCallSignatureDeclaration","TSFunctionType","TSMethodSignature","TSEmptyBodyFunctionExpression","TSDeclareFunction","TSConstructSignatureDeclaration","TSConstructorType"]);y_.exports={meta:{type:"suggestion",defaultOptions:[{allow:[],builtinGlobals:!1,hoist:"functions",ignoreOnInitialization:!1,ignoreTypeValueShadow:!0,ignoreFunctionTypeParameterNameValueShadow:!0}],docs:{description:"Disallow variable declarations from shadowing variables declared in the outer scope",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-shadow"},schema:[{type:"object",properties:{builtinGlobals:{type:"boolean"},hoist:{enum:["all","functions","never","types","functions-and-types"]},allow:{type:"array",items:{type:"string"}},ignoreOnInitialization:{type:"boolean"},ignoreTypeValueShadow:{type:"boolean"},ignoreFunctionTypeParameterNameValueShadow:{type:"boolean"}},additionalProperties:!1}],messages:{noShadow:"'{{name}}' is already declared in the upper scope on line {{shadowedLine}} column {{shadowedColumn}}.",noShadowGlobal:"'{{name}}' is already a global variable."}},create(t){let[{builtinGlobals:e,hoist:r,allow:s,ignoreOnInitialization:n,ignoreTypeValueShadow:i,ignoreFunctionTypeParameterNameValueShadow:o}]=t.options,a=t.sourceCode;function l(b){return b.block.kind==="global"||!!b.upper&&l(b.upper)}function u(b){return b.name==="this"}function c(b,C){if(i!==!0||!("isValueVariable"in b))return!1;let P=C.defs[0],F=P&&P.parent?.type==="ImportDeclaration"&&(P.parent.importKind==="type"||P.node.type==="ImportSpecifier"&&P.node.importKind==="type"),I=!P||(F?!1:C.isValueVariable);return b.isValueVariable!==I}function p(b){return o!==!0?!1:b.defs.some(C=>yG.has(C.node.type))}function h(b){let P=b.identifiers[0].parent.parent;return P.type!=="TSTypeParameterDeclaration"?!1:P.parent.parent.static}function f(b){return h(b)}function d(b,C){return b&&b.range[0]<=C&&C<=b.range[1]}function g(b,C){let P=b;for(;P&&!C(P);)P=P.parent;return P}function y(b){let C=b.upper;return C&&C.type==="function-expression-name"?C.upper:C}function v(b,C){let P=C.defs[0];if(!P)return!1;let{variableScope:F}=b.scope;if(!(hG.has(F.block.type)&&y(F)===C.scope))return!1;let I=F.block,{parent:U}=I,z=g(U,ue=>mG.has(ue.type));if(!z)return!1;let W=P.name,re=z.range[1];for(;W;){if(W.type==="VariableDeclarator"){if(d(W.init,re)||dG.test(W.parent.parent.type)&&d(W.parent.parent.right,re))return!0;break}else if(W.type==="AssignmentPattern"){if(d(W.right,re))return!0}else if(gG.test(W.type))break;W=W.parent}return!1}function S(b){return s.includes(b.name)}function A(b){let C=b.scope.block;return C.type==="ClassDeclaration"&&C.id===b.identifiers[0]}function E(b){let{parent:C}=b;return C.type==="LogicalExpression"||C.type==="ConditionalExpression"&&C.test!==b?E(C):b}function k(b,C){let P=C.defs[0],F=b.defs[0];if(!P||!F||!(F.type==="FunctionName"&&F.node.type==="FunctionExpression"||F.type==="ClassName"&&F.node.type==="ClassExpression"))return!1;let I=P.name,U;if(I.parent.type==="VariableDeclarator"?U=I.parent.init:I.parent.type==="AssignmentPattern"&&(U=I.parent.right),!U)return!1;let z=F.node;return U.range[0]<=z.range[0]&&z.range[1]<=U.range[1]?U===E(z):!1}function T(b){let C=b.defs[0];return C&&C.name.range}function w(b){let C=b.identifiers[0],P;return C?P={global:!1,line:C.loc.start.line,column:C.loc.start.column+1}:P={global:!0},P}function R(b,C){let P=C.defs[0],F=T(b),I=T(C);return!I||F[1]>=I[0]?!1:r==="types"?!g_.has(P.node.type):r==="functions-and-types"?P.node.type!=="FunctionDeclaration"&&!g_.has(P.node.type):F&&I&&F[1]<I[0]&&(r!=="functions"||!P||P.node.type!=="FunctionDeclaration")}function j(b){let C=t.filename;return!C.endsWith(".d.ts")&&!C.endsWith(".d.cts")&&!C.endsWith(".d.mts")?!1:b.defs.some(P=>P.type==="Variable"&&P.parent.declare||P.type==="ClassName"&&P.node.declare||P.type==="TSEnumName"&&P.node.declare||P.type==="TSModuleName"&&P.node.declare)}function $(b){let C=b.scope.block;return C.type==="TSEnumDeclaration"&&C.id===b.identifiers[0]}function M(b,C,P){let F=P.defs[0];if(!F||!F.parent||!(F.parent.type==="ImportDeclaration"&&(F.parent.importKind==="type"||F.parent.specifiers?.some(re=>re.type==="ImportSpecifier"&&re.importKind==="type"&&re.local.name===P.name))))return!1;let U=g(C.identifiers[0]?.parent,re=>re.type==="TSModuleDeclaration");if(!U)return!1;let z=F.parent.source.value,W=U.id.type==="Literal"?U.id.value:U.id.name;return z===W}function N(b){if(l(b))return;let C=b.variables;for(let P=0;P<C.length;++P){let F=C[P];if(F.identifiers.length===0||A(F)||$(F)||S(F)||j(F)||u(F))continue;let I=fG.getVariableByName(b.upper,F.name);if(I&&(I.identifiers.length>0||e&&"writeable"in I)&&!k(F,I)&&!(n&&v(F,I))&&!(r!=="all"&&R(F,I))&&!c(F,I)&&!p(F)&&!f(F,I)&&!M(b,F,I)){let U=w(I),z=U.global?"noShadowGlobal":"noShadow",W={name:F.name};U.global||(W.shadowedLine=U.line,W.shadowedColumn=U.column),t.report({node:F.identifiers[0],messageId:z,data:W})}}}return{"Program:exit"(b){let P=a.getScope(b).childScopes.slice();for(;P.length;){let F=P.pop();P.push(...F.childScopes),N(F)}}}}}});var b_=B((Dse,E_)=>{"use strict";function xG(t){return t.name==="undefined"&&t.references.every(e=>!e.isWrite())&&t.defs.every(e=>e.node.type==="VariableDeclarator"&&e.node.init===null)}E_.exports={meta:{type:"suggestion",defaultOptions:[{reportGlobalThis:!0}],docs:{description:"Disallow identifiers from shadowing restricted names",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-shadow-restricted-names"},schema:[{type:"object",properties:{reportGlobalThis:{type:"boolean"}},additionalProperties:!1}],messages:{shadowingRestrictedName:"Shadowing of global property '{{name}}'."}},create(t){let[{reportGlobalThis:e}]=t.options,r=new Set(["undefined","NaN","Infinity","arguments","eval"]);e&&r.add("globalThis");let s=t.sourceCode,n=new Set;return{"VariableDeclaration, :function, CatchClause, ImportDeclaration, ClassDeclaration, ClassExpression"(i){for(let o of s.getDeclaredVariables(i))if(o.defs.length>0&&r.has(o.name)&&!xG(o))for(let a of o.defs){let l=a.name;n.has(l)||(n.add(l),t.report({node:l,messageId:"shadowingRestrictedName",data:{name:o.name}}))}}}}}});var S_=B((Ise,v_)=>{"use strict";v_.exports={meta:{type:"layout",docs:{description:"Disallow spacing between function identifiers and their applications (deprecated)",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-spaced-func"},deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2016/08/eslint-v3.3.0-released/#deprecated-rules",deprecatedSince:"3.3.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"function-call-spacing",url:"https://eslint.style/rules/function-call-spacing"}}]},fixable:"whitespace",schema:[],messages:{noSpacedFunction:"Unexpected space between function name and paren."}},create(t){let e=t.sourceCode;function r(s){let n=e.getLastToken(s.callee),i=n,o=e.getTokenAfter(n);for(;o&&o.range[1]<s.range[1]&&o.value!=="(";)i=o,o=e.getTokenAfter(o);o&&o.range[1]<s.range[1]&&e.isSpaceBetween(i,o)&&t.report({node:s,loc:n.loc.start,messageId:"noSpacedFunction",fix(a){return a.removeRange([i.range[1],o.range[0]])}})}return{CallExpression:r,NewExpression:r}}}});var w_=B((Pse,C_)=>{"use strict";var EG=X();C_.exports={meta:{type:"problem",docs:{description:"Disallow sparse arrays",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-sparse-arrays"},schema:[],messages:{unexpectedSparseArray:"Unexpected comma in middle of array."}},create(t){return{ArrayExpression(e){if(!e.elements.includes(null))return;let{sourceCode:r}=t,s;for(let[n,i]of e.elements.entries()){if(n===e.elements.length-1&&i)return;s=r.getTokenAfter(i??s??r.getFirstToken(e),EG.isCommaToken),!i&&t.report({node:e,loc:s.loc,messageId:"unexpectedSparseArray"})}}}}}});var k_=B((Fse,A_)=>{"use strict";A_.exports={meta:{deprecated:{message:"Node.js rules were moved out of ESLint core.",url:"https://eslint.org/docs/latest/use/migrating-to-7.0.0#deprecate-node-rules",deprecatedSince:"7.0.0",availableUntil:"11.0.0",replacedBy:[{message:"eslint-plugin-n now maintains deprecated Node.js-related rules.",plugin:{name:"eslint-plugin-n",url:"https://github.com/eslint-community/eslint-plugin-n"},rule:{name:"no-sync",url:"https://github.com/eslint-community/eslint-plugin-n/tree/master/docs/rules/no-sync.md"}}]},type:"suggestion",docs:{description:"Disallow synchronous methods",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-sync"},schema:[{type:"object",properties:{allowAtRootLevel:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{noSync:"Unexpected sync method: '{{propertyName}}'."}},create(t){return{[t.options[0]&&t.options[0].allowAtRootLevel?":function MemberExpression[property.name=/.*Sync$/]":"MemberExpression[property.name=/.*Sync$/]"](r){t.report({node:r,messageId:"noSync",data:{propertyName:r.property.name}})}}}}});var D_=B((_se,T_)=>{"use strict";var bG=/\t+/gu,vG=/\S/u;T_.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-tabs",url:"https://eslint.style/rules/no-tabs"}}]},type:"layout",docs:{description:"Disallow all tabs",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-tabs"},schema:[{type:"object",properties:{allowIndentationTabs:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{unexpectedTab:"Unexpected tab character."}},create(t){let e=t.sourceCode,r=t.options&&t.options[0]&&t.options[0].allowIndentationTabs;return{Program(s){e.getLines().forEach((n,i)=>{let o;for(;(o=bG.exec(n))!==null;)r&&!vG.test(n.slice(0,o.index))||t.report({node:s,loc:{start:{line:i+1,column:o.index},end:{line:i+1,column:o.index+o[0].length}},messageId:"unexpectedTab"})})}}}}});var P_=B((Bse,I_)=>{"use strict";I_.exports={meta:{type:"problem",docs:{description:"Disallow template literal placeholder syntax in regular strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-template-curly-in-string"},schema:[],messages:{unexpectedTemplateExpression:"Unexpected template string expression."}},create(t){let e=/\$\{[^}]+\}/u;return{Literal(r){typeof r.value=="string"&&e.test(r.value)&&t.report({node:r,messageId:"unexpectedTemplateExpression"})}}}}});var __=B((Ose,F_)=>{"use strict";F_.exports={meta:{type:"suggestion",docs:{description:"Disallow ternary operators",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-ternary"},schema:[],messages:{noTernaryOperator:"Ternary operator used."}},create(t){return{ConditionalExpression(e){t.report({node:e,messageId:"noTernaryOperator"})}}}}});var L_=B((Lse,O_)=>{"use strict";var B_=X();function SG(t){return t.type==="FunctionExpression"&&t.parent.type==="MethodDefinition"&&t.parent.kind==="constructor"}var om=class{superCalled=!1;invalidNodes=[]};O_.exports={meta:{type:"problem",docs:{description:"Disallow `this`/`super` before calling `super()` in constructors",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-this-before-super"},schema:[],messages:{noBeforeSuper:"'{{kind}}' is not allowed before 'super()'."}},create(t){let e=null,r=Object.create(null);function s(u){return!u.reachable||r[u.id]?.superCalled}function n(){return!!(e&&e.isConstructor&&e.hasExtends)}function i(u){for(let c of u)if(!s(c))return!1;return!0}function o(){return n()&&!i(e.currentSegments)}function a(u){let c=e.currentSegments;for(let p of c)p.reachable&&r[p.id].invalidNodes.push(u)}function l(){let u=e.currentSegments;for(let c of u)c.reachable&&(r[c.id].superCalled=!0)}return{onCodePathStart(u,c){if(SG(c)){let p=c.parent.parent.parent;e={upper:e,isConstructor:!0,hasExtends:!!(p.superClass&&!B_.isNullOrUndefined(p.superClass)),codePath:u,currentSegments:new Set}}else e={upper:e,isConstructor:!1,hasExtends:!1,codePath:u,currentSegments:new Set}},onCodePathEnd(u){let c=e.hasExtends;if(e=e.upper,!c)return;let p=new Set;u.traverseSegments((h,f)=>{let d=r[h.id],g=d.invalidNodes.filter(y=>!p.has(y));for(let y of g)p.add(y),t.report({messageId:"noBeforeSuper",node:y,data:{kind:y.type==="Super"?"super":"this"}});d.superCalled&&f.skip()})},onCodePathSegmentStart(u){e.currentSegments.add(u),n()&&(r[u.id]={superCalled:u.prevSegments.length>0&&u.prevSegments.every(s),invalidNodes:[]})},onUnreachableCodePathSegmentStart(u){e.currentSegments.add(u)},onUnreachableCodePathSegmentEnd(u){e.currentSegments.delete(u)},onCodePathSegmentEnd(u){e.currentSegments.delete(u)},onCodePathSegmentLoop(u,c){n()&&e.codePath.traverseSegments({first:c,last:u},(p,h)=>{let f=r[p.id]??new om;f.superCalled?h.skip():p.prevSegments.length>0&&p.prevSegments.every(s)&&(f.superCalled=!0),r[p.id]=f})},ThisExpression(u){o()&&a(u)},Super(u){!B_.isCallee(u)&&o()&&a(u)},"CallExpression:exit"(u){u.callee.type==="Super"&&o()&&l()},"Program:exit"(){r=Object.create(null)}}}}});var R_=B((Nse,N_)=>{"use strict";var CG=X();N_.exports={meta:{type:"suggestion",docs:{description:"Disallow throwing literals as exceptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-throw-literal"},schema:[],messages:{object:"Expected an error object to be thrown.",undef:"Do not throw undefined."}},create(t){let e=t.sourceCode;return{ThrowStatement(r){CG.couldBeError(r.argument)?r.argument.type==="Identifier"&&r.argument.name==="undefined"&&e.isGlobalReference(r.argument)&&t.report({node:r,messageId:"undef"}):t.report({node:r,messageId:"object"})}}}}});var M_=B((Rse,j_)=>{"use strict";var wG=X();j_.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-trailing-spaces",url:"https://eslint.style/rules/no-trailing-spaces"}}]},type:"layout",docs:{description:"Disallow trailing whitespace at the end of lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-trailing-spaces"},fixable:"whitespace",schema:[{type:"object",properties:{skipBlankLines:{type:"boolean",default:!1},ignoreComments:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{trailingSpace:"Trailing spaces not allowed."}},create(t){let e=t.sourceCode,r="[ \xA0\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200A\u200B\u3000]",s=`^${r}*$`,n=`${r}+$`,i=t.options[0]||{},o=i.skipBlankLines||!1,a=i.ignoreComments||!1;function l(c,p,h){t.report({node:c,loc:p,messageId:"trailingSpace",fix(f){return f.removeRange(h)}})}function u(c){let p=new Set;return c.forEach(h=>{let f=h.type==="Block"?h.loc.end.line-1:h.loc.end.line;for(let d=h.loc.start.line;d<=f;d++)p.add(d)}),p}return{Program:function(p){let h=new RegExp(n,"u"),f=new RegExp(s,"u"),d=e.lines,g=e.getText().match(wG.createGlobalLinebreakMatcher()),y=e.getAllComments(),v=u(y),S=0;for(let A=0,E=d.length;A<E;A++){let k=A+1,T=g&&g[A]?g[A].length:1,w=d[A].length+T,R=h.exec(d[A]);if(R){let j={start:{line:k,column:R.index},end:{line:k,column:w-T}},$=S+j.start.column,M=S+j.end.column,N=e.getNodeByRangeIndex($);if(N&&N.type==="TemplateElement"&&$>N.parent.range[0]&&M<N.parent.range[1]){S+=w;continue}if(o&&f.test(d[A])){S+=w;continue}let b=[$,M];(!a||!v.has(k))&&l(p,j,b)}S+=w}}}}}});var U_=B((jse,q_)=>{"use strict";q_.exports={meta:{type:"problem",docs:{description:"Disallow `let` or `var` variables that are read but never assigned",dialects:["JavaScript","TypeScript"],recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unassigned-vars"},schema:[],messages:{unassigned:"'{{name}}' is always 'undefined' because it's never assigned."}},create(t){let e=t.sourceCode,r=!1;return{"TSModuleDeclaration[declare=true]"(){r=!0},"TSModuleDeclaration[declare=true]:exit"(){r=!1},VariableDeclarator(s){let n=s.parent;if(s.init||s.id.type!=="Identifier"||n.kind==="const"||n.declare||r)return;let[o]=e.getDeclaredVariables(s);if(!o)return;let a=!1;for(let l of o.references){if(l.isWrite())return;l.isRead()&&(a=!0)}a&&t.report({node:s,messageId:"unassigned",data:{name:s.id.name}})}}}}});var V_=B((Mse,$_)=>{"use strict";function AG(t){let e=t.parent;return e.type==="UnaryExpression"&&e.operator==="typeof"}$_.exports={meta:{type:"problem",defaultOptions:[{typeof:!1}],docs:{description:"Disallow the use of undeclared variables unless mentioned in `/*global */` comments",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-undef"},schema:[{type:"object",properties:{typeof:{type:"boolean"}},additionalProperties:!1}],messages:{undef:"'{{name}}' is not defined."}},create(t){let[{typeof:e}]=t.options,r=t.sourceCode;return{"Program:exit"(s){r.getScope(s).through.forEach(i=>{let o=i.identifier;!e&&AG(o)||t.report({node:o,messageId:"undef",data:o})})}}}}});var z_=B((qse,W_)=>{"use strict";var kG=X(),TG=new Set(["const","using","await using"]);W_.exports={meta:{type:"suggestion",docs:{description:"Disallow initializing variables to `undefined`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-undef-init"},schema:[],fixable:"code",messages:{unnecessaryUndefinedInit:"It's not necessary to initialize '{{name}}' to undefined."}},create(t){let e=t.sourceCode;return{VariableDeclarator(r){let s=e.getText(r.id),n=r.init&&r.init.name,i=e.getScope(r),o=kG.getVariableByName(i,"undefined"),a=o&&o.defs.length>0,l=e.getLastToken(r);n==="undefined"&&!TG.has(r.parent.kind)&&!a&&t.report({node:r,messageId:"unnecessaryUndefinedInit",data:{name:s},fix(u){return r.parent.kind==="var"||r.id.type==="ArrayPattern"||r.id.type==="ObjectPattern"||e.commentsExistBetween(r.id,l)?null:u.removeRange([r.id.range[1],r.range[1]])}})}}}}});var K_=B((Use,G_)=>{"use strict";G_.exports={meta:{type:"suggestion",docs:{description:"Disallow the use of `undefined` as an identifier",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-undefined"},schema:[],messages:{unexpectedUndefined:"Unexpected use of undefined."}},create(t){let e=t.sourceCode;function r(n){t.report({node:n,messageId:"unexpectedUndefined"})}function s(n){let i=n.set.get("undefined");if(!i)return;let o=i.references,a=i.defs;o.filter(l=>!l.init).forEach(l=>r(l.identifier)),a.forEach(l=>r(l.name))}return{"Program:exit"(n){let o=[e.getScope(n)];for(;o.length;){let a=o.pop();o.push(...a.childScopes),s(a)}}}}}});var J_=B(($se,H_)=>{"use strict";H_.exports={meta:{type:"suggestion",defaultOptions:[{allow:[],allowAfterSuper:!1,allowAfterThis:!1,allowAfterThisConstructor:!1,allowFunctionParams:!0,allowInArrayDestructuring:!0,allowInObjectDestructuring:!0,enforceInClassFields:!1,enforceInMethodNames:!1}],docs:{description:"Disallow dangling underscores in identifiers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-underscore-dangle"},schema:[{type:"object",properties:{allow:{type:"array",items:{type:"string"}},allowAfterThis:{type:"boolean"},allowAfterSuper:{type:"boolean"},allowAfterThisConstructor:{type:"boolean"},enforceInMethodNames:{type:"boolean"},allowFunctionParams:{type:"boolean"},enforceInClassFields:{type:"boolean"},allowInArrayDestructuring:{type:"boolean"},allowInObjectDestructuring:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedUnderscore:"Unexpected dangling '_' in '{{identifier}}'."}},create(t){let[{allow:e,allowAfterSuper:r,allowAfterThis:s,allowAfterThisConstructor:n,allowFunctionParams:i,allowInArrayDestructuring:o,allowInObjectDestructuring:a,enforceInClassFields:l,enforceInMethodNames:u}]=t.options,c=t.sourceCode;function p(T){return e.includes(T)}function h(T){let w=T.length;return T!=="_"&&(T[0]==="_"||T[w-1]==="_")}function f(T){return T==="__proto__"}function d(T){return T==="_"}function g(T){return T.object.type==="MemberExpression"&&T.object.property.name==="constructor"&&T.object.object.type==="ThisExpression"}function y(T){i||T.params.forEach(w=>{let{type:R}=w,j;if(R==="RestElement"?j=w.argument:R==="AssignmentPattern"?j=w.left:j=w,j.type==="Identifier"){let $=j.name;h($)&&!p($)&&t.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:$}})}})}function v(T){if(T.type==="FunctionDeclaration"&&T.id){let w=T.id.name;typeof w<"u"&&h(w)&&!p(w)&&t.report({node:T,messageId:"unexpectedUnderscore",data:{identifier:w}})}y(T)}function S(T){c.getDeclaredVariables(T).forEach(w=>{let j=w.defs.find(N=>N.node===T).name,$=j.name,M=j.parent;for(;!["VariableDeclarator","ArrayPattern","ObjectPattern"].includes(M.type);)M=M.parent;h($)&&!d($)&&!p($)&&!(o&&M.type==="ArrayPattern")&&!(a&&M.type==="ObjectPattern")&&t.report({node:T,messageId:"unexpectedUnderscore",data:{identifier:$}})})}function A(T){let w=T.property.name,R=T.object.type==="ThisExpression",j=T.object.type==="Super",$=g(T);typeof w<"u"&&h(w)&&!(R&&s)&&!(j&&r)&&!($&&n)&&!f(w)&&!p(w)&&t.report({node:T,messageId:"unexpectedUnderscore",data:{identifier:w}})}function E(T){let w=T.key.name,R=T.type==="MethodDefinition"||T.type==="Property"&&T.method;typeof w<"u"&&u&&R&&h(w)&&!p(w)&&t.report({node:T,messageId:"unexpectedUnderscore",data:{identifier:T.key.type==="PrivateIdentifier"?`#${w}`:w}})}function k(T){let w=T.key.name;typeof w<"u"&&h(w)&&l&&!p(w)&&t.report({node:T,messageId:"unexpectedUnderscore",data:{identifier:T.key.type==="PrivateIdentifier"?`#${w}`:w}})}return{FunctionDeclaration:v,VariableDeclarator:S,MemberExpression:A,MethodDefinition:E,PropertyDefinition:k,Property:E,FunctionExpression:v,ArrowFunctionExpression:v}}}});var Q_=B((Vse,X_)=>{"use strict";var DG=X();X_.exports={meta:{type:"problem",docs:{description:"Disallow confusing multiline expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unexpected-multiline"},schema:[],messages:{function:"Unexpected newline between function and ( of function call.",property:"Unexpected newline between object and [ of property access.",taggedTemplate:"Unexpected newline between template tag and template literal.",division:"Unexpected newline between numerator and division operator."}},create(t){let e=/^[dgimsuvy]+$/u,r=t.sourceCode;function s(n,i){let o=r.getTokenAfter(n,DG.isNotClosingParenToken),a=r.getTokenBefore(o);o.loc.start.line!==a.loc.end.line&&t.report({node:n,loc:o.loc,messageId:i})}return{MemberExpression(n){!n.computed||n.optional||s(n.object,"property")},TaggedTemplateExpression(n){let{quasi:i}=n;r.getTokenBefore(i).loc.end.line!==i.loc.start.line&&t.report({node:n,loc:{start:i.loc.start,end:{line:i.loc.start.line,column:i.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(n){n.arguments.length===0||n.optional||s(n.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(n){let i=r.getTokenAfter(n,a=>a.value==="/"),o=r.getTokenAfter(i);o.type==="Identifier"&&e.test(o.value)&&i.range[1]===o.range[0]&&s(n.left,"division")}}}}});var Z_=B((Wse,Y_)=>{"use strict";var IG=Ja(),PG=X(),FG=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,_G=/^(?:DoWhile|For|While)Statement$/u,BG=/^(?:ArrowFunction|Class|Function)Expression$/u,OG=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function LG(t){if(t.init){let e=t.resolved&&t.resolved.defs[0];if(!e||e.type!=="Variable"||e.parent.kind!=="var")return!1}return t.isWrite()}function NG(t){return!t.modified}function RG(t){return!(t.modified||t.group)}function Xl(t,e){let r=t.range,s=e.identifier.range;return r[0]<=s[0]&&s[1]<=r[1]}var jG={WhileStatement:Xl,DoWhileStatement:Xl,ForStatement(t,e){return Xl(t,e)&&!(t.init&&Xl(t.init,e))}};function MG(t){let e=t.identifier;for(;e;){if(e.type==="FunctionDeclaration")return e.id?e:null;e=e.parent}return null}function qG(t,e){if(t.isInLoop(e))return!0;let r=MG(e);if(!r)return!1;let s=PG.getVariableByName(e.from.upper,r.id.name);return!!(s&&s.references.some(t.isInLoop))}function UG(t,e){for(let r=0;r<t.length;++r){let s=t[r];for(let n=0;!s.modified&&n<e.length;++n){let i=e[n];s.modified=qG(s,i)}}}Y_.exports={meta:{type:"problem",docs:{description:"Disallow unmodified loop conditions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unmodified-loop-condition"},schema:[{type:"object",properties:{checkConditionalExpressions:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{checkConditionalExpressions:!1}],messages:{loopConditionNotModified:"'{{name}}' is not modified in this loop."}},create(t){let[{checkConditionalExpressions:e}]=t.options,r=t.sourceCode,s=null;function n(c){let p=c.reference.identifier;t.report({node:p,messageId:"loopConditionNotModified",data:p})}function i(c){for(let p=0;p<c.length;++p){let h=c[p];if(h.group){let f=s.get(h.group);f||(f=[],s.set(h.group,f)),f.push(h)}}}function o(c){c.every(NG)&&c.forEach(n)}function a(c){let p=!1;return IG.traverse(c,{visitorKeys:r.visitorKeys,enter(h){OG.test(h.type)?(p=!0,this.break()):BG.test(h.type)&&this.skip()}}),p}function l(c){if(c.init)return null;let p=null,h=c.identifier,f=h.parent;for(;f;){if(FG.test(f.type)){if(_G.test(f.type)&&f.test===h)return{reference:c,group:p,isInLoop:jG[f.type].bind(null,f),modified:!1};break}if(f.type==="BinaryExpression"||!e&&f.type==="ConditionalExpression"){if(a(f))break;p=f}h=f,f=f.parent}return null}function u(c){let p=c.references.map(l).filter(Boolean);if(p.length===0)return;i(p);let h=c.references.filter(LG);h.length>0&&UG(p,h),p.filter(RG).forEach(n)}return{"Program:exit"(c){let p=[r.getScope(c)];s=new Map;let h;for(;h=p.pop();)p.push(...h.childScopes),h.variables.forEach(u);s.forEach(o),s=null}}}}});var r2=B((zse,t2)=>{"use strict";var ir=X(),$G=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),e2={"==":"!=","!=":"==","===":"!==","!==":"==="},VG=ir.getPrecedence({type:"LogicalExpression",operator:"||"});t2.exports={meta:{type:"suggestion",defaultOptions:[{defaultAssignment:!0}],docs:{description:"Disallow ternary operators when simpler alternatives exist",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-unneeded-ternary"},schema:[{type:"object",properties:{defaultAssignment:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unnecessaryConditionalExpression:"Unnecessary use of boolean literals in conditional expression.",unnecessaryConditionalAssignment:"Unnecessary use of conditional expression for default assignment."}},create(t){let[{defaultAssignment:e}]=t.options,r=t.sourceCode;function s(a){return a.type==="Literal"&&typeof a.value=="boolean"}function n(a){if(a.type==="BinaryExpression"&&Object.hasOwn(e2,a.operator)){let l=r.getFirstTokenBetween(a.left,a.right,d=>d.value===a.operator),u=r.getFirstToken(a),c=r.getLastToken(a),p=r.getTokenBefore(u),h=r.getTokenAfter(c);for(;p&&ir.isOpeningParenToken(p)&&h&&ir.isClosingParenToken(h);)u=p,c=h,p=r.getTokenBefore(u),h=r.getTokenAfter(c);let f=r.getText();return f.slice(u.range[0],l.range[0])+e2[a.operator]+f.slice(l.range[1],c.range[1])}return ir.getPrecedence(a)<ir.getPrecedence({type:"UnaryExpression"})?`!(${ir.getParenthesisedText(r,a)})`:`!${ir.getParenthesisedText(r,a)}`}function i(a){return a.type==="BinaryExpression"&&$G.has(a.operator)||a.type==="UnaryExpression"&&a.operator==="!"}function o(a){return a.test.type==="Identifier"&&a.consequent.type==="Identifier"&&a.test.name===a.consequent.name}return{ConditionalExpression(a){s(a.alternate)&&s(a.consequent)?t.report({node:a,messageId:"unnecessaryConditionalExpression",fix(l){if(a.consequent.value===a.alternate.value){if(a.test.type!=="Identifier")return null;let u=a.consequent.value.toString(),c=r.getTokenBefore(a),p=c&&c.range[1]===a.range[0]&&!ir.canTokensBeAdjacent(c,u)?" ":"";return l.replaceText(a,p+u)}return a.alternate.value?l.replaceText(a,n(a.test)):l.replaceText(a,i(a.test)?ir.getParenthesisedText(r,a.test):`!${n(a.test)}`)}}):!e&&o(a)&&t.report({node:a,messageId:"unnecessaryConditionalAssignment",fix(l){let c=(ir.getPrecedence(a.alternate)<VG||ir.isCoalesceExpression(a.alternate))&&!ir.isParenthesised(r,a.alternate)?`(${r.getText(a.alternate)})`:ir.getParenthesisedText(r,a.alternate),p=ir.getParenthesisedText(r,a.test);return l.replaceText(a,`${p} || ${c}`)}})}}}}});var s2=B((Gse,n2)=>{"use strict";var{isAnySegmentReachable:WG}=kn();function zG(t){return!!t.init}var lm=class{constructor(e){this.sourceCode=e,this.startNode=null,this.endNode=null}get location(){return{start:this.startNode.loc.start,end:this.endNode.loc.end}}get isEmpty(){return!(this.startNode&&this.endNode)}contains(e){return e.range[0]>=this.startNode.range[0]&&e.range[1]<=this.endNode.range[1]}isConsecutive(e){return this.contains(this.sourceCode.getTokenBefore(e))}merge(e){this.endNode=e}reset(e){this.startNode=this.endNode=e}};n2.exports={meta:{type:"problem",docs:{description:"Disallow unreachable code after `return`, `throw`, `continue`, and `break` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unreachable"},schema:[],messages:{unreachableCode:"Unreachable code."}},create(t){let e=null,r=new lm(t.sourceCode),s=[],n=new Set;function i(o){let a=null;if(o&&(o.type==="PropertyDefinition"||!WG(n))){if(r.isEmpty){r.reset(o);return}if(r.contains(o))return;if(r.isConsecutive(o)){r.merge(o);return}a=o}r.isEmpty||t.report({messageId:"unreachableCode",loc:r.location,node:r.startNode}),r.reset(a)}return{onCodePathStart(){s.push(n),n=new Set},onCodePathEnd(){n=s.pop()},onUnreachableCodePathSegmentStart(o){n.add(o)},onUnreachableCodePathSegmentEnd(o){n.delete(o)},onCodePathSegmentEnd(o){n.delete(o)},onCodePathSegmentStart(o){n.add(o)},BlockStatement:i,BreakStatement:i,ClassDeclaration:i,ContinueStatement:i,DebuggerStatement:i,DoWhileStatement:i,ExpressionStatement:i,ForInStatement:i,ForOfStatement:i,ForStatement:i,IfStatement:i,LabeledStatement:i,ReturnStatement:i,SwitchStatement:i,ThrowStatement:i,TryStatement:i,VariableDeclaration(o){(o.kind!=="var"||o.declarations.some(zG))&&i(o)},WhileStatement:i,WithStatement:i,ExportNamedDeclaration:i,ExportDefaultDeclaration:i,ExportAllDeclaration:i,"Program:exit"(){i()},"MethodDefinition[kind='constructor']"(){e={upper:e,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(o){let{hasSuperCall:a}=e;if(e=e.upper,!o.value.body)return;let l=o.parent.parent;if(l.superClass&&!a)for(let u of l.body.body)u.type==="PropertyDefinition"&&!u.static&&i(u)},"CallExpression > Super.callee"(){e&&(e.hasSuperCall=!0)}}}}});var o2=B((Kse,a2)=>{"use strict";var{isAnySegmentReachable:GG}=kn(),i2=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];function KG(t){let e=t.parent;if(e)switch(e.type){case"WhileStatement":return t===e.test;case"DoWhileStatement":return t===e.body;case"ForStatement":return t===(e.update||e.test||e.body);case"ForInStatement":case"ForOfStatement":return t===e.left}return!1}function HG(t,e){return t.filter(r=>!e.includes(r))}a2.exports={meta:{type:"problem",defaultOptions:[{ignore:[]}],docs:{description:"Disallow loops with a body that allows only one iteration",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unreachable-loop"},schema:[{type:"object",properties:{ignore:{type:"array",items:{enum:i2},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(t){let[{ignore:e}]=t.options,s=HG(i2,e).join(",");if(!s)return{};let n=new Map,i=new Set,o=[],a=new Set;return{onCodePathStart(){o.push(a),a=new Set},onCodePathEnd(){a=o.pop()},onUnreachableCodePathSegmentStart(l){a.add(l)},onUnreachableCodePathSegmentEnd(l){a.delete(l)},onCodePathSegmentEnd(l){a.delete(l)},onCodePathSegmentStart(l,u){if(a.add(l),KG(u)){let c=u.parent;n.set(l,c)}},onCodePathSegmentLoop(l,u,c){let p=n.get(u);(c===p||c.type==="ContinueStatement")&&i.delete(p)},[s](l){GG(a)&&i.add(l)},"Program:exit"(){i.forEach(l=>t.report({node:l,messageId:"invalid"}))}}}}});var u2=B((Hse,l2)=>{"use strict";var JG=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,XG=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,QG=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;l2.exports={meta:{type:"problem",docs:{description:"Disallow control flow statements in `finally` blocks",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-finally"},schema:[],messages:{unsafeUsage:"Unsafe usage of {{nodeType}}."}},create(t){function e(n){return n.parent.type==="TryStatement"&&n.parent.finalizer===n}function r(n,i){let o=!1,a;n.type==="BreakStatement"&&!n.label?a=XG:n.type==="ContinueStatement"&&!n.label?a=QG:a=JG;for(let l=n;l&&!a.test(l.type);l=l.parent)if(l.parent.label&&i&&l.parent.label.name===i.name&&(o=!0),e(l))return!(i&&o);return!1}function s(n){r(n,n.label)&&t.report({messageId:"unsafeUsage",data:{nodeType:n.type},node:n,line:n.loc.line,column:n.loc.column})}return{ReturnStatement:s,ThrowStatement:s,BreakStatement:s,ContinueStatement:s}}}});var p2=B((Jse,c2)=>{"use strict";var YG=X();function ZG(t){return t==="in"||t==="instanceof"}function eK(t){return t==="<"||t===">"||t===">="||t==="<="}function tK(t){return t.type==="UnaryExpression"&&t.operator==="!"}c2.exports={meta:{type:"problem",defaultOptions:[{enforceForOrderingRelations:!1}],docs:{description:"Disallow negating the left operand of relational operators",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-negation"},hasSuggestions:!0,schema:[{type:"object",properties:{enforceForOrderingRelations:{type:"boolean"}},additionalProperties:!1}],fixable:null,messages:{unexpected:"Unexpected negating the left operand of '{{operator}}' operator.",suggestNegatedExpression:"Negate '{{operator}}' expression instead of its left operand. This changes the current behavior.",suggestParenthesisedNegation:"Wrap negation in '()' to make the intention explicit. This preserves the current behavior."}},create(t){let e=t.sourceCode,[{enforceForOrderingRelations:r}]=t.options;return{BinaryExpression(s){let n=s.operator,i=r&&eK(n);(ZG(n)||i)&&tK(s.left)&&!YG.isParenthesised(e,s.left)&&t.report({node:s,loc:s.left.loc,messageId:"unexpected",data:{operator:n},suggest:[{messageId:"suggestNegatedExpression",data:{operator:n},fix(o){let l=[e.getFirstToken(s.left).range[1],s.range[1]],u=e.text.slice(l[0],l[1]);return o.replaceTextRange(l,`(${u})`)}},{messageId:"suggestParenthesisedNegation",fix(o){return o.replaceText(s.left,`(${e.getText(s.left)})`)}}]})}}}}});var d2=B((Xse,m2)=>{"use strict";var f2=new Set(["+","-","/","*","%","**"]),rK=new Set(["+=","-=","/=","*=","%=","**="]),nK=new Set(["in","instanceof"]);function h2(t){return t.type==="ObjectPattern"||t.type==="ArrayPattern"}m2.exports={meta:{type:"problem",defaultOptions:[{disallowArithmeticOperators:!1}],docs:{description:"Disallow use of optional chaining in contexts where the `undefined` value is not allowed",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unsafe-optional-chaining"},schema:[{type:"object",properties:{disallowArithmeticOperators:{type:"boolean"}},additionalProperties:!1}],fixable:null,messages:{unsafeOptionalChain:"Unsafe usage of optional chaining. If it short-circuits with 'undefined' the evaluation will throw TypeError.",unsafeArithmetic:"Unsafe arithmetic operation on optional chaining. It can result in NaN."}},create(t){let[{disallowArithmeticOperators:e}]=t.options;function r(a){t.report({messageId:"unsafeOptionalChain",node:a})}function s(a){t.report({messageId:"unsafeArithmetic",node:a})}function n(a,l){if(a)switch(a.type){case"LogicalExpression":a.operator==="||"||a.operator==="??"?n(a.right,l):a.operator==="&&"&&(n(a.left,l),n(a.right,l));break;case"SequenceExpression":n(a.expressions.at(-1),l);break;case"ConditionalExpression":n(a.consequent,l),n(a.alternate,l);break;case"AwaitExpression":n(a.argument,l);break;case"ChainExpression":l(a);break;default:break}}function i(a){n(a,r)}function o(a){n(a,s)}return{"AssignmentExpression, AssignmentPattern"(a){h2(a.left)&&i(a.right)},"ClassDeclaration, ClassExpression"(a){i(a.superClass)},CallExpression(a){a.optional||i(a.callee)},NewExpression(a){i(a.callee)},VariableDeclarator(a){h2(a.id)&&i(a.init)},MemberExpression(a){a.optional||i(a.object)},TaggedTemplateExpression(a){i(a.tag)},ForOfStatement(a){i(a.right)},SpreadElement(a){a.parent&&a.parent.type!=="ObjectExpression"&&i(a.argument)},YieldExpression(a){a.delegate&&i(a.argument)},BinaryExpression(a){nK.has(a.operator)&&i(a.right),e&&f2.has(a.operator)&&(o(a.right),o(a.left))},WithStatement(a){i(a.object)},UnaryExpression(a){e&&f2.has(a.operator)&&o(a.argument)},AssignmentExpression(a){e&&rK.has(a.operator)&&o(a.right)}}}}});var x2=B((Qse,y2)=>{"use strict";var g2=X();function dr(){return!0}function sK(){return!1}y2.exports={meta:{type:"suggestion",docs:{description:"Disallow unused expressions",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unused-expressions"},schema:[{type:"object",properties:{allowShortCircuit:{type:"boolean"},allowTernary:{type:"boolean"},allowTaggedTemplates:{type:"boolean"},enforceForJSX:{type:"boolean"},ignoreDirectives:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{allowShortCircuit:!1,allowTernary:!1,allowTaggedTemplates:!1,enforceForJSX:!1,ignoreDirectives:!1}],messages:{unusedExpression:"Expected an assignment or function call and instead saw an expression."}},create(t){let[{allowShortCircuit:e,allowTernary:r,allowTaggedTemplates:s,enforceForJSX:n,ignoreDirectives:i}]=t.options;function o(p){return p.type==="ExpressionStatement"&&p.expression.type==="Literal"&&typeof p.expression.value=="string"}function a(p,h){for(let f=0;f<h.length;++f)if(!p(h[f]))return h.slice(0,f);return h.slice()}function l(p){return a(o,p.body)}function u(p){return g2.isTopLevelExpressionStatement(p)&&l(p.parent).includes(p)}let c=Object.assign(Object.create(null),{isDisallowed(p){return(c[p.type]||sK)(p)},ArrayExpression:dr,ArrowFunctionExpression:dr,BinaryExpression:dr,ChainExpression(p){return c.isDisallowed(p.expression)},ClassExpression:dr,ConditionalExpression(p){return r?c.isDisallowed(p.consequent)||c.isDisallowed(p.alternate):!0},FunctionExpression:dr,Identifier:dr,JSXElement(){return n},JSXFragment(){return n},Literal:dr,LogicalExpression(p){return e?c.isDisallowed(p.right):!0},MemberExpression:dr,MetaProperty:dr,ObjectExpression:dr,SequenceExpression:dr,TaggedTemplateExpression(){return!s},TemplateLiteral:dr,ThisExpression:dr,UnaryExpression(p){return p.operator!=="void"&&p.operator!=="delete"},TSAsExpression(p){return c.isDisallowed(p.expression)},TSTypeAssertion(p){return c.isDisallowed(p.expression)},TSNonNullExpression(p){return c.isDisallowed(p.expression)},TSInstantiationExpression(p){return c.isDisallowed(p.expression)}});return{ExpressionStatement(p){c.isDisallowed(p.expression)&&!g2.isDirective(p)&&!(i&&u(p))&&t.report({node:p,messageId:"unusedExpression"})}}}}});var v2=B((Yse,b2)=>{"use strict";var E2=X();b2.exports={meta:{type:"suggestion",docs:{description:"Disallow unused labels",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-labels"},schema:[],fixable:"code",messages:{unused:"'{{name}}:' is defined but never used."}},create(t){let e=t.sourceCode,r=null;function s(a){r={label:a.label.name,used:!1,upper:r}}function n(a){if(e.getTokenAfter(a.label,{includeComments:!0})!==e.getTokenBefore(a.body,{includeComments:!0}))return!1;let l=a.parent;for(;l.type==="LabeledStatement";)l=l.parent;if(l.type==="Program"||l.type==="BlockStatement"&&E2.isFunction(l.parent)){let{body:f}=a;if(f.type==="ExpressionStatement"&&(f.expression.type==="Literal"&&typeof f.expression.value=="string"||E2.isStaticTemplateLiteral(f.expression)))return!1}let u=/^[:;{]$/u,c=/^[([\-+/`]/u,p=e.getTokenBefore(a),h=e.getFirstToken(a.body);return!(p&&!u.test(p.value)&&c.test(h.value))}function i(a){r.used||t.report({node:a.label,messageId:"unused",data:a.label,fix:n(a)?l=>l.removeRange([a.range[0],a.body.range[0]]):null}),r=r.upper}function o(a){if(!a.label)return;let l=a.label.name,u=r;for(;u;){if(u.label===l){u.used=!0;break}u=u.upper}}return{LabeledStatement:s,"LabeledStatement:exit":i,BreakStatement:o,ContinueStatement:o}}}});var w2=B((Zse,C2)=>{"use strict";var S2=X();C2.exports={meta:{type:"problem",hasSuggestions:!0,docs:{description:"Disallow unused private class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-private-class-members"},schema:[],messages:{unusedPrivateClassMember:"'{{classMemberName}}' is defined but never used.",removeUnusedPrivateClassMember:"Remove unused private class member '{{classMemberName}}'."}},create(t){let e=t.sourceCode,r=[];function s(p){return p.range[0]-p.loc.start.column}function n(p){return e.getTokenBefore(p,{includeComments:!0}).loc.end.line!==p.loc.start.line}function i(p){let h=e.getCommentsBefore(p),f=h.findLastIndex((d,g,y)=>{let v=g<y.length-1?y[g+1]:p;return!n(d)||v.loc.start.line-d.loc.end.line>1});return h.slice(f+1)}function o(p){let h=e.getTokenBefore(p),f=e.getTokenAfter(p);return h.loc.end.line===p.loc.start.line||f.loc.start.line===p.loc.end.line}function a(p){return o(p)?[]:e.getCommentsAfter(p).filter(h=>h.loc.start.line===p.loc.end.line)}function l(p){let h=e.getTokenAfter(p);return S2.canContinueExpressionInClassBody(h)&&S2.needsPrecedingSemicolon(e,p)?e.getTokenBefore(p):null}function u(p){let h=i(p),f=a(p),d=h.length>0&&!o(p),g=f.length>0?f.at(-1):p,y=e.getTokenBefore(p),v=e.getTokenAfter(g,{includeComments:!0}),S=v.loc.start.line>g.loc.end.line,A=!d&&n(p)&&S,E=p.range[0],k=g.range[1];return d?(E=S?s(h[0]):h[0].range[0],k=S?s(v):v.range[0]):A?(E=s(p),k=s(v)):y.loc.end.line===p.loc.start.line?E=y.range[1]:v.loc.start.line===g.loc.end.line&&(k=v.range[0]),[E,k]}function c(p){let h=p.parent.parent,f=h.type==="AssignmentExpression";return!f&&h.type!=="ForInStatement"&&h.type!=="ForOfStatement"&&h.type!=="AssignmentPattern"||h.left!==p.parent?!1:f&&h.operator!=="="?h.parent.type==="ExpressionStatement":!0}return{ClassBody(p){let h=new Map;r.unshift(h);for(let f of p.body)(f.type==="PropertyDefinition"||f.type==="MethodDefinition")&&f.key.type==="PrivateIdentifier"&&h.set(f.key.name,{declaredNode:f,hasReference:!1,isAccessor:f.type==="MethodDefinition"&&(f.kind==="set"||f.kind==="get")})},PrivateIdentifier(p){let h=r.find(y=>y.has(p.name));if(!h)return;let f=h.get(p.name);if(f.isUsed||p.parent.type==="PropertyDefinition"||p.parent.type==="MethodDefinition")return;if(f.hasReference=!0,f.isAccessor){f.isUsed=!0;return}if(c(p))return;let d=p.parent.parent.type,g=p.parent.parent.parent.type;d==="UpdateExpression"&&g==="ExpressionStatement"||d==="Property"&&g==="ObjectPattern"&&p.parent.parent.value===p.parent||d!=="RestElement"&&d!=="ArrayPattern"&&(f.isUsed=!0)},"ClassBody:exit"(){let p=r.shift();for(let[h,{declaredNode:f,hasReference:d,isUsed:g}]of p.entries())g||t.report({node:f,loc:f.key.loc,messageId:"unusedPrivateClassMember",data:{classMemberName:`#${h}`},suggest:[{messageId:"removeUnusedPrivateClassMember",data:{classMemberName:`#${h}`},*fix(y){if(d)return;let v=u(f),S=l(f);yield y.replaceTextRange(v,""),S&&(yield y.insertTextAfter(S,";"))}}]})}}}}});var T2=B((eie,k2)=>{"use strict";var vr=X(),A2={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"all",ignoreClassWithStaticInitBlock:!1,ignoreUsingDeclarations:!1,reportUsedIgnorePattern:!1};k2.exports={meta:{type:"problem",docs:{description:"Disallow unused variables",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-unused-vars"},hasSuggestions:!0,schema:[{oneOf:[{enum:["all","local"]},{type:"object",properties:{vars:{enum:["all","local"]},varsIgnorePattern:{type:"string"},args:{enum:["all","after-used","none"]},ignoreRestSiblings:{type:"boolean"},argsIgnorePattern:{type:"string"},caughtErrors:{enum:["all","none"]},caughtErrorsIgnorePattern:{type:"string"},destructuredArrayIgnorePattern:{type:"string"},ignoreClassWithStaticInitBlock:{type:"boolean"},ignoreUsingDeclarations:{type:"boolean"},reportUsedIgnorePattern:{type:"boolean"}},additionalProperties:!1}]}],defaultOptions:[A2],messages:{unusedVar:"'{{varName}}' is {{action}} but never used{{additional}}.",usedIgnoredVar:"'{{varName}}' is marked as ignored but is used{{additional}}.",removeVar:"Remove unused variable '{{varName}}'."}},create(t){let e=t.sourceCode,r=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,s,n=t.options[0];typeof n=="string"?s={...A2,vars:n}:(s={...n},n.varsIgnorePattern&&(s.varsIgnorePattern=new RegExp(n.varsIgnorePattern,"u")),n.argsIgnorePattern&&(s.argsIgnorePattern=new RegExp(n.argsIgnorePattern,"u")),n.caughtErrorsIgnorePattern&&(s.caughtErrorsIgnorePattern=new RegExp(n.caughtErrorsIgnorePattern,"u")),n.destructuredArrayIgnorePattern&&(s.destructuredArrayIgnorePattern=new RegExp(n.destructuredArrayIgnorePattern,"u")));function i(b){if(s.destructuredArrayIgnorePattern&&b.name.parent.type==="ArrayPattern")return"array-destructure";switch(b.type){case"CatchClause":return"catch-clause";case"Parameter":return"parameter";default:return"variable"}}function o(b){let C,P;switch(b){case"array-destructure":C=s.destructuredArrayIgnorePattern,P="elements of array destructuring";break;case"catch-clause":C=s.caughtErrorsIgnorePattern,P="caught errors";break;case"parameter":C=s.argsIgnorePattern,P="args";break;case"variable":C=s.varsIgnorePattern,P="vars";break;default:throw new Error(`Unexpected variable type: ${b}`)}return C&&(C=C.toString()),[P,C]}function a(b){let C=b.defs&&b.defs[0],P="";if(C){let[F,I]=o(i(C));I&&F&&(P=`. Allowed unused ${F} must match ${I}`)}return{varName:b.name,action:"defined",additional:P}}function l(b){let C=b.defs&&b.defs[0],P="";if(C){let[F,I]=o(i(C));I&&F&&(P=`. Allowed unused ${F} must match ${I}`)}return{varName:b.name,action:"assigned a value",additional:P}}function u(b,C){let[P,F]=o(C),I="";return F&&P&&(I=`. Used ${P} must not match ${F}`),{varName:b.name,additional:I}}let c=/(?:Statement|Declaration)$/u;function p(b){let C=b.defs[0];if(C){let P=C.node;if(P.type==="VariableDeclarator")P=P.parent;else if(C.type==="Parameter")return!1;return P.parent.type.indexOf("Export")===0}return!1}function h(b){let[C]=b.defs;return C?.type==="Variable"&&(C.parent.kind==="using"||C.parent.kind==="await using")}function f(b){return b.type==="Property"&&b.parent.type==="ObjectPattern"&&r.test(b.parent.properties.at(-1).type)}function d(b){if(s.ignoreRestSiblings){let C=b.defs.some(F=>f(F.name.parent)),P=b.references.some(F=>f(F.identifier.parent));return C||P}return!1}function g(b){return b.isRead()}function y(b,C){let P=b.from;for(;P;){if(C.includes(P.block))return!0;P=P.upper}return!1}function v(b){let C=[];return b.defs.forEach(P=>{let{type:F,node:I}=P;F==="FunctionName"&&C.push(I),F==="Variable"&&I.init&&(I.init.type==="FunctionExpression"||I.init.type==="ArrowFunctionExpression")&&C.push(I.init)}),C}function S(b,C){return b.range[0]>=C.range[0]&&b.range[1]<=C.range[1]}function A(b){let C=b.parent;return C.type==="ExpressionStatement"?!0:C.type==="SequenceExpression"?C.expressions.at(-1)===b?A(C):!0:!1}function E(b,C){let P=b.identifier,F=P.parent,I=b.from.variableScope,U=b.resolved.scope.variableScope,z=I!==U||vr.isInLoop(P);return C&&S(P,C)?C:F.type==="AssignmentExpression"&&A(F)&&P===F.left&&!z?F.right:null}function k(b,C){let P=b,F=b.parent;for(;F&&S(F,C);){switch(F.type){case"SequenceExpression":if(F.expressions.at(-1)!==P)return!1;break;case"CallExpression":case"NewExpression":return F.callee!==P;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(c.test(F.type))return!0}P=F,F=F.parent}return!1}function T(b,C){let P=vr.getUpperFunction(b);return P&&S(P,C)&&k(P,C)}function w(b,C){let P=b.identifier,F=P.parent;return b.isRead()&&(F.type==="AssignmentExpression"&&F.left===P&&A(F)&&!vr.isLogicalAssignmentOperator(F.operator)||F.type==="UpdateExpression"&&A(F)||C&&S(P,C)&&!T(P,C))}function R(b){let C=b.identifier.parent;return C.type==="VariableDeclarator"&&(C=C.parent.parent),C.type!=="ForInStatement"&&C.type!=="ForOfStatement"||(C.body.type==="BlockStatement"?C=C.body.body[0]:C=C.body,!C)?!1:C.type==="ReturnStatement"}function j(b){if(b.eslintUsed)return!0;let C=v(b),P=C.length>0,F=null;return b.references.some(I=>{if(R(I))return!0;let U=w(I,F);return F=E(I,F),g(I)&&!U&&!(P&&y(I,C))})}function $(b){let C=b.defs[0],P=e.getDeclaredVariables(C.node);return!P.slice(P.indexOf(b)+1).some(I=>I.references.length>0||I.eslintUsed)}function M(b,C){let P=b.variables,F=b.childScopes,I,U;if(b.type!=="global"||s.vars==="all")for(I=0,U=P.length;I<U;++I){let z=P[I];if(b.type==="class"&&b.block.id===z.identifiers[0]||b.functionExpressionScope||!s.reportUsedIgnorePattern&&z.eslintUsed||b.type==="function"&&z.name==="arguments"&&z.identifiers.length===0)continue;let W=z.defs[0];if(W){let re=W.type,ue=z.references.some(be=>be.identifier.parent.type==="ArrayPattern");if((W.name.parent.type==="ArrayPattern"||ue)&&s.destructuredArrayIgnorePattern&&s.destructuredArrayIgnorePattern.test(W.name.name)){s.reportUsedIgnorePattern&&j(z)&&t.report({node:W.name,messageId:"usedIgnoredVar",data:u(z,"array-destructure")});continue}if(re==="ClassName"){let be=W.node.body.body.some(te=>te.type==="StaticBlock");if(s.ignoreClassWithStaticInitBlock&&be)continue}if(re==="CatchClause"){if(s.caughtErrors==="none")continue;if(s.caughtErrorsIgnorePattern&&s.caughtErrorsIgnorePattern.test(W.name.name)){s.reportUsedIgnorePattern&&j(z)&&t.report({node:W.name,messageId:"usedIgnoredVar",data:u(z,"catch-clause")});continue}}else if(re==="Parameter"){if((W.node.parent.type==="Property"||W.node.parent.type==="MethodDefinition")&&W.node.parent.kind==="set"||s.args==="none")continue;if(s.argsIgnorePattern&&s.argsIgnorePattern.test(W.name.name)){s.reportUsedIgnorePattern&&j(z)&&t.report({node:W.name,messageId:"usedIgnoredVar",data:u(z,"parameter")});continue}if(s.args==="after-used"&&vr.isFunction(W.name.parent)&&!$(z))continue}else if(s.varsIgnorePattern&&s.varsIgnorePattern.test(W.name.name)){s.reportUsedIgnorePattern&&j(z)&&t.report({node:W.name,messageId:"usedIgnoredVar",data:u(z,"variable")});continue}}!j(z)&&!p(z)&&!(s.ignoreUsingDeclarations&&h(z))&&!d(z)&&C.push(z)}for(I=0,U=F.length;I<U;++I)M(F[I],C);return C}function N(b,C){let P=C.identifiers[0],F=P.parent,I=F.type,U=e.getTokenBefore(P),z=e.getTokenAfter(P),W=vr.isFunction,re=vr.isLoop,ue=C.references.filter(O=>O.isWrite());function be(O,K){return e.getTokenBefore(O,K).range[0]}function te(O,K){return e.getTokenAfter(O,K).range[1]}function pe(O){return e.getTokenBefore(O).value}function ve(O){return e.getTokenAfter(O).value}function Ae(O){return O.elements.filter(K=>K!==null).length===1}function ie(O,K){return O.specifiers.some(he=>he.type===K)}function xe(O){if(!vr.isClosingBraceToken(O))return!1;let K=e.getNodeByRangeIndex(O.range[0]);switch(K.type){case"BlockStatement":return K.parent.type!=="FunctionExpression"&&K.parent.type!=="ArrowFunctionExpression";case"ClassBody":return K.parent.type==="ClassDeclaration";case"SwitchStatement":return!0;default:return!1}}function ae(O,K){return O.type==="String"||K&&!vr.isSemicolonToken(K)&&!vr.isOpeningBraceToken(K)&&!xe(K)}function fe(O){let K=O.parent;return W(K)?K.params.length===1?b.removeRange(O.range):pe(O)==="("&&ve(O)===","?b.removeRange([O.range[0],te(O)]):b.removeRange([be(O),O.range[1]]):null}function Be(O){let K=O.parent;if(K.type==="VariableDeclarator"){if(re(K.parent.parent))return null;if(K.parent.declarations.length===1){let he=e.getTokenAfter(K.parent),Fe=e.getTokenBefore(K.parent);return he&&ae(he,Fe)?null:b.removeRange(K.parent.range)}if(pe(K)===","){if(K===K.parent.declarations.at(-1)){let he=e.getLastToken(K.parent);if(!vr.isSemicolonToken(he)){let Fe=e.getTokenAfter(K.parent),Ue=e.getTokenBefore(K,{skip:1});if(Fe&&ae(Fe,Ue))return null}}return b.removeRange([be(K),K.range[1]])}return b.removeRange([K.range[0],te(K)])}return pe(O)===":"&&K.parent.type==="ObjectPattern"?je(O):fe(O)}function Re(O){let K=O.parent;return K.parent.parent.parent.type==="ObjectPattern"&&K.parent.properties.length===1?Re(K.parent):K.parent.type==="ObjectPattern"?K.parent.properties.length===1?Be(K.parent):pe(K)==="{"?b.removeRange([K.range[0],te(K)]):b.removeRange([be(K),K.range[1]]):null}function Pe(O){let K=O.parent;return K.parent.type==="ArrayPattern"&&Ae(K)?Pe(K):Ae(K)?pe(K)===":"?Be(K):K.parent.type==="RestElement"?ze(K.parent):Be(K):pe(O)===","&&ve(O)==="]"?b.removeRange([be(O),O.range[1]]):b.removeRange(O.range)}function je(O){let K=O.parent.parent;return K.parent.type==="ArrayPattern"&&K.properties.length===1?Pe(K):Re(O)}function ze(O){let K=O.parent;return W(K)?K.params.length===1?b.removeRange(O.range):b.removeRange([be(O),O.range[1]]):K.type==="ArrayPattern"?Ae(K)?K.parent.type==="ArrayPattern"?Pe(K):Be(K):b.removeRange([be(O),O.range[1]]):null}if(ue.some(O=>O.identifier.range[0]!==P.range[0]))return null;if(I==="VariableDeclarator"){if(F.parent.declarations.length===1){if(re(F.parent.parent)&&F.parent.parent.body!==F.parent)return null;if(F.parent.parent.type==="IfStatement"||re(F.parent.parent)||F.parent.parent.type==="WithStatement"&&F.parent.parent.body===F.parent)return b.replaceText(F.parent,";");let O=e.getTokenAfter(F.parent),K=e.getTokenBefore(F.parent);return O&&ae(O,K)?null:b.removeRange(F.parent.range)}if(U.value===","){if(F===F.parent.declarations.at(-1)){let O=e.getLastToken(F.parent);if(!vr.isSemicolonToken(O)){let K=e.getTokenAfter(F.parent),he=e.getTokenBefore(F,{skip:1});if(K&&ae(K,he))return null}}return b.removeRange([U.range[0],F.range[1]])}return b.removeRange([F.range[0],te(F)])}if(F.parent.type==="ObjectPattern"){if(F.parent.properties.length===1)return F.parent.parent.type==="RestElement"?ze(F.parent.parent):F.parent.parent.type==="ArrayPattern"?Pe(F.parent):Be(F.parent);if(U.value===":")return pe(F)==="{"&&ve(F)===","?b.removeRange([F.range[0],te(F)]):b.removeRange([be(F),P.range[1]])}if(I==="ArrayPattern"){if(Ae(F))return F.parent.type==="RestElement"?ze(F.parent):F.parent.type==="ArrayPattern"?Pe(F):Be(F);if(U.value===","&&z.value===",")return b.removeRange(P.range)}if(I==="RestElement"){if(F.parent.type==="ArrayPattern")return Ae(F.parent)?F.parent.parent.type==="ArrayPattern"?Pe(F.parent):Be(F.parent):b.removeRange([be(P,1),P.range[1]]);if(F.parent.type==="ObjectPattern")return F.parent.properties.length===1?Be(F.parent):b.removeRange([be(P,1),P.range[1]]);if(W(F.parent))return F.parent.params.length===1?b.removeRange(F.range):b.removeRange([be(F),F.range[1]])}if(I==="AssignmentPattern"){if(F.parent.type==="ArrayPattern")return Pe(F);if(F.parent.parent.type==="ObjectPattern")return F.parent.parent.properties.length===1?F.parent.parent.parent.type==="ArrayPattern"?Pe(F.parent.parent):Be(F.parent.parent):pe(F.parent)==="{"&&ve(F.parent)===","?b.removeRange([F.parent.range[0],te(F.parent)]):b.removeRange([be(F.parent),F.parent.range[1]]);if(W(F.parent))return fe(F)}if(I==="FunctionDeclaration"&&F.id===P||I==="ClassDeclaration"){let O=e.getTokenAfter(F),K=e.getTokenBefore(F);return O&&ae(O,K)?null:b.removeRange(F.range)}if(I==="ImportDefaultSpecifier")return!ie(F.parent,"ImportSpecifier")&&!ie(F.parent,"ImportNamespaceSpecifier")?b.removeRange([F.range[0],F.parent.source.range[0]]):b.removeRange([P.range[0],z.range[1]]);if(I==="ImportSpecifier")return F.parent.specifiers.filter(O=>O.type==="ImportSpecifier").length===1?ie(F.parent,"ImportDefaultSpecifier")?b.removeRange([be(F,1),z.range[1]]):b.removeRange(F.parent.range):pe(F)==="{"?b.removeRange([F.range[0],te(F)]):b.removeRange([be(F),F.range[1]]);if(I==="ImportNamespaceSpecifier")return ie(F.parent,"ImportDefaultSpecifier")?b.removeRange([be(F),F.range[1]]):b.removeRange([F.range[0],F.parent.source.range[0]]);if(I==="CatchClause")return null;if(U?.value===",")return b.removeRange([U.range[0],P.range[1]]);if(z.value===","){if(U.value==="(")return b.removeRange([P.range[0],z.range[1]]);if(U.value==="{")return b.removeRange([P.range[0],z.range[1]])}return I==="ArrowFunctionExpression"&&F.params.length===1&&z?.value!==")"?b.replaceText(P,"()"):b.removeRange(P.range)}return{"Program:exit"(b){let C=M(e.getScope(b),[]);for(let P=0,F=C.length;P<F;++P){let I=C[P];if(I.defs.length>0){let U=I.references.filter(W=>W.isWrite()&&W.from.variableScope===I.scope.variableScope),z;U.length>0&&(z=U.at(-1)),t.report({node:z?z.identifier:I.identifiers[0],messageId:"unusedVar",data:I.references.some(W=>W.isWrite())?l(I):a(I),suggest:[{messageId:"removeVar",data:{varName:I.name},fix(W){return N(W,I)}}]})}else if(I.eslintExplicitGlobalComments){let U=I.eslintExplicitGlobalComments[0];t.report({node:b,loc:vr.getNameLocationInGlobalDirectiveComment(e,U,I.name),messageId:"unusedVar",data:a(I)})}}}}}}});var F2=B((tie,P2)=>{"use strict";var iK=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,aK=/^For(?:In|Of)Statement$/u;function oK(t){return typeof t=="object"&&t!==null?t:{functions:typeof t=="string"?t!=="nofunc":!0,classes:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}}function hi(t,e){return t&&t.range[0]<=e&&e<=t.range[1]}function lK(t,e){return t.body.some(r=>r.type==="StaticBlock"&&hi(r,e)||r.type==="PropertyDefinition"&&r.static&&r.value&&hi(r.value,e))}function uK(t){return t.type==="class-static-block"?!0:t.type==="class-field-initializer"?t.block.parent.static:!1}function cK(t){if(t.type!=="function")return!1;let e=t.block;return e.parent.type!=="CallExpression"||e.parent.callee!==e?!1:!e.generator&&!e.async}function D2(t){let e=t.resolved,r=t.from;for(;e.scope.variableScope!==r.variableScope;)if(uK(r.variableScope)||cK(r.variableScope))r=r.variableScope.upper;else return!0;return!1}function pK(t){if(D2(t))return!1;let e=t.identifier.range[1],r=t.resolved.defs[0];if(r.type==="ClassName"){let n=r.node;return hi(n,e)&&!lK(n.body,e)}let s=r.name.parent;for(;s;){if(s.type==="VariableDeclarator"){if(hi(s.init,e)||aK.test(s.parent.parent.type)&&hi(s.parent.parent.right,e))return!0;break}else if(s.type==="AssignmentPattern"){if(hi(s.right,e))return!0}else if(iK.test(s.type))break;s=s.parent}return!1}function I2(t){switch(t.type){case"TSTypeQuery":return!0;case"TSQualifiedName":case"Identifier":return I2(t.parent);default:return!1}}function fK(t,e){if(t.defs[0].type!=="ClassName"||!t.defs[0].node.decorators||t.defs[0].node.decorators.length===0)return!1;for(let r of t.defs[0].node.decorators)if(e.identifier.range[0]>=r.range[0]&&e.identifier.range[1]<=r.range[1])return!0;return!1}P2.exports={meta:{type:"problem",docs:{description:"Disallow the use of variables before they are defined",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-use-before-define"},schema:[{oneOf:[{enum:["nofunc"]},{type:"object",properties:{functions:{type:"boolean"},classes:{type:"boolean"},variables:{type:"boolean"},allowNamedExports:{type:"boolean"},enums:{type:"boolean"},typedefs:{type:"boolean"},ignoreTypeReferences:{type:"boolean"}},additionalProperties:!1}]}],defaultOptions:[{classes:!0,functions:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}],messages:{usedBeforeDefined:"'{{name}}' was used before it was defined."}},create(t){let e=oK(t.options[0]),r=t.sourceCode;function s(i){if(i.init)return!1;let{identifier:o}=i;if(e.allowNamedExports&&o.parent.type==="ExportSpecifier"&&o.parent.local===o)return!1;let a=i.resolved;if(!a||a.defs.length===0)return!1;let l=a.defs[0].type;if(!e.functions&&l==="FunctionName"||(!e.variables&&l==="Variable"||!e.classes&&l==="ClassName")&&D2(i)||!e.enums&&l==="TSEnumName"||!e.typedefs&&l==="Type"||e.ignoreTypeReferences&&(I2(o)||o.parent.type==="TSTypeReference"))return!1;if(o.parent.type==="TSQualifiedName"){let u=o.parent;for(;u.type==="TSQualifiedName";)u=u.left;return u===o}return!fK(a,i)}function n(i){i.references.filter(s).forEach(o=>{let l=o.resolved.defs[0].name;(o.identifier.range[1]<l.range[1]||pK(o)&&o.identifier.parent.type!=="TSTypeReference")&&t.report({node:o.identifier,messageId:"usedBeforeDefined",data:o.identifier})}),i.childScopes.forEach(n)}return{Program(i){n(r.getScope(i))}}}}});var O2=B((rie,B2)=>{"use strict";var{findVariable:hK}=Ht();function*Ca(t){switch(t.type){case"Identifier":yield t;return;case"ObjectPattern":for(let e of t.properties)yield*Ca(e.type==="Property"?e.value:e);return;case"ArrayPattern":for(let e of t.elements)e&&(yield*Ca(e));return;case"RestElement":yield*Ca(t.argument);return;case"AssignmentPattern":yield*Ca(t.left)}}function Ql(t,e){return!(e.range[0]<t.identifier.range[1]||t.expression&&t.expression.range[0]<=e.range[0]&&e.range[1]<=t.expression.range[1])}function _2(t,e){return t.expression?t.identifier.range[1]<=e.range[0]&&e.range[1]<=t.expression.range[0]:!1}B2.exports={meta:{type:"problem",docs:{description:"Disallow variable assignments when the value is not used",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-assignment"},schema:[],messages:{unnecessaryAssignment:"The value assigned to '{{name}}' is not used in subsequent statements."}},create(t){let e=t.sourceCode,r=null,s=new Set;function n(o){let a=o;for(;a;){if(s.has(a))return a;a=a.upper}return null}function i(o){function a(u,c){let p=o.segments[u.id];return p.first&&p.last&&p.first.range[0]<=c.range[0]&&c.range[1]<=p.last.range[1]}function l(u,c){if(o.tryStatementBlocks.some(y=>y.range[0]<=u.identifier.range[0]&&u.identifier.range[1]<=y.range[1]))return;let h={results:[],subsequentSegments:new Set,queueSegments:u.segments.flatMap(y=>y.nextSegments)};function*f(){for(yield*h.results;h.queueSegments.length>0;){let y=h.queueSegments.shift();if(h.subsequentSegments.has(y))continue;h.subsequentSegments.add(y);let v=c.find(A=>A.segments.includes(y)&&!_2(A,u.identifier));v||h.queueSegments.push(...y.nextSegments);let S={segment:y,assignment:v};h.results.push(S),yield S}}if(u.variable.references.some(y=>{let v=y.identifier.type;return v!=="Identifier"&&v!=="JSXIdentifier"}))return;let d=u.variable.references.filter(y=>y.isRead());if(!d.length)return;let g=c.find(y=>y===u||y.segments.length&&y.segments.every(v=>!u.segments.includes(v))?!1:!!(Ql(u,y.identifier)||y.expression&&y.expression.range[0]<=u.identifier.range[0]&&u.identifier.range[1]<=y.expression.range[1]));for(let y of d){if(o.scope!==n(y.from))return;if(Ql(u,y.identifier)&&(_2(u,y.identifier)||u.segments.some(v=>a(v,y.identifier)))){if(g&&Ql(g,y.identifier))continue;return}if(!g){for(let v of f())if(a(v.segment,y.identifier)){if(v.assignment&&Ql(v.assignment,y.identifier))continue;return}}}t.report({node:u.identifier,messageId:"unnecessaryAssignment",data:{name:u.identifier.name}})}for(let u of o.assignments.values()){u.sort((c,p)=>c.identifier.range[0]-p.identifier.range[0]);for(let c of u)l(c,u)}}return{onCodePathStart(o,a){let l=e.getScope(a);r={upper:r,codePath:o,scope:l,segments:Object.create(null),currentSegments:new Set,assignments:new Map,tryStatementBlocks:[]},s.add(r.scope)},onCodePathEnd(){i(r),r=r.upper},onCodePathSegmentStart(o){let a={segment:o,first:null,last:null};r.segments[o.id]=a,r.currentSegments.add(o)},onCodePathSegmentEnd(o){r.currentSegments.delete(o)},TryStatement(o){r.tryStatementBlocks.push(o.block)},"Identifier, JSXIdentifier"(o){for(let a of r.currentSegments){let l=r.segments[a.id];l.first||(l.first=o),l.last=o}},"VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression:exit"(o){if(r.currentSegments.size===0)return;let a=r.assignments,l,u=null;o.type==="VariableDeclarator"?(l=o.id,u=o.init):o.type==="AssignmentExpression"?(l=o.left,u=o.right):l=o.argument;for(let c of Ca(l)){let p=e.getScope(c),h=hK(p,c);if(!h||h.scope.type==="global"&&h.defs.length===0||r.scope!==n(h.scope)||h.eslintUsed||h.scope.type==="module"&&(h.defs.some(d=>d.type==="Variable"&&d.parent.parent.type==="ExportNamedDeclaration"||d.type==="FunctionName"&&(d.node.parent.type==="ExportNamedDeclaration"||d.node.parent.type==="ExportDefaultDeclaration")||d.type==="ClassName"&&(d.node.parent.type==="ExportNamedDeclaration"||d.node.parent.type==="ExportDefaultDeclaration"))||h.references.some(d=>d.identifier.parent.type==="ExportSpecifier")))continue;let f=a.get(h);f||(f=[],a.set(h,f)),f.push({variable:h,identifier:c,node:o,expression:u,segments:[...r.currentSegments]})}}}}}});var M2=B((nie,j2)=>{"use strict";var{CALL:mK,CONSTRUCT:dK,ReferenceTracker:gK,getStringIfConstant:L2}=Ht(),{RegExpParser:yK,visitRegExpAST:xK}=Ir(),EK=new yK;function N2(t){let e=[],r=t;do e.push(r),r=r.parent;while(r);return e}function R2(t){return t.type==="Assertion"&&(t.kind==="lookahead"||t.kind==="lookbehind")}function bK(t){return R2(t)&&t.negate}j2.exports={meta:{type:"problem",docs:{description:"Disallow useless backreferences in regular expressions",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-backreference"},schema:[],messages:{nested:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} from within that group.",forward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears later in the pattern.",backward:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which appears before in the same lookbehind.",disjunctive:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in another alternative.",intoNegativeLookaround:"Backreference '{{ bref }}' will be ignored. It references group '{{ group }}'{{ otherGroups }} which is in a negative lookaround."}},create(t){let e=t.sourceCode;function r(s,n,i){let o;try{o=EK.parsePattern(n,0,n.length,{unicode:i.includes("u"),unicodeSets:i.includes("v")})}catch{return}xK(o,{onBackreferenceEnter(a){let l=[a.resolved].flat(),u=N2(a),c=l.map(v=>{let S=N2(v);if(u.includes(v))return{messageId:"nested",group:v};let A=u.length-1,E=S.length-1;do A--,E--;while(u[A]===S[E]);let k=E+1,T=S.slice(0,k),w=S.slice(k),R=w.find(R2),j=R&&R.kind==="lookbehind";return T.at(-1).type==="Alternative"?{messageId:"disjunctive",group:v}:!j&&a.end<=v.start?{messageId:"forward",group:v}:j&&v.end<=a.start?{messageId:"backward",group:v}:T.some(bK)?{messageId:"intoNegativeLookaround",group:v}:null});if(c.length===0||c.some(v=>!v))return;let p,h=c.filter(v=>v.messageId!=="disjunctive");h.length?p=h:p=c;let[{messageId:f,group:d},...g]=p,y="";g.length===1?y=" and another group":g.length>1&&(y=` and other ${g.length} groups`),t.report({node:s,messageId:f,data:{bref:a.raw,group:d.raw,otherGroups:y}})}})}return{"Literal[regex]"(s){let{pattern:n,flags:i}=s.regex;r(s,n,i)},Program(s){let n=e.getScope(s),i=new gK(n),o={RegExp:{[mK]:!0,[dK]:!0}};for(let{node:a}of i.iterateGlobalReferences(o)){let[l,u]=a.arguments,c=L2(l,n),p=L2(u,n);typeof c=="string"&&r(a,c,p||"")}}}}}});var U2=B((sie,q2)=>{"use strict";var wa=X();function vK(t){let e=wa.skipChainExpression(t.callee);return e.type==="MemberExpression"&&e.property.type==="Identifier"&&e.computed===!1&&(e.property.name==="call"&&t.arguments.length>=1||e.property.name==="apply"&&t.arguments.length===2&&t.arguments[1].type==="ArrayExpression")}function SK(t,e,r){return t?wa.equalTokens(t,e,r):wa.isNullOrUndefined(e)}q2.exports={meta:{type:"suggestion",docs:{description:"Disallow unnecessary calls to `.call()` and `.apply()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-call"},schema:[],messages:{unnecessaryCall:"Unnecessary '.{{name}}()'."}},create(t){let e=t.sourceCode;return{CallExpression(r){if(!vK(r))return;let s=wa.skipChainExpression(r.callee),n=wa.skipChainExpression(s.object),i=n.type==="MemberExpression"?n.object:null,o=r.arguments[0];SK(i,o,e)&&t.report({node:r,messageId:"unnecessaryCall",data:{name:s.property.name}})}}}}});var V2=B((iie,$2)=>{"use strict";$2.exports={meta:{type:"suggestion",docs:{description:"Disallow unnecessary `catch` clauses",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-catch"},schema:[],messages:{unnecessaryCatchClause:"Unnecessary catch clause.",unnecessaryCatch:"Unnecessary try/catch wrapper."}},create(t){return{CatchClause(e){e.param&&e.param.type==="Identifier"&&e.body.body.length&&e.body.body[0].type==="ThrowStatement"&&e.body.body[0].argument.type==="Identifier"&&e.body.body[0].argument.name===e.param.name&&(e.parent.finalizer?t.report({node:e,messageId:"unnecessaryCatchClause"}):t.report({node:e.parent,messageId:"unnecessaryCatch"}))}}}}});var z2=B((aie,W2)=>{"use strict";var um=X();function CK(t){if(!t.computed)return!1;let{key:e}=t;if(e.type!=="Literal")return!1;let{value:r}=e;if(typeof r!="number"&&typeof r!="string")return!1;switch(t.type){case"Property":return t.parent.type==="ObjectExpression"?r!=="__proto__":!0;case"PropertyDefinition":return t.static?r!=="constructor"&&r!=="prototype":r!=="constructor";case"MethodDefinition":return t.static?r!=="prototype":r!=="constructor";default:throw new Error(`Unexpected node type: ${t.type}`)}}W2.exports={meta:{type:"suggestion",defaultOptions:[{enforceForClassMembers:!0}],docs:{description:"Disallow unnecessary computed property keys in objects and classes",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-useless-computed-key"},schema:[{type:"object",properties:{enforceForClassMembers:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{unnecessarilyComputedProperty:"Unnecessarily computed property [{{property}}] found."}},create(t){let e=t.sourceCode,[{enforceForClassMembers:r}]=t.options;function s(i){if(CK(i)){let{key:o}=i;t.report({node:i,messageId:"unnecessarilyComputedProperty",data:{property:e.getText(o)},fix(a){let l=e.getTokenBefore(o,um.isOpeningBracketToken),u=e.getTokenAfter(o,um.isClosingBracketToken);if(e.commentsExistBetween(l,u))return null;let c=e.getTokenBefore(l),h=(c.range[1]===l.range[0]&&!um.canTokensBeAdjacent(c,e.getFirstToken(o))?" ":"")+o.raw;return a.replaceTextRange([l.range[0],u.range[1]],h)}})}}function n(){}return{Property:s,MethodDefinition:r?s:n,PropertyDefinition:r?s:n}}}});var H2=B((oie,K2)=>{"use strict";var cm=X();function G2(t){return t.type==="BinaryExpression"&&t.operator==="+"}function wK(t){return t.value==="+"&&t.type==="Punctuator"}function AK(t){let e=t.left;for(;G2(e);)e=e.right;return e}function kK(t){let e=t.right;for(;G2(e);)e=e.left;return e}K2.exports={meta:{type:"suggestion",docs:{description:"Disallow unnecessary concatenation of literals or template literals",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-useless-concat"},schema:[],messages:{unexpectedConcat:"Unexpected string concatenation of literals."}},create(t){let e=t.sourceCode;return{BinaryExpression(r){if(r.operator!=="+")return;let s=AK(r),n=kK(r);if(cm.isStringLiteral(s)&&cm.isStringLiteral(n)&&cm.isTokenOnSameLine(s,n)){let i=e.getFirstTokenBetween(s,n,wK);t.report({node:r,loc:i.loc,messageId:"unexpectedConcat"})}}}}}});var Q2=B((lie,X2)=>{"use strict";var pm=X();function TK(t){return t.value.params.some(e=>e.decorators?.length||e.type==="TSParameterProperty")}function DK(t){switch(t.accessibility){case"protected":case"private":return!0;case"public":return!!t.parent.parent.superClass;default:return!1}}function IK(t){return t.length===1&&t[0].type==="ExpressionStatement"&&t[0].expression.type==="CallExpression"&&t[0].expression.callee.type==="Super"}function PK(t){return t.type==="Identifier"||t.type==="RestElement"}function FK(t){return t.length===1&&t[0].type==="SpreadElement"&&t[0].argument.type==="Identifier"&&t[0].argument.name==="arguments"}function J2(t,e){return t.type==="Identifier"&&e.type==="Identifier"&&t.name===e.name}function _K(t,e){return t.type==="RestElement"&&e.type==="SpreadElement"&&J2(t.argument,e.argument)}function BK(t,e){return J2(t,e)||_K(t,e)}function OK(t,e){if(t.length!==e.length)return!1;for(let r=0;r<t.length;++r)if(!BK(t[r],e[r]))return!1;return!0}function LK(t,e){return IK(t)&&e.every(PK)&&(FK(t[0].expression.arguments)||OK(e,t[0].expression.arguments))}X2.exports={meta:{type:"suggestion",docs:{description:"Disallow unnecessary constructors",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-constructor"},hasSuggestions:!0,schema:[],messages:{noUselessConstructor:"Useless constructor.",removeConstructor:"Remove the constructor."}},create(t){let{sourceCode:e}=t;function r(s){if(s.kind!=="constructor"||s.value.type!=="FunctionExpression"||TK(s)||DK(s)||!s.value.body)return;let n=s.value.body.body,i=s.value.params,o=s.parent.parent.superClass,a=e.getFirstToken(s,pm.isOpeningParenToken),l={start:s.loc.start,end:e.getTokenBefore(a).loc.end};(o?LK(n,i):n.length===0)&&t.report({loc:l,messageId:"noUselessConstructor",suggest:[{messageId:"removeConstructor",*fix(u){let c=e.getTokenAfter(s),p=pm.canContinueExpressionInClassBody(c)&&pm.needsPrecedingSemicolon(e,s);yield u.replaceText(s,p?";":"")}}]})}return{MethodDefinition:r}}}});var eB=B((uie,Z2)=>{"use strict";var Y2=X(),{RegExpParser:NK,visitRegExpAST:RK}=Ir();function fm(t,e){return new Set((function*(){yield*t,yield*e})())}var jK=fm(new Set("\\nrvtbfux"),Y2.LINEBREAKS),hm=new Set("\\bcdDfnpPrsStvwWxu0123456789]"),MK=fm(hm,new Set("^/.$*+?[{}|()Bk")),qK=fm(hm,new Set("q/[{}|()-")),UK=new Set("!#$%&*+,.:;<=>?@^`~");Z2.exports={meta:{type:"suggestion",defaultOptions:[{allowRegexCharacters:[]}],docs:{description:"Disallow unnecessary escape characters",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-useless-escape"},hasSuggestions:!0,messages:{unnecessaryEscape:"Unnecessary escape character: \\{{character}}.",removeEscape:"Remove the `\\`. This maintains the current functionality.",removeEscapeDoNotKeepSemantics:"Remove the `\\` if it was inserted by mistake.",escapeBackslash:"Replace the `\\` with `\\\\` to include the actual backslash character."},schema:[{type:"object",properties:{allowRegexCharacters:{type:"array",items:{type:"string"},uniqueItems:!0}},additionalProperties:!1}]},create(t){let e=t.sourceCode,[{allowRegexCharacters:r}]=t.options,s=new NK;function n(l,u,c,p){let h=l.range[0]+u,f=[h,h+1],d=e.getLocFromIndex(h);t.report({node:l,loc:{start:d,end:{line:d.line,column:d.column+1}},messageId:"unnecessaryEscape",data:{character:c},suggest:[{messageId:Y2.isDirective(l.parent)?"removeEscapeDoNotKeepSemantics":"removeEscape",fix(g){return g.removeRange(f)}},...p?[]:[{messageId:"escapeBackslash",fix(g){return g.insertTextBeforeRange(f,"\\")}}]]})}function i(l,u){let c=l.type==="TemplateElement",p=u[0][1],h=!jK.has(p),f;c?(f=p==="`",p==="$"?h=u.input[u.index+2]!=="{":p==="{"&&(h=u.input[u.index-1]!=="$")):f=p===l.raw[0],h&&!f&&n(l,u.index,u[0].slice(1))}function o(l){let{pattern:u,flags:c}=l.regex,p,h=c.includes("u"),f=c.includes("v");try{p=s.parsePattern(u,0,u.length,{unicode:h,unicodeSets:f})}catch{return}let d=[];RK(p,{onCharacterClassEnter:g=>d.unshift(g),onCharacterClassLeave:()=>d.shift(),onExpressionCharacterClassEnter:g=>d.unshift(g),onExpressionCharacterClassLeave:()=>d.shift(),onCharacterEnter(g){if(!g.raw.startsWith("\\"))return;let y=g.raw.slice(1);if(y!==String.fromCodePoint(g.value)||r.includes(y))return;let v;if(d.length?v=f?qK:hm:v=MK,v.has(y))return;let S=g.start+1,A=!1;if(d.length){let E=d[0];if(y==="^"&&E.start+1===g.start)return;if(f){if(UK.has(y)&&(u[g.end]===y||u[g.start-1]===y&&(y!=="^"||!E.negate||E.start+1<g.start-1)))return;(g.parent.type==="ClassIntersection"||g.parent.type==="ClassSubtraction")&&(A=!0)}else if(y==="-"&&E.start+1!==g.start&&g.end!==E.end-1)return}n(l,S,y,A)}})}function a(l){let u=l.type==="TemplateElement";if(!(u&&l.parent&&l.parent.parent&&l.parent.parent.type==="TaggedTemplateExpression"&&l.parent===l.parent.parent.quasi))if(typeof l.value=="string"||u){if(l.parent.type==="JSXAttribute"||l.parent.type==="JSXElement"||l.parent.type==="JSXFragment")return;let c=u?e.getText(l):l.raw,p=/\\\D/gu,h;for(;h=p.exec(c);)i(l,h)}else l.regex&&o(l)}return{Literal:a,TemplateElement:a}}}});var rB=B((cie,tB)=>{"use strict";var Yl=X();tB.exports={meta:{type:"suggestion",defaultOptions:[{ignoreDestructuring:!1,ignoreImport:!1,ignoreExport:!1}],docs:{description:"Disallow renaming import, export, and destructured assignments to the same name",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-rename"},fixable:"code",schema:[{type:"object",properties:{ignoreDestructuring:{type:"boolean"},ignoreImport:{type:"boolean"},ignoreExport:{type:"boolean"}},additionalProperties:!1}],messages:{unnecessarilyRenamed:"{{type}} {{name}} unnecessarily renamed."}},create(t){let e=t.sourceCode,[{ignoreDestructuring:r,ignoreImport:s,ignoreExport:n}]=t.options;function i(u,c,p){let h=c.type==="Identifier"?c.name:c.value;return t.report({node:u,messageId:"unnecessarilyRenamed",data:{name:h,type:p},fix(f){let d=u.type==="Property"?u.value:u.local;return e.getCommentsInside(u).length>e.getCommentsInside(d).length||d.type==="AssignmentPattern"&&Yl.isParenthesised(e,d.left)?null:f.replaceTextRange([c.range[0],u.range[1]],e.getText(d))}})}function o(u){if(!r)for(let c of u.properties){if(c.type!=="Property"||c.shorthand||c.computed)continue;let p=c.key.type==="Identifier"&&c.key.name||c.key.type==="Literal"&&c.key.value,h=c.value.type==="AssignmentPattern"?c.value.left.name:c.value.name;p===h&&i(c,c.key,"Destructuring assignment")}}function a(u){s||u.imported.range[0]!==u.local.range[0]&&Yl.getModuleExportName(u.imported)===u.local.name&&i(u,u.imported,"Import")}function l(u){n||u.local.range[0]!==u.exported.range[0]&&Yl.getModuleExportName(u.local)===Yl.getModuleExportName(u.exported)&&i(u,u.local,"Export")}return{ObjectPattern:o,ImportSpecifier:a,ExportSpecifier:l}}}});var sB=B((pie,nB)=>{"use strict";var mm=X(),$K=ps(),{isAnySegmentReachable:VK}=kn();function WK(t,e){let r=t.indexOf(e);r!==-1&&t.splice(r,1)}function zK(t){return mm.STATEMENT_LIST_PARENTS.has(t.parent.type)}function GK(t){for(let e=t;e&&e.parent&&!mm.isFunction(e);e=e.parent)if(e.parent.type==="TryStatement"&&e.parent.finalizer===e)return!0;return!1}nB.exports={meta:{type:"suggestion",docs:{description:"Disallow redundant return statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-return"},fixable:"code",schema:[],messages:{unnecessaryReturn:"Unnecessary return statement."}},create(t){let e=new WeakMap,r=t.sourceCode,s=null;function n(l){let u=e.get(l);return!u||u.returned}function i(l,u,c){let p=c||new WeakSet;for(let h of u){if(!h.reachable){p.has(h)||(p.add(h),i(l,h.allPrevSegments.filter(n),p));continue}e.has(h)&&l.push(...e.get(h).uselessReturns)}return l}function o(l,u){if(!l.reachable){u.add(l),l.allPrevSegments.filter(n).filter(p=>!u.has(p)).forEach(p=>o(p,u));return}let c=e.get(l);c&&(c.uselessReturns=c.uselessReturns.filter(p=>{if(s.traversedTryBlockStatements&&s.traversedTryBlockStatements.length>0){let h=p.range[0],f=p.range[1];if(s.traversedTryBlockStatements.some(g=>{let y=g.range[0],v=g.range[1];return h>=y&&f<=v}))return!0}return WK(s.uselessReturns,p),!1}))}function a(){s.currentSegments.forEach(l=>o(l,new Set))}return{onCodePathStart(l){s={upper:s,uselessReturns:[],traversedTryBlockStatements:[],codePath:l,currentSegments:new Set}},onCodePathEnd(){for(let l of s.uselessReturns)t.report({node:l,loc:l.loc,messageId:"unnecessaryReturn",fix(u){return zK(l)&&!r.getCommentsInside(l).length?new $K(u,r).retainEnclosingFunction(l).remove(l):null}});s=s.upper},onCodePathSegmentStart(l){s.currentSegments.add(l);let u={uselessReturns:i([],l.allPrevSegments),returned:!1};e.set(l,u)},onUnreachableCodePathSegmentStart(l){s.currentSegments.add(l)},onUnreachableCodePathSegmentEnd(l){s.currentSegments.delete(l)},onCodePathSegmentEnd(l){s.currentSegments.delete(l)},ReturnStatement(l){if(l.argument&&a(),!(l.argument||mm.isInLoop(l)||GK(l)||!VK(s.currentSegments))){for(let u of s.currentSegments){let c=e.get(u);c&&(c.uselessReturns.push(l),c.returned=!0)}s.uselessReturns.push(l)}},"TryStatement > BlockStatement.block:exit"(l){s.traversedTryBlockStatements.push(l)},"TryStatement:exit"(){s.traversedTryBlockStatements.pop()},ClassDeclaration:a,ContinueStatement:a,DebuggerStatement:a,DoWhileStatement:a,EmptyStatement:a,ExpressionStatement:a,ForInStatement:a,ForOfStatement:a,ForStatement:a,IfStatement:a,ImportDeclaration:a,LabeledStatement:a,SwitchStatement:a,ThrowStatement:a,TryStatement:a,VariableDeclaration:a,WhileStatement:a,WithStatement:a,ExportNamedDeclaration:a,ExportDefaultDeclaration:a,ExportAllDeclaration:a}}}});var lB=B((fie,oB)=>{"use strict";var Zl=X(),KK=ps();function HK(t){return!!t.scope&&t.scope.type==="global"}function iB(t){let e=t;for(;e.type!=="function"&&e.type!=="global";)e=e.upper;return e}function JK(t){let e=iB(t.scope);return t.references.some(r=>iB(r.from)!==e)}function aB(t){return(t.parent.type==="ForOfStatement"||t.parent.type==="ForInStatement")&&t===t.parent.left}function XK(t){return t.declarations.every(e=>e.init!==null)}var QK=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function YK(t){for(let e=t;e;e=e.parent)if(QK.test(e.type))return e;return null}function ZK(t){return t.defs.length>=2}function eH(t){function e(r){let s=t.range,n=r.identifier.range;return n[0]<s[0]||n[1]>s[1]}return function(r){return r.references.some(e)}}function tH(t){let e=t.range[0],r=t.range[1];return s=>{let n=s.defs[0].name,i=n.range[0],o=n.parent.type==="AssignmentPattern"?n.parent.right:null,a=o&&o.range[0],l=o&&o.range[1];return s.references.some(u=>{let c=u.identifier.range[0],p=u.identifier.range[1];return!u.init&&(c<i||o!==null&&c>=a&&p<=l||!Zl.isFunction(t)&&c>=e&&p<=r)})}}function rH(t){return t.name==="let"}function nH(t){let e=t.defs[0].node.range[0];return t.references.some(r=>{let s=r.identifier.range[0];return!r.init&&s<e})}function sH(t){let r=t.defs[0].node.range[0];for(let s of t.references){if(s.init||s.identifier.range[0]<r)continue;let n=s.from.variableScope;for(;n!==t.scope;){if(n.block.type==="FunctionDeclaration"&&n.block.id){let i=n.block.id.name,o=n.upper.set.get(i);for(let a of o.references){let l=a.identifier;if(l.parent.type==="CallExpression"&&l.parent.callee===l&&l.range[0]<r)return!0}}n=n.upper.variableScope}}return!1}function iH(t,e){return r=>Zl.getVariableByName(e.getScope(t),r.name)!==r}oB.exports={meta:{type:"suggestion",docs:{description:"Require `let` or `const` instead of `var`",dialects:["JavaScript","TypeScript"],recommended:!1,url:"https://eslint.org/docs/latest/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(t){let e=t.sourceCode;function r(i){return i.init?e.getDeclaredVariables(i).some(tH(i.init)):!1}function s(i){let o=e.getDeclaredVariables(i),a=YK(i),l=new Set([...Zl.STATEMENT_LIST_PARENTS,"TSModuleBlock"]);return!(i.parent.type==="SwitchCase"||i.declarations.some(r)||o.some(HK)||o.some(ZK)||o.some(eH(a))||o.some(rH)||o.some(nH)||o.some(sH)||o.some(iH(i,e))||Zl.isInLoop(i)&&(o.some(JK)||!aB(i)&&!XK(i))||!aB(i)&&!(i.parent.type==="ForStatement"&&i.parent.init===i)&&!l.has(i.parent.type))}function n(i){t.report({node:i,messageId:"unexpectedVar",fix(o){let a=e.getFirstToken(i,{filter:l=>l.value==="var"});return s(i)?new KK(o,e).retainRange(i.range).replaceTextRange(a.range,"let"):null}})}return{"VariableDeclaration:exit"(i){i.kind==="var"&&(i.parent.type==="TSModuleBlock"&&i.parent.parent.type==="TSModuleDeclaration"&&i.parent.parent.global||n(i))}}}}});var cB=B((hie,uB)=>{"use strict";uB.exports={meta:{type:"suggestion",defaultOptions:[{allowAsStatement:!1}],docs:{description:"Disallow `void` operators",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-void"},messages:{noVoid:"Expected 'undefined' and instead saw 'void'."},schema:[{type:"object",properties:{allowAsStatement:{type:"boolean"}},additionalProperties:!1}]},create(t){let[{allowAsStatement:e}]=t.options;return{'UnaryExpression[operator="void"]'(r){e&&r.parent&&r.parent.type==="ExpressionStatement"||t.report({node:r,messageId:"noVoid"})}}}}});var hB=B((mie,fB)=>{"use strict";var pB=qi(),aH=X(),oH=40;fB.exports={meta:{type:"suggestion",defaultOptions:[{location:"start",terms:["todo","fixme","xxx"]}],docs:{description:"Disallow specified warning terms in comments",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-warning-comments"},schema:[{type:"object",properties:{terms:{type:"array",items:{type:"string"}},location:{enum:["start","anywhere"]},decoration:{type:"array",items:{type:"string",pattern:"^\\S$"},minItems:1,uniqueItems:!0}},additionalProperties:!1}],messages:{unexpectedComment:"Unexpected '{{matchedTerm}}' comment: '{{comment}}'."}},create(t){let e=t.sourceCode,[{decoration:r,location:s,terms:n}]=t.options,i=pB(r?r.join(""):""),o=/\bno-warning-comments\b/u;function a(p){let h=pB(p),f="\\b",d="";s==="start"?d=`^[\\s${i}]*`:/^\w/u.test(p)&&(d=f);let g=/\w$/u.test(p)?f:"",y="iu";return new RegExp(`${d}${h}${g}`,y)}let l=n.map(a);function u(p){let h=[];return l.forEach((f,d)=>{f.test(p)&&h.push(n[d])}),h}function c(p){let h=p.value;if(aH.isDirectiveComment(p)&&o.test(h))return;u(h).forEach(d=>{let g="",y=!1;for(let v of h.trim().split(/\s+/u)){let S=g?`${g} ${v}`:v;if(S.length<=oH)g=S;else{y=!0;break}}t.report({node:p,messageId:"unexpectedComment",data:{matchedTerm:d,comment:`${g}${y?"...":""}`}})})}return{Program(){e.getAllComments().filter(h=>h.type!=="Shebang").forEach(c)}}}}});var dB=B((die,mB)=>{"use strict";var dm=X();mB.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"no-whitespace-before-property",url:"https://eslint.style/rules/no-whitespace-before-property"}}]},type:"layout",docs:{description:"Disallow whitespace before properties",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-whitespace-before-property"},fixable:"whitespace",schema:[],messages:{unexpectedWhitespace:"Unexpected whitespace before property {{propName}}."}},create(t){let e=t.sourceCode;function r(s,n,i){t.report({node:s,messageId:"unexpectedWhitespace",data:{propName:e.getText(s.property)},fix(o){let a="";return!s.computed&&!s.optional&&dm.isDecimalInteger(s.object)||e.commentsExistBetween(n,i)?null:(s.optional?a="?.":s.computed||(a="."),o.replaceTextRange([n.range[1],i.range[0]],a))}})}return{MemberExpression(s){let n,i;dm.isTokenOnSameLine(s.object,s.property)&&(s.computed?(n=e.getTokenBefore(s.property,dm.isOpeningBracketToken),i=e.getTokenBefore(n,s.optional?1:0)):(n=e.getFirstToken(s.property),i=e.getTokenBefore(n,1)),e.isSpaceBetween(i,n)&&r(s,i,n))}}}}});var yB=B((gie,gB)=>{"use strict";gB.exports={meta:{type:"suggestion",docs:{description:"Disallow `with` statements",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-with"},schema:[],messages:{unexpectedWith:"Unexpected use of 'with' statement."}},create(t){let e=t.sourceCode;return{WithStatement(r){t.report({node:r,loc:e.getFirstToken(r).loc,messageId:"unexpectedWith"})}}}}});var EB=B((yie,xB)=>{"use strict";var mi={enum:["beside","below","any"]};xB.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"nonblock-statement-body-position",url:"https://eslint.style/rules/nonblock-statement-body-position"}}]},type:"layout",docs:{description:"Enforce the location of single-line statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/nonblock-statement-body-position"},fixable:"whitespace",schema:[mi,{properties:{overrides:{properties:{if:mi,else:mi,while:mi,do:mi,for:mi},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(t){let e=t.sourceCode;function r(n){return t.options[1]&&t.options[1].overrides&&t.options[1].overrides[n]||t.options[0]||"beside"}function s(n,i){let o=r(i);if(n.type==="BlockStatement"||o==="any")return;let a=e.getTokenBefore(n);a.loc.end.line===n.loc.start.line&&o==="below"?t.report({node:n,messageId:"expectLinebreak",fix:l=>l.insertTextBefore(n,`
87
+ `)}):a.loc.end.line!==n.loc.start.line&&o==="beside"&&t.report({node:n,messageId:"expectNoLinebreak",fix(l){return e.getText().slice(a.range[1],n.range[0]).trim()?null:l.replaceTextRange([a.range[1],n.range[0]]," ")}})}return{IfStatement(n){s(n.consequent,"if"),n.alternate&&n.alternate.type!=="IfStatement"&&s(n.alternate,"else")},WhileStatement:n=>s(n.body,"while"),DoWhileStatement:n=>s(n.body,"do"),ForStatement:n=>s(n.body,"for"),ForInStatement:n=>s(n.body,"for"),ForOfStatement:n=>s(n.body,"for")}}}});var SB=B((xie,vB)=>{"use strict";var di=X(),Aa={oneOf:[{enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]};function ka(t){let e=!1,r=Number.POSITIVE_INFINITY,s=!1;return t?t==="always"?r=0:t==="never"?r=Number.POSITIVE_INFINITY:(e=!!t.multiline,r=t.minProperties||Number.POSITIVE_INFINITY,s=!!t.consistent):s=!0,{multiline:e,minProperties:r,consistent:s}}function bB(t){return typeof t=="object"&&t!==null}function lH(t){return bB(t)||typeof t=="string"}function uH(t){if(bB(t)&&Object.values(t).some(lH))return{ObjectExpression:ka(t.ObjectExpression),ObjectPattern:ka(t.ObjectPattern),ImportDeclaration:ka(t.ImportDeclaration),ExportNamedDeclaration:ka(t.ExportDeclaration)};let e=ka(t);return{ObjectExpression:e,ObjectPattern:e,ImportDeclaration:e,ExportNamedDeclaration:e}}function cH(t,e,r,s){let n;return t.type==="ObjectExpression"||t.type==="ObjectPattern"?n=t.properties:n=t.specifiers.filter(i=>i.type==="ImportSpecifier"||i.type==="ExportSpecifier"),n.length>=e.minProperties||e.multiline&&n.length>0&&r.loc.start.line!==s.loc.end.line}vB.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"object-curly-newline",url:"https://eslint.style/rules/object-curly-newline"}}]},type:"layout",docs:{description:"Enforce consistent line breaks after opening and before closing braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-newline"},fixable:"whitespace",schema:[{oneOf:[Aa,{type:"object",properties:{ObjectExpression:Aa,ObjectPattern:Aa,ImportDeclaration:Aa,ExportDeclaration:Aa},additionalProperties:!1,minProperties:1}]}],messages:{unexpectedLinebreakBeforeClosingBrace:"Unexpected line break before this closing brace.",unexpectedLinebreakAfterOpeningBrace:"Unexpected line break after this opening brace.",expectedLinebreakBeforeClosingBrace:"Expected a line break before this closing brace.",expectedLinebreakAfterOpeningBrace:"Expected a line break after this opening brace."}},create(t){let e=t.sourceCode,r=uH(t.options[0]);function s(n){let i=r[n.type];if(n.type==="ImportDeclaration"&&!n.specifiers.some(f=>f.type==="ImportSpecifier")||n.type==="ExportNamedDeclaration"&&!n.specifiers.some(f=>f.type==="ExportSpecifier"))return;let o=e.getFirstToken(n,f=>f.value==="{"),a;n.typeAnnotation?a=e.getTokenBefore(n.typeAnnotation):a=e.getLastToken(n,f=>f.value==="}");let l=e.getTokenAfter(o,{includeComments:!0}),u=e.getTokenBefore(a,{includeComments:!0}),c=cH(n,i,l,u),p=di.isCommentToken(l),h=di.isCommentToken(u);if(l=e.getTokenAfter(o),u=e.getTokenBefore(a),c)di.isTokenOnSameLine(o,l)&&t.report({messageId:"expectedLinebreakAfterOpeningBrace",node:n,loc:o.loc,fix(f){return p?null:f.insertTextAfter(o,`
88
+ `)}}),di.isTokenOnSameLine(u,a)&&t.report({messageId:"expectedLinebreakBeforeClosingBrace",node:n,loc:a.loc,fix(f){return h?null:f.insertTextBefore(a,`
89
+ `)}});else{let f=i.consistent,d=!di.isTokenOnSameLine(o,l),g=!di.isTokenOnSameLine(u,a);(!f&&d||f&&d&&!g)&&t.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:n,loc:o.loc,fix(y){return p?null:y.removeRange([o.range[1],l.range[0]])}}),(!f&&g||f&&!d&&g)&&t.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:n,loc:a.loc,fix(y){return h?null:y.removeRange([u.range[1],a.range[0]])}})}}return{ObjectExpression:s,ObjectPattern:s,ImportDeclaration:s,ExportNamedDeclaration:s}}}});var wB=B((Eie,CB)=>{"use strict";var ds=X();CB.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"object-curly-spacing",url:"https://eslint.style/rules/object-curly-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside braces",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{arraysInObjects:{type:"boolean"},objectsInObjects:{type:"boolean"}},additionalProperties:!1}],messages:{requireSpaceBefore:"A space is required before '{{token}}'.",requireSpaceAfter:"A space is required after '{{token}}'.",unexpectedSpaceBefore:"There should be no space before '{{token}}'.",unexpectedSpaceAfter:"There should be no space after '{{token}}'."}},create(t){let e=t.options[0]==="always",r=t.sourceCode;function s(d){return t.options[1]?t.options[1][d]===!e:!1}let n={spaced:e,arraysInObjectsException:s("arraysInObjects"),objectsInObjectsException:s("objectsInObjects")};function i(d,g){let y=t.sourceCode.getTokenAfter(g,{includeComments:!0});t.report({node:d,loc:{start:g.loc.end,end:y.loc.start},messageId:"unexpectedSpaceAfter",data:{token:g.value},fix(v){return v.removeRange([g.range[1],y.range[0]])}})}function o(d,g){let y=t.sourceCode.getTokenBefore(g,{includeComments:!0});t.report({node:d,loc:{start:y.loc.end,end:g.loc.start},messageId:"unexpectedSpaceBefore",data:{token:g.value},fix(v){return v.removeRange([y.range[1],g.range[0]])}})}function a(d,g){t.report({node:d,loc:g.loc,messageId:"requireSpaceAfter",data:{token:g.value},fix(y){return y.insertTextAfter(g," ")}})}function l(d,g){t.report({node:d,loc:g.loc,messageId:"requireSpaceBefore",data:{token:g.value},fix(y){return y.insertTextBefore(g," ")}})}function u(d,g,y,v,S){if(ds.isTokenOnSameLine(g,y)){let A=r.isSpaceBetween(g,y);n.spaced&&!A&&a(d,g),!n.spaced&&A&&y.type!=="Line"&&i(d,g)}if(ds.isTokenOnSameLine(v,S)){let E=(n.arraysInObjectsException&&ds.isClosingBracketToken(v)||n.objectsInObjectsException&&ds.isClosingBraceToken(v))&&r.getNodeByRangeIndex(v.range[0]).type,k=n.arraysInObjectsException&&E==="ArrayExpression"||n.objectsInObjectsException&&(E==="ObjectExpression"||E==="ObjectPattern")?!n.spaced:n.spaced,T=r.isSpaceBetween(v,S);k&&!T&&l(d,S),!k&&T&&o(d,S)}}function c(d){let g=d.properties.at(-1);return r.getTokenAfter(g,ds.isClosingBraceToken)}function p(d){if(d.properties.length===0)return;let g=r.getFirstToken(d),y=c(d),v=r.getTokenAfter(g,{includeComments:!0}),S=r.getTokenBefore(y,{includeComments:!0});u(d,g,v,S,y)}function h(d){if(d.specifiers.length===0)return;let g=d.specifiers[0],y=d.specifiers.at(-1);if(y.type!=="ImportSpecifier")return;g.type!=="ImportSpecifier"&&(g=d.specifiers[1]);let v=r.getTokenBefore(g),S=r.getTokenAfter(y,ds.isNotCommaToken),A=r.getTokenAfter(v,{includeComments:!0}),E=r.getTokenBefore(S,{includeComments:!0});u(d,v,A,E,S)}function f(d){if(d.specifiers.length===0)return;let g=d.specifiers[0],y=d.specifiers.at(-1),v=r.getTokenBefore(g),S=r.getTokenAfter(y,ds.isNotCommaToken),A=r.getTokenAfter(v,{includeComments:!0}),E=r.getTokenBefore(S,{includeComments:!0});u(d,v,A,E,S)}return{ObjectPattern:p,ObjectExpression:p,ImportDeclaration:h,ExportNamedDeclaration:f}}}});var kB=B((bie,AB)=>{"use strict";AB.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"object-property-newline",url:"https://eslint.style/rules/object-property-newline"}}]},type:"layout",docs:{description:"Enforce placing object properties on separate lines",recommended:!1,url:"https://eslint.org/docs/latest/rules/object-property-newline"},schema:[{type:"object",properties:{allowAllPropertiesOnSameLine:{type:"boolean",default:!1},allowMultiplePropertiesPerLine:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"whitespace",messages:{propertiesOnNewlineAll:"Object properties must go on a new line if they aren't all on the same line.",propertiesOnNewline:"Object properties must go on a new line."}},create(t){let e=t.options[0]&&(t.options[0].allowAllPropertiesOnSameLine||t.options[0].allowMultiplePropertiesPerLine),r=e?"propertiesOnNewlineAll":"propertiesOnNewline",s=t.sourceCode;return{ObjectExpression(n){if(e&&n.properties.length>1){let i=s.getFirstToken(n.properties[0]),o=s.getLastToken(n.properties.at(-1));if(i.loc.end.line===o.loc.start.line)return}for(let i=1;i<n.properties.length;i++){let o=s.getLastToken(n.properties[i-1]),a=s.getFirstToken(n.properties[i]);o.loc.end.line===a.loc.start.line&&t.report({node:n,loc:a.loc,messageId:r,fix(l){let c=[s.getTokenBefore(a).range[1],a.range[0]];return s.text.slice(c[0],c[1]).trim()?null:l.replaceTextRange(c,`
90
+ `)}})}}}}}});var PB=B((vie,IB)=>{"use strict";var gs={always:"always",never:"never",methods:"methods",properties:"properties",consistent:"consistent",consistentAsNeeded:"consistent-as-needed"},gi=X(),{containsLetter:pH}=Yf(),fH=/[^_$0-9]/u,hH=/^\s*\*/u;function mH(t){let e=fH.exec(t);if(!e)return!1;let r=e[0];return pH(r)?r===r.toUpperCase():!1}function dH(t){return t.kind!=="set"&&t.kind!=="get"&&t.type!=="SpreadElement"&&t.type!=="SpreadProperty"&&t.type!=="ExperimentalSpreadProperty"}function TB(t){return t.type==="Literal"&&typeof t.value=="string"}function DB(t){return!t.computed&&gi.getStaticPropertyName(t)==="__proto__"}function gH(t){return t.shorthand||t.method}function yH(t,e){for(let r=e.getScope(t).variableScope;r;r=r.upper?.variableScope){if(r.type==="class-field-initializer"||r.type==="class-static-block")return null;let s=r.block;if(s.type==="FunctionExpression"||s.type==="FunctionDeclaration")return s.parent.type==="Property"&&s.parent.method?s.parent:null}return null}function xH(t){let e=t.value;return DB(t)?!1:e.type==="FunctionExpression"?!e.id:e.type==="Identifier"?gi.getStaticPropertyName(t)===e.name:!1}IB.exports={meta:{type:"suggestion",docs:{description:"Require or disallow method and property shorthand syntax for object literals",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/object-shorthand"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["always","methods","properties","never","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","methods","properties"]},{type:"object",properties:{avoidQuotes:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always","methods"]},{type:"object",properties:{ignoreConstructors:{type:"boolean"},methodsIgnorePattern:{type:"string"},avoidQuotes:{type:"boolean"},avoidExplicitReturnArrows:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},defaultOptions:["always"],messages:{expectedAllPropertiesShorthanded:"Expected shorthand for all properties.",expectedLiteralMethodLongform:"Expected longform method syntax for string literal keys.",expectedPropertyShorthand:"Expected property shorthand.",expectedPropertyLongform:"Expected longform property syntax.",expectedMethodShorthand:"Expected method shorthand.",expectedMethodLongform:"Expected longform method syntax.",unexpectedMix:"Unexpected mix of shorthand and non-shorthand properties."}},create(t){let e=t.options[0],r=e===gs.methods||e===gs.always,s=e===gs.properties||e===gs.always,n=e===gs.never,i=e===gs.consistent,o=e===gs.consistentAsNeeded,a=t.options[1]||{},l=a.ignoreConstructors,u=a.methodsIgnorePattern?new RegExp(a.methodsIgnorePattern,"u"):null,c=a.avoidQuotes,p=!!a.avoidExplicitReturnArrows,h=t.sourceCode;function f(w,R){let j=w.properties.filter(dH);if(j.length>0){let $=j.filter(gH);$.length!==j.length&&($.length>0?t.report({node:w,messageId:"unexpectedMix"}):R&&j.every(xH)&&t.report({node:w,messageId:"expectedAllPropertiesShorthanded"}))}}function d(w,R){let j=R.computed?h.getFirstToken(R,gi.isOpeningBracketToken):h.getFirstToken(R.key),$=R.computed?h.getFirstTokenBetween(R.key,R.value,gi.isClosingBracketToken):h.getLastToken(R.key),M=h.text.slice(j.range[0],$.range[1]),N="";if(h.commentsExistBetween($,R.value))return null;R.value.async&&(N+="async "),R.value.generator&&(N+="*");let b=[j.range[0],R.range[1]],C=N+M;if(R.value.type==="FunctionExpression"){let be=h.getTokens(R.value).find(pe=>pe.type==="Keyword"&&pe.value==="function"),te=R.value.generator?h.getTokenAfter(be):be;return w.replaceTextRange(b,C+h.text.slice(te.range[1],R.value.range[1]))}let P=h.getTokenBefore(R.value.body,gi.isArrowToken),F=h.text.slice(P.range[1],R.value.range[1]),U=h.getFirstToken(R.value,{skip:R.value.async?1:0}).range[0],z=h.getTokenBefore(P).range[1],W=R.value.params.length===1&&R.value.params[0].range[0]===U,re=h.text.slice(U,z),ue=W?`(${re})`:re;return w.replaceTextRange(b,C+ue+F)}function g(w,R){let j=R.computed?h.getTokens(R).find(b=>b.value==="["):h.getFirstToken(R.key),$=R.computed?h.getTokensBetween(R.key,R.value).find(b=>b.value==="]"):h.getLastToken(R.key),M=h.text.slice(j.range[0],$.range[1]),N="function";return R.value.async&&(N=`async ${N}`),R.value.generator&&(N=`${N}*`),w.replaceTextRange([R.range[0],$.range[1]],`${M}: ${N}`)}let y=[],v=new WeakSet,S=new WeakSet,A=new WeakSet;function E(w){y.unshift(new Set),h.getScope(w).variables.filter(R=>R.name==="arguments").forEach(R=>{R.references.map(j=>j.identifier).forEach(j=>A.add(j))})}function k(){y.shift()}function T(){y[0].forEach(w=>v.add(w))}return{Program:E,FunctionDeclaration:E,FunctionExpression:E,"Program:exit":k,"FunctionDeclaration:exit":k,"FunctionExpression:exit":k,ArrowFunctionExpression(w){y[0].add(w)},"ArrowFunctionExpression:exit"(w){y[0].delete(w)},ThisExpression:T,Super(w){T();let R=yH(w,h);R&&S.add(R)},MetaProperty(w){w.meta.name==="new"&&w.property.name==="target"&&T()},Identifier(w){A.has(w)&&T()},ObjectExpression(w){i?f(w,!1):o&&f(w,!0)},"Property:exit"(w){let R=w.method||w.shorthand;if(w.parent.type!=="ObjectPattern"&&!(w.kind==="get"||w.kind==="set")&&!DB(w)&&!(w.computed&&w.value.type!=="FunctionExpression"&&w.value.type!=="ArrowFunctionExpression")){if(R)if(w.method&&!S.has(w)&&(n||c&&TB(w.key))){let j=n?"expectedMethodLongform":"expectedLiteralMethodLongform";t.report({node:w,messageId:j,fix:$=>g($,w)})}else n&&!w.method&&t.report({node:w,messageId:"expectedPropertyLongform",fix:j=>j.insertTextAfter(w.key,`: ${w.key.name}`)});else if(r&&!w.value.id&&(w.value.type==="FunctionExpression"||w.value.type==="ArrowFunctionExpression")){let j=gi.getStaticPropertyName(w);if(l&&j!==null&&mH(j)||u&&j!==null&&u.test(j)||c&&TB(w.key))return;(w.value.type==="FunctionExpression"||w.value.type==="ArrowFunctionExpression"&&w.value.body.type==="BlockStatement"&&p&&!v.has(w.value))&&t.report({node:w,messageId:"expectedMethodShorthand",fix:$=>d($,w)})}else if(w.value.type==="Identifier"&&w.key.name===w.value.name&&s){if(h.getCommentsInside(w).some($=>$.type==="Block"&&hH.test($.value)&&$.value.includes("@type")))return;t.report({node:w,messageId:"expectedPropertyShorthand",fix($){return h.getCommentsInside(w).length>0?null:$.replaceText(w,w.value.name)}})}else if(w.value.type==="Identifier"&&w.key.type==="Literal"&&w.key.value===w.value.name&&s){if(c||h.getCommentsInside(w).some($=>$.type==="Block"&&$.value.startsWith("*")&&$.value.includes("@type")))return;t.report({node:w,messageId:"expectedPropertyShorthand",fix($){return h.getCommentsInside(w).length>0?null:$.replaceText(w,w.value.name)}})}}}}}}});var _B=B((Sie,FB)=>{"use strict";var EH=X();function bH(t){return EH.STATEMENT_LIST_PARENTS.has(t.parent.type)}FB.exports={meta:{type:"suggestion",docs:{description:"Enforce variables to be declared either together or separately in functions",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/one-var"},fixable:"code",schema:[{oneOf:[{enum:["always","never","consecutive"]},{type:"object",properties:{separateRequires:{type:"boolean"},var:{enum:["always","never","consecutive"]},let:{enum:["always","never","consecutive"]},const:{enum:["always","never","consecutive"]},using:{enum:["always","never","consecutive"]},awaitUsing:{enum:["always","never","consecutive"]}},additionalProperties:!1},{type:"object",properties:{initialized:{enum:["always","never","consecutive"]},uninitialized:{enum:["always","never","consecutive"]}},additionalProperties:!1}]}],defaultOptions:["always"],messages:{combineUninitialized:"Combine this with the previous '{{type}}' statement with uninitialized variables.",combineInitialized:"Combine this with the previous '{{type}}' statement with initialized variables.",splitUninitialized:"Split uninitialized '{{type}}' declarations into multiple statements.",splitInitialized:"Split initialized '{{type}}' declarations into multiple statements.",splitRequires:"Split requires to be separated into a single block.",combine:"Combine this with the previous '{{type}}' statement.",split:"Split '{{type}}' declarations into multiple statements."}},create(t){let e="always",r="never",s="consecutive",n=t.options[0],i={};typeof n=="string"?(i.var={uninitialized:n,initialized:n},i.let={uninitialized:n,initialized:n},i.const={uninitialized:n,initialized:n},i.using={uninitialized:n,initialized:n},i.awaitUsing={uninitialized:n,initialized:n}):typeof n=="object"&&(i.separateRequires=!!n.separateRequires,i.var={uninitialized:n.var,initialized:n.var},i.let={uninitialized:n.let,initialized:n.let},i.const={uninitialized:n.const,initialized:n.const},i.using={uninitialized:n.using,initialized:n.using},i.awaitUsing={uninitialized:n.awaitUsing,initialized:n.awaitUsing},Object.hasOwn(n,"uninitialized")&&(i.var.uninitialized=n.uninitialized,i.let.uninitialized=n.uninitialized,i.const.uninitialized=n.uninitialized,i.using.uninitialized=n.uninitialized,i.awaitUsing.uninitialized=n.uninitialized),Object.hasOwn(n,"initialized")&&(i.var.initialized=n.initialized,i.let.initialized=n.initialized,i.const.initialized=n.initialized,i.using.initialized=n.initialized,i.awaitUsing.initialized=n.initialized));let o=t.sourceCode,a=[],l=[];function u(){l.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1},using:{initialized:!1,uninitialized:!1},awaitUsing:{initialized:!1,uninitialized:!1}})}function c(){a.push({initialized:!1,uninitialized:!1}),u()}function p(){l.pop()}function h(){a.pop(),p()}function f(k){return k.init&&k.init.type==="CallExpression"&&k.init.callee.name==="require"}function d(k,T,w){for(let R=0;R<T.length;R++)T[R].init===null?i[k]&&i[k].uninitialized===e&&(w.uninitialized=!0):i[k]&&i[k].initialized===e&&(i.separateRequires&&f(T[R])?w.required=!0:w.initialized=!0)}function g(k){let T;return k==="var"?T=a.at(-1):k==="let"?T=l.at(-1).let:k==="const"?T=l.at(-1).const:k==="using"?T=l.at(-1).using:k==="awaitUsing"&&(T=l.at(-1).awaitUsing),T}function y(k){let T={uninitialized:0,initialized:0};for(let w=0;w<k.length;w++)k[w].init===null?T.uninitialized++:T.initialized++;return T}function v(k,T){let w=y(T),R=i[k]||{},j=g(k),$=T.some(f);return R.uninitialized===e&&R.initialized===e&&(j.uninitialized||j.initialized)&&!$||w.uninitialized>0&&R.uninitialized===e&&j.uninitialized||w.initialized>0&&R.initialized===e&&j.initialized&&!$||j.required&&$?!1:(d(k,T,j),!0)}function S(k){let T=k[0],w=Array.isArray(T.parent.parent.body)?T.parent.parent.body:[],R=w.findIndex($=>$.range[0]===T.parent.range[0]),j=w[R-1];return function*(M){let N=o.getFirstToken(T.parent),b=o.getTokenBefore(N);if(j&&j.kind===T.parent.kind){if(b.value===";"?yield M.replaceText(b,","):yield M.insertTextAfter(b,","),T.parent.kind==="await using"){let C=o.getTokenAfter(N);yield M.remove(C)}yield M.replaceText(N,"")}}}function A(k){let{parent:T}=k;return bH(T.type==="ExportNamedDeclaration"?T:k)?w=>k.declarations.map(R=>{let j=o.getTokenAfter(R);if(j===null)return null;let $=o.getTokenAfter(j,{includeComments:!0});if(j.value!==",")return null;let M=k.parent.type==="ExportNamedDeclaration"?"export ":"";if($.range[0]===j.range[1])return w.replaceText(j,`; ${M}${k.kind} `);if($.loc.start.line>j.loc.end.line||$.type==="Line"||$.type==="Block"){let N=$;for(;N.type==="Line"||N.type==="Block";)N=o.getTokenAfter(N,{includeComments:!0});return w.replaceTextRange([j.range[0],N.range[0]],`;${o.text.slice(j.range[1],N.range[0])}${M}${k.kind} `)}return w.replaceText(j,`; ${M}${k.kind}`)}).filter(R=>R):null}function E(k){let T=k.parent,w=k.kind,R=w==="await using"?"awaitUsing":w;if(!i[R])return;let j=k.declarations,$=y(j),M=j.some(f)&&!j.every(f);i[R].initialized===e&&i.separateRequires&&M&&t.report({node:k,messageId:"splitRequires"});let N=T.body&&T.body.length>0&&T.body.indexOf(k)||0;if(N>0){let b=T.body[N-1],C=b.type==="VariableDeclaration",P=j.concat(b.declarations||[]);if(C&&b.kind===w&&!(P.some(f)&&!P.every(f))){let F=y(b.declarations);i[R].initialized===s&&i[R].uninitialized===s?t.report({node:k,messageId:"combine",data:{type:w},fix:S(j)}):i[R].initialized===s&&$.initialized>0&&F.initialized>0?t.report({node:k,messageId:"combineInitialized",data:{type:w},fix:S(j)}):i[R].uninitialized===s&&$.uninitialized>0&&F.uninitialized>0&&t.report({node:k,messageId:"combineUninitialized",data:{type:w},fix:S(j)})}}if(!v(R,j)){if(i[R].initialized===e&&i[R].uninitialized===e)t.report({node:k,messageId:"combine",data:{type:w},fix:S(j)});else if(i[R].initialized===e&&$.initialized>0&&t.report({node:k,messageId:"combineInitialized",data:{type:w},fix:S(j)}),i[R].uninitialized===e&&$.uninitialized>0){if(k.parent.left===k&&(k.parent.type==="ForInStatement"||k.parent.type==="ForOfStatement"))return;t.report({node:k,messageId:"combineUninitialized",data:{type:w},fix:S(j)})}}(T.type!=="ForStatement"||T.init!==k)&&$.uninitialized+$.initialized>1&&(i[R].initialized===r&&i[R].uninitialized===r?t.report({node:k,messageId:"split",data:{type:w},fix:A(k)}):i[R].initialized===r&&$.initialized>0?t.report({node:k,messageId:"splitInitialized",data:{type:w},fix:A(k)}):i[R].uninitialized===r&&$.uninitialized>0&&t.report({node:k,messageId:"splitUninitialized",data:{type:w},fix:A(k)}))}return{Program:c,FunctionDeclaration:c,FunctionExpression:c,ArrowFunctionExpression:c,StaticBlock:c,BlockStatement:u,ForStatement:u,ForInStatement:u,ForOfStatement:u,SwitchStatement:u,VariableDeclaration:E,"ForStatement:exit":p,"ForOfStatement:exit":p,"ForInStatement:exit":p,"SwitchStatement:exit":p,"BlockStatement:exit":p,"Program:exit":h,"FunctionDeclaration:exit":h,"FunctionExpression:exit":h,"ArrowFunctionExpression:exit":h,"StaticBlock:exit":h}}}});var OB=B((Cie,BB)=>{"use strict";BB.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"one-var-declaration-per-line",url:"https://eslint.style/rules/one-var-declaration-per-line"}}]},type:"suggestion",docs:{description:"Require or disallow newlines around variable declarations",recommended:!1,url:"https://eslint.org/docs/latest/rules/one-var-declaration-per-line"},schema:[{enum:["always","initializations"]}],fixable:"whitespace",messages:{expectVarOnNewline:"Expected variable declaration to be on a new line."}},create(t){let e=t.options[0]==="always";function r(n){return n==="ForStatement"||n==="ForInStatement"||n==="ForOfStatement"}function s(n){if(r(n.parent.type))return;let i=n.declarations,o;i.forEach(a=>{o&&o.loc.end.line===a.loc.start.line&&(e||o.init||a.init)&&t.report({node:n,messageId:"expectVarOnNewline",loc:a.loc,fix:l=>l.insertTextBefore(a,`
91
+ `)}),o=a})}return{VariableDeclaration:s}}}});var RB=B((wie,NB)=>{"use strict";var ys=X();function LB(t){return["*","&","^","|"].includes(t)}function vH(t){return["+","-","/","%","<<",">>",">>>","**"].includes(t)}function gm(t){return t.type==="Identifier"||t.type==="MemberExpression"&&(t.object.type==="Identifier"||t.object.type==="ThisExpression")&&(!t.computed||t.property.type==="Literal")}NB.exports={meta:{type:"suggestion",defaultOptions:["always"],docs:{description:"Require or disallow assignment operator shorthand where possible",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/operator-assignment"},schema:[{enum:["always","never"]}],fixable:"code",messages:{replaced:"Assignment (=) can be replaced with operator assignment ({{operator}}).",unexpected:"Unexpected operator assignment ({{operator}}) shorthand."}},create(t){let e=t.options[0]==="never",r=t.sourceCode;function s(o){return r.getFirstTokenBetween(o.left,o.right,a=>a.value===o.operator)}function n(o){if(o.operator!=="="||o.right.type!=="BinaryExpression")return;let a=o.left,l=o.right,u=l.operator;if(LB(u)||vH(u)){let c=`${u}=`;ys.isSameReference(a,l.left,!0)?t.report({node:o,messageId:"replaced",data:{operator:c},fix(p){if(gm(a)&&gm(l.left)){let h=s(o),f=s(l),d=r.getText().slice(o.range[0],h.range[0]),g=r.getText().slice(f.range[1],o.right.range[1]);return r.commentsExistBetween(h,f)?null:p.replaceText(o,`${d}${c}${g}`)}return null}}):ys.isSameReference(a,l.right,!0)&&LB(u)&&t.report({node:o,messageId:"replaced",data:{operator:c}})}}function i(o){o.operator!=="="&&!ys.isLogicalAssignmentOperator(o.operator)&&t.report({node:o,messageId:"unexpected",data:{operator:o.operator},fix(a){if(gm(o.left)){let l=r.getFirstToken(o),u=s(o),c=r.getText().slice(o.range[0],u.range[0]),p=o.operator.slice(0,-1),h;if(r.commentsExistBetween(l,u))return null;if(ys.getPrecedence(o.right)<=ys.getPrecedence({type:"BinaryExpression",operator:p})&&!ys.isParenthesised(r,o.right))h=`${r.text.slice(u.range[1],o.right.range[0])}(${r.getText(o.right)})`;else{let f=r.getTokenAfter(u,{includeComments:!0}),d="";u.range[1]===f.range[0]&&!ys.canTokensBeAdjacent({type:"Punctuator",value:p},f)&&(d=" "),h=`${d}${r.text.slice(u.range[1],o.range[1])}`}return a.replaceText(o,`${c}= ${c}${p}${h}`)}return null}})}return{AssignmentExpression:e?i:n}}}});var MB=B((Aie,jB)=>{"use strict";var an=X();jB.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"operator-linebreak",url:"https://eslint.style/rules/operator-linebreak"}}]},type:"layout",docs:{description:"Enforce consistent linebreak style for operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/operator-linebreak"},schema:[{enum:["after","before","none",null]},{type:"object",properties:{overrides:{type:"object",additionalProperties:{enum:["after","before","none","ignore"]}}},additionalProperties:!1}],fixable:"code",messages:{operatorAtBeginning:"'{{operator}}' should be placed at the beginning of the line.",operatorAtEnd:"'{{operator}}' should be placed at the end of the line.",badLinebreak:"Bad line breaking before and after '{{operator}}'.",noLinebreak:"There should be no line break before or after '{{operator}}'."}},create(t){let e=!t.options[0],r=t.options[0]||"after",s=t.options[1]||{},n=s.overrides?Object.assign({},s.overrides):{};e&&!n["?"]&&(n["?"]="before"),e&&!n[":"]&&(n[":"]="before");let i=t.sourceCode;function o(u,c){return p=>{let h=i.getTokenBefore(u),f=i.getTokenAfter(u),d=i.text.slice(h.range[1],u.range[0]),g=i.text.slice(u.range[1],f.range[0]),y=!an.isTokenOnSameLine(h,u),v=!an.isTokenOnSameLine(u,f),S,A;if(y!==v&&c!=="none"){if(i.getTokenBefore(u,{includeComments:!0})!==h&&i.getTokenAfter(u,{includeComments:!0})!==f)return null;S=g,A=d}else{let E=an.createGlobalLinebreakMatcher();if(S=c==="before"||d.trim()?d:d.replace(E,""),A=c==="after"||g.trim()?g:g.replace(E,""),S===d&&A===g)return null}return A===""&&f.type==="Punctuator"&&"+-".includes(u.value)&&f.value===u.value&&(A+=" "),p.replaceTextRange([h.range[1],f.range[0]],S+u.value+A)}}function a(u,c,p){let h=i.getTokenBefore(c,S=>S.value===p),f=i.getTokenBefore(h),d=i.getTokenAfter(h),g=n[p],y=g||r,v=o(h,y);an.isTokenOnSameLine(f,h)&&an.isTokenOnSameLine(h,d)||(g!=="ignore"&&!an.isTokenOnSameLine(f,h)&&!an.isTokenOnSameLine(h,d)?t.report({node:u,loc:h.loc,messageId:"badLinebreak",data:{operator:p},fix:v}):y==="before"&&an.isTokenOnSameLine(f,h)?t.report({node:u,loc:h.loc,messageId:"operatorAtBeginning",data:{operator:p},fix:v}):y==="after"&&an.isTokenOnSameLine(h,d)?t.report({node:u,loc:h.loc,messageId:"operatorAtEnd",data:{operator:p},fix:v}):y==="none"&&t.report({node:u,loc:h.loc,messageId:"noLinebreak",data:{operator:p},fix:v}))}function l(u){a(u,u.right,u.operator)}return{BinaryExpression:l,LogicalExpression:l,AssignmentExpression:l,VariableDeclarator(u){u.init&&a(u,u.init,"=")},PropertyDefinition(u){u.value&&a(u,u.value,"=")},ConditionalExpression(u){a(u,u.consequent,"?"),a(u,u.alternate,":")}}}}});var UB=B((kie,qB)=>{"use strict";var SH=X();qB.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"padded-blocks",url:"https://eslint.style/rules/padded-blocks"}}]},type:"layout",docs:{description:"Require or disallow padding within blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/padded-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{blocks:{enum:["always","never"]},switches:{enum:["always","never"]},classes:{enum:["always","never"]}},additionalProperties:!1,minProperties:1}]},{type:"object",properties:{allowSingleLineBlocks:{type:"boolean"}},additionalProperties:!1}],messages:{alwaysPadBlock:"Block must be padded by blank lines.",neverPadBlock:"Block must not be padded by blank lines."}},create(t){let e={},r=t.options[0]||"always",s=t.options[1]||{};if(typeof r=="string"){let f=r==="always";e.blocks=f,e.switches=f,e.classes=f}else Object.hasOwn(r,"blocks")&&(e.blocks=r.blocks==="always"),Object.hasOwn(r,"switches")&&(e.switches=r.switches==="always"),Object.hasOwn(r,"classes")&&(e.classes=r.classes==="always");Object.hasOwn(s,"allowSingleLineBlocks")&&(e.allowSingleLineBlocks=s.allowSingleLineBlocks===!0);let n=t.sourceCode;function i(f){return f.type==="SwitchStatement"?n.getTokenBefore(f.cases[0]):f.type==="StaticBlock"?n.getFirstToken(f,{skip:1}):n.getFirstToken(f)}function o(f){return f.type==="Line"||f.type==="Block"}function a(f,d){return d.loc.start.line-f.loc.end.line>=2}function l(f){let d,g=f;do d=g,g=n.getTokenAfter(g,{includeComments:!0});while(o(g)&&g.loc.start.line===d.loc.end.line);return g}function u(f){let d=f,g;do g=d,d=n.getTokenBefore(d,{includeComments:!0});while(o(d)&&d.loc.end.line===g.loc.start.line);return d}function c(f){switch(f.type){case"BlockStatement":case"StaticBlock":return e.blocks;case"SwitchStatement":return e.switches;case"ClassBody":return e.classes;default:throw new Error("unreachable")}}function p(f){let d=i(f),g=l(d),y=n.getTokenBefore(g,{includeComments:!0}),v=n.getLastToken(f),S=u(v),A=n.getTokenAfter(S,{includeComments:!0}),E=a(y,g),k=a(S,A);e.allowSingleLineBlocks&&SH.isTokenOnSameLine(y,A)||(c(f)?(E||t.report({node:f,loc:{start:y.loc.start,end:g.loc.start},fix(T){return T.insertTextAfter(y,`
92
+ `)},messageId:"alwaysPadBlock"}),k||t.report({node:f,loc:{end:A.loc.start,start:S.loc.end},fix(T){return T.insertTextBefore(A,`
93
+ `)},messageId:"alwaysPadBlock"})):(E&&t.report({node:f,loc:{start:y.loc.start,end:g.loc.start},fix(T){return T.replaceTextRange([y.range[1],g.range[0]-g.loc.start.column],`
94
+ `)},messageId:"neverPadBlock"}),k&&t.report({node:f,loc:{end:A.loc.start,start:S.loc.end},messageId:"neverPadBlock",fix(T){return T.replaceTextRange([S.range[1],A.range[0]-A.loc.start.column],`
95
+ `)}})))}let h={};return Object.hasOwn(e,"switches")&&(h.SwitchStatement=function(f){f.cases.length!==0&&p(f)}),Object.hasOwn(e,"blocks")&&(h.BlockStatement=function(f){f.body.length!==0&&p(f)},h.StaticBlock=h.BlockStatement),Object.hasOwn(e,"classes")&&(h.ClassBody=function(f){f.body.length!==0&&p(f)}),h}}});var KB=B((Tie,GB)=>{"use strict";var gr=X(),$B=`[${Array.from(gr.LINEBREAKS).join("")}]`,CH=new RegExp(String.raw`^(\s*?${$B})\s*${$B}(\s*;?)$`,"u"),wH=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,AH=/^require\(/u;function Bt(t){return{test:(e,r)=>r.getFirstToken(e).value===t}}function ym(t){return{test:(e,r)=>e.loc.start.line===e.loc.end.line&&r.getFirstToken(e).value===t}}function xm(t){return{test:(e,r)=>e.loc.start.line!==e.loc.end.line&&r.getFirstToken(e).value===t}}function Em(t){return{test:e=>e.type===t}}function WB(t){if(t.type==="ExpressionStatement"){let e=gr.skipChainExpression(t.expression);return e.type==="UnaryExpression"&&(e=gr.skipChainExpression(e.argument)),e.type==="CallExpression"&&gr.isFunction(e.callee)}return!1}function VB(t,e){if(e.type==="DoWhileStatement"&&e.body.type==="BlockStatement"||WB(e))return!0;let r=t.getLastToken(e,gr.isNotSemicolonToken),s=r&&gr.isClosingBraceToken(r)?t.getNodeByRangeIndex(r.range[0]):null;return!!s&&(s.type==="BlockStatement"||s.type==="SwitchStatement")}function zB(t,e){let r=t.getLastToken(e),s=t.getTokenBefore(r),n=t.getTokenAfter(r);return!!(s&&n&&s.range[0]>=e.range[0]&&gr.isSemicolonToken(r)&&r.loc.start.line!==s.loc.end.line&&r.loc.end.line===n.loc.start.line)?s:r}function kH(t,e,r){return e+r}function TH(){}function DH(t,e,r,s){s.length!==0&&t.report({node:r,messageId:"unexpectedBlankLine",fix(n){if(s.length>=2)return null;let i=s[0][0],o=s[0][1],a=i.range[1],l=o.range[0],u=t.sourceCode.text.slice(a,l).replace(CH,kH);return n.replaceTextRange([a,l],u)}})}function IH(t,e,r,s){s.length>0||t.report({node:r,messageId:"expectedBlankLine",fix(n){let i=t.sourceCode,o=zB(i,e),a=i.getFirstTokenBetween(o,r,{includeComments:!0,filter(u){return gr.isTokenOnSameLine(o,u)?(o=u,!1):!0}})||r,l=gr.isTokenOnSameLine(o,a)?`
96
+
97
+ `:`
98
+ `;return n.insertTextAfter(o,l)}})}var bm={any:{verify:TH},never:{verify:DH},always:{verify:IH}},vm={"*":{test:()=>!0},"block-like":{test:(t,e)=>VB(e,t)},"cjs-export":{test:(t,e)=>t.type==="ExpressionStatement"&&t.expression.type==="AssignmentExpression"&&wH.test(e.getText(t.expression.left))},"cjs-import":{test:(t,e)=>t.type==="VariableDeclaration"&&t.declarations.length>0&&!!t.declarations[0].init&&AH.test(e.getText(t.declarations[0].init))},directive:{test:gr.isDirective},expression:{test:t=>t.type==="ExpressionStatement"&&!gr.isDirective(t)},iife:{test:WB},"multiline-block-like":{test:(t,e)=>t.loc.start.line!==t.loc.end.line&&VB(e,t)},"multiline-expression":{test:t=>t.loc.start.line!==t.loc.end.line&&t.type==="ExpressionStatement"&&!gr.isDirective(t)},"multiline-const":xm("const"),"multiline-let":xm("let"),"multiline-var":xm("var"),"singleline-const":ym("const"),"singleline-let":ym("let"),"singleline-var":ym("var"),block:Em("BlockStatement"),empty:Em("EmptyStatement"),function:Em("FunctionDeclaration"),break:Bt("break"),case:Bt("case"),class:Bt("class"),const:Bt("const"),continue:Bt("continue"),debugger:Bt("debugger"),default:Bt("default"),do:Bt("do"),export:Bt("export"),for:Bt("for"),if:Bt("if"),import:Bt("import"),let:Bt("let"),return:Bt("return"),switch:Bt("switch"),throw:Bt("throw"),try:Bt("try"),var:Bt("var"),while:Bt("while"),with:Bt("with")};GB.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"padding-line-between-statements",url:"https://eslint.style/rules/padding-line-between-statements"}}]},type:"layout",docs:{description:"Require or disallow padding lines between statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/padding-line-between-statements"},fixable:"whitespace",schema:{definitions:{paddingType:{enum:Object.keys(bm)},statementType:{anyOf:[{enum:Object.keys(vm)},{type:"array",items:{enum:Object.keys(vm)},minItems:1,uniqueItems:!0}]}},type:"array",items:{type:"object",properties:{blankLine:{$ref:"#/definitions/paddingType"},prev:{$ref:"#/definitions/statementType"},next:{$ref:"#/definitions/statementType"}},additionalProperties:!1,required:["blankLine","prev","next"]}},messages:{unexpectedBlankLine:"Unexpected blank line before this statement.",expectedBlankLine:"Expected blank line before this statement."}},create(t){let e=t.sourceCode,r=t.options||[],s=null;function n(){s={upper:s,prevNode:null}}function i(){s=s.upper}function o(p,h){let f=p;for(;f.type==="LabeledStatement";)f=f.body;return Array.isArray(h)?h.some(o.bind(null,f)):vm[h].test(f,e)}function a(p,h){for(let f=r.length-1;f>=0;--f){let d=r[f];if(o(p,d.prev)&&o(h,d.next))return bm[d.blankLine]}return bm.any}function l(p,h){let f=[],d=zB(e,p);if(h.loc.start.line-d.loc.end.line>=2)do{let g=e.getTokenAfter(d,{includeComments:!0});g.loc.start.line-d.loc.end.line>=2&&f.push([d,g]),d=g}while(d.range[0]<h.range[0]);return f}function u(p){let h=p.parent.type;if(!(gr.STATEMENT_LIST_PARENTS.has(h)||h==="SwitchStatement"))return;let d=s.prevNode;if(d){let g=a(d,p),y=l(d,p);g.verify(t,d,p,y)}s.prevNode=p}function c(p){u(p),n()}return{Program:n,BlockStatement:n,SwitchStatement:n,StaticBlock:n,"Program:exit":i,"BlockStatement:exit":i,"SwitchStatement:exit":i,"StaticBlock:exit":i,":statement":u,SwitchCase:c,"SwitchCase:exit":i}}}});var JB=B((Die,HB)=>{"use strict";var xs=X();function PH(t){return t&&t.defs[0].type==="FunctionName"}function FH(t,e,r){return t.meta.name===e&&t.property.name===r}function _H(t){let e=t.variables;for(let r=0;r<e.length;++r){let s=e[r];if(s.name==="arguments")return s.identifiers.length===0?s:null}return null}function BH(t){let e={isCallback:!1,isLexicalThis:!1},r=t,s=t.parent,n=!1;for(;r;){switch(s.type){case"LogicalExpression":case"ChainExpression":break;case"ConditionalExpression":if(s.test===r)return e;break;case"MemberExpression":if(s.object===r&&!s.property.computed&&s.property.type==="Identifier"&&s.property.name==="bind"){let i=s.parent.type==="ChainExpression"?s.parent:s;if(xs.isCallee(i))n||(n=!0,e.isLexicalThis=i.parent.arguments.length===1&&i.parent.arguments[0].type==="ThisExpression"),s=i.parent;else return e}else return e;break;case"CallExpression":case"NewExpression":return s.callee!==r&&(e.isCallback=!0),e;default:return e}r=s,s=s.parent}throw new Error("unreachable")}function OH(t){return t.every(e=>e.type==="Identifier")&&t.length!==new Set(t.map(e=>e.name)).size}HB.exports={meta:{type:"suggestion",defaultOptions:[{allowNamedFunctions:!1,allowUnboundThis:!0}],docs:{description:"Require using arrow functions for callbacks",dialects:["JavaScript","TypeScript"],recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-arrow-callback"},schema:[{type:"object",properties:{allowNamedFunctions:{type:"boolean"},allowUnboundThis:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{preferArrowCallback:"Unexpected function expression."}},create(t){let[{allowNamedFunctions:e,allowUnboundThis:r}]=t.options,s=t.sourceCode,n=[];function i(){n.push({this:!1,super:!1,meta:!1})}function o(){return n.pop()}return{Program(){n=[]},ThisExpression(){let a=n.at(-1);a&&(a.this=!0)},Super(){let a=n.at(-1);a&&(a.super=!0)},MetaProperty(a){let l=n.at(-1);l&&FH(a,"new","target")&&(l.meta=!0)},FunctionDeclaration:i,"FunctionDeclaration:exit":o,FunctionExpression:i,"FunctionExpression:exit"(a){let l=o();if(e&&a.id&&a.id.name||a.generator)return;let u=s.getDeclaredVariables(a)[0];if(PH(u)&&u.references.length>0)return;let c=_H(s.getScope(a));if(c&&c.references.length>0)return;let p=BH(a);p.isCallback&&(!r||!l.this||p.isLexicalThis)&&!l.super&&!l.meta&&t.report({node:a,messageId:"preferArrowCallback",*fix(h){if(!p.isLexicalThis&&l.this||OH(a.params)||a.params.length&&a.params[0].name==="this")return;let f=s.getFirstToken(a,a.async?1:0),d=a.typeParameters?s.getFirstToken(a.typeParameters):s.getTokenAfter(f,xs.isOpeningParenToken);if(a.async&&f.loc.end.line<d.loc.start.line)return;if(p.isLexicalThis){let S=a.parent;if(S.type!=="MemberExpression")return;let A=S.parent,E=s.getTokenAfter(S.object,xs.isNotClosingParenToken),k=s.getLastToken(A);if(xs.isParenthesised(s,S)||s.commentsExistBetween(E,k))return;yield h.removeRange([E.range[0],k.range[1]])}let g=s.getTokenBefore(a.body);s.commentsExistBetween(f,d)?(yield h.remove(f),a.id&&(yield h.remove(a.id))):yield h.removeRange([f.range[0],d.range[0]]),t.languageOptions.parserOptions?.ecmaFeatures?.jsx&&a.typeParameters&&a.typeParameters.params.length===1&&!a.typeParameters.params[0].constraint&&!a.typeParameters.params[0].default&&!xs.isCommaToken(s.getLastToken(a.typeParameters,1))&&(yield h.insertTextAfter(a.typeParameters.params[0],",")),yield h.insertTextAfter(g," =>");let v=p.isLexicalThis?a.parent.parent:a;v.type==="ChainExpression"&&(v=v.parent),v.parent.type!=="CallExpression"&&v.parent.type!=="ConditionalExpression"&&!xs.isParenthesised(s,v)&&!xs.isParenthesised(s,a)&&(yield h.insertTextBefore(v,"("),yield h.insertTextAfter(v,")"))}})}}}}});var tO=B((Iie,eO)=>{"use strict";var LH=ps(),NH=X(),QB=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,RH=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,jH=/^(?:VariableDeclarator|AssignmentExpression)$/u;function MH(t){return t.parent.type==="ForStatement"&&t.parent.init===t}function qH(t){let e=t.parent;for(;QB.test(e.type);)e=e.parent;return e.type==="VariableDeclarator"||e.type==="AssignmentExpression"&&e.parent.type==="ExpressionStatement"&&RH.test(e.parent.parent.type)}function XB(t,e){if(e.through.some(s=>s.resolved&&s.resolved.name===t))return!0;let r=NH.getVariableByName(e,t);return r!==null?r.defs.some(s=>s.type==="Parameter"):!1}function YB(t){if(!t.isWrite())return null;let e=t.identifier.parent;for(;QB.test(e.type);)e=e.parent;return jH.test(e.type)?e:null}function Ta(t){switch(t.type){case"ObjectPattern":return t.properties.some(e=>e?Ta(e.argument||e.value):!1);case"ArrayPattern":return t.elements.some(e=>e?Ta(e):!1);case"AssignmentPattern":return Ta(t.left);case"MemberExpression":return!0}return!1}function UH(t,e){if(t.eslintUsed&&t.scope.type==="global")return null;let r=null,s=!1,n=t.references;for(let o=0;o<n.length;++o){let a=n[o];if(a.isWrite()){if(r!==null&&r.identifier!==a.identifier)return null;let u=YB(a);if(u!==null&&u.left!==void 0){let c=u.left,p=!1,h=!1;if(c.type==="ObjectPattern"?(p=c.properties.filter(d=>d.value).map(d=>d.value.name).some(d=>XB(d,t.scope)),h=Ta(c)):c.type==="ArrayPattern"&&(p=c.elements.map(d=>d&&d.name).some(d=>XB(d,t.scope)),h=Ta(c)),p||h)return null}r=a}else if(a.isRead()&&r===null){if(e)return null;s=!0}}return r!==null&&r.from===t.scope&&qH(r.identifier)?s?t.defs[0].name:r.identifier:null}function $H(t,e){let r=new Map;for(let s=0;s<t.length;++s){let n=t[s],i=n.references,o=UH(n,e),a=null;for(let l=0;l<i.length;++l){let u=i[l],c=u.identifier;if(c===a)continue;a=c;let p=YB(u);p&&(r.has(p)?r.get(p).push(o):r.set(p,[o]))}}return r}function ZB(t,e,r){return!t||r(t)?null:t.type===e?t:ZB(t.parent,e,r)}eO.exports={meta:{type:"suggestion",defaultOptions:[{destructuring:"any",ignoreReadBeforeAssign:!1}],docs:{description:"Require `const` declarations for variables that are never reassigned after declared",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-const"},fixable:"code",schema:[{type:"object",properties:{destructuring:{enum:["any","all"]},ignoreReadBeforeAssign:{type:"boolean"}},additionalProperties:!1}],messages:{useConst:"'{{name}}' is never reassigned. Use 'const' instead."}},create(t){let[{destructuring:e,ignoreReadBeforeAssign:r}]=t.options,s=e!=="all",n=t.sourceCode,i=[],o=0,a=null,l="";function u(c){let p=c.filter(Boolean);if(c.length&&(s||p.length===c.length)){let h=ZB(c[0],"VariableDeclaration",g=>g.type.endsWith("Statement")),f=h===null;if(!f&&h.declarations.length>0){let g=h.declarations[0];if(g.init){let y=g.init.parent;y.type==="VariableDeclarator"&&(y.id.name!==l&&(l=y.id.name,o=0),y.id.type==="ObjectPattern"&&y.init.name!==l&&(l=y.init.name,o=0),y.id!==a&&(a=y.id,o=0))}}let d=h&&(h.parent.type==="ForInStatement"||h.parent.type==="ForOfStatement"||h.declarations.every(g=>g.init))&&p.length===c.length;if(!f&&h.declarations&&h.declarations.length!==1&&h&&h.declarations&&h.declarations.length>=1){o+=p.length;let g=0;h.declarations.forEach(y=>{y.id.type==="ObjectPattern"?g+=y.id.properties.length:y.id.type==="ArrayPattern"?g+=y.id.elements.length:g+=1}),d=d&&o===g}p.forEach(g=>{t.report({node:g,messageId:"useConst",data:g,fix:d?y=>{let v=n.getFirstToken(h,S=>S.value===h.kind);return new LH(y,n).retainRange(h.range).replaceTextRange(v.range,"const")}:null})})}}return{"Program:exit"(){$H(i,r).forEach(u)},VariableDeclaration(c){c.kind==="let"&&!MH(c)&&i.push(...n.getDeclaredVariables(c))}}}}});var sO=B((Pie,nO)=>{"use strict";var rO=X(),VH=rO.getPrecedence({type:"AssignmentExpression"});nO.exports={meta:{type:"suggestion",docs:{description:"Require destructuring from arrays and/or objects",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-destructuring"},fixable:"code",schema:[{oneOf:[{type:"object",properties:{VariableDeclarator:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1},AssignmentExpression:{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}},additionalProperties:!1},{type:"object",properties:{array:{type:"boolean"},object:{type:"boolean"}},additionalProperties:!1}]},{type:"object",properties:{enforceForRenamedProperties:{type:"boolean"}},additionalProperties:!1}],messages:{preferDestructuring:"Use {{type}} destructuring."}},create(t){let e=t.options[0],r=t.options[1]&&t.options[1].enforceForRenamedProperties,s={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};e&&(s=typeof e.array<"u"||typeof e.object<"u"?{VariableDeclarator:e,AssignmentExpression:e}:e);function n(h,f){return s&&s[h]&&s[h][f]}function i(h){return Number.isInteger(h.property.value)}function o(h,f,d){t.report({node:h,messageId:"preferDestructuring",data:{type:f},fix:d})}function a(h){return h.type==="VariableDeclarator"&&h.id.type==="Identifier"&&h.init.type==="MemberExpression"&&!h.init.computed&&h.init.property.type==="Identifier"&&h.id.name===h.init.property.name}function l(h,f){let d=f.init,g=t.sourceCode;if(g.getCommentsInside(f).length>g.getCommentsInside(d.object).length)return null;let y=g.getText(d.object);return rO.getPrecedence(d.object)<VH&&(y=`(${y})`),h.replaceText(f,`{${d.property.name}} = ${y}`)}function u(h,f,d){if(f.type!=="MemberExpression"||f.object.type==="Super"||f.property.type==="PrivateIdentifier")return;if(i(f)){n(d.type,"array")&&o(d,"array",null);return}let g=a(d)?y=>l(y,d):null;if(n(d.type,"object")&&r){o(d,"object",g);return}if(n(d.type,"object")){let y=f.property;(y.type==="Literal"&&h.name===y.value||y.type==="Identifier"&&h.name===y.name&&!f.computed)&&o(d,"object",g)}}function c(h){h.init&&(h.parent.kind==="using"||h.parent.kind==="await using"||h.init.type==="MemberExpression"&&u(h.id,h.init,h))}function p(h){h.operator==="="&&u(h.left,h.right,h)}return{VariableDeclarator:c,AssignmentExpression:p}}}});var aO=B((Fie,iO)=>{"use strict";var Wr=X(),{CALL:WH,ReferenceTracker:zH}=Ht(),Cm=Wr.getPrecedence({type:"BinaryExpression",operator:"**"}),GH=new Set(["(","[","/","`"]);function KH(t){return Wr.getPrecedence(t)<=Cm||t.type==="AwaitExpression"||t.type==="UnaryExpression"}function HH(t){return Wr.getPrecedence(t)<Cm}function JH(t,e){let r=t.parent.type==="ChainExpression"?t.parent.parent:t.parent,s=Wr.getPrecedence(r);return(r.type==="ClassDeclaration"||r.type.endsWith("Expression")&&(s===-1||s>=Cm)&&!(r.type==="BinaryExpression"&&r.operator==="**"&&r.right===t)&&!((r.type==="CallExpression"||r.type==="NewExpression")&&r.arguments.includes(t))&&!(r.type==="MemberExpression"&&r.computed&&r.property===t)&&r.type!=="ArrayExpression")&&!Wr.isParenthesised(e,t)}function Sm(t,e){return e?`(${t})`:t}iO.exports={meta:{type:"suggestion",docs:{description:"Disallow the use of `Math.pow` in favor of the `**` operator",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-exponentiation-operator"},schema:[],fixable:"code",messages:{useExponentiation:"Use the '**' operator instead of 'Math.pow'."}},create(t){let e=t.sourceCode;function r(s){t.report({node:s,messageId:"useExponentiation",fix(n){if(s.arguments.length!==2||s.arguments.some(S=>S.type==="SpreadElement")||e.getCommentsInside(s).length>0)return null;let i=s.arguments[0],o=s.arguments[1],a=e.getText(i),l=e.getText(o),u=KH(i),c=HH(o),p=Wr.isStartOfExpressionStatement(s),h=JH(s,e);if(!h&&!u&&p){let S=e.getFirstToken(i),A=e.getTokenAfter(S);(Wr.isOpeningBraceToken(S)||S.type==="Keyword"&&(S.value==="function"||S.value==="class")||(S.type==="Identifier"||S.type==="Keyword")&&S.value==="async"&&A.type==="Keyword"&&A.value==="function")&&(h=!0)}let f="",d="";if(!h){if(!u){let S=e.getFirstToken(i),A=e.getTokenBefore(s);A&&A.range[1]===s.range[0]&&!Wr.canTokensBeAdjacent(A,S)&&(f=" ")}if(!c){let S=e.getLastToken(o),A=e.getTokenAfter(s);A&&s.range[1]===A.range[0]&&!Wr.canTokensBeAdjacent(S,A)&&(d=" ")}}let g=Sm(a,u),y=Sm(l,c),v=Sm(`${g}**${y}`,h);return!f&&p&&GH.has(v[0])&&Wr.needsPrecedingSemicolon(e,s)&&(f=";"),n.replaceText(s,`${f}${v}${d}`)}})}return{Program(s){let n=e.getScope(s),i=new zH(n),o={Math:{pow:{[WH]:!0}}};for(let{node:a}of i.iterateGlobalReferences(o))r(a)}}}}});var cO=B((_ie,uO)=>{"use strict";var{CALL:XH,CONSTRUCT:QH,ReferenceTracker:YH,getStringIfConstant:oO}=Ht(),lO=Ir(),ZH=new lO.RegExpParser;function eJ(t,e,r,s){switch(s.type){case"Literal":if(typeof s.value=="string"&&r.includes("\\"))return null;break;case"TemplateLiteral":if(s.expressions.length||r.slice(1,-1)!==e)return null;break;default:return null}let n=s.range[0]+t+2;return[{fix(i){let a=(e.match(/temp\d+/gu)||[]).reduce((l,u)=>Math.max(l,Number(u.slice(4))),0);return i.insertTextBeforeRange([n,n],`?<temp${a+1}>`)},messageId:"addGroupName"},{fix(i){return i.insertTextBeforeRange([n,n],"?:")},messageId:"addNonCapture"}]}uO.exports={meta:{type:"suggestion",docs:{description:"Enforce using named capture group in regular expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-named-capture-group"},hasSuggestions:!0,schema:[],messages:{addGroupName:"Add name to capture group.",addNonCapture:"Convert group to non-capturing.",required:"Capture group '{{group}}' should be converted to a named or non-capturing group."}},create(t){let e=t.sourceCode;function r(s,n,i,o){let a;try{a=ZH.parsePattern(s,0,s.length,{unicode:!!(o&&o.includes("u")),unicodeSets:!!(o&&o.includes("v"))})}catch{return}lO.visitRegExpAST(a,{onCapturingGroupEnter(l){if(!l.name){let u=e.getText(i),c=eJ(l.start,s,u,i);t.report({node:n,messageId:"required",data:{group:l.raw},suggest:c})}}})}return{Literal(s){s.regex&&r(s.regex.pattern,s,s,s.regex.flags)},Program(s){let n=e.getScope(s),i=new YH(n),o={RegExp:{[XH]:!0,[QH]:!0}};for(let{node:a}of i.iterateGlobalReferences(o)){let l=oO(a.arguments[0]),u=oO(a.arguments[1]);l&&r(l,a,a.arguments[0],u)}}}}}});var hO=B((Bie,fO)=>{"use strict";var Es=X(),pO=new Map([[2,{system:"binary",literalPrefix:"0b"}],[8,{system:"octal",literalPrefix:"0o"}],[16,{system:"hexadecimal",literalPrefix:"0x"}]]);function tJ(t,e){if(Es.isSpecificId(t,"parseInt"))return e.isGlobalReference(t);if(Es.isSpecificMemberAccess(t,"Number","parseInt")){let r=Es.skipChainExpression(t).object;return e.isGlobalReference(r)}return!1}fO.exports={meta:{type:"suggestion",docs:{description:"Disallow `parseInt()` and `Number.parseInt()` in favor of binary, octal, and hexadecimal literals",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-numeric-literals"},schema:[],messages:{useLiteral:"Use {{system}} literals instead of {{functionName}}()."},fixable:"code"},create(t){let e=t.sourceCode;return{"CallExpression[arguments.length=2]"(r){let[s,n]=r.arguments,i=Es.getStaticStringValue(s),o=n.value;if(i!==null&&Es.isStringLiteral(s)&&n.type==="Literal"&&typeof o=="number"&&pO.has(o)&&tJ(r.callee,e)){let{system:a,literalPrefix:l}=pO.get(o);t.report({node:r,messageId:"useLiteral",data:{system:a,functionName:e.getText(r.callee)},fix(u){if(e.getCommentsInside(r).length)return null;let c=`${l}${i}`;if(+c!==parseInt(i,o))return null;let p=e.getTokenBefore(r),h=e.getTokenAfter(r),f="",d="";return p&&p.range[1]===r.range[0]&&!Es.canTokensBeAdjacent(p,c)&&(f=" "),h&&r.range[1]===h.range[0]&&!Es.canTokensBeAdjacent(c,h)&&(d=" "),u.replaceText(r,`${f}${c}${d}`)}})}}}}}});var dO=B((Oie,mO)=>{"use strict";var Da=X();function rJ(t){if(t.object.type==="ObjectExpression"&&t.object.properties.length===0)return!0;let e=t.object.type==="MemberExpression"&&Da.getStaticPropertyName(t.object)==="prototype"?t.object.object:t.object;return e.type==="Identifier"&&e.name==="Object"}mO.exports={meta:{type:"suggestion",docs:{description:"Disallow use of `Object.prototype.hasOwnProperty.call()` and prefer use of `Object.hasOwn()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-object-has-own"},schema:[],messages:{useHasOwn:"Use 'Object.hasOwn()' instead of 'Object.prototype.hasOwnProperty.call()'."},fixable:"code"},create(t){let e=t.sourceCode;return{CallExpression(r){if(!(r.callee.type==="MemberExpression"&&r.callee.object.type==="MemberExpression"))return;let s=Da.getStaticPropertyName(r.callee),n=Da.getStaticPropertyName(r.callee.object),i=rJ(r.callee.object),o=e.getScope(r),a=Da.getVariableByName(o,"Object");s==="call"&&n==="hasOwnProperty"&&i&&a&&a.scope.type==="global"&&a.defs.length===0&&t.report({node:r,messageId:"useHasOwn",fix(l){if(e.getCommentsInside(r.callee).length>0)return null;let u=e.getTokenBefore(r.callee,{includeComments:!0});return u&&u.range[1]===r.callee.range[0]&&!Da.canTokensBeAdjacent(u,"Object.hasOwn")?l.replaceText(r.callee," Object.hasOwn"):l.replaceText(r.callee,"Object.hasOwn")}})}}}}});var bO=B((Lie,EO)=>{"use strict";var{CALL:nJ,ReferenceTracker:sJ}=Ht(),{getStaticPropertyName:iJ,isCommaToken:gO,isOpeningParenToken:yO,isClosingParenToken:aJ,isParenthesised:wm,isStartOfExpressionStatement:oJ,needsPrecedingSemicolon:lJ}=X(),xO=/\s/u;function uJ(t){return t.arguments.some(e=>e.type==="SpreadElement")}function cJ(t){return t.type==="Property"&&(t.kind==="get"||t.kind==="set")}function pJ(t){return t.properties.some(cJ)}function fJ(t){return t.arguments.filter(e=>e.type==="ObjectExpression").some(pJ)}function hJ(t){return t.type==="Property"&&iJ(t)==="__proto__"}function mJ(t){return t.properties.some(hJ)}function dJ(t){return t.arguments.slice(1).filter(e=>e.type==="ObjectExpression").some(mJ)}function gJ(t,e){let r=t.parent;switch(r.type){case"VariableDeclarator":case"ArrayExpression":case"ReturnStatement":case"CallExpression":case"Property":return!1;case"AssignmentExpression":return r.left===t&&!wm(e,t);default:return!wm(e,t)}}function yJ(t,e){switch(t.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!wm(e,t);default:return!1}}function xJ(t,e,r){let s=[r.getFirstToken(t),r.getLastToken(t)],n=r.getTokenBefore(t),i=r.getTokenAfter(t);for(;n&&i&&n.range[0]>e.range[0]&&yO(n)&&aJ(i);)s.push(n,i),n=r.getTokenBefore(n),i=r.getTokenAfter(i);return s.sort((o,a)=>o.range[0]-a.range[0])}function EJ(t,e){let r=e.text,s=t.range[0];{let n=e.getTokenBefore(t,{includeComments:!0});if(n&&n.type==="Line")return s}for(;xO.test(r[s-1]||"");)s-=1;return s}function bJ(t,e){let r=e.text,s=t.range[1];for(;xO.test(r[s]||"");)s+=1;return s}function vJ(t,e){return function*(r){let s=e.getTokenAfter(t.callee,yO),n=e.getLastToken(t);if(yield r.removeRange([t.range[0],s.range[0]]),gJ(t,e)){let i=oJ(t)&&lJ(e,t)?";({":"({";yield r.replaceText(s,i),yield r.replaceText(n,"})")}else yield r.replaceText(s,"{"),yield r.replaceText(n,"}");for(let i of t.arguments){let o=xJ(i,s,e),a=o.shift(),l=o.pop();if(i.type==="ObjectExpression"){let u=e.getLastToken(i,1),c=e.getTokenAfter(l);for(let f of o)yield r.remove(f);let p=[a.range[0],bJ(a,e)],h=[Math.max(EJ(l,e),p[1]),l.range[1]];yield r.removeRange(p),yield r.removeRange(h),(i.properties.length===0||gO(u))&&gO(c)&&(yield r.remove(c))}else yJ(i,e)?(yield r.insertTextBefore(a,"...("),yield r.insertTextAfter(l,")")):yield r.insertTextBefore(a,"...")}}}EO.exports={meta:{type:"suggestion",docs:{description:"Disallow using `Object.assign` with an object literal as the first argument and prefer the use of object spread instead",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-object-spread"},schema:[],fixable:"code",messages:{useSpreadMessage:"Use an object spread instead of `Object.assign` eg: `{ ...foo }`.",useLiteralMessage:"Use an object literal instead of `Object.assign`. eg: `{ foo: bar }`."}},create(t){let e=t.sourceCode;return{Program(r){let s=e.getScope(r),n=new sJ(s),i={Object:{assign:{[nJ]:!0}}};for(let{node:o}of n.iterateGlobalReferences(i))if(o.arguments.length>=1&&o.arguments[0].type==="ObjectExpression"&&!uJ(o)&&!(o.arguments.length>1&&(fJ(o)||dJ(o)))){let a=o.arguments.length===1?"useLiteralMessage":"useSpreadMessage",l=vJ(o,e);t.report({node:o,messageId:a,fix:l})}}}}}});var SO=B((Nie,vO)=>{"use strict";var eu=X();vO.exports={meta:{type:"suggestion",defaultOptions:[{allowEmptyReject:!1}],docs:{description:"Require using Error objects as Promise rejection reasons",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-promise-reject-errors"},fixable:null,schema:[{type:"object",properties:{allowEmptyReject:{type:"boolean"}},additionalProperties:!1}],messages:{rejectAnError:"Expected the Promise rejection reason to be an Error."}},create(t){let[{allowEmptyReject:e}]=t.options,r=t.sourceCode;function s(i){if(!i.arguments.length&&e)return;let o=i.arguments[0];(!i.arguments.length||!eu.couldBeError(o)||o.type==="Identifier"&&o.name==="undefined"&&r.isGlobalReference(o))&&t.report({node:i,messageId:"rejectAnError"})}function n(i){return eu.isSpecificMemberAccess(i.callee,"Promise","reject")&&r.isGlobalReference(eu.skipChainExpression(i.callee).object)}return{CallExpression(i){n(i)&&s(i)},"NewExpression:exit"(i){i.callee.type==="Identifier"&&i.callee.name==="Promise"&&r.isGlobalReference(i.callee)&&i.arguments.length&&eu.isFunction(i.arguments[0])&&i.arguments[0].params.length>1&&i.arguments[0].params[1].type==="Identifier"&&r.getDeclaredVariables(i.arguments[0]).find(o=>o.name===i.arguments[0].params[1].name).references.filter(o=>o.isRead()).filter(o=>o.identifier.parent.type==="CallExpression"&&o.identifier===o.identifier.parent.callee).forEach(o=>s(o.identifier.parent))}}}}});var wO=B((Rie,CO)=>{"use strict";CO.exports={meta:{type:"suggestion",docs:{description:"Require `Reflect` methods where applicable",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-reflect"},deprecated:{message:"The original intention of this rule was misguided.",deprecatedSince:"3.9.0",availableUntil:null,replacedBy:[]},schema:[{type:"object",properties:{exceptions:{type:"array",items:{enum:["apply","call","delete","defineProperty","getOwnPropertyDescriptor","getPrototypeOf","setPrototypeOf","isExtensible","getOwnPropertyNames","preventExtensions"]},uniqueItems:!0}},additionalProperties:!1}],messages:{preferReflect:"Avoid using {{existing}}, instead use {{substitute}}."}},create(t){let e={apply:"Function.prototype.apply",call:"Function.prototype.call",defineProperty:"Object.defineProperty",getOwnPropertyDescriptor:"Object.getOwnPropertyDescriptor",getPrototypeOf:"Object.getPrototypeOf",setPrototypeOf:"Object.setPrototypeOf",isExtensible:"Object.isExtensible",getOwnPropertyNames:"Object.getOwnPropertyNames",preventExtensions:"Object.preventExtensions"},r={apply:"Reflect.apply",call:"Reflect.apply",defineProperty:"Reflect.defineProperty",getOwnPropertyDescriptor:"Reflect.getOwnPropertyDescriptor",getPrototypeOf:"Reflect.getPrototypeOf",setPrototypeOf:"Reflect.setPrototypeOf",isExtensible:"Reflect.isExtensible",getOwnPropertyNames:"Reflect.getOwnPropertyNames",preventExtensions:"Reflect.preventExtensions"},s=(t.options[0]||{}).exceptions||[];function n(i,o,a){t.report({node:i,messageId:"preferReflect",data:{existing:o,substitute:a}})}return{CallExpression(i){let o=(i.callee.property||{}).name,a=(i.callee.object||{}).name==="Reflect",l=Object.hasOwn(r,o),u=s.includes(o);l&&!a&&!u&&n(i,e[o],r[o])},UnaryExpression(i){let o=i.operator==="delete",a=i.argument.type==="Identifier",l=s.includes("delete");o&&!a&&!l&&n(i,"the delete keyword","Reflect.deleteProperty")}}}}});var IO=B((jie,DO)=>{"use strict";var Ia=X(),{CALL:SJ,CONSTRUCT:CJ,ReferenceTracker:wJ}=Ht(),{RegExpValidator:AJ,visitRegExpAST:kJ,RegExpParser:TJ}=Ir(),{canTokensBeAdjacent:AO}=X(),{REGEXPP_LATEST_ECMA_VERSION:DJ}=Wl();function kO(t){return t.type==="Literal"&&typeof t.value=="string"}function TO(t){return t.type==="Literal"&&Object.hasOwn(t,"regex")}var IJ=new Set(["(",";","[",",","=","+","*","-","?","~","%","**","!","typeof","instanceof","&&","||","??","return","...","delete","void","in","<",">","<=",">=","==","===","!=","!==","<<",">>",">>>","&","|","^",":","{","=>","*=","<<=",">>=",">>>=","^=","|=","&=","??=","||=","&&=","**=","+=","-=","/=","%=","/","do","break","continue","debugger","case","throw"]);DO.exports={meta:{type:"suggestion",defaultOptions:[{disallowRedundantWrapping:!1}],docs:{description:"Disallow use of the `RegExp` constructor in favor of regular expression literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-regex-literals"},hasSuggestions:!0,schema:[{type:"object",properties:{disallowRedundantWrapping:{type:"boolean"}},additionalProperties:!1}],messages:{unexpectedRegExp:"Use a regular expression literal instead of the 'RegExp' constructor.",replaceWithLiteral:"Replace with an equivalent regular expression literal.",replaceWithLiteralAndFlags:"Replace with an equivalent regular expression literal with flags '{{ flags }}'.",replaceWithIntendedLiteralAndFlags:"Replace with a regular expression literal with flags '{{ flags }}'.",unexpectedRedundantRegExp:"Regular expression literal is unnecessarily wrapped within a 'RegExp' constructor.",unexpectedRedundantRegExpWithFlags:"Use regular expression literal with flags instead of the 'RegExp' constructor."}},create(t){let[{disallowRedundantWrapping:e}]=t.options,r=t.sourceCode;function s(y){return y.type==="TaggedTemplateExpression"&&Ia.isSpecificMemberAccess(y.tag,"String","raw")&&r.isGlobalReference(Ia.skipChainExpression(y.tag).object)&&Ia.isStaticTemplateLiteral(y.quasi)}function n(y){return kO(y)?y.value:Ia.isStaticTemplateLiteral(y)?y.quasis[0].value.cooked:s(y)?y.quasi.quasis[0].value.raw:null}function i(y){return kO(y)||Ia.isStaticTemplateLiteral(y)||s(y)}function o(y){let v=y.arguments;return!!((v.length===1||v.length===2)&&v.every(i))}function a(y){let v=y.arguments;return!!(v.length===1&&TO(v[0])||v.length===2&&TO(v[0])&&i(v[1]))}function l(y){return y<=5?5:Math.min(y,DJ)}let u=l(t.languageOptions.ecmaVersion);function c(y){switch(y){case`
99
+ `:case`\\
100
+ `:return"\\n";case"\r":case"\\\r":return"\\r";case" ":case"\\ ":return"\\t";case"\v":case"\\\v":return"\\v";case"\f":case"\\\f":return"\\f";case"/":return"\\/";default:return null}}function p(y,v){let S=new AJ({ecmaVersion:u});try{return S.validatePattern(y,0,y.length,{unicode:v?v.includes("u"):!1,unicodeSets:v?v.includes("v"):!1}),v&&S.validateFlags(v),!0}catch{return!1}}function h(y,v){return[...y].sort().join("")===[...v].sort().join("")}function f(y,v){return[...new Set([...y,...v])].join("")}function d(y,v,S){let A=r.getTokenBefore(y);return r.getCommentsInside(y).length===0&&(!A||IJ.has(A.value))&&p(v,S)}function g(y,v){let S=r.getTokenBefore(y),A=r.getTokenAfter(y);return(S&&!AO(S,v)&&S.range[1]===y.range[0]?" ":"")+v+(A&&!AO(v,A)&&y.range[1]===A.range[0]?" ":"")}return{Program(y){let v=r.getScope(y),S=new wJ(v),A={RegExp:{[SJ]:!0,[CJ]:!0}};for(let{node:E}of S.iterateGlobalReferences(A))if(e&&a(E)){let k=E.arguments[0];if(E.arguments.length===2){let T=[],w=n(E.arguments[1])||"";d(E,k.regex.pattern,w)&&T.push({messageId:"replaceWithLiteralAndFlags",pattern:k.regex.pattern,flags:w});let R=k.regex.flags||"",j=f(R,w);!h(j,w)&&d(E,k.regex.pattern,j)&&T.push({messageId:"replaceWithIntendedLiteralAndFlags",pattern:k.regex.pattern,flags:j}),t.report({node:E,messageId:"unexpectedRedundantRegExpWithFlags",suggest:T.map(({flags:$,pattern:M,messageId:N})=>({messageId:N,data:{flags:$},fix(b){return b.replaceText(E,g(E,`/${M}/${$}`))}}))})}else{let T=[];d(E,k.regex.pattern,k.regex.flags)&&T.push(r.getText(k)),t.report({node:E,messageId:"unexpectedRedundantRegExp",suggest:T.map(w=>({messageId:"replaceWithLiteral",fix(R){return R.replaceText(E,g(E,w))}}))})}}else if(o(E)){let k=n(E.arguments[0]),T=!1,w;if(E.arguments[1]&&(w=n(E.arguments[1])),d(E,k,w)||(T=!0),/^[-\w\\[\](){} \t\r\n\v\f!@#$%^&*+=/~`.><?,'"|:;]*$/u.test(k)||(T=!0),k&&!T){let j=0,$=new TJ({ecmaVersion:u}).parsePattern(k,0,k.length,{unicode:w?w.includes("u"):!1,unicodeSets:w?w.includes("v"):!1});kJ($,{onCharacterEnter(M){let N=c(M.raw);N&&(k=k.slice(0,M.start+j)+N+k.slice(M.end+j),M.raw.length===1&&(j+=1))}})}let R=`/${k||"(?:)"}/${w||""}`;t.report({node:E,messageId:"unexpectedRegExp",suggest:T?[]:[{messageId:"replaceWithLiteral",fix(j){return j.replaceText(E,g(E,R))}}]})}}}}}});var FO=B((Mie,PO)=>{"use strict";function PJ(t){let e=t.variables;for(let r=0;r<e.length;++r){let s=e[r];if(s.name==="arguments")return s.identifiers.length===0?s:null}return null}function FJ(t){let e=t.identifier,r=e.parent;return!(r.type==="MemberExpression"&&r.object===e&&!r.computed)}PO.exports={meta:{type:"suggestion",docs:{description:"Require rest parameters instead of `arguments`",recommended:!1,url:"https://eslint.org/docs/latest/rules/prefer-rest-params"},schema:[],messages:{preferRestParams:"Use the rest parameters instead of 'arguments'."}},create(t){let e=t.sourceCode;function r(n){t.report({node:n.identifier,loc:n.identifier.loc,messageId:"preferRestParams"})}function s(n){let i=PJ(e.getScope(n));i&&i.references.filter(FJ).forEach(r)}return{"FunctionDeclaration:exit":s,"FunctionExpression:exit":s}}}});var BO=B((qie,_O)=>{"use strict";var Pa=X();function _J(t){return Pa.isSpecificMemberAccess(t.callee,null,"apply")&&t.arguments.length===2&&t.arguments[1].type!=="ArrayExpression"&&t.arguments[1].type!=="SpreadElement"}function BJ(t,e,r){return t?Pa.equalTokens(t,e,r):Pa.isNullOrUndefined(e)}_O.exports={meta:{type:"suggestion",docs:{description:"Require spread operators instead of `.apply()`",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-spread"},schema:[],fixable:null,messages:{preferSpread:"Use the spread operator instead of '.apply()'."}},create(t){let e=t.sourceCode;return{CallExpression(r){if(!_J(r))return;let s=Pa.skipChainExpression(Pa.skipChainExpression(r.callee).object),n=s.type==="MemberExpression"?s.object:null,i=r.arguments[0];BJ(n,i,e)&&t.report({node:r,messageId:"preferSpread"})}}}}});var NO=B((Uie,LO)=>{"use strict";var yi=X();function xi(t){return t.type==="BinaryExpression"&&t.operator==="+"}function OO(t){let e=t;for(;xi(e.parent);)e=e.parent;return e}function Am(t){return xi(t)?Am(t.left)||Am(t.right):t.type==="Literal"&&typeof t.value=="string"?yi.hasOctalOrNonOctalDecimalEscapeSequence(t.raw):!1}function km(t){return xi(t)?km(t.right)||km(t.left):yi.isStringLiteral(t)}function Tm(t){return xi(t)?Tm(t.right)||Tm(t.left):!yi.isStringLiteral(t)}function Dm(t){return t.type==="BinaryExpression"?Dm(t.left):t.type==="TemplateLiteral"?t.expressions.length&&t.quasis.length&&t.quasis[0].range[0]===t.quasis[0].range[1]:t.type!=="Literal"||typeof t.value!="string"}function OJ(t){return t.type==="BinaryExpression"?Dm(t.right):t.type==="TemplateLiteral"?t.expressions.length&&t.quasis.length&&t.quasis.at(-1).range[0]===t.quasis.at(-1).range[1]:t.type!=="Literal"||typeof t.value!="string"}LO.exports={meta:{type:"suggestion",docs:{description:"Require template literals instead of string concatenation",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/prefer-template"},schema:[],fixable:"code",messages:{unexpectedStringConcatenation:"Unexpected string concatenation."}},create(t){let e=t.sourceCode,r=Object.create(null);function s(a,l){let u=[a].concat(e.getTokensBetween(a,l)).concat(l),c=e.getText();return u.slice(0,-1).reduce((p,h,f)=>p+c.slice(h.range[1],u[f+1].range[0]),"")}function n(a,l,u){if(a.type==="Literal"&&typeof a.value=="string")return`\`${a.raw.slice(1,-1).replace(/(?<!\\)\\*(\$\{|`)/gu,c=>c.lastIndexOf("\\")%2?`\\${c}`:c).replace(new RegExp(`\\\\${a.raw[0]}`,"gu"),a.raw[0])}\``;if(a.type==="TemplateLiteral")return e.getText(a);if(xi(a)&&km(a)){let c=e.getFirstTokenBetween(a.left,a.right,g=>g.value==="+"),p=s(a.left,c),h=s(c,a.right),f=OJ(a.left),d=Dm(a.right);return f?n(a.left,l,p+h).slice(0,-1)+n(a.right,null,u).slice(1):d?n(a.left,l,null).slice(0,-1)+n(a.right,p+h,u).slice(1):`${n(a.left,l,null)}${p}+${h}${n(a.right,u,null)}`}return`\`\${${l||""}${e.getText(a)}${u||""}}\``}function i(a,l){let u=OO(l.parent);if(Am(u))return null;let c=yi.isStartOfExpressionStatement(u)&&yi.needsPrecedingSemicolon(e,u)?";":"";return a.replaceText(u,`${c}${n(u,null,null)}`)}function o(a){if(!yi.isStringLiteral(a)||!xi(a.parent))return;let l=OO(a.parent);r[l.range[0]]||(r[l.range[0]]=!0,Tm(l)&&t.report({node:l,messageId:"unexpectedStringConcatenation",fix:u=>i(u,a)}))}return{Program(){r=Object.create(null)},Literal:o,TemplateLiteral:o}}}});var jO=B(($ie,RO)=>{"use strict";var Im=X(),tu=Symbol("unknown_cause"),LJ=new Set(["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","AggregateError"]);function NJ(t,e){let r=t.argument,s=r.arguments.findIndex(i=>i.type==="SpreadElement");if(s>=0&&s<=e)return tu;let n=r.arguments[e];if(n){if(n.type==="ObjectExpression"){if(n.properties.some(a=>a.type==="SpreadElement"))return tu;let i=n.properties.filter(a=>Im.getStaticPropertyName(a)==="cause"),o=i.at(-1);return o?{value:o.value,multipleDefinitions:i.length>1}:null}return tu}return null}function RJ(t){let e=t;for(;e&&e.type!=="CatchClause";){if(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","StaticBlock"].includes(e.type))return null;e=e.parent}return e}RO.exports={meta:{type:"suggestion",defaultOptions:[{requireCatchParameter:!1,errorClassNames:[]}],docs:{description:"Disallow losing originally caught error when re-throwing custom errors",recommended:!0,url:"https://eslint.org/docs/latest/rules/preserve-caught-error"},schema:[{type:"object",properties:{requireCatchParameter:{type:"boolean",description:"Requires the catch blocks to always have the caught error parameter so it is not discarded."},errorClassNames:{type:"array",description:"Additional error class names to check for cause preservation.",items:{oneOf:[{type:"string"},{type:"object",required:["name","argumentPosition"],properties:{name:{type:"string"},argumentPosition:{type:"integer",minimum:1}},additionalProperties:!1}]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingCause:"There is no `cause` attached to the symptom error being thrown.",incorrectCause:"The symptom error is being thrown with an incorrect `cause`.",includeCause:"Include the original caught error as the `cause` of the symptom error.",missingCatchErrorParam:"The caught error is not accessible because the catch clause lacks the error parameter. Start referencing the caught error using the catch parameter.",partiallyLostError:"Re-throws cannot preserve the caught error as a part of it is being lost due to destructuring.",caughtErrorShadowed:"The caught error is being attached as `cause`, but is shadowed by a closer scoped redeclaration."},hasSuggestions:!0},create(t){let e=t.sourceCode,[{requireCatchParameter:r,errorClassNames:s}]=t.options,n=new Map;for(let p of s){let h=typeof p=="string"?p:p.name,f=typeof p=="string"?2:p.argumentPosition;n.set(h,f)}function i(p){return p.type==="Identifier"&&LJ.has(p.name)&&e.isGlobalReference(p)}function o(p){if(!(p.argument.type==="NewExpression"||p.argument.type==="CallExpression"))return!1;let h=p.argument.callee;if(i(h))return!0;let f=h.type==="MemberExpression"&&!h.computed?h.property:h;return f.type==="Identifier"&&n.has(f.name)}function a(p,h,f){let d=h.properties;if(d.length===0)return p.insertTextAfter(e.getFirstToken(h),`cause: ${f}`);let g=d.at(-1);return p.insertTextAfter(g,`, cause: ${f}`)}function l(p,h){let f=h.range[1],d=p,g=e.getTokenAfter(d);for(;g.range[1]<=f&&Im.isClosingParenToken(g);)d=g,g=e.getTokenAfter(d);return d}function u(p,h,f){let d=e.getLastToken(h),g=e.getLastToken(h.callee),y=e.getFirstTokenBetween(g,d,Im.isOpeningParenToken);if(y)return p.insertTextAfter(y,f);let v=l(g,d);return p.insertTextAfter(v,`(${f})`)}function c(p,h,f){let d=h.arguments.at(-1),g=e.getLastToken(d),y=e.getLastToken(h,{skip:1}),v=l(g,y);return p.insertTextAfter(v,f)}return{ThrowStatement(p){let h=RJ(p),f=p;if(h&&o(f)){if(h.param&&h.param.type!=="Identifier"){t.report({messageId:"partiallyLostError",node:h});return}let d=h.param?.type==="Identifier"?h.param:null;if(!d){if(r){t.report({node:f,messageId:"missingCatchErrorParam"});return}return}let g=f.argument.callee,y=g.type==="Identifier"?g.name:g.property.name,v=i(g),S;v?S=y==="AggregateError"?2:1:S=n.get(y)-1;let A=NJ(f,S);if(A===tu)return;if(A===null){t.report({messageId:"missingCause",node:f,suggest:[{messageId:"includeCause",fix(T){let w=f.argument,R=w.arguments;function j(M){return M.type==="ObjectExpression"?a(T,M,d.name):null}if(v&&y==="AggregateError"){let M=R[0],N=R[1],b=R[2];return M?N?b?j(b):c(T,w,`, { cause: ${d.name} }`):c(T,w,`, "", { cause: ${d.name} }`):u(T,w,`[], "", { cause: ${d.name} }`)}if(v){let M=R[0],N=R[1];return M?N?j(N):c(T,w,`, { cause: ${d.name} }`):u(T,w,`"", { cause: ${d.name} }`)}let $=R[S];return R.length<S?null:$?j($):R.at(-1)?c(T,w,`, { cause: ${d.name} }`):u(T,w,`{ cause: ${d.name} }`)}}]});return}let{value:E}=A;if(!(E.type==="Identifier"&&E.name===d.name)){let T=A.multipleDefinitions?null:[{messageId:"includeCause",fix(w){return E.parent.method||E.parent.shorthand||E.parent.kind!=="init"?w.replaceText(E.parent,`cause: ${d.name}`):w.replaceText(E,d.name)}}];t.report({messageId:"incorrectCause",node:E,suggest:T});return}let k=e.getScope(f);do{if(k.set.get(d.name))break;k=k.upper}while(k);k?.block!==h&&t.report({messageId:"caughtErrorShadowed",node:f})}}}}}});var UO=B((Vie,qO)=>{"use strict";var MO=pl(),jJ=X(),MJ=yl();qO.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"quote-props",url:"https://eslint.style/rules/quote-props"}}]},type:"suggestion",docs:{description:"Require quotes around object literal property names",recommended:!1,url:"https://eslint.org/docs/latest/rules/quote-props"},schema:{anyOf:[{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]}],minItems:0,maxItems:1},{type:"array",items:[{enum:["always","as-needed","consistent","consistent-as-needed"]},{type:"object",properties:{keywords:{type:"boolean"},unnecessary:{type:"boolean"},numbers:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},fixable:"code",messages:{requireQuotesDueToReservedWord:"Properties should be quoted as '{{property}}' is a reserved word.",inconsistentlyQuotedProperty:"Inconsistently quoted property '{{key}}' found.",unnecessarilyQuotedProperty:"Unnecessarily quoted property '{{property}}' found.",unquotedReservedProperty:"Unquoted reserved word '{{property}}' used as key.",unquotedNumericProperty:"Unquoted number literal '{{property}}' used as key.",unquotedPropertyFound:"Unquoted property '{{property}}' found.",redundantQuoting:"Properties shouldn't be quoted as all quotes are redundant."}},create(t){let e=t.options[0],r=t.options[1]&&t.options[1].keywords,s=!t.options[1]||t.options[1].unnecessary!==!1,n=t.options[1]&&t.options[1].numbers,i=t.sourceCode;function o(f){return MJ.includes(f)}function a(f,d,g){return d.length===1&&d[0].start===0&&d[0].end===f.length&&(["Identifier","Keyword","Null","Boolean"].includes(d[0].type)||d[0].type==="Numeric"&&!g&&String(+d[0].value)===d[0].value)}function l(f){return f.type==="Identifier"?f.name:f.value}function u(f){return f.type==="Literal"&&typeof f.value=="string"?i.getText(f):`"${f.type==="Identifier"?f.name:f.value}"`}function c(f){let d=f.key;if(!(f.method||f.computed||f.shorthand))if(d.type==="Literal"&&typeof d.value=="string"){let g;try{g=MO.tokenize(d.value)}catch{return}if(g.length!==1||o(g[0].value)&&r)return;s&&a(d.value,g,n)&&t.report({node:f,messageId:"unnecessarilyQuotedProperty",data:{property:d.value},fix:v=>v.replaceText(d,l(d))})}else r&&d.type==="Identifier"&&o(d.name)?t.report({node:f,messageId:"unquotedReservedProperty",data:{property:d.name},fix:g=>g.replaceText(d,u(d))}):n&&d.type==="Literal"&&jJ.isNumericLiteral(d)&&t.report({node:f,messageId:"unquotedNumericProperty",data:{property:d.value},fix:g=>g.replaceText(d,u(d))})}function p(f){let d=f.key;!f.method&&!f.computed&&!f.shorthand&&!(d.type==="Literal"&&typeof d.value=="string")&&t.report({node:f,messageId:"unquotedPropertyFound",data:{property:d.name||d.value},fix:g=>g.replaceText(d,u(d))})}function h(f,d){let g=[],y=[],v=null,S=!1;f.properties.forEach(A=>{let E=A.key;if(!(!E||A.method||A.computed||A.shorthand))if(E.type==="Literal"&&typeof E.value=="string"){if(g.push(A),d){let k;try{k=MO.tokenize(E.value)}catch{S=!0;return}S=S||!a(E.value,k)||r&&o(k[0].value)}}else r&&d&&E.type==="Identifier"&&o(E.name)?(y.push(A),S=!0,v=E.name):y.push(A)}),d&&g.length&&!S?g.forEach(A=>{t.report({node:A,messageId:"redundantQuoting",fix:E=>E.replaceText(A.key,l(A.key))})}):y.length&&v?y.forEach(A=>{t.report({node:A,messageId:"requireQuotesDueToReservedWord",data:{property:v},fix:E=>E.replaceText(A.key,u(A.key))})}):g.length&&y.length&&y.forEach(A=>{t.report({node:A,messageId:"inconsistentlyQuotedProperty",data:{key:A.key.name||A.key.value},fix:E=>E.replaceText(A.key,u(A.key))})})}return{Property(f){(e==="always"||!e)&&p(f),e==="as-needed"&&c(f)},ObjectExpression(f){e==="consistent"&&h(f,!1),e==="consistent-as-needed"&&h(f,!0)}}}}});var VO=B((Wie,$O)=>{"use strict";var on=X(),ru={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},qJ=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(on.LINEBREAKS).join("")}]`,"u");ru.double.convert=ru.single.convert=ru.backtick.convert=function(t){let e=this.quote,r=t[0];return e===r?t:e+t.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(s,n,i)=>n===r||r==="`"&&n==="${"?n:s===e||e==="`"&&s==="${"?`\\${s}`:i&&r==="`"?"\\n":s)+e};var UJ="avoid-escape";$O.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"quotes",url:"https://eslint.style/rules/quotes"}}]},type:"layout",docs:{description:"Enforce the consistent use of either backticks, double, or single quotes",recommended:!1,url:"https://eslint.org/docs/latest/rules/quotes"},fixable:"code",schema:[{enum:["single","double","backtick"]},{anyOf:[{enum:["avoid-escape"]},{type:"object",properties:{avoidEscape:{type:"boolean"},allowTemplateLiterals:{type:"boolean"}},additionalProperties:!1}]}],messages:{wrongQuotes:"Strings must use {{description}}."}},create(t){let e=t.options[0],r=ru[e||"double"],s=t.options[1],n=s&&s.allowTemplateLiterals===!0,i=t.sourceCode,o=s&&s.avoidEscape===!0;s===UJ&&(o=!0);function a(h){return h.parent.type==="JSXAttribute"||h.parent.type==="JSXElement"||h.parent.type==="JSXFragment"}function l(h){return h.type==="ExpressionStatement"&&h.expression.type==="Literal"&&typeof h.expression.value=="string"&&!on.isParenthesised(i,h.expression)}function u(h){if(!on.isTopLevelExpressionStatement(h.parent))return!1;let f=h.parent.parent;for(let d=0;d<f.body.length;++d){let g=f.body[d];if(g===h.parent)return!0;if(!l(g))break}return!1}function c(h){let f=h.parent;switch(f.type){case"ExpressionStatement":return!on.isParenthesised(i,h)&&u(h);case"Property":case"PropertyDefinition":case"MethodDefinition":return f.key===h&&!f.computed;case"ImportDeclaration":case"ExportNamedDeclaration":return f.source===h;case"ExportAllDeclaration":return f.exported===h||f.source===h;case"ImportSpecifier":return f.imported===h;case"ExportSpecifier":return f.local===h||f.exported===h;default:return!1}}function p(h){return!!(h.parent.type==="TaggedTemplateExpression"&&h===h.parent.quasi||h.expressions.length>0||h.quasis.length>=1&&qJ.test(h.quasis[0].value.raw))}return{Literal(h){let f=h.value,d=h.raw;if(r&&typeof f=="string"){let g=e==="backtick"&&c(h)||a(h)||on.isSurroundedBy(d,r.quote);!g&&o&&(g=on.isSurroundedBy(d,r.alternateQuote)&&d.includes(r.quote)),g||t.report({node:h,messageId:"wrongQuotes",data:{description:r.description},fix(y){return e==="backtick"&&on.hasOctalOrNonOctalDecimalEscapeSequence(d)?null:y.replaceText(h,r.convert(h.raw))}})}},TemplateLiteral(h){n||e==="backtick"||p(h)||t.report({node:h,messageId:"wrongQuotes",data:{description:r.description},fix(f){return on.isTopLevelExpressionStatement(h.parent)&&!on.isParenthesised(i,h)?null:f.replaceText(h,r.convert(i.getText(h)))}})}}}}});var KO=B((zie,GO)=>{"use strict";var Ei=X(),WO=new Set(Array.from({length:35},(t,e)=>e+2));function zO(t){return t.defs.length>=1}function $J(t,e){if(t.type==="UnaryExpression"&&(t.operator==="-"||t.operator==="+")&&t.argument.type==="Literal"&&typeof t.argument.value=="number"){let r=t.operator==="-"?-t.argument.value:t.argument.value;return WO.has(r)}return!(t.type==="Literal"&&!WO.has(t.value)||t.type==="Identifier"&&t.name==="undefined"&&e.isGlobalReference(t))}GO.exports={meta:{type:"suggestion",docs:{description:"Enforce the use of the radix argument when using `parseInt()`",recommended:!1,url:"https://eslint.org/docs/latest/rules/radix"},hasSuggestions:!0,schema:[{enum:["always","as-needed"]}],messages:{missingParameters:"Missing parameters.",missingRadix:"Missing radix parameter.",invalidRadix:"Invalid radix parameter, must be an integer between 2 and 36.",addRadixParameter10:"Add radix parameter `10` for parsing decimal numbers."}},create(t){let e=t.sourceCode;function r(s){let n=s.arguments,i=n.findIndex(o=>o.type==="SpreadElement");i!==-1&&i<2||(n.length===0?t.report({node:s,messageId:"missingParameters"}):n.length===1?t.report({node:s,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(o){let a=e.getLastToken(s),l=e.getTokenBefore(a),u=Ei.isCommaToken(l);return o.insertTextBefore(a,u?" 10,":", 10")}}]}):$J(n[1],e)||t.report({node:s,messageId:"invalidRadix"}))}return{"Program:exit"(s){let n=e.getScope(s),i;i=Ei.getVariableByName(n,"parseInt"),i&&!zO(i)&&i.references.forEach(o=>{let a=o.identifier;Ei.isCallee(a)&&r(a.parent)}),i=Ei.getVariableByName(n,"Number"),i&&!zO(i)&&i.references.forEach(o=>{let a=o.identifier.parent,l=a.parent.type==="ChainExpression"?a.parent:a;Ei.isSpecificMemberAccess(a,"Number","parseInt")&&Ei.isCallee(l)&&r(l.parent)})}}}}});var XO=B((Gie,JO)=>{"use strict";function HO(t,e=new Map){for(let r of t.references)r.resolved!==null&&e.set(r.identifier,r);for(let r of t.childScopes)r.type!=="function"&&HO(r,e);return e}function VJ(t){if(t.writeExpr)return t.writeExpr;let e=t.identifier;for(;e;){let r=e.parent.type;if(r==="AssignmentExpression"&&e.parent.left===e)return e.parent.right;if(r==="MemberExpression"&&e.parent.object===e){e=e.parent;continue}break}return null}function WJ(t,e){if(!t||e&&t.defs.some(s=>s.type==="Parameter"))return!1;let r=t.scope.variableScope;return t.references.every(s=>s.from.variableScope===r)}var Pm=class{constructor(){this.info=new WeakMap}initialize(e){let r=new Set,s=new Set;for(let n of e.prevSegments){let i=this.info.get(n);i&&(i.outdatedReadVariables.forEach(Set.prototype.add,r),i.freshReadVariables.forEach(Set.prototype.add,s))}this.info.set(e,{outdatedReadVariables:r,freshReadVariables:s})}markAsRead(e,r){for(let s of e){let n=this.info.get(s);n&&(n.freshReadVariables.add(r),n.outdatedReadVariables.delete(r))}}makeOutdated(e){for(let r of e){let s=this.info.get(r);s&&(s.freshReadVariables.forEach(Set.prototype.add,s.outdatedReadVariables),s.freshReadVariables.clear())}}isOutdated(e,r){for(let s of e){let n=this.info.get(s);if(n&&n.outdatedReadVariables.has(r))return!0}return!1}};JO.exports={meta:{type:"problem",defaultOptions:[{allowProperties:!1}],docs:{description:"Disallow assignments that can lead to race conditions due to usage of `await` or `yield`",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-atomic-updates"},fixable:null,schema:[{type:"object",properties:{allowProperties:{type:"boolean"}},additionalProperties:!1}],messages:{nonAtomicUpdate:"Possible race condition: `{{value}}` might be reassigned based on an outdated value of `{{value}}`.",nonAtomicObjectUpdate:"Possible race condition: `{{value}}` might be assigned based on an outdated state of `{{object}}`."}},create(t){let[{allowProperties:e}]=t.options,r=t.sourceCode,s=new Map,n=new Pm,i=null;return{onCodePathStart(o,a){let l=r.getScope(a),u=l.type==="function"&&(l.block.async||l.block.generator);i={upper:i,codePath:o,referenceMap:u?HO(l):null,currentSegments:new Set}},onCodePathEnd(){i=i.upper},onCodePathSegmentStart(o){n.initialize(o),i.currentSegments.add(o)},onUnreachableCodePathSegmentStart(o){i.currentSegments.add(o)},onUnreachableCodePathSegmentEnd(o){i.currentSegments.delete(o)},onCodePathSegmentEnd(o){i.currentSegments.delete(o)},Identifier(o){let{referenceMap:a}=i,l=a&&a.get(o);if(!l)return;let u=l.resolved,c=VJ(l),p=l.identifier.parent.type==="MemberExpression";if(l.isRead()&&!(c&&c.parent.operator==="=")&&n.markAsRead(i.currentSegments,u),c&&c.parent.right===c&&!WJ(u,p)){let h=s.get(c);h||(h=[],s.set(c,h)),h.push(l)}},":expression:exit"(o){if(!i.referenceMap)return;(o.type==="AwaitExpression"||o.type==="YieldExpression")&&n.makeOutdated(i.currentSegments);let a=s.get(o);if(a){s.delete(o);for(let l of a){let u=l.resolved;n.isOutdated(i.currentSegments,u)&&(o.parent.left===l.identifier?t.report({node:o.parent,messageId:"nonAtomicUpdate",data:{value:u.name}}):e||t.report({node:o.parent,messageId:"nonAtomicObjectUpdate",data:{value:r.getText(o.parent.left),object:u.name}}))}}}}}}});var YO=B((Kie,QO)=>{"use strict";var bs=X();function zJ(t){return t[0].toUpperCase()+t.slice(1)}QO.exports={meta:{type:"suggestion",docs:{description:"Disallow async functions which have no `await` expression",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-await"},schema:[],messages:{missingAwait:"{{name}} has no 'await' expression.",removeAsync:"Remove 'async'."},hasSuggestions:!0},create(t){let e=t.sourceCode,r=null;function s(){r={upper:r,hasAwait:!1}}function n(i){if(!i.generator&&i.async&&!r.hasAwait&&!bs.isEmptyFunction(i)){let o=i.parent.type==="MethodDefinition"&&i.parent.value===i||i.parent.type==="Property"&&i.parent.method&&i.parent.value===i?i.parent:i,a=e.getFirstToken(o,p=>p.value==="async"),l=[a.range[0],e.getTokenAfter(a,{includeComments:!0}).range[0]],u=e.getTokenAfter(a),c=(bs.isOpeningParenToken(u)&&bs.isStartOfExpressionStatement(o)||o.type==="MethodDefinition"&&bs.canContinueExpressionInClassBody(u))&&bs.needsPrecedingSemicolon(e,o);t.report({node:i,loc:bs.getFunctionHeadLoc(i,e),messageId:"missingAwait",data:{name:zJ(bs.getFunctionNameWithKind(i))},suggest:[{messageId:"removeAsync",fix:p=>p.replaceTextRange(l,c?";":"")}]})}r=r.upper}return{FunctionDeclaration:s,FunctionExpression:s,ArrowFunctionExpression:s,"FunctionDeclaration:exit":n,"FunctionExpression:exit":n,"ArrowFunctionExpression:exit":n,AwaitExpression(){r&&(r.hasAwait=!0)},ForOfStatement(i){r&&i.await&&(r.hasAwait=!0)},VariableDeclaration(i){r&&i.kind==="await using"&&(r.hasAwait=!0)}}}}});var nL=B((Hie,rL)=>{"use strict";var{CALL:GJ,CONSTRUCT:KJ,ReferenceTracker:HJ,getStringIfConstant:ZO}=Ht(),JJ=X(),{isValidWithUnicodeFlag:eL}=Wl();function tL(t,e){let r;return t==="v"?r=!e.includes("v"):t==="u"?r=!e.includes("u"):r=!e.includes("u")&&!e.includes("v"),r}rL.exports={meta:{type:"suggestion",defaultOptions:[{}],docs:{description:"Enforce the use of `u` or `v` flag on regular expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/require-unicode-regexp"},hasSuggestions:!0,messages:{addUFlag:"Add the 'u' flag.",addVFlag:"Add the 'v' flag.",requireUFlag:"Use the 'u' flag.",requireVFlag:"Use the 'v' flag."},schema:[{type:"object",properties:{requireFlag:{enum:["u","v"]}},additionalProperties:!1}]},create(t){let e=t.sourceCode,[{requireFlag:r}]=t.options;return{"Literal[regex]"(s){let n=s.regex.flags||"";tL(r,n)&&t.report({messageId:r==="v"?"requireVFlag":"requireUFlag",node:s,suggest:eL(t.languageOptions.ecmaVersion,s.regex.pattern,r)?[{fix(o){let a=r??"u",l=e.getText(s),u=l.lastIndexOf("/");if(r){let c=r==="u"?"v":"u";if(l.includes(c,u))return o.replaceText(s,l.slice(0,u)+l.slice(u).replace(c,r))}return o.insertTextAfter(s,a)},messageId:r==="v"?"addVFlag":"addUFlag"}]:null})},Program(s){let n=e.getScope(s),i=new HJ(n),o={RegExp:{[GJ]:!0,[KJ]:!0}};for(let{node:a}of i.iterateGlobalReferences(o)){let[l,u]=a.arguments;if(l&&l.type==="SpreadElement")continue;let c=ZO(l,n),p=ZO(u,n),h=!u;typeof p=="string"&&(h=tL(r,p)),h&&t.report({messageId:r==="v"?"requireVFlag":"requireUFlag",node:a,suggest:typeof c=="string"&&eL(t.languageOptions.ecmaVersion,c,r)?[{fix(f){let d=r??"u";if(u){if(u.type==="Literal"&&typeof u.value=="string"||u.type==="TemplateLiteral"){let y=e.getText(u),v=r==="u"?"v":"u";return p.includes(v)?u.type==="Literal"&&u.raw.includes("\\")||u.type==="TemplateLiteral"&&(u.expressions.length||u.quasis.some(({value:{raw:S}})=>S.includes("\\")))?null:f.replaceText(u,y.replace(v,d)):f.replaceText(u,[y.slice(0,y.length-1),y.slice(y.length-1)].join(d))}return null}let g=e.getLastToken(a,{skip:1});return f.insertTextAfter(g,JJ.isCommaToken(g)?` "${d}",`:`, "${d}"`)},messageId:r==="v"?"addVFlag":"addUFlag"}]:null})}}}}}});var iL=B((Jie,sL)=>{"use strict";var XJ=X();sL.exports={meta:{type:"suggestion",docs:{description:"Require generator functions to contain `yield`",recommended:!0,url:"https://eslint.org/docs/latest/rules/require-yield"},schema:[],messages:{missingYield:"This generator function does not have 'yield'."}},create(t){let e=[],r=t.sourceCode;function s(i){i.generator&&e.push(0)}function n(i){if(!i.generator)return;e.pop()===0&&i.body.body.length>0&&t.report({loc:XJ.getFunctionHeadLoc(i,r),messageId:"missingYield"})}return{FunctionDeclaration:s,"FunctionDeclaration:exit":n,FunctionExpression:s,"FunctionExpression:exit":n,YieldExpression(){e.length>0&&(e[e.length-1]+=1)}}}}});var oL=B((Xie,aL)=>{"use strict";aL.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"rest-spread-spacing",url:"https://eslint.style/rules/rest-spread-spacing"}}]},type:"layout",docs:{description:"Enforce spacing between rest and spread operators and their expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/rest-spread-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpectedWhitespace:"Unexpected whitespace after {{type}} operator.",expectedWhitespace:"Expected whitespace after {{type}} operator."}},create(t){let e=t.sourceCode,r=t.options[0]==="always";function s(n){let i=e.getFirstToken(n),o=e.getTokenAfter(i),a=e.isSpaceBetween(i,o),l;switch(n.type){case"SpreadElement":l="spread",n.parent.type==="ObjectExpression"&&(l+=" property");break;case"RestElement":l="rest",n.parent.type==="ObjectPattern"&&(l+=" property");break;case"ExperimentalSpreadProperty":l="spread property";break;case"ExperimentalRestProperty":l="rest property";break;default:return}r&&!a?t.report({node:n,loc:i.loc,messageId:"expectedWhitespace",data:{type:l},fix(u){return u.replaceTextRange([i.range[1],o.range[0]]," ")}}):!r&&a&&t.report({node:n,loc:{start:i.loc.end,end:o.loc.start},messageId:"unexpectedWhitespace",data:{type:l},fix(u){return u.removeRange([i.range[1],o.range[0]])}})}return{SpreadElement:s,RestElement:s,ExperimentalSpreadProperty:s,ExperimentalRestProperty:s}}}});var uL=B((Qie,lL)=>{"use strict";var QJ=ps(),bi=X();lL.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi",url:"https://eslint.style/rules/semi"}}]},type:"layout",docs:{description:"Require or disallow semicolons instead of ASI",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi"},fixable:"code",schema:{anyOf:[{type:"array",items:[{enum:["never"]},{type:"object",properties:{beforeStatementContinuationChars:{enum:["always","any","never"]}},additionalProperties:!1}],minItems:0,maxItems:2},{type:"array",items:[{enum:["always"]},{type:"object",properties:{omitLastInOneLineBlock:{type:"boolean"},omitLastInOneLineClassBody:{type:"boolean"}},additionalProperties:!1}],minItems:0,maxItems:2}]},messages:{missingSemi:"Missing semicolon.",extraSemi:"Extra semicolon."}},create(t){let e=/^[-[(/+`]/u,r=new Set(["get","set","static"]),s=new Set(["*","in","instanceof"]),n=t.options[1],i=t.options[0]==="never",o=!!(n&&n.omitLastInOneLineBlock),a=!!(n&&n.omitLastInOneLineClassBody),l=n&&n.beforeStatementContinuationChars||"any",u=t.sourceCode;function c(T,w){let R=u.getLastToken(T),j,$,M;w?(j="extraSemi",M=R.loc,$=function(N){return new QJ(N,u).retainSurroundingTokens(R).remove(R)}):(j="missingSemi",M={start:R.loc.end,end:bi.getNextLocation(u,R.loc.end)},$=function(N){return N.insertTextAfter(R,";")}),t.report({node:T,loc:M,messageId:j,fix:$})}function p(T){let w=u.getTokenAfter(T);return!w||bi.isClosingBraceToken(w)||bi.isSemicolonToken(w)}function h(T){if(!bi.isClosingBraceToken(T))return!1;let w=u.getNodeByRangeIndex(T.range[0]);return w.type==="BlockStatement"&&w.parent.type==="ArrowFunctionExpression"}function f(T){if(T.type!=="PropertyDefinition")return!1;if(!T.computed&&T.key.type==="Identifier"&&r.has(T.key.name)&&!(T.static&&T.key.name==="static")&&!T.value)return!0;let R=u.getTokenAfter(T);return s.has(R.value)}function d(T){let w=u.getLastToken(T,1),R=u.getTokenAfter(T);return!!R&&bi.isTokenOnSameLine(w,R)}function g(T){let w=T.type;return w==="DoWhileStatement"||w==="BreakStatement"||w==="ContinueStatement"||w==="DebuggerStatement"||w==="ImportDeclaration"||w==="ExportAllDeclaration"?!1:w==="ReturnStatement"?!!T.argument:w==="ExportNamedDeclaration"?!!T.declaration:!h(u.getLastToken(T,1))}function y(T){return!!T&&e.test(T.value)&&T.value!=="++"&&T.value!=="--"}function v(T){return p(u.getLastToken(T))?!0:f(T)||d(T)?!1:T.type!=="PropertyDefinition"&&l==="never"&&!g(T)||!y(u.getTokenAfter(T))}function S(T){let w=T.parent,R=u.getTokenAfter(T);return!R||R.value!=="}"?!1:w.type==="BlockStatement"?w.loc.start.line===w.loc.end.line:w.type==="StaticBlock"?u.getFirstToken(w,{skip:1}).loc.start.line===w.loc.end.line:!1}function A(T){let w=T.parent,R=u.getTokenAfter(T);return!R||R.value!=="}"?!1:w.type==="ClassBody"?w.loc.start.line===w.loc.end.line:!1}function E(T){let w=bi.isSemicolonToken(u.getLastToken(T));if(i)w&&v(T)?c(T,!0):!w&&l==="always"&&T.type!=="PropertyDefinition"&&y(u.getTokenAfter(T))&&c(T);else{let R=o&&S(T),j=a&&A(T),$=R||j;w&&$?c(T,!0):!w&&!$&&c(T)}}function k(T){let w=T.parent;(w.type!=="ForStatement"||w.init!==T)&&(!/^For(?:In|Of)Statement/u.test(w.type)||w.left!==T)&&E(T)}return{VariableDeclaration:k,ExpressionStatement:E,ReturnStatement:E,ThrowStatement:E,DoWhileStatement:E,DebuggerStatement:E,BreakStatement:E,ContinueStatement:E,ImportDeclaration:E,ExportAllDeclaration:E,ExportNamedDeclaration(T){T.declaration||E(T)},ExportDefaultDeclaration(T){/(?:Class|Function)Declaration/u.test(T.declaration.type)||E(T)},PropertyDefinition:E}}}});var pL=B((Yie,cL)=>{"use strict";var vs=X();cL.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi-spacing",url:"https://eslint.style/rules/semi-spacing"}}]},type:"layout",docs:{description:"Enforce consistent spacing before and after semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-spacing"},fixable:"whitespace",schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],messages:{unexpectedWhitespaceBefore:"Unexpected whitespace before semicolon.",unexpectedWhitespaceAfter:"Unexpected whitespace after semicolon.",missingWhitespaceBefore:"Missing whitespace before semicolon.",missingWhitespaceAfter:"Missing whitespace after semicolon."}},create(t){let e=t.options[0],r=t.sourceCode,s=!1,n=!0;typeof e=="object"&&(s=e.before,n=e.after);function i(h){let f=r.getTokenBefore(h);return f&&vs.isTokenOnSameLine(f,h)&&r.isSpaceBetween(f,h)}function o(h){let f=r.getTokenAfter(h);return f&&vs.isTokenOnSameLine(h,f)&&r.isSpaceBetween(h,f)}function a(h){let f=r.getTokenAfter(h);return!(f&&vs.isTokenOnSameLine(h,f))}function l(h){let f=r.getTokenBefore(h);return!(f&&vs.isTokenOnSameLine(h,f))}function u(h){let f=r.getTokenAfter(h);return f&&vs.isClosingBraceToken(f)||vs.isClosingParenToken(f)}function c(h,f){if(vs.isSemicolonToken(h)){if(i(h)){if(!s){let d=r.getTokenBefore(h),g={start:d.loc.end,end:h.loc.start};t.report({node:f,loc:g,messageId:"unexpectedWhitespaceBefore",fix(y){return y.removeRange([d.range[1],h.range[0]])}})}}else if(s){let d=h.loc;t.report({node:f,loc:d,messageId:"missingWhitespaceBefore",fix(g){return g.insertTextBefore(h," ")}})}if(!l(h)&&!a(h)&&!u(h)){if(o(h)){if(!n){let d=r.getTokenAfter(h),g={start:h.loc.end,end:d.loc.start};t.report({node:f,loc:g,messageId:"unexpectedWhitespaceAfter",fix(y){return y.removeRange([h.range[1],d.range[0]])}})}}else if(n){let d=h.loc;t.report({node:f,loc:d,messageId:"missingWhitespaceAfter",fix(g){return g.insertTextAfter(h," ")}})}}}}function p(h){let f=r.getLastToken(h);c(f,h)}return{VariableDeclaration:p,ExpressionStatement:p,BreakStatement:p,ContinueStatement:p,DebuggerStatement:p,DoWhileStatement:p,ReturnStatement:p,ThrowStatement:p,ImportDeclaration:p,ExportNamedDeclaration:p,ExportAllDeclaration:p,ExportDefaultDeclaration:p,ForStatement(h){h.init&&c(r.getTokenAfter(h.init),h),h.test&&c(r.getTokenAfter(h.test),h)},PropertyDefinition:p}}}});var hL=B((Zie,fL)=>{"use strict";var Fa=X(),YJ=["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration","PropertyDefinition"].join(",");function ZJ(t){let e=t.type;return e==="BlockStatement"||e==="StaticBlock"||e==="Program"||e==="ClassBody"?t.body:e==="SwitchCase"?t.consequent:null}function eX(t){let e=t.parent.type;if(e==="IfStatement"&&t.parent.consequent===t&&t.parent.alternate||e==="DoWhileStatement")return!0;let r=ZJ(t.parent);return r!==null&&r.at(-1)===t}fL.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"semi-style",url:"https://eslint.style/rules/semi-style"}}]},type:"layout",docs:{description:"Enforce location of semicolons",recommended:!1,url:"https://eslint.org/docs/latest/rules/semi-style"},schema:[{enum:["last","first"]}],fixable:"whitespace",messages:{expectedSemiColon:"Expected this semicolon to be at {{pos}}."}},create(t){let e=t.sourceCode,r=t.options[0]||"last";function s(n,i){let o=e.getTokenBefore(n),a=e.getTokenAfter(n),l=!o||Fa.isTokenOnSameLine(o,n),u=!a||Fa.isTokenOnSameLine(n,a);(i==="last"&&!l||i==="first"&&!u)&&t.report({loc:n.loc,messageId:"expectedSemiColon",data:{pos:i==="last"?"the end of the previous line":"the beginning of the next line"},fix(c){if(o&&a&&e.commentsExistBetween(o,a))return null;let p=o?o.range[1]:n.range[0],h=a?a.range[0]:n.range[1],f=i==="last"?`;
101
+ `:`
102
+ ;`;return c.replaceTextRange([p,h],f)}})}return{[YJ](n){if(r==="first"&&eX(n))return;let i=e.getLastToken(n);Fa.isSemicolonToken(i)&&s(i,r)},ForStatement(n){let i=n.init&&e.getTokenAfter(n.init,Fa.isSemicolonToken),o=n.test&&e.getTokenAfter(n.test,Fa.isSemicolonToken);i&&s(i,"last"),o&&s(o,"last")}}}}});var dL=B((eae,mL)=>{"use strict";mL.exports={meta:{type:"suggestion",defaultOptions:[{allowSeparatedGroups:!1,ignoreCase:!1,ignoreDeclarationSort:!1,ignoreMemberSort:!1,memberSyntaxSortOrder:["none","all","multiple","single"]}],docs:{description:"Enforce sorted `import` declarations within modules",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/sort-imports"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean"},memberSyntaxSortOrder:{type:"array",items:{enum:["none","all","multiple","single"]},uniqueItems:!0,minItems:4,maxItems:4},ignoreDeclarationSort:{type:"boolean"},ignoreMemberSort:{type:"boolean"},allowSeparatedGroups:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{sortImportsAlphabetically:"Imports should be sorted alphabetically.",sortMembersAlphabetically:"Member '{{memberName}}' of the import declaration should be sorted alphabetically.",unexpectedSyntaxOrder:"Expected '{{syntaxA}}' syntax before '{{syntaxB}}' syntax."}},create(t){let[{ignoreCase:e,ignoreDeclarationSort:r,ignoreMemberSort:s,memberSyntaxSortOrder:n,allowSeparatedGroups:i}]=t.options,o=t.sourceCode,a=null;function l(h){return h.specifiers.length===0?"none":h.specifiers[0].type==="ImportNamespaceSpecifier"?"all":h.specifiers.length===1?"single":"multiple"}function u(h){return n.indexOf(l(h))}function c(h){return h.specifiers[0]?h.specifiers[0].local.name:null}function p(h,f){return Math.max(f.loc.start.line-h.loc.end.line-1,0)}return{ImportDeclaration(h){if(!r){if(a&&i&&p(a,h)>0&&(a=null),a){let f=u(h),d=u(a),g=c(h),y=c(a);e&&(y=y&&y.toLowerCase(),g=g&&g.toLowerCase()),f!==d?f<d&&t.report({node:h,messageId:"unexpectedSyntaxOrder",data:{syntaxA:n[f],syntaxB:n[d]}}):y&&g&&g<y&&t.report({node:h,messageId:"sortImportsAlphabetically"})}a=h}if(!s){let f=h.specifiers.filter(y=>y.type==="ImportSpecifier"),d=e?y=>y.local.name.toLowerCase():y=>y.local.name,g=f.map(d).findIndex((y,v,S)=>S[v-1]>y);g!==-1&&t.report({node:f[g],messageId:"sortMembersAlphabetically",data:{memberName:f[g].local.name},fix(y){return f.some(v=>o.getCommentsBefore(v).length||o.getCommentsAfter(v).length)?null:y.replaceTextRange([f[0].range[0],f.at(-1).range[1]],f.slice().sort((v,S)=>{let A=d(v),E=d(S);return A>E?1:-1}).reduce((v,S,A)=>{let E=A===f.length-1?"":o.getText().slice(f[A].range[1],f[A+1].range[0]);return v+o.getText(S)+E},""))}})}}}}}});var xL=B((tae,yL)=>{var gL=function(t,e){var r,s,n=1,i=0,o=0,a=String.alphabet;function l(u,c,p){if(p){for(r=c;p=l(u,r),p<76&&p>65;)++r;return+u.slice(c-1,r)}return p=a&&a.indexOf(u.charAt(c)),p>-1?p+76:(p=u.charCodeAt(c)||0,p<45||p>127?p:p<46?65:p<48?p-1:p<58?p+18:p<65?p-11:p<91?p+11:p<97?p-37:p<123?p+5:p-63)}if((t+="")!=(e+="")){for(;n;)if(s=l(t,i++),n=l(e,o++),s<76&&n<76&&s>66&&n>66&&(s=l(t,i,i),n=l(e,o,i=r),o=r),s!=n)return s<n?-1:1}return 0};try{yL.exports=gL}catch{String.naturalCompare=gL}});var vL=B((rae,bL)=>{"use strict";var tX=X(),EL=xL();function rX(t){let e=tX.getStaticPropertyName(t);return e!==null?e:t.key.name||null}var _a={asc(t,e){return t<=e},ascI(t,e){return t.toLowerCase()<=e.toLowerCase()},ascN(t,e){return EL(t,e)<=0},ascIN(t,e){return EL(t.toLowerCase(),e.toLowerCase())<=0},desc(t,e){return _a.asc(e,t)},descI(t,e){return _a.ascI(e,t)},descN(t,e){return _a.ascN(e,t)},descIN(t,e){return _a.ascIN(e,t)}};bL.exports={meta:{type:"suggestion",defaultOptions:["asc",{allowLineSeparatedGroups:!1,caseSensitive:!0,ignoreComputedKeys:!1,minKeys:2,natural:!1}],docs:{description:"Require object keys to be sorted",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/sort-keys"},schema:[{enum:["asc","desc"]},{type:"object",properties:{caseSensitive:{type:"boolean"},natural:{type:"boolean"},minKeys:{type:"integer",minimum:2},allowLineSeparatedGroups:{type:"boolean"},ignoreComputedKeys:{type:"boolean"}},additionalProperties:!1}],messages:{sortKeys:"Expected object keys to be in {{natural}}{{insensitive}}{{order}}ending order. '{{thisName}}' should be before '{{prevName}}'."}},create(t){let[e,{caseSensitive:r,natural:s,minKeys:n,allowLineSeparatedGroups:i,ignoreComputedKeys:o}]=t.options,a=!r,l=_a[e+(a?"I":"")+(s?"N":"")],u=null,c=t.sourceCode;return{ObjectExpression(p){u={upper:u,prevNode:null,prevBlankLine:!1,prevName:null,numKeys:p.properties.length}},"ObjectExpression:exit"(){u=u.upper},SpreadElement(p){p.parent.type==="ObjectExpression"&&(u.prevName=null)},Property(p){if(p.parent.type==="ObjectPattern")return;if(o&&p.computed){u.prevName=null;return}let h=u.prevName,f=u.numKeys,d=rX(p),g=u.prevNode&&c.getTokensBetween(u.prevNode,p,{includeComments:!0}),y=u.prevBlankLine;if(g&&(g.forEach((v,S)=>{let A=g[S-1];A&&v.loc.start.line-A.loc.end.line>1&&(y=!0)}),!y&&p.loc.start.line-g.at(-1).loc.end.line>1&&(y=!0),!y&&g[0].loc.start.line-u.prevNode.loc.end.line>1&&(y=!0)),u.prevNode=p,d!==null&&(u.prevName=d),i&&y){u.prevBlankLine=d===null;return}h===null||d===null||f<n||l(h,d)||t.report({node:p,loc:p.key.loc,messageId:"sortKeys",data:{thisName:d,prevName:h,order:e,insensitive:a?"insensitive ":"",natural:s?"natural ":""}})}}}}});var CL=B((nae,SL)=>{"use strict";SL.exports={meta:{type:"suggestion",defaultOptions:[{ignoreCase:!1}],docs:{description:"Require variables within the same declaration block to be sorted",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/sort-vars"},schema:[{type:"object",properties:{ignoreCase:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{sortVars:"Variables within the same declaration block should be sorted alphabetically."}},create(t){let[{ignoreCase:e}]=t.options,r=t.sourceCode;return{VariableDeclaration(s){let n=s.declarations.filter(l=>l.id.type==="Identifier"),i=e?l=>l.id.name.toLowerCase():l=>l.id.name,o=n.some(l=>l.init!==null&&l.init.type!=="Literal"),a=!1;n.slice(1).reduce((l,u)=>{let c=i(l);return i(u)<c?(t.report({node:u,messageId:"sortVars",fix(h){return o||a?null:h.replaceTextRange([n[0].range[0],n.at(-1).range[1]],n.slice().sort((f,d)=>{let g=i(f),y=i(d);return g>y?1:-1}).reduce((f,d,g)=>{let y=g===n.length-1?"":r.getText().slice(n[g].range[1],n[g+1].range[0]);return f+r.getText(d)+y},""))}}),a=!0,l):u},n[0])}}}}});var kL=B((sae,AL)=>{"use strict";var vi=X();function wL(t){let e=t.parent;return t.type==="BlockStatement"&&vi.isFunction(e)&&e.body===t}AL.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-before-blocks",url:"https://eslint.style/rules/space-before-blocks"}}]},type:"layout",docs:{description:"Enforce consistent spacing before blocks",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-blocks"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{keywords:{enum:["always","never","off"]},functions:{enum:["always","never","off"]},classes:{enum:["always","never","off"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before opening brace.",missingSpace:"Missing space before opening brace."}},create(t){let e=t.options[0],r=t.sourceCode,s=!0,n=!0,i=!0,o=!1,a=!1,l=!1;typeof e=="object"?(s=e.functions==="always",n=e.keywords==="always",i=e.classes==="always",o=e.functions==="never",a=e.keywords==="never",l=e.classes==="never"):e==="never"&&(s=!1,n=!1,i=!1,o=!0,a=!0,l=!0);function u(h,f){return vi.isArrowToken(h)||vi.isKeywordToken(h)&&!wL(f)||vi.isColonToken(h)&&f.parent&&f.parent.type==="SwitchCase"&&h===vi.getSwitchCaseColonToken(f.parent,r)}function c(h){let f=r.getTokenBefore(h);if(f&&!u(f,h)&&vi.isTokenOnSameLine(f,h)){let d=r.isSpaceBetween(f,h),g,y;wL(h)?(g=s,y=o):h.type==="ClassBody"?(g=i,y=l):(g=n,y=a),g&&!d?t.report({node:h,messageId:"missingSpace",fix(v){return v.insertTextBefore(h," ")}}):y&&d&&t.report({node:h,messageId:"unexpectedSpace",fix(v){return v.removeRange([f.range[1],h.range[0]])}})}}function p(h){let f=h.cases,d;f.length>0?d=r.getTokenBefore(f[0]):d=r.getLastToken(h,1),c(d)}return{BlockStatement:c,ClassBody:c,SwitchStatement:p}}}});var IL=B((iae,DL)=>{"use strict";var TL=X();DL.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-before-function-paren",url:"https://eslint.style/rules/space-before-function-paren"}}]},type:"layout",docs:{description:"Enforce consistent spacing before `function` definition opening parenthesis",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-before-function-paren"},fixable:"whitespace",schema:[{oneOf:[{enum:["always","never"]},{type:"object",properties:{anonymous:{enum:["always","never","ignore"]},named:{enum:["always","never","ignore"]},asyncArrow:{enum:["always","never","ignore"]}},additionalProperties:!1}]}],messages:{unexpectedSpace:"Unexpected space before function parentheses.",missingSpace:"Missing space before function parentheses."}},create(t){let e=t.sourceCode,r=typeof t.options[0]=="string"?t.options[0]:"always",s=typeof t.options[0]=="object"?t.options[0]:{};function n(a){if(a.id)return!0;let l=a.parent;return l.type==="MethodDefinition"||l.type==="Property"&&(l.kind==="get"||l.kind==="set"||l.method)}function i(a){if(a.type==="ArrowFunctionExpression"){if(a.async&&TL.isOpeningParenToken(e.getFirstToken(a,{skip:1})))return s.asyncArrow||r}else{if(n(a))return s.named||r;if(!a.generator)return s.anonymous||r}return"ignore"}function o(a){let l=i(a);if(l==="ignore")return;let u=e.getFirstToken(a,TL.isOpeningParenToken),c=e.getTokenBefore(u),p=e.isSpaceBetween(c,u);p&&l==="never"?t.report({node:a,loc:{start:c.loc.end,end:u.loc.start},messageId:"unexpectedSpace",fix(h){let f=e.getCommentsBefore(u);return f.some(d=>d.type==="Line")?null:h.replaceTextRange([c.range[1],u.range[0]],f.reduce((d,g)=>d+e.getText(g),""))}}):!p&&l==="always"&&t.report({node:a,loc:u.loc,messageId:"missingSpace",fix:h=>h.insertTextAfter(c," ")})}return{ArrowFunctionExpression:o,FunctionDeclaration:o,FunctionExpression:o}}}});var FL=B((aae,PL)=>{"use strict";var Si=X();PL.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-in-parens",url:"https://eslint.style/rules/space-in-parens"}}]},type:"layout",docs:{description:"Enforce consistent spacing inside parentheses",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-in-parens"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{enum:["{}","[]","()","empty"]},uniqueItems:!0}},additionalProperties:!1}],messages:{missingOpeningSpace:"There must be a space after this paren.",missingClosingSpace:"There must be a space before this paren.",rejectedOpeningSpace:"There should be no space after this paren.",rejectedClosingSpace:"There should be no space before this paren."}},create(t){let e=t.options[0]==="always",r=t.options[1]&&t.options[1].exceptions||[],s={},n;r.length&&(s.braceException=r.includes("{}"),s.bracketException=r.includes("[]"),s.parenException=r.includes("()"),s.empty=r.includes("empty"));function i(){let f=[],d=[];return s.braceException&&(f.push("{"),d.push("}")),s.bracketException&&(f.push("["),d.push("]")),s.parenException&&(f.push("("),d.push(")")),s.empty&&(f.push(")"),d.push("(")),{openers:f,closers:d}}let o=t.sourceCode;function a(f){return n.openers.includes(f.value)}function l(f){return n.closers.includes(f.value)}function u(f,d){return o.isSpaceBetween(f,d)||!s.empty&&Si.isClosingParenToken(d)?!1:e?!a(d):a(d)}function c(f,d){return!Si.isTokenOnSameLine(f,d)||d.type==="Line"||!o.isSpaceBetween(f,d)?!1:e?a(d):!a(d)}function p(f,d){return o.isSpaceBetween(f,d)||!s.empty&&Si.isOpeningParenToken(f)?!1:e?!l(f):l(f)}function h(f,d){return!Si.isTokenOnSameLine(f,d)||!o.isSpaceBetween(f,d)?!1:e?l(f):!l(f)}return{Program:function(d){n=i();let g=o.tokensAndComments;g.forEach((y,v)=>{let S=g[v-1],A=g[v+1];!Si.isOpeningParenToken(y)&&!Si.isClosingParenToken(y)||(y.value==="("&&u(y,A)&&t.report({node:d,loc:y.loc,messageId:"missingOpeningSpace",fix(E){return E.insertTextAfter(y," ")}}),y.value==="("&&c(y,A)&&t.report({node:d,loc:{start:y.loc.end,end:A.loc.start},messageId:"rejectedOpeningSpace",fix(E){return E.removeRange([y.range[1],A.range[0]])}}),y.value===")"&&p(S,y)&&t.report({node:d,loc:y.loc,messageId:"missingClosingSpace",fix(E){return E.insertTextBefore(y," ")}}),y.value===")"&&h(S,y)&&t.report({node:d,loc:{start:S.loc.end,end:y.loc.start},messageId:"rejectedClosingSpace",fix(E){return E.removeRange([S.range[1],y.range[0]])}}))})}}}}});var BL=B((oae,_L)=>{"use strict";var{isEqToken:nX}=X();_L.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-infix-ops",url:"https://eslint.style/rules/space-infix-ops"}}]},type:"layout",docs:{description:"Require spacing around infix operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-infix-ops"},fixable:"whitespace",schema:[{type:"object",properties:{int32Hint:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{missingSpace:"Operator '{{operator}}' must be spaced."}},create(t){let e=t.options[0]?t.options[0].int32Hint===!0:!1,r=t.sourceCode;function s(l,u,c){let p=r.getFirstTokenBetween(l,u,d=>d.value===c),h=r.getTokenBefore(p),f=r.getTokenAfter(p);return!r.isSpaceBetween(h,p)||!r.isSpaceBetween(p,f)?p:null}function n(l,u){t.report({node:l,loc:u.loc,messageId:"missingSpace",data:{operator:u.value},fix(c){let p=r.getTokenBefore(u),h=r.getTokenAfter(u),f="";return u.range[0]-p.range[1]===0&&(f=" "),f+=u.value,h.range[0]-u.range[1]===0&&(f+=" "),c.replaceText(u,f)}})}function i(l){let u=l.left.typeAnnotation?l.left.typeAnnotation:l.left,c=l.right,p=l.operator||"=",h=s(u,c,p);h&&(e&&r.getText(l).endsWith("|0")||n(l,h))}function o(l){let u=s(l.test,l.consequent,"?"),c=s(l.consequent,l.alternate,":");u&&n(l,u),c&&n(l,c)}function a(l){let u=l.id.typeAnnotation?l.id.typeAnnotation:l.id,c=l.init;if(c){let p=s(u,c,"=");p&&n(l,p)}}return{AssignmentExpression:i,AssignmentPattern:i,BinaryExpression:i,LogicalExpression:i,ConditionalExpression:o,VariableDeclarator:a,PropertyDefinition(l){if(!l.value)return;let u=r.getTokenBefore(l.value,nX),c=r.getTokenBefore(u),p=r.getTokenAfter(u);(!r.isSpaceBetween(c,u)||!r.isSpaceBetween(u,p))&&n(l,u)}}}}});var NL=B((lae,LL)=>{"use strict";var OL=X();LL.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"space-unary-ops",url:"https://eslint.style/rules/space-unary-ops"}}]},type:"layout",docs:{description:"Enforce consistent spacing before or after unary operators",recommended:!1,url:"https://eslint.org/docs/latest/rules/space-unary-ops"},fixable:"whitespace",schema:[{type:"object",properties:{words:{type:"boolean",default:!0},nonwords:{type:"boolean",default:!1},overrides:{type:"object",additionalProperties:{type:"boolean"}}},additionalProperties:!1}],messages:{unexpectedBefore:"Unexpected space before unary operator '{{operator}}'.",unexpectedAfter:"Unexpected space after unary operator '{{operator}}'.",unexpectedAfterWord:"Unexpected space after unary word operator '{{word}}'.",wordOperator:"Unary word operator '{{word}}' must be followed by whitespace.",operator:"Unary operator '{{operator}}' must be followed by whitespace.",beforeUnaryExpressions:"Space is required before unary expressions '{{token}}'."}},create(t){let e=t.options[0]||{words:!0,nonwords:!1},r=t.sourceCode;function s(d){return d&&d.type==="UnaryExpression"&&d.argument.operator==="!"&&d.argument&&d.argument.type==="UnaryExpression"&&d.argument.operator==="!"}function n(d){return e.overrides&&Object.hasOwn(e.overrides,d)}function i(d){return e.overrides[d]}function o(d,g,y,v){y.range[0]===g.range[1]&&t.report({node:d,messageId:"wordOperator",data:{word:v},fix(S){return S.insertTextAfter(g," ")}})}function a(d,g,y,v){OL.canTokensBeAdjacent(g,y)&&y.range[0]>g.range[1]&&t.report({node:d,messageId:"unexpectedAfterWord",data:{word:v},fix(S){return S.removeRange([g.range[1],y.range[0]])}})}function l(d,g,y,v){n(v)?i(v)?o(d,g,y,v):a(d,g,y,v):e.words?o(d,g,y,v):a(d,g,y,v)}function u(d){let g=r.getFirstTokens(d,3),y="yield";!d.argument||d.delegate||l(d,g[0],g[1],y)}function c(d){let g=r.getFirstTokens(d,3);l(d,g[0],g[1],"await")}function p(d,g,y){if(d.prefix){if(s(d))return;g.range[1]===y.range[0]&&t.report({node:d,messageId:"operator",data:{operator:g.value},fix(v){return v.insertTextAfter(g," ")}})}else g.range[1]===y.range[0]&&t.report({node:d,messageId:"beforeUnaryExpressions",data:{token:y.value},fix(v){return v.insertTextBefore(y," ")}})}function h(d,g,y){d.prefix?y.range[0]>g.range[1]&&t.report({node:d,messageId:"unexpectedAfter",data:{operator:g.value},fix(v){return OL.canTokensBeAdjacent(g,y)?v.removeRange([g.range[1],y.range[0]]):null}}):y.range[0]>g.range[1]&&t.report({node:d,messageId:"unexpectedBefore",data:{operator:y.value},fix(v){return v.removeRange([g.range[1],y.range[0]])}})}function f(d){let g=d.type==="UpdateExpression"&&!d.prefix?r.getLastTokens(d,2):r.getFirstTokens(d,2),y=g[0],v=g[1];if((d.type==="NewExpression"||d.prefix)&&y.type==="Keyword"){l(d,y,v,y.value);return}let S=d.prefix?g[0].value:g[1].value;n(S)?i(S)?p(d,y,v):h(d,y,v):e.nonwords?p(d,y,v):h(d,y,v)}return{UnaryExpression:f,UpdateExpression:f,NewExpression:f,YieldExpression:u,AwaitExpression:c}}}});var qL=B((uae,ML)=>{"use strict";var sX=qi(),iX=X();function Ba(t){return`(?:${sX(t)})`}function RL(t){return`${Ba(t)}+`}function aX(t){return t.includes("*")?t:t.concat("*")}function jL(t){let e="";return t.length===0?e+="\\s":(e+="(?:\\s|",t.length===1?e+=RL(t[0]):(e+="(?:",e+=t.map(RL).join("|"),e+=")"),e+=`(?:$|[${Array.from(iX.LINEBREAKS).join("")}]))`),e}function oX(t,e){let r="^";return t.length===1?r+=Ba(t[0]):(r+="(?:",r+=t.map(Ba).join("|"),r+=")"),r+="?",r+=jL(e),new RegExp(r,"u")}function lX(t){let e=`^(${t.map(Ba).join("|")})?[ ]+`;return new RegExp(e,"u")}ML.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"spaced-comment",url:"https://eslint.style/rules/spaced-comment"}}]},type:"suggestion",docs:{description:"Enforce consistent spacing after the `//` or `/*` in a comment",recommended:!1,url:"https://eslint.org/docs/latest/rules/spaced-comment"},fixable:"whitespace",schema:[{enum:["always","never"]},{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},line:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}}},additionalProperties:!1},block:{type:"object",properties:{exceptions:{type:"array",items:{type:"string"}},markers:{type:"array",items:{type:"string"}},balanced:{type:"boolean",default:!1}},additionalProperties:!1}},additionalProperties:!1}],messages:{unexpectedSpaceAfterMarker:"Unexpected space or tab after marker ({{refChar}}) in comment.",expectedExceptionAfter:"Expected exception block, space or tab after '{{refChar}}' in comment.",unexpectedSpaceBefore:"Unexpected space or tab before '*/' in comment.",unexpectedSpaceAfter:"Unexpected space or tab after '{{refChar}}' in comment.",expectedSpaceBefore:"Expected space or tab before '*/' in comment.",expectedSpaceAfter:"Expected space or tab after '{{refChar}}' in comment."}},create(t){let e=t.sourceCode,r=t.options[0]!=="never",s=t.options[1]||{},n=s.block&&s.block.balanced,i=["block","line"].reduce((u,c)=>{let p=aX(s[c]&&s[c].markers||s.markers||[]),h=s[c]&&s[c].exceptions||s.exceptions||[],f="[ ]+$";return u[c]={beginRegex:r?oX(p,h):lX(p),endRegex:n&&r?new RegExp(`${jL(h)}$`,"u"):new RegExp(f,"u"),hasExceptions:h.length>0,captureMarker:new RegExp(`^(${p.map(Ba).join("|")})`,"u"),markers:new Set(p)},u},{});function o(u,c,p,h){let f=u.type.toLowerCase(),d=f==="block"?"/*":"//";t.report({node:u,fix(g){let y=u.range[0],v=y+2;return r?(p&&(v+=p[0].length),g.insertTextAfterRange([y,v]," ")):(v+=p[0].length,g.replaceTextRange([y,v],d+(p[1]?p[1]:"")))},messageId:c,data:{refChar:h}})}function a(u,c,p){t.report({node:u,fix(h){if(r)return h.insertTextAfterRange([u.range[0],u.range[1]-2]," ");let f=u.range[1]-2,d=f-p[0].length;return h.replaceTextRange([d,f],"")},messageId:c})}function l(u){let c=u.type.toLowerCase(),p=i[c],h=c==="block"?"/*":"//";if(u.value.length===0||p.markers.has(u.value))return;let f=p.beginRegex.exec(u.value),d=p.endRegex.exec(u.value);if(r){if(!f){let g=p.captureMarker.exec(u.value),y=g?h+g[0]:h;p.hasExceptions?o(u,"expectedExceptionAfter",g,y):o(u,"expectedSpaceAfter",g,y)}n&&c==="block"&&!d&&a(u,"expectedSpaceBefore")}else f&&(f[1]?o(u,"unexpectedSpaceAfterMarker",f,f[1]):o(u,"unexpectedSpaceAfter",f,h)),n&&c==="block"&&d&&a(u,"unexpectedSpaceBefore",d)}return{Program(){e.getAllComments().filter(c=>c.type!=="Shebang").forEach(l)}}}}});var VL=B((cae,$L)=>{"use strict";var uX=X();function UL(t){let e=[];for(let r=0;r<t.length;r++){let s=t[r];if(s.type==="ExpressionStatement"&&s.expression.type==="Literal"&&s.expression.value==="use strict")e[r]=s;else break}return e}function cX(t){return t.type==="Identifier"}function Fm(t){return t.every(cX)}$L.exports={meta:{type:"suggestion",defaultOptions:["safe"],docs:{description:"Require or disallow strict mode directives",recommended:!1,url:"https://eslint.org/docs/latest/rules/strict"},schema:[{enum:["never","global","function","safe"]}],fixable:"code",messages:{function:"Use the function form of 'use strict'.",global:"Use the global form of 'use strict'.",multiple:"Multiple 'use strict' directives.",never:"Strict mode is not permitted.",unnecessary:"Unnecessary 'use strict' directive.",module:"'use strict' is unnecessary inside of modules.",implied:"'use strict' is unnecessary when implied strict mode is enabled.",unnecessaryInClasses:"'use strict' is unnecessary inside of classes.",nonSimpleParameterList:"'use strict' directive inside a function with non-simple parameter list throws a syntax error since ES2016.",wrap:"Wrap {{name}} in a function with 'use strict' directive."}},create(t){let e=t.languageOptions.parserOptions.ecmaFeatures||{},r=[],s=[],[n]=t.options;e.impliedStrict?n="implied":n==="safe"&&(n=e.globalReturn||t.languageOptions.sourceType==="commonjs"?"global":"function");function i(d){return d==="multiple"||d==="unnecessary"||d==="module"||d==="implied"||d==="unnecessaryInClasses"}function o(d){return g=>g.remove(d)}function a(d,g,y,v,S){d.slice(g,y).forEach(A=>{t.report({node:A,messageId:v,fix:S?o(A):null})})}function l(d,g,y){a(d,0,d.length,g,y)}function u(d,g,y){a(d,1,d.length,g,y)}function c(d,g){let y=s.length>0,v=r.length===0&&s.length===0,S=r.length>0&&r.at(-1),A=g.length>0;A?(Fm(d.params)?S?t.report({node:g[0],messageId:"unnecessary",fix:o(g[0])}):y&&t.report({node:g[0],messageId:"unnecessaryInClasses",fix:o(g[0])}):t.report({node:g[0],messageId:"nonSimpleParameterList"}),u(g,"multiple",!0)):v&&(Fm(d.params)?t.report({node:d,messageId:"function"}):t.report({node:d,messageId:"wrap",data:{name:uX.getFunctionNameWithKind(d)}})),r.push(S||A)}function p(){r.pop()}function h(d){let g=d.body.type==="BlockStatement",y=g?UL(d.body.body):[];n==="function"?c(d,y):y.length>0&&(Fm(d.params)?l(y,n,i(n)):(t.report({node:y[0],messageId:"nonSimpleParameterList"}),u(y,"multiple",!0)))}let f={Program(d){let g=UL(d.body);d.sourceType==="module"&&(n="module"),n==="global"?(d.body.length>0&&g.length===0&&t.report({loc:{start:d.body[0].loc.start,end:d.body.at(-1).loc.end},messageId:"global"}),u(g,"multiple",!0)):l(g,n,i(n))},FunctionDeclaration:h,FunctionExpression:h,ArrowFunctionExpression:h};return n==="function"&&Object.assign(f,{ClassBody(){s.push(!0)},"ClassBody:exit"(){s.pop()},"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p}),f}}});var zL=B((pae,WL)=>{"use strict";var nu=X();WL.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"switch-colon-spacing",url:"https://eslint.style/rules/switch-colon-spacing"}}]},type:"layout",docs:{description:"Enforce spacing around colons of switch statements",recommended:!1,url:"https://eslint.org/docs/latest/rules/switch-colon-spacing"},schema:[{type:"object",properties:{before:{type:"boolean",default:!1},after:{type:"boolean",default:!0}},additionalProperties:!1}],fixable:"whitespace",messages:{expectedBefore:"Expected space(s) before this colon.",expectedAfter:"Expected space(s) after this colon.",unexpectedBefore:"Unexpected space(s) before this colon.",unexpectedAfter:"Unexpected space(s) after this colon."}},create(t){let e=t.sourceCode,r=t.options[0]||{},s=r.before===!0,n=r.after!==!1;function i(l,u,c){return nu.isClosingBraceToken(u)||!nu.isTokenOnSameLine(l,u)||e.isSpaceBetween(l,u)===c}function o(l,u){return e.getFirstTokenBetween(l,u,{includeComments:!0,filter:nu.isCommentToken})!==null}function a(l,u,c,p){return o(u,c)?null:p?l.insertTextAfter(u," "):l.removeRange([u.range[1],c.range[0]])}return{SwitchCase(l){let u=nu.getSwitchCaseColonToken(l,e),c=e.getTokenBefore(u),p=e.getTokenAfter(u);i(c,u,s)||t.report({node:l,loc:u.loc,messageId:s?"expectedBefore":"unexpectedBefore",fix:h=>a(h,c,u,s)}),i(u,p,n)||t.report({node:l,loc:u.loc,messageId:n?"expectedAfter":"unexpectedAfter",fix:h=>a(h,u,p,n)})}}}}});var HL=B((fae,KL)=>{"use strict";var GL=X();KL.exports={meta:{type:"suggestion",docs:{description:"Require symbol descriptions",recommended:!1,url:"https://eslint.org/docs/latest/rules/symbol-description"},fixable:null,schema:[],messages:{expected:"Expected Symbol to have a description."}},create(t){let e=t.sourceCode;function r(s){s.arguments.length===0&&t.report({node:s,messageId:"expected"})}return{"Program:exit"(s){let n=e.getScope(s),i=GL.getVariableByName(n,"Symbol");i&&i.defs.length===0&&i.references.forEach(o=>{let a=o.identifier;GL.isCallee(a)&&r(a.parent)})}}}}});var QL=B((hae,XL)=>{"use strict";var JL=X();XL.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"template-curly-spacing",url:"https://eslint.style/rules/template-curly-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing around embedded expressions of template strings",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-curly-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expectedBefore:"Expected space(s) before '}'.",expectedAfter:"Expected space(s) after '${'.",unexpectedBefore:"Unexpected space(s) before '}'.",unexpectedAfter:"Unexpected space(s) after '${'."}},create(t){let e=t.sourceCode,r=t.options[0]==="always";function s(i){if(!i.value.startsWith("}"))return;let o=e.getTokenBefore(i,{includeComments:!0}),a=e.isSpaceBetween(o,i);JL.isTokenOnSameLine(o,i)&&(r&&!a&&t.report({loc:{start:i.loc.start,end:{line:i.loc.start.line,column:i.loc.start.column+1}},messageId:"expectedBefore",fix:l=>l.insertTextBefore(i," ")}),!r&&a&&t.report({loc:{start:o.loc.end,end:i.loc.start},messageId:"unexpectedBefore",fix:l=>l.removeRange([o.range[1],i.range[0]])}))}function n(i){if(!i.value.endsWith("${"))return;let o=e.getTokenAfter(i,{includeComments:!0}),a=e.isSpaceBetween(i,o);JL.isTokenOnSameLine(i,o)&&(r&&!a&&t.report({loc:{start:{line:i.loc.end.line,column:i.loc.end.column-2},end:i.loc.end},messageId:"expectedAfter",fix:l=>l.insertTextAfter(i," ")}),!r&&a&&t.report({loc:{start:i.loc.end,end:o.loc.start},messageId:"unexpectedAfter",fix:l=>l.removeRange([i.range[1],o.range[0]])}))}return{TemplateElement(i){let o=e.getFirstToken(i);s(o),n(o)}}}}});var ZL=B((mae,YL)=>{"use strict";YL.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"template-tag-spacing",url:"https://eslint.style/rules/template-tag-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing between template tags and their literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/template-tag-spacing"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{unexpected:"Unexpected space between template tag and template literal.",missing:"Missing space between template tag and template literal."}},create(t){let e=t.options[0]!=="always",r=t.sourceCode;function s(n){let i=r.getTokenBefore(n.quasi),o=r.getFirstToken(n.quasi),a=r.isSpaceBetween(i,o);e&&a?t.report({node:n,loc:{start:i.loc.end,end:o.loc.start},messageId:"unexpected",fix(l){let u=r.getCommentsBefore(n.quasi);return u.some(c=>c.type==="Line")?null:l.replaceTextRange([i.range[1],o.range[0]],u.reduce((c,p)=>c+r.getText(p),""))}}):!e&&!a&&t.report({node:n,loc:{start:n.loc.start,end:o.loc.start},messageId:"missing",fix(l){return l.insertTextAfter(i," ")}})}return{TaggedTemplateExpression:s}}}});var tN=B((dae,eN)=>{"use strict";eN.exports={meta:{type:"layout",defaultOptions:["never"],docs:{description:"Require or disallow Unicode byte order mark (BOM)",recommended:!1,url:"https://eslint.org/docs/latest/rules/unicode-bom"},fixable:"whitespace",schema:[{enum:["always","never"]}],messages:{expected:"Expected Unicode BOM (Byte Order Mark).",unexpected:"Unexpected Unicode BOM (Byte Order Mark)."}},create(t){return{Program:function(r){let s=t.sourceCode,n={column:0,line:1},[i]=t.options;!s.hasBOM&&i==="always"?t.report({node:r,loc:n,messageId:"expected",fix(o){return o.insertTextBeforeRange([0,1],"\uFEFF")}}):s.hasBOM&&i==="never"&&t.report({node:r,loc:n,messageId:"unexpected",fix(o){return o.removeRange([-1,0])}})}}}}});var nN=B((gae,rN)=>{"use strict";var Oa=X();function Ss(t,e){if(!t)return!1;let r=t.type==="SequenceExpression"?t.expressions.at(-1):t;if(Oa.isSpecificId(r,"NaN"))return e.isGlobalReference(r);if(Oa.isSpecificMemberAccess(r,"Number","NaN")){let s=Oa.skipChainExpression(r).object;return e.isGlobalReference(s)}return!1}rN.exports={meta:{hasSuggestions:!0,type:"problem",docs:{description:"Require calls to `isNaN()` when checking for `NaN`",recommended:!0,url:"https://eslint.org/docs/latest/rules/use-isnan"},schema:[{type:"object",properties:{enforceForSwitchCase:{type:"boolean"},enforceForIndexOf:{type:"boolean"}},additionalProperties:!1}],defaultOptions:[{enforceForIndexOf:!1,enforceForSwitchCase:!0}],messages:{comparisonWithNaN:"Use the isNaN function to compare with NaN.",switchNaN:"'switch(NaN)' can never match a case clause. Use Number.isNaN instead of the switch.",caseNaN:"'case NaN' can never match. Use Number.isNaN before the switch.",indexOfNaN:"Array prototype method '{{ methodName }}' cannot find NaN.",replaceWithIsNaN:"Replace with Number.isNaN.",replaceWithCastingAndIsNaN:"Replace with Number.isNaN and cast to a Number.",replaceWithFindIndex:"Replace with Array.prototype.{{ methodName }}."}},create(t){let[{enforceForIndexOf:e,enforceForSwitchCase:r}]=t.options,s=t.sourceCode,n=new Set(["==","===","!=","!=="]),i=new Set(["==","!="]);function o(p,h){return f=>{let d=Ss(p.left,s)?p.right:p.left,g=d.type==="SequenceExpression",v=p.operator[0]==="!"?"!":"",S=s.getText(d);g&&(S=`(${S})`);let A=h(S);return f.replaceText(p,`${v}${A}`)}}function a(p){if(/^(?:[<>]|[!=]=)=?$/u.test(p.operator)&&(Ss(p.left,s)||Ss(p.right,s))){let h=[],d=(Ss(p.left,s)?p.left:p.right).type==="SequenceExpression",g=n.has(p.operator)&&!d,y=i.has(p.operator);g&&(h.push({messageId:"replaceWithIsNaN",fix:o(p,v=>`Number.isNaN(${v})`)}),y&&h.push({messageId:"replaceWithCastingAndIsNaN",fix:o(p,v=>`Number.isNaN(Number(${v}))`)})),t.report({node:p,messageId:"comparisonWithNaN",suggest:h})}}function l(p){Ss(p.discriminant,s)&&t.report({node:p,messageId:"switchNaN"});for(let h of p.cases)Ss(h.test,s)&&t.report({node:h,messageId:"caseNaN"})}function u(p){let h=Oa.skipChainExpression(p.callee);if(h.type==="MemberExpression"){let f=Oa.getStaticPropertyName(h);if((f==="indexOf"||f==="lastIndexOf")&&p.arguments.length<=2&&Ss(p.arguments[0],s)){let d=p.arguments[0].type!=="SequenceExpression"&&!p.arguments[1],g=[];if(d){let y=h.computed,v=f==="indexOf"?"findIndex":"findLastIndex",S=y?`"${v}"`:v;g.push({messageId:"replaceWithFindIndex",data:{methodName:v},fix:A=>[A.replaceText(h.property,S),A.replaceText(p.arguments[0],"Number.isNaN")]})}t.report({node:p,messageId:"indexOfNaN",data:{methodName:f},suggest:g})}}}let c={BinaryExpression:a};return r&&(c.SwitchStatement=l),e&&(c.CallExpression=u),c}}});var iN=B((yae,sN)=>{"use strict";var pX=X();sN.exports={meta:{type:"problem",defaultOptions:[{requireStringLiterals:!1}],docs:{description:"Enforce comparing `typeof` expressions against valid strings",recommended:!0,url:"https://eslint.org/docs/latest/rules/valid-typeof"},hasSuggestions:!0,schema:[{type:"object",properties:{requireStringLiterals:{type:"boolean"}},additionalProperties:!1}],messages:{invalidValue:"Invalid typeof comparison value.",notString:"Typeof comparisons should be to string literals.",suggestString:'Use `"{{type}}"` instead of `{{type}}`.'}},create(t){let e=new Set(["symbol","undefined","object","boolean","number","string","function","bigint"]),r=new Set(["==","===","!=","!=="]),s=t.sourceCode,[{requireStringLiterals:n}]=t.options,i;function o(l){let u=i.set.get(l.name);return u&&u.defs.length===0&&u.references.some(c=>c.identifier===l)}function a(l){return l.type==="UnaryExpression"&&l.operator==="typeof"}return{Program(l){i=s.getScope(l)},UnaryExpression(l){if(a(l)){let{parent:u}=l;if(u.type==="BinaryExpression"&&r.has(u.operator)){let c=u.left===l?u.right:u.left;if(c.type==="Literal"||pX.isStaticTemplateLiteral(c)){let p=c.type==="Literal"?c.value:c.quasis[0].value.cooked;e.has(p)||t.report({node:c,messageId:"invalidValue"})}else c.type==="Identifier"&&c.name==="undefined"&&o(c)?t.report({node:c,messageId:n?"notString":"invalidValue",suggest:[{messageId:"suggestString",data:{type:"undefined"},fix(p){return p.replaceText(c,'"undefined"')}}]}):n&&!a(c)&&t.report({node:c,messageId:"notString"})}}}}}}});var oN=B((xae,aN)=>{"use strict";aN.exports={meta:{type:"suggestion",docs:{description:"Require `var` declarations be placed at the top of their containing scope",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/vars-on-top"},schema:[],messages:{top:"All 'var' declarations must be at the top of the function scope."}},create(t){function e(a){return a.type==="ExpressionStatement"&&a.expression.type==="Literal"&&typeof a.expression.value=="string"}function r(a){return a.type==="ImportDeclaration"||a.type==="ImportSpecifier"||a.type==="ImportDefaultSpecifier"||a.type==="ImportNamespaceSpecifier"}function s(a){return a.type==="VariableDeclaration"||a.type==="ExportNamedDeclaration"&&a.declaration&&a.declaration.type==="VariableDeclaration"}function n(a,l){let u=l.length,c=0;if(a.parent.type!=="StaticBlock")for(;c<u&&!(!e(l[c])&&!r(l[c]));++c);for(;c<u;++c){if(!s(l[c]))return!1;if(l[c]===a)return!0}return!1}function i(a,l){n(a,l.body)||t.report({node:a,messageId:"top"})}function o(a){let{parent:l}=a;l.type==="BlockStatement"&&/Function/u.test(l.parent.type)&&n(a,l.body)||l.type==="StaticBlock"&&n(a,l.body)||t.report({node:a,messageId:"top"})}return{"VariableDeclaration[kind='var']"(a){a.parent.type==="ExportNamedDeclaration"?i(a.parent,a.parent.parent):a.parent.type==="Program"?i(a,a.parent):o(a)}}}}});var uN=B((Eae,lN)=>{"use strict";var su=X(),fX=Ht();function hX(t){let e=t.parent.type==="ChainExpression"?t.parent:t;return e.parent.type==="NewExpression"&&e.parent.callee===e}lN.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"wrap-iife",url:"https://eslint.style/rules/wrap-iife"}}]},type:"layout",docs:{description:"Require parentheses around immediate `function` invocations",recommended:!1,url:"https://eslint.org/docs/latest/rules/wrap-iife"},schema:[{enum:["outside","inside","any"]},{type:"object",properties:{functionPrototypeMethods:{type:"boolean",default:!1}},additionalProperties:!1}],fixable:"code",messages:{wrapInvocation:"Wrap an immediate function invocation in parentheses.",wrapExpression:"Wrap only the function expression in parens.",moveInvocation:"Move the invocation into the parens that contain the function."}},create(t){let e=t.options[0]||"outside",r=t.options[1]&&t.options[1].functionPrototypeMethods,s=t.sourceCode;function n(a){return su.isParenthesised(s,a)}function i(a){return fX.isParenthesized(1,a,s)}function o(a){let l=su.skipChainExpression(a.callee);return l.type==="FunctionExpression"?l:r&&l.type==="MemberExpression"&&l.object.type==="FunctionExpression"&&(su.getStaticPropertyName(l)==="call"||su.getStaticPropertyName(l)==="apply")?l.object:null}return{CallExpression(a){let l=o(a);if(!l)return;let u=n(a),c=n(l);!u&&!c?t.report({node:a,messageId:"wrapInvocation",fix(p){let h=e==="inside"?l:a;return p.replaceText(h,`(${s.getText(h)})`)}}):e==="inside"&&!c?t.report({node:a,messageId:"wrapExpression",fix(p){if(i(a)&&!hX(a)){let h=s.getTokenAfter(a);return p.replaceTextRange([l.range[1],h.range[1]],`)${s.getText().slice(l.range[1],h.range[0])}`)}return p.replaceText(l,`(${s.getText(l)})`)}}):e==="outside"&&!u&&t.report({node:a,messageId:"moveInvocation",fix(p){let h=s.getTokenAfter(l);return p.replaceTextRange([h.range[0],a.range[1]],`${s.getText().slice(h.range[1],a.range[1])})`)}})}}}}});var pN=B((bae,cN)=>{"use strict";cN.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"wrap-regex",url:"https://eslint.style/rules/wrap-regex"}}]},type:"layout",docs:{description:"Require parenthesis around regex literals",recommended:!1,url:"https://eslint.org/docs/latest/rules/wrap-regex"},schema:[],fixable:"code",messages:{requireParens:"Wrap the regexp literal in parens to disambiguate the slash."}},create(t){let e=t.sourceCode;return{Literal(r){if(e.getFirstToken(r).type==="RegularExpression"){let i=e.getTokenBefore(r),o=e.getTokenAfter(r),{parent:a}=r;a.type==="MemberExpression"&&a.object===r&&!(i&&i.value==="("&&o&&o.value===")")&&t.report({node:r,messageId:"requireParens",fix:l=>l.replaceText(r,`(${e.getText(r)})`)})}}}}}});var hN=B((vae,fN)=>{"use strict";fN.exports={meta:{deprecated:{message:"Formatting rules are being moved out of ESLint core.",url:"https://eslint.org/blog/2023/10/deprecating-formatting-rules/",deprecatedSince:"8.53.0",availableUntil:"11.0.0",replacedBy:[{message:"ESLint Stylistic now maintains deprecated stylistic core rules.",url:"https://eslint.style/guide/migration",plugin:{name:"@stylistic/eslint-plugin",url:"https://eslint.style"},rule:{name:"yield-star-spacing",url:"https://eslint.style/rules/yield-star-spacing"}}]},type:"layout",docs:{description:"Require or disallow spacing around the `*` in `yield*` expressions",recommended:!1,url:"https://eslint.org/docs/latest/rules/yield-star-spacing"},fixable:"whitespace",schema:[{oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(t){let e=t.sourceCode,r=(function(i){return!i||typeof i=="string"?{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[i||"after"]:i})(t.options[0]);function s(i,o,a){if(e.isSpaceBetween(o,a)!==r[i]){let l=o.value==="*",u=r[i],c=l?o:a,p;u?p=i==="before"?"missingBefore":"missingAfter":p=i==="before"?"unexpectedBefore":"unexpectedAfter",t.report({node:c,messageId:p,fix(h){return u?l?h.insertTextAfter(c," "):h.insertTextBefore(c," "):h.removeRange([o.range[1],a.range[0]])}})}}function n(i){if(!i.delegate)return;let o=e.getFirstTokens(i,3),a=o[0],l=o[1],u=o[2];s("before",a,l),s("after",l,u)}return{YieldExpression:n}}}});var xN=B((Sae,yN)=>{"use strict";var yr=X();function mX(t){return/^(?:==|===|!=|!==|<|>|<=|>=)$/u.test(t)}function dX(t){return/^(?:==|===)$/u.test(t)}function mN(t){return["<","<="].includes(t)}function gN(t){return t.type==="UnaryExpression"&&t.operator==="-"&&t.prefix&&yr.isNumericLiteral(t.argument)}function dN(t){return gN(t)||yr.isStaticTemplateLiteral(t)}function iu(t){return t.type==="Literal"?t:gN(t)?{type:"Literal",value:-t.argument.value,raw:`-${t.argument.value}`}:yr.isStaticTemplateLiteral(t)?{type:"Literal",value:t.quasis[0].value.cooked,raw:t.quasis[0].value.raw}:null}function gX(t,e,r){if(e.type==="Keyword"&&(e.value==="function"||e.value==="class"))return!0;let s=t.getTokenAfter(e);return(e.type==="Identifier"||e.type==="Keyword")&&e.value==="async"&&!!s&&s.range[1]<=r.range[1]&&s.type==="Keyword"&&s.value==="function"}function yX(t){return t.type==="Template"||t.type==="RegularExpression"||t.type==="Punctuator"&&["(","[","+","-"].includes(t.value)}function xX(t,e){return!!e&&e.type==="Punctuator"&&(e.value==="++"||e.value==="--")&&(t.type==="RegularExpression"||t.type==="Punctuator"&&(t.value==="+"||t.value==="-"))}yN.exports={meta:{type:"suggestion",defaultOptions:["never",{exceptRange:!1,onlyEquality:!1}],docs:{description:'Require or disallow "Yoda" conditions',recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/yoda"},schema:[{enum:["always","never"]},{type:"object",properties:{exceptRange:{type:"boolean"},onlyEquality:{type:"boolean"}},additionalProperties:!1}],fixable:"code",messages:{expected:"Expected literal to be on the {{expectedSide}} side of {{operator}}."}},create(t){let[e,{exceptRange:r,onlyEquality:s}]=t.options,n=e==="always",i=t.sourceCode;function o(u){let c=u.left,p=u.right;function h(){if(u.operator==="&&"&&yr.isSameReference(c.right,p.left)){let g=iu(c.left),y=iu(p.right);if(g===null&&y===null)return!1;if(y===null||g===null||g.value<=y.value)return!0}return!1}function f(){if(u.operator==="||"&&yr.isSameReference(c.left,p.right)){let g=iu(c.right),y=iu(p.left);if(g===null&&y===null)return!1;if(y===null||g===null||g.value<=y.value)return!0}return!1}function d(){return yr.isParenthesised(i,u)}return u.type==="LogicalExpression"&&c.type==="BinaryExpression"&&p.type==="BinaryExpression"&&mN(c.operator)&&mN(p.operator)&&(h()||f())&&d()}let a={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function l(u){let c=i.getFirstTokenBetween(u.left,u.right,j=>j.value===u.operator),p=i.getTokenBefore(c),h=i.getTokenAfter(c),f=i.getText(),d=f.slice(u.range[0],p.range[1]),g=f.slice(p.range[1],c.range[0]),y=f.slice(c.range[1],h.range[0]),v=f.slice(h.range[0],u.range[1]),S=i.getTokenBefore(u),A=i.getTokenAfter(u),E="",k="";S&&S.range[1]===u.range[0]&&!yr.canTokensBeAdjacent(S,h)&&(E=" "),A&&u.range[1]===A.range[0]&&!yr.canTokensBeAdjacent(p,A)&&(k=" ");let T=v+g+a[c.value]+y+d,w=yr.isStartOfExpressionStatement(u),R=(w||S&&yr.isKeywordToken(S)&&S.value==="default")&&gX(i,h,u)||(w||S&&yr.isArrowToken(S))&&yr.isOpeningBraceToken(h);return R&&(T=`(${T})`),!E&&w&&(R||yX(h))&&(yr.needsPrecedingSemicolon(i,u)||xX(h,S))&&(E=";"),E+T+k}return{BinaryExpression(u){let c=n?u.left:u.right,p=n?u.right:u.left;(p.type==="Literal"||dN(p))&&!(c.type==="Literal"||dN(c))&&!(!dX(u.operator)&&s)&&mX(u.operator)&&!(r&&o(u.parent))&&t.report({node:u,messageId:"expected",data:{operator:u.operator,expectedSide:n?"left":"right"},fix:h=>h.replaceText(u,l(u))})}}}}});var bN=B((Cae,EN)=>{"use strict";var{LazyLoadingRuleMap:EX}=HS();EN.exports=new EX(Object.entries({"accessor-pairs":()=>OC(),"array-bracket-newline":()=>NC(),"array-bracket-spacing":()=>MC(),"array-callback-return":()=>GC(),"array-element-newline":()=>HC(),"arrow-body-style":()=>XC(),"arrow-parens":()=>YC(),"arrow-spacing":()=>e1(),"block-scoped-var":()=>r1(),"block-spacing":()=>s1(),"brace-style":()=>a1(),"callback-return":()=>l1(),camelcase:()=>c1(),"capitalized-comments":()=>d1(),"class-methods-use-this":()=>y1(),"comma-dangle":()=>E1(),"comma-spacing":()=>v1(),"comma-style":()=>C1(),complexity:()=>D1(),"computed-property-spacing":()=>P1(),"consistent-return":()=>_1(),"consistent-this":()=>O1(),"constructor-super":()=>N1(),curly:()=>j1(),"default-case":()=>q1(),"default-case-last":()=>$1(),"default-param-last":()=>W1(),"dot-location":()=>G1(),"dot-notation":()=>X1(),"eol-last":()=>Y1(),eqeqeq:()=>ew(),"for-direction":()=>rw(),"func-call-spacing":()=>sw(),"func-name-matching":()=>pw(),"func-names":()=>hw(),"func-style":()=>dw(),"function-call-argument-newline":()=>yw(),"function-paren-newline":()=>Ew(),"generator-star-spacing":()=>vw(),"getter-return":()=>Cw(),"global-require":()=>Aw(),"grouped-accessor-pairs":()=>Tw(),"guard-for-in":()=>Iw(),"handle-callback-err":()=>Fw(),"id-blacklist":()=>Bw(),"id-denylist":()=>Lw(),"id-length":()=>jw(),"id-match":()=>qw(),"implicit-arrow-linebreak":()=>$w(),indent:()=>Ww(),"indent-legacy":()=>Gw(),"init-declarations":()=>Jw(),"jsx-quotes":()=>Yw(),"key-spacing":()=>tA(),"keyword-spacing":()=>iA(),"line-comment-position":()=>oA(),"linebreak-style":()=>uA(),"lines-around-comment":()=>pA(),"lines-around-directive":()=>mA(),"lines-between-class-members":()=>gA(),"logical-assignment-operators":()=>xA(),"max-classes-per-file":()=>bA(),"max-depth":()=>SA(),"max-len":()=>kA(),"max-lines":()=>IA(),"max-lines-per-function":()=>FA(),"max-nested-callbacks":()=>BA(),"max-params":()=>NA(),"max-statements":()=>MA(),"max-statements-per-line":()=>UA(),"multiline-comment-style":()=>VA(),"multiline-ternary":()=>zA(),"new-cap":()=>KA(),"new-parens":()=>XA(),"newline-after-var":()=>YA(),"newline-before-return":()=>ek(),"newline-per-chained-call":()=>rk(),"no-alert":()=>ak(),"no-array-constructor":()=>uk(),"no-async-promise-executor":()=>pk(),"no-await-in-loop":()=>hk(),"no-bitwise":()=>gk(),"no-buffer-constructor":()=>xk(),"no-caller":()=>bk(),"no-case-declarations":()=>Sk(),"no-catch-shadow":()=>wk(),"no-class-assign":()=>kk(),"no-compare-neg-zero":()=>Dk(),"no-cond-assign":()=>Pk(),"no-confusing-arrow":()=>_k(),"no-console":()=>Ok(),"no-const-assign":()=>Nk(),"no-constant-binary-expression":()=>$k(),"no-constant-condition":()=>zk(),"no-constructor-return":()=>Kk(),"no-continue":()=>Jk(),"no-control-regex":()=>CT(),"no-debugger":()=>AT(),"no-delete-var":()=>TT(),"no-div-regex":()=>IT(),"no-dupe-args":()=>FT(),"no-dupe-class-members":()=>BT(),"no-dupe-else-if":()=>NT(),"no-dupe-keys":()=>UT(),"no-duplicate-case":()=>VT(),"no-duplicate-imports":()=>HT(),"no-else-return":()=>YT(),"no-empty":()=>tD(),"no-empty-character-class":()=>nD(),"no-empty-function":()=>aD(),"no-empty-pattern":()=>uD(),"no-empty-static-block":()=>pD(),"no-eq-null":()=>hD(),"no-eval":()=>gD(),"no-ex-assign":()=>xD(),"no-extend-native":()=>bD(),"no-extra-bind":()=>SD(),"no-extra-boolean-cast":()=>wD(),"no-extra-label":()=>TD(),"no-extra-parens":()=>PD(),"no-extra-semi":()=>_D(),"no-fallthrough":()=>LD(),"no-floating-decimal":()=>RD(),"no-func-assign":()=>MD(),"no-global-assign":()=>UD(),"no-implicit-coercion":()=>WD(),"no-implicit-globals":()=>GD(),"no-implied-eval":()=>HD(),"no-import-assign":()=>YD(),"no-inline-comments":()=>eI(),"no-inner-declarations":()=>rI(),"no-invalid-regexp":()=>iI(),"no-invalid-this":()=>lI(),"no-irregular-whitespace":()=>cI(),"no-iterator":()=>fI(),"no-label-var":()=>mI(),"no-labels":()=>gI(),"no-lone-blocks":()=>xI(),"no-lonely-if":()=>bI(),"no-loop-func":()=>SI(),"no-loss-of-precision":()=>kI(),"no-magic-numbers":()=>DI(),"no-misleading-character-class":()=>nP(),"no-mixed-operators":()=>cP(),"no-mixed-requires":()=>fP(),"no-mixed-spaces-and-tabs":()=>mP(),"no-multi-assign":()=>gP(),"no-multi-spaces":()=>xP(),"no-multi-str":()=>bP(),"no-multiple-empty-lines":()=>SP(),"no-native-reassign":()=>wP(),"no-negated-condition":()=>kP(),"no-negated-in-lhs":()=>DP(),"no-nested-ternary":()=>PP(),"no-new":()=>_P(),"no-new-func":()=>OP(),"no-new-native-nonconstructor":()=>NP(),"no-new-object":()=>jP(),"no-new-require":()=>qP(),"no-new-symbol":()=>$P(),"no-new-wrappers":()=>WP(),"no-nonoctal-decimal-escape":()=>KP(),"no-obj-calls":()=>XP(),"no-object-constructor":()=>YP(),"no-octal":()=>eF(),"no-octal-escape":()=>rF(),"no-param-reassign":()=>sF(),"no-path-concat":()=>aF(),"no-plusplus":()=>uF(),"no-process-env":()=>pF(),"no-process-exit":()=>hF(),"no-promise-executor-return":()=>yF(),"no-proto":()=>EF(),"no-prototype-builtins":()=>SF(),"no-redeclare":()=>wF(),"no-regex-spaces":()=>DF(),"no-restricted-exports":()=>FF(),"no-restricted-globals":()=>OF(),"no-restricted-imports":()=>GF(),"no-restricted-modules":()=>JF(),"no-restricted-properties":()=>YF(),"no-restricted-syntax":()=>e_(),"no-return-assign":()=>r_(),"no-return-await":()=>s_(),"no-script-url":()=>a_(),"no-self-assign":()=>l_(),"no-self-compare":()=>c_(),"no-sequences":()=>f_(),"no-setter-return":()=>d_(),"no-shadow":()=>x_(),"no-shadow-restricted-names":()=>b_(),"no-spaced-func":()=>S_(),"no-sparse-arrays":()=>w_(),"no-sync":()=>k_(),"no-tabs":()=>D_(),"no-template-curly-in-string":()=>P_(),"no-ternary":()=>__(),"no-this-before-super":()=>L_(),"no-throw-literal":()=>R_(),"no-trailing-spaces":()=>M_(),"no-unassigned-vars":()=>U_(),"no-undef":()=>V_(),"no-undef-init":()=>z_(),"no-undefined":()=>K_(),"no-underscore-dangle":()=>J_(),"no-unexpected-multiline":()=>Q_(),"no-unmodified-loop-condition":()=>Z_(),"no-unneeded-ternary":()=>r2(),"no-unreachable":()=>s2(),"no-unreachable-loop":()=>o2(),"no-unsafe-finally":()=>u2(),"no-unsafe-negation":()=>p2(),"no-unsafe-optional-chaining":()=>d2(),"no-unused-expressions":()=>x2(),"no-unused-labels":()=>v2(),"no-unused-private-class-members":()=>w2(),"no-unused-vars":()=>T2(),"no-use-before-define":()=>F2(),"no-useless-assignment":()=>O2(),"no-useless-backreference":()=>M2(),"no-useless-call":()=>U2(),"no-useless-catch":()=>V2(),"no-useless-computed-key":()=>z2(),"no-useless-concat":()=>H2(),"no-useless-constructor":()=>Q2(),"no-useless-escape":()=>eB(),"no-useless-rename":()=>rB(),"no-useless-return":()=>sB(),"no-var":()=>lB(),"no-void":()=>cB(),"no-warning-comments":()=>hB(),"no-whitespace-before-property":()=>dB(),"no-with":()=>yB(),"nonblock-statement-body-position":()=>EB(),"object-curly-newline":()=>SB(),"object-curly-spacing":()=>wB(),"object-property-newline":()=>kB(),"object-shorthand":()=>PB(),"one-var":()=>_B(),"one-var-declaration-per-line":()=>OB(),"operator-assignment":()=>RB(),"operator-linebreak":()=>MB(),"padded-blocks":()=>UB(),"padding-line-between-statements":()=>KB(),"prefer-arrow-callback":()=>JB(),"prefer-const":()=>tO(),"prefer-destructuring":()=>sO(),"prefer-exponentiation-operator":()=>aO(),"prefer-named-capture-group":()=>cO(),"prefer-numeric-literals":()=>hO(),"prefer-object-has-own":()=>dO(),"prefer-object-spread":()=>bO(),"prefer-promise-reject-errors":()=>SO(),"prefer-reflect":()=>wO(),"prefer-regex-literals":()=>IO(),"prefer-rest-params":()=>FO(),"prefer-spread":()=>BO(),"prefer-template":()=>NO(),"preserve-caught-error":()=>jO(),"quote-props":()=>UO(),quotes:()=>VO(),radix:()=>KO(),"require-atomic-updates":()=>XO(),"require-await":()=>YO(),"require-unicode-regexp":()=>nL(),"require-yield":()=>iL(),"rest-spread-spacing":()=>oL(),semi:()=>uL(),"semi-spacing":()=>pL(),"semi-style":()=>hL(),"sort-imports":()=>dL(),"sort-keys":()=>vL(),"sort-vars":()=>CL(),"space-before-blocks":()=>kL(),"space-before-function-paren":()=>IL(),"space-in-parens":()=>FL(),"space-infix-ops":()=>BL(),"space-unary-ops":()=>NL(),"spaced-comment":()=>qL(),strict:()=>VL(),"switch-colon-spacing":()=>zL(),"symbol-description":()=>HL(),"template-curly-spacing":()=>QL(),"template-tag-spacing":()=>ZL(),"unicode-bom":()=>tN(),"use-isnan":()=>nN(),"valid-typeof":()=>iN(),"vars-on-top":()=>oN(),"wrap-iife":()=>uN(),"wrap-regex":()=>pN(),"yield-star-spacing":()=>hN(),yoda:()=>xN()}))});var SN=B((wae,vN)=>{"use strict";var bX=new Set([!0,"true","writable","writeable",!1,"false","readonly","readable",null,"off"]);function vX(t){return typeof t=="object"&&t!==null}function _m(t){return vX(t)&&!Array.isArray(t)}function SX(t){return typeof t>"u"}function CX(t){if(SX(t))throw new TypeError('Key "ecmaVersion": Expected an "ecmaVersion" property.');if(typeof t!="number"&&t!=="latest")throw new TypeError('Key "ecmaVersion": Expected a number or "latest".')}function wX(t){if(typeof t!="string"||!/^(?:script|module|commonjs)$/u.test(t))throw new TypeError('Key "sourceType": Expected "script", "module", or "commonjs".')}function AX(t){if(!_m(t))throw new TypeError('Key "globals": Expected an object.');for(let e of Object.keys(t))if(e!=="__proto__"){if(e!==e.trim())throw new TypeError(`Key "globals": Global "${e}" has leading or trailing whitespace.`);if(!bX.has(t[e]))throw new TypeError(`Key "globals": Key "${e}": Expected "readonly", "writable", or "off".`)}}function kX(t){if(!t||typeof t!="object"||typeof t.parse!="function"&&typeof t.parseForESLint!="function")throw new TypeError('Key "parser": Expected object with parse() or parseForESLint() method.')}function TX(t){if(!_m(t))throw new TypeError("Expected an object.");let{ecmaVersion:e,sourceType:r,globals:s,parser:n,parserOptions:i,...o}=t;if("ecmaVersion"in t&&CX(e),"sourceType"in t&&wX(r),"globals"in t&&AX(s),"parser"in t&&kX(n),"parserOptions"in t&&!_m(i))throw new TypeError('Key "parserOptions": Expected an object.');let a=Object.keys(o);if(a.length>0)throw new TypeError(`Unexpected key "${a[0]}" found.`)}vN.exports={validateLanguageOptions:TX}});var wN=B((Aae,CN)=>{"use strict";var{SourceCode:DX}=Gc(),IX=mn(),PX=Li(),Bm=pl(),FX=Lu(),au=Mn(),{validateLanguageOptions:_X}=SN(),{LATEST_ECMA_VERSION:BX}=Rf(),La=IX("eslint:languages:js"),OX=5,LX=Symbol.for("eslint.RuleTester.parser");function NX(t,e,r){let n=e.parserOptions.ecmaFeatures||{},i=e.ecmaVersion||OX;return FX.analyze(t,{ignoreEval:!0,nodejsScope:n.globalReturn,impliedStrict:n.impliedStrict,ecmaVersion:typeof i=="number"?i:6,sourceType:e.sourceType||"script",childVisitorKeys:r||au.KEYS,fallback:au.getKeys,jsx:n.jsx})}function RX(t){return t===Bm||t[LX]===Bm}function jX(t){switch(t){case 3:return 3;case 5:case void 0:return 5;default:if(typeof t=="number")return t>=2015?t:t+2009}return BX}CN.exports={fileType:"text",lineStart:1,columnStart:0,nodeTypeKey:"type",visitorKeys:au.KEYS,defaultLanguageOptions:{sourceType:"module",ecmaVersion:"latest",parser:Bm,parserOptions:{}},validateLanguageOptions:_X,normalizeLanguageOptions(t){if(t.ecmaVersion=jX(t.ecmaVersion),RX(t.parser)){let e=t.parserOptions;t.sourceType&&(e.sourceType=t.sourceType,e.sourceType==="module"&&e.ecmaFeatures&&e.ecmaFeatures.globalReturn&&(e.ecmaFeatures.globalReturn=!1))}return t},matchesSelectorClass(t,e,r){switch(t.toLowerCase()){case"statement":if(e.type.slice(-9)==="Statement")return!0;case"declaration":return e.type.slice(-11)==="Declaration";case"pattern":if(e.type.slice(-7)==="Pattern")return!0;case"expression":return e.type.slice(-10)==="Expression"||e.type.slice(-7)==="Literal"||e.type==="Identifier"&&(r.length===0||r[0].type!=="MetaProperty")||e.type==="MetaProperty";case"function":return e.type==="FunctionDeclaration"||e.type==="FunctionExpression"||e.type==="ArrowFunctionExpression";default:throw new Error(`Unknown class name: ${t}`)}},parse(t,{languageOptions:e}){let{body:r,path:s}=t,n=r.replace(PX.shebangPattern,(u,c)=>`//${c}`),{ecmaVersion:i,sourceType:o,parser:a}=e,l=Object.assign({ecmaVersion:i,sourceType:o},e.parserOptions,{loc:!0,range:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:s});try{La("Parsing:",s);let u=typeof a.parseForESLint=="function"?a.parseForESLint(n,l):{ast:a.parse(n,l)};La("Parsing successful:",s);let{ast:c,services:p={},visitorKeys:h=au.KEYS,scopeManager:f}=u;return{ok:!0,ast:c,parserServices:p,visitorKeys:h,scopeManager:f}}catch(u){let c=u.message.replace(/^line \d+:/iu,"").trim();return La(`%s
103
+ %s`,c,u.stack),{ok:!1,errors:[{message:c,line:u.lineNumber,column:u.column}]}}},createSourceCode(t,e,{languageOptions:r}){let{body:s,path:n,bom:i}=t,{ast:o,parserServices:a,visitorKeys:l}=e;La("Scope analysis:",n);let u=e.scopeManager||NX(o,r,l);return La("Scope analysis successful:",n),new DX({text:s,ast:o,hasBOM:i,parserServices:a,scopeManager:u,visitorKeys:l})}}});var TN=B(Om=>{"use strict";var AN=bN(),kN=[{files:["**/*.js","**/*.mjs"]},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs",ecmaVersion:"latest"}}];Om.defaultConfig=Object.freeze([{plugins:{"@":{languages:{js:wN()},rules:new Proxy({},{get(t,e){return AN.get(e)},has(t,e){return AN.has(e)}})}},language:"@/js",linterOptions:{reportUnusedDisableDirectives:1}},{ignores:["**/node_modules/",".git/"]},...kN]);Om.defaultRuleTesterConfig=Object.freeze([{files:["**"]},...kN])});var FN=B(PN=>{"use strict";var{ConfigArray:MX,ConfigArraySymbol:DN}=zp(),{flatConfigSchema:qX}=ho(),{defaultConfig:UX}=TN(),{Config:$X}=il(),VX=new Set(["name","basePath"]);function IN(t,e,r){let s="user-defined",n=t.index;return t.index<r?s="base":t.index<e+r?(s="original",n=t.index-r):n=t.index-e-r,new TypeError(`${t.message.slice(0,-1)} at ${s} index ${n}.`,{cause:t})}var Lm=Symbol("originalBaseConfig"),ou=Symbol("originalLength"),Nm=Symbol("baseLength"),Rm=class extends MX{constructor(e,{basePath:r,shouldIgnore:s=!0,baseConfig:n=UX}={}){super(e,{basePath:r,schema:qX}),this[ou]=this.length,n[Symbol.iterator]?this.unshift(...n):this.unshift(n),this[Nm]=this.length-this[ou],this[Lm]=n,Object.defineProperty(this,Lm,{writable:!1}),this.shouldIgnore=s,Object.defineProperty(this,"shouldIgnore",{writable:!1})}normalize(e){return super.normalize(e).catch(r=>{throw r.name==="ConfigError"?IN(r,this[ou],this[Nm]):r})}normalizeSync(e){try{return super.normalizeSync(e)}catch(r){throw r.name==="ConfigError"?IN(r,this[ou],this[Nm]):r}}[DN.preprocessConfig](e){if(!this.shouldIgnore&&!this[Lm].includes(e)&&e.ignores&&Object.keys(e).filter(r=>!VX.has(r)).length===1){let{ignores:r,...s}=e;return s}return e}[DN.finalizeConfig](e){return new $X(e)}};PN.FlatConfigArray=Rm});var BN=B((Dae,_N)=>{"use strict";var WX=new Map([["test_only","Used only for testing."],["test_only_2","Used only for testing."],["unstable_native_nodejs_ts_config","Use native Node.js to load TypeScript configuration."]]),zX=new Map([["test_only_replaced",{description:"Used only for testing flags that have been replaced by other flags.",replacedBy:"test_only"}],["test_only_enabled_by_default",{description:"Used only for testing flags whose features have been enabled by default.",replacedBy:null}],["test_only_abandoned",{description:"Used only for testing flags whose features have been abandoned."}]]);function GX({replacedBy:t}){return typeof t>"u"?"This feature has been abandoned.":typeof t=="string"?`This flag has been renamed '${t}' to reflect its stabilization. Please use '${t}' instead.`:"This feature is now enabled by default."}_N.exports={activeFlags:WX,inactiveFlags:zX,getInactivityReasonMessage:GX}});var Mm=B((Iae,LN)=>{"use strict";function ON(t){return typeof t=="string"?t.charCodeAt(0)===65279:t[0]===239&&t[1]===187&&t[2]===191}function KX(t){return ON(t)?typeof t=="string"?t.slice(1):t.slice(3):t}var jm=class{path;physicalPath;body;rawBody;bom;constructor(e,r,{physicalPath:s}={}){this.path=e,this.physicalPath=s??e,this.bom=ON(r),this.body=KX(r),this.rawBody=r}};LN.exports={VFile:jm}});var RN=B((Pae,NN)=>{"use strict";var qm=class{parseSync(e,r){let{language:s,languageOptions:n}=r,i=s.parse(e,{languageOptions:n});if(typeof i.then=="function")throw new Error("Unsupported: Language parser returned a promise.");return i.ok?{ok:!0,sourceCode:s.createSourceCode(e,i,{languageOptions:n})}:{ok:!1,errors:i.errors.map(o=>({ruleId:null,fatal:!0,severity:2,message:`Parsing error: ${o.message}`,line:o.line,column:o.column}))}}};NN.exports={ParserService:qm}});var MN=B(jN=>{"use strict";var Um=class{cwd;filename;physicalFilename;sourceCode;languageOptions;settings;constructor({cwd:e,filename:r,physicalFilename:s,sourceCode:n,languageOptions:i,settings:o}){this.cwd=e,this.filename=r,this.physicalFilename=s,this.sourceCode=n,this.languageOptions=i,this.settings=o,Object.freeze(this)}extend(e){return Object.freeze(Object.assign(Object.create(this),e))}};jN.FileContext=Um});var UN=B((_ae,qN)=>{"use strict";var HX=Ti("node:path"),{VFile:JX}=Mm(),$m=class{preprocessSync(e,r){let{processor:s}=r,n;try{n=s.preprocess(e.rawBody,e.path)}catch(i){return{ok:!1,errors:[{ruleId:null,fatal:!0,severity:2,message:`Preprocessing error: ${i.message.replace(/^line \d+:/iu,"").trim()}`,line:i.lineNumber,column:i.column}]}}if(typeof n.then=="function")throw new Error("Unsupported: Preprocessor returned a promise.");return{ok:!0,files:n.map((i,o)=>{if(typeof i=="string")return i;let a=HX.join(e.path,`${o}_${i.filename}`);return new JX(a,i.text,{physicalPath:e.physicalPath})})}}postprocessSync(e,r,s){let{processor:n}=s;return n.postprocess(r,e.path)}};qN.exports={ProcessorService:$m}});var VN=B((Bae,$N)=>{"use strict";function Vm(t,e){if(t===e)return!1;if(typeof t!=typeof e||Array.isArray(t)!==Array.isArray(e))return!0;if(Array.isArray(t))return t.length!==e.length||t.some((r,s)=>Vm(r,e[s]));if(typeof t=="object"){if(t===null||e===null)return!0;let r=Object.keys(t),s=Object.keys(e);return r.length!==s.length||r.some(n=>!Object.hasOwn(e,n)||Vm(t[n],e[n]))}return!0}$N.exports={containsDifferentProperty:Vm}});var zN=B((Oae,WN)=>{"use strict";var Wm=class{constructor({emitWarning:e=globalThis.process?.emitWarning??(()=>{})}={}){this.emitWarning=e}emitCircularFixesWarning(e){this.emitWarning(`Circular fixes detected while fixing ${e}. It is likely that you have conflicting rules in your configuration. For more information, visit https://eslint.org/docs/latest/use/troubleshooting/circular-fixes`,"ESLintCircularFixesWarning")}emitEmptyConfigWarning(e){this.emitWarning(`Running ESLint with an empty config (from ${e}). Please double-check that this is what you want. If you want to run ESLint with an empty config, export [{}] to remove this warning.`,"ESLintEmptyConfigWarning")}emitESLintIgnoreWarning(){this.emitWarning('The ".eslintignore" file is no longer supported. Switch to using the "ignores" property in "eslint.config.js": https://eslint.org/docs/latest/use/configure/migration-guide#ignore-files',"ESLintIgnoreWarning")}emitInactiveFlagWarning(e,r){this.emitWarning(r,`ESLintInactiveFlag_${e}`)}emitPoorConcurrencyWarning(e){this.emitWarning(`You may ${e} to improve performance.`,"ESLintPoorConcurrencyWarning")}};WN.exports={WarningService:Wm}});var GN=B((zm,Gm)=>{(function(t,e){typeof zm=="object"&&typeof Gm<"u"?Gm.exports=e():typeof define=="function"&&define.amd?define(e):(t=t||self).esquery=e()})(zm,(function(){"use strict";function t(k,T){(T==null||T>k.length)&&(T=k.length);for(var w=0,R=Array(T);w<T;w++)R[w]=k[w];return R}function e(k,T){return(function(w){if(Array.isArray(w))return w})(k)||(function(w,R){var j=w==null?null:typeof Symbol<"u"&&w[Symbol.iterator]||w["@@iterator"];if(j!=null){var $,M,N,b,C=[],P=!0,F=!1;try{if(N=(j=j.call(w)).next,R===0){if(Object(j)!==j)return;P=!1}else for(;!(P=($=N.call(j)).done)&&(C.push($.value),C.length!==R);P=!0);}catch(I){F=!0,M=I}finally{try{if(!P&&j.return!=null&&(b=j.return(),Object(b)!==b))return}finally{if(F)throw M}}return C}})(k,T)||n(k,T)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
104
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function r(k){return(function(T){if(Array.isArray(T))return t(T)})(k)||(function(T){if(typeof Symbol<"u"&&T[Symbol.iterator]!=null||T["@@iterator"]!=null)return Array.from(T)})(k)||n(k)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
105
+ In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function s(k){return(s=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(T){return typeof T}:function(T){return T&&typeof Symbol=="function"&&T.constructor===Symbol&&T!==Symbol.prototype?"symbol":typeof T})(k)}function n(k,T){if(k){if(typeof k=="string")return t(k,T);var w={}.toString.call(k).slice(8,-1);return w==="Object"&&k.constructor&&(w=k.constructor.name),w==="Map"||w==="Set"?Array.from(k):w==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(w)?t(k,T):void 0}}typeof globalThis<"u"||typeof window<"u"||(typeof global<"u"?global:typeof self<"u");function i(k,T){return k(T={exports:{}},T.exports),T.exports}var o=i((function(k,T){(function w(R){var j,$,M,N,b,C;function P(te){var pe,ve,Ae={};for(pe in te)te.hasOwnProperty(pe)&&(ve=te[pe],Ae[pe]=typeof ve=="object"&&ve!==null?P(ve):ve);return Ae}function F(te,pe){this.parent=te,this.key=pe}function I(te,pe,ve,Ae){this.node=te,this.path=pe,this.wrap=ve,this.ref=Ae}function U(){}function z(te){return te!=null&&typeof te=="object"&&typeof te.type=="string"}function W(te,pe){return(te===j.ObjectExpression||te===j.ObjectPattern)&&pe==="properties"}function re(te,pe){for(var ve=te.length-1;ve>=0;--ve)if(te[ve].node===pe)return!0;return!1}function ue(te,pe){return new U().traverse(te,pe)}function be(te,pe){var ve;return ve=(function(Ae,ie){var xe,ae,fe,Be;for(ae=Ae.length,fe=0;ae;)ie(Ae[Be=fe+(xe=ae>>>1)])?ae=xe:(fe=Be+1,ae-=xe+1);return fe})(pe,(function(Ae){return Ae.range[0]>te.range[0]})),te.extendedRange=[te.range[0],te.range[1]],ve!==pe.length&&(te.extendedRange[1]=pe[ve].range[0]),(ve-=1)>=0&&(te.extendedRange[0]=pe[ve].range[1]),te}return j={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"},M={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"]},$={Break:N={},Skip:b={},Remove:C={}},F.prototype.replace=function(te){this.parent[this.key]=te},F.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},U.prototype.path=function(){var te,pe,ve,Ae,ie;function xe(ae,fe){if(Array.isArray(fe))for(ve=0,Ae=fe.length;ve<Ae;++ve)ae.push(fe[ve]);else ae.push(fe)}if(!this.__current.path)return null;for(ie=[],te=2,pe=this.__leavelist.length;te<pe;++te)xe(ie,this.__leavelist[te].path);return xe(ie,this.__current.path),ie},U.prototype.type=function(){return this.current().type||this.__current.wrap},U.prototype.parents=function(){var te,pe,ve;for(ve=[],te=1,pe=this.__leavelist.length;te<pe;++te)ve.push(this.__leavelist[te].node);return ve},U.prototype.current=function(){return this.__current.node},U.prototype.__execute=function(te,pe){var ve,Ae;return Ae=void 0,ve=this.__current,this.__current=pe,this.__state=null,te&&(Ae=te.call(this,pe.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=ve,Ae},U.prototype.notify=function(te){this.__state=te},U.prototype.skip=function(){this.notify(b)},U.prototype.break=function(){this.notify(N)},U.prototype.remove=function(){this.notify(C)},U.prototype.__initialize=function(te,pe){this.visitor=pe,this.root=te,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,pe.fallback==="iteration"?this.__fallback=Object.keys:typeof pe.fallback=="function"&&(this.__fallback=pe.fallback),this.__keys=M,pe.keys&&(this.__keys=Object.assign(Object.create(this.__keys),pe.keys))},U.prototype.traverse=function(te,pe){var ve,Ae,ie,xe,ae,fe,Be,Re,Pe,je,ze,O;for(this.__initialize(te,pe),O={},ve=this.__worklist,Ae=this.__leavelist,ve.push(new I(te,null,null,null)),Ae.push(new I(null,null,null,null));ve.length;)if((ie=ve.pop())!==O){if(ie.node){if(fe=this.__execute(pe.enter,ie),this.__state===N||fe===N)return;if(ve.push(O),Ae.push(ie),this.__state===b||fe===b)continue;if(ae=(xe=ie.node).type||ie.wrap,!(je=this.__keys[ae])){if(!this.__fallback)throw new Error("Unknown node type "+ae+".");je=this.__fallback(xe)}for(Re=je.length;(Re-=1)>=0;)if(ze=xe[Be=je[Re]]){if(Array.isArray(ze)){for(Pe=ze.length;(Pe-=1)>=0;)if(ze[Pe]&&!re(Ae,ze[Pe])){if(W(ae,je[Re]))ie=new I(ze[Pe],[Be,Pe],"Property",null);else{if(!z(ze[Pe]))continue;ie=new I(ze[Pe],[Be,Pe],null,null)}ve.push(ie)}}else if(z(ze)){if(re(Ae,ze))continue;ve.push(new I(ze,Be,null,null))}}}}else if(ie=Ae.pop(),fe=this.__execute(pe.leave,ie),this.__state===N||fe===N)return},U.prototype.replace=function(te,pe){var ve,Ae,ie,xe,ae,fe,Be,Re,Pe,je,ze,O,K;function he(Fe){var Ue,We,xt,Ct;if(Fe.ref.remove()){for(We=Fe.ref.key,Ct=Fe.ref.parent,Ue=ve.length;Ue--;)if((xt=ve[Ue]).ref&&xt.ref.parent===Ct){if(xt.ref.key<We)break;--xt.ref.key}}}for(this.__initialize(te,pe),ze={},ve=this.__worklist,Ae=this.__leavelist,fe=new I(te,null,null,new F(O={root:te},"root")),ve.push(fe),Ae.push(fe);ve.length;)if((fe=ve.pop())!==ze){if((ae=this.__execute(pe.enter,fe))!==void 0&&ae!==N&&ae!==b&&ae!==C&&(fe.ref.replace(ae),fe.node=ae),this.__state!==C&&ae!==C||(he(fe),fe.node=null),this.__state===N||ae===N)return O.root;if((ie=fe.node)&&(ve.push(ze),Ae.push(fe),this.__state!==b&&ae!==b)){if(xe=ie.type||fe.wrap,!(Pe=this.__keys[xe])){if(!this.__fallback)throw new Error("Unknown node type "+xe+".");Pe=this.__fallback(ie)}for(Be=Pe.length;(Be-=1)>=0;)if(je=ie[K=Pe[Be]])if(Array.isArray(je)){for(Re=je.length;(Re-=1)>=0;)if(je[Re]){if(W(xe,Pe[Be]))fe=new I(je[Re],[K,Re],"Property",new F(je,Re));else{if(!z(je[Re]))continue;fe=new I(je[Re],[K,Re],null,new F(je,Re))}ve.push(fe)}}else z(je)&&ve.push(new I(je,K,null,new F(ie,K)))}}else if(fe=Ae.pop(),(ae=this.__execute(pe.leave,fe))!==void 0&&ae!==N&&ae!==b&&ae!==C&&fe.ref.replace(ae),this.__state!==C&&ae!==C||he(fe),this.__state===N||ae===N)return O.root;return O.root},R.Syntax=j,R.traverse=ue,R.replace=function(te,pe){return new U().replace(te,pe)},R.attachComments=function(te,pe,ve){var Ae,ie,xe,ae,fe=[];if(!te.range)throw new Error("attachComments needs range information");if(!ve.length){if(pe.length){for(xe=0,ie=pe.length;xe<ie;xe+=1)(Ae=P(pe[xe])).extendedRange=[0,te.range[0]],fe.push(Ae);te.leadingComments=fe}return te}for(xe=0,ie=pe.length;xe<ie;xe+=1)fe.push(be(P(pe[xe]),ve));return ae=0,ue(te,{enter:function(Be){for(var Re;ae<fe.length&&!((Re=fe[ae]).extendedRange[1]>Be.range[0]);)Re.extendedRange[1]===Be.range[0]?(Be.leadingComments||(Be.leadingComments=[]),Be.leadingComments.push(Re),fe.splice(ae,1)):ae+=1;return ae===fe.length?$.Break:fe[ae].extendedRange[0]>Be.range[1]?$.Skip:void 0}}),ae=0,ue(te,{leave:function(Be){for(var Re;ae<fe.length&&(Re=fe[ae],!(Be.range[1]<Re.extendedRange[0]));)Be.range[1]===Re.extendedRange[0]?(Be.trailingComments||(Be.trailingComments=[]),Be.trailingComments.push(Re),fe.splice(ae,1)):ae+=1;return ae===fe.length?$.Break:fe[ae].extendedRange[0]>Be.range[1]?$.Skip:void 0}}),te},R.VisitorKeys=M,R.VisitorOption=$,R.Controller=U,R.cloneEnvironment=function(){return w({})},R})(T)})),a=i((function(k){k.exports&&(k.exports=(function(){function T(w,R,j,$){this.message=w,this.expected=R,this.found=j,this.location=$,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,T)}return(function(w,R){function j(){this.constructor=w}j.prototype=R.prototype,w.prototype=new j})(T,Error),T.buildMessage=function(w,R){var j={literal:function(b){return'"'+M(b.text)+'"'},class:function(b){var C,P="";for(C=0;C<b.parts.length;C++)P+=b.parts[C]instanceof Array?N(b.parts[C][0])+"-"+N(b.parts[C][1]):N(b.parts[C]);return"["+(b.inverted?"^":"")+P+"]"},any:function(b){return"any character"},end:function(b){return"end of input"},other:function(b){return b.description}};function $(b){return b.charCodeAt(0).toString(16).toUpperCase()}function M(b){return b.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(C){return"\\x0"+$(C)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(C){return"\\x"+$(C)}))}function N(b){return b.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(C){return"\\x0"+$(C)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(C){return"\\x"+$(C)}))}return"Expected "+(function(b){var C,P,F,I=new Array(b.length);for(C=0;C<b.length;C++)I[C]=(F=b[C],j[F.type](F));if(I.sort(),I.length>0){for(C=1,P=1;C<I.length;C++)I[C-1]!==I[C]&&(I[P]=I[C],P++);I.length=P}switch(I.length){case 1:return I[0];case 2:return I[0]+" or "+I[1];default:return I.slice(0,-1).join(", ")+", or "+I[I.length-1]}})(w)+" but "+(function(b){return b?'"'+M(b)+'"':"end of input"})(R)+" found."},{SyntaxError:T,parse:function(w,R){R=R!==void 0?R:{};var j,$,M,N,b={},C={start:Ze},P=Ze,F=J(" ",!1),I=/^[^ [\],():#!=><~+.]/,U=ee([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),z=J(">",!1),W=J("~",!1),re=J("+",!1),ue=J(",",!1),be=function(Q,ce){return[Q].concat(ce.map((function(ge){return ge[3]})))},te=J("!",!1),pe=J("*",!1),ve=J("#",!1),Ae=J("[",!1),ie=J("]",!1),xe=/^[><!]/,ae=ee([">","<","!"],!1,!1),fe=J("=",!1),Be=function(Q){return(Q||"")+"="},Re=/^[><]/,Pe=ee([">","<"],!1,!1),je=J(".",!1),ze=function(Q,ce,ge){return{type:"attribute",name:Q,operator:ce,value:ge}},O=J('"',!1),K=/^[^\\"]/,he=ee(["\\",'"'],!0,!1),Fe=J("\\",!1),Ue={type:"any"},We=function(Q,ce){return Q+ce},xt=function(Q){return{type:"literal",value:(ce=Q.join(""),ce.replace(/\\(.)/g,(function(ge,G){switch(G){case"b":return"\b";case"f":return"\f";case"n":return`
106
+ `;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return G}})))};var ce},Ct=J("'",!1),Pr=/^[^\\']/,ht=ee(["\\","'"],!0,!1),it=/^[0-9]/,ut=ee([["0","9"]],!1,!1),Cs=J("type(",!1),Nn=/^[^ )]/,or=ee([" ",")"],!0,!1),Te=J(")",!1),ln=/^[imsu]/,ws=ee(["i","m","s","u"],!1,!1),Rn=J("/",!1),Ot=/^[^\]\\]/,un=ee(["]","\\"],!0,!1),jn=/^[^\/\\[]/,As=ee(["/","\\","["],!0,!1),cn=J(":not(",!1),Jt=J(":matches(",!1),Vt=function(Q){return{type:"matches",selectors:Q}},nt=J(":is(",!1),Fr=J(":has(",!1),$e=J(":first-child",!1),ks=J(":last-child",!1),zr=J(":nth-child(",!1),Ts=J(":nth-last-child(",!1),pn=J(":",!1),_=0,fn=[{line:1,column:1}],Lt=0,H=[],q={};if("startRule"in R){if(!(R.startRule in C))throw new Error(`Can't start parsing from rule "`+R.startRule+'".');P=C[R.startRule]}function J(Q,ce){return{type:"literal",text:Q,ignoreCase:ce}}function ee(Q,ce,ge){return{type:"class",parts:Q,inverted:ce,ignoreCase:ge}}function ne(Q){var ce,ge=fn[Q];if(ge)return ge;for(ce=Q-1;!fn[ce];)ce--;for(ge={line:(ge=fn[ce]).line,column:ge.column};ce<Q;)w.charCodeAt(ce)===10?(ge.line++,ge.column=1):ge.column++,ce++;return fn[Q]=ge,ge}function ke(Q,ce){var ge=ne(Q),G=ne(ce);return{start:{offset:Q,line:ge.line,column:ge.column},end:{offset:ce,line:G.line,column:G.column}}}function oe(Q){_<Lt||(_>Lt&&(Lt=_,H=[]),H.push(Q))}function Ze(){var Q,ce,ge,G,se=36*_+0,Ee=q[se];return Ee?(_=Ee.nextPos,Ee.result):(Q=_,(ce=De())!==b&&(ge=pt())!==b&&De()!==b?Q=ce=(G=ge).length===1?G[0]:{type:"matches",selectors:G}:(_=Q,Q=b),Q===b&&(Q=_,(ce=De())!==b&&(ce=void 0),Q=ce),q[se]={nextPos:_,result:Q},Q)}function De(){var Q,ce,ge=36*_+1,G=q[ge];if(G)return _=G.nextPos,G.result;for(Q=[],w.charCodeAt(_)===32?(ce=" ",_++):(ce=b,oe(F));ce!==b;)Q.push(ce),w.charCodeAt(_)===32?(ce=" ",_++):(ce=b,oe(F));return q[ge]={nextPos:_,result:Q},Q}function ot(){var Q,ce,ge,G=36*_+2,se=q[G];if(se)return _=se.nextPos,se.result;if(ce=[],I.test(w.charAt(_))?(ge=w.charAt(_),_++):(ge=b,oe(U)),ge!==b)for(;ge!==b;)ce.push(ge),I.test(w.charAt(_))?(ge=w.charAt(_),_++):(ge=b,oe(U));else ce=b;return ce!==b&&(ce=ce.join("")),Q=ce,q[G]={nextPos:_,result:Q},Q}function Qe(){var Q,ce,ge,G=36*_+3,se=q[G];return se?(_=se.nextPos,se.result):(Q=_,(ce=De())!==b?(w.charCodeAt(_)===62?(ge=">",_++):(ge=b,oe(z)),ge!==b&&De()!==b?Q=ce="child":(_=Q,Q=b)):(_=Q,Q=b),Q===b&&(Q=_,(ce=De())!==b?(w.charCodeAt(_)===126?(ge="~",_++):(ge=b,oe(W)),ge!==b&&De()!==b?Q=ce="sibling":(_=Q,Q=b)):(_=Q,Q=b),Q===b&&(Q=_,(ce=De())!==b?(w.charCodeAt(_)===43?(ge="+",_++):(ge=b,oe(re)),ge!==b&&De()!==b?Q=ce="adjacent":(_=Q,Q=b)):(_=Q,Q=b),Q===b&&(Q=_,w.charCodeAt(_)===32?(ce=" ",_++):(ce=b,oe(F)),ce!==b&&(ge=De())!==b?Q=ce="descendant":(_=Q,Q=b)))),q[G]={nextPos:_,result:Q},Q)}function pt(){var Q,ce,ge,G,se,Ee,Se,_e,Le=36*_+5,Oe=q[Le];if(Oe)return _=Oe.nextPos,Oe.result;if(Q=_,(ce=lt())!==b){for(ge=[],G=_,(se=De())!==b?(w.charCodeAt(_)===44?(Ee=",",_++):(Ee=b,oe(ue)),Ee!==b&&(Se=De())!==b&&(_e=lt())!==b?G=se=[se,Ee,Se,_e]:(_=G,G=b)):(_=G,G=b);G!==b;)ge.push(G),G=_,(se=De())!==b?(w.charCodeAt(_)===44?(Ee=",",_++):(Ee=b,oe(ue)),Ee!==b&&(Se=De())!==b&&(_e=lt())!==b?G=se=[se,Ee,Se,_e]:(_=G,G=b)):(_=G,G=b);ge!==b?Q=ce=be(ce,ge):(_=Q,Q=b)}else _=Q,Q=b;return q[Le]={nextPos:_,result:Q},Q}function Et(){var Q,ce,ge,G,se,Ee=36*_+6,Se=q[Ee];return Se?(_=Se.nextPos,Se.result):(Q=_,(ce=Qe())===b&&(ce=null),ce!==b&&(ge=lt())!==b?(se=ge,Q=ce=(G=ce)?{type:G,left:{type:"exactNode"},right:se}:se):(_=Q,Q=b),q[Ee]={nextPos:_,result:Q},Q)}function lt(){var Q,ce,ge,G,se,Ee,Se,_e=36*_+7,Le=q[_e];if(Le)return _=Le.nextPos,Le.result;if(Q=_,(ce=et())!==b){for(ge=[],G=_,(se=Qe())!==b&&(Ee=et())!==b?G=se=[se,Ee]:(_=G,G=b);G!==b;)ge.push(G),G=_,(se=Qe())!==b&&(Ee=et())!==b?G=se=[se,Ee]:(_=G,G=b);ge!==b?(Se=ce,Q=ce=ge.reduce((function(Oe,ct){return{type:ct[0],left:Oe,right:ct[1]}}),Se)):(_=Q,Q=b)}else _=Q,Q=b;return q[_e]={nextPos:_,result:Q},Q}function et(){var Q,ce,ge,G,se,Ee,Se,_e=36*_+8,Le=q[_e];if(Le)return _=Le.nextPos,Le.result;if(Q=_,w.charCodeAt(_)===33?(ce="!",_++):(ce=b,oe(te)),ce===b&&(ce=null),ce!==b){if(ge=[],(G=mt())!==b)for(;G!==b;)ge.push(G),G=mt();else ge=b;ge!==b?(se=ce,Se=(Ee=ge).length===1?Ee[0]:{type:"compound",selectors:Ee},se&&(Se.subject=!0),Q=ce=Se):(_=Q,Q=b)}else _=Q,Q=b;return q[_e]={nextPos:_,result:Q},Q}function mt(){var Q,ce=36*_+9,ge=q[ce];return ge?(_=ge.nextPos,ge.result):((Q=(function(){var G,se,Ee=36*_+10,Se=q[Ee];return Se?(_=Se.nextPos,Se.result):(w.charCodeAt(_)===42?(se="*",_++):(se=b,oe(pe)),se!==b&&(se={type:"wildcard",value:se}),G=se,q[Ee]={nextPos:_,result:G},G)})())===b&&(Q=(function(){var G,se,Ee,Se=36*_+11,_e=q[Se];return _e?(_=_e.nextPos,_e.result):(G=_,w.charCodeAt(_)===35?(se="#",_++):(se=b,oe(ve)),se===b&&(se=null),se!==b&&(Ee=ot())!==b?G=se={type:"identifier",value:Ee}:(_=G,G=b),q[Se]={nextPos:_,result:G},G)})())===b&&(Q=(function(){var G,se,Ee,Se,_e=36*_+12,Le=q[_e];return Le?(_=Le.nextPos,Le.result):(G=_,w.charCodeAt(_)===91?(se="[",_++):(se=b,oe(Ae)),se!==b&&De()!==b&&(Ee=(function(){var Oe,ct,Nt,tt,Xt=36*_+16,bt=q[Xt];return bt?(_=bt.nextPos,bt.result):(Oe=_,(ct=rt())!==b&&De()!==b&&(Nt=(function(){var ye,Ie,Me,me=36*_+14,qe=q[me];return qe?(_=qe.nextPos,qe.result):(ye=_,w.charCodeAt(_)===33?(Ie="!",_++):(Ie=b,oe(te)),Ie===b&&(Ie=null),Ie!==b?(w.charCodeAt(_)===61?(Me="=",_++):(Me=b,oe(fe)),Me!==b?(Ie=Be(Ie),ye=Ie):(_=ye,ye=b)):(_=ye,ye=b),q[me]={nextPos:_,result:ye},ye)})())!==b&&De()!==b?((tt=(function(){var ye,Ie,Me,me,qe,ft=36*_+20,zt=q[ft];if(zt)return _=zt.nextPos,zt.result;if(ye=_,w.substr(_,5)==="type("?(Ie="type(",_+=5):(Ie=b,oe(Cs)),Ie!==b)if(De()!==b){if(Me=[],Nn.test(w.charAt(_))?(me=w.charAt(_),_++):(me=b,oe(or)),me!==b)for(;me!==b;)Me.push(me),Nn.test(w.charAt(_))?(me=w.charAt(_),_++):(me=b,oe(or));else Me=b;Me!==b&&(me=De())!==b?(w.charCodeAt(_)===41?(qe=")",_++):(qe=b,oe(Te)),qe!==b?(Ie={type:"type",value:Me.join("")},ye=Ie):(_=ye,ye=b)):(_=ye,ye=b)}else _=ye,ye=b;else _=ye,ye=b;return q[ft]={nextPos:_,result:ye},ye})())===b&&(tt=(function(){var ye,Ie,Me,me,qe,ft,zt=36*_+22,Gt=q[zt];if(Gt)return _=Gt.nextPos,Gt.result;if(ye=_,w.charCodeAt(_)===47?(Ie="/",_++):(Ie=b,oe(Rn)),Ie!==b){if(Me=[],(me=lr())===b&&(me=Ft())===b&&(me=Wt()),me!==b)for(;me!==b;)Me.push(me),(me=lr())===b&&(me=Ft())===b&&(me=Wt());else Me=b;Me!==b?(w.charCodeAt(_)===47?(me="/",_++):(me=b,oe(Rn)),me!==b?((qe=(function(){var wt,Kt,Gr=36*_+21,ur=q[Gr];if(ur)return _=ur.nextPos,ur.result;if(wt=[],ln.test(w.charAt(_))?(Kt=w.charAt(_),_++):(Kt=b,oe(ws)),Kt!==b)for(;Kt!==b;)wt.push(Kt),ln.test(w.charAt(_))?(Kt=w.charAt(_),_++):(Kt=b,oe(ws));else wt=b;return q[Gr]={nextPos:_,result:wt},wt})())===b&&(qe=null),qe!==b?(ft=qe,Ie={type:"regexp",value:new RegExp(Me.join(""),ft?ft.join(""):"")},ye=Ie):(_=ye,ye=b)):(_=ye,ye=b)):(_=ye,ye=b)}else _=ye,ye=b;return q[zt]={nextPos:_,result:ye},ye})()),tt!==b?(ct=ze(ct,Nt,tt),Oe=ct):(_=Oe,Oe=b)):(_=Oe,Oe=b),Oe===b&&(Oe=_,(ct=rt())!==b&&De()!==b&&(Nt=(function(){var ye,Ie,Me,me=36*_+13,qe=q[me];return qe?(_=qe.nextPos,qe.result):(ye=_,xe.test(w.charAt(_))?(Ie=w.charAt(_),_++):(Ie=b,oe(ae)),Ie===b&&(Ie=null),Ie!==b?(w.charCodeAt(_)===61?(Me="=",_++):(Me=b,oe(fe)),Me!==b?(Ie=Be(Ie),ye=Ie):(_=ye,ye=b)):(_=ye,ye=b),ye===b&&(Re.test(w.charAt(_))?(ye=w.charAt(_),_++):(ye=b,oe(Pe))),q[me]={nextPos:_,result:ye},ye)})())!==b&&De()!==b?((tt=(function(){var ye,Ie,Me,me,qe,ft,zt=36*_+17,Gt=q[zt];if(Gt)return _=Gt.nextPos,Gt.result;if(ye=_,w.charCodeAt(_)===34?(Ie='"',_++):(Ie=b,oe(O)),Ie!==b){for(Me=[],K.test(w.charAt(_))?(me=w.charAt(_),_++):(me=b,oe(he)),me===b&&(me=_,w.charCodeAt(_)===92?(qe="\\",_++):(qe=b,oe(Fe)),qe!==b?(w.length>_?(ft=w.charAt(_),_++):(ft=b,oe(Ue)),ft!==b?(qe=We(qe,ft),me=qe):(_=me,me=b)):(_=me,me=b));me!==b;)Me.push(me),K.test(w.charAt(_))?(me=w.charAt(_),_++):(me=b,oe(he)),me===b&&(me=_,w.charCodeAt(_)===92?(qe="\\",_++):(qe=b,oe(Fe)),qe!==b?(w.length>_?(ft=w.charAt(_),_++):(ft=b,oe(Ue)),ft!==b?(qe=We(qe,ft),me=qe):(_=me,me=b)):(_=me,me=b));Me!==b?(w.charCodeAt(_)===34?(me='"',_++):(me=b,oe(O)),me!==b?(Ie=xt(Me),ye=Ie):(_=ye,ye=b)):(_=ye,ye=b)}else _=ye,ye=b;if(ye===b)if(ye=_,w.charCodeAt(_)===39?(Ie="'",_++):(Ie=b,oe(Ct)),Ie!==b){for(Me=[],Pr.test(w.charAt(_))?(me=w.charAt(_),_++):(me=b,oe(ht)),me===b&&(me=_,w.charCodeAt(_)===92?(qe="\\",_++):(qe=b,oe(Fe)),qe!==b?(w.length>_?(ft=w.charAt(_),_++):(ft=b,oe(Ue)),ft!==b?(qe=We(qe,ft),me=qe):(_=me,me=b)):(_=me,me=b));me!==b;)Me.push(me),Pr.test(w.charAt(_))?(me=w.charAt(_),_++):(me=b,oe(ht)),me===b&&(me=_,w.charCodeAt(_)===92?(qe="\\",_++):(qe=b,oe(Fe)),qe!==b?(w.length>_?(ft=w.charAt(_),_++):(ft=b,oe(Ue)),ft!==b?(qe=We(qe,ft),me=qe):(_=me,me=b)):(_=me,me=b));Me!==b?(w.charCodeAt(_)===39?(me="'",_++):(me=b,oe(Ct)),me!==b?(Ie=xt(Me),ye=Ie):(_=ye,ye=b)):(_=ye,ye=b)}else _=ye,ye=b;return q[zt]={nextPos:_,result:ye},ye})())===b&&(tt=(function(){var ye,Ie,Me,me,qe,ft,zt,Gt=36*_+18,wt=q[Gt];if(wt)return _=wt.nextPos,wt.result;for(ye=_,Ie=_,Me=[],it.test(w.charAt(_))?(me=w.charAt(_),_++):(me=b,oe(ut));me!==b;)Me.push(me),it.test(w.charAt(_))?(me=w.charAt(_),_++):(me=b,oe(ut));if(Me!==b?(w.charCodeAt(_)===46?(me=".",_++):(me=b,oe(je)),me!==b?Ie=Me=[Me,me]:(_=Ie,Ie=b)):(_=Ie,Ie=b),Ie===b&&(Ie=null),Ie!==b){if(Me=[],it.test(w.charAt(_))?(me=w.charAt(_),_++):(me=b,oe(ut)),me!==b)for(;me!==b;)Me.push(me),it.test(w.charAt(_))?(me=w.charAt(_),_++):(me=b,oe(ut));else Me=b;Me!==b?(ft=Me,zt=(qe=Ie)?[].concat.apply([],qe).join(""):"",Ie={type:"literal",value:parseFloat(zt+ft.join(""))},ye=Ie):(_=ye,ye=b)}else _=ye,ye=b;return q[Gt]={nextPos:_,result:ye},ye})())===b&&(tt=(function(){var ye,Ie,Me=36*_+19,me=q[Me];return me?(_=me.nextPos,me.result):((Ie=ot())!==b&&(Ie={type:"literal",value:Ie}),ye=Ie,q[Me]={nextPos:_,result:ye},ye)})()),tt!==b?(ct=ze(ct,Nt,tt),Oe=ct):(_=Oe,Oe=b)):(_=Oe,Oe=b),Oe===b&&(Oe=_,(ct=rt())!==b&&(ct={type:"attribute",name:ct}),Oe=ct)),q[Xt]={nextPos:_,result:Oe},Oe)})())!==b&&De()!==b?(w.charCodeAt(_)===93?(Se="]",_++):(Se=b,oe(ie)),Se!==b?G=se=Ee:(_=G,G=b)):(_=G,G=b),q[_e]={nextPos:_,result:G},G)})())===b&&(Q=(function(){var G,se,Ee,Se,_e,Le,Oe,ct,Nt=36*_+26,tt=q[Nt];if(tt)return _=tt.nextPos,tt.result;if(G=_,w.charCodeAt(_)===46?(se=".",_++):(se=b,oe(je)),se!==b)if((Ee=ot())!==b){for(Se=[],_e=_,w.charCodeAt(_)===46?(Le=".",_++):(Le=b,oe(je)),Le!==b&&(Oe=ot())!==b?_e=Le=[Le,Oe]:(_=_e,_e=b);_e!==b;)Se.push(_e),_e=_,w.charCodeAt(_)===46?(Le=".",_++):(Le=b,oe(je)),Le!==b&&(Oe=ot())!==b?_e=Le=[Le,Oe]:(_=_e,_e=b);Se!==b?(ct=Ee,se={type:"field",name:Se.reduce((function(Xt,bt){return Xt+bt[0]+bt[1]}),ct)},G=se):(_=G,G=b)}else _=G,G=b;else _=G,G=b;return q[Nt]={nextPos:_,result:G},G})())===b&&(Q=(function(){var G,se,Ee,Se,_e=36*_+27,Le=q[_e];return Le?(_=Le.nextPos,Le.result):(G=_,w.substr(_,5)===":not("?(se=":not(",_+=5):(se=b,oe(cn)),se!==b&&De()!==b&&(Ee=pt())!==b&&De()!==b?(w.charCodeAt(_)===41?(Se=")",_++):(Se=b,oe(Te)),Se!==b?G=se={type:"not",selectors:Ee}:(_=G,G=b)):(_=G,G=b),q[_e]={nextPos:_,result:G},G)})())===b&&(Q=(function(){var G,se,Ee,Se,_e=36*_+28,Le=q[_e];return Le?(_=Le.nextPos,Le.result):(G=_,w.substr(_,9)===":matches("?(se=":matches(",_+=9):(se=b,oe(Jt)),se!==b&&De()!==b&&(Ee=pt())!==b&&De()!==b?(w.charCodeAt(_)===41?(Se=")",_++):(Se=b,oe(Te)),Se!==b?(se=Vt(Ee),G=se):(_=G,G=b)):(_=G,G=b),q[_e]={nextPos:_,result:G},G)})())===b&&(Q=(function(){var G,se,Ee,Se,_e=36*_+29,Le=q[_e];return Le?(_=Le.nextPos,Le.result):(G=_,w.substr(_,4)===":is("?(se=":is(",_+=4):(se=b,oe(nt)),se!==b&&De()!==b&&(Ee=pt())!==b&&De()!==b?(w.charCodeAt(_)===41?(Se=")",_++):(Se=b,oe(Te)),Se!==b?(se=Vt(Ee),G=se):(_=G,G=b)):(_=G,G=b),q[_e]={nextPos:_,result:G},G)})())===b&&(Q=(function(){var G,se,Ee,Se,_e=36*_+30,Le=q[_e];return Le?(_=Le.nextPos,Le.result):(G=_,w.substr(_,5)===":has("?(se=":has(",_+=5):(se=b,oe(Fr)),se!==b&&De()!==b&&(Ee=(function(){var Oe,ct,Nt,tt,Xt,bt,ye,Ie,Me=36*_+4,me=q[Me];if(me)return _=me.nextPos,me.result;if(Oe=_,(ct=Et())!==b){for(Nt=[],tt=_,(Xt=De())!==b?(w.charCodeAt(_)===44?(bt=",",_++):(bt=b,oe(ue)),bt!==b&&(ye=De())!==b&&(Ie=Et())!==b?tt=Xt=[Xt,bt,ye,Ie]:(_=tt,tt=b)):(_=tt,tt=b);tt!==b;)Nt.push(tt),tt=_,(Xt=De())!==b?(w.charCodeAt(_)===44?(bt=",",_++):(bt=b,oe(ue)),bt!==b&&(ye=De())!==b&&(Ie=Et())!==b?tt=Xt=[Xt,bt,ye,Ie]:(_=tt,tt=b)):(_=tt,tt=b);Nt!==b?Oe=ct=be(ct,Nt):(_=Oe,Oe=b)}else _=Oe,Oe=b;return q[Me]={nextPos:_,result:Oe},Oe})())!==b&&De()!==b?(w.charCodeAt(_)===41?(Se=")",_++):(Se=b,oe(Te)),Se!==b?G=se={type:"has",selectors:Ee}:(_=G,G=b)):(_=G,G=b),q[_e]={nextPos:_,result:G},G)})())===b&&(Q=(function(){var G,se,Ee=36*_+31,Se=q[Ee];return Se?(_=Se.nextPos,Se.result):(w.substr(_,12)===":first-child"?(se=":first-child",_+=12):(se=b,oe($e)),se!==b&&(se=at(1)),G=se,q[Ee]={nextPos:_,result:G},G)})())===b&&(Q=(function(){var G,se,Ee=36*_+32,Se=q[Ee];return Se?(_=Se.nextPos,Se.result):(w.substr(_,11)===":last-child"?(se=":last-child",_+=11):(se=b,oe(ks)),se!==b&&(se=Rt(1)),G=se,q[Ee]={nextPos:_,result:G},G)})())===b&&(Q=(function(){var G,se,Ee,Se,_e,Le=36*_+33,Oe=q[Le];if(Oe)return _=Oe.nextPos,Oe.result;if(G=_,w.substr(_,11)===":nth-child("?(se=":nth-child(",_+=11):(se=b,oe(zr)),se!==b)if(De()!==b){if(Ee=[],it.test(w.charAt(_))?(Se=w.charAt(_),_++):(Se=b,oe(ut)),Se!==b)for(;Se!==b;)Ee.push(Se),it.test(w.charAt(_))?(Se=w.charAt(_),_++):(Se=b,oe(ut));else Ee=b;Ee!==b&&(Se=De())!==b?(w.charCodeAt(_)===41?(_e=")",_++):(_e=b,oe(Te)),_e!==b?(se=at(parseInt(Ee.join(""),10)),G=se):(_=G,G=b)):(_=G,G=b)}else _=G,G=b;else _=G,G=b;return q[Le]={nextPos:_,result:G},G})())===b&&(Q=(function(){var G,se,Ee,Se,_e,Le=36*_+34,Oe=q[Le];if(Oe)return _=Oe.nextPos,Oe.result;if(G=_,w.substr(_,16)===":nth-last-child("?(se=":nth-last-child(",_+=16):(se=b,oe(Ts)),se!==b)if(De()!==b){if(Ee=[],it.test(w.charAt(_))?(Se=w.charAt(_),_++):(Se=b,oe(ut)),Se!==b)for(;Se!==b;)Ee.push(Se),it.test(w.charAt(_))?(Se=w.charAt(_),_++):(Se=b,oe(ut));else Ee=b;Ee!==b&&(Se=De())!==b?(w.charCodeAt(_)===41?(_e=")",_++):(_e=b,oe(Te)),_e!==b?(se=Rt(parseInt(Ee.join(""),10)),G=se):(_=G,G=b)):(_=G,G=b)}else _=G,G=b;else _=G,G=b;return q[Le]={nextPos:_,result:G},G})())===b&&(Q=(function(){var G,se,Ee,Se=36*_+35,_e=q[Se];return _e?(_=_e.nextPos,_e.result):(G=_,w.charCodeAt(_)===58?(se=":",_++):(se=b,oe(pn)),se!==b&&(Ee=ot())!==b?G=se={type:"class",name:Ee}:(_=G,G=b),q[Se]={nextPos:_,result:G},G)})()),q[ce]={nextPos:_,result:Q},Q)}function rt(){var Q,ce,ge,G,se,Ee,Se,_e,Le=36*_+15,Oe=q[Le];if(Oe)return _=Oe.nextPos,Oe.result;if(Q=_,(ce=ot())!==b){for(ge=[],G=_,w.charCodeAt(_)===46?(se=".",_++):(se=b,oe(je)),se!==b&&(Ee=ot())!==b?G=se=[se,Ee]:(_=G,G=b);G!==b;)ge.push(G),G=_,w.charCodeAt(_)===46?(se=".",_++):(se=b,oe(je)),se!==b&&(Ee=ot())!==b?G=se=[se,Ee]:(_=G,G=b);ge!==b?(Se=ce,_e=ge,Q=ce=[].concat.apply([Se],_e).join("")):(_=Q,Q=b)}else _=Q,Q=b;return q[Le]={nextPos:_,result:Q},Q}function lr(){var Q,ce,ge,G,se=36*_+23,Ee=q[se];if(Ee)return _=Ee.nextPos,Ee.result;if(Q=_,w.charCodeAt(_)===91?(ce="[",_++):(ce=b,oe(Ae)),ce!==b){if(ge=[],Ot.test(w.charAt(_))?(G=w.charAt(_),_++):(G=b,oe(un)),G===b&&(G=Ft()),G!==b)for(;G!==b;)ge.push(G),Ot.test(w.charAt(_))?(G=w.charAt(_),_++):(G=b,oe(un)),G===b&&(G=Ft());else ge=b;ge!==b?(w.charCodeAt(_)===93?(G="]",_++):(G=b,oe(ie)),G!==b?Q=ce="["+ge.join("")+"]":(_=Q,Q=b)):(_=Q,Q=b)}else _=Q,Q=b;return q[se]={nextPos:_,result:Q},Q}function Ft(){var Q,ce,ge,G=36*_+24,se=q[G];return se?(_=se.nextPos,se.result):(Q=_,w.charCodeAt(_)===92?(ce="\\",_++):(ce=b,oe(Fe)),ce!==b?(w.length>_?(ge=w.charAt(_),_++):(ge=b,oe(Ue)),ge!==b?Q=ce="\\"+ge:(_=Q,Q=b)):(_=Q,Q=b),q[G]={nextPos:_,result:Q},Q)}function Wt(){var Q,ce,ge,G=36*_+25,se=q[G];if(se)return _=se.nextPos,se.result;if(ce=[],jn.test(w.charAt(_))?(ge=w.charAt(_),_++):(ge=b,oe(As)),ge!==b)for(;ge!==b;)ce.push(ge),jn.test(w.charAt(_))?(ge=w.charAt(_),_++):(ge=b,oe(As));else ce=b;return ce!==b&&(ce=ce.join("")),Q=ce,q[G]={nextPos:_,result:Q},Q}function at(Q){return{type:"nth-child",index:{type:"literal",value:Q}}}function Rt(Q){return{type:"nth-last-child",index:{type:"literal",value:Q}}}if((j=P())!==b&&_===w.length)return j;throw j!==b&&_<w.length&&oe({type:"end"}),$=H,M=Lt<w.length?w.charAt(Lt):null,N=Lt<w.length?ke(Lt,Lt+1):ke(Lt,Lt),new T(T.buildMessage($,M),$,M,N)}}})())}));function l(k,T){for(var w=0;w<T.length;++w){if(k==null)return k;k=k[T[w]]}return k}var u=typeof WeakMap=="function"?new WeakMap:null;function c(k){if(k==null)return function(){return!0};if(u!=null){var T=u.get(k);return T!=null||(T=p(k),u.set(k,T)),T}return p(k)}function p(k){switch(k.type){case"wildcard":return function(){return!0};case"identifier":var T=k.value.toLowerCase();return function(ie,xe,ae){var fe=ae&&ae.nodeTypeKey||"type";return T===ie[fe].toLowerCase()};case"exactNode":return function(ie,xe){return xe.length===0};case"field":var w=k.name.split(".");return function(ie,xe){return(function ae(fe,Be,Re,Pe){for(var je=Be,ze=Pe;ze<Re.length;++ze){if(je==null)return!1;var O=je[Re[ze]];if(Array.isArray(O)){for(var K=0;K<O.length;++K)if(ae(fe,O[K],Re,ze+1))return!0;return!1}je=O}return fe===je})(ie,xe[w.length-1],w,0)};case"matches":var R=k.selectors.map(c);return function(ie,xe,ae){for(var fe=0;fe<R.length;++fe)if(R[fe](ie,xe,ae))return!0;return!1};case"compound":var j=k.selectors.map(c);return function(ie,xe,ae){for(var fe=0;fe<j.length;++fe)if(!j[fe](ie,xe,ae))return!1;return!0};case"not":var $=k.selectors.map(c);return function(ie,xe,ae){for(var fe=0;fe<$.length;++fe)if($[fe](ie,xe,ae))return!1;return!0};case"has":var M=k.selectors.map(c);return function(ie,xe,ae){var fe=!1,Be=[];return o.traverse(ie,{enter:function(Re,Pe){Pe!=null&&Be.unshift(Pe);for(var je=0;je<M.length;++je)if(M[je](Re,Be,ae))return fe=!0,void this.break()},leave:function(){Be.shift()},keys:ae&&ae.visitorKeys,fallback:ae&&ae.fallback||"iteration"}),fe};case"child":var N=c(k.left),b=c(k.right);return function(ie,xe,ae){return!!(xe.length>0&&b(ie,xe,ae))&&N(xe[0],xe.slice(1),ae)};case"descendant":var C=c(k.left),P=c(k.right);return function(ie,xe,ae){if(P(ie,xe,ae)){for(var fe=0,Be=xe.length;fe<Be;++fe)if(C(xe[fe],xe.slice(fe+1),ae))return!0}return!1};case"attribute":var F=k.name.split(".");switch(k.operator){case void 0:return function(ie){return l(ie,F)!=null};case"=":switch(k.value.type){case"regexp":return function(ie){var xe=l(ie,F);return typeof xe=="string"&&k.value.value.test(xe)};case"literal":var I="".concat(k.value.value);return function(ie){return I==="".concat(l(ie,F))};case"type":return function(ie){return k.value.value===s(l(ie,F))}}throw new Error("Unknown selector value type: ".concat(k.value.type));case"!=":switch(k.value.type){case"regexp":return function(ie){return!k.value.value.test(l(ie,F))};case"literal":var U="".concat(k.value.value);return function(ie){return U!=="".concat(l(ie,F))};case"type":return function(ie){return k.value.value!==s(l(ie,F))}}throw new Error("Unknown selector value type: ".concat(k.value.type));case"<=":return function(ie){return l(ie,F)<=k.value.value};case"<":return function(ie){return l(ie,F)<k.value.value};case">":return function(ie){return l(ie,F)>k.value.value};case">=":return function(ie){return l(ie,F)>=k.value.value}}throw new Error("Unknown operator: ".concat(k.operator));case"sibling":var z=c(k.left),W=c(k.right);return function(ie,xe,ae){return W(ie,xe,ae)&&d(ie,z,xe,"LEFT_SIDE",ae)||k.left.subject&&z(ie,xe,ae)&&d(ie,W,xe,"RIGHT_SIDE",ae)};case"adjacent":var re=c(k.left),ue=c(k.right);return function(ie,xe,ae){return ue(ie,xe,ae)&&g(ie,re,xe,"LEFT_SIDE",ae)||k.right.subject&&re(ie,xe,ae)&&g(ie,ue,xe,"RIGHT_SIDE",ae)};case"nth-child":var be=k.index.value,te=c(k.right);return function(ie,xe,ae){return te(ie,xe,ae)&&y(ie,xe,be,ae)};case"nth-last-child":var pe=-k.index.value,ve=c(k.right);return function(ie,xe,ae){return ve(ie,xe,ae)&&y(ie,xe,pe,ae)};case"class":var Ae=k.name.toLowerCase();return function(ie,xe,ae){if(ae&&ae.matchClass)return ae.matchClass(k.name,ie,xe);if(ae&&ae.nodeTypeKey)return!1;switch(Ae){case"statement":if(ie.type.slice(-9)==="Statement")return!0;case"declaration":return ie.type.slice(-11)==="Declaration";case"pattern":if(ie.type.slice(-7)==="Pattern")return!0;case"expression":return ie.type.slice(-10)==="Expression"||ie.type.slice(-7)==="Literal"||ie.type==="Identifier"&&(xe.length===0||xe[0].type!=="MetaProperty")||ie.type==="MetaProperty";case"function":return ie.type==="FunctionDeclaration"||ie.type==="FunctionExpression"||ie.type==="ArrowFunctionExpression"}throw new Error("Unknown class name: ".concat(k.name))}}throw new Error("Unknown selector type: ".concat(k.type))}function h(k,T){var w=T&&T.nodeTypeKey||"type",R=k[w];return T&&T.visitorKeys&&T.visitorKeys[R]?T.visitorKeys[R]:o.VisitorKeys[R]?o.VisitorKeys[R]:T&&typeof T.fallback=="function"?T.fallback(k):Object.keys(k).filter((function(j){return j!==w}))}function f(k,T){var w=T&&T.nodeTypeKey||"type";return k!==null&&s(k)==="object"&&typeof k[w]=="string"}function d(k,T,w,R,j){var $=e(w,1)[0];if(!$)return!1;for(var M=h($,j),N=0;N<M.length;++N){var b=$[M[N]];if(Array.isArray(b)){var C=b.indexOf(k);if(C<0)continue;var P=void 0,F=void 0;R==="LEFT_SIDE"?(P=0,F=C):(P=C+1,F=b.length);for(var I=P;I<F;++I)if(f(b[I],j)&&T(b[I],w,j))return!0}}return!1}function g(k,T,w,R,j){var $=e(w,1)[0];if(!$)return!1;for(var M=h($,j),N=0;N<M.length;++N){var b=$[M[N]];if(Array.isArray(b)){var C=b.indexOf(k);if(C<0)continue;if(R==="LEFT_SIDE"&&C>0&&f(b[C-1],j)&&T(b[C-1],w,j)||R==="RIGHT_SIDE"&&C<b.length-1&&f(b[C+1],j)&&T(b[C+1],w,j))return!0}}return!1}function y(k,T,w,R){if(w===0)return!1;var j=e(T,1)[0];if(!j)return!1;for(var $=h(j,R),M=0;M<$.length;++M){var N=j[$[M]];if(Array.isArray(N)){var b=w<0?N.length+w:w-1;if(b>=0&&b<N.length&&N[b]===k)return!0}}return!1}function v(k,T,w,R){if(T){var j=[],$=c(T),M=(function N(b,C){if(b==null||s(b)!="object")return[];C==null&&(C=b);for(var P=b.subject?[C]:[],F=Object.keys(b),I=0;I<F.length;++I){var U=F[I],z=b[U];P.push.apply(P,r(N(z,U==="left"?z:C)))}return P})(T).map(c);o.traverse(k,{enter:function(N,b){if(b!=null&&j.unshift(b),$(N,j,R))if(M.length)for(var C=0,P=M.length;C<P;++C){M[C](N,j,R)&&w(N,b,j);for(var F=0,I=j.length;F<I;++F){var U=j.slice(F+1);M[C](j[F],U,R)&&w(j[F],b,U)}}else w(N,b,j)},leave:function(){j.shift()},keys:R&&R.visitorKeys,fallback:R&&R.fallback||"iteration"})}}function S(k,T,w){var R=[];return v(k,T,(function(j){R.push(j)}),w),R}function A(k){return a.parse(k)}function E(k,T,w){return S(k,A(T),w)}return E.parse=A,E.match=S,E.traverse=v,E.matches=function(k,T,w,R){return!T||!!k&&(w||(w=[]),c(T)(k,w,R))},E.query=E,E}))});var XN=B((Lae,JN)=>{"use strict";var KN=GN(),lu=class{source;isExit;root;nodeTypes;attributeCount;identifierCount;alwaysMatches;fastMatch;constructor(e,r,s,n,i,o,a,l){this.source=e,this.isExit=r,this.root=s,this.nodeTypes=n,this.attributeCount=i,this.identifierCount=o,this.alwaysMatches=a,this.fastMatch=l}compare(e){return this.attributeCount-e.attributeCount||this.identifierCount-e.identifierCount||(this.source<=e.source?-1:1)}},Km=new Map;function XX(...t){return[...new Set(t.flat())]}function QX(...t){if(t.length===0)return[];let e=[...new Set(t[0])];for(let r of t.slice(1))e=e.filter(s=>r.includes(s));return e}function YX(t){let e=0,r=0;function s(i){switch(i.type){case"identifier":return r++,[i.value];case"not":return i.selectors.map(s),null;case"matches":{let o=i.selectors.map(s);return o.every(Boolean)?XX(...o):null}case"compound":{let o=i.selectors.map(s).filter(a=>a);return o.length?QX(...o):null}case"attribute":case"field":case"nth-child":case"nth-last-child":return e++,null;case"child":case"descendant":case"sibling":case"adjacent":return s(i.left),s(i.right);case"class":return i.name==="function"?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}return{nodeTypes:s(t),attributeCount:e,identifierCount:r}}function HN(t){switch(t.type){case"identifier":case"wildcard":return!0;case"matches":return t.selectors.every(HN);default:return!1}}function ZX(t){if(t.type!=="child")return null;let{left:e,right:r}=t;if(e.type!=="identifier")return null;let s=null;if(r.type==="field")s=r;else if(r.type==="compound"&&r.selectors.length===2){let[a,l]=r.selectors;a.type==="wildcard"&&l.type==="field"&&(s=l)}if(!s||s.name.includes("."))return null;let n=e.value,i=n.toLowerCase(),o=s.name;return(a,l,u)=>{let c=l[0];if(!c)return!1;let p=c[u?.nodeTypeKey||"type"];if(p!==n&&(typeof p!="string"||p.toLowerCase()!==i))return!1;let h=c[o];return h===a||Array.isArray(h)&&h.includes(a)}}function eQ(t){return t==="*"?{type:"wildcard",value:"*"}:/^[a-z]+$/iu.test(t)?{type:"identifier",value:t}:null}function tQ(t){try{return KN.parse(t)}catch(e){throw e.location&&e.location.start&&typeof e.location.start.offset=="number"?new SyntaxError(`Syntax error in selector "${t}" at position ${e.location.start.offset}: ${e.message}`,{cause:e}):e}}function rQ(t){if(Km.has(t))return Km.get(t);let e=t.replace(/:exit$/u,""),r=eQ(e)??tQ(e),{nodeTypes:s,attributeCount:n,identifierCount:i}=YX(r),o=new lu(t,t.endsWith(":exit"),r,s,n,i,HN(r),ZX(r));return Km.set(t,o),o}function nQ(t,e,r,s){return KN.matches(t,e,r,s)}JN.exports={parse:rQ,matches:nQ,ESQueryParsedSelector:lu}});var YN=B((Nae,QN)=>{"use strict";var{parse:sQ,matches:iQ}=XN(),aQ=Mn(),oQ=1,lQ=2,uQ=Object.freeze([]);function uu(t,e){return t.compare(e)}var Hm=class{constructor(e,r){this.visitor=e,this.esqueryOptions=r,this.nodeTypeKey=r?.nodeTypeKey||"type",this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],e.forEachName(s=>{let n=sQ(s);if(n.nodeTypes){let o=n.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;n.nodeTypes.forEach(a=>{o.has(a)||o.set(a,[]),o.get(a).push(n)});return}(n.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(n)}),this.anyTypeEnterSelectors.sort(uu),this.anyTypeExitSelectors.sort(uu),this.enterSelectorsByNodeType.forEach(s=>s.sort(uu)),this.exitSelectorsByNodeType.forEach(s=>s.sort(uu))}matches(e,r,s){return s.fastMatch?s.fastMatch(e,r,this.esqueryOptions):iQ(e,s.root,r,this.esqueryOptions)}calculateSelectors(e,r,s,n){let i=(s?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(e[this.nodeTypeKey])||uQ,o=s?this.anyTypeExitSelectors:this.anyTypeEnterSelectors,a=0,l=0;for(;a<i.length||l<o.length;){let u=a<i.length,c=l<o.length,p=o[l],h=i[a],f=c&&u&&p.compare(h)<0;!u||f?(l++,(p.alwaysMatches||this.matches(e,r,p))&&n.push(p)):(a++,(h.alwaysMatches||this.matches(e,r,h))&&n.push(h))}}},Jm=class{#e;static instances=new WeakMap;constructor(e){this.#e=e}static getInstance(e){return this.instances.has(e)||this.instances.set(e,new this(e)),this.instances.get(e)}traverseSync(e,r,{steps:s}={}){let n=new Hm(r,{visitorKeys:e.visitorKeys??this.#e.visitorKeys,fallback:aQ.getKeys,matchClass:this.#e.matchesSelectorClass??(()=>!1),nodeTypeKey:this.#e.nodeTypeKey}),i=[],o=[],a=s??e.traverse();function l(u){switch(u.kind){case oQ:{try{let c=u.phase!==1;c&&i.shift(),o.length=0,n.calculateSelectors(u.target,i,c,o);let p=u.args;for(let h=0;h<o.length;h++){let f=o[h].source;p?p.length===1?r.callSync(f,p[0]):r.callSync(f,...p):r.callSync(f,u.target)}c||i.unshift(u.target)}catch(c){throw c.currentNode=u.target,c}break}case lQ:{r.callSync(u.target,...u.args);break}default:throw new Error(`Invalid traversal step found: "${u.kind}".`)}}if(Array.isArray(a))for(let u=0;u<a.length;u++)l(a[u]);else for(let u of a)l(u)}};QN.exports={SourceCodeTraverser:Jm}});var tR=B((Rae,eR)=>{"use strict";function ZN(t,e){return{range:[t,t],text:e}}function Ci(t){if(typeof t!="string")throw new TypeError("'text' must be a string")}var Xm=class{#e;constructor({sourceCode:e}){this.#e=e}insertTextAfter(e,r){Ci(r);let s=this.#e.getRange(e);return this.insertTextAfterRange(s,r)}insertTextAfterRange(e,r){return Ci(r),ZN(e[1],r)}insertTextBefore(e,r){Ci(r);let s=this.#e.getRange(e);return this.insertTextBeforeRange(s,r)}insertTextBeforeRange(e,r){return Ci(r),ZN(e[0],r)}replaceText(e,r){Ci(r);let s=this.#e.getRange(e);return this.replaceTextRange(s,r)}replaceTextRange(e,r){return Ci(r),{range:e,text:r}}remove(e){let r=this.#e.getRange(e);return this.removeRange(r)}removeRange(e){return{range:e,text:""}}};eR.exports={RuleFixer:Xm}});var sR=B((jae,nR)=>{"use strict";function rR(){return/\{\{([^{}]+)\}\}/gu}var cQ=rR();function pQ(t,e){return!e||!t.includes("{{")?t:t.replace(cQ,(r,s)=>{let n=s.trim();return n in e?e[n]:r})}nR.exports={getPlaceholderMatcher:rR,interpolate:pQ}});var fR=B((Mae,pR)=>{"use strict";var cu=Oi(),{RuleFixer:fQ}=tR(),{interpolate:aR}=sR(),iR=Gp(),hQ={start:{line:1,column:0},end:{line:1,column:1}};function oR({line:t,column:e,endLine:r,endColumn:s},n){let i=n.columnStart===1?0:1,o=n.lineStart===1?0:1,a=r===void 0?r:r+o,l=s===void 0?s:s+i;return{line:t+o,column:e+i,endLine:a,endColumn:l}}function mQ(t){return Object.hasOwn(iR.rules,t)?`Rule '${t}' was removed and replaced by: ${iR.rules[t].join(", ")}`:`Definition for rule '${t}' was not found.`}function Qm(t,e,r){let{ruleId:s=null,loc:n=hQ,message:i=mQ(t.ruleId)}=t;return{ruleId:s,message:i,...oR({line:n.start.line,column:n.start.column,endLine:n.end.line,endColumn:n.end.column},r),severity:e}}function dQ(...t){return t.length===1?t[0]:typeof t[1]=="string"?{node:t[0],message:t[1],data:t[2],fix:t[3]}:{node:t[0],loc:t[1],message:t[2],data:t[3],fix:t[4]}}function gQ(t){t.node?cu(typeof t.node=="object","Node must be an object"):cu(t.loc,"Node must be provided when reporting error if location is not provided")}function yQ(t){return t.loc.start?t.loc:{start:t.loc,end:null}}function lR(t){return t?{range:[t.range[0],t.range[1]],text:t.text}:null}function uR(t){t&&(t.range&&typeof t.range[0]=="number"&&typeof t.range[1]=="number"||cu(!1,`Fix has invalid range: ${JSON.stringify(t,null,2)}`))}function xQ(t,e){return t.range[0]-e.range[0]||t.range[1]-e.range[1]}function EQ(t,e){for(let a of t)uR(a);if(t.length===0)return null;if(t.length===1)return lR(t[0]);t.sort(xQ);let r=e.text,s=t[0].range[0],n=t.at(-1).range[1],i="",o=Number.MIN_SAFE_INTEGER;for(let a of t)cu(a.range[0]>=o,"Fix objects must not be overlapped in a report."),a.range[0]>=0&&(i+=r.slice(Math.max(0,s,o),a.range[0])),i+=a.text,o=a.range[1];return i+=r.slice(Math.max(0,s,o),n),{range:[s,n],text:i}}function cR(t,e,r){if(typeof t.fix!="function")return null;let s=t.fix(r);return s&&Symbol.iterator in s?EQ(Array.from(s),e):(uR(s),lR(s))}function bQ(t,e,r,s){return!t.suggest||!Array.isArray(t.suggest)?[]:t.suggest.map(n=>{let i=n.desc||r[n.messageId];return{...n,desc:aR(i,n.data),fix:cR(n,e,s)}}).filter(({fix:n})=>n)}function vQ(t){let{language:e}=t,r=e.columnStart===1?0:1,s=e.lineStart===1?0:1,n={ruleId:t.ruleId,severity:t.severity,message:t.message,line:t.loc.start.line+s,column:t.loc.start.column+r};return t.messageId&&(n.messageId=t.messageId),t.loc.end&&(n.endLine=t.loc.end.line+s,n.endColumn=t.loc.end.column+r),t.fix&&(n.fix=t.fix),t.suggestions&&t.suggestions.length>0&&(n.suggestions=t.suggestions),n}function SQ(t,e){t&&Array.isArray(t)&&t.forEach(r=>{if(r.messageId){let{messageId:s}=r;if(!e)throw new TypeError(`context.report() called with a suggest option with a messageId '${s}', but no messages were present in the rule metadata.`);if(!e[s])throw new TypeError(`context.report() called with a suggest option with a messageId '${s}' which is not present in the 'messages' config: ${JSON.stringify(e,null,2)}`);if(r.desc)throw new TypeError("context.report() called with a suggest option that defines both a 'messageId' and an 'desc'. Please only pass one.")}else if(!r.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof r.fix!="function")throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${JSON.stringify(r,null,2)}`)})}function CQ(t,e){if(t.messageId){if(!e)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");let r=t.messageId;if(t.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!e||!Object.hasOwn(e,r))throw new TypeError(`context.report() called with a messageId of '${r}' which is not present in the 'messages' config: ${JSON.stringify(e,null,2)}`);return e[r]}if(t.message)return t.message;throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.")}var Ym=class{messages=[];#e;#t;#r;#n;#s;constructor({ruleMapper:e,sourceCode:r,language:s,disableFixes:n=!1}){this.#e=e,this.#t=r,this.#r=s,this.#n=n}addRuleMessage(e,r,...s){let n=dQ(...s),o=this.#e(e)?.meta?.messages;gQ(n);let a=CQ(n,o);SQ(n.suggest,o),!this.#n&&this.#s===void 0&&(this.#s=new fQ({sourceCode:this.#t}));let l=vQ({ruleId:e,severity:r,message:aR(a,n.data),messageId:n.messageId,loc:n.loc?yQ(n):this.#t.getLoc(n.node),fix:this.#n?null:cR(n,this.#t,this.#s),suggestions:this.#n?[]:bQ(n,this.#t,o,this.#s),language:this.#r});return this.messages.push(l),l}addError(e){let r=Qm(e,2,this.#r);return this.messages.push(r),r}addFatal(e){let r=Qm(e,2,this.#r);return r.fatal=!0,this.messages.push(r),r}addWarning(e){let r=Qm(e,1,this.#r);return this.messages.push(r),r}};pR.exports={FileReport:Ym,updateLocationInformation:oR}});var vR=B((qae,bR)=>{"use strict";var hu=Ti("node:path"),wQ=Lu(),AQ=Mn(),hR=ld(),kQ=Ja(),{SourceCode:TQ}=Gc(),DQ=_S(),{ConfigCommentParser:IQ}=$c(),PQ=LS(),{SourceCodeVisitor:FQ,getListenerRuleId:_Q,setListenerRuleId:BQ,attachRuleId:OQ}=MS(),Na=zS(),{FlatConfigArray:LQ}=FN(),{startTime:pu,endTime:fu}=Df(),{assertIsRuleSeverity:NQ}=ho(),{normalizeSeverityToString:mu,normalizeSeverityToNumber:RQ}=Hc(),{deepMergeArrays:xR}=Kc(),{activeFlags:jQ,inactiveFlags:mR,getInactivityReasonMessage:MQ}=BN(),ar=mn()("eslint:linter"),qQ=10,UQ=5,$Q=new IQ,{VFile:dR}=Mm(),{ParserService:VQ}=RN(),{FileContext:WQ}=MN(),{ProcessorService:zQ}=UN(),{containsDifferentProperty:GQ}=VN(),{Config:KQ}=il(),{WarningService:HQ}=zN(),{SourceCodeTraverser:JQ}=YN(),{FileReport:XQ,updateLocationInformation:gR}=fR();function ER(t){return Array.isArray(t)?t:[t]}function QQ(t,e,r,s,n,i,o){let a=t.rules?.[s],l=a?ER(a):["off"],u=mu(l[0]),c=mu(n[0]);if(!(u===c))return;let h=a?`is already configured to '${u}'`:"is not enabled so can't be turned off",f;if(l.length===1&&n.length===1||u==="off"?f=`Unused inline config ('${s}' ${h}).`:GQ(n.slice(1),l.slice(1))||(f=i.length===1?`Unused inline config ('${s}' ${h}).`:`Unused inline config ('${s}' ${h} with the same options).`),f){let d=RQ(o),g={message:f,loc:e};d===1?r.addWarning(g):d===2&&r.addError(g)}}function YQ({type:t,value:e,justification:r,node:s},n,i,o,a){let l=Object.keys($Q.parseListConfig(e)),u=l.length?l:[null],c=[],p={node:s,value:e,ruleIds:l};for(let h of u){let f=o.getLoc(s);if(h===null||n(h))if(t==="disable-next-line"){let{line:d,column:g}=gR(f.end,i);c.push({parentDirective:p,type:t,line:d,column:g,ruleId:h,justification:r})}else{let{line:d,column:g}=gR(f.start,i);c.push({parentDirective:p,type:t,line:d,column:g,ruleId:h,justification:r})}else a.addError({ruleId:h,loc:f})}return c}function ZQ(t,e,r,s){let n=[];if(t.getDisableDirectives){let{directives:i,problems:o}=t.getDisableDirectives();Array.isArray(o)&&o.forEach(a=>s.addError(a)),i.forEach(a=>{let l=YQ(a,e,r,t,s);n.push(...l)})}return n}function Zm(t){let e=t.split(hu.sep),r=e.lastIndexOf("<text>");return r===-1?t:e.slice(r).join(hu.sep)}function eY(t,e){let r=e.linterOptions||e,s=r.noInlineConfig===!0,n=t.allowInlineConfig===!1,i=e.configNameOfNoInlineConfig?` (${e.configNameOfNoInlineConfig})`:"",o=t.reportUnusedDisableDirectives;typeof o=="boolean"&&(o=o?"error":"off"),typeof o!="string"&&(typeof r.reportUnusedDisableDirectives=="boolean"?o=r.reportUnusedDisableDirectives?"warn":"off":o=r.reportUnusedDisableDirectives===void 0?"off":mu(r.reportUnusedDisableDirectives));let a=r.reportUnusedInlineConfigs===void 0?"off":mu(r.reportUnusedInlineConfigs),l=t.ruleFilter;return typeof l!="function"&&(l=()=>!0),{filename:Zm(t.filename||"<input>"),allowInlineConfig:!n,warnInlineConfig:s&&!n?`your config${i}`:null,reportUnusedDisableDirectives:o,reportUnusedInlineConfigs:a,disableFixes:!!t.disableFixes,stats:t.stats,ruleFilter:l}}function wi(t,e,r){let{type:s,key:n}=e;r.times||(r.times={passes:[{}]});let i=r.fixPasses;i>r.times.passes.length-1&&r.times.passes.push({}),n?(r.times.passes[i][s]??={},r.times.passes[i][s][n]??={total:0},r.times.passes[i][s][n].total+=t):(r.times.passes[i][s]??={total:0},r.times.passes[i][s].total+=t)}function tY(t,e){return Array.isArray(t)?xR(e,t.slice(1)):e??[]}function rY(t,e,r){let n=e.parserOptions.ecmaFeatures||{},i=e.ecmaVersion||UQ;return wQ.analyze(t,{ignoreEval:!0,nodejsScope:n.globalReturn,impliedStrict:n.impliedStrict,ecmaVersion:typeof i=="number"?i:6,sourceType:e.sourceType||"script",childVisitorKeys:r||AQ.KEYS,fallback:kQ.getKeys,jsx:n.jsx})}function yR(t,e){if(!t||typeof t!="object"||typeof t.create!="function")throw new TypeError(`Error while loading rule '${e.id}': Rule must be an object with a \`create\` method`);try{return t.create(e)}catch(r){throw r.message=`Error while loading rule '${e.id}': ${r.message}`,r}}function nY(t,e,r,s,n,i,o,a,l,u,c,p,h,f){let d=new FQ,g=new WQ({cwd:l,filename:o,physicalFilename:u||o,sourceCode:t,languageOptions:n,settings:i}),y=t.traverse();return Object.keys(e).forEach(S=>{let A=KQ.getRuleNumericSeverity(e[S]);if(A===0||c&&!c({ruleId:S,severity:A}))return;let E=r(S);if(!E){f.addError({ruleId:S});return}let k=g.extend({id:S,options:tY(e[S],a?E.meta?.defaultOptions:void 0),report(...j){let $=f.addRuleMessage(S,A,...j);if($.fix&&!(E.meta&&E.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if($.suggestions&&!(E.meta&&E.meta.hasSuggestions===!0))throw E.meta&&E.meta.docs&&typeof E.meta.docs.suggestion<"u"?new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`. `meta.docs.suggestion` is ignored by ESLint."):new Error("Rules with suggestions must set the `meta.hasSuggestions` property to `true`.")}}),T=Na.enabled||p?Na.time(S,yR,p)(E,k):yR(E,k),w=p?T.result:T;p&&wi(T.tdiff,{type:"rules",key:S},h);function R(j){return function(...M){try{let N=j(...M),b=p?N.result:N;return p&&wi(N.tdiff,{type:"rules",key:S},h),b}catch(N){throw OQ(N,S),N}}}if(typeof w>"u"||w===null)throw new Error(`The create() function for rule '${S}' did not return an object.`);Object.keys(w).forEach(j=>{let $=w[j],M=_Q($);if(!Na.enabled&&!p&&typeof $=="function"&&(M===void 0||M===S)){BQ($,S),d.add(j,$);return}let N=Na.enabled||p?Na.time(S,$,p):$;d.add(j,R(N))})}),JQ.getInstance(s).traverseSync(t,d,{steps:y}),f}function sY(t){if(typeof t=="object"){let{hasBOM:e,text:r}=t;return(e?"\uFEFF":"")+r}return String(t)}function iY(t){if(t)return t;if(typeof process=="object")return process.cwd()}var xr=new WeakMap,ed=class{constructor({cwd:e,configType:r="flat",flags:s=[],warningService:n=new HQ}={}){let i=[];if(r!=="flat")throw new TypeError(`The 'configType' option value must be 'flat'. The value '${r}' is not supported.`);s.forEach(o=>{if(mR.has(o)){let a=mR.get(o),l=MQ(a),u=`The flag '${o}' is inactive: ${l}`;if(typeof a.replacedBy>"u")throw new Error(u);typeof a.replacedBy=="string"&&i.push(a.replacedBy),n.emitInactiveFlagWarning(o,u);return}if(!jQ.has(o))throw new Error(`Unknown flag '${o}'.`);i.push(o)}),xr.set(this,{cwd:iY(e),flags:i,lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],warningService:n}),this.version=hR.version}static get version(){return hR.version}hasFlag(e){return xr.get(this).flags.includes(e)}verify(e,r,s){ar("Verify");let{cwd:n}=xr.get(this),i=typeof s=="string"?{filename:s}:s||{},o=r??{},a=o;return(!Array.isArray(o)||typeof o.getConfig!="function")&&(a=new LQ(o,{basePath:n}),a.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(e,a,i,!0))}_verifyWithFlatConfigArrayAndProcessor(e,r,s,n){let i=xr.get(this),o=s.filename||"<input>",a=Zm(o),l=s.physicalFilename||a,u=sY(e),c=new dR(a,u,{physicalPath:l}),p=s.preprocess||(A=>[A]),h=s.postprocess||(A=>A.flat()),f=new zQ,d=f.preprocessSync(c,{processor:{preprocess:p,postprocess:h}});if(!d.ok)return d.errors;let g=s.filterCodeBlock||(A=>A.endsWith(".js")),y=hu.extname(o),{files:v}=d,S=v.map(A=>(ar("A code block was found: %o",A.path||"(unnamed)"),typeof A=="string"?this._verifyWithFlatConfigArrayAndWithoutProcessors(A,r,s):g(A.path,A.body)?n&&(u!==A.rawBody||hu.extname(A.path)!==y)?(ar("Resolving configuration again because the file content or extension was changed."),this._verifyWithFlatConfigArray(A.rawBody,n,{...s,filename:A.path,physicalFilename:A.physicalPath})):(i.lastSourceCode=null,this.#e(A,r,{...s,filename:A.path,physicalFilename:A.physicalPath})):(ar("This code block was skipped."),[])));return f.postprocessSync(c,S,{processor:{preprocess:p,postprocess:h}})}#e(e,r,s){let n=xr.get(this),i=r||{},{settings:o={},languageOptions:a}=i,l=eY(s,i);if(n.lastSourceCode)n.lastSourceCode.scopeManager===null&&(n.lastSourceCode=new TQ({text:n.lastSourceCode.text,ast:n.lastSourceCode.ast,hasBOM:n.lastSourceCode.hasBOM,parserServices:n.lastSourceCode.parserServices,visitorKeys:n.lastSourceCode.visitorKeys,scopeManager:rY(n.lastSourceCode.ast,a)}));else{let d;l.stats&&(d=pu());let y=new VQ().parseSync(e,i);if(l.stats){let v=fu(d);wi(v,{type:"parse"},n)}if(!y.ok)return y.errors;n.lastSourceCode=y.sourceCode}let u=n.lastSourceCode,c=new XQ({ruleMapper:d=>i.getRuleDefinition(d),language:i.language,sourceCode:u,disableFixes:l.disableFixes});u.applyLanguageOptions?.(a);let p={rules:{}};if(l.allowInlineConfig)if(l.warnInlineConfig)u.getInlineConfigNodes&&u.getInlineConfigNodes().forEach(d=>{let g=u.getLoc(d),y=u.getRange(d);c.addWarning({message:`'${u.text.slice(y[0],y[1])}' has no effect because you have 'noInlineConfig' setting in ${l.warnInlineConfig}.`,loc:g})});else{let d=u.applyInlineConfig?.();if(d){d.problems.forEach(g=>{c.addFatal(g)});for(let{config:g,loc:y}of d.configs)Object.keys(g.rules).forEach(v=>{let S=i.getRuleDefinition(v),A=g.rules[v];if(!S){c.addError({ruleId:v,loc:y});return}if(Object.hasOwn(p.rules,v)){c.addError({message:`Rule "${v}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:y});return}try{let E=ER(A),k=E;NQ(v,k[0]);let T=!0;if(k.length===1&&i.rules&&Object.hasOwn(i.rules,v))k=[k[0],...i.rules[v].slice(1)],i.rules[v][0]>0&&(T=!1);else{let w=k.slice(1),R=xR(S.meta?.defaultOptions,w);R.length&&(k=[k[0],...R])}l.reportUnusedInlineConfigs!=="off"&&QQ(i,y,c,v,k,E,l.reportUnusedInlineConfigs),T&&i.validateRulesConfig({[v]:k}),p.rules[v]=k}catch(E){if(E.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw E;if(E.messageTemplate==="rule-unsupported-language"){c.addError({ruleId:v,message:`Inline configuration for rule "${v}" is invalid:
107
+ Rule does not support the language "${E.messageData.language}". Use a config block with "files" to apply the rule only to supported files, or disable it.
108
+ `,loc:y});return}let k=E.message.slice(E.message.startsWith('Key "rules":')?E.message.indexOf(":",12)+1:E.message.indexOf(":")+1).trim();E.messageTemplate&&(k+=` You passed "${A}".`),c.addError({ruleId:v,message:`Inline configuration for rule "${v}" is invalid:
109
+ ${k}
110
+ `,loc:y})}})}}let h=l.allowInlineConfig&&!l.warnInlineConfig?ZQ(u,d=>i.getRuleDefinition(d),i.language,c):[],f=Object.assign({},i.rules,p.rules);u.finalize?.();try{nY(u,f,d=>i.getRuleDefinition(d),i.language,a,o,l.filename,!1,n.cwd,s.physicalFilename,l.ruleFilter,l.stats,n,c)}catch(d){if(d.message+=`
111
+ Occurred while linting ${l.filename}`,ar("An error occurred while traversing"),ar("Filename:",l.filename),d.currentNode){let{line:g}=u.getLoc(d.currentNode).start;ar("Line:",g),d.message+=`:${g}`}throw ar("Parser Options:",a.parserOptions),ar("Settings:",o),d.ruleId&&(d.message+=`
112
+ Rule: "${d.ruleId}"`),d}return DQ({language:i.language,sourceCode:u,directives:h,disableFixes:l.disableFixes,problems:c.messages.sort((d,g)=>d.line-g.line||d.column-g.column),reportUnusedDisableDirectives:l.reportUnusedDisableDirectives,ruleFilter:l.ruleFilter,configuredRules:f})}_verifyWithFlatConfigArrayAndWithoutProcessors(e,r,s){let n=xr.get(this),i=Zm(s.filename||"<input>"),o;typeof e=="string"?(n.lastSourceCode=null,o=e):(n.lastSourceCode=e,o=e.text);let a=new dR(i,o,{physicalPath:s.physicalFilename});return this.#e(a,r,s)}_verifyWithFlatConfigArray(e,r,s,n=!1){ar("With flat config: %s",s.filename);let i=s.filename||"__placeholder__.js";xr.get(this).lastConfigArray=r;let o=r.getConfig(i);if(!o)return[{ruleId:null,severity:1,message:`No matching configuration found for ${i}.`,line:0,column:0}];if(o.processor){ar("Apply the processor: %o",o.processor);let{preprocess:a,postprocess:l,supportsAutofix:u}=o.processor,c=s.disableFixes||!u;return this._verifyWithFlatConfigArrayAndProcessor(e,o,{...s,filename:i,disableFixes:c,postprocess:l,preprocess:a},r)}return n&&(s.preprocess||s.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(e,o,s):this._verifyWithFlatConfigArrayAndWithoutProcessors(e,o,s)}_distinguishSuppressedMessages(e){let r=[],s=[],n=xr.get(this);for(let i of e)i.suppressions?s.push(i):r.push(i);return n.lastSuppressedMessages=s,r}getSourceCode(){return xr.get(this).lastSourceCode}getTimes(){return xr.get(this).times??{passes:[]}}getFixPassCount(){return xr.get(this).fixPasses??0}getSuppressedMessages(){return xr.get(this).lastSuppressedMessages}verifyAndFix(e,r,s){let n,i,o=!1,a=0,l=e,u,c,p=typeof s=="string"?{filename:s}:s||{},h=p.filename||`${e.slice(0,10)}...`,f=typeof p.fix<"u"?p.fix:!0,d=p?.stats,g=xr.get(this);d&&(delete g.times,g.fixPasses=0);do{a++;let y;d&&(y=pu()),ar("Linting code for %s (pass %d)",h,a),n=this.verify(l,r,p),ar("Generating fixed text for %s (pass %d)",h,a);let v;if(d&&(v=pu()),i=PQ.applyFixes(l,n,f),d)if(i.fixed){let S=fu(v);wi(S,{type:"fix"},g),g.fixPasses++}else wi(0,{type:"fix"},g);if(n.length===1&&n[0].fatal)break;if(o=o||i.fixed,u=c,c=l,l=i.output,d){y=fu(y);let S=g.times.passes.length-1;g.times.passes[S].total=y}if(a>1&&l.length===u.length&&l===u){ar("Circular fixes detected after pass %d. Exiting fix loop.",a),g.warningService.emitCircularFixesWarning(p.filename??"text");break}}while(i.fixed&&a<qQ);if(i.fixed){let y;d&&(y=pu()),i.messages=this.verify(l,r,p),d&&(wi(0,{type:"fix"},g),g.times.passes.at(-1).total=fu(y))}return i.fixed=o,i.output=l,i}};bR.exports={Linter:ed}});var oY=B((Uae,SR)=>{"use strict";var{Linter:aY}=vR();SR.exports={Linter:aY}});function Vae(t,e,r,s){let n=new Set;for(;;)try{return t.verify(e,s(n),r)}catch(i){let o=i.ruleId;if(typeof o!="string"||n.has(o))throw i;n.add(o)}}function Wae(t){let e=rd(t);return(r,s)=>Math.min(e[r-1]+s-1,t.length)}export{Eu as a,id as b,Lu as c,Mn as d,mn as e,Ht as f,Ux as g,ib as h,iC as i,pl as j,GN as k,oY as l,Vae as m,Wae as n};
113
+ /*! Bundled license information:
114
+
115
+ uri-js/dist/es5/uri.all.js:
116
+ (** @license URI.js v4.4.1 (c) 2011 Gary Court. License: http://github.com/garycourt/uri-js *)
117
+
118
+ natural-compare/index.js:
119
+ (*
120
+ * @version 1.4.0
121
+ * @date 2015-10-26
122
+ * @stability 3 - Stable
123
+ * @author Lauri Rooden (https://github.com/litejs/natural-compare-lite)
124
+ * @license MIT License
125
+ *)
126
+ */