@eslint-sukka/react 6.19.0 → 6.21.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.cjs CHANGED
@@ -4,11 +4,11 @@ ${n}`)}})}return{JSXClosingElement:s,JSXClosingFragment:s}}});const tD="always",
4
4
  ${n}`),r&&(n=`${n}
5
5
  `),e.replaceText(s,n)}})}}function i(e){0!==e.arguments.length&&e.arguments.forEach(s)}return{CallExpression(e){i(e)},NewExpression(e){i(e)}}}}),tQ=tv({name:"jsx-indent-props",package:"jsx",meta:{type:"layout",docs:{description:"Enforce props indentation in JSX"},fixable:"code",messages:{wrongIndent:"Expected indentation of {{needed}} {{type}} {{characters}} but found {{gotten}}."},schema:[{anyOf:[{type:"string",enum:["tab","first"]},{type:"integer"},{type:"object",properties:{indentMode:{anyOf:[{type:"string",enum:["tab","first"]},{type:"integer"}]},ignoreTernaryOperator:{type:"boolean"}}}]}]},create(e){let t=e.options[0],s="space",i=4,r={isUsingOperator:!1,currentOperator:!1},n=!1;if(e.options.length){let r="object"==typeof e.options[0]?"object"==typeof t&&t.indentMode:t;"first"===r?(i="first",s="space"):"tab"===r?(i=1,s="tab"):"number"==typeof r&&(i=r,s="space"),"object"==typeof t&&t.ignoreTernaryOperator&&(n=!0)}function a(t){let i,n=e.sourceCode.getText(t,t.loc.start.column+0);n=n.split("\n")[0];let a=("space"===s?/^ +/:/^\t+/).exec(n),o=/^[ \t]*:/.test(n)||/^[ \t]*\?/.test(n),l=/</.test(n);return r.currentOperator=!1,o?(r.isUsingOperator=!0,r.currentOperator=!0):l&&(r.isUsingOperator=!1),a?a[0].length:0}return{JSXOpeningElement(t){let o;if(t.attributes.length){var l;let p;o="first"===i?t.attributes[0].loc.start.column:a(t)+i,l=t.attributes,p=o,l.forEach(t=>{let o=a(t);!r.isUsingOperator||r.currentOperator||"first"===i||n||(p+=i,r.isUsingOperator=!1),"ArrayExpression"!==t.type&&"ObjectExpression"!==t.type&&o!==p&&tE(e,t)&&e.report({node:t,messageId:"wrongIndent",data:{needed:p,type:s,characters:1===p?"character":"characters",gotten:o},fix:e=>e.replaceTextRange([t.range[0]-t.loc.start.column,t.range[0]],Array(p+1).join("space"===s?" ":" "))})})}}}}}),tY=tv({name:"jsx-indent",package:"jsx",meta:{type:"layout",docs:{description:"Enforce JSX indentation. Deprecated, use `indent` rule instead."},deprecated:!0,fixable:"whitespace",messages:{wrongIndent:"Expected indentation of {{needed}} {{type}} {{characters}} but found {{gotten}}."},schema:[{anyOf:[{type:"string",enum:["tab"]},{type:"integer"}]},{type:"object",properties:{checkAttributes:{type:"boolean"},indentLogicalExpressions:{type:"boolean"}},additionalProperties:!1}]},create(e){let t="space",s=4;e.options.length&&("tab"===e.options[0]?(s=1,t="tab"):"number"==typeof e.options[0]&&(s=e.options[0],t="space"));let i="space"===t?" ":" ",r=e.options[1]||{},n=r.checkAttributes||!1,a=r.indentLogicalExpressions||!1;function o(s,r,n,a){let o={needed:r,type:t,characters:1===r?"character":"characters",gotten:n};e.report({node:s,messageId:"wrongIndent",data:o,fix:function(t,s){let r=Array(s+1).join(i);if("JSXText"===t.type||"Literal"===t.type)return function(e){let s=t.raw.replace(/\n[\t ]*(\S)/g,(e,t)=>`
6
6
  ${r}${t}`);return e.replaceText(t,s)};if("ReturnStatement"===t.type){let s=e.sourceCode.getText(t);if(s.split("\n").length>1)return function(e){let i=s.lastIndexOf("\n"),n=s.slice(i).replace(/^\n[\t ]*(\S)/,(e,t)=>`
7
- ${r}${t}`);return e.replaceTextRange([t.range[0]+i,t.range[1]],n)}}return function(e){return e.replaceTextRange([t.range[0]-t.loc.start.column,t.range[0]],r)}}(s,r),...{}})}function l(s,i=!1,r=!1){let n,a=e.sourceCode.getText(s,s.loc.start.column+0),o=a.split("\n");a=i?o[o.length-1]:o[0];let p=r?",":"",c=("space"===t?RegExp(`^[ ${p}]+`):RegExp(`^[ ${p}]+`)).exec(a);return c?c[0].length:0}function p(e){return e.parent&&e.parent.parent&&"LogicalExpression"===e.parent.parent.type&&e.parent.parent.right===e.parent&&!a}function c(t){return t.parent&&t.parent.parent&&"ConditionalExpression"===t.parent.parent.type&&t.parent.parent.alternate===t.parent&&"("!==e.sourceCode.getTokenBefore(t).value}function u(t,i,r=!1){let n=l(t,!1,r),a=p(t)&&n-i===s,h=c(t)&&n-i==0;n!==i&&tE(e,t)&&!a&&!h&&o(t,i,n)}function h(t){let i=e.sourceCode,r=i.getTokenBefore(t);if(!r)return;if("JSXText"===r.type||"Punctuator"===r.type&&","===r.value)r="Literal"===(r=i.getNodeByRangeIndex(r.range[0])).type||"JSXText"===r.type?r.parent:r;else if("Punctuator"===r.type&&":"===r.value){do r=i.getTokenBefore(r);while("Punctuator"===r.type&&"/"!==r.value);for(r=i.getNodeByRangeIndex(r.range[0]);r.parent&&"ConditionalExpression"!==r.parent.type;)r=r.parent}let n=l(r="JSXExpressionContainer"===r.type?r.expression:r),a=r.loc.start.line===t.loc.start.line||p(t)||c(t)||function(e){if(!e.parent||!e.parent.parent||"ExpressionStatement"!==e.parent.parent.type)return!1;let t=e.parent.parent;return!!(t.parent&&"BlockStatement"===t.parent.type&&t.parent.parent&&"DoExpression"===t.parent.parent.type)&&t.parent.body[0]!==t}(t)?0:s;u(t,n+a)}function d(e){if(!e.parent)return;let t=l(e.parent.openingElement||e.parent.openingFragment);u(e,t)}function f(e){if(!e.parent||"JSXElement"!==e.parent.type&&"JSXFragment"!==e.parent.type)return;let i=l(e.parent);!function(e,s){let i=e.value,r="space"===t?/\n( *)[\t ]*\S/g:/\n(\t*)[\t ]*\S/g,n=Array.from(String(i).matchAll(r),e=>e[1]?e[1].length:0);n.length>0&&!n.every(e=>e===s)&&n.forEach(t=>{o(e,s,t)})}(e,i+s)}return{JSXOpeningElement:h,JSXOpeningFragment:h,JSXClosingElement:d,JSXClosingFragment:d,JSXAttribute:function(t){if(!n||!t.value||"JSXExpressionContainer"!==t.value.type)return;let s=l(t.name),i=e.sourceCode.getLastToken(t.value),r=tC(e,i);if(r.loc.start.line!==i.loc.start.line)return;let a=t.name.loc.start.line===r.loc.start.line?0:s;u(r,a)},JSXExpressionContainer(e){if(!e.parent)return;let t=l(e.parent);u(e,t+s)},Literal:f,JSXText:f,ReturnStatement(t){if(!t.parent||!t.argument||!tT(t.argument))return;let s=t.parent;for(;s&&"FunctionDeclaration"!==s.type&&"FunctionExpression"!==s.type;)s=s.parent;if(!s||!function(e,t,s=!1,i=!1){let r=e=>{if(!e)return!1;switch(e.type){case"ConditionalExpression":if(s)return r(e.consequent)&&r(e.alternate);return r(e.consequent)||r(e.alternate);case"LogicalExpression":if(s)return r(e.left)&&r(e.right);return r(e.left)||r(e.right);case"SequenceExpression":return r(e.expressions[e.expressions.length-1]);case"JSXElement":case"JSXFragment":return!0;case"Literal":if(!i&&null===e.value)return!0;return!1;case"Identifier":return tT(function(e,t){var s;let i=(s=function(e){let t=e.getScope(),s=t.variables;for(;"global"!==t.type;)s=(t=t.upper).variables.concat(s);return t.childScopes.length&&(s=t.childScopes[0].variables.concat(s),t.childScopes[0].childScopes.length&&(s=t.childScopes[0].childScopes[0].variables.concat(s))),s.reverse(),s}(e),s.find(e=>e.name===t));return i&&i.defs[0]&&i.defs[0].node?"TypeAlias"===i.defs[0].node.type?i.defs[0].node.right:"ImportBinding"===i.defs[0].type?i.defs[0].node:i.defs[0].node.init:null}(t,e.name));default:return!1}},n=!1;return!function(e,t){let s=e.type;"ReturnStatement"===s?t(e.argument,()=>{}):"ArrowFunctionExpression"===s&&e.expression?t(e.body,()=>{}):("FunctionExpression"===s||"FunctionDeclaration"===s||"ArrowFunctionExpression"===s||"MethodDefinition"===s)&&function(e,t){let s=Object.assign({},{fallback:e=>Object.keys(e).filter(e=>"children"===e||"argument"===e)},t);s.keys=Object.assign({},t.keys,{JSXElement:["children"],JSXFragment:["children"]}),ty.traverse(e,s)}(e.body,{enter(e){switch(e.type){case"ReturnStatement":this.skip(),t(e.argument,()=>{this.break()});return;case"BlockStatement":case"IfStatement":case"ForStatement":case"WhileStatement":case"SwitchStatement":case"SwitchCase":return;default:this.skip()}}})}(e,(e,t)=>{r(e)&&(n=!0,t())}),n}(t,e,!0))return;let i=l(t),r=l(t,!0);i!==r&&o(t,i,r)}}}}),tZ=tv({name:"jsx-max-props-per-line",package:"jsx",meta:{type:"layout",docs:{description:"Enforce maximum of props on a single line in JSX"},fixable:"code",messages:{newLine:"Prop `{{prop}}` must be placed on a new line"},schema:[{anyOf:[{type:"object",properties:{maximum:{type:"object",properties:{single:{type:"integer",minimum:1},multi:{type:"integer",minimum:1}}}},additionalProperties:!1},{type:"object",properties:{maximum:{type:"number",minimum:1},when:{type:"string",enum:["always","multiline"]}},additionalProperties:!1}]}]},create(e){let t=e.options[0]||{},s=t.maximum||1,i="number"==typeof s?{single:"multiline"===t.when?1/0:s,multi:s}:{single:s.single||1/0,multi:s.multi||1/0};return{JSXOpeningElement(t){if(!t.attributes.length)return;let s=t.loc.start.line===t.loc.end.line;if((s?i.single:i.multi)===1/0)return;let r=[[t.attributes[0]]];t.attributes.reduce((e,t)=>(e.loc.end.line===t.loc.start.line?r[r.length-1].push(t):r.push([t]),t)),r.forEach(r=>{let n=s&&r[0].loc.start.line===t.loc.start.line?i.single:i.multi;if(r.length>n){var a;let t="JSXSpreadAttribute"===(a=r[n]).type?e.sourceCode.getText(a.argument):a.name.name;e.report({messageId:"newLine",node:r[n],data:{prop:t},fix:function(t,s){let i=e.sourceCode,r=[],n=t[0].range[0],a=t[t.length-1].range[1];for(let e=0;e<t.length;e+=s){let n=t.slice(e,e+s);r.push(n.reduce((e,t)=>""===e?i.getText(t):`${e} ${i.getText(t)}`,""))}let o=r.join("\n");return function(e){return e.replaceTextRange([n,a],o)}}(r,n)})}})}}}});function t1(e){return e&&e.loc.start.line!==e.loc.end.line}var t0=tv({name:"jsx-newline",package:"jsx",meta:{type:"layout",docs:{description:"Require or prevent a new line after jsx elements and expressions."},fixable:"code",messages:{require:"JSX element should start in a new line",prevent:"JSX element should not start in a new line",allowMultilines:"Multiline JSX elements should start in a new line"},schema:[{type:"object",properties:{prevent:{default:!1,type:"boolean"},allowMultilines:{default:!1,type:"boolean"}},additionalProperties:!1,if:{properties:{allowMultilines:{const:!0}}},then:{properties:{prevent:{const:!0}},required:["prevent"]}}]},create(e){let t=new Set,s=e.sourceCode;function i(e){let t=s.getText(e);return/^\s*\{\/\*/.test(t)}function r(e){return!i(e)&&("JSXElement"===e.type||"JSXExpressionContainer"===e.type)}return{"Program:exit":function(){t.forEach(t=>{t.children.forEach((t,n,a)=>{if("JSXElement"===t.type||"JSXExpressionContainer"===t.type){let o=e.options[0]||{},l=o.prevent||!1,p=o.allowMultilines||!1,c=a[n+1],u=a[n+2];if(!(c&&u&&("Literal"===c.type||"JSXText"===c.type)))return;let h=!/\n\s*\n/.test(c.value);if(i(t))return;if(p&&(t1(t)||t1(a.slice(n+2).find(r)))){if(!h)return;let t=/(\n)(?!.*\1)/g;e.report({messageId:"allowMultilines",node:u,fix:e=>e.replaceText(c,s.getText(c).replace(t,"\n\n"))});return}if(h===l)return;let d=l?/(\n\n)(?!.*\1)/g:/(\n)(?!.*\1)/g,f=l?"\n":"\n\n";e.report({messageId:l?"prevent":"require",node:u,fix:e=>e.replaceText(c,s.getText(c).replace(d,f))})}})})},":matches(JSXElement, JSXFragment) > :matches(JSXElement, JSXExpressionContainer)":e=>{t.add(e.parent)}}}});const t2={allow:"none"};var t3=tv({name:"jsx-one-expression-per-line",package:"jsx",meta:{type:"layout",docs:{description:"Require one JSX element per line"},fixable:"whitespace",messages:{moveToNewLine:"`{{descriptor}}` must be placed on a new line"},schema:[{type:"object",properties:{allow:{type:"string",enum:["none","literal","single-child","single-line","non-jsx"]}},default:t2,additionalProperties:!1}]},create(e){let t=Object.assign({},t2,e.options[0]);function s(s){let i=s.children;if(!i||!i.length||"non-jsx"===t.allow&&!i.find(e=>"JSXFragment"===e.type||"JSXElement"===e.type))return;let r=s.openingElement||s.openingFragment,n=s.closingElement||s.closingFragment,a=r.loc.start.line,o=r.loc.end.line,l=n.loc.start.line,p=n.loc.end.line;if(1===i.length){let e=i[0];if(a===o&&o===l&&l===p&&p===e.loc.start.line&&e.loc.start.line===e.loc.end.line&&("single-child"===t.allow||"literal"===t.allow&&("Literal"===e.type||"JSXText"===e.type)||"single-line"===t.allow))return}if("single-line"===t.allow){let e=i[0],t=i[i.length-1],s=t.loc.end.line-e.loc.start.line,r=0;if(("Literal"===e.type||"JSXText"===e.type)&&/^\s*?\n/.test(e.raw)&&(r+=1),("Literal"===t.type||"JSXText"===t.type)&&/\n\s*$/.test(t.raw)&&(r+=1),0===s&&0===r||2===s&&2===r)return}let c={},u={};i.forEach(e=>{let t=0,s=0;if("Literal"===e.type||"JSXText"===e.type){if(tI(e.raw))return;t=(e.raw.match(/^\s*\n/g)||[]).length,s=(e.raw.match(/\n\s*$/g)||[]).length}let i=e.loc.start.line+t,r=e.loc.end.line-s;i===r?(c[i]||(c[i]=[]),c[i].push(e)):(c[i]||(c[i]=[]),c[i].push(e),c[r]||(c[r]=[]),c[r].push(e))}),Object.keys(c).forEach(t=>{let s=parseInt(t,10),i=c[s].length-1;c[s].forEach((t,a)=>{let p,h;if(0===a?s===o&&(p=r):p=c[s][a-1],a===i&&s===l&&(h=n),!p&&!h)return;let d=e.sourceCode.getText(t),f=!!(p&&(()=>{let s=e.sourceCode.getTokensBetween(p,t)[0];return("Literal"===p.type||"JSXText"===p.type)&&p.raw.endsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.startsWith(" ")||tI(s?.value)})()),m=!!(h&&(()=>{let s=e.sourceCode.getTokensBetween(t,h)[0];return("Literal"===h.type||"JSXText"===h.type)&&h.raw.startsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.endsWith(" ")||tI(s?.value)})()),g=!!p,x=!!h,y=`${t.loc.start.line},${t.loc.start.column}`;u[y]||(u[y]={node:t,source:d,descriptor:"openingElement"in t&&t.openingElement&&"name"in t.openingElement.name?String(t.openingElement.name.name):e.sourceCode.getText(t).replace(/\n/g,"")}),f&&(u[y].leadingSpace=!0),g&&(u[y].leadingNewLine=!0),x&&(u[y].trailingNewLine=!0),m&&(u[y].trailingSpace=!0)})}),Object.keys(u).forEach(t=>{let s=u[t],i=s.node,r=s.descriptor,n=s.source.replace(/(^ +| +$)/g,""),a=s.leadingSpace?"\n{' '}":"",o=s.trailingSpace?"{' '}\n":"",l=s.leadingNewLine?"\n":"",p=s.trailingNewLine?"\n":"",c=`${a}${l}${n}${p}${o}`;e.report({messageId:"moveToNewLine",node:i,data:{descriptor:r},fix:e=>e.replaceText(i,c)})})}return{JSXElement:s,JSXFragment:s}}}),t6={};function t4(){if(l)return o;l=1;let e="[^\\\\/]",t="[^/]",s="(?:\\/|$)",i="(?:^|\\/)",r=`\\.{1,2}${s}`,n=`(?!${i}${r})`,a=`(?!\\.{0,1}${s})`,p=`(?!${r})`,c=`${t}*?`,u={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:s,DOTS_SLASH:r,NO_DOT:"(?!\\.)",NO_DOTS:n,NO_DOT_SLASH:a,NO_DOTS_SLASH:p,QMARK_NO_DOT:"[^.\\/]",STAR:c,START_ANCHOR:i,SEP:"/"},h={...u,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 o={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:{"***":"*","**/**":"**","**/**/**":"**"},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?h:u}}function t5(){if(p)return t6;p=1;let{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:t,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=t4();return t6.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t6.hasRegexChars=e=>s.test(e),t6.isRegexChar=e=>1===e.length&&t6.hasRegexChars(e),t6.escapeRegex=e=>e.replace(i,"\\$1"),t6.toPosixSlashes=t=>t.replace(e,"/"),t6.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},t6.removeBackslashes=e=>e.replace(t,e=>"\\"===e?"":e),t6.escapeLast=(e,t,s)=>{let i=e.lastIndexOf(t,s);return -1===i?e:"\\"===e[i-1]?t6.escapeLast(e,t,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t6.removePrefix=(e,t={})=>{let s=e;return s.startsWith("./")&&(s=s.slice(2),t.prefix="./"),s},t6.wrapOutput=(e,t={},s={})=>{let i=s.contains?"":"^",r=s.contains?"":"$",n=`${i}(?:${e})${r}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n},t6.basename=(e,{windows:t}={})=>{let s=e.split(t?/[\\/]/:"/"),i=s[s.length-1];return""===i?s[s.length-2]:i},t6}var t9=T(function(){if(x)return g;x=1;let e=function(){if(m)return f;m=1;let e=function(){if(u)return c;u=1;let e=t5(),{CHAR_ASTERISK:t,CHAR_AT:s,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:r,CHAR_DOT:n,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:o,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:d,CHAR_QUESTION_MARK:f,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:x}=t4(),y=e=>e===o||e===i,b=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return c=(c,u)=>{let v,S,C=u||{},E=c.length-1,k=!0===C.parts||!0===C.scanToEnd,_=[],w=[],A=[],T=c,I=-1,P=0,N=0,L=!1,R=!1,O=!1,j=!1,B=!1,V=!1,D=!1,M=!1,F=!1,X=!1,J=0,$={value:"",depth:0,isGlob:!1},U=()=>I>=E,q=()=>T.charCodeAt(I+1),H=()=>(v=S,T.charCodeAt(++I));for(;I<E;){let e;if((S=H())===i){D=$.backslashes=!0,(S=H())===l&&(V=!0);continue}if(!0===V||S===l){for(J++;!0!==U()&&(S=H());){if(S===i){D=$.backslashes=!0,H();continue}if(S===l){J++;continue}if(!0!==V&&S===n&&(S=H())===n||!0!==V&&S===r){if(L=$.isBrace=!0,O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===m&&0==--J){V=!1,L=$.isBrace=!0,X=!0;break}}if(!0===k)continue;break}if(S===o){if(_.push(I),w.push($),$={value:"",depth:0,isGlob:!1},!0===X)continue;if(v===n&&I===P+1){P+=2;continue}N=I+1;continue}if(!0!==C.noext&&!0==(S===d||S===s||S===t||S===f||S===a)&&q()===p){if(O=$.isGlob=!0,j=$.isExtglob=!0,X=!0,S===a&&I===P&&(F=!0),!0===k){for(;!0!==U()&&(S=H());){if(S===i){D=$.backslashes=!0,S=H();continue}if(S===g){O=$.isGlob=!0,X=!0;break}}continue}break}if(S===t){if(v===t&&(B=$.isGlobstar=!0),O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===f){if(O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===h){for(;!0!==U()&&(e=H());){if(e===i){D=$.backslashes=!0,H();continue}if(e===x){R=$.isBracket=!0,O=$.isGlob=!0,X=!0;break}}if(!0===k)continue;break}if(!0!==C.nonegate&&S===a&&I===P){M=$.negated=!0,P++;continue}if(!0!==C.noparen&&S===p){if(O=$.isGlob=!0,!0===k){for(;!0!==U()&&(S=H());){if(S===p){D=$.backslashes=!0,S=H();continue}if(S===g){X=!0;break}}continue}break}if(!0===O){if(X=!0,!0===k)continue;break}}!0===C.noext&&(j=!1,O=!1);let W=T,G="",z="";P>0&&(G=T.slice(0,P),T=T.slice(P),N-=P),W&&!0===O&&N>0?(W=T.slice(0,N),z=T.slice(N)):!0===O?(W="",z=T):W=T,W&&""!==W&&"/"!==W&&W!==T&&y(W.charCodeAt(W.length-1))&&(W=W.slice(0,-1)),!0===C.unescape&&(z&&(z=e.removeBackslashes(z)),W&&!0===D&&(W=e.removeBackslashes(W)));let K={prefix:G,input:c,start:P,base:W,glob:z,isBrace:L,isBracket:R,isGlob:O,isExtglob:j,isGlobstar:B,negated:M,negatedExtglob:F};if(!0===C.tokens&&(K.maxDepth=0,y(S)||w.push($),K.tokens=w),!0===C.parts||!0===C.tokens){let e;for(let t=0;t<_.length;t++){let s=e?e+1:P,i=_[t],r=c.slice(s,i);C.tokens&&(0===t&&0!==P?(w[t].isPrefix=!0,w[t].value=G):w[t].value=r,b(w[t]),K.maxDepth+=w[t].depth),(0!==t||""!==r)&&A.push(r),e=i}if(e&&e+1<c.length){let t=c.slice(e+1);A.push(t),C.tokens&&(w[w.length-1].value=t,b(w[w.length-1]),K.maxDepth+=w[w.length-1].depth)}K.slashes=_,K.parts=A}return K}}(),t=function(){if(d)return h;d=1;let e=t4(),t=t5(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_BACKREF:n,REPLACEMENTS:a}=e,o=(e,s)=>{if("function"==typeof s.expandRange)return s.expandRange(...e,s);e.sort();let i=`[${e.join("-")}]`;try{new RegExp(i)}catch(s){return e.map(e=>t.escapeRegex(e)).join("..")}return i},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,p=(c,u)=>{let h;if("string"!=typeof c)throw TypeError("Expected a string");c=a[c]||c;let d={...u},f="number"==typeof d.maxLength?Math.min(s,d.maxLength):s,m=c.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:d.prepend||""},x=[g],y=d.capture?"":"?:",b=e.globChars(d.windows),v=e.extglobChars(b),{DOT_LITERAL:S,PLUS_LITERAL:C,SLASH_LITERAL:E,ONE_CHAR:k,DOTS_SLASH:_,NO_DOT:w,NO_DOT_SLASH:A,NO_DOTS_SLASH:T,QMARK:I,QMARK_NO_DOT:P,STAR:N,START_ANCHOR:L}=b,R=e=>`(${y}(?:(?!${L}${e.dot?_:S}).)*?)`,O=d.dot?"":w,j=d.dot?I:P,B=!0===d.bash?R(d):N;d.capture&&(B=`(${B})`),"boolean"==typeof d.noext&&(d.noextglob=d.noext);let V={input:c,index:-1,start:0,dot:!0===d.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};m=(c=t.removePrefix(c,V)).length;let D=[],M=[],F=[],X=g,J=()=>V.index===m-1,$=V.peek=(e=1)=>c[V.index+e],U=V.advance=()=>c[++V.index]||"",q=()=>c.slice(V.index+1),H=(e="",t=0)=>{V.consumed+=e,V.index+=t},W=e=>{V.output+=null!=e.output?e.output:e.value,H(e.value)},G=()=>{let e=1;for(;"!"===$()&&("("!==$(2)||"?"===$(3));)U(),V.start++,e++;return e%2!=0&&(V.negated=!0,V.start++,!0)},z=e=>{V[e]++,F.push(e)},K=e=>{V[e]--,F.pop()},Q=e=>{if("globstar"===X.type){let t=V.braces>0&&("comma"===e.type||"brace"===e.type),s=!0===e.extglob||D.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||s||(V.output=V.output.slice(0,-X.output.length),X.type="star",X.value="*",X.output=B,V.output+=X.output)}if(D.length&&"paren"!==e.type&&(D[D.length-1].inner+=e.value),(e.value||e.output)&&W(e),X&&"text"===X.type&&"text"===e.type){X.output=(X.output||X.value)+e.value,X.value+=e.value;return}e.prev=X,x.push(e),X=e},Y=(e,t)=>{let s={...v[t],conditions:1,inner:""};s.prev=X,s.parens=V.parens,s.output=V.output;let i=(d.capture?"(":"")+s.open;z("parens"),Q({type:e,value:t,output:V.output?"":k}),Q({type:"paren",extglob:!0,value:U(),output:i}),D.push(s)},Z=e=>{let t,s=e.close+(d.capture?")":"");if("negate"===e.type){let i=B;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=R(d)),(i!==B||J()||/^\)+$/.test(q()))&&(s=e.close=`)$))${i}`),e.inner.includes("*")&&(t=q())&&/^\.[^\\/.]+$/.test(t)){let r=p(t,{...u,fastpaths:!1}).output;s=e.close=`)${r})${i})`}"bos"===e.prev.type&&(V.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:h,output:s}),K("parens")};if(!1!==d.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(c)){let e=!1,s=c.replace(n,(t,s,i,r,n,a)=>"\\"===r?(e=!0,t):"?"===r?s?s+r+(n?I.repeat(n.length):""):0===a?j+(n?I.repeat(n.length):""):I.repeat(i.length):"."===r?S.repeat(i.length):"*"===r?s?s+r+(n?B:""):B:s?t:`\\${t}`);return(!0===e&&(s=!0===d.unescape?s.replace(/\\/g,""):s.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),s===c&&!0===d.contains)?V.output=c:V.output=t.wrapOutput(s,V,u),V}for(;!J();){if("\0"===(h=U()))continue;if("\\"===h){let e=$();if("/"===e&&!0!==d.bash||"."===e||";"===e)continue;if(!e){Q({type:"text",value:h+="\\"});continue}let t=/^\\+/.exec(q()),s=0;if(t&&t[0].length>2&&(s=t[0].length,V.index+=s,s%2!=0&&(h+="\\")),!0===d.unescape?h=U():h+=U(),0===V.brackets){Q({type:"text",value:h});continue}}if(V.brackets>0&&("]"!==h||"["===X.value||"[^"===X.value)){if(!1!==d.posix&&":"===h){let e=X.value.slice(1);if(e.includes("[")&&(X.posix=!0,e.includes(":"))){let e=X.value.lastIndexOf("["),t=X.value.slice(0,e),s=i[X.value.slice(e+2)];if(s){X.value=t+s,V.backtrack=!0,U(),g.output||1!==x.indexOf(X)||(g.output=k);continue}}}("["===h&&":"!==$()||"-"===h&&"]"===$())&&(h=`\\${h}`),"]"===h&&("["===X.value||"[^"===X.value)&&(h=`\\${h}`),!0===d.posix&&"!"===h&&"["===X.value&&(h="^"),X.value+=h,W({value:h});continue}if(1===V.quotes&&'"'!==h){h=t.escapeRegex(h),X.value+=h,W({value:h});continue}if('"'===h){V.quotes=+(1!==V.quotes),!0===d.keepQuotes&&Q({type:"text",value:h});continue}if("("===h){z("parens"),Q({type:"paren",value:h});continue}if(")"===h){if(0===V.parens&&!0===d.strictBrackets)throw SyntaxError(l("opening","("));let e=D[D.length-1];if(e&&V.parens===e.parens+1){Z(D.pop());continue}Q({type:"paren",value:h,output:V.parens?")":"\\)"}),K("parens");continue}if("["===h){if(!0!==d.nobracket&&q().includes("]"))z("brackets");else{if(!0!==d.nobracket&&!0===d.strictBrackets)throw SyntaxError(l("closing","]"));h=`\\${h}`}Q({type:"bracket",value:h});continue}if("]"===h){if(!0===d.nobracket||X&&"bracket"===X.type&&1===X.value.length){Q({type:"text",value:h,output:`\\${h}`});continue}if(0===V.brackets){if(!0===d.strictBrackets)throw SyntaxError(l("opening","["));Q({type:"text",value:h,output:`\\${h}`});continue}K("brackets");let e=X.value.slice(1);if(!0===X.posix||"^"!==e[0]||e.includes("/")||(h=`/${h}`),X.value+=h,W({value:h}),!1===d.literalBrackets||t.hasRegexChars(e))continue;let s=t.escapeRegex(X.value);if(V.output=V.output.slice(0,-X.value.length),!0===d.literalBrackets){V.output+=s,X.value=s;continue}X.value=`(${y}${s}|${X.value})`,V.output+=X.value;continue}if("{"===h&&!0!==d.nobrace){z("braces");let e={type:"brace",value:h,output:"(",outputIndex:V.output.length,tokensIndex:V.tokens.length};M.push(e),Q(e);continue}if("}"===h){let e=M[M.length-1];if(!0===d.nobrace||!e){Q({type:"text",value:h,output:h});continue}let t=")";if(!0===e.dots){let e=x.slice(),s=[];for(let t=e.length-1;t>=0&&(x.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&s.unshift(e[t].value);t=o(s,d),V.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let s=V.output.slice(0,e.outputIndex),i=V.tokens.slice(e.tokensIndex);for(let r of(e.value=e.output="\\{",h=t="\\}",V.output=s,i))V.output+=r.output||r.value}Q({type:"brace",value:h,output:t}),K("braces"),M.pop();continue}if("|"===h){D.length>0&&D[D.length-1].conditions++,Q({type:"text",value:h});continue}if(","===h){let e=h,t=M[M.length-1];t&&"braces"===F[F.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:h,output:e});continue}if("/"===h){if("dot"===X.type&&V.index===V.start+1){V.start=V.index+1,V.consumed="",V.output="",x.pop(),X=g;continue}Q({type:"slash",value:h,output:E});continue}if("."===h){if(V.braces>0&&"dot"===X.type){"."===X.value&&(X.output=S);let e=M[M.length-1];X.type="dots",X.output+=h,X.value+=h,e.dots=!0;continue}if(V.braces+V.parens===0&&"bos"!==X.type&&"slash"!==X.type){Q({type:"text",value:h,output:S});continue}Q({type:"dot",value:h,output:S});continue}if("?"===h){if(!(X&&"("===X.value)&&!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Y("qmark",h);continue}if(X&&"paren"===X.type){let e=$(),t=h;("("!==X.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(q()))||(t=`\\${h}`),Q({type:"text",value:h,output:t});continue}if(!0!==d.dot&&("slash"===X.type||"bos"===X.type)){Q({type:"qmark",value:h,output:P});continue}Q({type:"qmark",value:h,output:I});continue}if("!"===h){if(!0!==d.noextglob&&"("===$()&&("?"!==$(2)||!/[!=<:]/.test($(3)))){Y("negate",h);continue}if(!0!==d.nonegate&&0===V.index){G();continue}}if("+"===h){if(!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Y("plus",h);continue}if(X&&"("===X.value||!1===d.regex){Q({type:"plus",value:h,output:C});continue}if(X&&("bracket"===X.type||"paren"===X.type||"brace"===X.type)||V.parens>0){Q({type:"plus",value:h});continue}Q({type:"plus",value:C});continue}if("@"===h){if(!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Q({type:"at",extglob:!0,value:h,output:""});continue}Q({type:"text",value:h});continue}if("*"!==h){("$"===h||"^"===h)&&(h=`\\${h}`);let e=r.exec(q());e&&(h+=e[0],V.index+=e[0].length),Q({type:"text",value:h});continue}if(X&&("globstar"===X.type||!0===X.star)){X.type="star",X.star=!0,X.value+=h,X.output=B,V.backtrack=!0,V.globstar=!0,H(h);continue}let e=q();if(!0!==d.noextglob&&/^\([^?]/.test(e)){Y("star",h);continue}if("star"===X.type){if(!0===d.noglobstar){H(h);continue}let t=X.prev,s=t.prev,i="slash"===t.type||"bos"===t.type,r=s&&("star"===s.type||"globstar"===s.type);if(!0===d.bash&&(!i||e[0]&&"/"!==e[0])){Q({type:"star",value:h,output:""});continue}let n=V.braces>0&&("comma"===t.type||"brace"===t.type),a=D.length&&("pipe"===t.type||"paren"===t.type);if(!i&&"paren"!==t.type&&!n&&!a){Q({type:"star",value:h,output:""});continue}for(;"/**"===e.slice(0,3);){let t=c[V.index+4];if(t&&"/"!==t)break;e=e.slice(3),H("/**",3)}if("bos"===t.type&&J()){X.type="globstar",X.value+=h,X.output=R(d),V.output=X.output,V.globstar=!0,H(h);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!r&&J()){V.output=V.output.slice(0,-(t.output+X.output).length),t.output=`(?:${t.output}`,X.type="globstar",X.output=R(d)+(d.strictSlashes?")":"|$)"),X.value+=h,V.globstar=!0,V.output+=t.output+X.output,H(h);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let s=void 0!==e[1]?"|$":"";V.output=V.output.slice(0,-(t.output+X.output).length),t.output=`(?:${t.output}`,X.type="globstar",X.output=`${R(d)}${E}|${E}${s})`,X.value+=h,V.output+=t.output+X.output,V.globstar=!0,H(h+U()),Q({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){X.type="globstar",X.value+=h,X.output=`(?:^|${E}|${R(d)}${E})`,V.output=X.output,V.globstar=!0,H(h+U()),Q({type:"slash",value:"/",output:""});continue}V.output=V.output.slice(0,-X.output.length),X.type="globstar",X.output=R(d),X.value+=h,V.output+=X.output,V.globstar=!0,H(h);continue}let s={type:"star",value:h,output:B};if(!0===d.bash){s.output=".*?",("bos"===X.type||"slash"===X.type)&&(s.output=O+s.output),Q(s);continue}if(X&&("bracket"===X.type||"paren"===X.type)&&!0===d.regex){s.output=h,Q(s);continue}(V.index===V.start||"slash"===X.type||"dot"===X.type)&&("dot"===X.type?(V.output+=A,X.output+=A):!0===d.dot?(V.output+=T,X.output+=T):(V.output+=O,X.output+=O),"*"!==$()&&(V.output+=k,X.output+=k)),Q(s)}for(;V.brackets>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","]"));V.output=t.escapeLast(V.output,"["),K("brackets")}for(;V.parens>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing",")"));V.output=t.escapeLast(V.output,"("),K("parens")}for(;V.braces>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","}"));V.output=t.escapeLast(V.output,"{"),K("braces")}if(!0!==d.strictSlashes&&("star"===X.type||"bracket"===X.type)&&Q({type:"maybe_slash",value:"",output:`${E}?`}),!0===V.backtrack)for(let e of(V.output="",V.tokens))V.output+=null!=e.output?e.output:e.value,e.suffix&&(V.output+=e.suffix);return V};return p.fastpaths=(i,r)=>{let n={...r},o="number"==typeof n.maxLength?Math.min(s,n.maxLength):s,l=i.length;if(l>o)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${o}`);i=a[i]||i;let{DOT_LITERAL:p,SLASH_LITERAL:c,ONE_CHAR:u,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:x}=e.globChars(n.windows),y=n.dot?f:d,b=n.dot?m:d,v=n.capture?"":"?:",S=!0===n.bash?".*?":g;n.capture&&(S=`(${S})`);let C=e=>!0===e.noglobstar?S:`(${v}(?:(?!${x}${e.dot?h:p}).)*?)`,E=e=>{switch(e){case"*":return`${y}${u}${S}`;case".*":return`${p}${u}${S}`;case"*.*":return`${y}${S}${p}${u}${S}`;case"*/*":return`${y}${S}${c}${u}${b}${S}`;case"**":return y+C(n);case"**/*":return`(?:${y}${C(n)}${c})?${b}${u}${S}`;case"**/*.*":return`(?:${y}${C(n)}${c})?${b}${S}${p}${u}${S}`;case"**/.*":return`(?:${y}${C(n)}${c})?${p}${u}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let s=E(t[1]);if(!s)return;return s+p+t[2]}}},k=E(t.removePrefix(i,{negated:!1,prefix:""}));return k&&!0!==n.strictSlashes&&(k+=`${c}?`),k},h=p}(),s=t5(),i=t4(),r=e=>e&&"object"==typeof e&&!Array.isArray(e),n=(e,t,s=!1)=>{if(Array.isArray(e)){let i=e.map(e=>n(e,t,s));return e=>{for(let t of i){let s=t(e);if(s)return s}return!1}}let i=r(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!i)throw TypeError("Expected pattern to be a non-empty string");let a=t||{},o=a.windows,l=i?n.compileRe(e,t):n.makeRe(e,t,!1,!0),p=l.state;delete l.state;let c=()=>!1;if(a.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};c=n(a.ignore,e,s)}let u=(s,i=!1)=>{let{isMatch:r,match:u,output:h}=n.test(s,l,t,{glob:e,posix:o}),d={glob:e,state:p,regex:l,posix:o,input:s,output:h,match:u,isMatch:r};return("function"==typeof a.onResult&&a.onResult(d),!1===r)?(d.isMatch=!1,!!i&&d):c(s)?("function"==typeof a.onIgnore&&a.onIgnore(d),d.isMatch=!1,!!i&&d):("function"==typeof a.onMatch&&a.onMatch(d),!i||d)};return s&&(u.state=p),u};return n.test=(e,t,i,{glob:r,posix:a}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let o=i||{},l=o.format||(a?s.toPosixSlashes:null),p=e===r,c=p&&l?l(e):e;return!1===p&&(p=(c=l?l(e):e)===r),(!1===p||!0===o.capture)&&(p=!0===o.matchBase||!0===o.basename?n.matchBase(e,t,i,a):t.exec(c)),{isMatch:!!p,match:p,output:c}},n.matchBase=(e,t,i)=>(t instanceof RegExp?t:n.makeRe(t,i)).test(s.basename(e)),n.isMatch=(e,t,s)=>n(t,s)(e),n.parse=(e,s)=>Array.isArray(e)?e.map(e=>n.parse(e,s)):t(e,{...s,fastpaths:!1}),n.scan=(t,s)=>e(t,s),n.compileRe=(e,t,s=!1,i=!1)=>{if(!0===s)return e.output;let r=t||{},a=r.contains?"":"^",o=r.contains?"":"$",l=`${a}(?:${e.output})${o}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let p=n.toRegex(l,t);return!0===i&&(p.state=e),p},n.makeRe=(e,s={},i=!1,r=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let a={negated:!1,fastpaths:!0};return!1!==s.fastpaths&&("."===e[0]||"*"===e[0])&&(a.output=t.fastpaths(e,s)),a.output||(a=t(e,s)),n.compileRe(a,s,i,r)},n.toRegex=(e,t)=>{try{let s=t||{};return new RegExp(e,s.flags||(s.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},n.constants=i,f=n}(),t=t5();function s(i,r,n=!1){return r&&(null===r.windows||void 0===r.windows)&&(r={...r,windows:t.isWindows()}),e(i,r,n)}return Object.assign(s,e),g=s}());function t8(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function t7(e){let t=e.toUpperCase();return e===t&&t!==e.toLowerCase()}var se=tv({name:"jsx-pascal-case",package:"jsx",meta:{type:"suggestion",docs:{description:"Enforce PascalCase for user-defined JSX components"},messages:{usePascalCase:"Imported JSX component {{name}} must be in PascalCase",usePascalOrSnakeCase:"Imported JSX component {{name}} must be in PascalCase or SCREAMING_SNAKE_CASE"},schema:[{type:"object",properties:{allowAllCaps:{type:"boolean"},allowLeadingUnderscore:{type:"boolean"},allowNamespace:{type:"boolean"},ignore:{items:{type:"string"},type:"array",uniqueItems:!0}},additionalProperties:!1}]},create(e){let{allowAllCaps:t=!1,allowLeadingUnderscore:s=!1,allowNamespace:i=!1,ignore:r=[]}=e.options[0]||{},n=t9(r,{noglobstar:!0});return{JSXOpeningElement(a){if(tA(a))return;let o=tN(a),l=[o],p=0;o.includes(":")?l=o.split(":"):o.includes(".")&&(l=o.split("."));do{let i=l[p];if(1===i.length)return;let o=n(i)||r.includes(i),c=s&&i.startsWith("_")?i.slice(1):i,u=!(!t7(c.charAt(0))||Array.prototype.some.call(c.slice(1),e=>e.toLowerCase()===e.toUpperCase()&&!t8(e)))&&Array.prototype.some.call(c.slice(1),e=>(function(e){let t=e.toLowerCase();return e===t&&t!==e.toUpperCase()})(e)||t8(e)),h=t&&function(e){let t=e.charAt(0);if(!(t7(t)||t8(t)))return!1;for(let t=1;t<e.length-1;t+=1){let s=e.charAt(t);if(!(t7(s)||t8(s)||"_"===s))return!1}let s=e.charAt(e.length-1);return!!(t7(s)||t8(s))}(c);if(!u&&!h&&!o){let s=t?"usePascalOrSnakeCase":"usePascalCase";e.report({messageId:s,node:a,data:{name:i}});break}p+=1}while(p<l.length&&!i)}}}}),st=tv({name:"jsx-props-no-multi-spaces",package:"jsx",meta:{type:"layout",docs:{description:"Disallow multiple spaces between inline JSX props"},fixable:"code",messages:{noLineGap:"Expected no line gap between “{{prop1}}” and “{{prop2}}”",onlyOneSpace:"Expected only one space between “{{prop1}}” and “{{prop2}}”"},schema:[]},create(e){let t=e.sourceCode;function s(e){switch(e.type){case"JSXSpreadAttribute":return t.getText(e.argument);case"JSXIdentifier":return e.name;case"JSXMemberExpression":return`${s(e.object)}.${e.property.name}`;default:return e.name?e.name.name:`${t.getText(e.object)}.${e.property.name}`}}return{JSXOpeningElement(i){i.attributes.reduce((i,r)=>{var n,a;return function(e,s){let i=[].concat(e,t.getCommentsBefore?t.getCommentsBefore(s):[],s);for(let e=1;e<i.length;e+=1){let t=i[e-1];if(i[e].loc.start.line-t.loc.end.line>=2)return!0}return!1}(n=i,a=r)&&e.report({messageId:"noLineGap",node:a,data:{prop1:s(n),prop2:s(a)}}),n.loc.end.line===a.loc.end.line&&" "!==t.text.slice(n.range[1],a.range[0])&&e.report({node:a,messageId:"onlyOneSpace",data:{prop1:s(n),prop2:s(a)},fix:e=>e.replaceTextRange([n.range[1],a.range[0]]," ")}),r},function(e){let t=e.name;if(void 0!==e.typeArguments&&e.typeArguments?.type==="TSTypeParameterInstantiation"){let s=e.typeArguments;return Object.assign({},e,{range:[t.range[0],s?.range[1]]})}return t}(i))}}}});const ss={component:!0,html:!0};var si=tv({name:"jsx-self-closing-comp",package:"jsx",meta:{type:"layout",docs:{description:"Disallow extra closing tags for components without children"},fixable:"code",messages:{notSelfClosing:"Empty components are self-closing"},schema:[{type:"object",properties:{component:{default:ss.component,type:"boolean"},html:{default:ss.html,type:"boolean"}},additionalProperties:!1}]},create:e=>({JSXOpeningElement(t){(function(t){var s;let i=Object.assign({},ss,e.options[0]);return(i.component&&(s=t).name&&("JSXIdentifier"===s.name.type||"JSXMemberExpression"===s.name.type)&&!tA(s)||i.html&&tA(t))&&!t.selfClosing&&(0===t.parent.children.length||function(e){let t=e.parent.children;return 1===t.length&&"JSXText"===t[0].type&&t[0].value.includes("\n")&&""===t[0].value.replace(/(?!\xA0)\s/g,"")}(t))})(t)&&e.report({messageId:"notSelfClosing",node:t,fix(e){let s=t.range[1]-1,i=t.parent.closingElement?.range[1]??NaN;return e.replaceTextRange([s,i]," />")}})}})});function sr(e){return/^on[A-Z]/.test(e)}function sn(e){return e.loc.start.line!==e.loc.end.line}const sa=["children","dangerouslySetInnerHTML","key","ref"];function so(e,t){return t.includes(e)}function sl(t){let s=e.get(t);return!!s&&!!s.hasComment}const sp=new WeakMap;function sc(t,s,i,r,n){let a=sp.get(t)||[];a.includes(s)||(a.push(s),sp.set(t,a),r.report({node:t.name??"",messageId:s,fix:function(t,s,i){let r=s.sourceCode,n=t.attributes.slice(0),a=s.options[0]||{},o=a.ignoreCase||!1,l=a.callbacksLast||!1,p=a.shorthandFirst||!1,c=a.shorthandLast||!1,u=a.multiline||"ignore",h=a.noSortAlphabetically||!1,d={ignoreCase:o,callbacksLast:l,shorthandFirst:p,shorthandLast:c,multiline:u,noSortAlphabetically:h,reservedFirst:a.reservedFirst||!1,reservedList:i,locale:a.locale||"auto"},f=function(t,s){let i=s.sourceCode,r=[],n=0;function a(e){r[n-1].push(e)}for(let s=0;s<t.length;s++){let o=t[s],l=t[s+1],p=o.loc.start.line,c=[];try{c=i.getCommentsAfter(o)}catch{}let u=t[s-1],h="JSXSpreadAttribute"===o.type;if(u&&("JSXSpreadAttribute"!==u.type||h)||(r[(n+=1)-1]=[]),!h)if(0===c.length)e.set(o,{end:o.range[1],hasComment:!1}),a(o);else{let t=c[0],r=t.loc.start.line;if(1===c.length)p+1===r&&l?(e.set(o,{end:l.range[1],hasComment:!0}),a(o),s+=1):p===r&&("Block"===t.type&&l?(e.set(o,{end:l.range[1],hasComment:!0}),s+=1):"Block"===t.type?e.set(o,{end:t.range[1],hasComment:!0}):e.set(o,{end:t.range[1],hasComment:!1}),a(o));else if(c.length>1&&p+1===c[1].loc.start.line&&l){let t=i.getCommentsAfter(l);e.set(o,{end:l.range[1],hasComment:!0}),1===t.length&&l.loc.start.line===t[0].loc.start.line&&e.set(o,{end:t[0].range[1],hasComment:!0}),a(o),s+=1}}}return r}(n,s),m=f.slice(0).map(e=>[...e].sort((e,t)=>(function(e,t,s){let i=tP(e),r=tP(t),n=sl(e),a=sl(t);if(n&&!a)return 1;if(!n&&a)return -1;if(s.reservedFirst){let e=so(i,s.reservedList),t=so(r,s.reservedList);if(e&&!t)return -1;if(!e&&t)return 1}if(s.callbacksLast){let e=sr(i),t=sr(r);if(e&&!t)return 1;if(!e&&t)return -1}if(s.shorthandFirst||s.shorthandLast){let i=s.shorthandFirst?-1:1;if(!e.value&&t.value)return i;if(e.value&&!t.value)return-i}if("ignore"!==s.multiline){let i="first"===s.multiline?-1:1,r=sn(e),n=sn(t);if(r&&!n)return i;if(!r&&n)return-i}if(s.noSortAlphabetically)return 0;let o="auto"===s.locale?void 0:s.locale;return s.ignoreCase?(i=i.toLowerCase(),r=r.toLowerCase(),i.localeCompare(r,o)):i===r?0:"auto"===s.locale?i<r?-1:1:i.localeCompare(r,o)})(e,t,d)));return function(t){let s=[],i=r.getText();f.forEach((t,r)=>{t.forEach((t,n)=>{let a=m[r][n],o=i.slice(a.range[0],e.get(a).end);s.push({range:[t.range[0],e.get(t).end],text:o})})}),s.sort((e,t)=>t.range[0]-e.range[0]);let n=s[0],a=s[s.length-1],o=a?a.range[0]:0,l=n?n.range[1]:-0;return s.forEach(e=>{i=`${i.slice(0,e.range[0])}${e.text}${i.slice(e.range[1])}`}),t.replaceTextRange([o,l],i.slice(o,l))}}(i,r,n)}))}var su=tv({name:"jsx-sort-props",package:"jsx",meta:{type:"layout",docs:{description:"Enforce props alphabetical sorting"},fixable:"code",messages:{noUnreservedProps:"A customized reserved first list must only contain a subset of React reserved props. Remove: {{unreservedWords}}",listIsEmpty:"A customized reserved first list must not be empty",listReservedPropsFirst:"Reserved props must be listed before all other props",listCallbacksLast:"Callbacks must be listed after all other props",listShorthandFirst:"Shorthand props must be listed before all other props",listShorthandLast:"Shorthand props must be listed after all other props",listMultilineFirst:"Multiline props must be listed before all other props",listMultilineLast:"Multiline props must be listed after all other props",sortPropsByAlpha:"Props should be sorted alphabetically"},schema:[{type:"object",properties:{callbacksLast:{type:"boolean"},shorthandFirst:{type:"boolean"},shorthandLast:{type:"boolean"},multiline:{type:"string",enum:["ignore","first","last"],default:"ignore"},ignoreCase:{type:"boolean"},noSortAlphabetically:{type:"boolean"},reservedFirst:{type:["array","boolean"]},locale:{type:"string",default:"auto"}},additionalProperties:!1}]},create(t){let s=t.options[0]||{},i=s.ignoreCase||!1,r=s.callbacksLast||!1,n=s.shorthandFirst||!1,a=s.shorthandLast||!1,o=s.multiline||"ignore",l=s.noSortAlphabetically||!1,p=s.reservedFirst||!1,c=function(e,t){if(t&&Array.isArray(t)){let s=t.filter(e=>!so(e,sa));if(0===t.length)return function(t){e.report({node:t,messageId:"listIsEmpty"})};if(s.length>0)return function(t){e.report({node:t,messageId:"noUnreservedProps",data:{unreservedWords:s.toString()}})}}}(t,p),u=Array.isArray(p)?p:sa,h=s.locale||"auto";return{Program(){e=new WeakMap},JSXOpeningElement(e){let s=p&&!tA(e)?u.filter(e=>"dangerouslySetInnerHTML"!==e):u;e.attributes.reduce((u,d,f,m)=>{if("JSXSpreadAttribute"===d.type)return m[f+1];let g=tP(u),x=tP(d),y=u.value,b=d.value,v=sr(g),S=sr(x);if(i&&(g=g.toLowerCase(),x=x.toLowerCase()),p){if(c)return c(d),u;let i=so(g,s),r=so(x,s);if(i&&!r)return d;if(!i&&r)return sc(d,"listReservedPropsFirst",e,t,s),u}if(r){if(!v&&S)return d;if(v&&!S)return sc(u,"listCallbacksLast",e,t,s),u}if(n){if(b&&!y)return d;if(!b&&y)return sc(d,"listShorthandFirst",e,t,s),u}if(a){if(!b&&y)return d;if(b&&!y)return sc(u,"listShorthandLast",e,t,s),u}let C=sn(u),E=sn(d);if("first"===o){if(C&&!E)return d;if(!C&&E)return sc(d,"listMultilineFirst",e,t,s),u}else if("last"===o){if(!C&&E)return d;if(C&&!E)return sc(u,"listMultilineLast",e,t,s),u}return!l&&(i||"auto"!==h?g.localeCompare(x,"auto"===h?void 0:h)>0:g>x)?(sc(d,"sortPropsByAlpha",e,t,s),u):d},e.attributes[0])}}}});function sh(e,t,s){let i,r=e.sourceCode;if("selfClosing"in t&&t.selfClosing){let n=r.getLastTokens(t,2);i=!r.isSpaceBetween(n[0],n[1]),"never"===s?i||e.report({node:t,messageId:"selfCloseSlashNoSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.removeRange([n[0].range[1],n[1].range[0]])}):"always"===s&&i&&e.report({node:t,messageId:"selfCloseSlashNeedSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.insertTextBefore(n[1]," ")})}else{let n=r.getFirstTokens(t,2);i=!r.isSpaceBetween(n[0],n[1]),"never"===s?i||e.report({node:t,messageId:"closeSlashNoSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.removeRange([n[0].range[1],n[1].range[0]])}):"always"===s&&i&&e.report({node:t,messageId:"closeSlashNeedSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.insertTextBefore(n[1]," ")})}}function sd(e,t,s){let i=e.sourceCode,r=i.getTokenBefore(t.name);if("allow-multiline"===s&&r.loc.start.line!==t.name.loc.start.line)return;let n=!i.isSpaceBetween(r,t.name);"never"===s||"allow-multiline"===s?n||e.report({node:t,messageId:"afterOpenNoSpace",loc:{start:r.loc.start,end:t.name.loc.start},fix:e=>e.removeRange([r.range[1],t.name.range[0]])}):"always"===s&&n&&e.report({node:t,messageId:"afterOpenNeedSpace",loc:{start:r.loc.start,end:t.name.loc.start},fix:e=>e.insertTextBefore(t.name," ")})}function sf(e,t,s){if(!("selfClosing"in t&&t.selfClosing)){let i=e.sourceCode,r="proportional-always"===s?tk(t):i.getLastTokens(t,2)[0],n=i.getTokenAfter(r);if(t.loc.start.line!==t.loc.end.line&&"proportional-always"===s&&r.loc.end.line===n.loc.start.line)return void e.report({node:t,messageId:"beforeCloseNeedNewline",loc:r.loc.end,fix:e=>e.insertTextBefore(n,"\n")});if(r.loc.start.line!==n.loc.start.line)return;let a=!i.isSpaceBetween(r,n);"never"!==s||a?"always"===s&&a?e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:"beforeCloseNeedSpace",fix:e=>e.insertTextBefore(n," ")}):"proportional-always"===s&&"JSXOpeningElement"===t.type&&a!==(t.loc.start.line===t.loc.end.line)&&e.report({node:t,messageId:"beforeCloseNeedSpace",loc:{start:r.loc.end,end:n.loc.start},fix:e=>e.insertTextBefore(n," ")}):e.report({node:t,messageId:"beforeCloseNoSpace",loc:{start:r.loc.end,end:n.loc.start},fix:e=>e.removeRange([r.range[1],n.range[0]])})}}const sm={closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"allow"};var sg=tv({name:"jsx-tag-spacing",package:"jsx",meta:{type:"layout",docs:{description:"Enforce whitespace in and around the JSX opening and closing brackets"},fixable:"whitespace",messages:{selfCloseSlashNoSpace:"Whitespace is forbidden between `/` and `>`; write `/>`",selfCloseSlashNeedSpace:"Whitespace is required between `/` and `>`; write `/ >`",closeSlashNoSpace:"Whitespace is forbidden between `<` and `/`; write `</`",closeSlashNeedSpace:"Whitespace is required between `<` and `/`; write `< /`",beforeSelfCloseNoSpace:"A space is forbidden before closing bracket",beforeSelfCloseNeedSpace:"A space is required before closing bracket",beforeSelfCloseNeedNewline:"A newline is required before closing bracket",afterOpenNoSpace:"A space is forbidden after opening bracket",afterOpenNeedSpace:"A space is required after opening bracket",beforeCloseNoSpace:"A space is forbidden before closing bracket",beforeCloseNeedSpace:"Whitespace is required before closing bracket",beforeCloseNeedNewline:"A newline is required before closing bracket"},schema:[{type:"object",properties:{closingSlash:{type:"string",enum:["always","never","allow"]},beforeSelfClosing:{type:"string",enum:["always","proportional-always","never","allow"]},afterOpening:{type:"string",enum:["always","allow-multiline","never","allow"]},beforeClosing:{type:"string",enum:["always","proportional-always","never","allow"]}},default:sm,additionalProperties:!1}]},create(e){let t=Object.assign({},sm,e.options[0]);return{JSXOpeningElement(s){"allow"!==t.closingSlash&&s.selfClosing&&sh(e,s,t.closingSlash),"allow"!==t.afterOpening&&sd(e,s,t.afterOpening),"allow"!==t.beforeSelfClosing&&s.selfClosing&&function(e,t,s){let i=e.sourceCode,r=tk(t),n=i.getTokenAfter(r);if(t.loc.start.line!==t.loc.end.line&&"proportional-always"===s&&r.loc.end.line===n.loc.start.line)return e.report({node:t,messageId:"beforeSelfCloseNeedNewline",loc:r.loc.end,fix:e=>e.insertTextBefore(n,"\n")});if(r.loc.end.line!==n.loc.start.line)return;let a=!i.isSpaceBetween(r,n);("always"===s||"proportional-always"===s)&&a?e.report({node:t,messageId:"beforeSelfCloseNeedSpace",loc:n.loc.start,fix:e=>e.insertTextBefore(n," ")}):"never"!==s||a||e.report({node:t,messageId:"beforeSelfCloseNoSpace",loc:n.loc.start,fix(e){let t=i.getTokenBefore(n);return e.removeRange([t.range[1],n.range[0]])}})}(e,s,t.beforeSelfClosing),"allow"!==t.beforeClosing&&sf(e,s,t.beforeClosing)},JSXClosingElement(s){"allow"!==t.afterOpening&&sd(e,s,t.afterOpening),"allow"!==t.closingSlash&&sh(e,s,t.closingSlash),"allow"!==t.beforeClosing&&sf(e,s,t.beforeClosing)}}}});const sx={declaration:"parens",assignment:"parens",return:"parens",arrow:"parens",condition:"ignore",logical:"ignore",prop:"ignore",propertyValue:"ignore"};var sy={rules:{"jsx-child-element-spacing":tR,"jsx-closing-bracket-location":tO,"jsx-closing-tag-location":tV,"jsx-curly-brace-presence":t$,"jsx-curly-newline":tU,"jsx-curly-spacing":tW,"jsx-equals-spacing":tG,"jsx-first-prop-new-line":tz,"jsx-function-call-newline":tK,"jsx-indent":tY,"jsx-indent-props":tQ,"jsx-max-props-per-line":tZ,"jsx-newline":t0,"jsx-one-expression-per-line":t3,"jsx-pascal-case":se,"jsx-props-no-multi-spaces":st,"jsx-self-closing-comp":si,"jsx-sort-props":su,"jsx-tag-spacing":sg,"jsx-wrap-multilines":tv({name:"jsx-wrap-multilines",package:"jsx",meta:{type:"layout",docs:{description:"Disallow missing parentheses around multiline JSX"},fixable:"code",messages:{missingParens:"Missing parentheses around multilines JSX",parensOnNewLines:"Parentheses around JSX should be on separate lines"},schema:[{type:"object",properties:{declaration:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},assignment:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},return:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},arrow:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},condition:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},logical:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},prop:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},propertyValue:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]}},additionalProperties:!1}]},create(e){function t(t){let s=e.options[0]||{};return t in s?s[t]:sx[t]}function s(e){let s=t(e);return s&&"ignore"!==s}function i(e){return e.loc.start.line!==e.loc.end.line}function r(s,r){if(!s||!tT(s))return;let n=e.sourceCode,a=t(r);if((!0===a||"parens"===a)&&!t_(s,e.sourceCode)&&i(s)&&e.report({node:s,messageId:"missingParens",fix:e=>e.replaceText(s,`(${n.getText(s)})`)}),"parens-new-line"===a&&i(s))if(t_(s,e.sourceCode)){let t=function(t){let s=e.sourceCode.getTokenBefore(t);return!!t_(t,e.sourceCode)&&s.loc.end.line===t.loc.start.line}(s),i=function(t){let s=e.sourceCode.getTokenAfter(t);return!!t_(t,e.sourceCode)&&t.loc.end.line===s.loc.end.line}(s);(t||i)&&e.report({node:s,messageId:"parensOnNewLines",fix:e=>{let r=n.getText(s);return t&&(r=`
7
+ ${r}${t}`);return e.replaceTextRange([t.range[0]+i,t.range[1]],n)}}return function(e){return e.replaceTextRange([t.range[0]-t.loc.start.column,t.range[0]],r)}}(s,r),...{}})}function l(s,i=!1,r=!1){let n,a=e.sourceCode.getText(s,s.loc.start.column+0),o=a.split("\n");a=i?o[o.length-1]:o[0];let p=r?",":"",c=("space"===t?RegExp(`^[ ${p}]+`):RegExp(`^[ ${p}]+`)).exec(a);return c?c[0].length:0}function p(e){return e.parent&&e.parent.parent&&"LogicalExpression"===e.parent.parent.type&&e.parent.parent.right===e.parent&&!a}function c(t){return t.parent&&t.parent.parent&&"ConditionalExpression"===t.parent.parent.type&&t.parent.parent.alternate===t.parent&&"("!==e.sourceCode.getTokenBefore(t).value}function u(t,i,r=!1){let n=l(t,!1,r),a=p(t)&&n-i===s,h=c(t)&&n-i==0;n!==i&&tE(e,t)&&!a&&!h&&o(t,i,n)}function h(t){let i=e.sourceCode,r=i.getTokenBefore(t);if(!r)return;if("JSXText"===r.type||"Punctuator"===r.type&&","===r.value)r="Literal"===(r=i.getNodeByRangeIndex(r.range[0])).type||"JSXText"===r.type?r.parent:r;else if("Punctuator"===r.type&&":"===r.value){do r=i.getTokenBefore(r);while("Punctuator"===r.type&&"/"!==r.value);for(r=i.getNodeByRangeIndex(r.range[0]);r.parent&&"ConditionalExpression"!==r.parent.type;)r=r.parent}let n=l(r="JSXExpressionContainer"===r.type?r.expression:r),a=r.loc.start.line===t.loc.start.line||p(t)||c(t)||function(e){if(!e.parent||!e.parent.parent||"ExpressionStatement"!==e.parent.parent.type)return!1;let t=e.parent.parent;return!!(t.parent&&"BlockStatement"===t.parent.type&&t.parent.parent&&"DoExpression"===t.parent.parent.type)&&t.parent.body[0]!==t}(t)?0:s;u(t,n+a)}function d(e){if(!e.parent)return;let t=l(e.parent.openingElement||e.parent.openingFragment);u(e,t)}function f(e){if(!e.parent||"JSXElement"!==e.parent.type&&"JSXFragment"!==e.parent.type)return;let i=l(e.parent);!function(e,s){let i=e.value,r="space"===t?/\n( *)[\t ]*\S/g:/\n(\t*)[\t ]*\S/g,n=Array.from(String(i).matchAll(r),e=>e[1]?e[1].length:0);n.length>0&&!n.every(e=>e===s)&&n.forEach(t=>{o(e,s,t)})}(e,i+s)}return{JSXOpeningElement:h,JSXOpeningFragment:h,JSXClosingElement:d,JSXClosingFragment:d,JSXAttribute:function(t){if(!n||!t.value||"JSXExpressionContainer"!==t.value.type)return;let s=l(t.name),i=e.sourceCode.getLastToken(t.value),r=tC(e,i);if(r.loc.start.line!==i.loc.start.line)return;let a=t.name.loc.start.line===r.loc.start.line?0:s;u(r,a)},JSXExpressionContainer(e){if(!e.parent)return;let t=l(e.parent);u(e,t+s)},Literal:f,JSXText:f,ReturnStatement(t){if(!t.parent||!t.argument||!tT(t.argument))return;let s=t.parent;for(;s&&"FunctionDeclaration"!==s.type&&"FunctionExpression"!==s.type;)s=s.parent;if(!s||!function(e,t,s=!1,i=!1){let r=e=>{if(!e)return!1;switch(e.type){case"ConditionalExpression":if(s)return r(e.consequent)&&r(e.alternate);return r(e.consequent)||r(e.alternate);case"LogicalExpression":if(s)return r(e.left)&&r(e.right);return r(e.left)||r(e.right);case"SequenceExpression":return r(e.expressions[e.expressions.length-1]);case"JSXElement":case"JSXFragment":return!0;case"Literal":if(!i&&null===e.value)return!0;return!1;case"Identifier":return tT(function(e,t){var s;let i=(s=function(e){let t=e.getScope(),s=t.variables;for(;"global"!==t.type;)s=(t=t.upper).variables.concat(s);return t.childScopes.length&&(s=t.childScopes[0].variables.concat(s),t.childScopes[0].childScopes.length&&(s=t.childScopes[0].childScopes[0].variables.concat(s))),s.reverse(),s}(e),s.find(e=>e.name===t));return i&&i.defs[0]&&i.defs[0].node?"TypeAlias"===i.defs[0].node.type?i.defs[0].node.right:"ImportBinding"===i.defs[0].type?i.defs[0].node:i.defs[0].node.init:null}(t,e.name));default:return!1}},n=!1;return!function(e,t){let s=e.type;"ReturnStatement"===s?t(e.argument,()=>{}):"ArrowFunctionExpression"===s&&e.expression?t(e.body,()=>{}):("FunctionExpression"===s||"FunctionDeclaration"===s||"ArrowFunctionExpression"===s||"MethodDefinition"===s)&&function(e,t){let s=Object.assign({},{fallback:e=>Object.keys(e).filter(e=>"children"===e||"argument"===e)},t);s.keys=Object.assign({},t.keys,{JSXElement:["children"],JSXFragment:["children"]}),ty.traverse(e,s)}(e.body,{enter(e){switch(e.type){case"ReturnStatement":this.skip(),t(e.argument,()=>{this.break()});return;case"BlockStatement":case"IfStatement":case"ForStatement":case"WhileStatement":case"SwitchStatement":case"SwitchCase":return;default:this.skip()}}})}(e,(e,t)=>{r(e)&&(n=!0,t())}),n}(t,e,!0))return;let i=l(t),r=l(t,!0);i!==r&&o(t,i,r)}}}}),tZ=tv({name:"jsx-max-props-per-line",package:"jsx",meta:{type:"layout",docs:{description:"Enforce maximum of props on a single line in JSX"},fixable:"code",messages:{newLine:"Prop `{{prop}}` must be placed on a new line"},schema:[{anyOf:[{type:"object",properties:{maximum:{type:"object",properties:{single:{type:"integer",minimum:1},multi:{type:"integer",minimum:1}}}},additionalProperties:!1},{type:"object",properties:{maximum:{type:"number",minimum:1},when:{type:"string",enum:["always","multiline"]}},additionalProperties:!1}]}]},create(e){let t=e.options[0]||{},s=t.maximum||1,i="number"==typeof s?{single:"multiline"===t.when?1/0:s,multi:s}:{single:s.single||1/0,multi:s.multi||1/0};return{JSXOpeningElement(t){if(!t.attributes.length)return;let s=t.loc.start.line===t.loc.end.line;if((s?i.single:i.multi)===1/0)return;let r=[[t.attributes[0]]];t.attributes.reduce((e,t)=>(e.loc.end.line===t.loc.start.line?r[r.length-1].push(t):r.push([t]),t)),r.forEach(r=>{let n=s&&r[0].loc.start.line===t.loc.start.line?i.single:i.multi;if(r.length>n){var a;let t="JSXSpreadAttribute"===(a=r[n]).type?e.sourceCode.getText(a.argument):a.name.name;e.report({messageId:"newLine",node:r[n],data:{prop:t},fix:function(t,s){let i=e.sourceCode,r=[],n=t[0].range[0],a=t[t.length-1].range[1];for(let e=0;e<t.length;e+=s){let n=t.slice(e,e+s);r.push(n.reduce((e,t)=>""===e?i.getText(t):`${e} ${i.getText(t)}`,""))}let o=r.join("\n");return function(e){return e.replaceTextRange([n,a],o)}}(r,n)})}})}}}});function t1(e){return e&&e.loc.start.line!==e.loc.end.line}var t0=tv({name:"jsx-newline",package:"jsx",meta:{type:"layout",docs:{description:"Require or prevent a new line after jsx elements and expressions."},fixable:"code",messages:{require:"JSX element should start in a new line",prevent:"JSX element should not start in a new line",allowMultilines:"Multiline JSX elements should start in a new line"},schema:[{type:"object",properties:{prevent:{default:!1,type:"boolean"},allowMultilines:{default:!1,type:"boolean"}},additionalProperties:!1,if:{properties:{allowMultilines:{const:!0}}},then:{properties:{prevent:{const:!0}},required:["prevent"]}}]},create(e){let t=new Set,s=e.sourceCode;function i(e){let t=s.getText(e);return/^\s*\{\/\*/.test(t)}function r(e){return!i(e)&&("JSXElement"===e.type||"JSXExpressionContainer"===e.type)}return{"Program:exit":function(){t.forEach(t=>{t.children.forEach((t,n,a)=>{if("JSXElement"===t.type||"JSXExpressionContainer"===t.type){let o=e.options[0]||{},l=o.prevent||!1,p=o.allowMultilines||!1,c=a[n+1],u=a[n+2];if(!(c&&u&&("Literal"===c.type||"JSXText"===c.type)))return;let h=!/\n\s*\n/.test(c.value);if(i(t))return;if(p&&(t1(t)||t1(a.slice(n+2).find(r)))){if(!h)return;let t=/(\n)(?!.*\1)/g;e.report({messageId:"allowMultilines",node:u,fix:e=>e.replaceText(c,s.getText(c).replace(t,"\n\n"))});return}if(h===l)return;let d=l?/(\n\n)(?!.*\1)/g:/(\n)(?!.*\1)/g,f=l?"\n":"\n\n";e.report({messageId:l?"prevent":"require",node:u,fix:e=>e.replaceText(c,s.getText(c).replace(d,f))})}})})},":matches(JSXElement, JSXFragment) > :matches(JSXElement, JSXExpressionContainer)":e=>{t.add(e.parent)}}}});const t2={allow:"none"};var t3=tv({name:"jsx-one-expression-per-line",package:"jsx",meta:{type:"layout",docs:{description:"Require one JSX element per line"},fixable:"whitespace",messages:{moveToNewLine:"`{{descriptor}}` must be placed on a new line"},schema:[{type:"object",properties:{allow:{type:"string",enum:["none","literal","single-child","single-line","non-jsx"]}},default:t2,additionalProperties:!1}]},create(e){let t=Object.assign({},t2,e.options[0]);function s(s){let i=s.children;if(!i||!i.length||"non-jsx"===t.allow&&!i.find(e=>"JSXFragment"===e.type||"JSXElement"===e.type))return;let r=s.openingElement||s.openingFragment,n=s.closingElement||s.closingFragment,a=r.loc.start.line,o=r.loc.end.line,l=n.loc.start.line,p=n.loc.end.line;if(1===i.length){let e=i[0];if(a===o&&o===l&&l===p&&p===e.loc.start.line&&e.loc.start.line===e.loc.end.line&&("single-child"===t.allow||"literal"===t.allow&&("Literal"===e.type||"JSXText"===e.type)||"single-line"===t.allow))return}if("single-line"===t.allow){let e=i[0],t=i[i.length-1],s=t.loc.end.line-e.loc.start.line,r=0;if(("Literal"===e.type||"JSXText"===e.type)&&/^\s*?\n/.test(e.raw)&&(r+=1),("Literal"===t.type||"JSXText"===t.type)&&/\n\s*$/.test(t.raw)&&(r+=1),0===s&&0===r||2===s&&2===r)return}let c={},u={};i.forEach(e=>{let t=0,s=0;if("Literal"===e.type||"JSXText"===e.type){if(tI(e.raw))return;t=(e.raw.match(/^\s*\n/g)||[]).length,s=(e.raw.match(/\n\s*$/g)||[]).length}let i=e.loc.start.line+t,r=e.loc.end.line-s;i===r?(c[i]||(c[i]=[]),c[i].push(e)):(c[i]||(c[i]=[]),c[i].push(e),c[r]||(c[r]=[]),c[r].push(e))}),Object.keys(c).forEach(t=>{let s=parseInt(t,10),i=c[s].length-1;c[s].forEach((t,a)=>{let p,h;if(0===a?s===o&&(p=r):p=c[s][a-1],a===i&&s===l&&(h=n),!p&&!h)return;let d=e.sourceCode.getText(t),f=!!(p&&(()=>{let s=e.sourceCode.getTokensBetween(p,t)[0];return("Literal"===p.type||"JSXText"===p.type)&&p.raw.endsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.startsWith(" ")||tI(s?.value)})()),m=!!(h&&(()=>{let s=e.sourceCode.getTokensBetween(t,h)[0];return("Literal"===h.type||"JSXText"===h.type)&&h.raw.startsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.endsWith(" ")||tI(s?.value)})()),g=!!p,x=!!h,y=`${t.loc.start.line},${t.loc.start.column}`;u[y]||(u[y]={node:t,source:d,descriptor:"openingElement"in t&&t.openingElement&&"name"in t.openingElement.name?String(t.openingElement.name.name):e.sourceCode.getText(t).replace(/\n/g,"")}),f&&(u[y].leadingSpace=!0),g&&(u[y].leadingNewLine=!0),x&&(u[y].trailingNewLine=!0),m&&(u[y].trailingSpace=!0)})}),Object.keys(u).forEach(t=>{let s=u[t],i=s.node,r=s.descriptor,n=s.source.replace(/(^ +| +$)/g,""),a=s.leadingSpace?"\n{' '}":"",o=s.trailingSpace?"{' '}\n":"",l=s.leadingNewLine?"\n":"",p=s.trailingNewLine?"\n":"",c=`${a}${l}${n}${p}${o}`;e.report({messageId:"moveToNewLine",node:i,data:{descriptor:r},fix:e=>e.replaceText(i,c)})})}return{JSXElement:s,JSXFragment:s}}}),t6={};function t4(){if(l)return o;l=1;let e="[^\\\\/]",t="[^/]",s="(?:\\/|$)",i="(?:^|\\/)",r=`\\.{1,2}${s}`,n=`(?!${i}${r})`,a=`(?!\\.{0,1}${s})`,p=`(?!${r})`,c=`${t}*?`,u={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:s,DOTS_SLASH:r,NO_DOT:"(?!\\.)",NO_DOTS:n,NO_DOT_SLASH:a,NO_DOTS_SLASH:p,QMARK_NO_DOT:"[^.\\/]",STAR:c,START_ANCHOR:i,SEP:"/"},h={...u,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 o={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:{"***":"*","**/**":"**","**/**/**":"**"},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?h:u}}function t5(){if(p)return t6;p=1;let{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:t,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=t4();return t6.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t6.hasRegexChars=e=>s.test(e),t6.isRegexChar=e=>1===e.length&&t6.hasRegexChars(e),t6.escapeRegex=e=>e.replace(i,"\\$1"),t6.toPosixSlashes=t=>t.replace(e,"/"),t6.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},t6.removeBackslashes=e=>e.replace(t,e=>"\\"===e?"":e),t6.escapeLast=(e,t,s)=>{let i=e.lastIndexOf(t,s);return -1===i?e:"\\"===e[i-1]?t6.escapeLast(e,t,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t6.removePrefix=(e,t={})=>{let s=e;return s.startsWith("./")&&(s=s.slice(2),t.prefix="./"),s},t6.wrapOutput=(e,t={},s={})=>{let i=s.contains?"":"^",r=s.contains?"":"$",n=`${i}(?:${e})${r}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n},t6.basename=(e,{windows:t}={})=>{let s=e.split(t?/[\\/]/:"/"),i=s[s.length-1];return""===i?s[s.length-2]:i},t6}var t9=T(function(){if(x)return g;x=1;let e=function(){if(m)return f;m=1;let e=function(){if(u)return c;u=1;let e=t5(),{CHAR_ASTERISK:t,CHAR_AT:s,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:r,CHAR_DOT:n,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:o,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:h,CHAR_PLUS:d,CHAR_QUESTION_MARK:f,CHAR_RIGHT_CURLY_BRACE:m,CHAR_RIGHT_PARENTHESES:g,CHAR_RIGHT_SQUARE_BRACKET:x}=t4(),y=e=>e===o||e===i,b=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return c=(c,u)=>{let v,S,C=u||{},E=c.length-1,k=!0===C.parts||!0===C.scanToEnd,_=[],w=[],A=[],T=c,I=-1,P=0,N=0,L=!1,R=!1,O=!1,j=!1,B=!1,V=!1,D=!1,M=!1,F=!1,X=!1,J=0,$={value:"",depth:0,isGlob:!1},U=()=>I>=E,q=()=>T.charCodeAt(I+1),H=()=>(v=S,T.charCodeAt(++I));for(;I<E;){let e;if((S=H())===i){D=$.backslashes=!0,(S=H())===l&&(V=!0);continue}if(!0===V||S===l){for(J++;!0!==U()&&(S=H());){if(S===i){D=$.backslashes=!0,H();continue}if(S===l){J++;continue}if(!0!==V&&S===n&&(S=H())===n||!0!==V&&S===r){if(L=$.isBrace=!0,O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===m&&0==--J){V=!1,L=$.isBrace=!0,X=!0;break}}if(!0===k)continue;break}if(S===o){if(_.push(I),w.push($),$={value:"",depth:0,isGlob:!1},!0===X)continue;if(v===n&&I===P+1){P+=2;continue}N=I+1;continue}if(!0!==C.noext&&!0==(S===d||S===s||S===t||S===f||S===a)&&q()===p){if(O=$.isGlob=!0,j=$.isExtglob=!0,X=!0,S===a&&I===P&&(F=!0),!0===k){for(;!0!==U()&&(S=H());){if(S===i){D=$.backslashes=!0,S=H();continue}if(S===g){O=$.isGlob=!0,X=!0;break}}continue}break}if(S===t){if(v===t&&(B=$.isGlobstar=!0),O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===f){if(O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===h){for(;!0!==U()&&(e=H());){if(e===i){D=$.backslashes=!0,H();continue}if(e===x){R=$.isBracket=!0,O=$.isGlob=!0,X=!0;break}}if(!0===k)continue;break}if(!0!==C.nonegate&&S===a&&I===P){M=$.negated=!0,P++;continue}if(!0!==C.noparen&&S===p){if(O=$.isGlob=!0,!0===k){for(;!0!==U()&&(S=H());){if(S===p){D=$.backslashes=!0,S=H();continue}if(S===g){X=!0;break}}continue}break}if(!0===O){if(X=!0,!0===k)continue;break}}!0===C.noext&&(j=!1,O=!1);let W=T,G="",z="";P>0&&(G=T.slice(0,P),T=T.slice(P),N-=P),W&&!0===O&&N>0?(W=T.slice(0,N),z=T.slice(N)):!0===O?(W="",z=T):W=T,W&&""!==W&&"/"!==W&&W!==T&&y(W.charCodeAt(W.length-1))&&(W=W.slice(0,-1)),!0===C.unescape&&(z&&(z=e.removeBackslashes(z)),W&&!0===D&&(W=e.removeBackslashes(W)));let K={prefix:G,input:c,start:P,base:W,glob:z,isBrace:L,isBracket:R,isGlob:O,isExtglob:j,isGlobstar:B,negated:M,negatedExtglob:F};if(!0===C.tokens&&(K.maxDepth=0,y(S)||w.push($),K.tokens=w),!0===C.parts||!0===C.tokens){let e;for(let t=0;t<_.length;t++){let s=e?e+1:P,i=_[t],r=c.slice(s,i);C.tokens&&(0===t&&0!==P?(w[t].isPrefix=!0,w[t].value=G):w[t].value=r,b(w[t]),K.maxDepth+=w[t].depth),(0!==t||""!==r)&&A.push(r),e=i}if(e&&e+1<c.length){let t=c.slice(e+1);A.push(t),C.tokens&&(w[w.length-1].value=t,b(w[w.length-1]),K.maxDepth+=w[w.length-1].depth)}K.slashes=_,K.parts=A}return K}}(),t=function(){if(d)return h;d=1;let e=t4(),t=t5(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_BACKREF:n,REPLACEMENTS:a}=e,o=(e,s)=>{if("function"==typeof s.expandRange)return s.expandRange(...e,s);e.sort();let i=`[${e.join("-")}]`;try{new RegExp(i)}catch(s){return e.map(e=>t.escapeRegex(e)).join("..")}return i},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,p=(c,u)=>{let h;if("string"!=typeof c)throw TypeError("Expected a string");c=a[c]||c;let d={...u},f="number"==typeof d.maxLength?Math.min(s,d.maxLength):s,m=c.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:d.prepend||""},x=[g],y=d.capture?"":"?:",b=e.globChars(d.windows),v=e.extglobChars(b),{DOT_LITERAL:S,PLUS_LITERAL:C,SLASH_LITERAL:E,ONE_CHAR:k,DOTS_SLASH:_,NO_DOT:w,NO_DOT_SLASH:A,NO_DOTS_SLASH:T,QMARK:I,QMARK_NO_DOT:P,STAR:N,START_ANCHOR:L}=b,R=e=>`(${y}(?:(?!${L}${e.dot?_:S}).)*?)`,O=d.dot?"":w,j=d.dot?I:P,B=!0===d.bash?R(d):N;d.capture&&(B=`(${B})`),"boolean"==typeof d.noext&&(d.noextglob=d.noext);let V={input:c,index:-1,start:0,dot:!0===d.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};m=(c=t.removePrefix(c,V)).length;let D=[],M=[],F=[],X=g,J=()=>V.index===m-1,$=V.peek=(e=1)=>c[V.index+e],U=V.advance=()=>c[++V.index]||"",q=()=>c.slice(V.index+1),H=(e="",t=0)=>{V.consumed+=e,V.index+=t},W=e=>{V.output+=null!=e.output?e.output:e.value,H(e.value)},G=()=>{let e=1;for(;"!"===$()&&("("!==$(2)||"?"===$(3));)U(),V.start++,e++;return e%2!=0&&(V.negated=!0,V.start++,!0)},z=e=>{V[e]++,F.push(e)},K=e=>{V[e]--,F.pop()},Q=e=>{if("globstar"===X.type){let t=V.braces>0&&("comma"===e.type||"brace"===e.type),s=!0===e.extglob||D.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||s||(V.output=V.output.slice(0,-X.output.length),X.type="star",X.value="*",X.output=B,V.output+=X.output)}if(D.length&&"paren"!==e.type&&(D[D.length-1].inner+=e.value),(e.value||e.output)&&W(e),X&&"text"===X.type&&"text"===e.type){X.output=(X.output||X.value)+e.value,X.value+=e.value;return}e.prev=X,x.push(e),X=e},Y=(e,t)=>{let s={...v[t],conditions:1,inner:""};s.prev=X,s.parens=V.parens,s.output=V.output;let i=(d.capture?"(":"")+s.open;z("parens"),Q({type:e,value:t,output:V.output?"":k}),Q({type:"paren",extglob:!0,value:U(),output:i}),D.push(s)},Z=e=>{let t,s=e.close+(d.capture?")":"");if("negate"===e.type){let i=B;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=R(d)),(i!==B||J()||/^\)+$/.test(q()))&&(s=e.close=`)$))${i}`),e.inner.includes("*")&&(t=q())&&/^\.[^\\/.]+$/.test(t)){let r=p(t,{...u,fastpaths:!1}).output;s=e.close=`)${r})${i})`}"bos"===e.prev.type&&(V.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:h,output:s}),K("parens")};if(!1!==d.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(c)){let e=!1,s=c.replace(n,(t,s,i,r,n,a)=>"\\"===r?(e=!0,t):"?"===r?s?s+r+(n?I.repeat(n.length):""):0===a?j+(n?I.repeat(n.length):""):I.repeat(i.length):"."===r?S.repeat(i.length):"*"===r?s?s+r+(n?B:""):B:s?t:`\\${t}`);return(!0===e&&(s=!0===d.unescape?s.replace(/\\/g,""):s.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),s===c&&!0===d.contains)?V.output=c:V.output=t.wrapOutput(s,V,u),V}for(;!J();){if("\0"===(h=U()))continue;if("\\"===h){let e=$();if("/"===e&&!0!==d.bash||"."===e||";"===e)continue;if(!e){Q({type:"text",value:h+="\\"});continue}let t=/^\\+/.exec(q()),s=0;if(t&&t[0].length>2&&(s=t[0].length,V.index+=s,s%2!=0&&(h+="\\")),!0===d.unescape?h=U():h+=U(),0===V.brackets){Q({type:"text",value:h});continue}}if(V.brackets>0&&("]"!==h||"["===X.value||"[^"===X.value)){if(!1!==d.posix&&":"===h){let e=X.value.slice(1);if(e.includes("[")&&(X.posix=!0,e.includes(":"))){let e=X.value.lastIndexOf("["),t=X.value.slice(0,e),s=i[X.value.slice(e+2)];if(s){X.value=t+s,V.backtrack=!0,U(),g.output||1!==x.indexOf(X)||(g.output=k);continue}}}("["===h&&":"!==$()||"-"===h&&"]"===$())&&(h=`\\${h}`),"]"===h&&("["===X.value||"[^"===X.value)&&(h=`\\${h}`),!0===d.posix&&"!"===h&&"["===X.value&&(h="^"),X.value+=h,W({value:h});continue}if(1===V.quotes&&'"'!==h){h=t.escapeRegex(h),X.value+=h,W({value:h});continue}if('"'===h){V.quotes=+(1!==V.quotes),!0===d.keepQuotes&&Q({type:"text",value:h});continue}if("("===h){z("parens"),Q({type:"paren",value:h});continue}if(")"===h){if(0===V.parens&&!0===d.strictBrackets)throw SyntaxError(l("opening","("));let e=D[D.length-1];if(e&&V.parens===e.parens+1){Z(D.pop());continue}Q({type:"paren",value:h,output:V.parens?")":"\\)"}),K("parens");continue}if("["===h){if(!0!==d.nobracket&&q().includes("]"))z("brackets");else{if(!0!==d.nobracket&&!0===d.strictBrackets)throw SyntaxError(l("closing","]"));h=`\\${h}`}Q({type:"bracket",value:h});continue}if("]"===h){if(!0===d.nobracket||X&&"bracket"===X.type&&1===X.value.length){Q({type:"text",value:h,output:`\\${h}`});continue}if(0===V.brackets){if(!0===d.strictBrackets)throw SyntaxError(l("opening","["));Q({type:"text",value:h,output:`\\${h}`});continue}K("brackets");let e=X.value.slice(1);if(!0===X.posix||"^"!==e[0]||e.includes("/")||(h=`/${h}`),X.value+=h,W({value:h}),!1===d.literalBrackets||t.hasRegexChars(e))continue;let s=t.escapeRegex(X.value);if(V.output=V.output.slice(0,-X.value.length),!0===d.literalBrackets){V.output+=s,X.value=s;continue}X.value=`(${y}${s}|${X.value})`,V.output+=X.value;continue}if("{"===h&&!0!==d.nobrace){z("braces");let e={type:"brace",value:h,output:"(",outputIndex:V.output.length,tokensIndex:V.tokens.length};M.push(e),Q(e);continue}if("}"===h){let e=M[M.length-1];if(!0===d.nobrace||!e){Q({type:"text",value:h,output:h});continue}let t=")";if(!0===e.dots){let e=x.slice(),s=[];for(let t=e.length-1;t>=0&&(x.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&s.unshift(e[t].value);t=o(s,d),V.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let s=V.output.slice(0,e.outputIndex),i=V.tokens.slice(e.tokensIndex);for(let r of(e.value=e.output="\\{",h=t="\\}",V.output=s,i))V.output+=r.output||r.value}Q({type:"brace",value:h,output:t}),K("braces"),M.pop();continue}if("|"===h){D.length>0&&D[D.length-1].conditions++,Q({type:"text",value:h});continue}if(","===h){let e=h,t=M[M.length-1];t&&"braces"===F[F.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:h,output:e});continue}if("/"===h){if("dot"===X.type&&V.index===V.start+1){V.start=V.index+1,V.consumed="",V.output="",x.pop(),X=g;continue}Q({type:"slash",value:h,output:E});continue}if("."===h){if(V.braces>0&&"dot"===X.type){"."===X.value&&(X.output=S);let e=M[M.length-1];X.type="dots",X.output+=h,X.value+=h,e.dots=!0;continue}if(V.braces+V.parens===0&&"bos"!==X.type&&"slash"!==X.type){Q({type:"text",value:h,output:S});continue}Q({type:"dot",value:h,output:S});continue}if("?"===h){if(!(X&&"("===X.value)&&!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Y("qmark",h);continue}if(X&&"paren"===X.type){let e=$(),t=h;("("!==X.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(q()))||(t=`\\${h}`),Q({type:"text",value:h,output:t});continue}if(!0!==d.dot&&("slash"===X.type||"bos"===X.type)){Q({type:"qmark",value:h,output:P});continue}Q({type:"qmark",value:h,output:I});continue}if("!"===h){if(!0!==d.noextglob&&"("===$()&&("?"!==$(2)||!/[!=<:]/.test($(3)))){Y("negate",h);continue}if(!0!==d.nonegate&&0===V.index){G();continue}}if("+"===h){if(!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Y("plus",h);continue}if(X&&"("===X.value||!1===d.regex){Q({type:"plus",value:h,output:C});continue}if(X&&("bracket"===X.type||"paren"===X.type||"brace"===X.type)||V.parens>0){Q({type:"plus",value:h});continue}Q({type:"plus",value:C});continue}if("@"===h){if(!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Q({type:"at",extglob:!0,value:h,output:""});continue}Q({type:"text",value:h});continue}if("*"!==h){("$"===h||"^"===h)&&(h=`\\${h}`);let e=r.exec(q());e&&(h+=e[0],V.index+=e[0].length),Q({type:"text",value:h});continue}if(X&&("globstar"===X.type||!0===X.star)){X.type="star",X.star=!0,X.value+=h,X.output=B,V.backtrack=!0,V.globstar=!0,H(h);continue}let e=q();if(!0!==d.noextglob&&/^\([^?]/.test(e)){Y("star",h);continue}if("star"===X.type){if(!0===d.noglobstar){H(h);continue}let t=X.prev,s=t.prev,i="slash"===t.type||"bos"===t.type,r=s&&("star"===s.type||"globstar"===s.type);if(!0===d.bash&&(!i||e[0]&&"/"!==e[0])){Q({type:"star",value:h,output:""});continue}let n=V.braces>0&&("comma"===t.type||"brace"===t.type),a=D.length&&("pipe"===t.type||"paren"===t.type);if(!i&&"paren"!==t.type&&!n&&!a){Q({type:"star",value:h,output:""});continue}for(;"/**"===e.slice(0,3);){let t=c[V.index+4];if(t&&"/"!==t)break;e=e.slice(3),H("/**",3)}if("bos"===t.type&&J()){X.type="globstar",X.value+=h,X.output=R(d),V.output=X.output,V.globstar=!0,H(h);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!r&&J()){V.output=V.output.slice(0,-(t.output+X.output).length),t.output=`(?:${t.output}`,X.type="globstar",X.output=R(d)+(d.strictSlashes?")":"|$)"),X.value+=h,V.globstar=!0,V.output+=t.output+X.output,H(h);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let s=void 0!==e[1]?"|$":"";V.output=V.output.slice(0,-(t.output+X.output).length),t.output=`(?:${t.output}`,X.type="globstar",X.output=`${R(d)}${E}|${E}${s})`,X.value+=h,V.output+=t.output+X.output,V.globstar=!0,H(h+U()),Q({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){X.type="globstar",X.value+=h,X.output=`(?:^|${E}|${R(d)}${E})`,V.output=X.output,V.globstar=!0,H(h+U()),Q({type:"slash",value:"/",output:""});continue}V.output=V.output.slice(0,-X.output.length),X.type="globstar",X.output=R(d),X.value+=h,V.output+=X.output,V.globstar=!0,H(h);continue}let s={type:"star",value:h,output:B};if(!0===d.bash){s.output=".*?",("bos"===X.type||"slash"===X.type)&&(s.output=O+s.output),Q(s);continue}if(X&&("bracket"===X.type||"paren"===X.type)&&!0===d.regex){s.output=h,Q(s);continue}(V.index===V.start||"slash"===X.type||"dot"===X.type)&&("dot"===X.type?(V.output+=A,X.output+=A):!0===d.dot?(V.output+=T,X.output+=T):(V.output+=O,X.output+=O),"*"!==$()&&(V.output+=k,X.output+=k)),Q(s)}for(;V.brackets>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","]"));V.output=t.escapeLast(V.output,"["),K("brackets")}for(;V.parens>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing",")"));V.output=t.escapeLast(V.output,"("),K("parens")}for(;V.braces>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","}"));V.output=t.escapeLast(V.output,"{"),K("braces")}if(!0!==d.strictSlashes&&("star"===X.type||"bracket"===X.type)&&Q({type:"maybe_slash",value:"",output:`${E}?`}),!0===V.backtrack)for(let e of(V.output="",V.tokens))V.output+=null!=e.output?e.output:e.value,e.suffix&&(V.output+=e.suffix);return V};return p.fastpaths=(i,r)=>{let n={...r},o="number"==typeof n.maxLength?Math.min(s,n.maxLength):s,l=i.length;if(l>o)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${o}`);i=a[i]||i;let{DOT_LITERAL:p,SLASH_LITERAL:c,ONE_CHAR:u,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:x}=e.globChars(n.windows),y=n.dot?f:d,b=n.dot?m:d,v=n.capture?"":"?:",S=!0===n.bash?".*?":g;n.capture&&(S=`(${S})`);let C=e=>!0===e.noglobstar?S:`(${v}(?:(?!${x}${e.dot?h:p}).)*?)`,E=e=>{switch(e){case"*":return`${y}${u}${S}`;case".*":return`${p}${u}${S}`;case"*.*":return`${y}${S}${p}${u}${S}`;case"*/*":return`${y}${S}${c}${u}${b}${S}`;case"**":return y+C(n);case"**/*":return`(?:${y}${C(n)}${c})?${b}${u}${S}`;case"**/*.*":return`(?:${y}${C(n)}${c})?${b}${S}${p}${u}${S}`;case"**/.*":return`(?:${y}${C(n)}${c})?${p}${u}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let s=E(t[1]);if(!s)return;return s+p+t[2]}}},k=E(t.removePrefix(i,{negated:!1,prefix:""}));return k&&!0!==n.strictSlashes&&(k+=`${c}?`),k},h=p}(),s=t5(),i=t4(),r=e=>e&&"object"==typeof e&&!Array.isArray(e),n=(e,t,s=!1)=>{if(Array.isArray(e)){let i=e.map(e=>n(e,t,s));return e=>{for(let t of i){let s=t(e);if(s)return s}return!1}}let i=r(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!i)throw TypeError("Expected pattern to be a non-empty string");let a=t||{},o=a.windows,l=i?n.compileRe(e,t):n.makeRe(e,t,!1,!0),p=l.state;delete l.state;let c=()=>!1;if(a.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};c=n(a.ignore,e,s)}let u=(s,i=!1)=>{let{isMatch:r,match:u,output:h}=n.test(s,l,t,{glob:e,posix:o}),d={glob:e,state:p,regex:l,posix:o,input:s,output:h,match:u,isMatch:r};return("function"==typeof a.onResult&&a.onResult(d),!1===r)?(d.isMatch=!1,!!i&&d):c(s)?("function"==typeof a.onIgnore&&a.onIgnore(d),d.isMatch=!1,!!i&&d):("function"==typeof a.onMatch&&a.onMatch(d),!i||d)};return s&&(u.state=p),u};return n.test=(e,t,i,{glob:r,posix:a}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let o=i||{},l=o.format||(a?s.toPosixSlashes:null),p=e===r,c=p&&l?l(e):e;return!1===p&&(p=(c=l?l(e):e)===r),(!1===p||!0===o.capture)&&(p=!0===o.matchBase||!0===o.basename?n.matchBase(e,t,i,a):t.exec(c)),{isMatch:!!p,match:p,output:c}},n.matchBase=(e,t,i)=>(t instanceof RegExp?t:n.makeRe(t,i)).test(s.basename(e)),n.isMatch=(e,t,s)=>n(t,s)(e),n.parse=(e,s)=>Array.isArray(e)?e.map(e=>n.parse(e,s)):t(e,{...s,fastpaths:!1}),n.scan=(t,s)=>e(t,s),n.compileRe=(e,t,s=!1,i=!1)=>{if(!0===s)return e.output;let r=t||{},a=r.contains?"":"^",o=r.contains?"":"$",l=`${a}(?:${e.output})${o}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let p=n.toRegex(l,t);return!0===i&&(p.state=e),p},n.makeRe=(e,s={},i=!1,r=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let a={negated:!1,fastpaths:!0};return!1!==s.fastpaths&&("."===e[0]||"*"===e[0])&&(a.output=t.fastpaths(e,s)),a.output||(a=t(e,s)),n.compileRe(a,s,i,r)},n.toRegex=(e,t)=>{try{let s=t||{};return new RegExp(e,s.flags||(s.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},n.constants=i,f=n}(),t=t5();function s(i,r,n=!1){return r&&(null===r.windows||void 0===r.windows)&&(r={...r,windows:t.isWindows()}),e(i,r,n)}return Object.assign(s,e),g=s}());function t8(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function t7(e){let t=e.toUpperCase();return e===t&&t!==e.toLowerCase()}var se=tv({name:"jsx-pascal-case",package:"jsx",meta:{type:"suggestion",docs:{description:"Enforce PascalCase for user-defined JSX components"},messages:{usePascalCase:"Imported JSX component {{name}} must be in PascalCase",usePascalOrSnakeCase:"Imported JSX component {{name}} must be in PascalCase or SCREAMING_SNAKE_CASE"},schema:[{type:"object",properties:{allowAllCaps:{type:"boolean"},allowLeadingUnderscore:{type:"boolean"},allowNamespace:{type:"boolean"},ignore:{items:{type:"string"},type:"array",uniqueItems:!0}},additionalProperties:!1}]},create(e){let{allowAllCaps:t=!1,allowLeadingUnderscore:s=!1,allowNamespace:i=!1,ignore:r=[]}=e.options[0]||{},n=t9(r,{noglobstar:!0});return{JSXOpeningElement(a){if(tA(a))return;let o=tN(a),l=[o],p=0;o.includes(":")?l=o.split(":"):o.includes(".")&&(l=o.split("."));do{let i=l[p];if(1===i.length)return;let o=n(i)||r.includes(i),c=s&&i.startsWith("_")?i.slice(1):i,u=!(!t7(c.charAt(0))||Array.prototype.some.call(c.slice(1),e=>e.toLowerCase()===e.toUpperCase()&&!t8(e)))&&Array.prototype.some.call(c.slice(1),e=>(function(e){let t=e.toLowerCase();return e===t&&t!==e.toUpperCase()})(e)||t8(e)),h=t&&function(e){let t=e.charAt(0);if(!(t7(t)||t8(t)))return!1;for(let t=1;t<e.length-1;t+=1){let s=e.charAt(t);if(!(t7(s)||t8(s)||"_"===s))return!1}let s=e.charAt(e.length-1);return!!(t7(s)||t8(s))}(c);if(!u&&!h&&!o){let s=t?"usePascalOrSnakeCase":"usePascalCase";e.report({messageId:s,node:a,data:{name:i}});break}p+=1}while(p<l.length&&!i)}}}}),st=tv({name:"jsx-props-no-multi-spaces",package:"jsx",meta:{type:"layout",docs:{description:"Disallow multiple spaces between inline JSX props"},fixable:"code",messages:{noLineGap:"Expected no line gap between “{{prop1}}” and “{{prop2}}”",onlyOneSpace:"Expected only one space between “{{prop1}}” and “{{prop2}}”"},schema:[]},create(e){let t=e.sourceCode;function s(e){switch(e.type){case"JSXSpreadAttribute":return t.getText(e.argument);case"JSXIdentifier":return e.name;case"JSXMemberExpression":return`${s(e.object)}.${e.property.name}`;default:return e.name?e.name.name:`${t.getText(e.object)}.${e.property.name}`}}return{JSXOpeningElement(i){i.attributes.reduce((i,r)=>{var n,a;return function(e,s){let i=[].concat(e,t.getCommentsBefore?t.getCommentsBefore(s):[],s);for(let e=1;e<i.length;e+=1){let t=i[e-1];if(i[e].loc.start.line-t.loc.end.line>=2)return!0}return!1}(n=i,a=r)&&e.report({messageId:"noLineGap",node:a,data:{prop1:s(n),prop2:s(a)}}),n.loc.end.line===a.loc.end.line&&" "!==t.text.slice(n.range[1],a.range[0])&&e.report({node:a,messageId:"onlyOneSpace",data:{prop1:s(n),prop2:s(a)},fix:e=>e.replaceTextRange([n.range[1],a.range[0]]," ")}),r},function(e){let t=e.name;if(void 0!==e.typeArguments&&e.typeArguments?.type==="TSTypeParameterInstantiation"){let s=e.typeArguments;return Object.assign({},e,{range:[t.range[0],s?.range[1]]})}return t}(i))}}}});const ss={component:!0,html:!0};var si=tv({name:"jsx-self-closing-comp",package:"jsx",meta:{type:"layout",docs:{description:"Disallow extra closing tags for components without children"},fixable:"code",messages:{notSelfClosing:"Empty components are self-closing"},schema:[{type:"object",properties:{component:{default:ss.component,type:"boolean"},html:{default:ss.html,type:"boolean"}},additionalProperties:!1}]},create:e=>({JSXOpeningElement(t){(function(t){var s;let i=Object.assign({},ss,e.options[0]);return(i.component&&(s=t).name&&("JSXIdentifier"===s.name.type||"JSXMemberExpression"===s.name.type)&&!tA(s)||i.html&&tA(t))&&!t.selfClosing&&(0===t.parent.children.length||function(e){let t=e.parent.children;return 1===t.length&&"JSXText"===t[0].type&&t[0].value.includes("\n")&&""===t[0].value.replace(/(?!\xA0)\s/g,"")}(t))})(t)&&e.report({messageId:"notSelfClosing",node:t,fix(e){let s=t.range[1]-1,i=t.parent.closingElement?.range[1]??NaN;return e.replaceTextRange([s,i]," />")}})}})});function sr(e){return/^on[A-Z]/.test(e)}function sn(e){return e.loc.start.line!==e.loc.end.line}const sa=["children","dangerouslySetInnerHTML","key","ref"];function so(e,t){return t.indexOf(e.split(":")[0])}function sl(t){let s=e.get(t);return!!s&&!!s.hasComment}const sp=new WeakMap;function sc(t,s,i,r,n){let a=sp.get(t)||[];a.includes(s)||(a.push(s),sp.set(t,a),r.report({node:t.name??"",messageId:s,fix:function(t,s,i){let r=s.sourceCode,n=t.attributes.slice(0),a=s.options[0]||{},o=a.ignoreCase||!1,l=a.callbacksLast||!1,p=a.shorthandFirst||!1,c=a.shorthandLast||!1,u=a.multiline||"ignore",h=a.noSortAlphabetically||!1,d=a.reservedFirst||!1,f={ignoreCase:o,callbacksLast:l,shorthandFirst:p,shorthandLast:c,multiline:u,noSortAlphabetically:h,reservedFirst:d,reservedList:i,reservedLast:a.reservedLast||[],locale:a.locale||"auto"},m=function(t,s){let i=s.sourceCode,r=[],n=0;function a(e){r[n-1].push(e)}for(let s=0;s<t.length;s++){let o=t[s],l=t[s+1],p=o.loc.start.line,c=[];try{c=i.getCommentsAfter(o)}catch{}let u=t[s-1],h="JSXSpreadAttribute"===o.type;if(u&&("JSXSpreadAttribute"!==u.type||h)||(r[(n+=1)-1]=[]),!h)if(0===c.length)e.set(o,{end:o.range[1],hasComment:!1}),a(o);else{let t=c[0],r=t.loc.start.line;if(1===c.length)p+1===r&&l?(e.set(o,{end:l.range[1],hasComment:!0}),a(o),s+=1):p===r&&("Block"===t.type&&l?(e.set(o,{end:l.range[1],hasComment:!0}),s+=1):"Block"===t.type?e.set(o,{end:t.range[1],hasComment:!0}):e.set(o,{end:t.range[1],hasComment:!1}),a(o));else if(c.length>1&&p+1===c[1].loc.start.line&&l){let t=i.getCommentsAfter(l);e.set(o,{end:l.range[1],hasComment:!0}),1===t.length&&l.loc.start.line===t[0].loc.start.line&&e.set(o,{end:t[0].range[1],hasComment:!0}),a(o),s+=1}}}return r}(n,s),g=m.slice(0).map(e=>[...e].sort((e,t)=>(function(e,t,s){let i=tP(e),r=tP(t),n=i.split(":")[0],a=r.split(":")[0],o=sl(e),l=sl(t);if(o&&!l)return 1;if(!o&&l)return -1;if(s.reservedFirst){let e=so(i,s.reservedList),t=so(r,s.reservedList);if(e>-1&&-1===t)return -1;if(-1===e&&t>-1)return 1;if(e>-1&&t>-1&&n!==a)return e>t?1:-1}if(s.reservedLast.length>0){let e=so(i,s.reservedLast),t=so(r,s.reservedLast);if(e>-1&&-1===t)return 1;if(-1===e&&t>-1)return -1;if(e>-1&&t>-1&&n!==a)return e>t?-1:1}if(s.callbacksLast){let e=sr(i),t=sr(r);if(e&&!t)return 1;if(!e&&t)return -1}if(s.shorthandFirst||s.shorthandLast){let i=s.shorthandFirst?-1:1;if(!e.value&&t.value)return i;if(e.value&&!t.value)return-i}if("ignore"!==s.multiline){let i="first"===s.multiline?-1:1,r=sn(e),n=sn(t);if(r&&!n)return i;if(!r&&n)return-i}if(s.noSortAlphabetically)return 0;let p="auto"===s.locale?void 0:s.locale;return s.ignoreCase?(i=i.toLowerCase(),r=r.toLowerCase(),i.localeCompare(r,p)):i===r?0:"auto"===s.locale?i<r?-1:1:i.localeCompare(r,p)})(e,t,f)));return function(t){let s=[],i=r.getText();m.forEach((t,r)=>{t.forEach((t,n)=>{let a=g[r][n],o=i.slice(a.range[0],e.get(a).end);s.push({range:[t.range[0],e.get(t).end],text:o})})}),s.sort((e,t)=>t.range[0]-e.range[0]);let n=s[0],a=s[s.length-1],o=a?a.range[0]:0,l=n?n.range[1]:-0;return s.forEach(e=>{i=`${i.slice(0,e.range[0])}${e.text}${i.slice(e.range[1])}`}),t.replaceTextRange([o,l],i.slice(o,l))}}(i,r,n)}))}var su=tv({name:"jsx-sort-props",package:"jsx",meta:{type:"layout",docs:{description:"Enforce props alphabetical sorting"},fixable:"code",messages:{listIsEmpty:"A customized reserved first list must not be empty",listReservedPropsFirst:"Reserved props must be listed before all other props",listReservedPropsLast:"Reserved props must be listed after all other props",listCallbacksLast:"Callbacks must be listed after all other props",listShorthandFirst:"Shorthand props must be listed before all other props",listShorthandLast:"Shorthand props must be listed after all other props",listMultilineFirst:"Multiline props must be listed before all other props",listMultilineLast:"Multiline props must be listed after all other props",sortPropsByAlpha:"Props should be sorted alphabetically"},schema:[{type:"object",properties:{callbacksLast:{type:"boolean"},shorthandFirst:{type:"boolean"},shorthandLast:{type:"boolean"},multiline:{type:"string",enum:["ignore","first","last"],default:"ignore"},ignoreCase:{type:"boolean"},noSortAlphabetically:{type:"boolean"},reservedFirst:{type:["array","boolean"]},reservedLast:{type:"array"},locale:{type:"string",default:"auto"}},additionalProperties:!1}]},create(t){let s=t.options[0]||{},i=s.ignoreCase||!1,r=s.callbacksLast||!1,n=s.shorthandFirst||!1,a=s.shorthandLast||!1,o=s.multiline||"ignore",l=s.noSortAlphabetically||!1,p=s.reservedFirst||!1,c=function(e,t){if(t&&Array.isArray(t)&&0===t.length)return function(t){e.report({node:t,messageId:"listIsEmpty"})}}(t,p),u=Array.isArray(p)?p:sa,h=s.reservedLast||[],d=s.locale||"auto";return{Program(){e=new WeakMap},JSXOpeningElement(e){let s=p&&!tA(e)?u.filter(e=>"dangerouslySetInnerHTML"!==e):u;e.attributes.reduce((u,f,m,g)=>{if("JSXSpreadAttribute"===f.type)return g[m+1];let x=tP(u),y=tP(f),b=x.split(":")[0],v=y.split(":")[0],S=u.value,C=f.value,E=sr(x),k=sr(y);if(i&&(x=x.toLowerCase(),y=y.toLowerCase()),p){if(c)return c(f),u;let i=so(x,s),r=so(y,s);if(i>-1&&-1===r)return f;if(!0!==p&&i>r||-1===i&&r>-1)return sc(f,"listReservedPropsFirst",e,t,s),u;if(i>-1&&r>-1&&r>i&&b!==v)return f}if(h.length>0){let i=so(x,h),r=so(y,h);if(-1===i&&r>-1)return f;if(i<r||i>-1&&-1===r)return sc(f,"listReservedPropsLast",e,t,s),u;if(i>-1&&r>-1&&r>i&&b!==v)return f}if(r){if(!E&&k)return f;if(E&&!k)return sc(u,"listCallbacksLast",e,t,s),u}if(n){if(C&&!S)return f;if(!C&&S)return sc(f,"listShorthandFirst",e,t,s),u}if(a){if(!C&&S)return f;if(C&&!S)return sc(u,"listShorthandLast",e,t,s),u}let _=sn(u),w=sn(f);if("first"===o){if(_&&!w)return f;if(!_&&w)return sc(f,"listMultilineFirst",e,t,s),u}else if("last"===o){if(!_&&w)return f;if(_&&!w)return sc(u,"listMultilineLast",e,t,s),u}return!l&&(i||"auto"!==d?x.localeCompare(y,"auto"===d?void 0:d)>0:x>y)?(sc(f,"sortPropsByAlpha",e,t,s),u):f},e.attributes[0])}}}});function sh(e,t,s){let i,r=e.sourceCode;if("selfClosing"in t&&t.selfClosing){let n=r.getLastTokens(t,2);i=!r.isSpaceBetween(n[0],n[1]),"never"===s?i||e.report({node:t,messageId:"selfCloseSlashNoSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.removeRange([n[0].range[1],n[1].range[0]])}):"always"===s&&i&&e.report({node:t,messageId:"selfCloseSlashNeedSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.insertTextBefore(n[1]," ")})}else{let n=r.getFirstTokens(t,2);i=!r.isSpaceBetween(n[0],n[1]),"never"===s?i||e.report({node:t,messageId:"closeSlashNoSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.removeRange([n[0].range[1],n[1].range[0]])}):"always"===s&&i&&e.report({node:t,messageId:"closeSlashNeedSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.insertTextBefore(n[1]," ")})}}function sd(e,t,s){let i=e.sourceCode,r=i.getTokenBefore(t.name);if("allow-multiline"===s&&r.loc.start.line!==t.name.loc.start.line)return;let n=!i.isSpaceBetween(r,t.name);"never"===s||"allow-multiline"===s?n||e.report({node:t,messageId:"afterOpenNoSpace",loc:{start:r.loc.start,end:t.name.loc.start},fix:e=>e.removeRange([r.range[1],t.name.range[0]])}):"always"===s&&n&&e.report({node:t,messageId:"afterOpenNeedSpace",loc:{start:r.loc.start,end:t.name.loc.start},fix:e=>e.insertTextBefore(t.name," ")})}function sf(e,t,s){if(!("selfClosing"in t&&t.selfClosing)){let i=e.sourceCode,r="proportional-always"===s?tk(t):i.getLastTokens(t,2)[0],n=i.getTokenAfter(r);if(t.loc.start.line!==t.loc.end.line&&"proportional-always"===s&&r.loc.end.line===n.loc.start.line)return void e.report({node:t,messageId:"beforeCloseNeedNewline",loc:r.loc.end,fix:e=>e.insertTextBefore(n,"\n")});if(r.loc.start.line!==n.loc.start.line)return;let a=!i.isSpaceBetween(r,n);"never"!==s||a?"always"===s&&a?e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:"beforeCloseNeedSpace",fix:e=>e.insertTextBefore(n," ")}):"proportional-always"===s&&"JSXOpeningElement"===t.type&&a!==(t.loc.start.line===t.loc.end.line)&&e.report({node:t,messageId:"beforeCloseNeedSpace",loc:{start:r.loc.end,end:n.loc.start},fix:e=>e.insertTextBefore(n," ")}):e.report({node:t,messageId:"beforeCloseNoSpace",loc:{start:r.loc.end,end:n.loc.start},fix:e=>e.removeRange([r.range[1],n.range[0]])})}}const sm={closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"allow"};var sg=tv({name:"jsx-tag-spacing",package:"jsx",meta:{type:"layout",docs:{description:"Enforce whitespace in and around the JSX opening and closing brackets"},fixable:"whitespace",messages:{selfCloseSlashNoSpace:"Whitespace is forbidden between `/` and `>`; write `/>`",selfCloseSlashNeedSpace:"Whitespace is required between `/` and `>`; write `/ >`",closeSlashNoSpace:"Whitespace is forbidden between `<` and `/`; write `</`",closeSlashNeedSpace:"Whitespace is required between `<` and `/`; write `< /`",beforeSelfCloseNoSpace:"A space is forbidden before closing bracket",beforeSelfCloseNeedSpace:"A space is required before closing bracket",beforeSelfCloseNeedNewline:"A newline is required before closing bracket",afterOpenNoSpace:"A space is forbidden after opening bracket",afterOpenNeedSpace:"A space is required after opening bracket",beforeCloseNoSpace:"A space is forbidden before closing bracket",beforeCloseNeedSpace:"Whitespace is required before closing bracket",beforeCloseNeedNewline:"A newline is required before closing bracket"},schema:[{type:"object",properties:{closingSlash:{type:"string",enum:["always","never","allow"]},beforeSelfClosing:{type:"string",enum:["always","proportional-always","never","allow"]},afterOpening:{type:"string",enum:["always","allow-multiline","never","allow"]},beforeClosing:{type:"string",enum:["always","proportional-always","never","allow"]}},default:sm,additionalProperties:!1}]},create(e){let t=Object.assign({},sm,e.options[0]);return{JSXOpeningElement(s){"allow"!==t.closingSlash&&s.selfClosing&&sh(e,s,t.closingSlash),"allow"!==t.afterOpening&&sd(e,s,t.afterOpening),"allow"!==t.beforeSelfClosing&&s.selfClosing&&function(e,t,s){let i=e.sourceCode,r=tk(t),n=i.getTokenAfter(r);if(t.loc.start.line!==t.loc.end.line&&"proportional-always"===s&&r.loc.end.line===n.loc.start.line)return e.report({node:t,messageId:"beforeSelfCloseNeedNewline",loc:r.loc.end,fix:e=>e.insertTextBefore(n,"\n")});if(r.loc.end.line!==n.loc.start.line)return;let a=!i.isSpaceBetween(r,n);("always"===s||"proportional-always"===s)&&a?e.report({node:t,messageId:"beforeSelfCloseNeedSpace",loc:n.loc.start,fix:e=>e.insertTextBefore(n," ")}):"never"!==s||a||e.report({node:t,messageId:"beforeSelfCloseNoSpace",loc:n.loc.start,fix(e){let t=i.getTokenBefore(n);return e.removeRange([t.range[1],n.range[0]])}})}(e,s,t.beforeSelfClosing),"allow"!==t.beforeClosing&&sf(e,s,t.beforeClosing)},JSXClosingElement(s){"allow"!==t.afterOpening&&sd(e,s,t.afterOpening),"allow"!==t.closingSlash&&sh(e,s,t.closingSlash),"allow"!==t.beforeClosing&&sf(e,s,t.beforeClosing)}}}});const sx={declaration:"parens",assignment:"parens",return:"parens",arrow:"parens",condition:"ignore",logical:"ignore",prop:"ignore",propertyValue:"ignore"};var sy={rules:{"jsx-child-element-spacing":tR,"jsx-closing-bracket-location":tO,"jsx-closing-tag-location":tV,"jsx-curly-brace-presence":t$,"jsx-curly-newline":tU,"jsx-curly-spacing":tW,"jsx-equals-spacing":tG,"jsx-first-prop-new-line":tz,"jsx-function-call-newline":tK,"jsx-indent":tY,"jsx-indent-props":tQ,"jsx-max-props-per-line":tZ,"jsx-newline":t0,"jsx-one-expression-per-line":t3,"jsx-pascal-case":se,"jsx-props-no-multi-spaces":st,"jsx-self-closing-comp":si,"jsx-sort-props":su,"jsx-tag-spacing":sg,"jsx-wrap-multilines":tv({name:"jsx-wrap-multilines",package:"jsx",meta:{type:"layout",docs:{description:"Disallow missing parentheses around multiline JSX"},fixable:"code",messages:{missingParens:"Missing parentheses around multilines JSX",parensOnNewLines:"Parentheses around JSX should be on separate lines"},schema:[{type:"object",properties:{declaration:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},assignment:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},return:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},arrow:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},condition:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},logical:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},prop:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},propertyValue:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]}},additionalProperties:!1}]},create(e){function t(t){let s=e.options[0]||{};return t in s?s[t]:sx[t]}function s(e){let s=t(e);return s&&"ignore"!==s}function i(e){return e.loc.start.line!==e.loc.end.line}function r(s,r){if(!s||!tT(s))return;let n=e.sourceCode,a=t(r);if((!0===a||"parens"===a)&&!t_(s,e.sourceCode)&&i(s)&&e.report({node:s,messageId:"missingParens",fix:e=>e.replaceText(s,`(${n.getText(s)})`)}),"parens-new-line"===a&&i(s))if(t_(s,e.sourceCode)){let t=function(t){let s=e.sourceCode.getTokenBefore(t);return!!t_(t,e.sourceCode)&&s.loc.end.line===t.loc.start.line}(s),i=function(t){let s=e.sourceCode.getTokenAfter(t);return!!t_(t,e.sourceCode)&&t.loc.end.line===s.loc.end.line}(s);(t||i)&&e.report({node:s,messageId:"parensOnNewLines",fix:e=>{let r=n.getText(s);return t&&(r=`
8
8
  ${r}`),i&&(r=`${r}
9
9
  `),e.replaceText(s,r)}})}else{let t=n.getTokenBefore(s),i=n.getTokenAfter(s),r=s.loc.start;if(t.loc.end.line<r.line){let a=n.getText().slice(t.range[1],s.range[0]).trim(),o=/^\t/.test(n.lines[r.line-1]),l=o?" ":" ",p=l.repeat(r.column),c=l.repeat(Math.max(0,r.column-(o?1:2)));e.report({node:s,messageId:"missingParens",fix:e=>e.replaceTextRange([t.range[0],i&&(";"===i.value||"}"===i.value)?i.range[0]:s.range[1]],`${function(e){let t="{"===e.value||"["===e.value;return`${e.value.trim()}${t?"":" "}`}(t)}(
10
10
  ${p}${a}${a.length>0?`
11
11
  ${p}`:""}${n.getText(s)}
12
12
  ${c})`)})}else e.report({node:s,messageId:"missingParens",fix:e=>e.replaceText(s,`(
13
13
  ${n.getText(s)}
14
- )`)})}}return{VariableDeclarator(e){let t="declaration";if(s(t)){if(!s("condition")&&e.init&&"ConditionalExpression"===e.init.type){r(e.init.consequent,t),r(e.init.alternate,t);return}r(e.init,t)}},AssignmentExpression(e){let t="assignment";if(s(t)){if(!s("condition")&&"ConditionalExpression"===e.right.type){r(e.right.consequent,t),r(e.right.alternate,t);return}r(e.right,t)}},ReturnStatement(e){let t="return";s(t)&&r(e.argument,t)},"ArrowFunctionExpression:exit":e=>{let t=e.body,i="arrow";s(i)&&"BlockStatement"!==t.type&&r(t,i)},ConditionalExpression(e){let t="condition";s(t)&&(r(e.consequent,t),r(e.alternate,t))},LogicalExpression(e){let t="logical";s(t)&&r(e.right,t)},JSXAttribute(e){let t="prop";s(t)&&e.value&&"JSXExpressionContainer"===e.value.type&&r(e.value.expression,t)},ObjectExpression(e){let t="propertyValue";s(t)&&e.properties.forEach(e=>{"Property"===e.type&&"JSXElement"===e.value.type&&r(e.value,t)})}}}})}};const sb=function(e,t,s){let i=Object.fromEntries(Object.entries(e.rules).filter(([e,t])=>t.meta.fixable&&!t.meta.deprecated&&e===t.meta.docs.url.split("/").pop()&&!0).map(([e])=>[`${t}/${e}`,2]));return{plugins:{[t]:e},rules:i}}(sy,"@stylistic/jsx"),sv=Object.assign(sy,{configs:{"disable-legacy":{rules:{"react/jsx-child-element-spacing":0,"react/jsx-closing-bracket-location":0,"react/jsx-closing-tag-location":0,"react/jsx-curly-brace-presence":0,"react/jsx-curly-newline":0,"react/jsx-curly-spacing":0,"react/jsx-equals-spacing":0,"react/jsx-first-prop-new-line":0,"react/jsx-function-call-newline":0,"react/jsx-indent":0,"react/jsx-indent-props":0,"react/jsx-max-props-per-line":0,"react/jsx-newline":0,"react/jsx-one-expression-per-line":0,"react/jsx-pascal-case":0,"react/jsx-props-no-multi-spaces":0,"react/jsx-self-closing-comp":0,"react/jsx-sort-props":0,"react/jsx-tag-spacing":0,"react/jsx-wrap-multilines":0}},all:sb,"all-flat":sb}}),sS=y.memo(k,"@eslint-react/eslint-plugin"),sC=y.memo(w.fixupPluginRules(_),"eslint-plugin-ssr-friendly");exports.next=function(){return[{...b.flatConfig.coreWebVitals,files:[y.constants.GLOB_TS,y.constants.GLOB_TSX,y.constants.GLOB_JSX],rules:{...b.flatConfig.coreWebVitals.rules,"@next/next/no-img-element":"warn"}}]},exports.react=function({reactCompiler:e="error",additionalHooks:t="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample)",nextjs:s=!1,remix:i=!1,reactRefresh:r={},additionalHooksWithType:n={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:a=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:o=!1}=r;return[{name:"@eslint-sukka/react base",files:[y.constants.GLOB_TS,y.constants.GLOB_TSX,y.constants.GLOB_JSX],plugins:{"jsx-a11y-minimal":y.memo(v.eslint_plugin_jsx_a11y_minimal,"@eslint-sukka/eslint-plugin-react-jsx-a11y#eslint_plugin_jsx_a11y_minimal"),"react-hooks":y.memo(S,"eslint-plugin-react-hooks"),"@stylistic/jsx":y.memo(sv,"@stylistic/eslint-plugin-jsx"),"react-prefer-function-component":y.memo(L,"eslint-plugin-react-prefer-function-component"),"react-compiler":y.memo(C,"eslint-plugin-react-compiler"),...sS.configs.recommended.plugins,"ssr-friendly":sC,"react-refresh":E},settings:{"react-x":{version:"detect",additionalHooks:n,additionalComponents:a}},languageOptions:{globals:y.globals.browser},rules:{...S.configs.recommended.rules,"react-compiler/react-compiler":e,"react-hooks/exhaustive-deps":["error",{additionalHooks:t}],"@stylistic/jsx/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],...sS.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/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/jsx-self-closing-comp":"error","@eslint-react/prefer-shorthand-boolean":"error","@stylistic/jsx/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx/jsx-indent-props":["error",2],"@stylistic/jsx/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx/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/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx/jsx-equals-spacing":["error","never"],"@stylistic/jsx/jsx-indent":"off","@stylistic/jsx/jsx-child-element-spacing":"error","@stylistic/jsx/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-children-in-void-dom-elements":"error","@stylistic/jsx/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@stylistic/jsx/jsx-props-no-multi-spaces":"error","@eslint-react/prefer-shorthand-fragment":"error","@stylistic/jsx/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-components":"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","@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"}],"jsx-a11y-minimal/alt-text":["warn",{elements:["img"],img:["Image"]}],"jsx-a11y-minimal/aria-props":"warn","jsx-a11y-minimal/aria-proptypes":"warn","jsx-a11y-minimal/aria-role":"warn","jsx-a11y-minimal/aria-unsupported-elements":"warn","jsx-a11y-minimal/iframe-has-title":"warn","jsx-a11y-minimal/no-access-key":"warn","jsx-a11y-minimal/role-has-required-aria-props":"warn","jsx-a11y-minimal/role-supports-aria-props":"warn","jsx-a11y-minimal/tabindex-no-positive":"warn","react-refresh/only-export-components":["warn",{allowConstantExport:o,allowExportNames:[...s?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...i?["meta","links","headers","loader","action"]:[]]}]}},{files:["**/app/**/_*.?([cm])[jt]s?(x)",String.raw`**/app/**/\[*.?([cm])[jt]s?(x)`],rules:{"@eslint-react/naming-convention/filename":"off"}}]},exports.stylex=function({opt:e={}}={}){return[{plugins:{"@stylexjs":A},files:[y.constants.GLOB_TS,y.constants.GLOB_TSX,y.constants.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]};
14
+ )`)})}}return{VariableDeclarator(e){let t="declaration";if(s(t)){if(!s("condition")&&e.init&&"ConditionalExpression"===e.init.type){r(e.init.consequent,t),r(e.init.alternate,t);return}r(e.init,t)}},AssignmentExpression(e){let t="assignment";if(s(t)){if(!s("condition")&&"ConditionalExpression"===e.right.type){r(e.right.consequent,t),r(e.right.alternate,t);return}r(e.right,t)}},ReturnStatement(e){let t="return";s(t)&&r(e.argument,t)},"ArrowFunctionExpression:exit":e=>{let t=e.body,i="arrow";s(i)&&"BlockStatement"!==t.type&&r(t,i)},ConditionalExpression(e){let t="condition";s(t)&&(r(e.consequent,t),r(e.alternate,t))},LogicalExpression(e){let t="logical";s(t)&&r(e.right,t)},JSXAttribute(e){let t="prop";s(t)&&e.value&&"JSXExpressionContainer"===e.value.type&&r(e.value.expression,t)},ObjectExpression(e){let t="propertyValue";s(t)&&e.properties.forEach(e=>{"Property"===e.type&&"JSXElement"===e.value.type&&r(e.value,t)})}}}})}};const sb=function(e,t,s){let i=Object.fromEntries(Object.entries(e.rules).filter(([e,t])=>t.meta.fixable&&!t.meta.deprecated&&e===t.meta.docs.url.split("/").pop()&&!0).map(([e])=>[`${t}/${e}`,2]));return{plugins:{[t]:e},rules:i}}(sy,"@stylistic/jsx"),sv=Object.assign(sy,{configs:{"disable-legacy":{rules:{"react/jsx-child-element-spacing":0,"react/jsx-closing-bracket-location":0,"react/jsx-closing-tag-location":0,"react/jsx-curly-brace-presence":0,"react/jsx-curly-newline":0,"react/jsx-curly-spacing":0,"react/jsx-equals-spacing":0,"react/jsx-first-prop-new-line":0,"react/jsx-function-call-newline":0,"react/jsx-indent":0,"react/jsx-indent-props":0,"react/jsx-max-props-per-line":0,"react/jsx-newline":0,"react/jsx-one-expression-per-line":0,"react/jsx-pascal-case":0,"react/jsx-props-no-multi-spaces":0,"react/jsx-self-closing-comp":0,"react/jsx-sort-props":0,"react/jsx-tag-spacing":0,"react/jsx-wrap-multilines":0}},all:sb,"all-flat":sb}});console.log("[@stylistic/eslint-plugin-jsx] This package is deprecated in favor of the unified @stylistic/eslint-plugin, please consider migrating to the main package");const sS=y.memo(k,"@eslint-react/eslint-plugin"),sC=y.memo(w.fixupPluginRules(_),"eslint-plugin-ssr-friendly");exports.next=function(){return[{...b.flatConfig.coreWebVitals,files:[y.constants.GLOB_TS,y.constants.GLOB_TSX,y.constants.GLOB_JSX],rules:{...b.flatConfig.coreWebVitals.rules,"@next/next/no-img-element":"warn"}}]},exports.react=function({reactCompiler:e="error",additionalHooks:t="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample)",nextjs:s=!1,remix:i=!1,reactRefresh:r={},additionalHooksWithType:n={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:a=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:o=!1}=r;return[{name:"@eslint-sukka/react base",files:[y.constants.GLOB_TS,y.constants.GLOB_TSX,y.constants.GLOB_JSX],plugins:{"jsx-a11y-minimal":y.memo(v.eslint_plugin_jsx_a11y_minimal,"@eslint-sukka/eslint-plugin-react-jsx-a11y#eslint_plugin_jsx_a11y_minimal"),"react-hooks":y.memo(S,"eslint-plugin-react-hooks"),"@stylistic/jsx":y.memo(sv,"@stylistic/eslint-plugin-jsx"),"react-prefer-function-component":y.memo(L,"eslint-plugin-react-prefer-function-component"),"react-compiler":y.memo(C,"eslint-plugin-react-compiler"),...sS.configs.recommended.plugins,"ssr-friendly":sC,"react-refresh":E},settings:{"react-x":{version:"detect",additionalHooks:n,additionalComponents:a}},languageOptions:{globals:y.globals.browser},rules:{...S.configs.recommended.rules,"react-compiler/react-compiler":e,"react-hooks/exhaustive-deps":["error",{additionalHooks:t}],"@stylistic/jsx/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],...sS.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/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/jsx-self-closing-comp":"error","@eslint-react/prefer-shorthand-boolean":"error","@stylistic/jsx/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx/jsx-indent-props":["error",2],"@stylistic/jsx/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx/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/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx/jsx-equals-spacing":["error","never"],"@stylistic/jsx/jsx-indent":"off","@stylistic/jsx/jsx-child-element-spacing":"error","@stylistic/jsx/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-children-in-void-dom-elements":"error","@stylistic/jsx/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@stylistic/jsx/jsx-props-no-multi-spaces":"error","@eslint-react/prefer-shorthand-fragment":"error","@stylistic/jsx/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-components":"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","@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"}],"jsx-a11y-minimal/alt-text":["warn",{elements:["img"],img:["Image"]}],"jsx-a11y-minimal/aria-props":"warn","jsx-a11y-minimal/aria-proptypes":"warn","jsx-a11y-minimal/aria-role":"warn","jsx-a11y-minimal/aria-unsupported-elements":"warn","jsx-a11y-minimal/iframe-has-title":"warn","jsx-a11y-minimal/no-access-key":"warn","jsx-a11y-minimal/role-has-required-aria-props":"warn","jsx-a11y-minimal/role-supports-aria-props":"warn","jsx-a11y-minimal/tabindex-no-positive":"warn","react-refresh/only-export-components":["warn",{allowConstantExport:o,allowExportNames:[...s?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...i?["meta","links","headers","loader","action"]:[]]}]}},{files:["**/app/**/_*.?([cm])[jt]s?(x)",String.raw`**/app/**/\[*.?([cm])[jt]s?(x)`],rules:{"@eslint-react/naming-convention/filename":"off"}}]},exports.stylex=function({opt:e={}}={}){return[{plugins:{"@stylexjs":A},files:[y.constants.GLOB_TS,y.constants.GLOB_TSX,y.constants.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]};
package/dist/index.mjs CHANGED
@@ -4,11 +4,11 @@ ${n}`)}})}return{JSXClosingElement:s,JSXClosingFragment:s}}});let tX="always",tJ
4
4
  ${n}`),r&&(n=`${n}
