@eslint-sukka/react 8.0.3 → 8.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.cjs +2 -2
  2. package/package.json +7 -7
package/dist/index.cjs CHANGED
@@ -396,6 +396,6 @@ ${n?`...and ${n} more files
396
396
  `:""}
397
397
  If you absolutely need more files included, set parserOptions.projectService.maximumDefaultProjectFileMatchCount_THIS_WILL_SLOW_DOWN_LINTING to a larger value.
398
398
  `)}return s;function l(){return i.service.openClientFile(n,r.codeFullText,void 0,r.tsconfigRootDir)}}(r,k,E,t,e);return p("Opened project service file: %o",P),p("Retrieving script info and then program for: %s",E),S=e.service.getScriptInfo(E),(x=e.service.getDefaultProjectForFile(S.fileName,!0).getLanguageService(!0).getProgram())?(p("Found project service program for: %s",E),(0,c.createProjectProgram)(t,[x])):void p("Could not find project service program for: %s",E)};let a=i(bo()),o=i(bh()),s=i(xy("node:util")),l=r(yp()),c=Ta(),u=Ts(),_=bv(),d=Th(),p=(0,a.default)("typescript-eslint:typescript-estree:useProgramFromProjectService"),f=new WeakMap;return Sj}(),p=(0,t.default)("typescript-eslint:typescript-estree:parser"),f=new Map,m=new Set,g={};return bT}var xb={};function xT(){var e,t,n,r,i,a,o,s,l,c,u;return o$?v5:(o$=1,e=v5&&v5.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=v5&&v5.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(v5,"__esModule",{value:!0}),v5.withoutProjectParserOptions=v5.version=v5.typescriptVersionIsAtLeast=v5.simpleTraverse=v5.clearCandidateTSConfigRootDirs=v5.addCandidateTSConfigRootDir=v5.parseAndGenerateServices=v5.parse=v5.TSError=v5.createProgram=v5.getCanonicalFileName=void 0,t(function(){if(oz)return v7;oz=1,Object.defineProperty(v7,"__esModule",{value:!0}),v7.clearProgramCache=void 0,v7.clearCaches=a;let e=bb(),t=xv(),n=Tv(),r=SM(),i=SF();function a(){(0,n.clearCandidateTSConfigRootDirs)(),(0,t.clearDefaultProjectMatchedFiles)(),(0,t.clearProgramCache)(),(0,e.clearWatchCaches)(),(0,r.clearTSConfigMatchCache)(),(0,r.clearTSServerProjectService)(),(0,i.clearGlobCache)()}return v7.clearProgramCache=a,v7}(),v5),t(Tt(),v5),n=bv(),Object.defineProperty(v5,"getCanonicalFileName",{enumerable:!0,get:function(){return n.getCanonicalFileName}}),r=Tc(),Object.defineProperty(v5,"createProgram",{enumerable:!0,get:function(){return r.createProgramFromConfigFile}}),t(bG(),v5),i=b3(),Object.defineProperty(v5,"TSError",{enumerable:!0,get:function(){return i.TSError}}),a=xv(),Object.defineProperty(v5,"parse",{enumerable:!0,get:function(){return a.parse}}),Object.defineProperty(v5,"parseAndGenerateServices",{enumerable:!0,get:function(){return a.parseAndGenerateServices}}),o=Tv(),Object.defineProperty(v5,"addCandidateTSConfigRootDir",{enumerable:!0,get:function(){return o.addCandidateTSConfigRootDir}}),Object.defineProperty(v5,"clearCandidateTSConfigRootDirs",{enumerable:!0,get:function(){return o.clearCandidateTSConfigRootDirs}}),s=b7(),Object.defineProperty(v5,"simpleTraverse",{enumerable:!0,get:function(){return s.simpleTraverse}}),t(b2(),v5),l=bH(),Object.defineProperty(v5,"typescriptVersionIsAtLeast",{enumerable:!0,get:function(){return l.typescriptVersionIsAtLeast}}),c=SL(),Object.defineProperty(v5,"version",{enumerable:!0,get:function(){return c.version}}),oq||(oq=1,Object.defineProperty(xb,"__esModule",{value:!0}),xb.withoutProjectParserOptions=function(e){let{EXPERIMENTAL_useProjectService:t,project:n,projectService:r,...i}=e;return i}),u=xb,Object.defineProperty(v5,"withoutProjectParserOptions",{enumerable:!0,get:function(){return u.withoutProjectParserOptions}}),v5)}var xS=xT();let xx=new Map([["every",1],["filter",1],["find",1],["findIndex",1],["findLast",1],["findLastIndex",1],["flatMap",1],["forEach",1],["map",1],["reduce",2],["reduceRight",2],["some",1]]);function xE(e,t=!0){if(e.type!==_q.AST_NODE_TYPES.CallExpression||e.callee.type!==_q.AST_NODE_TYPES.MemberExpression||e.callee.property.type!==_q.AST_NODE_TYPES.Identifier)return!1;let n=e.callee.property.name;return"from"===n||t&&n.startsWith("from")}function xk(e,t=!0){if(e.type!==_q.AST_NODE_TYPES.CallExpression||e.callee.type!==_q.AST_NODE_TYPES.MemberExpression||e.callee.property.type!==_q.AST_NODE_TYPES.Identifier)return!1;let n=e.callee.property.name;return"map"===n||t&&n.endsWith("Map")}function xP(t){return null!=t.id?t.id:t.parent.type===_q.AST_NODE_TYPES.VariableDeclarator&&t.parent.id.type===_q.AST_NODE_TYPES.Identifier?t.parent.id:e}let xC=le(2,(e,t)=>{switch(!0){case e===t:return!0;case e.type!==t.type:return!1;case e.type===_q.AST_NODE_TYPES.Literal&&t.type===_q.AST_NODE_TYPES.Literal:return e.value===t.value;case e.type===_q.AST_NODE_TYPES.TemplateElement&&t.type===_q.AST_NODE_TYPES.TemplateElement:return e.value.raw===t.value.raw;case e.type===_q.AST_NODE_TYPES.TemplateLiteral&&t.type===_q.AST_NODE_TYPES.TemplateLiteral:{if(e.quasis.length!==t.quasis.length||e.expressions.length!==t.expressions.length)return!1;let n=e.quasis.length;for(;n--;)if(e.quasis[n]?.value.raw!==t.quasis[n]?.value.raw)return!1;for(n=e.expressions.length;n--;)if(!xC(e.expressions[n],t.expressions[n]))return!1;return!0}case e.type===_q.AST_NODE_TYPES.Identifier&&t.type===_q.AST_NODE_TYPES.Identifier:case e.type===_q.AST_NODE_TYPES.PrivateIdentifier&&t.type===_q.AST_NODE_TYPES.PrivateIdentifier:return e.name===t.name;case e.type===_q.AST_NODE_TYPES.MemberExpression&&t.type===_q.AST_NODE_TYPES.MemberExpression:return xC(e.property,t.property)&&xC(e.object,t.object);case e.type===_q.AST_NODE_TYPES.JSXAttribute&&t.type===_q.AST_NODE_TYPES.JSXAttribute:if(e.name.name!==t.name.name)return!1;if(null==e.value||null==t.value)return e.value===t.value;return xC(e.value,t.value);case e.type===_q.AST_NODE_TYPES.ThisExpression&&t.type===_q.AST_NODE_TYPES.ThisExpression:return!0;default:return!1}}),xw=h1.ASTUtils.isNodeOfType,xA=h1.ASTUtils.isNodeOfTypes,xD=xA([_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionDeclaration,_q.AST_NODE_TYPES.FunctionExpression]);xA([_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionDeclaration,_q.AST_NODE_TYPES.FunctionExpression,_q.AST_NODE_TYPES.TSCallSignatureDeclaration,_q.AST_NODE_TYPES.TSConstructSignatureDeclaration,_q.AST_NODE_TYPES.TSDeclareFunction,_q.AST_NODE_TYPES.TSEmptyBodyFunctionExpression,_q.AST_NODE_TYPES.TSFunctionType,_q.AST_NODE_TYPES.TSMethodSignature]);let xN=xA([_q.AST_NODE_TYPES.ClassDeclaration,_q.AST_NODE_TYPES.ClassExpression]),xF=xA([_q.AST_NODE_TYPES.PropertyDefinition,_q.AST_NODE_TYPES.MethodDefinition]);xA([_q.AST_NODE_TYPES.PropertyDefinition,_q.AST_NODE_TYPES.TSIndexSignature,_q.AST_NODE_TYPES.TSParameterProperty,_q.AST_NODE_TYPES.TSPropertySignature]);let xO=xw(_q.AST_NODE_TYPES.JSXElement);xw(_q.AST_NODE_TYPES.JSXFragment);let xI=xA([_q.AST_NODE_TYPES.JSXIdentifier,_q.AST_NODE_TYPES.JSXMemberExpression,_q.AST_NODE_TYPES.JSXNamespacedName]),xL=xA([_q.AST_NODE_TYPES.JSXAttribute,_q.AST_NODE_TYPES.JSXClosingElement,_q.AST_NODE_TYPES.JSXClosingFragment,_q.AST_NODE_TYPES.JSXElement,_q.AST_NODE_TYPES.JSXEmptyExpression,_q.AST_NODE_TYPES.JSXExpressionContainer,_q.AST_NODE_TYPES.JSXFragment,_q.AST_NODE_TYPES.JSXIdentifier,_q.AST_NODE_TYPES.JSXMemberExpression,_q.AST_NODE_TYPES.JSXNamespacedName,_q.AST_NODE_TYPES.JSXOpeningElement,_q.AST_NODE_TYPES.JSXOpeningFragment,_q.AST_NODE_TYPES.JSXSpreadAttribute,_q.AST_NODE_TYPES.JSXSpreadChild,_q.AST_NODE_TYPES.JSXText]),xM=s5(xA([_q.AST_NODE_TYPES.DoWhileStatement,_q.AST_NODE_TYPES.ForInStatement,_q.AST_NODE_TYPES.ForOfStatement,_q.AST_NODE_TYPES.ForStatement,_q.AST_NODE_TYPES.WhileStatement]),xA([_q.AST_NODE_TYPES.IfStatement,_q.AST_NODE_TYPES.SwitchStatement])),xR=s5(xM,xA([_q.AST_NODE_TYPES.LogicalExpression,_q.AST_NODE_TYPES.ConditionalExpression])),xj=xA([_q.AST_NODE_TYPES.TSAsExpression,_q.AST_NODE_TYPES.TSTypeAssertion,_q.AST_NODE_TYPES.TSNonNullExpression,_q.AST_NODE_TYPES.TSSatisfiesExpression,_q.AST_NODE_TYPES.TSInstantiationExpression]),xY=xA([_q.AST_NODE_TYPES.TSAsExpression,_q.AST_NODE_TYPES.TSTypeAssertion,_q.AST_NODE_TYPES.TSNonNullExpression,_q.AST_NODE_TYPES.TSSatisfiesExpression]);function xU(e,t=" "){if(e.type===_q.AST_NODE_TYPES.Literal){var n;return"regex"in e?"RegExp literal":`${null===(n=e.value)?"null":typeof n} literal`}return xL(e)?`JSX ${vX(v4(function(e,t,n=""){return e.replace("JSX",n)}(e.type,0,""),t))}`:vX(v4(e.type,t))}function xB(e,t){switch(e.type){case _q.AST_NODE_TYPES.Identifier:case _q.AST_NODE_TYPES.JSXIdentifier:case _q.AST_NODE_TYPES.PrivateIdentifier:return e.name;case _q.AST_NODE_TYPES.MemberExpression:case _q.AST_NODE_TYPES.JSXMemberExpression:return`${xB(e.object,t)}.${xB(e.property,t)}`;case _q.AST_NODE_TYPES.JSXNamespacedName:return`${e.namespace.name}:${e.name.name}`;case _q.AST_NODE_TYPES.JSXText:return e.value;case _q.AST_NODE_TYPES.Literal:return e.raw;default:return t(e)}}function xV(e){return xj(e)?xV(e.expression):e}function xJ(e){return xV(e).type===_q.AST_NODE_TYPES.ThisExpression}function xz(t,n){if(null==t)return e;let r=t.parent;for(;null!=r&&r.type!==_q.AST_NODE_TYPES.Program;){if(n(r))return r;r=r.parent}return e}function xq(e){let t=[],n=xD(e)?e:xz(e,xD);return xS.simpleTraverse(e,{enter(e){e.type!==_q.AST_NODE_TYPES.ReturnStatement||xz(e,xD)===n&&t.push(e)}}),t}function x$(e){let t=xw(e);return function(n){let r=x$(e),i=[];if(t(n)&&i.push(n),"arguments"in n){let t=n.arguments.map(x$(e)).flat(1);i.push(...t)}if("expression"in n&&!0!==n.expression&&!1!==n.expression){let e=r(n.expression);i.push(...e)}if("left"in n){let e=r(n.left);i.push(...e)}if("right"in n){let e=r(n.right);i.push(...e)}if("test"in n&&null!=n.test){let e=r(n.test);i.push(...e)}if("consequent"in n){let e=Array.isArray(n.consequent)?n.consequent.map(r).flat(1):r(n.consequent);i.push(...e)}if("alternate"in n&&null!=n.alternate){let e=Array.isArray(n.alternate)?n.alternate.map(r).flat(1):r(n.alternate);i.push(...e)}if("elements"in n){let t=n.elements.filter(e=>null!=e).map(x$(e)).flat(1);i.push(...t)}if("properties"in n){let e=n.properties.map(r).flat(1);i.push(...e)}if("expressions"in n){let e=n.expressions.map(r).flat(1);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.Property){let e=r(n.value);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.SpreadElement){let e=r(n.argument);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.MemberExpression){let e=r(n.object);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.UnaryExpression){let e=r(n.argument);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.ChainExpression){let e=r(n.expression);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.TSNonNullExpression){let e=r(n.expression);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.TSAsExpression){let e=r(n.expression);i.push(...e)}if(n.type===_q.AST_NODE_TYPES.TSSatisfiesExpression){let e=r(n.expression);i.push(...e)}return i}}let xW=x$(_q.AST_NODE_TYPES.NewExpression),xK=x$(_q.AST_NODE_TYPES.CallExpression);function xH(t){switch(!0){case"id"in t&&null!=t.id:return t.id;case t.parent.type===_q.AST_NODE_TYPES.VariableDeclarator&&t.parent.init===t&&t.parent.id.type===_q.AST_NODE_TYPES.Identifier:return t.parent.id;case t.parent.type===_q.AST_NODE_TYPES.AssignmentExpression&&t.parent.right===t&&"="===t.parent.operator&&t.parent.left.type===_q.AST_NODE_TYPES.Identifier:return t.parent.left;case t.parent.type===_q.AST_NODE_TYPES.Property&&t.parent.value===t&&!t.parent.computed&&t.parent.key.type===_q.AST_NODE_TYPES.Identifier:case xF(t.parent)&&t.parent.value===t&&t.parent.key.type===_q.AST_NODE_TYPES.Identifier:return t.parent.key;case t.parent.type===_q.AST_NODE_TYPES.AssignmentPattern&&t.parent.right===t&&t.parent.left.type===_q.AST_NODE_TYPES.Identifier:return t.parent.left;case xY(t.parent):return xH(t.parent)}return e}function xG(t){if(t.type===_q.AST_NODE_TYPES.FunctionDeclaration)return[t];let{parent:n}=t;switch(!0){case n.type===_q.AST_NODE_TYPES.VariableDeclarator:return[n.parent,n,t];case n.type===_q.AST_NODE_TYPES.CallExpression&&n.parent.type===_q.AST_NODE_TYPES.VariableDeclarator:return[n.parent.parent,n.parent,n,t];case n.type===_q.AST_NODE_TYPES.CallExpression&&n.parent.type===_q.AST_NODE_TYPES.CallExpression&&n.parent.parent.type===_q.AST_NODE_TYPES.VariableDeclarator:case n.type===_q.AST_NODE_TYPES.Property&&n.parent.type===_q.AST_NODE_TYPES.ObjectExpression&&n.parent.parent.type===_q.AST_NODE_TYPES.VariableDeclarator:return[n.parent.parent.parent,n.parent.parent,n.parent,n,t];case n.type===_q.AST_NODE_TYPES.MethodDefinition&&n.parent.parent.type===_q.AST_NODE_TYPES.ClassDeclaration:case n.type===_q.AST_NODE_TYPES.PropertyDefinition&&n.parent.parent.type===_q.AST_NODE_TYPES.ClassDeclaration:return[n.parent.parent,n.parent,n,t]}return e}function xX(e,t){return t.some(t=>{if(t.type!==_q.AST_NODE_TYPES.CallExpression)return!1;let{callee:n}=t;return n.type===_q.AST_NODE_TYPES.Identifier?n.name===e:n.type===_q.AST_NODE_TYPES.MemberExpression&&"name"in n.property&&n.property.name===e})}function xQ(e,t){if(e.type!==_q.AST_NODE_TYPES.Literal)return!1;switch(t){case"boolean":return"boolean"==typeof e.value;case"null":return null===e.value;case"number":return"number"==typeof e.value;case"regexp":return"regex"in e;case"string":return"string"==typeof e.value}}let xZ="AssignmentExpression[operator='='][left.type='MemberExpression'][left.property.name='displayName']";function x0(e){return null!=e&&e.type===_q.AST_NODE_TYPES.MemberExpression&&e.object.type===_q.AST_NODE_TYPES.MemberExpression&&e.object.object.type===_q.AST_NODE_TYPES.Identifier&&"process"===e.object.object.name&&e.object.property.type===_q.AST_NODE_TYPES.Identifier&&"env"===e.object.property.name&&e.property.type===_q.AST_NODE_TYPES.Identifier&&"NODE_ENV"===e.property.name}function x1(e){return e.callee.type===_q.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"then"===e.callee.property.name}function x2(t){return xj(t)?x2(xV(t)):t.type===_q.AST_NODE_TYPES.Identifier||t.type===_q.AST_NODE_TYPES.PrivateIdentifier?t.name:t.type===_q.AST_NODE_TYPES.Literal?String(t.value):t.type===_q.AST_NODE_TYPES.TemplateLiteral&&0===t.expressions.length?t.quasis[0]?.value.raw:e}function x3(e){var t;return null!=e&&xD(e)&&e.parent.type===_q.AST_NODE_TYPES.CallExpression&&null!=(t=e.parent.callee)&&t.type===_q.AST_NODE_TYPES.MemberExpression&&t.object.type===_q.AST_NODE_TYPES.Identifier&&"vi"===t.object.name&&t.property.type===_q.AST_NODE_TYPES.Identifier&&"mock"===t.property.name&&e.parent.arguments[1]===e}var x6=hH(),x4=d5();function x8(t,n){if(null==t)return e;switch(!0){case t.type===_q.AST_NODE_TYPES.VariableDeclarator&&t.init===n:return t.id;case t.type===_q.AST_NODE_TYPES.AssignmentExpression&&t.right===n:return t.left;case t.type===_q.AST_NODE_TYPES.BlockStatement||t.type===_q.AST_NODE_TYPES.Program||t.parent===t:return e;default:return x8(t.parent,t)}}function x5(t,n){if(null==t)return e;let r=t.defs.at(n);if(null==r)return e;switch(!0){case r.type===x6.DefinitionType.FunctionName&&r.node.type===_q.AST_NODE_TYPES.FunctionDeclaration:case r.type===x6.DefinitionType.ClassName&&r.node.type===_q.AST_NODE_TYPES.ClassDeclaration:return r.node;case"init"in r.node&&null!=r.node.init&&!("declarations"in r.node.init):return r.node.init;default:return e}}function x7(t,n){if(null==t)return e;let r=x5(t,n);if(null!=r)return r;let i=t.defs.at(n);return i?.type===x6.DefinitionType.Parameter&&xD(i.node)?i.node:e}let x9=le(2,(t,n)=>null==t?e:x4.findVariable(n,t)??e);function Ee(e,t,n,r=new Set){return t.findLast(t=>{if(t.type===_q.AST_NODE_TYPES.Property)return"name"in t.key&&t.key.name===e;if(t.type===_q.AST_NODE_TYPES.SpreadElement)switch(t.argument.type){case _q.AST_NODE_TYPES.Identifier:{if(r.has(t.argument.name))return!1;let i=x5(x9(t.argument.name,n),0);if(i?.type===_q.AST_NODE_TYPES.ObjectExpression)return r.add(t.argument.name),null!=Ee(e,i.properties,n,r);break}case _q.AST_NODE_TYPES.ObjectExpression:return null!=Ee(e,t.argument.properties,n,r)}return!1})}function Et(e){let t=[e];for(let n of e.childScopes)t.push(...Et(n));return t}function En(t,n){if(null==t)return e;switch(t.type){case _q.AST_NODE_TYPES.JSXElement:case _q.AST_NODE_TYPES.JSXFragment:return{kind:"jsx",node:t};case _q.AST_NODE_TYPES.ArrayExpression:return{kind:"array",node:t};case _q.AST_NODE_TYPES.ObjectExpression:return{kind:"plain",node:t};case _q.AST_NODE_TYPES.ClassExpression:return{kind:"class",node:t};case _q.AST_NODE_TYPES.NewExpression:case _q.AST_NODE_TYPES.ThisExpression:return{kind:"instance",node:t};case _q.AST_NODE_TYPES.FunctionDeclaration:case _q.AST_NODE_TYPES.FunctionExpression:case _q.AST_NODE_TYPES.ArrowFunctionExpression:return{kind:"function",node:t};case _q.AST_NODE_TYPES.Literal:if("regex"in t)return{kind:"regexp",node:t};return e;case _q.AST_NODE_TYPES.Identifier:if(!("name"in t)||"string"!=typeof t.name)return e;return En(x5(n.set.get(t.name),-1),n);case _q.AST_NODE_TYPES.MemberExpression:if(!("object"in t))return e;return En(t.object,n);case _q.AST_NODE_TYPES.AssignmentExpression:case _q.AST_NODE_TYPES.AssignmentPattern:if(!("right"in t))return e;return En(t.right,n);case _q.AST_NODE_TYPES.LogicalExpression:return En(t.right,n);case _q.AST_NODE_TYPES.ConditionalExpression:return En(t.consequent,n)??En(t.alternate,n);case _q.AST_NODE_TYPES.SequenceExpression:if(0===t.expressions.length)return e;return En(t.expressions[t.expressions.length-1],n);case _q.AST_NODE_TYPES.CallExpression:return{kind:"unknown",node:t,reason:"call-expression"};default:if(!("expression"in t)||"object"!=typeof t.expression)return e;return En(t.expression,n)}}let Er=[_q.AST_NODE_TYPES.FunctionDeclaration,_q.AST_NODE_TYPES.FunctionExpression,_q.AST_NODE_TYPES.ClassBody,_q.AST_NODE_TYPES.Program];function Ei(e,t,n){let[r,i]=n;switch(!0){case e===t:return!0;case e.type===_q.AST_NODE_TYPES.Literal&&t.type===_q.AST_NODE_TYPES.Literal:return e.value===t.value;case e.type===_q.AST_NODE_TYPES.TemplateElement&&t.type===_q.AST_NODE_TYPES.TemplateElement:return e.value.cooked===t.value.cooked;case e.type===_q.AST_NODE_TYPES.Identifier&&t.type===_q.AST_NODE_TYPES.Identifier:{let n=x9(e,r),a=x9(t,i),o=x7(n,0),s=x7(a,0),l=o?.parent,c=s?.parent,u=n?.defs.at(0),_=a?.defs.at(0),d=u?.parent?.parent,p=_?.parent?.parent;switch(!0){case l?.type===_q.AST_NODE_TYPES.CallExpression&&c?.type===_q.AST_NODE_TYPES.CallExpression&&xD(o)&&xD(s):{if(!xC(l.callee,c.callee))return!1;let n=o.params,r=s.params,i=n.findIndex(t=>xC(t,e)),a=r.findIndex(e=>xC(e,t));return -1!==i&&-1!==a&&i===a}case d?.type===_q.AST_NODE_TYPES.ForOfStatement&&p?.type===_q.AST_NODE_TYPES.ForOfStatement:{let e=d.left,t=p.left;if(e.type!==t.type)return!1;return xC(d.right,p.right)}default:return null!=n&&null!=a&&n===a}}case e.type===_q.AST_NODE_TYPES.MemberExpression&&t.type===_q.AST_NODE_TYPES.MemberExpression:return xC(e.property,t.property)&&Ei(e.object,t.object,n);case e.type===_q.AST_NODE_TYPES.ThisExpression&&t.type===_q.AST_NODE_TYPES.ThisExpression:if(r.block===i.block)return!0;return xz(e,xA(Er))===xz(t,xA(Er));default:{let n=x4.getStaticValue(e,r),a=x4.getStaticValue(t,i);return null!=n&&null!=a&&n.value===a.value}}}var Ea=s1(function(){if(oK)return oW;oK=1;var e=Object.defineProperty,t=Object.getOwnPropertyDescriptor,n=Object.getOwnPropertyNames,r=Object.prototype.hasOwnProperty,i={},a={BiRecord:()=>l,default:()=>s,reverse:()=>c};for(var o in a)e(i,o,{get:a[o],enumerable:!0});function s(e){return new l(e)}oW=((i,a,o,s)=>{if(a&&"object"==typeof a||"function"==typeof a)for(let l of n(a))r.call(i,l)||l===o||e(i,l,{get:()=>a[l],enumerable:!(s=t(a,l))||s.enumerable});return i})(e({},"__esModule",{value:!0}),i);var l=class{constructor(e,t=c(e)){this.original=e,this.reversed=t}get(e){return this.original[e]??this.reversed[e]}has(e){return e in this.original||e in this.reversed}};function c(e){return Object.fromEntries(Object.entries(e).map(([e,t])=>[t,e]))}return oW}());function Eo(e){return le(2,(t,n)=>{if(null==n)return!1;let r=xB(n,e=>t.sourceCode.getText(e));return r===e||r.substring(r.indexOf(".")+1)===e})}function Es(e){return le(2,(t,n)=>null!=n&&n.type===_q.AST_NODE_TYPES.CallExpression&&Eo(e)(t,n.callee))}Eo("captureOwnerStack");let El=Eo("Children.count"),Ec=Eo("Children.forEach"),Eu=Eo("Children.map"),E_=Eo("Children.only"),Ed=Eo("Children.toArray");Eo("cloneElement"),Eo("createContext"),Eo("createElement"),Eo("createRef"),Eo("forwardRef"),Eo("memo"),Eo("lazy");let Ep=Es("captureOwnerStack");Es("Children.count"),Es("Children.forEach"),Es("Children.map"),Es("Children.only");let Ef=Es("Children.toArray"),Em=Es("cloneElement"),Eg=Es("createContext"),Eh=Es("createElement"),Ey=Es("createRef"),Ev=Es("forwardRef"),Eb=Es("memo"),ET=Es("lazy");function ES(e){return"use"===e||/^use[A-Z0-9]/.test(e)}function Ex(e){return null!=e&&e.type===_q.AST_NODE_TYPES.CallExpression&&(e.callee.type===_q.AST_NODE_TYPES.Identifier?ES(e.callee.name):e.callee.type===_q.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===_q.AST_NODE_TYPES.Identifier&&ES(e.callee.property.name))}function EE(e){return null==e||e.type!==_q.AST_NODE_TYPES.CallExpression?lr:t=>{switch(e.callee.type){case _q.AST_NODE_TYPES.Identifier:return e.callee.name===t;case _q.AST_NODE_TYPES.MemberExpression:return e.callee.property.type===_q.AST_NODE_TYPES.Identifier&&e.callee.property.name===t;default:return!1}}}function Ek(e){if(null==e||e.type!==_q.AST_NODE_TYPES.CallExpression)return!1;switch(e.callee.type){case _q.AST_NODE_TYPES.Identifier:return/^use\w*Effect$/u.test(e.callee.name);case _q.AST_NODE_TYPES.MemberExpression:return e.callee.property.type===_q.AST_NODE_TYPES.Identifier&&/^use\w*Effect$/u.test(e.callee.property.name);default:return!1}}let EP=li(EE)("use"),EC=li(EE)("useCallback"),Ew=li(EE)("useContext"),EA=li(EE)("useMemo"),ED=li(EE)("useState"),EN=new _m("hook_");function EF(e){return null!=e&&e.parent?.type===_q.AST_NODE_TYPES.CallExpression&&e.parent.arguments.at(0)===e&&Ek(e.parent)}function EO(e){if(null==e)return!1;let t=xz(e,xw(_q.AST_NODE_TYPES.ReturnStatement)),n=xz(e,xD);return n===xz(t,xD)&&EF(n)}function EI(e){switch(e.type){case _q.AST_NODE_TYPES.JSXIdentifier:return e.name;case _q.AST_NODE_TYPES.JSXNamespacedName:return`${e.namespace.name}:${e.name.name}`;case _q.AST_NODE_TYPES.JSXMemberExpression:return`${EI(e.object)}.${EI(e.property)}`;case _q.AST_NODE_TYPES.JSXText:return e.value;case _q.AST_NODE_TYPES.JSXOpeningElement:return`<${EI(e.name)}>`;case _q.AST_NODE_TYPES.JSXClosingElement:return`</${EI(e.name)}>`;case _q.AST_NODE_TYPES.JSXOpeningFragment:return"<>";case _q.AST_NODE_TYPES.JSXClosingFragment:return"</>"}}function EL(e,t,n){let r=n??e.sourceCode.getScope(t),i=t.openingElement.attributes;return e=>i.findLast(t=>{if(t.type===_q.AST_NODE_TYPES.JSXAttribute)return EI(t.name)===e;switch(t.argument.type){case _q.AST_NODE_TYPES.Identifier:{let n=x5(x9(t.argument.name,r),0);if(n?.type===_q.AST_NODE_TYPES.ObjectExpression)return null!=Ee(e,n.properties,r);break}case _q.AST_NODE_TYPES.ObjectExpression:return null!=Ee(e,t.argument.properties,r)}return!1})}function EM(t,n){let r=t.sourceCode.getScope(n);switch(n.type){case _q.AST_NODE_TYPES.JSXAttribute:if(null==n.value)return{kind:"boolean",toStatic:()=>!0};switch(n.value.type){case _q.AST_NODE_TYPES.Literal:{let e=n.value.value;return{kind:"literal",node:n.value,toStatic:()=>e}}case _q.AST_NODE_TYPES.JSXExpressionContainer:{let e=n.value.expression;return{kind:"expression",node:e,toStatic:()=>x4.getStaticValue(e,r)?.value}}case _q.AST_NODE_TYPES.JSXElement:return{kind:"element",node:n.value,toStatic:()=>e};case _q.AST_NODE_TYPES.JSXSpreadChild:return{kind:"spreadChild",node:n.value.expression,toStatic:()=>e}}return;case _q.AST_NODE_TYPES.JSXSpreadAttribute:return{kind:"spreadProps",node:n.argument,toStatic:t=>null==t?e:ls.match(x4.getStaticValue(n.argument,r)?.value).with({[t]:ls.P.select(ls.P.any)},s9).otherwise(()=>e)}}}function ER(e){let t=e.sourceCode.parserServices?.program?.getCompilerOptions()??{};return{jsx:t.jsx??4,jsxFactory:t.jsxFactory??"React.createElement",jsxFragmentFactory:t.jsxFragmentFactory??"React.Fragment",jsxImportSource:t.jsxImportSource??"react"}}let Ej=new WeakMap;function EY(e){return la(Ej,e.sourceCode,()=>{let t,n,r,i,a={};if(!e.sourceCode.text.includes("@jsx"))return a;for(let a of e.sourceCode.getAllComments().reverse()){let e=a.value;t??=e.match(_k)?.[1],n??=e.match(_P)?.[1],r??=e.match(_C)?.[1],i??=e.match(_w)?.[1]}return null!=t&&(a.jsxFactory=t),null!=n&&(a.jsxFragmentFactory=n),null!=r&&(a.jsx="classic"===r?2:4),null!=i&&(a.jsxImportSource=i),a})}let EU={None:0n,SkipUndefined:1n<<0n,SkipNullLiteral:1n<<1n,SkipBooleanLiteral:1n<<2n,SkipStringLiteral:1n<<3n,SkipNumberLiteral:1n<<4n,SkipBigIntLiteral:1n<<5n,SkipEmptyArray:1n<<6n,SkipCreateElement:1n<<7n,StrictArray:1n<<8n,StrictLogical:1n<<9n,StrictConditional:1n<<10n},EB=0n|EU.SkipUndefined|EU.SkipBooleanLiteral;function EV(e){return null!=e&&(e.type===_q.AST_NODE_TYPES.JSXText||e.type===_q.AST_NODE_TYPES.Literal)}function EJ(e,t,n=EB){if(null==t)return!1;if(xL(t))return!0;switch(t.type){case _q.AST_NODE_TYPES.Literal:switch(typeof t.value){case"boolean":return!(n&EU.SkipBooleanLiteral);case"string":return!(n&EU.SkipStringLiteral);case"number":return!(n&EU.SkipNumberLiteral);case"bigint":return!(n&EU.SkipBigIntLiteral)}if(null==t.value)return!(n&EU.SkipNullLiteral);break;case _q.AST_NODE_TYPES.TemplateLiteral:return!(n&EU.SkipStringLiteral);case _q.AST_NODE_TYPES.ArrayExpression:if(0===t.elements.length)return!(n&EU.SkipEmptyArray);if(n&EU.StrictArray)return t.elements.every(t=>EJ(e,t,n));return t.elements.some(t=>EJ(e,t,n));case _q.AST_NODE_TYPES.LogicalExpression:if(n&EU.StrictLogical)return EJ(e,t.left,n)&&EJ(e,t.right,n);return EJ(e,t.left,n)||EJ(e,t.right,n);case _q.AST_NODE_TYPES.ConditionalExpression:function r(t){return Array.isArray(t.consequent)?0===t.consequent.length?!(n&EU.SkipEmptyArray):n&EU.StrictArray?t.consequent.every(t=>EJ(e,t,n)):t.consequent.some(t=>EJ(e,t,n)):EJ(e,t.consequent,n)}function i(t){return EJ(e,t.alternate,n)}if(n&EU.StrictConditional)return r(t)&&i(t);return r(t)||i(t);case _q.AST_NODE_TYPES.SequenceExpression:return EJ(e,t.expressions.at(-1),n);case _q.AST_NODE_TYPES.CallExpression:if(n&EU.SkipCreateElement)break;switch(t.callee.type){case _q.AST_NODE_TYPES.Identifier:return"createElement"===t.callee.name;case _q.AST_NODE_TYPES.MemberExpression:return t.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"createElement"===t.callee.property.name}break;case _q.AST_NODE_TYPES.Identifier:{let{name:r}=t;if("undefined"===r)return!(n&EU.SkipUndefined);if(xI(t))return!0;let i=x9(r,e.getScope(t)),a=i&&x5(i,0);return!!a&&EJ(e,a,n)}}return!1}function Ez(e,t){return t.type===_q.AST_NODE_TYPES.JSXFragment?"":EI(t.openingElement.name)}function Eq(e,t){return t.type===_q.AST_NODE_TYPES.JSXElement&&t.openingElement.name.type===_q.AST_NODE_TYPES.JSXIdentifier&&/^[a-z]/u.test(t.openingElement.name.name)}function E$(e,t){return t.type===_q.AST_NODE_TYPES.JSXElement&&"Fragment"===Ez(e,t).split(".").at(-1)}let EW={...EU,SkipArrayMapArgument:1n<<66n,SkipObjectMethod:1n<<67n,SkipClassMethod:1n<<68n,SkipClassProperty:1n<<69n},EK=0n|EW.SkipBooleanLiteral|EW.SkipEmptyArray|EW.SkipArrayMapArgument|EW.SkipNumberLiteral|EW.SkipStringLiteral|EW.SkipUndefined|EW.StrictArray|EW.StrictConditional|EW.StrictLogical;function EH(e){if("superClass"in e&&null!=e.superClass){let t=/^(?:Pure)?Component$/u;switch(!0){case e.superClass.type===_q.AST_NODE_TYPES.Identifier:return t.test(e.superClass.name);case e.superClass.type===_q.AST_NODE_TYPES.MemberExpression&&e.superClass.property.type===_q.AST_NODE_TYPES.Identifier:return t.test(e.superClass.property.name)}}return!1}function EG(e){return xF(e)&&e.key.type===_q.AST_NODE_TYPES.Identifier&&e.key.name.startsWith("render")&&e.parent.parent.type===_q.AST_NODE_TYPES.ClassDeclaration}let EX={classMethod:{type:ls.P.union(_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression),parent:_q.AST_NODE_TYPES.MethodDefinition},classProperty:{type:ls.P.union(_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression),parent:_q.AST_NODE_TYPES.Property},objectMethod:{type:ls.P.union(_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression),parent:{type:_q.AST_NODE_TYPES.Property,parent:{type:_q.AST_NODE_TYPES.ObjectExpression}}}};function EQ(e,t,n){let r;if(null!=(r=t.parent)&&r.type===_q.AST_NODE_TYPES.CallExpression&&Eh(e,r)&&r.arguments.slice(2).some(e=>e===t)||EG(t.parent)&&EH(t.parent.parent.parent)||n&EW.SkipObjectMethod&&ls.isMatching(EX.objectMethod)(t)||n&EW.SkipClassMethod&&ls.isMatching(EX.classMethod)(t)||n&EW.SkipClassProperty&&ls.isMatching(EX.classProperty)(t)||n&EW.SkipArrayMapArgument&&xk(t.parent))return!1;let i=xz(t,xA([_q.AST_NODE_TYPES.JSXExpressionContainer,_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression,_q.AST_NODE_TYPES.Property,_q.AST_NODE_TYPES.ClassBody]));return null==i||i.type!==_q.AST_NODE_TYPES.JSXExpressionContainer}function EZ(t,n){switch(!0){case t.type===_q.AST_NODE_TYPES.VariableDeclarator&&t.init===n:return t.id;case t.type===_q.AST_NODE_TYPES.AssignmentExpression&&t.right===n:return t.left;case t.type===_q.AST_NODE_TYPES.PropertyDefinition&&t.value===n:return t.key;case t.type===_q.AST_NODE_TYPES.BlockStatement||t.type===_q.AST_NODE_TYPES.Program||t.parent===t:return e;default:return EZ(t.parent,t)}}function E0(e,t,n){if("react"===e.toLowerCase())return!0;let r=x9(e,n)?.defs.at(-1);if(null==r)return!1;let{node:i,parent:a}=r;if(i.type===_q.AST_NODE_TYPES.VariableDeclarator&&null!=i.init){let{init:e}=i;if(e.type===_q.AST_NODE_TYPES.MemberExpression&&e.object.type===_q.AST_NODE_TYPES.Identifier)return E0(e.object.name,t,n);if(e.type===_q.AST_NODE_TYPES.Identifier)return E0(e.name,t,n);let r=function e(t){return ls.match(t).with({type:_q.AST_NODE_TYPES.CallExpression,arguments:ls.P.select(),callee:{type:_q.AST_NODE_TYPES.Identifier,name:"require"}},s9).with({type:_q.AST_NODE_TYPES.MemberExpression,object:ls.P.select()},e).otherwise(()=>null)}(e)?.[0];return null!=r&&!!xQ(r,"string")&&(r.value===t||r.value.startsWith(`${t}/`))}return a?.type===_q.AST_NODE_TYPES.ImportDeclaration&&a.source.value===t}function E1(e,t,n){return xC(t,n)||Ei(t,n,[e.sourceCode.getScope(t),e.sourceCode.getScope(n)])}function E2(e,t){return t.type===_q.AST_NODE_TYPES.CallExpression&&(t.type===_q.AST_NODE_TYPES.CallExpression&&(Eb(e,t)||Ev(e,t))||EC(t))}function E3(t,n){let r=xH(n);if(null!=r)return r;let{parent:i}=n;return i.type===_q.AST_NODE_TYPES.CallExpression&&E2(t,i)&&i.parent.type===_q.AST_NODE_TYPES.VariableDeclarator&&i.parent.id.type===_q.AST_NODE_TYPES.Identifier?i.parent.id:i.type===_q.AST_NODE_TYPES.CallExpression&&E2(t,i)&&i.parent.type===_q.AST_NODE_TYPES.CallExpression&&E2(t,i.parent)&&i.parent.parent.type===_q.AST_NODE_TYPES.VariableDeclarator&&i.parent.parent.id.type===_q.AST_NODE_TYPES.Identifier?i.parent.parent.id:e}let E6={None:0n,PureComponent:1n<<0n,Memo:1n<<2n,ForwardRef:1n<<3n};function E4(e){let t=E6.None;return null!=e&&xX("memo",e)&&(t|=E6.Memo),null!=e&&xX("forwardRef",e)&&(t|=E6.ForwardRef),t}function E8(e){return _D.test(e)}function E5(t){return null==t?e:Array.isArray(t)?t.map(e=>e.name).join("."):t.name}function E7(e,t){let n=E3(e,t);if(null==n)return!0;let r=Array.isArray(n)?n.at(-1)?.name:n.name;return null!=r&&E8(r)}let E9=new _m("function_component_");function ke(t,n={}){let{collectDisplayName:r=!1,collectHookCalls:i=!1,hint:a=EK}=n,o=new Map,s=[],l=()=>s.at(-1);return{ctx:{getAllComponents:e=>o,getCurrentEntries:()=>[...s],getCurrentEntry:l},listeners:{":function[type]":e=>{let t=E9.next();s.push({key:t,node:e,hookCalls:[],isComponent:!1})},":function[type]:exit":()=>{let e=s.at(-1);if(null==e)return;if(!e.isComponent)return s.pop();let n=xq(e.node.body);for(let r=n.length-1;r>=0;r--){let i=n[r];if(null!=i&&t.sourceCode.getScope(i).block===e.node&&null!=i.argument&&!EJ(t.sourceCode,i.argument,a)){o.delete(e.key);break}}return s.pop()},"ArrowFunctionExpression[body.type!='BlockStatement']"(){let n=l();if(null==n)return;let{body:r}=n.node;if(!(E7(t,n.node)&&EJ(t.sourceCode,r,a)&&EQ(t,n.node,a)))return;let i=xG(n.node),s=E3(t,n.node),c=n.key,u=E5(s);o.set(c,{id:s,key:c,kind:"function",name:u,node:n.node,displayName:e,flag:E4(i),hint:a,hookCalls:n.hookCalls,initPath:i})},...r?{[xZ](t){let{left:n,right:r}=t;if(n.type!==_q.AST_NODE_TYPES.MemberExpression)return;let i=n.object.type===_q.AST_NODE_TYPES.Identifier?n.object.name:e,a=[...o.values()].findLast(({name:e})=>null!=e&&e===i);null!=a&&(a.displayName=r)}}:{},...i?{"CallExpression[type]:exit"(e){if(!Ex(e))return;let t=l();null!=t&&t.hookCalls.push(e)}}:{},"ReturnStatement[type]"(n){let r=l();if(null==r||!(E7(t,r.node)&&EJ(t.sourceCode,n.argument,a)&&EQ(t,r.node,a)))return;r.isComponent=!0;let i=xG(r.node),s=E3(t,r.node),c=E5(s);o.set(r.key,{id:s,key:r.key,kind:"function",name:c,node:r.node,displayName:e,flag:E4(i),hint:a,hookCalls:r.hookCalls,initPath:i})}}}}let kt=new _m("class_component_");function kn(){let t=new Map,n=n=>{if(!EH(n))return;let r=xP(n),i=kt.next(),a=!function(e){if("superClass"in e&&null!=e.superClass){let t=/^PureComponent$/u;switch(!0){case e.superClass.type===_q.AST_NODE_TYPES.Identifier:return t.test(e.superClass.name);case e.superClass.type===_q.AST_NODE_TYPES.MemberExpression&&e.superClass.property.type===_q.AST_NODE_TYPES.Identifier:return t.test(e.superClass.property.name)}}return!1}(n)?E6.None:E6.PureComponent;t.set(i,{id:r,key:i,kind:"class",name:r?.name,node:n,displayName:e,flag:a,hint:0n,methods:[]})};return{ctx:{getAllComponents:e=>t},listeners:{"ClassDeclaration[type]":n,"ClassExpression[type]":n}}}function kr(e,t=!1){return function(n){return xF(n)&&n.static===t&&n.key.type===_q.AST_NODE_TYPES.Identifier&&n.key.name===e}}let ki=kr("componentDidCatch"),ka=kr("componentDidMount"),ko=kr("componentDidUpdate"),ks=kr("componentWillMount"),kl=kr("componentWillReceiveProps"),kc=kr("componentWillUnmount"),ku=kr("componentWillUpdate"),k_=kr("UNSAFE_componentWillMount"),kd=kr("UNSAFE_componentWillReceiveProps"),kp=kr("UNSAFE_componentWillUpdate"),kf=kr("getDerivedStateFromProps",!0),km=kr("getDerivedStateFromError",!0);function kg(e){return xD(e)&&ka(e.parent)&&e.parent.value===e}function kh(e){return xD(e)&&kc(e.parent)&&e.parent.value===e}let ky=Ea({mount:"unmount",setup:"cleanup"}),kv=le(2,(e,t)=>ky.get(e)===t);function kb(e){return ls.match(e).when(EF,()=>"setup").when(EO,()=>"cleanup").when(kg,()=>"mount").when(kh,()=>"unmount").otherwise(()=>null)}function kT(e){let t=e=>e.type===_q.AST_NODE_TYPES.Property&&e.key.type===_q.AST_NODE_TYPES.Identifier&&e.key.name.startsWith("render");return t(e)||null!=e.parent&&t(e.parent)}function kS(e){let{callee:t}=e;return t.type===_q.AST_NODE_TYPES.MemberExpression&&xJ(t.object)&&t.property.type===_q.AST_NODE_TYPES.Identifier&&"setState"===t.property.name}function kx(e){let{left:t}=e;return t.type===_q.AST_NODE_TYPES.MemberExpression&&xJ(t.object)&&"state"===x2(t.property)}let kE=/^[v^~<>=]*?(\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+)(?:\.([x*]|\d+))?(?:-([\da-z\-]+(?:\.[\da-z\-]+)*))?(?:\+[\da-z\-]+(?:\.[\da-z\-]+)*)?)?)?$/i,kk=e=>{if("string"!=typeof e)throw TypeError("Invalid argument expected string");let t=e.match(kE);if(!t)throw Error(`Invalid argument not valid semver ('${e}' received)`);return t.shift(),t},kP=e=>"*"===e||"x"===e||"X"===e,kC=e=>{let t=parseInt(e,10);return isNaN(t)?e:t},kw=(e,t)=>{let n,r;if(kP(e)||kP(t))return 0;let[i,a]=typeof(n=kC(e))!=typeof(r=kC(t))?[String(n),String(r)]:[n,r];return i>a?1:i<a?-1:0},kA=(e,t)=>{for(let n=0;n<Math.max(e.length,t.length);n++){let r=kw(e[n]||"0",t[n]||"0");if(0!==r)return r}return 0},kD=(e,t,n)=>{let r,i,a,o,s;kO(n);let l=(r=kk(e),i=kk(t),a=r.pop(),o=i.pop(),0!==(s=kA(r,i))?s:a&&o?kA(a.split("."),o.split(".")):a||o?a?-1:1:0);return kN[n].includes(l)},kN={">":[1],">=":[0,1],"=":[0],"<=":[-1,0],"<":[-1],"!=":[-1,1]},kF=Object.keys(kN),kO=e=>{if("string"!=typeof e)throw TypeError(`Invalid operator type, expected string but got ${typeof e}`);if(-1===kF.indexOf(e))throw Error(`Invalid operator, expected one of ${kF.join("|")}`)};var kI={},kL={},kM={};function kR(){return oH||(oH=1,Object.defineProperty(kM,"__esModule",{value:!0}),kM.isSymbolFromDefaultLibrary=function(e,t){if(!t)return!1;for(let n of t.getDeclarations()??[]){let t=n.getSourceFile();if(e.isSourceFileDefaultLibrary(t))return!0}return!1}),kM}var kj={},kY={};function kU(){if(oX)return kY;oX=1;var e,t=kY&&kY.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kY&&kY.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kY&&kY.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kY,"__esModule",{value:!0}),kY.getTypeFlags=s,kY.isTypeFlagSet=function(e,t,n){let r=s(e);return!!n&&!!(r&o)||(r&t)!=0};let i=r(b8),a=r(yp()),o=a.TypeFlags.Any|a.TypeFlags.Unknown;function s(e){let t=0;for(let n of i.unionConstituents(e))t|=n.flags;return t}return kY}var kB={},kV={},kJ={},kz={},kq={},k$={},kW={},kK={};function kH(){if(o4)return kK;function e(e,t,n,r){var i;if(!r||!((i=r).startsWith("__@")||i.startsWith("__#")))return e.getTypeOfPropertyOfType(t,n);let a=t.getProperties().find(e=>e.escapedName===r);return a?e.getDeclaredTypeOfSymbol(a):void 0}return o4=1,Object.defineProperty(kK,"__esModule",{value:!0}),kK.getTypeOfPropertyOfName=e,kK.getTypeOfPropertyOfType=function(t,n,r){return e(t,n,r.getName(),r.getEscapedName())},kK}var kG={},kX={},kQ={},kZ={},k0={};function k1(){if(se)return kG;se=1;var e,t=kG&&kG.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kG&&kG.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kG&&kG.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kG,"__esModule",{value:!0}),kG.valueMatchesSomeSpecifier=kG.typeMatchesSomeSpecifier=kG.typeOrValueSpecifiersSchema=void 0,kG.typeMatchesSpecifier=u,kG.valueMatchesSpecifier=_;let i=_z(),a=r(b8),o=(o8||(o8=1,Object.defineProperty(kX,"__esModule",{value:!0}),kX.specifierNameMatches=function(e,t){"string"==typeof t&&(t=[t]);let n=e.aliasSymbol??e.getSymbol(),r=n?[n.escapedName,e.intrinsicName]:[e.intrinsicName];return!!t.some(e=>r.includes(e))}),kX),s=function(){if(o5)return kQ;o5=1;var e=kQ&&kQ.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(kQ,"__esModule",{value:!0}),kQ.typeDeclaredInFile=function(e,r,i){if(null==e){let e=(0,t.getCanonicalFileName)(i.getCurrentDirectory());return r.some(n=>(0,t.getCanonicalFileName)(n.fileName).startsWith(e))}let a=(0,t.getCanonicalFileName)(n.default.join(i.getCurrentDirectory(),e));return r.some(e=>(0,t.getCanonicalFileName)(e.fileName)===a)};let t=xT(),n=e(bh());return kQ}(),l=(o7||(o7=1,Object.defineProperty(kZ,"__esModule",{value:!0}),kZ.typeDeclaredInLib=function(e,t){return 0===e.length||e.some(e=>t.isSourceFileDefaultLibrary(e))}),kZ),c=function(){if(o9)return k0;o9=1;var e,t=k0&&k0.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=k0&&k0.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k0&&k0.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k0,"__esModule",{value:!0}),k0.typeDeclaredInPackageDeclarationFile=function(e,t,n,r){let a,o;return t.some(t=>(function e(t){switch(t.kind){case i.SyntaxKind.ModuleDeclaration:if(t.flags&i.NodeFlags.Namespace)break;return i.isStringLiteral(t.name)?t:void 0;case i.SyntaxKind.SourceFile:return}return e(t.parent)})(t)?.name.text===e)||(a=e.replace(/^@([^/]+)\//,"$1__"),o=RegExp(`${e}|${a}`),n.some(e=>{let t=r.sourceFileToPackageName.get(e.path);return null!=t&&o.test(t)&&r.isSourceFileFromExternalLibrary(e)}))};let i=r(yp());return k0}();function u(e,t,n){return a.isUnionType(e)?e.types.every(e=>u(e,t,n)):!!((()=>{if(a.isIntrinsicErrorType(e))return!1;if("string"==typeof t)return(0,o.specifierNameMatches)(e,t);if(!(0,o.specifierNameMatches)(e,t.name))return!1;let r=e.getSymbol()??e.aliasSymbol,i=r?.getDeclarations()??[],u=i.map(e=>e.getSourceFile());switch(t.from){case"file":return(0,s.typeDeclaredInFile)(t.path,u,n);case"lib":return(0,l.typeDeclaredInLib)(u,n);case"package":return(0,c.typeDeclaredInPackageDeclarationFile)(t.package,i,u,n)}})()||a.isIntersectionType(e)&&a.intersectionConstituents(e).some(e=>u(e,t,n)))}function _(e,t,n,r){let a,o=e.type===i.AST_NODE_TYPES.Identifier||e.type===i.AST_NODE_TYPES.JSXIdentifier||e.type===i.AST_NODE_TYPES.PrivateIdentifier?e.name:e.type===i.AST_NODE_TYPES.Literal&&"string"==typeof e.value?e.value:void 0;if(!o)return!1;if("string"==typeof t)return t===o;if(!("string"==typeof(a=t.name)?[a]:a).includes(o))return!1;if("package"===t.from){let e=r.getSymbol()??r.aliasSymbol,i=e?.getDeclarations()??[],a=i.map(e=>e.getSourceFile());return(0,c.typeDeclaredInPackageDeclarationFile)(t.package,i,a,n)}return!0}return kG.typeOrValueSpecifiersSchema={items:{oneOf:[{type:"string"},{additionalProperties:!1,properties:{from:{enum:["file"],type:"string"},name:{oneOf:[{type:"string"},{items:{type:"string"},minItems:1,type:"array",uniqueItems:!0}]},path:{type:"string"}},required:["from","name"],type:"object"},{additionalProperties:!1,properties:{from:{enum:["lib"],type:"string"},name:{oneOf:[{type:"string"},{items:{type:"string"},minItems:1,type:"array",uniqueItems:!0}]}},required:["from","name"],type:"object"},{additionalProperties:!1,properties:{from:{enum:["package"],type:"string"},name:{oneOf:[{type:"string"},{items:{type:"string"},minItems:1,type:"array",uniqueItems:!0}]},package:{type:"string"}},required:["from","name","package"],type:"object"}]},type:"array"},kG.typeMatchesSomeSpecifier=(e,t=[],n)=>t.some(t=>u(e,t,n)),kG.valueMatchesSomeSpecifier=(e,t=[],n,r)=>t.some(t=>_(e,t,n,r)),kG}var k2={},k3={};function k6(){if(sn)return k3;sn=1;var e,t=k3&&k3.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=k3&&k3.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k3&&k3.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i}),i=k3&&k3.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(k3,"__esModule",{value:!0}),k3.isNullableType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.Any|s.TypeFlags.Unknown|s.TypeFlags.Null|s.TypeFlags.Undefined|s.TypeFlags.Void)},k3.isTypeArrayTypeOrUnionOfArrayTypes=function(e,t){for(let n of o.unionConstituents(e))if(!t.isArrayType(n))return!1;return!0},k3.isTypeNeverType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.Never)},k3.isTypeUnknownType=u,k3.isTypeReferenceType=function(e){return(e.flags&d)!=0&&(e.objectFlags&s.ObjectFlags.Reference)!=0},k3.isTypeAnyType=p,k3.isTypeAnyArrayType=function(e,t){return t.isArrayType(e)&&p(t.getTypeArguments(e)[0])},k3.isTypeUnknownArrayType=function(e,t){return t.isArrayType(e)&&u(t.getTypeArguments(e)[0])},k3.typeIsOrHasBaseType=function(e,t){let n=t.getSymbol();if(!e.getSymbol()||!n)return!1;let r=[e],i=e.getBaseTypes();for(let e of(i&&r.push(...i),r)){let t=e.getSymbol();if(t&&t.name===n.name)return!0}return!1},k3.isTypeBigIntLiteralType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.BigIntLiteral)},k3.isTypeTemplateLiteralType=function(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.TemplateLiteral)};let a=i(bo()),o=r(b8),s=r(yp()),l=kU(),c=(0,a.default)("typescript-eslint:type-utils:predicates");function u(e){return(0,l.isTypeFlagSet)(e,s.TypeFlags.Unknown)}let _=s.TypeFlags.Undefined|s.TypeFlags.Null,d=s.TypeFlags.Any|_|s.TypeFlags.Never|s.TypeFlags.Object|s.TypeFlags.Union|s.TypeFlags.Intersection;function p(e){return!!(0,l.isTypeFlagSet)(e,s.TypeFlags.Any)&&("error"===e.intrinsicName&&c('Found an "error" any type'),!0)}return k3}var k4={},k8={},k5=function(){var e,t,n;return so?kI:(so=1,e=kI&&kI.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),t=kI&&kI.__exportStar||function(t,n){for(var r in t)"default"===r||Object.prototype.hasOwnProperty.call(n,r)||e(n,t,r)},Object.defineProperty(kI,"__esModule",{value:!0}),kI.typescriptVersionIsAtLeast=kI.getModifiers=kI.getDecorators=void 0,t(function(){if(oG)return kL;oG=1;var e,t=kL&&kL.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kL&&kL.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kL&&kL.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kL,"__esModule",{value:!0}),kL.isPromiseLike=function(e,t){return u(e,t,"Promise")},kL.isPromiseConstructorLike=function(e,t){return u(e,t,"PromiseConstructor")},kL.isErrorLike=s,kL.isReadonlyErrorLike=function e(t,n){return l(t,n,n=>{let[r]=n.aliasTypeArguments;return s(t,r)||e(t,r)})},kL.isReadonlyTypeLike=l,kL.isBuiltinTypeAliasLike=c,kL.isBuiltinSymbolLike=u,kL.isBuiltinSymbolLikeRecurser=_;let i=r(b8),a=r(yp()),o=kR();function s(e,t){return u(e,t,"Error")}function l(e,t,n){return c(e,t,e=>"Readonly"===e.aliasSymbol.getName()&&!!n?.(e))}function c(e,t,n){return _(e,t,t=>{let{aliasSymbol:r,aliasTypeArguments:i}=t;return!!r&&!!i&&(!!((0,o.isSymbolFromDefaultLibrary)(e,r)&&n(t))||null)})}function u(e,t,n){return _(e,t,t=>{let r=t.getSymbol();if(!r)return!1;let i=r.getName();return!!((Array.isArray(n)?n.some(e=>i===e):i===n)&&(0,o.isSymbolFromDefaultLibrary)(e,r))||null})}function _(e,t,n){if(t.isIntersection())return t.types.some(t=>_(e,t,n));if(t.isUnion())return t.types.every(t=>_(e,t,n));if(i.isTypeParameter(t)){let r=t.getConstraint();return!!r&&_(e,r,n)}let r=n(t);if("boolean"==typeof r)return r;let o=t.getSymbol();if(o&&o.flags&(a.SymbolFlags.Class|a.SymbolFlags.Interface)){for(let r of e.getTypeChecker().getBaseTypes(t))if(_(e,r,n))return!0}return!1}return kL}(),kI),t(function(){if(oQ)return kj;oQ=1;var e,t=kj&&kj.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kj&&kj.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kj&&kj.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kj,"__esModule",{value:!0}),kj.containsAllTypesByName=function e(t,n,r,s=!1){if((0,o.isTypeFlagSet)(t,a.TypeFlags.Any|a.TypeFlags.Unknown))return!n;i.isTypeReference(t)&&(t=t.target);let l=t.getSymbol();if(l&&r.has(l.name))return!0;let c=t=>e(t,n,r,s);if(i.isUnionOrIntersectionType(t))return s?t.types.some(c):t.types.every(c);let u=t.getBaseTypes();return null!=u&&(s?u.some(c):u.length>0&&u.every(c))};let i=r(b8),a=r(yp()),o=kU();return kj}(),kI),t((oZ||(oZ=1,Object.defineProperty(kB,"__esModule",{value:!0}),kB.getConstrainedTypeAtLocation=function(e,t){let n=e.getTypeAtLocation(t);return e.program.getTypeChecker().getBaseConstraintOfType(n)??n}),kB),kI),t(function(){if(o0)return kV;o0=1;var e,t=kV&&kV.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kV&&kV.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kV&&kV.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kV,"__esModule",{value:!0}),kV.getContextualType=function(e,t){let n=t.parent;if(i.isCallExpression(n)||i.isNewExpression(n)){if(t===n.expression)return}else if(i.isVariableDeclaration(n)||i.isPropertyDeclaration(n)||i.isParameter(n))return n.type?e.getTypeFromTypeNode(n.type):void 0;else if(i.isJsxExpression(n))return e.getContextualType(n);else if(i.isIdentifier(t)&&(i.isPropertyAssignment(n)||i.isShorthandPropertyAssignment(n)));else if(i.isBinaryExpression(n)&&n.operatorToken.kind===i.SyntaxKind.EqualsToken&&n.right===t)return e.getTypeAtLocation(n.left);else if(![i.SyntaxKind.JsxExpression,i.SyntaxKind.TemplateSpan].includes(n.kind))return;return e.getContextualType(t)};let i=r(yp());return kV}(),kI),t((o1||(o1=1,Object.defineProperty(kJ,"__esModule",{value:!0}),kJ.getDeclaration=function(e,t){let n=e.getSymbolAtLocation(t);if(!n)return null;let r=n.getDeclarations();return r?.[0]??null}),kJ),kI),t(function(){if(o2)return kz;o2=1;var e,t=kz&&kz.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kz&&kz.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kz&&kz.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kz,"__esModule",{value:!0}),kz.getSourceFileOfNode=function(e){for(;e.kind!==i.SyntaxKind.SourceFile;)e=e.parent;return e};let i=r(yp());return kz}(),kI),t(function(){if(o3)return kq;o3=1;var e,t=kq&&kq.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=kq&&kq.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=kq&&kq.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(kq,"__esModule",{value:!0}),kq.getTypeName=function e(t,n){if((n.flags&i.TypeFlags.StringLike)!=0)return"string";if((n.flags&i.TypeFlags.TypeParameter)!=0){let r=n.getSymbol(),a=r?.getDeclarations(),o=a?.[0];if(null!=o&&i.isTypeParameterDeclaration(o)&&null!=o.constraint)return e(t,t.getTypeFromTypeNode(o.constraint))}return n.isUnion()&&n.types.map(n=>e(t,n)).every(e=>"string"===e)||n.isIntersection()&&n.types.map(n=>e(t,n)).some(e=>"string"===e)?"string":t.typeToString(n)};let i=r(yp());return kq}(),kI),t(kR(),kI),t(function(){if(o6)return k$;o6=1;var e,t=k$&&k$.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=k$&&k$.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k$&&k$.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k$,"__esModule",{value:!0}),k$.isTypeBrandedLiteralLike=function(e){return e.isUnion()?e.types.every(o):o(e)};let i=r(b8),a=r(yp());function o(e){if(!e.isIntersection())return!1;let t=!1,n=!1;for(let r of e.types)if(!r.getCallSignatures().length&&!r.getConstructSignatures().length&&i.isObjectType(r))n=!0;else{if(!(r.isLiteral()||i.isTypeFlagSet(r,a.TypeFlags.BigInt|a.TypeFlags.Number|a.TypeFlags.String|a.TypeFlags.TemplateLiteral)))return!1;t=!0}return n&&t}return k$}(),kI),t((st||(st=1,!function(e){var t,n,r,i=kW&&kW.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),a=kW&&kW.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),o=kW&&kW.__importStar||(t=function(e){return(t=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(e)},function(e){if(e&&e.__esModule)return e;var n={};if(null!=e)for(var r=t(e),o=0;o<r.length;o++)"default"!==r[o]&&i(n,e,r[o]);return a(n,e),n});Object.defineProperty(e,"__esModule",{value:!0}),e.readonlynessOptionsDefaults=e.readonlynessOptionsSchema=void 0,e.isTypeReadonly=function(t,n,i=e.readonlynessOptionsDefaults){return f(t,n,i,new Set)===r.Readonly};let s=h0(),l=o(b8),c=o(yp()),u=kH(),_=k1();function d(e){return Object.hasOwn(e,"symbol")}function p(e,t,n,i){let a=e.getTypeChecker();function o(o){let s=a.getIndexInfoOfType(t,o);return s?s.isReadonly?s.type===t||i.has(s.type)?r.Readonly:f(e,s.type,n,i):r.Mutable:r.UnknownType}let _=t.getProperties();if(_.length){for(let e of _){if(n.treatMethodsAsReadonly){if(null!=e.valueDeclaration&&d(e.valueDeclaration)&&l.isSymbolFlagSet(e.valueDeclaration.symbol,c.SymbolFlags.Method))continue;let t=e.getDeclarations(),n=null!=t&&t.length>0?t[t.length-1]:void 0;if(null!=n&&d(n)&&l.isSymbolFlagSet(n.symbol,c.SymbolFlags.Method))continue}if(l.isPropertyReadonlyInType(t,e.getEscapedName(),a))continue;let i=c.getNameOfDeclaration(e.valueDeclaration);if(!(i&&c.isPrivateIdentifier(i)))return r.Mutable}for(let o of _){let l=s.ESLintUtils.nullThrows((0,u.getTypeOfPropertyOfType)(a,t,o),s.ESLintUtils.NullThrowsReasons.MissingToken(`property "${o.name}"`,"type"));if(!i.has(l)&&f(e,l,n,i)===r.Mutable)return r.Mutable}}let p=o(c.IndexKind.String);if(p===r.Mutable)return p;let m=o(c.IndexKind.Number);return m===r.Mutable?m:r.Readonly}function f(e,t,n,i){let a=e.getTypeChecker();if(i.add(t),(0,_.typeMatchesSomeSpecifier)(t,n.allow,e))return r.Readonly;if(l.isUnionType(t))return l.unionConstituents(t).every(t=>i.has(t)||f(e,t,n,i)===r.Readonly)?r.Readonly:r.Mutable;if(l.isIntersectionType(t)){if(t.types.some(e=>a.isArrayType(e)||a.isTupleType(e)))return t.types.every(t=>i.has(t)||f(e,t,n,i)===r.Readonly)?r.Readonly:r.Mutable;let o=p(e,t,n,i);if(o!==r.UnknownType)return o}if(l.isConditionalType(t))return[t.root.node.trueType,t.root.node.falseType].map(a.getTypeFromTypeNode).every(t=>i.has(t)||f(e,t,n,i)===r.Readonly)?r.Readonly:r.Mutable;if(!l.isObjectType(t)||t.getCallSignatures().length>0&&0===t.getProperties().length)return r.Readonly;let o=function(e,t,n,i){let a=e.getTypeChecker();function o(t){let o=a.getTypeArguments(t);return 0===o.length?r.Readonly:o.some(t=>f(e,t,n,i)===r.Mutable)?r.Mutable:r.Readonly}return a.isArrayType(t)?"Array"===s.ESLintUtils.nullThrows(t.getSymbol(),s.ESLintUtils.NullThrowsReasons.MissingToken("symbol","array type")).getEscapedName()?r.Mutable:o(t):a.isTupleType(t)?t.target.readonly?o(t):r.Mutable:r.UnknownType}(e,t,n,i);if(o!==r.UnknownType)return o;let c=p(e,t,n,i);if(c!==r.UnknownType)return c;throw Error("Unhandled type")}(n=r||(r={}))[n.UnknownType=1]="UnknownType",n[n.Mutable=2]="Mutable",n[n.Readonly=3]="Readonly",e.readonlynessOptionsSchema={additionalProperties:!1,properties:{allow:_.typeOrValueSpecifiersSchema,treatMethodsAsReadonly:{type:"boolean"}},type:"object"},e.readonlynessOptionsDefaults={allow:[],treatMethodsAsReadonly:!1}}(kW)),kW),kI),t(function(){if(sr)return k2;sr=1;var e,t=k2&&k2.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=k2&&k2.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k2&&k2.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k2,"__esModule",{value:!0}),k2.isUnsafeAssignment=function(e,t,n,r){return function e(t,n,r,s,l){if((0,o.isTypeAnyType)(t)){if((0,o.isTypeUnknownType)(n))return!1;if(!(0,o.isTypeAnyType)(n))return{receiver:n,sender:t}}let c=l.get(t);if(c){if(c.has(n))return!1;c.add(n)}else l.set(t,new Set([n]));if(a.isTypeReference(t)&&a.isTypeReference(n)){if(t.target!==n.target||s?.type===i.AST_NODE_TYPES.NewExpression&&s.callee.type===i.AST_NODE_TYPES.Identifier&&"Map"===s.callee.name&&0===s.arguments.length&&null==s.typeArguments)return!1;let a=t.typeArguments??[],o=n.typeArguments??[];for(let i=0;i<a.length;i+=1)if(e(a[i],o[i],r,s,l))return{receiver:n,sender:t}}return!1}(e,t,n,r,new Map)};let i=h0(),a=r(b8),o=k6();return k2}(),kI),t(k6(),kI),t(kH(),kI),t(function(){if(si)return k4;si=1;var e,t=k4&&k4.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),n=k4&&k4.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),r=k4&&k4.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(r){if(r&&r.__esModule)return r;var i={};if(null!=r)for(var a=e(r),o=0;o<a.length;o++)"default"!==a[o]&&t(i,r,a[o]);return n(i,r),i});Object.defineProperty(k4,"__esModule",{value:!0}),k4.requiresQuoting=function(e,t=i.ScriptTarget.ESNext){if(0===e.length||!i.isIdentifierStart(e.charCodeAt(0),t))return!0;for(let n=1;n<e.length;n+=1)if(!i.isIdentifierPart(e.charCodeAt(n),t))return!0;return!1};let i=r(yp());return k4}(),kI),t(kU(),kI),t(k1(),kI),t(function(){if(sa)return k8;sa=1;var e,t,n,r=k8&&k8.__createBinding||(Object.create?function(e,t,n,r){void 0===r&&(r=n);var i=Object.getOwnPropertyDescriptor(t,n);(!i||("get"in i?!t.__esModule:i.writable||i.configurable))&&(i={enumerable:!0,get:function(){return t[n]}}),Object.defineProperty(e,r,i)}:function(e,t,n,r){void 0===r&&(r=n),e[r]=t[n]}),i=k8&&k8.__setModuleDefault||(Object.create?function(e,t){Object.defineProperty(e,"default",{enumerable:!0,value:t})}:function(e,t){e.default=t}),a=k8&&k8.__importStar||(e=function(t){return(e=Object.getOwnPropertyNames||function(e){var t=[];for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[t.length]=n);return t})(t)},function(t){if(t&&t.__esModule)return t;var n={};if(null!=t)for(var a=e(t),o=0;o<a.length;o++)"default"!==a[o]&&r(n,t,a[o]);return i(n,t),n});Object.defineProperty(k8,"__esModule",{value:!0}),k8.AnyType=void 0,k8.discriminateAnyType=function(e,t,r,i){return function e(t,r,i,a,l){if(l.has(t))return n.Safe;if(l.add(t),(0,s.isTypeAnyType)(t))return n.Any;if((0,s.isTypeAnyArrayType)(t,r))return n.AnyArray;for(let s of o.typeConstituents(t))if(o.isThenableType(r,a,s)){let t=r.getAwaitedType(s);if(t&&e(t,r,i,a,l)===n.Any)return n.PromiseAny}return n.Safe}(e,t,r,i,new Set)};let o=a(b8),s=k6();return(t=n||(k8.AnyType=n={}))[t.Any=0]="Any",t[t.PromiseAny=1]="PromiseAny",t[t.AnyArray=2]="AnyArray",t[t.Safe=3]="Safe",k8}(),kI),n=xT(),Object.defineProperty(kI,"getDecorators",{enumerable:!0,get:function(){return n.getDecorators}}),Object.defineProperty(kI,"getModifiers",{enumerable:!0,get:function(){return n.getModifiers}}),Object.defineProperty(kI,"typescriptVersionIsAtLeast",{enumerable:!0,get:function(){return n.typescriptVersionIsAtLeast}}),kI)}(),k7={};function k9(){if(sl)return ss;sl=1;let e="[^\\\\/]",t="[^/]",n="(?:\\/|$)",r="(?:^|\\/)",i=`\\.{1,2}${n}`,a=`(?!${r}${i})`,o=`(?!\\.{0,1}${n})`,s=`(?!${i})`,l=`${t}*?`,c={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:n,DOTS_SLASH:i,NO_DOT:"(?!\\.)",NO_DOTS:a,NO_DOT_SLASH:o,NO_DOTS_SLASH:s,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:r,SEP:"/"},u={...c,SLASH_LITERAL:"[\\\\/]",QMARK:e,STAR:`${e}*?`,DOTS_SLASH:"\\.{1,2}(?:[\\\\/]|$)",NO_DOT:"(?!\\.)",NO_DOTS:"(?!(?:^|[\\\\/])\\.{1,2}(?:[\\\\/]|$))",NO_DOT_SLASH:"(?!\\.{0,1}(?:[\\\\/]|$))",NO_DOTS_SLASH:"(?!\\.{1,2}(?:[\\\\/]|$))",QMARK_NO_DOT:"[^.\\\\/]",START_ANCHOR:"(?:^|[\\\\/])",END_ANCHOR:"(?:[\\\\/]|$)",SEP:"\\"};return ss={MAX_LENGTH:65536,POSIX_REGEX_SOURCE:{alnum:"a-zA-Z0-9",alpha:"a-zA-Z",ascii:"\\x00-\\x7F",blank:" \\t",cntrl:"\\x00-\\x1F\\x7F",digit:"0-9",graph:"\\x21-\\x7E",lower:"a-z",print:"\\x20-\\x7E ",punct:"\\-!\"#$%&'()\\*+,./:;<=>?@[\\]^_`{|}~",space:" \\t\\r\\n\\v\\f",upper:"A-Z",word:"A-Za-z0-9_",xdigit:"A-Fa-f0-9"},REGEX_BACKSLASH:/\\(?![*+?^${}(|)[\]])/g,REGEX_NON_SPECIAL_CHARS:/^[^@![\].,$*+?^{}()|\\/]+/,REGEX_SPECIAL_CHARS:/[-*+?.^${}(|)[\]]/,REGEX_SPECIAL_CHARS_BACKREF:/(\\?)((\W)(\3*))/g,REGEX_SPECIAL_CHARS_GLOBAL:/([-*+?.^${}(|)[\]])/g,REGEX_REMOVE_BACKSLASH:/(?:\[.*?[^\\]\]|\\(?=.))/g,REPLACEMENTS:{__proto__:null,"***":"*","**/**":"**","**/**/**":"**"},CHAR_0:48,CHAR_9:57,CHAR_UPPERCASE_A:65,CHAR_LOWERCASE_A:97,CHAR_UPPERCASE_Z:90,CHAR_LOWERCASE_Z:122,CHAR_LEFT_PARENTHESES:40,CHAR_RIGHT_PARENTHESES:41,CHAR_ASTERISK:42,CHAR_AMPERSAND:38,CHAR_AT:64,CHAR_BACKWARD_SLASH:92,CHAR_CARRIAGE_RETURN:13,CHAR_CIRCUMFLEX_ACCENT:94,CHAR_COLON:58,CHAR_COMMA:44,CHAR_DOT:46,CHAR_DOUBLE_QUOTE:34,CHAR_EQUAL:61,CHAR_EXCLAMATION_MARK:33,CHAR_FORM_FEED:12,CHAR_FORWARD_SLASH:47,CHAR_GRAVE_ACCENT:96,CHAR_HASH:35,CHAR_HYPHEN_MINUS:45,CHAR_LEFT_ANGLE_BRACKET:60,CHAR_LEFT_CURLY_BRACE:123,CHAR_LEFT_SQUARE_BRACKET:91,CHAR_LINE_FEED:10,CHAR_NO_BREAK_SPACE:160,CHAR_PERCENT:37,CHAR_PLUS:43,CHAR_QUESTION_MARK:63,CHAR_RIGHT_ANGLE_BRACKET:62,CHAR_RIGHT_CURLY_BRACE:125,CHAR_RIGHT_SQUARE_BRACKET:93,CHAR_SEMICOLON:59,CHAR_SINGLE_QUOTE:39,CHAR_SPACE:32,CHAR_TAB:9,CHAR_UNDERSCORE:95,CHAR_VERTICAL_LINE:124,CHAR_ZERO_WIDTH_NOBREAK_SPACE:65279,extglobChars:e=>({"!":{type:"negate",open:"(?:(?!(?:",close:`))${e.STAR})`},"?":{type:"qmark",open:"(?:",close:")?"},"+":{type:"plus",open:"(?:",close:")+"},"*":{type:"star",open:"(?:",close:")*"},"@":{type:"at",open:"(?:",close:")"}}),globChars:e=>!0===e?u:c}}function Pe(){return sc||(sc=1,!function(e){let{REGEX_BACKSLASH:t,REGEX_REMOVE_BACKSLASH:n,REGEX_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_GLOBAL:i}=k9();e.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),e.hasRegexChars=e=>r.test(e),e.isRegexChar=t=>1===t.length&&e.hasRegexChars(t),e.escapeRegex=e=>e.replace(i,"\\$1"),e.toPosixSlashes=e=>e.replace(t,"/"),e.isWindows=()=>{if("undefined"!=typeof navigator&&navigator.platform){let e=navigator.platform.toLowerCase();return"win32"===e||"windows"===e}return"undefined"!=typeof process&&!!process.platform&&"win32"===process.platform},e.removeBackslashes=e=>e.replace(n,e=>"\\"===e?"":e),e.escapeLast=(t,n,r)=>{let i=t.lastIndexOf(n,r);return -1===i?t:"\\"===t[i-1]?e.escapeLast(t,n,i-1):`${t.slice(0,i)}\\${t.slice(i)}`},e.removePrefix=(e,t={})=>{let n=e;return n.startsWith("./")&&(n=n.slice(2),t.prefix="./"),n},e.wrapOutput=(e,t={},n={})=>{let r=n.contains?"":"^",i=n.contains?"":"$",a=`${r}(?:${e})${i}`;return!0===t.negated&&(a=`(?:^(?!${a}).*$)`),a},e.basename=(e,{windows:t}={})=>{let n=e.split(t?/[\\/]/:"/"),r=n[n.length-1];return""===r?n[n.length-2]:r}}(k7)),k7}var Pt=s1(function(){if(sh)return sg;sh=1;let e=function(){if(sm)return sf;sm=1;let e=function(){if(s_)return su;s_=1;let e=Pe(),{CHAR_ASTERISK:t,CHAR_AT:n,CHAR_BACKWARD_SLASH:r,CHAR_COMMA:i,CHAR_DOT:a,CHAR_EXCLAMATION_MARK:o,CHAR_FORWARD_SLASH:s,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:c,CHAR_LEFT_SQUARE_BRACKET:u,CHAR_PLUS:_,CHAR_QUESTION_MARK:d,CHAR_RIGHT_CURLY_BRACE:p,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=k9(),g=e=>e===s||e===r,h=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return su=(y,b)=>{let T,S,x=b||{},E=y.length-1,k=!0===x.parts||!0===x.scanToEnd,P=[],C=[],w=[],A=y,D=-1,N=0,F=0,O=!1,I=!1,L=!1,M=!1,R=!1,j=!1,Y=!1,U=!1,B=!1,V=!1,J=0,z={value:"",depth:0,isGlob:!1},q=()=>D>=E,$=()=>A.charCodeAt(D+1),W=()=>(T=S,A.charCodeAt(++D));for(;D<E;){let e;if((S=W())===r){Y=z.backslashes=!0,(S=W())===l&&(j=!0);continue}if(!0===j||S===l){for(J++;!0!==q()&&(S=W());){if(S===r){Y=z.backslashes=!0,W();continue}if(S===l){J++;continue}if(!0!==j&&S===a&&(S=W())===a||!0!==j&&S===i){if(O=z.isBrace=!0,L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===p&&0==--J){j=!1,O=z.isBrace=!0,V=!0;break}}if(!0===k)continue;break}if(S===s){if(P.push(D),C.push(z),z={value:"",depth:0,isGlob:!1},!0===V)continue;if(T===a&&D===N+1){N+=2;continue}F=D+1;continue}if(!0!==x.noext&&!0==(S===_||S===n||S===t||S===d||S===o)&&$()===c){if(L=z.isGlob=!0,M=z.isExtglob=!0,V=!0,S===o&&D===N&&(B=!0),!0===k){for(;!0!==q()&&(S=W());){if(S===r){Y=z.backslashes=!0,S=W();continue}if(S===f){L=z.isGlob=!0,V=!0;break}}continue}break}if(S===t){if(T===t&&(R=z.isGlobstar=!0),L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===d){if(L=z.isGlob=!0,V=!0,!0===k)continue;break}if(S===u){for(;!0!==q()&&(e=W());){if(e===r){Y=z.backslashes=!0,W();continue}if(e===m){I=z.isBracket=!0,L=z.isGlob=!0,V=!0;break}}if(!0===k)continue;break}if(!0!==x.nonegate&&S===o&&D===N){U=z.negated=!0,N++;continue}if(!0!==x.noparen&&S===c){if(L=z.isGlob=!0,!0===k){for(;!0!==q()&&(S=W());){if(S===c){Y=z.backslashes=!0,S=W();continue}if(S===f){V=!0;break}}continue}break}if(!0===L){if(V=!0,!0===k)continue;break}}!0===x.noext&&(M=!1,L=!1);let K=A,H="",G="";N>0&&(H=A.slice(0,N),A=A.slice(N),F-=N),K&&!0===L&&F>0?(K=A.slice(0,F),G=A.slice(F)):!0===L?(K="",G=A):K=A,K&&""!==K&&"/"!==K&&K!==A&&g(K.charCodeAt(K.length-1))&&(K=K.slice(0,-1)),!0===x.unescape&&(G&&(G=e.removeBackslashes(G)),K&&!0===Y&&(K=e.removeBackslashes(K)));let X={prefix:H,input:y,start:N,base:K,glob:G,isBrace:O,isBracket:I,isGlob:L,isExtglob:M,isGlobstar:R,negated:U,negatedExtglob:B};if(!0===x.tokens&&(X.maxDepth=0,g(S)||C.push(z),X.tokens=C),!0===x.parts||!0===x.tokens){let e;for(let t=0;t<P.length;t++){let n=e?e+1:N,r=P[t],i=y.slice(n,r);x.tokens&&(0===t&&0!==N?(C[t].isPrefix=!0,C[t].value=H):C[t].value=i,h(C[t]),X.maxDepth+=C[t].depth),(0!==t||""!==i)&&w.push(i),e=r}if(e&&e+1<y.length){let t=y.slice(e+1);w.push(t),x.tokens&&(C[C.length-1].value=t,h(C[C.length-1]),X.maxDepth+=C[C.length-1].depth)}X.slashes=P,X.parts=w}return X}}(),t=function(){if(sp)return sd;sp=1;let e=k9(),t=Pe(),{MAX_LENGTH:n,POSIX_REGEX_SOURCE:r,REGEX_NON_SPECIAL_CHARS:i,REGEX_SPECIAL_CHARS_BACKREF:a,REPLACEMENTS:o}=e,s=(e,n)=>{if("function"==typeof n.expandRange)return n.expandRange(...e,n);e.sort();let r=`[${e.join("-")}]`;try{new RegExp(r)}catch(n){return e.map(e=>t.escapeRegex(e)).join("..")}return r},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,c=(u,_)=>{let d;if("string"!=typeof u)throw TypeError("Expected a string");u=o[u]||u;let p={..._},f="number"==typeof p.maxLength?Math.min(n,p.maxLength):n,m=u.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:p.prepend||""},h=[g],y=p.capture?"":"?:",b=e.globChars(p.windows),T=e.extglobChars(b),{DOT_LITERAL:S,PLUS_LITERAL:x,SLASH_LITERAL:E,ONE_CHAR:k,DOTS_SLASH:P,NO_DOT:C,NO_DOT_SLASH:w,NO_DOTS_SLASH:A,QMARK:D,QMARK_NO_DOT:N,STAR:F,START_ANCHOR:O}=b,I=e=>`(${y}(?:(?!${O}${e.dot?P:S}).)*?)`,L=p.dot?"":C,M=p.dot?D:N,R=!0===p.bash?I(p):F;p.capture&&(R=`(${R})`),"boolean"==typeof p.noext&&(p.noextglob=p.noext);let j={input:u,index:-1,start:0,dot:!0===p.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:h};m=(u=t.removePrefix(u,j)).length;let Y=[],U=[],B=[],V=g,J=()=>j.index===m-1,z=j.peek=(e=1)=>u[j.index+e],q=j.advance=()=>u[++j.index]||"",$=()=>u.slice(j.index+1),W=(e="",t=0)=>{j.consumed+=e,j.index+=t},K=e=>{j.output+=null!=e.output?e.output:e.value,W(e.value)},H=()=>{let e=1;for(;"!"===z()&&("("!==z(2)||"?"===z(3));)q(),j.start++,e++;return e%2!=0&&(j.negated=!0,j.start++,!0)},G=e=>{j[e]++,B.push(e)},X=e=>{j[e]--,B.pop()},Q=e=>{if("globstar"===V.type){let t=j.braces>0&&("comma"===e.type||"brace"===e.type),n=!0===e.extglob||Y.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||n||(j.output=j.output.slice(0,-V.output.length),V.type="star",V.value="*",V.output=R,j.output+=V.output)}if(Y.length&&"paren"!==e.type&&(Y[Y.length-1].inner+=e.value),(e.value||e.output)&&K(e),V&&"text"===V.type&&"text"===e.type){V.output=(V.output||V.value)+e.value,V.value+=e.value;return}e.prev=V,h.push(e),V=e},Z=(e,t)=>{let n={...T[t],conditions:1,inner:""};n.prev=V,n.parens=j.parens,n.output=j.output;let r=(p.capture?"(":"")+n.open;G("parens"),Q({type:e,value:t,output:j.output?"":k}),Q({type:"paren",extglob:!0,value:q(),output:r}),Y.push(n)},ee=e=>{let t,n=e.close+(p.capture?")":"");if("negate"===e.type){let r=R;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(r=I(p)),(r!==R||J()||/^\)+$/.test($()))&&(n=e.close=`)$))${r}`),e.inner.includes("*")&&(t=$())&&/^\.[^\\/.]+$/.test(t)){let i=c(t,{..._,fastpaths:!1}).output;n=e.close=`)${i})${r})`}"bos"===e.prev.type&&(j.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:d,output:n}),X("parens")};if(!1!==p.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(u)){let e=!1,n=u.replace(a,(t,n,r,i,a,o)=>"\\"===i?(e=!0,t):"?"===i?n?n+i+(a?D.repeat(a.length):""):0===o?M+(a?D.repeat(a.length):""):D.repeat(r.length):"."===i?S.repeat(r.length):"*"===i?n?n+i+(a?R:""):R:n?t:`\\${t}`);return(!0===e&&(n=!0===p.unescape?n.replace(/\\/g,""):n.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),n===u&&!0===p.contains)?j.output=u:j.output=t.wrapOutput(n,j,_),j}for(;!J();){if("\0"===(d=q()))continue;if("\\"===d){let e=z();if("/"===e&&!0!==p.bash||"."===e||";"===e)continue;if(!e){Q({type:"text",value:d+="\\"});continue}let t=/^\\+/.exec($()),n=0;if(t&&t[0].length>2&&(n=t[0].length,j.index+=n,n%2!=0&&(d+="\\")),!0===p.unescape?d=q():d+=q(),0===j.brackets){Q({type:"text",value:d});continue}}if(j.brackets>0&&("]"!==d||"["===V.value||"[^"===V.value)){if(!1!==p.posix&&":"===d){let e=V.value.slice(1);if(e.includes("[")&&(V.posix=!0,e.includes(":"))){let e=V.value.lastIndexOf("["),t=V.value.slice(0,e),n=r[V.value.slice(e+2)];if(n){V.value=t+n,j.backtrack=!0,q(),g.output||1!==h.indexOf(V)||(g.output=k);continue}}}("["===d&&":"!==z()||"-"===d&&"]"===z())&&(d=`\\${d}`),"]"===d&&("["===V.value||"[^"===V.value)&&(d=`\\${d}`),!0===p.posix&&"!"===d&&"["===V.value&&(d="^"),V.value+=d,K({value:d});continue}if(1===j.quotes&&'"'!==d){d=t.escapeRegex(d),V.value+=d,K({value:d});continue}if('"'===d){j.quotes=+(1!==j.quotes),!0===p.keepQuotes&&Q({type:"text",value:d});continue}if("("===d){G("parens"),Q({type:"paren",value:d});continue}if(")"===d){if(0===j.parens&&!0===p.strictBrackets)throw SyntaxError(l("opening","("));let e=Y[Y.length-1];if(e&&j.parens===e.parens+1){ee(Y.pop());continue}Q({type:"paren",value:d,output:j.parens?")":"\\)"}),X("parens");continue}if("["===d){if(!0!==p.nobracket&&$().includes("]"))G("brackets");else{if(!0!==p.nobracket&&!0===p.strictBrackets)throw SyntaxError(l("closing","]"));d=`\\${d}`}Q({type:"bracket",value:d});continue}if("]"===d){if(!0===p.nobracket||V&&"bracket"===V.type&&1===V.value.length){Q({type:"text",value:d,output:`\\${d}`});continue}if(0===j.brackets){if(!0===p.strictBrackets)throw SyntaxError(l("opening","["));Q({type:"text",value:d,output:`\\${d}`});continue}X("brackets");let e=V.value.slice(1);if(!0===V.posix||"^"!==e[0]||e.includes("/")||(d=`/${d}`),V.value+=d,K({value:d}),!1===p.literalBrackets||t.hasRegexChars(e))continue;let n=t.escapeRegex(V.value);if(j.output=j.output.slice(0,-V.value.length),!0===p.literalBrackets){j.output+=n,V.value=n;continue}V.value=`(${y}${n}|${V.value})`,j.output+=V.value;continue}if("{"===d&&!0!==p.nobrace){G("braces");let e={type:"brace",value:d,output:"(",outputIndex:j.output.length,tokensIndex:j.tokens.length};U.push(e),Q(e);continue}if("}"===d){let e=U[U.length-1];if(!0===p.nobrace||!e){Q({type:"text",value:d,output:d});continue}let t=")";if(!0===e.dots){let e=h.slice(),n=[];for(let t=e.length-1;t>=0&&(h.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&n.unshift(e[t].value);t=s(n,p),j.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let n=j.output.slice(0,e.outputIndex),r=j.tokens.slice(e.tokensIndex);for(let i of(e.value=e.output="\\{",d=t="\\}",j.output=n,r))j.output+=i.output||i.value}Q({type:"brace",value:d,output:t}),X("braces"),U.pop();continue}if("|"===d){Y.length>0&&Y[Y.length-1].conditions++,Q({type:"text",value:d});continue}if(","===d){let e=d,t=U[U.length-1];t&&"braces"===B[B.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:d,output:e});continue}if("/"===d){if("dot"===V.type&&j.index===j.start+1){j.start=j.index+1,j.consumed="",j.output="",h.pop(),V=g;continue}Q({type:"slash",value:d,output:E});continue}if("."===d){if(j.braces>0&&"dot"===V.type){"."===V.value&&(V.output=S);let e=U[U.length-1];V.type="dots",V.output+=d,V.value+=d,e.dots=!0;continue}if(j.braces+j.parens===0&&"bos"!==V.type&&"slash"!==V.type){Q({type:"text",value:d,output:S});continue}Q({type:"dot",value:d,output:S});continue}if("?"===d){if(!(V&&"("===V.value)&&!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Z("qmark",d);continue}if(V&&"paren"===V.type){let e=z(),t=d;("("!==V.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test($()))||(t=`\\${d}`),Q({type:"text",value:d,output:t});continue}if(!0!==p.dot&&("slash"===V.type||"bos"===V.type)){Q({type:"qmark",value:d,output:N});continue}Q({type:"qmark",value:d,output:D});continue}if("!"===d){if(!0!==p.noextglob&&"("===z()&&("?"!==z(2)||!/[!=<:]/.test(z(3)))){Z("negate",d);continue}if(!0!==p.nonegate&&0===j.index){H();continue}}if("+"===d){if(!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Z("plus",d);continue}if(V&&"("===V.value||!1===p.regex){Q({type:"plus",value:d,output:x});continue}if(V&&("bracket"===V.type||"paren"===V.type||"brace"===V.type)||j.parens>0){Q({type:"plus",value:d});continue}Q({type:"plus",value:x});continue}if("@"===d){if(!0!==p.noextglob&&"("===z()&&"?"!==z(2)){Q({type:"at",extglob:!0,value:d,output:""});continue}Q({type:"text",value:d});continue}if("*"!==d){("$"===d||"^"===d)&&(d=`\\${d}`);let e=i.exec($());e&&(d+=e[0],j.index+=e[0].length),Q({type:"text",value:d});continue}if(V&&("globstar"===V.type||!0===V.star)){V.type="star",V.star=!0,V.value+=d,V.output=R,j.backtrack=!0,j.globstar=!0,W(d);continue}let e=$();if(!0!==p.noextglob&&/^\([^?]/.test(e)){Z("star",d);continue}if("star"===V.type){if(!0===p.noglobstar){W(d);continue}let t=V.prev,n=t.prev,r="slash"===t.type||"bos"===t.type,i=n&&("star"===n.type||"globstar"===n.type);if(!0===p.bash&&(!r||e[0]&&"/"!==e[0])){Q({type:"star",value:d,output:""});continue}let a=j.braces>0&&("comma"===t.type||"brace"===t.type),o=Y.length&&("pipe"===t.type||"paren"===t.type);if(!r&&"paren"!==t.type&&!a&&!o){Q({type:"star",value:d,output:""});continue}for(;"/**"===e.slice(0,3);){let t=u[j.index+4];if(t&&"/"!==t)break;e=e.slice(3),W("/**",3)}if("bos"===t.type&&J()){V.type="globstar",V.value+=d,V.output=I(p),j.output=V.output,j.globstar=!0,W(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!i&&J()){j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=I(p)+(p.strictSlashes?")":"|$)"),V.value+=d,j.globstar=!0,j.output+=t.output+V.output,W(d);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let n=void 0!==e[1]?"|$":"";j.output=j.output.slice(0,-(t.output+V.output).length),t.output=`(?:${t.output}`,V.type="globstar",V.output=`${I(p)}${E}|${E}${n})`,V.value+=d,j.output+=t.output+V.output,j.globstar=!0,W(d+q()),Q({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){V.type="globstar",V.value+=d,V.output=`(?:^|${E}|${I(p)}${E})`,j.output=V.output,j.globstar=!0,W(d+q()),Q({type:"slash",value:"/",output:""});continue}j.output=j.output.slice(0,-V.output.length),V.type="globstar",V.output=I(p),V.value+=d,j.output+=V.output,j.globstar=!0,W(d);continue}let n={type:"star",value:d,output:R};if(!0===p.bash){n.output=".*?",("bos"===V.type||"slash"===V.type)&&(n.output=L+n.output),Q(n);continue}if(V&&("bracket"===V.type||"paren"===V.type)&&!0===p.regex){n.output=d,Q(n);continue}(j.index===j.start||"slash"===V.type||"dot"===V.type)&&("dot"===V.type?(j.output+=w,V.output+=w):!0===p.dot?(j.output+=A,V.output+=A):(j.output+=L,V.output+=L),"*"!==z()&&(j.output+=k,V.output+=k)),Q(n)}for(;j.brackets>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","]"));j.output=t.escapeLast(j.output,"["),X("brackets")}for(;j.parens>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing",")"));j.output=t.escapeLast(j.output,"("),X("parens")}for(;j.braces>0;){if(!0===p.strictBrackets)throw SyntaxError(l("closing","}"));j.output=t.escapeLast(j.output,"{"),X("braces")}if(!0!==p.strictSlashes&&("star"===V.type||"bracket"===V.type)&&Q({type:"maybe_slash",value:"",output:`${E}?`}),!0===j.backtrack)for(let e of(j.output="",j.tokens))j.output+=null!=e.output?e.output:e.value,e.suffix&&(j.output+=e.suffix);return j};return c.fastpaths=(r,i)=>{let a={...i},s="number"==typeof a.maxLength?Math.min(n,a.maxLength):n,l=r.length;if(l>s)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${s}`);r=o[r]||r;let{DOT_LITERAL:c,SLASH_LITERAL:u,ONE_CHAR:_,DOTS_SLASH:d,NO_DOT:p,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:h}=e.globChars(a.windows),y=a.dot?f:p,b=a.dot?m:p,T=a.capture?"":"?:",S=!0===a.bash?".*?":g;a.capture&&(S=`(${S})`);let x=e=>!0===e.noglobstar?S:`(${T}(?:(?!${h}${e.dot?d:c}).)*?)`,E=e=>{switch(e){case"*":return`${y}${_}${S}`;case".*":return`${c}${_}${S}`;case"*.*":return`${y}${S}${c}${_}${S}`;case"*/*":return`${y}${S}${u}${_}${b}${S}`;case"**":return y+x(a);case"**/*":return`(?:${y}${x(a)}${u})?${b}${_}${S}`;case"**/*.*":return`(?:${y}${x(a)}${u})?${b}${S}${c}${_}${S}`;case"**/.*":return`(?:${y}${x(a)}${u})?${c}${_}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let n=E(t[1]);if(!n)return;return n+c+t[2]}}},k=E(t.removePrefix(r,{negated:!1,prefix:""}));return k&&!0!==a.strictSlashes&&(k+=`${u}?`),k},sd=c}(),n=Pe(),r=k9(),i=(e,t,n=!1)=>{if(Array.isArray(e)){let r=e.map(e=>i(e,t,n));return e=>{for(let t of r){let n=t(e);if(n)return n}return!1}}let r=e&&"object"==typeof e&&!Array.isArray(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!r)throw TypeError("Expected pattern to be a non-empty string");let a=t||{},o=a.windows,s=r?i.compileRe(e,t):i.makeRe(e,t,!1,!0),l=s.state;delete s.state;let c=()=>!1;if(a.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};c=i(a.ignore,e,n)}let u=(n,r=!1)=>{let{isMatch:u,match:_,output:d}=i.test(n,s,t,{glob:e,posix:o}),p={glob:e,state:l,regex:s,posix:o,input:n,output:d,match:_,isMatch:u};return("function"==typeof a.onResult&&a.onResult(p),!1===u)?(p.isMatch=!1,!!r&&p):c(n)?("function"==typeof a.onIgnore&&a.onIgnore(p),p.isMatch=!1,!!r&&p):("function"==typeof a.onMatch&&a.onMatch(p),!r||p)};return n&&(u.state=l),u};return i.test=(e,t,r,{glob:a,posix:o}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let s=r||{},l=s.format||(o?n.toPosixSlashes:null),c=e===a,u=c&&l?l(e):e;return!1===c&&(c=(u=l?l(e):e)===a),(!1===c||!0===s.capture)&&(c=!0===s.matchBase||!0===s.basename?i.matchBase(e,t,r,o):t.exec(u)),{isMatch:!!c,match:c,output:u}},i.matchBase=(e,t,r)=>(t instanceof RegExp?t:i.makeRe(t,r)).test(n.basename(e)),i.isMatch=(e,t,n)=>i(t,n)(e),i.parse=(e,n)=>Array.isArray(e)?e.map(e=>i.parse(e,n)):t(e,{...n,fastpaths:!1}),i.scan=(t,n)=>e(t,n),i.compileRe=(e,t,n=!1,r=!1)=>{if(!0===n)return e.output;let a=t||{},o=a.contains?"":"^",s=a.contains?"":"$",l=`${o}(?:${e.output})${s}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let c=i.toRegex(l,t);return!0===r&&(c.state=e),c},i.makeRe=(e,n={},r=!1,a=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let o={negated:!1,fastpaths:!0};return!1!==n.fastpaths&&("."===e[0]||"*"===e[0])&&(o.output=t.fastpaths(e,n)),o.output||(o=t(e,n)),i.compileRe(o,n,r,a)},i.toRegex=(e,t)=>{try{let n=t||{};return new RegExp(e,n.flags||(n.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},i.constants=r,sf=i}(),t=Pe();function n(r,i,a=!1){return i&&(null===i.windows||void 0===i.windows)&&(i={...i,windows:t.isWindows()}),e(r,i,a)}return Object.assign(n,e),sg=n}());function Pn(e,t){return 0===t.length||t.some(t=>e.isSourceFileDefaultLibrary(t))}function Pr(e,t){return e.some(e=>{let n=function e(t){switch(t.kind){case yf.SyntaxKind.ModuleDeclaration:return yf.isStringLiteral(t.name)?t:void 0;case yf.SyntaxKind.SourceFile:return;default:return e(t.parent)}}(e);return void 0!==n&&(void 0===t||n.name.text===t)})}function Pi(e,t,n){let r=n?.replace(/^@([^/]+)\//u,"$1__"),i=void 0===n?void 0:RegExp(`${n}|${r}`,"u");return t.some(t=>{let n=e.sourceFileToPackageName.get(t.path);return void 0!==n&&(void 0===i||i.test(n))&&e.isSourceFileFromExternalLibrary(t)})}function Pa(e,t){return Ps(e)?t:Ps(t)?e:Math.min(e,t)}function Po(e,t){return Ps(e)?t:Ps(t)?e:Math.max(e,t)}function Ps(e){return Number.isNaN(e)}function Pl(e,t){if(vl(e))throw Error("ErrorType encountered.");return{type:e,typeNode:null==t||t.pos<0?null:t}}function Pc(e,t,n,r){let i=e.getTypeChecker().getRecursionIdentity(n.type);null!==n.typeNode&&t.set(n.typeNode,r),t.set(i,r)}function Pu(e,t,n,r){let i="string"==typeof t?[t]:t instanceof RegExp||void 0===t.name?[]:Array.isArray(t.name)?t.name:[t.name],a=t instanceof RegExp?[t]:"string"==typeof t||void 0===t.pattern?[]:Array.isArray(t.pattern)?t.pattern:[t.pattern],o="string"==typeof t||t instanceof RegExp||void 0===t.ignoreName?[]:Array.isArray(t.ignoreName)?t.ignoreName:[t.ignoreName],s="string"==typeof t||t instanceof RegExp||void 0===t.ignorePattern?[]:Array.isArray(t.ignorePattern)?t.ignorePattern:[t.ignorePattern],l=[...i,...a],c=[...o,...s];return r(e,n.type,n.typeNode,l,c)}(i=sy||(sy={}))[i.Unknown=NaN]="Unknown",i[i.Mutable=2]="Mutable",i[i.ReadonlyShallow=3]="ReadonlyShallow",i[i.ReadonlyDeep=4]="ReadonlyDeep",i[i.Immutable=5]="Immutable",i[i.Calculating=1/0]="Calculating";function P_(e){return vy(e)&&void 0!==e.typeArguments&&e.typeArguments.length>0}let Pd=new WeakMap;function Pp(e){return{typeData:e,stage:0,immutability:sy.Calculating}}function Pf(e,t,n){return{typeData:e.typeData,children:t,childrenReducer:n,stage:1,immutability:sy.Calculating}}function Pm(e,t){return{taskState:e,notDoneAction:t,stage:5}}function Pg(e,t,n){t.push(Pm(n,()=>{n.stage=7,n.immutability=Po(n.limits.min,n.limits.max),t.push(n)}),Pm(n,()=>{P_(n.typeData.type)&&Py(t,n)})),Ph(e,t,n)}function Ph(e,t,n){n.stage=2,n.limits={...e.immutabilityLimits},t.push(Pm(n,()=>{if(P_(n.typeData.type)){n.stage=3,t.push(n);return}n.stage=4,t.push(n)}));let r=e.program.getTypeChecker(),i=n.typeData.type.getProperties();if(i.length>0)for(let e of i){if(vk(n.typeData.type,e.getEscapedName(),r)||"length"===e.escapedName&&r.isTupleType(n.typeData.type))continue;let t=yf.getNameOfDeclaration(e.valueDeclaration);if(void 0!==t&&yf.isPrivateIdentifier(t))continue;let i=e.getDeclarations()??[];if(i.length>0&&(i.some(e=>Object.hasOwn(e,"symbol")&&yv(e.symbol,yf.SymbolFlags.Method))||i.every(e=>yf.isPropertySignature(e)&&void 0!==e.type&&yf.isFunctionTypeNode(e.type)))){n.limits.max=Pa(n.limits.max,sy.ReadonlyDeep);continue}n.immutability=sy.Mutable;return}let a=new Map(null!==n.typeData.typeNode&&y$(n.typeData.typeNode)&&void 0!==n.typeData.typeNode.type&&yf.isTypeLiteralNode(n.typeData.typeNode.type)?n.typeData.typeNode.type.members.map(e=>{var t;return void 0!==e.name&&y$(e)&&void 0!==e.type?[(t=e.name,yf.isIdentifier(t)||yf.isPrivateIdentifier(t),t.getText()),e.type]:void 0}).filter(e=>void 0!==e):[]),o=i.map(e=>{let t=k5.getTypeOfPropertyOfType(r,n.typeData.type,e);return void 0===t||vu(t)&&"error"===t.intrinsicName?null:Pp(Pl(t,a.get(e.getEscapedName())))}).filter(e=>null!==e);o.length>0&&(n.limits.min=sy.ReadonlyShallow,t.push(Pf(n,o,Pa),...o))}function Py(e,t){let n=t.typeData.type.typeArguments.map(e=>Pp(Pl(e,void 0)));e.push(Pf(t,n,Pa),...n)}function Pv(e,t,n,r){let i=e.program.getTypeChecker().getIndexInfoOfType(r.type,n);if(void 0===i)return t.immutability=sy.Unknown,[];if(e.immutabilityLimits.max<=sy.ReadonlyShallow)return t.immutability=sy.ReadonlyShallow,[];if(i.isReadonly){if(i.type===r.type)return t.immutability=e.immutabilityLimits.max,[];let n=Pp(Pl(i.type,void 0));return[Pf(t,[{immutability:sy.ReadonlyShallow},n],Po),n]}return t.immutability=sy.Mutable,[]}(a=sv||(sv={}))[a.Triage=0]="Triage",a[a.ReduceChildren=1]="ReduceChildren",a[a.ObjectProperties=2]="ObjectProperties",a[a.ObjectTypeReference=3]="ObjectTypeReference",a[a.ObjectIndexSignature=4]="ObjectIndexSignature",a[a.CheckDone=5]="CheckDone",a[a.ApplyOverride=6]="ApplyOverride",a[a.Done=7]="Done";var Pb=Object.defineProperty,PT=e=>{let t={};for(var n in e)Pb(t,n,{get:e[n],enumerable:!0});return t};let PS=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/${e}`}),Px=e=>yv(e,yf.TypeFlags.TypeParameter|yf.TypeFlags.Any),PE=e=>yv(e,yf.TypeFlags.BigIntLike),Pk=e=>yv(e,yf.TypeFlags.BooleanLike),PP=e=>yv(e,yf.TypeFlags.EnumLike),PC=e=>e.isLiteral()&&ls.isMatching({value:{base10Value:"0"}},e),Pw=e=>e.isNumberLiteral()&&0===e.value,PA=e=>e.isStringLiteral()&&""===e.value,PD=e=>yv(e,yf.TypeFlags.Never),PN=e=>yv(e,yf.TypeFlags.Null|yf.TypeFlags.Undefined|yf.TypeFlags.VoidLike),PF=e=>yv(e,yf.TypeFlags.NumberLike),PO=e=>!yv(e,yf.TypeFlags.Null|yf.TypeFlags.Undefined|yf.TypeFlags.VoidLike|yf.TypeFlags.BooleanLike|yf.TypeFlags.StringLike|yf.TypeFlags.NumberLike|yf.TypeFlags.BigIntLike|yf.TypeFlags.TypeParameter|yf.TypeFlags.Any|yf.TypeFlags.Unknown|yf.TypeFlags.Never),PI=e=>yv(e,yf.TypeFlags.StringLike),PL=e=>e.isLiteral()&&ls.isMatching({value:{base10Value:ls.P.not("0")}},e),PM=e=>e.isNumberLiteral()&&0!==e.value,PR=e=>e.isStringLiteral()&&""!==e.value,Pj=e=>yv(e,yf.TypeFlags.Unknown);var PY=PS({meta:{type:"problem",docs:{description:"Prevents dollar signs from being inserted as text nodes before expressions.",[Symbol.for("rule_features")]:[]},fixable:"code",hasSuggestions:!0,messages:{jsxDollar:"Possible unnecessary '$' character before expression.",removeDollarSign:"Remove the dollar sign '$' before the expression."},schema:[]},name:"jsx-dollar",create:function(e){let t=t=>{for(let[n,r]of t.children.entries()){if(r.type!==_q.AST_NODE_TYPES.JSXText||!r.value.endsWith("$")||t.children[n+1]?.type!==_q.AST_NODE_TYPES.JSXExpressionContainer||"$"===r.value&&2===t.children.length)continue;let i=r.loc.end;e.report({messageId:"jsxDollar",node:r,loc:{end:{column:i.column,line:i.line},start:{column:i.column-1,line:i.line}},suggest:[{messageId:"removeDollarSign",fix:e=>e.removeRange([r.range[1]-1,r.range[1]])}]})}};return{JSXElement:t,JSXFragment:t}},defaultOptions:[]}),PU=PS({meta:{type:"problem",docs:{description:"Enforces that the 'key' prop is placed before the spread prop in JSX elements.",[Symbol.for("rule_features")]:["EXP"]},messages:{jsxKeyBeforeSpread:"The 'key' prop must be placed before any spread props."},schema:[]},name:"jsx-key-before-spread",create:function(e){return{JSXOpeningElement(t){let n=null;for(let[r,i]of t.attributes.entries()){if(i.type===_q.AST_NODE_TYPES.JSXSpreadAttribute){n??=r;continue}null!=n&&"key"===i.name.name&&r>n&&e.report({messageId:"jsxKeyBeforeSpread",node:i})}}}},defaultOptions:[]}),PB=PS({meta:{type:"problem",docs:{description:"Prevents comments from being inserted as text nodes.",[Symbol.for("rule_features")]:[]},messages:{jsxNoCommentTextnodes:"Possible misused comment in text node. Comments inside children section of tag should be placed inside braces."},schema:[]},name:"jsx-no-comment-textnodes",create:function(e){let t=t=>{xA([_q.AST_NODE_TYPES.JSXElement,_q.AST_NODE_TYPES.JSXFragment])(t.parent)&&!xA([_q.AST_NODE_TYPES.JSXAttribute,_q.AST_NODE_TYPES.JSXExpressionContainer])(t.parent)&&/^\s*\/(?:\/|\*)/mu.test(e.sourceCode.getText(t))&&e.report({messageId:"jsxNoCommentTextnodes",node:t})};return{JSXText:t,Literal:t}},defaultOptions:[]}),PV=PS({meta:{type:"problem",docs:{description:"Disallow duplicate props in JSX elements.",[Symbol.for("rule_features")]:[]},messages:{jsxNoDuplicateProps:"This JSX property is assigned multiple times."},schema:[]},name:"jsx-no-duplicate-props",create:function(e){return{JSXOpeningElement(t){let n=[];for(let r of t.attributes){if(r.type===_q.AST_NODE_TYPES.JSXSpreadAttribute)continue;let t=r.name.name;if("string"==typeof t){if(!n.includes(t)){n.push(t);continue}e.report({messageId:"jsxNoDuplicateProps",node:r})}}}}},defaultOptions:[]}),PJ=PS({meta:{type:"problem",docs:{description:"Disallows 'IIFE' in JSX elements.",[Symbol.for("rule_features")]:["EXP"]},messages:{jsxNoIife:"Avoid using IIFE in JSX elements."},schema:[]},name:"jsx-no-iife",create:function(e){return{"JSXElement :function"(t){t.parent.type===_q.AST_NODE_TYPES.CallExpression&&t.parent.callee===t&&e.report({messageId:"jsxNoIife",node:t.parent})},"JSXFragment :function"(t){t.parent.type===_q.AST_NODE_TYPES.CallExpression&&t.parent.callee===t&&e.report({messageId:"jsxNoIife",node:t.parent})}}},defaultOptions:[]}),Pz=PS({meta:{type:"problem",docs:{description:"Disallow undefined variables in JSX.",[Symbol.for("rule_features")]:[]},messages:{jsxNoUndef:"JSX variable '{{name}}' is not defined."},schema:[]},name:"jsx-no-undef",create:function(e){return{JSXOpeningElement(t){let n=ls.match(t.name).with({type:_q.AST_NODE_TYPES.JSXIdentifier},e=>e.name).with({type:_q.AST_NODE_TYPES.JSXMemberExpression,object:{type:_q.AST_NODE_TYPES.JSXIdentifier}},e=>e.object.name).otherwise(()=>null);null==n||"this"===n||/^[a-z]/u.test(n)||null==x9(n,e.sourceCode.getScope(t))&&e.report({messageId:"jsxNoUndef",node:t,data:{name:n}})}}},defaultOptions:[]});let Pq=[1];var P$=PS({meta:{type:"problem",docs:{description:"Enforces shorthand syntax for boolean attributes.",[Symbol.for("rule_features")]:["CFG","FIX"]},fixable:"code",messages:{jsxShorthandBoolean:"{{message}}"},schema:[{type:"integer",enum:[-1,1]}]},name:"jsx-shorthand-boolean",create:function(e){let t=e.options[0]??Pq[0];return{JSXAttribute(n){let{value:r}=n,i=EI(n.name);switch(!0){case 1===t&&r?.type===_q.AST_NODE_TYPES.JSXExpressionContainer&&r.expression.type===_q.AST_NODE_TYPES.Literal&&!0===r.expression.value:e.report({messageId:"jsxShorthandBoolean",node:n,data:{message:`Omit attribute value for '${i}'.`},fix:e=>e.removeRange([n.name.range[1],r.range[1]])});break;case -1===t&&null===r:e.report({messageId:"jsxShorthandBoolean",node:n.value??n,data:{message:`Set attribute value for '${i}'.`},fix:e=>e.insertTextAfter(n.name,"={true}")})}}}},defaultOptions:Pq});let PW=[1];var PK=PS({meta:{type:"problem",docs:{description:"Enforces shorthand syntax for fragments.",[Symbol.for("rule_features")]:["CFG","FIX"]},fixable:"code",messages:{jsxShorthandFragment:"{{message}}"},schema:[{type:"integer",enum:[-1,1]}]},name:"jsx-shorthand-fragment",create:function(e){let t=e.options[0]??PW[0],{jsxFragmentFactory:n}={...ER(e),...EY(e)};return ls.match(t).with(1,()=>({JSXElement(t){!E$(e,t)||t.openingElement.attributes.length>0||e.report({messageId:"jsxShorthandFragment",node:t,data:{message:"Use fragment shorthand syntax instead of 'Fragment' component."},fix:e=>{let{closingElement:n,openingElement:r}=t;return null==n?[]:[e.replaceTextRange([r.range[0],r.range[1]],"<>"),e.replaceTextRange([n.range[0],n.range[1]],"</>")]}})}})).with(-1,()=>({JSXFragment(t){e.report({messageId:"jsxShorthandFragment",node:t,data:{message:"Use 'Fragment' component instead of fragment shorthand syntax."},fix:e=>{let{closingFragment:r,openingFragment:i}=t;return[e.replaceTextRange([i.range[0],i.range[1]],`<${n}>`),e.replaceTextRange([r.range[0],r.range[1]],`</${n}>`)]}})}})).otherwise(()=>({}))},defaultOptions:PW}),PH=PS({meta:{type:"problem",docs:{description:"Marks React variables as used when JSX is used.",[Symbol.for("rule_features")]:[]},messages:{jsxUsesReact:"Marked {{name}} as used."},schema:[]},name:"jsx-uses-react",create:function(e){let{jsx:t,jsxFactory:n,jsxFragmentFactory:r}={...ER(e),...EY(e)};if(4===t||5===t)return{};function i(t){e.sourceCode.markVariableAsUsed(n,t),PG(e,t,n)}return{JSXFragment:function(t){e.sourceCode.markVariableAsUsed(r,t),PG(e,t,r)},JSXOpeningElement:i,JSXOpeningFragment:i}},defaultOptions:[]});function PG(e,t,n){"1"===process.env.ESLINT_REACT_DEBUG&&e.report({messageId:"jsxUsesReact",node:t,data:{name:n}})}var PX=PS({meta:{type:"problem",docs:{description:"Marks variables used in JSX elements as used.",[Symbol.for("rule_features")]:[]},messages:{jsxUsesVars:"An identifier in JSX is marked as used."},schema:[]},name:"jsx-uses-vars",create:function(e){return{JSXOpeningElement(t){switch(t.name.type){case _q.AST_NODE_TYPES.JSXIdentifier:if(/^[a-z]/u.test(t.name.name))return;e.sourceCode.markVariableAsUsed(t.name.name,t);break;case _q.AST_NODE_TYPES.JSXMemberExpression:{let{object:n}=t.name;n.type===_q.AST_NODE_TYPES.JSXIdentifier&&e.sourceCode.markVariableAsUsed(n.name,t)}}}}},defaultOptions:[]}),PQ=PS({meta:{type:"problem",docs:{description:"Disallow accessing `this.state` inside `setState` calls.",[Symbol.for("rule_features")]:[]},messages:{noAccessStateInSetstate:"Do not access 'this.state' within 'setState'. Use the update function instead."},schema:[]},name:"no-access-state-in-setstate",create:function(e){if(!e.sourceCode.text.includes("setState"))return{};let t=[],n=[],r=[];return{CallExpression(e){kS(e)&&r.push([e,!1])},"CallExpression:exit"(e){kS(e)&&r.pop()},ClassDeclaration(e){t.push([e,EH(e)])},"ClassDeclaration:exit"(){t.pop()},ClassExpression(e){t.push([e,EH(e)])},"ClassExpression:exit"(){t.pop()},MemberExpression(i){if(!xJ(i.object))return;let[a,o=!1]=t.at(-1)??[];if(null==a||!o)return;let[s,l=!1]=n.at(-1)??[];if(null==s||l)return;let[c,u=!1]=r.at(-1)??[];null==c||u||"state"===x2(i.property)&&e.report({messageId:"noAccessStateInSetstate",node:i})},MethodDefinition(e){n.push([e,e.static])},"MethodDefinition:exit"(){n.pop()},PropertyDefinition(e){n.push([e,e.static])},"PropertyDefinition:exit"(){n.pop()},VariableDeclarator(i){let[a,o=!1]=t.at(-1)??[];if(null==a||!o)return;let[s,l=!1]=n.at(-1)??[];if(null==s||l)return;let[c,u=!1]=r.at(-1)??[];null==c||u||null==i.init||!xJ(i.init)||i.id.type!==_q.AST_NODE_TYPES.ObjectPattern||i.id.properties.some(e=>{var t;return e.type===_q.AST_NODE_TYPES.Property&&(t=e.key,ls.match(t).with({type:_q.AST_NODE_TYPES.Literal},ln).with({type:_q.AST_NODE_TYPES.TemplateLiteral,expressions:[]},ln).with({type:_q.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(lr))&&"state"===x2(e.key)})&&e.report({messageId:"noAccessStateInSetstate",node:i})}}},defaultOptions:[]});let PZ=["forEach","map"];var P0=PS({meta:{type:"problem",docs:{description:"Disallow an item's index in the array as its key.",[Symbol.for("rule_features")]:[]},messages:{noArrayIndexKey:"Do not use item index in the array as its key."},schema:[]},name:"no-array-index-key",create:function(t){let n=[];function r(e){return e.type===_q.AST_NODE_TYPES.Identifier&&n.some(t=>null!=t&&t===e.name)}function i(e){switch(e.type){case _q.AST_NODE_TYPES.Identifier:if(n.some(t=>null!=t&&t===e.name))return[{messageId:"noArrayIndexKey",node:e}];break;case _q.AST_NODE_TYPES.TemplateLiteral:case _q.AST_NODE_TYPES.BinaryExpression:{let t=[];for(let n of e.type===_q.AST_NODE_TYPES.TemplateLiteral?e.expressions:function e(t){return t.type===_q.AST_NODE_TYPES.Identifier?[t]:t.type===_q.AST_NODE_TYPES.BinaryExpression?[...e(t.left),...e(t.right)]:[]}(e))r(n)&&t.push({messageId:"noArrayIndexKey",node:n});return t}case _q.AST_NODE_TYPES.CallExpression:switch(!0){case e.callee.type===_q.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"toString"===e.callee.property.name&&r(e.callee.object):return[{messageId:"noArrayIndexKey",node:e.callee.object}];case e.callee.type===_q.AST_NODE_TYPES.Identifier&&"String"===e.callee.name&&null!=e.arguments[0]&&r(e.arguments[0]):return[{messageId:"noArrayIndexKey",node:e.arguments[0]}]}}return[]}return{CallExpression(r){if(n.push(function(t,n){let{callee:r}=n;if(r.type!==_q.AST_NODE_TYPES.MemberExpression||r.property.type!==_q.AST_NODE_TYPES.Identifier)return e;let{name:i}=r.property,a=xx.get(i)??-1;if(-1===a)return e;let o=n.arguments[+!!function(e,t){var n;let{importSource:r="react"}=e.settings,{callee:i}=t;if(!("property"in i)||!("object"in i)||!("name"in i.property)||(n=i.property.name,!PZ.includes(n)))return!1;let a=e.sourceCode.getScope(t);return i.object.type===_q.AST_NODE_TYPES.Identifier&&"Children"===i.object.name||i.object.type===_q.AST_NODE_TYPES.MemberExpression&&"name"in i.object.object&&E0(i.object.object.name,r,a)}(t,n)];if(null==o||!xA([_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression])(o))return e;let{params:s}=o;if(s.length<a+1)return e;let l=s.at(a);return null!=l&&"name"in l?l.name:e}(t,r)),0===r.arguments.length||!(Eh(t,r)||Em(t,r)))return;let[,a]=r.arguments;if(a?.type===_q.AST_NODE_TYPES.ObjectExpression){for(let e of a.properties)if(ls.isMatching({key:{name:"key"}})(e)&&"value"in e)for(let n of i(e.value))_O(t)(n)}},"CallExpression:exit"(){n.pop()},JSXAttribute(e){if("key"===e.name.name&&0!==n.length&&e.value?.type===_q.AST_NODE_TYPES.JSXExpressionContainer)for(let n of i(e.value.expression))_O(t)(n)}}},defaultOptions:[]}),P1=PS({meta:{type:"problem",docs:{description:"Disallow `Children.count`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenCount:"Using 'Children.count' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-count",create:function(e){return{MemberExpression(t){El(e,t)&&e.report({messageId:"noChildrenCount",node:t.property})}}},defaultOptions:[]}),P2=PS({meta:{type:"problem",docs:{description:"Disallow 'Children.forEach'.",[Symbol.for("rule_features")]:[]},messages:{noChildrenForEach:"Using 'Children.forEach' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-for-each",create:function(e){return{MemberExpression(t){Ec(e,t)&&e.report({messageId:"noChildrenForEach",node:t.property})}}},defaultOptions:[]}),P3=PS({meta:{type:"problem",docs:{description:"Disallow `Children.map`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenMap:"Using 'Children.map' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-map",create:function(e){return{MemberExpression(t){Eu(e,t)&&e.report({messageId:"noChildrenMap",node:t.property})}}},defaultOptions:[]}),P6=PS({meta:{type:"problem",docs:{description:"Disallow `Children.only`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenOnly:"Using 'Children.only' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-only",create:function(e){return{MemberExpression(t){E_(e,t)&&e.report({messageId:"noChildrenOnly",node:t.property})}}},defaultOptions:[]}),P4=PS({meta:{type:"problem",docs:{description:"Disallow passing `children` as a prop.",[Symbol.for("rule_features")]:[]},messages:{noChildrenProp:"Do not pass 'children' as props."},schema:[]},name:"no-children-prop",create:function(e){return{JSXElement(t){let n=EL(e,t)("children");null!=n&&e.report({messageId:"noChildrenProp",node:n})}}},defaultOptions:[]}),P8=PS({meta:{type:"problem",docs:{description:"Disallow `Children.toArray`.",[Symbol.for("rule_features")]:[]},messages:{noChildrenToArray:"Using 'Children.toArray' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-children-to-array",create:function(e){return{MemberExpression(t){Ed(e,t)&&e.report({messageId:"noChildrenToArray",node:t.property})}}},defaultOptions:[]}),P5=PS({meta:{type:"problem",docs:{description:"Disallow class components except for error boundaries.",[Symbol.for("rule_features")]:[]},messages:{noClassComponent:"Avoid using class components. Use function components instead."},schema:[]},name:"no-class-component",create:function(e){if(!e.sourceCode.text.includes("Component"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{name:r="anonymous",node:i}of t.getAllComponents(n).values())i.body.body.some(e=>ki(e)||km(e))||e.report({messageId:"noClassComponent",node:i,data:{name:r}})}}},defaultOptions:[]}),P7=PS({meta:{type:"problem",docs:{description:"Disallow `cloneElement`.",[Symbol.for("rule_features")]:[]},messages:{noCloneElement:"Using 'cloneElement' is uncommon and can lead to fragile code. Use alternatives instead."},schema:[]},name:"no-clone-element",create:function(e){return{CallExpression(t){Em(e,t)&&e.report({messageId:"noCloneElement",node:t})}}},defaultOptions:[]}),P9=PS({meta:{type:"problem",docs:{description:"Replace usages of `componentWillMount` with `UNSAFE_componentWillMount`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noComponentWillMount:"[Deprecated] Use 'UNSAFE_componentWillMount' instead."},schema:[]},name:"no-component-will-mount",create:function(e){if(!e.sourceCode.text.includes("componentWillMount"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)ks(n)&&e.report({messageId:"noComponentWillMount",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillMount"):null})}}}},defaultOptions:[]}),Ce=PS({meta:{type:"problem",docs:{description:"Replace usages of `componentWillReceiveProps` with `UNSAFE_componentWillReceiveProps`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noComponentWillReceiveProps:"[Deprecated] Use 'UNSAFE_componentWillReceiveProps' instead."},schema:[]},name:"no-component-will-receive-props",create:function(e){if(!e.sourceCode.text.includes("componentWillReceiveProps"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)kl(n)&&e.report({messageId:"noComponentWillReceiveProps",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillReceiveProps"):null})}}}},defaultOptions:[]}),Ct=PS({meta:{type:"problem",docs:{description:"Replace usages of `componentWillUpdate` with `UNSAFE_componentWillUpdate`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noComponentWillUpdate:"[Deprecated] Use 'UNSAFE_componentWillUpdate' instead."},schema:[]},name:"no-component-will-update",create:function(e){if(!e.sourceCode.text.includes("componentWillUpdate"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)ku(n)&&e.report({messageId:"noComponentWillUpdate",node:n,fix:e=>"key"in n?e.replaceText(n.key,"UNSAFE_componentWillUpdate"):null})}}}},defaultOptions:[]}),Cn=PS({meta:{type:"problem",docs:{description:"Replace usages of `<Context.Provider>` with `<Context>`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noContextProvider:"In React 19, you can render '<Context>' as a provider instead of '<Context.Provider>'."},schema:[]},name:"no-context-provider",create:function(e){if(!e.sourceCode.text.includes("Provider"))return{};let{version:t}=_R(e);return kD(t,"19.0.0","<")?{}:{JSXElement(t){let n=Ez(e,t).split("."),r=n.pop(),i=n.join("."),a=n.pop();"Provider"!==r||null!=a&&a.endsWith("Context")&&e.report({messageId:"noContextProvider",node:t,fix(e){if(!E8(a))return null;let n=t.openingElement,r=t.closingElement;return null==r?e.replaceText(n.name,i):[e.replaceText(n.name,i),e.replaceText(r.name,i)]}})}}},defaultOptions:[]}),Cr=PS({meta:{type:"problem",docs:{description:"Disallow `createRef` in function components.",[Symbol.for("rule_features")]:[]},messages:{noCreateRef:"[Deprecated] Use 'useRef' instead."},schema:[]},name:"no-create-ref",create:function(e){return{CallExpression(t){Ey(e,t)&&null==xz(t,EH)&&e.report({messageId:"noCreateRef",node:t})}}},defaultOptions:[]}),Ci=PS({meta:{type:"problem",docs:{description:"Disallow `defaultProps` property in favor of ES6 default parameters.",[Symbol.for("rule_features")]:[]},messages:{noDefaultProps:"[Deprecated] Use ES6 default parameters instead."},schema:[]},name:"no-default-props",create:function(e){return e.sourceCode.text.includes("defaultProps")?{AssignmentExpression(t){if("="!==t.operator||t.left.type!==_q.AST_NODE_TYPES.MemberExpression)return;let{object:n,property:r}=t.left;if(n.type!==_q.AST_NODE_TYPES.Identifier||r.type!==_q.AST_NODE_TYPES.Identifier||"defaultProps"!==r.name||!E8(n.name))return;let i=x5(x9(n.name,e.sourceCode.getScope(t)),0);null==i||xD(i)&&e.report({messageId:"noDefaultProps",node:r})}}:{}},defaultOptions:[]});function Ca(e){return xA([_q.AST_NODE_TYPES.FunctionDeclaration,_q.AST_NODE_TYPES.FunctionExpression])(e)&&xF(e.parent)&&e.parent.key.type===_q.AST_NODE_TYPES.Identifier&&"constructor"===e.parent.key.name}var Co=PS({meta:{type:"problem",docs:{description:"Disallow direct mutation of `this.state`.",[Symbol.for("rule_features")]:[]},messages:{noDirectMutationState:"Do not mutate state directly. Use 'setState()' instead."},schema:[]},name:"no-direct-mutation-state",create:function(e){return{AssignmentExpression(t){if(!kx(t))return;let n=xz(t,xA([_q.AST_NODE_TYPES.ClassDeclaration,_q.AST_NODE_TYPES.ClassExpression]));null!=n&&EH(n)&&e.sourceCode.getScope(t).block!==xz(t,Ca)&&e.report({messageId:"noDirectMutationState",node:t})}}},defaultOptions:[]}),Cs=PS({meta:{type:"problem",docs:{description:"Disallow duplicate `key` on elements in the same array or a list of `children`.",[Symbol.for("rule_features")]:[]},messages:{noDuplicateKey:"A key must be unique. '{{value}}' is duplicated."},schema:[]},name:"no-duplicate-key",create:function(e){if(!e.sourceCode.text.includes("key="))return{};let t=new Map;return{"JSXAttribute[name.name='key']"(e){let n=e.parent.parent;switch(n.parent.type){case _q.AST_NODE_TYPES.ArrayExpression:case _q.AST_NODE_TYPES.JSXElement:case _q.AST_NODE_TYPES.JSXFragment:{let r=n.parent,i=t.get(r)?.keys??[];t.set(r,{hasDuplicate:i.some(t=>{let n,r;return n=t.value,r=e.value,null!=n&&null!=r&&xC(n,r)}),keys:[...i,e],root:n.parent});break}default:{let r=xz(n,xk),i=xz(n,e=>e===r||xD(e));if(!xD(i))return;let a=r?.arguments[0];if(null==r||null==a||xV(a)!==i)return;t.set(r,{hasDuplicate:e.value?.type===_q.AST_NODE_TYPES.Literal,keys:[e],root:r})}}},"Program:exit"(){for(let{hasDuplicate:n,keys:r}of t.values())if(n)for(let t of r)e.report({messageId:"noDuplicateKey",node:t,data:{value:e.sourceCode.getText(t)}})}}},defaultOptions:[]}),Cl=PS({meta:{type:"problem",docs:{description:"Replaces usages of `forwardRef` with passing `ref` as a prop.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noForwardRef:"In React 19, 'forwardRef' is no longer necessary. Pass 'ref' as a prop instead."},schema:[]},name:"no-forward-ref",create:function(e){if(!e.sourceCode.text.includes("forwardRef"))return{};let{version:t}=_R(e);return kD(t,"19.0.0","<")?{}:{CallExpression(t){var n,r;if(!Ev(e,t))return;let i=xH(t),a=!function(e,t){let{importSource:n}=_R(e),r=e.sourceCode.getScope(t);switch(t.callee.type){case _q.AST_NODE_TYPES.Identifier:return E0(t.callee.name,n,r);case _q.AST_NODE_TYPES.MemberExpression:return t.callee.object.type===_q.AST_NODE_TYPES.Identifier&&E0(t.callee.object.name,n,r);default:return!1}}(e,t)?null:(n=e,r=t,e=>{let[t]=r.arguments;return null!=t&&xD(t)?[e.removeRange([r.range[0],t.range[0]]),e.removeRange([t.range[1],r.range[1]]),...function(e,t,n,r){let i=t=>e.sourceCode.getText(t),[a,o]=n.params,[s,l]=r;if(null==a)return[];let c=ls.match(a).with({type:_q.AST_NODE_TYPES.Identifier},e=>`...${e.name}`).with({type:_q.AST_NODE_TYPES.ObjectPattern},e=>e.properties.map(i).join(", ")).otherwise(()=>null),u=ls.match(o).with(ls.P.nullish,()=>"ref").with({type:_q.AST_NODE_TYPES.Identifier,name:"ref"},()=>"ref").with({type:_q.AST_NODE_TYPES.Identifier,name:ls.P.string},e=>`ref: ${e.name}`).otherwise(()=>null);if(null==c||null==u)return[];if(null==s||null==l)return[t.replaceText(a,["{",u+",",c,"}"].join(" ")),...null==o?[]:[t.remove(o),t.removeRange([a.range[1],o.range[0]])]];let _=i(s),d=i(l);return[t.replaceText(a,["{",u+",",c,"}:",d,"& { ref?:",`React.RefObject<${_} | null>`,"}"].join(" ")),...null==o?[]:[t.remove(o),t.removeRange([a.range[1],o.range[0]])]]}(n,e,t,r.typeArguments?.params??[])]:[]});e.report({messageId:"noForwardRef",node:i??t,fix:a})}}},defaultOptions:[]}),Cc=PS({meta:{type:"problem",docs:{description:"Prevents `key` from not being explicitly specified (e.g. spreading `key` from objects).",[Symbol.for("rule_features")]:["EXP"]},messages:{noImplicitKey:"Do not use implicit 'key' props."},schema:[]},name:"no-implicit-key",create:function(e){return{JSXOpeningElement(t){let n=EL(e,t.parent)("key"),r=t.attributes.some(e=>e.type===_q.AST_NODE_TYPES.JSXAttribute&&e.name.type===_q.AST_NODE_TYPES.JSXIdentifier&&"key"===e.name.name);null==n||r||e.report({messageId:"noImplicitKey",node:n})}}},defaultOptions:[]}),Cu=PS({meta:{type:"problem",docs:{description:"Prevents problematic leaked values from being rendered.",[Symbol.for("rule_features")]:["TSC"]},messages:{noLeakedConditionalRendering:"Potential leaked value {{value}} that might cause unintentionally rendered values or rendering crashes."},schema:[]},name:"no-leaked-conditional-rendering",create:function(t){if(!t.sourceCode.text.includes("&&"))return{};let{version:n}=_R(t),r=["any","boolean","nullish","object","falsy boolean","truthy bigint","truthy boolean","truthy number","truthy string",...kD(n,"18.0.0","<")?[]:["string","falsy string"]],i=h1.ESLintUtils.getParserServices(t,!1);return{JSXExpressionContainer:function(e,t,n,r,i,a,o,s,l){switch(arguments.length){case 1:return e;case 2:return function(){return t(e.apply(this,arguments))};case 3:return function(){return n(t(e.apply(this,arguments)))};case 4:return function(){return r(n(t(e.apply(this,arguments))))};case 5:return function(){return i(r(n(t(e.apply(this,arguments)))))};case 6:return function(){return a(i(r(n(t(e.apply(this,arguments))))))};case 7:return function(){return o(a(i(r(n(t(e.apply(this,arguments)))))))};case 8:return function(){return s(o(a(i(r(n(t(e.apply(this,arguments))))))))};case 9:return function(){return l(s(o(a(i(r(n(t(e.apply(this,arguments)))))))))}}}(function n(a){return null==a?e:xw(_q.AST_NODE_TYPES.JSXExpressionContainer)(a)?n(a.expression):xL(a)?e:xj(a)?n(a.expression):ls.match(a).with({type:_q.AST_NODE_TYPES.LogicalExpression,operator:"&&"},({left:e,right:a})=>{if(e.type===_q.AST_NODE_TYPES.UnaryExpression&&"!"===e.operator)return n(a);let o=t.sourceCode.getScope(e);return e.type===_q.AST_NODE_TYPES.Identifier&&"NaN"===e.name||x4.getStaticValue(e,o)?.value==="NaN"?{messageId:"noLeakedConditionalRendering",node:e,data:{value:t.sourceCode.getText(e)}}:Array.from((function(e){let t=new Set;if(e.some(Pj))return t.add("unknown"),t;e.some(PN)&&t.add("nullish");let n=e.filter(Pk),r=n[0];1===n.length&&null!=r?vT(r)?t.add("falsy boolean"):vS(r)&&t.add("truthy boolean"):2===n.length&&t.add("boolean");let i=e.filter(PI);if(i.length>0){let e=ls.match(i).when(e=>e.every(PR),()=>"truthy string").when(e=>e.every(PA),()=>"falsy string").otherwise(()=>"string");t.add(e)}let a=e.filter(PE);if(a.length>0){let e=ls.match(a).when(e=>e.every(PL),()=>"truthy bigint").when(e=>e.every(PC),()=>"falsy bigint").otherwise(()=>"bigint");t.add(e)}let o=e.filter(PF);if(o.length>0){let e=ls.match(o).when(e=>e.every(PM),()=>"truthy number").when(e=>e.every(Pw),()=>"falsy number").otherwise(()=>"number");t.add(e)}return e.some(PP)&&t.add("enum"),e.some(PO)&&t.add("object"),e.some(Px)&&t.add("any"),e.some(PD)&&t.add("never"),t})(vA(k5.getConstrainedTypeAtLocation(i,e))).values()).every(e=>r.some(t=>t===e))?n(a):{messageId:"noLeakedConditionalRendering",node:e,data:{value:t.sourceCode.getText(e)}}}).with({type:_q.AST_NODE_TYPES.ConditionalExpression},({alternate:e,consequent:t})=>n(t)??n(e)).with({type:_q.AST_NODE_TYPES.Identifier},r=>{let i=x9(r.name,t.sourceCode.getScope(r))?.defs.at(0)?.node;return ls.match(i).with({init:ls.P.select({type:ls.P.not(_q.AST_NODE_TYPES.VariableDeclaration)})},n).otherwise(()=>e)}).otherwise(()=>e)},_O(t))}},defaultOptions:[]}),C_=PS({meta:{type:"problem",docs:{description:"Enforces that all components have a `displayName` which can be used in devtools.",[Symbol.for("rule_features")]:[]},messages:{noMissingComponentDisplayName:"Add missing 'displayName' for component."},schema:[]},name:"no-missing-component-display-name",create:function(e){if(!e.sourceCode.text.includes("memo")&&!e.sourceCode.text.includes("forwardRef"))return{};let{ctx:t,listeners:n}=ke(e,{collectDisplayName:!0,collectHookCalls:!1,hint:EK});return{...n,"Program:exit"(n){for(let{node:r,displayName:i,flag:a}of t.getAllComponents(n).values()){let t=(a&(E6.ForwardRef|E6.Memo))>0n;if(null==xH(r)&&t&&null==i){let t=xH(r);e.report({messageId:"noMissingComponentDisplayName",node:t??r})}}}}},defaultOptions:[]}),Cd=PS({meta:{type:"problem",docs:{description:"Enforces that all contexts have a `displayName` which can be used in devtools.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",messages:{noMissingContextDisplayName:"Add missing 'displayName' for context."},schema:[]},name:"no-missing-context-display-name",create:function(e){if(!e.sourceCode.text.includes("createContext"))return{};let t=[],n=[];return{[xZ](e){n.push(e)},CallExpression(n){Eg(e,n)&&t.push(n)},"Program:exit"(){for(let r of t){let t=EZ(r);if(null==t){e.report({messageId:"noMissingContextDisplayName",node:r});continue}n.some(n=>{let r=n.left;return r.type===_q.AST_NODE_TYPES.MemberExpression&&E1(e,t,r.object)})||e.report({messageId:"noMissingContextDisplayName",node:t,fix:n=>t.type!==_q.AST_NODE_TYPES.Identifier||t.parent!==r.parent?[]:n.insertTextAfter(e.sourceCode.getTokenAfter(r)??r,"\n"+t.name+".displayName = "+JSON.stringify(t.name)+";")})}}}},defaultOptions:[]}),Cp=PS({meta:{type:"problem",docs:{description:"Disallow missing `key` on items in list rendering.",[Symbol.for("rule_features")]:[]},messages:{missingKey:"Missing 'key' for element when rendering list.",unexpectedFragmentSyntax:"Use fragment component instead of '<>' because it does not support `key`."},schema:[]},name:"no-missing-key",create:function(e){let t={isWithinChildrenToArray:!1};function n(t){switch(t.type){case _q.AST_NODE_TYPES.JSXElement:if(null==EL(e,t)("key"))return{messageId:"missingKey",node:t};return null;case _q.AST_NODE_TYPES.JSXFragment:return{messageId:"unexpectedFragmentSyntax",node:t};default:return null}}return{ArrayExpression(n){if(t.isWithinChildrenToArray)return;let r=n.elements.filter(xw(_q.AST_NODE_TYPES.JSXElement));if(0===r.length)return;let i=e.sourceCode.getScope(n);for(let t of r)null==EL(e,t,i)("key")&&e.report({messageId:"missingKey",node:t})},CallExpression(r){if(t.isWithinChildrenToArray||=Ef(e,r),t.isWithinChildrenToArray)return;let i=ls.match(r).when(xk,e=>e.arguments[0]).when(xE,e=>e.arguments[1]).otherwise(()=>null);if(!xD(i))return;let a=i.body;a.type===_q.AST_NODE_TYPES.BlockStatement?(function(e){let t=[];for(let r of xq(e)){if(null==r.argument)continue;let e=n(r.argument);null!=e&&t.push(e)}return t})(a).forEach(_O(e)):_O(e)(function(e){switch(e.type){case _q.AST_NODE_TYPES.ConditionalExpression:if("consequent"in e)return n(e.consequent)??n(e.alternate);return null;case _q.AST_NODE_TYPES.JSXElement:case _q.AST_NODE_TYPES.JSXFragment:return n(e);case _q.AST_NODE_TYPES.LogicalExpression:if("left"in e)return n(e.left)??n(e.right);return null;default:return null}}(a))},"CallExpression:exit"(n){Ef(e,n)&&(t.isWithinChildrenToArray=!1)},JSXFragment(n){t.isWithinChildrenToArray||n.parent.type===_q.AST_NODE_TYPES.ArrayExpression&&e.report({messageId:"unexpectedFragmentSyntax",node:n})}}},defaultOptions:[]}),Cf=PS({meta:{type:"problem",docs:{description:"Prevents incorrect usage of `captureOwnerStack`.",[Symbol.for("rule_features")]:["EXP"]},fixable:"code",messages:{missingDevelopmentOnlyCheck:"Don't call 'captureOwnerStack' directly. Use 'if (process.env.NODE_ENV !== \"production\") {...}' to conditionally access it.",useNamespaceImport:"Don't use named imports of 'captureOwnerStack' in files that are bundled for development and production. Use a namespace import instead."},schema:[]},name:"no-misused-capture-owner-stack",create:function(e){if(!e.sourceCode.text.includes("captureOwnerStack"))return{};let{importSource:t}=_R(e);return{CallExpression(t){Ep(e,t)&&null==xz(t,Cm)&&e.report({messageId:"missingDevelopmentOnlyCheck",node:t})},ImportDeclaration(n){if(n.source.value===t)for(let t of n.specifiers)t.type===_q.AST_NODE_TYPES.ImportSpecifier&&t.imported.type===_q.AST_NODE_TYPES.Identifier&&"captureOwnerStack"===t.imported.name&&e.report({messageId:"useNamespaceImport",node:t})}}},defaultOptions:[]});function Cm(e){var t,n;return e.type===_q.AST_NODE_TYPES.IfStatement&&(t=e.test,n="production",null!=t&&t.type===_q.AST_NODE_TYPES.BinaryExpression&&"!=="===t.operator&&(x0(t.left)&&xQ(t.right,"string")?t.right.value===n:!!(xQ(t.left,"string")&&x0(t.right))&&t.left.value===n))}var Cg=PS({meta:{type:"problem",docs:{description:"Disallow nesting component definitions inside other components.",[Symbol.for("rule_features")]:[]},messages:{noNestedComponentDefinitions:"Do not nest component definitions inside other components or props. {{suggestion}}"},schema:[]},name:"no-nested-component-definitions",create:function(e){let t=ke(e,{hint:EW.SkipArrayMapArgument|EW.SkipNullLiteral|EW.SkipUndefined|EW.SkipBooleanLiteral|EW.SkipStringLiteral|EW.SkipNumberLiteral|EW.StrictLogical|EW.StrictConditional}),n=kn();return{...t.listeners,...n.listeners,"Program:exit"(r){let i=[...t.ctx.getAllComponents(r).values()],a=[...n.ctx.getAllComponents(r).values()],o=e=>xD(e)&&i.some(t=>t.node===e),s=e=>xN(e)&&a.some(t=>t.node===e);for(let{name:t,node:n}of i){var l;if(null==t||kT(n))continue;if((l=n).parent.type===_q.AST_NODE_TYPES.JSXAttribute||null!=function(e,t=ln){return xz(e,e=>e.type===_q.AST_NODE_TYPES.JSXAttribute&&t(e))}(l,e=>e.value?.type===_q.AST_NODE_TYPES.JSXExpressionContainer)){!function(e){if(kT(e))return!0;let t=xz(e,xw(_q.AST_NODE_TYPES.JSXExpressionContainer))?.parent;return t?.type===_q.AST_NODE_TYPES.JSXAttribute&&t.name.type===_q.AST_NODE_TYPES.JSXIdentifier&&t.name.name.startsWith("render")}(n)&&e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:"Move it to the top level or pass it as a prop."}});continue}if(function(e,t){let n=xz(t,Eh(e));if(null==n)return!1;let r=xz(t,xw(_q.AST_NODE_TYPES.ObjectExpression));return null!=r&&r===n.arguments[1]}(e,n)){e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:"Move it to the top level or pass it as a prop."}});continue}let r=xz(n,o);if(null!=r&&!kT(r)){e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:n.parent.type===_q.AST_NODE_TYPES.Property?"Move it to the top level or pass it as a prop.":"Move it to the top level."}});continue}null!=xz(n,e=>EG(e)&&EH(e.parent.parent))&&e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:"Move it to the top level."}})}for(let{name:t="unknown",node:n}of a)null!=xz(n,e=>s(e)||o(e))&&e.report({messageId:"noNestedComponentDefinitions",node:n,data:{name:t,suggestion:n.parent.type===_q.AST_NODE_TYPES.Property?"Move it to the top level or pass it as a prop.":"Move it to the top level."}})}}},defaultOptions:[]}),Ch=PS({meta:{type:"problem",docs:{description:"Disallow nesting lazy component declarations inside other components.",[Symbol.for("rule_features")]:[]},messages:{noNestedLazyComponentDeclarations:"Do not declare lazy components inside other components. Instead, always declare them at the top level of your module."},schema:[]},name:"no-nested-lazy-component-declarations",create:function(e){let t=ke(e,{hint:EW.None}),n=kn(),r=new Set;return{...t.listeners,...n.listeners,ImportExpression(t){let n=xz(t,t=>ET(e,t));null!=n&&r.add(n)},"Program:exit"(i){let a=[...t.ctx.getAllComponents(i).values()],o=[...n.ctx.getAllComponents(i).values()];for(let t of r)null!=xz(t,t=>!!xL(t)||(t.type===_q.AST_NODE_TYPES.CallExpression?Ex(t)||Eh(e,t)||Eg(e,t):xD(t)?a.some(e=>e.node===t):!!xN(t)&&o.some(e=>e.node===t)))&&e.report({messageId:"noNestedLazyComponentDeclarations",node:t})}}},defaultOptions:[]}),Cy=PS({meta:{type:"problem",docs:{description:"Disallow `propTypes` in favor of TypeScript or another type-checking solution.",[Symbol.for("rule_features")]:[]},messages:{noPropTypes:"[Deprecated] Use TypeScript or another type-checking solution instead."},schema:[]},name:"no-prop-types",create:function(e){return e.sourceCode.text.includes("propTypes")?{AssignmentExpression(t){if("="!==t.operator||t.left.type!==_q.AST_NODE_TYPES.MemberExpression)return;let{object:n,property:r}=t.left;if(n.type!==_q.AST_NODE_TYPES.Identifier||r.type!==_q.AST_NODE_TYPES.Identifier||"propTypes"!==r.name||!E8(n.name))return;let i=x5(x9(n.name,e.sourceCode.getScope(t)),0);null!=i&&(xD(i)||EH(i))&&e.report({messageId:"noPropTypes",node:r})},PropertyDefinition(t){!EH(t.parent.parent)||t.static&&t.key.type===_q.AST_NODE_TYPES.Identifier&&"propTypes"===t.key.name&&e.report({messageId:"noPropTypes",node:t})}}:{}},defaultOptions:[]}),Cv=PS({meta:{type:"problem",docs:{description:"Disallow `shouldComponentUpdate` when extending `React.PureComponent`.",[Symbol.for("rule_features")]:[]},messages:{noRedundantShouldComponentUpdate:"'{{componentName}}' does not need 'shouldComponentUpdate' when extending 'React.PureComponent'."},schema:[]},name:"no-redundant-should-component-update",create:function(e){if(!e.sourceCode.text.includes("shouldComponentUpdate"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{name:r="PureComponent",node:i,flag:a}of t.getAllComponents(n).values()){if((a&E6.PureComponent)===0n)continue;let{body:t}=i.body;for(let n of t)xF(n)&&n.key.type===_q.AST_NODE_TYPES.Identifier&&"shouldComponentUpdate"===n.key.name&&e.report({messageId:"noRedundantShouldComponentUpdate",node:n,data:{componentName:r}})}}}},defaultOptions:[]}),Cb=PS({meta:{type:"problem",docs:{description:"Disallow calling `this.setState` in `componentDidMount` outside of functions, such as callbacks.",[Symbol.for("rule_features")]:[]},messages:{noSetStateInComponentDidMount:"Do not call `this.setState` in `componentDidMount` outside of functions, such as callbacks."},schema:[]},name:"no-set-state-in-component-did-mount",create:function(e){return e.sourceCode.text.includes("componentDidMount")?{CallExpression(t){if(!kS(t))return;let n=xz(t,EH),r=xz(t,e=>e===n||ka(e));if(null==n||null==r||r===n)return;let i=e.sourceCode.getScope(r),a=e.sourceCode.getScope(t).upper;r.parent===n.body&&a===i&&e.report({messageId:"noSetStateInComponentDidMount",node:t})}}:{}},defaultOptions:[]}),CT=PS({meta:{type:"problem",docs:{description:"Disallow calling `this.setState` in `componentDidUpdate` outside of functions, such as callbacks.",[Symbol.for("rule_features")]:[]},messages:{noSetStateInComponentDidUpdate:"Do not call `this.setState` in `componentDidUpdate` outside of functions, such as callbacks."},schema:[]},name:"no-set-state-in-component-did-update",create:function(e){return e.sourceCode.text.includes("componentDidUpdate")?{CallExpression(t){if(!kS(t))return;let n=xz(t,EH),r=xz(t,e=>e===n||ko(e));if(null==n||null==r||r===n)return;let i=e.sourceCode.getScope(r),a=e.sourceCode.getScope(t).upper;r.parent===n.body&&a===i&&e.report({messageId:"noSetStateInComponentDidUpdate",node:t})}}:{}},defaultOptions:[]}),CS=PS({meta:{type:"problem",docs:{description:"Disallow calling `this.setState` in `componentWillUpdate` outside of functions, such as callbacks.",[Symbol.for("rule_features")]:[]},messages:{noSetStateInComponentWillUpdate:"Do not call `this.setState` in `componentWillUpdate` outside of functions, such as callbacks."},schema:[]},name:"no-set-state-in-component-will-update",create:function(e){return e.sourceCode.text.includes("componentWillUpdate")?{CallExpression(t){if(!kS(t))return;let n=xz(t,EH),r=xz(t,e=>e===n||ku(e));if(null==n||null==r||r===n)return;let i=e.sourceCode.getScope(r),a=e.sourceCode.getScope(t).upper;r.parent===n.body&&a===i&&e.report({messageId:"noSetStateInComponentWillUpdate",node:t})}}:{}},defaultOptions:[]}),Cx=PS({meta:{type:"problem",docs:{description:"Replaces string refs with callback refs.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noStringRefs:"[Deprecated] Use callback refs instead."},schema:[]},name:"no-string-refs",create:function(e){let t={isWithinClassComponent:!1};return{ClassBody:function(e){EH(e.parent)&&(t.isWithinClassComponent=!0)},"ClassBody:exit":function(){t.isWithinClassComponent=!1},JSXAttribute(n){if("ref"!==n.name.name)return;let r=function(e,t){if(null==t)return null;switch(!0){case t.type===_q.AST_NODE_TYPES.Literal&&"string"==typeof t.value:return e.sourceCode.getText(t);case t.type===_q.AST_NODE_TYPES.JSXExpressionContainer&&t.expression.type===_q.AST_NODE_TYPES.Literal&&"string"==typeof t.expression.value:case t.type===_q.AST_NODE_TYPES.JSXExpressionContainer&&t.expression.type===_q.AST_NODE_TYPES.TemplateLiteral:return e.sourceCode.getText(t.expression);default:return null}}(e,n.value);null!=r&&e.report({messageId:"noStringRefs",node:n,fix:e=>null!=n.value&&t.isWithinClassComponent?e.replaceText(n.value,`{(ref) => { this.refs[${r}] = ref; }}`):null})}}},defaultOptions:[]}),CE=PS({meta:{type:"problem",docs:{description:"Prevents the use of unnecessary `key` props on JSX elements when rendering lists.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryKey:"Unnecessary `key` prop on this element. The `key` should be on the top-level element returned from the array."},schema:[]},name:"no-unnecessary-key",create:function(e){return e.sourceCode.text.includes("key=")?{JSXAttribute(t){if("key"!==t.name.name)return;let n=t.parent.parent,r=e.sourceCode.getScope(n),i=xz(n,Ck);if(null==i||e.sourceCode.getScope(i)!==r)return;let a=xz(n,e=>e===i||xO(e)&&e.openingElement.attributes.some(e=>e.type===_q.AST_NODE_TYPES.JSXAttribute&&e.name.type===_q.AST_NODE_TYPES.JSXIdentifier&&"key"===e.name.name));null!=a&&a!==i&&e.report({messageId:"noUnnecessaryKey",node:t})}}:{}},defaultOptions:[]});function Ck(e){return null!=e.parent&&!!xk(e.parent)&&xA([_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.FunctionExpression])(xV(e))}var CP=PS({meta:{type:"problem",docs:{description:"Disallow unnecessary usage of `useCallback`.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryUseCallback:"An 'useCallback' with empty deps and no references to the component scope may be unnecessary."},schema:[]},name:"no-unnecessary-use-callback",create:function(e){return e.sourceCode.text.includes("useCallback")?{CallExpression(t){if(!EC(t))return;let n=e.sourceCode.getScope(t),r=e.sourceCode.getScope(t).block;if(!xD(r))return;let[i,a]=t.arguments;if(null==i||null==a||!ls.match(a).with({type:_q.AST_NODE_TYPES.ArrayExpression},e=>0===e.elements.length).with({type:_q.AST_NODE_TYPES.Identifier},e=>{let t=x5(x9(e.name,n),0);return t?.type===_q.AST_NODE_TYPES.ArrayExpression&&0===t.elements.length}).otherwise(()=>!1))return;let o=ls.match(i).with({type:_q.AST_NODE_TYPES.ArrowFunctionExpression},e=>e.body.type===_q.AST_NODE_TYPES.ArrowFunctionExpression?e.body:e).with({type:_q.AST_NODE_TYPES.FunctionExpression},s9).with({type:_q.AST_NODE_TYPES.Identifier},e=>{let t=x5(x9(e.name,n),0);return t?.type!==_q.AST_NODE_TYPES.ArrowFunctionExpression&&t?.type!==_q.AST_NODE_TYPES.FunctionExpression?null:t}).otherwise(()=>null);null!=o&&(Et(e.sourceCode.getScope(o)).flatMap(e=>e.references).some(e=>e.resolved?.scope.block===r)||e.report({messageId:"noUnnecessaryUseCallback",node:t}))}}:{}},defaultOptions:[]}),CC=PS({meta:{type:"problem",docs:{description:"Disallow unnecessary usage of `useMemo`.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryUseMemo:"An 'useMemo' with empty deps and no references to the component scope may be unnecessary."},schema:[]},name:"no-unnecessary-use-memo",create:function(e){return e.sourceCode.text.includes("useMemo")?{CallExpression(t){let n=e.sourceCode.getScope(t);if(!EA(t))return;let r=e.sourceCode.getScope(t).block;if(!xD(r))return;let[i,a]=t.arguments;if(null==i||null==a||xD(i)&&[...xK(i.body),...xW(i.body)].length>0||!ls.match(a).with({type:_q.AST_NODE_TYPES.ArrayExpression},e=>0===e.elements.length).with({type:_q.AST_NODE_TYPES.Identifier},e=>{let t=x5(x9(e.name,n),0);return t?.type===_q.AST_NODE_TYPES.ArrayExpression&&0===t.elements.length}).otherwise(()=>!1))return;let o=ls.match(i).with({type:_q.AST_NODE_TYPES.ArrowFunctionExpression},e=>e.body.type===_q.AST_NODE_TYPES.ArrowFunctionExpression?e.body:e).with({type:_q.AST_NODE_TYPES.FunctionExpression},s9).with({type:_q.AST_NODE_TYPES.Identifier},e=>{let t=x5(x9(e.name,n),0);return t?.type!==_q.AST_NODE_TYPES.ArrowFunctionExpression&&t?.type!==_q.AST_NODE_TYPES.FunctionExpression?null:t}).otherwise(()=>null);null!=o&&(Et(e.sourceCode.getScope(o)).flatMap(e=>e.references).some(e=>e.resolved?.scope.block===r)||e.report({messageId:"noUnnecessaryUseMemo",node:t}))}}:{}},defaultOptions:[]});let Cw=["useMDXComponents"];var CA=PS({meta:{type:"problem",docs:{description:"Enforces that a function with the `use` prefix should use at least one Hook inside of it.",[Symbol.for("rule_features")]:["EXP"]},messages:{noUnnecessaryUsePrefix:"If your function doesn't call any Hooks, avoid the 'use' prefix. Instead, write it as a regular function without the 'use' prefix."},schema:[]},name:"no-unnecessary-use-prefix",create:function(e){let t,n,{ctx:r,listeners:i}=(t=new Map,n=[],{ctx:{getAllHooks:e=>t},listeners:{":function[type]":e=>{let r=xH(e),i=EN.next(),a=r?.name;if(null!=a&&ES(a)){n.push({key:i,node:e,isHook:!0}),t.set(i,{id:r,key:i,kind:"function",name:a,node:e,flag:0n,hint:0n,hookCalls:[]});return}n.push({key:i,node:e,isHook:!1})},":function[type]:exit":()=>{n.pop()},"CallExpression[type]"(e){if(!Ex(e))return;let r=n.at(-1);if(r?.key==null)return;let i=t.get(r.key);null!=i&&i.hookCalls.push(e)}}});return{...i,"Program:exit"(t){for(let{id:n,name:i,node:a,hookCalls:o}of r.getAllHooks(t).values()){if(!(o.length>0||a.body.type===_q.AST_NODE_TYPES.BlockStatement&&0===a.body.body.length||Cw.includes(i)))e.sourceCode.getCommentsInside(a).some(({value:e})=>/use\([\s\S]*?\)/u.test(e)||/use[A-Z0-9]\w*\([\s\S]*?\)/u.test(e))||null==xz(a,x3)&&e.report({messageId:"noUnnecessaryUsePrefix",node:n??a,data:{name:i}})}}}},defaultOptions:[]}),CD=PS({meta:{type:"problem",docs:{description:"Warns the usage of `UNSAFE_componentWillMount` in class components.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeComponentWillMount:"Do not use 'UNSAFE_componentWillMount'."},schema:[]},name:"no-unsafe-component-will-mount",create:function(e){if(!e.sourceCode.text.includes("UNSAFE_componentWillMount"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)k_(n)&&e.report({messageId:"noUnsafeComponentWillMount",node:n})}}}},defaultOptions:[]}),CN=PS({meta:{type:"problem",docs:{description:"Warns the usage of `UNSAFE_componentWillReceiveProps` in class components.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeComponentWillReceiveProps:"Do not use 'UNSAFE_componentWillReceiveProps'."},schema:[]},name:"no-unsafe-component-will-receive-props",create:function(e){if(!e.sourceCode.text.includes("UNSAFE_componentWillReceiveProps"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)kd(n)&&e.report({messageId:"noUnsafeComponentWillReceiveProps",node:n})}}}},defaultOptions:[]}),CF=PS({meta:{type:"problem",docs:{description:"Warns the usage of `UNSAFE_componentWillUpdate` in class components.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeComponentWillUpdate:"Do not use 'UNSAFE_componentWillUpdate'."},schema:[]},name:"no-unsafe-component-will-update",create:function(e){if(!e.sourceCode.text.includes("UNSAFE_componentWillUpdate"))return{};let{ctx:t,listeners:n}=kn();return{...n,"Program:exit"(n){for(let{node:r}of t.getAllComponents(n).values()){let{body:t}=r.body;for(let n of t)kp(n)&&e.report({messageId:"noUnsafeComponentWillUpdate",node:n})}}}},defaultOptions:[]}),CO=PS({meta:{type:"problem",docs:{description:"Prevents non-stable values (i.e. object literals) from being used as a value for `Context.Provider`.",[Symbol.for("rule_features")]:[]},messages:{unstableContextValue:"A/an '{{type}}' passed as the value prop to the context provider should not be constructed. It will change on every render. {{suggestion}}"},schema:[]},name:"no-unstable-context-value",create:function(e){let{version:t}=_R(e),n=kD(t,"19.0.0","<"),{ctx:r,listeners:i}=ke(e),a=new WeakMap;return{...i,JSXOpeningElement(t){var i,o;let s=Ez(e,t.parent).split(".").at(-1);if(null==s||(i=s,o=n,!("Provider"===i||!o&&(i.endsWith("Context")||i.endsWith("CONTEXT")))))return;let l=r.getCurrentEntry();if(null==l)return;let c=t.attributes.find(e=>e.type===_q.AST_NODE_TYPES.JSXAttribute&&"value"===e.name.name);if(null==c||!("value"in c))return;let u=c.value;if(u?.type!==_q.AST_NODE_TYPES.JSXExpressionContainer)return;let _=u.expression,d=En(_,e.sourceCode.getScope(_));null==d||Ex(d.node)||la(a,l.node,()=>[]).push(d)},"Program:exit"(t){for(let{node:n}of r.getAllComponents(t).values())for(let t of a.get(n)??[]){let{kind:n,node:r}=t,i="function"===n?"Consider wrapping it in a useCallback hook.":"Consider wrapping it in a useMemo hook.";e.report({messageId:"unstableContextValue",node:r,data:{type:xU(r),suggestion:i}})}}}},defaultOptions:[]}),CI=PS({meta:{type:"problem",docs:{description:"Prevents using referential-type values as default props in object destructuring.",[Symbol.for("rule_features")]:[]},messages:{noUnstableDefaultProps:"A/an '{{forbiddenType}}' as default prop. This could lead to potential infinite render loop in React. Use a variable instead of '{{forbiddenType}}'."},schema:[{type:"object",additionalProperties:!1,properties:{safeDefaultProps:{type:"array",items:{type:"string"}}}}]},name:"no-unstable-default-props",create:function(e,[t]){let{ctx:n,listeners:r}=ke(e),i=new WeakMap,{safeDefaultProps:a=[]}=t,o=a.map(e=>_F(e));return{...r,"VariableDeclarator[id.type='ObjectPattern'][init.type='Identifier']"(e){let t=n.getCurrentEntry();null!=t&&la(i,t.node,()=>[]).push(e)},"Program:exit"(t){for(let{node:r}of n.getAllComponents(t).values()){let{params:t}=r,[n]=t;if(null!=n)for(let t of ls.match(n).with({type:_q.AST_NODE_TYPES.ObjectPattern},({properties:e})=>e).with({type:_q.AST_NODE_TYPES.Identifier},({name:e})=>i.get(r)?.filter(t=>t.init.name===e).flatMap(e=>e.id.properties)??[]).otherwise(()=>[])){if(t.type!==_q.AST_NODE_TYPES.Property||t.value.type!==_q.AST_NODE_TYPES.AssignmentPattern)continue;let{value:n}=t,{right:r}=n,i=En(n,e.sourceCode.getScope(n));if(null==i||Ex(i.node))continue;if(o.length>0){let e=function(e){if(e.type===_q.AST_NODE_TYPES.NewExpression&&e.callee.type===_q.AST_NODE_TYPES.Identifier)return e.callee.name;if(e.type===_q.AST_NODE_TYPES.CallExpression&&e.callee.type===_q.AST_NODE_TYPES.MemberExpression){let{object:t}=e.callee;if(t.type===_q.AST_NODE_TYPES.Identifier)return t.name}return null}(r);if(null!=e&&o.some(t=>t.test(e)))continue}let a=xU(r);e.report({messageId:"noUnstableDefaultProps",node:r,data:{forbiddenType:a}})}}}}},defaultOptions:[{safeDefaultProps:[]}]});let CL=new Set(["componentDidCatch","componentDidMount","componentDidUpdate","componentWillMount","componentWillReceiveProps","componentWillUnmount","componentWillUpdate","constructor","getSnapshotBeforeUpdate","render","shouldComponentUpdate","state","UNSAFE_componentWillMount","UNSAFE_componentWillReceiveProps","UNSAFE_componentWillUpdate"]);function CM(e,t){return ls.match(t).with({type:_q.AST_NODE_TYPES.Literal},ln).with({type:_q.AST_NODE_TYPES.TemplateLiteral,expressions:[]},ln).with({type:_q.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(lr)}var CR=PS({meta:{type:"problem",docs:{description:"Warns unused class component methods and properties.",[Symbol.for("rule_features")]:[]},messages:{noUnusedClassComponentMembers:"Unused method or property '{{methodName}}'' of class '{{className}}'."},schema:[]},name:"no-unused-class-component-members",create:function(e){let t=[],n=[],r=new WeakMap,i=new WeakMap;function a(e){t.push(e),EH(e)&&(r.set(e,new Set),i.set(e,new Set))}function o(){let n=t.pop();if(null==n||!EH(n))return;let a=xP(n)?.name,o=r.get(n),s=i.get(n);if(null!=o)for(let t of o){let n=x2(t);null!=n&&(s?.has(n)||CL.has(n)||e.report({messageId:"noUnusedClassComponentMembers",node:t,data:{className:a??"Component",methodName:n}}))}}function s(e){n.push(e);let i=t.at(-1);null!=i&&EH(i)&&!e.static&&CM(e,e.key)&&r.get(i)?.add(e.key)}function l(){n.pop()}return{ClassDeclaration:a,"ClassDeclaration:exit":o,ClassExpression:a,"ClassExpression:exit":o,MemberExpression(e){let a=t.at(-1),o=n.at(-1);if(null==a||null==o||!EH(a)||o.static||!xJ(e.object)||!CM(e,e.property))return;if(e.parent.type===_q.AST_NODE_TYPES.AssignmentExpression&&e.parent.left===e)return void r.get(a)?.add(e.property);let s=x2(e.property);null!=s&&i.get(a)?.add(s)},MethodDefinition:s,"MethodDefinition:exit":l,PropertyDefinition:s,"PropertyDefinition:exit":l,VariableDeclarator(e){let r=t.at(-1),a=n.at(-1);if(null!=r&&null!=a&&EH(r)&&!a.static&&null!=e.init&&xJ(e.init)&&e.id.type===_q.AST_NODE_TYPES.ObjectPattern){for(let t of e.id.properties)if(t.type===_q.AST_NODE_TYPES.Property&&CM(t,t.key)){let e=x2(t.key);null!=e&&i.get(r)?.add(e)}}}}},defaultOptions:[]}),Cj=PS({meta:{type:"problem",docs:{description:"Warns component props that are defined but never used.",[Symbol.for("rule_features")]:["TSC","EXP"]},messages:{noUnusedProps:"Prop `{{name}}` is declared but never used"},schema:[]},name:"no-unused-props",create:function(e){let t=h1.ESLintUtils.getParserServices(e,!1),{ctx:n,listeners:r}=ke(e);return{...r,"Program:exit"(r){let i=t.program.getTypeChecker(),a=n.getAllComponents(r),o=new Set,s=new Set;for(let[,n]of a){let[r]=n.node.params;if(null==r)continue;let a=new Set;if(!function(e,t,n){switch(n.type){case _q.AST_NODE_TYPES.Identifier:return CU(e,t,n);case _q.AST_NODE_TYPES.ObjectPattern:return CY(e,t,n);default:return!1}}(e,a,r))continue;let l=t.esTreeNodeToTSNodeMap.get(r);for(let e of i.getTypeAtLocation(l).getProperties())o.add(e),a.has(e.name)&&s.add(e)}for(let n of[...o].filter(e=>!s.has(e)))!function(e,t,n){let r=n.getDeclarations()?.[0];if(null==r)return;let i=t.tsNodeToESTreeNodeMap.get(r);if(null==i)return;let a=i.type===_q.AST_NODE_TYPES.TSPropertySignature?i.key:i;e.report({messageId:"noUnusedProps",node:a,data:{name:n.name}})}(e,t,n)}}},defaultOptions:[]});function CY(e,t,n){for(let o of n.properties)switch(o.type){case _q.AST_NODE_TYPES.Property:{let e=CB(o.key);if(null==e)return!1;t.add(e);break}case _q.AST_NODE_TYPES.RestElement:var r,i,a;if(r=e,i=t,!((a=o).argument.type===_q.AST_NODE_TYPES.Identifier&&CU(r,i,a.argument)))return!1}return!0}function CU(e,t,n){let r=e.sourceCode.getScope(n).variables.find(e=>e.name===n.name);if(null==r)return!1;for(let i of r.references)if(i.identifier!==n&&!function(e,t,n,r){let{parent:i}=r.identifier;switch(i.type){case _q.AST_NODE_TYPES.MemberExpression:if(i.object.type===_q.AST_NODE_TYPES.Identifier&&i.object.name===n.name){let e=CB(i.property);if(null==e)return!1;return t.add(e),!0}break;case _q.AST_NODE_TYPES.VariableDeclarator:if(i.id.type===_q.AST_NODE_TYPES.ObjectPattern&&i.init===r.identifier)return CY(e,t,i.id)}return!1}(e,t,n,i))return!1;return!0}function CB(e){switch(e.type){case _q.AST_NODE_TYPES.Identifier:return e.name;case _q.AST_NODE_TYPES.Literal:if("string"==typeof e.value)return e.value}return null}var CV=PS({meta:{type:"problem",docs:{description:"Warns unused class component state.",[Symbol.for("rule_features")]:[]},messages:{noUnusedState:"Unused class component state in '{{className}}'"},schema:[]},name:"no-unused-state",create:function(e){let t=[],n=[],r=[],i=new WeakMap;function a(e){t.push(e)}function o(){let n=t.pop();if(null==n||!EH(n))return;let r=xP(n)?.name,{node:a,isUsed:o=!1}=i.get(n)??{};null==a||o||e.report({messageId:"noUnusedState",node:a,data:{className:r??"Component"}})}function s(e){n.push(e);let r=t.at(-1);if(null!=r&&EH(r)){if(e.static){if(kf(e)&&ls.isMatching({params:[ls.P.nonNullable,...ls.P.array()]})(e.value)){let e=i.get(r)?.node;i.set(r,{node:e,isUsed:!0})}return}"state"===x2(e.key)&&i.set(r,{node:e.key,isUsed:!1})}}function l(){n.pop()}return{AssignmentExpression(e){if(!kx(e))return;let n=t.at(-1);if(null==n||!EH(n))return;let a=r.at(-1);if(null==a||!n.body.body.includes(a))return;let o=i.get(n)?.isUsed??!1;i.set(n,{node:e.left,isUsed:o})},ClassDeclaration:a,"ClassDeclaration:exit":o,ClassExpression:a,"ClassExpression:exit":o,MemberExpression(e){if(!xJ(e.object)||"state"!==x2(e.property))return;let a=t.at(-1);if(null==a||!EH(a))return;let o=n.at(-1);if(null==o||o.static||o===r.at(-1)||!a.body.body.includes(o))return;let s=i.get(a)?.node;i.set(a,{node:s,isUsed:!0})},MethodDefinition:s,"MethodDefinition:exit":l,"MethodDefinition[key.name='constructor']":function(e){r.push(e)},"MethodDefinition[key.name='constructor']:exit":function(){r.pop()},PropertyDefinition:s,"PropertyDefinition:exit":l,VariableDeclarator(e){let a=t.at(-1);if(null==a||!EH(a))return;let o=n.at(-1);if(null==o||o.static||o===r.at(-1)||!a.body.body.includes(o)||null==e.init||!xJ(e.init)||e.id.type!==_q.AST_NODE_TYPES.ObjectPattern||!e.id.properties.some(e=>{var t;return!!(e.type===_q.AST_NODE_TYPES.Property&&(t=e.key,ls.match(t).with({type:_q.AST_NODE_TYPES.Literal},ln).with({type:_q.AST_NODE_TYPES.TemplateLiteral,expressions:[]},ln).with({type:_q.AST_NODE_TYPES.Identifier},()=>!e.computed).otherwise(lr)))&&"state"===x2(e.key)}))return;let s=i.get(a)?.node;i.set(a,{node:s,isUsed:!0})}}},defaultOptions:[]}),CJ=PS({meta:{type:"problem",docs:{description:"Replaces usages of `useContext` with `use`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noUseContext:"In React 19, 'use' is preferred over 'useContext' because it is more flexible."},schema:[]},name:"no-use-context",create:function(e){if(!e.sourceCode.text.includes("useContext"))return{};let t=_R(e);if(kD(t.version,"19.0.0","<"))return{};let n=new Set;return{CallExpression(e){Ex(e)&&n.add(e)},ImportDeclaration(n){if(n.source.value!==t.importSource)return;let r=n.specifiers.some(ls.isMatching({local:{type:_q.AST_NODE_TYPES.Identifier,name:"use"}}));for(let t of n.specifiers)t.type===_q.AST_NODE_TYPES.ImportSpecifier&&t.imported.type===_q.AST_NODE_TYPES.Identifier&&"useContext"===t.imported.name&&e.report({messageId:"noUseContext",node:t,fix(n){if(r){let r=e.sourceCode.getTokenBefore(t);return[n.remove(t),...r?.value===","?[n.replaceTextRange([r.range[1],t.range[0]],"")]:[],...(function(e,t){let n=e.sourceCode.getTokenBefore(t),r=e.sourceCode.getTokenAfter(t),i=[];return r?.value!==","&&n?.value===","&&i.push(n),r?.value===","&&i.push(r),i})(e,t).map(e=>n.remove(e))]}return n.replaceText(t.imported,"use")}})},"Program:exit"(){for(let t of n)Ew(t)&&e.report({messageId:"noUseContext",node:t.callee,fix(e){switch(t.callee.type){case _q.AST_NODE_TYPES.Identifier:return e.replaceText(t.callee,"use");case _q.AST_NODE_TYPES.MemberExpression:return e.replaceText(t.callee.property,"use")}return null}})}}},defaultOptions:[]}),Cz=PS({meta:{type:"problem",docs:{description:"Disallow useless `forwardRef` calls on components that don't use `ref`s.",[Symbol.for("rule_features")]:[]},messages:{noUselessForwardRef:"A 'forwardRef' is used with this component but no 'ref' parameter is set."},schema:[]},name:"no-useless-forward-ref",create:function(e){return{CallExpression(t){if(!Ev(e,t))return;let[n]=t.arguments;null!=n&&xD(n)&&null==n.params[1]&&e.report({messageId:"noUselessForwardRef",node:t.callee})}}},defaultOptions:[]});let Cq=[{allowExpressions:!0}];var C$=PS({meta:{type:"problem",defaultOptions:[...Cq],docs:{description:"Disallow useless fragment elements."},fixable:"code",messages:{uselessFragment:"A fragment {{reason}} is useless."},schema:[{type:"object",additionalProperties:!1,properties:{allowExpressions:{type:"boolean",description:"Allow fragments with a single expression child"}}}]},name:"no-useless-fragment",create:function(e,[t]){let{allowExpressions:n=!0}=t;return{JSXElement(t){E$(e,t)&&CK(e,t,n)},JSXFragment(t){CK(e,t,n)}}},defaultOptions:Cq});function CW(e){return"string"==typeof e.value&&""===e.raw.trim()}function CK(e,t,n){if(t.type===_q.AST_NODE_TYPES.JSXElement&&null!=EL(e,t)("key"))return;if(Eq(e,t.parent)&&e.report({messageId:"uselessFragment",node:t,data:{reason:"placed inside a host component"},fix:CH(e,t)}),0===t.children.length)return void e.report({messageId:"uselessFragment",node:t,data:{reason:"contains less than two children"},fix:CH(e,t)});let r=xA([_q.AST_NODE_TYPES.JSXElement,_q.AST_NODE_TYPES.JSXFragment])(t.parent);switch(!0){case n&&!r&&1===t.children.length&&EV(t.children.at(0)):return;case!n&&r:case!n&&!r&&1===t.children.length:e.report({messageId:"uselessFragment",node:t,data:{reason:"contains less than two children"},fix:CH(e,t)});return}let i=t.children.filter(e=>!(EV(e)&&CW(e)&&e.raw.includes("\n"))),a=i.at(0);(0===i.length||1===i.length&&a?.type!==_q.AST_NODE_TYPES.JSXExpressionContainer)&&e.report({messageId:"uselessFragment",node:t,data:{reason:"contains less than two children"},fix:CH(e,t)})}function CH(e,t){var n,r;return(n=e,(r=t).parent.type===_q.AST_NODE_TYPES.JSXElement||r.parent.type===_q.AST_NODE_TYPES.JSXFragment?Eq(n,r.parent):0!==r.children.length&&!r.children.some(e=>EV(e)&&!CW(e)||xw(_q.AST_NODE_TYPES.JSXExpressionContainer)(e)))?n=>{let r,i,a,o,s=t.type===_q.AST_NODE_TYPES.JSXFragment?t.openingFragment:t.openingElement,l=t.type===_q.AST_NODE_TYPES.JSXFragment?t.closingFragment:t.closingElement,c=s.type===_q.AST_NODE_TYPES.JSXOpeningElement&&s.selfClosing?"":e.sourceCode.getText().slice(s.range[1],l?.range[0]);return n.replaceText(t,(r=/^\s*/.exec(c)?.[0]??"",i=/\s*$/.exec(c)?.[0]??"",a=r.includes("\n")?r.length:0,o=i.includes("\n")?c.length-i.length:c.length,c.slice(a,o)))}:null}var CG=PS({meta:{type:"problem",docs:{description:"Enforces destructuring assignment for component props and context.",[Symbol.for("rule_features")]:[]},messages:{preferDestructuringAssignment:"Use destructuring assignment for {{name}}."},schema:[]},name:"prefer-destructuring-assignment",create:function(e){let{ctx:t,listeners:n}=ke(e),r=[];return{...n,MemberExpression(t){if(t.object.type===_q.AST_NODE_TYPES.Identifier&&"name"in t.object){let n=e.sourceCode.getScope(t);r.push([n,t])}},"Program:exit"(n){let i=[...t.getAllComponents(n).values()];function a(e){if(!xD(e))return!1;let t=xH(e);return null!=t&&E8(t.name)&&i.some(t=>t.node===e)}for(let[t,n]of r){let r=t,i=a(r.block);for(;!i&&null!=r.upper&&r.upper!==r;)i=a((r=r.upper).block);if(!i)continue;let o=r.block;if(!("params"in o))continue;let[s,l]=o.params,c=e=>null!=e&&e.type===_q.AST_NODE_TYPES.Identifier&&e.name===n.object.name;c(s)&&e.report({messageId:"preferDestructuringAssignment",node:n,data:{name:"props"}}),c(l)&&e.report({messageId:"preferDestructuringAssignment",node:n,data:{name:"context"}})}}}},defaultOptions:[]}),CX=PS({meta:{type:"problem",docs:{description:"Enforces React is imported via a namespace import.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",messages:{preferNamespaceImport:"Prefer importing React as 'import * as React from \"{{importSource}}\"';"},schema:[]},name:"prefer-namespace-import",create:function(e){let{importSource:t}=_R(e);return{[`ImportDeclaration[source.value="${t}"] ImportDefaultSpecifier`](n){let r=n.parent.specifiers.length>1;e.report({messageId:"preferNamespaceImport",node:r?n:n.parent,data:{importSource:t},fix(i){let a=e.sourceCode.getText(n.parent),o=a.endsWith(";")?";":"",s=n.parent.source.raw.at(0)??"'",l=`import${"type"===n.parent.importKind?" type":""}`,c=`${s}${t}${s}`;if(!r)return i.replaceText(n.parent,`${l} * as ${n.local.name} from ${c}${o}`);let u=a.slice(a.indexOf("{"),a.indexOf("}")+1);return i.replaceText(n.parent,`${l} * as ${n.local.name} from ${c}${o}
399
- ${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]}),CQ=PS({meta:{type:"problem",docs:{description:"Enforces read-only props in components.",[Symbol.for("rule_features")]:["TSC","EXP"]},messages:{preferReadOnlyProps:"A function component's props should be read-only."},schema:[]},name:"prefer-read-only-props",create:function(e){let t=h1.ESLintUtils.getParserServices(e,!1),{ctx:n,listeners:r}=ke(e);return{...r,"Program:exit"(r){for(let[,i]of n.getAllComponents(r)){if(null==i.id||null==i.name)continue;let[n]=i.node.params;null!=n&&!function(e,t){if(k5.isTypeReadonly(e.program,t))return!0;try{let n=function(e,t,n=[{type:{from:"lib",name:"Map"},to:sy.Mutable},{type:{from:"lib",name:"Set"},to:sy.Mutable},{type:{from:"lib",name:"Date"},to:sy.Mutable},{type:{from:"lib",name:"URL"},to:sy.Mutable},{type:{from:"lib",name:"URLSearchParams"},to:sy.Mutable}],r=!0,i=sy.Immutable,a=function(e,t,n,r,i=[]){var a,o,s,l;let c;if(0===r.length)return!1;let u=!1,_=function(e,t){if(null===t){let t="target"in e?e.target:e;return t.aliasSymbol?.getName()??null}return yf.isTypeAliasDeclaration(t.parent)?t.parent.name.getText():null}(t,n);if(null!==_){let e=e=>"string"==typeof e?e===_:e.test(_);if(i.some(e))return!1;u||=r.some(e)}let d=(a=e,o=t,null===(s=n)?a.getTypeChecker().typeToString(o,void 0,yf.TypeFormatFlags.AddUndefined|yf.TypeFormatFlags.NoTruncation|yf.TypeFormatFlags.OmitParameterModifiers|yf.TypeFormatFlags.UseFullyQualifiedType|yf.TypeFormatFlags.WriteArrayAsGenericType|yf.TypeFormatFlags.WriteArrowStyleSignature|yf.TypeFormatFlags.WriteTypeArgumentsOfSignature):s.getText()),p=e=>"string"==typeof e?e===d:e.test(d);if(i.some(p))return!1;u||=r.some(p);let f=(l=d,c=/^([^<]+)<.+>$/u.exec(l),c?.[1]??null);if(null!==f){let e=e=>"string"==typeof e?e===f:e.test(f);if(i.some(e))return!1;u||=r.some(e)}if(e.getTypeChecker().isArrayType(t)&&null!==n)if(yf.isTypeOperatorNode(n)&&n.operator===yf.SyntaxKind.ReadonlyKeyword||yf.isTypeOperatorNode(n.parent)&&n.parent.operator===yf.SyntaxKind.ReadonlyKeyword){let e=e=>"string"==typeof e&&"ReadonlyArray"===e;if(i.some(e))return!1;u||=r.some(e)}else{let e=e=>"string"==typeof e&&"Array"===e;if(i.some(e))return!1;u||=r.some(e)}return u}){let o=Object.hasOwn(t,"kind"),s=o?e.getTypeChecker().getTypeFromTypeNode(t):t;return function(e,t,n,r,i,a){let o,s=!0===r?Pd:!1===r?new WeakMap:r,l={program:e,overrides:n,cache:s,immutabilityLimits:{min:sy.Mutable,max:i},typeMatchesPatternSpecifier:a},c=[Pp(t)],u=sy.Unknown;do{switch((o=c.pop()).stage){case 0:!function(e,t,n){var r,i,a,o,s,l,c,u;let _,d,p=(r=e.program,i=e.cache,a=n.typeData,_=r.getTypeChecker(),d=a.typeNode??_.getRecursionIdentity(a.type),i.get(d));if(void 0!==p){n.immutability=p;return}let f=(o=n.typeData,e.overrides.find(t=>{var n,r,i;return n=e.program,r=t.type,i=e.typeMatchesPatternSpecifier,!vl(o.type)&&("string"==typeof r||r instanceof RegExp?Pu(n,r,o,i):function(e,t,n){var r,i,a,o,s,l,c;let[u,_]=function(e){let t=e.getSymbol()?.getDeclarations()??[],n=t.map(e=>e.getSourceFile());return[t,n]}(n);switch(t.from){case"lib":return Pn(e,_);case"package":return r=e,i=u,a=_,o=t.package,(Pr(i,o)||Pi(r,a,o))&&!Pn(e,_);case"file":return function(e,t,n){let r=e.getCurrentDirectory(),i=yf.getEffectiveTypeRoots(e.getCompilerOptions(),e),a=void 0===i?t:t.filter(e=>!i.some(t=>e.path.startsWith(t)));return void 0===n?a.some(e=>!e.path.includes("/node_modules/")):a.some(e=>{let t=function(e){let t=sJ.normalize(e),n=t.endsWith(sJ.sep)?t.slice(0,-1):t;return void 0===yf.sys||yf.sys.useCaseSensitiveFileNames?n:n.toLowerCase()}(e.path);return t.startsWith(r)&&(Pt.isMatch(t,n)||Pt.isMatch(`./${sJ.relative(r,t)}`,n))})}(e,_,t.path)&&!Pn(e,_)&&(s=e,l=u,c=_,!(Pr(l,void 0)||Pi(s,c,void 0)))}}(n,r,o.type)&&Pu(n,r,o,i))}));if(f?.to!==void 0){if(void 0===f.from){n.immutability=f.to,Pc(e.program,e.cache,n.typeData,n.immutability);return}t.push({taskState:n,override:f,stage:6})}if(Pc(e.program,e.cache,n.typeData,n.immutability),vm(n.typeData.type))return function(e,t){let n=t.typeData.type.types.map((e,n)=>Pp(Pl(e,null!==t.typeData.typeNode&&yf.isUnionTypeNode(t.typeData.typeNode)?t.typeData.typeNode.types[n]:void 0)));e.push(Pf(t,n,Pa),...n)}(t,n);if(vp(n.typeData.type)){return l=e,c=t,u=n,Ph(l,c,u)}if(v_(n.typeData.type))return function(e,t,n){let r=e.program.getTypeChecker(),i=[n.typeData.type.root.node.trueType,n.typeData.type.root.node.falseType].map(e=>Pp(Pl(r.getTypeFromTypeNode(e),e)));t.push(Pf(n,i,Pa),...i)}(e,t,n);if((s=n.typeData.type).getCallSignatures().length>0&&0===s.getProperties().length)return n.immutability=sy.Immutable;let m=e.program.getTypeChecker();m.isTupleType(n.typeData.type)?function(e,t,n){if(!n.typeData.type.target.readonly){n.immutability=sy.Mutable;return}Pg(e,t,n)}(e,t,n):m.isArrayType(n.typeData.type)?Pg(e,t,n):vf(n.typeData.type)?Ph(e,t,n):n.immutability=sy.Immutable}(l,c,o);break;case 1:var _,d=o;d.immutability=d.children[0].immutability;for(let e=1;e<d.children.length;e++)d.immutability=d.childrenReducer(d.immutability,d.children[e].immutability);break;case 3:!function(e,t){e.push(Pm(t,()=>{t.stage=4,e.push(t)})),Py(e,t)}(c,o);break;case 4:!function(e,t,n){let[r,i]=vp(n.typeData.type)?[n.typeData.type.types,n.typeData.typeNode?.types]:[[n.typeData.type],null===n.typeData.typeNode?void 0:[n.typeData.typeNode]];t.push(Pm(n,()=>{n.stage=7,n.immutability=Po(n.limits.min,n.limits.max),t.push(n)}),Pm(n,()=>{let a=r.flatMap((t,r)=>Pv(e,n,yf.IndexKind.Number,Pl(t,i?.[r])));a.length>0&&t.push(Pf(n,a,Po),...a)}));let a=r.flatMap((t,r)=>Pv(e,n,yf.IndexKind.String,Pl(t,i?.[r])));a.length>0&&t.push(Pf(n,a,Po),...a)}(l,c,o);break;case 6:((_=o).override.from<=_.taskState.immutability&&_.taskState.immutability<=_.override.to||_.override.from>=_.taskState.immutability&&_.taskState.immutability>=_.override.to)&&(_.taskState.immutability=_.override.to),o=o.taskState;break;case 5:(function(e,t){if(t!==sy.Calculating&&(e.taskState.limits.max=Pa(e.taskState.limits.max,t),e.taskState.limits.min>=e.taskState.limits.max)){e.taskState.immutability=e.taskState.limits.min;return}e.notDoneAction()})(o,u),o=o.taskState}o.immutability!==sy.Calculating&&(Pc(e,s,o.typeData,o.immutability),u=o.immutability)}while(c.length>0);return o.immutability===sy.Calculating?sy.Unknown:o.immutability}(e,Pl(s,o?t:void 0),n,r,i,a)}(e.program,t);return Ps(n)||n>=sy.Immutable||n>=sy.ReadonlyShallow||n>=sy.ReadonlyDeep}catch{return!0}}(t,k5.getConstrainedTypeAtLocation(t,n))&&e.report({messageId:"preferReadOnlyProps",node:n})}}}},defaultOptions:[]});let CZ=["Boolean","String","Number"];var C0=PS({meta:{type:"problem",docs:{description:"Enforces function calls made inside `useState` to be wrapped in an `initializer function`.",[Symbol.for("rule_features")]:["EXP"]},messages:{preferUseStateLazyInitialization:"To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'."},schema:[]},name:"prefer-use-state-lazy-initialization",create:function(e){return{CallExpression(t){if(!ED(t))return;let[n]=t.arguments;if(null!=n){for(let t of xW(n))!("name"in t.callee)||CZ.includes(t.callee.name)||null==xz(t,EP)&&e.report({messageId:"preferUseStateLazyInitialization",node:t});for(let t of xK(n))!("name"in t.callee)||ES(t.callee.name)||CZ.includes(t.callee.name)||null==xz(t,EP)&&e.report({messageId:"preferUseStateLazyInitialization",node:t})}}}},defaultOptions:[]});let C1="no-forbidden-props",C2=v6(C1),C3=[{forbid:[{prop:"/_/"}]}],C6={meta:{name:"eslint-plugin-react-x",version:"2.3.4"},rules:{"jsx-dollar":PY,"jsx-key-before-spread":PU,"jsx-no-comment-textnodes":PB,"jsx-no-duplicate-props":PV,"jsx-no-iife":PJ,"jsx-no-undef":Pz,"jsx-shorthand-boolean":P$,"jsx-shorthand-fragment":PK,"jsx-uses-react":PH,"jsx-uses-vars":PX,"no-access-state-in-setstate":PQ,"no-array-index-key":P0,"no-children-count":P1,"no-children-for-each":P2,"no-children-map":P3,"no-children-only":P6,"no-children-prop":P4,"no-children-to-array":P8,"no-class-component":P5,"no-clone-element":P7,"no-component-will-mount":P9,"no-component-will-receive-props":Ce,"no-component-will-update":Ct,"no-context-provider":Cn,"no-create-ref":Cr,"no-default-props":Ci,"no-direct-mutation-state":Co,"no-duplicate-key":Cs,"no-forward-ref":Cl,"no-implicit-key":Cc,"no-leaked-conditional-rendering":Cu,"no-missing-component-display-name":C_,"no-missing-context-display-name":Cd,"no-missing-key":Cp,"no-misused-capture-owner-stack":Cf,"no-nested-component-definitions":Cg,"no-nested-lazy-component-declarations":Ch,"no-prop-types":Cy,"no-redundant-should-component-update":Cv,"no-set-state-in-component-did-mount":Cb,"no-set-state-in-component-did-update":CT,"no-set-state-in-component-will-update":CS,"no-string-refs":Cx,"no-unnecessary-key":CE,"no-unnecessary-use-callback":CP,"no-unnecessary-use-memo":CC,"no-unnecessary-use-prefix":CA,"no-unsafe-component-will-mount":CD,"no-unsafe-component-will-receive-props":CN,"no-unsafe-component-will-update":CF,"no-unstable-context-value":CO,"no-unstable-default-props":CI,"no-unused-class-component-members":CR,"no-unused-props":Cj,"no-unused-state":CV,"no-use-context":CJ,"no-useless-forward-ref":Cz,"no-useless-fragment":C$,"prefer-destructuring-assignment":CG,"prefer-namespace-import":CX,"prefer-read-only-props":CQ,"prefer-use-state-lazy-initialization":C0,"no-forbidden-props":PS({meta:{type:"problem",defaultOptions:[...C3],deprecated:{deprecatedSince:"2.3.2",message:"This rule is deprecated and will be removed in future versions.",replacedBy:[{rule:{name:"no-restricted-syntax",url:"https://eslint.org/docs/latest/rules/no-restricted-syntax"}}]},docs:{description:"Disallow certain props on components."},messages:{[C2]:'Prop "{{name}}" is forbidden.'},schema:[{type:"object",additionalProperties:!1,properties:{forbid:{type:"array",items:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{excludedNodes:{type:"array",items:{type:"string"},uniqueItems:!0},prop:{type:"string"}},required:["prop"]},{type:"object",additionalProperties:!1,properties:{includedNodes:{type:"array",items:{type:"string"},uniqueItems:!0},prop:{type:"string"}},required:["prop"]}]}}}}]},name:C1,create:function(e,[t]){let{forbid:n=[{prop:"/_/"}]}=t;return{JSXOpeningElement(t){let r=null;for(let i of(t.name.type===_q.AST_NODE_TYPES.JSXIdentifier?r=t.name.name:t.name.type===_q.AST_NODE_TYPES.JSXNamespacedName&&(r=t.name.name.name),t.attributes)){if(i.type===_q.AST_NODE_TYPES.JSXSpreadAttribute)continue;let t=i.name.name;if("string"==typeof t)for(let a of n)!("string"!=typeof a&&null!=r&&("excludedNodes"in a&&a.excludedNodes.includes(r)||"includedNodes"in a&&!a.includedNodes.includes(r)))&&_F("string"==typeof a?a:a.prop).test(t)&&e.report({messageId:C2,node:i,data:{name:t}})}}}},defaultOptions:C3})}};var C4=PT({name:()=>C8,plugins:()=>C7,rules:()=>C5,settings:()=>C9});let C8="react-x/recommended",C5={"react-x/jsx-key-before-spread":"warn","react-x/jsx-no-comment-textnodes":"warn","react-x/jsx-no-duplicate-props":"warn","react-x/jsx-uses-react":"warn","react-x/jsx-uses-vars":"warn","react-x/no-access-state-in-setstate":"error","react-x/no-array-index-key":"warn","react-x/no-children-count":"warn","react-x/no-children-for-each":"warn","react-x/no-children-map":"warn","react-x/no-children-only":"warn","react-x/no-children-to-array":"warn","react-x/no-clone-element":"warn","react-x/no-component-will-mount":"error","react-x/no-component-will-receive-props":"error","react-x/no-component-will-update":"error","react-x/no-context-provider":"warn","react-x/no-create-ref":"error","react-x/no-default-props":"error","react-x/no-direct-mutation-state":"error","react-x/no-duplicate-key":"error","react-x/no-forward-ref":"warn","react-x/no-implicit-key":"warn","react-x/no-missing-key":"error","react-x/no-nested-component-definitions":"error","react-x/no-nested-lazy-component-declarations":"error","react-x/no-prop-types":"error","react-x/no-redundant-should-component-update":"error","react-x/no-set-state-in-component-did-mount":"warn","react-x/no-set-state-in-component-did-update":"warn","react-x/no-set-state-in-component-will-update":"warn","react-x/no-string-refs":"error","react-x/no-unnecessary-use-prefix":"warn","react-x/no-unsafe-component-will-mount":"warn","react-x/no-unsafe-component-will-receive-props":"warn","react-x/no-unsafe-component-will-update":"warn","react-x/no-use-context":"warn","react-x/no-useless-forward-ref":"warn","react-x/prefer-use-state-lazy-initialization":"warn"},C7={"react-x":C6},C9={"react-x":_L},we={"react-x/jsx-no-duplicate-props":"off","react-x/jsx-no-undef":"off","react-x/jsx-uses-react":"off","react-x/jsx-uses-vars":"off"};var wt=PT({name:()=>wn,plugins:()=>wi,rules:()=>wr,settings:()=>wa});let wn="react-x/recommended-typescript",wr={...C5,...we},wi={...C7},wa={...C9};var wo=PT({name:()=>ws,plugins:()=>wc,rules:()=>wl,settings:()=>wu});let ws="react-x/recommended-type-checked",wl={...wr,"react-x/no-leaked-conditional-rendering":"error"},wc={...wi},wu={...wa};var w_=PT({name:()=>wd,plugins:()=>wf,rules:()=>wp,settings:()=>wm});let wd="react-x/strict",wp={...C5,"react-x/jsx-no-iife":"error","react-x/no-children-prop":"error","react-x/no-class-component":"error","react-x/no-misused-capture-owner-stack":"error","react-x/no-unnecessary-key":"warn","react-x/no-unnecessary-use-callback":"warn","react-x/no-unnecessary-use-memo":"warn","react-x/no-unstable-context-value":"warn","react-x/no-unstable-default-props":"warn","react-x/no-unused-class-component-members":"warn","react-x/no-unused-state":"warn","react-x/no-useless-fragment":"warn","react-x/prefer-destructuring-assignment":"warn"},wf={...C7},wm={...C9};var wg=PT({name:()=>wh,plugins:()=>wv,rules:()=>wy,settings:()=>wb});let wh="react-x/strict-typescript",wy={...wp,...we},wv={...wf},wb={...wm};var wT=PT({name:()=>wS,plugins:()=>wE,rules:()=>wx,settings:()=>wk});let wS="react-x/strict-type-checked",wx={...wy,"react-x/no-leaked-conditional-rendering":"error","react-x/no-unused-props":"warn"},wE={...wv},wk={...wb},{toFlatConfig:wP}=_g("react-x",C6);var wC={...C6,configs:{recommended:wP(C4),"recommended-typescript":wP(wt),"recommended-type-checked":wP(wo),strict:wP(w_),"strict-typescript":wP(wg),"strict-type-checked":wP(wT)}},ww=Object.defineProperty,wA=(e=>{let t={};for(var n in e)ww(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wD,rules:()=>wN});let wD="react-hooks-extra/recommended",wN={"react-hooks-extra/no-direct-set-state-in-use-effect":"warn"};function wF(e){if(e.type!==_q.AST_NODE_TYPES.VariableDeclarator||e.id.type!==_q.AST_NODE_TYPES.Identifier)return!1;var t=e.init;if(t?.type!==_q.AST_NODE_TYPES.CallExpression)return!1;switch(t.callee.type){case _q.AST_NODE_TYPES.Identifier:return ES(t.callee.name);case _q.AST_NODE_TYPES.MemberExpression:return t.callee.property.type===_q.AST_NODE_TYPES.Identifier&&ES(t.callee.property.name);default:return!1}}let wO={meta:{name:"eslint-plugin-react-hooks-extra",version:"2.3.4"},rules:{"no-direct-set-state-in-use-effect":h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/hooks-extra-${e}`})({meta:{type:"problem",docs:{description:"Disallow direct calls to the `set` function of `useState` in `useEffect`.",[Symbol.for("rule_features")]:["EXP"]},messages:{noDirectSetStateInUseEffect:"Do not call the 'set' function '{{name}}' of 'useState' directly in 'useEffect'."},schema:[]},name:"no-direct-set-state-in-use-effect",create:function(e){if(!/use\w*Effect/u.test(e.sourceCode.text))return{};let t=[],n={current:null},r=[],i=[],a=new WeakMap,o=new WeakMap,s=new Map,l=new WeakMap,c=t=>e.sourceCode.getText(t);function u(e){return e.type===_q.AST_NODE_TYPES.CallExpression?xB(e.callee,c):xB(e,c)}function _(t,n){let r=x5(x9(t,e.sourceCode.getScope(t)),0);if(null==r||r.type!==_q.AST_NODE_TYPES.CallExpression||!ED(r))return!1;let i=r.parent;return!("id"in i)||i.id?.type!==_q.AST_NODE_TYPES.ArrayPattern||i.id.elements.findIndex(e=>e?.type===_q.AST_NODE_TYPES.Identifier&&e.name===t.name)===n}function d(t){switch(t.callee.type){case _q.AST_NODE_TYPES.CallExpression:{let{callee:n}=t.callee;if(n.type!==_q.AST_NODE_TYPES.MemberExpression||!("name"in n.object))return!1;let r=n.property.type===_q.AST_NODE_TYPES.Identifier&&"at"===n.property.name,[i]=t.callee.arguments;if(!r||null==i)return!1;return x4.getStaticValue(i,e.sourceCode.getScope(t))?.value===1&&_(n.object)}case _q.AST_NODE_TYPES.Identifier:return _(t.callee,1);case _q.AST_NODE_TYPES.MemberExpression:{if(!("name"in t.callee.object))return!1;let n=t.callee.property;return x4.getStaticValue(n,e.sourceCode.getScope(t))?.value===1&&_(t.callee.object,1)}default:return!1}}return{":function"(e){let r=function(e){let t=xz(e,e=>!xj(e))??e.parent;switch(!0){case e.async:case t.type===_q.AST_NODE_TYPES.CallExpression&&x1(t):return"deferred";case e.type!==_q.AST_NODE_TYPES.FunctionDeclaration&&t.type===_q.AST_NODE_TYPES.CallExpression&&t.callee===e:return"immediate";case e.parent?.type===_q.AST_NODE_TYPES.CallExpression&&e.parent.callee!==e&&Ek(e.parent):return"setup";default:return"other"}}(e);t.push({kind:r,node:e}),"setup"===r&&(n.current=e)},":function:exit"(e){let{kind:r}=t.at(-1)??{};"setup"===r&&n.current===e&&(n.current=null),t.pop()},CallExpression(o){let s=n.current,c=t.at(-1);null!=c&&!c.node.async&&ls.match(ls.match(o).when(ED,()=>"useState").when(Ek,()=>"useEffect").when(d,()=>"setState").when(x1,()=>"then").otherwise(()=>"other")).with("setState",()=>{switch(!0){case"deferred"===c.kind:case c.node.async:break;case c.node===s:case"immediate"===c.kind&&xz(c.node,xD)===s:e.report({messageId:"noDirectSetStateInUseEffect",node:o,data:{name:e.sourceCode.getText(o.callee)}});return;default:{let e=xz(o,wF)?.init;null==e?la(a,c.node,()=>[]).push(o):la(l,e,()=>[]).push(o)}}}).with("useEffect",()=>{xD(o.arguments.at(0))||r.push(...function e(t){let n=[];if(t.type===_q.AST_NODE_TYPES.Identifier&&n.push(t),"arguments"in t){let r=t.arguments.map(e).flat(1);n.push(...r)}if("elements"in t){let r=t.elements.filter(e=>null!=e).map(e).flat(1);n.push(...r)}if("properties"in t){let r=t.properties.map(e).flat(1);n.push(...r)}if("expressions"in t){let r=t.expressions.map(e).flat(1);n.push(...r)}if("left"in t){let r=e(t.left);n.push(...r)}if("right"in t){let r=e(t.right);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.Property){let r=e(t.value);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.SpreadElement){let r=e(t.argument);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.MemberExpression){let r=e(t.object);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.UnaryExpression){let r=e(t.argument);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.ChainExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSNonNullExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSAsExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSSatisfiesExpression){let r=e(t.expression);n.push(...r)}return n}(o))}).with("other",()=>{c.node===s&&i.push(o)}).otherwise(lt)},Identifier(e){if((e.parent.type!==_q.AST_NODE_TYPES.CallExpression||e.parent.callee!==e)&&_(e,1))switch(e.parent.type){case _q.AST_NODE_TYPES.ArrowFunctionExpression:{let t=e.parent.parent;if(t.type!==_q.AST_NODE_TYPES.CallExpression||!EA(t))break;let n=xz(t,wF)?.init;null!=n&&la(o,n,()=>[]).push(e);break}case _q.AST_NODE_TYPES.CallExpression:if(e!==e.parent.arguments.at(0))break;if(EC(e.parent)){let t=xz(e.parent,wF)?.init;null!=t&&la(o,t,()=>[]).push(e);break}Ek(e.parent)&&la(s,e.parent,()=>[]).push(e)}},"Program:exit"(){let t=(e,t)=>{let n=x5(x9(e,t),0);switch(n?.type){case _q.AST_NODE_TYPES.ArrowFunctionExpression:case _q.AST_NODE_TYPES.FunctionDeclaration:case _q.AST_NODE_TYPES.FunctionExpression:return a.get(n)??[];case _q.AST_NODE_TYPES.CallExpression:return l.get(n)??o.get(n)??[]}return[]};for(let[,t]of s)for(let n of t)e.report({messageId:"noDirectSetStateInUseEffect",node:n,data:{name:n.name}});for(let{callee:n}of i){if(!("name"in n))continue;let{name:r}=n;for(let i of t(r,e.sourceCode.getScope(n)))e.report({messageId:"noDirectSetStateInUseEffect",node:i,data:{name:u(i)}})}for(let n of r)for(let r of t(n.name,e.sourceCode.getScope(n)))e.report({messageId:"noDirectSetStateInUseEffect",node:r,data:{name:u(r)}})}}},defaultOptions:[]})}},{toFlatConfig:wI}=_g("react-hooks-extra",wO);var wL={...wO,configs:{recommended:wI(wA)}},wM=Object.defineProperty,wR=(e=>{let t={};for(var n in e)wM(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wj,rules:()=>wY});let wj="react-naming-convention/recommended",wY={"react-naming-convention/context-name":"warn","react-naming-convention/use-state":"warn"},wU=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/naming-convention-${e}`}),wB=[{allowAllCaps:!1,excepts:[],rule:"PascalCase"}];var wV=wU({meta:{type:"problem",defaultOptions:[...wB],docs:{description:"Enforces naming conventions for components."},messages:{invalidComponentName:"A component name '{{name}}' does not match {{rule}}."},schema:[{anyOf:[{type:"string",enum:["PascalCase","CONSTANT_CASE"]},{type:"object",additionalProperties:!1,properties:{allowAllCaps:{type:"boolean"},excepts:{type:"array",items:{type:"string",format:"regex"}},rule:{type:"string",enum:["PascalCase","CONSTANT_CASE"]}}}]}]},name:"component-name",create:function(e){let t,n,r=(t=e.options[0],n=wB[0],null==t?n:{...n,..."string"==typeof t?{rule:t}:{...t,excepts:t.excepts?.map(e=>_F(e))??[]}}),{rule:i}=r,a=ke(e),o=kn();return{...a.listeners,...o.listeners,"Program:exit"(t){let n=a.ctx.getAllComponents(t),s=o.ctx.getAllComponents(t);for(let{node:t}of n.values()){let n=xH(t);if(n?.name==null)continue;let a=n.name;wJ(a,r)||e.report({messageId:"invalidComponentName",node:n,data:{name:a,rule:i}})}for(let{node:t}of s.values()){let n=xP(t);if(n?.name==null)continue;let a=n.name;wJ(a,r)||e.report({messageId:"invalidComponentName",node:n,data:{name:a,rule:i}})}}}},defaultOptions:wB});function wJ(e,t){if(null==e||t.excepts.some(t=>t.test(e)))return!0;let n=e.split(".").at(-1)??e;switch(t.rule){case"CONSTANT_CASE":return _S.test(n);case"PascalCase":if(n.length>3&&/^[A-Z]+$/u.test(n))return t.allowAllCaps;return _y.test(n)}}var wz=wU({meta:{type:"problem",docs:{description:"Enforces context name to be a valid component name with the suffix `Context`."},messages:{invalidContextName:"A context name must be a valid component name with the suffix 'Context'."},schema:[]},name:"context-name",create:function(e){return e.sourceCode.text.includes("createContext")?{CallExpression(t){if(!Eg(e,t))return;let n=EZ(t);if(null==n)return;let r=ls.match(n).with({type:_q.AST_NODE_TYPES.Identifier,name:ls.P.select()},s9).with({type:_q.AST_NODE_TYPES.MemberExpression,property:{name:ls.P.select(ls.P.string)}},s9).otherwise(()=>null);null!=r&&_A.test(r)&&r.endsWith("Context")||e.report({messageId:"invalidContextName",node:n})}}:{}},defaultOptions:[]});let wq=[{excepts:["index",String.raw`/^_/`,String.raw`/^\$/`,String.raw`/^[0-9]+$/`,String.raw`/^\[[^\]]+\]$/`],rule:"PascalCase"}];var w$=wU({meta:{type:"problem",defaultOptions:[...wq],docs:{description:"Enforces consistent file naming conventions."},messages:{empty:"A file must have non-empty name.",invalidCase:"A file with name '{{name}}' does not match {{rule}}. Rename it to '{{suggestion}}'."},schema:[{anyOf:[{type:"string",enum:["PascalCase","camelCase","kebab-case","snake_case"]},{type:"object",additionalProperties:!1,properties:{excepts:{type:"array",items:{type:"string",format:"regex"}},extensions:{type:"array",items:{type:"string"},uniqueItems:!0},rule:{type:"string",enum:["PascalCase","camelCase","kebab-case","snake_case"]}}}]}]},name:"filename",create:function(e){let t=e.options[0]??wq[0],n="string"==typeof t?t:t.rule??"PascalCase",r="string"==typeof t?[]:(t.excepts??[]).map(e=>_F(e));return{Program(t){let[i="",...a]=sk.basename(e.filename).split(".");0===i.length?e.report({messageId:"empty",node:t}):!function(e,t=n,i=r){if(i.some(t=>t.test(e)))return!0;let a=e.match(/[\w.-]/gu)?.join("")??"";return 0===a.length||ls.match(t).with("PascalCase",()=>_y.test(a)).with("camelCase",()=>_v.test(a)).with("kebab-case",()=>_b.test(a)).with("snake_case",()=>_T.test(a)).exhaustive()}(i)&&e.report({messageId:"invalidCase",node:t,data:{name:e.filename,rule:n,suggestion:[function(e,t=n){return ls.match(t).with("PascalCase",()=>v3(e)).with("camelCase",()=>v6(e)).with("kebab-case",()=>vX(v4(v2(e),"-"))).with("snake_case",()=>v8(e)).exhaustive()}(i),...a].join(".")}})}}},defaultOptions:wq});let wW=[{allow:"as-needed",extensions:[".jsx",".tsx"],ignoreFilesWithoutCode:!1}],wK={meta:{name:"eslint-plugin-react-naming-convention",version:"2.3.4"},rules:{"component-name":wV,"context-name":wz,filename:w$,"filename-extension":wU({meta:{type:"problem",defaultOptions:[...wW],docs:{description:"Enforces consistent file naming conventions."},messages:{missingJSXExtension:"Use {{extensions}} file extension for JSX files.",unnecessaryJSXExtension:"Do not use {{extensions}} file extension for files without JSX."},schema:[{anyOf:[{type:"string",enum:["always","as-needed"]},{type:"object",additionalProperties:!1,properties:{allow:{type:"string",enum:["always","as-needed"]},extensions:{type:"array",items:{type:"string"},uniqueItems:!0},ignoreFilesWithoutCode:{type:"boolean"}}}]}]},name:"filename-extension",create:function(e){let t=e.options[0]??wW[0],n=s7(t)?t.allow:t,r=s7(t)&&"extensions"in t?t.extensions:wW[0].extensions,i=r.map(e=>`'${e}'`).join(", "),a=e.filename,o=!1;return{JSXElement(){o=!0},JSXFragment(){o=!0},"Program:exit"(s){let l=a.slice(a.lastIndexOf(".")),c=r.includes(l);if(o&&!c)return void e.report({messageId:"missingJSXExtension",node:s,data:{extensions:i}});let u=s.body.length>0,_=s7(t)&&!0===t.ignoreFilesWithoutCode;(u||!_)&&!o&&c&&"as-needed"===n&&e.report({messageId:"unnecessaryJSXExtension",node:s,data:{extensions:i}})}}},defaultOptions:wW}),"use-state":wU({meta:{type:"problem",docs:{description:"Enforces destructuring and symmetric naming of `useState` hook value and setter.",[Symbol.for("rule_features")]:[]},messages:{invalidAssignment:"useState should be destructured into a value and setter pair, e.g., const [state, setState] = useState(...).",invalidSetterName:"The setter should be named 'set' followed by the capitalized state variable name, e.g., 'setState' for 'state'."},schema:[]},name:"use-state",create:function(e){return{CallExpression(t){if(!ED(t))return;if(t.parent.type!==_q.AST_NODE_TYPES.VariableDeclarator)return void e.report({messageId:"invalidAssignment",node:t});let n=EZ(t);if(n?.type!==_q.AST_NODE_TYPES.ArrayPattern)return void e.report({messageId:"invalidAssignment",node:n??t});let[r,i]=n.elements;if(null==r||null==i)return void e.report({messageId:"invalidAssignment",node:n});let a=ls.match(i).with({type:_q.AST_NODE_TYPES.Identifier},e=>e.name).otherwise(()=>null);if(null==a||!a.startsWith("set"))return void e.report({messageId:"invalidSetterName",node:i});let o=ls.match(r).with({type:_q.AST_NODE_TYPES.Identifier},({name:e})=>v8(e)).with({type:_q.AST_NODE_TYPES.ObjectPattern},({properties:e})=>e.reduce((e,t)=>t.type===_q.AST_NODE_TYPES.Property&&t.key.type===_q.AST_NODE_TYPES.Identifier?[...e,t.key.name]:e,[]).join("_")).otherwise(()=>null);null==o?e.report({messageId:"invalidSetterName",node:r}):v8(a)!==`set_${o}`&&e.report({messageId:"invalidSetterName",node:i})}}},defaultOptions:[]})}},{toFlatConfig:wH}=_g("react-naming-convention",wK);var wG={...wK,configs:{recommended:wH(wR)}},wX=Object.defineProperty,wQ=(e=>{let t={};for(var n in e)wX(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wZ,rules:()=>w0,settings:()=>w1});let wZ="react-web-api/recommended",w0={"react-web-api/no-leaked-event-listener":"warn","react-web-api/no-leaked-interval":"warn","react-web-api/no-leaked-resize-observer":"warn","react-web-api/no-leaked-timeout":"warn"},w1={"react-x":_L},w2=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/web-api-${e}`}),w3={capture:!1,signal:e};function w6(t,n){return function t(r){switch(r.type){case h1.AST_NODE_TYPES.Identifier:{let e=x5(x9(r,n),0);if(e?.type===h1.AST_NODE_TYPES.ObjectExpression)return t(e);return w3}case h1.AST_NODE_TYPES.Literal:return{...w3,capture:!!r.value};case h1.AST_NODE_TYPES.ObjectExpression:{let t=!!function(t,r=e=>!0){if(t?.type!==h1.AST_NODE_TYPES.Property)return e;let{value:i}=t,a=i;return r(a=i.type===h1.AST_NODE_TYPES.Literal?i.value:x4.getStaticValue(i,n)?.value)?a:e}(Ee("capture",r.properties,n)),i=Ee("signal",r.properties,n);return{capture:t,signal:i?.type===h1.AST_NODE_TYPES.Property?function t(n,r){if(null==n)return e;switch(n.type){case h1.AST_NODE_TYPES.Identifier:return t(x5(x9(n,r),0),r);case h1.AST_NODE_TYPES.MemberExpression:return n;default:return e}}(i.value,n):e}}default:return w3}}(t)}function w4(e){return e?.type===h1.AST_NODE_TYPES.NewExpression&&e.callee.type===h1.AST_NODE_TYPES.Identifier&&"ResizeObserver"===e.callee.name}function w8(e,t){switch(!0){case t.type===h1.AST_NODE_TYPES.Identifier:return w4(x5(x9(t,e.sourceCode.getScope(t)),0));case t.type===h1.AST_NODE_TYPES.MemberExpression:return w8(e,t.object);default:return!1}}let w5={meta:{name:"eslint-plugin-react-web-api",version:"2.3.4"},rules:{"no-leaked-event-listener":w2({meta:{type:"problem",docs:{description:"Prevents leaked `addEventListener` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedRemoveEventListenerInCleanup:"An 'addEventListener' in '{{effectMethodKind}}' should have a corresponding 'removeEventListener' in its cleanup function.",expectedRemoveEventListenerInUnmount:"An 'addEventListener' in 'componentDidMount' should have a corresponding 'removeEventListener' in 'componentWillUnmount' method.",unexpectedInlineFunction:"A/an '{{eventMethodKind}}' should not have an inline listener function."},schema:[]},name:"no-leaked-event-listener",create:function(e){if(!e.sourceCode.text.includes("addEventListener")||!/use\w*Effect|componentDidMount|componentWillUnmount/u.test(e.sourceCode.text))return{};let t=[],n=[],r=[],i=[];function a(e,t){return!0==(e.type===h1.AST_NODE_TYPES.MemberExpression&&t.type===h1.AST_NODE_TYPES.MemberExpression)&&xC(e.object,t.object)}function o(t,n,r){let i=t.arguments.at(1);xD(i)&&null==r.signal&&e.report({messageId:"unexpectedInlineFunction",node:i,data:{eventMethodKind:n}})}return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(a){let s=t.findLast(e=>"other"!==e.kind)?.kind;null==s||ky.has(s)&&ls.match(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("addEventListener","removeEventListener","abort"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("addEventListener","removeEventListener","abort"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(a)).with("addEventListener",t=>{let[r,i,l]=a.arguments;if(null==r||null==i)return;let c=null==l?w3:w6(l,e.sourceCode.getScope(l)),{callee:u}=a;o(a,t,c),n.push({...c,type:r,node:a,callee:u,listener:i,method:"addEventListener",phase:s})}).with("removeEventListener",t=>{let[n,i,l]=a.arguments;if(null==n||null==i)return;let c=null==l?w3:w6(l,e.sourceCode.getScope(l)),{callee:u}=a;o(a,t,c),r.push({...c,type:n,node:a,callee:u,listener:i,method:"removeEventListener",phase:s})}).with("abort",()=>{i.push(a.callee)}).otherwise(()=>null)},"Program:exit"(){for(let t of n){let n=t.signal;if(!(null!=n&&i.some(e=>a(e,n)))&&!r.some(n=>(function(t,n){let{type:r,callee:i,capture:o,listener:s,phase:l}=t,{type:c,callee:u,capture:_,listener:d,phase:p}=n;return!!kv(l,p)&&a(i,u)&&xC(s,d)&&Ei(r,c,[e.sourceCode.getScope(r),e.sourceCode.getScope(c)])&&o===_})(t,n)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedRemoveEventListenerInCleanup",node:t.node,data:{effectMethodKind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedRemoveEventListenerInUnmount",node:t.node});continue}}}}},defaultOptions:[]}),"no-leaked-interval":w2({meta:{type:"problem",docs:{description:"Prevents leaked `setInterval` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedClearIntervalInCleanup:"A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the cleanup function.",expectedClearIntervalInUnmount:"A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the 'componentWillUnmount' method.",expectedIntervalId:"A 'setInterval' must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-interval",create:function(e){if(!e.sourceCode.text.includes("setInterval"))return{};let t=[],n=[],r=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){switch(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setInterval","clearInterval"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setInterval","clearInterval"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(i)){case"setInterval":{let r=t.findLast(e=>"other"!==e.kind);if(null==r||!ky.has(r.kind))break;let a=x8(i);if(null==a){e.report({messageId:"expectedIntervalId",node:i});break}n.push({kind:"interval",node:i,callee:i.callee,phase:r.kind,timerId:a});break}case"clearInterval":{let e=t.findLast(e=>"other"!==e.kind);if(null==e||!ky.has(e.kind))break;let[n]=i.arguments;if(null==n)break;r.push({kind:"interval",node:i,callee:i.callee,phase:e.kind,timerId:n})}}},"Program:exit"(){for(let t of n)if(!r.some(n=>E1(e,t.timerId,n.timerId)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedClearIntervalInCleanup",node:t.node,data:{kind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedClearIntervalInUnmount",node:t.node,data:{kind:"componentDidMount"}});continue}}}},defaultOptions:[]}),"no-leaked-resize-observer":w2({meta:{type:"problem",docs:{description:"Prevents leaked `ResizeObserver` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedDisconnectInControlFlow:"Dynamically added 'ResizeObserver.observe' should be cleared all at once using 'ResizeObserver.disconnect' in the cleanup function.",expectedDisconnectOrUnobserveInCleanup:"A 'ResizeObserver' instance created in 'useEffect' must be disconnected in the cleanup function.",unexpectedFloatingInstance:"A 'ResizeObserver' instance created in component or custom Hook must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-resize-observer",create:function(e){if(!e.sourceCode.text.includes("ResizeObserver"))return{};let t=[],n=[],r=[],i=[],a=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(n){if(n.callee.type!==h1.AST_NODE_TYPES.MemberExpression)return;let o=t.findLast(e=>"other"!==e.kind)?.kind;if(null==o||!ky.has(o))return;let{object:s}=n.callee;ls.match(function(e,t){switch(!0){case t.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("observe","unobserve","disconnect"))(t.callee.name)&&w8(e,t.callee):return t.callee.name;case t.callee.type===h1.AST_NODE_TYPES.MemberExpression&&t.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("observe","unobserve","disconnect"))(t.callee.property.name)&&w8(e,t.callee):return t.callee.property.name;default:return"other"}}(e,n)).with("disconnect",()=>{a.push({kind:"ResizeObserver",node:n,callee:n.callee,method:"disconnect",observer:s,phase:o})}).with("observe",()=>{let[e]=n.arguments;null!=e&&r.push({kind:"ResizeObserver",node:n,callee:n.callee,element:e,method:"observe",observer:s,phase:o})}).with("unobserve",()=>{let[e]=n.arguments;null!=e&&i.push({kind:"ResizeObserver",node:n,callee:n.callee,element:e,method:"unobserve",observer:s,phase:o})}).otherwise(()=>null)},NewExpression(r){let i=t.findLast(e=>"other"!==e.kind);if(null==i||!ky.has(i.kind)||!w4(r))return;let a=EZ(r);null==a?e.report({messageId:"unexpectedFloatingInstance",node:r}):n.push({id:a,node:r,phase:i.kind,phaseNode:i.node})},"Program:exit"(){for(let{id:t,node:o,phaseNode:s}of n){if(a.some(n=>E1(e,n.observer,t)))continue;let n=r.filter(n=>E1(e,n.observer,t)),l=i.filter(n=>E1(e,n.observer,t)),c=e=>e?.type===h1.AST_NODE_TYPES.CallExpression||xR(e),u=e=>e===s;if(n.some(e=>!u(xz(e.node,s5(c,u))))){e.report({messageId:"expectedDisconnectInControlFlow",node:o});continue}for(let t of n)l.some(n=>E1(e,n.element,t.element))||e.report({messageId:"expectedDisconnectOrUnobserveInCleanup",node:t.node})}}}},defaultOptions:[]}),"no-leaked-timeout":w2({meta:{type:"problem",docs:{description:"Prevents leaked `setTimeout` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedClearTimeoutInCleanup:"A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the cleanup function.",expectedClearTimeoutInUnmount:"A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the 'componentWillUnmount' method.",expectedTimeoutId:"A 'setTimeout' must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-timeout",create:function(e){if(!e.sourceCode.text.includes("setTimeout"))return{};let t=[],n=[],r=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){let a=t.findLast(e=>"other"!==e.kind);if(ky.has(a?.kind))switch(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setTimeout","clearTimeout"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setTimeout","clearTimeout"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(i)){case"setTimeout":{let t=x8(i);if(null==t){e.report({messageId:"expectedTimeoutId",node:i});break}n.push({kind:"timeout",node:i,callee:i.callee,phase:a.kind,timerId:t});break}case"clearTimeout":{let[e]=i.arguments;if(null==e)break;r.push({kind:"timeout",node:i,callee:i.callee,phase:a.kind,timerId:e})}}},"Program:exit"(){for(let t of n)if(!r.some(n=>E1(e,t.timerId,n.timerId)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedClearTimeoutInCleanup",node:t.node,data:{kind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedClearTimeoutInUnmount",node:t.node,data:{kind:"componentDidMount"}});continue}}}},defaultOptions:[]})}},{toFlatConfig:w7}=_g("react-web-api",w5);var w9={...w5,configs:{recommended:w7(wQ)}},Ae=Object.defineProperty,At=e=>{let t={};for(var n in e)Ae(t,n,{get:e[n],enumerable:!0});return t};function An(e){let{polymorphicPropName:t}=_R(e);return{resolve(n){let r=Ez(e,n),i={domElementType:r,jsxElementType:r};if(r===r.toLowerCase()||null==t)return i;let a=EL(e,n)(t);if(null!=a){let n=EM(e,a).toStatic(t);if("string"==typeof n)return{...i,domElementType:n}}return i}}}let Ar=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/dom-${e}`}),Ai="dangerouslySetInnerHTML";var Aa=Ar({meta:{type:"problem",docs:{description:"Disallow `dangerouslySetInnerHTML`.",[Symbol.for("rule_features")]:[]},messages:{noDangerouslySetInnerhtml:"Using 'dangerouslySetInnerHTML' may have security implications."},schema:[]},name:"no-dangerously-set-innerhtml",create:function(e){return e.sourceCode.text.includes(Ai)?{JSXElement(t){let n=EL(e,t)(Ai);null!=n&&e.report({messageId:"noDangerouslySetInnerhtml",node:n})}}:{}},defaultOptions:[]}),Ao=Ar({meta:{type:"problem",docs:{description:"Disallow `dangerouslySetInnerHTML` and `children` at the same time.",[Symbol.for("rule_features")]:[]},messages:{noDangerouslySetInnerhtmlWithChildren:"A DOM component cannot use both children and 'dangerouslySetInnerHTML'."},schema:[]},name:"no-dangerously-set-innerhtml-with-children",create:function(e){return e.sourceCode.text.includes(As)?{JSXElement(t){let n=EL(e,t);if(null==n(As))return;let r=n("children")??t.children.find(Al);null!=r&&e.report({messageId:"noDangerouslySetInnerhtmlWithChildren",node:r})}}:{}},defaultOptions:[]});let As="dangerouslySetInnerHTML";function Al(e){return!EV(e)||!(""===e.raw.trim()&&e.raw.includes("\n"))}var Ac=Ar({meta:{type:"problem",docs:{description:"Disallow `findDOMNode`.",[Symbol.for("rule_features")]:[]},messages:{noFindDomNode:"[Deprecated] Use alternatives instead."},schema:[]},name:"no-find-dom-node",create:function(e){return e.sourceCode.text.includes(Au)?{CallExpression(t){let{callee:n}=t;switch(n.type){case _q.AST_NODE_TYPES.Identifier:n.name===Au&&e.report({messageId:"noFindDomNode",node:t});return;case _q.AST_NODE_TYPES.MemberExpression:n.property.type===_q.AST_NODE_TYPES.Identifier&&n.property.name===Au&&e.report({messageId:"noFindDomNode",node:t});return}}}:{}},defaultOptions:[]});let Au="findDOMNode";var A_=Ar({meta:{type:"problem",docs:{description:"Disallow `flushSync`.",[Symbol.for("rule_features")]:[]},messages:{noFlushSync:"Using 'flushSync' is uncommon and can hurt the performance of your app."},schema:[]},name:"no-flush-sync",create:function(e){return e.sourceCode.text.includes(Ad)?{CallExpression(t){let{callee:n}=t;switch(n.type){case _q.AST_NODE_TYPES.Identifier:n.name===Ad&&e.report({messageId:"noFlushSync",node:t});return;case _q.AST_NODE_TYPES.MemberExpression:n.property.type===_q.AST_NODE_TYPES.Identifier&&n.property.name===Ad&&e.report({messageId:"noFlushSync",node:t});return}}}:{}},defaultOptions:[]});let Ad="flushSync";var Ap=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noHydrate:"[Deprecated] Use 'hydrateRoot()' instead."},schema:[]},name:"no-hydrate",create:function(e){if(!e.sourceCode.text.includes(Af)||kD(_R(e).version,"18.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.name===Af&&t.has(r.callee.object.name):var i,a;e.report({messageId:"noHydrate",node:r,fix:(i=e,a=r,e=>{let[t,n]=a.arguments;return null==t||null==n?null:[e.insertTextBefore(i.sourceCode.ast,'import { hydrateRoot } from "react-dom/client";\n'),e.replaceText(a,`hydrateRoot(${i.sourceCode.getText(n)}, ${i.sourceCode.getText(t)})`)]})});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;r.imported.name===Af&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let Af="hydrate",Am=["button","submit","reset"];var Ag=Ar({meta:{type:"problem",docs:{description:"Enforces explicit `type` attribute for `button` elements.",[Symbol.for("rule_features")]:["FIX"]},hasSuggestions:!0,messages:{addButtonType:"Add 'type' attribute with value '{{type}}'.",noMissingButtonType:"Add missing 'type' attribute on 'button' component."},schema:[]},name:"no-missing-button-type",create:function(e){let t=An(e);return{JSXElement(n){"button"!==t.resolve(n).domElementType||null==EL(e,n)("type")&&e.report({messageId:"noMissingButtonType",node:n.openingElement,suggest:Am.map(e=>({messageId:"addButtonType",data:{type:e},fix:t=>t.insertTextAfter(n.openingElement.name,` type="${e}"`)}))})}}},defaultOptions:[]}),Ah=Ar({meta:{type:"problem",docs:{description:"Enforces explicit `sandbox` prop for `iframe` elements.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",hasSuggestions:!0,messages:{addIframeSandbox:"Add 'sandbox' prop with value '{{value}}'.",noMissingIframeSandbox:"Add missing 'sandbox' prop on 'iframe' component."},schema:[]},name:"no-missing-iframe-sandbox",create:function(e){let t=An(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if("iframe"!==r)return;let i=EL(e,n)("sandbox");if(null==i)return void e.report({messageId:"noMissingIframeSandbox",node:n.openingElement,suggest:[{messageId:"addIframeSandbox",data:{value:""},fix:e=>e.insertTextAfter(n.openingElement.name,' sandbox=""')}]});let a=EM(e,i);"string"!=typeof a.toStatic("sandbox")&&e.report({messageId:"noMissingIframeSandbox",node:a.node??i,suggest:[{messageId:"addIframeSandbox",data:{value:""},fix:e=>a.kind.startsWith("spread")?null:e.replaceText(i,'sandbox=""')}]})}}},defaultOptions:[]}),Ay=Ar({meta:{type:"problem",docs:{description:"Enforces the absence of a `namespace` in React elements.",[Symbol.for("rule_features")]:[]},messages:{noNamespace:"A React component '{{name}}' must not be in a namespace, as React does not support them."},schema:[]},name:"no-namespace",create:function(e){return{JSXElement(t){let n=Ez(e,t);"string"==typeof n&&n.includes(":")&&e.report({messageId:"noNamespace",node:t.openingElement.name,data:{name:n}})}}},defaultOptions:[]}),Av=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noRender:"[Deprecated] Use 'createRoot(node).render()' instead."},schema:[]},name:"no-render",create:function(e){if(!e.sourceCode.text.includes("render")||kD(_R(e).version,"18.0.0","<"))return{};let t=new Set(["ReactDOM","ReactDom"]),n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name):var i,a;e.report({messageId:"noRender",node:r,fix:(i=e,a=r,e=>{let[t,n]=a.arguments;return null==t||null==n?null:[e.insertTextBefore(i.sourceCode.ast,'import { createRoot } from "react-dom/client";\n'),e.replaceText(a,`createRoot(${i.sourceCode.getText(n)}).render(${i.sourceCode.getText(t)})`)]})});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let Ab=[_q.AST_NODE_TYPES.VariableDeclarator,_q.AST_NODE_TYPES.Property,_q.AST_NODE_TYPES.ReturnStatement,_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.AssignmentExpression];var AT=Ar({meta:{type:"problem",docs:{description:"Disallow the return value of `ReactDOM.render`.",[Symbol.for("rule_features")]:[]},messages:{noRenderReturnValue:"Do not depend on the return value from 'ReactDOM.render'."},schema:[]},name:"no-render-return-value",create:function(e){let t=new Set(["ReactDOM","ReactDom"]),n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name)&&Ab.includes(r.parent.type):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name)&&Ab.includes(r.parent.type):e.report({messageId:"noRenderReturnValue",node:r});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]}),AS=Ar({meta:{type:"problem",docs:{description:"Disallow `javascript:` URLs as attribute values.",[Symbol.for("rule_features")]:[]},messages:{noScriptUrl:"Using a `javascript:` URL is a security risk and should be avoided."},schema:[]},name:"no-script-url",create:function(e){return{JSXAttribute(t){if(t.name.type!==_q.AST_NODE_TYPES.JSXIdentifier||null==t.value)return;let n=EM(e,t).toStatic();"string"==typeof n&&_x.test(n)&&e.report({messageId:"noScriptUrl",node:t.value})}}},defaultOptions:[]}),Ax=Ar({meta:{type:"problem",docs:{description:"Disallows the use of string style prop.",[Symbol.for("rule_features")]:[]},messages:{noStringStyleProp:"Do not use string style prop. Use an object instead."},schema:[]},name:"no-string-style-prop",create:function(e){return{JSXElement(t){if(!Eq(e,t))return;let n=EL(e,t)("style");if(null==n)return;let r=EM(e,n);"string"==typeof r.toStatic()&&e.report({messageId:"noStringStyleProp",node:r.node??n})}}},defaultOptions:[]});let AE=[],Ak={"accept-charset":"acceptCharset",class:"className",crossorigin:"crossOrigin",for:"htmlFor","http-equiv":"httpEquiv",nomodule:"noModule"},AP={"accent-height":"accentHeight","alignment-baseline":"alignmentBaseline","arabic-form":"arabicForm","baseline-shift":"baselineShift","cap-height":"capHeight","clip-path":"clipPath","clip-rule":"clipRule","color-interpolation":"colorInterpolation","color-interpolation-filters":"colorInterpolationFilters","color-profile":"colorProfile","color-rendering":"colorRendering","dominant-baseline":"dominantBaseline","enable-background":"enableBackground","fill-opacity":"fillOpacity","fill-rule":"fillRule","flood-color":"floodColor","flood-opacity":"floodOpacity","font-family":"fontFamily","font-size":"fontSize","font-size-adjust":"fontSizeAdjust","font-stretch":"fontStretch","font-style":"fontStyle","font-variant":"fontVariant","font-weight":"fontWeight","glyph-name":"glyphName","glyph-orientation-horizontal":"glyphOrientationHorizontal","glyph-orientation-vertical":"glyphOrientationVertical","horiz-adv-x":"horizAdvX","horiz-origin-x":"horizOriginX","image-rendering":"imageRendering","letter-spacing":"letterSpacing","lighting-color":"lightingColor","marker-end":"markerEnd","marker-mid":"markerMid","marker-start":"markerStart","overline-position":"overlinePosition","overline-thickness":"overlineThickness","paint-order":"paintOrder","panose-1":"panose1","pointer-events":"pointerEvents","rendering-intent":"renderingIntent","shape-rendering":"shapeRendering","stop-color":"stopColor","stop-opacity":"stopOpacity","strikethrough-position":"strikethroughPosition","strikethrough-thickness":"strikethroughThickness","stroke-dasharray":"strokeDasharray","stroke-dashoffset":"strokeDashoffset","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","stroke-miterlimit":"strokeMiterlimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-anchor":"textAnchor","text-decoration":"textDecoration","text-rendering":"textRendering","underline-position":"underlinePosition","underline-thickness":"underlineThickness","unicode-bidi":"unicodeBidi","unicode-range":"unicodeRange","units-per-em":"unitsPerEm","v-alphabetic":"vAlphabetic","v-hanging":"vHanging","v-ideographic":"vIdeographic","v-mathematical":"vMathematical","vector-effect":"vectorEffect","vert-adv-y":"vertAdvY","vert-origin-x":"vertOriginX","vert-origin-y":"vertOriginY","word-spacing":"wordSpacing","writing-mode":"writingMode","x-height":"xHeight","xlink:actuate":"xlinkActuate","xlink:arcrole":"xlinkArcrole","xlink:href":"xlinkHref","xlink:role":"xlinkRole","xlink:show":"xlinkShow","xlink:title":"xlinkTitle","xlink:type":"xlinkType","xml:base":"xmlBase","xml:lang":"xmlLang","xml:space":"xmlSpace"},AC={as:["link"],abbr:["th","td"],align:["applet","caption","col","colgroup","hr","iframe","img","table","tbody","td","tfoot","th","thead","tr"],allowFullScreen:["iframe","video"],autoPictureInPicture:["video"],charset:["meta"],checked:["input"],controls:["audio","video"],controlsList:["audio","video"],crossOrigin:["script","img","video","audio","link","image"],disablePictureInPicture:["video"],disableRemotePlayback:["audio","video"],displaystyle:["math"],download:["a","area"],fill:["altGlyph","circle","ellipse","g","line","marker","mask","path","polygon","polyline","rect","svg","symbol","text","textPath","tref","tspan","use","animate","animateColor","animateMotion","animateTransform","set"],focusable:["svg"],imageSizes:["link"],imageSrcSet:["link"],loop:["audio","video"],mozAllowFullScreen:["iframe","video"],muted:["audio","video"],noModule:["script"],onAbort:["audio","video"],onCanPlay:["audio","video"],onCanPlayThrough:["audio","video"],onCancel:["dialog"],onClose:["dialog"],onDurationChange:["audio","video"],onEmptied:["audio","video"],onEncrypted:["audio","video"],onEnded:["audio","video"],onError:["audio","video","img","link","source","script","picture","iframe"],onLoad:["script","img","link","picture","iframe","object","source"],onLoadStart:["audio","video"],onLoadedData:["audio","video"],onLoadedMetadata:["audio","video"],onPause:["audio","video"],onPlay:["audio","video"],onPlaying:["audio","video"],onProgress:["audio","video"],onRateChange:["audio","video"],onResize:["audio","video"],onSeeked:["audio","video"],onSeeking:["audio","video"],onStalled:["audio","video"],onSuspend:["audio","video"],onTimeUpdate:["audio","video"],onVolumeChange:["audio","video"],onWaiting:["audio","video"],playsInline:["video"],poster:["video"],preload:["audio","video"],property:["meta"],returnValue:["dialog"],scrolling:["iframe"],valign:["tr","td","th","thead","tbody","tfoot","colgroup","col"],viewBox:["marker","pattern","svg","symbol","view"],webkitAllowFullScreen:["iframe","video"],webkitDirectory:["input"]},Aw=["dir","draggable","hidden","id","lang","nonce","part","slot","style","title","translate","inert","accept","action","allow","alt","as","async","buffered","capture","challenge","cite","code","cols","content","coords","csp","data","decoding","default","defer","disabled","form","headers","height","high","href","icon","importance","integrity","kind","label","language","loading","list","loop","low","manifest","max","media","method","min","multiple","muted","name","open","optimum","pattern","ping","placeholder","poster","preload","profile","rel","required","reversed","role","rows","sandbox","scope","seamless","selected","shape","size","sizes","span","src","start","step","summary","target","type","value","width","wmode","wrap","accumulate","additive","alphabetic","amplitude","ascent","azimuth","bbox","begin","bias","by","clip","color","cursor","cx","cy","d","decelerate","descent","direction","display","divisor","dur","dx","dy","elevation","end","exponent","fill","filter","format","from","fr","fx","fy","g1","g2","hanging","height","hreflang","ideographic","in","in2","intercept","k","k1","k2","k3","k4","kerning","local","mask","mode","offset","opacity","operator","order","orient","orientation","origin","overflow","path","ping","points","r","radius","rel","restart","result","rotate","rx","ry","scale","seed","slope","spacing","speed","stemh","stemv","string","stroke","to","transform","u1","u2","unicode","values","version","visibility","widths","x","x1","x2","xmlns","y","y1","y2","z","property","ref","key","children","results","security","controls"],AA=["accessKey","autoCapitalize","autoFocus","contentEditable","enterKeyHint","exportParts","inputMode","itemID","itemRef","itemProp","itemScope","itemType","spellCheck","tabIndex","acceptCharset","autoComplete","autoPlay","border","cellPadding","cellSpacing","classID","codeBase","colSpan","contextMenu","dateTime","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","httpEquiv","imageSizes","imageSrcSet","isMap","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","onAnimationEnd","onAnimationIteration","onAnimationStart","onBlur","onChange","onClick","onContextMenu","onCopy","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCut","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onError","onFocus","onInput","onKeyDown","onKeyPress","onKeyUp","onLoad","onWheel","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPaste","onScroll","onSelect","onSubmit","onToggle","onTransitionEnd","radioGroup","readOnly","referrerPolicy","rowSpan","srcDoc","srcLang","srcSet","useMap","fetchPriority","crossOrigin","accentHeight","alignmentBaseline","arabicForm","attributeName","attributeType","baseFrequency","baselineShift","baseProfile","calcMode","capHeight","clipPathUnits","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","diffuseConstant","dominantBaseline","edgeMode","enableBackground","fillOpacity","fillRule","filterRes","filterUnits","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","horizAdvX","horizOriginX","imageRendering","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","markerEnd","markerMid","markerStart","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","mathematical","numOctaves","overlinePosition","overlineThickness","panose1","paintOrder","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","referrerPolicy","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","shapeRendering","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textRendering","textLength","transformOrigin","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","wordSpacing","writingMode","xHeight","xChannelSelector","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlnsXlink","xmlSpace","yChannelSelector","zoomAndPan","autoCorrect","autoSave","className","dangerouslySetInnerHTML","defaultValue","defaultChecked","htmlFor","onBeforeInput","onChange","onInvalid","onReset","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","suppressContentEditableWarning","suppressHydrationWarning","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onResize","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onCopyCapture","onCutCapture","onPasteCapture","onCompositionEndCapture","onCompositionStartCapture","onCompositionUpdateCapture","onFocusCapture","onBlurCapture","onChangeCapture","onBeforeInputCapture","onInputCapture","onResetCapture","onSubmitCapture","onInvalidCapture","onLoadCapture","onErrorCapture","onKeyDownCapture","onKeyPressCapture","onKeyUpCapture","onAbortCapture","onCanPlayCapture","onCanPlayThroughCapture","onDurationChangeCapture","onEmptiedCapture","onEncryptedCapture","onEndedCapture","onLoadedDataCapture","onLoadedMetadataCapture","onLoadStartCapture","onPauseCapture","onPlayCapture","onPlayingCapture","onProgressCapture","onRateChangeCapture","onSeekedCapture","onSeekingCapture","onStalledCapture","onSuspendCapture","onTimeUpdateCapture","onVolumeChangeCapture","onWaitingCapture","onSelectCapture","onTouchCancelCapture","onTouchEndCapture","onTouchMoveCapture","onTouchStartCapture","onScrollCapture","onWheelCapture","onAnimationEndCapture","onAnimationIteration","onAnimationStartCapture","onTransitionEndCapture","onAuxClick","onAuxClickCapture","onClickCapture","onContextMenuCapture","onDoubleClickCapture","onDragCapture","onDragEndCapture","onDragEnterCapture","onDragExitCapture","onDragLeaveCapture","onDragOverCapture","onDragStartCapture","onDropCapture","onMouseDown","onMouseDownCapture","onMouseMoveCapture","onMouseOutCapture","onMouseOverCapture","onMouseUpCapture","autoPictureInPicture","controlsList","disablePictureInPicture","disableRemotePlayback"],AD=["charset","allowFullScreen","webkitAllowFullScreen","mozAllowFullScreen","webkitDirectory"],AN=["aria-atomic","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription","aria-autocomplete","aria-checked","aria-expanded","aria-level","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-placeholder","aria-pressed","aria-readonly","aria-required","aria-selected","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","aria-activedescendant","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-posinset","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-setsize"],AF=["onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCapture","onLostPointerCaptureCapture","onPointerCancel","onPointerCancelCapture","onPointerDown","onPointerDownCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerMove","onPointerMoveCapture","onPointerOut","onPointerOutCapture","onPointerOver","onPointerOverCapture","onPointerUp","onPointerUpCapture"],AO=["popover","popoverTarget","popoverTargetAction","onToggle","onBeforeToggle"];function AI(e,t){return Object.hasOwn(e,t)}function AL(e,t,n){let{version:r}=_R(e);return kD(r,n,t)}var AM=Ar({meta:{type:"problem",docs:{description:"Disallow unknown `DOM` property."},fixable:"code",messages:{dataLowercaseRequired:"React does not recognize data-* props with uppercase characters on a DOM element. Found '{{name}}', use '{{lowerCaseName}}' instead",invalidPropOnTag:"Invalid property '{{name}}' found on tag '{{tagName}}', but it is only allowed on: {{allowedTags}}",unknownProp:"Unknown property '{{name}}' found",unknownPropWithStandardName:"Unknown property '{{name}}' found, use '{{standardName}}' instead"},schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",items:{type:"string"}},requireDataLowercase:{type:"boolean",default:!1}}}]},name:"no-unknown-property",create:function(e){return{JSXAttribute(t){var n;let r=e.options[0]?.ignore||AE,i=(n=t.name,e.sourceCode.getText(n));if(r.indexOf(i)>=0)return;let a=AD.find(e=>e.toLowerCase()===i.toLowerCase())||i;if(t.parent?.name&&"JSXMemberExpression"===t.parent.name.type)return;if(!/^data-xml/i.test(a)&&/^data-[^:]*$/.test(a)){e.options[0]&&void 0!==e.options[0].requireDataLowercase&&e.options[0].requireDataLowercase&&a.toLowerCase()!==a&&e.report({node:t,messageId:"dataLowercaseRequired",data:{name:i,lowerCaseName:i.toLowerCase()}});return}if(AN.some(e=>e===a))return;let o=t?.parent?.name?t.parent.name.name:null;if("fbt"===o||"fbs"===o||!/^[a-z][^-]*$/.test(t.parent.name.name)||t.parent.attributes.some(e=>"JSXAttribute"===e.type&&"JSXIdentifier"===e.name.type&&"is"===e.name.name))return;let s=AI(AC,a)?AC[a]:null;if(o&&s){-1===s.indexOf(o)&&e.report({node:t,messageId:"invalidPropOnTag",data:{name:i,allowedTags:s.join(", "),tagName:o}});return}let l=function(e,t){let n;return AI(Ak,e)?Ak[e]:AI(AP,e)?AP[e]:(n=AA.concat(Aw),AL(t,"<=","16.1.0")?n.push("allowTransparency"):(AL(t,">=","16.4.0")&&n.push(...AF),AL(t,">=","19.0.0-rc.0")?n.push(...AO):n.push(...AO.map(e=>e.toLowerCase()))),n).find(t=>t.toLowerCase()===e.toLowerCase())}(a,e),c=!!l&&l!==a;if(!l||l!==a){if(c)return void e.report({node:t,messageId:"unknownPropWithStandardName",data:{name:i,standardName:l},fix:e=>e.replaceText(t.name,l)});e.report({node:t,messageId:"unknownProp",data:{name:i}})}}}},defaultOptions:[]});let AR=["allow-scripts","allow-same-origin"];var Aj=Ar({meta:{type:"problem",docs:{description:"Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeIframeSandbox:"Unsafe 'sandbox' attribute value on 'iframe' component."},schema:[]},name:"no-unsafe-iframe-sandbox",create:function(e){let t=An(e);return{JSXElement(n){var r;if("iframe"!==t.resolve(n).domElementType)return;let i=EL(e,n)("sandbox");if(null==i)return;let a=EM(e,i);"string"==typeof(r=a.toStatic("sandbox"))&&AR.every(e=>r.includes(e))&&e.report({messageId:"noUnsafeIframeSandbox",node:a.node??i})}}},defaultOptions:[]}),AY=Ar({meta:{type:"problem",docs:{description:'Disallow `target="_blank"` without `rel="noreferrer noopener"`.',[Symbol.for("rule_features")]:["FIX"]},fixable:"code",hasSuggestions:!0,messages:{addRelNoreferrerNoopener:"Add 'rel=\"noreferrer noopener\"' to the link to prevent security risks.",noUnsafeTargetBlank:"Using 'target=\"_blank\"' on an external link without 'rel=\"noreferrer noopener\"' is a security risk."},schema:[]},name:"no-unsafe-target-blank",create:function(e){let t=An(e);return{JSXElement(n){var r,i;let{domElementType:a}=t.resolve(n);if("a"!==a)return;let o=EL(e,n),s=o("target");if(null==s||"_blank"!==EM(e,s).toStatic("target"))return;let l=o("href");if(null==l||!("string"==typeof(r=EM(e,l).toStatic("href"))&&(r.startsWith("https://")||/^(?:\w+:|\/\/)/u.test(r))))return;let c=o("rel");null==c?e.report({messageId:"noUnsafeTargetBlank",node:n.openingElement,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.insertTextAfter(n.openingElement.name,' rel="noreferrer noopener"')}]}):"string"==typeof(i=EM(e,c).toStatic("rel"))&&("noreferrer"===i||/\bnoreferrer\b/u.test(i))||e.report({messageId:"noUnsafeTargetBlank",node:c,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.replaceText(c,'rel="noreferrer noopener"')}]})}}},defaultOptions:[]}),AU=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `useFormState` with `useActionState`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noUseFormState:"[Deprecated] Use 'useActionState' from 'react' package instead."},schema:[]},name:"no-use-form-state",create:function(e){if(!e.sourceCode.text.includes("useFormState")||kD(_R(e).version,"19.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"useFormState"===r.callee.property.name&&t.has(r.callee.object.name):e.report({messageId:"noUseFormState",node:r,fix:function(e,t){let{importSource:n}=_R(e);return r=>[r.insertTextBefore(e.sourceCode.ast,`import { useActionState } from "${n}";
399
+ ${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]}),CQ=PS({meta:{type:"problem",docs:{description:"Enforces read-only props in components.",[Symbol.for("rule_features")]:["TSC","EXP"]},messages:{preferReadOnlyProps:"A function component's props should be read-only."},schema:[]},name:"prefer-read-only-props",create:function(e){let t=h1.ESLintUtils.getParserServices(e,!1),{ctx:n,listeners:r}=ke(e);return{...r,"Program:exit"(r){for(let[,i]of n.getAllComponents(r)){if(null==i.id||null==i.name)continue;let[n]=i.node.params;null!=n&&!function(e,t){if(k5.isTypeReadonly(e.program,t))return!0;try{let n=function(e,t,n=[{type:{from:"lib",name:"Map"},to:sy.Mutable},{type:{from:"lib",name:"Set"},to:sy.Mutable},{type:{from:"lib",name:"Date"},to:sy.Mutable},{type:{from:"lib",name:"URL"},to:sy.Mutable},{type:{from:"lib",name:"URLSearchParams"},to:sy.Mutable}],r=!0,i=sy.Immutable,a=function(e,t,n,r,i=[]){var a,o,s,l;let c;if(0===r.length)return!1;let u=!1,_=function(e,t){if(null===t){let t="target"in e?e.target:e;return t.aliasSymbol?.getName()??null}return yf.isTypeAliasDeclaration(t.parent)?t.parent.name.getText():null}(t,n);if(null!==_){let e=e=>"string"==typeof e?e===_:e.test(_);if(i.some(e))return!1;u||=r.some(e)}let d=(a=e,o=t,null===(s=n)?a.getTypeChecker().typeToString(o,void 0,yf.TypeFormatFlags.AddUndefined|yf.TypeFormatFlags.NoTruncation|yf.TypeFormatFlags.OmitParameterModifiers|yf.TypeFormatFlags.UseFullyQualifiedType|yf.TypeFormatFlags.WriteArrayAsGenericType|yf.TypeFormatFlags.WriteArrowStyleSignature|yf.TypeFormatFlags.WriteTypeArgumentsOfSignature):s.getText()),p=e=>"string"==typeof e?e===d:e.test(d);if(i.some(p))return!1;u||=r.some(p);let f=(l=d,c=/^([^<]+)<.+>$/u.exec(l),c?.[1]??null);if(null!==f){let e=e=>"string"==typeof e?e===f:e.test(f);if(i.some(e))return!1;u||=r.some(e)}if(e.getTypeChecker().isArrayType(t)&&null!==n)if(yf.isTypeOperatorNode(n)&&n.operator===yf.SyntaxKind.ReadonlyKeyword||yf.isTypeOperatorNode(n.parent)&&n.parent.operator===yf.SyntaxKind.ReadonlyKeyword){let e=e=>"string"==typeof e&&"ReadonlyArray"===e;if(i.some(e))return!1;u||=r.some(e)}else{let e=e=>"string"==typeof e&&"Array"===e;if(i.some(e))return!1;u||=r.some(e)}return u}){let o=Object.hasOwn(t,"kind"),s=o?e.getTypeChecker().getTypeFromTypeNode(t):t;return function(e,t,n,r,i,a){let o,s=!0===r?Pd:!1===r?new WeakMap:r,l={program:e,overrides:n,cache:s,immutabilityLimits:{min:sy.Mutable,max:i},typeMatchesPatternSpecifier:a},c=[Pp(t)],u=sy.Unknown;do{switch((o=c.pop()).stage){case 0:!function(e,t,n){var r,i,a,o,s,l,c,u;let _,d,p=(r=e.program,i=e.cache,a=n.typeData,_=r.getTypeChecker(),d=a.typeNode??_.getRecursionIdentity(a.type),i.get(d));if(void 0!==p){n.immutability=p;return}let f=(o=n.typeData,e.overrides.find(t=>{var n,r,i;return n=e.program,r=t.type,i=e.typeMatchesPatternSpecifier,!vl(o.type)&&("string"==typeof r||r instanceof RegExp?Pu(n,r,o,i):function(e,t,n){var r,i,a,o,s,l,c;let[u,_]=function(e){let t=e.getSymbol()?.getDeclarations()??[],n=t.map(e=>e.getSourceFile());return[t,n]}(n);switch(t.from){case"lib":return Pn(e,_);case"package":return r=e,i=u,a=_,o=t.package,(Pr(i,o)||Pi(r,a,o))&&!Pn(e,_);case"file":return function(e,t,n){let r=e.getCurrentDirectory(),i=yf.getEffectiveTypeRoots(e.getCompilerOptions(),e),a=void 0===i?t:t.filter(e=>!i.some(t=>e.path.startsWith(t)));return void 0===n?a.some(e=>!e.path.includes("/node_modules/")):a.some(e=>{let t=function(e){let t=sJ.normalize(e),n=t.endsWith(sJ.sep)?t.slice(0,-1):t;return void 0===yf.sys||yf.sys.useCaseSensitiveFileNames?n:n.toLowerCase()}(e.path);return t.startsWith(r)&&(Pt.isMatch(t,n)||Pt.isMatch(`./${sJ.relative(r,t)}`,n))})}(e,_,t.path)&&!Pn(e,_)&&(s=e,l=u,c=_,!(Pr(l,void 0)||Pi(s,c,void 0)))}}(n,r,o.type)&&Pu(n,r,o,i))}));if(f?.to!==void 0){if(void 0===f.from){n.immutability=f.to,Pc(e.program,e.cache,n.typeData,n.immutability);return}t.push({taskState:n,override:f,stage:6})}if(Pc(e.program,e.cache,n.typeData,n.immutability),vm(n.typeData.type))return function(e,t){let n=t.typeData.type.types.map((e,n)=>Pp(Pl(e,null!==t.typeData.typeNode&&yf.isUnionTypeNode(t.typeData.typeNode)?t.typeData.typeNode.types[n]:void 0)));e.push(Pf(t,n,Pa),...n)}(t,n);if(vp(n.typeData.type)){return l=e,c=t,u=n,Ph(l,c,u)}if(v_(n.typeData.type))return function(e,t,n){let r=e.program.getTypeChecker(),i=[n.typeData.type.root.node.trueType,n.typeData.type.root.node.falseType].map(e=>Pp(Pl(r.getTypeFromTypeNode(e),e)));t.push(Pf(n,i,Pa),...i)}(e,t,n);if((s=n.typeData.type).getCallSignatures().length>0&&0===s.getProperties().length)return n.immutability=sy.Immutable;let m=e.program.getTypeChecker();m.isTupleType(n.typeData.type)?function(e,t,n){if(!n.typeData.type.target.readonly){n.immutability=sy.Mutable;return}Pg(e,t,n)}(e,t,n):m.isArrayType(n.typeData.type)?Pg(e,t,n):vf(n.typeData.type)?Ph(e,t,n):n.immutability=sy.Immutable}(l,c,o);break;case 1:var _,d=o;d.immutability=d.children[0].immutability;for(let e=1;e<d.children.length;e++)d.immutability=d.childrenReducer(d.immutability,d.children[e].immutability);break;case 3:!function(e,t){e.push(Pm(t,()=>{t.stage=4,e.push(t)})),Py(e,t)}(c,o);break;case 4:!function(e,t,n){let[r,i]=vp(n.typeData.type)?[n.typeData.type.types,n.typeData.typeNode?.types]:[[n.typeData.type],null===n.typeData.typeNode?void 0:[n.typeData.typeNode]];t.push(Pm(n,()=>{n.stage=7,n.immutability=Po(n.limits.min,n.limits.max),t.push(n)}),Pm(n,()=>{let a=r.flatMap((t,r)=>Pv(e,n,yf.IndexKind.Number,Pl(t,i?.[r])));a.length>0&&t.push(Pf(n,a,Po),...a)}));let a=r.flatMap((t,r)=>Pv(e,n,yf.IndexKind.String,Pl(t,i?.[r])));a.length>0&&t.push(Pf(n,a,Po),...a)}(l,c,o);break;case 6:((_=o).override.from<=_.taskState.immutability&&_.taskState.immutability<=_.override.to||_.override.from>=_.taskState.immutability&&_.taskState.immutability>=_.override.to)&&(_.taskState.immutability=_.override.to),o=o.taskState;break;case 5:(function(e,t){if(t!==sy.Calculating&&(e.taskState.limits.max=Pa(e.taskState.limits.max,t),e.taskState.limits.min>=e.taskState.limits.max)){e.taskState.immutability=e.taskState.limits.min;return}e.notDoneAction()})(o,u),o=o.taskState}o.immutability!==sy.Calculating&&(Pc(e,s,o.typeData,o.immutability),u=o.immutability)}while(c.length>0);return o.immutability===sy.Calculating?sy.Unknown:o.immutability}(e,Pl(s,o?t:void 0),n,r,i,a)}(e.program,t);return Ps(n)||n>=sy.Immutable||n>=sy.ReadonlyShallow||n>=sy.ReadonlyDeep}catch{return!0}}(t,k5.getConstrainedTypeAtLocation(t,n))&&e.report({messageId:"preferReadOnlyProps",node:n})}}}},defaultOptions:[]});let CZ=["Boolean","String","Number"];var C0=PS({meta:{type:"problem",docs:{description:"Enforces function calls made inside `useState` to be wrapped in an `initializer function`.",[Symbol.for("rule_features")]:["EXP"]},messages:{preferUseStateLazyInitialization:"To prevent re-computation, consider using lazy initial state for useState calls that involve function calls. Ex: 'useState(() => getValue())'."},schema:[]},name:"prefer-use-state-lazy-initialization",create:function(e){return{CallExpression(t){if(!ED(t))return;let[n]=t.arguments;if(null!=n){for(let t of xW(n))!("name"in t.callee)||CZ.includes(t.callee.name)||null==xz(t,EP)&&e.report({messageId:"preferUseStateLazyInitialization",node:t});for(let t of xK(n))!("name"in t.callee)||ES(t.callee.name)||CZ.includes(t.callee.name)||null==xz(t,EP)&&e.report({messageId:"preferUseStateLazyInitialization",node:t})}}}},defaultOptions:[]});let C1="no-forbidden-props",C2=v6(C1),C3=[{forbid:[{prop:"/_/"}]}],C6={meta:{name:"eslint-plugin-react-x",version:"2.3.5"},rules:{"jsx-dollar":PY,"jsx-key-before-spread":PU,"jsx-no-comment-textnodes":PB,"jsx-no-duplicate-props":PV,"jsx-no-iife":PJ,"jsx-no-undef":Pz,"jsx-shorthand-boolean":P$,"jsx-shorthand-fragment":PK,"jsx-uses-react":PH,"jsx-uses-vars":PX,"no-access-state-in-setstate":PQ,"no-array-index-key":P0,"no-children-count":P1,"no-children-for-each":P2,"no-children-map":P3,"no-children-only":P6,"no-children-prop":P4,"no-children-to-array":P8,"no-class-component":P5,"no-clone-element":P7,"no-component-will-mount":P9,"no-component-will-receive-props":Ce,"no-component-will-update":Ct,"no-context-provider":Cn,"no-create-ref":Cr,"no-default-props":Ci,"no-direct-mutation-state":Co,"no-duplicate-key":Cs,"no-forward-ref":Cl,"no-implicit-key":Cc,"no-leaked-conditional-rendering":Cu,"no-missing-component-display-name":C_,"no-missing-context-display-name":Cd,"no-missing-key":Cp,"no-misused-capture-owner-stack":Cf,"no-nested-component-definitions":Cg,"no-nested-lazy-component-declarations":Ch,"no-prop-types":Cy,"no-redundant-should-component-update":Cv,"no-set-state-in-component-did-mount":Cb,"no-set-state-in-component-did-update":CT,"no-set-state-in-component-will-update":CS,"no-string-refs":Cx,"no-unnecessary-key":CE,"no-unnecessary-use-callback":CP,"no-unnecessary-use-memo":CC,"no-unnecessary-use-prefix":CA,"no-unsafe-component-will-mount":CD,"no-unsafe-component-will-receive-props":CN,"no-unsafe-component-will-update":CF,"no-unstable-context-value":CO,"no-unstable-default-props":CI,"no-unused-class-component-members":CR,"no-unused-props":Cj,"no-unused-state":CV,"no-use-context":CJ,"no-useless-forward-ref":Cz,"no-useless-fragment":C$,"prefer-destructuring-assignment":CG,"prefer-namespace-import":CX,"prefer-read-only-props":CQ,"prefer-use-state-lazy-initialization":C0,"no-forbidden-props":PS({meta:{type:"problem",defaultOptions:[...C3],deprecated:{deprecatedSince:"2.3.2",message:"This rule is deprecated and will be removed in future versions.",replacedBy:[{rule:{name:"no-restricted-syntax",url:"https://eslint.org/docs/latest/rules/no-restricted-syntax"}}]},docs:{description:"Disallow certain props on components."},messages:{[C2]:'Prop "{{name}}" is forbidden.'},schema:[{type:"object",additionalProperties:!1,properties:{forbid:{type:"array",items:{anyOf:[{type:"string"},{type:"object",additionalProperties:!1,properties:{excludedNodes:{type:"array",items:{type:"string"},uniqueItems:!0},prop:{type:"string"}},required:["prop"]},{type:"object",additionalProperties:!1,properties:{includedNodes:{type:"array",items:{type:"string"},uniqueItems:!0},prop:{type:"string"}},required:["prop"]}]}}}}]},name:C1,create:function(e,[t]){let{forbid:n=[{prop:"/_/"}]}=t;return{JSXOpeningElement(t){let r=null;for(let i of(t.name.type===_q.AST_NODE_TYPES.JSXIdentifier?r=t.name.name:t.name.type===_q.AST_NODE_TYPES.JSXNamespacedName&&(r=t.name.name.name),t.attributes)){if(i.type===_q.AST_NODE_TYPES.JSXSpreadAttribute)continue;let t=i.name.name;if("string"==typeof t)for(let a of n)!("string"!=typeof a&&null!=r&&("excludedNodes"in a&&a.excludedNodes.includes(r)||"includedNodes"in a&&!a.includedNodes.includes(r)))&&_F("string"==typeof a?a:a.prop).test(t)&&e.report({messageId:C2,node:i,data:{name:t}})}}}},defaultOptions:C3})}};var C4=PT({name:()=>C8,plugins:()=>C7,rules:()=>C5,settings:()=>C9});let C8="react-x/recommended",C5={"react-x/jsx-key-before-spread":"warn","react-x/jsx-no-comment-textnodes":"warn","react-x/jsx-no-duplicate-props":"warn","react-x/jsx-uses-react":"warn","react-x/jsx-uses-vars":"warn","react-x/no-access-state-in-setstate":"error","react-x/no-array-index-key":"warn","react-x/no-children-count":"warn","react-x/no-children-for-each":"warn","react-x/no-children-map":"warn","react-x/no-children-only":"warn","react-x/no-children-to-array":"warn","react-x/no-clone-element":"warn","react-x/no-component-will-mount":"error","react-x/no-component-will-receive-props":"error","react-x/no-component-will-update":"error","react-x/no-context-provider":"warn","react-x/no-create-ref":"error","react-x/no-default-props":"error","react-x/no-direct-mutation-state":"error","react-x/no-duplicate-key":"error","react-x/no-forward-ref":"warn","react-x/no-implicit-key":"warn","react-x/no-missing-key":"error","react-x/no-nested-component-definitions":"error","react-x/no-nested-lazy-component-declarations":"error","react-x/no-prop-types":"error","react-x/no-redundant-should-component-update":"error","react-x/no-set-state-in-component-did-mount":"warn","react-x/no-set-state-in-component-did-update":"warn","react-x/no-set-state-in-component-will-update":"warn","react-x/no-string-refs":"error","react-x/no-unnecessary-use-prefix":"warn","react-x/no-unsafe-component-will-mount":"warn","react-x/no-unsafe-component-will-receive-props":"warn","react-x/no-unsafe-component-will-update":"warn","react-x/no-use-context":"warn","react-x/no-useless-forward-ref":"warn","react-x/prefer-use-state-lazy-initialization":"warn"},C7={"react-x":C6},C9={"react-x":_L},we={"react-x/jsx-no-duplicate-props":"off","react-x/jsx-no-undef":"off","react-x/jsx-uses-react":"off","react-x/jsx-uses-vars":"off"};var wt=PT({name:()=>wn,plugins:()=>wi,rules:()=>wr,settings:()=>wa});let wn="react-x/recommended-typescript",wr={...C5,...we},wi={...C7},wa={...C9};var wo=PT({name:()=>ws,plugins:()=>wc,rules:()=>wl,settings:()=>wu});let ws="react-x/recommended-type-checked",wl={...wr,"react-x/no-leaked-conditional-rendering":"error"},wc={...wi},wu={...wa};var w_=PT({name:()=>wd,plugins:()=>wf,rules:()=>wp,settings:()=>wm});let wd="react-x/strict",wp={...C5,"react-x/jsx-no-iife":"error","react-x/no-children-prop":"error","react-x/no-class-component":"error","react-x/no-misused-capture-owner-stack":"error","react-x/no-unnecessary-key":"warn","react-x/no-unnecessary-use-callback":"warn","react-x/no-unnecessary-use-memo":"warn","react-x/no-unstable-context-value":"warn","react-x/no-unstable-default-props":"warn","react-x/no-unused-class-component-members":"warn","react-x/no-unused-state":"warn","react-x/no-useless-fragment":"warn","react-x/prefer-destructuring-assignment":"warn"},wf={...C7},wm={...C9};var wg=PT({name:()=>wh,plugins:()=>wv,rules:()=>wy,settings:()=>wb});let wh="react-x/strict-typescript",wy={...wp,...we},wv={...wf},wb={...wm};var wT=PT({name:()=>wS,plugins:()=>wE,rules:()=>wx,settings:()=>wk});let wS="react-x/strict-type-checked",wx={...wy,"react-x/no-leaked-conditional-rendering":"error","react-x/no-unused-props":"warn"},wE={...wv},wk={...wb},{toFlatConfig:wP}=_g("react-x",C6);var wC={...C6,configs:{recommended:wP(C4),"recommended-typescript":wP(wt),"recommended-type-checked":wP(wo),strict:wP(w_),"strict-typescript":wP(wg),"strict-type-checked":wP(wT)}},ww=Object.defineProperty,wA=(e=>{let t={};for(var n in e)ww(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wD,rules:()=>wN});let wD="react-hooks-extra/recommended",wN={"react-hooks-extra/no-direct-set-state-in-use-effect":"warn"};function wF(e){if(e.type!==_q.AST_NODE_TYPES.VariableDeclarator||e.id.type!==_q.AST_NODE_TYPES.Identifier)return!1;var t=e.init;if(t?.type!==_q.AST_NODE_TYPES.CallExpression)return!1;switch(t.callee.type){case _q.AST_NODE_TYPES.Identifier:return ES(t.callee.name);case _q.AST_NODE_TYPES.MemberExpression:return t.callee.property.type===_q.AST_NODE_TYPES.Identifier&&ES(t.callee.property.name);default:return!1}}let wO={meta:{name:"eslint-plugin-react-hooks-extra",version:"2.3.5"},rules:{"no-direct-set-state-in-use-effect":h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/hooks-extra-${e}`})({meta:{type:"problem",docs:{description:"Disallow direct calls to the `set` function of `useState` in `useEffect`.",[Symbol.for("rule_features")]:["EXP"]},messages:{noDirectSetStateInUseEffect:"Do not call the 'set' function '{{name}}' of 'useState' directly in 'useEffect'."},schema:[]},name:"no-direct-set-state-in-use-effect",create:function(e){if(!/use\w*Effect/u.test(e.sourceCode.text))return{};let t=[],n={current:null},r=[],i=[],a=new WeakMap,o=new WeakMap,s=new Map,l=new WeakMap,c=t=>e.sourceCode.getText(t);function u(e){return e.type===_q.AST_NODE_TYPES.CallExpression?xB(e.callee,c):xB(e,c)}function _(t,n){let r=x5(x9(t,e.sourceCode.getScope(t)),0);if(null==r||r.type!==_q.AST_NODE_TYPES.CallExpression||!ED(r))return!1;let i=r.parent;return!("id"in i)||i.id?.type!==_q.AST_NODE_TYPES.ArrayPattern||i.id.elements.findIndex(e=>e?.type===_q.AST_NODE_TYPES.Identifier&&e.name===t.name)===n}function d(t){switch(t.callee.type){case _q.AST_NODE_TYPES.CallExpression:{let{callee:n}=t.callee;if(n.type!==_q.AST_NODE_TYPES.MemberExpression||!("name"in n.object))return!1;let r=n.property.type===_q.AST_NODE_TYPES.Identifier&&"at"===n.property.name,[i]=t.callee.arguments;if(!r||null==i)return!1;return x4.getStaticValue(i,e.sourceCode.getScope(t))?.value===1&&_(n.object)}case _q.AST_NODE_TYPES.Identifier:return _(t.callee,1);case _q.AST_NODE_TYPES.MemberExpression:{if(!("name"in t.callee.object))return!1;let n=t.callee.property;return x4.getStaticValue(n,e.sourceCode.getScope(t))?.value===1&&_(t.callee.object,1)}default:return!1}}return{":function"(e){let r=function(e){let t=xz(e,e=>!xj(e))??e.parent;switch(!0){case e.async:case t.type===_q.AST_NODE_TYPES.CallExpression&&x1(t):return"deferred";case e.type!==_q.AST_NODE_TYPES.FunctionDeclaration&&t.type===_q.AST_NODE_TYPES.CallExpression&&t.callee===e:return"immediate";case e.parent?.type===_q.AST_NODE_TYPES.CallExpression&&e.parent.callee!==e&&Ek(e.parent):return"setup";default:return"other"}}(e);t.push({kind:r,node:e}),"setup"===r&&(n.current=e)},":function:exit"(e){let{kind:r}=t.at(-1)??{};"setup"===r&&n.current===e&&(n.current=null),t.pop()},CallExpression(o){let s=n.current,c=t.at(-1);null!=c&&!c.node.async&&ls.match(ls.match(o).when(ED,()=>"useState").when(Ek,()=>"useEffect").when(d,()=>"setState").when(x1,()=>"then").otherwise(()=>"other")).with("setState",()=>{switch(!0){case"deferred"===c.kind:case c.node.async:break;case c.node===s:case"immediate"===c.kind&&xz(c.node,xD)===s:e.report({messageId:"noDirectSetStateInUseEffect",node:o,data:{name:e.sourceCode.getText(o.callee)}});return;default:{let e=xz(o,wF)?.init;null==e?la(a,c.node,()=>[]).push(o):la(l,e,()=>[]).push(o)}}}).with("useEffect",()=>{xD(o.arguments.at(0))||r.push(...function e(t){let n=[];if(t.type===_q.AST_NODE_TYPES.Identifier&&n.push(t),"arguments"in t){let r=t.arguments.map(e).flat(1);n.push(...r)}if("elements"in t){let r=t.elements.filter(e=>null!=e).map(e).flat(1);n.push(...r)}if("properties"in t){let r=t.properties.map(e).flat(1);n.push(...r)}if("expressions"in t){let r=t.expressions.map(e).flat(1);n.push(...r)}if("left"in t){let r=e(t.left);n.push(...r)}if("right"in t){let r=e(t.right);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.Property){let r=e(t.value);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.SpreadElement){let r=e(t.argument);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.MemberExpression){let r=e(t.object);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.UnaryExpression){let r=e(t.argument);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.ChainExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSNonNullExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSAsExpression){let r=e(t.expression);n.push(...r)}if(t.type===_q.AST_NODE_TYPES.TSSatisfiesExpression){let r=e(t.expression);n.push(...r)}return n}(o))}).with("other",()=>{c.node===s&&i.push(o)}).otherwise(lt)},Identifier(e){if((e.parent.type!==_q.AST_NODE_TYPES.CallExpression||e.parent.callee!==e)&&_(e,1))switch(e.parent.type){case _q.AST_NODE_TYPES.ArrowFunctionExpression:{let t=e.parent.parent;if(t.type!==_q.AST_NODE_TYPES.CallExpression||!EA(t))break;let n=xz(t,wF)?.init;null!=n&&la(o,n,()=>[]).push(e);break}case _q.AST_NODE_TYPES.CallExpression:if(e!==e.parent.arguments.at(0))break;if(EC(e.parent)){let t=xz(e.parent,wF)?.init;null!=t&&la(o,t,()=>[]).push(e);break}Ek(e.parent)&&la(s,e.parent,()=>[]).push(e)}},"Program:exit"(){let t=(e,t)=>{let n=x5(x9(e,t),0);switch(n?.type){case _q.AST_NODE_TYPES.ArrowFunctionExpression:case _q.AST_NODE_TYPES.FunctionDeclaration:case _q.AST_NODE_TYPES.FunctionExpression:return a.get(n)??[];case _q.AST_NODE_TYPES.CallExpression:return l.get(n)??o.get(n)??[]}return[]};for(let[,t]of s)for(let n of t)e.report({messageId:"noDirectSetStateInUseEffect",node:n,data:{name:n.name}});for(let{callee:n}of i){if(!("name"in n))continue;let{name:r}=n;for(let i of t(r,e.sourceCode.getScope(n)))e.report({messageId:"noDirectSetStateInUseEffect",node:i,data:{name:u(i)}})}for(let n of r)for(let r of t(n.name,e.sourceCode.getScope(n)))e.report({messageId:"noDirectSetStateInUseEffect",node:r,data:{name:u(r)}})}}},defaultOptions:[]})}},{toFlatConfig:wI}=_g("react-hooks-extra",wO);var wL={...wO,configs:{recommended:wI(wA)}},wM=Object.defineProperty,wR=(e=>{let t={};for(var n in e)wM(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wj,rules:()=>wY});let wj="react-naming-convention/recommended",wY={"react-naming-convention/context-name":"warn","react-naming-convention/use-state":"warn"},wU=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/naming-convention-${e}`}),wB=[{allowAllCaps:!1,excepts:[],rule:"PascalCase"}];var wV=wU({meta:{type:"problem",defaultOptions:[...wB],docs:{description:"Enforces naming conventions for components."},messages:{invalidComponentName:"A component name '{{name}}' does not match {{rule}}."},schema:[{anyOf:[{type:"string",enum:["PascalCase","CONSTANT_CASE"]},{type:"object",additionalProperties:!1,properties:{allowAllCaps:{type:"boolean"},excepts:{type:"array",items:{type:"string",format:"regex"}},rule:{type:"string",enum:["PascalCase","CONSTANT_CASE"]}}}]}]},name:"component-name",create:function(e){let t,n,r=(t=e.options[0],n=wB[0],null==t?n:{...n,..."string"==typeof t?{rule:t}:{...t,excepts:t.excepts?.map(e=>_F(e))??[]}}),{rule:i}=r,a=ke(e),o=kn();return{...a.listeners,...o.listeners,"Program:exit"(t){let n=a.ctx.getAllComponents(t),s=o.ctx.getAllComponents(t);for(let{node:t}of n.values()){let n=xH(t);if(n?.name==null)continue;let a=n.name;wJ(a,r)||e.report({messageId:"invalidComponentName",node:n,data:{name:a,rule:i}})}for(let{node:t}of s.values()){let n=xP(t);if(n?.name==null)continue;let a=n.name;wJ(a,r)||e.report({messageId:"invalidComponentName",node:n,data:{name:a,rule:i}})}}}},defaultOptions:wB});function wJ(e,t){if(null==e||t.excepts.some(t=>t.test(e)))return!0;let n=e.split(".").at(-1)??e;switch(t.rule){case"CONSTANT_CASE":return _S.test(n);case"PascalCase":if(n.length>3&&/^[A-Z]+$/u.test(n))return t.allowAllCaps;return _y.test(n)}}var wz=wU({meta:{type:"problem",docs:{description:"Enforces context name to be a valid component name with the suffix `Context`."},messages:{invalidContextName:"A context name must be a valid component name with the suffix 'Context'."},schema:[]},name:"context-name",create:function(e){return e.sourceCode.text.includes("createContext")?{CallExpression(t){if(!Eg(e,t))return;let n=EZ(t);if(null==n)return;let r=ls.match(n).with({type:_q.AST_NODE_TYPES.Identifier,name:ls.P.select()},s9).with({type:_q.AST_NODE_TYPES.MemberExpression,property:{name:ls.P.select(ls.P.string)}},s9).otherwise(()=>null);null!=r&&_A.test(r)&&r.endsWith("Context")||e.report({messageId:"invalidContextName",node:n})}}:{}},defaultOptions:[]});let wq=[{excepts:["index",String.raw`/^_/`,String.raw`/^\$/`,String.raw`/^[0-9]+$/`,String.raw`/^\[[^\]]+\]$/`],rule:"PascalCase"}];var w$=wU({meta:{type:"problem",defaultOptions:[...wq],docs:{description:"Enforces consistent file naming conventions."},messages:{empty:"A file must have non-empty name.",invalidCase:"A file with name '{{name}}' does not match {{rule}}. Rename it to '{{suggestion}}'."},schema:[{anyOf:[{type:"string",enum:["PascalCase","camelCase","kebab-case","snake_case"]},{type:"object",additionalProperties:!1,properties:{excepts:{type:"array",items:{type:"string",format:"regex"}},extensions:{type:"array",items:{type:"string"},uniqueItems:!0},rule:{type:"string",enum:["PascalCase","camelCase","kebab-case","snake_case"]}}}]}]},name:"filename",create:function(e){let t=e.options[0]??wq[0],n="string"==typeof t?t:t.rule??"PascalCase",r="string"==typeof t?[]:(t.excepts??[]).map(e=>_F(e));return{Program(t){let[i="",...a]=sk.basename(e.filename).split(".");0===i.length?e.report({messageId:"empty",node:t}):!function(e,t=n,i=r){if(i.some(t=>t.test(e)))return!0;let a=e.match(/[\w.-]/gu)?.join("")??"";return 0===a.length||ls.match(t).with("PascalCase",()=>_y.test(a)).with("camelCase",()=>_v.test(a)).with("kebab-case",()=>_b.test(a)).with("snake_case",()=>_T.test(a)).exhaustive()}(i)&&e.report({messageId:"invalidCase",node:t,data:{name:e.filename,rule:n,suggestion:[function(e,t=n){return ls.match(t).with("PascalCase",()=>v3(e)).with("camelCase",()=>v6(e)).with("kebab-case",()=>vX(v4(v2(e),"-"))).with("snake_case",()=>v8(e)).exhaustive()}(i),...a].join(".")}})}}},defaultOptions:wq});let wW=[{allow:"as-needed",extensions:[".jsx",".tsx"],ignoreFilesWithoutCode:!1}],wK={meta:{name:"eslint-plugin-react-naming-convention",version:"2.3.5"},rules:{"component-name":wV,"context-name":wz,filename:w$,"filename-extension":wU({meta:{type:"problem",defaultOptions:[...wW],docs:{description:"Enforces consistent file naming conventions."},messages:{missingJSXExtension:"Use {{extensions}} file extension for JSX files.",unnecessaryJSXExtension:"Do not use {{extensions}} file extension for files without JSX."},schema:[{anyOf:[{type:"string",enum:["always","as-needed"]},{type:"object",additionalProperties:!1,properties:{allow:{type:"string",enum:["always","as-needed"]},extensions:{type:"array",items:{type:"string"},uniqueItems:!0},ignoreFilesWithoutCode:{type:"boolean"}}}]}]},name:"filename-extension",create:function(e){let t=e.options[0]??wW[0],n=s7(t)?t.allow:t,r=s7(t)&&"extensions"in t?t.extensions:wW[0].extensions,i=r.map(e=>`'${e}'`).join(", "),a=e.filename,o=!1;return{JSXElement(){o=!0},JSXFragment(){o=!0},"Program:exit"(s){let l=a.slice(a.lastIndexOf(".")),c=r.includes(l);if(o&&!c)return void e.report({messageId:"missingJSXExtension",node:s,data:{extensions:i}});let u=s.body.length>0,_=s7(t)&&!0===t.ignoreFilesWithoutCode;(u||!_)&&!o&&c&&"as-needed"===n&&e.report({messageId:"unnecessaryJSXExtension",node:s,data:{extensions:i}})}}},defaultOptions:wW}),"use-state":wU({meta:{type:"problem",docs:{description:"Enforces destructuring and symmetric naming of `useState` hook value and setter.",[Symbol.for("rule_features")]:[]},messages:{invalidAssignment:"useState should be destructured into a value and setter pair, e.g., const [state, setState] = useState(...).",invalidSetterName:"The setter should be named 'set' followed by the capitalized state variable name, e.g., 'setState' for 'state'."},schema:[]},name:"use-state",create:function(e){return{CallExpression(t){if(!ED(t))return;if(t.parent.type!==_q.AST_NODE_TYPES.VariableDeclarator)return void e.report({messageId:"invalidAssignment",node:t});let n=EZ(t);if(n?.type!==_q.AST_NODE_TYPES.ArrayPattern)return void e.report({messageId:"invalidAssignment",node:n??t});let[r,i]=n.elements;if(null==r||null==i)return void e.report({messageId:"invalidAssignment",node:n});let a=ls.match(i).with({type:_q.AST_NODE_TYPES.Identifier},e=>e.name).otherwise(()=>null);if(null==a||!a.startsWith("set"))return void e.report({messageId:"invalidSetterName",node:i});let o=ls.match(r).with({type:_q.AST_NODE_TYPES.Identifier},({name:e})=>v8(e)).with({type:_q.AST_NODE_TYPES.ObjectPattern},({properties:e})=>e.reduce((e,t)=>t.type===_q.AST_NODE_TYPES.Property&&t.key.type===_q.AST_NODE_TYPES.Identifier?[...e,t.key.name]:e,[]).join("_")).otherwise(()=>null);null==o?e.report({messageId:"invalidSetterName",node:r}):v8(a)!==`set_${o}`&&e.report({messageId:"invalidSetterName",node:i})}}},defaultOptions:[]})}},{toFlatConfig:wH}=_g("react-naming-convention",wK);var wG={...wK,configs:{recommended:wH(wR)}},wX=Object.defineProperty,wQ=(e=>{let t={};for(var n in e)wX(t,n,{get:e[n],enumerable:!0});return t})({name:()=>wZ,rules:()=>w0,settings:()=>w1});let wZ="react-web-api/recommended",w0={"react-web-api/no-leaked-event-listener":"warn","react-web-api/no-leaked-interval":"warn","react-web-api/no-leaked-resize-observer":"warn","react-web-api/no-leaked-timeout":"warn"},w1={"react-x":_L},w2=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/web-api-${e}`}),w3={capture:!1,signal:e};function w6(t,n){return function t(r){switch(r.type){case h1.AST_NODE_TYPES.Identifier:{let e=x5(x9(r,n),0);if(e?.type===h1.AST_NODE_TYPES.ObjectExpression)return t(e);return w3}case h1.AST_NODE_TYPES.Literal:return{...w3,capture:!!r.value};case h1.AST_NODE_TYPES.ObjectExpression:{let t=!!function(t,r=e=>!0){if(t?.type!==h1.AST_NODE_TYPES.Property)return e;let{value:i}=t,a=i;return r(a=i.type===h1.AST_NODE_TYPES.Literal?i.value:x4.getStaticValue(i,n)?.value)?a:e}(Ee("capture",r.properties,n)),i=Ee("signal",r.properties,n);return{capture:t,signal:i?.type===h1.AST_NODE_TYPES.Property?function t(n,r){if(null==n)return e;switch(n.type){case h1.AST_NODE_TYPES.Identifier:return t(x5(x9(n,r),0),r);case h1.AST_NODE_TYPES.MemberExpression:return n;default:return e}}(i.value,n):e}}default:return w3}}(t)}function w4(e){return e?.type===h1.AST_NODE_TYPES.NewExpression&&e.callee.type===h1.AST_NODE_TYPES.Identifier&&"ResizeObserver"===e.callee.name}function w8(e,t){switch(!0){case t.type===h1.AST_NODE_TYPES.Identifier:return w4(x5(x9(t,e.sourceCode.getScope(t)),0));case t.type===h1.AST_NODE_TYPES.MemberExpression:return w8(e,t.object);default:return!1}}let w5={meta:{name:"eslint-plugin-react-web-api",version:"2.3.5"},rules:{"no-leaked-event-listener":w2({meta:{type:"problem",docs:{description:"Prevents leaked `addEventListener` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedRemoveEventListenerInCleanup:"An 'addEventListener' in '{{effectMethodKind}}' should have a corresponding 'removeEventListener' in its cleanup function.",expectedRemoveEventListenerInUnmount:"An 'addEventListener' in 'componentDidMount' should have a corresponding 'removeEventListener' in 'componentWillUnmount' method.",unexpectedInlineFunction:"A/an '{{eventMethodKind}}' should not have an inline listener function."},schema:[]},name:"no-leaked-event-listener",create:function(e){if(!e.sourceCode.text.includes("addEventListener")||!/use\w*Effect|componentDidMount|componentWillUnmount/u.test(e.sourceCode.text))return{};let t=[],n=[],r=[],i=[];function a(e,t){return!0==(e.type===h1.AST_NODE_TYPES.MemberExpression&&t.type===h1.AST_NODE_TYPES.MemberExpression)&&xC(e.object,t.object)}function o(t,n,r){let i=t.arguments.at(1);xD(i)&&null==r.signal&&e.report({messageId:"unexpectedInlineFunction",node:i,data:{eventMethodKind:n}})}return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(a){let s=t.findLast(e=>"other"!==e.kind)?.kind;null==s||ky.has(s)&&ls.match(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("addEventListener","removeEventListener","abort"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("addEventListener","removeEventListener","abort"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(a)).with("addEventListener",t=>{let[r,i,l]=a.arguments;if(null==r||null==i)return;let c=null==l?w3:w6(l,e.sourceCode.getScope(l)),{callee:u}=a;o(a,t,c),n.push({...c,type:r,node:a,callee:u,listener:i,method:"addEventListener",phase:s})}).with("removeEventListener",t=>{let[n,i,l]=a.arguments;if(null==n||null==i)return;let c=null==l?w3:w6(l,e.sourceCode.getScope(l)),{callee:u}=a;o(a,t,c),r.push({...c,type:n,node:a,callee:u,listener:i,method:"removeEventListener",phase:s})}).with("abort",()=>{i.push(a.callee)}).otherwise(()=>null)},"Program:exit"(){for(let t of n){let n=t.signal;if(!(null!=n&&i.some(e=>a(e,n)))&&!r.some(n=>(function(t,n){let{type:r,callee:i,capture:o,listener:s,phase:l}=t,{type:c,callee:u,capture:_,listener:d,phase:p}=n;return!!kv(l,p)&&a(i,u)&&xC(s,d)&&Ei(r,c,[e.sourceCode.getScope(r),e.sourceCode.getScope(c)])&&o===_})(t,n)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedRemoveEventListenerInCleanup",node:t.node,data:{effectMethodKind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedRemoveEventListenerInUnmount",node:t.node});continue}}}}},defaultOptions:[]}),"no-leaked-interval":w2({meta:{type:"problem",docs:{description:"Prevents leaked `setInterval` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedClearIntervalInCleanup:"A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the cleanup function.",expectedClearIntervalInUnmount:"A 'setInterval' created in '{{ kind }}' must be cleared with 'clearInterval' in the 'componentWillUnmount' method.",expectedIntervalId:"A 'setInterval' must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-interval",create:function(e){if(!e.sourceCode.text.includes("setInterval"))return{};let t=[],n=[],r=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){switch(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setInterval","clearInterval"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setInterval","clearInterval"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(i)){case"setInterval":{let r=t.findLast(e=>"other"!==e.kind);if(null==r||!ky.has(r.kind))break;let a=x8(i);if(null==a){e.report({messageId:"expectedIntervalId",node:i});break}n.push({kind:"interval",node:i,callee:i.callee,phase:r.kind,timerId:a});break}case"clearInterval":{let e=t.findLast(e=>"other"!==e.kind);if(null==e||!ky.has(e.kind))break;let[n]=i.arguments;if(null==n)break;r.push({kind:"interval",node:i,callee:i.callee,phase:e.kind,timerId:n})}}},"Program:exit"(){for(let t of n)if(!r.some(n=>E1(e,t.timerId,n.timerId)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedClearIntervalInCleanup",node:t.node,data:{kind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedClearIntervalInUnmount",node:t.node,data:{kind:"componentDidMount"}});continue}}}},defaultOptions:[]}),"no-leaked-resize-observer":w2({meta:{type:"problem",docs:{description:"Prevents leaked `ResizeObserver` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedDisconnectInControlFlow:"Dynamically added 'ResizeObserver.observe' should be cleared all at once using 'ResizeObserver.disconnect' in the cleanup function.",expectedDisconnectOrUnobserveInCleanup:"A 'ResizeObserver' instance created in 'useEffect' must be disconnected in the cleanup function.",unexpectedFloatingInstance:"A 'ResizeObserver' instance created in component or custom Hook must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-resize-observer",create:function(e){if(!e.sourceCode.text.includes("ResizeObserver"))return{};let t=[],n=[],r=[],i=[],a=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(n){if(n.callee.type!==h1.AST_NODE_TYPES.MemberExpression)return;let o=t.findLast(e=>"other"!==e.kind)?.kind;if(null==o||!ky.has(o))return;let{object:s}=n.callee;ls.match(function(e,t){switch(!0){case t.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("observe","unobserve","disconnect"))(t.callee.name)&&w8(e,t.callee):return t.callee.name;case t.callee.type===h1.AST_NODE_TYPES.MemberExpression&&t.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("observe","unobserve","disconnect"))(t.callee.property.name)&&w8(e,t.callee):return t.callee.property.name;default:return"other"}}(e,n)).with("disconnect",()=>{a.push({kind:"ResizeObserver",node:n,callee:n.callee,method:"disconnect",observer:s,phase:o})}).with("observe",()=>{let[e]=n.arguments;null!=e&&r.push({kind:"ResizeObserver",node:n,callee:n.callee,element:e,method:"observe",observer:s,phase:o})}).with("unobserve",()=>{let[e]=n.arguments;null!=e&&i.push({kind:"ResizeObserver",node:n,callee:n.callee,element:e,method:"unobserve",observer:s,phase:o})}).otherwise(()=>null)},NewExpression(r){let i=t.findLast(e=>"other"!==e.kind);if(null==i||!ky.has(i.kind)||!w4(r))return;let a=EZ(r);null==a?e.report({messageId:"unexpectedFloatingInstance",node:r}):n.push({id:a,node:r,phase:i.kind,phaseNode:i.node})},"Program:exit"(){for(let{id:t,node:o,phaseNode:s}of n){if(a.some(n=>E1(e,n.observer,t)))continue;let n=r.filter(n=>E1(e,n.observer,t)),l=i.filter(n=>E1(e,n.observer,t)),c=e=>e?.type===h1.AST_NODE_TYPES.CallExpression||xR(e),u=e=>e===s;if(n.some(e=>!u(xz(e.node,s5(c,u))))){e.report({messageId:"expectedDisconnectInControlFlow",node:o});continue}for(let t of n)l.some(n=>E1(e,n.element,t.element))||e.report({messageId:"expectedDisconnectOrUnobserveInCleanup",node:t.node})}}}},defaultOptions:[]}),"no-leaked-timeout":w2({meta:{type:"problem",docs:{description:"Prevents leaked `setTimeout` in a component or custom Hook.",[Symbol.for("rule_features")]:[]},messages:{expectedClearTimeoutInCleanup:"A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the cleanup function.",expectedClearTimeoutInUnmount:"A 'setTimeout' created in '{{ kind }}' must be cleared with 'clearTimeout' in the 'componentWillUnmount' method.",expectedTimeoutId:"A 'setTimeout' must be assigned to a variable for proper cleanup."},schema:[]},name:"no-leaked-timeout",create:function(e){if(!e.sourceCode.text.includes("setTimeout"))return{};let t=[],n=[],r=[];return{":function"(e){let n=kb(e)??"other";t.push({kind:n,node:e})},":function:exit"(){t.pop()},CallExpression(i){let a=t.findLast(e=>"other"!==e.kind);if(ky.has(a?.kind))switch(function(e){switch(!0){case e.callee.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setTimeout","clearTimeout"))(e.callee.name):return e.callee.name;case e.callee.type===h1.AST_NODE_TYPES.MemberExpression&&e.callee.property.type===h1.AST_NODE_TYPES.Identifier&&ls.isMatching(ls.P.union("setTimeout","clearTimeout"))(e.callee.property.name):return e.callee.property.name;default:return"other"}}(i)){case"setTimeout":{let t=x8(i);if(null==t){e.report({messageId:"expectedTimeoutId",node:i});break}n.push({kind:"timeout",node:i,callee:i.callee,phase:a.kind,timerId:t});break}case"clearTimeout":{let[e]=i.arguments;if(null==e)break;r.push({kind:"timeout",node:i,callee:i.callee,phase:a.kind,timerId:e})}}},"Program:exit"(){for(let t of n)if(!r.some(n=>E1(e,t.timerId,n.timerId)))switch(t.phase){case"setup":case"cleanup":e.report({messageId:"expectedClearTimeoutInCleanup",node:t.node,data:{kind:"useEffect"}});continue;case"mount":case"unmount":e.report({messageId:"expectedClearTimeoutInUnmount",node:t.node,data:{kind:"componentDidMount"}});continue}}}},defaultOptions:[]})}},{toFlatConfig:w7}=_g("react-web-api",w5);var w9={...w5,configs:{recommended:w7(wQ)}},Ae=Object.defineProperty,At=e=>{let t={};for(var n in e)Ae(t,n,{get:e[n],enumerable:!0});return t};function An(e){let{polymorphicPropName:t}=_R(e);return{resolve(n){let r=Ez(e,n),i={domElementType:r,jsxElementType:r};if(r===r.toLowerCase()||null==t)return i;let a=EL(e,n)(t);if(null!=a){let n=EM(e,a).toStatic(t);if("string"==typeof n)return{...i,domElementType:n}}return i}}}let Ar=h1.ESLintUtils.RuleCreator(function(e){return`${_h}/docs/rules/dom-${e}`}),Ai="dangerouslySetInnerHTML";var Aa=Ar({meta:{type:"problem",docs:{description:"Disallow `dangerouslySetInnerHTML`.",[Symbol.for("rule_features")]:[]},messages:{noDangerouslySetInnerhtml:"Using 'dangerouslySetInnerHTML' may have security implications."},schema:[]},name:"no-dangerously-set-innerhtml",create:function(e){return e.sourceCode.text.includes(Ai)?{JSXElement(t){let n=EL(e,t)(Ai);null!=n&&e.report({messageId:"noDangerouslySetInnerhtml",node:n})}}:{}},defaultOptions:[]}),Ao=Ar({meta:{type:"problem",docs:{description:"Disallow `dangerouslySetInnerHTML` and `children` at the same time.",[Symbol.for("rule_features")]:[]},messages:{noDangerouslySetInnerhtmlWithChildren:"A DOM component cannot use both children and 'dangerouslySetInnerHTML'."},schema:[]},name:"no-dangerously-set-innerhtml-with-children",create:function(e){return e.sourceCode.text.includes(As)?{JSXElement(t){let n=EL(e,t);if(null==n(As))return;let r=n("children")??t.children.find(Al);null!=r&&e.report({messageId:"noDangerouslySetInnerhtmlWithChildren",node:r})}}:{}},defaultOptions:[]});let As="dangerouslySetInnerHTML";function Al(e){return!EV(e)||!(""===e.raw.trim()&&e.raw.includes("\n"))}var Ac=Ar({meta:{type:"problem",docs:{description:"Disallow `findDOMNode`.",[Symbol.for("rule_features")]:[]},messages:{noFindDomNode:"[Deprecated] Use alternatives instead."},schema:[]},name:"no-find-dom-node",create:function(e){return e.sourceCode.text.includes(Au)?{CallExpression(t){let{callee:n}=t;switch(n.type){case _q.AST_NODE_TYPES.Identifier:n.name===Au&&e.report({messageId:"noFindDomNode",node:t});return;case _q.AST_NODE_TYPES.MemberExpression:n.property.type===_q.AST_NODE_TYPES.Identifier&&n.property.name===Au&&e.report({messageId:"noFindDomNode",node:t});return}}}:{}},defaultOptions:[]});let Au="findDOMNode";var A_=Ar({meta:{type:"problem",docs:{description:"Disallow `flushSync`.",[Symbol.for("rule_features")]:[]},messages:{noFlushSync:"Using 'flushSync' is uncommon and can hurt the performance of your app."},schema:[]},name:"no-flush-sync",create:function(e){return e.sourceCode.text.includes(Ad)?{CallExpression(t){let{callee:n}=t;switch(n.type){case _q.AST_NODE_TYPES.Identifier:n.name===Ad&&e.report({messageId:"noFlushSync",node:t});return;case _q.AST_NODE_TYPES.MemberExpression:n.property.type===_q.AST_NODE_TYPES.Identifier&&n.property.name===Ad&&e.report({messageId:"noFlushSync",node:t});return}}}:{}},defaultOptions:[]});let Ad="flushSync";var Ap=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `ReactDom.hydrate()` with `hydrateRoot()`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noHydrate:"[Deprecated] Use 'hydrateRoot()' instead."},schema:[]},name:"no-hydrate",create:function(e){if(!e.sourceCode.text.includes(Af)||kD(_R(e).version,"18.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.name===Af&&t.has(r.callee.object.name):var i,a;e.report({messageId:"noHydrate",node:r,fix:(i=e,a=r,e=>{let[t,n]=a.arguments;return null==t||null==n?null:[e.insertTextBefore(i.sourceCode.ast,'import { hydrateRoot } from "react-dom/client";\n'),e.replaceText(a,`hydrateRoot(${i.sourceCode.getText(n)}, ${i.sourceCode.getText(t)})`)]})});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;r.imported.name===Af&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let Af="hydrate",Am=["button","submit","reset"];var Ag=Ar({meta:{type:"problem",docs:{description:"Enforces explicit `type` attribute for `button` elements.",[Symbol.for("rule_features")]:["FIX"]},hasSuggestions:!0,messages:{addButtonType:"Add 'type' attribute with value '{{type}}'.",noMissingButtonType:"Add missing 'type' attribute on 'button' component."},schema:[]},name:"no-missing-button-type",create:function(e){let t=An(e);return{JSXElement(n){"button"!==t.resolve(n).domElementType||null==EL(e,n)("type")&&e.report({messageId:"noMissingButtonType",node:n.openingElement,suggest:Am.map(e=>({messageId:"addButtonType",data:{type:e},fix:t=>t.insertTextAfter(n.openingElement.name,` type="${e}"`)}))})}}},defaultOptions:[]}),Ah=Ar({meta:{type:"problem",docs:{description:"Enforces explicit `sandbox` prop for `iframe` elements.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",hasSuggestions:!0,messages:{addIframeSandbox:"Add 'sandbox' prop with value '{{value}}'.",noMissingIframeSandbox:"Add missing 'sandbox' prop on 'iframe' component."},schema:[]},name:"no-missing-iframe-sandbox",create:function(e){let t=An(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if("iframe"!==r)return;let i=EL(e,n)("sandbox");if(null==i)return void e.report({messageId:"noMissingIframeSandbox",node:n.openingElement,suggest:[{messageId:"addIframeSandbox",data:{value:""},fix:e=>e.insertTextAfter(n.openingElement.name,' sandbox=""')}]});let a=EM(e,i);"string"!=typeof a.toStatic("sandbox")&&e.report({messageId:"noMissingIframeSandbox",node:a.node??i,suggest:[{messageId:"addIframeSandbox",data:{value:""},fix:e=>a.kind.startsWith("spread")?null:e.replaceText(i,'sandbox=""')}]})}}},defaultOptions:[]}),Ay=Ar({meta:{type:"problem",docs:{description:"Enforces the absence of a `namespace` in React elements.",[Symbol.for("rule_features")]:[]},messages:{noNamespace:"A React component '{{name}}' must not be in a namespace, as React does not support them."},schema:[]},name:"no-namespace",create:function(e){return{JSXElement(t){let n=Ez(e,t);"string"==typeof n&&n.includes(":")&&e.report({messageId:"noNamespace",node:t.openingElement.name,data:{name:n}})}}},defaultOptions:[]}),Av=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `ReactDom.render()` with `createRoot(node).render()`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noRender:"[Deprecated] Use 'createRoot(node).render()' instead."},schema:[]},name:"no-render",create:function(e){if(!e.sourceCode.text.includes("render")||kD(_R(e).version,"18.0.0","<"))return{};let t=new Set(["ReactDOM","ReactDom"]),n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name):var i,a;e.report({messageId:"noRender",node:r,fix:(i=e,a=r,e=>{let[t,n]=a.arguments;return null==t||null==n?null:[e.insertTextBefore(i.sourceCode.ast,'import { createRoot } from "react-dom/client";\n'),e.replaceText(a,`createRoot(${i.sourceCode.getText(n)}).render(${i.sourceCode.getText(t)})`)]})});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let Ab=[_q.AST_NODE_TYPES.VariableDeclarator,_q.AST_NODE_TYPES.Property,_q.AST_NODE_TYPES.ReturnStatement,_q.AST_NODE_TYPES.ArrowFunctionExpression,_q.AST_NODE_TYPES.AssignmentExpression];var AT=Ar({meta:{type:"problem",docs:{description:"Disallow the return value of `ReactDOM.render`.",[Symbol.for("rule_features")]:[]},messages:{noRenderReturnValue:"Do not depend on the return value from 'ReactDOM.render'."},schema:[]},name:"no-render-return-value",create:function(e){let t=new Set(["ReactDOM","ReactDom"]),n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name)&&Ab.includes(r.parent.type):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"render"===r.callee.property.name&&t.has(r.callee.object.name)&&Ab.includes(r.parent.type):e.report({messageId:"noRenderReturnValue",node:r});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;"render"===r.imported.name&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]}),AS=Ar({meta:{type:"problem",docs:{description:"Disallow `javascript:` URLs as attribute values.",[Symbol.for("rule_features")]:[]},messages:{noScriptUrl:"Using a `javascript:` URL is a security risk and should be avoided."},schema:[]},name:"no-script-url",create:function(e){return{JSXAttribute(t){if(t.name.type!==_q.AST_NODE_TYPES.JSXIdentifier||null==t.value)return;let n=EM(e,t).toStatic();"string"==typeof n&&_x.test(n)&&e.report({messageId:"noScriptUrl",node:t.value})}}},defaultOptions:[]}),Ax=Ar({meta:{type:"problem",docs:{description:"Disallows the use of string style prop.",[Symbol.for("rule_features")]:[]},messages:{noStringStyleProp:"Do not use string style prop. Use an object instead."},schema:[]},name:"no-string-style-prop",create:function(e){return{JSXElement(t){if(!Eq(e,t))return;let n=EL(e,t)("style");if(null==n)return;let r=EM(e,n);"string"==typeof r.toStatic()&&e.report({messageId:"noStringStyleProp",node:r.node??n})}}},defaultOptions:[]});let AE=[],Ak={"accept-charset":"acceptCharset",class:"className",crossorigin:"crossOrigin",for:"htmlFor","http-equiv":"httpEquiv",nomodule:"noModule"},AP={"accent-height":"accentHeight","alignment-baseline":"alignmentBaseline","arabic-form":"arabicForm","baseline-shift":"baselineShift","cap-height":"capHeight","clip-path":"clipPath","clip-rule":"clipRule","color-interpolation":"colorInterpolation","color-interpolation-filters":"colorInterpolationFilters","color-profile":"colorProfile","color-rendering":"colorRendering","dominant-baseline":"dominantBaseline","enable-background":"enableBackground","fill-opacity":"fillOpacity","fill-rule":"fillRule","flood-color":"floodColor","flood-opacity":"floodOpacity","font-family":"fontFamily","font-size":"fontSize","font-size-adjust":"fontSizeAdjust","font-stretch":"fontStretch","font-style":"fontStyle","font-variant":"fontVariant","font-weight":"fontWeight","glyph-name":"glyphName","glyph-orientation-horizontal":"glyphOrientationHorizontal","glyph-orientation-vertical":"glyphOrientationVertical","horiz-adv-x":"horizAdvX","horiz-origin-x":"horizOriginX","image-rendering":"imageRendering","letter-spacing":"letterSpacing","lighting-color":"lightingColor","marker-end":"markerEnd","marker-mid":"markerMid","marker-start":"markerStart","overline-position":"overlinePosition","overline-thickness":"overlineThickness","paint-order":"paintOrder","panose-1":"panose1","pointer-events":"pointerEvents","rendering-intent":"renderingIntent","shape-rendering":"shapeRendering","stop-color":"stopColor","stop-opacity":"stopOpacity","strikethrough-position":"strikethroughPosition","strikethrough-thickness":"strikethroughThickness","stroke-dasharray":"strokeDasharray","stroke-dashoffset":"strokeDashoffset","stroke-linecap":"strokeLinecap","stroke-linejoin":"strokeLinejoin","stroke-miterlimit":"strokeMiterlimit","stroke-opacity":"strokeOpacity","stroke-width":"strokeWidth","text-anchor":"textAnchor","text-decoration":"textDecoration","text-rendering":"textRendering","underline-position":"underlinePosition","underline-thickness":"underlineThickness","unicode-bidi":"unicodeBidi","unicode-range":"unicodeRange","units-per-em":"unitsPerEm","v-alphabetic":"vAlphabetic","v-hanging":"vHanging","v-ideographic":"vIdeographic","v-mathematical":"vMathematical","vector-effect":"vectorEffect","vert-adv-y":"vertAdvY","vert-origin-x":"vertOriginX","vert-origin-y":"vertOriginY","word-spacing":"wordSpacing","writing-mode":"writingMode","x-height":"xHeight","xlink:actuate":"xlinkActuate","xlink:arcrole":"xlinkArcrole","xlink:href":"xlinkHref","xlink:role":"xlinkRole","xlink:show":"xlinkShow","xlink:title":"xlinkTitle","xlink:type":"xlinkType","xml:base":"xmlBase","xml:lang":"xmlLang","xml:space":"xmlSpace"},AC={as:["link"],abbr:["th","td"],align:["applet","caption","col","colgroup","hr","iframe","img","table","tbody","td","tfoot","th","thead","tr"],allowFullScreen:["iframe","video"],autoPictureInPicture:["video"],charset:["meta"],checked:["input"],controls:["audio","video"],controlsList:["audio","video"],crossOrigin:["script","img","video","audio","link","image"],disablePictureInPicture:["video"],disableRemotePlayback:["audio","video"],displaystyle:["math"],download:["a","area"],fill:["altGlyph","circle","ellipse","g","line","marker","mask","path","polygon","polyline","rect","svg","symbol","text","textPath","tref","tspan","use","animate","animateColor","animateMotion","animateTransform","set"],focusable:["svg"],imageSizes:["link"],imageSrcSet:["link"],loop:["audio","video"],mozAllowFullScreen:["iframe","video"],muted:["audio","video"],noModule:["script"],onAbort:["audio","video"],onCanPlay:["audio","video"],onCanPlayThrough:["audio","video"],onCancel:["dialog"],onClose:["dialog"],onDurationChange:["audio","video"],onEmptied:["audio","video"],onEncrypted:["audio","video"],onEnded:["audio","video"],onError:["audio","video","img","link","source","script","picture","iframe"],onLoad:["script","img","link","picture","iframe","object","source"],onLoadStart:["audio","video"],onLoadedData:["audio","video"],onLoadedMetadata:["audio","video"],onPause:["audio","video"],onPlay:["audio","video"],onPlaying:["audio","video"],onProgress:["audio","video"],onRateChange:["audio","video"],onResize:["audio","video"],onSeeked:["audio","video"],onSeeking:["audio","video"],onStalled:["audio","video"],onSuspend:["audio","video"],onTimeUpdate:["audio","video"],onVolumeChange:["audio","video"],onWaiting:["audio","video"],playsInline:["video"],poster:["video"],preload:["audio","video"],property:["meta"],returnValue:["dialog"],scrolling:["iframe"],valign:["tr","td","th","thead","tbody","tfoot","colgroup","col"],viewBox:["marker","pattern","svg","symbol","view"],webkitAllowFullScreen:["iframe","video"],webkitDirectory:["input"]},Aw=["dir","draggable","hidden","id","lang","nonce","part","slot","style","title","translate","inert","accept","action","allow","alt","as","async","buffered","capture","challenge","cite","code","cols","content","coords","csp","data","decoding","default","defer","disabled","form","headers","height","high","href","icon","importance","integrity","kind","label","language","loading","list","loop","low","manifest","max","media","method","min","multiple","muted","name","open","optimum","pattern","ping","placeholder","poster","preload","profile","rel","required","reversed","role","rows","sandbox","scope","seamless","selected","shape","size","sizes","span","src","start","step","summary","target","type","value","width","wmode","wrap","accumulate","additive","alphabetic","amplitude","ascent","azimuth","bbox","begin","bias","by","clip","color","cursor","cx","cy","d","decelerate","descent","direction","display","divisor","dur","dx","dy","elevation","end","exponent","fill","filter","format","from","fr","fx","fy","g1","g2","hanging","height","hreflang","ideographic","in","in2","intercept","k","k1","k2","k3","k4","kerning","local","mask","mode","offset","opacity","operator","order","orient","orientation","origin","overflow","path","ping","points","r","radius","rel","restart","result","rotate","rx","ry","scale","seed","slope","spacing","speed","stemh","stemv","string","stroke","to","transform","u1","u2","unicode","values","version","visibility","widths","x","x1","x2","xmlns","y","y1","y2","z","property","ref","key","children","results","security","controls"],AA=["accessKey","autoCapitalize","autoFocus","contentEditable","enterKeyHint","exportParts","inputMode","itemID","itemRef","itemProp","itemScope","itemType","spellCheck","tabIndex","acceptCharset","autoComplete","autoPlay","border","cellPadding","cellSpacing","classID","codeBase","colSpan","contextMenu","dateTime","encType","formAction","formEncType","formMethod","formNoValidate","formTarget","frameBorder","hrefLang","httpEquiv","imageSizes","imageSrcSet","isMap","keyParams","keyType","marginHeight","marginWidth","maxLength","mediaGroup","minLength","noValidate","onAnimationEnd","onAnimationIteration","onAnimationStart","onBlur","onChange","onClick","onContextMenu","onCopy","onCompositionEnd","onCompositionStart","onCompositionUpdate","onCut","onDoubleClick","onDrag","onDragEnd","onDragEnter","onDragExit","onDragLeave","onError","onFocus","onInput","onKeyDown","onKeyPress","onKeyUp","onLoad","onWheel","onDragOver","onDragStart","onDrop","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onPaste","onScroll","onSelect","onSubmit","onToggle","onTransitionEnd","radioGroup","readOnly","referrerPolicy","rowSpan","srcDoc","srcLang","srcSet","useMap","fetchPriority","crossOrigin","accentHeight","alignmentBaseline","arabicForm","attributeName","attributeType","baseFrequency","baselineShift","baseProfile","calcMode","capHeight","clipPathUnits","clipPath","clipRule","colorInterpolation","colorInterpolationFilters","colorProfile","colorRendering","contentScriptType","contentStyleType","diffuseConstant","dominantBaseline","edgeMode","enableBackground","fillOpacity","fillRule","filterRes","filterUnits","floodColor","floodOpacity","fontFamily","fontSize","fontSizeAdjust","fontStretch","fontStyle","fontVariant","fontWeight","glyphName","glyphOrientationHorizontal","glyphOrientationVertical","glyphRef","gradientTransform","gradientUnits","horizAdvX","horizOriginX","imageRendering","kernelMatrix","kernelUnitLength","keyPoints","keySplines","keyTimes","lengthAdjust","letterSpacing","lightingColor","limitingConeAngle","markerEnd","markerMid","markerStart","markerHeight","markerUnits","markerWidth","maskContentUnits","maskUnits","mathematical","numOctaves","overlinePosition","overlineThickness","panose1","paintOrder","pathLength","patternContentUnits","patternTransform","patternUnits","pointerEvents","pointsAtX","pointsAtY","pointsAtZ","preserveAlpha","preserveAspectRatio","primitiveUnits","referrerPolicy","refX","refY","rendering-intent","repeatCount","repeatDur","requiredExtensions","requiredFeatures","shapeRendering","specularConstant","specularExponent","spreadMethod","startOffset","stdDeviation","stitchTiles","stopColor","stopOpacity","strikethroughPosition","strikethroughThickness","strokeDasharray","strokeDashoffset","strokeLinecap","strokeLinejoin","strokeMiterlimit","strokeOpacity","strokeWidth","surfaceScale","systemLanguage","tableValues","targetX","targetY","textAnchor","textDecoration","textRendering","textLength","transformOrigin","underlinePosition","underlineThickness","unicodeBidi","unicodeRange","unitsPerEm","vAlphabetic","vHanging","vIdeographic","vMathematical","vectorEffect","vertAdvY","vertOriginX","vertOriginY","viewBox","viewTarget","wordSpacing","writingMode","xHeight","xChannelSelector","xlinkActuate","xlinkArcrole","xlinkHref","xlinkRole","xlinkShow","xlinkTitle","xlinkType","xmlBase","xmlLang","xmlnsXlink","xmlSpace","yChannelSelector","zoomAndPan","autoCorrect","autoSave","className","dangerouslySetInnerHTML","defaultValue","defaultChecked","htmlFor","onBeforeInput","onChange","onInvalid","onReset","onTouchCancel","onTouchEnd","onTouchMove","onTouchStart","suppressContentEditableWarning","suppressHydrationWarning","onAbort","onCanPlay","onCanPlayThrough","onDurationChange","onEmptied","onEncrypted","onEnded","onLoadedData","onLoadedMetadata","onLoadStart","onPause","onPlay","onPlaying","onProgress","onRateChange","onResize","onSeeked","onSeeking","onStalled","onSuspend","onTimeUpdate","onVolumeChange","onWaiting","onCopyCapture","onCutCapture","onPasteCapture","onCompositionEndCapture","onCompositionStartCapture","onCompositionUpdateCapture","onFocusCapture","onBlurCapture","onChangeCapture","onBeforeInputCapture","onInputCapture","onResetCapture","onSubmitCapture","onInvalidCapture","onLoadCapture","onErrorCapture","onKeyDownCapture","onKeyPressCapture","onKeyUpCapture","onAbortCapture","onCanPlayCapture","onCanPlayThroughCapture","onDurationChangeCapture","onEmptiedCapture","onEncryptedCapture","onEndedCapture","onLoadedDataCapture","onLoadedMetadataCapture","onLoadStartCapture","onPauseCapture","onPlayCapture","onPlayingCapture","onProgressCapture","onRateChangeCapture","onSeekedCapture","onSeekingCapture","onStalledCapture","onSuspendCapture","onTimeUpdateCapture","onVolumeChangeCapture","onWaitingCapture","onSelectCapture","onTouchCancelCapture","onTouchEndCapture","onTouchMoveCapture","onTouchStartCapture","onScrollCapture","onWheelCapture","onAnimationEndCapture","onAnimationIteration","onAnimationStartCapture","onTransitionEndCapture","onAuxClick","onAuxClickCapture","onClickCapture","onContextMenuCapture","onDoubleClickCapture","onDragCapture","onDragEndCapture","onDragEnterCapture","onDragExitCapture","onDragLeaveCapture","onDragOverCapture","onDragStartCapture","onDropCapture","onMouseDown","onMouseDownCapture","onMouseMoveCapture","onMouseOutCapture","onMouseOverCapture","onMouseUpCapture","autoPictureInPicture","controlsList","disablePictureInPicture","disableRemotePlayback"],AD=["charset","allowFullScreen","webkitAllowFullScreen","mozAllowFullScreen","webkitDirectory"],AN=["aria-atomic","aria-braillelabel","aria-brailleroledescription","aria-busy","aria-controls","aria-current","aria-describedby","aria-description","aria-details","aria-disabled","aria-dropeffect","aria-errormessage","aria-flowto","aria-grabbed","aria-haspopup","aria-hidden","aria-invalid","aria-keyshortcuts","aria-label","aria-labelledby","aria-live","aria-owns","aria-relevant","aria-roledescription","aria-autocomplete","aria-checked","aria-expanded","aria-level","aria-modal","aria-multiline","aria-multiselectable","aria-orientation","aria-placeholder","aria-pressed","aria-readonly","aria-required","aria-selected","aria-sort","aria-valuemax","aria-valuemin","aria-valuenow","aria-valuetext","aria-activedescendant","aria-colcount","aria-colindex","aria-colindextext","aria-colspan","aria-posinset","aria-rowcount","aria-rowindex","aria-rowindextext","aria-rowspan","aria-setsize"],AF=["onGotPointerCapture","onGotPointerCaptureCapture","onLostPointerCapture","onLostPointerCapture","onLostPointerCaptureCapture","onPointerCancel","onPointerCancelCapture","onPointerDown","onPointerDownCapture","onPointerEnter","onPointerEnterCapture","onPointerLeave","onPointerLeaveCapture","onPointerMove","onPointerMoveCapture","onPointerOut","onPointerOutCapture","onPointerOver","onPointerOverCapture","onPointerUp","onPointerUpCapture"],AO=["popover","popoverTarget","popoverTargetAction","onToggle","onBeforeToggle"];function AI(e,t){return Object.hasOwn(e,t)}function AL(e,t,n){let{version:r}=_R(e);return kD(r,n,t)}var AM=Ar({meta:{type:"problem",docs:{description:"Disallow unknown `DOM` property."},fixable:"code",messages:{dataLowercaseRequired:"React does not recognize data-* props with uppercase characters on a DOM element. Found '{{name}}', use '{{lowerCaseName}}' instead",invalidPropOnTag:"Invalid property '{{name}}' found on tag '{{tagName}}', but it is only allowed on: {{allowedTags}}",unknownProp:"Unknown property '{{name}}' found",unknownPropWithStandardName:"Unknown property '{{name}}' found, use '{{standardName}}' instead"},schema:[{type:"object",additionalProperties:!1,properties:{ignore:{type:"array",items:{type:"string"}},requireDataLowercase:{type:"boolean",default:!1}}}]},name:"no-unknown-property",create:function(e){return{JSXAttribute(t){var n;let r=e.options[0]?.ignore||AE,i=(n=t.name,e.sourceCode.getText(n));if(r.indexOf(i)>=0)return;let a=AD.find(e=>e.toLowerCase()===i.toLowerCase())||i;if(t.parent?.name&&"JSXMemberExpression"===t.parent.name.type)return;if(!/^data-xml/i.test(a)&&/^data-[^:]*$/.test(a)){e.options[0]&&void 0!==e.options[0].requireDataLowercase&&e.options[0].requireDataLowercase&&a.toLowerCase()!==a&&e.report({node:t,messageId:"dataLowercaseRequired",data:{name:i,lowerCaseName:i.toLowerCase()}});return}if(AN.some(e=>e===a))return;let o=t?.parent?.name?t.parent.name.name:null;if("fbt"===o||"fbs"===o||!/^[a-z][^-]*$/.test(t.parent.name.name)||t.parent.attributes.some(e=>"JSXAttribute"===e.type&&"JSXIdentifier"===e.name.type&&"is"===e.name.name))return;let s=AI(AC,a)?AC[a]:null;if(o&&s){-1===s.indexOf(o)&&e.report({node:t,messageId:"invalidPropOnTag",data:{name:i,allowedTags:s.join(", "),tagName:o}});return}let l=function(e,t){let n;return AI(Ak,e)?Ak[e]:AI(AP,e)?AP[e]:(n=AA.concat(Aw),AL(t,"<=","16.1.0")?n.push("allowTransparency"):(AL(t,">=","16.4.0")&&n.push(...AF),AL(t,">=","19.0.0-rc.0")?n.push(...AO):n.push(...AO.map(e=>e.toLowerCase()))),n).find(t=>t.toLowerCase()===e.toLowerCase())}(a,e),c=!!l&&l!==a;if(!l||l!==a){if(c)return void e.report({node:t,messageId:"unknownPropWithStandardName",data:{name:i,standardName:l},fix:e=>e.replaceText(t.name,l)});e.report({node:t,messageId:"unknownProp",data:{name:i}})}}}},defaultOptions:[]});let AR=["allow-scripts","allow-same-origin"];var Aj=Ar({meta:{type:"problem",docs:{description:"Enforces `sandbox` attribute for `iframe` elements is not set to unsafe combinations.",[Symbol.for("rule_features")]:[]},messages:{noUnsafeIframeSandbox:"Unsafe 'sandbox' attribute value on 'iframe' component."},schema:[]},name:"no-unsafe-iframe-sandbox",create:function(e){let t=An(e);return{JSXElement(n){var r;if("iframe"!==t.resolve(n).domElementType)return;let i=EL(e,n)("sandbox");if(null==i)return;let a=EM(e,i);"string"==typeof(r=a.toStatic("sandbox"))&&AR.every(e=>r.includes(e))&&e.report({messageId:"noUnsafeIframeSandbox",node:a.node??i})}}},defaultOptions:[]}),AY=Ar({meta:{type:"problem",docs:{description:'Disallow `target="_blank"` without `rel="noreferrer noopener"`.',[Symbol.for("rule_features")]:["FIX"]},fixable:"code",hasSuggestions:!0,messages:{addRelNoreferrerNoopener:"Add 'rel=\"noreferrer noopener\"' to the link to prevent security risks.",noUnsafeTargetBlank:"Using 'target=\"_blank\"' on an external link without 'rel=\"noreferrer noopener\"' is a security risk."},schema:[]},name:"no-unsafe-target-blank",create:function(e){let t=An(e);return{JSXElement(n){var r,i;let{domElementType:a}=t.resolve(n);if("a"!==a)return;let o=EL(e,n),s=o("target");if(null==s||"_blank"!==EM(e,s).toStatic("target"))return;let l=o("href");if(null==l||!("string"==typeof(r=EM(e,l).toStatic("href"))&&(r.startsWith("https://")||/^(?:\w+:|\/\/)/u.test(r))))return;let c=o("rel");null==c?e.report({messageId:"noUnsafeTargetBlank",node:n.openingElement,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.insertTextAfter(n.openingElement.name,' rel="noreferrer noopener"')}]}):"string"==typeof(i=EM(e,c).toStatic("rel"))&&("noreferrer"===i||/\bnoreferrer\b/u.test(i))||e.report({messageId:"noUnsafeTargetBlank",node:c,suggest:[{messageId:"addRelNoreferrerNoopener",fix:e=>e.replaceText(c,'rel="noreferrer noopener"')}]})}}},defaultOptions:[]}),AU=Ar({meta:{type:"problem",docs:{description:"Replaces usages of `useFormState` with `useActionState`.",[Symbol.for("rule_features")]:["MOD"]},fixable:"code",messages:{noUseFormState:"[Deprecated] Use 'useActionState' from 'react' package instead."},schema:[]},name:"no-use-form-state",create:function(e){if(!e.sourceCode.text.includes("useFormState")||kD(_R(e).version,"19.0.0","<"))return{};let t=new Set,n=new Set;return{CallExpression(r){switch(!0){case r.callee.type===_q.AST_NODE_TYPES.Identifier&&n.has(r.callee.name):case r.callee.type===_q.AST_NODE_TYPES.MemberExpression&&r.callee.object.type===_q.AST_NODE_TYPES.Identifier&&r.callee.property.type===_q.AST_NODE_TYPES.Identifier&&"useFormState"===r.callee.property.name&&t.has(r.callee.object.name):e.report({messageId:"noUseFormState",node:r,fix:function(e,t){let{importSource:n}=_R(e);return r=>[r.insertTextBefore(e.sourceCode.ast,`import { useActionState } from "${n}";
400
400
  `),r.replaceText(t.callee,"useActionState")]}(e,r)});return}},ImportDeclaration(e){let[r]=e.source.value.split("/");if("react-dom"===r)for(let r of e.specifiers)switch(r.type){case _q.AST_NODE_TYPES.ImportSpecifier:if(r.imported.type!==_q.AST_NODE_TYPES.Identifier)continue;"useFormState"===r.imported.name&&n.add(r.local.name);continue;case _q.AST_NODE_TYPES.ImportDefaultSpecifier:case _q.AST_NODE_TYPES.ImportNamespaceSpecifier:t.add(r.local.name);continue}}}},defaultOptions:[]});let AB=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","menuitem","meta","param","source","track","wbr"]);var AV=Ar({meta:{type:"problem",docs:{description:"Disallow `children` in void DOM elements.",[Symbol.for("rule_features")]:[]},messages:{noVoidElementsWithChildren:"'{{elementType}}' is a void element tag and must not have children."},schema:[]},name:"no-void-elements-with-children",create:function(e){let t=An(e);return{JSXElement(n){let{domElementType:r}=t.resolve(n);if(!AB.has(r))return;let i=EL(e,n),a=null!=i("children"),o=null!=i("dangerouslySetInnerHTML");(n.children.length>0||a||o)&&e.report({messageId:"noVoidElementsWithChildren",node:n,data:{elementType:r}})}}},defaultOptions:[]}),AJ=Ar({meta:{type:"problem",docs:{description:"Enforces React Dom is imported via a namespace import.",[Symbol.for("rule_features")]:["FIX"]},fixable:"code",messages:{preferNamespaceImport:"Prefer importing React DOM via a namespace import."},schema:[]},name:"prefer-namespace-import",create:function(e){return{"ImportDeclaration ImportDefaultSpecifier"(t){let n=t.parent.source.value;if(!Az.includes(n))return;let r=t.parent.specifiers.length>1;e.report({messageId:"preferNamespaceImport",node:r?t:t.parent,data:{importSource:n},fix(i){let a=e.sourceCode.getText(t.parent),o=a.endsWith(";")?";":"",s=t.parent.source.raw.at(0)??"'",l=`import${"type"===t.parent.importKind?" type":""}`,c=`${s}${n}${s}`;if(!r)return i.replaceText(t.parent,`${l} * as ${t.local.name} from ${c}${o}`);let u=a.slice(a.indexOf("{"),a.indexOf("}")+1);return i.replaceText(t.parent,`${l} * as ${t.local.name} from ${c}${o}
401
- ${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]});let Az=["react-dom","react-dom/client","react-dom/server"],Aq={meta:{name:"eslint-plugin-react-dom",version:"2.3.4"},rules:{"no-dangerously-set-innerhtml":Aa,"no-dangerously-set-innerhtml-with-children":Ao,"no-find-dom-node":Ac,"no-flush-sync":A_,"no-hydrate":Ap,"no-missing-button-type":Ag,"no-missing-iframe-sandbox":Ah,"no-namespace":Ay,"no-render":Av,"no-render-return-value":AT,"no-script-url":AS,"no-string-style-prop":Ax,"no-unknown-property":AM,"no-unsafe-iframe-sandbox":Aj,"no-unsafe-target-blank":AY,"no-use-form-state":AU,"no-void-elements-with-children":AV,"prefer-namespace-import":AJ}};var A$=At({name:()=>AW,plugins:()=>AH,rules:()=>AK,settings:()=>AG});let AW="react-dom/recommended",AK={"react-dom/no-dangerously-set-innerhtml":"warn","react-dom/no-dangerously-set-innerhtml-with-children":"error","react-dom/no-find-dom-node":"error","react-dom/no-flush-sync":"error","react-dom/no-hydrate":"error","react-dom/no-namespace":"error","react-dom/no-render":"error","react-dom/no-render-return-value":"error","react-dom/no-script-url":"warn","react-dom/no-unsafe-iframe-sandbox":"warn","react-dom/no-use-form-state":"error","react-dom/no-void-elements-with-children":"error"},AH={"react-dom":Aq},AG={"react-x":_L};var AX=At({name:()=>AQ,plugins:()=>A0,rules:()=>AZ,settings:()=>A1});let AQ="react-dom/strict",AZ={...AK,"react-dom/no-missing-button-type":"warn","react-dom/no-missing-iframe-sandbox":"warn","react-dom/no-unsafe-target-blank":"warn"},A0={...AH},A1={...AG},{toFlatConfig:A2}=_g("react-dom",Aq);var A3={...Aq,configs:{recommended:A2(A$),strict:A2(AX)}},A6=Object.defineProperty,A4=e=>{let t={};for(var n in e)A6(t,n,{get:e[n],enumerable:!0});return t},A8=A4({name:()=>A5,plugins:()=>A9,rules:()=>A7});let A5="@eslint-react/dom",A7={"@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-use-form-state":"error","@eslint-react/dom/no-void-elements-with-children":"error"},A9={"@eslint-react/dom":A3};var De=A4({name:()=>Dt,plugins:()=>Dr,rules:()=>Dn,settings:()=>Di});let Dt="@eslint-react/x",Dn={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/prefer-use-state-lazy-initialization":"warn"},Dr={"@eslint-react":wC},Di={"react-x":_L};var Da=A4({name:()=>Do,plugins:()=>Dl,rules:()=>Ds,settings:()=>Dc});let Do="@eslint-react/all",Ds={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-no-iife":"warn","@eslint-react/jsx-no-undef":"error","@eslint-react/jsx-shorthand-boolean":"warn","@eslint-react/jsx-shorthand-fragment":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-prop":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-class-component":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forbidden-props":"off","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-missing-component-display-name":"warn","@eslint-react/no-missing-context-display-name":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-unused-props":"off","@eslint-react/no-unused-state":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/prefer-namespace-import":"warn","@eslint-react/prefer-read-only-props":"off","@eslint-react/prefer-use-state-lazy-initialization":"warn","@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-string-style-prop":"error","@eslint-react/dom/no-unknown-property":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn","@eslint-react/dom/no-use-form-state":"warn","@eslint-react/dom/no-void-elements-with-children":"error","@eslint-react/dom/prefer-namespace-import":"warn","@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn","@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/component-name":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/filename":"off","@eslint-react/naming-convention/filename-extension":"off","@eslint-react/naming-convention/use-state":"warn"},Dl={...Dr,...A9,"@eslint-react/hooks-extra":wL,"@eslint-react/naming-convention":wG,"@eslint-react/web-api":w9},Dc={...Di};var Du=A4({name:()=>D_,rules:()=>Dd});let D_="@eslint-react/disable-conflict-eslint-plugin-react",Dd=Object.fromEntries(["button-has-type","destructuring-assignment","display-name","forbid-prop-types","forward-ref-uses-ref","hook-use-state","iframe-missing-sandbox","jsx-boolean-value","jsx-filename-extension","jsx-fragments","jsx-key","jsx-no-comment-textnodes","jsx-no-constructed-context-values","jsx-no-duplicate-props","jsx-no-leaked-render","jsx-no-script-url","jsx-no-target-blank","jsx-no-undef","jsx-no-useless-fragment","jsx-pascal-case","jsx-uses-react","jsx-uses-vars","no-access-state-in-setstate","no-array-index-key","no-children-prop","no-danger","no-danger-with-children","no-deprecated","no-did-mount-set-state","no-did-update-set-state","no-direct-mutation-state","no-find-dom-node","no-namespace","no-object-type-as-default-prop","no-redundant-should-component-update","no-render-return-value","no-string-refs","no-unknown-property","no-unsafe","no-unstable-nested-components","no-unused-class-component-members","no-unused-state","no-will-update-set-state","prefer-read-only-props","prop-types","void-dom-elements-no-children"].map(e=>[e,"off"]));var Dp=A4({name:()=>Df,rules:()=>Dm});let Df="@eslint-react/disable-dom",Dm=Object.fromEntries(Object.entries(A7).map(([e])=>[e,"off"]));var Dg=A4({name:()=>Dh,rules:()=>Dy});let Dh="@eslint-react/disable-type-checked",Dy={"@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-unused-props":"off","@eslint-react/prefer-read-only-props":"off"};var Dv=A4({name:()=>Db,plugins:()=>DS,rules:()=>DT,settings:()=>Dx});let Db="@eslint-react/web-api",DT={"@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn"},DS={"@eslint-react/web-api":w9},Dx={...Di};var DE=A4({name:()=>Dk,rules:()=>DP});let Dk="@eslint-react/disable-web-api",DP=Object.fromEntries(Object.entries(DT).map(([e])=>[e,"off"]));var DC=A4({name:()=>Dw,plugins:()=>DD,rules:()=>DA});let Dw="@eslint-react/no-deprecated",DA={"@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-create-ref":"error","@eslint-react/no-forward-ref":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error"},DD={...Dr,...A9};var DN=A4({name:()=>DF,rules:()=>DO});let DF="@eslint-react/off",DO={...Object.fromEntries(Object.entries(Ds).map(([e])=>[e,"off"])),...Dy};var DI=A4({name:()=>DL,plugins:()=>DR,rules:()=>DM,settings:()=>Dj});let DL="@eslint-react/recommended",DM={...Dn,...A7,...DT,"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/use-state":"warn"},DR={...Dr,...A9,...DS,"@eslint-react/hooks-extra":wL,"@eslint-react/naming-convention":wG},Dj={...Di};var DY=A4({name:()=>DU,plugins:()=>DV,rules:()=>DB,settings:()=>DJ});let DU="@eslint-react/recommended-typescript",DB={...DM,"@eslint-react/dom/no-string-style-prop":"off","@eslint-react/dom/no-unknown-property":"off","@eslint-react/jsx-no-duplicate-props":"off","@eslint-react/jsx-no-undef":"off","@eslint-react/jsx-uses-react":"off","@eslint-react/jsx-uses-vars":"off"},DV={...DR},DJ={...Dj};var Dz=A4({name:()=>Dq,plugins:()=>DW,rules:()=>D$,settings:()=>DK});let Dq="@eslint-react/recommended-type-checked",D$={...DB,"@eslint-react/no-leaked-conditional-rendering":"error"},DW={...DV},DK={...DJ};var DH=A4({name:()=>DG,plugins:()=>DQ,rules:()=>DX,settings:()=>DZ});let DG="@eslint-react/strict",DX={...DM,"@eslint-react/jsx-no-iife":"error","@eslint-react/no-children-prop":"error","@eslint-react/no-class-component":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-state":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn"},DQ={...DR},DZ={...Dj};var D0=A4({name:()=>D1,plugins:()=>D3,rules:()=>D2,settings:()=>D6});let D1="@eslint-react/strict-typescript",D2={...DX,...DB},D3={...DQ},D6={...DZ};var D4=A4({name:()=>D8,plugins:()=>D7,rules:()=>D5,settings:()=>D9});let D8="@eslint-react/strict-type-checked",D5={...D2,"@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unused-props":"warn"},D7={...D3},D9={...D6},Ne={meta:{name:"@eslint-react/eslint-plugin",version:"2.3.4"},configs:{all:Da,"disable-conflict-eslint-plugin-react":Du,"disable-dom":Dp,"disable-type-checked":Dg,"disable-web-api":DE,dom:A8,"no-deprecated":DC,off:DN,recommended:DI,"recommended-type-checked":Dz,"recommended-typescript":DY,strict:DH,"strict-type-checked":D4,"strict-typescript":D0,"web-api":Dv,x:De},rules:{...wC.rules}},Nt=sb.memo(Ne,"@eslint-react/eslint-plugin"),Nn=sb.memo(sj.fixupPluginRules(sR),"eslint-plugin-ssr-friendly");async function Nr({files:e=[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],reactCompiler:t,additionalHooks:n="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample|useAbortableEffect)",nextjs:r=!1,remix:i=!1,reactRefresh:a={},additionalHooksWithType:o={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:s=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:l=!1}=a;e="function"==typeof e?e([sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX]):sU.castArray(e);let c=[sb.UNSAFE_excludeJsonYamlFiles({name:"@eslint-sukka/react base",files:e,plugins:{"@stylistic":sb.memo(sM.stylistic_eslint_plugin,"@stylistic/eslint-plugin"),"react-prefer-function-component":sb.memo(s8,"eslint-plugin-react-prefer-function-component"),...Nt.configs.recommended.plugins,"ssr-friendly":Nn,"react-refresh":sx},settings:{"react-x":{version:"detect",additionalHooks:o,additionalComponents:s}},languageOptions:{globals:sb.globals.browser},rules:{"@stylistic/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],...Nt.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/jsx-no-comment-textnodes":"error","@eslint-react/dom/no-unsafe-target-blank":"error","@eslint-react/no-children-prop":"error","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/no-unused-state":"error","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/dom/no-script-url":"error","@eslint-react/no-unused-class-component-members":"error","@eslint-react/naming-convention/component-name":["error",{rule:"PascalCase"}],"@eslint-react/naming-convention/filename":["error",{rule:"kebab-case"}],"@eslint-react/naming-convention/filename-extension":["error",{allow:"as-needed"}],"@eslint-react/naming-convention/use-state":"error","react-prefer-function-component/react-prefer-function-component":"error","@stylistic/jsx-self-closing-comp":"error","@eslint-react/jsx-shorthand-boolean":"error","@stylistic/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx-indent-props":["error",2],"@stylistic/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx-wrap-multilines":["error",{declaration:"parens-new-line",assignment:"parens-new-line",return:"parens-new-line",arrow:"parens-new-line",condition:"ignore",logical:"ignore",prop:"ignore"}],"@stylistic/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx-equals-spacing":["error","never"],"@stylistic/jsx-indent":"off","@stylistic/jsx-child-element-spacing":"error","@stylistic/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-void-elements-with-children":"error","@stylistic/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@eslint-react/jsx-shorthand-fragment":"error","@stylistic/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"@eslint-react/no-missing-key":"error","@eslint-react/no-array-index-key":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-implicit-key":"error","@eslint-react/jsx-uses-react":"off","@eslint-react/no-useless-fragment":"error","@eslint-react/no-unstable-context-value":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unstable-default-props":"error","@eslint-react/dom/no-missing-button-type":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/no-unnecessary-use-callback":"error","@eslint-react/no-unnecessary-use-memo":"error","@eslint-react/no-unnecessary-use-prefix":"error","@eslint-react/prefer-use-state-lazy-initialization":"error","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"],ignoreClassesThatImplementAnInterface:"public-fields"}],"react-refresh/only-export-components":["warn",{allowConstantExport:l,allowExportNames:[...r?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...i?["meta","links","headers","loader","action"]:[]]}]}}),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles({...sS.configs.flat["recommended-latest"],rules:{...sS.configs.flat["recommended-latest"].rules,"react-hooks/exhaustive-deps":["error",{additionalHooks:n}]}}),e),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles(sY.eslint_plugin_jsx_a11y_minimal.configs.minimal),e),{name:"@eslint-sukka/react next.js/nextra naming convention",files:["**/app/**/_*.cjs",String.raw`**/app/**/\[*.?([cm])[j]s?(x)`,"**/pages/_(app|document).?([cm])[jt]s?(x)"],rules:{"@eslint-react/naming-convention/filename":"off"}}];if(t){let{default:t}=await import("eslint-plugin-react-compiler");c.push(sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles(t.configs.recommended),e))}return c}async function Ni({opt:e={}}={}){return[{plugins:{"@stylexjs":(await import("@stylexjs/eslint-plugin")).default},files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]}exports.next=function(){return[{...sT.flatConfig.coreWebVitals,files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{...sT.flatConfig.coreWebVitals.rules,"@next/next/no-img-element":"off"}}]},exports.react=Nr,exports.stylex=Ni;
401
+ ${l} ${u} from ${c}${o}`)}})}}},defaultOptions:[]});let Az=["react-dom","react-dom/client","react-dom/server"],Aq={meta:{name:"eslint-plugin-react-dom",version:"2.3.5"},rules:{"no-dangerously-set-innerhtml":Aa,"no-dangerously-set-innerhtml-with-children":Ao,"no-find-dom-node":Ac,"no-flush-sync":A_,"no-hydrate":Ap,"no-missing-button-type":Ag,"no-missing-iframe-sandbox":Ah,"no-namespace":Ay,"no-render":Av,"no-render-return-value":AT,"no-script-url":AS,"no-string-style-prop":Ax,"no-unknown-property":AM,"no-unsafe-iframe-sandbox":Aj,"no-unsafe-target-blank":AY,"no-use-form-state":AU,"no-void-elements-with-children":AV,"prefer-namespace-import":AJ}};var A$=At({name:()=>AW,plugins:()=>AH,rules:()=>AK,settings:()=>AG});let AW="react-dom/recommended",AK={"react-dom/no-dangerously-set-innerhtml":"warn","react-dom/no-dangerously-set-innerhtml-with-children":"error","react-dom/no-find-dom-node":"error","react-dom/no-flush-sync":"error","react-dom/no-hydrate":"error","react-dom/no-namespace":"error","react-dom/no-render":"error","react-dom/no-render-return-value":"error","react-dom/no-script-url":"warn","react-dom/no-unsafe-iframe-sandbox":"warn","react-dom/no-use-form-state":"error","react-dom/no-void-elements-with-children":"error"},AH={"react-dom":Aq},AG={"react-x":_L};var AX=At({name:()=>AQ,plugins:()=>A0,rules:()=>AZ,settings:()=>A1});let AQ="react-dom/strict",AZ={...AK,"react-dom/no-missing-button-type":"warn","react-dom/no-missing-iframe-sandbox":"warn","react-dom/no-unsafe-target-blank":"warn"},A0={...AH},A1={...AG},{toFlatConfig:A2}=_g("react-dom",Aq);var A3={...Aq,configs:{recommended:A2(A$),strict:A2(AX)}},A6=Object.defineProperty,A4=e=>{let t={};for(var n in e)A6(t,n,{get:e[n],enumerable:!0});return t},A8=A4({name:()=>A5,plugins:()=>A9,rules:()=>A7});let A5="@eslint-react/dom",A7={"@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-use-form-state":"error","@eslint-react/dom/no-void-elements-with-children":"error"},A9={"@eslint-react/dom":A3};var De=A4({name:()=>Dt,plugins:()=>Dr,rules:()=>Dn,settings:()=>Di});let Dt="@eslint-react/x",Dn={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/prefer-use-state-lazy-initialization":"warn"},Dr={"@eslint-react":wC},Di={"react-x":_L};var Da=A4({name:()=>Do,plugins:()=>Dl,rules:()=>Ds,settings:()=>Dc});let Do="@eslint-react/all",Ds={"@eslint-react/jsx-key-before-spread":"warn","@eslint-react/jsx-no-comment-textnodes":"warn","@eslint-react/jsx-no-duplicate-props":"warn","@eslint-react/jsx-no-iife":"warn","@eslint-react/jsx-no-undef":"error","@eslint-react/jsx-shorthand-boolean":"warn","@eslint-react/jsx-shorthand-fragment":"warn","@eslint-react/jsx-uses-react":"warn","@eslint-react/jsx-uses-vars":"warn","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/no-array-index-key":"warn","@eslint-react/no-children-count":"warn","@eslint-react/no-children-for-each":"warn","@eslint-react/no-children-map":"warn","@eslint-react/no-children-only":"warn","@eslint-react/no-children-prop":"warn","@eslint-react/no-children-to-array":"warn","@eslint-react/no-class-component":"warn","@eslint-react/no-clone-element":"warn","@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-context-provider":"warn","@eslint-react/no-create-ref":"error","@eslint-react/no-default-props":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-forbidden-props":"off","@eslint-react/no-forward-ref":"warn","@eslint-react/no-implicit-key":"warn","@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-missing-component-display-name":"warn","@eslint-react/no-missing-context-display-name":"warn","@eslint-react/no-missing-key":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/no-nested-lazy-component-declarations":"error","@eslint-react/no-prop-types":"error","@eslint-react/no-redundant-should-component-update":"error","@eslint-react/no-set-state-in-component-did-mount":"warn","@eslint-react/no-set-state-in-component-did-update":"warn","@eslint-react/no-set-state-in-component-will-update":"warn","@eslint-react/no-string-refs":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unnecessary-use-prefix":"warn","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-class-component-members":"warn","@eslint-react/no-unused-props":"off","@eslint-react/no-unused-state":"warn","@eslint-react/no-use-context":"warn","@eslint-react/no-useless-forward-ref":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/prefer-namespace-import":"warn","@eslint-react/prefer-read-only-props":"off","@eslint-react/prefer-use-state-lazy-initialization":"warn","@eslint-react/dom/no-dangerously-set-innerhtml":"warn","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-flush-sync":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-namespace":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/dom/no-script-url":"warn","@eslint-react/dom/no-string-style-prop":"error","@eslint-react/dom/no-unknown-property":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn","@eslint-react/dom/no-use-form-state":"warn","@eslint-react/dom/no-void-elements-with-children":"error","@eslint-react/dom/prefer-namespace-import":"warn","@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn","@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/component-name":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/filename":"off","@eslint-react/naming-convention/filename-extension":"off","@eslint-react/naming-convention/use-state":"warn"},Dl={...Dr,...A9,"@eslint-react/hooks-extra":wL,"@eslint-react/naming-convention":wG,"@eslint-react/web-api":w9},Dc={...Di};var Du=A4({name:()=>D_,rules:()=>Dd});let D_="@eslint-react/disable-conflict-eslint-plugin-react",Dd=Object.fromEntries(["react/button-has-type","react/destructuring-assignment","react/display-name","react/forbid-prop-types","react/forward-ref-uses-ref","react/hook-use-state","react/iframe-missing-sandbox","react/jsx-boolean-value","react/jsx-filename-extension","react/jsx-fragments","react/jsx-key","react/jsx-no-comment-textnodes","react/jsx-no-constructed-context-values","react/jsx-no-duplicate-props","react/jsx-no-leaked-render","react/jsx-no-script-url","react/jsx-no-target-blank","react/jsx-no-undef","react/jsx-no-useless-fragment","react/jsx-pascal-case","react/jsx-uses-react","react/jsx-uses-vars","react/no-access-state-in-setstate","react/no-array-index-key","react/no-children-prop","react/no-danger","react/no-danger-with-children","react/no-deprecated","react/no-did-mount-set-state","react/no-did-update-set-state","react/no-direct-mutation-state","react/no-find-dom-node","react/no-namespace","react/no-object-type-as-default-prop","react/no-redundant-should-component-update","react/no-render-return-value","react/no-string-refs","react/no-unknown-property","react/no-unsafe","react/no-unstable-nested-components","react/no-unused-class-component-members","react/no-unused-state","react/no-will-update-set-state","react/prefer-read-only-props","react/prop-types","react/void-dom-elements-no-children"].map(e=>[e,"off"]));var Dp=A4({name:()=>Df,rules:()=>Dm});let Df="@eslint-react/disable-dom",Dm=Object.fromEntries(Object.entries(A7).map(([e])=>[e,"off"]));var Dg=A4({name:()=>Dh,rules:()=>Dy});let Dh="@eslint-react/disable-type-checked",Dy={"@eslint-react/no-leaked-conditional-rendering":"off","@eslint-react/no-unused-props":"off","@eslint-react/prefer-read-only-props":"off"};var Dv=A4({name:()=>Db,plugins:()=>DS,rules:()=>DT,settings:()=>Dx});let Db="@eslint-react/web-api",DT={"@eslint-react/web-api/no-leaked-event-listener":"warn","@eslint-react/web-api/no-leaked-interval":"warn","@eslint-react/web-api/no-leaked-resize-observer":"warn","@eslint-react/web-api/no-leaked-timeout":"warn"},DS={"@eslint-react/web-api":w9},Dx={...Di};var DE=A4({name:()=>Dk,rules:()=>DP});let Dk="@eslint-react/disable-web-api",DP=Object.fromEntries(Object.entries(DT).map(([e])=>[e,"off"]));var DC=A4({name:()=>Dw,plugins:()=>DD,rules:()=>DA});let Dw="@eslint-react/no-deprecated",DA={"@eslint-react/no-component-will-mount":"error","@eslint-react/no-component-will-receive-props":"error","@eslint-react/no-component-will-update":"error","@eslint-react/no-create-ref":"error","@eslint-react/no-forward-ref":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/dom/no-hydrate":"error","@eslint-react/dom/no-render":"error","@eslint-react/dom/no-render-return-value":"error"},DD={...Dr,...A9};var DN=A4({name:()=>DF,rules:()=>DO});let DF="@eslint-react/off",DO={...Object.fromEntries(Object.entries(Ds).map(([e])=>[e,"off"])),...Dy};var DI=A4({name:()=>DL,plugins:()=>DR,rules:()=>DM,settings:()=>Dj});let DL="@eslint-react/recommended",DM={...Dn,...A7,...DT,"@eslint-react/hooks-extra/no-direct-set-state-in-use-effect":"warn","@eslint-react/naming-convention/context-name":"warn","@eslint-react/naming-convention/use-state":"warn"},DR={...Dr,...A9,...DS,"@eslint-react/hooks-extra":wL,"@eslint-react/naming-convention":wG},Dj={...Di};var DY=A4({name:()=>DU,plugins:()=>DV,rules:()=>DB,settings:()=>DJ});let DU="@eslint-react/recommended-typescript",DB={...DM,"@eslint-react/dom/no-string-style-prop":"off","@eslint-react/dom/no-unknown-property":"off","@eslint-react/jsx-no-duplicate-props":"off","@eslint-react/jsx-no-undef":"off","@eslint-react/jsx-uses-react":"off","@eslint-react/jsx-uses-vars":"off"},DV={...DR},DJ={...Dj};var Dz=A4({name:()=>Dq,plugins:()=>DW,rules:()=>D$,settings:()=>DK});let Dq="@eslint-react/recommended-type-checked",D$={...DB,"@eslint-react/no-leaked-conditional-rendering":"error"},DW={...DV},DK={...DJ};var DH=A4({name:()=>DG,plugins:()=>DQ,rules:()=>DX,settings:()=>DZ});let DG="@eslint-react/strict",DX={...DM,"@eslint-react/jsx-no-iife":"error","@eslint-react/no-children-prop":"error","@eslint-react/no-class-component":"error","@eslint-react/no-misused-capture-owner-stack":"error","@eslint-react/no-unnecessary-key":"warn","@eslint-react/no-unnecessary-use-callback":"warn","@eslint-react/no-unnecessary-use-memo":"warn","@eslint-react/no-unstable-context-value":"warn","@eslint-react/no-unstable-default-props":"warn","@eslint-react/no-unused-state":"warn","@eslint-react/no-useless-fragment":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/dom/no-missing-button-type":"warn","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-target-blank":"warn"},DQ={...DR},DZ={...Dj};var D0=A4({name:()=>D1,plugins:()=>D3,rules:()=>D2,settings:()=>D6});let D1="@eslint-react/strict-typescript",D2={...DX,...DB},D3={...DQ},D6={...DZ};var D4=A4({name:()=>D8,plugins:()=>D7,rules:()=>D5,settings:()=>D9});let D8="@eslint-react/strict-type-checked",D5={...D2,"@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unused-props":"warn"},D7={...D3},D9={...D6},Ne={meta:{name:"@eslint-react/eslint-plugin",version:"2.3.5"},configs:{all:Da,"disable-conflict-eslint-plugin-react":Du,"disable-dom":Dp,"disable-type-checked":Dg,"disable-web-api":DE,dom:A8,"no-deprecated":DC,off:DN,recommended:DI,"recommended-type-checked":Dz,"recommended-typescript":DY,strict:DH,"strict-type-checked":D4,"strict-typescript":D0,"web-api":Dv,x:De},rules:{...wC.rules}},Nt=sb.memo(Ne,"@eslint-react/eslint-plugin"),Nn=sb.memo(sj.fixupPluginRules(sR),"eslint-plugin-ssr-friendly");async function Nr({files:e=[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],reactCompiler:t,additionalHooks:n="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample|useAbortableEffect)",nextjs:r=!1,remix:i=!1,reactRefresh:a={},additionalHooksWithType:o={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:s=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:l=!1}=a;e="function"==typeof e?e([sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX]):sU.castArray(e);let c=[sb.UNSAFE_excludeJsonYamlFiles({name:"@eslint-sukka/react base",files:e,plugins:{"@stylistic":sb.memo(sM.stylistic_eslint_plugin,"@stylistic/eslint-plugin"),"react-prefer-function-component":sb.memo(s8,"eslint-plugin-react-prefer-function-component"),...Nt.configs.recommended.plugins,"ssr-friendly":Nn,"react-refresh":sx},settings:{"react-x":{version:"detect",additionalHooks:o,additionalComponents:s}},languageOptions:{globals:sb.globals.browser},rules:{"@stylistic/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],...Nt.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/jsx-no-comment-textnodes":"error","@eslint-react/dom/no-unsafe-target-blank":"error","@eslint-react/no-children-prop":"error","@eslint-react/dom/no-dangerously-set-innerhtml-with-children":"error","@eslint-react/dom/no-render-return-value":"error","@eslint-react/no-direct-mutation-state":"error","@eslint-react/dom/no-find-dom-node":"error","@eslint-react/no-unsafe-component-will-mount":"warn","@eslint-react/no-unsafe-component-will-receive-props":"warn","@eslint-react/no-unsafe-component-will-update":"warn","@eslint-react/prefer-destructuring-assignment":"warn","@eslint-react/no-unused-state":"error","@eslint-react/no-access-state-in-setstate":"error","@eslint-react/dom/no-script-url":"error","@eslint-react/no-unused-class-component-members":"error","@eslint-react/naming-convention/component-name":["error",{rule:"PascalCase"}],"@eslint-react/naming-convention/filename":["error",{rule:"kebab-case"}],"@eslint-react/naming-convention/filename-extension":["error",{allow:"as-needed"}],"@eslint-react/naming-convention/use-state":"error","react-prefer-function-component/react-prefer-function-component":"error","@stylistic/jsx-self-closing-comp":"error","@eslint-react/jsx-shorthand-boolean":"error","@stylistic/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx-indent-props":["error",2],"@stylistic/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx-wrap-multilines":["error",{declaration:"parens-new-line",assignment:"parens-new-line",return:"parens-new-line",arrow:"parens-new-line",condition:"ignore",logical:"ignore",prop:"ignore"}],"@stylistic/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx-equals-spacing":["error","never"],"@stylistic/jsx-indent":"off","@stylistic/jsx-child-element-spacing":"error","@stylistic/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-void-elements-with-children":"error","@stylistic/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@eslint-react/jsx-shorthand-fragment":"error","@stylistic/jsx-curly-newline":["error",{multiline:"consistent",singleline:"consistent"}],"@eslint-react/no-missing-key":"error","@eslint-react/no-array-index-key":"error","@eslint-react/no-duplicate-key":"error","@eslint-react/no-implicit-key":"error","@eslint-react/jsx-uses-react":"off","@eslint-react/no-useless-fragment":"error","@eslint-react/no-unstable-context-value":"error","@eslint-react/no-nested-component-definitions":"error","@eslint-react/dom/no-missing-iframe-sandbox":"warn","@eslint-react/dom/no-unsafe-iframe-sandbox":"warn","@eslint-react/no-leaked-conditional-rendering":"error","@eslint-react/no-unstable-default-props":"error","@eslint-react/dom/no-missing-button-type":"error","@eslint-react/dom/no-namespace":"error","@eslint-react/no-unnecessary-use-callback":"error","@eslint-react/no-unnecessary-use-memo":"error","@eslint-react/no-unnecessary-use-prefix":"error","@eslint-react/prefer-use-state-lazy-initialization":"error","@typescript-eslint/class-methods-use-this":["error",{exceptMethods:["render","getInitialState","getDefaultProps","getChildContext","componentWillMount","UNSAFE_componentWillMount","componentDidMount","componentWillReceiveProps","UNSAFE_componentWillReceiveProps","shouldComponentUpdate","componentWillUpdate","UNSAFE_componentWillUpdate","componentDidUpdate","componentWillUnmount","componentDidCatch","getSnapshotBeforeUpdate"],ignoreClassesThatImplementAnInterface:"public-fields"}],"react-refresh/only-export-components":["warn",{allowConstantExport:l,allowExportNames:[...r?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...i?["meta","links","headers","loader","action"]:[]]}]}}),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles({...sS.configs.flat["recommended-latest"],rules:{...sS.configs.flat["recommended-latest"].rules,"react-hooks/exhaustive-deps":["error",{additionalHooks:n}]}}),e),sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles(sY.eslint_plugin_jsx_a11y_minimal.configs.minimal),e),{name:"@eslint-sukka/react next.js/nextra naming convention",files:["**/app/**/_*.cjs",String.raw`**/app/**/\[*.?([cm])[j]s?(x)`,"**/pages/_(app|document).?([cm])[jt]s?(x)"],rules:{"@eslint-react/naming-convention/filename":"off"}}];if(t){let{default:t}=await import("eslint-plugin-react-compiler");c.push(sb.withFiles(sb.UNSAFE_excludeJsonYamlFiles(t.configs.recommended),e))}return c}async function Ni({opt:e={}}={}){return[{plugins:{"@stylexjs":(await import("@stylexjs/eslint-plugin")).default},files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]}exports.next=function(){return[{...sT.configs["core-web-vitals"],files:[sb.constants.GLOB_TS,sb.constants.GLOB_TSX,sb.constants.GLOB_JSX],rules:{...sT.configs["core-web-vitals"].rules,"@next/next/no-img-element":"off"}}]},exports.react=Nr,exports.stylex=Ni;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-sukka/react",
3
- "version": "8.0.3",
3
+ "version": "8.0.4",
4
4
  "description": "Sukka's ESLint config",
5
5
  "homepage": "https://github.com/SukkaW/eslint-config-sukka",
6
6
  "repository": {
@@ -27,21 +27,21 @@
27
27
  "license": "MIT",
28
28
  "dependencies": {
29
29
  "@eslint/compat": "^1.4.1",
30
- "@next/eslint-plugin-next": "^16.0.1",
30
+ "@next/eslint-plugin-next": "^16.0.3",
31
31
  "@stylexjs/eslint-plugin": "^0.16.3",
32
32
  "eslint-plugin-react-compiler": "19.1.0-rc.2",
33
33
  "eslint-plugin-react-hooks": "^7.0.1",
34
34
  "eslint-plugin-react-refresh": "^0.4.24",
35
35
  "eslint-plugin-ssr-friendly": "^1.3.0",
36
36
  "foxts": "^5.0.0",
37
- "@eslint-sukka/eslint-plugin-react-jsx-a11y": "8.0.3",
38
- "@eslint-sukka/shared": "8.0.3",
39
- "@eslint-sukka/eslint-plugin-stylistic": "8.0.3"
37
+ "@eslint-sukka/eslint-plugin-react-jsx-a11y": "8.0.4",
38
+ "@eslint-sukka/eslint-plugin-stylistic": "8.0.4",
39
+ "@eslint-sukka/shared": "8.0.4"
40
40
  },
41
41
  "devDependencies": {
42
- "@eslint-react/eslint-plugin": "^2.3.4",
42
+ "@eslint-react/eslint-plugin": "^2.3.5",
43
43
  "eslint-plugin-react-prefer-function-component": "^4.0.1",
44
- "@eslint-sukka/rollup-config": "8.0.3"
44
+ "@eslint-sukka/rollup-config": "8.0.4"
45
45
  },
46
46
  "scripts": {
47
47
  "build": "rollup -c rollup.config.ts --configPlugin swc3"