vzcode 2.27.0 → 2.29.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.
- package/dist/assets/bindings_wasm_bg--2fP_mkJ.wasm +0 -0
- package/dist/assets/buildWorker-BV4WiKg8.js +687 -0
- package/dist/assets/index-CCmGeE_1.css +1 -0
- package/dist/assets/index-JcHUw7hN.js +403 -0
- package/dist/assets/worker-AbbeoMbH.js +340 -0
- package/dist/assets/worker-B71kfwKL.js +125 -0
- package/dist/assets/{worker-k7HZ3t-V.js → worker-CoJaqtpi.js} +12 -12
- package/dist/index.html +2 -2
- package/dist/llm-streaming-server/chatOperations.js +38 -0
- package/dist/llm-streaming-server/llmStreaming.js +0 -1
- package/dist/server/aiChatHandler/index.js +44 -8
- package/package.json +38 -38
- package/src/client/VZCodeContext/types.ts +15 -3
- package/src/client/VZCodeContext/useVZCodeState.ts +69 -2
- package/src/client/VZSidebar/aiCopyPaste.ts +18 -21
- package/src/llm-streaming-server/chatOperations.ts +48 -0
- package/src/llm-streaming-server/llmStreaming.ts +3 -1
- package/src/server/aiChatHandler/index.ts +77 -11
- package/src/types.ts +3 -0
- package/dist/assets/bindings_wasm_bg-9w8E-TmY.wasm +0 -0
- package/dist/assets/buildWorker-DylWm2VX.js +0 -687
- package/dist/assets/index-CHCIQbYC.js +0 -403
- package/dist/assets/index-Dyt9tpmu.css +0 -1
- package/dist/assets/worker-BMR_X2Ea.js +0 -346
- package/dist/assets/worker-b9bkZkXK.js +0 -116
|
@@ -0,0 +1,125 @@
|
|
|
1
|
+
(function(){"use strict";if(!Ln)var Ln=globalThis||window;function Ap(a){return a&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var Xt=typeof Ln<"u"?Ln:typeof self<"u"?self:typeof window<"u"?window:{};function Tp(){throw new Error("setTimeout has not been defined")}function kp(){throw new Error("clearTimeout has not been defined")}var yr=Tp,vr=kp;typeof Xt.setTimeout=="function"&&(yr=setTimeout),typeof Xt.clearTimeout=="function"&&(vr=clearTimeout);function Dp(a){if(yr===setTimeout)return setTimeout(a,0);if((yr===Tp||!yr)&&setTimeout)return yr=setTimeout,setTimeout(a,0);try{return yr(a,0)}catch{try{return yr.call(null,a,0)}catch{return yr.call(this,a,0)}}}function S0(a){if(vr===clearTimeout)return clearTimeout(a);if((vr===kp||!vr)&&clearTimeout)return vr=clearTimeout,clearTimeout(a);try{return vr(a)}catch{try{return vr.call(null,a)}catch{return vr.call(this,a)}}}var mr=[],_r=!1,Cr,cn=-1;function E0(){!_r||!Cr||(_r=!1,Cr.length?mr=Cr.concat(mr):cn=-1,mr.length&&Pp())}function Pp(){if(!_r){var a=Dp(E0);_r=!0;for(var e=mr.length;e;){for(Cr=mr,mr=[];++cn<e;)Cr&&Cr[cn].run();cn=-1,e=mr.length}Cr=null,_r=!1,S0(a)}}function b0(a){var e=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];mr.push(new Ip(a,e)),mr.length===1&&!_r&&Dp(Pp)}function Ip(a,e){this.fun=a,this.array=e}Ip.prototype.run=function(){this.fun.apply(null,this.array)};var C0="browser",x0="browser",w0=!0,A0={},T0=[],k0="",D0={},P0={},I0={};function xr(){}var F0=xr,R0=xr,_0=xr,B0=xr,L0=xr,O0=xr,N0=xr;function M0(a){throw new Error("process.binding is not supported")}function j0(){return"/"}function U0(a){throw new Error("process.chdir is not supported")}function q0(){return 0}var Br=Xt.performance||{},V0=Br.now||Br.mozNow||Br.msNow||Br.oNow||Br.webkitNow||function(){return new Date().getTime()};function $0(a){var e=V0.call(Br)*.001,n=Math.floor(e),o=Math.floor(e%1*1e9);return a&&(n=n-a[0],o=o-a[1],o<0&&(n--,o+=1e9)),[n,o]}var G0=new Date;function W0(){var a=new Date,e=a-G0;return e/1e3}var Ft={nextTick:b0,title:C0,browser:w0,env:A0,argv:T0,version:k0,versions:D0,on:F0,addListener:R0,once:_0,off:B0,removeListener:L0,removeAllListeners:O0,emit:N0,binding:M0,cwd:j0,chdir:U0,umask:q0,hrtime:$0,platform:x0,release:P0,config:I0,uptime:W0};function Fp(a,e){for(var n=0,o=a.length-1;o>=0;o--){var t=a[o];t==="."?a.splice(o,1):t===".."?(a.splice(o,1),n++):n&&(a.splice(o,1),n--)}if(e)for(;n--;n)a.unshift("..");return a}var z0=/^(\/?|)([\s\S]*?)((?:\.{1,2}|[^\/]+?|)(\.[^.\/]*|))(?:[\/]*)$/,On=function(a){return z0.exec(a).slice(1)};function fn(){for(var a="",e=!1,n=arguments.length-1;n>=-1&&!e;n--){var o=n>=0?arguments[n]:"/";if(typeof o!="string")throw new TypeError("Arguments to path.resolve must be strings");if(!o)continue;a=o+"/"+a,e=o.charAt(0)==="/"}return a=Fp(jn(a.split("/"),function(t){return!!t}),!e).join("/"),(e?"/":"")+a||"."}function Nn(a){var e=Mn(a),n=K0(a,-1)==="/";return a=Fp(jn(a.split("/"),function(o){return!!o}),!e).join("/"),!a&&!e&&(a="."),a&&n&&(a+="/"),(e?"/":"")+a}function Mn(a){return a.charAt(0)==="/"}function Rp(){var a=Array.prototype.slice.call(arguments,0);return Nn(jn(a,function(e,n){if(typeof e!="string")throw new TypeError("Arguments to path.join must be strings");return e}).join("/"))}function _p(a,e){a=fn(a).substr(1),e=fn(e).substr(1);function n(m){for(var i=0;i<m.length&&m[i]==="";i++);for(var c=m.length-1;c>=0&&m[c]==="";c--);return i>c?[]:m.slice(i,c-i+1)}for(var o=n(a.split("/")),t=n(e.split("/")),l=Math.min(o.length,t.length),f=l,u=0;u<l;u++)if(o[u]!==t[u]){f=u;break}for(var r=[],u=f;u<o.length;u++)r.push("..");return r=r.concat(t.slice(f)),r.join("/")}var Bp="/",Lp=":";function Op(a){var e=On(a),n=e[0],o=e[1];return!n&&!o?".":(o&&(o=o.substr(0,o.length-1)),n+o)}function Np(a,e){var n=On(a)[2];return e&&n.substr(-1*e.length)===e&&(n=n.substr(0,n.length-e.length)),n}function Mp(a){return On(a)[3]}var H0={extname:Mp,basename:Np,dirname:Op,sep:Bp,delimiter:Lp,relative:_p,join:Rp,isAbsolute:Mn,normalize:Nn,resolve:fn};function jn(a,e){if(a.filter)return a.filter(e);for(var n=[],o=0;o<a.length;o++)e(a[o],o,a)&&n.push(a[o]);return n}var K0="ab".substr(-1)==="b"?function(a,e,n){return a.substr(e,n)}:function(a,e,n){return e<0&&(e=a.length+e),a.substr(e,n)},X0=Object.freeze({__proto__:null,basename:Np,default:H0,delimiter:Lp,dirname:Op,extname:Mp,isAbsolute:Mn,join:Rp,normalize:Nn,relative:_p,resolve:fn,sep:Bp}),pn=Ap(X0),Jt={},Un={},jp;function Up(){return jp||(jp=1,(function(a){(function e(n){var o,t,l,f,u,r;function m(C){var S={},w,x;for(w in C)C.hasOwnProperty(w)&&(x=C[w],typeof x=="object"&&x!==null?S[w]=m(x):S[w]=x);return S}function i(C,S){var w,x,A,k;for(x=C.length,A=0;x;)w=x>>>1,k=A+w,S(C[k])?x=w:(A=k+1,x-=w+1);return A}o={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"},l={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"]},f={},u={},r={},t={Break:f,Skip:u,Remove:r};function c(C,S){this.parent=C,this.key=S}c.prototype.replace=function(S){this.parent[this.key]=S},c.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)};function d(C,S,w,x){this.node=C,this.path=S,this.wrap=w,this.ref=x}function s(){}s.prototype.path=function(){var S,w,x,A,k,R;function I(B,F){if(Array.isArray(F))for(x=0,A=F.length;x<A;++x)B.push(F[x]);else B.push(F)}if(!this.__current.path)return null;for(k=[],S=2,w=this.__leavelist.length;S<w;++S)R=this.__leavelist[S],I(k,R.path);return I(k,this.__current.path),k},s.prototype.type=function(){var C=this.current();return C.type||this.__current.wrap},s.prototype.parents=function(){var S,w,x;for(x=[],S=1,w=this.__leavelist.length;S<w;++S)x.push(this.__leavelist[S].node);return x},s.prototype.current=function(){return this.__current.node},s.prototype.__execute=function(S,w){var x,A;return A=void 0,x=this.__current,this.__current=w,this.__state=null,S&&(A=S.call(this,w.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=x,A},s.prototype.notify=function(S){this.__state=S},s.prototype.skip=function(){this.notify(u)},s.prototype.break=function(){this.notify(f)},s.prototype.remove=function(){this.notify(r)},s.prototype.__initialize=function(C,S){this.visitor=S,this.root=C,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,S.fallback==="iteration"?this.__fallback=Object.keys:typeof S.fallback=="function"&&(this.__fallback=S.fallback),this.__keys=l,S.keys&&(this.__keys=Object.assign(Object.create(this.__keys),S.keys))};function p(C){return C==null?!1:typeof C=="object"&&typeof C.type=="string"}function h(C,S){return(C===o.ObjectExpression||C===o.ObjectPattern)&&S==="properties"}function g(C,S){for(var w=C.length-1;w>=0;--w)if(C[w].node===S)return!0;return!1}s.prototype.traverse=function(S,w){var x,A,k,R,I,B,F,O,$,N,_,X;for(this.__initialize(S,w),X={},x=this.__worklist,A=this.__leavelist,x.push(new d(S,null,null,null)),A.push(new d(null,null,null,null));x.length;){if(k=x.pop(),k===X){if(k=A.pop(),B=this.__execute(w.leave,k),this.__state===f||B===f)return;continue}if(k.node){if(B=this.__execute(w.enter,k),this.__state===f||B===f)return;if(x.push(X),A.push(k),this.__state===u||B===u)continue;if(R=k.node,I=R.type||k.wrap,N=this.__keys[I],!N)if(this.__fallback)N=this.__fallback(R);else throw new Error("Unknown node type "+I+".");for(O=N.length;(O-=1)>=0;)if(F=N[O],_=R[F],!!_){if(Array.isArray(_)){for($=_.length;($-=1)>=0;)if(_[$]&&!g(A,_[$])){if(h(I,N[O]))k=new d(_[$],[F,$],"Property",null);else if(p(_[$]))k=new d(_[$],[F,$],null,null);else continue;x.push(k)}}else if(p(_)){if(g(A,_))continue;x.push(new d(_,F,null,null))}}}}},s.prototype.replace=function(S,w){var x,A,k,R,I,B,F,O,$,N,_,X,L;function K(J){var ge,ae,ke,Z;if(J.ref.remove()){for(ae=J.ref.key,Z=J.ref.parent,ge=x.length;ge--;)if(ke=x[ge],ke.ref&&ke.ref.parent===Z){if(ke.ref.key<ae)break;--ke.ref.key}}}for(this.__initialize(S,w),_={},x=this.__worklist,A=this.__leavelist,X={root:S},B=new d(S,null,null,new c(X,"root")),x.push(B),A.push(B);x.length;){if(B=x.pop(),B===_){if(B=A.pop(),I=this.__execute(w.leave,B),I!==void 0&&I!==f&&I!==u&&I!==r&&B.ref.replace(I),(this.__state===r||I===r)&&K(B),this.__state===f||I===f)return X.root;continue}if(I=this.__execute(w.enter,B),I!==void 0&&I!==f&&I!==u&&I!==r&&(B.ref.replace(I),B.node=I),(this.__state===r||I===r)&&(K(B),B.node=null),this.__state===f||I===f)return X.root;if(k=B.node,!!k&&(x.push(_),A.push(B),!(this.__state===u||I===u))){if(R=k.type||B.wrap,$=this.__keys[R],!$)if(this.__fallback)$=this.__fallback(k);else throw new Error("Unknown node type "+R+".");for(F=$.length;(F-=1)>=0;)if(L=$[F],N=k[L],!!N)if(Array.isArray(N)){for(O=N.length;(O-=1)>=0;)if(N[O]){if(h(R,$[F]))B=new d(N[O],[L,O],"Property",new c(N,O));else if(p(N[O]))B=new d(N[O],[L,O],null,new c(N,O));else continue;x.push(B)}}else p(N)&&x.push(new d(N,L,null,new c(k,L)))}}return X.root};function v(C,S){var w=new s;return w.traverse(C,S)}function E(C,S){var w=new s;return w.replace(C,S)}function b(C,S){var w;return w=i(S,function(A){return A.range[0]>C.range[0]}),C.extendedRange=[C.range[0],C.range[1]],w!==S.length&&(C.extendedRange[1]=S[w].range[0]),w-=1,w>=0&&(C.extendedRange[0]=S[w].range[1]),C}function T(C,S,w){var x=[],A,k,R,I;if(!C.range)throw new Error("attachComments needs range information");if(!w.length){if(S.length){for(R=0,k=S.length;R<k;R+=1)A=m(S[R]),A.extendedRange=[0,C.range[0]],x.push(A);C.leadingComments=x}return C}for(R=0,k=S.length;R<k;R+=1)x.push(b(m(S[R]),w));return I=0,v(C,{enter:function(B){for(var F;I<x.length&&(F=x[I],!(F.extendedRange[1]>B.range[0]));)F.extendedRange[1]===B.range[0]?(B.leadingComments||(B.leadingComments=[]),B.leadingComments.push(F),x.splice(I,1)):I+=1;if(I===x.length)return t.Break;if(x[I].extendedRange[0]>B.range[1])return t.Skip}}),I=0,v(C,{leave:function(B){for(var F;I<x.length&&(F=x[I],!(B.range[1]<F.extendedRange[0]));)B.range[1]===F.extendedRange[0]?(B.trailingComments||(B.trailingComments=[]),B.trailingComments.push(F),x.splice(I,1)):I+=1;if(I===x.length)return t.Break;if(x[I].extendedRange[0]>B.range[1])return t.Skip}}),C}return n.Syntax=o,n.traverse=v,n.replace=E,n.attachComments=T,n.VisitorKeys=l,n.VisitorOption=t,n.Controller=s,n.cloneEnvironment=function(){return e({})},n})(a)})(Un)),Un}var Vr={},J0="4.3.0",Y0={version:J0},qp;function Q0(){return qp||(qp=1,(function(){var a=Up();function e(t){return t==null?!1:typeof t=="object"&&typeof t.type=="string"}function n(t,l){return(t===a.Syntax.ObjectExpression||t===a.Syntax.ObjectPattern)&&l==="properties"}function o(t,l){l=l||{},this.__visitor=t||this,this.__childVisitorKeys=l.childVisitorKeys?Object.assign({},a.VisitorKeys,l.childVisitorKeys):a.VisitorKeys,l.fallback==="iteration"?this.__fallback=Object.keys:typeof l.fallback=="function"&&(this.__fallback=l.fallback)}o.prototype.visitChildren=function(t){var l,f,u,r,m,i,c;if(t!=null){if(l=t.type||a.Syntax.Property,f=this.__childVisitorKeys[l],!f)if(this.__fallback)f=this.__fallback(t);else throw new Error("Unknown node type "+l+".");for(u=0,r=f.length;u<r;++u)if(c=t[f[u]],c)if(Array.isArray(c))for(m=0,i=c.length;m<i;++m)c[m]&&(e(c[m])||n(l,f[u]))&&this.visit(c[m]);else e(c)&&this.visit(c)}},o.prototype.visit=function(t){var l;if(t!=null){if(l=t.type||a.Syntax.Property,this.__visitor[l]){this.__visitor[l].call(this,t);return}this.visitChildren(t)}},Vr.version=Y0.version,Vr.Visitor=o,Vr.visit=function(t,l,f){var u=new o(l,f);u.visit(t)}})()),Vr}var Vp;function qn(){if(Vp)return Jt;Vp=1,Object.defineProperty(Jt,"__esModule",{value:!0});var a=Up(),e=Q0();function n(Z){return Z&&typeof Z=="object"&&"default"in Z?Z:{default:Z}}var o=n(a),t=n(e);function l(Z,P="Assertion failed."){if(!Z)throw new Error(P)}const f=1,u=2,r=f|u;class m{constructor(P,H,fe,ce,ie,he,Ee){this.identifier=P,this.from=H,this.tainted=!1,this.resolved=null,this.flag=fe,this.isWrite()&&(this.writeExpr=ce,this.partial=he,this.init=Ee),this.__maybeImplicitGlobal=ie}isStatic(){return!this.tainted&&this.resolved&&this.resolved.scope.isStatic()}isWrite(){return!!(this.flag&m.WRITE)}isRead(){return!!(this.flag&m.READ)}isReadOnly(){return this.flag===m.READ}isWriteOnly(){return this.flag===m.WRITE}isReadWrite(){return this.flag===m.RW}}m.READ=f,m.WRITE=u,m.RW=r;class i{constructor(P,H){this.name=P,this.identifiers=[],this.references=[],this.defs=[],this.tainted=!1,this.stack=!0,this.scope=H}}i.CatchClause="CatchClause",i.Parameter="Parameter",i.FunctionName="FunctionName",i.ClassName="ClassName",i.Variable="Variable",i.ImportBinding="ImportBinding",i.ImplicitGlobalVariable="ImplicitGlobalVariable";class c{constructor(P,H,fe,ce,ie,he){this.type=P,this.name=H,this.node=fe,this.parent=ce,this.index=ie,this.kind=he}}class d extends c{constructor(P,H,fe,ce){super(i.Parameter,P,H,null,fe,null),this.rest=ce}}const{Syntax:s}=o.default;function p(Z,P,H){let fe;if(Z.upper&&Z.upper.isStrict||H||Z.type==="class"||Z.type==="module")return!0;if(Z.type==="block"||Z.type==="switch")return!1;if(Z.type==="function"){if(P.type===s.ArrowFunctionExpression&&P.body.type!==s.BlockStatement||(P.type===s.Program?fe=P:fe=P.body,!fe))return!1}else if(Z.type==="global")fe=P;else return!1;for(let ce=0,ie=fe.body.length;ce<ie;++ce){const he=fe.body[ce];if(typeof he.directive!="string")break;if(he.directive==="use strict")return!0}return!1}function h(Z,P){Z.scopes.push(P);const H=Z.__nodeToScope.get(P.block);H?H.push(P):Z.__nodeToScope.set(P.block,[P])}function g(Z){return Z.type===i.ClassName||Z.type===i.Variable&&Z.parent.kind!=="var"}class v{constructor(P,H,fe,ce,ie){this.type=H,this.set=new Map,this.taints=new Map,this.dynamic=this.type==="global"||this.type==="with",this.block=ce,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:fe.variableScope,this.functionExpressionScope=!1,this.directCallToEvalScope=!1,this.thisFound=!1,this.__left=[],this.upper=fe,this.isStrict=P.isStrictModeSupported()?p(this,ce,ie):!1,this.childScopes=[],this.upper&&this.upper.childScopes.push(this),this.__declaredVariables=P.__declaredVariables,h(P,this)}__shouldStaticallyClose(P){return!this.dynamic||P.__isOptimistic()}__shouldStaticallyCloseForGlobal(P){const H=P.identifier.name;if(!this.set.has(H))return!1;const ce=this.set.get(H).defs;return ce.length>0&&ce.every(g)}__staticCloseRef(P){this.__resolve(P)||this.__delegateToUpperScope(P)}__dynamicCloseRef(P){let H=this;do H.through.push(P),H=H.upper;while(H)}__globalCloseRef(P){this.__shouldStaticallyCloseForGlobal(P)?this.__staticCloseRef(P):this.__dynamicCloseRef(P)}__close(P){let H;this.__shouldStaticallyClose(P)?H=this.__staticCloseRef:this.type!=="global"?H=this.__dynamicCloseRef:H=this.__globalCloseRef;for(let fe=0,ce=this.__left.length;fe<ce;++fe){const ie=this.__left[fe];H.call(this,ie)}return this.__left=null,this.upper}__isValidResolution(P,H){return!0}__resolve(P){const H=P.identifier.name;if(!this.set.has(H))return!1;const fe=this.set.get(H);return this.__isValidResolution(P,fe)?(fe.references.push(P),fe.stack=fe.stack&&P.from.variableScope===this.variableScope,P.tainted&&(fe.tainted=!0,this.taints.set(fe.name,!0)),P.resolved=fe,!0):!1}__delegateToUpperScope(P){this.upper&&this.upper.__left.push(P),this.through.push(P)}__addDeclaredVariablesOfNode(P,H){if(H==null)return;let fe=this.__declaredVariables.get(H);fe==null&&(fe=[],this.__declaredVariables.set(H,fe)),fe.includes(P)||fe.push(P)}__defineGeneric(P,H,fe,ce,ie){let he;he=H.get(P),he||(he=new i(P,this),H.set(P,he),fe.push(he)),ie&&(he.defs.push(ie),this.__addDeclaredVariablesOfNode(he,ie.node),this.__addDeclaredVariablesOfNode(he,ie.parent)),ce&&he.identifiers.push(ce)}__define(P,H){P&&P.type===s.Identifier&&this.__defineGeneric(P.name,this.set,this.variables,P,H)}__referencing(P,H,fe,ce,ie,he){if(!P||P.type!==s.Identifier&&P.type!=="JSXIdentifier"||P.name==="super")return;const Ee=new m(P,this,H||m.READ,fe,ce,!!ie,!!he);this.references.push(Ee),this.__left.push(Ee)}__detectEval(){let P=this;this.directCallToEvalScope=!0;do P.dynamic=!0,P=P.upper;while(P)}__detectThis(){this.thisFound=!0}__isClosed(){return this.__left===null}resolve(P){let H,fe,ce;for(l(this.__isClosed(),"Scope should be closed."),l(P.type===s.Identifier,"Target should be identifier."),fe=0,ce=this.references.length;fe<ce;++fe)if(H=this.references[fe],H.identifier===P)return H;return null}isStatic(){return!this.dynamic}isArgumentsMaterialized(){return!0}isThisMaterialized(){return!0}isUsedName(P){if(this.set.has(P))return!0;for(let H=0,fe=this.through.length;H<fe;++H)if(this.through[H].identifier.name===P)return!0;return!1}}class E extends v{constructor(P,H){super(P,"global",null,H,!1),this.implicit={set:new Map,variables:[],left:[]}}__close(P){const H=[];for(let fe=0,ce=this.__left.length;fe<ce;++fe){const ie=this.__left[fe];ie.__maybeImplicitGlobal&&!this.set.has(ie.identifier.name)&&H.push(ie.__maybeImplicitGlobal)}for(let fe=0,ce=H.length;fe<ce;++fe){const ie=H[fe];this.__defineImplicit(ie.pattern,new c(i.ImplicitGlobalVariable,ie.pattern,ie.node,null,null,null))}return this.implicit.left=this.__left,super.__close(P)}__defineImplicit(P,H){P&&P.type===s.Identifier&&this.__defineGeneric(P.name,this.implicit.set,this.implicit.variables,P,H)}}class b extends v{constructor(P,H,fe){super(P,"module",H,fe,!1)}}class T extends v{constructor(P,H,fe){super(P,"function-expression-name",H,fe,!1),this.__define(fe.id,new c(i.FunctionName,fe.id,fe,null,null,null)),this.functionExpressionScope=!0}}class C extends v{constructor(P,H,fe){super(P,"catch",H,fe,!1)}}class S extends v{constructor(P,H,fe){super(P,"with",H,fe,!1)}__close(P){if(this.__shouldStaticallyClose(P))return super.__close(P);for(let H=0,fe=this.__left.length;H<fe;++H){const ce=this.__left[H];ce.tainted=!0,this.__delegateToUpperScope(ce)}return this.__left=null,this.upper}}class w extends v{constructor(P,H,fe){super(P,"block",H,fe,!1)}}class x extends v{constructor(P,H,fe){super(P,"switch",H,fe,!1)}}class A extends v{constructor(P,H,fe,ce){super(P,"function",H,fe,ce),this.block.type!==s.ArrowFunctionExpression&&this.__defineArguments()}isArgumentsMaterialized(){if(this.block.type===s.ArrowFunctionExpression)return!1;if(!this.isStatic())return!0;const P=this.set.get("arguments");return l(P,"Always have arguments variable."),P.tainted||P.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(P,H){if(this.block.type==="Program")return!0;const fe=this.block.body.range[0];return!(H.scope===this&&P.identifier.range[0]<fe&&H.defs.every(ce=>ce.name.range[0]>=fe))}}class k extends v{constructor(P,H,fe){super(P,"for",H,fe,!1)}}class R extends v{constructor(P,H,fe){super(P,"class",H,fe,!1)}}class I extends v{constructor(P,H,fe){super(P,"class-field-initializer",H,fe,!0)}}class B extends v{constructor(P,H,fe){super(P,"class-static-block",H,fe,!0)}}class F{constructor(P){this.scopes=[],this.globalScope=null,this.__nodeToScope=new WeakMap,this.__currentScope=null,this.__options=P,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(P){return this.__nodeToScope.get(P)}getDeclaredVariables(P){return this.__declaredVariables.get(P)||[]}acquire(P,H){function fe(ie){return!(ie.type==="function"&&ie.functionExpressionScope)}const ce=this.__get(P);if(!ce||ce.length===0)return null;if(ce.length===1)return ce[0];if(H)for(let ie=ce.length-1;ie>=0;--ie){const he=ce[ie];if(fe(he))return he}else for(let ie=0,he=ce.length;ie<he;++ie){const Ee=ce[ie];if(fe(Ee))return Ee}return null}acquireAll(P){return this.__get(P)}release(P,H){const fe=this.__get(P);if(fe&&fe.length){const ce=fe[0].upper;return ce?this.acquire(ce.block,H):null}return null}attach(){}detach(){}__nestScope(P){return P instanceof E&&(l(this.__currentScope===null),this.globalScope=P),this.__currentScope=P,P}__nestGlobalScope(P){return this.__nestScope(new E(this,P))}__nestBlockScope(P){return this.__nestScope(new w(this,this.__currentScope,P))}__nestFunctionScope(P,H){return this.__nestScope(new A(this,this.__currentScope,P,H))}__nestForScope(P){return this.__nestScope(new k(this,this.__currentScope,P))}__nestCatchScope(P){return this.__nestScope(new C(this,this.__currentScope,P))}__nestWithScope(P){return this.__nestScope(new S(this,this.__currentScope,P))}__nestClassScope(P){return this.__nestScope(new R(this,this.__currentScope,P))}__nestClassFieldInitializerScope(P){return this.__nestScope(new I(this,this.__currentScope,P))}__nestClassStaticBlockScope(P){return this.__nestScope(new B(this,this.__currentScope,P))}__nestSwitchScope(P){return this.__nestScope(new x(this,this.__currentScope,P))}__nestModuleScope(P){return this.__nestScope(new b(this,this.__currentScope,P))}__nestFunctionExpressionNameScope(P){return this.__nestScope(new T(this,this.__currentScope,P))}__isES6(){return this.__options.ecmaVersion>=6}}const{Syntax:O}=o.default;function $(Z){return Z.at(-1)||null}class N extends t.default.Visitor{static isPattern(P){const H=P.type;return H===O.Identifier||H===O.ObjectPattern||H===O.ArrayPattern||H===O.SpreadElement||H===O.RestElement||H===O.AssignmentPattern}constructor(P,H,fe){super(null,P),this.rootPattern=H,this.callback=fe,this.assignments=[],this.rightHandNodes=[],this.restElements=[]}Identifier(P){const H=$(this.restElements);this.callback(P,{topLevel:P===this.rootPattern,rest:H!=null&&H.argument===P,assignments:this.assignments})}Property(P){P.computed&&this.rightHandNodes.push(P.key),this.visit(P.value)}ArrayPattern(P){for(let H=0,fe=P.elements.length;H<fe;++H){const ce=P.elements[H];this.visit(ce)}}AssignmentPattern(P){this.assignments.push(P),this.visit(P.left),this.rightHandNodes.push(P.right),this.assignments.pop()}RestElement(P){this.restElements.push(P),this.visit(P.argument),this.restElements.pop()}MemberExpression(P){P.computed&&this.rightHandNodes.push(P.property),this.rightHandNodes.push(P.object)}SpreadElement(P){this.visit(P.argument)}ArrayExpression(P){P.elements.forEach(this.visit,this)}AssignmentExpression(P){this.assignments.push(P),this.visit(P.left),this.rightHandNodes.push(P.right),this.assignments.pop()}CallExpression(P){P.arguments.forEach(H=>{this.rightHandNodes.push(H)}),this.visit(P.callee)}}const{Syntax:_}=o.default;function X(Z,P,H,fe){const ce=new N(Z,P,fe);ce.visit(P),H!=null&&ce.rightHandNodes.forEach(H.visit,H)}class L extends t.default.Visitor{constructor(P,H){super(null,H.options),this.declaration=P,this.referencer=H}visitImport(P,H){this.referencer.visitPattern(P,fe=>{this.referencer.currentScope().__define(fe,new c(i.ImportBinding,fe,H,this.declaration,null,null))})}ImportNamespaceSpecifier(P){const H=P.local||P.id;H&&this.visitImport(H,P)}ImportDefaultSpecifier(P){const H=P.local||P.id;this.visitImport(H,P)}ImportSpecifier(P){const H=P.local||P.id;P.name?this.visitImport(P.name,P):this.visitImport(H,P)}}class K extends t.default.Visitor{constructor(P,H){super(null,P),this.options=P,this.scopeManager=H,this.parent=null,this.isInnerMethodDefinition=!1}currentScope(){return this.scopeManager.__currentScope}close(P){for(;this.currentScope()&&P===this.currentScope().block;)this.scopeManager.__currentScope=this.currentScope().__close(this.scopeManager)}pushInnerMethodDefinition(P){const H=this.isInnerMethodDefinition;return this.isInnerMethodDefinition=P,H}popInnerMethodDefinition(P){this.isInnerMethodDefinition=P}referencingDefaultValue(P,H,fe,ce){const ie=this.currentScope();H.forEach(he=>{ie.__referencing(P,m.WRITE,he.right,fe,P!==he.left,ce)})}visitPattern(P,H,fe){let ce=H,ie=fe;typeof H=="function"&&(ie=H,ce={processRightHandNodes:!1}),X(this.options,P,ce.processRightHandNodes?this:null,ie)}visitFunction(P){let H,fe;P.type===_.FunctionDeclaration&&this.currentScope().__define(P.id,new c(i.FunctionName,P.id,P,null,null,null)),P.type===_.FunctionExpression&&P.id&&this.scopeManager.__nestFunctionExpressionNameScope(P),this.scopeManager.__nestFunctionScope(P,this.isInnerMethodDefinition);const ce=this;function ie(he,Ee){ce.currentScope().__define(he,new d(he,P,H,Ee.rest)),ce.referencingDefaultValue(he,Ee.assignments,null,!0)}for(H=0,fe=P.params.length;H<fe;++H)this.visitPattern(P.params[H],{processRightHandNodes:!0},ie);P.rest&&this.visitPattern({type:"RestElement",argument:P.rest},he=>{this.currentScope().__define(he,new d(he,P,P.params.length,!0))}),P.body&&(P.body.type===_.BlockStatement?this.visitChildren(P.body):this.visit(P.body)),this.close(P)}visitClass(P){P.type===_.ClassDeclaration&&this.currentScope().__define(P.id,new c(i.ClassName,P.id,P,null,null,null)),this.scopeManager.__nestClassScope(P),P.id&&this.currentScope().__define(P.id,new c(i.ClassName,P.id,P)),this.visit(P.superClass),this.visit(P.body),this.close(P)}visitProperty(P){let H;P.computed&&this.visit(P.key);const fe=P.type===_.MethodDefinition;fe&&(H=this.pushInnerMethodDefinition(!0)),this.visit(P.value),fe&&this.popInnerMethodDefinition(H)}visitForIn(P){P.left.type===_.VariableDeclaration&&P.left.kind!=="var"&&this.scopeManager.__nestForScope(P),P.left.type===_.VariableDeclaration?(this.visit(P.left),this.visitPattern(P.left.declarations[0].id,H=>{this.currentScope().__referencing(H,m.WRITE,P.right,null,!0,!0)})):this.visitPattern(P.left,{processRightHandNodes:!0},(H,fe)=>{let ce=null;this.currentScope().isStrict||(ce={pattern:H,node:P}),this.referencingDefaultValue(H,fe.assignments,ce,!1),this.currentScope().__referencing(H,m.WRITE,P.right,ce,!0,!1)}),this.visit(P.right),this.visit(P.body),this.close(P)}visitVariableDeclaration(P,H,fe,ce){const ie=fe.declarations[ce],he=ie.init;this.visitPattern(ie.id,{processRightHandNodes:!0},(Ee,Ce)=>{P.__define(Ee,new c(H,Ee,ie,fe,ce,fe.kind)),this.referencingDefaultValue(Ee,Ce.assignments,null,!0),he&&this.currentScope().__referencing(Ee,m.WRITE,he,null,!Ce.topLevel,!0)})}AssignmentExpression(P){N.isPattern(P.left)?P.operator==="="?this.visitPattern(P.left,{processRightHandNodes:!0},(H,fe)=>{let ce=null;this.currentScope().isStrict||(ce={pattern:H,node:P}),this.referencingDefaultValue(H,fe.assignments,ce,!1),this.currentScope().__referencing(H,m.WRITE,P.right,ce,!fe.topLevel,!1)}):this.currentScope().__referencing(P.left,m.RW,P.right):this.visit(P.left),this.visit(P.right)}CatchClause(P){this.scopeManager.__nestCatchScope(P),this.visitPattern(P.param,{processRightHandNodes:!0},(H,fe)=>{this.currentScope().__define(H,new c(i.CatchClause,H,P,null,null,null)),this.referencingDefaultValue(H,fe.assignments,null,!0)}),this.visit(P.body),this.close(P)}Program(P){this.scopeManager.__nestGlobalScope(P),this.scopeManager.isGlobalReturn()&&(this.currentScope().isStrict=!1,this.scopeManager.__nestFunctionScope(P,!1)),this.scopeManager.__isES6()&&this.scopeManager.isModule()&&this.scopeManager.__nestModuleScope(P),this.scopeManager.isStrictModeSupported()&&this.scopeManager.isImpliedStrict()&&(this.currentScope().isStrict=!0),this.visitChildren(P),this.close(P)}Identifier(P){this.currentScope().__referencing(P)}PrivateIdentifier(){}UpdateExpression(P){N.isPattern(P.argument)?this.currentScope().__referencing(P.argument,m.RW,null):this.visitChildren(P)}MemberExpression(P){this.visit(P.object),P.computed&&this.visit(P.property)}Property(P){this.visitProperty(P)}PropertyDefinition(P){const{computed:H,key:fe,value:ce}=P;H&&this.visit(fe),ce&&(this.scopeManager.__nestClassFieldInitializerScope(ce),this.visit(ce),this.close(ce))}StaticBlock(P){this.scopeManager.__nestClassStaticBlockScope(P),this.visitChildren(P),this.close(P)}MethodDefinition(P){this.visitProperty(P)}BreakStatement(){}ContinueStatement(){}LabeledStatement(P){this.visit(P.body)}ForStatement(P){P.init&&P.init.type===_.VariableDeclaration&&P.init.kind!=="var"&&this.scopeManager.__nestForScope(P),this.visitChildren(P),this.close(P)}ClassExpression(P){this.visitClass(P)}ClassDeclaration(P){this.visitClass(P)}CallExpression(P){!this.scopeManager.__ignoreEval()&&P.callee.type===_.Identifier&&P.callee.name==="eval"&&this.currentScope().variableScope.__detectEval(),this.visitChildren(P)}BlockStatement(P){this.scopeManager.__isES6()&&this.scopeManager.__nestBlockScope(P),this.visitChildren(P),this.close(P)}ThisExpression(){this.currentScope().variableScope.__detectThis()}WithStatement(P){this.visit(P.object),this.scopeManager.__nestWithScope(P),this.visit(P.body),this.close(P)}VariableDeclaration(P){const H=P.kind==="var"?this.currentScope().variableScope:this.currentScope();for(let fe=0,ce=P.declarations.length;fe<ce;++fe){const ie=P.declarations[fe];this.visitVariableDeclaration(H,i.Variable,P,fe),ie.init&&this.visit(ie.init)}}SwitchStatement(P){this.visit(P.discriminant),this.scopeManager.__isES6()&&this.scopeManager.__nestSwitchScope(P);for(let H=0,fe=P.cases.length;H<fe;++H)this.visit(P.cases[H]);this.close(P)}FunctionDeclaration(P){this.visitFunction(P)}FunctionExpression(P){this.visitFunction(P)}ForOfStatement(P){this.visitForIn(P)}ForInStatement(P){this.visitForIn(P)}ArrowFunctionExpression(P){this.visitFunction(P)}ImportDeclaration(P){l(this.scopeManager.__isES6()&&this.scopeManager.isModule(),"ImportDeclaration should appear when the mode is ES6 and in the module context."),new L(P,this).visit(P)}visitExportDeclaration(P){if(!P.source){if(P.declaration){this.visit(P.declaration);return}this.visitChildren(P)}}ExportDeclaration(P){this.visitExportDeclaration(P)}ExportAllDeclaration(P){this.visitExportDeclaration(P)}ExportDefaultDeclaration(P){this.visitExportDeclaration(P)}ExportNamedDeclaration(P){this.visitExportDeclaration(P)}ExportSpecifier(P){const H=P.id||P.local;this.visit(H)}MetaProperty(){}JSXIdentifier(P){this.scopeManager.__isJSXEnabled()&&P.name!=="this"&&this.currentScope().__referencing(P)}JSXMemberExpression(P){this.visit(P.object)}JSXElement(P){this.scopeManager.__isJSXEnabled()?(this.visit(P.openingElement),P.children.forEach(this.visit,this)):this.visitChildren(P)}JSXOpeningElement(P){if(this.scopeManager.__isJSXEnabled()){const H=P.name;(H.type==="JSXIdentifier"&&H.name[0].toUpperCase()===H.name[0]||H.type==="JSXMemberExpression")&&this.visit(H)}P.attributes.forEach(this.visit,this)}JSXAttribute(P){P.value&&this.visit(P.value)}JSXExpressionContainer(P){this.visit(P.expression)}JSXNamespacedName(P){this.visit(P.namespace),this.visit(P.name)}}const J="8.4.0";function ge(){return{optimistic:!1,nodejsScope:!1,impliedStrict:!1,sourceType:"script",ecmaVersion:5,childVisitorKeys:null,fallback:"iteration"}}function ae(Z,P){function H(fe){return typeof fe=="object"&&fe instanceof Object&&!(fe instanceof Array)&&!(fe instanceof RegExp)}for(const fe in P)if(Object.hasOwn(P,fe)){const ce=P[fe];H(ce)?H(Z[fe])?ae(Z[fe],ce):Z[fe]=ae({},ce):Z[fe]=ce}return Z}function ke(Z,P){const H=ae(ge(),P),fe=new F(H);return new K(H,fe).visit(Z),l(fe.__currentScope===null,"currentScope should be null."),fe}return Jt.Definition=c,Jt.PatternVisitor=N,Jt.Reference=m,Jt.Referencer=K,Jt.Scope=v,Jt.ScopeManager=F,Jt.Variable=i,Jt.analyze=ke,Jt.version=J,Jt}var $r={},$p;function Gr(){if($p)return $r;$p=1;const a={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"]},e=Object.keys(a);for(const f of e)Object.freeze(a[f]);Object.freeze(a);const n=new Set(["parent","leadingComments","trailingComments"]);function o(f){return!n.has(f)&&f[0]!=="_"}function t(f){return Object.keys(f).filter(o)}function l(f){const u=Object.assign({},a);for(const r of Object.keys(f))if(Object.hasOwn(u,r)){const m=new Set(f[r]);for(const i of u[r])m.add(i);u[r]=Object.freeze(Array.from(m))}else u[r]=Object.freeze(Array.from(f[r]));return Object.freeze(u)}return $r.KEYS=a,$r.getKeys=t,$r.unionWith=l,$r}var er={},mn={exports:{}},Gp;function Vn(){return Gp||(Gp=1,(function(a,e){(function(n,o){o(e)})(this,(function(n){var o=[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,80,3,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,343,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,330,3,10,1,2,0,49,6,4,4,14,10,5350,0,7,14,11465,27,2343,9,87,9,39,4,60,6,26,9,535,9,470,0,2,54,8,3,82,0,12,1,19628,1,4178,9,519,45,3,22,543,4,4,5,9,7,3,6,31,3,149,2,1418,49,513,54,5,49,9,0,15,0,23,4,2,14,1361,6,2,16,3,6,2,1,2,4,101,0,161,6,10,9,357,0,62,13,499,13,245,1,2,9,726,6,110,6,6,9,4759,9,787719,239],t=[0,11,2,25,2,18,2,1,2,14,3,13,35,122,70,52,268,28,4,48,48,31,14,29,6,37,11,29,3,35,5,7,2,4,43,157,19,35,5,35,5,39,9,51,13,10,2,14,2,6,2,1,2,10,2,14,2,6,2,1,4,51,13,310,10,21,11,7,25,5,2,41,2,8,70,5,3,0,2,43,2,1,4,0,3,22,11,22,10,30,66,18,2,1,11,21,11,25,71,55,7,1,65,0,16,3,2,2,2,28,43,28,4,28,36,7,2,27,28,53,11,21,11,18,14,17,111,72,56,50,14,50,14,35,39,27,10,22,251,41,7,1,17,2,60,28,11,0,9,21,43,17,47,20,28,22,13,52,58,1,3,0,14,44,33,24,27,35,30,0,3,0,9,34,4,0,13,47,15,3,22,0,2,0,36,17,2,24,20,1,64,6,2,0,2,3,2,14,2,9,8,46,39,7,3,1,3,21,2,6,2,1,2,4,4,0,19,0,13,4,31,9,2,0,3,0,2,37,2,0,26,0,2,0,45,52,19,3,21,2,31,47,21,1,2,0,185,46,42,3,37,47,21,0,60,42,14,0,72,26,38,6,186,43,117,63,32,7,3,0,3,7,2,1,2,23,16,0,2,0,95,7,3,38,17,0,2,0,29,0,11,39,8,0,22,0,12,45,20,0,19,72,200,32,32,8,2,36,18,0,50,29,113,6,2,1,2,37,22,0,26,5,2,1,2,31,15,0,328,18,16,0,2,12,2,33,125,0,80,921,103,110,18,195,2637,96,16,1071,18,5,26,3994,6,582,6842,29,1763,568,8,30,18,78,18,29,19,47,17,3,32,20,6,18,433,44,212,63,129,74,6,0,67,12,65,1,2,0,29,6135,9,1237,42,9,8936,3,2,6,2,1,2,290,16,0,30,2,3,0,15,3,9,395,2309,106,6,12,4,8,8,9,5991,84,2,70,2,1,3,0,3,1,3,3,2,11,2,0,2,6,2,64,2,3,3,7,2,6,2,27,2,3,2,4,2,0,4,6,2,339,3,24,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,30,2,24,2,7,1845,30,7,5,262,61,147,44,11,6,17,0,322,29,19,43,485,27,229,29,3,0,496,6,2,3,2,1,2,14,2,196,60,67,8,0,1205,3,2,26,2,1,2,0,3,0,2,9,2,3,2,0,2,0,7,0,5,0,2,0,2,0,2,2,2,1,2,0,3,0,2,0,2,0,2,0,2,0,2,1,2,0,3,3,2,6,2,3,2,3,2,0,2,9,2,16,6,2,2,4,2,16,4421,42719,33,4153,7,221,3,5761,15,7472,16,621,2467,541,1507,4938,6,4191],l="·̀-ͯ·҃-֑҇-ׇֽֿׁׂׅׄؐ-ًؚ-٩ٰۖ-ۜ۟-۪ۤۧۨ-ۭ۰-۹ܑܰ-݊ަ-ް߀-߉߫-߽߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛-࢟࣊-ࣣ࣡-ःऺ-़ा-ॏ॑-ॗॢॣ०-९ঁ-ঃ়া-ৄেৈো-্ৗৢৣ০-৯৾ਁ-ਃ਼ਾ-ੂੇੈੋ-੍ੑ੦-ੱੵઁ-ઃ઼ા-ૅે-ૉો-્ૢૣ૦-૯ૺ-૿ଁ-ଃ଼ା-ୄେୈୋ-୍୕-ୗୢୣ୦-୯ஂா-ூெ-ைொ-்ௗ௦-௯ఀ-ఄ఼ా-ౄె-ైొ-్ౕౖౢౣ౦-౯ಁ-ಃ಼ಾ-ೄೆ-ೈೊ-್ೕೖೢೣ೦-೯ೳഀ-ഃ഻഼ാ-ൄെ-ൈൊ-്ൗൢൣ൦-൯ඁ-ඃ්ා-ුූෘ-ෟ෦-෯ෲෳัิ-ฺ็-๎๐-๙ັິ-ຼ່-໎໐-໙༘༙༠-༩༹༵༷༾༿ཱ-྄྆྇ྍ-ྗྙ-ྼ࿆ါ-ှ၀-၉ၖ-ၙၞ-ၠၢ-ၤၧ-ၭၱ-ၴႂ-ႍႏ-ႝ፝-፟፩-፱ᜒ-᜕ᜲ-᜴ᝒᝓᝲᝳ឴-៓៝០-៩᠋-᠍᠏-᠙ᢩᤠ-ᤫᤰ-᤻᥆-᥏᧐-᧚ᨗ-ᨛᩕ-ᩞ᩠-᩿᩼-᪉᪐-᪙᪰-᪽ᪿ-ᫎᬀ-ᬄ᬴-᭄᭐-᭙᭫-᭳ᮀ-ᮂᮡ-ᮭ᮰-᮹᯦-᯳ᰤ-᰷᱀-᱉᱐-᱙᳐-᳔᳒-᳨᳭᳴᳷-᳹᷀-᷿‿⁀⁔⃐-⃥⃜⃡-⃰⳯-⵿⳱ⷠ-〪ⷿ-゙゚〯・꘠-꘩꙯ꙴ-꙽ꚞꚟ꛰꛱ꠂ꠆ꠋꠣ-ꠧ꠬ꢀꢁꢴ-ꣅ꣐-꣙꣠-꣱ꣿ-꤉ꤦ-꤭ꥇ-꥓ꦀ-ꦃ꦳-꧀꧐-꧙ꧥ꧰-꧹ꨩ-ꨶꩃꩌꩍ꩐-꩙ꩻ-ꩽꪰꪲ-ꪴꪷꪸꪾ꪿꫁ꫫ-ꫯꫵ꫶ꯣ-ꯪ꯬꯭꯰-꯹ﬞ︀-️︠-︯︳︴﹍-﹏0-9_・",f="ªµºÀ-ÖØ-öø-ˁˆ-ˑˠ-ˤˬˮͰ-ʹͶͷͺ-ͽͿΆΈ-ΊΌΎ-ΡΣ-ϵϷ-ҁҊ-ԯԱ-Ֆՙՠ-ֈא-תׯ-ײؠ-يٮٯٱ-ۓەۥۦۮۯۺ-ۼۿܐܒ-ܯݍ-ޥޱߊ-ߪߴߵߺࠀ-ࠕࠚࠤࠨࡀ-ࡘࡠ-ࡪࡰ-ࢇࢉ-ࢎࢠ-ࣉऄ-हऽॐक़-ॡॱ-ঀঅ-ঌএঐও-নপ-রলশ-হঽৎড়ঢ়য়-ৡৰৱৼਅ-ਊਏਐਓ-ਨਪ-ਰਲਲ਼ਵਸ਼ਸਹਖ਼-ੜਫ਼ੲ-ੴઅ-ઍએ-ઑઓ-નપ-રલળવ-હઽૐૠૡૹଅ-ଌଏଐଓ-ନପ-ରଲଳଵ-ହଽଡ଼ଢ଼ୟ-ୡୱஃஅ-ஊஎ-ஐஒ-கஙசஜஞடணதந-பம-ஹௐఅ-ఌఎ-ఐఒ-నప-హఽౘ-ౚౝౠౡಀಅ-ಌಎ-ಐಒ-ನಪ-ಳವ-ಹಽೝೞೠೡೱೲഄ-ഌഎ-ഐഒ-ഺഽൎൔ-ൖൟ-ൡൺ-ൿඅ-ඖක-නඳ-රලව-ෆก-ะาำเ-ๆກຂຄຆ-ຊຌ-ຣລວ-ະາຳຽເ-ໄໆໜ-ໟༀཀ-ཇཉ-ཬྈ-ྌက-ဪဿၐ-ၕၚ-ၝၡၥၦၮ-ၰၵ-ႁႎႠ-ჅჇჍა-ჺჼ-ቈቊ-ቍቐ-ቖቘቚ-ቝበ-ኈኊ-ኍነ-ኰኲ-ኵኸ-ኾዀዂ-ዅወ-ዖዘ-ጐጒ-ጕጘ-ፚᎀ-ᎏᎠ-Ᏽᏸ-ᏽᐁ-ᙬᙯ-ᙿᚁ-ᚚᚠ-ᛪᛮ-ᛸᜀ-ᜑᜟ-ᜱᝀ-ᝑᝠ-ᝬᝮ-ᝰក-ឳៗៜᠠ-ᡸᢀ-ᢨᢪᢰ-ᣵᤀ-ᤞᥐ-ᥭᥰ-ᥴᦀ-ᦫᦰ-ᧉᨀ-ᨖᨠ-ᩔᪧᬅ-ᬳᭅ-ᭌᮃ-ᮠᮮᮯᮺ-ᯥᰀ-ᰣᱍ-ᱏᱚ-ᱽᲀ-Ა-ᲺᲽ-Ჿᳩ-ᳬᳮ-ᳳᳵᳶᳺᴀ-ᶿḀ-ἕἘ-Ἕἠ-ὅὈ-Ὅὐ-ὗὙὛὝὟ-ώᾀ-ᾴᾶ-ᾼιῂ-ῄῆ-ῌῐ-ΐῖ-Ίῠ-Ῥῲ-ῴῶ-ῼⁱⁿₐ-ₜℂℇℊ-ℓℕ℘-ℝℤΩℨK-ℹℼ-ℿⅅ-ⅉⅎⅠ-ↈⰀ-ⳤⳫ-ⳮⳲⳳⴀ-ⴥⴧⴭⴰ-ⵧⵯⶀ-ⶖⶠ-ⶦⶨ-ⶮⶰ-ⶶⶸ-ⶾⷀ-ⷆⷈ-ⷎⷐ-ⷖⷘ-ⷞ々-〇〡-〩〱-〵〸-〼ぁ-ゖ゛-ゟァ-ヺー-ヿㄅ-ㄯㄱ-ㆎㆠ-ㆿㇰ-ㇿ㐀-䶿一-ꒌꓐ-ꓽꔀ-ꘌꘐ-ꘟꘪꘫꙀ-ꙮꙿ-ꚝꚠ-ꛯꜗ-ꜟꜢ-ꞈꞋ-Ꟑꟑꟓꟕ-ꟲ-ꠁꠃ-ꠅꠇ-ꠊꠌ-ꠢꡀ-ꡳꢂ-ꢳꣲ-ꣷꣻꣽꣾꤊ-ꤥꤰ-ꥆꥠ-ꥼꦄ-ꦲꧏꧠ-ꧤꧦ-ꧯꧺ-ꧾꨀ-ꨨꩀ-ꩂꩄ-ꩋꩠ-ꩶꩺꩾ-ꪯꪱꪵꪶꪹ-ꪽꫀꫂꫛ-ꫝꫠ-ꫪꫲ-ꫴꬁ-ꬆꬉ-ꬎꬑ-ꬖꬠ-ꬦꬨ-ꬮꬰ-ꭚꭜ-ꭩꭰ-ꯢ가-힣ힰ-ퟆퟋ-ퟻ豈-舘並-龎ff-stﬓ-ﬗיִײַ-ﬨשׁ-זּטּ-לּמּנּסּףּפּצּ-ﮱﯓ-ﴽﵐ-ﶏﶒ-ﷇﷰ-ﷻﹰ-ﹴﹶ-ﻼA-Za-zヲ-하-ᅦᅧ-ᅬᅭ-ᅲᅳ-ᅵ",u={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"},r="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",m={5:r,"5module":r+" export import",6:r+" const class extends export import super"},i=/^in(stanceof)?$/,c=new RegExp("["+f+"]"),d=new RegExp("["+f+l+"]");function s(y,D){for(var G=65536,Y=0;Y<D.length;Y+=2){if(G+=D[Y],G>y)return!1;if(G+=D[Y+1],G>=y)return!0}return!1}function p(y,D){return y<65?y===36:y<91?!0:y<97?y===95:y<123?!0:y<=65535?y>=170&&c.test(String.fromCharCode(y)):D===!1?!1:s(y,t)}function h(y,D){return y<48?y===36:y<58?!0:y<65?!1:y<91?!0:y<97?y===95:y<123?!0:y<=65535?y>=170&&d.test(String.fromCharCode(y)):D===!1?!1:s(y,t)||s(y,o)}var g=function(D,G){G===void 0&&(G={}),this.label=D,this.keyword=G.keyword,this.beforeExpr=!!G.beforeExpr,this.startsExpr=!!G.startsExpr,this.isLoop=!!G.isLoop,this.isAssign=!!G.isAssign,this.prefix=!!G.prefix,this.postfix=!!G.postfix,this.binop=G.binop||null,this.updateContext=null};function v(y,D){return new g(y,{beforeExpr:!0,binop:D})}var E={beforeExpr:!0},b={startsExpr:!0},T={};function C(y,D){return D===void 0&&(D={}),D.keyword=y,T[y]=new g(y,D)}var S={num:new g("num",b),regexp:new g("regexp",b),string:new g("string",b),name:new g("name",b),privateId:new g("privateId",b),eof:new g("eof"),bracketL:new g("[",{beforeExpr:!0,startsExpr:!0}),bracketR:new g("]"),braceL:new g("{",{beforeExpr:!0,startsExpr:!0}),braceR:new g("}"),parenL:new g("(",{beforeExpr:!0,startsExpr:!0}),parenR:new g(")"),comma:new g(",",E),semi:new g(";",E),colon:new g(":",E),dot:new g("."),question:new g("?",E),questionDot:new g("?."),arrow:new g("=>",E),template:new g("template"),invalidTemplate:new g("invalidTemplate"),ellipsis:new g("...",E),backQuote:new g("`",b),dollarBraceL:new g("${",{beforeExpr:!0,startsExpr:!0}),eq:new g("=",{beforeExpr:!0,isAssign:!0}),assign:new g("_=",{beforeExpr:!0,isAssign:!0}),incDec:new g("++/--",{prefix:!0,postfix:!0,startsExpr:!0}),prefix:new g("!/~",{beforeExpr:!0,prefix:!0,startsExpr:!0}),logicalOR:v("||",1),logicalAND:v("&&",2),bitwiseOR:v("|",3),bitwiseXOR:v("^",4),bitwiseAND:v("&",5),equality:v("==/!=/===/!==",6),relational:v("</>/<=/>=",7),bitShift:v("<</>>/>>>",8),plusMin:new g("+/-",{beforeExpr:!0,binop:9,prefix:!0,startsExpr:!0}),modulo:v("%",10),star:v("*",10),slash:v("/",10),starstar:new g("**",{beforeExpr:!0}),coalesce:v("??",1),_break:C("break"),_case:C("case",E),_catch:C("catch"),_continue:C("continue"),_debugger:C("debugger"),_default:C("default",E),_do:C("do",{isLoop:!0,beforeExpr:!0}),_else:C("else",E),_finally:C("finally"),_for:C("for",{isLoop:!0}),_function:C("function",b),_if:C("if"),_return:C("return",E),_switch:C("switch"),_throw:C("throw",E),_try:C("try"),_var:C("var"),_const:C("const"),_while:C("while",{isLoop:!0}),_with:C("with"),_new:C("new",{beforeExpr:!0,startsExpr:!0}),_this:C("this",b),_super:C("super",b),_class:C("class",b),_extends:C("extends",E),_export:C("export"),_import:C("import",b),_null:C("null",b),_true:C("true",b),_false:C("false",b),_in:C("in",{beforeExpr:!0,binop:7}),_instanceof:C("instanceof",{beforeExpr:!0,binop:7}),_typeof:C("typeof",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_void:C("void",{beforeExpr:!0,prefix:!0,startsExpr:!0}),_delete:C("delete",{beforeExpr:!0,prefix:!0,startsExpr:!0})},w=/\r\n?|\n|\u2028|\u2029/,x=new RegExp(w.source,"g");function A(y){return y===10||y===13||y===8232||y===8233}function k(y,D,G){G===void 0&&(G=y.length);for(var Y=D;Y<G;Y++){var ye=y.charCodeAt(Y);if(A(ye))return Y<G-1&&ye===13&&y.charCodeAt(Y+1)===10?Y+2:Y+1}return-1}var R=/[\u1680\u2000-\u200a\u202f\u205f\u3000\ufeff]/,I=/(?:\s|\/\/.*|\/\*[^]*?\*\/)*/g,B=Object.prototype,F=B.hasOwnProperty,O=B.toString,$=Object.hasOwn||(function(y,D){return F.call(y,D)}),N=Array.isArray||(function(y){return O.call(y)==="[object Array]"}),_=Object.create(null);function X(y){return _[y]||(_[y]=new RegExp("^(?:"+y.replace(/ /g,"|")+")$"))}function L(y){return y<=65535?String.fromCharCode(y):(y-=65536,String.fromCharCode((y>>10)+55296,(y&1023)+56320))}var K=/(?:[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])/,J=function(D,G){this.line=D,this.column=G};J.prototype.offset=function(D){return new J(this.line,this.column+D)};var ge=function(D,G,Y){this.start=G,this.end=Y,D.sourceFile!==null&&(this.source=D.sourceFile)};function ae(y,D){for(var G=1,Y=0;;){var ye=k(y,Y,D);if(ye<0)return new J(G,D-Y);++G,Y=ye}}var ke={ecmaVersion:null,sourceType:"script",onInsertedSemicolon:null,onTrailingComma:null,allowReserved:null,allowReturnOutsideFunction:!1,allowImportExportEverywhere:!1,allowAwaitOutsideFunction:null,allowSuperOutsideMethod:null,allowHashBang:!1,checkPrivateFields:!0,locations:!1,onToken:null,onComment:null,ranges:!1,program:null,sourceFile:null,directSourceFile:null,preserveParens:!1},Z=!1;function P(y){var D={};for(var G in ke)D[G]=y&&$(y,G)?y[G]:ke[G];if(D.ecmaVersion==="latest"?D.ecmaVersion=1e8:D.ecmaVersion==null?(!Z&&typeof console=="object"&&console.warn&&(Z=!0,console.warn(`Since Acorn 8.0.0, options.ecmaVersion is required.
|
|
2
|
+
Defaulting to 2020, but this will stop working in the future.`)),D.ecmaVersion=11):D.ecmaVersion>=2015&&(D.ecmaVersion-=2009),D.allowReserved==null&&(D.allowReserved=D.ecmaVersion<5),(!y||y.allowHashBang==null)&&(D.allowHashBang=D.ecmaVersion>=14),N(D.onToken)){var Y=D.onToken;D.onToken=function(ye){return Y.push(ye)}}return N(D.onComment)&&(D.onComment=H(D,D.onComment)),D}function H(y,D){return function(G,Y,ye,Ne,Me,et){var it={type:G?"Block":"Line",value:Y,start:ye,end:Ne};y.locations&&(it.loc=new ge(this,Me,et)),y.ranges&&(it.range=[ye,Ne]),D.push(it)}}var fe=1,ce=2,ie=4,he=8,Ee=16,Ce=32,Ae=64,ee=128,ne=256,we=512,z=fe|ce|ne;function oe(y,D){return ce|(y?ie:0)|(D?he:0)}var Te=0,Re=1,Ie=2,W=3,Je=4,ut=5,tt=function(D,G,Y){this.options=D=P(D),this.sourceFile=D.sourceFile,this.keywords=X(m[D.ecmaVersion>=6?6:D.sourceType==="module"?"5module":5]);var ye="";D.allowReserved!==!0&&(ye=u[D.ecmaVersion>=6?6:D.ecmaVersion===5?5:3],D.sourceType==="module"&&(ye+=" await")),this.reservedWords=X(ye);var Ne=(ye?ye+" ":"")+u.strict;this.reservedWordsStrict=X(Ne),this.reservedWordsStrictBind=X(Ne+" "+u.strictBind),this.input=String(G),this.containsEsc=!1,Y?(this.pos=Y,this.lineStart=this.input.lastIndexOf(`
|
|
3
|
+
`,Y-1)+1,this.curLine=this.input.slice(0,this.lineStart).split(w).length):(this.pos=this.lineStart=0,this.curLine=1),this.type=S.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=D.sourceType==="module",this.strict=this.inModule||this.strictDirective(this.pos),this.potentialArrowAt=-1,this.potentialArrowInForAwait=!1,this.yieldPos=this.awaitPos=this.awaitIdentPos=0,this.labels=[],this.undefinedExports=Object.create(null),this.pos===0&&D.allowHashBang&&this.input.slice(0,2)==="#!"&&this.skipLineComment(2),this.scopeStack=[],this.enterScope(fe),this.regexpState=null,this.privateNameStack=[]},qe={inFunction:{configurable:!0},inGenerator:{configurable:!0},inAsync:{configurable:!0},canAwait:{configurable:!0},allowSuper:{configurable:!0},allowDirectSuper:{configurable:!0},treatFunctionsAsVar:{configurable:!0},allowNewDotTarget:{configurable:!0},inClassStaticBlock:{configurable:!0}};tt.prototype.parse=function(){var D=this.options.program||this.startNode();return this.nextToken(),this.parseTopLevel(D)},qe.inFunction.get=function(){return(this.currentVarScope().flags&ce)>0},qe.inGenerator.get=function(){return(this.currentVarScope().flags&he)>0},qe.inAsync.get=function(){return(this.currentVarScope().flags&ie)>0},qe.canAwait.get=function(){for(var y=this.scopeStack.length-1;y>=0;y--){var D=this.scopeStack[y],G=D.flags;if(G&(ne|we))return!1;if(G&ce)return(G&ie)>0}return this.inModule&&this.options.ecmaVersion>=13||this.options.allowAwaitOutsideFunction},qe.allowSuper.get=function(){var y=this.currentThisScope(),D=y.flags;return(D&Ae)>0||this.options.allowSuperOutsideMethod},qe.allowDirectSuper.get=function(){return(this.currentThisScope().flags&ee)>0},qe.treatFunctionsAsVar.get=function(){return this.treatFunctionsAsVarInScope(this.currentScope())},qe.allowNewDotTarget.get=function(){for(var y=this.scopeStack.length-1;y>=0;y--){var D=this.scopeStack[y],G=D.flags;if(G&(ne|we)||G&ce&&!(G&Ee))return!0}return!1},qe.inClassStaticBlock.get=function(){return(this.currentVarScope().flags&ne)>0},tt.extend=function(){for(var D=[],G=arguments.length;G--;)D[G]=arguments[G];for(var Y=this,ye=0;ye<D.length;ye++)Y=D[ye](Y);return Y},tt.parse=function(D,G){return new this(G,D).parse()},tt.parseExpressionAt=function(D,G,Y){var ye=new this(Y,D,G);return ye.nextToken(),ye.parseExpression()},tt.tokenizer=function(D,G){return new this(G,D)},Object.defineProperties(tt.prototype,qe);var $e=tt.prototype,st=/^(?:'((?:\\[^]|[^'\\])*?)'|"((?:\\[^]|[^"\\])*?)")/;$e.strictDirective=function(y){if(this.options.ecmaVersion<5)return!1;for(;;){I.lastIndex=y,y+=I.exec(this.input)[0].length;var D=st.exec(this.input.slice(y));if(!D)return!1;if((D[1]||D[2])==="use strict"){I.lastIndex=y+D[0].length;var G=I.exec(this.input),Y=G.index+G[0].length,ye=this.input.charAt(Y);return ye===";"||ye==="}"||w.test(G[0])&&!(/[(`.[+\-/*%<>=,?^&]/.test(ye)||ye==="!"&&this.input.charAt(Y+1)==="=")}y+=D[0].length,I.lastIndex=y,y+=I.exec(this.input)[0].length,this.input[y]===";"&&y++}},$e.eat=function(y){return this.type===y?(this.next(),!0):!1},$e.isContextual=function(y){return this.type===S.name&&this.value===y&&!this.containsEsc},$e.eatContextual=function(y){return this.isContextual(y)?(this.next(),!0):!1},$e.expectContextual=function(y){this.eatContextual(y)||this.unexpected()},$e.canInsertSemicolon=function(){return this.type===S.eof||this.type===S.braceR||w.test(this.input.slice(this.lastTokEnd,this.start))},$e.insertSemicolon=function(){if(this.canInsertSemicolon())return this.options.onInsertedSemicolon&&this.options.onInsertedSemicolon(this.lastTokEnd,this.lastTokEndLoc),!0},$e.semicolon=function(){!this.eat(S.semi)&&!this.insertSemicolon()&&this.unexpected()},$e.afterTrailingComma=function(y,D){if(this.type===y)return this.options.onTrailingComma&&this.options.onTrailingComma(this.lastTokStart,this.lastTokStartLoc),D||this.next(),!0},$e.expect=function(y){this.eat(y)||this.unexpected()},$e.unexpected=function(y){this.raise(y??this.start,"Unexpected token")};var mt=function(){this.shorthandAssign=this.trailingComma=this.parenthesizedAssign=this.parenthesizedBind=this.doubleProto=-1};$e.checkPatternErrors=function(y,D){if(y){y.trailingComma>-1&&this.raiseRecoverable(y.trailingComma,"Comma is not permitted after the rest element");var G=D?y.parenthesizedAssign:y.parenthesizedBind;G>-1&&this.raiseRecoverable(G,D?"Assigning to rvalue":"Parenthesized pattern")}},$e.checkExpressionErrors=function(y,D){if(!y)return!1;var G=y.shorthandAssign,Y=y.doubleProto;if(!D)return G>=0||Y>=0;G>=0&&this.raise(G,"Shorthand property assignments are valid only in destructuring patterns"),Y>=0&&this.raiseRecoverable(Y,"Redefinition of __proto__ property")},$e.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")},$e.isSimpleAssignTarget=function(y){return y.type==="ParenthesizedExpression"?this.isSimpleAssignTarget(y.expression):y.type==="Identifier"||y.type==="MemberExpression"};var rt=tt.prototype;rt.parseTopLevel=function(y){var D=Object.create(null);for(y.body||(y.body=[]);this.type!==S.eof;){var G=this.parseStatement(null,!0,D);y.body.push(G)}if(this.inModule)for(var Y=0,ye=Object.keys(this.undefinedExports);Y<ye.length;Y+=1){var Ne=ye[Y];this.raiseRecoverable(this.undefinedExports[Ne].start,"Export '"+Ne+"' is not defined")}return this.adaptDirectivePrologue(y.body),this.next(),y.sourceType=this.options.sourceType,this.finishNode(y,"Program")};var Qe={kind:"loop"},St={kind:"switch"};rt.isLet=function(y){if(this.options.ecmaVersion<6||!this.isContextual("let"))return!1;I.lastIndex=this.pos;var D=I.exec(this.input),G=this.pos+D[0].length,Y=this.input.charCodeAt(G);if(Y===91||Y===92)return!0;if(y)return!1;if(Y===123||Y>55295&&Y<56320)return!0;if(p(Y,!0)){for(var ye=G+1;h(Y=this.input.charCodeAt(ye),!0);)++ye;if(Y===92||Y>55295&&Y<56320)return!0;var Ne=this.input.slice(G,ye);if(!i.test(Ne))return!0}return!1},rt.isAsyncFunction=function(){if(this.options.ecmaVersion<8||!this.isContextual("async"))return!1;I.lastIndex=this.pos;var y=I.exec(this.input),D=this.pos+y[0].length,G;return!w.test(this.input.slice(this.pos,D))&&this.input.slice(D,D+8)==="function"&&(D+8===this.input.length||!(h(G=this.input.charCodeAt(D+8))||G>55295&&G<56320))},rt.isUsingKeyword=function(y,D){if(this.options.ecmaVersion<17||!this.isContextual(y?"await":"using"))return!1;I.lastIndex=this.pos;var G=I.exec(this.input),Y=this.pos+G[0].length;if(w.test(this.input.slice(this.pos,Y)))return!1;if(y){var ye=Y+5,Ne;if(this.input.slice(Y,ye)!=="using"||ye===this.input.length||h(Ne=this.input.charCodeAt(ye))||Ne>55295&&Ne<56320)return!1;I.lastIndex=ye;var Me=I.exec(this.input);if(Me&&w.test(this.input.slice(ye,ye+Me[0].length)))return!1}if(D){var et=Y+2,it;if(this.input.slice(Y,et)==="of"&&(et===this.input.length||!h(it=this.input.charCodeAt(et))&&!(it>55295&&it<56320)))return!1}var dt=this.input.charCodeAt(Y);return p(dt,!0)||dt===92},rt.isAwaitUsing=function(y){return this.isUsingKeyword(!0,y)},rt.isUsing=function(y){return this.isUsingKeyword(!1,y)},rt.parseStatement=function(y,D,G){var Y=this.type,ye=this.startNode(),Ne;switch(this.isLet(y)&&(Y=S._var,Ne="let"),Y){case S._break:case S._continue:return this.parseBreakContinueStatement(ye,Y.keyword);case S._debugger:return this.parseDebuggerStatement(ye);case S._do:return this.parseDoStatement(ye);case S._for:return this.parseForStatement(ye);case S._function:return y&&(this.strict||y!=="if"&&y!=="label")&&this.options.ecmaVersion>=6&&this.unexpected(),this.parseFunctionStatement(ye,!1,!y);case S._class:return y&&this.unexpected(),this.parseClass(ye,!0);case S._if:return this.parseIfStatement(ye);case S._return:return this.parseReturnStatement(ye);case S._switch:return this.parseSwitchStatement(ye);case S._throw:return this.parseThrowStatement(ye);case S._try:return this.parseTryStatement(ye);case S._const:case S._var:return Ne=Ne||this.value,y&&Ne!=="var"&&this.unexpected(),this.parseVarStatement(ye,Ne);case S._while:return this.parseWhileStatement(ye);case S._with:return this.parseWithStatement(ye);case S.braceL:return this.parseBlock(!0,ye);case S.semi:return this.parseEmptyStatement(ye);case S._export:case S._import:if(this.options.ecmaVersion>10&&Y===S._import){I.lastIndex=this.pos;var Me=I.exec(this.input),et=this.pos+Me[0].length,it=this.input.charCodeAt(et);if(it===40||it===46)return this.parseExpressionStatement(ye,this.parseExpression())}return this.options.allowImportExportEverywhere||(D||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'")),Y===S._import?this.parseImport(ye):this.parseExport(ye,G);default:if(this.isAsyncFunction())return y&&this.unexpected(),this.next(),this.parseFunctionStatement(ye,!0,!y);var dt=this.isAwaitUsing(!1)?"await using":this.isUsing(!1)?"using":null;if(dt)return D&&this.options.sourceType==="script"&&this.raise(this.start,"Using declaration cannot appear in the top level when source type is `script`"),dt==="await using"&&(this.canAwait||this.raise(this.start,"Await using cannot appear outside of async function"),this.next()),this.next(),this.parseVar(ye,!1,dt),this.semicolon(),this.finishNode(ye,"VariableDeclaration");var yt=this.value,At=this.parseExpression();return Y===S.name&&At.type==="Identifier"&&this.eat(S.colon)?this.parseLabeledStatement(ye,yt,At,y):this.parseExpressionStatement(ye,At)}},rt.parseBreakContinueStatement=function(y,D){var G=D==="break";this.next(),this.eat(S.semi)||this.insertSemicolon()?y.label=null:this.type!==S.name?this.unexpected():(y.label=this.parseIdent(),this.semicolon());for(var Y=0;Y<this.labels.length;++Y){var ye=this.labels[Y];if((y.label==null||ye.name===y.label.name)&&(ye.kind!=null&&(G||ye.kind==="loop")||y.label&&G))break}return Y===this.labels.length&&this.raise(y.start,"Unsyntactic "+D),this.finishNode(y,G?"BreakStatement":"ContinueStatement")},rt.parseDebuggerStatement=function(y){return this.next(),this.semicolon(),this.finishNode(y,"DebuggerStatement")},rt.parseDoStatement=function(y){return this.next(),this.labels.push(Qe),y.body=this.parseStatement("do"),this.labels.pop(),this.expect(S._while),y.test=this.parseParenExpression(),this.options.ecmaVersion>=6?this.eat(S.semi):this.semicolon(),this.finishNode(y,"DoWhileStatement")},rt.parseForStatement=function(y){this.next();var D=this.options.ecmaVersion>=9&&this.canAwait&&this.eatContextual("await")?this.lastTokStart:-1;if(this.labels.push(Qe),this.enterScope(0),this.expect(S.parenL),this.type===S.semi)return D>-1&&this.unexpected(D),this.parseFor(y,null);var G=this.isLet();if(this.type===S._var||this.type===S._const||G){var Y=this.startNode(),ye=G?"let":this.value;return this.next(),this.parseVar(Y,!0,ye),this.finishNode(Y,"VariableDeclaration"),this.parseForAfterInit(y,Y,D)}var Ne=this.isContextual("let"),Me=!1,et=this.isUsing(!0)?"using":this.isAwaitUsing(!0)?"await using":null;if(et){var it=this.startNode();return this.next(),et==="await using"&&this.next(),this.parseVar(it,!0,et),this.finishNode(it,"VariableDeclaration"),this.parseForAfterInit(y,it,D)}var dt=this.containsEsc,yt=new mt,At=this.start,Ut=D>-1?this.parseExprSubscripts(yt,"await"):this.parseExpression(!0,yt);return this.type===S._in||(Me=this.options.ecmaVersion>=6&&this.isContextual("of"))?(D>-1?(this.type===S._in&&this.unexpected(D),y.await=!0):Me&&this.options.ecmaVersion>=8&&(Ut.start===At&&!dt&&Ut.type==="Identifier"&&Ut.name==="async"?this.unexpected():this.options.ecmaVersion>=9&&(y.await=!1)),Ne&&Me&&this.raise(Ut.start,"The left-hand side of a for-of loop may not start with 'let'."),this.toAssignable(Ut,!1,yt),this.checkLValPattern(Ut),this.parseForIn(y,Ut)):(this.checkExpressionErrors(yt,!0),D>-1&&this.unexpected(D),this.parseFor(y,Ut))},rt.parseForAfterInit=function(y,D,G){return(this.type===S._in||this.options.ecmaVersion>=6&&this.isContextual("of"))&&D.declarations.length===1?(this.options.ecmaVersion>=9&&(this.type===S._in?G>-1&&this.unexpected(G):y.await=G>-1),this.parseForIn(y,D)):(G>-1&&this.unexpected(G),this.parseFor(y,D))},rt.parseFunctionStatement=function(y,D,G){return this.next(),this.parseFunction(y,Ct|(G?0:Ke),!1,D)},rt.parseIfStatement=function(y){return this.next(),y.test=this.parseParenExpression(),y.consequent=this.parseStatement("if"),y.alternate=this.eat(S._else)?this.parseStatement("if"):null,this.finishNode(y,"IfStatement")},rt.parseReturnStatement=function(y){return!this.inFunction&&!this.options.allowReturnOutsideFunction&&this.raise(this.start,"'return' outside of function"),this.next(),this.eat(S.semi)||this.insertSemicolon()?y.argument=null:(y.argument=this.parseExpression(),this.semicolon()),this.finishNode(y,"ReturnStatement")},rt.parseSwitchStatement=function(y){this.next(),y.discriminant=this.parseParenExpression(),y.cases=[],this.expect(S.braceL),this.labels.push(St),this.enterScope(0);for(var D,G=!1;this.type!==S.braceR;)if(this.type===S._case||this.type===S._default){var Y=this.type===S._case;D&&this.finishNode(D,"SwitchCase"),y.cases.push(D=this.startNode()),D.consequent=[],this.next(),Y?D.test=this.parseExpression():(G&&this.raiseRecoverable(this.lastTokStart,"Multiple default clauses"),G=!0,D.test=null),this.expect(S.colon)}else D||this.unexpected(),D.consequent.push(this.parseStatement(null));return this.exitScope(),D&&this.finishNode(D,"SwitchCase"),this.next(),this.labels.pop(),this.finishNode(y,"SwitchStatement")},rt.parseThrowStatement=function(y){return this.next(),w.test(this.input.slice(this.lastTokEnd,this.start))&&this.raise(this.lastTokEnd,"Illegal newline after throw"),y.argument=this.parseExpression(),this.semicolon(),this.finishNode(y,"ThrowStatement")};var Ze=[];rt.parseCatchClauseParam=function(){var y=this.parseBindingAtom(),D=y.type==="Identifier";return this.enterScope(D?Ce:0),this.checkLValPattern(y,D?Je:Ie),this.expect(S.parenR),y},rt.parseTryStatement=function(y){if(this.next(),y.block=this.parseBlock(),y.handler=null,this.type===S._catch){var D=this.startNode();this.next(),this.eat(S.parenL)?D.param=this.parseCatchClauseParam():(this.options.ecmaVersion<10&&this.unexpected(),D.param=null,this.enterScope(0)),D.body=this.parseBlock(!1),this.exitScope(),y.handler=this.finishNode(D,"CatchClause")}return y.finalizer=this.eat(S._finally)?this.parseBlock():null,!y.handler&&!y.finalizer&&this.raise(y.start,"Missing catch or finally clause"),this.finishNode(y,"TryStatement")},rt.parseVarStatement=function(y,D,G){return this.next(),this.parseVar(y,!1,D,G),this.semicolon(),this.finishNode(y,"VariableDeclaration")},rt.parseWhileStatement=function(y){return this.next(),y.test=this.parseParenExpression(),this.labels.push(Qe),y.body=this.parseStatement("while"),this.labels.pop(),this.finishNode(y,"WhileStatement")},rt.parseWithStatement=function(y){return this.strict&&this.raise(this.start,"'with' in strict mode"),this.next(),y.object=this.parseParenExpression(),y.body=this.parseStatement("with"),this.finishNode(y,"WithStatement")},rt.parseEmptyStatement=function(y){return this.next(),this.finishNode(y,"EmptyStatement")},rt.parseLabeledStatement=function(y,D,G,Y){for(var ye=0,Ne=this.labels;ye<Ne.length;ye+=1){var Me=Ne[ye];Me.name===D&&this.raise(G.start,"Label '"+D+"' is already declared")}for(var et=this.type.isLoop?"loop":this.type===S._switch?"switch":null,it=this.labels.length-1;it>=0;it--){var dt=this.labels[it];if(dt.statementStart===y.start)dt.statementStart=this.start,dt.kind=et;else break}return this.labels.push({name:D,kind:et,statementStart:this.start}),y.body=this.parseStatement(Y?Y.indexOf("label")===-1?Y+"label":Y:"label"),this.labels.pop(),y.label=G,this.finishNode(y,"LabeledStatement")},rt.parseExpressionStatement=function(y,D){return y.expression=D,this.semicolon(),this.finishNode(y,"ExpressionStatement")},rt.parseBlock=function(y,D,G){for(y===void 0&&(y=!0),D===void 0&&(D=this.startNode()),D.body=[],this.expect(S.braceL),y&&this.enterScope(0);this.type!==S.braceR;){var Y=this.parseStatement(null);D.body.push(Y)}return G&&(this.strict=!1),this.next(),y&&this.exitScope(),this.finishNode(D,"BlockStatement")},rt.parseFor=function(y,D){return y.init=D,this.expect(S.semi),y.test=this.type===S.semi?null:this.parseExpression(),this.expect(S.semi),y.update=this.type===S.parenR?null:this.parseExpression(),this.expect(S.parenR),y.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(y,"ForStatement")},rt.parseForIn=function(y,D){var G=this.type===S._in;return this.next(),D.type==="VariableDeclaration"&&D.declarations[0].init!=null&&(!G||this.options.ecmaVersion<8||this.strict||D.kind!=="var"||D.declarations[0].id.type!=="Identifier")&&this.raise(D.start,(G?"for-in":"for-of")+" loop variable declaration may not have an initializer"),y.left=D,y.right=G?this.parseExpression():this.parseMaybeAssign(),this.expect(S.parenR),y.body=this.parseStatement("for"),this.exitScope(),this.labels.pop(),this.finishNode(y,G?"ForInStatement":"ForOfStatement")},rt.parseVar=function(y,D,G,Y){for(y.declarations=[],y.kind=G;;){var ye=this.startNode();if(this.parseVarId(ye,G),this.eat(S.eq)?ye.init=this.parseMaybeAssign(D):!Y&&G==="const"&&!(this.type===S._in||this.options.ecmaVersion>=6&&this.isContextual("of"))?this.unexpected():!Y&&(G==="using"||G==="await using")&&this.options.ecmaVersion>=17&&this.type!==S._in&&!this.isContextual("of")?this.raise(this.lastTokEnd,"Missing initializer in "+G+" declaration"):!Y&&ye.id.type!=="Identifier"&&!(D&&(this.type===S._in||this.isContextual("of")))?this.raise(this.lastTokEnd,"Complex binding patterns require an initialization value"):ye.init=null,y.declarations.push(this.finishNode(ye,"VariableDeclarator")),!this.eat(S.comma))break}return y},rt.parseVarId=function(y,D){y.id=D==="using"||D==="await using"?this.parseIdent():this.parseBindingAtom(),this.checkLValPattern(y.id,D==="var"?Re:Ie,!1)};var Ct=1,Ke=2,Ge=4;rt.parseFunction=function(y,D,G,Y,ye){this.initFunction(y),(this.options.ecmaVersion>=9||this.options.ecmaVersion>=6&&!Y)&&(this.type===S.star&&D&Ke&&this.unexpected(),y.generator=this.eat(S.star)),this.options.ecmaVersion>=8&&(y.async=!!Y),D&Ct&&(y.id=D&Ge&&this.type!==S.name?null:this.parseIdent(),y.id&&!(D&Ke)&&this.checkLValSimple(y.id,this.strict||y.generator||y.async?this.treatFunctionsAsVar?Re:Ie:W));var Ne=this.yieldPos,Me=this.awaitPos,et=this.awaitIdentPos;return this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(oe(y.async,y.generator)),D&Ct||(y.id=this.type===S.name?this.parseIdent():null),this.parseFunctionParams(y),this.parseFunctionBody(y,G,!1,ye),this.yieldPos=Ne,this.awaitPos=Me,this.awaitIdentPos=et,this.finishNode(y,D&Ct?"FunctionDeclaration":"FunctionExpression")},rt.parseFunctionParams=function(y){this.expect(S.parenL),y.params=this.parseBindingList(S.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams()},rt.parseClass=function(y,D){this.next();var G=this.strict;this.strict=!0,this.parseClassId(y,D),this.parseClassSuper(y);var Y=this.enterClassBody(),ye=this.startNode(),Ne=!1;for(ye.body=[],this.expect(S.braceL);this.type!==S.braceR;){var Me=this.parseClassElement(y.superClass!==null);Me&&(ye.body.push(Me),Me.type==="MethodDefinition"&&Me.kind==="constructor"?(Ne&&this.raiseRecoverable(Me.start,"Duplicate constructor in the same class"),Ne=!0):Me.key&&Me.key.type==="PrivateIdentifier"&&Se(Y,Me)&&this.raiseRecoverable(Me.key.start,"Identifier '#"+Me.key.name+"' has already been declared"))}return this.strict=G,this.next(),y.body=this.finishNode(ye,"ClassBody"),this.exitClassBody(),this.finishNode(y,D?"ClassDeclaration":"ClassExpression")},rt.parseClassElement=function(y){if(this.eat(S.semi))return null;var D=this.options.ecmaVersion,G=this.startNode(),Y="",ye=!1,Ne=!1,Me="method",et=!1;if(this.eatContextual("static")){if(D>=13&&this.eat(S.braceL))return this.parseClassStaticBlock(G),G;this.isClassElementNameStart()||this.type===S.star?et=!0:Y="static"}if(G.static=et,!Y&&D>=8&&this.eatContextual("async")&&((this.isClassElementNameStart()||this.type===S.star)&&!this.canInsertSemicolon()?Ne=!0:Y="async"),!Y&&(D>=9||!Ne)&&this.eat(S.star)&&(ye=!0),!Y&&!Ne&&!ye){var it=this.value;(this.eatContextual("get")||this.eatContextual("set"))&&(this.isClassElementNameStart()?Me=it:Y=it)}if(Y?(G.computed=!1,G.key=this.startNodeAt(this.lastTokStart,this.lastTokStartLoc),G.key.name=Y,this.finishNode(G.key,"Identifier")):this.parseClassElementName(G),D<13||this.type===S.parenL||Me!=="method"||ye||Ne){var dt=!G.static&&j(G,"constructor"),yt=dt&&y;dt&&Me!=="method"&&this.raise(G.key.start,"Constructor can't have get/set modifier"),G.kind=dt?"constructor":Me,this.parseClassMethod(G,ye,Ne,yt)}else this.parseClassField(G);return G},rt.isClassElementNameStart=function(){return this.type===S.name||this.type===S.privateId||this.type===S.num||this.type===S.string||this.type===S.bracketL||this.type.keyword},rt.parseClassElementName=function(y){this.type===S.privateId?(this.value==="constructor"&&this.raise(this.start,"Classes can't have an element named '#constructor'"),y.computed=!1,y.key=this.parsePrivateIdent()):this.parsePropertyName(y)},rt.parseClassMethod=function(y,D,G,Y){var ye=y.key;y.kind==="constructor"?(D&&this.raise(ye.start,"Constructor can't be a generator"),G&&this.raise(ye.start,"Constructor can't be an async method")):y.static&&j(y,"prototype")&&this.raise(ye.start,"Classes may not have a static property named prototype");var Ne=y.value=this.parseMethod(D,G,Y);return y.kind==="get"&&Ne.params.length!==0&&this.raiseRecoverable(Ne.start,"getter should have no params"),y.kind==="set"&&Ne.params.length!==1&&this.raiseRecoverable(Ne.start,"setter should have exactly one param"),y.kind==="set"&&Ne.params[0].type==="RestElement"&&this.raiseRecoverable(Ne.params[0].start,"Setter cannot use rest params"),this.finishNode(y,"MethodDefinition")},rt.parseClassField=function(y){return j(y,"constructor")?this.raise(y.key.start,"Classes can't have a field named 'constructor'"):y.static&&j(y,"prototype")&&this.raise(y.key.start,"Classes can't have a static field named 'prototype'"),this.eat(S.eq)?(this.enterScope(we|Ae),y.value=this.parseMaybeAssign(),this.exitScope()):y.value=null,this.semicolon(),this.finishNode(y,"PropertyDefinition")},rt.parseClassStaticBlock=function(y){y.body=[];var D=this.labels;for(this.labels=[],this.enterScope(ne|Ae);this.type!==S.braceR;){var G=this.parseStatement(null);y.body.push(G)}return this.next(),this.exitScope(),this.labels=D,this.finishNode(y,"StaticBlock")},rt.parseClassId=function(y,D){this.type===S.name?(y.id=this.parseIdent(),D&&this.checkLValSimple(y.id,Ie,!1)):(D===!0&&this.unexpected(),y.id=null)},rt.parseClassSuper=function(y){y.superClass=this.eat(S._extends)?this.parseExprSubscripts(null,!1):null},rt.enterClassBody=function(){var y={declared:Object.create(null),used:[]};return this.privateNameStack.push(y),y.declared},rt.exitClassBody=function(){var y=this.privateNameStack.pop(),D=y.declared,G=y.used;if(this.options.checkPrivateFields)for(var Y=this.privateNameStack.length,ye=Y===0?null:this.privateNameStack[Y-1],Ne=0;Ne<G.length;++Ne){var Me=G[Ne];$(D,Me.name)||(ye?ye.used.push(Me):this.raiseRecoverable(Me.start,"Private field '#"+Me.name+"' must be declared in an enclosing class"))}};function Se(y,D){var G=D.key.name,Y=y[G],ye="true";return D.type==="MethodDefinition"&&(D.kind==="get"||D.kind==="set")&&(ye=(D.static?"s":"i")+D.kind),Y==="iget"&&ye==="iset"||Y==="iset"&&ye==="iget"||Y==="sget"&&ye==="sset"||Y==="sset"&&ye==="sget"?(y[G]="true",!1):Y?!0:(y[G]=ye,!1)}function j(y,D){var G=y.computed,Y=y.key;return!G&&(Y.type==="Identifier"&&Y.name===D||Y.type==="Literal"&&Y.value===D)}rt.parseExportAllDeclaration=function(y,D){return this.options.ecmaVersion>=11&&(this.eatContextual("as")?(y.exported=this.parseModuleExportName(),this.checkExport(D,y.exported,this.lastTokStart)):y.exported=null),this.expectContextual("from"),this.type!==S.string&&this.unexpected(),y.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(y.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(y,"ExportAllDeclaration")},rt.parseExport=function(y,D){if(this.next(),this.eat(S.star))return this.parseExportAllDeclaration(y,D);if(this.eat(S._default))return this.checkExport(D,"default",this.lastTokStart),y.declaration=this.parseExportDefaultDeclaration(),this.finishNode(y,"ExportDefaultDeclaration");if(this.shouldParseExportStatement())y.declaration=this.parseExportDeclaration(y),y.declaration.type==="VariableDeclaration"?this.checkVariableExport(D,y.declaration.declarations):this.checkExport(D,y.declaration.id,y.declaration.id.start),y.specifiers=[],y.source=null,this.options.ecmaVersion>=16&&(y.attributes=[]);else{if(y.declaration=null,y.specifiers=this.parseExportSpecifiers(D),this.eatContextual("from"))this.type!==S.string&&this.unexpected(),y.source=this.parseExprAtom(),this.options.ecmaVersion>=16&&(y.attributes=this.parseWithClause());else{for(var G=0,Y=y.specifiers;G<Y.length;G+=1){var ye=Y[G];this.checkUnreserved(ye.local),this.checkLocalExport(ye.local),ye.local.type==="Literal"&&this.raise(ye.local.start,"A string literal cannot be used as an exported binding without `from`.")}y.source=null,this.options.ecmaVersion>=16&&(y.attributes=[])}this.semicolon()}return this.finishNode(y,"ExportNamedDeclaration")},rt.parseExportDeclaration=function(y){return this.parseStatement(null)},rt.parseExportDefaultDeclaration=function(){var y;if(this.type===S._function||(y=this.isAsyncFunction())){var D=this.startNode();return this.next(),y&&this.next(),this.parseFunction(D,Ct|Ge,!1,y)}else if(this.type===S._class){var G=this.startNode();return this.parseClass(G,"nullableID")}else{var Y=this.parseMaybeAssign();return this.semicolon(),Y}},rt.checkExport=function(y,D,G){y&&(typeof D!="string"&&(D=D.type==="Identifier"?D.name:D.value),$(y,D)&&this.raiseRecoverable(G,"Duplicate export '"+D+"'"),y[D]=!0)},rt.checkPatternExport=function(y,D){var G=D.type;if(G==="Identifier")this.checkExport(y,D,D.start);else if(G==="ObjectPattern")for(var Y=0,ye=D.properties;Y<ye.length;Y+=1){var Ne=ye[Y];this.checkPatternExport(y,Ne)}else if(G==="ArrayPattern")for(var Me=0,et=D.elements;Me<et.length;Me+=1){var it=et[Me];it&&this.checkPatternExport(y,it)}else G==="Property"?this.checkPatternExport(y,D.value):G==="AssignmentPattern"?this.checkPatternExport(y,D.left):G==="RestElement"&&this.checkPatternExport(y,D.argument)},rt.checkVariableExport=function(y,D){if(y)for(var G=0,Y=D;G<Y.length;G+=1){var ye=Y[G];this.checkPatternExport(y,ye.id)}},rt.shouldParseExportStatement=function(){return this.type.keyword==="var"||this.type.keyword==="const"||this.type.keyword==="class"||this.type.keyword==="function"||this.isLet()||this.isAsyncFunction()},rt.parseExportSpecifier=function(y){var D=this.startNode();return D.local=this.parseModuleExportName(),D.exported=this.eatContextual("as")?this.parseModuleExportName():D.local,this.checkExport(y,D.exported,D.exported.start),this.finishNode(D,"ExportSpecifier")},rt.parseExportSpecifiers=function(y){var D=[],G=!0;for(this.expect(S.braceL);!this.eat(S.braceR);){if(G)G=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;D.push(this.parseExportSpecifier(y))}return D},rt.parseImport=function(y){return this.next(),this.type===S.string?(y.specifiers=Ze,y.source=this.parseExprAtom()):(y.specifiers=this.parseImportSpecifiers(),this.expectContextual("from"),y.source=this.type===S.string?this.parseExprAtom():this.unexpected()),this.options.ecmaVersion>=16&&(y.attributes=this.parseWithClause()),this.semicolon(),this.finishNode(y,"ImportDeclaration")},rt.parseImportSpecifier=function(){var y=this.startNode();return y.imported=this.parseModuleExportName(),this.eatContextual("as")?y.local=this.parseIdent():(this.checkUnreserved(y.imported),y.local=y.imported),this.checkLValSimple(y.local,Ie),this.finishNode(y,"ImportSpecifier")},rt.parseImportDefaultSpecifier=function(){var y=this.startNode();return y.local=this.parseIdent(),this.checkLValSimple(y.local,Ie),this.finishNode(y,"ImportDefaultSpecifier")},rt.parseImportNamespaceSpecifier=function(){var y=this.startNode();return this.next(),this.expectContextual("as"),y.local=this.parseIdent(),this.checkLValSimple(y.local,Ie),this.finishNode(y,"ImportNamespaceSpecifier")},rt.parseImportSpecifiers=function(){var y=[],D=!0;if(this.type===S.name&&(y.push(this.parseImportDefaultSpecifier()),!this.eat(S.comma)))return y;if(this.type===S.star)return y.push(this.parseImportNamespaceSpecifier()),y;for(this.expect(S.braceL);!this.eat(S.braceR);){if(D)D=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;y.push(this.parseImportSpecifier())}return y},rt.parseWithClause=function(){var y=[];if(!this.eat(S._with))return y;this.expect(S.braceL);for(var D={},G=!0;!this.eat(S.braceR);){if(G)G=!1;else if(this.expect(S.comma),this.afterTrailingComma(S.braceR))break;var Y=this.parseImportAttribute(),ye=Y.key.type==="Identifier"?Y.key.name:Y.key.value;$(D,ye)&&this.raiseRecoverable(Y.key.start,"Duplicate attribute key '"+ye+"'"),D[ye]=!0,y.push(Y)}return y},rt.parseImportAttribute=function(){var y=this.startNode();return y.key=this.type===S.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never"),this.expect(S.colon),this.type!==S.string&&this.unexpected(),y.value=this.parseExprAtom(),this.finishNode(y,"ImportAttribute")},rt.parseModuleExportName=function(){if(this.options.ecmaVersion>=13&&this.type===S.string){var y=this.parseLiteral(this.value);return K.test(y.value)&&this.raise(y.start,"An export name cannot include a lone surrogate."),y}return this.parseIdent(!0)},rt.adaptDirectivePrologue=function(y){for(var D=0;D<y.length&&this.isDirectiveCandidate(y[D]);++D)y[D].directive=y[D].expression.raw.slice(1,-1)},rt.isDirectiveCandidate=function(y){return this.options.ecmaVersion>=5&&y.type==="ExpressionStatement"&&y.expression.type==="Literal"&&typeof y.expression.value=="string"&&(this.input[y.start]==='"'||this.input[y.start]==="'")};var U=tt.prototype;U.toAssignable=function(y,D,G){if(this.options.ecmaVersion>=6&&y)switch(y.type){case"Identifier":this.inAsync&&y.name==="await"&&this.raise(y.start,"Cannot use 'await' as identifier inside an async function");break;case"ObjectPattern":case"ArrayPattern":case"AssignmentPattern":case"RestElement":break;case"ObjectExpression":y.type="ObjectPattern",G&&this.checkPatternErrors(G,!0);for(var Y=0,ye=y.properties;Y<ye.length;Y+=1){var Ne=ye[Y];this.toAssignable(Ne,D),Ne.type==="RestElement"&&(Ne.argument.type==="ArrayPattern"||Ne.argument.type==="ObjectPattern")&&this.raise(Ne.argument.start,"Unexpected token")}break;case"Property":y.kind!=="init"&&this.raise(y.key.start,"Object pattern can't contain getter or setter"),this.toAssignable(y.value,D);break;case"ArrayExpression":y.type="ArrayPattern",G&&this.checkPatternErrors(G,!0),this.toAssignableList(y.elements,D);break;case"SpreadElement":y.type="RestElement",this.toAssignable(y.argument,D),y.argument.type==="AssignmentPattern"&&this.raise(y.argument.start,"Rest elements cannot have a default value");break;case"AssignmentExpression":y.operator!=="="&&this.raise(y.left.end,"Only '=' operator can be used for specifying default value."),y.type="AssignmentPattern",delete y.operator,this.toAssignable(y.left,D);break;case"ParenthesizedExpression":this.toAssignable(y.expression,D,G);break;case"ChainExpression":this.raiseRecoverable(y.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":if(!D)break;default:this.raise(y.start,"Assigning to rvalue")}else G&&this.checkPatternErrors(G,!0);return y},U.toAssignableList=function(y,D){for(var G=y.length,Y=0;Y<G;Y++){var ye=y[Y];ye&&this.toAssignable(ye,D)}if(G){var Ne=y[G-1];this.options.ecmaVersion===6&&D&&Ne&&Ne.type==="RestElement"&&Ne.argument.type!=="Identifier"&&this.unexpected(Ne.argument.start)}return y},U.parseSpread=function(y){var D=this.startNode();return this.next(),D.argument=this.parseMaybeAssign(!1,y),this.finishNode(D,"SpreadElement")},U.parseRestBinding=function(){var y=this.startNode();return this.next(),this.options.ecmaVersion===6&&this.type!==S.name&&this.unexpected(),y.argument=this.parseBindingAtom(),this.finishNode(y,"RestElement")},U.parseBindingAtom=function(){if(this.options.ecmaVersion>=6)switch(this.type){case S.bracketL:var y=this.startNode();return this.next(),y.elements=this.parseBindingList(S.bracketR,!0,!0),this.finishNode(y,"ArrayPattern");case S.braceL:return this.parseObj(!0)}return this.parseIdent()},U.parseBindingList=function(y,D,G,Y){for(var ye=[],Ne=!0;!this.eat(y);)if(Ne?Ne=!1:this.expect(S.comma),D&&this.type===S.comma)ye.push(null);else{if(G&&this.afterTrailingComma(y))break;if(this.type===S.ellipsis){var Me=this.parseRestBinding();this.parseBindingListItem(Me),ye.push(Me),this.type===S.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.expect(y);break}else ye.push(this.parseAssignableListItem(Y))}return ye},U.parseAssignableListItem=function(y){var D=this.parseMaybeDefault(this.start,this.startLoc);return this.parseBindingListItem(D),D},U.parseBindingListItem=function(y){return y},U.parseMaybeDefault=function(y,D,G){if(G=G||this.parseBindingAtom(),this.options.ecmaVersion<6||!this.eat(S.eq))return G;var Y=this.startNodeAt(y,D);return Y.left=G,Y.right=this.parseMaybeAssign(),this.finishNode(Y,"AssignmentPattern")},U.checkLValSimple=function(y,D,G){D===void 0&&(D=Te);var Y=D!==Te;switch(y.type){case"Identifier":this.strict&&this.reservedWordsStrictBind.test(y.name)&&this.raiseRecoverable(y.start,(Y?"Binding ":"Assigning to ")+y.name+" in strict mode"),Y&&(D===Ie&&y.name==="let"&&this.raiseRecoverable(y.start,"let is disallowed as a lexically bound name"),G&&($(G,y.name)&&this.raiseRecoverable(y.start,"Argument name clash"),G[y.name]=!0),D!==ut&&this.declareName(y.name,D,y.start));break;case"ChainExpression":this.raiseRecoverable(y.start,"Optional chaining cannot appear in left-hand side");break;case"MemberExpression":Y&&this.raiseRecoverable(y.start,"Binding member expression");break;case"ParenthesizedExpression":return Y&&this.raiseRecoverable(y.start,"Binding parenthesized expression"),this.checkLValSimple(y.expression,D,G);default:this.raise(y.start,(Y?"Binding":"Assigning to")+" rvalue")}},U.checkLValPattern=function(y,D,G){switch(D===void 0&&(D=Te),y.type){case"ObjectPattern":for(var Y=0,ye=y.properties;Y<ye.length;Y+=1){var Ne=ye[Y];this.checkLValInnerPattern(Ne,D,G)}break;case"ArrayPattern":for(var Me=0,et=y.elements;Me<et.length;Me+=1){var it=et[Me];it&&this.checkLValInnerPattern(it,D,G)}break;default:this.checkLValSimple(y,D,G)}},U.checkLValInnerPattern=function(y,D,G){switch(D===void 0&&(D=Te),y.type){case"Property":this.checkLValInnerPattern(y.value,D,G);break;case"AssignmentPattern":this.checkLValPattern(y.left,D,G);break;case"RestElement":this.checkLValPattern(y.argument,D,G);break;default:this.checkLValPattern(y,D,G)}};var V=function(D,G,Y,ye,Ne){this.token=D,this.isExpr=!!G,this.preserveSpace=!!Y,this.override=ye,this.generator=!!Ne},Q={b_stat:new V("{",!1),b_expr:new V("{",!0),b_tmpl:new V("${",!1),p_stat:new V("(",!1),p_expr:new V("(",!0),q_tmpl:new V("`",!0,!0,function(y){return y.tryReadTemplateToken()}),f_stat:new V("function",!1),f_expr:new V("function",!0),f_expr_gen:new V("function",!0,!1,null,!0),f_gen:new V("function",!1,!1,null,!0)},le=tt.prototype;le.initialContext=function(){return[Q.b_stat]},le.curContext=function(){return this.context[this.context.length-1]},le.braceIsBlock=function(y){var D=this.curContext();return D===Q.f_expr||D===Q.f_stat?!0:y===S.colon&&(D===Q.b_stat||D===Q.b_expr)?!D.isExpr:y===S._return||y===S.name&&this.exprAllowed?w.test(this.input.slice(this.lastTokEnd,this.start)):y===S._else||y===S.semi||y===S.eof||y===S.parenR||y===S.arrow?!0:y===S.braceL?D===Q.b_stat:y===S._var||y===S._const||y===S.name?!1:!this.exprAllowed},le.inGeneratorContext=function(){for(var y=this.context.length-1;y>=1;y--){var D=this.context[y];if(D.token==="function")return D.generator}return!1},le.updateContext=function(y){var D,G=this.type;G.keyword&&y===S.dot?this.exprAllowed=!1:(D=G.updateContext)?D.call(this,y):this.exprAllowed=G.beforeExpr},le.overrideContext=function(y){this.curContext()!==y&&(this.context[this.context.length-1]=y)},S.parenR.updateContext=S.braceR.updateContext=function(){if(this.context.length===1){this.exprAllowed=!0;return}var y=this.context.pop();y===Q.b_stat&&this.curContext().token==="function"&&(y=this.context.pop()),this.exprAllowed=!y.isExpr},S.braceL.updateContext=function(y){this.context.push(this.braceIsBlock(y)?Q.b_stat:Q.b_expr),this.exprAllowed=!0},S.dollarBraceL.updateContext=function(){this.context.push(Q.b_tmpl),this.exprAllowed=!0},S.parenL.updateContext=function(y){var D=y===S._if||y===S._for||y===S._with||y===S._while;this.context.push(D?Q.p_stat:Q.p_expr),this.exprAllowed=!0},S.incDec.updateContext=function(){},S._function.updateContext=S._class.updateContext=function(y){y.beforeExpr&&y!==S._else&&!(y===S.semi&&this.curContext()!==Q.p_stat)&&!(y===S._return&&w.test(this.input.slice(this.lastTokEnd,this.start)))&&!((y===S.colon||y===S.braceL)&&this.curContext()===Q.b_stat)?this.context.push(Q.f_expr):this.context.push(Q.f_stat),this.exprAllowed=!1},S.colon.updateContext=function(){this.curContext().token==="function"&&this.context.pop(),this.exprAllowed=!0},S.backQuote.updateContext=function(){this.curContext()===Q.q_tmpl?this.context.pop():this.context.push(Q.q_tmpl),this.exprAllowed=!1},S.star.updateContext=function(y){if(y===S._function){var D=this.context.length-1;this.context[D]===Q.f_expr?this.context[D]=Q.f_expr_gen:this.context[D]=Q.f_gen}this.exprAllowed=!0},S.name.updateContext=function(y){var D=!1;this.options.ecmaVersion>=6&&y!==S.dot&&(this.value==="of"&&!this.exprAllowed||this.value==="yield"&&this.inGeneratorContext())&&(D=!0),this.exprAllowed=D};var te=tt.prototype;te.checkPropClash=function(y,D,G){if(!(this.options.ecmaVersion>=9&&y.type==="SpreadElement")&&!(this.options.ecmaVersion>=6&&(y.computed||y.method||y.shorthand))){var Y=y.key,ye;switch(Y.type){case"Identifier":ye=Y.name;break;case"Literal":ye=String(Y.value);break;default:return}var Ne=y.kind;if(this.options.ecmaVersion>=6){ye==="__proto__"&&Ne==="init"&&(D.proto&&(G?G.doubleProto<0&&(G.doubleProto=Y.start):this.raiseRecoverable(Y.start,"Redefinition of __proto__ property")),D.proto=!0);return}ye="$"+ye;var Me=D[ye];if(Me){var et;Ne==="init"?et=this.strict&&Me.init||Me.get||Me.set:et=Me.init||Me[Ne],et&&this.raiseRecoverable(Y.start,"Redefinition of property")}else Me=D[ye]={init:!1,get:!1,set:!1};Me[Ne]=!0}},te.parseExpression=function(y,D){var G=this.start,Y=this.startLoc,ye=this.parseMaybeAssign(y,D);if(this.type===S.comma){var Ne=this.startNodeAt(G,Y);for(Ne.expressions=[ye];this.eat(S.comma);)Ne.expressions.push(this.parseMaybeAssign(y,D));return this.finishNode(Ne,"SequenceExpression")}return ye},te.parseMaybeAssign=function(y,D,G){if(this.isContextual("yield")){if(this.inGenerator)return this.parseYield(y);this.exprAllowed=!1}var Y=!1,ye=-1,Ne=-1,Me=-1;D?(ye=D.parenthesizedAssign,Ne=D.trailingComma,Me=D.doubleProto,D.parenthesizedAssign=D.trailingComma=-1):(D=new mt,Y=!0);var et=this.start,it=this.startLoc;(this.type===S.parenL||this.type===S.name)&&(this.potentialArrowAt=this.start,this.potentialArrowInForAwait=y==="await");var dt=this.parseMaybeConditional(y,D);if(G&&(dt=G.call(this,dt,et,it)),this.type.isAssign){var yt=this.startNodeAt(et,it);return yt.operator=this.value,this.type===S.eq&&(dt=this.toAssignable(dt,!1,D)),Y||(D.parenthesizedAssign=D.trailingComma=D.doubleProto=-1),D.shorthandAssign>=dt.start&&(D.shorthandAssign=-1),this.type===S.eq?this.checkLValPattern(dt):this.checkLValSimple(dt),yt.left=dt,this.next(),yt.right=this.parseMaybeAssign(y),Me>-1&&(D.doubleProto=Me),this.finishNode(yt,"AssignmentExpression")}else Y&&this.checkExpressionErrors(D,!0);return ye>-1&&(D.parenthesizedAssign=ye),Ne>-1&&(D.trailingComma=Ne),dt},te.parseMaybeConditional=function(y,D){var G=this.start,Y=this.startLoc,ye=this.parseExprOps(y,D);if(this.checkExpressionErrors(D))return ye;if(this.eat(S.question)){var Ne=this.startNodeAt(G,Y);return Ne.test=ye,Ne.consequent=this.parseMaybeAssign(),this.expect(S.colon),Ne.alternate=this.parseMaybeAssign(y),this.finishNode(Ne,"ConditionalExpression")}return ye},te.parseExprOps=function(y,D){var G=this.start,Y=this.startLoc,ye=this.parseMaybeUnary(D,!1,!1,y);return this.checkExpressionErrors(D)||ye.start===G&&ye.type==="ArrowFunctionExpression"?ye:this.parseExprOp(ye,G,Y,-1,y)},te.parseExprOp=function(y,D,G,Y,ye){var Ne=this.type.binop;if(Ne!=null&&(!ye||this.type!==S._in)&&Ne>Y){var Me=this.type===S.logicalOR||this.type===S.logicalAND,et=this.type===S.coalesce;et&&(Ne=S.logicalAND.binop);var it=this.value;this.next();var dt=this.start,yt=this.startLoc,At=this.parseExprOp(this.parseMaybeUnary(null,!1,!1,ye),dt,yt,Ne,ye),Ut=this.buildBinary(D,G,y,At,it,Me||et);return(Me&&this.type===S.coalesce||et&&(this.type===S.logicalOR||this.type===S.logicalAND))&&this.raiseRecoverable(this.start,"Logical expressions and coalesce expressions cannot be mixed. Wrap either by parentheses"),this.parseExprOp(Ut,D,G,Y,ye)}return y},te.buildBinary=function(y,D,G,Y,ye,Ne){Y.type==="PrivateIdentifier"&&this.raise(Y.start,"Private identifier can only be left side of binary expression");var Me=this.startNodeAt(y,D);return Me.left=G,Me.operator=ye,Me.right=Y,this.finishNode(Me,Ne?"LogicalExpression":"BinaryExpression")},te.parseMaybeUnary=function(y,D,G,Y){var ye=this.start,Ne=this.startLoc,Me;if(this.isContextual("await")&&this.canAwait)Me=this.parseAwait(Y),D=!0;else if(this.type.prefix){var et=this.startNode(),it=this.type===S.incDec;et.operator=this.value,et.prefix=!0,this.next(),et.argument=this.parseMaybeUnary(null,!0,it,Y),this.checkExpressionErrors(y,!0),it?this.checkLValSimple(et.argument):this.strict&&et.operator==="delete"&&q(et.argument)?this.raiseRecoverable(et.start,"Deleting local variable in strict mode"):et.operator==="delete"&&se(et.argument)?this.raiseRecoverable(et.start,"Private fields can not be deleted"):D=!0,Me=this.finishNode(et,it?"UpdateExpression":"UnaryExpression")}else if(!D&&this.type===S.privateId)(Y||this.privateNameStack.length===0)&&this.options.checkPrivateFields&&this.unexpected(),Me=this.parsePrivateIdent(),this.type!==S._in&&this.unexpected();else{if(Me=this.parseExprSubscripts(y,Y),this.checkExpressionErrors(y))return Me;for(;this.type.postfix&&!this.canInsertSemicolon();){var dt=this.startNodeAt(ye,Ne);dt.operator=this.value,dt.prefix=!1,dt.argument=Me,this.checkLValSimple(Me),this.next(),Me=this.finishNode(dt,"UpdateExpression")}}if(!G&&this.eat(S.starstar))if(D)this.unexpected(this.lastTokStart);else return this.buildBinary(ye,Ne,Me,this.parseMaybeUnary(null,!1,!1,Y),"**",!1);else return Me};function q(y){return y.type==="Identifier"||y.type==="ParenthesizedExpression"&&q(y.expression)}function se(y){return y.type==="MemberExpression"&&y.property.type==="PrivateIdentifier"||y.type==="ChainExpression"&&se(y.expression)||y.type==="ParenthesizedExpression"&&se(y.expression)}te.parseExprSubscripts=function(y,D){var G=this.start,Y=this.startLoc,ye=this.parseExprAtom(y,D);if(ye.type==="ArrowFunctionExpression"&&this.input.slice(this.lastTokStart,this.lastTokEnd)!==")")return ye;var Ne=this.parseSubscripts(ye,G,Y,!1,D);return y&&Ne.type==="MemberExpression"&&(y.parenthesizedAssign>=Ne.start&&(y.parenthesizedAssign=-1),y.parenthesizedBind>=Ne.start&&(y.parenthesizedBind=-1),y.trailingComma>=Ne.start&&(y.trailingComma=-1)),Ne},te.parseSubscripts=function(y,D,G,Y,ye){for(var Ne=this.options.ecmaVersion>=8&&y.type==="Identifier"&&y.name==="async"&&this.lastTokEnd===y.end&&!this.canInsertSemicolon()&&y.end-y.start===5&&this.potentialArrowAt===y.start,Me=!1;;){var et=this.parseSubscript(y,D,G,Y,Ne,Me,ye);if(et.optional&&(Me=!0),et===y||et.type==="ArrowFunctionExpression"){if(Me){var it=this.startNodeAt(D,G);it.expression=et,et=this.finishNode(it,"ChainExpression")}return et}y=et}},te.shouldParseAsyncArrow=function(){return!this.canInsertSemicolon()&&this.eat(S.arrow)},te.parseSubscriptAsyncArrow=function(y,D,G,Y){return this.parseArrowExpression(this.startNodeAt(y,D),G,!0,Y)},te.parseSubscript=function(y,D,G,Y,ye,Ne,Me){var et=this.options.ecmaVersion>=11,it=et&&this.eat(S.questionDot);Y&&it&&this.raise(this.lastTokStart,"Optional chaining cannot appear in the callee of new expressions");var dt=this.eat(S.bracketL);if(dt||it&&this.type!==S.parenL&&this.type!==S.backQuote||this.eat(S.dot)){var yt=this.startNodeAt(D,G);yt.object=y,dt?(yt.property=this.parseExpression(),this.expect(S.bracketR)):this.type===S.privateId&&y.type!=="Super"?yt.property=this.parsePrivateIdent():yt.property=this.parseIdent(this.options.allowReserved!=="never"),yt.computed=!!dt,et&&(yt.optional=it),y=this.finishNode(yt,"MemberExpression")}else if(!Y&&this.eat(S.parenL)){var At=new mt,Ut=this.yieldPos,xe=this.awaitPos,_e=this.awaitIdentPos;this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0;var Ve=this.parseExprList(S.parenR,this.options.ecmaVersion>=8,!1,At);if(ye&&!it&&this.shouldParseAsyncArrow())return this.checkPatternErrors(At,!1),this.checkYieldAwaitInDefaultParams(),this.awaitIdentPos>0&&this.raise(this.awaitIdentPos,"Cannot use 'await' as identifier inside an async function"),this.yieldPos=Ut,this.awaitPos=xe,this.awaitIdentPos=_e,this.parseSubscriptAsyncArrow(D,G,Ve,Me);this.checkExpressionErrors(At,!0),this.yieldPos=Ut||this.yieldPos,this.awaitPos=xe||this.awaitPos,this.awaitIdentPos=_e||this.awaitIdentPos;var ct=this.startNodeAt(D,G);ct.callee=y,ct.arguments=Ve,et&&(ct.optional=it),y=this.finishNode(ct,"CallExpression")}else if(this.type===S.backQuote){(it||Ne)&&this.raise(this.start,"Optional chaining cannot appear in the tag of tagged template expressions");var vt=this.startNodeAt(D,G);vt.tag=y,vt.quasi=this.parseTemplate({isTagged:!0}),y=this.finishNode(vt,"TaggedTemplateExpression")}return y},te.parseExprAtom=function(y,D,G){this.type===S.slash&&this.readRegexp();var Y,ye=this.potentialArrowAt===this.start;switch(this.type){case S._super:return this.allowSuper||this.raise(this.start,"'super' keyword outside a method"),Y=this.startNode(),this.next(),this.type===S.parenL&&!this.allowDirectSuper&&this.raise(Y.start,"super() call outside constructor of a subclass"),this.type!==S.dot&&this.type!==S.bracketL&&this.type!==S.parenL&&this.unexpected(),this.finishNode(Y,"Super");case S._this:return Y=this.startNode(),this.next(),this.finishNode(Y,"ThisExpression");case S.name:var Ne=this.start,Me=this.startLoc,et=this.containsEsc,it=this.parseIdent(!1);if(this.options.ecmaVersion>=8&&!et&&it.name==="async"&&!this.canInsertSemicolon()&&this.eat(S._function))return this.overrideContext(Q.f_expr),this.parseFunction(this.startNodeAt(Ne,Me),0,!1,!0,D);if(ye&&!this.canInsertSemicolon()){if(this.eat(S.arrow))return this.parseArrowExpression(this.startNodeAt(Ne,Me),[it],!1,D);if(this.options.ecmaVersion>=8&&it.name==="async"&&this.type===S.name&&!et&&(!this.potentialArrowInForAwait||this.value!=="of"||this.containsEsc))return it=this.parseIdent(!1),(this.canInsertSemicolon()||!this.eat(S.arrow))&&this.unexpected(),this.parseArrowExpression(this.startNodeAt(Ne,Me),[it],!0,D)}return it;case S.regexp:var dt=this.value;return Y=this.parseLiteral(dt.value),Y.regex={pattern:dt.pattern,flags:dt.flags},Y;case S.num:case S.string:return this.parseLiteral(this.value);case S._null:case S._true:case S._false:return Y=this.startNode(),Y.value=this.type===S._null?null:this.type===S._true,Y.raw=this.type.keyword,this.next(),this.finishNode(Y,"Literal");case S.parenL:var yt=this.start,At=this.parseParenAndDistinguishExpression(ye,D);return y&&(y.parenthesizedAssign<0&&!this.isSimpleAssignTarget(At)&&(y.parenthesizedAssign=yt),y.parenthesizedBind<0&&(y.parenthesizedBind=yt)),At;case S.bracketL:return Y=this.startNode(),this.next(),Y.elements=this.parseExprList(S.bracketR,!0,!0,y),this.finishNode(Y,"ArrayExpression");case S.braceL:return this.overrideContext(Q.b_expr),this.parseObj(!1,y);case S._function:return Y=this.startNode(),this.next(),this.parseFunction(Y,0);case S._class:return this.parseClass(this.startNode(),!1);case S._new:return this.parseNew();case S.backQuote:return this.parseTemplate();case S._import:return this.options.ecmaVersion>=11?this.parseExprImport(G):this.unexpected();default:return this.parseExprAtomDefault()}},te.parseExprAtomDefault=function(){this.unexpected()},te.parseExprImport=function(y){var D=this.startNode();if(this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword import"),this.next(),this.type===S.parenL&&!y)return this.parseDynamicImport(D);if(this.type===S.dot){var G=this.startNodeAt(D.start,D.loc&&D.loc.start);return G.name="import",D.meta=this.finishNode(G,"Identifier"),this.parseImportMeta(D)}else this.unexpected()},te.parseDynamicImport=function(y){if(this.next(),y.source=this.parseMaybeAssign(),this.options.ecmaVersion>=16)this.eat(S.parenR)?y.options=null:(this.expect(S.comma),this.afterTrailingComma(S.parenR)?y.options=null:(y.options=this.parseMaybeAssign(),this.eat(S.parenR)||(this.expect(S.comma),this.afterTrailingComma(S.parenR)||this.unexpected())));else if(!this.eat(S.parenR)){var D=this.start;this.eat(S.comma)&&this.eat(S.parenR)?this.raiseRecoverable(D,"Trailing comma is not allowed in import()"):this.unexpected(D)}return this.finishNode(y,"ImportExpression")},te.parseImportMeta=function(y){this.next();var D=this.containsEsc;return y.property=this.parseIdent(!0),y.property.name!=="meta"&&this.raiseRecoverable(y.property.start,"The only valid meta property for import is 'import.meta'"),D&&this.raiseRecoverable(y.start,"'import.meta' must not contain escaped characters"),this.options.sourceType!=="module"&&!this.options.allowImportExportEverywhere&&this.raiseRecoverable(y.start,"Cannot use 'import.meta' outside a module"),this.finishNode(y,"MetaProperty")},te.parseLiteral=function(y){var D=this.startNode();return D.value=y,D.raw=this.input.slice(this.start,this.end),D.raw.charCodeAt(D.raw.length-1)===110&&(D.bigint=D.value!=null?D.value.toString():D.raw.slice(0,-1).replace(/_/g,"")),this.next(),this.finishNode(D,"Literal")},te.parseParenExpression=function(){this.expect(S.parenL);var y=this.parseExpression();return this.expect(S.parenR),y},te.shouldParseArrow=function(y){return!this.canInsertSemicolon()},te.parseParenAndDistinguishExpression=function(y,D){var G=this.start,Y=this.startLoc,ye,Ne=this.options.ecmaVersion>=8;if(this.options.ecmaVersion>=6){this.next();var Me=this.start,et=this.startLoc,it=[],dt=!0,yt=!1,At=new mt,Ut=this.yieldPos,xe=this.awaitPos,_e;for(this.yieldPos=0,this.awaitPos=0;this.type!==S.parenR;)if(dt?dt=!1:this.expect(S.comma),Ne&&this.afterTrailingComma(S.parenR,!0)){yt=!0;break}else if(this.type===S.ellipsis){_e=this.start,it.push(this.parseParenItem(this.parseRestBinding())),this.type===S.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element");break}else it.push(this.parseMaybeAssign(!1,At,this.parseParenItem));var Ve=this.lastTokEnd,ct=this.lastTokEndLoc;if(this.expect(S.parenR),y&&this.shouldParseArrow(it)&&this.eat(S.arrow))return this.checkPatternErrors(At,!1),this.checkYieldAwaitInDefaultParams(),this.yieldPos=Ut,this.awaitPos=xe,this.parseParenArrowList(G,Y,it,D);(!it.length||yt)&&this.unexpected(this.lastTokStart),_e&&this.unexpected(_e),this.checkExpressionErrors(At,!0),this.yieldPos=Ut||this.yieldPos,this.awaitPos=xe||this.awaitPos,it.length>1?(ye=this.startNodeAt(Me,et),ye.expressions=it,this.finishNodeAt(ye,"SequenceExpression",Ve,ct)):ye=it[0]}else ye=this.parseParenExpression();if(this.options.preserveParens){var vt=this.startNodeAt(G,Y);return vt.expression=ye,this.finishNode(vt,"ParenthesizedExpression")}else return ye},te.parseParenItem=function(y){return y},te.parseParenArrowList=function(y,D,G,Y){return this.parseArrowExpression(this.startNodeAt(y,D),G,!1,Y)};var ue=[];te.parseNew=function(){this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword new");var y=this.startNode();if(this.next(),this.options.ecmaVersion>=6&&this.type===S.dot){var D=this.startNodeAt(y.start,y.loc&&y.loc.start);D.name="new",y.meta=this.finishNode(D,"Identifier"),this.next();var G=this.containsEsc;return y.property=this.parseIdent(!0),y.property.name!=="target"&&this.raiseRecoverable(y.property.start,"The only valid meta property for new is 'new.target'"),G&&this.raiseRecoverable(y.start,"'new.target' must not contain escaped characters"),this.allowNewDotTarget||this.raiseRecoverable(y.start,"'new.target' can only be used in functions and class static block"),this.finishNode(y,"MetaProperty")}var Y=this.start,ye=this.startLoc;return y.callee=this.parseSubscripts(this.parseExprAtom(null,!1,!0),Y,ye,!0,!1),this.eat(S.parenL)?y.arguments=this.parseExprList(S.parenR,this.options.ecmaVersion>=8,!1):y.arguments=ue,this.finishNode(y,"NewExpression")},te.parseTemplateElement=function(y){var D=y.isTagged,G=this.startNode();return this.type===S.invalidTemplate?(D||this.raiseRecoverable(this.start,"Bad escape sequence in untagged template literal"),G.value={raw:this.value.replace(/\r\n?/g,`
|
|
4
|
+
`),cooked:null}):G.value={raw:this.input.slice(this.start,this.end).replace(/\r\n?/g,`
|
|
5
|
+
`),cooked:this.value},this.next(),G.tail=this.type===S.backQuote,this.finishNode(G,"TemplateElement")},te.parseTemplate=function(y){y===void 0&&(y={});var D=y.isTagged;D===void 0&&(D=!1);var G=this.startNode();this.next(),G.expressions=[];var Y=this.parseTemplateElement({isTagged:D});for(G.quasis=[Y];!Y.tail;)this.type===S.eof&&this.raise(this.pos,"Unterminated template literal"),this.expect(S.dollarBraceL),G.expressions.push(this.parseExpression()),this.expect(S.braceR),G.quasis.push(Y=this.parseTemplateElement({isTagged:D}));return this.next(),this.finishNode(G,"TemplateLiteral")},te.isAsyncProp=function(y){return!y.computed&&y.key.type==="Identifier"&&y.key.name==="async"&&(this.type===S.name||this.type===S.num||this.type===S.string||this.type===S.bracketL||this.type.keyword||this.options.ecmaVersion>=9&&this.type===S.star)&&!w.test(this.input.slice(this.lastTokEnd,this.start))},te.parseObj=function(y,D){var G=this.startNode(),Y=!0,ye={};for(G.properties=[],this.next();!this.eat(S.braceR);){if(Y)Y=!1;else if(this.expect(S.comma),this.options.ecmaVersion>=5&&this.afterTrailingComma(S.braceR))break;var Ne=this.parseProperty(y,D);y||this.checkPropClash(Ne,ye,D),G.properties.push(Ne)}return this.finishNode(G,y?"ObjectPattern":"ObjectExpression")},te.parseProperty=function(y,D){var G=this.startNode(),Y,ye,Ne,Me;if(this.options.ecmaVersion>=9&&this.eat(S.ellipsis))return y?(G.argument=this.parseIdent(!1),this.type===S.comma&&this.raiseRecoverable(this.start,"Comma is not permitted after the rest element"),this.finishNode(G,"RestElement")):(G.argument=this.parseMaybeAssign(!1,D),this.type===S.comma&&D&&D.trailingComma<0&&(D.trailingComma=this.start),this.finishNode(G,"SpreadElement"));this.options.ecmaVersion>=6&&(G.method=!1,G.shorthand=!1,(y||D)&&(Ne=this.start,Me=this.startLoc),y||(Y=this.eat(S.star)));var et=this.containsEsc;return this.parsePropertyName(G),!y&&!et&&this.options.ecmaVersion>=8&&!Y&&this.isAsyncProp(G)?(ye=!0,Y=this.options.ecmaVersion>=9&&this.eat(S.star),this.parsePropertyName(G)):ye=!1,this.parsePropertyValue(G,y,Y,ye,Ne,Me,D,et),this.finishNode(G,"Property")},te.parseGetterSetter=function(y){var D=y.key.name;this.parsePropertyName(y),y.value=this.parseMethod(!1),y.kind=D;var G=y.kind==="get"?0:1;if(y.value.params.length!==G){var Y=y.value.start;y.kind==="get"?this.raiseRecoverable(Y,"getter should have no params"):this.raiseRecoverable(Y,"setter should have exactly one param")}else y.kind==="set"&&y.value.params[0].type==="RestElement"&&this.raiseRecoverable(y.value.params[0].start,"Setter cannot use rest params")},te.parsePropertyValue=function(y,D,G,Y,ye,Ne,Me,et){(G||Y)&&this.type===S.colon&&this.unexpected(),this.eat(S.colon)?(y.value=D?this.parseMaybeDefault(this.start,this.startLoc):this.parseMaybeAssign(!1,Me),y.kind="init"):this.options.ecmaVersion>=6&&this.type===S.parenL?(D&&this.unexpected(),y.method=!0,y.value=this.parseMethod(G,Y),y.kind="init"):!D&&!et&&this.options.ecmaVersion>=5&&!y.computed&&y.key.type==="Identifier"&&(y.key.name==="get"||y.key.name==="set")&&this.type!==S.comma&&this.type!==S.braceR&&this.type!==S.eq?((G||Y)&&this.unexpected(),this.parseGetterSetter(y)):this.options.ecmaVersion>=6&&!y.computed&&y.key.type==="Identifier"?((G||Y)&&this.unexpected(),this.checkUnreserved(y.key),y.key.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=ye),D?y.value=this.parseMaybeDefault(ye,Ne,this.copyNode(y.key)):this.type===S.eq&&Me?(Me.shorthandAssign<0&&(Me.shorthandAssign=this.start),y.value=this.parseMaybeDefault(ye,Ne,this.copyNode(y.key))):y.value=this.copyNode(y.key),y.kind="init",y.shorthand=!0):this.unexpected()},te.parsePropertyName=function(y){if(this.options.ecmaVersion>=6){if(this.eat(S.bracketL))return y.computed=!0,y.key=this.parseMaybeAssign(),this.expect(S.bracketR),y.key;y.computed=!1}return y.key=this.type===S.num||this.type===S.string?this.parseExprAtom():this.parseIdent(this.options.allowReserved!=="never")},te.initFunction=function(y){y.id=null,this.options.ecmaVersion>=6&&(y.generator=y.expression=!1),this.options.ecmaVersion>=8&&(y.async=!1)},te.parseMethod=function(y,D,G){var Y=this.startNode(),ye=this.yieldPos,Ne=this.awaitPos,Me=this.awaitIdentPos;return this.initFunction(Y),this.options.ecmaVersion>=6&&(Y.generator=y),this.options.ecmaVersion>=8&&(Y.async=!!D),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,this.enterScope(oe(D,Y.generator)|Ae|(G?ee:0)),this.expect(S.parenL),Y.params=this.parseBindingList(S.parenR,!1,this.options.ecmaVersion>=8),this.checkYieldAwaitInDefaultParams(),this.parseFunctionBody(Y,!1,!0,!1),this.yieldPos=ye,this.awaitPos=Ne,this.awaitIdentPos=Me,this.finishNode(Y,"FunctionExpression")},te.parseArrowExpression=function(y,D,G,Y){var ye=this.yieldPos,Ne=this.awaitPos,Me=this.awaitIdentPos;return this.enterScope(oe(G,!1)|Ee),this.initFunction(y),this.options.ecmaVersion>=8&&(y.async=!!G),this.yieldPos=0,this.awaitPos=0,this.awaitIdentPos=0,y.params=this.toAssignableList(D,!0),this.parseFunctionBody(y,!0,!1,Y),this.yieldPos=ye,this.awaitPos=Ne,this.awaitIdentPos=Me,this.finishNode(y,"ArrowFunctionExpression")},te.parseFunctionBody=function(y,D,G,Y){var ye=D&&this.type!==S.braceL,Ne=this.strict,Me=!1;if(ye)y.body=this.parseMaybeAssign(Y),y.expression=!0,this.checkParams(y,!1);else{var et=this.options.ecmaVersion>=7&&!this.isSimpleParamList(y.params);(!Ne||et)&&(Me=this.strictDirective(this.end),Me&&et&&this.raiseRecoverable(y.start,"Illegal 'use strict' directive in function with non-simple parameter list"));var it=this.labels;this.labels=[],Me&&(this.strict=!0),this.checkParams(y,!Ne&&!Me&&!D&&!G&&this.isSimpleParamList(y.params)),this.strict&&y.id&&this.checkLValSimple(y.id,ut),y.body=this.parseBlock(!1,void 0,Me&&!Ne),y.expression=!1,this.adaptDirectivePrologue(y.body.body),this.labels=it}this.exitScope()},te.isSimpleParamList=function(y){for(var D=0,G=y;D<G.length;D+=1){var Y=G[D];if(Y.type!=="Identifier")return!1}return!0},te.checkParams=function(y,D){for(var G=Object.create(null),Y=0,ye=y.params;Y<ye.length;Y+=1){var Ne=ye[Y];this.checkLValInnerPattern(Ne,Re,D?null:G)}},te.parseExprList=function(y,D,G,Y){for(var ye=[],Ne=!0;!this.eat(y);){if(Ne)Ne=!1;else if(this.expect(S.comma),D&&this.afterTrailingComma(y))break;var Me=void 0;G&&this.type===S.comma?Me=null:this.type===S.ellipsis?(Me=this.parseSpread(Y),Y&&this.type===S.comma&&Y.trailingComma<0&&(Y.trailingComma=this.start)):Me=this.parseMaybeAssign(!1,Y),ye.push(Me)}return ye},te.checkUnreserved=function(y){var D=y.start,G=y.end,Y=y.name;if(this.inGenerator&&Y==="yield"&&this.raiseRecoverable(D,"Cannot use 'yield' as identifier inside a generator"),this.inAsync&&Y==="await"&&this.raiseRecoverable(D,"Cannot use 'await' as identifier inside an async function"),!(this.currentThisScope().flags&z)&&Y==="arguments"&&this.raiseRecoverable(D,"Cannot use 'arguments' in class field initializer"),this.inClassStaticBlock&&(Y==="arguments"||Y==="await")&&this.raise(D,"Cannot use "+Y+" in class static initialization block"),this.keywords.test(Y)&&this.raise(D,"Unexpected keyword '"+Y+"'"),!(this.options.ecmaVersion<6&&this.input.slice(D,G).indexOf("\\")!==-1)){var ye=this.strict?this.reservedWordsStrict:this.reservedWords;ye.test(Y)&&(!this.inAsync&&Y==="await"&&this.raiseRecoverable(D,"Cannot use keyword 'await' outside an async function"),this.raiseRecoverable(D,"The keyword '"+Y+"' is reserved"))}},te.parseIdent=function(y){var D=this.parseIdentNode();return this.next(!!y),this.finishNode(D,"Identifier"),y||(this.checkUnreserved(D),D.name==="await"&&!this.awaitIdentPos&&(this.awaitIdentPos=D.start)),D},te.parseIdentNode=function(){var y=this.startNode();return this.type===S.name?y.name=this.value:this.type.keyword?(y.name=this.type.keyword,(y.name==="class"||y.name==="function")&&(this.lastTokEnd!==this.lastTokStart+1||this.input.charCodeAt(this.lastTokStart)!==46)&&this.context.pop(),this.type=S.name):this.unexpected(),y},te.parsePrivateIdent=function(){var y=this.startNode();return this.type===S.privateId?y.name=this.value:this.unexpected(),this.next(),this.finishNode(y,"PrivateIdentifier"),this.options.checkPrivateFields&&(this.privateNameStack.length===0?this.raise(y.start,"Private field '#"+y.name+"' must be declared in an enclosing class"):this.privateNameStack[this.privateNameStack.length-1].used.push(y)),y},te.parseYield=function(y){this.yieldPos||(this.yieldPos=this.start);var D=this.startNode();return this.next(),this.type===S.semi||this.canInsertSemicolon()||this.type!==S.star&&!this.type.startsExpr?(D.delegate=!1,D.argument=null):(D.delegate=this.eat(S.star),D.argument=this.parseMaybeAssign(y)),this.finishNode(D,"YieldExpression")},te.parseAwait=function(y){this.awaitPos||(this.awaitPos=this.start);var D=this.startNode();return this.next(),D.argument=this.parseMaybeUnary(null,!0,!1,y),this.finishNode(D,"AwaitExpression")};var be=tt.prototype;be.raise=function(y,D){var G=ae(this.input,y);D+=" ("+G.line+":"+G.column+")",this.sourceFile&&(D+=" in "+this.sourceFile);var Y=new SyntaxError(D);throw Y.pos=y,Y.loc=G,Y.raisedAt=this.pos,Y},be.raiseRecoverable=be.raise,be.curPosition=function(){if(this.options.locations)return new J(this.curLine,this.pos-this.lineStart)};var Oe=tt.prototype,Pe=function(D){this.flags=D,this.var=[],this.lexical=[],this.functions=[]};Oe.enterScope=function(y){this.scopeStack.push(new Pe(y))},Oe.exitScope=function(){this.scopeStack.pop()},Oe.treatFunctionsAsVarInScope=function(y){return y.flags&ce||!this.inModule&&y.flags&fe},Oe.declareName=function(y,D,G){var Y=!1;if(D===Ie){var ye=this.currentScope();Y=ye.lexical.indexOf(y)>-1||ye.functions.indexOf(y)>-1||ye.var.indexOf(y)>-1,ye.lexical.push(y),this.inModule&&ye.flags&fe&&delete this.undefinedExports[y]}else if(D===Je){var Ne=this.currentScope();Ne.lexical.push(y)}else if(D===W){var Me=this.currentScope();this.treatFunctionsAsVar?Y=Me.lexical.indexOf(y)>-1:Y=Me.lexical.indexOf(y)>-1||Me.var.indexOf(y)>-1,Me.functions.push(y)}else for(var et=this.scopeStack.length-1;et>=0;--et){var it=this.scopeStack[et];if(it.lexical.indexOf(y)>-1&&!(it.flags&Ce&&it.lexical[0]===y)||!this.treatFunctionsAsVarInScope(it)&&it.functions.indexOf(y)>-1){Y=!0;break}if(it.var.push(y),this.inModule&&it.flags&fe&&delete this.undefinedExports[y],it.flags&z)break}Y&&this.raiseRecoverable(G,"Identifier '"+y+"' has already been declared")},Oe.checkLocalExport=function(y){this.scopeStack[0].lexical.indexOf(y.name)===-1&&this.scopeStack[0].var.indexOf(y.name)===-1&&(this.undefinedExports[y.name]=y)},Oe.currentScope=function(){return this.scopeStack[this.scopeStack.length-1]},Oe.currentVarScope=function(){for(var y=this.scopeStack.length-1;;y--){var D=this.scopeStack[y];if(D.flags&(z|we|ne))return D}},Oe.currentThisScope=function(){for(var y=this.scopeStack.length-1;;y--){var D=this.scopeStack[y];if(D.flags&(z|we|ne)&&!(D.flags&Ee))return D}};var We=function(D,G,Y){this.type="",this.start=G,this.end=0,D.options.locations&&(this.loc=new ge(D,Y)),D.options.directSourceFile&&(this.sourceFile=D.options.directSourceFile),D.options.ranges&&(this.range=[G,0])},ze=tt.prototype;ze.startNode=function(){return new We(this,this.start,this.startLoc)},ze.startNodeAt=function(y,D){return new We(this,y,D)};function me(y,D,G,Y){return y.type=D,y.end=G,this.options.locations&&(y.loc.end=Y),this.options.ranges&&(y.range[1]=G),y}ze.finishNode=function(y,D){return me.call(this,y,D,this.lastTokEnd,this.lastTokEndLoc)},ze.finishNodeAt=function(y,D,G,Y){return me.call(this,y,D,G,Y)},ze.copyNode=function(y){var D=new We(this,y.start,this.startLoc);for(var G in y)D[G]=y[G];return D};var pe="Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz",ve="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",De=ve+" Extended_Pictographic",Fe=De,at=Fe+" EBase EComp EMod EPres ExtPict",Ue=at,Xe=Ue,ot={9:ve,10:De,11:Fe,12:at,13:Ue,14:Xe},He="Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Flag_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence RGI_Emoji",nt={9:"",10:"",11:"",12:"",13:"",14:He},pt="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",ht="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",ft=ht+" Dogra Dogr Gunjala_Gondi Gong Hanifi_Rohingya Rohg Makasar Maka Medefaidrin Medf Old_Sogdian Sogo Sogdian Sogd",gt=ft+" Elymaic Elym Nandinagari Nand Nyiakeng_Puachue_Hmong Hmnp Wancho Wcho",xt=gt+" Chorasmian Chrs Diak Dives_Akuru Khitan_Small_Script Kits Yezi Yezidi",bt=xt+" Cypro_Minoan Cpmn Old_Uyghur Ougr Tangsa Tnsa Toto Vithkuqi Vith",Rt=bt+" "+pe,_t={9:ht,10:ft,11:gt,12:xt,13:bt,14:Rt},Bt={};function Ht(y){var D=Bt[y]={binary:X(ot[y]+" "+pt),binaryOfStrings:X(nt[y]),nonBinary:{General_Category:X(pt),Script:X(_t[y])}};D.nonBinary.Script_Extensions=D.nonBinary.Script,D.nonBinary.gc=D.nonBinary.General_Category,D.nonBinary.sc=D.nonBinary.Script,D.nonBinary.scx=D.nonBinary.Script_Extensions}for(var Wt=0,Ot=[9,10,11,12,13,14];Wt<Ot.length;Wt+=1){var $t=Ot[Wt];Ht($t)}var lt=tt.prototype,Mt=function(D,G){this.parent=D,this.base=G||this};Mt.prototype.separatedFrom=function(D){for(var G=this;G;G=G.parent)for(var Y=D;Y;Y=Y.parent)if(G.base===Y.base&&G!==Y)return!0;return!1},Mt.prototype.sibling=function(){return new Mt(this.parent,this.base)};var Lt=function(D){this.parser=D,this.validFlags="gim"+(D.options.ecmaVersion>=6?"uy":"")+(D.options.ecmaVersion>=9?"s":"")+(D.options.ecmaVersion>=13?"d":"")+(D.options.ecmaVersion>=15?"v":""),this.unicodeProperties=Bt[D.options.ecmaVersion>=14?14:D.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};Lt.prototype.reset=function(D,G,Y){var ye=Y.indexOf("v")!==-1,Ne=Y.indexOf("u")!==-1;this.start=D|0,this.source=G+"",this.flags=Y,ye&&this.parser.options.ecmaVersion>=15?(this.switchU=!0,this.switchV=!0,this.switchN=!0):(this.switchU=Ne&&this.parser.options.ecmaVersion>=6,this.switchV=!1,this.switchN=Ne&&this.parser.options.ecmaVersion>=9)},Lt.prototype.raise=function(D){this.parser.raiseRecoverable(this.start,"Invalid regular expression: /"+this.source+"/: "+D)},Lt.prototype.at=function(D,G){G===void 0&&(G=!1);var Y=this.source,ye=Y.length;if(D>=ye)return-1;var Ne=Y.charCodeAt(D);if(!(G||this.switchU)||Ne<=55295||Ne>=57344||D+1>=ye)return Ne;var Me=Y.charCodeAt(D+1);return Me>=56320&&Me<=57343?(Ne<<10)+Me-56613888:Ne},Lt.prototype.nextIndex=function(D,G){G===void 0&&(G=!1);var Y=this.source,ye=Y.length;if(D>=ye)return ye;var Ne=Y.charCodeAt(D),Me;return!(G||this.switchU)||Ne<=55295||Ne>=57344||D+1>=ye||(Me=Y.charCodeAt(D+1))<56320||Me>57343?D+1:D+2},Lt.prototype.current=function(D){return D===void 0&&(D=!1),this.at(this.pos,D)},Lt.prototype.lookahead=function(D){return D===void 0&&(D=!1),this.at(this.nextIndex(this.pos,D),D)},Lt.prototype.advance=function(D){D===void 0&&(D=!1),this.pos=this.nextIndex(this.pos,D)},Lt.prototype.eat=function(D,G){return G===void 0&&(G=!1),this.current(G)===D?(this.advance(G),!0):!1},Lt.prototype.eatChars=function(D,G){G===void 0&&(G=!1);for(var Y=this.pos,ye=0,Ne=D;ye<Ne.length;ye+=1){var Me=Ne[ye],et=this.at(Y,G);if(et===-1||et!==Me)return!1;Y=this.nextIndex(Y,G)}return this.pos=Y,!0},lt.validateRegExpFlags=function(y){for(var D=y.validFlags,G=y.flags,Y=!1,ye=!1,Ne=0;Ne<G.length;Ne++){var Me=G.charAt(Ne);D.indexOf(Me)===-1&&this.raise(y.start,"Invalid regular expression flag"),G.indexOf(Me,Ne+1)>-1&&this.raise(y.start,"Duplicate regular expression flag"),Me==="u"&&(Y=!0),Me==="v"&&(ye=!0)}this.options.ecmaVersion>=15&&Y&&ye&&this.raise(y.start,"Invalid regular expression flag")};function Sr(y){for(var D in y)return!0;return!1}lt.validateRegExpPattern=function(y){this.regexp_pattern(y),!y.switchN&&this.options.ecmaVersion>=9&&Sr(y.groupNames)&&(y.switchN=!0,this.regexp_pattern(y))},lt.regexp_pattern=function(y){y.pos=0,y.lastIntValue=0,y.lastStringValue="",y.lastAssertionIsQuantifiable=!1,y.numCapturingParens=0,y.maxBackReference=0,y.groupNames=Object.create(null),y.backReferenceNames.length=0,y.branchID=null,this.regexp_disjunction(y),y.pos!==y.source.length&&(y.eat(41)&&y.raise("Unmatched ')'"),(y.eat(93)||y.eat(125))&&y.raise("Lone quantifier brackets")),y.maxBackReference>y.numCapturingParens&&y.raise("Invalid escape");for(var D=0,G=y.backReferenceNames;D<G.length;D+=1){var Y=G[D];y.groupNames[Y]||y.raise("Invalid named capture referenced")}},lt.regexp_disjunction=function(y){var D=this.options.ecmaVersion>=16;for(D&&(y.branchID=new Mt(y.branchID,null)),this.regexp_alternative(y);y.eat(124);)D&&(y.branchID=y.branchID.sibling()),this.regexp_alternative(y);D&&(y.branchID=y.branchID.parent),this.regexp_eatQuantifier(y,!0)&&y.raise("Nothing to repeat"),y.eat(123)&&y.raise("Lone quantifier brackets")},lt.regexp_alternative=function(y){for(;y.pos<y.source.length&&this.regexp_eatTerm(y););},lt.regexp_eatTerm=function(y){return this.regexp_eatAssertion(y)?(y.lastAssertionIsQuantifiable&&this.regexp_eatQuantifier(y)&&y.switchU&&y.raise("Invalid quantifier"),!0):(y.switchU?this.regexp_eatAtom(y):this.regexp_eatExtendedAtom(y))?(this.regexp_eatQuantifier(y),!0):!1},lt.regexp_eatAssertion=function(y){var D=y.pos;if(y.lastAssertionIsQuantifiable=!1,y.eat(94)||y.eat(36))return!0;if(y.eat(92)){if(y.eat(66)||y.eat(98))return!0;y.pos=D}if(y.eat(40)&&y.eat(63)){var G=!1;if(this.options.ecmaVersion>=9&&(G=y.eat(60)),y.eat(61)||y.eat(33))return this.regexp_disjunction(y),y.eat(41)||y.raise("Unterminated group"),y.lastAssertionIsQuantifiable=!G,!0}return y.pos=D,!1},lt.regexp_eatQuantifier=function(y,D){return D===void 0&&(D=!1),this.regexp_eatQuantifierPrefix(y,D)?(y.eat(63),!0):!1},lt.regexp_eatQuantifierPrefix=function(y,D){return y.eat(42)||y.eat(43)||y.eat(63)||this.regexp_eatBracedQuantifier(y,D)},lt.regexp_eatBracedQuantifier=function(y,D){var G=y.pos;if(y.eat(123)){var Y=0,ye=-1;if(this.regexp_eatDecimalDigits(y)&&(Y=y.lastIntValue,y.eat(44)&&this.regexp_eatDecimalDigits(y)&&(ye=y.lastIntValue),y.eat(125)))return ye!==-1&&ye<Y&&!D&&y.raise("numbers out of order in {} quantifier"),!0;y.switchU&&!D&&y.raise("Incomplete quantifier"),y.pos=G}return!1},lt.regexp_eatAtom=function(y){return this.regexp_eatPatternCharacters(y)||y.eat(46)||this.regexp_eatReverseSolidusAtomEscape(y)||this.regexp_eatCharacterClass(y)||this.regexp_eatUncapturingGroup(y)||this.regexp_eatCapturingGroup(y)},lt.regexp_eatReverseSolidusAtomEscape=function(y){var D=y.pos;if(y.eat(92)){if(this.regexp_eatAtomEscape(y))return!0;y.pos=D}return!1},lt.regexp_eatUncapturingGroup=function(y){var D=y.pos;if(y.eat(40)){if(y.eat(63)){if(this.options.ecmaVersion>=16){var G=this.regexp_eatModifiers(y),Y=y.eat(45);if(G||Y){for(var ye=0;ye<G.length;ye++){var Ne=G.charAt(ye);G.indexOf(Ne,ye+1)>-1&&y.raise("Duplicate regular expression modifiers")}if(Y){var Me=this.regexp_eatModifiers(y);!G&&!Me&&y.current()===58&&y.raise("Invalid regular expression modifiers");for(var et=0;et<Me.length;et++){var it=Me.charAt(et);(Me.indexOf(it,et+1)>-1||G.indexOf(it)>-1)&&y.raise("Duplicate regular expression modifiers")}}}}if(y.eat(58)){if(this.regexp_disjunction(y),y.eat(41))return!0;y.raise("Unterminated group")}}y.pos=D}return!1},lt.regexp_eatCapturingGroup=function(y){if(y.eat(40)){if(this.options.ecmaVersion>=9?this.regexp_groupSpecifier(y):y.current()===63&&y.raise("Invalid group"),this.regexp_disjunction(y),y.eat(41))return y.numCapturingParens+=1,!0;y.raise("Unterminated group")}return!1},lt.regexp_eatModifiers=function(y){for(var D="",G=0;(G=y.current())!==-1&&Er(G);)D+=L(G),y.advance();return D};function Er(y){return y===105||y===109||y===115}lt.regexp_eatExtendedAtom=function(y){return y.eat(46)||this.regexp_eatReverseSolidusAtomEscape(y)||this.regexp_eatCharacterClass(y)||this.regexp_eatUncapturingGroup(y)||this.regexp_eatCapturingGroup(y)||this.regexp_eatInvalidBracedQuantifier(y)||this.regexp_eatExtendedPatternCharacter(y)},lt.regexp_eatInvalidBracedQuantifier=function(y){return this.regexp_eatBracedQuantifier(y,!0)&&y.raise("Nothing to repeat"),!1},lt.regexp_eatSyntaxCharacter=function(y){var D=y.current();return Qt(D)?(y.lastIntValue=D,y.advance(),!0):!1};function Qt(y){return y===36||y>=40&&y<=43||y===46||y===63||y>=91&&y<=94||y>=123&&y<=125}lt.regexp_eatPatternCharacters=function(y){for(var D=y.pos,G=0;(G=y.current())!==-1&&!Qt(G);)y.advance();return y.pos!==D},lt.regexp_eatExtendedPatternCharacter=function(y){var D=y.current();return D!==-1&&D!==36&&!(D>=40&&D<=43)&&D!==46&&D!==63&&D!==91&&D!==94&&D!==124?(y.advance(),!0):!1},lt.regexp_groupSpecifier=function(y){if(y.eat(63)){this.regexp_eatGroupName(y)||y.raise("Invalid group");var D=this.options.ecmaVersion>=16,G=y.groupNames[y.lastStringValue];if(G)if(D)for(var Y=0,ye=G;Y<ye.length;Y+=1){var Ne=ye[Y];Ne.separatedFrom(y.branchID)||y.raise("Duplicate capture group name")}else y.raise("Duplicate capture group name");D?(G||(y.groupNames[y.lastStringValue]=[])).push(y.branchID):y.groupNames[y.lastStringValue]=!0}},lt.regexp_eatGroupName=function(y){if(y.lastStringValue="",y.eat(60)){if(this.regexp_eatRegExpIdentifierName(y)&&y.eat(62))return!0;y.raise("Invalid capture group name")}return!1},lt.regexp_eatRegExpIdentifierName=function(y){if(y.lastStringValue="",this.regexp_eatRegExpIdentifierStart(y)){for(y.lastStringValue+=L(y.lastIntValue);this.regexp_eatRegExpIdentifierPart(y);)y.lastStringValue+=L(y.lastIntValue);return!0}return!1},lt.regexp_eatRegExpIdentifierStart=function(y){var D=y.pos,G=this.options.ecmaVersion>=11,Y=y.current(G);return y.advance(G),Y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(y,G)&&(Y=y.lastIntValue),cr(Y)?(y.lastIntValue=Y,!0):(y.pos=D,!1)};function cr(y){return p(y,!0)||y===36||y===95}lt.regexp_eatRegExpIdentifierPart=function(y){var D=y.pos,G=this.options.ecmaVersion>=11,Y=y.current(G);return y.advance(G),Y===92&&this.regexp_eatRegExpUnicodeEscapeSequence(y,G)&&(Y=y.lastIntValue),rr(Y)?(y.lastIntValue=Y,!0):(y.pos=D,!1)};function rr(y){return h(y,!0)||y===36||y===95||y===8204||y===8205}lt.regexp_eatAtomEscape=function(y){return this.regexp_eatBackReference(y)||this.regexp_eatCharacterClassEscape(y)||this.regexp_eatCharacterEscape(y)||y.switchN&&this.regexp_eatKGroupName(y)?!0:(y.switchU&&(y.current()===99&&y.raise("Invalid unicode escape"),y.raise("Invalid escape")),!1)},lt.regexp_eatBackReference=function(y){var D=y.pos;if(this.regexp_eatDecimalEscape(y)){var G=y.lastIntValue;if(y.switchU)return G>y.maxBackReference&&(y.maxBackReference=G),!0;if(G<=y.numCapturingParens)return!0;y.pos=D}return!1},lt.regexp_eatKGroupName=function(y){if(y.eat(107)){if(this.regexp_eatGroupName(y))return y.backReferenceNames.push(y.lastStringValue),!0;y.raise("Invalid named reference")}return!1},lt.regexp_eatCharacterEscape=function(y){return this.regexp_eatControlEscape(y)||this.regexp_eatCControlLetter(y)||this.regexp_eatZero(y)||this.regexp_eatHexEscapeSequence(y)||this.regexp_eatRegExpUnicodeEscapeSequence(y,!1)||!y.switchU&&this.regexp_eatLegacyOctalEscapeSequence(y)||this.regexp_eatIdentityEscape(y)},lt.regexp_eatCControlLetter=function(y){var D=y.pos;if(y.eat(99)){if(this.regexp_eatControlLetter(y))return!0;y.pos=D}return!1},lt.regexp_eatZero=function(y){return y.current()===48&&!hr(y.lookahead())?(y.lastIntValue=0,y.advance(),!0):!1},lt.regexp_eatControlEscape=function(y){var D=y.current();return D===116?(y.lastIntValue=9,y.advance(),!0):D===110?(y.lastIntValue=10,y.advance(),!0):D===118?(y.lastIntValue=11,y.advance(),!0):D===102?(y.lastIntValue=12,y.advance(),!0):D===114?(y.lastIntValue=13,y.advance(),!0):!1},lt.regexp_eatControlLetter=function(y){var D=y.current();return fr(D)?(y.lastIntValue=D%32,y.advance(),!0):!1};function fr(y){return y>=65&&y<=90||y>=97&&y<=122}lt.regexp_eatRegExpUnicodeEscapeSequence=function(y,D){D===void 0&&(D=!1);var G=y.pos,Y=D||y.switchU;if(y.eat(117)){if(this.regexp_eatFixedHexDigits(y,4)){var ye=y.lastIntValue;if(Y&&ye>=55296&&ye<=56319){var Ne=y.pos;if(y.eat(92)&&y.eat(117)&&this.regexp_eatFixedHexDigits(y,4)){var Me=y.lastIntValue;if(Me>=56320&&Me<=57343)return y.lastIntValue=(ye-55296)*1024+(Me-56320)+65536,!0}y.pos=Ne,y.lastIntValue=ye}return!0}if(Y&&y.eat(123)&&this.regexp_eatHexDigits(y)&&y.eat(125)&&br(y.lastIntValue))return!0;Y&&y.raise("Invalid unicode escape"),y.pos=G}return!1};function br(y){return y>=0&&y<=1114111}lt.regexp_eatIdentityEscape=function(y){if(y.switchU)return this.regexp_eatSyntaxCharacter(y)?!0:y.eat(47)?(y.lastIntValue=47,!0):!1;var D=y.current();return D!==99&&(!y.switchN||D!==107)?(y.lastIntValue=D,y.advance(),!0):!1},lt.regexp_eatDecimalEscape=function(y){y.lastIntValue=0;var D=y.current();if(D>=49&&D<=57){do y.lastIntValue=10*y.lastIntValue+(D-48),y.advance();while((D=y.current())>=48&&D<=57);return!0}return!1};var Zt=0,Gt=1,jt=2;lt.regexp_eatCharacterClassEscape=function(y){var D=y.current();if(Nr(D))return y.lastIntValue=-1,y.advance(),Gt;var G=!1;if(y.switchU&&this.options.ecmaVersion>=9&&((G=D===80)||D===112)){y.lastIntValue=-1,y.advance();var Y;if(y.eat(123)&&(Y=this.regexp_eatUnicodePropertyValueExpression(y))&&y.eat(125))return G&&Y===jt&&y.raise("Invalid property name"),Y;y.raise("Invalid property name")}return Zt};function Nr(y){return y===100||y===68||y===115||y===83||y===119||y===87}lt.regexp_eatUnicodePropertyValueExpression=function(y){var D=y.pos;if(this.regexp_eatUnicodePropertyName(y)&&y.eat(61)){var G=y.lastStringValue;if(this.regexp_eatUnicodePropertyValue(y)){var Y=y.lastStringValue;return this.regexp_validateUnicodePropertyNameAndValue(y,G,Y),Gt}}if(y.pos=D,this.regexp_eatLoneUnicodePropertyNameOrValue(y)){var ye=y.lastStringValue;return this.regexp_validateUnicodePropertyNameOrValue(y,ye)}return Zt},lt.regexp_validateUnicodePropertyNameAndValue=function(y,D,G){$(y.unicodeProperties.nonBinary,D)||y.raise("Invalid property name"),y.unicodeProperties.nonBinary[D].test(G)||y.raise("Invalid property value")},lt.regexp_validateUnicodePropertyNameOrValue=function(y,D){if(y.unicodeProperties.binary.test(D))return Gt;if(y.switchV&&y.unicodeProperties.binaryOfStrings.test(D))return jt;y.raise("Invalid property name")},lt.regexp_eatUnicodePropertyName=function(y){var D=0;for(y.lastStringValue="";Mr(D=y.current());)y.lastStringValue+=L(D),y.advance();return y.lastStringValue!==""};function Mr(y){return fr(y)||y===95}lt.regexp_eatUnicodePropertyValue=function(y){var D=0;for(y.lastStringValue="";jr(D=y.current());)y.lastStringValue+=L(D),y.advance();return y.lastStringValue!==""};function jr(y){return Mr(y)||hr(y)}lt.regexp_eatLoneUnicodePropertyNameOrValue=function(y){return this.regexp_eatUnicodePropertyValue(y)},lt.regexp_eatCharacterClass=function(y){if(y.eat(91)){var D=y.eat(94),G=this.regexp_classContents(y);return y.eat(93)||y.raise("Unterminated character class"),D&&G===jt&&y.raise("Negated character class may contain strings"),!0}return!1},lt.regexp_classContents=function(y){return y.current()===93?Gt:y.switchV?this.regexp_classSetExpression(y):(this.regexp_nonEmptyClassRanges(y),Gt)},lt.regexp_nonEmptyClassRanges=function(y){for(;this.regexp_eatClassAtom(y);){var D=y.lastIntValue;if(y.eat(45)&&this.regexp_eatClassAtom(y)){var G=y.lastIntValue;y.switchU&&(D===-1||G===-1)&&y.raise("Invalid character class"),D!==-1&&G!==-1&&D>G&&y.raise("Range out of order in character class")}}},lt.regexp_eatClassAtom=function(y){var D=y.pos;if(y.eat(92)){if(this.regexp_eatClassEscape(y))return!0;if(y.switchU){var G=y.current();(G===99||Rr(G))&&y.raise("Invalid class escape"),y.raise("Invalid escape")}y.pos=D}var Y=y.current();return Y!==93?(y.lastIntValue=Y,y.advance(),!0):!1},lt.regexp_eatClassEscape=function(y){var D=y.pos;if(y.eat(98))return y.lastIntValue=8,!0;if(y.switchU&&y.eat(45))return y.lastIntValue=45,!0;if(!y.switchU&&y.eat(99)){if(this.regexp_eatClassControlLetter(y))return!0;y.pos=D}return this.regexp_eatCharacterClassEscape(y)||this.regexp_eatCharacterEscape(y)},lt.regexp_classSetExpression=function(y){var D=Gt,G;if(!this.regexp_eatClassSetRange(y))if(G=this.regexp_eatClassSetOperand(y)){G===jt&&(D=jt);for(var Y=y.pos;y.eatChars([38,38]);){if(y.current()!==38&&(G=this.regexp_eatClassSetOperand(y))){G!==jt&&(D=Gt);continue}y.raise("Invalid character in character class")}if(Y!==y.pos)return D;for(;y.eatChars([45,45]);)this.regexp_eatClassSetOperand(y)||y.raise("Invalid character in character class");if(Y!==y.pos)return D}else y.raise("Invalid character in character class");for(;;)if(!this.regexp_eatClassSetRange(y)){if(G=this.regexp_eatClassSetOperand(y),!G)return D;G===jt&&(D=jt)}},lt.regexp_eatClassSetRange=function(y){var D=y.pos;if(this.regexp_eatClassSetCharacter(y)){var G=y.lastIntValue;if(y.eat(45)&&this.regexp_eatClassSetCharacter(y)){var Y=y.lastIntValue;return G!==-1&&Y!==-1&&G>Y&&y.raise("Range out of order in character class"),!0}y.pos=D}return!1},lt.regexp_eatClassSetOperand=function(y){return this.regexp_eatClassSetCharacter(y)?Gt:this.regexp_eatClassStringDisjunction(y)||this.regexp_eatNestedClass(y)},lt.regexp_eatNestedClass=function(y){var D=y.pos;if(y.eat(91)){var G=y.eat(94),Y=this.regexp_classContents(y);if(y.eat(93))return G&&Y===jt&&y.raise("Negated character class may contain strings"),Y;y.pos=D}if(y.eat(92)){var ye=this.regexp_eatCharacterClassEscape(y);if(ye)return ye;y.pos=D}return null},lt.regexp_eatClassStringDisjunction=function(y){var D=y.pos;if(y.eatChars([92,113])){if(y.eat(123)){var G=this.regexp_classStringDisjunctionContents(y);if(y.eat(125))return G}else y.raise("Invalid escape");y.pos=D}return null},lt.regexp_classStringDisjunctionContents=function(y){for(var D=this.regexp_classString(y);y.eat(124);)this.regexp_classString(y)===jt&&(D=jt);return D},lt.regexp_classString=function(y){for(var D=0;this.regexp_eatClassSetCharacter(y);)D++;return D===1?Gt:jt},lt.regexp_eatClassSetCharacter=function(y){var D=y.pos;if(y.eat(92))return this.regexp_eatCharacterEscape(y)||this.regexp_eatClassSetReservedPunctuator(y)?!0:y.eat(98)?(y.lastIntValue=8,!0):(y.pos=D,!1);var G=y.current();return G<0||G===y.lookahead()&&Fr(G)||an(G)?!1:(y.advance(),y.lastIntValue=G,!0)};function Fr(y){return y===33||y>=35&&y<=38||y>=42&&y<=44||y===46||y>=58&&y<=64||y===94||y===96||y===126}function an(y){return y===40||y===41||y===45||y===47||y>=91&&y<=93||y>=123&&y<=125}lt.regexp_eatClassSetReservedPunctuator=function(y){var D=y.current();return on(D)?(y.lastIntValue=D,y.advance(),!0):!1};function on(y){return y===33||y===35||y===37||y===38||y===44||y===45||y>=58&&y<=62||y===64||y===96||y===126}lt.regexp_eatClassControlLetter=function(y){var D=y.current();return hr(D)||D===95?(y.lastIntValue=D%32,y.advance(),!0):!1},lt.regexp_eatHexEscapeSequence=function(y){var D=y.pos;if(y.eat(120)){if(this.regexp_eatFixedHexDigits(y,2))return!0;y.switchU&&y.raise("Invalid escape"),y.pos=D}return!1},lt.regexp_eatDecimalDigits=function(y){var D=y.pos,G=0;for(y.lastIntValue=0;hr(G=y.current());)y.lastIntValue=10*y.lastIntValue+(G-48),y.advance();return y.pos!==D};function hr(y){return y>=48&&y<=57}lt.regexp_eatHexDigits=function(y){var D=y.pos,G=0;for(y.lastIntValue=0;gr(G=y.current());)y.lastIntValue=16*y.lastIntValue+Ur(G),y.advance();return y.pos!==D};function gr(y){return y>=48&&y<=57||y>=65&&y<=70||y>=97&&y<=102}function Ur(y){return y>=65&&y<=70?10+(y-65):y>=97&&y<=102?10+(y-97):y-48}lt.regexp_eatLegacyOctalEscapeSequence=function(y){if(this.regexp_eatOctalDigit(y)){var D=y.lastIntValue;if(this.regexp_eatOctalDigit(y)){var G=y.lastIntValue;D<=3&&this.regexp_eatOctalDigit(y)?y.lastIntValue=D*64+G*8+y.lastIntValue:y.lastIntValue=D*8+G}else y.lastIntValue=D;return!0}return!1},lt.regexp_eatOctalDigit=function(y){var D=y.current();return Rr(D)?(y.lastIntValue=D-48,y.advance(),!0):(y.lastIntValue=0,!1)};function Rr(y){return y>=48&&y<=55}lt.regexp_eatFixedHexDigits=function(y,D){var G=y.pos;y.lastIntValue=0;for(var Y=0;Y<D;++Y){var ye=y.current();if(!gr(ye))return y.pos=G,!1;y.lastIntValue=16*y.lastIntValue+Ur(ye),y.advance()}return!0};var pr=function(D){this.type=D.type,this.value=D.value,this.start=D.start,this.end=D.end,D.options.locations&&(this.loc=new ge(D,D.startLoc,D.endLoc)),D.options.ranges&&(this.range=[D.start,D.end])},Et=tt.prototype;Et.next=function(y){!y&&this.type.keyword&&this.containsEsc&&this.raiseRecoverable(this.start,"Escape sequence in keyword "+this.type.keyword),this.options.onToken&&this.options.onToken(new pr(this)),this.lastTokEnd=this.end,this.lastTokStart=this.start,this.lastTokEndLoc=this.endLoc,this.lastTokStartLoc=this.startLoc,this.nextToken()},Et.getToken=function(){return this.next(),new pr(this)},typeof Symbol<"u"&&(Et[Symbol.iterator]=function(){var y=this;return{next:function(){var D=y.getToken();return{done:D.type===S.eof,value:D}}}}),Et.nextToken=function(){var y=this.curContext();if((!y||!y.preserveSpace)&&this.skipSpace(),this.start=this.pos,this.options.locations&&(this.startLoc=this.curPosition()),this.pos>=this.input.length)return this.finishToken(S.eof);if(y.override)return y.override(this);this.readToken(this.fullCharCodeAtPos())},Et.readToken=function(y){return p(y,this.options.ecmaVersion>=6)||y===92?this.readWord():this.getTokenFromCode(y)},Et.fullCharCodeAtPos=function(){var y=this.input.charCodeAt(this.pos);if(y<=55295||y>=56320)return y;var D=this.input.charCodeAt(this.pos+1);return D<=56319||D>=57344?y:(y<<10)+D-56613888},Et.skipBlockComment=function(){var y=this.options.onComment&&this.curPosition(),D=this.pos,G=this.input.indexOf("*/",this.pos+=2);if(G===-1&&this.raise(this.pos-2,"Unterminated comment"),this.pos=G+2,this.options.locations)for(var Y=void 0,ye=D;(Y=k(this.input,ye,this.pos))>-1;)++this.curLine,ye=this.lineStart=Y;this.options.onComment&&this.options.onComment(!0,this.input.slice(D+2,G),D,this.pos,y,this.curPosition())},Et.skipLineComment=function(y){for(var D=this.pos,G=this.options.onComment&&this.curPosition(),Y=this.input.charCodeAt(this.pos+=y);this.pos<this.input.length&&!A(Y);)Y=this.input.charCodeAt(++this.pos);this.options.onComment&&this.options.onComment(!1,this.input.slice(D+y,this.pos),D,this.pos,G,this.curPosition())},Et.skipSpace=function(){e:for(;this.pos<this.input.length;){var y=this.input.charCodeAt(this.pos);switch(y){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(y>8&&y<14||y>=5760&&R.test(String.fromCharCode(y)))++this.pos;else break e}}},Et.finishToken=function(y,D){this.end=this.pos,this.options.locations&&(this.endLoc=this.curPosition());var G=this.type;this.type=y,this.value=D,this.updateContext(G)},Et.readToken_dot=function(){var y=this.input.charCodeAt(this.pos+1);if(y>=48&&y<=57)return this.readNumber(!0);var D=this.input.charCodeAt(this.pos+2);return this.options.ecmaVersion>=6&&y===46&&D===46?(this.pos+=3,this.finishToken(S.ellipsis)):(++this.pos,this.finishToken(S.dot))},Et.readToken_slash=function(){var y=this.input.charCodeAt(this.pos+1);return this.exprAllowed?(++this.pos,this.readRegexp()):y===61?this.finishOp(S.assign,2):this.finishOp(S.slash,1)},Et.readToken_mult_modulo_exp=function(y){var D=this.input.charCodeAt(this.pos+1),G=1,Y=y===42?S.star:S.modulo;return this.options.ecmaVersion>=7&&y===42&&D===42&&(++G,Y=S.starstar,D=this.input.charCodeAt(this.pos+2)),D===61?this.finishOp(S.assign,G+1):this.finishOp(Y,G)},Et.readToken_pipe_amp=function(y){var D=this.input.charCodeAt(this.pos+1);if(D===y){if(this.options.ecmaVersion>=12){var G=this.input.charCodeAt(this.pos+2);if(G===61)return this.finishOp(S.assign,3)}return this.finishOp(y===124?S.logicalOR:S.logicalAND,2)}return D===61?this.finishOp(S.assign,2):this.finishOp(y===124?S.bitwiseOR:S.bitwiseAND,1)},Et.readToken_caret=function(){var y=this.input.charCodeAt(this.pos+1);return y===61?this.finishOp(S.assign,2):this.finishOp(S.bitwiseXOR,1)},Et.readToken_plus_min=function(y){var D=this.input.charCodeAt(this.pos+1);return D===y?D===45&&!this.inModule&&this.input.charCodeAt(this.pos+2)===62&&(this.lastTokEnd===0||w.test(this.input.slice(this.lastTokEnd,this.pos)))?(this.skipLineComment(3),this.skipSpace(),this.nextToken()):this.finishOp(S.incDec,2):D===61?this.finishOp(S.assign,2):this.finishOp(S.plusMin,1)},Et.readToken_lt_gt=function(y){var D=this.input.charCodeAt(this.pos+1),G=1;return D===y?(G=y===62&&this.input.charCodeAt(this.pos+2)===62?3:2,this.input.charCodeAt(this.pos+G)===61?this.finishOp(S.assign,G+1):this.finishOp(S.bitShift,G)):D===33&&y===60&&!this.inModule&&this.input.charCodeAt(this.pos+2)===45&&this.input.charCodeAt(this.pos+3)===45?(this.skipLineComment(4),this.skipSpace(),this.nextToken()):(D===61&&(G=2),this.finishOp(S.relational,G))},Et.readToken_eq_excl=function(y){var D=this.input.charCodeAt(this.pos+1);return D===61?this.finishOp(S.equality,this.input.charCodeAt(this.pos+2)===61?3:2):y===61&&D===62&&this.options.ecmaVersion>=6?(this.pos+=2,this.finishToken(S.arrow)):this.finishOp(y===61?S.eq:S.prefix,1)},Et.readToken_question=function(){var y=this.options.ecmaVersion;if(y>=11){var D=this.input.charCodeAt(this.pos+1);if(D===46){var G=this.input.charCodeAt(this.pos+2);if(G<48||G>57)return this.finishOp(S.questionDot,2)}if(D===63){if(y>=12){var Y=this.input.charCodeAt(this.pos+2);if(Y===61)return this.finishOp(S.assign,3)}return this.finishOp(S.coalesce,2)}}return this.finishOp(S.question,1)},Et.readToken_numberSign=function(){var y=this.options.ecmaVersion,D=35;if(y>=13&&(++this.pos,D=this.fullCharCodeAtPos(),p(D,!0)||D===92))return this.finishToken(S.privateId,this.readWord1());this.raise(this.pos,"Unexpected character '"+L(D)+"'")},Et.getTokenFromCode=function(y){switch(y){case 46:return this.readToken_dot();case 40:return++this.pos,this.finishToken(S.parenL);case 41:return++this.pos,this.finishToken(S.parenR);case 59:return++this.pos,this.finishToken(S.semi);case 44:return++this.pos,this.finishToken(S.comma);case 91:return++this.pos,this.finishToken(S.bracketL);case 93:return++this.pos,this.finishToken(S.bracketR);case 123:return++this.pos,this.finishToken(S.braceL);case 125:return++this.pos,this.finishToken(S.braceR);case 58:return++this.pos,this.finishToken(S.colon);case 96:if(this.options.ecmaVersion<6)break;return++this.pos,this.finishToken(S.backQuote);case 48:var D=this.input.charCodeAt(this.pos+1);if(D===120||D===88)return this.readRadixNumber(16);if(this.options.ecmaVersion>=6){if(D===111||D===79)return this.readRadixNumber(8);if(D===98||D===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(y);case 47:return this.readToken_slash();case 37:case 42:return this.readToken_mult_modulo_exp(y);case 124:case 38:return this.readToken_pipe_amp(y);case 94:return this.readToken_caret();case 43:case 45:return this.readToken_plus_min(y);case 60:case 62:return this.readToken_lt_gt(y);case 61:case 33:return this.readToken_eq_excl(y);case 63:return this.readToken_question();case 126:return this.finishOp(S.prefix,1);case 35:return this.readToken_numberSign()}this.raise(this.pos,"Unexpected character '"+L(y)+"'")},Et.finishOp=function(y,D){var G=this.input.slice(this.pos,this.pos+D);return this.pos+=D,this.finishToken(y,G)},Et.readRegexp=function(){for(var y,D,G=this.pos;;){this.pos>=this.input.length&&this.raise(G,"Unterminated regular expression");var Y=this.input.charAt(this.pos);if(w.test(Y)&&this.raise(G,"Unterminated regular expression"),y)y=!1;else{if(Y==="[")D=!0;else if(Y==="]"&&D)D=!1;else if(Y==="/"&&!D)break;y=Y==="\\"}++this.pos}var ye=this.input.slice(G,this.pos);++this.pos;var Ne=this.pos,Me=this.readWord1();this.containsEsc&&this.unexpected(Ne);var et=this.regexpState||(this.regexpState=new Lt(this));et.reset(G,ye,Me),this.validateRegExpFlags(et),this.validateRegExpPattern(et);var it=null;try{it=new RegExp(ye,Me)}catch{}return this.finishToken(S.regexp,{pattern:ye,flags:Me,value:it})},Et.readInt=function(y,D,G){for(var Y=this.options.ecmaVersion>=12&&D===void 0,ye=G&&this.input.charCodeAt(this.pos)===48,Ne=this.pos,Me=0,et=0,it=0,dt=D??1/0;it<dt;++it,++this.pos){var yt=this.input.charCodeAt(this.pos),At=void 0;if(Y&&yt===95){ye&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed in legacy octal numeric literals"),et===95&&this.raiseRecoverable(this.pos,"Numeric separator must be exactly one underscore"),it===0&&this.raiseRecoverable(this.pos,"Numeric separator is not allowed at the first of digits"),et=yt;continue}if(yt>=97?At=yt-97+10:yt>=65?At=yt-65+10:yt>=48&&yt<=57?At=yt-48:At=1/0,At>=y)break;et=yt,Me=Me*y+At}return Y&&et===95&&this.raiseRecoverable(this.pos-1,"Numeric separator is not allowed at the last of digits"),this.pos===Ne||D!=null&&this.pos-Ne!==D?null:Me};function ln(y,D){return D?parseInt(y,8):parseFloat(y.replace(/_/g,""))}function qr(y){return typeof BigInt!="function"?null:BigInt(y.replace(/_/g,""))}Et.readRadixNumber=function(y){var D=this.pos;this.pos+=2;var G=this.readInt(y);return G==null&&this.raise(this.start+2,"Expected number in radix "+y),this.options.ecmaVersion>=11&&this.input.charCodeAt(this.pos)===110?(G=qr(this.input.slice(D,this.pos)),++this.pos):p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(S.num,G)},Et.readNumber=function(y){var D=this.pos;!y&&this.readInt(10,void 0,!0)===null&&this.raise(D,"Invalid number");var G=this.pos-D>=2&&this.input.charCodeAt(D)===48;G&&this.strict&&this.raise(D,"Invalid number");var Y=this.input.charCodeAt(this.pos);if(!G&&!y&&this.options.ecmaVersion>=11&&Y===110){var ye=qr(this.input.slice(D,this.pos));return++this.pos,p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number"),this.finishToken(S.num,ye)}G&&/[89]/.test(this.input.slice(D,this.pos))&&(G=!1),Y===46&&!G&&(++this.pos,this.readInt(10),Y=this.input.charCodeAt(this.pos)),(Y===69||Y===101)&&!G&&(Y=this.input.charCodeAt(++this.pos),(Y===43||Y===45)&&++this.pos,this.readInt(10)===null&&this.raise(D,"Invalid number")),p(this.fullCharCodeAtPos())&&this.raise(this.pos,"Identifier directly after number");var Ne=ln(this.input.slice(D,this.pos),G);return this.finishToken(S.num,Ne)},Et.readCodePoint=function(){var y=this.input.charCodeAt(this.pos),D;if(y===123){this.options.ecmaVersion<6&&this.unexpected();var G=++this.pos;D=this.readHexChar(this.input.indexOf("}",this.pos)-this.pos),++this.pos,D>1114111&&this.invalidStringToken(G,"Code point out of bounds")}else D=this.readHexChar(4);return D},Et.readString=function(y){for(var D="",G=++this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");var Y=this.input.charCodeAt(this.pos);if(Y===y)break;Y===92?(D+=this.input.slice(G,this.pos),D+=this.readEscapedChar(!1),G=this.pos):Y===8232||Y===8233?(this.options.ecmaVersion<10&&this.raise(this.start,"Unterminated string constant"),++this.pos,this.options.locations&&(this.curLine++,this.lineStart=this.pos)):(A(Y)&&this.raise(this.start,"Unterminated string constant"),++this.pos)}return D+=this.input.slice(G,this.pos++),this.finishToken(S.string,D)};var je={};Et.tryReadTemplateToken=function(){this.inTemplateElement=!0;try{this.readTmplToken()}catch(y){if(y===je)this.readInvalidTemplateToken();else throw y}this.inTemplateElement=!1},Et.invalidStringToken=function(y,D){if(this.inTemplateElement&&this.options.ecmaVersion>=9)throw je;this.raise(y,D)},Et.readTmplToken=function(){for(var y="",D=this.pos;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated template");var G=this.input.charCodeAt(this.pos);if(G===96||G===36&&this.input.charCodeAt(this.pos+1)===123)return this.pos===this.start&&(this.type===S.template||this.type===S.invalidTemplate)?G===36?(this.pos+=2,this.finishToken(S.dollarBraceL)):(++this.pos,this.finishToken(S.backQuote)):(y+=this.input.slice(D,this.pos),this.finishToken(S.template,y));if(G===92)y+=this.input.slice(D,this.pos),y+=this.readEscapedChar(!0),D=this.pos;else if(A(G)){switch(y+=this.input.slice(D,this.pos),++this.pos,G){case 13:this.input.charCodeAt(this.pos)===10&&++this.pos;case 10:y+=`
|
|
6
|
+
`;break;default:y+=String.fromCharCode(G);break}this.options.locations&&(++this.curLine,this.lineStart=this.pos),D=this.pos}else++this.pos}},Et.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(S.invalidTemplate,this.input.slice(this.start,this.pos));case"\r":this.input[this.pos+1]===`
|
|
7
|
+
`&&++this.pos;case`
|
|
8
|
+
`:case"\u2028":case"\u2029":++this.curLine,this.lineStart=this.pos+1;break}this.raise(this.start,"Unterminated template")},Et.readEscapedChar=function(y){var D=this.input.charCodeAt(++this.pos);switch(++this.pos,D){case 110:return`
|
|
9
|
+
`;case 114:return"\r";case 120:return String.fromCharCode(this.readHexChar(2));case 117:return L(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"),y){var G=this.pos-1;this.invalidStringToken(G,"Invalid escape sequence in template string")}default:if(D>=48&&D<=55){var Y=this.input.substr(this.pos-1,3).match(/^[0-7]+/)[0],ye=parseInt(Y,8);return ye>255&&(Y=Y.slice(0,-1),ye=parseInt(Y,8)),this.pos+=Y.length-1,D=this.input.charCodeAt(this.pos),(Y!=="0"||D===56||D===57)&&(this.strict||y)&&this.invalidStringToken(this.pos-1-Y.length,y?"Octal literal in template string":"Octal literal in strict mode"),String.fromCharCode(ye)}return A(D)?(this.options.locations&&(this.lineStart=this.pos,++this.curLine),""):String.fromCharCode(D)}},Et.readHexChar=function(y){var D=this.pos,G=this.readInt(16,y);return G===null&&this.invalidStringToken(D,"Bad character escape sequence"),G},Et.readWord1=function(){this.containsEsc=!1;for(var y="",D=!0,G=this.pos,Y=this.options.ecmaVersion>=6;this.pos<this.input.length;){var ye=this.fullCharCodeAtPos();if(h(ye,Y))this.pos+=ye<=65535?1:2;else if(ye===92){this.containsEsc=!0,y+=this.input.slice(G,this.pos);var Ne=this.pos;this.input.charCodeAt(++this.pos)!==117&&this.invalidStringToken(this.pos,"Expecting Unicode escape sequence \\uXXXX"),++this.pos;var Me=this.readCodePoint();(D?p:h)(Me,Y)||this.invalidStringToken(Ne,"Invalid Unicode escape"),y+=L(Me),G=this.pos}else break;D=!1}return y+this.input.slice(G,this.pos)},Et.readWord=function(){var y=this.readWord1(),D=S.name;return this.keywords.test(y)&&(D=T[y]),this.finishToken(D,y)};var M="8.15.0";tt.acorn={Parser:tt,version:M,defaultOptions:ke,Position:J,SourceLocation:ge,getLineInfo:ae,Node:We,TokenType:g,tokTypes:S,keywordTypes:T,TokContext:V,tokContexts:Q,isIdentifierChar:h,isIdentifierStart:p,Token:pr,isNewLine:A,lineBreak:w,lineBreakG:x,nonASCIIwhitespace:R};function re(y,D){return tt.parse(y,D)}function de(y,D,G){return tt.parseExpressionAt(y,D,G)}function Be(y,D){return tt.tokenizer(y,D)}n.Node=We,n.Parser=tt,n.Position=J,n.SourceLocation=ge,n.TokContext=V,n.Token=pr,n.TokenType=g,n.defaultOptions=ke,n.getLineInfo=ae,n.isIdentifierChar=h,n.isIdentifierStart=p,n.isNewLine=A,n.keywordTypes=T,n.lineBreak=w,n.lineBreakG=x,n.nonASCIIwhitespace=R,n.parse=re,n.parseExpressionAt=de,n.tokContexts=Q,n.tokTypes=S,n.tokenizer=Be,n.version=M}))})(mn,mn.exports)),mn.exports}var $n={exports:{}},Gn,Wp;function Z0(){return Wp||(Wp=1,Gn={quot:'"',amp:"&",apos:"'",lt:"<",gt:">",nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",Agrave:"À",Aacute:"Á",Acirc:"Â",Atilde:"Ã",Auml:"Ä",Aring:"Å",AElig:"Æ",Ccedil:"Ç",Egrave:"È",Eacute:"É",Ecirc:"Ê",Euml:"Ë",Igrave:"Ì",Iacute:"Í",Icirc:"Î",Iuml:"Ï",ETH:"Ð",Ntilde:"Ñ",Ograve:"Ò",Oacute:"Ó",Ocirc:"Ô",Otilde:"Õ",Ouml:"Ö",times:"×",Oslash:"Ø",Ugrave:"Ù",Uacute:"Ú",Ucirc:"Û",Uuml:"Ü",Yacute:"Ý",THORN:"Þ",szlig:"ß",agrave:"à",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"å",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"í",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",divide:"÷",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",OElig:"Œ",oelig:"œ",Scaron:"Š",scaron:"š",Yuml:"Ÿ",fnof:"ƒ",circ:"ˆ",tilde:"˜",Alpha:"Α",Beta:"Β",Gamma:"Γ",Delta:"Δ",Epsilon:"Ε",Zeta:"Ζ",Eta:"Η",Theta:"Θ",Iota:"Ι",Kappa:"Κ",Lambda:"Λ",Mu:"Μ",Nu:"Ν",Xi:"Ξ",Omicron:"Ο",Pi:"Π",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Υ",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"π",rho:"ρ",sigmaf:"ς",sigma:"σ",tau:"τ",upsilon:"υ",phi:"φ",chi:"χ",psi:"ψ",omega:"ω",thetasym:"ϑ",upsih:"ϒ",piv:"ϖ",ensp:" ",emsp:" ",thinsp:" ",zwnj:"",zwj:"",lrm:"",rlm:"",ndash:"–",mdash:"—",lsquo:"‘",rsquo:"’",sbquo:"‚",ldquo:"“",rdquo:"”",bdquo:"„",dagger:"†",Dagger:"‡",bull:"•",hellip:"…",permil:"‰",prime:"′",Prime:"″",lsaquo:"‹",rsaquo:"›",oline:"‾",frasl:"⁄",euro:"€",image:"ℑ",weierp:"℘",real:"ℜ",trade:"™",alefsym:"ℵ",larr:"←",uarr:"↑",rarr:"→",darr:"↓",harr:"↔",crarr:"↵",lArr:"⇐",uArr:"⇑",rArr:"⇒",dArr:"⇓",hArr:"⇔",forall:"∀",part:"∂",exist:"∃",empty:"∅",nabla:"∇",isin:"∈",notin:"∉",ni:"∋",prod:"∏",sum:"∑",minus:"−",lowast:"∗",radic:"√",prop:"∝",infin:"∞",ang:"∠",and:"∧",or:"∨",cap:"∩",cup:"∪",int:"∫",there4:"∴",sim:"∼",cong:"≅",asymp:"≈",ne:"≠",equiv:"≡",le:"≤",ge:"≥",sub:"⊂",sup:"⊃",nsub:"⊄",sube:"⊆",supe:"⊇",oplus:"⊕",otimes:"⊗",perp:"⊥",sdot:"⋅",lceil:"⌈",rceil:"⌉",lfloor:"⌊",rfloor:"⌋",lang:"〈",rang:"〉",loz:"◊",spades:"♠",clubs:"♣",hearts:"♥",diams:"♦"}),Gn}var zp;function eC(){return zp||(zp=1,(function(a){const e=Z0(),n=/^[\da-fA-F]+$/,o=/^\d+$/,t=new WeakMap;function l(r){r=r.Parser.acorn||r;let m=t.get(r);if(!m){const i=r.tokTypes,c=r.TokContext,d=r.TokenType,s=new c("<tag",!1),p=new c("</tag",!1),h=new c("<tag>...</tag>",!0,!0),g={tc_oTag:s,tc_cTag:p,tc_expr:h},v={jsxName:new d("jsxName"),jsxText:new d("jsxText",{beforeExpr:!0}),jsxTagStart:new d("jsxTagStart",{startsExpr:!0}),jsxTagEnd:new d("jsxTagEnd")};v.jsxTagStart.updateContext=function(){this.context.push(h),this.context.push(s),this.exprAllowed=!1},v.jsxTagEnd.updateContext=function(E){let b=this.context.pop();b===s&&E===i.slash||b===p?(this.context.pop(),this.exprAllowed=this.curContext()===h):this.exprAllowed=!0},m={tokContexts:g,tokTypes:v},t.set(r,m)}return m}function f(r){if(!r)return r;if(r.type==="JSXIdentifier")return r.name;if(r.type==="JSXNamespacedName")return r.namespace.name+":"+r.name.name;if(r.type==="JSXMemberExpression")return f(r.object)+"."+f(r.property)}a.exports=function(r){return r=r||{},function(m){return u({allowNamespaces:r.allowNamespaces!==!1,allowNamespacedObjects:!!r.allowNamespacedObjects},m)}},Object.defineProperty(a.exports,"tokTypes",{get:function(){return l(Vn()).tokTypes},configurable:!0,enumerable:!0});function u(r,m){const i=m.acorn||Vn(),c=l(i),d=i.tokTypes,s=c.tokTypes,p=i.tokContexts,h=c.tokContexts.tc_oTag,g=c.tokContexts.tc_cTag,v=c.tokContexts.tc_expr,E=i.isNewLine,b=i.isIdentifierStart,T=i.isIdentifierChar;return class extends m{static get acornJsx(){return c}jsx_readToken(){let C="",S=this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated JSX contents");let w=this.input.charCodeAt(this.pos);switch(w){case 60:case 123:return this.pos===this.start?w===60&&this.exprAllowed?(++this.pos,this.finishToken(s.jsxTagStart)):this.getTokenFromCode(w):(C+=this.input.slice(S,this.pos),this.finishToken(s.jsxText,C));case 38:C+=this.input.slice(S,this.pos),C+=this.jsx_readEntity(),S=this.pos;break;case 62:case 125:this.raise(this.pos,"Unexpected token `"+this.input[this.pos]+"`. Did you mean `"+(w===62?">":"}")+'` or `{"'+this.input[this.pos]+'"}`?');default:E(w)?(C+=this.input.slice(S,this.pos),C+=this.jsx_readNewLine(!0),S=this.pos):++this.pos}}}jsx_readNewLine(C){let S=this.input.charCodeAt(this.pos),w;return++this.pos,S===13&&this.input.charCodeAt(this.pos)===10?(++this.pos,w=C?`
|
|
10
|
+
`:`\r
|
|
11
|
+
`):w=String.fromCharCode(S),this.options.locations&&(++this.curLine,this.lineStart=this.pos),w}jsx_readString(C){let S="",w=++this.pos;for(;;){this.pos>=this.input.length&&this.raise(this.start,"Unterminated string constant");let x=this.input.charCodeAt(this.pos);if(x===C)break;x===38?(S+=this.input.slice(w,this.pos),S+=this.jsx_readEntity(),w=this.pos):E(x)?(S+=this.input.slice(w,this.pos),S+=this.jsx_readNewLine(!1),w=this.pos):++this.pos}return S+=this.input.slice(w,this.pos++),this.finishToken(d.string,S)}jsx_readEntity(){let C="",S=0,w,x=this.input[this.pos];x!=="&"&&this.raise(this.pos,"Entity must start with an ampersand");let A=++this.pos;for(;this.pos<this.input.length&&S++<10;){if(x=this.input[this.pos++],x===";"){C[0]==="#"?C[1]==="x"?(C=C.substr(2),n.test(C)&&(w=String.fromCharCode(parseInt(C,16)))):(C=C.substr(1),o.test(C)&&(w=String.fromCharCode(parseInt(C,10)))):w=e[C];break}C+=x}return w||(this.pos=A,"&")}jsx_readWord(){let C,S=this.pos;do C=this.input.charCodeAt(++this.pos);while(T(C)||C===45);return this.finishToken(s.jsxName,this.input.slice(S,this.pos))}jsx_parseIdentifier(){let C=this.startNode();return this.type===s.jsxName?C.name=this.value:this.type.keyword?C.name=this.type.keyword:this.unexpected(),this.next(),this.finishNode(C,"JSXIdentifier")}jsx_parseNamespacedName(){let C=this.start,S=this.startLoc,w=this.jsx_parseIdentifier();if(!r.allowNamespaces||!this.eat(d.colon))return w;var x=this.startNodeAt(C,S);return x.namespace=w,x.name=this.jsx_parseIdentifier(),this.finishNode(x,"JSXNamespacedName")}jsx_parseElementName(){if(this.type===s.jsxTagEnd)return"";let C=this.start,S=this.startLoc,w=this.jsx_parseNamespacedName();for(this.type===d.dot&&w.type==="JSXNamespacedName"&&!r.allowNamespacedObjects&&this.unexpected();this.eat(d.dot);){let x=this.startNodeAt(C,S);x.object=w,x.property=this.jsx_parseIdentifier(),w=this.finishNode(x,"JSXMemberExpression")}return w}jsx_parseAttributeValue(){switch(this.type){case d.braceL:let C=this.jsx_parseExpressionContainer();return C.expression.type==="JSXEmptyExpression"&&this.raise(C.start,"JSX attributes must only be assigned a non-empty expression"),C;case s.jsxTagStart:case d.string:return this.parseExprAtom();default:this.raise(this.start,"JSX value should be either an expression or a quoted JSX text")}}jsx_parseEmptyExpression(){let C=this.startNodeAt(this.lastTokEnd,this.lastTokEndLoc);return this.finishNodeAt(C,"JSXEmptyExpression",this.start,this.startLoc)}jsx_parseExpressionContainer(){let C=this.startNode();return this.next(),C.expression=this.type===d.braceR?this.jsx_parseEmptyExpression():this.parseExpression(),this.expect(d.braceR),this.finishNode(C,"JSXExpressionContainer")}jsx_parseAttribute(){let C=this.startNode();return this.eat(d.braceL)?(this.expect(d.ellipsis),C.argument=this.parseMaybeAssign(),this.expect(d.braceR),this.finishNode(C,"JSXSpreadAttribute")):(C.name=this.jsx_parseNamespacedName(),C.value=this.eat(d.eq)?this.jsx_parseAttributeValue():null,this.finishNode(C,"JSXAttribute"))}jsx_parseOpeningElementAt(C,S){let w=this.startNodeAt(C,S);w.attributes=[];let x=this.jsx_parseElementName();for(x&&(w.name=x);this.type!==d.slash&&this.type!==s.jsxTagEnd;)w.attributes.push(this.jsx_parseAttribute());return w.selfClosing=this.eat(d.slash),this.expect(s.jsxTagEnd),this.finishNode(w,x?"JSXOpeningElement":"JSXOpeningFragment")}jsx_parseClosingElementAt(C,S){let w=this.startNodeAt(C,S),x=this.jsx_parseElementName();return x&&(w.name=x),this.expect(s.jsxTagEnd),this.finishNode(w,x?"JSXClosingElement":"JSXClosingFragment")}jsx_parseElementAt(C,S){let w=this.startNodeAt(C,S),x=[],A=this.jsx_parseOpeningElementAt(C,S),k=null;if(!A.selfClosing){e:for(;;)switch(this.type){case s.jsxTagStart:if(C=this.start,S=this.startLoc,this.next(),this.eat(d.slash)){k=this.jsx_parseClosingElementAt(C,S);break e}x.push(this.jsx_parseElementAt(C,S));break;case s.jsxText:x.push(this.parseExprAtom());break;case d.braceL:x.push(this.jsx_parseExpressionContainer());break;default:this.unexpected()}f(k.name)!==f(A.name)&&this.raise(k.start,"Expected corresponding JSX closing tag for <"+f(A.name)+">")}let R=A.name?"Element":"Fragment";return w["opening"+R]=A,w["closing"+R]=k,w.children=x,this.type===d.relational&&this.value==="<"&&this.raise(this.start,"Adjacent JSX elements must be wrapped in an enclosing tag"),this.finishNode(w,"JSX"+R)}jsx_parseText(){let C=this.parseLiteral(this.value);return C.type="JSXText",C}jsx_parseElement(){let C=this.start,S=this.startLoc;return this.next(),this.jsx_parseElementAt(C,S)}parseExprAtom(C){return this.type===s.jsxText?this.jsx_parseText():this.type===s.jsxTagStart?this.jsx_parseElement():super.parseExprAtom(C)}readToken(C){let S=this.curContext();if(S===v)return this.jsx_readToken();if(S===h||S===g){if(b(C))return this.jsx_readWord();if(C==62)return++this.pos,this.finishToken(s.jsxTagEnd);if((C===34||C===39)&&S==h)return this.jsx_readString(C)}return C===60&&this.exprAllowed&&this.input.charCodeAt(this.pos+1)!==33?(++this.pos,this.finishToken(s.jsxTagStart)):super.readToken(C)}updateContext(C){if(this.type==d.braceL){var S=this.curContext();S==h?this.context.push(p.b_expr):S==v?this.context.push(p.b_tmpl):super.updateContext(C),this.exprAllowed=!0}else if(this.type===d.slash&&C===s.jsxTagStart)this.context.length-=2,this.context.push(g),this.exprAllowed=!1;else return super.updateContext(C)}}}})($n)),$n.exports}var Wr={},Hp;function tC(){if(Hp)return Wr;Hp=1;const a={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"]},e=Object.keys(a);for(const f of e)Object.freeze(a[f]);Object.freeze(a);const n=new Set(["parent","leadingComments","trailingComments"]);function o(f){return!n.has(f)&&f[0]!=="_"}function t(f){return Object.keys(f).filter(o)}function l(f){const u=Object.assign({},a);for(const r of Object.keys(f))if(Object.hasOwn(u,r)){const m=new Set(f[r]);for(const i of u[r])m.add(i);u[r]=Object.freeze(Array.from(m))}else u[r]=Object.freeze(Array.from(f[r]));return Object.freeze(u)}return Wr.KEYS=a,Wr.getKeys=t,Wr.unionWith=l,Wr}var Kp;function dn(){if(Kp)return er;Kp=1,Object.defineProperty(er,"__esModule",{value:!0});var a=Vn(),e=eC(),n=tC();function o(O){return O&&typeof O=="object"&&"default"in O?O:{default:O}}function t(O){if(O&&O.__esModule)return O;var $=Object.create(null);return O&&Object.keys(O).forEach(function(N){if(N!=="default"){var _=Object.getOwnPropertyDescriptor(O,N);Object.defineProperty($,N,_.get?_:{enumerable:!0,get:function(){return O[N]}})}}),$.default=O,Object.freeze($)}var l=t(a),f=o(e),u=t(n);const r={Boolean:"Boolean",Identifier:"Identifier",PrivateIdentifier:"PrivateIdentifier",Keyword:"Keyword",Null:"Null",Numeric:"Numeric",Punctuator:"Punctuator",String:"String",RegularExpression:"RegularExpression",Template:"Template",JSXIdentifier:"JSXIdentifier",JSXText:"JSXText"};function m(O,$){const N=O[0],_=O.at(-1),X={type:r.Template,value:$.slice(N.start,_.end)};return N.loc&&(X.loc={start:N.loc.start,end:_.loc.end}),N.range&&(X.start=N.range[0],X.end=_.range[1],X.range=[X.start,X.end]),X}function i(O,$){this._acornTokTypes=O,this._tokens=[],this._curlyBrace=null,this._code=$}i.prototype={constructor:i,translate(O,$){const N=O.type,_=this._acornTokTypes;if(N===_.name)O.type=r.Identifier,O.value==="static"&&(O.type=r.Keyword),$.ecmaVersion>5&&(O.value==="yield"||O.value==="let")&&(O.type=r.Keyword);else if(N===_.privateId)O.type=r.PrivateIdentifier;else if(N===_.semi||N===_.comma||N===_.parenL||N===_.parenR||N===_.braceL||N===_.braceR||N===_.dot||N===_.bracketL||N===_.colon||N===_.question||N===_.bracketR||N===_.ellipsis||N===_.arrow||N===_.jsxTagStart||N===_.incDec||N===_.starstar||N===_.jsxTagEnd||N===_.prefix||N===_.questionDot||N.binop&&!N.keyword||N.isAssign)O.type=r.Punctuator,O.value=this._code.slice(O.start,O.end);else if(N===_.jsxName)O.type=r.JSXIdentifier;else if(N.label==="jsxText"||N===_.jsxAttrValueToken)O.type=r.JSXText;else if(N.keyword)N.keyword==="true"||N.keyword==="false"?O.type=r.Boolean:N.keyword==="null"?O.type=r.Null:O.type=r.Keyword;else if(N===_.num)O.type=r.Numeric,O.value=this._code.slice(O.start,O.end);else if(N===_.string)$.jsxAttrValueToken?($.jsxAttrValueToken=!1,O.type=r.JSXText):O.type=r.String,O.value=this._code.slice(O.start,O.end);else if(N===_.regexp){O.type=r.RegularExpression;const X=O.value;O.regex={flags:X.flags,pattern:X.pattern},O.value=`/${X.pattern}/${X.flags}`}return O},onToken(O,$){const N=this._acornTokTypes,_=$.tokens,X=this._tokens,L=()=>{_.push(m(this._tokens,this._code)),this._tokens=[]};if(O.type===N.eof){this._curlyBrace&&_.push(this.translate(this._curlyBrace,$));return}if(O.type===N.backQuote){this._curlyBrace&&(_.push(this.translate(this._curlyBrace,$)),this._curlyBrace=null),X.push(O),X.length>1&&L();return}if(O.type===N.dollarBraceL){X.push(O),L();return}if(O.type===N.braceR){this._curlyBrace&&_.push(this.translate(this._curlyBrace,$)),this._curlyBrace=O;return}if(O.type===N.template||O.type===N.invalidTemplate){this._curlyBrace&&(X.push(this._curlyBrace),this._curlyBrace=null),X.push(O);return}this._curlyBrace&&(_.push(this.translate(this._curlyBrace,$)),this._curlyBrace=null),_.push(this.translate(O,$))}};const c=[3,5,6,7,8,9,10,11,12,13,14,15,16,17];function d(){return c.at(-1)}function s(){return[...c]}function p(O=5){let $=O==="latest"?d():O;if(typeof $!="number")throw new Error(`ecmaVersion must be a number or "latest". Received value of type ${typeof O} instead.`);if($>=2015&&($-=2009),!c.includes($))throw new Error("Invalid ecmaVersion.");return $}function h(O="script"){if(O==="script"||O==="module")return O;if(O==="commonjs")return"script";throw new Error("Invalid sourceType.")}function g(O){const $=p(O.ecmaVersion),N=h(O.sourceType),_=O.range===!0,X=O.loc===!0;if($!==3&&O.allowReserved)throw new Error("`allowReserved` is only supported when ecmaVersion is 3");if(typeof O.allowReserved<"u"&&typeof O.allowReserved!="boolean")throw new Error("`allowReserved`, when present, must be `true` or `false`");const L=$===3?O.allowReserved||"never":!1,K=O.ecmaFeatures||{},J=O.sourceType==="commonjs"||!!K.globalReturn;if(N==="module"&&$<6)throw new Error("sourceType 'module' is not supported when ecmaVersion < 2015. Consider adding `{ ecmaVersion: 2015 }` to the parser options.");return Object.assign({},O,{ecmaVersion:$,sourceType:N,ranges:_,locations:X,allowReserved:L,allowReturnOutsideFunction:J})}const v=Symbol("espree's internal state"),E=Symbol("espree's esprimaFinishNode");function b(O,$,N,_,X,L,K){let J;O?J="Block":K.slice(N,N+2)==="#!"?J="Hashbang":J="Line";const ge={type:J,value:$};return typeof N=="number"&&(ge.start=N,ge.end=_,ge.range=[N,_]),typeof X=="object"&&(ge.loc={start:X,end:L}),ge}var T=()=>O=>{const $=Object.assign({},O.acorn.tokTypes);return O.acornJsx&&Object.assign($,O.acornJsx.tokTypes),class extends O{constructor(_,X){(typeof _!="object"||_===null)&&(_={}),typeof X!="string"&&!(X instanceof String)&&(X=String(X));const L=_.sourceType,K=g(_),J=K.ecmaFeatures||{},ge=K.tokens===!0?new i($,X):null,ae={originalSourceType:L||K.sourceType,tokens:ge?[]:null,comments:K.comment===!0?[]:null,impliedStrict:J.impliedStrict===!0&&K.ecmaVersion>=5,ecmaVersion:K.ecmaVersion,jsxAttrValueToken:!1,lastToken:null,templateElements:[]};super({ecmaVersion:K.ecmaVersion,sourceType:K.sourceType,ranges:K.ranges,locations:K.locations,allowReserved:K.allowReserved,allowReturnOutsideFunction:K.allowReturnOutsideFunction,onToken(ke){ge&&ge.onToken(ke,ae),ke.type!==$.eof&&(ae.lastToken=ke)},onComment(ke,Z,P,H,fe,ce){if(ae.comments){const ie=b(ke,Z,P,H,fe,ce,X);ae.comments.push(ie)}}},X),this[v]=ae}tokenize(){do this.next();while(this.type!==$.eof);this.next();const _=this[v],X=_.tokens;return _.comments&&(X.comments=_.comments),X}finishNode(..._){const X=super.finishNode(..._);return this[E](X)}finishNodeAt(..._){const X=super.finishNodeAt(..._);return this[E](X)}parse(){const _=this[v],X=super.parse();if(X.sourceType=_.originalSourceType,_.comments&&(X.comments=_.comments),_.tokens&&(X.tokens=_.tokens),X.body.length){const[L]=X.body;X.range&&(X.range[0]=L.range[0]),X.loc&&(X.loc.start=L.loc.start),X.start=L.start}return _.lastToken&&(X.range&&(X.range[1]=_.lastToken.range[1]),X.loc&&(X.loc.end=_.lastToken.loc.end),X.end=_.lastToken.end),this[v].templateElements.forEach(L=>{const J=L.tail?1:2;L.start+=-1,L.end+=J,L.range&&(L.range[0]+=-1,L.range[1]+=J),L.loc&&(L.loc.start.column+=-1,L.loc.end.column+=J)}),X}parseTopLevel(_){return this[v].impliedStrict&&(this.strict=!0),super.parseTopLevel(_)}raise(_,X){const L=O.acorn.getLineInfo(this.input,_),K=new SyntaxError(X);throw K.index=_,K.lineNumber=L.line,K.column=L.column+1,K}raiseRecoverable(_,X){this.raise(_,X)}unexpected(_){let X="Unexpected token";if(_!=null){if(this.pos=_,this.options.locations)for(;this.pos<this.lineStart;)this.lineStart=this.input.lastIndexOf(`
|
|
12
|
+
`,this.lineStart-2)+1,--this.curLine;this.nextToken()}this.end>this.start&&(X+=` ${this.input.slice(this.start,this.end)}`),this.raise(this.start,X)}jsx_readString(_){const X=super.jsx_readString(_);return this.type===$.string&&(this[v].jsxAttrValueToken=!0),X}[E](_){return _.type==="TemplateElement"&&this[v].templateElements.push(_),_.type.includes("Function")&&!_.generator&&(_.generator=!1),_}}};const C="10.4.0",S={_regular:null,_jsx:null,get regular(){return this._regular===null&&(this._regular=l.Parser.extend(T())),this._regular},get jsx(){return this._jsx===null&&(this._jsx=l.Parser.extend(f.default(),T())),this._jsx},get(O){return!!(O&&O.ecmaFeatures&&O.ecmaFeatures.jsx)?this.jsx:this.regular}};function w(O,$){const N=S.get($);return(!$||$.tokens!==!0)&&($=Object.assign({},$,{tokens:!0})),new N($,O).tokenize()}function x(O,$){const N=S.get($);return new N($,O).parse()}const A=C,k="espree",R=(function(){return u.KEYS})(),I=(function(){let O,$={};typeof Object.create=="function"&&($=Object.create(null));for(O in R)Object.hasOwn(R,O)&&($[O]=O);return typeof Object.freeze=="function"&&Object.freeze($),$})(),B=d(),F=s();return er.Syntax=I,er.VisitorKeys=R,er.latestEcmaVersion=B,er.name=k,er.parse=x,er.supportedEcmaVersions=F,er.tokenize=w,er.version=A,er}var zr={exports:{}};zr.exports;var Xp;function rC(){return Xp||(Xp=1,(function(a,e){var n=200,o="__lodash_hash_undefined__",t=800,l=16,f=9007199254740991,u="[object Arguments]",r="[object Array]",m="[object AsyncFunction]",i="[object Boolean]",c="[object Date]",d="[object Error]",s="[object Function]",p="[object GeneratorFunction]",h="[object Map]",g="[object Number]",v="[object Null]",E="[object Object]",b="[object Proxy]",T="[object RegExp]",C="[object Set]",S="[object String]",w="[object Undefined]",x="[object WeakMap]",A="[object ArrayBuffer]",k="[object DataView]",R="[object Float32Array]",I="[object Float64Array]",B="[object Int8Array]",F="[object Int16Array]",O="[object Int32Array]",$="[object Uint8Array]",N="[object Uint8ClampedArray]",_="[object Uint16Array]",X="[object Uint32Array]",L=/[\\^$.*+?()[\]{}|]/g,K=/^\[object .+?Constructor\]$/,J=/^(?:0|[1-9]\d*)$/,ge={};ge[R]=ge[I]=ge[B]=ge[F]=ge[O]=ge[$]=ge[N]=ge[_]=ge[X]=!0,ge[u]=ge[r]=ge[A]=ge[i]=ge[k]=ge[c]=ge[d]=ge[s]=ge[h]=ge[g]=ge[E]=ge[T]=ge[C]=ge[S]=ge[x]=!1;var ae=typeof Xt=="object"&&Xt&&Xt.Object===Object&&Xt,ke=typeof self=="object"&&self&&self.Object===Object&&self,Z=ae||ke||Function("return this")(),P=e&&!e.nodeType&&e,H=P&&!0&&a&&!a.nodeType&&a,fe=H&&H.exports===P,ce=fe&&ae.process,ie=(function(){try{var xe=H&&H.require&&H.require("util").types;return xe||ce&&ce.binding&&ce.binding("util")}catch{}})(),he=ie&&ie.isTypedArray;function Ee(xe,_e,Ve){switch(Ve.length){case 0:return xe.call(_e);case 1:return xe.call(_e,Ve[0]);case 2:return xe.call(_e,Ve[0],Ve[1]);case 3:return xe.call(_e,Ve[0],Ve[1],Ve[2])}return xe.apply(_e,Ve)}function Ce(xe,_e){for(var Ve=-1,ct=Array(xe);++Ve<xe;)ct[Ve]=_e(Ve);return ct}function Ae(xe){return function(_e){return xe(_e)}}function ee(xe,_e){return xe?.[_e]}function ne(xe,_e){return function(Ve){return xe(_e(Ve))}}var we=Array.prototype,z=Function.prototype,oe=Object.prototype,Te=Z["__core-js_shared__"],Re=z.toString,Ie=oe.hasOwnProperty,W=(function(){var xe=/[^.]+$/.exec(Te&&Te.keys&&Te.keys.IE_PROTO||"");return xe?"Symbol(src)_1."+xe:""})(),Je=oe.toString,ut=Re.call(Object),tt=RegExp("^"+Re.call(Ie).replace(L,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),qe=fe?Z.Buffer:void 0,$e=Z.Symbol,st=Z.Uint8Array;qe&&qe.allocUnsafe;var mt=ne(Object.getPrototypeOf,Object),rt=Object.create,Qe=oe.propertyIsEnumerable,St=we.splice,Ze=$e?$e.toStringTag:void 0,Ct=(function(){try{var xe=jt(Object,"defineProperty");return xe({},"",{}),xe}catch{}})(),Ke=qe?qe.isBuffer:void 0,Ge=Math.max,Se=Date.now,j=jt(Z,"Map"),U=jt(Object,"create"),V=(function(){function xe(){}return function(_e){if(!Y(_e))return{};if(rt)return rt(_e);xe.prototype=_e;var Ve=new xe;return xe.prototype=void 0,Ve}})();function Q(xe){var _e=-1,Ve=xe==null?0:xe.length;for(this.clear();++_e<Ve;){var ct=xe[_e];this.set(ct[0],ct[1])}}function le(){this.__data__=U?U(null):{},this.size=0}function te(xe){var _e=this.has(xe)&&delete this.__data__[xe];return this.size-=_e?1:0,_e}function q(xe){var _e=this.__data__;if(U){var Ve=_e[xe];return Ve===o?void 0:Ve}return Ie.call(_e,xe)?_e[xe]:void 0}function se(xe){var _e=this.__data__;return U?_e[xe]!==void 0:Ie.call(_e,xe)}function ue(xe,_e){var Ve=this.__data__;return this.size+=this.has(xe)?0:1,Ve[xe]=U&&_e===void 0?o:_e,this}Q.prototype.clear=le,Q.prototype.delete=te,Q.prototype.get=q,Q.prototype.has=se,Q.prototype.set=ue;function be(xe){var _e=-1,Ve=xe==null?0:xe.length;for(this.clear();++_e<Ve;){var ct=xe[_e];this.set(ct[0],ct[1])}}function Oe(){this.__data__=[],this.size=0}function Pe(xe){var _e=this.__data__,Ve=bt(_e,xe);if(Ve<0)return!1;var ct=_e.length-1;return Ve==ct?_e.pop():St.call(_e,Ve,1),--this.size,!0}function We(xe){var _e=this.__data__,Ve=bt(_e,xe);return Ve<0?void 0:_e[Ve][1]}function ze(xe){return bt(this.__data__,xe)>-1}function me(xe,_e){var Ve=this.__data__,ct=bt(Ve,xe);return ct<0?(++this.size,Ve.push([xe,_e])):Ve[ct][1]=_e,this}be.prototype.clear=Oe,be.prototype.delete=Pe,be.prototype.get=We,be.prototype.has=ze,be.prototype.set=me;function pe(xe){var _e=-1,Ve=xe==null?0:xe.length;for(this.clear();++_e<Ve;){var ct=xe[_e];this.set(ct[0],ct[1])}}function ve(){this.size=0,this.__data__={hash:new Q,map:new(j||be),string:new Q}}function De(xe){var _e=Gt(this,xe).delete(xe);return this.size-=_e?1:0,_e}function Fe(xe){return Gt(this,xe).get(xe)}function at(xe){return Gt(this,xe).has(xe)}function Ue(xe,_e){var Ve=Gt(this,xe),ct=Ve.size;return Ve.set(xe,_e),this.size+=Ve.size==ct?0:1,this}pe.prototype.clear=ve,pe.prototype.delete=De,pe.prototype.get=Fe,pe.prototype.has=at,pe.prototype.set=Ue;function Xe(xe){var _e=this.__data__=new be(xe);this.size=_e.size}function ot(){this.__data__=new be,this.size=0}function He(xe){var _e=this.__data__,Ve=_e.delete(xe);return this.size=_e.size,Ve}function nt(xe){return this.__data__.get(xe)}function pt(xe){return this.__data__.has(xe)}function ht(xe,_e){var Ve=this.__data__;if(Ve instanceof be){var ct=Ve.__data__;if(!j||ct.length<n-1)return ct.push([xe,_e]),this.size=++Ve.size,this;Ve=this.__data__=new pe(ct)}return Ve.set(xe,_e),this.size=Ve.size,this}Xe.prototype.clear=ot,Xe.prototype.delete=He,Xe.prototype.get=nt,Xe.prototype.has=pt,Xe.prototype.set=ht;function ft(xe,_e){var Ve=re(xe),ct=!Ve&&M(xe),vt=!Ve&&!ct&&y(xe),Tt=!Ve&&!ct&&!vt&&Me(xe),kt=Ve||ct||vt||Tt,wt=kt?Ce(xe.length,String):[],Dt=wt.length;for(var nr in xe)kt&&(nr=="length"||vt&&(nr=="offset"||nr=="parent")||Tt&&(nr=="buffer"||nr=="byteLength"||nr=="byteOffset")||jr(nr,Dt))||wt.push(nr);return wt}function gt(xe,_e,Ve){(Ve!==void 0&&!je(xe[_e],Ve)||Ve===void 0&&!(_e in xe))&&Rt(xe,_e,Ve)}function xt(xe,_e,Ve){var ct=xe[_e];(!(Ie.call(xe,_e)&&je(ct,Ve))||Ve===void 0&&!(_e in xe))&&Rt(xe,_e,Ve)}function bt(xe,_e){for(var Ve=xe.length;Ve--;)if(je(xe[Ve][0],_e))return Ve;return-1}function Rt(xe,_e,Ve){_e=="__proto__"&&Ct?Ct(xe,_e,{configurable:!0,enumerable:!0,value:Ve,writable:!0}):xe[_e]=Ve}var _t=Zt();function Bt(xe){return xe==null?xe===void 0?w:v:Ze&&Ze in Object(xe)?Nr(xe):Ur(xe)}function Ht(xe){return ye(xe)&&Bt(xe)==u}function Wt(xe){if(!Y(xe)||on(xe))return!1;var _e=D(xe)?tt:K;return _e.test(qr(xe))}function Ot(xe){return ye(xe)&&G(xe.length)&&!!ge[Bt(xe)]}function $t(xe){if(!Y(xe))return gr(xe);var _e=hr(xe),Ve=[];for(var ct in xe)ct=="constructor"&&(_e||!Ie.call(xe,ct))||Ve.push(ct);return Ve}function lt(xe,_e,Ve,ct,vt){xe!==_e&&_t(_e,function(Tt,kt){if(vt||(vt=new Xe),Y(Tt))Mt(xe,_e,kt,Ve,lt,ct,vt);else{var wt=ct?ct(pr(xe,kt),Tt,kt+"",xe,_e,vt):void 0;wt===void 0&&(wt=Tt),gt(xe,kt,wt)}},it)}function Mt(xe,_e,Ve,ct,vt,Tt,kt){var wt=pr(xe,Ve),Dt=pr(_e,Ve),nr=kt.get(Dt);if(nr){gt(xe,Ve,nr);return}var Kt=Tt?Tt(wt,Dt,Ve+"",xe,_e,kt):void 0,un=Kt===void 0;if(un){var xp=re(Dt),wp=!xp&&y(Dt),v0=!xp&&!wp&&Me(Dt);Kt=Dt,xp||wp||v0?re(wt)?Kt=wt:Be(wt)?Kt=rr(wt):wp?(un=!1,Kt=Er(Dt)):v0?(un=!1,Kt=cr(Dt)):Kt=[]:Ne(Dt)||M(Dt)?(Kt=wt,M(wt)?Kt=et(wt):(!Y(wt)||D(wt))&&(Kt=Mr(Dt))):un=!1}un&&(kt.set(Dt,Kt),vt(Kt,Dt,ct,Tt,kt),kt.delete(Dt)),gt(xe,Ve,Kt)}function Lt(xe,_e){return Et(Rr(xe,_e,At),xe+"")}var Sr=Ct?function(xe,_e){return Ct(xe,"toString",{configurable:!0,enumerable:!1,value:yt(_e),writable:!0})}:At;function Er(xe,_e){return xe.slice()}function Qt(xe){var _e=new xe.constructor(xe.byteLength);return new st(_e).set(new st(xe)),_e}function cr(xe,_e){var Ve=Qt(xe.buffer);return new xe.constructor(Ve,xe.byteOffset,xe.length)}function rr(xe,_e){var Ve=-1,ct=xe.length;for(_e||(_e=Array(ct));++Ve<ct;)_e[Ve]=xe[Ve];return _e}function fr(xe,_e,Ve,ct){var vt=!Ve;Ve||(Ve={});for(var Tt=-1,kt=_e.length;++Tt<kt;){var wt=_e[Tt],Dt=void 0;Dt===void 0&&(Dt=xe[wt]),vt?Rt(Ve,wt,Dt):xt(Ve,wt,Dt)}return Ve}function br(xe){return Lt(function(_e,Ve){var ct=-1,vt=Ve.length,Tt=vt>1?Ve[vt-1]:void 0,kt=vt>2?Ve[2]:void 0;for(Tt=xe.length>3&&typeof Tt=="function"?(vt--,Tt):void 0,kt&&Fr(Ve[0],Ve[1],kt)&&(Tt=vt<3?void 0:Tt,vt=1),_e=Object(_e);++ct<vt;){var wt=Ve[ct];wt&&xe(_e,wt,ct,Tt)}return _e})}function Zt(xe){return function(_e,Ve,ct){for(var vt=-1,Tt=Object(_e),kt=ct(_e),wt=kt.length;wt--;){var Dt=kt[++vt];if(Ve(Tt[Dt],Dt,Tt)===!1)break}return _e}}function Gt(xe,_e){var Ve=xe.__data__;return an(_e)?Ve[typeof _e=="string"?"string":"hash"]:Ve.map}function jt(xe,_e){var Ve=ee(xe,_e);return Wt(Ve)?Ve:void 0}function Nr(xe){var _e=Ie.call(xe,Ze),Ve=xe[Ze];try{xe[Ze]=void 0;var ct=!0}catch{}var vt=Je.call(xe);return ct&&(_e?xe[Ze]=Ve:delete xe[Ze]),vt}function Mr(xe){return typeof xe.constructor=="function"&&!hr(xe)?V(mt(xe)):{}}function jr(xe,_e){var Ve=typeof xe;return _e=_e??f,!!_e&&(Ve=="number"||Ve!="symbol"&&J.test(xe))&&xe>-1&&xe%1==0&&xe<_e}function Fr(xe,_e,Ve){if(!Y(Ve))return!1;var ct=typeof _e;return(ct=="number"?de(Ve)&&jr(_e,Ve.length):ct=="string"&&_e in Ve)?je(Ve[_e],xe):!1}function an(xe){var _e=typeof xe;return _e=="string"||_e=="number"||_e=="symbol"||_e=="boolean"?xe!=="__proto__":xe===null}function on(xe){return!!W&&W in xe}function hr(xe){var _e=xe&&xe.constructor,Ve=typeof _e=="function"&&_e.prototype||oe;return xe===Ve}function gr(xe){var _e=[];if(xe!=null)for(var Ve in Object(xe))_e.push(Ve);return _e}function Ur(xe){return Je.call(xe)}function Rr(xe,_e,Ve){return _e=Ge(_e===void 0?xe.length-1:_e,0),function(){for(var ct=arguments,vt=-1,Tt=Ge(ct.length-_e,0),kt=Array(Tt);++vt<Tt;)kt[vt]=ct[_e+vt];vt=-1;for(var wt=Array(_e+1);++vt<_e;)wt[vt]=ct[vt];return wt[_e]=Ve(kt),Ee(xe,this,wt)}}function pr(xe,_e){if(!(_e==="constructor"&&typeof xe[_e]=="function")&&_e!="__proto__")return xe[_e]}var Et=ln(Sr);function ln(xe){var _e=0,Ve=0;return function(){var ct=Se(),vt=l-(ct-Ve);if(Ve=ct,vt>0){if(++_e>=t)return arguments[0]}else _e=0;return xe.apply(void 0,arguments)}}function qr(xe){if(xe!=null){try{return Re.call(xe)}catch{}try{return xe+""}catch{}}return""}function je(xe,_e){return xe===_e||xe!==xe&&_e!==_e}var M=Ht((function(){return arguments})())?Ht:function(xe){return ye(xe)&&Ie.call(xe,"callee")&&!Qe.call(xe,"callee")},re=Array.isArray;function de(xe){return xe!=null&&G(xe.length)&&!D(xe)}function Be(xe){return ye(xe)&&de(xe)}var y=Ke||Ut;function D(xe){if(!Y(xe))return!1;var _e=Bt(xe);return _e==s||_e==p||_e==m||_e==b}function G(xe){return typeof xe=="number"&&xe>-1&&xe%1==0&&xe<=f}function Y(xe){var _e=typeof xe;return xe!=null&&(_e=="object"||_e=="function")}function ye(xe){return xe!=null&&typeof xe=="object"}function Ne(xe){if(!ye(xe)||Bt(xe)!=E)return!1;var _e=mt(xe);if(_e===null)return!0;var Ve=Ie.call(_e,"constructor")&&_e.constructor;return typeof Ve=="function"&&Ve instanceof Ve&&Re.call(Ve)==ut}var Me=he?Ae(he):Ot;function et(xe){return fr(xe,it(xe))}function it(xe){return de(xe)?ft(xe):$t(xe)}var dt=br(function(xe,_e,Ve){lt(xe,_e,Ve)});function yt(xe){return function(){return xe}}function At(xe){return xe}function Ut(){return!1}a.exports=dt})(zr,zr.exports)),zr.exports}var nC="9.39.2",sC={version:nC},hn={},sr=[],Yt=[],aC=typeof Uint8Array<"u"?Uint8Array:Array,Wn=!1;function Jp(){Wn=!0;for(var a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",e=0,n=a.length;e<n;++e)sr[e]=a[e],Yt[a.charCodeAt(e)]=e;Yt[45]=62,Yt[95]=63}function iC(a){Wn||Jp();var e,n,o,t,l,f,u=a.length;if(u%4>0)throw new Error("Invalid string. Length must be a multiple of 4");l=a[u-2]==="="?2:a[u-1]==="="?1:0,f=new aC(u*3/4-l),o=l>0?u-4:u;var r=0;for(e=0,n=0;e<o;e+=4,n+=3)t=Yt[a.charCodeAt(e)]<<18|Yt[a.charCodeAt(e+1)]<<12|Yt[a.charCodeAt(e+2)]<<6|Yt[a.charCodeAt(e+3)],f[r++]=t>>16&255,f[r++]=t>>8&255,f[r++]=t&255;return l===2?(t=Yt[a.charCodeAt(e)]<<2|Yt[a.charCodeAt(e+1)]>>4,f[r++]=t&255):l===1&&(t=Yt[a.charCodeAt(e)]<<10|Yt[a.charCodeAt(e+1)]<<4|Yt[a.charCodeAt(e+2)]>>2,f[r++]=t>>8&255,f[r++]=t&255),f}function oC(a){return sr[a>>18&63]+sr[a>>12&63]+sr[a>>6&63]+sr[a&63]}function lC(a,e,n){for(var o,t=[],l=e;l<n;l+=3)o=(a[l]<<16)+(a[l+1]<<8)+a[l+2],t.push(oC(o));return t.join("")}function Yp(a){Wn||Jp();for(var e,n=a.length,o=n%3,t="",l=[],f=16383,u=0,r=n-o;u<r;u+=f)l.push(lC(a,u,u+f>r?r:u+f));return o===1?(e=a[n-1],t+=sr[e>>2],t+=sr[e<<4&63],t+="=="):o===2&&(e=(a[n-2]<<8)+a[n-1],t+=sr[e>>10],t+=sr[e>>4&63],t+=sr[e<<2&63],t+="="),l.push(t),l.join("")}function gn(a,e,n,o,t){var l,f,u=t*8-o-1,r=(1<<u)-1,m=r>>1,i=-7,c=n?t-1:0,d=n?-1:1,s=a[e+c];for(c+=d,l=s&(1<<-i)-1,s>>=-i,i+=u;i>0;l=l*256+a[e+c],c+=d,i-=8);for(f=l&(1<<-i)-1,l>>=-i,i+=o;i>0;f=f*256+a[e+c],c+=d,i-=8);if(l===0)l=1-m;else{if(l===r)return f?NaN:(s?-1:1)*(1/0);f=f+Math.pow(2,o),l=l-m}return(s?-1:1)*f*Math.pow(2,l-o)}function Qp(a,e,n,o,t,l){var f,u,r,m=l*8-t-1,i=(1<<m)-1,c=i>>1,d=t===23?Math.pow(2,-24)-Math.pow(2,-77):0,s=o?0:l-1,p=o?1:-1,h=e<0||e===0&&1/e<0?1:0;for(e=Math.abs(e),isNaN(e)||e===1/0?(u=isNaN(e)?1:0,f=i):(f=Math.floor(Math.log(e)/Math.LN2),e*(r=Math.pow(2,-f))<1&&(f--,r*=2),f+c>=1?e+=d/r:e+=d*Math.pow(2,1-c),e*r>=2&&(f++,r/=2),f+c>=i?(u=0,f=i):f+c>=1?(u=(e*r-1)*Math.pow(2,t),f=f+c):(u=e*Math.pow(2,c-1)*Math.pow(2,t),f=0));t>=8;a[n+s]=u&255,s+=p,u/=256,t-=8);for(f=f<<t|u,m+=t;m>0;a[n+s]=f&255,s+=p,f/=256,m-=8);a[n+s-p]|=h*128}var uC={}.toString,Zp=Array.isArray||function(a){return uC.call(a)=="[object Array]"};var cC=50;Ye.TYPED_ARRAY_SUPPORT=Xt.TYPED_ARRAY_SUPPORT!==void 0?Xt.TYPED_ARRAY_SUPPORT:!0,yn();function yn(){return Ye.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function dr(a,e){if(yn()<e)throw new RangeError("Invalid typed array length");return Ye.TYPED_ARRAY_SUPPORT?(a=new Uint8Array(e),a.__proto__=Ye.prototype):(a===null&&(a=new Ye(e)),a.length=e),a}function Ye(a,e,n){if(!Ye.TYPED_ARRAY_SUPPORT&&!(this instanceof Ye))return new Ye(a,e,n);if(typeof a=="number"){if(typeof e=="string")throw new Error("If encoding is specified then the first argument must be a string");return zn(this,a)}return em(this,a,e,n)}Ye.poolSize=8192,Ye._augment=function(a){return a.__proto__=Ye.prototype,a};function em(a,e,n,o){if(typeof e=="number")throw new TypeError('"value" argument must not be a number');return typeof ArrayBuffer<"u"&&e instanceof ArrayBuffer?mC(a,e,n,o):typeof e=="string"?pC(a,e,n):dC(a,e)}Ye.from=function(a,e,n){return em(null,a,e,n)},Ye.TYPED_ARRAY_SUPPORT&&(Ye.prototype.__proto__=Uint8Array.prototype,Ye.__proto__=Uint8Array,typeof Symbol<"u"&&Symbol.species&&Ye[Symbol.species]);function tm(a){if(typeof a!="number")throw new TypeError('"size" argument must be a number');if(a<0)throw new RangeError('"size" argument must not be negative')}function fC(a,e,n,o){return tm(e),e<=0?dr(a,e):n!==void 0?typeof o=="string"?dr(a,e).fill(n,o):dr(a,e).fill(n):dr(a,e)}Ye.alloc=function(a,e,n){return fC(null,a,e,n)};function zn(a,e){if(tm(e),a=dr(a,e<0?0:Kn(e)|0),!Ye.TYPED_ARRAY_SUPPORT)for(var n=0;n<e;++n)a[n]=0;return a}Ye.allocUnsafe=function(a){return zn(null,a)},Ye.allocUnsafeSlow=function(a){return zn(null,a)};function pC(a,e,n){if((typeof n!="string"||n==="")&&(n="utf8"),!Ye.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var o=rm(e,n)|0;a=dr(a,o);var t=a.write(e,n);return t!==o&&(a=a.slice(0,t)),a}function Hn(a,e){var n=e.length<0?0:Kn(e.length)|0;a=dr(a,n);for(var o=0;o<n;o+=1)a[o]=e[o]&255;return a}function mC(a,e,n,o){if(e.byteLength,n<0||e.byteLength<n)throw new RangeError("'offset' is out of bounds");if(e.byteLength<n+(o||0))throw new RangeError("'length' is out of bounds");return n===void 0&&o===void 0?e=new Uint8Array(e):o===void 0?e=new Uint8Array(e,n):e=new Uint8Array(e,n,o),Ye.TYPED_ARRAY_SUPPORT?(a=e,a.__proto__=Ye.prototype):a=Hn(a,e),a}function dC(a,e){if(ar(e)){var n=Kn(e.length)|0;return a=dr(a,n),a.length===0||e.copy(a,0,0,n),a}if(e){if(typeof ArrayBuffer<"u"&&e.buffer instanceof ArrayBuffer||"length"in e)return typeof e.length!="number"||_C(e.length)?dr(a,0):Hn(a,e);if(e.type==="Buffer"&&Zp(e.data))return Hn(a,e.data)}throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}function Kn(a){if(a>=yn())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+yn().toString(16)+" bytes");return a|0}Ye.isBuffer=BC;function ar(a){return!!(a!=null&&a._isBuffer)}Ye.compare=function(e,n){if(!ar(e)||!ar(n))throw new TypeError("Arguments must be Buffers");if(e===n)return 0;for(var o=e.length,t=n.length,l=0,f=Math.min(o,t);l<f;++l)if(e[l]!==n[l]){o=e[l],t=n[l];break}return o<t?-1:t<o?1:0},Ye.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},Ye.concat=function(e,n){if(!Zp(e))throw new TypeError('"list" argument must be an Array of Buffers');if(e.length===0)return Ye.alloc(0);var o;if(n===void 0)for(n=0,o=0;o<e.length;++o)n+=e[o].length;var t=Ye.allocUnsafe(n),l=0;for(o=0;o<e.length;++o){var f=e[o];if(!ar(f))throw new TypeError('"list" argument must be an Array of Buffers');f.copy(t,l),l+=f.length}return t};function rm(a,e){if(ar(a))return a.length;if(typeof ArrayBuffer<"u"&&typeof ArrayBuffer.isView=="function"&&(ArrayBuffer.isView(a)||a instanceof ArrayBuffer))return a.byteLength;typeof a!="string"&&(a=""+a);var n=a.length;if(n===0)return 0;for(var o=!1;;)switch(e){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return En(a).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return n*2;case"hex":return n>>>1;case"base64":return fm(a).length;default:if(o)return En(a).length;e=(""+e).toLowerCase(),o=!0}}Ye.byteLength=rm;function hC(a,e,n){var o=!1;if((e===void 0||e<0)&&(e=0),e>this.length||((n===void 0||n>this.length)&&(n=this.length),n<=0)||(n>>>=0,e>>>=0,n<=e))return"";for(a||(a="utf8");;)switch(a){case"hex":return AC(this,e,n);case"utf8":case"utf-8":return im(this,e,n);case"ascii":return xC(this,e,n);case"latin1":case"binary":return wC(this,e,n);case"base64":return bC(this,e,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return TC(this,e,n);default:if(o)throw new TypeError("Unknown encoding: "+a);a=(a+"").toLowerCase(),o=!0}}Ye.prototype._isBuffer=!0;function wr(a,e,n){var o=a[e];a[e]=a[n],a[n]=o}Ye.prototype.swap16=function(){var e=this.length;if(e%2!==0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var n=0;n<e;n+=2)wr(this,n,n+1);return this},Ye.prototype.swap32=function(){var e=this.length;if(e%4!==0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var n=0;n<e;n+=4)wr(this,n,n+3),wr(this,n+1,n+2);return this},Ye.prototype.swap64=function(){var e=this.length;if(e%8!==0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var n=0;n<e;n+=8)wr(this,n,n+7),wr(this,n+1,n+6),wr(this,n+2,n+5),wr(this,n+3,n+4);return this},Ye.prototype.toString=function(){var e=this.length|0;return e===0?"":arguments.length===0?im(this,0,e):hC.apply(this,arguments)},Ye.prototype.equals=function(e){if(!ar(e))throw new TypeError("Argument must be a Buffer");return this===e?!0:Ye.compare(this,e)===0},Ye.prototype.inspect=function(){var e="",n=cC;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},Ye.prototype.compare=function(e,n,o,t,l){if(!ar(e))throw new TypeError("Argument must be a Buffer");if(n===void 0&&(n=0),o===void 0&&(o=e?e.length:0),t===void 0&&(t=0),l===void 0&&(l=this.length),n<0||o>e.length||t<0||l>this.length)throw new RangeError("out of range index");if(t>=l&&n>=o)return 0;if(t>=l)return-1;if(n>=o)return 1;if(n>>>=0,o>>>=0,t>>>=0,l>>>=0,this===e)return 0;for(var f=l-t,u=o-n,r=Math.min(f,u),m=this.slice(t,l),i=e.slice(n,o),c=0;c<r;++c)if(m[c]!==i[c]){f=m[c],u=i[c];break}return f<u?-1:u<f?1:0};function nm(a,e,n,o,t){if(a.length===0)return-1;if(typeof n=="string"?(o=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=t?0:a.length-1),n<0&&(n=a.length+n),n>=a.length){if(t)return-1;n=a.length-1}else if(n<0)if(t)n=0;else return-1;if(typeof e=="string"&&(e=Ye.from(e,o)),ar(e))return e.length===0?-1:sm(a,e,n,o,t);if(typeof e=="number")return e=e&255,Ye.TYPED_ARRAY_SUPPORT&&typeof Uint8Array.prototype.indexOf=="function"?t?Uint8Array.prototype.indexOf.call(a,e,n):Uint8Array.prototype.lastIndexOf.call(a,e,n):sm(a,[e],n,o,t);throw new TypeError("val must be string, number or Buffer")}function sm(a,e,n,o,t){var l=1,f=a.length,u=e.length;if(o!==void 0&&(o=String(o).toLowerCase(),o==="ucs2"||o==="ucs-2"||o==="utf16le"||o==="utf-16le")){if(a.length<2||e.length<2)return-1;l=2,f/=2,u/=2,n/=2}function r(s,p){return l===1?s[p]:s.readUInt16BE(p*l)}var m;if(t){var i=-1;for(m=n;m<f;m++)if(r(a,m)===r(e,i===-1?0:m-i)){if(i===-1&&(i=m),m-i+1===u)return i*l}else i!==-1&&(m-=m-i),i=-1}else for(n+u>f&&(n=f-u),m=n;m>=0;m--){for(var c=!0,d=0;d<u;d++)if(r(a,m+d)!==r(e,d)){c=!1;break}if(c)return m}return-1}Ye.prototype.includes=function(e,n,o){return this.indexOf(e,n,o)!==-1},Ye.prototype.indexOf=function(e,n,o){return nm(this,e,n,o,!0)},Ye.prototype.lastIndexOf=function(e,n,o){return nm(this,e,n,o,!1)};function gC(a,e,n,o){n=Number(n)||0;var t=a.length-n;o?(o=Number(o),o>t&&(o=t)):o=t;var l=e.length;if(l%2!==0)throw new TypeError("Invalid hex string");o>l/2&&(o=l/2);for(var f=0;f<o;++f){var u=parseInt(e.substr(f*2,2),16);if(isNaN(u))return f;a[n+f]=u}return f}function yC(a,e,n,o){return bn(En(e,a.length-n),a,n,o)}function am(a,e,n,o){return bn(FC(e),a,n,o)}function vC(a,e,n,o){return am(a,e,n,o)}function SC(a,e,n,o){return bn(fm(e),a,n,o)}function EC(a,e,n,o){return bn(RC(e,a.length-n),a,n,o)}Ye.prototype.write=function(e,n,o,t){if(n===void 0)t="utf8",o=this.length,n=0;else if(o===void 0&&typeof n=="string")t=n,o=this.length,n=0;else if(isFinite(n))n=n|0,isFinite(o)?(o=o|0,t===void 0&&(t="utf8")):(t=o,o=void 0);else throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");var l=this.length-n;if((o===void 0||o>l)&&(o=l),e.length>0&&(o<0||n<0)||n>this.length)throw new RangeError("Attempt to write outside buffer bounds");t||(t="utf8");for(var f=!1;;)switch(t){case"hex":return gC(this,e,n,o);case"utf8":case"utf-8":return yC(this,e,n,o);case"ascii":return am(this,e,n,o);case"latin1":case"binary":return vC(this,e,n,o);case"base64":return SC(this,e,n,o);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return EC(this,e,n,o);default:if(f)throw new TypeError("Unknown encoding: "+t);t=(""+t).toLowerCase(),f=!0}},Ye.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};function bC(a,e,n){return e===0&&n===a.length?Yp(a):Yp(a.slice(e,n))}function im(a,e,n){n=Math.min(a.length,n);for(var o=[],t=e;t<n;){var l=a[t],f=null,u=l>239?4:l>223?3:l>191?2:1;if(t+u<=n){var r,m,i,c;switch(u){case 1:l<128&&(f=l);break;case 2:r=a[t+1],(r&192)===128&&(c=(l&31)<<6|r&63,c>127&&(f=c));break;case 3:r=a[t+1],m=a[t+2],(r&192)===128&&(m&192)===128&&(c=(l&15)<<12|(r&63)<<6|m&63,c>2047&&(c<55296||c>57343)&&(f=c));break;case 4:r=a[t+1],m=a[t+2],i=a[t+3],(r&192)===128&&(m&192)===128&&(i&192)===128&&(c=(l&15)<<18|(r&63)<<12|(m&63)<<6|i&63,c>65535&&c<1114112&&(f=c))}}f===null?(f=65533,u=1):f>65535&&(f-=65536,o.push(f>>>10&1023|55296),f=56320|f&1023),o.push(f),t+=u}return CC(o)}var om=4096;function CC(a){var e=a.length;if(e<=om)return String.fromCharCode.apply(String,a);for(var n="",o=0;o<e;)n+=String.fromCharCode.apply(String,a.slice(o,o+=om));return n}function xC(a,e,n){var o="";n=Math.min(a.length,n);for(var t=e;t<n;++t)o+=String.fromCharCode(a[t]&127);return o}function wC(a,e,n){var o="";n=Math.min(a.length,n);for(var t=e;t<n;++t)o+=String.fromCharCode(a[t]);return o}function AC(a,e,n){var o=a.length;(!e||e<0)&&(e=0),(!n||n<0||n>o)&&(n=o);for(var t="",l=e;l<n;++l)t+=IC(a[l]);return t}function TC(a,e,n){for(var o=a.slice(e,n),t="",l=0;l<o.length;l+=2)t+=String.fromCharCode(o[l]+o[l+1]*256);return t}Ye.prototype.slice=function(e,n){var o=this.length;e=~~e,n=n===void 0?o:~~n,e<0?(e+=o,e<0&&(e=0)):e>o&&(e=o),n<0?(n+=o,n<0&&(n=0)):n>o&&(n=o),n<e&&(n=e);var t;if(Ye.TYPED_ARRAY_SUPPORT)t=this.subarray(e,n),t.__proto__=Ye.prototype;else{var l=n-e;t=new Ye(l,void 0);for(var f=0;f<l;++f)t[f]=this[f+e]}return t};function Nt(a,e,n){if(a%1!==0||a<0)throw new RangeError("offset is not uint");if(a+e>n)throw new RangeError("Trying to access beyond buffer length")}Ye.prototype.readUIntLE=function(e,n,o){e=e|0,n=n|0,o||Nt(e,n,this.length);for(var t=this[e],l=1,f=0;++f<n&&(l*=256);)t+=this[e+f]*l;return t},Ye.prototype.readUIntBE=function(e,n,o){e=e|0,n=n|0,o||Nt(e,n,this.length);for(var t=this[e+--n],l=1;n>0&&(l*=256);)t+=this[e+--n]*l;return t},Ye.prototype.readUInt8=function(e,n){return n||Nt(e,1,this.length),this[e]},Ye.prototype.readUInt16LE=function(e,n){return n||Nt(e,2,this.length),this[e]|this[e+1]<<8},Ye.prototype.readUInt16BE=function(e,n){return n||Nt(e,2,this.length),this[e]<<8|this[e+1]},Ye.prototype.readUInt32LE=function(e,n){return n||Nt(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+this[e+3]*16777216},Ye.prototype.readUInt32BE=function(e,n){return n||Nt(e,4,this.length),this[e]*16777216+(this[e+1]<<16|this[e+2]<<8|this[e+3])},Ye.prototype.readIntLE=function(e,n,o){e=e|0,n=n|0,o||Nt(e,n,this.length);for(var t=this[e],l=1,f=0;++f<n&&(l*=256);)t+=this[e+f]*l;return l*=128,t>=l&&(t-=Math.pow(2,8*n)),t},Ye.prototype.readIntBE=function(e,n,o){e=e|0,n=n|0,o||Nt(e,n,this.length);for(var t=n,l=1,f=this[e+--t];t>0&&(l*=256);)f+=this[e+--t]*l;return l*=128,f>=l&&(f-=Math.pow(2,8*n)),f},Ye.prototype.readInt8=function(e,n){return n||Nt(e,1,this.length),this[e]&128?(255-this[e]+1)*-1:this[e]},Ye.prototype.readInt16LE=function(e,n){n||Nt(e,2,this.length);var o=this[e]|this[e+1]<<8;return o&32768?o|4294901760:o},Ye.prototype.readInt16BE=function(e,n){n||Nt(e,2,this.length);var o=this[e+1]|this[e]<<8;return o&32768?o|4294901760:o},Ye.prototype.readInt32LE=function(e,n){return n||Nt(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},Ye.prototype.readInt32BE=function(e,n){return n||Nt(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},Ye.prototype.readFloatLE=function(e,n){return n||Nt(e,4,this.length),gn(this,e,!0,23,4)},Ye.prototype.readFloatBE=function(e,n){return n||Nt(e,4,this.length),gn(this,e,!1,23,4)},Ye.prototype.readDoubleLE=function(e,n){return n||Nt(e,8,this.length),gn(this,e,!0,52,8)},Ye.prototype.readDoubleBE=function(e,n){return n||Nt(e,8,this.length),gn(this,e,!1,52,8)};function zt(a,e,n,o,t,l){if(!ar(a))throw new TypeError('"buffer" argument must be a Buffer instance');if(e>t||e<l)throw new RangeError('"value" argument is out of bounds');if(n+o>a.length)throw new RangeError("Index out of range")}Ye.prototype.writeUIntLE=function(e,n,o,t){if(e=+e,n=n|0,o=o|0,!t){var l=Math.pow(2,8*o)-1;zt(this,e,n,o,l,0)}var f=1,u=0;for(this[n]=e&255;++u<o&&(f*=256);)this[n+u]=e/f&255;return n+o},Ye.prototype.writeUIntBE=function(e,n,o,t){if(e=+e,n=n|0,o=o|0,!t){var l=Math.pow(2,8*o)-1;zt(this,e,n,o,l,0)}var f=o-1,u=1;for(this[n+f]=e&255;--f>=0&&(u*=256);)this[n+f]=e/u&255;return n+o},Ye.prototype.writeUInt8=function(e,n,o){return e=+e,n=n|0,o||zt(this,e,n,1,255,0),Ye.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[n]=e&255,n+1};function vn(a,e,n,o){e<0&&(e=65535+e+1);for(var t=0,l=Math.min(a.length-n,2);t<l;++t)a[n+t]=(e&255<<8*(o?t:1-t))>>>(o?t:1-t)*8}Ye.prototype.writeUInt16LE=function(e,n,o){return e=+e,n=n|0,o||zt(this,e,n,2,65535,0),Ye.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):vn(this,e,n,!0),n+2},Ye.prototype.writeUInt16BE=function(e,n,o){return e=+e,n=n|0,o||zt(this,e,n,2,65535,0),Ye.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):vn(this,e,n,!1),n+2};function Sn(a,e,n,o){e<0&&(e=4294967295+e+1);for(var t=0,l=Math.min(a.length-n,4);t<l;++t)a[n+t]=e>>>(o?t:3-t)*8&255}Ye.prototype.writeUInt32LE=function(e,n,o){return e=+e,n=n|0,o||zt(this,e,n,4,4294967295,0),Ye.TYPED_ARRAY_SUPPORT?(this[n+3]=e>>>24,this[n+2]=e>>>16,this[n+1]=e>>>8,this[n]=e&255):Sn(this,e,n,!0),n+4},Ye.prototype.writeUInt32BE=function(e,n,o){return e=+e,n=n|0,o||zt(this,e,n,4,4294967295,0),Ye.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):Sn(this,e,n,!1),n+4},Ye.prototype.writeIntLE=function(e,n,o,t){if(e=+e,n=n|0,!t){var l=Math.pow(2,8*o-1);zt(this,e,n,o,l-1,-l)}var f=0,u=1,r=0;for(this[n]=e&255;++f<o&&(u*=256);)e<0&&r===0&&this[n+f-1]!==0&&(r=1),this[n+f]=(e/u>>0)-r&255;return n+o},Ye.prototype.writeIntBE=function(e,n,o,t){if(e=+e,n=n|0,!t){var l=Math.pow(2,8*o-1);zt(this,e,n,o,l-1,-l)}var f=o-1,u=1,r=0;for(this[n+f]=e&255;--f>=0&&(u*=256);)e<0&&r===0&&this[n+f+1]!==0&&(r=1),this[n+f]=(e/u>>0)-r&255;return n+o},Ye.prototype.writeInt8=function(e,n,o){return e=+e,n=n|0,o||zt(this,e,n,1,127,-128),Ye.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[n]=e&255,n+1},Ye.prototype.writeInt16LE=function(e,n,o){return e=+e,n=n|0,o||zt(this,e,n,2,32767,-32768),Ye.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8):vn(this,e,n,!0),n+2},Ye.prototype.writeInt16BE=function(e,n,o){return e=+e,n=n|0,o||zt(this,e,n,2,32767,-32768),Ye.TYPED_ARRAY_SUPPORT?(this[n]=e>>>8,this[n+1]=e&255):vn(this,e,n,!1),n+2},Ye.prototype.writeInt32LE=function(e,n,o){return e=+e,n=n|0,o||zt(this,e,n,4,2147483647,-2147483648),Ye.TYPED_ARRAY_SUPPORT?(this[n]=e&255,this[n+1]=e>>>8,this[n+2]=e>>>16,this[n+3]=e>>>24):Sn(this,e,n,!0),n+4},Ye.prototype.writeInt32BE=function(e,n,o){return e=+e,n=n|0,o||zt(this,e,n,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),Ye.TYPED_ARRAY_SUPPORT?(this[n]=e>>>24,this[n+1]=e>>>16,this[n+2]=e>>>8,this[n+3]=e&255):Sn(this,e,n,!1),n+4};function lm(a,e,n,o,t,l){if(n+o>a.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function um(a,e,n,o,t){return t||lm(a,e,n,4),Qp(a,e,n,o,23,4),n+4}Ye.prototype.writeFloatLE=function(e,n,o){return um(this,e,n,!0,o)},Ye.prototype.writeFloatBE=function(e,n,o){return um(this,e,n,!1,o)};function cm(a,e,n,o,t){return t||lm(a,e,n,8),Qp(a,e,n,o,52,8),n+8}Ye.prototype.writeDoubleLE=function(e,n,o){return cm(this,e,n,!0,o)},Ye.prototype.writeDoubleBE=function(e,n,o){return cm(this,e,n,!1,o)},Ye.prototype.copy=function(e,n,o,t){if(o||(o=0),!t&&t!==0&&(t=this.length),n>=e.length&&(n=e.length),n||(n=0),t>0&&t<o&&(t=o),t===o||e.length===0||this.length===0)return 0;if(n<0)throw new RangeError("targetStart out of bounds");if(o<0||o>=this.length)throw new RangeError("sourceStart out of bounds");if(t<0)throw new RangeError("sourceEnd out of bounds");t>this.length&&(t=this.length),e.length-n<t-o&&(t=e.length-n+o);var l=t-o,f;if(this===e&&o<n&&n<t)for(f=l-1;f>=0;--f)e[f+n]=this[f+o];else if(l<1e3||!Ye.TYPED_ARRAY_SUPPORT)for(f=0;f<l;++f)e[f+n]=this[f+o];else Uint8Array.prototype.set.call(e,this.subarray(o,o+l),n);return l},Ye.prototype.fill=function(e,n,o,t){if(typeof e=="string"){if(typeof n=="string"?(t=n,n=0,o=this.length):typeof o=="string"&&(t=o,o=this.length),e.length===1){var l=e.charCodeAt(0);l<256&&(e=l)}if(t!==void 0&&typeof t!="string")throw new TypeError("encoding must be a string");if(typeof t=="string"&&!Ye.isEncoding(t))throw new TypeError("Unknown encoding: "+t)}else typeof e=="number"&&(e=e&255);if(n<0||this.length<n||this.length<o)throw new RangeError("Out of range index");if(o<=n)return this;n=n>>>0,o=o===void 0?this.length:o>>>0,e||(e=0);var f;if(typeof e=="number")for(f=n;f<o;++f)this[f]=e;else{var u=ar(e)?e:En(new Ye(e,t).toString()),r=u.length;for(f=0;f<o-n;++f)this[f+n]=u[f%r]}return this};var kC=/[^+\/0-9A-Za-z-_]/g;function DC(a){if(a=PC(a).replace(kC,""),a.length<2)return"";for(;a.length%4!==0;)a=a+"=";return a}function PC(a){return a.trim?a.trim():a.replace(/^\s+|\s+$/g,"")}function IC(a){return a<16?"0"+a.toString(16):a.toString(16)}function En(a,e){e=e||1/0;for(var n,o=a.length,t=null,l=[],f=0;f<o;++f){if(n=a.charCodeAt(f),n>55295&&n<57344){if(!t){if(n>56319){(e-=3)>-1&&l.push(239,191,189);continue}else if(f+1===o){(e-=3)>-1&&l.push(239,191,189);continue}t=n;continue}if(n<56320){(e-=3)>-1&&l.push(239,191,189),t=n;continue}n=(t-55296<<10|n-56320)+65536}else t&&(e-=3)>-1&&l.push(239,191,189);if(t=null,n<128){if((e-=1)<0)break;l.push(n)}else if(n<2048){if((e-=2)<0)break;l.push(n>>6|192,n&63|128)}else if(n<65536){if((e-=3)<0)break;l.push(n>>12|224,n>>6&63|128,n&63|128)}else if(n<1114112){if((e-=4)<0)break;l.push(n>>18|240,n>>12&63|128,n>>6&63|128,n&63|128)}else throw new Error("Invalid code point")}return l}function FC(a){for(var e=[],n=0;n<a.length;++n)e.push(a.charCodeAt(n)&255);return e}function RC(a,e){for(var n,o,t,l=[],f=0;f<a.length&&!((e-=2)<0);++f)n=a.charCodeAt(f),o=n>>8,t=n%256,l.push(t),l.push(o);return l}function fm(a){return iC(DC(a))}function bn(a,e,n,o){for(var t=0;t<o&&!(t+n>=e.length||t>=a.length);++t)e[t+n]=a[t];return t}function _C(a){return a!==a}function BC(a){return a!=null&&(!!a._isBuffer||pm(a)||LC(a))}function pm(a){return!!a.constructor&&typeof a.constructor.isBuffer=="function"&&a.constructor.isBuffer(a)}function LC(a){return typeof a.readFloatLE=="function"&&typeof a.slice=="function"&&pm(a.slice(0,0))}var Cn;typeof Object.create=="function"?Cn=function(e,n){e.super_=n,e.prototype=Object.create(n.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}})}:Cn=function(e,n){e.super_=n;var o=function(){};o.prototype=n.prototype,e.prototype=new o,e.prototype.constructor=e};var mm=Object.getOwnPropertyDescriptors||function(e){for(var n=Object.keys(e),o={},t=0;t<n.length;t++)o[n[t]]=Object.getOwnPropertyDescriptor(e,n[t]);return o},OC=/%[sdj%]/g;function xn(a){if(!Kr(a)){for(var e=[],n=0;n<arguments.length;n++)e.push(ir(arguments[n]));return e.join(" ")}for(var n=1,o=arguments,t=o.length,l=String(a).replace(OC,function(u){if(u==="%%")return"%";if(n>=t)return u;switch(u){case"%s":return String(o[n++]);case"%d":return Number(o[n++]);case"%j":try{return JSON.stringify(o[n++])}catch{return"[Circular]"}default:return u}}),f=o[n];n<t;f=o[++n])Hr(f)||!Ar(f)?l+=" "+f:l+=" "+ir(f);return l}function Xn(a,e){if(or(Xt.process))return function(){return Xn(a,e).apply(this,arguments)};if(Ft.noDeprecation===!0)return a;var n=!1;function o(){if(!n){if(Ft.throwDeprecation)throw new Error(e);Ft.traceDeprecation?console.trace(e):console.error(e),n=!0}return a.apply(this,arguments)}return o}var wn={},Jn;function dm(a){if(or(Jn)&&(Jn=Ft.env.NODE_DEBUG||""),a=a.toUpperCase(),!wn[a])if(new RegExp("\\b"+a+"\\b","i").test(Jn)){var e=0;wn[a]=function(){var n=xn.apply(null,arguments);console.error("%s %d: %s",a,e,n)}}else wn[a]=function(){};return wn[a]}function ir(a,e){var n={seen:[],stylize:MC};return arguments.length>=3&&(n.depth=arguments[2]),arguments.length>=4&&(n.colors=arguments[3]),Tn(e)?n.showHidden=e:e&&ns(n,e),or(n.showHidden)&&(n.showHidden=!1),or(n.depth)&&(n.depth=2),or(n.colors)&&(n.colors=!1),or(n.customInspect)&&(n.customInspect=!0),n.colors&&(n.stylize=NC),An(n,a,n.depth)}ir.colors={bold:[1,22],italic:[3,23],underline:[4,24],inverse:[7,27],white:[37,39],grey:[90,39],black:[30,39],blue:[34,39],cyan:[36,39],green:[32,39],magenta:[35,39],red:[31,39],yellow:[33,39]},ir.styles={special:"cyan",number:"yellow",boolean:"yellow",undefined:"grey",null:"bold",string:"green",date:"magenta",regexp:"red"};function NC(a,e){var n=ir.styles[e];return n?"\x1B["+ir.colors[n][0]+"m"+a+"\x1B["+ir.colors[n][1]+"m":a}function MC(a,e){return a}function jC(a){var e={};return a.forEach(function(n,o){e[n]=!0}),e}function An(a,e,n){if(a.customInspect&&e&&Yr(e.inspect)&&e.inspect!==ir&&!(e.constructor&&e.constructor.prototype===e)){var o=e.inspect(n,a);return Kr(o)||(o=An(a,o,n)),o}var t=UC(a,e);if(t)return t;var l=Object.keys(e),f=jC(l);if(a.showHidden&&(l=Object.getOwnPropertyNames(e)),Jr(e)&&(l.indexOf("message")>=0||l.indexOf("description")>=0))return Yn(e);if(l.length===0){if(Yr(e)){var u=e.name?": "+e.name:"";return a.stylize("[Function"+u+"]","special")}if(Xr(e))return a.stylize(RegExp.prototype.toString.call(e),"regexp");if(kn(e))return a.stylize(Date.prototype.toString.call(e),"date");if(Jr(e))return Yn(e)}var r="",m=!1,i=["{","}"];if(Zn(e)&&(m=!0,i=["[","]"]),Yr(e)){var c=e.name?": "+e.name:"";r=" [Function"+c+"]"}if(Xr(e)&&(r=" "+RegExp.prototype.toString.call(e)),kn(e)&&(r=" "+Date.prototype.toUTCString.call(e)),Jr(e)&&(r=" "+Yn(e)),l.length===0&&(!m||e.length==0))return i[0]+r+i[1];if(n<0)return Xr(e)?a.stylize(RegExp.prototype.toString.call(e),"regexp"):a.stylize("[Object]","special");a.seen.push(e);var d;return m?d=qC(a,e,n,f,l):d=l.map(function(s){return Qn(a,e,n,f,s,m)}),a.seen.pop(),VC(d,r,i)}function UC(a,e){if(or(e))return a.stylize("undefined","undefined");if(Kr(e)){var n="'"+JSON.stringify(e).replace(/^"|"$/g,"").replace(/'/g,"\\'").replace(/\\"/g,'"')+"'";return a.stylize(n,"string")}if(es(e))return a.stylize(""+e,"number");if(Tn(e))return a.stylize(""+e,"boolean");if(Hr(e))return a.stylize("null","null")}function Yn(a){return"["+Error.prototype.toString.call(a)+"]"}function qC(a,e,n,o,t){for(var l=[],f=0,u=e.length;f<u;++f)Em(e,String(f))?l.push(Qn(a,e,n,o,String(f),!0)):l.push("");return t.forEach(function(r){r.match(/^\d+$/)||l.push(Qn(a,e,n,o,r,!0))}),l}function Qn(a,e,n,o,t,l){var f,u,r;if(r=Object.getOwnPropertyDescriptor(e,t)||{value:e[t]},r.get?r.set?u=a.stylize("[Getter/Setter]","special"):u=a.stylize("[Getter]","special"):r.set&&(u=a.stylize("[Setter]","special")),Em(o,t)||(f="["+t+"]"),u||(a.seen.indexOf(r.value)<0?(Hr(n)?u=An(a,r.value,null):u=An(a,r.value,n-1),u.indexOf(`
|
|
13
|
+
`)>-1&&(l?u=u.split(`
|
|
14
|
+
`).map(function(m){return" "+m}).join(`
|
|
15
|
+
`).substr(2):u=`
|
|
16
|
+
`+u.split(`
|
|
17
|
+
`).map(function(m){return" "+m}).join(`
|
|
18
|
+
`))):u=a.stylize("[Circular]","special")),or(f)){if(l&&t.match(/^\d+$/))return u;f=JSON.stringify(""+t),f.match(/^"([a-zA-Z_][a-zA-Z_0-9]*)"$/)?(f=f.substr(1,f.length-2),f=a.stylize(f,"name")):(f=f.replace(/'/g,"\\'").replace(/\\"/g,'"').replace(/(^"|"$)/g,"'"),f=a.stylize(f,"string"))}return f+": "+u}function VC(a,e,n){var o=a.reduce(function(t,l){return l.indexOf(`
|
|
19
|
+
`)>=0,t+l.replace(/\u001b\[\d\d?m/g,"").length+1},0);return o>60?n[0]+(e===""?"":e+`
|
|
20
|
+
`)+" "+a.join(`,
|
|
21
|
+
`)+" "+n[1]:n[0]+e+" "+a.join(", ")+" "+n[1]}function Zn(a){return Array.isArray(a)}function Tn(a){return typeof a=="boolean"}function Hr(a){return a===null}function hm(a){return a==null}function es(a){return typeof a=="number"}function Kr(a){return typeof a=="string"}function gm(a){return typeof a=="symbol"}function or(a){return a===void 0}function Xr(a){return Ar(a)&&ts(a)==="[object RegExp]"}function Ar(a){return typeof a=="object"&&a!==null}function kn(a){return Ar(a)&&ts(a)==="[object Date]"}function Jr(a){return Ar(a)&&(ts(a)==="[object Error]"||a instanceof Error)}function Yr(a){return typeof a=="function"}function ym(a){return a===null||typeof a=="boolean"||typeof a=="number"||typeof a=="string"||typeof a=="symbol"||typeof a>"u"}function vm(a){return Ye.isBuffer(a)}function ts(a){return Object.prototype.toString.call(a)}function rs(a){return a<10?"0"+a.toString(10):a.toString(10)}var $C=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"];function GC(){var a=new Date,e=[rs(a.getHours()),rs(a.getMinutes()),rs(a.getSeconds())].join(":");return[a.getDate(),$C[a.getMonth()],e].join(" ")}function Sm(){console.log("%s - %s",GC(),xn.apply(null,arguments))}function ns(a,e){if(!e||!Ar(e))return a;for(var n=Object.keys(e),o=n.length;o--;)a[n[o]]=e[n[o]];return a}function Em(a,e){return Object.prototype.hasOwnProperty.call(a,e)}var Tr=typeof Symbol<"u"?Symbol("util.promisify.custom"):void 0;function ss(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');if(Tr&&a[Tr]){var e=a[Tr];if(typeof e!="function")throw new TypeError('The "util.promisify.custom" argument must be of type Function');return Object.defineProperty(e,Tr,{value:e,enumerable:!1,writable:!1,configurable:!0}),e}function e(){for(var n,o,t=new Promise(function(u,r){n=u,o=r}),l=[],f=0;f<arguments.length;f++)l.push(arguments[f]);l.push(function(u,r){u?o(u):n(r)});try{a.apply(this,l)}catch(u){o(u)}return t}return Object.setPrototypeOf(e,Object.getPrototypeOf(a)),Tr&&Object.defineProperty(e,Tr,{value:e,enumerable:!1,writable:!1,configurable:!0}),Object.defineProperties(e,mm(a))}ss.custom=Tr;function WC(a,e){if(!a){var n=new Error("Promise was rejected with a falsy value");n.reason=a,a=n}return e(a)}function bm(a){if(typeof a!="function")throw new TypeError('The "original" argument must be of type Function');function e(){for(var n=[],o=0;o<arguments.length;o++)n.push(arguments[o]);var t=n.pop();if(typeof t!="function")throw new TypeError("The last argument must be of type Function");var l=this,f=function(){return t.apply(l,arguments)};a.apply(this,n).then(function(u){Ft.nextTick(f.bind(null,null,u))},function(u){Ft.nextTick(WC.bind(null,u,f))})}return Object.setPrototypeOf(e,Object.getPrototypeOf(a)),Object.defineProperties(e,mm(a)),e}var zC={inherits:Cn,_extend:ns,log:Sm,isBuffer:vm,isPrimitive:ym,isFunction:Yr,isError:Jr,isDate:kn,isObject:Ar,isRegExp:Xr,isUndefined:or,isSymbol:gm,isString:Kr,isNumber:es,isNullOrUndefined:hm,isNull:Hr,isBoolean:Tn,isArray:Zn,inspect:ir,deprecate:Xn,format:xn,debuglog:dm,promisify:ss,callbackify:bm},HC=Object.freeze({__proto__:null,_extend:ns,callbackify:bm,debuglog:dm,default:zC,deprecate:Xn,format:xn,inherits:Cn,inspect:ir,isArray:Zn,isBoolean:Tn,isBuffer:vm,isDate:kn,isError:Jr,isFunction:Yr,isNull:Hr,isNullOrUndefined:hm,isNumber:es,isObject:Ar,isPrimitive:ym,isRegExp:Xr,isString:Kr,isSymbol:gm,isUndefined:or,log:Sm,promisify:ss}),KC=Ap(HC),Dn={exports:{}};var Cm;function XC(){return Cm||(Cm=1,(function(a,e){(function(n,o){o(e)})(this,(function(n){function o(){for(var me=arguments.length,pe=Array(me),ve=0;ve<me;ve++)pe[ve]=arguments[ve];if(pe.length>1){pe[0]=pe[0].slice(0,-1);for(var De=pe.length-1,Fe=1;Fe<De;++Fe)pe[Fe]=pe[Fe].slice(1,-1);return pe[De]=pe[De].slice(1),pe.join("")}else return pe[0]}function t(me){return"(?:"+me+")"}function l(me){return me===void 0?"undefined":me===null?"null":Object.prototype.toString.call(me).split(" ").pop().split("]").shift().toLowerCase()}function f(me){return me.toUpperCase()}function u(me){return me!=null?me instanceof Array?me:typeof me.length!="number"||me.split||me.setInterval||me.call?[me]:Array.prototype.slice.call(me):[]}function r(me,pe){var ve=me;if(pe)for(var De in pe)ve[De]=pe[De];return ve}function m(me){var pe="[A-Za-z]",ve="[0-9]",De=o(ve,"[A-Fa-f]"),Fe=t(t("%[EFef]"+De+"%"+De+De+"%"+De+De)+"|"+t("%[89A-Fa-f]"+De+"%"+De+De)+"|"+t("%"+De+De)),at="[\\:\\/\\?\\#\\[\\]\\@]",Ue="[\\!\\$\\&\\'\\(\\)\\*\\+\\,\\;\\=]",Xe=o(at,Ue),ot=me?"[\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]":"[]",He=me?"[\\uE000-\\uF8FF]":"[]",nt=o(pe,ve,"[\\-\\.\\_\\~]",ot);t(pe+o(pe,ve,"[\\+\\-\\.]")+"*"),t(t(Fe+"|"+o(nt,Ue,"[\\:]"))+"*");var pt=t(t("25[0-5]")+"|"+t("2[0-4]"+ve)+"|"+t("1"+ve+ve)+"|"+t("0?[1-9]"+ve)+"|0?0?"+ve),ht=t(pt+"\\."+pt+"\\."+pt+"\\."+pt),ft=t(De+"{1,4}"),gt=t(t(ft+"\\:"+ft)+"|"+ht),xt=t(t(ft+"\\:")+"{6}"+gt),bt=t("\\:\\:"+t(ft+"\\:")+"{5}"+gt),Rt=t(t(ft)+"?\\:\\:"+t(ft+"\\:")+"{4}"+gt),_t=t(t(t(ft+"\\:")+"{0,1}"+ft)+"?\\:\\:"+t(ft+"\\:")+"{3}"+gt),Bt=t(t(t(ft+"\\:")+"{0,2}"+ft)+"?\\:\\:"+t(ft+"\\:")+"{2}"+gt),Ht=t(t(t(ft+"\\:")+"{0,3}"+ft)+"?\\:\\:"+ft+"\\:"+gt),Wt=t(t(t(ft+"\\:")+"{0,4}"+ft)+"?\\:\\:"+gt),Ot=t(t(t(ft+"\\:")+"{0,5}"+ft)+"?\\:\\:"+ft),$t=t(t(t(ft+"\\:")+"{0,6}"+ft)+"?\\:\\:"),lt=t([xt,bt,Rt,_t,Bt,Ht,Wt,Ot,$t].join("|")),Mt=t(t(nt+"|"+Fe)+"+");t("[vV]"+De+"+\\."+o(nt,Ue,"[\\:]")+"+"),t(t(Fe+"|"+o(nt,Ue))+"*");var Lt=t(Fe+"|"+o(nt,Ue,"[\\:\\@]"));return t(t(Fe+"|"+o(nt,Ue,"[\\@]"))+"+"),t(t(Lt+"|"+o("[\\/\\?]",He))+"*"),{NOT_SCHEME:new RegExp(o("[^]",pe,ve,"[\\+\\-\\.]"),"g"),NOT_USERINFO:new RegExp(o("[^\\%\\:]",nt,Ue),"g"),NOT_HOST:new RegExp(o("[^\\%\\[\\]\\:]",nt,Ue),"g"),NOT_PATH:new RegExp(o("[^\\%\\/\\:\\@]",nt,Ue),"g"),NOT_PATH_NOSCHEME:new RegExp(o("[^\\%\\/\\@]",nt,Ue),"g"),NOT_QUERY:new RegExp(o("[^\\%]",nt,Ue,"[\\:\\@\\/\\?]",He),"g"),NOT_FRAGMENT:new RegExp(o("[^\\%]",nt,Ue,"[\\:\\@\\/\\?]"),"g"),ESCAPE:new RegExp(o("[^]",nt,Ue),"g"),UNRESERVED:new RegExp(nt,"g"),OTHER_CHARS:new RegExp(o("[^\\%]",nt,Xe),"g"),PCT_ENCODED:new RegExp(Fe,"g"),IPV4ADDRESS:new RegExp("^("+ht+")$"),IPV6ADDRESS:new RegExp("^\\[?("+lt+")"+t(t("\\%25|\\%(?!"+De+"{2})")+"("+Mt+")")+"?\\]?$")}}var i=m(!1),c=m(!0),d=(function(){function me(pe,ve){var De=[],Fe=!0,at=!1,Ue=void 0;try{for(var Xe=pe[Symbol.iterator](),ot;!(Fe=(ot=Xe.next()).done)&&(De.push(ot.value),!(ve&&De.length===ve));Fe=!0);}catch(He){at=!0,Ue=He}finally{try{!Fe&&Xe.return&&Xe.return()}finally{if(at)throw Ue}}return De}return function(pe,ve){if(Array.isArray(pe))return pe;if(Symbol.iterator in Object(pe))return me(pe,ve);throw new TypeError("Invalid attempt to destructure non-iterable instance")}})(),s=function(me){if(Array.isArray(me)){for(var pe=0,ve=Array(me.length);pe<me.length;pe++)ve[pe]=me[pe];return ve}else return Array.from(me)},p=2147483647,h=36,g=1,v=26,E=38,b=700,T=72,C=128,S="-",w=/^xn--/,x=/[^\0-\x7E]/,A=/[\x2E\u3002\uFF0E\uFF61]/g,k={overflow:"Overflow: input needs wider integers to process","not-basic":"Illegal input >= 0x80 (not a basic code point)","invalid-input":"Invalid input"},R=h-g,I=Math.floor,B=String.fromCharCode;function F(me){throw new RangeError(k[me])}function O(me,pe){for(var ve=[],De=me.length;De--;)ve[De]=pe(me[De]);return ve}function $(me,pe){var ve=me.split("@"),De="";ve.length>1&&(De=ve[0]+"@",me=ve[1]),me=me.replace(A,".");var Fe=me.split("."),at=O(Fe,pe).join(".");return De+at}function N(me){for(var pe=[],ve=0,De=me.length;ve<De;){var Fe=me.charCodeAt(ve++);if(Fe>=55296&&Fe<=56319&&ve<De){var at=me.charCodeAt(ve++);(at&64512)==56320?pe.push(((Fe&1023)<<10)+(at&1023)+65536):(pe.push(Fe),ve--)}else pe.push(Fe)}return pe}var _=function(pe){return String.fromCodePoint.apply(String,s(pe))},X=function(pe){return pe-48<10?pe-22:pe-65<26?pe-65:pe-97<26?pe-97:h},L=function(pe,ve){return pe+22+75*(pe<26)-((ve!=0)<<5)},K=function(pe,ve,De){var Fe=0;for(pe=De?I(pe/b):pe>>1,pe+=I(pe/ve);pe>R*v>>1;Fe+=h)pe=I(pe/R);return I(Fe+(R+1)*pe/(pe+E))},J=function(pe){var ve=[],De=pe.length,Fe=0,at=C,Ue=T,Xe=pe.lastIndexOf(S);Xe<0&&(Xe=0);for(var ot=0;ot<Xe;++ot)pe.charCodeAt(ot)>=128&&F("not-basic"),ve.push(pe.charCodeAt(ot));for(var He=Xe>0?Xe+1:0;He<De;){for(var nt=Fe,pt=1,ht=h;;ht+=h){He>=De&&F("invalid-input");var ft=X(pe.charCodeAt(He++));(ft>=h||ft>I((p-Fe)/pt))&&F("overflow"),Fe+=ft*pt;var gt=ht<=Ue?g:ht>=Ue+v?v:ht-Ue;if(ft<gt)break;var xt=h-gt;pt>I(p/xt)&&F("overflow"),pt*=xt}var bt=ve.length+1;Ue=K(Fe-nt,bt,nt==0),I(Fe/bt)>p-at&&F("overflow"),at+=I(Fe/bt),Fe%=bt,ve.splice(Fe++,0,at)}return String.fromCodePoint.apply(String,ve)},ge=function(pe){var ve=[];pe=N(pe);var De=pe.length,Fe=C,at=0,Ue=T,Xe=!0,ot=!1,He=void 0;try{for(var nt=pe[Symbol.iterator](),pt;!(Xe=(pt=nt.next()).done);Xe=!0){var ht=pt.value;ht<128&&ve.push(B(ht))}}catch(Zt){ot=!0,He=Zt}finally{try{!Xe&&nt.return&&nt.return()}finally{if(ot)throw He}}var ft=ve.length,gt=ft;for(ft&&ve.push(S);gt<De;){var xt=p,bt=!0,Rt=!1,_t=void 0;try{for(var Bt=pe[Symbol.iterator](),Ht;!(bt=(Ht=Bt.next()).done);bt=!0){var Wt=Ht.value;Wt>=Fe&&Wt<xt&&(xt=Wt)}}catch(Zt){Rt=!0,_t=Zt}finally{try{!bt&&Bt.return&&Bt.return()}finally{if(Rt)throw _t}}var Ot=gt+1;xt-Fe>I((p-at)/Ot)&&F("overflow"),at+=(xt-Fe)*Ot,Fe=xt;var $t=!0,lt=!1,Mt=void 0;try{for(var Lt=pe[Symbol.iterator](),Sr;!($t=(Sr=Lt.next()).done);$t=!0){var Er=Sr.value;if(Er<Fe&&++at>p&&F("overflow"),Er==Fe){for(var Qt=at,cr=h;;cr+=h){var rr=cr<=Ue?g:cr>=Ue+v?v:cr-Ue;if(Qt<rr)break;var fr=Qt-rr,br=h-rr;ve.push(B(L(rr+fr%br,0))),Qt=I(fr/br)}ve.push(B(L(Qt,0))),Ue=K(at,Ot,gt==ft),at=0,++gt}}}catch(Zt){lt=!0,Mt=Zt}finally{try{!$t&&Lt.return&&Lt.return()}finally{if(lt)throw Mt}}++at,++Fe}return ve.join("")},ae=function(pe){return $(pe,function(ve){return w.test(ve)?J(ve.slice(4).toLowerCase()):ve})},ke=function(pe){return $(pe,function(ve){return x.test(ve)?"xn--"+ge(ve):ve})},Z={version:"2.1.0",ucs2:{decode:N,encode:_},decode:J,encode:ge,toASCII:ke,toUnicode:ae},P={};function H(me){var pe=me.charCodeAt(0),ve=void 0;return pe<16?ve="%0"+pe.toString(16).toUpperCase():pe<128?ve="%"+pe.toString(16).toUpperCase():pe<2048?ve="%"+(pe>>6|192).toString(16).toUpperCase()+"%"+(pe&63|128).toString(16).toUpperCase():ve="%"+(pe>>12|224).toString(16).toUpperCase()+"%"+(pe>>6&63|128).toString(16).toUpperCase()+"%"+(pe&63|128).toString(16).toUpperCase(),ve}function fe(me){for(var pe="",ve=0,De=me.length;ve<De;){var Fe=parseInt(me.substr(ve+1,2),16);if(Fe<128)pe+=String.fromCharCode(Fe),ve+=3;else if(Fe>=194&&Fe<224){if(De-ve>=6){var at=parseInt(me.substr(ve+4,2),16);pe+=String.fromCharCode((Fe&31)<<6|at&63)}else pe+=me.substr(ve,6);ve+=6}else if(Fe>=224){if(De-ve>=9){var Ue=parseInt(me.substr(ve+4,2),16),Xe=parseInt(me.substr(ve+7,2),16);pe+=String.fromCharCode((Fe&15)<<12|(Ue&63)<<6|Xe&63)}else pe+=me.substr(ve,9);ve+=9}else pe+=me.substr(ve,3),ve+=3}return pe}function ce(me,pe){function ve(De){var Fe=fe(De);return Fe.match(pe.UNRESERVED)?Fe:De}return me.scheme&&(me.scheme=String(me.scheme).replace(pe.PCT_ENCODED,ve).toLowerCase().replace(pe.NOT_SCHEME,"")),me.userinfo!==void 0&&(me.userinfo=String(me.userinfo).replace(pe.PCT_ENCODED,ve).replace(pe.NOT_USERINFO,H).replace(pe.PCT_ENCODED,f)),me.host!==void 0&&(me.host=String(me.host).replace(pe.PCT_ENCODED,ve).toLowerCase().replace(pe.NOT_HOST,H).replace(pe.PCT_ENCODED,f)),me.path!==void 0&&(me.path=String(me.path).replace(pe.PCT_ENCODED,ve).replace(me.scheme?pe.NOT_PATH:pe.NOT_PATH_NOSCHEME,H).replace(pe.PCT_ENCODED,f)),me.query!==void 0&&(me.query=String(me.query).replace(pe.PCT_ENCODED,ve).replace(pe.NOT_QUERY,H).replace(pe.PCT_ENCODED,f)),me.fragment!==void 0&&(me.fragment=String(me.fragment).replace(pe.PCT_ENCODED,ve).replace(pe.NOT_FRAGMENT,H).replace(pe.PCT_ENCODED,f)),me}function ie(me){return me.replace(/^0*(.*)/,"$1")||"0"}function he(me,pe){var ve=me.match(pe.IPV4ADDRESS)||[],De=d(ve,2),Fe=De[1];return Fe?Fe.split(".").map(ie).join("."):me}function Ee(me,pe){var ve=me.match(pe.IPV6ADDRESS)||[],De=d(ve,3),Fe=De[1],at=De[2];if(Fe){for(var Ue=Fe.toLowerCase().split("::").reverse(),Xe=d(Ue,2),ot=Xe[0],He=Xe[1],nt=He?He.split(":").map(ie):[],pt=ot.split(":").map(ie),ht=pe.IPV4ADDRESS.test(pt[pt.length-1]),ft=ht?7:8,gt=pt.length-ft,xt=Array(ft),bt=0;bt<ft;++bt)xt[bt]=nt[bt]||pt[gt+bt]||"";ht&&(xt[ft-1]=he(xt[ft-1],pe));var Rt=xt.reduce(function(Ot,$t,lt){if(!$t||$t==="0"){var Mt=Ot[Ot.length-1];Mt&&Mt.index+Mt.length===lt?Mt.length++:Ot.push({index:lt,length:1})}return Ot},[]),_t=Rt.sort(function(Ot,$t){return $t.length-Ot.length})[0],Bt=void 0;if(_t&&_t.length>1){var Ht=xt.slice(0,_t.index),Wt=xt.slice(_t.index+_t.length);Bt=Ht.join(":")+"::"+Wt.join(":")}else Bt=xt.join(":");return at&&(Bt+="%"+at),Bt}else return me}var Ce=/^(?:([^:\/?#]+):)?(?:\/\/((?:([^\/?#@]*)@)?(\[[^\/?#\]]+\]|[^\/?#:]*)(?:\:(\d*))?))?([^?#]*)(?:\?([^#]*))?(?:#((?:.|\n|\r)*))?/i,Ae="".match(/(){0}/)[1]===void 0;function ee(me){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve={},De=pe.iri!==!1?c:i;pe.reference==="suffix"&&(me=(pe.scheme?pe.scheme+":":"")+"//"+me);var Fe=me.match(Ce);if(Fe){Ae?(ve.scheme=Fe[1],ve.userinfo=Fe[3],ve.host=Fe[4],ve.port=parseInt(Fe[5],10),ve.path=Fe[6]||"",ve.query=Fe[7],ve.fragment=Fe[8],isNaN(ve.port)&&(ve.port=Fe[5])):(ve.scheme=Fe[1]||void 0,ve.userinfo=me.indexOf("@")!==-1?Fe[3]:void 0,ve.host=me.indexOf("//")!==-1?Fe[4]:void 0,ve.port=parseInt(Fe[5],10),ve.path=Fe[6]||"",ve.query=me.indexOf("?")!==-1?Fe[7]:void 0,ve.fragment=me.indexOf("#")!==-1?Fe[8]:void 0,isNaN(ve.port)&&(ve.port=me.match(/\/\/(?:.|\n)*\:(?:\/|\?|\#|$)/)?Fe[4]:void 0)),ve.host&&(ve.host=Ee(he(ve.host,De),De)),ve.scheme===void 0&&ve.userinfo===void 0&&ve.host===void 0&&ve.port===void 0&&!ve.path&&ve.query===void 0?ve.reference="same-document":ve.scheme===void 0?ve.reference="relative":ve.fragment===void 0?ve.reference="absolute":ve.reference="uri",pe.reference&&pe.reference!=="suffix"&&pe.reference!==ve.reference&&(ve.error=ve.error||"URI is not a "+pe.reference+" reference.");var at=P[(pe.scheme||ve.scheme||"").toLowerCase()];if(!pe.unicodeSupport&&(!at||!at.unicodeSupport)){if(ve.host&&(pe.domainHost||at&&at.domainHost))try{ve.host=Z.toASCII(ve.host.replace(De.PCT_ENCODED,fe).toLowerCase())}catch(Ue){ve.error=ve.error||"Host's domain name can not be converted to ASCII via punycode: "+Ue}ce(ve,i)}else ce(ve,De);at&&at.parse&&at.parse(ve,pe)}else ve.error=ve.error||"URI can not be parsed.";return ve}function ne(me,pe){var ve=pe.iri!==!1?c:i,De=[];return me.userinfo!==void 0&&(De.push(me.userinfo),De.push("@")),me.host!==void 0&&De.push(Ee(he(String(me.host),ve),ve).replace(ve.IPV6ADDRESS,function(Fe,at,Ue){return"["+at+(Ue?"%25"+Ue:"")+"]"})),(typeof me.port=="number"||typeof me.port=="string")&&(De.push(":"),De.push(String(me.port))),De.length?De.join(""):void 0}var we=/^\.\.?\//,z=/^\/\.(\/|$)/,oe=/^\/\.\.(\/|$)/,Te=/^\/?(?:.|\n)*?(?=\/|$)/;function Re(me){for(var pe=[];me.length;)if(me.match(we))me=me.replace(we,"");else if(me.match(z))me=me.replace(z,"/");else if(me.match(oe))me=me.replace(oe,"/"),pe.pop();else if(me==="."||me==="..")me="";else{var ve=me.match(Te);if(ve){var De=ve[0];me=me.slice(De.length),pe.push(De)}else throw new Error("Unexpected dot segment condition")}return pe.join("")}function Ie(me){var pe=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ve=pe.iri?c:i,De=[],Fe=P[(pe.scheme||me.scheme||"").toLowerCase()];if(Fe&&Fe.serialize&&Fe.serialize(me,pe),me.host&&!ve.IPV6ADDRESS.test(me.host)){if(pe.domainHost||Fe&&Fe.domainHost)try{me.host=pe.iri?Z.toUnicode(me.host):Z.toASCII(me.host.replace(ve.PCT_ENCODED,fe).toLowerCase())}catch(Xe){me.error=me.error||"Host's domain name can not be converted to "+(pe.iri?"Unicode":"ASCII")+" via punycode: "+Xe}}ce(me,ve),pe.reference!=="suffix"&&me.scheme&&(De.push(me.scheme),De.push(":"));var at=ne(me,pe);if(at!==void 0&&(pe.reference!=="suffix"&&De.push("//"),De.push(at),me.path&&me.path.charAt(0)!=="/"&&De.push("/")),me.path!==void 0){var Ue=me.path;!pe.absolutePath&&(!Fe||!Fe.absolutePath)&&(Ue=Re(Ue)),at===void 0&&(Ue=Ue.replace(/^\/\//,"/%2F")),De.push(Ue)}return me.query!==void 0&&(De.push("?"),De.push(me.query)),me.fragment!==void 0&&(De.push("#"),De.push(me.fragment)),De.join("")}function W(me,pe){var ve=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},De=arguments[3],Fe={};return De||(me=ee(Ie(me,ve),ve),pe=ee(Ie(pe,ve),ve)),ve=ve||{},!ve.tolerant&&pe.scheme?(Fe.scheme=pe.scheme,Fe.userinfo=pe.userinfo,Fe.host=pe.host,Fe.port=pe.port,Fe.path=Re(pe.path||""),Fe.query=pe.query):(pe.userinfo!==void 0||pe.host!==void 0||pe.port!==void 0?(Fe.userinfo=pe.userinfo,Fe.host=pe.host,Fe.port=pe.port,Fe.path=Re(pe.path||""),Fe.query=pe.query):(pe.path?(pe.path.charAt(0)==="/"?Fe.path=Re(pe.path):((me.userinfo!==void 0||me.host!==void 0||me.port!==void 0)&&!me.path?Fe.path="/"+pe.path:me.path?Fe.path=me.path.slice(0,me.path.lastIndexOf("/")+1)+pe.path:Fe.path=pe.path,Fe.path=Re(Fe.path)),Fe.query=pe.query):(Fe.path=me.path,pe.query!==void 0?Fe.query=pe.query:Fe.query=me.query),Fe.userinfo=me.userinfo,Fe.host=me.host,Fe.port=me.port),Fe.scheme=me.scheme),Fe.fragment=pe.fragment,Fe}function Je(me,pe,ve){var De=r({scheme:"null"},ve);return Ie(W(ee(me,De),ee(pe,De),De,!0),De)}function ut(me,pe){return typeof me=="string"?me=Ie(ee(me,pe),pe):l(me)==="object"&&(me=ee(Ie(me,pe),pe)),me}function tt(me,pe,ve){return typeof me=="string"?me=Ie(ee(me,ve),ve):l(me)==="object"&&(me=Ie(me,ve)),typeof pe=="string"?pe=Ie(ee(pe,ve),ve):l(pe)==="object"&&(pe=Ie(pe,ve)),me===pe}function qe(me,pe){return me&&me.toString().replace(!pe||!pe.iri?i.ESCAPE:c.ESCAPE,H)}function $e(me,pe){return me&&me.toString().replace(!pe||!pe.iri?i.PCT_ENCODED:c.PCT_ENCODED,fe)}var st={scheme:"http",domainHost:!0,parse:function(pe,ve){return pe.host||(pe.error=pe.error||"HTTP URIs must have a host."),pe},serialize:function(pe,ve){var De=String(pe.scheme).toLowerCase()==="https";return(pe.port===(De?443:80)||pe.port==="")&&(pe.port=void 0),pe.path||(pe.path="/"),pe}},mt={scheme:"https",domainHost:st.domainHost,parse:st.parse,serialize:st.serialize};function rt(me){return typeof me.secure=="boolean"?me.secure:String(me.scheme).toLowerCase()==="wss"}var Qe={scheme:"ws",domainHost:!0,parse:function(pe,ve){var De=pe;return De.secure=rt(De),De.resourceName=(De.path||"/")+(De.query?"?"+De.query:""),De.path=void 0,De.query=void 0,De},serialize:function(pe,ve){if((pe.port===(rt(pe)?443:80)||pe.port==="")&&(pe.port=void 0),typeof pe.secure=="boolean"&&(pe.scheme=pe.secure?"wss":"ws",pe.secure=void 0),pe.resourceName){var De=pe.resourceName.split("?"),Fe=d(De,2),at=Fe[0],Ue=Fe[1];pe.path=at&&at!=="/"?at:void 0,pe.query=Ue,pe.resourceName=void 0}return pe.fragment=void 0,pe}},St={scheme:"wss",domainHost:Qe.domainHost,parse:Qe.parse,serialize:Qe.serialize},Ze={},Ct="[A-Za-z0-9\\-\\.\\_\\~\\xA0-\\u200D\\u2010-\\u2029\\u202F-\\uD7FF\\uF900-\\uFDCF\\uFDF0-\\uFFEF]",Ke="[0-9A-Fa-f]",Ge=t(t("%[EFef]"+Ke+"%"+Ke+Ke+"%"+Ke+Ke)+"|"+t("%[89A-Fa-f]"+Ke+"%"+Ke+Ke)+"|"+t("%"+Ke+Ke)),Se="[A-Za-z0-9\\!\\$\\%\\'\\*\\+\\-\\^\\_\\`\\{\\|\\}\\~]",j="[\\!\\$\\%\\'\\(\\)\\*\\+\\,\\-\\.0-9\\<\\>A-Z\\x5E-\\x7E]",U=o(j,'[\\"\\\\]'),V="[\\!\\$\\'\\(\\)\\*\\+\\,\\;\\:\\@]",Q=new RegExp(Ct,"g"),le=new RegExp(Ge,"g"),te=new RegExp(o("[^]",Se,"[\\.]",'[\\"]',U),"g"),q=new RegExp(o("[^]",Ct,V),"g"),se=q;function ue(me){var pe=fe(me);return pe.match(Q)?pe:me}var be={scheme:"mailto",parse:function(pe,ve){var De=pe,Fe=De.to=De.path?De.path.split(","):[];if(De.path=void 0,De.query){for(var at=!1,Ue={},Xe=De.query.split("&"),ot=0,He=Xe.length;ot<He;++ot){var nt=Xe[ot].split("=");switch(nt[0]){case"to":for(var pt=nt[1].split(","),ht=0,ft=pt.length;ht<ft;++ht)Fe.push(pt[ht]);break;case"subject":De.subject=$e(nt[1],ve);break;case"body":De.body=$e(nt[1],ve);break;default:at=!0,Ue[$e(nt[0],ve)]=$e(nt[1],ve);break}}at&&(De.headers=Ue)}De.query=void 0;for(var gt=0,xt=Fe.length;gt<xt;++gt){var bt=Fe[gt].split("@");if(bt[0]=$e(bt[0]),ve.unicodeSupport)bt[1]=$e(bt[1],ve).toLowerCase();else try{bt[1]=Z.toASCII($e(bt[1],ve).toLowerCase())}catch(Rt){De.error=De.error||"Email address's domain name can not be converted to ASCII via punycode: "+Rt}Fe[gt]=bt.join("@")}return De},serialize:function(pe,ve){var De=pe,Fe=u(pe.to);if(Fe){for(var at=0,Ue=Fe.length;at<Ue;++at){var Xe=String(Fe[at]),ot=Xe.lastIndexOf("@"),He=Xe.slice(0,ot).replace(le,ue).replace(le,f).replace(te,H),nt=Xe.slice(ot+1);try{nt=ve.iri?Z.toUnicode(nt):Z.toASCII($e(nt,ve).toLowerCase())}catch(gt){De.error=De.error||"Email address's domain name can not be converted to "+(ve.iri?"Unicode":"ASCII")+" via punycode: "+gt}Fe[at]=He+"@"+nt}De.path=Fe.join(",")}var pt=pe.headers=pe.headers||{};pe.subject&&(pt.subject=pe.subject),pe.body&&(pt.body=pe.body);var ht=[];for(var ft in pt)pt[ft]!==Ze[ft]&&ht.push(ft.replace(le,ue).replace(le,f).replace(q,H)+"="+pt[ft].replace(le,ue).replace(le,f).replace(se,H));return ht.length&&(De.query=ht.join("&")),De}},Oe=/^([^\:]+)\:(.*)/,Pe={scheme:"urn",parse:function(pe,ve){var De=pe.path&&pe.path.match(Oe),Fe=pe;if(De){var at=ve.scheme||Fe.scheme||"urn",Ue=De[1].toLowerCase(),Xe=De[2],ot=at+":"+(ve.nid||Ue),He=P[ot];Fe.nid=Ue,Fe.nss=Xe,Fe.path=void 0,He&&(Fe=He.parse(Fe,ve))}else Fe.error=Fe.error||"URN can not be parsed.";return Fe},serialize:function(pe,ve){var De=ve.scheme||pe.scheme||"urn",Fe=pe.nid,at=De+":"+(ve.nid||Fe),Ue=P[at];Ue&&(pe=Ue.serialize(pe,ve));var Xe=pe,ot=pe.nss;return Xe.path=(Fe||ve.nid)+":"+ot,Xe}},We=/^[0-9A-Fa-f]{8}(?:\-[0-9A-Fa-f]{4}){3}\-[0-9A-Fa-f]{12}$/,ze={scheme:"urn:uuid",parse:function(pe,ve){var De=pe;return De.uuid=De.nss,De.nss=void 0,!ve.tolerant&&(!De.uuid||!De.uuid.match(We))&&(De.error=De.error||"UUID is not valid."),De},serialize:function(pe,ve){var De=pe;return De.nss=(pe.uuid||"").toLowerCase(),De}};P[st.scheme]=st,P[mt.scheme]=mt,P[Qe.scheme]=Qe,P[St.scheme]=St,P[be.scheme]=be,P[Pe.scheme]=Pe,P[ze.scheme]=ze,n.SCHEMES=P,n.pctEncChar=H,n.pctDecChars=fe,n.parse=ee,n.removeDotSegments=Re,n.serialize=Ie,n.resolveComponents=W,n.resolve=Je,n.normalize=ut,n.equal=tt,n.escapeComponent=qe,n.unescapeComponent=$e,Object.defineProperty(n,"__esModule",{value:!0})}))})(Dn,Dn.exports)),Dn.exports}var as,xm;function is(){return xm||(xm=1,as=function a(e,n){if(e===n)return!0;if(e&&n&&typeof e=="object"&&typeof n=="object"){if(e.constructor!==n.constructor)return!1;var o,t,l;if(Array.isArray(e)){if(o=e.length,o!=n.length)return!1;for(t=o;t--!==0;)if(!a(e[t],n[t]))return!1;return!0}if(e.constructor===RegExp)return e.source===n.source&&e.flags===n.flags;if(e.valueOf!==Object.prototype.valueOf)return e.valueOf()===n.valueOf();if(e.toString!==Object.prototype.toString)return e.toString()===n.toString();if(l=Object.keys(e),o=l.length,o!==Object.keys(n).length)return!1;for(t=o;t--!==0;)if(!Object.prototype.hasOwnProperty.call(n,l[t]))return!1;for(t=o;t--!==0;){var f=l[t];if(!a(e[f],n[f]))return!1}return!0}return e!==e&&n!==n}),as}var os,wm;function JC(){return wm||(wm=1,os=function(e){for(var n=0,o=e.length,t=0,l;t<o;)n++,l=e.charCodeAt(t++),l>=55296&&l<=56319&&t<o&&(l=e.charCodeAt(t),(l&64512)==56320&&t++);return n}),os}var ls,Am;function Lr(){if(Am)return ls;Am=1,ls={copy:a,checkDataType:e,checkDataTypes:n,coerceToTypes:t,toHash:l,getProperty:r,escapeQuotes:m,equal:is(),ucs2length:JC(),varOccurences:i,varReplace:c,schemaHasRules:d,schemaHasRulesExcept:s,schemaUnknownRules:p,toQuotedString:h,getPathExpr:g,getPath:v,getData:T,unescapeFragment:S,unescapeJsonPointer:A,escapeFragment:w,escapeJsonPointer:x};function a(k,R){R=R||{};for(var I in k)R[I]=k[I];return R}function e(k,R,I,B){var F=B?" !== ":" === ",O=B?" || ":" && ",$=B?"!":"",N=B?"":"!";switch(k){case"null":return R+F+"null";case"array":return $+"Array.isArray("+R+")";case"object":return"("+$+R+O+"typeof "+R+F+'"object"'+O+N+"Array.isArray("+R+"))";case"integer":return"(typeof "+R+F+'"number"'+O+N+"("+R+" % 1)"+O+R+F+R+(I?O+$+"isFinite("+R+")":"")+")";case"number":return"(typeof "+R+F+'"'+k+'"'+(I?O+$+"isFinite("+R+")":"")+")";default:return"typeof "+R+F+'"'+k+'"'}}function n(k,R,I){switch(k.length){case 1:return e(k[0],R,I,!0);default:var B="",F=l(k);F.array&&F.object&&(B=F.null?"(":"(!"+R+" || ",B+="typeof "+R+' !== "object")',delete F.null,delete F.array,delete F.object),F.number&&delete F.integer;for(var O in F)B+=(B?" && ":"")+e(O,R,I,!0);return B}}var o=l(["string","number","integer","boolean","null"]);function t(k,R){if(Array.isArray(R)){for(var I=[],B=0;B<R.length;B++){var F=R[B];(o[F]||k==="array"&&F==="array")&&(I[I.length]=F)}if(I.length)return I}else{if(o[R])return[R];if(k==="array"&&R==="array")return["array"]}}function l(k){for(var R={},I=0;I<k.length;I++)R[k[I]]=!0;return R}var f=/^[a-z$_][a-z$_0-9]*$/i,u=/'|\\/g;function r(k){return typeof k=="number"?"["+k+"]":f.test(k)?"."+k:"['"+m(k)+"']"}function m(k){return k.replace(u,"\\$&").replace(/\n/g,"\\n").replace(/\r/g,"\\r").replace(/\f/g,"\\f").replace(/\t/g,"\\t")}function i(k,R){R+="[^0-9]";var I=k.match(new RegExp(R,"g"));return I?I.length:0}function c(k,R,I){return R+="([^0-9])",I=I.replace(/\$/g,"$$$$"),k.replace(new RegExp(R,"g"),I+"$1")}function d(k,R){if(typeof k=="boolean")return!k;for(var I in k)if(R[I])return!0}function s(k,R,I){if(typeof k=="boolean")return!k&&I!="not";for(var B in k)if(B!=I&&R[B])return!0}function p(k,R){if(typeof k!="boolean"){for(var I in k)if(!R[I])return I}}function h(k){return"'"+m(k)+"'"}function g(k,R,I,B){var F=I?"'/' + "+R+(B?"":".replace(/~/g, '~0').replace(/\\//g, '~1')"):B?"'[' + "+R+" + ']'":"'[\\'' + "+R+" + '\\']'";return C(k,F)}function v(k,R,I){var B=h(I?"/"+x(R):r(R));return C(k,B)}var E=/^\/(?:[^~]|~0|~1)*$/,b=/^([0-9]+)(#|\/(?:[^~]|~0|~1)*)?$/;function T(k,R,I){var B,F,O,$;if(k==="")return"rootData";if(k[0]=="/"){if(!E.test(k))throw new Error("Invalid JSON-pointer: "+k);F=k,O="rootData"}else{if($=k.match(b),!$)throw new Error("Invalid JSON-pointer: "+k);if(B=+$[1],F=$[2],F=="#"){if(B>=R)throw new Error("Cannot access property/index "+B+" levels up, current level is "+R);return I[R-B]}if(B>R)throw new Error("Cannot access data "+B+" levels up, current level is "+R);if(O="data"+(R-B||""),!F)return O}for(var N=O,_=F.split("/"),X=0;X<_.length;X++){var L=_[X];L&&(O+=r(A(L)),N+=" && "+O)}return N}function C(k,R){return k=='""'?R:(k+" + "+R).replace(/([^\\])' \+ '/g,"$1")}function S(k){return A(decodeURIComponent(k))}function w(k){return encodeURIComponent(x(k))}function x(k){return k.replace(/~/g,"~0").replace(/\//g,"~1")}function A(k){return k.replace(/~1/g,"/").replace(/~0/g,"~")}return ls}var us,Tm;function km(){if(Tm)return us;Tm=1;var a=Lr();us=e;function e(n){a.copy(n,this)}return us}var cs={exports:{}},Dm;function YC(){if(Dm)return cs.exports;Dm=1;var a=cs.exports=function(o,t,l){typeof t=="function"&&(l=t,t={}),l=t.cb||l;var f=typeof l=="function"?l:l.pre||function(){},u=l.post||function(){};e(t,f,u,o,"",o)};a.keywords={additionalItems:!0,items:!0,contains:!0,additionalProperties:!0,propertyNames:!0,not:!0},a.arrayKeywords={items:!0,allOf:!0,anyOf:!0,oneOf:!0},a.propsKeywords={definitions:!0,properties:!0,patternProperties:!0,dependencies:!0},a.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 e(o,t,l,f,u,r,m,i,c,d){if(f&&typeof f=="object"&&!Array.isArray(f)){t(f,u,r,m,i,c,d);for(var s in f){var p=f[s];if(Array.isArray(p)){if(s in a.arrayKeywords)for(var h=0;h<p.length;h++)e(o,t,l,p[h],u+"/"+s+"/"+h,r,u,s,f,h)}else if(s in a.propsKeywords){if(p&&typeof p=="object")for(var g in p)e(o,t,l,p[g],u+"/"+s+"/"+n(g),r,u,s,f,g)}else(s in a.keywords||o.allKeys&&!(s in a.skipKeywords))&&e(o,t,l,p,u+"/"+s,r,u,s,f)}l(f,u,r,m,i,c,d)}}function n(o){return o.replace(/~/g,"~0").replace(/\//g,"~1")}return cs.exports}var fs,Pm;function ps(){if(Pm)return fs;Pm=1;var a=XC(),e=is(),n=Lr(),o=km(),t=YC();fs=l,l.normalizeId=v,l.fullPath=p,l.url=E,l.ids=b,l.inlineRef=c,l.schema=f;function l(T,C,S){var w=this._refs[S];if(typeof w=="string")if(this._refs[w])w=this._refs[w];else return l.call(this,T,C,w);if(w=w||this._schemas[S],w instanceof o)return c(w.schema,this._opts.inlineRefs)?w.schema:w.validate||this._compile(w);var x=f.call(this,C,S),A,k,R;return x&&(A=x.schema,C=x.root,R=x.baseId),A instanceof o?k=A.validate||T.call(this,A.schema,C,void 0,R):A!==void 0&&(k=c(A,this._opts.inlineRefs)?A:T.call(this,A,C,void 0,R)),k}function f(T,C){var S=a.parse(C),w=h(S),x=p(this._getId(T.schema));if(Object.keys(T.schema).length===0||w!==x){var A=v(w),k=this._refs[A];if(typeof k=="string")return u.call(this,T,k,S);if(k instanceof o)k.validate||this._compile(k),T=k;else if(k=this._schemas[A],k instanceof o){if(k.validate||this._compile(k),A==v(C))return{schema:k,root:T,baseId:x};T=k}else return;if(!T.schema)return;x=p(this._getId(T.schema))}return m.call(this,S,x,T.schema,T)}function u(T,C,S){var w=f.call(this,T,C);if(w){var x=w.schema,A=w.baseId;T=w.root;var k=this._getId(x);return k&&(A=E(A,k)),m.call(this,S,A,x,T)}}var r=n.toHash(["properties","patternProperties","enum","dependencies","definitions"]);function m(T,C,S,w){if(T.fragment=T.fragment||"",T.fragment.slice(0,1)=="/"){for(var x=T.fragment.split("/"),A=1;A<x.length;A++){var k=x[A];if(k){if(k=n.unescapeFragment(k),S=S[k],S===void 0)break;var R;if(!r[k]&&(R=this._getId(S),R&&(C=E(C,R)),S.$ref)){var I=E(C,S.$ref),B=f.call(this,w,I);B&&(S=B.schema,w=B.root,C=B.baseId)}}}if(S!==void 0&&S!==w.schema)return{schema:S,root:w,baseId:C}}}var i=n.toHash(["type","format","pattern","maxLength","minLength","maxProperties","minProperties","maxItems","minItems","maximum","minimum","uniqueItems","multipleOf","required","enum"]);function c(T,C){if(C===!1)return!1;if(C===void 0||C===!0)return d(T);if(C)return s(T)<=C}function d(T){var C;if(Array.isArray(T)){for(var S=0;S<T.length;S++)if(C=T[S],typeof C=="object"&&!d(C))return!1}else for(var w in T)if(w=="$ref"||(C=T[w],typeof C=="object"&&!d(C)))return!1;return!0}function s(T){var C=0,S;if(Array.isArray(T)){for(var w=0;w<T.length;w++)if(S=T[w],typeof S=="object"&&(C+=s(S)),C==1/0)return 1/0}else for(var x in T){if(x=="$ref")return 1/0;if(i[x])C++;else if(S=T[x],typeof S=="object"&&(C+=s(S)+1),C==1/0)return 1/0}return C}function p(T,C){C!==!1&&(T=v(T));var S=a.parse(T);return h(S)}function h(T){return a.serialize(T).split("#")[0]+"#"}var g=/#\/?$/;function v(T){return T?T.replace(g,""):""}function E(T,C){return C=v(C),a.resolve(T,C)}function b(T){var C=v(this._getId(T)),S={"":C},w={"":p(C,!1)},x={},A=this;return t(T,{allKeys:!0},function(k,R,I,B,F,O,$){if(R!==""){var N=A._getId(k),_=S[B],X=w[B]+"/"+F;if($!==void 0&&(X+="/"+(typeof $=="number"?$:n.escapeFragment($))),typeof N=="string"){N=_=v(_?a.resolve(_,N):N);var L=A._refs[N];if(typeof L=="string"&&(L=A._refs[L]),L&&L.schema){if(!e(k,L.schema))throw new Error('id "'+N+'" resolves to more than one schema')}else if(N!=v(X))if(N[0]=="#"){if(x[N]&&!e(k,x[N]))throw new Error('id "'+N+'" resolves to more than one schema');x[N]=k}else A._refs[N]=X}S[R]=_,w[R]=X}}),x}return fs}var ms,Im;function ds(){if(Im)return ms;Im=1;var a=ps();ms={Validation:o(e),MissingRef:o(n)};function e(t){this.message="validation failed",this.errors=t,this.ajv=this.validation=!0}n.message=function(t,l){return"can't resolve reference "+l+" from id "+t};function n(t,l,f){this.message=f||n.message(t,l),this.missingRef=a.url(t,l),this.missingSchema=a.normalizeId(a.fullPath(this.missingRef))}function o(t){return t.prototype=Object.create(Error.prototype),t.prototype.constructor=t,t}return ms}var hs,Fm;function Rm(){return Fm||(Fm=1,hs=function(a,e){e||(e={}),typeof e=="function"&&(e={cmp:e});var n=typeof e.cycles=="boolean"?e.cycles:!1,o=e.cmp&&(function(l){return function(f){return function(u,r){var m={key:u,value:f[u]},i={key:r,value:f[r]};return l(m,i)}}})(e.cmp),t=[];return(function l(f){if(f&&f.toJSON&&typeof f.toJSON=="function"&&(f=f.toJSON()),f!==void 0){if(typeof f=="number")return isFinite(f)?""+f:"null";if(typeof f!="object")return JSON.stringify(f);var u,r;if(Array.isArray(f)){for(r="[",u=0;u<f.length;u++)u&&(r+=","),r+=l(f[u])||"null";return r+"]"}if(f===null)return"null";if(t.indexOf(f)!==-1){if(n)return JSON.stringify("__cycle__");throw new TypeError("Converting circular structure to JSON")}var m=t.push(f)-1,i=Object.keys(f).sort(o&&o(f));for(r="",u=0;u<i.length;u++){var c=i[u],d=l(f[c]);d&&(r&&(r+=","),r+=JSON.stringify(c)+":"+d)}return t.splice(m,1),"{"+r+"}"}})(a)}),hs}var gs,_m;function Bm(){return _m||(_m=1,gs=function(e,n,o){var t="",l=e.schema.$async===!0,f=e.util.schemaHasRulesExcept(e.schema,e.RULES.all,"$ref"),u=e.self._getId(e.schema);if(e.opts.strictKeywords){var r=e.util.schemaUnknownRules(e.schema,e.RULES.keywords);if(r){var m="unknown keyword: "+r;if(e.opts.strictKeywords==="log")e.logger.warn(m);else throw new Error(m)}}if(e.isTop&&(t+=" var validate = ",l&&(e.async=!0,t+="async "),t+="function(data, dataPath, parentData, parentDataProperty, rootData) { 'use strict'; ",u&&(e.opts.sourceCode||e.opts.processCode)&&(t+=" "+("/*# sourceURL="+u+" */")+" ")),typeof e.schema=="boolean"||!(f||e.schema.$ref)){var n="false schema",i=e.level,c=e.dataLevel,d=e.schema[n],s=e.schemaPath+e.util.getProperty(n),p=e.errSchemaPath+"/"+n,C=!e.opts.allErrors,x,h="data"+(c||""),T="valid"+i;if(e.schema===!1){e.isTop?C=!0:t+=" var "+T+" = false; ";var g=g||[];g.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(x||"false schema")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'boolean schema is false' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),t+=" } "):t+=" {} ";var v=t;t=g.pop(),!e.compositeRule&&C?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else e.isTop?l?t+=" return data; ":t+=" validate.errors = null; return true; ":t+=" var "+T+" = true; ";return e.isTop&&(t+=" }; return validate; "),t}if(e.isTop){var E=e.isTop,i=e.level=0,c=e.dataLevel=0,h="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 b="default is ignored in the schema root";if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}t+=" var vErrors = null; ",t+=" var errors = 0; ",t+=" if (rootData === undefined) rootData = data; "}else{var i=e.level,c=e.dataLevel,h="data"+(c||"");if(u&&(e.baseId=e.resolve.url(e.baseId,u)),l&&!e.async)throw new Error("async schema in sync schema");t+=" var errs_"+i+" = errors;"}var T="valid"+i,C=!e.opts.allErrors,S="",w="",x,A=e.schema.type,k=Array.isArray(A);if(A&&e.opts.nullable&&e.schema.nullable===!0&&(k?A.indexOf("null")==-1&&(A=A.concat("null")):A!="null"&&(A=[A,"null"],k=!0)),k&&A.length==1&&(A=A[0],k=!1),e.schema.$ref&&f){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&&(f=!1,e.logger.warn('$ref: keywords ignored in schema at path "'+e.errSchemaPath+'"'))}if(e.schema.$comment&&e.opts.$comment&&(t+=" "+e.RULES.all.$comment.code(e,"$comment")),A){if(e.opts.coerceTypes)var R=e.util.coerceToTypes(e.opts.coerceTypes,A);var I=e.RULES.types[A];if(R||k||I===!0||I&&!z(I)){var s=e.schemaPath+".type",p=e.errSchemaPath+"/type",s=e.schemaPath+".type",p=e.errSchemaPath+"/type",B=k?"checkDataTypes":"checkDataType";if(t+=" if ("+e.util[B](A,h,e.opts.strictNumbers,!0)+") { ",R){var F="dataType"+i,O="coerced"+i;t+=" var "+F+" = typeof "+h+"; var "+O+" = undefined; ",e.opts.coerceTypes=="array"&&(t+=" if ("+F+" == 'object' && Array.isArray("+h+") && "+h+".length == 1) { "+h+" = "+h+"[0]; "+F+" = typeof "+h+"; if ("+e.util.checkDataType(e.schema.type,h,e.opts.strictNumbers)+") "+O+" = "+h+"; } "),t+=" if ("+O+" !== undefined) ; ";var $=R;if($)for(var N,_=-1,X=$.length-1;_<X;)N=$[_+=1],N=="string"?t+=" else if ("+F+" == 'number' || "+F+" == 'boolean') "+O+" = '' + "+h+"; else if ("+h+" === null) "+O+" = ''; ":N=="number"||N=="integer"?(t+=" else if ("+F+" == 'boolean' || "+h+" === null || ("+F+" == 'string' && "+h+" && "+h+" == +"+h+" ",N=="integer"&&(t+=" && !("+h+" % 1)"),t+=")) "+O+" = +"+h+"; "):N=="boolean"?t+=" else if ("+h+" === 'false' || "+h+" === 0 || "+h+" === null) "+O+" = false; else if ("+h+" === 'true' || "+h+" === 1) "+O+" = true; ":N=="null"?t+=" else if ("+h+" === '' || "+h+" === 0 || "+h+" === false) "+O+" = null; ":e.opts.coerceTypes=="array"&&N=="array"&&(t+=" else if ("+F+" == 'string' || "+F+" == 'number' || "+F+" == 'boolean' || "+h+" == null) "+O+" = ["+h+"]; ");t+=" else { ";var g=g||[];g.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(x||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",k?t+=""+A.join(","):t+=""+A,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",k?t+=""+A.join(","):t+=""+A,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),t+=" } "):t+=" {} ";var v=t;t=g.pop(),!e.compositeRule&&C?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } if ("+O+" !== undefined) { ";var L=c?"data"+(c-1||""):"parentData",K=c?e.dataPathArr[c]:"parentDataProperty";t+=" "+h+" = "+O+"; ",c||(t+="if ("+L+" !== undefined)"),t+=" "+L+"["+K+"] = "+O+"; } "}else{var g=g||[];g.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(x||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",k?t+=""+A.join(","):t+=""+A,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",k?t+=""+A.join(","):t+=""+A,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),t+=" } "):t+=" {} ";var v=t;t=g.pop(),!e.compositeRule&&C?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}t+=" } "}}if(e.schema.$ref&&!f)t+=" "+e.RULES.all.$ref.code(e,"$ref")+" ",C&&(t+=" } if (errors === ",E?t+="0":t+="errs_"+i,t+=") { ",w+="}");else{var J=e.RULES;if(J){for(var I,ge=-1,ae=J.length-1;ge<ae;)if(I=J[ge+=1],z(I)){if(I.type&&(t+=" if ("+e.util.checkDataType(I.type,h,e.opts.strictNumbers)+") { "),e.opts.useDefaults){if(I.type=="object"&&e.schema.properties){var d=e.schema.properties,ke=Object.keys(d),Z=ke;if(Z)for(var P,H=-1,fe=Z.length-1;H<fe;){P=Z[H+=1];var ce=d[P];if(ce.default!==void 0){var ie=h+e.util.getProperty(P);if(e.compositeRule){if(e.opts.strictDefaults){var b="default is ignored for: "+ie;if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}}else t+=" if ("+ie+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+ie+" === null || "+ie+" === '' "),t+=" ) "+ie+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(ce.default)+" ":t+=" "+JSON.stringify(ce.default)+" ",t+="; "}}}else if(I.type=="array"&&Array.isArray(e.schema.items)){var he=e.schema.items;if(he){for(var ce,_=-1,Ee=he.length-1;_<Ee;)if(ce=he[_+=1],ce.default!==void 0){var ie=h+"["+_+"]";if(e.compositeRule){if(e.opts.strictDefaults){var b="default is ignored for: "+ie;if(e.opts.strictDefaults==="log")e.logger.warn(b);else throw new Error(b)}}else t+=" if ("+ie+" === undefined ",e.opts.useDefaults=="empty"&&(t+=" || "+ie+" === null || "+ie+" === '' "),t+=" ) "+ie+" = ",e.opts.useDefaults=="shared"?t+=" "+e.useDefault(ce.default)+" ":t+=" "+JSON.stringify(ce.default)+" ",t+="; "}}}}var Ce=I.rules;if(Ce){for(var Ae,ee=-1,ne=Ce.length-1;ee<ne;)if(Ae=Ce[ee+=1],oe(Ae)){var we=Ae.code(e,Ae.keyword,I.type);we&&(t+=" "+we+" ",C&&(S+="}"))}}if(C&&(t+=" "+S+" ",S=""),I.type&&(t+=" } ",A&&A===I.type&&!R)){t+=" else { ";var s=e.schemaPath+".type",p=e.errSchemaPath+"/type",g=g||[];g.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(x||"type")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(p)+" , params: { type: '",k?t+=""+A.join(","):t+=""+A,t+="' } ",e.opts.messages!==!1&&(t+=" , message: 'should be ",k?t+=""+A.join(","):t+=""+A,t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+s+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+h+" "),t+=" } "):t+=" {} ";var v=t;t=g.pop(),!e.compositeRule&&C?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } "}C&&(t+=" if (errors === ",E?t+="0":t+="errs_"+i,t+=") { ",w+="}")}}}C&&(t+=" "+w+" "),E?(l?(t+=" if (errors === 0) return data; ",t+=" else throw new ValidationError(vErrors); "):(t+=" validate.errors = vErrors; ",t+=" return errors === 0; "),t+=" }; return validate;"):t+=" var "+T+" = errors === errs_"+i+";";function z(Re){for(var Ie=Re.rules,W=0;W<Ie.length;W++)if(oe(Ie[W]))return!0}function oe(Re){return e.schema[Re.keyword]!==void 0||Re.implements&&Te(Re)}function Te(Re){for(var Ie=Re.implements,W=0;W<Ie.length;W++)if(e.schema[Ie[W]]!==void 0)return!0}return t}),gs}var ys,Lm;function QC(){if(Lm)return ys;Lm=1;var a=ps(),e=Lr(),n=ds(),o=Rm(),t=Bm(),l=e.ucs2length,f=is(),u=n.Validation;ys=r;function r(v,E,b,T){var C=this,S=this._opts,w=[void 0],x={},A=[],k={},R=[],I={},B=[];E=E||{schema:v,refVal:w,refs:x};var F=m.call(this,v,E,T),O=this._compilations[F.index];if(F.compiling)return O.callValidate=L;var $=this._formats,N=this.RULES;try{var _=K(v,E,b,T);O.validate=_;var X=O.callValidate;return X&&(X.schema=_.schema,X.errors=null,X.refs=_.refs,X.refVal=_.refVal,X.root=_.root,X.$async=_.$async,S.sourceCode&&(X.source=_.source)),_}finally{i.call(this,v,E,T)}function L(){var ce=O.validate,ie=ce.apply(this,arguments);return L.errors=ce.errors,ie}function K(ce,ie,he,Ee){var Ce=!ie||ie&&ie.schema==ce;if(ie.schema!=E.schema)return r.call(C,ce,ie,he,Ee);var Ae=ce.$async===!0,ee=t({isTop:!0,schema:ce,isRoot:Ce,baseId:Ee,root:ie,schemaPath:"",errSchemaPath:"#",errorPath:'""',MissingRefError:n.MissingRef,RULES:N,validate:t,util:e,resolve:a,resolveRef:J,usePattern:P,useDefault:H,useCustomRule:fe,opts:S,formats:$,logger:C.logger,self:C});ee=g(w,p)+g(A,d)+g(R,s)+g(B,h)+ee,S.processCode&&(ee=S.processCode(ee,ce));var ne;try{var we=new Function("self","RULES","formats","root","refVal","defaults","customRules","equal","ucs2length","ValidationError",ee);ne=we(C,N,$,E,w,R,B,f,l,u),w[0]=ne}catch(z){throw C.logger.error("Error compiling schema, function code:",ee),z}return ne.schema=ce,ne.errors=null,ne.refs=x,ne.refVal=w,ne.root=Ce?ne:ie,Ae&&(ne.$async=!0),S.sourceCode===!0&&(ne.source={code:ee,patterns:A,defaults:R}),ne}function J(ce,ie,he){ie=a.url(ce,ie);var Ee=x[ie],Ce,Ae;if(Ee!==void 0)return Ce=w[Ee],Ae="refVal["+Ee+"]",Z(Ce,Ae);if(!he&&E.refs){var ee=E.refs[ie];if(ee!==void 0)return Ce=E.refVal[ee],Ae=ge(ie,Ce),Z(Ce,Ae)}Ae=ge(ie);var ne=a.call(C,K,E,ie);if(ne===void 0){var we=b&&b[ie];we&&(ne=a.inlineRef(we,S.inlineRefs)?we:r.call(C,we,E,b,ce))}if(ne===void 0)ae(ie);else return ke(ie,ne),Z(ne,Ae)}function ge(ce,ie){var he=w.length;return w[he]=ie,x[ce]=he,"refVal"+he}function ae(ce){delete x[ce]}function ke(ce,ie){var he=x[ce];w[he]=ie}function Z(ce,ie){return typeof ce=="object"||typeof ce=="boolean"?{code:ie,schema:ce,inline:!0}:{code:ie,$async:ce&&!!ce.$async}}function P(ce){var ie=k[ce];return ie===void 0&&(ie=k[ce]=A.length,A[ie]=ce),"pattern"+ie}function H(ce){switch(typeof ce){case"boolean":case"number":return""+ce;case"string":return e.toQuotedString(ce);case"object":if(ce===null)return"null";var ie=o(ce),he=I[ie];return he===void 0&&(he=I[ie]=R.length,R[he]=ce),"default"+he}}function fe(ce,ie,he,Ee){if(C._opts.validateSchema!==!1){var Ce=ce.definition.dependencies;if(Ce&&!Ce.every(function(Ie){return Object.prototype.hasOwnProperty.call(he,Ie)}))throw new Error("parent schema must have all required keywords: "+Ce.join(","));var Ae=ce.definition.validateSchema;if(Ae){var ee=Ae(ie);if(!ee){var ne="keyword schema is invalid: "+C.errorsText(Ae.errors);if(C._opts.validateSchema=="log")C.logger.error(ne);else throw new Error(ne)}}}var we=ce.definition.compile,z=ce.definition.inline,oe=ce.definition.macro,Te;if(we)Te=we.call(C,ie,he,Ee);else if(oe)Te=oe.call(C,ie,he,Ee),S.validateSchema!==!1&&C.validateSchema(Te,!0);else if(z)Te=z.call(C,Ee,ce.keyword,ie,he);else if(Te=ce.definition.validate,!Te)return;if(Te===void 0)throw new Error('custom keyword "'+ce.keyword+'"failed to compile');var Re=B.length;return B[Re]=Te,{code:"customRule"+Re,validate:Te}}}function m(v,E,b){var T=c.call(this,v,E,b);return T>=0?{index:T,compiling:!0}:(T=this._compilations.length,this._compilations[T]={schema:v,root:E,baseId:b},{index:T,compiling:!1})}function i(v,E,b){var T=c.call(this,v,E,b);T>=0&&this._compilations.splice(T,1)}function c(v,E,b){for(var T=0;T<this._compilations.length;T++){var C=this._compilations[T];if(C.schema==v&&C.root==E&&C.baseId==b)return T}return-1}function d(v,E){return"var pattern"+v+" = new RegExp("+e.toQuotedString(E[v])+");"}function s(v){return"var default"+v+" = defaults["+v+"];"}function p(v,E){return E[v]===void 0?"":"var refVal"+v+" = refVal["+v+"];"}function h(v){return"var customRule"+v+" = customRules["+v+"];"}function g(v,E){if(!v.length)return"";for(var b="",T=0;T<v.length;T++)b+=E(T,v);return b}return ys}var vs={exports:{}},Om;function ZC(){if(Om)return vs.exports;Om=1;var a=vs.exports=function(){this._cache={}};return a.prototype.put=function(n,o){this._cache[n]=o},a.prototype.get=function(n){return this._cache[n]},a.prototype.del=function(n){delete this._cache[n]},a.prototype.clear=function(){this._cache={}},vs.exports}var Ss,Nm;function ex(){if(Nm)return Ss;Nm=1;var a=Lr(),e=/^(\d\d\d\d)-(\d\d)-(\d\d)$/,n=[0,31,28,31,30,31,30,31,31,30,31,30,31],o=/^(\d\d):(\d\d):(\d\d)(\.\d+)?(z|[+-]\d\d(?::?\d\d)?)?$/i,t=/^(?=.{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,l=/^(?:[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,f=/^(?:[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,u=/^(?:(?:[^\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,r=/^(?:(?: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,m=/^(?:urn:uuid:)?[0-9a-f]{8}-(?:[0-9a-f]{4}-){3}[0-9a-f]{12}$/i,i=/^(?:\/(?:[^~/]|~0|~1)*)*$/,c=/^#(?:\/(?:[a-z0-9_\-.!$&'()*+,;:=@]|%[0-9a-f]{2}|~0|~1)*)*$/i,d=/^(?:0|[1-9][0-9]*)(?:#|(?:\/(?:[^~/]|~0|~1)*)*)$/;Ss=s;function s(w){return w=w=="full"?"full":"fast",a.copy(s[w])}s.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":u,url:r,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:t,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:S,uuid:m,"json-pointer":i,"json-pointer-uri-fragment":c,"relative-json-pointer":d},s.full={date:h,time:g,"date-time":E,uri:T,"uri-reference":f,"uri-template":u,url:r,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:t,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:S,uuid:m,"json-pointer":i,"json-pointer-uri-fragment":c,"relative-json-pointer":d};function p(w){return w%4===0&&(w%100!==0||w%400===0)}function h(w){var x=w.match(e);if(!x)return!1;var A=+x[1],k=+x[2],R=+x[3];return k>=1&&k<=12&&R>=1&&R<=(k==2&&p(A)?29:n[k])}function g(w,x){var A=w.match(o);if(!A)return!1;var k=A[1],R=A[2],I=A[3],B=A[5];return(k<=23&&R<=59&&I<=59||k==23&&R==59&&I==60)&&(!x||B)}var v=/t|\s/i;function E(w){var x=w.split(v);return x.length==2&&h(x[0])&&g(x[1],!0)}var b=/\/|:/;function T(w){return b.test(w)&&l.test(w)}var C=/[^\\]\\Z/;function S(w){if(C.test(w))return!1;try{return new RegExp(w),!0}catch{return!1}}return Ss}var Es,Mm;function tx(){return Mm||(Mm=1,Es=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.errSchemaPath+"/"+n,m=!e.opts.allErrors,i="data"+(f||""),c="valid"+l,d,s;if(u=="#"||u=="#/")e.isRoot?(d=e.async,s="validate"):(d=e.root.schema.$async===!0,s="root.refVal[0]");else{var p=e.resolveRef(e.baseId,u,e.isRoot);if(p===void 0){var h=e.MissingRefError.message(e.baseId,u);if(e.opts.missingRefs=="fail"){e.logger.error(h);var g=g||[];g.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '$ref' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(r)+" , params: { ref: '"+e.util.escapeQuotes(u)+"' } ",e.opts.messages!==!1&&(t+=" , message: 'can\\'t resolve reference "+e.util.escapeQuotes(u)+"' "),e.opts.verbose&&(t+=" , schema: "+e.util.toQuotedString(u)+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+i+" "),t+=" } "):t+=" {} ";var v=t;t=g.pop(),!e.compositeRule&&m?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m&&(t+=" if (false) { ")}else if(e.opts.missingRefs=="ignore")e.logger.warn(h),m&&(t+=" if (true) { ");else throw new e.MissingRefError(e.baseId,u,h)}else if(p.inline){var E=e.util.copy(e);E.level++;var b="valid"+E.level;E.schema=p.schema,E.schemaPath="",E.errSchemaPath=u;var T=e.validate(E).replace(/validate\.schema/g,p.code);t+=" "+T+" ",m&&(t+=" if ("+b+") { ")}else d=p.$async===!0||e.async&&p.$async!==!1,s=p.code}if(s){var g=g||[];g.push(t),t="",e.opts.passContext?t+=" "+s+".call(this, ":t+=" "+s+"( ",t+=" "+i+", (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var C=f?"data"+(f-1||""):"parentData",S=f?e.dataPathArr[f]:"parentDataProperty";t+=" , "+C+" , "+S+", rootData) ";var w=t;if(t=g.pop(),d){if(!e.async)throw new Error("async schema referenced by sync schema");m&&(t+=" var "+c+"; "),t+=" try { await "+w+"; ",m&&(t+=" "+c+" = true; "),t+=" } catch (e) { if (!(e instanceof ValidationError)) throw e; if (vErrors === null) vErrors = e.errors; else vErrors = vErrors.concat(e.errors); errors = vErrors.length; ",m&&(t+=" "+c+" = false; "),t+=" } ",m&&(t+=" if ("+c+") { ")}else t+=" if (!"+w+") { if (vErrors === null) vErrors = "+s+".errors; else vErrors = vErrors.concat("+s+".errors); errors = vErrors.length; } ",m&&(t+=" else { ")}return t}),Es}var bs,jm;function rx(){return jm||(jm=1,bs=function(e,n,o){var t=" ",l=e.schema[n],f=e.schemaPath+e.util.getProperty(n),u=e.errSchemaPath+"/"+n,r=!e.opts.allErrors,m=e.util.copy(e),i="";m.level++;var c="valid"+m.level,d=m.baseId,s=!0,p=l;if(p)for(var h,g=-1,v=p.length-1;g<v;)h=p[g+=1],(e.opts.strictKeywords?typeof h=="object"&&Object.keys(h).length>0||h===!1:e.util.schemaHasRules(h,e.RULES.all))&&(s=!1,m.schema=h,m.schemaPath=f+"["+g+"]",m.errSchemaPath=u+"/"+g,t+=" "+e.validate(m)+" ",m.baseId=d,r&&(t+=" if ("+c+") { ",i+="}"));return r&&(s?t+=" if (true) { ":t+=" "+i.slice(0,-1)+" "),t}),bs}var Cs,Um;function nx(){return Um||(Um=1,Cs=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="valid"+l,s="errs__"+l,p=e.util.copy(e),h="";p.level++;var g="valid"+p.level,v=u.every(function(x){return e.opts.strictKeywords?typeof x=="object"&&Object.keys(x).length>0||x===!1:e.util.schemaHasRules(x,e.RULES.all)});if(v){var E=p.baseId;t+=" var "+s+" = errors; var "+d+" = false; ";var b=e.compositeRule;e.compositeRule=p.compositeRule=!0;var T=u;if(T)for(var C,S=-1,w=T.length-1;S<w;)C=T[S+=1],p.schema=C,p.schemaPath=r+"["+S+"]",p.errSchemaPath=m+"/"+S,t+=" "+e.validate(p)+" ",p.baseId=E,t+=" "+d+" = "+d+" || "+g+"; if (!"+d+") { ",h+="}";e.compositeRule=p.compositeRule=b,t+=" "+h+" if (!"+d+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'anyOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should match some schema in anyOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } else { errors = "+s+"; if (vErrors !== null) { if ("+s+") vErrors.length = "+s+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else i&&(t+=" if (true) { ");return t}),Cs}var xs,qm;function sx(){return qm||(qm=1,xs=function(e,n,o){var t=" ",l=e.schema[n],f=e.errSchemaPath+"/"+n;e.opts.allErrors;var u=e.util.toQuotedString(l);return e.opts.$comment===!0?t+=" console.log("+u+");":typeof e.opts.$comment=="function"&&(t+=" self._opts.$comment("+u+", "+e.util.toQuotedString(f)+", validate.root.schema);"),t}),xs}var ws,Vm;function ax(){return Vm||(Vm=1,ws=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="valid"+l,s=e.opts.$data&&u&&u.$data;s&&(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; "),s||(t+=" var schema"+l+" = validate.schema"+r+";"),t+="var "+d+" = equal("+c+", schema"+l+"); if (!"+d+") { ";var p=p||[];p.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'const' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { allowedValue: schema"+l+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to constant' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var h=t;return t=p.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+h+"]); ":t+=" validate.errors = ["+h+"]; return false; ":t+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",i&&(t+=" else { "),t}),ws}var As,$m;function ix(){return $m||($m=1,As=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="valid"+l,s="errs__"+l,p=e.util.copy(e),h="";p.level++;var g="valid"+p.level,v="i"+l,E=p.dataLevel=e.dataLevel+1,b="data"+E,T=e.baseId,C=e.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:e.util.schemaHasRules(u,e.RULES.all);if(t+="var "+s+" = errors;var "+d+";",C){var S=e.compositeRule;e.compositeRule=p.compositeRule=!0,p.schema=u,p.schemaPath=r,p.errSchemaPath=m,t+=" var "+g+" = false; for (var "+v+" = 0; "+v+" < "+c+".length; "+v+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var w=c+"["+v+"]";p.dataPathArr[E]=v;var x=e.validate(p);p.baseId=T,e.util.varOccurences(x,b)<2?t+=" "+e.util.varReplace(x,b,w)+" ":t+=" var "+b+" = "+w+"; "+x+" ",t+=" if ("+g+") break; } ",e.compositeRule=p.compositeRule=S,t+=" "+h+" if (!"+g+") {"}else t+=" if ("+c+".length == 0) {";var A=A||[];A.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'contains' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should contain a valid item' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var k=t;return t=A.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+k+"]); ":t+=" validate.errors = ["+k+"]; return false; ":t+=" var err = "+k+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { ",C&&(t+=" errors = "+s+"; if (vErrors !== null) { if ("+s+") vErrors.length = "+s+"; else vErrors = null; } "),e.opts.allErrors&&(t+=" } "),t}),As}var Ts,Gm;function ox(){return Gm||(Gm=1,Ts=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="errs__"+l,s=e.util.copy(e),p="";s.level++;var h="valid"+s.level,g={},v={},E=e.opts.ownProperties;for(S in u)if(S!="__proto__"){var b=u[S],T=Array.isArray(b)?v:g;T[S]=b}t+="var "+d+" = errors;";var C=e.errorPath;t+="var missing"+l+";";for(var S in v)if(T=v[S],T.length){if(t+=" if ( "+c+e.util.getProperty(S)+" !== undefined ",E&&(t+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(S)+"') "),i){t+=" && ( ";var w=T;if(w)for(var x,A=-1,k=w.length-1;A<k;){x=w[A+=1],A&&(t+=" || ");var R=e.util.getProperty(x),I=c+R;t+=" ( ( "+I+" === undefined ",E&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(x)+"') "),t+=") && (missing"+l+" = "+e.util.toQuotedString(e.opts.jsonPointers?x:R)+") ) "}t+=")) { ";var B="missing"+l,F="' + "+B+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(C,B,!0):C+" + "+B);var O=O||[];O.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { property: '"+e.util.escapeQuotes(S)+"', missingProperty: '"+F+"', depsCount: "+T.length+", deps: '"+e.util.escapeQuotes(T.length==1?T[0]:T.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",T.length==1?t+="property "+e.util.escapeQuotes(T[0]):t+="properties "+e.util.escapeQuotes(T.join(", ")),t+=" when property "+e.util.escapeQuotes(S)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var $=t;t=O.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+$+"]); ":t+=" validate.errors = ["+$+"]; return false; ":t+=" var err = "+$+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; "}else{t+=" ) { ";var N=T;if(N)for(var x,_=-1,X=N.length-1;_<X;){x=N[_+=1];var R=e.util.getProperty(x),F=e.util.escapeQuotes(x),I=c+R;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(C,x,e.opts.jsonPointers)),t+=" if ( "+I+" === undefined ",E&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(x)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'dependencies' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { property: '"+e.util.escapeQuotes(S)+"', missingProperty: '"+F+"', depsCount: "+T.length+", deps: '"+e.util.escapeQuotes(T.length==1?T[0]:T.join(", "))+"' } ",e.opts.messages!==!1&&(t+=" , message: 'should have ",T.length==1?t+="property "+e.util.escapeQuotes(T[0]):t+="properties "+e.util.escapeQuotes(T.join(", ")),t+=" when property "+e.util.escapeQuotes(S)+" is present' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}t+=" } ",i&&(p+="}",t+=" else { ")}e.errorPath=C;var L=s.baseId;for(var S in g){var b=g[S];(e.opts.strictKeywords?typeof b=="object"&&Object.keys(b).length>0||b===!1:e.util.schemaHasRules(b,e.RULES.all))&&(t+=" "+h+" = true; if ( "+c+e.util.getProperty(S)+" !== undefined ",E&&(t+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(S)+"') "),t+=") { ",s.schema=b,s.schemaPath=r+e.util.getProperty(S),s.errSchemaPath=m+"/"+e.util.escapeFragment(S),t+=" "+e.validate(s)+" ",s.baseId=L,t+=" } ",i&&(t+=" if ("+h+") { ",p+="}"))}return i&&(t+=" "+p+" if ("+d+" == errors) {"),t}),Ts}var ks,Wm;function lx(){return Wm||(Wm=1,ks=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="valid"+l,s=e.opts.$data&&u&&u.$data;s&&(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; ");var p="i"+l,h="schema"+l;s||(t+=" var "+h+" = validate.schema"+r+";"),t+="var "+d+";",s&&(t+=" if (schema"+l+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+l+")) "+d+" = false; else {"),t+=""+d+" = false;for (var "+p+"=0; "+p+"<"+h+".length; "+p+"++) if (equal("+c+", "+h+"["+p+"])) { "+d+" = true; break; }",s&&(t+=" } "),t+=" if (!"+d+") { ";var g=g||[];g.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'enum' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { allowedValues: schema"+l+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be equal to one of the allowed values' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var v=t;return t=g.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" }",i&&(t+=" else { "),t}),ks}var Ds,zm;function ux(){return zm||(zm=1,Ds=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||"");if(e.opts.format===!1)return i&&(t+=" if (true) { "),t;var d=e.opts.$data&&u&&u.$data,s;d?(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; ",s="schema"+l):s=u;var p=e.opts.unknownFormats,h=Array.isArray(p);if(d){var g="format"+l,v="isObject"+l,E="formatType"+l;t+=" var "+g+" = formats["+s+"]; var "+v+" = typeof "+g+" == 'object' && !("+g+" instanceof RegExp) && "+g+".validate; var "+E+" = "+v+" && "+g+".type || 'string'; if ("+v+") { ",e.async&&(t+=" var async"+l+" = "+g+".async; "),t+=" "+g+" = "+g+".validate; } if ( ",d&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'string') || "),t+=" (",p!="ignore"&&(t+=" ("+s+" && !"+g+" ",h&&(t+=" && self._opts.unknownFormats.indexOf("+s+") == -1 "),t+=") || "),t+=" ("+g+" && "+E+" == '"+o+"' && !(typeof "+g+" == 'function' ? ",e.async?t+=" (async"+l+" ? await "+g+"("+c+") : "+g+"("+c+")) ":t+=" "+g+"("+c+") ",t+=" : "+g+".test("+c+"))))) {"}else{var g=e.formats[u];if(!g){if(p=="ignore")return e.logger.warn('unknown format "'+u+'" ignored in schema at path "'+e.errSchemaPath+'"'),i&&(t+=" if (true) { "),t;if(h&&p.indexOf(u)>=0)return i&&(t+=" if (true) { "),t;throw new Error('unknown format "'+u+'" is used in schema at path "'+e.errSchemaPath+'"')}var v=typeof g=="object"&&!(g instanceof RegExp)&&g.validate,E=v&&g.type||"string";if(v){var b=g.async===!0;g=g.validate}if(E!=o)return i&&(t+=" if (true) { "),t;if(b){if(!e.async)throw new Error("async format in sync schema");var T="formats"+e.util.getProperty(u)+".validate";t+=" if (!(await "+T+"("+c+"))) { "}else{t+=" if (! ";var T="formats"+e.util.getProperty(u);v&&(T+=".validate"),typeof g=="function"?t+=" "+T+"("+c+") ":t+=" "+T+".test("+c+") ",t+=") { "}}var C=C||[];C.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'format' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { format: ",d?t+=""+s:t+=""+e.util.toQuotedString(u),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match format "`,d?t+="' + "+s+" + '":t+=""+e.util.escapeQuotes(u),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",d?t+="validate.schema"+r:t+=""+e.util.toQuotedString(u),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var S=t;return t=C.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+S+"]); ":t+=" validate.errors = ["+S+"]; return false; ":t+=" var err = "+S+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",i&&(t+=" else { "),t}),Ds}var Ps,Hm;function cx(){return Hm||(Hm=1,Ps=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="valid"+l,s="errs__"+l,p=e.util.copy(e);p.level++;var h="valid"+p.level,g=e.schema.then,v=e.schema.else,E=g!==void 0&&(e.opts.strictKeywords?typeof g=="object"&&Object.keys(g).length>0||g===!1:e.util.schemaHasRules(g,e.RULES.all)),b=v!==void 0&&(e.opts.strictKeywords?typeof v=="object"&&Object.keys(v).length>0||v===!1:e.util.schemaHasRules(v,e.RULES.all)),T=p.baseId;if(E||b){var C;p.createErrors=!1,p.schema=u,p.schemaPath=r,p.errSchemaPath=m,t+=" var "+s+" = errors; var "+d+" = true; ";var S=e.compositeRule;e.compositeRule=p.compositeRule=!0,t+=" "+e.validate(p)+" ",p.baseId=T,p.createErrors=!0,t+=" errors = "+s+"; if (vErrors !== null) { if ("+s+") vErrors.length = "+s+"; else vErrors = null; } ",e.compositeRule=p.compositeRule=S,E?(t+=" if ("+h+") { ",p.schema=e.schema.then,p.schemaPath=e.schemaPath+".then",p.errSchemaPath=e.errSchemaPath+"/then",t+=" "+e.validate(p)+" ",p.baseId=T,t+=" "+d+" = "+h+"; ",E&&b?(C="ifClause"+l,t+=" var "+C+" = 'then'; "):C="'then'",t+=" } ",b&&(t+=" else { ")):t+=" if (!"+h+") { ",b&&(p.schema=e.schema.else,p.schemaPath=e.schemaPath+".else",p.errSchemaPath=e.errSchemaPath+"/else",t+=" "+e.validate(p)+" ",p.baseId=T,t+=" "+d+" = "+h+"; ",E&&b?(C="ifClause"+l,t+=" var "+C+" = 'else'; "):C="'else'",t+=" } "),t+=" if (!"+d+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'if' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { failingKeyword: "+C+" } ",e.opts.messages!==!1&&(t+=` , message: 'should match "' + `+C+` + '" schema' `),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+=" } ",i&&(t+=" else { ")}else i&&(t+=" if (true) { ");return t}),Ps}var Is,Km;function fx(){return Km||(Km=1,Is=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="valid"+l,s="errs__"+l,p=e.util.copy(e),h="";p.level++;var g="valid"+p.level,v="i"+l,E=p.dataLevel=e.dataLevel+1,b="data"+E,T=e.baseId;if(t+="var "+s+" = errors;var "+d+";",Array.isArray(u)){var C=e.schema.additionalItems;if(C===!1){t+=" "+d+" = "+c+".length <= "+u.length+"; ";var S=m;m=e.errSchemaPath+"/additionalItems",t+=" if (!"+d+") { ";var w=w||[];w.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+u.length+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have more than "+u.length+" items' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var x=t;t=w.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+x+"]); ":t+=" validate.errors = ["+x+"]; return false; ":t+=" var err = "+x+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",m=S,i&&(h+="}",t+=" else { ")}var A=u;if(A){for(var k,R=-1,I=A.length-1;R<I;)if(k=A[R+=1],e.opts.strictKeywords?typeof k=="object"&&Object.keys(k).length>0||k===!1:e.util.schemaHasRules(k,e.RULES.all)){t+=" "+g+" = true; if ("+c+".length > "+R+") { ";var B=c+"["+R+"]";p.schema=k,p.schemaPath=r+"["+R+"]",p.errSchemaPath=m+"/"+R,p.errorPath=e.util.getPathExpr(e.errorPath,R,e.opts.jsonPointers,!0),p.dataPathArr[E]=R;var F=e.validate(p);p.baseId=T,e.util.varOccurences(F,b)<2?t+=" "+e.util.varReplace(F,b,B)+" ":t+=" var "+b+" = "+B+"; "+F+" ",t+=" } ",i&&(t+=" if ("+g+") { ",h+="}")}}if(typeof C=="object"&&(e.opts.strictKeywords?typeof C=="object"&&Object.keys(C).length>0||C===!1:e.util.schemaHasRules(C,e.RULES.all))){p.schema=C,p.schemaPath=e.schemaPath+".additionalItems",p.errSchemaPath=e.errSchemaPath+"/additionalItems",t+=" "+g+" = true; if ("+c+".length > "+u.length+") { for (var "+v+" = "+u.length+"; "+v+" < "+c+".length; "+v+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var B=c+"["+v+"]";p.dataPathArr[E]=v;var F=e.validate(p);p.baseId=T,e.util.varOccurences(F,b)<2?t+=" "+e.util.varReplace(F,b,B)+" ":t+=" var "+b+" = "+B+"; "+F+" ",i&&(t+=" if (!"+g+") break; "),t+=" } } ",i&&(t+=" if ("+g+") { ",h+="}")}}else if(e.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:e.util.schemaHasRules(u,e.RULES.all)){p.schema=u,p.schemaPath=r,p.errSchemaPath=m,t+=" for (var "+v+" = 0; "+v+" < "+c+".length; "+v+"++) { ",p.errorPath=e.util.getPathExpr(e.errorPath,v,e.opts.jsonPointers,!0);var B=c+"["+v+"]";p.dataPathArr[E]=v;var F=e.validate(p);p.baseId=T,e.util.varOccurences(F,b)<2?t+=" "+e.util.varReplace(F,b,B)+" ":t+=" var "+b+" = "+B+"; "+F+" ",i&&(t+=" if (!"+g+") break; "),t+=" }"}return i&&(t+=" "+h+" if ("+s+" == errors) {"),t}),Is}var Fs,Xm;function Jm(){return Xm||(Xm=1,Fs=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,T,c="data"+(f||""),d=e.opts.$data&&u&&u.$data,s;d?(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; ",s="schema"+l):s=u;var p=n=="maximum",h=p?"exclusiveMaximum":"exclusiveMinimum",g=e.schema[h],v=e.opts.$data&&g&&g.$data,E=p?"<":">",b=p?">":"<",T=void 0;if(!(d||typeof u=="number"||u===void 0))throw new Error(n+" must be number");if(!(v||g===void 0||typeof g=="number"||typeof g=="boolean"))throw new Error(h+" must be number or boolean");if(v){var C=e.util.getData(g.$data,f,e.dataPathArr),S="exclusive"+l,w="exclType"+l,x="exclIsNumber"+l,A="op"+l,k="' + "+A+" + '";t+=" var schemaExcl"+l+" = "+C+"; ",C="schemaExcl"+l,t+=" var "+S+"; var "+w+" = typeof "+C+"; if ("+w+" != 'boolean' && "+w+" != 'undefined' && "+w+" != 'number') { ";var T=h,R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(T||"_exclusiveLimit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: '"+h+" should be boolean' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var I=t;t=R.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+I+"]); ":t+=" validate.errors = ["+I+"]; return false; ":t+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else if ( ",d&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),t+=" "+w+" == 'number' ? ( ("+S+" = "+s+" === undefined || "+C+" "+E+"= "+s+") ? "+c+" "+b+"= "+C+" : "+c+" "+b+" "+s+" ) : ( ("+S+" = "+C+" === true) ? "+c+" "+b+"= "+s+" : "+c+" "+b+" "+s+" ) || "+c+" !== "+c+") { var op"+l+" = "+S+" ? '"+E+"' : '"+E+"='; ",u===void 0&&(T=h,m=e.errSchemaPath+"/"+h,s=C,d=v)}else{var x=typeof g=="number",k=E;if(x&&d){var A="'"+k+"'";t+=" if ( ",d&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),t+=" ( "+s+" === undefined || "+g+" "+E+"= "+s+" ? "+c+" "+b+"= "+g+" : "+c+" "+b+" "+s+" ) || "+c+" !== "+c+") { "}else{x&&u===void 0?(S=!0,T=h,m=e.errSchemaPath+"/"+h,s=g,b+="="):(x&&(s=Math[p?"min":"max"](g,u)),g===(x?s:!0)?(S=!0,T=h,m=e.errSchemaPath+"/"+h,b+="="):(S=!1,k+="="));var A="'"+k+"'";t+=" if ( ",d&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),t+=" "+c+" "+b+" "+s+" || "+c+" !== "+c+") { "}}T=T||n;var R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(T||"_limit")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { comparison: "+A+", limit: "+s+", exclusive: "+S+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be "+k+" ",d?t+="' + "+s:t+=""+s+"'"),e.opts.verbose&&(t+=" , schema: ",d?t+="validate.schema"+r:t+=""+u,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var I=t;return t=R.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+I+"]); ":t+=" validate.errors = ["+I+"]; return false; ":t+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",i&&(t+=" else { "),t}),Fs}var Rs,Ym;function Qm(){return Ym||(Ym=1,Rs=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,h,c="data"+(f||""),d=e.opts.$data&&u&&u.$data,s;if(d?(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; ",s="schema"+l):s=u,!(d||typeof u=="number"))throw new Error(n+" must be number");var p=n=="maxItems"?">":"<";t+="if ( ",d&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),t+=" "+c+".length "+p+" "+s+") { ";var h=n,g=g||[];g.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(h||"_limitItems")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+s+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",n=="maxItems"?t+="more":t+="fewer",t+=" than ",d?t+="' + "+s+" + '":t+=""+u,t+=" items' "),e.opts.verbose&&(t+=" , schema: ",d?t+="validate.schema"+r:t+=""+u,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var v=t;return t=g.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",i&&(t+=" else { "),t}),Rs}var _s,Zm;function ed(){return Zm||(Zm=1,_s=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,h,c="data"+(f||""),d=e.opts.$data&&u&&u.$data,s;if(d?(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; ",s="schema"+l):s=u,!(d||typeof u=="number"))throw new Error(n+" must be number");var p=n=="maxLength"?">":"<";t+="if ( ",d&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),e.opts.unicode===!1?t+=" "+c+".length ":t+=" ucs2length("+c+") ",t+=" "+p+" "+s+") { ";var h=n,g=g||[];g.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(h||"_limitLength")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+s+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be ",n=="maxLength"?t+="longer":t+="shorter",t+=" than ",d?t+="' + "+s+" + '":t+=""+u,t+=" characters' "),e.opts.verbose&&(t+=" , schema: ",d?t+="validate.schema"+r:t+=""+u,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var v=t;return t=g.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",i&&(t+=" else { "),t}),_s}var Bs,td;function rd(){return td||(td=1,Bs=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,h,c="data"+(f||""),d=e.opts.$data&&u&&u.$data,s;if(d?(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; ",s="schema"+l):s=u,!(d||typeof u=="number"))throw new Error(n+" must be number");var p=n=="maxProperties"?">":"<";t+="if ( ",d&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'number') || "),t+=" Object.keys("+c+").length "+p+" "+s+") { ";var h=n,g=g||[];g.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(h||"_limitProperties")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { limit: "+s+" } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have ",n=="maxProperties"?t+="more":t+="fewer",t+=" than ",d?t+="' + "+s+" + '":t+=""+u,t+=" properties' "),e.opts.verbose&&(t+=" , schema: ",d?t+="validate.schema"+r:t+=""+u,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var v=t;return t=g.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+v+"]); ":t+=" validate.errors = ["+v+"]; return false; ":t+=" var err = "+v+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",i&&(t+=" else { "),t}),Bs}var Ls,nd;function px(){return nd||(nd=1,Ls=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d=e.opts.$data&&u&&u.$data,s;if(d?(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; ",s="schema"+l):s=u,!(d||typeof u=="number"))throw new Error(n+" must be number");t+="var division"+l+";if (",d&&(t+=" "+s+" !== undefined && ( typeof "+s+" != 'number' || "),t+=" (division"+l+" = "+c+" / "+s+", ",e.opts.multipleOfPrecision?t+=" Math.abs(Math.round(division"+l+") - division"+l+") > 1e-"+e.opts.multipleOfPrecision+" ":t+=" division"+l+" !== parseInt(division"+l+") ",t+=" ) ",d&&(t+=" ) "),t+=" ) { ";var p=p||[];p.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'multipleOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { multipleOf: "+s+" } ",e.opts.messages!==!1&&(t+=" , message: 'should be multiple of ",d?t+="' + "+s:t+=""+s+"'"),e.opts.verbose&&(t+=" , schema: ",d?t+="validate.schema"+r:t+=""+u,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var h=t;return t=p.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+h+"]); ":t+=" validate.errors = ["+h+"]; return false; ":t+=" var err = "+h+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",i&&(t+=" else { "),t}),Ls}var Os,sd;function mx(){return sd||(sd=1,Os=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="errs__"+l,s=e.util.copy(e);s.level++;var p="valid"+s.level;if(e.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:e.util.schemaHasRules(u,e.RULES.all)){s.schema=u,s.schemaPath=r,s.errSchemaPath=m,t+=" var "+d+" = errors; ";var h=e.compositeRule;e.compositeRule=s.compositeRule=!0,s.createErrors=!1;var g;s.opts.allErrors&&(g=s.opts.allErrors,s.opts.allErrors=!1),t+=" "+e.validate(s)+" ",s.createErrors=!0,g&&(s.opts.allErrors=g),e.compositeRule=s.compositeRule=h,t+=" if ("+p+") { ";var v=v||[];v.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var E=t;t=v.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+E+"]); ":t+=" validate.errors = ["+E+"]; return false; ":t+=" var err = "+E+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { errors = "+d+"; if (vErrors !== null) { if ("+d+") vErrors.length = "+d+"; else vErrors = null; } ",e.opts.allErrors&&(t+=" } ")}else t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: 'not' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: {} ",e.opts.messages!==!1&&(t+=" , message: 'should NOT be valid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",i&&(t+=" if (false) { ");return t}),Os}var Ns,ad;function dx(){return ad||(ad=1,Ns=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="valid"+l,s="errs__"+l,p=e.util.copy(e),h="";p.level++;var g="valid"+p.level,v=p.baseId,E="prevValid"+l,b="passingSchemas"+l;t+="var "+s+" = errors , "+E+" = false , "+d+" = false , "+b+" = null; ";var T=e.compositeRule;e.compositeRule=p.compositeRule=!0;var C=u;if(C)for(var S,w=-1,x=C.length-1;w<x;)S=C[w+=1],(e.opts.strictKeywords?typeof S=="object"&&Object.keys(S).length>0||S===!1:e.util.schemaHasRules(S,e.RULES.all))?(p.schema=S,p.schemaPath=r+"["+w+"]",p.errSchemaPath=m+"/"+w,t+=" "+e.validate(p)+" ",p.baseId=v):t+=" var "+g+" = true; ",w&&(t+=" if ("+g+" && "+E+") { "+d+" = false; "+b+" = ["+b+", "+w+"]; } else { ",h+="}"),t+=" if ("+g+") { "+d+" = "+E+" = true; "+b+" = "+w+"; }";return e.compositeRule=p.compositeRule=T,t+=""+h+"if (!"+d+") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'oneOf' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { passingSchemas: "+b+" } ",e.opts.messages!==!1&&(t+=" , message: 'should match exactly one schema in oneOf' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),t+="} else { errors = "+s+"; if (vErrors !== null) { if ("+s+") vErrors.length = "+s+"; else vErrors = null; }",e.opts.allErrors&&(t+=" } "),t}),Ns}var Ms,id;function hx(){return id||(id=1,Ms=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d=e.opts.$data&&u&&u.$data,s;d?(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; ",s="schema"+l):s=u;var p=d?"(new RegExp("+s+"))":e.usePattern(u);t+="if ( ",d&&(t+=" ("+s+" !== undefined && typeof "+s+" != 'string') || "),t+=" !"+p+".test("+c+") ) { ";var h=h||[];h.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'pattern' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { pattern: ",d?t+=""+s:t+=""+e.util.toQuotedString(u),t+=" } ",e.opts.messages!==!1&&(t+=` , message: 'should match pattern "`,d?t+="' + "+s+" + '":t+=""+e.util.escapeQuotes(u),t+=`"' `),e.opts.verbose&&(t+=" , schema: ",d?t+="validate.schema"+r:t+=""+e.util.toQuotedString(u),t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var g=t;return t=h.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+g+"]); ":t+=" validate.errors = ["+g+"]; return false; ":t+=" var err = "+g+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+="} ",i&&(t+=" else { "),t}),Ms}var js,od;function gx(){return od||(od=1,js=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="errs__"+l,s=e.util.copy(e),p="";s.level++;var h="valid"+s.level,g="key"+l,v="idx"+l,E=s.dataLevel=e.dataLevel+1,b="data"+E,T="dataProperties"+l,C=Object.keys(u||{}).filter(_),S=e.schema.patternProperties||{},w=Object.keys(S).filter(_),x=e.schema.additionalProperties,A=C.length||w.length,k=x===!1,R=typeof x=="object"&&Object.keys(x).length,I=e.opts.removeAdditional,B=k||R||I,F=e.opts.ownProperties,O=e.baseId,$=e.schema.required;if($&&!(e.opts.$data&&$.$data)&&$.length<e.opts.loopRequired)var N=e.util.toHash($);function _(tt){return tt!=="__proto__"}if(t+="var "+d+" = errors;var "+h+" = true;",F&&(t+=" var "+T+" = undefined;"),B){if(F?t+=" "+T+" = "+T+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+T+".length; "+v+"++) { var "+g+" = "+T+"["+v+"]; ":t+=" for (var "+g+" in "+c+") { ",A){if(t+=" var isAdditional"+l+" = !(false ",C.length)if(C.length>8)t+=" || validate.schema"+r+".hasOwnProperty("+g+") ";else{var X=C;if(X)for(var L,K=-1,J=X.length-1;K<J;)L=X[K+=1],t+=" || "+g+" == "+e.util.toQuotedString(L)+" "}if(w.length){var ge=w;if(ge)for(var ae,ke=-1,Z=ge.length-1;ke<Z;)ae=ge[ke+=1],t+=" || "+e.usePattern(ae)+".test("+g+") "}t+=" ); if (isAdditional"+l+") { "}if(I=="all")t+=" delete "+c+"["+g+"]; ";else{var P=e.errorPath,H="' + "+g+" + '";if(e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers)),k)if(I)t+=" delete "+c+"["+g+"]; ";else{t+=" "+h+" = false; ";var fe=m;m=e.errSchemaPath+"/additionalProperties";var ce=ce||[];ce.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'additionalProperties' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { additionalProperty: '"+H+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is an invalid additional property":t+="should NOT have additional properties",t+="' "),e.opts.verbose&&(t+=" , schema: false , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var ie=t;t=ce.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+ie+"]); ":t+=" validate.errors = ["+ie+"]; return false; ":t+=" var err = "+ie+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m=fe,i&&(t+=" break; ")}else if(R)if(I=="failing"){t+=" var "+d+" = errors; ";var he=e.compositeRule;e.compositeRule=s.compositeRule=!0,s.schema=x,s.schemaPath=e.schemaPath+".additionalProperties",s.errSchemaPath=e.errSchemaPath+"/additionalProperties",s.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var Ee=c+"["+g+"]";s.dataPathArr[E]=g;var Ce=e.validate(s);s.baseId=O,e.util.varOccurences(Ce,b)<2?t+=" "+e.util.varReplace(Ce,b,Ee)+" ":t+=" var "+b+" = "+Ee+"; "+Ce+" ",t+=" if (!"+h+") { errors = "+d+"; if (validate.errors !== null) { if (errors) validate.errors.length = errors; else validate.errors = null; } delete "+c+"["+g+"]; } ",e.compositeRule=s.compositeRule=he}else{s.schema=x,s.schemaPath=e.schemaPath+".additionalProperties",s.errSchemaPath=e.errSchemaPath+"/additionalProperties",s.errorPath=e.opts._errorDataPathProperty?e.errorPath:e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var Ee=c+"["+g+"]";s.dataPathArr[E]=g;var Ce=e.validate(s);s.baseId=O,e.util.varOccurences(Ce,b)<2?t+=" "+e.util.varReplace(Ce,b,Ee)+" ":t+=" var "+b+" = "+Ee+"; "+Ce+" ",i&&(t+=" if (!"+h+") break; ")}e.errorPath=P}A&&(t+=" } "),t+=" } ",i&&(t+=" if ("+h+") { ",p+="}")}var Ae=e.opts.useDefaults&&!e.compositeRule;if(C.length){var ee=C;if(ee)for(var L,ne=-1,we=ee.length-1;ne<we;){L=ee[ne+=1];var z=u[L];if(e.opts.strictKeywords?typeof z=="object"&&Object.keys(z).length>0||z===!1:e.util.schemaHasRules(z,e.RULES.all)){var oe=e.util.getProperty(L),Ee=c+oe,Te=Ae&&z.default!==void 0;s.schema=z,s.schemaPath=r+oe,s.errSchemaPath=m+"/"+e.util.escapeFragment(L),s.errorPath=e.util.getPath(e.errorPath,L,e.opts.jsonPointers),s.dataPathArr[E]=e.util.toQuotedString(L);var Ce=e.validate(s);if(s.baseId=O,e.util.varOccurences(Ce,b)<2){Ce=e.util.varReplace(Ce,b,Ee);var Re=Ee}else{var Re=b;t+=" var "+b+" = "+Ee+"; "}if(Te)t+=" "+Ce+" ";else{if(N&&N[L]){t+=" if ( "+Re+" === undefined ",F&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(L)+"') "),t+=") { "+h+" = false; ";var P=e.errorPath,fe=m,Ie=e.util.escapeQuotes(L);e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(P,L,e.opts.jsonPointers)),m=e.errSchemaPath+"/required";var ce=ce||[];ce.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+Ie+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+Ie+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var ie=t;t=ce.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+ie+"]); ":t+=" validate.errors = ["+ie+"]; return false; ":t+=" var err = "+ie+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",m=fe,e.errorPath=P,t+=" } else { "}else i?(t+=" if ( "+Re+" === undefined ",F&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(L)+"') "),t+=") { "+h+" = true; } else { "):(t+=" if ("+Re+" !== undefined ",F&&(t+=" && Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(L)+"') "),t+=" ) { ");t+=" "+Ce+" } "}}i&&(t+=" if ("+h+") { ",p+="}")}}if(w.length){var W=w;if(W)for(var ae,Je=-1,ut=W.length-1;Je<ut;){ae=W[Je+=1];var z=S[ae];if(e.opts.strictKeywords?typeof z=="object"&&Object.keys(z).length>0||z===!1:e.util.schemaHasRules(z,e.RULES.all)){s.schema=z,s.schemaPath=e.schemaPath+".patternProperties"+e.util.getProperty(ae),s.errSchemaPath=e.errSchemaPath+"/patternProperties/"+e.util.escapeFragment(ae),F?t+=" "+T+" = "+T+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+T+".length; "+v+"++) { var "+g+" = "+T+"["+v+"]; ":t+=" for (var "+g+" in "+c+") { ",t+=" if ("+e.usePattern(ae)+".test("+g+")) { ",s.errorPath=e.util.getPathExpr(e.errorPath,g,e.opts.jsonPointers);var Ee=c+"["+g+"]";s.dataPathArr[E]=g;var Ce=e.validate(s);s.baseId=O,e.util.varOccurences(Ce,b)<2?t+=" "+e.util.varReplace(Ce,b,Ee)+" ":t+=" var "+b+" = "+Ee+"; "+Ce+" ",i&&(t+=" if (!"+h+") break; "),t+=" } ",i&&(t+=" else "+h+" = true; "),t+=" } ",i&&(t+=" if ("+h+") { ",p+="}")}}}return i&&(t+=" "+p+" if ("+d+" == errors) {"),t}),js}var Us,ld;function yx(){return ld||(ld=1,Us=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="errs__"+l,s=e.util.copy(e),p="";s.level++;var h="valid"+s.level;if(t+="var "+d+" = errors;",e.opts.strictKeywords?typeof u=="object"&&Object.keys(u).length>0||u===!1:e.util.schemaHasRules(u,e.RULES.all)){s.schema=u,s.schemaPath=r,s.errSchemaPath=m;var g="key"+l,v="idx"+l,E="i"+l,b="' + "+g+" + '",T=s.dataLevel=e.dataLevel+1,C="data"+T,S="dataProperties"+l,w=e.opts.ownProperties,x=e.baseId;w&&(t+=" var "+S+" = undefined; "),w?t+=" "+S+" = "+S+" || Object.keys("+c+"); for (var "+v+"=0; "+v+"<"+S+".length; "+v+"++) { var "+g+" = "+S+"["+v+"]; ":t+=" for (var "+g+" in "+c+") { ",t+=" var startErrs"+l+" = errors; ";var A=g,k=e.compositeRule;e.compositeRule=s.compositeRule=!0;var R=e.validate(s);s.baseId=x,e.util.varOccurences(R,C)<2?t+=" "+e.util.varReplace(R,C,A)+" ":t+=" var "+C+" = "+A+"; "+R+" ",e.compositeRule=s.compositeRule=k,t+=" if (!"+h+") { for (var "+E+"=startErrs"+l+"; "+E+"<errors; "+E+"++) { vErrors["+E+"].propertyName = "+g+"; } var err = ",e.createErrors!==!1?(t+=" { keyword: 'propertyNames' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { propertyName: '"+b+"' } ",e.opts.messages!==!1&&(t+=" , message: 'property name \\'"+b+"\\' is invalid' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; "),i&&(t+=" break; "),t+=" } }"}return i&&(t+=" "+p+" if ("+d+" == errors) {"),t}),Us}var qs,ud;function vx(){return ud||(ud=1,qs=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="valid"+l,s=e.opts.$data&&u&&u.$data;s&&(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; ");var p="schema"+l;if(!s)if(u.length<e.opts.loopRequired&&e.schema.properties&&Object.keys(e.schema.properties).length){var h=[],g=u;if(g)for(var v,E=-1,b=g.length-1;E<b;){v=g[E+=1];var T=e.schema.properties[v];T&&(e.opts.strictKeywords?typeof T=="object"&&Object.keys(T).length>0||T===!1:e.util.schemaHasRules(T,e.RULES.all))||(h[h.length]=v)}}else var h=u;if(s||h.length){var C=e.errorPath,S=s||h.length>=e.opts.loopRequired,w=e.opts.ownProperties;if(i)if(t+=" var missing"+l+"; ",S){s||(t+=" var "+p+" = validate.schema"+r+"; ");var x="i"+l,A="schema"+l+"["+x+"]",k="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(C,A,e.opts.jsonPointers)),t+=" var "+d+" = true; ",s&&(t+=" if (schema"+l+" === undefined) "+d+" = true; else if (!Array.isArray(schema"+l+")) "+d+" = false; else {"),t+=" for (var "+x+" = 0; "+x+" < "+p+".length; "+x+"++) { "+d+" = "+c+"["+p+"["+x+"]] !== undefined ",w&&(t+=" && Object.prototype.hasOwnProperty.call("+c+", "+p+"["+x+"]) "),t+="; if (!"+d+") break; } ",s&&(t+=" } "),t+=" if (!"+d+") { ";var R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+k+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var I=t;t=R.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+I+"]); ":t+=" validate.errors = ["+I+"]; return false; ":t+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else{t+=" if ( ";var B=h;if(B)for(var F,x=-1,O=B.length-1;x<O;){F=B[x+=1],x&&(t+=" || ");var $=e.util.getProperty(F),N=c+$;t+=" ( ( "+N+" === undefined ",w&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(F)+"') "),t+=") && (missing"+l+" = "+e.util.toQuotedString(e.opts.jsonPointers?F:$)+") ) "}t+=") { ";var A="missing"+l,k="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.opts.jsonPointers?e.util.getPathExpr(C,A,!0):C+" + "+A);var R=R||[];R.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+k+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var I=t;t=R.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+I+"]); ":t+=" validate.errors = ["+I+"]; return false; ":t+=" var err = "+I+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } else { "}else if(S){s||(t+=" var "+p+" = validate.schema"+r+"; ");var x="i"+l,A="schema"+l+"["+x+"]",k="' + "+A+" + '";e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPathExpr(C,A,e.opts.jsonPointers)),s&&(t+=" if ("+p+" && !Array.isArray("+p+")) { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+k+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } else if ("+p+" !== undefined) { "),t+=" for (var "+x+" = 0; "+x+" < "+p+".length; "+x+"++) { if ("+c+"["+p+"["+x+"]] === undefined ",w&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", "+p+"["+x+"]) "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+k+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } } ",s&&(t+=" } ")}else{var _=h;if(_)for(var F,X=-1,L=_.length-1;X<L;){F=_[X+=1];var $=e.util.getProperty(F),k=e.util.escapeQuotes(F),N=c+$;e.opts._errorDataPathProperty&&(e.errorPath=e.util.getPath(C,F,e.opts.jsonPointers)),t+=" if ( "+N+" === undefined ",w&&(t+=" || ! Object.prototype.hasOwnProperty.call("+c+", '"+e.util.escapeQuotes(F)+"') "),t+=") { var err = ",e.createErrors!==!1?(t+=" { keyword: 'required' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { missingProperty: '"+k+"' } ",e.opts.messages!==!1&&(t+=" , message: '",e.opts._errorDataPathProperty?t+="is a required property":t+="should have required property \\'"+k+"\\'",t+="' "),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; } "}}e.errorPath=C}else i&&(t+=" if (true) {");return t}),qs}var Vs,cd;function Sx(){return cd||(cd=1,Vs=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c="data"+(f||""),d="valid"+l,s=e.opts.$data&&u&&u.$data,p;if(s?(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; ",p="schema"+l):p=u,(u||s)&&e.opts.uniqueItems!==!1){s&&(t+=" var "+d+"; if ("+p+" === false || "+p+" === undefined) "+d+" = true; else if (typeof "+p+" != 'boolean') "+d+" = false; else { "),t+=" var i = "+c+".length , "+d+" = true , j; if (i > 1) { ";var h=e.schema.items&&e.schema.items.type,g=Array.isArray(h);if(!h||h=="object"||h=="array"||g&&(h.indexOf("object")>=0||h.indexOf("array")>=0))t+=" outer: for (;i--;) { for (j = i; j--;) { if (equal("+c+"[i], "+c+"[j])) { "+d+" = false; break outer; } } } ";else{t+=" var itemIndices = {}, item; for (;i--;) { var item = "+c+"[i]; ";var v="checkDataType"+(g?"s":"");t+=" if ("+e.util[v](h,"item",e.opts.strictNumbers,!0)+") continue; ",g&&(t+=` if (typeof item == 'string') item = '"' + item; `),t+=" if (typeof itemIndices[item] == 'number') { "+d+" = false; j = itemIndices[item]; break; } itemIndices[item] = i; } "}t+=" } ",s&&(t+=" } "),t+=" if (!"+d+") { ";var E=E||[];E.push(t),t="",e.createErrors!==!1?(t+=" { keyword: 'uniqueItems' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { i: i, j: j } ",e.opts.messages!==!1&&(t+=" , message: 'should NOT have duplicate items (items ## ' + j + ' and ' + i + ' are identical)' "),e.opts.verbose&&(t+=" , schema: ",s?t+="validate.schema"+r:t+=""+u,t+=" , parentSchema: validate.schema"+e.schemaPath+" , data: "+c+" "),t+=" } "):t+=" {} ";var b=t;t=E.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+b+"]); ":t+=" validate.errors = ["+b+"]; return false; ":t+=" var err = "+b+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",t+=" } ",i&&(t+=" else { ")}else i&&(t+=" if (true) { ");return t}),Vs}var $s,fd;function Ex(){return fd||(fd=1,$s={$ref:tx(),allOf:rx(),anyOf:nx(),$comment:sx(),const:ax(),contains:ix(),dependencies:ox(),enum:lx(),format:ux(),if:cx(),items:fx(),maximum:Jm(),minimum:Jm(),maxItems:Qm(),minItems:Qm(),maxLength:ed(),minLength:ed(),maxProperties:rd(),minProperties:rd(),multipleOf:px(),not:mx(),oneOf:dx(),pattern:hx(),properties:gx(),propertyNames:yx(),required:vx(),uniqueItems:Sx(),validate:Bm()}),$s}var Gs,pd;function bx(){if(pd)return Gs;pd=1;var a=Ex(),e=Lr().toHash;return Gs=function(){var o=[{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"]}],t=["type","$comment"],l=["$schema","$id","id","$data","$async","title","description","default","definitions","examples","readOnly","writeOnly","contentMediaType","contentEncoding","additionalItems","then","else"],f=["number","integer","string","array","object","boolean","null"];return o.all=e(t),o.types=e(f),o.forEach(function(u){u.rules=u.rules.map(function(r){var m;if(typeof r=="object"){var i=Object.keys(r)[0];m=r[i],r=i,m.forEach(function(d){t.push(d),o.all[d]=!0})}t.push(r);var c=o.all[r]={keyword:r,code:a[r],implements:m};return c}),o.all.$comment={keyword:"$comment",code:a.$comment},u.type&&(o.types[u.type]=u)}),o.keywords=e(t.concat(l)),o.custom={},o},Gs}var Ws,md;function Cx(){if(md)return Ws;md=1;var a=["multipleOf","maximum","exclusiveMaximum","minimum","exclusiveMinimum","maxLength","minLength","pattern","additionalItems","maxItems","minItems","uniqueItems","maxProperties","minProperties","required","additionalProperties","enum","format","const"];return Ws=function(e,n){for(var o=0;o<n.length;o++){e=JSON.parse(JSON.stringify(e));var t=n[o].split("/"),l=e,f;for(f=1;f<t.length;f++)l=l[t[f]];for(f=0;f<a.length;f++){var u=a[f],r=l[u];r&&(l[u]={anyOf:[r,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]})}}return e},Ws}var zs,dd;function xx(){if(dd)return zs;dd=1;var a=ds().MissingRef;zs=e;function e(n,o,t){var l=this;if(typeof this._opts.loadSchema!="function")throw new Error("options.loadSchema should be a function");typeof o=="function"&&(t=o,o=void 0);var f=u(n).then(function(){var m=l._addSchema(n,void 0,o);return m.validate||r(m)});return t&&f.then(function(m){t(null,m)},t),f;function u(m){var i=m.$schema;return i&&!l.getSchema(i)?e.call(l,{$ref:i},!0):Promise.resolve()}function r(m){try{return l._compile(m)}catch(c){if(c instanceof a)return i(c);throw c}function i(c){var d=c.missingSchema;if(h(d))throw new Error("Schema "+d+" is loaded but "+c.missingRef+" cannot be resolved");var s=l._loadingSchemas[d];return s||(s=l._loadingSchemas[d]=l._opts.loadSchema(d),s.then(p,p)),s.then(function(g){if(!h(d))return u(g).then(function(){h(d)||l.addSchema(g,d,void 0,o)})}).then(function(){return r(m)});function p(){delete l._loadingSchemas[d]}function h(g){return l._refs[g]||l._schemas[g]}}}}return zs}var Hs,hd;function wx(){return hd||(hd=1,Hs=function(e,n,o){var t=" ",l=e.level,f=e.dataLevel,u=e.schema[n],r=e.schemaPath+e.util.getProperty(n),m=e.errSchemaPath+"/"+n,i=!e.opts.allErrors,c,d="data"+(f||""),s="valid"+l,p="errs__"+l,h=e.opts.$data&&u&&u.$data,g;h?(t+=" var schema"+l+" = "+e.util.getData(u.$data,f,e.dataPathArr)+"; ",g="schema"+l):g=u;var v=this,E="definition"+l,b=v.definition,T="",C,S,w,x,A;if(h&&b.$data){A="keywordValidate"+l;var k=b.validateSchema;t+=" var "+E+" = RULES.custom['"+n+"'].definition; var "+A+" = "+E+".validate;"}else{if(x=e.useCustomRule(v,u,e.schema,e),!x)return;g="validate.schema"+r,A=x.code,C=b.compile,S=b.inline,w=b.macro}var R=A+".errors",I="i"+l,B="ruleErr"+l,F=b.async;if(F&&!e.async)throw new Error("async keyword in sync schema");if(S||w||(t+=""+R+" = null;"),t+="var "+p+" = errors;var "+s+";",h&&b.$data&&(T+="}",t+=" if ("+g+" === undefined) { "+s+" = true; } else { ",k&&(T+="}",t+=" "+s+" = "+E+".validateSchema("+g+"); if ("+s+") { ")),S)b.statements?t+=" "+x.validate+" ":t+=" "+s+" = "+x.validate+"; ";else if(w){var O=e.util.copy(e),T="";O.level++;var $="valid"+O.level;O.schema=x.validate,O.schemaPath="";var N=e.compositeRule;e.compositeRule=O.compositeRule=!0;var _=e.validate(O).replace(/validate\.schema/g,A);e.compositeRule=O.compositeRule=N,t+=" "+_}else{var X=X||[];X.push(t),t="",t+=" "+A+".call( ",e.opts.passContext?t+="this":t+="self",C||b.schema===!1?t+=" , "+d+" ":t+=" , "+g+" , "+d+" , validate.schema"+e.schemaPath+" ",t+=" , (dataPath || '')",e.errorPath!='""'&&(t+=" + "+e.errorPath);var L=f?"data"+(f-1||""):"parentData",K=f?e.dataPathArr[f]:"parentDataProperty";t+=" , "+L+" , "+K+" , rootData ) ";var J=t;t=X.pop(),b.errors===!1?(t+=" "+s+" = ",F&&(t+="await "),t+=""+J+"; "):F?(R="customErrors"+l,t+=" var "+R+" = null; try { "+s+" = await "+J+"; } catch (e) { "+s+" = false; if (e instanceof ValidationError) "+R+" = e.errors; else throw e; } "):t+=" "+R+" = null; "+s+" = "+J+"; "}if(b.modifying&&(t+=" if ("+L+") "+d+" = "+L+"["+K+"];"),t+=""+T,b.valid)i&&(t+=" if (true) { ");else{t+=" if ( ",b.valid===void 0?(t+=" !",w?t+=""+$:t+=""+s):t+=" "+!b.valid+" ",t+=") { ",c=v.keyword;var X=X||[];X.push(t),t="";var X=X||[];X.push(t),t="",e.createErrors!==!1?(t+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ";var ge=t;t=X.pop(),!e.compositeRule&&i?e.async?t+=" throw new ValidationError(["+ge+"]); ":t+=" validate.errors = ["+ge+"]; return false; ":t+=" var err = "+ge+"; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ";var ae=t;t=X.pop(),S?b.errors?b.errors!="full"&&(t+=" for (var "+I+"="+p+"; "+I+"<errors; "+I+"++) { var "+B+" = vErrors["+I+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+m+'"; } ',e.opts.verbose&&(t+=" "+B+".schema = "+g+"; "+B+".data = "+d+"; "),t+=" } "):b.errors===!1?t+=" "+ae+" ":(t+=" if ("+p+" == errors) { "+ae+" } else { for (var "+I+"="+p+"; "+I+"<errors; "+I+"++) { var "+B+" = vErrors["+I+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; if ("+B+".schemaPath === undefined) { "+B+'.schemaPath = "'+m+'"; } ',e.opts.verbose&&(t+=" "+B+".schema = "+g+"; "+B+".data = "+d+"; "),t+=" } } "):w?(t+=" var err = ",e.createErrors!==!1?(t+=" { keyword: '"+(c||"custom")+"' , dataPath: (dataPath || '') + "+e.errorPath+" , schemaPath: "+e.util.toQuotedString(m)+" , params: { keyword: '"+v.keyword+"' } ",e.opts.messages!==!1&&(t+=` , message: 'should pass "`+v.keyword+`" keyword validation' `),e.opts.verbose&&(t+=" , schema: validate.schema"+r+" , parentSchema: validate.schema"+e.schemaPath+" , data: "+d+" "),t+=" } "):t+=" {} ",t+="; if (vErrors === null) vErrors = [err]; else vErrors.push(err); errors++; ",!e.compositeRule&&i&&(e.async?t+=" throw new ValidationError(vErrors); ":t+=" validate.errors = vErrors; return false; ")):b.errors===!1?t+=" "+ae+" ":(t+=" if (Array.isArray("+R+")) { if (vErrors === null) vErrors = "+R+"; else vErrors = vErrors.concat("+R+"); errors = vErrors.length; for (var "+I+"="+p+"; "+I+"<errors; "+I+"++) { var "+B+" = vErrors["+I+"]; if ("+B+".dataPath === undefined) "+B+".dataPath = (dataPath || '') + "+e.errorPath+"; "+B+'.schemaPath = "'+m+'"; ',e.opts.verbose&&(t+=" "+B+".schema = "+g+"; "+B+".data = "+d+"; "),t+=" } } else { "+ae+" } "),t+=" } ",i&&(t+=" else { ")}return t}),Hs}var Ax="http://json-schema.org/draft-07/schema#",Tx="http://json-schema.org/draft-07/schema#",kx="Core schema meta-schema",Dx={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:[]}},Px=["object","boolean"],Ix={$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:"#"}},gd={$schema:Ax,$id:Tx,title:kx,definitions:Dx,type:Px,properties:Ix,default:!0},Ks,yd;function Fx(){if(yd)return Ks;yd=1;var a=gd;return Ks={$id:"https://github.com/ajv-validator/ajv/blob/master/lib/definition_schema.js",definitions:{simpleTypes:a.definitions.simpleTypes},type:"object",dependencies:{schema:["validate"],$data:["validate"],statements:["inline"],valid:{not:{required:["macro"]}}},properties:{type:a.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"}]}}},Ks}var Xs,vd;function Rx(){if(vd)return Xs;vd=1;var a=/^[a-z_$][a-z0-9_$-]*$/i,e=wx(),n=Fx();Xs={add:o,get:t,remove:l,validate:f};function o(u,r){var m=this.RULES;if(m.keywords[u])throw new Error("Keyword "+u+" is already defined");if(!a.test(u))throw new Error("Keyword "+u+" is not a valid identifier");if(r){this.validateKeyword(r,!0);var i=r.type;if(Array.isArray(i))for(var c=0;c<i.length;c++)s(u,i[c],r);else s(u,i,r);var d=r.metaSchema;d&&(r.$data&&this._opts.$data&&(d={anyOf:[d,{$ref:"https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#"}]}),r.validateSchema=this.compile(d,!0))}m.keywords[u]=m.all[u]=!0;function s(p,h,g){for(var v,E=0;E<m.length;E++){var b=m[E];if(b.type==h){v=b;break}}v||(v={type:h,rules:[]},m.push(v));var T={keyword:p,definition:g,custom:!0,code:e,implements:g.implements};v.rules.push(T),m.custom[p]=T}return this}function t(u){var r=this.RULES.custom[u];return r?r.definition:this.RULES.keywords[u]||!1}function l(u){var r=this.RULES;delete r.keywords[u],delete r.all[u],delete r.custom[u];for(var m=0;m<r.length;m++)for(var i=r[m].rules,c=0;c<i.length;c++)if(i[c].keyword==u){i.splice(c,1);break}return this}function f(u,r){f.errors=null;var m=this._validateKeyword=this._validateKeyword||this.compile(n,!0);if(m(u))return!0;if(f.errors=m.errors,r)throw new Error("custom keyword definition is invalid: "+this.errorsText(m.errors));return!1}return Xs}var _x="http://json-schema.org/draft-07/schema#",Bx="https://raw.githubusercontent.com/ajv-validator/ajv/master/lib/refs/data.json#",Lx="Meta-schema for $data reference (JSON Schema extension proposal)",Ox="object",Nx=["$data"],Mx={$data:{type:"string",anyOf:[{format:"relative-json-pointer"},{format:"json-pointer"}]}},jx=!1,Ux={$schema:_x,$id:Bx,description:Lx,type:Ox,required:Nx,properties:Mx,additionalProperties:jx},Js,Sd;function Ed(){if(Sd)return Js;Sd=1;var a=QC(),e=ps(),n=ZC(),o=km(),t=Rm(),l=ex(),f=bx(),u=Cx(),r=Lr();Js=p,p.prototype.validate=h,p.prototype.compile=g,p.prototype.addSchema=v,p.prototype.addMetaSchema=E,p.prototype.validateSchema=b,p.prototype.getSchema=C,p.prototype.removeSchema=x,p.prototype.addFormat=N,p.prototype.errorsText=$,p.prototype._addSchema=k,p.prototype._compile=R,p.prototype.compileAsync=xx();var m=Rx();p.prototype.addKeyword=m.add,p.prototype.getKeyword=m.get,p.prototype.removeKeyword=m.remove,p.prototype.validateKeyword=m.validate;var i=ds();p.ValidationError=i.Validation,p.MissingRefError=i.MissingRef,p.$dataMetaSchema=u;var c="http://json-schema.org/draft-07/schema",d=["removeAdditional","useDefaults","coerceTypes","strictDefaults"],s=["/properties"];function p(Z){if(!(this instanceof p))return new p(Z);Z=this._opts=r.copy(Z)||{},ae(this),this._schemas={},this._refs={},this._fragments={},this._formats=l(Z.format),this._cache=Z.cache||new n,this._loadingSchemas={},this._compilations=[],this.RULES=f(),this._getId=I(Z),Z.loopRequired=Z.loopRequired||1/0,Z.errorDataPath=="property"&&(Z._errorDataPathProperty=!0),Z.serialize===void 0&&(Z.serialize=t),this._metaOpts=ge(this),Z.formats&&L(this),Z.keywords&&K(this),_(this),typeof Z.meta=="object"&&this.addMetaSchema(Z.meta),Z.nullable&&this.addKeyword("nullable",{metaSchema:{type:"boolean"}}),X(this)}function h(Z,P){var H;if(typeof Z=="string"){if(H=this.getSchema(Z),!H)throw new Error('no schema with key or ref "'+Z+'"')}else{var fe=this._addSchema(Z);H=fe.validate||this._compile(fe)}var ce=H(P);return H.$async!==!0&&(this.errors=H.errors),ce}function g(Z,P){var H=this._addSchema(Z,void 0,P);return H.validate||this._compile(H)}function v(Z,P,H,fe){if(Array.isArray(Z)){for(var ce=0;ce<Z.length;ce++)this.addSchema(Z[ce],void 0,H,fe);return this}var ie=this._getId(Z);if(ie!==void 0&&typeof ie!="string")throw new Error("schema id must be string");return P=e.normalizeId(P||ie),J(this,P),this._schemas[P]=this._addSchema(Z,H,fe,!0),this}function E(Z,P,H){return this.addSchema(Z,P,H,!0),this}function b(Z,P){var H=Z.$schema;if(H!==void 0&&typeof H!="string")throw new Error("$schema must be a string");if(H=H||this._opts.defaultMeta||T(this),!H)return this.logger.warn("meta-schema not available"),this.errors=null,!0;var fe=this.validate(H,Z);if(!fe&&P){var ce="schema is invalid: "+this.errorsText();if(this._opts.validateSchema=="log")this.logger.error(ce);else throw new Error(ce)}return fe}function T(Z){var P=Z._opts.meta;return Z._opts.defaultMeta=typeof P=="object"?Z._getId(P)||P:Z.getSchema(c)?c:void 0,Z._opts.defaultMeta}function C(Z){var P=w(this,Z);switch(typeof P){case"object":return P.validate||this._compile(P);case"string":return this.getSchema(P);case"undefined":return S(this,Z)}}function S(Z,P){var H=e.schema.call(Z,{schema:{}},P);if(H){var fe=H.schema,ce=H.root,ie=H.baseId,he=a.call(Z,fe,ce,void 0,ie);return Z._fragments[P]=new o({ref:P,fragment:!0,schema:fe,root:ce,baseId:ie,validate:he}),he}}function w(Z,P){return P=e.normalizeId(P),Z._schemas[P]||Z._refs[P]||Z._fragments[P]}function x(Z){if(Z instanceof RegExp)return A(this,this._schemas,Z),A(this,this._refs,Z),this;switch(typeof Z){case"undefined":return A(this,this._schemas),A(this,this._refs),this._cache.clear(),this;case"string":var P=w(this,Z);return P&&this._cache.del(P.cacheKey),delete this._schemas[Z],delete this._refs[Z],this;case"object":var H=this._opts.serialize,fe=H?H(Z):Z;this._cache.del(fe);var ce=this._getId(Z);ce&&(ce=e.normalizeId(ce),delete this._schemas[ce],delete this._refs[ce])}return this}function A(Z,P,H){for(var fe in P){var ce=P[fe];!ce.meta&&(!H||H.test(fe))&&(Z._cache.del(ce.cacheKey),delete P[fe])}}function k(Z,P,H,fe){if(typeof Z!="object"&&typeof Z!="boolean")throw new Error("schema should be object or boolean");var ce=this._opts.serialize,ie=ce?ce(Z):Z,he=this._cache.get(ie);if(he)return he;fe=fe||this._opts.addUsedSchema!==!1;var Ee=e.normalizeId(this._getId(Z));Ee&&fe&&J(this,Ee);var Ce=this._opts.validateSchema!==!1&&!P,Ae;Ce&&!(Ae=Ee&&Ee==e.normalizeId(Z.$schema))&&this.validateSchema(Z,!0);var ee=e.ids.call(this,Z),ne=new o({id:Ee,schema:Z,localRefs:ee,cacheKey:ie,meta:H});return Ee[0]!="#"&&fe&&(this._refs[Ee]=ne),this._cache.put(ie,ne),Ce&&Ae&&this.validateSchema(Z,!0),ne}function R(Z,P){if(Z.compiling)return Z.validate=ce,ce.schema=Z.schema,ce.errors=null,ce.root=P||ce,Z.schema.$async===!0&&(ce.$async=!0),ce;Z.compiling=!0;var H;Z.meta&&(H=this._opts,this._opts=this._metaOpts);var fe;try{fe=a.call(this,Z.schema,P,Z.localRefs)}catch(ie){throw delete Z.validate,ie}finally{Z.compiling=!1,Z.meta&&(this._opts=H)}return Z.validate=fe,Z.refs=fe.refs,Z.refVal=fe.refVal,Z.root=fe.root,fe;function ce(){var ie=Z.validate,he=ie.apply(this,arguments);return ce.errors=ie.errors,he}}function I(Z){switch(Z.schemaId){case"auto":return O;case"id":return B;default:return F}}function B(Z){return Z.$id&&this.logger.warn("schema $id ignored",Z.$id),Z.id}function F(Z){return Z.id&&this.logger.warn("schema id ignored",Z.id),Z.$id}function O(Z){if(Z.$id&&Z.id&&Z.$id!=Z.id)throw new Error("schema $id is different from id");return Z.$id||Z.id}function $(Z,P){if(Z=Z||this.errors,!Z)return"No errors";P=P||{};for(var H=P.separator===void 0?", ":P.separator,fe=P.dataVar===void 0?"data":P.dataVar,ce="",ie=0;ie<Z.length;ie++){var he=Z[ie];he&&(ce+=fe+he.dataPath+" "+he.message+H)}return ce.slice(0,-H.length)}function N(Z,P){return typeof P=="string"&&(P=new RegExp(P)),this._formats[Z]=P,this}function _(Z){var P;if(Z._opts.$data&&(P=Ux,Z.addMetaSchema(P,P.$id,!0)),Z._opts.meta!==!1){var H=gd;Z._opts.$data&&(H=u(H,s)),Z.addMetaSchema(H,c,!0),Z._refs["http://json-schema.org/schema"]=c}}function X(Z){var P=Z._opts.schemas;if(P)if(Array.isArray(P))Z.addSchema(P);else for(var H in P)Z.addSchema(P[H],H)}function L(Z){for(var P in Z._opts.formats){var H=Z._opts.formats[P];Z.addFormat(P,H)}}function K(Z){for(var P in Z._opts.keywords){var H=Z._opts.keywords[P];Z.addKeyword(P,H)}}function J(Z,P){if(Z._schemas[P]||Z._refs[P])throw new Error('schema with key or id "'+P+'" already exists')}function ge(Z){for(var P=r.copy(Z._opts),H=0;H<d.length;H++)delete P[d[H]];return P}function ae(Z){var P=Z._opts.logger;if(P===!1)Z.logger={log:ke,warn:ke,error:ke};else{if(P===void 0&&(P=console),!(typeof P=="object"&&P.log&&P.warn&&P.error))throw new Error("logger must implement log, warn and error methods");Z.logger=P}}function ke(){}return Js}var qx={AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},Vx={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,JSON:!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},$x={Array:!1,ArrayBuffer:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},Gx={Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},Wx={Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakSet:!1},zx={AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,constructor:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,hasOwnProperty:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,isFinite:!1,isNaN:!1,isPrototypeOf:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,propertyIsEnumerable:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,toLocaleString:!1,toString:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,valueOf:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},Hx={AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AnalyserNode:!1,Animation:!1,AnimationEffectReadOnly:!1,AnimationEffectTiming:!1,AnimationEffectTimingReadOnly:!1,AnimationEvent:!1,AnimationPlaybackEvent:!1,AnimationTimeline:!1,applicationCache:!1,ApplicationCache:!1,ApplicationCacheErrorEvent:!1,atob:!1,Attr:!1,Audio:!1,AudioBuffer:!1,AudioBufferSourceNode:!1,AudioContext:!1,AudioDestinationNode:!1,AudioListener:!1,AudioNode:!1,AudioParam:!1,AudioProcessingEvent:!1,AudioScheduledSourceNode:!1,AudioWorkletGlobalScope:!1,AudioWorkletNode:!1,AudioWorkletProcessor:!1,BarProp:!1,BaseAudioContext:!1,BatteryManager:!1,BeforeUnloadEvent:!1,BiquadFilterNode:!1,Blob:!1,BlobEvent:!1,blur:!1,BroadcastChannel:!1,btoa:!1,BudgetService:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,cancelIdleCallback:!1,CanvasCaptureMediaStreamTrack:!1,CanvasGradient:!1,CanvasPattern:!1,CanvasRenderingContext2D:!1,ChannelMergerNode:!1,ChannelSplitterNode:!1,CharacterData:!1,clearInterval:!1,clearTimeout:!1,clientInformation:!1,ClipboardEvent:!1,ClipboardItem:!1,close:!1,closed:!1,CloseEvent:!1,Comment:!1,CompositionEvent:!1,CompressionStream:!1,confirm:!1,console:!1,ConstantSourceNode:!1,ConvolverNode:!1,CountQueuingStrategy:!1,createImageBitmap:!1,Credential:!1,CredentialsContainer:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSS:!1,CSSConditionRule:!1,CSSFontFaceRule:!1,CSSGroupingRule:!1,CSSImportRule:!1,CSSKeyframeRule:!1,CSSKeyframesRule:!1,CSSMatrixComponent:!1,CSSMediaRule:!1,CSSNamespaceRule:!1,CSSPageRule:!1,CSSPerspective:!1,CSSRotate:!1,CSSRule:!1,CSSRuleList:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleDeclaration:!1,CSSStyleRule:!1,CSSStyleSheet:!1,CSSSupportsRule:!1,CSSTransformValue:!1,CSSTranslate:!1,CustomElementRegistry:!1,customElements:!1,CustomEvent:!1,DataTransfer:!1,DataTransferItem:!1,DataTransferItemList:!1,DecompressionStream:!1,defaultstatus:!1,defaultStatus:!1,DelayNode:!1,DeviceMotionEvent:!1,DeviceOrientationEvent:!1,devicePixelRatio:!1,dispatchEvent:!1,document:!1,Document:!1,DocumentFragment:!1,DocumentType:!1,DOMError:!1,DOMException:!1,DOMImplementation:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMParser:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectList:!1,DOMRectReadOnly:!1,DOMStringList:!1,DOMStringMap:!1,DOMTokenList:!1,DragEvent:!1,DynamicsCompressorNode:!1,Element:!1,ErrorEvent:!1,event:!1,Event:!1,EventSource:!1,EventTarget:!1,external:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,find:!1,focus:!1,FocusEvent:!1,FontFace:!1,FontFaceSetLoadEvent:!1,FormData:!1,FormDataEvent:!1,frameElement:!1,frames:!1,GainNode:!1,Gamepad:!1,GamepadButton:!1,GamepadEvent:!1,getComputedStyle:!1,getSelection:!1,HashChangeEvent:!1,Headers:!1,history:!1,History:!1,HTMLAllCollection:!1,HTMLAnchorElement:!1,HTMLAreaElement:!1,HTMLAudioElement:!1,HTMLBaseElement:!1,HTMLBodyElement:!1,HTMLBRElement:!1,HTMLButtonElement:!1,HTMLCanvasElement:!1,HTMLCollection:!1,HTMLContentElement:!1,HTMLDataElement:!1,HTMLDataListElement:!1,HTMLDetailsElement:!1,HTMLDialogElement:!1,HTMLDirectoryElement:!1,HTMLDivElement:!1,HTMLDListElement:!1,HTMLDocument:!1,HTMLElement:!1,HTMLEmbedElement:!1,HTMLFieldSetElement:!1,HTMLFontElement:!1,HTMLFormControlsCollection:!1,HTMLFormElement:!1,HTMLFrameElement:!1,HTMLFrameSetElement:!1,HTMLHeadElement:!1,HTMLHeadingElement:!1,HTMLHRElement:!1,HTMLHtmlElement:!1,HTMLIFrameElement:!1,HTMLImageElement:!1,HTMLInputElement:!1,HTMLLabelElement:!1,HTMLLegendElement:!1,HTMLLIElement:!1,HTMLLinkElement:!1,HTMLMapElement:!1,HTMLMarqueeElement:!1,HTMLMediaElement:!1,HTMLMenuElement:!1,HTMLMetaElement:!1,HTMLMeterElement:!1,HTMLModElement:!1,HTMLObjectElement:!1,HTMLOListElement:!1,HTMLOptGroupElement:!1,HTMLOptionElement:!1,HTMLOptionsCollection:!1,HTMLOutputElement:!1,HTMLParagraphElement:!1,HTMLParamElement:!1,HTMLPictureElement:!1,HTMLPreElement:!1,HTMLProgressElement:!1,HTMLQuoteElement:!1,HTMLScriptElement:!1,HTMLSelectElement:!1,HTMLShadowElement:!1,HTMLSlotElement:!1,HTMLSourceElement:!1,HTMLSpanElement:!1,HTMLStyleElement:!1,HTMLTableCaptionElement:!1,HTMLTableCellElement:!1,HTMLTableColElement:!1,HTMLTableElement:!1,HTMLTableRowElement:!1,HTMLTableSectionElement:!1,HTMLTemplateElement:!1,HTMLTextAreaElement:!1,HTMLTimeElement:!1,HTMLTitleElement:!1,HTMLTrackElement:!1,HTMLUListElement:!1,HTMLUnknownElement:!1,HTMLVideoElement:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDeadline:!1,IIRFilterNode:!1,Image:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageCapture:!1,ImageData:!1,indexedDB:!1,innerHeight:!1,innerWidth:!1,InputEvent:!1,IntersectionObserver:!1,IntersectionObserverEntry:!1,Intl:!1,isSecureContext:!1,KeyboardEvent:!1,KeyframeEffect:!1,KeyframeEffectReadOnly:!1,length:!1,localStorage:!1,location:!0,Location:!1,locationbar:!1,matchMedia:!1,MediaDeviceInfo:!1,MediaDevices:!1,MediaElementAudioSourceNode:!1,MediaEncryptedEvent:!1,MediaError:!1,MediaKeyMessageEvent:!1,MediaKeySession:!1,MediaKeyStatusMap:!1,MediaKeySystemAccess:!1,MediaList:!1,MediaMetadata:!1,MediaQueryList:!1,MediaQueryListEvent:!1,MediaRecorder:!1,MediaSettingsRange:!1,MediaSource:!1,MediaStream:!1,MediaStreamAudioDestinationNode:!1,MediaStreamAudioSourceNode:!1,MediaStreamConstraints:!1,MediaStreamEvent:!1,MediaStreamTrack:!1,MediaStreamTrackEvent:!1,menubar:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,MIDIAccess:!1,MIDIConnectionEvent:!1,MIDIInput:!1,MIDIInputMap:!1,MIDIMessageEvent:!1,MIDIOutput:!1,MIDIOutputMap:!1,MIDIPort:!1,MimeType:!1,MimeTypeArray:!1,MouseEvent:!1,moveBy:!1,moveTo:!1,MutationEvent:!1,MutationObserver:!1,MutationRecord:!1,name:!1,NamedNodeMap:!1,NavigationPreloadManager:!1,navigator:!1,Navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Node:!1,NodeFilter:!1,NodeIterator:!1,NodeList:!1,Notification:!1,OfflineAudioCompletionEvent:!1,OfflineAudioContext:!1,offscreenBuffering:!1,OffscreenCanvas:!0,OffscreenCanvasRenderingContext2D:!1,onabort:!0,onafterprint:!0,onanimationend:!0,onanimationiteration:!0,onanimationstart:!0,onappinstalled:!0,onauxclick:!0,onbeforeinstallprompt:!0,onbeforeprint:!0,onbeforeunload:!0,onblur:!0,oncancel:!0,oncanplay:!0,oncanplaythrough:!0,onchange:!0,onclick:!0,onclose:!0,oncontextmenu:!0,oncuechange:!0,ondblclick:!0,ondevicemotion:!0,ondeviceorientation:!0,ondeviceorientationabsolute:!0,ondrag:!0,ondragend:!0,ondragenter:!0,ondragleave:!0,ondragover:!0,ondragstart:!0,ondrop:!0,ondurationchange:!0,onemptied:!0,onended:!0,onerror:!0,onfocus:!0,ongotpointercapture:!0,onhashchange:!0,oninput:!0,oninvalid:!0,onkeydown:!0,onkeypress:!0,onkeyup:!0,onlanguagechange:!0,onload:!0,onloadeddata:!0,onloadedmetadata:!0,onloadstart:!0,onlostpointercapture:!0,onmessage:!0,onmessageerror:!0,onmousedown:!0,onmouseenter:!0,onmouseleave:!0,onmousemove:!0,onmouseout:!0,onmouseover:!0,onmouseup:!0,onmousewheel:!0,onoffline:!0,ononline:!0,onpagehide:!0,onpageshow:!0,onpause:!0,onplay:!0,onplaying:!0,onpointercancel:!0,onpointerdown:!0,onpointerenter:!0,onpointerleave:!0,onpointermove:!0,onpointerout:!0,onpointerover:!0,onpointerup:!0,onpopstate:!0,onprogress:!0,onratechange:!0,onrejectionhandled:!0,onreset:!0,onresize:!0,onscroll:!0,onsearch:!0,onseeked:!0,onseeking:!0,onselect:!0,onstalled:!0,onstorage:!0,onsubmit:!0,onsuspend:!0,ontimeupdate:!0,ontoggle:!0,ontransitionend:!0,onunhandledrejection:!0,onunload:!0,onvolumechange:!0,onwaiting:!0,onwheel:!0,open:!1,openDatabase:!1,opener:!1,Option:!1,origin:!1,OscillatorNode:!1,outerHeight:!1,outerWidth:!1,OverconstrainedError:!1,PageTransitionEvent:!1,pageXOffset:!1,pageYOffset:!1,PannerNode:!1,parent:!1,Path2D:!1,PaymentAddress:!1,PaymentRequest:!1,PaymentRequestUpdateEvent:!1,PaymentResponse:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceLongTaskTiming:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceNavigationTiming:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformancePaintTiming:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,PeriodicWave:!1,Permissions:!1,PermissionStatus:!1,personalbar:!1,PhotoCapabilities:!1,Plugin:!1,PluginArray:!1,PointerEvent:!1,PopStateEvent:!1,postMessage:!1,Presentation:!1,PresentationAvailability:!1,PresentationConnection:!1,PresentationConnectionAvailableEvent:!1,PresentationConnectionCloseEvent:!1,PresentationConnectionList:!1,PresentationReceiver:!1,PresentationRequest:!1,print:!1,ProcessingInstruction:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,RadioNodeList:!1,Range:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registerProcessor:!1,RemotePlayback:!1,removeEventListener:!1,reportError:!1,Request:!1,requestAnimationFrame:!1,requestIdleCallback:!1,resizeBy:!1,ResizeObserver:!1,ResizeObserverEntry:!1,resizeTo:!1,Response:!1,RTCCertificate:!1,RTCDataChannel:!1,RTCDataChannelEvent:!1,RTCDtlsTransport:!1,RTCIceCandidate:!1,RTCIceGatherer:!1,RTCIceTransport:!1,RTCPeerConnection:!1,RTCPeerConnectionIceEvent:!1,RTCRtpContributingSource:!1,RTCRtpReceiver:!1,RTCRtpSender:!1,RTCSctpTransport:!1,RTCSessionDescription:!1,RTCStatsReport:!1,RTCTrackEvent:!1,screen:!1,Screen:!1,screenLeft:!1,ScreenOrientation:!1,screenTop:!1,screenX:!1,screenY:!1,ScriptProcessorNode:!1,scroll:!1,scrollbars:!1,scrollBy:!1,scrollTo:!1,scrollX:!1,scrollY:!1,SecurityPolicyViolationEvent:!1,Selection:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,ShadowRoot:!1,SharedWorker:!1,SourceBuffer:!1,SourceBufferList:!1,speechSynthesis:!1,SpeechSynthesisEvent:!1,SpeechSynthesisUtterance:!1,StaticRange:!1,status:!1,statusbar:!1,StereoPannerNode:!1,stop:!1,Storage:!1,StorageEvent:!1,StorageManager:!1,structuredClone:!1,styleMedia:!1,StyleSheet:!1,StyleSheetList:!1,SubmitEvent:!1,SubtleCrypto:!1,SVGAElement:!1,SVGAngle:!1,SVGAnimatedAngle:!1,SVGAnimatedBoolean:!1,SVGAnimatedEnumeration:!1,SVGAnimatedInteger:!1,SVGAnimatedLength:!1,SVGAnimatedLengthList:!1,SVGAnimatedNumber:!1,SVGAnimatedNumberList:!1,SVGAnimatedPreserveAspectRatio:!1,SVGAnimatedRect:!1,SVGAnimatedString:!1,SVGAnimatedTransformList:!1,SVGAnimateElement:!1,SVGAnimateMotionElement:!1,SVGAnimateTransformElement:!1,SVGAnimationElement:!1,SVGCircleElement:!1,SVGClipPathElement:!1,SVGComponentTransferFunctionElement:!1,SVGDefsElement:!1,SVGDescElement:!1,SVGDiscardElement:!1,SVGElement:!1,SVGEllipseElement:!1,SVGFEBlendElement:!1,SVGFEColorMatrixElement:!1,SVGFEComponentTransferElement:!1,SVGFECompositeElement:!1,SVGFEConvolveMatrixElement:!1,SVGFEDiffuseLightingElement:!1,SVGFEDisplacementMapElement:!1,SVGFEDistantLightElement:!1,SVGFEDropShadowElement:!1,SVGFEFloodElement:!1,SVGFEFuncAElement:!1,SVGFEFuncBElement:!1,SVGFEFuncGElement:!1,SVGFEFuncRElement:!1,SVGFEGaussianBlurElement:!1,SVGFEImageElement:!1,SVGFEMergeElement:!1,SVGFEMergeNodeElement:!1,SVGFEMorphologyElement:!1,SVGFEOffsetElement:!1,SVGFEPointLightElement:!1,SVGFESpecularLightingElement:!1,SVGFESpotLightElement:!1,SVGFETileElement:!1,SVGFETurbulenceElement:!1,SVGFilterElement:!1,SVGForeignObjectElement:!1,SVGGElement:!1,SVGGeometryElement:!1,SVGGradientElement:!1,SVGGraphicsElement:!1,SVGImageElement:!1,SVGLength:!1,SVGLengthList:!1,SVGLinearGradientElement:!1,SVGLineElement:!1,SVGMarkerElement:!1,SVGMaskElement:!1,SVGMatrix:!1,SVGMetadataElement:!1,SVGMPathElement:!1,SVGNumber:!1,SVGNumberList:!1,SVGPathElement:!1,SVGPatternElement:!1,SVGPoint:!1,SVGPointList:!1,SVGPolygonElement:!1,SVGPolylineElement:!1,SVGPreserveAspectRatio:!1,SVGRadialGradientElement:!1,SVGRect:!1,SVGRectElement:!1,SVGScriptElement:!1,SVGSetElement:!1,SVGStopElement:!1,SVGStringList:!1,SVGStyleElement:!1,SVGSVGElement:!1,SVGSwitchElement:!1,SVGSymbolElement:!1,SVGTextContentElement:!1,SVGTextElement:!1,SVGTextPathElement:!1,SVGTextPositioningElement:!1,SVGTitleElement:!1,SVGTransform:!1,SVGTransformList:!1,SVGTSpanElement:!1,SVGUnitTypes:!1,SVGUseElement:!1,SVGViewElement:!1,TaskAttributionTiming:!1,Text:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextEvent:!1,TextMetrics:!1,TextTrack:!1,TextTrackCue:!1,TextTrackCueList:!1,TextTrackList:!1,TimeRanges:!1,ToggleEvent:!1,toolbar:!1,top:!1,Touch:!1,TouchEvent:!1,TouchList:!1,TrackEvent:!1,TransformStream:!1,TransformStreamDefaultController:!1,TransitionEvent:!1,TreeWalker:!1,UIEvent:!1,URL:!1,URLSearchParams:!1,ValidityState:!1,visualViewport:!1,VisualViewport:!1,VTTCue:!1,WaveShaperNode:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WheelEvent:!1,window:!1,Window:!1,Worker:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLDocument:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1,XMLSerializer:!1,XPathEvaluator:!1,XPathExpression:!1,XPathResult:!1,XRAnchor:!1,XRBoundedReferenceSpace:!1,XRCPUDepthInformation:!1,XRDepthInformation:!1,XRFrame:!1,XRInputSource:!1,XRInputSourceArray:!1,XRInputSourceEvent:!1,XRInputSourcesChangeEvent:!1,XRPose:!1,XRReferenceSpace:!1,XRReferenceSpaceEvent:!1,XRRenderState:!1,XRRigidTransform:!1,XRSession:!1,XRSessionEvent:!1,XRSpace:!1,XRSystem:!1,XRView:!1,XRViewerPose:!1,XRViewport:!1,XRWebGLBinding:!1,XRWebGLDepthInformation:!1,XRWebGLLayer:!1,XSLTProcessor:!1},Kx={addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,clearInterval:!1,clearTimeout:!1,close:!0,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,ErrorEvent:!1,Event:!1,fetch:!1,File:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!0,indexedDB:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onlanguagechange:!0,onmessage:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,reportError:!1,Request:!1,Response:!1,self:!0,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,Worker:!1,WorkerGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1},Xx={__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},Jx={AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},Yx={exports:!0,global:!1,module:!1,require:!1},Qx={define:!1,require:!1},Zx={after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},e1={afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},t1={afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fdescribe:!1,fit:!1,it:!1,jest:!1,pit:!1,require:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},r1={asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},n1={console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},s1={emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},a1={defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},i1={__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},o1={ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},l1={$:!1,jQuery:!1},u1={YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1},c1={cat:!1,cd:!1,chmod:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,exec:!1,exit:!1,find:!1,grep:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,target:!1,tempdir:!1,test:!1,touch:!1,which:!1},f1={$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},p1={$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},m1={_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},d1={$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},h1={addEventListener:!1,applicationCache:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,close:!0,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,ErrorEvent:!1,Event:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,File:!1,FileReaderSync:!1,FormData:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageData:!1,importScripts:!1,indexedDB:!1,location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Notification:!1,onclose:!0,onconnect:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceNavigation:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceTiming:!1,postMessage:!0,Promise:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registration:!1,removeEventListener:!1,Request:!1,Response:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerMessageEvent:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WindowClient:!1,Worker:!1,WorkerGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1},g1={advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},y1={andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},v1={$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},S1={browser:!1,chrome:!1,opr:!1},E1={cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},b1={$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1},C1={builtin:qx,es5:Vx,es2015:$x,es2017:Gx,es2020:Wx,es2021:zx,browser:Hx,worker:Kx,node:Xx,nodeBuiltin:Jx,commonjs:Yx,amd:Qx,mocha:Zx,jasmine:e1,jest:t1,qunit:r1,phantomjs:n1,couch:s1,rhino:a1,nashorn:i1,wsh:o1,jquery:l1,yui:u1,shelljs:c1,prototypejs:f1,meteor:p1,mongo:m1,applescript:d1,serviceworker:h1,atomtest:g1,embertest:y1,protractor:v1,"shared-node-browser":{AbortController:!1,AbortSignal:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,clearInterval:!1,clearTimeout:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DOMException:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,Headers:!1,Intl:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,setInterval:!1,setTimeout:!1,structuredClone:!1,SubtleCrypto:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLSearchParams:!1,WebAssembly:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},webextensions:S1,greasemonkey:E1,devtools:b1},Ys,bd;function x1(){return bd||(bd=1,Ys=C1),Ys}var Cd;function w1(){if(Cd)return hn;Cd=1,Object.defineProperty(hn,"__esModule",{value:!0});var a=KC,e=pn,n=Ed(),o=x1();function t(Ee){return Ee&&typeof Ee=="object"&&"default"in Ee?Ee:{default:Ee}}var l=t(a),f=t(e),u=t(n),r=t(o);const m=["off","warn","error"],i=m.reduce((Ee,Ce,Ae)=>(Ee[Ce]=Ae,Ee),{}),c=new Set([0,1,2,"off","warn","error"]);function d(Ee){const Ce=Array.isArray(Ee)?Ee[0]:Ee;return Ce===0||Ce===1||Ce===2?Ce:typeof Ce=="string"&&i[Ce.toLowerCase()]||0}function s(Ee){Ee.rules&&Object.keys(Ee.rules).forEach(Ce=>{const Ae=Ee.rules[Ce];typeof Ae=="number"?Ee.rules[Ce]=m[Ae]||m[0]:Array.isArray(Ae)&&typeof Ae[0]=="number"&&(Ae[0]=m[Ae[0]]||m[0])})}function p(Ee){return d(Ee)===2}function h(Ee){let Ce=Array.isArray(Ee)?Ee[0]:Ee;return typeof Ce=="string"&&(Ce=Ce.toLowerCase()),c.has(Ce)}function g(Ee){return Object.keys(Ee).every(Ce=>h(Ee[Ce]))}function v(Ee){switch(Ee){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(`'${Ee}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}var E={__proto__:null,getRuleSeverity:d,normalizeToStrings:s,isErrorSeverity:p,isValidSeverity:h,isEverySeverityValid:g,normalizeConfigGlobal:v};const b={ESLINT_LEGACY_ECMAFEATURES:"The 'ecmaFeatures' config file property is deprecated and has no effect.",ESLINT_PERSONAL_CONFIG_LOAD:"'~/.eslintrc.*' config files have been deprecated. Please use a config file per project or the '--config' option.",ESLINT_PERSONAL_CONFIG_SUPPRESS:"'~/.eslintrc.*' config files have been deprecated. Please remove it or add 'root:true' to the config files in your projects in order to avoid loading '~/.eslintrc.*' accidentally."},T=new Set;function C(Ee,Ce){const Ae=JSON.stringify({source:Ee,errorCode:Ce});if(T.has(Ae))return;T.add(Ae);const ee=f.default.relative(process.cwd(),Ee),ne=b[Ce];process.emitWarning(`${ne} (found in "${ee}")`,"DeprecationWarning",Ce)}const S={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 w=(Ee={})=>{const Ce=new u.default({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...Ee});return Ce.addMetaSchema(S),Ce._opts.defaultMeta=S.id,Ce};function x(Ee){return typeof Ee=="object"&&Ee!==null&&!Array.isArray(Ee)}function A(Ee,Ce){if(Ce===void 0)return Ee;if(!x(Ee)||!x(Ce))return Ce;const Ae={...Ee,...Ce};for(const ee of Object.keys(Ce))Object.prototype.propertyIsEnumerable.call(Ee,ee)&&(Ae[ee]=A(Ee[ee],Ce[ee]));return Ae}function k(Ee,Ce){return!Ee||!Ce?Ce||Ee||[]:[...Ee.map((Ae,ee)=>A(Ae,Ce[ee])),...Ce.slice(Ee.length)]}const R={$schema:{type:"string"},env:{type:"object"},extends:{$ref:"#/definitions/stringOrStrings"},globals:{type:"object"},overrides:{type:"array",items:{$ref:"#/definitions/overrideConfig"},additionalItems:!1},parser:{type:["string","null"]},parserOptions:{type:"object"},plugins:{type:"array"},processor:{type:"string"},rules:{type:"object"},settings:{type:"object"},noInlineConfig:{type:"boolean"},reportUnusedDisableDirectives:{type:"boolean"},ecmaFeatures:{type:"object"}},I={definitions:{stringOrStrings:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1}]},stringOrStringsRequired:{oneOf:[{type:"string"},{type:"array",items:{type:"string"},additionalItems:!1,minItems:1}]},objectConfig:{type:"object",properties:{root:{type:"boolean"},ignorePatterns:{$ref:"#/definitions/stringOrStrings"},...R},additionalProperties:!1},overrideConfig:{type:"object",properties:{excludedFiles:{$ref:"#/definitions/stringOrStrings"},files:{$ref:"#/definitions/stringOrStringsRequired"},...R},required:["files"],additionalProperties:!1}},$ref:"#/definitions/objectConfig"};function B(Ee,Ce){const Ae={};for(const[ee,ne]of Object.entries(Ee))Object.hasOwn(Ce,ee)||(Ae[ee]=ne);return Ae}const F=B(r.default.es2015,r.default.es5),O={Atomics:!1,SharedArrayBuffer:!1},$={BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},N={AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1};var _=new Map(Object.entries({builtin:{globals:r.default.es5},es6:{globals:F,parserOptions:{ecmaVersion:6}},es2015:{globals:F,parserOptions:{ecmaVersion:6}},es2016:{globals:F,parserOptions:{ecmaVersion:7}},es2017:{globals:{...F,...O},parserOptions:{ecmaVersion:8}},es2018:{globals:{...F,...O},parserOptions:{ecmaVersion:9}},es2019:{globals:{...F,...O},parserOptions:{ecmaVersion:10}},es2020:{globals:{...F,...O,...$},parserOptions:{ecmaVersion:11}},es2021:{globals:{...F,...O,...$,...N},parserOptions:{ecmaVersion:12}},es2022:{globals:{...F,...O,...$,...N},parserOptions:{ecmaVersion:13}},es2023:{globals:{...F,...O,...$,...N},parserOptions:{ecmaVersion:14}},es2024:{globals:{...F,...O,...$,...N},parserOptions:{ecmaVersion:15}},browser:{globals:r.default.browser},node:{globals:r.default.node,parserOptions:{ecmaFeatures:{globalReturn:!0}}},"shared-node-browser":{globals:r.default["shared-node-browser"]},worker:{globals:r.default.worker},serviceworker:{globals:r.default.serviceworker},commonjs:{globals:r.default.commonjs,parserOptions:{ecmaFeatures:{globalReturn:!0}}},amd:{globals:r.default.amd},mocha:{globals:r.default.mocha},jasmine:{globals:r.default.jasmine},jest:{globals:r.default.jest},phantomjs:{globals:r.default.phantomjs},jquery:{globals:r.default.jquery},qunit:{globals:r.default.qunit},prototypejs:{globals:r.default.prototypejs},shelljs:{globals:r.default.shelljs},meteor:{globals:r.default.meteor},mongo:{globals:r.default.mongo},protractor:{globals:r.default.protractor},applescript:{globals:r.default.applescript},nashorn:{globals:r.default.nashorn},atomtest:{globals:r.default.atomtest},embertest:{globals:r.default.embertest},webextensions:{globals:r.default.webextensions},greasemonkey:{globals:r.default.greasemonkey}}));const X=w(),L=new WeakMap,K=Function.prototype;let J;const ge={error:2,warn:1,off:0},ae=new WeakSet,ke=Object.freeze({type:"array",minItems:0,maxItems:0});class Z{constructor({builtInRules:Ce=new Map}={}){this.builtInRules=Ce}getRuleOptionsSchema(Ce){if(!Ce)return null;if(!Ce.meta)return{...ke};const Ae=Ce.meta.schema;if(typeof Ae>"u")return{...ke};if(Ae===!1)return null;if(typeof Ae!="object"||Ae===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(Ae)?Ae.length?{type:"array",items:Ae,minItems:0,maxItems:Ae.length}:{...ke}:Ae}validateRuleSeverity(Ce){const Ae=Array.isArray(Ce)?Ce[0]:Ce,ee=typeof Ae=="string"?ge[Ae.toLowerCase()]:Ae;if(ee===0||ee===1||ee===2)return ee;throw new Error(` Severity should be one of the following: 0 = off, 1 = warn, 2 = error (you passed '${l.default.inspect(Ae).replace(/'/gu,'"').replace(/\n/gu,"")}').
|
|
22
|
+
`)}validateRuleSchema(Ce,Ae){if(!L.has(Ce))try{const ne=this.getRuleOptionsSchema(Ce);ne&&L.set(Ce,X.compile(ne))}catch(ne){const we=new Error(ne.message,{cause:ne});throw we.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA",we}const ee=L.get(Ce);if(ee){const ne=k(Ce.meta?.defaultOptions,Ae);if(ee(ne),ee.errors)throw new Error(ee.errors.map(we=>` Value ${JSON.stringify(we.data)} ${we.message}.
|
|
23
|
+
`).join(""))}}validateRuleOptions(Ce,Ae,ee,ne=null){try{this.validateRuleSeverity(ee)!==0&&this.validateRuleSchema(Ce,Array.isArray(ee)?ee.slice(1):[])}catch(we){let z=we.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"?`Error while processing options validation schema of rule '${Ae}': ${we.message}`:`Configuration for rule "${Ae}" is invalid:
|
|
24
|
+
${we.message}`;typeof ne=="string"&&(z=`${ne}:
|
|
25
|
+
${z}`);const oe=new Error(z,{cause:we});throw we.code&&(oe.code=we.code),oe}}validateEnvironment(Ce,Ae,ee=K){Ce&&Object.keys(Ce).forEach(ne=>{if(!(ee(ne)||_.get(ne)||null)){const z=`${Ae}:
|
|
26
|
+
Environment key "${ne}" is unknown
|
|
27
|
+
`;throw new Error(z)}})}validateRules(Ce,Ae,ee=K){Ce&&Object.keys(Ce).forEach(ne=>{const we=ee(ne)||this.builtInRules.get(ne)||null;this.validateRuleOptions(we,ne,Ce[ne],Ae)})}validateGlobals(Ce,Ae=null){Ce&&Object.entries(Ce).forEach(([ee,ne])=>{try{v(ne)}catch(we){throw new Error(`ESLint configuration of global '${ee}' in ${Ae} is invalid:
|
|
28
|
+
${we.message}`)}})}validateProcessor(Ce,Ae,ee){if(Ce&&!ee(Ce))throw new Error(`ESLint configuration of processor in '${Ae}' is invalid: '${Ce}' was not found.`)}formatErrors(Ce){return Ce.map(Ae=>{if(Ae.keyword==="additionalProperties")return`Unexpected top-level property "${Ae.dataPath.length?`${Ae.dataPath.slice(1)}.${Ae.params.additionalProperty}`:Ae.params.additionalProperty}"`;if(Ae.keyword==="type"){const ne=Ae.dataPath.slice(1),we=Array.isArray(Ae.schema)?Ae.schema.join("/"):Ae.schema,z=JSON.stringify(Ae.data);return`Property "${ne}" is the wrong type (expected ${we} but got \`${z}\`)`}return`"${Ae.dataPath[0]==="."?Ae.dataPath.slice(1):Ae.dataPath}" ${Ae.message}. Value: ${JSON.stringify(Ae.data)}`}).map(Ae=>` - ${Ae}.
|
|
29
|
+
`).join("")}validateConfigSchema(Ce,Ae=null){if(J=J||X.compile(I),!J(Ce))throw new Error(`ESLint configuration in ${Ae} is invalid:
|
|
30
|
+
${this.formatErrors(J.errors)}`);Object.hasOwn(Ce,"ecmaFeatures")&&C(Ae,"ESLINT_LEGACY_ECMAFEATURES")}validate(Ce,Ae,ee,ne){this.validateConfigSchema(Ce,Ae),this.validateRules(Ce.rules,Ae,ee),this.validateEnvironment(Ce.env,Ae,ne),this.validateGlobals(Ce.globals,Ae);for(const we of Ce.overrides||[])this.validateRules(we.rules,Ae,ee),this.validateEnvironment(we.env,Ae,ne),this.validateGlobals(Ce.globals,Ae)}validateConfigArray(Ce){const Ae=Map.prototype.get.bind(Ce.pluginEnvironments),ee=Map.prototype.get.bind(Ce.pluginProcessors),ne=Map.prototype.get.bind(Ce.pluginRules);for(const we of Ce)ae.has(we)||(ae.add(we),this.validateEnvironment(we.env,we.name,Ae),this.validateGlobals(we.globals,we.name),this.validateProcessor(we.processor,we.name,ee),this.validateRules(we.rules,we.name,ne))}}const P=/^@.*\//iu;function H(Ee,Ce){let Ae=Ee;if(Ae.includes("\\")&&(Ae=Ae.replace(/\\/gu,"/")),Ae.charAt(0)==="@"){const ee=new RegExp(`^(@[^/]+)(?:/(?:${Ce})?)?$`,"u"),ne=new RegExp(`^${Ce}(-|$)`,"u");ee.test(Ae)?Ae=Ae.replace(ee,`$1/${Ce}`):ne.test(Ae.split("/")[1])||(Ae=Ae.replace(/^@([^/]+)\/(.*)$/u,`@$1/${Ce}-$2`))}else Ae.startsWith(`${Ce}-`)||(Ae=`${Ce}-${Ae}`);return Ae}function fe(Ee,Ce){if(Ee[0]==="@"){let Ae=new RegExp(`^(@[^/]+)/${Ce}$`,"u").exec(Ee);if(Ae)return Ae[1];if(Ae=new RegExp(`^(@[^/]+)/${Ce}-(.+)$`,"u").exec(Ee),Ae)return`${Ae[1]}/${Ae[2]}`}else if(Ee.startsWith(`${Ce}-`))return Ee.slice(Ce.length+1);return Ee}function ce(Ee){const Ce=Ee.match(P);return Ce?Ce[0]:""}var ie={__proto__:null,normalizePackageName:H,getShorthandName:fe,getNamespaceFromTerm:ce};const he={environments:_,ConfigOps:E,ConfigValidator:Z,naming:ie};return hn.Legacy=he,hn}var Qs={exports:{}},Pn={exports:{}},Zs,xd;function A1(){if(xd)return Zs;xd=1;var a=1e3,e=a*60,n=e*60,o=n*24,t=o*7,l=o*365.25;Zs=function(i,c){c=c||{};var d=typeof i;if(d==="string"&&i.length>0)return f(i);if(d==="number"&&isFinite(i))return c.long?r(i):u(i);throw new Error("val is not a non-empty string or a valid number. val="+JSON.stringify(i))};function f(i){if(i=String(i),!(i.length>100)){var c=/^(-?(?:\d+)?\.?\d+) *(milliseconds?|msecs?|ms|seconds?|secs?|s|minutes?|mins?|m|hours?|hrs?|h|days?|d|weeks?|w|years?|yrs?|y)?$/i.exec(i);if(c){var d=parseFloat(c[1]),s=(c[2]||"ms").toLowerCase();switch(s){case"years":case"year":case"yrs":case"yr":case"y":return d*l;case"weeks":case"week":case"w":return d*t;case"days":case"day":case"d":return d*o;case"hours":case"hour":case"hrs":case"hr":case"h":return d*n;case"minutes":case"minute":case"mins":case"min":case"m":return d*e;case"seconds":case"second":case"secs":case"sec":case"s":return d*a;case"milliseconds":case"millisecond":case"msecs":case"msec":case"ms":return d;default:return}}}}function u(i){var c=Math.abs(i);return c>=o?Math.round(i/o)+"d":c>=n?Math.round(i/n)+"h":c>=e?Math.round(i/e)+"m":c>=a?Math.round(i/a)+"s":i+"ms"}function r(i){var c=Math.abs(i);return c>=o?m(i,c,o,"day"):c>=n?m(i,c,n,"hour"):c>=e?m(i,c,e,"minute"):c>=a?m(i,c,a,"second"):i+" ms"}function m(i,c,d,s){var p=c>=d*1.5;return Math.round(i/d)+" "+s+(p?"s":"")}return Zs}var ea,wd;function T1(){if(wd)return ea;wd=1;function a(e){o.debug=o,o.default=o,o.coerce=m,o.disable=u,o.enable=l,o.enabled=r,o.humanize=A1(),o.destroy=i,Object.keys(e).forEach(c=>{o[c]=e[c]}),o.names=[],o.skips=[],o.formatters={};function n(c){let d=0;for(let s=0;s<c.length;s++)d=(d<<5)-d+c.charCodeAt(s),d|=0;return o.colors[Math.abs(d)%o.colors.length]}o.selectColor=n;function o(c){let d,s=null,p,h;function g(...v){if(!g.enabled)return;const E=g,b=Number(new Date),T=b-(d||b);E.diff=T,E.prev=d,E.curr=b,d=b,v[0]=o.coerce(v[0]),typeof v[0]!="string"&&v.unshift("%O");let C=0;v[0]=v[0].replace(/%([a-zA-Z%])/g,(w,x)=>{if(w==="%%")return"%";C++;const A=o.formatters[x];if(typeof A=="function"){const k=v[C];w=A.call(E,k),v.splice(C,1),C--}return w}),o.formatArgs.call(E,v),(E.log||o.log).apply(E,v)}return g.namespace=c,g.useColors=o.useColors(),g.color=o.selectColor(c),g.extend=t,g.destroy=o.destroy,Object.defineProperty(g,"enabled",{enumerable:!0,configurable:!1,get:()=>s!==null?s:(p!==o.namespaces&&(p=o.namespaces,h=o.enabled(c)),h),set:v=>{s=v}}),typeof o.init=="function"&&o.init(g),g}function t(c,d){const s=o(this.namespace+(typeof d>"u"?":":d)+c);return s.log=this.log,s}function l(c){o.save(c),o.namespaces=c,o.names=[],o.skips=[];const d=(typeof c=="string"?c:"").trim().replace(" ",",").split(",").filter(Boolean);for(const s of d)s[0]==="-"?o.skips.push(s.slice(1)):o.names.push(s)}function f(c,d){let s=0,p=0,h=-1,g=0;for(;s<c.length;)if(p<d.length&&(d[p]===c[s]||d[p]==="*"))d[p]==="*"?(h=p,g=s,p++):(s++,p++);else if(h!==-1)p=h+1,g++,s=g;else return!1;for(;p<d.length&&d[p]==="*";)p++;return p===d.length}function u(){const c=[...o.names,...o.skips.map(d=>"-"+d)].join(",");return o.enable(""),c}function r(c){for(const d of o.skips)if(f(c,d))return!1;for(const d of o.names)if(f(c,d))return!0;return!1}function m(c){return c instanceof Error?c.stack||c.message:c}function i(){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 o.enable(o.load()),o}return ea=a,ea}var Ad;function k1(){return Ad||(Ad=1,(function(a,e){e.formatArgs=o,e.save=t,e.load=l,e.useColors=n,e.storage=f(),e.destroy=(()=>{let r=!1;return()=>{r||(r=!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`."))}})(),e.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 n(){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 r;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&&(r=navigator.userAgent.toLowerCase().match(/firefox\/(\d+)/))&&parseInt(r[1],10)>=31||typeof navigator<"u"&&navigator.userAgent&&navigator.userAgent.toLowerCase().match(/applewebkit\/(\d+)/)}function o(r){if(r[0]=(this.useColors?"%c":"")+this.namespace+(this.useColors?" %c":" ")+r[0]+(this.useColors?"%c ":" ")+"+"+a.exports.humanize(this.diff),!this.useColors)return;const m="color: "+this.color;r.splice(1,0,m,"color: inherit");let i=0,c=0;r[0].replace(/%[a-zA-Z%]/g,d=>{d!=="%%"&&(i++,d==="%c"&&(c=i))}),r.splice(c,0,m)}e.log=console.debug||console.log||(()=>{});function t(r){try{r?e.storage.setItem("debug",r):e.storage.removeItem("debug")}catch{}}function l(){let r;try{r=e.storage.getItem("debug")}catch{}return!r&&typeof Ft<"u"&&"env"in Ft&&(r=Ft.env.DEBUG),r}function f(){try{return localStorage}catch{}}a.exports=T1()(e);const{formatters:u}=a.exports;u.j=function(r){try{return JSON.stringify(r)}catch(m){return"[UnexpectedJSONParseError]: "+m.message}}})(Pn,Pn.exports)),Pn.exports}var Td;function kr(){return Td||(Td=1,Qs.exports=k1()),Qs.exports}var ta,kd;function ra(){if(kd)return ta;kd=1;const a=Gr(),e=kr()("eslint:traverser");function n(){}function o(f){return f!==null&&typeof f=="object"&&typeof f.type=="string"}function t(f,u){let r=f[u.type];return r||(r=a.getKeys(u),e('Unknown node type "%s": Estimated visitor keys %j',u.type,r)),r}class l{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(u,r){this._current=null,this._parents=[],this._skipped=!1,this._broken=!1,this._visitorKeys=r.visitorKeys||a.KEYS,this._enter=r.enter||n,this._leave=r.leave||n,this._traverse(u,null)}_traverse(u,r){if(o(u)){if(this._current=u,this._skipped=!1,this._enter(u,r),!this._skipped&&!this._broken){const m=t(this._visitorKeys,u);if(m.length>=1){this._parents.push(u);for(let i=0;i<m.length&&!this._broken;++i){const c=u[m[i]];if(Array.isArray(c))for(let d=0;d<c.length&&!this._broken;++d)this._traverse(c[d],u);else this._traverse(c,u)}this._parents.pop()}}this._broken||this._leave(u,r),this._current=r}}static getKeys(u){return a.getKeys(u)}static traverse(u,r){new l().traverse(u,r)}static get DEFAULT_VISITOR_KEYS(){return a.KEYS}}return ta=l,ta}var na={},Or={},Dd;function D1(){if(Dd)return Or;Dd=1,Object.defineProperty(Or,"__esModule",{value:!0});const a={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"]},e=Object.keys(a);for(const f of e)Object.freeze(a[f]);Object.freeze(a);const n=new Set(["parent","leadingComments","trailingComments"]);function o(f){return!n.has(f)&&f[0]!=="_"}function t(f){return Object.keys(f).filter(o)}function l(f){const u=Object.assign({},a);for(const r of Object.keys(f))if(Object.prototype.hasOwnProperty.call(u,r)){const m=new Set(f[r]);for(const i of u[r])m.add(i);u[r]=Object.freeze(Array.from(m))}else u[r]=Object.freeze(Array.from(f[r]));return Object.freeze(u)}return Or.KEYS=a,Or.getKeys=t,Or.unionWith=l,Or}var Pd;function qt(){return Pd||(Pd=1,(function(a){Object.defineProperty(a,"__esModule",{value:!0});var e=D1();function n(j,U){const V=U.range[0];let Q=j,le=!1;do{le=!1;for(const te of Q.childScopes){const q=te.block.range;if(q[0]<=V&&V<q[1]){Q=te,le=!0;break}}}while(le);return Q}function o(j,U){let V="",Q=j;for(typeof U=="string"?V=U:(V=U.name,Q=n(Q,U));Q!=null;){const le=Q.set.get(V);if(le!=null)return le;Q=Q.upper}return null}function t(j){return U=>!j(U)}function l(j,U){return j.type==="Punctuator"&&j.value===U}function f(j){return l(j,"=>")}function u(j){return l(j,",")}function r(j){return l(j,";")}function m(j){return l(j,":")}function i(j){return l(j,"(")}function c(j){return l(j,")")}function d(j){return l(j,"[")}function s(j){return l(j,"]")}function p(j){return l(j,"{")}function h(j){return l(j,"}")}function g(j){return["Block","Line","Shebang"].includes(j.type)}const v=t(f),E=t(u),b=t(r),T=t(m),C=t(i),S=t(c),w=t(d),x=t(s),A=t(p),k=t(h),R=t(g);function I(j,U){return j.id?U.getTokenAfter(j.id,i):U.getFirstToken(j,i)}function B(j,U){const V=j.parent;let Q=null,le=null;if(j.type==="ArrowFunctionExpression"){const te=U.getTokenBefore(j.body,f);Q=te.loc.start,le=te.loc.end}else V.type==="Property"||V.type==="MethodDefinition"||V.type==="PropertyDefinition"?(Q=V.loc.start,le=I(j,U).loc.start):(Q=j.loc.start,le=I(j,U).loc.start);return{start:{...Q},end:{...le}}}const F=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof Xt<"u"?Xt:{},O=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"])),$=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(j=>j!=="random").map(j=>Math[j]).filter(j=>typeof j=="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(j=>typeof j=="function")),N=new Set([Object.freeze,Object.preventExtensions,Object.seal]),_=[[Map,new Set(["size"])],[RegExp,new Set(["dotAll","flags","global","hasIndices","ignoreCase","multiline","source","sticky","unicode"])],[Set,new Set(["size"])]];function X(j,U){let V=j;for(;(typeof V=="object"||typeof V=="function")&&V!==null;){const Q=Object.getOwnPropertyDescriptor(V,U);if(Q)return Q;V=Object.getPrototypeOf(V)}return null}function L(j,U){const V=X(j,U);return V!=null&&V.get!=null}function K(j,U){const V=[];for(let Q=0;Q<j.length;++Q){const le=j[Q];if(le==null)V.length=Q+1;else if(le.type==="SpreadElement"){const te=P(le.argument,U);if(te==null)return null;V.push(...te.value)}else{const te=P(le,U);if(te==null)return null;V.push(te.value)}}return V}function J(j){return j!=null&&j.defs.length===0&&O.has(j.name)&&j.name in F}function ge(j){if(j.defs.length!==1)return!1;const U=j.defs[0];return!!(U.parent&&U.type==="Variable"&&(U.parent.kind==="const"||ae(j)))}function ae(j){const U=j.references,V=U.filter(le=>le.init).length,Q=U.filter(le=>le.isReadOnly()).length;return V===1&&Q+V===U.length}function ke(j,U){for(const Q of j.references){let le=Q.identifier;for(;le&&le.parent&&le.parent.type==="MemberExpression";)le=le.parent;if(!(!le||!le.parent)){if(le.parent.type==="AssignmentExpression"&&le.parent.left===le||le.parent.type==="UpdateExpression"&&le.parent.argument===le)return!0;if(le.parent.type==="CallExpression"&&le.parent.callee===le&&le.type==="MemberExpression"){const te=H(le,U);if(V(te))return!0}}}return!1;function V(Q){if(Q==null||Q.value==null)return!1;const le=Q.value;return le==="copyWithin"||le==="fill"||le==="pop"||le==="push"||le==="reverse"||le==="shift"||le==="sort"||le==="splice"||le==="unshift"}}const Z=Object.freeze({ArrayExpression(j,U){const V=K(j.elements,U);return V!=null?{value:V}:null},AssignmentExpression(j,U){return j.operator==="="?P(j.right,U):null},BinaryExpression(j,U){if(j.operator==="in"||j.operator==="instanceof")return null;const V=P(j.left,U),Q=P(j.right,U);if(V!=null&&Q!=null)switch(j.operator){case"==":return{value:V.value==Q.value};case"!=":return{value:V.value!=Q.value};case"===":return{value:V.value===Q.value};case"!==":return{value:V.value!==Q.value};case"<":return{value:V.value<Q.value};case"<=":return{value:V.value<=Q.value};case">":return{value:V.value>Q.value};case">=":return{value:V.value>=Q.value};case"<<":return{value:V.value<<Q.value};case">>":return{value:V.value>>Q.value};case">>>":return{value:V.value>>>Q.value};case"+":return{value:V.value+Q.value};case"-":return{value:V.value-Q.value};case"*":return{value:V.value*Q.value};case"/":return{value:V.value/Q.value};case"%":return{value:V.value%Q.value};case"**":return{value:V.value**Q.value};case"|":return{value:V.value|Q.value};case"^":return{value:V.value^Q.value};case"&":return{value:V.value&Q.value}}return null},CallExpression(j,U){const V=j.callee,Q=K(j.arguments,U);if(Q!=null)if(V.type==="MemberExpression"){if(V.property.type==="PrivateIdentifier")return null;const le=P(V.object,U);if(le!=null){if(le.value==null&&(le.optional||j.optional))return{value:void 0,optional:!0};const te=H(V,U);if(te!=null){const q=le.value,se=te.value;if($.has(q[se]))return{value:q[se](...Q)};if(N.has(q[se]))return{value:Q[0]}}}}else{const le=P(V,U);if(le!=null){if(le.value==null&&j.optional)return{value:void 0,optional:!0};const te=le.value;if($.has(te))return{value:te(...Q)};if(N.has(te))return{value:Q[0]}}}return null},ConditionalExpression(j,U){const V=P(j.test,U);return V!=null?V.value?P(j.consequent,U):P(j.alternate,U):null},ExpressionStatement(j,U){return P(j.expression,U)},Identifier(j,U){if(U!=null){const V=o(U,j);if(V!=null){if(J(V))return{value:F[V.name]};if(ge(V)){const Q=V.defs[0];if(Q.node.id.type==="Identifier"){const le=P(Q.node.init,U);return le&&typeof le.value=="object"&&le.value!==null&&ke(V,U)?null:le}}}}return null},Literal(j){const U=j;return(U.regex!=null||U.bigint!=null)&&U.value==null?null:{value:U.value}},LogicalExpression(j,U){const V=P(j.left,U);if(V!=null){if(j.operator==="||"&&V.value||j.operator==="&&"&&!V.value||j.operator==="??"&&V.value!=null)return V;const Q=P(j.right,U);if(Q!=null)return Q}return null},MemberExpression(j,U){if(j.property.type==="PrivateIdentifier")return null;const V=P(j.object,U);if(V!=null){if(V.value==null&&(V.optional||j.optional))return{value:void 0,optional:!0};const Q=H(j,U);if(Q!=null){if(!L(V.value,Q.value))return{value:V.value[Q.value]};for(const[le,te]of _)if(V.value instanceof le&&te.has(Q.value))return{value:V.value[Q.value]}}}return null},ChainExpression(j,U){const V=P(j.expression,U);return V!=null?{value:V.value}:null},NewExpression(j,U){const V=P(j.callee,U),Q=K(j.arguments,U);if(V!=null&&Q!=null){const le=V.value;if($.has(le))return{value:new le(...Q)}}return null},ObjectExpression(j,U){const V={};for(const Q of j.properties)if(Q.type==="Property"){if(Q.kind!=="init")return null;const le=H(Q,U),te=P(Q.value,U);if(le==null||te==null)return null;V[le.value]=te.value}else if(Q.type==="SpreadElement"||Q.type==="ExperimentalSpreadProperty"){const le=P(Q.argument,U);if(le==null)return null;Object.assign(V,le.value)}else return null;return{value:V}},SequenceExpression(j,U){const V=j.expressions[j.expressions.length-1];return P(V,U)},TaggedTemplateExpression(j,U){const V=P(j.tag,U),Q=K(j.quasi.expressions,U);if(V!=null&&Q!=null){const le=V.value,te=j.quasi.quasis.map(q=>q.value.cooked);if(te.raw=j.quasi.quasis.map(q=>q.value.raw),le===String.raw)return{value:le(te,...Q)}}return null},TemplateLiteral(j,U){const V=K(j.expressions,U);if(V!=null){let Q=j.quasis[0].value.cooked;for(let le=0;le<V.length;++le)Q+=V[le],Q+=j.quasis[le+1].value.cooked;return{value:Q}}return null},UnaryExpression(j,U){if(j.operator==="delete")return null;if(j.operator==="void")return{value:void 0};const V=P(j.argument,U);if(V!=null)switch(j.operator){case"-":return{value:-V.value};case"+":return{value:+V.value};case"!":return{value:!V.value};case"~":return{value:~V.value};case"typeof":return{value:typeof V.value}}return null},TSAsExpression(j,U){return P(j.expression,U)},TSSatisfiesExpression(j,U){return P(j.expression,U)},TSTypeAssertion(j,U){return P(j.expression,U)},TSNonNullExpression(j,U){return P(j.expression,U)},TSInstantiationExpression(j,U){return P(j.expression,U)}});function P(j,U){return j!=null&&Object.hasOwnProperty.call(Z,j.type)?Z[j.type](j,U):null}function H(j,U){const V=j.type==="Property"?j.key:j.property;return j.computed?P(V,U):V.type==="Identifier"?{value:V.name}:V.type==="Literal"?V.bigint?{value:V.bigint}:{value:String(V.value)}:null}function fe(j,U=null){try{return P(j,U)}catch{return null}}function ce(j,U=null){if(j&&j.type==="Literal"&&j.value===null){const Q=j;if(Q.regex)return`/${Q.regex.pattern}/${Q.regex.flags}`;if(Q.bigint)return Q.bigint}const V=fe(j,U);if(V)try{return String(V.value)}catch{}return null}function ie(j,U){switch(j.type){case"MemberExpression":return j.computed?ce(j.property,U):j.property.type==="PrivateIdentifier"?null:j.property.name;case"Property":case"MethodDefinition":case"PropertyDefinition":return j.computed?ce(j.key,U):j.key.type==="Literal"?String(j.key.value):j.key.type==="PrivateIdentifier"?null:j.key.name}return null}function he(j,U){const V=j.parent,Q=[],le=V.type==="Property"&&V.value===j,te=V.type==="MethodDefinition"&&V.value===j,q=V.type==="PropertyDefinition"&&V.value===j;if((te||q)&&(V.static&&Q.push("static"),V.key.type==="PrivateIdentifier"&&Q.push("private")),j.async&&Q.push("async"),j.generator&&Q.push("generator"),le||te){if(V.kind==="constructor")return"constructor";V.kind==="get"?Q.push("getter"):V.kind==="set"?Q.push("setter"):Q.push("method")}else q?Q.push("method"):(j.type==="ArrowFunctionExpression"&&Q.push("arrow"),Q.push("function"));if(le||te||q)if(V.key.type==="PrivateIdentifier")Q.push(`#${V.key.name}`);else{const se=ie(V);if(se)Q.push(`'${se}'`);else if(U){const ue=U.getText(V.key);ue.includes(`
|
|
31
|
+
`)||Q.push(`[${ue}]`)}}else Ee(j)?Q.push(`'${j.id.name}'`):V.type==="VariableDeclarator"&&V.id&&V.id.type==="Identifier"?Q.push(`'${V.id.name}'`):(V.type==="AssignmentExpression"||V.type==="AssignmentPattern")&&V.left&&V.left.type==="Identifier"?Q.push(`'${V.left.name}'`):V.type==="ExportDefaultDeclaration"&&V.declaration===j&&Q.push("'default'");return Q.join(" ")}function Ee(j){return!!j.id}const Ce=Object.freeze(new Set(["==","!=","<","<=",">",">=","<<",">>",">>>","+","-","*","/","%","|","^","&","in"])),Ae=Object.freeze(new Set(["-","+","!","~"]));function ee(j){return j!==null&&typeof j=="object"&&typeof j.type=="string"}const ne=Object.freeze(Object.assign(Object.create(null),{$visit(j,U,V){const{type:Q}=j;return typeof this[Q]=="function"?this[Q](j,U,V):this.$visitChildren(j,U,V)},$visitChildren(j,U,V){const{type:Q}=j;for(const le of V[Q]||e.getKeys(j)){const te=j[le];if(Array.isArray(te)){for(const q of te)if(ee(q)&&this.$visit(q,U,V))return!0}else if(ee(te)&&this.$visit(te,U,V))return!0}return!1},ArrowFunctionExpression(){return!1},AssignmentExpression(){return!0},AwaitExpression(){return!0},BinaryExpression(j,U,V){return U.considerImplicitTypeConversion&&Ce.has(j.operator)&&(j.left.type!=="Literal"||j.right.type!=="Literal")?!0:this.$visitChildren(j,U,V)},CallExpression(){return!0},FunctionExpression(){return!1},ImportExpression(){return!0},MemberExpression(j,U,V){return U.considerGetters||U.considerImplicitTypeConversion&&j.computed&&j.property.type!=="Literal"?!0:this.$visitChildren(j,U,V)},MethodDefinition(j,U,V){return U.considerImplicitTypeConversion&&j.computed&&j.key.type!=="Literal"?!0:this.$visitChildren(j,U,V)},NewExpression(){return!0},Property(j,U,V){return U.considerImplicitTypeConversion&&j.computed&&j.key.type!=="Literal"?!0:this.$visitChildren(j,U,V)},PropertyDefinition(j,U,V){return U.considerImplicitTypeConversion&&j.computed&&j.key.type!=="Literal"?!0:this.$visitChildren(j,U,V)},UnaryExpression(j,U,V){return j.operator==="delete"||U.considerImplicitTypeConversion&&Ae.has(j.operator)&&j.argument.type!=="Literal"?!0:this.$visitChildren(j,U,V)},UpdateExpression(){return!0},YieldExpression(){return!0}}));function we(j,U,V={}){const{considerGetters:Q=!1,considerImplicitTypeConversion:le=!1}=V;return ne.$visit(j,{considerGetters:Q,considerImplicitTypeConversion:le},U.visitorKeys||e.KEYS)}function z(j,U){const V=j.parent;switch(V.type){case"CallExpression":case"NewExpression":return V.arguments.length===1&&V.arguments[0]===j?U.getTokenAfter(V.typeParameters||V.callee,i):null;case"DoWhileStatement":return V.test===j?U.getTokenAfter(V.body,i):null;case"IfStatement":case"WhileStatement":return V.test===j?U.getFirstToken(V,1):null;case"ImportExpression":return V.source===j?U.getFirstToken(V,1):null;case"SwitchStatement":return V.discriminant===j?U.getFirstToken(V,1):null;case"WithStatement":return V.object===j?U.getFirstToken(V,1):null;default:return null}}function oe(j,U,V){let Q,le,te,q,se;if(typeof j=="number"){if(Q=j|0,le=U,te=V,!(Q>=1))throw new TypeError("'times' should be a positive integer.")}else Q=1,le=j,te=U;if(le==null||le.parent==null||le.parent.type==="CatchClause"&&le.parent.param===le)return!1;q=se=le;do q=te.getTokenBefore(q),se=te.getTokenAfter(se);while(q!=null&&se!=null&&i(q)&&c(se)&&q!==z(le,te)&&--Q>0);return Q===0}const Te=/\$(?:[$&`']|[1-9][0-9]?)/gu,Re=new WeakMap;function Ie(j,U){let V=!1;for(let Q=U-1;Q>=0&&j.charCodeAt(Q)===92;--Q)V=!V;return V}function W(j,U,V){const Q=[];let le=0;function te(q,se){switch(q){case"$$":return"$";case"$&":return se[0];case"$`":return U.slice(0,se.index);case"$'":return U.slice(se.index+se[0].length);default:{const ue=q.slice(1);return ue in se?se[ue]:q}}}for(const q of j.execAll(U))Q.push(U.slice(le,q.index)),Q.push(V.replace(Te,se=>te(se,q))),le=q.index+q[0].length;return Q.push(U.slice(le)),Q.join("")}function Je(j,U,V){const Q=[];let le=0;for(const te of j.execAll(U))Q.push(U.slice(le,te.index)),Q.push(String(V(...te,te.index,te.input))),le=te.index+te[0].length;return Q.push(U.slice(le)),Q.join("")}class ut{constructor(U,V={}){const{escaped:Q=!1}=V;if(!(U instanceof RegExp))throw new TypeError("'pattern' should be a RegExp instance.");if(!U.flags.includes("g"))throw new Error("'pattern' should contains 'g' flag.");Re.set(this,{pattern:new RegExp(U.source,U.flags),escaped:!!Q})}*execAll(U){const{pattern:V,escaped:Q}=Re.get(this);let le=null,te=0;for(V.lastIndex=0;(le=V.exec(U))!=null;)(Q||!Ie(U,le.index))&&(te=V.lastIndex,yield le,V.lastIndex=te)}test(U){return!this.execAll(U).next().done}[Symbol.replace](U,V){return typeof V=="function"?Je(this,String(U),V):W(this,String(U),String(V))}}const tt=/^(?:Import|Export(?:All|Default|Named))Declaration$/u;function qe(j){return tt.test(j.type)&&j.source!=null}const $e=Function.call.bind(Object.hasOwnProperty),st=Symbol("read"),mt=Symbol("call"),rt=Symbol("construct"),Qe=Symbol("esm"),St={require:{[mt]:!0}};function Ze(j){return j==null||j.defs.length!==0||j.references.some(U=>U.isWrite())}function Ct(j){const U=j.parent;if(U)switch(U.type){case"ConditionalExpression":return U.consequent===j||U.alternate===j;case"LogicalExpression":return!0;case"SequenceExpression":return U.expressions[U.expressions.length-1]===j;case"ChainExpression":return!0;case"TSAsExpression":case"TSSatisfiesExpression":case"TSTypeAssertion":case"TSNonNullExpression":case"TSInstantiationExpression":return!0;default:return!1}return!1}class Ke{constructor(U,V={}){const{mode:Q="strict",globalObjectNames:le=["global","globalThis","self","window"]}=V;this.variableStack=[],this.globalScope=U,this.mode=Q,this.globalObjectNames=le.slice(0)}*iterateGlobalReferences(U){for(const V of Object.keys(U)){const Q=U[V],le=[V],te=this.globalScope.set.get(V);Ze(te)||(yield*this._iterateVariableReferences(te,le,Q,!0))}for(const V of this.globalObjectNames){const Q=[],le=this.globalScope.set.get(V);Ze(le)||(yield*this._iterateVariableReferences(le,Q,U,!1))}}*iterateCjsReferences(U){for(const{node:V}of this.iterateGlobalReferences(St)){const Q=ce(V.arguments[0]);if(Q==null||!$e(U,Q))continue;const le=U[Q],te=[Q];le[st]&&(yield{node:V,path:te,type:st,info:le[st]}),yield*this._iteratePropertyReferences(V,te,le)}}*iterateEsmReferences(U){const V=this.globalScope.block;for(const Q of V.body){if(!qe(Q))continue;const le=Q.source.value;if(!$e(U,le))continue;const te=U[le],q=[le];if(te[st]&&(yield{node:Q,path:q,type:st,info:te[st]}),Q.type==="ExportAllDeclaration")for(const se of Object.keys(te)){const ue=te[se];ue[st]&&(yield{node:Q,path:q.concat(se),type:st,info:ue[st]})}else for(const se of Q.specifiers){const ue=$e(te,Qe),be=this._iterateImportReferences(se,q,ue?te:this.mode==="legacy"?{default:te,...te}:{default:te});if(ue)yield*be;else for(const Oe of be)Oe.path=Oe.path.filter(Ge),(Oe.path.length>=2||Oe.type!==st)&&(yield Oe)}}}*iteratePropertyReferences(U,V){yield*this._iteratePropertyReferences(U,[],V)}*_iterateVariableReferences(U,V,Q,le){if(!this.variableStack.includes(U)){this.variableStack.push(U);try{for(const te of U.references){if(!te.isRead())continue;const q=te.identifier;le&&Q[st]&&(yield{node:q,path:V,type:st,info:Q[st]}),yield*this._iteratePropertyReferences(q,V,Q)}}finally{this.variableStack.pop()}}}*_iteratePropertyReferences(U,V,Q){let le=U;for(;Ct(le);)le=le.parent;const te=le.parent;if(te.type==="MemberExpression"){if(te.object===le){const q=ie(te);if(q==null||!$e(Q,q))return;V=V.concat(q);const se=Q[q];se[st]&&(yield{node:te,path:V,type:st,info:se[st]}),yield*this._iteratePropertyReferences(te,V,se)}return}if(te.type==="CallExpression"){te.callee===le&&Q[mt]&&(yield{node:te,path:V,type:mt,info:Q[mt]});return}if(te.type==="NewExpression"){te.callee===le&&Q[rt]&&(yield{node:te,path:V,type:rt,info:Q[rt]});return}if(te.type==="AssignmentExpression"){te.right===le&&(yield*this._iterateLhsReferences(te.left,V,Q),yield*this._iteratePropertyReferences(te,V,Q));return}if(te.type==="AssignmentPattern"){te.right===le&&(yield*this._iterateLhsReferences(te.left,V,Q));return}te.type==="VariableDeclarator"&&te.init===le&&(yield*this._iterateLhsReferences(te.id,V,Q))}*_iterateLhsReferences(U,V,Q){if(U.type==="Identifier"){const le=o(this.globalScope,U);le!=null&&(yield*this._iterateVariableReferences(le,V,Q,!1));return}if(U.type==="ObjectPattern"){for(const le of U.properties){const te=ie(le);if(te==null||!$e(Q,te))continue;const q=V.concat(te),se=Q[te];se[st]&&(yield{node:le,path:q,type:st,info:se[st]}),yield*this._iterateLhsReferences(le.value,q,se)}return}U.type==="AssignmentPattern"&&(yield*this._iterateLhsReferences(U.left,V,Q))}*_iterateImportReferences(U,V,Q){const le=U.type;if(le==="ImportSpecifier"||le==="ImportDefaultSpecifier"){const te=le==="ImportDefaultSpecifier"?"default":U.imported.type==="Identifier"?U.imported.name:U.imported.value;if(!$e(Q,te))return;V=V.concat(te);const q=Q[te];q[st]&&(yield{node:U,path:V,type:st,info:q[st]}),yield*this._iterateVariableReferences(o(this.globalScope,U.local),V,q,!1);return}if(le==="ImportNamespaceSpecifier"){yield*this._iterateVariableReferences(o(this.globalScope,U.local),V,Q,!1);return}if(le==="ExportSpecifier"){const te=U.local.type==="Identifier"?U.local.name:U.local.value;if(!$e(Q,te))return;V=V.concat(te);const q=Q[te];q[st]&&(yield{node:U,path:V,type:st,info:q[st]})}}}Ke.READ=st,Ke.CALL=mt,Ke.CONSTRUCT=rt,Ke.ESM=Qe;function Ge(j,U){return!(U===1&&j==="default")}var Se={CALL:mt,CONSTRUCT:rt,ESM:Qe,findVariable:o,getFunctionHeadLocation:B,getFunctionNameWithKind:he,getInnermostScope:n,getPropertyName:ie,getStaticValue:fe,getStringIfConstant:ce,hasSideEffect:we,isArrowToken:f,isClosingBraceToken:h,isClosingBracketToken:s,isClosingParenToken:c,isColonToken:m,isCommaToken:u,isCommentToken:g,isNotArrowToken:v,isNotClosingBraceToken:k,isNotClosingBracketToken:x,isNotClosingParenToken:S,isNotColonToken:T,isNotCommaToken:E,isNotCommentToken:R,isNotOpeningBraceToken:A,isNotOpeningBracketToken:w,isNotOpeningParenToken:C,isNotSemicolonToken:b,isOpeningBraceToken:p,isOpeningBracketToken:d,isOpeningParenToken:i,isParenthesized:oe,isSemicolonToken:r,PatternMatcher:ut,READ:st,ReferenceTracker:Ke};a.CALL=mt,a.CONSTRUCT=rt,a.ESM=Qe,a.PatternMatcher=ut,a.READ=st,a.ReferenceTracker=Ke,a.default=Se,a.findVariable=o,a.getFunctionHeadLocation=B,a.getFunctionNameWithKind=he,a.getInnermostScope=n,a.getPropertyName=ie,a.getStaticValue=fe,a.getStringIfConstant=ce,a.hasSideEffect=we,a.isArrowToken=f,a.isClosingBraceToken=h,a.isClosingBracketToken=s,a.isClosingParenToken=c,a.isColonToken=m,a.isCommaToken=u,a.isCommentToken=g,a.isNotArrowToken=v,a.isNotClosingBraceToken=k,a.isNotClosingBracketToken=x,a.isNotClosingParenToken=S,a.isNotColonToken=T,a.isNotCommaToken=E,a.isNotCommentToken=R,a.isNotOpeningBraceToken=A,a.isNotOpeningBracketToken=w,a.isNotOpeningParenToken=C,a.isNotSemicolonToken=b,a.isOpeningBraceToken=p,a.isOpeningBracketToken=d,a.isOpeningParenToken=i,a.isParenthesized=oe,a.isSemicolonToken=r})(na)),na}var sa,Id;function In(){if(Id)return sa;Id=1;function a(e,n="Assertion failed."){if(!e)throw new Error(n)}return sa=a,sa}var aa,Fd;function Qr(){return Fd||(Fd=1,aa=class{constructor(){this.current=null}getOneToken(){return this.moveNext()?this.current:null}getAllTokens(){const e=[];for(;this.moveNext();)e.push(this.current);return e}moveNext(){throw new Error("Not implemented.")}}),aa}var Zr={},Rd;function en(){return Rd||(Rd=1,Zr.search=function(e,n){for(let o=0,t=e.length-1;o<=t;){const l=(o+t)/2|0,u=e[l].range[0];if(n<=u){if(l===o)return l;t=l}else o=l+1}return e.length},Zr.getFirstIndex=function(e,n,o){if(o in n)return n[o];if(o-1 in n){const t=n[o-1],l=e[t];return l?l.range[0]>=o?t:t+1:e.length}return 0},Zr.getLastIndex=function(e,n,o){if(o in n)return n[o]-1;if(o-1 in n){const t=n[o-1],l=e[t];return l?l.range[1]>o?t-1:t:e.length-1}return e.length-1}),Zr}var ia,_d;function P1(){if(_d)return ia;_d=1;const a=Qr(),e=en();return ia=class extends a{constructor(o,t,l,f,u){super(),this.tokens=o,this.comments=t,this.tokenIndex=e.getLastIndex(o,l,u),this.commentIndex=e.search(t,u)-1,this.border=f}moveNext(){const o=this.tokenIndex>=0?this.tokens[this.tokenIndex]:null,t=this.commentIndex>=0?this.comments[this.commentIndex]:null;return o&&(!t||o.range[1]>t.range[1])?(this.current=o,this.tokenIndex-=1):t?(this.current=t,this.commentIndex-=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[0]>=this.border)}},ia}var oa,Bd;function I1(){if(Bd)return oa;Bd=1;const a=Qr(),{getLastIndex:e,getFirstIndex:n}=en();return oa=class extends a{constructor(t,l,f,u,r){super(),this.tokens=t,this.index=e(t,f,r),this.indexEnd=n(t,f,u)}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}},oa}var la,Ld;function ua(){if(Ld)return la;Ld=1;const a=Qr();return la=class extends a{constructor(n){super(),this.cursor=n}moveNext(){const n=this.cursor.moveNext();return this.current=this.cursor.current,n}},la}var ca,Od;function F1(){if(Od)return ca;Od=1;const a=ua();return ca=class extends a{constructor(n,o){super(n),this.predicate=o}moveNext(){const n=this.predicate;for(;super.moveNext();)if(n(this.current))return!0;return!1}},ca}var fa,Nd;function R1(){if(Nd)return fa;Nd=1;const a=Qr(),{getFirstIndex:e,search:n}=en();return fa=class extends a{constructor(t,l,f,u,r){super(),this.tokens=t,this.comments=l,this.tokenIndex=e(t,f,u),this.commentIndex=n(l,u),this.border=r}moveNext(){const t=this.tokenIndex<this.tokens.length?this.tokens[this.tokenIndex]:null,l=this.commentIndex<this.comments.length?this.comments[this.commentIndex]:null;return t&&(!l||t.range[0]<l.range[0])?(this.current=t,this.tokenIndex+=1):l?(this.current=l,this.commentIndex+=1):this.current=null,!!this.current&&(this.border===-1||this.current.range[1]<=this.border)}},fa}var pa,Md;function ma(){if(Md)return pa;Md=1;const a=Qr(),{getFirstIndex:e,getLastIndex:n}=en();return pa=class extends a{constructor(t,l,f,u,r){super(),this.tokens=t,this.index=e(t,f,u),this.indexEnd=n(t,f,r)}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)}},pa}var da,jd;function _1(){if(jd)return da;jd=1;const a=ua();return da=class extends a{constructor(n,o){super(n),this.count=o}moveNext(){return this.count>0?(this.count-=1,super.moveNext()):!1}},da}var ha,Ud;function B1(){if(Ud)return ha;Ud=1;const a=ua();return ha=class extends a{constructor(n,o){super(n),this.count=o}moveNext(){for(;this.count>0;)if(this.count-=1,!super.moveNext())return!1;return super.moveNext()}},ha}var ga,qd;function L1(){if(qd)return ga;qd=1;const a=P1(),e=I1(),n=F1(),o=R1(),t=ma(),l=_1(),f=B1();class u{constructor(m,i){this.TokenCursor=m,this.TokenCommentCursor=i}createBaseCursor(m,i,c,d,s,p){const h=p?this.TokenCommentCursor:this.TokenCursor;return new h(m,i,c,d,s)}createCursor(m,i,c,d,s,p,h,g,v){let E=this.createBaseCursor(m,i,c,d,s,p);return h&&(E=new n(E,h)),g>=1&&(E=new f(E,g)),v>=0&&(E=new l(E,v)),E}}return ga={forward:new u(t,o),backward:new u(e,a)},ga}var ya,Vd;function O1(){if(Vd)return ya;Vd=1;const a=ma();return ya=class extends a{constructor(n,o,t,l,f,u,r){super(n,o,t,l,f),this.index=Math.max(0,this.index-u),this.indexEnd=Math.min(n.length-1,this.indexEnd+r)}},ya}var va,$d;function N1(){if($d)return va;$d=1;const{isCommentToken:a}=qt(),e=In(),n=L1(),o=ma(),t=O1(),l=en(),f=Symbol("tokens"),u=Symbol("comments"),r=Symbol("indexMap");function m(p,h){const g=Object.create(null);let v=0,E=0,b,T;for(;v<p.length||E<h.length;){for(b=E<h.length?h[E].range[0]:Number.MAX_SAFE_INTEGER;v<p.length&&(T=p[v].range)[0]<b;)g[T[0]]=v,g[T[1]-1]=v,v+=1;for(b=v<p.length?p[v].range[0]:Number.MAX_SAFE_INTEGER;E<h.length&&(T=h[E].range)[0]<b;)g[T[0]]=v,g[T[1]-1]=v,E+=1}return g}function i(p,h,g,v,E,b,T){let C=!1,S=0,w=null;return typeof T=="number"?S=T|0:typeof T=="function"?w=T:T&&(C=!!T.includeComments,S=T.skip|0,w=T.filter||null),e(S>=0,"options.skip should be zero or a positive integer."),e(!w||typeof w=="function","options.filter should be a function."),p.createCursor(h,g,v,E,b,C,w,S,-1)}function c(p,h,g,v,E,b,T){let C=!1,S=0,w=!1,x=null;return typeof T=="number"?(S=T|0,w=!0):typeof T=="function"?x=T:T&&(C=!!T.includeComments,S=T.count|0,w=typeof T.count=="number",x=T.filter||null),e(S>=0,"options.count should be zero or a positive integer."),e(!x||typeof x=="function","options.filter should be a function."),p.createCursor(h,g,v,E,b,C,x,0,w?S:-1)}function d(p,h,g,v,E,b,T){return typeof b>"u"&&typeof T>"u"?new o(p,h,g,v,E):typeof b=="number"||typeof b>"u"?new t(p,h,g,v,E,b|0,T|0):c(n.forward,p,h,g,v,E,b)}function s(p){const h=[];let g=p.getOneToken();for(;g&&a(g);)h.push(g),g=p.getOneToken();return h}return va=class{constructor(h,g){this[f]=h,this[u]=g,this[r]=m(h,g)}getTokenByRangeStart(h,g){const v=g&&g.includeComments,E=n.forward.createBaseCursor(this[f],this[u],this[r],h,-1,v).getOneToken();return E&&E.range[0]===h?E:null}getFirstToken(h,g){return i(n.forward,this[f],this[u],this[r],h.range[0],h.range[1],g).getOneToken()}getLastToken(h,g){return i(n.backward,this[f],this[u],this[r],h.range[0],h.range[1],g).getOneToken()}getTokenBefore(h,g){return i(n.backward,this[f],this[u],this[r],-1,h.range[0],g).getOneToken()}getTokenAfter(h,g){return i(n.forward,this[f],this[u],this[r],h.range[1],-1,g).getOneToken()}getFirstTokenBetween(h,g,v){return i(n.forward,this[f],this[u],this[r],h.range[1],g.range[0],v).getOneToken()}getLastTokenBetween(h,g,v){return i(n.backward,this[f],this[u],this[r],h.range[1],g.range[0],v).getOneToken()}getTokenOrCommentBefore(h,g){return this.getTokenBefore(h,{includeComments:!0,skip:g})}getTokenOrCommentAfter(h,g){return this.getTokenAfter(h,{includeComments:!0,skip:g})}getFirstTokens(h,g){return c(n.forward,this[f],this[u],this[r],h.range[0],h.range[1],g).getAllTokens()}getLastTokens(h,g){return c(n.backward,this[f],this[u],this[r],h.range[0],h.range[1],g).getAllTokens().reverse()}getTokensBefore(h,g){return c(n.backward,this[f],this[u],this[r],-1,h.range[0],g).getAllTokens().reverse()}getTokensAfter(h,g){return c(n.forward,this[f],this[u],this[r],h.range[1],-1,g).getAllTokens()}getFirstTokensBetween(h,g,v){return c(n.forward,this[f],this[u],this[r],h.range[1],g.range[0],v).getAllTokens()}getLastTokensBetween(h,g,v){return c(n.backward,this[f],this[u],this[r],h.range[1],g.range[0],v).getAllTokens().reverse()}getTokens(h,g,v){return d(this[f],this[u],this[r],h.range[0],h.range[1],g,v).getAllTokens()}getTokensBetween(h,g,v){return d(this[f],this[u],this[r],h.range[1],g.range[0],v,v).getAllTokens()}commentsExistBetween(h,g){const v=l.search(this[u],h.range[1]);return v<this[u].length&&this[u][v].range[1]<=g.range[0]}getCommentsBefore(h){const g=c(n.backward,this[f],this[u],this[r],-1,h.range[0],{includeComments:!0});return s(g).reverse()}getCommentsAfter(h){const g=c(n.forward,this[f],this[u],this[r],h.range[1],-1,{includeComments:!0});return s(g)}getCommentsInside(h){return this.getTokens(h,{includeComments:!0,filter:a})}},va}var Sa,Gd;function Fn(){if(Gd)return Sa;Gd=1;const a=/^(?:(?:Do)?While|For(?:In|Of)?|Switch)Statement$/u,e=/\r\n|[\r\n\u2028\u2029]/u,n=/^#!([^\r\n]+)/u;function o(){return new RegExp(e.source,"gu")}return Sa={breakableTypePattern:a,lineBreakPattern:e,createGlobalLinebreakMatcher:o,shebangPattern:n},Sa}var Ea,Wd;function zd(){if(Wd)return Ea;Wd=1;const a={exports:!0,global:!1,module:!1,require:!1},e={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},n={...e,JSON:!1},o={...n,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},t={...o},l={...t,Atomics:!1,SharedArrayBuffer:!1},f={...l},u={...f},r={...u,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,globalThis:!1},m={...r,AggregateError:!1,FinalizationRegistry:!1,WeakRef:!1},i={...m},c={...i},d={...c},s={...d,Float16Array:!1,Iterator:!1},p={...s,AsyncDisposableStack:!1,DisposableStack:!1,SuppressedError:!1};return Ea={commonjs:a,es3:e,es5:n,es2015:o,es2016:t,es2017:l,es2018:f,es2019:u,es2020:r,es2021:m,es2022:i,es2023:c,es2024:d,es2025:s,es2026:p},Ea}var ba,Hd;function Kd(){return Hd||(Hd=1,ba={directivesPattern:/^(eslint(?:-env|-enable|-disable(?:(?:-next)?-line)?)?|exported|globals?)(?:\s|$)/u}),ba}var Ca,Xd;function Jd(){if(Xd)return Ca;Xd=1;const a=kr()("eslint:code-path");function e(o){return o.id+(o.reachable?"":"!")}function n(o,t){const l=t?`:${t}`:"";switch(o.type){case"Identifier":return`${o.type}${l} (${o.name})`;case"Literal":return`${o.type}${l} (${o.value})`;default:return`${o.type}${l}`}}return Ca={enabled:a.enabled,dump:a,dumpState:a.enabled?(function(o,t,l){for(let f=0;f<t.currentSegments.length;++f){const u=t.currentSegments[f].internal;if(l){const r=u.nodes.length-1;r>=0&&u.nodes[r]===n(o,"enter")?u.nodes[r]=n(o,void 0):u.nodes.push(n(o,"exit"))}else u.nodes.push(n(o,"enter"))}a([`${t.currentSegments.map(e).join(",")})`,`${o.type}${l?":exit":""}`].join(" "))}):a,dumpDot:a.enabled?(function(o){let t=`
|
|
32
|
+
digraph {
|
|
33
|
+
node[shape=box,style="rounded,filled",fillcolor=white];
|
|
34
|
+
initial[label="",shape=circle,style=filled,fillcolor=black,width=0.25,height=0.25];
|
|
35
|
+
`;o.returnedSegments.length>0&&(t+=`final[label="",shape=doublecircle,style=filled,fillcolor=black,width=0.25,height=0.25];
|
|
36
|
+
`),o.thrownSegments.length>0&&(t+=`thrown[label="✘",shape=circle,width=0.3,height=0.3,fixedsize=true];
|
|
37
|
+
`);const l=Object.create(null),f=this.makeDotArrows(o,l);for(const u in l){const r=l[u];t+=`${u}[`,r.reachable?t+='label="':t+='style="rounded,dashed,filled",fillcolor="#FF9800",label="<<unreachable>>\\n',r.internal.nodes.length>0?t+=r.internal.nodes.join("\\n"):t+="????",t+=`"];
|
|
38
|
+
`}t+=`${f}
|
|
39
|
+
`,t+="}",a("DOT",t)}):a,makeDotArrows(o,t){const l=[[o.initialSegment,0]],f=t||Object.create(null);let u=o.initialSegment.id,r=`initial->${o.initialSegment.id}`;for(;l.length>0;){const m=l.pop(),i=m[0],c=m[1];if(f[i.id]&&c===0)continue;f[i.id]=i;const d=i.allNextSegments[c];d&&(u===i.id?r+=`->${d.id}`:r+=`;
|
|
40
|
+
${i.id}->${d.id}`,u=d.id,l.unshift([i,1+c]),l.push([d,0]))}return o.returnedSegments.forEach(m=>{u===m.id?r+="->final":r+=`;
|
|
41
|
+
${m.id}->final`,u=null}),o.thrownSegments.forEach(m=>{u===m.id?r+="->thrown":r+=`;
|
|
42
|
+
${m.id}->thrown`,u=null}),`${r};`}},Ca}var xa,Yd;function wa(){if(Yd)return xa;Yd=1;const a=Jd();function e(o){return o.reachable}class n{constructor(t,l,f){this.id=t,this.nextSegments=[],this.prevSegments=l.filter(e),this.allNextSegments=[],this.allPrevSegments=l,this.reachable=f,Object.defineProperty(this,"internal",{value:{used:!1,loopedPrevSegments:[]}}),a.enabled&&(this.internal.nodes=[])}isLoopedPrevSegment(t){return this.internal.loopedPrevSegments.includes(t)}static newRoot(t){return new n(t,[],!0)}static newNext(t,l){return new n(t,n.flattenUnusedSegments(l),l.some(e))}static newUnreachable(t,l){const f=new n(t,n.flattenUnusedSegments(l),!1);return n.markUsed(f),f}static newDisconnected(t,l){return new n(t,[],l.some(e))}static markUsed(t){if(t.internal.used)return;t.internal.used=!0;let l;if(t.reachable)for(l=0;l<t.allPrevSegments.length;++l){const f=t.allPrevSegments[l];f.allNextSegments.push(t),f.nextSegments.push(t)}else for(l=0;l<t.allPrevSegments.length;++l)t.allPrevSegments[l].allNextSegments.push(t)}static markPrevSegmentAsLooped(t,l){t.internal.loopedPrevSegments.push(l)}static flattenUnusedSegments(t){const l=new Set;for(let f=0;f<t.length;++f){const u=t[f];if(!l.has(u))if(u.internal.used)l.add(u);else for(let r=0;r<u.allPrevSegments.length;++r){const m=u.allPrevSegments[r];l.has(m)||l.add(m)}}return[...l]}}return xa=n,xa}var Aa,Qd;function M1(){if(Qd)return Aa;Qd=1;const a=In(),e=wa();function n(f){return f.reachable}function o(f,u,r,m){const i=f.segmentsList,c=u>=0?u:i.length+u,d=r>=0?r:i.length+r,s=[];for(let p=0;p<f.count;++p){const h=[];for(let g=c;g<=d;++g)h.push(i[g][p]);s.push(m(f.idGenerator.next(),h))}return s}function t(f,u){let r=u;for(;r.length>f.count;){const m=[];for(let i=0,c=Math.floor(r.length/2);i<c;++i)m.push(e.newNext(f.idGenerator.next(),[r[i],r[i+c]]));r=m}return r}class l{constructor(u,r,m){this.idGenerator=u,this.upper=r,this.count=m,this.segmentsList=[]}get head(){const u=this.segmentsList;return u.length===0?[]:u.at(-1)}get empty(){return this.segmentsList.length===0}get reachable(){const u=this.head;return u.length>0&&u.some(n)}makeNext(u,r){return o(this,u,r,e.newNext)}makeUnreachable(u,r){return o(this,u,r,e.newUnreachable)}makeDisconnected(u,r){return o(this,u,r,e.newDisconnected)}add(u){a(u.length>=this.count,`${u.length} >= ${this.count}`),this.segmentsList.push(t(this,u))}replaceHead(u){a(u.length>=this.count,`${u.length} >= ${this.count}`),this.segmentsList.splice(-1,1,t(this,u))}addAll(u){a(u.count===this.count),this.segmentsList.push(...u.segmentsList)}clear(){this.segmentsList=[]}static newRoot(u){const r=new l(u,null,1);return r.add([e.newRoot(u.next())]),r}static newEmpty(u,r){return new l(u.idGenerator,u,(r?2:1)*u.count)}}return Aa=l,Aa}var Ta,Zd;function j1(){if(Zd)return Ta;Zd=1;const a=wa(),e=M1();class n{constructor(x,A,k,R){this.upper=x,this.breakable=A,this.label=k,this.brokenForkContext=e.newEmpty(R)}}class o{constructor(x){this.upper=x,this.choiceContextCount=0}}class t{constructor(x,A,k,R){this.upper=x,this.kind=A,this.isForkingAsResult=k,this.trueForkContext=e.newEmpty(R),this.falseForkContext=e.newEmpty(R),this.nullishForkContext=e.newEmpty(R),this.processed=!1}}class l{constructor(x,A,k,R){this.upper=x,this.type=A,this.label=k,this.brokenForkContext=R.brokenForkContext}}class f extends l{constructor(x,A,k){super(x,"WhileStatement",A,k),this.test=void 0,this.continueDestSegments=null}}class u extends l{constructor(x,A,k,R){super(x,"DoWhileStatement",A,k),this.test=void 0,this.entrySegments=null,this.continueForkContext=e.newEmpty(R)}}class r extends l{constructor(x,A,k){super(x,"ForStatement",A,k),this.test=void 0,this.endOfInitSegments=null,this.testSegments=null,this.endOfTestSegments=null,this.updateSegments=null,this.endOfUpdateSegments=null,this.continueDestSegments=null}}class m extends l{constructor(x,A,k){super(x,"ForInStatement",A,k),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class i extends l{constructor(x,A,k){super(x,"ForOfStatement",A,k),this.prevSegments=null,this.leftSegments=null,this.endOfLeftSegments=null,this.continueDestSegments=null}}class c{constructor(x,A){this.upper=x,this.hasCase=A,this.defaultSegments=null,this.defaultBodySegments=null,this.foundEmptyDefault=!1,this.lastIsDefault=!1,this.forkCount=0}}class d{constructor(x,A,k){this.upper=x,this.hasFinalizer=A,this.position="try",this.returnedForkContext=A?e.newEmpty(k):null,this.thrownForkContext=e.newEmpty(k),this.lastOfTryIsReachable=!1,this.lastOfCatchIsReachable=!1}}function s(w,x,A,k){for(let R=0;R<k.length;++R){const I=k[R];w.push(I),x.includes(I)||A.push(I)}}function p(w,x){if(!x)return w.loopContext;let A=w.loopContext;for(;A;){if(A.label===x)return A;A=A.upper}return null}function h(w,x){let A=w.breakContext;for(;A;){if(x?A.label===x:A.breakable)return A;A=A.upper}return null}function g(w){let x=w.tryContext;for(;x;){if(x.hasFinalizer&&x.position!=="finally")return x;x=x.upper}return w}function v(w){let x=w.tryContext;for(;x;){if(x.position==="try"||x.hasFinalizer&&x.position==="catch")return x;x=x.upper}return w}function E(w,x){w.splice(w.indexOf(x),1)}function b(w,x){for(let A=0;A<w.length;++A){const k=w[A],R=x[A];E(k.nextSegments,R),E(k.allNextSegments,R),E(R.prevSegments,k),E(R.allPrevSegments,k)}}function T(w,x,A){const k=a.flattenUnusedSegments(x),R=a.flattenUnusedSegments(A),I=Math.min(k.length,R.length);for(let B=0;B<I;++B){const F=k[B],O=R[B];O.reachable&&F.nextSegments.push(O),F.reachable&&O.prevSegments.push(F),F.allNextSegments.push(O),O.allPrevSegments.push(F),O.allPrevSegments.length>=2&&a.markPrevSegmentAsLooped(O,F),w.notifyLooped(F,O)}}function C(w,x,A){x.processed||(x.trueForkContext.add(A),x.falseForkContext.add(A),x.nullishForkContext.add(A)),w.test!==!0&&w.brokenForkContext.addAll(x.falseForkContext),w.endOfTestSegments=x.trueForkContext.makeNext(0,-1)}class S{constructor(x,A){this.idGenerator=x,this.notifyLooped=A,this.forkContext=e.newRoot(x),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=[];const k=this.finalSegments,R=this.returnedForkContext,I=this.thrownForkContext;R.add=s.bind(null,R,I,k),I.add=s.bind(null,I,R,k)}get headSegments(){return this.forkContext.head}get parentForkContext(){const x=this.forkContext;return x&&x.upper}pushForkContext(x){return this.forkContext=e.newEmpty(this.forkContext,x),this.forkContext}popForkContext(){const x=this.forkContext;return this.forkContext=x.upper,this.forkContext.replaceHead(x.makeNext(0,-1)),x}forkPath(){this.forkContext.add(this.parentForkContext.makeNext(-1,-1))}forkBypassPath(){this.forkContext.add(this.parentForkContext.head)}pushChoiceContext(x,A){this.choiceContext=new t(this.choiceContext,x,A,this.forkContext)}popChoiceContext(){const x=this.choiceContext,A=this.forkContext,k=A.head;switch(this.choiceContext=x.upper,x.kind){case"&&":case"||":case"??":if(x.processed||(x.trueForkContext.add(k),x.falseForkContext.add(k),x.nullishForkContext.add(k)),x.isForkingAsResult){const I=this.choiceContext;return I.trueForkContext.addAll(x.trueForkContext),I.falseForkContext.addAll(x.falseForkContext),I.nullishForkContext.addAll(x.nullishForkContext),I.processed=!0,x}break;case"test":x.processed?(x.falseForkContext.clear(),x.falseForkContext.add(k)):(x.trueForkContext.clear(),x.trueForkContext.add(k));break;case"loop":return x;default:throw new Error("unreachable")}const R=x.trueForkContext;return R.addAll(x.falseForkContext),A.replaceHead(R.makeNext(0,-1)),x}makeLogicalRight(){const x=this.choiceContext,A=this.forkContext;if(x.processed){let k;switch(x.kind){case"&&":k=x.trueForkContext;break;case"||":k=x.falseForkContext;break;case"??":k=x.nullishForkContext;break;default:throw new Error("unreachable")}A.replaceHead(k.makeNext(0,-1)),k.clear(),x.processed=!1}else{switch(x.kind){case"&&":x.falseForkContext.add(A.head),x.nullishForkContext.add(A.head);break;case"||":x.trueForkContext.add(A.head);break;case"??":x.trueForkContext.add(A.head),x.falseForkContext.add(A.head);break;default:throw new Error("unreachable")}A.replaceHead(A.makeNext(-1,-1))}}makeIfConsequent(){const x=this.choiceContext,A=this.forkContext;x.processed||(x.trueForkContext.add(A.head),x.falseForkContext.add(A.head),x.nullishForkContext.add(A.head)),x.processed=!1,A.replaceHead(x.trueForkContext.makeNext(0,-1))}makeIfAlternate(){const x=this.choiceContext,A=this.forkContext;x.trueForkContext.clear(),x.trueForkContext.add(A.head),x.processed=!0,A.replaceHead(x.falseForkContext.makeNext(0,-1))}pushChainContext(){this.chainContext=new o(this.chainContext)}popChainContext(){const x=this.chainContext;this.chainContext=x.upper;for(let A=x.choiceContextCount;A>0;--A)this.popChoiceContext()}makeOptionalNode(){this.chainContext&&(this.chainContext.choiceContextCount+=1,this.pushChoiceContext("??",!1))}makeOptionalRight(){this.chainContext&&this.makeLogicalRight()}pushSwitchContext(x,A){this.switchContext=new c(this.switchContext,x),this.pushBreakContext(!0,A)}popSwitchContext(){const x=this.switchContext;this.switchContext=x.upper;const A=this.forkContext,k=this.popBreakContext().brokenForkContext;if(x.forkCount===0){k.empty||(k.add(A.makeNext(-1,-1)),A.replaceHead(k.makeNext(0,-1)));return}const R=A.head;this.forkBypassPath();const I=A.head;k.add(R),x.lastIsDefault||(x.defaultBodySegments?(b(x.defaultSegments,x.defaultBodySegments),T(this,I,x.defaultBodySegments)):k.add(I));for(let B=0;B<x.forkCount;++B)this.forkContext=this.forkContext.upper;this.forkContext.replaceHead(k.makeNext(0,-1))}makeSwitchCaseBody(x,A){const k=this.switchContext;if(!k.hasCase)return;const R=this.forkContext,I=this.pushForkContext();I.add(R.makeNext(0,-1)),A?(k.defaultSegments=R.head,x?k.foundEmptyDefault=!0:k.defaultBodySegments=I.head):!x&&k.foundEmptyDefault&&(k.foundEmptyDefault=!1,k.defaultBodySegments=I.head),k.lastIsDefault=A,k.forkCount+=1}pushTryContext(x){this.tryContext=new d(this.tryContext,x,this.forkContext)}popTryContext(){const x=this.tryContext;if(this.tryContext=x.upper,x.position==="catch"){this.popForkContext();return}const A=x.returnedForkContext,k=x.thrownForkContext;if(A.empty&&k.empty)return;const R=this.forkContext.head;this.forkContext=this.forkContext.upper;const I=R.slice(0,R.length/2|0),B=R.slice(R.length/2|0);A.empty||g(this).returnedForkContext.add(B),k.empty||v(this).thrownForkContext.add(B),this.forkContext.replaceHead(I),!x.lastOfTryIsReachable&&!x.lastOfCatchIsReachable&&this.forkContext.makeUnreachable()}makeCatchBlock(){const x=this.tryContext,A=this.forkContext,k=x.thrownForkContext;x.position="catch",x.thrownForkContext=e.newEmpty(A),x.lastOfTryIsReachable=A.reachable,k.add(A.head);const R=k.makeNext(0,-1);this.pushForkContext(),this.forkBypassPath(),this.forkContext.add(R)}makeFinallyBlock(){const x=this.tryContext;let A=this.forkContext;const k=x.returnedForkContext,R=x.thrownForkContext,I=A.head;if(x.position==="catch"?(this.popForkContext(),A=this.forkContext,x.lastOfCatchIsReachable=A.reachable):x.lastOfTryIsReachable=A.reachable,x.position="finally",k.empty&&R.empty)return;const B=A.makeNext(-1,-1);for(let F=0;F<A.count;++F){const O=[I[F]];for(let $=0;$<k.segmentsList.length;++$)O.push(k.segmentsList[$][F]);for(let $=0;$<R.segmentsList.length;++$)O.push(R.segmentsList[$][F]);B.push(a.newNext(this.idGenerator.next(),O))}this.pushForkContext(!0),this.forkContext.add(B)}makeFirstThrowablePathInTryBlock(){const x=this.forkContext;if(!x.reachable)return;const A=v(this);A===this||A.position!=="try"||!A.thrownForkContext.empty||(A.thrownForkContext.add(x.head),x.replaceHead(x.makeNext(-1,-1)))}pushLoopContext(x,A){const k=this.forkContext,R=this.pushBreakContext(!0,A);switch(x){case"WhileStatement":this.pushChoiceContext("loop",!1),this.loopContext=new f(this.loopContext,A,R);break;case"DoWhileStatement":this.pushChoiceContext("loop",!1),this.loopContext=new u(this.loopContext,A,R,k);break;case"ForStatement":this.pushChoiceContext("loop",!1),this.loopContext=new r(this.loopContext,A,R);break;case"ForInStatement":this.loopContext=new m(this.loopContext,A,R);break;case"ForOfStatement":this.loopContext=new i(this.loopContext,A,R);break;default:throw new Error(`unknown type: "${x}"`)}}popLoopContext(){const x=this.loopContext;this.loopContext=x.upper;const A=this.forkContext,k=this.popBreakContext().brokenForkContext;switch(x.type){case"WhileStatement":case"ForStatement":this.popChoiceContext(),T(this,A.head,x.continueDestSegments);break;case"DoWhileStatement":{const R=this.popChoiceContext();R.processed||(R.trueForkContext.add(A.head),R.falseForkContext.add(A.head)),x.test!==!0&&k.addAll(R.falseForkContext);const I=R.trueForkContext.segmentsList;for(let B=0;B<I.length;++B)T(this,I[B],x.entrySegments);break}case"ForInStatement":case"ForOfStatement":k.add(A.head),T(this,A.head,x.leftSegments);break;default:throw new Error("unreachable")}k.empty?A.replaceHead(A.makeUnreachable(-1,-1)):A.replaceHead(k.makeNext(0,-1))}makeWhileTest(x){const A=this.loopContext,k=this.forkContext,R=k.makeNext(0,-1);A.test=x,A.continueDestSegments=R,k.replaceHead(R)}makeWhileBody(){const x=this.loopContext,A=this.choiceContext,k=this.forkContext;A.processed||(A.trueForkContext.add(k.head),A.falseForkContext.add(k.head)),x.test!==!0&&x.brokenForkContext.addAll(A.falseForkContext),k.replaceHead(A.trueForkContext.makeNext(0,-1))}makeDoWhileBody(){const x=this.loopContext,A=this.forkContext,k=A.makeNext(-1,-1);x.entrySegments=k,A.replaceHead(k)}makeDoWhileTest(x){const A=this.loopContext,k=this.forkContext;if(A.test=x,!A.continueForkContext.empty){A.continueForkContext.add(k.head);const R=A.continueForkContext.makeNext(0,-1);k.replaceHead(R)}}makeForTest(x){const A=this.loopContext,k=this.forkContext,R=k.head,I=k.makeNext(-1,-1);A.test=x,A.endOfInitSegments=R,A.continueDestSegments=A.testSegments=I,k.replaceHead(I)}makeForUpdate(){const x=this.loopContext,A=this.choiceContext,k=this.forkContext;x.testSegments?C(x,A,k.head):x.endOfInitSegments=k.head;const R=k.makeDisconnected(-1,-1);x.continueDestSegments=x.updateSegments=R,k.replaceHead(R)}makeForBody(){const x=this.loopContext,A=this.choiceContext,k=this.forkContext;x.updateSegments?(x.endOfUpdateSegments=k.head,x.testSegments&&T(this,x.endOfUpdateSegments,x.testSegments)):x.testSegments?C(x,A,k.head):x.endOfInitSegments=k.head;let R=x.endOfTestSegments;if(!R){const I=e.newEmpty(k);I.add(x.endOfInitSegments),x.endOfUpdateSegments&&I.add(x.endOfUpdateSegments),R=I.makeNext(0,-1)}x.continueDestSegments=x.continueDestSegments||R,k.replaceHead(R)}makeForInOfLeft(){const x=this.loopContext,A=this.forkContext,k=A.makeDisconnected(-1,-1);x.prevSegments=A.head,x.leftSegments=x.continueDestSegments=k,A.replaceHead(k)}makeForInOfRight(){const x=this.loopContext,A=this.forkContext,k=e.newEmpty(A);k.add(x.prevSegments);const R=k.makeNext(-1,-1);x.endOfLeftSegments=A.head,A.replaceHead(R)}makeForInOfBody(){const x=this.loopContext,A=this.forkContext,k=e.newEmpty(A);k.add(x.endOfLeftSegments);const R=k.makeNext(-1,-1);T(this,A.head,x.leftSegments),x.brokenForkContext.add(A.head),A.replaceHead(R)}pushBreakContext(x,A){return this.breakContext=new n(this.breakContext,x,A,this.forkContext),this.breakContext}popBreakContext(){const x=this.breakContext,A=this.forkContext;if(this.breakContext=x.upper,!x.breakable){const k=x.brokenForkContext;k.empty||(k.add(A.head),A.replaceHead(k.makeNext(0,-1)))}return x}makeBreak(x){const A=this.forkContext;if(!A.reachable)return;const k=h(this,x);k&&k.brokenForkContext.add(A.head),A.replaceHead(A.makeUnreachable(-1,-1))}makeContinue(x){const A=this.forkContext;if(!A.reachable)return;const k=p(this,x);k&&(k.continueDestSegments?(T(this,A.head,k.continueDestSegments),(k.type==="ForInStatement"||k.type==="ForOfStatement")&&k.brokenForkContext.add(A.head)):k.continueForkContext.add(A.head)),A.replaceHead(A.makeUnreachable(-1,-1))}makeReturn(){const x=this.forkContext;x.reachable&&(g(this).returnedForkContext.add(x.head),x.replaceHead(x.makeUnreachable(-1,-1)))}makeThrow(){const x=this.forkContext;x.reachable&&(v(this).thrownForkContext.add(x.head),x.replaceHead(x.makeUnreachable(-1,-1)))}makeFinal(){const x=this.currentSegments;x.length>0&&x[0].reachable&&this.returnedForkContext.add(x)}}return Ta=S,Ta}var ka,eh;function th(){if(eh)return ka;eh=1;class a{constructor(n){this.prefix=String(n),this.n=0}next(){return this.n=1+this.n|0,this.n<0&&(this.n=1),this.prefix+this.n}}return ka=a,ka}var Da,rh;function U1(){if(rh)return Da;rh=1;const a=j1(),e=th();class n{constructor({id:t,origin:l,upper:f,onLooped:u}){this.id=t,this.origin=l,this.upper=f,this.childCodePaths=[],Object.defineProperty(this,"internal",{value:new a(new e(`${t}_`),u)}),f&&f.childCodePaths.push(this)}static getState(t){return t.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(t,l){let f,u;typeof t=="function"?(u=t,f={}):(f=t||{},u=l);const r=f.first||this.internal.initialSegment,m=f.last;let i,c,d,s=null;const p=new Set,h=[[r,0]],g=new Set;let v=!1;const E={skip(){g.add(s)},break(){v=!0}};function b(C){return p.has(C)||s.isLoopedPrevSegment(C)}function T(C){return g.has(C)||s.isLoopedPrevSegment(C)}for(;h.length>0;){if(i=h.at(-1),s=i[0],c=i[1],c===0){if(p.has(s)){h.pop();continue}if(s!==r&&s.prevSegments.length>0&&!s.prevSegments.every(b)){h.pop();continue}if(p.add(s),g.size>0&&s.prevSegments.length>0&&s.prevSegments.every(T))g.add(s);else if(u.call(this,s,E),s===m&&E.skip(),v)break}d=s.nextSegments.length-1,c<d?(i[1]+=1,h.push([s.nextSegments[c],0])):c===d?(i[0]=s.nextSegments[c],i[1]=0):h.pop()}}}return Da=n,Da}var Pa,nh;function q1(){if(nh)return Pa;nh=1;const a=In(),{breakableTypePattern:e}=Fn(),n=U1(),o=wa(),t=th(),l=Jd();function f(C){return!!C.test}function u(C){const S=C.parent;return S&&S.type==="PropertyDefinition"&&S.value===C}function r(C){return C==="&&"||C==="||"||C==="??"}function m(C){return C==="&&="||C==="||="||C==="??="}function i(C){return C.parent.type==="LabeledStatement"?C.parent.label.name:null}function c(C){const S=C.parent;switch(S.type){case"ConditionalExpression":case"IfStatement":case"WhileStatement":case"DoWhileStatement":case"ForStatement":return S.test===C;case"LogicalExpression":return r(S.operator);case"AssignmentExpression":return m(S.operator);default:return!1}}function d(C){if(C.type==="Literal")return!!C.value}function s(C){const S=C.parent;switch(S.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 S.id!==C;case"Property":case"PropertyDefinition":case"MethodDefinition":return S.key!==C||S.computed||S.shorthand;case"AssignmentPattern":return S.key!==C;default:return!0}}function p(C,S){const w=C.codePath,x=n.getState(w),A=x.currentSegments,k=x.headSegments,R=Math.max(A.length,k.length);let I,B,F;for(I=0;I<R;++I)if(B=A[I],F=k[I],B!==F&&B){const O=B.reachable?"onCodePathSegmentEnd":"onUnreachableCodePathSegmentEnd";l.dump(`${O} ${B.id}`),C.emit(O,[B,S])}for(x.currentSegments=k,I=0;I<R;++I)if(B=A[I],F=k[I],B!==F&&F){const O=F.reachable?"onCodePathSegmentStart":"onUnreachableCodePathSegmentStart";l.dump(`${O} ${F.id}`),o.markUsed(F),C.emit(O,[F,S])}}function h(C,S){const w=n.getState(C.codePath),x=w.currentSegments;for(let A=0;A<x.length;++A){const k=x[A],R=k.reachable?"onCodePathSegmentEnd":"onUnreachableCodePathSegmentEnd";l.dump(`${R} ${k.id}`),C.emit(R,[k,S])}w.currentSegments=[]}function g(C,S){const w=C.codePath,x=n.getState(w),A=S.parent;switch(A.type){case"CallExpression":A.optional===!0&&A.arguments.length>=1&&A.arguments[0]===S&&x.makeOptionalRight();break;case"MemberExpression":A.optional===!0&&A.property===S&&x.makeOptionalRight();break;case"LogicalExpression":A.right===S&&r(A.operator)&&x.makeLogicalRight();break;case"AssignmentExpression":A.right===S&&m(A.operator)&&x.makeLogicalRight();break;case"ConditionalExpression":case"IfStatement":A.consequent===S?x.makeIfConsequent():A.alternate===S&&x.makeIfAlternate();break;case"SwitchCase":A.consequent[0]===S&&x.makeSwitchCaseBody(!1,!A.test);break;case"TryStatement":A.handler===S?x.makeCatchBlock():A.finalizer===S&&x.makeFinallyBlock();break;case"WhileStatement":A.test===S?x.makeWhileTest(d(S)):(a(A.body===S),x.makeWhileBody());break;case"DoWhileStatement":A.body===S?x.makeDoWhileBody():(a(A.test===S),x.makeDoWhileTest(d(S)));break;case"ForStatement":A.test===S?x.makeForTest(d(S)):A.update===S?x.makeForUpdate():A.body===S&&x.makeForBody();break;case"ForInStatement":case"ForOfStatement":A.left===S?x.makeForInOfLeft():A.right===S?x.makeForInOfRight():(a(A.body===S),x.makeForInOfBody());break;case"AssignmentPattern":A.right===S&&(x.pushForkContext(),x.forkBypassPath(),x.forkPath());break}}function v(C,S){let w=C.codePath,x=w&&n.getState(w);const A=S.parent;function k(R){w&&(p(C,S),l.dumpState(S,x,!1)),w=C.codePath=new n({id:C.idGenerator.next(),origin:R,upper:w,onLooped:C.onLooped}),x=n.getState(w),l.dump(`onCodePathStart ${w.id}`),C.emit("onCodePathStart",[w,S])}switch(u(S)&&k("class-field-initializer"),S.type){case"Program":k("program");break;case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":k("function");break;case"StaticBlock":k("class-static-block");break;case"ChainExpression":x.pushChainContext();break;case"CallExpression":S.optional===!0&&x.makeOptionalNode();break;case"MemberExpression":S.optional===!0&&x.makeOptionalNode();break;case"LogicalExpression":r(S.operator)&&x.pushChoiceContext(S.operator,c(S));break;case"AssignmentExpression":m(S.operator)&&x.pushChoiceContext(S.operator.slice(0,-1),c(S));break;case"ConditionalExpression":case"IfStatement":x.pushChoiceContext("test",!1);break;case"SwitchStatement":x.pushSwitchContext(S.cases.some(f),i(S));break;case"TryStatement":x.pushTryContext(!!S.finalizer);break;case"SwitchCase":A.discriminant!==S&&A.cases[0]!==S&&x.forkPath();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":x.pushLoopContext(S.type,i(S));break;case"LabeledStatement":e.test(S.body.type)||x.pushBreakContext(!1,S.label.name);break}p(C,S),l.dumpState(S,x,!1)}function E(C,S){const w=C.codePath,x=n.getState(w);let A=!1;switch(S.type){case"ChainExpression":x.popChainContext();break;case"IfStatement":case"ConditionalExpression":x.popChoiceContext();break;case"LogicalExpression":r(S.operator)&&x.popChoiceContext();break;case"AssignmentExpression":m(S.operator)&&x.popChoiceContext();break;case"SwitchStatement":x.popSwitchContext();break;case"SwitchCase":S.consequent.length===0&&x.makeSwitchCaseBody(!0,!S.test),x.forkContext.reachable&&(A=!0);break;case"TryStatement":x.popTryContext();break;case"BreakStatement":p(C,S),x.makeBreak(S.label&&S.label.name),A=!0;break;case"ContinueStatement":p(C,S),x.makeContinue(S.label&&S.label.name),A=!0;break;case"ReturnStatement":p(C,S),x.makeReturn(),A=!0;break;case"ThrowStatement":p(C,S),x.makeThrow(),A=!0;break;case"Identifier":s(S)&&(x.makeFirstThrowablePathInTryBlock(),A=!0);break;case"CallExpression":case"ImportExpression":case"MemberExpression":case"NewExpression":case"YieldExpression":x.makeFirstThrowablePathInTryBlock();break;case"WhileStatement":case"DoWhileStatement":case"ForStatement":case"ForInStatement":case"ForOfStatement":x.popLoopContext();break;case"AssignmentPattern":x.popForkContext();break;case"LabeledStatement":e.test(S.body.type)||x.popBreakContext();break}A||p(C,S),l.dumpState(S,x,!0)}function b(C,S){function w(){let x=C.codePath;n.getState(x).makeFinal(),h(C,S),l.dump(`onCodePathEnd ${x.id}`),C.emit("onCodePathEnd",[x,S]),l.dumpDot(x),x=C.codePath=C.codePath.upper,x&&l.dumpState(S,n.getState(x),!0)}switch(S.type){case"Program":case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":case"StaticBlock":{w();break}case"CallExpression":S.optional===!0&&S.arguments.length===0&&n.getState(C.codePath).makeOptionalRight();break}u(S)&&w()}class T{constructor(S){this.original=S,this.emit=S.emit,this.codePath=null,this.idGenerator=new t("s"),this.currentNode=null,this.onLooped=this.onLooped.bind(this)}enterNode(S){this.currentNode=S,S.parent&&g(this,S),v(this,S),this.original.enterNode(S),this.currentNode=null}leaveNode(S){this.currentNode=S,E(this,S),this.original.leaveNode(S),b(this,S),this.currentNode=null}onLooped(S,w){S.reachable&&w.reachable&&(l.dump(`onCodePathSegmentLoop ${S.id} -> ${w.id}`),this.emit("onCodePathSegmentLoop",[S,w,this.currentNode]))}}return Pa=T,Pa}var Dr={},Ia={exports:{}},Fa={exports:{}},Ra,sh;function V1(){if(sh)return Ra;sh=1;var a,e,n,o,t,l,f={}.toString;a=u(function(r,m){return r.apply(null,m)}),e=function(r){return u(r)},n=u(function(r,m,i){return r(i,m)}),o=function(r){return(function(m){return function(){return r(m(m)).apply(null,arguments)}})(function(m){return function(){return r(m(m)).apply(null,arguments)}})},t=u(function(r,m,i,c){return r(m(i),m(c))}),l=function(r){var m;return m={},function(){var i,c,d,s,p,h;for(c=[],d=0,s=arguments.length;d<s;++d)c.push(arguments[d]);return i=c,p=(function(){var g,v,E,b=[];for(g=0,E=(v=i).length;g<E;++g)h=v[g],b.push(h+f.call(h).slice(8,-1));return b})().join(""),m[p]=p in m?m[p]:r.apply(null,i)}},Ra={curry:e,flip:n,fix:o,apply:a,over:t,memoize:l};function u(r,m){var i,c=function(d){return r.length>1?function(){var s=d?d.concat():[];return i=this,s.push.apply(s,arguments)<r.length&&arguments.length?c.call(i,s):r.apply(i,s)}:r};return c()}return Ra}var _a,ah;function $1(){if(ah)return _a;ah=1;var a,e,n,o,t,l,f,u,r,m,i,c,d,s,p,h,g,v,E,b,T,C,S,w,x,A,k,R,I,B,F,O,$,N,_,X,L,K,J,ge,ae,ke,Z,P,H,fe,ce,ie,he,Ee,Ce,Ae,ee,ne,we,z,oe,Te,Re,Ie,W,Je,ut,tt,qe,$e,st,mt,rt,Qe,St={}.toString;a=Ze(function(Se,j){var U,V,Q;for(U=0,V=j.length;U<V;++U)Q=j[U],Se(Q);return j}),e=Ze(function(Se,j){var U,V,Q,le=[];for(U=0,V=j.length;U<V;++U)Q=j[U],le.push(Se(Q));return le}),n=function(Se){var j,U,V,Q=[];for(j=0,U=Se.length;j<U;++j)V=Se[j],V&&Q.push(V);return Q},o=Ze(function(Se,j){var U,V,Q,le=[];for(U=0,V=j.length;U<V;++U)Q=j[U],Se(Q)&&le.push(Q);return le}),t=Ze(function(Se,j){var U,V,Q,le=[];for(U=0,V=j.length;U<V;++U)Q=j[U],Se(Q)||le.push(Q);return le}),l=Ze(function(Se,j){var U,V;return U=st(Se,j),V=j.slice(),U!=null&&V.splice(U,1),V}),f=Ze(function(Se,j){var U,V,Q,le,te;for(U=[],V=[],Q=0,le=j.length;Q<le;++Q)te=j[Q],(Se(te)?U:V).push(te);return[U,V]}),u=Ze(function(Se,j){var U,V,Q;for(U=0,V=j.length;U<V;++U)if(Q=j[U],Se(Q))return Q}),r=m=function(Se){return Se[0]},i=function(Se){if(Se.length)return Se.slice(1)},c=function(Se){return Se[Se.length-1]},d=function(Se){if(Se.length)return Se.slice(0,-1)},s=function(Se){return!Se.length},p=function(Se){return Se.concat().reverse()},h=function(Se){var j,U,V,Q;for(j=[],U=0,V=Se.length;U<V;++U)Q=Se[U],Ct(Q,j)||j.push(Q);return j},g=Ze(function(Se,j){var U,V,Q,le,te,q=[];for(U=[],V=0,Q=j.length;V<Q;++V)le=j[V],te=Se(le),!Ct(te,U)&&(U.push(te),q.push(le));return q}),v=E=Ze(function(Se,j,U){var V,Q,le;for(V=0,Q=U.length;V<Q;++V)le=U[V],j=Se(j,le);return j}),b=T=Ze(function(Se,j){return v(Se,j[0],j.slice(1))}),C=Ze(function(Se,j,U){var V,Q;for(V=U.length-1;V>=0;--V)Q=U[V],j=Se(Q,j);return j}),S=Ze(function(Se,j){return C(Se,j[j.length-1],j.slice(0,-1))}),w=Ze(function(Se,j){var U,V,Q;for(U=[],V=j;(Q=Se(V))!=null;)U.push(Q[0]),V=Q[1];return U}),x=function(Se){return[].concat.apply([],Se)},A=Ze(function(Se,j){var U;return[].concat.apply([],(function(){var V,Q,le,te=[];for(V=0,le=(Q=j).length;V<le;++V)U=Q[V],te.push(Se(U));return te})())}),k=function(Se){var j;return[].concat.apply([],(function(){var U,V,Q,le=[];for(U=0,Q=(V=Se).length;U<Q;++U)j=V[U],St.call(j).slice(8,-1)==="Array"?le.push(k(j)):le.push(j);return le})())},R=function(Se){var j,U,V,Q,le,te,q,se,ue,be;for(U=[],V=1,Q=arguments.length;V<Q;++V)U.push(arguments[V]);j=U,le=[];e:for(V=0,te=Se.length;V<te;++V){for(q=Se[V],se=0,ue=j.length;se<ue;++se)if(be=j[se],Ct(q,be))continue e;le.push(q)}return le},I=function(Se){var j,U,V,Q,le,te,q,se,ue,be;for(U=[],V=1,Q=arguments.length;V<Q;++V)U.push(arguments[V]);j=U,le=[];e:for(V=0,te=Se.length;V<te;++V){for(q=Se[V],se=0,ue=j.length;se<ue;++se)if(be=j[se],!Ct(q,be))continue e;le.push(q)}return le},B=function(){var Se,j,U,V,Q,le,te,q,se,ue;for(j=[],U=0,V=arguments.length;U<V;++U)j.push(arguments[U]);for(Se=j,Q=[],U=0,le=Se.length;U<le;++U)for(te=Se[U],q=0,se=te.length;q<se;++q)ue=te[q],Ct(ue,Q)||Q.push(ue);return Q},F=Ze(function(Se,j){var U,V,Q,le,te;for(U={},V=0,Q=j.length;V<Q;++V)le=j[V],te=Se(le),te in U?U[te]+=1:U[te]=1;return U}),O=Ze(function(Se,j){var U,V,Q,le,te;for(U={},V=0,Q=j.length;V<Q;++V)le=j[V],te=Se(le),te in U?U[te].push(le):U[te]=[le];return U}),$=function(Se){var j,U,V;for(j=0,U=Se.length;j<U;++j)if(V=Se[j],!V)return!1;return!0},N=function(Se){var j,U,V;for(j=0,U=Se.length;j<U;++j)if(V=Se[j],V)return!0;return!1},_=Ze(function(Se,j){var U,V,Q;for(U=0,V=j.length;U<V;++U)if(Q=j[U],Se(Q))return!0;return!1}),X=Ze(function(Se,j){var U,V,Q;for(U=0,V=j.length;U<V;++U)if(Q=j[U],!Se(Q))return!1;return!0}),L=function(Se){return Se.concat().sort(function(j,U){return j>U?1:j<U?-1:0})},K=Ze(function(Se,j){return j.concat().sort(Se)}),J=Ze(function(Se,j){return j.concat().sort(function(U,V){return Se(U)>Se(V)?1:Se(U)<Se(V)?-1:0})}),ge=function(Se){var j,U,V,Q;for(j=0,U=0,V=Se.length;U<V;++U)Q=Se[U],j+=Q;return j},ae=function(Se){var j,U,V,Q;for(j=1,U=0,V=Se.length;U<V;++U)Q=Se[U],j*=Q;return j},ke=Z=function(Se){var j,U,V,Q;for(j=0,U=0,V=Se.length;U<V;++U)Q=Se[U],j+=Q;return j/Se.length},P=function(Se){var j,U,V,Q,le;for(j=Se[0],U=0,Q=(V=Se.slice(1)).length;U<Q;++U)le=V[U],le>j&&(j=le);return j},H=function(Se){var j,U,V,Q,le;for(j=Se[0],U=0,Q=(V=Se.slice(1)).length;U<Q;++U)le=V[U],le<j&&(j=le);return j},fe=Ze(function(Se,j){var U,V,Q,le,te;for(U=j[0],V=0,le=(Q=j.slice(1)).length;V<le;++V)te=Q[V],Se(te)>Se(U)&&(U=te);return U}),ce=Ze(function(Se,j){var U,V,Q,le,te;for(U=j[0],V=0,le=(Q=j.slice(1)).length;V<le;++V)te=Q[V],Se(te)<Se(U)&&(U=te);return U}),ie=he=Ze(function(Se,j,U){var V,Q;return V=j,[j].concat((function(){var le,te,q,se=[];for(le=0,q=(te=U).length;le<q;++le)Q=te[le],se.push(V=Se(V,Q));return se})())}),Ee=Ce=Ze(function(Se,j){if(j.length)return ie(Se,j[0],j.slice(1))}),Ae=Ze(function(Se,j,U){return U=U.concat().reverse(),ie(Se,j,U).reverse()}),ee=Ze(function(Se,j){if(j.length)return j=j.concat().reverse(),ie(Se,j[0],j.slice(1)).reverse()}),ne=Ze(function(Se,j,U){return U.slice(Se,j)}),we=Ze(function(Se,j){return Se<=0?j.slice(0,0):j.slice(0,Se)}),z=Ze(function(Se,j){return Se<=0?j:j.slice(Se)}),oe=Ze(function(Se,j){return[we(Se,j),z(Se,j)]}),Te=Ze(function(Se,j){var U,V;if(U=j.length,!U)return j;for(V=0;V<U&&Se(j[V]);)V+=1;return j.slice(0,V)}),Re=Ze(function(Se,j){var U,V;if(U=j.length,!U)return j;for(V=0;V<U&&Se(j[V]);)V+=1;return j.slice(V)}),Ie=Ze(function(Se,j){return[Te(Se,j),Re(Se,j)]}),W=Ze(function(Se,j){return Ie(Ke(Se,Ge),j)}),Je=Ze(function(Se,j){var U,V,Q,le,te,q;for(U=[],V=j.length,Q=0,le=Se.length;Q<le&&(te=Q,q=Se[Q],te!==V);++Q)U.push([q,j[te]]);return U}),ut=Ze(function(Se,j,U){var V,Q,le,te,q,se;for(V=[],Q=U.length,le=0,te=j.length;le<te&&(q=le,se=j[le],q!==Q);++le)V.push(Se(se,U[q]));return V}),tt=function(){var Se,j,U,V,Q,le,te,q,se,ue,be,Oe=[];for(j=[],U=0,V=arguments.length;U<V;++U)j.push(arguments[U]);for(Se=j,Q=void 0,U=0,le=Se.length;U<le;++U)te=Se[U],Q<=(q=te.length)||(Q=q);for(U=0;U<Q;++U){for(se=U,ue=[],be=0,le=Se.length;be<le;++be)te=Se[be],ue.push(te[se]);Oe.push(ue)}return Oe},qe=function(Se){var j,U,V,Q,le,te,q,se,ue,be=[];for(U=[],V=1,Q=arguments.length;V<Q;++V)U.push(arguments[V]);for(j=U,le=void 0,V=0,te=j.length;V<te;++V)q=j[V],le<=(se=q.length)||(le=se);for(V=0;V<le;++V)ue=V,be.push(Se.apply(null,Oe()));return be;function Oe(){var Pe,We,ze,me=[];for(Pe=0,ze=(We=j).length;Pe<ze;++Pe)q=We[Pe],me.push(q[ue]);return me}},$e=Ze(function(Se,j){return Se<0?j[j.length+Se]:j[Se]}),st=Ze(function(Se,j){var U,V,Q,le;for(U=0,V=j.length;U<V;++U)if(Q=U,le=j[U],le===Se)return Q}),mt=Ze(function(Se,j){var U,V,Q,le,te=[];for(U=0,V=j.length;U<V;++U)Q=U,le=j[U],le===Se&&te.push(Q);return te}),rt=Ze(function(Se,j){var U,V,Q,le;for(U=0,V=j.length;U<V;++U)if(Q=U,le=j[U],Se(le))return Q}),Qe=Ze(function(Se,j){var U,V,Q,le,te=[];for(U=0,V=j.length;U<V;++U)Q=U,le=j[U],Se(le)&&te.push(Q);return te}),_a={each:a,map:e,filter:o,compact:n,reject:t,remove:l,partition:f,find:u,head:r,first:m,tail:i,last:c,initial:d,empty:s,reverse:p,difference:R,intersection:I,union:B,countBy:F,groupBy:O,fold:v,fold1:b,foldl:E,foldl1:T,foldr:C,foldr1:S,unfoldr:w,andList:$,orList:N,any:_,all:X,unique:h,uniqueBy:g,sort:L,sortWith:K,sortBy:J,sum:ge,product:ae,mean:ke,average:Z,concat:x,concatMap:A,flatten:k,maximum:P,minimum:H,maximumBy:fe,minimumBy:ce,scan:ie,scan1:Ee,scanl:he,scanl1:Ce,scanr:Ae,scanr1:ee,slice:ne,take:we,drop:z,splitAt:oe,takeWhile:Te,dropWhile:Re,span:Ie,breakList:W,zip:Je,zipWith:ut,zipAll:tt,zipAllWith:qe,at:$e,elemIndex:st,elemIndices:mt,findIndex:rt,findIndices:Qe};function Ze(Se,j){var U,V=function(Q){return Se.length>1?function(){var le=Q?Q.concat():[];return U=this,le.push.apply(le,arguments)<Se.length&&arguments.length?V.call(U,le):Se.apply(U,le)}:Se};return V()}function Ct(Se,j){for(var U=-1,V=j.length>>>0;++U<V;)if(Se===j[U])return!0;return!1}function Ke(){var Se=arguments;return function(){var j,U;for(U=Se[0].apply(this,arguments),j=1;j<Se.length;++j)U=Se[j](U);return U}}function Ge(Se){return!Se}return _a}var Ba,ih;function G1(){if(ih)return Ba;ih=1;var a,e,n,o,t,l,f,u,r,m,i,c,d,s;a=function(h){var g,v,E=[];for(g in h)v=h[g],E.push(v);return E},e=function(h){var g,v=[];for(g in h)v.push(g);return v},n=function(h){var g,v,E,b={};for(g=0,v=h.length;g<v;++g)E=h[g],b[E[0]]=E[1];return b},o=function(h){var g,v,E=[];for(g in h)v=h[g],E.push([g,v]);return E},t=p(function(h,g){var v,E,b,T,C={};for(v=0,E=h.length;v<E;++v)b=v,T=h[v],C[T]=g[b];return C}),l=function(h){var g,v,E,b;g=[],v=[];for(E in h)b=h[E],g.push(E),v.push(b);return[g,v]},f=function(h){var g;for(g in h)return!1;return!0},u=p(function(h,g){var v,E;for(v in g)E=g[v],h(E);return g}),r=p(function(h,g){var v,E,b={};for(v in g)E=g[v],b[v]=h(E);return b}),m=function(h){var g,v,E={};for(g in h)v=h[g],v&&(E[g]=v);return E},i=p(function(h,g){var v,E,b={};for(v in g)E=g[v],h(E)&&(b[v]=E);return b}),c=p(function(h,g){var v,E,b={};for(v in g)E=g[v],h(E)||(b[v]=E);return b}),d=p(function(h,g){var v,E,b,T;v={},E={};for(b in g)T=g[b],(h(T)?v:E)[b]=T;return[v,E]}),s=p(function(h,g){var v,E;for(v in g)if(E=g[v],h(E))return E}),Ba={values:a,keys:e,pairsToObj:n,objToPairs:o,listsToObj:t,objToLists:l,empty:f,each:u,map:r,filter:i,compact:m,reject:c,partition:d,find:s};function p(h,g){var v,E=function(b){return h.length>1?function(){var T=b?b.concat():[];return v=this,T.push.apply(T,arguments)<h.length&&arguments.length?E.call(v,T):h.apply(v,T)}:h};return E()}return Ba}var La,oh;function W1(){if(oh)return La;oh=1;var a,e,n,o,t,l,f,u,r,m,i,c,d;a=s(function(p,h){return h.split(p)}),e=s(function(p,h){return h.join(p)}),n=function(p){return p.length?p.split(`
|
|
43
|
+
`):[]},o=function(p){return p.join(`
|
|
44
|
+
`)},t=function(p){return p.length?p.split(/[ ]+/):[]},l=function(p){return p.join(" ")},f=function(p){return p.split("")},u=function(p){return p.join("")},r=function(p){return p.split("").reverse().join("")},m=s(function(p,h){var g,v;for(g="",v=0;v<p;++v)g+=h;return g}),i=function(p){return p.charAt(0).toUpperCase()+p.slice(1)},c=function(p){return p.replace(/[-_]+(.)?/g,function(h,g){return(g??"").toUpperCase()})},d=function(p){return p.replace(/([^-A-Z])([A-Z]+)/g,function(h,g,v){return g+"-"+(v.length>1?v:v.toLowerCase())}).replace(/^([A-Z]+)/,function(h,g){return g.length>1?g+"-":g.toLowerCase()})},La={split:a,join:e,lines:n,unlines:o,words:t,unwords:l,chars:f,unchars:u,reverse:r,repeat:m,capitalize:i,camelize:c,dasherize:d};function s(p,h){var g,v=function(E){return p.length>1?function(){var b=E?E.concat():[];return g=this,b.push.apply(b,arguments)<p.length&&arguments.length?v.call(g,b):p.apply(g,b)}:p};return v()}return La}var Oa,lh;function z1(){if(lh)return Oa;lh=1;var a,e,n,o,t,l,f,u,r,m,i,c,d,s,p,h,g,v,E,b,T,C,S,w,x,A,k,R,I,B,F,O;a=$(function(N,_){return N>_?N:_}),e=$(function(N,_){return N<_?N:_}),n=function(N){return-N},o=Math.abs,t=function(N){return N<0?-1:N>0?1:0},l=$(function(N,_){return~~(N/_)}),f=$(function(N,_){return N%_}),u=$(function(N,_){return Math.floor(N/_)}),r=$(function(N,_){var X;return(N%(X=_)+X)%X}),m=(function(N){return 1/N}),i=Math.PI,c=i*2,d=Math.exp,s=Math.sqrt,p=Math.log,h=$(function(N,_){return Math.pow(N,_)}),g=Math.sin,v=Math.tan,E=Math.cos,b=Math.asin,T=Math.acos,C=Math.atan,S=$(function(N,_){return Math.atan2(N,_)}),w=function(N){return~~N},x=Math.round,A=Math.ceil,k=Math.floor,R=function(N){return N!==N},I=function(N){return N%2===0},B=function(N){return N%2!==0},F=$(function(N,_){var X;for(N=Math.abs(N),_=Math.abs(_);_!==0;)X=N%_,N=_,_=X;return N}),O=$(function(N,_){return Math.abs(Math.floor(N/F(N,_)*_))}),Oa={max:a,min:e,negate:n,abs:o,signum:t,quot:l,rem:f,div:u,mod:r,recip:m,pi:i,tau:c,exp:d,sqrt:s,ln:p,pow:h,sin:g,tan:v,cos:E,acos:T,asin:b,atan:C,atan2:S,truncate:w,round:x,ceiling:A,floor:k,isItNaN:R,even:I,odd:B,gcd:F,lcm:O};function $(N,_){var X,L=function(K){return N.length>1?function(){var J=K?K.concat():[];return X=this,J.push.apply(J,arguments)<N.length&&arguments.length?L.call(X,J):N.apply(X,J)}:N};return L()}return Oa}var Na,uh;function ch(){if(uh)return Na;uh=1;var a,e,n,o,t,l,f,u,r,m={}.toString;a=V1(),e=$1(),n=G1(),o=W1(),t=z1(),l=function(c){return c},f=i(function(c,d){return m.call(d).slice(8,-1)===c}),u=i(function(c,d){var s,p=[];for(s=0;s<c;++s)p.push(d);return p}),o.empty=e.empty,o.slice=e.slice,o.take=e.take,o.drop=e.drop,o.splitAt=e.splitAt,o.takeWhile=e.takeWhile,o.dropWhile=e.dropWhile,o.span=e.span,o.breakStr=e.breakList,r={Func:a,List:e,Obj:n,Str:o,Num:t,id:l,isType:f,replicate:u},r.each=e.each,r.map=e.map,r.filter=e.filter,r.compact=e.compact,r.reject=e.reject,r.partition=e.partition,r.find=e.find,r.head=e.head,r.first=e.first,r.tail=e.tail,r.last=e.last,r.initial=e.initial,r.empty=e.empty,r.reverse=e.reverse,r.difference=e.difference,r.intersection=e.intersection,r.union=e.union,r.countBy=e.countBy,r.groupBy=e.groupBy,r.fold=e.fold,r.foldl=e.foldl,r.fold1=e.fold1,r.foldl1=e.foldl1,r.foldr=e.foldr,r.foldr1=e.foldr1,r.unfoldr=e.unfoldr,r.andList=e.andList,r.orList=e.orList,r.any=e.any,r.all=e.all,r.unique=e.unique,r.uniqueBy=e.uniqueBy,r.sort=e.sort,r.sortWith=e.sortWith,r.sortBy=e.sortBy,r.sum=e.sum,r.product=e.product,r.mean=e.mean,r.average=e.average,r.concat=e.concat,r.concatMap=e.concatMap,r.flatten=e.flatten,r.maximum=e.maximum,r.minimum=e.minimum,r.maximumBy=e.maximumBy,r.minimumBy=e.minimumBy,r.scan=e.scan,r.scanl=e.scanl,r.scan1=e.scan1,r.scanl1=e.scanl1,r.scanr=e.scanr,r.scanr1=e.scanr1,r.slice=e.slice,r.take=e.take,r.drop=e.drop,r.splitAt=e.splitAt,r.takeWhile=e.takeWhile,r.dropWhile=e.dropWhile,r.span=e.span,r.breakList=e.breakList,r.zip=e.zip,r.zipWith=e.zipWith,r.zipAll=e.zipAll,r.zipAllWith=e.zipAllWith,r.at=e.at,r.elemIndex=e.elemIndex,r.elemIndices=e.elemIndices,r.findIndex=e.findIndex,r.findIndices=e.findIndices,r.apply=a.apply,r.curry=a.curry,r.flip=a.flip,r.fix=a.fix,r.over=a.over,r.split=o.split,r.join=o.join,r.lines=o.lines,r.unlines=o.unlines,r.words=o.words,r.unwords=o.unwords,r.chars=o.chars,r.unchars=o.unchars,r.repeat=o.repeat,r.capitalize=o.capitalize,r.camelize=o.camelize,r.dasherize=o.dasherize,r.values=n.values,r.keys=n.keys,r.pairsToObj=n.pairsToObj,r.objToPairs=n.objToPairs,r.listsToObj=n.listsToObj,r.objToLists=n.objToLists,r.max=t.max,r.min=t.min,r.negate=t.negate,r.abs=t.abs,r.signum=t.signum,r.quot=t.quot,r.rem=t.rem,r.div=t.div,r.mod=t.mod,r.recip=t.recip,r.pi=t.pi,r.tau=t.tau,r.exp=t.exp,r.sqrt=t.sqrt,r.ln=t.ln,r.pow=t.pow,r.sin=t.sin,r.tan=t.tan,r.cos=t.cos,r.acos=t.acos,r.asin=t.asin,r.atan=t.atan,r.atan2=t.atan2,r.truncate=t.truncate,r.round=t.round,r.ceiling=t.ceiling,r.floor=t.floor,r.isItNaN=t.isItNaN,r.even=t.even,r.odd=t.odd,r.gcd=t.gcd,r.lcm=t.lcm,r.VERSION="1.2.1",Na=r;function i(c,d){var s,p=function(h){return c.length>1?function(){var g=h?h.concat():[];return s=this,g.push.apply(g,arguments)<c.length&&arguments.length?p.call(s,g):c.apply(s,g)}:c};return p()}return Na}var fh;function H1(){return fh||(fh=1,(function(){var a,e,n;a=ch().reject;function o(s,p){if(s[0]===p)return s.shift();throw new Error("Expected '"+p+"', but got '"+s[0]+"' instead in "+JSON.stringify(s)+".")}function t(s,p){if(s[0]===p)return s.shift()}function l(s,p,h){var g,v,E,b;for(g=p[0],v=p[1],h&&o(s,g),E=[],b=","+(h?v:"");s.length&&h&&s[0]!==v;)E.push(i(s,b)),t(s,",");return h&&o(s,v),E}function f(s,p){return l(s,["[","]"],p)}function u(s,p){return l(s,["(",")"],p)}function r(s,p){var h,g,v;for(p&&o(s,"{"),h={},g=","+(p?"}":"");s.length&&(!p||s[0]!=="}");)v=m(s,":"),o(s,":"),h[v]=i(s,g),t(s,",");return p&&o(s,"}"),h}function m(s,p){var h;for(p==null&&(p=""),h="";s.length&&p.indexOf(s[0])===-1;)h+=s.shift();return h}function i(s,p){switch(s[0]){case"[":return f(s,!0);case"(":return u(s,!0);case"{":return r(s,!0);default:return m(s,p)}}function c(s,p,h){var g,v,E,b,T,C,S,w;return g=p[0],v=g.type,E=g.structure,b=s.concat(),!h.explicit&&p.length===1&&(!v&&E||v==="Array"||v==="Object")?(T=E==="array"||v==="Array"?f(s,s[0]==="["):E==="tuple"?u(s,s[0]==="("):r(s,s[0]==="{"),C=s.length?i(E==="array"||v==="Array"?(S=b,S.unshift("["),S.push("]"),S):(w=b,w.unshift("("),w.push(")"),w)):T):C=i(s),C}e=/\[\]\(\)}{:,/.source,n=RegExp(`("(?:\\\\"|[^"])*")|('(?:\\\\'|[^'])*')|(/(?:\\\\/|[^/])*/[a-zA-Z]*)|(#.*#)|([`+e+"])|([^\\s"+e+"](?:\\s*[^\\s"+e+"]+)*)|\\s*"),Fa.exports=function(s,p,h){var g,v;if(h==null&&(h={}),!h.explicit&&s.length===1&&s[0].type==="String")return p;if(g=a(d,p.split(n)),v=c(g,s,h),!v)throw new Error("Error parsing '"+p+"'.");return v};function d(s){return!s}}).call(this)),Fa.exports}var Ma={exports:{}},ja={exports:{}},Ua={exports:{}},ph;function K1(){return ph||(ph=1,(function(){var a,e;a=/[\$\w]+/;function n(p){var h;if(h=p[0],h==null)throw new Error("Unexpected end of input.");return h}function o(p){var h;if(h=n(p),!a.test(h))throw new Error("Expected text, got '"+h+"' instead.");return p.shift()}function t(p,h){var g;if(g=n(p),g!==h)throw new Error("Expected '"+h+"', got '"+g+"' instead.");return p.shift()}function l(p,h){var g;return g=p[0],g===h?p.shift():null}function f(p){var h;if(t(p,"["),n(p)==="]")throw new Error("Must specify type of Array - eg. [Type], got [] instead.");return h=d(p),t(p,"]"),{structure:"array",of:h}}function u(p){var h;if(h=[],t(p,"("),n(p)===")")throw new Error("Tuple must be of at least length 1 - eg. (Type), got () instead.");for(;h.push(d(p)),l(p,","),n(p)!==")";);return t(p,")"),{structure:"tuple",of:h}}function r(p){var h,g,v,E,b;for(h={},t(p,"{"),g=!1;;){if(l(p,"...")){g=!0;break}if(v=m(p),E=v[0],b=v[1],h[E]=b,l(p,","),n(p)==="}")break}return t(p,"}"),{structure:"fields",of:h,subset:g}}function m(p){var h,g;return h=o(p),t(p,":"),g=d(p),[h,g]}function i(p){switch(p[0]){case"[":return f(p);case"(":return u(p);case"{":return r(p)}}function c(p){var h,g,v,E;if(h=n(p),g=h==="*",g||a.test(h))return v=g?t(p,"*"):o(p),E=i(p),E?(E.type=v,E):{type:v};if(E=i(p),!E)throw new Error("Unexpected character: "+h);return E}function d(p){var h,g,v,E,b,T;if(n(p)==="::")throw new Error("No comment before comment separator '::' found.");for(h=p[1],h!=null&&h==="::"&&(p.shift(),p.shift()),g=[],v={},n(p)==="Maybe"&&(p.shift(),g=[{type:"Undefined"},{type:"Null"}],v={Undefined:!0,Null:!0});E=c(p),b=E.type,T=E.structure,v[b]||g.push(E),T==null&&(v[b]=!0),!!l(p,"|"););return g}e=RegExp("\\.\\.\\.|::|->|"+a.source+"|\\S","g"),Ua.exports=function(p){var h,g;if(!p.length)throw new Error("No type specified.");if(h=p.match(e)||[],s("->",h))throw new Error("Function types are not supported. To validate that something is a function, you may use 'Function'.");try{return d(h)}catch(v){throw g=v,new Error(g.message+" - Remaining tokens: "+JSON.stringify(h)+" - Initial input: '"+p+"'")}};function s(p,h){for(var g=-1,v=h.length>>>0;++g<v;)if(p===h[g])return!0;return!1}}).call(this)),Ua.exports}var qa={exports:{}},mh;function X1(){return mh||(mh=1,(function(){var a,e,n,o,t,l,f={}.toString;a=ch(),e=a.any,n=a.all,o=a.isItNaN,t={Number:{typeOf:"Number",validate:function(s){return!o(s)}},NaN:{typeOf:"Number",validate:o},Int:{typeOf:"Number",validate:function(s){return!o(s)&&s%1===0}},Float:{typeOf:"Number",validate:function(s){return!o(s)}},Date:{typeOf:"Date",validate:function(s){return!o(s.getTime())}}},l={array:"Array",tuple:"Array"};function u(s,p,h){return n(function(g){return d(g,p.of,h)},s)}function r(s,p,h){var g,v,E,b,T;for(g=0,v=0,b=(E=p.of).length;v<b;++v){if(T=E[v],!d(s[g],T,h))return!1;g++}return s.length<=g}function m(s,p,h){var g,v,E,b,T,C,S;g={},v=0;for(E in s)g[E]=!0,v++;b=0;for(T in C=p.of){if(S=C[T],!d(s[T],S,h))return!1;g[T]&&b++}return p.subset||v===b}function i(s,p,h){if(!(s instanceof Object))return!1;switch(p.structure){case"fields":return m(s,p,h);case"array":return u(s,p,h);case"tuple":return r(s,p,h)}}function c(s,p,h){var g,v,E,b;if(g=p.type,v=p.structure,g)return g==="*"?!0:(E=h.customTypes[g]||t[g],E?(E.typeOf===void 0||E.typeOf===f.call(s).slice(8,-1))&&E.validate(s):g===f.call(s).slice(8,-1)&&(!v||i(s,p,h)));if(v)return(b=l[v])&&b!==f.call(s).slice(8,-1)?!1:i(s,p,h);throw new Error("No type defined. Input: "+s+".")}function d(s,p,h){if(f.call(p).slice(8,-1)!=="Array")throw new Error("Types must be in an array. Input: "+s+".");return e(function(g){return c(s,g,h)},p)}qa.exports=function(s,p,h){return h==null&&(h={}),h.customTypes==null&&(h.customTypes={}),d(p,s,h)}}).call(this)),qa.exports}var dh;function hh(){return dh||(dh=1,(function(){var a,e,n,o;a="0.4.0",e=K1(),n=X1(),o=function(t,l,f){return n(e(t),l,f)},ja.exports={VERSION:a,typeCheck:o,parsedTypeCheck:n,parseType:e}}).call(this)),ja.exports}var gh;function J1(){return gh||(gh=1,(function(){var a,e,n={}.toString;a=hh().parsedTypeCheck,e={"*":function(r,m){switch(n.call(r).slice(8,-1)){case"Array":return f(r,{type:"Array"},m);case"Object":return f(r,{type:"Object"},m);default:return{type:"Just",value:u(r,[{type:"Undefined"},{type:"Null"},{type:"NaN"},{type:"Boolean"},{type:"Number"},{type:"Date"},{type:"RegExp"},{type:"Array"},{type:"Object"},{type:"String"}],(m.explicit=!0,m))}}},Undefined:function(r){return r==="undefined"||r===void 0?{type:"Just",value:void 0}:{type:"Nothing"}},Null:function(r){return r==="null"?{type:"Just",value:null}:{type:"Nothing"}},NaN:function(r){return r==="NaN"?{type:"Just",value:NaN}:{type:"Nothing"}},Boolean:function(r){return r==="true"?{type:"Just",value:!0}:r==="false"?{type:"Just",value:!1}:{type:"Nothing"}},Number:function(r){return{type:"Just",value:+r}},Int:function(r){return{type:"Just",value:+r}},Float:function(r){return{type:"Just",value:+r}},Date:function(r,m){var i;return(i=/^\#([\s\S]*)\#$/.exec(r))?{type:"Just",value:new Date(+i[1]||i[1])}:m.explicit?{type:"Nothing"}:{type:"Just",value:new Date(+r||r)}},RegExp:function(r,m){var i;return(i=/^\/([\s\S]*)\/([gimy]*)$/.exec(r))?{type:"Just",value:new RegExp(i[1],i[2])}:m.explicit?{type:"Nothing"}:{type:"Just",value:new RegExp(r)}},Array:function(r,m){return o(r,{of:[{type:"*"}]},m)},Object:function(r,m){return l(r,{of:{}},m)},String:function(r){var m,i;return n.call(r).slice(8,-1)!=="String"?{type:"Nothing"}:(m=function(c,d){return c.replace(/\\([^u]|u[0-9a-fA-F]{4})/g,function(s,p){switch(p[0]){case d:return d;case"\\":return"\\";case"b":return"\b";case"f":return"\f";case"n":return`
|
|
45
|
+
`;case"r":return"\r";case"t":return" ";case"u":return JSON.parse('"'+s+'"');default:return p}})},(i=r.match(/^'([\s\S]*)'$/))?{type:"Just",value:m(i[1],"'")}:(i=r.match(/^"([\s\S]*)"$/))?{type:"Just",value:m(i[1],'"')}:{type:"Just",value:r})}};function o(r,m,i){var c,d;return n.call(r).slice(8,-1)!=="Array"?{type:"Nothing"}:(c=m.of,{type:"Just",value:(function(){var s,p,h,g=[];for(s=0,h=(p=r).length;s<h;++s)d=p[s],g.push(u(d,c,i));return g})()})}function t(r,m,i){var c,d,s,p,h,g,v;if(n.call(r).slice(8,-1)!=="Array")return{type:"Nothing"};for(c=[],d=0,s=0,h=(p=m.of).length;s<h;++s)g=p[s],v=u(r[d],g,i),n.call(v).slice(8,-1)!=="Undefined"&&c.push(v),d++;return r.length<=d?{type:"Just",value:c}:{type:"Nothing"}}function l(r,m,i){var c,d,s;return n.call(r).slice(8,-1)!=="Object"?{type:"Nothing"}:(c=m.of,{type:"Just",value:(function(){var p,h={};for(d in p=r)s=p[d],h[u(d,[{type:"String"}],i)]=u(s,c[d]||[{type:"*"}],i);return h})()})}function f(r,m,i){var c,d,s,p;if(c=m.type,d=m.structure,c){if(s=((p=i.customTypes[c])!=null?p.cast:void 0)||e[c],!s)throw new Error("Type not defined: "+c+".");return s(r,i,u)}else switch(d){case"array":return o(r,m,i);case"tuple":return t(r,m,i);case"fields":return l(r,m,i)}}function u(r,m,i){var c,d,s,p,h,g;for(c=0,d=m.length;c<d;++c)if(s=m[c],p=f(r,s,i),h=p.type,g=p.value,h!=="Nothing"&&a([s],g,{customTypes:i.customTypes}))return g;throw new Error("Value "+JSON.stringify(r)+" does not type check against "+JSON.stringify(m)+".")}Ma.exports=function(r,m,i){return!i.explicit&&m.length===1&&m[0].type==="String"?r:u(r,m,i)}}).call(this)),Ma.exports}var yh;function Y1(){return yh||(yh=1,(function(){var a,e,n,o,t,l;a=H1(),e=J1(),n=hh().parseType,o="0.4.1",t=function(f,u,r){return r==null&&(r={}),r.explicit==null&&(r.explicit=!1),r.customTypes==null&&(r.customTypes={}),e(a(f,u,r),f,r)},l=function(f,u,r){return t(n(f),u,r)},Ia.exports={VERSION:o,parse:l,parsedTypeParse:t}}).call(this)),Ia.exports}var vh;function Sh(){if(vh)return Dr;vh=1;var a=Y1();const e=/^([a-z]+(?:-[a-z]+)*)(?:\s|$)/u,n=new Set([0,1,2,"off","warn","error"]);function o(g){const v=Array.isArray(g)?g[0]:g;return n.has(v)}function t(g){return Object.values(g).every(o)}class l{label="";value="";justification="";constructor(v,E,b){this.label=v,this.value=E,this.justification=b}}class f{parseStringConfig(v){const E={};return v.trim().replace(new RegExp("(?<!\\s)\\s*([:,])\\s*","gu"),"$1").split(/\s|,+/u).forEach(T=>{if(!T)return;const[C,S=null]=T.split(":");E[C]=S}),E}parseJSONLikeConfig(v){try{const b=a.parse("Object",v)||{};if(t(b))return{ok:!0,config:b}}catch{}const E=v.replace(new RegExp("(?<![-a-zA-Z0-9/])([-a-zA-Z0-9/]+):","gu"),'"$1":').replace(/([\]0-9])\s+(?=")/u,"$1,");try{return{ok:!0,config:JSON.parse(`{${E}}`)}}catch(b){const T=b instanceof Error?b.message:String(b);return{ok:!1,error:{message:`Failed to parse JSON from '${E}': ${T}`}}}}parseListConfig(v){const E={};return v.split(",").forEach(b=>{const T=b.trim().replace(/^(?<quote>['"]?)(?<ruleId>.*)\k<quote>$/su,"$<ruleId>");T&&(E[T]=!0)}),E}#e(v){const E=/\s-{2,}\s/u.exec(v);if(!E)return{directivePart:v.trim(),justificationPart:""};const b=v.slice(0,E.index).trim(),T=v.slice(E.index+E[0].length).trim();return{directivePart:b,justificationPart:T}}parseDirective(v){const{directivePart:E,justificationPart:b}=this.#e(v),T=e.exec(E);if(!T)return;const C=T[1],S=E.slice(T.index+C.length);return new l(C,S.trim(),b)}}function u(g){return"loc"in g}function r(g){return"position"in g}function m(g){return"range"in g}function i(g){return"position"in g}function c(g,v){let E=0,b=g.length-1;for(;E<b;){const T=(E+b)/2|0;v<g[T]?b=T:E=T+1}return E}class d{type="visit";kind=1;target;phase;args;constructor({target:v,phase:E,args:b}){this.target=v,this.phase=E,this.args=b}}class s{type="call";kind=2;target;args;constructor({target:v,args:E}){this.target=v,this.args=E}}class p{type;node;value;justification;constructor({type:v,node:E,value:b,justification:T}){this.type=v,this.node=E,this.value=b,this.justification=T}}class h{#e=[];#t=[0];#r;ast;text;constructor({text:v,ast:E,lineEndingPattern:b=/\r?\n/u}){this.ast=E,this.text=v,this.#r=new RegExp(b.source,b.flags.replace(/[gy]/gu,""))}#n(v){const E=this.#r.exec(v);return E?(this.#e.push(v.slice(0,E.index)),this.#t.push((this.#t.at(-1)??0)+E.index+E[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(v){if(!(v<=(this.#t.at(-1)??0)))for(;v>(this.#t.at(-1)??0)&&this.#n(this.text.slice(this.#t.at(-1))););}#i(v,E){const b=v.line-E+1,T=this.#t.length-1;let C=b-T;if(!(C<=0))for(;C>0&&this.#n(this.text.slice(this.#t.at(-1)));)C-=1}getLoc(v){if(u(v))return v.loc;if(r(v))return v.position;throw new Error("Custom getLoc() method must be implemented in the subclass.")}getLocFromIndex(v){if(typeof v!="number")throw new TypeError("Expected `index` to be a number.");if(v<0||v>this.text.length)throw new RangeError(`Index out of range (requested index ${v}, but source text has length ${this.text.length}).`);const{start:{line:E,column:b},end:{line:T,column:C}}=this.getLoc(this.ast);if(v===0)return{line:E,column:b};if(v===this.text.length)return{line:T,column:C};this.#a(v);const S=(v>=(this.#t.at(-1)??0)?this.#t.length:c(this.#t,v))-1+E;return{line:S,column:v-this.#t[S-E]+b}}getIndexFromLoc(v){if(v===null||typeof v!="object"||typeof v.line!="number"||typeof v.column!="number")throw new TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");const{start:{line:E,column:b},end:{line:T,column:C}}=this.getLoc(this.ast);if(v.line<E||T<v.line)throw new RangeError(`Line number out of range (line ${v.line} requested). Valid range: ${E}-${T}`);if(v.line===E&&v.column===b)return 0;if(v.line===T&&v.column===C)return this.text.length;this.#i(v,E);const S=v.line===T,w=this.#t[v.line-E],x=S?this.text.length:this.#t[v.line-E+1],A=w+v.column-b;if(v.column<b||S&&A>x||!S&&A>=x)throw new RangeError(`Column number out of range (column ${v.column} requested). Valid range for line ${v.line}: ${b}-${x-w+b+(S?0:-1)}`);return A}getRange(v){if(m(v))return v.range;if(i(v))return[v.position.start.offset,v.position.end.offset];throw new Error("Custom getRange() method must be implemented in the subclass.")}getParent(v){throw new Error("Not implemented.")}getAncestors(v){if(!v)throw new TypeError("Missing required argument: node.");const E=[];for(let b=this.getParent(v);b;b=this.getParent(b))E.push(b);return E.reverse()}getText(v,E,b){if(v){const T=this.getRange(v);return this.text.slice(Math.max(T[0]-(E||0),0),T[1]+(b||0))}return this.text}get lines(){return this.#s(),this.#e}traverse(){throw new Error("Not implemented.")}}return Dr.CallMethodStep=s,Dr.ConfigCommentParser=f,Dr.Directive=p,Dr.TextSourceCodeBase=h,Dr.VisitNodeStep=d,Dr}var Va,Eh;function Q1(){if(Eh)return Va;Eh=1;const{isCommentToken:a}=qt(),e=N1(),n=Fn(),o=ra(),t=zd(),{directivesPattern:l}=Kd(),f=q1(),{ConfigCommentParser:u,VisitNodeStep:r,CallMethodStep:m,Directive:i}=Sh(),c=qn(),d=new u;function s(A){if(!A)throw new TypeError(`Unexpected empty AST. (${A})`);if(!A.tokens)throw new TypeError("AST is missing the tokens array.");if(!A.comments)throw new TypeError("AST is missing the comments array.");if(!A.loc)throw new TypeError("AST is missing location information.");if(!A.range)throw new TypeError("AST is missing range information")}function p(A){switch(A){case 3:return t.es3;case 5:return t.es5;default:return A<2015?t[`es${A+2009}`]:t[`es${A}`]}}function h(A){return A.type==="ExportDefaultDeclaration"||A.type==="ExportNamedDeclaration"||A.type==="ExportAllDeclaration"||A.type==="ExportSpecifier"}function g(A,k){const R=[];let I=0,B=0;for(;I<A.length||B<k.length;)B>=k.length||I<A.length&&A[I].range[0]<k[B].range[0]?R.push(A[I++]):R.push(k[B++]);return R}function v(A){switch(A){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(`'${A}' is not a valid configuration for a global (use 'readonly', 'writable', or 'off')`)}}function E(A,k){return A.range[0]<=k.range[0]&&A.range[1]>=k.range[0]||k.range[0]<=A.range[0]&&k.range[1]>=A.range[0]}function b(A,k,R,I){if(E(k,R))return!1;const[B,F]=k.range[1]<=R.range[0]?[k,R]:[R,k],O=A.getLastToken(B)||B,$=A.getFirstToken(F)||F;let N=O;for(;N!==$;){const _=A.getTokenAfter(N,{includeComments:!0});if(N.range[1]!==_.range[0]||I&&_!==$&&_.type==="JSXText"&&/\s/u.test(_.value))return!0;N=_}return!1}function T(A,k){let R=0,I=A.length;for(;R<I;){const B=(R+I)/2|0;k<A[B]?I=B:R=B+1}return R}function C(A,k={},R={}){for(const B of new Set([...Object.keys(k),...Object.keys(R)])){const F=k[B]===void 0?void 0:v(k[B]),$=R[B]&&R[B].value||F,N=R[B]&&R[B].comments;if($==="off")continue;let _=A.set.get(B);_||(_=new c.Variable(B,A),A.variables.push(_),A.set.set(B,_)),_.eslintImplicitGlobalSetting=F,_.eslintExplicitGlobal=N!==void 0,_.eslintExplicitGlobalComments=N,_.writeable=$==="writable"}A.through=A.through.filter(B=>{const F=B.identifier.name,O=A.set.get(F);return O?(B.resolved=O,O.references.push(B),!1):!0});const{implicit:I}=A;typeof I=="object"&&I!==null&&(I.variables=I.variables.filter(B=>{const F=B.name;return A.set.has(F)?(I.set.delete(F),!1):!0}),I.left&&(I.left=I.left.filter(B=>!A.set.has(B.identifier.name))))}function S(A,k){Object.keys(k).forEach(R=>{const I=A.set.get(R);I&&(I.eslintUsed=!0,I.eslintExported=!0)})}const w=Symbol("caches");class x extends e{#e;constructor(k,R){let I,B,F,O,$,N;typeof k=="string"?(I=k,F=R,B=!1):typeof k=="object"&&k!==null&&(I=k.text,F=k.ast,B=k.hasBOM,O=k.parserServices,$=k.scopeManager,N=k.visitorKeys),s(F),super(F.tokens,F.comments),this[w]=new Map([["scopes",new WeakMap],["vars",new Map],["configNodes",void 0],["isGlobalReference",new WeakMap]]),this.isESTree=F.type==="Program";const _=I.charCodeAt(0)===65279;this.hasBOM=_||!!B,this.text=_?I.slice(1):I,this.ast=F,this.parserServices=O||{},this.scopeManager=$||null,this.visitorKeys=N||o.DEFAULT_VISITOR_KEYS;const X=this.text.match(n.shebangPattern);X&&F.comments.length&&F.comments[0].value===X[1]&&(F.comments[0].type="Shebang"),this.tokensAndComments=g(F.tokens,F.comments),this.lines=[],this.lineStartIndices=[0];const K=n.createGlobalLinebreakMatcher();let J;for(;J=K.exec(this.text);)this.lines.push(this.text.slice(this.lineStartIndices.at(-1),J.index)),this.lineStartIndices.push(J.index+J[0].length);this.lines.push(this.text.slice(this.lineStartIndices.at(-1))),Object.freeze(this),Object.freeze(this.lines)}static splitLines(k){return k.split(n.createGlobalLinebreakMatcher())}getText(k,R,I){return k?this.text.slice(Math.max(k.range[0]-(R||0),0),k.range[1]+(I||0)):this.text}getLines(){return this.lines}getAllComments(){return this.ast.comments}getJSDocComment(k){const R=B=>{const F=this.getTokenBefore(B,{includeComments:!0});return F&&a(F)&&F.type==="Block"&&F.value.charAt(0)==="*"&&B.loc.start.line-F.loc.end.line<=1?F:null};let I=k.parent;switch(k.type){case"ClassDeclaration":case"FunctionDeclaration":return R(h(I)?I:k);case"ClassExpression":return R(I.parent);case"ArrowFunctionExpression":case"FunctionExpression":if(I.type!=="CallExpression"&&I.type!=="NewExpression"){for(;!this.getCommentsBefore(I).length&&!/Function/u.test(I.type)&&I.type!=="MethodDefinition"&&I.type!=="Property"&&(I=I.parent,!!I););if(I&&I.type!=="FunctionDeclaration"&&I.type!=="Program")return R(I)}return R(k);default:return null}}getNodeByRangeIndex(k){let R=null;return o.traverse(this.ast,{visitorKeys:this.visitorKeys,enter(I){I.range[0]<=k&&k<I.range[1]?R=I:this.skip()},leave(I){I===R&&this.break()}}),R}isSpaceBetween(k,R){return b(this,k,R,!1)}isSpaceBetweenTokens(k,R){return b(this,k,R,!0)}getLocFromIndex(k){if(typeof k!="number")throw new TypeError("Expected `index` to be a number.");if(k<0||k>this.text.length)throw new RangeError(`Index out of range (requested index ${k}, but source text has length ${this.text.length}).`);if(k===this.text.length)return{line:this.lines.length,column:this.lines.at(-1).length};const R=k>=this.lineStartIndices.at(-1)?this.lineStartIndices.length:T(this.lineStartIndices,k);return{line:R,column:k-this.lineStartIndices[R-1]}}getIndexFromLoc(k){if(k===null||typeof k!="object"||typeof k.line!="number"||typeof k.column!="number")throw new TypeError("Expected `loc` to be an object with numeric `line` and `column` properties.");if(k.line<=0)throw new RangeError(`Line number out of range (line ${k.line} requested). Line numbers should be 1-based.`);if(k.line>this.lineStartIndices.length)throw new RangeError(`Line number out of range (line ${k.line} requested, but only ${this.lineStartIndices.length} lines present).`);if(k.column<0)throw new RangeError(`Invalid column number (column ${k.column} requested).`);const R=this.lineStartIndices[k.line-1],I=k.line===this.lineStartIndices.length?this.text.length:this.lineStartIndices[k.line],B=R+k.column;if(k.line===this.lineStartIndices.length&&B>I||k.line<this.lineStartIndices.length&&B>=I)throw new RangeError(`Column number out of range (column ${k.column} requested, but the length of line ${k.line} is ${I-R}).`);return B}getScope(k){if(!k)throw new TypeError("Missing required argument: node.");const R=this[w].get("scopes"),I=R.get(k);if(I)return I;const B=k.type!=="Program";for(let F=k;F;F=F.parent){const O=this.scopeManager.acquire(F,B);if(O)return O.type==="function-expression-name"?(R.set(k,O.childScopes[0]),O.childScopes[0]):(R.set(k,O),O)}return R.set(k,this.scopeManager.scopes[0]),this.scopeManager.scopes[0]}getDeclaredVariables(k){return this.scopeManager.getDeclaredVariables(k)}getAncestors(k){if(!k)throw new TypeError("Missing required argument: node.");const R=[];for(let I=k.parent;I;I=I.parent)R.push(I);return R.reverse()}isGlobalReference(k){if(!k)throw new TypeError("Missing required argument: node.");const R=this[w].get("isGlobalReference");if(R.has(k))return R.get(k);if(k.type!=="Identifier")return R.set(k,!1),!1;const I=this.scopeManager.scopes[0].set.get(k.name);if(!I||I.defs.length>0)return R.set(k,!1),!1;const B=I.references.some(({identifier:F})=>F===k);return R.set(k,B),B}getLoc(k){return k.loc}getRange(k){return k.range}markVariableAsUsed(k,R=this.ast){const I=this.getScope(R);let B=I;I.type==="global"&&I.childScopes.length>0&&I.childScopes[0].block===this.ast&&(B=I.childScopes[0]);for(let F=B;F;F=F.upper){const O=F.variables.find($=>$.name===k);if(O)return O.eslintUsed=!0,!0}return!1}getInlineConfigNodes(){let k=this[w].get("configNodes");return k||(k=this.ast.comments.filter(R=>{if(R.type==="Shebang")return!1;const I=d.parseDirective(R.value);return!I||!l.test(I.label)?!1:R.type!=="Line"||!!/^eslint-disable-(?:next-)?line$/u.test(I.label)}),this[w].set("configNodes",k),k)}getDisableDirectives(){const k=this[w].get("disableDirectives");if(k)return k;const R=[],I=[];this.getInlineConfigNodes().forEach(F=>{const{label:O,value:$,justification:N}=d.parseDirective(F.value),_=/^eslint-disable-(?:next-)?line$/u.test(O);if(!(F.type==="Line"&&!_)){if(O==="eslint-disable-line"&&F.loc.start.line!==F.loc.end.line){const X=`${O} comment should not span multiple lines.`;R.push({ruleId:null,message:X,loc:F.loc});return}switch(O){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{const X=O.slice(7);I.push(new i({type:X,node:F,value:$,justification:N}))}}}});const B={problems:R,directives:I};return this[w].set("disableDirectives",B),B}applyLanguageOptions(k){const R=Object.assign(Object.create(null),p(k.ecmaVersion),k.sourceType==="commonjs"?t.commonjs:void 0,k.globals);this[w].get("vars").set("configGlobals",R)}applyInlineConfig(){const k=[],R=[],I={},B=Object.create(null);this.getInlineConfigNodes().forEach(O=>{const{label:$,value:N}=d.parseDirective(O.value);switch($){case"exported":Object.assign(I,d.parseListConfig(N));break;case"globals":case"global":for(const[_,X]of Object.entries(d.parseStringConfig(N))){let L;try{L=v(X)}catch(K){k.push({ruleId:null,loc:O.loc,message:K.message});continue}B[_]?(B[_].comments.push(O),B[_].value=L):B[_]={comments:[O],value:L}}break;case"eslint":{const _=d.parseJSONLikeConfig(N);_.ok?R.push({config:{rules:_.config},loc:O.loc}):k.push({ruleId:null,loc:O.loc,message:_.error.message});break}}});const F=this[w].get("vars");return F.set("inlineGlobals",B),F.set("exportedVariables",I),{configs:R,problems:k}}finalize(){const k=this[w].get("vars"),R=k.get("configGlobals"),I=k.get("inlineGlobals"),B=k.get("exportedVariables"),F=this.scopeManager.scopes[0];C(F,R,I),B&&S(F,B)}traverse(){if(this.#e)return this.#e;const k=this.#e=[];let R={enterNode(I){k.push(new r({target:I,phase:1,args:[I]}))},leaveNode(I){k.push(new r({target:I,phase:2,args:[I]}))},emit(I,B){k.push(new m({target:I,args:B}))}};return this.isESTree&&(R=new f(R)),o.traverse(this.ast,{enter(I,B){I.parent=B,R.enterNode(I)},leave(I){R.leaveNode(I)},visitorKeys:this.visitorKeys}),k}}return Va=x,Va}var $a,bh;function Ch(){return bh||(bh=1,$a={SourceCode:Q1()}),$a}var Ga,xh;function Rn(){return xh||(xh=1,Ga=a=>{if(typeof a!="string")throw new TypeError("Expected a string");return a.replace(/[|\\{}()[\]^$+*?.]/g,"\\$&").replace(/-/g,"\\x2d")}),Ga}var Wa,wh;function Ah(){if(wh)return Wa;wh=1;function a(o){return typeof o=="object"&&o!==null&&!Array.isArray(o)}function e(o,t){if(t===void 0)return o;if(!a(o)||!a(t))return t;const l={...o,...t};for(const f of Object.keys(t))Object.prototype.propertyIsEnumerable.call(o,f)&&(l[f]=e(o[f],t[f]));return l}function n(o,t){return!o||!t?t||o||[]:[...o.map((l,f)=>e(l,f<t.length?t[f]:void 0)),...t.slice(o.length)]}return Wa={deepMergeArrays:n},Wa}var za,Th;function kh(){if(Th)return za;Th=1;function a(n){if([2,"2","error"].includes(n))return"error";if([1,"1","warn"].includes(n))return"warn";if([0,"0","off"].includes(n))return"off";throw new Error(`Invalid severity value: ${n}`)}function e(n){if([2,"2","error"].includes(n))return 2;if([1,"1","warn"].includes(n))return 1;if([0,"0","off"].includes(n))return 0;throw new Error(`Invalid severity value: ${n}`)}return za={normalizeSeverityToString:a,normalizeSeverityToNumber:e},za}var Ha,Dh;function Ka(){if(Dh)return Ha;Dh=1;const{normalizeSeverityToNumber:a}=kh(),e=new Map([[0,0],["off",0],[1,1],["warn",1],[2,2],["error",2]]);function n(B){return typeof B=="object"&&B!==null}function o(B){return n(B)&&!Array.isArray(B)}function t(B){return typeof B>"u"}function l(B,F,O=new Map){let $=O.get(B);if($){const _=$.get(F);if(_)return _}else $=new Map,O.set(B,$);const N={...B,...F};delete N.__proto__,$.set(F,N);for(const _ of Object.keys(F)){if(_==="__proto__"||!Object.prototype.propertyIsEnumerable.call(B,_))continue;const X=B[_],L=F[_];o(X)&&o(L)?N[_]=l(X,L,O):t(L)&&(N[_]=X)}return N}function f(B){const F=Array.isArray(B)?B.slice(0):[B];return F[0]=e.get(F[0]),structuredClone(F)}function u(B){for(const F of Object.keys(B))if(typeof B[F]=="function")return!0;return!1}class r extends Error{constructor(F,O){super(`Key "${F}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-options",this.messageData={ruleId:F,value:O}}}function m(B,F){if(typeof F!="string"&&typeof F!="number"&&!Array.isArray(F))throw new r(B,F)}class i extends Error{constructor(F,O){super(`Key "${F}": Expected severity of "off", 0, "warn", 1, "error", or 2.`),this.messageTemplate="invalid-rule-severity",this.messageData={ruleId:F,value:O}}}function c(B,F){if(typeof e.get(F)>"u")throw new i(B,F)}function d(B){if(!/[\w\-@$]+(?:\/[\w\-$]+)+$/iu.test(B))throw new TypeError(`Expected string in the form "pluginName/objectName" but found "${B}".`)}function s(B){if(!n(B))throw new TypeError("Expected an object.")}class p extends Error{constructor(F){super("This appears to be in eslintrc format rather than flat config format."),this.messageTemplate="eslintrc-incompat",this.messageData={key:F}}}class h extends Error{constructor(F){super("This appears to be in eslintrc format (array of strings) rather than flat config format (object)."),this.messageTemplate="eslintrc-plugins",this.messageData={plugins:F}}}const g={merge:"replace",validate:"boolean"},v=new Set(["error","warn","off",2,1,0]),E={merge(B,F){const O=F===void 0?B:F;return typeof O=="boolean"?O?"warn":"off":a(O)},validate(B){if(!(v.has(B)||typeof B=="boolean"))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, 2, or a boolean.')}},b={merge(B,F){return a(F===void 0?B:F)},validate(B){if(!v.has(B))throw new TypeError('Expected one of: "error", "warn", "off", 0, 1, or 2.')}},T={merge(B={},F={}){return l(B,F)},validate:"object"},C={merge(B={},F={}){const O=l(B,F);for(const[$,N]of Object.entries(O))if(o(N)){if(u(N)){O[$]=F[$]??B[$];continue}O[$]={...O[$]};continue}return O},validate:"object"},S={merge:"replace",validate:d},w={merge(B={},F={}){const O=new Set([...Object.keys(B),...Object.keys(F)]),$={};for(const N of O)if(N!=="__proto__"){if(N in B&&N in F&&B[N]!==F[N])throw new TypeError(`Cannot redefine plugin "${N}".`);$[N]=F[N]||B[N]}return $},validate(B){if(B===null||typeof B!="object")throw new TypeError("Expected an object.");if(Array.isArray(B))throw new h(B);for(const F of Object.keys(B))if(F!=="__proto__"&&(B[F]===null||typeof B[F]!="object"))throw new TypeError(`Key "${F}": Expected an object.`)}},x={merge:"replace",validate(B){if(typeof B=="string")d(B);else if(B&&typeof B=="object"){if(typeof B.preprocess!="function"||typeof B.postprocess!="function")throw new TypeError("Object must have a preprocess() and a postprocess() method.")}else throw new TypeError("Expected an object or a string.")}},A={merge(B={},F={}){const O={...B,...F};for(const $ of Object.keys(O))try{if($==="__proto__"){delete O.__proto__;continue}if(O[$]=f(O[$]),!($ in B)||!($ in F))continue;const N=f(B[$]),_=f(F[$]);if(_.length===1){O[$]=[_[0],...N.slice(1)];continue}}catch(N){throw new Error(`Key "${$}": ${N.message}`,{cause:N})}return O},validate(B){s(B);for(const F of Object.keys(B)){if(F==="__proto__")continue;const O=B[F];m(F,O),Array.isArray(O)?c(F,O[0]):c(F,O)}}};function k(B){return{merge:"replace",validate(){throw new p(B)}}}return Ha={flatConfigSchema:{...Object.fromEntries(["env","extends","globals","ignorePatterns","noInlineConfig","overrides","parser","parserOptions","reportUnusedDisableDirectives","root"].map(B=>[B,k(B)])),settings:T,linterOptions:{schema:{noInlineConfig:g,reportUnusedDisableDirectives:E,reportUnusedInlineConfigs:b}},language:S,languageOptions:C,processor:x,plugins:w,rules:A},hasMethod:u,assertIsRuleSeverity:c},Ha}var Xa={},Pt={},Ph;function Z1(){if(Ph)return Pt;Ph=1;function a(P){if(typeof P!="string")throw new TypeError(`Path must be a string, received "${JSON.stringify(P)}"`)}function e(P,H){if(H.length>=P.length)return P;const fe=P.length-H.length;for(let ce=H.length-1;ce>=0;--ce)if(P.charCodeAt(fe+ce)!==H.charCodeAt(ce))return P;return P.slice(0,-H.length)}function n(P,H,fe=0){let ce=!1,ie=P.length;for(let he=P.length-1;he>=fe;--he)if(H(P.charCodeAt(he))){if(ce){fe=he+1;break}}else ce||(ce=!0,ie=he+1);return P.slice(fe,ie)}function o(P,H){if(a(P),P.length===0)return P;if(typeof H!="string")throw new TypeError(`Suffix must be a string, received "${JSON.stringify(H)}"`)}function t(P){if(P=P instanceof URL?P:new URL(P),P.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${P.protocol}"`);return P}function l(P){return P=t(P),decodeURIComponent(P.pathname.replace(/%(?![0-9A-Fa-f]{2})/g,"%25"))}function f(P,H){if(P.length<=1)return P;let fe=P.length;for(let ce=P.length-1;ce>0&&H(P.charCodeAt(ce));ce--)fe=ce;return P.slice(0,fe)}const u=46,r=47;function m(P){return P===r}function i(P,H=""){P instanceof URL&&(P=l(P)),o(P,H);const fe=n(P,m),ce=f(fe,m);return H?e(ce,H):ce}const c=":",d="/",s=/\/+/;function p(P){if(a(P),P.length===0)return"."}function h(P){P instanceof URL&&(P=l(P)),p(P);let H=-1,fe=!1;for(let ce=P.length-1;ce>=1;--ce)if(m(P.charCodeAt(ce))){if(fe){H=ce;break}}else fe=!0;return H===-1?m(P.charCodeAt(0))?"/":".":f(P.slice(0,H),m)}function g(P){P instanceof URL&&(P=l(P)),a(P);let H=-1,fe=0,ce=-1,ie=!0,he=0;for(let Ee=P.length-1;Ee>=0;--Ee){const Ce=P.charCodeAt(Ee);if(m(Ce)){if(!ie){fe=Ee+1;break}continue}ce===-1&&(ie=!1,ce=Ee+1),Ce===u?H===-1?H=Ee:he!==1&&(he=1):H!==-1&&(he=-1)}return H===-1||ce===-1||he===0||he===1&&H===ce-1&&H===fe+1?"":P.slice(H,ce)}function v(P,H){const fe=H.dir||H.root,ce=H.base||(H.name??"")+(H.ext??"");return fe?ce===P?fe:fe===H.root?fe+ce:fe+P+ce:ce}function E(P){if(P===null||typeof P!="object")throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof P}"`)}function b(P){return E(P),v("/",P)}function T(P){return a(P),P.length>0&&m(P.charCodeAt(0))}function C(P){if(a(P),P.length===0)return"."}function S(P,H,fe,ce){let ie="",he=0,Ee=-1,Ce=0,Ae;for(let ee=0;ee<=P.length;++ee){if(ee<P.length)Ae=P.charCodeAt(ee);else{if(ce(Ae))break;Ae=r}if(ce(Ae)){if(!(Ee===ee-1||Ce===1))if(Ee!==ee-1&&Ce===2){if(ie.length<2||he!==2||ie.charCodeAt(ie.length-1)!==u||ie.charCodeAt(ie.length-2)!==u){if(ie.length>2){const ne=ie.lastIndexOf(fe);ne===-1?(ie="",he=0):(ie=ie.slice(0,ne),he=ie.length-1-ie.lastIndexOf(fe)),Ee=ee,Ce=0;continue}else if(ie.length===2||ie.length===1){ie="",he=0,Ee=ee,Ce=0;continue}}H&&(ie.length>0?ie+=`${fe}..`:ie="..",he=2)}else ie.length>0?ie+=fe+P.slice(Ee+1,ee):ie=P.slice(Ee+1,ee),he=ee-Ee-1;Ee=ee,Ce=0}else Ae===u&&Ce!==-1?++Ce:Ce=-1}return ie}function w(P){P instanceof URL&&(P=l(P)),C(P);const H=m(P.charCodeAt(0)),fe=m(P.charCodeAt(P.length-1));return P=S(P,!H,"/",m),P.length===0&&!H&&(P="."),P.length>0&&fe&&(P+="/"),H?`/${P}`:P}function x(P,...H){if(P===void 0)return".";P instanceof URL&&(P=l(P)),H=P?[P,...H]:H,H.forEach(ce=>a(ce));const fe=H.filter(ce=>ce.length>0).join("/");return fe===""?".":w(fe)}function A(P){a(P);const H={root:"",dir:"",base:"",ext:"",name:""};if(P.length===0)return H;const fe=m(P.charCodeAt(0));let ce;fe?(H.root="/",ce=1):ce=0;let ie=-1,he=0,Ee=-1,Ce=!0,Ae=P.length-1,ee=0;for(;Ae>=ce;--Ae){const ne=P.charCodeAt(Ae);if(m(ne)){if(!Ce){he=Ae+1;break}continue}Ee===-1&&(Ce=!1,Ee=Ae+1),ne===u?ie===-1?ie=Ae:ee!==1&&(ee=1):ie!==-1&&(ee=-1)}return ie===-1||Ee===-1||ee===0||ee===1&&ie===Ee-1&&ie===he+1?(Ee!==-1&&(he===0&&fe?H.base=H.name=P.slice(1,Ee):H.base=H.name=P.slice(he,Ee)),H.base=H.base||"/"):(he===0&&fe?(H.name=P.slice(1,ie),H.base=P.slice(1,Ee)):(H.name=P.slice(he,ie),H.base=P.slice(he,Ee)),H.ext=P.slice(ie,Ee)),he>0?H.dir=f(P.slice(0,he-1),m):fe&&(H.dir="/"),H}function k(...P){let H="",fe=!1;for(let ce=P.length-1;ce>=-1&&!fe;ce--){let ie;if(ce>=0)ie=P[ce];else{const{Deno:he}=globalThis;if(typeof he?.cwd!="function")throw new TypeError("Resolved a relative path without a current working directory (CWD)");ie=he.cwd()}a(ie),ie.length!==0&&(H=`${ie}/${H}`,fe=m(ie.charCodeAt(0)))}return H=S(H,!fe,"/",m),fe?H.length>0?`/${H}`:"/":H.length>0?H:"."}function R(P,H){if(a(P),a(H),P===H)return""}function I(P,H){if(R(P,H),P=k(P),H=k(H),P===H)return"";let fe=1;const ce=P.length;for(;fe<ce&&m(P.charCodeAt(fe));++fe);const ie=ce-fe;let he=1;const Ee=H.length;for(;he<Ee&&m(H.charCodeAt(he));++he);const Ce=Ee-he,Ae=ie<Ce?ie:Ce;let ee=-1,ne=0;for(;ne<=Ae;++ne){if(ne===Ae){if(Ce>Ae){if(m(H.charCodeAt(he+ne)))return H.slice(he+ne+1);if(ne===0)return H.slice(he+ne)}else ie>Ae&&(m(P.charCodeAt(fe+ne))?ee=ne:ne===0&&(ee=0));break}const z=P.charCodeAt(fe+ne),oe=H.charCodeAt(he+ne);if(z!==oe)break;m(z)&&(ee=ne)}let we="";for(ne=fe+ee+1;ne<=ce;++ne)(ne===ce||m(P.charCodeAt(ne)))&&(we.length===0?we+="..":we+="/..");return we.length>0?we+H.slice(he+ee):(he+=ee,m(H.charCodeAt(he))&&++he,H.slice(he))}const B={" ":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D"," ":"%20"};function F(P){return P.replaceAll(/[\s]/g,H=>B[H]??H)}function O(P){if(!T(P))throw new TypeError(`Path must be absolute: received "${P}"`);const H=new URL("file:///");return H.pathname=F(P.replace(/%/g,"%25").replace(/\\/g,"%5C")),H}function $(P){return P}function N(P,H){const[fe="",...ce]=P,ie=fe.split(H);let he=ie.length,Ee="";for(const Ce of ce){const Ae=Ce.split(H);Ae.length<=he&&(he=Ae.length,Ee="");for(let ee=0;ee<he;ee++)if(Ae[ee]!==ie[ee]){he=ee,Ee=ee===0?"":H;break}}return ie.slice(0,he).join(H)+Ee}function _(P){return N(P,d)}const X=["!","$","(",")","*","+",".","=","?","[","\\","^","{","|"],L=["-","\\","]"];function K(P,H,{extended:fe=!0,globstar:ce=!0,caseInsensitive:ie=!1}={}){if(H==="")return/(?!)/;let he=H.length;for(;he>1&&P.seps.includes(H[he-1]);he--);H=H.slice(0,he);let Ee="";for(let Ce=0;Ce<H.length;){let Ae="";const ee=[];let ne=!1,we=!1,z=!1,oe=Ce;for(;oe<H.length&&!P.seps.includes(H[oe]);oe++){if(we){we=!1,Ae+=(ne?L:X).includes(H[oe])?`\\${H[oe]}`:H[oe];continue}if(H[oe]===P.escapePrefix){we=!0;continue}if(H[oe]==="[")if(ne){if(H[oe+1]===":"){let Te=oe+1,Re="";for(;H[Te+1]!==void 0&&H[Te+1]!==":";)Re+=H[Te+1],Te++;if(H[Te+1]===":"&&H[Te+2]==="]"){oe=Te+2,Re==="alnum"?Ae+="\\dA-Za-z":Re==="alpha"?Ae+="A-Za-z":Re==="ascii"?Ae+="\0-":Re==="blank"?Ae+=" ":Re==="cntrl"?Ae+="\0-":Re==="digit"?Ae+="\\d":Re==="graph"?Ae+="!-~":Re==="lower"?Ae+="a-z":Re==="print"?Ae+=" -~":Re==="punct"?Ae+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:Re==="space"?Ae+="\\s\v":Re==="upper"?Ae+="A-Z":Re==="word"?Ae+="\\w":Re==="xdigit"&&(Ae+="\\dA-Fa-f");continue}}}else{ne=!0,Ae+="[",H[oe+1]==="!"?(oe++,Ae+="^"):H[oe+1]==="^"&&(oe++,Ae+="\\^");continue}if(H[oe]==="]"&&ne){ne=!1,Ae+="]";continue}if(ne){Ae+=H[oe];continue}if(H[oe]===")"&&ee.length>0&&ee[ee.length-1]!=="BRACE"){Ae+=")";const Te=ee.pop();Te==="!"?Ae+=P.wildcard:Te!=="@"&&(Ae+=Te);continue}if(H[oe]==="|"&&ee.length>0&&ee[ee.length-1]!=="BRACE"){Ae+="|";continue}if(H[oe]==="+"&&fe&&H[oe+1]==="("){oe++,ee.push("+"),Ae+="(?:";continue}if(H[oe]==="@"&&fe&&H[oe+1]==="("){oe++,ee.push("@"),Ae+="(?:";continue}if(H[oe]==="?"){fe&&H[oe+1]==="("?(oe++,ee.push("?"),Ae+="(?:"):Ae+=".";continue}if(H[oe]==="!"&&fe&&H[oe+1]==="("){oe++,ee.push("!"),Ae+="(?!";continue}if(H[oe]==="{"){ee.push("BRACE"),Ae+="(?:";continue}if(H[oe]==="}"&&ee[ee.length-1]==="BRACE"){ee.pop(),Ae+=")";continue}if(H[oe]===","&&ee[ee.length-1]==="BRACE"){Ae+="|";continue}if(H[oe]==="*"){if(fe&&H[oe+1]==="(")oe++,ee.push("*"),Ae+="(?:";else{const Te=H[oe-1];let Re=1;for(;H[oe+1]==="*";)oe++,Re++;const Ie=H[oe+1];ce&&Re===2&&[...P.seps,void 0].includes(Te)&&[...P.seps,void 0].includes(Ie)?(Ae+=P.globstar,z=!0):Ae+=P.wildcard}continue}Ae+=X.includes(H[oe])?`\\${H[oe]}`:H[oe]}if(ee.length>0||ne||we){Ae="";for(const Te of H.slice(Ce,oe))Ae+=X.includes(Te)?`\\${Te}`:Te,z=!1}for(Ee+=Ae,z||(Ee+=oe<H.length?P.sep:P.sepMaybe,z=!0);P.seps.includes(H[oe]);)oe++;Ce=oe}return Ee=`^${Ee}$`,new RegExp(Ee,ie?"i":"")}const J={sep:"/+",sepMaybe:"/*",seps:["/"],globstar:"(?:[^/]*(?:/|$)+)*",wildcard:"[^/]*",escapePrefix:"\\"};function ge(P,H={}){return K(J,P,H)}function ae(P){const H={"{":"}","(":")","[":"]"},fe=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/;if(P==="")return!1;let ce;for(;ce=fe.exec(P);){if(ce[2])return!0;let ie=ce.index+ce[0].length;const he=ce[1],Ee=he?H[he]:null;if(he&&Ee){const Ce=P.indexOf(Ee,ie);Ce!==-1&&(ie=Ce+1)}P=P.slice(ie)}return!1}function ke(P,H={}){const{globstar:fe=!1}=H;if(P.match(/\0/g))throw new Error(`Glob contains invalid characters: "${P}"`);if(!fe)return w(P);const ce=s.source,ie=new RegExp(`(?<=(${ce}|^)\\*\\*${ce})\\.\\.(?=${ce}|$)`,"g");return w(P.replace(ie,"\0")).replace(/\0/g,"..")}function Z(P,H={}){const{globstar:fe=!1}=H;if(!fe||P.length===0)return x(...P);let ce;for(const ie of P){const he=ie;he.length>0&&(ce?ce+=`${d}${he}`:ce=he)}return ce?ke(ce,{globstar:fe}):"."}return Pt.DELIMITER=c,Pt.SEPARATOR=d,Pt.SEPARATOR_PATTERN=s,Pt.basename=i,Pt.common=_,Pt.dirname=h,Pt.extname=g,Pt.format=b,Pt.fromFileUrl=l,Pt.globToRegExp=ge,Pt.isAbsolute=T,Pt.isGlob=ae,Pt.join=x,Pt.joinGlobs=Z,Pt.normalize=w,Pt.normalizeGlob=ke,Pt.parse=A,Pt.relative=I,Pt.resolve=k,Pt.toFileUrl=O,Pt.toNamespacedPath=$,Pt}var It={},Ih;function ew(){if(Ih)return It;Ih=1;function a(ee){if(typeof ee!="string")throw new TypeError(`Path must be a string, received "${JSON.stringify(ee)}"`)}function e(ee,ne){if(ne.length>=ee.length)return ee;const we=ee.length-ne.length;for(let z=ne.length-1;z>=0;--z)if(ee.charCodeAt(we+z)!==ne.charCodeAt(z))return ee;return ee.slice(0,-ne.length)}function n(ee,ne,we=0){let z=!1,oe=ee.length;for(let Te=ee.length-1;Te>=we;--Te)if(ne(ee.charCodeAt(Te))){if(z){we=Te+1;break}}else z||(z=!0,oe=Te+1);return ee.slice(we,oe)}function o(ee,ne){if(a(ee),ee.length===0)return ee;if(typeof ne!="string")throw new TypeError(`Suffix must be a string, received "${JSON.stringify(ne)}"`)}const t=65,l=97,f=90,u=122,r=46,m=47,i=92,c=58,d=63;function s(ee,ne){if(ee.length<=1)return ee;let we=ee.length;for(let z=ee.length-1;z>0&&ne(ee.charCodeAt(z));z--)we=z;return ee.slice(0,we)}function p(ee){return ee===m}function h(ee){return ee===m||ee===i}function g(ee){return ee>=l&&ee<=u||ee>=t&&ee<=f}function v(ee){if(ee=ee instanceof URL?ee:new URL(ee),ee.protocol!=="file:")throw new TypeError(`URL must be a file URL: received "${ee.protocol}"`);return ee}function E(ee){ee=v(ee);let ne=decodeURIComponent(ee.pathname.replace(/\//g,"\\").replace(/%(?![0-9A-Fa-f]{2})/g,"%25")).replace(/^\\*([A-Za-z]:)(\\|$)/,"$1\\");return ee.hostname!==""&&(ne=`\\\\${ee.hostname}${ne}`),ne}function b(ee,ne=""){ee instanceof URL&&(ee=E(ee)),o(ee,ne);let we=0;if(ee.length>=2){const Te=ee.charCodeAt(0);g(Te)&&ee.charCodeAt(1)===c&&(we=2)}const z=n(ee,h,we),oe=s(z,h);return ne?e(oe,ne):oe}const T=";",C="\\",S=/[\\/]+/;function w(ee){if(a(ee),ee.length===0)return"."}function x(ee){ee instanceof URL&&(ee=E(ee)),w(ee);const ne=ee.length;let we=-1,z=-1,oe=!0,Te=0;const Re=ee.charCodeAt(0);if(ne>1)if(h(Re)){if(we=Te=1,h(ee.charCodeAt(1))){let Ie=2,W=Ie;for(;Ie<ne&&!h(ee.charCodeAt(Ie));++Ie);if(Ie<ne&&Ie!==W){for(W=Ie;Ie<ne&&h(ee.charCodeAt(Ie));++Ie);if(Ie<ne&&Ie!==W){for(W=Ie;Ie<ne&&!h(ee.charCodeAt(Ie));++Ie);if(Ie===ne)return ee;Ie!==W&&(we=Te=Ie+1)}}}}else g(Re)&&ee.charCodeAt(1)===c&&(we=Te=2,ne>2&&h(ee.charCodeAt(2))&&(we=Te=3));else if(h(Re))return ee;for(let Ie=ne-1;Ie>=Te;--Ie)if(h(ee.charCodeAt(Ie))){if(!oe){z=Ie;break}}else oe=!1;if(z===-1){if(we===-1)return".";z=we}return s(ee.slice(0,z),p)}function A(ee){ee instanceof URL&&(ee=E(ee)),a(ee);let ne=0,we=-1,z=0,oe=-1,Te=!0,Re=0;ee.length>=2&&ee.charCodeAt(1)===c&&g(ee.charCodeAt(0))&&(ne=z=2);for(let Ie=ee.length-1;Ie>=ne;--Ie){const W=ee.charCodeAt(Ie);if(h(W)){if(!Te){z=Ie+1;break}continue}oe===-1&&(Te=!1,oe=Ie+1),W===r?we===-1?we=Ie:Re!==1&&(Re=1):we!==-1&&(Re=-1)}return we===-1||oe===-1||Re===0||Re===1&&we===oe-1&&we===z+1?"":ee.slice(we,oe)}function k(ee,ne){const we=ne.dir||ne.root,z=ne.base||(ne.name??"")+(ne.ext??"");return we?z===ee?we:we===ne.root?we+z:we+ee+z:z}function R(ee){if(ee===null||typeof ee!="object")throw new TypeError(`The "pathObject" argument must be of type Object, received type "${typeof ee}"`)}function I(ee){return R(ee),k("\\",ee)}function B(ee){a(ee);const ne=ee.length;if(ne===0)return!1;const we=ee.charCodeAt(0);return h(we)?!0:!!(g(we)&&ne>2&&ee.charCodeAt(1)===c&&h(ee.charCodeAt(2)))}function F(ee){if(a(ee),ee.length===0)return"."}function O(ee,ne,we,z){let oe="",Te=0,Re=-1,Ie=0,W;for(let Je=0;Je<=ee.length;++Je){if(Je<ee.length)W=ee.charCodeAt(Je);else{if(z(W))break;W=m}if(z(W)){if(!(Re===Je-1||Ie===1))if(Re!==Je-1&&Ie===2){if(oe.length<2||Te!==2||oe.charCodeAt(oe.length-1)!==r||oe.charCodeAt(oe.length-2)!==r){if(oe.length>2){const ut=oe.lastIndexOf(we);ut===-1?(oe="",Te=0):(oe=oe.slice(0,ut),Te=oe.length-1-oe.lastIndexOf(we)),Re=Je,Ie=0;continue}else if(oe.length===2||oe.length===1){oe="",Te=0,Re=Je,Ie=0;continue}}ne&&(oe.length>0?oe+=`${we}..`:oe="..",Te=2)}else oe.length>0?oe+=we+ee.slice(Re+1,Je):oe=ee.slice(Re+1,Je),Te=Je-Re-1;Re=Je,Ie=0}else W===r&&Ie!==-1?++Ie:Ie=-1}return oe}function $(ee){ee instanceof URL&&(ee=E(ee)),F(ee);const ne=ee.length;let we=0,z,oe=!1;const Te=ee.charCodeAt(0);if(ne>1)if(h(Te))if(oe=!0,h(ee.charCodeAt(1))){let Ie=2,W=Ie;for(;Ie<ne&&!h(ee.charCodeAt(Ie));++Ie);if(Ie<ne&&Ie!==W){const Je=ee.slice(W,Ie);for(W=Ie;Ie<ne&&h(ee.charCodeAt(Ie));++Ie);if(Ie<ne&&Ie!==W){for(W=Ie;Ie<ne&&!h(ee.charCodeAt(Ie));++Ie);if(Ie===ne)return`\\\\${Je}\\${ee.slice(W)}\\`;Ie!==W&&(z=`\\\\${Je}\\${ee.slice(W,Ie)}`,we=Ie)}}}else we=1;else g(Te)&&ee.charCodeAt(1)===c&&(z=ee.slice(0,2),we=2,ne>2&&h(ee.charCodeAt(2))&&(oe=!0,we=3));else if(h(Te))return"\\";let Re;return we<ne?Re=O(ee.slice(we),!oe,"\\",h):Re="",Re.length===0&&!oe&&(Re="."),Re.length>0&&h(ee.charCodeAt(ne-1))&&(Re+="\\"),z===void 0?oe?Re.length>0?`\\${Re}`:"\\":Re:oe?Re.length>0?`${z}\\${Re}`:`${z}\\`:z+Re}function N(ee,...ne){if(ee instanceof URL&&(ee=E(ee)),ne=ee?[ee,...ne]:ne,ne.forEach(Re=>a(Re)),ne=ne.filter(Re=>Re.length>0),ne.length===0)return".";let we=!0,z=0;const oe=ne[0];if(h(oe.charCodeAt(0))){++z;const Re=oe.length;Re>1&&h(oe.charCodeAt(1))&&(++z,Re>2&&(h(oe.charCodeAt(2))?++z:we=!1))}let Te=ne.join("\\");if(we){for(;z<Te.length&&h(Te.charCodeAt(z));++z);z>=2&&(Te=`\\${Te.slice(z)}`)}return $(Te)}function _(ee){a(ee);const ne={root:"",dir:"",base:"",ext:"",name:""},we=ee.length;if(we===0)return ne;let z=0,oe=ee.charCodeAt(0);if(we>1){if(h(oe)){if(z=1,h(ee.charCodeAt(1))){let tt=2,qe=tt;for(;tt<we&&!h(ee.charCodeAt(tt));++tt);if(tt<we&&tt!==qe){for(qe=tt;tt<we&&h(ee.charCodeAt(tt));++tt);if(tt<we&&tt!==qe){for(qe=tt;tt<we&&!h(ee.charCodeAt(tt));++tt);tt===we?z=tt:tt!==qe&&(z=tt+1)}}}}else if(g(oe)&&ee.charCodeAt(1)===c)if(z=2,we>2){if(h(ee.charCodeAt(2))){if(we===3)return ne.root=ne.dir=ee,ne.base="\\",ne;z=3}}else return ne.root=ne.dir=ee,ne}else if(h(oe))return ne.root=ne.dir=ee,ne.base="\\",ne;z>0&&(ne.root=ee.slice(0,z));let Te=-1,Re=z,Ie=-1,W=!0,Je=ee.length-1,ut=0;for(;Je>=z;--Je){if(oe=ee.charCodeAt(Je),h(oe)){if(!W){Re=Je+1;break}continue}Ie===-1&&(W=!1,Ie=Je+1),oe===r?Te===-1?Te=Je:ut!==1&&(ut=1):Te!==-1&&(ut=-1)}return Te===-1||Ie===-1||ut===0||ut===1&&Te===Ie-1&&Te===Re+1?Ie!==-1&&(ne.base=ne.name=ee.slice(Re,Ie)):(ne.name=ee.slice(Re,Te),ne.base=ee.slice(Re,Ie),ne.ext=ee.slice(Te,Ie)),ne.base=ne.base||"\\",Re>0&&Re!==z?ne.dir=ee.slice(0,Re-1):ne.dir=ne.root,ne}function X(...ee){let ne="",we="",z=!1;for(let oe=ee.length-1;oe>=-1;oe--){let Te;const{Deno:Re}=globalThis;if(oe>=0)Te=ee[oe];else if(ne){if(typeof Re?.env?.get!="function"||typeof Re?.cwd!="function")throw new TypeError("Resolved a relative path without a current working directory (CWD)");Te=Re.cwd(),(Te===void 0||Te.slice(0,3).toLowerCase()!==`${ne.toLowerCase()}\\`)&&(Te=`${ne}\\`)}else{if(typeof Re?.cwd!="function")throw new TypeError("Resolved a drive-letter-less path without a current working directory (CWD)");Te=Re.cwd()}a(Te);const Ie=Te.length;if(Ie===0)continue;let W=0,Je="",ut=!1;const tt=Te.charCodeAt(0);if(Ie>1)if(h(tt))if(ut=!0,h(Te.charCodeAt(1))){let qe=2,$e=qe;for(;qe<Ie&&!h(Te.charCodeAt(qe));++qe);if(qe<Ie&&qe!==$e){const st=Te.slice($e,qe);for($e=qe;qe<Ie&&h(Te.charCodeAt(qe));++qe);if(qe<Ie&&qe!==$e){for($e=qe;qe<Ie&&!h(Te.charCodeAt(qe));++qe);qe===Ie?(Je=`\\\\${st}\\${Te.slice($e)}`,W=qe):qe!==$e&&(Je=`\\\\${st}\\${Te.slice($e,qe)}`,W=qe)}}}else W=1;else g(tt)&&Te.charCodeAt(1)===c&&(Je=Te.slice(0,2),W=2,Ie>2&&h(Te.charCodeAt(2))&&(ut=!0,W=3));else h(tt)&&(W=1,ut=!0);if(!(Je.length>0&&ne.length>0&&Je.toLowerCase()!==ne.toLowerCase())&&(ne.length===0&&Je.length>0&&(ne=Je),z||(we=`${Te.slice(W)}\\${we}`,z=ut),z&&ne.length>0))break}return we=O(we,!z,"\\",h),ne+(z?"\\":"")+we||"."}function L(ee,ne){if(a(ee),a(ne),ee===ne)return""}function K(ee,ne){L(ee,ne);const we=X(ee),z=X(ne);if(we===z||(ee=we.toLowerCase(),ne=z.toLowerCase(),ee===ne))return"";let oe=0,Te=ee.length;for(;oe<Te&&ee.charCodeAt(oe)===i;++oe);for(;Te-1>oe&&ee.charCodeAt(Te-1)===i;--Te);const Re=Te-oe;let Ie=0,W=ne.length;for(;Ie<W&&ne.charCodeAt(Ie)===i;++Ie);for(;W-1>Ie&&ne.charCodeAt(W-1)===i;--W);const Je=W-Ie,ut=Re<Je?Re:Je;let tt=-1,qe=0;for(;qe<=ut;++qe){if(qe===ut){if(Je>ut){if(ne.charCodeAt(Ie+qe)===i)return z.slice(Ie+qe+1);if(qe===2)return z.slice(Ie+qe)}Re>ut&&(ee.charCodeAt(oe+qe)===i?tt=qe:qe===2&&(tt=3));break}const st=ee.charCodeAt(oe+qe),mt=ne.charCodeAt(Ie+qe);if(st!==mt)break;st===i&&(tt=qe)}if(qe!==ut&&tt===-1)return z;let $e="";for(tt===-1&&(tt=0),qe=oe+tt+1;qe<=Te;++qe)(qe===Te||ee.charCodeAt(qe)===i)&&($e.length===0?$e+="..":$e+="\\..");return $e.length>0?$e+z.slice(Ie+tt,W):(Ie+=tt,z.charCodeAt(Ie)===i&&++Ie,z.slice(Ie,W))}const J={" ":"%09","\n":"%0A","\v":"%0B","\f":"%0C","\r":"%0D"," ":"%20"};function ge(ee){return ee.replaceAll(/[\s]/g,ne=>J[ne]??ne)}function ae(ee){if(!B(ee))throw new TypeError(`Path must be absolute: received "${ee}"`);const[,ne,we]=ee.match(/^(?:[/\\]{2}([^/\\]+)(?=[/\\](?:[^/\\]|$)))?(.*)/),z=new URL("file:///");if(z.pathname=ge(we.replace(/%/g,"%25")),ne!==void 0&&ne!=="localhost"&&(z.hostname=ne,!z.hostname))throw new TypeError(`Invalid hostname: "${z.hostname}"`);return z}function ke(ee){if(typeof ee!="string")return ee;if(ee.length===0)return"";const ne=X(ee);if(ne.length>=3){if(ne.charCodeAt(0)===i){if(ne.charCodeAt(1)===i){const we=ne.charCodeAt(2);if(we!==d&&we!==r)return`\\\\?\\UNC\\${ne.slice(2)}`}}else if(g(ne.charCodeAt(0))&&ne.charCodeAt(1)===c&&ne.charCodeAt(2)===i)return`\\\\?\\${ne}`}return ee}function Z(ee,ne){const[we="",...z]=ee,oe=we.split(ne);let Te=oe.length,Re="";for(const Ie of z){const W=Ie.split(ne);W.length<=Te&&(Te=W.length,Re="");for(let Je=0;Je<Te;Je++)if(W[Je]!==oe[Je]){Te=Je,Re=Je===0?"":ne;break}}return oe.slice(0,Te).join(ne)+Re}function P(ee){return Z(ee,C)}const H=["!","$","(",")","*","+",".","=","?","[","\\","^","{","|"],fe=["-","\\","]"];function ce(ee,ne,{extended:we=!0,globstar:z=!0,caseInsensitive:oe=!1}={}){if(ne==="")return/(?!)/;let Te=ne.length;for(;Te>1&&ee.seps.includes(ne[Te-1]);Te--);ne=ne.slice(0,Te);let Re="";for(let Ie=0;Ie<ne.length;){let W="";const Je=[];let ut=!1,tt=!1,qe=!1,$e=Ie;for(;$e<ne.length&&!ee.seps.includes(ne[$e]);$e++){if(tt){tt=!1,W+=(ut?fe:H).includes(ne[$e])?`\\${ne[$e]}`:ne[$e];continue}if(ne[$e]===ee.escapePrefix){tt=!0;continue}if(ne[$e]==="[")if(ut){if(ne[$e+1]===":"){let st=$e+1,mt="";for(;ne[st+1]!==void 0&&ne[st+1]!==":";)mt+=ne[st+1],st++;if(ne[st+1]===":"&&ne[st+2]==="]"){$e=st+2,mt==="alnum"?W+="\\dA-Za-z":mt==="alpha"?W+="A-Za-z":mt==="ascii"?W+="\0-":mt==="blank"?W+=" ":mt==="cntrl"?W+="\0-":mt==="digit"?W+="\\d":mt==="graph"?W+="!-~":mt==="lower"?W+="a-z":mt==="print"?W+=" -~":mt==="punct"?W+=`!"#$%&'()*+,\\-./:;<=>?@[\\\\\\]^_‘{|}~`:mt==="space"?W+="\\s\v":mt==="upper"?W+="A-Z":mt==="word"?W+="\\w":mt==="xdigit"&&(W+="\\dA-Fa-f");continue}}}else{ut=!0,W+="[",ne[$e+1]==="!"?($e++,W+="^"):ne[$e+1]==="^"&&($e++,W+="\\^");continue}if(ne[$e]==="]"&&ut){ut=!1,W+="]";continue}if(ut){W+=ne[$e];continue}if(ne[$e]===")"&&Je.length>0&&Je[Je.length-1]!=="BRACE"){W+=")";const st=Je.pop();st==="!"?W+=ee.wildcard:st!=="@"&&(W+=st);continue}if(ne[$e]==="|"&&Je.length>0&&Je[Je.length-1]!=="BRACE"){W+="|";continue}if(ne[$e]==="+"&&we&&ne[$e+1]==="("){$e++,Je.push("+"),W+="(?:";continue}if(ne[$e]==="@"&&we&&ne[$e+1]==="("){$e++,Je.push("@"),W+="(?:";continue}if(ne[$e]==="?"){we&&ne[$e+1]==="("?($e++,Je.push("?"),W+="(?:"):W+=".";continue}if(ne[$e]==="!"&&we&&ne[$e+1]==="("){$e++,Je.push("!"),W+="(?!";continue}if(ne[$e]==="{"){Je.push("BRACE"),W+="(?:";continue}if(ne[$e]==="}"&&Je[Je.length-1]==="BRACE"){Je.pop(),W+=")";continue}if(ne[$e]===","&&Je[Je.length-1]==="BRACE"){W+="|";continue}if(ne[$e]==="*"){if(we&&ne[$e+1]==="(")$e++,Je.push("*"),W+="(?:";else{const st=ne[$e-1];let mt=1;for(;ne[$e+1]==="*";)$e++,mt++;const rt=ne[$e+1];z&&mt===2&&[...ee.seps,void 0].includes(st)&&[...ee.seps,void 0].includes(rt)?(W+=ee.globstar,qe=!0):W+=ee.wildcard}continue}W+=H.includes(ne[$e])?`\\${ne[$e]}`:ne[$e]}if(Je.length>0||ut||tt){W="";for(const st of ne.slice(Ie,$e))W+=H.includes(st)?`\\${st}`:st,qe=!1}for(Re+=W,qe||(Re+=$e<ne.length?ee.sep:ee.sepMaybe,qe=!0);ee.seps.includes(ne[$e]);)$e++;Ie=$e}return Re=`^${Re}$`,new RegExp(Re,oe?"i":"")}const ie={sep:"(?:\\\\|/)+",sepMaybe:"(?:\\\\|/)*",seps:["\\","/"],globstar:"(?:[^\\\\/]*(?:\\\\|/|$)+)*",wildcard:"[^\\\\/]*",escapePrefix:"`"};function he(ee,ne={}){return ce(ie,ee,ne)}function Ee(ee){const ne={"{":"}","(":")","[":"]"},we=/\\(.)|(^!|\*|\?|[\].+)]\?|\[[^[\\\]]+\]|\{[^{\\}]+\}|\(\?[:!=][^\\)]+\)|\([^(|]+\|[^\\)]+\))/;if(ee==="")return!1;let z;for(;z=we.exec(ee);){if(z[2])return!0;let oe=z.index+z[0].length;const Te=z[1],Re=Te?ne[Te]:null;if(Te&&Re){const Ie=ee.indexOf(Re,oe);Ie!==-1&&(oe=Ie+1)}ee=ee.slice(oe)}return!1}function Ce(ee,ne={}){const{globstar:we=!1}=ne;if(ee.match(/\0/g))throw new Error(`Glob contains invalid characters: "${ee}"`);if(!we)return $(ee);const z=S.source,oe=new RegExp(`(?<=(${z}|^)\\*\\*${z})\\.\\.(?=${z}|$)`,"g");return $(ee.replace(oe,"\0")).replace(/\0/g,"..")}function Ae(ee,ne={}){const{globstar:we=!1}=ne;if(!we||ee.length===0)return N(...ee);let z;for(const oe of ee){const Te=oe;Te.length>0&&(z?z+=`${C}${Te}`:z=Te)}return z?Ce(z,{globstar:we}):"."}return It.DELIMITER=T,It.SEPARATOR=C,It.SEPARATOR_PATTERN=S,It.basename=b,It.common=P,It.dirname=x,It.extname=A,It.format=I,It.fromFileUrl=E,It.globToRegExp=he,It.isAbsolute=B,It.isGlob=Ee,It.join=N,It.joinGlobs=Ae,It.normalize=$,It.normalizeGlob=Ce,It.parse=_,It.relative=K,It.resolve=X,It.toFileUrl=ae,It.toNamespacedPath=ke,It}var Ja,Fh;function tw(){if(Fh)return Ja;Fh=1,Ja=function(e,n){for(var o=[],t=0;t<e.length;t++){var l=n(e[t],t);a(l)?o.push.apply(o,l):o.push(l)}return o};var a=Array.isArray||function(e){return Object.prototype.toString.call(e)==="[object Array]"};return Ja}var Ya,Rh;function rw(){if(Rh)return Ya;Rh=1,Ya=a;function a(o,t,l){o instanceof RegExp&&(o=e(o,l)),t instanceof RegExp&&(t=e(t,l));var f=n(o,t,l);return f&&{start:f[0],end:f[1],pre:l.slice(0,f[0]),body:l.slice(f[0]+o.length,f[1]),post:l.slice(f[1]+t.length)}}function e(o,t){var l=t.match(o);return l?l[0]:null}a.range=n;function n(o,t,l){var f,u,r,m,i,c=l.indexOf(o),d=l.indexOf(t,c+1),s=c;if(c>=0&&d>0){if(o===t)return[c,d];for(f=[],r=l.length;s>=0&&!i;)s==c?(f.push(s),c=l.indexOf(o,s+1)):f.length==1?i=[f.pop(),d]:(u=f.pop(),u<r&&(r=u,m=d),d=l.indexOf(t,s+1)),s=c<d&&c>=0?c:d;f.length&&(i=[r,m])}return i}return Ya}var Qa,_h;function nw(){if(_h)return Qa;_h=1;var a=tw(),e=rw();Qa=c;var n="\0SLASH"+Math.random()+"\0",o="\0OPEN"+Math.random()+"\0",t="\0CLOSE"+Math.random()+"\0",l="\0COMMA"+Math.random()+"\0",f="\0PERIOD"+Math.random()+"\0";function u(v){return parseInt(v,10)==v?parseInt(v,10):v.charCodeAt(0)}function r(v){return v.split("\\\\").join(n).split("\\{").join(o).split("\\}").join(t).split("\\,").join(l).split("\\.").join(f)}function m(v){return v.split(n).join("\\").split(o).join("{").split(t).join("}").split(l).join(",").split(f).join(".")}function i(v){if(!v)return[""];var E=[],b=e("{","}",v);if(!b)return v.split(",");var T=b.pre,C=b.body,S=b.post,w=T.split(",");w[w.length-1]+="{"+C+"}";var x=i(S);return S.length&&(w[w.length-1]+=x.shift(),w.push.apply(w,x)),E.push.apply(E,w),E}function c(v){return v?(v.substr(0,2)==="{}"&&(v="\\{\\}"+v.substr(2)),g(r(v),!0).map(m)):[]}function d(v){return"{"+v+"}"}function s(v){return/^-?0\d/.test(v)}function p(v,E){return v<=E}function h(v,E){return v>=E}function g(v,E){var b=[],T=e("{","}",v);if(!T||/\$$/.test(T.pre))return[v];var C=/^-?\d+\.\.-?\d+(?:\.\.-?\d+)?$/.test(T.body),S=/^[a-zA-Z]\.\.[a-zA-Z](?:\.\.-?\d+)?$/.test(T.body),w=C||S,x=T.body.indexOf(",")>=0;if(!w&&!x)return T.post.match(/,(?!,).*\}/)?(v=T.pre+"{"+T.body+t+T.post,g(v)):[v];var A;if(w)A=T.body.split(/\.\./);else if(A=i(T.body),A.length===1&&(A=g(A[0],!1).map(d),A.length===1)){var R=T.post.length?g(T.post,!1):[""];return R.map(function(H){return T.pre+A[0]+H})}var k=T.pre,R=T.post.length?g(T.post,!1):[""],I;if(w){var B=u(A[0]),F=u(A[1]),O=Math.max(A[0].length,A[1].length),$=A.length==3?Math.abs(u(A[2])):1,N=p,_=F<B;_&&($*=-1,N=h);var X=A.some(s);I=[];for(var L=B;N(L,F);L+=$){var K;if(S)K=String.fromCharCode(L),K==="\\"&&(K="");else if(K=String(L),X){var J=O-K.length;if(J>0){var ge=new Array(J+1).join("0");L<0?K="-"+ge+K.slice(1):K=ge+K}}I.push(K)}}else I=a(A,function(P){return g(P,!1)});for(var ae=0;ae<I.length;ae++)for(var ke=0;ke<R.length;ke++){var Z=k+I[ae]+R[ke];(!E||w||Z)&&b.push(Z)}return b}return Qa}var Za,Bh;function sw(){if(Bh)return Za;Bh=1,Za=s,s.Minimatch=p;var a=(function(){try{return pn}catch{}})()||{sep:"/"};s.sep=a.sep;var e=s.GLOBSTAR=p.GLOBSTAR={},n=nw(),o={"!":{open:"(?:(?!(?:",close:"))[^/]*?)"},"?":{open:"(?:",close:")?"},"+":{open:"(?:",close:")+"},"*":{open:"(?:",close:")*"},"@":{open:"(?:",close:")"}},t="[^/]",l=t+"*?",f="(?:(?!(?:\\/|^)(?:\\.{1,2})($|\\/)).)*?",u="(?:(?!(?:\\/|^)\\.).)*?",r=m("().*{}+?[]^$\\!");function m(A){return A.split("").reduce(function(k,R){return k[R]=!0,k},{})}var i=/\/+/;s.filter=c;function c(A,k){return k=k||{},function(R,I,B){return s(R,A,k)}}function d(A,k){k=k||{};var R={};return Object.keys(A).forEach(function(I){R[I]=A[I]}),Object.keys(k).forEach(function(I){R[I]=k[I]}),R}s.defaults=function(A){if(!A||typeof A!="object"||!Object.keys(A).length)return s;var k=s,R=function(B,F,O){return k(B,F,d(A,O))};return R.Minimatch=function(B,F){return new k.Minimatch(B,d(A,F))},R.Minimatch.defaults=function(B){return k.defaults(d(A,B)).Minimatch},R.filter=function(B,F){return k.filter(B,d(A,F))},R.defaults=function(B){return k.defaults(d(A,B))},R.makeRe=function(B,F){return k.makeRe(B,d(A,F))},R.braceExpand=function(B,F){return k.braceExpand(B,d(A,F))},R.match=function(I,B,F){return k.match(I,B,d(A,F))},R},p.defaults=function(A){return s.defaults(A).Minimatch};function s(A,k,R){return b(k),R||(R={}),!R.nocomment&&k.charAt(0)==="#"?!1:new p(k,R).match(A)}function p(A,k){if(!(this instanceof p))return new p(A,k);b(A),k||(k={}),A=A.trim(),!k.allowWindowsEscape&&a.sep!=="/"&&(A=A.split(a.sep).join("/")),this.options=k,this.set=[],this.pattern=A,this.regexp=null,this.negate=!1,this.comment=!1,this.empty=!1,this.partial=!!k.partial,this.make()}p.prototype.debug=function(){},p.prototype.make=h;function h(){var A=this.pattern,k=this.options;if(!k.nocomment&&A.charAt(0)==="#"){this.comment=!0;return}if(!A){this.empty=!0;return}this.parseNegate();var R=this.globSet=this.braceExpand();k.debug&&(this.debug=function(){console.error.apply(console,arguments)}),this.debug(this.pattern,R),R=this.globParts=R.map(function(I){return I.split(i)}),this.debug(this.pattern,R),R=R.map(function(I,B,F){return I.map(this.parse,this)},this),this.debug(this.pattern,R),R=R.filter(function(I){return I.indexOf(!1)===-1}),this.debug(this.pattern,R),this.set=R}p.prototype.parseNegate=g;function g(){var A=this.pattern,k=!1,R=this.options,I=0;if(!R.nonegate){for(var B=0,F=A.length;B<F&&A.charAt(B)==="!";B++)k=!k,I++;I&&(this.pattern=A.substr(I)),this.negate=k}}s.braceExpand=function(A,k){return v(A,k)},p.prototype.braceExpand=v;function v(A,k){return k||(this instanceof p?k=this.options:k={}),A=typeof A>"u"?this.pattern:A,b(A),k.nobrace||!/\{(?:(?!\{).)*\}/.test(A)?[A]:n(A)}var E=1024*64,b=function(A){if(typeof A!="string")throw new TypeError("invalid pattern");if(A.length>E)throw new TypeError("pattern is too long")};p.prototype.parse=C;var T={};function C(A,k){b(A);var R=this.options;if(A==="**")if(R.noglobstar)A="*";else return e;if(A==="")return"";var I="",B=!!R.nocase,F=!1,O=[],$=[],N,_=!1,X=-1,L=-1,K=A.charAt(0)==="."?"":R.dot?"(?!(?:^|\\/)\\.{1,2}(?:$|\\/))":"(?!\\.)",J=this;function ge(){if(N){switch(N){case"*":I+=l,B=!0;break;case"?":I+=t,B=!0;break;default:I+="\\"+N;break}J.debug("clearStateChar %j %j",N,I),N=!1}}for(var ae=0,ke=A.length,Z;ae<ke&&(Z=A.charAt(ae));ae++){if(this.debug("%s %s %s %j",A,ae,I,Z),F&&r[Z]){I+="\\"+Z,F=!1;continue}switch(Z){case"/":return!1;case"\\":ge(),F=!0;continue;case"?":case"*":case"+":case"@":case"!":if(this.debug("%s %s %s %j <-- stateChar",A,ae,I,Z),_){this.debug(" in class"),Z==="!"&&ae===L+1&&(Z="^"),I+=Z;continue}J.debug("call clearStateChar %j",N),ge(),N=Z,R.noext&&ge();continue;case"(":if(_){I+="(";continue}if(!N){I+="\\(";continue}O.push({type:N,start:ae-1,reStart:I.length,open:o[N].open,close:o[N].close}),I+=N==="!"?"(?:(?!(?:":"(?:",this.debug("plType %j %j",N,I),N=!1;continue;case")":if(_||!O.length){I+="\\)";continue}ge(),B=!0;var P=O.pop();I+=P.close,P.type==="!"&&$.push(P),P.reEnd=I.length;continue;case"|":if(_||!O.length||F){I+="\\|",F=!1;continue}ge(),I+="|";continue;case"[":if(ge(),_){I+="\\"+Z;continue}_=!0,L=ae,X=I.length,I+=Z;continue;case"]":if(ae===L+1||!_){I+="\\"+Z,F=!1;continue}var H=A.substring(L+1,ae);try{RegExp("["+H+"]")}catch{var fe=this.parse(H,T);I=I.substr(0,X)+"\\["+fe[0]+"\\]",B=B||fe[1],_=!1;continue}B=!0,_=!1,I+=Z;continue;default:ge(),F?F=!1:r[Z]&&!(Z==="^"&&_)&&(I+="\\"),I+=Z}}for(_&&(H=A.substr(L+1),fe=this.parse(H,T),I=I.substr(0,X)+"\\["+fe[0],B=B||fe[1]),P=O.pop();P;P=O.pop()){var ce=I.slice(P.reStart+P.open.length);this.debug("setting tail",I,P),ce=ce.replace(/((?:\\{2}){0,64})(\\?)\|/g,function(Je,ut,tt){return tt||(tt="\\"),ut+ut+tt+"|"}),this.debug(`tail=%j
|
|
46
|
+
%s`,ce,ce,P,I);var ie=P.type==="*"?l:P.type==="?"?t:"\\"+P.type;B=!0,I=I.slice(0,P.reStart)+ie+"\\("+ce}ge(),F&&(I+="\\\\");var he=!1;switch(I.charAt(0)){case"[":case".":case"(":he=!0}for(var Ee=$.length-1;Ee>-1;Ee--){var Ce=$[Ee],Ae=I.slice(0,Ce.reStart),ee=I.slice(Ce.reStart,Ce.reEnd-8),ne=I.slice(Ce.reEnd-8,Ce.reEnd),we=I.slice(Ce.reEnd);ne+=we;var z=Ae.split("(").length-1,oe=we;for(ae=0;ae<z;ae++)oe=oe.replace(/\)[+*?]?/,"");we=oe;var Te="";we===""&&k!==T&&(Te="$");var Re=Ae+ee+we+Te+ne;I=Re}if(I!==""&&B&&(I="(?=.)"+I),he&&(I=K+I),k===T)return[I,B];if(!B)return w(A);var Ie=R.nocase?"i":"";try{var W=new RegExp("^"+I+"$",Ie)}catch{return new RegExp("$.")}return W._glob=A,W._src=I,W}s.makeRe=function(A,k){return new p(A,k||{}).makeRe()},p.prototype.makeRe=S;function S(){if(this.regexp||this.regexp===!1)return this.regexp;var A=this.set;if(!A.length)return this.regexp=!1,this.regexp;var k=this.options,R=k.noglobstar?l:k.dot?f:u,I=k.nocase?"i":"",B=A.map(function(F){return F.map(function(O){return O===e?R:typeof O=="string"?x(O):O._src}).join("\\/")}).join("|");B="^(?:"+B+")$",this.negate&&(B="^(?!"+B+").*$");try{this.regexp=new RegExp(B,I)}catch{this.regexp=!1}return this.regexp}s.match=function(A,k,R){R=R||{};var I=new p(k,R);return A=A.filter(function(B){return I.match(B)}),I.options.nonull&&!A.length&&A.push(k),A},p.prototype.match=function(k,R){if(typeof R>"u"&&(R=this.partial),this.debug("match",k,this.pattern),this.comment)return!1;if(this.empty)return k==="";if(k==="/"&&R)return!0;var I=this.options;a.sep!=="/"&&(k=k.split(a.sep).join("/")),k=k.split(i),this.debug(this.pattern,"split",k);var B=this.set;this.debug(this.pattern,"set",B);var F,O;for(O=k.length-1;O>=0&&(F=k[O],!F);O--);for(O=0;O<B.length;O++){var $=B[O],N=k;I.matchBase&&$.length===1&&(N=[F]);var _=this.matchOne(N,$,R);if(_)return I.flipNegate?!0:!this.negate}return I.flipNegate?!1:this.negate},p.prototype.matchOne=function(A,k,R){var I=this.options;this.debug("matchOne",{this:this,file:A,pattern:k}),this.debug("matchOne",A.length,k.length);for(var B=0,F=0,O=A.length,$=k.length;B<O&&F<$;B++,F++){this.debug("matchOne loop");var N=k[F],_=A[B];if(this.debug(k,N,_),N===!1)return!1;if(N===e){this.debug("GLOBSTAR",[k,N,_]);var X=B,L=F+1;if(L===$){for(this.debug("** at the end");B<O;B++)if(A[B]==="."||A[B]===".."||!I.dot&&A[B].charAt(0)===".")return!1;return!0}for(;X<O;){var K=A[X];if(this.debug(`
|
|
47
|
+
globstar while`,A,X,k,L,K),this.matchOne(A.slice(X),k.slice(L),R))return this.debug("globstar found match!",X,O,K),!0;if(K==="."||K===".."||!I.dot&&K.charAt(0)==="."){this.debug("dot detected!",A,X,k,L);break}this.debug("globstar swallow a segment, and continue"),X++}return!!(R&&(this.debug(`
|
|
48
|
+
>>> no match, partial?`,A,X,k,L),X===O))}var J;if(typeof N=="string"?(J=_===N,this.debug("string match",N,_,J)):(J=_.match(N),this.debug("pattern match",N,_,J)),!J)return!1}if(B===O&&F===$)return!0;if(B===O)return R;if(F===$)return B===O-1&&A[B]==="";throw new Error("wtf?")};function w(A){return A.replace(/\\(.)/g,"$1")}function x(A){return A.replace(/[-[\]{}()*+?.,\\^$|#\s]/g,"\\$&")}return Za}var tn={},Lh;function aw(){if(Lh)return tn;Lh=1;class a{static overwrite(m,i){return i}static replace(m,i){return typeof i<"u"?i:m}static assign(m,i){return Object.assign({},m,i)}}class e{static array(m){if(!Array.isArray(m))throw new TypeError("Expected an array.")}static boolean(m){if(typeof m!="boolean")throw new TypeError("Expected a Boolean.")}static number(m){if(typeof m!="number")throw new TypeError("Expected a number.")}static object(m){if(!m||typeof m!="object")throw new TypeError("Expected an object.")}static"object?"(m){if(typeof m!="object")throw new TypeError("Expected an object or null.")}static string(m){if(typeof m!="string")throw new TypeError("Expected a string.")}static"string!"(m){if(typeof m!="string"||m.length===0)throw new TypeError("Expected a non-empty string.")}}function n(r,m){let i=!1;if(m.schema)if(typeof m.schema=="object")i=!0;else throw new TypeError("Schema must be an object.");if(typeof m.merge=="string"){if(!(m.merge in a))throw new TypeError(`Definition for key "${r}" missing valid merge strategy.`)}else if(!i&&typeof m.merge!="function")throw new TypeError(`Definition for key "${r}" must have a merge property.`);if(typeof m.validate=="string"){if(!(m.validate in e))throw new TypeError(`Definition for key "${r}" missing valid validation strategy.`)}else if(!i&&typeof m.validate!="function")throw new TypeError(`Definition for key "${r}" must have a validate() method.`)}class o extends Error{constructor(m){super(`Unexpected key "${m}" found.`)}}class t extends Error{constructor(m){super(`Missing required key "${m}".`)}}class l extends Error{constructor(m,i){super(`Key "${m}" requires keys "${i.join('", "')}".`)}}class f extends Error{constructor(m,i){super(`Key "${m}": ${i.message}`,{cause:i});for(const c of Object.keys(i))c in this||(this[c]=i[c])}}class u{#e=new Map;#t=new Map;constructor(m){if(!m)throw new Error("Schema definitions missing.");for(const i of Object.keys(m)){if(n(i,m[i]),typeof m[i].schema=="object"){const c=new u(m[i].schema);m[i]={...m[i],merge(d={},s={}){return c.merge(d,s)},validate(d){e.object(d),c.validate(d)}}}typeof m[i].merge=="string"&&(m[i]={...m[i],merge:a[m[i].merge]}),typeof m[i].validate=="string"&&(m[i]={...m[i],validate:e[m[i].validate]}),this.#e.set(i,m[i]),m[i].required&&this.#t.set(i,m[i])}}hasKey(m){return this.#e.has(m)}merge(...m){if(m.length<2)throw new TypeError("merge() requires at least two arguments.");if(m.some(i=>i===null||typeof i!="object"))throw new TypeError("All arguments must be objects.");return m.reduce((i,c)=>{this.validate(c);for(const[d,s]of this.#e)try{if(d in i||d in c){const h=s.merge.call(this,i[d],c[d]);h!==void 0&&(i[d]=h)}}catch(p){throw new f(d,p)}return i},{})}validate(m){for(const i of Object.keys(m)){if(!this.hasKey(i))throw new o(i);const c=this.#e.get(i);if(Array.isArray(c.requires)&&!c.requires.every(d=>d in m))throw new l(i,c.requires);try{c.validate.call(c,m[i])}catch(d){throw new f(i,d)}}for(const[i]of this.#t)if(!(i in m))throw new t(i)}}return tn.MergeStrategy=a,tn.ObjectSchema=u,tn.ValidationStrategy=e,tn}var Oh;function Nh(){return Oh||(Oh=1,(function(a){var e=Z1(),n=ew(),o=sw(),t=kr(),l=aw();function f(ie){var he=Object.create(null);return ie&&Object.keys(ie).forEach(function(Ee){if(Ee!=="default"){var Ce=Object.getOwnPropertyDescriptor(ie,Ee);Object.defineProperty(he,Ee,Ce.get?Ce:{enumerable:!0,get:function(){return ie[Ee]}})}}),he.default=ie,Object.freeze(he)}var u=f(e),r=f(n);const m={required:!1,merge(){},validate(){}},i=Object.freeze({name:{required:!1,merge(){},validate(ie){if(typeof ie!="string")throw new TypeError("Property must be a string.")}},basePath:m,files:m,ignores:m});function c(ie){if(!Array.isArray(ie))throw new TypeError("Expected value to be an array.")}function d(ie){if(c(ie),ie.some(he=>typeof he!="string"&&typeof he!="function"))throw new TypeError("Expected array to only contain strings and functions.")}function s(ie){if(!Array.isArray(ie)||ie.length===0)throw new TypeError("Expected value to be a non-empty array.")}const p=Object.freeze({basePath:{required:!1,merge(){},validate(ie){if(typeof ie!="string")throw new TypeError("Expected value to be a string.")}},files:{required:!1,merge(){},validate(ie){s(ie),ie.forEach(he=>{if(Array.isArray(he))d(he);else if(typeof he!="string"&&typeof he!="function")throw new TypeError("Items must be a string, a function, or an array of strings and functions.")})}},ignores:{required:!1,merge(){},validate:d}}),h=o.Minimatch,g=t("@eslint/config-array"),v=new Map,E=new Map,b={dot:!0,allowWindowsEscape:!0},T=new Set(["array","function"]),C=new Set(["name","basePath"]),S=new l.ObjectSchema(p),w=Object.freeze({status:"external"}),x=Object.freeze({status:"ignored"}),A=Object.freeze({status:"unconfigured"}),k=/^\.\.(?:\/|$)/u;class R extends Error{constructor(he,Ee,{cause:Ce,message:Ae}){const ee=Ae||Ce.message;if(super(`Config ${he}: ${ee}`,{cause:Ce}),Ce)for(const ne of Object.keys(Ce))ne in this||(this[ne]=Ce[ne]);this.name="ConfigError",this.index=Ee}}function I(ie){return ie&&typeof ie.name=="string"&&ie.name?`"${ie.name}"`:"(unnamed)"}function B(ie,he,Ee){const Ce=I(ie);throw new R(Ce,he,{cause:Ee})}function F(ie){return typeof ie=="string"}function O(ie,he){if(ie===null)throw new R(I(ie),he,{message:"Unexpected null config."});if(ie===void 0)throw new R(I(ie),he,{message:"Unexpected undefined config."});if(typeof ie!="object")throw new R(I(ie),he,{message:"Unexpected non-object config."});const Ee={};"basePath"in ie&&(Ee.basePath=ie.basePath),"files"in ie&&(Ee.files=ie.files),"ignores"in ie&&(Ee.ignores=ie.ignores);try{S.validate(Ee)}catch(Ce){B(ie,he,Ce)}}function $(ie,he,Ee={}){let Ce=v;Ee.flipNegate&&(Ce=E);let Ae=Ce.get(he);return Ae||(Ae=new h(he,Object.assign({},b,Ee)),Ce.set(he,Ae)),Ae.match(ie)}function N(ie){if(F(ie)){if(ie.startsWith("./"))return ie.slice(2);if(ie.startsWith("!./"))return`!${ie.slice(3)}`}return ie}function _(ie){return F(ie)&&(ie.startsWith("./")||ie.startsWith("!./"))}function X(ie,he,Ee){if(!ie)return ie;const Ce=typeof ie.basePath=="string";let Ae=!1;if(Ce&&(Ae=!0),!Ae&&Array.isArray(ie.files)&&(Ae=ie.files.some(ne=>Array.isArray(ne)?ne.some(_):_(ne))),!Ae&&Array.isArray(ie.ignores)&&(Ae=ie.ignores.some(_)),!Ae)return ie;const ee={...ie};return Ce&&(Ee.isAbsolute(ie.basePath)?ee.basePath=Ee.toNamespacedPath(ie.basePath):ee.basePath=Ee.resolve(he,ie.basePath)),Array.isArray(ee.files)&&(ee.files=ee.files.map(ne=>Array.isArray(ne)?ne.map(N):N(ne))),Array.isArray(ee.ignores)&&(ee.ignores=ee.ignores.map(N)),ee}async function L(ie,he,Ee,Ce,Ae){const ee=Ee.includes("function"),ne=Ee.includes("array");async function*we(Te){for(let Re of Te){if(typeof Re=="function"){if(!ee)throw new TypeError("Unexpected function.");Re=Re(he),Re.then&&(Re=await Re)}if(Array.isArray(Re)){if(!ne)throw new TypeError("Unexpected array.");yield*we(Re)}else{if(typeof Re=="function")throw new TypeError("A config function can only return an object or array.");yield Re}}}const z=await we(ie),oe=[];for await(const Te of z)oe.push(X(Te,Ce,Ae));return oe}function K(ie,he,Ee,Ce,Ae){const ee=Ee.includes("function"),ne=Ee.includes("array");function*we(oe){for(let Te of oe){if(typeof Te=="function"){if(!ee)throw new TypeError("Unexpected function.");if(Te=Te(he),Te.then)throw new TypeError("Async config functions are not supported.")}if(Array.isArray(Te)){if(!ne)throw new TypeError("Unexpected array.");yield*we(Te)}else{if(typeof Te=="function")throw new TypeError("A config function can only return an object or array.");yield Te}}}const z=[];for(const oe of we(ie))z.push(X(oe,Ce,Ae));return z}function J(ie,he,Ee){const Ce=Ee.resolve(he,ie),Ae=Ee.toNamespacedPath(Ce);return Ee.relative(he,Ae).replaceAll(Ee.SEPARATOR,"/")}function ge(ie,he,Ee,{basePath:Ce,path:Ae}={}){let ee=!1;for(const ne of ie){let we=Ee;if(ne.basePath){if(we=J(Ae.resolve(Ce,Ee),ne.basePath,Ae),we===""||k.test(we))continue;Ee.endsWith("/")&&(we+="/")}ee=ne.ignores.reduce((z,oe)=>z?typeof oe=="string"&&oe.startsWith("!")?!$(we,oe,{flipNegate:!0}):z:typeof oe=="function"?oe(he):oe.startsWith("!")?!1:$(we,oe),ee)}return ee}function ae(ie,he,Ee){function Ce(ee){if(F(ee))return $(he,ee);if(typeof ee=="function")return ee(ie);throw new TypeError(`Unexpected matcher type ${ee}.`)}let Ae=Ee.files.some(ee=>Array.isArray(ee)?ee.every(Ce):Ce(ee));return Ae&&Ee.ignores&&(Ae=!ge([{ignores:Ee.ignores}],ie,he)),Ae}function ke(ie){if(!ie.isNormalized())throw new Error("ConfigArray must be normalized to perform this operation.")}function Z(ie){if(ie.length>2)throw new TypeError("configTypes must be an array with at most two items.");for(const he of ie)if(!T.has(he))throw new TypeError(`Unexpected config type "${he}" found. Expected one of: "object", "array", "function".`)}function P(ie){if(ie.startsWith("/"))return u;if(/^(?:[A-Za-z]:[/\\]|[/\\]{2})/u.test(ie))return r;throw new Error(`Expected an absolute path but received "${ie}"`)}const H={isNormalized:Symbol("isNormalized"),configCache:Symbol("configCache"),schema:Symbol("schema"),finalizeConfig:Symbol("finalizeConfig"),preprocessConfig:Symbol("preprocessConfig")},fe=new WeakMap;class ce extends Array{#e;#t;constructor(he,{basePath:Ee="/",normalized:Ce=!1,schema:Ae,extraConfigTypes:ee=[]}={}){if(super(),this[H.isNormalized]=Ce,this[H.schema]=new l.ObjectSchema(Object.assign({},Ae,i)),!F(Ee)||!Ee)throw new TypeError("basePath must be a non-empty string");this.basePath=Ee,Z(ee),this.extraConfigTypes=[...ee],Object.freeze(this.extraConfigTypes),this[H.configCache]=new Map,fe.set(this,{explicitMatches:new Map,directoryMatches:new Map,files:void 0,ignores:void 0}),Array.isArray(he)?this.push(...he):this.push(he),this.#t=P(Ee),this.#e=this.#t.toNamespacedPath(Ee)}static get[Symbol.species](){return Array}get files(){ke(this);const he=fe.get(this);if(he.files)return he.files;const Ee=[];for(const Ce of this)Ce.files&&Ce.files.forEach(Ae=>{Ee.push(Ae)});return he.files=Ee,fe.set(this,he),Ee}get ignores(){ke(this);const he=fe.get(this);if(he.ignores)return he.ignores;const Ee=[];for(const Ce of this)Ce.ignores&&Object.keys(Ce).filter(Ae=>!C.has(Ae)).length===1&&Ee.push(Ce);return he.ignores=Ee,fe.set(this,he),Ee}isNormalized(){return this[H.isNormalized]}async normalize(he={}){if(!this.isNormalized()){const Ee=await L(this,he,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...Ee.map(this[H.preprocessConfig].bind(this))),this.forEach(O),this[H.isNormalized]=!0,Object.freeze(this)}return this}normalizeSync(he={}){if(!this.isNormalized()){const Ee=K(this,he,this.extraConfigTypes,this.#e,this.#t);this.length=0,this.push(...Ee.map(this[H.preprocessConfig].bind(this))),this.forEach(O),this[H.isNormalized]=!0,Object.freeze(this)}return this}[H.finalizeConfig](he){return he}[H.preprocessConfig](he){return he}getConfigWithStatus(he){ke(this);const Ee=this[H.configCache];if(Ee.has(he))return Ee.get(he);const Ce=J(he,this.#e,this.#t);if(k.test(Ce))return g(`No config for file ${he} outside of base path`),Ee.set(he,w),w;if(this.isDirectoryIgnored(this.#t.dirname(he)))return g(`Ignoring ${he} based on directory pattern`),Ee.set(he,x),x;if(ge(this.ignores,he,Ce,{basePath:this.#e,path:this.#t}))return g(`Ignoring ${he} based on file pattern`),Ee.set(he,x),x;const Ae=[];let ee=!1;const ne=/^\*$|^!|\/\*{1,2}$/u;if(this.forEach((Te,Re)=>{const Ie=Te.basePath?J(this.#t.resolve(this.#e,he),Te.basePath,this.#t):Ce;if(Te.basePath&&k.test(Ie)){g(`Skipped config found for ${he} (based on config's base path: ${Te.basePath}`);return}if(!Te.files){if(!Te.ignores){g(`Universal config found for ${he}`),Ae.push(Re);return}if(Object.keys(Te).filter(ut=>!C.has(ut)).length===1){g(`Skipped config found for ${he} (global ignores)`);return}if(ge([{ignores:Te.ignores}],he,Ie)){g(`Skipped config found for ${he} (based on ignores: ${Te.ignores})`);return}g(`Matching config found for ${he} (based on ignores: ${Te.ignores})`),Ae.push(Re);return}const W=[],Je=Te.files.filter(ut=>Array.isArray(ut)?ut.every(tt=>ne.test(tt))?!0:(W.push(ut),!1):ne.test(ut)?!0:(W.push(ut),!1));if(Je.length){if(g("Universal files patterns found. Checking carefully."),W.length&&ae(he,Ie,{files:W,ignores:Te.ignores})){g(`Matching config found for ${he}`),Ae.push(Re),ee=!0;return}if(Je.length&&ae(he,Ie,{files:Je,ignores:Te.ignores})){g(`Matching config found for ${he}`),Ae.push(Re);return}return}ae(he,Ie,Te)&&(g(`Matching config found for ${he}`),Ae.push(Re),ee=!0)}),!ee)return g(`No matching configs found for ${he}`),Ee.set(he,A),A;const we=Ae.toString();let z=Ee.get(we);if(z)return Ee.set(he,z),z;let oe=Ae.reduce((Te,Re)=>{try{return this[H.schema].merge(Te,this[Re])}catch(Ie){B(this[Re],Re,Ie)}},{});return oe=this[H.finalizeConfig](oe),z=Object.freeze({config:oe,status:"matched"}),Ee.set(he,z),Ee.set(we,z),z}getConfig(he){return this.getConfigWithStatus(he).config}getConfigStatus(he){return this.getConfigWithStatus(he).status}isIgnored(he){return this.isFileIgnored(he)}isFileIgnored(he){return this.getConfigStatus(he)==="ignored"}isDirectoryIgnored(he){ke(this);const Ee=J(he,this.#e,this.#t);if(Ee==="")return!1;if(k.test(Ee))return!0;const Ce=fe.get(this).directoryMatches;if(Ce.has(Ee))return Ce.get(Ee);const Ae=Ee.split("/");let ee="",ne;do ee+=`${Ae.shift()}/`,ne=ge(this.ignores,this.#t.join(this.basePath,ee),ee,{basePath:this.#e,path:this.#t}),Ce.set(ee,ne);while(!ne&&Ae.length);return Ce.set(Ee,ne),ne}}Object.defineProperty(a,"ObjectSchema",{enumerable:!0,get:function(){return l.ObjectSchema}}),a.ConfigArray=ce,a.ConfigArraySymbol=H})(Xa)),Xa}var iw="http://json-schema.org/draft-04/schema#",ow="http://json-schema.org/draft-04/schema#",lw="Core schema meta-schema",uw={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}},cw="object",fw={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:"#"}},pw={exclusiveMaximum:["maximum"],exclusiveMinimum:["minimum"]},mw={id:iw,$schema:ow,description:lw,definitions:uw,type:cw,properties:fw,dependencies:pw,default:{}},ei,Mh;function dw(){if(Mh)return ei;Mh=1;const a=Ed(),e=mw;return ei=(n={})=>{const o=new a({meta:!1,useDefaults:!0,validateSchema:!1,missingRefs:"ignore",verbose:!0,schemaId:"auto",...n});return o.addMetaSchema(e),o._opts.defaultMeta=e.id,o},ei}var hw={"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"]},jh={rules:hw},ti,Uh;function ri(){if(Uh)return ti;Uh=1;const{deepMergeArrays:a}=Ah(),{flatConfigSchema:e,hasMethod:n}=Ka(),{ObjectSchema:o}=Nh(),l=dw()(),f=jh,u=Object.freeze({type:"array",minItems:0,maxItems:0}),r=new Map([[0,0],[1,1],[2,2],["off",0],["warn",1],["error",2]]),m=new WeakMap;function i({pluginName:C,ruleName:S},w){const x=C==="@"?S:`${C}/${S}`,A=`Key "rules": Key "${x}"`;let k=`${A}: Could not find plugin "${C}" in configuration.`;const R=k;if(w.plugins&&w.plugins[C]){const B=f.rules[S];if(C==="@"&&B)k=`${A}: Rule "${S}" was removed and replaced by "${B}".`;else{k=`${A}: Could not find "${S}" in plugin "${C}".`;for(const[F,O]of Object.entries(w.plugins))if(O.rules&&O.rules[S]){k+=` Did you mean "${F}/${S}"?`;break}}}const I=new TypeError(k);throw k===R&&(I.messageTemplate="config-plugin-missing",I.messageData={pluginName:C,ruleId:x}),I}class c extends Error{constructor(S,w){super(`Error while processing options validation schema of rule '${S}': ${w.message}`,{cause:w}),this.code="ESLINT_INVALID_RULE_OPTIONS_SCHEMA"}}function d(C){let S,w;return C.includes("/")?(C.startsWith("@")?S=C.slice(0,C.lastIndexOf("/")):S=C.slice(0,C.indexOf("/")),w=C.slice(S.length+1)):(S="@",w=C),{pluginName:S,ruleName:w}}function s(C,S){const{pluginName:w,ruleName:x}=d(C);return S.plugins?.[w]?.rules?.[x]}function p(C){if(!C.meta)return{...u};const S=C.meta.schema;if(typeof S>"u")return{...u};if(S===!1)return null;if(typeof S!="object"||S===null)throw new TypeError("Rule's `meta.schema` must be an array or object");return Array.isArray(S)?S.length?{type:"array",items:S,minItems:0,maxItems:S.length}:{...u}:S}function h(C){const S=C.split("/");return{objectName:S.pop(),pluginName:S.join("/")}}function g(C){let S=C.name;if(!S&&(!C.meta||(S=C.meta.name,!S)))return null;let w=C.version;return w||(w=C.meta&&C.meta.version),w?`${S}@${w}`:S}function v(C,S,w){if(typeof C=="function"){const x=new TypeError(`Cannot serialize key "${S}" in "${w}": Function values are not supported.`);throw x.messageTemplate="config-serialize-function",x.messageData={key:S,objectKey:w},x}}function E(C,S="languageOptions"){if(typeof C.toJSON=="function"){const x=C.toJSON();return v(x,"toJSON",S),x}const w={};for(const[x,A]of Object.entries(C)){if(A){if(typeof A=="object"){const k=g(A);typeof A.toJSON=="function"?(w[x]=A.toJSON(),v(w[x],x,S)):k&&n(A)?w[x]=k:w[x]=E(A,x);continue}v(A,x,S)}w[x]=A}return w}function b(C,S){if(!m.has(C))try{const w=p(C);w&&m.set(C,l.compile(w))}catch(w){throw new c(S,w)}return m.get(C)}class T{#e;#t;constructor(S){const{plugins:w,language:x,languageOptions:A,processor:k,...R}=S;if(new o(e).validate(S),Object.assign(this,R),!x)throw new TypeError("Key 'language' is required.");this.plugins=w,this.language=x;const{pluginName:B,objectName:F}=h(x);if(this.#e=x,!w||!w[B]||!w[B].languages||!w[B].languages[F])throw new TypeError(`Key "language": Could not find "${F}" in plugin "${B}".`);this.language=w[B].languages[F],this.language.defaultLanguageOptions??A?this.languageOptions=e.languageOptions.merge(this.language.defaultLanguageOptions,A):this.languageOptions={};try{this.language.validateLanguageOptions(this.languageOptions)}catch(O){throw new TypeError(`Key "languageOptions": ${O.message}`,{cause:O})}if(this.language.normalizeLanguageOptions&&(this.languageOptions=this.language.normalizeLanguageOptions(this.languageOptions)),k)if(this.processor=k,typeof k=="string"){const{pluginName:O,objectName:$}=h(k);if(this.#t=k,!w||!w[O]||!w[O].processors||!w[O].processors[$])throw new TypeError(`Key "processor": Could not find "${$}" in plugin "${O}".`);this.processor=w[O].processors[$]}else if(typeof k=="object")this.#t=g(k),this.processor=k;else throw new TypeError("Key 'processor' must be a string or an object.");this.rules&&(this.#r(),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(([S,w])=>{const x=g(w);return x?`${S}:${x}`:S}),language:this.#e,languageOptions:E(this.languageOptions),processor:this.#t}}getRuleDefinition(S){return s(S,this)}#r(){for(const[S,w]of Object.entries(this.rules)){let x=Array.isArray(w)?w:[w];x[0]=r.get(x[0]);const A=s(S,this),k=x.slice(1),R=a(A?.meta?.defaultOptions,k);R.length&&(x=[x[0],...R]),this.rules[S]=x}}validateRulesConfig(S){if(!S)throw new TypeError("Config is required for validation.");for(const[w,x]of Object.entries(S)){if(w==="__proto__"||x[0]===0)continue;const A=s(w,this);A||i(d(w),this);const k=b(A,w);if(k&&(k(x.slice(1)),k.errors))throw new Error(`Key "rules": Key "${w}":
|
|
49
|
+
${k.errors.map(R=>{if(R.keyword==="additionalProperties"&&R.schema===!1&&typeof R.parentSchema?.properties=="object"&&typeof R.params?.additionalProperty=="string"){const I=Object.keys(R.parentSchema.properties).map(B=>`"${B}"`);return` Value ${JSON.stringify(R.data)} ${R.message}.
|
|
50
|
+
Unexpected property "${R.params.additionalProperty}". Expected properties: ${I.join(", ")}.
|
|
51
|
+
`}return` Value ${JSON.stringify(R.data)} ${R.message}.
|
|
52
|
+
`}).join("")}`)}}static getRuleOptionsSchema(S){return p(S)}static getRuleNumericSeverity(S){const w=Array.isArray(S)?S[0]:S;return r.has(w)?r.get(w):typeof w=="string"?r.get(w.toLowerCase())??0:0}}return ti={Config:T},ti}var ni,qh;function gw(){if(qh)return ni;qh=1;const a=Rn(),{Config:e}=ri();function n(m,i){return m.line-i.line||m.column-i.column}function o(m){const i=new Map;for(const c of m){const{unprocessedDirective:{parentDirective:d}}=c;i.has(d)?i.get(d).push(c):i.set(d,[c])}return[...i.values()]}function t(m,i,c){const d=i.value.trim(),s=c.text.indexOf(d,c.getRange(i.node)[0]);return m.map(p=>{const{ruleId:h}=p,v=new RegExp(String.raw`(?:^|\s*,\s*)(?<quote>['"]?)${a(h)}\k<quote>(?:\s*,\s*|$)`,"u").exec(d),E=v[0],b=s+v.index,T=b+E.length,C=E.indexOf(","),S=E.lastIndexOf(",");let w,x;return C!==S?(w=b+C,x=b+S):(w=b,x=T),{description:`'${h}'`,fix:{range:[w,x],text:""},unprocessedDirective:p.unprocessedDirective}})}function l(m,i,c){const d=c.getRange(i),s=m.filter(p=>p.ruleId).map(p=>`'${p.ruleId}'`);return{description:s.length<=2?s.join(" or "):`${s.slice(0,s.length-1).join(", ")}, or ${s.at(-1)}`,fix:{range:d,text:" "},unprocessedDirective:m[0].unprocessedDirective}}function f(m,i){return o(m).flatMap(d=>{const{parentDirective:s}=d[0].unprocessedDirective,p=new Set(s.ruleIds);for(const h of d)p.delete(h.ruleId);return p.size?t(d,s,i):[l(d,s.node,i)]})}function u(m){const i=new Map,c=new Set;for(let d=m.length-1;d>=0;d--){const s=m[d];if(s.type==="disable"){if(i.size===0)continue;if(s.ruleId===null){for(const p of i.values())c.add(p);i.clear()}else{const p=i.get(s.ruleId);if(p)c.add(p);else{const h=i.get(null);h&&c.add(h)}}}else s.type==="enable"&&(s.ruleId===null?(i.clear(),i.set(null,s)):i.set(s.ruleId,s))}return c}function r(m){const i=[],c=new Set,{sourceCode:d}=m;for(const b of m.problems){let T=[],C=0;for(;C<m.directives.length&&n(m.directives[C],b)<=0;){const S=m.directives[C++];if(S.ruleId===null||S.ruleId===b.ruleId)switch(S.type){case"disable":T.push(S);break;case"enable":T=[];break}}if(T.length>0){const S=T.map(w=>({kind:"directive",justification:w.unprocessedDirective.justification}));b.suppressions?b.suppressions=b.suppressions.concat(S):(b.suppressions=S,c.add(T.at(-1)))}i.push(b)}const s=m.directives.filter(b=>b.type==="disable"&&!c.has(b)&&!m.rulesToIgnore.has(b.ruleId)),p=new Set(m.directives.filter(b=>b.unprocessedDirective.type==="enable"&&!m.rulesToIgnore.has(b.ruleId)));if(p.size>0)for(const b of u(m.directives))p.delete(b);const h=f(s,d).concat(f(p,d)),g=m.language.columnStart===1?0:1,v=m.language.lineStart===1?0:1,E=h.map(({description:b,fix:T,unprocessedDirective:C})=>{const{parentDirective:S,type:w,line:x,column:A}=C;let k;w==="enable"?k=b?`Unused eslint-enable directive (no matching eslint-disable directives were found for ${b}).`:"Unused eslint-enable directive (no matching eslint-disable directives were found).":k=b?`Unused eslint-disable directive (no problems were reported from ${b}).`:"Unused eslint-disable directive (no problems were reported).";const R=d.getLoc(S.node);return{ruleId:null,message:k,line:w==="disable-next-line"?R.start.line+v:x,column:w==="disable-next-line"?R.start.column+g:A,severity:m.reportUnusedDisableDirectives==="warn"?1:2,nodeType:null,...m.disableFixes?{}:{fix:T}}});return{problems:i,unusedDirectives:E}}return ni=({language:m,sourceCode:i,directives:c,disableFixes:d,problems:s,configuredRules:p,ruleFilter:h,reportUnusedDisableDirectives:g="off"})=>{const v=c.filter(S=>S.type==="disable"||S.type==="enable").map(S=>Object.assign({},S,{unprocessedDirective:S})).sort(n),E=c.flatMap(S=>{switch(S.type){case"disable":case"enable":return[];case"disable-line":return[{type:"disable",line:S.line,column:1,ruleId:S.ruleId,unprocessedDirective:S},{type:"enable",line:S.line+1,column:0,ruleId:S.ruleId,unprocessedDirective:S}];case"disable-next-line":return[{type:"disable",line:S.line+1,column:1,ruleId:S.ruleId,unprocessedDirective:S},{type:"enable",line:S.line+2,column:0,ruleId:S.ruleId,unprocessedDirective:S}];default:throw new TypeError(`Unrecognized directive type '${S.type}'`)}}).sort(n),b=p&&h?new Set(Object.keys(p).filter(S=>{const w=e.getRuleNumericSeverity(p[S]);return w===0?!1:!h({severity:w,ruleId:S})})):new Set;b.size>0&&b.add(null);const T=r({language:m,sourceCode:i,problems:s,directives:v,disableFixes:d,reportUnusedDisableDirectives:g,rulesToIgnore:b}),C=r({language:m,sourceCode:i,problems:T.problems,directives:E,disableFixes:d,reportUnusedDisableDirectives:g,rulesToIgnore:b});return g!=="off"?C.problems.concat(T.unusedDirectives).concat(C.unusedDirectives).sort(n):C.problems},ni}function yw(a){throw new Error('Could not dynamically require "'+a+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var si,Vh;function vw(){if(Vh)return si;Vh=1;const a=kr()("eslint:rules");class e extends Map{constructor(o){let t=o.length;super(a.enabled?o.map(([l,f])=>{let u=null;return[l,()=>(u||(a("Loading rule %o (remaining=%d)",l,--t),u=f()),u)]}):o),Object.defineProperty(e.prototype,"set",{configurable:!0,value:void 0})}get(o){const t=super.get(o);return t&&t()}*values(){for(const o of super.values())yield o()}*entries(){for(const[o,t]of super.entries())yield[o,t()]}forEach(o,t){for(const[l,f]of super.entries())o.call(t,f(),l,this)}}return Object.defineProperties(e.prototype,{clear:{configurable:!0,value:void 0},delete:{configurable:!0,value:void 0},[Symbol.iterator]:{configurable:!0,writable:!0,value:e.prototype.entries}}),si={LazyLoadingRuleMap:e},si}var ai={exports:{}},rn={},ii={exports:{}},$h;function Sw(){return $h||($h=1,(function(){function a(f){if(f==null)return!1;switch(f.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(f){if(f==null)return!1;switch(f.type){case"DoWhileStatement":case"ForInStatement":case"ForStatement":case"WhileStatement":return!0}return!1}function n(f){if(f==null)return!1;switch(f.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 o(f){return n(f)||f!=null&&f.type==="FunctionDeclaration"}function t(f){switch(f.type){case"IfStatement":return f.alternate!=null?f.alternate:f.consequent;case"LabeledStatement":case"ForStatement":case"ForInStatement":case"WhileStatement":case"WithStatement":return f.body}return null}function l(f){var u;if(f.type!=="IfStatement"||f.alternate==null)return!1;u=f.consequent;do{if(u.type==="IfStatement"&&u.alternate==null)return!0;u=t(u)}while(u);return!1}ii.exports={isExpression:a,isStatement:n,isIterationStatement:e,isSourceElement:o,isProblematicIfStatement:l,trailingStatement:t}})()),ii.exports}var oi={exports:{}},Gh;function Wh(){return Gh||(Gh=1,(function(){var a,e,n,o,t,l;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]/},a={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 f(g){return 48<=g&&g<=57}function u(g){return 48<=g&&g<=57||97<=g&&g<=102||65<=g&&g<=70}function r(g){return g>=48&&g<=55}n=[5760,8192,8193,8194,8195,8196,8197,8198,8199,8200,8201,8202,8239,8287,12288,65279];function m(g){return g===32||g===9||g===11||g===12||g===160||g>=5760&&n.indexOf(g)>=0}function i(g){return g===10||g===13||g===8232||g===8233}function c(g){if(g<=65535)return String.fromCharCode(g);var v=String.fromCharCode(Math.floor((g-65536)/1024)+55296),E=String.fromCharCode((g-65536)%1024+56320);return v+E}for(o=new Array(128),l=0;l<128;++l)o[l]=l>=97&&l<=122||l>=65&&l<=90||l===36||l===95;for(t=new Array(128),l=0;l<128;++l)t[l]=l>=97&&l<=122||l>=65&&l<=90||l>=48&&l<=57||l===36||l===95;function d(g){return g<128?o[g]:e.NonAsciiIdentifierStart.test(c(g))}function s(g){return g<128?t[g]:e.NonAsciiIdentifierPart.test(c(g))}function p(g){return g<128?o[g]:a.NonAsciiIdentifierStart.test(c(g))}function h(g){return g<128?t[g]:a.NonAsciiIdentifierPart.test(c(g))}oi.exports={isDecimalDigit:f,isHexDigit:u,isOctalDigit:r,isWhiteSpace:m,isLineTerminator:i,isIdentifierStartES5:d,isIdentifierPartES5:s,isIdentifierStartES6:p,isIdentifierPartES6:h}})()),oi.exports}var li={exports:{}},zh;function Ew(){return zh||(zh=1,(function(){var a=Wh();function e(d){switch(d){case"implements":case"interface":case"package":case"private":case"protected":case"public":case"static":case"let":return!0;default:return!1}}function n(d,s){return!s&&d==="yield"?!1:o(d,s)}function o(d,s){if(s&&e(d))return!0;switch(d.length){case 2:return d==="if"||d==="in"||d==="do";case 3:return d==="var"||d==="for"||d==="new"||d==="try";case 4:return d==="this"||d==="else"||d==="case"||d==="void"||d==="with"||d==="enum";case 5:return d==="while"||d==="break"||d==="catch"||d==="throw"||d==="const"||d==="yield"||d==="class"||d==="super";case 6:return d==="return"||d==="typeof"||d==="delete"||d==="switch"||d==="export"||d==="import";case 7:return d==="default"||d==="finally"||d==="extends";case 8:return d==="function"||d==="continue"||d==="debugger";case 10:return d==="instanceof";default:return!1}}function t(d,s){return d==="null"||d==="true"||d==="false"||n(d,s)}function l(d,s){return d==="null"||d==="true"||d==="false"||o(d,s)}function f(d){return d==="eval"||d==="arguments"}function u(d){var s,p,h;if(d.length===0||(h=d.charCodeAt(0),!a.isIdentifierStartES5(h)))return!1;for(s=1,p=d.length;s<p;++s)if(h=d.charCodeAt(s),!a.isIdentifierPartES5(h))return!1;return!0}function r(d,s){return(d-55296)*1024+(s-56320)+65536}function m(d){var s,p,h,g,v;if(d.length===0)return!1;for(v=a.isIdentifierStartES6,s=0,p=d.length;s<p;++s){if(h=d.charCodeAt(s),55296<=h&&h<=56319){if(++s,s>=p||(g=d.charCodeAt(s),!(56320<=g&&g<=57343)))return!1;h=r(h,g)}if(!v(h))return!1;v=a.isIdentifierPartES6}return!0}function i(d,s){return u(d)&&!t(d,s)}function c(d,s){return m(d)&&!l(d,s)}li.exports={isKeywordES5:n,isKeywordES6:o,isReservedWordES5:t,isReservedWordES6:l,isRestrictedWord:f,isIdentifierNameES5:u,isIdentifierNameES6:m,isIdentifierES5:i,isIdentifierES6:c}})()),li.exports}var Hh;function Kh(){return Hh||(Hh=1,(function(){rn.ast=Sw(),rn.code=Wh(),rn.keyword=Ew()})()),rn}var ui,Xh;function ci(){return Xh||(Xh=1,ui={LATEST_ECMA_VERSION:2026}),ui}var Jh;function Le(){return Jh||(Jh=1,(function(a){const{KEYS:e}=Gr(),n=Kh(),o=dn(),t=Rn(),{breakableTypePattern:l,createGlobalLinebreakMatcher:f,lineBreakPattern:u,shebangPattern:r}=Fn(),m=zd(),{LATEST_ECMA_VERSION:i}=ci(),c=/^(?:Function(?:Declaration|Expression)|ArrowFunctionExpression)$/u,d=/^(?:DoWhile|For|ForIn|ForOf|While)Statement$/u,s=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|some)$/u,p=/Array$/u,h=/^(?:bind|call|apply)$/u,g=/^[\s*]*@this/mu,v=/^\s*(?:eslint|jshint\s+|jslint\s+|istanbul\s+|globals?\s+|exported\s+|jscs)/u,E=/^(?:eslint[- ]|(?:globals?|exported) )/u,b=new Set([`\r
|
|
53
|
+
`,"\r",`
|
|
54
|
+
`,"\u2028","\u2029"]),T=new Set(["Program","BlockStatement","StaticBlock","SwitchCase"]),C=new Set(["let","const","using","await using"]),S=/^(?:0|0[0-7]*[89]\d*|[1-9](?:_?\d)*)$/u,w=/^(?:[^\\]|\\.)*\\(?:[1-9]|0\d)/su,x=new Set(["&&=","||=","??="]),A=m[`es${i}`];function k(q,se,ue){const be=q.identifier,Oe=se===0||ue[se-1].identifier!==be;return be&&q.init===!1&&q.isWrite()&&Oe}function R(q){return q[0]!==q[0].toLocaleLowerCase()}function I(q){return q.id&&R(q.id.name)}function B(q){for(let se=q;se;se=se.parent)if(c.test(se.type))return se;return null}function F(q){return!!(q&&c.test(q.type))}function O(q){return!!(q&&d.test(q.type))}function $(q){for(let se=q;se&&!F(se);se=se.parent)if(O(se))return!0;return!1}function N(q){return q.type==="Literal"&&q.value===null&&!q.regex&&!q.bigint}function _(q){return N(q)||q.type==="Identifier"&&q.name==="undefined"||q.type==="UnaryExpression"&&q.operator==="void"}function X(q){return q.parent.type==="CallExpression"&&q.parent.callee===q}function L(q){switch(q.type){case"Literal":if(q.value===null){if(N(q))return String(q.value);if(q.regex)return`/${q.regex.pattern}/${q.regex.flags}`;if(q.bigint)return q.bigint}else return String(q.value);break;case"TemplateLiteral":if(q.expressions.length===0&&q.quasis.length===1)return q.quasis[0].value.cooked;break}return null}function K(q){let se;switch(q&&q.type){case"ChainExpression":return K(q.expression);case"Property":case"PropertyDefinition":case"MethodDefinition":case"TSPropertySignature":case"TSMethodSignature":se=q.key;break;case"MemberExpression":se=q.property;break}return se?se.type==="Identifier"&&!q.computed?se.name:L(se):null}function J(q){return q&&q.type==="ChainExpression"?q.expression:q}function ge(q,se){return typeof se=="string"?q===se:se.test(q)}function ae(q,se){return q.type==="Identifier"&&ge(q.name,se)}function ke(q,se,ue){const be=J(q);if(be.type!=="MemberExpression"||se&&!ae(be.object,se))return!1;if(ue){const Oe=K(be);if(typeof Oe!="string"||!ge(Oe,ue))return!1}return!0}function Z(q,se){return q.regex||se.regex?!!(q.regex&&se.regex&&q.regex.pattern===se.regex.pattern&&q.regex.flags===se.regex.flags):q.bigint||se.bigint?q.bigint===se.bigint:q.value===se.value}function P(q,se,ue=!1){if(q.type!==se.type)return q.type==="ChainExpression"?P(q.expression,se,ue):se.type==="ChainExpression"?P(q,se.expression,ue):!1;switch(q.type){case"Super":case"ThisExpression":return!0;case"Identifier":case"PrivateIdentifier":return q.name===se.name;case"Literal":return Z(q,se);case"ChainExpression":return P(q.expression,se.expression,ue);case"MemberExpression":{if(!ue){const be=K(q);if(be!==null)return P(q.object,se.object,ue)&&be===K(se)}return q.computed===se.computed&&P(q.object,se.object,ue)&&P(q.property,se.property,ue)}default:return!1}}function H(q){return ke(q,"Reflect","apply")}function fe(q){return ke(q,p,"from")}function ce(q){return ke(q,null,s)}function ie(q){return se=>!q(se)}function he(q,se){const ue=se.getJSDocComment(q);return ue&&g.test(ue.value)?!0:se.getCommentsBefore(q).some(be=>g.test(be.value))}function Ee(q,se){const ue=q.getTokenBefore(se),be=q.getTokenAfter(se);return!!(ue&&be)&&ue.value==="("&&ue.range[1]<=se.range[0]&&be.value===")"&&be.range[0]>=se.range[1]}function Ce(q){return q.value==="="&&q.type==="Punctuator"}function Ae(q){return q.value==="=>"&&q.type==="Punctuator"}function ee(q){return q.value===","&&q.type==="Punctuator"}function ne(q){return q.value==="."&&q.type==="Punctuator"}function we(q){return q.value==="?."&&q.type==="Punctuator"}function z(q){return q.value===";"&&q.type==="Punctuator"}function oe(q){return q.value===":"&&q.type==="Punctuator"}function Te(q){return q.value==="("&&q.type==="Punctuator"}function Re(q){return q.value===")"&&q.type==="Punctuator"}function Ie(q){return q.value==="["&&q.type==="Punctuator"}function W(q){return q.value==="]"&&q.type==="Punctuator"}function Je(q){return q.value==="{"&&q.type==="Punctuator"}function ut(q){return q.value==="}"&&q.type==="Punctuator"}function tt(q){return q.type==="Line"||q.type==="Block"||q.type==="Shebang"}function qe(q){return q.type==="Keyword"}function $e(q,se){if(q.type==="ArrowFunctionExpression"&&q.params.length===1){const ue=se.getFirstToken(q.params[0]),be=se.getTokenBefore(ue);return Te(be)?be:ue}return q.id?se.getTokenAfter(q.id,Te):se.getFirstToken(q,Te)}function st(q,se,ue){const be=ue.getTokens(q),Oe=ue.getTokens(se);if(be.length!==Oe.length)return!1;for(let Pe=0;Pe<be.length;++Pe)if(be[Pe].type!==Oe[Pe].type||be[Pe].value!==Oe[Pe].value)return!1;return!0}function mt(q){return q.type==="LogicalExpression"&&(q.operator==="&&"||q.operator==="||")}function rt(q){return q.type==="LogicalExpression"&&q.operator==="??"}function Qe(q,se){return mt(q)&&rt(se)||rt(q)&&mt(se)}function St(q){return x.has(q)}function Ze(q,se){return q.test?se.getTokenAfter(q.test,oe):se.getFirstToken(q,1)}function Ct(q){return q.type==="Identifier"?q.name:q.value}function Ke(q){return q.value===null?q.raw==="null"?!1:typeof q.regex=="object"?!0:null:!!q.value}function Ge(q,se){switch(q.type){case"Literal":return se==="||"&&Ke(q)===!0||se==="&&"&&Ke(q)===!1;case"UnaryExpression":return se==="&&"&&q.operator==="void";case"LogicalExpression":return se===q.operator&&(Ge(q.left,se)||Ge(q.right,se));case"AssignmentExpression":return["||=","&&="].includes(q.operator)&&se===q.operator.slice(0,-1)&&Ge(q.right,se)}return!1}function Se(q,se){const ue=q.references.find(be=>be.identifier===se);return!!(ue&&ue.resolved&&ue.resolved.scope.type==="global"&&ue.resolved.defs.length===0)}function j(q,se,ue){if(!se)return!0;switch(se.type){case"Literal":case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"ClassExpression":case"ObjectExpression":return!0;case"TemplateLiteral":return ue&&se.quasis.some(be=>be.value.cooked.length)||se.expressions.every(be=>j(q,be,!1));case"ArrayExpression":return ue?!0:se.elements.every(be=>j(q,be,!1));case"UnaryExpression":return se.operator==="void"||se.operator==="typeof"&&ue?!0:se.operator==="!"?j(q,se.argument,!0):j(q,se.argument,!1);case"BinaryExpression":return j(q,se.left,!1)&&j(q,se.right,!1)&&se.operator!=="in";case"LogicalExpression":{const be=j(q,se.left,ue),Oe=j(q,se.right,ue),Pe=be&&Ge(se.left,se.operator),We=ue&&Oe&&Ge(se.right,se.operator);return be&&Oe||Pe||We}case"NewExpression":return ue;case"AssignmentExpression":return se.operator==="="?j(q,se.right,ue):["||=","&&="].includes(se.operator)&&ue?Ge(se.right,se.operator.slice(0,-1)):!1;case"SequenceExpression":return j(q,se.expressions.at(-1),ue);case"SpreadElement":return j(q,se.argument,ue);case"CallExpression":return se.callee.type==="Identifier"&&se.callee.name==="Boolean"&&(se.arguments.length===0||j(q,se.arguments[0],!0))?Se(q,se.callee):!1;case"Identifier":return se.name==="undefined"&&Se(q,se)}return!1}function U(q){if(q.type!=="ExpressionStatement")return!1;const se=q.parent;return se.type==="Program"||se.type==="TSModuleBlock"||se.type==="BlockStatement"&&F(se.parent)}function V(q){return q.type==="ExpressionStatement"&&typeof q.directive=="string"}function Q(q){const se=q.range[0];let ue=q;for(;(ue=ue.parent)&&ue.range[0]===se;)if(ue.type==="ExpressionStatement")return!0;return!1}let le;{let q=function(me){for(let pe=me;;){const{parent:ve}=pe;if(!ve)break;if(ze.has(ve.type)&&pe===ve.typeAnnotation)return!0;pe=ve}return!1};const se=new Set(["BreakStatement","ContinueStatement"]),ue=new Set(["ExportAllDeclaration","ExportNamedDeclaration","ImportDeclaration"]),be=new Set(["Identifier","Keyword"]),Oe={__proto__:null,break:"BreakStatement",continue:"ContinueStatement",debugger:"DebuggerStatement",do:"DoWhileStatement",else:"IfStatement",return:"ReturnStatement",yield:"YieldExpression"},Pe=new Set([":",";","{","=>","++","--"]),We=new Set(["DoWhileStatement","ForInStatement","ForOfStatement","ForStatement","IfStatement","WhileStatement","WithStatement"]),ze=new Set(["TSAsExpression","TSSatisfiesExpression","TSTypeAliasDeclaration","TSTypeAnnotation"]);le=function(me,pe){const ve=me.getTokenBefore(pe);if(!ve||ve.type==="Punctuator"&&Pe.has(ve.value))return!1;const De=me.getNodeByRangeIndex(ve.range[0]);if(De.type==="TSDeclareFunction"||De.parent.type==="TSImportEqualsDeclaration"||De.parent.parent?.type==="TSImportEqualsDeclaration"||ze.has(De.type)||q(De))return!1;if(Re(ve))return!We.has(De.type);if(ut(ve))return De.type==="BlockStatement"&&De.parent.type==="FunctionExpression"&&De.parent.parent.type!=="MethodDefinition"||De.type==="ClassBody"&&De.parent.type==="ClassExpression"||De.type==="ObjectExpression";if(be.has(ve.type)){if(De.parent.type==="VariableDeclarator"&&!De.parent.init||se.has(De.parent.type))return!1;const Fe=ve.value,at=Oe[Fe];return De.type!==at}return ve.type==="String"?!ue.has(De.parent.type):!0}}function te(q){const{parent:se}=q;if(se.type==="ImportAttribute"&&se.key===q)return!0;if(se.type==="Property"&&!se.computed&&(se.key===q||se.value===q&&se.shorthand&&!se.method)&&se.parent.type==="ObjectExpression"){const ue=se.parent,be=ue.parent;if(be.type==="ImportExpression"&&be.options===ue)return!0;if(be.type==="Property"&&be.value===ue)return te(be.key)}return!1}a.exports={COMMENTS_IGNORE_PATTERN:v,LINEBREAKS:b,LINEBREAK_MATCHER:u,SHEBANG_MATCHER:r,STATEMENT_LIST_PARENTS:T,ECMASCRIPT_GLOBALS:A,isTokenOnSameLine(q,se){return q.loc.end.line===se.loc.start.line},isNullOrUndefined:_,isCallee:X,isES5Constructor:I,getUpperFunction:B,isFunction:F,isLoop:O,isInLoop:$,isArrayFromMethod:fe,isParenthesised:Ee,createGlobalLinebreakMatcher:f,equalTokens:st,isArrowToken:Ae,isClosingBraceToken:ut,isClosingBracketToken:W,isClosingParenToken:Re,isColonToken:oe,isCommaToken:ee,isCommentToken:tt,isDotToken:ne,isQuestionDotToken:we,isKeywordToken:qe,isNotClosingBraceToken:ie(ut),isNotClosingBracketToken:ie(W),isNotClosingParenToken:ie(Re),isNotColonToken:ie(oe),isNotCommaToken:ie(ee),isNotDotToken:ie(ne),isNotQuestionDotToken:ie(we),isNotOpeningBraceToken:ie(Je),isNotOpeningBracketToken:ie(Ie),isNotOpeningParenToken:ie(Te),isNotSemicolonToken:ie(z),isOpeningBraceToken:Je,isOpeningBracketToken:Ie,isOpeningParenToken:Te,isSemicolonToken:z,isEqToken:Ce,isStringLiteral(q){return q.type==="Literal"&&typeof q.value=="string"||q.type==="TemplateLiteral"},isBreakableStatement(q){return l.test(q.type)},getModifyingReferences(q){return q.filter(k)},isSurroundedBy(q,se){return q[0]===se&&q.at(-1)===se},isDirectiveComment(q){const se=q.value.trim();return q.type==="Line"&&se.startsWith("eslint-")||q.type==="Block"&&E.test(se)},getTrailingStatement:n.ast.trailingStatement,getVariableByName(q,se){let ue=q;for(;ue;){const be=ue.set.get(se);if(be)return be;ue=ue.upper}return null},isDefaultThisBinding(q,se,{capIsConstructor:ue=!0}={}){if(q.parent.type==="PropertyDefinition"&&q.parent.value===q||q.type==="StaticBlock"||(q.type==="FunctionDeclaration"||q.type==="FunctionExpression")&&q.params.some(Pe=>Pe.type==="Identifier"&&Pe.name==="this")||ue&&I(q)||he(q,se))return!1;const be=q.id===null;let Oe=q;for(;Oe;){const Pe=Oe.parent;switch(Pe.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":Oe=Pe;break;case"ReturnStatement":{const We=B(Pe);if(We===null||!X(We))return!0;Oe=We.parent;break}case"ArrowFunctionExpression":if(Oe!==Pe.body||!X(Pe))return!0;Oe=Pe.parent;break;case"Property":case"PropertyDefinition":case"MethodDefinition":return Pe.value!==Oe;case"AssignmentExpression":case"AssignmentPattern":return!(Pe.left.type==="MemberExpression"||ue&&be&&Pe.left.type==="Identifier"&&R(Pe.left.name));case"VariableDeclarator":return!(ue&&be&&Pe.init===Oe&&Pe.id.type==="Identifier"&&R(Pe.id.name));case"MemberExpression":if(Pe.object===Oe&&ke(Pe,null,h)){const We=Pe.parent.type==="ChainExpression"?Pe.parent:Pe;return!(X(We)&&We.parent.arguments.length>=1&&!_(We.parent.arguments[0]))}return!0;case"CallExpression":return H(Pe.callee)?Pe.arguments.length!==3||Pe.arguments[0]!==Oe||_(Pe.arguments[1]):fe(Pe.callee)?Pe.arguments.length!==3||Pe.arguments[1]!==Oe||_(Pe.arguments[2]):ce(Pe.callee)?Pe.arguments.length!==2||Pe.arguments[0]!==Oe||_(Pe.arguments[1]):!0;default:return!0}}return!0},getPrecedence(q){switch(q.type){case"SequenceExpression":return 0;case"AssignmentExpression":case"ArrowFunctionExpression":case"YieldExpression":return 1;case"ConditionalExpression":return 3;case"LogicalExpression":switch(q.operator){case"||":case"??":return 4;case"&&":return 5}case"BinaryExpression":switch(q.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 q.type in e?20:-1}},isEmptyBlock(q){return!!(q&&q.type==="BlockStatement"&&q.body.length===0)},isEmptyFunction(q){return F(q)&&a.exports.isEmptyBlock(q.body)},getDirectivePrologue(q){const se=[];if(q.type==="Program"||q.type==="FunctionDeclaration"||q.type==="FunctionExpression"||q.type==="ArrowFunctionExpression"&&q.body.type==="BlockStatement"){const ue=q.type==="Program"?q.body:q.body.body;for(const be of ue)if(be.type==="ExpressionStatement"&&be.expression.type==="Literal")se.push(be);else break}return se},isDecimalInteger(q){return q.type==="Literal"&&typeof q.value=="number"&&S.test(q.raw)},isDecimalIntegerNumericToken(q){return q.type==="Numeric"&&S.test(q.value)},getFunctionNameWithKind(q){const se=q.parent,ue=[];if((se.type==="MethodDefinition"||se.type==="PropertyDefinition"||q.type==="TSPropertySignature"||q.type==="TSMethodSignature")&&(se.static&&ue.push("static"),!se.computed&&se.key?.type==="PrivateIdentifier"&&ue.push("private")),q.async&&ue.push("async"),q.generator&&ue.push("generator"),se.type==="Property"||se.type==="MethodDefinition"){if(se.kind==="constructor")return"constructor";se.kind==="get"?ue.push("getter"):se.kind==="set"?ue.push("setter"):ue.push("method")}else q.type==="TSMethodSignature"?q.kind==="get"?ue.push("getter"):q.kind==="set"?ue.push("setter"):ue.push("method"):se.type==="PropertyDefinition"?ue.push("method"):(q.type==="ArrowFunctionExpression"&&ue.push("arrow"),ue.push("function"));if(se.type==="Property"||se.type==="MethodDefinition"||se.type==="PropertyDefinition")if(!se.computed&&se.key.type==="PrivateIdentifier")ue.push(`#${se.key.name}`);else{const be=K(se);be!==null?ue.push(`'${be}'`):q.id&&ue.push(`'${q.id.name}'`)}else q.type==="TSMethodSignature"?ue.push(`'${K(q)}'`):q.id&&ue.push(`'${q.id.name}'`);return ue.join(" ")},getFunctionHeadLoc(q,se){const ue=q.parent;let be,Oe;if(ue.type==="Property"||ue.type==="MethodDefinition"||ue.type==="PropertyDefinition"||ue.type==="TSPropertySignature"||ue.type==="TSMethodSignature")be=ue.loc.start,Oe=$e(q,se).loc.start;else if(q.type==="ArrowFunctionExpression"){const Pe=se.getTokenBefore(q.body,Ae);be=Pe.loc.start,Oe=Pe.loc.end}else be=q.loc.start,Oe=$e(q,se).loc.start;return{start:Object.assign({},be),end:Object.assign({},Oe)}},getNextLocation(q,{line:se,column:ue}){return ue<q.lines[se-1].length?{line:se,column:ue+1}:se<q.lines.length?{line:se+1,column:0}:null},getParenthesisedText(q,se){let ue=q.getFirstToken(se),be=q.getLastToken(se);for(;q.getTokenBefore(ue)&&q.getTokenBefore(ue).type==="Punctuator"&&q.getTokenBefore(ue).value==="("&&q.getTokenAfter(be)&&q.getTokenAfter(be).type==="Punctuator"&&q.getTokenAfter(be).value===")";)ue=q.getTokenBefore(ue),be=q.getTokenAfter(be);return q.getText().slice(ue.range[0],be.range[1])},couldBeError(q){switch(q.type){case"Identifier":case"CallExpression":case"NewExpression":case"MemberExpression":case"TaggedTemplateExpression":case"YieldExpression":case"AwaitExpression":case"ChainExpression":return!0;case"AssignmentExpression":return["=","&&="].includes(q.operator)?a.exports.couldBeError(q.right):["||=","??="].includes(q.operator)?a.exports.couldBeError(q.left)||a.exports.couldBeError(q.right):!1;case"SequenceExpression":{const se=q.expressions;return se.length!==0&&a.exports.couldBeError(se.at(-1))}case"LogicalExpression":return q.operator==="&&"?a.exports.couldBeError(q.right):a.exports.couldBeError(q.left)||a.exports.couldBeError(q.right);case"ConditionalExpression":return a.exports.couldBeError(q.consequent)||a.exports.couldBeError(q.alternate);default:return!1}},isNumericLiteral(q){return q.type==="Literal"&&(typeof q.value=="number"||!!q.bigint)},canTokensBeAdjacent(q,se){const ue={ecmaVersion:o.latestEcmaVersion,comment:!0,range:!0};let be;if(typeof q=="string"){let Pe;try{Pe=o.tokenize(q,ue)}catch{return!1}const We=Pe.comments;if(be=Pe.at(-1),We.length){const ze=We.at(-1);(!be||ze.range[0]>be.range[0])&&(be=ze)}}else be=q;if(be.type==="Shebang"||be.type==="Hashbang")return!1;let Oe;if(typeof se=="string"){let Pe;try{Pe=o.tokenize(se,ue)}catch{return!1}const We=Pe.comments;if(Oe=Pe[0],We.length){const ze=We[0];(!Oe||ze.range[0]<Oe.range[0])&&(Oe=ze)}}else Oe=se;if(be.type==="Punctuator"||Oe.type==="Punctuator"){if(be.type==="Punctuator"&&Oe.type==="Punctuator"){const Pe=new Set(["+","++"]),We=new Set(["-","--"]);return!(Pe.has(be.value)&&Pe.has(Oe.value)||We.has(be.value)&&We.has(Oe.value))}return be.type==="Punctuator"&&be.value==="/"?!["Block","Line","RegularExpression"].includes(Oe.type):!0}return!!(be.type==="String"||Oe.type==="String"||be.type==="Template"||Oe.type==="Template"||be.type!=="Numeric"&&Oe.type==="Numeric"&&Oe.value.startsWith(".")||be.type==="Block"||Oe.type==="Block"||Oe.type==="Line"||Oe.type==="PrivateIdentifier")},getNameLocationInGlobalDirectiveComment(q,se,ue){const be=new RegExp(`[\\s,]${t(ue)}(?:$|[\\s,:])`,"gu");be.lastIndex=se.value.indexOf("global")+6;const Oe=be.exec(se.value),Pe=q.getLocFromIndex(se.range[0]+2+(Oe?Oe.index+1:0)),We={line:Pe.line,column:Pe.column+(Oe?ue.length:1)};return{start:Pe,end:We}},hasOctalOrNonOctalDecimalEscapeSequence(q){return w.test(q)},isStaticTemplateLiteral(q){return q.type==="TemplateLiteral"&&q.expressions.length===0},areBracesNecessary(q,se){function ue(ze){return ze.type==="VariableDeclaration"?C.has(ze.kind):ze.type==="FunctionDeclaration"||ze.type==="ClassDeclaration"}function be(ze){return ze.value==="else"&&ze.type==="Keyword"}function Oe(ze){const me=se.getTokenAfter(ze);return!!me&&be(me)}function Pe(ze){switch(ze.type){case"IfStatement":return ze.alternate?Pe(ze.alternate):!0;case"ForStatement":case"ForInStatement":case"ForOfStatement":case"LabeledStatement":case"WithStatement":case"WhileStatement":return Pe(ze.body);default:return!1}}const We=q.body[0];return ue(We)||Pe(We)&&Oe(q)},isReferenceToGlobalVariable:Se,isLogicalExpression:mt,isCoalesceExpression:rt,isMixedLogicalAndCoalesceExpressions:Qe,isNullLiteral:N,getStaticStringValue:L,getStaticPropertyName:K,skipChainExpression:J,isSpecificId:ae,isSpecificMemberAccess:ke,equalLiteralValue:Z,isSameReference:P,isLogicalAssignmentOperator:St,getSwitchCaseColonToken:Ze,getModuleExportName:Ct,isConstant:j,isTopLevelExpressionStatement:U,isDirective:V,isStartOfExpressionStatement:Q,needsPrecedingSemicolon:le,isImportAttributeKey:te,getOpeningParenOfParams:$e}})(ai)),ai.exports}var fi,Yh;function bw(){if(Yh)return fi;Yh=1;const a=Le();function e(f,u){if(f.length!==u.length)return!1;for(let r=0;r<f.length;r++){const m=f[r],i=u[r];if(m.type!==i.type||m.value!==i.value)return!1}return!0}function n(f,u){return typeof f=="string"&&typeof u=="string"?f===u:Array.isArray(f)&&Array.isArray(u)?e(f,u):!1}function o(f){return f.kind==="get"||f.kind==="set"}function t(f,u,r,m){const i=f.parent;return i.type==="CallExpression"&&a.isSpecificMemberAccess(i.callee,r,m)&&i.arguments[u]===f}function l(f){if(t(f,2,"Object","defineProperty")||t(f,2,"Reflect","defineProperty"))return!0;const u=f.parent.parent;return u.type==="ObjectExpression"&&(t(u,1,"Object","create")||t(u,1,"Object","defineProperties"))}return fi={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(f){const[{getWithoutSet:u,setWithoutGet:r,enforceForClassMembers:m,enforceForTSTypes:i}]=f.options,c=f.sourceCode;function d(C,S){C.type==="Property"?f.report({node:C,messageId:`${S}InObjectLiteral`,loc:a.getFunctionHeadLoc(C.value,c),data:{name:a.getFunctionNameWithKind(C.value)}}):C.type==="MethodDefinition"?f.report({node:C,messageId:`${S}InClass`,loc:a.getFunctionHeadLoc(C.value,c),data:{name:a.getFunctionNameWithKind(C.value)}}):C.type==="TSMethodSignature"?f.report({node:C,messageId:`${S}InType`,loc:a.getFunctionHeadLoc(C,c),data:{name:a.getFunctionNameWithKind(C)}}):f.report({node:C,messageId:`${S}InPropertyDescriptor`})}function s(C,S){for(const w of C)d(w,S)}function p(C){const S=[];let w=!1;for(let x=0;x<C.length;x++){const A=C[x];if(o(A)){const k=a.getStaticPropertyName(A),R=k!==null?k:c.getTokens(A.key);for(let I=0;I<S.length;I++){const B=S[I];if(n(B.key,R)){B.getters.push(...A.kind==="get"?[A]:[]),B.setters.push(...A.kind==="set"?[A]:[]),w=!0;break}}w||S.push({key:R,getters:A.kind==="get"?[A]:[],setters:A.kind==="set"?[A]:[]}),w=!1}}for(const{getters:x,setters:A}of S)r&&A.length&&!x.length&&s(A,"missingGetter"),u&&x.length&&!A.length&&s(x,"missingSetter")}function h(C){p(C.properties.filter(S=>S.type==="Property"))}function g(C){const S=new Set(C.properties.filter(A=>A.type==="Property"&&A.kind==="init"&&!A.computed).map(({key:A})=>A.name)),w=S.has("get"),x=S.has("set");r&&x&&!w&&d(C,"missingGetter"),u&&w&&!x&&d(C,"missingSetter")}function v(C){h(C),l(C)&&g(C)}function E(C){const S=C.body.filter(w=>w.type==="MethodDefinition");p(S.filter(w=>w.static)),p(S.filter(w=>!w.static))}function b(C){const w=(C.type==="TSTypeLiteral"?C.members:C.body).filter(x=>x.type==="TSMethodSignature");p(w)}const T={};return(r||u)&&(T.ObjectExpression=v,m&&(T.ClassBody=E),i&&(T["TSTypeLiteral, TSInterfaceBody"]=b)),T}},fi}var pi,Qh;function Cw(){if(Qh)return pi;Qh=1;const a=Le();return pi={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(e){const n=e.sourceCode;function o(i){let c=!1,d=!1,s;return i?i==="consistent"?(c=!0,s=Number.POSITIVE_INFINITY):i==="always"||i.minItems===0?s=0:i==="never"?s=Number.POSITIVE_INFINITY:(d=!!i.multiline,s=i.minItems||Number.POSITIVE_INFINITY):(c=!1,d=!0,s=Number.POSITIVE_INFINITY),{consistent:c,multiline:d,minItems:s}}function t(i){const c=o(i);return{ArrayExpression:c,ArrayPattern:c}}function l(i,c){e.report({node:i,loc:c.loc,messageId:"unexpectedOpeningLinebreak",fix(d){const s=n.getTokenAfter(c,{includeComments:!0});return a.isCommentToken(s)?null:d.removeRange([c.range[1],s.range[0]])}})}function f(i,c){e.report({node:i,loc:c.loc,messageId:"unexpectedClosingLinebreak",fix(d){const s=n.getTokenBefore(c,{includeComments:!0});return a.isCommentToken(s)?null:d.removeRange([s.range[1],c.range[0]])}})}function u(i,c){e.report({node:i,loc:c.loc,messageId:"missingOpeningLinebreak",fix(d){return d.insertTextAfter(c,`
|
|
55
|
+
`)}})}function r(i,c){e.report({node:i,loc:c.loc,messageId:"missingClosingLinebreak",fix(d){return d.insertTextBefore(c,`
|
|
56
|
+
`)}})}function m(i){const c=i.elements,s=t(e.options[0])[i.type],p=n.getFirstToken(i),h=n.getLastToken(i),g=n.getTokenAfter(p,{includeComments:!0}),v=n.getTokenBefore(h,{includeComments:!0}),E=n.getTokenAfter(p),b=n.getTokenBefore(h);c.length>=s.minItems||s.multiline&&c.length>0&&g.loc.start.line!==v.loc.end.line||c.length===0&&g.type==="Block"&&g.loc.start.line!==v.loc.end.line&&g===v||s.consistent&&p.loc.end.line!==E.loc.start.line?(a.isTokenOnSameLine(p,E)&&u(i,p),a.isTokenOnSameLine(b,h)&&r(i,h)):(a.isTokenOnSameLine(p,E)||l(i,p),a.isTokenOnSameLine(b,h)||f(i,h))}return{ArrayPattern:m,ArrayExpression:m}}},pi}var mi,Zh;function xw(){if(Zh)return mi;Zh=1;const a=Le();return mi={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(e){const n=e.options[0]==="always",o=e.sourceCode;function t(s){return e.options[1]?e.options[1][s]===!n:!1}const l={spaced:n,singleElementException:t("singleValue"),objectsInArraysException:t("objectsInArrays"),arraysInArraysException:t("arraysInArrays")};function f(s,p){const h=o.getTokenAfter(p);e.report({node:s,loc:{start:p.loc.end,end:h.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:p.value},fix(g){return g.removeRange([p.range[1],h.range[0]])}})}function u(s,p){const h=o.getTokenBefore(p);e.report({node:s,loc:{start:h.loc.end,end:p.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:p.value},fix(g){return g.removeRange([h.range[1],p.range[0]])}})}function r(s,p){e.report({node:s,loc:p.loc,messageId:"missingSpaceAfter",data:{tokenValue:p.value},fix(h){return h.insertTextAfter(p," ")}})}function m(s,p){e.report({node:s,loc:p.loc,messageId:"missingSpaceBefore",data:{tokenValue:p.value},fix(h){return h.insertTextBefore(p," ")}})}function i(s){return s&&(s.type==="ObjectExpression"||s.type==="ObjectPattern")}function c(s){return s&&(s.type==="ArrayExpression"||s.type==="ArrayPattern")}function d(s){if(l.spaced&&s.elements.length===0)return;const p=o.getFirstToken(s),h=o.getFirstToken(s,1),g=s.typeAnnotation?o.getTokenBefore(s.typeAnnotation):o.getLastToken(s),v=o.getTokenBefore(g),E=s.elements[0],b=s.elements.at(-1),T=l.objectsInArraysException&&i(E)||l.arraysInArraysException&&c(E)||l.singleElementException&&s.elements.length===1?!l.spaced:l.spaced,C=l.objectsInArraysException&&i(b)||l.arraysInArraysException&&c(b)||l.singleElementException&&s.elements.length===1?!l.spaced:l.spaced;a.isTokenOnSameLine(p,h)&&(T&&!o.isSpaceBetweenTokens(p,h)&&r(s,p),!T&&o.isSpaceBetweenTokens(p,h)&&f(s,p)),p!==v&&a.isTokenOnSameLine(v,g)&&(C&&!o.isSpaceBetweenTokens(v,g)&&m(s,g),!C&&o.isSpaceBetweenTokens(v,g)&&u(s,g))}return{ArrayPattern:d,ArrayExpression:d}}},mi}var di,eg;function ww(){if(eg)return di;eg=1;const a=Le(),e=/^(?:Arrow)?FunctionExpression$/u,n=/^(?:every|filter|find(?:Last)?(?:Index)?|flatMap|forEach|map|reduce(?:Right)?|some|sort|toSorted)$/u;function o(i){return a.isSpecificMemberAccess(i,null,n)}function t(i){for(const c of i)if(c.reachable)return!0;return!1}function l(i){return["from","of","isArray"].includes(i)?"Array.".concat(i):"Array.prototype.".concat(i)}function f(i){let c=i;for(;c;){const d=c.parent;switch(d.type){case"LogicalExpression":case"ConditionalExpression":case"ChainExpression":c=d;break;case"ReturnStatement":{const s=a.getUpperFunction(d);if(s===null||!a.isCallee(s))return null;c=s.parent;break}case"CallExpression":return a.isArrayFromMethod(d.callee)&&d.arguments.length>=2&&d.arguments[1]===c?"from":o(d.callee)&&d.arguments.length>=1&&d.arguments[0]===c?a.getStaticPropertyName(d.callee):null;default:return null}}return null}function u(i){return i.type==="UnaryExpression"&&i.operator==="void"}function r(i,c,d){const s=a.getPrecedence(c)<a.getPrecedence({type:"UnaryExpression",operator:"void"})&&!a.isParenthesised(i,c),p=i.getTokenBefore(c,c.parent.type==="ArrowFunctionExpression"?a.isArrowToken:(v=>v.type==="Keyword"&&v.value==="return")),h=i.getTokenAfter(p),g=p.value==="return"&&p.range[1]===h.range[0];return[d.insertTextBefore(h,`${g?" ":""}void ${s?"(":""}`),d.insertTextAfter(c,s?")":"")]}function m(i,c,d){const s=i.getTokenBefore(c.body,a.isArrowToken),p=i.getTokenAfter(s),h=i.getLastToken(c);return[d.insertTextBefore(p,"{"),d.insertTextAfter(h,"}")]}return di={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(i){const[c]=i.options,d=i.sourceCode;let s={arrayMethodName:null,upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null};function p(h){if(!s.shouldCheck)return;const g={messageId:"",suggest:[]};if(s.arrayMethodName==="forEach"){if(c.checkForEach&&h.type==="ArrowFunctionExpression"&&h.expression)if(c.allowVoid){if(u(h.body))return;g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"wrapBraces",fix(v){return m(d,h,v)}},{messageId:"prependVoid",fix(v){return r(d,h.body,v)}}]}else g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"wrapBraces",fix(v){return m(d,h,v)}}]}else h.body.type==="BlockStatement"&&t(s.currentSegments)&&(g.messageId=s.hasReturn?"expectedAtEnd":"expectedInside");if(g.messageId){const v=a.getFunctionNameWithKind(h);i.report({node:h,loc:a.getFunctionHeadLoc(h,d),messageId:g.messageId,data:{name:v,arrayMethodName:l(s.arrayMethodName)},suggest:g.suggest.length!==0?g.suggest:null})}}return{onCodePathStart(h,g){let v=null;e.test(g.type)&&(v=f(g)),s={arrayMethodName:v,upper:s,codePath:h,hasReturn:!1,shouldCheck:v&&!g.async&&!g.generator,node:g,currentSegments:new Set}},onCodePathEnd(){s=s.upper},onUnreachableCodePathSegmentStart(h){s.currentSegments.add(h)},onUnreachableCodePathSegmentEnd(h){s.currentSegments.delete(h)},onCodePathSegmentStart(h){s.currentSegments.add(h)},onCodePathSegmentEnd(h){s.currentSegments.delete(h)},ReturnStatement(h){if(!s.shouldCheck)return;s.hasReturn=!0;const g={messageId:"",suggest:[]};if(s.arrayMethodName==="forEach"){if(c.checkForEach&&h.argument)if(c.allowVoid){if(u(h.argument))return;g.messageId="expectedNoReturnValue",g.suggest=[{messageId:"prependVoid",fix(v){return r(d,h.argument,v)}}]}else g.messageId="expectedNoReturnValue"}else!c.allowImplicit&&!h.argument&&(g.messageId="expectedReturnValue");g.messageId&&i.report({node:h,messageId:g.messageId,data:{name:a.getFunctionNameWithKind(s.node),arrayMethodName:l(s.arrayMethodName)},suggest:g.suggest.length!==0?g.suggest:null})},"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p}}},di}var hi,tg;function Aw(){if(tg)return hi;tg=1;const a=Le();return hi={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(e){const n=e.sourceCode;function o(r){let m=!1,i=!1,c;const d=r||"always";return d==="always"||d.minItems===0?c=0:d==="never"?c=Number.POSITIVE_INFINITY:d==="consistent"?(m=!0,c=Number.POSITIVE_INFINITY):(i=!!d.multiline,c=d.minItems||Number.POSITIVE_INFINITY),{consistent:m,multiline:i,minItems:c}}function t(r){if(r&&(r.ArrayExpression||r.ArrayPattern)){let i,c;return r.ArrayExpression&&(i=o(r.ArrayExpression)),r.ArrayPattern&&(c=o(r.ArrayPattern)),{ArrayExpression:i,ArrayPattern:c}}const m=o(r);return{ArrayExpression:m,ArrayPattern:m}}function l(r){const m=n.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:m.loc.end,end:r.loc.start},messageId:"unexpectedLineBreak",fix(i){if(a.isCommentToken(m))return null;if(!a.isTokenOnSameLine(m,r))return i.replaceTextRange([m.range[1],r.range[0]]," ");const c=n.getTokenBefore(m,{includeComments:!0});return a.isCommentToken(c)?null:i.replaceTextRange([c.range[1],m.range[0]],"")}})}function f(r){const m=n.getTokenBefore(r,{includeComments:!0});e.report({loc:{start:m.loc.end,end:r.loc.start},messageId:"missingLineBreak",fix(i){return i.replaceTextRange([m.range[1],r.range[0]],`
|
|
57
|
+
`)}})}function u(r){const m=r.elements,c=t(e.options[0])[r.type];if(!c)return;let d=!1;c.multiline&&(d=m.filter(h=>h!==null).some(h=>h.loc.start.line!==h.loc.end.line));let s=0;for(let h=0;h<r.elements.length;h++){const g=r.elements[h],v=m[h-1];if(h===0||g===null||v===null)continue;const E=n.getFirstTokenBetween(v,g,a.isCommaToken),b=n.getTokenBefore(E),T=n.getTokenAfter(E);a.isTokenOnSameLine(b,T)||s++}const p=m.length>=c.minItems||c.multiline&&d||c.consistent&&s>0&&s<r.elements.length;m.forEach((h,g)=>{const v=m[g-1];if(g===0||h===null||v===null)return;const E=n.getFirstTokenBetween(v,h,a.isCommaToken),b=n.getTokenBefore(E),T=n.getTokenAfter(E);p?a.isTokenOnSameLine(b,T)&&f(T):a.isTokenOnSameLine(b,T)||l(T)})}return{ArrayPattern:u,ArrayExpression:u}}},hi}var gi,rg;function Tw(){if(rg)return gi;rg=1;const a=Le();return gi={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(e){const n=e.options,o=n[0]==="always",t=n[0]==="as-needed",l=n[0]==="never",f=n[1]&&n[1].requireReturnForObjectLiteral,u=e.sourceCode;let r=null;function m(s){return s&&s.type==="Punctuator"&&/^[([/`+-]/u.test(s.value)}function i(s){let p=s;for(;!a.isParenthesised(u,p);)p=p.parent;return u.getTokenAfter(p)}function c(s){return s&&s.parent?s.parent.type==="ForStatement"&&s.parent.init===s?!0:c(s.parent):!1}function d(s){const p=s.body;if(p.type==="BlockStatement"){const h=p.body;if(h.length!==1&&!l||t&&f&&h[0].type==="ReturnStatement"&&h[0].argument&&h[0].argument.type==="ObjectExpression")return;if(l||t&&h[0].type==="ReturnStatement"){let g;h.length===0?g="unexpectedEmptyBlock":h.length>1||h[0].type!=="ReturnStatement"?g="unexpectedOtherBlock":h[0].argument===null?g="unexpectedSingleBlock":a.isOpeningBraceToken(u.getFirstToken(h[0],{skip:1}))?g="unexpectedObjectBlock":g="unexpectedSingleBlock",e.report({node:s,loc:p.loc,messageId:g,fix(v){const E=[];if(h.length!==1||h[0].type!=="ReturnStatement"||!h[0].argument||m(u.getTokenAfter(p)))return E;const b=u.getFirstToken(p),T=u.getLastToken(p),C=u.getFirstToken(h[0],1),S=u.getLastToken(h[0]);return u.commentsExistBetween(b,C)||u.commentsExistBetween(S,T)?E.push(v.remove(b),v.remove(T),v.remove(u.getTokenAfter(b))):E.push(v.removeRange([b.range[0],C.range[0]]),v.removeRange([S.range[1],T.range[1]])),(a.isOpeningBraceToken(C)||h[0].argument.type==="SequenceExpression"||r.hasInOperator&&c(s))&&(a.isParenthesised(u,h[0].argument)||E.push(v.insertTextBefore(C,"("),v.insertTextAfter(S,")"))),a.isSemicolonToken(S)&&E.push(v.remove(S)),E}})}}else(o||t&&f&&p.type==="ObjectExpression")&&e.report({node:s,loc:p.loc,messageId:"expectedBlock",fix(h){const g=[],v=u.getTokenBefore(p,a.isArrowToken),[E,b]=u.getTokensAfter(v,{count:2}),T=u.getLastToken(s);let C=null;if(a.isOpeningParenToken(E)&&a.isOpeningBraceToken(b)){const S=u.getNodeByRangeIndex(b.range[0]);S.type==="ObjectExpression"&&(C=S)}if(C){const S=E,w=b;a.isTokenOnSameLine(S,w)?g.push(h.replaceText(S,"{return ")):g.push(h.replaceText(S,"{"),h.insertTextBefore(w,"return ")),g.push(h.remove(i(C))),g.push(h.insertTextAfter(T,"}"))}else g.push(h.insertTextBefore(E,"{return ")),g.push(h.insertTextAfter(T,"}"));return g}})}return{"BinaryExpression[operator='in']"(){let s=r;for(;s;)s.hasInOperator=!0,s=s.upper},ArrowFunctionExpression(){r={upper:r,hasInOperator:!1}},"ArrowFunctionExpression:exit"(s){d(s),r=r.upper}}}},gi}var yi,ng;function kw(){if(ng)return yi;ng=1;const a=Le();function e(n){return n.body.type==="BlockStatement"}return yi={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(n){const o=n.options[0]==="as-needed",t=o&&n.options[1]&&n.options[1].requireForBlockBody===!0,l=n.sourceCode;function f(i){const c=l.getTokenBefore(i.params[0]);return c&&a.isOpeningParenToken(c)&&i.range[0]<=c.range[0]?c:null}function u(i){return l.getTokenAfter(i.params[0],a.isClosingParenToken)}function r(i,c){return l.commentsExistBetween(c,u(i))}function m(i,c){const d=i.async?1:0;return l.getFirstToken(i,{skip:d})!==c}return{"ArrowFunctionExpression[params.length=1]"(i){const c=!o||t&&e(i),d=f(i),s=d!==null,[p]=i.params;c&&!s&&n.report({node:i,messageId:t?"expectedParensBlock":"expectedParens",loc:p.loc,*fix(h){yield h.insertTextBefore(p,"("),yield h.insertTextAfter(p,")")}}),!c&&s&&p.type==="Identifier"&&!p.typeAnnotation&&!i.returnType&&!r(i,d)&&!m(i,d)&&n.report({node:i,messageId:t?"unexpectedParensInline":"unexpectedParens",loc:p.loc,*fix(h){const g=l.getTokenBefore(d),v=u(i);g&&g.range[1]===d.range[0]&&!a.canTokensBeAdjacent(g,l.getFirstToken(p))&&(yield h.insertTextBefore(d," ")),yield h.removeRange([d.range[0],p.range[0]]),yield h.removeRange([p.range[1],v.range[1]])}})}}}},yi}var vi,sg;function Dw(){if(sg)return vi;sg=1;const a=Le();return vi={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(e){const n=Object.assign({},e.options[0]);n.before=n.before!==!1,n.after=n.after!==!1;const o=e.sourceCode;function t(u){const r=o.getTokenBefore(u.body,a.isArrowToken);return{before:o.getTokenBefore(r),arrow:r,after:o.getTokenAfter(r)}}function l(u){const r=u.arrow.range[0]-u.before.range[1],m=u.after.range[0]-u.arrow.range[1];return{before:r,after:m}}function f(u){const r=t(u),m=l(r);n.before?m.before===0&&e.report({node:r.before,messageId:"expectedBefore",fix(i){return i.insertTextBefore(r.arrow," ")}}):m.before>0&&e.report({node:r.before,messageId:"unexpectedBefore",fix(i){return i.removeRange([r.before.range[1],r.arrow.range[0]])}}),n.after?m.after===0&&e.report({node:r.after,messageId:"expectedAfter",fix(i){return i.insertTextAfter(r.arrow," ")}}):m.after>0&&e.report({node:r.after,messageId:"unexpectedAfter",fix(i){return i.removeRange([r.arrow.range[1],r.after.range[0]])}})}return{ArrowFunctionExpression:f}}},vi}var Si,ag;function Pw(){return ag||(ag=1,Si={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(a){let e=[];const n=a.sourceCode;function o(u){e.push(u.range)}function t(){e.pop()}function l(u,r){const m=u.identifier,i=r.name.loc.start;a.report({node:m,messageId:"outOfScope",data:{name:m.name,definitionLine:i.line,definitionColumn:i.column+1}})}function f(u){if(u.kind!=="var")return;const r=e.at(-1);function m(c){const d=c.identifier.range;return d[0]<r[0]||d[1]>r[1]}const i=n.getDeclaredVariables(u);for(let c=0;c<i.length;++c)i[c].references.filter(m).forEach(d=>l(d,i[c].defs.find(s=>s.parent===u)))}return{Program(u){e=[u.range]},BlockStatement:o,"BlockStatement:exit":t,ForStatement:o,"ForStatement:exit":t,ForInStatement:o,"ForInStatement:exit":t,ForOfStatement:o,"ForOfStatement:exit":t,SwitchStatement:o,"SwitchStatement:exit":t,CatchClause:o,"CatchClause:exit":t,StaticBlock:o,"StaticBlock:exit":t,VariableDeclaration:f}}}),Si}var Ei,ig;function Iw(){if(ig)return Ei;ig=1;const a=Le();return Ei={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(e){const n=e.options[0]!=="never",o=n?"missing":"extra",t=e.sourceCode;function l(r){return r.type==="SwitchStatement"?r.cases.length>0?t.getTokenBefore(r.cases[0]):t.getLastToken(r,1):r.type==="StaticBlock"?t.getFirstToken(r,{skip:1}):t.getFirstToken(r)}function f(r,m){return!a.isTokenOnSameLine(r,m)||t.isSpaceBetweenTokens(r,m)===n}function u(r){const m=l(r),i=t.getLastToken(r),c=t.getTokenAfter(m,{includeComments:!0}),d=t.getTokenBefore(i,{includeComments:!0});if(!(m.type!=="Punctuator"||m.value!=="{"||i.type!=="Punctuator"||i.value!=="}"||c===i)&&!(!n&&c.type==="Line")){if(!f(m,c)){let s=m.loc;o==="extra"&&(s={start:m.loc.end,end:c.loc.start}),e.report({node:r,loc:s,messageId:o,data:{location:"after",token:m.value},fix(p){return n?p.insertTextBefore(c," "):p.removeRange([m.range[1],c.range[0]])}})}if(!f(d,i)){let s=i.loc;o==="extra"&&(s={start:d.loc.end,end:i.loc.start}),e.report({node:r,loc:s,messageId:o,data:{location:"before",token:i.value},fix(p){return n?p.insertTextAfter(d," "):p.removeRange([d.range[1],i.range[0]])}})}}}return{BlockStatement:u,StaticBlock:u,SwitchStatement:u}}},Ei}var bi,og;function Fw(){if(og)return bi;og=1;const a=Le();return bi={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(e){const n=e.options[0]||"1tbs",o=e.options[1]||{},t=e.sourceCode;function l(r,m){const i=[r.range[1],m.range[0]];return t.text.slice(i[0],i[1]).trim()?null:d=>d.replaceTextRange(i," ")}function f(r,m){const i=t.getTokenBefore(r),c=t.getTokenAfter(r),d=t.getTokenBefore(m),s=o.allowSingleLine&&a.isTokenOnSameLine(r,m);n!=="allman"&&!a.isTokenOnSameLine(i,r)&&e.report({node:r,messageId:"nextLineOpen",fix:l(i,r)}),n==="allman"&&a.isTokenOnSameLine(i,r)&&!s&&e.report({node:r,messageId:"sameLineOpen",fix:p=>p.insertTextBefore(r,`
|
|
58
|
+
`)}),a.isTokenOnSameLine(r,c)&&c!==m&&!s&&e.report({node:r,messageId:"blockSameLine",fix:p=>p.insertTextAfter(r,`
|
|
59
|
+
`)}),d!==r&&!s&&a.isTokenOnSameLine(d,m)&&e.report({node:m,messageId:"singleLineClose",fix:p=>p.insertTextBefore(m,`
|
|
60
|
+
`)})}function u(r){const m=t.getTokenAfter(r);n==="1tbs"&&!a.isTokenOnSameLine(r,m)&&e.report({node:r,messageId:"nextLineClose",fix:l(r,m)}),n!=="1tbs"&&a.isTokenOnSameLine(r,m)&&e.report({node:r,messageId:"sameLineClose",fix:i=>i.insertTextAfter(r,`
|
|
61
|
+
`)})}return{BlockStatement(r){a.STATEMENT_LIST_PARENTS.has(r.parent.type)||f(t.getFirstToken(r),t.getLastToken(r))},StaticBlock(r){f(t.getFirstToken(r,{skip:1}),t.getLastToken(r))},ClassBody(r){f(t.getFirstToken(r),t.getLastToken(r))},SwitchStatement(r){const m=t.getLastToken(r),i=t.getTokenBefore(r.cases.length?r.cases[0]:m);f(i,m)},IfStatement(r){r.consequent.type==="BlockStatement"&&r.alternate&&u(t.getLastToken(r.consequent))},TryStatement(r){u(t.getLastToken(r.block)),r.handler&&r.finalizer&&u(t.getLastToken(r.handler.body))}}}},bi}var Ci,lg;function Rw(){return lg||(lg=1,Ci={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(a){const e=a.options[0]||["callback","cb","next"],n=a.sourceCode;function o(u,r){return u.parent?r.includes(u.parent.type)?u.parent:o(u.parent,r):null}function t(u){if(u.type==="Identifier")return!0;if(u.type==="MemberExpression"){if(u.object.type==="Identifier")return!0;if(u.object.type==="MemberExpression")return t(u.object)}return!1}function l(u){return t(u.callee)&&e.includes(n.getText(u.callee))}function f(u,r){return!r||r.type!=="ExpressionStatement"?!1:r.expression===u||(r.expression.type==="BinaryExpression"||r.expression.type==="LogicalExpression")&&r.expression.right===u}return{CallExpression(u){if(!l(u))return;const r=o(u,["BlockStatement","ReturnStatement","ArrowFunctionExpression"])||{};if(r.type!=="ReturnStatement"&&r.type!=="ArrowFunctionExpression"){if(r.type==="BlockStatement"){const m=r.body.at(-1);if(f(u,m)){const i=r.parent.type;if(i==="FunctionExpression"||i==="FunctionDeclaration"||i==="ArrowFunctionExpression")return}if(m.type==="ReturnStatement"&&f(u,r.body.at(-2)))return}o(u,["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"])&&a.report({node:u,messageId:"missingReturn"})}}}}}),Ci}var xi,ug;function _w(){if(ug)return xi;ug=1;const a=Le();return xi={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(e){const[{allow:n,ignoreDestructuring:o,ignoreGlobals:t,ignoreImports:l,properties:f}]=e.options,u=e.sourceCode,r=new Set;function m(g){const v=g.replace(/^_+|_+$/gu,"");return v.includes("_")&&v!==v.toUpperCase()}function i(g){return n.some(v=>g===v||g.match(new RegExp(v,"u")))}function c(g){return!m(g)||i(g)}function d(g){const v=g.parent;switch(v.type){case"AssignmentExpression":case"AssignmentPattern":return v.left===g;case"Property":return v.parent.type==="ObjectPattern"&&v.value===g;case"ArrayPattern":case"RestElement":return!0;default:return!1}}function s(g){const v=g.name,E=g.parent.type==="AssignmentPattern"?g.parent:g,b=E.parent;switch(b.type){case"Property":return(b.parent.type==="ObjectPattern"||b.parent.type==="ObjectExpression")&&b.value===E&&!b.computed&&b.key.type==="Identifier"&&b.key.name===v;case"ImportSpecifier":return b.local===g&&a.getModuleExportName(b.imported)===v;default:return!1}}function p(g){r.has(g.range[0])||(r.add(g.range[0]),e.report({node:g,messageId:g.type==="PrivateIdentifier"?"notCamelCasePrivate":"notCamelCase",data:{name:g.name}}))}function h(g){g.parent.type==="CallExpression"||g.parent.type==="NewExpression"||g.parent.type==="AssignmentPattern"&&g.parent.right===g||o&&s(g)||a.isImportAttributeKey(g)||p(g)}return{Program(g){const v=u.getScope(g);if(!t){for(const E of v.variables)if(!(E.identifiers.length>0||c(E.name)))for(const b of E.references)h(b.identifier)}for(const E of v.through){const b=E.identifier;c(b.name)||a.isImportAttributeKey(b)||h(b)}},[["VariableDeclaration","FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","ClassDeclaration","ClassExpression","CatchClause"]](g){for(const v of u.getDeclaredVariables(g)){if(c(v.name))continue;const E=v.identifiers[0];o&&s(E)||p(E);for(const b of v.references)b.init||h(b.identifier)}},[["ObjectExpression > Property[computed!=true] > Identifier.key","MethodDefinition[computed!=true] > Identifier.key","PropertyDefinition[computed!=true] > Identifier.key","MethodDefinition > PrivateIdentifier.key","PropertyDefinition > PrivateIdentifier.key"]](g){f==="never"||a.isImportAttributeKey(g)||c(g.name)||p(g)},"MemberExpression[computed!=true] > Identifier.property"(g){f==="never"||!d(g.parent)||c(g.name)||p(g)},ImportDeclaration(g){for(const v of u.getDeclaredVariables(g)){if(c(v.name))continue;const E=v.identifiers[0];l&&s(E)||p(E);for(const b of v.references)h(b.identifier)}},[["ExportAllDeclaration > Identifier.exported","ExportSpecifier > Identifier.exported"]](g){c(g.name)||p(g)},[["LabeledStatement > Identifier.label","BreakStatement > Identifier.label","ContinueStatement > Identifier.label"]](g){c(g.name)||p(g)}}}},xi}var wi,cg;function Bw(){if(cg)return wi;cg=1;const e=Le().COMMENTS_IGNORE_PATTERN,n=/\s/gu,o=/^\s*[^:/?#\s]+:\/\/[^?#]/u,t=new RegExp("\\p{L}","u"),l={type:"object",properties:{ignorePattern:{type:"string"},ignoreInlineComments:{type:"boolean"},ignoreConsecutiveComments:{type:"boolean"}},additionalProperties:!1},f={ignorePattern:"",ignoreInlineComments:!1,ignoreConsecutiveComments:!1};function u(i,c){return Object.assign({},f,i[c]||i)}function r(i={}){return{Line:u(i,"line"),Block:u(i,"block")}}function m(i){Object.keys(i).forEach(c=>{const d=i[c].ignorePattern;if(d){const s=RegExp(`^\\s*(?:${d})`,"u");i[c].ignorePatternRegExp=s}})}return wi={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:[l,{type:"object",properties:{line:l,block:l},additionalProperties:!1}]}],messages:{unexpectedLowercaseComment:"Comments should not begin with a lowercase character.",unexpectedUppercaseComment:"Comments should not begin with an uppercase character."}},create(i){const c=i.options[0]||"always",d=r(i.options[1]),s=i.sourceCode;m(d);function p(E){const b=s.getTokenBefore(E,{includeComments:!0}),T=s.getTokenAfter(E,{includeComments:!0});return!!(b&&T&&E.loc.start.line===b.loc.end.line&&E.loc.end.line===T.loc.start.line)}function h(E){const b=s.getTokenBefore(E,{includeComments:!0});return!!(b&&["Block","Line"].includes(b.type))}function g(E,b){if(e.test(E.value))return!0;const T=E.value.replace(/\*/gu,"");if(b.ignorePatternRegExp&&b.ignorePatternRegExp.test(T)||b.ignoreInlineComments&&p(E)||b.ignoreConsecutiveComments&&h(E)||o.test(T))return!0;const C=T.replace(n,"");if(C.length===0)return!0;const[S]=C;if(!t.test(S))return!0;const w=S!==S.toLocaleLowerCase(),x=S!==S.toLocaleUpperCase();return!(c==="always"&&x||c==="never"&&w)}function v(E){const b=d[E.type];if(!g(E,b)){const C=c==="always"?"unexpectedLowercaseComment":"unexpectedUppercaseComment";i.report({node:null,loc:E.loc,messageId:C,fix(S){const w=E.value.match(t),x=w[0],A=E.range[0]+w.index+2;return S.replaceTextRange([A,A+x.length],c==="always"?x.toLocaleUpperCase():x.toLocaleLowerCase())}})}}return{Program(){s.getAllComments().filter(b=>b.type!=="Shebang").forEach(v)}}}},wi}var Ai,fg;function Lw(){if(fg)return Ai;fg=1;const a=Le();return Ai={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:[{enforceForClassFields:!0,exceptMethods:[],ignoreOverrideMethods:!1}],docs:{description:"Enforce that class methods utilize `this`",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(e){const[n]=e.options,{enforceForClassFields:o,ignoreOverrideMethods:t,ignoreClassesWithImplements:l}=n,f=new Set(n.exceptMethods),u=[];function r(){u.push(!1)}function m(){return u.pop()}function i(){r()}function c(g){switch(g.type){case"MethodDefinition":return!g.static&&g.kind!=="constructor";case"AccessorProperty":case"PropertyDefinition":return!g.static&&o;default:return!1}}function d(g){const v=g.parent.parent;return v?.type==="ClassDeclaration"&&v.implements?.length>0}function s(g){if(c(g)){if(g.computed)return!0;if(t&&g.override||l&&d(g)&&(l==="all"||l==="public-fields"&&g.key.type!=="PrivateIdentifier"&&(!g.accessibility||g.accessibility==="public")))return!1;const v=g.key.type==="PrivateIdentifier"?"#":"",E=g.key.type==="Literal"?a.getStaticStringValue(g.key):g.key.name||"";return!f.has(v+E)}return!1}function p(g){const v=m();s(g.parent)&&!v&&e.report({node:g,loc:a.getFunctionHeadLoc(g,e.sourceCode),messageId:"missingThis",data:{name:a.getFunctionNameWithKind(g)}})}function h(){u.length&&(u[u.length-1]=!0)}return{FunctionDeclaration:i,"FunctionDeclaration:exit":p,FunctionExpression:i,"FunctionExpression:exit":p,"AccessorProperty > *.key:exit":r,"AccessorProperty:exit":m,"PropertyDefinition > *.key:exit":r,"PropertyDefinition:exit":m,StaticBlock:r,"StaticBlock:exit":m,ThisExpression:h,Super:h,...o&&{"AccessorProperty > ArrowFunctionExpression.value":i,"AccessorProperty > ArrowFunctionExpression.value:exit":p,"PropertyDefinition > ArrowFunctionExpression.value":i,"PropertyDefinition > ArrowFunctionExpression.value:exit":p}}}},Ai}var Ti,pg;function Ow(){if(pg)return Ti;pg=1;const a=Le(),e=Object.freeze({arrays:"never",objects:"never",imports:"never",exports:"never",functions:"never"});function n(t){return!(t.type==="RestElement"||t.type==="RestProperty"||t.type==="ExperimentalRestProperty")}function o(t,l){return typeof t=="string"?{arrays:t,objects:t,imports:t,exports:t,functions:l<2017?"ignore":t}:typeof t=="object"&&t!==null?{arrays:t.arrays||e.arrays,objects:t.objects||e.objects,imports:t.imports||e.imports,exports:t.exports||e.exports,functions:t.functions||e.functions}:e}return Ti={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){const l=o(t.options[0],t.languageOptions.ecmaVersion),f=t.sourceCode;function u(h){function g(v){return v.at(-1)}switch(h.type){case"ObjectExpression":case"ObjectPattern":return g(h.properties);case"ArrayExpression":case"ArrayPattern":return g(h.elements);case"ImportDeclaration":case"ExportNamedDeclaration":return g(h.specifiers);case"FunctionDeclaration":case"FunctionExpression":case"ArrowFunctionExpression":return g(h.params);case"CallExpression":case"NewExpression":return g(h.arguments);default:return null}}function r(h,g){switch(h.type){case"ObjectExpression":case"ArrayExpression":case"CallExpression":case"NewExpression":return f.getLastToken(h,1);default:{const v=f.getTokenAfter(g);return a.isCommaToken(v)?v:f.getLastToken(g)}}}function m(h){const g=u(h);if(!g)return!1;const v=r(h,g);return f.getTokenAfter(v).loc.end.line!==v.loc.end.line}function i(h){const g=u(h);if(!g||h.type==="ImportDeclaration"&&g.type!=="ImportSpecifier")return;const v=r(h,g);a.isCommaToken(v)&&t.report({node:g,loc:v.loc,messageId:"unexpected",*fix(E){yield E.remove(v),yield E.insertTextBefore(f.getTokenBefore(v),""),yield E.insertTextAfter(f.getTokenAfter(v),"")}})}function c(h){const g=u(h);if(!g||h.type==="ImportDeclaration"&&g.type!=="ImportSpecifier")return;if(!n(g)){i(h);return}const v=r(h,g);v.value!==","&&t.report({node:g,loc:{start:v.loc.end,end:a.getNextLocation(f,v.loc.end)},messageId:"missing",*fix(E){yield E.insertTextAfter(v,","),yield E.insertTextBefore(v,""),yield E.insertTextAfter(f.getTokenAfter(v),"")}})}function d(h){m(h)?c(h):i(h)}function s(h){m(h)||i(h)}const p={always:c,"always-multiline":d,"only-multiline":s,never:i,ignore(){}};return{ObjectExpression:p[l.objects],ObjectPattern:p[l.objects],ArrayExpression:p[l.arrays],ArrayPattern:p[l.arrays],ImportDeclaration:p[l.imports],ExportNamedDeclaration:p[l.exports],FunctionDeclaration:p[l.functions],FunctionExpression:p[l.functions],ArrowFunctionExpression:p[l.functions],CallExpression:p[l.functions],NewExpression:p[l.functions]}}},Ti}var ki,mg;function Nw(){if(mg)return ki;mg=1;const a=Le();return ki={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(e){const n=e.sourceCode,o=n.tokensAndComments,t={before:e.options[0]?e.options[0].before:!1,after:e.options[0]?e.options[0].after:!0},l=[];function f(r,m,i){e.report({node:r,fix(c){if(t[m])return m==="before"?c.insertTextBefore(r," "):c.insertTextAfter(r," ");let d,s;const p="";return m==="before"?(d=i.range[1],s=r.range[0]):(d=r.range[1],s=i.range[0]),c.replaceTextRange([d,s],p)},messageId:t[m]?"missing":"unexpected",data:{loc:m}})}function u(r){let m=n.getFirstToken(r);r.elements.forEach(i=>{let c;i===null?(c=n.getTokenAfter(m),a.isCommaToken(c)&&l.push(c)):c=n.getTokenAfter(i),m=c})}return{"Program:exit"(){o.forEach((r,m)=>{if(!a.isCommaToken(r))return;const i=o[m-1],c=o[m+1];i&&!a.isCommaToken(i)&&!l.includes(r)&&a.isTokenOnSameLine(i,r)&&t.before!==n.isSpaceBetweenTokens(i,r)&&f(r,"before",i),c&&!a.isCommaToken(c)&&!a.isClosingParenToken(c)&&!a.isClosingBracketToken(c)&&!a.isClosingBraceToken(c)&&!(!t.after&&c.type==="Line")&&a.isTokenOnSameLine(r,c)&&t.after!==n.isSpaceBetweenTokens(r,c)&&f(r,"after",c)})},ArrayExpression:u,ArrayPattern:u}}},ki}var Di,dg;function Mw(){if(dg)return Di;dg=1;const a=Le();return Di={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(e){const n=e.options[0]||"last",o=e.sourceCode,t={ArrayPattern:!0,ArrowFunctionExpression:!0,CallExpression:!0,FunctionDeclaration:!0,FunctionExpression:!0,ImportDeclaration:!0,ObjectPattern:!0,NewExpression:!0};if(e.options.length===2&&Object.hasOwn(e.options[1],"exceptions")){const i=Object.keys(e.options[1].exceptions);for(let c=0;c<i.length;c++)t[i[c]]=e.options[1].exceptions[i[c]]}function l(i,c){switch(i){case"between":return`,${c.replace(a.LINEBREAK_MATCHER,"")}`;case"first":return`${c},`;case"last":return`,${c}`;default:return""}}function f(i,c,d,s){const p=o.text.slice(c.range[1],d.range[0])+o.text.slice(d.range[1],s.range[0]),h=[c.range[1],s.range[0]];return function(g){return g.replaceTextRange(h,l(i,p))}}function u(i,c,d,s){if(!(a.isTokenOnSameLine(c,d)&&a.isTokenOnSameLine(i,c)))if(!a.isTokenOnSameLine(c,d)&&!a.isTokenOnSameLine(i,c)){const p=o.getCommentsAfter(c)[0],h=p&&p.type==="Block"&&a.isTokenOnSameLine(c,p)?n:"between";e.report({node:s,loc:c.loc,messageId:"unexpectedLineBeforeAndAfterComma",fix:f(h,i,c,d)})}else n==="first"&&!a.isTokenOnSameLine(c,d)?e.report({node:s,loc:c.loc,messageId:"expectedCommaFirst",fix:f(n,i,c,d)}):n==="last"&&a.isTokenOnSameLine(c,d)&&e.report({node:s,loc:c.loc,messageId:"expectedCommaLast",fix:f(n,i,c,d)})}function r(i,c){const d=i[c],s=i.type==="ArrayExpression"||i.type==="ArrayPattern";if(d.length>1||s){let p=o.getFirstToken(i);if(d.forEach(h=>{const g=h?o.getTokenBefore(h):p,v=h?o.getFirstToken(h):o.getTokenAfter(g),E=h||v;if(a.isCommaToken(g)&&u(p,g,v,E),h){const b=o.getTokenAfter(h,a.isNotClosingParenToken);p=b?o.getTokenBefore(b):o.ast.tokens.at(-1)}else p=v}),s){const h=o.getLastToken(i),g=o.getTokenBefore(h);a.isCommaToken(g)&&u(o.getTokenBefore(g),g,h,h)}}}const m={};return t.VariableDeclaration||(m.VariableDeclaration=function(i){r(i,"declarations")}),t.ObjectExpression||(m.ObjectExpression=function(i){r(i,"properties")}),t.ObjectPattern||(m.ObjectPattern=function(i){r(i,"properties")}),t.ArrayExpression||(m.ArrayExpression=function(i){r(i,"elements")}),t.ArrayPattern||(m.ArrayPattern=function(i){r(i,"elements")}),t.FunctionDeclaration||(m.FunctionDeclaration=function(i){r(i,"params")}),t.FunctionExpression||(m.FunctionExpression=function(i){r(i,"params")}),t.ArrowFunctionExpression||(m.ArrowFunctionExpression=function(i){r(i,"params")}),t.CallExpression||(m.CallExpression=function(i){r(i,"arguments")}),t.ImportDeclaration||(m.ImportDeclaration=function(i){r(i,"specifiers")}),t.NewExpression||(m.NewExpression=function(i){r(i,"arguments")}),m}},Di}var Pi,hg;function Pr(){if(hg)return Pi;hg=1;const a=/^[\u0000-\u007f]*$/u;let e;function n(t){return t.length<=1?t.toUpperCase():t[0].toUpperCase()+t.slice(1)}function o(t){if(a.test(t))return t.length;e??=new Intl.Segmenter("en-US");let l=0;for(const f of e.segment(t))l++;return l}return Pi={upperCaseFirst:n,getGraphemeCount:o},Pi}var Ii,gg;function jw(){if(gg)return Ii;gg=1;const a=Le(),{upperCaseFirst:e}=Pr(),n=20;return Ii={meta:{type:"suggestion",defaultOptions:[n],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(o){const t=o.sourceCode,l=o.options[0];let f=n,u="classic";typeof l=="object"?((Object.hasOwn(l,"maximum")||Object.hasOwn(l,"max"))&&(f=l.maximum||l.max),Object.hasOwn(l,"variant")&&(u=l.variant)):typeof l=="number"&&(f=l);const r=u==="modified",m=[];function i(){m[m.length-1]++}return{onCodePathStart(){m.push(1)},CatchClause:i,ConditionalExpression:i,LogicalExpression:i,ForStatement:i,ForInStatement:i,ForOfStatement:i,IfStatement:i,WhileStatement:i,DoWhileStatement:i,AssignmentPattern:i,"SwitchCase[test]":()=>r||i(),SwitchStatement:()=>r&&i(),AssignmentExpression(c){a.isLogicalAssignmentOperator(c.operator)&&i()},MemberExpression(c){c.optional===!0&&i()},CallExpression(c){c.optional===!0&&i()},onCodePathEnd(c,d){const s=m.pop();if(!(c.origin!=="function"&&c.origin!=="class-field-initializer"&&c.origin!=="class-static-block")&&s>f){let p,h=d.loc;c.origin==="class-field-initializer"?p="class field initializer":c.origin==="class-static-block"?(p="class static block",h=t.getFirstToken(d).loc):(p=a.getFunctionNameWithKind(d),h=a.getFunctionHeadLoc(d,t)),o.report({node:d,loc:h,messageId:"complex",data:{name:e(p),complexity:s,max:f}})}}}}},Ii}var Fi,yg;function Uw(){if(yg)return Fi;yg=1;const a=Le();return Fi={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(e){const n=e.sourceCode,o=e.options[0]==="always",t=!e.options[1]||e.options[1].enforceForClassMembers;function l(c,d,s){e.report({node:c,loc:{start:d.loc.end,end:s.loc.start},messageId:"unexpectedSpaceAfter",data:{tokenValue:d.value},fix(p){return p.removeRange([d.range[1],s.range[0]])}})}function f(c,d,s){e.report({node:c,loc:{start:s.loc.end,end:d.loc.start},messageId:"unexpectedSpaceBefore",data:{tokenValue:d.value},fix(p){return p.removeRange([s.range[1],d.range[0]])}})}function u(c,d){e.report({node:c,loc:d.loc,messageId:"missingSpaceAfter",data:{tokenValue:d.value},fix(s){return s.insertTextAfter(d," ")}})}function r(c,d){e.report({node:c,loc:d.loc,messageId:"missingSpaceBefore",data:{tokenValue:d.value},fix(s){return s.insertTextBefore(d," ")}})}function m(c){return function(d){if(!d.computed)return;const s=d[c],p=n.getTokenBefore(s,a.isOpeningBracketToken),h=n.getTokenAfter(p,{includeComments:!0}),g=n.getTokenAfter(s,a.isClosingBracketToken),v=n.getTokenBefore(g,{includeComments:!0});a.isTokenOnSameLine(p,h)&&(o?!n.isSpaceBetweenTokens(p,h)&&a.isTokenOnSameLine(p,h)&&u(d,p):n.isSpaceBetweenTokens(p,h)&&l(d,p,h)),a.isTokenOnSameLine(v,g)&&(o?!n.isSpaceBetweenTokens(v,g)&&a.isTokenOnSameLine(v,g)&&r(d,g):n.isSpaceBetweenTokens(v,g)&&f(d,g,v))}}const i={Property:m("key"),MemberExpression:m("property")};return t&&(i.MethodDefinition=i.PropertyDefinition=i.Property),i}},Fi}var Ri,vg;function qw(){if(vg)return Ri;vg=1;const a=Le(),{upperCaseFirst:e}=Pr();function n(t){for(const l of t)if(l.reachable)return!1;return!0}function o(t){return t.type==="FunctionExpression"&&t.parent&&t.parent.type==="MethodDefinition"&&t.parent.kind==="constructor"}return Ri={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){const[{treatUndefinedAsUnspecified:l}]=t.options;let f=null;function u(r){let m,i;!f.hasReturnValue||n(f.currentSegments)||a.isES5Constructor(r)||o(r)||(r.type==="Program"?(m={line:1,column:0},i="program"):r.type==="ArrowFunctionExpression"?m=t.sourceCode.getTokenBefore(r.body,a.isArrowToken).loc:r.parent.type==="MethodDefinition"||r.parent.type==="Property"&&r.parent.method?m=r.parent.key.loc:m=(r.id||t.sourceCode.getFirstToken(r)).loc,i||(i=a.getFunctionNameWithKind(r)),t.report({node:r,loc:m,messageId:"missingReturn",data:{name:i}}))}return{onCodePathStart(r,m){f={upper:f,codePath:r,hasReturn:!1,hasReturnValue:!1,messageId:"",node:m,currentSegments:new Set}},onCodePathEnd(){f=f.upper},onUnreachableCodePathSegmentStart(r){f.currentSegments.add(r)},onUnreachableCodePathSegmentEnd(r){f.currentSegments.delete(r)},onCodePathSegmentStart(r){f.currentSegments.add(r)},onCodePathSegmentEnd(r){f.currentSegments.delete(r)},ReturnStatement(r){const m=r.argument;let i=!!m;l&&i&&(i=!a.isSpecificId(m,"undefined")&&m.operator!=="void"),f.hasReturn?f.hasReturnValue!==i&&t.report({node:r,messageId:f.messageId,data:f.data}):(f.hasReturn=!0,f.hasReturnValue=i,f.messageId=i?"missingReturnValue":"unexpectedReturnValue",f.data={name:f.node.type==="Program"?"Program":e(a.getFunctionNameWithKind(f.node))})},"Program:exit":u,"FunctionDeclaration:exit":u,"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u}}},Ri}var _i,Sg;function Vw(){return Sg||(Sg=1,_i={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(a){const e=a.options,n=a.sourceCode;function o(u,r){a.report({node:u,messageId:"aliasNotAssignedToThis",data:{name:r}})}function t(u,r,m){const i=m.type==="ThisExpression";e.includes(r)?(!i||u.operator&&u.operator!=="=")&&o(u,r):i&&a.report({node:u,messageId:"unexpectedAlias",data:{name:r}})}function l(u,r){const m=r.set.get(u);m&&(m.defs.some(i=>i.node.type==="VariableDeclarator"&&i.node.init!==null)||m.references.some(i=>{const c=i.writeExpr;return i.from===r&&c&&c.type==="ThisExpression"&&c.parent.operator==="="})||m.defs.map(i=>i.node).forEach(i=>{o(i,u)}))}function f(u){const r=n.getScope(u),m=u.type==="Program"&&u.sourceType==="module"?r.childScopes[0]:null;e.forEach(i=>{l(i,r),m&&l(i,m)})}return{"Program:exit":f,"FunctionExpression:exit":f,"FunctionDeclaration:exit":f,VariableDeclarator(u){const r=u.id,m=r.type==="ArrayPattern"||r.type==="ObjectPattern";u.init!==null&&!m&&t(u,r.name,u.init)},AssignmentExpression(u){u.left.type==="Identifier"&&t(u,u.left.name,u.right)}}}}),_i}var Bi,Eg;function $w(){if(Eg)return Bi;Eg=1;function a(o){return o.type==="FunctionExpression"&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"}function e(o){if(!o)return!1;switch(o.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 o.name!=="undefined";case"AssignmentExpression":return["=","&&="].includes(o.operator)?e(o.right):["||=","??="].includes(o.operator)?e(o.left)||e(o.right):!1;case"LogicalExpression":return o.operator==="&&"?e(o.right):e(o.left)||e(o.right);case"ConditionalExpression":return e(o.alternate)||e(o.consequent);case"SequenceExpression":{const t=o.expressions.at(-1);return e(t)}default:return!1}}class n{calledInEveryPaths=!1;calledInSomePaths=!1;validNodes=[]}return Bi={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(o){let t=null;const l=Object.create(null);function f(m){return m.reachable&&l[m.id].calledInSomePaths}function u(m){return!!l[m.id]}function r(m){return m.reachable&&l[m.id].calledInEveryPaths}return{onCodePathStart(m,i){if(a(i)){const d=i.parent.parent.parent.superClass;t={upper:t,isConstructor:!0,hasExtends:!!d,superIsConstructor:e(d),codePath:m,currentSegments:new Set}}else t={upper:t,isConstructor:!1,hasExtends:!1,superIsConstructor:!1,codePath:m,currentSegments:new Set}},onCodePathEnd(m,i){const c=t.hasExtends;if(t=t.upper,!c)return;const d=m.returnedSegments,s=d.every(r),p=d.some(f);s||o.report({messageId:p?"missingSome":"missingAll",node:i.parent})},onCodePathSegmentStart(m,i){if(t.currentSegments.add(m),!(t.isConstructor&&t.hasExtends))return;const c=l[m.id]=new n,d=m.prevSegments.filter(u);d.length>0&&(c.calledInSomePaths=d.some(f),c.calledInEveryPaths=d.every(r)),i.parent&&i.parent.type==="ForStatement"&&i.parent.update===i&&(c.calledInEveryPaths=!0)},onUnreachableCodePathSegmentStart(m){t.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){t.currentSegments.delete(m)},onCodePathSegmentEnd(m){t.currentSegments.delete(m)},onCodePathSegmentLoop(m,i){t.isConstructor&&t.hasExtends&&t.codePath.traverseSegments({first:i,last:m},(c,d)=>{const s=l[c.id];if(!s){d.skip();return}const p=c.prevSegments.filter(u),h=p.some(f),g=p.every(r);if(s.calledInSomePaths||=h,s.calledInEveryPaths||=g,h){const v=s.validNodes;s.validNodes=[];for(let E=0;E<v.length;++E){const b=v[E];o.report({messageId:"duplicate",node:b})}}})},"CallExpression:exit"(m){if(!(t.isConstructor&&t.hasExtends)||m.callee.type!=="Super")return;const i=t.currentSegments;let c=!1,d=null;for(const s of i)s.reachable&&(d=l[s.id],c=c||d.calledInSomePaths,d.calledInSomePaths=d.calledInEveryPaths=!0);d&&(c?o.report({messageId:"duplicate",node:m}):t.superIsConstructor?d.validNodes.push(m):o.report({messageId:"badSuper",node:m}))},ReturnStatement(m){if(!(t.isConstructor&&t.hasExtends)||!m.argument)return;const i=t.currentSegments;for(const c of i)if(c.reachable){const d=l[c.id];d.calledInSomePaths=d.calledInEveryPaths=!0}}}}},Bi}var Li,bg;function Gw(){if(bg)return Li;bg=1;const a=Le();return Li={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(e){const n=e.options[0]==="multi",o=e.options[0]==="multi-line",t=e.options[0]==="multi-or-nest",l=e.options[1]==="consistent",f=e.sourceCode;function u(d){const s=f.getTokenBefore(d),p=f.getLastToken(d),h=a.isSemicolonToken(p)?f.getTokenBefore(p):p;return s.loc.start.line===h.loc.end.line}function r(d){if(d.type==="EmptyStatement")return!0;const s=f.getFirstToken(d),p=f.getLastToken(d),h=a.isSemicolonToken(p)?f.getTokenBefore(p):p;return s.loc.start.line===h.loc.end.line}function m(d){const s=f.getTokenBefore(d),p=f.getTokenAfter(d),h=f.getNodeByRangeIndex(s.range[0]);return a.isSemicolonToken(s)||!p||h.type==="BlockStatement"&&h.parent.type!=="FunctionExpression"&&h.parent.type!=="ArrowFunctionExpression"?!1:!!(s.loc.end.line===p.loc.start.line||/^[([/`+-]/u.test(p.value)||s.type==="Punctuator"&&(s.value==="++"||s.value==="--"))}function i(d,s,p,h){const g=s.type==="BlockStatement";let v=null;if(g&&(s.body.length!==1||a.areBracesNecessary(s,f)))v=!0;else if(n)v=!1;else if(o)u(s)||(v=!0);else if(t)if(g){const E=s.body[0],b=f.getCommentsBefore(E);v=!r(E)||b.length>0}else v=!r(s);else v=!0;return{actual:g,expected:v,check(){this.expected!==null&&this.expected!==this.actual&&(this.expected?e.report({node:d,loc:s.loc,messageId:h&&h.condition?"missingCurlyAfterCondition":"missingCurlyAfter",data:{name:p},fix:E=>E.replaceText(s,`{${f.getText(s)}}`)}):e.report({node:d,loc:s.loc,messageId:h&&h.condition?"unexpectedCurlyAfterCondition":"unexpectedCurlyAfter",data:{name:p},fix(E){const b=d.type==="DoWhileStatement"&&f.getTokenBefore(s).range[1]===s.range[0]&&!a.canTokensBeAdjacent("do",f.getFirstToken(s,{skip:1})),T=f.getFirstToken(s),C=f.getLastToken(s),S=f.getTokenBefore(C);if(m(C))return null;const w=f.getText().slice(T.range[1],S.range[0])+f.getText(S)+f.getText().slice(S.range[1],C.range[0]);return E.replaceText(s,(b?" ":"")+w)}}))}}}function c(d){const s=[];for(let p=d;p;p=p.alternate)if(s.push(i(p,p.consequent,"if",{condition:!0})),p.alternate&&p.alternate.type!=="IfStatement"){s.push(i(p,p.alternate,"else"));break}if(l){const p=s.some(h=>h.expected!==null?h.expected:h.actual);s.forEach(h=>{h.expected=p})}return s}return{IfStatement(d){const s=d.parent;s.type==="IfStatement"&&s.alternate===d||c(d).forEach(h=>{h.check()})},WhileStatement(d){i(d,d.body,"while",{condition:!0}).check()},DoWhileStatement(d){i(d,d.body,"do").check()},ForStatement(d){i(d,d.body,"for",{condition:!0}).check()},ForInStatement(d){i(d,d.body,"for-in").check()},ForOfStatement(d){i(d,d.body,"for-of").check()}}}},Li}var Oi,Cg;function Ww(){if(Cg)return Oi;Cg=1;const a=/^no default$/iu;return Oi={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(e){const[n]=e.options,o=n.commentPattern?new RegExp(n.commentPattern,"u"):a,t=e.sourceCode;function l(f){return f.at(-1)}return{SwitchStatement(f){if(!f.cases.length)return;if(!f.cases.some(r=>r.test===null)){let r;const m=l(f.cases),i=t.getCommentsAfter(m);i.length&&(r=l(i)),(!r||!o.test(r.value.trim()))&&e.report({node:f,messageId:"missingDefaultCase"})}}}}},Oi}var Ni,xg;function zw(){return xg||(xg=1,Ni={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(a){return{SwitchStatement(e){const n=e.cases,o=n.findIndex(t=>t.test===null);if(o!==-1&&o!==n.length-1){const t=n[o];a.report({node:t,messageId:"notLast"})}}}}}),Ni}var Mi,wg;function Hw(){if(wg)return Mi;wg=1;function a(e){return!(e.type==="AssignmentPattern"||e.type==="RestElement"||e.optional)}return Mi={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Enforce default parameters to be last",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/default-param-last"},schema:[],messages:{shouldBeLast:"Default parameters should be last."}},create(e){function n(o){let t=!1;for(let l=o.params.length-1;l>=0;l-=1){const f=o.params[l],u=f.type==="TSParameterProperty"?f.parameter:f;if(a(u)){t=!0;continue}t&&e.report({node:f,messageId:"shouldBeLast"})}}return{FunctionDeclaration:n,FunctionExpression:n,ArrowFunctionExpression:n}}},Mi}var ji,Ag;function Kw(){if(Ag)return ji;Ag=1;const a=Le();return ji={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(e){const n=e.options[0],o=n==="object"||!n,t=e.sourceCode;function l(u){const r=u.property,m=t.getTokenBefore(r);if(o){const i=t.getTokenBefore(m);a.isTokenOnSameLine(i,m)||e.report({node:u,loc:m.loc,messageId:"expectedDotAfterObject",*fix(c){m.value.startsWith(".")&&a.isDecimalIntegerNumericToken(i)?yield c.insertTextAfter(i,` ${m.value}`):yield c.insertTextAfter(i,m.value),yield c.remove(m)}})}else a.isTokenOnSameLine(m,r)||e.report({node:u,loc:m.loc,messageId:"expectedDotBeforeProperty",*fix(i){yield i.remove(m),yield i.insertTextBefore(r,m.value)}})}function f(u){u.computed||l(u)}return{MemberExpression:f}}},ji}var Ui,Tg;function qi(){return Tg||(Tg=1,Ui=["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"]),Ui}var Vi,kg;function Xw(){if(kg)return Vi;kg=1;const a=Le(),e=qi(),n=/^[a-zA-Z_$][\w$]*$/u,o=new Set(["string","boolean"]);return Vi={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){const[l]=t.options,f=l.allowKeywords,u=t.sourceCode;let r;l.allowPattern&&(r=new RegExp(l.allowPattern,"u"));function m(i,c){if(n.test(c)&&(f||!e.includes(String(c)))&&!(r&&r.test(c))){const d=i.property.type==="Literal"?JSON.stringify(c):`\`${c}\``;t.report({node:i.property,messageId:"useDot",data:{key:d},*fix(s){const p=u.getTokenAfter(i.object,a.isOpeningBracketToken),h=u.getLastToken(i),g=u.getTokenAfter(i);u.commentsExistBetween(p,h)||(i.optional||(yield s.insertTextBefore(p,a.isDecimalInteger(i.object)?" .":".")),yield s.replaceTextRange([p.range[0],h.range[1]],c),g&&h.range[1]===g.range[0]&&!a.canTokensBeAdjacent(String(c),g)&&(yield s.insertTextAfter(i," ")))}})}}return{MemberExpression(i){i.computed&&i.property.type==="Literal"&&(o.has(typeof i.property.value)||a.isNullLiteral(i.property))&&m(i,i.property.value),i.computed&&a.isStaticTemplateLiteral(i.property)&&m(i,i.property.quasis[0].value.cooked),!f&&!i.computed&&i.property.type==="Identifier"&&e.includes(String(i.property.name))&&t.report({node:i.property,messageId:"useBrackets",data:{key:i.property.name},*fix(c){const d=u.getTokenBefore(i.property);i.object.type==="Identifier"&&i.object.name==="let"&&!i.optional||u.commentsExistBetween(d,i.property)||(i.optional||(yield c.remove(d)),yield c.replaceText(i.property,`["${i.property.name}"]`))}})}}}},Vi}var $i,Dg;function Jw(){return Dg||(Dg=1,$i={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(a){return{Program:function(n){const o=a.sourceCode,t=o.getText(),l=o.lines.at(-1),f={column:l.length,line:o.lines.length},u=`
|
|
62
|
+
`,r=`\r${u}`,m=t.endsWith(u);if(!t.length)return;let i=a.options[0]||"always",c=!1;if(i==="unix"&&(i="always"),i==="windows"&&(i="always",c=!0),i==="always"&&!m)a.report({node:n,loc:f,messageId:"missing",fix(d){return d.insertTextAfterRange([0,t.length],c?r:u)}});else if(i==="never"&&m){const d=o.lines.at(-2);a.report({node:n,loc:{start:{line:o.lines.length-1,column:d.length},end:{line:o.lines.length,column:0}},messageId:"unexpected",fix(s){const p=/(?:\r?\n)+$/u,h=p.exec(o.text),g=h.index,v=o.text.length;return s.replaceTextRange([g,v],"")}})}}}}}),$i}var Gi,Pg;function Yw(){if(Pg)return Gi;Pg=1;const a=Le();return Gi={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}]},fixable:"code",messages:{unexpected:"Expected '{{expectedOperator}}' and instead saw '{{actualOperator}}'.",replaceOperator:"Use '{{expectedOperator}}' instead of '{{actualOperator}}'."}},create(e){const n=e.options[0]||"always",o=e.options[1]||{},t=e.sourceCode,l=n==="always"?o.null||"always":"ignore",f=l==="always",u=l==="never";function r(s){return s.type==="UnaryExpression"&&s.operator==="typeof"}function m(s){return r(s.left)||r(s.right)}function i(s){return s.left.type==="Literal"&&s.right.type==="Literal"&&typeof s.left.value==typeof s.right.value}function c(s){return a.isNullLiteral(s.right)||a.isNullLiteral(s.left)}function d(s,p){const h=t.getFirstTokenBetween(s.left,s.right,v=>v.value===s.operator),g={node:s,loc:h.loc,messageId:"unexpected",data:{expectedOperator:p,actualOperator:s.operator}};m(s)||i(s)?e.report({...g,fix(v){return v.replaceText(h,p)}}):e.report({...g,suggest:[{messageId:"replaceOperator",data:{expectedOperator:p,actualOperator:s.operator},fix:v=>v.replaceText(h,p)}]})}return{BinaryExpression(s){const p=c(s);if(s.operator!=="=="&&s.operator!=="!="){u&&p&&d(s,s.operator.slice(0,-1));return}n==="smart"&&(m(s)||i(s)||p)||!f&&p||d(s,`${s.operator}=`)}}}},Gi}var Wi,Ig;function Qw(){if(Ig)return Wi;Ig=1;const{getStaticValue:a}=qt();return Wi={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(e){const{sourceCode:n}=e;function o(u){e.report({loc:{start:u.loc.start,end:n.getTokenBefore(u.body).loc.end},messageId:"incorrectDirection"})}function t(u,r){const m=a(u.right,n.getScope(u));if(m&&["bigint","boolean","number"].includes(typeof m.value)){const i=Math.sign(Number(m.value))||0;return r*i}return 0}function l(u,r){if(u.argument.type==="Identifier"&&u.argument.name===r){if(u.operator==="++")return 1;if(u.operator==="--")return-1}return 0}function f(u,r){if(u.left.name===r){if(u.operator==="+=")return t(u,1);if(u.operator==="-=")return t(u,-1)}return 0}return{ForStatement(u){if(u.test&&u.test.type==="BinaryExpression"&&u.update)for(const r of["left","right"]){if(u.test[r].type!=="Identifier")continue;const m=u.test[r].name,i=u.test.operator,c=u.update;let d;if(i==="<"||i==="<=")d=r==="left"?-1:1;else if(i===">"||i===">=")d=r==="left"?1:-1;else return;c.type==="UpdateExpression"?l(c,m)===d&&o(u):c.type==="AssignmentExpression"&&f(c,m)===d&&o(u)}}}}},Wi}var zi,Fg;function Zw(){if(Fg)return zi;Fg=1;const a=Le();return zi={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(e){const n=e.options[0]!=="always",o=!n&&e.options[1]&&e.options[1].allowNewlines,t=e.sourceCode,l=t.getText();function f(u,r,m){const i=l.slice(r.range[1],m.range[0]).replace(/\/\*.*?\*\//gu,""),c=/\s/u.test(i),d=c&&a.LINEBREAK_MATCHER.test(i);n&&c?e.report({node:u,loc:{start:r.loc.end,end:{line:m.loc.start.line,column:m.loc.start.column-1}},messageId:"unexpectedWhitespace",fix(s){return t.commentsExistBetween(r,m)?null:u.optional?s.replaceTextRange([r.range[1],m.range[0]],"?."):d?null:s.removeRange([r.range[1],m.range[0]])}}):!n&&!c?e.report({node:u,loc:{start:{line:r.loc.end.line,column:r.loc.end.column-1},end:m.loc.start},messageId:"missing",fix(s){return u.optional?null:s.insertTextBefore(m," ")}}):!n&&!o&&d&&e.report({node:u,loc:{start:r.loc.end,end:m.loc.start},messageId:"unexpectedNewline",fix(s){if(!u.optional||t.commentsExistBetween(r,m))return null;const p=[r.range[1],m.range[0]],h=t.getTokenAfter(r);return h.range[0]===r.range[1]?s.replaceTextRange(p,"?. "):h.range[1]===m.range[0]?s.replaceTextRange(p," ?."):s.replaceTextRange(p," ?. ")}})}return{"CallExpression, NewExpression"(u){const r=t.getLastToken(u),m=t.getLastToken(u.callee),i=t.getFirstTokenBetween(m,r,a.isOpeningParenToken),c=i&&t.getTokenBefore(i,a.isNotQuestionDotToken);i&&i.range[1]<u.range[1]&&f(u,c,i)},ImportExpression(u){const r=t.getFirstToken(u),m=t.getTokenAfter(r);f(u,r,m)}}}},zi}var Hi,Rg;function eA(){if(Rg)return Hi;Rg=1;const a=Le(),e=Kh();function n(f){return f.type==="MemberExpression"&&f.object.type==="Identifier"&&f.object.name==="module"&&(f.property.type==="Identifier"&&f.property.name==="exports"||f.property.type==="Literal"&&f.property.value==="exports")}function o(f,u){return u>=2015?e.keyword.isIdentifierES6(f):e.keyword.isIdentifierES5(f)}const t={enum:["always","never"]},l={type:"object",properties:{considerPropertyDescriptor:{type:"boolean"},includeCommonJSModuleExports:{type:"boolean"}},additionalProperties:!1};return Hi={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:[t,l]},{type:"array",additionalItems:!1,items:[l]}]},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(f){const u=(typeof f.options[0]=="object"?f.options[0]:f.options[1])||{},r=typeof f.options[0]=="string"?f.options[0]:"always",m=u.considerPropertyDescriptor,i=u.includeCommonJSModuleExports,c=f.languageOptions.ecmaVersion;function d(g,v,E){return E?E.type==="CallExpression"&&a.isSpecificMemberAccess(E.callee,g,v):!1}function s(g,v){return r==="always"&&g!==v||r==="never"&&g===v}function p(g,v,E,b){let T;r==="always"&&b?T="matchProperty":r==="always"?T="matchVariable":b?T="notMatchProperty":T="notMatchVariable",f.report({node:g,messageId:T,data:{name:v,funcName:E}})}function h(g){return g.type==="Literal"&&typeof g.value=="string"}return{VariableDeclarator(g){!g.init||g.init.type!=="FunctionExpression"||g.id.type!=="Identifier"||g.init.id&&s(g.id.name,g.init.id.name)&&p(g,g.id.name,g.init.id.name,!1)},AssignmentExpression(g){if(g.right.type!=="FunctionExpression"||g.left.computed&&g.left.property.type!=="Literal"||!i&&n(g.left)||g.left.type!=="Identifier"&&g.left.type!=="MemberExpression")return;const v=g.left.type==="MemberExpression",E=v?a.getStaticPropertyName(g.left):g.left.name;g.right.id&&E&&o(E)&&s(E,g.right.id.name)&&p(g,E,g.right.id.name,v)},"Property, PropertyDefinition[value]"(g){if(g.value.type==="FunctionExpression"&&g.value.id){if(g.key.type==="Identifier"&&!g.computed){const v=g.value.id.name;let E=g.key.name;if(m&&E==="value"&&g.parent.type==="ObjectExpression")if(d("Object","defineProperty",g.parent.parent)||d("Reflect","defineProperty",g.parent.parent)){const b=g.parent.parent.arguments[1];h(b)&&s(b.value,v)&&p(g,b.value,v,!0)}else d("Object","defineProperties",g.parent.parent.parent.parent)||d("Object","create",g.parent.parent.parent.parent)?(E=g.parent.parent.key.name,!g.parent.parent.computed&&s(E,v)&&p(g,E,v,!0)):s(E,v)&&p(g,E,v,!0);else s(E,v)&&p(g,E,v,!0);return}h(g.key)&&o(g.key.value,c)&&s(g.key.value,g.value.id.name)&&p(g,g.key.value,g.value.id.name,!0)}}}}},Hi}var Ki,_g;function tA(){if(_g)return Ki;_g=1;const a=Le();function e(n){return n&&n.defs[0].type==="FunctionName"}return Ki={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"]}},items:[{$ref:"#/definitions/value"},{type:"object",properties:{generators:{$ref:"#/definitions/value"}},additionalProperties:!1}]},messages:{unnamed:"Unexpected unnamed {{name}}.",named:"Unexpected named {{name}}."}},create(n){const o=n.sourceCode;function t(i){return i.generator&&n.options[1].generators?n.options[1].generators:n.options[0]}function l(i){const c=i.parent;return c.type==="MethodDefinition"||c.type==="Property"&&(c.method||c.kind==="get"||c.kind==="set")}function f(i){const c=i.parent;return l(i)||c.type==="VariableDeclarator"&&c.id.type==="Identifier"&&c.init===i||c.type==="Property"&&c.value===i||c.type==="PropertyDefinition"&&c.value===i||c.type==="AssignmentExpression"&&c.left.type==="Identifier"&&c.right===i||c.type==="AssignmentPattern"&&c.left.type==="Identifier"&&c.right===i}function u(i){n.report({node:i,messageId:"unnamed",loc:a.getFunctionHeadLoc(i,o),data:{name:a.getFunctionNameWithKind(i)}})}function r(i){n.report({node:i,messageId:"named",loc:a.getFunctionHeadLoc(i,o),data:{name:a.getFunctionNameWithKind(i)}})}function m(i){const c=o.getDeclaredVariables(i)[0];if(e(c)&&c.references.length>0)return;const d=!!(i.id&&i.id.name),s=t(i);s==="never"?d&&i.type!=="FunctionDeclaration"&&r(i):s==="as-needed"?!d&&!f(i)&&u(i):!d&&!l(i)&&u(i)}return{"FunctionExpression:exit":m,"ExportDefaultDeclaration > FunctionDeclaration":m}}},Ki}var Xi,Bg;function rA(){return Bg||(Bg=1,Xi={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:["expression",{allowArrowFunctions:!1,allowTypeAnnotation:!1,overrides:{}}],docs:{description:"Enforce the consistent use of either `function` declarations or expressions assigned to variables",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(a){const[e,{allowArrowFunctions:n,allowTypeAnnotation:o,overrides:t}]=a.options,l=e==="declaration",{namedExports:f}=t,u=[];function r(i){const c=i.id.name;return i.parent.type==="ExportNamedDeclaration"?i.parent.parent.body.some(d=>d.type==="ExportNamedDeclaration"&&d.declaration?.type==="TSDeclareFunction"&&d.declaration.id.name===c):i.parent.type==="SwitchCase"?i.parent.parent.cases.some(d=>d.consequent.some(s=>s.type==="TSDeclareFunction"&&s.id.name===c)):Array.isArray(i.parent.body)&&i.parent.body.some(d=>d.type==="TSDeclareFunction"&&d.id.name===c)}const m={FunctionDeclaration(i){u.push(!1),!l&&i.parent.type!=="ExportDefaultDeclaration"&&(typeof f>"u"||i.parent.type!=="ExportNamedDeclaration")&&!r(i)&&a.report({node:i,messageId:"expression"}),i.parent.type==="ExportNamedDeclaration"&&f==="expression"&&!r(i)&&a.report({node:i,messageId:"expression"})},"FunctionDeclaration:exit"(){u.pop()},FunctionExpression(i){u.push(!1),l&&i.parent.type==="VariableDeclarator"&&(typeof f>"u"||i.parent.parent.parent.type!=="ExportNamedDeclaration")&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"}),i.parent.type==="VariableDeclarator"&&i.parent.parent.parent.type==="ExportNamedDeclaration"&&f==="declaration"&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"})},"FunctionExpression:exit"(){u.pop()},"ThisExpression, Super"(){u.length>0&&(u[u.length-1]=!0)}};return n||(m.ArrowFunctionExpression=function(){u.push(!1)},m["ArrowFunctionExpression:exit"]=function(i){!u.pop()&&i.parent.type==="VariableDeclarator"&&(l&&(typeof f>"u"||i.parent.parent.parent.type!=="ExportNamedDeclaration")&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"}),i.parent.parent.parent.type==="ExportNamedDeclaration"&&f==="declaration"&&!(o&&i.parent.id.typeAnnotation)&&a.report({node:i.parent,messageId:"declaration"}))}),m}}),Xi}var Ji,Lg;function nA(){return Lg||(Lg=1,Ji={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(a){const e=a.sourceCode,n={unexpected:{messageId:"unexpectedLineBreak",check:(l,f)=>l.loc.end.line!==f.loc.start.line,createFix:(l,f)=>u=>u.replaceTextRange([f.range[1],l.range[0]]," ")},missing:{messageId:"missingLineBreak",check:(l,f)=>l.loc.end.line===f.loc.start.line,createFix:(l,f)=>u=>u.replaceTextRange([f.range[1],l.range[0]],`
|
|
63
|
+
`)}};function o(l,f){for(let u=1;u<l.arguments.length;u++){const r=e.getLastToken(l.arguments[u-1]),m=e.getFirstToken(l.arguments[u]);if(f.check(r,m)){const i=e.getTokenBefore(m,{includeComments:!0}),c=i.type==="Line";a.report({node:l,loc:{start:i.loc.end,end:m.loc.start},messageId:f.messageId,fix:c?null:f.createFix(m,i)})}}}function t(l){if(l.arguments.length<2)return;const f=a.options[0]||"always";if(f==="never")o(l,n.unexpected);else if(f==="always")o(l,n.missing);else if(f==="consistent"){const u=e.getLastToken(l.arguments[0]),r=e.getFirstToken(l.arguments[1]);u.loc.end.line===r.loc.start.line?o(l,n.unexpected):o(l,n.missing)}}return{CallExpression:t,NewExpression:t}}}),Ji}var Yi,Og;function sA(){if(Og)return Yi;Og=1;const a=Le();return Yi={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(e){const n=e.sourceCode,o=e.options[0]||"multiline",t=o==="multiline",l=o==="multiline-arguments",f=o==="consistent";let u;typeof o=="object"?u=o.minItems:o==="always"?u=0:o==="never"?u=1/0:u=null;function r(d,s){return l&&d.length===1?s:t||l?d.some((p,h)=>h!==d.length-1&&p.loc.end.line!==d[h+1].loc.start.line):f?s:d.length>=u}function m(d,s){const p=d.leftParen,h=d.rightParen,g=n.getTokenAfter(p),v=n.getTokenBefore(h),E=!a.isTokenOnSameLine(p,g),b=!a.isTokenOnSameLine(v,h),T=r(s,E);E&&!T?e.report({node:p,messageId:"unexpectedAfter",fix(C){return n.getText().slice(p.range[1],g.range[0]).trim()?null:C.removeRange([p.range[1],g.range[0]])}}):!E&&T&&e.report({node:p,messageId:"expectedAfter",fix:C=>C.insertTextAfter(p,`
|
|
64
|
+
`)}),b&&!T?e.report({node:h,messageId:"unexpectedBefore",fix(C){return n.getText().slice(v.range[1],h.range[0]).trim()?null:C.removeRange([v.range[1],h.range[0]])}}):!b&&T&&e.report({node:h,messageId:"expectedBefore",fix:C=>C.insertTextBefore(h,`
|
|
65
|
+
`)})}function i(d,s){const p=d.leftParen,h=n.getTokenAfter(p),g=!a.isTokenOnSameLine(p,h),v=r(s,g);for(let E=0;E<=s.length-2;E++){const b=s[E],T=s[E+1];!(b.loc.end.line!==T.loc.start.line)&&v&&e.report({node:b,messageId:"expectedBetween",fix:S=>S.insertTextBefore(T,`
|
|
66
|
+
`)})}}function c(d){switch(d.type){case"NewExpression":if(!d.arguments.length&&!(a.isOpeningParenToken(n.getLastToken(d,{skip:1}))&&a.isClosingParenToken(n.getLastToken(d))&&d.callee.range[1]<d.range[1]))return null;case"CallExpression":return{leftParen:n.getTokenAfter(d.callee,a.isOpeningParenToken),rightParen:n.getLastToken(d)};case"FunctionDeclaration":case"FunctionExpression":{const s=n.getFirstToken(d,a.isOpeningParenToken),p=d.params.length?n.getTokenAfter(d.params.at(-1),a.isClosingParenToken):n.getTokenAfter(s);return{leftParen:s,rightParen:p}}case"ArrowFunctionExpression":{const s=n.getFirstToken(d,{skip:d.async?1:0});if(!a.isOpeningParenToken(s))return null;const p=d.params.length?n.getTokenAfter(d.params.at(-1),a.isClosingParenToken):n.getTokenAfter(s);return{leftParen:s,rightParen:p}}case"ImportExpression":{const s=n.getFirstToken(d,1),p=n.getLastToken(d);return{leftParen:s,rightParen:p}}default:throw new TypeError(`unexpected node with type ${d.type}`)}}return{[["ArrowFunctionExpression","CallExpression","FunctionDeclaration","FunctionExpression","ImportExpression","NewExpression"]](d){const s=c(d);let p;d.type==="ImportExpression"?p=[d.source]:a.isFunction(d)?p=d.params:p=d.arguments,s&&(m(s,p),l&&i(s,p))}}}},Yi}var Qi,Ng;function aA(){if(Ng)return Qi;Ng=1;const a={oneOf:[{enum:["before","after","both","neither"]},{type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1}]};return Qi={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:a,anonymous:a,method:a},additionalProperties:!1}]}],messages:{missingBefore:"Missing space before *.",missingAfter:"Missing space after *.",unexpectedBefore:"Unexpected space before *.",unexpectedAfter:"Unexpected space after *."}},create(e){const n={before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}};function o(c,d){return c?typeof c=="string"?n[c]:Object.assign({},d,c):d}const t=(function(c){const d=o(c,n.before);return{named:o(c.named,d),anonymous:o(c.anonymous,d),method:o(c.method,d)}})(e.options[0]||{}),l=e.sourceCode;function f(c){return c.value==="*"&&c.type==="Punctuator"}function u(c){return l.getFirstToken(c.parent.method||c.parent.type==="MethodDefinition"?c.parent:c,f)}function r(c){return c[0].toUpperCase()+c.slice(1)}function m(c,d,s,p){if(!!(p.range[0]-s.range[1])!==t[c][d]){const h=s.value==="*",g=t[c][d],v=h?s:p,E=`${g?"missing":"unexpected"}${r(d)}`;e.report({node:v,messageId:E,fix(b){return g?h?b.insertTextAfter(v," "):b.insertTextBefore(v," "):b.removeRange([s.range[1],p.range[0]])}})}}function i(c){if(!c.generator)return;const d=u(c),s=l.getTokenBefore(d),p=l.getTokenAfter(d);let h="named";c.parent.type==="MethodDefinition"||c.parent.type==="Property"&&c.parent.method?h="method":c.id||(h="anonymous"),h==="method"&&d===l.getFirstToken(c.parent)||m(h,"before",s,d),m(h,"after",d,p)}return{FunctionDeclaration:i,FunctionExpression:i}}},Qi}var Zi,Mg;function iA(){if(Mg)return Zi;Mg=1;const a=Le(),e=/^(?:Arrow)?FunctionExpression$/u;function n(o){for(const t of o)if(t.reachable)return!0;return!1}return Zi={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(o){const[{allowImplicit:t}]=o.options,l=o.sourceCode;let f={upper:null,codePath:null,hasReturn:!1,shouldCheck:!1,node:null,currentSegments:[]};function u(m){f.shouldCheck&&n(f.currentSegments)&&o.report({node:m,loc:a.getFunctionHeadLoc(m,l),messageId:f.hasReturn?"expectedAlways":"expected",data:{name:a.getFunctionNameWithKind(f.node)}})}function r(m){const i=m.parent;if(e.test(m.type)&&m.body.type==="BlockStatement"){if(i.kind==="get")return!0;if(i.type==="Property"&&a.getStaticPropertyName(i)==="get"&&i.parent.type==="ObjectExpression"){if(i.parent.parent.type==="CallExpression"){const c=i.parent.parent.callee;if(a.isSpecificMemberAccess(c,"Object","defineProperty")||a.isSpecificMemberAccess(c,"Reflect","defineProperty"))return!0}if(i.parent.parent.type==="Property"&&i.parent.parent.parent.type==="ObjectExpression"&&i.parent.parent.parent.parent.type==="CallExpression"){const c=i.parent.parent.parent.parent.callee;return a.isSpecificMemberAccess(c,"Object","defineProperties")||a.isSpecificMemberAccess(c,"Object","create")}}}return!1}return{onCodePathStart(m,i){f={upper:f,codePath:m,hasReturn:!1,shouldCheck:r(i),node:i,currentSegments:new Set}},onCodePathEnd(){f=f.upper},onUnreachableCodePathSegmentStart(m){f.currentSegments.add(m)},onUnreachableCodePathSegmentEnd(m){f.currentSegments.delete(m)},onCodePathSegmentStart(m){f.currentSegments.add(m)},onCodePathSegmentEnd(m){f.currentSegments.delete(m)},ReturnStatement(m){f.shouldCheck&&(f.hasReturn=!0,!t&&!m.argument&&o.report({node:m,messageId:"expected",data:{name:a.getFunctionNameWithKind(f.node)}}))},"FunctionExpression:exit":u,"ArrowFunctionExpression:exit":u}}},Zi}var eo,jg;function oA(){if(jg)return eo;jg=1;const a=new Set(["AssignmentExpression","VariableDeclarator","MemberExpression","ExpressionStatement","CallExpression","ConditionalExpression","Program","VariableDeclaration","ChainExpression"]);function e(o,t){const l=o.references.filter(f=>f.identifier.range[0]===t.range[0]&&f.identifier.range[1]===t.range[1]);return l.length===1?l[0]:null}function n(o,t){const l=e(o,t);return l&&l.resolved&&l.resolved.defs.length>0}return eo={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(o){const t=o.sourceCode;return{CallExpression(l){const f=t.getScope(l);l.callee.name==="require"&&!n(f,l.callee)&&(t.getAncestors(l).every(r=>a.has(r.type))||o.report({node:l,messageId:"unexpected"}))}}}},eo}var to,Ug;function lA(){if(Ug)return to;Ug=1;const a=Le();function e(t,l){if(t.length!==l.length)return!1;for(let f=0;f<t.length;f++){const u=t[f],r=l[f];if(u.type!==r.type||u.value!==r.value)return!1}return!0}function n(t,l){return typeof t=="string"&&typeof l=="string"?t===l:Array.isArray(t)&&Array.isArray(l)?e(t,l):!1}function o(t){return t.kind==="get"||t.kind==="set"}return to={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){const[l,{enforceForTSTypes:f}]=t.options,{sourceCode:u}=t;function r(i,c,d){t.report({node:d,messageId:i,loc:a.getFunctionHeadLoc(d.type!=="TSMethodSignature"?d.value:d,u),data:{formerName:a.getFunctionNameWithKind(c.type!=="TSMethodSignature"?c.value:c),latterName:a.getFunctionNameWithKind(d.type!=="TSMethodSignature"?d.value:d)}})}function m(i,c){const d=[];let s=!1;for(let p=0;p<i.length;p++){const h=i[p];if(c(h)&&o(h)){const g=a.getStaticPropertyName(h),v=g!==null?g:u.getTokens(h.key);for(let E=0;E<d.length;E++){const b=d[E];if(n(b.key,v)){b.getters.push(...h.kind==="get"?[h]:[]),b.setters.push(...h.kind==="set"?[h]:[]),s=!0;break}}s||d.push({key:v,getters:h.kind==="get"?[h]:[],setters:h.kind==="set"?[h]:[]}),s=!1}}for(const{getters:p,setters:h}of d)if(p.length===1&&h.length===1){const[g]=p,[v]=h,E=i.indexOf(g),b=i.indexOf(v),T=E<b?g:v,C=E<b?v:g;Math.abs(E-b)>1?r("notGrouped",T,C):(l==="getBeforeSet"&&E>b||l==="setBeforeGet"&&E<b)&&r("invalidOrder",T,C)}}return{ObjectExpression(i){m(i.properties,c=>c.type==="Property")},ClassBody(i){m(i.body,c=>c.type==="MethodDefinition"&&!c.static),m(i.body,c=>c.type==="MethodDefinition"&&c.static)},"TSTypeLiteral, TSInterfaceBody"(i){f&&m(i.type==="TSTypeLiteral"?i.members:i.body,c=>c.type==="TSMethodSignature")}}}},to}var ro,qg;function uA(){return qg||(qg=1,ro={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(a){return{ForInStatement(e){const n=e.body;if(n.type!=="EmptyStatement"&&n.type!=="IfStatement"&&!(n.type==="BlockStatement"&&n.body.length===0)&&!(n.type==="BlockStatement"&&n.body.length===1&&n.body[0].type==="IfStatement")){if(n.type==="BlockStatement"&&n.body.length>=1&&n.body[0].type==="IfStatement"){const o=n.body[0];if(o.consequent.type==="ContinueStatement"||o.consequent.type==="BlockStatement"&&o.consequent.body.length===1&&o.consequent.body[0].type==="ContinueStatement")return}a.report({node:e,messageId:"wrap"})}}}}}),ro}var no,Vg;function cA(){return Vg||(Vg=1,no={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(a){const e=a.options[0]||"err",n=a.sourceCode;function o(u){return u[0]==="^"}function t(u){return o(e)?new RegExp(e,"u").test(u):u===e}function l(u){return u.variables.filter(r=>r.defs[0]&&r.defs[0].type==="Parameter")}function f(u){const r=n.getScope(u),m=l(r),i=m[0];i&&t(i.name)&&i.references.length===0&&a.report({node:u,messageId:"expected"})}return{FunctionDeclaration:f,FunctionExpression:f,ArrowFunctionExpression:f}}}),no}var so,$g;function fA(){if($g)return so;$g=1;function a(t){const l=t.parent;return l.type==="AssignmentExpression"&&l.left===t||l.type==="ArrayPattern"||l.type==="RestElement"||l.type==="Property"&&l.value===t&&l.parent.type==="ObjectPattern"||l.type==="AssignmentPattern"&&l.left===t}function e(t){const l=t.parent;return l.type==="ImportSpecifier"&&l.imported!==l.local&&l.imported===t||l.type==="ExportSpecifier"&&l.parent.source&&l.local!==l.exported&&l.local===t}function n(t){const l=t.parent;return!l.computed&&l.type==="Property"&&l.parent.type==="ObjectPattern"&&l.value!==t&&l.key===t}function o(t){const l=t.parent;return l.type==="Property"&&l.parent.type==="ObjectExpression"&&l.shorthand}return so={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){const l=new Set(t.options),f=new Set,u=t.sourceCode;let r;function m(s){return l.has(s)}function i(s){const p=r.set.get(s.name);return p&&p.defs.length===0&&p.references.some(h=>h.identifier===s)}function c(s){const p=s.parent;return p.type==="MemberExpression"&&p.property===s&&!p.computed?a(p):p.type!=="CallExpression"&&p.type!=="NewExpression"&&!e(s)&&!n(s)&&!(i(s)&&!o(s))}function d(s){f.has(s.range.toString())||(t.report({node:s,messageId:"restricted",data:{name:s.name}}),f.add(s.range.toString()))}return{Program(s){r=u.getScope(s)},Identifier(s){m(s.name)&&c(s)&&d(s)}}}},so}var ao,Gg;function pA(){if(Gg)return ao;Gg=1;const a=Le();function e(t){const l=t.parent;return l.type==="AssignmentExpression"&&l.left===t||l.type==="ArrayPattern"||l.type==="RestElement"||l.type==="Property"&&l.value===t&&l.parent.type==="ObjectPattern"||l.type==="AssignmentPattern"&&l.left===t}function n(t){const l=t.parent;return l.type==="ImportSpecifier"&&l.imported!==l.local&&l.imported===t||l.type==="ExportSpecifier"&&l.parent.source&&l.local!==l.exported&&l.local===t}function o(t){const l=t.parent;return!l.computed&&l.type==="Property"&&l.parent.type==="ObjectPattern"&&l.key===t}return ao={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){const l=new Set(t.options),f=new Set,u=t.sourceCode;let r;function m(s){return l.has(s)}function i(s){const p=r.set.get(s.name);return p&&p.defs.length===0&&p.references.some(h=>h.identifier===s)}function c(s){if(a.isImportAttributeKey(s))return!1;const p=s.parent;return p.type==="MemberExpression"&&p.property===s&&!p.computed?e(p):p.type!=="CallExpression"&&p.type!=="NewExpression"&&!n(s)&&!o(s)&&!i(s)}function d(s){if(!f.has(s.range.toString())){const p=s.type==="PrivateIdentifier";t.report({node:s,messageId:p?"restrictedPrivate":"restricted",data:{name:s.name}}),f.add(s.range.toString())}}return{Program(s){r=u.getScope(s)},[["Identifier","PrivateIdentifier"]](s){m(s.name)&&c(s)&&d(s)}}}},ao}var io,Wg;function mA(){if(Wg)return io;Wg=1;const{getGraphemeCount:a}=Pr(),{getModuleExportName:e,isImportAttributeKey:n}=Le();return io={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(o){const[t]=o.options,{max:l=1/0,min:f}=t,u=t.properties!=="never",r=new Set(t.exceptions),m=t.exceptionPatterns.map(s=>new RegExp(s,"u")),i=new Set;function c(s){return m.some(p=>p.test(s))}const d={MemberExpression:u&&function(s){return!s.computed&&(s.parent.left===s&&s.parent.type==="AssignmentExpression"||s.parent.type==="Property"&&s.parent.value===s&&s.parent.parent.type==="ObjectPattern"&&s.parent.parent.parent.left===s.parent.parent)},AssignmentPattern(s,p){return s.left===p},VariableDeclarator(s,p){return s.id===p},Property(s,p){if(s.parent.type==="ObjectPattern"){const h=s.value.name===s.key.name;return!h&&s.value===p||h&&s.key===p&&u}return u&&!n(p)&&!s.computed&&s.key.name===p.name},ImportSpecifier(s,p){return s.local===p&&e(s.imported)!==e(s.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"]](s){const p=s.name,h=s.parent,g=a(p),v=g<f,E=g>l;if(!(v||E)||r.has(p)||c(p))return;const b=d[h.type];if(b&&!i.has(s.range.toString())&&(b===!0||b(h,s))){i.add(s.range.toString());let T=v?"tooShort":"tooLong";s.type==="PrivateIdentifier"&&(T+="Private"),o.report({node:s,messageId:T,data:{name:p,min:f,max:l}})}}}}},io}var oo,zg;function dA(){if(zg)return oo;zg=1;const a=Le();return oo={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(e){const[n,{classFields:o,ignoreDestructuring:t,onlyDeclarations:l,properties:f}]=e.options,u=new RegExp(n,"u"),r=e.sourceCode;let m;const i=new Set,c=new Set(["CallExpression","NewExpression"]),d=new Set(["FunctionDeclaration","VariableDeclarator"]),s=new Set(["ImportSpecifier","ImportNamespaceSpecifier","ImportDefaultSpecifier"]);function p(b){const T=m.set.get(b.name);return T&&T.defs.length===0&&T.references.some(C=>C.identifier===b)}function h(b){return!u.test(b)}function g(b){let{parent:T}=b;for(;T;){if(T.type==="ObjectPattern")return!0;T=T.parent}return!1}function v(b,T){return(!l||d.has(b.type))&&!c.has(b.type)&&h(T)}function E(b){if(!i.has(b.range.toString())){const T=b.type==="PrivateIdentifier"?"notMatchPrivate":"notMatch";e.report({node:b,messageId:T,data:{name:b.name,pattern:n}}),i.add(b.range.toString())}}return{Program(b){m=r.getScope(b)},Identifier(b){const T=b.name,C=b.parent,S=C.type==="MemberExpression"?C.parent:C;if(!(p(b)||a.isImportAttributeKey(b)))if(C.type==="MemberExpression"){if(!f)return;C.object.type==="Identifier"&&C.object.name===T||S.type==="AssignmentExpression"&&S.left.type==="MemberExpression"&&S.left.property.name===b.name?h(T)&&E(b):S.type==="AssignmentExpression"&&S.right.type!=="MemberExpression"&&h(T)&&E(b)}else if(C.type==="Property"&&C.parent.type==="ObjectExpression"&&C.key===b&&!C.computed)f&&h(T)&&E(b);else if(C.type==="Property"||C.type==="AssignmentPattern"){if(C.parent&&C.parent.type==="ObjectPattern"){!t&&C.shorthand&&C.value.left&&h(T)&&E(b);const w=C.key.name===C.value.name;if(!w&&C.key===b)return;C.value.name&&h(T)&&!(w&&t)&&E(b)}if(!f&&!C.computed||t&&g(b))return;C.right!==b&&v(S,T)&&E(b)}else s.has(C.type)?C.local&&C.local.name===b.name&&h(T)&&E(b):C.type==="PropertyDefinition"?o&&h(T)&&E(b):v(S,T)&&E(b)},PrivateIdentifier(b){b.parent.type==="PropertyDefinition"&&!o||h(b.name)&&E(b)}}}},oo}var lo,Hg;function hA(){if(Hg)return lo;Hg=1;const{isCommentToken:a,isNotOpeningParenToken:e}=Le();return lo={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(n){const o=n.sourceCode,t=n.options[0]||"beside";function l(f){if(f.body.type==="BlockStatement")return;const u=o.getTokenBefore(f.body,e),r=o.getTokenAfter(u);u.loc.end.line===r.loc.start.line&&t==="below"?n.report({node:r,messageId:"expected",fix:m=>m.insertTextBefore(r,`
|
|
67
|
+
`)}):u.loc.end.line!==r.loc.start.line&&t==="beside"&&n.report({node:r,messageId:"unexpected",fix(m){return o.getFirstTokenBetween(u,r,{includeComments:!0,filter:a})?null:m.replaceTextRange([u.range[1],r.range[0]]," ")}})}return{ArrowFunctionExpression:f=>l(f)}}},lo}var uo,Kg;function gA(){if(Kg)return uo;Kg=1;const a=Le(),e=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"]);class n{constructor(u){this._values=Array(u+1)}insert(u,r){this._values[u]=r}findLastNotAfter(u){const r=this._values;for(let m=u;m>=0;m--){const i=r[m];if(i)return i}}deleteRange(u,r){this._values.fill(void 0,u,r)}}class o{constructor(u){this.sourceCode=u,this.firstTokensByLineNumber=new Map;const r=u.tokensAndComments;for(let m=0;m<r.length;m++){const i=r[m];this.firstTokensByLineNumber.has(i.loc.start.line)||this.firstTokensByLineNumber.set(i.loc.start.line,i),!this.firstTokensByLineNumber.has(i.loc.end.line)&&u.text.slice(i.range[1]-i.loc.end.column,i.range[1]).trim()&&this.firstTokensByLineNumber.set(i.loc.end.line,i)}}getFirstTokenOfLine(u){return this.firstTokensByLineNumber.get(u.loc.start.line)}isFirstTokenOfLine(u){return this.getFirstTokenOfLine(u)===u}getTokenIndent(u){return this.sourceCode.text.slice(u.range[0]-u.loc.start.column,u.range[0])}}class t{constructor(u,r,m,i){this._tokenInfo=u,this._indentSize=r,this._indentType=m,this._indexMap=new n(i),this._indexMap.insert(0,{offset:0,from:null,force:!1}),this._lockedFirstTokens=new WeakMap,this._desiredIndentCache=new WeakMap,this._ignoredTokens=new WeakSet}_getOffsetDescriptor(u){return this._indexMap.findLastNotAfter(u.range[0])}matchOffsetOf(u,r){this._lockedFirstTokens.set(r,u)}setDesiredOffset(u,r,m){return this.setDesiredOffsets(u.range,r,m)}setDesiredOffsets(u,r,m,i){const c={offset:m,from:r,force:i},d=this._indexMap.findLastNotAfter(u[1]),s=r&&r.range[0]>=u[0]&&r.range[1]<=u[1],p=s&&this._getOffsetDescriptor(r);this._indexMap.deleteRange(u[0]+1,u[1]),this._indexMap.insert(u[0],c),s&&(this._indexMap.insert(r.range[0],p),this._indexMap.insert(r.range[1],c)),this._indexMap.insert(u[1],d)}getDesiredIndent(u){if(!this._desiredIndentCache.has(u))if(this._ignoredTokens.has(u))this._desiredIndentCache.set(u,this._tokenInfo.getTokenIndent(u));else if(this._lockedFirstTokens.has(u)){const r=this._lockedFirstTokens.get(u);this._desiredIndentCache.set(u,this.getDesiredIndent(this._tokenInfo.getFirstTokenOfLine(r))+this._indentType.repeat(r.loc.start.column-this._tokenInfo.getFirstTokenOfLine(r).loc.start.column))}else{const r=this._getOffsetDescriptor(u),m=r.from&&r.from.loc.start.line===u.loc.start.line&&!/^\s*?\n/u.test(u.value)&&!r.force?0:r.offset*this._indentSize;this._desiredIndentCache.set(u,(r.from?this.getDesiredIndent(r.from):"")+this._indentType.repeat(m))}return this._desiredIndentCache.get(u)}ignoreToken(u){this._tokenInfo.isFirstTokenOfLine(u)&&this._ignoredTokens.add(u)}getFirstDependency(u){return this._getOffsetDescriptor(u).from}}const l={oneOf:[{type:"integer",minimum:0},{enum:["first","off"]}]};return uo={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:[l,{type:"object",properties:{var:l,let:l,const:l},additionalProperties:!1}]},outerIIFEBody:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},MemberExpression:{oneOf:[{type:"integer",minimum:0},{enum:["off"]}]},FunctionDeclaration:{type:"object",properties:{parameters:l,body:{type:"integer",minimum:0}},additionalProperties:!1},FunctionExpression:{type:"object",properties:{parameters:l,body:{type:"integer",minimum:0}},additionalProperties:!1},StaticBlock:{type:"object",properties:{body:{type:"integer",minimum:0}},additionalProperties:!1},CallExpression:{type:"object",properties:{arguments:l},additionalProperties:!1},ArrayExpression:l,ObjectExpression:l,ImportDeclaration:l,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(f){let i="space",c=4;const d={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};f.options.length&&(f.options[0]==="tab"?(c=1,i="tab"):(c=f.options[0],i="space"),f.options[1]&&(Object.assign(d,f.options[1]),(typeof d.VariableDeclarator=="number"||d.VariableDeclarator==="first")&&(d.VariableDeclarator={var:d.VariableDeclarator,let:d.VariableDeclarator,const:d.VariableDeclarator})));const s=f.sourceCode,p=new o(s),h=new t(p,c,i==="space"?" ":" ",s.text.length),g=new WeakSet;function v(L,K,J){const ge=`${L} ${i}${L===1?"":"s"}`,ae=`space${K===1?"":"s"}`,ke=`tab${J===1?"":"s"}`;let Z;return K>0?Z=i==="space"?K:`${K} ${ae}`:J>0?Z=i==="tab"?J:`${J} ${ke}`:Z="0",{expected:ge,actual:Z}}function E(L,K){const J=Array.from(p.getTokenIndent(L)),ge=J.filter(ke=>ke===" ").length,ae=J.filter(ke=>ke===" ").length;f.report({node:L,messageId:"wrongIndentation",data:v(K.length,ge,ae),loc:{start:{line:L.loc.start.line,column:0},end:{line:L.loc.start.line,column:L.loc.start.column}},fix(ke){const Z=[L.range[0]-L.loc.start.column,L.range[0]],P=K;return ke.replaceTextRange(Z,P)}})}function b(L,K){const J=p.getTokenIndent(L);return J===K||J.includes(" ")&&J.includes(" ")}function T(L){if(!L.parent||L.parent.type!=="CallExpression"||L.parent.callee!==L)return!1;let K=L.parent&&L.parent.parent;for(;K.type==="UnaryExpression"&&["!","~","+","-"].includes(K.operator)||K.type==="AssignmentExpression"||K.type==="LogicalExpression"||K.type==="SequenceExpression"||K.type==="VariableDeclarator";)K=K.parent;return(K.type==="ExpressionStatement"||K.type==="VariableDeclaration")&&K.parent.type==="Program"}function C(L){const J=L.match(/\s*$/u)[0].match(a.createGlobalLinebreakMatcher());return J===null?0:J.length}function S(L,K,J,ge){function ae(ke){let Z=s.getTokenBefore(ke);for(;a.isOpeningParenToken(Z)&&Z!==K;)Z=s.getTokenBefore(Z);return s.getTokenAfter(Z)}h.setDesiredOffsets([K.range[1],J.range[0]],K,typeof ge=="number"?ge:1),h.setDesiredOffset(J,K,0),!(ge==="first"&&L.length&&!L[0])&&L.forEach((ke,Z)=>{if(ke&&(ge==="off"&&h.ignoreToken(ae(ke)),Z!==0))if(ge==="first"&&p.isFirstTokenOfLine(ae(ke)))h.matchOffsetOf(ae(L[0]),ae(ke));else{const P=L[Z-1],H=P&&ae(P),fe=P&&s.getLastToken(P);P&&fe.loc.end.line-C(fe.value)>K.loc.end.line&&h.setDesiredOffsets([P.range[1],ke.range[1]],H,0)}})}function w(L){if(L.type!=="BlockStatement"){const K=s.getTokenBefore(L,a.isNotOpeningParenToken);let J=s.getFirstToken(L),ge=s.getLastToken(L);for(;a.isOpeningParenToken(s.getTokenBefore(J))&&a.isClosingParenToken(s.getTokenAfter(ge));)J=s.getTokenBefore(J),ge=s.getTokenAfter(ge);h.setDesiredOffsets([J.range[0],ge.range[1]],K,1)}}function x(L){let K;L.arguments.length?K=s.getFirstTokenBetween(L.callee,L.arguments[0],a.isOpeningParenToken):K=s.getLastToken(L,1);const J=s.getLastToken(L);if(g.add(K),g.add(J),L.optional){const ke=s.getTokenAfter(L.callee,a.isQuestionDotToken),Z=s.getTokensBetween(L.callee,ke,{filter:a.isClosingParenToken}).length,P=Z?s.getTokenBefore(L.callee,{skip:Z-1}):s.getFirstToken(L.callee),H=s.getTokenBefore(ke),fe=H.loc.end.line===K.loc.start.line?H:P;h.setDesiredOffset(ke,fe,1)}const ge=L.callee.type==="TaggedTemplateExpression"?s.getFirstToken(L.callee.quasi):K,ae=s.getTokenBefore(ge);h.setDesiredOffset(K,ae,0),S(L.arguments,K,J,d.CallExpression.arguments)}function A(L){const K=[],J=[];for(let ge=0;ge<L.length;ge++){const ae=L[ge];a.isOpeningParenToken(ae)?K.push(ae):a.isClosingParenToken(ae)&&J.push({left:K.pop(),right:ae})}for(let ge=J.length-1;ge>=0;ge--){const ae=J[ge].left,ke=J[ge].right;if(!g.has(ae)&&!g.has(ke)){const Z=new Set(s.getTokensBetween(ae,ke));Z.forEach(P=>{Z.has(h.getFirstDependency(P))||h.setDesiredOffset(P,ae,1)})}h.setDesiredOffset(ke,ae,0)}}function k(L){const K=new Set(s.getTokens(L,{includeComments:!0}));K.forEach(J=>{if(!K.has(h.getFirstDependency(J))){const ge=p.getFirstTokenOfLine(J);J===ge?h.ignoreToken(J):h.setDesiredOffset(J,ge,0)}})}function R(L,K){let J=K;for(;J.parent&&!J.parent.type.endsWith("Statement")&&!J.parent.type.endsWith("Declaration");)J=J.parent;return J=J.parent,!J||J.loc.start.line===L.loc.start.line}function I(L,K){const J=L.loc.end.line,ge=K.loc.start.line;if(J===ge||J===ge-1)return!1;for(let ae=J+1;ae<ge;++ae)if(!p.firstTokensByLineNumber.has(ae))return!0;return!1}const B=new Set,F={"ArrayExpression, ArrayPattern"(L){const K=s.getFirstToken(L),J=s.getTokenAfter([...L.elements].reverse().find(ge=>ge)||K,a.isClosingBracketToken);S(L.elements,K,J,d.ArrayExpression)},"ObjectExpression, ObjectPattern"(L){const K=s.getFirstToken(L),J=s.getTokenAfter(L.properties.length?L.properties.at(-1):K,a.isClosingBraceToken);S(L.properties,K,J,d.ObjectExpression)},ArrowFunctionExpression(L){const K=s.getFirstToken(L,{skip:L.async?1:0});if(a.isOpeningParenToken(K)){const J=K,ge=s.getTokenBefore(L.body,a.isClosingParenToken);g.add(J),g.add(ge),S(L.params,J,ge,d.FunctionExpression.parameters)}w(L.body)},AssignmentExpression(L){const K=s.getFirstTokenBetween(L.left,L.right,J=>J.value===L.operator);h.setDesiredOffsets([K.range[0],L.range[1]],s.getLastToken(L.left),1),h.ignoreToken(K),h.ignoreToken(s.getTokenAfter(K))},"BinaryExpression, LogicalExpression"(L){const K=s.getFirstTokenBetween(L.left,L.right,ge=>ge.value===L.operator),J=s.getTokenAfter(K);h.ignoreToken(K),h.ignoreToken(J),h.setDesiredOffset(J,K,0)},"BlockStatement, ClassBody"(L){let K;L.parent&&T(L.parent)?K=d.outerIIFEBody:L.parent&&(L.parent.type==="FunctionExpression"||L.parent.type==="ArrowFunctionExpression")?K=d.FunctionExpression.body:L.parent&&L.parent.type==="FunctionDeclaration"?K=d.FunctionDeclaration.body:K=1,a.STATEMENT_LIST_PARENTS.has(L.parent.type)||h.setDesiredOffset(s.getFirstToken(L),s.getFirstToken(L.parent),0),S(L.body,s.getFirstToken(L),s.getLastToken(L),K)},CallExpression:x,"ClassDeclaration[superClass], ClassExpression[superClass]"(L){const K=s.getFirstToken(L),J=s.getTokenBefore(L.superClass,a.isNotOpeningParenToken);h.setDesiredOffsets([J.range[0],L.body.range[0]],K,1)},ConditionalExpression(L){const K=s.getFirstToken(L);if(!d.flatTernaryExpressions||!a.isTokenOnSameLine(L.test,L.consequent)||R(K,L)){const J=s.getFirstTokenBetween(L.test,L.consequent,P=>P.type==="Punctuator"&&P.value==="?"),ge=s.getFirstTokenBetween(L.consequent,L.alternate,P=>P.type==="Punctuator"&&P.value===":"),ae=s.getTokenAfter(J),ke=s.getTokenBefore(ge),Z=s.getTokenAfter(ge);h.setDesiredOffset(J,K,1),h.setDesiredOffset(ge,K,1),h.setDesiredOffset(ae,K,ae.type==="Punctuator"&&d.offsetTernaryExpressions?2:1),ke.loc.end.line===Z.loc.start.line?h.setDesiredOffset(Z,ae,0):h.setDesiredOffset(Z,K,Z.type==="Punctuator"&&d.offsetTernaryExpressions?2:1)}},"DoWhileStatement, WhileStatement, ForInStatement, ForOfStatement, WithStatement":L=>w(L.body),ExportNamedDeclaration(L){if(L.declaration===null){const K=s.getLastToken(L,a.isClosingBraceToken);S(L.specifiers,s.getFirstToken(L,{skip:1}),K,1),L.source&&h.setDesiredOffsets([K.range[1],L.range[1]],s.getFirstToken(L),1)}},ForStatement(L){const K=s.getFirstToken(L,1);L.init&&h.setDesiredOffsets(L.init.range,K,1),L.test&&h.setDesiredOffsets(L.test.range,K,1),L.update&&h.setDesiredOffsets(L.update.range,K,1),w(L.body)},"FunctionDeclaration, FunctionExpression"(L){const K=s.getTokenBefore(L.body),J=s.getTokenBefore(L.params.length?L.params[0]:K);g.add(J),g.add(K),S(L.params,J,K,d[L.type].parameters)},IfStatement(L){w(L.consequent),L.alternate&&w(L.alternate)},":matches(DoWhileStatement, ForStatement, ForInStatement, ForOfStatement, IfStatement, WhileStatement, WithStatement):exit"(L){let K;L.type==="IfStatement"?(K=[L.consequent],L.alternate&&K.push(L.alternate)):K=[L.body];for(const J of K){const ge=s.getLastToken(J);if(a.isSemicolonToken(ge)){const ae=s.getTokenBefore(ge),ke=s.getTokenAfter(ge);!a.isTokenOnSameLine(ae,ge)&&ke&&a.isTokenOnSameLine(ge,ke)&&h.setDesiredOffset(ge,s.getFirstToken(L),0)}}},ImportDeclaration(L){if(L.specifiers.some(ae=>ae.type==="ImportSpecifier")){const ae=s.getFirstToken(L,a.isOpeningBraceToken),ke=s.getLastToken(L,a.isClosingBraceToken);S(L.specifiers.filter(Z=>Z.type==="ImportSpecifier"),ae,ke,d.ImportDeclaration)}const K=s.getLastToken(L,ae=>ae.type==="Identifier"&&ae.value==="from"),J=s.getLastToken(L,ae=>ae.type==="String"),ge=s.getLastToken(L,ae=>ae.type==="Punctuator"&&ae.value===";");if(K){const ae=ge&&ge.range[1]===J.range[1]?L.range[1]:J.range[1];h.setDesiredOffsets([K.range[0],ae],s.getFirstToken(L),1)}},ImportExpression(L){const K=s.getFirstToken(L,1),J=s.getLastToken(L);g.add(K),g.add(J),h.setDesiredOffset(K,s.getTokenBefore(K),0),S([L.source],K,J,d.CallExpression.arguments)},"MemberExpression, JSXMemberExpression, MetaProperty"(L){const K=L.type==="MetaProperty"?L.meta:L.object,J=s.getFirstTokenBetween(K,L.property,a.isNotClosingParenToken),ge=s.getTokenAfter(J),ae=s.getTokensBetween(K,L.property,{filter:a.isClosingParenToken}).length,ke=ae?s.getTokenBefore(K,{skip:ae-1}):s.getFirstToken(K),Z=s.getTokenBefore(J),P=L.computed?J:ge;L.computed&&(h.setDesiredOffset(s.getLastToken(L),J,0),h.setDesiredOffsets(L.property.range,J,1));const H=Z.loc.end.line===P.loc.start.line?Z:ke;typeof d.MemberExpression=="number"?(h.setDesiredOffset(J,H,d.MemberExpression),h.setDesiredOffset(ge,L.computed?J:H,d.MemberExpression)):(h.ignoreToken(J),h.ignoreToken(ge),h.setDesiredOffset(J,H,0),h.setDesiredOffset(ge,J,0))},NewExpression(L){(L.arguments.length>0||a.isClosingParenToken(s.getLastToken(L))&&a.isOpeningParenToken(s.getLastToken(L,1)))&&x(L)},Property(L){if(!L.shorthand&&!L.method&&L.kind==="init"){const K=s.getFirstTokenBetween(L.key,L.value,a.isColonToken);h.ignoreToken(s.getTokenAfter(K))}},PropertyDefinition(L){const K=s.getFirstToken(L),J=s.getLastToken(L);let ge;if(L.computed){const ae=s.getTokenBefore(L.key,a.isOpeningBracketToken),ke=ge=s.getTokenAfter(L.key,a.isClosingBracketToken),Z=[ae.range[1],ke.range[0]];ae!==K&&h.setDesiredOffset(ae,K,0),h.setDesiredOffsets(Z,ae,1),h.setDesiredOffset(ke,ae,0)}else{const ae=ge=s.getFirstToken(L.key);ae!==K&&h.setDesiredOffset(ae,K,1)}if(L.value){const ae=s.getTokenBefore(L.value,a.isEqToken),ke=s.getTokenAfter(ae);h.setDesiredOffset(ae,ge,1),h.setDesiredOffset(ke,ae,1),a.isSemicolonToken(J)&&h.setDesiredOffset(J,ae,1)}else a.isSemicolonToken(J)&&h.setDesiredOffset(J,ge,1)},StaticBlock(L){const K=s.getFirstToken(L,{skip:1}),J=s.getLastToken(L);S(L.body,K,J,d.StaticBlock.body)},SwitchStatement(L){const K=s.getTokenAfter(L.discriminant,a.isOpeningBraceToken),J=s.getLastToken(L);h.setDesiredOffsets([K.range[1],J.range[0]],K,d.SwitchCase),L.cases.length&&s.getTokensBetween(L.cases.at(-1),J,{includeComments:!0,filter:a.isCommentToken}).forEach(ge=>h.ignoreToken(ge))},SwitchCase(L){if(!(L.consequent.length===1&&L.consequent[0].type==="BlockStatement")){const K=s.getFirstToken(L),J=s.getTokenAfter(L);h.setDesiredOffsets([K.range[1],J.range[0]],K,1)}},TemplateLiteral(L){L.expressions.forEach((K,J)=>{const ge=L.quasis[J],ae=L.quasis[J+1],ke=ge.loc.start.line===ge.loc.end.line?s.getFirstToken(ge):null;h.setDesiredOffsets([ge.range[1],ae.range[0]],ke,1),h.setDesiredOffset(s.getFirstToken(ae),ke,0)})},VariableDeclaration(L){let K=Object.hasOwn(d.VariableDeclarator,L.kind)?d.VariableDeclarator[L.kind]:1;const J=s.getFirstToken(L),ge=s.getLastToken(L);if(d.VariableDeclarator[L.kind]==="first"){if(L.declarations.length>1){S(L.declarations,J,ge,"first");return}K=1}L.declarations.at(-1).loc.start.line>L.loc.start.line?h.setDesiredOffsets(L.range,J,K,!0):h.setDesiredOffsets(L.range,J,K),a.isSemicolonToken(ge)&&h.ignoreToken(ge)},VariableDeclarator(L){if(L.init){const K=s.getTokenBefore(L.init,a.isNotOpeningParenToken),J=s.getTokenAfter(K);h.ignoreToken(K),h.ignoreToken(J),h.setDesiredOffsets([J.range[0],L.range[1]],K,1),h.setDesiredOffset(K,s.getLastToken(L.id),0)}},"JSXAttribute[value]"(L){const K=s.getFirstTokenBetween(L.name,L.value,J=>J.type==="Punctuator"&&J.value==="=");h.setDesiredOffsets([K.range[0],L.value.range[1]],s.getFirstToken(L.name),1)},JSXElement(L){L.closingElement&&S(L.children,s.getFirstToken(L.openingElement),s.getFirstToken(L.closingElement),1)},JSXOpeningElement(L){const K=s.getFirstToken(L);let J;L.selfClosing?(J=s.getLastToken(L,{skip:1}),h.setDesiredOffset(s.getLastToken(L),J,0)):J=s.getLastToken(L),h.setDesiredOffsets(L.name.range,s.getFirstToken(L)),S(L.attributes,K,J,1)},JSXClosingElement(L){const K=s.getFirstToken(L);h.setDesiredOffsets(L.name.range,K,1)},JSXFragment(L){const K=s.getFirstToken(L.openingFragment),J=s.getFirstToken(L.closingFragment);S(L.children,K,J,1)},JSXOpeningFragment(L){const K=s.getFirstToken(L),J=s.getLastToken(L);h.setDesiredOffsets(L.range,K,1),h.matchOffsetOf(K,J)},JSXClosingFragment(L){const K=s.getFirstToken(L),J=s.getLastToken(L,{skip:1}),ge=s.getLastToken(L),ae=a.isTokenOnSameLine(J,ge)?J:ge;h.setDesiredOffsets(L.range,K,1),h.matchOffsetOf(K,ae)},JSXExpressionContainer(L){const K=s.getFirstToken(L),J=s.getLastToken(L);h.setDesiredOffsets([K.range[1],J.range[0]],K,1)},JSXSpreadAttribute(L){const K=s.getFirstToken(L),J=s.getLastToken(L);h.setDesiredOffsets([K.range[1],J.range[0]],K,1)},"*"(L){const K=s.getFirstToken(L);K&&!B.has(K)&&h.setDesiredOffsets(L.range,K,0)}},O=[],$={};for(const[L,K]of Object.entries(F))$[L]=J=>O.push({listener:K,node:J});const N=new Set;function _(L){N.add(L),B.add(s.getFirstToken(L))}const X=d.ignoredNodes.reduce((L,K)=>Object.assign(L,{[K]:_}),{});return Object.assign($,X,{"*:exit"(L){e.has(L.type)||_(L)},"Program:exit"(){d.ignoreComments&&s.getAllComments().forEach(K=>h.ignoreToken(K));for(let K=0;K<O.length;K++){const J=O[K];N.has(J.node)||J.listener(J.node)}N.forEach(k),A(s.ast.tokens);const L=new WeakMap;for(let K=0;K<s.ast.comments.length;K++){const J=s.ast.comments[K],ge=s.getTokenBefore(J,{includeComments:!0}),ae=L.has(ge)?L.get(ge):ge;L.set(J,ae)}for(let K=1;K<s.lines.length+1;K++){if(!p.firstTokensByLineNumber.has(K))continue;const J=p.firstTokensByLineNumber.get(K);if(J.loc.start.line===K){if(a.isCommentToken(J)){const ge=L.get(J),ae=ge?s.getTokenAfter(ge):s.ast.tokens[0],ke=ge&&!I(ge,J),Z=ae&&!I(J,ae);if(ae&&a.isSemicolonToken(ae)&&!a.isTokenOnSameLine(J,ae)&&h.setDesiredOffset(J,ae,0),ke&&b(J,h.getDesiredIndent(ge))||Z&&b(J,h.getDesiredIndent(ae)))continue}b(J,h.getDesiredIndent(J))||E(J,h.getDesiredIndent(J))}}}})}},uo}var co,Xg;function yA(){if(Xg)return co;Xg=1;const a=Le();return co={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(e){let l="space",f=4;const u={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},r=e.sourceCode;if(e.options.length&&(e.options[0]==="tab"?(f=1,l="tab"):typeof e.options[0]=="number"&&(f=e.options[0],l="space"),e.options[1])){const _=e.options[1];u.SwitchCase=_.SwitchCase||0;const X=_.VariableDeclarator;typeof X=="number"?u.VariableDeclarator={var:X,let:X,const:X}:typeof X=="object"&&Object.assign(u.VariableDeclarator,X),typeof _.outerIIFEBody=="number"&&(u.outerIIFEBody=_.outerIIFEBody),typeof _.MemberExpression=="number"&&(u.MemberExpression=_.MemberExpression),typeof _.FunctionDeclaration=="object"&&Object.assign(u.FunctionDeclaration,_.FunctionDeclaration),typeof _.FunctionExpression=="object"&&Object.assign(u.FunctionExpression,_.FunctionExpression),typeof _.CallExpression=="object"&&Object.assign(u.CallExpression,_.CallExpression),(typeof _.ArrayExpression=="number"||typeof _.ArrayExpression=="string")&&(u.ArrayExpression=_.ArrayExpression),(typeof _.ObjectExpression=="number"||typeof _.ObjectExpression=="string")&&(u.ObjectExpression=_.ObjectExpression)}const m={};function i(_,X,L){const K=`${_} ${l}${_===1?"":"s"}`,J=`space${X===1?"":"s"}`,ge=`tab${L===1?"":"s"}`;let ae;return X>0&&L>0?ae=`${X} ${J} and ${L} ${ge}`:X>0?ae=l==="space"?X:`${X} ${J}`:L>0?ae=l==="tab"?L:`${L} ${ge}`:ae="0",{expected:K,actual:ae}}function c(_,X,L,K,J,ge){if(L&&K)return;const ae=(l==="space"?" ":" ").repeat(X),ke=ge?[_.range[1]-_.loc.end.column,_.range[1]-_.loc.end.column+L+K]:[_.range[0]-_.loc.start.column,_.range[0]-_.loc.start.column+L+K];e.report({node:_,loc:J,messageId:"expected",data:i(X,L,K),fix:Z=>Z.replaceTextRange(ke,ae)})}function d(_,X){const L=X?r.getLastToken(_):r.getFirstToken(_),K=r.getText(L,L.loc.start.column).split(""),J=K.slice(0,K.findIndex(ke=>ke!==" "&&ke!==" ")),ge=J.filter(ke=>ke===" ").length,ae=J.filter(ke=>ke===" ").length;return{space:ge,tab:ae,goodChar:l==="space"?ge:ae,badChar:l==="space"?ae:ge}}function s(_,X){const L=X===!0?r.getLastToken(_,1):r.getTokenBefore(_),K=X===!0?_.loc.end.line:_.loc.start.line,J=L?L.loc.end.line:-1;return K!==J}function p(_,X){const L=d(_,!1);if(_.type!=="ArrayExpression"&&_.type!=="ObjectExpression"&&(L.goodChar!==X||L.badChar!==0)&&s(_)&&c(_,X,L.space,L.tab),_.type==="IfStatement"&&_.alternate){const K=r.getTokenBefore(_.alternate);p(K,X),s(_.alternate)||p(_.alternate,X)}if(_.type==="TryStatement"&&_.handler){const K=r.getFirstToken(_.handler);p(K,X)}if(_.type==="TryStatement"&&_.finalizer){const K=r.getTokenBefore(_.finalizer);p(K,X)}if(_.type==="DoWhileStatement"){const K=r.getTokenAfter(_.body);p(K,X)}}function h(_,X){_.forEach(L=>p(L,X))}function g(_,X){const L=r.getLastToken(_),K=d(L,!0);(K.goodChar!==X||K.badChar!==0)&&s(_,!0)&&c(_,X,K.space,K.tab,{line:L.loc.start.line,column:L.loc.start.column},!0)}function v(_,X){const L=r.getLastToken(_,a.isClosingParenToken);if(r.getText(L,L.loc.start.column).slice(0,-1).trim())return;const J=d(L,!0);J.goodChar!==X&&c(_,X,J.space,J.tab,{line:L.loc.start.line,column:L.loc.start.column},!0)}function E(_,X){const L=d(_,!1);(L.goodChar!==X||L.badChar!==0)&&s(_)&&c(_,X,L.space,L.tab,{line:_.loc.start.line,column:_.loc.start.column})}function b(_,X,L){let K=_.parent;const J=new Set(L||["Program"]);for(;K.type!==X&&!J.has(K.type)&&K.type!=="Program";)K=K.parent;return K.type===X?K:null}function T(_){return b(_,"VariableDeclarator")}function C(_,X){return X&&X.parent.loc.start.line===_.loc.start.line&&X.parent.declarations.length>1}function S(_){const X=_.parent;return X.arguments.length>=2&&X.arguments[1]===_?X.arguments[0].loc.end.line>X.arguments[0].loc.start.line:!1}function w(_){const X=_.parent;let L=X.parent;if(X.type!=="CallExpression"||X.callee!==_)return!1;for(;L.type==="UnaryExpression"&&(L.operator==="!"||L.operator==="~"||L.operator==="+"||L.operator==="-")||L.type==="AssignmentExpression"||L.type==="LogicalExpression"||L.type==="SequenceExpression"||L.type==="VariableDeclarator";)L=L.parent;return(L.type==="ExpressionStatement"||L.type==="VariableDeclaration")&&L.parent&&L.parent.type==="Program"}function x(_){const X=_.parent;let L;if(X.parent&&(X.parent.type==="Property"||X.parent.type==="ArrayExpression")?L=d(X,!1).goodChar:L=d(X).goodChar,X.parent.type==="CallExpression"){const ge=X.parent;X.type!=="FunctionExpression"&&X.type!=="ArrowFunctionExpression"?ge&&ge.loc.start.line<_.loc.start.line&&(L=d(ge).goodChar):S(X)&&ge.callee.loc.start.line===ge.callee.loc.end.line&&!s(X)&&(L=d(ge).goodChar)}let K=f;u.outerIIFEBody!==null&&w(X)?K=u.outerIIFEBody*f:X.type==="FunctionExpression"?K=u.FunctionExpression.body*f:X.type==="FunctionDeclaration"&&(K=u.FunctionDeclaration.body*f),L+=K;const J=T(_);J&&C(_,J)&&(L+=f*u.VariableDeclarator[J.parent.kind]),_.body.length>0&&h(_.body,L),g(_,L-K)}function A(_){const X=r.getLastToken(_),L=_.loc.start.line,K=X.loc.end.line;return L===K}function k(_){if(A(_))return;let X=_.type==="ArrayExpression"?_.elements:_.properties;X=X.filter(ge=>ge!==null);let L,K;const J=T(_);if(s(_)){const ge=_.parent;if(L=d(ge).goodChar,(!J||J.loc.start.line!==_.loc.start.line)&&(ge.type!=="VariableDeclarator"||J===J.parent.declarations[0]))if(ge.type==="VariableDeclarator"&&J.loc.start.line===ge.loc.start.line)L+=f*u.VariableDeclarator[J.parent.kind];else if(ge.type==="ObjectExpression"||ge.type==="ArrayExpression"){const ae=_.parent.type==="ObjectExpression"?_.parent.properties:_.parent.elements;ae[0]&&ae[0].loc.start.line===ge.loc.start.line&&ae[0].loc.end.line!==ge.loc.start.line||(typeof u[ge.type]=="number"?L+=u[ge.type]*f:L=ae[0].loc.start.column)}else ge.type==="CallExpression"||ge.type==="NewExpression"?typeof u.CallExpression.arguments=="number"?L+=u.CallExpression.arguments*f:u.CallExpression.arguments==="first"?ge.arguments.includes(_)&&(L=ge.arguments[0].loc.start.column):L+=f:(ge.type==="LogicalExpression"||ge.type==="ArrowFunctionExpression")&&(L+=f);E(_,L)}else L=d(_).goodChar;u[_.type]==="first"?K=X.length?X[0].loc.start.column:0:K=L+f*u[_.type],C(_,J)&&(K+=f*u.VariableDeclarator[J.parent.kind]),h(X,K),!(X.length>0&&X.at(-1).loc.end.line===_.loc.end.line)&&g(_,L+(C(_,J)?u.VariableDeclarator[J.parent.kind]*f:0))}function R(_){return _.type==="BlockStatement"||_.type==="ClassBody"||_.body&&_.body.type==="BlockStatement"||_.consequent&&_.consequent.type==="BlockStatement"}function I(_){if(A(_))return;if(_.parent&&(_.parent.type==="FunctionExpression"||_.parent.type==="FunctionDeclaration"||_.parent.type==="ArrowFunctionExpression")){x(_);return}let X,L;const K=["IfStatement","WhileStatement","ForStatement","ForInStatement","ForOfStatement","DoWhileStatement","ClassDeclaration","TryStatement"];_.parent&&K.includes(_.parent.type)&&R(_)?X=d(_.parent).goodChar:_.parent&&_.parent.type==="CatchClause"?X=d(_.parent.parent).goodChar:X=d(_).goodChar,_.type==="IfStatement"&&_.consequent.type!=="BlockStatement"?L=[_.consequent]:Array.isArray(_.body)?L=_.body:L=[_.body],L.length>0&&h(L,X+f),_.type==="BlockStatement"&&g(_,X)}function B(_){return _.declarations.reduce((X,L)=>{const K=X.at(-1);return(L.loc.start.line!==_.loc.start.line&&!K||K&&K.loc.start.line!==L.loc.start.line)&&X.push(L),X},[])}function F(_){const X=B(_),L=d(_).goodChar,K=X.at(-1),J=L+f*u.VariableDeclarator[_.kind];if(h(X,J),r.getLastToken(_).loc.end.line<=K.loc.end.line)return;const ge=r.getTokenBefore(K);ge.value===","?g(_,d(ge).goodChar):g(_,J-f)}function O(_){_.body.type!=="BlockStatement"&&I(_)}function $(_,X){const L=_.type==="SwitchStatement"?_:_.parent,K=typeof X>"u"?d(L).goodChar:X;let J;return m[L.loc.start.line]?m[L.loc.start.line]:(L.cases.length>0&&u.SwitchCase===0?J=K:J=K+f*u.SwitchCase,m[L.loc.start.line]=J,J)}function N(_){const X=/^return\s*\(\s*\)/u,L=r.getText(_).replace(r.getText(_.argument),"");return X.test(L)}return{Program(_){_.body.length>0&&h(_.body,d(_).goodChar)},ClassBody:I,BlockStatement:I,WhileStatement:O,ForStatement:O,ForInStatement:O,ForOfStatement:O,DoWhileStatement:O,IfStatement(_){_.consequent.type!=="BlockStatement"&&_.consequent.loc.start.line>_.loc.start.line&&I(_)},VariableDeclaration(_){_.declarations.at(-1).loc.start.line>_.declarations[0].loc.start.line&&F(_)},ObjectExpression(_){k(_)},ArrayExpression(_){k(_)},MemberExpression(_){if(typeof u.MemberExpression>"u"||A(_)||b(_,"VariableDeclarator",["FunctionExpression","ArrowFunctionExpression"])||b(_,"AssignmentExpression",["FunctionExpression"]))return;const X=d(_).goodChar+f*u.MemberExpression,L=[_.property],K=r.getTokenBefore(_.property);K.type==="Punctuator"&&K.value==="."&&L.push(K),h(L,X)},SwitchStatement(_){const X=d(_).goodChar,L=$(_,X);h(_.cases,L),g(_,X)},SwitchCase(_){if(A(_))return;const X=$(_);h(_.consequent,X+f)},FunctionDeclaration(_){A(_)||(u.FunctionDeclaration.parameters==="first"&&_.params.length?h(_.params.slice(1),_.params[0].loc.start.column):u.FunctionDeclaration.parameters!==null&&h(_.params,d(_).goodChar+f*u.FunctionDeclaration.parameters))},FunctionExpression(_){A(_)||(u.FunctionExpression.parameters==="first"&&_.params.length?h(_.params.slice(1),_.params[0].loc.start.column):u.FunctionExpression.parameters!==null&&h(_.params,d(_).goodChar+f*u.FunctionExpression.parameters))},ReturnStatement(_){if(A(_))return;const X=d(_).goodChar;N(_)?v(_,X):p(_,X)},CallExpression(_){A(_)||(u.CallExpression.arguments==="first"&&_.arguments.length?h(_.arguments.slice(1),_.arguments[0].loc.start.column):u.CallExpression.arguments!==null&&h(_.arguments,d(_).goodChar+f*u.CallExpression.arguments))}}}},co}var fo,Jg;function vA(){if(Jg)return fo;Jg=1;const a=new Set(["const","using","await using"]);function e(o){return o.type==="ForInStatement"||o.type==="ForOfStatement"||o.type==="ForStatement"}function n(o){const t=o.parent,l=t.parent;return e(l)?l.type==="ForStatement"?l.init===t:l.left===t:!!o.init}return fo={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Require or disallow initialization in variable declarations",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}]},messages:{initialized:"Variable '{{idName}}' should be initialized on declaration.",notInitialized:"Variable '{{idName}}' should not be initialized on declaration."}},create(o){const t="always",l="never",f=o.options[0]||t,u=o.options[1]||{};let r=!1;return{TSModuleDeclaration(m){m.declare&&(r=!0)},"TSModuleDeclaration:exit"(m){m.declare&&(r=!1)},"VariableDeclaration:exit"(m){const i=m.kind,c=m.declarations;if(!(m.declare||r))for(let d=0;d<c.length;++d){const s=c[d],p=s.id,h=n(s),g=u.ignoreForLoopInit&&e(m.parent);let v="";f===t&&!h?v="initialized":f===l&&!a.has(i)&&h&&!g&&(v="notInitialized"),p.type==="Identifier"&&v&&o.report({node:s,messageId:v,data:{idName:p.name}})}}}}},fo}var po,Yg;function SA(){if(Yg)return po;Yg=1;const a=Le(),e={"prefer-double":{quote:'"',description:"singlequote",convert(n){return n.replace(/'/gu,'"')}},"prefer-single":{quote:"'",description:"doublequote",convert(n){return n.replace(/"/gu,"'")}}};return po={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(n){const o=n.options[0]||"prefer-double",t=e[o];function l(f){return f.value.includes(t.quote)||a.isSurroundedBy(f.raw,t.quote)}return{JSXAttribute(f){const u=f.value;u&&a.isStringLiteral(u)&&!l(u)&&n.report({node:u,messageId:"unexpected",data:{description:t.description},fix(r){return r.replaceText(u,t.convert(u.raw))}})}}}},po}var mo,Qg;function EA(){if(Qg)return mo;Qg=1;const a=Le(),{getGraphemeCount:e}=Pr();function n(r){return a.LINEBREAK_MATCHER.test(r)}function o(r){return r.at(-1)}function t(r){return r.loc.end.line===r.loc.start.line}function l(r){const[m]=r,i=o(r);return m.loc.start.line===i.loc.end.line}function f(r,m){return r.mode=m.mode||"strict",typeof m.beforeColon<"u"?r.beforeColon=+m.beforeColon:r.beforeColon=0,typeof m.afterColon<"u"?r.afterColon=+m.afterColon:r.afterColon=1,typeof m.align<"u"&&(typeof m.align=="object"?r.align=m.align:r.align={on:m.align,mode:r.mode,beforeColon:r.beforeColon,afterColon:r.afterColon}),r}function u(r,m){return typeof m.align=="object"?(r.align=f({},m.align),r.align.on=m.align.on||"colon",r.align.mode=m.align.mode||"strict",r.multiLine=f({},m.multiLine||m),r.singleLine=f({},m.singleLine||m)):(r.multiLine=f({},m.multiLine||m),r.singleLine=f({},m.singleLine||m),r.multiLine.align&&(r.align={on:r.multiLine.align.on,mode:r.multiLine.align.mode||r.multiLine.mode,beforeColon:r.multiLine.align.beforeColon,afterColon:r.multiLine.align.afterColon})),r}return mo={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(r){const m=r.options[0]||{},i=u({},m),c=i.multiLine,d=i.singleLine,s=i.align||null,p=r.sourceCode;function h(B){return!(B.method||B.shorthand||B.kind!=="init"||B.type!=="Property")}function g(B){return p.getTokenAfter(B,a.isColonToken)}function v(B){const F=g(B);return p.getTokenBefore(F)}function E(B){const F=g(B);return p.getTokenAfter(F)}function b(B,F){const O=B.loc.start.line,$=(h(F)?E(F.key):F).loc.start.line;if($-O<=1)return!0;const N=p.getCommentsBefore(F);if(N.length&&N[0].loc.start.line-O<=1&&$-o(N).loc.end.line<=1){for(let _=1;_<N.length;_++)if(N[_].loc.start.line-N[_-1].loc.end.line>1)return!1;return!0}return!1}function T(B){const F=B.key;return B.computed?p.getText().slice(F.range[0],F.range[1]):a.getStaticPropertyName(B)}function C(B,F,O,$,N){const _=O.length-$;if((_&&N==="strict"||_<0&&N==="minimum"||_>0&&!$&&N==="minimum")&&!($&&n(O))){const X=g(B.key),L=p.getTokenBefore(X,{includeComments:!0}),K=p.getTokenAfter(X,{includeComments:!0}),J=F==="key",ge=_>0,ae=Math.abs(_),ke=Array(ae+1).join(" "),Z=J?L.loc.end:X.loc.start,P=J?X.loc.start:K.loc.start,H=J?L.loc:K.loc,fe=ge?{start:Z,end:P}:H;let ce;if(ge){let he;J?he=[L.range[1],L.range[1]+ae]:he=[K.range[0]-ae,K.range[0]],ce=function(Ee){return Ee.removeRange(he)}}else J?ce=function(he){return he.insertTextAfter(L,ke)}:ce=function(he){return he.insertTextBefore(K,ke)};let ie;ge?ie=F==="key"?"extraKey":"extraValue":ie=F==="key"?"missingKey":"missingValue",r.report({node:B[F],loc:fe,messageId:ie,data:{computed:B.computed?"computed ":"",key:T(B)},fix:ce})}}function S(B){const F=p.getFirstToken(B),O=v(B.key);return e(p.getText().slice(F.range[0],O.range[1]))}function w(B){const F=/(\s*):(\s*)/u.exec(p.getText().slice(B.key.range[1],B.value.range[0]));return F?{beforeColon:F[1],afterColon:F[2]}:null}function x(B){return B.properties.length===1?[B.properties]:B.properties.reduce((F,O)=>{const $=o(F),N=o($);return!N||b(N,O)?$.push(O):F.push([O]),F},[[]])}function A(B){const F=B.length,O=B.map(S),$=s.on;let N=Math.max(...O),_,X,L;s&&F>1?(_=s.beforeColon,X=s.afterColon,L=s.mode):(_=c.beforeColon,X=c.afterColon,L=s.mode),N+=$==="colon"?_:X;for(let K=0;K<F;K++){const J=B[K],ge=w(J);if(ge){const ae=O[K];$==="value"?(C(J,"key",ge.beforeColon,_,L),C(J,"value",ge.afterColon,N-ae,L)):(C(J,"key",ge.beforeColon,N-ae,L),C(J,"value",ge.afterColon,X,L))}}}function k(B,F){const O=w(B);O&&(C(B,"key",O.beforeColon,F.beforeColon,F.mode),C(B,"value",O.afterColon,F.afterColon,F.mode))}function R(B,F){const O=B.length;for(let $=0;$<O;$++)k(B[$],F)}function I(B){x(B).forEach(F=>{const O=F.filter(h);O.length>0&&l(O)?R(O,c):A(O)})}return s?{ObjectExpression(B){t(B)?R(B.properties.filter(h),d):I(B)}}:{Property(B){k(B,t(B.parent)?d:c)}}}},mo}var ho,Zg;function bA(){if(Zg)return ho;Zg=1;const a=Le(),e=qi(),n=/^[)\]}>]$/u,o=/^(?:[([{<~!]|\+\+?|--?)$/u,t=/^[)\]}>*]$/u,l=/^[{*]$/u,f=/\$\{$/u,u=/^\}/u,r=/^(?:JSXElement|RegularExpression|String|Template|PrivateIdentifier)$/u,m=e.concat(["as","async","await","from","get","let","of","set","yield"]);(function(){m.sort();for(let d=1;d<m.length;++d)if(m[d]===m[d-1])throw new Error(`Duplication was found in the keyword list: ${m[d]}`)})();function i(d){return d.type==="Template"&&f.test(d.value)}function c(d){return d.type==="Template"&&u.test(d.value)}return ho={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:m.reduce((d,s)=>(d[s]={type:"object",properties:{before:{type:"boolean"},after:{type:"boolean"}},additionalProperties:!1},d),{}),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(d){const s=d.sourceCode,p=new WeakSet;function h(ae,ke){const Z=s.getTokenBefore(ae);Z&&(r.test(Z.type)||ke.test(Z.value))&&!i(Z)&&!p.has(Z)&&a.isTokenOnSameLine(Z,ae)&&!s.isSpaceBetweenTokens(Z,ae)&&d.report({loc:ae.loc,messageId:"expectedBefore",data:ae,fix(P){return P.insertTextBefore(ae," ")}})}function g(ae,ke){const Z=s.getTokenBefore(ae);Z&&(r.test(Z.type)||ke.test(Z.value))&&!i(Z)&&!p.has(Z)&&a.isTokenOnSameLine(Z,ae)&&s.isSpaceBetweenTokens(Z,ae)&&d.report({loc:{start:Z.loc.end,end:ae.loc.start},messageId:"unexpectedBefore",data:ae,fix(P){return P.removeRange([Z.range[1],ae.range[0]])}})}function v(ae,ke){const Z=s.getTokenAfter(ae);Z&&(r.test(Z.type)||ke.test(Z.value))&&!c(Z)&&!p.has(Z)&&a.isTokenOnSameLine(ae,Z)&&!s.isSpaceBetweenTokens(ae,Z)&&d.report({loc:ae.loc,messageId:"expectedAfter",data:ae,fix(P){return P.insertTextAfter(ae," ")}})}function E(ae,ke){const Z=s.getTokenAfter(ae);Z&&(r.test(Z.type)||ke.test(Z.value))&&!c(Z)&&!p.has(Z)&&a.isTokenOnSameLine(ae,Z)&&s.isSpaceBetweenTokens(ae,Z)&&d.report({loc:{start:ae.loc.end,end:Z.loc.start},messageId:"unexpectedAfter",data:ae,fix(P){return P.removeRange([ae.range[1],Z.range[0]])}})}function b(ae={}){const ke=ae.before!==!1,Z=ae.after!==!1,P={before:ke?h:g,after:Z?v:E},H=ae&&ae.overrides||{},fe=Object.create(null);for(let ce=0;ce<m.length;++ce){const ie=m[ce],he=H[ie];if(he){const Ee="before"in he?he.before:ke,Ce="after"in he?he.after:Z;fe[ie]={before:Ee?h:g,after:Ce?v:E}}else fe[ie]=P}return fe}const T=b(d.options[0]);function C(ae,ke){T[ae.value].before(ae,ke||n)}function S(ae,ke){T[ae.value].after(ae,ke||o)}function w(ae){C(ae),S(ae)}function x(ae){const ke=ae&&s.getFirstToken(ae);ke&&ke.type==="Keyword"&&w(ke)}function A(ae){const ke=ae&&s.getFirstToken(ae);ke&&ke.type==="Keyword"&&C(ke)}function k(ae){if(ae){const ke=s.getTokenBefore(ae,a.isKeywordToken);w(ke)}}function R(ae){const ke=ae&&s.getFirstToken(ae);ke&&(ke.type==="Keyword"&&ke.value==="function"||ke.value==="async")&&C(ke)}function I(ae){x(ae),k(ae.superClass)}function B(ae){x(ae),k(ae.alternate)}function F(ae){x(ae),x(ae.handler),k(ae.finalizer)}function O(ae){x(ae),k(ae.test)}function $(ae){x(ae);const ke=s.getTokenBefore(ae.right,a.isNotOpeningParenToken);s.getTokenBefore(ke).type!=="PrivateIdentifier"&&C(ke),S(ke)}function N(ae){ae.await?(C(s.getFirstToken(ae,0)),S(s.getFirstToken(ae,1))):x(ae);const ke=s.getTokenBefore(ae.right,a.isNotOpeningParenToken);s.getTokenBefore(ke).type!=="PrivateIdentifier"&&C(ke),S(ke)}function _(ae){const ke=s.getFirstToken(ae);if(C(ke,t),S(ke,l),ae.type==="ExportDefaultDeclaration"&&w(s.getTokenAfter(ke)),ae.type==="ExportAllDeclaration"&&ae.exported){const Z=s.getTokenBefore(ae.exported);C(Z,t),S(Z,l)}if(ae.source){const Z=s.getTokenBefore(ae.source);C(Z,t),S(Z,l)}}function X(ae){if(ae.imported.range[0]!==ae.local.range[0]){const ke=s.getTokenBefore(ae.local);C(ke,t)}}function L(ae){if(ae.local.range[0]!==ae.exported.range[0]){const ke=s.getTokenBefore(ae.exported);C(ke,t),S(ke,l)}}function K(ae){const ke=s.getFirstToken(ae,1);C(ke,t)}function J(ae){if(ae.static&&x(ae),ae.kind==="get"||ae.kind==="set"||(ae.method||ae.type==="MethodDefinition")&&ae.value.async){const ke=s.getTokenBefore(ae.key,Z=>{switch(Z.value){case"get":case"set":case"async":return!0;default:return!1}});if(!ke)throw new Error("Failed to find token get, set, or async beside method name");w(ke)}}function ge(ae){C(s.getFirstToken(ae))}return{DebuggerStatement:x,WithStatement:x,BreakStatement:x,ContinueStatement:x,ReturnStatement:x,ThrowStatement:x,TryStatement:F,IfStatement:B,SwitchStatement:x,SwitchCase:x,DoWhileStatement:O,ForInStatement:$,ForOfStatement:N,ForStatement:x,WhileStatement:x,ClassDeclaration:I,ExportNamedDeclaration:_,ExportDefaultDeclaration:_,ExportAllDeclaration:_,FunctionDeclaration:R,ImportDeclaration:_,VariableDeclaration:x,ArrowFunctionExpression:R,AwaitExpression:ge,ClassExpression:I,FunctionExpression:R,NewExpression:A,Super:A,ThisExpression:A,UnaryExpression:A,YieldExpression:A,ImportSpecifier:X,ExportSpecifier:L,ImportNamespaceSpecifier:K,MethodDefinition:J,PropertyDefinition:J,StaticBlock:x,Property:J,"BinaryExpression[operator='>']"(ae){const ke=s.getTokenBefore(ae.right,a.isNotOpeningParenToken);p.add(ke)}}}},ho}var go,ey;function CA(){if(ey)return go;ey=1;const a=Le();return go={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(e){const n=e.options[0];let o,t,l=!0;!n||typeof n=="string"?o=!n||n==="above":(o=!n.position||n.position==="above",t=n.ignorePattern,Object.hasOwn(n,"applyDefaultIgnorePatterns")?l=n.applyDefaultIgnorePatterns:l=n.applyDefaultPatterns!==!1);const f=a.COMMENTS_IGNORE_PATTERN,u=/^\s*falls?\s?through/u,r=new RegExp(t,"u"),m=e.sourceCode;return{Program(){m.getAllComments().filter(c=>c.type==="Line").forEach(c=>{if(l&&(f.test(c.value)||u.test(c.value))||t&&r.test(c.value))return;const d=m.getTokenBefore(c,{includeComments:!0}),s=d&&d.loc.end.line===c.loc.start.line;o?s&&e.report({node:c,messageId:"above"}):s||e.report({node:c,messageId:"beside"})})}}}},go}var yo,ty;function xA(){if(ty)return yo;ty=1;const a=Le();return yo={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(e){const n=e.sourceCode;function o(t,l){return function(f){return f.replaceTextRange(t,l)}}return{Program:function(l){const f=e.options[0]||"unix",u=f==="unix",r=u?`
|
|
68
|
+
`:`\r
|
|
69
|
+
`,m=n.getText(),i=a.createGlobalLinebreakMatcher();let c,d=0;for(;(c=i.exec(m))!==null;){if(d++,c[0]===r)continue;const s=c.index,p=[s,s+c[0].length];e.report({node:l,loc:{start:{line:d,column:n.lines[d-1].length},end:{line:d+1,column:0}},messageId:u?"expectedLF":"expectedCRLF",fix:o(p,r)})}}}}},yo}var vo,ry;function wA(){if(ry)return vo;ry=1;const a=Le();function e(o){return o.map((l,f)=>({code:l.trim(),num:f+1})).filter(l=>!l.code).map(l=>l.num)}function n(o){const t=[];return o.forEach(l=>{const f=l.loc.start.line,u=l.loc.end.line;t.push(f,u)}),t}return vo={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(o){const t=Object.assign({},o.options[0]),l=t.ignorePattern,f=a.COMMENTS_IGNORE_PATTERN,u=new RegExp(l,"u"),r=t.applyDefaultIgnorePatterns!==!1;t.beforeBlockComment=typeof t.beforeBlockComment<"u"?t.beforeBlockComment:!0;const m=o.sourceCode,i=m.lines,c=i.length+1,d=m.getAllComments(),s=n(d),p=e(i),h=new Set(s.concat(p));function g(F){let O=F;do O=m.getTokenBefore(O,{includeComments:!0});while(O&&a.isCommentToken(O));if(O&&a.isTokenOnSameLine(O,F))return!0;O=F;do O=m.getTokenAfter(O,{includeComments:!0});while(O&&a.isCommentToken(O));return!!(O&&a.isTokenOnSameLine(F,O))}function v(F,O){return F.type===O||F.body&&F.body.type===O||F.consequent&&F.consequent.type===O}function E(F){const O=m.getNodeByRangeIndex(F.range[0]);if(O&&O.type==="StaticBlock"){const $=m.getFirstToken(O,{skip:1});return F.range[0]>=$.range[0]?O:null}return O}function b(F,O){const $=E(F);if($&&v($,O)){let N=$;return $.type==="StaticBlock"?N=m.getFirstToken($,{skip:1}):$.type==="SwitchStatement"&&(N=m.getTokenAfter($.discriminant,{filter:a.isOpeningBraceToken})),F.loc.start.line-N.loc.start.line===1}return!1}function T(F,O){const $=E(F);return!!$&&v($,O)&&$.loc.end.line-F.loc.end.line===1}function C(F){return b(F,"ClassBody")||b(F,"BlockStatement")||b(F,"StaticBlock")||b(F,"SwitchCase")||b(F,"SwitchStatement")}function S(F){return T(F,"ClassBody")||T(F,"BlockStatement")||T(F,"StaticBlock")||T(F,"SwitchCase")||T(F,"SwitchStatement")}function w(F){return b(F,"ClassBody")}function x(F){return T(F,"ClassBody")}function A(F){return b(F,"ObjectExpression")||b(F,"ObjectPattern")}function k(F){return T(F,"ObjectExpression")||T(F,"ObjectPattern")}function R(F){return b(F,"ArrayExpression")||b(F,"ArrayPattern")}function I(F){return T(F,"ArrayExpression")||T(F,"ArrayPattern")}function B(F,O){if(r&&f.test(F.value)||l&&u.test(F.value))return;let $=O.after,N=O.before;const _=F.loc.start.line-1,X=F.loc.end.line+1,L=g(F),K=t.allowBlockStart&&C(F)&&!(t.allowClassStart===!1&&w(F)),J=t.allowBlockEnd&&S(F)&&!(t.allowClassEnd===!1&&x(F)),ge=t.allowClassStart&&w(F),ae=t.allowClassEnd&&x(F),ke=t.allowObjectStart&&A(F),Z=t.allowObjectEnd&&k(F),P=t.allowArrayStart&&R(F),H=t.allowArrayEnd&&I(F),fe=K||ge||ke||P,ce=J||ae||Z||H;if(_<1&&(N=!1),X>=c&&($=!1),L)return;const ie=m.getTokenBefore(F,{includeComments:!0}),he=m.getTokenAfter(F,{includeComments:!0});if(!fe&&N&&!h.has(_)&&!(a.isCommentToken(ie)&&a.isTokenOnSameLine(ie,F))){const Ee=F.range[0]-F.loc.start.column,Ce=[Ee,Ee];o.report({node:F,messageId:"before",fix(Ae){return Ae.insertTextBeforeRange(Ce,`
|
|
70
|
+
`)}})}!ce&&$&&!h.has(X)&&!(a.isCommentToken(he)&&a.isTokenOnSameLine(F,he))&&o.report({node:F,messageId:"after",fix(Ee){return Ee.insertTextAfter(F,`
|
|
71
|
+
`)}})}return{Program(){d.forEach(F=>{F.type==="Line"?(t.beforeLineComment||t.afterLineComment)&&B(F,{after:t.afterLineComment,before:t.beforeLineComment}):F.type==="Block"?(t.beforeBlockComment||t.afterBlockComment)&&B(F,{after:t.afterBlockComment,before:t.beforeBlockComment}):F.type==="Shebang"&&t.afterHashbangComment&&B(F,{after:t.afterHashbangComment,before:!1})})}}}},vo}var So,ny;function AA(){if(ny)return So;ny=1;const a=Le();return So={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(e){const n=e.sourceCode,o=e.options[0]||"always",t=typeof o=="string"?o:o.before,l=typeof o=="string"?o:o.after;function f(c){const d=n.getTokenBefore(c,{includeComments:!0}),s=d?d.loc.end.line:0;return c.loc.start.line-s>=2}function u(c){const d=n.getLastToken(c),s=n.getTokenBefore(d);return a.isSemicolonToken(d)&&d.loc.start.line>s.loc.end.line?s:d}function r(c){const d=u(c);return n.getTokenAfter(d,{includeComments:!0}).loc.start.line-d.loc.end.line>=2}function m(c,d,s){e.report({node:c,messageId:s?"expected":"unexpected",data:{value:c.expression.value,location:d},fix(p){const h=u(c);return s?d==="before"?p.insertTextBefore(c,`
|
|
72
|
+
`):p.insertTextAfter(h,`
|
|
73
|
+
`):p.removeRange(d==="before"?[c.range[0]-1,c.range[0]]:[h.range[1],h.range[1]+1])}})}function i(c){const d=a.getDirectivePrologue(c);if(!d.length)return;const s=d[0],p=n.getCommentsBefore(s);p.length?(t==="always"&&!f(s)&&m(s,"before",!0),t==="never"&&f(s)&&m(s,"before",!1)):c.type==="Program"&&t==="never"&&!p.length&&f(s)&&m(s,"before",!1);const h=d.at(-1),g=c.type==="Program"?c.body:c.body.body;h===g.at(-1)&&!h.trailingComments||(l==="always"&&!r(h)&&m(h,"after",!0),l==="never"&&r(h)&&m(h,"after",!1))}return{Program:i,FunctionDeclaration:i,FunctionExpression:i,ArrowFunctionExpression:i}}},So}var Eo,sy;function TA(){if(sy)return Eo;sy=1;const a=Le(),e={"*":{test:()=>!0},field:{test:n=>n.type==="PropertyDefinition"},method:{test:n=>n.type==="MethodDefinition"}};return Eo={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(n){const o=[];o[0]=n.options[0]||"always",o[1]=n.options[1]||{exceptAfterSingleLine:!1};const t=typeof o[0]=="object"?o[0].enforce:[{blankLine:o[0],prev:"*",next:"*"}],l=n.sourceCode;function f(d,s){const p=l.getLastToken(d),h=l.getTokenBefore(p),g=l.getFirstToken(s);return a.isSemicolonToken(p)&&!a.isTokenOnSameLine(h,p)&&a.isTokenOnSameLine(p,g)?{curLast:h,nextFirst:p}:{curLast:p,nextFirst:g}}function u(d,s,p){const h=l.getTokenAfter(d,{includeComments:!0});return h!==s&&h.loc.start.line-d.loc.end.line<=p?u(h,s,p):d}function r(d,s,p){const h=l.getTokenBefore(d,{includeComments:!0});return h!==s&&d.loc.start.line-h.loc.end.line<=p?r(h,s,p):d}function m(d,s){return l.getTokensBetween(d,s,{includeComments:!0}).length!==0}function i(d,s){return e[s].test(d)}function c(d,s){for(let p=t.length-1;p>=0;--p){const h=t[p];if(i(d,h.prev)&&i(s,h.next))return h.blankLine}return null}return{ClassBody(d){const s=d.body;for(let p=0;p<s.length-1;p++){const h=l.getFirstToken(s[p]),{curLast:g,nextFirst:v}=f(s[p],s[p+1]),b=!!a.isTokenOnSameLine(h,g)&&o[1].exceptAfterSingleLine,T=u(g,v,1),C=r(v,g,1),S=C.loc.start.line-T.loc.end.line>1,w=m(T,C),x=u(g,v,0),A=c(s[p],s[p+1]);A==="never"&&S?n.report({node:s[p+1],messageId:"never",fix(k){return w?null:k.replaceTextRange([T.range[1],C.range[0]],`
|
|
74
|
+
`)}}):A==="always"&&!b&&!S&&n.report({node:s[p+1],messageId:"always",fix(k){return w?null:k.insertTextAfter(x,`
|
|
75
|
+
`)}})}}}}},Eo}var bo,ay;function kA(){if(ay)return bo;ay=1;const a=Le(),e=new Set(["Identifier","Super","ThisExpression"]);function n(c,d){return c.type==="Identifier"&&c.name==="undefined"?a.isReferenceToGlobalVariable(d,c):c.type==="UnaryExpression"&&c.operator==="void"&&c.argument.type==="Literal"&&c.argument.value===0}function o(c){return c.type==="Identifier"&&c.name!=="undefined"||c.type==="MemberExpression"}function t(c,d){if(c.type!=="BinaryExpression"||c.operator!=="==")return!1;const s=o(c.left)?"left":"right",p=s==="left"?"right":"left";return o(c[s])&&(a.isNullLiteral(c[p])||n(c[p],d))}function l(c){return c.type==="LogicalExpression"&&c.operator==="||"&&c.left.type==="BinaryExpression"&&c.left.operator==="==="&&c.right.type==="BinaryExpression"&&c.right.operator==="==="}function f(c,d){if(!l(c))return!1;const s=o(c.left.left)?"left":"right",p=s==="left"?"right":"left",h=o(c.right.left)?"left":"right",g=h==="left"?"right":"left";return a.isSameReference(c.left[s],c.right[h])&&(a.isNullLiteral(c.left[p])&&n(c.right[g],d)||n(c.left[p],d)&&a.isNullLiteral(c.right[g]))}function u(c,d){return c.type==="CallExpression"&&c.callee.name==="Boolean"&&c.arguments.length===1&&a.isReferenceToGlobalVariable(d,c.callee)}function r(c,d){const s=c.type==="UnaryExpression"&&c.operator==="!",p=s?c.argument:c;switch(!0){case o(p):return{reference:p,operator:s?"||":"&&"};case(p.type==="UnaryExpression"&&p.operator==="!"&&o(p.argument)):return{reference:p.argument,operator:"&&"};case(u(p,d)&&o(p.arguments[0])):return{reference:p.arguments[0],operator:s?"||":"&&"};case t(c,d):return{reference:o(c.left)?c.left:c.right,operator:"??"};case f(c,d):return{reference:o(c.left.left)?c.left.left:c.left.right,operator:"??"};default:return null}}function m(c){return c.type==="Program"?!1:c.parent.type==="WithStatement"&&c.parent.body===c?!0:m(c.parent)}function i(c,d){let s=d.left;for(;s.type==="LogicalExpression"&&s.operator===d.operator;){if(a.isParenthesised(c,s))return s;s=s.left}return s}return bo={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}]},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(c){const d=c.options[0]==="never"?"never":"always",s=d==="always"&&c.options.length>1&&c.options[1].enforceForIfStatements,p=c.sourceCode,h=p.getScope(p.ast).isStrict;function g(T){return T.type==="Identifier"&&(h||!m(T))}function v(T){return!h&&m(T)?T.type==="Identifier":T.type==="MemberExpression"&&e.has(T.object.type)&&(!T.computed||T.property.type!=="MemberExpression"&&T.property.type!=="ChainExpression")}function E(T,C,S){return S?{...T,fix:C.fix}:{...T,suggest:[C]}}function b(T){return p.getFirstTokenBetween(T.left,T.right,C=>C.value===T.operator)}return d==="never"?{AssignmentExpression(T){if(!a.isLogicalAssignmentOperator(T.operator))return;const C={messageId:"unexpected",node:T,data:{operator:T.operator}},S={messageId:"separate",*fix(w){if(p.getCommentsInside(T).length>0)return;const x=b(T);yield w.replaceText(x,"=");const A=p.getText(T.left),k=T.operator.slice(0,-1);yield w.insertTextAfter(x,` ${A} ${k}`);const R=a.getPrecedence(T.right)<=a.getPrecedence({type:"LogicalExpression",operator:k}),I=T.operator==="??="&&a.isLogicalExpression(T.right);!a.isParenthesised(p,T.right)&&(R||I)&&(yield w.insertTextBefore(T.right,"("),yield w.insertTextAfter(T.right,")"))}};c.report(E(C,S,g(T.left)))}}:{"AssignmentExpression[operator='='][right.type='LogicalExpression']"(T){const C=i(p,T.right);if(!a.isSameReference(T.left,C))return;const S={messageId:"assignment",node:T,data:{operator:`${T.right.operator}=`}},w={messageId:"useLogicalOperator",data:{operator:`${T.right.operator}=`},*fix(x){if(p.getCommentsInside(T).length>0)return;const A=b(T);yield x.insertTextBefore(A,T.right.operator);const k=b(C.parent),R=p.getTokenAfter(k);yield x.removeRange([C.parent.range[0],R.range[0]])}};c.report(E(S,w,g(T.left)))},'LogicalExpression[right.type="AssignmentExpression"][right.operator="="]'(T){if(o(T.left)&&a.isSameReference(T.left,T.right.left)){const C={messageId:"logical",node:T,data:{operator:`${T.operator}=`}},S={messageId:"convertLogical",data:{operator:`${T.operator}=`},*fix(x){if(p.getCommentsInside(T).length>0)return;const A=a.getPrecedence(T.parent),k=T.parent.type!=="ExpressionStatement"&&(A===-1||a.getPrecedence({type:"AssignmentExpression"})<A);!a.isParenthesised(p,T)&&k&&(yield x.insertTextBefore(T,"("),yield x.insertTextAfter(T,")")),yield x.removeRange([T.range[0],T.right.range[0]]),yield x.removeRange([T.right.range[1],T.range[1]]);const R=b(T.right);yield x.insertTextBefore(R,T.operator)}},w=g(T.left)||v(T.left);c.report(E(C,S,w))}},"IfStatement[alternate=null]"(T){if(!s)return;const C=T.consequent.type==="BlockStatement";if(C&&T.consequent.body.length!==1)return;const S=C?T.consequent.body[0]:T.consequent,w=p.getScope(T),x=r(T.test,w);if(S.type==="ExpressionStatement"&&S.expression.type==="AssignmentExpression"&&S.expression.operator==="="&&x!==null&&a.isSameReference(x.reference,S.expression.left)){const A={messageId:"if",node:T,data:{operator:`${x.operator}=`}},k={messageId:"convertIf",data:{operator:`${x.operator}=`},*fix(I){if(p.getCommentsInside(T).length>0)return;const B=p.getFirstToken(S),F=p.getTokenBefore(T);if(F!==null&&F.value!==";"&&F.value!=="{"&&B.type!=="Identifier"&&B.type!=="Keyword")return;const O=b(S.expression);yield I.insertTextBefore(O,x.operator),yield I.removeRange([T.range[0],S.range[0]]),yield I.removeRange([S.range[1],T.range[1]]);const $=p.getTokenAfter(S.expression);C&&$!==null&&$.value!==";"&&(yield I.insertTextAfter(T,";"))}},R=g(x.reference)||T.test.type!=="LogicalExpression"&&v(x.reference);c.report(E(A,k,R))}}}}},bo}var Co,iy;function DA(){return iy||(iy=1,Co={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}]}],messages:{maximumExceeded:"File has too many classes ({{ classCount }}). Maximum allowed is {{ max }}."}},create(a){const[e={}]=a.options,[n,o]=typeof e=="number"?[!1,e||1]:[e.ignoreExpressions,e.max||1];let t=0;return{Program(){t=0},"Program:exit"(l){t>o&&a.report({node:l,messageId:"maximumExceeded",data:{classCount:t,max:o}})},ClassDeclaration(){t++},ClassExpression(){n||t++}}}}),Co}var xo,oy;function PA(){return oy||(oy=1,xo={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}]}],messages:{tooDeeply:"Blocks are nested too deeply ({{depth}}). Maximum allowed is {{maxDepth}}."}},create(a){const e=[],n=a.options[0];let o=4;typeof n=="object"&&(Object.hasOwn(n,"maximum")||Object.hasOwn(n,"max"))&&(o=n.maximum||n.max),typeof n=="number"&&(o=n);function t(){e.push(0)}function l(){e.pop()}function f(r){const m=++e[e.length-1];m>o&&a.report({node:r,messageId:"tooDeeply",data:{depth:m,maxDepth:o}})}function u(){e[e.length-1]--}return{Program:t,FunctionDeclaration:t,FunctionExpression:t,ArrowFunctionExpression:t,StaticBlock:t,IfStatement(r){r.parent.type!=="IfStatement"&&f(r)},SwitchStatement:f,TryStatement:f,DoWhileStatement:f,WhileStatement:f,WithStatement:f,ForStatement:f,ForInStatement:f,ForOfStatement:f,"IfStatement:exit":u,"SwitchStatement:exit":u,"TryStatement:exit":u,"DoWhileStatement:exit":u,"WhileStatement:exit":u,"WithStatement:exit":u,"ForStatement:exit":u,"ForInStatement:exit":u,"ForOfStatement:exit":u,"FunctionDeclaration:exit":l,"FunctionExpression:exit":l,"ArrowFunctionExpression:exit":l,"StaticBlock:exit":l,"Program:exit":l}}}),xo}var wo,ly;function IA(){if(ly)return wo;ly=1;const a={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},e={anyOf:[a,{type:"integer",minimum:0}]};return wo={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:[e,e,a],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(n){const o=/[^:/?#]:\/\/[^?#]/u,t=n.sourceCode;function l(I,B){let F=0;return I.replace(/\t/gu,(O,$)=>{const N=$+F,_=B?N%B:0,X=B-_;F+=X-1}),Array.from(I).length+F}const f=Object.assign({},n.options.at(-1));typeof n.options[0]=="number"&&(f.code=n.options[0]),typeof n.options[1]=="number"&&(f.tabWidth=n.options[1]);const u=typeof f.code=="number"?f.code:80,r=typeof f.tabWidth=="number"?f.tabWidth:4,m=!!f.ignoreComments,i=!!f.ignoreStrings,c=!!f.ignoreTemplateLiterals,d=!!f.ignoreRegExpLiterals,s=!!f.ignoreTrailingComments||!!f.ignoreComments,p=!!f.ignoreUrls,h=f.comments;let g=f.ignorePattern||null;g&&(g=new RegExp(g,"u"));function v(I,B,F){return F&&F.loc.start.line===B&&B<=F.loc.end.line&&(F.loc.end.line>B||F.loc.end.column===I.length)}function E(I,B,F){const O=F.loc.start,$=F.loc.end,N=!I.slice(0,F.loc.start.column).trim();return F&&(O.line<B||O.line===B&&N)&&($.line>B||$.line===B&&$.column===I.length)}function b(I){if(!I||!I.parent||I.type!=="JSXEmptyExpression"||I.parent.type!=="JSXExpressionContainer")return!1;const B=I.parent;return B.loc.start.line===B.loc.end.line}function T(I,B){return I.slice(0,B.loc.start.column).replace(/\s+$/u,"")}function C(I,B,F){Array.isArray(I[B])||(I[B]=[]),I[B].push(F)}function S(){return t.ast.tokens.filter(I=>I.type==="String"||I.type==="JSXText"&&t.getNodeByRangeIndex(I.range[0]-1).type==="JSXAttribute")}function w(){return t.ast.tokens.filter(I=>I.type==="Template")}function x(){return t.ast.tokens.filter(I=>I.type==="RegularExpression")}function A(I){const B={};for(let F=0;F<I.length;F++){const O=I[F];for(let $=O.loc.start.line;$<=O.loc.end.line;++$)C(B,$,O)}return B}function k(){const I=[];return t.getAllComments().forEach(B=>{const F=t.getNodeByRangeIndex(B.range[0]);b(F)?I.at(-1)!==F.parent&&I.push(F.parent):I.push(B)}),I}function R(I){const B=t.lines,F=m||h||s?k():[];let O=0;const $=S(),N=A($),_=w(),X=A(_),L=x(),K=A(L);B.forEach((J,ge)=>{const ae=ge+1;let ke=!1,Z;if(O<F.length){let ce;do ce=F[++O];while(ce&&ce.loc.start.line<=ae);if(ce=F[--O],E(J,ae,ce))ke=!0,Z=J;else if(s&&v(J,ae,ce)){Z=T(J,ce);let ie=O;for(;v(Z,ae,F[--ie]);)Z=T(Z,F[ie])}else Z=J}else Z=J;if(g&&g.test(Z)||p&&o.test(Z)||i&&N[ae]||c&&X[ae]||d&&K[ae])return;const P=l(Z,r),H=ke&&h;if(ke&&m)return;const fe={start:{line:ae,column:0},end:{line:ae,column:Z.length}};H?P>h&&n.report({node:I,loc:fe,messageId:"maxComment",data:{lineLength:P,maxCommentLength:h}}):P>u&&n.report({node:I,loc:fe,messageId:"max",data:{lineLength:P,maxLength:u}})})}return{Program:R}}},wo}var Ao,uy;function FA(){if(uy)return Ao;uy=1;const a=Le();function e(n,o){return[...Array(o-n).keys()].map(t=>t+n)}return Ao={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}]}],messages:{exceed:"File has too many lines ({{actual}}). Maximum allowed is {{max}}."}},create(n){const o=n.options[0];let t=300;typeof o=="object"&&Object.hasOwn(o,"max")?t=o.max:typeof o=="number"&&(t=o);const l=o&&o.skipComments,f=o&&o.skipBlankLines,u=n.sourceCode;function r(i){return i&&(i.type==="Block"||i.type==="Line")}function m(i){let c=i.loc.start.line,d=i.loc.end.line,s;s=i;do s=u.getTokenBefore(s,{includeComments:!0});while(r(s));s&&a.isTokenOnSameLine(s,i)&&(c+=1),s=i;do s=u.getTokenAfter(s,{includeComments:!0});while(r(s));return s&&a.isTokenOnSameLine(i,s)&&(d-=1),c<=d?e(c,d+1):[]}return{"Program:exit"(){let i=u.lines.map((c,d)=>({lineNumber:d+1,text:c}));if(i.length>1&&i.at(-1).text===""&&i.pop(),f&&(i=i.filter(c=>c.text.trim()!=="")),l){const c=u.getAllComments(),d=new Set(c.flatMap(m));i=i.filter(s=>!d.has(s.lineNumber))}if(i.length>t){const c={start:{line:i[t].lineNumber,column:0},end:{line:u.lines.length,column:u.lines.at(-1).length}};n.report({loc:c,messageId:"exceed",data:{max:t,actual:i.length}})}}}}},Ao}var To,cy;function RA(){if(cy)return To;cy=1;const a=Le(),{upperCaseFirst:e}=Pr(),o={oneOf:[{type:"object",properties:{max:{type:"integer",minimum:0},skipComments:{type:"boolean"},skipBlankLines:{type:"boolean"},IIFEs:{type:"boolean"}},additionalProperties:!1},{type:"integer",minimum:1}]};function t(l){const f=new Map;return l.forEach(u=>{for(let r=u.loc.start.line;r<=u.loc.end.line;r++)f.set(r,u)}),f}return To={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:[o],messages:{exceed:"{{name}} has too many lines ({{lineCount}}). Maximum allowed is {{maxLines}}."}},create(l){const f=l.sourceCode,u=f.lines,r=l.options[0];let m=50,i=!1,c=!1,d=!1;typeof r=="object"?(m=typeof r.max=="number"?r.max:50,i=!!r.skipComments,c=!!r.skipBlankLines,d=!!r.IIFEs):typeof r=="number"&&(m=r);const s=t(f.getAllComments());function p(E,b,T){const C=T.loc.start,S=T.loc.end,w=C.line===b&&!E.slice(0,C.column).trim(),x=S.line===b&&!E.slice(S.column).trim();return T&&(C.line<b||w)&&(S.line>b||x)}function h(E){return(E.type==="FunctionExpression"||E.type==="ArrowFunctionExpression")&&E.parent&&E.parent.type==="CallExpression"&&E.parent.callee===E}function g(E){return!E.parent||E!==E.parent.value?!1:E.parent.type==="MethodDefinition"?!0:E.parent.type==="Property"?E.parent.method===!0||E.parent.kind==="get"||E.parent.kind==="set":!1}function v(E){const b=g(E)?E.parent:E;if(!d&&h(b))return;let T=0;for(let C=b.loc.start.line-1;C<b.loc.end.line;++C){const S=u[C];i&&s.has(C+1)&&p(S,C+1,s.get(C+1))||c&&S.match(/^\s*$/u)||T++}if(T>m){const C=e(a.getFunctionNameWithKind(E));l.report({node:b,messageId:"exceed",data:{name:C,lineCount:T,maxLines:m}})}}return{FunctionDeclaration:v,FunctionExpression:v,ArrowFunctionExpression:v}}},To}var ko,fy;function _A(){return fy||(fy=1,ko={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}},additionalProperties:!1}]}],messages:{exceed:"Too many nested callbacks ({{num}}). Maximum allowed is {{max}}."}},create(a){const e=a.options[0];let n=10;typeof e=="object"&&(Object.hasOwn(e,"maximum")||Object.hasOwn(e,"max"))?n=e.maximum||e.max:typeof e=="number"&&(n=e);const o=[];function t(f){if(f.parent.type==="CallExpression"&&o.push(f),o.length>n){const r={num:o.length,max:n};a.report({node:f,messageId:"exceed",data:r})}}function l(){o.pop()}return{ArrowFunctionExpression:t,"ArrowFunctionExpression:exit":l,FunctionExpression:t,"FunctionExpression:exit":l}}}),ko}var Do,py;function BA(){if(py)return Do;py=1;const a=Le(),{upperCaseFirst:e}=Pr();return Do={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Enforce a maximum number of parameters in function definitions",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`."}},additionalProperties:!1}]}],messages:{exceed:"{{name}} has too many parameters ({{count}}). Maximum allowed is {{max}}."}},create(n){const o=n.sourceCode,t=n.options[0];let l=3,f=!1;typeof t=="object"&&((Object.hasOwn(t,"maximum")||Object.hasOwn(t,"max"))&&(l=t.maximum||t.max),f=t.countVoidThis),typeof t=="number"&&(l=t);function u(r){const i=r.params.length>0&&r.params[0].type==="Identifier"&&r.params[0].name==="this"&&r.params[0].typeAnnotation?.typeAnnotation.type==="TSVoidKeyword"&&!f?r.params.length-1:r.params.length;i>l&&n.report({loc:a.getFunctionHeadLoc(r,o),node:r,messageId:"exceed",data:{name:e(a.getFunctionNameWithKind(r)),count:i,max:l}})}return{FunctionDeclaration:u,ArrowFunctionExpression:u,FunctionExpression:u,TSDeclareFunction:u,TSFunctionType:u}}},Do}var Po,my;function LA(){if(my)return Po;my=1;const a=Le(),{upperCaseFirst:e}=Pr();return Po={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}],messages:{exceed:"{{name}} has too many statements ({{count}}). Maximum allowed is {{max}}."}},create(n){const o=[],t=n.options[0],l=n.options[1]&&n.options[1].ignoreTopLevelFunctions||!1,f=[];let u=10;typeof t=="object"&&(Object.hasOwn(t,"maximum")||Object.hasOwn(t,"max"))?u=t.maximum||t.max:typeof t=="number"&&(u=t);function r(d,s,p){if(s>p){const h=e(a.getFunctionNameWithKind(d));n.report({node:d,messageId:"exceed",data:{name:h,count:s,max:p}})}}function m(){o.push(0)}function i(d){const s=o.pop();d.type!=="StaticBlock"&&(l&&o.length===0?f.push({node:d,count:s}):r(d,s,u))}function c(d){o[o.length-1]+=d.body.length}return{FunctionDeclaration:m,FunctionExpression:m,ArrowFunctionExpression:m,StaticBlock:m,BlockStatement:c,"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i,"StaticBlock:exit":i,"Program:exit"(){f.length!==1&&f.forEach(d=>{const s=d.count,p=d.node;r(p,s,u)})}}}},Po}var Io,dy;function OA(){if(dy)return Io;dy=1;const a=Le();return Io={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(e){const n=e.sourceCode,o=e.options[0]||{},t=typeof o.max<"u"?o.max:1;let l=0,f=0,u;const r=/^(?:(?:DoWhile|For|ForIn|ForOf|If|Labeled|While)Statement|Export(?:Default|Named)Declaration)$/u;function m(){u&&e.report({node:u,messageId:"exceed",data:{numberOfStatementsOnThisLine:f,maxStatementsPerLine:t,statements:f===1?"statement":"statements"}}),u=null}function i(s){return n.getLastToken(s,a.isNotSemicolonToken)}function c(s){const p=s.loc.start.line;r.test(s.parent.type)&&s.parent.alternate!==s||(p===l?f+=1:(m(),f=1,l=p),f===t+1&&(u=u||s))}function d(s){const p=i(s).loc.end.line;p!==l&&(m(),f=1,l=p)}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":d,"ClassDeclaration:exit":d,"ContinueStatement:exit":d,"DebuggerStatement:exit":d,"DoWhileStatement:exit":d,"ExpressionStatement:exit":d,"ForInStatement:exit":d,"ForOfStatement:exit":d,"ForStatement:exit":d,"FunctionDeclaration:exit":d,"IfStatement:exit":d,"ImportDeclaration:exit":d,"LabeledStatement:exit":d,"ReturnStatement:exit":d,"SwitchStatement:exit":d,"ThrowStatement:exit":d,"TryStatement:exit":d,"VariableDeclaration:exit":d,"WhileStatement:exit":d,"WithStatement:exit":d,"ExportNamedDeclaration:exit":d,"ExportDefaultDeclaration:exit":d,"ExportAllDeclaration:exit":d,"Program:exit":m}}},Io}var Fo,hy;function NA(){if(hy)return Fo;hy=1;const a=Le();return Fo={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(e){const n=e.sourceCode,o=e.options[0]||"starred-block",l=!!(e.options[1]||{}).checkJSDoc;function f(E){return/^\s*\*/u.test(E)}function u([E]){if(E.type!=="Block")return!1;const b=E.value.split(a.LINEBREAK_MATCHER);return b.length>0&&b.every((T,C)=>(C===0||C===b.length-1?/^\s*$/u:/^\s*\*/u).test(T))}function r([E]){if(E.type!=="Block")return!1;const b=E.value.split(a.LINEBREAK_MATCHER);return/^\*\s*$/u.test(b[0])&&b.slice(1,-1).every(T=>/^\s* /u.test(T))&&/^\s*$/u.test(b.at(-1))}function m(E){const b=E.map(({value:T})=>T).filter(T=>T.trim().length).every(T=>T.startsWith(" "));return E.map(({value:T})=>b?T.replace(/^ /u,""):T)}function i(E){const b=E.value.split(a.LINEBREAK_MATCHER).filter((C,S,w)=>!(S===0||S===w.length-1)).map(C=>C.replace(/^\s*$/u,"")),T=b.map(C=>C.replace(/\s*\*/u,"")).filter(C=>C.trim().length).every(C=>C.startsWith(" "));return b.map(C=>C.replace(T?/\s*\* ?/u:/\s*\*/u,""))}function c(E){const b=E.value.split(a.LINEBREAK_MATCHER).map(S=>S.replace(/^\s*$/u,"")),T=`${n.text.slice(E.range[0]-E.loc.start.column,E.range[0])} `;let C="";for(const[S,w]of b.entries()){if(!w.trim().length||S===0)continue;const[,x]=w.match(/^(\s*\*?\s*)/u);if(x.length<T.length){const A=T.slice(x.length-T.length);A.length>C.length&&(C=A)}}return b.map(S=>{const w=S.match(/^(\s*\*?\s*)(.*)/u),[,x,A]=w;return x.length>T.length?`${x.slice(T.length-(C.length+x.length))}${A}`:x.length<T.length?`${x.slice(T.length)}${A}`:A})}function d(E){const[b]=E;return b.type==="Line"?m(E):u(E)?i(b):c(b)}function s(E){return n.text.slice(E.range[0]-E.loc.start.column,E.range[0])}function p(E,b){const T=s(E);return`/*
|
|
76
|
+
${b.map(C=>`${T} * ${C}`).join(`
|
|
77
|
+
`)}
|
|
78
|
+
${T} */`}function h(E,b){return b.map(T=>`// ${T}`).join(`
|
|
79
|
+
${s(E)}`)}function g(E,b){return`/* ${b.join(`
|
|
80
|
+
${s(E)} `)} */`}const v={"starred-block"(E){const[b]=E,T=d(E);if(!T.some(C=>C.includes("*/")))if(E.length>1)e.report({loc:{start:b.loc.start,end:E.at(-1).loc.end},messageId:"expectedBlock",fix(C){const S=[b.range[0],E.at(-1).range[1]];return T.some(w=>w.startsWith("/"))?null:C.replaceTextRange(S,p(b,T))}});else{const C=b.value.split(a.LINEBREAK_MATCHER),w=`${s(b)} *`;if(!/^\*?\s*$/u.test(C[0])){const x=b.value.startsWith("*")?b.range[0]+1:b.range[0];e.report({loc:{start:b.loc.start,end:{line:b.loc.start.line,column:b.loc.start.column+2}},messageId:"startNewline",fix:A=>A.insertTextAfterRange([x,x+2],`
|
|
81
|
+
${w}`)})}/^\s*$/u.test(C.at(-1))||e.report({loc:{start:{line:b.loc.end.line,column:b.loc.end.column-2},end:b.loc.end},messageId:"endNewline",fix:x=>x.replaceTextRange([b.range[1]-2,b.range[1]],`
|
|
82
|
+
${w}/`)});for(let x=b.loc.start.line+1;x<=b.loc.end.line;x++){const A=n.lines[x-1],k=f(A)?"alignment":"missingStar";A.startsWith(w)||e.report({loc:{start:{line:x,column:0},end:{line:x,column:A.length}},messageId:k,fix(R){const I=n.getIndexFromLoc({line:x,column:0});if(k==="alignment"){const[,$=""]=A.match(/^(\s*\*)/u)||[],N=I+$.length;return R.replaceTextRange([I,N],w)}const[,B=""]=A.match(/^(\s*)/u)||[],F=I+B.length;let O;for(const[$,N]of C.entries()){if(!/\S+/u.test(N))continue;const _=n.lines[b.loc.start.line-1+$],[,X="",L=""]=_.match(/^(\s*(?:\/?\*)?(\s*))/u)||[];O=`${B.slice(X.length)}${L}`,/^\s*\//u.test(A)&&O.length===0&&(O+=" ");break}return R.replaceTextRange([I,F],`${w}${O}`)}})}}},"separate-lines"(E){const[b]=E,T=r(E);if(b.type!=="Block"||!l&&T)return;let C=d(E);T&&(C=C.slice(1,C.length-1));const S=n.getTokenAfter(b,{includeComments:!0});S&&b.loc.end.line===S.loc.start.line||e.report({loc:{start:b.loc.start,end:{line:b.loc.start.line,column:b.loc.start.column+2}},messageId:"expectedLines",fix(w){return w.replaceText(b,h(b,C))}})},"bare-block"(E){if(r(E))return;const[b]=E,T=d(E);b.type==="Line"&&T.length>1&&!T.some(C=>C.includes("*/"))&&e.report({loc:{start:b.loc.start,end:E.at(-1).loc.end},messageId:"expectedBlock",fix(C){return C.replaceTextRange([b.range[0],E.at(-1).range[1]],g(b,T))}}),u(E)&&e.report({loc:{start:b.loc.start,end:{line:b.loc.start.line,column:b.loc.start.column+2}},messageId:"expectedBareBlock",fix(C){return C.replaceText(b,g(b,T))}})}};return{Program(){return n.getAllComments().filter(E=>E.type!=="Shebang").filter(E=>!a.COMMENTS_IGNORE_PATTERN.test(E.value)).filter(E=>{const b=n.getTokenBefore(E,{includeComments:!0});return!b||b.loc.end.line<E.loc.start.line}).reduce((E,b,T,C)=>{const S=n.getTokenBefore(b,{includeComments:!0});return b.type==="Line"&&T&&C[T-1].type==="Line"&&S&&S.loc.end.line===b.loc.start.line-1&&S===C[T-1]?E.at(-1).push(b):E.push([b]),E},[]).filter(E=>!(E.length===1&&E[0].loc.start.line===E[0].loc.end.line)).forEach(v[o])}}}},Fo}var Ro,gy;function MA(){if(gy)return Ro;gy=1;const a=Le();return Ro={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(e){const n=e.sourceCode,o=e.options[0],t=o!=="never",l=o==="always-multiline";return{ConditionalExpression(f){const u=n.getTokenAfter(f.test,a.isNotClosingParenToken),r=n.getTokenAfter(f.consequent,a.isNotClosingParenToken),m=n.getFirstToken(f),i=n.getTokenBefore(u),c=n.getTokenAfter(u),d=n.getTokenBefore(r),s=n.getTokenAfter(r),p=a.isTokenOnSameLine(i,c),h=a.isTokenOnSameLine(d,s),g=!!n.getCommentsInside(f).length;if(!t)p||e.report({node:f.test,loc:{start:m.loc.start,end:i.loc.end},messageId:"unexpectedTestCons",fix(v){if(g)return null;const E=[],b=a.isTokenOnSameLine(i,u),T=a.isTokenOnSameLine(u,c);return b||E.push(v.removeRange([i.range[1],u.range[0]])),T||E.push(v.removeRange([u.range[1],c.range[0]])),E}}),h||e.report({node:f.consequent,loc:{start:c.loc.start,end:d.loc.end},messageId:"unexpectedConsAlt",fix(v){if(g)return null;const E=[],b=a.isTokenOnSameLine(d,r),T=a.isTokenOnSameLine(r,s);return b||E.push(v.removeRange([d.range[1],r.range[0]])),T||E.push(v.removeRange([r.range[1],s.range[0]])),E}});else{if(l&&f.loc.start.line===f.loc.end.line)return;p&&e.report({node:f.test,loc:{start:m.loc.start,end:i.loc.end},messageId:"expectedTestCons",fix:v=>g?null:v.replaceTextRange([i.range[1],u.range[0]],`
|
|
83
|
+
`)}),h&&e.report({node:f.consequent,loc:{start:c.loc.start,end:d.loc.end},messageId:"expectedConsAlt",fix:v=>g?null:v.replaceTextRange([d.range[1],r.range[0]],`
|
|
84
|
+
`)})}}}}},Ro}var _o,yy;function jA(){if(yy)return _o;yy=1;const a=Le(),e=["Array","Boolean","Date","Error","Function","Number","Object","RegExp","String","Symbol","BigInt"];function n(t,l){return t[l]=!0,t}function o(t){return Array.from(new Set([...t.capIsNewExceptions,...e])).reduce(n,{})}return _o={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:e,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){const[l]=t.options,f=!l.properties,u=l.newIsCapExceptions.reduce(n,{}),r=l.newIsCapExceptionPattern?new RegExp(l.newIsCapExceptionPattern,"u"):null,m=o(l),i=l.capIsNewExceptionPattern?new RegExp(l.capIsNewExceptionPattern,"u"):null,c={},d=t.sourceCode;function s(v){return v.callee.type==="Identifier"?v.callee.name:a.getStaticPropertyName(v.callee)||""}function p(v){const E=v.charAt(0),b=E.toLowerCase(),T=E.toUpperCase();return b===T?"non-alpha":E===b?"lower":"upper"}function h(v,E,b,T){const C=d.getText(E.callee);if(v[b]||v[C]||T&&T.test(C))return!0;const S=a.skipChainExpression(E.callee);return b==="UTC"&&S.type==="MemberExpression"?S.object.type==="Identifier"&&S.object.name==="Date":f&&S.type==="MemberExpression"}function g(v,E){let b=a.skipChainExpression(v.callee);b.type==="MemberExpression"&&(b=b.property),t.report({node:v,loc:b.loc,messageId:E})}return l.newIsCap&&(c.NewExpression=function(v){const E=s(v);E&&(p(E)!=="lower"||h(u,v,E,r)||g(v,"lower"))}),l.capIsNew&&(c.CallExpression=function(v){const E=s(v);E&&(p(E)!=="upper"||h(m,v,E,i)||g(v,"upper"))}),c}},_o}var Bo,vy;function UA(){if(vy)return Bo;vy=1;const a=Le();return Bo={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(e){const o=e.options[0]!=="never",t=e.sourceCode;return{NewExpression(l){if(l.arguments.length!==0)return;const f=t.getLastToken(l),r=f&&a.isClosingParenToken(f)&&a.isOpeningParenToken(t.getTokenBefore(f))&&l.callee.range[1]<l.range[1];o?r||e.report({node:l,messageId:"missing",fix:m=>m.insertTextAfter(l,"()")}):r&&e.report({node:l,messageId:"unnecessary",fix:m=>[m.remove(t.getTokenBefore(f)),m.remove(f),m.insertTextBefore(l,"("),m.insertTextAfter(l,")")]})}}}},Bo}var Lo,Sy;function qA(){if(Sy)return Lo;Sy=1;const a=Le();return Lo={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(e){const n=e.sourceCode,o=e.options[0]==="never"?"never":"always",t=n.getAllComments().reduce((s,p)=>(s[p.loc.start.line]=p.loc.end.line,s),{});function l(s){const p=n.getLastToken(s);if(p.type==="Punctuator"&&p.value===";"){const h=n.getTokenBefore(p);if(h.loc.end.line!==p.loc.start.line)return h}return p}function f(s){return s==="var"||s==="let"||s==="const"}function u(s){return s==="ForStatement"||s==="ForInStatement"||s==="ForOfStatement"}function r(s){return s==="ExportNamedDeclaration"||s==="ExportSpecifier"||s==="ExportDefaultDeclaration"||s==="ExportAllDeclaration"}function m(s){const p=n.getTokenAfter(s);return!p||p.type==="Punctuator"&&p.value==="}"}function i(s){const p=t[s];return t[p+1]?i(p+1):p}function c(s,p){return s.loc.start.line>i(p)+1}function d(s){const p=l(s),h=p===n.getLastToken(s)?n.getTokenAfter(s):n.getLastToken(s),g=p.loc.end.line+1;if(!h||u(s.parent.type)||r(s.parent.type)||h.type==="Keyword"&&f(h.value)||m(s))return;const v=h.loc.start.line>g,E=typeof t[g]<"u";o==="never"&&v&&!E&&e.report({node:s,messageId:"unexpected",fix(b){const T=n.getText().slice(p.range[1],h.range[0]).split(a.LINEBREAK_MATCHER);return b.replaceTextRange([p.range[1],h.range[0]],`${T.slice(0,-1).join("")}
|
|
85
|
+
${T.at(-1)}`)}}),o==="always"&&(!v||E&&!c(h,g))&&e.report({node:s,messageId:"expected",fix(b){return(v?i(g):p.loc.end.line)===h.loc.start.line?b.insertTextBefore(h,`
|
|
86
|
+
|
|
87
|
+
`):b.insertTextBeforeRange([h.range[0]-h.loc.start.column,h.range[1]],`
|
|
88
|
+
`)}})}return{VariableDeclaration:d}}},Lo}var Oo,Ey;function VA(){return Ey||(Ey=1,Oo={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(a){const e=a.sourceCode;function n(r,m){const i=e.getTokenBefore(r);return m.includes(i.value)}function o(r){const m=r.parent.type;return r.parent.body?Array.isArray(r.parent.body)?r.parent.body[0]===r:r.parent.body===r:m==="IfStatement"?n(r,["else",")"]):m==="DoWhileStatement"?n(r,["do"]):m==="SwitchCase"?n(r,[":"]):n(r,[")"])}function t(r,m){const i=e.getCommentsBefore(r);let c=0;return i.length&&i.forEach(d=>{c++,d.type==="Block"&&(c+=d.loc.end.line-d.loc.start.line),d.loc.start.line===m&&c--,d.loc.end.line===r.loc.start.line&&c--}),c}function l(r){const m=e.getTokenBefore(r);let i;return m?i=m.loc.end.line:i=0,i}function f(r){const m=r.loc.start.line,i=l(r),c=t(r,i);return m-i-c>1}function u(r){const m=e.getCommentsBefore(r),i=m.at(-1),c=e.getTokenBefore(r);return m.length===0||i.loc.end.line===c.loc.end.line&&i.loc.end.line!==r.loc.start.line}return{ReturnStatement(r){!o(r)&&!f(r)&&a.report({node:r,messageId:"expected",fix(m){if(u(r)){const i=e.getTokenBefore(r),c=r.loc.start.line===i.loc.end.line?`
|
|
89
|
+
|
|
90
|
+
`:`
|
|
91
|
+
`;return m.insertTextBefore(r,c)}return null}})}}}}),Oo}var No,by;function $A(){if(by)return No;by=1;const a=Le();return No={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(e){const n=e.options[0]||{},o=n.ignoreChainWithDepth||2,t=e.sourceCode;function l(u){return u.computed?u.optional?"?.[":"[":u.optional?"?.":"."}function f(u){const r=l(u),m=t.getText(u.property).split(a.LINEBREAK_MATCHER),i=u.computed&&m.length===1?"]":"";return r+m[0]+i}return{"CallExpression:exit"(u){const r=a.skipChainExpression(u.callee);if(r.type!=="MemberExpression")return;let m=a.skipChainExpression(r.object),i=1;for(;m&&m.callee;)i+=1,m=a.skipChainExpression(a.skipChainExpression(m.callee).object);if(i>o&&a.isTokenOnSameLine(r.object,r.property)){const c=t.getTokenAfter(r.object,a.isNotClosingParenToken);e.report({node:r.property,loc:{start:c.loc.start,end:r.loc.end},messageId:"expected",data:{callee:f(r)},fix(d){return d.insertTextBefore(c,`
|
|
92
|
+
`)}})}}}}},No}var Mo,Cy;function GA(){if(Cy)return Mo;Cy=1;const{getStaticPropertyName:a,getVariableByName:e,skipChainExpression:n}=Le();function o(u){return/^(?:alert|confirm|prompt)$/u.test(u)}function t(u,r){const m=u.references.filter(i=>i.identifier.range[0]===r.range[0]&&i.identifier.range[1]===r.range[1]);return m.length===1?m[0]:null}function l(u,r){const m=t(u,r);return m&&m.resolved&&m.resolved.defs.length>0}function f(u,r){return u.type==="global"&&r.type==="ThisExpression"?!0:r.type==="Identifier"&&(r.name==="window"||r.name==="globalThis"&&e(u,"globalThis"))?!l(u,r):!1}return Mo={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(u){const r=u.sourceCode;return{CallExpression(m){const i=n(m.callee),c=r.getScope(m);if(i.type==="Identifier"){const d=i.name;!l(c,i)&&o(i.name)&&u.report({node:m,messageId:"unexpected",data:{name:d}})}else if(i.type==="MemberExpression"&&f(c,i.object)){const d=a(i);o(d)&&u.report({node:m,messageId:"unexpected",data:{name:d}})}}}}},Mo}var jo,xy;function WA(){if(xy)return jo;xy=1;const{getVariableByName:a,isClosingParenToken:e,isOpeningParenToken:n,isStartOfExpressionStatement:o,needsPrecedingSemicolon:t}=Le();return jo={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow `Array` constructors",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(l){const f=l.sourceCode;function u(i){const c=f.getFirstToken(i),d=f.getLastToken(i);let s=f.getLastToken(i.callee);for(;s!==d&&!n(s);)s=f.getTokenAfter(s);return f.commentsExistBetween(c,s)}function r(i){const c=f.getLastToken(i);if(!e(c))return"";let d=i.callee;do if(d=f.getTokenAfter(d),!d||d===c)return"";while(!n(d));return f.text.slice(d.range[1],c.range[0])}function m(i){if(i.callee.type!=="Identifier"||i.callee.name!=="Array"||i.typeArguments||i.arguments.length===1&&i.arguments[0].type!=="SpreadElement")return;const c=a(f.getScope(i),"Array");if(c&&c.identifiers.length===0){const d=r(i);let s,p;const h=i.arguments.reduce((v,E)=>E.type!=="SpreadElement"?v+1:v,0),g=i.optional||i.arguments.length>0&&h<2||u(i);o(i)&&t(f,i)?(s=`;[${d}]`,p="useLiteralAfterSemicolon"):(s=`[${d}]`,p="useLiteral"),l.report({node:i,messageId:"preferLiteral",fix(v){return g?null:v.replaceText(i,s)},suggest:[{messageId:p,fix(v){return g?v.replaceText(i,s):null}}]})}}return{CallExpression:m,NewExpression:m}}},jo}var Uo,wy;function zA(){return wy||(wy=1,Uo={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(a){return{"NewExpression[callee.name='Promise'][arguments.0.async=true]"(e){a.report({node:a.sourceCode.getFirstToken(e.arguments[0],n=>n.value==="async"),messageId:"async"})}}}}),Uo}var qo,Ay;function HA(){if(Ay)return qo;Ay=1;function a(n){const o=n.type;return o==="FunctionDeclaration"||o==="FunctionExpression"||o==="ArrowFunctionExpression"||o==="ForOfStatement"&&n.await===!0}function e(n,o){switch(o.type){case"ForStatement":return n===o.test||n===o.update||n===o.body;case"ForOfStatement":case"ForInStatement":return n===o.body||n===o.left&&n.kind==="await using";case"WhileStatement":case"DoWhileStatement":return n===o.test||n===o.body;default:return!1}}return qo={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(n){function o(t){if(t.type==="VariableDeclaration"&&t.kind!=="await using"||t.type==="ForOfStatement"&&!t.await)return;let l=t,f=l.parent;for(;f&&!a(f);){if(e(l,f)){n.report({node:t,messageId:"unexpectedAwait"});return}l=f,f=f.parent}}return{AwaitExpression:o,ForOfStatement:o,VariableDeclaration:o}}},qo}var Vo,Ty;function KA(){if(Ty)return Vo;Ty=1;const a=["^","|","&","<<",">>",">>>","^=","|=","&=","<<=",">>=",">>>=","~"];return Vo={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:a},uniqueItems:!0},int32Hint:{type:"boolean"}},additionalProperties:!1}],messages:{unexpected:"Unexpected use of '{{operator}}'."}},create(e){const[{allow:n,int32Hint:o}]=e.options;function t(m){e.report({node:m,messageId:"unexpected",data:{operator:m.operator}})}function l(m){return a.includes(m.operator)}function f(m){return n.includes(m.operator)}function u(m){return o&&m.operator==="|"&&m.right&&m.right.type==="Literal"&&m.right.value===0}function r(m){l(m)&&!f(m)&&!u(m)&&t(m)}return{AssignmentExpression:r,BinaryExpression:r,UnaryExpression:r}}},Vo}var $o,ky;function XA(){return ky||(ky=1,$o={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(a){return{"CallExpression[callee.name='Buffer'], NewExpression[callee.name='Buffer']"(e){a.report({node:e,messageId:"deprecated",data:{expr:e.type==="CallExpression"?"Buffer()":"new Buffer()"}})}}}}),$o}var Go,Dy;function JA(){return Dy||(Dy=1,Go={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(a){return{MemberExpression(e){const n=e.object.name,o=e.property.name;n==="arguments"&&!e.computed&&o&&o.match(/^calle[er]$/u)&&a.report({node:e,messageId:"unexpected",data:{prop:o}})}}}}),Go}var Wo,Py;function YA(){return Py||(Py=1,Wo={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(a){function e(n){switch(n.type){case"FunctionDeclaration":case"ClassDeclaration":return!0;case"VariableDeclaration":return n.kind!=="var";default:return!1}}return{SwitchCase(n){for(let o=0;o<n.consequent.length;o++){const t=n.consequent[o];e(t)&&a.report({node:t,messageId:"unexpected",suggest:[{messageId:"addBrackets",fix:l=>[l.insertTextBefore(n.consequent[0],"{ "),l.insertTextAfter(n.consequent.at(-1)," }")]}]})}}}}}),Wo}var zo,Iy;function QA(){if(Iy)return zo;Iy=1;const a=Le();return zo={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(e){const n=e.sourceCode;function o(t,l){return a.getVariableByName(t,l)!==null}return{"CatchClause[param!=null]"(t){let l=n.getScope(t);l.block===t&&(l=l.upper),o(l,t.param.name)&&e.report({node:t,messageId:"mutable",data:{name:t.param.name}})}}}},zo}var Ho,Fy;function ZA(){if(Fy)return Ho;Fy=1;const a=Le();return Ho={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(e){const n=e.sourceCode;function o(l){a.getModifyingReferences(l.references).forEach(f=>{e.report({node:f.identifier,messageId:"class",data:{name:f.identifier.name}})})}function t(l){n.getDeclaredVariables(l).forEach(o)}return{ClassDeclaration:t,ClassExpression:t}}},Ho}var Ko,Ry;function eT(){return Ry||(Ry=1,Ko={meta:{type:"problem",docs:{description:"Disallow comparing against `-0`",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-compare-neg-zero"},fixable:null,schema:[],messages:{unexpected:"Do not use the '{{operator}}' operator to compare against -0."}},create(a){function e(o){return o.type==="UnaryExpression"&&o.operator==="-"&&o.argument.type==="Literal"&&o.argument.value===0}const n=new Set([">",">=","<","<=","==","===","!=","!=="]);return{BinaryExpression(o){n.has(o.operator)&&(e(o.left)||e(o.right))&&a.report({node:o,messageId:"unexpected",data:{operator:o.operator}})}}}}),Ko}var Xo,_y;function tT(){if(_y)return Xo;_y=1;const a=Le(),e=new Set(["IfStatement","WhileStatement","DoWhileStatement","ForStatement","ConditionalExpression"]),n={DoWhileStatement:"a 'do...while' statement",ForStatement:"a 'for' statement",IfStatement:"an 'if' statement",WhileStatement:"a 'while' statement"};return Xo={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(o){const[t]=o.options,l=o.sourceCode;function f(c){return c.parent&&e.has(c.parent.type)&&c===c.parent.test}function u(c){let d=c;do if(f(d))return d.parent;while((d=d.parent)&&!a.isFunction(d));return null}function r(c){const d=l.getTokenBefore(c,1),s=l.getTokenAfter(c,1);return a.isParenthesised(l,c)&&d&&a.isOpeningParenToken(d)&&d.range[1]<=c.range[0]&&a.isClosingParenToken(s)&&s.range[0]>=c.range[1]}function m(c){c.test&&c.test.type==="AssignmentExpression"&&(c.type==="ForStatement"?!a.isParenthesised(l,c.test):!r(c.test))&&o.report({node:c.test,messageId:"missing"})}function i(c){const d=u(c);d&&o.report({node:c,messageId:"unexpected",data:{type:n[d.type]||d.type}})}return t==="always"?{AssignmentExpression:i}:{DoWhileStatement:m,ForStatement:m,IfStatement:m,WhileStatement:m,ConditionalExpression:m}}},Xo}var Jo,By;function rT(){if(By)return Jo;By=1;const a=Le();function e(n){return n&&n.type==="ConditionalExpression"}return Jo={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(n){const o=n.options[0]||{},t=o.allowParens||o.allowParens===void 0,l=o.onlyOneSimpleParam,f=n.sourceCode;function u(r){const m=r.body;e(m)&&!(t&&a.isParenthesised(f,m))&&!(l&&!(r.params.length===1&&r.params[0].type==="Identifier"))&&n.report({node:r,messageId:"confusing",fix(i){return t&&i.replaceText(r.body,`(${f.getText(r.body)})`)}})}return{ArrowFunctionExpression:u}}},Jo}var Yo,Ly;function nT(){if(Ly)return Yo;Ly=1;const a=Le();return Yo={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(e){const[{allow:n=[]}]=e.options,o=e.sourceCode;function t(i){const c=i.identifier;return c&&c.name==="console"}function l(i){const c=a.getStaticPropertyName(i);return c&&n.includes(c)}function f(i){const c=i.identifier,d=c.parent;return d.type==="MemberExpression"&&d.object===c&&!l(d)}function u(i){const c=/^[:;{]$/u,d=/^[-[(/+`]/u,s=o.getTokenBefore(i),p=o.getTokenAfter(i);return!!p&&d.test(p.value)&&p.value!=="++"&&p.value!=="--"&&!!s&&!c.test(s.value)}function r(i){return i.parent.type==="CallExpression"&&i.parent.callee===i&&i.parent.parent.type==="ExpressionStatement"&&a.STATEMENT_LIST_PARENTS.has(i.parent.parent.parent.type)&&!u(i.parent.parent)}function m(i){const c=i.identifier.parent,d=[];if(r(c)){const s={fix(p){return p.remove(c.parent.parent)}};c.computed?s.messageId="removeMethodCall":(s.messageId="removeConsole",s.data={propertyName:c.property.name}),d.push(s)}e.report({node:c,loc:c.loc,messageId:n.length?"limited":"unexpected",data:{allowed:n.join(", ")},suggest:d})}return{"Program:exit"(i){const c=o.getScope(i),d=a.getVariableByName(c,"console"),s=d&&d.defs.length>0,p=d?d.references:c.through.filter(t);s||p.filter(f).forEach(m)}}}},Yo}var Qo,Oy;function sT(){if(Oy)return Qo;Oy=1;const a=Le(),e=new Set(["const","using","await using"]);return Qo={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(n){const o=n.sourceCode;function t(l){a.getModifyingReferences(l.references).forEach(f=>{n.report({node:f.identifier,messageId:"const",data:{name:f.identifier.name}})})}return{VariableDeclaration(l){e.has(l.kind)&&o.getDeclaredVariables(l).forEach(t)}}}},Qo}var Zo,Ny;function aT(){if(Ny)return Zo;Ny=1;const{isNullLiteral:a,isConstant:e,isReferenceToGlobalVariable:n,isLogicalAssignmentOperator:o,ECMASCRIPT_GLOBALS:t}=Le(),l=new Set(["+","-","*","/","%","|","^","&","**","<<",">>",">>>"]);function f(s,p){return a(p)||p.type==="Identifier"&&p.name==="undefined"&&n(s,p)||p.type==="UnaryExpression"&&p.operator==="void"}function u(s,p,h){if(h&&f(s,p))return!1;switch(p.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(p.callee.type!=="Identifier")return!1;const g=p.callee.name;return(g==="Boolean"||g==="String"||g==="Number")&&n(s,p.callee)}case"LogicalExpression":return p.operator==="??"&&u(s,p.right,!0);case"AssignmentExpression":return p.operator==="="?u(s,p.right,h):!o(p.operator);case"UnaryExpression":return!0;case"SequenceExpression":{const g=p.expressions.at(-1);return u(s,g,h)}case"Identifier":return p.name==="undefined"&&n(s,p);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function r(s,p){switch(p.type){case"Literal":return typeof p.value=="boolean";case"CallExpression":return p.callee.type==="Identifier"&&p.callee.name==="Boolean"&&n(s,p.callee)&&(p.arguments.length===0||e(s,p.arguments[0],!0));case"UnaryExpression":return p.operator==="!"&&e(s,p.argument,!0);default:return!1}}function m(s,p){switch(p.type){case"ObjectExpression":case"ClassExpression":return!0;case"ArrayExpression":{const h=p.elements.filter(g=>g!==null&&g.type!=="SpreadElement");return p.elements.length===0||h.length>1}case"ArrowFunctionExpression":case"FunctionExpression":return!0;case"UnaryExpression":return p.operator==="void"||p.operator==="typeof"?!0:p.operator==="!"?e(s,p.argument,!0):!1;case"NewExpression":return!1;case"CallExpression":return p.callee.type==="Identifier"&&p.callee.name==="Boolean"&&n(s,p.callee)?p.arguments.length===0||e(s,p.arguments[0],!0):!1;case"Literal":return!0;case"Identifier":return p.name==="undefined"&&n(s,p);case"TemplateLiteral":return p.expressions.length===0;case"AssignmentExpression":return p.operator==="="?m(s,p.right):!1;case"SequenceExpression":{const h=p.expressions.at(-1);return m(s,h)}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function i(s,p){switch(p.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":case"NewExpression":case"TemplateLiteral":case"Literal":case"UpdateExpression":return!0;case"BinaryExpression":return l.has(p.operator);case"UnaryExpression":return p.operator==="delete"?!1:p.operator==="!"?e(s,p.argument,!0):!0;case"SequenceExpression":{const h=p.expressions.at(-1);return i(s,h)}case"Identifier":return p.name==="undefined"&&n(s,p);case"AssignmentExpression":return p.operator==="="?i(s,p.right):!o(p.operator);case"CallExpression":{if(p.callee.type!=="Identifier")return!1;const h=p.callee.name;return(h==="String"||h==="Number")&&n(s,p.callee)?!0:h==="Boolean"&&n(s,p.callee)?p.arguments.length===0||e(s,p.arguments[0],!0):!1}case"JSXElement":case"JSXFragment":return!1;default:return!1}}function c(s,p){switch(p.type){case"ObjectExpression":case"ArrayExpression":case"ArrowFunctionExpression":case"FunctionExpression":case"ClassExpression":return!0;case"NewExpression":return p.callee.type!=="Identifier"?!1:Object.hasOwn(t,p.callee.name)&&n(s,p.callee);case"Literal":return typeof p.regex=="object";case"SequenceExpression":{const h=p.expressions.at(-1);return c(s,h)}case"AssignmentExpression":return p.operator==="="?c(s,p.right):!1;case"ConditionalExpression":return c(s,p.consequent)&&c(s,p.alternate);case"JSXElement":case"JSXFragment":return!1;default:return!1}}function d(s,p,h,g){if(g==="=="||g==="!="){if(f(s,p)&&u(s,h,!1)||r(s,p)&&m(s,h))return h}else if((g==="==="||g==="!==")&&(f(s,p)&&u(s,h,!1)||r(s,p)&&i(s,h)))return h;return null}return Zo={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"},schema:[],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."}},create(s){const p=s.sourceCode;return{LogicalExpression(h){const{operator:g,left:v}=h,E=p.getScope(h);(g==="&&"||g==="||")&&e(E,v,!0)?s.report({node:v,messageId:"constantShortCircuit",data:{property:"truthiness",operator:g}}):g==="??"&&u(E,v,!1)&&s.report({node:v,messageId:"constantShortCircuit",data:{property:"nullishness",operator:g}})},BinaryExpression(h){const g=p.getScope(h),{right:v,left:E,operator:b}=h,T=d(g,E,v,b),C=d(g,v,E,b);T?s.report({node:T,messageId:"constantBinaryOperand",data:{operator:b,otherSide:"left"}}):C?s.report({node:C,messageId:"constantBinaryOperand",data:{operator:b,otherSide:"right"}}):b==="==="||b==="!=="?c(g,E)?s.report({node:E,messageId:"alwaysNew"}):c(g,v)&&s.report({node:v,messageId:"alwaysNew"}):(b==="=="||b==="!=")&&c(g,E)&&c(g,v)&&s.report({node:E,messageId:"bothAlwaysNew"})}}}},Zo}var el,My;function iT(){if(My)return el;My=1;const{isConstant:a}=Le();return el={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(e){const n=[],o=e.sourceCode;let[{checkLoops:t}]=e.options;t===!0?t="all":t===!1&&(t="none");let l=new Set;function f(d){d.test&&a(o.getScope(d),d.test,!0)&&l.add(d)}function u(d){l.has(d)&&(l.delete(d),e.report({node:d.test,messageId:"unexpected"}))}function r(d){d.test&&a(o.getScope(d),d.test,!0)&&e.report({node:d.test,messageId:"unexpected"})}function m(){n.push(l),l=new Set}function i(){l=n.pop()}function c(d){(t==="all"||t==="allExceptWhileTrue")&&f(d)}return{ConditionalExpression:r,IfStatement:r,WhileStatement(d){d.test.type==="Literal"&&d.test.value===!0&&t==="allExceptWhileTrue"||c(d)},"WhileStatement:exit":u,DoWhileStatement:c,"DoWhileStatement:exit":u,ForStatement:c,"ForStatement > .test":d=>c(d.parent),"ForStatement:exit":u,FunctionDeclaration:m,"FunctionDeclaration:exit":i,FunctionExpression:m,"FunctionExpression:exit":i,YieldExpression:()=>l.clear()}}},el}var tl,jy;function oT(){return jy||(jy=1,tl={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(a){const e=[];return{onCodePathStart(n,o){e.push(o)},onCodePathEnd(){e.pop()},ReturnStatement(n){const o=e.at(-1);o.parent&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"&&n.argument&&a.report({node:n,messageId:"unexpected"})}}}}),tl}var rl,Uy;function lT(){return Uy||(Uy=1,rl={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(a){return{ContinueStatement(e){a.report({node:e,messageId:"unexpected"})}}}}),rl}var lr={},qy;function ur(){if(qy)return lr;qy=1,Object.defineProperty(lr,"__esModule",{value:!0});var a=Object.freeze({__proto__:null});const e=2025;let n,o;function t(je){return je<65?!1:je<91?!0:je<97?!1:je<123?!0:f(je)}function l(je){return je<48?!1:je<58?!0:je<65?!1:je<91||je===95?!0:je<97?!1:je<123?!0:f(je)||u(je)}function f(je){return i(je,n??(n=r()))}function u(je){return i(je,o??(o=m()))}function r(){return c("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 3 0 7 14 20 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 5 i 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 3 0 3 1 v 0 5 7 2 2 2 m 2 9 2 4 4 0 w 1 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 h c 2u 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 1u 3 1 2 0 2 7 m f 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 7 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 8 1y 5 3 0 2 17 2 1 4 0 3 m b m a u 1u i 2 1 b l b p 1z 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 2 1o 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 5k 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 94 i g 0 2 c 2 x 3h 0 28 pl 2v 32 i 5f 219 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 3l 22 6 0 1v c 1t 1 2 0 t 4qf 9 yd 16 9 6w8 3 2 6 2 1 2 82 g 0 u 2 3 0 f 3 9 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 9f 3 o 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 u 2 o 2 7 1f9 u 7 5 7a 1p 43 18 b 6 h 0 8y t j 17 dh r 6d t 3 0 ds 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 37d 7 65 3 4g1 f 5rk g h9 1wj f1 15v 3t6 6 38f")}function m(){return c("53 0 g9 33 o 0 70 4 7e 18 2 0 2 1 2 1 2 0 21 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 8 2 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 f 1e 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 28 3 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 9j 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 96 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 f3 4 4 5 9 7 3 6 v 3 45 2 13e 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 k6 6 32 6 6 9 3o7 9 gvt3 6n")}function i(je,M){let re=0,de=M.length/2|0,Be=0,y=0,D=0;for(;re<de;)if(Be=(re+de)/2|0,y=M[2*Be],D=M[2*Be+1],je<y)de=Be;else if(je>D)re=Be+1;else return!0;return!1}function c(je){let M=0;return je.split(" ").map(re=>M+=parseInt(re,36)|0)}class d{constructor(M,re,de,Be,y,D,G,Y){this._raw2018=M,this._raw2019=re,this._raw2020=de,this._raw2021=Be,this._raw2022=y,this._raw2023=D,this._raw2024=G,this._raw2025=Y}get es2018(){var M;return(M=this._set2018)!==null&&M!==void 0?M:this._set2018=new Set(this._raw2018.split(" "))}get es2019(){var M;return(M=this._set2019)!==null&&M!==void 0?M:this._set2019=new Set(this._raw2019.split(" "))}get es2020(){var M;return(M=this._set2020)!==null&&M!==void 0?M:this._set2020=new Set(this._raw2020.split(" "))}get es2021(){var M;return(M=this._set2021)!==null&&M!==void 0?M:this._set2021=new Set(this._raw2021.split(" "))}get es2022(){var M;return(M=this._set2022)!==null&&M!==void 0?M:this._set2022=new Set(this._raw2022.split(" "))}get es2023(){var M;return(M=this._set2023)!==null&&M!==void 0?M:this._set2023=new Set(this._raw2023.split(" "))}get es2024(){var M;return(M=this._set2024)!==null&&M!==void 0?M:this._set2024=new Set(this._raw2024.split(" "))}get es2025(){var M;return(M=this._set2025)!==null&&M!==void 0?M:this._set2025=new Set(this._raw2025.split(" "))}}const s=new Set(["General_Category","gc"]),p=new Set(["Script","Script_Extensions","sc","scx"]),h=new d("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","","","","","","",""),g=new d("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","Gara Garay Gukh Gurung_Khema Hrkt Katakana_Or_Hiragana Kawi Kirat_Rai Krai Nag_Mundari Nagm Ol_Onal Onao Sunu Sunuwar Todhri Todr Tulu_Tigalari Tutg Unknown Zzzz","",""),v=new d("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","","","",""),E=new d("","","","","","","Basic_Emoji Emoji_Keycap_Sequence RGI_Emoji RGI_Emoji_Flag_Sequence RGI_Emoji_Modifier_Sequence RGI_Emoji_Tag_Sequence RGI_Emoji_ZWJ_Sequence","");function b(je,M,re){return s.has(M)?je>=2018&&h.es2018.has(re):p.has(M)?je>=2018&&g.es2018.has(re)||je>=2019&&g.es2019.has(re)||je>=2020&&g.es2020.has(re)||je>=2021&&g.es2021.has(re)||je>=2022&&g.es2022.has(re)||je>=2023&&g.es2023.has(re):!1}function T(je,M){return je>=2018&&v.es2018.has(M)||je>=2019&&v.es2019.has(M)||je>=2021&&v.es2021.has(M)}function C(je,M){return je>=2024&&E.es2024.has(M)}const S=8,w=9,x=10,A=11,k=12,R=13,I=33,B=35,F=36,O=37,$=38,N=40,_=41,X=42,L=43,K=44,J=45,ge=46,ae=47,ke=48,Z=49,P=55,H=57,fe=58,ce=59,ie=60,he=61,Ee=62,Ce=63,Ae=64,ee=65,ne=66,we=68,z=70,oe=80,Te=83,Re=87,Ie=90,W=95,Je=97,ut=98,tt=99,qe=100,$e=102,st=103,mt=105,rt=107,Qe=109,St=110,Ze=112,Ct=113,Ke=114,Ge=115,Se=116,j=117,U=118,V=119,Q=120,le=121,te=122,q=91,se=92,ue=93,be=94,Oe=96,Pe=123,We=124,ze=125,me=126,pe=8204,ve=8205,De=8232,Fe=8233,at=0,Ue=1114111;function Xe(je){return je>=ee&&je<=Ie||je>=Je&&je<=te}function ot(je){return je>=ke&&je<=H}function He(je){return je>=ke&&je<=P}function nt(je){return je>=ke&&je<=H||je>=ee&&je<=z||je>=Je&&je<=$e}function pt(je){return je===x||je===R||je===De||je===Fe}function ht(je){return je>=at&&je<=Ue}function ft(je){return je>=Je&&je<=$e?je-Je+10:je>=ee&&je<=z?je-ee+10:je-ke}function gt(je){return je>=55296&&je<=56319}function xt(je){return je>=56320&&je<=57343}function bt(je,M){return(je-55296)*1024+(M-56320)+65536}class Rt{constructor(){this.groupName=new Set}clear(){this.groupName.clear()}isEmpty(){return!this.groupName.size}hasInPattern(M){return this.groupName.has(M)}hasInScope(M){return this.hasInPattern(M)}addToScope(M){this.groupName.add(M)}enterDisjunction(){}enterAlternative(){}leaveDisjunction(){}}class _t{constructor(M,re){this.parent=M,this.base=re??this}separatedFrom(M){var re,de;return this.base===M.base&&this!==M||M.parent&&this.separatedFrom(M.parent)?!0:(de=(re=this.parent)===null||re===void 0?void 0:re.separatedFrom(M))!==null&&de!==void 0?de:!1}child(){return new _t(this,null)}sibling(){return new _t(this.parent,this.base)}}class Bt{constructor(){this.branchID=new _t(null,null),this.groupNames=new Map}clear(){this.branchID=new _t(null,null),this.groupNames.clear()}isEmpty(){return!this.groupNames.size}enterDisjunction(){this.branchID=this.branchID.child()}enterAlternative(M){M!==0&&(this.branchID=this.branchID.sibling())}leaveDisjunction(){this.branchID=this.branchID.parent}hasInPattern(M){return this.groupNames.has(M)}hasInScope(M){const re=this.groupNames.get(M);if(!re)return!1;for(const de of re)if(!de.separatedFrom(this.branchID))return!0;return!1}addToScope(M){const re=this.groupNames.get(M);if(re){re.push(this.branchID);return}this.groupNames.set(M,[this.branchID])}}const Ht={at(je,M,re){return re<M?je.charCodeAt(re):-1},width(je){return 1}},Wt={at(je,M,re){return re<M?je.codePointAt(re):-1},width(je){return je>65535?2:1}};class Ot{constructor(){this._impl=Ht,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(M,re,de,Be){this._impl=Be?Wt:Ht,this._s=M,this._end=de,this.rewind(re)}rewind(M){const re=this._impl;this._i=M,this._cp1=re.at(this._s,this._end,M),this._w1=re.width(this._cp1),this._cp2=re.at(this._s,this._end,M+this._w1),this._w2=re.width(this._cp2),this._cp3=re.at(this._s,this._end,M+this._w1+this._w2),this._w3=re.width(this._cp3),this._cp4=re.at(this._s,this._end,M+this._w1+this._w2+this._w3)}advance(){if(this._cp1!==-1){const M=this._impl;this._i+=this._w1,this._cp1=this._cp2,this._w1=this._w2,this._cp2=this._cp3,this._w2=M.width(this._cp2),this._cp3=this._cp4,this._w3=M.width(this._cp3),this._cp4=M.at(this._s,this._end,this._i+this._w1+this._w2+this._w3)}}eat(M){return this._cp1===M?(this.advance(),!0):!1}eat2(M,re){return this._cp1===M&&this._cp2===re?(this.advance(),this.advance(),!0):!1}eat3(M,re,de){return this._cp1===M&&this._cp2===re&&this._cp3===de?(this.advance(),this.advance(),this.advance(),!0):!1}}class $t extends SyntaxError{constructor(M,re){super(M),this.index=re}}function lt(je,M,re,de){let Be="";if(je.kind==="literal"){const y=je.source.slice(je.start,je.end);y&&(Be=`: ${y}`)}else if(je.kind==="pattern"){const y=je.source.slice(je.start,je.end),D=`${M.unicode?"u":""}${M.unicodeSets?"v":""}`;Be=`: /${y}/${D}`}return new $t(`Invalid regular expression${Be}: ${de}`,re)}const Mt=new Set([be,F,se,ge,X,L,Ce,N,_,q,ue,Pe,ze,We]),Lt=new Set([$,I,B,F,O,X,L,K,ge,fe,ce,ie,he,Ee,Ce,Ae,be,Oe,me]),Sr=new Set([N,_,q,ue,Pe,ze,ae,J,se,We]),Er=new Set([$,J,I,B,O,K,fe,ce,ie,he,Ee,Ae,Oe,me]),Qt={global:st,ignoreCase:mt,multiline:Qe,unicode:j,sticky:le,dotAll:Ge,hasIndices:qe,unicodeSets:U},cr=Object.fromEntries(Object.entries(Qt).map(([je,M])=>[M,je]));function rr(je){return Mt.has(je)}function fr(je){return Lt.has(je)}function br(je){return Sr.has(je)}function Zt(je){return Er.has(je)}function Gt(je){return t(je)||je===F||je===W}function jt(je){return l(je)||je===F||je===pe||je===ve}function Nr(je){return Xe(je)||je===W}function Mr(je){return Nr(je)||ot(je)}function jr(je){return je===mt||je===Qe||je===Ge}class Fr{constructor(M){this._reader=new Ot,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=M??{},this._groupSpecifiers=this.ecmaVersion>=2025?new Bt:new Rt}validateLiteral(M,re=0,de=M.length){if(this._srcCtx={source:M,start:re,end:de,kind:"literal"},this._unicodeSetsMode=this._unicodeMode=this._nFlag=!1,this.reset(M,re,de),this.onLiteralEnter(re),this.eat(ae)&&this.eatRegExpBody()&&this.eat(ae)){const Be=this.index,y=M.includes("u",Be),D=M.includes("v",Be);this.validateFlagsInternal(M,Be,de),this.validatePatternInternal(M,re+1,Be-1,{unicode:y,unicodeSets:D})}else if(re>=de)this.raise("Empty");else{const Be=String.fromCodePoint(this.currentCodePoint);this.raise(`Unexpected character '${Be}'`)}this.onLiteralLeave(re,de)}validateFlags(M,re=0,de=M.length){this._srcCtx={source:M,start:re,end:de,kind:"flags"},this.validateFlagsInternal(M,re,de)}validatePattern(M,re=0,de=M.length,Be=void 0){this._srcCtx={source:M,start:re,end:de,kind:"pattern"},this.validatePatternInternal(M,re,de,Be)}validatePatternInternal(M,re=0,de=M.length,Be=void 0){const y=this._parseFlagsOptionToMode(Be,de);this._unicodeMode=y.unicodeMode,this._nFlag=y.nFlag,this._unicodeSetsMode=y.unicodeSetsMode,this.reset(M,re,de),this.consumePattern(),!this._nFlag&&this.ecmaVersion>=2018&&!this._groupSpecifiers.isEmpty()&&(this._nFlag=!0,this.rewind(re),this.consumePattern())}validateFlagsInternal(M,re,de){const Be=this.parseFlags(M,re,de);this.onRegExpFlags(re,de,Be)}_parseFlagsOptionToMode(M,re){let de=!1,Be=!1;M&&this.ecmaVersion>=2015&&(typeof M=="object"?(de=!!M.unicode,this.ecmaVersion>=2024&&(Be=!!M.unicodeSets)):de=M),de&&Be&&this.raise("Invalid regular expression flags",{index:re+1,unicode:de,unicodeSets:Be});const y=de||Be,D=de&&this.ecmaVersion>=2018||Be||!!(this._options.strict&&this.ecmaVersion>=2023);return{unicodeMode:y,nFlag:D,unicodeSetsMode:Be}}get strict(){return!!this._options.strict||this._unicodeMode}get ecmaVersion(){var M;return(M=this._options.ecmaVersion)!==null&&M!==void 0?M:e}onLiteralEnter(M){this._options.onLiteralEnter&&this._options.onLiteralEnter(M)}onLiteralLeave(M,re){this._options.onLiteralLeave&&this._options.onLiteralLeave(M,re)}onRegExpFlags(M,re,de){this._options.onRegExpFlags&&this._options.onRegExpFlags(M,re,de),this._options.onFlags&&this._options.onFlags(M,re,de.global,de.ignoreCase,de.multiline,de.unicode,de.sticky,de.dotAll,de.hasIndices)}onPatternEnter(M){this._options.onPatternEnter&&this._options.onPatternEnter(M)}onPatternLeave(M,re){this._options.onPatternLeave&&this._options.onPatternLeave(M,re)}onDisjunctionEnter(M){this._options.onDisjunctionEnter&&this._options.onDisjunctionEnter(M)}onDisjunctionLeave(M,re){this._options.onDisjunctionLeave&&this._options.onDisjunctionLeave(M,re)}onAlternativeEnter(M,re){this._options.onAlternativeEnter&&this._options.onAlternativeEnter(M,re)}onAlternativeLeave(M,re,de){this._options.onAlternativeLeave&&this._options.onAlternativeLeave(M,re,de)}onGroupEnter(M){this._options.onGroupEnter&&this._options.onGroupEnter(M)}onGroupLeave(M,re){this._options.onGroupLeave&&this._options.onGroupLeave(M,re)}onModifiersEnter(M){this._options.onModifiersEnter&&this._options.onModifiersEnter(M)}onModifiersLeave(M,re){this._options.onModifiersLeave&&this._options.onModifiersLeave(M,re)}onAddModifiers(M,re,de){this._options.onAddModifiers&&this._options.onAddModifiers(M,re,de)}onRemoveModifiers(M,re,de){this._options.onRemoveModifiers&&this._options.onRemoveModifiers(M,re,de)}onCapturingGroupEnter(M,re){this._options.onCapturingGroupEnter&&this._options.onCapturingGroupEnter(M,re)}onCapturingGroupLeave(M,re,de){this._options.onCapturingGroupLeave&&this._options.onCapturingGroupLeave(M,re,de)}onQuantifier(M,re,de,Be,y){this._options.onQuantifier&&this._options.onQuantifier(M,re,de,Be,y)}onLookaroundAssertionEnter(M,re,de){this._options.onLookaroundAssertionEnter&&this._options.onLookaroundAssertionEnter(M,re,de)}onLookaroundAssertionLeave(M,re,de,Be){this._options.onLookaroundAssertionLeave&&this._options.onLookaroundAssertionLeave(M,re,de,Be)}onEdgeAssertion(M,re,de){this._options.onEdgeAssertion&&this._options.onEdgeAssertion(M,re,de)}onWordBoundaryAssertion(M,re,de,Be){this._options.onWordBoundaryAssertion&&this._options.onWordBoundaryAssertion(M,re,de,Be)}onAnyCharacterSet(M,re,de){this._options.onAnyCharacterSet&&this._options.onAnyCharacterSet(M,re,de)}onEscapeCharacterSet(M,re,de,Be){this._options.onEscapeCharacterSet&&this._options.onEscapeCharacterSet(M,re,de,Be)}onUnicodePropertyCharacterSet(M,re,de,Be,y,D,G){this._options.onUnicodePropertyCharacterSet&&this._options.onUnicodePropertyCharacterSet(M,re,de,Be,y,D,G)}onCharacter(M,re,de){this._options.onCharacter&&this._options.onCharacter(M,re,de)}onBackreference(M,re,de){this._options.onBackreference&&this._options.onBackreference(M,re,de)}onCharacterClassEnter(M,re,de){this._options.onCharacterClassEnter&&this._options.onCharacterClassEnter(M,re,de)}onCharacterClassLeave(M,re,de){this._options.onCharacterClassLeave&&this._options.onCharacterClassLeave(M,re,de)}onCharacterClassRange(M,re,de,Be){this._options.onCharacterClassRange&&this._options.onCharacterClassRange(M,re,de,Be)}onClassIntersection(M,re){this._options.onClassIntersection&&this._options.onClassIntersection(M,re)}onClassSubtraction(M,re){this._options.onClassSubtraction&&this._options.onClassSubtraction(M,re)}onClassStringDisjunctionEnter(M){this._options.onClassStringDisjunctionEnter&&this._options.onClassStringDisjunctionEnter(M)}onClassStringDisjunctionLeave(M,re){this._options.onClassStringDisjunctionLeave&&this._options.onClassStringDisjunctionLeave(M,re)}onStringAlternativeEnter(M,re){this._options.onStringAlternativeEnter&&this._options.onStringAlternativeEnter(M,re)}onStringAlternativeLeave(M,re,de){this._options.onStringAlternativeLeave&&this._options.onStringAlternativeLeave(M,re,de)}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(M,re,de){this._reader.reset(M,re,de,this._unicodeMode)}rewind(M){this._reader.rewind(M)}advance(){this._reader.advance()}eat(M){return this._reader.eat(M)}eat2(M,re){return this._reader.eat2(M,re)}eat3(M,re,de){return this._reader.eat3(M,re,de)}raise(M,re){var de,Be,y;throw lt(this._srcCtx,{unicode:(de=re?.unicode)!==null&&de!==void 0?de:this._unicodeMode&&!this._unicodeSetsMode,unicodeSets:(Be=re?.unicodeSets)!==null&&Be!==void 0?Be:this._unicodeSetsMode},(y=re?.index)!==null&&y!==void 0?y:this.index,M)}eatRegExpBody(){const M=this.index;let re=!1,de=!1;for(;;){const Be=this.currentCodePoint;if(Be===-1||pt(Be)){const y=re?"character class":"regular expression";this.raise(`Unterminated ${y}`)}if(de)de=!1;else if(Be===se)de=!0;else if(Be===q)re=!0;else if(Be===ue)re=!1;else if(Be===ae&&!re||Be===X&&this.index===M)break;this.advance()}return this.index!==M}consumePattern(){const M=this.index;this._numCapturingParens=this.countCapturingParens(),this._groupSpecifiers.clear(),this._backreferenceNames.clear(),this.onPatternEnter(M),this.consumeDisjunction();const re=this.currentCodePoint;if(this.currentCodePoint!==-1){re===_&&this.raise("Unmatched ')'"),re===se&&this.raise("\\ at end of pattern"),(re===ue||re===ze)&&this.raise("Lone quantifier brackets");const de=String.fromCodePoint(re);this.raise(`Unexpected character '${de}'`)}for(const de of this._backreferenceNames)this._groupSpecifiers.hasInPattern(de)||this.raise("Invalid named capture referenced");this.onPatternLeave(M,this.index)}countCapturingParens(){const M=this.index;let re=!1,de=!1,Be=0,y=0;for(;(y=this.currentCodePoint)!==-1;)de?de=!1:y===se?de=!0:y===q?re=!0:y===ue?re=!1:y===N&&!re&&(this.nextCodePoint!==Ce||this.nextCodePoint2===ie&&this.nextCodePoint3!==he&&this.nextCodePoint3!==I)&&(Be+=1),this.advance();return this.rewind(M),Be}consumeDisjunction(){const M=this.index;let re=0;this._groupSpecifiers.enterDisjunction(),this.onDisjunctionEnter(M);do this.consumeAlternative(re++);while(this.eat(We));this.consumeQuantifier(!0)&&this.raise("Nothing to repeat"),this.eat(Pe)&&this.raise("Lone quantifier brackets"),this.onDisjunctionLeave(M,this.index),this._groupSpecifiers.leaveDisjunction()}consumeAlternative(M){const re=this.index;for(this._groupSpecifiers.enterAlternative(M),this.onAlternativeEnter(re,M);this.currentCodePoint!==-1&&this.consumeTerm(););this.onAlternativeLeave(re,this.index,M)}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(){const M=this.index;if(this._lastAssertionIsQuantifiable=!1,this.eat(be))return this.onEdgeAssertion(M,this.index,"start"),!0;if(this.eat(F))return this.onEdgeAssertion(M,this.index,"end"),!0;if(this.eat2(se,ne))return this.onWordBoundaryAssertion(M,this.index,"word",!0),!0;if(this.eat2(se,ut))return this.onWordBoundaryAssertion(M,this.index,"word",!1),!0;if(this.eat2(N,Ce)){const re=this.ecmaVersion>=2018&&this.eat(ie);let de=!1;if(this.eat(he)||(de=this.eat(I))){const Be=re?"lookbehind":"lookahead";return this.onLookaroundAssertionEnter(M,Be,de),this.consumeDisjunction(),this.eat(_)||this.raise("Unterminated group"),this._lastAssertionIsQuantifiable=!re&&!this.strict,this.onLookaroundAssertionLeave(M,this.index,Be,de),!0}this.rewind(M)}return!1}consumeQuantifier(M=!1){const re=this.index;let de=0,Be=0,y=!1;if(this.eat(X))de=0,Be=Number.POSITIVE_INFINITY;else if(this.eat(L))de=1,Be=Number.POSITIVE_INFINITY;else if(this.eat(Ce))de=0,Be=1;else if(this.eatBracedQuantifier(M))({min:de,max:Be}=this._lastRange);else return!1;return y=!this.eat(Ce),M||this.onQuantifier(re,this.index,de,Be,y),!0}eatBracedQuantifier(M){const re=this.index;if(this.eat(Pe)){if(this.eatDecimalDigits()){const de=this._lastIntValue;let Be=de;if(this.eat(K)&&(Be=this.eatDecimalDigits()?this._lastIntValue:Number.POSITIVE_INFINITY),this.eat(ze))return!M&&Be<de&&this.raise("numbers out of order in {} quantifier"),this._lastRange={min:de,max:Be},!0}!M&&(this._unicodeMode||this.strict)&&this.raise("Incomplete quantifier"),this.rewind(re)}return!1}consumeAtom(){return this.consumePatternCharacter()||this.consumeDot()||this.consumeReverseSolidusAtomEscape()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()}consumeDot(){return this.eat(ge)?(this.onAnyCharacterSet(this.index-1,this.index,"any"),!0):!1}consumeReverseSolidusAtomEscape(){const M=this.index;if(this.eat(se)){if(this.consumeAtomEscape())return!0;this.rewind(M)}return!1}consumeUncapturingGroup(){const M=this.index;return this.eat2(N,Ce)?(this.onGroupEnter(M),this.ecmaVersion>=2025&&this.consumeModifiers(),this.eat(fe)||(this.rewind(M+1),this.raise("Invalid group")),this.consumeDisjunction(),this.eat(_)||this.raise("Unterminated group"),this.onGroupLeave(M,this.index),!0):!1}consumeModifiers(){const M=this.index,re=this.eatModifiers(),de=this.index,Be=this.eat(J);if(!re&&!Be)return!1;this.onModifiersEnter(M);const y=this.parseModifiers(M,de);if(this.onAddModifiers(M,de,y),Be){const D=this.index;!this.eatModifiers()&&!re&&this.currentCodePoint===fe&&this.raise("Invalid empty flags");const G=this.parseModifiers(D,this.index);for(const[Y]of Object.entries(G).filter(([,ye])=>ye))y[Y]&&this.raise(`Duplicated flag '${String.fromCodePoint(Qt[Y])}'`);this.onRemoveModifiers(D,this.index,G)}return this.onModifiersLeave(M,this.index),!0}consumeCapturingGroup(){const M=this.index;if(this.eat(N)){let re=null;if(this.ecmaVersion>=2018){if(this.consumeGroupSpecifier())re=this._lastStrValue;else if(this.currentCodePoint===Ce)return this.rewind(M),!1}else if(this.currentCodePoint===Ce)return this.rewind(M),!1;return this.onCapturingGroupEnter(M,re),this.consumeDisjunction(),this.eat(_)||this.raise("Unterminated group"),this.onCapturingGroupLeave(M,this.index,re),!0}return!1}consumeExtendedAtom(){return this.consumeDot()||this.consumeReverseSolidusAtomEscape()||this.consumeReverseSolidusFollowedByC()||!!this.consumeCharacterClass()||this.consumeCapturingGroup()||this.consumeUncapturingGroup()||this.consumeInvalidBracedQuantifier()||this.consumeExtendedPatternCharacter()}consumeReverseSolidusFollowedByC(){const M=this.index;return this.currentCodePoint===se&&this.nextCodePoint===tt?(this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,se),!0):!1}consumeInvalidBracedQuantifier(){return this.eatBracedQuantifier(!0)&&this.raise("Nothing to repeat"),!1}consumePatternCharacter(){const M=this.index,re=this.currentCodePoint;return re!==-1&&!rr(re)?(this.advance(),this.onCharacter(M,this.index,re),!0):!1}consumeExtendedPatternCharacter(){const M=this.index,re=this.currentCodePoint;return re!==-1&&re!==be&&re!==F&&re!==se&&re!==ge&&re!==X&&re!==L&&re!==Ce&&re!==N&&re!==_&&re!==q&&re!==We?(this.advance(),this.onCharacter(M,this.index,re),!0):!1}consumeGroupSpecifier(){const M=this.index;if(this.eat(Ce)){if(this.eatGroupName()){if(!this._groupSpecifiers.hasInScope(this._lastStrValue))return this._groupSpecifiers.addToScope(this._lastStrValue),!0;this.raise("Duplicate capture group name")}this.rewind(M)}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(){const M=this.index;if(this.eatDecimalEscape()){const re=this._lastIntValue;if(re<=this._numCapturingParens)return this.onBackreference(M-1,this.index,re),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeCharacterClassEscape(){var M;const re=this.index;if(this.eat(qe))return this._lastIntValue=-1,this.onEscapeCharacterSet(re-1,this.index,"digit",!1),{};if(this.eat(we))return this._lastIntValue=-1,this.onEscapeCharacterSet(re-1,this.index,"digit",!0),{};if(this.eat(Ge))return this._lastIntValue=-1,this.onEscapeCharacterSet(re-1,this.index,"space",!1),{};if(this.eat(Te))return this._lastIntValue=-1,this.onEscapeCharacterSet(re-1,this.index,"space",!0),{};if(this.eat(V))return this._lastIntValue=-1,this.onEscapeCharacterSet(re-1,this.index,"word",!1),{};if(this.eat(Re))return this._lastIntValue=-1,this.onEscapeCharacterSet(re-1,this.index,"word",!0),{};let de=!1;if(this._unicodeMode&&this.ecmaVersion>=2018&&(this.eat(Ze)||(de=this.eat(oe)))){this._lastIntValue=-1;let Be=null;if(this.eat(Pe)&&(Be=this.eatUnicodePropertyValueExpression())&&this.eat(ze))return de&&Be.strings&&this.raise("Invalid property name"),this.onUnicodePropertyCharacterSet(re-1,this.index,"property",Be.key,Be.value,de,(M=Be.strings)!==null&&M!==void 0?M:!1),{mayContainStrings:Be.strings};this.raise("Invalid property name")}return null}consumeCharacterEscape(){const M=this.index;return this.eatControlEscape()||this.eatCControlLetter()||this.eatZero()||this.eatHexEscapeSequence()||this.eatRegExpUnicodeEscapeSequence()||!this.strict&&!this._unicodeMode&&this.eatLegacyOctalEscapeSequence()||this.eatIdentityEscape()?(this.onCharacter(M-1,this.index,this._lastIntValue),!0):!1}consumeKGroupName(){const M=this.index;if(this.eat(rt)){if(this.eatGroupName()){const re=this._lastStrValue;return this._backreferenceNames.add(re),this.onBackreference(M-1,this.index,re),!0}this.raise("Invalid named reference")}return!1}consumeCharacterClass(){const M=this.index;if(this.eat(q)){const re=this.eat(be);this.onCharacterClassEnter(M,re,this._unicodeSetsMode);const de=this.consumeClassContents();return this.eat(ue)||(this.currentCodePoint===-1&&this.raise("Unterminated character class"),this.raise("Invalid character in character class")),re&&de.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,re),de}return null}consumeClassContents(){if(this._unicodeSetsMode)return this.currentCodePoint===ue?{}:this.consumeClassSetExpression();const M=this.strict||this._unicodeMode;for(;;){const re=this.index;if(!this.consumeClassAtom())break;const de=this._lastIntValue;if(!this.eat(J))continue;if(this.onCharacter(this.index-1,this.index,J),!this.consumeClassAtom())break;const Be=this._lastIntValue;if(de===-1||Be===-1){M&&this.raise("Invalid character class");continue}de>Be&&this.raise("Range out of order in character class"),this.onCharacterClassRange(re,this.index,de,Be)}return{}}consumeClassAtom(){const M=this.index,re=this.currentCodePoint;if(re!==-1&&re!==se&&re!==ue)return this.advance(),this._lastIntValue=re,this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(se)){if(this.consumeClassEscape())return!0;if(!this.strict&&this.currentCodePoint===tt)return this._lastIntValue=se,this.onCharacter(M,this.index,this._lastIntValue),!0;(this.strict||this._unicodeMode)&&this.raise("Invalid escape"),this.rewind(M)}return!1}consumeClassEscape(){const M=this.index;if(this.eat(ut))return this._lastIntValue=S,this.onCharacter(M-1,this.index,this._lastIntValue),!0;if(this._unicodeMode&&this.eat(J))return this._lastIntValue=J,this.onCharacter(M-1,this.index,this._lastIntValue),!0;let re=0;return!this.strict&&!this._unicodeMode&&this.currentCodePoint===tt&&(ot(re=this.nextCodePoint)||re===W)?(this.advance(),this.advance(),this._lastIntValue=re%32,this.onCharacter(M-1,this.index,this._lastIntValue),!0):!!this.consumeCharacterClassEscape()||this.consumeCharacterEscape()}consumeClassSetExpression(){const M=this.index;let re=!1,de=null;if(this.consumeClassSetCharacter()){if(this.consumeClassSetRangeFromOperator(M))return this.consumeClassUnionRight({}),{};re=!1}else if(de=this.consumeClassSetOperand())re=de.mayContainStrings;else{const Be=this.currentCodePoint;Be===se&&(this.advance(),this.raise("Invalid escape")),Be===this.nextCodePoint&&fr(Be)&&this.raise("Invalid set operation in character class"),this.raise("Invalid character in character class")}if(this.eat2($,$)){for(;this.currentCodePoint!==$&&(de=this.consumeClassSetOperand());)if(this.onClassIntersection(M,this.index),de.mayContainStrings||(re=!1),!this.eat2($,$))return{mayContainStrings:re};this.raise("Invalid character in character class")}if(this.eat2(J,J)){for(;this.consumeClassSetOperand();)if(this.onClassSubtraction(M,this.index),!this.eat2(J,J))return{mayContainStrings:re};this.raise("Invalid character in character class")}return this.consumeClassUnionRight({mayContainStrings:re})}consumeClassUnionRight(M){let re=M.mayContainStrings;for(;;){const de=this.index;if(this.consumeClassSetCharacter()){this.consumeClassSetRangeFromOperator(de);continue}const Be=this.consumeClassSetOperand();if(Be){Be.mayContainStrings&&(re=!0);continue}break}return{mayContainStrings:re}}consumeClassSetRangeFromOperator(M){const re=this.index,de=this._lastIntValue;if(this.eat(J)){if(this.consumeClassSetCharacter()){const Be=this._lastIntValue;return(de===-1||Be===-1)&&this.raise("Invalid character class"),de>Be&&this.raise("Range out of order in character class"),this.onCharacterClassRange(M,this.index,de,Be),!0}this.rewind(re)}return!1}consumeClassSetOperand(){let M=null;return(M=this.consumeNestedClass())||(M=this.consumeClassStringDisjunction())?M:this.consumeClassSetCharacter()?{}:null}consumeNestedClass(){const M=this.index;if(this.eat(q)){const re=this.eat(be);this.onCharacterClassEnter(M,re,!0);const de=this.consumeClassContents();return this.eat(ue)||this.raise("Unterminated character class"),re&&de.mayContainStrings&&this.raise("Negated character class may contain strings"),this.onCharacterClassLeave(M,this.index,re),de}if(this.eat(se)){const re=this.consumeCharacterClassEscape();if(re)return re;this.rewind(M)}return null}consumeClassStringDisjunction(){const M=this.index;if(this.eat3(se,Ct,Pe)){this.onClassStringDisjunctionEnter(M);let re=0,de=!1;do this.consumeClassString(re++).mayContainStrings&&(de=!0);while(this.eat(We));if(this.eat(ze))return this.onClassStringDisjunctionLeave(M,this.index),{mayContainStrings:de};this.raise("Unterminated class string disjunction")}return null}consumeClassString(M){const re=this.index;let de=0;for(this.onStringAlternativeEnter(re,M);this.currentCodePoint!==-1&&this.consumeClassSetCharacter();)de++;return this.onStringAlternativeLeave(re,this.index,M),{mayContainStrings:de!==1}}consumeClassSetCharacter(){const M=this.index,re=this.currentCodePoint;if((re!==this.nextCodePoint||!fr(re))&&re!==-1&&!br(re))return this._lastIntValue=re,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(se)){if(this.consumeCharacterEscape())return!0;if(Zt(this.currentCodePoint))return this._lastIntValue=this.currentCodePoint,this.advance(),this.onCharacter(M,this.index,this._lastIntValue),!0;if(this.eat(ut))return this._lastIntValue=S,this.onCharacter(M,this.index,this._lastIntValue),!0;this.rewind(M)}return!1}eatGroupName(){if(this.eat(ie)){if(this.eatRegExpIdentifierName()&&this.eat(Ee))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(){const M=this.index,re=!this._unicodeMode&&this.ecmaVersion>=2020;let de=this.currentCodePoint;return this.advance(),de===se&&this.eatRegExpUnicodeEscapeSequence(re)?de=this._lastIntValue:re&>(de)&&xt(this.currentCodePoint)&&(de=bt(de,this.currentCodePoint),this.advance()),Gt(de)?(this._lastIntValue=de,!0):(this.index!==M&&this.rewind(M),!1)}eatRegExpIdentifierPart(){const M=this.index,re=!this._unicodeMode&&this.ecmaVersion>=2020;let de=this.currentCodePoint;return this.advance(),de===se&&this.eatRegExpUnicodeEscapeSequence(re)?de=this._lastIntValue:re&>(de)&&xt(this.currentCodePoint)&&(de=bt(de,this.currentCodePoint),this.advance()),jt(de)?(this._lastIntValue=de,!0):(this.index!==M&&this.rewind(M),!1)}eatCControlLetter(){const M=this.index;if(this.eat(tt)){if(this.eatControlLetter())return!0;this.rewind(M)}return!1}eatZero(){return this.currentCodePoint===ke&&!ot(this.nextCodePoint)?(this._lastIntValue=0,this.advance(),!0):!1}eatControlEscape(){return this.eat($e)?(this._lastIntValue=k,!0):this.eat(St)?(this._lastIntValue=x,!0):this.eat(Ke)?(this._lastIntValue=R,!0):this.eat(Se)?(this._lastIntValue=w,!0):this.eat(U)?(this._lastIntValue=A,!0):!1}eatControlLetter(){const M=this.currentCodePoint;return Xe(M)?(this.advance(),this._lastIntValue=M%32,!0):!1}eatRegExpUnicodeEscapeSequence(M=!1){const re=this.index,de=M||this._unicodeMode;if(this.eat(j)){if(de&&this.eatRegExpUnicodeSurrogatePairEscape()||this.eatFixedHexDigits(4)||de&&this.eatRegExpUnicodeCodePointEscape())return!0;(this.strict||de)&&this.raise("Invalid unicode escape"),this.rewind(re)}return!1}eatRegExpUnicodeSurrogatePairEscape(){const M=this.index;if(this.eatFixedHexDigits(4)){const re=this._lastIntValue;if(gt(re)&&this.eat(se)&&this.eat(j)&&this.eatFixedHexDigits(4)){const de=this._lastIntValue;if(xt(de))return this._lastIntValue=bt(re,de),!0}this.rewind(M)}return!1}eatRegExpUnicodeCodePointEscape(){const M=this.index;return this.eat(Pe)&&this.eatHexDigits()&&this.eat(ze)&&ht(this._lastIntValue)?!0:(this.rewind(M),!1)}eatIdentityEscape(){const M=this.currentCodePoint;return this.isValidIdentityEscape(M)?(this._lastIntValue=M,this.advance(),!0):!1}isValidIdentityEscape(M){return M===-1?!1:this._unicodeMode?rr(M)||M===ae:this.strict?!l(M):this._nFlag?!(M===tt||M===rt):M!==tt}eatDecimalEscape(){this._lastIntValue=0;let M=this.currentCodePoint;if(M>=Z&&M<=H){do this._lastIntValue=10*this._lastIntValue+(M-ke),this.advance();while((M=this.currentCodePoint)>=ke&&M<=H);return!0}return!1}eatUnicodePropertyValueExpression(){const M=this.index;if(this.eatUnicodePropertyName()&&this.eat(he)){const re=this._lastStrValue;if(this.eatUnicodePropertyValue()){const de=this._lastStrValue;if(b(this.ecmaVersion,re,de))return{key:re,value:de||null};this.raise("Invalid property name")}}if(this.rewind(M),this.eatLoneUnicodePropertyNameOrValue()){const re=this._lastStrValue;if(b(this.ecmaVersion,"General_Category",re))return{key:"General_Category",value:re||null};if(T(this.ecmaVersion,re))return{key:re,value:null};if(this._unicodeSetsMode&&C(this.ecmaVersion,re))return{key:re,value:null,strings:!0};this.raise("Invalid property name")}return null}eatUnicodePropertyName(){for(this._lastStrValue="";Nr(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatUnicodePropertyValue(){for(this._lastStrValue="";Mr(this.currentCodePoint);)this._lastStrValue+=String.fromCodePoint(this.currentCodePoint),this.advance();return this._lastStrValue!==""}eatLoneUnicodePropertyNameOrValue(){return this.eatUnicodePropertyValue()}eatHexEscapeSequence(){const M=this.index;if(this.eat(Q)){if(this.eatFixedHexDigits(2))return!0;(this._unicodeMode||this.strict)&&this.raise("Invalid escape"),this.rewind(M)}return!1}eatDecimalDigits(){const M=this.index;for(this._lastIntValue=0;ot(this.currentCodePoint);)this._lastIntValue=10*this._lastIntValue+ft(this.currentCodePoint),this.advance();return this.index!==M}eatHexDigits(){const M=this.index;for(this._lastIntValue=0;nt(this.currentCodePoint);)this._lastIntValue=16*this._lastIntValue+ft(this.currentCodePoint),this.advance();return this.index!==M}eatLegacyOctalEscapeSequence(){if(this.eatOctalDigit()){const M=this._lastIntValue;if(this.eatOctalDigit()){const re=this._lastIntValue;M<=3&&this.eatOctalDigit()?this._lastIntValue=M*64+re*8+this._lastIntValue:this._lastIntValue=M*8+re}else this._lastIntValue=M;return!0}return!1}eatOctalDigit(){const M=this.currentCodePoint;return He(M)?(this.advance(),this._lastIntValue=M-ke,!0):(this._lastIntValue=0,!1)}eatFixedHexDigits(M){const re=this.index;this._lastIntValue=0;for(let de=0;de<M;++de){const Be=this.currentCodePoint;if(!nt(Be))return this.rewind(re),!1;this._lastIntValue=16*this._lastIntValue+ft(Be),this.advance()}return!0}eatModifiers(){let M=!1;for(;jr(this.currentCodePoint);)this.advance(),M=!0;return M}parseModifiers(M,re){const{ignoreCase:de,multiline:Be,dotAll:y}=this.parseFlags(this._reader.source,M,re);return{ignoreCase:de,multiline:Be,dotAll:y}}parseFlags(M,re,de){const Be={global:!1,ignoreCase:!1,multiline:!1,unicode:!1,sticky:!1,dotAll:!1,hasIndices:!1,unicodeSets:!1},y=new Set;y.add(st),y.add(mt),y.add(Qe),this.ecmaVersion>=2015&&(y.add(j),y.add(le),this.ecmaVersion>=2018&&(y.add(Ge),this.ecmaVersion>=2022&&(y.add(qe),this.ecmaVersion>=2024&&y.add(U))));for(let D=re;D<de;++D){const G=M.charCodeAt(D);if(y.has(G)){const Y=cr[G];Be[Y]&&this.raise(`Duplicated flag '${M[D]}'`,{index:re}),Be[Y]=!0}else this.raise(`Invalid flag '${M[D]}'`,{index:re})}return Be}}const an={},on={},hr={};function gr(je){return je.type==="Character"||je.type==="CharacterSet"||je.type==="CharacterClass"||je.type==="ExpressionCharacterClass"||je.type==="ClassStringDisjunction"}class Ur{constructor(M){var re;this._node=an,this._expressionBufferMap=new Map,this._flags=on,this._backreferences=[],this._capturingGroups=[],this.source="",this.strict=!!M?.strict,this.ecmaVersion=(re=M?.ecmaVersion)!==null&&re!==void 0?re:e}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(M,re,{global:de,ignoreCase:Be,multiline:y,unicode:D,sticky:G,dotAll:Y,hasIndices:ye,unicodeSets:Ne}){this._flags={type:"Flags",parent:null,start:M,end:re,raw:this.source.slice(M,re),global:de,ignoreCase:Be,multiline:y,unicode:D,sticky:G,dotAll:Y,hasIndices:ye,unicodeSets:Ne}}onPatternEnter(M){this._node={type:"Pattern",parent:null,start:M,end:M,raw:"",alternatives:[]},this._backreferences.length=0,this._capturingGroups.length=0}onPatternLeave(M,re){this._node.end=re,this._node.raw=this.source.slice(M,re);for(const de of this._backreferences){const Be=de.ref,y=typeof Be=="number"?[this._capturingGroups[Be-1]]:this._capturingGroups.filter(D=>D.name===Be);if(y.length===1){const D=y[0];de.ambiguous=!1,de.resolved=D}else de.ambiguous=!0,de.resolved=y;for(const D of y)D.references.push(de)}}onAlternativeEnter(M){const re=this._node;if(re.type!=="Assertion"&&re.type!=="CapturingGroup"&&re.type!=="Group"&&re.type!=="Pattern")throw new Error("UnknownError");this._node={type:"Alternative",parent:re,start:M,end:M,raw:"",elements:[]},re.alternatives.push(this._node)}onAlternativeLeave(M,re){const de=this._node;if(de.type!=="Alternative")throw new Error("UnknownError");de.end=re,de.raw=this.source.slice(M,re),this._node=de.parent}onGroupEnter(M){const re=this._node;if(re.type!=="Alternative")throw new Error("UnknownError");const de={type:"Group",parent:re,start:M,end:M,raw:"",modifiers:null,alternatives:[]};this._node=de,re.elements.push(this._node)}onGroupLeave(M,re){const de=this._node;if(de.type!=="Group"||de.parent.type!=="Alternative")throw new Error("UnknownError");de.end=re,de.raw=this.source.slice(M,re),this._node=de.parent}onModifiersEnter(M){const re=this._node;if(re.type!=="Group")throw new Error("UnknownError");this._node={type:"Modifiers",parent:re,start:M,end:M,raw:"",add:null,remove:null},re.modifiers=this._node}onModifiersLeave(M,re){const de=this._node;if(de.type!=="Modifiers"||de.parent.type!=="Group")throw new Error("UnknownError");de.end=re,de.raw=this.source.slice(M,re),this._node=de.parent}onAddModifiers(M,re,{ignoreCase:de,multiline:Be,dotAll:y}){const D=this._node;if(D.type!=="Modifiers")throw new Error("UnknownError");D.add={type:"ModifierFlags",parent:D,start:M,end:re,raw:this.source.slice(M,re),ignoreCase:de,multiline:Be,dotAll:y}}onRemoveModifiers(M,re,{ignoreCase:de,multiline:Be,dotAll:y}){const D=this._node;if(D.type!=="Modifiers")throw new Error("UnknownError");D.remove={type:"ModifierFlags",parent:D,start:M,end:re,raw:this.source.slice(M,re),ignoreCase:de,multiline:Be,dotAll:y}}onCapturingGroupEnter(M,re){const de=this._node;if(de.type!=="Alternative")throw new Error("UnknownError");this._node={type:"CapturingGroup",parent:de,start:M,end:M,raw:"",name:re,alternatives:[],references:[]},de.elements.push(this._node),this._capturingGroups.push(this._node)}onCapturingGroupLeave(M,re){const de=this._node;if(de.type!=="CapturingGroup"||de.parent.type!=="Alternative")throw new Error("UnknownError");de.end=re,de.raw=this.source.slice(M,re),this._node=de.parent}onQuantifier(M,re,de,Be,y){const D=this._node;if(D.type!=="Alternative")throw new Error("UnknownError");const G=D.elements.pop();if(G==null||G.type==="Quantifier"||G.type==="Assertion"&&G.kind!=="lookahead")throw new Error("UnknownError");const Y={type:"Quantifier",parent:D,start:G.start,end:re,raw:this.source.slice(G.start,re),min:de,max:Be,greedy:y,element:G};D.elements.push(Y),G.parent=Y}onLookaroundAssertionEnter(M,re,de){const Be=this._node;if(Be.type!=="Alternative")throw new Error("UnknownError");const y=this._node={type:"Assertion",parent:Be,start:M,end:M,raw:"",kind:re,negate:de,alternatives:[]};Be.elements.push(y)}onLookaroundAssertionLeave(M,re){const de=this._node;if(de.type!=="Assertion"||de.parent.type!=="Alternative")throw new Error("UnknownError");de.end=re,de.raw=this.source.slice(M,re),this._node=de.parent}onEdgeAssertion(M,re,de){const Be=this._node;if(Be.type!=="Alternative")throw new Error("UnknownError");Be.elements.push({type:"Assertion",parent:Be,start:M,end:re,raw:this.source.slice(M,re),kind:de})}onWordBoundaryAssertion(M,re,de,Be){const y=this._node;if(y.type!=="Alternative")throw new Error("UnknownError");y.elements.push({type:"Assertion",parent:y,start:M,end:re,raw:this.source.slice(M,re),kind:de,negate:Be})}onAnyCharacterSet(M,re,de){const Be=this._node;if(Be.type!=="Alternative")throw new Error("UnknownError");Be.elements.push({type:"CharacterSet",parent:Be,start:M,end:re,raw:this.source.slice(M,re),kind:de})}onEscapeCharacterSet(M,re,de,Be){const y=this._node;if(y.type!=="Alternative"&&y.type!=="CharacterClass")throw new Error("UnknownError");y.elements.push({type:"CharacterSet",parent:y,start:M,end:re,raw:this.source.slice(M,re),kind:de,negate:Be})}onUnicodePropertyCharacterSet(M,re,de,Be,y,D,G){const Y=this._node;if(Y.type!=="Alternative"&&Y.type!=="CharacterClass")throw new Error("UnknownError");const ye={type:"CharacterSet",parent:null,start:M,end:re,raw:this.source.slice(M,re),kind:de,strings:null,key:Be};if(G){if(Y.type==="CharacterClass"&&!Y.unicodeSets||D||y!==null)throw new Error("UnknownError");Y.elements.push(Object.assign(Object.assign({},ye),{parent:Y,strings:G,value:y,negate:D}))}else Y.elements.push(Object.assign(Object.assign({},ye),{parent:Y,strings:G,value:y,negate:D}))}onCharacter(M,re,de){const Be=this._node;if(Be.type!=="Alternative"&&Be.type!=="CharacterClass"&&Be.type!=="StringAlternative")throw new Error("UnknownError");Be.elements.push({type:"Character",parent:Be,start:M,end:re,raw:this.source.slice(M,re),value:de})}onBackreference(M,re,de){const Be=this._node;if(Be.type!=="Alternative")throw new Error("UnknownError");const y={type:"Backreference",parent:Be,start:M,end:re,raw:this.source.slice(M,re),ref:de,ambiguous:!1,resolved:hr};Be.elements.push(y),this._backreferences.push(y)}onCharacterClassEnter(M,re,de){const Be=this._node,y={type:"CharacterClass",parent:Be,start:M,end:M,raw:"",unicodeSets:de,negate:re,elements:[]};if(Be.type==="Alternative"){const D=Object.assign(Object.assign({},y),{parent:Be});this._node=D,Be.elements.push(D)}else if(Be.type==="CharacterClass"&&Be.unicodeSets&&de){const D=Object.assign(Object.assign({},y),{parent:Be,unicodeSets:de});this._node=D,Be.elements.push(D)}else throw new Error("UnknownError")}onCharacterClassLeave(M,re){const de=this._node;if(de.type!=="CharacterClass"||de.parent.type!=="Alternative"&&de.parent.type!=="CharacterClass")throw new Error("UnknownError");const Be=de.parent;de.end=re,de.raw=this.source.slice(M,re),this._node=Be;const y=this._expressionBufferMap.get(de);if(!y)return;if(de.elements.length>0)throw new Error("UnknownError");this._expressionBufferMap.delete(de);const D={type:"ExpressionCharacterClass",parent:Be,start:de.start,end:de.end,raw:de.raw,negate:de.negate,expression:y};if(y.parent=D,de!==Be.elements.pop())throw new Error("UnknownError");Be.elements.push(D)}onCharacterClassRange(M,re){const de=this._node;if(de.type!=="CharacterClass")throw new Error("UnknownError");const Be=de.elements,y=Be.pop();if(!y||y.type!=="Character")throw new Error("UnknownError");if(!de.unicodeSets){const Y=Be.pop();if(!Y||Y.type!=="Character"||Y.value!==J)throw new Error("UnknownError")}const D=Be.pop();if(!D||D.type!=="Character")throw new Error("UnknownError");const G={type:"CharacterClassRange",parent:de,start:M,end:re,raw:this.source.slice(M,re),min:D,max:y};D.parent=G,y.parent=G,Be.push(G)}onClassIntersection(M,re){var de;const Be=this._node;if(Be.type!=="CharacterClass"||!Be.unicodeSets)throw new Error("UnknownError");const y=Be.elements.pop(),D=(de=this._expressionBufferMap.get(Be))!==null&&de!==void 0?de:Be.elements.pop();if(!D||!y||D.type==="ClassSubtraction"||D.type!=="ClassIntersection"&&!gr(D)||!gr(y))throw new Error("UnknownError");const G={type:"ClassIntersection",parent:Be,start:M,end:re,raw:this.source.slice(M,re),left:D,right:y};D.parent=G,y.parent=G,this._expressionBufferMap.set(Be,G)}onClassSubtraction(M,re){var de;const Be=this._node;if(Be.type!=="CharacterClass"||!Be.unicodeSets)throw new Error("UnknownError");const y=Be.elements.pop(),D=(de=this._expressionBufferMap.get(Be))!==null&&de!==void 0?de:Be.elements.pop();if(!D||!y||D.type==="ClassIntersection"||D.type!=="ClassSubtraction"&&!gr(D)||!gr(y))throw new Error("UnknownError");const G={type:"ClassSubtraction",parent:Be,start:M,end:re,raw:this.source.slice(M,re),left:D,right:y};D.parent=G,y.parent=G,this._expressionBufferMap.set(Be,G)}onClassStringDisjunctionEnter(M){const re=this._node;if(re.type!=="CharacterClass"||!re.unicodeSets)throw new Error("UnknownError");this._node={type:"ClassStringDisjunction",parent:re,start:M,end:M,raw:"",alternatives:[]},re.elements.push(this._node)}onClassStringDisjunctionLeave(M,re){const de=this._node;if(de.type!=="ClassStringDisjunction"||de.parent.type!=="CharacterClass")throw new Error("UnknownError");de.end=re,de.raw=this.source.slice(M,re),this._node=de.parent}onStringAlternativeEnter(M){const re=this._node;if(re.type!=="ClassStringDisjunction")throw new Error("UnknownError");this._node={type:"StringAlternative",parent:re,start:M,end:M,raw:"",elements:[]},re.alternatives.push(this._node)}onStringAlternativeLeave(M,re){const de=this._node;if(de.type!=="StringAlternative")throw new Error("UnknownError");de.end=re,de.raw=this.source.slice(M,re),this._node=de.parent}}class Rr{constructor(M){this._state=new Ur(M),this._validator=new Fr(this._state)}parseLiteral(M,re=0,de=M.length){this._state.source=M,this._validator.validateLiteral(M,re,de);const Be=this._state.pattern,y=this._state.flags,D={type:"RegExpLiteral",parent:null,start:re,end:de,raw:M,pattern:Be,flags:y};return Be.parent=D,y.parent=D,D}parseFlags(M,re=0,de=M.length){return this._state.source=M,this._validator.validateFlags(M,re,de),this._state.flags}parsePattern(M,re=0,de=M.length,Be=void 0){return this._state.source=M,this._validator.validatePattern(M,re,de,Be),this._state.pattern}}class pr{constructor(M){this._handlers=M}visit(M){switch(M.type){case"Alternative":this.visitAlternative(M);break;case"Assertion":this.visitAssertion(M);break;case"Backreference":this.visitBackreference(M);break;case"CapturingGroup":this.visitCapturingGroup(M);break;case"Character":this.visitCharacter(M);break;case"CharacterClass":this.visitCharacterClass(M);break;case"CharacterClassRange":this.visitCharacterClassRange(M);break;case"CharacterSet":this.visitCharacterSet(M);break;case"ClassIntersection":this.visitClassIntersection(M);break;case"ClassStringDisjunction":this.visitClassStringDisjunction(M);break;case"ClassSubtraction":this.visitClassSubtraction(M);break;case"ExpressionCharacterClass":this.visitExpressionCharacterClass(M);break;case"Flags":this.visitFlags(M);break;case"Group":this.visitGroup(M);break;case"Modifiers":this.visitModifiers(M);break;case"ModifierFlags":this.visitModifierFlags(M);break;case"Pattern":this.visitPattern(M);break;case"Quantifier":this.visitQuantifier(M);break;case"RegExpLiteral":this.visitRegExpLiteral(M);break;case"StringAlternative":this.visitStringAlternative(M);break;default:throw new Error(`Unknown type: ${M.type}`)}}visitAlternative(M){this._handlers.onAlternativeEnter&&this._handlers.onAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onAlternativeLeave&&this._handlers.onAlternativeLeave(M)}visitAssertion(M){this._handlers.onAssertionEnter&&this._handlers.onAssertionEnter(M),(M.kind==="lookahead"||M.kind==="lookbehind")&&M.alternatives.forEach(this.visit,this),this._handlers.onAssertionLeave&&this._handlers.onAssertionLeave(M)}visitBackreference(M){this._handlers.onBackreferenceEnter&&this._handlers.onBackreferenceEnter(M),this._handlers.onBackreferenceLeave&&this._handlers.onBackreferenceLeave(M)}visitCapturingGroup(M){this._handlers.onCapturingGroupEnter&&this._handlers.onCapturingGroupEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onCapturingGroupLeave&&this._handlers.onCapturingGroupLeave(M)}visitCharacter(M){this._handlers.onCharacterEnter&&this._handlers.onCharacterEnter(M),this._handlers.onCharacterLeave&&this._handlers.onCharacterLeave(M)}visitCharacterClass(M){this._handlers.onCharacterClassEnter&&this._handlers.onCharacterClassEnter(M),M.elements.forEach(this.visit,this),this._handlers.onCharacterClassLeave&&this._handlers.onCharacterClassLeave(M)}visitCharacterClassRange(M){this._handlers.onCharacterClassRangeEnter&&this._handlers.onCharacterClassRangeEnter(M),this.visitCharacter(M.min),this.visitCharacter(M.max),this._handlers.onCharacterClassRangeLeave&&this._handlers.onCharacterClassRangeLeave(M)}visitCharacterSet(M){this._handlers.onCharacterSetEnter&&this._handlers.onCharacterSetEnter(M),this._handlers.onCharacterSetLeave&&this._handlers.onCharacterSetLeave(M)}visitClassIntersection(M){this._handlers.onClassIntersectionEnter&&this._handlers.onClassIntersectionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassIntersectionLeave&&this._handlers.onClassIntersectionLeave(M)}visitClassStringDisjunction(M){this._handlers.onClassStringDisjunctionEnter&&this._handlers.onClassStringDisjunctionEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onClassStringDisjunctionLeave&&this._handlers.onClassStringDisjunctionLeave(M)}visitClassSubtraction(M){this._handlers.onClassSubtractionEnter&&this._handlers.onClassSubtractionEnter(M),this.visit(M.left),this.visit(M.right),this._handlers.onClassSubtractionLeave&&this._handlers.onClassSubtractionLeave(M)}visitExpressionCharacterClass(M){this._handlers.onExpressionCharacterClassEnter&&this._handlers.onExpressionCharacterClassEnter(M),this.visit(M.expression),this._handlers.onExpressionCharacterClassLeave&&this._handlers.onExpressionCharacterClassLeave(M)}visitFlags(M){this._handlers.onFlagsEnter&&this._handlers.onFlagsEnter(M),this._handlers.onFlagsLeave&&this._handlers.onFlagsLeave(M)}visitGroup(M){this._handlers.onGroupEnter&&this._handlers.onGroupEnter(M),M.modifiers&&this.visit(M.modifiers),M.alternatives.forEach(this.visit,this),this._handlers.onGroupLeave&&this._handlers.onGroupLeave(M)}visitModifiers(M){this._handlers.onModifiersEnter&&this._handlers.onModifiersEnter(M),M.add&&this.visit(M.add),M.remove&&this.visit(M.remove),this._handlers.onModifiersLeave&&this._handlers.onModifiersLeave(M)}visitModifierFlags(M){this._handlers.onModifierFlagsEnter&&this._handlers.onModifierFlagsEnter(M),this._handlers.onModifierFlagsLeave&&this._handlers.onModifierFlagsLeave(M)}visitPattern(M){this._handlers.onPatternEnter&&this._handlers.onPatternEnter(M),M.alternatives.forEach(this.visit,this),this._handlers.onPatternLeave&&this._handlers.onPatternLeave(M)}visitQuantifier(M){this._handlers.onQuantifierEnter&&this._handlers.onQuantifierEnter(M),this.visit(M.element),this._handlers.onQuantifierLeave&&this._handlers.onQuantifierLeave(M)}visitRegExpLiteral(M){this._handlers.onRegExpLiteralEnter&&this._handlers.onRegExpLiteralEnter(M),this.visitPattern(M.pattern),this.visitFlags(M.flags),this._handlers.onRegExpLiteralLeave&&this._handlers.onRegExpLiteralLeave(M)}visitStringAlternative(M){this._handlers.onStringAlternativeEnter&&this._handlers.onStringAlternativeEnter(M),M.elements.forEach(this.visit,this),this._handlers.onStringAlternativeLeave&&this._handlers.onStringAlternativeLeave(M)}}function Et(je,M){return new Rr(M).parseLiteral(String(je))}function ln(je,M){new Fr(M).validateLiteral(je)}function qr(je,M){new pr(M).visit(je)}return lr.AST=a,lr.RegExpParser=Rr,lr.RegExpSyntaxError=$t,lr.RegExpValidator=Fr,lr.parseRegExpLiteral=Et,lr.validateRegExpLiteral=ln,lr.visitRegExpAST=qr,lr}var nl,Vy;function uT(){if(Vy)return nl;Vy=1;const a=ur().RegExpValidator,e=new class{constructor(){this._source="",this._controlChars=[],this._validator=new a(this)}onPatternEnter(){this._controlChars=[]}onCharacter(n,o,t){t>=0&&t<=31&&(this._source.codePointAt(n)===t||this._source.slice(n,o).startsWith("\\x")||this._source.slice(n,o).startsWith("\\u"))&&this._controlChars.push(`\\x${`0${t.toString(16)}`.slice(-2)}`)}collectControlChars(n,o){const t=typeof o=="string"&&o.includes("u"),l=typeof o=="string"&&o.includes("v");this._controlChars=[],this._source=n;try{this._validator.validatePattern(n,void 0,void 0,{unicode:t,unicodeSets:l})}catch{}return this._controlChars}};return nl={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(n){function o(t){if(t.regex)return t.regex;if(typeof t.value=="string"&&(t.parent.type==="NewExpression"||t.parent.type==="CallExpression")&&t.parent.callee.type==="Identifier"&&t.parent.callee.name==="RegExp"&&t.parent.arguments[0]===t){const l=t.value,f=t.parent.arguments.length>1&&t.parent.arguments[1].type==="Literal"&&typeof t.parent.arguments[1].value=="string"?t.parent.arguments[1].value:null;return{pattern:l,flags:f}}return null}return{Literal(t){const l=o(t);if(l){const{pattern:f,flags:u}=l,r=e.collectControlChars(f,u);r.length>0&&n.report({node:t,messageId:"unexpected",data:{controlChars:r.join(", ")}})}}}}},nl}var sl,$y;function cT(){return $y||($y=1,sl={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(a){return{DebuggerStatement(e){a.report({node:e,messageId:"unexpected"})}}}}),sl}var al,Gy;function fT(){return Gy||(Gy=1,al={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(a){return{UnaryExpression(e){e.operator==="delete"&&e.argument.type==="Identifier"&&a.report({node:e,messageId:"unexpected"})}}}}),al}var il,Wy;function pT(){return Wy||(Wy=1,il={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(a){const e=a.sourceCode;return{Literal(n){const o=e.getFirstToken(n);o.type==="RegularExpression"&&o.value[1]==="="&&a.report({node:n,messageId:"unexpected",fix(t){return t.replaceTextRange([o.range[0]+1,o.range[0]+2],"[=]")}})}}}}),il}var ol,zy;function mT(){if(zy)return ol;zy=1;const a=Le();return ol={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(e){const n=e.sourceCode;function o(l){return l.type==="Parameter"}function t(l){const f=n.getDeclaredVariables(l);for(let u=0;u<f.length;++u){const r=f[u],m=r.defs.filter(o),i={start:a.getOpeningParenOfParams(l,n).loc.start,end:n.getTokenBefore(l.body).loc.end};m.length>=2&&e.report({loc:i,messageId:"unexpected",data:{name:r.name}})}}return{FunctionDeclaration:t,FunctionExpression:t}}},ol}var ll,Hy;function dT(){if(Hy)return ll;Hy=1;const a=Le();return ll={meta:{type:"problem",dialects:["javascript","typescript"],language:"javascript",docs:{description:"Disallow duplicate class members",recommended:!0,url:"https://eslint.org/docs/latest/rules/no-dupe-class-members"},schema:[],messages:{unexpected:"Duplicate name '{{name}}'."}},create(e){let n=[];function o(t,l){const f=n.at(-1),u=`$${t}`;return f[u]||(f[u]={nonStatic:{init:!1,get:!1,set:!1},static:{init:!1,get:!1,set:!1}}),f[u][l?"static":"nonStatic"]}return{Program(){n=[]},ClassBody(){n.push(Object.create(null))},"ClassBody:exit"(){n.pop()},"MethodDefinition, PropertyDefinition"(t){if(t.value&&t.value.type==="TSEmptyBodyFunctionExpression")return;const l=a.getStaticPropertyName(t),f=t.type==="MethodDefinition"?t.kind:"field";if(l===null||f==="constructor")return;const u=o(l,t.static);let r;f==="get"?(r=u.init||u.get,u.get=!0):f==="set"?(r=u.init||u.set,u.set=!0):(r=u.init||u.get||u.set,u.init=!0),r&&e.report({loc:t.key.loc,messageId:"unexpected",data:{name:l}})}}}},ll}var ul,Ky;function hT(){if(Ky)return ul;Ky=1;const a=Le();function e(l,f,u){return f.every(r=>u.some(m=>l(r,m)))}function n(l,f){return f.type==="LogicalExpression"&&f.operator===l?[...n(l,f.left),...n(l,f.right)]:[f]}const o=n.bind(null,"||"),t=n.bind(null,"&&");return ul={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(l){const f=l.sourceCode;function u(m,i){return m.type!==i.type?!1:m.type==="LogicalExpression"&&(m.operator==="||"||m.operator==="&&")&&m.operator===i.operator?u(m.left,i.left)&&u(m.right,i.right)||u(m.left,i.right)&&u(m.right,i.left):a.equalTokens(m,i,f)}const r=e.bind(null,u);return{IfStatement(m){const i=m.test,c=i.type==="LogicalExpression"&&i.operator==="&&"?[i,...t(i)]:[i];let d=m,s=c.map(p=>o(p).map(t));for(;d.parent&&d.parent.type==="IfStatement"&&d.parent.alternate===d;){d=d.parent;const p=o(d.test).map(t);if(s=s.map(h=>h.filter(g=>!p.some(v=>r(v,g)))),s.some(h=>h.length===0)){l.report({node:i,messageId:"unexpected"});break}}}}}},ul}var cl,Xy;function gT(){if(Xy)return cl;Xy=1;const a=Le(),e=/^(?:init|get)$/u,n=/^(?:init|set)$/u;class o{constructor(l,f){this.upper=l,this.node=f,this.properties=new Map}getPropertyInfo(l){const f=a.getStaticPropertyName(l);return this.properties.has(f)||this.properties.set(f,{get:!1,set:!1}),this.properties.get(f)}isPropertyDefined(l){const f=this.getPropertyInfo(l);return e.test(l.kind)&&f.get||n.test(l.kind)&&f.set}defineProperty(l){const f=this.getPropertyInfo(l);e.test(l.kind)&&(f.get=!0),n.test(l.kind)&&(f.set=!0)}}return cl={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 l=null;return{ObjectExpression(f){l=new o(l,f)},"ObjectExpression:exit"(){l=l.upper},Property(f){const u=a.getStaticPropertyName(f);f.parent.type==="ObjectExpression"&&u!==null&&(u==="__proto__"&&f.kind==="init"&&!f.computed&&!f.shorthand&&!f.method||(l.isPropertyDefined(f)&&t.report({node:l.node,loc:f.key.loc,messageId:"unexpected",data:{name:u}}),l.defineProperty(f)))}}}},cl}var fl,Jy;function yT(){if(Jy)return fl;Jy=1;const a=Le();return fl={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(e){const n=e.sourceCode;function o(t,l){return t.type!==l.type?!1:a.equalTokens(t,l,n)}return{SwitchStatement(t){const l=[];for(const f of t.cases)if(f.test){const u=f.test;l.some(r=>o(r,u))?e.report({node:f,messageId:"unexpected"}):l.push(u)}}}}},fl}var pl,Yy;function vT(){if(Yy)return pl;Yy=1;const a=["ImportSpecifier","ExportSpecifier"],e=["ImportNamespaceSpecifier","ExportNamespaceSpecifier"];function n(i,c){return(c==="named"?a:e).includes(i)}function o(i){if(i.specifiers&&i.specifiers.length>0){const c=i.specifiers,d=c.findIndex(({type:p})=>n(p,"named")||n(p,"namespace")),s=d>-1?d:0;return c[s].type}return i.type==="ExportAllDeclaration"?i.exported?"ExportNamespaceSpecifier":"ExportAll":"SideEffectImport"}function t(i,c){const d=o(i),s=o(c);if((i.importKind==="type"||i.exportKind==="type")&&(c.importKind==="type"||c.exportKind==="type")){const p=d==="ImportDefaultSpecifier",h=s==="ImportDefaultSpecifier",g=n(d,"named"),v=n(s,"named");if(p&&v||h&&g)return!1}return!(d==="ExportAll"&&s!=="ExportAll"&&s!=="SideEffectImport"||d!=="ExportAll"&&d!=="SideEffectImport"&&s==="ExportAll"||n(d,"namespace")&&n(s,"named")||n(s,"namespace")&&n(d,"named"))}function l(i,c,d){let s=0;for(;s<c.length;){const p=c[s];if(d){const h=i.importKind==="type"||i.exportKind==="type",g=p.importKind==="type"||p.exportKind==="type";if(h!==g){s++;continue}}if(t(i,p))return!0;s++}return!1}function f(i,c){return i.filter(({declarationType:d})=>d===c).map(({node:d})=>d)}function u(i){return i&&i.source&&i.source.value?i.source.value.trim():""}function r(i,c,d,s,p,h){const g=u(c);if(d.has(g)){const v=d.get(g),E=[],b=f(v,"import");let T;p&&(T=f(v,"export")),s==="import"?(l(c,b,h)&&E.push("import"),p&&l(c,T,h)&&E.push("importAs")):s==="export"&&(l(c,T,h)&&E.push("export"),l(c,b,h)&&E.push("exportAs")),E.forEach(C=>i.report({node:c,messageId:C,data:{module:g}}))}}function m(i,c,d,s,p){return function(h){const g=u(h);if(g){r(i,h,c,d,s,p);const v={node:h,declarationType:d};let E=[v];c.has(g)&&(E=[...c.get(g),v]),c.set(g,E)}}}return pl={meta:{dialects:["javascript","typescript"],language:"javascript",type:"problem",defaultOptions:[{includeExports:!1,allowSeparateTypeImports:!1}],docs:{description:"Disallow duplicate module imports",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(i){const[{includeExports:c,allowSeparateTypeImports:d}]=i.options,s=new Map,p={ImportDeclaration:m(i,s,"import",c,d)};return c&&(p.ExportNamedDeclaration=m(i,s,"export",c,d),p.ExportAllDeclaration=m(i,s,"export",c,d)),p}},pl}var ml,Qy;function nn(){if(Qy)return ml;Qy=1;const a=Le();class e{constructor(o,t){this.fixer=o,this.sourceCode=t,this.retainedRange=null}retainRange(o){return this.retainedRange=o,this}retainEnclosingFunction(o){const t=a.getUpperFunction(o);return this.retainRange(t?t.range:this.sourceCode.ast.range)}retainSurroundingTokens(o){const t=this.sourceCode.getTokenBefore(o)||o,l=this.sourceCode.getTokenAfter(o)||o;return this.retainRange([t.range[0],l.range[1]])}replaceTextRange(o,t){let l;return this.retainedRange?l=[Math.min(this.retainedRange[0],o[0]),Math.max(this.retainedRange[1],o[1])]:l=o,this.fixer.replaceTextRange(l,this.sourceCode.text.slice(l[0],o[0])+t+this.sourceCode.text.slice(o[1],l[1]))}remove(o){return this.replaceTextRange(o.range,"")}}return ml=e,ml}var dl,Zy;function ST(){if(Zy)return dl;Zy=1;const a=Le(),e=nn();return dl={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(n){const[{allowElseIf:o}]=n.options,t=n.sourceCode;function l(g,v){if(g.length===0)return!0;const E=v.variableScope;if(v.variables.filter(({defs:C})=>C.length>0).some(({name:C})=>g.includes(C))||v!==E&&v.upper.type==="catch"&&v.upper.variables.some(({name:C})=>g.includes(C))||v.variables.filter(({defs:C,references:S})=>C.length===0&&S.length>0).some(({name:C})=>g.includes(C))||v.through.some(C=>g.includes(C.identifier.name)))return!1;if(v!==E){const C=v.block.range;if(E.variables.filter(({name:w})=>g.includes(w)).some(w=>w.defs.some(({node:{range:x}})=>C[0]<=x[0]&&x[1]<=C[1])))return!1}return!0}function f(g,v){if(g.type==="FunctionDeclaration")return!1;if(g.type!=="BlockStatement")return!0;const E=v.childScopes.find(({block:T})=>T===g);if(!E)return!0;const b=E.variables.map(({name:T})=>T);return l(b,v)}function u(g){const v=t.getScope(g.parent);n.report({node:g,messageId:"unexpected",fix(E){if(!f(g,v))return null;const b=t.getFirstToken(g),T=t.getTokenBefore(b),C=t.getText(g),S=t.getTokenBefore(T);let w,x;b.type==="Punctuator"&&b.value==="{"?x=t.getTokenAfter(b):x=b;const A=g.parent.consequent.type!=="BlockStatement"&&S.value!==";",k=/^[([/+`-]/u.test(x.value);if(A&&k)return null;const R=t.getLastToken(g),I=t.getTokenBefore(R);if(I.value!==";"){const B=t.getTokenAfter(R),F=B&&/^[([/+`-]/u.test(B.value),O=B&&B.loc.start.line===I.loc.start.line;if(F||O&&B.value!=="}")return null}return b.type==="Punctuator"&&b.value==="{"?w=C.slice(1,-1):w=C,new e(E,t).retainEnclosingFunction(g).replaceTextRange([T.range[0],g.range[1]],w)}})}function r(g){return g.type==="ReturnStatement"}function m(g){if(g.type==="BlockStatement"){const v=g.body,E=v.at(-1);return E&&r(E)}return r(g)}function i(g){return g.alternate&&g.consequent}function c(g){return g.type==="IfStatement"&&i(g)&&m(g.alternate)&&m(g.consequent)}function d(g){return r(g)||c(g)}function s(g){return g.type==="BlockStatement"?g.body.some(d):d(g)}function p(g){const v=g.parent;if(!a.STATEMENT_LIST_PARENTS.has(v.type))return;const E=[];let b;for(let T=g;T.type==="IfStatement";T=T.alternate){if(!T.alternate)return;E.push(T.consequent),b=T.alternate}E.every(s)&&u(b)}function h(g){const v=g.parent;if(!a.STATEMENT_LIST_PARENTS.has(v.type))return;const E=g.alternate;E&&s(g.consequent)&&u(E)}return{"IfStatement:exit":o?p:h}}},dl}var hl,ev;function ET(){if(ev)return hl;ev=1;const a=Le();return hl={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(e){const[{allowEmptyCatch:n}]=e.options,o=e.sourceCode;return{BlockStatement(t){t.body.length===0&&(a.isFunction(t.parent)||n&&t.parent.type==="CatchClause"||o.getCommentsInside(t).length>0||e.report({node:t,messageId:"unexpected",data:{type:"block"},suggest:[{messageId:"suggestComment",data:{type:"block"},fix(l){const f=[t.range[0]+1,t.range[1]-1];return l.replaceTextRange(f," /* empty */ ")}}]}))},SwitchStatement(t){if(typeof t.cases>"u"||t.cases.length===0){const l=o.getTokenAfter(t.discriminant,a.isOpeningBraceToken),f=o.getLastToken(t);if(o.commentsExistBetween(l,f))return;e.report({node:t,loc:{start:l.loc.start,end:f.loc.end},messageId:"unexpected",data:{type:"switch"},suggest:[{messageId:"suggestComment",data:{type:"switch"},fix(u){const r=[l.range[1],f.range[0]];return u.replaceTextRange(r," /* empty */ ")}}]})}}}}},hl}var gl,tv;function bT(){if(tv)return gl;tv=1;const{RegExpParser:a,visitRegExpAST:e}=ur(),n=new a,o=/\[\]/u;return gl={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]"(l){const{pattern:f,flags:u}=l.regex;if(!o.test(f))return;let r;try{r=n.parsePattern(f,0,f.length,{unicode:u.includes("u"),unicodeSets:u.includes("v")})}catch{return}e(r,{onCharacterClassEnter(m){!m.negate&&m.elements.length===0&&t.report({node:l,messageId:"unexpected"})}})}}}},gl}var yl,rv;function CT(){if(rv)return yl;rv=1;const a=Le(),e=Object.freeze(["functions","arrowFunctions","generatorFunctions","methods","generatorMethods","getters","setters","constructors","asyncFunctions","asyncMethods","privateConstructors","protectedConstructors","decoratedFunctions","overrideMethods"]);function n(t){const l=t.parent;let f;if(t.type==="ArrowFunctionExpression")return"arrowFunctions";if(l.type==="Property"){if(l.kind==="get")return"getters";if(l.kind==="set")return"setters";f=l.method?"methods":"functions"}else if(l.type==="MethodDefinition"){if(l.kind==="get")return"getters";if(l.kind==="set")return"setters";if(l.kind==="constructor")return"constructors";f="methods"}else f="functions";let u;if(t.generator)u="generator";else if(t.async)u="async";else return f;return u+f[0].toUpperCase()+f.slice(1)}function o(t){return t.params.some(l=>l.type==="TSParameterProperty")}return yl={meta:{dialects:["javascript","typescript"],language:"javascript",hasSuggestions:!0,type:"suggestion",defaultOptions:[{allow:[]}],docs:{description:"Disallow empty functions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-empty-function"},schema:[{type:"object",properties:{allow:{type:"array",items:{enum:e},uniqueItems:!0}},additionalProperties:!1}],messages:{unexpected:"Unexpected empty {{name}}.",suggestComment:"Add comment inside empty {{name}}."}},create(t){const[{allow:l}]=t.options,f=t.sourceCode;function u(m){const i=n(m);return!!(l.includes(i)||i==="constructors"&&(m.parent.accessibility==="private"&&l.includes("privateConstructors")||m.parent.accessibility==="protected"&&l.includes("protectedConstructors")||o(m))||/(?:g|s)etters|methods$/iu.test(i)&&(m.parent.decorators?.length&&l.includes("decoratedFunctions")||m.parent.override&&l.includes("overrideMethods")))}function r(m){const i=a.getFunctionNameWithKind(m),c=f.getTokens(m.body,{includeComments:!0,filter:a.isCommentToken});!u(m)&&m.body.type==="BlockStatement"&&m.body.body.length===0&&c.length===0&&t.report({node:m,loc:m.body.loc,messageId:"unexpected",data:{name:i},suggest:[{messageId:"suggestComment",data:{name:i},fix(d){const s=[m.body.range[0]+1,m.body.range[1]-1];return d.replaceTextRange(s," /* empty */ ")}}]})}return{ArrowFunctionExpression:r,FunctionDeclaration:r,FunctionExpression:r}}},yl}var vl,nv;function xT(){if(nv)return vl;nv=1;const a=Le();return vl={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(e){const[{allowObjectPatternsAsParameters:n}]=e.options;return{ObjectPattern(o){o.properties.length>0||n&&(a.isFunction(o.parent)||o.parent.type==="AssignmentPattern"&&a.isFunction(o.parent.parent)&&o.parent.right.type==="ObjectExpression"&&o.parent.right.properties.length===0)||e.report({node:o,messageId:"unexpected",data:{type:"object"}})},ArrayPattern(o){o.elements.length===0&&e.report({node:o,messageId:"unexpected",data:{type:"array"}})}}}},vl}var Sl,sv;function wT(){return sv||(sv=1,Sl={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(a){const e=a.sourceCode;return{StaticBlock(n){if(n.body.length===0){const o=e.getFirstToken(n,{skip:1}),t=e.getLastToken(n);e.getCommentsBefore(t).length===0&&a.report({loc:{start:o.loc.start,end:t.loc.end},messageId:"unexpected",suggest:[{messageId:"suggestComment",fix(l){const f=[o.range[1],t.range[0]];return l.replaceTextRange(f," /* empty */ ")}}]})}}}}}),Sl}var El,av;function AT(){return av||(av=1,El={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(a){return{BinaryExpression(e){const n=e.operator==="=="||e.operator==="!=";(e.right.type==="Literal"&&e.right.raw==="null"&&n||e.left.type==="Literal"&&e.left.raw==="null"&&n)&&a.report({node:e,messageId:"unexpected"})}}}}),El}var bl,iv;function TT(){if(iv)return bl;iv=1;const a=Le(),e=Object.freeze(["global","window","globalThis"]);function n(o,t){return a.isSpecificMemberAccess(o,null,t)}return bl={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(o){const[{allowIndirect:t}]=o.options,l=o.sourceCode;let f=null;function u(d){const s=l.getScope(d).isStrict;f={upper:f,node:d,strict:s,isTopLevelOfScript:!1,defaultThis:!1,initialized:s}}function r(){f=f.upper}function m(d){const s=d.parent,p=d.type==="MemberExpression"?d.property:d,h=s.type==="CallExpression"&&s.callee===d?s:d;o.report({node:h,loc:p.loc,messageId:"unexpected"})}function i(d){for(let s=0;s<e.length;++s){const p=e[s],h=a.getVariableByName(d,p);if(!h)continue;const g=h.references;for(let v=0;v<g.length;++v){let b=g[v].identifier.parent;for(;n(b,p);)b=b.parent;n(b,"eval")&&m(b)}}}function c(d){const s=a.getVariableByName(d,"eval");if(!s)return;const p=s.references;for(let h=0;h<p.length;++h){const v=p[h].identifier;v.name==="eval"&&!a.isCallee(v)&&m(v)}}return t?{"CallExpression:exit"(d){const s=d.callee;!d.optional&&a.isSpecificId(s,"eval")&&m(s)}}:{"CallExpression:exit"(d){const s=d.callee;a.isSpecificId(s,"eval")&&m(s)},Program(d){const s=l.getScope(d),p=o.languageOptions.parserOptions.ecmaFeatures||{},h=s.isStrict||d.sourceType==="module"||p.globalReturn&&s.childScopes[0].isStrict,g=d.sourceType!=="module"&&!p.globalReturn;f={upper:null,node:d,strict:h,isTopLevelOfScript:g,defaultThis:!0,initialized:!0}},"Program:exit"(d){const s=l.getScope(d);r(),c(s),i(s)},FunctionDeclaration:u,"FunctionDeclaration:exit":r,FunctionExpression:u,"FunctionExpression:exit":r,"PropertyDefinition > *.value":u,"PropertyDefinition > *.value:exit":r,StaticBlock:u,"StaticBlock:exit":r,ThisExpression(d){n(d.parent,"eval")&&(f.initialized||(f.initialized=!0,f.defaultThis=a.isDefaultThisBinding(f.node,l)),(f.isTopLevelOfScript||!f.strict&&f.defaultThis)&&m(d.parent))}}}},bl}var Cl,ov;function kT(){if(ov)return Cl;ov=1;const a=Le();return Cl={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(e){const n=e.sourceCode;function o(t){a.getModifyingReferences(t.references).forEach(l=>{e.report({node:l.identifier,messageId:"unexpected"})})}return{CatchClause(t){n.getDeclaredVariables(t).forEach(o)}}}},Cl}var xl,lv;function DT(){if(lv)return xl;lv=1;const a=Le();return xl={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(e){const n=e.sourceCode,o=new Set(e.options[0].exceptions),t=new Set(Object.keys(a.ECMASCRIPT_GLOBALS).filter(i=>i[0].toUpperCase()===i[0]).filter(i=>!o.has(i)));function l(i,c){e.report({node:i,messageId:"unexpected",data:{builtin:c}})}function f(i){return!!(i&&i.parent&&i.parent.type==="MemberExpression"&&i.parent.object===i&&a.getStaticPropertyName(i.parent)==="prototype")}function u(i){return i.parent.type==="MemberExpression"&&i.parent.object===i&&i.parent.parent.type==="AssignmentExpression"&&i.parent.parent.left===i.parent}function r(i){return i.parent.type==="CallExpression"&&i.parent.arguments[0]===i&&a.isSpecificMemberAccess(i.parent.callee,"Object",/^definePropert(?:y|ies)$/u)}function m(i){if(!f(i))return;const c=i.parent.parent.type==="ChainExpression"?i.parent.parent:i.parent;u(c)?l(c.parent.parent,i.name):r(c)&&l(c.parent,i.name)}return{"Program:exit"(i){const c=n.getScope(i);t.forEach(d=>{const s=c.set.get(d);s&&s.references&&s.references.map(p=>p.identifier).forEach(m)})}}}},xl}var wl,uv;function PT(){if(uv)return wl;uv=1;const a=Le(),e=new Set(["Literal","Identifier","ThisExpression","FunctionExpression"]);return wl={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(n){const o=n.sourceCode;let t=null;function l(d){return e.has(d.type)}function f(d){const s=d.parent,p=s.parent.type==="ChainExpression"?s.parent.parent:s.parent;n.report({node:p,messageId:"unexpected",loc:s.property.loc,fix(h){if(!l(p.arguments[0]))return null;const g=[[o.getTokenAfter(s.object,a.isNotClosingParenToken),o.getLastToken(s)],[o.getTokenAfter(s,a.isNotClosingParenToken),o.getLastToken(p)]],v=g[0][0],E=g[1][1];return o.commentsExistBetween(v,E)?null:g.map(([b,T])=>h.removeRange([b.range[0],T.range[1]]))}})}function u(d){if(!a.isSpecificMemberAccess(d.parent,null,"bind"))return!1;const s=d.parent.parent.type==="ChainExpression"?d.parent.parent:d.parent;return s.parent.type==="CallExpression"&&s.parent.callee===s&&s.parent.arguments.length===1&&s.parent.arguments[0].type!=="SpreadElement"}function r(d){t={isBound:u(d),thisFound:!1,upper:t}}function m(d){t.isBound&&!t.thisFound&&f(d),t=t.upper}function i(d){u(d)&&f(d)}function c(){t&&(t.thisFound=!0)}return{"ArrowFunctionExpression:exit":i,FunctionDeclaration:r,"FunctionDeclaration:exit":m,FunctionExpression:r,"FunctionExpression:exit":m,ThisExpression:c}}},wl}var Al,cv;function IT(){if(cv)return Al;cv=1;const a=Le(),e=qt(),n=a.getPrecedence;return Al={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(o){const t=o.sourceCode,[{enforceForLogicalOperands:l,enforceForInnerExpressions:f}]=o.options,u=new Set(["IfStatement","DoWhileStatement","WhileStatement","ConditionalExpression","ForStatement"]);function r(p){return(p.type==="CallExpression"||p.type==="NewExpression")&&p.callee.type==="Identifier"&&p.callee.name==="Boolean"}function m(p){return r(p.parent)&&p===p.parent.arguments[0]||u.has(p.parent.type)&&p===p.parent.test||p.parent.type==="UnaryExpression"&&p.parent.operator==="!"}function i(p){return p.parent.type==="ChainExpression"||(l||f)&&p.parent.type==="LogicalExpression"&&(p.parent.operator==="||"||p.parent.operator==="&&"||f&&p.parent.operator==="??"&&p.parent.right===p)||f&&(p.parent.type==="ConditionalExpression"&&(p.parent.consequent===p||p.parent.alternate===p)||p.parent.type==="SequenceExpression"&&p.parent.expressions.at(-1)===p)?i(p.parent):m(p)}function c(p){return!!t.getCommentsInside(p).length}function d(p){return e.isParenthesized(1,p,t)}function s(p,h){if(p.parent.type==="ChainExpression")return s(p.parent,h);if(d(p))return!1;const g=p.parent;switch(g.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===g.test)return n(h)<=n(g);if(p===g.consequent||p===g.alternate)return n(h)<n({type:"AssignmentExpression"});throw new Error("Ternary child must be test, consequent, or alternate.");case"UnaryExpression":return n(h)<n(g);case"LogicalExpression":return a.isMixedLogicalAndCoalesceExpressions(h,g)?!0:p===g.left?n(h)<n(g):n(h)<=n(g);default:throw new Error(`Unexpected parent type: ${g.type}`)}}return{UnaryExpression(p){const h=p.parent;p.operator!=="!"||h.type!=="UnaryExpression"||h.operator!=="!"||i(h)&&o.report({node:h,messageId:"unexpectedNegation",fix(g){if(c(h))return null;if(s(h,p.argument))return g.replaceText(h,`(${t.getText(p.argument)})`);let v="";const E=t.getTokenBefore(h),b=t.getFirstToken(p.argument);return E&&E.range[1]===h.range[0]&&!a.canTokensBeAdjacent(E,b)&&(v=" "),g.replaceText(h,v+t.getText(p.argument))}})},CallExpression(p){p.callee.type!=="Identifier"||p.callee.name!=="Boolean"||i(p)&&o.report({node:p,messageId:"unexpectedCall",fix(h){const g=p.parent;if(p.arguments.length===0){if(g.type==="UnaryExpression"&&g.operator==="!"){if(c(g))return null;const v="true";let E="";const b=t.getTokenBefore(g);return b&&b.range[1]===g.range[0]&&!a.canTokensBeAdjacent(b,v)&&(E=" "),h.replaceText(g,E+v)}return c(p)?null:h.replaceText(p,"false")}if(p.arguments.length===1){const v=p.arguments[0];return v.type==="SpreadElement"||c(p)?null:s(p,v)?h.replaceText(p,`(${t.getText(v)})`):h.replaceText(p,t.getText(v))}return null}})}}}},Al}var Tl,fv;function FT(){if(fv)return Tl;fv=1;const a=Le();return Tl={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(e){const n=e.sourceCode;let o=null;function t(m){o={label:m.parent.type==="LabeledStatement"?m.parent.label:null,breakable:!0,upper:o}}function l(){o=o.upper}function f(m){a.isBreakableStatement(m.body)||(o={label:m.label,breakable:!1,upper:o})}function u(m){a.isBreakableStatement(m.body)||(o=o.upper)}function r(m){if(!m.label)return;const i=m.label;for(let c=o;c!==null;c=c.upper)if(c.breakable||c.label&&c.label.name===i.name){c.breakable&&c.label&&c.label.name===i.name&&e.report({node:i,messageId:"unexpected",data:i,fix(d){const s=n.getFirstToken(m);return n.commentsExistBetween(s,i)?null:d.removeRange([s.range[1],i.range[1]])}});return}}return{WhileStatement:t,"WhileStatement:exit":l,DoWhileStatement:t,"DoWhileStatement:exit":l,ForStatement:t,"ForStatement:exit":l,ForInStatement:t,"ForInStatement:exit":l,ForOfStatement:t,"ForOfStatement:exit":l,SwitchStatement:t,"SwitchStatement:exit":l,LabeledStatement:f,"LabeledStatement:exit":u,BreakStatement:r,ContinueStatement:r}}},Tl}var kl,pv;function RT(){if(pv)return kl;pv=1;const{isParenthesized:a}=qt(),e=Le();return kl={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(n){const o=n.sourceCode,t=new WeakSet,l=e.getPrecedence,f=n.options[0]!=="functions",u=f&&n.options[1]&&n.options[1].conditionalAssign===!1,r=f&&n.options[1]&&n.options[1].ternaryOperandBinaryExpressions===!1,m=f&&n.options[1]&&n.options[1].nestedBinaryExpressions===!1,i=f&&n.options[1]&&n.options[1].returnAssign===!1,c=f&&n.options[1]&&n.options[1].ignoreJSX,d=f&&n.options[1]&&n.options[1].enforceForArrowConditionals===!1,s=f&&n.options[1]&&n.options[1].enforceForSequenceExpressions===!1,p=f&&n.options[1]&&n.options[1].enforceForNewInMemberExpressions===!1,h=f&&n.options[1]&&n.options[1].enforceForFunctionPrototypeMethods===!1,g=f&&n.options[1]&&n.options[1].allowParensAfterCommentPattern,v=l({type:"AssignmentExpression"}),E=l({type:"UpdateExpression"});let b;function T(z){const oe=e.skipChainExpression(z);if(oe.type!=="CallExpression")return!1;const Te=e.skipChainExpression(oe.callee);return Te.type==="MemberExpression"&&Te.object.type==="FunctionExpression"&&["call","apply"].includes(e.getStaticPropertyName(Te))}function C(z){if(z.type==="JSXElement"||z.type==="JSXFragment"){const oe=z.loc.start.line===z.loc.end.line;switch(c){case"all":return!1;case"multi-line":return oe;case"single-line":return!oe}}return z.type==="SequenceExpression"&&s||T(z)&&h?!1:f||z.type==="FunctionExpression"||z.type==="ArrowFunctionExpression"}function S(z){return a(1,z,o)}function w(z){return a(2,z,o)}function x(z){return C(z)&&S(z)}function A(z){return C(z)&&w(z)}function k(z,oe){return!!(C(z)&&S(z)&&(l(z)>=oe||w(z)))}function R(z){return u&&z.test.type==="AssignmentExpression"}function I(z){for(let oe=z;oe;oe=oe.parent)if(oe.type==="ReturnStatement"||oe.type==="ArrowFunctionExpression"&&oe.body.type!=="BlockStatement")return!0;return!1}function B(z){const oe=o.getLastToken(z),Te=o.getTokenBefore(oe);return z.arguments.length>0||e.isOpeningParenToken(Te)&&e.isClosingParenToken(oe)&&z.callee.range[1]<z.range[1]}function F(z){return!!(z.type==="AssignmentExpression"||z.type==="ConditionalExpression"&&(z.consequent.type==="AssignmentExpression"||z.alternate.type==="AssignmentExpression")||z.left&&z.left.type==="AssignmentExpression"||z.right&&z.right.type==="AssignmentExpression")}function O(z){return!i||!I(z)?!1:z.type==="ReturnStatement"?z.argument&&F(z.argument):z.type==="ArrowFunctionExpression"&&z.body.type!=="BlockStatement"?F(z.body):F(z)}function $(z,oe){return z.loc.end.line===oe.loc.start.line?x(oe):A(oe)}function N(z){const oe=o.getTokenBefore(z),Te=o.getTokenBefore(oe,{includeComments:!0}),Re=o.getTokenAfter(oe,{includeComments:!0});return Te&&Te.range[1]===oe.range[0]&&oe.range[1]===Re.range[0]&&!e.canTokensBeAdjacent(Te,Re)}function _(z){const oe=o.getTokensAfter(z,{count:2}),Te=oe[0],Re=oe[1],Ie=o.getLastToken(z);return Te&&Re&&!o.isSpaceBetweenTokens(Te,Re)&&!e.canTokensBeAdjacent(Ie,Re)}function X(z){const oe=e.skipChainExpression(z);return oe.type==="CallExpression"&&oe.callee.type==="FunctionExpression"}function L(z){return z&&(z.type==="Identifier"||z.type==="MemberExpression")}function K(z){return z.type!=="Literal"||typeof z.value!="string"||w(z)?!0:!e.isTopLevelExpressionStatement(z.parent)}function J(z){const oe=o.getTokenBefore(z),Te=o.getTokenAfter(z);if(!w(z)){if(t.has(o.getFirstToken(z))||X(z)&&!S(z.callee))return;if(g){const Ie=o.getCommentsBefore(oe),W=Ie.length,Je=new RegExp(g,"u");if(W>0&&Je.test(Ie[W-1].value))return}}function Re(){n.report({node:z,loc:oe.loc,messageId:"unexpected",fix:K(z)?Ie=>{const W=o.text.slice(oe.range[1],Te.range[0]);return Ie.replaceTextRange([oe.range[0],Te.range[1]],(N(z)?" ":"")+W+(_(z)?" ":""))}:null})}if(b){b.reports.push({node:z,finishReport:Re});return}Re()}function ge(z){k(z.argument,l(z))&&J(z.argument)}function ae(z){let oe=z.object,Te=z.object.type;for(;Te==="MemberExpression";)oe=oe.object,Te=oe.type;return Te==="CallExpression"}function ke(z){const oe=z.callee;k(oe,l(z))&&(A(oe)||!(X(z)||oe.type==="NewExpression"&&!B(oe)&&!(z.type==="NewExpression"&&!B(z))||z.type==="NewExpression"&&oe.type==="MemberExpression"&&ae(oe)||!z.optional&&oe.type==="ChainExpression"))&&J(z.callee),z.arguments.filter(Te=>k(Te,v)).forEach(J)}function Z(z){const oe=l(z),Te=l(z.left),Re=l(z.right),Ie=z.operator==="**",W=m&&(z.left.type==="BinaryExpression"||z.left.type==="LogicalExpression"),Je=m&&(z.right.type==="BinaryExpression"||z.right.type==="LogicalExpression");!W&&x(z.left)&&(!(["AwaitExpression","UnaryExpression"].includes(z.left.type)&&Ie)&&!e.isMixedLogicalAndCoalesceExpressions(z.left,z)&&(Te>oe||Te===oe&&!Ie)||w(z.left))&&J(z.left),!Je&&x(z.right)&&(!e.isMixedLogicalAndCoalesceExpressions(z.right,z)&&(Re>oe||Re===oe&&Ie)||w(z.right))&&J(z.right)}function P(z){if(!z.superClass)return;(l(z.superClass)>E?x(z.superClass):A(z.superClass))&&J(z.superClass)}function H(z){k(z.argument,v)&&J(z.argument)}function fe(z){const oe=S(z)?o.getTokenBefore(z):o.getFirstToken(z),Te=o.getTokenAfter(oe,e.isNotOpeningParenToken),Re=Te?o.getTokenAfter(Te):null,Ie=Te?o.getTokenAfter(Te,e.isNotClosingParenToken):null;e.isOpeningParenToken(oe)&&(e.isOpeningBraceToken(Te)||Te.type==="Keyword"&&(Te.value==="function"||Te.value==="class"||Te.value==="let"&&Ie&&(e.isOpeningBracketToken(Ie)||Ie.type==="Identifier"))||Te&&Te.type==="Identifier"&&Te.value==="async"&&Re&&Re.type==="Keyword"&&Re.value==="function")&&t.add(Te),(z.parent.type==="ExportDefaultDeclaration"?k(z,v):x(z))&&J(z)}function ce(z,oe){const Te=[z];let Re=z;for(;Re!==oe;){if(Re=Re.parent,Re===null)throw new Error("Nodes are not in the ancestor-descendant relationship.");Te.push(Re)}return Te}function ie(z,oe){return ce(oe,z).reverse()}function he(z,oe){switch(z.type){case"ArrayExpression":case"ArrayPattern":case"BlockStatement":case"ObjectExpression":case"ObjectPattern":case"TemplateLiteral":return!0;case"ArrowFunctionExpression":case"FunctionExpression":return z.params.includes(oe);case"CallExpression":case"NewExpression":return z.arguments.includes(oe);case"MemberExpression":return z.computed&&z.property===oe;case"ConditionalExpression":return z.consequent===oe;default:return!1}}function Ee(){b={upper:b,inExpressionNodes:[],reports:[]}}function Ce(){const{upper:z,inExpressionNodes:oe,reports:Te}=b;z?(z.inExpressionNodes.push(...oe),z.reports.push(...Te)):Te.forEach(({finishReport:Re})=>Re()),b=z}function Ae(z){return b.reports.some(oe=>oe.node===z)}function ee(z){b.reports=b.reports.filter(oe=>oe.node!==z)}function ne(z){return z.type==="MemberExpression"?z.parent.type==="NewExpression"&&z.parent.callee===z?!0:z.parent.object===z&&ne(z.parent):!1}function we({left:z,operator:oe,right:Te}){if(z.type==="Identifier"&&["=","&&=","||=","??="].includes(oe)){const Re=Te.type;if(Re==="ArrowFunctionExpression"||(Re==="FunctionExpression"||Re==="ClassExpression")&&!Te.id)return!0}return!1}return{ArrayExpression(z){z.elements.filter(oe=>oe&&k(oe,v)).forEach(J)},ArrayPattern(z){z.elements.filter(oe=>L(oe)&&x(oe)).forEach(J)},ArrowFunctionExpression(z){if(!O(z)&&!(z.body.type==="ConditionalExpression"&&d)&&z.body.type!=="BlockStatement"){const oe=o.getFirstToken(z.body,e.isNotOpeningParenToken),Te=o.getTokenBefore(oe);e.isOpeningParenToken(Te)&&e.isOpeningBraceToken(oe)&&t.add(oe),k(z.body,v)&&J(z.body)}},AssignmentExpression(z){L(z.left)&&x(z.left)&&(!we(z)||w(z.left))&&J(z.left),!O(z)&&k(z.right,l(z))&&J(z.right)},BinaryExpression(z){b&&z.operator==="in"&&b.inExpressionNodes.push(z),Z(z)},CallExpression:ke,ConditionalExpression(z){if(O(z))return;const oe=new Set(["BinaryExpression","LogicalExpression"]);!(r&&oe.has(z.test.type))&&!R(z)&&k(z.test,l({type:"LogicalExpression",operator:"||"}))&&J(z.test),!(r&&oe.has(z.consequent.type))&&k(z.consequent,v)&&J(z.consequent),!(r&&oe.has(z.alternate.type))&&k(z.alternate,v)&&J(z.alternate)},DoWhileStatement(z){x(z.test)&&!R(z)&&J(z.test)},ExportDefaultDeclaration:z=>fe(z.declaration),ExpressionStatement:z=>fe(z.expression),ForInStatement(z){if(z.left.type!=="VariableDeclaration"){const oe=o.getFirstToken(z.left,e.isNotOpeningParenToken);oe.value==="let"&&e.isOpeningBracketToken(o.getTokenAfter(oe,e.isNotClosingParenToken))&&t.add(oe)}x(z.left)&&J(z.left),x(z.right)&&J(z.right)},ForOfStatement(z){if(z.left.type!=="VariableDeclaration"){const oe=o.getFirstToken(z.left,e.isNotOpeningParenToken);oe.value==="let"&&t.add(oe)}x(z.left)&&J(z.left),k(z.right,v)&&J(z.right)},ForStatement(z){if(z.test&&x(z.test)&&!R(z)&&J(z.test),z.update&&x(z.update)&&J(z.update),z.init){if(z.init.type!=="VariableDeclaration"){const oe=o.getFirstToken(z.init,e.isNotOpeningParenToken);oe.value==="let"&&e.isOpeningBracketToken(o.getTokenAfter(oe,e.isNotClosingParenToken))&&t.add(oe)}Ee(),x(z.init)&&J(z.init)}},"ForStatement > *.init:exit"(z){b.reports.length&&b.inExpressionNodes.forEach(oe=>{const Te=ie(z,oe);let Re;for(let Ie=0;Ie<Te.length;Ie++){const W=Te[Ie];if(Ie<Te.length-1){const Je=Te[Ie+1];if(he(W,Je))return}if(S(W))if(Ae(W)){if(w(W))return;Re||(Re=W)}else return}ee(Re)}),Ce()},IfStatement(z){x(z.test)&&!R(z)&&J(z.test)},ImportExpression(z){const{source:oe}=z;oe.type==="SequenceExpression"?A(oe)&&J(oe):x(oe)&&J(oe)},LogicalExpression:Z,MemberExpression(z){const Te=ne(z)&&ae(z)?A(z.object):x(z.object)&&!(T(z.parent)&&z.parent.callee===z&&h);Te&&l(z.object)>=l(z)&&(z.computed||!(e.isDecimalInteger(z.object)||z.object.type==="Literal"&&z.object.regex))&&J(z.object),Te&&z.object.type==="CallExpression"&&J(z.object),Te&&!p&&z.object.type==="NewExpression"&&B(z.object)&&J(z.object),Te&&z.optional&&z.object.type==="ChainExpression"&&J(z.object),z.computed&&x(z.property)&&J(z.property)},"MethodDefinition[computed=true]"(z){k(z.key,v)&&J(z.key)},NewExpression:ke,ObjectExpression(z){z.properties.filter(oe=>oe.value&&k(oe.value,v)).forEach(oe=>J(oe.value))},ObjectPattern(z){z.properties.filter(oe=>{const Te=oe.value;return L(Te)&&x(Te)}).forEach(oe=>J(oe.value))},Property(z){if(z.computed){const{key:oe}=z;oe&&k(oe,v)&&J(oe)}},PropertyDefinition(z){z.computed&&k(z.key,v)&&J(z.key),z.value&&k(z.value,v)&&J(z.value)},RestElement(z){const oe=z.argument;L(oe)&&x(oe)&&J(oe)},ReturnStatement(z){const oe=o.getFirstToken(z);O(z)||z.argument&&$(oe,z.argument)&&!(z.argument.type==="Literal"&&z.argument.regex)&&J(z.argument)},SequenceExpression(z){const oe=l(z);z.expressions.filter(Te=>k(Te,oe)).forEach(J)},SwitchCase(z){z.test&&x(z.test)&&J(z.test)},SwitchStatement(z){x(z.discriminant)&&J(z.discriminant)},ThrowStatement(z){const oe=o.getFirstToken(z);$(oe,z.argument)&&J(z.argument)},UnaryExpression:ge,UpdateExpression(z){if(z.prefix)ge(z);else{const{argument:oe}=z,Te=o.getLastToken(z);oe.loc.end.line===Te.loc.start.line?ge(z):A(oe)&&J(oe)}},AwaitExpression:ge,VariableDeclarator(z){z.init&&k(z.init,v)&&!(z.init.type==="Literal"&&z.init.regex)&&J(z.init)},WhileStatement(z){x(z.test)&&!R(z)&&J(z.test)},WithStatement(z){x(z.object)&&J(z.object)},YieldExpression(z){if(z.argument){const oe=o.getFirstToken(z);(l(z.argument)>=l(z)&&$(oe,z.argument)||A(z.argument))&&J(z.argument)}},ClassDeclaration:P,ClassExpression:P,SpreadElement:H,SpreadProperty:H,ExperimentalSpreadProperty:H,TemplateLiteral(z){z.expressions.filter(oe=>oe&&x(oe)).forEach(J)},AssignmentPattern(z){const{left:oe,right:Te}=z;L(oe)&&x(oe)&&J(oe),Te&&k(Te,v)&&J(Te)}}}},kl}var Dl,mv;function _T(){if(mv)return Dl;mv=1;const a=nn(),e=Le();return Dl={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(n){const o=n.sourceCode;function t(u){const r=o.getTokenAfter(u);if(!r||r.type!=="String")return!0;const m=o.getNodeByRangeIndex(r.range[0]);return!e.isTopLevelExpressionStatement(m.parent)}function l(u){n.report({node:u,messageId:"unexpected",fix:t(u)?r=>new a(r,n.sourceCode).retainSurroundingTokens(u).remove(u):null})}function f(u){for(let r=u;r.type==="Punctuator"&&!e.isClosingBraceToken(r);r=o.getTokenAfter(r))e.isSemicolonToken(r)&&l(r)}return{EmptyStatement(u){const r=u.parent;["ForStatement","ForInStatement","ForOfStatement","WhileStatement","DoWhileStatement","IfStatement","LabeledStatement","WithStatement"].includes(r.type)||l(u)},ClassBody(u){f(o.getFirstToken(u,1))},"MethodDefinition, PropertyDefinition, StaticBlock"(u){f(o.getTokenAfter(u))}}}},Dl}var Pl,dv;function BT(){if(dv)return Pl;dv=1;const{directivesPattern:a}=Kd(),e=/falls?\s?through/iu;function n(f){for(const u of f)if(u.reachable)return!0;return!1}function o(f,u){return u.test(f)&&!a.test(f.trim())}function t(f,u,r,m){const i=r.sourceCode;if(f.consequent.length===1&&f.consequent[0].type==="BlockStatement"){const d=i.getLastToken(f.consequent[0]),s=i.getCommentsBefore(d).pop();if(s&&o(s.value,m))return s}const c=i.getCommentsBefore(u).pop();return c&&o(c.value,m)?c:null}function l(f,u){return u.loc.start.line>f.loc.end.line+1}return Pl={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(f){const u=[];let r=new Set;const m=f.sourceCode,[{allowEmptyCase:i,commentPattern:c,reportUnusedFallthroughComment:d}]=f.options,s=c?new RegExp(c,"u"):e;let p=null;return{onCodePathStart(){u.push(r),r=new Set},onCodePathEnd(){r=u.pop()},onUnreachableCodePathSegmentStart(h){r.add(h)},onUnreachableCodePathSegmentEnd(h){r.delete(h)},onCodePathSegmentStart(h){r.add(h)},onCodePathSegmentEnd(h){r.delete(h)},SwitchCase(h){if(p&&p.node.parent===h.parent){const g=t(p.node,h,f,s);p.isFallthrough&&!g?f.report({messageId:h.test?"case":"default",node:h}):d&&!p.isSwitchExitReachable&&g&&f.report({messageId:"unusedFallthroughComment",node:g})}p=null},"SwitchCase:exit"(h){const g=m.getTokenAfter(h),v=n(r),E=v&&(h.consequent.length>0||!i&&l(h,g))&&h.parent.cases.at(-1)!==h;p={node:h,isSwitchExitReachable:v,isFallthrough:E}}}}},Pl}var Il,hv;function LT(){if(hv)return Il;hv=1;const a=Le();return Il={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(e){const n=e.sourceCode;return{Literal(o){typeof o.value=="number"&&(o.raw.startsWith(".")&&e.report({node:o,messageId:"leading",fix(t){const l=n.getTokenBefore(o),f=l&&l.range[1]===o.range[0]&&!a.canTokensBeAdjacent(l,`0${o.raw}`);return t.insertTextBefore(o,f?" 0":"0")}}),o.raw.indexOf(".")===o.raw.length-1&&e.report({node:o,messageId:"trailing",fix:t=>t.insertTextAfter(o,"0")}))}}}},Il}var Fl,gv;function OT(){if(gv)return Fl;gv=1;const a=Le();return Fl={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(e){const n=e.sourceCode;function o(f){a.getModifyingReferences(f).forEach(u=>{e.report({node:u.identifier,messageId:"isAFunction",data:{name:u.identifier.name}})})}function t(f){f.defs[0].type==="FunctionName"&&o(f.references)}function l(f){n.getDeclaredVariables(f).forEach(t)}return{FunctionDeclaration:l,FunctionExpression:l}}},Fl}var Rl,yv;function NT(){return yv||(yv=1,Rl={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(a){const e=a.sourceCode,[{exceptions:n}]=a.options;function o(l,f,u){const r=l.identifier;l.init===!1&&l.isWrite()&&(f===0||u[f-1].identifier!==r)&&a.report({node:r,messageId:"globalShouldNotBeModified",data:{name:r.name}})}function t(l){l.writeable===!1&&!n.includes(l.name)&&l.references.forEach(o)}return{Program(l){e.getScope(l).variables.forEach(t)}}}}),Rl}var _l,vv;function MT(){if(vv)return _l;vv=1;const a=Le(),e=/^(?:i|lastI)ndexOf$/u,n=["~","!!","+","- -","-","*"];function o(p){return p.operator==="!"&&p.argument.type==="UnaryExpression"&&p.argument.operator==="!"}function t(p){if(p.operator!=="~")return!1;const h=a.skipChainExpression(p.argument);return h.type==="CallExpression"&&a.isSpecificMemberAccess(h.callee,null,e)}function l(p){return p.operator==="*"&&(p.left.type==="Literal"&&p.left.value===1||p.right.type==="Literal"&&p.right.value===1)}function f(p,h){return p.type==="BinaryExpression"&&p.operator==="*"&&p.right.type==="Literal"&&p.right.value===1&&p.parent.type==="BinaryExpression"&&p.parent.operator==="/"&&p.parent.left===p&&!a.isParenthesised(h,p)}function u(p){return p.type==="Literal"&&typeof p.value=="number"||p.type==="CallExpression"&&(p.callee.name==="Number"||p.callee.name==="parseInt"||p.callee.name==="parseFloat")}function r(p){const h=p.left,g=p.right;return g.type!=="BinaryExpression"&&!u(g)?g:h.type!=="BinaryExpression"&&!u(h)?h:null}function m(p){return a.isStringLiteral(p)||p.type==="CallExpression"&&p.callee.type==="Identifier"&&p.callee.name==="String"}function i(p){return a.isStringLiteral(p)&&(p.value===""||p.type==="TemplateLiteral"&&p.quasis.length===1&&p.quasis[0].value.cooked==="")}function c(p){return p.operator==="+"&&(i(p.left)&&!m(p.right)||i(p.right)&&!m(p.left))}function d(p){return p.operator==="+="&&i(p.right)}function s(p){return i(p.left)?p.right:p.left}return _l={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:n},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(p){const[h]=p.options,g=p.sourceCode;function v(E,b,T,C){function S(w){const x=g.getTokenBefore(E);return x?.range[1]===E.range[0]&&!a.canTokensBeAdjacent(x,b)?w.replaceText(E,` ${b}`):w.replaceText(E,b)}p.report({node:E,messageId:"implicitCoercion",data:{recommendation:b},fix(w){return C?S(w):null},suggest:[{messageId:"useRecommendation",data:{recommendation:b},fix(w){return C||!T?null:S(w)}}]})}return{UnaryExpression(E){let b;if(b=h.allow.includes("!!"),!b&&h.boolean&&o(E)){const T=`Boolean(${g.getText(E.argument.argument)})`,S=a.getVariableByName(g.getScope(E),"Boolean")?.identifiers.length===0;v(E,T,!0,S)}if(b=h.allow.includes("~"),!b&&h.boolean&&t(E)){const T=E.argument.type==="ChainExpression"?">= 0":"!== -1",C=`${g.getText(E.argument)} ${T}`;v(E,C,!1,!1)}if(b=h.allow.includes("+"),!b&&h.number&&E.operator==="+"&&!u(E.argument)){const T=`Number(${g.getText(E.argument)})`;v(E,T,!0,!1)}if(b=h.allow.includes("- -"),!b&&h.number&&E.operator==="-"&&E.argument.type==="UnaryExpression"&&E.argument.operator==="-"&&!u(E.argument.argument)){const T=`Number(${g.getText(E.argument.argument)})`;v(E,T,!0,!1)}},"BinaryExpression:exit"(E){let b;b=h.allow.includes("*");const T=!b&&h.number&&l(E)&&!f(E,g)&&r(E);if(T){const C=`Number(${g.getText(T)})`;v(E,C,!0,!1)}if(b=h.allow.includes("-"),!b&&h.number&&E.operator==="-"&&E.right.type==="Literal"&&E.right.value===0&&!u(E.left)){const C=`Number(${g.getText(E.left)})`;v(E,C,!0,!1)}if(b=h.allow.includes("+"),!b&&h.string&&c(E)){const C=`String(${g.getText(s(E))})`;v(E,C,!0,!1)}},AssignmentExpression(E){if(!h.allow.includes("+")&&h.string&&d(E)){const T=g.getText(s(E)),C=`${T} = String(${T})`;v(E,C,!0,!1)}},TemplateLiteral(E){if(!h.disallowTemplateShorthand||E.parent.type==="TaggedTemplateExpression"||E.expressions.length!==1||E.quasis[0].value.cooked!==""||E.quasis[1].value.cooked!==""||m(E.expressions[0]))return;const T=`String(${g.getText(E.expressions[0])})`;v(E,T,!0,!1)}}}},_l}var Bl,Sv;function jT(){if(Sv)return Bl;Sv=1;const a=new Set(["AssignmentExpression","ForInStatement","ForOfStatement"]);return Bl={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(e){const[{lexicalBindings:n}]=e.options,o=e.sourceCode;function t(l,f,u){e.report({node:l,messageId:f,data:{kind:u}})}return{Program(l){const f=o.getScope(l);f.variables.forEach(u=>{const r=u.writeable===!1;u.writeable!==!0&&(u.eslintExported||(u.defs.forEach(i=>{const c=i.node;(i.type==="FunctionName"||i.type==="Variable"&&i.parent.kind==="var")&&(r?t(c,"redeclarationOfReadonlyGlobal"):t(c,"globalNonLexicalBinding",i.type==="FunctionName"?"function":`'${i.parent.kind}'`)),n&&(i.type==="ClassName"||i.type==="Variable"&&(i.parent.kind==="let"||i.parent.kind==="const"))&&(r?t(c,"redeclarationOfReadonlyGlobal"):t(c,"globalLexicalBinding",i.type==="ClassName"?"class":`'${i.parent.kind}'`))}),r&&u.defs.length===0&&u.references.forEach(i=>{if(i.isWrite()&&!i.isRead()){let c=i.identifier.parent;for(;c&&!a.has(c.type);)c=c.parent;t(c??i.identifier,"assignmentToReadonlyGlobal")}})))}),f.implicit.variables.forEach(u=>{u.defs.forEach(r=>{t(r.node,"globalVariableLeak")})})}}}},Bl}var Ll,Ev;function UT(){if(Ev)return Ll;Ev=1;const a=Le(),{getStaticValue:e}=qt();return Ll={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(n){const o=Object.freeze(["global","window","globalThis"]),t=/^(?:set(?:Interval|Timeout)|execScript)$/u,l=n.sourceCode;function f(m){return m.type==="Literal"&&typeof m.value=="string"||m.type==="TemplateLiteral"?!0:m.type==="BinaryExpression"&&m.operator==="+"?f(m.left)||f(m.right):!1}function u(m){const[i]=m.arguments;if(i){const c=e(i,l.getScope(m));if(c&&typeof c.value=="string"||f(i)){const h=(m.callee.type==="Identifier"?m.callee.name:a.getStaticPropertyName(m.callee))==="execScript";n.report({node:m,messageId:h?"execScript":"impliedEval"})}}}function r(m){const{references:i,name:c}=m;i.forEach(d=>{let p=d.identifier.parent;for(;a.isSpecificMemberAccess(p,null,c);)p=p.parent;if(a.isSpecificMemberAccess(p,null,t)){const h=p.parent.type==="ChainExpression"?p.parent:p,g=h.parent;g.type==="CallExpression"&&g.callee===h&&u(g)}})}return{CallExpression(m){a.isSpecificId(m.callee,t)&&l.isGlobalReference(m.callee)&&u(m)},"Program:exit"(m){const i=l.getScope(m);o.map(c=>a.getVariableByName(i,c)).filter(c=>!!c&&c.defs.length===0).forEach(r)}}}},Ll}var Ol,bv;function qT(){if(bv)return Ol;bv=1;const{findVariable:a}=qt(),e=Le(),n={Object:/^(?:assign|definePropert(?:y|ies)|freeze|setPrototypeOf)$/u,Reflect:/^(?:(?:define|delete)Property|set(?:PrototypeOf)?)$/u};function o(m){const{parent:i}=m;return i.type==="AssignmentExpression"&&i.left===m||i.type==="ArrayPattern"||i.type==="Property"&&i.value===m&&i.parent.type==="ObjectPattern"||i.type==="RestElement"||i.type==="AssignmentPattern"&&i.left===m}function t(m){const i=m.parent.type==="ChainExpression"?m.parent:m,{parent:c}=i;return c.type==="UpdateExpression"&&c.argument===i||c.type==="UnaryExpression"&&c.operator==="delete"&&c.argument===i}function l(m){const{parent:i}=m;return i.type==="ForInStatement"&&i.left===m||i.type==="ForOfStatement"&&i.left===m}function f(m,i){const{parent:c}=m;if(c.type!=="CallExpression"||c.arguments[0]!==m)return!1;const d=e.skipChainExpression(c.callee);if(!e.isSpecificMemberAccess(d,"Object",n.Object)&&!e.isSpecificMemberAccess(d,"Reflect",n.Reflect))return!1;const s=a(i,d.object);return s!==null&&s.scope.type==="global"}function u(m,i){const{parent:c}=m;return c.type==="MemberExpression"&&c.object===m&&(o(c)||t(c)||l(c))||f(m,i)}function r(m){let i=m.parent;for(;i&&i.type!=="AssignmentExpression"&&i.type!=="UpdateExpression"&&i.type!=="UnaryExpression"&&i.type!=="CallExpression"&&i.type!=="ForInStatement"&&i.type!=="ForOfStatement";)i=i.parent;return i||m}return Ol={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(m){const i=m.sourceCode;return{ImportDeclaration(c){const d=i.getScope(c);for(const s of i.getDeclaredVariables(c)){const p=s.defs.some(g=>g.node.type==="ImportNamespaceSpecifier");let h=null;for(const g of s.references){const v=g.identifier;v!==h&&(h=v,g.isWrite()?m.report({node:r(v),messageId:"readonly",data:{name:v.name}}):p&&u(v,d)&&m.report({node:r(v),messageId:"readonlyMember",data:{name:v.name}}))}}}}}},Ol}var Nl,Cv;function VT(){if(Cv)return Nl;Cv=1;const a=Le();return Nl={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(e){const n=e.sourceCode,[{ignorePattern:o}]=e.options,t=o&&new RegExp(o,"u");function l(f){const u=String(n.lines[f.loc.start.line-1]),r=String(n.lines[f.loc.end.line-1]),m=u.slice(0,f.loc.start.column).trim(),i=r.slice(f.loc.end.column).trim(),c=!m,d=!i;if(!(c&&d)&&!(t&&t.test(f.value))){if((c||m==="{")&&(d||i==="}")){const s=n.getNodeByRangeIndex(f.range[0]);if(s&&s.type==="JSXEmptyExpression")return}a.isDirectiveComment(f)||e.report({node:f,messageId:"unexpectedInlineComment"})}}return{Program(){n.getAllComments().filter(f=>f.type!=="Shebang").forEach(l)}}}},Nl}var Ml,xv;function $T(){if(xv)return Ml;xv=1;const a=Le(),e=new Set(["Program","StaticBlock","ExportNamedDeclaration","ExportDefaultDeclaration"]),n=new Set(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]);function o(t){let{parent:l}=t;for(;l;){if(l.type==="StaticBlock")return"class static block body";if(a.isFunction(l))return"function body";({parent:l}=l)}return"program"}return Ml={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){const l=t.options[0]==="both",{blockScopedFunctions:f}=t.options[1],u=t.sourceCode,r=t.languageOptions.ecmaVersion;function m(i){const c=i.parent;c.type==="BlockStatement"&&n.has(c.parent.type)||e.has(c.type)||t.report({node:i,messageId:"moveDeclToRoot",data:{type:i.type==="FunctionDeclaration"?"function":"variable",body:o(i)}})}return{FunctionDeclaration(i){const c=u.getScope(i).upper.isStrict;f==="allow"&&r>=2015&&c||m(i)},VariableDeclaration(i){l&&i.kind==="var"&&m(i)}}}},Ml}var jl,wv;function GT(){if(wv)return jl;wv=1;const a=ur().RegExpValidator,e=new a,n="dgimsuvy",o=void 0;return jl={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"}}},additionalProperties:!1}],messages:{regexMessage:"{{message}}."}},create(t){const[{allowConstructorFlags:l}]=t.options;let f=[];if(l){const d=l.join("").replace(new RegExp(`[${n}]`,"gu"),"");d&&(f=[...new Set(d)])}function u(d,s){t.report({node:d,messageId:"regexMessage",data:{message:s}})}function r(d){return d&&d.type==="Literal"&&typeof d.value=="string"}function m(d){return d.arguments.length<2?"":r(d.arguments[1])?d.arguments[1].value:null}function i(d,s){try{return e.validatePattern(d,o,o,s),null}catch(p){return p.message}}function c(d,s,p){const h=[];if(typeof s=="string")for(const g of s)p.includes(g)&&h.push(g);return d&&d.includes("u")&&d.includes("v")?"Regex 'u' and 'v' flags cannot be used together":h.length>0?`Duplicate flags ('${h.join("")}') supplied to RegExp constructor`:s?`Invalid flags supplied to RegExp constructor '${s}'`:null}return{"CallExpression, NewExpression"(d){if(d.callee.type!=="Identifier"||d.callee.name!=="RegExp")return;const s=m(d);let p=s;const h=f.length>0?n.split("").concat(f):n.split("");s&&h.forEach(E=>{p=p.replace(E,"")});let g=c(s,p,h);if(g){u(d,g);return}if(!r(d.arguments[0]))return;const v=d.arguments[0].value;g=s===null?i(v,{unicode:!0,unicodeSets:!1})&&i(v,{unicode:!1,unicodeSets:!0})&&i(v,{unicode:!1,unicodeSets:!1}):i(v,{unicode:s.includes("u"),unicodeSets:s.includes("v")}),g&&u(d,g)}}}},jl}var Ul,Av;function WT(){if(Av)return Ul;Av=1;const a=Le();function e(n,o){return n.origin==="function"&&o.type==="ArrowFunctionExpression"}return Ul={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",defaultOptions:[{capIsConstructor:!0}],docs:{description:"Disallow use of `this` in contexts where the value of `this` is `undefined`",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(n){const[{capIsConstructor:o}]=n.options,t=[],l=n.sourceCode;return t.getCurrent=function(){const f=this.at(-1);return f.init||(f.init=!0,f.valid=!a.isDefaultThisBinding(f.node,l,{capIsConstructor:o})),f},{onCodePathStart(f,u){if(!e(f,u)){if(f.origin==="program"){const r=l.getScope(u),m=n.languageOptions.parserOptions.ecmaFeatures||{};t.push({init:!0,node:u,valid:!(u.sourceType==="module"||m.globalReturn&&r.childScopes[0].isStrict)});return}t.push({init:!l.getScope(u).isStrict,node:u,valid:!0})}},onCodePathEnd(f,u){e(f,u)||t.pop()},"AccessorProperty > *.value"(f){t.push({init:!0,node:f,valid:!0})},"AccessorProperty:exit"(){t.pop()},ThisExpression(f){if(f.parent.type==="AccessorProperty"&&f.parent.value===f)return;const u=t.getCurrent();u&&!u.valid&&n.report({node:f,messageId:"unexpectedThis"})}}}},Ul}var ql,Tv;function zT(){if(Tv)return ql;Tv=1;const a=Le(),e=/[\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,n=/[\f\v\u0085\ufeff\u00a0\u1680\u180e\u2000\u2001\u2002\u2003\u2004\u2005\u2006\u2007\u2008\u2009\u200a\u200b\u202f\u205f\u3000]+/gu,o=/[\u2028\u2029]/gu,t=a.createGlobalLinebreakMatcher();return ql={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(l){const[{skipComments:f,skipStrings:u,skipRegExps:r,skipTemplates:m,skipJSXText:i}]=l.options,c=l.sourceCode,d=c.getAllComments();let s=[];function p(w){const x=w.loc.start,A=w.loc.end;s=s.filter(({loc:{start:k}})=>k.line<x.line||k.line===x.line&&k.column<x.column||k.line===A.line&&k.column>=A.column||k.line>A.line)}function h(w){const x=u&&typeof w.value=="string",A=r&&!!w.regex;(x||A)&&e.test(w.raw)&&p(w)}function g(w){typeof w.value.raw=="string"&&e.test(w.value.raw)&&p(w)}function v(w){e.test(w.value)&&p(w)}function E(w){e.test(w.raw)&&p(w)}function b(w){c.lines.forEach((A,k)=>{const R=k+1;let I;for(;(I=n.exec(A))!==null;)s.push({node:w,messageId:"noIrregularWhitespace",loc:{start:{line:R,column:I.index},end:{line:R,column:I.index+I[0].length}}})})}function T(w){const x=c.getText(),A=c.lines,k=x.match(t);let R=-1,I;for(;(I=o.exec(x))!==null;){const B=k.indexOf(I[0],R+1)||0;s.push({node:w,messageId:"noIrregularWhitespace",loc:{start:{line:B+1,column:A[B].length},end:{line:B+2,column:0}}}),R=B}}function C(){}const S={};return e.test(c.getText())?(S.Program=function(w){b(w),T(w)},S.Literal=h,S.TemplateElement=m?g:C,S.JSXText=i?E:C,S["Program:exit"]=function(){f&&d.forEach(v),s.forEach(w=>l.report(w))}):S.Program=C,S}},ql}var Vl,kv;function HT(){if(kv)return Vl;kv=1;const{getStaticPropertyName:a}=Le();return Vl={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(e){return{MemberExpression(n){a(n)==="__iterator__"&&e.report({node:n,messageId:"noIterator"})}}}},Vl}var $l,Dv;function KT(){if(Dv)return $l;Dv=1;const a=Le();return $l={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(e){const n=e.sourceCode;function o(t,l){return a.getVariableByName(t,l)!==null}return{LabeledStatement(t){const l=n.getScope(t);o(l,t.label.name)&&e.report({node:t,messageId:"identifierClashWithLabel"})}}}},$l}var Gl,Pv;function XT(){if(Pv)return Gl;Pv=1;const a=Le();return Gl={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(e){const[{allowLoop:n,allowSwitch:o}]=e.options;let t=null;function l(r){return a.isLoop(r)?"loop":r.type==="SwitchStatement"?"switch":"other"}function f(r){switch(r){case"loop":return n;case"switch":return o;default:return!1}}function u(r){let m=t;for(;m;){if(m.label===r)return m.kind;m=m.upper}return"other"}return{LabeledStatement(r){t={label:r.label.name,kind:l(r.body),upper:t}},"LabeledStatement:exit"(r){f(t.kind)||e.report({node:r,messageId:"unexpectedLabel"}),t=t.upper},BreakStatement(r){r.label&&!f(u(r.label.name))&&e.report({node:r,messageId:"unexpectedLabelInBreak"})},ContinueStatement(r){r.label&&!f(u(r.label.name))&&e.report({node:r,messageId:"unexpectedLabelInContinue"})}}}},Gl}var Wl,Iv;function JT(){return Iv||(Iv=1,Wl={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(a){const e=[];let n;const o=a.sourceCode;function t(u){const r=u.parent.type==="BlockStatement"||u.parent.type==="StaticBlock"?"redundantNestedBlock":"redundantBlock";a.report({node:u,messageId:r})}function l(u){return u.parent.type==="BlockStatement"||u.parent.type==="StaticBlock"||u.parent.type==="Program"||u.parent.type==="SwitchCase"&&!(u.parent.consequent[0]===u&&u.parent.consequent.length===1)}function f(u){if(e.length===0)return;const r=u.parent;e.at(-1)===r&&e.pop()}return n={BlockStatement(u){l(u)&&t(u)}},a.languageOptions.ecmaVersion>=2015&&(n={BlockStatement(u){l(u)&&e.push(u)},"BlockStatement:exit"(u){e.length>0&&e.at(-1)===u?(e.pop(),t(u)):(u.parent.type==="BlockStatement"||u.parent.type==="StaticBlock")&&u.parent.body.length===1&&t(u)}},n.VariableDeclaration=function(u){u.kind!=="var"&&f(u)},n.FunctionDeclaration=function(u){o.getScope(u).isStrict&&f(u)},n.ClassDeclaration=f),n}}),Wl}var zl,Fv;function YT(){if(Fv)return zl;Fv=1;const a=Le();return zl={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(e){const n=e.sourceCode;return{IfStatement(o){const t=o.parent,l=t.parent;t&&t.type==="BlockStatement"&&t.body.length===1&&!a.areBracesNecessary(t,n)&&l&&l.type==="IfStatement"&&t===l.alternate&&e.report({node:o,messageId:"unexpectedLonelyIf",fix(f){const u=n.getFirstToken(t),r=n.getLastToken(t),m=n.getTokenBefore(u),i=n.getTokenAfter(r),c=n.getLastToken(o.consequent),d=n.getText();return d.slice(u.range[1],o.range[0]).trim()||d.slice(o.range[1],r.range[0]).trim()||o.consequent.type!=="BlockStatement"&&c.value!==";"&&i&&(o.consequent.loc.end.line===i.loc.start.line||/^[([/+`-]/u.test(i.value)||c.value==="++"||c.value==="--")?null:f.replaceTextRange([u.range[0],r.range[1]],(m.range[1]===u.range[0]?" ":"")+n.getText(o))}})}}}},zl}var Hl,Rv;function QT(){if(Rv)return Hl;Rv=1;const a=new Set(["const","using","await using"]);function e(n){return(n.type==="FunctionExpression"||n.type==="ArrowFunctionExpression")&&n.parent&&n.parent.type==="CallExpression"&&n.parent.callee===n}return Hl={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow function declarations that contain unsafe references inside loop statements",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(n){const o=new Set,t=n.sourceCode;function l(m){for(let i=m;i.parent;i=i.parent){const c=i.parent;switch(c.type){case"WhileStatement":case"DoWhileStatement":return c;case"ForStatement":if(c.init!==i)return c;break;case"ForInStatement":case"ForOfStatement":if(c.right!==i)return c;break;case"ArrowFunctionExpression":case"FunctionExpression":case"FunctionDeclaration":if(o.has(c))break;return null}}return null}function f(m,i){const c=i?i.range[1]:0;let d=m,s=m;for(;s&&s.range[0]>=c;)d=s,s=l(s);return d}function u(m,i){const c=i.resolved,d=c&&c.defs[0],s=d&&d.parent,p=s&&s.type==="VariableDeclaration"?s.kind:"";if(a.has(p)||p==="let"&&s.range[0]>m.range[0]&&s.range[1]<m.range[1])return!0;const h=f(m,p==="let"?s:null).range[0];function g(v){const E=v.identifier;return!v.isWrite()||c.scope.variableScope===v.from.variableScope&&E.range[0]<h}return!!c&&c.references.every(g)}function r(m){const i=l(m);if(!i)return;const c=t.getScope(m).through;if(!(m.async||m.generator)&&e(m)&&!(m.type==="FunctionExpression"&&m.id?c.some(h=>h.identifier.name===m.id.name):!1)){o.add(m);return}const d=[...new Set(c.filter(s=>s.resolved&&!u(i,s)).map(s=>s.identifier.name))];d.length>0&&n.report({node:m,messageId:"unsafeRefs",data:{varNames:`'${d.join("', '")}'`}})}return{ArrowFunctionExpression:r,FunctionExpression:r,FunctionDeclaration:r}}},Hl}var Kl,_v;function ZT(){if(_v)return Kl;_v=1;class a{coefficient;magnitude;constructor(s,p){this.coefficient=s,this.magnitude=p}toString(){return`${this.coefficient[0]}${this.coefficient.length>1?`.${this.coefficient.slice(1)}`:""}e${this.magnitude}`}}function e(d){return typeof d.value=="number"}function n(d){return d.raw.replace(/_/gu,"")}function o(d){return["0x","0X","0b","0B","0o","0O"].every(p=>!d.raw.startsWith(p))&&!/^0[0-7]+$/u.test(d.raw)}function t(d){const s=n(d).toUpperCase();let p;return s.startsWith("0B")?p=2:s.startsWith("0X")?p=16:p=8,!s.endsWith(d.value.toString(p).toUpperCase())}function l(d){for(let s=0;s<d.length;s++)if(d[s]!=="0")return d.slice(s);return d}function f(d){for(let s=d.length-1;s>=0;s--)if(d[s]!=="0")return d.slice(0,s+1);return d}function u(d){const s=l(d),p=f(s);return new a(p,s.length-1)}function r(d){const s=l(d),p=s.indexOf(".");switch(p){case 0:{const h=l(s.slice(1));return new a(h,h.length-s.length)}case-1:return new a(s,s.length-1);default:return new a(s.replace(".",""),p-1)}}function m(d,s){const p=d.split("e"),h=p[0],g=s||d.includes(".")?r(h):u(h);return p.length>1&&(g.magnitude+=parseInt(p[1],10)),g}function i(d){const s=n(d).toLowerCase(),p=m(s,!1),h=p.coefficient.length;if(h>100)return!0;const g=d.value.toPrecision(h),v=m(g,!0);return p.magnitude!==v.magnitude||p.coefficient!==v.coefficient}function c(d){return o(d)?i(d):t(d)}return Kl={meta:{type:"problem",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow literal numbers that lose precision",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(d){return{Literal(s){s.value&&e(s)&&c(s)&&d.report({messageId:"noLossOfPrecision",node:s})}}}},Kl}var Xl,Bv;function ek(){if(Bv)return Xl;Bv=1;const a=Le(),e=2**32-1;function n(u){return typeof u=="string"?BigInt(u.slice(0,-1)):u}function o(u){return u.parent.type==="TSEnumMember"}function t(u){let r=u.parent;for(;r.parent.type==="TSUnionType";)r=r.parent;return r.parent.type==="TSTypeAliasDeclaration"}function l(u){return!!(u.parent?.type==="PropertyDefinition"&&u.parent.readonly)}function f(u){let r=u.parent;for(;r.parent.type==="TSUnionType"||r.parent.type==="TSIntersectionType";)r=r.parent;return r.parent.type==="TSIndexedAccessType"}return Xl={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow magic numbers",recommended:!1,frozen:!0,url:"https://eslint.org/docs/latest/rules/no-magic-numbers"},schema:[{type:"object",properties:{detectObjects:{type:"boolean",default:!1},enforceConst:{type:"boolean",default:!1},ignore:{type:"array",items:{anyOf:[{type:"number"},{type:"string",pattern:"^[+-]?(?:0|[1-9][0-9]*)n$"}]},uniqueItems:!0},ignoreArrayIndexes:{type:"boolean",default:!1},ignoreDefaultValues:{type:"boolean",default:!1},ignoreClassFieldInitialValues:{type:"boolean",default:!1},ignoreEnums:{type:"boolean",default:!1},ignoreNumericLiteralTypes:{type:"boolean",default:!1},ignoreReadonlyClassProperties:{type:"boolean",default:!1},ignoreTypeIndexes:{type:"boolean",default:!1}},additionalProperties:!1}],messages:{useConst:"Number constants declarations must use 'const'.",noMagic:"No magic number: {{raw}}."}},create(u){const r=u.options[0]||{},m=!!r.detectObjects,i=!!r.enforceConst,c=new Set((r.ignore||[]).map(n)),d=!!r.ignoreArrayIndexes,s=!!r.ignoreDefaultValues,p=!!r.ignoreClassFieldInitialValues,h=!!r.ignoreEnums,g=!!r.ignoreNumericLiteralTypes,v=!!r.ignoreReadonlyClassProperties,E=!!r.ignoreTypeIndexes,b=m?[]:["ObjectExpression","Property","AssignmentExpression"];function T(k){return c.has(k)}function C(k){const R=k.parent;return R.type==="AssignmentPattern"&&R.right===k}function S(k){const R=k.parent;return R.type==="PropertyDefinition"&&R.value===k}function w(k){const R=k.parent;return R.type==="CallExpression"&&k===R.arguments[1]&&(a.isSpecificId(R.callee,"parseInt")||a.isSpecificMemberAccess(R.callee,"Number","parseInt"))}function x(k){return k.parent.type.indexOf("JSX")===0}function A(k,R){const I=k.parent;return I.type==="MemberExpression"&&I.property===k&&(Number.isInteger(R)||typeof R=="bigint")&&R>=0&&R<e}return{Literal(k){if(!a.isNumericLiteral(k))return;let R,I,B;k.parent.type==="UnaryExpression"&&["-","+"].includes(k.parent.operator)?(R=k.parent,I=k.parent.operator==="-"?-k.value:k.value,B=`${k.parent.operator}${k.raw}`):(R=k,I=k.value,B=k.raw);const F=R.parent;T(I)||s&&C(R)||p&&S(R)||h&&o(R)||g&&t(R)||E&&f(R)||v&&l(R)||w(R)||x(R)||d&&A(R,I)||(F.type==="VariableDeclarator"?i&&F.parent.kind!=="const"&&u.report({node:R,messageId:"useConst"}):(!b.includes(F.type)||F.type==="AssignmentExpression"&&F.left.type==="Identifier")&&u.report({node:R,messageId:"noMagic",data:{raw:B}}))}}}},Xl}var Jl,Lv;function tk(){return Lv||(Lv=1,Jl=function(e){return/^[\p{Mc}\p{Me}\p{Mn}]$/u.test(String.fromCodePoint(e))}),Jl}var Yl,Ov;function rk(){return Ov||(Ov=1,Yl=function(e){return e>=127995&&e<=127999}),Yl}var Ql,Nv;function nk(){return Nv||(Nv=1,Ql=function(e){return e>=127462&&e<=127487}),Ql}var Zl,Mv;function sk(){return Mv||(Mv=1,Zl=function(e,n){return e>=55296&&e<56320&&n>=56320&&n<57344}),Zl}var eu,jv;function ak(){if(jv)return eu;jv=1;const a=tk(),e=rk(),n=nk(),o=sk();return eu={isCombiningCharacter:a,isEmojiModifier:e,isRegionalIndicatorSymbol:n,isSurrogatePair:o},eu}var tu,Uv;function ru(){if(Uv)return tu;Uv=1;const{RegExpValidator:a}=ur(),e=2025;function n(o,t,l="u"){if(l==="u"&&o<=5||l==="v"&&o<=2023)return!1;const f=new a({ecmaVersion:Math.min(o,e)});try{f.validatePattern(t,void 0,void 0,l==="u"?{unicode:!0}:{unicodeSets:!0})}catch{return!1}return!0}return tu={isValidWithUnicodeFlag:n,REGEXPP_LATEST_ECMA_VERSION:e},tu}var nu,qv;function ik(){if(qv)return nu;qv=1;class a{constructor(c,d){this.start=c,this.source=d}get end(){return this.start+this.length}get length(){return this.source.length}}class e{constructor(c){this.source=c,this.pos=0}advance(c){this.pos+=c}read(c=0,d=1){const s=c+this.pos;return this.source.slice(s,s+d)}}const n={__proto__:null,b:"\b",f:"\f",n:`
|
|
93
|
+
`,r:"\r",t:" ",v:"\v"};function o(i,c){const d=i.read(0,c),s=parseInt(d,16);return i.advance(c),String.fromCharCode(s)}function t(i){const c=/\{(?<hexDigits>[\dA-F]+)\}/iuy;c.lastIndex=i.pos;const d=c.exec(i.source);if(d){const s=parseInt(d.groups.hexDigits,16);return i.pos=c.lastIndex,String.fromCodePoint(s)}return o(i,4)}function l(i,c){const[d]=i.read(-1,c).match(/^[0-7]+/u);i.advance(d.length-1);const s=parseInt(d,8);return String.fromCharCode(s)}function f(i){const c=i.read(1);i.advance(2);const d=n[c];if(d)return d;switch(c){case"x":return o(i,2);case"u":return t(i);case"\r":i.read()===`
|
|
94
|
+
`&&i.advance(1);case`
|
|
95
|
+
`:case"\u2028":case"\u2029":return"";case"0":case"1":case"2":case"3":return l(i,3);case"4":case"5":case"6":case"7":return l(i,2);default:return c}}function*u(i){const c=i.pos,d=f(i),s=i.pos,p=i.source.slice(c,s);switch(d.length){case 0:break;case 1:yield new a(c,p);break;default:yield new a(c,p),yield new a(c,p);break}}function r(i){const c=new e(i),d=c.read();c.advance(1);const s=[];for(;;){const p=c.read();if(p===d)break;p==="\\"?s.push(...u(c)):(s.push(new a(c.pos,p)),c.advance(1))}return s}function m(i){const c=new e(i);c.advance(1);const d=[];for(;;){const s=c.read();if(s==="`"||s==="$"&&c.read(1)==="{")break;if(s==="\\")d.push(...u(c));else{let p;s==="\r"&&c.read(1)===`
|
|
96
|
+
`?p=`\r
|
|
97
|
+
`:p=s,d.push(new a(c.pos,p)),c.advance(p.length)}}return d}return nu={parseStringLiteral:r,parseTemplateToken:m},nu}var su,Vv;function ok(){if(Vv)return su;Vv=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStaticValue:o,getStringIfConstant:t}=qt(),{RegExpParser:l,visitRegExpAST:f}=ur(),{isCombiningCharacter:u,isEmojiModifier:r,isRegionalIndicatorSymbol:m,isSurrogatePair:i}=ak(),c=Le(),{isValidWithUnicodeFlag:d}=ru(),{parseStringLiteral:s,parseTemplateToken:p}=ik();function*h(S){let w=[];for(const x of S)switch(x.type){case"Character":w.push(x);break;case"CharacterClassRange":w.push(x.min),yield w,w=[x.max];break;case"CharacterSet":case"CharacterClass":case"ClassStringDisjunction":case"ExpressionCharacterClass":w.length>0&&(yield w,w=[]);break}w.length>0&&(yield w)}function g(S){return/^\\u\{[\da-f]+\}$/iu.test(S.raw)}const v={*surrogatePairWithoutUFlag(S){for(const[w,x]of S.entries()){const A=S[w-1];A&&x&&i(A.value,x.value)&&!g(A)&&!g(x)&&(yield[A,x])}},*surrogatePair(S){for(const[w,x]of S.entries()){const A=S[w-1];A&&x&&i(A.value,x.value)&&(g(A)||g(x))&&(yield[A,x])}},*combiningClass(S,w){for(const[x,A]of S.entries()){const k=w[x-1];k&&A&&u(A.value)&&!u(k.value)&&(yield[k,A])}},*emojiModifier(S){for(const[w,x]of S.entries()){const A=S[w-1];A&&x&&r(x.value)&&!r(A.value)&&(yield[A,x])}},*regionalIndicatorSymbol(S){for(const[w,x]of S.entries()){const A=S[w-1];A&&x&&m(x.value)&&m(A.value)&&(yield[A,x])}},*zwj(S){let w=null;for(const[x,A]of S.entries()){const k=S[x-1],R=S[x+1];k&&A&&R&&A.value===8205&&k.value!==8205&&R.value!==8205&&(w?w.at(-1)===k?w.push(A,R):(yield w,w=S.slice(x-1,x+2)):w=S.slice(x-1,x+2))}w&&(yield w)}},E=Object.keys(v);function b(S,w){if(!S)return null;if(S.type==="Literal"&&S.regex)return{regex:S.regex};const x=o(S,w);return x?.value instanceof RegExp?null:x}function T(S,w){return w.startsWith("\\")?new RegExp("(?<=^\\\\+).$","su").exec(w)?.[0]!==String.fromCodePoint(S.value):!1}function C(S,w,x){const A=S.start,k=S.end-1,R=x[A].start,I=x[k].end,B=w.slice(R,I);return T(S,B)}return su={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(S){const[{allowEscape:w}]=S.options,x=S.sourceCode,A=new l,k=new Set;function R(I,B,F,O){let $;try{$=A.parsePattern(B,0,B.length,{unicode:F.includes("u"),unicodeSets:F.includes("v")})}catch{return}let N=null;function _(K){if(I.type==="Literal"&&I.regex)return T(K,K.raw);if(I.type==="Literal"&&typeof I.value=="string"){const J=I.raw;return N??=s(J),C(K,J,N)}if(c.isStaticTemplateLiteral(I)){const J=x.getText(I);return N??=p(J),C(K,J,N)}return!1}const X=new Map;f($,{onCharacterClassEnter(K){for(const J of h(K.elements)){let ge;w?ge=J.map(ae=>_(ae)?null:ae):ge=J;for(const ae of E){const ke=v[ae](ge,J);X.has(ae)?X.get(ae).push(...ke):X.set(ae,[...ke])}}}});function L(K){return!c.isStaticTemplateLiteral(I)&&I.type!=="Literal"?K.length?[I.loc]:[]:K.map(J=>{const ge=J[0].start,ae=J.at(-1).end-1;let ke,Z;if(I.type==="TemplateLiteral"){const P=x.getText(I),H=I.range[0];N??=p(P),ke=H+N[ge].start,Z=H+N[ae].end}else if(typeof I.value=="string"){const P=I.raw,H=I.range[0];N??=s(P),ke=H+N[ge].start,Z=H+N[ae].end}else{const P=I.range[0]+1;ke=P+ge,Z=P+ae+1}return{start:x.getLocFromIndex(ke),end:x.getLocFromIndex(Z)}})}for(const[K,J]of X){let ge;K==="surrogatePairWithoutUFlag"&&(ge=[{messageId:"suggestUnicodeFlag",fix:O}]);const ae=L(J);for(const ke of ae)S.report({node:I,loc:ke,messageId:K,suggest:ge})}}return{"Literal[regex]"(I){k.has(I)||R(I,I.regex.pattern,I.regex.flags,B=>d(S.languageOptions.ecmaVersion,I.regex.pattern)?B.insertTextAfter(I,"u"):null)},Program(I){const B=x.getScope(I),F=new n(B);for(const{node:O}of F.iterateGlobalReferences({RegExp:{[a]:!0,[e]:!0}})){let $,N;const[_,X]=O.arguments,L=b(_,B);if(L){if(X)L.regex?($=L.regex.pattern,k.add(_)):$=String(L.value),N=t(X,B);else{if(L.regex)continue;$=String(L.value),N=""}typeof N=="string"&&R(_,$,N,K=>{if(!d(S.languageOptions.ecmaVersion,$))return null;if(O.arguments.length===1){const J=x.getLastToken(O,{skip:1});return K.insertTextAfter(J,c.isCommaToken(J)?' "u",':', "u"')}if(X.type==="Literal"&&typeof X.value=="string"||X.type==="TemplateLiteral"){const J=[X.range[0],X.range[1]-1];return K.insertTextAfterRange(J,"u")}return null})}}}}}},su}var au,$v;function lk(){if($v)return au;$v=1;const a=Le(),e=["+","-","*","/","%","**"],n=["&","|","^","~","<<",">>",">>>"],o=["==","!=","===","!==",">",">=","<","<="],t=["&&","||"],l=["in","instanceof"],f=["?:"],u=["??"],r=[].concat(e,n,o,t,l,f,u),m=[e,n,o,t,l],i=/^(?:Binary|Logical|Conditional)Expression$/u;function c(p={}){const g=p.groups&&p.groups.length>0?p.groups:m,v=p.allowSamePrecedence!==!1;return{groups:g,allowSamePrecedence:v}}function d(p,h,g){return p.some(v=>v.includes(h)&&v.includes(g))}function s(p){return p.type==="ConditionalExpression"?p.test:p.left}return au={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:r},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(p){const h=p.sourceCode,g=c(p.options[0]);function v(S){const w=S,x=S.parent;return!d(g.groups,w.operator,x.type==="ConditionalExpression"?"?:":x.operator)||g.allowSamePrecedence&&a.getPrecedence(w)===a.getPrecedence(x)}function E(S){return S.operator!==S.parent.operator&&!a.isParenthesised(h,S)}function b(S){return h.getTokenAfter(s(S),a.isNotClosingParenToken)}function T(S){const w=S.parent,x=s(w)===S?S:w,A=s(w)!==S?S:w,k={leftOperator:x.operator||"?:",rightOperator:A.operator||"?:"};p.report({node:x,loc:b(x).loc,messageId:"unexpectedMixedOperator",data:k}),p.report({node:A,loc:b(A).loc,messageId:"unexpectedMixedOperator",data:k})}function C(S){i.test(S.parent.type)&&E(S)&&!v(S)&&T(S)}return{BinaryExpression:C,LogicalExpression:C}}},au}var iu,Gv;function uk(){return Gv||(Gv=1,iu={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(a){const e=a.options[0];let n=!1,o=!1;typeof e=="object"?(n=e.grouping,o=e.allowCall):n=!!e;function t(){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"]}const l=t(),f="require",u="uninitialized",r="other",m="core",i="file",c="module",d="computed";function s(v){return v?v.type==="CallExpression"&&v.callee.type==="Identifier"&&v.callee.name==="require"?f:o&&v.type==="CallExpression"&&v.callee.type==="CallExpression"?s(v.callee):v.type==="MemberExpression"?s(v.object):r:u}function p(v){if(v.type==="MemberExpression")return p(v.object);if(v.arguments.length===0)return d;const E=v.arguments[0];return E.type!=="Literal"||typeof E.value!="string"?d:l.includes(E.value)?m:/^\.{0,2}\//u.test(E.value)?i:c}function h(v){const E={};return v.forEach(b=>{const T=s(b.init);E[T]=!0}),!!(E[f]&&(E[u]||E[r]))}function g(v){const E={};return v.forEach(b=>{s(b.init)===f&&(E[p(b.init)]=!0)}),Object.keys(E).length<=1}return{VariableDeclaration(v){h(v.declarations)?a.report({node:v,messageId:"noMixRequire"}):n&&!g(v.declarations)&&a.report({node:v,messageId:"noMixCoreModuleFileComputed"})}}}}),iu}var ou,Wv;function ck(){return Wv||(Wv=1,ou={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(a){const e=a.sourceCode;let n;switch(a.options[0]){case!0:case"smart-tabs":n=!0;break;default:n=!1}return{"Program:exit"(o){const t=e.lines,l=e.getAllComments(),f=new Set;l.forEach(r=>{for(let m=r.loc.start.line+1;m<=r.loc.end.line;m++)f.add(m)});let u=/^(?=( +|\t+))\1(?:\t| )/u;n&&(u=/^(?=(\t*))\1(?=( +))\2\t/u),t.forEach((r,m)=>{const i=u.exec(r);if(i){const c=m+1,d={start:{line:c,column:i[0].length-2},end:{line:c,column:i[0].length}};if(!f.has(c)){const s=e.getNodeByRangeIndex(e.getIndexFromLoc(d.start));s&&["Literal","TemplateElement"].includes(s.type)||a.report({node:o,loc:d,messageId:"mixedSpacesAndTabs"})}}})}}}}),ou}var lu,zv;function fk(){return zv||(zv=1,lu={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(a){const[{ignoreNonDeclaration:e}]=a.options,n=["VariableDeclarator > AssignmentExpression.init","PropertyDefinition > AssignmentExpression.value"];return e||n.push("AssignmentExpression > AssignmentExpression.right"),{[n](o){a.report({node:o,messageId:"unexpectedChain"})}}}}),lu}var uu,Hv;function pk(){if(Hv)return uu;Hv=1;const a=Le();return uu={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(e){const n=e.sourceCode,o=e.options[0]||{},t=o.ignoreEOLComments,l=Object.assign({Property:!0},o.exceptions),f=Object.keys(l).some(r=>l[r]);function u(r){const m=r.value.split(`
|
|
98
|
+
`),i=m[0],c=`${i.slice(0,12)}...`;return m.length===1&&i.length<=12?i:c}return{Program(){n.tokensAndComments.forEach((r,m,i)=>{if(m===i.length-1)return;const c=i[m+1];if(!n.text.slice(r.range[1],c.range[0]).includes(" ")||r.loc.end.line<c.loc.start.line||t&&a.isCommentToken(c)&&(m===i.length-2||c.loc.end.line<i[m+2].loc.start.line))return;if(f){const s=n.getNodeByRangeIndex(c.range[0]-1);if(s&&l[s.type])return}let d;c.type==="Block"?d=`/*${u(c)}*/`:c.type==="Line"?d=`//${u(c)}`:d=c.value,e.report({node:c,loc:{start:r.loc.end,end:c.loc.start},messageId:"multipleSpaces",data:{displayValue:d},fix:s=>s.replaceTextRange([r.range[1],c.range[0]]," ")})})}}}},uu}var cu,Kv;function mk(){if(Kv)return cu;Kv=1;const a=Le();return cu={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(e){function n(o){return o.type.indexOf("JSX")===0}return{Literal(o){a.LINEBREAK_MATCHER.test(o.raw)&&!n(o.parent)&&e.report({node:o,messageId:"multilineString"})}}}},cu}var fu,Xv;function dk(){return Xv||(Xv=1,fu={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(a){let e=2,n=e,o=e;a.options.length&&(e=a.options[0].max,n=typeof a.options[0].maxEOF<"u"?a.options[0].maxEOF:e,o=typeof a.options[0].maxBOF<"u"?a.options[0].maxBOF:e);const t=a.sourceCode,l=t.lines.at(-1)===""?t.lines.slice(0,-1):t.lines,f=new Set;return{TemplateLiteral(u){u.quasis.forEach(r=>{for(let m=r.loc.start.line;m<r.loc.end.line;m++)f.add(m)})},"Program:exit"(u){return l.reduce((r,m,i)=>((m.trim()||f.has(i+1))&&r.push(i+1),r),[]).concat(l.length+1).reduce((r,m)=>{let i,c;return r===0?(i="blankBeginningOfFile",c=o):m===l.length+1?(i="blankEndOfFile",c=n):(i="consecutiveBlank",c=e),m-r-1>c&&a.report({node:u,loc:{start:{line:r+c+1,column:0},end:{line:m,column:0}},messageId:i,data:{max:c,pluralizedLines:c===1?"line":"lines"},fix(d){const s=t.getIndexFromLoc({line:r+1,column:0}),p=m-c,h=p<=l.length?t.getIndexFromLoc({line:p,column:0}):t.text.length;return d.removeRange([s,h])}}),m},0)}}}}),fu}var pu,Jv;function hk(){return Jv||(Jv=1,pu={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(a){const e=a.options[0],n=e&&e.exceptions||[],o=a.sourceCode;function t(f,u,r){const m=f.identifier;f.init===!1&&f.isWrite()&&(u===0||r[u-1].identifier!==m)&&a.report({node:m,messageId:"nativeReassign",data:m})}function l(f){f.writeable===!1&&!n.includes(f.name)&&f.references.forEach(t)}return{Program(f){o.getScope(f).variables.forEach(l)}}}}),pu}var mu,Yv;function gk(){return Yv||(Yv=1,mu={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(a){function e(l){return l.alternate&&l.alternate.type!=="IfStatement"}function n(l){return l.type==="UnaryExpression"&&l.operator==="!"}function o(l){return l.type==="BinaryExpression"&&(l.operator==="!="||l.operator==="!==")}function t(l){return n(l.test)||o(l.test)}return{IfStatement(l){e(l)&&t(l)&&a.report({node:l,messageId:"unexpectedNegated"})},ConditionalExpression(l){t(l)&&a.report({node:l,messageId:"unexpectedNegated"})}}}}),mu}var du,Qv;function yk(){return Qv||(Qv=1,du={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(a){return{BinaryExpression(e){e.operator==="in"&&e.left.type==="UnaryExpression"&&e.left.operator==="!"&&a.report({node:e,messageId:"negatedLHS"})}}}}),du}var hu,Zv;function vk(){return Zv||(Zv=1,hu={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(a){return{ConditionalExpression(e){(e.alternate.type==="ConditionalExpression"||e.consequent.type==="ConditionalExpression")&&a.report({node:e,messageId:"noNestedTernary"})}}}}),hu}var gu,eS;function Sk(){return eS||(eS=1,gu={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(a){return{"ExpressionStatement > NewExpression"(e){a.report({node:e.parent,messageId:"noNewStatement"})}}}}),gu}var yu,tS;function Ek(){if(tS)return yu;tS=1;const a=Le(),e=new Set(["apply","bind","call"]);return yu={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(n){const o=n.sourceCode;return{"Program:exit"(t){const f=o.getScope(t).set.get("Function");f&&f.defs.length===0&&f.references.forEach(u=>{const r=u.identifier,{parent:m}=r;let i;if(m){if(r===m.callee&&(m.type==="NewExpression"||m.type==="CallExpression"))i=m;else if(m.type==="MemberExpression"&&r===m.object&&e.has(a.getStaticPropertyName(m))){const c=m.parent.type==="ChainExpression"?m.parent:m;c.parent.type==="CallExpression"&&c.parent.callee===c&&(i=c.parent)}}i&&n.report({node:i,messageId:"noFunctionConstructor"})})}}}},yu}var vu,rS;function bk(){if(rS)return vu;rS=1;const a=["Symbol","BigInt"];return vu={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(e){const n=e.sourceCode;return{"Program:exit"(o){const t=n.getScope(o);for(const l of a){const f=t.set.get(l);f&&f.defs.length===0&&f.references.forEach(u=>{const r=u.identifier,m=r.parent;m&&m.type==="NewExpression"&&m.callee===r&&e.report({node:r,messageId:"noNewNonconstructor",data:{name:l}})})}}}}},vu}var Su,nS;function Ck(){if(nS)return Su;nS=1;const a=Le();return Su={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(e){const n=e.sourceCode;return{NewExpression(o){const t=a.getVariableByName(n.getScope(o),o.callee.name);t&&t.identifiers.length>0||o.callee.name==="Object"&&e.report({node:o,messageId:"preferLiteral"})}}}},Su}var Eu,sS;function xk(){return sS||(sS=1,Eu={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(a){return{NewExpression(e){e.callee.type==="Identifier"&&e.callee.name==="require"&&a.report({node:e,messageId:"noNewRequire"})}}}}),Eu}var bu,aS;function wk(){return aS||(aS=1,bu={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(a){const e=a.sourceCode;return{"Program:exit"(n){const t=e.getScope(n).set.get("Symbol");t&&t.defs.length===0&&t.references.forEach(l=>{const f=l.identifier,u=f.parent;u&&u.type==="NewExpression"&&u.callee===f&&a.report({node:f,messageId:"noNewSymbol"})})}}}}),bu}var Cu,iS;function Ak(){if(iS)return Cu;iS=1;const{getVariableByName:a}=Le();return Cu={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(e){const{sourceCode:n}=e;return{NewExpression(o){const t=["String","Number","Boolean"],{name:l}=o.callee;if(t.includes(l)){const f=a(n.getScope(o),l);f&&f.identifiers.length===0&&e.report({node:o,messageId:"noConstructor",data:{fn:l}})}}}}},Cu}var xu,oS;function Tk(){if(oS)return xu;oS=1;const a=/\\[89]/u;function e(n){return`\\u${n.charCodeAt(0).toString(16).padStart(4,"0")}`}return xu={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(n){const o=n.sourceCode;function t(l,f,u){return{messageId:l,data:{original:o.getText().slice(...f),replacement:u},fix(r){return r.replaceTextRange(f,u)}}}return{Literal(l){if(typeof l.value!="string"||!a.test(l.raw))return;const f=/(?:[^\\]|(?<previousEscape>\\.))*?(?<decimalEscape>\\[89])/suy;let u;for(;u=f.exec(l.raw);){const{previousEscape:r,decimalEscape:m}=u.groups,i=l.range[0]+u.index+u[0].length,c=i-m.length,d=[c,i],s=[];r==="\\0"?s.push(t("refactor",[c-r.length,i],`${e("\0")}${m[1]}`),t("refactor",d,e(m[1]))):s.push(t("refactor",d,m[1])),s.push(t("escapeBackslash",d,`\\${m}`)),n.report({node:l,loc:{start:o.getLocFromIndex(c),end:o.getLocFromIndex(i)},messageId:"decimalEscape",data:{decimalEscape:m},suggest:s})}}}}},xu}var wu,lS;function kk(){if(lS)return wu;lS=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n}=qt(),o=Le().getStaticPropertyName,t=["Atomics","JSON","Math","Reflect","Intl"];function l(f){return f.type==="ChainExpression"?l(f.expression):f.type==="MemberExpression"?o(f):f.name}return wu={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(f){const u=f.sourceCode;return{Program(r){const m=u.getScope(r),i=new n(m),c={};for(const d of t)c[d]={[a]:!0,[e]:!0};for(const{node:d,path:s}of i.iterateGlobalReferences(c)){const p=l(d.callee),h=s[0],g=p===h?"unexpectedCall":"unexpectedRefCall";f.report({node:d,messageId:g,data:{name:p,ref:h}})}}}}},wu}var Au,uS;function Dk(){if(uS)return Au;uS=1;const{getVariableByName:a,isArrowToken:e,isStartOfExpressionStatement:n,needsPrecedingSemicolon:o}=Le();return Au={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){const l=t.sourceCode;function f(r){if(n(r))return!0;const m=l.getTokenBefore(r);return!!(m&&e(m))}function u(r){if(r.callee.type!=="Identifier"||r.callee.name!=="Object"||r.arguments.length)return;const m=a(l.getScope(r),"Object");if(m&&m.identifiers.length===0){let i,c,d="useLiteral";f(r)?(i="({})",o(l,r)?(c=";({})",d="useLiteralAfterSemicolon"):c="({})"):i=c="{}",t.report({node:r,messageId:"preferLiteral",suggest:[{messageId:d,data:{replacement:i},fix:s=>s.replaceText(r,c)}]})}}return{CallExpression:u,NewExpression:u}}},Au}var Tu,cS;function Pk(){return cS||(cS=1,Tu={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(a){return{Literal(e){typeof e.value=="number"&&/^0\d/u.test(e.raw)&&a.report({node:e,messageId:"noOctal"})}}}}),Tu}var ku,fS;function Ik(){return fS||(fS=1,ku={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(a){return{Literal(e){if(typeof e.value!="string")return;const n=e.raw.match(/^(?:[^\\]|\\.)*?\\([0-3][0-7]{1,2}|[4-7][0-7]|0(?=[89])|[1-7])/su);n&&a.report({node:e,messageId:"octalEscapeSequence",data:{sequence:n[1]}})}}}}),ku}var Du,pS;function Fk(){if(pS)return Du;pS=1;const a=/(?:Statement|Declaration|Function(?:Expression)?|Program)$/u;return Du={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(e){const n=e.options[0]&&e.options[0].props,o=e.options[0]&&e.options[0].ignorePropertyModificationsFor||[],t=e.options[0]&&e.options[0].ignorePropertyModificationsForRegex||[],l=e.sourceCode;function f(c){let d=c.identifier,s=d.parent;for(;s&&(!a.test(s.type)||s.type==="ForInStatement"||s.type==="ForOfStatement");){switch(s.type){case"AssignmentExpression":return s.left===d;case"UpdateExpression":return!0;case"UnaryExpression":if(s.operator==="delete")return!0;break;case"ForInStatement":case"ForOfStatement":return s.left===d;case"CallExpression":if(s.callee!==d)return!1;break;case"MemberExpression":if(s.property===d)return!1;break;case"Property":if(s.key===d)return!1;break;case"ConditionalExpression":if(s.test===d)return!1;break}d=s,s=d.parent}return!1}function u(c){return o.includes(c)||t.some(d=>new RegExp(d,"u").test(c))}function r(c,d,s){const p=c.identifier;p&&!c.init&&(d===0||s[d-1].identifier!==p)&&(c.isWrite()?e.report({node:p,messageId:"assignmentToFunctionParam",data:{name:p.name}}):n&&f(c)&&!u(p.name)&&e.report({node:p,messageId:"assignmentToFunctionParamProp",data:{name:p.name}}))}function m(c){c.defs[0].type==="Parameter"&&c.references.forEach(r)}function i(c){l.getDeclaredVariables(c).forEach(m)}return{"FunctionDeclaration:exit":i,"FunctionExpression:exit":i,"ArrowFunctionExpression:exit":i}}},Du}var Pu,mS;function Rk(){return mS||(mS=1,Pu={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(a){const e=/^__(?:dir|file)name$/u;return{BinaryExpression(n){const o=n.left,t=n.right;n.operator==="+"&&(o.type==="Identifier"&&e.test(o.name)||t.type==="Identifier"&&e.test(t.name))&&a.report({node:n,messageId:"usePathFunctions"})}}}}),Pu}var Iu,dS;function _k(){if(dS)return Iu;dS=1;function a(n){const o=n.parent;return o.type==="ForStatement"&&o.update===n}function e(n){const o=n.parent;return o.type==="SequenceExpression"?e(o):a(n)}return Iu={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(n){const[{allowForLoopAfterthoughts:o}]=n.options;return{UpdateExpression(t){o&&e(t)||n.report({node:t,messageId:"unexpectedUnaryOp",data:{operator:t.operator}})}}}},Iu}var Fu,hS;function Bk(){return hS||(hS=1,Fu={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(a){return{MemberExpression(e){const n=e.object.name,o=e.property.name;n==="process"&&!e.computed&&o&&o==="env"&&a.report({node:e,messageId:"unexpectedProcessEnv"})}}}}),Fu}var Ru,gS;function Lk(){return gS||(gS=1,Ru={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(a){return{"CallExpression > MemberExpression.callee[object.name = 'process'][property.name = 'exit']"(e){a.report({node:e.parent,messageId:"noProcessExit"})}}}}),Ru}var _u,yS;function Ok(){if(yS)return _u;yS=1;const a=Le(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]);function n(f,u){const r=f.parent;return r.type==="NewExpression"&&r.arguments[0]===f&&r.callee.type==="Identifier"&&r.callee.name==="Promise"&&u.isGlobalReference(r.callee)}function o(f){return f.type==="UnaryExpression"&&f.operator==="void"}function t(f,u,r){const m=a.getPrecedence(u)<a.getPrecedence({type:"UnaryExpression",operator:"void"})&&!a.isParenthesised(f,u),i=f.getTokenBefore(u,u.parent.type==="ArrowFunctionExpression"?a.isArrowToken:(s=>s.type==="Keyword"&&s.value==="return")),c=f.getTokenAfter(i),d=i.value==="return"&&i.range[1]===c.range[0];return[r.insertTextBefore(c,`${d?" ":""}void ${m?"(":""}`),r.insertTextAfter(u,m?")":"")]}function l(f,u,r){const m=f.getTokenBefore(u.body,a.isArrowToken),i=f.getTokenAfter(m),c=f.getLastToken(u);return[r.insertTextBefore(i,"{"),r.insertTextAfter(c,"}")]}return _u={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(f){let u=null;const r=f.sourceCode,[{allowVoid:m}]=f.options;return{onCodePathStart(i,c){if(u={upper:u,shouldCheck:e.has(c.type)&&n(c,r)},u.shouldCheck&&c.type==="ArrowFunctionExpression"&&c.expression&&!(m&&o(c.body))){const d=[];m&&d.push({messageId:"prependVoid",fix(s){return t(r,c.body,s)}}),c.body.type==="FunctionExpression"&&!c.body.id||d.push({messageId:"wrapBraces",fix(s){return l(r,c,s)}}),f.report({node:c.body,messageId:"returnsValue",suggest:d})}},onCodePathEnd(){u=u.upper},ReturnStatement(i){if(u.shouldCheck&&i.argument){if(!m){f.report({node:i,messageId:"returnsValue"});return}o(i.argument)||f.report({node:i,messageId:"returnsValue",suggest:[{messageId:"prependVoid",fix(c){return t(r,i.argument,c)}}]})}}}}},_u}var Bu,vS;function Nk(){if(vS)return Bu;vS=1;const{getStaticPropertyName:a}=Le();return Bu={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(e){return{MemberExpression(n){a(n)==="__proto__"&&e.report({node:n,messageId:"unexpectedProto"})}}}},Bu}var Lu,SS;function Mk(){if(SS)return Lu;SS=1;const a=Le();function e(n){let o;if(n.type==="MemberExpression")o=n.object;else if(n.type==="CallExpression")o=n.callee;else return!1;return n.optional?!0:e(o)}return Lu={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(n){const o=new Set(["hasOwnProperty","isPrototypeOf","propertyIsEnumerable"]);function t(l){const f=a.skipChainExpression(l.callee);if(f.type!=="MemberExpression")return;const u=a.getStaticPropertyName(f);u!==null&&o.has(u)&&n.report({messageId:"prototypeBuildIn",loc:f.property.loc,data:{prop:u},node:l,suggest:[{messageId:"callObjectPrototype",data:{prop:u},fix(r){const m=n.sourceCode;if(e(l)||l.callee.type==="ChainExpression")return null;const i=a.getVariableByName(m.getScope(l),"Object");if(!i||i.scope.type!=="global"||i.defs.length>0)return null;let c=m.getText(f.object);a.getPrecedence(f.object)<=a.getPrecedence({type:"SequenceExpression"})&&(c=`(${c})`);const d=m.getTokenAfter(l.callee,a.isOpeningParenToken),p=l.arguments.length===0?"":", ";return[r.replaceText(f,`Object.prototype.${u}.call`),r.insertTextAfter(d,c+p)]}}]})}return{CallExpression:t}}},Lu}var Ou,ES;function jk(){if(ES)return Ou;ES=1;const a=Le();return Ou={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(e){const[{builtinGlobals:n}]=e.options,o=e.sourceCode;function*t(u){n&&(u.eslintImplicitGlobalSetting==="readonly"||u.eslintImplicitGlobalSetting==="writable")&&(yield{type:"builtin"});for(const r of u.identifiers)yield{type:"syntax",node:r,loc:r.loc};if(u.eslintExplicitGlobalComments)for(const r of u.eslintExplicitGlobalComments)yield{type:"comment",node:r,loc:a.getNameLocationInGlobalDirectiveComment(o,r,u.name)}}function l(u){for(const r of u.variables){const[m,...i]=t(r);if(i.length===0)continue;const c=m.type==="builtin"?"redeclaredAsBuiltin":"redeclaredBySyntax",d={id:r.name};for(const{type:s,node:p,loc:h}of i){const g=s===m.type?"redeclared":c;e.report({node:p,loc:h,messageId:g,data:d})}}}function f(u){const r=o.getScope(u);r.block===u&&l(r)}return{Program(u){const r=o.getScope(u);l(r),r.type==="global"&&r.childScopes[0]&&r.block===r.childScopes[0].block&&l(r.childScopes[0])},FunctionDeclaration:f,FunctionExpression:f,ArrowFunctionExpression:f,StaticBlock:f,BlockStatement:f,ForStatement:f,ForInStatement:f,ForOfStatement:f,SwitchStatement:f}}},Ou}var Nu,bS;function Uk(){if(bS)return Nu;bS=1;const a=Le(),e=ur(),n=new e.RegExpParser,o=/ {2}/u;function t(l){return l&&l.type==="Literal"&&typeof l.value=="string"}return Nu={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(l){const f=l.sourceCode;function u(i,c,d,s,p){if(!o.test(d))return;const h=[];let g;try{g=n.parsePattern(c,0,c.length,{unicode:p.includes("u"),unicodeSets:p.includes("v")})}catch{return}e.visitRegExpAST(g,{onCharacterClassEnter(b){h.push(b)}});const v=/( {2,})(?: [+*{?]|[^+*{?]|$)/gu;let E;for(;E=v.exec(c);){const{1:{length:b},index:T}=E;if(h.every(({start:C,end:S})=>T<C||S<=T)){l.report({node:i,messageId:"multipleSpaces",data:{length:b},fix(C){return c!==d?null:C.replaceTextRange([s+T,s+T+b],` {${b}}`)}});return}}}function r(i){if(i.regex){const c=i.regex.pattern,d=i.raw.slice(1,i.raw.lastIndexOf("/")),s=i.range[0]+1,p=i.regex.flags;u(i,c,d,s,p)}}function m(i){const c=f.getScope(i),d=a.getVariableByName(c,"RegExp"),s=d&&d.defs.length>0,p=i.arguments[0];if(i.callee.type==="Identifier"&&i.callee.name==="RegExp"&&t(p)&&!s){const h=p.value,g=p.raw.slice(1,-1),v=p.range[0]+1;let E;if(i.arguments.length<2)E="";else{const b=i.arguments[1];if(t(b))E=b.value;else return}u(i,h,g,v,E)}}return{Literal:r,CallExpression:m,NewExpression:m}}},Nu}var Mu,CS;function qk(){if(CS)return Mu;CS=1;const a=Le();return Mu={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}]}],messages:{restrictedNamed:"'{{name}}' is restricted from being used as an exported name.",restrictedDefault:"Exporting 'default' is restricted."}},create(e){const n=new Set(e.options[0]&&e.options[0].restrictedNamedExports),o=e.options[0]&&e.options[0].restrictedNamedExportsPattern,t=e.options[0]&&e.options[0].restrictDefaultExports,l=e.sourceCode;function f(u){const r=a.getModuleExportName(u);let m=!1;if(o&&r!=="default"&&(m=new RegExp(o,"u").test(r)),m||n.has(r)){e.report({node:u,messageId:"restrictedNamed",data:{name:r}});return}if(r==="default")if(u.parent.type==="ExportAllDeclaration")t&&t.namespaceFrom&&e.report({node:u,messageId:"restrictedDefault"});else{const i=!!u.parent.parent.source,c=a.getModuleExportName(u.parent.local);if(!i&&t&&t.named){e.report({node:u,messageId:"restrictedDefault"});return}i&&t&&(c==="default"&&t.defaultFrom||c!=="default"&&t.namedFrom)&&e.report({node:u,messageId:"restrictedDefault"})}}return{ExportAllDeclaration(u){u.exported&&f(u.exported)},ExportDefaultDeclaration(u){t&&t.direct&&e.report({node:u,messageId:"restrictedDefault"})},ExportNamedDeclaration(u){const r=u.declaration;r?r.type==="FunctionDeclaration"||r.type==="ClassDeclaration"?f(r.id):r.type==="VariableDeclaration"&&l.getDeclaredVariables(r).map(m=>m.defs.find(i=>i.parent===r)).map(m=>m.name).forEach(f):u.specifiers.map(m=>m.exported).forEach(f)}}}},Mu}var ju,xS;function Vk(){if(xS)return ju;xS=1;const a=Le(),e=new Set(["TSTypeReference","TSInterfaceHeritage","TSClassImplements","TSTypeQuery","TSQualifiedName"]),n=new Set(["globalThis","self","window"]),o={type:"array",items:{oneOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string"}},required:["name"],additionalProperties:!1}]},uniqueItems:!0,minItems:0};return ju={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow specified global variables",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-restricted-globals"},schema:{anyOf:[o,{type:"array",items:[{type:"object",properties:{globals:o,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){const{sourceCode:l,options:f}=t,u=typeof f[0]=="object"&&Object.hasOwn(f[0],"globals"),r=u?f[0].globals:f,m=u?f[0].checkGlobalObject:!1,i=u?f[0].globalObjects||[]:[],c=new Set([...n,...i]);if(r.length===0)return{};const d=r.reduce((g,v)=>(typeof v=="string"?g[v]=null:g[v.name]=v.message,g),{});function s(g){const v=g.identifier.name,E=d[v],b=E?"customMessage":"defaultMessage";t.report({node:g.identifier,messageId:b,data:{name:v,customMessage:E}})}function p(g){return Object.hasOwn(d,g)}function h(g){const v=g.identifier.parent;return e.has(v.type)}return{Program(g){const v=l.getScope(g);v.variables.forEach(E=>{!E.defs.length&&p(E.name)&&E.references.forEach(b=>{h(b)||s(b)})}),v.through.forEach(E=>{p(E.identifier.name)&&!h(E)&&s(E)})},"Program:exit"(g){if(!m)return;const v=l.getScope(g);c.forEach(E=>{const b=a.getVariableByName(v,E);b&&b.references.forEach(T=>{let S=T.identifier.parent;for(;a.isSpecificMemberAccess(S,null,E);)S=S.parent;const w=a.getStaticPropertyName(S);if(w&&p(w)){const x=d[w],A=x?"customMessage":"defaultMessage";t.report({node:S.property,messageId:A,data:{name:w,customMessage:x}})}})})}}}},ju}var Uu,wS;function AS(){if(wS)return Uu;wS=1;function a($){return Array.isArray($)?$:[$]}const e="",n=" ",o="\\",t=/^\s+$/,l=/(?:[^\\]|^)\\$/,f=/^\\!/,u=/^\\#/,r=/\r?\n/g,m=/^\.*\/|^\.+$/,i="/";let c="node-ignore";typeof Symbol<"u"&&(c=Symbol.for("node-ignore"));const d=c,s=($,N,_)=>Object.defineProperty($,N,{value:_}),p=/([0-z])-([0-z])/g,h=()=>!1,g=$=>$.replace(p,(N,_,X)=>_.charCodeAt(0)<=X.charCodeAt(0)?N:e),v=$=>{const{length:N}=$;return $.slice(0,N-N%2)},E=[[/^\uFEFF/,()=>e],[/((?:\\\\)*?)(\\?\s+)$/,($,N,_)=>N+(_.indexOf("\\")===0?n:e)],[/(\\+?)\s/g,($,N)=>{const{length:_}=N;return N.slice(0,_-_%2)+n}],[/[\\$.|*+(){^]/g,$=>`\\${$}`],[/(?!\\)\?/g,()=>"[^/]"],[/^\//,()=>"^"],[/\//g,()=>"\\/"],[/^\^*\\\*\\\*\\\//,()=>"^(?:.*\\/)?"],[/^(?=[^^])/,function(){return/\/(?!$)/.test(this)?"^":"(?:^|\\/)"}],[/\\\/\\\*\\\*(?=\\\/|$)/g,($,N,_)=>N+6<_.length?"(?:\\/[^\\/]+)*":"\\/.+"],[/(^|[^\\]+)(\\\*)+(?=.+)/g,($,N,_)=>{const X=_.replace(/\\\*/g,"[^\\/]*");return N+X}],[/\\\\\\(?=[$.|*+(){^])/g,()=>o],[/\\\\/g,()=>o],[/(\\)?\[([^\]/]*?)(\\*)($|\])/g,($,N,_,X,L)=>N===o?`\\[${_}${v(X)}${L}`:L==="]"&&X.length%2===0?`[${g(_)}${X}]`:"[]"],[/(?:[^*])$/,$=>/\/$/.test($)?`${$}$`:`${$}(?=$|\\/$)`],[/(\^|\\\/)?\\\*$/,($,N)=>`${N?`${N}[^/]+`:"[^/]*"}(?=$|\\/$)`]],b=Object.create(null),T=($,N)=>{let _=b[$];return _||(_=E.reduce((X,[L,K])=>X.replace(L,K.bind($)),$),b[$]=_),N?new RegExp(_,"i"):new RegExp(_)},C=$=>typeof $=="string",S=$=>$&&C($)&&!t.test($)&&!l.test($)&&$.indexOf("#")!==0,w=$=>$.split(r);class x{constructor(N,_,X,L){this.origin=N,this.pattern=_,this.negative=X,this.regex=L}}const A=($,N)=>{const _=$;let X=!1;$.indexOf("!")===0&&(X=!0,$=$.substr(1)),$=$.replace(f,"!").replace(u,"#");const L=T($,N);return new x(_,$,X,L)},k=($,N)=>{throw new N($)},R=($,N,_)=>C($)?$?R.isNotRelative($)?_(`path should be a \`path.relative()\`d string, but got "${N}"`,RangeError):!0:_("path must not be empty",TypeError):_(`path must be a string, but got \`${N}\``,TypeError),I=$=>m.test($);R.isNotRelative=I,R.convert=$=>$;class B{constructor({ignorecase:N=!0,ignoreCase:_=N,allowRelativePaths:X=!1}={}){s(this,d,!0),this._rules=[],this._ignoreCase=_,this._allowRelativePaths=X,this._initCache()}_initCache(){this._ignoreCache=Object.create(null),this._testCache=Object.create(null)}_addPattern(N){if(N&&N[d]){this._rules=this._rules.concat(N._rules),this._added=!0;return}if(S(N)){const _=A(N,this._ignoreCase);this._added=!0,this._rules.push(_)}}add(N){return this._added=!1,a(C(N)?w(N):N).forEach(this._addPattern,this),this._added&&this._initCache(),this}addPattern(N){return this.add(N)}_testOne(N,_){let X=!1,L=!1;return this._rules.forEach(K=>{const{negative:J}=K;if(L===J&&X!==L||J&&!X&&!L&&!_)return;K.regex.test(N)&&(X=!J,L=J)}),{ignored:X,unignored:L}}_test(N,_,X,L){const K=N&&R.convert(N);return R(K,N,this._allowRelativePaths?h:k),this._t(K,_,X,L)}_t(N,_,X,L){if(N in _)return _[N];if(L||(L=N.split(i)),L.pop(),!L.length)return _[N]=this._testOne(N,X);const K=this._t(L.join(i)+i,_,X,L);return _[N]=K.ignored?K:this._testOne(N,X)}ignores(N){return this._test(N,this._ignoreCache,!1).ignored}createFilter(){return N=>!this.ignores(N)}filter(N){return a(N).filter(this.createFilter())}test(N){return this._test(N,this._testCache,!0)}}const F=$=>new B($),O=$=>R($&&R.convert($),$,h);if(F.isPathValid=O,F.default=F,Uu=F,typeof Ft<"u"&&(Ft.env&&Ft.env.IGNORE_TEST_WIN32||Ft.platform==="win32")){const $=_=>/^\\\\\?\\/.test(_)||/["<>|\u0000-\u001F]+/u.test(_)?_:_.replace(/\\/g,"/");R.convert=$;const N=/^[a-z]:\//i;R.isNotRelative=_=>N.test(_)||I(_)}return Uu}var qu,TS;function $k(){if(TS)return qu;TS=1;const a=Le(),e=AS(),n={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};return qu={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow specified modules when loaded by `import`",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}}' is 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}}' is 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}}' is restricted.",everythingWithCustomMessage:"* import is invalid because '{{importNames}}' from '{{importSource}}' is 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}}' import(s) is/are allowed.",allowedImportNameWithCustomMessage:"'{{importName}}' import from '{{importSource}}' is restricted because only '{{allowedImportNames}}' import(s) is/are allowed. {{customMessage}}",everythingWithAllowImportNames:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are allowed.",everythingWithAllowImportNamesAndCustomMessage:"* import is invalid because only '{{allowedImportNames}}' from '{{importSource}}' is/are 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:[n,{type:"array",items:[{type:"object",properties:{paths:n,patterns:{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}]}},additionalProperties:!1}],additionalItems:!1}]}},create(t){const l=t.sourceCode,f=Array.isArray(t.options)?t.options:[],u=typeof f[0]=="object"&&(Object.hasOwn(f[0],"paths")||Object.hasOwn(f[0],"patterns")),r=(u?f[0].paths:t.options)||[],m=r.reduce((b,T)=>{const C=typeof T=="string"?T:T.name;return b[C]||(b[C]=[]),typeof T=="string"?b[C].push({}):b[C].push({message:T.message,importNames:T.importNames,allowImportNames:T.allowImportNames,allowTypeImports:T.allowTypeImports}),b},Object.create(null));let i=(u?f[0].patterns:[])||[];i.length>0&&typeof i[0]=="string"&&(i=[{group:i}]);const c=i.map(({group:b,regex:T,message:C,caseSensitive:S,importNames:w,importNamePattern:x,allowImportNames:A,allowImportNamePattern:k,allowTypeImports:R})=>({...b?{matcher:e({allowRelativePaths:!0,ignorecase:!S}).add(b)}:{},...typeof T=="string"?{regexMatcher:new RegExp(T,S?"u":"iu")}:{},customMessage:C,importNames:w,importNamePattern:x,allowImportNames:A,allowImportNamePattern:k,allowTypeImports:R}));if(Object.keys(r).length===0&&c.length===0)return{};function d(b){return b.importKind==="type"||b.specifiers?.length>0&&b.specifiers.every(T=>T.importKind==="type")}function s(b){return b.importKind==="type"||b.exportKind==="type"}function p(b){return b.exportKind==="type"||b.specifiers?.length>0&&b.specifiers.every(T=>T.exportKind==="type")}function h(b,T,C){Object.hasOwn(m,b)&&m[b].forEach(S=>{const w=S.message,x=S.importNames,A=S.allowImportNames,k=S.allowTypeImports;if(!(k&&(C.type==="ImportDeclaration"||C.type==="TSImportEqualsDeclaration")&&d(C))&&!(k&&(C.type==="ExportNamedDeclaration"||C.type==="ExportAllDeclaration")&&p(C))){if(!x&&!A){t.report({node:C,messageId:w?"pathWithCustomMessage":"path",data:{importSource:b,customMessage:w}});return}T.forEach((R,I)=>{if(I==="*"){const[B]=R;x?t.report({node:C,messageId:w?"everythingWithCustomMessage":"everything",loc:B.loc,data:{importSource:b,importNames:x,customMessage:w}}):A&&t.report({node:C,messageId:w?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:B.loc,data:{importSource:b,allowedImportNames:A,customMessage:w}});return}x&&x.includes(I)&&R.forEach(B=>{k&&s(B.specifier)||t.report({node:C,messageId:w?"importNameWithCustomMessage":"importName",loc:B.loc,data:{importSource:b,customMessage:w,importName:I}})}),A&&!A.includes(I)&&R.forEach(B=>{k&&s(B.specifier)||t.report({node:C,loc:B.loc,messageId:w?"allowedImportNameWithCustomMessage":"allowedImportName",data:{importSource:b,customMessage:w,importName:I,allowedImportNames:A}})})})}})}function g(b,T,C,S){if(T.allowTypeImports&&(b.type==="ImportDeclaration"||b.type==="TSImportEqualsDeclaration")&&d(b)||T.allowTypeImports&&(b.type==="ExportNamedDeclaration"||b.type==="ExportAllDeclaration")&&p(b))return;const w=T.customMessage,x=T.importNames,A=T.importNamePattern?new RegExp(T.importNamePattern,"u"):null,k=T.allowImportNames,R=T.allowImportNamePattern?new RegExp(T.allowImportNamePattern,"u"):null;if(!x&&!k&&!A&&!R){t.report({node:b,messageId:w?"patternWithCustomMessage":"patterns",data:{importSource:S,customMessage:w}});return}C.forEach((I,B)=>{if(B==="*"){const[F]=I;x?t.report({node:b,messageId:w?"patternAndEverythingWithCustomMessage":"patternAndEverything",loc:F.loc,data:{importSource:S,importNames:x,customMessage:w}}):k?t.report({node:b,messageId:w?"everythingWithAllowImportNamesAndCustomMessage":"everythingWithAllowImportNames",loc:F.loc,data:{importSource:S,allowedImportNames:k,customMessage:w}}):R?t.report({node:b,messageId:w?"everythingWithAllowedImportNamePatternWithCustomMessage":"everythingWithAllowedImportNamePattern",loc:F.loc,data:{importSource:S,allowedImportNamePattern:R,customMessage:w}}):t.report({node:b,messageId:w?"patternAndEverythingWithRegexImportNameAndCustomMessage":"patternAndEverythingWithRegexImportName",loc:F.loc,data:{importSource:S,importNames:A,customMessage:w}});return}(x&&x.includes(B)||A&&A.test(B))&&I.forEach(F=>{T.allowTypeImports&&s(F.specifier)||t.report({node:b,messageId:w?"patternAndImportNameWithCustomMessage":"patternAndImportName",loc:F.loc,data:{importSource:S,customMessage:w,importName:B}})}),k&&!k.includes(B)?I.forEach(F=>{T.allowTypeImports&&s(F.specifier)||t.report({node:b,messageId:w?"allowedImportNameWithCustomMessage":"allowedImportName",loc:F.loc,data:{importSource:S,customMessage:w,importName:B,allowedImportNames:k}})}):R&&!R.test(B)&&I.forEach(F=>{T.allowTypeImports&&s(F.specifier)||t.report({node:b,messageId:w?"allowedImportNamePatternWithCustomMessage":"allowedImportNamePattern",loc:F.loc,data:{importSource:S,customMessage:w,importName:B,allowedImportNamePattern:R}})})})}function v(b,T){return T.regexMatcher?T.regexMatcher.test(b):T.matcher.ignores(b)}function E(b){const T=b.source.value.trim(),C=new Map;if(b.type==="ExportAllDeclaration"){const S=l.getFirstToken(b,1);C.set("*",[{loc:S.loc}])}else if(b.specifiers)for(const S of b.specifiers){let w;const x={loc:S.loc,specifier:S};S.type==="ImportDefaultSpecifier"?w="default":S.type==="ImportNamespaceSpecifier"?w="*":S.imported?w=a.getModuleExportName(S.imported):S.local&&(w=a.getModuleExportName(S.local)),typeof w=="string"&&(C.has(w)?C.get(w).push(x):C.set(w,[x]))}h(T,C,b),c.forEach(S=>{v(T,S)&&g(b,S,C,T)})}return{ImportDeclaration:E,ExportNamedDeclaration(b){b.source&&E(b)},ExportAllDeclaration:E,TSImportEqualsDeclaration(b){if(b.moduleReference.type==="TSExternalModuleReference"){const T=b.moduleReference.expression.value,C=new Map;h(T,C,b),c.forEach(S=>{v(T,S)&&g(b,S,C,T)})}}}}},qu}var Vu,kS;function Gk(){if(kS)return Vu;kS=1;const a=Le(),e=AS(),n={type:"array",items:{type:"string"},uniqueItems:!0},o={type:"array",items:{anyOf:[{type:"string"},{type:"object",properties:{name:{type:"string"},message:{type:"string",minLength:1}},additionalProperties:!1,required:["name"]}]},uniqueItems:!0};return Vu={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:[o,{type:"array",items:{type:"object",properties:{paths:o,patterns:n},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){const l=Array.isArray(t.options)?t.options:[],f=typeof l[0]=="object"&&(Object.hasOwn(l[0],"paths")||Object.hasOwn(l[0],"patterns")),u=(f?l[0].paths:t.options)||[],r=(f?l[0].patterns:[])||[],m=u.reduce((g,v)=>(typeof v=="string"?g[v]=null:g[v.name]=v.message,g),{});if(Object.keys(u).length===0&&r.length===0)return{};const i=e({allowRelativePaths:!0}).add(r);function c(g){return g&&g.type==="Literal"&&typeof g.value=="string"}function d(g){return g.callee.type==="Identifier"&&g.callee.name==="require"}function s(g){return c(g)?g.value.trim():a.isStaticTemplateLiteral(g)?g.quasis[0].value.cooked.trim():null}function p(g,v){const E=m[v],b=E?"customMessage":"defaultMessage";t.report({node:g,messageId:b,data:{name:v,customMessage:E}})}function h(g){return Object.hasOwn(m,g)}return{CallExpression(g){if(d(g)&&g.arguments.length){const v=s(g.arguments[0]);v&&(h(v)&&p(g,v),r.length>0&&i.ignores(v)&&t.report({node:g,messageId:"patternMessage",data:{name:v}}))}}}}},Vu}var $u,DS;function Wk(){if(DS)return $u;DS=1;const a=Le();return $u={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},messages:{restrictedObjectProperty:"'{{objectName}}.{{propertyName}}' is restricted from being used.{{allowedPropertiesMessage}}{{message}}",restrictedProperty:"'{{propertyName}}' is restricted from being used.{{allowedObjectsMessage}}{{message}}"}},create(e){const n=e.options;if(n.length===0)return{};const o=new Map,t=new Map,l=new Map;n.forEach(r=>{const m=r.object,i=r.property;typeof m>"u"?l.set(i,{allowObjects:r.allowObjects,message:r.message}):typeof i>"u"?t.set(m,{allowProperties:r.allowProperties,message:r.message}):(o.has(m)||o.set(m,new Map),o.get(m).set(i,{message:r.message}))});function f(r,m){return m?m.includes(r):!1}function u(r,m,i){if(i===null)return;const c=o.get(m),d=c?c.get(i):t.get(m),s=l.get(i);if(d&&!f(i,d.allowProperties)){const p=d.message?` ${d.message}`:"",h=d.allowProperties?` Only these properties are allowed: ${d.allowProperties.join(", ")}.`:"";e.report({node:r,messageId:"restrictedObjectProperty",data:{objectName:m,propertyName:i,message:p,allowedPropertiesMessage:h}})}else if(s&&!f(m,s.allowObjects)){const p=s.message?` ${s.message}`:"",h=s.allowObjects?` Property '${i}' is only allowed on these objects: ${s.allowObjects.join(", ")}.`:"";e.report({node:r,messageId:"restrictedProperty",data:{propertyName:i,message:p,allowedObjectsMessage:h}})}}return{MemberExpression(r){u(r,r.object&&r.object.name,a.getStaticPropertyName(r))},ObjectPattern(r){let m=null;r.parent.type==="VariableDeclarator"?r.parent.init&&r.parent.init.type==="Identifier"&&(m=r.parent.init.name):(r.parent.type==="AssignmentExpression"||r.parent.type==="AssignmentPattern")&&r.parent.right.type==="Identifier"&&(m=r.parent.right.name),r.properties.forEach(i=>{u(r,m,a.getStaticPropertyName(i))})}}}},$u}var Gu,PS;function zk(){return PS||(PS=1,Gu={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},messages:{restrictedSyntax:"{{message}}"}},create(a){return a.options.reduce((e,n)=>{const o=typeof n=="string",t=!o&&!!n.message,l=o?n:n.selector,f=t?n.message:`Using '${l}' is not allowed.`;return Object.assign(e,{[l](u){a.report({node:u,messageId:"restrictedSyntax",data:{message:f}})}})},{})}}),Gu}var Wu,IS;function Hk(){if(IS)return Wu;IS=1;const a=Le(),e=/^(?:[a-zA-Z]+?Statement|ArrowFunctionExpression|FunctionExpression|ClassExpression)$/u;return Wu={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(n){const o=n.options[0]!=="except-parens",t=n.sourceCode;return{AssignmentExpression(l){if(!o&&a.isParenthesised(t,l))return;let f=l,u=f.parent;for(;u&&!e.test(u.type);)f=u,u=u.parent;u&&u.type==="ReturnStatement"?n.report({node:u,messageId:"returnAssignment"}):u&&u.type==="ArrowFunctionExpression"&&u.body===f&&n.report({node:u,messageId:"arrowAssignment"})}}}},Wu}var zu,FS;function Kk(){if(FS)return zu;FS=1;const a=Le();return zu={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(e){function n(l){e.report({node:e.sourceCode.getFirstToken(l),loc:l.loc,messageId:"redundantUseOfAwait",suggest:[{messageId:"removeAwait",fix(f){const u=e.sourceCode,[r,m]=u.getFirstTokens(l,2);if(!(r.loc.start.line===m.loc.start.line))return null;const[c,d]=r.range,p=u.text[d]===" "?1:0,h=[c,d+p];return f.removeRange(h)}}]})}function o(l){let f=l;for(;!a.isFunction(f)&&f.type!=="Program";){if(f.parent.type==="TryStatement"&&(f===f.parent.block||f===f.parent.handler&&f.parent.finalizer))return!0;f=f.parent}return!1}function t(l){return l.parent.type==="ArrowFunctionExpression"?!0:l.parent.type==="ReturnStatement"?!o(l.parent):l.parent.type==="ConditionalExpression"&&(l===l.parent.consequent||l===l.parent.alternate)||l.parent.type==="LogicalExpression"&&l===l.parent.right||l.parent.type==="SequenceExpression"&&l===l.parent.expressions.at(-1)?t(l.parent):!1}return{AwaitExpression(l){t(l)&&!o(l)&&n(l)}}}},zu}var Hu,RS;function Xk(){if(RS)return Hu;RS=1;const a=Le();return Hu={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(e){function n(o){const t=a.getStaticStringValue(o);typeof t=="string"&&t.toLowerCase().indexOf("javascript:")===0&&e.report({node:o,messageId:"unexpectedScriptURL"})}return{Literal(o){o.value&&typeof o.value=="string"&&n(o)},TemplateLiteral(o){o.parent&&o.parent.type==="TaggedTemplateExpression"||n(o)}}}},Hu}var Ku,_S;function Jk(){if(_S)return Ku;_S=1;const a=Le(),e=/\s+/gu;function n(o,t,l,f){if(!(!o||!t))if(o.type==="Identifier"&&t.type==="Identifier"&&o.name===t.name)f(t);else if(o.type==="ArrayPattern"&&t.type==="ArrayExpression"){const u=Math.min(o.elements.length,t.elements.length);for(let r=0;r<u;++r){const m=o.elements[r],i=t.elements[r];if(m&&m.type==="RestElement"&&r<t.elements.length-1||(n(m,i,l,f),i&&i.type==="SpreadElement"))break}}else if(o.type==="RestElement"&&t.type==="SpreadElement")n(o.argument,t.argument,l,f);else if(o.type==="ObjectPattern"&&t.type==="ObjectExpression"&&t.properties.length>=1){let u=0;for(let r=t.properties.length-1;r>=0;--r){const m=t.properties[r].type;if(m==="SpreadElement"||m==="ExperimentalSpreadProperty"){u=r+1;break}}for(let r=0;r<o.properties.length;++r)for(let m=u;m<t.properties.length;++m)n(o.properties[r],t.properties[m],l,f)}else if(o.type==="Property"&&t.type==="Property"&&t.kind==="init"&&!t.method){const u=a.getStaticPropertyName(o);u!==null&&u===a.getStaticPropertyName(t)&&n(o.value,t.value,l,f)}else l&&a.skipChainExpression(o).type==="MemberExpression"&&a.skipChainExpression(t).type==="MemberExpression"&&a.isSameReference(o,t)&&f(t)}return Ku={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(o){const t=o.sourceCode,[{props:l}]=o.options;function f(u){o.report({node:u,messageId:"selfAssignment",data:{name:t.getText(u).replace(e,"")}})}return{AssignmentExpression(u){["=","&&=","||=","??="].includes(u.operator)&&n(u.left,u.right,l,f)}}}},Ku}var Xu,BS;function Yk(){return BS||(BS=1,Xu={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(a){const e=a.sourceCode;function n(o,t){const l=e.getTokens(o),f=e.getTokens(t);return l.length===f.length&&l.every((u,r)=>u.type===f[r].type&&u.value===f[r].value)}return{BinaryExpression(o){new Set(["===","==","!==","!=",">","<",">=","<="]).has(o.operator)&&n(o.left,o.right)&&a.report({node:o,messageId:"comparingToSelf"})}}}}),Xu}var Ju,LS;function Qk(){if(LS)return Ju;LS=1;const a=Le();return Ju={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(e){const[{allowInParentheses:n}]=e.options,o=e.sourceCode,t={DoWhileStatement:"test",IfStatement:"test",SwitchStatement:"discriminant",WhileStatement:"test",WithStatement:"object",ArrowFunctionExpression:"body"};function l(r){return r.parent&&t[r.parent.type]&&r===r.parent[t[r.parent.type]]}function f(r){return a.isParenthesised(o,r)}function u(r){const m=o.getTokenBefore(r,1),i=o.getTokenAfter(r,1);return f(r)&&m&&i&&a.isOpeningParenToken(m)&&m.range[1]<=r.range[0]&&a.isClosingParenToken(i)&&i.range[0]>=r.range[1]}return{SequenceExpression(r){if(r.parent.type==="ForStatement"&&(r===r.parent.init||r===r.parent.update))return;if(n){if(l(r)){if(u(r))return}else if(f(r))return}const m=o.getTokenAfter(r.expressions[0],a.isCommaToken);e.report({node:r,loc:m.loc,messageId:"unexpectedCommaExpression"})}}}},Ju}var Yu,OS;function Zk(){if(OS)return Yu;OS=1;const a=Le();function e(t,l,f,u,r){const m=t.parent;return m.type==="CallExpression"&&m.arguments[r]===t&&a.isSpecificMemberAccess(m.callee,f,u)&&l.isGlobalReference(a.skipChainExpression(m.callee).object)}function n(t,l){if(e(t,l,"Object","defineProperty",2)||e(t,l,"Reflect","defineProperty",2))return!0;const f=t.parent;if(f.type==="Property"&&f.value===t){const u=f.parent;if(u.type==="ObjectExpression"&&(e(u,l,"Object","create",1)||e(u,l,"Object","defineProperties",1)))return!0}return!1}function o(t,l){const f=t.parent;return!!((f.type==="Property"||f.type==="MethodDefinition")&&f.kind==="set"&&f.value===t||f.type==="Property"&&f.value===t&&a.getStaticPropertyName(f)==="set"&&f.parent.type==="ObjectExpression"&&n(f.parent,l))}return Yu={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 l=null;const f=t.sourceCode;function u(i){l={upper:l,isSetter:o(i,f)}}function r(){l=l.upper}function m(i){t.report({node:i,messageId:"returnsValue"})}return{FunctionDeclaration:u,FunctionExpression:u,ArrowFunctionExpression(i){u(i),l.isSetter&&i.expression&&m(i.body)},"FunctionDeclaration:exit":r,"FunctionExpression:exit":r,"ArrowFunctionExpression:exit":r,ReturnStatement(i){l&&l.isSetter&&i.argument&&m(i)}}}},Yu}var Qu,NS;function eD(){if(NS)return Qu;NS=1;const a=Le(),e=new Set(["ArrowFunctionExpression","FunctionExpression"]),n=new Set(["CallExpression"]),o=/^For(?:In|Of)Statement$/u,t=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,l=new Set(["TSInterfaceDeclaration","TSTypeAliasDeclaration"]),f=new Set(["TSCallSignatureDeclaration","TSFunctionType","TSMethodSignature","TSEmptyBodyFunctionExpression","TSDeclareFunction","TSConstructSignatureDeclaration","TSConstructorType"]);return Qu={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",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",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(u){const[{builtinGlobals:r,hoist:m,allow:i,ignoreOnInitialization:c,ignoreTypeValueShadow:d,ignoreFunctionTypeParameterNameValueShadow:s}]=u.options,p=u.sourceCode;function h(X){return X.block.kind==="global"||!!X.upper&&h(X.upper)}function g(X){return X.name==="this"}function v(X,L){if(d!==!0||!("isValueVariable"in X))return!1;const K=L.defs[0],J=K&&K.parent?.type==="ImportDeclaration"&&(K.parent.importKind==="type"||K.parent.specifiers.some(ae=>ae.importKind==="type")),ge=!K||(J?!1:L.isValueVariable);return X.isValueVariable!==ge}function E(X){return s!==!0?!1:X.defs.some(L=>f.has(L.node.type))}function b(X){const K=X.identifiers[0].parent.parent;return K.type!=="TSTypeParameterDeclaration"?!1:K.parent.parent.static}function T(X){return b(X)}function C(X,L){return X&&X.range[0]<=L&&L<=X.range[1]}function S(X,L){let K=X;for(;K&&!L(K);)K=K.parent;return K}function w(X){const L=X.upper;return L&&L.type==="function-expression-name"?L.upper:L}function x(X,L){const K=L.defs[0];if(!K)return!1;const{variableScope:J}=X.scope;if(!(e.has(J.block.type)&&w(J)===L.scope))return!1;const ge=J.block,{parent:ae}=ge,ke=S(ae,H=>n.has(H.type));if(!ke)return!1;let Z=K.name;const P=ke.range[1];for(;Z;){if(Z.type==="VariableDeclarator"){if(C(Z.init,P)||o.test(Z.parent.parent.type)&&C(Z.parent.parent.right,P))return!0;break}else if(Z.type==="AssignmentPattern"){if(C(Z.right,P))return!0}else if(t.test(Z.type))break;Z=Z.parent}return!1}function A(X){return i.includes(X.name)}function k(X){const L=X.scope.block;return L.type==="ClassDeclaration"&&L.id===X.identifiers[0]}function R(X,L){const K=L.scope,J=L.defs[0],ge=J&&J.parent&&J.parent.range,ae=X.scope,ke=X.defs[0],Z=ke&&ke.name.range;return ge&&Z&&ge[0]<Z[0]&&Z[1]<ge[1]&&(ke.type==="FunctionName"&&ke.node.type==="FunctionExpression"||ke.node.type==="ClassExpression")&&K===ae.upper}function I(X){const L=X.defs[0];return L&&L.name.range}function B(X){const L=X.identifiers[0];let K;return L?K={global:!1,line:L.loc.start.line,column:L.loc.start.column+1}:K={global:!0},K}function F(X,L){const K=L.defs[0],J=I(X),ge=I(L);return!ge||J[1]>=ge[0]?!1:m==="types"?!l.has(K.node.type):m==="functions-and-types"?K.node.type!=="FunctionDeclaration"&&!l.has(K.node.type):J&&ge&&J[1]<ge[0]&&(m!=="functions"||!K||K.node.type!=="FunctionDeclaration")}function O(X){const L=u.filename;return!L.endsWith(".d.ts")&&!L.endsWith(".d.cts")&&!L.endsWith(".d.mts")?!1:X.defs.some(K=>K.type==="Variable"&&K.parent.declare||K.type==="ClassName"&&K.node.declare||K.type==="TSEnumName"&&K.node.declare||K.type==="TSModuleName"&&K.node.declare)}function $(X){const L=X.scope.block;return L.type==="TSEnumDeclaration"&&L.id===X.identifiers[0]}function N(X,L,K){const J=K.defs[0];if(!J||!J.parent||!(J.parent.type==="ImportDeclaration"&&(J.parent.importKind==="type"||J.parent.specifiers?.some(P=>P.type==="ImportSpecifier"&&P.importKind==="type"&&P.local.name===K.name))))return!1;const ae=S(L.identifiers[0]?.parent,P=>P.type==="TSModuleDeclaration");if(!ae)return!1;const ke=J.parent.source.value,Z=ae.id.type==="Literal"?ae.id.value:ae.id.name;return ke===Z}function _(X){if(h(X))return;const L=X.variables;for(let K=0;K<L.length;++K){const J=L[K];if(J.identifiers.length===0||k(J)||$(J)||A(J)||O(J)||g(J))continue;const ge=a.getVariableByName(X.upper,J.name);if(ge&&(ge.identifiers.length>0||r&&"writeable"in ge)&&!R(J,ge)&&!(c&&x(J,ge))&&!(m!=="all"&&F(J,ge))&&!v(J,ge)&&!E(J)&&!T(J)&&!N(X,J,ge)){const ae=B(ge),ke=ae.global?"noShadowGlobal":"noShadow",Z={name:J.name};ae.global||(Z.shadowedLine=ae.line,Z.shadowedColumn=ae.column),u.report({node:J.identifiers[0],messageId:ke,data:Z})}}}return{"Program:exit"(X){const K=p.getScope(X).childScopes.slice();for(;K.length;){const J=K.pop();K.push(...J.childScopes),_(J)}}}}},Qu}var Zu,MS;function tD(){if(MS)return Zu;MS=1;function a(e){return e.name==="undefined"&&e.references.every(n=>!n.isWrite())&&e.defs.every(n=>n.node.type==="VariableDeclarator"&&n.node.init===null)}return Zu={meta:{type:"suggestion",defaultOptions:[{reportGlobalThis:!1}],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(e){const[{reportGlobalThis:n}]=e.options,o=new Set(["undefined","NaN","Infinity","arguments","eval"]);n&&o.add("globalThis");const t=e.sourceCode,l=new Set;return{"VariableDeclaration, :function, CatchClause, ImportDeclaration, ClassDeclaration, ClassExpression"(f){for(const u of t.getDeclaredVariables(f))if(u.defs.length>0&&o.has(u.name)&&!a(u))for(const r of u.defs){const m=r.name;l.has(m)||(l.add(m),e.report({node:m,messageId:"shadowingRestrictedName",data:{name:u.name}}))}}}}},Zu}var ec,jS;function rD(){return jS||(jS=1,ec={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(a){const e=a.sourceCode;function n(o){const t=e.getLastToken(o.callee);let l=t,f=e.getTokenAfter(t);for(;f&&f.range[1]<o.range[1]&&f.value!=="(";)l=f,f=e.getTokenAfter(f);f&&f.range[1]<o.range[1]&&e.isSpaceBetweenTokens(l,f)&&a.report({node:o,loc:t.loc.start,messageId:"noSpacedFunction",fix(u){return u.removeRange([l.range[1],f.range[0]])}})}return{CallExpression:n,NewExpression:n}}}),ec}var tc,US;function nD(){if(US)return tc;US=1;const a=Le();return tc={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(e){return{ArrayExpression(n){if(!n.elements.includes(null))return;const{sourceCode:o}=e;let t;for(const[l,f]of n.elements.entries()){if(l===n.elements.length-1&&f)return;t=o.getTokenAfter(f??t??o.getFirstToken(n),a.isCommaToken),!f&&e.report({node:n,loc:t.loc,messageId:"unexpectedSparseArray"})}}}}},tc}var rc,qS;function sD(){return qS||(qS=1,rc={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(a){return{[a.options[0]&&a.options[0].allowAtRootLevel?":function MemberExpression[property.name=/.*Sync$/]":"MemberExpression[property.name=/.*Sync$/]"](n){a.report({node:n,messageId:"noSync",data:{propertyName:n.property.name}})}}}}),rc}var nc,VS;function aD(){if(VS)return nc;VS=1;const a=/\t+/gu,e=/\S/u;return nc={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(n){const o=n.sourceCode,t=n.options&&n.options[0]&&n.options[0].allowIndentationTabs;return{Program(l){o.getLines().forEach((f,u)=>{let r;for(;(r=a.exec(f))!==null;)t&&!e.test(f.slice(0,r.index))||n.report({node:l,loc:{start:{line:u+1,column:r.index},end:{line:u+1,column:r.index+r[0].length}},messageId:"unexpectedTab"})})}}}},nc}var sc,$S;function iD(){return $S||($S=1,sc={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(a){const e=/\$\{[^}]+\}/u;return{Literal(n){typeof n.value=="string"&&e.test(n.value)&&a.report({node:n,messageId:"unexpectedTemplateExpression"})}}}}),sc}var ac,GS;function oD(){return GS||(GS=1,ac={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(a){return{ConditionalExpression(e){a.report({node:e,messageId:"noTernaryOperator"})}}}}),ac}var ic,WS;function lD(){if(WS)return ic;WS=1;const a=Le();function e(o){return o.type==="FunctionExpression"&&o.parent.type==="MethodDefinition"&&o.parent.kind==="constructor"}class n{superCalled=!1;invalidNodes=[]}return ic={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(o){let t=null,l=Object.create(null);function f(d){return!d.reachable||l[d.id]?.superCalled}function u(){return!!(t&&t.isConstructor&&t.hasExtends)}function r(d){for(const s of d)if(!f(s))return!1;return!0}function m(){return u()&&!r(t.currentSegments)}function i(d){const s=t.currentSegments;for(const p of s)p.reachable&&l[p.id].invalidNodes.push(d)}function c(){const d=t.currentSegments;for(const s of d)s.reachable&&(l[s.id].superCalled=!0)}return{onCodePathStart(d,s){if(e(s)){const p=s.parent.parent.parent;t={upper:t,isConstructor:!0,hasExtends:!!(p.superClass&&!a.isNullOrUndefined(p.superClass)),codePath:d,currentSegments:new Set}}else t={upper:t,isConstructor:!1,hasExtends:!1,codePath:d,currentSegments:new Set}},onCodePathEnd(d){const s=t.hasExtends;if(t=t.upper,!s)return;const p=new Set;d.traverseSegments((h,g)=>{const v=l[h.id],E=v.invalidNodes.filter(b=>!p.has(b));for(const b of E)p.add(b),o.report({messageId:"noBeforeSuper",node:b,data:{kind:b.type==="Super"?"super":"this"}});v.superCalled&&g.skip()})},onCodePathSegmentStart(d){t.currentSegments.add(d),u()&&(l[d.id]={superCalled:d.prevSegments.length>0&&d.prevSegments.every(f),invalidNodes:[]})},onUnreachableCodePathSegmentStart(d){t.currentSegments.add(d)},onUnreachableCodePathSegmentEnd(d){t.currentSegments.delete(d)},onCodePathSegmentEnd(d){t.currentSegments.delete(d)},onCodePathSegmentLoop(d,s){u()&&t.codePath.traverseSegments({first:s,last:d},(p,h)=>{const g=l[p.id]??new n;g.superCalled?h.skip():p.prevSegments.length>0&&p.prevSegments.every(f)&&(g.superCalled=!0),l[p.id]=g})},ThisExpression(d){m()&&i(d)},Super(d){!a.isCallee(d)&&m()&&i(d)},"CallExpression:exit"(d){d.callee.type==="Super"&&m()&&c()},"Program:exit"(){l=Object.create(null)}}}},ic}var oc,zS;function uD(){if(zS)return oc;zS=1;const a=Le();return oc={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(e){return{ThrowStatement(n){a.couldBeError(n.argument)?n.argument.type==="Identifier"&&n.argument.name==="undefined"&&e.report({node:n,messageId:"undef"}):e.report({node:n,messageId:"object"})}}}},oc}var lc,HS;function cD(){if(HS)return lc;HS=1;const a=Le();return lc={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(e){const n=e.sourceCode,o="[ ]",t=`^${o}*$`,l=`${o}+$`,f=e.options[0]||{},u=f.skipBlankLines||!1,r=f.ignoreComments||!1;function m(c,d,s){e.report({node:c,loc:d,messageId:"trailingSpace",fix(p){return p.removeRange(s)}})}function i(c){const d=new Set;return c.forEach(s=>{const p=s.type==="Block"?s.loc.end.line-1:s.loc.end.line;for(let h=s.loc.start.line;h<=p;h++)d.add(h)}),d}return{Program:function(d){const s=new RegExp(l,"u"),p=new RegExp(t,"u"),h=n.lines,g=n.getText().match(a.createGlobalLinebreakMatcher()),v=n.getAllComments(),E=i(v);let b=0;for(let T=0,C=h.length;T<C;T++){const S=T+1,w=g&&g[T]?g[T].length:1,x=h[T].length+w,A=s.exec(h[T]);if(A){const k={start:{line:S,column:A.index},end:{line:S,column:x-w}},R=b+k.start.column,I=b+k.end.column,B=n.getNodeByRangeIndex(R);if(B&&B.type==="TemplateElement"&&R>B.parent.range[0]&&I<B.parent.range[1]){b+=x;continue}if(u&&p.test(h[T])){b+=x;continue}const F=[R,I];(!r||!E.has(S))&&m(d,k,F)}b+=x}}}}},lc}var uc,KS;function fD(){return KS||(KS=1,uc={meta:{type:"problem",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Disallow `let` or `var` variables that are read but never assigned",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unassigned-vars"},schema:[],messages:{unassigned:"'{{name}}' is always 'undefined' because it's never assigned."}},create(a){const e=a.sourceCode;let n=!1;return{"TSModuleDeclaration[declare=true]"(){n=!0},"TSModuleDeclaration[declare=true]:exit"(){n=!1},VariableDeclarator(o){const t=o.parent;if(o.init||o.id.type!=="Identifier"||t.kind==="const"||t.declare||n)return;const[f]=e.getDeclaredVariables(o);if(!f)return;let u=!1;for(const r of f.references){if(r.isWrite())return;r.isRead()&&(u=!0)}u&&a.report({node:o,messageId:"unassigned",data:{name:o.id.name}})}}}}),uc}var cc,XS;function pD(){if(XS)return cc;XS=1;function a(e){const n=e.parent;return n.type==="UnaryExpression"&&n.operator==="typeof"}return cc={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(e){const[{typeof:n}]=e.options,o=e.sourceCode;return{"Program:exit"(t){o.getScope(t).through.forEach(f=>{const u=f.identifier;!n&&a(u)||e.report({node:u,messageId:"undef",data:u})})}}}},cc}var fc,JS;function mD(){if(JS)return fc;JS=1;const a=Le(),e=new Set(["const","using","await using"]);return fc={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(n){const o=n.sourceCode;return{VariableDeclarator(t){const l=o.getText(t.id),f=t.init&&t.init.name,u=o.getScope(t),r=a.getVariableByName(u,"undefined"),m=r&&r.defs.length>0,i=o.getLastToken(t);f==="undefined"&&!e.has(t.parent.kind)&&!m&&n.report({node:t,messageId:"unnecessaryUndefinedInit",data:{name:l},fix(c){return t.parent.kind==="var"||t.id.type==="ArrayPattern"||t.id.type==="ObjectPattern"||o.commentsExistBetween(t.id,i)?null:c.removeRange([t.id.range[1],t.range[1]])}})}}}},fc}var pc,YS;function dD(){return YS||(YS=1,pc={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(a){const e=a.sourceCode;function n(t){a.report({node:t,messageId:"unexpectedUndefined"})}function o(t){const l=t.set.get("undefined");if(!l)return;const f=l.references,u=l.defs;f.filter(r=>!r.init).forEach(r=>n(r.identifier)),u.forEach(r=>n(r.name))}return{"Program:exit"(t){const f=[e.getScope(t)];for(;f.length;){const u=f.pop();f.push(...u.childScopes),o(u)}}}}}),pc}var mc,QS;function hD(){return QS||(QS=1,mc={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(a){const[{allow:e,allowAfterSuper:n,allowAfterThis:o,allowAfterThisConstructor:t,allowFunctionParams:l,allowInArrayDestructuring:f,allowInObjectDestructuring:u,enforceInClassFields:r,enforceInMethodNames:m}]=a.options,i=a.sourceCode;function c(S){return e.includes(S)}function d(S){const w=S.length;return S!=="_"&&(S[0]==="_"||S[w-1]==="_")}function s(S){return S==="__proto__"}function p(S){return S==="_"}function h(S){return S.object.type==="MemberExpression"&&S.object.property.name==="constructor"&&S.object.object.type==="ThisExpression"}function g(S){l||S.params.forEach(w=>{const{type:x}=w;let A;if(x==="RestElement"?A=w.argument:x==="AssignmentPattern"?A=w.left:A=w,A.type==="Identifier"){const k=A.name;d(k)&&!c(k)&&a.report({node:w,messageId:"unexpectedUnderscore",data:{identifier:k}})}})}function v(S){if(S.type==="FunctionDeclaration"&&S.id){const w=S.id.name;typeof w<"u"&&d(w)&&!c(w)&&a.report({node:S,messageId:"unexpectedUnderscore",data:{identifier:w}})}g(S)}function E(S){i.getDeclaredVariables(S).forEach(w=>{const A=w.defs.find(I=>I.node===S).name,k=A.name;let R=A.parent;for(;!["VariableDeclarator","ArrayPattern","ObjectPattern"].includes(R.type);)R=R.parent;d(k)&&!p(k)&&!c(k)&&!(f&&R.type==="ArrayPattern")&&!(u&&R.type==="ObjectPattern")&&a.report({node:S,messageId:"unexpectedUnderscore",data:{identifier:k}})})}function b(S){const w=S.property.name,x=S.object.type==="ThisExpression",A=S.object.type==="Super",k=h(S);typeof w<"u"&&d(w)&&!(x&&o)&&!(A&&n)&&!(k&&t)&&!s(w)&&!c(w)&&a.report({node:S,messageId:"unexpectedUnderscore",data:{identifier:w}})}function T(S){const w=S.key.name,x=S.type==="MethodDefinition"||S.type==="Property"&&S.method;typeof w<"u"&&m&&x&&d(w)&&!c(w)&&a.report({node:S,messageId:"unexpectedUnderscore",data:{identifier:S.key.type==="PrivateIdentifier"?`#${w}`:w}})}function C(S){const w=S.key.name;typeof w<"u"&&d(w)&&r&&!c(w)&&a.report({node:S,messageId:"unexpectedUnderscore",data:{identifier:S.key.type==="PrivateIdentifier"?`#${w}`:w}})}return{FunctionDeclaration:v,VariableDeclarator:E,MemberExpression:b,MethodDefinition:T,PropertyDefinition:C,Property:T,FunctionExpression:v,ArrowFunctionExpression:v}}}),mc}var dc,ZS;function gD(){if(ZS)return dc;ZS=1;const a=Le();return dc={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(e){const n=/^[gimsuy]+$/u,o=e.sourceCode;function t(l,f){const u=o.getTokenAfter(l,a.isNotClosingParenToken),r=o.getTokenBefore(u);u.loc.start.line!==r.loc.end.line&&e.report({node:l,loc:u.loc,messageId:f})}return{MemberExpression(l){!l.computed||l.optional||t(l.object,"property")},TaggedTemplateExpression(l){const{quasi:f}=l;o.getTokenBefore(f).loc.end.line!==f.loc.start.line&&e.report({node:l,loc:{start:f.loc.start,end:{line:f.loc.start.line,column:f.loc.start.column+1}},messageId:"taggedTemplate"})},CallExpression(l){l.arguments.length===0||l.optional||t(l.callee,"function")},"BinaryExpression[operator='/'] > BinaryExpression[operator='/'].left"(l){const f=o.getTokenAfter(l,r=>r.value==="/"),u=o.getTokenAfter(f);u.type==="Identifier"&&n.test(u.value)&&f.range[1]===u.range[0]&&t(l.left,"division")}}}},dc}var hc,eE;function yD(){if(eE)return hc;eE=1;const a=ra(),e=Le(),n=/(?:(?:Call|Class|Function|Member|New|Yield)Expression|Statement|Declaration)$/u,o=/^(?:DoWhile|For|While)Statement$/u,t=/^(?:BinaryExpression|ConditionalExpression)$/u,l=/^(?:ArrowFunction|Class|Function)Expression$/u,f=/^(?:Call|Member|New|TaggedTemplate|Yield)Expression$/u;function u(p){if(p.init){const h=p.resolved&&p.resolved.defs[0];if(!h||h.type!=="Variable"||h.parent.kind!=="var")return!1}return p.isWrite()}function r(p){return!p.modified}function m(p){return!(p.modified||p.group)}function i(p,h){const g=p.range,v=h.identifier.range;return g[0]<=v[0]&&v[1]<=g[1]}const c={WhileStatement:i,DoWhileStatement:i,ForStatement(p,h){return i(p,h)&&!(p.init&&i(p.init,h))}};function d(p){let h=p.identifier;for(;h;){if(h.type==="FunctionDeclaration")return h.id?h:null;h=h.parent}return null}function s(p,h){for(let g=0;g<p.length;++g){const v=p[g];for(let E=0;!v.modified&&E<h.length;++E){const b=h[E];let T,C;const S=v.isInLoop(b)||!!((T=d(b))&&(C=e.getVariableByName(b.from.upper,T.id.name))&&C.references.some(v.isInLoop));v.modified=S}}}return hc={meta:{type:"problem",docs:{description:"Disallow unmodified loop conditions",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-unmodified-loop-condition"},schema:[],messages:{loopConditionNotModified:"'{{name}}' is not modified in this loop."}},create(p){const h=p.sourceCode;let g=null;function v(w){const x=w.reference.identifier;p.report({node:x,messageId:"loopConditionNotModified",data:x})}function E(w){for(let x=0;x<w.length;++x){const A=w[x];if(A.group){let k=g.get(A.group);k||(k=[],g.set(A.group,k)),k.push(A)}}}function b(w){w.every(r)&&w.forEach(v)}function T(w){let x=!1;return a.traverse(w,{visitorKeys:h.visitorKeys,enter(A){f.test(A.type)?(x=!0,this.break()):l.test(A.type)&&this.skip()}}),x}function C(w){if(w.init)return null;let x=null,A=w.identifier,k=A.parent;for(;k;){if(n.test(k.type)){if(o.test(k.type)&&k.test===A)return{reference:w,group:x,isInLoop:c[k.type].bind(null,k),modified:!1};break}if(t.test(k.type)){if(T(k))break;x=k}A=k,k=k.parent}return null}function S(w){const x=w.references.map(C).filter(Boolean);if(x.length===0)return;E(x);const A=w.references.filter(u);A.length>0&&s(x,A),x.filter(m).forEach(v)}return{"Program:exit"(w){const x=[h.getScope(w)];g=new Map;let A;for(;A=x.pop();)x.push(...A.childScopes),A.variables.forEach(S);g.forEach(b),g=null}}}},hc}var gc,tE;function vD(){if(tE)return gc;tE=1;const a=Le(),e=new Set(["==","===","!=","!==",">",">=","<","<=","in","instanceof"]),n={"==":"!=","!=":"==","===":"!==","!==":"==="},o=a.getPrecedence({type:"LogicalExpression",operator:"||"});return gc={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){const[{defaultAssignment:l}]=t.options,f=t.sourceCode;function u(c){return c.type==="Literal"&&typeof c.value=="boolean"}function r(c){if(c.type==="BinaryExpression"&&Object.hasOwn(n,c.operator)){const d=f.getFirstTokenBetween(c.left,c.right,p=>p.value===c.operator),s=f.getText();return s.slice(c.range[0],d.range[0])+n[c.operator]+s.slice(d.range[1],c.range[1])}return a.getPrecedence(c)<a.getPrecedence({type:"UnaryExpression"})?`!(${a.getParenthesisedText(f,c)})`:`!${a.getParenthesisedText(f,c)}`}function m(c){return c.type==="BinaryExpression"&&e.has(c.operator)||c.type==="UnaryExpression"&&c.operator==="!"}function i(c){return c.test.type==="Identifier"&&c.consequent.type==="Identifier"&&c.test.name===c.consequent.name}return{ConditionalExpression(c){u(c.alternate)&&u(c.consequent)?t.report({node:c,messageId:"unnecessaryConditionalExpression",fix(d){return c.consequent.value===c.alternate.value?c.test.type==="Identifier"?d.replaceText(c,c.consequent.value.toString()):null:c.alternate.value?d.replaceText(c,r(c.test)):d.replaceText(c,m(c.test)?a.getParenthesisedText(f,c.test):`!${r(c.test)}`)}}):!l&&i(c)&&t.report({node:c,messageId:"unnecessaryConditionalAssignment",fix(d){const p=(a.getPrecedence(c.alternate)<o||a.isCoalesceExpression(c.alternate))&&!a.isParenthesised(f,c.alternate)?`(${f.getText(c.alternate)})`:a.getParenthesisedText(f,c.alternate),h=a.getParenthesisedText(f,c.test);return d.replaceText(c,`${h} || ${p}`)}})}}}},gc}var yc,rE;function SD(){if(rE)return yc;rE=1;function a(o){return!!o.init}function e(o){for(const t of o)if(t.reachable)return!1;return!0}class n{constructor(t){this.sourceCode=t,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(t){return t.range[0]>=this.startNode.range[0]&&t.range[1]<=this.endNode.range[1]}isConsecutive(t){return this.contains(this.sourceCode.getTokenBefore(t))}merge(t){this.endNode=t}reset(t){this.startNode=this.endNode=t}}return yc={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(o){let t=null;const l=new n(o.sourceCode),f=[];let u=new Set;function r(m){let i=null;if(m&&(m.type==="PropertyDefinition"||e(u))){if(l.isEmpty){l.reset(m);return}if(l.contains(m))return;if(l.isConsecutive(m)){l.merge(m);return}i=m}l.isEmpty||o.report({messageId:"unreachableCode",loc:l.location,node:l.startNode}),l.reset(i)}return{onCodePathStart(){f.push(u),u=new Set},onCodePathEnd(){u=f.pop()},onUnreachableCodePathSegmentStart(m){u.add(m)},onUnreachableCodePathSegmentEnd(m){u.delete(m)},onCodePathSegmentEnd(m){u.delete(m)},onCodePathSegmentStart(m){u.add(m)},BlockStatement:r,BreakStatement:r,ClassDeclaration:r,ContinueStatement:r,DebuggerStatement:r,DoWhileStatement:r,ExpressionStatement:r,ForInStatement:r,ForOfStatement:r,ForStatement:r,IfStatement:r,ImportDeclaration:r,LabeledStatement:r,ReturnStatement:r,SwitchStatement:r,ThrowStatement:r,TryStatement:r,VariableDeclaration(m){(m.kind!=="var"||m.declarations.some(a))&&r(m)},WhileStatement:r,WithStatement:r,ExportNamedDeclaration:r,ExportDefaultDeclaration:r,ExportAllDeclaration:r,"Program:exit"(){r()},"MethodDefinition[kind='constructor']"(){t={upper:t,hasSuperCall:!1}},"MethodDefinition[kind='constructor']:exit"(m){const{hasSuperCall:i}=t;if(t=t.upper,!m.value.body)return;const c=m.parent.parent;if(c.superClass&&!i)for(const d of c.body.body)d.type==="PropertyDefinition"&&!d.static&&r(d)},"CallExpression > Super.callee"(){t&&(t.hasSuperCall=!0)}}}},yc}var vc,nE;function ED(){if(nE)return vc;nE=1;const a=["WhileStatement","DoWhileStatement","ForStatement","ForInStatement","ForOfStatement"];function e(t){for(const l of t)if(l.reachable)return!0;return!1}function n(t){const l=t.parent;if(l)switch(l.type){case"WhileStatement":return t===l.test;case"DoWhileStatement":return t===l.body;case"ForStatement":return t===(l.update||l.test||l.body);case"ForInStatement":case"ForOfStatement":return t===l.left}return!1}function o(t,l){return t.filter(f=>!l.includes(f))}return vc={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:a},uniqueItems:!0}},additionalProperties:!1}],messages:{invalid:"Invalid loop. Its body allows only one iteration."}},create(t){const[{ignore:l}]=t.options,f=o(a,l),u=f.join(","),r=new Map,m=new Set,i=[];let c=new Set;return{onCodePathStart(){i.push(c),c=new Set},onCodePathEnd(){c=i.pop()},onUnreachableCodePathSegmentStart(d){c.add(d)},onUnreachableCodePathSegmentEnd(d){c.delete(d)},onCodePathSegmentEnd(d){c.delete(d)},onCodePathSegmentStart(d,s){if(c.add(d),n(s)){const p=s.parent;r.set(d,p)}},onCodePathSegmentLoop(d,s,p){const h=r.get(s);(p===h||p.type==="ContinueStatement")&&m.delete(h)},[u](d){e(c)&&m.add(d)},"Program:exit"(){m.forEach(d=>t.report({node:d,messageId:"invalid"}))}}}},vc}var Sc,sE;function bD(){if(sE)return Sc;sE=1;const a=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression)$/u,e=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement|SwitchStatement)$/u,n=/^(?:Program|(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|DoWhileStatement|WhileStatement|ForOfStatement|ForInStatement|ForStatement)$/u;return Sc={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(o){function t(u){return u.parent.type==="TryStatement"&&u.parent.finalizer===u}function l(u,r){let m=!1,i;u.type==="BreakStatement"&&!u.label?i=e:u.type==="ContinueStatement"?i=n:i=a;for(let c=u;c&&!i.test(c.type);c=c.parent)if(c.parent.label&&r&&c.parent.label.name===r.name&&(m=!0),t(c))return!(r&&m);return!1}function f(u){l(u,u.label)&&o.report({messageId:"unsafeUsage",data:{nodeType:u.type},node:u,line:u.loc.line,column:u.loc.column})}return{ReturnStatement:f,ThrowStatement:f,BreakStatement:f,ContinueStatement:f}}},Sc}var Ec,aE;function CD(){if(aE)return Ec;aE=1;const a=Le();function e(t){return t==="in"||t==="instanceof"}function n(t){return t==="<"||t===">"||t===">="||t==="<="}function o(t){return t.type==="UnaryExpression"&&t.operator==="!"}return Ec={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){const l=t.sourceCode,[{enforceForOrderingRelations:f}]=t.options;return{BinaryExpression(u){const r=u.operator,m=f&&n(r);(e(r)||m)&&o(u.left)&&!a.isParenthesised(l,u.left)&&t.report({node:u,loc:u.left.loc,messageId:"unexpected",data:{operator:r},suggest:[{messageId:"suggestNegatedExpression",data:{operator:r},fix(i){const d=[l.getFirstToken(u.left).range[1],u.range[1]],s=l.text.slice(d[0],d[1]);return i.replaceTextRange(d,`(${s})`)}},{messageId:"suggestParenthesisedNegation",fix(i){return i.replaceText(u.left,`(${l.getText(u.left)})`)}}]})}}}},Ec}var bc,iE;function xD(){if(iE)return bc;iE=1;const a=new Set(["+","-","/","*","%","**"]),e=new Set(["+=","-=","/=","*=","%=","**="]),n=new Set(["in","instanceof"]);function o(t){return t.type==="ObjectPattern"||t.type==="ArrayPattern"}return bc={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){const[{disallowArithmeticOperators:l}]=t.options;function f(c){t.report({messageId:"unsafeOptionalChain",node:c})}function u(c){t.report({messageId:"unsafeArithmetic",node:c})}function r(c,d){if(c)switch(c.type){case"LogicalExpression":c.operator==="||"||c.operator==="??"?r(c.right,d):c.operator==="&&"&&(r(c.left,d),r(c.right,d));break;case"SequenceExpression":r(c.expressions.at(-1),d);break;case"ConditionalExpression":r(c.consequent,d),r(c.alternate,d);break;case"AwaitExpression":r(c.argument,d);break;case"ChainExpression":d(c);break}}function m(c){r(c,f)}function i(c){r(c,u)}return{"AssignmentExpression, AssignmentPattern"(c){o(c.left)&&m(c.right)},"ClassDeclaration, ClassExpression"(c){m(c.superClass)},CallExpression(c){c.optional||m(c.callee)},NewExpression(c){m(c.callee)},VariableDeclarator(c){o(c.id)&&m(c.init)},MemberExpression(c){c.optional||m(c.object)},TaggedTemplateExpression(c){m(c.tag)},ForOfStatement(c){m(c.right)},SpreadElement(c){c.parent&&c.parent.type!=="ObjectExpression"&&m(c.argument)},BinaryExpression(c){n.has(c.operator)&&m(c.right),l&&a.has(c.operator)&&(i(c.right),i(c.left))},WithStatement(c){m(c.object)},UnaryExpression(c){l&&a.has(c.operator)&&i(c.argument)},AssignmentExpression(c){l&&e.has(c.operator)&&i(c.right)}}}},bc}var Cc,oE;function wD(){if(oE)return Cc;oE=1;const a=Le();function e(){return!0}function n(){return!1}return Cc={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow unused expressions",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(o){const[{allowShortCircuit:t,allowTernary:l,allowTaggedTemplates:f,enforceForJSX:u,ignoreDirectives:r}]=o.options;function m(p){return p.type==="ExpressionStatement"&&p.expression.type==="Literal"&&typeof p.expression.value=="string"}function i(p,h){for(let g=0;g<h.length;++g)if(!p(h[g]))return h.slice(0,g);return h.slice()}function c(p){return i(m,p.body)}function d(p){return a.isTopLevelExpressionStatement(p)&&c(p.parent).includes(p)}const s=Object.assign(Object.create(null),{isDisallowed(p){return(s[p.type]||n)(p)},ArrayExpression:e,ArrowFunctionExpression:e,BinaryExpression:e,ChainExpression(p){return s.isDisallowed(p.expression)},ClassExpression:e,ConditionalExpression(p){return l?s.isDisallowed(p.consequent)||s.isDisallowed(p.alternate):!0},FunctionExpression:e,Identifier:e,JSXElement(){return u},JSXFragment(){return u},Literal:e,LogicalExpression(p){return t?s.isDisallowed(p.right):!0},MemberExpression:e,MetaProperty:e,ObjectExpression:e,SequenceExpression:e,TaggedTemplateExpression(){return!f},TemplateLiteral:e,ThisExpression:e,UnaryExpression(p){return p.operator!=="void"&&p.operator!=="delete"},TSAsExpression(p){return s.isDisallowed(p.expression)},TSTypeAssertion(p){return s.isDisallowed(p.expression)},TSNonNullExpression(p){return s.isDisallowed(p.expression)},TSInstantiationExpression(p){return s.isDisallowed(p.expression)}});return{ExpressionStatement(p){s.isDisallowed(p.expression)&&!a.isDirective(p)&&!(r&&d(p))&&o.report({node:p,messageId:"unusedExpression"})}}}},Cc}var xc,lE;function AD(){if(lE)return xc;lE=1;const a=Le();return xc={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(e){const n=e.sourceCode;let o=null;function t(r){o={label:r.label.name,used:!1,upper:o}}function l(r){if(n.getTokenAfter(r.label,{includeComments:!0})!==n.getTokenBefore(r.body,{includeComments:!0}))return!1;let m=r.parent;for(;m.type==="LabeledStatement";)m=m.parent;if(m.type==="Program"||m.type==="BlockStatement"&&a.isFunction(m.parent)){const{body:i}=r;if(i.type==="ExpressionStatement"&&(i.expression.type==="Literal"&&typeof i.expression.value=="string"||a.isStaticTemplateLiteral(i.expression)))return!1}return!0}function f(r){o.used||e.report({node:r.label,messageId:"unused",data:r.label,fix:l(r)?m=>m.removeRange([r.range[0],r.body.range[0]]):null}),o=o.upper}function u(r){if(!r.label)return;const m=r.label.name;let i=o;for(;i;){if(i.label===m){i.used=!0;break}i=i.upper}}return{LabeledStatement:t,"LabeledStatement:exit":f,BreakStatement:u,ContinueStatement:u}}},xc}var wc,uE;function TD(){return uE||(uE=1,wc={meta:{type:"problem",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."}},create(a){const e=[];function n(o){const t=o.parent.parent,l=t.type==="AssignmentExpression";return!l&&t.type!=="ForInStatement"&&t.type!=="ForOfStatement"&&t.type!=="AssignmentPattern"||t.left!==o.parent?!1:l&&t.operator!=="="?t.parent.type==="ExpressionStatement":!0}return{ClassBody(o){const t=new Map;e.unshift(t);for(const l of o.body)(l.type==="PropertyDefinition"||l.type==="MethodDefinition")&&l.key.type==="PrivateIdentifier"&&t.set(l.key.name,{declaredNode:l,isAccessor:l.type==="MethodDefinition"&&(l.kind==="set"||l.kind==="get")})},PrivateIdentifier(o){const t=e.find(r=>r.has(o.name));if(!t)return;const l=t.get(o.name);if(l.isUsed||o.parent.type==="PropertyDefinition"||o.parent.type==="MethodDefinition")return;if(l.isAccessor){l.isUsed=!0;return}if(n(o))return;const f=o.parent.parent.type,u=o.parent.parent.parent.type;f==="UpdateExpression"&&u==="ExpressionStatement"||f==="Property"&&u==="ObjectPattern"&&o.parent.parent.value===o.parent||f!=="RestElement"&&f!=="ArrayPattern"&&(l.isUsed=!0)},"ClassBody:exit"(){const o=e.shift();for(const[t,{declaredNode:l,isUsed:f}]of o.entries())f||a.report({node:l,loc:l.key.loc,messageId:"unusedPrivateClassMember",data:{classMemberName:`#${t}`}})}}}}),wc}var Ac,cE;function kD(){if(cE)return Ac;cE=1;const a=Le();return Ac={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}]}],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(e){const n=e.sourceCode,o=/^(?:RestElement|(?:Experimental)?RestProperty)$/u,t={vars:"all",args:"after-used",ignoreRestSiblings:!1,caughtErrors:"all",ignoreClassWithStaticInitBlock:!1,ignoreUsingDeclarations:!1,reportUsedIgnorePattern:!1},l=e.options[0];l&&(typeof l=="string"?t.vars=l:(t.vars=l.vars||t.vars,t.args=l.args||t.args,t.ignoreRestSiblings=l.ignoreRestSiblings||t.ignoreRestSiblings,t.caughtErrors=l.caughtErrors||t.caughtErrors,t.ignoreClassWithStaticInitBlock=l.ignoreClassWithStaticInitBlock||t.ignoreClassWithStaticInitBlock,t.ignoreUsingDeclarations=l.ignoreUsingDeclarations||t.ignoreUsingDeclarations,t.reportUsedIgnorePattern=l.reportUsedIgnorePattern||t.reportUsedIgnorePattern,l.varsIgnorePattern&&(t.varsIgnorePattern=new RegExp(l.varsIgnorePattern,"u")),l.argsIgnorePattern&&(t.argsIgnorePattern=new RegExp(l.argsIgnorePattern,"u")),l.caughtErrorsIgnorePattern&&(t.caughtErrorsIgnorePattern=new RegExp(l.caughtErrorsIgnorePattern,"u")),l.destructuredArrayIgnorePattern&&(t.destructuredArrayIgnorePattern=new RegExp(l.destructuredArrayIgnorePattern,"u"))));function f(F){if(t.destructuredArrayIgnorePattern&&F.name.parent.type==="ArrayPattern")return"array-destructure";switch(F.type){case"CatchClause":return"catch-clause";case"Parameter":return"parameter";default:return"variable"}}function u(F){let O,$;switch(F){case"array-destructure":O=t.destructuredArrayIgnorePattern,$="elements of array destructuring";break;case"catch-clause":O=t.caughtErrorsIgnorePattern,$="caught errors";break;case"parameter":O=t.argsIgnorePattern,$="args";break;case"variable":O=t.varsIgnorePattern,$="vars";break;default:throw new Error(`Unexpected variable type: ${F}`)}return O&&(O=O.toString()),[$,O]}function r(F){const O=F.defs&&F.defs[0];let $="";if(O){const[N,_]=u(f(O));_&&N&&($=`. Allowed unused ${N} must match ${_}`)}return{varName:F.name,action:"defined",additional:$}}function m(F){const O=F.defs&&F.defs[0];let $="";if(O){const[N,_]=u(f(O));_&&N&&($=`. Allowed unused ${N} must match ${_}`)}return{varName:F.name,action:"assigned a value",additional:$}}function i(F,O){const[$,N]=u(O);let _="";return N&&$&&(_=`. Used ${$} must not match ${N}`),{varName:F.name,additional:_}}const c=/(?:Statement|Declaration)$/u;function d(F){const O=F.defs[0];if(O){let $=O.node;if($.type==="VariableDeclarator")$=$.parent;else if(O.type==="Parameter")return!1;return $.parent.type.indexOf("Export")===0}return!1}function s(F){const[O]=F.defs;return O?.type==="Variable"&&(O.parent.kind==="using"||O.parent.kind==="await using")}function p(F){return F.type==="Property"&&F.parent.type==="ObjectPattern"&&o.test(F.parent.properties.at(-1).type)}function h(F){if(t.ignoreRestSiblings){const O=F.defs.some(N=>p(N.name.parent)),$=F.references.some(N=>p(N.identifier.parent));return O||$}return!1}function g(F){return F.isRead()}function v(F,O){let $=F.from;for(;$;){if(O.includes($.block))return!0;$=$.upper}return!1}function E(F){const O=[];return F.defs.forEach($=>{const{type:N,node:_}=$;N==="FunctionName"&&O.push(_),N==="Variable"&&_.init&&(_.init.type==="FunctionExpression"||_.init.type==="ArrowFunctionExpression")&&O.push(_.init)}),O}function b(F,O){return F.range[0]>=O.range[0]&&F.range[1]<=O.range[1]}function T(F){const O=F.parent;return O.type==="ExpressionStatement"?!0:O.type==="SequenceExpression"?O.expressions.at(-1)===F?T(O):!0:!1}function C(F,O){const $=F.identifier,N=$.parent,_=F.from.variableScope,X=F.resolved.scope.variableScope,L=_!==X||a.isInLoop($);return O&&b($,O)?O:N.type==="AssignmentExpression"&&T(N)&&$===N.left&&!L?N.right:null}function S(F,O){let $=F,N=F.parent;for(;N&&b(N,O);){switch(N.type){case"SequenceExpression":if(N.expressions.at(-1)!==$)return!1;break;case"CallExpression":case"NewExpression":return N.callee!==$;case"AssignmentExpression":case"TaggedTemplateExpression":case"YieldExpression":return!0;default:if(c.test(N.type))return!0}$=N,N=N.parent}return!1}function w(F,O){const $=a.getUpperFunction(F);return $&&b($,O)&&S($,O)}function x(F,O){const $=F.identifier,N=$.parent;return F.isRead()&&(N.type==="AssignmentExpression"&&N.left===$&&T(N)&&!a.isLogicalAssignmentOperator(N.operator)||N.type==="UpdateExpression"&&T(N)||O&&b($,O)&&!w($,O))}function A(F){let O=F.identifier.parent;return O.type==="VariableDeclarator"&&(O=O.parent.parent),O.type!=="ForInStatement"&&O.type!=="ForOfStatement"||(O.body.type==="BlockStatement"?O=O.body.body[0]:O=O.body,!O)?!1:O.type==="ReturnStatement"}function k(F){if(F.eslintUsed)return!0;const O=E(F),$=O.length>0;let N=null;return F.references.some(_=>{if(A(_))return!0;const X=x(_,N);return N=C(_,N),g(_)&&!X&&!($&&v(_,O))})}function R(F){const O=F.defs[0],$=n.getDeclaredVariables(O.node);return!$.slice($.indexOf(F)+1).some(_=>_.references.length>0||_.eslintUsed)}function I(F,O){const $=F.variables,N=F.childScopes;let _,X;if(F.type!=="global"||t.vars==="all")for(_=0,X=$.length;_<X;++_){const L=$[_];if(F.type==="class"&&F.block.id===L.identifiers[0]||F.functionExpressionScope||!t.reportUsedIgnorePattern&&L.eslintUsed||F.type==="function"&&L.name==="arguments"&&L.identifiers.length===0)continue;const K=L.defs[0];if(K){const J=K.type,ge=L.references.some(ae=>ae.identifier.parent.type==="ArrayPattern");if((K.name.parent.type==="ArrayPattern"||ge)&&t.destructuredArrayIgnorePattern&&t.destructuredArrayIgnorePattern.test(K.name.name)){t.reportUsedIgnorePattern&&k(L)&&e.report({node:K.name,messageId:"usedIgnoredVar",data:i(L,"array-destructure")});continue}if(J==="ClassName"){const ae=K.node.body.body.some(ke=>ke.type==="StaticBlock");if(t.ignoreClassWithStaticInitBlock&&ae)continue}if(J==="CatchClause"){if(t.caughtErrors==="none")continue;if(t.caughtErrorsIgnorePattern&&t.caughtErrorsIgnorePattern.test(K.name.name)){t.reportUsedIgnorePattern&&k(L)&&e.report({node:K.name,messageId:"usedIgnoredVar",data:i(L,"catch-clause")});continue}}else if(J==="Parameter"){if((K.node.parent.type==="Property"||K.node.parent.type==="MethodDefinition")&&K.node.parent.kind==="set"||t.args==="none")continue;if(t.argsIgnorePattern&&t.argsIgnorePattern.test(K.name.name)){t.reportUsedIgnorePattern&&k(L)&&e.report({node:K.name,messageId:"usedIgnoredVar",data:i(L,"parameter")});continue}if(t.args==="after-used"&&a.isFunction(K.name.parent)&&!R(L))continue}else if(t.varsIgnorePattern&&t.varsIgnorePattern.test(K.name.name)){t.reportUsedIgnorePattern&&k(L)&&e.report({node:K.name,messageId:"usedIgnoredVar",data:i(L,"variable")});continue}}!k(L)&&!d(L)&&!(t.ignoreUsingDeclarations&&s(L))&&!h(L)&&O.push(L)}for(_=0,X=N.length;_<X;++_)I(N[_],O);return O}function B(F,O){const $=O.identifiers[0],N=$.parent,_=N.type,X=n.getTokenBefore($),L=n.getTokenAfter($),K=a.isFunction,J=a.isLoop,ge=O.references.filter(ne=>ne.isWrite());function ae(ne,we){return n.getTokenBefore(ne,we).range[0]}function ke(ne,we){return n.getTokenAfter(ne,we).range[1]}function Z(ne){return n.getTokenBefore(ne).value}function P(ne){return n.getTokenAfter(ne).value}function H(ne){return ne.elements.filter(we=>we!==null).length===1}function fe(ne,we){return ne.specifiers.some(z=>z.type===we)}function ce(ne,we){return ne.type==="String"||we&&!a.isSemicolonToken(we)&&!a.isOpeningBraceToken(we)}function ie(ne){const we=ne.parent;return K(we)?we.params.length===1?F.removeRange(ne.range):Z(ne)==="("&&P(ne)===","?F.removeRange([ne.range[0],ke(ne)]):F.removeRange([ae(ne),ne.range[1]]):null}function he(ne){const we=ne.parent;if(we.type==="VariableDeclarator"){if(J(we.parent.parent))return null;if(we.parent.declarations.length===1){const z=n.getTokenAfter(we.parent),oe=n.getTokenBefore(we.parent);return z&&ce(z,oe)?null:F.removeRange(we.parent.range)}return Z(we)===","?F.removeRange([ae(we),we.range[1]]):F.removeRange([we.range[0],ke(we)])}return Z(ne)===":"&&we.parent.type==="ObjectPattern"?Ae(ne):ie(ne)}function Ee(ne){const we=ne.parent;return we.parent.parent.parent.type==="ObjectPattern"&&we.parent.properties.length===1?Ee(we.parent):we.parent.type==="ObjectPattern"?we.parent.properties.length===1?he(we.parent):Z(we)==="{"?F.removeRange([we.range[0],ke(we)]):F.removeRange([ae(we),we.range[1]]):null}function Ce(ne){const we=ne.parent;return we.parent.type==="ArrayPattern"&&H(we)?Ce(we):H(we)?Z(we)===":"?he(we):we.parent.type==="RestElement"?ee(we.parent):he(we):Z(ne)===","&&P(ne)==="]"?F.removeRange([ae(ne),ne.range[1]]):F.removeRange(ne.range)}function Ae(ne){const we=ne.parent.parent;return we.parent.type==="ArrayPattern"&&we.properties.length===1?Ce(we):Ee(ne)}function ee(ne){const we=ne.parent;return K(we)?we.params.length===1?F.removeRange(ne.range):F.removeRange([ae(ne),ne.range[1]]):we.type==="ArrayPattern"?H(we)?we.parent.type==="ArrayPattern"?Ce(we):he(we):F.removeRange([ae(ne),ne.range[1]]):null}if(ge.some(ne=>ne.identifier.range[0]!==$.range[0]))return null;if(_==="VariableDeclarator"){if(N.parent.declarations.length===1){if(J(N.parent.parent)&&N.parent.parent.body!==N.parent)return null;if(N.parent.parent.type==="IfStatement"||J(N.parent.parent)||N.parent.parent.type==="WithStatement"&&N.parent.parent.body===N.parent)return F.replaceText(N.parent,";");const ne=n.getTokenAfter(N.parent),we=n.getTokenBefore(N.parent);return ne&&ce(ne,we)?null:F.removeRange(N.parent.range)}return X.value===","?F.removeRange([X.range[0],N.range[1]]):F.removeRange([N.range[0],ke(N)])}if(N.parent.type==="ObjectPattern"){if(N.parent.properties.length===1)return N.parent.parent.type==="RestElement"?ee(N.parent.parent):N.parent.parent.type==="ArrayPattern"?Ce(N.parent):he(N.parent);if(X.value===":")return Z(N)==="{"&&P(N)===","?F.removeRange([N.range[0],ke(N)]):F.removeRange([ae(N),$.range[1]])}if(_==="ArrayPattern"){if(H(N))return N.parent.type==="RestElement"?ee(N.parent):N.parent.type==="ArrayPattern"?Ce(N):he(N);if(X.value===","&&L.value===",")return F.removeRange($.range)}if(_==="RestElement"){if(N.parent.type==="ArrayPattern")return H(N.parent)?N.parent.parent.type==="ArrayPattern"?Ce(N.parent):he(N.parent):F.removeRange([ae($,1),$.range[1]]);if(N.parent.type==="ObjectPattern")return N.parent.properties.length===1?he(N.parent):F.removeRange([ae($,1),$.range[1]]);if(K(N.parent))return N.parent.params.length===1?F.removeRange(N.range):F.removeRange([ae(N),N.range[1]])}if(_==="AssignmentPattern"){if(N.parent.type==="ArrayPattern")return Ce(N);if(N.parent.parent.type==="ObjectPattern")return N.parent.parent.properties.length===1?N.parent.parent.parent.type==="ArrayPattern"?Ce(N.parent.parent):he(N.parent.parent):Z(N.parent)==="{"&&P(N.parent)===","?F.removeRange([N.parent.range[0],ke(N.parent)]):F.removeRange([ae(N.parent),N.parent.range[1]]);if(K(N.parent))return ie(N)}if(_==="FunctionDeclaration"&&N.id===$)return F.removeRange(N.range);if(_==="ImportDefaultSpecifier")return!fe(N.parent,"ImportSpecifier")&&!fe(N.parent,"ImportNamespaceSpecifier")?F.removeRange([N.range[0],N.parent.source.range[0]]):F.removeRange([$.range[0],L.range[1]]);if(_==="ImportSpecifier")return N.parent.specifiers.filter(ne=>ne.type==="ImportSpecifier").length===1?fe(N.parent,"ImportDefaultSpecifier")?F.removeRange([ae(N,1),L.range[1]]):F.removeRange(N.parent.range):Z(N)==="{"?F.removeRange([N.range[0],ke(N)]):F.removeRange([ae(N),N.range[1]]);if(_==="ImportNamespaceSpecifier")return fe(N.parent,"ImportDefaultSpecifier")?F.removeRange([ae(N),N.range[1]]):F.removeRange([N.range[0],N.parent.source.range[0]]);if(_==="CatchClause")return null;if(_==="ClassDeclaration")return F.removeRange(N.range);if(X?.value===",")return F.removeRange([X.range[0],$.range[1]]);if(L.value===","){if(X.value==="(")return F.removeRange([$.range[0],L.range[1]]);if(X.value==="{")return F.removeRange([$.range[0],L.range[1]])}return _==="ArrowFunctionExpression"&&N.params.length===1&&L?.value!==")"?F.replaceText($,"()"):F.removeRange($.range)}return{"Program:exit"(F){const O=I(n.getScope(F),[]);for(let $=0,N=O.length;$<N;++$){const _=O[$];if(_.defs.length>0){const X=_.references.filter(K=>K.isWrite()&&K.from.variableScope===_.scope.variableScope);let L;X.length>0&&(L=X.at(-1)),e.report({node:L?L.identifier:_.identifiers[0],messageId:"unusedVar",data:_.references.some(K=>K.isWrite())?m(_):r(_),suggest:[{messageId:"removeVar",data:{varName:_.name},fix(K){return B(K,_)}}]})}else if(_.eslintExplicitGlobalComments){const X=_.eslintExplicitGlobalComments[0];e.report({node:F,loc:a.getNameLocationInGlobalDirectiveComment(n,X,_.name),messageId:"unusedVar",data:r(_)})}}}}}},Ac}var Tc,fE;function DD(){if(fE)return Tc;fE=1;const a=/^(?:(?:Function|Class)(?:Declaration|Expression)|ArrowFunctionExpression|CatchClause|ImportDeclaration|ExportNamedDeclaration)$/u,e=/^For(?:In|Of)Statement$/u;function n(i){return typeof i=="object"&&i!==null?i:{functions:typeof i=="string"?i!=="nofunc":!0,classes:!0,variables:!0,allowNamedExports:!1,enums:!0,typedefs:!0,ignoreTypeReferences:!0}}function o(i,c){return i&&i.range[0]<=c&&c<=i.range[1]}function t(i,c){return i.body.some(d=>d.type==="StaticBlock"&&o(d,c)||d.type==="PropertyDefinition"&&d.static&&d.value&&o(d.value,c))}function l(i){return i.type==="class-static-block"?!0:i.type==="class-field-initializer"?i.block.parent.static:!1}function f(i){const c=i.resolved;let d=i.from;for(;c.scope.variableScope!==d.variableScope;)if(l(d.variableScope))d=d.variableScope.upper;else return!0;return!1}function u(i){if(f(i))return!1;const c=i.identifier.range[1],d=i.resolved.defs[0];if(d.type==="ClassName"){const p=d.node;return o(p,c)&&!t(p.body,c)}let s=d.name.parent;for(;s;){if(s.type==="VariableDeclarator"){if(o(s.init,c)||e.test(s.parent.parent.type)&&o(s.parent.parent.right,c))return!0;break}else if(s.type==="AssignmentPattern"){if(o(s.right,c))return!0}else if(a.test(s.type))break;s=s.parent}return!1}function r(i){switch(i.type){case"TSTypeQuery":return!0;case"TSQualifiedName":case"Identifier":return r(i.parent);default:return!1}}function m(i,c){if(i.defs[0].type!=="ClassName"||!i.defs[0].node.decorators||i.defs[0].node.decorators.length===0)return!1;for(const d of i.defs[0].node.decorators)if(c.identifier.range[0]>=d.range[0]&&c.identifier.range[1]<=d.range[1])return!0;return!1}return Tc={meta:{dialects:["javascript","typescript"],language:"javascript",type:"problem",docs:{description:"Disallow the use of variables before they are defined",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(i){const c=n(i.options[0]),d=i.sourceCode;function s(h){if(h.init)return!1;const{identifier:g}=h;if(c.allowNamedExports&&g.parent.type==="ExportSpecifier"&&g.parent.local===g)return!1;const v=h.resolved;if(!v||v.defs.length===0)return!1;const E=v.defs[0].type;if(!c.functions&&E==="FunctionName"||(!c.variables&&E==="Variable"||!c.classes&&E==="ClassName")&&f(h)||!c.enums&&E==="TSEnumName"||!c.typedefs&&E==="Type"||c.ignoreTypeReferences&&(r(g)||g.parent.type==="TSTypeReference"))return!1;if(g.parent.type==="TSQualifiedName"){let b=g.parent;for(;b.type==="TSQualifiedName";)b=b.left;return b===g}return!m(v,h)}function p(h){h.references.filter(s).forEach(g=>{const E=g.resolved.defs[0].name;(g.identifier.range[1]<E.range[1]||u(g)&&g.identifier.parent.type!=="TSTypeReference")&&i.report({node:g.identifier,messageId:"usedBeforeDefined",data:g.identifier})}),h.childScopes.forEach(p)}return{Program(h){p(d.getScope(h))}}}},Tc}var kc,pE;function PD(){if(pE)return kc;pE=1;const{findVariable:a}=qt();function*e(t){switch(t.type){case"Identifier":yield t;return;case"ObjectPattern":for(const l of t.properties)yield*e(l.type==="Property"?l.value:l);return;case"ArrayPattern":for(const l of t.elements)l&&(yield*e(l));return;case"RestElement":yield*e(t.argument);return;case"AssignmentPattern":yield*e(t.left)}}function n(t,l){return!(l.range[0]<t.identifier.range[1]||t.expression&&t.expression.range[0]<=l.range[0]&&l.range[1]<=t.expression.range[1])}function o(t,l){return t.expression?t.identifier.range[1]<=l.range[0]&&l.range[1]<=t.expression.range[0]:!1}return kc={meta:{type:"problem",docs:{description:"Disallow variable assignments when the value is not used",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-assignment"},schema:[],messages:{unnecessaryAssignment:"This assigned value is not used in subsequent statements."}},create(t){const l=t.sourceCode;let f=null;const u=new Set;function r(i){let c=i;for(;c;){if(u.has(c))return c;c=c.upper}return null}function m(i){function c(s,p){const h=i.segments[s.id];return h.first&&h.last&&h.first.range[0]<=p.range[0]&&p.range[1]<=h.last.range[1]}function d(s,p){if(i.tryStatementBlocks.some(T=>T.range[0]<=s.identifier.range[0]&&s.identifier.range[1]<=T.range[1]))return;const g={results:[],subsequentSegments:new Set,queueSegments:s.segments.flatMap(T=>T.nextSegments)};function*v(){for(yield*g.results;g.queueSegments.length>0;){const T=g.queueSegments.shift();if(g.subsequentSegments.has(T))continue;g.subsequentSegments.add(T);const C=p.find(w=>w.segments.includes(T)&&!o(w,s.identifier));C||g.queueSegments.push(...T.nextSegments);const S={segment:T,assignment:C};g.results.push(S),yield S}}if(s.variable.references.some(T=>T.identifier.type!=="Identifier"))return;const E=s.variable.references.filter(T=>T.isRead());if(!E.length)return;const b=p.find(T=>T===s||T.segments.length&&T.segments.every(C=>!s.segments.includes(C))?!1:!!(n(s,T.identifier)||T.expression&&T.expression.range[0]<=s.identifier.range[0]&&s.identifier.range[1]<=T.expression.range[1]));for(const T of E){if(i.scope!==r(T.from))return;if(n(s,T.identifier)&&(o(s,T.identifier)||s.segments.some(C=>c(C,T.identifier)))){if(b&&n(b,T.identifier))continue;return}if(!b){for(const C of v())if(c(C.segment,T.identifier)){if(C.assignment&&n(C.assignment,T.identifier))continue;return}}}t.report({node:s.identifier,messageId:"unnecessaryAssignment"})}for(const s of i.assignments.values()){s.sort((p,h)=>p.identifier.range[0]-h.identifier.range[0]);for(const p of s)d(p,s)}}return{onCodePathStart(i,c){const d=l.getScope(c);f={upper:f,codePath:i,scope:d,segments:Object.create(null),currentSegments:new Set,assignments:new Map,tryStatementBlocks:[]},u.add(f.scope)},onCodePathEnd(){m(f),f=f.upper},onCodePathSegmentStart(i){const c={segment:i,first:null,last:null};f.segments[i.id]=c,f.currentSegments.add(i)},onCodePathSegmentEnd(i){f.currentSegments.delete(i)},TryStatement(i){f.tryStatementBlocks.push(i.block)},Identifier(i){for(const c of f.currentSegments){const d=f.segments[c.id];d.first||(d.first=i),d.last=i}},":matches(VariableDeclarator[init!=null], AssignmentExpression, UpdateExpression):exit"(i){if(f.currentSegments.size===0)return;const c=f.assignments;let d,s=null;i.type==="VariableDeclarator"?(d=i.id,s=i.init):i.type==="AssignmentExpression"?(d=i.left,s=i.right):d=i.argument;for(const p of e(d)){const h=l.getScope(p),g=a(h,p);if(!g||g.scope.type==="global"&&g.defs.length===0||f.scope!==r(g.scope)||g.eslintUsed||g.scope.type==="module"&&(g.defs.some(E=>E.type==="Variable"&&E.parent.parent.type==="ExportNamedDeclaration"||E.type==="FunctionName"&&(E.node.parent.type==="ExportNamedDeclaration"||E.node.parent.type==="ExportDefaultDeclaration")||E.type==="ClassName"&&(E.node.parent.type==="ExportNamedDeclaration"||E.node.parent.type==="ExportDefaultDeclaration"))||g.references.some(E=>E.identifier.parent.type==="ExportSpecifier")))continue;let v=c.get(g);v||(v=[],c.set(g,v)),v.push({variable:g,identifier:p,node:i,expression:s,segments:[...f.currentSegments]})}}}}},kc}var Dc,mE;function ID(){if(mE)return Dc;mE=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStringIfConstant:o}=qt(),{RegExpParser:t,visitRegExpAST:l}=ur(),f=new t;function u(i){const c=[];let d=i;do c.push(d),d=d.parent;while(d);return c}function r(i){return i.type==="Assertion"&&(i.kind==="lookahead"||i.kind==="lookbehind")}function m(i){return r(i)&&i.negate}return Dc={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(i){const c=i.sourceCode;function d(s,p,h){let g;try{g=f.parsePattern(p,0,p.length,{unicode:h.includes("u"),unicodeSets:h.includes("v")})}catch{return}l(g,{onBackreferenceEnter(v){const E=[v.resolved].flat(),b=u(v),T=E.map(R=>{const I=u(R);if(b.includes(R))return{messageId:"nested",group:R};let B=b.length-1,F=I.length-1;do B--,F--;while(b[B]===I[F]);const O=F+1,$=I.slice(0,O),N=I.slice(O),_=N.find(r),X=_&&_.kind==="lookbehind";return $.at(-1).type==="Alternative"?{messageId:"disjunctive",group:R}:!X&&v.end<=R.start?{messageId:"forward",group:R}:X&&R.end<=v.start?{messageId:"backward",group:R}:$.some(m)?{messageId:"intoNegativeLookaround",group:R}:null});if(T.length===0||T.some(R=>!R))return;let C;const S=T.filter(R=>R.messageId!=="disjunctive");S.length?C=S:C=T;const[{messageId:w,group:x},...A]=C;let k="";A.length===1?k=" and another group":A.length>1&&(k=` and other ${A.length} groups`),i.report({node:s,messageId:w,data:{bref:v.raw,group:x.raw,otherGroups:k}})}})}return{"Literal[regex]"(s){const{pattern:p,flags:h}=s.regex;d(s,p,h)},Program(s){const p=c.getScope(s),h=new n(p),g={RegExp:{[a]:!0,[e]:!0}};for(const{node:v}of h.iterateGlobalReferences(g)){const[E,b]=v.arguments,T=o(E,p),C=o(b,p);typeof T=="string"&&d(v,T,C||"")}}}}},Dc}var Pc,dE;function FD(){if(dE)return Pc;dE=1;const a=Le();function e(o){const t=a.skipChainExpression(o.callee);return t.type==="MemberExpression"&&t.property.type==="Identifier"&&t.computed===!1&&(t.property.name==="call"&&o.arguments.length>=1||t.property.name==="apply"&&o.arguments.length===2&&o.arguments[1].type==="ArrayExpression")}function n(o,t,l){return o?a.equalTokens(o,t,l):a.isNullOrUndefined(t)}return Pc={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(o){const t=o.sourceCode;return{CallExpression(l){if(!e(l))return;const f=a.skipChainExpression(l.callee),u=a.skipChainExpression(f.object),r=u.type==="MemberExpression"?u.object:null,m=l.arguments[0];n(r,m,t)&&o.report({node:l,messageId:"unnecessaryCall",data:{name:f.property.name}})}}}},Pc}var Ic,hE;function RD(){return hE||(hE=1,Ic={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(a){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?a.report({node:e,messageId:"unnecessaryCatchClause"}):a.report({node:e.parent,messageId:"unnecessaryCatch"}))}}}}),Ic}var Fc,gE;function _D(){if(gE)return Fc;gE=1;const a=Le();function e(n){if(!n.computed)return!1;const{key:o}=n;if(o.type!=="Literal")return!1;const{value:t}=o;if(typeof t!="number"&&typeof t!="string")return!1;switch(n.type){case"Property":return n.parent.type==="ObjectExpression"?t!=="__proto__":!0;case"PropertyDefinition":return n.static?t!=="constructor"&&t!=="prototype":t!=="constructor";case"MethodDefinition":return n.static?t!=="prototype":t!=="constructor";default:throw new Error(`Unexpected node type: ${n.type}`)}}return Fc={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(n){const o=n.sourceCode,[{enforceForClassMembers:t}]=n.options;function l(u){if(e(u)){const{key:r}=u;n.report({node:u,messageId:"unnecessarilyComputedProperty",data:{property:o.getText(r)},fix(m){const i=o.getTokenBefore(r,a.isOpeningBracketToken),c=o.getTokenAfter(r,a.isClosingBracketToken);if(o.commentsExistBetween(i,c))return null;const d=o.getTokenBefore(i),p=(d.range[1]===i.range[0]&&!a.canTokensBeAdjacent(d,o.getFirstToken(r))?" ":"")+r.raw;return m.replaceTextRange([i.range[0],c.range[1]],p)}})}}function f(){}return{Property:l,MethodDefinition:t?l:f,PropertyDefinition:t?l:f}}},Fc}var Rc,yE;function BD(){if(yE)return Rc;yE=1;const a=Le();function e(l){return l.type==="BinaryExpression"&&l.operator==="+"}function n(l){return l.value==="+"&&l.type==="Punctuator"}function o(l){let f=l.left;for(;e(f);)f=f.right;return f}function t(l){let f=l.right;for(;e(f);)f=f.left;return f}return Rc={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(l){const f=l.sourceCode;return{BinaryExpression(u){if(u.operator!=="+")return;const r=o(u),m=t(u);if(a.isStringLiteral(r)&&a.isStringLiteral(m)&&a.isTokenOnSameLine(r,m)){const i=f.getFirstTokenBetween(r,m,n);l.report({node:u,loc:i.loc,messageId:"unexpectedConcat"})}}}}},Rc}var _c,vE;function LD(){if(vE)return _c;vE=1;const a=Le();function e(c){return c.value.params.some(d=>d.decorators?.length||d.type==="TSParameterProperty")}function n(c){switch(c.accessibility){case"protected":case"private":return!0;case"public":return!!c.parent.parent.superClass;default:return!1}}function o(c){return c.length===1&&c[0].type==="ExpressionStatement"&&c[0].expression.type==="CallExpression"&&c[0].expression.callee.type==="Super"}function t(c){return c.type==="Identifier"||c.type==="RestElement"}function l(c){return c.length===1&&c[0].type==="SpreadElement"&&c[0].argument.type==="Identifier"&&c[0].argument.name==="arguments"}function f(c,d){return c.type==="Identifier"&&d.type==="Identifier"&&c.name===d.name}function u(c,d){return c.type==="RestElement"&&d.type==="SpreadElement"&&f(c.argument,d.argument)}function r(c,d){return f(c,d)||u(c,d)}function m(c,d){if(c.length!==d.length)return!1;for(let s=0;s<c.length;++s)if(!r(c[s],d[s]))return!1;return!0}function i(c,d){return o(c)&&d.every(t)&&(l(c[0].expression.arguments)||m(d,c[0].expression.arguments))}return _c={meta:{dialects:["javascript","typescript"],language:"javascript",type:"suggestion",docs:{description:"Disallow unnecessary constructors",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-useless-constructor"},hasSuggestions:!0,schema:[],messages:{noUselessConstructor:"Useless constructor.",removeConstructor:"Remove the constructor."}},create(c){function d(s){if(s.kind!=="constructor"||s.value.type!=="FunctionExpression"||e(s)||n(s)||!s.value.body)return;const p=s.value.body.body,h=s.value.params;(s.parent.parent.superClass?i(p,h):p.length===0)&&c.report({node:s,messageId:"noUselessConstructor",suggest:[{messageId:"removeConstructor",*fix(v){const E=c.sourceCode.getTokenAfter(s),b=E.type==="Punctuator"&&E.value==="["&&a.needsPrecedingSemicolon(c.sourceCode,s);yield v.replaceText(s,b?";":"")}}]})}return{MethodDefinition:d}}},_c}var Bc,SE;function OD(){if(SE)return Bc;SE=1;const a=Le(),{RegExpParser:e,visitRegExpAST:n}=ur();function o(m,i){return new Set((function*(){yield*m,yield*i})())}const t=o(new Set("\\nrvtbfux"),a.LINEBREAKS),l=new Set("\\bcdDfnpPrsStvwWxu0123456789]"),f=o(l,new Set("^/.$*+?[{}|()Bk")),u=o(l,new Set("q/[{}|()-")),r=new Set("!#$%&*+,.:;<=>?@^`~");return Bc={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(m){const i=m.sourceCode,[{allowRegexCharacters:c}]=m.options,d=new e;function s(v,E,b,T){const C=v.range[0]+E,S=[C,C+1],w=i.getLocFromIndex(C);m.report({node:v,loc:{start:w,end:{line:w.line,column:w.column+1}},messageId:"unnecessaryEscape",data:{character:b},suggest:[{messageId:a.isDirective(v.parent)?"removeEscapeDoNotKeepSemantics":"removeEscape",fix(x){return x.removeRange(S)}},...T?[]:[{messageId:"escapeBackslash",fix(x){return x.insertTextBeforeRange(S,"\\")}}]]})}function p(v,E){const b=v.type==="TemplateElement",T=E[0][1];let C=!t.has(T),S;b?(S=T==="`",T==="$"?C=E.input[E.index+2]!=="{":T==="{"&&(C=E.input[E.index-1]!=="$")):S=T===v.raw[0],C&&!S&&s(v,E.index,E[0].slice(1))}function h(v){const{pattern:E,flags:b}=v.regex;let T;const C=b.includes("u"),S=b.includes("v");try{T=d.parsePattern(E,0,E.length,{unicode:C,unicodeSets:S})}catch{return}const w=[];n(T,{onCharacterClassEnter:x=>w.unshift(x),onCharacterClassLeave:()=>w.shift(),onExpressionCharacterClassEnter:x=>w.unshift(x),onExpressionCharacterClassLeave:()=>w.shift(),onCharacterEnter(x){if(!x.raw.startsWith("\\"))return;const A=x.raw.slice(1);if(A!==String.fromCodePoint(x.value)||c.includes(A))return;let k;if(w.length?k=S?u:l:k=f,k.has(A))return;const R=x.start+1;let I=!1;if(w.length){const B=w[0];if(A==="^"&&B.start+1===x.start)return;if(S){if(r.has(A)&&(E[x.end]===A||E[x.start-1]===A&&(A!=="^"||!B.negate||B.start+1<x.start-1)))return;(x.parent.type==="ClassIntersection"||x.parent.type==="ClassSubtraction")&&(I=!0)}else if(A==="-"&&B.start+1!==x.start&&x.end!==B.end-1)return}s(v,R,A,I)}})}function g(v){const E=v.type==="TemplateElement";if(!(E&&v.parent&&v.parent.parent&&v.parent.parent.type==="TaggedTemplateExpression"&&v.parent===v.parent.parent.quasi))if(typeof v.value=="string"||E){if(v.parent.type==="JSXAttribute"||v.parent.type==="JSXElement"||v.parent.type==="JSXFragment")return;const b=E?i.getText(v):v.raw,T=/\\\D/gu;let C;for(;C=T.exec(b);)p(v,C)}else v.regex&&h(v)}return{Literal:g,TemplateElement:g}}},Bc}var Lc,EE;function ND(){if(EE)return Lc;EE=1;const a=Le();return Lc={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(e){const n=e.sourceCode,[{ignoreDestructuring:o,ignoreImport:t,ignoreExport:l}]=e.options;function f(i,c,d){const s=c.type==="Identifier"?c.name:c.value;return e.report({node:i,messageId:"unnecessarilyRenamed",data:{name:s,type:d},fix(p){const h=i.type==="Property"?i.value:i.local;return n.getCommentsInside(i).length>n.getCommentsInside(h).length||h.type==="AssignmentPattern"&&a.isParenthesised(n,h.left)?null:p.replaceText(i,n.getText(h))}})}function u(i){if(!o)for(const c of i.properties){if(c.type!=="Property"||c.shorthand||c.computed)continue;const d=c.key.type==="Identifier"&&c.key.name||c.key.type==="Literal"&&c.key.value,s=c.value.type==="AssignmentPattern"?c.value.left.name:c.value.name;d===s&&f(c,c.key,"Destructuring assignment")}}function r(i){t||i.imported.range[0]!==i.local.range[0]&&a.getModuleExportName(i.imported)===i.local.name&&f(i,i.imported,"Import")}function m(i){l||i.local.range[0]!==i.exported.range[0]&&a.getModuleExportName(i.local)===a.getModuleExportName(i.exported)&&f(i,i.local,"Export")}return{ObjectPattern:u,ImportSpecifier:r,ExportSpecifier:m}}},Lc}var Oc,bE;function MD(){if(bE)return Oc;bE=1;const a=Le(),e=nn();function n(f,u){const r=f.indexOf(u);r!==-1&&f.splice(r,1)}function o(f){return a.STATEMENT_LIST_PARENTS.has(f.parent.type)}function t(f){for(let u=f;u&&u.parent&&!a.isFunction(u);u=u.parent)if(u.parent.type==="TryStatement"&&u.parent.finalizer===u)return!0;return!1}function l(f){for(const u of f)if(u.reachable)return!0;return!1}return Oc={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(f){const u=new WeakMap,r=f.sourceCode;let m=null;function i(p){const h=u.get(p);return!h||h.returned}function c(p,h,g){const v=g||new WeakSet;for(const E of h){if(!E.reachable){v.has(E)||(v.add(E),c(p,E.allPrevSegments.filter(i),v));continue}u.has(E)&&p.push(...u.get(E).uselessReturns)}return p}function d(p,h){if(!p.reachable){h.add(p),p.allPrevSegments.filter(i).filter(v=>!h.has(v)).forEach(v=>d(v,h));return}const g=u.get(p);g&&(g.uselessReturns=g.uselessReturns.filter(v=>{if(m.traversedTryBlockStatements&&m.traversedTryBlockStatements.length>0){const E=v.range[0],b=v.range[1];if(m.traversedTryBlockStatements.some(C=>{const S=C.range[0],w=C.range[1];return E>=S&&b<=w}))return!0}return n(m.uselessReturns,v),!1}))}function s(){m.currentSegments.forEach(p=>d(p,new Set))}return{onCodePathStart(p){m={upper:m,uselessReturns:[],traversedTryBlockStatements:[],codePath:p,currentSegments:new Set}},onCodePathEnd(){for(const p of m.uselessReturns)f.report({node:p,loc:p.loc,messageId:"unnecessaryReturn",fix(h){return o(p)&&!r.getCommentsInside(p).length?new e(h,r).retainEnclosingFunction(p).remove(p):null}});m=m.upper},onCodePathSegmentStart(p){m.currentSegments.add(p);const h={uselessReturns:c([],p.allPrevSegments),returned:!1};u.set(p,h)},onUnreachableCodePathSegmentStart(p){m.currentSegments.add(p)},onUnreachableCodePathSegmentEnd(p){m.currentSegments.delete(p)},onCodePathSegmentEnd(p){m.currentSegments.delete(p)},ReturnStatement(p){if(p.argument&&s(),!(p.argument||a.isInLoop(p)||t(p)||!l(m.currentSegments))){for(const h of m.currentSegments){const g=u.get(h);g&&(g.uselessReturns.push(p),g.returned=!0)}m.uselessReturns.push(p)}},"TryStatement > BlockStatement.block:exit"(p){m.traversedTryBlockStatements.push(p)},"TryStatement:exit"(){m.traversedTryBlockStatements.pop()},ClassDeclaration:s,ContinueStatement:s,DebuggerStatement:s,DoWhileStatement:s,EmptyStatement:s,ExpressionStatement:s,ForInStatement:s,ForOfStatement:s,ForStatement:s,IfStatement:s,ImportDeclaration:s,LabeledStatement:s,SwitchStatement:s,ThrowStatement:s,TryStatement:s,VariableDeclaration:s,WhileStatement:s,WithStatement:s,ExportNamedDeclaration:s,ExportDefaultDeclaration:s,ExportAllDeclaration:s}}},Oc}var Nc,CE;function jD(){if(CE)return Nc;CE=1;const a=Le();function e(d){return!!d.scope&&d.scope.type==="global"}function n(d){let s=d;for(;s.type!=="function"&&s.type!=="global";)s=s.upper;return s}function o(d){const s=n(d.scope);return d.references.some(p=>n(p.from)!==s)}function t(d){return(d.parent.type==="ForOfStatement"||d.parent.type==="ForInStatement")&&d===d.parent.left}function l(d){return d.declarations.every(s=>s.init!==null)}const f=/^(?:Program|BlockStatement|SwitchStatement|ForStatement|ForInStatement|ForOfStatement)$/u;function u(d){for(let s=d;s;s=s.parent)if(f.test(s.type))return s;return null}function r(d){return d.defs.length>=2}function m(d){function s(p){const h=d.range,g=p.identifier.range;return g[0]<h[0]||g[1]>h[1]}return function(p){return p.references.some(s)}}function i(d){const s=d.range[0],p=d.range[1];return h=>{const g=h.defs[0].name,v=g.range[0],E=g.parent.type==="AssignmentPattern"?g.parent.right:null,b=E&&E.range[0],T=E&&E.range[1];return h.references.some(C=>{const S=C.identifier.range[0],w=C.identifier.range[1];return!C.init&&(S<v||E!==null&&S>=b&&w<=T||!a.isFunction(d)&&S>=s&&w<=p)})}}function c(d){return d.name==="let"}return Nc={meta:{type:"suggestion",dialects:["typescript","javascript"],language:"javascript",docs:{description:"Require `let` or `const` instead of `var`",recommended:!1,url:"https://eslint.org/docs/latest/rules/no-var"},schema:[],fixable:"code",messages:{unexpectedVar:"Unexpected var, use let or const instead."}},create(d){const s=d.sourceCode;function p(v){return v.init?s.getDeclaredVariables(v).some(i(v.init)):!1}function h(v){const E=s.getDeclaredVariables(v),b=u(v);return!(v.parent.type==="SwitchCase"||v.declarations.some(p)||E.some(e)||E.some(r)||E.some(m(b))||E.some(c)||a.isInLoop(v)&&(E.some(o)||!t(v)&&!l(v))||!t(v)&&!(v.parent.type==="ForStatement"&&v.parent.init===v)&&!a.STATEMENT_LIST_PARENTS.has(v.parent.type))}function g(v){d.report({node:v,messageId:"unexpectedVar",fix(E){const b=s.getFirstToken(v,{filter:T=>T.value==="var"});return h(v)?E.replaceText(b,"let"):null}})}return{"VariableDeclaration:exit"(v){v.kind==="var"&&(v.parent.type==="TSModuleBlock"&&v.parent.parent.type==="TSModuleDeclaration"&&v.parent.parent.global||g(v))}}}},Nc}var Mc,xE;function UD(){return xE||(xE=1,Mc={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(a){const[{allowAsStatement:e}]=a.options;return{'UnaryExpression[operator="void"]'(n){e&&n.parent&&n.parent.type==="ExpressionStatement"||a.report({node:n,messageId:"noVoid"})}}}}),Mc}var jc,wE;function qD(){if(wE)return jc;wE=1;const a=Rn(),e=Le(),n=40;return jc={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(o){const t=o.sourceCode,[{decoration:l,location:f,terms:u}]=o.options,r=a(l?l.join(""):""),m=/\bno-warning-comments\b/u;function i(p){const h=a(p),g="\\b";let v="";f==="start"?v=`^[\\s${r}]*`:/^\w/u.test(p)&&(v=g);const E=/\w$/u.test(p)?g:"",b="iu";return new RegExp(`${v}${h}${E}`,b)}const c=u.map(i);function d(p){const h=[];return c.forEach((g,v)=>{g.test(p)&&h.push(u[v])}),h}function s(p){const h=p.value;if(e.isDirectiveComment(p)&&m.test(h))return;d(h).forEach(v=>{let E="",b=!1;for(const T of h.trim().split(/\s+/u)){const C=E?`${E} ${T}`:T;if(C.length<=n)E=C;else{b=!0;break}}o.report({node:p,messageId:"unexpectedComment",data:{matchedTerm:v,comment:`${E}${b?"...":""}`}})})}return{Program(){t.getAllComments().filter(h=>h.type!=="Shebang").forEach(s)}}}},jc}var Uc,AE;function VD(){if(AE)return Uc;AE=1;const a=Le();return Uc={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(e){const n=e.sourceCode;function o(t,l,f){e.report({node:t,messageId:"unexpectedWhitespace",data:{propName:n.getText(t.property)},fix(u){let r="";return!t.computed&&!t.optional&&a.isDecimalInteger(t.object)||n.commentsExistBetween(l,f)?null:(t.optional?r="?.":t.computed||(r="."),u.replaceTextRange([l.range[1],f.range[0]],r))}})}return{MemberExpression(t){let l,f;a.isTokenOnSameLine(t.object,t.property)&&(t.computed?(l=n.getTokenBefore(t.property,a.isOpeningBracketToken),f=n.getTokenBefore(l,t.optional?1:0)):(l=n.getFirstToken(t.property),f=n.getTokenBefore(l,1)),n.isSpaceBetweenTokens(f,l)&&o(t,f,l))}}}},Uc}var qc,TE;function $D(){return TE||(TE=1,qc={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(a){return{WithStatement(e){a.report({node:e,messageId:"unexpectedWith"})}}}}),qc}var Vc,kE;function GD(){if(kE)return Vc;kE=1;const a={enum:["beside","below","any"]};return Vc={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:[a,{properties:{overrides:{properties:{if:a,else:a,while:a,do:a,for:a},additionalProperties:!1}},additionalProperties:!1}],messages:{expectNoLinebreak:"Expected no linebreak before this statement.",expectLinebreak:"Expected a linebreak before this statement."}},create(e){const n=e.sourceCode;function o(l){return e.options[1]&&e.options[1].overrides&&e.options[1].overrides[l]||e.options[0]||"beside"}function t(l,f){const u=o(f);if(l.type==="BlockStatement"||u==="any")return;const r=n.getTokenBefore(l);r.loc.end.line===l.loc.start.line&&u==="below"?e.report({node:l,messageId:"expectLinebreak",fix:m=>m.insertTextBefore(l,`
|
|
99
|
+
`)}):r.loc.end.line!==l.loc.start.line&&u==="beside"&&e.report({node:l,messageId:"expectNoLinebreak",fix(m){return n.getText().slice(r.range[1],l.range[0]).trim()?null:m.replaceTextRange([r.range[1],l.range[0]]," ")}})}return{IfStatement(l){t(l.consequent,"if"),l.alternate&&l.alternate.type!=="IfStatement"&&t(l.alternate,"else")},WhileStatement:l=>t(l.body,"while"),DoWhileStatement:l=>t(l.body,"do"),ForStatement:l=>t(l.body,"for"),ForInStatement:l=>t(l.body,"for"),ForOfStatement:l=>t(l.body,"for")}}},Vc}var $c,DE;function WD(){if(DE)return $c;DE=1;const a=Le(),e={oneOf:[{enum:["always","never"]},{type:"object",properties:{multiline:{type:"boolean"},minProperties:{type:"integer",minimum:0},consistent:{type:"boolean"}},additionalProperties:!1,minProperties:1}]};function n(u){let r=!1,m=Number.POSITIVE_INFINITY,i=!1;return u?u==="always"?m=0:u==="never"?m=Number.POSITIVE_INFINITY:(r=!!u.multiline,m=u.minProperties||Number.POSITIVE_INFINITY,i=!!u.consistent):i=!0,{multiline:r,minProperties:m,consistent:i}}function o(u){return typeof u=="object"&&u!==null}function t(u){return o(u)||typeof u=="string"}function l(u){if(o(u)&&Object.values(u).some(t))return{ObjectExpression:n(u.ObjectExpression),ObjectPattern:n(u.ObjectPattern),ImportDeclaration:n(u.ImportDeclaration),ExportNamedDeclaration:n(u.ExportDeclaration)};const r=n(u);return{ObjectExpression:r,ObjectPattern:r,ImportDeclaration:r,ExportNamedDeclaration:r}}function f(u,r,m,i){let c;return u.type==="ObjectExpression"||u.type==="ObjectPattern"?c=u.properties:c=u.specifiers.filter(d=>d.type==="ImportSpecifier"||d.type==="ExportSpecifier"),c.length>=r.minProperties||r.multiline&&c.length>0&&m.loc.start.line!==i.loc.end.line}return $c={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:[e,{type:"object",properties:{ObjectExpression:e,ObjectPattern:e,ImportDeclaration:e,ExportDeclaration:e},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(u){const r=u.sourceCode,m=l(u.options[0]);function i(c){const d=m[c.type];if(c.type==="ImportDeclaration"&&!c.specifiers.some(T=>T.type==="ImportSpecifier")||c.type==="ExportNamedDeclaration"&&!c.specifiers.some(T=>T.type==="ExportSpecifier"))return;const s=r.getFirstToken(c,T=>T.value==="{");let p;c.typeAnnotation?p=r.getTokenBefore(c.typeAnnotation):p=r.getLastToken(c,T=>T.value==="}");let h=r.getTokenAfter(s,{includeComments:!0}),g=r.getTokenBefore(p,{includeComments:!0});const v=f(c,d,h,g),E=a.isCommentToken(h),b=a.isCommentToken(g);if(h=r.getTokenAfter(s),g=r.getTokenBefore(p),v)a.isTokenOnSameLine(s,h)&&u.report({messageId:"expectedLinebreakAfterOpeningBrace",node:c,loc:s.loc,fix(T){return E?null:T.insertTextAfter(s,`
|
|
100
|
+
`)}}),a.isTokenOnSameLine(g,p)&&u.report({messageId:"expectedLinebreakBeforeClosingBrace",node:c,loc:p.loc,fix(T){return b?null:T.insertTextBefore(p,`
|
|
101
|
+
`)}});else{const T=d.consistent,C=!a.isTokenOnSameLine(s,h),S=!a.isTokenOnSameLine(g,p);(!T&&C||T&&C&&!S)&&u.report({messageId:"unexpectedLinebreakAfterOpeningBrace",node:c,loc:s.loc,fix(w){return E?null:w.removeRange([s.range[1],h.range[0]])}}),(!T&&S||T&&!C&&S)&&u.report({messageId:"unexpectedLinebreakBeforeClosingBrace",node:c,loc:p.loc,fix(w){return b?null:w.removeRange([g.range[1],p.range[0]])}})}}return{ObjectExpression:i,ObjectPattern:i,ImportDeclaration:i,ExportNamedDeclaration:i}}},$c}var Gc,PE;function zD(){if(PE)return Gc;PE=1;const a=Le();return Gc={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(e){const n=e.options[0]==="always",o=e.sourceCode;function t(h){return e.options[1]?e.options[1][h]===!n:!1}const l={spaced:n,arraysInObjectsException:t("arraysInObjects"),objectsInObjectsException:t("objectsInObjects")};function f(h,g){const v=e.sourceCode.getTokenAfter(g,{includeComments:!0});e.report({node:h,loc:{start:g.loc.end,end:v.loc.start},messageId:"unexpectedSpaceAfter",data:{token:g.value},fix(E){return E.removeRange([g.range[1],v.range[0]])}})}function u(h,g){const v=e.sourceCode.getTokenBefore(g,{includeComments:!0});e.report({node:h,loc:{start:v.loc.end,end:g.loc.start},messageId:"unexpectedSpaceBefore",data:{token:g.value},fix(E){return E.removeRange([v.range[1],g.range[0]])}})}function r(h,g){e.report({node:h,loc:g.loc,messageId:"requireSpaceAfter",data:{token:g.value},fix(v){return v.insertTextAfter(g," ")}})}function m(h,g){e.report({node:h,loc:g.loc,messageId:"requireSpaceBefore",data:{token:g.value},fix(v){return v.insertTextBefore(g," ")}})}function i(h,g,v,E,b){if(a.isTokenOnSameLine(g,v)){const T=o.isSpaceBetweenTokens(g,v);l.spaced&&!T&&r(h,g),!l.spaced&&T&&v.type!=="Line"&&f(h,g)}if(a.isTokenOnSameLine(E,b)){const C=(l.arraysInObjectsException&&a.isClosingBracketToken(E)||l.objectsInObjectsException&&a.isClosingBraceToken(E))&&o.getNodeByRangeIndex(E.range[0]).type,S=l.arraysInObjectsException&&C==="ArrayExpression"||l.objectsInObjectsException&&(C==="ObjectExpression"||C==="ObjectPattern")?!l.spaced:l.spaced,w=o.isSpaceBetweenTokens(E,b);S&&!w&&m(h,b),!S&&w&&u(h,b)}}function c(h){const g=h.properties.at(-1);return o.getTokenAfter(g,a.isClosingBraceToken)}function d(h){if(h.properties.length===0)return;const g=o.getFirstToken(h),v=c(h),E=o.getTokenAfter(g,{includeComments:!0}),b=o.getTokenBefore(v,{includeComments:!0});i(h,g,E,b,v)}function s(h){if(h.specifiers.length===0)return;let g=h.specifiers[0];const v=h.specifiers.at(-1);if(v.type!=="ImportSpecifier")return;g.type!=="ImportSpecifier"&&(g=h.specifiers[1]);const E=o.getTokenBefore(g),b=o.getTokenAfter(v,a.isNotCommaToken),T=o.getTokenAfter(E,{includeComments:!0}),C=o.getTokenBefore(b,{includeComments:!0});i(h,E,T,C,b)}function p(h){if(h.specifiers.length===0)return;const g=h.specifiers[0],v=h.specifiers.at(-1),E=o.getTokenBefore(g),b=o.getTokenAfter(v,a.isNotCommaToken),T=o.getTokenAfter(E,{includeComments:!0}),C=o.getTokenBefore(b,{includeComments:!0});i(h,E,T,C,b)}return{ObjectPattern:d,ObjectExpression:d,ImportDeclaration:s,ExportNamedDeclaration:p}}},Gc}var Wc,IE;function HD(){return IE||(IE=1,Wc={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(a){const e=a.options[0]&&(a.options[0].allowAllPropertiesOnSameLine||a.options[0].allowMultiplePropertiesPerLine),n=e?"propertiesOnNewlineAll":"propertiesOnNewline",o=a.sourceCode;return{ObjectExpression(t){if(e&&t.properties.length>1){const l=o.getFirstToken(t.properties[0]),f=o.getLastToken(t.properties.at(-1));if(l.loc.end.line===f.loc.start.line)return}for(let l=1;l<t.properties.length;l++){const f=o.getLastToken(t.properties[l-1]),u=o.getFirstToken(t.properties[l]);f.loc.end.line===u.loc.start.line&&a.report({node:t,loc:u.loc,messageId:n,fix(r){const i=[o.getTokenBefore(u).range[1],u.range[0]];return o.text.slice(i[0],i[1]).trim()?null:r.replaceTextRange(i,`
|
|
102
|
+
`)}})}}}}}),Wc}var zc,FE;function KD(){if(FE)return zc;FE=1;const a={always:"always",never:"never",methods:"methods",properties:"properties",consistent:"consistent",consistentAsNeeded:"consistent-as-needed"},e=Le(),n=/[^_$0-9]/u,o=/^\s*\*/u;function t(m){const i=n.exec(m);if(!i)return!1;const c=m.charAt(i.index);return c===c.toUpperCase()}function l(m){return m.kind!=="set"&&m.kind!=="get"&&m.type!=="SpreadElement"&&m.type!=="SpreadProperty"&&m.type!=="ExperimentalSpreadProperty"}function f(m){return m.type==="Literal"&&typeof m.value=="string"}function u(m){return m.shorthand||m.method}function r(m){const i=m.value;return i.type==="FunctionExpression"?!i.id:i.type==="Identifier"?e.getStaticPropertyName(m)===i.name:!1}return zc={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}]},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(m){const i=m.options[0]||a.always,c=i===a.methods||i===a.always,d=i===a.properties||i===a.always,s=i===a.never,p=i===a.consistent,h=i===a.consistentAsNeeded,g=m.options[1]||{},v=g.ignoreConstructors,E=g.methodsIgnorePattern?new RegExp(g.methodsIgnorePattern,"u"):null,b=g.avoidQuotes,T=!!g.avoidExplicitReturnArrows,C=m.sourceCode;function S(O,$){const N=O.properties.filter(l);if(N.length>0){const _=N.filter(u);_.length!==N.length&&(_.length>0?m.report({node:O,messageId:"unexpectedMix"}):$&&N.every(r)&&m.report({node:O,messageId:"expectedAllPropertiesShorthanded"}))}}function w(O,$){const N=$.computed?C.getFirstToken($,e.isOpeningBracketToken):C.getFirstToken($.key),_=$.computed?C.getFirstTokenBetween($.key,$.value,e.isClosingBracketToken):C.getLastToken($.key),X=C.text.slice(N.range[0],_.range[1]);let L="";if(C.commentsExistBetween(_,$.value))return null;$.value.async&&(L+="async "),$.value.generator&&(L+="*");const K=[N.range[0],$.range[1]],J=L+X;if($.value.type==="FunctionExpression"){const ie=C.getTokens($.value).find(Ee=>Ee.type==="Keyword"&&Ee.value==="function"),he=$.value.generator?C.getTokenAfter(ie):ie;return O.replaceTextRange(K,J+C.text.slice(he.range[1],$.value.range[1]))}const ge=C.getTokenBefore($.value.body,e.isArrowToken),ae=C.text.slice(ge.range[1],$.value.range[1]),Z=C.getFirstToken($.value,{skip:$.value.async?1:0}).range[0],P=C.getTokenBefore(ge).range[1],H=$.value.params.length===1&&$.value.params[0].range[0]===Z,fe=C.text.slice(Z,P),ce=H?`(${fe})`:fe;return O.replaceTextRange(K,J+ce+ae)}function x(O,$){const N=$.computed?C.getTokens($).find(K=>K.value==="["):C.getFirstToken($.key),_=$.computed?C.getTokensBetween($.key,$.value).find(K=>K.value==="]"):C.getLastToken($.key),X=C.text.slice(N.range[0],_.range[1]);let L="function";return $.value.async&&(L=`async ${L}`),$.value.generator&&(L=`${L}*`),O.replaceTextRange([$.range[0],_.range[1]],`${X}: ${L}`)}const A=[],k=new WeakSet,R=new WeakSet;function I(O){A.unshift(new Set),C.getScope(O).variables.filter($=>$.name==="arguments").forEach($=>{$.references.map(N=>N.identifier).forEach(N=>R.add(N))})}function B(){A.shift()}function F(){A[0].forEach(O=>k.add(O))}return{Program:I,FunctionDeclaration:I,FunctionExpression:I,"Program:exit":B,"FunctionDeclaration:exit":B,"FunctionExpression:exit":B,ArrowFunctionExpression(O){A[0].add(O)},"ArrowFunctionExpression:exit"(O){A[0].delete(O)},ThisExpression:F,Super:F,MetaProperty(O){O.meta.name==="new"&&O.property.name==="target"&&F()},Identifier(O){R.has(O)&&F()},ObjectExpression(O){p?S(O,!1):h&&S(O,!0)},"Property:exit"(O){const $=O.method||O.shorthand;if(O.parent.type!=="ObjectPattern"&&!(O.kind==="get"||O.kind==="set")&&!(O.computed&&O.value.type!=="FunctionExpression"&&O.value.type!=="ArrowFunctionExpression")){if($)if(O.method&&(s||b&&f(O.key))){const N=s?"expectedMethodLongform":"expectedLiteralMethodLongform";m.report({node:O,messageId:N,fix:_=>x(_,O)})}else s&&m.report({node:O,messageId:"expectedPropertyLongform",fix:N=>N.insertTextAfter(O.key,`: ${O.key.name}`)});else if(c&&!O.value.id&&(O.value.type==="FunctionExpression"||O.value.type==="ArrowFunctionExpression")){if(v&&O.key.type==="Identifier"&&t(O.key.name))return;if(E){const N=e.getStaticPropertyName(O);if(N!==null&&E.test(N))return}if(b&&f(O.key))return;(O.value.type==="FunctionExpression"||O.value.type==="ArrowFunctionExpression"&&O.value.body.type==="BlockStatement"&&T&&!k.has(O.value))&&m.report({node:O,messageId:"expectedMethodShorthand",fix:N=>w(N,O)})}else if(O.value.type==="Identifier"&&O.key.name===O.value.name&&d){if(C.getCommentsInside(O).some(_=>_.type==="Block"&&o.test(_.value)&&_.value.includes("@type")))return;m.report({node:O,messageId:"expectedPropertyShorthand",fix(_){return C.getCommentsInside(O).length>0?null:_.replaceText(O,O.value.name)}})}else if(O.value.type==="Identifier"&&O.key.type==="Literal"&&O.key.value===O.value.name&&d){if(b||C.getCommentsInside(O).some(_=>_.type==="Block"&&_.value.startsWith("*")&&_.value.includes("@type")))return;m.report({node:O,messageId:"expectedPropertyShorthand",fix(_){return C.getCommentsInside(O).length>0?null:_.replaceText(O,O.value.name)}})}}}}}},zc}var Hc,RE;function XD(){if(RE)return Hc;RE=1;const a=Le();function e(n){return a.STATEMENT_LIST_PARENTS.has(n.parent.type)}return Hc={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}]}],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(n){const o="always",t="never",l="consecutive",f=n.options[0]||o,u={};typeof f=="string"?(u.var={uninitialized:f,initialized:f},u.let={uninitialized:f,initialized:f},u.const={uninitialized:f,initialized:f},u.using={uninitialized:f,initialized:f},u.awaitUsing={uninitialized:f,initialized:f}):typeof f=="object"&&(u.separateRequires=!!f.separateRequires,u.var={uninitialized:f.var,initialized:f.var},u.let={uninitialized:f.let,initialized:f.let},u.const={uninitialized:f.const,initialized:f.const},u.using={uninitialized:f.using,initialized:f.using},u.awaitUsing={uninitialized:f.awaitUsing,initialized:f.awaitUsing},Object.hasOwn(f,"uninitialized")&&(u.var.uninitialized=f.uninitialized,u.let.uninitialized=f.uninitialized,u.const.uninitialized=f.uninitialized,u.using.uninitialized=f.uninitialized,u.awaitUsing.uninitialized=f.uninitialized),Object.hasOwn(f,"initialized")&&(u.var.initialized=f.initialized,u.let.initialized=f.initialized,u.const.initialized=f.initialized,u.using.initialized=f.initialized,u.awaitUsing.initialized=f.initialized));const r=n.sourceCode,m=[],i=[];function c(){i.push({let:{initialized:!1,uninitialized:!1},const:{initialized:!1,uninitialized:!1},using:{initialized:!1,uninitialized:!1},awaitUsing:{initialized:!1,uninitialized:!1}})}function d(){m.push({initialized:!1,uninitialized:!1}),c()}function s(){i.pop()}function p(){m.pop(),s()}function h(w){return w.init&&w.init.type==="CallExpression"&&w.init.callee.name==="require"}function g(w,x,A){for(let k=0;k<x.length;k++)x[k].init===null?u[w]&&u[w].uninitialized===o&&(A.uninitialized=!0):u[w]&&u[w].initialized===o&&(u.separateRequires&&h(x[k])?A.required=!0:A.initialized=!0)}function v(w){let x;return w==="var"?x=m.at(-1):w==="let"?x=i.at(-1).let:w==="const"?x=i.at(-1).const:w==="using"?x=i.at(-1).using:w==="awaitUsing"&&(x=i.at(-1).awaitUsing),x}function E(w){const x={uninitialized:0,initialized:0};for(let A=0;A<w.length;A++)w[A].init===null?x.uninitialized++:x.initialized++;return x}function b(w,x){const A=E(x),k=u[w]||{},R=v(w),I=x.some(h);return k.uninitialized===o&&k.initialized===o&&(R.uninitialized||R.initialized)&&!I||A.uninitialized>0&&k.uninitialized===o&&R.uninitialized||A.initialized>0&&k.initialized===o&&R.initialized&&!I||R.required&&I?!1:(g(w,x,R),!0)}function T(w){const x=w[0],A=Array.isArray(x.parent.parent.body)?x.parent.parent.body:[],k=A.findIndex(I=>I.range[0]===x.parent.range[0]),R=A[k-1];return function*(B){const F=r.getFirstToken(x.parent),O=r.getTokenBefore(F);if(R&&R.kind===x.parent.kind){if(O.value===";"?yield B.replaceText(O,","):yield B.insertTextAfter(O,","),x.parent.kind==="await using"){const $=r.getTokenAfter(F);yield B.remove($)}yield B.replaceText(F,"")}}}function C(w){const{parent:x}=w;return e(x.type==="ExportNamedDeclaration"?x:w)?A=>w.declarations.map(k=>{const R=r.getTokenAfter(k);if(R===null)return null;const I=r.getTokenAfter(R,{includeComments:!0});if(R.value!==",")return null;const B=w.parent.type==="ExportNamedDeclaration"?"export ":"";if(I.range[0]===R.range[1])return A.replaceText(R,`; ${B}${w.kind} `);if(I.loc.start.line>R.loc.end.line||I.type==="Line"||I.type==="Block"){let F=I;for(;F.type==="Line"||F.type==="Block";)F=r.getTokenAfter(F,{includeComments:!0});return A.replaceTextRange([R.range[0],F.range[0]],`;${r.text.slice(R.range[1],F.range[0])}${B}${w.kind} `)}return A.replaceText(R,`; ${B}${w.kind}`)}).filter(k=>k):null}function S(w){const x=w.parent,A=w.kind,k=A==="await using"?"awaitUsing":A;if(!u[k])return;const R=w.declarations,I=E(R),B=R.some(h)&&!R.every(h);u[k].initialized===o&&u.separateRequires&&B&&n.report({node:w,messageId:"splitRequires"});const F=x.body&&x.body.length>0&&x.body.indexOf(w)||0;if(F>0){const O=x.body[F-1],$=O.type==="VariableDeclaration",N=R.concat(O.declarations||[]);if($&&O.kind===A&&!(N.some(h)&&!N.every(h))){const _=E(O.declarations);u[k].initialized===l&&u[k].uninitialized===l?n.report({node:w,messageId:"combine",data:{type:A},fix:T(R)}):u[k].initialized===l&&I.initialized>0&&_.initialized>0?n.report({node:w,messageId:"combineInitialized",data:{type:A},fix:T(R)}):u[k].uninitialized===l&&I.uninitialized>0&&_.uninitialized>0&&n.report({node:w,messageId:"combineUninitialized",data:{type:A},fix:T(R)})}}if(!b(k,R)){if(u[k].initialized===o&&u[k].uninitialized===o)n.report({node:w,messageId:"combine",data:{type:A},fix:T(R)});else if(u[k].initialized===o&&I.initialized>0&&n.report({node:w,messageId:"combineInitialized",data:{type:A},fix:T(R)}),u[k].uninitialized===o&&I.uninitialized>0){if(w.parent.left===w&&(w.parent.type==="ForInStatement"||w.parent.type==="ForOfStatement"))return;n.report({node:w,messageId:"combineUninitialized",data:{type:A},fix:T(R)})}}(x.type!=="ForStatement"||x.init!==w)&&I.uninitialized+I.initialized>1&&(u[k].initialized===t&&u[k].uninitialized===t?n.report({node:w,messageId:"split",data:{type:A},fix:C(w)}):u[k].initialized===t&&I.initialized>0?n.report({node:w,messageId:"splitInitialized",data:{type:A},fix:C(w)}):u[k].uninitialized===t&&I.uninitialized>0&&n.report({node:w,messageId:"splitUninitialized",data:{type:A},fix:C(w)}))}return{Program:d,FunctionDeclaration:d,FunctionExpression:d,ArrowFunctionExpression:d,StaticBlock:d,BlockStatement:c,ForStatement:c,ForInStatement:c,ForOfStatement:c,SwitchStatement:c,VariableDeclaration:S,"ForStatement:exit":s,"ForOfStatement:exit":s,"ForInStatement:exit":s,"SwitchStatement:exit":s,"BlockStatement:exit":s,"Program:exit":p,"FunctionDeclaration:exit":p,"FunctionExpression:exit":p,"ArrowFunctionExpression:exit":p,"StaticBlock:exit":p}}},Hc}var Kc,_E;function JD(){return _E||(_E=1,Kc={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(a){const e=a.options[0]==="always";function n(t){return t==="ForStatement"||t==="ForInStatement"||t==="ForOfStatement"}function o(t){if(n(t.parent.type))return;const l=t.declarations;let f;l.forEach(u=>{f&&f.loc.end.line===u.loc.start.line&&(e||f.init||u.init)&&a.report({node:t,messageId:"expectVarOnNewline",loc:u.loc,fix:r=>r.insertTextBefore(u,`
|
|
103
|
+
`)}),f=u})}return{VariableDeclaration:o}}}),Kc}var Xc,BE;function YD(){if(BE)return Xc;BE=1;const a=Le();function e(t){return["*","&","^","|"].includes(t)}function n(t){return["+","-","/","%","<<",">>",">>>","**"].includes(t)}function o(t){return t.type==="Identifier"||t.type==="MemberExpression"&&(t.object.type==="Identifier"||t.object.type==="ThisExpression")&&(!t.computed||t.property.type==="Literal")}return Xc={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){const l=t.options[0]==="never",f=t.sourceCode;function u(i){return f.getFirstTokenBetween(i.left,i.right,c=>c.value===i.operator)}function r(i){if(i.operator!=="="||i.right.type!=="BinaryExpression")return;const c=i.left,d=i.right,s=d.operator;if(e(s)||n(s)){const p=`${s}=`;a.isSameReference(c,d.left,!0)?t.report({node:i,messageId:"replaced",data:{operator:p},fix(h){if(o(c)&&o(d.left)){const g=u(i),v=u(d),E=f.getText().slice(i.range[0],g.range[0]),b=f.getText().slice(v.range[1],i.right.range[1]);return f.commentsExistBetween(g,v)?null:h.replaceText(i,`${E}${p}${b}`)}return null}}):a.isSameReference(c,d.right,!0)&&e(s)&&t.report({node:i,messageId:"replaced",data:{operator:p}})}}function m(i){i.operator!=="="&&!a.isLogicalAssignmentOperator(i.operator)&&t.report({node:i,messageId:"unexpected",data:{operator:i.operator},fix(c){if(o(i.left)){const d=f.getFirstToken(i),s=u(i),p=f.getText().slice(i.range[0],s.range[0]),h=i.operator.slice(0,-1);let g;if(f.commentsExistBetween(d,s))return null;if(a.getPrecedence(i.right)<=a.getPrecedence({type:"BinaryExpression",operator:h})&&!a.isParenthesised(f,i.right))g=`${f.text.slice(s.range[1],i.right.range[0])}(${f.getText(i.right)})`;else{const v=f.getTokenAfter(s,{includeComments:!0});let E="";s.range[1]===v.range[0]&&!a.canTokensBeAdjacent({type:"Punctuator",value:h},v)&&(E=" "),g=`${E}${f.text.slice(s.range[1],i.range[1])}`}return c.replaceText(i,`${p}= ${p}${h}${g}`)}return null}})}return{AssignmentExpression:l?m:r}}},Xc}var Jc,LE;function QD(){if(LE)return Jc;LE=1;const a=Le();return Jc={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(e){const n=!e.options[0],o=e.options[0]||"after",t=e.options[1]||{},l=t.overrides?Object.assign({},t.overrides):{};n&&!l["?"]&&(l["?"]="before"),n&&!l[":"]&&(l[":"]="before");const f=e.sourceCode;function u(i,c){return d=>{const s=f.getTokenBefore(i),p=f.getTokenAfter(i),h=f.text.slice(s.range[1],i.range[0]),g=f.text.slice(i.range[1],p.range[0]),v=!a.isTokenOnSameLine(s,i),E=!a.isTokenOnSameLine(i,p);let b,T;if(v!==E&&c!=="none"){if(f.getTokenBefore(i,{includeComments:!0})!==s&&f.getTokenAfter(i,{includeComments:!0})!==p)return null;b=g,T=h}else{const C=a.createGlobalLinebreakMatcher();if(b=c==="before"||h.trim()?h:h.replace(C,""),T=c==="after"||g.trim()?g:g.replace(C,""),b===h&&T===g)return null}return T===""&&p.type==="Punctuator"&&"+-".includes(i.value)&&p.value===i.value&&(T+=" "),d.replaceTextRange([s.range[1],p.range[0]],b+i.value+T)}}function r(i,c,d){const s=f.getTokenBefore(c,b=>b.value===d),p=f.getTokenBefore(s),h=f.getTokenAfter(s),g=l[d],v=g||o,E=u(s,v);a.isTokenOnSameLine(p,s)&&a.isTokenOnSameLine(s,h)||(g!=="ignore"&&!a.isTokenOnSameLine(p,s)&&!a.isTokenOnSameLine(s,h)?e.report({node:i,loc:s.loc,messageId:"badLinebreak",data:{operator:d},fix:E}):v==="before"&&a.isTokenOnSameLine(p,s)?e.report({node:i,loc:s.loc,messageId:"operatorAtBeginning",data:{operator:d},fix:E}):v==="after"&&a.isTokenOnSameLine(s,h)?e.report({node:i,loc:s.loc,messageId:"operatorAtEnd",data:{operator:d},fix:E}):v==="none"&&e.report({node:i,loc:s.loc,messageId:"noLinebreak",data:{operator:d},fix:E}))}function m(i){r(i,i.right,i.operator)}return{BinaryExpression:m,LogicalExpression:m,AssignmentExpression:m,VariableDeclarator(i){i.init&&r(i,i.init,"=")},PropertyDefinition(i){i.value&&r(i,i.value,"=")},ConditionalExpression(i){r(i,i.consequent,"?"),r(i,i.alternate,":")}}}},Jc}var Yc,OE;function ZD(){if(OE)return Yc;OE=1;const a=Le();return Yc={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(e){const n={},o=e.options[0]||"always",t=e.options[1]||{};if(typeof o=="string"){const p=o==="always";n.blocks=p,n.switches=p,n.classes=p}else Object.hasOwn(o,"blocks")&&(n.blocks=o.blocks==="always"),Object.hasOwn(o,"switches")&&(n.switches=o.switches==="always"),Object.hasOwn(o,"classes")&&(n.classes=o.classes==="always");Object.hasOwn(t,"allowSingleLineBlocks")&&(n.allowSingleLineBlocks=t.allowSingleLineBlocks===!0);const l=e.sourceCode;function f(p){return p.type==="SwitchStatement"?l.getTokenBefore(p.cases[0]):p.type==="StaticBlock"?l.getFirstToken(p,{skip:1}):l.getFirstToken(p)}function u(p){return p.type==="Line"||p.type==="Block"}function r(p,h){return h.loc.start.line-p.loc.end.line>=2}function m(p){let h,g=p;do h=g,g=l.getTokenAfter(g,{includeComments:!0});while(u(g)&&g.loc.start.line===h.loc.end.line);return g}function i(p){let h=p,g;do g=h,h=l.getTokenBefore(h,{includeComments:!0});while(u(h)&&h.loc.end.line===g.loc.start.line);return h}function c(p){switch(p.type){case"BlockStatement":case"StaticBlock":return n.blocks;case"SwitchStatement":return n.switches;case"ClassBody":return n.classes;default:throw new Error("unreachable")}}function d(p){const h=f(p),g=m(h),v=l.getTokenBefore(g,{includeComments:!0}),E=l.getLastToken(p),b=i(E),T=l.getTokenAfter(b,{includeComments:!0}),C=r(v,g),S=r(b,T);n.allowSingleLineBlocks&&a.isTokenOnSameLine(v,T)||(c(p)?(C||e.report({node:p,loc:{start:v.loc.start,end:g.loc.start},fix(w){return w.insertTextAfter(v,`
|
|
104
|
+
`)},messageId:"alwaysPadBlock"}),S||e.report({node:p,loc:{end:T.loc.start,start:b.loc.end},fix(w){return w.insertTextBefore(T,`
|
|
105
|
+
`)},messageId:"alwaysPadBlock"})):(C&&e.report({node:p,loc:{start:v.loc.start,end:g.loc.start},fix(w){return w.replaceTextRange([v.range[1],g.range[0]-g.loc.start.column],`
|
|
106
|
+
`)},messageId:"neverPadBlock"}),S&&e.report({node:p,loc:{end:T.loc.start,start:b.loc.end},messageId:"neverPadBlock",fix(w){return w.replaceTextRange([b.range[1],T.range[0]-T.loc.start.column],`
|
|
107
|
+
`)}})))}const s={};return Object.hasOwn(n,"switches")&&(s.SwitchStatement=function(p){p.cases.length!==0&&d(p)}),Object.hasOwn(n,"blocks")&&(s.BlockStatement=function(p){p.body.length!==0&&d(p)},s.StaticBlock=s.BlockStatement),Object.hasOwn(n,"classes")&&(s.ClassBody=function(p){p.body.length!==0&&d(p)}),s}},Yc}var Qc,NE;function eP(){if(NE)return Qc;NE=1;const a=Le(),e=`[${Array.from(a.LINEBREAKS).join("")}]`,n=new RegExp(String.raw`^(\s*?${e})\s*${e}(\s*;?)$`,"u"),o=/^(?:module\s*\.\s*)?exports(?:\s*\.|\s*\[|$)/u,t=/^require\(/u;function l(E){return{test:(b,T)=>T.getFirstToken(b).value===E}}function f(E){return{test:(b,T)=>b.loc.start.line===b.loc.end.line&&T.getFirstToken(b).value===E}}function u(E){return{test:(b,T)=>b.loc.start.line!==b.loc.end.line&&T.getFirstToken(b).value===E}}function r(E){return{test:b=>b.type===E}}function m(E){if(E.type==="ExpressionStatement"){let b=a.skipChainExpression(E.expression);return b.type==="UnaryExpression"&&(b=a.skipChainExpression(b.argument)),b.type==="CallExpression"&&a.isFunction(b.callee)}return!1}function i(E,b){if(b.type==="DoWhileStatement"&&b.body.type==="BlockStatement"||m(b))return!0;const T=E.getLastToken(b,a.isNotSemicolonToken),C=T&&a.isClosingBraceToken(T)?E.getNodeByRangeIndex(T.range[0]):null;return!!C&&(C.type==="BlockStatement"||C.type==="SwitchStatement")}function c(E,b){const T=E.getLastToken(b),C=E.getTokenBefore(T),S=E.getTokenAfter(T);return!!(C&&S&&C.range[0]>=b.range[0]&&a.isSemicolonToken(T)&&T.loc.start.line!==C.loc.end.line&&T.loc.end.line===S.loc.start.line)?C:T}function d(E,b,T){return b+T}function s(){}function p(E,b,T,C){C.length!==0&&E.report({node:T,messageId:"unexpectedBlankLine",fix(S){if(C.length>=2)return null;const w=C[0][0],x=C[0][1],A=w.range[1],k=x.range[0],R=E.sourceCode.text.slice(A,k).replace(n,d);return S.replaceTextRange([A,k],R)}})}function h(E,b,T,C){C.length>0||E.report({node:T,messageId:"expectedBlankLine",fix(S){const w=E.sourceCode;let x=c(w,b);const A=w.getFirstTokenBetween(x,T,{includeComments:!0,filter(R){return a.isTokenOnSameLine(x,R)?(x=R,!1):!0}})||T,k=a.isTokenOnSameLine(x,A)?`
|
|
108
|
+
|
|
109
|
+
`:`
|
|
110
|
+
`;return S.insertTextAfter(x,k)}})}const g={any:{verify:s},never:{verify:p},always:{verify:h}},v={"*":{test:()=>!0},"block-like":{test:(E,b)=>i(b,E)},"cjs-export":{test:(E,b)=>E.type==="ExpressionStatement"&&E.expression.type==="AssignmentExpression"&&o.test(b.getText(E.expression.left))},"cjs-import":{test:(E,b)=>E.type==="VariableDeclaration"&&E.declarations.length>0&&!!E.declarations[0].init&&t.test(b.getText(E.declarations[0].init))},directive:{test:a.isDirective},expression:{test:E=>E.type==="ExpressionStatement"&&!a.isDirective(E)},iife:{test:m},"multiline-block-like":{test:(E,b)=>E.loc.start.line!==E.loc.end.line&&i(b,E)},"multiline-expression":{test:E=>E.loc.start.line!==E.loc.end.line&&E.type==="ExpressionStatement"&&!a.isDirective(E)},"multiline-const":u("const"),"multiline-let":u("let"),"multiline-var":u("var"),"singleline-const":f("const"),"singleline-let":f("let"),"singleline-var":f("var"),block:r("BlockStatement"),empty:r("EmptyStatement"),function:r("FunctionDeclaration"),break:l("break"),case:l("case"),class:l("class"),const:l("const"),continue:l("continue"),debugger:l("debugger"),default:l("default"),do:l("do"),export:l("export"),for:l("for"),if:l("if"),import:l("import"),let:l("let"),return:l("return"),switch:l("switch"),throw:l("throw"),try:l("try"),var:l("var"),while:l("while"),with:l("with")};return Qc={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(g)},statementType:{anyOf:[{enum:Object.keys(v)},{type:"array",items:{enum:Object.keys(v)},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(E){const b=E.sourceCode,T=E.options||[];let C=null;function S(){C={upper:C,prevNode:null}}function w(){C=C.upper}function x(B,F){let O=B;for(;O.type==="LabeledStatement";)O=O.body;return Array.isArray(F)?F.some(x.bind(null,O)):v[F].test(O,b)}function A(B,F){for(let O=T.length-1;O>=0;--O){const $=T[O];if(x(B,$.prev)&&x(F,$.next))return g[$.blankLine]}return g.any}function k(B,F){const O=[];let $=c(b,B);if(F.loc.start.line-$.loc.end.line>=2)do{const N=b.getTokenAfter($,{includeComments:!0});N.loc.start.line-$.loc.end.line>=2&&O.push([$,N]),$=N}while($.range[0]<F.range[0]);return O}function R(B){const F=B.parent.type;if(!(a.STATEMENT_LIST_PARENTS.has(F)||F==="SwitchStatement"))return;const $=C.prevNode;if($){const N=A($,B),_=k($,B);N.verify(E,$,B,_)}C.prevNode=B}function I(B){R(B),S()}return{Program:S,BlockStatement:S,SwitchStatement:S,StaticBlock:S,"Program:exit":w,"BlockStatement:exit":w,"SwitchStatement:exit":w,"StaticBlock:exit":w,":statement":R,SwitchCase:I,"SwitchCase:exit":w}}},Qc}var Zc,ME;function tP(){if(ME)return Zc;ME=1;const a=Le();function e(f){return f&&f.defs[0].type==="FunctionName"}function n(f,u,r){return f.meta.name===u&&f.property.name===r}function o(f){const u=f.variables;for(let r=0;r<u.length;++r){const m=u[r];if(m.name==="arguments")return m.identifiers.length===0?m:null}return null}function t(f){const u={isCallback:!1,isLexicalThis:!1};let r=f,m=f.parent,i=!1;for(;r;){switch(m.type){case"LogicalExpression":case"ChainExpression":case"ConditionalExpression":break;case"MemberExpression":if(m.object===r&&!m.property.computed&&m.property.type==="Identifier"&&m.property.name==="bind"){const c=m.parent.type==="ChainExpression"?m.parent:m;if(a.isCallee(c))i||(i=!0,u.isLexicalThis=c.parent.arguments.length===1&&c.parent.arguments[0].type==="ThisExpression"),m=c.parent;else return u}else return u;break;case"CallExpression":case"NewExpression":return m.callee!==r&&(u.isCallback=!0),u;default:return u}r=m,m=m.parent}throw new Error("unreachable")}function l(f){return f.every(u=>u.type==="Identifier")&&f.length!==new Set(f.map(u=>u.name)).size}return Zc={meta:{type:"suggestion",dialects:["javascript","typescript"],language:"javascript",defaultOptions:[{allowNamedFunctions:!1,allowUnboundThis:!0}],docs:{description:"Require using arrow functions for callbacks",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(f){const[{allowNamedFunctions:u,allowUnboundThis:r}]=f.options,m=f.sourceCode;let i=[];function c(){i.push({this:!1,super:!1,meta:!1})}function d(){return i.pop()}return{Program(){i=[]},ThisExpression(){const s=i.at(-1);s&&(s.this=!0)},Super(){const s=i.at(-1);s&&(s.super=!0)},MetaProperty(s){const p=i.at(-1);p&&n(s,"new","target")&&(p.meta=!0)},FunctionDeclaration:c,"FunctionDeclaration:exit":d,FunctionExpression:c,"FunctionExpression:exit"(s){const p=d();if(u&&s.id&&s.id.name||s.generator)return;const h=m.getDeclaredVariables(s)[0];if(e(h)&&h.references.length>0)return;const g=o(m.getScope(s));if(g&&g.references.length>0)return;const v=t(s);v.isCallback&&(!r||!p.this||v.isLexicalThis)&&!p.super&&!p.meta&&f.report({node:s,messageId:"preferArrowCallback",*fix(E){if(!v.isLexicalThis&&p.this||l(s.params)||s.params.length&&s.params[0].name==="this")return;if(v.isLexicalThis){const w=s.parent;if(w.type!=="MemberExpression")return;const x=w.parent,A=m.getTokenAfter(w.object,a.isNotClosingParenToken),k=m.getLastToken(x);if(a.isParenthesised(m,w)||m.commentsExistBetween(A,k))return;yield E.removeRange([A.range[0],k.range[1]])}const b=m.getFirstToken(s,s.async?1:0),T=m.getTokenAfter(b,a.isOpeningParenToken),C=m.getTokenBefore(s.body);m.commentsExistBetween(b,T)?(yield E.remove(b),s.id&&(yield E.remove(s.id))):yield E.removeRange([b.range[0],T.range[0]]),yield E.insertTextAfter(C," =>");let S=v.isLexicalThis?s.parent.parent:s;S.type==="ChainExpression"&&(S=S.parent),S.parent.type!=="CallExpression"&&S.parent.type!=="ConditionalExpression"&&!a.isParenthesised(m,S)&&!a.isParenthesised(m,s)&&(yield E.insertTextBefore(S,"("),yield E.insertTextAfter(S,")"))}})}}}},Zc}var ef,jE;function rP(){if(jE)return ef;jE=1;const a=nn(),e=Le(),n=/^(?:.+?Pattern|RestElement|SpreadProperty|ExperimentalRestProperty|Property)$/u,o=/^(?:Program|BlockStatement|StaticBlock|SwitchCase)$/u,t=/^(?:VariableDeclarator|AssignmentExpression)$/u;function l(s){return s.parent.type==="ForStatement"&&s.parent.init===s}function f(s){let p=s.parent;for(;n.test(p.type);)p=p.parent;return p.type==="VariableDeclarator"||p.type==="AssignmentExpression"&&p.parent.type==="ExpressionStatement"&&o.test(p.parent.parent.type)}function u(s,p){if(p.through.some(g=>g.resolved&&g.resolved.name===s))return!0;const h=e.getVariableByName(p,s);return h!==null?h.defs.some(g=>g.type==="Parameter"):!1}function r(s){if(!s.isWrite())return null;let p=s.identifier.parent;for(;n.test(p.type);)p=p.parent;return t.test(p.type)?p:null}function m(s){switch(s.type){case"ObjectPattern":return s.properties.some(p=>p?m(p.argument||p.value):!1);case"ArrayPattern":return s.elements.some(p=>p?m(p):!1);case"AssignmentPattern":return m(s.left);case"MemberExpression":return!0}return!1}function i(s,p){if(s.eslintUsed&&s.scope.type==="global")return null;let h=null,g=!1;const v=s.references;for(let b=0;b<v.length;++b){const T=v[b];if(T.isWrite()){if(h!==null&&h.identifier!==T.identifier)return null;const S=r(T);if(S!==null&&S.left!==void 0){const w=S.left;let x=!1,A=!1;if(w.type==="ObjectPattern"?(x=w.properties.filter(R=>R.value).map(R=>R.value.name).some(R=>u(R,s.scope)),A=m(w)):w.type==="ArrayPattern"&&(x=w.elements.map(R=>R&&R.name).some(R=>u(R,s.scope)),A=m(w)),x||A)return null}h=T}else if(T.isRead()&&h===null){if(p)return null;g=!0}}return h!==null&&h.from===s.scope&&f(h.identifier)?g?s.defs[0].name:h.identifier:null}function c(s,p){const h=new Map;for(let g=0;g<s.length;++g){const v=s[g],E=v.references,b=i(v,p);let T=null;for(let C=0;C<E.length;++C){const S=E[C],w=S.identifier;if(w===T)continue;T=w;const x=r(S);x&&(h.has(x)?h.get(x).push(b):h.set(x,[b]))}}return h}function d(s,p,h){return!s||h(s)?null:s.type===p?s:d(s.parent,p,h)}return ef={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(s){const[{destructuring:p,ignoreReadBeforeAssign:h}]=s.options,g=p!=="all",v=s.sourceCode,E=[];let b=0,T=null,C="";function S(w){const x=w.filter(Boolean);if(w.length&&(g||x.length===w.length)){const A=d(w[0],"VariableDeclaration",I=>I.type.endsWith("Statement")),k=A===null;if(!k&&A.declarations.length>0){const I=A.declarations[0];if(I.init){const B=I.init.parent;B.type==="VariableDeclarator"&&(B.id.name!==C&&(C=B.id.name,b=0),B.id.type==="ObjectPattern"&&B.init.name!==C&&(C=B.init.name,b=0),B.id!==T&&(T=B.id,b=0))}}let R=A&&(A.parent.type==="ForInStatement"||A.parent.type==="ForOfStatement"||A.declarations.every(I=>I.init))&&x.length===w.length;if(!k&&A.declarations&&A.declarations.length!==1&&A&&A.declarations&&A.declarations.length>=1){b+=x.length;let I=0;A.declarations.forEach(B=>{B.id.type==="ObjectPattern"?I+=B.id.properties.length:B.id.type==="ArrayPattern"?I+=B.id.elements.length:I+=1}),R=R&&b===I}x.forEach(I=>{s.report({node:I,messageId:"useConst",data:I,fix:R?B=>{const F=v.getFirstToken(A,O=>O.value===A.kind);return new a(B,v).retainRange(A.range).replaceTextRange(F.range,"const")}:null})})}}return{"Program:exit"(){c(E,h).forEach(S)},VariableDeclaration(w){w.kind==="let"&&!l(w)&&E.push(...v.getDeclaredVariables(w))}}}},ef}var tf,UE;function nP(){if(UE)return tf;UE=1;const a=Le(),e=a.getPrecedence({type:"AssignmentExpression"});return tf={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(n){const o=n.options[0],t=n.options[1]&&n.options[1].enforceForRenamedProperties;let l={VariableDeclarator:{array:!0,object:!0},AssignmentExpression:{array:!0,object:!0}};o&&(l=typeof o.array<"u"||typeof o.object<"u"?{VariableDeclarator:o,AssignmentExpression:o}:o);function f(p,h){return l&&l[p]&&l[p][h]}function u(p){return Number.isInteger(p.property.value)}function r(p,h,g){n.report({node:p,messageId:"preferDestructuring",data:{type:h},fix:g})}function m(p){return p.type==="VariableDeclarator"&&p.id.type==="Identifier"&&p.init.type==="MemberExpression"&&!p.init.computed&&p.init.property.type==="Identifier"&&p.id.name===p.init.property.name}function i(p,h){const g=h.init,v=n.sourceCode;if(v.getCommentsInside(h).length>v.getCommentsInside(g.object).length)return null;let E=v.getText(g.object);return a.getPrecedence(g.object)<e&&(E=`(${E})`),p.replaceText(h,`{${g.property.name}} = ${E}`)}function c(p,h,g){if(h.type!=="MemberExpression"||h.object.type==="Super"||h.property.type==="PrivateIdentifier")return;if(u(h)){f(g.type,"array")&&r(g,"array",null);return}const v=m(g)?E=>i(E,g):null;if(f(g.type,"object")&&t){r(g,"object",v);return}if(f(g.type,"object")){const E=h.property;(E.type==="Literal"&&p.name===E.value||E.type==="Identifier"&&p.name===E.name&&!h.computed)&&r(g,"object",v)}}function d(p){p.init&&(p.parent.kind==="using"||p.parent.kind==="await using"||p.init.type==="MemberExpression"&&c(p.id,p.init,p))}function s(p){p.operator==="="&&c(p.left,p.right,p)}return{VariableDeclarator:d,AssignmentExpression:s}}},tf}var rf,qE;function sP(){if(qE)return rf;qE=1;const a=Le(),{CALL:e,ReferenceTracker:n}=qt(),o=a.getPrecedence({type:"BinaryExpression",operator:"**"});function t(r){return a.getPrecedence(r)<=o||r.type==="AwaitExpression"||r.type==="UnaryExpression"}function l(r){return a.getPrecedence(r)<o}function f(r,m){const i=r.parent.type==="ChainExpression"?r.parent.parent:r.parent,c=a.getPrecedence(i);return(i.type==="ClassDeclaration"||i.type.endsWith("Expression")&&(c===-1||c>=o)&&!(i.type==="BinaryExpression"&&i.operator==="**"&&i.right===r)&&!((i.type==="CallExpression"||i.type==="NewExpression")&&i.arguments.includes(r))&&!(i.type==="MemberExpression"&&i.computed&&i.property===r)&&i.type!=="ArrayExpression")&&!a.isParenthesised(m,r)}function u(r,m){return m?`(${r})`:r}return rf={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(r){const m=r.sourceCode;function i(c){r.report({node:c,messageId:"useExponentiation",fix(d){if(c.arguments.length!==2||c.arguments.some(A=>A.type==="SpreadElement")||m.getCommentsInside(c).length>0)return null;const s=c.arguments[0],p=c.arguments[1],h=m.getText(s),g=m.getText(p),v=t(s),E=l(p),b=f(c,m);let T="",C="";if(!b){if(!v){const A=m.getFirstToken(s),k=m.getTokenBefore(c);k&&k.range[1]===c.range[0]&&!a.canTokensBeAdjacent(k,A)&&(T=" ")}if(!E){const A=m.getLastToken(p),k=m.getTokenAfter(c);k&&c.range[1]===k.range[0]&&!a.canTokensBeAdjacent(A,k)&&(C=" ")}}const S=u(h,v),w=u(g,E),x=u(`${S}**${w}`,b);return d.replaceText(c,`${T}${x}${C}`)}})}return{Program(c){const d=m.getScope(c),s=new n(d),p={Math:{pow:{[e]:!0}}};for(const{node:h}of s.iterateGlobalReferences(p))i(h)}}}},rf}var nf,VE;function aP(){if(VE)return nf;VE=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStringIfConstant:o}=qt(),t=ur(),l=new t.RegExpParser;function f(u,r,m,i){switch(i.type){case"Literal":if(typeof i.value=="string"&&m.includes("\\"))return null;break;case"TemplateLiteral":if(i.expressions.length||m.slice(1,-1)!==r)return null;break;default:return null}const c=i.range[0]+u+2;return[{fix(d){const p=(r.match(/temp\d+/gu)||[]).reduce((h,g)=>Math.max(h,Number(g.slice(4))),0);return d.insertTextBeforeRange([c,c],`?<temp${p+1}>`)},messageId:"addGroupName"},{fix(d){return d.insertTextBeforeRange([c,c],"?:")},messageId:"addNonCapture"}]}return nf={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(u){const r=u.sourceCode;function m(i,c,d,s){let p;try{p=l.parsePattern(i,0,i.length,{unicode:!!(s&&s.includes("u")),unicodeSets:!!(s&&s.includes("v"))})}catch{return}t.visitRegExpAST(p,{onCapturingGroupEnter(h){if(!h.name){const g=r.getText(d),v=f(h.start,i,g,d);u.report({node:c,messageId:"required",data:{group:h.raw},suggest:v})}}})}return{Literal(i){i.regex&&m(i.regex.pattern,i,i,i.regex.flags)},Program(i){const c=r.getScope(i),d=new n(c),s={RegExp:{[a]:!0,[e]:!0}};for(const{node:p}of d.iterateGlobalReferences(s)){const h=o(p.arguments[0]),g=o(p.arguments[1]);h&&m(h,p,p.arguments[0],g)}}}}},nf}var sf,$E;function iP(){if($E)return sf;$E=1;const a=Le(),e=new Map([[2,{system:"binary",literalPrefix:"0b"}],[8,{system:"octal",literalPrefix:"0o"}],[16,{system:"hexadecimal",literalPrefix:"0x"}]]);function n(o){return a.isSpecificId(o,"parseInt")||a.isSpecificMemberAccess(o,"Number","parseInt")}return sf={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(o){const t=o.sourceCode;return{"CallExpression[arguments.length=2]"(l){const[f,u]=l.arguments,r=a.getStaticStringValue(f),m=u.value;if(r!==null&&a.isStringLiteral(f)&&u.type==="Literal"&&typeof m=="number"&&e.has(m)&&n(l.callee)){const{system:i,literalPrefix:c}=e.get(m);o.report({node:l,messageId:"useLiteral",data:{system:i,functionName:t.getText(l.callee)},fix(d){if(t.getCommentsInside(l).length)return null;const s=`${c}${r}`;if(+s!==parseInt(r,m))return null;const p=t.getTokenBefore(l),h=t.getTokenAfter(l);let g="",v="";return p&&p.range[1]===l.range[0]&&!a.canTokensBeAdjacent(p,s)&&(g=" "),h&&l.range[1]===h.range[0]&&!a.canTokensBeAdjacent(s,h)&&(v=" "),d.replaceText(l,`${g}${s}${v}`)}})}}}}},sf}var af,GE;function oP(){if(GE)return af;GE=1;const a=Le();function e(n){if(n.object.type==="ObjectExpression"&&n.object.properties.length===0)return!0;const o=n.object.type==="MemberExpression"&&a.getStaticPropertyName(n.object)==="prototype"?n.object.object:n.object;return o.type==="Identifier"&&o.name==="Object"}return af={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(n){const o=n.sourceCode;return{CallExpression(t){if(!(t.callee.type==="MemberExpression"&&t.callee.object.type==="MemberExpression"))return;const l=a.getStaticPropertyName(t.callee),f=a.getStaticPropertyName(t.callee.object),u=e(t.callee.object),r=o.getScope(t),m=a.getVariableByName(r,"Object");l==="call"&&f==="hasOwnProperty"&&u&&m&&m.scope.type==="global"&&n.report({node:t,messageId:"useHasOwn",fix(i){if(o.getCommentsInside(t.callee).length>0)return null;const c=o.getTokenBefore(t.callee,{includeComments:!0});return c&&c.range[1]===t.callee.range[0]&&!a.canTokensBeAdjacent(c,"Object.hasOwn")?i.replaceText(t.callee," Object.hasOwn"):i.replaceText(t.callee,"Object.hasOwn")}})}}}},af}var of,WE;function lP(){if(WE)return of;WE=1;const{CALL:a,ReferenceTracker:e}=qt(),{isCommaToken:n,isOpeningParenToken:o,isClosingParenToken:t,isParenthesised:l}=Le(),f=/\s/u;function u(v){return v.arguments.some(E=>E.type==="SpreadElement")}function r(v){return v.type==="Property"&&(v.kind==="get"||v.kind==="set")}function m(v){return v.properties.some(r)}function i(v){return v.arguments.filter(E=>E.type==="ObjectExpression").some(m)}function c(v,E){const b=v.parent;switch(b.type){case"VariableDeclarator":case"ArrayExpression":case"ReturnStatement":case"CallExpression":case"Property":return!1;case"AssignmentExpression":return b.left===v&&!l(E,v);default:return!l(E,v)}}function d(v,E){switch(v.type){case"AssignmentExpression":case"ArrowFunctionExpression":case"ConditionalExpression":return!l(E,v);default:return!1}}function s(v,E,b){const T=[b.getFirstToken(v),b.getLastToken(v)];let C=b.getTokenBefore(v),S=b.getTokenAfter(v);for(;C&&S&&C.range[0]>E.range[0]&&o(C)&&t(S);)T.push(C,S),C=b.getTokenBefore(C),S=b.getTokenAfter(S);return T.sort((w,x)=>w.range[0]-x.range[0])}function p(v,E){const b=E.text;let T=v.range[0];{const C=E.getTokenBefore(v,{includeComments:!0});if(C&&C.type==="Line")return T}for(;f.test(b[T-1]||"");)T-=1;return T}function h(v,E){const b=E.text;let T=v.range[1];for(;f.test(b[T]||"");)T+=1;return T}function g(v,E){return function*(b){const T=E.getTokenAfter(v.callee,o),C=E.getLastToken(v);yield b.removeRange([v.range[0],T.range[0]]),c(v,E)?(yield b.replaceText(T,"({"),yield b.replaceText(C,"})")):(yield b.replaceText(T,"{"),yield b.replaceText(C,"}"));for(const S of v.arguments){const w=s(S,T,E),x=w.shift(),A=w.pop();if(S.type==="ObjectExpression"){const k=E.getLastToken(S,1),R=E.getTokenAfter(A);for(const F of w)yield b.remove(F);const I=[x.range[0],h(x,E)],B=[Math.max(p(A,E),I[1]),A.range[1]];yield b.removeRange(I),yield b.removeRange(B),(S.properties.length===0||n(k))&&n(R)&&(yield b.remove(R))}else d(S,E)?(yield b.insertTextBefore(x,"...("),yield b.insertTextAfter(A,")")):yield b.insertTextBefore(x,"...")}}}return of={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(v){const E=v.sourceCode;return{Program(b){const T=E.getScope(b),C=new e(T),S={Object:{assign:{[a]:!0}}};for(const{node:w}of C.iterateGlobalReferences(S))if(w.arguments.length>=1&&w.arguments[0].type==="ObjectExpression"&&!u(w)&&!(w.arguments.length>1&&i(w))){const x=w.arguments.length===1?"useLiteralMessage":"useSpreadMessage",A=g(w,E);v.report({node:w,messageId:x,fix:A})}}}}},of}var lf,zE;function uP(){if(zE)return lf;zE=1;const a=Le();return lf={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(e){const[{allowEmptyReject:n}]=e.options,o=e.sourceCode;function t(f){!f.arguments.length&&n||(!f.arguments.length||!a.couldBeError(f.arguments[0])||f.arguments[0].type==="Identifier"&&f.arguments[0].name==="undefined")&&e.report({node:f,messageId:"rejectAnError"})}function l(f){return a.isSpecificMemberAccess(f.callee,"Promise","reject")}return{CallExpression(f){l(f)&&t(f)},"NewExpression:exit"(f){f.callee.type==="Identifier"&&f.callee.name==="Promise"&&f.arguments.length&&a.isFunction(f.arguments[0])&&f.arguments[0].params.length>1&&f.arguments[0].params[1].type==="Identifier"&&o.getDeclaredVariables(f.arguments[0]).find(u=>u.name===f.arguments[0].params[1].name).references.filter(u=>u.isRead()).filter(u=>u.identifier.parent.type==="CallExpression"&&u.identifier===u.identifier.parent.callee).forEach(u=>t(u.identifier.parent))}}}},lf}var uf,HE;function cP(){return HE||(HE=1,uf={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(a){const 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"},n={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"},o=(a.options[0]||{}).exceptions||[];function t(l,f,u){a.report({node:l,messageId:"preferReflect",data:{existing:f,substitute:u}})}return{CallExpression(l){const f=(l.callee.property||{}).name,u=(l.callee.object||{}).name==="Reflect",r=Object.hasOwn(n,f),m=o.includes(f);r&&!u&&!m&&t(l,e[f],n[f])},UnaryExpression(l){const f=l.operator==="delete",u=l.argument.type==="Identifier",r=o.includes("delete");f&&!u&&!r&&t(l,"the delete keyword","Reflect.deleteProperty")}}}}),uf}var cf,KE;function fP(){if(KE)return cf;KE=1;const a=Le(),{CALL:e,CONSTRUCT:n,ReferenceTracker:o}=qt(),{RegExpValidator:t,visitRegExpAST:l,RegExpParser:f}=ur(),{canTokensBeAdjacent:u}=Le(),{REGEXPP_LATEST_ECMA_VERSION:r}=ru();function m(d){return d.type==="Literal"&&typeof d.value=="string"}function i(d){return d.type==="Literal"&&Object.hasOwn(d,"regex")}const c=new Set(["(",";","[",",","=","+","*","-","?","~","%","**","!","typeof","instanceof","&&","||","??","return","...","delete","void","in","<",">","<=",">=","==","===","!=","!==","<<",">>",">>>","&","|","^",":","{","=>","*=","<<=",">>=",">>>=","^=","|=","&=","??=","||=","&&=","**=","+=","-=","/=","%=","/","do","break","continue","debugger","case","throw"]);return cf={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(d){const[{disallowRedundantWrapping:s}]=d.options,p=d.sourceCode;function h(I){return I.type==="TaggedTemplateExpression"&&a.isSpecificMemberAccess(I.tag,"String","raw")&&p.isGlobalReference(a.skipChainExpression(I.tag).object)&&a.isStaticTemplateLiteral(I.quasi)}function g(I){return m(I)?I.value:a.isStaticTemplateLiteral(I)?I.quasis[0].value.cooked:h(I)?I.quasi.quasis[0].value.raw:null}function v(I){return m(I)||a.isStaticTemplateLiteral(I)||h(I)}function E(I){const B=I.arguments;return!!((B.length===1||B.length===2)&&B.every(v))}function b(I){const B=I.arguments;return!!(B.length===1&&i(B[0])||B.length===2&&i(B[0])&&v(B[1]))}function T(I){return I<=5?5:Math.min(I,r)}const C=T(d.languageOptions.ecmaVersion);function S(I){switch(I){case`
|
|
111
|
+
`:case`\\
|
|
112
|
+
`: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 w(I,B){const F=new t({ecmaVersion:C});try{return F.validatePattern(I,0,I.length,{unicode:B?B.includes("u"):!1,unicodeSets:B?B.includes("v"):!1}),B&&F.validateFlags(B),!0}catch{return!1}}function x(I,B){return[...I].sort().join("")===[...B].sort().join("")}function A(I,B){return[...new Set([...I,...B])].join("")}function k(I,B,F){const O=p.getTokenBefore(I);return p.getCommentsInside(I).length===0&&(!O||c.has(O.value))&&w(B,F)}function R(I,B){const F=p.getTokenBefore(I),O=p.getTokenAfter(I);return(F&&!u(F,B)&&F.range[1]===I.range[0]?" ":"")+B+(O&&!u(B,O)&&I.range[1]===O.range[0]?" ":"")}return{Program(I){const B=p.getScope(I),F=new o(B),O={RegExp:{[e]:!0,[n]:!0}};for(const{node:$}of F.iterateGlobalReferences(O))if(s&&b($)){const N=$.arguments[0];if($.arguments.length===2){const _=[],X=g($.arguments[1])||"";k($,N.regex.pattern,X)&&_.push({messageId:"replaceWithLiteralAndFlags",pattern:N.regex.pattern,flags:X});const L=N.regex.flags||"",K=A(L,X);!x(K,X)&&k($,N.regex.pattern,K)&&_.push({messageId:"replaceWithIntendedLiteralAndFlags",pattern:N.regex.pattern,flags:K}),d.report({node:$,messageId:"unexpectedRedundantRegExpWithFlags",suggest:_.map(({flags:J,pattern:ge,messageId:ae})=>({messageId:ae,data:{flags:J},fix(ke){return ke.replaceText($,R($,`/${ge}/${J}`))}}))})}else{const _=[];k($,N.regex.pattern,N.regex.flags)&&_.push(p.getText(N)),d.report({node:$,messageId:"unexpectedRedundantRegExp",suggest:_.map(X=>({messageId:"replaceWithLiteral",fix(L){return L.replaceText($,R($,X))}}))})}}else if(E($)){let N=g($.arguments[0]),_=!1,X;if($.arguments[1]&&(X=g($.arguments[1])),k($,N,X)||(_=!0),/^[-\w\\[\](){} \t\r\n\v\f!@#$%^&*+=/~`.><?,'"|:;]*$/u.test(N)||(_=!0),N&&!_){let K=0;const J=new f({ecmaVersion:C}).parsePattern(N,0,N.length,{unicode:X?X.includes("u"):!1,unicodeSets:X?X.includes("v"):!1});l(J,{onCharacterEnter(ge){const ae=S(ge.raw);ae&&(N=N.slice(0,ge.start+K)+ae+N.slice(ge.end+K),ge.raw.length===1&&(K+=1))}})}const L=`/${N||"(?:)"}/${X||""}`;d.report({node:$,messageId:"unexpectedRegExp",suggest:_?[]:[{messageId:"replaceWithLiteral",fix(K){return K.replaceText($,R($,L))}}]})}}}}},cf}var ff,XE;function pP(){if(XE)return ff;XE=1;function a(n){const o=n.variables;for(let t=0;t<o.length;++t){const l=o[t];if(l.name==="arguments")return l.identifiers.length===0?l:null}return null}function e(n){const o=n.identifier,t=o.parent;return!(t.type==="MemberExpression"&&t.object===o&&!t.computed)}return ff={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(n){const o=n.sourceCode;function t(f){n.report({node:f.identifier,loc:f.identifier.loc,messageId:"preferRestParams"})}function l(f){const u=a(o.getScope(f));u&&u.references.filter(e).forEach(t)}return{"FunctionDeclaration:exit":l,"FunctionExpression:exit":l}}},ff}var pf,JE;function mP(){if(JE)return pf;JE=1;const a=Le();function e(o){return a.isSpecificMemberAccess(o.callee,null,"apply")&&o.arguments.length===2&&o.arguments[1].type!=="ArrayExpression"&&o.arguments[1].type!=="SpreadElement"}function n(o,t,l){return o?a.equalTokens(o,t,l):a.isNullOrUndefined(t)}return pf={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(o){const t=o.sourceCode;return{CallExpression(l){if(!e(l))return;const f=a.skipChainExpression(a.skipChainExpression(l.callee).object),u=f.type==="MemberExpression"?f.object:null,r=l.arguments[0];n(u,r,t)&&o.report({node:l,messageId:"preferSpread"})}}}},pf}var mf,YE;function dP(){if(YE)return mf;YE=1;const a=Le();function e(r){return r.type==="BinaryExpression"&&r.operator==="+"}function n(r){let m=r;for(;e(m.parent);)m=m.parent;return m}function o(r){return e(r)?o(r.left)||o(r.right):r.type==="Literal"&&typeof r.value=="string"?a.hasOctalOrNonOctalDecimalEscapeSequence(r.raw):!1}function t(r){return e(r)?t(r.right)||t(r.left):a.isStringLiteral(r)}function l(r){return e(r)?l(r.right)||l(r.left):!a.isStringLiteral(r)}function f(r){return r.type==="BinaryExpression"?f(r.left):r.type==="TemplateLiteral"?r.expressions.length&&r.quasis.length&&r.quasis[0].range[0]===r.quasis[0].range[1]:r.type!=="Literal"||typeof r.value!="string"}function u(r){return r.type==="BinaryExpression"?f(r.right):r.type==="TemplateLiteral"?r.expressions.length&&r.quasis.length&&r.quasis.at(-1).range[0]===r.quasis.at(-1).range[1]:r.type!=="Literal"||typeof r.value!="string"}return mf={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(r){const m=r.sourceCode;let i=Object.create(null);function c(h,g){const v=[h].concat(m.getTokensBetween(h,g)).concat(g),E=m.getText();return v.slice(0,-1).reduce((b,T,C)=>b+E.slice(T.range[1],v[C+1].range[0]),"")}function d(h,g,v){if(h.type==="Literal"&&typeof h.value=="string")return`\`${h.raw.slice(1,-1).replace(/\\*(\$\{|`)/gu,E=>E.lastIndexOf("\\")%2?`\\${E}`:E).replace(new RegExp(`\\\\${h.raw[0]}`,"gu"),h.raw[0])}\``;if(h.type==="TemplateLiteral")return m.getText(h);if(e(h)&&t(h)){const E=m.getFirstTokenBetween(h.left,h.right,w=>w.value==="+"),b=c(h.left,E),T=c(E,h.right),C=u(h.left),S=f(h.right);return C?d(h.left,g,b+T).slice(0,-1)+d(h.right,null,v).slice(1):S?d(h.left,g,null).slice(0,-1)+d(h.right,b+T,v).slice(1):`${d(h.left,g,null)}${b}+${T}${d(h.right,v,null)}`}return`\`\${${g||""}${m.getText(h)}${v||""}}\``}function s(h,g){const v=n(g.parent);return o(v)?null:h.replaceText(v,d(v,null,null))}function p(h){if(!a.isStringLiteral(h)||!e(h.parent))return;const g=n(h.parent);i[g.range[0]]||(i[g.range[0]]=!0,l(g)&&r.report({node:g,messageId:"unexpectedStringConcatenation",fix:v=>s(v,h)}))}return{Program(){i=Object.create(null)},Literal:p,TemplateLiteral:p}}},mf}var df,QE;function hP(){if(QE)return df;QE=1;const a=Le(),e=Symbol("unknown_cause"),n=new Set(["Error","EvalError","RangeError","ReferenceError","SyntaxError","TypeError","URIError","AggregateError"]);function o(l){const f=l.argument,u=f.callee.name==="AggregateError"?2:1,r=f.arguments.findIndex(i=>i.type==="SpreadElement");if(r>=0&&r<=u)return e;const m=f.arguments[u];if(m){if(m.type==="ObjectExpression"){if(m.properties.some(d=>d.type==="SpreadElement"))return e;const i=m.properties.filter(d=>a.getStaticPropertyName(d)==="cause"),c=i.at(-1);return c?{value:c.value,multipleDefinitions:i.length>1}:null}return e}return null}function t(l){let f=l;for(;f&&f.type!=="CatchClause";){if(["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression","StaticBlock"].includes(f.type))return null;f=f.parent}return f}return df={meta:{type:"suggestion",defaultOptions:[{requireCatchParameter:!1}],docs:{description:"Disallow losing originally caught error when re-throwing custom errors",recommended:!1,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."}},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(l){const f=l.sourceCode,[{requireCatchParameter:u}]=l.options;function r(i){return(i.argument.type==="NewExpression"||i.argument.type==="CallExpression")&&i.argument.callee.type==="Identifier"&&n.has(i.argument.callee.name)&&f.isGlobalReference(i.argument.callee)}function m(i,c,d){const s=c.properties;if(s.length===0)return i.insertTextAfter(f.getFirstToken(c),`cause: ${d}`);const p=s.at(-1);return i.insertTextAfter(p,`, cause: ${d}`)}return{ThrowStatement(i){const c=t(i),d=i;if(c&&r(d)){if(c.param&&c.param.type!=="Identifier"){l.report({messageId:"partiallyLostError",node:c});return}const s=c.param?.type==="Identifier"?c.param:null;if(!s){if(u){l.report({node:d,messageId:"missingCatchErrorParam"});return}return}const p=o(d);if(p===e)return;if(p===null){l.report({messageId:"missingCause",node:d,suggest:[{messageId:"includeCause",fix(v){const E=d.argument,b=E.arguments;if(E.callee.name==="AggregateError"){const w=b[0],x=b[1],A=b[2];if(!w){const k=f.getLastToken(E),R=f.getLastToken(E.callee),I=f.getFirstTokenBetween(R,k,a.isOpeningParenToken);return I?v.insertTextAfter(I,`[], "", { cause: ${s.name} }`):v.insertTextAfter(E.callee,`([], "", { cause: ${s.name} })`)}return x?A?A.type==="ObjectExpression"?m(v,A,s.name):null:v.insertTextAfter(x,`, { cause: ${s.name} }`):v.insertTextAfter(w,`, "", { cause: ${s.name} }`)}const C=b[0],S=b[1];if(!C){const w=f.getLastToken(E),x=f.getLastToken(E.callee),A=f.getFirstTokenBetween(x,w,a.isOpeningParenToken);return A?v.insertTextAfter(A,`"", { cause: ${s.name} }`):v.insertTextAfter(E.callee,`("", { cause: ${s.name} })`)}return S?S.type==="ObjectExpression"?m(v,S,s.name):null:v.insertTextAfter(C,`, { cause: ${s.name} }`)}}]});return}const{value:h}=p;if(!(h.type==="Identifier"&&h.name===s.name)){const v=p.multipleDefinitions?null:[{messageId:"includeCause",fix(E){return h.parent.method||h.parent.shorthand||h.parent.kind!=="init"?E.replaceText(h.parent,`cause: ${s.name}`):E.replaceText(h,s.name)}}];l.report({messageId:"incorrectCause",node:h,suggest:v});return}let g=f.getScope(d);do{if(g.set.get(s.name))break;g=g.upper}while(g);g?.block!==c&&l.report({messageId:"caughtErrorShadowed",node:d})}}}}},df}var hf,ZE;function gP(){if(ZE)return hf;ZE=1;const a=dn(),e=Le(),n=qi();return hf={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(o){const t=o.options[0],l=o.options[1]&&o.options[1].keywords,f=!o.options[1]||o.options[1].unnecessary!==!1,u=o.options[1]&&o.options[1].numbers,r=o.sourceCode;function m(g){return n.includes(g)}function i(g,v,E){return v.length===1&&v[0].start===0&&v[0].end===g.length&&(["Identifier","Keyword","Null","Boolean"].includes(v[0].type)||v[0].type==="Numeric"&&!E&&String(+v[0].value)===v[0].value)}function c(g){return g.type==="Identifier"?g.name:g.value}function d(g){return g.type==="Literal"&&typeof g.value=="string"?r.getText(g):`"${g.type==="Identifier"?g.name:g.value}"`}function s(g){const v=g.key;if(!(g.method||g.computed||g.shorthand))if(v.type==="Literal"&&typeof v.value=="string"){let E;try{E=a.tokenize(v.value)}catch{return}if(E.length!==1||m(E[0].value)&&l)return;f&&i(v.value,E,u)&&o.report({node:g,messageId:"unnecessarilyQuotedProperty",data:{property:v.value},fix:T=>T.replaceText(v,c(v))})}else l&&v.type==="Identifier"&&m(v.name)?o.report({node:g,messageId:"unquotedReservedProperty",data:{property:v.name},fix:E=>E.replaceText(v,d(v))}):u&&v.type==="Literal"&&e.isNumericLiteral(v)&&o.report({node:g,messageId:"unquotedNumericProperty",data:{property:v.value},fix:E=>E.replaceText(v,d(v))})}function p(g){const v=g.key;!g.method&&!g.computed&&!g.shorthand&&!(v.type==="Literal"&&typeof v.value=="string")&&o.report({node:g,messageId:"unquotedPropertyFound",data:{property:v.name||v.value},fix:E=>E.replaceText(v,d(v))})}function h(g,v){const E=[],b=[];let T=null,C=!1;g.properties.forEach(S=>{const w=S.key;if(!(!w||S.method||S.computed||S.shorthand))if(w.type==="Literal"&&typeof w.value=="string"){if(E.push(S),v){let x;try{x=a.tokenize(w.value)}catch{C=!0;return}C=C||!i(w.value,x)||l&&m(x[0].value)}}else l&&v&&w.type==="Identifier"&&m(w.name)?(b.push(S),C=!0,T=w.name):b.push(S)}),v&&E.length&&!C?E.forEach(S=>{o.report({node:S,messageId:"redundantQuoting",fix:w=>w.replaceText(S.key,c(S.key))})}):b.length&&T?b.forEach(S=>{o.report({node:S,messageId:"requireQuotesDueToReservedWord",data:{property:T},fix:w=>w.replaceText(S.key,d(S.key))})}):E.length&&b.length&&b.forEach(S=>{o.report({node:S,messageId:"inconsistentlyQuotedProperty",data:{key:S.key.name||S.key.value},fix:w=>w.replaceText(S.key,d(S.key))})})}return{Property(g){(t==="always"||!t)&&p(g),t==="as-needed"&&s(g)},ObjectExpression(g){t==="consistent"&&h(g,!1),t==="consistent-as-needed"&&h(g,!0)}}}},hf}var gf,eb;function yP(){if(eb)return gf;eb=1;const a=Le(),e={double:{quote:'"',alternateQuote:"'",description:"doublequote"},single:{quote:"'",alternateQuote:'"',description:"singlequote"},backtick:{quote:"`",alternateQuote:'"',description:"backtick"}},n=new RegExp(String.raw`(^|[^\\])(\\\\)*[${Array.from(a.LINEBREAKS).join("")}]`,"u");e.double.convert=e.single.convert=e.backtick.convert=function(t){const l=this.quote,f=t[0];return l===f?t:l+t.slice(1,-1).replace(/\\(\$\{|\r\n?|\n|.)|["'`]|\$\{|(\r\n?|\n)/gu,(u,r,m)=>r===f||f==="`"&&r==="${"?r:u===l||l==="`"&&u==="${"?`\\${u}`:m&&f==="`"?"\\n":u)+l};const o="avoid-escape";return gf={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){const l=t.options[0],f=e[l||"double"],u=t.options[1],r=u&&u.allowTemplateLiterals===!0,m=t.sourceCode;let i=u&&u.avoidEscape===!0;u===o&&(i=!0);function c(g){return g.parent.type==="JSXAttribute"||g.parent.type==="JSXElement"||g.parent.type==="JSXFragment"}function d(g){return g.type==="ExpressionStatement"&&g.expression.type==="Literal"&&typeof g.expression.value=="string"&&!a.isParenthesised(m,g.expression)}function s(g){if(!a.isTopLevelExpressionStatement(g.parent))return!1;const v=g.parent.parent;for(let E=0;E<v.body.length;++E){const b=v.body[E];if(b===g.parent)return!0;if(!d(b))break}return!1}function p(g){const v=g.parent;switch(v.type){case"ExpressionStatement":return!a.isParenthesised(m,g)&&s(g);case"Property":case"PropertyDefinition":case"MethodDefinition":return v.key===g&&!v.computed;case"ImportDeclaration":case"ExportNamedDeclaration":return v.source===g;case"ExportAllDeclaration":return v.exported===g||v.source===g;case"ImportSpecifier":return v.imported===g;case"ExportSpecifier":return v.local===g||v.exported===g;default:return!1}}function h(g){return!!(g.parent.type==="TaggedTemplateExpression"&&g===g.parent.quasi||g.expressions.length>0||g.quasis.length>=1&&n.test(g.quasis[0].value.raw))}return{Literal(g){const v=g.value,E=g.raw;if(f&&typeof v=="string"){let b=l==="backtick"&&p(g)||c(g)||a.isSurroundedBy(E,f.quote);!b&&i&&(b=a.isSurroundedBy(E,f.alternateQuote)&&E.includes(f.quote)),b||t.report({node:g,messageId:"wrongQuotes",data:{description:f.description},fix(T){return l==="backtick"&&a.hasOctalOrNonOctalDecimalEscapeSequence(E)?null:T.replaceText(g,f.convert(g.raw))}})}},TemplateLiteral(g){r||l==="backtick"||h(g)||t.report({node:g,messageId:"wrongQuotes",data:{description:f.description},fix(v){return a.isTopLevelExpressionStatement(g.parent)&&!a.isParenthesised(m,g)?null:v.replaceText(g,f.convert(m.getText(g)))}})}}}},gf}var yf,tb;function vP(){if(tb)return yf;tb=1;const a=Le(),e="always",n="as-needed",o=new Set(Array.from({length:35},(r,m)=>m+2));function t(r){return r.defs.length>=1}function l(r){return r.type==="MemberExpression"&&!r.computed&&r.property.type==="Identifier"&&r.property.name==="parseInt"}function f(r){return!(r.type==="Literal"&&!o.has(r.value)||r.type==="Identifier"&&r.name==="undefined")}function u(r){return r.type==="Literal"&&r.value===10}return yf={meta:{type:"suggestion",defaultOptions:[e],docs:{description:"Enforce the consistent 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.",redundantRadix:"Redundant radix parameter.",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(r){const[m]=r.options,i=r.sourceCode;function c(d){const s=d.arguments;switch(s.length){case 0:r.report({node:d,messageId:"missingParameters"});break;case 1:m===e&&r.report({node:d,messageId:"missingRadix",suggest:[{messageId:"addRadixParameter10",fix(p){const h=i.getTokens(d),g=h.at(-1),v=h.at(-2),E=v.type==="Punctuator"&&v.value===",";return p.insertTextBefore(g,E?" 10,":", 10")}}]});break;default:m===n&&u(s[1])?r.report({node:d,messageId:"redundantRadix"}):f(s[1])||r.report({node:d,messageId:"invalidRadix"});break}}return{"Program:exit"(d){const s=i.getScope(d);let p;p=a.getVariableByName(s,"parseInt"),p&&!t(p)&&p.references.forEach(h=>{const g=h.identifier;a.isCallee(g)&&c(g.parent)}),p=a.getVariableByName(s,"Number"),p&&!t(p)&&p.references.forEach(h=>{const g=h.identifier.parent,v=g.parent.type==="ChainExpression"?g.parent:g;l(g)&&a.isCallee(v)&&c(v.parent)})}}}},yf}var vf,rb;function SP(){if(rb)return vf;rb=1;function a(t,l=new Map){for(const f of t.references)f.resolved!==null&&l.set(f.identifier,f);for(const f of t.childScopes)f.type!=="function"&&a(f,l);return l}function e(t){if(t.writeExpr)return t.writeExpr;let l=t.identifier;for(;l;){const f=l.parent.type;if(f==="AssignmentExpression"&&l.parent.left===l)return l.parent.right;if(f==="MemberExpression"&&l.parent.object===l){l=l.parent;continue}break}return null}function n(t,l){if(!t||l&&t.defs.some(u=>u.type==="Parameter"))return!1;const f=t.scope.variableScope;return t.references.every(u=>u.from.variableScope===f)}class o{constructor(){this.info=new WeakMap}initialize(l){const f=new Set,u=new Set;for(const r of l.prevSegments){const m=this.info.get(r);m&&(m.outdatedReadVariables.forEach(Set.prototype.add,f),m.freshReadVariables.forEach(Set.prototype.add,u))}this.info.set(l,{outdatedReadVariables:f,freshReadVariables:u})}markAsRead(l,f){for(const u of l){const r=this.info.get(u);r&&(r.freshReadVariables.add(f),r.outdatedReadVariables.delete(f))}}makeOutdated(l){for(const f of l){const u=this.info.get(f);u&&(u.freshReadVariables.forEach(Set.prototype.add,u.outdatedReadVariables),u.freshReadVariables.clear())}}isOutdated(l,f){for(const u of l){const r=this.info.get(u);if(r&&r.outdatedReadVariables.has(f))return!0}return!1}}return vf={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){const[{allowProperties:l}]=t.options,f=t.sourceCode,u=new Map,r=new o;let m=null;return{onCodePathStart(i,c){const d=f.getScope(c),s=d.type==="function"&&(d.block.async||d.block.generator);m={upper:m,codePath:i,referenceMap:s?a(d):null,currentSegments:new Set}},onCodePathEnd(){m=m.upper},onCodePathSegmentStart(i){r.initialize(i),m.currentSegments.add(i)},onUnreachableCodePathSegmentStart(i){m.currentSegments.add(i)},onUnreachableCodePathSegmentEnd(i){m.currentSegments.delete(i)},onCodePathSegmentEnd(i){m.currentSegments.delete(i)},Identifier(i){const{referenceMap:c}=m,d=c&&c.get(i);if(!d)return;const s=d.resolved,p=e(d),h=d.identifier.parent.type==="MemberExpression";if(d.isRead()&&!(p&&p.parent.operator==="=")&&r.markAsRead(m.currentSegments,s),p&&p.parent.right===p&&!n(s,h)){let g=u.get(p);g||(g=[],u.set(p,g)),g.push(d)}},":expression:exit"(i){if(!m.referenceMap)return;(i.type==="AwaitExpression"||i.type==="YieldExpression")&&r.makeOutdated(m.currentSegments);const c=u.get(i);if(c){u.delete(i);for(const d of c){const s=d.resolved;r.isOutdated(m.currentSegments,s)&&(i.parent.left===d.identifier?t.report({node:i.parent,messageId:"nonAtomicUpdate",data:{value:s.name}}):l||t.report({node:i.parent,messageId:"nonAtomicObjectUpdate",data:{value:f.getText(i.parent.left),object:s.name}}))}}}}}},vf}var Sf,nb;function EP(){if(nb)return Sf;nb=1;const a=Le();function e(n){return n[0].toUpperCase()+n.slice(1)}return Sf={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(n){const o=n.sourceCode;let t=null;function l(){t={upper:t,hasAwait:!1}}function f(u){if(!u.generator&&u.async&&!t.hasAwait&&!a.isEmptyFunction(u)){const r=u.parent.type==="MethodDefinition"&&u.parent.value===u||u.parent.type==="Property"&&u.parent.method&&u.parent.value===u?u.parent:u,m=o.getFirstToken(r,s=>s.value==="async"),i=[m.range[0],o.getTokenAfter(m,{includeComments:!0}).range[0]],c=o.getTokenAfter(m),d=c.type==="Punctuator"&&(c.value==="["||c.value==="(")&&(r.type==="MethodDefinition"||a.isStartOfExpressionStatement(r))&&a.needsPrecedingSemicolon(o,r);n.report({node:u,loc:a.getFunctionHeadLoc(u,o),messageId:"missingAwait",data:{name:e(a.getFunctionNameWithKind(u))},suggest:[{messageId:"removeAsync",fix:s=>s.replaceTextRange(i,d?";":"")}]})}t=t.upper}return{FunctionDeclaration:l,FunctionExpression:l,ArrowFunctionExpression:l,"FunctionDeclaration:exit":f,"FunctionExpression:exit":f,"ArrowFunctionExpression:exit":f,AwaitExpression(){t&&(t.hasAwait=!0)},ForOfStatement(u){t&&u.await&&(t.hasAwait=!0)},VariableDeclaration(u){t&&u.kind==="await using"&&(t.hasAwait=!0)}}}},Sf}var Ef,sb;function bP(){if(sb)return Ef;sb=1;const{CALL:a,CONSTRUCT:e,ReferenceTracker:n,getStringIfConstant:o}=qt(),t=Le(),{isValidWithUnicodeFlag:l}=ru();function f(u,r){let m;return u==="v"?m=!r.includes("v"):u==="u"?m=!r.includes("u"):m=!r.includes("u")&&!r.includes("v"),m}return Ef={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(u){const r=u.sourceCode,[{requireFlag:m}]=u.options;return{"Literal[regex]"(i){const c=i.regex.flags||"";f(m,c)&&u.report({messageId:m==="v"?"requireVFlag":"requireUFlag",node:i,suggest:l(u.languageOptions.ecmaVersion,i.regex.pattern,m)?[{fix(s){const p=m??"u",h=r.getText(i),g=h.lastIndexOf("/");if(m){const v=m==="u"?"v":"u";if(h.includes(v,g))return s.replaceText(i,h.slice(0,g)+h.slice(g).replace(v,m))}return s.insertTextAfter(i,p)},messageId:m==="v"?"addVFlag":"addUFlag"}]:null})},Program(i){const c=r.getScope(i),d=new n(c),s={RegExp:{[a]:!0,[e]:!0}};for(const{node:p}of d.iterateGlobalReferences(s)){const[h,g]=p.arguments;if(h&&h.type==="SpreadElement")continue;const v=o(h,c),E=o(g,c);let b=!g;typeof E=="string"&&(b=f(m,E)),b&&u.report({messageId:m==="v"?"requireVFlag":"requireUFlag",node:p,suggest:typeof v=="string"&&l(u.languageOptions.ecmaVersion,v,m)?[{fix(T){const C=m??"u";if(g){if(g.type==="Literal"&&typeof g.value=="string"||g.type==="TemplateLiteral"){const w=r.getText(g),x=m==="u"?"v":"u";return E.includes(x)?g.type==="Literal"&&g.raw.includes("\\")||g.type==="TemplateLiteral"&&(g.expressions.length||g.quasis.some(({value:{raw:A}})=>A.includes("\\")))?null:T.replaceText(g,w.replace(x,C)):T.replaceText(g,[w.slice(0,w.length-1),w.slice(w.length-1)].join(C))}return null}const S=r.getLastToken(p,{skip:1});return T.insertTextAfter(S,t.isCommaToken(S)?` "${C}",`:`, "${C}"`)},messageId:m==="v"?"addVFlag":"addUFlag"}]:null})}}}}},Ef}var bf,ab;function CP(){return ab||(ab=1,bf={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(a){const e=[];function n(t){t.generator&&e.push(0)}function o(t){if(!t.generator)return;e.pop()===0&&t.body.body.length>0&&a.report({node:t,messageId:"missingYield"})}return{FunctionDeclaration:n,"FunctionDeclaration:exit":o,FunctionExpression:n,"FunctionExpression:exit":o,YieldExpression(){e.length>0&&(e[e.length-1]+=1)}}}}),bf}var Cf,ib;function xP(){return ib||(ib=1,Cf={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(a){const e=a.sourceCode,n=a.options[0]==="always";function o(t){const l=e.getFirstToken(t),f=e.getTokenAfter(l),u=e.isSpaceBetweenTokens(l,f);let r;switch(t.type){case"SpreadElement":r="spread",t.parent.type==="ObjectExpression"&&(r+=" property");break;case"RestElement":r="rest",t.parent.type==="ObjectPattern"&&(r+=" property");break;case"ExperimentalSpreadProperty":r="spread property";break;case"ExperimentalRestProperty":r="rest property";break;default:return}n&&!u?a.report({node:t,loc:l.loc,messageId:"expectedWhitespace",data:{type:r},fix(m){return m.replaceTextRange([l.range[1],f.range[0]]," ")}}):!n&&u&&a.report({node:t,loc:{start:l.loc.end,end:f.loc.start},messageId:"unexpectedWhitespace",data:{type:r},fix(m){return m.removeRange([l.range[1],f.range[0]])}})}return{SpreadElement:o,RestElement:o,ExperimentalSpreadProperty:o,ExperimentalRestProperty:o}}}),Cf}var xf,ob;function wP(){if(ob)return xf;ob=1;const a=nn(),e=Le();return xf={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(n){const o=/^[-[(/+`]/u,t=new Set(["get","set","static"]),l=new Set(["*","in","instanceof"]),f=n.options[1],u=n.options[0]==="never",r=!!(f&&f.omitLastInOneLineBlock),m=!!(f&&f.omitLastInOneLineClassBody),i=f&&f.beforeStatementContinuationChars||"any",c=n.sourceCode;function d(x,A){const k=c.getLastToken(x);let R,I,B;A?(R="extraSemi",B=k.loc,I=function(F){return new a(F,c).retainSurroundingTokens(k).remove(k)}):(R="missingSemi",B={start:k.loc.end,end:e.getNextLocation(c,k.loc.end)},I=function(F){return F.insertTextAfter(k,";")}),n.report({node:x,loc:B,messageId:R,fix:I})}function s(x){const A=c.getTokenAfter(x);return!A||e.isClosingBraceToken(A)||e.isSemicolonToken(A)}function p(x){if(!e.isClosingBraceToken(x))return!1;const A=c.getNodeByRangeIndex(x.range[0]);return A.type==="BlockStatement"&&A.parent.type==="ArrowFunctionExpression"}function h(x){if(x.type!=="PropertyDefinition")return!1;if(!x.computed&&x.key.type==="Identifier"&&t.has(x.key.name)&&!(x.static&&x.key.name==="static")&&!x.value)return!0;const k=c.getTokenAfter(x);return l.has(k.value)}function g(x){const A=c.getLastToken(x,1),k=c.getTokenAfter(x);return!!k&&e.isTokenOnSameLine(A,k)}function v(x){const A=x.type;return A==="DoWhileStatement"||A==="BreakStatement"||A==="ContinueStatement"||A==="DebuggerStatement"||A==="ImportDeclaration"||A==="ExportAllDeclaration"?!1:A==="ReturnStatement"?!!x.argument:A==="ExportNamedDeclaration"?!!x.declaration:!p(c.getLastToken(x,1))}function E(x){return!!x&&o.test(x.value)&&x.value!=="++"&&x.value!=="--"}function b(x){return s(c.getLastToken(x))?!0:h(x)||g(x)?!1:x.type!=="PropertyDefinition"&&i==="never"&&!v(x)||!E(c.getTokenAfter(x))}function T(x){const A=x.parent,k=c.getTokenAfter(x);return!k||k.value!=="}"?!1:A.type==="BlockStatement"?A.loc.start.line===A.loc.end.line:A.type==="StaticBlock"?c.getFirstToken(A,{skip:1}).loc.start.line===A.loc.end.line:!1}function C(x){const A=x.parent,k=c.getTokenAfter(x);return!k||k.value!=="}"?!1:A.type==="ClassBody"?A.loc.start.line===A.loc.end.line:!1}function S(x){const A=e.isSemicolonToken(c.getLastToken(x));if(u)A&&b(x)?d(x,!0):!A&&i==="always"&&x.type!=="PropertyDefinition"&&E(c.getTokenAfter(x))&&d(x);else{const k=r&&T(x),R=m&&C(x),I=k||R;A&&I?d(x,!0):!A&&!I&&d(x)}}function w(x){const A=x.parent;(A.type!=="ForStatement"||A.init!==x)&&(!/^For(?:In|Of)Statement/u.test(A.type)||A.left!==x)&&S(x)}return{VariableDeclaration:w,ExpressionStatement:S,ReturnStatement:S,ThrowStatement:S,DoWhileStatement:S,DebuggerStatement:S,BreakStatement:S,ContinueStatement:S,ImportDeclaration:S,ExportAllDeclaration:S,ExportNamedDeclaration(x){x.declaration||S(x)},ExportDefaultDeclaration(x){/(?:Class|Function)Declaration/u.test(x.declaration.type)||S(x)},PropertyDefinition:S}}},xf}var wf,lb;function AP(){if(lb)return wf;lb=1;const a=Le();return wf={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(e){const n=e.options[0],o=e.sourceCode;let t=!1,l=!0;typeof n=="object"&&(t=n.before,l=n.after);function f(s){const p=o.getTokenBefore(s);return p&&a.isTokenOnSameLine(p,s)&&o.isSpaceBetweenTokens(p,s)}function u(s){const p=o.getTokenAfter(s);return p&&a.isTokenOnSameLine(s,p)&&o.isSpaceBetweenTokens(s,p)}function r(s){const p=o.getTokenAfter(s);return!(p&&a.isTokenOnSameLine(s,p))}function m(s){const p=o.getTokenBefore(s);return!(p&&a.isTokenOnSameLine(s,p))}function i(s){const p=o.getTokenAfter(s);return p&&a.isClosingBraceToken(p)||a.isClosingParenToken(p)}function c(s,p){if(a.isSemicolonToken(s)){if(f(s)){if(!t){const h=o.getTokenBefore(s),g={start:h.loc.end,end:s.loc.start};e.report({node:p,loc:g,messageId:"unexpectedWhitespaceBefore",fix(v){return v.removeRange([h.range[1],s.range[0]])}})}}else if(t){const h=s.loc;e.report({node:p,loc:h,messageId:"missingWhitespaceBefore",fix(g){return g.insertTextBefore(s," ")}})}if(!m(s)&&!r(s)&&!i(s)){if(u(s)){if(!l){const h=o.getTokenAfter(s),g={start:s.loc.end,end:h.loc.start};e.report({node:p,loc:g,messageId:"unexpectedWhitespaceAfter",fix(v){return v.removeRange([s.range[1],h.range[0]])}})}}else if(l){const h=s.loc;e.report({node:p,loc:h,messageId:"missingWhitespaceAfter",fix(g){return g.insertTextAfter(s," ")}})}}}}function d(s){const p=o.getLastToken(s);c(p,s)}return{VariableDeclaration:d,ExpressionStatement:d,BreakStatement:d,ContinueStatement:d,DebuggerStatement:d,DoWhileStatement:d,ReturnStatement:d,ThrowStatement:d,ImportDeclaration:d,ExportNamedDeclaration:d,ExportAllDeclaration:d,ExportDefaultDeclaration:d,ForStatement(s){s.init&&c(o.getTokenAfter(s.init),s),s.test&&c(o.getTokenAfter(s.test),s)},PropertyDefinition:d}}},wf}var Af,ub;function TP(){if(ub)return Af;ub=1;const a=Le(),e=["BreakStatement","ContinueStatement","DebuggerStatement","DoWhileStatement","ExportAllDeclaration","ExportDefaultDeclaration","ExportNamedDeclaration","ExpressionStatement","ImportDeclaration","ReturnStatement","ThrowStatement","VariableDeclaration","PropertyDefinition"].join(",");function n(t){const l=t.type;return l==="BlockStatement"||l==="StaticBlock"||l==="Program"||l==="ClassBody"?t.body:l==="SwitchCase"?t.consequent:null}function o(t){const l=t.parent.type;if(l==="IfStatement"&&t.parent.consequent===t&&t.parent.alternate||l==="DoWhileStatement")return!0;const f=n(t.parent);return f!==null&&f.at(-1)===t}return Af={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){const l=t.sourceCode,f=t.options[0]||"last";function u(r,m){const i=l.getTokenBefore(r),c=l.getTokenAfter(r),d=!i||a.isTokenOnSameLine(i,r),s=!c||a.isTokenOnSameLine(r,c);(m==="last"&&!d||m==="first"&&!s)&&t.report({loc:r.loc,messageId:"expectedSemiColon",data:{pos:m==="last"?"the end of the previous line":"the beginning of the next line"},fix(p){if(i&&c&&l.commentsExistBetween(i,c))return null;const h=i?i.range[1]:r.range[0],g=c?c.range[0]:r.range[1],v=m==="last"?`;
|
|
113
|
+
`:`
|
|
114
|
+
;`;return p.replaceTextRange([h,g],v)}})}return{[e](r){if(f==="first"&&o(r))return;const m=l.getLastToken(r);a.isSemicolonToken(m)&&u(m,f)},ForStatement(r){const m=r.init&&l.getTokenAfter(r.init,a.isSemicolonToken),i=r.test&&l.getTokenAfter(r.test,a.isSemicolonToken);m&&u(m,"last"),i&&u(i,"last")}}}},Af}var Tf,cb;function kP(){return cb||(cb=1,Tf={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(a){const[{ignoreCase:e,ignoreDeclarationSort:n,ignoreMemberSort:o,memberSyntaxSortOrder:t,allowSeparatedGroups:l}]=a.options,f=a.sourceCode;let u=null;function r(d){return d.specifiers.length===0?"none":d.specifiers[0].type==="ImportNamespaceSpecifier"?"all":d.specifiers.length===1?"single":"multiple"}function m(d){return t.indexOf(r(d))}function i(d){return d.specifiers[0]?d.specifiers[0].local.name:null}function c(d,s){return Math.max(s.loc.start.line-d.loc.end.line-1,0)}return{ImportDeclaration(d){if(!n){if(u&&l&&c(u,d)>0&&(u=null),u){const s=m(d),p=m(u);let h=i(d),g=i(u);e&&(g=g&&g.toLowerCase(),h=h&&h.toLowerCase()),s!==p?s<p&&a.report({node:d,messageId:"unexpectedSyntaxOrder",data:{syntaxA:t[s],syntaxB:t[p]}}):g&&h&&h<g&&a.report({node:d,messageId:"sortImportsAlphabetically"})}u=d}if(!o){const s=d.specifiers.filter(g=>g.type==="ImportSpecifier"),p=e?g=>g.local.name.toLowerCase():g=>g.local.name,h=s.map(p).findIndex((g,v,E)=>E[v-1]>g);h!==-1&&a.report({node:s[h],messageId:"sortMembersAlphabetically",data:{memberName:s[h].local.name},fix(g){return s.some(v=>f.getCommentsBefore(v).length||f.getCommentsAfter(v).length)?null:g.replaceTextRange([s[0].range[0],s.at(-1).range[1]],s.slice().sort((v,E)=>{const b=p(v),T=p(E);return b>T?1:-1}).reduce((v,E,b)=>{const T=b===s.length-1?"":f.getText().slice(s[b].range[1],s[b+1].range[0]);return v+f.getText(E)+T},""))}})}}}}}),Tf}var kf={exports:{}},fb;function DP(){if(fb)return kf.exports;fb=1;var a=function(e,n){var o,t,l=1,f=0,u=0,r=String.alphabet;function m(i,c,d){if(d){for(o=c;d=m(i,o),d<76&&d>65;)++o;return+i.slice(c-1,o)}return d=r&&r.indexOf(i.charAt(c)),d>-1?d+76:(d=i.charCodeAt(c)||0,d<45||d>127?d:d<46?65:d<48?d-1:d<58?d+18:d<65?d-11:d<91?d+11:d<97?d-37:d<123?d+5:d-63)}if((e+="")!=(n+="")){for(;l;)if(t=m(e,f++),l=m(n,u++),t<76&&l<76&&t>66&&l>66&&(t=m(e,f,f),l=m(n,u,f=o),u=o),t!=l)return t<l?-1:1}return 0};try{kf.exports=a}catch{String.naturalCompare=a}return kf.exports}var Df,pb;function PP(){if(pb)return Df;pb=1;const a=Le(),e=DP();function n(t){const l=a.getStaticPropertyName(t);return l!==null?l:t.key.name||null}const o={asc(t,l){return t<=l},ascI(t,l){return t.toLowerCase()<=l.toLowerCase()},ascN(t,l){return e(t,l)<=0},ascIN(t,l){return e(t.toLowerCase(),l.toLowerCase())<=0},desc(t,l){return o.asc(l,t)},descI(t,l){return o.ascI(l,t)},descN(t,l){return o.ascN(l,t)},descIN(t,l){return o.ascIN(l,t)}};return Df={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){const[l,{caseSensitive:f,natural:u,minKeys:r,allowLineSeparatedGroups:m,ignoreComputedKeys:i}]=t.options,c=!f,d=o[l+(c?"I":"")+(u?"N":"")];let s=null;const p=t.sourceCode;return{ObjectExpression(h){s={upper:s,prevNode:null,prevBlankLine:!1,prevName:null,numKeys:h.properties.length}},"ObjectExpression:exit"(){s=s.upper},SpreadElement(h){h.parent.type==="ObjectExpression"&&(s.prevName=null)},Property(h){if(h.parent.type==="ObjectPattern")return;if(i&&h.computed){s.prevName=null;return}const g=s.prevName,v=s.numKeys,E=n(h),b=s.prevNode&&p.getTokensBetween(s.prevNode,h,{includeComments:!0});let T=s.prevBlankLine;if(b&&(b.forEach((C,S)=>{const w=b[S-1];w&&C.loc.start.line-w.loc.end.line>1&&(T=!0)}),!T&&h.loc.start.line-b.at(-1).loc.end.line>1&&(T=!0),!T&&b[0].loc.start.line-s.prevNode.loc.end.line>1&&(T=!0)),s.prevNode=h,E!==null&&(s.prevName=E),m&&T){s.prevBlankLine=E===null;return}g===null||E===null||v<r||d(g,E)||t.report({node:h,loc:h.key.loc,messageId:"sortKeys",data:{thisName:E,prevName:g,order:l,insensitive:c?"insensitive ":"",natural:u?"natural ":""}})}}}},Df}var Pf,mb;function IP(){return mb||(mb=1,Pf={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(a){const[{ignoreCase:e}]=a.options,n=a.sourceCode;return{VariableDeclaration(o){const t=o.declarations.filter(r=>r.id.type==="Identifier"),l=e?r=>r.id.name.toLowerCase():r=>r.id.name,f=t.some(r=>r.init!==null&&r.init.type!=="Literal");let u=!1;t.slice(1).reduce((r,m)=>{const i=l(r);return l(m)<i?(a.report({node:m,messageId:"sortVars",fix(d){return f||u?null:d.replaceTextRange([t[0].range[0],t.at(-1).range[1]],t.slice().sort((s,p)=>{const h=l(s),g=l(p);return h>g?1:-1}).reduce((s,p,h)=>{const g=h===t.length-1?"":n.getText().slice(t[h].range[1],t[h+1].range[0]);return s+n.getText(p)+g},""))}}),u=!0,r):m},t[0])}}}}),Pf}var If,db;function FP(){if(db)return If;db=1;const a=Le();function e(n){const o=n.parent;return n.type==="BlockStatement"&&a.isFunction(o)&&o.body===n}return If={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(n){const o=n.options[0],t=n.sourceCode;let l=!0,f=!0,u=!0,r=!1,m=!1,i=!1;typeof o=="object"?(l=o.functions==="always",f=o.keywords==="always",u=o.classes==="always",r=o.functions==="never",m=o.keywords==="never",i=o.classes==="never"):o==="never"&&(l=!1,f=!1,u=!1,r=!0,m=!0,i=!0);function c(p,h){return a.isArrowToken(p)||a.isKeywordToken(p)&&!e(h)||a.isColonToken(p)&&h.parent&&h.parent.type==="SwitchCase"&&p===a.getSwitchCaseColonToken(h.parent,t)}function d(p){const h=t.getTokenBefore(p);if(h&&!c(h,p)&&a.isTokenOnSameLine(h,p)){const g=t.isSpaceBetweenTokens(h,p);let v,E;e(p)?(v=l,E=r):p.type==="ClassBody"?(v=u,E=i):(v=f,E=m),v&&!g?n.report({node:p,messageId:"missingSpace",fix(b){return b.insertTextBefore(p," ")}}):E&&g&&n.report({node:p,messageId:"unexpectedSpace",fix(b){return b.removeRange([h.range[1],p.range[0]])}})}}function s(p){const h=p.cases;let g;h.length>0?g=t.getTokenBefore(h[0]):g=t.getLastToken(p,1),d(g)}return{BlockStatement:d,ClassBody:d,SwitchStatement:s}}},If}var Ff,hb;function RP(){if(hb)return Ff;hb=1;const a=Le();return Ff={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(e){const n=e.sourceCode,o=typeof e.options[0]=="string"?e.options[0]:"always",t=typeof e.options[0]=="object"?e.options[0]:{};function l(r){if(r.id)return!0;const m=r.parent;return m.type==="MethodDefinition"||m.type==="Property"&&(m.kind==="get"||m.kind==="set"||m.method)}function f(r){if(r.type==="ArrowFunctionExpression"){if(r.async&&a.isOpeningParenToken(n.getFirstToken(r,{skip:1})))return t.asyncArrow||o}else{if(l(r))return t.named||o;if(!r.generator)return t.anonymous||o}return"ignore"}function u(r){const m=f(r);if(m==="ignore")return;const i=n.getFirstToken(r,a.isOpeningParenToken),c=n.getTokenBefore(i),d=n.isSpaceBetweenTokens(c,i);d&&m==="never"?e.report({node:r,loc:{start:c.loc.end,end:i.loc.start},messageId:"unexpectedSpace",fix(s){const p=n.getCommentsBefore(i);return p.some(h=>h.type==="Line")?null:s.replaceTextRange([c.range[1],i.range[0]],p.reduce((h,g)=>h+n.getText(g),""))}}):!d&&m==="always"&&e.report({node:r,loc:i.loc,messageId:"missingSpace",fix:s=>s.insertTextAfter(c," ")})}return{ArrowFunctionExpression:u,FunctionDeclaration:u,FunctionExpression:u}}},Ff}var Rf,gb;function _P(){if(gb)return Rf;gb=1;const a=Le();return Rf={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(e){const n=e.options[0]==="always",o=e.options[1]&&e.options[1].exceptions||[],t={};let l;o.length&&(t.braceException=o.includes("{}"),t.bracketException=o.includes("[]"),t.parenException=o.includes("()"),t.empty=o.includes("empty"));function f(){const p=[],h=[];return t.braceException&&(p.push("{"),h.push("}")),t.bracketException&&(p.push("["),h.push("]")),t.parenException&&(p.push("("),h.push(")")),t.empty&&(p.push(")"),h.push("(")),{openers:p,closers:h}}const u=e.sourceCode;function r(p){return l.openers.includes(p.value)}function m(p){return l.closers.includes(p.value)}function i(p,h){return u.isSpaceBetweenTokens(p,h)||!t.empty&&a.isClosingParenToken(h)?!1:n?!r(h):r(h)}function c(p,h){return!a.isTokenOnSameLine(p,h)||h.type==="Line"||!u.isSpaceBetweenTokens(p,h)?!1:n?r(h):!r(h)}function d(p,h){return u.isSpaceBetweenTokens(p,h)||!t.empty&&a.isOpeningParenToken(p)?!1:n?!m(p):m(p)}function s(p,h){return!a.isTokenOnSameLine(p,h)||!u.isSpaceBetweenTokens(p,h)?!1:n?m(p):!m(p)}return{Program:function(h){l=f();const g=u.tokensAndComments;g.forEach((v,E)=>{const b=g[E-1],T=g[E+1];!a.isOpeningParenToken(v)&&!a.isClosingParenToken(v)||(v.value==="("&&i(v,T)&&e.report({node:h,loc:v.loc,messageId:"missingOpeningSpace",fix(C){return C.insertTextAfter(v," ")}}),v.value==="("&&c(v,T)&&e.report({node:h,loc:{start:v.loc.end,end:T.loc.start},messageId:"rejectedOpeningSpace",fix(C){return C.removeRange([v.range[1],T.range[0]])}}),v.value===")"&&d(b,v)&&e.report({node:h,loc:v.loc,messageId:"missingClosingSpace",fix(C){return C.insertTextBefore(v," ")}}),v.value===")"&&s(b,v)&&e.report({node:h,loc:{start:b.loc.end,end:v.loc.start},messageId:"rejectedClosingSpace",fix(C){return C.removeRange([b.range[1],v.range[0]])}}))})}}}},Rf}var _f,yb;function BP(){if(yb)return _f;yb=1;const{isEqToken:a}=Le();return _f={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(e){const n=e.options[0]?e.options[0].int32Hint===!0:!1,o=e.sourceCode;function t(m,i,c){const d=o.getFirstTokenBetween(m,i,h=>h.value===c),s=o.getTokenBefore(d),p=o.getTokenAfter(d);return!o.isSpaceBetweenTokens(s,d)||!o.isSpaceBetweenTokens(d,p)?d:null}function l(m,i){e.report({node:m,loc:i.loc,messageId:"missingSpace",data:{operator:i.value},fix(c){const d=o.getTokenBefore(i),s=o.getTokenAfter(i);let p="";return i.range[0]-d.range[1]===0&&(p=" "),p+=i.value,s.range[0]-i.range[1]===0&&(p+=" "),c.replaceText(i,p)}})}function f(m){const i=m.left.typeAnnotation?m.left.typeAnnotation:m.left,c=m.right,d=m.operator||"=",s=t(i,c,d);s&&(n&&o.getText(m).endsWith("|0")||l(m,s))}function u(m){const i=t(m.test,m.consequent,"?"),c=t(m.consequent,m.alternate,":");i&&l(m,i),c&&l(m,c)}function r(m){const i=m.id.typeAnnotation?m.id.typeAnnotation:m.id,c=m.init;if(c){const d=t(i,c,"=");d&&l(m,d)}}return{AssignmentExpression:f,AssignmentPattern:f,BinaryExpression:f,LogicalExpression:f,ConditionalExpression:u,VariableDeclarator:r,PropertyDefinition(m){if(!m.value)return;const i=o.getTokenBefore(m.value,a),c=o.getTokenBefore(i),d=o.getTokenAfter(i);(!o.isSpaceBetweenTokens(c,i)||!o.isSpaceBetweenTokens(i,d))&&l(m,i)}}}},_f}var Bf,vb;function LP(){if(vb)return Bf;vb=1;const a=Le();return Bf={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(e){const n=e.options[0]||{words:!0,nonwords:!1},o=e.sourceCode;function t(h){return h&&h.type==="UnaryExpression"&&h.argument.operator==="!"&&h.argument&&h.argument.type==="UnaryExpression"&&h.argument.operator==="!"}function l(h){return n.overrides&&Object.hasOwn(n.overrides,h)}function f(h){return n.overrides[h]}function u(h,g,v,E){v.range[0]===g.range[1]&&e.report({node:h,messageId:"wordOperator",data:{word:E},fix(b){return b.insertTextAfter(g," ")}})}function r(h,g,v,E){a.canTokensBeAdjacent(g,v)&&v.range[0]>g.range[1]&&e.report({node:h,messageId:"unexpectedAfterWord",data:{word:E},fix(b){return b.removeRange([g.range[1],v.range[0]])}})}function m(h,g,v,E){l(E)?f(E)?u(h,g,v,E):r(h,g,v,E):n.words?u(h,g,v,E):r(h,g,v,E)}function i(h){const g=o.getFirstTokens(h,3),v="yield";!h.argument||h.delegate||m(h,g[0],g[1],v)}function c(h){const g=o.getFirstTokens(h,3);m(h,g[0],g[1],"await")}function d(h,g,v){if(h.prefix){if(t(h))return;g.range[1]===v.range[0]&&e.report({node:h,messageId:"operator",data:{operator:g.value},fix(E){return E.insertTextAfter(g," ")}})}else g.range[1]===v.range[0]&&e.report({node:h,messageId:"beforeUnaryExpressions",data:{token:v.value},fix(E){return E.insertTextBefore(v," ")}})}function s(h,g,v){h.prefix?v.range[0]>g.range[1]&&e.report({node:h,messageId:"unexpectedAfter",data:{operator:g.value},fix(E){return a.canTokensBeAdjacent(g,v)?E.removeRange([g.range[1],v.range[0]]):null}}):v.range[0]>g.range[1]&&e.report({node:h,messageId:"unexpectedBefore",data:{operator:v.value},fix(E){return E.removeRange([g.range[1],v.range[0]])}})}function p(h){const g=h.type==="UpdateExpression"&&!h.prefix?o.getLastTokens(h,2):o.getFirstTokens(h,2),v=g[0],E=g[1];if((h.type==="NewExpression"||h.prefix)&&v.type==="Keyword"){m(h,v,E,v.value);return}const b=h.prefix?g[0].value:g[1].value;l(b)?f(b)?d(h,v,E):s(h,v,E):n.nonwords?d(h,v,E):s(h,v,E)}return{UnaryExpression:p,UpdateExpression:p,NewExpression:p,YieldExpression:i,AwaitExpression:c}}},Bf}var Lf,Sb;function OP(){if(Sb)return Lf;Sb=1;const a=Rn(),e=Le();function n(r){return`(?:${a(r)})`}function o(r){return`${n(r)}+`}function t(r){return r.includes("*")?r:r.concat("*")}function l(r){let m="";return r.length===0?m+="\\s":(m+="(?:\\s|",r.length===1?m+=o(r[0]):(m+="(?:",m+=r.map(o).join("|"),m+=")"),m+=`(?:$|[${Array.from(e.LINEBREAKS).join("")}]))`),m}function f(r,m){let i="^";return r.length===1?i+=n(r[0]):(i+="(?:",i+=r.map(n).join("|"),i+=")"),i+="?",i+=l(m),new RegExp(i,"u")}function u(r){const m=`^(${r.map(n).join("|")})?[ ]+`;return new RegExp(m,"u")}return Lf={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(r){const m=r.sourceCode,i=r.options[0]!=="never",c=r.options[1]||{},d=c.block&&c.block.balanced,s=["block","line"].reduce((v,E)=>{const b=t(c[E]&&c[E].markers||c.markers||[]),T=c[E]&&c[E].exceptions||c.exceptions||[],C="[ ]+$";return v[E]={beginRegex:i?f(b,T):u(b),endRegex:d&&i?new RegExp(`${l(T)}$`,"u"):new RegExp(C,"u"),hasExceptions:T.length>0,captureMarker:new RegExp(`^(${b.map(n).join("|")})`,"u"),markers:new Set(b)},v},{});function p(v,E,b,T){const C=v.type.toLowerCase(),S=C==="block"?"/*":"//";r.report({node:v,fix(w){const x=v.range[0];let A=x+2;return i?(b&&(A+=b[0].length),w.insertTextAfterRange([x,A]," ")):(A+=b[0].length,w.replaceTextRange([x,A],S+(b[1]?b[1]:"")))},messageId:E,data:{refChar:T}})}function h(v,E,b){r.report({node:v,fix(T){if(i)return T.insertTextAfterRange([v.range[0],v.range[1]-2]," ");const C=v.range[1]-2,S=C-b[0].length;return T.replaceTextRange([S,C],"")},messageId:E})}function g(v){const E=v.type.toLowerCase(),b=s[E],T=E==="block"?"/*":"//";if(v.value.length===0||b.markers.has(v.value))return;const C=b.beginRegex.exec(v.value),S=b.endRegex.exec(v.value);if(i){if(!C){const w=b.captureMarker.exec(v.value),x=w?T+w[0]:T;b.hasExceptions?p(v,"expectedExceptionAfter",w,x):p(v,"expectedSpaceAfter",w,x)}d&&E==="block"&&!S&&h(v,"expectedSpaceBefore")}else C&&(C[1]?p(v,"unexpectedSpaceAfterMarker",C,C[1]):p(v,"unexpectedSpaceAfter",C,T)),d&&E==="block"&&S&&h(v,"unexpectedSpaceBefore",S)}return{Program(){m.getAllComments().filter(E=>E.type!=="Shebang").forEach(g)}}}},Lf}var Of,Eb;function NP(){if(Eb)return Of;Eb=1;const a=Le();function e(t){const l=[];for(let f=0;f<t.length;f++){const u=t[f];if(u.type==="ExpressionStatement"&&u.expression.type==="Literal"&&u.expression.value==="use strict")l[f]=u;else break}return l}function n(t){return t.type==="Identifier"}function o(t){return t.every(n)}return Of={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){const l=t.languageOptions.parserOptions.ecmaFeatures||{},f=[],u=[];let[r]=t.options;l.impliedStrict?r="implied":r==="safe"&&(r=l.globalReturn||t.languageOptions.sourceType==="commonjs"?"global":"function");function m(E){return E==="multiple"||E==="unnecessary"||E==="module"||E==="implied"||E==="unnecessaryInClasses"}function i(E){return b=>b.remove(E)}function c(E,b,T,C,S){E.slice(b,T).forEach(w=>{t.report({node:w,messageId:C,fix:S?i(w):null})})}function d(E,b,T){c(E,0,E.length,b,T)}function s(E,b,T){c(E,1,E.length,b,T)}function p(E,b){const T=u.length>0,C=f.length===0&&u.length===0,S=f.length>0&&f.at(-1),w=b.length>0;w?(o(E.params)?S?t.report({node:b[0],messageId:"unnecessary",fix:i(b[0])}):T&&t.report({node:b[0],messageId:"unnecessaryInClasses",fix:i(b[0])}):t.report({node:b[0],messageId:"nonSimpleParameterList"}),s(b,"multiple",!0)):C&&(o(E.params)?t.report({node:E,messageId:"function"}):t.report({node:E,messageId:"wrap",data:{name:a.getFunctionNameWithKind(E)}})),f.push(S||w)}function h(){f.pop()}function g(E){const b=E.body.type==="BlockStatement",T=b?e(E.body.body):[];r==="function"?p(E,T):T.length>0&&(o(E.params)?d(T,r,m(r)):(t.report({node:T[0],messageId:"nonSimpleParameterList"}),s(T,"multiple",!0)))}const v={Program(E){const b=e(E.body);E.sourceType==="module"&&(r="module"),r==="global"?(E.body.length>0&&b.length===0&&t.report({node:E,messageId:"global"}),s(b,"multiple",!0)):d(b,r,m(r))},FunctionDeclaration:g,FunctionExpression:g,ArrowFunctionExpression:g};return r==="function"&&Object.assign(v,{ClassBody(){u.push(!0)},"ClassBody:exit"(){u.pop()},"FunctionDeclaration:exit":h,"FunctionExpression:exit":h,"ArrowFunctionExpression:exit":h}),v}},Of}var Nf,bb;function MP(){if(bb)return Nf;bb=1;const a=Le();return Nf={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(e){const n=e.sourceCode,o=e.options[0]||{},t=o.before===!0,l=o.after!==!1;function f(m,i,c){return a.isClosingBraceToken(i)||!a.isTokenOnSameLine(m,i)||n.isSpaceBetweenTokens(m,i)===c}function u(m,i){return n.getFirstTokenBetween(m,i,{includeComments:!0,filter:a.isCommentToken})!==null}function r(m,i,c,d){return u(i,c)?null:d?m.insertTextAfter(i," "):m.removeRange([i.range[1],c.range[0]])}return{SwitchCase(m){const i=a.getSwitchCaseColonToken(m,n),c=n.getTokenBefore(i),d=n.getTokenAfter(i);f(c,i,t)||e.report({node:m,loc:i.loc,messageId:t?"expectedBefore":"unexpectedBefore",fix:s=>r(s,c,i,t)}),f(i,d,l)||e.report({node:m,loc:i.loc,messageId:l?"expectedAfter":"unexpectedAfter",fix:s=>r(s,i,d,l)})}}}},Nf}var Mf,Cb;function jP(){if(Cb)return Mf;Cb=1;const a=Le();return Mf={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(e){const n=e.sourceCode;function o(t){t.arguments.length===0&&e.report({node:t,messageId:"expected"})}return{"Program:exit"(t){const l=n.getScope(t),f=a.getVariableByName(l,"Symbol");f&&f.defs.length===0&&f.references.forEach(u=>{const r=u.identifier;a.isCallee(r)&&o(r.parent)})}}}},Mf}var jf,xb;function UP(){if(xb)return jf;xb=1;const a=Le();return jf={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(e){const n=e.sourceCode,o=e.options[0]==="always";function t(f){if(!f.value.startsWith("}"))return;const u=n.getTokenBefore(f,{includeComments:!0}),r=n.isSpaceBetween(u,f);a.isTokenOnSameLine(u,f)&&(o&&!r&&e.report({loc:{start:f.loc.start,end:{line:f.loc.start.line,column:f.loc.start.column+1}},messageId:"expectedBefore",fix:m=>m.insertTextBefore(f," ")}),!o&&r&&e.report({loc:{start:u.loc.end,end:f.loc.start},messageId:"unexpectedBefore",fix:m=>m.removeRange([u.range[1],f.range[0]])}))}function l(f){if(!f.value.endsWith("${"))return;const u=n.getTokenAfter(f,{includeComments:!0}),r=n.isSpaceBetween(f,u);a.isTokenOnSameLine(f,u)&&(o&&!r&&e.report({loc:{start:{line:f.loc.end.line,column:f.loc.end.column-2},end:f.loc.end},messageId:"expectedAfter",fix:m=>m.insertTextAfter(f," ")}),!o&&r&&e.report({loc:{start:f.loc.end,end:u.loc.start},messageId:"unexpectedAfter",fix:m=>m.removeRange([f.range[1],u.range[0]])}))}return{TemplateElement(f){const u=n.getFirstToken(f);t(u),l(u)}}}},jf}var Uf,wb;function qP(){return wb||(wb=1,Uf={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(a){const e=a.options[0]!=="always",n=a.sourceCode;function o(t){const l=n.getTokenBefore(t.quasi),f=n.getFirstToken(t.quasi),u=n.isSpaceBetweenTokens(l,f);e&&u?a.report({node:t,loc:{start:l.loc.end,end:f.loc.start},messageId:"unexpected",fix(r){const m=n.getCommentsBefore(t.quasi);return m.some(i=>i.type==="Line")?null:r.replaceTextRange([l.range[1],f.range[0]],m.reduce((i,c)=>i+n.getText(c),""))}}):!e&&!u&&a.report({node:t,loc:{start:t.loc.start,end:f.loc.start},messageId:"missing",fix(r){return r.insertTextAfter(l," ")}})}return{TaggedTemplateExpression:o}}}),Uf}var qf,Ab;function VP(){return Ab||(Ab=1,qf={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(a){return{Program:function(n){const o=a.sourceCode,t={column:0,line:1},[l]=a.options;!o.hasBOM&&l==="always"?a.report({node:n,loc:t,messageId:"expected",fix(f){return f.insertTextBeforeRange([0,1],"\uFEFF")}}):o.hasBOM&&l==="never"&&a.report({node:n,loc:t,messageId:"unexpected",fix(f){return f.removeRange([-1,0])}})}}}}),qf}var Vf,Tb;function $P(){if(Tb)return Vf;Tb=1;const a=Le();function e(n){if(!n)return!1;const o=n.type==="SequenceExpression"?n.expressions.at(-1):n;return a.isSpecificId(o,"NaN")||a.isSpecificMemberAccess(o,"Number","NaN")}return Vf={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(n){const[{enforceForIndexOf:o,enforceForSwitchCase:t}]=n.options,l=n.sourceCode,f=new Set(["==","===","!=","!=="]),u=new Set(["==","!="]);function r(s,p){return h=>{const g=e(s.left)?s.right:s.left,v=g.type==="SequenceExpression",b=s.operator[0]==="!"?"!":"";let T=l.getText(g);v&&(T=`(${T})`);const C=p(T);return h.replaceText(s,`${b}${C}`)}}function m(s){if(/^(?:[<>]|[!=]=)=?$/u.test(s.operator)&&(e(s.left)||e(s.right))){const p=[],g=(e(s.left)?s.left:s.right).type==="SequenceExpression",v=f.has(s.operator)&&!g,E=u.has(s.operator);v&&(p.push({messageId:"replaceWithIsNaN",fix:r(s,b=>`Number.isNaN(${b})`)}),E&&p.push({messageId:"replaceWithCastingAndIsNaN",fix:r(s,b=>`Number.isNaN(Number(${b}))`)})),n.report({node:s,messageId:"comparisonWithNaN",suggest:p})}}function i(s){e(s.discriminant)&&n.report({node:s,messageId:"switchNaN"});for(const p of s.cases)e(p.test)&&n.report({node:p,messageId:"caseNaN"})}function c(s){const p=a.skipChainExpression(s.callee);if(p.type==="MemberExpression"){const h=a.getStaticPropertyName(p);if((h==="indexOf"||h==="lastIndexOf")&&s.arguments.length<=2&&e(s.arguments[0])){const g=s.arguments[0].type!=="SequenceExpression"&&!s.arguments[1],v=[];if(g){const E=p.computed,b=h==="indexOf"?"findIndex":"findLastIndex",T=E?`"${b}"`:b;v.push({messageId:"replaceWithFindIndex",data:{methodName:b},fix:C=>[C.replaceText(p.property,T),C.replaceText(s.arguments[0],"Number.isNaN")]})}n.report({node:s,messageId:"indexOfNaN",data:{methodName:h},suggest:v})}}}const d={BinaryExpression:m};return t&&(d.SwitchStatement=i),o&&(d.CallExpression=c),d}},Vf}var $f,kb;function GP(){if(kb)return $f;kb=1;const a=Le();return $f={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(e){const n=new Set(["symbol","undefined","object","boolean","number","string","function","bigint"]),o=new Set(["==","===","!=","!=="]),t=e.sourceCode,[{requireStringLiterals:l}]=e.options;let f;function u(m){const i=f.set.get(m.name);return i&&i.defs.length===0&&i.references.some(c=>c.identifier===m)}function r(m){return m.type==="UnaryExpression"&&m.operator==="typeof"}return{Program(m){f=t.getScope(m)},UnaryExpression(m){if(r(m)){const{parent:i}=m;if(i.type==="BinaryExpression"&&o.has(i.operator)){const c=i.left===m?i.right:i.left;if(c.type==="Literal"||a.isStaticTemplateLiteral(c)){const d=c.type==="Literal"?c.value:c.quasis[0].value.cooked;n.has(d)||e.report({node:c,messageId:"invalidValue"})}else c.type==="Identifier"&&c.name==="undefined"&&u(c)?e.report({node:c,messageId:l?"notString":"invalidValue",suggest:[{messageId:"suggestString",data:{type:"undefined"},fix(d){return d.replaceText(c,'"undefined"')}}]}):l&&!r(c)&&e.report({node:c,messageId:"notString"})}}}}}},$f}var Gf,Db;function WP(){return Db||(Db=1,Gf={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(a){function e(u){return u.type==="ExpressionStatement"&&u.expression.type==="Literal"&&typeof u.expression.value=="string"}function n(u){return u.type==="ImportDeclaration"||u.type==="ImportSpecifier"||u.type==="ImportDefaultSpecifier"||u.type==="ImportNamespaceSpecifier"}function o(u){return u.type==="VariableDeclaration"||u.type==="ExportNamedDeclaration"&&u.declaration&&u.declaration.type==="VariableDeclaration"}function t(u,r){const m=r.length;let i=0;if(u.parent.type!=="StaticBlock")for(;i<m&&!(!e(r[i])&&!n(r[i]));++i);for(;i<m;++i){if(!o(r[i]))return!1;if(r[i]===u)return!0}return!1}function l(u,r){t(u,r.body)||a.report({node:u,messageId:"top"})}function f(u){const{parent:r}=u;r.type==="BlockStatement"&&/Function/u.test(r.parent.type)&&t(u,r.body)||r.type==="StaticBlock"&&t(u,r.body)||a.report({node:u,messageId:"top"})}return{"VariableDeclaration[kind='var']"(u){u.parent.type==="ExportNamedDeclaration"?l(u.parent,u.parent.parent):u.parent.type==="Program"?l(u,u.parent):f(u)}}}}),Gf}var Wf,Pb;function zP(){if(Pb)return Wf;Pb=1;const a=Le(),e=qt();function n(o){const t=o.parent.type==="ChainExpression"?o.parent:o;return t.parent.type==="NewExpression"&&t.parent.callee===t}return Wf={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(o){const t=o.options[0]||"outside",l=o.options[1]&&o.options[1].functionPrototypeMethods,f=o.sourceCode;function u(i){return a.isParenthesised(f,i)}function r(i){return e.isParenthesized(1,i,f)}function m(i){const c=a.skipChainExpression(i.callee);return c.type==="FunctionExpression"?c:l&&c.type==="MemberExpression"&&c.object.type==="FunctionExpression"&&(a.getStaticPropertyName(c)==="call"||a.getStaticPropertyName(c)==="apply")?c.object:null}return{CallExpression(i){const c=m(i);if(!c)return;const d=u(i),s=u(c);!d&&!s?o.report({node:i,messageId:"wrapInvocation",fix(p){const h=t==="inside"?c:i;return p.replaceText(h,`(${f.getText(h)})`)}}):t==="inside"&&!s?o.report({node:i,messageId:"wrapExpression",fix(p){if(r(i)&&!n(i)){const h=f.getTokenAfter(i);return p.replaceTextRange([c.range[1],h.range[1]],`)${f.getText().slice(c.range[1],h.range[0])}`)}return p.replaceText(c,`(${f.getText(c)})`)}}):t==="outside"&&!d&&o.report({node:i,messageId:"moveInvocation",fix(p){const h=f.getTokenAfter(c);return p.replaceTextRange([h.range[0],i.range[1]],`${f.getText().slice(h.range[1],i.range[1])})`)}})}}}},Wf}var zf,Ib;function HP(){return Ib||(Ib=1,zf={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(a){const e=a.sourceCode;return{Literal(n){if(e.getFirstToken(n).type==="RegularExpression"){const l=e.getTokenBefore(n),f=e.getTokenAfter(n),{parent:u}=n;u.type==="MemberExpression"&&u.object===n&&!(l&&l.value==="("&&f&&f.value===")")&&a.report({node:n,messageId:"requireParens",fix:r=>r.replaceText(n,`(${e.getText(n)})`)})}}}}}),zf}var Hf,Fb;function KP(){return Fb||(Fb=1,Hf={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(a){const e=a.sourceCode,n=(function(l){return!l||typeof l=="string"?{before:{before:!0,after:!1},after:{before:!1,after:!0},both:{before:!0,after:!0},neither:{before:!1,after:!1}}[l||"after"]:l})(a.options[0]);function o(l,f,u){if(e.isSpaceBetweenTokens(f,u)!==n[l]){const r=f.value==="*",m=n[l],i=r?f:u;let c;m?c=l==="before"?"missingBefore":"missingAfter":c=l==="before"?"unexpectedBefore":"unexpectedAfter",a.report({node:i,messageId:c,fix(d){return m?r?d.insertTextAfter(i," "):d.insertTextBefore(i," "):d.removeRange([f.range[1],u.range[0]])}})}}function t(l){if(!l.delegate)return;const f=e.getFirstTokens(l,3),u=f[0],r=f[1],m=f[2];o("before",u,r),o("after",r,m)}return{YieldExpression:t}}}),Hf}var Kf,Rb;function XP(){if(Rb)return Kf;Rb=1;const a=Le();function e(u){return/^(?:==|===|!=|!==|<|>|<=|>=)$/u.test(u)}function n(u){return/^(?:==|===)$/u.test(u)}function o(u){return["<","<="].includes(u)}function t(u){return u.type==="UnaryExpression"&&u.operator==="-"&&u.prefix&&a.isNumericLiteral(u.argument)}function l(u){return t(u)||a.isStaticTemplateLiteral(u)}function f(u){return u.type==="Literal"?u:t(u)?{type:"Literal",value:-u.argument.value,raw:`-${u.argument.value}`}:a.isStaticTemplateLiteral(u)?{type:"Literal",value:u.quasis[0].value.cooked,raw:u.quasis[0].value.raw}:null}return Kf={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(u){const[r,{exceptRange:m,onlyEquality:i}]=u.options,c=r==="always",d=u.sourceCode;function s(g){const v=g.left,E=g.right;function b(){if(g.operator==="&&"&&a.isSameReference(v.right,E.left)){const S=f(v.left),w=f(E.right);if(S===null&&w===null)return!1;if(w===null||S===null||S.value<=w.value)return!0}return!1}function T(){if(g.operator==="||"&&a.isSameReference(v.left,E.right)){const S=f(v.right),w=f(E.left);if(S===null&&w===null)return!1;if(w===null||S===null||S.value<=w.value)return!0}return!1}function C(){return a.isParenthesised(d,g)}return g.type==="LogicalExpression"&&v.type==="BinaryExpression"&&E.type==="BinaryExpression"&&o(v.operator)&&o(E.operator)&&(b()||T())&&C()}const p={"===":"===","!==":"!==","==":"==","!=":"!=","<":">",">":"<","<=":">=",">=":"<="};function h(g){const v=d.getFirstTokenBetween(g.left,g.right,B=>B.value===g.operator),E=d.getTokenBefore(v),b=d.getTokenAfter(v),T=d.getText(),C=T.slice(g.range[0],E.range[1]),S=T.slice(E.range[1],v.range[0]),w=T.slice(v.range[1],b.range[0]),x=T.slice(b.range[0],g.range[1]),A=d.getTokenBefore(g),k=d.getTokenAfter(g);let R="",I="";return A&&A.range[1]===g.range[0]&&!a.canTokensBeAdjacent(A,b)&&(R=" "),k&&g.range[1]===k.range[0]&&!a.canTokensBeAdjacent(E,k)&&(I=" "),R+x+S+p[v.value]+w+C+I}return{BinaryExpression(g){const v=c?g.left:g.right,E=c?g.right:g.left;(E.type==="Literal"||l(E))&&!(v.type==="Literal"||l(v))&&!(!n(g.operator)&&i)&&e(g.operator)&&!(m&&s(g.parent))&&u.report({node:g,messageId:"expected",data:{operator:g.operator,expectedSide:c?"left":"right"},fix:b=>b.replaceText(g,h(g))})}}}},Kf}var Xf,_b;function Bb(){if(_b)return Xf;_b=1;const{LazyLoadingRuleMap:a}=vw();return Xf=new a(Object.entries({"accessor-pairs":()=>bw(),"array-bracket-newline":()=>Cw(),"array-bracket-spacing":()=>xw(),"array-callback-return":()=>ww(),"array-element-newline":()=>Aw(),"arrow-body-style":()=>Tw(),"arrow-parens":()=>kw(),"arrow-spacing":()=>Dw(),"block-scoped-var":()=>Pw(),"block-spacing":()=>Iw(),"brace-style":()=>Fw(),"callback-return":()=>Rw(),camelcase:()=>_w(),"capitalized-comments":()=>Bw(),"class-methods-use-this":()=>Lw(),"comma-dangle":()=>Ow(),"comma-spacing":()=>Nw(),"comma-style":()=>Mw(),complexity:()=>jw(),"computed-property-spacing":()=>Uw(),"consistent-return":()=>qw(),"consistent-this":()=>Vw(),"constructor-super":()=>$w(),curly:()=>Gw(),"default-case":()=>Ww(),"default-case-last":()=>zw(),"default-param-last":()=>Hw(),"dot-location":()=>Kw(),"dot-notation":()=>Xw(),"eol-last":()=>Jw(),eqeqeq:()=>Yw(),"for-direction":()=>Qw(),"func-call-spacing":()=>Zw(),"func-name-matching":()=>eA(),"func-names":()=>tA(),"func-style":()=>rA(),"function-call-argument-newline":()=>nA(),"function-paren-newline":()=>sA(),"generator-star-spacing":()=>aA(),"getter-return":()=>iA(),"global-require":()=>oA(),"grouped-accessor-pairs":()=>lA(),"guard-for-in":()=>uA(),"handle-callback-err":()=>cA(),"id-blacklist":()=>fA(),"id-denylist":()=>pA(),"id-length":()=>mA(),"id-match":()=>dA(),"implicit-arrow-linebreak":()=>hA(),indent:()=>gA(),"indent-legacy":()=>yA(),"init-declarations":()=>vA(),"jsx-quotes":()=>SA(),"key-spacing":()=>EA(),"keyword-spacing":()=>bA(),"line-comment-position":()=>CA(),"linebreak-style":()=>xA(),"lines-around-comment":()=>wA(),"lines-around-directive":()=>AA(),"lines-between-class-members":()=>TA(),"logical-assignment-operators":()=>kA(),"max-classes-per-file":()=>DA(),"max-depth":()=>PA(),"max-len":()=>IA(),"max-lines":()=>FA(),"max-lines-per-function":()=>RA(),"max-nested-callbacks":()=>_A(),"max-params":()=>BA(),"max-statements":()=>LA(),"max-statements-per-line":()=>OA(),"multiline-comment-style":()=>NA(),"multiline-ternary":()=>MA(),"new-cap":()=>jA(),"new-parens":()=>UA(),"newline-after-var":()=>qA(),"newline-before-return":()=>VA(),"newline-per-chained-call":()=>$A(),"no-alert":()=>GA(),"no-array-constructor":()=>WA(),"no-async-promise-executor":()=>zA(),"no-await-in-loop":()=>HA(),"no-bitwise":()=>KA(),"no-buffer-constructor":()=>XA(),"no-caller":()=>JA(),"no-case-declarations":()=>YA(),"no-catch-shadow":()=>QA(),"no-class-assign":()=>ZA(),"no-compare-neg-zero":()=>eT(),"no-cond-assign":()=>tT(),"no-confusing-arrow":()=>rT(),"no-console":()=>nT(),"no-const-assign":()=>sT(),"no-constant-binary-expression":()=>aT(),"no-constant-condition":()=>iT(),"no-constructor-return":()=>oT(),"no-continue":()=>lT(),"no-control-regex":()=>uT(),"no-debugger":()=>cT(),"no-delete-var":()=>fT(),"no-div-regex":()=>pT(),"no-dupe-args":()=>mT(),"no-dupe-class-members":()=>dT(),"no-dupe-else-if":()=>hT(),"no-dupe-keys":()=>gT(),"no-duplicate-case":()=>yT(),"no-duplicate-imports":()=>vT(),"no-else-return":()=>ST(),"no-empty":()=>ET(),"no-empty-character-class":()=>bT(),"no-empty-function":()=>CT(),"no-empty-pattern":()=>xT(),"no-empty-static-block":()=>wT(),"no-eq-null":()=>AT(),"no-eval":()=>TT(),"no-ex-assign":()=>kT(),"no-extend-native":()=>DT(),"no-extra-bind":()=>PT(),"no-extra-boolean-cast":()=>IT(),"no-extra-label":()=>FT(),"no-extra-parens":()=>RT(),"no-extra-semi":()=>_T(),"no-fallthrough":()=>BT(),"no-floating-decimal":()=>LT(),"no-func-assign":()=>OT(),"no-global-assign":()=>NT(),"no-implicit-coercion":()=>MT(),"no-implicit-globals":()=>jT(),"no-implied-eval":()=>UT(),"no-import-assign":()=>qT(),"no-inline-comments":()=>VT(),"no-inner-declarations":()=>$T(),"no-invalid-regexp":()=>GT(),"no-invalid-this":()=>WT(),"no-irregular-whitespace":()=>zT(),"no-iterator":()=>HT(),"no-label-var":()=>KT(),"no-labels":()=>XT(),"no-lone-blocks":()=>JT(),"no-lonely-if":()=>YT(),"no-loop-func":()=>QT(),"no-loss-of-precision":()=>ZT(),"no-magic-numbers":()=>ek(),"no-misleading-character-class":()=>ok(),"no-mixed-operators":()=>lk(),"no-mixed-requires":()=>uk(),"no-mixed-spaces-and-tabs":()=>ck(),"no-multi-assign":()=>fk(),"no-multi-spaces":()=>pk(),"no-multi-str":()=>mk(),"no-multiple-empty-lines":()=>dk(),"no-native-reassign":()=>hk(),"no-negated-condition":()=>gk(),"no-negated-in-lhs":()=>yk(),"no-nested-ternary":()=>vk(),"no-new":()=>Sk(),"no-new-func":()=>Ek(),"no-new-native-nonconstructor":()=>bk(),"no-new-object":()=>Ck(),"no-new-require":()=>xk(),"no-new-symbol":()=>wk(),"no-new-wrappers":()=>Ak(),"no-nonoctal-decimal-escape":()=>Tk(),"no-obj-calls":()=>kk(),"no-object-constructor":()=>Dk(),"no-octal":()=>Pk(),"no-octal-escape":()=>Ik(),"no-param-reassign":()=>Fk(),"no-path-concat":()=>Rk(),"no-plusplus":()=>_k(),"no-process-env":()=>Bk(),"no-process-exit":()=>Lk(),"no-promise-executor-return":()=>Ok(),"no-proto":()=>Nk(),"no-prototype-builtins":()=>Mk(),"no-redeclare":()=>jk(),"no-regex-spaces":()=>Uk(),"no-restricted-exports":()=>qk(),"no-restricted-globals":()=>Vk(),"no-restricted-imports":()=>$k(),"no-restricted-modules":()=>Gk(),"no-restricted-properties":()=>Wk(),"no-restricted-syntax":()=>zk(),"no-return-assign":()=>Hk(),"no-return-await":()=>Kk(),"no-script-url":()=>Xk(),"no-self-assign":()=>Jk(),"no-self-compare":()=>Yk(),"no-sequences":()=>Qk(),"no-setter-return":()=>Zk(),"no-shadow":()=>eD(),"no-shadow-restricted-names":()=>tD(),"no-spaced-func":()=>rD(),"no-sparse-arrays":()=>nD(),"no-sync":()=>sD(),"no-tabs":()=>aD(),"no-template-curly-in-string":()=>iD(),"no-ternary":()=>oD(),"no-this-before-super":()=>lD(),"no-throw-literal":()=>uD(),"no-trailing-spaces":()=>cD(),"no-unassigned-vars":()=>fD(),"no-undef":()=>pD(),"no-undef-init":()=>mD(),"no-undefined":()=>dD(),"no-underscore-dangle":()=>hD(),"no-unexpected-multiline":()=>gD(),"no-unmodified-loop-condition":()=>yD(),"no-unneeded-ternary":()=>vD(),"no-unreachable":()=>SD(),"no-unreachable-loop":()=>ED(),"no-unsafe-finally":()=>bD(),"no-unsafe-negation":()=>CD(),"no-unsafe-optional-chaining":()=>xD(),"no-unused-expressions":()=>wD(),"no-unused-labels":()=>AD(),"no-unused-private-class-members":()=>TD(),"no-unused-vars":()=>kD(),"no-use-before-define":()=>DD(),"no-useless-assignment":()=>PD(),"no-useless-backreference":()=>ID(),"no-useless-call":()=>FD(),"no-useless-catch":()=>RD(),"no-useless-computed-key":()=>_D(),"no-useless-concat":()=>BD(),"no-useless-constructor":()=>LD(),"no-useless-escape":()=>OD(),"no-useless-rename":()=>ND(),"no-useless-return":()=>MD(),"no-var":()=>jD(),"no-void":()=>UD(),"no-warning-comments":()=>qD(),"no-whitespace-before-property":()=>VD(),"no-with":()=>$D(),"nonblock-statement-body-position":()=>GD(),"object-curly-newline":()=>WD(),"object-curly-spacing":()=>zD(),"object-property-newline":()=>HD(),"object-shorthand":()=>KD(),"one-var":()=>XD(),"one-var-declaration-per-line":()=>JD(),"operator-assignment":()=>YD(),"operator-linebreak":()=>QD(),"padded-blocks":()=>ZD(),"padding-line-between-statements":()=>eP(),"prefer-arrow-callback":()=>tP(),"prefer-const":()=>rP(),"prefer-destructuring":()=>nP(),"prefer-exponentiation-operator":()=>sP(),"prefer-named-capture-group":()=>aP(),"prefer-numeric-literals":()=>iP(),"prefer-object-has-own":()=>oP(),"prefer-object-spread":()=>lP(),"prefer-promise-reject-errors":()=>uP(),"prefer-reflect":()=>cP(),"prefer-regex-literals":()=>fP(),"prefer-rest-params":()=>pP(),"prefer-spread":()=>mP(),"prefer-template":()=>dP(),"preserve-caught-error":()=>hP(),"quote-props":()=>gP(),quotes:()=>yP(),radix:()=>vP(),"require-atomic-updates":()=>SP(),"require-await":()=>EP(),"require-unicode-regexp":()=>bP(),"require-yield":()=>CP(),"rest-spread-spacing":()=>xP(),semi:()=>wP(),"semi-spacing":()=>AP(),"semi-style":()=>TP(),"sort-imports":()=>kP(),"sort-keys":()=>PP(),"sort-vars":()=>IP(),"space-before-blocks":()=>FP(),"space-before-function-paren":()=>RP(),"space-in-parens":()=>_P(),"space-infix-ops":()=>BP(),"space-unary-ops":()=>LP(),"spaced-comment":()=>OP(),strict:()=>NP(),"switch-colon-spacing":()=>MP(),"symbol-description":()=>jP(),"template-curly-spacing":()=>UP(),"template-tag-spacing":()=>qP(),"unicode-bom":()=>VP(),"use-isnan":()=>$P(),"valid-typeof":()=>GP(),"vars-on-top":()=>WP(),"wrap-iife":()=>zP(),"wrap-regex":()=>HP(),"yield-star-spacing":()=>KP(),yoda:()=>XP()})),Xf}var Jf,Lb;function JP(){if(Lb)return Jf;Lb=1;const a=Bb();class e{constructor(){this._rules=Object.create(null)}define(o,t){this._rules[o]=t}get(o){return typeof this._rules[o]=="string"&&this.define(o,yw(this._rules[o])),this._rules[o]?this._rules[o]:a.has(o)?a.get(o):null}*[Symbol.iterator](){yield*a;for(const o of Object.keys(this._rules))yield[o,this.get(o)]}}return Jf=e,Jf}var Yf,Ob;function YP(){if(Ob)return Yf;Ob=1;const a=kr()("eslint:source-code-fixer"),e="\uFEFF";function n(l,f){return l.fix.range[0]-f.fix.range[0]||l.fix.range[1]-f.fix.range[1]}function o(l,f){return l.line-f.line||l.column-f.column}function t(){Object.freeze(this)}return t.applyFixes=function(l,f,u){if(a("Applying fixes"),u===!1)return a("shouldFix parameter was false, not attempting fixes"),{fixed:!1,messages:f,output:l};const r=[],m=[],i=l.startsWith(e)?e:"",c=i?l.slice(1):l;let d=Number.NEGATIVE_INFINITY,s=i;function p(h){const g=h.fix,v=g.range[0],E=g.range[1];return d>=v||v>E?(r.push(h),!1):((v<0&&E>=0||v===0&&g.text.startsWith(e))&&(s=""),s+=c.slice(Math.max(0,d),Math.max(0,v)),s+=g.text,d=E,!0)}if(f.forEach(h=>{Object.hasOwn(h,"fix")&&h.fix?m.push(h):r.push(h)}),m.length){a("Found fixes to apply");let h=!1;for(const g of m.sort(n))typeof u!="function"||u(g)?(p(g),h=!0):r.push(g);return s+=c.slice(Math.max(0,d)),{fixed:h,messages:r.sort(o),output:s}}return a("No fixes to apply"),{fixed:!1,messages:f,output:i+c}},Yf=t,Yf}var Qf,Nb;function QP(){if(Nb)return Qf;Nb=1;const a=Object.freeze([]);class e{#e=new Map;add(o,t){this.#e.has(o)?this.#e.get(o).push(t):this.#e.set(o,[t])}get(o){return this.#e.has(o)?this.#e.get(o):a}forEachName(o){this.#e.forEach((t,l)=>{o(l)})}callSync(o,...t){this.#e.has(o)&&this.#e.get(o).forEach(l=>l(...t))}}return Qf={SourceCodeVisitor:e},Qf}var Zf,Mb;function jb(){if(Mb)return Zf;Mb=1;function a(){return Ft.hrtime()}function e(n){const o=Ft.hrtime(n);return o[0]*1e3+o[1]/1e6}return Zf={startTime:a,endTime:e},Zf}var ep,Ub;function ZP(){if(Ub)return ep;Ub=1;const{startTime:a,endTime:e}=jb(),n=!!Ft.env.TIMING;function o(){if(typeof Ft.env.TIMING!="string")return 10;if(Ft.env.TIMING.toLowerCase()==="all")return Number.POSITIVE_INFINITY;const l=Number.parseInt(Ft.env.TIMING,10);return l>10?l:10}return ep=(function(){const t=Object.create(null);function l(m,i,c){return function(...d){const s=a(),p=i(...d),h=e(s);return n&&(typeof t[m]>"u"&&(t[m]=0),t[m]+=h),c?{result:p,tdiff:h}:p}}function f(){return{...t}}function u(m){for(const[i,c]of Object.entries(m))typeof t[i]>"u"&&(t[i]=0),t[i]+=c}function r(){}return{time:l,enabled:n,getListSize:o,getData:f,mergeData:u,disableDisplay:r}})(),ep}var tp={},_n={},rp,qb;function eI(){if(qb)return rp;qb=1;const a=new Set([!0,"true","writable","writeable",!1,"false","readonly","readable",null,"off"]);function e(m){return typeof m=="object"&&m!==null}function n(m){return e(m)&&!Array.isArray(m)}function o(m){return typeof m>"u"}function t(m){if(o(m))throw new TypeError('Key "ecmaVersion": Expected an "ecmaVersion" property.');if(typeof m!="number"&&m!=="latest")throw new TypeError('Key "ecmaVersion": Expected a number or "latest".')}function l(m){if(typeof m!="string"||!/^(?:script|module|commonjs)$/u.test(m))throw new TypeError('Key "sourceType": Expected "script", "module", or "commonjs".')}function f(m){if(!n(m))throw new TypeError('Key "globals": Expected an object.');for(const i of Object.keys(m))if(i!=="__proto__"){if(i!==i.trim())throw new TypeError(`Key "globals": Global "${i}" has leading or trailing whitespace.`);if(!a.has(m[i]))throw new TypeError(`Key "globals": Key "${i}": Expected "readonly", "writable", or "off".`)}}function u(m){if(!m||typeof m!="object"||typeof m.parse!="function"&&typeof m.parseForESLint!="function")throw new TypeError('Key "parser": Expected object with parse() or parseForESLint() method.')}function r(m){if(!n(m))throw new TypeError("Expected an object.");const{ecmaVersion:i,sourceType:c,globals:d,parser:s,parserOptions:p,...h}=m;if("ecmaVersion"in m&&t(i),"sourceType"in m&&l(c),"globals"in m&&f(d),"parser"in m&&u(s),"parserOptions"in m&&!n(p))throw new TypeError('Key "parserOptions": Expected an object.');const g=Object.keys(h);if(g.length>0)throw new TypeError(`Unexpected key "${g[0]}" found.`)}return rp={validateLanguageOptions:r},rp}var np,Vb;function $b(){if(Vb)return np;Vb=1;const{SourceCode:a}=Ch(),e=kr(),n=Fn(),o=dn(),t=qn(),l=Gr(),{validateLanguageOptions:f}=eI(),{LATEST_ECMA_VERSION:u}=ci(),r=e("eslint:languages:js"),m=5,i=Symbol.for("eslint.RuleTester.parser");function c(p,h,g){const E=h.parserOptions.ecmaFeatures||{},b=h.ecmaVersion||m;return t.analyze(p,{ignoreEval:!0,nodejsScope:E.globalReturn,impliedStrict:E.impliedStrict,ecmaVersion:typeof b=="number"?b:6,sourceType:h.sourceType||"script",childVisitorKeys:g||l.KEYS,fallback:l.getKeys})}function d(p){return p===o||p[i]===o}function s(p){switch(p){case 3:return 3;case 5:case void 0:return 5;default:if(typeof p=="number")return p>=2015?p:p+2009}return u}return np={fileType:"text",lineStart:1,columnStart:0,nodeTypeKey:"type",visitorKeys:l.KEYS,defaultLanguageOptions:{sourceType:"module",ecmaVersion:"latest",parser:o,parserOptions:{}},validateLanguageOptions:f,normalizeLanguageOptions(p){if(p.ecmaVersion=s(p.ecmaVersion),d(p.parser)){const h=p.parserOptions;p.sourceType&&(h.sourceType=p.sourceType,h.sourceType==="module"&&h.ecmaFeatures&&h.ecmaFeatures.globalReturn&&(h.ecmaFeatures.globalReturn=!1))}return p},matchesSelectorClass(p,h,g){switch(p.toLowerCase()){case"statement":if(h.type.slice(-9)==="Statement")return!0;case"declaration":return h.type.slice(-11)==="Declaration";case"pattern":if(h.type.slice(-7)==="Pattern")return!0;case"expression":return h.type.slice(-10)==="Expression"||h.type.slice(-7)==="Literal"||h.type==="Identifier"&&(g.length===0||g[0].type!=="MetaProperty")||h.type==="MetaProperty";case"function":return h.type==="FunctionDeclaration"||h.type==="FunctionExpression"||h.type==="ArrowFunctionExpression";default:throw new Error(`Unknown class name: ${p}`)}},parse(p,{languageOptions:h}){const{body:g,path:v}=p,E=g.replace(n.shebangPattern,(w,x)=>`//${x}`),{ecmaVersion:b,sourceType:T,parser:C}=h,S=Object.assign({ecmaVersion:b,sourceType:T},h.parserOptions,{loc:!0,range:!0,raw:!0,tokens:!0,comment:!0,eslintVisitorKeys:!0,eslintScopeManager:!0,filePath:v});try{r("Parsing:",v);const w=typeof C.parseForESLint=="function"?C.parseForESLint(E,S):{ast:C.parse(E,S)};r("Parsing successful:",v);const{ast:x,services:A={},visitorKeys:k=l.KEYS,scopeManager:R}=w;return{ok:!0,ast:x,parserServices:A,visitorKeys:k,scopeManager:R}}catch(w){const x=w.message.replace(/^line \d+:/iu,"").trim();return r(`%s
|
|
115
|
+
%s`,x,w.stack),{ok:!1,errors:[{message:x,line:w.lineNumber,column:w.column}]}}},createSourceCode(p,h,{languageOptions:g}){const{body:v,path:E,bom:b}=p,{ast:T,parserServices:C,visitorKeys:S}=h;r("Scope analysis:",E);const w=h.scopeManager||c(T,g,S);return r("Scope analysis successful:",E),new a({text:v,ast:T,hasBOM:b,parserServices:C,scopeManager:w,visitorKeys:S})}},np}var Gb;function tI(){if(Gb)return _n;Gb=1;const a=Bb(),e=[{files:["**/*.js","**/*.mjs"]},{files:["**/*.cjs"],languageOptions:{sourceType:"commonjs",ecmaVersion:"latest"}}];return _n.defaultConfig=Object.freeze([{plugins:{"@":{languages:{js:$b()},rules:new Proxy({},{get(n,o){return a.get(o)},has(n,o){return a.has(o)}})}},language:"@/js",linterOptions:{reportUnusedDisableDirectives:1}},{ignores:["**/node_modules/",".git/"]},...e]),_n.defaultRuleTesterConfig=Object.freeze([{files:["**"]},...e]),_n}var Wb;function rI(){if(Wb)return tp;Wb=1;const{ConfigArray:a,ConfigArraySymbol:e}=Nh(),{flatConfigSchema:n}=Ka(),{defaultConfig:o}=tI(),{Config:t}=ri(),l=new Set(["name","basePath"]);function f(c,d,s){let p="user-defined",h=c.index;return c.index<s?p="base":c.index<d+s?(p="original",h=c.index-s):h=c.index-d-s,new TypeError(`${c.message.slice(0,-1)} at ${p} index ${h}.`,{cause:c})}const u=Symbol("originalBaseConfig"),r=Symbol("originalLength"),m=Symbol("baseLength");class i extends a{constructor(d,{basePath:s,shouldIgnore:p=!0,baseConfig:h=o}={}){super(d,{basePath:s,schema:n}),this[r]=this.length,h[Symbol.iterator]?this.unshift(...h):this.unshift(h),this[m]=this.length-this[r],this[u]=h,Object.defineProperty(this,u,{writable:!1}),this.shouldIgnore=p,Object.defineProperty(this,"shouldIgnore",{writable:!1})}normalize(d){return super.normalize(d).catch(s=>{throw s.name==="ConfigError"?f(s,this[r],this[m]):s})}normalizeSync(d){try{return super.normalizeSync(d)}catch(s){throw s.name==="ConfigError"?f(s,this[r],this[m]):s}}[e.preprocessConfig](d){if(!this.shouldIgnore&&!this[u].includes(d)&&d.ignores&&Object.keys(d).filter(s=>!l.has(s)).length===1){const{ignores:s,...p}=d;return p}return d}[e.finalizeConfig](d){return new t(d)}}return tp.FlatConfigArray=i,tp}var sp,zb;function nI(){if(zb)return sp;zb=1;const a=new Map([["test_only","Used only for testing."],["test_only_2","Used only for testing."],["v10_config_lookup_from_file","Look up `eslint.config.js` from the file being linted."],["unstable_native_nodejs_ts_config","Use native Node.js to load TypeScript configuration."]]),e=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."}],["unstable_ts_config",{description:"Enable TypeScript configuration files.",replacedBy:null}],["unstable_config_lookup_from_file",{description:"Look up `eslint.config.js` from the file being linted.",replacedBy:"v10_config_lookup_from_file"}]]);function n({replacedBy:o}){return typeof o>"u"?"This feature has been abandoned.":typeof o=="string"?`This flag has been renamed '${o}' to reflect its stabilization. Please use '${o}' instead.`:"This feature is now enabled by default."}return sp={activeFlags:a,inactiveFlags:e,getInactivityReasonMessage:n},sp}var ap,Hb;function Kb(){if(Hb)return ap;Hb=1;function a(o){return typeof o=="string"?o.charCodeAt(0)===65279:o[0]===239&&o[1]===187&&o[2]===191}function e(o){return a(o)?typeof o=="string"?o.slice(1):o.slice(3):o}class n{path;physicalPath;body;rawBody;bom;constructor(t,l,{physicalPath:f}={}){this.path=t,this.physicalPath=f??t,this.bom=a(l),this.body=e(l),this.rawBody=l}}return ap={VFile:n},ap}var ip,Xb;function sI(){if(Xb)return ip;Xb=1;class a{parseSync(n,o){const{language:t,languageOptions:l}=o,f=t.parse(n,{languageOptions:l});if(typeof f.then=="function")throw new Error("Unsupported: Language parser returned a promise.");return f.ok?{ok:!0,sourceCode:t.createSourceCode(n,f,{languageOptions:l})}:{ok:!1,errors:f.errors.map(u=>({ruleId:null,nodeType:null,fatal:!0,severity:2,message:`Parsing error: ${u.message}`,line:u.line,column:u.column}))}}}return ip={ParserService:a},ip}var op={},Jb;function aI(){if(Jb)return op;Jb=1;class a{cwd;filename;physicalFilename;sourceCode;parserOptions;parserPath;languageOptions;settings;constructor({cwd:n,filename:o,physicalFilename:t,sourceCode:l,parserOptions:f,parserPath:u,languageOptions:r,settings:m}){this.cwd=n,this.filename=o,this.physicalFilename=t,this.sourceCode=l,this.parserOptions=f,this.parserPath=u,this.languageOptions=r,this.settings=m,Object.freeze(this)}getCwd(){return this.cwd}getFilename(){return this.filename}getPhysicalFilename(){return this.physicalFilename}getSourceCode(){return this.sourceCode}extend(n){return Object.freeze(Object.assign(Object.create(this),n))}}return op.FileContext=a,op}var lp,Yb;function iI(){if(Yb)return lp;Yb=1;const a=pn,{VFile:e}=Kb();class n{preprocessSync(t,l){const{processor:f}=l;let u;try{u=f.preprocess(t.rawBody,t.path)}catch(r){return{ok:!1,errors:[{ruleId:null,fatal:!0,severity:2,message:`Preprocessing error: ${r.message.replace(/^line \d+:/iu,"").trim()}`,line:r.lineNumber,column:r.column,nodeType:null}]}}if(typeof u.then=="function")throw new Error("Unsupported: Preprocessor returned a promise.");return{ok:!0,files:u.map((r,m)=>{if(typeof r=="string")return r;const i=a.join(t.path,`${m}_${r.filename}`);return new e(i,r.text,{physicalPath:t.physicalPath})})}}postprocessSync(t,l,f){const{processor:u}=f;return u.postprocess(l,t.path)}}return lp={ProcessorService:n},lp}var up,Qb;function oI(){if(Qb)return up;Qb=1;function a(e,n){if(e===n)return!1;if(typeof e!=typeof n||Array.isArray(e)!==Array.isArray(n))return!0;if(Array.isArray(e))return e.length!==n.length||e.some((o,t)=>a(o,n[t]));if(typeof e=="object"){if(e===null||n===null)return!0;const o=Object.keys(e),t=Object.keys(n);return o.length!==t.length||o.some(l=>!Object.hasOwn(n,l)||a(e[l],n[l]))}return!0}return up={containsDifferentProperty:a},up}var cp,Zb;function lI(){if(Zb)return cp;Zb=1;class a{constructor({emitWarning:n=globalThis.process?.emitWarning??(()=>{})}={}){this.emitWarning=n}emitCircularFixesWarning(n){this.emitWarning(`Circular fixes detected while fixing ${n}. It is likely that you have conflicting rules in your configuration.`,"ESLintCircularFixesWarning")}emitEmptyConfigWarning(n){this.emitWarning(`Running ESLint with an empty config (from ${n}). 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#ignoring-files',"ESLintIgnoreWarning")}emitESLintRCWarning(){this.emitWarning("You are using an eslintrc configuration file, which is deprecated and support will be removed in v10.0.0. Please migrate to an eslint.config.js file. See https://eslint.org/docs/latest/use/configure/migration-guide for details. An eslintrc configuration file is used because you have the ESLINT_USE_FLAT_CONFIG environment variable set to false. If you want to use an eslint.config.js file, remove the environment variable. If you want to find the location of the eslintrc configuration file, use the --debug flag.","ESLintRCWarning")}emitInactiveFlagWarning(n,o){this.emitWarning(o,`ESLintInactiveFlag_${n}`)}emitPoorConcurrencyWarning(n){this.emitWarning(`You may ${n} to improve performance.`,"ESLintPoorConcurrencyWarning")}emitESLintEnvWarning(n,o){this.emitWarning(`/* eslint-env */ comments are no longer recognized when linting with flat config and will be reported as errors as of v10.0.0. Replace them with /* global */ comments or define globals in your config file. See https://eslint.org/docs/latest/use/configure/migration-guide#eslint-env-configuration-comments for details. Found in ${n} at line ${o}.`,"ESLintEnvWarning")}}return cp={WarningService:a},cp}function sn(a){return(sn=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(e){return typeof e}:function(e){return e&&typeof Symbol=="function"&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(a)}function fp(a,e){return(function(n){if(Array.isArray(n))return n})(a)||(function(n,o){var t=n==null?null:typeof Symbol<"u"&&n[Symbol.iterator]||n["@@iterator"];if(t!=null){var l,f,u,r,m=[],i=!0,c=!1;try{if(u=(t=t.call(n)).next,o!==0)for(;!(i=(l=u.call(t)).done)&&(m.push(l.value),m.length!==o);i=!0);}catch(d){c=!0,f=d}finally{try{if(!i&&t.return!=null&&(r=t.return(),Object(r)!==r))return}finally{if(c)throw f}}return m}})(a,e)||e0(a,e)||(function(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
|
|
116
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function uI(a){return(function(e){if(Array.isArray(e))return pp(e)})(a)||(function(e){if(typeof Symbol<"u"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)})(a)||e0(a)||(function(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
|
|
117
|
+
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)})()}function e0(a,e){if(a){if(typeof a=="string")return pp(a,e);var n=Object.prototype.toString.call(a).slice(8,-1);return n==="Object"&&a.constructor&&(n=a.constructor.name),n==="Map"||n==="Set"?Array.from(a):n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?pp(a,e):void 0}}function pp(a,e){(e==null||e>a.length)&&(e=a.length);for(var n=0,o=new Array(e);n<e;n++)o[n]=a[n];return o}function t0(a,e){return a(e={exports:{}},e.exports),e.exports}var Bn=t0((function(a,e){(function n(o){var t,l,f,u,r,m;function i(b){var T,C,S={};for(T in b)b.hasOwnProperty(T)&&(C=b[T],S[T]=typeof C=="object"&&C!==null?i(C):C);return S}function c(b,T){this.parent=b,this.key=T}function d(b,T,C,S){this.node=b,this.path=T,this.wrap=C,this.ref=S}function s(){}function p(b){return b!=null&&typeof b=="object"&&typeof b.type=="string"}function h(b,T){return(b===t.ObjectExpression||b===t.ObjectPattern)&&T==="properties"}function g(b,T){for(var C=b.length-1;C>=0;--C)if(b[C].node===T)return!0;return!1}function v(b,T){return new s().traverse(b,T)}function E(b,T){var C;return C=(function(S,w){var x,A,k,R;for(A=S.length,k=0;A;)w(S[R=k+(x=A>>>1)])?A=x:(k=R+1,A-=x+1);return k})(T,(function(S){return S.range[0]>b.range[0]})),b.extendedRange=[b.range[0],b.range[1]],C!==T.length&&(b.extendedRange[1]=T[C].range[0]),(C-=1)>=0&&(b.extendedRange[0]=T[C].range[1]),b}return t={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"},f={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"]},l={Break:u={},Skip:r={},Remove:m={}},c.prototype.replace=function(b){this.parent[this.key]=b},c.prototype.remove=function(){return Array.isArray(this.parent)?(this.parent.splice(this.key,1),!0):(this.replace(null),!1)},s.prototype.path=function(){var b,T,C,S,w;function x(A,k){if(Array.isArray(k))for(C=0,S=k.length;C<S;++C)A.push(k[C]);else A.push(k)}if(!this.__current.path)return null;for(w=[],b=2,T=this.__leavelist.length;b<T;++b)x(w,this.__leavelist[b].path);return x(w,this.__current.path),w},s.prototype.type=function(){return this.current().type||this.__current.wrap},s.prototype.parents=function(){var b,T,C;for(C=[],b=1,T=this.__leavelist.length;b<T;++b)C.push(this.__leavelist[b].node);return C},s.prototype.current=function(){return this.__current.node},s.prototype.__execute=function(b,T){var C,S;return S=void 0,C=this.__current,this.__current=T,this.__state=null,b&&(S=b.call(this,T.node,this.__leavelist[this.__leavelist.length-1].node)),this.__current=C,S},s.prototype.notify=function(b){this.__state=b},s.prototype.skip=function(){this.notify(r)},s.prototype.break=function(){this.notify(u)},s.prototype.remove=function(){this.notify(m)},s.prototype.__initialize=function(b,T){this.visitor=T,this.root=b,this.__worklist=[],this.__leavelist=[],this.__current=null,this.__state=null,this.__fallback=null,T.fallback==="iteration"?this.__fallback=Object.keys:typeof T.fallback=="function"&&(this.__fallback=T.fallback),this.__keys=f,T.keys&&(this.__keys=Object.assign(Object.create(this.__keys),T.keys))},s.prototype.traverse=function(b,T){var C,S,w,x,A,k,R,I,B,F,O,$;for(this.__initialize(b,T),$={},C=this.__worklist,S=this.__leavelist,C.push(new d(b,null,null,null)),S.push(new d(null,null,null,null));C.length;)if((w=C.pop())!==$){if(w.node){if(k=this.__execute(T.enter,w),this.__state===u||k===u)return;if(C.push($),S.push(w),this.__state===r||k===r)continue;if(A=(x=w.node).type||w.wrap,!(F=this.__keys[A])){if(!this.__fallback)throw new Error("Unknown node type "+A+".");F=this.__fallback(x)}for(I=F.length;(I-=1)>=0;)if(O=x[R=F[I]]){if(Array.isArray(O)){for(B=O.length;(B-=1)>=0;)if(O[B]&&!g(S,O[B])){if(h(A,F[I]))w=new d(O[B],[R,B],"Property",null);else{if(!p(O[B]))continue;w=new d(O[B],[R,B],null,null)}C.push(w)}}else if(p(O)){if(g(S,O))continue;C.push(new d(O,R,null,null))}}}}else if(w=S.pop(),k=this.__execute(T.leave,w),this.__state===u||k===u)return},s.prototype.replace=function(b,T){var C,S,w,x,A,k,R,I,B,F,O,$,N;function _(X){var L,K,J,ge;if(X.ref.remove()){for(K=X.ref.key,ge=X.ref.parent,L=C.length;L--;)if((J=C[L]).ref&&J.ref.parent===ge){if(J.ref.key<K)break;--J.ref.key}}}for(this.__initialize(b,T),O={},C=this.__worklist,S=this.__leavelist,k=new d(b,null,null,new c($={root:b},"root")),C.push(k),S.push(k);C.length;)if((k=C.pop())!==O){if((A=this.__execute(T.enter,k))!==void 0&&A!==u&&A!==r&&A!==m&&(k.ref.replace(A),k.node=A),this.__state!==m&&A!==m||(_(k),k.node=null),this.__state===u||A===u)return $.root;if((w=k.node)&&(C.push(O),S.push(k),this.__state!==r&&A!==r)){if(x=w.type||k.wrap,!(B=this.__keys[x])){if(!this.__fallback)throw new Error("Unknown node type "+x+".");B=this.__fallback(w)}for(R=B.length;(R-=1)>=0;)if(F=w[N=B[R]])if(Array.isArray(F)){for(I=F.length;(I-=1)>=0;)if(F[I]){if(h(x,B[R]))k=new d(F[I],[N,I],"Property",new c(F,I));else{if(!p(F[I]))continue;k=new d(F[I],[N,I],null,new c(F,I))}C.push(k)}}else p(F)&&C.push(new d(F,N,null,new c(w,N)))}}else if(k=S.pop(),(A=this.__execute(T.leave,k))!==void 0&&A!==u&&A!==r&&A!==m&&k.ref.replace(A),this.__state!==m&&A!==m||_(k),this.__state===u||A===u)return $.root;return $.root},o.Syntax=t,o.traverse=v,o.replace=function(b,T){return new s().replace(b,T)},o.attachComments=function(b,T,C){var S,w,x,A,k=[];if(!b.range)throw new Error("attachComments needs range information");if(!C.length){if(T.length){for(x=0,w=T.length;x<w;x+=1)(S=i(T[x])).extendedRange=[0,b.range[0]],k.push(S);b.leadingComments=k}return b}for(x=0,w=T.length;x<w;x+=1)k.push(E(i(T[x]),C));return A=0,v(b,{enter:function(R){for(var I;A<k.length&&!((I=k[A]).extendedRange[1]>R.range[0]);)I.extendedRange[1]===R.range[0]?(R.leadingComments||(R.leadingComments=[]),R.leadingComments.push(I),k.splice(A,1)):A+=1;return A===k.length?l.Break:k[A].extendedRange[0]>R.range[1]?l.Skip:void 0}}),A=0,v(b,{leave:function(R){for(var I;A<k.length&&(I=k[A],!(R.range[1]<I.extendedRange[0]));)R.range[1]===I.extendedRange[0]?(R.trailingComments||(R.trailingComments=[]),R.trailingComments.push(I),k.splice(A,1)):A+=1;return A===k.length?l.Break:k[A].extendedRange[0]>R.range[1]?l.Skip:void 0}}),b},o.VisitorKeys=f,o.VisitorOption=l,o.Controller=s,o.cloneEnvironment=function(){return n({})},o})(e)})),cI=t0((function(a){a.exports&&(a.exports=(function(){function e(n,o,t,l){this.message=n,this.expected=o,this.found=t,this.location=l,this.name="SyntaxError",typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,e)}return(function(n,o){function t(){this.constructor=n}t.prototype=o.prototype,n.prototype=new t})(e,Error),e.buildMessage=function(n,o){var t={literal:function(r){return'"'+f(r.text)+'"'},class:function(r){var m,i="";for(m=0;m<r.parts.length;m++)i+=r.parts[m]instanceof Array?u(r.parts[m][0])+"-"+u(r.parts[m][1]):u(r.parts[m]);return"["+(r.inverted?"^":"")+i+"]"},any:function(r){return"any character"},end:function(r){return"end of input"},other:function(r){return r.description}};function l(r){return r.charCodeAt(0).toString(16).toUpperCase()}function f(r){return r.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(m){return"\\x0"+l(m)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(m){return"\\x"+l(m)}))}function u(r){return r.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(m){return"\\x0"+l(m)})).replace(/[\x10-\x1F\x7F-\x9F]/g,(function(m){return"\\x"+l(m)}))}return"Expected "+(function(r){var m,i,c,d=new Array(r.length);for(m=0;m<r.length;m++)d[m]=(c=r[m],t[c.type](c));if(d.sort(),d.length>0){for(m=1,i=1;m<d.length;m++)d[m-1]!==d[m]&&(d[i]=d[m],i++);d.length=i}switch(d.length){case 1:return d[0];case 2:return d[0]+" or "+d[1];default:return d.slice(0,-1).join(", ")+", or "+d[d.length-1]}})(n)+" but "+(function(r){return r?'"'+f(r)+'"':"end of input"})(o)+" found."},{SyntaxError:e,parse:function(n,o){o=o!==void 0?o:{};var t,l,f,u,r={},m={start:St},i=St,c=$e(" ",!1),d=/^[^ [\],():#!=><~+.]/,s=st([" ","[","]",",","(",")",":","#","!","=",">","<","~","+","."],!0,!1),p=$e(">",!1),h=$e("~",!1),g=$e("+",!1),v=$e(",",!1),E=$e("!",!1),b=$e("*",!1),T=$e("#",!1),C=$e("[",!1),S=$e("]",!1),w=/^[><!]/,x=st([">","<","!"],!1,!1),A=$e("=",!1),k=function(te){return(te||"")+"="},R=/^[><]/,I=st([">","<"],!1,!1),B=$e(".",!1),F=function(te,q,se){return{type:"attribute",name:te,operator:q,value:se}},O=$e('"',!1),$=/^[^\\"]/,N=st(["\\",'"'],!0,!1),_=$e("\\",!1),X={type:"any"},L=function(te,q){return te+q},K=function(te){return{type:"literal",value:(q=te.join(""),q.replace(/\\(.)/g,(function(se,ue){switch(ue){case"b":return"\b";case"f":return"\f";case"n":return`
|
|
118
|
+
`;case"r":return"\r";case"t":return" ";case"v":return"\v";default:return ue}})))};var q},J=$e("'",!1),ge=/^[^\\']/,ae=st(["\\","'"],!0,!1),ke=/^[0-9]/,Z=st([["0","9"]],!1,!1),P=$e("type(",!1),H=/^[^ )]/,fe=st([" ",")"],!0,!1),ce=$e(")",!1),ie=/^[imsu]/,he=st(["i","m","s","u"],!1,!1),Ee=$e("/",!1),Ce=/^[^\/]/,Ae=st(["/"],!0,!1),ee=$e(":not(",!1),ne=$e(":matches(",!1),we=$e(":has(",!1),z=$e(":first-child",!1),oe=$e(":last-child",!1),Te=$e(":nth-child(",!1),Re=$e(":nth-last-child(",!1),Ie=$e(":",!1),W=0,Je=[{line:1,column:1}],ut=0,tt=[],qe={};if("startRule"in o){if(!(o.startRule in m))throw new Error(`Can't start parsing from rule "`+o.startRule+'".');i=m[o.startRule]}function $e(te,q){return{type:"literal",text:te,ignoreCase:q}}function st(te,q,se){return{type:"class",parts:te,inverted:q,ignoreCase:se}}function mt(te){var q,se=Je[te];if(se)return se;for(q=te-1;!Je[q];)q--;for(se={line:(se=Je[q]).line,column:se.column};q<te;)n.charCodeAt(q)===10?(se.line++,se.column=1):se.column++,q++;return Je[te]=se,se}function rt(te,q){var se=mt(te),ue=mt(q);return{start:{offset:te,line:se.line,column:se.column},end:{offset:q,line:ue.line,column:ue.column}}}function Qe(te){W<ut||(W>ut&&(ut=W,tt=[]),tt.push(te))}function St(){var te,q,se,ue,be=30*W+0,Oe=qe[be];return Oe?(W=Oe.nextPos,Oe.result):(te=W,(q=Ze())!==r&&(se=Ge())!==r&&Ze()!==r?te=q=(ue=se).length===1?ue[0]:{type:"matches",selectors:ue}:(W=te,te=r),te===r&&(te=W,(q=Ze())!==r&&(q=void 0),te=q),qe[be]={nextPos:W,result:te},te)}function Ze(){var te,q,se=30*W+1,ue=qe[se];if(ue)return W=ue.nextPos,ue.result;for(te=[],n.charCodeAt(W)===32?(q=" ",W++):(q=r,Qe(c));q!==r;)te.push(q),n.charCodeAt(W)===32?(q=" ",W++):(q=r,Qe(c));return qe[se]={nextPos:W,result:te},te}function Ct(){var te,q,se,ue=30*W+2,be=qe[ue];if(be)return W=be.nextPos,be.result;if(q=[],d.test(n.charAt(W))?(se=n.charAt(W),W++):(se=r,Qe(s)),se!==r)for(;se!==r;)q.push(se),d.test(n.charAt(W))?(se=n.charAt(W),W++):(se=r,Qe(s));else q=r;return q!==r&&(q=q.join("")),te=q,qe[ue]={nextPos:W,result:te},te}function Ke(){var te,q,se,ue=30*W+3,be=qe[ue];return be?(W=be.nextPos,be.result):(te=W,(q=Ze())!==r?(n.charCodeAt(W)===62?(se=">",W++):(se=r,Qe(p)),se!==r&&Ze()!==r?te=q="child":(W=te,te=r)):(W=te,te=r),te===r&&(te=W,(q=Ze())!==r?(n.charCodeAt(W)===126?(se="~",W++):(se=r,Qe(h)),se!==r&&Ze()!==r?te=q="sibling":(W=te,te=r)):(W=te,te=r),te===r&&(te=W,(q=Ze())!==r?(n.charCodeAt(W)===43?(se="+",W++):(se=r,Qe(g)),se!==r&&Ze()!==r?te=q="adjacent":(W=te,te=r)):(W=te,te=r),te===r&&(te=W,n.charCodeAt(W)===32?(q=" ",W++):(q=r,Qe(c)),q!==r&&(se=Ze())!==r?te=q="descendant":(W=te,te=r)))),qe[ue]={nextPos:W,result:te},te)}function Ge(){var te,q,se,ue,be,Oe,Pe,We,ze=30*W+4,me=qe[ze];if(me)return W=me.nextPos,me.result;if(te=W,(q=Se())!==r){for(se=[],ue=W,(be=Ze())!==r?(n.charCodeAt(W)===44?(Oe=",",W++):(Oe=r,Qe(v)),Oe!==r&&(Pe=Ze())!==r&&(We=Se())!==r?ue=be=[be,Oe,Pe,We]:(W=ue,ue=r)):(W=ue,ue=r);ue!==r;)se.push(ue),ue=W,(be=Ze())!==r?(n.charCodeAt(W)===44?(Oe=",",W++):(Oe=r,Qe(v)),Oe!==r&&(Pe=Ze())!==r&&(We=Se())!==r?ue=be=[be,Oe,Pe,We]:(W=ue,ue=r)):(W=ue,ue=r);se!==r?te=q=[q].concat(se.map((function(pe){return pe[3]}))):(W=te,te=r)}else W=te,te=r;return qe[ze]={nextPos:W,result:te},te}function Se(){var te,q,se,ue,be,Oe,Pe,We=30*W+5,ze=qe[We];if(ze)return W=ze.nextPos,ze.result;if(te=W,(q=j())!==r){for(se=[],ue=W,(be=Ke())!==r&&(Oe=j())!==r?ue=be=[be,Oe]:(W=ue,ue=r);ue!==r;)se.push(ue),ue=W,(be=Ke())!==r&&(Oe=j())!==r?ue=be=[be,Oe]:(W=ue,ue=r);se!==r?(Pe=q,te=q=se.reduce((function(me,pe){return{type:pe[0],left:me,right:pe[1]}}),Pe)):(W=te,te=r)}else W=te,te=r;return qe[We]={nextPos:W,result:te},te}function j(){var te,q,se,ue,be,Oe,Pe,We=30*W+6,ze=qe[We];if(ze)return W=ze.nextPos,ze.result;if(te=W,n.charCodeAt(W)===33?(q="!",W++):(q=r,Qe(E)),q===r&&(q=null),q!==r){if(se=[],(ue=U())!==r)for(;ue!==r;)se.push(ue),ue=U();else se=r;se!==r?(be=q,Pe=(Oe=se).length===1?Oe[0]:{type:"compound",selectors:Oe},be&&(Pe.subject=!0),te=q=Pe):(W=te,te=r)}else W=te,te=r;return qe[We]={nextPos:W,result:te},te}function U(){var te,q=30*W+7,se=qe[q];return se?(W=se.nextPos,se.result):((te=(function(){var ue,be,Oe=30*W+8,Pe=qe[Oe];return Pe?(W=Pe.nextPos,Pe.result):(n.charCodeAt(W)===42?(be="*",W++):(be=r,Qe(b)),be!==r&&(be={type:"wildcard",value:be}),ue=be,qe[Oe]={nextPos:W,result:ue},ue)})())===r&&(te=(function(){var ue,be,Oe,Pe=30*W+9,We=qe[Pe];return We?(W=We.nextPos,We.result):(ue=W,n.charCodeAt(W)===35?(be="#",W++):(be=r,Qe(T)),be===r&&(be=null),be!==r&&(Oe=Ct())!==r?ue=be={type:"identifier",value:Oe}:(W=ue,ue=r),qe[Pe]={nextPos:W,result:ue},ue)})())===r&&(te=(function(){var ue,be,Oe,Pe,We=30*W+10,ze=qe[We];return ze?(W=ze.nextPos,ze.result):(ue=W,n.charCodeAt(W)===91?(be="[",W++):(be=r,Qe(C)),be!==r&&Ze()!==r&&(Oe=(function(){var me,pe,ve,De,Fe=30*W+14,at=qe[Fe];return at?(W=at.nextPos,at.result):(me=W,(pe=V())!==r&&Ze()!==r&&(ve=(function(){var Ue,Xe,ot,He=30*W+12,nt=qe[He];return nt?(W=nt.nextPos,nt.result):(Ue=W,n.charCodeAt(W)===33?(Xe="!",W++):(Xe=r,Qe(E)),Xe===r&&(Xe=null),Xe!==r?(n.charCodeAt(W)===61?(ot="=",W++):(ot=r,Qe(A)),ot!==r?(Xe=k(Xe),Ue=Xe):(W=Ue,Ue=r)):(W=Ue,Ue=r),qe[He]={nextPos:W,result:Ue},Ue)})())!==r&&Ze()!==r?((De=(function(){var Ue,Xe,ot,He,nt,pt=30*W+18,ht=qe[pt];if(ht)return W=ht.nextPos,ht.result;if(Ue=W,n.substr(W,5)==="type("?(Xe="type(",W+=5):(Xe=r,Qe(P)),Xe!==r)if(Ze()!==r){if(ot=[],H.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(fe)),He!==r)for(;He!==r;)ot.push(He),H.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(fe));else ot=r;ot!==r&&(He=Ze())!==r?(n.charCodeAt(W)===41?(nt=")",W++):(nt=r,Qe(ce)),nt!==r?(Xe={type:"type",value:ot.join("")},Ue=Xe):(W=Ue,Ue=r)):(W=Ue,Ue=r)}else W=Ue,Ue=r;else W=Ue,Ue=r;return qe[pt]={nextPos:W,result:Ue},Ue})())===r&&(De=(function(){var Ue,Xe,ot,He,nt,pt,ht=30*W+20,ft=qe[ht];if(ft)return W=ft.nextPos,ft.result;if(Ue=W,n.charCodeAt(W)===47?(Xe="/",W++):(Xe=r,Qe(Ee)),Xe!==r){if(ot=[],Ce.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(Ae)),He!==r)for(;He!==r;)ot.push(He),Ce.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(Ae));else ot=r;ot!==r?(n.charCodeAt(W)===47?(He="/",W++):(He=r,Qe(Ee)),He!==r?((nt=(function(){var gt,xt,bt=30*W+19,Rt=qe[bt];if(Rt)return W=Rt.nextPos,Rt.result;if(gt=[],ie.test(n.charAt(W))?(xt=n.charAt(W),W++):(xt=r,Qe(he)),xt!==r)for(;xt!==r;)gt.push(xt),ie.test(n.charAt(W))?(xt=n.charAt(W),W++):(xt=r,Qe(he));else gt=r;return qe[bt]={nextPos:W,result:gt},gt})())===r&&(nt=null),nt!==r?(pt=nt,Xe={type:"regexp",value:new RegExp(ot.join(""),pt?pt.join(""):"")},Ue=Xe):(W=Ue,Ue=r)):(W=Ue,Ue=r)):(W=Ue,Ue=r)}else W=Ue,Ue=r;return qe[ht]={nextPos:W,result:Ue},Ue})()),De!==r?(pe=F(pe,ve,De),me=pe):(W=me,me=r)):(W=me,me=r),me===r&&(me=W,(pe=V())!==r&&Ze()!==r&&(ve=(function(){var Ue,Xe,ot,He=30*W+11,nt=qe[He];return nt?(W=nt.nextPos,nt.result):(Ue=W,w.test(n.charAt(W))?(Xe=n.charAt(W),W++):(Xe=r,Qe(x)),Xe===r&&(Xe=null),Xe!==r?(n.charCodeAt(W)===61?(ot="=",W++):(ot=r,Qe(A)),ot!==r?(Xe=k(Xe),Ue=Xe):(W=Ue,Ue=r)):(W=Ue,Ue=r),Ue===r&&(R.test(n.charAt(W))?(Ue=n.charAt(W),W++):(Ue=r,Qe(I))),qe[He]={nextPos:W,result:Ue},Ue)})())!==r&&Ze()!==r?((De=(function(){var Ue,Xe,ot,He,nt,pt,ht=30*W+15,ft=qe[ht];if(ft)return W=ft.nextPos,ft.result;if(Ue=W,n.charCodeAt(W)===34?(Xe='"',W++):(Xe=r,Qe(O)),Xe!==r){for(ot=[],$.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(N)),He===r&&(He=W,n.charCodeAt(W)===92?(nt="\\",W++):(nt=r,Qe(_)),nt!==r?(n.length>W?(pt=n.charAt(W),W++):(pt=r,Qe(X)),pt!==r?(nt=L(nt,pt),He=nt):(W=He,He=r)):(W=He,He=r));He!==r;)ot.push(He),$.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(N)),He===r&&(He=W,n.charCodeAt(W)===92?(nt="\\",W++):(nt=r,Qe(_)),nt!==r?(n.length>W?(pt=n.charAt(W),W++):(pt=r,Qe(X)),pt!==r?(nt=L(nt,pt),He=nt):(W=He,He=r)):(W=He,He=r));ot!==r?(n.charCodeAt(W)===34?(He='"',W++):(He=r,Qe(O)),He!==r?(Xe=K(ot),Ue=Xe):(W=Ue,Ue=r)):(W=Ue,Ue=r)}else W=Ue,Ue=r;if(Ue===r)if(Ue=W,n.charCodeAt(W)===39?(Xe="'",W++):(Xe=r,Qe(J)),Xe!==r){for(ot=[],ge.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(ae)),He===r&&(He=W,n.charCodeAt(W)===92?(nt="\\",W++):(nt=r,Qe(_)),nt!==r?(n.length>W?(pt=n.charAt(W),W++):(pt=r,Qe(X)),pt!==r?(nt=L(nt,pt),He=nt):(W=He,He=r)):(W=He,He=r));He!==r;)ot.push(He),ge.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(ae)),He===r&&(He=W,n.charCodeAt(W)===92?(nt="\\",W++):(nt=r,Qe(_)),nt!==r?(n.length>W?(pt=n.charAt(W),W++):(pt=r,Qe(X)),pt!==r?(nt=L(nt,pt),He=nt):(W=He,He=r)):(W=He,He=r));ot!==r?(n.charCodeAt(W)===39?(He="'",W++):(He=r,Qe(J)),He!==r?(Xe=K(ot),Ue=Xe):(W=Ue,Ue=r)):(W=Ue,Ue=r)}else W=Ue,Ue=r;return qe[ht]={nextPos:W,result:Ue},Ue})())===r&&(De=(function(){var Ue,Xe,ot,He,nt,pt,ht,ft=30*W+16,gt=qe[ft];if(gt)return W=gt.nextPos,gt.result;for(Ue=W,Xe=W,ot=[],ke.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(Z));He!==r;)ot.push(He),ke.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(Z));if(ot!==r?(n.charCodeAt(W)===46?(He=".",W++):(He=r,Qe(B)),He!==r?Xe=ot=[ot,He]:(W=Xe,Xe=r)):(W=Xe,Xe=r),Xe===r&&(Xe=null),Xe!==r){if(ot=[],ke.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(Z)),He!==r)for(;He!==r;)ot.push(He),ke.test(n.charAt(W))?(He=n.charAt(W),W++):(He=r,Qe(Z));else ot=r;ot!==r?(pt=ot,ht=(nt=Xe)?[].concat.apply([],nt).join(""):"",Xe={type:"literal",value:parseFloat(ht+pt.join(""))},Ue=Xe):(W=Ue,Ue=r)}else W=Ue,Ue=r;return qe[ft]={nextPos:W,result:Ue},Ue})())===r&&(De=(function(){var Ue,Xe,ot=30*W+17,He=qe[ot];return He?(W=He.nextPos,He.result):((Xe=Ct())!==r&&(Xe={type:"literal",value:Xe}),Ue=Xe,qe[ot]={nextPos:W,result:Ue},Ue)})()),De!==r?(pe=F(pe,ve,De),me=pe):(W=me,me=r)):(W=me,me=r),me===r&&(me=W,(pe=V())!==r&&(pe={type:"attribute",name:pe}),me=pe)),qe[Fe]={nextPos:W,result:me},me)})())!==r&&Ze()!==r?(n.charCodeAt(W)===93?(Pe="]",W++):(Pe=r,Qe(S)),Pe!==r?ue=be=Oe:(W=ue,ue=r)):(W=ue,ue=r),qe[We]={nextPos:W,result:ue},ue)})())===r&&(te=(function(){var ue,be,Oe,Pe,We,ze,me,pe,ve=30*W+21,De=qe[ve];if(De)return W=De.nextPos,De.result;if(ue=W,n.charCodeAt(W)===46?(be=".",W++):(be=r,Qe(B)),be!==r)if((Oe=Ct())!==r){for(Pe=[],We=W,n.charCodeAt(W)===46?(ze=".",W++):(ze=r,Qe(B)),ze!==r&&(me=Ct())!==r?We=ze=[ze,me]:(W=We,We=r);We!==r;)Pe.push(We),We=W,n.charCodeAt(W)===46?(ze=".",W++):(ze=r,Qe(B)),ze!==r&&(me=Ct())!==r?We=ze=[ze,me]:(W=We,We=r);Pe!==r?(pe=Oe,be={type:"field",name:Pe.reduce((function(Fe,at){return Fe+at[0]+at[1]}),pe)},ue=be):(W=ue,ue=r)}else W=ue,ue=r;else W=ue,ue=r;return qe[ve]={nextPos:W,result:ue},ue})())===r&&(te=(function(){var ue,be,Oe,Pe,We=30*W+22,ze=qe[We];return ze?(W=ze.nextPos,ze.result):(ue=W,n.substr(W,5)===":not("?(be=":not(",W+=5):(be=r,Qe(ee)),be!==r&&Ze()!==r&&(Oe=Ge())!==r&&Ze()!==r?(n.charCodeAt(W)===41?(Pe=")",W++):(Pe=r,Qe(ce)),Pe!==r?ue=be={type:"not",selectors:Oe}:(W=ue,ue=r)):(W=ue,ue=r),qe[We]={nextPos:W,result:ue},ue)})())===r&&(te=(function(){var ue,be,Oe,Pe,We=30*W+23,ze=qe[We];return ze?(W=ze.nextPos,ze.result):(ue=W,n.substr(W,9)===":matches("?(be=":matches(",W+=9):(be=r,Qe(ne)),be!==r&&Ze()!==r&&(Oe=Ge())!==r&&Ze()!==r?(n.charCodeAt(W)===41?(Pe=")",W++):(Pe=r,Qe(ce)),Pe!==r?ue=be={type:"matches",selectors:Oe}:(W=ue,ue=r)):(W=ue,ue=r),qe[We]={nextPos:W,result:ue},ue)})())===r&&(te=(function(){var ue,be,Oe,Pe,We=30*W+24,ze=qe[We];return ze?(W=ze.nextPos,ze.result):(ue=W,n.substr(W,5)===":has("?(be=":has(",W+=5):(be=r,Qe(we)),be!==r&&Ze()!==r&&(Oe=Ge())!==r&&Ze()!==r?(n.charCodeAt(W)===41?(Pe=")",W++):(Pe=r,Qe(ce)),Pe!==r?ue=be={type:"has",selectors:Oe}:(W=ue,ue=r)):(W=ue,ue=r),qe[We]={nextPos:W,result:ue},ue)})())===r&&(te=(function(){var ue,be,Oe=30*W+25,Pe=qe[Oe];return Pe?(W=Pe.nextPos,Pe.result):(n.substr(W,12)===":first-child"?(be=":first-child",W+=12):(be=r,Qe(z)),be!==r&&(be=Q(1)),ue=be,qe[Oe]={nextPos:W,result:ue},ue)})())===r&&(te=(function(){var ue,be,Oe=30*W+26,Pe=qe[Oe];return Pe?(W=Pe.nextPos,Pe.result):(n.substr(W,11)===":last-child"?(be=":last-child",W+=11):(be=r,Qe(oe)),be!==r&&(be=le(1)),ue=be,qe[Oe]={nextPos:W,result:ue},ue)})())===r&&(te=(function(){var ue,be,Oe,Pe,We,ze=30*W+27,me=qe[ze];if(me)return W=me.nextPos,me.result;if(ue=W,n.substr(W,11)===":nth-child("?(be=":nth-child(",W+=11):(be=r,Qe(Te)),be!==r)if(Ze()!==r){if(Oe=[],ke.test(n.charAt(W))?(Pe=n.charAt(W),W++):(Pe=r,Qe(Z)),Pe!==r)for(;Pe!==r;)Oe.push(Pe),ke.test(n.charAt(W))?(Pe=n.charAt(W),W++):(Pe=r,Qe(Z));else Oe=r;Oe!==r&&(Pe=Ze())!==r?(n.charCodeAt(W)===41?(We=")",W++):(We=r,Qe(ce)),We!==r?(be=Q(parseInt(Oe.join(""),10)),ue=be):(W=ue,ue=r)):(W=ue,ue=r)}else W=ue,ue=r;else W=ue,ue=r;return qe[ze]={nextPos:W,result:ue},ue})())===r&&(te=(function(){var ue,be,Oe,Pe,We,ze=30*W+28,me=qe[ze];if(me)return W=me.nextPos,me.result;if(ue=W,n.substr(W,16)===":nth-last-child("?(be=":nth-last-child(",W+=16):(be=r,Qe(Re)),be!==r)if(Ze()!==r){if(Oe=[],ke.test(n.charAt(W))?(Pe=n.charAt(W),W++):(Pe=r,Qe(Z)),Pe!==r)for(;Pe!==r;)Oe.push(Pe),ke.test(n.charAt(W))?(Pe=n.charAt(W),W++):(Pe=r,Qe(Z));else Oe=r;Oe!==r&&(Pe=Ze())!==r?(n.charCodeAt(W)===41?(We=")",W++):(We=r,Qe(ce)),We!==r?(be=le(parseInt(Oe.join(""),10)),ue=be):(W=ue,ue=r)):(W=ue,ue=r)}else W=ue,ue=r;else W=ue,ue=r;return qe[ze]={nextPos:W,result:ue},ue})())===r&&(te=(function(){var ue,be,Oe,Pe=30*W+29,We=qe[Pe];return We?(W=We.nextPos,We.result):(ue=W,n.charCodeAt(W)===58?(be=":",W++):(be=r,Qe(Ie)),be!==r&&(Oe=Ct())!==r?ue=be={type:"class",name:Oe}:(W=ue,ue=r),qe[Pe]={nextPos:W,result:ue},ue)})()),qe[q]={nextPos:W,result:te},te)}function V(){var te,q,se,ue,be,Oe,Pe,We,ze=30*W+13,me=qe[ze];if(me)return W=me.nextPos,me.result;if(te=W,(q=Ct())!==r){for(se=[],ue=W,n.charCodeAt(W)===46?(be=".",W++):(be=r,Qe(B)),be!==r&&(Oe=Ct())!==r?ue=be=[be,Oe]:(W=ue,ue=r);ue!==r;)se.push(ue),ue=W,n.charCodeAt(W)===46?(be=".",W++):(be=r,Qe(B)),be!==r&&(Oe=Ct())!==r?ue=be=[be,Oe]:(W=ue,ue=r);se!==r?(Pe=q,We=se,te=q=[].concat.apply([Pe],We).join("")):(W=te,te=r)}else W=te,te=r;return qe[ze]={nextPos:W,result:te},te}function Q(te){return{type:"nth-child",index:{type:"literal",value:te}}}function le(te){return{type:"nth-last-child",index:{type:"literal",value:te}}}if((t=i())!==r&&W===n.length)return t;throw t!==r&&W<n.length&&Qe({type:"end"}),l=tt,f=ut<n.length?n.charAt(ut):null,u=ut<n.length?rt(ut,ut+1):rt(ut,ut),new e(e.buildMessage(l,f),l,f,u)}}})())}));function tr(a,e){for(var n=0;n<e.length;++n){if(a==null)return a;a=a[e[n]]}return a}var mp=typeof WeakMap=="function"?new WeakMap:null;function Vt(a){if(a==null)return function(){return!0};if(mp!=null){var e=mp.get(a);return e!=null||(e=r0(a),mp.set(a,e)),e}return r0(a)}function r0(a){switch(a.type){case"wildcard":return function(){return!0};case"identifier":var e=a.value.toLowerCase();return function(S,w,x){var A=x&&x.nodeTypeKey||"type";return e===S[A].toLowerCase()};case"field":var n=a.name.split(".");return function(S,w){return(function x(A,k,R,I){for(var B=k,F=I;F<R.length;++F){if(B==null)return!1;var O=B[R[F]];if(Array.isArray(O)){for(var $=0;$<O.length;++$)if(x(A,O[$],R,F+1))return!0;return!1}B=O}return A===B})(S,w[n.length-1],n,0)};case"matches":var o=a.selectors.map(Vt);return function(S,w,x){for(var A=0;A<o.length;++A)if(o[A](S,w,x))return!0;return!1};case"compound":var t=a.selectors.map(Vt);return function(S,w,x){for(var A=0;A<t.length;++A)if(!t[A](S,w,x))return!1;return!0};case"not":var l=a.selectors.map(Vt);return function(S,w,x){for(var A=0;A<l.length;++A)if(l[A](S,w,x))return!1;return!0};case"has":var f=a.selectors.map(Vt);return function(S,w,x){var A=!1,k=[];return Bn.traverse(S,{enter:function(R,I){I!=null&&k.unshift(I);for(var B=0;B<f.length;++B)if(f[B](R,k,x))return A=!0,void this.break()},leave:function(){k.shift()},keys:x&&x.visitorKeys,fallback:x&&x.fallback||"iteration"}),A};case"child":var u=Vt(a.left),r=Vt(a.right);return function(S,w,x){return!!(w.length>0&&r(S,w,x))&&u(w[0],w.slice(1),x)};case"descendant":var m=Vt(a.left),i=Vt(a.right);return function(S,w,x){if(i(S,w,x)){for(var A=0,k=w.length;A<k;++A)if(m(w[A],w.slice(A+1),x))return!0}return!1};case"attribute":var c=a.name.split(".");switch(a.operator){case void 0:return function(S){return tr(S,c)!=null};case"=":switch(a.value.type){case"regexp":return function(S){var w=tr(S,c);return typeof w=="string"&&a.value.value.test(w)};case"literal":var d="".concat(a.value.value);return function(S){return d==="".concat(tr(S,c))};case"type":return function(S){return a.value.value===sn(tr(S,c))}}throw new Error("Unknown selector value type: ".concat(a.value.type));case"!=":switch(a.value.type){case"regexp":return function(S){return!a.value.value.test(tr(S,c))};case"literal":var s="".concat(a.value.value);return function(S){return s!=="".concat(tr(S,c))};case"type":return function(S){return a.value.value!==sn(tr(S,c))}}throw new Error("Unknown selector value type: ".concat(a.value.type));case"<=":return function(S){return tr(S,c)<=a.value.value};case"<":return function(S){return tr(S,c)<a.value.value};case">":return function(S){return tr(S,c)>a.value.value};case">=":return function(S){return tr(S,c)>=a.value.value}}throw new Error("Unknown operator: ".concat(a.operator));case"sibling":var p=Vt(a.left),h=Vt(a.right);return function(S,w,x){return h(S,w,x)&&n0(S,p,w,"LEFT_SIDE",x)||a.left.subject&&p(S,w,x)&&n0(S,h,w,"RIGHT_SIDE",x)};case"adjacent":var g=Vt(a.left),v=Vt(a.right);return function(S,w,x){return v(S,w,x)&&s0(S,g,w,"LEFT_SIDE",x)||a.right.subject&&g(S,w,x)&&s0(S,v,w,"RIGHT_SIDE",x)};case"nth-child":var E=a.index.value,b=Vt(a.right);return function(S,w,x){return b(S,w,x)&&a0(S,w,E,x)};case"nth-last-child":var T=-a.index.value,C=Vt(a.right);return function(S,w,x){return C(S,w,x)&&a0(S,w,T,x)};case"class":return function(S,w,x){if(x&&x.matchClass)return x.matchClass(a.name,S,w);if(x&&x.nodeTypeKey)return!1;switch(a.name.toLowerCase()){case"statement":if(S.type.slice(-9)==="Statement")return!0;case"declaration":return S.type.slice(-11)==="Declaration";case"pattern":if(S.type.slice(-7)==="Pattern")return!0;case"expression":return S.type.slice(-10)==="Expression"||S.type.slice(-7)==="Literal"||S.type==="Identifier"&&(w.length===0||w[0].type!=="MetaProperty")||S.type==="MetaProperty";case"function":return S.type==="FunctionDeclaration"||S.type==="FunctionExpression"||S.type==="ArrowFunctionExpression"}throw new Error("Unknown class name: ".concat(a.name))}}throw new Error("Unknown selector type: ".concat(a.type))}function dp(a,e){var n=e&&e.nodeTypeKey||"type",o=a[n];return e&&e.visitorKeys&&e.visitorKeys[o]?e.visitorKeys[o]:Bn.VisitorKeys[o]?Bn.VisitorKeys[o]:e&&typeof e.fallback=="function"?e.fallback(a):Object.keys(a).filter((function(t){return t!==n}))}function hp(a,e){var n=e&&e.nodeTypeKey||"type";return a!==null&&sn(a)==="object"&&typeof a[n]=="string"}function n0(a,e,n,o,t){var l=fp(n,1)[0];if(!l)return!1;for(var f=dp(l,t),u=0;u<f.length;++u){var r=l[f[u]];if(Array.isArray(r)){var m=r.indexOf(a);if(m<0)continue;var i=void 0,c=void 0;o==="LEFT_SIDE"?(i=0,c=m):(i=m+1,c=r.length);for(var d=i;d<c;++d)if(hp(r[d],t)&&e(r[d],n,t))return!0}}return!1}function s0(a,e,n,o,t){var l=fp(n,1)[0];if(!l)return!1;for(var f=dp(l,t),u=0;u<f.length;++u){var r=l[f[u]];if(Array.isArray(r)){var m=r.indexOf(a);if(m<0)continue;if(o==="LEFT_SIDE"&&m>0&&hp(r[m-1],t)&&e(r[m-1],n,t)||o==="RIGHT_SIDE"&&m<r.length-1&&hp(r[m+1],t)&&e(r[m+1],n,t))return!0}}return!1}function a0(a,e,n,o){if(n===0)return!1;var t=fp(e,1)[0];if(!t)return!1;for(var l=dp(t,o),f=0;f<l.length;++f){var u=t[l[f]];if(Array.isArray(u)){var r=n<0?u.length+n:n-1;if(r>=0&&r<u.length&&u[r]===a)return!0}}return!1}function i0(a,e,n,o){if(e){var t=[],l=Vt(e),f=(function u(r,m){if(r==null||sn(r)!="object")return[];m==null&&(m=r);for(var i=r.subject?[m]:[],c=Object.keys(r),d=0;d<c.length;++d){var s=c[d],p=r[s];i.push.apply(i,uI(u(p,s==="left"?p:m)))}return i})(e).map(Vt);Bn.traverse(a,{enter:function(u,r){if(r!=null&&t.unshift(r),l(u,t,o))if(f.length)for(var m=0,i=f.length;m<i;++m){f[m](u,t,o)&&n(u,r,t);for(var c=0,d=t.length;c<d;++c){var s=t.slice(c+1);f[m](t[c],s,o)&&n(t[c],r,s)}}else n(u,r,t)},leave:function(){t.shift()},keys:o&&o.visitorKeys,fallback:o&&o.fallback||"iteration"})}}function o0(a,e,n){var o=[];return i0(a,e,(function(t){o.push(t)}),n),o}function l0(a){return cI.parse(a)}function Ir(a,e,n){return o0(a,l0(e),n)}Ir.parse=l0,Ir.match=o0,Ir.traverse=i0,Ir.matches=function(a,e,n,o){return!e||!!a&&(n||(n=[]),Vt(e)(a,n,o))},Ir.query=Ir;var gp,u0;function fI(){if(u0)return gp;u0=1;const a=Ir;class e{source;isExit;root;nodeTypes;attributeCount;identifierCount;constructor(c,d,s,p,h,g){this.source=c,this.isExit=d,this.root=s,this.nodeTypes=p,this.attributeCount=h,this.identifierCount=g}compare(c){return this.attributeCount-c.attributeCount||this.identifierCount-c.identifierCount||(this.source<=c.source?-1:1)}}const n=new Map;function o(...i){return[...new Set(i.flat())]}function t(...i){if(i.length===0)return[];let c=[...new Set(i[0])];for(const d of i.slice(1))c=c.filter(s=>d.includes(s));return c}function l(i){let c=0,d=0;function s(h){switch(h.type){case"identifier":return d++,[h.value];case"not":return h.selectors.map(s),null;case"matches":{const g=h.selectors.map(s);return g.every(Boolean)?o(...g):null}case"compound":{const g=h.selectors.map(s).filter(v=>v);return g.length?t(...g):null}case"attribute":case"field":case"nth-child":case"nth-last-child":return c++,null;case"child":case"descendant":case"sibling":case"adjacent":return s(h.left),s(h.right);case"class":return h.name==="function"?["FunctionDeclaration","FunctionExpression","ArrowFunctionExpression"]:null;default:return null}}return{nodeTypes:s(i),attributeCount:c,identifierCount:d}}function f(i){return i==="*"?{type:"wildcard",value:"*"}:/^[a-z]+$/iu.test(i)?{type:"identifier",value:i}:null}function u(i){try{return a.parse(i)}catch(c){throw c.location&&c.location.start&&typeof c.location.start.offset=="number"?new SyntaxError(`Syntax error in selector "${i}" at position ${c.location.start.offset}: ${c.message}`,{cause:c}):c}}function r(i){if(n.has(i))return n.get(i);const c=i.replace(/:exit$/u,""),d=f(c)??u(c),{nodeTypes:s,attributeCount:p,identifierCount:h}=l(d),g=new e(i,i.endsWith(":exit"),d,s,p,h);return n.set(i,g),g}function m(i,c,d,s){return a.matches(i,c,d,s)}return gp={parse:r,matches:m,ESQueryParsedSelector:e},gp}var yp,c0;function pI(){if(c0)return yp;c0=1;const{parse:a,matches:e}=fI(),n=Gr(),o=1,t=2;function l(r,m){return r.compare(m)}class f{constructor(m,i){this.visitor=m,this.esqueryOptions=i,this.enterSelectorsByNodeType=new Map,this.exitSelectorsByNodeType=new Map,this.anyTypeEnterSelectors=[],this.anyTypeExitSelectors=[],m.forEachName(c=>{const d=a(c);if(d.nodeTypes){const p=d.isExit?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType;d.nodeTypes.forEach(h=>{p.has(h)||p.set(h,[]),p.get(h).push(d)});return}(d.isExit?this.anyTypeExitSelectors:this.anyTypeEnterSelectors).push(d)}),this.anyTypeEnterSelectors.sort(l),this.anyTypeExitSelectors.sort(l),this.enterSelectorsByNodeType.forEach(c=>c.sort(l)),this.exitSelectorsByNodeType.forEach(c=>c.sort(l))}matches(m,i,c){return e(m,c.root,i,this.esqueryOptions)}calculateSelectors(m,i,c){const d=this.esqueryOptions?.nodeTypeKey||"type",s=[],p=(c?this.exitSelectorsByNodeType:this.enterSelectorsByNodeType).get(m[d])||[],h=c?this.anyTypeExitSelectors:this.anyTypeEnterSelectors;let g=0,v=0;for(;g<p.length||v<h.length;){const E=g<p.length,b=v<h.length,T=h[v],C=p[g],S=b&&E&&T.compare(C)<0;!E||S?(v++,this.matches(m,i,T)&&s.push(T.source)):(g++,this.matches(m,i,C)&&s.push(C.source))}return s}}class u{#e;static instances=new WeakMap;constructor(m){this.#e=m}static getInstance(m){return this.instances.has(m)||this.instances.set(m,new this(m)),this.instances.get(m)}traverseSync(m,i,{steps:c}={}){const d=new f(i,{visitorKeys:m.visitorKeys??this.#e.visitorKeys,fallback:n.getKeys,matchClass:this.#e.matchesSelectorClass??(()=>!1),nodeTypeKey:this.#e.nodeTypeKey}),s=[];for(const p of c??m.traverse())switch(p.kind){case o:{try{p.phase===1?(d.calculateSelectors(p.target,s,!1).forEach(h=>{i.callSync(h,...p.args??[p.target])}),s.unshift(p.target)):(s.shift(),d.calculateSelectors(p.target,s,!0).forEach(h=>{i.callSync(h,...p.args??[p.target])}))}catch(h){throw h.currentNode=p.target,h}break}case t:{i.callSync(p.target,...p.args);break}default:throw new Error(`Invalid traversal step found: "${p.kind}".`)}}}return yp={SourceCodeTraverser:u},yp}var vp,f0;function mI(){if(f0)return vp;f0=1;function a(n,o){return{range:[n,n],text:o}}class e{#e;constructor({sourceCode:o}){this.#e=o}insertTextAfter(o,t){const l=this.#e.getRange(o);return this.insertTextAfterRange(l,t)}insertTextAfterRange(o,t){return a(o[1],t)}insertTextBefore(o,t){const l=this.#e.getRange(o);return this.insertTextBeforeRange(l,t)}insertTextBeforeRange(o,t){return a(o[0],t)}replaceText(o,t){const l=this.#e.getRange(o);return this.replaceTextRange(l,t)}replaceTextRange(o,t){return{range:o,text:t}}remove(o){const t=this.#e.getRange(o);return this.removeRange(t)}removeRange(o){return{range:o,text:""}}}return vp={RuleFixer:e},vp}var Sp,p0;function dI(){if(p0)return Sp;p0=1;function a(){return/\{\{([^{}]+)\}\}/gu}function e(n,o){if(!o)return n;const t=a();return n.replace(t,(l,f)=>{const u=f.trim();return u in o?o[u]:l})}return Sp={getPlaceholderMatcher:a,interpolate:e},Sp}var Ep,m0;function hI(){if(m0)return Ep;m0=1;const a=In(),{RuleFixer:e}=mI(),{interpolate:n}=dI(),o=jh,t={start:{line:1,column:0},end:{line:1,column:1}};function l({line:C,column:S,endLine:w,endColumn:x},A){const k=A.columnStart===1?0:1,R=A.lineStart===1?0:1,I=w===void 0?w:w+R,B=x===void 0?x:x+k;return{line:C+R,column:S+k,endLine:I,endColumn:B}}function f(C){return Object.hasOwn(o.rules,C)?`Rule '${C}' was removed and replaced by: ${o.rules[C].join(", ")}`:`Definition for rule '${C}' was not found.`}function u(C,S,w){const{ruleId:x=null,loc:A=t,message:k=f(C.ruleId)}=C;return{ruleId:x,message:k,...l({line:A.start.line,column:A.start.column,endLine:A.end.line,endColumn:A.end.column},w),severity:S,nodeType:null}}function r(...C){return C.length===1?Object.assign({},C[0]):typeof C[1]=="string"?{node:C[0],message:C[1],data:C[2],fix:C[3]}:{node:C[0],loc:C[1],message:C[2],data:C[3],fix:C[4]}}function m(C){C.node?a(typeof C.node=="object","Node must be an object"):a(C.loc,"Node must be provided when reporting error if location is not provided")}function i(C){return C.loc.start?C.loc:{start:C.loc,end:null}}function c(C){return C?{range:[C.range[0],C.range[1]],text:C.text}:null}function d(C){C&&a(C.range&&typeof C.range[0]=="number"&&typeof C.range[1]=="number",`Fix has invalid range: ${JSON.stringify(C,null,2)}`)}function s(C,S){return C.range[0]-S.range[0]||C.range[1]-S.range[1]}function p(C,S){for(const I of C)d(I);if(C.length===0)return null;if(C.length===1)return c(C[0]);C.sort(s);const w=S.text,x=C[0].range[0],A=C.at(-1).range[1];let k="",R=Number.MIN_SAFE_INTEGER;for(const I of C)a(I.range[0]>=R,"Fix objects must not be overlapped in a report."),I.range[0]>=0&&(k+=w.slice(Math.max(0,x,R),I.range[0])),k+=I.text,R=I.range[1];return k+=w.slice(Math.max(0,x,R),A),{range:[x,A],text:k}}function h(C,S){if(typeof C.fix!="function")return null;const w=new e({sourceCode:S}),x=C.fix(w);return x&&Symbol.iterator in x?p(Array.from(x),S):(d(x),c(x))}function g(C,S,w){return!C.suggest||!Array.isArray(C.suggest)?[]:C.suggest.map(x=>{const A=x.desc||w[x.messageId];return{...x,desc:n(A,x.data),fix:h(x,S)}}).filter(({fix:x})=>x)}function v(C){const{language:S}=C,w=S.columnStart===1?0:1,x=S.lineStart===1?0:1,A={ruleId:C.ruleId,severity:C.severity,message:C.message,line:C.loc.start.line+x,column:C.loc.start.column+w,nodeType:C.node&&C.node.type||null};return C.messageId&&(A.messageId=C.messageId),C.loc.end&&(A.endLine=C.loc.end.line+x,A.endColumn=C.loc.end.column+w),C.fix&&(A.fix=C.fix),C.suggestions&&C.suggestions.length>0&&(A.suggestions=C.suggestions),A}function E(C,S){C&&Array.isArray(C)&&C.forEach(w=>{if(w.messageId){const{messageId:x}=w;if(!S)throw new TypeError(`context.report() called with a suggest option with a messageId '${x}', but no messages were present in the rule metadata.`);if(!S[x])throw new TypeError(`context.report() called with a suggest option with a messageId '${x}' which is not present in the 'messages' config: ${JSON.stringify(S,null,2)}`);if(w.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(!w.desc)throw new TypeError("context.report() called with a suggest option that doesn't have either a `desc` or `messageId`");if(typeof w.fix!="function")throw new TypeError(`context.report() called with a suggest option without a fix function. See: ${JSON.stringify(w,null,2)}`)})}function b(C,S){if(C.messageId){if(!S)throw new TypeError("context.report() called with a messageId, but no messages were present in the rule metadata.");const w=C.messageId;if(C.message)throw new TypeError("context.report() called with a message and a messageId. Please only pass one.");if(!S||!Object.hasOwn(S,w))throw new TypeError(`context.report() called with a messageId of '${w}' which is not present in the 'messages' config: ${JSON.stringify(S,null,2)}`);return S[w]}if(C.message)return C.message;throw new TypeError("Missing `message` property in report() call; add a message that describes the linting problem.")}class T{messages=[];#e;#t;#r;#n;constructor({ruleMapper:S,sourceCode:w,language:x,disableFixes:A=!1}){this.#e=S,this.#t=w,this.#r=x,this.#n=A}addRuleMessage(S,w,...x){const A=r(...x),R=this.#e(S)?.meta?.messages;m(A);const I=b(A,R);return E(A.suggest,R),this.messages.push(v({ruleId:S,severity:w,node:A.node,message:n(I,A.data),messageId:A.messageId,loc:A.loc?i(A):this.#t.getLoc(A.node),fix:this.#n?null:h(A,this.#t),suggestions:this.#n?[]:g(A,this.#t,R),language:this.#r})),this.messages.at(-1)}addError(S){const w=u(S,2,this.#r);return this.messages.push(w),w}addFatal(S){const w=u(S,2,this.#r);return w.fatal=!0,this.messages.push(w),w}addWarning(S){const w=u(S,1,this.#r);return this.messages.push(w),w}}return Ep={FileReport:T,updateLocationInformation:l},Ep}var bp,d0;function gI(){if(d0)return bp;d0=1;const a=pn,e=qn(),n=Gr(),o=dn(),t=rC(),l=sC,{Legacy:{ConfigOps:f,ConfigValidator:u,environments:r}}=w1(),m=ra(),{SourceCode:i}=Ch(),c=gw(),{ConfigCommentParser:d}=Sh(),s=JP(),p=YP(),{SourceCodeVisitor:h}=QP(),g=ZP(),{FlatConfigArray:v}=rI(),{startTime:E,endTime:b}=jb(),{assertIsRuleSeverity:T}=Ka(),{normalizeSeverityToString:C,normalizeSeverityToNumber:S}=kh(),{deepMergeArrays:w}=Ah(),x=$b(),{activeFlags:A,inactiveFlags:k,getInactivityReasonMessage:R}=nI(),I=kr()("eslint:linter"),B=10,F="espree",O=5,$=new d,N=Symbol.for("eslint.RuleTester.parser"),{LATEST_ECMA_VERSION:_}=ci(),{VFile:X}=Kb(),{ParserService:L}=sI(),{FileContext:K}=aI(),{ProcessorService:J}=iI(),{containsDifferentProperty:ge}=oI(),{Config:ae}=ri(),{WarningService:ke}=lI(),{SourceCodeTraverser:Z}=pI(),{FileReport:P,updateLocationInformation:H}=hI();function fe(Ke){return Ke===o||Ke[N]===o}function ce(Ke,Ge,{exportedVariables:Se,enabledGlobals:j}){for(const U of new Set([...Object.keys(Ge),...Object.keys(j)])){const V=Ge[U]===void 0?void 0:f.normalizeConfigGlobal(Ge[U]),le=j[U]&&j[U].value||V,te=j[U]&&j[U].comments;if(le==="off")continue;let q=Ke.set.get(U);q||(q=new e.Variable(U,Ke),Ke.variables.push(q),Ke.set.set(U,q)),q.eslintImplicitGlobalSetting=V,q.eslintExplicitGlobal=te!==void 0,q.eslintExplicitGlobalComments=te,q.writeable=le==="writable"}Object.keys(Se).forEach(U=>{const V=Ke.set.get(U);V&&(V.eslintUsed=!0,V.eslintExported=!0)}),Ke.through=Ke.through.filter(U=>{const V=U.identifier.name,Q=Ke.set.get(V);return Q?(U.resolved=Q,Q.references.push(U),!1):!0})}function ie(Ke){return Array.isArray(Ke)?Ke:[Ke]}function he(Ke,Ge,Se,j,U,V,Q){const le=Ke.rules?.[j],te=le?ie(le):["off"],q=C(te[0]),se=C(U[0]);if(!(q===se))return;const be=le?`is already configured to '${q}'`:"is not enabled so can't be turned off";let Oe;if(te.length===1&&U.length===1||q==="off"?Oe=`Unused inline config ('${j}' ${be}).`:ge(U.slice(1),te.slice(1))||(Oe=V.length===1?`Unused inline config ('${j}' ${be}).`:`Unused inline config ('${j}' ${be} with the same options).`),Oe){const Pe=S(Q),We={message:Oe,loc:Ge};Pe===1?Se.addWarning(We):Pe===2&&Se.addError(We)}}function Ee({type:Ke,value:Ge,justification:Se,node:j},U,V,Q,le){const te=Object.keys($.parseListConfig(Ge)),q=te.length?te:[null],se=[],ue={node:j,value:Ge,ruleIds:te};for(const be of q){const Oe=Q.getLoc(j);if(be===null||U(be))if(Ke==="disable-next-line"){const{line:Pe,column:We}=H(Oe.end,V);se.push({parentDirective:ue,type:Ke,line:Pe,column:We,ruleId:be,justification:Se})}else{const{line:Pe,column:We}=H(Oe.start,V);se.push({parentDirective:ue,type:Ke,line:Pe,column:We,ruleId:be,justification:Se})}else le.addError({ruleId:be,loc:Oe})}return se}function Ce(Ke,Ge,Se,j,U){const V={},Q=Object.create(null),le={},te=[],q=new u({builtInRules:s});return Ke.getInlineConfigNodes().filter(se=>se.type!=="Shebang").forEach(se=>{const ue=$.parseDirective(se.value);if(!ue)return;const{label:be,value:Oe,justification:Pe}=ue,We=/^eslint-disable-(?:next-)?line$/u.test(be);if(se.type==="Line"&&!We)return;const ze=Ke.getLoc(se);if(Se){const me=se.type==="Block"?`/*${be}*/`:`//${be}`;U.addWarning({ruleId:null,message:`'${me}' has no effect because you have 'noInlineConfig' setting in ${Se}.`,loc:ze});return}if(be==="eslint-disable-line"&&ze.start.line!==ze.end.line){const me=`${be} comment should not span multiple lines.`;U.addError({message:me,loc:ze});return}switch(be){case"eslint-disable":case"eslint-enable":case"eslint-disable-next-line":case"eslint-disable-line":{const me=be.slice(7),pe=Ee({type:me,value:Oe,justification:Pe,node:se},Ge,x,Ke,U);te.push(...pe);break}case"exported":Object.assign(le,$.parseListConfig(Oe));break;case"globals":case"global":for(const[me,pe]of Object.entries($.parseStringConfig(Oe))){let ve;try{ve=f.normalizeConfigGlobal(pe)}catch(De){U.addError({loc:ze,message:De.message});continue}Q[me]?(Q[me].comments.push(se),Q[me].value=ve):Q[me]={comments:[se],value:ve}}break;case"eslint":{const me=$.parseJSONLikeConfig(Oe);me.ok?Object.keys(me.config).forEach(pe=>{const ve=Ge(pe),De=me.config[pe];if(!ve){U.addError({ruleId:pe,loc:ze});return}if(Object.hasOwn(V,pe)){U.addError({message:`Rule "${pe}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:ze});return}let Fe=ie(De);Fe.length===1&&j.rules&&Object.hasOwn(j.rules,pe)&&(Fe=[Fe[0],...ie(j.rules[pe]).slice(1)]);try{q.validateRuleOptions(ve,pe,Fe)}catch(at){if(at.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw at;U.addError({ruleId:pe,message:at.message,loc:ze});return}V[pe]=Fe}):U.addFatal({loc:ze,message:me.error.message});break}}}),{configuredRules:V,enabledGlobals:Q,exportedVariables:le,disableDirectives:te}}function Ae(Ke,Ge,Se,j){const U=[];if(Ke.getDisableDirectives){const{directives:V,problems:Q}=Ke.getDisableDirectives();Array.isArray(Q)&&Q.forEach(le=>j.addError(le)),V.forEach(le=>{const te=Ee(le,Ge,Se,Ke,j);U.push(...te)})}return U}function ee(Ke,Ge){return fe(Ke)&&Ge==="latest"?o.latestEcmaVersion:Ge>=2015?Ge-2009:Ge}function ne(Ke){switch(Ke){case 3:return 3;case 5:case void 0:return 5;default:if(typeof Ke=="number")return Ke>=2015?Ke:Ke+2009}return _}const we=/\/\*\s*eslint-env\s.+?(?:\*\/|$)/gsu;function z(Ke){let Ge,Se;for(we.lastIndex=0;(Ge=we.exec(Ke))!==null;)Ge[0].endsWith("*/")&&(Se=Object.assign(Se||{},$.parseListConfig($.parseDirective(Ge[0].slice(2,-2)).value)));return Se}function oe(Ke){const Ge=Ke.split(a.sep),Se=Ge.lastIndexOf("<text>");return Se===-1?Ke:Ge.slice(Se).join(a.sep)}function Te(Ke,Ge){const Se=Ge.linterOptions||Ge,j=Se.noInlineConfig===!0,U=Ke.allowInlineConfig===!1,V=Ge.configNameOfNoInlineConfig?` (${Ge.configNameOfNoInlineConfig})`:"";let Q=Ke.reportUnusedDisableDirectives;typeof Q=="boolean"&&(Q=Q?"error":"off"),typeof Q!="string"&&(typeof Se.reportUnusedDisableDirectives=="boolean"?Q=Se.reportUnusedDisableDirectives?"warn":"off":Q=Se.reportUnusedDisableDirectives===void 0?"off":C(Se.reportUnusedDisableDirectives));const le=Se.reportUnusedInlineConfigs===void 0?"off":C(Se.reportUnusedInlineConfigs);let te=Ke.ruleFilter;return typeof te!="function"&&(te=()=>!0),{filename:oe(Ke.filename||"<input>"),allowInlineConfig:!U,warnInlineConfig:j&&!U?`your config${V}`:null,reportUnusedDisableDirectives:Q,reportUnusedInlineConfigs:le,disableFixes:!!Ke.disableFixes,stats:Ke.stats,ruleFilter:te}}function Re(Ke,Ge,Se){const j=Se.filter(Q=>Q.parserOptions).reduce((Q,le)=>t(Q,le.parserOptions),{}),U=t(j,Ge||{});return U.sourceType==="module"&&(U.ecmaFeatures=Object.assign({},U.ecmaFeatures,{globalReturn:!1})),U.ecmaVersion=ee(Ke,U.ecmaVersion),U}function Ie({globals:Ke,parser:Ge,parserOptions:Se}){const{ecmaVersion:j,sourceType:U}=Se;return{globals:Ke,ecmaVersion:ne(j),sourceType:U,parser:Ge,parserOptions:Se}}function W(Ke,Ge){return Object.assign(Object.create(null),...Ge.filter(Se=>Se.globals).map(Se=>Se.globals),Ke)}function Je(Ke,Ge,Se){const{type:j,key:U}=Ge;Se.times||(Se.times={passes:[{}]});const V=Se.fixPasses;V>Se.times.passes.length-1&&Se.times.passes.push({}),U?(Se.times.passes[V][j]??={},Se.times.passes[V][j][U]??={total:0},Se.times.passes[V][j][U].total+=Ke):(Se.times.passes[V][j]??={total:0},Se.times.passes[V][j].total+=Ke)}function ut(Ke,Ge){return Array.isArray(Ke)?w(Ge,Ke.slice(1)):Ge??[]}function tt(Ke,Ge,Se){const U=Ge.parserOptions.ecmaFeatures||{},V=Ge.ecmaVersion||O;return e.analyze(Ke,{ignoreEval:!0,nodejsScope:U.globalReturn,impliedStrict:U.impliedStrict,ecmaVersion:typeof V=="number"?V:6,sourceType:Ge.sourceType||"script",childVisitorKeys:n.KEYS,fallback:m.getKeys})}function qe(Ke,Ge){if(!Ke||typeof Ke!="object"||typeof Ke.create!="function")throw new TypeError(`Error while loading rule '${Ge.id}': Rule must be an object with a \`create\` method`);try{return Ke.create(Ge)}catch(Se){throw Se.message=`Error while loading rule '${Ge.id}': ${Se.message}`,Se}}function $e(Ke,Ge,Se,j,U,V,Q,le,te,q,se,ue,be,Oe,Pe){const We=new h,ze=new K({cwd:q,filename:le,physicalFilename:se||le,sourceCode:Ke,parserOptions:{...V.parserOptions},parserPath:j,languageOptions:V,settings:Q}),me=Ke.traverse();return Object.keys(Ge).forEach(ve=>{const De=ae.getRuleNumericSeverity(Ge[ve]);if(De===0||ue&&!ue({ruleId:ve,severity:De}))return;const Fe=Se(ve);if(!Fe){Pe.addError({ruleId:ve});return}const at=ze.extend({id:ve,options:ut(Ge[ve],te?Fe.meta?.defaultOptions:void 0),report(...He){const nt=Pe.addRuleMessage(ve,De,...He);if(nt.fix&&!(Fe.meta&&Fe.meta.fixable))throw new Error('Fixable rules must set the `meta.fixable` property to "code" or "whitespace".');if(nt.suggestions&&!(Fe.meta&&Fe.meta.hasSuggestions===!0))throw Fe.meta&&Fe.meta.docs&&typeof Fe.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`.")}}),Ue=g.enabled||be?g.time(ve,qe,be)(Fe,at):qe(Fe,at),Xe=be?Ue.result:Ue;be&&Je(Ue.tdiff,{type:"rules",key:ve},Oe);function ot(He){return function(...pt){try{const ht=He(...pt),ft=be?ht.result:ht;return be&&Je(ht.tdiff,{type:"rules",key:ve},Oe),ft}catch(ht){throw ht.ruleId=ve,ht}}}if(typeof Xe>"u"||Xe===null)throw new Error(`The create() function for rule '${ve}' did not return an object.`);Object.keys(Xe).forEach(He=>{const nt=g.enabled||be?g.time(ve,Xe[He],be):Xe[He];We.add(He,ot(nt))})}),Z.getInstance(U).traverseSync(Ke,We,{steps:me}),Pe}function st(Ke){if(typeof Ke=="object"){const{hasBOM:Ge,text:Se}=Ke;return(Ge?"\uFEFF":"")+Se}return String(Ke)}function mt(Ke,Ge){return Ke.lastConfigArray&&Ke.lastConfigArray.pluginEnvironments.get(Ge)||r.get(Ge)||null}function rt(Ke,Ge){return Ke.lastConfigArray&&Ke.lastConfigArray.pluginRules.get(Ge)||Ke.ruleMap.get(Ge)}function Qe(Ke){if(Ke)return Ke;if(typeof Ft=="object")return Ft.cwd()}const St=new WeakMap;function Ze(Ke){const{configType:Ge}=St.get(Ke);if(Ge==="flat")throw new Error("This method cannot be used with flat config. Add your entries directly into the config array.")}class Ct{constructor({cwd:Ge,configType:Se="flat",flags:j=[],warningService:U=new ke}={}){const V=[];j.forEach(Q=>{if(k.has(Q)){const le=k.get(Q),te=R(le),q=`The flag '${Q}' is inactive: ${te}`;if(typeof le.replacedBy>"u")throw new Error(q);typeof le.replacedBy=="string"&&V.push(le.replacedBy),U.emitInactiveFlagWarning(Q,q);return}if(!A.has(Q))throw new Error(`Unknown flag '${Q}'.`);V.push(Q)}),St.set(this,{cwd:Qe(Ge),flags:V,lastConfigArray:null,lastSourceCode:null,lastSuppressedMessages:[],configType:Se,parserMap:new Map([["espree",o]]),ruleMap:new s,warningService:U}),this.version=l.version}static get version(){return l.version}hasFlag(Ge){return St.get(this).flags.includes(Ge)}#e(Ge,Se,j){const U=St.get(this),V=Se||{},Q=Te(j,V);let le=F,te=o;if(typeof V.parser=="object"&&V.parser!==null)le=V.parser.filePath,te=V.parser.definition;else if(typeof V.parser=="string"){if(!U.parserMap.has(V.parser))return[{ruleId:null,fatal:!0,severity:2,message:`Configured parser '${V.parser}' was not found.`,line:0,column:0,nodeType:null}];le=V.parser,te=U.parserMap.get(V.parser)}const q=Q.allowInlineConfig&&!Q.warnInlineConfig?z(Ge.body):{},se=Object.assign({builtin:!0},V.env,q),ue=Object.keys(se).filter(De=>se[De]).map(De=>mt(U,De)).filter(De=>De),be=Re(te,V.parserOptions||{},ue),Oe=W(V.globals||{},ue),Pe=V.settings||{},We=Ie({globals:V.globals,parser:te,parserOptions:be});if(U.lastSourceCode)U.lastSourceCode.scopeManager||(U.lastSourceCode=new i({text:U.lastSourceCode.text,ast:U.lastSourceCode.ast,hasBOM:U.lastSourceCode.hasBOM,parserServices:U.lastSourceCode.parserServices,visitorKeys:U.lastSourceCode.visitorKeys,scopeManager:tt(U.lastSourceCode.ast,We)}));else{let De;Q.stats&&(De=E());const at=new L().parseSync(Ge,{language:x,languageOptions:We});if(Q.stats){const Ue=b(De);Je(Ue,{type:"parse"},U)}if(!at.ok)return at.errors;U.lastSourceCode=at.sourceCode}const ze=U.lastSourceCode,me=new P({ruleMapper:De=>rt(U,De),language:x,sourceCode:ze,disableFixes:Q.disableFixes}),pe=Q.allowInlineConfig?Ce(ze,De=>rt(U,De),Q.warnInlineConfig,V,me):{configuredRules:{},enabledGlobals:{},exportedVariables:{},disableDirectives:[]};ce(ze.scopeManager.scopes[0],Oe,{exportedVariables:pe.exportedVariables,enabledGlobals:pe.enabledGlobals});const ve=Object.assign({},V.rules,pe.configuredRules);try{$e(ze,ve,De=>rt(U,De),le,x,We,Pe,Q.filename,!0,U.cwd,j.physicalFilename,null,Q.stats,U,me)}catch(De){if(De.message+=`
|
|
119
|
+
Occurred while linting ${Q.filename}`,I("An error occurred while traversing"),I("Filename:",Q.filename),De.currentNode){const{line:Fe}=ze.getLoc(De.currentNode).start;I("Line:",Fe),De.message+=`:${Fe}`}throw I("Parser Options:",be),I("Parser Path:",le),I("Settings:",Pe),De.ruleId&&(De.message+=`
|
|
120
|
+
Rule: "${De.ruleId}"`),De}return c({language:x,sourceCode:ze,directives:pe.disableDirectives,disableFixes:Q.disableFixes,problems:me.messages.sort((De,Fe)=>De.line-Fe.line||De.column-Fe.column),reportUnusedDisableDirectives:Q.reportUnusedDisableDirectives})}_verifyWithoutProcessors(Ge,Se,j){const U=St.get(this),V=oe(j.filename||"<input>");let Q;typeof Ge=="string"?(U.lastSourceCode=null,Q=Ge):(U.lastSourceCode=Ge,Q=Ge.text);const le=new X(V,Q,{physicalPath:j.physicalFilename});return this.#e(le,Se,j)}verify(Ge,Se,j){I("Verify");const{configType:U,cwd:V}=St.get(this),Q=typeof j=="string"?{filename:j}:j||{},le=Se??{};if(U!=="eslintrc"){let te=le;return(!Array.isArray(le)||typeof le.getConfig!="function")&&(te=new v(le,{basePath:V}),te.normalizeSync()),this._distinguishSuppressedMessages(this._verifyWithFlatConfigArray(Ge,te,Q,!0))}return typeof le.extractConfig=="function"?this._distinguishSuppressedMessages(this._verifyWithConfigArray(Ge,le,Q)):Q.preprocess||Q.postprocess?this._distinguishSuppressedMessages(this._verifyWithProcessor(Ge,le,Q)):this._distinguishSuppressedMessages(this._verifyWithoutProcessors(Ge,le,Q))}_verifyWithFlatConfigArrayAndProcessor(Ge,Se,j,U){const V=St.get(this),Q=j.filename||"<input>",le=oe(Q),te=j.physicalFilename||le,q=st(Ge),se=new X(le,q,{physicalPath:te}),ue=j.preprocess||(ve=>[ve]),be=j.postprocess||(ve=>ve.flat()),Oe=new J,Pe=Oe.preprocessSync(se,{processor:{preprocess:ue,postprocess:be}});if(!Pe.ok)return Pe.errors;const We=j.filterCodeBlock||(ve=>ve.endsWith(".js")),ze=a.extname(Q),{files:me}=Pe,pe=me.map(ve=>(I("A code block was found: %o",ve.path||"(unnamed)"),typeof ve=="string"?this._verifyWithFlatConfigArrayAndWithoutProcessors(ve,Se,j):We(ve.path,ve.body)?U&&(q!==ve.rawBody||a.extname(ve.path)!==ze)?(I("Resolving configuration again because the file content or extension was changed."),this._verifyWithFlatConfigArray(ve.rawBody,U,{...j,filename:ve.path,physicalFilename:ve.physicalPath})):(V.lastSourceCode=null,this.#t(ve,Se,{...j,filename:ve.path,physicalFilename:ve.physicalPath})):(I("This code block was skipped."),[])));return Oe.postprocessSync(se,pe,{processor:{preprocess:ue,postprocess:be}})}#t(Ge,Se,j){const U=St.get(this),V=Se||{},{settings:Q={},languageOptions:le}=V,te=Te(j,V);if(U.lastSourceCode)U.lastSourceCode.scopeManager===null&&(U.lastSourceCode=new i({text:U.lastSourceCode.text,ast:U.lastSourceCode.ast,hasBOM:U.lastSourceCode.hasBOM,parserServices:U.lastSourceCode.parserServices,visitorKeys:U.lastSourceCode.visitorKeys,scopeManager:tt(U.lastSourceCode.ast,le)}));else{let Pe;te.stats&&(Pe=E());const ze=new L().parseSync(Ge,V);if(te.stats){const me=b(Pe);Je(me,{type:"parse"},U)}if(!ze.ok)return ze.errors;U.lastSourceCode=ze.sourceCode}const q=U.lastSourceCode,se=new P({ruleMapper:Pe=>V.getRuleDefinition(Pe),language:V.language,sourceCode:q,disableFixes:te.disableFixes});q.applyLanguageOptions?.(le);const ue={rules:{}};if(te.allowInlineConfig)if(te.warnInlineConfig)q.getInlineConfigNodes&&q.getInlineConfigNodes().forEach(Pe=>{const We=q.getLoc(Pe),ze=q.getRange(Pe);se.addWarning({message:`'${q.text.slice(ze[0],ze[1])}' has no effect because you have 'noInlineConfig' setting in ${te.warnInlineConfig}.`,loc:We})});else{if(V.language===x)for(const We of q.getInlineConfigNodes()){const{label:ze}=$.parseDirective(We.value);ze==="eslint-env"&&U.warningService.emitESLintEnvWarning(te.filename,We.loc.start.line)}const Pe=q.applyInlineConfig?.();if(Pe){Pe.problems.forEach(We=>{se.addFatal(We)});for(const{config:We,loc:ze}of Pe.configs)Object.keys(We.rules).forEach(me=>{const pe=V.getRuleDefinition(me),ve=We.rules[me];if(!pe){se.addError({ruleId:me,loc:ze});return}if(Object.hasOwn(ue.rules,me)){se.addError({message:`Rule "${me}" is already configured by another configuration comment in the preceding code. This configuration is ignored.`,loc:ze});return}try{const De=ie(ve);let Fe=De;T(me,Fe[0]);let at=!0;if(Fe.length===1&&V.rules&&Object.hasOwn(V.rules,me))Fe=[Fe[0],...V.rules[me].slice(1)],V.rules[me][0]>0&&(at=!1);else{const Ue=Fe.slice(1),Xe=w(pe.meta?.defaultOptions,Ue);Xe.length&&(Fe=[Fe[0],...Xe])}te.reportUnusedInlineConfigs!=="off"&&he(V,ze,se,me,Fe,De,te.reportUnusedInlineConfigs),at&&V.validateRulesConfig({[me]:Fe}),ue.rules[me]=Fe}catch(De){if(De.code==="ESLINT_INVALID_RULE_OPTIONS_SCHEMA")throw De;let Fe=De.message.slice(De.message.startsWith('Key "rules":')?De.message.indexOf(":",12)+1:De.message.indexOf(":")+1).trim();De.messageTemplate&&(Fe+=` You passed "${ve}".`),se.addError({ruleId:me,message:`Inline configuration for rule "${me}" is invalid:
|
|
121
|
+
${Fe}
|
|
122
|
+
`,loc:ze})}})}}const be=te.allowInlineConfig&&!te.warnInlineConfig?Ae(q,Pe=>V.getRuleDefinition(Pe),V.language,se):[],Oe=Object.assign({},V.rules,ue.rules);q.finalize?.();try{$e(q,Oe,Pe=>V.getRuleDefinition(Pe),void 0,V.language,le,Q,te.filename,!1,U.cwd,j.physicalFilename,te.ruleFilter,te.stats,U,se)}catch(Pe){if(Pe.message+=`
|
|
123
|
+
Occurred while linting ${te.filename}`,I("An error occurred while traversing"),I("Filename:",te.filename),Pe.currentNode){const{line:We}=q.getLoc(Pe.currentNode).start;I("Line:",We),Pe.message+=`:${We}`}throw I("Parser Options:",le.parserOptions),I("Settings:",Q),Pe.ruleId&&(Pe.message+=`
|
|
124
|
+
Rule: "${Pe.ruleId}"`),Pe}return c({language:V.language,sourceCode:q,directives:be,disableFixes:te.disableFixes,problems:se.messages.sort((Pe,We)=>Pe.line-We.line||Pe.column-We.column),reportUnusedDisableDirectives:te.reportUnusedDisableDirectives,ruleFilter:te.ruleFilter,configuredRules:Oe})}_verifyWithFlatConfigArrayAndWithoutProcessors(Ge,Se,j){const U=St.get(this),V=oe(j.filename||"<input>");let Q;typeof Ge=="string"?(U.lastSourceCode=null,Q=Ge):(U.lastSourceCode=Ge,Q=Ge.text);const le=new X(V,Q,{physicalPath:j.physicalFilename});return this.#t(le,Se,j)}_verifyWithConfigArray(Ge,Se,j){I("With ConfigArray: %s",j.filename),St.get(this).lastConfigArray=Se;const U=Se.extractConfig(j.filename),V=U.processor&&Se.pluginProcessors.get(U.processor);if(V){I("Apply the processor: %o",U.processor);const{preprocess:Q,postprocess:le,supportsAutofix:te}=V,q=j.disableFixes||!te;return this._verifyWithProcessor(Ge,U,{...j,disableFixes:q,postprocess:le,preprocess:Q},Se)}return this._verifyWithoutProcessors(Ge,U,j)}_verifyWithFlatConfigArray(Ge,Se,j,U=!1){I("With flat config: %s",j.filename);const V=j.filename||"__placeholder__.js";St.get(this).lastConfigArray=Se;const Q=Se.getConfig(V);if(!Q)return[{ruleId:null,severity:1,message:`No matching configuration found for ${V}.`,line:0,column:0,nodeType:null}];if(Q.processor){I("Apply the processor: %o",Q.processor);const{preprocess:le,postprocess:te,supportsAutofix:q}=Q.processor,se=j.disableFixes||!q;return this._verifyWithFlatConfigArrayAndProcessor(Ge,Q,{...j,filename:V,disableFixes:se,postprocess:te,preprocess:le},Se)}return U&&(j.preprocess||j.postprocess)?this._verifyWithFlatConfigArrayAndProcessor(Ge,Q,j):this._verifyWithFlatConfigArrayAndWithoutProcessors(Ge,Q,j)}_verifyWithProcessor(Ge,Se,j,U){const V=St.get(this),Q=j.filename||"<input>",le=oe(Q),te=j.physicalFilename||le,q=st(Ge),se=new X(le,q,{physicalPath:te}),ue=j.preprocess||(ve=>[ve]),be=j.postprocess||(ve=>ve.flat()),Oe=new J,Pe=Oe.preprocessSync(se,{processor:{preprocess:ue,postprocess:be}});if(!Pe.ok)return Pe.errors;const We=j.filterCodeBlock||(ve=>ve.endsWith(".js")),ze=a.extname(Q),{files:me}=Pe,pe=me.map(ve=>(I("A code block was found: %o",ve.path??"(unnamed)"),typeof ve=="string"?this._verifyWithoutProcessors(ve,Se,j):We(ve.path,ve.body)?U&&(q!==ve.rawBody||a.extname(ve.path)!==ze)?(I("Resolving configuration again because the file content or extension was changed."),this._verifyWithConfigArray(ve.rawBody,U,{...j,filename:ve.path,physicalFilename:ve.physicalPath})):(V.lastSourceCode=null,this.#e(ve,Se,{...j,filename:ve.path,physicalFilename:ve.physicalPath})):(I("This code block was skipped."),[])));return Oe.postprocessSync(se,pe,{processor:{preprocess:ue,postprocess:be}})}_distinguishSuppressedMessages(Ge){const Se=[],j=[],U=St.get(this);for(const V of Ge)V.suppressions?j.push(V):Se.push(V);return U.lastSuppressedMessages=j,Se}getSourceCode(){return St.get(this).lastSourceCode}getTimes(){return St.get(this).times??{passes:[]}}getFixPassCount(){return St.get(this).fixPasses??0}getSuppressedMessages(){return St.get(this).lastSuppressedMessages}defineRule(Ge,Se){Ze(this),St.get(this).ruleMap.define(Ge,Se)}defineRules(Ge){Ze(this),Object.getOwnPropertyNames(Ge).forEach(Se=>{this.defineRule(Se,Ge[Se])})}getRules(){Ze(this);const{lastConfigArray:Ge,ruleMap:Se}=St.get(this);return new Map((function*(){yield*Se,Ge&&(yield*Ge.pluginRules)})())}defineParser(Ge,Se){Ze(this),St.get(this).parserMap.set(Ge,Se)}verifyAndFix(Ge,Se,j){let U,V,Q=!1,le=0,te=Ge,q,se;const ue=j&&j.filename||`${Ge.slice(0,10)}...`,be=j&&typeof j.fix<"u"?j.fix:!0,Oe=j?.stats,Pe=St.get(this);Oe&&(delete Pe.times,Pe.fixPasses=0);do{le++;let We;Oe&&(We=E()),I(`Linting code for ${ue} (pass ${le})`),U=this.verify(te,Se,j),I(`Generating fixed text for ${ue} (pass ${le})`);let ze;if(Oe&&(ze=E()),V=p.applyFixes(te,U,be),Oe)if(V.fixed){const me=b(ze);Je(me,{type:"fix"},Pe),Pe.fixPasses++}else Je(0,{type:"fix"},Pe);if(U.length===1&&U[0].fatal)break;if(Q=Q||V.fixed,q=se,se=te,te=V.output,Oe){We=b(We);const me=Pe.times.passes.length-1;Pe.times.passes[me].total=We}if(le>1&&te.length===q.length&&te===q){I(`Circular fixes detected after pass ${le}. Exiting fix loop.`),Pe.warningService.emitCircularFixesWarning(j?.filename??"text");break}}while(V.fixed&&le<B);if(V.fixed){let We;Oe&&(We=E()),V.messages=this.verify(te,Se,j),Oe&&(Je(0,{type:"fix"},Pe),Pe.times.passes.at(-1).total=b(We))}return V.fixed=Q,V.output=te,V}}return bp={Linter:Ct,getLinterInternalSlots(Ke){return St.get(Ke)}},bp}function yI(){return gI().Linter}var vI=yI();function SI(a){return a&&a.__esModule&&Object.prototype.hasOwnProperty.call(a,"default")?a.default:a}var EI={amd:{define:!1,require:!1},applescript:{$:!1,Application:!1,Automation:!1,console:!1,delay:!1,Library:!1,ObjC:!1,ObjectSpecifier:!1,Path:!1,Progress:!1,Ref:!1},astro:{Astro:!1},atomtest:{advanceClock:!1,atom:!1,fakeClearInterval:!1,fakeClearTimeout:!1,fakeSetInterval:!1,fakeSetTimeout:!1,resetTimeouts:!1,waitsForPromise:!1},audioWorklet:{AbortController:!1,AbortSignal:!1,AsyncDisposableStack:!1,AudioWorkletGlobalScope:!1,AudioWorkletProcessor:!1,ByteLengthQueuingStrategy:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,currentFrame:!1,currentTime:!1,DecompressionStream:!1,DisposableStack:!1,Event:!1,EventTarget:!1,MessageEvent:!1,MessagePort:!1,PaintWorkletGlobalScope:!1,port:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registerProcessor:!1,sampleRate:!1,SuppressedError:!1,Temporal:!1,TextDecoderStream:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,UserActivation:!1,WebAssembly:!1,WorkletGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},browser:JSON.parse('{"AbortController":false,"AbortSignal":false,"AbsoluteOrientationSensor":false,"AbstractRange":false,"Accelerometer":false,"addEventListener":false,"ai":false,"AI":false,"AICreateMonitor":false,"AITextSession":false,"alert":false,"AnalyserNode":false,"Animation":false,"AnimationEffect":false,"AnimationEvent":false,"AnimationPlaybackEvent":false,"AnimationTimeline":false,"AsyncDisposableStack":false,"atob":false,"Attr":false,"Audio":false,"AudioBuffer":false,"AudioBufferSourceNode":false,"AudioContext":false,"AudioData":false,"AudioDecoder":false,"AudioDestinationNode":false,"AudioEncoder":false,"AudioListener":false,"AudioNode":false,"AudioParam":false,"AudioParamMap":false,"AudioProcessingEvent":false,"AudioScheduledSourceNode":false,"AudioSinkInfo":false,"AudioWorklet":false,"AudioWorkletNode":false,"AuthenticatorAssertionResponse":false,"AuthenticatorAttestationResponse":false,"AuthenticatorResponse":false,"BackgroundFetchManager":false,"BackgroundFetchRecord":false,"BackgroundFetchRegistration":false,"BarcodeDetector":false,"BarProp":false,"BaseAudioContext":false,"BatteryManager":false,"BeforeUnloadEvent":false,"BiquadFilterNode":false,"Blob":false,"BlobEvent":false,"Bluetooth":false,"BluetoothCharacteristicProperties":false,"BluetoothDevice":false,"BluetoothRemoteGATTCharacteristic":false,"BluetoothRemoteGATTDescriptor":false,"BluetoothRemoteGATTServer":false,"BluetoothRemoteGATTService":false,"BluetoothUUID":false,"blur":false,"BroadcastChannel":false,"BrowserCaptureMediaStreamTrack":false,"btoa":false,"ByteLengthQueuingStrategy":false,"Cache":false,"caches":false,"CacheStorage":false,"cancelAnimationFrame":false,"cancelIdleCallback":false,"CanvasCaptureMediaStream":false,"CanvasCaptureMediaStreamTrack":false,"CanvasGradient":false,"CanvasPattern":false,"CanvasRenderingContext2D":false,"CaptureController":false,"CaretPosition":false,"CDATASection":false,"ChannelMergerNode":false,"ChannelSplitterNode":false,"ChapterInformation":false,"CharacterBoundsUpdateEvent":false,"CharacterData":false,"clearInterval":false,"clearTimeout":false,"clientInformation":false,"Clipboard":false,"ClipboardChangeEvent":false,"ClipboardEvent":false,"ClipboardItem":false,"close":false,"closed":false,"CloseEvent":false,"CloseWatcher":false,"CommandEvent":false,"Comment":false,"CompositionEvent":false,"CompressionStream":false,"confirm":false,"console":false,"ConstantSourceNode":false,"ContentVisibilityAutoStateChangeEvent":false,"ConvolverNode":false,"CookieChangeEvent":false,"CookieDeprecationLabel":false,"cookieStore":false,"CookieStore":false,"CookieStoreManager":false,"CountQueuingStrategy":false,"createImageBitmap":false,"CreateMonitor":false,"Credential":false,"credentialless":false,"CredentialsContainer":false,"CropTarget":false,"crossOriginIsolated":false,"crypto":false,"Crypto":false,"CryptoKey":false,"CSPViolationReportBody":false,"CSS":false,"CSSAnimation":false,"CSSConditionRule":false,"CSSContainerRule":false,"CSSCounterStyleRule":false,"CSSFontFaceRule":false,"CSSFontFeatureValuesRule":false,"CSSFontPaletteValuesRule":false,"CSSFunctionDeclarations":false,"CSSFunctionDescriptors":false,"CSSFunctionRule":false,"CSSGroupingRule":false,"CSSImageValue":false,"CSSImportRule":false,"CSSKeyframeRule":false,"CSSKeyframesRule":false,"CSSKeywordValue":false,"CSSLayerBlockRule":false,"CSSLayerStatementRule":false,"CSSMarginRule":false,"CSSMathClamp":false,"CSSMathInvert":false,"CSSMathMax":false,"CSSMathMin":false,"CSSMathNegate":false,"CSSMathProduct":false,"CSSMathSum":false,"CSSMathValue":false,"CSSMatrixComponent":false,"CSSMediaRule":false,"CSSNamespaceRule":false,"CSSNestedDeclarations":false,"CSSNumericArray":false,"CSSNumericValue":false,"CSSPageDescriptors":false,"CSSPageRule":false,"CSSPerspective":false,"CSSPositionTryDescriptors":false,"CSSPositionTryRule":false,"CSSPositionValue":false,"CSSPropertyRule":false,"CSSRotate":false,"CSSRule":false,"CSSRuleList":false,"CSSScale":false,"CSSScopeRule":false,"CSSSkew":false,"CSSSkewX":false,"CSSSkewY":false,"CSSStartingStyleRule":false,"CSSStyleDeclaration":false,"CSSStyleProperties":false,"CSSStyleRule":false,"CSSStyleSheet":false,"CSSStyleValue":false,"CSSSupportsRule":false,"CSSTransformComponent":false,"CSSTransformValue":false,"CSSTransition":false,"CSSTranslate":false,"CSSUnitValue":false,"CSSUnparsedValue":false,"CSSVariableReferenceValue":false,"CSSViewTransitionRule":false,"CustomElementRegistry":false,"customElements":false,"CustomEvent":false,"CustomStateSet":false,"DataTransfer":false,"DataTransferItem":false,"DataTransferItemList":false,"DecompressionStream":false,"DelayNode":false,"DelegatedInkTrailPresenter":false,"DeviceMotionEvent":false,"DeviceMotionEventAcceleration":false,"DeviceMotionEventRotationRate":false,"DeviceOrientationEvent":false,"devicePixelRatio":false,"DevicePosture":false,"DigitalCredential":false,"dispatchEvent":false,"DisposableStack":false,"document":false,"Document":false,"DocumentFragment":false,"documentPictureInPicture":false,"DocumentPictureInPicture":false,"DocumentPictureInPictureEvent":false,"DocumentTimeline":false,"DocumentType":false,"DOMError":false,"DOMException":false,"DOMImplementation":false,"DOMMatrix":false,"DOMMatrixReadOnly":false,"DOMParser":false,"DOMPoint":false,"DOMPointReadOnly":false,"DOMQuad":false,"DOMRect":false,"DOMRectList":false,"DOMRectReadOnly":false,"DOMStringList":false,"DOMStringMap":false,"DOMTokenList":false,"DragEvent":false,"DynamicsCompressorNode":false,"EditContext":false,"Element":false,"ElementInternals":false,"EncodedAudioChunk":false,"EncodedVideoChunk":false,"ErrorEvent":false,"event":false,"Event":false,"EventCounts":false,"EventSource":false,"EventTarget":false,"external":false,"External":false,"EyeDropper":false,"FeaturePolicy":false,"FederatedCredential":false,"fence":false,"Fence":false,"FencedFrameConfig":false,"fetch":false,"fetchLater":false,"FetchLaterResult":false,"File":false,"FileList":false,"FileReader":false,"FileSystem":false,"FileSystemDirectoryEntry":false,"FileSystemDirectoryHandle":false,"FileSystemDirectoryReader":false,"FileSystemEntry":false,"FileSystemFileEntry":false,"FileSystemFileHandle":false,"FileSystemHandle":false,"FileSystemObserver":false,"FileSystemWritableFileStream":false,"find":false,"focus":false,"FocusEvent":false,"FontData":false,"FontFace":false,"FontFaceSet":false,"FontFaceSetLoadEvent":false,"FormData":false,"FormDataEvent":false,"FragmentDirective":false,"frameElement":false,"frames":false,"GainNode":false,"Gamepad":false,"GamepadAxisMoveEvent":false,"GamepadButton":false,"GamepadButtonEvent":false,"GamepadEvent":false,"GamepadHapticActuator":false,"GamepadPose":false,"Geolocation":false,"GeolocationCoordinates":false,"GeolocationPosition":false,"GeolocationPositionError":false,"getComputedStyle":false,"getScreenDetails":false,"getSelection":false,"GPU":false,"GPUAdapter":false,"GPUAdapterInfo":false,"GPUBindGroup":false,"GPUBindGroupLayout":false,"GPUBuffer":false,"GPUBufferUsage":false,"GPUCanvasContext":false,"GPUColorWrite":false,"GPUCommandBuffer":false,"GPUCommandEncoder":false,"GPUCompilationInfo":false,"GPUCompilationMessage":false,"GPUComputePassEncoder":false,"GPUComputePipeline":false,"GPUDevice":false,"GPUDeviceLostInfo":false,"GPUError":false,"GPUExternalTexture":false,"GPUInternalError":false,"GPUMapMode":false,"GPUOutOfMemoryError":false,"GPUPipelineError":false,"GPUPipelineLayout":false,"GPUQuerySet":false,"GPUQueue":false,"GPURenderBundle":false,"GPURenderBundleEncoder":false,"GPURenderPassEncoder":false,"GPURenderPipeline":false,"GPUSampler":false,"GPUShaderModule":false,"GPUShaderStage":false,"GPUSupportedFeatures":false,"GPUSupportedLimits":false,"GPUTexture":false,"GPUTextureUsage":false,"GPUTextureView":false,"GPUUncapturedErrorEvent":false,"GPUValidationError":false,"GravitySensor":false,"Gyroscope":false,"HashChangeEvent":false,"Headers":false,"HID":false,"HIDConnectionEvent":false,"HIDDevice":false,"HIDInputReportEvent":false,"Highlight":false,"HighlightRegistry":false,"history":false,"History":false,"HTMLAllCollection":false,"HTMLAnchorElement":false,"HTMLAreaElement":false,"HTMLAudioElement":false,"HTMLBaseElement":false,"HTMLBodyElement":false,"HTMLBRElement":false,"HTMLButtonElement":false,"HTMLCanvasElement":false,"HTMLCollection":false,"HTMLDataElement":false,"HTMLDataListElement":false,"HTMLDetailsElement":false,"HTMLDialogElement":false,"HTMLDirectoryElement":false,"HTMLDivElement":false,"HTMLDListElement":false,"HTMLDocument":false,"HTMLElement":false,"HTMLEmbedElement":false,"HTMLFencedFrameElement":false,"HTMLFieldSetElement":false,"HTMLFontElement":false,"HTMLFormControlsCollection":false,"HTMLFormElement":false,"HTMLFrameElement":false,"HTMLFrameSetElement":false,"HTMLHeadElement":false,"HTMLHeadingElement":false,"HTMLHRElement":false,"HTMLHtmlElement":false,"HTMLIFrameElement":false,"HTMLImageElement":false,"HTMLInputElement":false,"HTMLLabelElement":false,"HTMLLegendElement":false,"HTMLLIElement":false,"HTMLLinkElement":false,"HTMLMapElement":false,"HTMLMarqueeElement":false,"HTMLMediaElement":false,"HTMLMenuElement":false,"HTMLMetaElement":false,"HTMLMeterElement":false,"HTMLModElement":false,"HTMLObjectElement":false,"HTMLOListElement":false,"HTMLOptGroupElement":false,"HTMLOptionElement":false,"HTMLOptionsCollection":false,"HTMLOutputElement":false,"HTMLParagraphElement":false,"HTMLParamElement":false,"HTMLPictureElement":false,"HTMLPreElement":false,"HTMLProgressElement":false,"HTMLQuoteElement":false,"HTMLScriptElement":false,"HTMLSelectedContentElement":false,"HTMLSelectElement":false,"HTMLSlotElement":false,"HTMLSourceElement":false,"HTMLSpanElement":false,"HTMLStyleElement":false,"HTMLTableCaptionElement":false,"HTMLTableCellElement":false,"HTMLTableColElement":false,"HTMLTableElement":false,"HTMLTableRowElement":false,"HTMLTableSectionElement":false,"HTMLTemplateElement":false,"HTMLTextAreaElement":false,"HTMLTimeElement":false,"HTMLTitleElement":false,"HTMLTrackElement":false,"HTMLUListElement":false,"HTMLUnknownElement":false,"HTMLVideoElement":false,"IDBCursor":false,"IDBCursorWithValue":false,"IDBDatabase":false,"IDBFactory":false,"IDBIndex":false,"IDBKeyRange":false,"IDBObjectStore":false,"IDBOpenDBRequest":false,"IDBRecord":false,"IDBRequest":false,"IDBTransaction":false,"IDBVersionChangeEvent":false,"IdentityCredential":false,"IdentityCredentialError":false,"IdentityProvider":false,"IdleDeadline":false,"IdleDetector":false,"IIRFilterNode":false,"Image":false,"ImageBitmap":false,"ImageBitmapRenderingContext":false,"ImageCapture":false,"ImageData":false,"ImageDecoder":false,"ImageTrack":false,"ImageTrackList":false,"indexedDB":false,"Ink":false,"innerHeight":false,"innerWidth":false,"InputDeviceCapabilities":false,"InputDeviceInfo":false,"InputEvent":false,"IntegrityViolationReportBody":false,"InterestEvent":false,"IntersectionObserver":false,"IntersectionObserverEntry":false,"isSecureContext":false,"Keyboard":false,"KeyboardEvent":false,"KeyboardLayoutMap":false,"KeyframeEffect":false,"LanguageDetector":false,"LargestContentfulPaint":false,"LaunchParams":false,"launchQueue":false,"LaunchQueue":false,"LayoutShift":false,"LayoutShiftAttribution":false,"length":false,"LinearAccelerationSensor":false,"localStorage":false,"location":true,"Location":false,"locationbar":false,"Lock":false,"LockManager":false,"matchMedia":false,"MathMLElement":false,"MediaCapabilities":false,"MediaCapabilitiesInfo":false,"MediaDeviceInfo":false,"MediaDevices":false,"MediaElementAudioSourceNode":false,"MediaEncryptedEvent":false,"MediaError":false,"MediaKeyError":false,"MediaKeyMessageEvent":false,"MediaKeys":false,"MediaKeySession":false,"MediaKeyStatusMap":false,"MediaKeySystemAccess":false,"MediaList":false,"MediaMetadata":false,"MediaQueryList":false,"MediaQueryListEvent":false,"MediaRecorder":false,"MediaRecorderErrorEvent":false,"MediaSession":false,"MediaSource":false,"MediaSourceHandle":false,"MediaStream":false,"MediaStreamAudioDestinationNode":false,"MediaStreamAudioSourceNode":false,"MediaStreamEvent":false,"MediaStreamTrack":false,"MediaStreamTrackAudioSourceNode":false,"MediaStreamTrackAudioStats":false,"MediaStreamTrackEvent":false,"MediaStreamTrackGenerator":false,"MediaStreamTrackProcessor":false,"MediaStreamTrackVideoStats":false,"menubar":false,"MessageChannel":false,"MessageEvent":false,"MessagePort":false,"MIDIAccess":false,"MIDIConnectionEvent":false,"MIDIInput":false,"MIDIInputMap":false,"MIDIMessageEvent":false,"MIDIOutput":false,"MIDIOutputMap":false,"MIDIPort":false,"MimeType":false,"MimeTypeArray":false,"model":false,"ModelGenericSession":false,"ModelManager":false,"MouseEvent":false,"moveBy":false,"moveTo":false,"MutationEvent":false,"MutationObserver":false,"MutationRecord":false,"name":false,"NamedNodeMap":false,"NavigateEvent":false,"navigation":false,"Navigation":false,"NavigationActivation":false,"NavigationCurrentEntryChangeEvent":false,"NavigationDestination":false,"NavigationHistoryEntry":false,"NavigationPrecommitController":false,"NavigationPreloadManager":false,"NavigationTransition":false,"navigator":false,"Navigator":false,"NavigatorLogin":false,"NavigatorManagedData":false,"NavigatorUAData":false,"NetworkInformation":false,"Node":false,"NodeFilter":false,"NodeIterator":false,"NodeList":false,"Notification":false,"NotifyPaintEvent":false,"NotRestoredReasonDetails":false,"NotRestoredReasons":false,"Observable":false,"OfflineAudioCompletionEvent":false,"OfflineAudioContext":false,"offscreenBuffering":false,"OffscreenCanvas":false,"OffscreenCanvasRenderingContext2D":false,"onabort":true,"onafterprint":true,"onanimationcancel":true,"onanimationend":true,"onanimationiteration":true,"onanimationstart":true,"onappinstalled":true,"onauxclick":true,"onbeforeinput":true,"onbeforeinstallprompt":true,"onbeforematch":true,"onbeforeprint":true,"onbeforetoggle":true,"onbeforeunload":true,"onbeforexrselect":true,"onblur":true,"oncancel":true,"oncanplay":true,"oncanplaythrough":true,"onchange":true,"onclick":true,"onclose":true,"oncommand":true,"oncontentvisibilityautostatechange":true,"oncontextlost":true,"oncontextmenu":true,"oncontextrestored":true,"oncopy":true,"oncuechange":true,"oncut":true,"ondblclick":true,"ondevicemotion":true,"ondeviceorientation":true,"ondeviceorientationabsolute":true,"ondrag":true,"ondragend":true,"ondragenter":true,"ondragleave":true,"ondragover":true,"ondragstart":true,"ondrop":true,"ondurationchange":true,"onemptied":true,"onended":true,"onerror":true,"onfocus":true,"onformdata":true,"ongamepadconnected":true,"ongamepaddisconnected":true,"ongotpointercapture":true,"onhashchange":true,"oninput":true,"oninvalid":true,"onkeydown":true,"onkeypress":true,"onkeyup":true,"onlanguagechange":true,"onload":true,"onloadeddata":true,"onloadedmetadata":true,"onloadstart":true,"onlostpointercapture":true,"onmessage":true,"onmessageerror":true,"onmousedown":true,"onmouseenter":true,"onmouseleave":true,"onmousemove":true,"onmouseout":true,"onmouseover":true,"onmouseup":true,"onmousewheel":true,"onoffline":true,"ononline":true,"onpagehide":true,"onpagereveal":true,"onpageshow":true,"onpageswap":true,"onpaste":true,"onpause":true,"onplay":true,"onplaying":true,"onpointercancel":true,"onpointerdown":true,"onpointerenter":true,"onpointerleave":true,"onpointermove":true,"onpointerout":true,"onpointerover":true,"onpointerrawupdate":true,"onpointerup":true,"onpopstate":true,"onprogress":true,"onratechange":true,"onrejectionhandled":true,"onreset":true,"onresize":true,"onscroll":true,"onscrollend":true,"onscrollsnapchange":true,"onscrollsnapchanging":true,"onsearch":true,"onsecuritypolicyviolation":true,"onseeked":true,"onseeking":true,"onselect":true,"onselectionchange":true,"onselectstart":true,"onslotchange":true,"onstalled":true,"onstorage":true,"onsubmit":true,"onsuspend":true,"ontimeupdate":true,"ontoggle":true,"ontransitioncancel":true,"ontransitionend":true,"ontransitionrun":true,"ontransitionstart":true,"onunhandledrejection":true,"onunload":true,"onvolumechange":true,"onwaiting":true,"onwheel":true,"open":false,"opener":false,"Option":false,"OrientationSensor":false,"origin":false,"originAgentCluster":false,"OscillatorNode":false,"OTPCredential":false,"outerHeight":false,"outerWidth":false,"OverconstrainedError":false,"PageRevealEvent":false,"PageSwapEvent":false,"PageTransitionEvent":false,"pageXOffset":false,"pageYOffset":false,"PannerNode":false,"parent":false,"PasswordCredential":false,"Path2D":false,"PaymentAddress":false,"PaymentManager":false,"PaymentMethodChangeEvent":false,"PaymentRequest":false,"PaymentRequestUpdateEvent":false,"PaymentResponse":false,"performance":false,"Performance":false,"PerformanceElementTiming":false,"PerformanceEntry":false,"PerformanceEventTiming":false,"PerformanceLongAnimationFrameTiming":false,"PerformanceLongTaskTiming":false,"PerformanceMark":false,"PerformanceMeasure":false,"PerformanceNavigation":false,"PerformanceNavigationTiming":false,"PerformanceObserver":false,"PerformanceObserverEntryList":false,"PerformancePaintTiming":false,"PerformanceResourceTiming":false,"PerformanceScriptTiming":false,"PerformanceServerTiming":false,"PerformanceTiming":false,"PeriodicSyncManager":false,"PeriodicWave":false,"Permissions":false,"PermissionStatus":false,"PERSISTENT":false,"personalbar":false,"PictureInPictureEvent":false,"PictureInPictureWindow":false,"Plugin":false,"PluginArray":false,"PointerEvent":false,"PopStateEvent":false,"postMessage":false,"Presentation":false,"PresentationAvailability":false,"PresentationConnection":false,"PresentationConnectionAvailableEvent":false,"PresentationConnectionCloseEvent":false,"PresentationConnectionList":false,"PresentationReceiver":false,"PresentationRequest":false,"PressureObserver":false,"PressureRecord":false,"print":false,"ProcessingInstruction":false,"Profiler":false,"ProgressEvent":false,"PromiseRejectionEvent":false,"prompt":false,"ProtectedAudience":false,"PublicKeyCredential":false,"PushManager":false,"PushSubscription":false,"PushSubscriptionOptions":false,"queryLocalFonts":false,"queueMicrotask":false,"QuotaExceededError":false,"RadioNodeList":false,"Range":false,"ReadableByteStreamController":false,"ReadableStream":false,"ReadableStreamBYOBReader":false,"ReadableStreamBYOBRequest":false,"ReadableStreamDefaultController":false,"ReadableStreamDefaultReader":false,"RelativeOrientationSensor":false,"RemotePlayback":false,"removeEventListener":false,"ReportBody":false,"reportError":false,"ReportingObserver":false,"Request":false,"requestAnimationFrame":false,"requestIdleCallback":false,"resizeBy":false,"ResizeObserver":false,"ResizeObserverEntry":false,"ResizeObserverSize":false,"resizeTo":false,"Response":false,"RestrictionTarget":false,"RTCCertificate":false,"RTCDataChannel":false,"RTCDataChannelEvent":false,"RTCDtlsTransport":false,"RTCDTMFSender":false,"RTCDTMFToneChangeEvent":false,"RTCEncodedAudioFrame":false,"RTCEncodedVideoFrame":false,"RTCError":false,"RTCErrorEvent":false,"RTCIceCandidate":false,"RTCIceTransport":false,"RTCPeerConnection":false,"RTCPeerConnectionIceErrorEvent":false,"RTCPeerConnectionIceEvent":false,"RTCRtpReceiver":false,"RTCRtpScriptTransform":false,"RTCRtpSender":false,"RTCRtpTransceiver":false,"RTCSctpTransport":false,"RTCSessionDescription":false,"RTCStatsReport":false,"RTCTrackEvent":false,"scheduler":false,"Scheduler":false,"Scheduling":false,"screen":false,"Screen":false,"ScreenDetailed":false,"ScreenDetails":false,"screenLeft":false,"ScreenOrientation":false,"screenTop":false,"screenX":false,"screenY":false,"ScriptProcessorNode":false,"scroll":false,"scrollbars":false,"scrollBy":false,"ScrollTimeline":false,"scrollTo":false,"scrollX":false,"scrollY":false,"SecurityPolicyViolationEvent":false,"Selection":false,"self":false,"Sensor":false,"SensorErrorEvent":false,"Serial":false,"SerialPort":false,"ServiceWorker":false,"ServiceWorkerContainer":false,"ServiceWorkerRegistration":false,"sessionStorage":false,"setInterval":false,"setTimeout":false,"ShadowRoot":false,"sharedStorage":false,"SharedStorage":false,"SharedStorageAppendMethod":false,"SharedStorageClearMethod":false,"SharedStorageDeleteMethod":false,"SharedStorageModifierMethod":false,"SharedStorageSetMethod":false,"SharedStorageWorklet":false,"SharedWorker":false,"showDirectoryPicker":false,"showOpenFilePicker":false,"showSaveFilePicker":false,"SnapEvent":false,"SourceBuffer":false,"SourceBufferList":false,"SpeechGrammar":false,"SpeechGrammarList":false,"SpeechRecognition":false,"SpeechRecognitionErrorEvent":false,"SpeechRecognitionEvent":false,"SpeechRecognitionPhrase":false,"speechSynthesis":false,"SpeechSynthesis":false,"SpeechSynthesisErrorEvent":false,"SpeechSynthesisEvent":false,"SpeechSynthesisUtterance":false,"SpeechSynthesisVoice":false,"StaticRange":false,"status":false,"statusbar":false,"StereoPannerNode":false,"stop":false,"Storage":false,"StorageBucket":false,"StorageBucketManager":false,"StorageEvent":false,"StorageManager":false,"structuredClone":false,"styleMedia":false,"StylePropertyMap":false,"StylePropertyMapReadOnly":false,"StyleSheet":false,"StyleSheetList":false,"SubmitEvent":false,"Subscriber":false,"SubtleCrypto":false,"Summarizer":false,"SuppressedError":false,"SVGAElement":false,"SVGAngle":false,"SVGAnimatedAngle":false,"SVGAnimatedBoolean":false,"SVGAnimatedEnumeration":false,"SVGAnimatedInteger":false,"SVGAnimatedLength":false,"SVGAnimatedLengthList":false,"SVGAnimatedNumber":false,"SVGAnimatedNumberList":false,"SVGAnimatedPreserveAspectRatio":false,"SVGAnimatedRect":false,"SVGAnimatedString":false,"SVGAnimatedTransformList":false,"SVGAnimateElement":false,"SVGAnimateMotionElement":false,"SVGAnimateTransformElement":false,"SVGAnimationElement":false,"SVGCircleElement":false,"SVGClipPathElement":false,"SVGComponentTransferFunctionElement":false,"SVGDefsElement":false,"SVGDescElement":false,"SVGElement":false,"SVGEllipseElement":false,"SVGFEBlendElement":false,"SVGFEColorMatrixElement":false,"SVGFEComponentTransferElement":false,"SVGFECompositeElement":false,"SVGFEConvolveMatrixElement":false,"SVGFEDiffuseLightingElement":false,"SVGFEDisplacementMapElement":false,"SVGFEDistantLightElement":false,"SVGFEDropShadowElement":false,"SVGFEFloodElement":false,"SVGFEFuncAElement":false,"SVGFEFuncBElement":false,"SVGFEFuncGElement":false,"SVGFEFuncRElement":false,"SVGFEGaussianBlurElement":false,"SVGFEImageElement":false,"SVGFEMergeElement":false,"SVGFEMergeNodeElement":false,"SVGFEMorphologyElement":false,"SVGFEOffsetElement":false,"SVGFEPointLightElement":false,"SVGFESpecularLightingElement":false,"SVGFESpotLightElement":false,"SVGFETileElement":false,"SVGFETurbulenceElement":false,"SVGFilterElement":false,"SVGForeignObjectElement":false,"SVGGElement":false,"SVGGeometryElement":false,"SVGGradientElement":false,"SVGGraphicsElement":false,"SVGImageElement":false,"SVGLength":false,"SVGLengthList":false,"SVGLinearGradientElement":false,"SVGLineElement":false,"SVGMarkerElement":false,"SVGMaskElement":false,"SVGMatrix":false,"SVGMetadataElement":false,"SVGMPathElement":false,"SVGNumber":false,"SVGNumberList":false,"SVGPathElement":false,"SVGPatternElement":false,"SVGPoint":false,"SVGPointList":false,"SVGPolygonElement":false,"SVGPolylineElement":false,"SVGPreserveAspectRatio":false,"SVGRadialGradientElement":false,"SVGRect":false,"SVGRectElement":false,"SVGScriptElement":false,"SVGSetElement":false,"SVGStopElement":false,"SVGStringList":false,"SVGStyleElement":false,"SVGSVGElement":false,"SVGSwitchElement":false,"SVGSymbolElement":false,"SVGTextContentElement":false,"SVGTextElement":false,"SVGTextPathElement":false,"SVGTextPositioningElement":false,"SVGTitleElement":false,"SVGTransform":false,"SVGTransformList":false,"SVGTSpanElement":false,"SVGUnitTypes":false,"SVGUseElement":false,"SVGViewElement":false,"SyncManager":false,"TaskAttributionTiming":false,"TaskController":false,"TaskPriorityChangeEvent":false,"TaskSignal":false,"Temporal":false,"TEMPORARY":false,"Text":false,"TextDecoder":false,"TextDecoderStream":false,"TextEncoder":false,"TextEncoderStream":false,"TextEvent":false,"TextFormat":false,"TextFormatUpdateEvent":false,"TextMetrics":false,"TextTrack":false,"TextTrackCue":false,"TextTrackCueList":false,"TextTrackList":false,"TextUpdateEvent":false,"TimeEvent":false,"TimeRanges":false,"ToggleEvent":false,"toolbar":false,"top":false,"Touch":false,"TouchEvent":false,"TouchList":false,"TrackEvent":false,"TransformStream":false,"TransformStreamDefaultController":false,"TransitionEvent":false,"Translator":false,"TreeWalker":false,"TrustedHTML":false,"TrustedScript":false,"TrustedScriptURL":false,"TrustedTypePolicy":false,"TrustedTypePolicyFactory":false,"trustedTypes":false,"UIEvent":false,"URL":false,"URLPattern":false,"URLSearchParams":false,"USB":false,"USBAlternateInterface":false,"USBConfiguration":false,"USBConnectionEvent":false,"USBDevice":false,"USBEndpoint":false,"USBInterface":false,"USBInTransferResult":false,"USBIsochronousInTransferPacket":false,"USBIsochronousInTransferResult":false,"USBIsochronousOutTransferPacket":false,"USBIsochronousOutTransferResult":false,"USBOutTransferResult":false,"UserActivation":false,"ValidityState":false,"VideoColorSpace":false,"VideoDecoder":false,"VideoEncoder":false,"VideoFrame":false,"VideoPlaybackQuality":false,"viewport":false,"Viewport":false,"ViewTimeline":false,"ViewTransition":false,"ViewTransitionTypeSet":false,"VirtualKeyboard":false,"VirtualKeyboardGeometryChangeEvent":false,"VisibilityStateEntry":false,"visualViewport":false,"VisualViewport":false,"VTTCue":false,"VTTRegion":false,"WakeLock":false,"WakeLockSentinel":false,"WaveShaperNode":false,"WebAssembly":false,"WebGL2RenderingContext":false,"WebGLActiveInfo":false,"WebGLBuffer":false,"WebGLContextEvent":false,"WebGLFramebuffer":false,"WebGLObject":false,"WebGLProgram":false,"WebGLQuery":false,"WebGLRenderbuffer":false,"WebGLRenderingContext":false,"WebGLSampler":false,"WebGLShader":false,"WebGLShaderPrecisionFormat":false,"WebGLSync":false,"WebGLTexture":false,"WebGLTransformFeedback":false,"WebGLUniformLocation":false,"WebGLVertexArrayObject":false,"WebSocket":false,"WebSocketError":false,"WebSocketStream":false,"WebTransport":false,"WebTransportBidirectionalStream":false,"WebTransportDatagramDuplexStream":false,"WebTransportError":false,"WebTransportReceiveStream":false,"WebTransportSendStream":false,"WGSLLanguageFeatures":false,"WheelEvent":false,"when":false,"window":false,"Window":false,"WindowControlsOverlay":false,"WindowControlsOverlayGeometryChangeEvent":false,"Worker":false,"Worklet":false,"WritableStream":false,"WritableStreamDefaultController":false,"WritableStreamDefaultWriter":false,"XMLDocument":false,"XMLHttpRequest":false,"XMLHttpRequestEventTarget":false,"XMLHttpRequestUpload":false,"XMLSerializer":false,"XPathEvaluator":false,"XPathExpression":false,"XPathResult":false,"XRAnchor":false,"XRAnchorSet":false,"XRBoundedReferenceSpace":false,"XRCamera":false,"XRCPUDepthInformation":false,"XRDepthInformation":false,"XRDOMOverlayState":false,"XRFrame":false,"XRHand":false,"XRHitTestResult":false,"XRHitTestSource":false,"XRInputSource":false,"XRInputSourceArray":false,"XRInputSourceEvent":false,"XRInputSourcesChangeEvent":false,"XRJointPose":false,"XRJointSpace":false,"XRLayer":false,"XRLightEstimate":false,"XRLightProbe":false,"XRPose":false,"XRRay":false,"XRReferenceSpace":false,"XRReferenceSpaceEvent":false,"XRRenderState":false,"XRRigidTransform":false,"XRSession":false,"XRSessionEvent":false,"XRSpace":false,"XRSystem":false,"XRTransientInputHitTestResult":false,"XRTransientInputHitTestSource":false,"XRView":false,"XRViewerPose":false,"XRViewport":false,"XRWebGLBinding":false,"XRWebGLDepthInformation":false,"XRWebGLLayer":false,"XSLTProcessor":false}'),builtin:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float16Array:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},bunBuiltin:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AsyncDisposableStack:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,BuildError:!1,BuildMessage:!1,Bun:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,confirm:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,dispatchEvent:!1,DisposableStack:!1,DOMException:!1,ErrorEvent:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,HTMLRewriter:!1,Loader:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,onerror:!0,onmessage:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PerformanceTiming:!1,postMessage:!1,process:!1,prompt:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,reportError:!1,Request:!1,ResolveError:!1,ResolveMessage:!1,Response:!1,self:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,ShadowRealm:!1,structuredClone:!1,SubtleCrypto:!1,SuppressedError:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,Worker:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},chai:{assert:!0,expect:!0,should:!0},commonjs:{exports:!0,global:!1,module:!1,require:!1},couch:{emit:!1,exports:!1,getRow:!1,log:!1,module:!1,provides:!1,require:!1,respond:!1,send:!1,start:!1,sum:!1},denoBuiltin:{AbortController:!1,AbortSignal:!1,addEventListener:!1,alert:!1,AsyncDisposableStack:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,close:!1,closed:!1,CloseEvent:!1,CompressionStream:!1,confirm:!1,console:!1,CountQueuingStrategy:!1,createImageBitmap:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,Deno:!1,dispatchEvent:!1,DisposableStack:!1,DOMException:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,fetch:!1,File:!1,FileReader:!1,FormData:!1,getParent:!1,global:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,ImageBitmap:!1,ImageData:!1,localStorage:!1,location:!1,Location:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,navigator:!1,Navigator:!1,onbeforeunload:!0,onerror:!0,onload:!0,onunhandledrejection:!0,onunload:!0,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,process:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,prompt:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,reportError:!1,Request:!1,Response:!1,self:!1,sessionStorage:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,Storage:!1,structuredClone:!1,SubtleCrypto:!1,SuppressedError:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,Window:!1,Worker:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},devtools:{$:!1,$_:!1,$$:!1,$0:!1,$1:!1,$2:!1,$3:!1,$4:!1,$x:!1,chrome:!1,clear:!1,copy:!1,debug:!1,dir:!1,dirxml:!1,getEventListeners:!1,inspect:!1,keys:!1,monitor:!1,monitorEvents:!1,profile:!1,profileEnd:!1,queryObjects:!1,table:!1,undebug:!1,unmonitor:!1,unmonitorEvents:!1,values:!1},embertest:{andThen:!1,click:!1,currentPath:!1,currentRouteName:!1,currentURL:!1,fillIn:!1,find:!1,findAll:!1,findWithAssert:!1,keyEvent:!1,pauseTest:!1,resumeTest:!1,triggerEvent:!1,visit:!1,wait:!1},es2015:{Array:!1,ArrayBuffer:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2016:{Array:!1,ArrayBuffer:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2017:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2018:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2019:{Array:!1,ArrayBuffer:!1,Atomics:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2020:{Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakSet:!1},es2021:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2022:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2023:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2024:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2025:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float16Array:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es2026:{AggregateError:!1,Array:!1,ArrayBuffer:!1,Atomics:!1,BigInt:!1,BigInt64Array:!1,BigUint64Array:!1,Boolean:!1,DataView:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,FinalizationRegistry:!1,Float16Array:!1,Float32Array:!1,Float64Array:!1,Function:!1,globalThis:!1,Infinity:!1,Int16Array:!1,Int32Array:!1,Int8Array:!1,Intl:!1,isFinite:!1,isNaN:!1,Iterator:!1,JSON:!1,Map:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,Promise:!1,Proxy:!1,RangeError:!1,ReferenceError:!1,Reflect:!1,RegExp:!1,Set:!1,SharedArrayBuffer:!1,String:!1,Symbol:!1,SyntaxError:!1,TypeError:!1,Uint16Array:!1,Uint32Array:!1,Uint8Array:!1,Uint8ClampedArray:!1,undefined:!1,unescape:!1,URIError:!1,WeakMap:!1,WeakRef:!1,WeakSet:!1},es3:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,Infinity:!1,isFinite:!1,isNaN:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1},es5:{Array:!1,Boolean:!1,Date:!1,decodeURI:!1,decodeURIComponent:!1,encodeURI:!1,encodeURIComponent:!1,Error:!1,escape:!1,eval:!1,EvalError:!1,Function:!1,Infinity:!1,isFinite:!1,isNaN:!1,JSON:!1,Math:!1,NaN:!1,Number:!1,Object:!1,parseFloat:!1,parseInt:!1,RangeError:!1,ReferenceError:!1,RegExp:!1,String:!1,SyntaxError:!1,TypeError:!1,undefined:!1,unescape:!1,URIError:!1},greasemonkey:{cloneInto:!1,createObjectIn:!1,exportFunction:!1,GM:!1,GM_addElement:!1,GM_addStyle:!1,GM_addValueChangeListener:!1,GM_deleteValue:!1,GM_deleteValues:!1,GM_download:!1,GM_getResourceText:!1,GM_getResourceURL:!1,GM_getTab:!1,GM_getTabs:!1,GM_getValue:!1,GM_getValues:!1,GM_info:!1,GM_listValues:!1,GM_log:!1,GM_notification:!1,GM_openInTab:!1,GM_registerMenuCommand:!1,GM_removeValueChangeListener:!1,GM_saveTab:!1,GM_setClipboard:!1,GM_setValue:!1,GM_setValues:!1,GM_unregisterMenuCommand:!1,GM_xmlhttpRequest:!1,unsafeWindow:!1},jasmine:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,expectAsync:!1,fail:!1,fdescribe:!1,fit:!1,it:!1,jasmine:!1,pending:!1,runs:!1,spyOn:!1,spyOnAllFunctions:!1,spyOnProperty:!1,waits:!1,waitsFor:!1,xdescribe:!1,xit:!1},jest:{afterAll:!1,afterEach:!1,beforeAll:!1,beforeEach:!1,describe:!1,expect:!1,fit:!1,it:!1,jest:!1,test:!1,xdescribe:!1,xit:!1,xtest:!1},jquery:{$:!1,jQuery:!1},meteor:{$:!1,Accounts:!1,AccountsClient:!1,AccountsCommon:!1,AccountsServer:!1,App:!1,Assets:!1,Blaze:!1,check:!1,Cordova:!1,DDP:!1,DDPRateLimiter:!1,DDPServer:!1,Deps:!1,EJSON:!1,Email:!1,HTTP:!1,Log:!1,Match:!1,Meteor:!1,Mongo:!1,MongoInternals:!1,Npm:!1,Package:!1,Plugin:!1,process:!1,Random:!1,ReactiveDict:!1,ReactiveVar:!1,Router:!1,ServiceConfiguration:!1,Session:!1,share:!1,Spacebars:!1,Template:!1,Tinytest:!1,Tracker:!1,UI:!1,Utils:!1,WebApp:!1,WebAppInternals:!1},mocha:{after:!1,afterEach:!1,before:!1,beforeEach:!1,context:!1,describe:!1,it:!1,mocha:!1,run:!1,setup:!1,specify:!1,suite:!1,suiteSetup:!1,suiteTeardown:!1,teardown:!1,test:!1,xcontext:!1,xdescribe:!1,xit:!1,xspecify:!1},mongo:{_isWindows:!1,_rand:!1,BulkWriteResult:!1,cat:!1,cd:!1,connect:!1,db:!1,getHostName:!1,getMemInfo:!1,hostname:!1,ISODate:!1,listFiles:!1,load:!1,ls:!1,md5sumFile:!1,mkdir:!1,Mongo:!1,NumberInt:!1,NumberLong:!1,ObjectId:!1,PlanCache:!1,print:!1,printjson:!1,pwd:!1,quit:!1,removeFile:!1,rs:!1,sh:!1,UUID:!1,version:!1,WriteResult:!1},nashorn:{__DIR__:!1,__FILE__:!1,__LINE__:!1,com:!1,edu:!1,exit:!1,java:!1,Java:!1,javafx:!1,JavaImporter:!1,javax:!1,JSAdapter:!1,load:!1,loadWithNewGlobal:!1,org:!1,Packages:!1,print:!1,quit:!1},node:{__dirname:!1,__filename:!1,AbortController:!1,AbortSignal:!1,AsyncDisposableStack:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DisposableStack:!1,DOMException:!1,ErrorEvent:!1,Event:!1,EventTarget:!1,exports:!0,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,localStorage:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,module:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,require:!1,Response:!1,sessionStorage:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,Storage:!1,structuredClone:!1,SubtleCrypto:!1,SuppressedError:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},nodeBuiltin:{AbortController:!1,AbortSignal:!1,AsyncDisposableStack:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,Buffer:!1,ByteLengthQueuingStrategy:!1,clearImmediate:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DisposableStack:!1,DOMException:!1,ErrorEvent:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,global:!1,Headers:!1,localStorage:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,process:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,sessionStorage:!1,setImmediate:!1,setInterval:!1,setTimeout:!1,Storage:!1,structuredClone:!1,SubtleCrypto:!1,SuppressedError:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},paintWorklet:{AsyncDisposableStack:!1,ByteLengthQueuingStrategy:!1,console:!1,CountQueuingStrategy:!1,CSSImageValue:!1,CSSKeywordValue:!1,CSSMathClamp:!1,CSSMathInvert:!1,CSSMathMax:!1,CSSMathMin:!1,CSSMathNegate:!1,CSSMathProduct:!1,CSSMathSum:!1,CSSMathValue:!1,CSSMatrixComponent:!1,CSSNumericArray:!1,CSSNumericValue:!1,CSSPerspective:!1,CSSPositionValue:!1,CSSRotate:!1,CSSScale:!1,CSSSkew:!1,CSSSkewX:!1,CSSSkewY:!1,CSSStyleValue:!1,CSSTransformComponent:!1,CSSTransformValue:!1,CSSTranslate:!1,CSSUnitValue:!1,CSSUnparsedValue:!1,CSSVariableReferenceValue:!1,devicePixelRatio:!1,DisposableStack:!1,PaintRenderingContext2D:!1,PaintSize:!1,PaintWorkletGlobalScope:!1,Path2D:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registerPaint:!1,StylePropertyMapReadOnly:!1,SuppressedError:!1,Temporal:!1,TransformStream:!1,TransformStreamDefaultController:!1,WebAssembly:!1,WorkletGlobalScope:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},phantomjs:{console:!0,exports:!0,phantom:!0,require:!0,WebPage:!0},prototypejs:{$:!1,$$:!1,$A:!1,$break:!1,$continue:!1,$F:!1,$H:!1,$R:!1,$w:!1,Abstract:!1,Ajax:!1,Autocompleter:!1,Builder:!1,Class:!1,Control:!1,Draggable:!1,Draggables:!1,Droppables:!1,Effect:!1,Element:!1,Enumerable:!1,Event:!1,Field:!1,Form:!1,Hash:!1,Insertion:!1,ObjectRange:!1,PeriodicalExecuter:!1,Position:!1,Prototype:!1,Scriptaculous:!1,Selector:!1,Sortable:!1,SortableObserver:!1,Sound:!1,Template:!1,Toggle:!1,Try:!1},protractor:{$:!1,$$:!1,browser:!1,by:!1,By:!1,DartObject:!1,element:!1,protractor:!1},qunit:{asyncTest:!1,deepEqual:!1,equal:!1,expect:!1,module:!1,notDeepEqual:!1,notEqual:!1,notOk:!1,notPropEqual:!1,notStrictEqual:!1,ok:!1,propEqual:!1,QUnit:!1,raises:!1,start:!1,stop:!1,strictEqual:!1,test:!1,throws:!1},rhino:{defineClass:!1,deserialize:!1,gc:!1,help:!1,importClass:!1,importPackage:!1,java:!1,load:!1,loadClass:!1,Packages:!1,print:!1,quit:!1,readFile:!1,readUrl:!1,runCommand:!1,seal:!1,serialize:!1,spawn:!1,sync:!1,toint32:!1,version:!1},serviceworker:{AbortController:!1,AbortPaymentEvent:!1,AbortSignal:!1,addEventListener:!1,ai:!1,AI:!1,AICreateMonitor:!1,AsyncDisposableStack:!1,atob:!1,BackgroundFetchEvent:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BackgroundFetchUpdateUIEvent:!1,BarcodeDetector:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,CanMakePaymentEvent:!1,CanvasGradient:!1,CanvasPattern:!1,clearInterval:!1,clearTimeout:!1,Client:!1,clients:!1,Clients:!1,CloseEvent:!1,CompressionStream:!1,console:!1,cookieStore:!1,CookieStore:!1,CookieStoreManager:!1,CountQueuingStrategy:!1,createImageBitmap:!1,CreateMonitor:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSSSkewX:!1,CSSSkewY:!1,CustomEvent:!1,DecompressionStream:!1,dispatchEvent:!1,DisposableStack:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,ExtendableCookieChangeEvent:!1,ExtendableEvent:!1,ExtendableMessageEvent:!1,fetch:!1,FetchEvent:!1,File:!1,FileList:!1,FileReader:!1,FileSystemDirectoryHandle:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemWritableFileStream:!1,FontFace:!1,FontFaceSet:!1,FontFaceSetLoadEvent:!1,fonts:!1,FormData:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRecord:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,importScripts:!1,indexedDB:!1,InstallEvent:!1,isSecureContext:!1,LanguageDetector:!1,location:!1,Lock:!1,LockManager:!1,MediaCapabilities:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,NavigationPreloadManager:!1,navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Notification:!1,NotificationEvent:!1,Observable:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onabortpayment:!0,onactivate:!0,onbackgroundfetchabort:!0,onbackgroundfetchclick:!0,onbackgroundfetchfail:!0,onbackgroundfetchsuccess:!0,oncanmakepayment:!0,oncookiechange:!0,onerror:!0,onfetch:!0,oninstall:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onnotificationclick:!0,onnotificationclose:!0,onoffline:!0,ononline:!0,onpaymentrequest:!0,onperiodicsync:!0,onpush:!0,onpushsubscriptionchange:!0,onrejectionhandled:!0,onsync:!0,onunhandledrejection:!0,origin:!1,Path2D:!1,PaymentRequestEvent:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PeriodicSyncEvent:!1,PeriodicSyncManager:!1,Permissions:!1,PermissionStatus:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,PushEvent:!1,PushManager:!1,PushMessageData:!1,PushSubscription:!1,PushSubscriptionChangeEvent:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,registration:!1,removeEventListener:!1,ReportBody:!1,reportError:!1,ReportingObserver:!1,Request:!1,Response:!1,RestrictionTarget:!1,scheduler:!1,Scheduler:!1,SecurityPolicyViolationEvent:!1,self:!1,serviceWorker:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerGlobalScope:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,skipWaiting:!1,StorageBucket:!1,StorageBucketManager:!1,StorageManager:!1,structuredClone:!1,Subscriber:!1,SubtleCrypto:!1,SuppressedError:!1,SyncEvent:!1,SyncManager:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,Temporal:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextMetrics:!1,TransformStream:!1,TransformStreamDefaultController:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,UserActivation:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportError:!1,WebTransportReceiveStream:!1,WebTransportSendStream:!1,WGSLLanguageFeatures:!1,when:!1,WindowClient:!1,WorkerGlobalScope:!1,WorkerLocation:!1,WorkerNavigator:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},"shared-node-browser":{AbortController:!1,AbortSignal:!1,AsyncDisposableStack:!1,atob:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,clearInterval:!1,clearTimeout:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CustomEvent:!1,DecompressionStream:!1,DisposableStack:!1,DOMException:!1,ErrorEvent:!1,Event:!1,EventTarget:!1,fetch:!1,File:!1,FormData:!1,Headers:!1,localStorage:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,navigator:!1,Navigator:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,queueMicrotask:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,Request:!1,Response:!1,sessionStorage:!1,setInterval:!1,setTimeout:!1,Storage:!1,structuredClone:!1,SubtleCrypto:!1,SuppressedError:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TransformStream:!1,TransformStreamDefaultController:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,WebAssembly:!1,WebSocket:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1},sharedWorker:{AbortController:!1,AbortSignal:!1,addEventListener:!1,AsyncDisposableStack:!1,atob:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BarcodeDetector:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,CanvasGradient:!1,CanvasPattern:!1,clearInterval:!1,clearTimeout:!1,close:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,createImageBitmap:!1,CreateMonitor:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSSSkewX:!1,CSSSkewY:!1,CustomEvent:!1,DecompressionStream:!1,dispatchEvent:!1,DisposableStack:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,FileReaderSync:!1,FileSystemDirectoryHandle:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemObserver:!1,FileSystemWritableFileStream:!1,FontFace:!1,FontFaceSet:!1,FontFaceSetLoadEvent:!1,fonts:!1,FormData:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRecord:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,importScripts:!1,indexedDB:!1,isSecureContext:!1,location:!1,Lock:!1,LockManager:!1,MediaCapabilities:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,NavigationPreloadManager:!1,navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Notification:!1,Observable:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onconnect:!0,onerror:!0,onlanguagechange:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onunhandledrejection:!0,origin:!1,Path2D:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PeriodicSyncManager:!1,Permissions:!1,PermissionStatus:!1,PERSISTENT:!1,PressureObserver:!1,PressureRecord:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,ReportBody:!1,reportError:!1,ReportingObserver:!1,Request:!1,Response:!1,RestrictionTarget:!1,scheduler:!1,Scheduler:!1,SecurityPolicyViolationEvent:!1,self:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SharedWorkerGlobalScope:!1,StorageBucket:!1,StorageBucketManager:!1,StorageManager:!1,structuredClone:!1,Subscriber:!1,SubtleCrypto:!1,SuppressedError:!1,SyncManager:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,Temporal:!1,TEMPORARY:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextMetrics:!1,TransformStream:!1,TransformStreamDefaultController:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,UserActivation:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,webkitRequestFileSystem:!1,webkitRequestFileSystemSync:!1,webkitResolveLocalFileSystemSyncURL:!1,webkitResolveLocalFileSystemURL:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportError:!1,WebTransportReceiveStream:!1,WebTransportSendStream:!1,WGSLLanguageFeatures:!1,when:!1,Worker:!1,WorkerGlobalScope:!1,WorkerLocation:!1,WorkerNavigator:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1},shelljs:{cat:!1,cd:!1,chmod:!1,cmd:!1,config:!1,cp:!1,dirs:!1,echo:!1,env:!1,error:!1,errorCode:!1,exec:!1,exit:!1,find:!1,grep:!1,head:!1,ln:!1,ls:!1,mkdir:!1,mv:!1,popd:!1,pushd:!1,pwd:!1,rm:!1,sed:!1,set:!1,ShellString:!1,sort:!1,tail:!1,tempdir:!1,test:!1,touch:!1,uniq:!1,which:!1},svelte:{$bindable:!1,$derived:!1,$effect:!1,$host:!1,$inspect:!1,$props:!1,$state:!1},vitest:{afterAll:!1,afterEach:!1,assert:!1,assertType:!1,beforeAll:!1,beforeEach:!1,chai:!1,describe:!1,expect:!1,expectTypeOf:!1,it:!1,onTestFailed:!1,onTestFinished:!1,suite:!1,test:!1,vi:!1,vitest:!1},vue:{defineEmits:!1,defineExpose:!1,defineModel:!1,defineOptions:!1,defineProps:!1,defineSlots:!1,withDefaults:!1},webextensions:{browser:!1,chrome:!1,opr:!1},worker:{AbortController:!1,AbortSignal:!1,addEventListener:!1,ai:!1,AI:!1,AICreateMonitor:!1,AsyncDisposableStack:!1,atob:!1,AudioData:!1,AudioDecoder:!1,AudioEncoder:!1,BackgroundFetchManager:!1,BackgroundFetchRecord:!1,BackgroundFetchRegistration:!1,BarcodeDetector:!1,Blob:!1,BroadcastChannel:!1,btoa:!1,ByteLengthQueuingStrategy:!1,Cache:!1,caches:!1,CacheStorage:!1,cancelAnimationFrame:!1,CanvasGradient:!1,CanvasPattern:!1,clearInterval:!1,clearTimeout:!1,close:!1,CloseEvent:!1,CompressionStream:!1,console:!1,CountQueuingStrategy:!1,createImageBitmap:!1,CreateMonitor:!1,CropTarget:!1,crossOriginIsolated:!1,crypto:!1,Crypto:!1,CryptoKey:!1,CSSSkewX:!1,CSSSkewY:!1,CustomEvent:!1,DecompressionStream:!1,DedicatedWorkerGlobalScope:!1,dispatchEvent:!1,DisposableStack:!1,DOMException:!1,DOMMatrix:!1,DOMMatrixReadOnly:!1,DOMPoint:!1,DOMPointReadOnly:!1,DOMQuad:!1,DOMRect:!1,DOMRectReadOnly:!1,DOMStringList:!1,EncodedAudioChunk:!1,EncodedVideoChunk:!1,ErrorEvent:!1,Event:!1,EventSource:!1,EventTarget:!1,fetch:!1,File:!1,FileList:!1,FileReader:!1,FileReaderSync:!1,FileSystemDirectoryHandle:!1,FileSystemFileHandle:!1,FileSystemHandle:!1,FileSystemObserver:!1,FileSystemSyncAccessHandle:!1,FileSystemWritableFileStream:!1,FontFace:!1,FontFaceSet:!1,FontFaceSetLoadEvent:!1,fonts:!1,FormData:!1,GPU:!1,GPUAdapter:!1,GPUAdapterInfo:!1,GPUBindGroup:!1,GPUBindGroupLayout:!1,GPUBuffer:!1,GPUBufferUsage:!1,GPUCanvasContext:!1,GPUColorWrite:!1,GPUCommandBuffer:!1,GPUCommandEncoder:!1,GPUCompilationInfo:!1,GPUCompilationMessage:!1,GPUComputePassEncoder:!1,GPUComputePipeline:!1,GPUDevice:!1,GPUDeviceLostInfo:!1,GPUError:!1,GPUExternalTexture:!1,GPUInternalError:!1,GPUMapMode:!1,GPUOutOfMemoryError:!1,GPUPipelineError:!1,GPUPipelineLayout:!1,GPUQuerySet:!1,GPUQueue:!1,GPURenderBundle:!1,GPURenderBundleEncoder:!1,GPURenderPassEncoder:!1,GPURenderPipeline:!1,GPUSampler:!1,GPUShaderModule:!1,GPUShaderStage:!1,GPUSupportedFeatures:!1,GPUSupportedLimits:!1,GPUTexture:!1,GPUTextureUsage:!1,GPUTextureView:!1,GPUUncapturedErrorEvent:!1,GPUValidationError:!1,Headers:!1,HID:!1,HIDConnectionEvent:!1,HIDDevice:!1,HIDInputReportEvent:!1,IDBCursor:!1,IDBCursorWithValue:!1,IDBDatabase:!1,IDBFactory:!1,IDBIndex:!1,IDBKeyRange:!1,IDBObjectStore:!1,IDBOpenDBRequest:!1,IDBRecord:!1,IDBRequest:!1,IDBTransaction:!1,IDBVersionChangeEvent:!1,IdleDetector:!1,ImageBitmap:!1,ImageBitmapRenderingContext:!1,ImageData:!1,ImageDecoder:!1,ImageTrack:!1,ImageTrackList:!1,importScripts:!1,indexedDB:!1,isSecureContext:!1,LanguageDetector:!1,location:!1,Lock:!1,LockManager:!1,MediaCapabilities:!1,MediaSource:!1,MediaSourceHandle:!1,MessageChannel:!1,MessageEvent:!1,MessagePort:!1,name:!1,NavigationPreloadManager:!1,navigator:!1,NavigatorUAData:!1,NetworkInformation:!1,Notification:!1,Observable:!1,OffscreenCanvas:!1,OffscreenCanvasRenderingContext2D:!1,onerror:!0,onlanguagechange:!0,onmessage:!0,onmessageerror:!0,onoffline:!0,ononline:!0,onrejectionhandled:!0,onrtctransform:!0,onunhandledrejection:!0,origin:!1,Path2D:!1,performance:!1,Performance:!1,PerformanceEntry:!1,PerformanceMark:!1,PerformanceMeasure:!1,PerformanceObserver:!1,PerformanceObserverEntryList:!1,PerformanceResourceTiming:!1,PerformanceServerTiming:!1,PeriodicSyncManager:!1,Permissions:!1,PermissionStatus:!1,PERSISTENT:!1,postMessage:!1,PressureObserver:!1,PressureRecord:!1,ProgressEvent:!1,PromiseRejectionEvent:!1,PushManager:!1,PushSubscription:!1,PushSubscriptionOptions:!1,queueMicrotask:!1,QuotaExceededError:!1,ReadableByteStreamController:!1,ReadableStream:!1,ReadableStreamBYOBReader:!1,ReadableStreamBYOBRequest:!1,ReadableStreamDefaultController:!1,ReadableStreamDefaultReader:!1,removeEventListener:!1,ReportBody:!1,reportError:!1,ReportingObserver:!1,Request:!1,requestAnimationFrame:!1,Response:!1,RestrictionTarget:!1,RTCDataChannel:!1,RTCEncodedAudioFrame:!1,RTCEncodedVideoFrame:!1,RTCRtpScriptTransformer:!1,RTCTransformEvent:!1,scheduler:!1,Scheduler:!1,SecurityPolicyViolationEvent:!1,self:!1,Serial:!1,SerialPort:!1,ServiceWorker:!1,ServiceWorkerContainer:!1,ServiceWorkerRegistration:!1,setInterval:!1,setTimeout:!1,SourceBuffer:!1,SourceBufferList:!1,StorageBucket:!1,StorageBucketManager:!1,StorageManager:!1,structuredClone:!1,Subscriber:!1,SubtleCrypto:!1,SuppressedError:!1,SyncManager:!1,TaskController:!1,TaskPriorityChangeEvent:!1,TaskSignal:!1,Temporal:!1,TEMPORARY:!1,TextDecoder:!1,TextDecoderStream:!1,TextEncoder:!1,TextEncoderStream:!1,TextMetrics:!1,TransformStream:!1,TransformStreamDefaultController:!1,TrustedHTML:!1,TrustedScript:!1,TrustedScriptURL:!1,TrustedTypePolicy:!1,TrustedTypePolicyFactory:!1,trustedTypes:!1,URL:!1,URLPattern:!1,URLSearchParams:!1,USB:!1,USBAlternateInterface:!1,USBConfiguration:!1,USBConnectionEvent:!1,USBDevice:!1,USBEndpoint:!1,USBInterface:!1,USBInTransferResult:!1,USBIsochronousInTransferPacket:!1,USBIsochronousInTransferResult:!1,USBIsochronousOutTransferPacket:!1,USBIsochronousOutTransferResult:!1,USBOutTransferResult:!1,UserActivation:!1,VideoColorSpace:!1,VideoDecoder:!1,VideoEncoder:!1,VideoFrame:!1,WebAssembly:!1,WebGL2RenderingContext:!1,WebGLActiveInfo:!1,WebGLBuffer:!1,WebGLContextEvent:!1,WebGLFramebuffer:!1,WebGLObject:!1,WebGLProgram:!1,WebGLQuery:!1,WebGLRenderbuffer:!1,WebGLRenderingContext:!1,WebGLSampler:!1,WebGLShader:!1,WebGLShaderPrecisionFormat:!1,WebGLSync:!1,WebGLTexture:!1,WebGLTransformFeedback:!1,WebGLUniformLocation:!1,WebGLVertexArrayObject:!1,webkitRequestFileSystem:!1,webkitRequestFileSystemSync:!1,webkitResolveLocalFileSystemSyncURL:!1,webkitResolveLocalFileSystemURL:!1,WebSocket:!1,WebSocketError:!1,WebSocketStream:!1,WebTransport:!1,WebTransportBidirectionalStream:!1,WebTransportDatagramDuplexStream:!1,WebTransportError:!1,WebTransportReceiveStream:!1,WebTransportSendStream:!1,WGSLLanguageFeatures:!1,when:!1,Worker:!1,WorkerGlobalScope:!1,WorkerLocation:!1,WorkerNavigator:!1,WritableStream:!1,WritableStreamDefaultController:!1,WritableStreamDefaultWriter:!1,XMLHttpRequest:!1,XMLHttpRequestEventTarget:!1,XMLHttpRequestUpload:!1},wsh:{ActiveXObject:!1,CollectGarbage:!1,Debug:!1,Enumerator:!1,GetObject:!1,RuntimeObject:!1,ScriptEngine:!1,ScriptEngineBuildVersion:!1,ScriptEngineMajorVersion:!1,ScriptEngineMinorVersion:!1,VBArray:!1,WScript:!1,WSH:!1},yui:{YAHOO:!1,YAHOO_config:!1,YUI:!1,YUI_config:!1}},Cp,h0;function bI(){return h0||(h0=1,Cp=EI),Cp}var CI=bI(),g0=SI(CI);const xI=new vI,wI={languageOptions:{globals:{...g0.browser,...g0.es2021},parserOptions:{ecmaVersion:2022,sourceType:"module",ecmaFeatures:{jsx:!0}}},rules:{"no-unused-vars":["warn",{argsIgnorePattern:"^_"}],"no-undef":"error",semi:"off"}};function y0(a,e,n){let o=0;for(let t=0;t<e-1;t++)o+=(a[t]?a[t].length:0)+1;return o+n-1}self.onmessage=a=>{const{code:e,requestId:n,fileName:o}=a.data;if(typeof e!="string"){self.postMessage({diagnostics:[],requestId:n,error:"Invalid code received"});return}if(!o){self.postMessage({diagnostics:[],requestId:n});return}const t=/\.js$/i.test(o),l=/\.jsx$/i.test(o);if(!t&&(!l||!0)){self.postMessage({diagnostics:[],requestId:n});return}try{const f=xI.verify(e,wI),u=e.split(`
|
|
125
|
+
`),r=f.map(m=>{const i=y0(u,m.line,m.column),c=m.endLine&&m.endColumn?y0(u,m.endLine,m.endColumn):i+(m.fix?.range[1]-m.fix?.range[0]||1);return{from:i,to:c,severity:m.severity===2?"error":m.severity===1?"warning":"info",message:m.message,source:m.ruleId?`eslint(${m.ruleId})`:"eslint"}});self.postMessage({diagnostics:r,requestId:n})}catch(f){console.error("Error linting in ESLint worker:",f),self.postMessage({error:f.message,diagnostics:[],requestId:n})}}})();
|