5
5
  `),e.replaceText(s,n)}})}}function i(e){0!==e.arguments.length&&e.arguments.forEach(s)}return{CallExpression(e){i(e)},NewExpression(e){i(e)}}}}),t1=tE({name:"jsx-indent-props",package:"jsx",meta:{type:"layout",docs:{description:"Enforce props indentation in JSX"},fixable:"code",messages:{wrongIndent:"Expected indentation of {{needed}} {{type}} {{characters}} but found {{gotten}}."},schema:[{anyOf:[{type:"string",enum:["tab","first"]},{type:"integer"},{type:"object",properties:{indentMode:{anyOf:[{type:"string",enum:["tab","first"]},{type:"integer"}]},ignoreTernaryOperator:{type:"boolean"}}}]}]},create(e){let t=e.options[0],s="space",i=4,r={isUsingOperator:!1,currentOperator:!1},n=!1;if(e.options.length){let r="object"==typeof e.options[0]?"object"==typeof t&&t.indentMode:t;"first"===r?(i="first",s="space"):"tab"===r?(i=1,s="tab"):"number"==typeof r&&(i=r,s="space"),"object"==typeof t&&t.ignoreTernaryOperator&&(n=!0)}function a(t){let i,n=e.sourceCode.getText(t,t.loc.start.column+0);n=n.split("\n")[0];let a=("space"===s?/^ +/:/^\t+/).exec(n),o=/^[ \t]*:/.test(n)||/^[ \t]*\?/.test(n),l=/</.test(n);return r.currentOperator=!1,o?(r.isUsingOperator=!0,r.currentOperator=!0):l&&(r.isUsingOperator=!1),a?a[0].length:0}return{JSXOpeningElement(t){let o;if(t.attributes.length){var l;let p;o="first"===i?t.attributes[0].loc.start.column:a(t)+i,l=t.attributes,p=o,l.forEach(t=>{let o=a(t);!r.isUsingOperator||r.currentOperator||"first"===i||n||(p+=i,r.isUsingOperator=!1),"ArrayExpression"!==t.type&&"ObjectExpression"!==t.type&&o!==p&&tw(e,t)&&e.report({node:t,messageId:"wrongIndent",data:{needed:p,type:s,characters:1===p?"character":"characters",gotten:o},fix:e=>e.replaceTextRange([t.range[0]-t.loc.start.column,t.range[0]],Array(p+1).join("space"===s?" ":" "))})})}}}}}),t0=tE({name:"jsx-indent",package:"jsx",meta:{type:"layout",docs:{description:"Enforce JSX indentation. Deprecated, use `indent` rule instead."},deprecated:!0,fixable:"whitespace",messages:{wrongIndent:"Expected indentation of {{needed}} {{type}} {{characters}} but found {{gotten}}."},schema:[{anyOf:[{type:"string",enum:["tab"]},{type:"integer"}]},{type:"object",properties:{checkAttributes:{type:"boolean"},indentLogicalExpressions:{type:"boolean"}},additionalProperties:!1}]},create(e){let t="space",s=4;e.options.length&&("tab"===e.options[0]?(s=1,t="tab"):"number"==typeof e.options[0]&&(s=e.options[0],t="space"));let i="space"===t?" ":" ",r=e.options[1]||{},n=r.checkAttributes||!1,a=r.indentLogicalExpressions||!1;function o(s,r,n,a){let o={needed:r,type:t,characters:1===r?"character":"characters",gotten:n};e.report({node:s,messageId:"wrongIndent",data:o,fix:function(t,s){let r=Array(s+1).join(i);if("JSXText"===t.type||"Literal"===t.type)return function(e){let s=t.raw.replace(/\n[\t ]*(\S)/g,(e,t)=>`
6
6
  ${r}${t}`);return e.replaceText(t,s)};if("ReturnStatement"===t.type){let s=e.sourceCode.getText(t);if(s.split("\n").length>1)return function(e){let i=s.lastIndexOf("\n"),n=s.slice(i).replace(/^\n[\t ]*(\S)/,(e,t)=>`
7
- ${r}${t}`);return e.replaceTextRange([t.range[0]+i,t.range[1]],n)}}return function(e){return e.replaceTextRange([t.range[0]-t.loc.start.column,t.range[0]],r)}}(s,r),...{}})}function l(s,i=!1,r=!1){let n,a=e.sourceCode.getText(s,s.loc.start.column+0),o=a.split("\n");a=i?o[o.length-1]:o[0];let p=r?",":"",c=("space"===t?RegExp(`^[ ${p}]+`):RegExp(`^[ ${p}]+`)).exec(a);return c?c[0].length:0}function p(e){return e.parent&&e.parent.parent&&"LogicalExpression"===e.parent.parent.type&&e.parent.parent.right===e.parent&&!a}function c(t){return t.parent&&t.parent.parent&&"ConditionalExpression"===t.parent.parent.type&&t.parent.parent.alternate===t.parent&&"("!==e.sourceCode.getTokenBefore(t).value}function u(t,i,r=!1){let n=l(t,!1,r),a=p(t)&&n-i===s,h=c(t)&&n-i==0;n!==i&&tw(e,t)&&!a&&!h&&o(t,i,n)}function h(t){let i=e.sourceCode,r=i.getTokenBefore(t);if(!r)return;if("JSXText"===r.type||"Punctuator"===r.type&&","===r.value)r="Literal"===(r=i.getNodeByRangeIndex(r.range[0])).type||"JSXText"===r.type?r.parent:r;else if("Punctuator"===r.type&&":"===r.value){do r=i.getTokenBefore(r);while("Punctuator"===r.type&&"/"!==r.value);for(r=i.getNodeByRangeIndex(r.range[0]);r.parent&&"ConditionalExpression"!==r.parent.type;)r=r.parent}let n=l(r="JSXExpressionContainer"===r.type?r.expression:r),a=r.loc.start.line===t.loc.start.line||p(t)||c(t)||function(e){if(!e.parent||!e.parent.parent||"ExpressionStatement"!==e.parent.parent.type)return!1;let t=e.parent.parent;return!!(t.parent&&"BlockStatement"===t.parent.type&&t.parent.parent&&"DoExpression"===t.parent.parent.type)&&t.parent.body[0]!==t}(t)?0:s;u(t,n+a)}function d(e){if(!e.parent)return;let t=l(e.parent.openingElement||e.parent.openingFragment);u(e,t)}function f(e){if(!e.parent||"JSXElement"!==e.parent.type&&"JSXFragment"!==e.parent.type)return;let i=l(e.parent);!function(e,s){let i=e.value,r="space"===t?/\n( *)[\t ]*\S/g:/\n(\t*)[\t ]*\S/g,n=Array.from(String(i).matchAll(r),e=>e[1]?e[1].length:0);n.length>0&&!n.every(e=>e===s)&&n.forEach(t=>{o(e,s,t)})}(e,i+s)}return{JSXOpeningElement:h,JSXOpeningFragment:h,JSXClosingElement:d,JSXClosingFragment:d,JSXAttribute:function(t){if(!n||!t.value||"JSXExpressionContainer"!==t.value.type)return;let s=l(t.name),i=e.sourceCode.getLastToken(t.value),r=t_(e,i);if(r.loc.start.line!==i.loc.start.line)return;let a=t.name.loc.start.line===r.loc.start.line?0:s;u(r,a)},JSXExpressionContainer(e){if(!e.parent)return;let t=l(e.parent);u(e,t+s)},Literal:f,JSXText:f,ReturnStatement(t){if(!t.parent||!t.argument||!tN(t.argument))return;let s=t.parent;for(;s&&"FunctionDeclaration"!==s.type&&"FunctionExpression"!==s.type;)s=s.parent;if(!s||!function(e,t,s=!1,i=!1){let r=e=>{if(!e)return!1;switch(e.type){case"ConditionalExpression":if(s)return r(e.consequent)&&r(e.alternate);return r(e.consequent)||r(e.alternate);case"LogicalExpression":if(s)return r(e.left)&&r(e.right);return r(e.left)||r(e.right);case"SequenceExpression":return r(e.expressions[e.expressions.length-1]);case"JSXElement":case"JSXFragment":return!0;case"Literal":if(!i&&null===e.value)return!0;return!1;case"Identifier":return tN(function(e,t){var s;let i=(s=function(e){let t=e.getScope(),s=t.variables;for(;"global"!==t.type;)s=(t=t.upper).variables.concat(s);return t.childScopes.length&&(s=t.childScopes[0].variables.concat(s),t.childScopes[0].childScopes.length&&(s=t.childScopes[0].childScopes[0].variables.concat(s))),s.reverse(),s}(e),s.find(e=>e.name===t));return i&&i.defs[0]&&i.defs[0].node?"TypeAlias"===i.defs[0].node.type?i.defs[0].node.right:"ImportBinding"===i.defs[0].type?i.defs[0].node:i.defs[0].node.init:null}(t,e.name));default:return!1}},n=!1;return!function(e,t){let s=e.type;"ReturnStatement"===s?t(e.argument,()=>{}):"ArrowFunctionExpression"===s&&e.expression?t(e.body,()=>{}):("FunctionExpression"===s||"FunctionDeclaration"===s||"ArrowFunctionExpression"===s||"MethodDefinition"===s)&&function(e,t){let s=Object.assign({},{fallback:e=>Object.keys(e).filter(e=>"children"===e||"argument"===e)},t);s.keys=Object.assign({},t.keys,{JSXElement:["children"],JSXFragment:["children"]}),tS.traverse(e,s)}(e.body,{enter(e){switch(e.type){case"ReturnStatement":this.skip(),t(e.argument,()=>{this.break()});return;case"BlockStatement":case"IfStatement":case"ForStatement":case"WhileStatement":case"SwitchStatement":case"SwitchCase":return;default:this.skip()}}})}(e,(e,t)=>{r(e)&&(n=!0,t())}),n}(t,e,!0))return;let i=l(t),r=l(t,!0);i!==r&&o(t,i,r)}}}}),t2=tE({name:"jsx-max-props-per-line",package:"jsx",meta:{type:"layout",docs:{description:"Enforce maximum of props on a single line in JSX"},fixable:"code",messages:{newLine:"Prop `{{prop}}` must be placed on a new line"},schema:[{anyOf:[{type:"object",properties:{maximum:{type:"object",properties:{single:{type:"integer",minimum:1},multi:{type:"integer",minimum:1}}}},additionalProperties:!1},{type:"object",properties:{maximum:{type:"number",minimum:1},when:{type:"string",enum:["always","multiline"]}},additionalProperties:!1}]}]},create(e){let t=e.options[0]||{},s=t.maximum||1,i="number"==typeof s?{single:"multiline"===t.when?1/0:s,multi:s}:{single:s.single||1/0,multi:s.multi||1/0};return{JSXOpeningElement(t){if(!t.attributes.length)return;let s=t.loc.start.line===t.loc.end.line;if((s?i.single:i.multi)===1/0)return;let r=[[t.attributes[0]]];t.attributes.reduce((e,t)=>(e.loc.end.line===t.loc.start.line?r[r.length-1].push(t):r.push([t]),t)),r.forEach(r=>{let n=s&&r[0].loc.start.line===t.loc.start.line?i.single:i.multi;if(r.length>n){var a;let t="JSXSpreadAttribute"===(a=r[n]).type?e.sourceCode.getText(a.argument):a.name.name;e.report({messageId:"newLine",node:r[n],data:{prop:t},fix:function(t,s){let i=e.sourceCode,r=[],n=t[0].range[0],a=t[t.length-1].range[1];for(let e=0;e<t.length;e+=s){let n=t.slice(e,e+s);r.push(n.reduce((e,t)=>""===e?i.getText(t):`${e} ${i.getText(t)}`,""))}let o=r.join("\n");return function(e){return e.replaceTextRange([n,a],o)}}(r,n)})}})}}}});function t3(e){return e&&e.loc.start.line!==e.loc.end.line}var t6=tE({name:"jsx-newline",package:"jsx",meta:{type:"layout",docs:{description:"Require or prevent a new line after jsx elements and expressions."},fixable:"code",messages:{require:"JSX element should start in a new line",prevent:"JSX element should not start in a new line",allowMultilines:"Multiline JSX elements should start in a new line"},schema:[{type:"object",properties:{prevent:{default:!1,type:"boolean"},allowMultilines:{default:!1,type:"boolean"}},additionalProperties:!1,if:{properties:{allowMultilines:{const:!0}}},then:{properties:{prevent:{const:!0}},required:["prevent"]}}]},create(e){let t=new Set,s=e.sourceCode;function i(e){let t=s.getText(e);return/^\s*\{\/\*/.test(t)}function r(e){return!i(e)&&("JSXElement"===e.type||"JSXExpressionContainer"===e.type)}return{"Program:exit":function(){t.forEach(t=>{t.children.forEach((t,n,a)=>{if("JSXElement"===t.type||"JSXExpressionContainer"===t.type){let o=e.options[0]||{},l=o.prevent||!1,p=o.allowMultilines||!1,c=a[n+1],u=a[n+2];if(!(c&&u&&("Literal"===c.type||"JSXText"===c.type)))return;let h=!/\n\s*\n/.test(c.value);if(i(t))return;if(p&&(t3(t)||t3(a.slice(n+2).find(r)))){if(!h)return;let t=/(\n)(?!.*\1)/g;e.report({messageId:"allowMultilines",node:u,fix:e=>e.replaceText(c,s.getText(c).replace(t,"\n\n"))});return}if(h===l)return;let d=l?/(\n\n)(?!.*\1)/g:/(\n)(?!.*\1)/g,f=l?"\n":"\n\n";e.report({messageId:l?"prevent":"require",node:u,fix:e=>e.replaceText(c,s.getText(c).replace(d,f))})}})})},":matches(JSXElement, JSXFragment) > :matches(JSXElement, JSXExpressionContainer)":e=>{t.add(e.parent)}}}});let t4={allow:"none"};var t5=tE({name:"jsx-one-expression-per-line",package:"jsx",meta:{type:"layout",docs:{description:"Require one JSX element per line"},fixable:"whitespace",messages:{moveToNewLine:"`{{descriptor}}` must be placed on a new line"},schema:[{type:"object",properties:{allow:{type:"string",enum:["none","literal","single-child","single-line","non-jsx"]}},default:t4,additionalProperties:!1}]},create(e){let t=Object.assign({},t4,e.options[0]);function s(s){let i=s.children;if(!i||!i.length||"non-jsx"===t.allow&&!i.find(e=>"JSXFragment"===e.type||"JSXElement"===e.type))return;let r=s.openingElement||s.openingFragment,n=s.closingElement||s.closingFragment,a=r.loc.start.line,o=r.loc.end.line,l=n.loc.start.line,p=n.loc.end.line;if(1===i.length){let e=i[0];if(a===o&&o===l&&l===p&&p===e.loc.start.line&&e.loc.start.line===e.loc.end.line&&("single-child"===t.allow||"literal"===t.allow&&("Literal"===e.type||"JSXText"===e.type)||"single-line"===t.allow))return}if("single-line"===t.allow){let e=i[0],t=i[i.length-1],s=t.loc.end.line-e.loc.start.line,r=0;if(("Literal"===e.type||"JSXText"===e.type)&&/^\s*?\n/.test(e.raw)&&(r+=1),("Literal"===t.type||"JSXText"===t.type)&&/\n\s*$/.test(t.raw)&&(r+=1),0===s&&0===r||2===s&&2===r)return}let c={},u={};i.forEach(e=>{let t=0,s=0;if("Literal"===e.type||"JSXText"===e.type){if(tL(e.raw))return;t=(e.raw.match(/^\s*\n/g)||[]).length,s=(e.raw.match(/\n\s*$/g)||[]).length}let i=e.loc.start.line+t,r=e.loc.end.line-s;i===r?(c[i]||(c[i]=[]),c[i].push(e)):(c[i]||(c[i]=[]),c[i].push(e),c[r]||(c[r]=[]),c[r].push(e))}),Object.keys(c).forEach(t=>{let s=parseInt(t,10),i=c[s].length-1;c[s].forEach((t,a)=>{let p,h;if(0===a?s===o&&(p=r):p=c[s][a-1],a===i&&s===l&&(h=n),!p&&!h)return;let d=e.sourceCode.getText(t),f=!!(p&&(()=>{let s=e.sourceCode.getTokensBetween(p,t)[0];return("Literal"===p.type||"JSXText"===p.type)&&p.raw.endsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.startsWith(" ")||tL(s?.value)})()),m=!!(h&&(()=>{let s=e.sourceCode.getTokensBetween(t,h)[0];return("Literal"===h.type||"JSXText"===h.type)&&h.raw.startsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.endsWith(" ")||tL(s?.value)})()),g=!!p,x=!!h,y=`${t.loc.start.line},${t.loc.start.column}`;u[y]||(u[y]={node:t,source:d,descriptor:"openingElement"in t&&t.openingElement&&"name"in t.openingElement.name?String(t.openingElement.name.name):e.sourceCode.getText(t).replace(/\n/g,"")}),f&&(u[y].leadingSpace=!0),g&&(u[y].leadingNewLine=!0),x&&(u[y].trailingNewLine=!0),m&&(u[y].trailingSpace=!0)})}),Object.keys(u).forEach(t=>{let s=u[t],i=s.node,r=s.descriptor,n=s.source.replace(/(^ +| +$)/g,""),a=s.leadingSpace?"\n{' '}":"",o=s.trailingSpace?"{' '}\n":"",l=s.leadingNewLine?"\n":"",p=s.trailingNewLine?"\n":"",c=`${a}${l}${n}${p}${o}`;e.report({messageId:"moveToNewLine",node:i,data:{descriptor:r},fix:e=>e.replaceText(i,c)})})}return{JSXElement:s,JSXFragment:s}}}),t9={};function t8(){if(C)return S;C=1;let e="[^\\\\/]",t="[^/]",s="(?:\\/|$)",i="(?:^|\\/)",r=`\\.{1,2}${s}`,n=`(?!${i}${r})`,a=`(?!\\.{0,1}${s})`,o=`(?!${r})`,l=`${t}*?`,p={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:s,DOTS_SLASH:r,NO_DOT:"(?!\\.)",NO_DOTS:n,NO_DOT_SLASH:a,NO_DOTS_SLASH:o,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:i,SEP:"/"},c={...p,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 S={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:{"***":"*","**/**":"**","**/**/**":"**"},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?c:p}}function t7(){if(E)return t9;E=1;let{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:t,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=t8();return t9.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t9.hasRegexChars=e=>s.test(e),t9.isRegexChar=e=>1===e.length&&t9.hasRegexChars(e),t9.escapeRegex=e=>e.replace(i,"\\$1"),t9.toPosixSlashes=t=>t.replace(e,"/"),t9.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},t9.removeBackslashes=e=>e.replace(t,e=>"\\"===e?"":e),t9.escapeLast=(e,t,s)=>{let i=e.lastIndexOf(t,s);return -1===i?e:"\\"===e[i-1]?t9.escapeLast(e,t,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t9.removePrefix=(e,t={})=>{let s=e;return s.startsWith("./")&&(s=s.slice(2),t.prefix="./"),s},t9.wrapOutput=(e,t={},s={})=>{let i=s.contains?"":"^",r=s.contains?"":"$",n=`${i}(?:${e})${r}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n},t9.basename=(e,{windows:t}={})=>{let s=e.split(t?/[\\/]/:"/"),i=s[s.length-1];return""===i?s[s.length-2]:i},t9}var se=f(function(){if(N)return P;N=1;let e=function(){if(I)return T;I=1;let e=function(){if(_)return k;_=1;let e=t7(),{CHAR_ASTERISK:t,CHAR_AT:s,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:r,CHAR_DOT:n,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:o,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_PLUS:u,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:d,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=t8(),g=e=>e===o||e===i,x=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return k=(y,b)=>{let v,S,C=b||{},E=y.length-1,k=!0===C.parts||!0===C.scanToEnd,_=[],w=[],A=[],T=y,I=-1,P=0,N=0,L=!1,R=!1,O=!1,j=!1,B=!1,V=!1,D=!1,M=!1,F=!1,X=!1,J=0,$={value:"",depth:0,isGlob:!1},U=()=>I>=E,q=()=>T.charCodeAt(I+1),H=()=>(v=S,T.charCodeAt(++I));for(;I<E;){let e;if((S=H())===i){D=$.backslashes=!0,(S=H())===l&&(V=!0);continue}if(!0===V||S===l){for(J++;!0!==U()&&(S=H());){if(S===i){D=$.backslashes=!0,H();continue}if(S===l){J++;continue}if(!0!==V&&S===n&&(S=H())===n||!0!==V&&S===r){if(L=$.isBrace=!0,O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===d&&0==--J){V=!1,L=$.isBrace=!0,X=!0;break}}if(!0===k)continue;break}if(S===o){if(_.push(I),w.push($),$={value:"",depth:0,isGlob:!1},!0===X)continue;if(v===n&&I===P+1){P+=2;continue}N=I+1;continue}if(!0!==C.noext&&!0==(S===u||S===s||S===t||S===h||S===a)&&q()===p){if(O=$.isGlob=!0,j=$.isExtglob=!0,X=!0,S===a&&I===P&&(F=!0),!0===k){for(;!0!==U()&&(S=H());){if(S===i){D=$.backslashes=!0,S=H();continue}if(S===f){O=$.isGlob=!0,X=!0;break}}continue}break}if(S===t){if(v===t&&(B=$.isGlobstar=!0),O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===h){if(O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===c){for(;!0!==U()&&(e=H());){if(e===i){D=$.backslashes=!0,H();continue}if(e===m){R=$.isBracket=!0,O=$.isGlob=!0,X=!0;break}}if(!0===k)continue;break}if(!0!==C.nonegate&&S===a&&I===P){M=$.negated=!0,P++;continue}if(!0!==C.noparen&&S===p){if(O=$.isGlob=!0,!0===k){for(;!0!==U()&&(S=H());){if(S===p){D=$.backslashes=!0,S=H();continue}if(S===f){X=!0;break}}continue}break}if(!0===O){if(X=!0,!0===k)continue;break}}!0===C.noext&&(j=!1,O=!1);let W=T,G="",z="";P>0&&(G=T.slice(0,P),T=T.slice(P),N-=P),W&&!0===O&&N>0?(W=T.slice(0,N),z=T.slice(N)):!0===O?(W="",z=T):W=T,W&&""!==W&&"/"!==W&&W!==T&&g(W.charCodeAt(W.length-1))&&(W=W.slice(0,-1)),!0===C.unescape&&(z&&(z=e.removeBackslashes(z)),W&&!0===D&&(W=e.removeBackslashes(W)));let K={prefix:G,input:y,start:P,base:W,glob:z,isBrace:L,isBracket:R,isGlob:O,isExtglob:j,isGlobstar:B,negated:M,negatedExtglob:F};if(!0===C.tokens&&(K.maxDepth=0,g(S)||w.push($),K.tokens=w),!0===C.parts||!0===C.tokens){let e;for(let t=0;t<_.length;t++){let s=e?e+1:P,i=_[t],r=y.slice(s,i);C.tokens&&(0===t&&0!==P?(w[t].isPrefix=!0,w[t].value=G):w[t].value=r,x(w[t]),K.maxDepth+=w[t].depth),(0!==t||""!==r)&&A.push(r),e=i}if(e&&e+1<y.length){let t=y.slice(e+1);A.push(t),C.tokens&&(w[w.length-1].value=t,x(w[w.length-1]),K.maxDepth+=w[w.length-1].depth)}K.slashes=_,K.parts=A}return K}}(),t=function(){if(A)return w;A=1;let e=t8(),t=t7(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_BACKREF:n,REPLACEMENTS:a}=e,o=(e,s)=>{if("function"==typeof s.expandRange)return s.expandRange(...e,s);e.sort();let i=`[${e.join("-")}]`;try{new RegExp(i)}catch(s){return e.map(e=>t.escapeRegex(e)).join("..")}return i},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,p=(c,u)=>{let h;if("string"!=typeof c)throw TypeError("Expected a string");c=a[c]||c;let d={...u},f="number"==typeof d.maxLength?Math.min(s,d.maxLength):s,m=c.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:d.prepend||""},x=[g],y=d.capture?"":"?:",b=e.globChars(d.windows),v=e.extglobChars(b),{DOT_LITERAL:S,PLUS_LITERAL:C,SLASH_LITERAL:E,ONE_CHAR:k,DOTS_SLASH:_,NO_DOT:w,NO_DOT_SLASH:A,NO_DOTS_SLASH:T,QMARK:I,QMARK_NO_DOT:P,STAR:N,START_ANCHOR:L}=b,R=e=>`(${y}(?:(?!${L}${e.dot?_:S}).)*?)`,O=d.dot?"":w,j=d.dot?I:P,B=!0===d.bash?R(d):N;d.capture&&(B=`(${B})`),"boolean"==typeof d.noext&&(d.noextglob=d.noext);let V={input:c,index:-1,start:0,dot:!0===d.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};m=(c=t.removePrefix(c,V)).length;let D=[],M=[],F=[],X=g,J=()=>V.index===m-1,$=V.peek=(e=1)=>c[V.index+e],U=V.advance=()=>c[++V.index]||"",q=()=>c.slice(V.index+1),H=(e="",t=0)=>{V.consumed+=e,V.index+=t},W=e=>{V.output+=null!=e.output?e.output:e.value,H(e.value)},G=()=>{let e=1;for(;"!"===$()&&("("!==$(2)||"?"===$(3));)U(),V.start++,e++;return e%2!=0&&(V.negated=!0,V.start++,!0)},z=e=>{V[e]++,F.push(e)},K=e=>{V[e]--,F.pop()},Q=e=>{if("globstar"===X.type){let t=V.braces>0&&("comma"===e.type||"brace"===e.type),s=!0===e.extglob||D.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||s||(V.output=V.output.slice(0,-X.output.length),X.type="star",X.value="*",X.output=B,V.output+=X.output)}if(D.length&&"paren"!==e.type&&(D[D.length-1].inner+=e.value),(e.value||e.output)&&W(e),X&&"text"===X.type&&"text"===e.type){X.output=(X.output||X.value)+e.value,X.value+=e.value;return}e.prev=X,x.push(e),X=e},Y=(e,t)=>{let s={...v[t],conditions:1,inner:""};s.prev=X,s.parens=V.parens,s.output=V.output;let i=(d.capture?"(":"")+s.open;z("parens"),Q({type:e,value:t,output:V.output?"":k}),Q({type:"paren",extglob:!0,value:U(),output:i}),D.push(s)},Z=e=>{let t,s=e.close+(d.capture?")":"");if("negate"===e.type){let i=B;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=R(d)),(i!==B||J()||/^\)+$/.test(q()))&&(s=e.close=`)$))${i}`),e.inner.includes("*")&&(t=q())&&/^\.[^\\/.]+$/.test(t)){let r=p(t,{...u,fastpaths:!1}).output;s=e.close=`)${r})${i})`}"bos"===e.prev.type&&(V.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:h,output:s}),K("parens")};if(!1!==d.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(c)){let e=!1,s=c.replace(n,(t,s,i,r,n,a)=>"\\"===r?(e=!0,t):"?"===r?s?s+r+(n?I.repeat(n.length):""):0===a?j+(n?I.repeat(n.length):""):I.repeat(i.length):"."===r?S.repeat(i.length):"*"===r?s?s+r+(n?B:""):B:s?t:`\\${t}`);return(!0===e&&(s=!0===d.unescape?s.replace(/\\/g,""):s.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),s===c&&!0===d.contains)?V.output=c:V.output=t.wrapOutput(s,V,u),V}for(;!J();){if("\0"===(h=U()))continue;if("\\"===h){let e=$();if("/"===e&&!0!==d.bash||"."===e||";"===e)continue;if(!e){Q({type:"text",value:h+="\\"});continue}let t=/^\\+/.exec(q()),s=0;if(t&&t[0].length>2&&(s=t[0].length,V.index+=s,s%2!=0&&(h+="\\")),!0===d.unescape?h=U():h+=U(),0===V.brackets){Q({type:"text",value:h});continue}}if(V.brackets>0&&("]"!==h||"["===X.value||"[^"===X.value)){if(!1!==d.posix&&":"===h){let e=X.value.slice(1);if(e.includes("[")&&(X.posix=!0,e.includes(":"))){let e=X.value.lastIndexOf("["),t=X.value.slice(0,e),s=i[X.value.slice(e+2)];if(s){X.value=t+s,V.backtrack=!0,U(),g.output||1!==x.indexOf(X)||(g.output=k);continue}}}("["===h&&":"!==$()||"-"===h&&"]"===$())&&(h=`\\${h}`),"]"===h&&("["===X.value||"[^"===X.value)&&(h=`\\${h}`),!0===d.posix&&"!"===h&&"["===X.value&&(h="^"),X.value+=h,W({value:h});continue}if(1===V.quotes&&'"'!==h){h=t.escapeRegex(h),X.value+=h,W({value:h});continue}if('"'===h){V.quotes=+(1!==V.quotes),!0===d.keepQuotes&&Q({type:"text",value:h});continue}if("("===h){z("parens"),Q({type:"paren",value:h});continue}if(")"===h){if(0===V.parens&&!0===d.strictBrackets)throw SyntaxError(l("opening","("));let e=D[D.length-1];if(e&&V.parens===e.parens+1){Z(D.pop());continue}Q({type:"paren",value:h,output:V.parens?")":"\\)"}),K("parens");continue}if("["===h){if(!0!==d.nobracket&&q().includes("]"))z("brackets");else{if(!0!==d.nobracket&&!0===d.strictBrackets)throw SyntaxError(l("closing","]"));h=`\\${h}`}Q({type:"bracket",value:h});continue}if("]"===h){if(!0===d.nobracket||X&&"bracket"===X.type&&1===X.value.length){Q({type:"text",value:h,output:`\\${h}`});continue}if(0===V.brackets){if(!0===d.strictBrackets)throw SyntaxError(l("opening","["));Q({type:"text",value:h,output:`\\${h}`});continue}K("brackets");let e=X.value.slice(1);if(!0===X.posix||"^"!==e[0]||e.includes("/")||(h=`/${h}`),X.value+=h,W({value:h}),!1===d.literalBrackets||t.hasRegexChars(e))continue;let s=t.escapeRegex(X.value);if(V.output=V.output.slice(0,-X.value.length),!0===d.literalBrackets){V.output+=s,X.value=s;continue}X.value=`(${y}${s}|${X.value})`,V.output+=X.value;continue}if("{"===h&&!0!==d.nobrace){z("braces");let e={type:"brace",value:h,output:"(",outputIndex:V.output.length,tokensIndex:V.tokens.length};M.push(e),Q(e);continue}if("}"===h){let e=M[M.length-1];if(!0===d.nobrace||!e){Q({type:"text",value:h,output:h});continue}let t=")";if(!0===e.dots){let e=x.slice(),s=[];for(let t=e.length-1;t>=0&&(x.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&s.unshift(e[t].value);t=o(s,d),V.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let s=V.output.slice(0,e.outputIndex),i=V.tokens.slice(e.tokensIndex);for(let r of(e.value=e.output="\\{",h=t="\\}",V.output=s,i))V.output+=r.output||r.value}Q({type:"brace",value:h,output:t}),K("braces"),M.pop();continue}if("|"===h){D.length>0&&D[D.length-1].conditions++,Q({type:"text",value:h});continue}if(","===h){let e=h,t=M[M.length-1];t&&"braces"===F[F.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:h,output:e});continue}if("/"===h){if("dot"===X.type&&V.index===V.start+1){V.start=V.index+1,V.consumed="",V.output="",x.pop(),X=g;continue}Q({type:"slash",value:h,output:E});continue}if("."===h){if(V.braces>0&&"dot"===X.type){"."===X.value&&(X.output=S);let e=M[M.length-1];X.type="dots",X.output+=h,X.value+=h,e.dots=!0;continue}if(V.braces+V.parens===0&&"bos"!==X.type&&"slash"!==X.type){Q({type:"text",value:h,output:S});continue}Q({type:"dot",value:h,output:S});continue}if("?"===h){if(!(X&&"("===X.value)&&!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Y("qmark",h);continue}if(X&&"paren"===X.type){let e=$(),t=h;("("!==X.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(q()))||(t=`\\${h}`),Q({type:"text",value:h,output:t});continue}if(!0!==d.dot&&("slash"===X.type||"bos"===X.type)){Q({type:"qmark",value:h,output:P});continue}Q({type:"qmark",value:h,output:I});continue}if("!"===h){if(!0!==d.noextglob&&"("===$()&&("?"!==$(2)||!/[!=<:]/.test($(3)))){Y("negate",h);continue}if(!0!==d.nonegate&&0===V.index){G();continue}}if("+"===h){if(!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Y("plus",h);continue}if(X&&"("===X.value||!1===d.regex){Q({type:"plus",value:h,output:C});continue}if(X&&("bracket"===X.type||"paren"===X.type||"brace"===X.type)||V.parens>0){Q({type:"plus",value:h});continue}Q({type:"plus",value:C});continue}if("@"===h){if(!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Q({type:"at",extglob:!0,value:h,output:""});continue}Q({type:"text",value:h});continue}if("*"!==h){("$"===h||"^"===h)&&(h=`\\${h}`);let e=r.exec(q());e&&(h+=e[0],V.index+=e[0].length),Q({type:"text",value:h});continue}if(X&&("globstar"===X.type||!0===X.star)){X.type="star",X.star=!0,X.value+=h,X.output=B,V.backtrack=!0,V.globstar=!0,H(h);continue}let e=q();if(!0!==d.noextglob&&/^\([^?]/.test(e)){Y("star",h);continue}if("star"===X.type){if(!0===d.noglobstar){H(h);continue}let t=X.prev,s=t.prev,i="slash"===t.type||"bos"===t.type,r=s&&("star"===s.type||"globstar"===s.type);if(!0===d.bash&&(!i||e[0]&&"/"!==e[0])){Q({type:"star",value:h,output:""});continue}let n=V.braces>0&&("comma"===t.type||"brace"===t.type),a=D.length&&("pipe"===t.type||"paren"===t.type);if(!i&&"paren"!==t.type&&!n&&!a){Q({type:"star",value:h,output:""});continue}for(;"/**"===e.slice(0,3);){let t=c[V.index+4];if(t&&"/"!==t)break;e=e.slice(3),H("/**",3)}if("bos"===t.type&&J()){X.type="globstar",X.value+=h,X.output=R(d),V.output=X.output,V.globstar=!0,H(h);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!r&&J()){V.output=V.output.slice(0,-(t.output+X.output).length),t.output=`(?:${t.output}`,X.type="globstar",X.output=R(d)+(d.strictSlashes?")":"|$)"),X.value+=h,V.globstar=!0,V.output+=t.output+X.output,H(h);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let s=void 0!==e[1]?"|$":"";V.output=V.output.slice(0,-(t.output+X.output).length),t.output=`(?:${t.output}`,X.type="globstar",X.output=`${R(d)}${E}|${E}${s})`,X.value+=h,V.output+=t.output+X.output,V.globstar=!0,H(h+U()),Q({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){X.type="globstar",X.value+=h,X.output=`(?:^|${E}|${R(d)}${E})`,V.output=X.output,V.globstar=!0,H(h+U()),Q({type:"slash",value:"/",output:""});continue}V.output=V.output.slice(0,-X.output.length),X.type="globstar",X.output=R(d),X.value+=h,V.output+=X.output,V.globstar=!0,H(h);continue}let s={type:"star",value:h,output:B};if(!0===d.bash){s.output=".*?",("bos"===X.type||"slash"===X.type)&&(s.output=O+s.output),Q(s);continue}if(X&&("bracket"===X.type||"paren"===X.type)&&!0===d.regex){s.output=h,Q(s);continue}(V.index===V.start||"slash"===X.type||"dot"===X.type)&&("dot"===X.type?(V.output+=A,X.output+=A):!0===d.dot?(V.output+=T,X.output+=T):(V.output+=O,X.output+=O),"*"!==$()&&(V.output+=k,X.output+=k)),Q(s)}for(;V.brackets>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","]"));V.output=t.escapeLast(V.output,"["),K("brackets")}for(;V.parens>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing",")"));V.output=t.escapeLast(V.output,"("),K("parens")}for(;V.braces>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","}"));V.output=t.escapeLast(V.output,"{"),K("braces")}if(!0!==d.strictSlashes&&("star"===X.type||"bracket"===X.type)&&Q({type:"maybe_slash",value:"",output:`${E}?`}),!0===V.backtrack)for(let e of(V.output="",V.tokens))V.output+=null!=e.output?e.output:e.value,e.suffix&&(V.output+=e.suffix);return V};return p.fastpaths=(i,r)=>{let n={...r},o="number"==typeof n.maxLength?Math.min(s,n.maxLength):s,l=i.length;if(l>o)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${o}`);i=a[i]||i;let{DOT_LITERAL:p,SLASH_LITERAL:c,ONE_CHAR:u,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:x}=e.globChars(n.windows),y=n.dot?f:d,b=n.dot?m:d,v=n.capture?"":"?:",S=!0===n.bash?".*?":g;n.capture&&(S=`(${S})`);let C=e=>!0===e.noglobstar?S:`(${v}(?:(?!${x}${e.dot?h:p}).)*?)`,E=e=>{switch(e){case"*":return`${y}${u}${S}`;case".*":return`${p}${u}${S}`;case"*.*":return`${y}${S}${p}${u}${S}`;case"*/*":return`${y}${S}${c}${u}${b}${S}`;case"**":return y+C(n);case"**/*":return`(?:${y}${C(n)}${c})?${b}${u}${S}`;case"**/*.*":return`(?:${y}${C(n)}${c})?${b}${S}${p}${u}${S}`;case"**/.*":return`(?:${y}${C(n)}${c})?${p}${u}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let s=E(t[1]);if(!s)return;return s+p+t[2]}}},k=E(t.removePrefix(i,{negated:!1,prefix:""}));return k&&!0!==n.strictSlashes&&(k+=`${c}?`),k},w=p}(),s=t7(),i=t8(),r=e=>e&&"object"==typeof e&&!Array.isArray(e),n=(e,t,s=!1)=>{if(Array.isArray(e)){let i=e.map(e=>n(e,t,s));return e=>{for(let t of i){let s=t(e);if(s)return s}return!1}}let i=r(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!i)throw TypeError("Expected pattern to be a non-empty string");let a=t||{},o=a.windows,l=i?n.compileRe(e,t):n.makeRe(e,t,!1,!0),p=l.state;delete l.state;let c=()=>!1;if(a.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};c=n(a.ignore,e,s)}let u=(s,i=!1)=>{let{isMatch:r,match:u,output:h}=n.test(s,l,t,{glob:e,posix:o}),d={glob:e,state:p,regex:l,posix:o,input:s,output:h,match:u,isMatch:r};return("function"==typeof a.onResult&&a.onResult(d),!1===r)?(d.isMatch=!1,!!i&&d):c(s)?("function"==typeof a.onIgnore&&a.onIgnore(d),d.isMatch=!1,!!i&&d):("function"==typeof a.onMatch&&a.onMatch(d),!i||d)};return s&&(u.state=p),u};return n.test=(e,t,i,{glob:r,posix:a}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let o=i||{},l=o.format||(a?s.toPosixSlashes:null),p=e===r,c=p&&l?l(e):e;return!1===p&&(p=(c=l?l(e):e)===r),(!1===p||!0===o.capture)&&(p=!0===o.matchBase||!0===o.basename?n.matchBase(e,t,i,a):t.exec(c)),{isMatch:!!p,match:p,output:c}},n.matchBase=(e,t,i)=>(t instanceof RegExp?t:n.makeRe(t,i)).test(s.basename(e)),n.isMatch=(e,t,s)=>n(t,s)(e),n.parse=(e,s)=>Array.isArray(e)?e.map(e=>n.parse(e,s)):t(e,{...s,fastpaths:!1}),n.scan=(t,s)=>e(t,s),n.compileRe=(e,t,s=!1,i=!1)=>{if(!0===s)return e.output;let r=t||{},a=r.contains?"":"^",o=r.contains?"":"$",l=`${a}(?:${e.output})${o}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let p=n.toRegex(l,t);return!0===i&&(p.state=e),p},n.makeRe=(e,s={},i=!1,r=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let a={negated:!1,fastpaths:!0};return!1!==s.fastpaths&&("."===e[0]||"*"===e[0])&&(a.output=t.fastpaths(e,s)),a.output||(a=t(e,s)),n.compileRe(a,s,i,r)},n.toRegex=(e,t)=>{try{let s=t||{};return new RegExp(e,s.flags||(s.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},n.constants=i,T=n}(),t=t7();function s(i,r,n=!1){return r&&(null===r.windows||void 0===r.windows)&&(r={...r,windows:t.isWindows()}),e(i,r,n)}return Object.assign(s,e),P=s}());function st(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function ss(e){let t=e.toUpperCase();return e===t&&t!==e.toLowerCase()}var si=tE({name:"jsx-pascal-case",package:"jsx",meta:{type:"suggestion",docs:{description:"Enforce PascalCase for user-defined JSX components"},messages:{usePascalCase:"Imported JSX component {{name}} must be in PascalCase",usePascalOrSnakeCase:"Imported JSX component {{name}} must be in PascalCase or SCREAMING_SNAKE_CASE"},schema:[{type:"object",properties:{allowAllCaps:{type:"boolean"},allowLeadingUnderscore:{type:"boolean"},allowNamespace:{type:"boolean"},ignore:{items:{type:"string"},type:"array",uniqueItems:!0}},additionalProperties:!1}]},create(e){let{allowAllCaps:t=!1,allowLeadingUnderscore:s=!1,allowNamespace:i=!1,ignore:r=[]}=e.options[0]||{},n=se(r,{noglobstar:!0});return{JSXOpeningElement(a){if(tP(a))return;let o=tO(a),l=[o],p=0;o.includes(":")?l=o.split(":"):o.includes(".")&&(l=o.split("."));do{let i=l[p];if(1===i.length)return;let o=n(i)||r.includes(i),c=s&&i.startsWith("_")?i.slice(1):i,u=!(!ss(c.charAt(0))||Array.prototype.some.call(c.slice(1),e=>e.toLowerCase()===e.toUpperCase()&&!st(e)))&&Array.prototype.some.call(c.slice(1),e=>(function(e){let t=e.toLowerCase();return e===t&&t!==e.toUpperCase()})(e)||st(e)),h=t&&function(e){let t=e.charAt(0);if(!(ss(t)||st(t)))return!1;for(let t=1;t<e.length-1;t+=1){let s=e.charAt(t);if(!(ss(s)||st(s)||"_"===s))return!1}let s=e.charAt(e.length-1);return!!(ss(s)||st(s))}(c);if(!u&&!h&&!o){let s=t?"usePascalOrSnakeCase":"usePascalCase";e.report({messageId:s,node:a,data:{name:i}});break}p+=1}while(p<l.length&&!i)}}}}),sr=tE({name:"jsx-props-no-multi-spaces",package:"jsx",meta:{type:"layout",docs:{description:"Disallow multiple spaces between inline JSX props"},fixable:"code",messages:{noLineGap:"Expected no line gap between “{{prop1}}” and “{{prop2}}”",onlyOneSpace:"Expected only one space between “{{prop1}}” and “{{prop2}}”"},schema:[]},create(e){let t=e.sourceCode;function s(e){switch(e.type){case"JSXSpreadAttribute":return t.getText(e.argument);case"JSXIdentifier":return e.name;case"JSXMemberExpression":return`${s(e.object)}.${e.property.name}`;default:return e.name?e.name.name:`${t.getText(e.object)}.${e.property.name}`}}return{JSXOpeningElement(i){i.attributes.reduce((i,r)=>{var n,a;return function(e,s){let i=[].concat(e,t.getCommentsBefore?t.getCommentsBefore(s):[],s);for(let e=1;e<i.length;e+=1){let t=i[e-1];if(i[e].loc.start.line-t.loc.end.line>=2)return!0}return!1}(n=i,a=r)&&e.report({messageId:"noLineGap",node:a,data:{prop1:s(n),prop2:s(a)}}),n.loc.end.line===a.loc.end.line&&" "!==t.text.slice(n.range[1],a.range[0])&&e.report({node:a,messageId:"onlyOneSpace",data:{prop1:s(n),prop2:s(a)},fix:e=>e.replaceTextRange([n.range[1],a.range[0]]," ")}),r},function(e){let t=e.name;if(void 0!==e.typeArguments&&e.typeArguments?.type==="TSTypeParameterInstantiation"){let s=e.typeArguments;return Object.assign({},e,{range:[t.range[0],s?.range[1]]})}return t}(i))}}}});let sn={component:!0,html:!0};var sa=tE({name:"jsx-self-closing-comp",package:"jsx",meta:{type:"layout",docs:{description:"Disallow extra closing tags for components without children"},fixable:"code",messages:{notSelfClosing:"Empty components are self-closing"},schema:[{type:"object",properties:{component:{default:sn.component,type:"boolean"},html:{default:sn.html,type:"boolean"}},additionalProperties:!1}]},create:e=>({JSXOpeningElement(t){(function(t){var s;let i=Object.assign({},sn,e.options[0]);return(i.component&&(s=t).name&&("JSXIdentifier"===s.name.type||"JSXMemberExpression"===s.name.type)&&!tP(s)||i.html&&tP(t))&&!t.selfClosing&&(0===t.parent.children.length||function(e){let t=e.parent.children;return 1===t.length&&"JSXText"===t[0].type&&t[0].value.includes("\n")&&""===t[0].value.replace(/(?!\xA0)\s/g,"")}(t))})(t)&&e.report({messageId:"notSelfClosing",node:t,fix(e){let s=t.range[1]-1,i=t.parent.closingElement?.range[1]??NaN;return e.replaceTextRange([s,i]," />")}})}})});function so(e){return/^on[A-Z]/.test(e)}function sl(e){return e.loc.start.line!==e.loc.end.line}let sp=["children","dangerouslySetInnerHTML","key","ref"];function sc(e,t){return t.includes(e)}function su(t){let s=e.get(t);return!!s&&!!s.hasComment}let sh=new WeakMap;function sd(t,s,i,r,n){let a=sh.get(t)||[];a.includes(s)||(a.push(s),sh.set(t,a),r.report({node:t.name??"",messageId:s,fix:function(t,s,i){let r=s.sourceCode,n=t.attributes.slice(0),a=s.options[0]||{},o=a.ignoreCase||!1,l=a.callbacksLast||!1,p=a.shorthandFirst||!1,c=a.shorthandLast||!1,u=a.multiline||"ignore",h=a.noSortAlphabetically||!1,d={ignoreCase:o,callbacksLast:l,shorthandFirst:p,shorthandLast:c,multiline:u,noSortAlphabetically:h,reservedFirst:a.reservedFirst||!1,reservedList:i,locale:a.locale||"auto"},f=function(t,s){let i=s.sourceCode,r=[],n=0;function a(e){r[n-1].push(e)}for(let s=0;s<t.length;s++){let o=t[s],l=t[s+1],p=o.loc.start.line,c=[];try{c=i.getCommentsAfter(o)}catch{}let u=t[s-1],h="JSXSpreadAttribute"===o.type;if(u&&("JSXSpreadAttribute"!==u.type||h)||(r[(n+=1)-1]=[]),!h)if(0===c.length)e.set(o,{end:o.range[1],hasComment:!1}),a(o);else{let t=c[0],r=t.loc.start.line;if(1===c.length)p+1===r&&l?(e.set(o,{end:l.range[1],hasComment:!0}),a(o),s+=1):p===r&&("Block"===t.type&&l?(e.set(o,{end:l.range[1],hasComment:!0}),s+=1):"Block"===t.type?e.set(o,{end:t.range[1],hasComment:!0}):e.set(o,{end:t.range[1],hasComment:!1}),a(o));else if(c.length>1&&p+1===c[1].loc.start.line&&l){let t=i.getCommentsAfter(l);e.set(o,{end:l.range[1],hasComment:!0}),1===t.length&&l.loc.start.line===t[0].loc.start.line&&e.set(o,{end:t[0].range[1],hasComment:!0}),a(o),s+=1}}}return r}(n,s),m=f.slice(0).map(e=>[...e].sort((e,t)=>(function(e,t,s){let i=tR(e),r=tR(t),n=su(e),a=su(t);if(n&&!a)return 1;if(!n&&a)return -1;if(s.reservedFirst){let e=sc(i,s.reservedList),t=sc(r,s.reservedList);if(e&&!t)return -1;if(!e&&t)return 1}if(s.callbacksLast){let e=so(i),t=so(r);if(e&&!t)return 1;if(!e&&t)return -1}if(s.shorthandFirst||s.shorthandLast){let i=s.shorthandFirst?-1:1;if(!e.value&&t.value)return i;if(e.value&&!t.value)return-i}if("ignore"!==s.multiline){let i="first"===s.multiline?-1:1,r=sl(e),n=sl(t);if(r&&!n)return i;if(!r&&n)return-i}if(s.noSortAlphabetically)return 0;let o="auto"===s.locale?void 0:s.locale;return s.ignoreCase?(i=i.toLowerCase(),r=r.toLowerCase(),i.localeCompare(r,o)):i===r?0:"auto"===s.locale?i<r?-1:1:i.localeCompare(r,o)})(e,t,d)));return function(t){let s=[],i=r.getText();f.forEach((t,r)=>{t.forEach((t,n)=>{let a=m[r][n],o=i.slice(a.range[0],e.get(a).end);s.push({range:[t.range[0],e.get(t).end],text:o})})}),s.sort((e,t)=>t.range[0]-e.range[0]);let n=s[0],a=s[s.length-1],o=a?a.range[0]:0,l=n?n.range[1]:-0;return s.forEach(e=>{i=`${i.slice(0,e.range[0])}${e.text}${i.slice(e.range[1])}`}),t.replaceTextRange([o,l],i.slice(o,l))}}(i,r,n)}))}var sf=tE({name:"jsx-sort-props",package:"jsx",meta:{type:"layout",docs:{description:"Enforce props alphabetical sorting"},fixable:"code",messages:{noUnreservedProps:"A customized reserved first list must only contain a subset of React reserved props. Remove: {{unreservedWords}}",listIsEmpty:"A customized reserved first list must not be empty",listReservedPropsFirst:"Reserved props must be listed before all other props",listCallbacksLast:"Callbacks must be listed after all other props",listShorthandFirst:"Shorthand props must be listed before all other props",listShorthandLast:"Shorthand props must be listed after all other props",listMultilineFirst:"Multiline props must be listed before all other props",listMultilineLast:"Multiline props must be listed after all other props",sortPropsByAlpha:"Props should be sorted alphabetically"},schema:[{type:"object",properties:{callbacksLast:{type:"boolean"},shorthandFirst:{type:"boolean"},shorthandLast:{type:"boolean"},multiline:{type:"string",enum:["ignore","first","last"],default:"ignore"},ignoreCase:{type:"boolean"},noSortAlphabetically:{type:"boolean"},reservedFirst:{type:["array","boolean"]},locale:{type:"string",default:"auto"}},additionalProperties:!1}]},create(t){let s=t.options[0]||{},i=s.ignoreCase||!1,r=s.callbacksLast||!1,n=s.shorthandFirst||!1,a=s.shorthandLast||!1,o=s.multiline||"ignore",l=s.noSortAlphabetically||!1,p=s.reservedFirst||!1,c=function(e,t){if(t&&Array.isArray(t)){let s=t.filter(e=>!sc(e,sp));if(0===t.length)return function(t){e.report({node:t,messageId:"listIsEmpty"})};if(s.length>0)return function(t){e.report({node:t,messageId:"noUnreservedProps",data:{unreservedWords:s.toString()}})}}}(t,p),u=Array.isArray(p)?p:sp,h=s.locale||"auto";return{Program(){e=new WeakMap},JSXOpeningElement(e){let s=p&&!tP(e)?u.filter(e=>"dangerouslySetInnerHTML"!==e):u;e.attributes.reduce((u,d,f,m)=>{if("JSXSpreadAttribute"===d.type)return m[f+1];let g=tR(u),x=tR(d),y=u.value,b=d.value,v=so(g),S=so(x);if(i&&(g=g.toLowerCase(),x=x.toLowerCase()),p){if(c)return c(d),u;let i=sc(g,s),r=sc(x,s);if(i&&!r)return d;if(!i&&r)return sd(d,"listReservedPropsFirst",e,t,s),u}if(r){if(!v&&S)return d;if(v&&!S)return sd(u,"listCallbacksLast",e,t,s),u}if(n){if(b&&!y)return d;if(!b&&y)return sd(d,"listShorthandFirst",e,t,s),u}if(a){if(!b&&y)return d;if(b&&!y)return sd(u,"listShorthandLast",e,t,s),u}let C=sl(u),E=sl(d);if("first"===o){if(C&&!E)return d;if(!C&&E)return sd(d,"listMultilineFirst",e,t,s),u}else if("last"===o){if(!C&&E)return d;if(C&&!E)return sd(u,"listMultilineLast",e,t,s),u}return!l&&(i||"auto"!==h?g.localeCompare(x,"auto"===h?void 0:h)>0:g>x)?(sd(d,"sortPropsByAlpha",e,t,s),u):d},e.attributes[0])}}}});function sm(e,t,s){let i,r=e.sourceCode;if("selfClosing"in t&&t.selfClosing){let n=r.getLastTokens(t,2);i=!r.isSpaceBetween(n[0],n[1]),"never"===s?i||e.report({node:t,messageId:"selfCloseSlashNoSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.removeRange([n[0].range[1],n[1].range[0]])}):"always"===s&&i&&e.report({node:t,messageId:"selfCloseSlashNeedSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.insertTextBefore(n[1]," ")})}else{let n=r.getFirstTokens(t,2);i=!r.isSpaceBetween(n[0],n[1]),"never"===s?i||e.report({node:t,messageId:"closeSlashNoSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.removeRange([n[0].range[1],n[1].range[0]])}):"always"===s&&i&&e.report({node:t,messageId:"closeSlashNeedSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.insertTextBefore(n[1]," ")})}}function sg(e,t,s){let i=e.sourceCode,r=i.getTokenBefore(t.name);if("allow-multiline"===s&&r.loc.start.line!==t.name.loc.start.line)return;let n=!i.isSpaceBetween(r,t.name);"never"===s||"allow-multiline"===s?n||e.report({node:t,messageId:"afterOpenNoSpace",loc:{start:r.loc.start,end:t.name.loc.start},fix:e=>e.removeRange([r.range[1],t.name.range[0]])}):"always"===s&&n&&e.report({node:t,messageId:"afterOpenNeedSpace",loc:{start:r.loc.start,end:t.name.loc.start},fix:e=>e.insertTextBefore(t.name," ")})}function sx(e,t,s){if(!("selfClosing"in t&&t.selfClosing)){let i=e.sourceCode,r="proportional-always"===s?tA(t):i.getLastTokens(t,2)[0],n=i.getTokenAfter(r);if(t.loc.start.line!==t.loc.end.line&&"proportional-always"===s&&r.loc.end.line===n.loc.start.line)return void e.report({node:t,messageId:"beforeCloseNeedNewline",loc:r.loc.end,fix:e=>e.insertTextBefore(n,"\n")});if(r.loc.start.line!==n.loc.start.line)return;let a=!i.isSpaceBetween(r,n);"never"!==s||a?"always"===s&&a?e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:"beforeCloseNeedSpace",fix:e=>e.insertTextBefore(n," ")}):"proportional-always"===s&&"JSXOpeningElement"===t.type&&a!==(t.loc.start.line===t.loc.end.line)&&e.report({node:t,messageId:"beforeCloseNeedSpace",loc:{start:r.loc.end,end:n.loc.start},fix:e=>e.insertTextBefore(n," ")}):e.report({node:t,messageId:"beforeCloseNoSpace",loc:{start:r.loc.end,end:n.loc.start},fix:e=>e.removeRange([r.range[1],n.range[0]])})}}let sy={closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"allow"};var sb=tE({name:"jsx-tag-spacing",package:"jsx",meta:{type:"layout",docs:{description:"Enforce whitespace in and around the JSX opening and closing brackets"},fixable:"whitespace",messages:{selfCloseSlashNoSpace:"Whitespace is forbidden between `/` and `>`; write `/>`",selfCloseSlashNeedSpace:"Whitespace is required between `/` and `>`; write `/ >`",closeSlashNoSpace:"Whitespace is forbidden between `<` and `/`; write `</`",closeSlashNeedSpace:"Whitespace is required between `<` and `/`; write `< /`",beforeSelfCloseNoSpace:"A space is forbidden before closing bracket",beforeSelfCloseNeedSpace:"A space is required before closing bracket",beforeSelfCloseNeedNewline:"A newline is required before closing bracket",afterOpenNoSpace:"A space is forbidden after opening bracket",afterOpenNeedSpace:"A space is required after opening bracket",beforeCloseNoSpace:"A space is forbidden before closing bracket",beforeCloseNeedSpace:"Whitespace is required before closing bracket",beforeCloseNeedNewline:"A newline is required before closing bracket"},schema:[{type:"object",properties:{closingSlash:{type:"string",enum:["always","never","allow"]},beforeSelfClosing:{type:"string",enum:["always","proportional-always","never","allow"]},afterOpening:{type:"string",enum:["always","allow-multiline","never","allow"]},beforeClosing:{type:"string",enum:["always","proportional-always","never","allow"]}},default:sy,additionalProperties:!1}]},create(e){let t=Object.assign({},sy,e.options[0]);return{JSXOpeningElement(s){"allow"!==t.closingSlash&&s.selfClosing&&sm(e,s,t.closingSlash),"allow"!==t.afterOpening&&sg(e,s,t.afterOpening),"allow"!==t.beforeSelfClosing&&s.selfClosing&&function(e,t,s){let i=e.sourceCode,r=tA(t),n=i.getTokenAfter(r);if(t.loc.start.line!==t.loc.end.line&&"proportional-always"===s&&r.loc.end.line===n.loc.start.line)return e.report({node:t,messageId:"beforeSelfCloseNeedNewline",loc:r.loc.end,fix:e=>e.insertTextBefore(n,"\n")});if(r.loc.end.line!==n.loc.start.line)return;let a=!i.isSpaceBetween(r,n);("always"===s||"proportional-always"===s)&&a?e.report({node:t,messageId:"beforeSelfCloseNeedSpace",loc:n.loc.start,fix:e=>e.insertTextBefore(n," ")}):"never"!==s||a||e.report({node:t,messageId:"beforeSelfCloseNoSpace",loc:n.loc.start,fix(e){let t=i.getTokenBefore(n);return e.removeRange([t.range[1],n.range[0]])}})}(e,s,t.beforeSelfClosing),"allow"!==t.beforeClosing&&sx(e,s,t.beforeClosing)},JSXClosingElement(s){"allow"!==t.afterOpening&&sg(e,s,t.afterOpening),"allow"!==t.closingSlash&&sm(e,s,t.closingSlash),"allow"!==t.beforeClosing&&sx(e,s,t.beforeClosing)}}}});let sv={declaration:"parens",assignment:"parens",return:"parens",arrow:"parens",condition:"ignore",logical:"ignore",prop:"ignore",propertyValue:"ignore"};var sS={rules:{"jsx-child-element-spacing":tB,"jsx-closing-bracket-location":tV,"jsx-closing-tag-location":tF,"jsx-curly-brace-presence":tH,"jsx-curly-newline":tW,"jsx-curly-spacing":tK,"jsx-equals-spacing":tQ,"jsx-first-prop-new-line":tY,"jsx-function-call-newline":tZ,"jsx-indent":t0,"jsx-indent-props":t1,"jsx-max-props-per-line":t2,"jsx-newline":t6,"jsx-one-expression-per-line":t5,"jsx-pascal-case":si,"jsx-props-no-multi-spaces":sr,"jsx-self-closing-comp":sa,"jsx-sort-props":sf,"jsx-tag-spacing":sb,"jsx-wrap-multilines":tE({name:"jsx-wrap-multilines",package:"jsx",meta:{type:"layout",docs:{description:"Disallow missing parentheses around multiline JSX"},fixable:"code",messages:{missingParens:"Missing parentheses around multilines JSX",parensOnNewLines:"Parentheses around JSX should be on separate lines"},schema:[{type:"object",properties:{declaration:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},assignment:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},return:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},arrow:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},condition:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},logical:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},prop:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},propertyValue:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]}},additionalProperties:!1}]},create(e){function t(t){let s=e.options[0]||{};return t in s?s[t]:sv[t]}function s(e){let s=t(e);return s&&"ignore"!==s}function i(e){return e.loc.start.line!==e.loc.end.line}function r(s,r){if(!s||!tN(s))return;let n=e.sourceCode,a=t(r);if((!0===a||"parens"===a)&&!tT(s,e.sourceCode)&&i(s)&&e.report({node:s,messageId:"missingParens",fix:e=>e.replaceText(s,`(${n.getText(s)})`)}),"parens-new-line"===a&&i(s))if(tT(s,e.sourceCode)){let t=function(t){let s=e.sourceCode.getTokenBefore(t);return!!tT(t,e.sourceCode)&&s.loc.end.line===t.loc.start.line}(s),i=function(t){let s=e.sourceCode.getTokenAfter(t);return!!tT(t,e.sourceCode)&&t.loc.end.line===s.loc.end.line}(s);(t||i)&&e.report({node:s,messageId:"parensOnNewLines",fix:e=>{let r=n.getText(s);return t&&(r=`
7
+ ${r}${t}`);return e.replaceTextRange([t.range[0]+i,t.range[1]],n)}}return function(e){return e.replaceTextRange([t.range[0]-t.loc.start.column,t.range[0]],r)}}(s,r),...{}})}function l(s,i=!1,r=!1){let n,a=e.sourceCode.getText(s,s.loc.start.column+0),o=a.split("\n");a=i?o[o.length-1]:o[0];let p=r?",":"",c=("space"===t?RegExp(`^[ ${p}]+`):RegExp(`^[ ${p}]+`)).exec(a);return c?c[0].length:0}function p(e){return e.parent&&e.parent.parent&&"LogicalExpression"===e.parent.parent.type&&e.parent.parent.right===e.parent&&!a}function c(t){return t.parent&&t.parent.parent&&"ConditionalExpression"===t.parent.parent.type&&t.parent.parent.alternate===t.parent&&"("!==e.sourceCode.getTokenBefore(t).value}function u(t,i,r=!1){let n=l(t,!1,r),a=p(t)&&n-i===s,h=c(t)&&n-i==0;n!==i&&tw(e,t)&&!a&&!h&&o(t,i,n)}function h(t){let i=e.sourceCode,r=i.getTokenBefore(t);if(!r)return;if("JSXText"===r.type||"Punctuator"===r.type&&","===r.value)r="Literal"===(r=i.getNodeByRangeIndex(r.range[0])).type||"JSXText"===r.type?r.parent:r;else if("Punctuator"===r.type&&":"===r.value){do r=i.getTokenBefore(r);while("Punctuator"===r.type&&"/"!==r.value);for(r=i.getNodeByRangeIndex(r.range[0]);r.parent&&"ConditionalExpression"!==r.parent.type;)r=r.parent}let n=l(r="JSXExpressionContainer"===r.type?r.expression:r),a=r.loc.start.line===t.loc.start.line||p(t)||c(t)||function(e){if(!e.parent||!e.parent.parent||"ExpressionStatement"!==e.parent.parent.type)return!1;let t=e.parent.parent;return!!(t.parent&&"BlockStatement"===t.parent.type&&t.parent.parent&&"DoExpression"===t.parent.parent.type)&&t.parent.body[0]!==t}(t)?0:s;u(t,n+a)}function d(e){if(!e.parent)return;let t=l(e.parent.openingElement||e.parent.openingFragment);u(e,t)}function f(e){if(!e.parent||"JSXElement"!==e.parent.type&&"JSXFragment"!==e.parent.type)return;let i=l(e.parent);!function(e,s){let i=e.value,r="space"===t?/\n( *)[\t ]*\S/g:/\n(\t*)[\t ]*\S/g,n=Array.from(String(i).matchAll(r),e=>e[1]?e[1].length:0);n.length>0&&!n.every(e=>e===s)&&n.forEach(t=>{o(e,s,t)})}(e,i+s)}return{JSXOpeningElement:h,JSXOpeningFragment:h,JSXClosingElement:d,JSXClosingFragment:d,JSXAttribute:function(t){if(!n||!t.value||"JSXExpressionContainer"!==t.value.type)return;let s=l(t.name),i=e.sourceCode.getLastToken(t.value),r=t_(e,i);if(r.loc.start.line!==i.loc.start.line)return;let a=t.name.loc.start.line===r.loc.start.line?0:s;u(r,a)},JSXExpressionContainer(e){if(!e.parent)return;let t=l(e.parent);u(e,t+s)},Literal:f,JSXText:f,ReturnStatement(t){if(!t.parent||!t.argument||!tN(t.argument))return;let s=t.parent;for(;s&&"FunctionDeclaration"!==s.type&&"FunctionExpression"!==s.type;)s=s.parent;if(!s||!function(e,t,s=!1,i=!1){let r=e=>{if(!e)return!1;switch(e.type){case"ConditionalExpression":if(s)return r(e.consequent)&&r(e.alternate);return r(e.consequent)||r(e.alternate);case"LogicalExpression":if(s)return r(e.left)&&r(e.right);return r(e.left)||r(e.right);case"SequenceExpression":return r(e.expressions[e.expressions.length-1]);case"JSXElement":case"JSXFragment":return!0;case"Literal":if(!i&&null===e.value)return!0;return!1;case"Identifier":return tN(function(e,t){var s;let i=(s=function(e){let t=e.getScope(),s=t.variables;for(;"global"!==t.type;)s=(t=t.upper).variables.concat(s);return t.childScopes.length&&(s=t.childScopes[0].variables.concat(s),t.childScopes[0].childScopes.length&&(s=t.childScopes[0].childScopes[0].variables.concat(s))),s.reverse(),s}(e),s.find(e=>e.name===t));return i&&i.defs[0]&&i.defs[0].node?"TypeAlias"===i.defs[0].node.type?i.defs[0].node.right:"ImportBinding"===i.defs[0].type?i.defs[0].node:i.defs[0].node.init:null}(t,e.name));default:return!1}},n=!1;return!function(e,t){let s=e.type;"ReturnStatement"===s?t(e.argument,()=>{}):"ArrowFunctionExpression"===s&&e.expression?t(e.body,()=>{}):("FunctionExpression"===s||"FunctionDeclaration"===s||"ArrowFunctionExpression"===s||"MethodDefinition"===s)&&function(e,t){let s=Object.assign({},{fallback:e=>Object.keys(e).filter(e=>"children"===e||"argument"===e)},t);s.keys=Object.assign({},t.keys,{JSXElement:["children"],JSXFragment:["children"]}),tS.traverse(e,s)}(e.body,{enter(e){switch(e.type){case"ReturnStatement":this.skip(),t(e.argument,()=>{this.break()});return;case"BlockStatement":case"IfStatement":case"ForStatement":case"WhileStatement":case"SwitchStatement":case"SwitchCase":return;default:this.skip()}}})}(e,(e,t)=>{r(e)&&(n=!0,t())}),n}(t,e,!0))return;let i=l(t),r=l(t,!0);i!==r&&o(t,i,r)}}}}),t2=tE({name:"jsx-max-props-per-line",package:"jsx",meta:{type:"layout",docs:{description:"Enforce maximum of props on a single line in JSX"},fixable:"code",messages:{newLine:"Prop `{{prop}}` must be placed on a new line"},schema:[{anyOf:[{type:"object",properties:{maximum:{type:"object",properties:{single:{type:"integer",minimum:1},multi:{type:"integer",minimum:1}}}},additionalProperties:!1},{type:"object",properties:{maximum:{type:"number",minimum:1},when:{type:"string",enum:["always","multiline"]}},additionalProperties:!1}]}]},create(e){let t=e.options[0]||{},s=t.maximum||1,i="number"==typeof s?{single:"multiline"===t.when?1/0:s,multi:s}:{single:s.single||1/0,multi:s.multi||1/0};return{JSXOpeningElement(t){if(!t.attributes.length)return;let s=t.loc.start.line===t.loc.end.line;if((s?i.single:i.multi)===1/0)return;let r=[[t.attributes[0]]];t.attributes.reduce((e,t)=>(e.loc.end.line===t.loc.start.line?r[r.length-1].push(t):r.push([t]),t)),r.forEach(r=>{let n=s&&r[0].loc.start.line===t.loc.start.line?i.single:i.multi;if(r.length>n){var a;let t="JSXSpreadAttribute"===(a=r[n]).type?e.sourceCode.getText(a.argument):a.name.name;e.report({messageId:"newLine",node:r[n],data:{prop:t},fix:function(t,s){let i=e.sourceCode,r=[],n=t[0].range[0],a=t[t.length-1].range[1];for(let e=0;e<t.length;e+=s){let n=t.slice(e,e+s);r.push(n.reduce((e,t)=>""===e?i.getText(t):`${e} ${i.getText(t)}`,""))}let o=r.join("\n");return function(e){return e.replaceTextRange([n,a],o)}}(r,n)})}})}}}});function t3(e){return e&&e.loc.start.line!==e.loc.end.line}var t6=tE({name:"jsx-newline",package:"jsx",meta:{type:"layout",docs:{description:"Require or prevent a new line after jsx elements and expressions."},fixable:"code",messages:{require:"JSX element should start in a new line",prevent:"JSX element should not start in a new line",allowMultilines:"Multiline JSX elements should start in a new line"},schema:[{type:"object",properties:{prevent:{default:!1,type:"boolean"},allowMultilines:{default:!1,type:"boolean"}},additionalProperties:!1,if:{properties:{allowMultilines:{const:!0}}},then:{properties:{prevent:{const:!0}},required:["prevent"]}}]},create(e){let t=new Set,s=e.sourceCode;function i(e){let t=s.getText(e);return/^\s*\{\/\*/.test(t)}function r(e){return!i(e)&&("JSXElement"===e.type||"JSXExpressionContainer"===e.type)}return{"Program:exit":function(){t.forEach(t=>{t.children.forEach((t,n,a)=>{if("JSXElement"===t.type||"JSXExpressionContainer"===t.type){let o=e.options[0]||{},l=o.prevent||!1,p=o.allowMultilines||!1,c=a[n+1],u=a[n+2];if(!(c&&u&&("Literal"===c.type||"JSXText"===c.type)))return;let h=!/\n\s*\n/.test(c.value);if(i(t))return;if(p&&(t3(t)||t3(a.slice(n+2).find(r)))){if(!h)return;let t=/(\n)(?!.*\1)/g;e.report({messageId:"allowMultilines",node:u,fix:e=>e.replaceText(c,s.getText(c).replace(t,"\n\n"))});return}if(h===l)return;let d=l?/(\n\n)(?!.*\1)/g:/(\n)(?!.*\1)/g,f=l?"\n":"\n\n";e.report({messageId:l?"prevent":"require",node:u,fix:e=>e.replaceText(c,s.getText(c).replace(d,f))})}})})},":matches(JSXElement, JSXFragment) > :matches(JSXElement, JSXExpressionContainer)":e=>{t.add(e.parent)}}}});let t4={allow:"none"};var t5=tE({name:"jsx-one-expression-per-line",package:"jsx",meta:{type:"layout",docs:{description:"Require one JSX element per line"},fixable:"whitespace",messages:{moveToNewLine:"`{{descriptor}}` must be placed on a new line"},schema:[{type:"object",properties:{allow:{type:"string",enum:["none","literal","single-child","single-line","non-jsx"]}},default:t4,additionalProperties:!1}]},create(e){let t=Object.assign({},t4,e.options[0]);function s(s){let i=s.children;if(!i||!i.length||"non-jsx"===t.allow&&!i.find(e=>"JSXFragment"===e.type||"JSXElement"===e.type))return;let r=s.openingElement||s.openingFragment,n=s.closingElement||s.closingFragment,a=r.loc.start.line,o=r.loc.end.line,l=n.loc.start.line,p=n.loc.end.line;if(1===i.length){let e=i[0];if(a===o&&o===l&&l===p&&p===e.loc.start.line&&e.loc.start.line===e.loc.end.line&&("single-child"===t.allow||"literal"===t.allow&&("Literal"===e.type||"JSXText"===e.type)||"single-line"===t.allow))return}if("single-line"===t.allow){let e=i[0],t=i[i.length-1],s=t.loc.end.line-e.loc.start.line,r=0;if(("Literal"===e.type||"JSXText"===e.type)&&/^\s*?\n/.test(e.raw)&&(r+=1),("Literal"===t.type||"JSXText"===t.type)&&/\n\s*$/.test(t.raw)&&(r+=1),0===s&&0===r||2===s&&2===r)return}let c={},u={};i.forEach(e=>{let t=0,s=0;if("Literal"===e.type||"JSXText"===e.type){if(tL(e.raw))return;t=(e.raw.match(/^\s*\n/g)||[]).length,s=(e.raw.match(/\n\s*$/g)||[]).length}let i=e.loc.start.line+t,r=e.loc.end.line-s;i===r?(c[i]||(c[i]=[]),c[i].push(e)):(c[i]||(c[i]=[]),c[i].push(e),c[r]||(c[r]=[]),c[r].push(e))}),Object.keys(c).forEach(t=>{let s=parseInt(t,10),i=c[s].length-1;c[s].forEach((t,a)=>{let p,h;if(0===a?s===o&&(p=r):p=c[s][a-1],a===i&&s===l&&(h=n),!p&&!h)return;let d=e.sourceCode.getText(t),f=!!(p&&(()=>{let s=e.sourceCode.getTokensBetween(p,t)[0];return("Literal"===p.type||"JSXText"===p.type)&&p.raw.endsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.startsWith(" ")||tL(s?.value)})()),m=!!(h&&(()=>{let s=e.sourceCode.getTokensBetween(t,h)[0];return("Literal"===h.type||"JSXText"===h.type)&&h.raw.startsWith(" ")||("Literal"===t.type||"JSXText"===t.type)&&t.raw.endsWith(" ")||tL(s?.value)})()),g=!!p,x=!!h,y=`${t.loc.start.line},${t.loc.start.column}`;u[y]||(u[y]={node:t,source:d,descriptor:"openingElement"in t&&t.openingElement&&"name"in t.openingElement.name?String(t.openingElement.name.name):e.sourceCode.getText(t).replace(/\n/g,"")}),f&&(u[y].leadingSpace=!0),g&&(u[y].leadingNewLine=!0),x&&(u[y].trailingNewLine=!0),m&&(u[y].trailingSpace=!0)})}),Object.keys(u).forEach(t=>{let s=u[t],i=s.node,r=s.descriptor,n=s.source.replace(/(^ +| +$)/g,""),a=s.leadingSpace?"\n{' '}":"",o=s.trailingSpace?"{' '}\n":"",l=s.leadingNewLine?"\n":"",p=s.trailingNewLine?"\n":"",c=`${a}${l}${n}${p}${o}`;e.report({messageId:"moveToNewLine",node:i,data:{descriptor:r},fix:e=>e.replaceText(i,c)})})}return{JSXElement:s,JSXFragment:s}}}),t9={};function t8(){if(C)return S;C=1;let e="[^\\\\/]",t="[^/]",s="(?:\\/|$)",i="(?:^|\\/)",r=`\\.{1,2}${s}`,n=`(?!${i}${r})`,a=`(?!\\.{0,1}${s})`,o=`(?!${r})`,l=`${t}*?`,p={DOT_LITERAL:"\\.",PLUS_LITERAL:"\\+",QMARK_LITERAL:"\\?",SLASH_LITERAL:"\\/",ONE_CHAR:"(?=.)",QMARK:t,END_ANCHOR:s,DOTS_SLASH:r,NO_DOT:"(?!\\.)",NO_DOTS:n,NO_DOT_SLASH:a,NO_DOTS_SLASH:o,QMARK_NO_DOT:"[^.\\/]",STAR:l,START_ANCHOR:i,SEP:"/"},c={...p,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 S={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:{"***":"*","**/**":"**","**/**/**":"**"},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?c:p}}function t7(){if(E)return t9;E=1;let{REGEX_BACKSLASH:e,REGEX_REMOVE_BACKSLASH:t,REGEX_SPECIAL_CHARS:s,REGEX_SPECIAL_CHARS_GLOBAL:i}=t8();return t9.isObject=e=>null!==e&&"object"==typeof e&&!Array.isArray(e),t9.hasRegexChars=e=>s.test(e),t9.isRegexChar=e=>1===e.length&&t9.hasRegexChars(e),t9.escapeRegex=e=>e.replace(i,"\\$1"),t9.toPosixSlashes=t=>t.replace(e,"/"),t9.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},t9.removeBackslashes=e=>e.replace(t,e=>"\\"===e?"":e),t9.escapeLast=(e,t,s)=>{let i=e.lastIndexOf(t,s);return -1===i?e:"\\"===e[i-1]?t9.escapeLast(e,t,i-1):`${e.slice(0,i)}\\${e.slice(i)}`},t9.removePrefix=(e,t={})=>{let s=e;return s.startsWith("./")&&(s=s.slice(2),t.prefix="./"),s},t9.wrapOutput=(e,t={},s={})=>{let i=s.contains?"":"^",r=s.contains?"":"$",n=`${i}(?:${e})${r}`;return!0===t.negated&&(n=`(?:^(?!${n}).*$)`),n},t9.basename=(e,{windows:t}={})=>{let s=e.split(t?/[\\/]/:"/"),i=s[s.length-1];return""===i?s[s.length-2]:i},t9}var se=f(function(){if(N)return P;N=1;let e=function(){if(I)return T;I=1;let e=function(){if(_)return k;_=1;let e=t7(),{CHAR_ASTERISK:t,CHAR_AT:s,CHAR_BACKWARD_SLASH:i,CHAR_COMMA:r,CHAR_DOT:n,CHAR_EXCLAMATION_MARK:a,CHAR_FORWARD_SLASH:o,CHAR_LEFT_CURLY_BRACE:l,CHAR_LEFT_PARENTHESES:p,CHAR_LEFT_SQUARE_BRACKET:c,CHAR_PLUS:u,CHAR_QUESTION_MARK:h,CHAR_RIGHT_CURLY_BRACE:d,CHAR_RIGHT_PARENTHESES:f,CHAR_RIGHT_SQUARE_BRACKET:m}=t8(),g=e=>e===o||e===i,x=e=>{!0!==e.isPrefix&&(e.depth=e.isGlobstar?1/0:1)};return k=(y,b)=>{let v,S,C=b||{},E=y.length-1,k=!0===C.parts||!0===C.scanToEnd,_=[],w=[],A=[],T=y,I=-1,P=0,N=0,L=!1,R=!1,O=!1,j=!1,B=!1,V=!1,D=!1,M=!1,F=!1,X=!1,J=0,$={value:"",depth:0,isGlob:!1},U=()=>I>=E,q=()=>T.charCodeAt(I+1),H=()=>(v=S,T.charCodeAt(++I));for(;I<E;){let e;if((S=H())===i){D=$.backslashes=!0,(S=H())===l&&(V=!0);continue}if(!0===V||S===l){for(J++;!0!==U()&&(S=H());){if(S===i){D=$.backslashes=!0,H();continue}if(S===l){J++;continue}if(!0!==V&&S===n&&(S=H())===n||!0!==V&&S===r){if(L=$.isBrace=!0,O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===d&&0==--J){V=!1,L=$.isBrace=!0,X=!0;break}}if(!0===k)continue;break}if(S===o){if(_.push(I),w.push($),$={value:"",depth:0,isGlob:!1},!0===X)continue;if(v===n&&I===P+1){P+=2;continue}N=I+1;continue}if(!0!==C.noext&&!0==(S===u||S===s||S===t||S===h||S===a)&&q()===p){if(O=$.isGlob=!0,j=$.isExtglob=!0,X=!0,S===a&&I===P&&(F=!0),!0===k){for(;!0!==U()&&(S=H());){if(S===i){D=$.backslashes=!0,S=H();continue}if(S===f){O=$.isGlob=!0,X=!0;break}}continue}break}if(S===t){if(v===t&&(B=$.isGlobstar=!0),O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===h){if(O=$.isGlob=!0,X=!0,!0===k)continue;break}if(S===c){for(;!0!==U()&&(e=H());){if(e===i){D=$.backslashes=!0,H();continue}if(e===m){R=$.isBracket=!0,O=$.isGlob=!0,X=!0;break}}if(!0===k)continue;break}if(!0!==C.nonegate&&S===a&&I===P){M=$.negated=!0,P++;continue}if(!0!==C.noparen&&S===p){if(O=$.isGlob=!0,!0===k){for(;!0!==U()&&(S=H());){if(S===p){D=$.backslashes=!0,S=H();continue}if(S===f){X=!0;break}}continue}break}if(!0===O){if(X=!0,!0===k)continue;break}}!0===C.noext&&(j=!1,O=!1);let W=T,G="",z="";P>0&&(G=T.slice(0,P),T=T.slice(P),N-=P),W&&!0===O&&N>0?(W=T.slice(0,N),z=T.slice(N)):!0===O?(W="",z=T):W=T,W&&""!==W&&"/"!==W&&W!==T&&g(W.charCodeAt(W.length-1))&&(W=W.slice(0,-1)),!0===C.unescape&&(z&&(z=e.removeBackslashes(z)),W&&!0===D&&(W=e.removeBackslashes(W)));let K={prefix:G,input:y,start:P,base:W,glob:z,isBrace:L,isBracket:R,isGlob:O,isExtglob:j,isGlobstar:B,negated:M,negatedExtglob:F};if(!0===C.tokens&&(K.maxDepth=0,g(S)||w.push($),K.tokens=w),!0===C.parts||!0===C.tokens){let e;for(let t=0;t<_.length;t++){let s=e?e+1:P,i=_[t],r=y.slice(s,i);C.tokens&&(0===t&&0!==P?(w[t].isPrefix=!0,w[t].value=G):w[t].value=r,x(w[t]),K.maxDepth+=w[t].depth),(0!==t||""!==r)&&A.push(r),e=i}if(e&&e+1<y.length){let t=y.slice(e+1);A.push(t),C.tokens&&(w[w.length-1].value=t,x(w[w.length-1]),K.maxDepth+=w[w.length-1].depth)}K.slashes=_,K.parts=A}return K}}(),t=function(){if(A)return w;A=1;let e=t8(),t=t7(),{MAX_LENGTH:s,POSIX_REGEX_SOURCE:i,REGEX_NON_SPECIAL_CHARS:r,REGEX_SPECIAL_CHARS_BACKREF:n,REPLACEMENTS:a}=e,o=(e,s)=>{if("function"==typeof s.expandRange)return s.expandRange(...e,s);e.sort();let i=`[${e.join("-")}]`;try{new RegExp(i)}catch(s){return e.map(e=>t.escapeRegex(e)).join("..")}return i},l=(e,t)=>`Missing ${e}: "${t}" - use "\\\\${t}" to match literal characters`,p=(c,u)=>{let h;if("string"!=typeof c)throw TypeError("Expected a string");c=a[c]||c;let d={...u},f="number"==typeof d.maxLength?Math.min(s,d.maxLength):s,m=c.length;if(m>f)throw SyntaxError(`Input length: ${m}, exceeds maximum allowed length: ${f}`);let g={type:"bos",value:"",output:d.prepend||""},x=[g],y=d.capture?"":"?:",b=e.globChars(d.windows),v=e.extglobChars(b),{DOT_LITERAL:S,PLUS_LITERAL:C,SLASH_LITERAL:E,ONE_CHAR:k,DOTS_SLASH:_,NO_DOT:w,NO_DOT_SLASH:A,NO_DOTS_SLASH:T,QMARK:I,QMARK_NO_DOT:P,STAR:N,START_ANCHOR:L}=b,R=e=>`(${y}(?:(?!${L}${e.dot?_:S}).)*?)`,O=d.dot?"":w,j=d.dot?I:P,B=!0===d.bash?R(d):N;d.capture&&(B=`(${B})`),"boolean"==typeof d.noext&&(d.noextglob=d.noext);let V={input:c,index:-1,start:0,dot:!0===d.dot,consumed:"",output:"",prefix:"",backtrack:!1,negated:!1,brackets:0,braces:0,parens:0,quotes:0,globstar:!1,tokens:x};m=(c=t.removePrefix(c,V)).length;let D=[],M=[],F=[],X=g,J=()=>V.index===m-1,$=V.peek=(e=1)=>c[V.index+e],U=V.advance=()=>c[++V.index]||"",q=()=>c.slice(V.index+1),H=(e="",t=0)=>{V.consumed+=e,V.index+=t},W=e=>{V.output+=null!=e.output?e.output:e.value,H(e.value)},G=()=>{let e=1;for(;"!"===$()&&("("!==$(2)||"?"===$(3));)U(),V.start++,e++;return e%2!=0&&(V.negated=!0,V.start++,!0)},z=e=>{V[e]++,F.push(e)},K=e=>{V[e]--,F.pop()},Q=e=>{if("globstar"===X.type){let t=V.braces>0&&("comma"===e.type||"brace"===e.type),s=!0===e.extglob||D.length&&("pipe"===e.type||"paren"===e.type);"slash"===e.type||"paren"===e.type||t||s||(V.output=V.output.slice(0,-X.output.length),X.type="star",X.value="*",X.output=B,V.output+=X.output)}if(D.length&&"paren"!==e.type&&(D[D.length-1].inner+=e.value),(e.value||e.output)&&W(e),X&&"text"===X.type&&"text"===e.type){X.output=(X.output||X.value)+e.value,X.value+=e.value;return}e.prev=X,x.push(e),X=e},Y=(e,t)=>{let s={...v[t],conditions:1,inner:""};s.prev=X,s.parens=V.parens,s.output=V.output;let i=(d.capture?"(":"")+s.open;z("parens"),Q({type:e,value:t,output:V.output?"":k}),Q({type:"paren",extglob:!0,value:U(),output:i}),D.push(s)},Z=e=>{let t,s=e.close+(d.capture?")":"");if("negate"===e.type){let i=B;if(e.inner&&e.inner.length>1&&e.inner.includes("/")&&(i=R(d)),(i!==B||J()||/^\)+$/.test(q()))&&(s=e.close=`)$))${i}`),e.inner.includes("*")&&(t=q())&&/^\.[^\\/.]+$/.test(t)){let r=p(t,{...u,fastpaths:!1}).output;s=e.close=`)${r})${i})`}"bos"===e.prev.type&&(V.negatedExtglob=!0)}Q({type:"paren",extglob:!0,value:h,output:s}),K("parens")};if(!1!==d.fastpaths&&!/(^[*!]|[/()[\]{}"])/.test(c)){let e=!1,s=c.replace(n,(t,s,i,r,n,a)=>"\\"===r?(e=!0,t):"?"===r?s?s+r+(n?I.repeat(n.length):""):0===a?j+(n?I.repeat(n.length):""):I.repeat(i.length):"."===r?S.repeat(i.length):"*"===r?s?s+r+(n?B:""):B:s?t:`\\${t}`);return(!0===e&&(s=!0===d.unescape?s.replace(/\\/g,""):s.replace(/\\+/g,e=>e.length%2==0?"\\\\":e?"\\":"")),s===c&&!0===d.contains)?V.output=c:V.output=t.wrapOutput(s,V,u),V}for(;!J();){if("\0"===(h=U()))continue;if("\\"===h){let e=$();if("/"===e&&!0!==d.bash||"."===e||";"===e)continue;if(!e){Q({type:"text",value:h+="\\"});continue}let t=/^\\+/.exec(q()),s=0;if(t&&t[0].length>2&&(s=t[0].length,V.index+=s,s%2!=0&&(h+="\\")),!0===d.unescape?h=U():h+=U(),0===V.brackets){Q({type:"text",value:h});continue}}if(V.brackets>0&&("]"!==h||"["===X.value||"[^"===X.value)){if(!1!==d.posix&&":"===h){let e=X.value.slice(1);if(e.includes("[")&&(X.posix=!0,e.includes(":"))){let e=X.value.lastIndexOf("["),t=X.value.slice(0,e),s=i[X.value.slice(e+2)];if(s){X.value=t+s,V.backtrack=!0,U(),g.output||1!==x.indexOf(X)||(g.output=k);continue}}}("["===h&&":"!==$()||"-"===h&&"]"===$())&&(h=`\\${h}`),"]"===h&&("["===X.value||"[^"===X.value)&&(h=`\\${h}`),!0===d.posix&&"!"===h&&"["===X.value&&(h="^"),X.value+=h,W({value:h});continue}if(1===V.quotes&&'"'!==h){h=t.escapeRegex(h),X.value+=h,W({value:h});continue}if('"'===h){V.quotes=+(1!==V.quotes),!0===d.keepQuotes&&Q({type:"text",value:h});continue}if("("===h){z("parens"),Q({type:"paren",value:h});continue}if(")"===h){if(0===V.parens&&!0===d.strictBrackets)throw SyntaxError(l("opening","("));let e=D[D.length-1];if(e&&V.parens===e.parens+1){Z(D.pop());continue}Q({type:"paren",value:h,output:V.parens?")":"\\)"}),K("parens");continue}if("["===h){if(!0!==d.nobracket&&q().includes("]"))z("brackets");else{if(!0!==d.nobracket&&!0===d.strictBrackets)throw SyntaxError(l("closing","]"));h=`\\${h}`}Q({type:"bracket",value:h});continue}if("]"===h){if(!0===d.nobracket||X&&"bracket"===X.type&&1===X.value.length){Q({type:"text",value:h,output:`\\${h}`});continue}if(0===V.brackets){if(!0===d.strictBrackets)throw SyntaxError(l("opening","["));Q({type:"text",value:h,output:`\\${h}`});continue}K("brackets");let e=X.value.slice(1);if(!0===X.posix||"^"!==e[0]||e.includes("/")||(h=`/${h}`),X.value+=h,W({value:h}),!1===d.literalBrackets||t.hasRegexChars(e))continue;let s=t.escapeRegex(X.value);if(V.output=V.output.slice(0,-X.value.length),!0===d.literalBrackets){V.output+=s,X.value=s;continue}X.value=`(${y}${s}|${X.value})`,V.output+=X.value;continue}if("{"===h&&!0!==d.nobrace){z("braces");let e={type:"brace",value:h,output:"(",outputIndex:V.output.length,tokensIndex:V.tokens.length};M.push(e),Q(e);continue}if("}"===h){let e=M[M.length-1];if(!0===d.nobrace||!e){Q({type:"text",value:h,output:h});continue}let t=")";if(!0===e.dots){let e=x.slice(),s=[];for(let t=e.length-1;t>=0&&(x.pop(),"brace"!==e[t].type);t--)"dots"!==e[t].type&&s.unshift(e[t].value);t=o(s,d),V.backtrack=!0}if(!0!==e.comma&&!0!==e.dots){let s=V.output.slice(0,e.outputIndex),i=V.tokens.slice(e.tokensIndex);for(let r of(e.value=e.output="\\{",h=t="\\}",V.output=s,i))V.output+=r.output||r.value}Q({type:"brace",value:h,output:t}),K("braces"),M.pop();continue}if("|"===h){D.length>0&&D[D.length-1].conditions++,Q({type:"text",value:h});continue}if(","===h){let e=h,t=M[M.length-1];t&&"braces"===F[F.length-1]&&(t.comma=!0,e="|"),Q({type:"comma",value:h,output:e});continue}if("/"===h){if("dot"===X.type&&V.index===V.start+1){V.start=V.index+1,V.consumed="",V.output="",x.pop(),X=g;continue}Q({type:"slash",value:h,output:E});continue}if("."===h){if(V.braces>0&&"dot"===X.type){"."===X.value&&(X.output=S);let e=M[M.length-1];X.type="dots",X.output+=h,X.value+=h,e.dots=!0;continue}if(V.braces+V.parens===0&&"bos"!==X.type&&"slash"!==X.type){Q({type:"text",value:h,output:S});continue}Q({type:"dot",value:h,output:S});continue}if("?"===h){if(!(X&&"("===X.value)&&!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Y("qmark",h);continue}if(X&&"paren"===X.type){let e=$(),t=h;("("!==X.value||/[!=<:]/.test(e))&&("<"!==e||/<([!=]|\w+>)/.test(q()))||(t=`\\${h}`),Q({type:"text",value:h,output:t});continue}if(!0!==d.dot&&("slash"===X.type||"bos"===X.type)){Q({type:"qmark",value:h,output:P});continue}Q({type:"qmark",value:h,output:I});continue}if("!"===h){if(!0!==d.noextglob&&"("===$()&&("?"!==$(2)||!/[!=<:]/.test($(3)))){Y("negate",h);continue}if(!0!==d.nonegate&&0===V.index){G();continue}}if("+"===h){if(!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Y("plus",h);continue}if(X&&"("===X.value||!1===d.regex){Q({type:"plus",value:h,output:C});continue}if(X&&("bracket"===X.type||"paren"===X.type||"brace"===X.type)||V.parens>0){Q({type:"plus",value:h});continue}Q({type:"plus",value:C});continue}if("@"===h){if(!0!==d.noextglob&&"("===$()&&"?"!==$(2)){Q({type:"at",extglob:!0,value:h,output:""});continue}Q({type:"text",value:h});continue}if("*"!==h){("$"===h||"^"===h)&&(h=`\\${h}`);let e=r.exec(q());e&&(h+=e[0],V.index+=e[0].length),Q({type:"text",value:h});continue}if(X&&("globstar"===X.type||!0===X.star)){X.type="star",X.star=!0,X.value+=h,X.output=B,V.backtrack=!0,V.globstar=!0,H(h);continue}let e=q();if(!0!==d.noextglob&&/^\([^?]/.test(e)){Y("star",h);continue}if("star"===X.type){if(!0===d.noglobstar){H(h);continue}let t=X.prev,s=t.prev,i="slash"===t.type||"bos"===t.type,r=s&&("star"===s.type||"globstar"===s.type);if(!0===d.bash&&(!i||e[0]&&"/"!==e[0])){Q({type:"star",value:h,output:""});continue}let n=V.braces>0&&("comma"===t.type||"brace"===t.type),a=D.length&&("pipe"===t.type||"paren"===t.type);if(!i&&"paren"!==t.type&&!n&&!a){Q({type:"star",value:h,output:""});continue}for(;"/**"===e.slice(0,3);){let t=c[V.index+4];if(t&&"/"!==t)break;e=e.slice(3),H("/**",3)}if("bos"===t.type&&J()){X.type="globstar",X.value+=h,X.output=R(d),V.output=X.output,V.globstar=!0,H(h);continue}if("slash"===t.type&&"bos"!==t.prev.type&&!r&&J()){V.output=V.output.slice(0,-(t.output+X.output).length),t.output=`(?:${t.output}`,X.type="globstar",X.output=R(d)+(d.strictSlashes?")":"|$)"),X.value+=h,V.globstar=!0,V.output+=t.output+X.output,H(h);continue}if("slash"===t.type&&"bos"!==t.prev.type&&"/"===e[0]){let s=void 0!==e[1]?"|$":"";V.output=V.output.slice(0,-(t.output+X.output).length),t.output=`(?:${t.output}`,X.type="globstar",X.output=`${R(d)}${E}|${E}${s})`,X.value+=h,V.output+=t.output+X.output,V.globstar=!0,H(h+U()),Q({type:"slash",value:"/",output:""});continue}if("bos"===t.type&&"/"===e[0]){X.type="globstar",X.value+=h,X.output=`(?:^|${E}|${R(d)}${E})`,V.output=X.output,V.globstar=!0,H(h+U()),Q({type:"slash",value:"/",output:""});continue}V.output=V.output.slice(0,-X.output.length),X.type="globstar",X.output=R(d),X.value+=h,V.output+=X.output,V.globstar=!0,H(h);continue}let s={type:"star",value:h,output:B};if(!0===d.bash){s.output=".*?",("bos"===X.type||"slash"===X.type)&&(s.output=O+s.output),Q(s);continue}if(X&&("bracket"===X.type||"paren"===X.type)&&!0===d.regex){s.output=h,Q(s);continue}(V.index===V.start||"slash"===X.type||"dot"===X.type)&&("dot"===X.type?(V.output+=A,X.output+=A):!0===d.dot?(V.output+=T,X.output+=T):(V.output+=O,X.output+=O),"*"!==$()&&(V.output+=k,X.output+=k)),Q(s)}for(;V.brackets>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","]"));V.output=t.escapeLast(V.output,"["),K("brackets")}for(;V.parens>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing",")"));V.output=t.escapeLast(V.output,"("),K("parens")}for(;V.braces>0;){if(!0===d.strictBrackets)throw SyntaxError(l("closing","}"));V.output=t.escapeLast(V.output,"{"),K("braces")}if(!0!==d.strictSlashes&&("star"===X.type||"bracket"===X.type)&&Q({type:"maybe_slash",value:"",output:`${E}?`}),!0===V.backtrack)for(let e of(V.output="",V.tokens))V.output+=null!=e.output?e.output:e.value,e.suffix&&(V.output+=e.suffix);return V};return p.fastpaths=(i,r)=>{let n={...r},o="number"==typeof n.maxLength?Math.min(s,n.maxLength):s,l=i.length;if(l>o)throw SyntaxError(`Input length: ${l}, exceeds maximum allowed length: ${o}`);i=a[i]||i;let{DOT_LITERAL:p,SLASH_LITERAL:c,ONE_CHAR:u,DOTS_SLASH:h,NO_DOT:d,NO_DOTS:f,NO_DOTS_SLASH:m,STAR:g,START_ANCHOR:x}=e.globChars(n.windows),y=n.dot?f:d,b=n.dot?m:d,v=n.capture?"":"?:",S=!0===n.bash?".*?":g;n.capture&&(S=`(${S})`);let C=e=>!0===e.noglobstar?S:`(${v}(?:(?!${x}${e.dot?h:p}).)*?)`,E=e=>{switch(e){case"*":return`${y}${u}${S}`;case".*":return`${p}${u}${S}`;case"*.*":return`${y}${S}${p}${u}${S}`;case"*/*":return`${y}${S}${c}${u}${b}${S}`;case"**":return y+C(n);case"**/*":return`(?:${y}${C(n)}${c})?${b}${u}${S}`;case"**/*.*":return`(?:${y}${C(n)}${c})?${b}${S}${p}${u}${S}`;case"**/.*":return`(?:${y}${C(n)}${c})?${p}${u}${S}`;default:{let t=/^(.*?)\.(\w+)$/.exec(e);if(!t)return;let s=E(t[1]);if(!s)return;return s+p+t[2]}}},k=E(t.removePrefix(i,{negated:!1,prefix:""}));return k&&!0!==n.strictSlashes&&(k+=`${c}?`),k},w=p}(),s=t7(),i=t8(),r=e=>e&&"object"==typeof e&&!Array.isArray(e),n=(e,t,s=!1)=>{if(Array.isArray(e)){let i=e.map(e=>n(e,t,s));return e=>{for(let t of i){let s=t(e);if(s)return s}return!1}}let i=r(e)&&e.tokens&&e.input;if(""===e||"string"!=typeof e&&!i)throw TypeError("Expected pattern to be a non-empty string");let a=t||{},o=a.windows,l=i?n.compileRe(e,t):n.makeRe(e,t,!1,!0),p=l.state;delete l.state;let c=()=>!1;if(a.ignore){let e={...t,ignore:null,onMatch:null,onResult:null};c=n(a.ignore,e,s)}let u=(s,i=!1)=>{let{isMatch:r,match:u,output:h}=n.test(s,l,t,{glob:e,posix:o}),d={glob:e,state:p,regex:l,posix:o,input:s,output:h,match:u,isMatch:r};return("function"==typeof a.onResult&&a.onResult(d),!1===r)?(d.isMatch=!1,!!i&&d):c(s)?("function"==typeof a.onIgnore&&a.onIgnore(d),d.isMatch=!1,!!i&&d):("function"==typeof a.onMatch&&a.onMatch(d),!i||d)};return s&&(u.state=p),u};return n.test=(e,t,i,{glob:r,posix:a}={})=>{if("string"!=typeof e)throw TypeError("Expected input to be a string");if(""===e)return{isMatch:!1,output:""};let o=i||{},l=o.format||(a?s.toPosixSlashes:null),p=e===r,c=p&&l?l(e):e;return!1===p&&(p=(c=l?l(e):e)===r),(!1===p||!0===o.capture)&&(p=!0===o.matchBase||!0===o.basename?n.matchBase(e,t,i,a):t.exec(c)),{isMatch:!!p,match:p,output:c}},n.matchBase=(e,t,i)=>(t instanceof RegExp?t:n.makeRe(t,i)).test(s.basename(e)),n.isMatch=(e,t,s)=>n(t,s)(e),n.parse=(e,s)=>Array.isArray(e)?e.map(e=>n.parse(e,s)):t(e,{...s,fastpaths:!1}),n.scan=(t,s)=>e(t,s),n.compileRe=(e,t,s=!1,i=!1)=>{if(!0===s)return e.output;let r=t||{},a=r.contains?"":"^",o=r.contains?"":"$",l=`${a}(?:${e.output})${o}`;e&&!0===e.negated&&(l=`^(?!${l}).*$`);let p=n.toRegex(l,t);return!0===i&&(p.state=e),p},n.makeRe=(e,s={},i=!1,r=!1)=>{if(!e||"string"!=typeof e)throw TypeError("Expected a non-empty string");let a={negated:!1,fastpaths:!0};return!1!==s.fastpaths&&("."===e[0]||"*"===e[0])&&(a.output=t.fastpaths(e,s)),a.output||(a=t(e,s)),n.compileRe(a,s,i,r)},n.toRegex=(e,t)=>{try{let s=t||{};return new RegExp(e,s.flags||(s.nocase?"i":""))}catch(e){if(t&&!0===t.debug)throw e;return/$^/}},n.constants=i,T=n}(),t=t7();function s(i,r,n=!1){return r&&(null===r.windows||void 0===r.windows)&&(r={...r,windows:t.isWindows()}),e(i,r,n)}return Object.assign(s,e),P=s}());function st(e){let t=e.charCodeAt(0);return t>=48&&t<=57}function ss(e){let t=e.toUpperCase();return e===t&&t!==e.toLowerCase()}var si=tE({name:"jsx-pascal-case",package:"jsx",meta:{type:"suggestion",docs:{description:"Enforce PascalCase for user-defined JSX components"},messages:{usePascalCase:"Imported JSX component {{name}} must be in PascalCase",usePascalOrSnakeCase:"Imported JSX component {{name}} must be in PascalCase or SCREAMING_SNAKE_CASE"},schema:[{type:"object",properties:{allowAllCaps:{type:"boolean"},allowLeadingUnderscore:{type:"boolean"},allowNamespace:{type:"boolean"},ignore:{items:{type:"string"},type:"array",uniqueItems:!0}},additionalProperties:!1}]},create(e){let{allowAllCaps:t=!1,allowLeadingUnderscore:s=!1,allowNamespace:i=!1,ignore:r=[]}=e.options[0]||{},n=se(r,{noglobstar:!0});return{JSXOpeningElement(a){if(tP(a))return;let o=tO(a),l=[o],p=0;o.includes(":")?l=o.split(":"):o.includes(".")&&(l=o.split("."));do{let i=l[p];if(1===i.length)return;let o=n(i)||r.includes(i),c=s&&i.startsWith("_")?i.slice(1):i,u=!(!ss(c.charAt(0))||Array.prototype.some.call(c.slice(1),e=>e.toLowerCase()===e.toUpperCase()&&!st(e)))&&Array.prototype.some.call(c.slice(1),e=>(function(e){let t=e.toLowerCase();return e===t&&t!==e.toUpperCase()})(e)||st(e)),h=t&&function(e){let t=e.charAt(0);if(!(ss(t)||st(t)))return!1;for(let t=1;t<e.length-1;t+=1){let s=e.charAt(t);if(!(ss(s)||st(s)||"_"===s))return!1}let s=e.charAt(e.length-1);return!!(ss(s)||st(s))}(c);if(!u&&!h&&!o){let s=t?"usePascalOrSnakeCase":"usePascalCase";e.report({messageId:s,node:a,data:{name:i}});break}p+=1}while(p<l.length&&!i)}}}}),sr=tE({name:"jsx-props-no-multi-spaces",package:"jsx",meta:{type:"layout",docs:{description:"Disallow multiple spaces between inline JSX props"},fixable:"code",messages:{noLineGap:"Expected no line gap between “{{prop1}}” and “{{prop2}}”",onlyOneSpace:"Expected only one space between “{{prop1}}” and “{{prop2}}”"},schema:[]},create(e){let t=e.sourceCode;function s(e){switch(e.type){case"JSXSpreadAttribute":return t.getText(e.argument);case"JSXIdentifier":return e.name;case"JSXMemberExpression":return`${s(e.object)}.${e.property.name}`;default:return e.name?e.name.name:`${t.getText(e.object)}.${e.property.name}`}}return{JSXOpeningElement(i){i.attributes.reduce((i,r)=>{var n,a;return function(e,s){let i=[].concat(e,t.getCommentsBefore?t.getCommentsBefore(s):[],s);for(let e=1;e<i.length;e+=1){let t=i[e-1];if(i[e].loc.start.line-t.loc.end.line>=2)return!0}return!1}(n=i,a=r)&&e.report({messageId:"noLineGap",node:a,data:{prop1:s(n),prop2:s(a)}}),n.loc.end.line===a.loc.end.line&&" "!==t.text.slice(n.range[1],a.range[0])&&e.report({node:a,messageId:"onlyOneSpace",data:{prop1:s(n),prop2:s(a)},fix:e=>e.replaceTextRange([n.range[1],a.range[0]]," ")}),r},function(e){let t=e.name;if(void 0!==e.typeArguments&&e.typeArguments?.type==="TSTypeParameterInstantiation"){let s=e.typeArguments;return Object.assign({},e,{range:[t.range[0],s?.range[1]]})}return t}(i))}}}});let sn={component:!0,html:!0};var sa=tE({name:"jsx-self-closing-comp",package:"jsx",meta:{type:"layout",docs:{description:"Disallow extra closing tags for components without children"},fixable:"code",messages:{notSelfClosing:"Empty components are self-closing"},schema:[{type:"object",properties:{component:{default:sn.component,type:"boolean"},html:{default:sn.html,type:"boolean"}},additionalProperties:!1}]},create:e=>({JSXOpeningElement(t){(function(t){var s;let i=Object.assign({},sn,e.options[0]);return(i.component&&(s=t).name&&("JSXIdentifier"===s.name.type||"JSXMemberExpression"===s.name.type)&&!tP(s)||i.html&&tP(t))&&!t.selfClosing&&(0===t.parent.children.length||function(e){let t=e.parent.children;return 1===t.length&&"JSXText"===t[0].type&&t[0].value.includes("\n")&&""===t[0].value.replace(/(?!\xA0)\s/g,"")}(t))})(t)&&e.report({messageId:"notSelfClosing",node:t,fix(e){let s=t.range[1]-1,i=t.parent.closingElement?.range[1]??NaN;return e.replaceTextRange([s,i]," />")}})}})});function so(e){return/^on[A-Z]/.test(e)}function sl(e){return e.loc.start.line!==e.loc.end.line}let sp=["children","dangerouslySetInnerHTML","key","ref"];function sc(e,t){return t.indexOf(e.split(":")[0])}function su(t){let s=e.get(t);return!!s&&!!s.hasComment}let sh=new WeakMap;function sd(t,s,i,r,n){let a=sh.get(t)||[];a.includes(s)||(a.push(s),sh.set(t,a),r.report({node:t.name??"",messageId:s,fix:function(t,s,i){let r=s.sourceCode,n=t.attributes.slice(0),a=s.options[0]||{},o=a.ignoreCase||!1,l=a.callbacksLast||!1,p=a.shorthandFirst||!1,c=a.shorthandLast||!1,u=a.multiline||"ignore",h=a.noSortAlphabetically||!1,d=a.reservedFirst||!1,f={ignoreCase:o,callbacksLast:l,shorthandFirst:p,shorthandLast:c,multiline:u,noSortAlphabetically:h,reservedFirst:d,reservedList:i,reservedLast:a.reservedLast||[],locale:a.locale||"auto"},m=function(t,s){let i=s.sourceCode,r=[],n=0;function a(e){r[n-1].push(e)}for(let s=0;s<t.length;s++){let o=t[s],l=t[s+1],p=o.loc.start.line,c=[];try{c=i.getCommentsAfter(o)}catch{}let u=t[s-1],h="JSXSpreadAttribute"===o.type;if(u&&("JSXSpreadAttribute"!==u.type||h)||(r[(n+=1)-1]=[]),!h)if(0===c.length)e.set(o,{end:o.range[1],hasComment:!1}),a(o);else{let t=c[0],r=t.loc.start.line;if(1===c.length)p+1===r&&l?(e.set(o,{end:l.range[1],hasComment:!0}),a(o),s+=1):p===r&&("Block"===t.type&&l?(e.set(o,{end:l.range[1],hasComment:!0}),s+=1):"Block"===t.type?e.set(o,{end:t.range[1],hasComment:!0}):e.set(o,{end:t.range[1],hasComment:!1}),a(o));else if(c.length>1&&p+1===c[1].loc.start.line&&l){let t=i.getCommentsAfter(l);e.set(o,{end:l.range[1],hasComment:!0}),1===t.length&&l.loc.start.line===t[0].loc.start.line&&e.set(o,{end:t[0].range[1],hasComment:!0}),a(o),s+=1}}}return r}(n,s),g=m.slice(0).map(e=>[...e].sort((e,t)=>(function(e,t,s){let i=tR(e),r=tR(t),n=i.split(":")[0],a=r.split(":")[0],o=su(e),l=su(t);if(o&&!l)return 1;if(!o&&l)return -1;if(s.reservedFirst){let e=sc(i,s.reservedList),t=sc(r,s.reservedList);if(e>-1&&-1===t)return -1;if(-1===e&&t>-1)return 1;if(e>-1&&t>-1&&n!==a)return e>t?1:-1}if(s.reservedLast.length>0){let e=sc(i,s.reservedLast),t=sc(r,s.reservedLast);if(e>-1&&-1===t)return 1;if(-1===e&&t>-1)return -1;if(e>-1&&t>-1&&n!==a)return e>t?-1:1}if(s.callbacksLast){let e=so(i),t=so(r);if(e&&!t)return 1;if(!e&&t)return -1}if(s.shorthandFirst||s.shorthandLast){let i=s.shorthandFirst?-1:1;if(!e.value&&t.value)return i;if(e.value&&!t.value)return-i}if("ignore"!==s.multiline){let i="first"===s.multiline?-1:1,r=sl(e),n=sl(t);if(r&&!n)return i;if(!r&&n)return-i}if(s.noSortAlphabetically)return 0;let p="auto"===s.locale?void 0:s.locale;return s.ignoreCase?(i=i.toLowerCase(),r=r.toLowerCase(),i.localeCompare(r,p)):i===r?0:"auto"===s.locale?i<r?-1:1:i.localeCompare(r,p)})(e,t,f)));return function(t){let s=[],i=r.getText();m.forEach((t,r)=>{t.forEach((t,n)=>{let a=g[r][n],o=i.slice(a.range[0],e.get(a).end);s.push({range:[t.range[0],e.get(t).end],text:o})})}),s.sort((e,t)=>t.range[0]-e.range[0]);let n=s[0],a=s[s.length-1],o=a?a.range[0]:0,l=n?n.range[1]:-0;return s.forEach(e=>{i=`${i.slice(0,e.range[0])}${e.text}${i.slice(e.range[1])}`}),t.replaceTextRange([o,l],i.slice(o,l))}}(i,r,n)}))}var sf=tE({name:"jsx-sort-props",package:"jsx",meta:{type:"layout",docs:{description:"Enforce props alphabetical sorting"},fixable:"code",messages:{listIsEmpty:"A customized reserved first list must not be empty",listReservedPropsFirst:"Reserved props must be listed before all other props",listReservedPropsLast:"Reserved props must be listed after all other props",listCallbacksLast:"Callbacks must be listed after all other props",listShorthandFirst:"Shorthand props must be listed before all other props",listShorthandLast:"Shorthand props must be listed after all other props",listMultilineFirst:"Multiline props must be listed before all other props",listMultilineLast:"Multiline props must be listed after all other props",sortPropsByAlpha:"Props should be sorted alphabetically"},schema:[{type:"object",properties:{callbacksLast:{type:"boolean"},shorthandFirst:{type:"boolean"},shorthandLast:{type:"boolean"},multiline:{type:"string",enum:["ignore","first","last"],default:"ignore"},ignoreCase:{type:"boolean"},noSortAlphabetically:{type:"boolean"},reservedFirst:{type:["array","boolean"]},reservedLast:{type:"array"},locale:{type:"string",default:"auto"}},additionalProperties:!1}]},create(t){let s=t.options[0]||{},i=s.ignoreCase||!1,r=s.callbacksLast||!1,n=s.shorthandFirst||!1,a=s.shorthandLast||!1,o=s.multiline||"ignore",l=s.noSortAlphabetically||!1,p=s.reservedFirst||!1,c=function(e,t){if(t&&Array.isArray(t)&&0===t.length)return function(t){e.report({node:t,messageId:"listIsEmpty"})}}(t,p),u=Array.isArray(p)?p:sp,h=s.reservedLast||[],d=s.locale||"auto";return{Program(){e=new WeakMap},JSXOpeningElement(e){let s=p&&!tP(e)?u.filter(e=>"dangerouslySetInnerHTML"!==e):u;e.attributes.reduce((u,f,m,g)=>{if("JSXSpreadAttribute"===f.type)return g[m+1];let x=tR(u),y=tR(f),b=x.split(":")[0],v=y.split(":")[0],S=u.value,C=f.value,E=so(x),k=so(y);if(i&&(x=x.toLowerCase(),y=y.toLowerCase()),p){if(c)return c(f),u;let i=sc(x,s),r=sc(y,s);if(i>-1&&-1===r)return f;if(!0!==p&&i>r||-1===i&&r>-1)return sd(f,"listReservedPropsFirst",e,t,s),u;if(i>-1&&r>-1&&r>i&&b!==v)return f}if(h.length>0){let i=sc(x,h),r=sc(y,h);if(-1===i&&r>-1)return f;if(i<r||i>-1&&-1===r)return sd(f,"listReservedPropsLast",e,t,s),u;if(i>-1&&r>-1&&r>i&&b!==v)return f}if(r){if(!E&&k)return f;if(E&&!k)return sd(u,"listCallbacksLast",e,t,s),u}if(n){if(C&&!S)return f;if(!C&&S)return sd(f,"listShorthandFirst",e,t,s),u}if(a){if(!C&&S)return f;if(C&&!S)return sd(u,"listShorthandLast",e,t,s),u}let _=sl(u),w=sl(f);if("first"===o){if(_&&!w)return f;if(!_&&w)return sd(f,"listMultilineFirst",e,t,s),u}else if("last"===o){if(!_&&w)return f;if(_&&!w)return sd(u,"listMultilineLast",e,t,s),u}return!l&&(i||"auto"!==d?x.localeCompare(y,"auto"===d?void 0:d)>0:x>y)?(sd(f,"sortPropsByAlpha",e,t,s),u):f},e.attributes[0])}}}});function sm(e,t,s){let i,r=e.sourceCode;if("selfClosing"in t&&t.selfClosing){let n=r.getLastTokens(t,2);i=!r.isSpaceBetween(n[0],n[1]),"never"===s?i||e.report({node:t,messageId:"selfCloseSlashNoSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.removeRange([n[0].range[1],n[1].range[0]])}):"always"===s&&i&&e.report({node:t,messageId:"selfCloseSlashNeedSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.insertTextBefore(n[1]," ")})}else{let n=r.getFirstTokens(t,2);i=!r.isSpaceBetween(n[0],n[1]),"never"===s?i||e.report({node:t,messageId:"closeSlashNoSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.removeRange([n[0].range[1],n[1].range[0]])}):"always"===s&&i&&e.report({node:t,messageId:"closeSlashNeedSpace",loc:{start:n[0].loc.start,end:n[1].loc.end},fix:e=>e.insertTextBefore(n[1]," ")})}}function sg(e,t,s){let i=e.sourceCode,r=i.getTokenBefore(t.name);if("allow-multiline"===s&&r.loc.start.line!==t.name.loc.start.line)return;let n=!i.isSpaceBetween(r,t.name);"never"===s||"allow-multiline"===s?n||e.report({node:t,messageId:"afterOpenNoSpace",loc:{start:r.loc.start,end:t.name.loc.start},fix:e=>e.removeRange([r.range[1],t.name.range[0]])}):"always"===s&&n&&e.report({node:t,messageId:"afterOpenNeedSpace",loc:{start:r.loc.start,end:t.name.loc.start},fix:e=>e.insertTextBefore(t.name," ")})}function sx(e,t,s){if(!("selfClosing"in t&&t.selfClosing)){let i=e.sourceCode,r="proportional-always"===s?tA(t):i.getLastTokens(t,2)[0],n=i.getTokenAfter(r);if(t.loc.start.line!==t.loc.end.line&&"proportional-always"===s&&r.loc.end.line===n.loc.start.line)return void e.report({node:t,messageId:"beforeCloseNeedNewline",loc:r.loc.end,fix:e=>e.insertTextBefore(n,"\n")});if(r.loc.start.line!==n.loc.start.line)return;let a=!i.isSpaceBetween(r,n);"never"!==s||a?"always"===s&&a?e.report({node:t,loc:{start:r.loc.end,end:n.loc.start},messageId:"beforeCloseNeedSpace",fix:e=>e.insertTextBefore(n," ")}):"proportional-always"===s&&"JSXOpeningElement"===t.type&&a!==(t.loc.start.line===t.loc.end.line)&&e.report({node:t,messageId:"beforeCloseNeedSpace",loc:{start:r.loc.end,end:n.loc.start},fix:e=>e.insertTextBefore(n," ")}):e.report({node:t,messageId:"beforeCloseNoSpace",loc:{start:r.loc.end,end:n.loc.start},fix:e=>e.removeRange([r.range[1],n.range[0]])})}}let sy={closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"allow"};var sb=tE({name:"jsx-tag-spacing",package:"jsx",meta:{type:"layout",docs:{description:"Enforce whitespace in and around the JSX opening and closing brackets"},fixable:"whitespace",messages:{selfCloseSlashNoSpace:"Whitespace is forbidden between `/` and `>`; write `/>`",selfCloseSlashNeedSpace:"Whitespace is required between `/` and `>`; write `/ >`",closeSlashNoSpace:"Whitespace is forbidden between `<` and `/`; write `</`",closeSlashNeedSpace:"Whitespace is required between `<` and `/`; write `< /`",beforeSelfCloseNoSpace:"A space is forbidden before closing bracket",beforeSelfCloseNeedSpace:"A space is required before closing bracket",beforeSelfCloseNeedNewline:"A newline is required before closing bracket",afterOpenNoSpace:"A space is forbidden after opening bracket",afterOpenNeedSpace:"A space is required after opening bracket",beforeCloseNoSpace:"A space is forbidden before closing bracket",beforeCloseNeedSpace:"Whitespace is required before closing bracket",beforeCloseNeedNewline:"A newline is required before closing bracket"},schema:[{type:"object",properties:{closingSlash:{type:"string",enum:["always","never","allow"]},beforeSelfClosing:{type:"string",enum:["always","proportional-always","never","allow"]},afterOpening:{type:"string",enum:["always","allow-multiline","never","allow"]},beforeClosing:{type:"string",enum:["always","proportional-always","never","allow"]}},default:sy,additionalProperties:!1}]},create(e){let t=Object.assign({},sy,e.options[0]);return{JSXOpeningElement(s){"allow"!==t.closingSlash&&s.selfClosing&&sm(e,s,t.closingSlash),"allow"!==t.afterOpening&&sg(e,s,t.afterOpening),"allow"!==t.beforeSelfClosing&&s.selfClosing&&function(e,t,s){let i=e.sourceCode,r=tA(t),n=i.getTokenAfter(r);if(t.loc.start.line!==t.loc.end.line&&"proportional-always"===s&&r.loc.end.line===n.loc.start.line)return e.report({node:t,messageId:"beforeSelfCloseNeedNewline",loc:r.loc.end,fix:e=>e.insertTextBefore(n,"\n")});if(r.loc.end.line!==n.loc.start.line)return;let a=!i.isSpaceBetween(r,n);("always"===s||"proportional-always"===s)&&a?e.report({node:t,messageId:"beforeSelfCloseNeedSpace",loc:n.loc.start,fix:e=>e.insertTextBefore(n," ")}):"never"!==s||a||e.report({node:t,messageId:"beforeSelfCloseNoSpace",loc:n.loc.start,fix(e){let t=i.getTokenBefore(n);return e.removeRange([t.range[1],n.range[0]])}})}(e,s,t.beforeSelfClosing),"allow"!==t.beforeClosing&&sx(e,s,t.beforeClosing)},JSXClosingElement(s){"allow"!==t.afterOpening&&sg(e,s,t.afterOpening),"allow"!==t.closingSlash&&sm(e,s,t.closingSlash),"allow"!==t.beforeClosing&&sx(e,s,t.beforeClosing)}}}});let sv={declaration:"parens",assignment:"parens",return:"parens",arrow:"parens",condition:"ignore",logical:"ignore",prop:"ignore",propertyValue:"ignore"};var sS={rules:{"jsx-child-element-spacing":tB,"jsx-closing-bracket-location":tV,"jsx-closing-tag-location":tF,"jsx-curly-brace-presence":tH,"jsx-curly-newline":tW,"jsx-curly-spacing":tK,"jsx-equals-spacing":tQ,"jsx-first-prop-new-line":tY,"jsx-function-call-newline":tZ,"jsx-indent":t0,"jsx-indent-props":t1,"jsx-max-props-per-line":t2,"jsx-newline":t6,"jsx-one-expression-per-line":t5,"jsx-pascal-case":si,"jsx-props-no-multi-spaces":sr,"jsx-self-closing-comp":sa,"jsx-sort-props":sf,"jsx-tag-spacing":sb,"jsx-wrap-multilines":tE({name:"jsx-wrap-multilines",package:"jsx",meta:{type:"layout",docs:{description:"Disallow missing parentheses around multiline JSX"},fixable:"code",messages:{missingParens:"Missing parentheses around multilines JSX",parensOnNewLines:"Parentheses around JSX should be on separate lines"},schema:[{type:"object",properties:{declaration:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},assignment:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},return:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},arrow:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},condition:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},logical:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},prop:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]},propertyValue:{type:["string","boolean"],enum:[!0,!1,"ignore","parens","parens-new-line"]}},additionalProperties:!1}]},create(e){function t(t){let s=e.options[0]||{};return t in s?s[t]:sv[t]}function s(e){let s=t(e);return s&&"ignore"!==s}function i(e){return e.loc.start.line!==e.loc.end.line}function r(s,r){if(!s||!tN(s))return;let n=e.sourceCode,a=t(r);if((!0===a||"parens"===a)&&!tT(s,e.sourceCode)&&i(s)&&e.report({node:s,messageId:"missingParens",fix:e=>e.replaceText(s,`(${n.getText(s)})`)}),"parens-new-line"===a&&i(s))if(tT(s,e.sourceCode)){let t=function(t){let s=e.sourceCode.getTokenBefore(t);return!!tT(t,e.sourceCode)&&s.loc.end.line===t.loc.start.line}(s),i=function(t){let s=e.sourceCode.getTokenAfter(t);return!!tT(t,e.sourceCode)&&t.loc.end.line===s.loc.end.line}(s);(t||i)&&e.report({node:s,messageId:"parensOnNewLines",fix:e=>{let r=n.getText(s);return t&&(r=`
8
8
  ${r}`),i&&(r=`${r}
9
9
  `),e.replaceText(s,r)}})}else{let t=n.getTokenBefore(s),i=n.getTokenAfter(s),r=s.loc.start;if(t.loc.end.line<r.line){let a=n.getText().slice(t.range[1],s.range[0]).trim(),o=/^\t/.test(n.lines[r.line-1]),l=o?" ":" ",p=l.repeat(r.column),c=l.repeat(Math.max(0,r.column-(o?1:2)));e.report({node:s,messageId:"missingParens",fix:e=>e.replaceTextRange([t.range[0],i&&(";"===i.value||"}"===i.value)?i.range[0]:s.range[1]],`${function(e){let t="{"===e.value||"["===e.value;return`${e.value.trim()}${t?"":" "}`}(t)}(
10
10
  ${p}${a}${a.length>0?`
11
11
  ${p}`:""}${n.getText(s)}
12
12
  ${c})`)})}else e.report({node:s,messageId:"missingParens",fix:e=>e.replaceText(s,`(
13
13
  ${n.getText(s)}
14
- )`)})}}return{VariableDeclarator(e){let t="declaration";if(s(t)){if(!s("condition")&&e.init&&"ConditionalExpression"===e.init.type){r(e.init.consequent,t),r(e.init.alternate,t);return}r(e.init,t)}},AssignmentExpression(e){let t="assignment";if(s(t)){if(!s("condition")&&"ConditionalExpression"===e.right.type){r(e.right.consequent,t),r(e.right.alternate,t);return}r(e.right,t)}},ReturnStatement(e){let t="return";s(t)&&r(e.argument,t)},"ArrowFunctionExpression:exit":e=>{let t=e.body,i="arrow";s(i)&&"BlockStatement"!==t.type&&r(t,i)},ConditionalExpression(e){let t="condition";s(t)&&(r(e.consequent,t),r(e.alternate,t))},LogicalExpression(e){let t="logical";s(t)&&r(e.right,t)},JSXAttribute(e){let t="prop";s(t)&&e.value&&"JSXExpressionContainer"===e.value.type&&r(e.value.expression,t)},ObjectExpression(e){let t="propertyValue";s(t)&&e.properties.forEach(e=>{"Property"===e.type&&"JSXElement"===e.value.type&&r(e.value,t)})}}}})}};let sC=function(e,t,s){let i=Object.fromEntries(Object.entries(e.rules).filter(([e,t])=>t.meta.fixable&&!t.meta.deprecated&&e===t.meta.docs.url.split("/").pop()&&!0).map(([e])=>[`${t}/${e}`,2]));return{plugins:{[t]:e},rules:i}}(sS,"@stylistic/jsx"),sE=Object.assign(sS,{configs:{"disable-legacy":{rules:{"react/jsx-child-element-spacing":0,"react/jsx-closing-bracket-location":0,"react/jsx-closing-tag-location":0,"react/jsx-curly-brace-presence":0,"react/jsx-curly-newline":0,"react/jsx-curly-spacing":0,"react/jsx-equals-spacing":0,"react/jsx-first-prop-new-line":0,"react/jsx-function-call-newline":0,"react/jsx-indent":0,"react/jsx-indent-props":0,"react/jsx-max-props-per-line":0,"react/jsx-newline":0,"react/jsx-one-expression-per-line":0,"react/jsx-pascal-case":0,"react/jsx-props-no-multi-spaces":0,"react/jsx-self-closing-comp":0,"react/jsx-sort-props":0,"react/jsx-tag-spacing":0,"react/jsx-wrap-multilines":0}},all:sC,"all-flat":sC}}),sk=s(p,"@eslint-react/eslint-plugin"),s_=s(u(c),"eslint-plugin-ssr-friendly");function sw({reactCompiler:e="error",additionalHooks:r="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample)",nextjs:p=!1,remix:c=!1,reactRefresh:u={},additionalHooksWithType:h={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:d=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:f=!1}=u;return[{name:"@eslint-sukka/react base",files:[t.GLOB_TS,t.GLOB_TSX,t.GLOB_JSX],plugins:{"jsx-a11y-minimal":s(n,"@eslint-sukka/eslint-plugin-react-jsx-a11y#eslint_plugin_jsx_a11y_minimal"),"react-hooks":s(a,"eslint-plugin-react-hooks"),"@stylistic/jsx":s(sE,"@stylistic/eslint-plugin-jsx"),"react-prefer-function-component":s(j,"eslint-plugin-react-prefer-function-component"),"react-compiler":s(o,"eslint-plugin-react-compiler"),...sk.configs.recommended.plugins,"ssr-friendly":s_,"react-refresh":l},settings:{"react-x":{version:"detect",additionalHooks:h,additionalComponents:d}},languageOptions:{globals:i.browser},rules:{...a.configs.recommended.rules,"react-compiler/react-compiler":e,"react-hooks/exhaustive-deps":["error",{additionalHooks:r}],"@stylistic/jsx/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],...sk.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/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/jsx-self-closing-comp":"error","@eslint-react/prefer-shorthand-boolean":"error","@stylistic/jsx/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx/jsx-indent-props":["error",2],"@stylistic/jsx/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx/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/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx/jsx-equals-spacing":["error","never"],"@stylistic/jsx/jsx-indent":"off","@stylistic/jsx/jsx-child-element-spacing":"error","@stylistic/jsx/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-children-in-void-dom-elements":"error","@stylistic/jsx/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@stylistic/jsx/jsx-props-no-multi-spaces":"error","@eslint-react/prefer-shorthand-fragment":"error","@stylistic/jsx/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-components":"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","@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"}],"jsx-a11y-minimal/alt-text":["warn",{elements:["img"],img:["Image"]}],"jsx-a11y-minimal/aria-props":"warn","jsx-a11y-minimal/aria-proptypes":"warn","jsx-a11y-minimal/aria-role":"warn","jsx-a11y-minimal/aria-unsupported-elements":"warn","jsx-a11y-minimal/iframe-has-title":"warn","jsx-a11y-minimal/no-access-key":"warn","jsx-a11y-minimal/role-has-required-aria-props":"warn","jsx-a11y-minimal/role-supports-aria-props":"warn","jsx-a11y-minimal/tabindex-no-positive":"warn","react-refresh/only-export-components":["warn",{allowConstantExport:f,allowExportNames:[...p?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...c?["meta","links","headers","loader","action"]:[]]}]}},{files:["**/app/**/_*.?([cm])[jt]s?(x)",String.raw`**/app/**/\[*.?([cm])[jt]s?(x)`],rules:{"@eslint-react/naming-convention/filename":"off"}}]}function sA({opt:e={}}={}){return[{plugins:{"@stylexjs":h},files:[t.GLOB_TS,t.GLOB_TSX,t.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]}export{d as next,sw as react,sA as stylex};
14
+ )`)})}}return{VariableDeclarator(e){let t="declaration";if(s(t)){if(!s("condition")&&e.init&&"ConditionalExpression"===e.init.type){r(e.init.consequent,t),r(e.init.alternate,t);return}r(e.init,t)}},AssignmentExpression(e){let t="assignment";if(s(t)){if(!s("condition")&&"ConditionalExpression"===e.right.type){r(e.right.consequent,t),r(e.right.alternate,t);return}r(e.right,t)}},ReturnStatement(e){let t="return";s(t)&&r(e.argument,t)},"ArrowFunctionExpression:exit":e=>{let t=e.body,i="arrow";s(i)&&"BlockStatement"!==t.type&&r(t,i)},ConditionalExpression(e){let t="condition";s(t)&&(r(e.consequent,t),r(e.alternate,t))},LogicalExpression(e){let t="logical";s(t)&&r(e.right,t)},JSXAttribute(e){let t="prop";s(t)&&e.value&&"JSXExpressionContainer"===e.value.type&&r(e.value.expression,t)},ObjectExpression(e){let t="propertyValue";s(t)&&e.properties.forEach(e=>{"Property"===e.type&&"JSXElement"===e.value.type&&r(e.value,t)})}}}})}};let sC=function(e,t,s){let i=Object.fromEntries(Object.entries(e.rules).filter(([e,t])=>t.meta.fixable&&!t.meta.deprecated&&e===t.meta.docs.url.split("/").pop()&&!0).map(([e])=>[`${t}/${e}`,2]));return{plugins:{[t]:e},rules:i}}(sS,"@stylistic/jsx"),sE=Object.assign(sS,{configs:{"disable-legacy":{rules:{"react/jsx-child-element-spacing":0,"react/jsx-closing-bracket-location":0,"react/jsx-closing-tag-location":0,"react/jsx-curly-brace-presence":0,"react/jsx-curly-newline":0,"react/jsx-curly-spacing":0,"react/jsx-equals-spacing":0,"react/jsx-first-prop-new-line":0,"react/jsx-function-call-newline":0,"react/jsx-indent":0,"react/jsx-indent-props":0,"react/jsx-max-props-per-line":0,"react/jsx-newline":0,"react/jsx-one-expression-per-line":0,"react/jsx-pascal-case":0,"react/jsx-props-no-multi-spaces":0,"react/jsx-self-closing-comp":0,"react/jsx-sort-props":0,"react/jsx-tag-spacing":0,"react/jsx-wrap-multilines":0}},all:sC,"all-flat":sC}});console.log("[@stylistic/eslint-plugin-jsx] This package is deprecated in favor of the unified @stylistic/eslint-plugin, please consider migrating to the main package");let sk=s(p,"@eslint-react/eslint-plugin"),s_=s(u(c),"eslint-plugin-ssr-friendly");function sw({reactCompiler:e="error",additionalHooks:r="(useIsomorphicLayoutEffect|useSukkaManyOtherCustomEffectHookExample)",nextjs:p=!1,remix:c=!1,reactRefresh:u={},additionalHooksWithType:h={useLayoutEffect:["useIsomorphicLayoutEffect"],useEffect:["useAbortableEffect"]},additionalComponents:d=[{name:"Link",as:"a",attributes:[{name:"to",as:"href"},{name:"rel",as:"rel"}]}]}={}){let{allowConstantExport:f=!1}=u;return[{name:"@eslint-sukka/react base",files:[t.GLOB_TS,t.GLOB_TSX,t.GLOB_JSX],plugins:{"jsx-a11y-minimal":s(n,"@eslint-sukka/eslint-plugin-react-jsx-a11y#eslint_plugin_jsx_a11y_minimal"),"react-hooks":s(a,"eslint-plugin-react-hooks"),"@stylistic/jsx":s(sE,"@stylistic/eslint-plugin-jsx"),"react-prefer-function-component":s(j,"eslint-plugin-react-prefer-function-component"),"react-compiler":s(o,"eslint-plugin-react-compiler"),...sk.configs.recommended.plugins,"ssr-friendly":s_,"react-refresh":l},settings:{"react-x":{version:"detect",additionalHooks:h,additionalComponents:d}},languageOptions:{globals:i.browser},rules:{...a.configs.recommended.rules,"react-compiler/react-compiler":e,"react-hooks/exhaustive-deps":["error",{additionalHooks:r}],"@stylistic/jsx/jsx-pascal-case":["error",{allowAllCaps:!0,ignore:[]}],...sk.configs.recommended.rules,"@eslint-react/no-string-refs":"error","@eslint-react/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/jsx-self-closing-comp":"error","@eslint-react/prefer-shorthand-boolean":"error","@stylistic/jsx/jsx-curly-spacing":["error","never",{allowMultiline:!0}],"@stylistic/jsx/jsx-indent-props":["error",2],"@stylistic/jsx/jsx-max-props-per-line":["error",{maximum:1,when:"multiline"}],"@stylistic/jsx/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/jsx-first-prop-new-line":["error","multiline-multiprop"],"@stylistic/jsx/jsx-function-call-newline":["error","multiline"],"@stylistic/jsx/jsx-equals-spacing":["error","never"],"@stylistic/jsx/jsx-indent":"off","@stylistic/jsx/jsx-child-element-spacing":"error","@stylistic/jsx/jsx-closing-bracket-location":["error","line-aligned"],"@stylistic/jsx/jsx-tag-spacing":["error",{closingSlash:"never",beforeSelfClosing:"always",afterOpening:"never",beforeClosing:"never"}],"@eslint-react/dom/no-children-in-void-dom-elements":"error","@stylistic/jsx/jsx-curly-brace-presence":["error",{props:"never",children:"never"}],"@stylistic/jsx/jsx-props-no-multi-spaces":"error","@eslint-react/prefer-shorthand-fragment":"error","@stylistic/jsx/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-components":"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","@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"}],"jsx-a11y-minimal/alt-text":["warn",{elements:["img"],img:["Image"]}],"jsx-a11y-minimal/aria-props":"warn","jsx-a11y-minimal/aria-proptypes":"warn","jsx-a11y-minimal/aria-role":"warn","jsx-a11y-minimal/aria-unsupported-elements":"warn","jsx-a11y-minimal/iframe-has-title":"warn","jsx-a11y-minimal/no-access-key":"warn","jsx-a11y-minimal/role-has-required-aria-props":"warn","jsx-a11y-minimal/role-supports-aria-props":"warn","jsx-a11y-minimal/tabindex-no-positive":"warn","react-refresh/only-export-components":["warn",{allowConstantExport:f,allowExportNames:[...p?["config","generateStaticParams","metadata","generateMetadata","viewport","generateViewport"]:[],...c?["meta","links","headers","loader","action"]:[]]}]}},{files:["**/app/**/_*.?([cm])[jt]s?(x)",String.raw`**/app/**/\[*.?([cm])[jt]s?(x)`],rules:{"@eslint-react/naming-convention/filename":"off"}}]}function sA({opt:e={}}={}){return[{plugins:{"@stylexjs":h},files:[t.GLOB_TS,t.GLOB_TSX,t.GLOB_JSX],rules:{"@stylexjs/valid-styles":["error",e],"@stylexjs/valid-shorthands":["error",e],"@stylexjs/sort-keys":"off"}}]}export{d as next,sw as react,sA as stylex};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@eslint-sukka/react",
3
- "version": "6.19.0",
3
+ "version": "6.21.0",
4
4
  "description": "Sukka's ESLint config",
5
5
  "homepage": "https://github.com/SukkaW/eslint-config-sukka",
6
6
  "repository": {
@@ -28,22 +28,22 @@
28
28
  "author": "Sukka <https://skk.moe>",
29
29
  "license": "MIT",
30
30
  "dependencies": {
31
- "@eslint-react/eslint-plugin": "^1.49.0",
31
+ "@eslint-react/eslint-plugin": "^1.50.0",
32
32
  "@eslint/compat": "^1.2.9",
33
- "@next/eslint-plugin-next": "^15.3.1",
34
- "@stylexjs/eslint-plugin": "^0.12.0",
33
+ "@next/eslint-plugin-next": "^15.3.2",
34
+ "@stylexjs/eslint-plugin": "^0.13.1",
35
35
  "@stylexjs/shared": "^0.12.0",
36
- "eslint-plugin-react-compiler": "^19.1.0-rc.1",
36
+ "eslint-plugin-react-compiler": "^19.1.0-rc.2",
37
37
  "eslint-plugin-react-hooks": "^5.2.0",
38
38
  "eslint-plugin-react-refresh": "^0.4.20",
39
39
  "eslint-plugin-ssr-friendly": "^1.3.0",
40
- "@eslint-sukka/eslint-plugin-react-jsx-a11y": "6.19.0",
41
- "@eslint-sukka/shared": "6.19.0"
40
+ "@eslint-sukka/eslint-plugin-react-jsx-a11y": "6.21.0",
41
+ "@eslint-sukka/shared": "6.21.0"
42
42
  },
43
43
  "devDependencies": {
44
- "@stylistic/eslint-plugin-jsx": "^4.2.0",
44
+ "@stylistic/eslint-plugin-jsx": "^4.4.0",
45
45
  "eslint-plugin-react-prefer-function-component": "^4.0.1",
46
- "@eslint-sukka/rollup-config": "6.19.0"
46
+ "@eslint-sukka/rollup-config": "6.21.0"
47
47
  },
48
48
  "scripts": {
49
49
  "build": "rollup -c rollup.config.ts --configPlugin swc3"